[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/dist/ -> format-library.js (source)

   1  (function() {
   2  "use strict";
   3  var wp;
   4  (wp ||= {}).formatLibrary = (() => {
   5    var __create = Object.create;
   6    var __defProp = Object.defineProperty;
   7    var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
   8    var __getOwnPropNames = Object.getOwnPropertyNames;
   9    var __getProtoOf = Object.getPrototypeOf;
  10    var __hasOwnProp = Object.prototype.hasOwnProperty;
  11    var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
  12      get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
  13    }) : x)(function(x) {
  14      if (typeof require !== "undefined") return require.apply(this, arguments);
  15      throw Error('Dynamic require of "' + x + '" is not supported');
  16    });
  17    var __commonJS = (cb, mod) => function __require2() {
  18      return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  19    };
  20    var __export = (target, all) => {
  21      for (var name16 in all)
  22        __defProp(target, name16, { get: all[name16], enumerable: true });
  23    };
  24    var __copyProps = (to, from, except, desc) => {
  25      if (from && typeof from === "object" || typeof from === "function") {
  26        for (let key of __getOwnPropNames(from))
  27          if (!__hasOwnProp.call(to, key) && key !== except)
  28            __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  29      }
  30      return to;
  31    };
  32    var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  33      // If the importer is in node compatibility mode or this is not an ESM
  34      // file that has been converted to a CommonJS file using a Babel-
  35      // compatible transform (i.e. "__esModule" has not been set), then set
  36      // "default" to the CommonJS "module.exports" for node compatibility.
  37      isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  38      mod
  39    ));
  40  
  41    // package-external:@wordpress/rich-text
  42    var require_rich_text = __commonJS({
  43      "package-external:@wordpress/rich-text"(exports, module) {
  44        module.exports = window.wp.richText;
  45      }
  46    });
  47  
  48    // package-external:@wordpress/i18n
  49    var require_i18n = __commonJS({
  50      "package-external:@wordpress/i18n"(exports, module) {
  51        module.exports = window.wp.i18n;
  52      }
  53    });
  54  
  55    // package-external:@wordpress/block-editor
  56    var require_block_editor = __commonJS({
  57      "package-external:@wordpress/block-editor"(exports, module) {
  58        module.exports = window.wp.blockEditor;
  59      }
  60    });
  61  
  62    // package-external:@wordpress/element
  63    var require_element = __commonJS({
  64      "package-external:@wordpress/element"(exports, module) {
  65        module.exports = window.wp.element;
  66      }
  67    });
  68  
  69    // package-external:@wordpress/primitives
  70    var require_primitives = __commonJS({
  71      "package-external:@wordpress/primitives"(exports, module) {
  72        module.exports = window.wp.primitives;
  73      }
  74    });
  75  
  76    // vendor-external:react/jsx-runtime
  77    var require_jsx_runtime = __commonJS({
  78      "vendor-external:react/jsx-runtime"(exports, module) {
  79        module.exports = window.ReactJSXRuntime;
  80      }
  81    });
  82  
  83    // package-external:@wordpress/components
  84    var require_components = __commonJS({
  85      "package-external:@wordpress/components"(exports, module) {
  86        module.exports = window.wp.components;
  87      }
  88    });
  89  
  90    // vendor-external:react
  91    var require_react = __commonJS({
  92      "vendor-external:react"(exports, module) {
  93        module.exports = window.React;
  94      }
  95    });
  96  
  97    // vendor-external:react-dom
  98    var require_react_dom = __commonJS({
  99      "vendor-external:react-dom"(exports, module) {
 100        module.exports = window.ReactDOM;
 101      }
 102    });
 103  
 104    // package-external:@wordpress/warning
 105    var require_warning = __commonJS({
 106      "package-external:@wordpress/warning"(exports, module) {
 107        module.exports = window.wp.warning;
 108      }
 109    });
 110  
 111    // node_modules/.store/use-sync-external-store@1.7.0-jHNF5n8408rkWhZ5NHKclA/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js
 112    var require_use_sync_external_store_shim_development = __commonJS({
 113      "node_modules/.store/use-sync-external-store@1.7.0-jHNF5n8408rkWhZ5NHKclA/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js"(exports) {
 114        "use strict";
 115        (function() {
 116          function is(x, y) {
 117            return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
 118          }
 119          function useSyncExternalStore$2(subscribe, getSnapshot) {
 120            didWarnOld18Alpha || void 0 === React101.startTransition || (didWarnOld18Alpha = true, console.error(
 121              "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."
 122            ));
 123            var value = getSnapshot();
 124            if (!didWarnUncachedGetSnapshot) {
 125              var cachedValue = getSnapshot();
 126              objectIs(value, cachedValue) || (console.error(
 127                "The result of getSnapshot should be cached to avoid an infinite loop"
 128              ), didWarnUncachedGetSnapshot = true);
 129            }
 130            cachedValue = useState32({
 131              inst: { value, getSnapshot }
 132            });
 133            var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
 134            useLayoutEffect4(
 135              function() {
 136                inst.value = value;
 137                inst.getSnapshot = getSnapshot;
 138                checkIfSnapshotChanged(inst) && forceUpdate({ inst });
 139              },
 140              [subscribe, value, getSnapshot]
 141            );
 142            useEffect21(
 143              function() {
 144                checkIfSnapshotChanged(inst) && forceUpdate({ inst });
 145                return subscribe(function() {
 146                  checkIfSnapshotChanged(inst) && forceUpdate({ inst });
 147                });
 148              },
 149              [subscribe]
 150            );
 151            useDebugValue2(value);
 152            return value;
 153          }
 154          function checkIfSnapshotChanged(inst) {
 155            var latestGetSnapshot = inst.getSnapshot;
 156            inst = inst.value;
 157            try {
 158              var nextValue = latestGetSnapshot();
 159              return !objectIs(inst, nextValue);
 160            } catch (error2) {
 161              return true;
 162            }
 163          }
 164          function useSyncExternalStore$1(subscribe, getSnapshot) {
 165            return getSnapshot();
 166          }
 167          "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
 168          var React101 = require_react(), objectIs = "function" === typeof Object.is ? Object.is : is, useState32 = React101.useState, useEffect21 = React101.useEffect, useLayoutEffect4 = React101.useLayoutEffect, useDebugValue2 = React101.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
 169          exports.useSyncExternalStore = void 0 !== React101.useSyncExternalStore ? React101.useSyncExternalStore : shim;
 170          "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
 171        })();
 172      }
 173    });
 174  
 175    // node_modules/.store/use-sync-external-store@1.7.0-jHNF5n8408rkWhZ5NHKclA/node_modules/use-sync-external-store/shim/index.js
 176    var require_shim = __commonJS({
 177      "node_modules/.store/use-sync-external-store@1.7.0-jHNF5n8408rkWhZ5NHKclA/node_modules/use-sync-external-store/shim/index.js"(exports, module) {
 178        "use strict";
 179        if (false) {
 180          module.exports = null;
 181        } else {
 182          module.exports = require_use_sync_external_store_shim_development();
 183        }
 184      }
 185    });
 186  
 187    // node_modules/.store/use-sync-external-store@1.7.0-jHNF5n8408rkWhZ5NHKclA/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js
 188    var require_with_selector_development = __commonJS({
 189      "node_modules/.store/use-sync-external-store@1.7.0-jHNF5n8408rkWhZ5NHKclA/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js"(exports) {
 190        "use strict";
 191        (function() {
 192          function is(x, y) {
 193            return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
 194          }
 195          "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
 196          var React101 = require_react(), shim = require_shim(), objectIs = "function" === typeof Object.is ? Object.is : is, useSyncExternalStore3 = shim.useSyncExternalStore, useRef45 = React101.useRef, useEffect21 = React101.useEffect, useMemo31 = React101.useMemo, useDebugValue2 = React101.useDebugValue;
 197          exports.useSyncExternalStoreWithSelector = function(subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
 198            var instRef = useRef45(null);
 199            if (null === instRef.current) {
 200              var inst = { hasValue: false, value: null };
 201              instRef.current = inst;
 202            } else inst = instRef.current;
 203            instRef = useMemo31(
 204              function() {
 205                function memoizedSelector(nextSnapshot) {
 206                  if (!hasMemo) {
 207                    hasMemo = true;
 208                    memoizedSnapshot = nextSnapshot;
 209                    nextSnapshot = selector(nextSnapshot);
 210                    if (void 0 !== isEqual && inst.hasValue) {
 211                      var currentSelection = inst.value;
 212                      if (isEqual(currentSelection, nextSnapshot))
 213                        return memoizedSelection = currentSelection;
 214                    }
 215                    return memoizedSelection = nextSnapshot;
 216                  }
 217                  currentSelection = memoizedSelection;
 218                  if (objectIs(memoizedSnapshot, nextSnapshot))
 219                    return currentSelection;
 220                  var nextSelection = selector(nextSnapshot);
 221                  if (void 0 !== isEqual && isEqual(currentSelection, nextSelection))
 222                    return memoizedSnapshot = nextSnapshot, currentSelection;
 223                  memoizedSnapshot = nextSnapshot;
 224                  return memoizedSelection = nextSelection;
 225                }
 226                var hasMemo = false, memoizedSnapshot, memoizedSelection, maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
 227                return [
 228                  function() {
 229                    return memoizedSelector(getSnapshot());
 230                  },
 231                  null === maybeGetServerSnapshot ? void 0 : function() {
 232                    return memoizedSelector(maybeGetServerSnapshot());
 233                  }
 234                ];
 235              },
 236              [getSnapshot, getServerSnapshot, selector, isEqual]
 237            );
 238            var value = useSyncExternalStore3(subscribe, instRef[0], instRef[1]);
 239            useEffect21(
 240              function() {
 241                inst.hasValue = true;
 242                inst.value = value;
 243              },
 244              [value]
 245            );
 246            useDebugValue2(value);
 247            return value;
 248          };
 249          "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
 250        })();
 251      }
 252    });
 253  
 254    // node_modules/.store/use-sync-external-store@1.7.0-jHNF5n8408rkWhZ5NHKclA/node_modules/use-sync-external-store/shim/with-selector.js
 255    var require_with_selector = __commonJS({
 256      "node_modules/.store/use-sync-external-store@1.7.0-jHNF5n8408rkWhZ5NHKclA/node_modules/use-sync-external-store/shim/with-selector.js"(exports, module) {
 257        "use strict";
 258        if (false) {
 259          module.exports = null;
 260        } else {
 261          module.exports = require_with_selector_development();
 262        }
 263      }
 264    });
 265  
 266    // package-external:@wordpress/compose
 267    var require_compose = __commonJS({
 268      "package-external:@wordpress/compose"(exports, module) {
 269        module.exports = window.wp.compose;
 270      }
 271    });
 272  
 273    // package-external:@wordpress/a11y
 274    var require_a11y = __commonJS({
 275      "package-external:@wordpress/a11y"(exports, module) {
 276        module.exports = window.wp.a11y;
 277      }
 278    });
 279  
 280    // package-external:@wordpress/url
 281    var require_url = __commonJS({
 282      "package-external:@wordpress/url"(exports, module) {
 283        module.exports = window.wp.url;
 284      }
 285    });
 286  
 287    // package-external:@wordpress/html-entities
 288    var require_html_entities = __commonJS({
 289      "package-external:@wordpress/html-entities"(exports, module) {
 290        module.exports = window.wp.htmlEntities;
 291      }
 292    });
 293  
 294    // package-external:@wordpress/data
 295    var require_data = __commonJS({
 296      "package-external:@wordpress/data"(exports, module) {
 297        module.exports = window.wp.data;
 298      }
 299    });
 300  
 301    // packages/format-library/build-module/index.mjs
 302    var import_rich_text18 = __toESM(require_rich_text(), 1);
 303  
 304    // packages/format-library/build-module/bold/index.mjs
 305    var import_i18n = __toESM(require_i18n(), 1);
 306    var import_rich_text = __toESM(require_rich_text(), 1);
 307    var import_block_editor = __toESM(require_block_editor(), 1);
 308  
 309    // packages/icons/build-module/icon/index.mjs
 310    var import_element = __toESM(require_element(), 1);
 311    var icon_default = (0, import_element.forwardRef)(
 312      ({ icon: icon2, size: size4 = 24, style, ...props }, ref) => {
 313        const intrinsicStyle = icon2.props.style;
 314        const mergedStyle = intrinsicStyle || style ? { ...intrinsicStyle, ...style } : void 0;
 315        return (0, import_element.cloneElement)(icon2, {
 316          width: size4,
 317          height: size4,
 318          ...props,
 319          // Merge styles so the icon's intrinsic style (e.g. `fill: none` on
 320          // stroke-based icons) is preserved unless the consumer overrides
 321          // the same property explicitly.
 322          ...mergedStyle ? { style: mergedStyle } : {},
 323          ref
 324        });
 325      }
 326    );
 327  
 328    // packages/icons/build-module/library/button.mjs
 329    var import_primitives = __toESM(require_primitives(), 1);
 330    var import_jsx_runtime = __toESM(require_jsx_runtime(), 1);
 331    var button_default = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_primitives.Path, { d: "M8 11.75H16M5 16.25H19C19.6904 16.25 20.25 15.6904 20.25 15V8.5C20.25 7.80964 19.6904 7.25 19 7.25H5C4.30964 7.25 3.75 7.80964 3.75 8.5V15C3.75 15.6904 4.30964 16.25 5 16.25Z" }) });
 332  
 333    // packages/icons/build-module/library/check.mjs
 334    var import_primitives2 = __toESM(require_primitives(), 1);
 335    var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
 336    var check_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives2.Path, { d: "M7 12L10 15L17 8" }) });
 337  
 338    // packages/icons/build-module/library/chevron-down.mjs
 339    var import_primitives3 = __toESM(require_primitives(), 1);
 340    var import_jsx_runtime3 = __toESM(require_jsx_runtime(), 1);
 341    var chevron_down_default = /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_primitives3.Path, { d: "M7 11L12 15L17 11" }) });
 342  
 343    // packages/icons/build-module/library/code.mjs
 344    var import_primitives4 = __toESM(require_primitives(), 1);
 345    var import_jsx_runtime4 = __toESM(require_jsx_runtime(), 1);
 346    var code_default = /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_primitives4.Path, { d: "M7.99997 7L3.70708 11.2929C3.31655 11.6834 3.31655 12.3166 3.70708 12.7071L7.99997 17M16 17L20.2929 12.7071C20.6834 12.3166 20.6834 11.6834 20.2929 11.2929L16 7", strokeLinejoin: "round" }) });
 347  
 348    // packages/icons/build-module/library/color.mjs
 349    var import_primitives5 = __toESM(require_primitives(), 1);
 350    var import_jsx_runtime5 = __toESM(require_jsx_runtime(), 1);
 351    var color_default = /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_primitives5.Path, { d: "M17.25 14C17.25 16.8995 14.8995 19.25 12 19.25C9.10051 19.25 6.75 16.8995 6.75 14C6.75 11.1005 10 7.37 12 5.12C14 7.37 17.25 11.1005 17.25 14Z" }) });
 352  
 353    // packages/icons/build-module/library/error.mjs
 354    var import_primitives6 = __toESM(require_primitives(), 1);
 355    var import_jsx_runtime6 = __toESM(require_jsx_runtime(), 1);
 356    var error_default = /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_primitives6.Path, { d: "M12 9L12 14M12 15.5V17M11.1284 5.04947L3.83827 18.0097C3.46331 18.6763 3.94502 19.5 4.70985 19.5H19.2902C20.055 19.5 20.5367 18.6763 20.1617 18.0097L12.8716 5.04947C12.4893 4.36982 11.5107 4.36982 11.1284 5.04947Z" }) });
 357  
 358    // packages/icons/build-module/library/format-bold.mjs
 359    var import_primitives7 = __toESM(require_primitives(), 1);
 360    var import_jsx_runtime7 = __toESM(require_jsx_runtime(), 1);
 361    var format_bold_default = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_primitives7.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [
 362      /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.Path, { d: "M7.75 11.5V18H13.25C15.0449 18 16.5 16.5449 16.5 14.75C16.5 12.9551 15.0449 11.5 13.25 11.5H13M7.75 11.5V6H12.7441C14.2661 6 15.5 7.23387 15.5 8.75592C15.5 10.1718 14.4088 11.3591 13 11.5M7.75 11.5H13" }),
 363      /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_primitives7.Path, { d: "M8.25 11.75V17.5H12.8642C14.5503 17.5 15.8744 16.0557 15.7283 14.3759C15.5992 12.8903 14.3554 11.75 12.8642 11.75H8.25ZM8.25 11.75V11.25M8.25 11.25V6.5H12.625C13.9367 6.5 15 7.56332 15 8.875C15 10.1867 13.9367 11.25 12.625 11.25H8.25Z" })
 364    ] });
 365  
 366    // packages/icons/build-module/library/format-italic.mjs
 367    var import_primitives8 = __toESM(require_primitives(), 1);
 368    var import_jsx_runtime8 = __toESM(require_jsx_runtime(), 1);
 369    var format_italic_default = /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_primitives8.Path, { d: "M11 19L13.5 5" }) });
 370  
 371    // packages/icons/build-module/library/format-strikethrough.mjs
 372    var import_primitives9 = __toESM(require_primitives(), 1);
 373    var import_jsx_runtime9 = __toESM(require_jsx_runtime(), 1);
 374    var format_strikethrough_default = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_primitives9.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_primitives9.Path, { d: "M9 16.1554C12 18.02 15 16.5283 15 14.2908C15 13.6314 14.6839 12.999 14.1213 12.5328C14.108 12.5217 14.0945 12.5108 14.081 12.5M9 9.31845C9 7.49773 11.4313 6.3247 13.9199 7.4278M5.5 12.5H14.081M18.5 12.5H14.081", strokeLinecap: "square" }) });
 375  
 376    // packages/icons/build-module/library/help.mjs
 377    var import_primitives10 = __toESM(require_primitives(), 1);
 378    var import_jsx_runtime10 = __toESM(require_jsx_runtime(), 1);
 379    var help_default = /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_primitives10.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [
 380      /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_primitives10.Path, { d: "M9.75 10.25C9.75 9.00736 10.7574 8 12 8C13.2426 8 14.25 9.00736 14.25 10.25C14.25 11.4083 13.3748 12.3621 12.2496 12.4863C12.1124 12.5015 12 12.6119 12 12.75V14M12 15V16.5" }),
 381      /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_primitives10.Path, { d: "M19.25 12C19.25 16.0041 16.0041 19.25 12 19.25C7.99594 19.25 4.75 16.0041 4.75 12C4.75 7.99594 7.99594 4.75 12 4.75C16.0041 4.75 19.25 7.99594 19.25 12Z", strokeLinejoin: "round" })
 382    ] });
 383  
 384    // packages/icons/build-module/library/inline-image.mjs
 385    var import_primitives11 = __toESM(require_primitives(), 1);
 386    var import_jsx_runtime11 = __toESM(require_jsx_runtime(), 1);
 387    var inline_image_default = /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives11.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_primitives11.Path, { d: "M13.25 11.3197L11.4155 9.48453C11.3765 9.44547 11.3132 9.44546 11.2741 9.48452L9.05837 11.7003C9.02448 11.7341 8.97132 11.7392 8.93163 11.7124L7.0648 10.4495C7.03003 10.426 6.98426 10.4267 6.95022 10.4513L4.75 12.0405M13.25 11.3197V7C13.25 6.30964 12.6904 5.75 12 5.75H6C5.30964 5.75 4.75 6.30965 4.75 7V12.0405M13.25 11.3197V13C13.25 13.6904 12.6904 14.25 12 14.25H6C5.30964 14.25 4.75 13.6904 4.75 13V12.0405M16 14H20M4 18H20" }) });
 388  
 389    // packages/icons/build-module/library/language.mjs
 390    var import_primitives12 = __toESM(require_primitives(), 1);
 391    var import_jsx_runtime12 = __toESM(require_jsx_runtime(), 1);
 392    var language_default = /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_primitives12.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [
 393      /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives12.Path, { d: "M3 6H9.5M16 6H13.5M9.5 6V3M9.5 6H13.5M13.5 6C13.0477 7.24386 11.7361 9.79194 9.44037 12.5512M5.5 16.5C7.04336 15.2139 8.35238 13.8588 9.44037 12.5512M6.5 8C6.9232 8.9522 7.93743 10.7507 9.44037 12.5512M12.5 15.5C11.3314 14.6235 10.305 13.587 9.44037 12.5512" }),
 394      /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_primitives12.Path, { d: "M13.75 20V19.75L14.6667 17M14.6667 17L16.75 10.75H17.25L19.3333 17L20.25 19.75V20M19.3333 17H14.6667" })
 395    ] });
 396  
 397    // packages/icons/build-module/library/link.mjs
 398    var import_primitives13 = __toESM(require_primitives(), 1);
 399    var import_jsx_runtime13 = __toESM(require_jsx_runtime(), 1);
 400    var link_default = /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives13.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_primitives13.Path, { d: "M9.5 12L14.5 12M10 7.75H8.25C5.90279 7.75 4 9.65279 4 12C4 14.3472 5.90279 16.25 8.25 16.25H10M14 16.25H15.75C18.0972 16.25 20 14.3472 20 12C20 9.65279 18.0972 7.75 15.75 7.75L14 7.75" }) });
 401  
 402    // packages/icons/build-module/library/math.mjs
 403    var import_primitives14 = __toESM(require_primitives(), 1);
 404    var import_jsx_runtime14 = __toESM(require_jsx_runtime(), 1);
 405    var math_default = /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_primitives14.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_primitives14.Path, { d: "M3 14H5L6.8916 16.3645C6.93974 16.4247 7.03496 16.4101 7.06289 16.3383L10.2521 8.13755C10.4015 7.75318 10.7717 7.5 11.1841 7.5H19M17 11L14.5 13.5M12 16L14.5 13.5M14.5 13.5L17 16M14.5 13.5L12 11" }) });
 406  
 407    // packages/icons/build-module/library/published.mjs
 408    var import_primitives15 = __toESM(require_primitives(), 1);
 409    var import_jsx_runtime15 = __toESM(require_jsx_runtime(), 1);
 410    var published_default = /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_primitives15.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [
 411      /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_primitives15.Path, { d: "M12 19.25C16.0041 19.25 19.25 16.0041 19.25 12C19.25 7.99594 16.0041 4.75 12 4.75C7.99594 4.75 4.75 7.99594 4.75 12C4.75 16.0041 7.99594 19.25 12 19.25Z", strokeLinejoin: "round" }),
 412      /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_primitives15.Path, { d: "M9 12L11 14L15 10" })
 413    ] });
 414  
 415    // packages/icons/build-module/library/subscript.mjs
 416    var import_primitives16 = __toESM(require_primitives(), 1);
 417    var import_jsx_runtime16 = __toESM(require_jsx_runtime(), 1);
 418    var subscript_default = /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_primitives16.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [
 419      /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives16.Path, { d: "M17.75 18.5988H15.75C15.75 16.5322 17.75 17.0489 17.75 15.4989C17.75 14.7239 16.75 14.0738 15.75 14.8488", strokeLinecap: "square" }),
 420      /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_primitives16.Path, { d: "M10 12L13 7.4V7M10 12L7 7.4L7.00004 7M10 12L7 16.6V17M10 12L13 16.6V17" })
 421    ] });
 422  
 423    // packages/icons/build-module/library/superscript.mjs
 424    var import_primitives17 = __toESM(require_primitives(), 1);
 425    var import_jsx_runtime17 = __toESM(require_jsx_runtime(), 1);
 426    var superscript_default = /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_primitives17.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [
 427      /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_primitives17.Path, { d: "M17.75 8.59884H15.75C15.75 6.53219 17.75 7.04885 17.75 5.49887C17.75 4.72388 16.75 4.07384 15.75 4.84884", strokeLinecap: "square" }),
 428      /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_primitives17.Path, { d: "M10 12L13 7.4V7M10 12L7 7.4L7.00004 7M10 12L7 16.6V17M10 12L13 16.6V17" })
 429    ] });
 430  
 431    // packages/icons/build-module/library/text-color.mjs
 432    var import_primitives18 = __toESM(require_primitives(), 1);
 433    var import_jsx_runtime18 = __toESM(require_jsx_runtime(), 1);
 434    var text_color_default = /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_primitives18.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_primitives18.Path, { d: "M8 17.5V17.223L9.01577 14.1757M9.01577 14.1757L11.3243 7.25H11.8784L14.1869 14.1757L15.2027 17.223V17.5M14.1869 14.1757H9.01577" }) });
 435  
 436    // packages/format-library/build-module/bold/index.mjs
 437    var import_jsx_runtime19 = __toESM(require_jsx_runtime(), 1);
 438    var name = "core/bold";
 439    var title = (0, import_i18n.__)("Bold");
 440    var bold = {
 441      name,
 442      title,
 443      tagName: "strong",
 444      className: null,
 445      edit({
 446        isActive,
 447        value,
 448        onChange,
 449        onFocus,
 450        isVisible = true
 451      }) {
 452        function onToggle() {
 453          onChange((0, import_rich_text.toggleFormat)(value, { type: name, title }));
 454        }
 455        function onClick() {
 456          onChange((0, import_rich_text.toggleFormat)(value, { type: name, title }));
 457          onFocus();
 458        }
 459        return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_jsx_runtime19.Fragment, { children: [
 460          /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
 461            import_block_editor.RichTextShortcut,
 462            {
 463              type: "primary",
 464              character: "b",
 465              onUse: onToggle
 466            }
 467          ),
 468          isVisible && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
 469            import_block_editor.RichTextToolbarButton,
 470            {
 471              name: "bold",
 472              icon: format_bold_default,
 473              title,
 474              onClick,
 475              isActive,
 476              shortcutType: "primary",
 477              shortcutCharacter: "b"
 478            }
 479          ),
 480          /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
 481            import_block_editor.__unstableRichTextInputEvent,
 482            {
 483              inputType: "formatBold",
 484              onInput: onToggle
 485            }
 486          )
 487        ] });
 488      }
 489    };
 490  
 491    // packages/format-library/build-module/code/index.mjs
 492    var import_i18n2 = __toESM(require_i18n(), 1);
 493    var import_rich_text2 = __toESM(require_rich_text(), 1);
 494    var import_block_editor2 = __toESM(require_block_editor(), 1);
 495    var import_jsx_runtime20 = __toESM(require_jsx_runtime(), 1);
 496    var name2 = "core/code";
 497    var title2 = (0, import_i18n2.__)("Inline code");
 498    var code = {
 499      name: name2,
 500      title: title2,
 501      tagName: "code",
 502      className: null,
 503      __unstableInputRule(value) {
 504        const BACKTICK = "`";
 505        const { start, text } = value;
 506        if (start === void 0) {
 507          return value;
 508        }
 509        const characterBefore = text[start - 1];
 510        if (characterBefore !== BACKTICK) {
 511          return value;
 512        }
 513        if (start - 2 < 0) {
 514          return value;
 515        }
 516        const indexBefore = text.lastIndexOf(BACKTICK, start - 2);
 517        if (indexBefore === -1) {
 518          return value;
 519        }
 520        const startIndex = indexBefore;
 521        const endIndex = start - 2;
 522        if (startIndex === endIndex) {
 523          return value;
 524        }
 525        value = (0, import_rich_text2.remove)(value, startIndex, startIndex + 1);
 526        value = (0, import_rich_text2.remove)(value, endIndex, endIndex + 1);
 527        value = (0, import_rich_text2.applyFormat)(value, { type: name2 }, startIndex, endIndex);
 528        return value;
 529      },
 530      edit({
 531        value,
 532        onChange,
 533        onFocus,
 534        isActive
 535      }) {
 536        function onClick() {
 537          onChange((0, import_rich_text2.toggleFormat)(value, { type: name2, title: title2 }));
 538          onFocus();
 539        }
 540        return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
 541          /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
 542            import_block_editor2.RichTextShortcut,
 543            {
 544              type: "access",
 545              character: "x",
 546              onUse: onClick
 547            }
 548          ),
 549          /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
 550            import_block_editor2.RichTextToolbarButton,
 551            {
 552              icon: code_default,
 553              title: title2,
 554              onClick,
 555              isActive,
 556              role: "menuitemcheckbox"
 557            }
 558          )
 559        ] });
 560      }
 561    };
 562  
 563    // packages/format-library/build-module/image/index.mjs
 564    var import_components = __toESM(require_components(), 1);
 565  
 566    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useRenderElement.mjs
 567    var React4 = __toESM(require_react(), 1);
 568  
 569    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useRefWithInit.mjs
 570    var React = __toESM(require_react(), 1);
 571    var UNINITIALIZED = {};
 572    function useRefWithInit(init, initArg) {
 573      const ref = React.useRef(UNINITIALIZED);
 574      if (ref.current === UNINITIALIZED) {
 575        ref.current = init(initArg);
 576      }
 577      return ref;
 578    }
 579  
 580    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useMergedRefs.mjs
 581    function useMergedRefs(a, b, c, d) {
 582      const forkRef = useRefWithInit(createForkRef).current;
 583      if (didChange(forkRef, a, b, c, d)) {
 584        update(forkRef, [a, b, c, d]);
 585      }
 586      return forkRef.callback;
 587    }
 588    function useMergedRefsN(refs) {
 589      const forkRef = useRefWithInit(createForkRef).current;
 590      if (didChangeN(forkRef, refs)) {
 591        update(forkRef, refs);
 592      }
 593      return forkRef.callback;
 594    }
 595    function createForkRef() {
 596      return {
 597        callback: null,
 598        cleanup: null,
 599        refs: []
 600      };
 601    }
 602    function didChange(forkRef, a, b, c, d) {
 603      return forkRef.refs[0] !== a || forkRef.refs[1] !== b || forkRef.refs[2] !== c || forkRef.refs[3] !== d;
 604    }
 605    function didChangeN(forkRef, newRefs) {
 606      return forkRef.refs.length !== newRefs.length || forkRef.refs.some((ref, index3) => ref !== newRefs[index3]);
 607    }
 608    function update(forkRef, refs) {
 609      forkRef.refs = refs;
 610      if (refs.every((ref) => ref == null)) {
 611        forkRef.callback = null;
 612        return;
 613      }
 614      forkRef.callback = (instance) => {
 615        if (forkRef.cleanup) {
 616          forkRef.cleanup();
 617          forkRef.cleanup = null;
 618        }
 619        if (instance != null) {
 620          const cleanupCallbacks = Array(refs.length).fill(null);
 621          for (let i = 0; i < refs.length; i += 1) {
 622            const ref = refs[i];
 623            if (ref == null) {
 624              continue;
 625            }
 626            switch (typeof ref) {
 627              case "function": {
 628                const refCleanup = ref(instance);
 629                if (typeof refCleanup === "function") {
 630                  cleanupCallbacks[i] = refCleanup;
 631                }
 632                break;
 633              }
 634              case "object": {
 635                ref.current = instance;
 636                break;
 637              }
 638              default:
 639            }
 640          }
 641          forkRef.cleanup = () => {
 642            for (let i = 0; i < refs.length; i += 1) {
 643              const ref = refs[i];
 644              if (ref == null) {
 645                continue;
 646              }
 647              switch (typeof ref) {
 648                case "function": {
 649                  const cleanupCallback = cleanupCallbacks[i];
 650                  if (typeof cleanupCallback === "function") {
 651                    cleanupCallback();
 652                  } else {
 653                    void ref(null);
 654                  }
 655                  break;
 656                }
 657                case "object": {
 658                  ref.current = null;
 659                  break;
 660                }
 661                default:
 662              }
 663            }
 664          };
 665        }
 666      };
 667    }
 668  
 669    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/getReactElementRef.mjs
 670    var React3 = __toESM(require_react(), 1);
 671  
 672    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/reactVersion.mjs
 673    var React2 = __toESM(require_react(), 1);
 674    var majorVersion = parseInt(React2.version, 10);
 675    function isReactVersionAtLeast(reactVersionToCheck) {
 676      return majorVersion >= reactVersionToCheck;
 677    }
 678  
 679    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/getReactElementRef.mjs
 680    function getReactElementRef(element) {
 681      if (!/* @__PURE__ */ React3.isValidElement(element)) {
 682        return null;
 683      }
 684      const reactElement = element;
 685      const propsWithRef = reactElement.props;
 686      return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null;
 687    }
 688  
 689    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/mergeObjects.mjs
 690    function mergeObjects(a, b) {
 691      if (a && !b) {
 692        return a;
 693      }
 694      if (!a && b) {
 695        return b;
 696      }
 697      if (a || b) {
 698        return {
 699          ...a,
 700          ...b
 701        };
 702      }
 703      return void 0;
 704    }
 705  
 706    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/createLogOnce.mjs
 707    var loggedMessages;
 708    if (true) {
 709      loggedMessages = /* @__PURE__ */ new Set();
 710    }
 711    function createLogOnce(severity, prefix) {
 712      return function logOnce(...messages) {
 713        if (true) {
 714          const message = messages.join(" ");
 715          const output = prefix ? `$prefix}: $message}` : message;
 716          const key = `$severity}:$output}`;
 717          if (!loggedMessages.has(key)) {
 718            loggedMessages.add(key);
 719            if (severity === "warn") {
 720              console.warn(output);
 721            } else {
 722              console.error(output);
 723            }
 724          }
 725        }
 726      };
 727    }
 728  
 729    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/warn.mjs
 730    var warn = createLogOnce("warn", "Base UI");
 731  
 732    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/empty.mjs
 733    function NOOP() {
 734    }
 735    var EMPTY_ARRAY = Object.freeze([]);
 736    var EMPTY_OBJECT = Object.freeze({});
 737  
 738    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/getStateAttributesProps.mjs
 739    function getStateAttributesProps(state, customMapping) {
 740      const props = {};
 741      for (const key in state) {
 742        const value = state[key];
 743        if (customMapping?.hasOwnProperty(key)) {
 744          const customProps = customMapping[key](value);
 745          if (customProps != null) {
 746            Object.assign(props, customProps);
 747          }
 748          continue;
 749        }
 750        if (value === true) {
 751          props[`data-$key.toLowerCase()}`] = "";
 752        } else if (value) {
 753          props[`data-$key.toLowerCase()}`] = value.toString();
 754        }
 755      }
 756      return props;
 757    }
 758  
 759    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/resolveClassName.mjs
 760    function resolveClassName(className, state) {
 761      return typeof className === "function" ? className(state) : className;
 762    }
 763  
 764    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/resolveStyle.mjs
 765    function resolveStyle(style, state) {
 766      return typeof style === "function" ? style(state) : style;
 767    }
 768  
 769    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/merge-props/mergeProps.mjs
 770    var EMPTY_PROPS = {};
 771    function mergeProps(a, b, c, d, e) {
 772      if (!c && !d && !e && !a) {
 773        return createInitialMergedProps(b);
 774      }
 775      let merged = createInitialMergedProps(a);
 776      if (b) {
 777        merged = mergeInto(merged, b);
 778      }
 779      if (c) {
 780        merged = mergeInto(merged, c);
 781      }
 782      if (d) {
 783        merged = mergeInto(merged, d);
 784      }
 785      if (e) {
 786        merged = mergeInto(merged, e);
 787      }
 788      return merged;
 789    }
 790    function mergePropsN(props) {
 791      if (props.length === 0) {
 792        return EMPTY_PROPS;
 793      }
 794      if (props.length === 1) {
 795        return createInitialMergedProps(props[0]);
 796      }
 797      let merged = createInitialMergedProps(props[0]);
 798      for (let i = 1; i < props.length; i += 1) {
 799        merged = mergeInto(merged, props[i]);
 800      }
 801      return merged;
 802    }
 803    function createInitialMergedProps(inputProps) {
 804      if (isPropsGetter(inputProps)) {
 805        return {
 806          ...inputProps(EMPTY_PROPS)
 807        };
 808      }
 809      return copyInitialProps(inputProps);
 810    }
 811    function mergeInto(merged, inputProps) {
 812      if (isPropsGetter(inputProps)) {
 813        return inputProps(merged);
 814      }
 815      return mutablyMergeInto(merged, inputProps);
 816    }
 817    function copyInitialProps(inputProps) {
 818      const copiedProps = {
 819        ...inputProps
 820      };
 821      for (const propName in copiedProps) {
 822        const propValue = copiedProps[propName];
 823        if (isEventHandler(propName, propValue)) {
 824          copiedProps[propName] = wrapEventHandler(propValue);
 825        }
 826      }
 827      return copiedProps;
 828    }
 829    function mutablyMergeInto(mergedProps, externalProps) {
 830      if (!externalProps) {
 831        return mergedProps;
 832      }
 833      for (const propName in externalProps) {
 834        const externalPropValue = externalProps[propName];
 835        switch (propName) {
 836          case "style": {
 837            mergedProps[propName] = mergeObjects(mergedProps.style, externalPropValue);
 838            break;
 839          }
 840          case "className": {
 841            mergedProps[propName] = mergeClassNames(mergedProps.className, externalPropValue);
 842            break;
 843          }
 844          default: {
 845            if (isEventHandler(propName, externalPropValue)) {
 846              mergedProps[propName] = mergeEventHandlers(mergedProps[propName], externalPropValue);
 847            } else {
 848              mergedProps[propName] = externalPropValue;
 849            }
 850          }
 851        }
 852      }
 853      return mergedProps;
 854    }
 855    function isEventHandler(key, value) {
 856      const code0 = key.charCodeAt(0);
 857      const code1 = key.charCodeAt(1);
 858      const code2 = key.charCodeAt(2);
 859      return code0 === 111 && code1 === 110 && code2 >= 65 && code2 <= 90 && (typeof value === "function" || typeof value === "undefined");
 860    }
 861    function isPropsGetter(inputProps) {
 862      return typeof inputProps === "function";
 863    }
 864    function mergeEventHandlers(ourHandler, theirHandler) {
 865      if (!theirHandler) {
 866        return ourHandler;
 867      }
 868      if (!ourHandler) {
 869        return wrapEventHandler(theirHandler);
 870      }
 871      return (...args) => {
 872        const event = args[0];
 873        if (isSyntheticEvent(event)) {
 874          const baseUIEvent = event;
 875          makeEventPreventable(baseUIEvent);
 876          const result2 = theirHandler(...args);
 877          if (!baseUIEvent.baseUIHandlerPrevented) {
 878            ourHandler?.(...args);
 879          }
 880          return result2;
 881        }
 882        const result = theirHandler(...args);
 883        ourHandler?.(...args);
 884        return result;
 885      };
 886    }
 887    function wrapEventHandler(handler) {
 888      if (!handler) {
 889        return handler;
 890      }
 891      return (...args) => {
 892        const event = args[0];
 893        if (isSyntheticEvent(event)) {
 894          makeEventPreventable(event);
 895        }
 896        return handler(...args);
 897      };
 898    }
 899    function makeEventPreventable(event) {
 900      event.preventBaseUIHandler = () => {
 901        event.baseUIHandlerPrevented = true;
 902      };
 903      return event;
 904    }
 905    function mergeClassNames(ourClassName, theirClassName) {
 906      if (theirClassName) {
 907        if (ourClassName) {
 908          return theirClassName + " " + ourClassName;
 909        }
 910        return theirClassName;
 911      }
 912      return ourClassName;
 913    }
 914    function isSyntheticEvent(event) {
 915      return event != null && typeof event === "object" && "nativeEvent" in event;
 916    }
 917  
 918    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useRenderElement.mjs
 919    var import_react = __toESM(require_react(), 1);
 920    function useRenderElement(element, componentProps, params = {}) {
 921      let renderProp = componentProps.render;
 922      if (params.enabled !== false) {
 923        renderProp = unwrapLazyRenderProp(renderProp);
 924      }
 925      const outProps = useRenderElementProps(componentProps, params, renderProp);
 926      if (params.enabled === false) {
 927        return null;
 928      }
 929      const state = params.state ?? EMPTY_OBJECT;
 930      return evaluateRenderProp(element, renderProp, outProps, state);
 931    }
 932    function useRenderElementProps(componentProps, params, renderProp) {
 933      const {
 934        className: classNameProp,
 935        style: styleProp
 936      } = componentProps;
 937      const {
 938        state = EMPTY_OBJECT,
 939        ref,
 940        props,
 941        stateAttributesMapping: stateAttributesMapping8,
 942        enabled = true
 943      } = params;
 944      const className = enabled ? resolveClassName(classNameProp, state) : void 0;
 945      const style = enabled ? resolveStyle(styleProp, state) : void 0;
 946      const stateProps = enabled ? getStateAttributesProps(state, stateAttributesMapping8) : EMPTY_OBJECT;
 947      const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : void 0;
 948      const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;
 949      if (typeof document !== "undefined") {
 950        if (!enabled) {
 951          void useMergedRefs(null, null);
 952        } else if (Array.isArray(ref)) {
 953          outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);
 954        } else {
 955          outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);
 956        }
 957      }
 958      if (!enabled) {
 959        return EMPTY_OBJECT;
 960      }
 961      if (className !== void 0) {
 962        outProps.className = mergeClassNames(outProps.className, className);
 963      }
 964      if (style !== void 0) {
 965        outProps.style = mergeObjects(outProps.style, style);
 966      }
 967      return outProps;
 968    }
 969    function resolveRenderFunctionProps(props) {
 970      if (Array.isArray(props)) {
 971        return mergePropsN(props);
 972      }
 973      return mergeProps(void 0, props);
 974    }
 975    var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
 976    var COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;
 977    var LOWERCASE_CHARACTER_PATTERN = /[a-z]/;
 978    function unwrapLazyRenderProp(render) {
 979      if (render?.$$typeof !== REACT_LAZY_TYPE) {
 980        return render;
 981      }
 982      const unwrapped = React4.Children.toArray(render)[0];
 983      return /* @__PURE__ */ React4.isValidElement(unwrapped) ? unwrapped : render;
 984    }
 985    function evaluateRenderProp(element, render, props, state) {
 986      if (render) {
 987        if (typeof render === "function") {
 988          if (true) {
 989            warnIfRenderPropLooksLikeComponent(render);
 990          }
 991          return render(props, state);
 992        }
 993        const mergedProps = mergeProps(props, render.props);
 994        mergedProps.ref = props.ref;
 995        if (true) {
 996          if (!/* @__PURE__ */ React4.isValidElement(render)) {
 997            throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.", "A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.", "https://base-ui.com/r/invalid-render-prop"].join("\n"));
 998          }
 999        }
1000        return /* @__PURE__ */ React4.cloneElement(render, mergedProps);
1001      }
1002      return renderTag(element, props);
1003    }
1004    function warnIfRenderPropLooksLikeComponent(renderFn) {
1005      const functionName = renderFn.name;
1006      if (functionName.length === 0) {
1007        return;
1008      }
1009      if (!COMPONENT_IDENTIFIER_PATTERN.test(functionName)) {
1010        return;
1011      }
1012      if (!LOWERCASE_CHARACTER_PATTERN.test(functionName)) {
1013        return;
1014      }
1015      warn(`The \`render\` prop received a function named \`$functionName}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
1016    }
1017    function renderTag(Tag, props) {
1018      if (Tag === "button") {
1019        return /* @__PURE__ */ (0, import_react.createElement)("button", {
1020          type: "button",
1021          ...props,
1022          key: props.key
1023        });
1024      }
1025      if (Tag === "img") {
1026        return /* @__PURE__ */ (0, import_react.createElement)("img", {
1027          alt: "",
1028          ...props,
1029          key: props.key
1030        });
1031      }
1032      return /* @__PURE__ */ React4.createElement(Tag, props);
1033    }
1034  
1035    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/safeReact.mjs
1036    var React5 = __toESM(require_react(), 1);
1037    var SafeReact = {
1038      ...React5
1039    };
1040  
1041    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useStableCallback.mjs
1042    var useInsertionEffect = SafeReact.useInsertionEffect;
1043    var useSafeInsertionEffect = (
1044      // React 17 doesn't have useInsertionEffect.
1045      useInsertionEffect && // Preact replaces useInsertionEffect with useLayoutEffect and fires too late.
1046      useInsertionEffect !== SafeReact.useLayoutEffect ? useInsertionEffect : (fn) => fn()
1047    );
1048    function useStableCallback(callback) {
1049      const stable = useRefWithInit(createStableCallback).current;
1050      stable.next = callback;
1051      useSafeInsertionEffect(stable.effect);
1052      return stable.trampoline;
1053    }
1054    function createStableCallback() {
1055      const stable = {
1056        next: void 0,
1057        callback: assertNotCalled,
1058        trampoline: (...args) => stable.callback?.(...args),
1059        effect: () => {
1060          stable.callback = stable.next;
1061        }
1062      };
1063      return stable;
1064    }
1065    function assertNotCalled() {
1066      if (true) {
1067        throw (
1068          /* minify-error-disabled */
1069          new Error("Base UI: Cannot call an event handler while rendering.")
1070        );
1071      }
1072    }
1073  
1074    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useIsoLayoutEffect.mjs
1075    var React6 = __toESM(require_react(), 1);
1076    var noop = () => {
1077    };
1078    var useIsoLayoutEffect = typeof document !== "undefined" ? React6.useLayoutEffect : noop;
1079  
1080    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useOpenChangeComplete.mjs
1081    var React8 = __toESM(require_react(), 1);
1082  
1083    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useAnimationsFinished.mjs
1084    var ReactDOM = __toESM(require_react_dom(), 1);
1085  
1086    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useOnMount.mjs
1087    var React7 = __toESM(require_react(), 1);
1088    function useOnMount(fn) {
1089      React7.useEffect(fn, EMPTY_ARRAY);
1090    }
1091  
1092    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useAnimationFrame.mjs
1093    var EMPTY = null;
1094    var LAST_RAF = globalThis.requestAnimationFrame;
1095    var Scheduler = class {
1096      /* This implementation uses an array as a backing data-structure for frame callbacks.
1097       * It allows `O(1)` callback cancelling by inserting a `null` in the array, though it
1098       * never calls the native `cancelAnimationFrame` if there are no frames left. This can
1099       * be much more efficient if there is a call pattern that alterns as
1100       * "request-cancel-request-cancel-…".
1101       * But in the case of "request-request-…-cancel-cancel-…", it leaves the final animation
1102       * frame to run anyway. We turn that frame into a `O(1)` no-op via `callbacksCount`. */
1103      callbacks = [];
1104      callbacksCount = 0;
1105      nextId = 1;
1106      startId = 1;
1107      isScheduled = false;
1108      tick = (timestamp) => {
1109        this.isScheduled = false;
1110        const currentCallbacks = this.callbacks;
1111        const currentCallbacksCount = this.callbacksCount;
1112        this.callbacks = [];
1113        this.callbacksCount = 0;
1114        this.startId = this.nextId;
1115        if (currentCallbacksCount > 0) {
1116          for (let i = 0; i < currentCallbacks.length; i += 1) {
1117            currentCallbacks[i]?.(timestamp);
1118          }
1119        }
1120      };
1121      request(fn) {
1122        const id = this.nextId;
1123        this.nextId += 1;
1124        this.callbacks.push(fn);
1125        this.callbacksCount += 1;
1126        const didRAFChange = LAST_RAF !== requestAnimationFrame && (LAST_RAF = requestAnimationFrame, true);
1127        if (!this.isScheduled || didRAFChange) {
1128          requestAnimationFrame(this.tick);
1129          this.isScheduled = true;
1130        }
1131        return id;
1132      }
1133      cancel(id) {
1134        const index3 = id - this.startId;
1135        if (index3 < 0 || index3 >= this.callbacks.length) {
1136          return;
1137        }
1138        if (this.callbacks[index3] === null) {
1139          return;
1140        }
1141        this.callbacks[index3] = null;
1142        this.callbacksCount -= 1;
1143      }
1144    };
1145    var scheduler = new Scheduler();
1146    var AnimationFrame = class _AnimationFrame {
1147      static create() {
1148        return new _AnimationFrame();
1149      }
1150      static request(fn) {
1151        return scheduler.request(fn);
1152      }
1153      static cancel(id) {
1154        return scheduler.cancel(id);
1155      }
1156      currentId = EMPTY;
1157      /**
1158       * Executes `fn` after `delay`, clearing any previously scheduled call.
1159       */
1160      request(fn) {
1161        this.cancel();
1162        this.currentId = scheduler.request(() => {
1163          this.currentId = EMPTY;
1164          fn();
1165        });
1166      }
1167      cancel = () => {
1168        if (this.currentId !== EMPTY) {
1169          scheduler.cancel(this.currentId);
1170          this.currentId = EMPTY;
1171        }
1172      };
1173      disposeEffect = () => {
1174        return this.cancel;
1175      };
1176    };
1177    function useAnimationFrame() {
1178      const timeout = useRefWithInit(AnimationFrame.create).current;
1179      useOnMount(timeout.disposeEffect);
1180      return timeout;
1181    }
1182  
1183    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/resolveRef.mjs
1184    function resolveRef(maybeRef) {
1185      if (maybeRef == null) {
1186        return maybeRef;
1187      }
1188      return "current" in maybeRef ? maybeRef.current : maybeRef;
1189    }
1190  
1191    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/getFiniteAnimations.mjs
1192    function getFiniteAnimations(element, options) {
1193      return element.getAnimations(options).filter((animation) => {
1194        const timing = animation.effect?.getTiming();
1195        return timing?.duration !== Infinity && timing?.iterations !== Infinity;
1196      });
1197    }
1198  
1199    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/TransitionStatusDataAttributes.mjs
1200    var TransitionStatusDataAttributes_exports = {};
1201    __export(TransitionStatusDataAttributes_exports, {
1202      endingStyle: () => endingStyle,
1203      startingStyle: () => startingStyle
1204    });
1205    var startingStyle = "data-starting-style";
1206    var endingStyle = "data-ending-style";
1207  
1208    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useAnimationsFinished.mjs
1209    var pendingCallbacks = null;
1210    function flushBeforePaint(fn) {
1211      if (!pendingCallbacks) {
1212        const callbacks = [];
1213        pendingCallbacks = callbacks;
1214        queueMicrotask(() => {
1215          pendingCallbacks = null;
1216          ReactDOM.flushSync(() => {
1217            for (const callback of callbacks) {
1218              callback();
1219            }
1220          });
1221        });
1222      }
1223      pendingCallbacks.push(fn);
1224    }
1225    function useAnimationsFinished(elementOrRef, waitForStartingStyleRemoved = false, batch = false) {
1226      const frame = useAnimationFrame();
1227      return useStableCallback((fnToExecute, signal = null) => {
1228        frame.cancel();
1229        const element = resolveRef(elementOrRef);
1230        if (element == null) {
1231          return;
1232        }
1233        const resolvedElement = element;
1234        const done = () => {
1235          if (!batch) {
1236            ReactDOM.flushSync(fnToExecute);
1237            return;
1238          }
1239          flushBeforePaint(() => {
1240            if (!signal?.aborted) {
1241              fnToExecute();
1242            }
1243          });
1244        };
1245        if (typeof resolvedElement.getAnimations !== "function" || globalThis.BASE_UI_ANIMATIONS_DISABLED) {
1246          fnToExecute();
1247          return;
1248        }
1249        function exec() {
1250          Promise.all(getFiniteAnimations(resolvedElement).map((animation) => animation.finished.then(NOOP))).then(() => {
1251            if (!signal?.aborted) {
1252              done();
1253            }
1254          }, () => {
1255            if (signal?.aborted) {
1256              return;
1257            }
1258            const currentAnimations = getFiniteAnimations(resolvedElement);
1259            if (currentAnimations.some((animation) => animation.pending || animation.playState !== "finished")) {
1260              exec();
1261              return;
1262            }
1263            done();
1264          });
1265        }
1266        if (waitForStartingStyleRemoved) {
1267          const startingStyleAttribute = startingStyle;
1268          if (!resolvedElement.hasAttribute(startingStyleAttribute)) {
1269            frame.request(exec);
1270            return;
1271          }
1272          const attributeObserver = new MutationObserver(() => {
1273            if (!resolvedElement.hasAttribute(startingStyleAttribute)) {
1274              attributeObserver.disconnect();
1275              exec();
1276            }
1277          });
1278          attributeObserver.observe(resolvedElement, {
1279            attributes: true,
1280            attributeFilter: [startingStyleAttribute]
1281          });
1282          signal?.addEventListener("abort", () => attributeObserver.disconnect(), {
1283            once: true
1284          });
1285          return;
1286        }
1287        frame.request(exec);
1288      });
1289    }
1290  
1291    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useOpenChangeComplete.mjs
1292    function useOpenChangeComplete(parameters) {
1293      const {
1294        enabled = true,
1295        open: open2,
1296        ref,
1297        batch = false,
1298        onComplete: onCompleteParam
1299      } = parameters;
1300      const onComplete = useStableCallback(onCompleteParam);
1301      const runOnceAnimationsFinish = useAnimationsFinished(ref, open2, batch);
1302      React8.useEffect(() => {
1303        if (!enabled) {
1304          return void 0;
1305        }
1306        const abortController = new AbortController();
1307        runOnceAnimationsFinish(onComplete, abortController.signal);
1308        return () => {
1309          abortController.abort();
1310        };
1311      }, [enabled, open2, onComplete, runOnceAnimationsFinish]);
1312    }
1313  
1314    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/stateAttributesMapping.mjs
1315    var STARTING_HOOK = {
1316      [startingStyle]: ""
1317    };
1318    var ENDING_HOOK = {
1319      [endingStyle]: ""
1320    };
1321    var transitionStatusMapping = {
1322      transitionStatus(value) {
1323        if (value === "starting") {
1324          return STARTING_HOOK;
1325        }
1326        if (value === "ending") {
1327          return ENDING_HOOK;
1328        }
1329        return null;
1330      }
1331    };
1332  
1333    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useTransitionStatus.mjs
1334    var React9 = __toESM(require_react(), 1);
1335    function useTransitionStatus(open2, enableIdleState = false, deferEndingState = false, animateInitialOpen = false) {
1336      const [transitionStatus, setTransitionStatus] = React9.useState(open2 && enableIdleState ? "idle" : void 0);
1337      const [mounted, setMounted] = React9.useState(open2 && !animateInitialOpen);
1338      if (open2 && !mounted) {
1339        setMounted(true);
1340        setTransitionStatus("starting");
1341      }
1342      if (!open2 && mounted && transitionStatus !== "ending" && !deferEndingState) {
1343        setTransitionStatus("ending");
1344      }
1345      if (!open2 && !mounted && transitionStatus === "ending") {
1346        setTransitionStatus(void 0);
1347      }
1348      useIsoLayoutEffect(() => {
1349        if (!open2 && mounted && transitionStatus !== "ending" && deferEndingState) {
1350          const frame = AnimationFrame.request(() => {
1351            setTransitionStatus("ending");
1352          });
1353          return () => {
1354            AnimationFrame.cancel(frame);
1355          };
1356        }
1357        return void 0;
1358      }, [open2, mounted, transitionStatus, deferEndingState]);
1359      useIsoLayoutEffect(() => {
1360        if (!open2 || enableIdleState || transitionStatus === void 0) {
1361          return void 0;
1362        }
1363        const frame = AnimationFrame.request(() => {
1364          setTransitionStatus(void 0);
1365        });
1366        return () => {
1367          AnimationFrame.cancel(frame);
1368        };
1369      }, [enableIdleState, open2, transitionStatus]);
1370      useIsoLayoutEffect(() => {
1371        if (!open2 || !enableIdleState) {
1372          return void 0;
1373        }
1374        if (open2 && mounted && transitionStatus !== "idle") {
1375          setTransitionStatus("starting");
1376        }
1377        const frame = AnimationFrame.request(() => {
1378          setTransitionStatus("idle");
1379        });
1380        return () => {
1381          AnimationFrame.cancel(frame);
1382        };
1383      }, [enableIdleState, open2, mounted, transitionStatus]);
1384      return {
1385        mounted,
1386        setMounted,
1387        transitionStatus
1388      };
1389    }
1390  
1391    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useTimeout.mjs
1392    var EMPTY2 = 0;
1393    var Timeout = class _Timeout {
1394      static create() {
1395        return new _Timeout();
1396      }
1397      currentId = EMPTY2;
1398      /**
1399       * Executes `fn` after `delay`, clearing any previously scheduled call.
1400       */
1401      start(delay, fn) {
1402        this.clear();
1403        this.currentId = setTimeout(() => {
1404          this.currentId = EMPTY2;
1405          fn();
1406        }, delay);
1407      }
1408      isStarted() {
1409        return this.currentId !== EMPTY2;
1410      }
1411      clear = () => {
1412        if (this.currentId !== EMPTY2) {
1413          clearTimeout(this.currentId);
1414          this.currentId = EMPTY2;
1415        }
1416      };
1417      disposeEffect = () => {
1418        return this.clear;
1419      };
1420    };
1421    function useTimeout() {
1422      const timeout = useRefWithInit(Timeout.create).current;
1423      useOnMount(timeout.disposeEffect);
1424      return timeout;
1425    }
1426  
1427    // node_modules/.store/clsx@2.1.1-XOLP1vUL9vEGfpiXm37fAw/node_modules/clsx/dist/clsx.mjs
1428    function r(e) {
1429      var t, f, n = "";
1430      if ("string" == typeof e || "number" == typeof e) n += e;
1431      else if ("object" == typeof e) if (Array.isArray(e)) {
1432        var o = e.length;
1433        for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
1434      } else for (f in e) e[f] && (n && (n += " "), n += f);
1435      return n;
1436    }
1437    function clsx() {
1438      for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
1439      return n;
1440    }
1441    var clsx_default = clsx;
1442  
1443    // packages/ui/build-module/icon/icon.mjs
1444    var import_element2 = __toESM(require_element(), 1);
1445    var import_primitives19 = __toESM(require_primitives(), 1);
1446    var import_jsx_runtime21 = __toESM(require_jsx_runtime(), 1);
1447    var Icon = (0, import_element2.forwardRef)(
1448      function UnforwardedIcon({ icon: icon2, size: size4 = 24, style, ...restProps }, ref) {
1449        const mergedStyle = icon2.props.style || style ? { ...icon2.props.style, ...style } : void 0;
1450        return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1451          import_primitives19.SVG,
1452          {
1453            ref,
1454            ...icon2.props,
1455            ...restProps,
1456            ...mergedStyle ? { style: mergedStyle } : {},
1457            width: size4,
1458            height: size4
1459          }
1460        );
1461      }
1462    );
1463  
1464    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useControlled.mjs
1465    var React10 = __toESM(require_react(), 1);
1466  
1467    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/error.mjs
1468    var error = createLogOnce("error", "Base UI");
1469  
1470    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useControlled.mjs
1471    function useControlled({
1472      controlled,
1473      default: defaultProp,
1474      name: name16,
1475      state = "value"
1476    }) {
1477      const {
1478        current: isControlled
1479      } = React10.useRef(controlled !== void 0);
1480      const [valueState, setValue] = React10.useState(() => defaultProp);
1481      const value = isControlled && controlled !== void 0 ? controlled : valueState;
1482      if (true) {
1483        React10.useEffect(() => {
1484          if (isControlled !== (controlled !== void 0)) {
1485            error([`A component is changing the $isControlled ? "" : "un"}controlled $state} state of $name16} to be $isControlled ? "un" : ""}controlled.`, "Elements should not switch from uncontrolled to controlled (or vice versa).", `Decide between using a controlled or uncontrolled $name16} element for the lifetime of the component.`, "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", "More info: https://fb.me/react-controlled-components"].join("\n"));
1486          }
1487        }, [state, name16, controlled]);
1488        const {
1489          current: defaultValue
1490        } = React10.useRef(defaultProp);
1491        React10.useEffect(() => {
1492          if (!isControlled && serializeToDevModeString(defaultValue) !== serializeToDevModeString(defaultProp)) {
1493            error([`A component is changing the default $state} state of an uncontrolled $name16} after being initialized. To suppress this warning opt to use a controlled $name16}.`].join("\n"));
1494          }
1495        }, [defaultProp]);
1496      }
1497      const setValueIfUncontrolled = React10.useCallback((newValue) => {
1498        if (!isControlled) {
1499          setValue(newValue);
1500        }
1501      }, []);
1502      return [value, setValueIfUncontrolled];
1503    }
1504    function serializeToDevModeString(input) {
1505      let nextId = 0;
1506      const seen = /* @__PURE__ */ new WeakMap();
1507      try {
1508        const result = JSON.stringify(input, function replacer(key, value) {
1509          if (key === "_owner" && this != null && typeof this === "object" && "$$typeof" in this) {
1510            return void 0;
1511          }
1512          if (typeof value === "bigint") {
1513            return `__bigint__:$value}`;
1514          }
1515          if (value !== null && typeof value === "object") {
1516            const id = seen.get(value);
1517            if (id !== void 0) {
1518              return `__object__:$id}`;
1519            }
1520            seen.set(value, nextId);
1521            nextId += 1;
1522          }
1523          return value;
1524        });
1525        return result ?? `__top__:$typeof input}`;
1526      } catch {
1527        return "__unserializable__";
1528      }
1529    }
1530  
1531    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs
1532    var React12 = __toESM(require_react(), 1);
1533  
1534    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/list/CompositeListContext.mjs
1535    var React11 = __toESM(require_react(), 1);
1536    var CompositeListContext = /* @__PURE__ */ React11.createContext({
1537      register: () => {
1538      },
1539      unregister: () => {
1540      },
1541      subscribeMapChange: () => () => {
1542      },
1543      nextIndexRef: {
1544        current: 0
1545      }
1546    });
1547    if (true) CompositeListContext.displayName = "CompositeListContext";
1548    function useCompositeListContext() {
1549      return React11.useContext(CompositeListContext);
1550    }
1551  
1552    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/list/CompositeList.mjs
1553    var import_jsx_runtime22 = __toESM(require_jsx_runtime(), 1);
1554    function CompositeList(props) {
1555      const {
1556        children,
1557        elementsRef,
1558        labelsRef,
1559        onMapChange: onMapChangeProp
1560      } = props;
1561      const onMapChange = useStableCallback(onMapChangeProp);
1562      const [, setMapTick] = React12.useState(0);
1563      const listeners = useRefWithInit(createListeners).current;
1564      const map = useRefWithInit(createMap).current;
1565      const nextIndexRef = React12.useRef(0);
1566      const isDirtyRef = React12.useRef(true);
1567      const itemsRef = React12.useRef(null);
1568      const mutationObserverRef = React12.useRef(null);
1569      const scheduleMapUpdate = useStableCallback(() => {
1570        if (isDirtyRef.current) {
1571          return;
1572        }
1573        isDirtyRef.current = true;
1574        setMapTick((tick) => tick + 1);
1575      });
1576      const register2 = useStableCallback((node, registration) => {
1577        map.set(node, registration);
1578        scheduleMapUpdate();
1579      });
1580      const unregister = useStableCallback((node) => {
1581        map.delete(node);
1582        scheduleMapUpdate();
1583      });
1584      const syncRefs = useStableCallback((items) => {
1585        const nextMap = /* @__PURE__ */ new Map();
1586        elementsRef.current.length = 0;
1587        if (labelsRef) {
1588          labelsRef.current.length = 0;
1589        }
1590        items.forEach((item) => {
1591          nextMap.set(item.element, {
1592            ...item.registration.metadata ?? {},
1593            index: item.index
1594          });
1595          elementsRef.current[item.index] = item.element;
1596          if (labelsRef) {
1597            labelsRef.current[item.index] = item.registration.label !== void 0 ? item.registration.label : item.registration.textRef?.current?.textContent ?? item.element.textContent;
1598          }
1599        });
1600        nextIndexRef.current = elementsRef.current.length;
1601        return nextMap;
1602      });
1603      function observe(sortedNodes) {
1604        mutationObserverRef.current?.disconnect();
1605        mutationObserverRef.current = null;
1606        if (typeof MutationObserver !== "function" || sortedNodes.length < 2) {
1607          return;
1608        }
1609        const mutationObserver = new MutationObserver((entries) => {
1610          if (!hasMovedNode(entries)) {
1611            return;
1612          }
1613          let previousConnectedNode = null;
1614          for (const node of sortedNodes) {
1615            if (!node.isConnected) {
1616              continue;
1617            }
1618            if (previousConnectedNode && sortByDocumentPosition(previousConnectedNode, node) > 0) {
1619              mutationObserver.disconnect();
1620              scheduleMapUpdate();
1621              return;
1622            }
1623            previousConnectedNode = node;
1624          }
1625        });
1626        mutationObserverRef.current = mutationObserver;
1627        const roots = /* @__PURE__ */ new Set();
1628        for (let i = 1; i < sortedNodes.length; i += 1) {
1629          const root = getCommonAncestor(sortedNodes[i - 1], sortedNodes[i]);
1630          if (root) {
1631            roots.add(root);
1632          }
1633        }
1634        roots.forEach((root) => mutationObserver.observe(root, {
1635          childList: true
1636        }));
1637      }
1638      const flush = useStableCallback(() => {
1639        const [items, automaticNodes] = getCompositeListSnapshot(map);
1640        const nextMap = syncRefs(items);
1641        const previousItems = itemsRef.current;
1642        const changed = !previousItems || previousItems.length !== items.length || items.some((item, index3) => {
1643          const previousItem = previousItems[index3];
1644          return item.index !== previousItem.index || item.element !== previousItem.element || item.registration.index !== previousItem.registration.index || item.registration.metadata !== previousItem.registration.metadata;
1645        });
1646        observe(automaticNodes);
1647        itemsRef.current = items;
1648        isDirtyRef.current = false;
1649        if (!changed) {
1650          return;
1651        }
1652        listeners.forEach((listener) => listener(nextMap));
1653        onMapChange(nextMap);
1654      });
1655      useIsoLayoutEffect(() => {
1656        if (!isDirtyRef.current && itemsRef.current) {
1657          syncRefs(itemsRef.current);
1658        }
1659        return () => {
1660          elementsRef.current = [];
1661          if (labelsRef) {
1662            labelsRef.current = [];
1663          }
1664        };
1665      }, [elementsRef, labelsRef, syncRefs]);
1666      useIsoLayoutEffect(() => {
1667        if (isDirtyRef.current) {
1668          flush();
1669        }
1670      });
1671      useIsoLayoutEffect(() => {
1672        return () => {
1673          mutationObserverRef.current?.disconnect();
1674          isDirtyRef.current = true;
1675        };
1676      }, []);
1677      const subscribeMapChange = useStableCallback((fn) => {
1678        listeners.add(fn);
1679        return () => {
1680          listeners.delete(fn);
1681        };
1682      });
1683      const contextValue = React12.useMemo(() => ({
1684        register: register2,
1685        unregister,
1686        subscribeMapChange,
1687        nextIndexRef
1688      }), [register2, unregister, subscribeMapChange, nextIndexRef]);
1689      return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(CompositeListContext.Provider, {
1690        value: contextValue,
1691        children
1692      });
1693    }
1694    function createMap() {
1695      return /* @__PURE__ */ new Map();
1696    }
1697    function createListeners() {
1698      return /* @__PURE__ */ new Set();
1699    }
1700    function getCompositeListSnapshot(map) {
1701      const reservedIndices = /* @__PURE__ */ new Set();
1702      const items = [];
1703      const automaticItems = [];
1704      map.forEach((registration, node) => {
1705        if (!node.isConnected) {
1706          return;
1707        }
1708        const index3 = registration.index;
1709        const item = {
1710          index: index3 ?? -1,
1711          element: node,
1712          registration
1713        };
1714        if (index3 === null) {
1715          automaticItems.push(item);
1716        } else if (index3 >= 0) {
1717          reservedIndices.add(index3);
1718          items.push(item);
1719        }
1720      });
1721      let nextAutomaticIndex = 0;
1722      automaticItems.sort((a, b) => sortByDocumentPosition(a.element, b.element));
1723      automaticItems.forEach((item) => {
1724        while (reservedIndices.has(nextAutomaticIndex)) {
1725          nextAutomaticIndex += 1;
1726        }
1727        item.index = nextAutomaticIndex;
1728        items.push(item);
1729        nextAutomaticIndex += 1;
1730      });
1731      if (reservedIndices.size > 0) {
1732        items.sort((a, b) => a.index - b.index);
1733      }
1734      return [items, automaticItems.map((item) => item.element)];
1735    }
1736    function getCommonAncestor(firstNode, lastNode) {
1737      let ancestor = firstNode.parentElement;
1738      while (ancestor && !ancestor.contains(lastNode)) {
1739        ancestor = ancestor.parentElement;
1740      }
1741      return ancestor;
1742    }
1743    function hasMovedNode(entries) {
1744      for (const entry of entries) {
1745        for (let i = 0; i < entry.removedNodes.length; i += 1) {
1746          if (entry.removedNodes[i].isConnected) {
1747            return true;
1748          }
1749        }
1750      }
1751      return false;
1752    }
1753    function sortByDocumentPosition(a, b) {
1754      if (a.nextElementSibling === b) {
1755        return -1;
1756      }
1757      if (b.nextElementSibling === a) {
1758        return 1;
1759      }
1760      return a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
1761    }
1762  
1763    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useId.mjs
1764    var React14 = __toESM(require_react(), 1);
1765  
1766    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useForcedRerendering.mjs
1767    var React13 = __toESM(require_react(), 1);
1768    function useForcedRerendering() {
1769      const [, setState] = React13.useState({});
1770      return React13.useCallback(() => {
1771        setState({});
1772      }, []);
1773    }
1774  
1775    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useId.mjs
1776    var globalId = 0;
1777    function useGlobalId(idOverride, prefix = "mui") {
1778      const defaultId = React14.useRef(void 0);
1779      const forceRerender = useForcedRerendering();
1780      const id = idOverride ?? defaultId.current;
1781      React14.useEffect(() => {
1782        if (defaultId.current == null) {
1783          globalId += 1;
1784          defaultId.current = `$prefix}-$globalId}`;
1785          if (idOverride == null) {
1786            forceRerender();
1787          }
1788        }
1789      }, [idOverride, prefix, forceRerender]);
1790      return id;
1791    }
1792    var maybeReactUseId = SafeReact.useId;
1793    function useId(idOverride, prefix) {
1794      if (maybeReactUseId !== void 0) {
1795        const reactId = maybeReactUseId();
1796        return idOverride ?? (prefix ? `$prefix}-$reactId}` : reactId);
1797      }
1798      return useGlobalId(idOverride, prefix);
1799    }
1800  
1801    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useBaseUiId.mjs
1802    function useBaseUiId(idOverride) {
1803      return useId(idOverride, "base-ui");
1804    }
1805  
1806    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/createBaseUIEventDetails.mjs
1807    function createChangeEventDetails(reason, event, trigger, customProperties) {
1808      let canceled = false;
1809      let allowPropagation = false;
1810      const custom = customProperties ?? EMPTY_OBJECT;
1811      const details = {
1812        reason,
1813        event: event ?? new Event("base-ui"),
1814        cancel() {
1815          canceled = true;
1816        },
1817        allowPropagation() {
1818          allowPropagation = true;
1819        },
1820        get isCanceled() {
1821          return canceled;
1822        },
1823        get isPropagationAllowed() {
1824          return allowPropagation;
1825        },
1826        trigger,
1827        ...custom
1828      };
1829      return details;
1830    }
1831  
1832    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/reason-parts.mjs
1833    var reason_parts_exports = {};
1834    __export(reason_parts_exports, {
1835      cancelOpen: () => cancelOpen,
1836      chipRemovePress: () => chipRemovePress,
1837      clearPress: () => clearPress,
1838      closePress: () => closePress,
1839      closeWatcher: () => closeWatcher,
1840      decrementPress: () => decrementPress,
1841      disabled: () => disabled,
1842      drag: () => drag,
1843      escapeKey: () => escapeKey,
1844      focusOut: () => focusOut,
1845      imperativeAction: () => imperativeAction,
1846      incrementPress: () => incrementPress,
1847      initial: () => initial,
1848      inputBlur: () => inputBlur,
1849      inputChange: () => inputChange,
1850      inputClear: () => inputClear,
1851      inputPaste: () => inputPaste,
1852      inputPress: () => inputPress,
1853      itemPress: () => itemPress,
1854      keyboard: () => keyboard,
1855      linkPress: () => linkPress,
1856      listNavigation: () => listNavigation,
1857      missing: () => missing,
1858      none: () => none,
1859      outsidePress: () => outsidePress,
1860      pointer: () => pointer,
1861      popupClose: () => popupClose,
1862      scrub: () => scrub,
1863      siblingOpen: () => siblingOpen,
1864      swipe: () => swipe,
1865      trackPress: () => trackPress,
1866      triggerFocus: () => triggerFocus,
1867      triggerHover: () => triggerHover,
1868      triggerPress: () => triggerPress,
1869      wheel: () => wheel,
1870      windowResize: () => windowResize
1871    });
1872    var none = "none";
1873    var triggerPress = "trigger-press";
1874    var triggerHover = "trigger-hover";
1875    var triggerFocus = "trigger-focus";
1876    var outsidePress = "outside-press";
1877    var itemPress = "item-press";
1878    var closePress = "close-press";
1879    var linkPress = "link-press";
1880    var clearPress = "clear-press";
1881    var chipRemovePress = "chip-remove-press";
1882    var trackPress = "track-press";
1883    var incrementPress = "increment-press";
1884    var decrementPress = "decrement-press";
1885    var inputChange = "input-change";
1886    var inputClear = "input-clear";
1887    var inputBlur = "input-blur";
1888    var inputPaste = "input-paste";
1889    var inputPress = "input-press";
1890    var focusOut = "focus-out";
1891    var escapeKey = "escape-key";
1892    var closeWatcher = "close-watcher";
1893    var listNavigation = "list-navigation";
1894    var keyboard = "keyboard";
1895    var pointer = "pointer";
1896    var drag = "drag";
1897    var wheel = "wheel";
1898    var scrub = "scrub";
1899    var popupClose = "popup-close";
1900    var cancelOpen = "cancel-open";
1901    var siblingOpen = "sibling-open";
1902    var disabled = "disabled";
1903    var missing = "missing";
1904    var initial = "initial";
1905    var imperativeAction = "imperative-action";
1906    var swipe = "swipe";
1907    var windowResize = "window-resize";
1908  
1909    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/list/useCompositeListItem.mjs
1910    var React15 = __toESM(require_react(), 1);
1911    function useCompositeListItem(params = {}) {
1912      const {
1913        guess,
1914        label,
1915        metadata,
1916        textRef,
1917        index: externalIndex
1918      } = params;
1919      const {
1920        register: register2,
1921        unregister,
1922        subscribeMapChange,
1923        nextIndexRef
1924      } = useCompositeListContext();
1925      const indexRef = React15.useRef(-1);
1926      const [internalIndex, setInternalIndex] = React15.useState(externalIndex == null && guess ? () => {
1927        if (indexRef.current === -1) {
1928          const newIndex = nextIndexRef.current;
1929          nextIndexRef.current += 1;
1930          indexRef.current = newIndex;
1931        }
1932        return indexRef.current;
1933      } : -1);
1934      const index3 = externalIndex ?? internalIndex;
1935      const componentRef = React15.useRef(null);
1936      const ref = React15.useCallback((node) => {
1937        const previousNode = componentRef.current;
1938        if (previousNode) {
1939          unregister(previousNode);
1940        }
1941        componentRef.current = node;
1942        if (node) {
1943          register2(node, {
1944            metadata: metadata ?? null,
1945            index: externalIndex ?? null,
1946            label,
1947            textRef
1948          });
1949        }
1950      }, [externalIndex, register2, unregister, metadata, label, textRef]);
1951      useIsoLayoutEffect(() => {
1952        if (externalIndex != null) {
1953          return void 0;
1954        }
1955        return subscribeMapChange((map) => {
1956          const i = componentRef.current ? map.get(componentRef.current)?.index : null;
1957          if (i != null) {
1958            setInternalIndex(i);
1959          }
1960        });
1961      }, [externalIndex, subscribeMapChange]);
1962      return {
1963        ref,
1964        index: index3
1965      };
1966    }
1967  
1968    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/use-button/useButton.mjs
1969    var React18 = __toESM(require_react(), 1);
1970  
1971    // node_modules/.store/@floating-ui/utils@0.2.12-gOxTzMf36nCrbeHpEew-rw/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
1972    function hasWindow() {
1973      return typeof window !== "undefined";
1974    }
1975    function getNodeName(node) {
1976      if (isNode(node)) {
1977        return (node.nodeName || "").toLowerCase();
1978      }
1979      return "#document";
1980    }
1981    function getWindow(node) {
1982      var _node$ownerDocument;
1983      return (node == null || (_node$ownerDocument = node.ownerDocument) == null ? void 0 : _node$ownerDocument.defaultView) || window;
1984    }
1985    function getDocumentElement(node) {
1986      var _ref;
1987      return (_ref = (isNode(node) ? node.ownerDocument : node.document) || window.document) == null ? void 0 : _ref.documentElement;
1988    }
1989    function isNode(value) {
1990      if (!hasWindow()) {
1991        return false;
1992      }
1993      return value instanceof Node || value instanceof getWindow(value).Node;
1994    }
1995    function isElement(value) {
1996      if (!hasWindow()) {
1997        return false;
1998      }
1999      return value instanceof Element || value instanceof getWindow(value).Element;
2000    }
2001    function isHTMLElement(value) {
2002      if (!hasWindow()) {
2003        return false;
2004      }
2005      return value instanceof HTMLElement || value instanceof getWindow(value).HTMLElement;
2006    }
2007    function isShadowRoot(value) {
2008      if (!hasWindow() || typeof ShadowRoot === "undefined") {
2009        return false;
2010      }
2011      return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
2012    }
2013    function isOverflowElement(element) {
2014      const {
2015        overflow,
2016        overflowX,
2017        overflowY,
2018        display
2019      } = getComputedStyle2(element);
2020      return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && display !== "inline" && display !== "contents";
2021    }
2022    function isTableElement(element) {
2023      return /^(table|td|th)$/.test(getNodeName(element));
2024    }
2025    function isTopLayer(element) {
2026      try {
2027        if (element.matches(":popover-open")) {
2028          return true;
2029        }
2030      } catch (_e) {
2031      }
2032      try {
2033        return element.matches(":modal");
2034      } catch (_e) {
2035        return false;
2036      }
2037    }
2038    var willChangeRe = /transform|translate|scale|rotate|perspective|filter/;
2039    var containRe = /paint|layout|strict|content/;
2040    var isNotNone = (value) => !!value && value !== "none";
2041    var isWebKitValue;
2042    function isContainingBlock(elementOrCss) {
2043      const css = isElement(elementOrCss) ? getComputedStyle2(elementOrCss) : elementOrCss;
2044      return isNotNone(css.transform) || isNotNone(css.translate) || isNotNone(css.scale) || isNotNone(css.rotate) || isNotNone(css.perspective) || !isWebKit() && (isNotNone(css.backdropFilter) || isNotNone(css.filter)) || willChangeRe.test(css.willChange || "") || containRe.test(css.contain || "");
2045    }
2046    function getContainingBlock(element) {
2047      let currentNode = getParentNode(element);
2048      while (isHTMLElement(currentNode) && !isLastTraversableNode(currentNode)) {
2049        if (isContainingBlock(currentNode)) {
2050          return currentNode;
2051        } else if (isTopLayer(currentNode)) {
2052          return null;
2053        }
2054        currentNode = getParentNode(currentNode);
2055      }
2056      return null;
2057    }
2058    function isWebKit() {
2059      if (isWebKitValue == null) {
2060        isWebKitValue = typeof CSS !== "undefined" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none");
2061      }
2062      return isWebKitValue;
2063    }
2064    function isLastTraversableNode(node) {
2065      return /^(html|body|#document)$/.test(getNodeName(node));
2066    }
2067    function getComputedStyle2(element) {
2068      return getWindow(element).getComputedStyle(element);
2069    }
2070    function getNodeScroll(element) {
2071      if (isElement(element)) {
2072        return {
2073          scrollLeft: element.scrollLeft,
2074          scrollTop: element.scrollTop
2075        };
2076      }
2077      return {
2078        scrollLeft: element.scrollX,
2079        scrollTop: element.scrollY
2080      };
2081    }
2082    function getParentNode(node) {
2083      if (getNodeName(node) === "html") {
2084        return node;
2085      }
2086      const result = (
2087        // Step into the shadow DOM of the parent of a slotted node.
2088        node.assignedSlot || // DOM Element detected.
2089        node.parentNode || // ShadowRoot detected.
2090        isShadowRoot(node) && node.host || // Fallback.
2091        getDocumentElement(node)
2092      );
2093      return isShadowRoot(result) ? result.host : result;
2094    }
2095    function getNearestOverflowAncestor(node) {
2096      const parentNode = getParentNode(node);
2097      if (isLastTraversableNode(parentNode)) {
2098        return (node.ownerDocument || node).body;
2099      }
2100      if (isHTMLElement(parentNode) && isOverflowElement(parentNode)) {
2101        return parentNode;
2102      }
2103      return getNearestOverflowAncestor(parentNode);
2104    }
2105    function getOverflowAncestors(node, list, traverseIframes) {
2106      var _node$ownerDocument2;
2107      if (list === void 0) {
2108        list = [];
2109      }
2110      if (traverseIframes === void 0) {
2111        traverseIframes = true;
2112      }
2113      const scrollableAncestor = getNearestOverflowAncestor(node);
2114      const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
2115      const win = getWindow(scrollableAncestor);
2116      if (isBody) {
2117        const frameElement = getFrameElement(win);
2118        return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], frameElement && traverseIframes ? getOverflowAncestors(frameElement) : []);
2119      } else {
2120        return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, [], traverseIframes));
2121      }
2122    }
2123    function getFrameElement(win) {
2124      return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
2125    }
2126  
2127    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/root/CompositeRootContext.mjs
2128    var React16 = __toESM(require_react(), 1);
2129    var CompositeRootContext = /* @__PURE__ */ React16.createContext(void 0);
2130    if (true) CompositeRootContext.displayName = "CompositeRootContext";
2131    function useCompositeRootContext(optional = false) {
2132      const context = React16.useContext(CompositeRootContext);
2133      if (context === void 0 && !optional) {
2134        throw new Error(true ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : formatErrorMessage_default(16));
2135      }
2136      return context;
2137    }
2138  
2139    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/useFocusableWhenDisabled.mjs
2140    var React17 = __toESM(require_react(), 1);
2141    function useFocusableWhenDisabled(parameters) {
2142      const {
2143        focusableWhenDisabled,
2144        disabled: disabled2,
2145        composite = false,
2146        tabIndex: tabIndexProp = 0,
2147        isNativeButton
2148      } = parameters;
2149      const isFocusableComposite = composite && focusableWhenDisabled !== false;
2150      const isNonFocusableComposite = composite && focusableWhenDisabled === false;
2151      const props = React17.useMemo(() => {
2152        const additionalProps = {
2153          // allow Tabbing away from focusableWhenDisabled elements
2154          onKeyDown(event) {
2155            if (disabled2 && focusableWhenDisabled && event.key !== "Tab") {
2156              event.preventDefault();
2157            }
2158          }
2159        };
2160        if (!composite) {
2161          additionalProps.tabIndex = tabIndexProp;
2162          if (!isNativeButton && disabled2) {
2163            additionalProps.tabIndex = focusableWhenDisabled ? tabIndexProp : -1;
2164          }
2165        }
2166        if (isNativeButton && (focusableWhenDisabled || isFocusableComposite) || !isNativeButton && disabled2) {
2167          additionalProps["aria-disabled"] = disabled2;
2168        }
2169        if (isNativeButton && (!focusableWhenDisabled || isNonFocusableComposite)) {
2170          additionalProps.disabled = disabled2;
2171        }
2172        return additionalProps;
2173      }, [composite, disabled2, focusableWhenDisabled, isFocusableComposite, isNonFocusableComposite, isNativeButton, tabIndexProp]);
2174      return {
2175        props
2176      };
2177    }
2178  
2179    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/owner.mjs
2180    function ownerDocument(node) {
2181      return node?.ownerDocument || document;
2182    }
2183  
2184    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/dispatchClickWithModifiers.mjs
2185    function dispatchClickWithModifiers(target, sourceEvent, {
2186      detail = 0,
2187      pointerType = ""
2188    } = {}) {
2189      target.dispatchEvent(new (getWindow(target)).PointerEvent("click", {
2190        bubbles: true,
2191        cancelable: true,
2192        composed: true,
2193        detail,
2194        pointerType,
2195        shiftKey: sourceEvent.shiftKey,
2196        ctrlKey: sourceEvent.ctrlKey,
2197        altKey: sourceEvent.altKey,
2198        metaKey: sourceEvent.metaKey
2199      }));
2200    }
2201  
2202    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/use-button/useButton.mjs
2203    function useButton(parameters = {}) {
2204      const {
2205        disabled: disabled2 = false,
2206        focusableWhenDisabled,
2207        tabIndex = 0,
2208        native: isNativeButton = true,
2209        composite: compositeProp
2210      } = parameters;
2211      const elementRef = React18.useRef(null);
2212      const compositeRootContext = useCompositeRootContext(true);
2213      const isCompositeItem = compositeProp ?? compositeRootContext !== void 0;
2214      const {
2215        props: focusableWhenDisabledProps
2216      } = useFocusableWhenDisabled({
2217        focusableWhenDisabled,
2218        disabled: disabled2,
2219        composite: isCompositeItem,
2220        tabIndex,
2221        isNativeButton
2222      });
2223      if (true) {
2224        React18.useEffect(() => {
2225          if (!elementRef.current) {
2226            return;
2227          }
2228          const isButtonTag = isButtonElement(elementRef.current);
2229          if (isNativeButton) {
2230            if (!isButtonTag) {
2231              const ownerStackMessage = SafeReact.captureOwnerStack?.() || "";
2232              const message = "A component that acts as a button expected a native <button> because the `nativeButton` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the `render` prop, or set `nativeButton` to `false`.";
2233              error(`$message}$ownerStackMessage}`);
2234            }
2235          } else if (isButtonTag) {
2236            const ownerStackMessage = SafeReact.captureOwnerStack?.() || "";
2237            const message = "A component that acts as a button expected a non-<button> because the `nativeButton` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as `role` or `aria-disabled`). Use a non-<button> in the `render` prop, or set `nativeButton` to `true`.";
2238            error(`$message}$ownerStackMessage}`);
2239          }
2240        }, [isNativeButton]);
2241      }
2242      const updateDisabled = React18.useCallback(() => {
2243        const element = elementRef.current;
2244        if (!isButtonElement(element)) {
2245          return;
2246        }
2247        if (isCompositeItem && disabled2 && focusableWhenDisabledProps.disabled === void 0 && element.disabled) {
2248          element.disabled = false;
2249        }
2250      }, [disabled2, focusableWhenDisabledProps.disabled, isCompositeItem]);
2251      useIsoLayoutEffect(updateDisabled, [updateDisabled]);
2252      const getButtonProps = React18.useCallback((externalProps = {}) => {
2253        const {
2254          onClick: externalOnClick,
2255          onMouseDown: externalOnMouseDown,
2256          onKeyUp: externalOnKeyUp,
2257          onKeyDown: externalOnKeyDown,
2258          onPointerDown: externalOnPointerDown,
2259          ...otherExternalProps
2260        } = externalProps;
2261        return mergeProps({
2262          onClick(event) {
2263            if (disabled2) {
2264              event.preventDefault();
2265              return;
2266            }
2267            externalOnClick?.(event);
2268          },
2269          onMouseDown(event) {
2270            if (!disabled2) {
2271              externalOnMouseDown?.(event);
2272            }
2273          },
2274          onKeyDown(event) {
2275            if (disabled2) {
2276              return;
2277            }
2278            makeEventPreventable(event);
2279            externalOnKeyDown?.(event);
2280            if (event.baseUIHandlerPrevented) {
2281              return;
2282            }
2283            const isCurrentTarget = event.target === event.currentTarget;
2284            const currentTarget = event.currentTarget;
2285            const isButton = isButtonElement(currentTarget);
2286            const isLink = !isNativeButton && isValidLinkElement(currentTarget);
2287            const shouldClick = isCurrentTarget && (isNativeButton ? isButton : !isLink);
2288            const isEnterKey = event.key === "Enter";
2289            const isSpaceKey = event.key === " ";
2290            const role = currentTarget.getAttribute("role");
2291            const isTextNavigationRole = role?.startsWith("menuitem") || role === "option" || role === "gridcell";
2292            if (isCurrentTarget && isCompositeItem && isSpaceKey) {
2293              if (event.defaultPrevented && isTextNavigationRole) {
2294                return;
2295              }
2296              event.preventDefault();
2297              if (!isNativeButton || isButton) {
2298                event.preventBaseUIHandler();
2299                dispatchClickWithModifiers(currentTarget, event);
2300              }
2301              return;
2302            }
2303            if (!shouldClick || isNativeButton || !isSpaceKey && !isEnterKey) {
2304              if (isCurrentTarget && isLink && isSpaceKey) {
2305                event.preventDefault();
2306              }
2307              return;
2308            }
2309            if (event.defaultPrevented) {
2310              return;
2311            }
2312            event.preventDefault();
2313            if (isEnterKey) {
2314              event.preventBaseUIHandler();
2315              dispatchClickWithModifiers(currentTarget, event);
2316            }
2317          },
2318          onKeyUp(event) {
2319            if (disabled2) {
2320              return;
2321            }
2322            makeEventPreventable(event);
2323            externalOnKeyUp?.(event);
2324            if (event.target === event.currentTarget && isNativeButton && isCompositeItem && isButtonElement(event.currentTarget) && event.key === " ") {
2325              event.preventDefault();
2326              return;
2327            }
2328            if (event.baseUIHandlerPrevented) {
2329              return;
2330            }
2331            if (event.target === event.currentTarget && !isNativeButton && !isCompositeItem && !event.defaultPrevented && event.key === " ") {
2332              event.preventBaseUIHandler();
2333              dispatchClickWithModifiers(event.currentTarget, event);
2334            }
2335          },
2336          onPointerDown(event) {
2337            if (disabled2) {
2338              event.preventDefault();
2339              return;
2340            }
2341            externalOnPointerDown?.(event);
2342          }
2343        }, isNativeButton ? {
2344          type: "button"
2345        } : {
2346          role: "button"
2347        }, focusableWhenDisabledProps, otherExternalProps);
2348      }, [disabled2, focusableWhenDisabledProps, isCompositeItem, isNativeButton]);
2349      const buttonRef = useStableCallback((element) => {
2350        elementRef.current = element;
2351        updateDisabled();
2352      });
2353      return {
2354        getButtonProps,
2355        buttonRef
2356      };
2357    }
2358    function isButtonElement(elem) {
2359      return isHTMLElement(elem) && elem.tagName === "BUTTON";
2360    }
2361    function isValidLinkElement(elem) {
2362      return isHTMLElement(elem) && elem.tagName === "A" && Boolean(elem.href);
2363    }
2364  
2365    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/addEventListener.mjs
2366    function addEventListener(target, type, listener, options) {
2367      target.addEventListener(type, listener, options);
2368      return () => {
2369        target.removeEventListener(type, listener, options);
2370      };
2371    }
2372  
2373    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useValueAsRef.mjs
2374    function useValueAsRef(value) {
2375      const latest = useRefWithInit(createLatestRef, value).current;
2376      latest.next = value;
2377      useIsoLayoutEffect(latest.effect);
2378      return latest;
2379    }
2380    function createLatestRef(value) {
2381      const latest = {
2382        current: value,
2383        next: value,
2384        effect: () => {
2385          latest.current = latest.next;
2386        }
2387      };
2388      return latest;
2389    }
2390  
2391    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/platform/parts.mjs
2392    var parts_exports = {};
2393    __export(parts_exports, {
2394      engine: () => engine_exports,
2395      env: () => env_exports,
2396      mediaQuery: () => media_query_exports,
2397      os: () => os_exports,
2398      screenReader: () => screen_reader_exports
2399    });
2400  
2401    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/platform/os.mjs
2402    var os_exports = {};
2403    __export(os_exports, {
2404      android: () => android,
2405      apple: () => apple,
2406      ios: () => ios,
2407      linux: () => linux,
2408      mac: () => mac,
2409      windows: () => windows
2410    });
2411  
2412    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/platform/shared.mjs
2413    function readRawData() {
2414      if (typeof navigator === "undefined") {
2415        return {
2416          userAgent: "",
2417          platform: "",
2418          maxTouchPoints: 0
2419        };
2420      }
2421      if (true) {
2422        const uaData = navigator.userAgentData;
2423        if (uaData && Array.isArray(uaData.brands)) {
2424          return {
2425            userAgent: uaData.brands.map(({
2426              brand,
2427              version: version2
2428            }) => `$brand}/$version2}`).join(" "),
2429            platform: uaData.platform ?? navigator.platform ?? "",
2430            maxTouchPoints: navigator.maxTouchPoints ?? 0
2431          };
2432        }
2433      }
2434      return {
2435        userAgent: navigator.userAgent,
2436        platform: navigator.platform ?? "",
2437        maxTouchPoints: navigator.maxTouchPoints ?? 0
2438      };
2439    }
2440    var {
2441      userAgent,
2442      platform,
2443      maxTouchPoints
2444    } = readRawData();
2445    var lowerUserAgent = userAgent.toLowerCase();
2446    var lowerPlatform = platform.toLowerCase();
2447  
2448    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/platform/os.mjs
2449    var ios = /^i(os$|p)/.test(lowerPlatform) || lowerPlatform === "macintel" && maxTouchPoints > 1;
2450    var ANDROID_STRING = "android";
2451    var android = lowerPlatform === ANDROID_STRING || lowerUserAgent.includes(ANDROID_STRING);
2452    var mac = !ios && lowerPlatform.startsWith("mac");
2453    var windows = lowerPlatform.startsWith("win");
2454    var linux = !android && /^(linux|chrome os)/.test(lowerPlatform);
2455    var apple = mac || ios;
2456  
2457    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/platform/engine.mjs
2458    var engine_exports = {};
2459    __export(engine_exports, {
2460      blink: () => blink,
2461      gecko: () => gecko,
2462      webkit: () => webkit
2463    });
2464    var webkit = typeof CSS !== "undefined" && !!CSS.supports?.("-webkit-backdrop-filter:none");
2465    var gecko = !webkit && lowerUserAgent.includes("firefox");
2466    var blink = !webkit && lowerUserAgent.includes("chrom");
2467  
2468    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/platform/screen-reader.mjs
2469    var screen_reader_exports = {};
2470    __export(screen_reader_exports, {
2471      voiceOver: () => voiceOver
2472    });
2473    var voiceOver = apple;
2474  
2475    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/platform/env.mjs
2476    var env_exports = {};
2477    __export(env_exports, {
2478      jsdom: () => jsdom
2479    });
2480    var jsdom = /jsdom|happydom/.test(lowerUserAgent);
2481  
2482    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/platform/media-query.mjs
2483    var media_query_exports = {};
2484    __export(media_query_exports, {
2485      iOS: () => iOS
2486    });
2487    var iOS = "@supports (-webkit-touch-callout: none)";
2488  
2489    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useScrollLock.mjs
2490    var originalHtmlStyles = {};
2491    var originalBodyStyles = {};
2492    var originalHtmlScrollBehavior = "";
2493    function getViewportScroller(html, body) {
2494      return isOverflowElement(html) ? html : body;
2495    }
2496    function isPageScrollLocked(win, html, body) {
2497      return /hidden|clip/.test(win.getComputedStyle(getViewportScroller(html, body)).overflowY);
2498    }
2499    function hasInsetScrollbars(referenceElement) {
2500      if (typeof document === "undefined") {
2501        return false;
2502      }
2503      const doc = ownerDocument(referenceElement);
2504      const win = getWindow(doc);
2505      return win.innerWidth - doc.documentElement.clientWidth > 0;
2506    }
2507    function supportsStableScrollbarGutter(referenceElement) {
2508      const supported = typeof CSS !== "undefined" && CSS.supports && CSS.supports("scrollbar-gutter", "stable");
2509      if (!supported || typeof document === "undefined") {
2510        return false;
2511      }
2512      const doc = ownerDocument(referenceElement);
2513      const html = doc.documentElement;
2514      const body = doc.body;
2515      const scrollContainer = getViewportScroller(html, body);
2516      const originalScrollContainerOverflowY = scrollContainer.style.overflowY;
2517      const originalHtmlStyleGutter = html.style.scrollbarGutter;
2518      html.style.scrollbarGutter = "stable";
2519      scrollContainer.style.overflowY = "scroll";
2520      const before = scrollContainer.offsetWidth;
2521      scrollContainer.style.overflowY = "hidden";
2522      const after = scrollContainer.offsetWidth;
2523      scrollContainer.style.overflowY = originalScrollContainerOverflowY;
2524      html.style.scrollbarGutter = originalHtmlStyleGutter;
2525      return before === after;
2526    }
2527    function preventScrollOverlayScrollbars(referenceElement) {
2528      const doc = ownerDocument(referenceElement);
2529      const html = doc.documentElement;
2530      const body = doc.body;
2531      const elementToLock = getViewportScroller(html, body);
2532      const originalElementToLockStyles = {
2533        overflowY: elementToLock.style.overflowY,
2534        overflowX: elementToLock.style.overflowX
2535      };
2536      Object.assign(elementToLock.style, {
2537        overflowY: "hidden",
2538        overflowX: "hidden"
2539      });
2540      return () => {
2541        Object.assign(elementToLock.style, originalElementToLockStyles);
2542      };
2543    }
2544    function preventScrollInsetScrollbars(referenceElement) {
2545      const doc = ownerDocument(referenceElement);
2546      const html = doc.documentElement;
2547      const body = doc.body;
2548      const win = getWindow(html);
2549      let scrollTop = 0;
2550      let scrollLeft = 0;
2551      let updateGutterOnly = false;
2552      const resizeFrame = AnimationFrame.create();
2553      if (parts_exports.engine.webkit && (win.visualViewport?.scale ?? 1) !== 1) {
2554        return () => {
2555        };
2556      }
2557      function lockScroll() {
2558        const htmlStyles = win.getComputedStyle(html);
2559        const bodyStyles = win.getComputedStyle(body);
2560        const htmlScrollbarGutterValue = htmlStyles.scrollbarGutter || "";
2561        const hasBothEdges = htmlScrollbarGutterValue.includes("both-edges");
2562        const scrollbarGutterValue = hasBothEdges ? "stable both-edges" : "stable";
2563        scrollTop = html.scrollTop;
2564        scrollLeft = html.scrollLeft;
2565        originalHtmlStyles = {
2566          scrollbarGutter: html.style.scrollbarGutter,
2567          overflowY: html.style.overflowY,
2568          overflowX: html.style.overflowX
2569        };
2570        originalHtmlScrollBehavior = html.style.scrollBehavior;
2571        originalBodyStyles = {
2572          position: body.style.position,
2573          height: body.style.height,
2574          width: body.style.width,
2575          boxSizing: body.style.boxSizing,
2576          overflowY: body.style.overflowY,
2577          overflowX: body.style.overflowX,
2578          scrollBehavior: body.style.scrollBehavior
2579        };
2580        const isScrollableY = html.scrollHeight > html.clientHeight;
2581        const isScrollableX = html.scrollWidth > html.clientWidth;
2582        const hasConstantOverflowY = htmlStyles.overflowY === "scroll" || bodyStyles.overflowY === "scroll";
2583        const hasConstantOverflowX = htmlStyles.overflowX === "scroll" || bodyStyles.overflowX === "scroll";
2584        const scrollbarWidth = Math.max(0, win.innerWidth - body.clientWidth);
2585        const scrollbarHeight = Math.max(0, win.innerHeight - body.clientHeight);
2586        const marginY = parseFloat(bodyStyles.marginTop) + parseFloat(bodyStyles.marginBottom);
2587        const marginX = parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight);
2588        const elementToLock = getViewportScroller(html, body);
2589        updateGutterOnly = supportsStableScrollbarGutter(referenceElement);
2590        if (updateGutterOnly) {
2591          html.style.scrollbarGutter = scrollbarGutterValue;
2592          elementToLock.style.overflowY = "hidden";
2593          elementToLock.style.overflowX = "hidden";
2594          return;
2595        }
2596        Object.assign(html.style, {
2597          scrollbarGutter: scrollbarGutterValue,
2598          overflowY: "hidden",
2599          overflowX: "hidden"
2600        });
2601        if (isScrollableY || hasConstantOverflowY) {
2602          html.style.overflowY = "scroll";
2603        }
2604        if (isScrollableX || hasConstantOverflowX) {
2605          html.style.overflowX = "scroll";
2606        }
2607        Object.assign(body.style, {
2608          position: "relative",
2609          height: marginY || scrollbarHeight ? `calc(100dvh - $marginY + scrollbarHeight}px)` : "100dvh",
2610          width: marginX || scrollbarWidth ? `calc(100vw - $marginX + scrollbarWidth}px)` : "100vw",
2611          boxSizing: "border-box",
2612          // Assign the longhands that `cleanup` restores, so nothing is left behind.
2613          overflowY: "hidden",
2614          overflowX: "hidden",
2615          scrollBehavior: "unset"
2616        });
2617        body.scrollTop = scrollTop;
2618        body.scrollLeft = scrollLeft;
2619        html.setAttribute("data-base-ui-scroll-locked", "");
2620        html.style.scrollBehavior = "unset";
2621      }
2622      function cleanup() {
2623        Object.assign(html.style, originalHtmlStyles);
2624        Object.assign(body.style, originalBodyStyles);
2625        if (!updateGutterOnly) {
2626          html.scrollTop = scrollTop;
2627          html.scrollLeft = scrollLeft;
2628          html.removeAttribute("data-base-ui-scroll-locked");
2629          html.style.scrollBehavior = originalHtmlScrollBehavior;
2630        }
2631      }
2632      function handleResize() {
2633        cleanup();
2634        resizeFrame.request(lockScroll);
2635      }
2636      lockScroll();
2637      const unsubscribeResize = addEventListener(win, "resize", handleResize);
2638      return () => {
2639        resizeFrame.cancel();
2640        cleanup();
2641        if (typeof win.removeEventListener === "function") {
2642          unsubscribeResize();
2643        }
2644      };
2645    }
2646    var ScrollLocker = class {
2647      lockCount = 0;
2648      restore = null;
2649      timeoutLock = Timeout.create();
2650      timeoutUnlock = Timeout.create();
2651      acquire(referenceElement) {
2652        this.lockCount += 1;
2653        if (this.lockCount === 1 && this.restore === null) {
2654          this.timeoutLock.start(0, () => this.lock(referenceElement));
2655        }
2656        return this.release;
2657      }
2658      release = () => {
2659        this.lockCount -= 1;
2660        if (this.lockCount === 0 && this.restore) {
2661          this.timeoutUnlock.start(0, this.unlock);
2662        }
2663      };
2664      unlock = () => {
2665        if (this.lockCount === 0 && this.restore) {
2666          this.restore?.();
2667          this.restore = null;
2668        }
2669      };
2670      lock(referenceElement) {
2671        if (this.lockCount === 0 || this.restore !== null) {
2672          return;
2673        }
2674        const doc = ownerDocument(referenceElement);
2675        const html = doc.documentElement;
2676        const body = doc.body;
2677        const win = getWindow(html);
2678        if (isPageScrollLocked(win, html, body)) {
2679          const observer = new win.MutationObserver(() => {
2680            if (isPageScrollLocked(win, html, body)) {
2681              return;
2682            }
2683            observer.disconnect();
2684            this.restore = null;
2685            this.lock(referenceElement);
2686          });
2687          const options = {
2688            attributes: true
2689          };
2690          observer.observe(html, options);
2691          observer.observe(body, options);
2692          this.restore = () => observer.disconnect();
2693          return;
2694        }
2695        const hasOverlayScrollbars = parts_exports.os.ios || !hasInsetScrollbars(referenceElement);
2696        this.restore = hasOverlayScrollbars ? preventScrollOverlayScrollbars(referenceElement) : preventScrollInsetScrollbars(referenceElement);
2697      }
2698    };
2699    var SCROLL_LOCKER = new ScrollLocker();
2700    function useScrollLock(enabled = true, referenceElement = null) {
2701      useIsoLayoutEffect(() => {
2702        if (!enabled) {
2703          return void 0;
2704        }
2705        return SCROLL_LOCKER.acquire(referenceElement);
2706      }, [enabled, referenceElement]);
2707    }
2708  
2709    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/utils/event.mjs
2710    function stopEvent(event) {
2711      event.preventDefault();
2712      event.stopPropagation();
2713    }
2714    function isReactEvent(event) {
2715      return "nativeEvent" in event;
2716    }
2717    function isVirtualClick(event) {
2718      if (event.pointerType === "" && event.isTrusted) {
2719        return true;
2720      }
2721      if (parts_exports.os.android && event.pointerType) {
2722        return event.type === "click" && event.buttons === 1;
2723      }
2724      return event.detail === 0 && !event.pointerType;
2725    }
2726    function isVirtualPointerEvent(event) {
2727      if (parts_exports.env.jsdom) {
2728        return false;
2729      }
2730      return !parts_exports.os.android && event.width === 0 && event.height === 0 || // Chrome synthesizes a screen reader press (TalkBack, VoiceOver, NVDA) as a 1x1 mouse
2731      // `pointerdown` with no pressure. TalkBack can report a pressed button, while desktop
2732      // mouse presses can report no pressure, so only require no pressed button off Android.
2733      event.type === "pointerdown" && event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "mouse" && (parts_exports.os.android || event.buttons === 0) || // iOS VoiceOver returns 0.333• for width/height.
2734      event.width < 1 && event.height < 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === "touch";
2735    }
2736    function isMouseLikePointerType(pointerType, strict) {
2737      const values = ["mouse", "pen"];
2738      if (!strict) {
2739        values.push("", void 0);
2740      }
2741      return values.includes(pointerType);
2742    }
2743    function isClickLikeEvent(event) {
2744      const type = event.type;
2745      return type === "click" || type === "mousedown" || type === "keydown" || type === "keyup";
2746    }
2747  
2748    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/shadowDom.mjs
2749    function activeElement(doc) {
2750      let element = doc.activeElement;
2751      while (element?.shadowRoot?.activeElement != null) {
2752        element = element.shadowRoot.activeElement;
2753      }
2754      return element;
2755    }
2756    function contains(parent, child) {
2757      if (!parent || !child) {
2758        return false;
2759      }
2760      const rootNode = child.getRootNode?.();
2761      if (parent.contains(child)) {
2762        return true;
2763      }
2764      if (rootNode && isShadowRoot(rootNode)) {
2765        let next = child;
2766        while (next) {
2767          if (parent === next) {
2768            return true;
2769          }
2770          next = next.parentNode || next.host;
2771        }
2772      }
2773      return false;
2774    }
2775    function closest(node, selector) {
2776      let current = node;
2777      while (current) {
2778        if (isElement(current) && current.matches(selector)) {
2779          return current;
2780        }
2781        current = current.assignedSlot ?? current.parentNode ?? (isShadowRoot(current) ? current.host : null);
2782      }
2783      return null;
2784    }
2785    function getTarget(event) {
2786      if ("composedPath" in event) {
2787        return event.composedPath()[0] ?? event.target;
2788      }
2789      return event.target;
2790    }
2791  
2792    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/utils/constants.mjs
2793    var FOCUSABLE_ATTRIBUTE = "data-base-ui-focusable";
2794    var TYPEABLE_SELECTOR = "input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";
2795    var ARROW_LEFT = "ArrowLeft";
2796    var ARROW_RIGHT = "ArrowRight";
2797    var ARROW_UP = "ArrowUp";
2798    var ARROW_DOWN = "ArrowDown";
2799  
2800    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/CommonPopupDataAttributes.mjs
2801    var open = "data-open";
2802    var closed = "data-closed";
2803    var anchorHidden = "data-anchor-hidden";
2804  
2805    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/CommonTriggerDataAttributes.mjs
2806    var CommonTriggerDataAttributes_exports = {};
2807    __export(CommonTriggerDataAttributes_exports, {
2808      popupOpen: () => popupOpen,
2809      pressed: () => pressed
2810    });
2811    var popupOpen = "data-popup-open";
2812    var pressed = "data-pressed";
2813  
2814    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/popupStateMapping.mjs
2815    var TRIGGER_HOOK = {
2816      [popupOpen]: ""
2817    };
2818    var PRESSABLE_TRIGGER_HOOK = {
2819      [popupOpen]: "",
2820      [pressed]: ""
2821    };
2822    var POPUP_OPEN_HOOK = {
2823      [open]: ""
2824    };
2825    var POPUP_CLOSED_HOOK = {
2826      [closed]: ""
2827    };
2828    var ANCHOR_HIDDEN_HOOK = {
2829      [anchorHidden]: ""
2830    };
2831    var triggerOpenStateMapping = {
2832      open(value) {
2833        if (value) {
2834          return TRIGGER_HOOK;
2835        }
2836        return null;
2837      }
2838    };
2839    var pressableTriggerOpenStateMapping = {
2840      open(value) {
2841        if (value) {
2842          return PRESSABLE_TRIGGER_HOOK;
2843        }
2844        return null;
2845      }
2846    };
2847    var popupStateMapping = {
2848      open(value) {
2849        if (value) {
2850          return POPUP_OPEN_HOOK;
2851        }
2852        return POPUP_CLOSED_HOOK;
2853      },
2854      anchorHidden(value) {
2855        if (value) {
2856          return ANCHOR_HIDDEN_HOOK;
2857        }
2858        return null;
2859      }
2860    };
2861    var popupTransitionStateMapping = {
2862      ...popupStateMapping,
2863      ...transitionStatusMapping
2864    };
2865  
2866    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/utils/element.mjs
2867    function isEventTargetWithin(event, node) {
2868      if (node == null) {
2869        return false;
2870      }
2871      if ("composedPath" in event) {
2872        return event.composedPath().includes(node);
2873      }
2874      const eventAgain = event;
2875      return eventAgain.target != null && node.contains(eventAgain.target);
2876    }
2877    function isRootElement(element) {
2878      return element.matches("html,body");
2879    }
2880    function isTypeableElement(element) {
2881      return isHTMLElement(element) && element.matches(TYPEABLE_SELECTOR);
2882    }
2883    function isTypeableCombobox(element) {
2884      if (!element) {
2885        return false;
2886      }
2887      return element.getAttribute("role") === "combobox" && isTypeableElement(element);
2888    }
2889    function getFloatingFocusElement(floatingElement) {
2890      if (!floatingElement) {
2891        return null;
2892      }
2893      return floatingElement.hasAttribute(FOCUSABLE_ATTRIBUTE) ? floatingElement : floatingElement.querySelector(`[$FOCUSABLE_ATTRIBUTE}]`) || floatingElement;
2894    }
2895  
2896    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/components/FloatingFocusManager.mjs
2897    var React22 = __toESM(require_react(), 1);
2898  
2899    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/mergeCleanups.mjs
2900    function mergeCleanups(...cleanups) {
2901      return () => {
2902        for (let i = 0; i < cleanups.length; i += 1) {
2903          const cleanup = cleanups[i];
2904          if (cleanup) {
2905            cleanup();
2906          }
2907        }
2908      };
2909    }
2910  
2911    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/FocusGuard.mjs
2912    var React19 = __toESM(require_react(), 1);
2913  
2914    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/visuallyHidden.mjs
2915    var visuallyHiddenBase = {
2916      clipPath: "inset(50%)",
2917      overflow: "hidden",
2918      whiteSpace: "nowrap",
2919      border: 0,
2920      padding: 0,
2921      width: 1,
2922      height: 1,
2923      margin: -1
2924    };
2925    var visuallyHidden = {
2926      ...visuallyHiddenBase,
2927      position: "fixed",
2928      margin: 0,
2929      top: 0,
2930      left: 0
2931    };
2932    var visuallyHiddenInput = {
2933      ...visuallyHiddenBase,
2934      position: "absolute"
2935    };
2936  
2937    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/FocusGuard.mjs
2938    var import_jsx_runtime23 = __toESM(require_jsx_runtime(), 1);
2939    var FocusGuard = /* @__PURE__ */ React19.forwardRef(function FocusGuard2(props, ref) {
2940      const [role, setRole] = React19.useState();
2941      useIsoLayoutEffect(() => {
2942        if (parts_exports.screenReader.voiceOver && parts_exports.engine.webkit) {
2943          setRole("button");
2944        }
2945      }, []);
2946      const restProps = {
2947        tabIndex: 0,
2948        // Role is only for VoiceOver
2949        role
2950      };
2951      return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", {
2952        ...props,
2953        ref,
2954        style: visuallyHidden,
2955        "aria-hidden": role ? void 0 : true,
2956        ...restProps,
2957        "data-base-ui-focus-guard": ""
2958      });
2959    });
2960    if (true) FocusGuard.displayName = "FocusGuard";
2961  
2962    // node_modules/.store/@floating-ui/utils@0.2.12-gOxTzMf36nCrbeHpEew-rw/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
2963    var min = Math.min;
2964    var max = Math.max;
2965    var round = Math.round;
2966    var floor = Math.floor;
2967    var createCoords = (v) => ({
2968      x: v,
2969      y: v
2970    });
2971    var oppositeSideMap = {
2972      left: "right",
2973      right: "left",
2974      bottom: "top",
2975      top: "bottom"
2976    };
2977    function clamp(start, value, end) {
2978      return max(start, min(value, end));
2979    }
2980    function evaluate(value, param) {
2981      return typeof value === "function" ? value(param) : value;
2982    }
2983    function getSide(placement) {
2984      return placement.split("-")[0];
2985    }
2986    function getAlignment(placement) {
2987      return placement.split("-")[1];
2988    }
2989    function getOppositeAxis(axis) {
2990      return axis === "x" ? "y" : "x";
2991    }
2992    function getAxisLength(axis) {
2993      return axis === "y" ? "height" : "width";
2994    }
2995    function getSideAxis(placement) {
2996      const firstChar = placement[0];
2997      return firstChar === "t" || firstChar === "b" ? "y" : "x";
2998    }
2999    function getAlignmentAxis(placement) {
3000      return getOppositeAxis(getSideAxis(placement));
3001    }
3002    function getAlignmentSides(placement, rects, rtl) {
3003      if (rtl === void 0) {
3004        rtl = false;
3005      }
3006      const alignment = getAlignment(placement);
3007      const alignmentAxis = getAlignmentAxis(placement);
3008      const length = getAxisLength(alignmentAxis);
3009      let mainAlignmentSide = alignmentAxis === "x" ? alignment === (rtl ? "end" : "start") ? "right" : "left" : alignment === "start" ? "bottom" : "top";
3010      if (rects.reference[length] > rects.floating[length]) {
3011        mainAlignmentSide = getOppositePlacement(mainAlignmentSide);
3012      }
3013      return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];
3014    }
3015    function getExpandedPlacements(placement) {
3016      const oppositePlacement = getOppositePlacement(placement);
3017      return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];
3018    }
3019    function getOppositeAlignmentPlacement(placement) {
3020      return placement.includes("start") ? placement.replace("start", "end") : placement.replace("end", "start");
3021    }
3022    var lrPlacement = ["left", "right"];
3023    var rlPlacement = ["right", "left"];
3024    var tbPlacement = ["top", "bottom"];
3025    var btPlacement = ["bottom", "top"];
3026    function getSideList(side, isStart, rtl) {
3027      switch (side) {
3028        case "top":
3029        case "bottom":
3030          if (rtl) return isStart ? rlPlacement : lrPlacement;
3031          return isStart ? lrPlacement : rlPlacement;
3032        case "left":
3033        case "right":
3034          return isStart ? tbPlacement : btPlacement;
3035        default:
3036          return [];
3037      }
3038    }
3039    function getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {
3040      const alignment = getAlignment(placement);
3041      let list = getSideList(getSide(placement), direction === "start", rtl);
3042      if (alignment) {
3043        list = list.map((side) => side + "-" + alignment);
3044        if (flipAlignment) {
3045          list = list.concat(list.map(getOppositeAlignmentPlacement));
3046        }
3047      }
3048      return list;
3049    }
3050    function getOppositePlacement(placement) {
3051      const side = getSide(placement);
3052      return oppositeSideMap[side] + placement.slice(side.length);
3053    }
3054    function expandPaddingObject(padding) {
3055      var _padding$top, _padding$right, _padding$bottom, _padding$left;
3056      return {
3057        top: (_padding$top = padding.top) != null ? _padding$top : 0,
3058        right: (_padding$right = padding.right) != null ? _padding$right : 0,
3059        bottom: (_padding$bottom = padding.bottom) != null ? _padding$bottom : 0,
3060        left: (_padding$left = padding.left) != null ? _padding$left : 0
3061      };
3062    }
3063    function getPaddingObject(padding) {
3064      return typeof padding !== "number" ? expandPaddingObject(padding) : {
3065        top: padding,
3066        right: padding,
3067        bottom: padding,
3068        left: padding
3069      };
3070    }
3071    function rectToClientRect(rect) {
3072      const {
3073        x,
3074        y,
3075        width,
3076        height
3077      } = rect;
3078      return {
3079        width,
3080        height,
3081        top: y,
3082        left: x,
3083        right: x + width,
3084        bottom: y + height,
3085        x,
3086        y
3087      };
3088    }
3089  
3090    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/utils/composite.mjs
3091    function isIndexOutOfListBounds(list, index3) {
3092      return index3 < 0 || index3 >= list.length;
3093    }
3094    function getMinListIndex(listRef, disabledIndices) {
3095      return findNonDisabledListIndex(listRef.current, {
3096        disabledIndices
3097      });
3098    }
3099    function getMaxListIndex(listRef, disabledIndices) {
3100      return findNonDisabledListIndex(listRef.current, {
3101        decrement: true,
3102        startingIndex: listRef.current.length,
3103        disabledIndices
3104      });
3105    }
3106    function getNextListIndex(list, currentIndex, options) {
3107      const {
3108        decrement,
3109        loopFocus,
3110        allowEscape,
3111        disabledIndices,
3112        minIndex,
3113        maxIndex
3114      } = options;
3115      const step = () => findNonDisabledListIndex(list, {
3116        startingIndex: currentIndex,
3117        decrement,
3118        disabledIndices
3119      });
3120      let index3;
3121      let wrapped = false;
3122      if (!loopFocus) {
3123        index3 = decrement ? Math.max(minIndex, step()) : Math.min(maxIndex, step());
3124      } else if (decrement ? currentIndex <= minIndex : currentIndex >= maxIndex) {
3125        const outside = decrement ? -1 : list.length;
3126        if (allowEscape && currentIndex !== outside) {
3127          index3 = -1;
3128        } else {
3129          index3 = decrement ? maxIndex : minIndex;
3130          wrapped = true;
3131        }
3132      } else {
3133        index3 = step();
3134      }
3135      return {
3136        index: isIndexOutOfListBounds(list, index3) ? -1 : index3,
3137        wrapped
3138      };
3139    }
3140    function findNonDisabledListIndex(list, {
3141      startingIndex = -1,
3142      decrement = false,
3143      disabledIndices,
3144      amount = 1
3145    } = {}) {
3146      let index3 = startingIndex;
3147      do {
3148        index3 += decrement ? -amount : amount;
3149      } while (index3 >= 0 && index3 <= list.length - 1 && isListIndexDisabled(list, index3, disabledIndices));
3150      return index3;
3151    }
3152    function isListIndexDisabled(list, index3, disabledIndices) {
3153      const isExplicitlyDisabled = typeof disabledIndices === "function" ? disabledIndices(index3) : disabledIndices?.includes(index3) ?? false;
3154      if (isExplicitlyDisabled) {
3155        return true;
3156      }
3157      const element = list[index3];
3158      if (!element) {
3159        return false;
3160      }
3161      if (!isElementVisible(element)) {
3162        return true;
3163      }
3164      if (element.matches(":disabled")) {
3165        return true;
3166      }
3167      return !disabledIndices && (element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true");
3168    }
3169    function isHiddenByStyles(styles) {
3170      return styles.visibility === "hidden" || styles.visibility === "collapse";
3171    }
3172    function isElementVisible(element, styles = element ? getComputedStyle2(element) : null) {
3173      if (!element || !element.isConnected || !styles || isHiddenByStyles(styles)) {
3174        return false;
3175      }
3176      if (typeof element.checkVisibility === "function") {
3177        return element.checkVisibility();
3178      }
3179      return styles.display !== "none" && styles.display !== "contents";
3180    }
3181  
3182    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/utils/tabbable.mjs
3183    var CANDIDATE_SELECTOR = 'a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';
3184    function getParentElement(element) {
3185      const assignedSlot = element.assignedSlot;
3186      if (assignedSlot) {
3187        return assignedSlot;
3188      }
3189      if (element.parentElement) {
3190        return element.parentElement;
3191      }
3192      const rootNode = element.getRootNode();
3193      return isShadowRoot(rootNode) ? rootNode.host : null;
3194    }
3195    function getDetailsSummary(details) {
3196      for (const child of Array.from(details.children)) {
3197        if (getNodeName(child) === "summary") {
3198          return child;
3199        }
3200      }
3201      return null;
3202    }
3203    function isWithinOpenDetailsSummary(element, details) {
3204      const summary = getDetailsSummary(details);
3205      return !!summary && (element === summary || contains(summary, element));
3206    }
3207    function isFocusableCandidate(element) {
3208      const nodeName = element ? getNodeName(element) : "";
3209      return element != null && element.matches(CANDIDATE_SELECTOR) && (nodeName !== "summary" || element.parentElement != null && getNodeName(element.parentElement) === "details" && getDetailsSummary(element.parentElement) === element) && (nodeName !== "details" || getDetailsSummary(element) == null) && (nodeName !== "input" || element.type !== "hidden");
3210    }
3211    function isFocusableElement(element) {
3212      if (!isFocusableCandidate(element) || !element.isConnected || element.matches(":disabled")) {
3213        return false;
3214      }
3215      for (let current = element; current; current = getParentElement(current)) {
3216        const isAncestor = current !== element;
3217        const isSlot = getNodeName(current) === "slot";
3218        if (current.hasAttribute("inert")) {
3219          return false;
3220        }
3221        if (isAncestor && getNodeName(current) === "details" && !current.open && !isWithinOpenDetailsSummary(element, current) || current.hasAttribute("hidden") || !isSlot && !isVisibleInTabbableTree(current, isAncestor)) {
3222          return false;
3223        }
3224      }
3225      return true;
3226    }
3227    function isVisibleInTabbableTree(element, isAncestor) {
3228      const styles = getComputedStyle2(element);
3229      if (!isAncestor) {
3230        return isElementVisible(element, styles);
3231      }
3232      return styles.display !== "none";
3233    }
3234    function getTabIndex(element) {
3235      const tabIndex = element.tabIndex;
3236      if (tabIndex < 0) {
3237        const nodeName = getNodeName(element);
3238        if (nodeName === "details" || nodeName === "audio" || nodeName === "video" || isHTMLElement(element) && element.isContentEditable) {
3239          return 0;
3240        }
3241      }
3242      return tabIndex;
3243    }
3244    function getNamedRadioInput(element) {
3245      if (getNodeName(element) !== "input") {
3246        return null;
3247      }
3248      const input = element;
3249      return input.type === "radio" && input.name !== "" ? input : null;
3250    }
3251    function isTabbableRadio(element, candidates) {
3252      const input = getNamedRadioInput(element);
3253      if (!input) {
3254        return true;
3255      }
3256      const checkedRadio = candidates.find((candidate) => {
3257        const radio = getNamedRadioInput(candidate);
3258        return radio?.name === input.name && radio.form === input.form && radio.checked;
3259      });
3260      if (checkedRadio) {
3261        return checkedRadio === input;
3262      }
3263      return candidates.find((candidate) => {
3264        const radio = getNamedRadioInput(candidate);
3265        return radio?.name === input.name && radio.form === input.form;
3266      }) === input;
3267    }
3268    function getComposedChildren(container) {
3269      if (isHTMLElement(container) && getNodeName(container) === "slot") {
3270        const assignedElements = container.assignedElements({
3271          flatten: true
3272        });
3273        if (assignedElements.length > 0) {
3274          return assignedElements;
3275        }
3276      }
3277      if (isHTMLElement(container) && container.shadowRoot) {
3278        return Array.from(container.shadowRoot.children);
3279      }
3280      return Array.from(container.children);
3281    }
3282    function appendCandidates(container, list) {
3283      getComposedChildren(container).forEach((child) => {
3284        if (isFocusableCandidate(child)) {
3285          list.push(child);
3286        }
3287        appendCandidates(child, list);
3288      });
3289    }
3290    function appendMatchingElements(container, selector, list) {
3291      getComposedChildren(container).forEach((child) => {
3292        if (isHTMLElement(child) && child.matches(selector)) {
3293          list.push(child);
3294        }
3295        appendMatchingElements(child, selector, list);
3296      });
3297    }
3298    function isTabbable(element) {
3299      return isFocusableElement(element) && getTabIndex(element) >= 0;
3300    }
3301    function focusable(container) {
3302      const candidates = [];
3303      appendCandidates(container, candidates);
3304      return candidates.filter(isFocusableElement);
3305    }
3306    function tabbable(container) {
3307      const candidates = focusable(container);
3308      return candidates.filter((element) => getTabIndex(element) >= 0 && isTabbableRadio(element, candidates));
3309    }
3310    function getTabbableIn(container, dir) {
3311      const list = tabbable(container);
3312      const len = list.length;
3313      if (len === 0) {
3314        return void 0;
3315      }
3316      const active = activeElement(ownerDocument(container));
3317      const index3 = list.indexOf(active);
3318      const nextIndex = index3 === -1 ? dir === 1 ? 0 : len - 1 : index3 + dir;
3319      return list[nextIndex];
3320    }
3321    function getNextTabbable(referenceElement) {
3322      return getTabbableIn(ownerDocument(referenceElement).body, 1) || referenceElement;
3323    }
3324    function getPreviousTabbable(referenceElement) {
3325      return getTabbableIn(ownerDocument(referenceElement).body, -1) || referenceElement;
3326    }
3327    function isOutsideEvent(event, container) {
3328      const containerElement = container || event.currentTarget;
3329      const relatedTarget = event.relatedTarget;
3330      return !relatedTarget || !contains(containerElement, relatedTarget);
3331    }
3332    function disableFocusInside(container) {
3333      const tabbableElements = tabbable(container);
3334      tabbableElements.forEach((element) => {
3335        element.dataset.tabindex = element.getAttribute("tabindex") || "";
3336        element.setAttribute("tabindex", "-1");
3337      });
3338    }
3339    function enableFocusInside(container) {
3340      const elements = [];
3341      appendMatchingElements(container, "[data-tabindex]", elements);
3342      elements.forEach((element) => {
3343        const tabindex = element.dataset.tabindex;
3344        delete element.dataset.tabindex;
3345        if (tabindex) {
3346          element.setAttribute("tabindex", tabindex);
3347        } else {
3348          element.removeAttribute("tabindex");
3349        }
3350      });
3351    }
3352  
3353    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/utils/nodes.mjs
3354    function getNodeChildren(nodes, id, onlyOpenChildren = true) {
3355      const directChildren = nodes.filter((node) => node.parentId === id);
3356      return directChildren.flatMap((child) => [...!onlyOpenChildren || child.context?.open ? [child] : [], ...getNodeChildren(nodes, child.id, onlyOpenChildren)]);
3357    }
3358    function getNodeAncestors(nodes, id) {
3359      let allAncestors = [];
3360      let currentParentId = nodes.find((node) => node.id === id)?.parentId;
3361      while (currentParentId) {
3362        const currentNode = nodes.find((node) => node.id === currentParentId);
3363        currentParentId = currentNode?.parentId;
3364        if (currentNode) {
3365          allAncestors = allAncestors.concat(currentNode);
3366        }
3367      }
3368      return allAncestors;
3369    }
3370  
3371    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/utils/createAttribute.mjs
3372    function createAttribute(name16) {
3373      return `data-base-ui-$name16}`;
3374    }
3375  
3376    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/utils/enqueueFocus.mjs
3377    var rafId = 0;
3378    function enqueueFocus(el, options = {}) {
3379      const {
3380        preventScroll = false,
3381        sync = false,
3382        shouldFocus
3383      } = options;
3384      cancelAnimationFrame(rafId);
3385      function exec() {
3386        if (shouldFocus && !shouldFocus()) {
3387          return;
3388        }
3389        el?.focus({
3390          preventScroll
3391        });
3392      }
3393      if (sync) {
3394        exec();
3395        return NOOP;
3396      }
3397      const currentRafId = requestAnimationFrame(exec);
3398      rafId = currentRafId;
3399      return () => {
3400        if (rafId === currentRafId) {
3401          cancelAnimationFrame(currentRafId);
3402          rafId = 0;
3403        }
3404      };
3405    }
3406  
3407    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/utils/markOthers.mjs
3408    var markerName = "data-base-ui-inert";
3409    var ariaHiddenCounterMap = /* @__PURE__ */ new WeakMap();
3410    var uncontrolledElementsSet = /* @__PURE__ */ new WeakSet();
3411    var markerCounterMap = /* @__PURE__ */ new WeakMap();
3412    var lockCount = 0;
3413    function unwrapHost(node) {
3414      if (!node) {
3415        return null;
3416      }
3417      return isShadowRoot(node) ? node.host : unwrapHost(node.parentNode);
3418    }
3419    var correctElements = (parent, targets) => targets.map((target) => {
3420      if (parent.contains(target)) {
3421        return target;
3422      }
3423      const correctedTarget = unwrapHost(target);
3424      if (parent.contains(correctedTarget)) {
3425        return correctedTarget;
3426      }
3427      return null;
3428    }).filter((x) => x != null);
3429    var buildKeepSet = (targets) => {
3430      const keep = /* @__PURE__ */ new Set();
3431      targets.forEach((target) => {
3432        let node = target;
3433        while (node && !keep.has(node)) {
3434          keep.add(node);
3435          node = node.parentNode;
3436        }
3437      });
3438      return keep;
3439    };
3440    var collectOutsideElements = (root, keepElements, stopElements) => {
3441      const outside = [];
3442      const walk = (parent) => {
3443        if (!parent || stopElements.has(parent)) {
3444          return;
3445        }
3446        Array.from(parent.children).forEach((node) => {
3447          if (getNodeName(node) === "script") {
3448            return;
3449          }
3450          if (keepElements.has(node)) {
3451            walk(node);
3452          } else {
3453            outside.push(node);
3454          }
3455        });
3456      };
3457      walk(root);
3458      return outside;
3459    };
3460    function applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, {
3461      mark = true
3462    }) {
3463      const avoidElements = correctElements(body, uncorrectedAvoidElements);
3464      const markerTargets = mark ? collectOutsideElements(body, buildKeepSet(avoidElements), new Set(avoidElements)) : [];
3465      const hiddenElements = [];
3466      const markedElements = [];
3467      if (ariaHidden) {
3468        const ariaLiveElements = correctElements(body, Array.from(body.querySelectorAll("[aria-live]")));
3469        const controlElements = avoidElements.concat(ariaLiveElements);
3470        const controlTargets = collectOutsideElements(body, buildKeepSet(controlElements), new Set(controlElements));
3471        controlTargets.forEach((node) => {
3472          const attr2 = node.getAttribute("aria-hidden");
3473          const alreadyHidden = attr2 !== null && attr2 !== "false";
3474          const counterValue = (ariaHiddenCounterMap.get(node) || 0) + 1;
3475          ariaHiddenCounterMap.set(node, counterValue);
3476          hiddenElements.push(node);
3477          if (counterValue === 1 && alreadyHidden) {
3478            uncontrolledElementsSet.add(node);
3479          }
3480          if (!alreadyHidden) {
3481            node.setAttribute("aria-hidden", "true");
3482          }
3483        });
3484      }
3485      if (mark) {
3486        markerTargets.forEach((node) => {
3487          const markerValue = (markerCounterMap.get(node) || 0) + 1;
3488          markerCounterMap.set(node, markerValue);
3489          markedElements.push(node);
3490          if (markerValue === 1) {
3491            node.setAttribute(markerName, "");
3492          }
3493        });
3494      }
3495      lockCount += 1;
3496      return () => {
3497        hiddenElements.forEach((element) => {
3498          const counterValue = (ariaHiddenCounterMap.get(element) || 0) - 1;
3499          ariaHiddenCounterMap.set(element, counterValue);
3500          if (!counterValue) {
3501            if (!uncontrolledElementsSet.has(element)) {
3502              element.removeAttribute("aria-hidden");
3503            }
3504            uncontrolledElementsSet.delete(element);
3505          }
3506        });
3507        if (mark) {
3508          markedElements.forEach((element) => {
3509            const markerValue = (markerCounterMap.get(element) || 0) - 1;
3510            markerCounterMap.set(element, markerValue);
3511            if (!markerValue) {
3512              element.removeAttribute(markerName);
3513            }
3514          });
3515        }
3516        lockCount -= 1;
3517        if (!lockCount) {
3518          ariaHiddenCounterMap = /* @__PURE__ */ new WeakMap();
3519          uncontrolledElementsSet = /* @__PURE__ */ new WeakSet();
3520          markerCounterMap = /* @__PURE__ */ new WeakMap();
3521        }
3522      };
3523    }
3524    function markOthers(avoidElements, options = {}) {
3525      const {
3526        ariaHidden = false,
3527        mark = true
3528      } = options;
3529      const body = ownerDocument(avoidElements[0]).body;
3530      return applyAttributeToOthers(avoidElements, body, ariaHidden, {
3531        mark
3532      });
3533    }
3534  
3535    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs
3536    var React20 = __toESM(require_react(), 1);
3537    var ReactDOM2 = __toESM(require_react_dom(), 1);
3538  
3539    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/constants.mjs
3540    var DISABLED_TRANSITIONS_STYLE = {
3541      style: {
3542        transition: "none"
3543      }
3544    };
3545    var CLICK_TRIGGER_IDENTIFIER = "data-base-ui-click-trigger";
3546    var BASE_UI_SWIPE_IGNORE_ATTRIBUTE = "data-base-ui-swipe-ignore";
3547    var LEGACY_SWIPE_IGNORE_ATTRIBUTE = "data-swipe-ignore";
3548    var BASE_UI_SWIPE_IGNORE_SELECTOR = `[$BASE_UI_SWIPE_IGNORE_ATTRIBUTE}]`;
3549    var LEGACY_SWIPE_IGNORE_SELECTOR = `[$LEGACY_SWIPE_IGNORE_ATTRIBUTE}]`;
3550    var DROPDOWN_COLLISION_AVOIDANCE = {
3551      fallbackAxisSide: "none"
3552    };
3553    var ownerVisuallyHidden = {
3554      clipPath: "inset(50%)",
3555      position: "fixed",
3556      top: 0,
3557      left: 0
3558    };
3559  
3560    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs
3561    var import_jsx_runtime24 = __toESM(require_jsx_runtime(), 1);
3562    var PortalContext = /* @__PURE__ */ React20.createContext(null);
3563    if (true) PortalContext.displayName = "PortalContext";
3564    var usePortalContext = () => React20.useContext(PortalContext);
3565    var attr = createAttribute("portal");
3566    function useFloatingPortalNode(props = {}) {
3567      const {
3568        ref,
3569        container: containerProp,
3570        componentProps = EMPTY_OBJECT,
3571        elementProps
3572      } = props;
3573      const uniqueId = useId();
3574      const portalContext = usePortalContext();
3575      const parentPortalNode = portalContext?.portalNode;
3576      const [containerElement, setContainerElement] = React20.useState(null);
3577      const [portalNode, setPortalNode] = React20.useState(null);
3578      const setPortalNodeRef = useStableCallback((node) => {
3579        if (node !== null) {
3580          setPortalNode(node);
3581        }
3582      });
3583      const containerRef = React20.useRef(null);
3584      useIsoLayoutEffect(() => {
3585        if (containerProp === null) {
3586          if (containerRef.current) {
3587            containerRef.current = null;
3588            setPortalNode(null);
3589            setContainerElement(null);
3590          }
3591          return;
3592        }
3593        const resolvedContainer = (containerProp && (isNode(containerProp) ? containerProp : containerProp.current)) ?? parentPortalNode ?? document.body;
3594        if (resolvedContainer == null) {
3595          if (containerRef.current) {
3596            containerRef.current = null;
3597            setPortalNode(null);
3598            setContainerElement(null);
3599          }
3600          return;
3601        }
3602        if (containerRef.current !== resolvedContainer) {
3603          containerRef.current = resolvedContainer;
3604          setPortalNode(null);
3605          setContainerElement(resolvedContainer);
3606        }
3607      }, [containerProp, parentPortalNode]);
3608      const portalElement = useRenderElement("div", componentProps, {
3609        ref: [ref, setPortalNodeRef],
3610        props: [{
3611          id: uniqueId,
3612          [attr]: ""
3613        }, elementProps]
3614      });
3615      const portalSubtree = containerElement && portalElement ? /* @__PURE__ */ ReactDOM2.createPortal(portalElement, containerElement) : null;
3616      return {
3617        node: portalNode,
3618        // `id` and `render` props can override or remove the generated ID. Use the exact
3619        // rendered value so `aria-owns` never points at an ID absent from the DOM.
3620        nodeId: /* @__PURE__ */ React20.isValidElement(portalElement) ? portalElement.props.id : void 0,
3621        subtree: portalSubtree
3622      };
3623    }
3624    var FloatingPortal = /* @__PURE__ */ React20.forwardRef(function FloatingPortal2(componentProps, forwardedRef) {
3625      const {
3626        render,
3627        className,
3628        style,
3629        children,
3630        container,
3631        portalOwnerRole,
3632        ...elementProps
3633      } = componentProps;
3634      const {
3635        node: portalNode,
3636        nodeId: portalNodeId,
3637        subtree: portalSubtree
3638      } = useFloatingPortalNode({
3639        container,
3640        ref: forwardedRef,
3641        componentProps,
3642        elementProps
3643      });
3644      const beforeOutsideRef = React20.useRef(null);
3645      const afterOutsideRef = React20.useRef(null);
3646      const beforeInsideRef = React20.useRef(null);
3647      const afterInsideRef = React20.useRef(null);
3648      const [focusManagerState, setFocusManagerState] = React20.useState(null);
3649      const focusInsideDisabledRef = React20.useRef(false);
3650      const modal = focusManagerState?.modal;
3651      const open2 = focusManagerState?.open;
3652      const shouldRenderGuards = !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;
3653      React20.useEffect(() => {
3654        if (!portalNode || modal) {
3655          return void 0;
3656        }
3657        function onFocus(event) {
3658          if (portalNode && event.relatedTarget && isOutsideEvent(event)) {
3659            if (event.type === "focusin") {
3660              if (focusInsideDisabledRef.current) {
3661                enableFocusInside(portalNode);
3662                focusInsideDisabledRef.current = false;
3663              }
3664            } else {
3665              disableFocusInside(portalNode);
3666              focusInsideDisabledRef.current = true;
3667            }
3668          }
3669        }
3670        return mergeCleanups(addEventListener(portalNode, "focusin", onFocus, true), addEventListener(portalNode, "focusout", onFocus, true));
3671      }, [portalNode, modal]);
3672      useIsoLayoutEffect(() => {
3673        if (!portalNode || open2 !== true || !focusInsideDisabledRef.current) {
3674          return;
3675        }
3676        enableFocusInside(portalNode);
3677        focusInsideDisabledRef.current = false;
3678      }, [open2, portalNode]);
3679      const portalContextValue = React20.useMemo(() => ({
3680        beforeOutsideRef,
3681        afterOutsideRef,
3682        beforeInsideRef,
3683        afterInsideRef,
3684        portalNode,
3685        setFocusManagerState
3686      }), [portalNode]);
3687      return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(React20.Fragment, {
3688        children: [portalSubtree, /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(PortalContext.Provider, {
3689          value: portalContextValue,
3690          children: [shouldRenderGuards && portalNode && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FocusGuard, {
3691            "data-type": "outside",
3692            ref: beforeOutsideRef,
3693            onFocus: (event) => {
3694              if (isOutsideEvent(event, portalNode)) {
3695                beforeInsideRef.current?.focus();
3696              } else {
3697                const domReference = focusManagerState ? focusManagerState.domReference : null;
3698                const prevTabbable = getPreviousTabbable(domReference);
3699                prevTabbable?.focus();
3700              }
3701            }
3702          }), shouldRenderGuards && portalNode && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", {
3703            role: portalOwnerRole,
3704            "aria-owns": portalNodeId,
3705            style: ownerVisuallyHidden
3706          }), portalNode && /* @__PURE__ */ ReactDOM2.createPortal(children, portalNode), shouldRenderGuards && portalNode && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FocusGuard, {
3707            "data-type": "outside",
3708            ref: afterOutsideRef,
3709            onFocus: (event) => {
3710              if (isOutsideEvent(event, portalNode)) {
3711                afterInsideRef.current?.focus();
3712              } else {
3713                const domReference = focusManagerState ? focusManagerState.domReference : null;
3714                const nextTabbable = getNextTabbable(domReference);
3715                nextTabbable?.focus();
3716                if (focusManagerState?.closeOnFocusOut) {
3717                  focusManagerState?.onOpenChange(false, createChangeEventDetails(reason_parts_exports.focusOut, event.nativeEvent));
3718                }
3719              }
3720            }
3721          })]
3722        })]
3723      });
3724    });
3725    if (true) FloatingPortal.displayName = "FloatingPortal";
3726  
3727    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/components/FloatingTree.mjs
3728    var React21 = __toESM(require_react(), 1);
3729  
3730    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/utils/createEventEmitter.mjs
3731    function createEventEmitter() {
3732      const map = /* @__PURE__ */ new Map();
3733      return {
3734        emit(event, data) {
3735          map.get(event)?.forEach((listener) => listener(data));
3736        },
3737        on(event, listener) {
3738          if (!map.has(event)) {
3739            map.set(event, /* @__PURE__ */ new Set());
3740          }
3741          map.get(event).add(listener);
3742        },
3743        off(event, listener) {
3744          map.get(event)?.delete(listener);
3745        }
3746      };
3747    }
3748  
3749    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/components/FloatingTree.mjs
3750    var import_jsx_runtime25 = __toESM(require_jsx_runtime(), 1);
3751    var FloatingNodeContext = /* @__PURE__ */ React21.createContext(null);
3752    if (true) FloatingNodeContext.displayName = "FloatingNodeContext";
3753    var FloatingTreeContext = /* @__PURE__ */ React21.createContext(null);
3754    if (true) FloatingTreeContext.displayName = "FloatingTreeContext";
3755    var useFloatingParentNodeId = () => React21.useContext(FloatingNodeContext)?.id || null;
3756    var useFloatingTree = (externalTree) => {
3757      const contextTree = React21.useContext(FloatingTreeContext);
3758      return externalTree ?? contextTree;
3759    };
3760  
3761    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/components/FloatingFocusManager.mjs
3762    var import_jsx_runtime26 = __toESM(require_jsx_runtime(), 1);
3763    function getEventType(event, lastInteractionType) {
3764      const win = getWindow(getTarget(event));
3765      if (event instanceof win.KeyboardEvent) {
3766        return "keyboard";
3767      }
3768      if (event instanceof win.FocusEvent) {
3769        return lastInteractionType || "keyboard";
3770      }
3771      if ("pointerType" in event) {
3772        return event.pointerType || (isVirtualClick(event) ? "keyboard" : lastInteractionType || "mouse");
3773      }
3774      if ("touches" in event) {
3775        return "touch";
3776      }
3777      if (event instanceof win.MouseEvent) {
3778        return lastInteractionType || (event.detail === 0 ? "keyboard" : "mouse");
3779      }
3780      return "";
3781    }
3782    var LIST_LIMIT = 20;
3783    var previouslyFocusedElements = [];
3784    function clearDisconnectedPreviouslyFocusedElements() {
3785      previouslyFocusedElements = previouslyFocusedElements.filter((entry) => {
3786        return entry.deref()?.isConnected;
3787      });
3788    }
3789    function addPreviouslyFocusedElement(element) {
3790      clearDisconnectedPreviouslyFocusedElements();
3791      if (element && getNodeName(element) !== "body") {
3792        previouslyFocusedElements.push(new WeakRef(element));
3793        if (previouslyFocusedElements.length > LIST_LIMIT) {
3794          previouslyFocusedElements = previouslyFocusedElements.slice(-LIST_LIMIT);
3795        }
3796      }
3797    }
3798    function getPreviouslyFocusedElement() {
3799      clearDisconnectedPreviouslyFocusedElements();
3800      return previouslyFocusedElements[previouslyFocusedElements.length - 1]?.deref();
3801    }
3802    function getFirstTabbableElement(container) {
3803      if (!container) {
3804        return null;
3805      }
3806      if (isTabbable(container)) {
3807        return container;
3808      }
3809      return tabbable(container)[0] || container;
3810    }
3811    function handleTabIndex(floatingFocusElement) {
3812      if (floatingFocusElement.hasAttribute("tabindex") && !floatingFocusElement.hasAttribute("data-tabindex")) {
3813        return;
3814      }
3815      if (!floatingFocusElement.getAttribute("role")?.includes("dialog")) {
3816        return;
3817      }
3818      const focusableElements = focusable(floatingFocusElement);
3819      const tabbableContent = focusableElements.filter((element) => {
3820        const dataTabIndex = element.getAttribute("data-tabindex") || "";
3821        return isTabbable(element) || element.hasAttribute("data-tabindex") && !dataTabIndex.startsWith("-");
3822      });
3823      const tabIndex = floatingFocusElement.getAttribute("tabindex");
3824      if (tabbableContent.length === 0) {
3825        if (tabIndex !== "0") {
3826          floatingFocusElement.setAttribute("tabindex", "0");
3827          floatingFocusElement.setAttribute("data-tabindex", "0");
3828        }
3829      } else if (tabIndex !== "-1" || floatingFocusElement.hasAttribute("data-tabindex") && floatingFocusElement.getAttribute("data-tabindex") !== "-1") {
3830        floatingFocusElement.setAttribute("tabindex", "-1");
3831        floatingFocusElement.setAttribute("data-tabindex", "-1");
3832      }
3833    }
3834    function FloatingFocusManager(props) {
3835      const {
3836        context: store,
3837        children,
3838        disabled: disabled2 = false,
3839        initialFocus = true,
3840        returnFocus = true,
3841        explicitReturnFocus,
3842        restoreFocus = false,
3843        modal = true,
3844        closeOnFocusOut = true,
3845        openInteractionType = "",
3846        nextFocusableElement,
3847        previousFocusableElement,
3848        beforeContentFocusGuardRef,
3849        externalTree,
3850        getInsideElements
3851      } = props;
3852      const open2 = store.useState("open");
3853      const domReference = store.useState("domReferenceElement");
3854      const floating = store.useState("floatingElement");
3855      const {
3856        events,
3857        dataRef
3858      } = store.context;
3859      const getNodeId = useStableCallback(() => dataRef.current.floatingContext?.nodeId);
3860      const ignoreInitialFocus = initialFocus === false;
3861      const isUntrappedTypeableCombobox = isTypeableCombobox(domReference) && ignoreInitialFocus;
3862      const initialFocusRef = useValueAsRef(initialFocus);
3863      const returnFocusRef = useValueAsRef(returnFocus);
3864      const explicitReturnFocusRef = useValueAsRef(explicitReturnFocus);
3865      const openInteractionTypeRef = useValueAsRef(openInteractionType);
3866      const openRef = useValueAsRef(open2);
3867      const tree = useFloatingTree(externalTree);
3868      const portalContext = usePortalContext();
3869      const preventReturnFocusRef = React22.useRef(false);
3870      const isPointerDownRef = React22.useRef(false);
3871      const pointerDownOutsideRef = React22.useRef(false);
3872      const lastFocusedTabbableRef = React22.useRef(null);
3873      const closeTypeRef = React22.useRef("");
3874      const lastInteractionTypeRef = React22.useRef("");
3875      const beforeGuardRef = React22.useRef(null);
3876      const afterGuardRef = React22.useRef(null);
3877      const mergedBeforeGuardRef = useMergedRefs(beforeGuardRef, beforeContentFocusGuardRef, portalContext?.beforeInsideRef);
3878      const mergedAfterGuardRef = useMergedRefs(afterGuardRef, portalContext?.afterInsideRef);
3879      const blurTimeout = useTimeout();
3880      const pointerDownTimeout = useTimeout();
3881      const restoreFocusFrame = useAnimationFrame();
3882      const isInsidePortal = portalContext != null;
3883      const floatingFocusElement = getFloatingFocusElement(floating);
3884      const getTabbableContent = useStableCallback((container = floatingFocusElement) => {
3885        return container ? tabbable(container) : [];
3886      });
3887      const getResolvedInsideElements = useStableCallback(() => getInsideElements?.().filter((element) => element != null) ?? []);
3888      React22.useEffect(() => {
3889        if (disabled2 || !modal) {
3890          return void 0;
3891        }
3892        function onKeyDown(event) {
3893          if (event.key === "Tab") {
3894            if (contains(floatingFocusElement, activeElement(ownerDocument(floatingFocusElement))) && getTabbableContent().length === 0 && !isUntrappedTypeableCombobox) {
3895              stopEvent(event);
3896            }
3897          }
3898        }
3899        const doc = ownerDocument(floatingFocusElement);
3900        return addEventListener(doc, "keydown", onKeyDown);
3901      }, [disabled2, floatingFocusElement, modal, isUntrappedTypeableCombobox, getTabbableContent]);
3902      React22.useEffect(() => {
3903        if (disabled2 || !open2) {
3904          return void 0;
3905        }
3906        const doc = ownerDocument(floatingFocusElement);
3907        function clearPointerDownOutside() {
3908          pointerDownOutsideRef.current = false;
3909        }
3910        function onPointerDown(event) {
3911          const target = getTarget(event);
3912          const insideElements = getResolvedInsideElements();
3913          const pointerTargetInside = contains(floating, target) || contains(domReference, target) || contains(portalContext?.portalNode, target) || insideElements.some((element) => element === target || contains(element, target));
3914          pointerDownOutsideRef.current = !pointerTargetInside;
3915          lastInteractionTypeRef.current = event.pointerType || "keyboard";
3916          if (closest(target, `[$CLICK_TRIGGER_IDENTIFIER}]`)) {
3917            isPointerDownRef.current = true;
3918            pointerDownTimeout.start(0, () => {
3919              isPointerDownRef.current = false;
3920            });
3921          }
3922        }
3923        function onKeyDown() {
3924          lastInteractionTypeRef.current = "keyboard";
3925        }
3926        return mergeCleanups(
3927          addEventListener(doc, "pointerdown", onPointerDown, true),
3928          addEventListener(doc, "pointerup", clearPointerDownOutside, true),
3929          addEventListener(doc, "pointercancel", clearPointerDownOutside, true),
3930          addEventListener(doc, "keydown", onKeyDown, true),
3931          // Avoid a stale `true` leaking into the next open (e.g. keep-mounted popups)
3932          // if the popup dismissed between pointerdown and pointerup.
3933          clearPointerDownOutside
3934        );
3935      }, [disabled2, floating, domReference, floatingFocusElement, open2, portalContext, pointerDownTimeout, getResolvedInsideElements]);
3936      React22.useEffect(() => {
3937        if (disabled2 || !closeOnFocusOut) {
3938          return void 0;
3939        }
3940        const doc = ownerDocument(floatingFocusElement);
3941        function handlePointerDown() {
3942          isPointerDownRef.current = true;
3943          pointerDownTimeout.start(0, () => {
3944            isPointerDownRef.current = false;
3945          });
3946        }
3947        function handleFocusIn(event) {
3948          const target = getTarget(event);
3949          if (isTabbable(target)) {
3950            lastFocusedTabbableRef.current = target;
3951          }
3952        }
3953        function handleFocusOutside(event) {
3954          const relatedTarget = event.relatedTarget;
3955          const currentTarget = event.currentTarget;
3956          const target = getTarget(event);
3957          if (modal && relatedTarget == null && target != null && contains(floating, target)) {
3958            addPreviouslyFocusedElement(target);
3959          }
3960          queueMicrotask(() => {
3961            const nodeId = getNodeId();
3962            const triggers = store.context.triggerElements;
3963            const insideElements = getResolvedInsideElements();
3964            const isRelatedFocusGuard = relatedTarget?.hasAttribute(createAttribute("focus-guard")) && [beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeInsideRef.current, portalContext?.afterInsideRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement)].includes(relatedTarget);
3965            const movedToUnrelatedNode = !(contains(domReference, relatedTarget) || contains(floating, relatedTarget) || contains(relatedTarget, floating) || contains(portalContext?.portalNode, relatedTarget) || insideElements.some((element) => element === relatedTarget || contains(element, relatedTarget)) || triggers.hasMatchingElement((trigger) => contains(trigger, relatedTarget)) || isRelatedFocusGuard || tree && (getNodeChildren(tree.nodesRef.current, nodeId).find((node) => contains(node.context?.elements.floating, relatedTarget) || contains(node.context?.elements.domReference, relatedTarget)) || getNodeAncestors(tree.nodesRef.current, nodeId).find((node) => [node.context?.elements.floating, getFloatingFocusElement(node.context?.elements.floating)].includes(relatedTarget) || node.context?.elements.domReference === relatedTarget)));
3966            if (currentTarget === domReference && floatingFocusElement) {
3967              handleTabIndex(floatingFocusElement);
3968            }
3969            if (restoreFocus && currentTarget !== domReference && !isElementVisible(target) && activeElement(doc) === doc.body) {
3970              if (isHTMLElement(floatingFocusElement)) {
3971                floatingFocusElement.focus();
3972                if (restoreFocus === "popup") {
3973                  restoreFocusFrame.request(() => {
3974                    floatingFocusElement.focus();
3975                  });
3976                  return;
3977                }
3978              }
3979              const tabbableContent = getTabbableContent();
3980              const prevTabbable = lastFocusedTabbableRef.current;
3981              const nodeToFocus = (prevTabbable && tabbableContent.includes(prevTabbable) ? prevTabbable : null) || tabbableContent[tabbableContent.length - 1] || floatingFocusElement;
3982              if (isHTMLElement(nodeToFocus)) {
3983                nodeToFocus.focus();
3984              }
3985            }
3986            if (dataRef.current.insideReactTree) {
3987              dataRef.current.insideReactTree = false;
3988              return;
3989            }
3990            if ((isUntrappedTypeableCombobox ? true : !modal) && relatedTarget && movedToUnrelatedNode && !isPointerDownRef.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
3991            // For an "untrapped" typeable combobox (input role=combobox with
3992            // initialFocus=false), re-opening the popup and tabbing out should still close it even
3993            // when the previously focused element (e.g. the next tabbable outside the popup) is
3994            // focused again. Otherwise, the popup remains open on the second Tab sequence:
3995            // click input -> Tab (closes) -> click input -> Tab.
3996            // Allow closing when `isUntrappedTypeableCombobox` regardless of the previously focused element.
3997            (isUntrappedTypeableCombobox || relatedTarget !== getPreviouslyFocusedElement())) {
3998              preventReturnFocusRef.current = true;
3999              store.setOpen(false, createChangeEventDetails(reason_parts_exports.focusOut, event));
4000            }
4001          });
4002        }
4003        function markInsideReactTree() {
4004          if (pointerDownOutsideRef.current) {
4005            return;
4006          }
4007          dataRef.current.insideReactTree = true;
4008          blurTimeout.start(0, () => {
4009            dataRef.current.insideReactTree = false;
4010          });
4011        }
4012        const domReferenceElement = isHTMLElement(domReference) ? domReference : null;
4013        if (!floating && !domReferenceElement) {
4014          return void 0;
4015        }
4016        return mergeCleanups(domReferenceElement && addEventListener(domReferenceElement, "focusout", handleFocusOutside), domReferenceElement && addEventListener(domReferenceElement, "pointerdown", handlePointerDown), floating && addEventListener(floating, "focusin", handleFocusIn), floating && addEventListener(floating, "focusout", handleFocusOutside), floating && portalContext && addEventListener(floating, "focusout", markInsideReactTree, true));
4017      }, [disabled2, domReference, floating, floatingFocusElement, modal, tree, portalContext, store, closeOnFocusOut, restoreFocus, getTabbableContent, isUntrappedTypeableCombobox, getNodeId, dataRef, blurTimeout, pointerDownTimeout, restoreFocusFrame, nextFocusableElement, previousFocusableElement, getResolvedInsideElements]);
4018      React22.useEffect(() => {
4019        if (disabled2 || !floating || !open2) {
4020          return void 0;
4021        }
4022        const portalNodes = Array.from(portalContext?.portalNode?.querySelectorAll(`[$createAttribute("portal")}]`) || []);
4023        const ancestors = tree ? getNodeAncestors(tree.nodesRef.current, getNodeId()) : [];
4024        const rootAncestorComboboxDomReference = ancestors.find((node) => isTypeableCombobox(node.context?.elements.domReference || null))?.context?.elements.domReference;
4025        const controlInsideElements = [floating, ...portalNodes, beforeGuardRef.current, afterGuardRef.current, portalContext?.beforeOutsideRef.current, portalContext?.afterOutsideRef.current, ...getResolvedInsideElements()];
4026        const insideElements = [...controlInsideElements, rootAncestorComboboxDomReference, resolveRef(previousFocusableElement), resolveRef(nextFocusableElement), isUntrappedTypeableCombobox ? domReference : null].filter((x) => x != null);
4027        const ariaHiddenCleanup = markOthers(insideElements, {
4028          ariaHidden: modal || isUntrappedTypeableCombobox,
4029          mark: false
4030        });
4031        const markerInsideElements = [floating, ...portalNodes].filter((x) => x != null);
4032        const markerCleanup = markOthers(markerInsideElements);
4033        return () => {
4034          markerCleanup();
4035          ariaHiddenCleanup();
4036        };
4037      }, [open2, disabled2, domReference, floating, modal, portalContext, isUntrappedTypeableCombobox, tree, getNodeId, nextFocusableElement, previousFocusableElement, getResolvedInsideElements]);
4038      useIsoLayoutEffect(() => {
4039        if (!open2 || disabled2 || !isHTMLElement(floatingFocusElement)) {
4040          return;
4041        }
4042        closeTypeRef.current = "";
4043        lastInteractionTypeRef.current = "";
4044        const doc = ownerDocument(floatingFocusElement);
4045        const previouslyFocusedElement = activeElement(doc);
4046        queueMicrotask(() => {
4047          const initialFocusValueOrFn = initialFocusRef.current;
4048          const resolvedInitialFocus = typeof initialFocusValueOrFn === "function" ? initialFocusValueOrFn(openInteractionTypeRef.current || "") : initialFocusValueOrFn;
4049          if (resolvedInitialFocus === void 0 || resolvedInitialFocus === false) {
4050            return;
4051          }
4052          const focusAlreadyInsideFloatingEl = contains(floatingFocusElement, previouslyFocusedElement);
4053          if (focusAlreadyInsideFloatingEl) {
4054            return;
4055          }
4056          let focusableElements = null;
4057          const getDefaultFocusElement = () => {
4058            if (focusableElements == null) {
4059              focusableElements = getTabbableContent(floatingFocusElement);
4060            }
4061            return focusableElements[0] || floatingFocusElement;
4062          };
4063          let elToFocus;
4064          if (resolvedInitialFocus === true || resolvedInitialFocus === null) {
4065            elToFocus = getDefaultFocusElement();
4066          } else {
4067            elToFocus = resolveRef(resolvedInitialFocus);
4068          }
4069          elToFocus = elToFocus || getDefaultFocusElement();
4070          const hadFocusInside = contains(floatingFocusElement, activeElement(doc));
4071          const openEvent = dataRef.current.openEvent;
4072          const openedByVirtualPress = openEvent?.type === "mousedown" && isVirtualClick(openEvent);
4073          void enqueueFocus(elToFocus, {
4074            sync: openedByVirtualPress,
4075            preventScroll: elToFocus === floatingFocusElement,
4076            shouldFocus() {
4077              if (!openRef.current) {
4078                return false;
4079              }
4080              if (hadFocusInside) {
4081                return true;
4082              }
4083              const currentActiveElement = activeElement(doc);
4084              const focusMovedInside = currentActiveElement !== elToFocus && contains(floatingFocusElement, currentActiveElement);
4085              return !focusMovedInside;
4086            }
4087          });
4088        });
4089      }, [disabled2, open2, floatingFocusElement, getTabbableContent, initialFocusRef, openInteractionTypeRef, openRef, dataRef]);
4090      const pendingReturnFocusRef = React22.useRef(null);
4091      useIsoLayoutEffect(() => {
4092        if (disabled2 || !floatingFocusElement) {
4093          pendingReturnFocusRef.current = null;
4094          return void 0;
4095        }
4096        if (pendingReturnFocusRef.current) {
4097          pendingReturnFocusRef.current.cancelled = true;
4098          pendingReturnFocusRef.current = null;
4099        }
4100        const doc = ownerDocument(floatingFocusElement);
4101        const elementFocusedBeforeOpen = activeElement(doc);
4102        const preferPreviousFocus = openInteractionTypeRef.current == null;
4103        addPreviouslyFocusedElement(elementFocusedBeforeOpen);
4104        function onOpenChangeLocal(details) {
4105          if (!details.open) {
4106            closeTypeRef.current = getEventType(details.nativeEvent, lastInteractionTypeRef.current);
4107          }
4108          if (details.reason === reason_parts_exports.focusOut && details.triggerElement?.hasAttribute(createAttribute("focus-guard")) || details.reason === reason_parts_exports.triggerHover && details.nativeEvent.type === "mouseleave") {
4109            preventReturnFocusRef.current = true;
4110          }
4111          if (details.reason !== reason_parts_exports.outsidePress) {
4112            return;
4113          }
4114          if (details.nested) {
4115            preventReturnFocusRef.current = false;
4116          } else if (isVirtualClick(details.nativeEvent) || isVirtualPointerEvent(details.nativeEvent)) {
4117            preventReturnFocusRef.current = false;
4118          } else {
4119            let isPreventScrollSupported = false;
4120            ownerDocument(floatingFocusElement).createElement("div").focus({
4121              get preventScroll() {
4122                isPreventScrollSupported = true;
4123                return false;
4124              }
4125            });
4126            if (isPreventScrollSupported) {
4127              preventReturnFocusRef.current = false;
4128            } else {
4129              preventReturnFocusRef.current = true;
4130            }
4131          }
4132        }
4133        events.on("openchange", onOpenChangeLocal);
4134        function getReturnElement(closeType) {
4135          const returnFocusValueOrFn = returnFocusRef.current;
4136          let resolvedReturnFocusValue = typeof returnFocusValueOrFn === "function" ? returnFocusValueOrFn(closeType) : returnFocusValueOrFn;
4137          if (resolvedReturnFocusValue === void 0 || resolvedReturnFocusValue === false) {
4138            return null;
4139          }
4140          if (resolvedReturnFocusValue === null) {
4141            resolvedReturnFocusValue = true;
4142          }
4143          const referenceReturnElement = domReference?.isConnected ? domReference : null;
4144          const previousReturnElement = elementFocusedBeforeOpen?.isConnected && getNodeName(elementFocusedBeforeOpen) !== "body" ? elementFocusedBeforeOpen : null;
4145          let defaultReturnElement = preferPreviousFocus ? previousReturnElement || referenceReturnElement : referenceReturnElement || previousReturnElement;
4146          if (!defaultReturnElement) {
4147            defaultReturnElement = getPreviouslyFocusedElement() || null;
4148          }
4149          if (typeof resolvedReturnFocusValue === "boolean") {
4150            return defaultReturnElement;
4151          }
4152          return resolveRef(resolvedReturnFocusValue) || defaultReturnElement || null;
4153        }
4154        return () => {
4155          events.off("openchange", onOpenChangeLocal);
4156          const activeEl = activeElement(doc);
4157          const insideElements = getResolvedInsideElements();
4158          const isFocusInsideFloatingTree = contains(floating, activeEl) || insideElements.some((element) => element === activeEl || contains(element, activeEl)) || tree && getNodeChildren(tree.nodesRef.current, getNodeId(), false).some((node) => contains(node.context?.elements.floating, activeEl));
4159          const returnFocusValueOrFn = returnFocusRef.current;
4160          const closeType = closeTypeRef.current;
4161          const returnElement = getReturnElement(closeType);
4162          const job = {
4163            cancelled: false
4164          };
4165          pendingReturnFocusRef.current = job;
4166          queueMicrotask(() => {
4167            if (pendingReturnFocusRef.current === job) {
4168              pendingReturnFocusRef.current = null;
4169            }
4170            const tabbableReturnElement = getFirstTabbableElement(returnElement);
4171            const hasExplicitReturnFocus = (
4172              // eslint-disable-next-line react-hooks/exhaustive-deps
4173              explicitReturnFocusRef.current ?? typeof returnFocusValueOrFn !== "boolean"
4174            );
4175            if (!job.cancelled && returnFocusValueOrFn && !preventReturnFocusRef.current && isHTMLElement(tabbableReturnElement) && // If the focus moved somewhere else after mount, avoid returning focus
4176            // since it likely entered a different element which should be
4177            // respected: https://github.com/floating-ui/floating-ui/issues/2607
4178            (!hasExplicitReturnFocus && tabbableReturnElement !== activeEl && activeEl !== doc.body ? isFocusInsideFloatingTree : true)) {
4179              const focusOptions = {
4180                preventScroll: true
4181              };
4182              if (closeType === "keyboard") {
4183                focusOptions.focusVisible = true;
4184              }
4185              tabbableReturnElement.focus(focusOptions);
4186            }
4187            preventReturnFocusRef.current = false;
4188          });
4189        };
4190      }, [disabled2, floating, floatingFocusElement, returnFocusRef, explicitReturnFocusRef, openInteractionTypeRef, events, tree, domReference, getNodeId, getResolvedInsideElements]);
4191      useIsoLayoutEffect(() => {
4192        if (!parts_exports.engine.webkit || open2 || !floating) {
4193          return;
4194        }
4195        const activeEl = activeElement(ownerDocument(floating));
4196        if (!isHTMLElement(activeEl) || !isTypeableElement(activeEl)) {
4197          return;
4198        }
4199        if (contains(floating, activeEl)) {
4200          activeEl.blur();
4201        }
4202      }, [open2, floating]);
4203      useIsoLayoutEffect(() => {
4204        if (disabled2 || !portalContext) {
4205          return void 0;
4206        }
4207        portalContext.setFocusManagerState({
4208          modal,
4209          closeOnFocusOut,
4210          open: open2,
4211          onOpenChange: store.setOpen,
4212          domReference
4213        });
4214        return () => {
4215          portalContext.setFocusManagerState(null);
4216        };
4217      }, [disabled2, portalContext, modal, open2, store, closeOnFocusOut, domReference]);
4218      useIsoLayoutEffect(() => {
4219        if (disabled2 || !floatingFocusElement) {
4220          return void 0;
4221        }
4222        handleTabIndex(floatingFocusElement);
4223        return () => {
4224          queueMicrotask(clearDisconnectedPreviouslyFocusedElements);
4225        };
4226      }, [disabled2, floatingFocusElement]);
4227      const shouldRenderGuards = !disabled2 && (modal ? !isUntrappedTypeableCombobox : true) && (isInsidePortal || modal);
4228      return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(React22.Fragment, {
4229        children: [shouldRenderGuards && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(FocusGuard, {
4230          "data-type": "inside",
4231          ref: mergedBeforeGuardRef,
4232          onFocus: (event) => {
4233            if (modal) {
4234              const els = getTabbableContent();
4235              void enqueueFocus(els[els.length - 1]);
4236            } else if (portalContext?.portalNode) {
4237              preventReturnFocusRef.current = false;
4238              if (isOutsideEvent(event, portalContext.portalNode)) {
4239                const nextTabbable = getNextTabbable(domReference);
4240                nextTabbable?.focus();
4241              } else {
4242                resolveRef(previousFocusableElement ?? portalContext.beforeOutsideRef)?.focus();
4243              }
4244            }
4245          }
4246        }), children, shouldRenderGuards && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(FocusGuard, {
4247          "data-type": "inside",
4248          ref: mergedAfterGuardRef,
4249          onFocus: (event) => {
4250            if (modal) {
4251              void enqueueFocus(getTabbableContent()[0]);
4252            } else if (portalContext?.portalNode) {
4253              if (closeOnFocusOut) {
4254                preventReturnFocusRef.current = true;
4255              }
4256              if (isOutsideEvent(event, portalContext.portalNode)) {
4257                const prevTabbable = getPreviousTabbable(domReference);
4258                prevTabbable?.focus();
4259              } else {
4260                resolveRef(nextFocusableElement ?? portalContext.afterOutsideRef)?.focus();
4261              }
4262            }
4263          }
4264        })]
4265      });
4266    }
4267  
4268    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/hooks/useClick.mjs
4269    var React23 = __toESM(require_react(), 1);
4270    function useClick(store, props = {}) {
4271      const {
4272        enabled = true,
4273        event: eventOption = "click",
4274        toggle = true,
4275        ignoreMouse = false,
4276        stickIfOpen = true,
4277        touchOpenDelay = 0,
4278        reason = reason_parts_exports.triggerPress
4279      } = props;
4280      const dataRef = store.context.dataRef;
4281      const pointerTypeRef = React23.useRef(void 0);
4282      const frame = useAnimationFrame();
4283      const touchOpenTimeout = useTimeout();
4284      const reference = React23.useMemo(() => {
4285        function setOpenWithTouchDelay(nextOpen, nativeEvent, target, pointerType) {
4286          const details = createChangeEventDetails(reason, nativeEvent, target);
4287          if (nextOpen && pointerType === "touch" && touchOpenDelay > 0) {
4288            touchOpenTimeout.start(touchOpenDelay, () => {
4289              store.setOpen(true, details);
4290            });
4291          } else {
4292            store.setOpen(nextOpen, details);
4293          }
4294        }
4295        function getNextOpen(open2, currentTarget, isClickLikeOpenEvent) {
4296          const openEvent = dataRef.current.openEvent;
4297          const hasClickedOnInactiveTrigger = store.select("domReferenceElement") !== currentTarget;
4298          if (open2 && hasClickedOnInactiveTrigger) {
4299            return true;
4300          }
4301          if (!open2) {
4302            return true;
4303          }
4304          if (!toggle) {
4305            return true;
4306          }
4307          if (openEvent && (typeof stickIfOpen === "function" ? stickIfOpen() : stickIfOpen)) {
4308            return !isClickLikeOpenEvent(openEvent.type);
4309          }
4310          return false;
4311        }
4312        return {
4313          onPointerDown(event) {
4314            pointerTypeRef.current = isMouseLikePointerType(event.pointerType, true) && isVirtualPointerEvent(event.nativeEvent) ? "virtual" : event.pointerType;
4315          },
4316          onMouseDown(event) {
4317            const pointerType = pointerTypeRef.current;
4318            const nativeEvent = event.nativeEvent;
4319            const open2 = store.select("open");
4320            if (event.button !== 0 || eventOption === "click" || isMouseLikePointerType(pointerType, true) && ignoreMouse) {
4321              return;
4322            }
4323            const nextOpen = getNextOpen(open2, event.currentTarget, (openEventType) => openEventType === "click" || openEventType === "mousedown");
4324            const target = getTarget(nativeEvent);
4325            const isTypeable = isTypeableElement(target);
4326            if (isTypeable || pointerType === "virtual") {
4327              setOpenWithTouchDelay(nextOpen, nativeEvent, isTypeable ? target : event.currentTarget, pointerType);
4328              return;
4329            }
4330            const eventCurrentTarget = event.currentTarget;
4331            frame.request(() => {
4332              setOpenWithTouchDelay(nextOpen, nativeEvent, eventCurrentTarget, pointerType);
4333            });
4334          },
4335          onClick(event) {
4336            if (eventOption === "mousedown-only") {
4337              return;
4338            }
4339            const pointerType = pointerTypeRef.current;
4340            if (eventOption === "mousedown" && pointerType) {
4341              pointerTypeRef.current = void 0;
4342              return;
4343            }
4344            if (isMouseLikePointerType(pointerType, true) && ignoreMouse) {
4345              return;
4346            }
4347            const open2 = store.select("open");
4348            const nextOpen = getNextOpen(open2, event.currentTarget, (openEventType) => openEventType === "click" || openEventType === "mousedown" || openEventType === "keydown" || openEventType === "keyup");
4349            setOpenWithTouchDelay(nextOpen, event.nativeEvent, event.currentTarget, pointerType);
4350          },
4351          onKeyDown() {
4352            pointerTypeRef.current = void 0;
4353          }
4354        };
4355      }, [dataRef, eventOption, ignoreMouse, reason, store, stickIfOpen, toggle, frame, touchOpenTimeout, touchOpenDelay]);
4356      return React23.useMemo(() => enabled ? {
4357        reference
4358      } : EMPTY_OBJECT, [enabled, reference]);
4359    }
4360  
4361    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/hooks/useDismiss.mjs
4362    var React24 = __toESM(require_react(), 1);
4363    function alwaysFalse() {
4364      return false;
4365    }
4366    function normalizeProp(normalizable) {
4367      return {
4368        escapeKey: typeof normalizable === "boolean" ? normalizable : normalizable?.escapeKey ?? false,
4369        outsidePress: typeof normalizable === "boolean" ? normalizable : normalizable?.outsidePress ?? true
4370      };
4371    }
4372    function useDismiss(store, props = {}) {
4373      const {
4374        enabled = true,
4375        escapeKey: escapeKey2 = true,
4376        outsidePress: outsidePressProp = true,
4377        outsidePressEvent = "sloppy",
4378        referencePress = alwaysFalse,
4379        bubbles,
4380        externalTree
4381      } = props;
4382      const open2 = store.useState("open");
4383      const floatingElement = store.useState("floatingElement");
4384      const {
4385        dataRef,
4386        events
4387      } = store.context;
4388      const tree = useFloatingTree(externalTree);
4389      const outsidePressFn = useStableCallback(typeof outsidePressProp === "function" ? outsidePressProp : () => false);
4390      const outsidePress2 = typeof outsidePressProp === "function" ? outsidePressFn : outsidePressProp;
4391      const outsidePressEnabled = outsidePress2 !== false;
4392      const getOutsidePressEventProp = useStableCallback(() => outsidePressEvent);
4393      const {
4394        escapeKey: escapeKeyBubbles,
4395        outsidePress: outsidePressBubbles
4396      } = normalizeProp(bubbles);
4397      const pressStartedInsideRef = React24.useRef(false);
4398      const pressStartPreventedRef = React24.useRef(false);
4399      const suppressNextOutsideClickRef = React24.useRef(false);
4400      const sawPressWhileOpenRef = React24.useRef(false);
4401      const isComposingRef = React24.useRef(false);
4402      const currentPointerTypeRef = React24.useRef("");
4403      const touchStateRef = React24.useRef(null);
4404      const cancelDismissOnEndTimeout = useTimeout();
4405      const clearInsideReactTreeTimeout = useTimeout();
4406      const compositionTimeout = useTimeout();
4407      const clearInsideReactTree = useStableCallback(() => {
4408        clearInsideReactTreeTimeout.clear();
4409        dataRef.current.insideReactTree = false;
4410      });
4411      const hasBlockingChild = useStableCallback((bubbleKey) => {
4412        const nodeId = dataRef.current.floatingContext?.nodeId;
4413        const children = tree ? getNodeChildren(tree.nodesRef.current, nodeId) : [];
4414        return children.some((child) => child.context?.open && !child.context.dataRef.current[bubbleKey]);
4415      });
4416      const isEventWithinOwnElements = useStableCallback((event) => {
4417        return isEventTargetWithin(event, store.select("floatingElement")) || isEventTargetWithin(event, store.select("domReferenceElement"));
4418      });
4419      const closeOnReferencePress = useStableCallback((event) => {
4420        if (!referencePress()) {
4421          return;
4422        }
4423        store.setOpen(false, createChangeEventDetails(reason_parts_exports.triggerPress, event.nativeEvent));
4424      });
4425      const closeOnEscapeKeyDown = useStableCallback((event) => {
4426        if (!open2 || !enabled || !escapeKey2 || event.key !== "Escape") {
4427          return;
4428        }
4429        const native = isReactEvent(event) ? event.nativeEvent : event;
4430        if (isComposingRef.current || native.isComposing) {
4431          return;
4432        }
4433        if (!escapeKeyBubbles && hasBlockingChild("__escapeKeyBubbles")) {
4434          return;
4435        }
4436        const eventDetails = createChangeEventDetails(reason_parts_exports.escapeKey, native);
4437        store.setOpen(false, eventDetails);
4438        if (!eventDetails.isCanceled) {
4439          event.preventDefault();
4440        }
4441        if (!escapeKeyBubbles && !eventDetails.isPropagationAllowed) {
4442          event.stopPropagation();
4443        }
4444      });
4445      const markInsideReactTree = useStableCallback(() => {
4446        dataRef.current.insideReactTree = true;
4447        clearInsideReactTreeTimeout.start(0, clearInsideReactTree);
4448      });
4449      const markPressStartedInsideReactTree = useStableCallback((event) => {
4450        if (!open2 || !enabled || event.button !== 0) {
4451          return;
4452        }
4453        const target = getTarget(event.nativeEvent);
4454        if (!contains(store.select("floatingElement"), target)) {
4455          return;
4456        }
4457        if (!pressStartedInsideRef.current) {
4458          pressStartedInsideRef.current = true;
4459          pressStartPreventedRef.current = false;
4460        }
4461      });
4462      const markInsidePressStartPrevented = useStableCallback((event) => {
4463        if (!open2 || !enabled) {
4464          return;
4465        }
4466        if (!(event.defaultPrevented || event.nativeEvent.defaultPrevented)) {
4467          return;
4468        }
4469        if (pressStartedInsideRef.current) {
4470          pressStartPreventedRef.current = true;
4471        }
4472      });
4473      React24.useEffect(() => {
4474        function handleOpenChange(details) {
4475          if (!details.open) {
4476            sawPressWhileOpenRef.current = false;
4477          }
4478        }
4479        events.on("openchange", handleOpenChange);
4480        return () => {
4481          events.off("openchange", handleOpenChange);
4482        };
4483      }, [events]);
4484      React24.useEffect(() => clearInsideReactTree, [clearInsideReactTree]);
4485      React24.useEffect(() => {
4486        if (!open2 || !enabled) {
4487          if (!open2) {
4488            sawPressWhileOpenRef.current = false;
4489            isComposingRef.current = false;
4490            currentPointerTypeRef.current = "";
4491            touchStateRef.current = null;
4492          }
4493          return clearInsideReactTree;
4494        }
4495        dataRef.current.__escapeKeyBubbles = escapeKeyBubbles;
4496        dataRef.current.__outsidePressBubbles = outsidePressBubbles;
4497        const preventedPressSuppressionTimeout = new Timeout();
4498        const doc = ownerDocument(floatingElement);
4499        function handleCompositionStart() {
4500          compositionTimeout.clear();
4501          isComposingRef.current = true;
4502        }
4503        function handleCompositionEnd() {
4504          isComposingRef.current = true;
4505          compositionTimeout.start(
4506            // 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
4507            // Only apply to WebKit for the test to remain 0ms.
4508            parts_exports.engine.webkit ? 5 : 0,
4509            () => {
4510              isComposingRef.current = false;
4511            }
4512          );
4513        }
4514        function suppressImmediateOutsideClickAfterPreventedStart() {
4515          suppressNextOutsideClickRef.current = true;
4516          preventedPressSuppressionTimeout.start(0, () => {
4517            suppressNextOutsideClickRef.current = false;
4518          });
4519        }
4520        function resetPressStartState() {
4521          pressStartedInsideRef.current = false;
4522          pressStartPreventedRef.current = false;
4523        }
4524        function getOutsidePressEvent() {
4525          const type = currentPointerTypeRef.current;
4526          const computedType = type === "pen" || !type ? "mouse" : type;
4527          const outsidePressEventValue = getOutsidePressEventProp();
4528          const resolved = typeof outsidePressEventValue === "function" ? outsidePressEventValue() : outsidePressEventValue;
4529          if (typeof resolved === "string") {
4530            return resolved;
4531          }
4532          return resolved[computedType];
4533        }
4534        function shouldIgnoreEvent(event) {
4535          const computedOutsidePressEvent = getOutsidePressEvent();
4536          return computedOutsidePressEvent === "intentional" && event.type !== "click" || computedOutsidePressEvent === "sloppy" && event.type === "click";
4537        }
4538        function isEventWithinFloatingTree(event) {
4539          const nodeId = dataRef.current.floatingContext?.nodeId;
4540          const targetIsInsideChildren = tree && getNodeChildren(tree.nodesRef.current, nodeId).some((node) => isEventTargetWithin(event, node.context?.elements.floating));
4541          return isEventWithinOwnElements(event) || targetIsInsideChildren;
4542        }
4543        function closeOnPressOutside(event) {
4544          if (shouldIgnoreEvent(event)) {
4545            if (event.type !== "click" && !isEventWithinOwnElements(event)) {
4546              preventedPressSuppressionTimeout.clear();
4547              suppressNextOutsideClickRef.current = false;
4548            }
4549            clearInsideReactTree();
4550            return;
4551          }
4552          if (dataRef.current.insideReactTree) {
4553            clearInsideReactTree();
4554            return;
4555          }
4556          const target = getTarget(event);
4557          const inertSelector = `[$createAttribute("inert")}]`;
4558          const targetRoot = isElement(target) ? target.getRootNode() : null;
4559          const markers = Array.from((isShadowRoot(targetRoot) ? targetRoot : ownerDocument(store.select("floatingElement"))).querySelectorAll(inertSelector));
4560          const triggers = store.context.triggerElements;
4561          if (target && (triggers.hasElement(target) || triggers.hasMatchingElement((trigger) => contains(trigger, target)))) {
4562            return;
4563          }
4564          let targetRootAncestor = isElement(target) ? target : null;
4565          while (targetRootAncestor && !isLastTraversableNode(targetRootAncestor)) {
4566            const nextParent = getParentNode(targetRootAncestor);
4567            if (isLastTraversableNode(nextParent) || !isElement(nextParent)) {
4568              break;
4569            }
4570            targetRootAncestor = nextParent;
4571          }
4572          if (markers.length && isElement(target) && !isRootElement(target) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
4573          !contains(target, store.select("floatingElement")) && // If the target root element contains none of the markers, then the
4574          // element was injected after the floating element rendered.
4575          markers.every((marker) => !contains(targetRootAncestor, marker))) {
4576            return;
4577          }
4578          if (isHTMLElement(target) && !("touches" in event)) {
4579            const lastTraversableNode = isLastTraversableNode(target);
4580            const style = getComputedStyle2(target);
4581            const scrollRe = /auto|scroll/;
4582            const isScrollableX = lastTraversableNode || scrollRe.test(style.overflowX);
4583            const isScrollableY = lastTraversableNode || scrollRe.test(style.overflowY);
4584            const canScrollX = isScrollableX && target.clientWidth > 0 && target.scrollWidth > target.clientWidth;
4585            const canScrollY = isScrollableY && target.clientHeight > 0 && target.scrollHeight > target.clientHeight;
4586            const isRTL3 = style.direction === "rtl";
4587            const pressedVerticalScrollbar = canScrollY && (isRTL3 ? event.offsetX <= target.offsetWidth - target.clientWidth : event.offsetX > target.clientWidth);
4588            const pressedHorizontalScrollbar = canScrollX && event.offsetY > target.clientHeight;
4589            if (pressedVerticalScrollbar || pressedHorizontalScrollbar) {
4590              return;
4591            }
4592          }
4593          if (isEventWithinFloatingTree(event)) {
4594            return;
4595          }
4596          if (getOutsidePressEvent() === "intentional") {
4597            if (event.detail !== 0 && !isVirtualClick(event) && !sawPressWhileOpenRef.current) {
4598              return;
4599            }
4600            if (suppressNextOutsideClickRef.current) {
4601              preventedPressSuppressionTimeout.clear();
4602              suppressNextOutsideClickRef.current = false;
4603              return;
4604            }
4605          }
4606          if (typeof outsidePress2 === "function" && !outsidePress2(event)) {
4607            return;
4608          }
4609          if (hasBlockingChild("__outsidePressBubbles")) {
4610            return;
4611          }
4612          store.setOpen(false, createChangeEventDetails(reason_parts_exports.outsidePress, event));
4613          clearInsideReactTree();
4614        }
4615        function handlePointerDown(event) {
4616          if (getOutsidePressEvent() !== "sloppy" || event.pointerType === "touch" || !store.select("open") || !enabled || isEventWithinOwnElements(event)) {
4617            return;
4618          }
4619          closeOnPressOutside(event);
4620        }
4621        function handleTouchStart(event) {
4622          if (getOutsidePressEvent() !== "sloppy" || !store.select("open") || !enabled || isEventWithinOwnElements(event)) {
4623            return;
4624          }
4625          const touch = event.touches[0];
4626          if (touch) {
4627            touchStateRef.current = {
4628              startTime: Date.now(),
4629              startX: touch.clientX,
4630              startY: touch.clientY,
4631              dismissOnTouchEnd: false,
4632              dismissOnMouseDown: true
4633            };
4634            cancelDismissOnEndTimeout.start(1e3, () => {
4635              if (touchStateRef.current) {
4636                touchStateRef.current.dismissOnTouchEnd = false;
4637                touchStateRef.current.dismissOnMouseDown = false;
4638              }
4639            });
4640          }
4641        }
4642        function addTargetEventListenerOnce(event, listener) {
4643          const target = getTarget(event);
4644          if (!target) {
4645            return;
4646          }
4647          const unsubscribe2 = addEventListener(target, event.type, () => {
4648            listener(event);
4649            unsubscribe2();
4650          });
4651        }
4652        function handleTouchStartCapture(event) {
4653          currentPointerTypeRef.current = "touch";
4654          addTargetEventListenerOnce(event, handleTouchStart);
4655        }
4656        function closeOnPressOutsideCapture(event) {
4657          cancelDismissOnEndTimeout.clear();
4658          if (event.type === "pointerdown") {
4659            if (event.button === 0) {
4660              sawPressWhileOpenRef.current = true;
4661            }
4662            currentPointerTypeRef.current = event.pointerType;
4663          }
4664          if (event.type === "mousedown" && touchStateRef.current && !touchStateRef.current.dismissOnMouseDown) {
4665            return;
4666          }
4667          addTargetEventListenerOnce(event, (targetEvent) => {
4668            if (targetEvent.type === "pointerdown") {
4669              handlePointerDown(targetEvent);
4670            } else {
4671              closeOnPressOutside(targetEvent);
4672            }
4673          });
4674        }
4675        function handlePressEndCapture(event) {
4676          if (event.type === "pointercancel") {
4677            sawPressWhileOpenRef.current = false;
4678          }
4679          if (!pressStartedInsideRef.current) {
4680            return;
4681          }
4682          const pressStartedInsideDefaultPrevented = pressStartPreventedRef.current;
4683          resetPressStartState();
4684          if (getOutsidePressEvent() !== "intentional") {
4685            return;
4686          }
4687          if (event.type === "pointercancel") {
4688            if (pressStartedInsideDefaultPrevented) {
4689              suppressImmediateOutsideClickAfterPreventedStart();
4690            }
4691            return;
4692          }
4693          if (isEventWithinFloatingTree(event)) {
4694            return;
4695          }
4696          if (pressStartedInsideDefaultPrevented) {
4697            suppressImmediateOutsideClickAfterPreventedStart();
4698            return;
4699          }
4700          if (typeof outsidePress2 === "function" && !outsidePress2(event)) {
4701            return;
4702          }
4703          preventedPressSuppressionTimeout.clear();
4704          suppressNextOutsideClickRef.current = true;
4705          clearInsideReactTree();
4706        }
4707        function handleTouchMove(event) {
4708          if (getOutsidePressEvent() !== "sloppy" || !touchStateRef.current || isEventWithinOwnElements(event)) {
4709            return;
4710          }
4711          const touch = event.touches[0];
4712          if (!touch) {
4713            return;
4714          }
4715          const deltaX = Math.abs(touch.clientX - touchStateRef.current.startX);
4716          const deltaY = Math.abs(touch.clientY - touchStateRef.current.startY);
4717          const distance = Math.sqrt(deltaX * deltaX + deltaY * deltaY);
4718          if (distance > 5) {
4719            touchStateRef.current.dismissOnTouchEnd = true;
4720          }
4721          if (distance > 10) {
4722            closeOnPressOutside(event);
4723            cancelDismissOnEndTimeout.clear();
4724            touchStateRef.current = null;
4725          }
4726        }
4727        function handleTouchMoveCapture(event) {
4728          addTargetEventListenerOnce(event, handleTouchMove);
4729        }
4730        function handleTouchEnd(event) {
4731          if (getOutsidePressEvent() !== "sloppy" || !touchStateRef.current || isEventWithinOwnElements(event)) {
4732            return;
4733          }
4734          if (touchStateRef.current.dismissOnTouchEnd) {
4735            closeOnPressOutside(event);
4736          }
4737          cancelDismissOnEndTimeout.clear();
4738          touchStateRef.current = null;
4739        }
4740        function handleTouchEndCapture(event) {
4741          addTargetEventListenerOnce(event, handleTouchEnd);
4742        }
4743        const unsubscribe = mergeCleanups(escapeKey2 && mergeCleanups(addEventListener(doc, "keydown", closeOnEscapeKeyDown), addEventListener(doc, "compositionstart", handleCompositionStart), addEventListener(doc, "compositionend", handleCompositionEnd)), outsidePressEnabled && mergeCleanups(addEventListener(doc, "click", closeOnPressOutsideCapture, true), addEventListener(doc, "pointerdown", closeOnPressOutsideCapture, true), addEventListener(doc, "pointerup", handlePressEndCapture, true), addEventListener(doc, "pointercancel", handlePressEndCapture, true), addEventListener(doc, "mousedown", closeOnPressOutsideCapture, true), addEventListener(doc, "mouseup", handlePressEndCapture, true), addEventListener(doc, "touchstart", handleTouchStartCapture, {
4744          capture: true,
4745          passive: true
4746        }), addEventListener(doc, "touchmove", handleTouchMoveCapture, {
4747          capture: true,
4748          passive: true
4749        }), addEventListener(doc, "touchend", handleTouchEndCapture, {
4750          capture: true,
4751          passive: true
4752        })));
4753        return () => {
4754          unsubscribe();
4755          preventedPressSuppressionTimeout.clear();
4756          resetPressStartState();
4757          suppressNextOutsideClickRef.current = false;
4758        };
4759      }, [dataRef, floatingElement, escapeKey2, outsidePressEnabled, outsidePress2, open2, enabled, escapeKeyBubbles, outsidePressBubbles, closeOnEscapeKeyDown, clearInsideReactTree, getOutsidePressEventProp, hasBlockingChild, isEventWithinOwnElements, tree, store, cancelDismissOnEndTimeout, compositionTimeout]);
4760      const reference = React24.useMemo(() => ({
4761        onKeyDown: closeOnEscapeKeyDown,
4762        onPointerDown: closeOnReferencePress,
4763        onClick: closeOnReferencePress
4764      }), [closeOnEscapeKeyDown, closeOnReferencePress]);
4765      const floating = React24.useMemo(() => ({
4766        onKeyDown: closeOnEscapeKeyDown,
4767        // `onMouseDown` may be blocked if `event.preventDefault()` is called in
4768        // `onPointerDown`, such as with <NumberField.ScrubArea>.
4769        // See https://github.com/mui/base-ui/pull/3379
4770        onPointerDown: markInsidePressStartPrevented,
4771        onMouseDown: markInsidePressStartPrevented,
4772        onClickCapture: markInsideReactTree,
4773        onMouseDownCapture(event) {
4774          markInsideReactTree();
4775          markPressStartedInsideReactTree(event);
4776        },
4777        onPointerDownCapture(event) {
4778          markInsideReactTree();
4779          markPressStartedInsideReactTree(event);
4780        },
4781        onMouseUpCapture: markInsideReactTree,
4782        onTouchEndCapture: markInsideReactTree,
4783        onTouchMoveCapture: markInsideReactTree
4784      }), [closeOnEscapeKeyDown, markInsideReactTree, markPressStartedInsideReactTree, markInsidePressStartPrevented]);
4785      return React24.useMemo(() => enabled ? {
4786        reference,
4787        floating,
4788        trigger: reference
4789      } : {}, [enabled, reference, floating]);
4790    }
4791  
4792    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/popups/popupStoreUtils.mjs
4793    var React26 = __toESM(require_react(), 1);
4794    var ReactDOM3 = __toESM(require_react_dom(), 1);
4795  
4796    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useUnmountAfterClose.mjs
4797    var React25 = __toESM(require_react(), 1);
4798    function useUnmountAfterClose(parameters) {
4799      const {
4800        open: open2,
4801        ref,
4802        preventUnmountOnClose,
4803        setPreventUnmountOnClose: setPreventUnmountOnCloseParam,
4804        onUnmount,
4805        animateInitialOpen
4806      } = parameters;
4807      const setPreventUnmountOnClose = useStableCallback(setPreventUnmountOnCloseParam);
4808      const {
4809        mounted,
4810        setMounted,
4811        transitionStatus
4812      } = useTransitionStatus(open2, false, false, animateInitialOpen);
4813      const preventUnmountingOnClose = open2 ? false : preventUnmountOnClose;
4814      useIsoLayoutEffect(() => {
4815        if (open2) {
4816          setPreventUnmountOnClose(false);
4817        }
4818      }, [open2, setPreventUnmountOnClose]);
4819      const mountedRef = React25.useRef(mounted);
4820      const pendingUnmountRef = React25.useRef(false);
4821      const rerender = useForcedRerendering();
4822      const unmount = () => {
4823        mountedRef.current = false;
4824        setMounted(false);
4825        onUnmount();
4826      };
4827      useIsoLayoutEffect(() => {
4828        mountedRef.current = mounted;
4829        if (pendingUnmountRef.current) {
4830          pendingUnmountRef.current = false;
4831          if (!open2 && mounted) {
4832            unmount();
4833          }
4834        }
4835      });
4836      const forceUnmount = useStableCallback(() => {
4837        if (!mountedRef.current) {
4838          return;
4839        }
4840        if (open2) {
4841          pendingUnmountRef.current = true;
4842          rerender();
4843          return;
4844        }
4845        unmount();
4846      });
4847      useOpenChangeComplete({
4848        enabled: mounted && !open2 && !preventUnmountingOnClose,
4849        open: open2,
4850        ref,
4851        onComplete() {
4852          if (!open2) {
4853            forceUnmount();
4854          }
4855        }
4856      });
4857      return {
4858        mounted,
4859        transitionStatus,
4860        preventUnmountingOnClose,
4861        forceUnmount
4862      };
4863    }
4864  
4865    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/popups/popupStoreUtils.mjs
4866    var FOCUSABLE_POPUP_PROPS = {
4867      tabIndex: -1,
4868      [FOCUSABLE_ATTRIBUTE]: ""
4869    };
4870    function attachPreventUnmountOnClose(eventDetails) {
4871      let preventUnmountOnClose = false;
4872      eventDetails.preventUnmountOnClose = () => {
4873        preventUnmountOnClose = true;
4874      };
4875      return () => preventUnmountOnClose;
4876    }
4877  
4878    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/popups/popupTriggerMap.mjs
4879    var devElementIdsByMap;
4880    function getDevElementIds(map) {
4881      devElementIdsByMap ??= /* @__PURE__ */ new WeakMap();
4882      let elementIds = devElementIdsByMap.get(map);
4883      if (!elementIds) {
4884        elementIds = /* @__PURE__ */ new WeakMap();
4885        devElementIdsByMap.set(map, elementIds);
4886      }
4887      return elementIds;
4888    }
4889    var PopupTriggerMap = class {
4890      idMap = /* @__PURE__ */ new Map();
4891      /**
4892       * Adds a trigger element with the given ID.
4893       *
4894       * Note: The provided element is assumed to not be registered under multiple IDs.
4895       */
4896      add(id, element) {
4897        if (true) {
4898          const elementIds = getDevElementIds(this);
4899          const existingId = elementIds.get(element);
4900          if (existingId !== void 0 && existingId !== id) {
4901            throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.");
4902          }
4903          const previousElement = this.idMap.get(id);
4904          if (previousElement !== void 0 && previousElement !== element) {
4905            elementIds.delete(previousElement);
4906          }
4907          elementIds.set(element, id);
4908        }
4909        this.idMap.set(id, element);
4910      }
4911      /**
4912       * Removes the trigger element with the given ID.
4913       */
4914      delete(id) {
4915        if (true) {
4916          const element = this.idMap.get(id);
4917          if (element !== void 0) {
4918            devElementIdsByMap?.get(this)?.delete(element);
4919          }
4920        }
4921        this.idMap.delete(id);
4922      }
4923      /**
4924       * Whether the given element is registered as a trigger.
4925       */
4926      hasElement(element) {
4927        for (const registered of this.idMap.values()) {
4928          if (registered === element) {
4929            return true;
4930          }
4931        }
4932        return false;
4933      }
4934      /**
4935       * Whether there is a registered trigger element matching the given predicate.
4936       */
4937      hasMatchingElement(predicate) {
4938        for (const element of this.idMap.values()) {
4939          if (predicate(element)) {
4940            return true;
4941          }
4942        }
4943        return false;
4944      }
4945      /**
4946       * Returns the trigger element associated with the given ID, or undefined if no such element exists.
4947       */
4948      getById(id) {
4949        return this.idMap.get(id);
4950      }
4951      /**
4952       * Returns an iterable of all registered trigger entries, where each entry is a tuple of [id, element].
4953       */
4954      entries() {
4955        return this.idMap.entries();
4956      }
4957      /**
4958       * Returns an iterable of all registered trigger elements.
4959       */
4960      elements() {
4961        return this.idMap.values();
4962      }
4963      /**
4964       * Returns the number of registered trigger elements.
4965       */
4966      get size() {
4967        return this.idMap.size;
4968      }
4969    };
4970  
4971    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/store/useStore.mjs
4972    var React28 = __toESM(require_react(), 1);
4973    var import_shim = __toESM(require_shim(), 1);
4974    var import_with_selector = __toESM(require_with_selector(), 1);
4975  
4976    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/fastHooks.mjs
4977    var React27 = __toESM(require_react(), 1);
4978    var hooks = [];
4979    var currentInstance = void 0;
4980    function getInstance() {
4981      return currentInstance;
4982    }
4983    function register(hook) {
4984      hooks.push(hook);
4985    }
4986  
4987    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/store/useStore.mjs
4988    var canUseRawUseSyncExternalStore = isReactVersionAtLeast(19);
4989    var useStoreImplementation = canUseRawUseSyncExternalStore ? useStoreFast : useStoreLegacy;
4990    function useStore(store, selector, a1, a2, a3) {
4991      return useStoreImplementation(store, selector, a1, a2, a3);
4992    }
4993    function useStoreR19(store, selector, a1, a2, a3) {
4994      const getSelection = React28.useCallback(() => selector(store.getSnapshot(), a1, a2, a3), [store, selector, a1, a2, a3]);
4995      return (0, import_shim.useSyncExternalStore)(store.subscribe, getSelection, getSelection);
4996    }
4997    register({
4998      before(instance) {
4999        instance.syncIndex = 0;
5000        if (!instance.didInitialize) {
5001          instance.syncTick = 1;
5002          instance.syncHooks = [];
5003          instance.didChangeStore = true;
5004          instance.getSnapshot = () => {
5005            let didChange2 = false;
5006            for (let i = 0; i < instance.syncHooks.length; i += 1) {
5007              const hook = instance.syncHooks[i];
5008              const value = hook.selector(hook.store.state, hook.a1, hook.a2, hook.a3);
5009              if (!Object.is(hook.value, value)) {
5010                didChange2 = true;
5011                hook.value = value;
5012              }
5013            }
5014            if (didChange2) {
5015              instance.syncTick += 1;
5016            }
5017            return instance.syncTick;
5018          };
5019        }
5020      },
5021      after(instance) {
5022        if (instance.syncHooks.length > 0) {
5023          if (instance.didChangeStore) {
5024            instance.didChangeStore = false;
5025            instance.subscribe = (onStoreChange) => {
5026              const stores = /* @__PURE__ */ new Set();
5027              for (const hook of instance.syncHooks) {
5028                stores.add(hook.store);
5029              }
5030              const unsubscribes = [];
5031              for (const store of stores) {
5032                unsubscribes.push(store.subscribe(onStoreChange));
5033              }
5034              return () => {
5035                for (const unsubscribe of unsubscribes) {
5036                  unsubscribe();
5037                }
5038              };
5039            };
5040          }
5041          (0, import_shim.useSyncExternalStore)(instance.subscribe, instance.getSnapshot, instance.getSnapshot);
5042        }
5043      }
5044    });
5045    function useStoreFast(store, selector, a1, a2, a3) {
5046      const instance = getInstance();
5047      if (!instance) {
5048        return useStoreR19(store, selector, a1, a2, a3);
5049      }
5050      const index3 = instance.syncIndex;
5051      instance.syncIndex += 1;
5052      let hook;
5053      if (!instance.didInitialize) {
5054        hook = {
5055          store,
5056          selector,
5057          a1,
5058          a2,
5059          a3,
5060          value: selector(store.getSnapshot(), a1, a2, a3)
5061        };
5062        instance.syncHooks.push(hook);
5063      } else {
5064        hook = instance.syncHooks[index3];
5065        if (hook.store !== store || hook.selector !== selector || !Object.is(hook.a1, a1) || !Object.is(hook.a2, a2) || !Object.is(hook.a3, a3)) {
5066          if (hook.store !== store) {
5067            instance.didChangeStore = true;
5068          }
5069          hook.store = store;
5070          hook.selector = selector;
5071          hook.a1 = a1;
5072          hook.a2 = a2;
5073          hook.a3 = a3;
5074          hook.value = selector(store.getSnapshot(), a1, a2, a3);
5075        }
5076      }
5077      return hook.value;
5078    }
5079    function useStoreLegacy(store, selector, a1, a2, a3) {
5080      return (0, import_with_selector.useSyncExternalStoreWithSelector)(store.subscribe, store.getSnapshot, store.getSnapshot, (state) => selector(state, a1, a2, a3));
5081    }
5082  
5083    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/store/Store.mjs
5084    var Store = class {
5085      /**
5086       * Creates a store with the given initial state, constructing the class it is called on.
5087       * Calling it on a generic base class (e.g. `ReactStore.create(...)`) constructs that
5088       * class but degrades the inferred instance type to `Store`; use `new` there instead.
5089       */
5090      static create(state) {
5091        return new this(state);
5092      }
5093      /**
5094       * The current state of the store.
5095       * This property is updated immediately when the state changes as a result of calling {@link setState}, {@link update}, or {@link set}.
5096       * To subscribe to state changes, use the {@link useState} method. The value returned by {@link useState} is updated after the component renders (similarly to React's useState).
5097       * The values can be used directly (to avoid subscribing to the store) in effects or event handlers.
5098       *
5099       * Do not modify properties in state directly. Instead, use the provided methods to ensure proper state management and listener notification.
5100       */
5101      // Internal state to handle recursive `setState()` calls
5102      constructor(state) {
5103        this.state = state;
5104        this.listeners = /* @__PURE__ */ new Set();
5105        this.updateTick = 0;
5106      }
5107      /**
5108       * Registers a listener that will be called whenever the store's state changes.
5109       *
5110       * @param fn The listener function to be called on state changes.
5111       * @returns A function to unsubscribe the listener.
5112       */
5113      subscribe = (fn) => {
5114        this.listeners.add(fn);
5115        return () => {
5116          this.listeners.delete(fn);
5117        };
5118      };
5119      /**
5120       * Returns the current state of the store.
5121       */
5122      getSnapshot = () => {
5123        return this.state;
5124      };
5125      /**
5126       * Updates the entire store's state and notifies all registered listeners.
5127       *
5128       * @param newState The new state to set for the store.
5129       */
5130      setState(newState) {
5131        if (this.state === newState) {
5132          return;
5133        }
5134        this.state = newState;
5135        this.updateTick += 1;
5136        const currentTick = this.updateTick;
5137        for (const listener of this.listeners) {
5138          if (currentTick !== this.updateTick) {
5139            return;
5140          }
5141          listener(newState);
5142        }
5143      }
5144      /**
5145       * Merges the provided changes into the current state and notifies listeners if there are changes.
5146       * Each value must match its state key. Pass an exact known subset rather than a broad
5147       * `Partial<State>`, which may contain `undefined` for required state fields.
5148       *
5149       * @param changes An object containing the changes to apply to the current state.
5150       */
5151      update(changes) {
5152        for (const key in changes) {
5153          if (!Object.is(this.state[key], changes[key])) {
5154            this.setState({
5155              ...this.state,
5156              ...changes
5157            });
5158            return;
5159          }
5160        }
5161      }
5162      /**
5163       * Sets a specific key in the store's state to a new value and notifies listeners if the value has changed.
5164       *
5165       * @param key The key in the store's state to update.
5166       * @param value The new value to set for the specified key.
5167       */
5168      set(key, value) {
5169        if (!Object.is(this.state[key], value)) {
5170          this.setState({
5171            ...this.state,
5172            [key]: value
5173          });
5174        }
5175      }
5176      /**
5177       * Gives the state a new reference and updates all registered listeners.
5178       */
5179      notifyAll() {
5180        const newState = {
5181          ...this.state
5182        };
5183        this.setState(newState);
5184      }
5185      use(selector, a1, a2, a3) {
5186        return useStore(this, selector, a1, a2, a3);
5187      }
5188    };
5189  
5190    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/store/ReactStore.mjs
5191    var React29 = __toESM(require_react(), 1);
5192    var ReactStore = class extends Store {
5193      /**
5194       * Creates a new ReactStore instance.
5195       *
5196       * @param state Initial state of the store.
5197       * @param context Non-reactive context values.
5198       * @param selectors Optional selectors for use with `useState`.
5199       */
5200      constructor(state, context = {}, selectors3) {
5201        super(state);
5202        this.context = context;
5203        this.selectors = selectors3;
5204      }
5205      /**
5206       * Non-reactive values such as refs, callbacks, etc.
5207       */
5208      /**
5209       * Synchronizes a single external value into the store.
5210       *
5211       * Note that the while the value in `state` is updated immediately, the value returned
5212       * by `useState` is updated before the next render (similarly to React's `useState`).
5213       */
5214      useSyncedValue(key, value) {
5215        React29.useDebugValue(key);
5216        const store = this;
5217        useIsoLayoutEffect(() => {
5218          if (store.state[key] !== value) {
5219            store.set(key, value);
5220          }
5221        }, [store, key, value]);
5222      }
5223      /**
5224       * Synchronizes a single external value into the store and
5225       * cleans it up (sets to `undefined`) on unmount.
5226       *
5227       * Note that the while the value in `state` is updated immediately, the value returned
5228       * by `useState` is updated before the next render (similarly to React's `useState`).
5229       */
5230      useSyncedValueWithCleanup(key, value) {
5231        const store = this;
5232        useIsoLayoutEffect(() => {
5233          if (store.state[key] !== value) {
5234            store.set(key, value);
5235          }
5236          return () => {
5237            store.set(key, void 0);
5238          };
5239        }, [store, key, value]);
5240      }
5241      /**
5242       * Synchronizes multiple external values into the store.
5243       * Each value must match its state key. Pass an exact known subset rather than a broad
5244       * `Partial<State>`, which may contain `undefined` for required state fields.
5245       *
5246       * Note that the while the values in `state` are updated immediately, the values returned
5247       * by `useState` are updated before the next render (similarly to React's `useState`).
5248       *
5249       * @param statePart An exact subset of state fields to synchronize. Unknown keys are not accepted.
5250       */
5251      useSyncedValues(statePart) {
5252        const store = this;
5253        if (true) {
5254          React29.useDebugValue(statePart, (p) => Object.keys(p));
5255          const keys = React29.useRef(Object.keys(statePart)).current;
5256          const nextKeys = Object.keys(statePart);
5257          if (keys.length !== nextKeys.length || keys.some((key, index3) => key !== nextKeys[index3])) {
5258            console.error("ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.");
5259          }
5260        }
5261        const dependencies = Object.values(statePart);
5262        useIsoLayoutEffect(() => {
5263          store.update(statePart);
5264        }, [store, ...dependencies]);
5265      }
5266      /**
5267       * Registers a controllable prop pair (`controlled`, `defaultValue`) for a specific key. If `controlled`
5268       * is non-undefined, the store's state at `key` is updated to match `controlled`.
5269       */
5270      useControlledProp(key, controlled) {
5271        React29.useDebugValue(key);
5272        const store = this;
5273        const isControlled = controlled !== void 0;
5274        useIsoLayoutEffect(() => {
5275          if (isControlled && !Object.is(store.state[key], controlled)) {
5276            store.setState({
5277              ...store.state,
5278              [key]: controlled
5279            });
5280          }
5281        }, [store, key, controlled, isControlled]);
5282        if (true) {
5283          const cache = this.controlledValues ??= /* @__PURE__ */ new Map();
5284          if (!cache.has(key)) {
5285            cache.set(key, isControlled);
5286          }
5287          const previouslyControlled = cache.get(key);
5288          if (previouslyControlled !== void 0 && previouslyControlled !== isControlled) {
5289            console.error(`A component is changing the $previouslyControlled ? "" : "un"}controlled state of $key.toString()} to be $previouslyControlled ? "un" : ""}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`);
5290          }
5291        }
5292      }
5293      /** Gets the current value from the store using a selector with the provided key.
5294       *
5295       * @param key Key of the selector to use.
5296       */
5297      select(key, a1, a2, a3) {
5298        const selector = this.selectors[key];
5299        return selector(this.state, a1, a2, a3);
5300      }
5301      /**
5302       * Returns a value from the store's state using a selector function.
5303       * Used to subscribe to specific parts of the state.
5304       * This methods causes a rerender whenever the selected state changes.
5305       *
5306       * @param key Key of the selector to use.
5307       */
5308      useState(key, a1, a2, a3) {
5309        React29.useDebugValue(key);
5310        return useStore(this, this.selectors[key], a1, a2, a3);
5311      }
5312      /**
5313       * Wraps a function with `useStableCallback` to ensure it has a stable reference
5314       * and assigns it to the context.
5315       *
5316       * @param key Key of the event callback. Must be a function in the context.
5317       * @param fn Function to assign.
5318       */
5319      useContextCallback(key, fn) {
5320        React29.useDebugValue(key);
5321        const stableFunction = useStableCallback(fn ?? NOOP);
5322        this.context[key] = stableFunction;
5323      }
5324      /**
5325       * Returns a stable setter function for a specific key in the store's state.
5326       * It's commonly used to pass as a ref callback to React elements.
5327       *
5328       * @param key Key of the state to set.
5329       */
5330      useStateSetter(key) {
5331        const ref = React29.useRef(void 0);
5332        if (ref.current === void 0) {
5333          ref.current = (value) => {
5334            this.set(key, value);
5335          };
5336        }
5337        return ref.current;
5338      }
5339      /**
5340       * Observes changes derived from the store's selectors and calls the listener when the selected value changes.
5341       *
5342       * @param key Key of the selector to observe.
5343       * @param listener Listener function called when the selector result changes.
5344       */
5345      observe(selector, listener) {
5346        let selectFn;
5347        if (typeof selector === "function") {
5348          selectFn = selector;
5349        } else {
5350          selectFn = this.selectors[selector];
5351        }
5352        let prevValue = selectFn(this.state);
5353        listener(prevValue, prevValue, this);
5354        return this.subscribe((nextState) => {
5355          const nextValue = selectFn(nextState);
5356          if (!Object.is(prevValue, nextValue)) {
5357            const oldValue = prevValue;
5358            prevValue = nextValue;
5359            listener(nextValue, oldValue, this);
5360          }
5361        });
5362      }
5363    };
5364  
5365    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/components/FloatingRootStore.mjs
5366    var selectors = {
5367      open: (state) => state.open,
5368      transitionStatus: (state) => state.transitionStatus,
5369      domReferenceElement: (state) => state.domReferenceElement,
5370      referenceElement: (state) => state.positionReference ?? state.referenceElement,
5371      floatingElement: (state) => state.floatingElement,
5372      floatingId: (state) => state.floatingId
5373    };
5374    var FloatingRootStore = class extends ReactStore {
5375      constructor(options) {
5376        const {
5377          syncOnly,
5378          nested,
5379          onOpenChange,
5380          triggerElements,
5381          ...initialState
5382        } = options;
5383        super({
5384          ...initialState,
5385          positionReference: initialState.referenceElement,
5386          domReferenceElement: initialState.referenceElement
5387        }, {
5388          onOpenChange,
5389          dataRef: {
5390            current: {}
5391          },
5392          events: createEventEmitter(),
5393          nested,
5394          triggerElements
5395        }, selectors);
5396        this.syncOnly = syncOnly;
5397      }
5398      /**
5399       * Syncs the event used by hover logic to distinguish hover-open from click-like interaction.
5400       */
5401      syncOpenEvent = (newOpen, event) => {
5402        if (!newOpen || !this.state.open || // Prevent a pending hover-open from overwriting a click-open event, while allowing
5403        // click events to upgrade a hover-open.
5404        event != null && isClickLikeEvent(event)) {
5405          this.context.dataRef.current.openEvent = newOpen ? event : void 0;
5406        }
5407      };
5408      /**
5409       * Runs the root-owned side effects for an open state change.
5410       */
5411      dispatchOpenChange = (newOpen, eventDetails) => {
5412        this.syncOpenEvent(newOpen, eventDetails.event);
5413        const details = {
5414          open: newOpen,
5415          reason: eventDetails.reason,
5416          nativeEvent: eventDetails.event,
5417          nested: this.context.nested,
5418          triggerElement: eventDetails.trigger
5419        };
5420        this.context.events.emit("openchange", details);
5421      };
5422      /**
5423       * Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.
5424       *
5425       * @param newOpen The new open state.
5426       * @param eventDetails Details about the event that triggered the open state change.
5427       */
5428      setOpen = (newOpen, eventDetails) => {
5429        if (this.syncOnly) {
5430          this.context.onOpenChange?.(newOpen, eventDetails);
5431          return;
5432        }
5433        this.dispatchOpenChange(newOpen, eventDetails);
5434        this.context.onOpenChange?.(newOpen, eventDetails);
5435      };
5436    };
5437  
5438    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/hooks/useFloatingRootContext.mjs
5439    function useFloatingRootContext(options) {
5440      const {
5441        open: open2 = false,
5442        onOpenChange,
5443        elements = {}
5444      } = options;
5445      const floatingId = useId();
5446      const nested = useFloatingParentNodeId() != null;
5447      if (true) {
5448        const optionDomReference = elements.reference;
5449        if (optionDomReference && !isElement(optionDomReference)) {
5450          console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
5451        }
5452      }
5453      const store = useRefWithInit(() => new FloatingRootStore({
5454        open: open2,
5455        transitionStatus: void 0,
5456        onOpenChange,
5457        referenceElement: elements.reference ?? null,
5458        floatingElement: elements.floating ?? null,
5459        triggerElements: new PopupTriggerMap(),
5460        floatingId,
5461        syncOnly: false,
5462        nested
5463      })).current;
5464      useIsoLayoutEffect(() => {
5465        const valuesToSync = {
5466          open: open2,
5467          floatingId
5468        };
5469        if (elements.reference !== void 0) {
5470          valuesToSync.referenceElement = elements.reference;
5471          valuesToSync.domReferenceElement = isElement(elements.reference) ? elements.reference : null;
5472        }
5473        if (elements.floating !== void 0) {
5474          valuesToSync.floatingElement = elements.floating;
5475        }
5476        store.update(valuesToSync);
5477      }, [open2, floatingId, elements.reference, elements.floating, store]);
5478      store.context.onOpenChange = onOpenChange;
5479      store.context.nested = nested;
5480      return store;
5481    }
5482  
5483    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/hooks/useListNavigation.mjs
5484    var React30 = __toESM(require_react(), 1);
5485    function isStationaryWebKitPointer(event) {
5486      return parts_exports.engine.webkit && event.movementX === 0 && event.movementY === 0;
5487    }
5488    function doSwitch(orientation, vertical, horizontal) {
5489      switch (orientation) {
5490        case "vertical":
5491          return vertical;
5492        case "horizontal":
5493          return horizontal;
5494        default:
5495          return vertical || horizontal;
5496      }
5497    }
5498    function isMainOrientationKey(key, orientation) {
5499      const vertical = key === ARROW_UP || key === ARROW_DOWN;
5500      const horizontal = key === ARROW_LEFT || key === ARROW_RIGHT;
5501      return doSwitch(orientation, vertical, horizontal);
5502    }
5503    function isMainOrientationToEndKey(key, orientation, rtl) {
5504      const vertical = key === ARROW_DOWN;
5505      const horizontal = rtl ? key === ARROW_LEFT : key === ARROW_RIGHT;
5506      return doSwitch(orientation, vertical, horizontal) || key === "Enter" || key === " " || key === "";
5507    }
5508    function isCrossOrientationOpenKey(key, orientation, rtl) {
5509      const vertical = rtl ? key === ARROW_LEFT : key === ARROW_RIGHT;
5510      const horizontal = key === ARROW_DOWN;
5511      return doSwitch(orientation, vertical, horizontal);
5512    }
5513    function isCrossOrientationCloseKey(key, orientation, rtl, grid) {
5514      const vertical = rtl ? key === ARROW_RIGHT : key === ARROW_LEFT;
5515      const horizontal = key === ARROW_UP;
5516      if (orientation === "both" || orientation === "horizontal" && grid) {
5517        return key === "Escape";
5518      }
5519      return doSwitch(orientation, vertical, horizontal);
5520    }
5521    function useListNavigation(store, props) {
5522      const {
5523        listRef,
5524        activeIndex,
5525        onNavigate: onNavigateProp = () => {
5526        },
5527        enabled = true,
5528        selectedIndex = null,
5529        allowEscape = false,
5530        loopFocus = false,
5531        nested = false,
5532        rtl = false,
5533        virtual = false,
5534        focusItemOnOpen = "auto",
5535        focusItemOnHover = true,
5536        openOnArrowKeyDown = true,
5537        disabledIndices = void 0,
5538        orientation = "vertical",
5539        triggerOrientation = orientation,
5540        parentOrientation,
5541        id,
5542        resetOnPointerLeave = true,
5543        externalTree,
5544        nestedReturnFocusRef,
5545        grid: navigateGrid
5546      } = props;
5547      const isGrid = navigateGrid != null;
5548      if (true) {
5549        if (allowEscape) {
5550          if (!loopFocus) {
5551            console.warn("`useListNavigation` looping must be enabled to allow escaping.");
5552          }
5553          if (!virtual) {
5554            console.warn("`useListNavigation` must be virtual to allow escaping.");
5555          }
5556        }
5557        if (orientation === "vertical" && isGrid) {
5558          console.warn("In grid list navigation mode, the `orientation` should", 'be either "horizontal" or "both".');
5559        }
5560      }
5561      const open2 = store.useState("open");
5562      const floatingElement = store.useState("floatingElement");
5563      const domReferenceElement = store.useState("domReferenceElement");
5564      const dataRef = store.context.dataRef;
5565      const floatingFocusElement = getFloatingFocusElement(floatingElement);
5566      const typeableComboboxReference = isTypeableCombobox(domReferenceElement);
5567      const floatingFocusElementRef = useValueAsRef(floatingFocusElement);
5568      const parentId = useFloatingParentNodeId();
5569      const tree = useFloatingTree(externalTree);
5570      const focusItemOnOpenRef = React30.useRef(focusItemOnOpen);
5571      const indexRef = React30.useRef(selectedIndex ?? -1);
5572      const keyRef = React30.useRef(null);
5573      const isPointerModalityRef = React30.useRef(true);
5574      const onNavigate = useStableCallback((event) => {
5575        onNavigateProp(indexRef.current === -1 ? null : indexRef.current, event);
5576      });
5577      const previousMountedRef = React30.useRef(!!floatingElement);
5578      const previousOpenRef = React30.useRef(open2);
5579      const forceSyncFocusRef = React30.useRef(false);
5580      const forceScrollIntoViewRef = React30.useRef(false);
5581      const cancelQueuedFocusRef = React30.useRef(null);
5582      const disabledIndicesRef = useValueAsRef(disabledIndices);
5583      const latestOpenRef = useValueAsRef(open2);
5584      const selectedIndexRef = useValueAsRef(selectedIndex);
5585      const resetOnPointerLeaveRef = useValueAsRef(resetOnPointerLeave);
5586      const focusFrame = useAnimationFrame();
5587      const waitForListPopulatedFrame = useAnimationFrame();
5588      const focusItem = useStableCallback(() => {
5589        focusFrame.cancel();
5590        function runFocus(item2) {
5591          if (!virtual) {
5592            cancelQueuedFocusRef.current = enqueueFocus(item2, {
5593              sync: forceSyncFocusRef.current,
5594              preventScroll: true
5595            });
5596          }
5597        }
5598        const initialItem = listRef.current[indexRef.current];
5599        const forceScrollIntoView = forceScrollIntoViewRef.current;
5600        if (initialItem) {
5601          runFocus(initialItem);
5602        }
5603        const scheduler2 = forceSyncFocusRef.current ? (callback) => callback() : (callback) => focusFrame.request(callback);
5604        scheduler2(() => {
5605          const waitedItem = listRef.current[indexRef.current] || initialItem;
5606          if (!waitedItem) {
5607            return;
5608          }
5609          if (!initialItem) {
5610            runFocus(waitedItem);
5611          }
5612          const shouldScrollIntoView = (
5613            // eslint-disable-next-line @typescript-eslint/no-use-before-define
5614            item && (forceScrollIntoView || !isPointerModalityRef.current)
5615          );
5616          if (shouldScrollIntoView) {
5617            waitedItem.scrollIntoView?.({
5618              block: "nearest",
5619              inline: "nearest"
5620            });
5621          }
5622        });
5623      });
5624      useIsoLayoutEffect(() => {
5625        dataRef.current.orientation = orientation;
5626      }, [dataRef, orientation]);
5627      useIsoLayoutEffect(() => {
5628        if (!open2) {
5629          keyRef.current = null;
5630        }
5631        if (!open2 || focusItemOnOpen !== "auto") {
5632          focusItemOnOpenRef.current = focusItemOnOpen;
5633        }
5634      }, [open2, focusItemOnOpen]);
5635      useIsoLayoutEffect(() => {
5636        if (!enabled) {
5637          return;
5638        }
5639        if (open2 && floatingElement) {
5640          indexRef.current = selectedIndex ?? -1;
5641          if (focusItemOnOpenRef.current && selectedIndex != null) {
5642            forceScrollIntoViewRef.current = true;
5643            onNavigate();
5644          }
5645        } else if (previousMountedRef.current) {
5646          indexRef.current = -1;
5647          onNavigate();
5648        }
5649      }, [enabled, open2, floatingElement, selectedIndex, onNavigate]);
5650      useIsoLayoutEffect(() => {
5651        if (!enabled) {
5652          return;
5653        }
5654        if (!open2) {
5655          forceSyncFocusRef.current = false;
5656          return;
5657        }
5658        if (!floatingElement) {
5659          return;
5660        }
5661        if (activeIndex == null) {
5662          forceSyncFocusRef.current = false;
5663          if (selectedIndexRef.current != null) {
5664            return;
5665          }
5666          if (previousMountedRef.current) {
5667            indexRef.current = -1;
5668            focusItem();
5669          }
5670          if ((!previousOpenRef.current || !previousMountedRef.current) && focusItemOnOpenRef.current && (keyRef.current != null || focusItemOnOpenRef.current === true && keyRef.current == null)) {
5671            let runs = 0;
5672            const waitForListPopulated = () => {
5673              if (listRef.current[0] == null) {
5674                if (runs < 2) {
5675                  const scheduler2 = runs ? (callback) => waitForListPopulatedFrame.request(callback) : queueMicrotask;
5676                  scheduler2(waitForListPopulated);
5677                }
5678                runs += 1;
5679              } else {
5680                indexRef.current = keyRef.current == null || isMainOrientationToEndKey(keyRef.current, triggerOrientation, rtl) || nested ? getMinListIndex(listRef) : getMaxListIndex(listRef);
5681                keyRef.current = null;
5682                onNavigate();
5683              }
5684            };
5685            waitForListPopulated();
5686          }
5687        } else if (!isIndexOutOfListBounds(listRef.current, activeIndex)) {
5688          indexRef.current = activeIndex;
5689          focusItem();
5690          forceScrollIntoViewRef.current = false;
5691        }
5692      }, [enabled, open2, floatingElement, activeIndex, selectedIndexRef, nested, listRef, triggerOrientation, rtl, onNavigate, focusItem, waitForListPopulatedFrame]);
5693      useIsoLayoutEffect(() => {
5694        if (!enabled || floatingElement || !tree || virtual || !previousMountedRef.current) {
5695          return;
5696        }
5697        const nodes = tree.nodesRef.current;
5698        const parent = nodes.find((node) => node.id === parentId)?.context?.elements.floating;
5699        const activeEl = activeElement(ownerDocument(domReferenceElement ?? parent ?? null));
5700        const treeContainsActiveEl = nodes.some((node) => node.context && contains(node.context.elements.floating, activeEl));
5701        if (parent && !treeContainsActiveEl && isPointerModalityRef.current) {
5702          parent.focus({
5703            preventScroll: true
5704          });
5705        }
5706      }, [enabled, floatingElement, domReferenceElement, tree, parentId, virtual]);
5707      useIsoLayoutEffect(() => {
5708        previousOpenRef.current = open2;
5709        previousMountedRef.current = !!floatingElement;
5710      });
5711      const hasActiveIndex = activeIndex != null;
5712      const syncCurrentTarget = useStableCallback((event) => {
5713        if (!latestOpenRef.current) {
5714          return;
5715        }
5716        const index3 = listRef.current.indexOf(event.currentTarget);
5717        if (index3 !== -1 && (indexRef.current !== index3 || activeIndex !== index3)) {
5718          indexRef.current = index3;
5719          onNavigate(event);
5720        }
5721      });
5722      const getParentOrientation = useStableCallback(() => {
5723        return parentOrientation ?? tree?.nodesRef.current.find((node) => node.id === parentId)?.context?.dataRef?.current.orientation;
5724      });
5725      const getMinEnabledIndex = useStableCallback(() => {
5726        return getMinListIndex(listRef, disabledIndicesRef.current);
5727      });
5728      const commonOnKeyDown = useStableCallback((event) => {
5729        isPointerModalityRef.current = false;
5730        forceSyncFocusRef.current = true;
5731        if (event.which === 229) {
5732          return;
5733        }
5734        if (!latestOpenRef.current && event.currentTarget === floatingFocusElementRef.current) {
5735          return;
5736        }
5737        if (nested && isCrossOrientationCloseKey(event.key, orientation, rtl, isGrid)) {
5738          if (!isMainOrientationKey(event.key, getParentOrientation())) {
5739            stopEvent(event);
5740          }
5741          store.setOpen(false, createChangeEventDetails(reason_parts_exports.listNavigation, event.nativeEvent));
5742          const returnElement = nestedReturnFocusRef?.current ?? domReferenceElement;
5743          if (isHTMLElement(returnElement)) {
5744            returnElement.focus();
5745          }
5746          return;
5747        }
5748        if (activeIndex != null && activeIndex !== indexRef.current && !isIndexOutOfListBounds(listRef.current, activeIndex)) {
5749          indexRef.current = activeIndex;
5750        }
5751        const currentIndex = indexRef.current;
5752        const minIndex = getMinListIndex(listRef, disabledIndices);
5753        const maxIndex = getMaxListIndex(listRef, disabledIndices);
5754        if (!typeableComboboxReference) {
5755          if (event.key === "Home") {
5756            stopEvent(event);
5757            indexRef.current = minIndex;
5758            onNavigate(event);
5759          }
5760          if (event.key === "End") {
5761            stopEvent(event);
5762            indexRef.current = maxIndex;
5763            onNavigate(event);
5764          }
5765        }
5766        if (navigateGrid != null) {
5767          const index3 = navigateGrid(event, indexRef.current, listRef, orientation, loopFocus, rtl, disabledIndices, minIndex, maxIndex);
5768          if (index3 != null && index3 !== indexRef.current) {
5769            indexRef.current = index3;
5770            onNavigate(event);
5771          }
5772          if (orientation === "both") {
5773            return;
5774          }
5775        }
5776        if (isMainOrientationKey(event.key, orientation)) {
5777          stopEvent(event);
5778          const focusedElement = activeElement(event.currentTarget.ownerDocument);
5779          if (open2 && !virtual && contains(event.currentTarget, focusedElement) && !listRef.current.some((item2) => item2 != null && contains(item2, focusedElement))) {
5780            indexRef.current = isMainOrientationToEndKey(event.key, orientation, rtl) ? minIndex : maxIndex;
5781            onNavigate(event);
5782            if (activeIndex === indexRef.current) {
5783              focusItem();
5784            }
5785            return;
5786          }
5787          const {
5788            index: index3,
5789            wrapped
5790          } = getNextListIndex(listRef.current, currentIndex, {
5791            decrement: !isMainOrientationToEndKey(event.key, orientation, rtl),
5792            loopFocus,
5793            allowEscape,
5794            disabledIndices,
5795            minIndex,
5796            maxIndex
5797          });
5798          if (wrapped) {
5799            forceSyncFocusRef.current = false;
5800          }
5801          indexRef.current = index3;
5802          onNavigate(event);
5803        }
5804      });
5805      const item = React30.useMemo(() => {
5806        const itemProps = {
5807          onFocus(event) {
5808            forceSyncFocusRef.current = true;
5809            syncCurrentTarget(event);
5810          },
5811          onClick({
5812            currentTarget
5813          }) {
5814            if (!virtual) {
5815              currentTarget.focus({
5816                preventScroll: true
5817              });
5818            }
5819          },
5820          onMouseMove(event) {
5821            if (isStationaryWebKitPointer(event)) {
5822              return;
5823            }
5824            forceSyncFocusRef.current = true;
5825            forceScrollIntoViewRef.current = false;
5826            if (focusItemOnHover) {
5827              syncCurrentTarget(event);
5828            }
5829          },
5830          onPointerLeave(event) {
5831            if (!latestOpenRef.current || !isPointerModalityRef.current || event.pointerType === "touch") {
5832              return;
5833            }
5834            forceSyncFocusRef.current = true;
5835            const relatedTarget = event.relatedTarget;
5836            if (!focusItemOnHover || listRef.current.includes(relatedTarget)) {
5837              return;
5838            }
5839            if (!resetOnPointerLeaveRef.current) {
5840              return;
5841            }
5842            cancelQueuedFocusRef.current?.();
5843            cancelQueuedFocusRef.current = null;
5844            indexRef.current = -1;
5845            onNavigate(event);
5846            if (!virtual) {
5847              const floatingFocusEl = floatingFocusElementRef.current;
5848              const activeEl = activeElement(ownerDocument(floatingFocusEl));
5849              if (floatingFocusEl && contains(floatingFocusEl, activeEl)) {
5850                floatingFocusEl.focus({
5851                  preventScroll: true
5852                });
5853              }
5854            }
5855          }
5856        };
5857        return itemProps;
5858      }, [syncCurrentTarget, latestOpenRef, floatingFocusElementRef, focusItemOnHover, listRef, onNavigate, resetOnPointerLeaveRef, virtual]);
5859      const ariaActiveDescendantProp = React30.useMemo(() => {
5860        return virtual && open2 && hasActiveIndex && {
5861          "aria-activedescendant": `$id}-$activeIndex}`
5862        };
5863      }, [virtual, open2, hasActiveIndex, id, activeIndex]);
5864      const floating = React30.useMemo(() => {
5865        return {
5866          ...!typeableComboboxReference ? ariaActiveDescendantProp : {},
5867          onKeyDown(event) {
5868            if (event.key === "Tab" && event.shiftKey && open2 && !virtual) {
5869              const target = getTarget(event.nativeEvent);
5870              if (target && !contains(floatingFocusElementRef.current, target)) {
5871                return;
5872              }
5873              stopEvent(event);
5874              const details = createChangeEventDetails(reason_parts_exports.focusOut, event.nativeEvent);
5875              store.setOpen(false, details);
5876              const returnElement = nestedReturnFocusRef?.current ?? domReferenceElement;
5877              if (!details.isCanceled && isHTMLElement(returnElement)) {
5878                returnElement.focus();
5879              }
5880              return;
5881            }
5882            commonOnKeyDown(event);
5883          },
5884          onPointerMove(event) {
5885            if (isStationaryWebKitPointer(event)) {
5886              return;
5887            }
5888            isPointerModalityRef.current = true;
5889          }
5890        };
5891      }, [ariaActiveDescendantProp, commonOnKeyDown, floatingFocusElementRef, typeableComboboxReference, store, open2, virtual, domReferenceElement, nestedReturnFocusRef]);
5892      const trigger = React30.useMemo(() => {
5893        function openOnNavigationKeyDown(event) {
5894          store.setOpen(true, createChangeEventDetails(reason_parts_exports.listNavigation, event.nativeEvent, event.currentTarget));
5895        }
5896        function checkVirtualMouse(event) {
5897          if (focusItemOnOpen === "auto" && isVirtualClick(event.nativeEvent)) {
5898            focusItemOnOpenRef.current = !virtual;
5899          }
5900        }
5901        function checkVirtualPointer(event) {
5902          focusItemOnOpenRef.current = focusItemOnOpen;
5903          if (focusItemOnOpen === "auto" && isVirtualPointerEvent(event.nativeEvent)) {
5904            focusItemOnOpenRef.current = true;
5905          }
5906        }
5907        return {
5908          onKeyDown(event) {
5909            const currentOpen = store.select("open");
5910            isPointerModalityRef.current = false;
5911            const isArrowKey = event.key.startsWith("Arrow");
5912            const isParentCrossOpenKey = isCrossOrientationOpenKey(event.key, getParentOrientation(), rtl);
5913            const isMainKey = isMainOrientationKey(event.key, currentOpen ? orientation : triggerOrientation);
5914            const isNavigationKey = (nested ? isParentCrossOpenKey : isMainKey) || event.key === "Enter" || event.key.trim() === "";
5915            if (virtual && currentOpen && (!nested || isTypeableElement(event.currentTarget))) {
5916              return commonOnKeyDown(event);
5917            }
5918            if (!currentOpen && !openOnArrowKeyDown && isArrowKey) {
5919              return void 0;
5920            }
5921            if (isNavigationKey) {
5922              const isParentMainKey = isMainOrientationKey(event.key, getParentOrientation());
5923              keyRef.current = nested && isParentMainKey ? null : event.key;
5924            }
5925            if (nested) {
5926              if (isParentCrossOpenKey) {
5927                stopEvent(event);
5928                if (currentOpen) {
5929                  indexRef.current = getMinEnabledIndex();
5930                  onNavigate(event);
5931                  if (virtual) {
5932                    floatingFocusElementRef.current?.focus();
5933                  }
5934                } else {
5935                  openOnNavigationKeyDown(event);
5936                }
5937              }
5938              return void 0;
5939            }
5940            if (isMainKey) {
5941              if (selectedIndexRef.current != null) {
5942                indexRef.current = selectedIndexRef.current;
5943              }
5944              stopEvent(event);
5945              if (!currentOpen && openOnArrowKeyDown) {
5946                openOnNavigationKeyDown(event);
5947              } else {
5948                commonOnKeyDown(event);
5949              }
5950              if (currentOpen) {
5951                onNavigate(event);
5952              }
5953            }
5954            return void 0;
5955          },
5956          onFocus(event) {
5957            if (event.target !== event.currentTarget) {
5958              return;
5959            }
5960            if (store.select("open") && !virtual) {
5961              indexRef.current = -1;
5962              onNavigate(event);
5963            }
5964          },
5965          onPointerDown: checkVirtualPointer,
5966          onPointerEnter: checkVirtualPointer,
5967          onMouseDown: checkVirtualMouse,
5968          onClick: checkVirtualMouse
5969        };
5970      }, [commonOnKeyDown, focusItemOnOpen, getMinEnabledIndex, nested, onNavigate, store, openOnArrowKeyDown, orientation, triggerOrientation, getParentOrientation, rtl, selectedIndexRef, virtual, floatingFocusElementRef]);
5971      const reference = React30.useMemo(() => {
5972        return {
5973          ...ariaActiveDescendantProp,
5974          ...trigger
5975        };
5976      }, [ariaActiveDescendantProp, trigger]);
5977      return React30.useMemo(() => enabled ? {
5978        reference,
5979        floating,
5980        item,
5981        trigger
5982      } : {}, [enabled, reference, floating, trigger, item]);
5983    }
5984  
5985    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/hooks/useTypeahead.mjs
5986    var React31 = __toESM(require_react(), 1);
5987    function useTypeahead(store, props) {
5988      const {
5989        listRef,
5990        elementsRef,
5991        activeIndex,
5992        onMatch: onMatchProp,
5993        disabledIndices,
5994        onTyping: onTypingProp,
5995        enabled = true,
5996        resetMs = 750,
5997        selectedIndex = null
5998      } = props;
5999      const onTyping = useStableCallback(onTypingProp);
6000      const open2 = store.useState("open");
6001      const timeout = useTimeout();
6002      const stringRef = React31.useRef("");
6003      const prevIndexRef = React31.useRef(selectedIndex ?? activeIndex ?? -1);
6004      const matchIndexRef = React31.useRef(null);
6005      const onKeyDown = useStableCallback((event) => {
6006        function getElement(index4) {
6007          return elementsRef?.current[index4];
6008        }
6009        function isItemAvailable(index4) {
6010          const element = getElement(index4);
6011          if (element && !isElementVisible(element) || element?.matches(":disabled")) {
6012            return false;
6013          }
6014          return disabledIndices == null || !isListIndexDisabled(EMPTY_ARRAY, index4, disabledIndices);
6015        }
6016        function getMatchingIndex(list, string, startIndex2 = 0) {
6017          if (list.length === 0) {
6018            return -1;
6019          }
6020          const normalizedStartIndex = (startIndex2 % list.length + list.length) % list.length;
6021          const lowerString = string.toLowerCase();
6022          for (let offset4 = 0; offset4 < list.length; offset4 += 1) {
6023            const index4 = (normalizedStartIndex + offset4) % list.length;
6024            const text = list[index4];
6025            if (!text?.toLowerCase().startsWith(lowerString) || !isItemAvailable(index4)) {
6026              continue;
6027            }
6028            return index4;
6029          }
6030          return -1;
6031        }
6032        const listContent = listRef.current;
6033        if (stringRef.current.length > 0 && event.key === " ") {
6034          stopEvent(event);
6035          onTyping?.(true);
6036        }
6037        if (stringRef.current.length > 0 && stringRef.current[0] !== " ") {
6038          if (getMatchingIndex(listContent, stringRef.current) === -1 && event.key !== " ") {
6039            onTyping?.(false);
6040          }
6041        }
6042        if (listContent == null || // Character key.
6043        event.key.length !== 1 || // Modifier key.
6044        event.ctrlKey || event.metaKey || event.altKey) {
6045          return;
6046        }
6047        if (open2 && event.key !== " ") {
6048          stopEvent(event);
6049          onTyping?.(true);
6050        }
6051        const isNewSession = stringRef.current === "";
6052        if (isNewSession) {
6053          prevIndexRef.current = selectedIndex ?? activeIndex ?? -1;
6054        }
6055        const allowRapidSuccessionOfFirstLetter = listContent.every((text, index4) => text && isItemAvailable(index4) ? text[0]?.toLowerCase() !== text[1]?.toLowerCase() : true);
6056        if (allowRapidSuccessionOfFirstLetter && stringRef.current === event.key) {
6057          stringRef.current = "";
6058          prevIndexRef.current = matchIndexRef.current;
6059        }
6060        stringRef.current += event.key;
6061        timeout.start(resetMs, () => {
6062          stringRef.current = "";
6063          prevIndexRef.current = matchIndexRef.current;
6064          onTyping?.(false);
6065        });
6066        const prevIndex = isNewSession ? selectedIndex ?? activeIndex ?? -1 : prevIndexRef.current;
6067        const startIndex = (prevIndex ?? 0) + 1;
6068        const index3 = getMatchingIndex(listContent, stringRef.current, startIndex);
6069        if (index3 !== -1) {
6070          onMatchProp?.(index3, event);
6071          matchIndexRef.current = index3;
6072        } else if (event.key !== " ") {
6073          stringRef.current = "";
6074          onTyping?.(false);
6075        }
6076      });
6077      const onBlur = useStableCallback((event) => {
6078        const next = event.relatedTarget;
6079        const currentDomReferenceElement = store.select("domReferenceElement");
6080        const currentFloatingElement = store.select("floatingElement");
6081        const withinComposite = contains(currentDomReferenceElement, next) || contains(currentFloatingElement, next);
6082        if (withinComposite) {
6083          return;
6084        }
6085        timeout.clear();
6086        stringRef.current = "";
6087        prevIndexRef.current = matchIndexRef.current;
6088        onTyping?.(false);
6089      });
6090      useIsoLayoutEffect(() => {
6091        if (!open2 && selectedIndex !== null) {
6092          return;
6093        }
6094        timeout.clear();
6095        matchIndexRef.current = null;
6096        if (stringRef.current !== "") {
6097          stringRef.current = "";
6098          onTyping?.(false);
6099        }
6100      }, [open2, selectedIndex, timeout, onTyping]);
6101      const sharedProps = React31.useMemo(() => ({
6102        onKeyDown,
6103        onBlur
6104      }), [onKeyDown, onBlur]);
6105      return React31.useMemo(() => enabled ? {
6106        reference: sharedProps,
6107        floating: sharedProps
6108      } : {}, [enabled, sharedProps]);
6109    }
6110  
6111    // node_modules/.store/@floating-ui/core@1.8.0-3V8aS7jJHHGcsCINjP9-5A/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
6112    function computeCoordsFromPlacement(_ref, placement, rtl) {
6113      let {
6114        reference,
6115        floating
6116      } = _ref;
6117      const sideAxis = getSideAxis(placement);
6118      const alignmentAxis = getAlignmentAxis(placement);
6119      const alignLength = getAxisLength(alignmentAxis);
6120      const side = getSide(placement);
6121      const isVertical = sideAxis === "y";
6122      const commonX = reference.x + reference.width / 2 - floating.width / 2;
6123      const commonY = reference.y + reference.height / 2 - floating.height / 2;
6124      const commonAlign = reference[alignLength] / 2 - floating[alignLength] / 2;
6125      let coords;
6126      switch (side) {
6127        case "top":
6128          coords = {
6129            x: commonX,
6130            y: reference.y - floating.height
6131          };
6132          break;
6133        case "bottom":
6134          coords = {
6135            x: commonX,
6136            y: reference.y + reference.height
6137          };
6138          break;
6139        case "right":
6140          coords = {
6141            x: reference.x + reference.width,
6142            y: commonY
6143          };
6144          break;
6145        case "left":
6146          coords = {
6147            x: reference.x - floating.width,
6148            y: commonY
6149          };
6150          break;
6151        default:
6152          coords = {
6153            x: reference.x,
6154            y: reference.y
6155          };
6156      }
6157      const alignment = getAlignment(placement);
6158      if (alignment) {
6159        coords[alignmentAxis] += commonAlign * (alignment === "end" ? 1 : -1) * (rtl && isVertical ? -1 : 1);
6160      }
6161      return coords;
6162    }
6163    async function detectOverflow(state, options) {
6164      var _await$platform$isEle;
6165      if (options === void 0) {
6166        options = {};
6167      }
6168      const {
6169        x,
6170        y,
6171        platform: platform3,
6172        rects,
6173        elements,
6174        strategy
6175      } = state;
6176      const {
6177        boundary = "clippingAncestors",
6178        rootBoundary = "viewport",
6179        elementContext = "floating",
6180        altBoundary = false,
6181        padding = 0
6182      } = evaluate(options, state);
6183      const paddingObject = getPaddingObject(padding);
6184      const altContext = elementContext === "floating" ? "reference" : "floating";
6185      const element = elements[altBoundary ? altContext : elementContext];
6186      const clippingClientRect = rectToClientRect(await platform3.getClippingRect({
6187        element: ((_await$platform$isEle = await (platform3.isElement == null ? void 0 : platform3.isElement(element))) != null ? _await$platform$isEle : true) ? element : element.contextElement || await (platform3.getDocumentElement == null ? void 0 : platform3.getDocumentElement(elements.floating)),
6188        boundary,
6189        rootBoundary,
6190        strategy
6191      }));
6192      const rect = elementContext === "floating" ? {
6193        x,
6194        y,
6195        width: rects.floating.width,
6196        height: rects.floating.height
6197      } : rects.reference;
6198      const offsetParent = await (platform3.getOffsetParent == null ? void 0 : platform3.getOffsetParent(elements.floating));
6199      const offsetScale = await (platform3.isElement == null ? void 0 : platform3.isElement(offsetParent)) && await (platform3.getScale == null ? void 0 : platform3.getScale(offsetParent)) || {
6200        x: 1,
6201        y: 1
6202      };
6203      const elementClientRect = rectToClientRect(platform3.convertOffsetParentRelativeRectToViewportRelativeRect ? await platform3.convertOffsetParentRelativeRectToViewportRelativeRect({
6204        elements,
6205        rect,
6206        offsetParent,
6207        strategy
6208      }) : rect);
6209      return {
6210        top: (clippingClientRect.top - elementClientRect.top + paddingObject.top) / offsetScale.y,
6211        bottom: (elementClientRect.bottom - clippingClientRect.bottom + paddingObject.bottom) / offsetScale.y,
6212        left: (clippingClientRect.left - elementClientRect.left + paddingObject.left) / offsetScale.x,
6213        right: (elementClientRect.right - clippingClientRect.right + paddingObject.right) / offsetScale.x
6214      };
6215    }
6216    var MAX_RESET_COUNT = 50;
6217    var computePosition = async (reference, floating, config) => {
6218      const {
6219        placement = "bottom",
6220        strategy = "absolute",
6221        middleware = [],
6222        platform: platform3
6223      } = config;
6224      const platformWithDetectOverflow = platform3.detectOverflow ? platform3 : {
6225        ...platform3,
6226        detectOverflow
6227      };
6228      const rtl = await (platform3.isRTL == null ? void 0 : platform3.isRTL(floating));
6229      let rects = await platform3.getElementRects({
6230        reference,
6231        floating,
6232        strategy
6233      });
6234      let {
6235        x,
6236        y
6237      } = computeCoordsFromPlacement(rects, placement, rtl);
6238      let statefulPlacement = placement;
6239      let resetCount = 0;
6240      const middlewareData = {};
6241      for (let i = 0; i < middleware.length; i++) {
6242        const currentMiddleware = middleware[i];
6243        if (!currentMiddleware) {
6244          continue;
6245        }
6246        const {
6247          name: name16,
6248          fn
6249        } = currentMiddleware;
6250        const {
6251          x: nextX,
6252          y: nextY,
6253          data,
6254          reset
6255        } = await fn({
6256          x,
6257          y,
6258          initialPlacement: placement,
6259          placement: statefulPlacement,
6260          strategy,
6261          middlewareData,
6262          rects,
6263          platform: platformWithDetectOverflow,
6264          elements: {
6265            reference,
6266            floating
6267          }
6268        });
6269        x = nextX != null ? nextX : x;
6270        y = nextY != null ? nextY : y;
6271        middlewareData[name16] = {
6272          ...middlewareData[name16],
6273          ...data
6274        };
6275        if (reset && resetCount < MAX_RESET_COUNT) {
6276          resetCount++;
6277          if (typeof reset === "object") {
6278            if (reset.placement) {
6279              statefulPlacement = reset.placement;
6280            }
6281            if (reset.rects) {
6282              rects = reset.rects === true ? await platform3.getElementRects({
6283                reference,
6284                floating,
6285                strategy
6286              }) : reset.rects;
6287            }
6288            ({
6289              x,
6290              y
6291            } = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
6292          }
6293          i = -1;
6294        }
6295      }
6296      return {
6297        x,
6298        y,
6299        placement: statefulPlacement,
6300        strategy,
6301        middlewareData
6302      };
6303    };
6304    var flip = function(options) {
6305      if (options === void 0) {
6306        options = {};
6307      }
6308      return {
6309        name: "flip",
6310        options,
6311        async fn(state) {
6312          var _middlewareData$arrow, _middlewareData$flip;
6313          const {
6314            placement,
6315            middlewareData,
6316            rects,
6317            initialPlacement,
6318            platform: platform3,
6319            elements
6320          } = state;
6321          const {
6322            mainAxis: checkMainAxis = true,
6323            crossAxis: checkCrossAxis = true,
6324            fallbackPlacements: specifiedFallbackPlacements,
6325            fallbackStrategy = "bestFit",
6326            fallbackAxisSideDirection = "none",
6327            flipAlignment = true,
6328            ...detectOverflowOptions
6329          } = evaluate(options, state);
6330          if ((_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
6331            return {};
6332          }
6333          const side = getSide(placement);
6334          const initialSideAxis = getSideAxis(initialPlacement);
6335          const isBasePlacement = getSide(initialPlacement) === initialPlacement;
6336          const rtl = await (platform3.isRTL == null ? void 0 : platform3.isRTL(elements.floating));
6337          const fallbackPlacements = specifiedFallbackPlacements || (isBasePlacement || !flipAlignment ? [getOppositePlacement(initialPlacement)] : getExpandedPlacements(initialPlacement));
6338          const hasFallbackAxisSideDirection = fallbackAxisSideDirection !== "none";
6339          if (!specifiedFallbackPlacements && hasFallbackAxisSideDirection) {
6340            fallbackPlacements.push(...getOppositeAxisPlacements(initialPlacement, flipAlignment, fallbackAxisSideDirection, rtl));
6341          }
6342          const placements2 = [initialPlacement, ...fallbackPlacements];
6343          const overflow = await platform3.detectOverflow(state, detectOverflowOptions);
6344          const overflows = [];
6345          let overflowsData = ((_middlewareData$flip = middlewareData.flip) == null ? void 0 : _middlewareData$flip.overflows) || [];
6346          if (checkMainAxis) {
6347            overflows.push(overflow[side]);
6348          }
6349          if (checkCrossAxis) {
6350            const sides2 = getAlignmentSides(placement, rects, rtl);
6351            overflows.push(overflow[sides2[0]], overflow[sides2[1]]);
6352          }
6353          overflowsData = [...overflowsData, {
6354            placement,
6355            overflows
6356          }];
6357          if (!overflows.every((side2) => side2 <= 0)) {
6358            var _middlewareData$flip2, _overflowsData$filter;
6359            const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
6360            const nextPlacement = placements2[nextIndex];
6361            if (nextPlacement) {
6362              const ignoreCrossAxisOverflow = checkCrossAxis === "alignment" ? initialSideAxis !== getSideAxis(nextPlacement) : false;
6363              if (!ignoreCrossAxisOverflow || // We leave the current main axis only if every placement on that axis
6364              // overflows the main axis.
6365              overflowsData.every((d) => getSideAxis(d.placement) === initialSideAxis ? d.overflows[0] > 0 : true)) {
6366                return {
6367                  data: {
6368                    index: nextIndex,
6369                    overflows: overflowsData
6370                  },
6371                  reset: {
6372                    placement: nextPlacement
6373                  }
6374                };
6375              }
6376            }
6377            let resetPlacement = (_overflowsData$filter = overflowsData.filter((d) => d.overflows[0] <= 0).sort((a, b) => a.overflows[1] - b.overflows[1])[0]) == null ? void 0 : _overflowsData$filter.placement;
6378            if (!resetPlacement) {
6379              switch (fallbackStrategy) {
6380                case "bestFit": {
6381                  var _overflowsData$filter2;
6382                  const placement2 = (_overflowsData$filter2 = overflowsData.filter((d) => {
6383                    if (hasFallbackAxisSideDirection) {
6384                      const currentSideAxis = getSideAxis(d.placement);
6385                      return currentSideAxis === initialSideAxis || // Create a bias to the `y` side axis due to horizontal
6386                      // reading directions favoring greater width.
6387                      currentSideAxis === "y";
6388                    }
6389                    return true;
6390                  }).map((d) => [d.placement, d.overflows.filter((overflow2) => overflow2 > 0).reduce((acc, overflow2) => acc + overflow2, 0)]).sort((a, b) => a[1] - b[1])[0]) == null ? void 0 : _overflowsData$filter2[0];
6391                  if (placement2) {
6392                    resetPlacement = placement2;
6393                  }
6394                  break;
6395                }
6396                case "initialPlacement":
6397                  resetPlacement = initialPlacement;
6398                  break;
6399              }
6400            }
6401            if (placement !== resetPlacement) {
6402              return {
6403                reset: {
6404                  placement: resetPlacement
6405                }
6406              };
6407            }
6408          }
6409          return {};
6410        }
6411      };
6412    };
6413    var originSides = /* @__PURE__ */ new Set(["left", "top"]);
6414    async function convertValueToCoords(state, options) {
6415      const {
6416        placement,
6417        platform: platform3,
6418        elements
6419      } = state;
6420      const rtl = await (platform3.isRTL == null ? void 0 : platform3.isRTL(elements.floating));
6421      const side = getSide(placement);
6422      const alignment = getAlignment(placement);
6423      const isVertical = getSideAxis(placement) === "y";
6424      const mainAxisMulti = originSides.has(side) ? -1 : 1;
6425      const crossAxisMulti = rtl && isVertical ? -1 : 1;
6426      const rawValue = evaluate(options, state);
6427      let {
6428        mainAxis,
6429        crossAxis,
6430        alignmentAxis
6431      } = typeof rawValue === "number" ? {
6432        mainAxis: rawValue,
6433        crossAxis: 0,
6434        alignmentAxis: null
6435      } : {
6436        mainAxis: rawValue.mainAxis || 0,
6437        crossAxis: rawValue.crossAxis || 0,
6438        alignmentAxis: rawValue.alignmentAxis
6439      };
6440      if (alignment && typeof alignmentAxis === "number") {
6441        crossAxis = alignment === "end" ? alignmentAxis * -1 : alignmentAxis;
6442      }
6443      return isVertical ? {
6444        x: crossAxis * crossAxisMulti,
6445        y: mainAxis * mainAxisMulti
6446      } : {
6447        x: mainAxis * mainAxisMulti,
6448        y: crossAxis * crossAxisMulti
6449      };
6450    }
6451    var offset = function(options) {
6452      if (options === void 0) {
6453        options = 0;
6454      }
6455      return {
6456        name: "offset",
6457        options,
6458        async fn(state) {
6459          var _middlewareData$offse, _middlewareData$arrow;
6460          const {
6461            x,
6462            y,
6463            placement,
6464            middlewareData
6465          } = state;
6466          const diffCoords = await convertValueToCoords(state, options);
6467          if (placement === ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse.placement) && (_middlewareData$arrow = middlewareData.arrow) != null && _middlewareData$arrow.alignmentOffset) {
6468            return {};
6469          }
6470          return {
6471            x: x + diffCoords.x,
6472            y: y + diffCoords.y,
6473            data: {
6474              ...diffCoords,
6475              placement
6476            }
6477          };
6478        }
6479      };
6480    };
6481    var shift = function(options) {
6482      if (options === void 0) {
6483        options = {};
6484      }
6485      return {
6486        name: "shift",
6487        options,
6488        async fn(state) {
6489          const {
6490            x,
6491            y,
6492            placement,
6493            platform: platform3
6494          } = state;
6495          const {
6496            mainAxis: checkMainAxis = true,
6497            crossAxis: checkCrossAxis = false,
6498            limiter = {
6499              fn: (_ref) => {
6500                let {
6501                  x: x2,
6502                  y: y2
6503                } = _ref;
6504                return {
6505                  x: x2,
6506                  y: y2
6507                };
6508              }
6509            },
6510            ...detectOverflowOptions
6511          } = evaluate(options, state);
6512          const coords = {
6513            x,
6514            y
6515          };
6516          const overflow = await platform3.detectOverflow(state, detectOverflowOptions);
6517          const crossAxis = getSideAxis(placement);
6518          const mainAxis = getOppositeAxis(crossAxis);
6519          let mainAxisCoord = coords[mainAxis];
6520          let crossAxisCoord = coords[crossAxis];
6521          const clampCoord = (axis, coord) => clamp(coord + overflow[axis === "y" ? "top" : "left"], coord, coord - overflow[axis === "y" ? "bottom" : "right"]);
6522          if (checkMainAxis) {
6523            mainAxisCoord = clampCoord(mainAxis, mainAxisCoord);
6524          }
6525          if (checkCrossAxis) {
6526            crossAxisCoord = clampCoord(crossAxis, crossAxisCoord);
6527          }
6528          const limitedCoords = limiter.fn({
6529            ...state,
6530            [mainAxis]: mainAxisCoord,
6531            [crossAxis]: crossAxisCoord
6532          });
6533          return {
6534            ...limitedCoords,
6535            data: {
6536              x: limitedCoords.x - x,
6537              y: limitedCoords.y - y,
6538              enabled: {
6539                [mainAxis]: checkMainAxis,
6540                [crossAxis]: checkCrossAxis
6541              }
6542            }
6543          };
6544        }
6545      };
6546    };
6547    var limitShift = function(options) {
6548      if (options === void 0) {
6549        options = {};
6550      }
6551      return {
6552        options,
6553        fn(state) {
6554          var _rawOffset$mainAxis, _rawOffset$crossAxis;
6555          const {
6556            x,
6557            y,
6558            placement,
6559            rects,
6560            middlewareData
6561          } = state;
6562          const {
6563            offset: offset4 = 0,
6564            mainAxis: checkMainAxis = true,
6565            crossAxis: checkCrossAxis = true
6566          } = evaluate(options, state);
6567          const coords = {
6568            x,
6569            y
6570          };
6571          const crossAxis = getSideAxis(placement);
6572          const mainAxis = getOppositeAxis(crossAxis);
6573          let mainAxisCoord = coords[mainAxis];
6574          let crossAxisCoord = coords[crossAxis];
6575          const rawOffset = evaluate(offset4, state);
6576          const computedOffset = typeof rawOffset === "number" ? {
6577            mainAxis: rawOffset,
6578            crossAxis: 0
6579          } : {
6580            mainAxis: (_rawOffset$mainAxis = rawOffset.mainAxis) != null ? _rawOffset$mainAxis : 0,
6581            crossAxis: (_rawOffset$crossAxis = rawOffset.crossAxis) != null ? _rawOffset$crossAxis : 0
6582          };
6583          if (checkMainAxis) {
6584            const len = mainAxis === "y" ? "height" : "width";
6585            const limitMin = rects.reference[mainAxis] - rects.floating[len] + computedOffset.mainAxis;
6586            const limitMax = rects.reference[mainAxis] + rects.reference[len] - computedOffset.mainAxis;
6587            if (mainAxisCoord < limitMin) {
6588              mainAxisCoord = limitMin;
6589            } else if (mainAxisCoord > limitMax) {
6590              mainAxisCoord = limitMax;
6591            }
6592          }
6593          if (checkCrossAxis) {
6594            var _middlewareData$offse, _middlewareData$offse2;
6595            const len = mainAxis === "y" ? "width" : "height";
6596            const isOriginSide = originSides.has(getSide(placement));
6597            const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
6598            const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
6599            if (crossAxisCoord < limitMin) {
6600              crossAxisCoord = limitMin;
6601            } else if (crossAxisCoord > limitMax) {
6602              crossAxisCoord = limitMax;
6603            }
6604          }
6605          return {
6606            [mainAxis]: mainAxisCoord,
6607            [crossAxis]: crossAxisCoord
6608          };
6609        }
6610      };
6611    };
6612    var size = function(options) {
6613      if (options === void 0) {
6614        options = {};
6615      }
6616      return {
6617        name: "size",
6618        options,
6619        async fn(state) {
6620          const {
6621            placement,
6622            rects,
6623            platform: platform3,
6624            elements
6625          } = state;
6626          const {
6627            apply = () => {
6628            },
6629            ...detectOverflowOptions
6630          } = evaluate(options, state);
6631          const overflow = await platform3.detectOverflow(state, detectOverflowOptions);
6632          const side = getSide(placement);
6633          const alignment = getAlignment(placement);
6634          const isYAxis = getSideAxis(placement) === "y";
6635          const {
6636            width,
6637            height
6638          } = rects.floating;
6639          let heightSide;
6640          let widthSide;
6641          if (side === "top" || side === "bottom") {
6642            heightSide = side;
6643            widthSide = alignment === (await (platform3.isRTL == null ? void 0 : platform3.isRTL(elements.floating)) ? "start" : "end") ? "left" : "right";
6644          } else {
6645            widthSide = side;
6646            heightSide = alignment === "end" ? "top" : "bottom";
6647          }
6648          const maximumClippingHeight = height - overflow.top - overflow.bottom;
6649          const maximumClippingWidth = width - overflow.left - overflow.right;
6650          const overflowAvailableHeight = min(height - overflow[heightSide], maximumClippingHeight);
6651          const overflowAvailableWidth = min(width - overflow[widthSide], maximumClippingWidth);
6652          const shiftData = state.middlewareData.shift;
6653          const noShift = !shiftData;
6654          let availableHeight2 = overflowAvailableHeight;
6655          let availableWidth2 = overflowAvailableWidth;
6656          if (shiftData != null && shiftData.enabled.x) {
6657            availableWidth2 = maximumClippingWidth;
6658          }
6659          if (shiftData != null && shiftData.enabled.y) {
6660            availableHeight2 = maximumClippingHeight;
6661          }
6662          if (noShift && !alignment) {
6663            if (isYAxis) {
6664              availableWidth2 = width - 2 * max(overflow.left, overflow.right);
6665            } else {
6666              availableHeight2 = height - 2 * max(overflow.top, overflow.bottom);
6667            }
6668          }
6669          await apply({
6670            ...state,
6671            availableWidth: availableWidth2,
6672            availableHeight: availableHeight2
6673          });
6674          const nextDimensions = await platform3.getDimensions(elements.floating);
6675          if (width !== nextDimensions.width || height !== nextDimensions.height) {
6676            return {
6677              reset: {
6678                rects: true
6679              }
6680            };
6681          }
6682          return {};
6683        }
6684      };
6685    };
6686  
6687    // node_modules/.store/@floating-ui/dom@1.8.0-vHXcr4FgWneV0cgwFw-d7A/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
6688    function getCssDimensions(element) {
6689      const css = getComputedStyle2(element);
6690      let width = parseFloat(css.width) || 0;
6691      let height = parseFloat(css.height) || 0;
6692      const hasOffset = isHTMLElement(element);
6693      const offsetWidth = hasOffset ? element.offsetWidth : width;
6694      const offsetHeight = hasOffset ? element.offsetHeight : height;
6695      const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
6696      if (shouldFallback) {
6697        width = offsetWidth;
6698        height = offsetHeight;
6699      }
6700      return {
6701        width,
6702        height,
6703        $: shouldFallback
6704      };
6705    }
6706    function unwrapElement(element) {
6707      return !isElement(element) ? element.contextElement : element;
6708    }
6709    function getScale(element) {
6710      const domElement = unwrapElement(element);
6711      if (!isHTMLElement(domElement)) {
6712        return createCoords(1);
6713      }
6714      const rect = domElement.getBoundingClientRect();
6715      const {
6716        width,
6717        height,
6718        $
6719      } = getCssDimensions(domElement);
6720      let x = ($ ? round(rect.width) : rect.width) / width;
6721      let y = ($ ? round(rect.height) : rect.height) / height;
6722      if (!x || !Number.isFinite(x)) {
6723        x = 1;
6724      }
6725      if (!y || !Number.isFinite(y)) {
6726        y = 1;
6727      }
6728      return {
6729        x,
6730        y
6731      };
6732    }
6733    var noOffsets = /* @__PURE__ */ createCoords(0);
6734    function getVisualOffsets(element) {
6735      const win = getWindow(element);
6736      if (!isWebKit() || !win.visualViewport) {
6737        return noOffsets;
6738      }
6739      return {
6740        x: win.visualViewport.offsetLeft,
6741        y: win.visualViewport.offsetTop
6742      };
6743    }
6744    function shouldAddVisualOffsets(element, isFixed, floatingOffsetParent) {
6745      if (isFixed === void 0) {
6746        isFixed = false;
6747      }
6748      return !!floatingOffsetParent && isFixed && floatingOffsetParent === getWindow(element);
6749    }
6750    function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetParent) {
6751      if (includeScale === void 0) {
6752        includeScale = false;
6753      }
6754      if (isFixedStrategy === void 0) {
6755        isFixedStrategy = false;
6756      }
6757      const clientRect = element.getBoundingClientRect();
6758      const domElement = unwrapElement(element);
6759      let scale = createCoords(1);
6760      if (includeScale) {
6761        if (offsetParent) {
6762          if (isElement(offsetParent)) {
6763            scale = getScale(offsetParent);
6764          }
6765        } else {
6766          scale = getScale(element);
6767        }
6768      }
6769      const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
6770      let x = (clientRect.left + visualOffsets.x) / scale.x;
6771      let y = (clientRect.top + visualOffsets.y) / scale.y;
6772      let width = clientRect.width / scale.x;
6773      let height = clientRect.height / scale.y;
6774      if (domElement && offsetParent) {
6775        const win = getWindow(domElement);
6776        const offsetWin = isElement(offsetParent) ? getWindow(offsetParent) : offsetParent;
6777        let currentWin = win;
6778        let currentIFrame = getFrameElement(currentWin);
6779        while (currentIFrame && offsetWin !== currentWin) {
6780          const iframeScale = getScale(currentIFrame);
6781          const iframeRect = currentIFrame.getBoundingClientRect();
6782          const css = getComputedStyle2(currentIFrame);
6783          const left = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
6784          const top = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
6785          x *= iframeScale.x;
6786          y *= iframeScale.y;
6787          width *= iframeScale.x;
6788          height *= iframeScale.y;
6789          x += left;
6790          y += top;
6791          currentWin = getWindow(currentIFrame);
6792          currentIFrame = getFrameElement(currentWin);
6793        }
6794      }
6795      return rectToClientRect({
6796        width,
6797        height,
6798        x,
6799        y
6800      });
6801    }
6802    function getWindowScrollBarX(element, rect) {
6803      const leftScroll = getNodeScroll(element).scrollLeft;
6804      if (!rect) {
6805        return getBoundingClientRect(getDocumentElement(element)).left + leftScroll;
6806      }
6807      return rect.left + leftScroll;
6808    }
6809    function getHTMLOffset(documentElement, scroll) {
6810      const htmlRect = documentElement.getBoundingClientRect();
6811      const x = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
6812      const y = htmlRect.top + scroll.scrollTop;
6813      return {
6814        x,
6815        y
6816      };
6817    }
6818    function convertOffsetParentRelativeRectToViewportRelativeRect(_ref) {
6819      let {
6820        elements,
6821        rect,
6822        offsetParent,
6823        strategy
6824      } = _ref;
6825      const isFixed = strategy === "fixed";
6826      const documentElement = getDocumentElement(offsetParent);
6827      const topLayer = elements ? isTopLayer(elements.floating) : false;
6828      if (offsetParent === documentElement || topLayer && isFixed) {
6829        return rect;
6830      }
6831      let scroll = {
6832        scrollLeft: 0,
6833        scrollTop: 0
6834      };
6835      let scale = createCoords(1);
6836      const offsets = createCoords(0);
6837      const isOffsetParentAnElement = isHTMLElement(offsetParent);
6838      if (isOffsetParentAnElement || !isFixed) {
6839        if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
6840          scroll = getNodeScroll(offsetParent);
6841        }
6842        if (isOffsetParentAnElement) {
6843          const offsetRect = getBoundingClientRect(offsetParent);
6844          scale = getScale(offsetParent);
6845          offsets.x = offsetRect.x + offsetParent.clientLeft;
6846          offsets.y = offsetRect.y + offsetParent.clientTop;
6847        }
6848      }
6849      const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
6850      return {
6851        width: rect.width * scale.x,
6852        height: rect.height * scale.y,
6853        x: rect.x * scale.x - scroll.scrollLeft * scale.x + offsets.x + htmlOffset.x,
6854        y: rect.y * scale.y - scroll.scrollTop * scale.y + offsets.y + htmlOffset.y
6855      };
6856    }
6857    function getClientRects(element) {
6858      return element.getClientRects ? Array.from(element.getClientRects()) : [];
6859    }
6860    function getDocumentRect(html) {
6861      const scroll = getNodeScroll(html);
6862      const body = html.ownerDocument.body;
6863      const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
6864      const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
6865      let x = -scroll.scrollLeft + getWindowScrollBarX(html);
6866      const y = -scroll.scrollTop;
6867      if (getComputedStyle2(body).direction === "rtl") {
6868        x += max(html.clientWidth, body.clientWidth) - width;
6869      }
6870      return {
6871        width,
6872        height,
6873        x,
6874        y
6875      };
6876    }
6877    var SCROLLBAR_MAX = 25;
6878    function getViewportRect(element, strategy, rootBoundary) {
6879      if (rootBoundary === void 0) {
6880        rootBoundary = "viewport";
6881      }
6882      const isLayoutViewport = rootBoundary === "layoutViewport";
6883      const win = getWindow(element);
6884      const html = getDocumentElement(element);
6885      const visualViewport = win.visualViewport;
6886      let width = html.clientWidth;
6887      let height = html.clientHeight;
6888      let x = 0;
6889      let y = 0;
6890      if (visualViewport) {
6891        const layoutRelativeClientCoords = !isWebKit() || strategy === "fixed";
6892        if (isLayoutViewport) {
6893          if (!layoutRelativeClientCoords) {
6894            x = -visualViewport.offsetLeft;
6895            y = -visualViewport.offsetTop;
6896          }
6897        } else {
6898          width = visualViewport.width;
6899          height = visualViewport.height;
6900          if (layoutRelativeClientCoords) {
6901            x = visualViewport.offsetLeft;
6902            y = visualViewport.offsetTop;
6903          }
6904        }
6905      }
6906      const windowScrollbarX = getWindowScrollBarX(html);
6907      if (windowScrollbarX <= 0) {
6908        const doc = html.ownerDocument;
6909        const body = doc.body;
6910        const bodyStyles = getComputedStyle(body);
6911        const bodyMarginInline = doc.compatMode === "CSS1Compat" ? parseFloat(bodyStyles.marginLeft) + parseFloat(bodyStyles.marginRight) || 0 : 0;
6912        const reservedWidth = Math.abs(html.clientWidth - body.clientWidth - bodyMarginInline);
6913        const gutter = getComputedStyle(html).scrollbarGutter === "stable both-edges" ? reservedWidth / 2 : reservedWidth;
6914        if (gutter <= SCROLLBAR_MAX) {
6915          width -= gutter;
6916        }
6917      }
6918      return {
6919        width,
6920        height,
6921        x,
6922        y
6923      };
6924    }
6925    function getInnerBoundingClientRect(element, strategy) {
6926      const clientRect = getBoundingClientRect(element, true, strategy === "fixed");
6927      const top = clientRect.top + element.clientTop;
6928      const left = clientRect.left + element.clientLeft;
6929      const scale = getScale(element);
6930      const width = element.clientWidth * scale.x;
6931      const height = element.clientHeight * scale.y;
6932      const x = left * scale.x;
6933      const y = top * scale.y;
6934      return {
6935        width,
6936        height,
6937        x,
6938        y
6939      };
6940    }
6941    function getClientRectFromClippingAncestor(element, clippingAncestor, strategy) {
6942      let rect;
6943      if (clippingAncestor === "viewport" || clippingAncestor === "layoutViewport") {
6944        rect = getViewportRect(element, strategy, clippingAncestor);
6945      } else if (clippingAncestor === "document") {
6946        rect = getDocumentRect(getDocumentElement(element));
6947      } else if (isElement(clippingAncestor)) {
6948        rect = getInnerBoundingClientRect(clippingAncestor, strategy);
6949      } else {
6950        const visualOffsets = getVisualOffsets(element);
6951        rect = {
6952          x: clippingAncestor.x - visualOffsets.x,
6953          y: clippingAncestor.y - visualOffsets.y,
6954          width: clippingAncestor.width,
6955          height: clippingAncestor.height
6956        };
6957      }
6958      return rectToClientRect(rect);
6959    }
6960    function getClippingElementAncestors(element, cache) {
6961      const cachedResult = cache.get(element);
6962      if (cachedResult) {
6963        return cachedResult;
6964      }
6965      let result = getOverflowAncestors(element, [], false).filter((el) => isElement(el) && getNodeName(el) !== "body");
6966      let lastKeptComputedStyle = null;
6967      const elementIsFixed = getComputedStyle2(element).position === "fixed";
6968      let currentNode = elementIsFixed ? getParentNode(element) : element;
6969      while (isElement(currentNode) && !isLastTraversableNode(currentNode)) {
6970        const computedStyle = getComputedStyle2(currentNode);
6971        const currentNodeIsContaining = isContainingBlock(currentNode);
6972        const lastPosition = lastKeptComputedStyle ? lastKeptComputedStyle.position : elementIsFixed ? "fixed" : "";
6973        const shouldDropCurrentNode = !currentNodeIsContaining && (lastPosition === "fixed" || lastPosition === "absolute" && computedStyle.position === "static");
6974        if (shouldDropCurrentNode) {
6975          result = result.filter((ancestor) => ancestor !== currentNode);
6976        } else {
6977          lastKeptComputedStyle = computedStyle;
6978        }
6979        currentNode = getParentNode(currentNode);
6980      }
6981      cache.set(element, result);
6982      return result;
6983    }
6984    function getClippingRect(_ref) {
6985      let {
6986        element,
6987        boundary,
6988        rootBoundary,
6989        strategy
6990      } = _ref;
6991      const elementClippingAncestors = boundary === "clippingAncestors" ? isTopLayer(element) ? [] : getClippingElementAncestors(element, this._c) : [].concat(boundary);
6992      const clippingAncestors = [...elementClippingAncestors, rootBoundary];
6993      const firstRect = getClientRectFromClippingAncestor(element, clippingAncestors[0], strategy);
6994      let top = firstRect.top;
6995      let right = firstRect.right;
6996      let bottom = firstRect.bottom;
6997      let left = firstRect.left;
6998      for (let i = 1; i < clippingAncestors.length; i++) {
6999        const rect = getClientRectFromClippingAncestor(element, clippingAncestors[i], strategy);
7000        top = max(rect.top, top);
7001        right = min(rect.right, right);
7002        bottom = min(rect.bottom, bottom);
7003        left = max(rect.left, left);
7004      }
7005      return {
7006        width: right - left,
7007        height: bottom - top,
7008        x: left,
7009        y: top
7010      };
7011    }
7012    function getDimensions(element) {
7013      const {
7014        width,
7015        height
7016      } = getCssDimensions(element);
7017      return {
7018        width,
7019        height
7020      };
7021    }
7022    function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
7023      const isOffsetParentAnElement = isHTMLElement(offsetParent);
7024      const documentElement = getDocumentElement(offsetParent);
7025      const isFixed = strategy === "fixed";
7026      const rect = getBoundingClientRect(element, true, isFixed, offsetParent);
7027      let scroll = {
7028        scrollLeft: 0,
7029        scrollTop: 0
7030      };
7031      const offsets = createCoords(0);
7032      if (isOffsetParentAnElement || !isFixed) {
7033        if (getNodeName(offsetParent) !== "body" || isOverflowElement(documentElement)) {
7034          scroll = getNodeScroll(offsetParent);
7035        }
7036        if (isOffsetParentAnElement) {
7037          const offsetRect = getBoundingClientRect(offsetParent, true, isFixed, offsetParent);
7038          offsets.x = offsetRect.x + offsetParent.clientLeft;
7039          offsets.y = offsetRect.y + offsetParent.clientTop;
7040        }
7041      }
7042      if (!isOffsetParentAnElement && documentElement) {
7043        offsets.x = getWindowScrollBarX(documentElement);
7044      }
7045      const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
7046      const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
7047      const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
7048      return {
7049        x,
7050        y,
7051        width: rect.width,
7052        height: rect.height
7053      };
7054    }
7055    function isStaticPositioned(element) {
7056      return getComputedStyle2(element).position === "static";
7057    }
7058    function getTrueOffsetParent(element, polyfill) {
7059      if (!isHTMLElement(element) || getComputedStyle2(element).position === "fixed") {
7060        return null;
7061      }
7062      if (polyfill) {
7063        return polyfill(element);
7064      }
7065      let rawOffsetParent = element.offsetParent;
7066      if (getDocumentElement(element) === rawOffsetParent) {
7067        rawOffsetParent = rawOffsetParent.ownerDocument.body;
7068      }
7069      return rawOffsetParent;
7070    }
7071    function getOffsetParent(element, polyfill) {
7072      const win = getWindow(element);
7073      if (isTopLayer(element)) {
7074        return win;
7075      }
7076      if (!isHTMLElement(element)) {
7077        let svgOffsetParent = getParentNode(element);
7078        while (svgOffsetParent && !isLastTraversableNode(svgOffsetParent)) {
7079          if (isElement(svgOffsetParent) && !isStaticPositioned(svgOffsetParent)) {
7080            return svgOffsetParent;
7081          }
7082          svgOffsetParent = getParentNode(svgOffsetParent);
7083        }
7084        return win;
7085      }
7086      let offsetParent = getTrueOffsetParent(element, polyfill);
7087      while (offsetParent && isTableElement(offsetParent) && isStaticPositioned(offsetParent)) {
7088        offsetParent = getTrueOffsetParent(offsetParent, polyfill);
7089      }
7090      if (offsetParent && isLastTraversableNode(offsetParent) && isStaticPositioned(offsetParent) && !isContainingBlock(offsetParent)) {
7091        return win;
7092      }
7093      return offsetParent || getContainingBlock(element) || win;
7094    }
7095    var getElementRects = async function(data) {
7096      const getOffsetParentFn = this.getOffsetParent || getOffsetParent;
7097      const getDimensionsFn = this.getDimensions;
7098      const floatingDimensions = await getDimensionsFn(data.floating);
7099      return {
7100        reference: getRectRelativeToOffsetParent(data.reference, await getOffsetParentFn(data.floating), data.strategy),
7101        floating: {
7102          x: 0,
7103          y: 0,
7104          width: floatingDimensions.width,
7105          height: floatingDimensions.height
7106        }
7107      };
7108    };
7109    function isRTL(element) {
7110      return getComputedStyle2(element).direction === "rtl";
7111    }
7112    var platform2 = {
7113      convertOffsetParentRelativeRectToViewportRelativeRect,
7114      getDocumentElement,
7115      getClippingRect,
7116      getOffsetParent,
7117      getElementRects,
7118      getClientRects,
7119      getDimensions,
7120      getScale,
7121      isElement,
7122      isRTL
7123    };
7124    function rectsAreEqual(a, b) {
7125      return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
7126    }
7127    function observeMove(element, onMove, ancestorResize) {
7128      let io = null;
7129      let timeoutId;
7130      const root = getDocumentElement(element);
7131      function cleanup() {
7132        var _io;
7133        clearTimeout(timeoutId);
7134        (_io = io) == null || _io.disconnect();
7135        io = null;
7136      }
7137      function refresh(skip, threshold) {
7138        if (skip === void 0) {
7139          skip = false;
7140        }
7141        if (threshold === void 0) {
7142          threshold = 1;
7143        }
7144        cleanup();
7145        const elementRectForRootMargin = element.getBoundingClientRect();
7146        const {
7147          left,
7148          top,
7149          width,
7150          height
7151        } = elementRectForRootMargin;
7152        if (!skip) {
7153          onMove();
7154        }
7155        if (!width || !height) {
7156          return;
7157        }
7158        const insetTop = floor(top);
7159        const insetRight = floor(root.clientWidth - (left + width));
7160        const insetBottom = floor(root.clientHeight - (top + height));
7161        const insetLeft = floor(left);
7162        const rootMargin = -insetTop + "px " + -insetRight + "px " + -insetBottom + "px " + -insetLeft + "px";
7163        const options = {
7164          rootMargin,
7165          threshold: max(0, min(1, threshold)) || 1
7166        };
7167        let isFirstUpdate = true;
7168        function handleObserve(entries) {
7169          const ratio = entries[0].intersectionRatio;
7170          if (!rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
7171            return refresh();
7172          }
7173          if (ratio !== threshold) {
7174            if (!isFirstUpdate) {
7175              return refresh();
7176            }
7177            if (!ratio) {
7178              timeoutId = setTimeout(() => {
7179                refresh(false, 1e-7);
7180              }, 1e3);
7181            } else {
7182              refresh(false, ratio);
7183            }
7184          }
7185          isFirstUpdate = false;
7186        }
7187        try {
7188          io = new IntersectionObserver(handleObserve, {
7189            ...options,
7190            // Handle <iframe>s
7191            root: root.ownerDocument
7192          });
7193        } catch (_e) {
7194          io = new IntersectionObserver(handleObserve, options);
7195        }
7196        io.observe(element);
7197      }
7198      const win = getWindow(element);
7199      const handleResize = () => refresh(ancestorResize);
7200      win.addEventListener("resize", handleResize);
7201      refresh(true);
7202      return () => {
7203        win.removeEventListener("resize", handleResize);
7204        cleanup();
7205      };
7206    }
7207    function autoUpdate(reference, floating, update2, options) {
7208      if (options === void 0) {
7209        options = {};
7210      }
7211      const {
7212        ancestorScroll = true,
7213        ancestorResize = true,
7214        elementResize = typeof ResizeObserver === "function",
7215        layoutShift = typeof IntersectionObserver === "function",
7216        animationFrame = false
7217      } = options;
7218      const referenceEl = unwrapElement(reference);
7219      const ancestors = ancestorScroll || ancestorResize ? [...referenceEl ? getOverflowAncestors(referenceEl) : [], ...floating ? getOverflowAncestors(floating) : []] : [];
7220      ancestors.forEach((ancestor) => {
7221        ancestorScroll && ancestor.addEventListener("scroll", update2);
7222        ancestorResize && ancestor.addEventListener("resize", update2);
7223      });
7224      const cleanupIo = referenceEl && layoutShift ? observeMove(referenceEl, update2, ancestorResize) : null;
7225      let reobserveFrame = -1;
7226      let resizeObserver = null;
7227      if (elementResize) {
7228        resizeObserver = new ResizeObserver((_ref) => {
7229          let [firstEntry] = _ref;
7230          if (firstEntry && firstEntry.target === referenceEl && resizeObserver && floating) {
7231            resizeObserver.unobserve(floating);
7232            cancelAnimationFrame(reobserveFrame);
7233            reobserveFrame = requestAnimationFrame(() => {
7234              var _resizeObserver;
7235              (_resizeObserver = resizeObserver) == null || _resizeObserver.observe(floating);
7236            });
7237          }
7238          update2();
7239        });
7240        if (referenceEl && !animationFrame) {
7241          resizeObserver.observe(referenceEl);
7242        }
7243        if (floating) {
7244          resizeObserver.observe(floating);
7245        }
7246      }
7247      let frameId;
7248      let prevRefRect = animationFrame ? getBoundingClientRect(reference) : null;
7249      if (animationFrame) {
7250        frameLoop();
7251      }
7252      function frameLoop() {
7253        const nextRefRect = getBoundingClientRect(reference);
7254        if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
7255          update2();
7256        }
7257        prevRefRect = nextRefRect;
7258        frameId = requestAnimationFrame(frameLoop);
7259      }
7260      update2();
7261      return () => {
7262        var _resizeObserver2;
7263        ancestors.forEach((ancestor) => {
7264          ancestorScroll && ancestor.removeEventListener("scroll", update2);
7265          ancestorResize && ancestor.removeEventListener("resize", update2);
7266        });
7267        cleanupIo == null || cleanupIo();
7268        (_resizeObserver2 = resizeObserver) == null || _resizeObserver2.disconnect();
7269        resizeObserver = null;
7270        if (animationFrame) {
7271          cancelAnimationFrame(frameId);
7272        }
7273      };
7274    }
7275    var offset2 = offset;
7276    var shift2 = shift;
7277    var flip2 = flip;
7278    var size2 = size;
7279    var limitShift2 = limitShift;
7280    var computePosition2 = (reference, floating, options) => {
7281      const cache = /* @__PURE__ */ new Map();
7282      const mergedOptions = options != null ? options : {};
7283      const platformWithCache = {
7284        ...platform2,
7285        ...mergedOptions.platform,
7286        _c: cache
7287      };
7288      return computePosition(reference, floating, {
7289        ...mergedOptions,
7290        platform: platformWithCache
7291      });
7292    };
7293  
7294    // node_modules/.store/@floating-ui/react-dom@2.1.9-AxWcAwqlMfOrAFOinFKSVg/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
7295    var React32 = __toESM(require_react(), 1);
7296    var import_react2 = __toESM(require_react(), 1);
7297    var ReactDOM4 = __toESM(require_react_dom(), 1);
7298    var isClient = typeof document !== "undefined";
7299    var noop2 = function noop3() {
7300    };
7301    var index = isClient ? import_react2.useLayoutEffect : noop2;
7302    function deepEqual(a, b) {
7303      if (a === b) {
7304        return true;
7305      }
7306      if (typeof a !== typeof b) {
7307        return false;
7308      }
7309      if (typeof a === "function" && a.toString() === b.toString()) {
7310        return true;
7311      }
7312      let length;
7313      let i;
7314      let keys;
7315      if (a && b && typeof a === "object") {
7316        if (Array.isArray(a)) {
7317          length = a.length;
7318          if (length !== b.length) return false;
7319          for (i = length; i-- !== 0; ) {
7320            if (!deepEqual(a[i], b[i])) {
7321              return false;
7322            }
7323          }
7324          return true;
7325        }
7326        keys = Object.keys(a);
7327        length = keys.length;
7328        if (length !== Object.keys(b).length) {
7329          return false;
7330        }
7331        for (i = length; i-- !== 0; ) {
7332          if (!{}.hasOwnProperty.call(b, keys[i])) {
7333            return false;
7334          }
7335        }
7336        for (i = length; i-- !== 0; ) {
7337          const key = keys[i];
7338          if (key === "_owner" && a.$$typeof) {
7339            continue;
7340          }
7341          if (!deepEqual(a[key], b[key])) {
7342            return false;
7343          }
7344        }
7345        return true;
7346      }
7347      return a !== a && b !== b;
7348    }
7349    function getDPR(element) {
7350      if (typeof window === "undefined") {
7351        return 1;
7352      }
7353      const win = element.ownerDocument.defaultView || window;
7354      return win.devicePixelRatio || 1;
7355    }
7356    function roundByDPR(element, value) {
7357      const dpr = getDPR(element);
7358      return Math.round(value * dpr) / dpr;
7359    }
7360    function useLatestRef(value) {
7361      const ref = React32.useRef(value);
7362      index(() => {
7363        ref.current = value;
7364      });
7365      return ref;
7366    }
7367    function useFloating(options) {
7368      if (options === void 0) {
7369        options = {};
7370      }
7371      const {
7372        placement = "bottom",
7373        strategy = "absolute",
7374        middleware = [],
7375        platform: platform3,
7376        elements: {
7377          reference: externalReference,
7378          floating: externalFloating
7379        } = {},
7380        transform = true,
7381        whileElementsMounted,
7382        open: open2
7383      } = options;
7384      const [data, setData] = React32.useState({
7385        x: 0,
7386        y: 0,
7387        strategy,
7388        placement,
7389        middlewareData: {},
7390        isPositioned: false
7391      });
7392      const [latestMiddleware, setLatestMiddleware] = React32.useState(middleware);
7393      if (!deepEqual(latestMiddleware, middleware)) {
7394        setLatestMiddleware(middleware);
7395      }
7396      const [_reference, _setReference] = React32.useState(null);
7397      const [_floating, _setFloating] = React32.useState(null);
7398      const setReference = React32.useCallback((node) => {
7399        if (node !== referenceRef.current) {
7400          referenceRef.current = node;
7401          _setReference(node);
7402        }
7403      }, []);
7404      const setFloating = React32.useCallback((node) => {
7405        if (node !== floatingRef.current) {
7406          floatingRef.current = node;
7407          _setFloating(node);
7408        }
7409      }, []);
7410      const referenceEl = externalReference || _reference;
7411      const floatingEl = externalFloating || _floating;
7412      const referenceRef = React32.useRef(null);
7413      const floatingRef = React32.useRef(null);
7414      const dataRef = React32.useRef(data);
7415      const hasWhileElementsMounted = whileElementsMounted != null;
7416      const whileElementsMountedRef = useLatestRef(whileElementsMounted);
7417      const platformRef = useLatestRef(platform3);
7418      const openRef = useLatestRef(open2);
7419      const update2 = React32.useCallback(() => {
7420        if (!referenceRef.current || !floatingRef.current) {
7421          return;
7422        }
7423        const config = {
7424          placement,
7425          strategy,
7426          middleware: latestMiddleware
7427        };
7428        if (platformRef.current) {
7429          config.platform = platformRef.current;
7430        }
7431        computePosition2(referenceRef.current, floatingRef.current, config).then((data2) => {
7432          const fullData = {
7433            ...data2,
7434            // The floating element's position may be recomputed while it's closed
7435            // but still mounted (such as when transitioning out). To ensure
7436            // `isPositioned` will be `false` initially on the next open, avoid
7437            // setting it to `true` when `open === false` (must be specified).
7438            isPositioned: openRef.current !== false
7439          };
7440          if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
7441            dataRef.current = fullData;
7442            ReactDOM4.flushSync(() => {
7443              setData(fullData);
7444            });
7445          }
7446        });
7447      }, [latestMiddleware, placement, strategy, platformRef, openRef]);
7448      index(() => {
7449        if (open2 === false && dataRef.current.isPositioned) {
7450          dataRef.current.isPositioned = false;
7451          setData((data2) => ({
7452            ...data2,
7453            isPositioned: false
7454          }));
7455        }
7456      }, [open2]);
7457      const isMountedRef = React32.useRef(false);
7458      index(() => {
7459        isMountedRef.current = true;
7460        return () => {
7461          isMountedRef.current = false;
7462        };
7463      }, []);
7464      index(() => {
7465        if (referenceEl) referenceRef.current = referenceEl;
7466        if (floatingEl) floatingRef.current = floatingEl;
7467        if (referenceEl && floatingEl) {
7468          if (whileElementsMountedRef.current) {
7469            return whileElementsMountedRef.current(referenceEl, floatingEl, update2);
7470          }
7471          update2();
7472        }
7473      }, [referenceEl, floatingEl, update2, whileElementsMountedRef, hasWhileElementsMounted]);
7474      const refs = React32.useMemo(() => ({
7475        reference: referenceRef,
7476        floating: floatingRef,
7477        setReference,
7478        setFloating
7479      }), [setReference, setFloating]);
7480      const elements = React32.useMemo(() => ({
7481        reference: referenceEl,
7482        floating: floatingEl
7483      }), [referenceEl, floatingEl]);
7484      const floatingStyles = React32.useMemo(() => {
7485        const initialStyles = {
7486          position: strategy,
7487          left: 0,
7488          top: 0
7489        };
7490        if (!elements.floating) {
7491          return initialStyles;
7492        }
7493        const x = roundByDPR(elements.floating, data.x);
7494        const y = roundByDPR(elements.floating, data.y);
7495        if (transform) {
7496          return {
7497            ...initialStyles,
7498            transform: "translate(" + x + "px, " + y + "px)",
7499            ...getDPR(elements.floating) >= 1.5 && {
7500              willChange: "transform"
7501            }
7502          };
7503        }
7504        return {
7505          position: strategy,
7506          left: x,
7507          top: y
7508        };
7509      }, [strategy, transform, elements.floating, data.x, data.y]);
7510      return React32.useMemo(() => ({
7511        ...data,
7512        update: update2,
7513        refs,
7514        elements,
7515        floatingStyles
7516      }), [data, update2, refs, elements, floatingStyles]);
7517    }
7518    var offset3 = (options, deps) => {
7519      const result = offset2(options);
7520      return {
7521        name: result.name,
7522        fn: result.fn,
7523        options: [options, deps]
7524      };
7525    };
7526    var shift3 = (options, deps) => {
7527      const result = shift2(options);
7528      return {
7529        name: result.name,
7530        fn: result.fn,
7531        options: [options, deps]
7532      };
7533    };
7534    var limitShift3 = (options, deps) => {
7535      const result = limitShift2(options);
7536      return {
7537        fn: result.fn,
7538        options: [options, deps]
7539      };
7540    };
7541    var flip3 = (options, deps) => {
7542      const result = flip2(options);
7543      return {
7544        name: result.name,
7545        fn: result.fn,
7546        options: [options, deps]
7547      };
7548    };
7549    var size3 = (options, deps) => {
7550      const result = size2(options);
7551      return {
7552        name: result.name,
7553        fn: result.fn,
7554        options: [options, deps]
7555      };
7556    };
7557  
7558    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/composite.mjs
7559    var ARROW_UP2 = "ArrowUp";
7560    var ARROW_DOWN2 = "ArrowDown";
7561    var ARROW_LEFT2 = "ArrowLeft";
7562    var ARROW_RIGHT2 = "ArrowRight";
7563    var HOME = "Home";
7564    var END = "End";
7565    var COMPOSITE_KEYS = /* @__PURE__ */ new Set([ARROW_UP2, ARROW_DOWN2, ARROW_LEFT2, ARROW_RIGHT2, HOME, END]);
7566    var SHIFT = "Shift";
7567    var MODIFIER_KEYS = [SHIFT, "Control", "Alt", "Meta"];
7568    function isInputElement(element) {
7569      return isHTMLElement(element) && element.tagName === "INPUT";
7570    }
7571    function isNativeInput(element) {
7572      if (isInputElement(element) && element.selectionStart != null) {
7573        return true;
7574      }
7575      if (isHTMLElement(element) && element.tagName === "TEXTAREA") {
7576        return true;
7577      }
7578      return false;
7579    }
7580    function scrollIntoViewIfNeeded(scrollContainer, element, direction, orientation) {
7581      if (!scrollContainer || !element || !element.scrollTo) {
7582        return;
7583      }
7584      let targetX = scrollContainer.scrollLeft;
7585      let targetY = scrollContainer.scrollTop;
7586      const isOverflowingX = scrollContainer.clientWidth < scrollContainer.scrollWidth;
7587      const isOverflowingY = scrollContainer.clientHeight < scrollContainer.scrollHeight;
7588      if (isOverflowingX && orientation !== "vertical") {
7589        const elementOffsetLeft = getOffset(scrollContainer, element, "left");
7590        const containerStyles = getStyles(scrollContainer);
7591        const elementStyles = getStyles(element);
7592        if (direction === "ltr") {
7593          if (elementOffsetLeft + element.offsetWidth + elementStyles.scrollMarginRight > scrollContainer.scrollLeft + scrollContainer.clientWidth - containerStyles.scrollPaddingRight) {
7594            targetX = elementOffsetLeft + element.offsetWidth + elementStyles.scrollMarginRight - scrollContainer.clientWidth + containerStyles.scrollPaddingRight;
7595          } else if (elementOffsetLeft - elementStyles.scrollMarginLeft < scrollContainer.scrollLeft + containerStyles.scrollPaddingLeft) {
7596            targetX = elementOffsetLeft - elementStyles.scrollMarginLeft - containerStyles.scrollPaddingLeft;
7597          }
7598        }
7599        if (direction === "rtl") {
7600          if (elementOffsetLeft - elementStyles.scrollMarginLeft < scrollContainer.scrollLeft + containerStyles.scrollPaddingLeft) {
7601            targetX = elementOffsetLeft - elementStyles.scrollMarginLeft - containerStyles.scrollPaddingLeft;
7602          } else if (elementOffsetLeft + element.offsetWidth + elementStyles.scrollMarginRight > scrollContainer.scrollLeft + scrollContainer.clientWidth - containerStyles.scrollPaddingRight) {
7603            targetX = elementOffsetLeft + element.offsetWidth + elementStyles.scrollMarginRight - scrollContainer.clientWidth + containerStyles.scrollPaddingRight;
7604          }
7605        }
7606      }
7607      if (isOverflowingY && orientation !== "horizontal") {
7608        const elementOffsetTop = getOffset(scrollContainer, element, "top");
7609        const containerStyles = getStyles(scrollContainer);
7610        const elementStyles = getStyles(element);
7611        if (elementOffsetTop - elementStyles.scrollMarginTop < scrollContainer.scrollTop + containerStyles.scrollPaddingTop) {
7612          targetY = elementOffsetTop - elementStyles.scrollMarginTop - containerStyles.scrollPaddingTop;
7613        } else if (elementOffsetTop + element.offsetHeight + elementStyles.scrollMarginBottom > scrollContainer.scrollTop + scrollContainer.clientHeight - containerStyles.scrollPaddingBottom) {
7614          targetY = elementOffsetTop + element.offsetHeight + elementStyles.scrollMarginBottom - scrollContainer.clientHeight + containerStyles.scrollPaddingBottom;
7615        }
7616      }
7617      scrollContainer.scrollTo({
7618        left: targetX,
7619        top: targetY,
7620        behavior: "auto"
7621      });
7622    }
7623    function getOffset(ancestor, element, side) {
7624      const propName = side === "left" ? "offsetLeft" : "offsetTop";
7625      let result = 0;
7626      while (element.offsetParent) {
7627        result += element[propName];
7628        if (element.offsetParent === ancestor) {
7629          break;
7630        }
7631        element = element.offsetParent;
7632      }
7633      return result;
7634    }
7635    function getStyles(element) {
7636      const styles = getComputedStyle(element);
7637      return {
7638        scrollMarginTop: parseFloat(styles.scrollMarginTop) || 0,
7639        scrollMarginRight: parseFloat(styles.scrollMarginRight) || 0,
7640        scrollMarginBottom: parseFloat(styles.scrollMarginBottom) || 0,
7641        scrollMarginLeft: parseFloat(styles.scrollMarginLeft) || 0,
7642        scrollPaddingTop: parseFloat(styles.scrollPaddingTop) || 0,
7643        scrollPaddingRight: parseFloat(styles.scrollPaddingRight) || 0,
7644        scrollPaddingBottom: parseFloat(styles.scrollPaddingBottom) || 0,
7645        scrollPaddingLeft: parseFloat(styles.scrollPaddingLeft) || 0
7646      };
7647    }
7648  
7649    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/inertValue.mjs
7650    function inertValue(value) {
7651      if (isReactVersionAtLeast(19)) {
7652        return value;
7653      }
7654      return value ? "true" : void 0;
7655    }
7656  
7657    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/InternalBackdrop.mjs
7658    var React33 = __toESM(require_react(), 1);
7659    var import_jsx_runtime27 = __toESM(require_jsx_runtime(), 1);
7660    var InternalBackdrop = /* @__PURE__ */ React33.forwardRef(function InternalBackdrop2(props, ref) {
7661      const {
7662        cutout,
7663        ...otherProps
7664      } = props;
7665      let clipPath;
7666      if (cutout) {
7667        const rect = cutout.getBoundingClientRect();
7668        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)`;
7669      }
7670      return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", {
7671        ref,
7672        role: "presentation",
7673        "data-base-ui-inert": "",
7674        ...otherProps,
7675        style: {
7676          position: "fixed",
7677          inset: 0,
7678          userSelect: "none",
7679          WebkitUserSelect: "none",
7680          clipPath
7681        }
7682      });
7683    });
7684    if (true) InternalBackdrop.displayName = "InternalBackdrop";
7685  
7686    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/useOpenInteractionType.mjs
7687    var React36 = __toESM(require_react(), 1);
7688  
7689    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useEnhancedClickHandler.mjs
7690    var React34 = __toESM(require_react(), 1);
7691    function useEnhancedClickHandler(handler) {
7692      const lastClickInteractionTypeRef = React34.useRef("");
7693      const handlePointerDown = React34.useCallback((event) => {
7694        if (event.defaultPrevented) {
7695          return;
7696        }
7697        lastClickInteractionTypeRef.current = event.pointerType;
7698        handler(event, event.pointerType);
7699      }, [handler]);
7700      const handleClick = React34.useCallback((event) => {
7701        if (event.detail === 0) {
7702          handler(event, "keyboard");
7703          return;
7704        }
7705        if ("pointerType" in event) {
7706          handler(event, event.pointerType);
7707        } else {
7708          handler(event, lastClickInteractionTypeRef.current);
7709        }
7710        lastClickInteractionTypeRef.current = "";
7711      }, [handler]);
7712      return {
7713        onClick: handleClick,
7714        onPointerDown: handlePointerDown
7715      };
7716    }
7717  
7718    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useValueChanged.mjs
7719    var React35 = __toESM(require_react(), 1);
7720    function useValueChanged(value, onChange) {
7721      const valueRef = React35.useRef(value);
7722      const onChangeCallback = useStableCallback(onChange);
7723      useIsoLayoutEffect(() => {
7724        if (valueRef.current !== value) {
7725          onChangeCallback(valueRef.current);
7726        }
7727        valueRef.current = value;
7728      }, [value, onChangeCallback]);
7729    }
7730  
7731    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/useOpenInteractionType.mjs
7732    function useOpenMethodTriggerProps(open2, setOpenMethod) {
7733      const handleTriggerClick = useStableCallback((_, interactionType) => {
7734        const isOpen = typeof open2 === "function" ? open2() : open2;
7735        if (!isOpen) {
7736          setOpenMethod(interactionType || // On iOS Safari, the hitslop around touch targets means tapping outside an element's
7737          // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`
7738          // will be "" in that case.
7739          (parts_exports.os.ios ? "touch" : ""));
7740        }
7741      });
7742      const {
7743        onClick,
7744        onPointerDown
7745      } = useEnhancedClickHandler(handleTriggerClick);
7746      return React36.useMemo(() => ({
7747        onClick,
7748        onPointerDown
7749      }), [onClick, onPointerDown]);
7750    }
7751    function useOpenInteractionType(open2) {
7752      const [openMethod, setOpenMethod] = React36.useState(null);
7753      const triggerProps = useOpenMethodTriggerProps(open2, setOpenMethod);
7754      useValueChanged(open2, (previousOpen) => {
7755        if (previousOpen && !open2) {
7756          setOpenMethod(null);
7757        }
7758      });
7759      return React36.useMemo(() => ({
7760        openMethod,
7761        triggerProps
7762      }), [openMethod, triggerProps]);
7763    }
7764  
7765    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/useOnFirstRender.mjs
7766    var React37 = __toESM(require_react(), 1);
7767    function useOnFirstRender(fn) {
7768      const ref = React37.useRef(true);
7769      if (ref.current) {
7770        ref.current = false;
7771        fn();
7772      }
7773    }
7774  
7775    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/areArraysEqual.mjs
7776    function areArraysEqual(array1, array2, itemComparer = Object.is) {
7777      const {
7778        length
7779      } = array1;
7780      if (length !== array2.length) {
7781        return false;
7782      }
7783      for (let i = 0; i < length; i += 1) {
7784        if (!itemComparer(array1[i], array2[i])) {
7785          return false;
7786        }
7787      }
7788      return true;
7789    }
7790  
7791    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/itemEquality.mjs
7792    var defaultItemEquality = (itemValue, selectedValue) => Object.is(itemValue, selectedValue);
7793    function compareItemEquality(itemValue, selectedValue, comparer) {
7794      if (itemValue == null || selectedValue == null) {
7795        return Object.is(itemValue, selectedValue);
7796      }
7797      return comparer(itemValue, selectedValue);
7798    }
7799    function isSelectedValueDirty(currentValue, initialValue, comparer) {
7800      if (Array.isArray(currentValue) && Array.isArray(initialValue)) {
7801        return !areArraysEqual(currentValue, initialValue, (itemValue, initialItemValue) => compareItemEquality(itemValue, initialItemValue, comparer));
7802      }
7803      return currentValue !== initialValue;
7804    }
7805    function selectedValueIncludes(selectedValues, itemValue, comparer) {
7806      if (!selectedValues) {
7807        return false;
7808      }
7809      return selectedValues.some((selectedValue) => {
7810        if (selectedValue === void 0) {
7811          return false;
7812        }
7813        return compareItemEquality(itemValue, selectedValue, comparer);
7814      });
7815    }
7816    function findItemIndex(itemValues, selectedValue, comparer) {
7817      if (!itemValues) {
7818        return -1;
7819      }
7820      return itemValues.findIndex((itemValue) => {
7821        if (itemValue === void 0) {
7822          return false;
7823        }
7824        return compareItemEquality(itemValue, selectedValue, comparer);
7825      });
7826    }
7827    function createSelectionMatcher(selectedValues, comparer) {
7828      if (comparer !== defaultItemEquality) {
7829        return (itemValue) => selectedValueIncludes(selectedValues, itemValue, comparer);
7830      }
7831      const index3 = new Set(selectedValues);
7832      index3.delete(void 0);
7833      return (itemValue) => index3.has(itemValue) && (itemValue !== 0 || selectedValues.some((v) => Object.is(itemValue, v)));
7834    }
7835    function findSelectionIndex(itemValues, selectedValue, comparer, multiple) {
7836      const index3 = multiple && Array.isArray(selectedValue) ? (
7837        // Anchor to the first selected item in rendered order so the index does not depend
7838        // on the order in which the values were added to the array.
7839        itemValues.findIndex(createSelectionMatcher(selectedValue, comparer))
7840      ) : findItemIndex(itemValues, selectedValue, comparer);
7841      return index3 === -1 ? null : index3;
7842    }
7843    function resolveSelectedIndex(index3, itemValue, registry, selectedValues, comparer, currentIndex) {
7844      if (selectedValueIncludes(selectedValues, itemValue, comparer)) {
7845        return currentIndex != null && index3 > currentIndex && selectedValueIncludes(selectedValues, registry[currentIndex], comparer) ? currentIndex : index3;
7846      }
7847      return index3 === currentIndex ? findSelectionIndex(registry, selectedValues, comparer, true) : currentIndex;
7848    }
7849    function removeItem(selectedValues, itemValue, comparer) {
7850      return selectedValues.filter((selectedValue) => !compareItemEquality(itemValue, selectedValue, comparer));
7851    }
7852  
7853    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/resolveValueLabel.mjs
7854    var React38 = __toESM(require_react(), 1);
7855  
7856    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/serializeValue.mjs
7857    function serializeValue(value) {
7858      if (value == null) {
7859        return "";
7860      }
7861      if (typeof value === "string") {
7862        return value;
7863      }
7864      try {
7865        return JSON.stringify(value);
7866      } catch {
7867        return String(value);
7868      }
7869    }
7870  
7871    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/resolveValueLabel.mjs
7872    var import_jsx_runtime28 = __toESM(require_jsx_runtime(), 1);
7873    function isGroup(item) {
7874      return typeof item === "object" && item != null && Array.isArray(item.items);
7875    }
7876    function isGroupedItems(items) {
7877      return isGroup(items?.[0]);
7878    }
7879    function flattenLeafItems(items) {
7880      return isGroupedItems(items) ? items.flatMap((group) => group.items) : items;
7881    }
7882    function hasNullItemLabel(items) {
7883      if (!Array.isArray(items)) {
7884        return items != null && "null" in items;
7885      }
7886      const arrayItems = items;
7887      if (isGroupedItems(arrayItems)) {
7888        for (const group of arrayItems) {
7889          for (const item of group.items) {
7890            if (item && item.value == null && item.label != null) {
7891              return true;
7892            }
7893          }
7894        }
7895        return false;
7896      }
7897      for (const item of arrayItems) {
7898        if (item && item.value == null && item.label != null) {
7899          return true;
7900        }
7901      }
7902      return false;
7903    }
7904    function stringifyAsLabel(item, itemToStringLabel) {
7905      if (itemToStringLabel && item != null) {
7906        return itemToStringLabel(item) ?? "";
7907      }
7908      if (item && typeof item === "object") {
7909        if ("label" in item && item.label != null) {
7910          return String(item.label);
7911        }
7912        if ("value" in item) {
7913          return String(item.value);
7914        }
7915      }
7916      return serializeValue(item);
7917    }
7918    function stringifyAsValue(item, itemToStringValue) {
7919      if (itemToStringValue && item != null) {
7920        return itemToStringValue(item) ?? "";
7921      }
7922      if (item && typeof item === "object" && "value" in item && "label" in item) {
7923        return serializeValue(item.value);
7924      }
7925      return serializeValue(item);
7926    }
7927    function resolveSelectedLabel(value, items, itemToStringLabel) {
7928      function fallback() {
7929        return stringifyAsLabel(value, itemToStringLabel);
7930      }
7931      if (itemToStringLabel && value != null) {
7932        return itemToStringLabel(value);
7933      }
7934      if (value && typeof value === "object" && "label" in value && value.label != null) {
7935        return value.label;
7936      }
7937      if (items && !Array.isArray(items)) {
7938        const label = Object.hasOwn(items, value) ? items[value] : void 0;
7939        return label ?? fallback();
7940      }
7941      if (Array.isArray(items)) {
7942        const arrayItems = items;
7943        const flatItems = flattenLeafItems(arrayItems);
7944        if (value == null || typeof value !== "object") {
7945          const match = flatItems.find((item) => item.value === value);
7946          if (match && match.label != null) {
7947            return match.label;
7948          }
7949          return fallback();
7950        }
7951        if ("value" in value) {
7952          const match = flatItems.find((item) => item && item.value === value.value);
7953          if (match && match.label != null) {
7954            return match.label;
7955          }
7956        }
7957      }
7958      return fallback();
7959    }
7960    function resolveMultipleLabels(values, items, itemToStringLabel) {
7961      return values.reduce((acc, value, index3) => {
7962        if (index3 > 0) {
7963          acc.push(", ");
7964        }
7965        acc.push(/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(React38.Fragment, {
7966          children: resolveSelectedLabel(value, items, itemToStringLabel)
7967        }, index3));
7968        return acc;
7969      }, []);
7970    }
7971  
7972    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/field-root-context/FieldRootContext.mjs
7973    var React39 = __toESM(require_react(), 1);
7974  
7975    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/control/FieldControlDataAttributes.mjs
7976    var valid = "data-valid";
7977    var invalid = "data-invalid";
7978  
7979    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/field-constants/constants.mjs
7980    var DEFAULT_VALIDITY_STATE = {
7981      badInput: false,
7982      customError: false,
7983      patternMismatch: false,
7984      rangeOverflow: false,
7985      rangeUnderflow: false,
7986      stepMismatch: false,
7987      tooLong: false,
7988      tooShort: false,
7989      typeMismatch: false,
7990      valid: null,
7991      valueMissing: false
7992    };
7993    var DEFAULT_FIELD_STATE_ATTRIBUTES = {
7994      valid: null,
7995      touched: false,
7996      dirty: false,
7997      filled: false,
7998      focused: false
7999    };
8000    var DEFAULT_FIELD_ROOT_STATE = {
8001      disabled: false,
8002      ...DEFAULT_FIELD_STATE_ATTRIBUTES
8003    };
8004    var fieldValidityMapping = {
8005      valid(value) {
8006        if (value === null) {
8007          return null;
8008        }
8009        if (value) {
8010          return {
8011            [valid]: ""
8012          };
8013        }
8014        return {
8015          [invalid]: ""
8016        };
8017      }
8018    };
8019  
8020    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/field-root-context/FieldRootContext.mjs
8021    var DEFAULT_FIELD_ROOT_CONTEXT = {
8022      invalid: void 0,
8023      name: void 0,
8024      validityData: {
8025        state: DEFAULT_VALIDITY_STATE,
8026        errors: [],
8027        error: "",
8028        value: "",
8029        initialValue: null
8030      },
8031      setValidityData: NOOP,
8032      disabled: void 0,
8033      setTouched: NOOP,
8034      setDirty: NOOP,
8035      setFilled: NOOP,
8036      setFocused: NOOP,
8037      focusOwnerRef: {
8038        current: void 0
8039      },
8040      validationMode: "onSubmit",
8041      shouldValidateOnChange: () => false,
8042      state: DEFAULT_FIELD_ROOT_STATE,
8043      registerFieldControl: NOOP,
8044      validation: {
8045        getValidationProps: (_disabled, props = EMPTY_OBJECT) => props,
8046        inputRef: {
8047          current: null
8048        },
8049        registeredInputs: /* @__PURE__ */ new Map(),
8050        registerInput: NOOP,
8051        getInputControl: () => null,
8052        commit: async () => {
8053        },
8054        change: NOOP
8055      }
8056    };
8057    var FieldRootContext = /* @__PURE__ */ React39.createContext(DEFAULT_FIELD_ROOT_CONTEXT);
8058    if (true) FieldRootContext.displayName = "FieldRootContext";
8059    function useFieldRootContext(optional = true) {
8060      const context = React39.useContext(FieldRootContext);
8061      if (context.setValidityData === NOOP && !optional) {
8062        throw new Error(true ? "Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>." : formatErrorMessage_default(28));
8063      }
8064      return context;
8065    }
8066  
8067    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/field-register-control/useRegisterFieldControl.mjs
8068    function useRegisterFieldControl(controlRef, id, value, getFormValueOverride, enabled = true, name16) {
8069      const {
8070        registerFieldControl
8071      } = useFieldRootContext();
8072      const sourceRef = useRefWithInit(() => /* @__PURE__ */ Symbol());
8073      useIsoLayoutEffect(() => {
8074        const source = sourceRef.current;
8075        if (!enabled) {
8076          registerFieldControl(source, void 0);
8077          return;
8078        }
8079        const registration = {
8080          controlRef,
8081          getValue: getFormValueOverride,
8082          id,
8083          name: name16,
8084          value
8085        };
8086        registerFieldControl(source, registration);
8087      }, [controlRef, enabled, getFormValueOverride, id, name16, registerFieldControl, sourceRef, value]);
8088      useIsoLayoutEffect(() => {
8089        const source = sourceRef.current;
8090        return () => {
8091          registerFieldControl(source, void 0);
8092        };
8093      }, [registerFieldControl, sourceRef]);
8094    }
8095  
8096    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/form-context/FormContext.mjs
8097    var React40 = __toESM(require_react(), 1);
8098    var FormContext = /* @__PURE__ */ React40.createContext({
8099      elementRef: {
8100        current: null
8101      },
8102      formRef: {
8103        current: {
8104          fields: /* @__PURE__ */ new Map()
8105        }
8106      },
8107      errors: {},
8108      clearErrors: NOOP,
8109      validationMode: "onSubmit",
8110      submitCountRef: {
8111        current: 0
8112      }
8113    });
8114    if (true) FormContext.displayName = "FormContext";
8115    function useFormContext() {
8116      return React40.useContext(FormContext);
8117    }
8118  
8119    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/labelable-provider/useLabelableId.mjs
8120    var React42 = __toESM(require_react(), 1);
8121  
8122    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/labelable-provider/LabelableContext.mjs
8123    var React41 = __toESM(require_react(), 1);
8124    var LabelableContext = /* @__PURE__ */ React41.createContext({
8125      controlId: void 0,
8126      registerControlId: NOOP,
8127      resetControlId: NOOP,
8128      labelId: void 0,
8129      setLabelId: NOOP,
8130      messageIds: [],
8131      setMessageIds: NOOP,
8132      getDescriptionProps: (externalProps) => externalProps
8133    });
8134    if (true) LabelableContext.displayName = "LabelableContext";
8135    function useLabelableContext() {
8136      return React41.useContext(LabelableContext);
8137    }
8138  
8139    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/labelable-provider/useLabelableId.mjs
8140    function useLabelableId(params = {}) {
8141      const {
8142        id,
8143        enabled = true
8144      } = params;
8145      const {
8146        controlId,
8147        registerControlId,
8148        resetControlId
8149      } = useLabelableContext();
8150      const defaultId = useBaseUiId();
8151      const controlSourceRef = useRefWithInit(() => /* @__PURE__ */ Symbol());
8152      const hasRegisteredRef = React42.useRef(false);
8153      const hadExplicitIdRef = React42.useRef(false);
8154      const unregisterControlId = useStableCallback(() => {
8155        if (!hasRegisteredRef.current || registerControlId === NOOP) {
8156          return;
8157        }
8158        hasRegisteredRef.current = false;
8159        registerControlId(controlSourceRef.current, void 0);
8160      });
8161      useIsoLayoutEffect(() => {
8162        if (!enabled || registerControlId === NOOP) {
8163          unregisterControlId();
8164          return void 0;
8165        }
8166        let nextId;
8167        if (id !== void 0) {
8168          hadExplicitIdRef.current = true;
8169          nextId = id;
8170        } else if (hadExplicitIdRef.current) {
8171          nextId = defaultId;
8172        } else {
8173          resetControlId();
8174          return void 0;
8175        }
8176        if (nextId === void 0) {
8177          unregisterControlId();
8178          return void 0;
8179        }
8180        hasRegisteredRef.current = true;
8181        registerControlId(controlSourceRef.current, nextId);
8182        return void 0;
8183      }, [id, enabled, registerControlId, resetControlId, defaultId, controlSourceRef, unregisterControlId]);
8184      useIsoLayoutEffect(() => {
8185        return unregisterControlId;
8186      }, [unregisterControlId]);
8187      return (enabled ? controlId : void 0) ?? id ?? defaultId;
8188    }
8189  
8190    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/direction-context/DirectionContext.mjs
8191    var React43 = __toESM(require_react(), 1);
8192    var DirectionContext = /* @__PURE__ */ React43.createContext(void 0);
8193    if (true) DirectionContext.displayName = "DirectionContext";
8194    function useDirection() {
8195      const context = React43.useContext(DirectionContext);
8196      return context?.direction ?? "ltr";
8197    }
8198  
8199    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/field-root-context/useSetFieldFocused.mjs
8200    function useSetFieldFocused(disabled2, focusTargetRef, onFocusedChange) {
8201      const {
8202        setFocused,
8203        focusOwnerRef
8204      } = useFieldRootContext();
8205      const setFieldFocused = useStableCallback((focused) => {
8206        if (focused ? !disabled2 : focusOwnerRef.current === setFieldFocused) {
8207          focusOwnerRef.current = focused && setFieldFocused;
8208          onFocusedChange?.(focused);
8209          setFocused(focused);
8210        }
8211      });
8212      useIsoLayoutEffect(() => {
8213        const el = focusTargetRef.current;
8214        const root = el?.getRootNode();
8215        if (root?.activeElement === el) {
8216          setFieldFocused(true);
8217        }
8218        return () => setFieldFocused(false);
8219      }, [disabled2, focusTargetRef, setFieldFocused]);
8220      return setFieldFocused;
8221    }
8222  
8223    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/getPseudoElementBounds.mjs
8224    var BOUNDARY_OFFSET = 5;
8225    function isMouseWithinBounds(event, element) {
8226      const bounds = getPseudoElementBounds(element);
8227      return event.clientX >= bounds.left - BOUNDARY_OFFSET && event.clientX <= bounds.right + BOUNDARY_OFFSET && event.clientY >= bounds.top - BOUNDARY_OFFSET && event.clientY <= bounds.bottom + BOUNDARY_OFFSET;
8228    }
8229    function getPseudoElementBounds(element) {
8230      const elementRect = element.getBoundingClientRect();
8231      const win = getWindow(element);
8232      if (parts_exports.env.jsdom) {
8233        return elementRect;
8234      }
8235      const beforeStyles = win.getComputedStyle(element, "::before");
8236      const afterStyles = win.getComputedStyle(element, "::after");
8237      const hasPseudoElements = beforeStyles.content !== "none" || afterStyles.content !== "none";
8238      if (!hasPseudoElements) {
8239        return elementRect;
8240      }
8241      const beforeWidth = parseFloat(beforeStyles.width) || 0;
8242      const beforeHeight = parseFloat(beforeStyles.height) || 0;
8243      const afterWidth = parseFloat(afterStyles.width) || 0;
8244      const afterHeight = parseFloat(afterStyles.height) || 0;
8245      const totalWidth = Math.max(elementRect.width, beforeWidth, afterWidth);
8246      const totalHeight = Math.max(elementRect.height, beforeHeight, afterHeight);
8247      const widthDiff = totalWidth - elementRect.width;
8248      const heightDiff = totalHeight - elementRect.height;
8249      return {
8250        left: elementRect.left - widthDiff / 2,
8251        right: elementRect.right + widthDiff / 2,
8252        top: elementRect.top - heightDiff / 2,
8253        bottom: elementRect.bottom + heightDiff / 2
8254      };
8255    }
8256  
8257    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/resolveAriaLabelledBy.mjs
8258    function getDefaultLabelId(id) {
8259      return id == null ? void 0 : `$id}-label`;
8260    }
8261    function resolveAriaLabelledBy(fieldLabelId, localLabelId) {
8262      return fieldLabelId ?? localLabelId;
8263    }
8264  
8265    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useAnchorPositioning.mjs
8266    var React45 = __toESM(require_react(), 1);
8267  
8268    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/hooks/useFloating.mjs
8269    var React44 = __toESM(require_react(), 1);
8270    function useBaseUIFloating(options) {
8271      const {
8272        nodeId,
8273        externalTree,
8274        rootContext: store
8275      } = options;
8276      const referenceElement = store.useState("referenceElement");
8277      const floatingElement = store.useState("floatingElement");
8278      const domReferenceElement = store.useState("domReferenceElement");
8279      const open2 = store.useState("open");
8280      const floatingId = store.useState("floatingId");
8281      const [positionReference, setPositionReferenceRaw] = React44.useState(null);
8282      const domReferenceRef = React44.useRef(null);
8283      const tree = useFloatingTree(externalTree);
8284      const storeElements = React44.useMemo(() => ({
8285        reference: referenceElement,
8286        floating: floatingElement,
8287        domReference: domReferenceElement
8288      }), [referenceElement, floatingElement, domReferenceElement]);
8289      const position = useFloating({
8290        ...options,
8291        elements: {
8292          ...storeElements,
8293          ...positionReference && {
8294            reference: positionReference
8295          }
8296        }
8297      });
8298      const setPositionReference = React44.useCallback((node) => {
8299        const computedPositionReference = isElement(node) ? {
8300          getBoundingClientRect: () => node.getBoundingClientRect(),
8301          getClientRects: () => node.getClientRects(),
8302          contextElement: node
8303        } : node;
8304        setPositionReferenceRaw(computedPositionReference);
8305        position.refs.setReference(computedPositionReference);
8306      }, [position.refs]);
8307      const refs = React44.useMemo(() => ({
8308        ...position.refs,
8309        setPositionReference,
8310        domReference: domReferenceRef
8311      }), [position.refs, setPositionReference]);
8312      const elements = React44.useMemo(() => ({
8313        ...position.elements,
8314        domReference: domReferenceElement
8315      }), [position.elements, domReferenceElement]);
8316      const context = React44.useMemo(() => ({
8317        ...position,
8318        dataRef: store.context.dataRef,
8319        open: open2,
8320        onOpenChange: store.setOpen,
8321        events: store.context.events,
8322        floatingId,
8323        refs,
8324        elements,
8325        nodeId,
8326        rootStore: store
8327      }), [position, refs, elements, nodeId, store, open2, floatingId]);
8328      useIsoLayoutEffect(() => {
8329        if (domReferenceElement) {
8330          domReferenceRef.current = domReferenceElement;
8331        }
8332      }, [domReferenceElement]);
8333      useIsoLayoutEffect(() => {
8334        store.context.dataRef.current.floatingContext = context;
8335        const node = tree?.nodesRef.current.find((n) => n.id === nodeId);
8336        if (node) {
8337          node.context = context;
8338        }
8339      });
8340      return React44.useMemo(() => ({
8341        ...position,
8342        context,
8343        refs,
8344        elements,
8345        rootStore: store
8346      }), [position, refs, elements, context, store]);
8347    }
8348  
8349    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/floating-ui-react/middleware/arrow.mjs
8350    var baseArrow = (options) => ({
8351      name: "arrow",
8352      options,
8353      async fn(state) {
8354        const {
8355          x,
8356          y,
8357          placement,
8358          rects,
8359          platform: platform3,
8360          elements,
8361          middlewareData
8362        } = state;
8363        const {
8364          element,
8365          padding = 0
8366        } = evaluate(options, state) || {};
8367        if (element == null) {
8368          return {};
8369        }
8370        const paddingObject = getPaddingObject(padding);
8371        const coords = {
8372          x,
8373          y
8374        };
8375        const axis = getAlignmentAxis(placement);
8376        const length = getAxisLength(axis);
8377        const arrowDimensions = await platform3.getDimensions(element);
8378        const isYAxis = axis === "y";
8379        const minProp = isYAxis ? "top" : "left";
8380        const maxProp = isYAxis ? "bottom" : "right";
8381        const clientProp = isYAxis ? "clientHeight" : "clientWidth";
8382        const endDiff = rects.reference[length] + rects.reference[axis] - coords[axis] - rects.floating[length];
8383        const startDiff = coords[axis] - rects.reference[axis];
8384        const clientSize = elements.floating[clientProp] || rects.floating[length];
8385        const centerToReference = endDiff / 2 - startDiff / 2;
8386        const largestPossiblePadding = clientSize / 2 - arrowDimensions[length] / 2 - 1;
8387        const minPadding = Math.min(paddingObject[minProp], largestPossiblePadding);
8388        const maxPadding = Math.min(paddingObject[maxProp], largestPossiblePadding);
8389        const min2 = minPadding;
8390        const max2 = clientSize - arrowDimensions[length] - maxPadding;
8391        const center = clientSize / 2 - arrowDimensions[length] / 2 + centerToReference;
8392        const offset4 = clamp(min2, center, max2);
8393        const shouldAddOffset = !middlewareData.arrow && getAlignment(placement) != null && center !== offset4 && rects.reference[length] / 2 - (center < min2 ? minPadding : maxPadding) - arrowDimensions[length] / 2 < 0;
8394        const alignmentOffset = shouldAddOffset ? center < min2 ? center - min2 : center - max2 : 0;
8395        return {
8396          [axis]: coords[axis] + alignmentOffset,
8397          data: {
8398            [axis]: offset4,
8399            centerOffset: center - offset4 - alignmentOffset,
8400            ...shouldAddOffset && {
8401              alignmentOffset
8402            }
8403          },
8404          reset: shouldAddOffset
8405        };
8406      }
8407    });
8408    var arrow4 = (options, deps) => {
8409      const {
8410        name: name16,
8411        fn
8412      } = baseArrow(options);
8413      return {
8414        name: name16,
8415        fn,
8416        options: [options, deps]
8417      };
8418    };
8419  
8420    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/hideMiddleware.mjs
8421    var hide4 = {
8422      name: "hide",
8423      async fn(state) {
8424        const {
8425          width,
8426          height,
8427          x,
8428          y
8429        } = state.rects.reference;
8430        const anchorHidden2 = width === 0 && height === 0 && x === 0 && y === 0;
8431        const overflow = await state.platform.detectOverflow(state, {
8432          elementContext: "reference"
8433        });
8434        const referenceHidden = overflow.top - height >= 0 || overflow.right - width >= 0 || overflow.bottom - height >= 0 || overflow.left - width >= 0;
8435        return {
8436          data: {
8437            referenceHidden: referenceHidden || anchorHidden2
8438          }
8439        };
8440      }
8441    };
8442  
8443    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/adaptiveOriginConstants.mjs
8444    var DEFAULT_SIDES = {
8445      sideX: "left",
8446      sideY: "top"
8447    };
8448  
8449    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/CommonPositionerCssVars.mjs
8450    var availableWidth = "--available-width";
8451    var availableHeight = "--available-height";
8452    var anchorWidth = "--anchor-width";
8453    var anchorHeight = "--anchor-height";
8454    var transformOrigin = "--transform-origin";
8455  
8456    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/useAnchorPositioning.mjs
8457    var AVAILABLE_WIDTH_VAR = availableWidth;
8458    var AVAILABLE_HEIGHT_VAR = availableHeight;
8459    function getLogicalSide(sideParam, renderedSide, isRtl) {
8460      const isLogicalSideParam = sideParam === "inline-start" || sideParam === "inline-end";
8461      const logicalRight = isRtl ? "inline-start" : "inline-end";
8462      const logicalLeft = isRtl ? "inline-end" : "inline-start";
8463      return {
8464        top: "top",
8465        right: isLogicalSideParam ? logicalRight : "right",
8466        bottom: "bottom",
8467        left: isLogicalSideParam ? logicalLeft : "left"
8468      }[renderedSide];
8469    }
8470    function getOffsetData(state, sideParam, isRtl) {
8471      const {
8472        rects,
8473        placement
8474      } = state;
8475      const data = {
8476        side: getLogicalSide(sideParam, getSide(placement), isRtl),
8477        align: getAlignment(placement) || "center",
8478        anchor: {
8479          width: rects.reference.width,
8480          height: rects.reference.height
8481        },
8482        positioner: {
8483          width: rects.floating.width,
8484          height: rects.floating.height
8485        }
8486      };
8487      return data;
8488    }
8489    function useAnchorPositioning(params) {
8490      return useAnchorPositioningWithHook(params, useBaseUIFloating);
8491    }
8492    function useAnchorPositioningWithHook(params, useFloatingHook) {
8493      const {
8494        // Public parameters
8495        anchor,
8496        positionMethod = "absolute",
8497        side: sideParam = "bottom",
8498        sideOffset = 0,
8499        align = "center",
8500        alignOffset = 0,
8501        collisionBoundary,
8502        collisionPadding: collisionPaddingParam = 5,
8503        sticky = false,
8504        arrowPadding = 5,
8505        disableAnchorTracking = false,
8506        inline: inlineMiddleware,
8507        // Private parameters
8508        keepMounted = false,
8509        floatingRootContext,
8510        mounted,
8511        collisionAvoidance,
8512        shift: shift4,
8513        nodeId,
8514        adaptiveOrigin,
8515        lazyFlip = false,
8516        externalTree
8517      } = params;
8518      const collisionAvoidanceSide = collisionAvoidance.side || "flip";
8519      const collisionAvoidanceAlign = collisionAvoidance.align || "flip";
8520      const collisionAvoidanceFallbackAxisSide = collisionAvoidance.fallbackAxisSide || "end";
8521      const shiftCrossAxis = shift4?.crossAxis ?? false;
8522      const shiftRootBoundary = shift4?.rootBoundary;
8523      const anchorFn = typeof anchor === "function" ? anchor : void 0;
8524      const anchorFnCallback = useStableCallback(anchorFn);
8525      const anchorDep = anchorFn ? anchorFnCallback : anchor;
8526      const anchorValueRef = useValueAsRef(anchor);
8527      const mountedRef = useValueAsRef(mounted);
8528      const direction = useDirection();
8529      const isRtl = direction === "rtl";
8530      const [mountPlacement, setMountPlacement] = React45.useState(null);
8531      if (!mounted && mountPlacement !== null) {
8532        setMountPlacement(null);
8533      }
8534      const lockAlign = lazyFlip === "placement";
8535      const mountSide = mountPlacement ? getSide(mountPlacement) : null;
8536      const mountAlign = mountPlacement && lockAlign ? getAlignment(mountPlacement) || "center" : null;
8537      const side = mountSide || {
8538        top: "top",
8539        right: "right",
8540        bottom: "bottom",
8541        left: "left",
8542        "inline-end": isRtl ? "left" : "right",
8543        "inline-start": isRtl ? "right" : "left"
8544      }[sideParam];
8545      const placementAlign = mountAlign || align;
8546      const placement = placementAlign === "center" ? side : `$side}-$placementAlign}`;
8547      let collisionPadding = collisionPaddingParam;
8548      if (typeof collisionPadding === "number") {
8549        collisionPadding = {
8550          top: collisionPadding,
8551          right: collisionPadding,
8552          bottom: collisionPadding,
8553          left: collisionPadding
8554        };
8555      } else if (collisionPadding) {
8556        collisionPadding = {
8557          top: collisionPadding.top || 0,
8558          right: collisionPadding.right || 0,
8559          bottom: collisionPadding.bottom || 0,
8560          left: collisionPadding.left || 0
8561        };
8562      }
8563      const bias = 1;
8564      const biasTop = sideParam === "bottom" ? bias : 0;
8565      const biasBottom = sideParam === "top" ? bias : 0;
8566      const biasLeft = sideParam === "right" ? bias : 0;
8567      const biasRight = sideParam === "left" ? bias : 0;
8568      const commonCollisionProps = {
8569        boundary: collisionBoundary === "clipping-ancestors" ? "clippingAncestors" : collisionBoundary,
8570        padding: collisionPadding
8571      };
8572      const arrowRef = React45.useRef(null);
8573      const sideOffsetRef = useValueAsRef(sideOffset);
8574      const alignOffsetRef = useValueAsRef(alignOffset);
8575      const sideOffsetDep = typeof sideOffset !== "function" ? sideOffset : 0;
8576      const alignOffsetDep = typeof alignOffset !== "function" ? alignOffset : 0;
8577      const middleware = [];
8578      if (inlineMiddleware) {
8579        middleware.push(inlineMiddleware);
8580      }
8581      middleware.push(offset3((state) => {
8582        const data = getOffsetData(state, sideParam, isRtl);
8583        const sideAxis = typeof sideOffsetRef.current === "function" ? sideOffsetRef.current(data) : sideOffsetRef.current;
8584        const alignAxis = typeof alignOffsetRef.current === "function" ? alignOffsetRef.current(data) : alignOffsetRef.current;
8585        return {
8586          mainAxis: sideAxis,
8587          crossAxis: alignAxis,
8588          alignmentAxis: alignAxis
8589        };
8590      }, [sideOffsetDep, alignOffsetDep, isRtl, sideParam]));
8591      const shiftDisabled = collisionAvoidanceAlign === "none" && collisionAvoidanceSide !== "shift";
8592      const crossAxisShiftEnabled = !shiftDisabled && (sticky || shiftCrossAxis || collisionAvoidanceSide === "shift");
8593      const flipMiddleware = collisionAvoidanceSide === "none" ? null : flip3({
8594        ...commonCollisionProps,
8595        // Ensure the popup flips if it's been limited by its --available-height and it resizes.
8596        // Since the size() padding is smaller than the flip() padding, flip() will take precedence.
8597        padding: {
8598          top: collisionPadding.top + bias + biasTop,
8599          right: collisionPadding.right + bias + biasRight,
8600          bottom: collisionPadding.bottom + bias + biasBottom,
8601          left: collisionPadding.left + bias + biasLeft
8602        },
8603        mainAxis: !shiftCrossAxis && collisionAvoidanceSide === "flip",
8604        crossAxis: collisionAvoidanceAlign === "flip" ? "alignment" : false,
8605        fallbackAxisSideDirection: collisionAvoidanceFallbackAxisSide
8606      });
8607      const shiftMiddleware = shiftDisabled ? null : shift3({
8608        ...commonCollisionProps,
8609        // Use the Layout Viewport to avoid shifting around when pinch-zooming.
8610        rootBoundary: shiftRootBoundary,
8611        mainAxis: collisionAvoidanceAlign !== "none",
8612        crossAxis: crossAxisShiftEnabled,
8613        limiter: sticky || shiftCrossAxis ? void 0 : limitShift3((limitData) => {
8614          if (!arrowRef.current) {
8615            return {};
8616          }
8617          const {
8618            width,
8619            height
8620          } = arrowRef.current.getBoundingClientRect();
8621          const sideAxis = getSideAxis(getSide(limitData.placement));
8622          const arrowSize = sideAxis === "y" ? width : height;
8623          const offsetAmount = sideAxis === "y" ? collisionPadding.left + collisionPadding.right : collisionPadding.top + collisionPadding.bottom;
8624          return {
8625            offset: arrowSize / 2 + offsetAmount / 2
8626          };
8627        })
8628      }, [commonCollisionProps, sticky, shiftCrossAxis, shiftRootBoundary, collisionPadding, collisionAvoidanceAlign]);
8629      if (collisionAvoidanceSide === "shift" || collisionAvoidanceAlign === "shift" || placementAlign === "center") {
8630        middleware.push(shiftMiddleware, flipMiddleware);
8631      } else {
8632        middleware.push(flipMiddleware, shiftMiddleware);
8633      }
8634      middleware.push(size3({
8635        ...commonCollisionProps,
8636        apply({
8637          elements: {
8638            floating
8639          },
8640          availableWidth: availableWidth2,
8641          availableHeight: availableHeight2,
8642          rects
8643        }) {
8644          if (!mountedRef.current) {
8645            return;
8646          }
8647          const floatingStyle = floating.style;
8648          floatingStyle.setProperty(AVAILABLE_WIDTH_VAR, `$availableWidth2}px`);
8649          floatingStyle.setProperty(AVAILABLE_HEIGHT_VAR, `$availableHeight2}px`);
8650          const dpr = getWindow(floating).devicePixelRatio || 1;
8651          const {
8652            x: x2,
8653            y: y2,
8654            width,
8655            height
8656          } = rects.reference;
8657          const anchorWidth2 = (Math.round((x2 + width) * dpr) - Math.round(x2 * dpr)) / dpr;
8658          const anchorHeight2 = (Math.round((y2 + height) * dpr) - Math.round(y2 * dpr)) / dpr;
8659          floatingStyle.setProperty(anchorWidth, `$anchorWidth2}px`);
8660          floatingStyle.setProperty(anchorHeight, `$anchorHeight2}px`);
8661        }
8662      }), arrow4((state) => ({
8663        // `transform-origin` calculations rely on an element existing. If the arrow hasn't been set,
8664        // we'll create a fake element.
8665        element: arrowRef.current || ownerDocument(state.elements.floating).createElement("div"),
8666        // No padding for the fake arrow: it would displace aligned popups on narrow anchors.
8667        padding: arrowRef.current ? arrowPadding : 0
8668      }), [arrowPadding]), {
8669        name: "transformOrigin",
8670        fn(state) {
8671          const {
8672            elements: {
8673              floating
8674            },
8675            middlewareData: middlewareData2,
8676            placement: renderedPlacement2,
8677            platform: platform3,
8678            rects,
8679            y: y2
8680          } = state;
8681          const renderedSide2 = getSide(renderedPlacement2);
8682          const renderedAlign2 = getAlignment(renderedPlacement2);
8683          const isVertical = getSideAxis(renderedSide2) === "y";
8684          const arrowEl = arrowRef.current;
8685          const sideOffsetValue = typeof sideOffset === "function" ? sideOffset(getOffsetData(state, sideParam, isRtl)) : sideOffset;
8686          let crossOrigin;
8687          if (!arrowEl && renderedAlign2 && Math.abs(isVertical ? middlewareData2.shift?.x || 0 : middlewareData2.shift?.y || 0) <= 1) {
8688            crossOrigin = renderedAlign2 === "start" === (isVertical && platform3.isRTL?.(floating) === true) ? "100%" : "0%";
8689          } else {
8690            const arrowOffset = isVertical ? middlewareData2.arrow?.x || 0 : middlewareData2.arrow?.y || 0;
8691            const arrowSize = isVertical ? arrowEl?.clientWidth || 0 : arrowEl?.clientHeight || 0;
8692            crossOrigin = `$arrowOffset + arrowSize / 2}px`;
8693          }
8694          let sideOrigin = renderedSide2 === "top" || renderedSide2 === "left" ? `calc(100% + $sideOffsetValue}px)` : `${-sideOffsetValue}px`;
8695          if (crossAxisShiftEnabled && isVertical && Math.abs(middlewareData2.shift?.y || 0) > sideOffsetValue) {
8696            sideOrigin = `$rects.reference.y + rects.reference.height / 2 - y2}px`;
8697          }
8698          floating.style.setProperty(transformOrigin, isVertical ? `$crossOrigin} $sideOrigin}` : `$sideOrigin} $crossOrigin}`);
8699          return {};
8700        }
8701      }, hide4, adaptiveOrigin);
8702      useIsoLayoutEffect(() => {
8703        if (!mounted && floatingRootContext) {
8704          floatingRootContext.update({
8705            referenceElement: null,
8706            floatingElement: null,
8707            domReferenceElement: null,
8708            positionReference: null
8709          });
8710        }
8711      }, [mounted, floatingRootContext]);
8712      const autoUpdateOptions = React45.useMemo(() => ({
8713        ancestorScroll: !disableAnchorTracking,
8714        elementResize: !disableAnchorTracking && typeof ResizeObserver !== "undefined",
8715        layoutShift: !disableAnchorTracking && typeof IntersectionObserver !== "undefined"
8716      }), [disableAnchorTracking]);
8717      const {
8718        refs,
8719        elements,
8720        x,
8721        y,
8722        middlewareData,
8723        update: update2,
8724        placement: renderedPlacement,
8725        context,
8726        isPositioned,
8727        floatingStyles: originalFloatingStyles
8728      } = useFloatingHook({
8729        rootContext: floatingRootContext,
8730        open: keepMounted ? mounted : void 0,
8731        placement,
8732        middleware,
8733        strategy: positionMethod,
8734        whileElementsMounted: keepMounted ? void 0 : (...args) => autoUpdate(...args, autoUpdateOptions),
8735        nodeId,
8736        externalTree
8737      });
8738      const {
8739        sideX,
8740        sideY
8741      } = middlewareData.adaptiveOrigin || DEFAULT_SIDES;
8742      const resolvedPosition = isPositioned ? positionMethod : "fixed";
8743      const floatingStyles = React45.useMemo(() => {
8744        let base;
8745        if (!isPositioned) {
8746          base = {
8747            position: resolvedPosition,
8748            top: 0,
8749            left: 0
8750          };
8751        } else if (adaptiveOrigin) {
8752          base = {
8753            position: resolvedPosition,
8754            [sideX]: x,
8755            [sideY]: y
8756          };
8757        } else {
8758          base = {
8759            ...originalFloatingStyles,
8760            position: resolvedPosition
8761          };
8762        }
8763        base[AVAILABLE_WIDTH_VAR] = "100vw";
8764        base[AVAILABLE_HEIGHT_VAR] = "100vh";
8765        if (!isPositioned) {
8766          base.opacity = 0;
8767        }
8768        return base;
8769      }, [adaptiveOrigin, resolvedPosition, sideX, x, sideY, y, originalFloatingStyles, isPositioned]);
8770      const registeredPositionReferenceRef = React45.useRef(null);
8771      useIsoLayoutEffect(() => {
8772        if (!mounted) {
8773          return;
8774        }
8775        const anchorValue = anchorValueRef.current;
8776        const resolvedAnchor = typeof anchorValue === "function" ? anchorValue() : anchorValue;
8777        const unwrappedElement = (isRef(resolvedAnchor) ? resolvedAnchor.current : resolvedAnchor) || null;
8778        const finalAnchor = unwrappedElement || null;
8779        if (finalAnchor !== registeredPositionReferenceRef.current) {
8780          refs.setPositionReference(finalAnchor);
8781          registeredPositionReferenceRef.current = finalAnchor;
8782        }
8783      }, [mounted, refs, anchorDep, anchorValueRef]);
8784      React45.useEffect(() => {
8785        if (!mounted) {
8786          return;
8787        }
8788        const anchorValue = anchorValueRef.current;
8789        if (typeof anchorValue === "function") {
8790          return;
8791        }
8792        if (isRef(anchorValue) && anchorValue.current !== registeredPositionReferenceRef.current) {
8793          refs.setPositionReference(anchorValue.current);
8794          registeredPositionReferenceRef.current = anchorValue.current;
8795        }
8796      }, [mounted, refs, anchorDep, anchorValueRef]);
8797      React45.useEffect(() => {
8798        if (keepMounted && mounted && elements.reference && elements.floating) {
8799          return autoUpdate(elements.reference, elements.floating, update2, autoUpdateOptions);
8800        }
8801        return void 0;
8802      }, [keepMounted, mounted, elements, update2, autoUpdateOptions]);
8803      const renderedSide = getSide(renderedPlacement);
8804      const logicalRenderedSide = getLogicalSide(sideParam, renderedSide, isRtl);
8805      const renderedAlign = getAlignment(renderedPlacement) || "center";
8806      const anchorHidden2 = Boolean(middlewareData.hide?.referenceHidden);
8807      useIsoLayoutEffect(() => {
8808        if (lazyFlip && mounted && isPositioned && (renderedSide !== side || lockAlign && renderedAlign !== placementAlign)) {
8809          setMountPlacement(renderedPlacement);
8810        }
8811      }, [lazyFlip, lockAlign, mounted, isPositioned, renderedPlacement, renderedSide, renderedAlign, side, placementAlign]);
8812      const arrowStyles = React45.useMemo(() => ({
8813        position: "absolute",
8814        top: middlewareData.arrow?.y,
8815        left: middlewareData.arrow?.x
8816      }), [middlewareData.arrow]);
8817      const arrowUncentered = middlewareData.arrow?.centerOffset !== 0;
8818      return React45.useMemo(() => ({
8819        positionerStyles: floatingStyles,
8820        arrowStyles,
8821        arrowRef,
8822        arrowUncentered,
8823        side: logicalRenderedSide,
8824        align: renderedAlign,
8825        physicalSide: renderedSide,
8826        anchorHidden: anchorHidden2,
8827        refs,
8828        context,
8829        isPositioned,
8830        update: update2
8831      }), [floatingStyles, arrowStyles, arrowRef, arrowUncentered, logicalRenderedSide, renderedAlign, renderedSide, anchorHidden2, refs, context, isPositioned, update2]);
8832    }
8833    function isRef(param) {
8834      return param != null && "current" in param;
8835    }
8836  
8837    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/getDisabledMountTransitionStyles.mjs
8838    function getDisabledMountTransitionStyles(transitionStatus) {
8839      return transitionStatus === "starting" ? DISABLED_TRANSITIONS_STYLE : EMPTY_OBJECT;
8840    }
8841  
8842    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/usePositioner.mjs
8843    function usePositioner(componentProps, state, {
8844      styles,
8845      transitionStatus,
8846      props,
8847      refs,
8848      hidden,
8849      inert = false
8850    }) {
8851      const style = {
8852        ...styles
8853      };
8854      if (inert) {
8855        style.pointerEvents = "none";
8856      }
8857      return useRenderElement("div", componentProps, {
8858        state,
8859        ref: refs,
8860        props: [{
8861          role: "presentation",
8862          hidden,
8863          style
8864        }, getDisabledMountTransitionStyles(transitionStatus), props],
8865        stateAttributesMapping: popupStateMapping
8866      });
8867    }
8868  
8869    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/useAnchoredPopupScrollLock.mjs
8870    var React46 = __toESM(require_react(), 1);
8871    var VIEWPORT_WIDTH_TOLERANCE_PX = 20;
8872    function useAnchoredPopupScrollLock(enabled, touchOpen, positionerElement, referenceElement) {
8873      const [touchOpenShouldLockScroll, setTouchOpenShouldLockScroll] = React46.useState(false);
8874      useIsoLayoutEffect(() => {
8875        if (!enabled || !touchOpen || positionerElement == null) {
8876          setTouchOpenShouldLockScroll(false);
8877          return;
8878        }
8879        const viewportWidth = ownerDocument(positionerElement).documentElement.clientWidth;
8880        const popupWidth = positionerElement.offsetWidth;
8881        setTouchOpenShouldLockScroll(viewportWidth > 0 && popupWidth > 0 && popupWidth >= viewportWidth - VIEWPORT_WIDTH_TOLERANCE_PX);
8882      }, [enabled, touchOpen, positionerElement]);
8883      useScrollLock(enabled && (!touchOpen || touchOpenShouldLockScroll), referenceElement);
8884    }
8885  
8886    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/listbox-separator/ListboxSeparator.mjs
8887    var React47 = __toESM(require_react(), 1);
8888    var ListboxSeparator = /* @__PURE__ */ React47.forwardRef(function ListboxSeparator2(componentProps, forwardedRef) {
8889      const {
8890        className,
8891        render,
8892        orientation = "horizontal",
8893        style,
8894        ...elementProps
8895      } = componentProps;
8896      const state = {
8897        orientation
8898      };
8899      return useRenderElement("div", componentProps, {
8900        state,
8901        ref: forwardedRef,
8902        props: [{
8903          role: "presentation"
8904        }, elementProps]
8905      });
8906    });
8907    if (true) ListboxSeparator.displayName = "ListboxSeparator";
8908  
8909    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/item/FieldItemContext.mjs
8910    var React48 = __toESM(require_react(), 1);
8911    var FieldItemContext = /* @__PURE__ */ React48.createContext({
8912      disabled: false
8913    });
8914    if (true) FieldItemContext.displayName = "FieldItemContext";
8915    function useFieldItemContext() {
8916      const context = React48.useContext(FieldItemContext);
8917      return context;
8918    }
8919  
8920    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/root/useFieldValidation.mjs
8921    var React49 = __toESM(require_react(), 1);
8922  
8923    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/utils/getCombinedFieldValidityData.mjs
8924    function getCombinedFieldValidityData(validityData, invalid2) {
8925      return {
8926        ...validityData,
8927        state: {
8928          ...validityData.state,
8929          valid: !invalid2 && validityData.state.valid
8930        }
8931      };
8932    }
8933  
8934    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/root/useFieldValidation.mjs
8935    var validityKeys = Object.keys(DEFAULT_VALIDITY_STATE);
8936    function isEligibleInput(input, formElement) {
8937      if (input.matches(":disabled")) {
8938        return false;
8939      }
8940      if (!formElement || input.form === formElement) {
8941        return true;
8942      }
8943      return input.form === null && !input.hasAttribute("form");
8944    }
8945    function findRepresentativeInput(inputs, formElement) {
8946      let fallback = null;
8947      for (const input of inputs.keys()) {
8948        if (!isEligibleInput(input, formElement)) {
8949          continue;
8950        }
8951        if (!input.validity.valid) {
8952          return input;
8953        }
8954        fallback ??= input;
8955      }
8956      return fallback;
8957    }
8958    function makeState(customError) {
8959      return {
8960        ...DEFAULT_VALIDITY_STATE,
8961        valid: !customError,
8962        customError
8963      };
8964    }
8965    function getNativeErrors(element) {
8966      return element && element.validationMessage ? [element.validationMessage] : [];
8967    }
8968    function useFieldValidation(params) {
8969      const {
8970        elementRef,
8971        formRef
8972      } = useFormContext();
8973      const {
8974        setValidityData,
8975        validate,
8976        validityData,
8977        validationDebounceTime,
8978        invalid: invalid2,
8979        markedDirtyRef,
8980        state,
8981        shouldValidateOnChange,
8982        validationMode,
8983        registeredFieldIdRef
8984      } = params;
8985      const {
8986        controlId,
8987        getDescriptionProps
8988      } = useLabelableContext();
8989      const timeout = useTimeout();
8990      const inputRef = React49.useRef(null);
8991      const registeredInputs = useRefWithInit(() => /* @__PURE__ */ new Map()).current;
8992      const validationCommitIdRef = React49.useRef(0);
8993      const customValidityRef = React49.useRef(null);
8994      const registerInput = React49.useCallback((element, registration) => {
8995        registeredInputs.set(element, registration);
8996        return () => {
8997          registeredInputs.delete(element);
8998        };
8999      }, [registeredInputs]);
9000      const getInputControl = useStableCallback(() => {
9001        const element = findRepresentativeInput(registeredInputs, elementRef.current);
9002        return element && registeredInputs.get(element)?.controlRef.current || null;
9003      });
9004      const commit = useStableCallback(async (value, revalidate = false) => {
9005        validationCommitIdRef.current += 1;
9006        const validationCommitId = validationCommitIdRef.current;
9007        function updateRegisteredFieldValidity(nextValidityData, externalInvalid = invalid2) {
9008          const fieldId = registeredFieldIdRef.current ?? controlId;
9009          if (fieldId == null) {
9010            return;
9011          }
9012          const currentFieldData = formRef.current.fields.get(fieldId);
9013          if (!currentFieldData) {
9014            return;
9015          }
9016          const validityDataWithFormErrors = getCombinedFieldValidityData(nextValidityData, externalInvalid);
9017          formRef.current.fields.set(fieldId, {
9018            ...currentFieldData,
9019            validityData: validityDataWithFormErrors
9020          });
9021        }
9022        function makeValidityData(validityState, errorMessages) {
9023          const errors = validityState.valid === false ? errorMessages : [];
9024          return {
9025            value,
9026            state: validityState,
9027            error: errors[0] ?? "",
9028            errors,
9029            initialValue: validityData.initialValue
9030          };
9031        }
9032        function setCustomValidity(element2, message) {
9033          const displaced = element2.validity.customError ? element2.validationMessage : "";
9034          const ownedMessage = message.replace(/\r\n?/g, "\n");
9035          element2.setCustomValidity(ownedMessage);
9036          customValidityRef.current = [element2, ownedMessage, displaced];
9037        }
9038        function clearCustomValidity() {
9039          const record = customValidityRef.current;
9040          customValidityRef.current = null;
9041          if (record && (!record[0].willValidate || record[0].validationMessage === record[1])) {
9042            record[0].setCustomValidity(record[2]);
9043          }
9044        }
9045        function publish(validityState, errorMessages, externalInvalid) {
9046          const nextValidityData = makeValidityData(validityState, errorMessages);
9047          updateRegisteredFieldValidity(nextValidityData, externalInvalid);
9048          setValidityData(nextValidityData);
9049        }
9050        function getState(el) {
9051          const computedState = validityKeys.reduce((acc, key) => {
9052            acc[key] = el.validity[key];
9053            return acc;
9054          }, {});
9055          let hasOnlyValueMissingError = false;
9056          for (const key of validityKeys) {
9057            if (key === "valid") {
9058              continue;
9059            }
9060            if (key === "valueMissing" && computedState[key]) {
9061              hasOnlyValueMissingError = true;
9062            } else if (computedState[key]) {
9063              return computedState;
9064            }
9065          }
9066          if (hasOnlyValueMissingError && !markedDirtyRef.current) {
9067            computedState.valid = true;
9068            computedState.valueMissing = false;
9069          }
9070          return computedState;
9071        }
9072        function resolveRepresentativeInput() {
9073          return registeredInputs.size > 0 ? findRepresentativeInput(registeredInputs, elementRef.current) : inputRef.current;
9074        }
9075        let element = resolveRepresentativeInput();
9076        function refreshState() {
9077          element = resolveRepresentativeInput();
9078          return element?.willValidate ? getState(element) : makeState(false);
9079        }
9080        if (revalidate) {
9081          if (state.valid !== false || !element) {
9082            return;
9083          }
9084          if (!element.validity.valueMissing) {
9085            clearCustomValidity();
9086            const currentElement = resolveRepresentativeInput();
9087            const foreign = currentElement?.validity.customError ? getNativeErrors(currentElement) : [];
9088            publish(makeState(foreign.length > 0), foreign, false);
9089            return;
9090          }
9091          for (const key of validityKeys) {
9092            if (key !== "valid" && key !== "valueMissing" && key !== "customError" && element.validity[key]) {
9093              return;
9094            }
9095          }
9096        }
9097        timeout.clear();
9098        clearCustomValidity();
9099        let nextState = refreshState();
9100        let validationErrors = getNativeErrors(element);
9101        const isValidatingOnChange = shouldValidateOnChange();
9102        if (validationErrors.length === 0 || isValidatingOnChange) {
9103          const formValues = Array.from(formRef.current.fields.values()).reduce((acc, field) => {
9104            if (field.name) {
9105              acc[field.name] = field.getValue();
9106            }
9107            return acc;
9108          }, {});
9109          const resultOrPromise = validate(value, formValues);
9110          let result;
9111          if (typeof resultOrPromise === "object" && resultOrPromise !== null && "then" in resultOrPromise) {
9112            if (nextState.valid === false) {
9113              publish(nextState, validationErrors);
9114            } else if (validationMode === "onSubmit" || !validityData.state.customError) {
9115              nextState.valid = null;
9116              publish(nextState, validationErrors);
9117            }
9118            result = await resultOrPromise;
9119            if (validationCommitId !== validationCommitIdRef.current) {
9120              return;
9121            }
9122            nextState = refreshState();
9123          } else {
9124            result = resultOrPromise;
9125          }
9126          validationErrors = result ? [].concat(result).filter(Boolean) : [];
9127          if (validationErrors.length > 0) {
9128            nextState.valid = false;
9129            nextState.customError = true;
9130            if (element?.willValidate) {
9131              setCustomValidity(element, validationErrors.join("\n"));
9132            }
9133          } else {
9134            validationErrors = getNativeErrors(element);
9135          }
9136        }
9137        publish(nextState, validationErrors);
9138      });
9139      const change = useStableCallback((value, cancelPending = false) => {
9140        timeout.clear();
9141        validationCommitIdRef.current += 1;
9142        if (cancelPending) {
9143          return;
9144        }
9145        const validateOnChange = shouldValidateOnChange();
9146        if (validateOnChange && value !== "" && validationDebounceTime) {
9147          timeout.start(validationDebounceTime, () => {
9148            commit(value);
9149          });
9150        } else {
9151          commit(value, !validateOnChange);
9152        }
9153      });
9154      const getValidationProps = React49.useCallback((disabled2, externalProps = {}) => mergeProps(getDescriptionProps(externalProps), state.valid === false && !state.disabled && !disabled2 ? {
9155        "aria-invalid": true
9156      } : EMPTY_OBJECT), [getDescriptionProps, state.disabled, state.valid]);
9157      return React49.useMemo(() => ({
9158        getValidationProps,
9159        inputRef,
9160        registeredInputs,
9161        registerInput,
9162        getInputControl,
9163        commit,
9164        change
9165      }), [getValidationProps, registeredInputs, registerInput, getInputControl, commit, change]);
9166    }
9167  
9168    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/useRegisteredLabelId.mjs
9169    function useRegisteredLabelId(idProp, setLabelId) {
9170      const id = useBaseUiId(idProp);
9171      useIsoLayoutEffect(() => {
9172        setLabelId(id);
9173        return () => {
9174          setLabelId((currentId) => currentId === id ? void 0 : currentId);
9175        };
9176      }, [id, setLabelId]);
9177      return id;
9178    }
9179  
9180    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/labelable-provider/useLabel.mjs
9181    function useLabel(params = {}) {
9182      const {
9183        id: idProp,
9184        fallbackControlId,
9185        native = false,
9186        setLabelId: setLabelIdProp,
9187        focusControl: focusControlProp
9188      } = params;
9189      const {
9190        controlId: contextControlId,
9191        setLabelId: setContextLabelId
9192      } = useLabelableContext();
9193      const syncLabelId = useStableCallback((nextLabelId) => {
9194        setContextLabelId(nextLabelId);
9195        setLabelIdProp?.(nextLabelId);
9196      });
9197      const id = useRegisteredLabelId(idProp, syncLabelId);
9198      const resolvedControlId = contextControlId ?? fallbackControlId;
9199      function focusControl(event) {
9200        if (focusControlProp) {
9201          focusControlProp(event, resolvedControlId);
9202          return;
9203        }
9204        if (!resolvedControlId) {
9205          return;
9206        }
9207        const controlElement = getControlById(event.currentTarget, resolvedControlId);
9208        if (isHTMLElement(controlElement)) {
9209          focusElementWithVisible(controlElement);
9210        }
9211      }
9212      function handleInteraction(event) {
9213        const target = getTarget(event.nativeEvent);
9214        if (closest(target, "button,input,select,textarea")) {
9215          return;
9216        }
9217        if (!event.defaultPrevented && event.detail > 1) {
9218          event.preventDefault();
9219        }
9220        if (native) {
9221          return;
9222        }
9223        focusControl(event);
9224      }
9225      return native ? {
9226        id,
9227        htmlFor: resolvedControlId,
9228        onMouseDown: handleInteraction
9229      } : {
9230        id,
9231        onClick: handleInteraction,
9232        onPointerDown(event) {
9233          event.preventDefault();
9234        }
9235      };
9236    }
9237    function getControlById(label, id) {
9238      let root = label.getRootNode();
9239      while (isShadowRoot(root)) {
9240        const element = root.getElementById(id);
9241        if (element) {
9242          return element;
9243        }
9244        root = root.host.getRootNode();
9245      }
9246      return ownerDocument(label).getElementById(id);
9247    }
9248    function focusElementWithVisible(element) {
9249      element.focus({
9250        // Available from Chrome 144+ (January 2026).
9251        // Safari and Firefox already support it.
9252        focusVisible: true
9253      });
9254    }
9255  
9256    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/ItemIndicator.mjs
9257    var React50 = __toESM(require_react(), 1);
9258    var ItemIndicator = /* @__PURE__ */ React50.memo(/* @__PURE__ */ React50.forwardRef(function ItemIndicator2(componentProps, forwardedRef) {
9259      const {
9260        render,
9261        className,
9262        style,
9263        keepMounted,
9264        selected,
9265        ...elementProps
9266      } = componentProps;
9267      const indicatorRef = React50.useRef(null);
9268      const {
9269        transitionStatus,
9270        setMounted
9271      } = useTransitionStatus(selected);
9272      const state = {
9273        selected,
9274        transitionStatus
9275      };
9276      const element = useRenderElement("span", componentProps, {
9277        ref: [forwardedRef, indicatorRef],
9278        state,
9279        props: [{
9280          "aria-hidden": true,
9281          children: "\u2714\uFE0F"
9282        }, elementProps],
9283        stateAttributesMapping: transitionStatusMapping
9284      });
9285      useOpenChangeComplete({
9286        batch: true,
9287        enabled: !selected,
9288        open: selected,
9289        ref: indicatorRef,
9290        onComplete() {
9291          if (!selected) {
9292            setMounted(false);
9293          }
9294        }
9295      });
9296      return element;
9297    }));
9298    if (true) ItemIndicator.displayName = "ItemIndicator";
9299  
9300    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/toolbar/root/ToolbarRootContext.mjs
9301    var React51 = __toESM(require_react(), 1);
9302    var ToolbarRootContext = /* @__PURE__ */ React51.createContext(void 0);
9303    if (true) ToolbarRootContext.displayName = "ToolbarRootContext";
9304    function useToolbarRootContext(optional) {
9305      const context = React51.useContext(ToolbarRootContext);
9306      if (context === void 0 && !optional) {
9307        throw new Error(true ? "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>." : formatErrorMessage_default(69));
9308      }
9309      return context;
9310    }
9311  
9312    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/item/useCompositeItem.mjs
9313    var React52 = __toESM(require_react(), 1);
9314    function useCompositeItem(params = {}) {
9315      const {
9316        highlightItemOnHover,
9317        highlightedIndex,
9318        onHighlightedIndexChange
9319      } = useCompositeRootContext();
9320      const {
9321        ref,
9322        index: index3
9323      } = useCompositeListItem(params);
9324      const isHighlighted = highlightedIndex === index3;
9325      const itemRef = React52.useRef(null);
9326      const mergedRef = useMergedRefs(ref, itemRef);
9327      const compositeProps = {
9328        tabIndex: isHighlighted ? 0 : -1,
9329        onFocus() {
9330          onHighlightedIndexChange(index3);
9331        },
9332        onMouseMove() {
9333          const item = itemRef.current;
9334          if (!highlightItemOnHover || !item) {
9335            return;
9336          }
9337          const disabled2 = item.hasAttribute("disabled") || item.ariaDisabled === "true";
9338          if (!isHighlighted && !disabled2) {
9339            item.focus();
9340          }
9341        }
9342      };
9343      return {
9344        compositeProps,
9345        compositeRef: mergedRef,
9346        index: index3
9347      };
9348    }
9349  
9350    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/usePreviousValue.mjs
9351    var React53 = __toESM(require_react(), 1);
9352    function usePreviousValue(value) {
9353      const [state, setState] = React53.useState({
9354        current: value,
9355        previous: null
9356      });
9357      if (!Object.is(value, state.current)) {
9358        setState({
9359          current: value,
9360          previous: state.current
9361        });
9362      }
9363      return state.previous;
9364    }
9365  
9366    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/getCssDimensions.mjs
9367    function getCssDimensions2(element) {
9368      const css = getComputedStyle2(element);
9369      let width = parseFloat(css.width) || 0;
9370      let height = parseFloat(css.height) || 0;
9371      const hasOffset = isHTMLElement(element);
9372      const offsetWidth = hasOffset ? element.offsetWidth : width;
9373      const offsetHeight = hasOffset ? element.offsetHeight : height;
9374      const shouldFallback = round(width) !== offsetWidth || round(height) !== offsetHeight;
9375      if (shouldFallback) {
9376        width = offsetWidth;
9377        height = offsetHeight;
9378      }
9379      return {
9380        width,
9381        height
9382      };
9383    }
9384  
9385    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/direction-provider/DirectionProvider.mjs
9386    var React54 = __toESM(require_react(), 1);
9387    var import_jsx_runtime29 = __toESM(require_jsx_runtime(), 1);
9388    var DirectionProvider = function DirectionProvider2(props) {
9389      const {
9390        direction = "ltr"
9391      } = props;
9392      const contextValue = React54.useMemo(() => ({
9393        direction
9394      }), [direction]);
9395      return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(DirectionContext.Provider, {
9396        value: contextValue,
9397        children: props.children
9398      });
9399    };
9400    if (true) DirectionProvider.displayName = "DirectionProvider";
9401  
9402    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/isElementDisabled.mjs
9403    function isElementDisabled(element) {
9404      return element == null || element.hasAttribute("disabled") || element.getAttribute("aria-disabled") === "true";
9405    }
9406  
9407    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/csp-context/CSPContext.mjs
9408    var React55 = __toESM(require_react(), 1);
9409    var CSPContext = /* @__PURE__ */ React55.createContext(void 0);
9410    if (true) CSPContext.displayName = "CSPContext";
9411    var DEFAULT_CSP_CONTEXT_VALUE = {
9412      disableStyleElements: false
9413    };
9414    function useCSPContext() {
9415      return React55.useContext(CSPContext) ?? DEFAULT_CSP_CONTEXT_VALUE;
9416    }
9417  
9418    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/clamp.mjs
9419    function clamp2(val, min2 = Number.MIN_SAFE_INTEGER, max2 = Number.MAX_SAFE_INTEGER) {
9420      return Math.max(min2, Math.min(val, max2));
9421    }
9422  
9423    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/getElementTransform.mjs
9424    function getElementTransform(element, computedStyle) {
9425      const transform = (computedStyle ?? getWindow(element).getComputedStyle(element)).transform;
9426      let translateX = 0;
9427      let translateY = 0;
9428      let scale = 1;
9429      if (transform && transform !== "none") {
9430        const matrix = transform.match(/matrix(?:3d)?\(([^)]+)\)/);
9431        if (matrix) {
9432          const values = matrix[1].split(", ").map(parseFloat);
9433          if (values.length === 6) {
9434            translateX = values[4];
9435            translateY = values[5];
9436            scale = Math.sqrt(values[0] * values[0] + values[1] * values[1]);
9437          } else if (values.length === 16) {
9438            translateX = values[12];
9439            translateY = values[13];
9440            scale = values[0];
9441          }
9442        }
9443      }
9444      return {
9445        x: translateX,
9446        y: translateY,
9447        scale
9448      };
9449    }
9450  
9451    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/index.parts.mjs
9452    var index_parts_exports = {};
9453    __export(index_parts_exports, {
9454      Control: () => FieldControl,
9455      Description: () => FieldDescription,
9456      Error: () => FieldError,
9457      Item: () => FieldItem,
9458      Label: () => FieldLabel,
9459      Root: () => FieldRoot,
9460      Validity: () => FieldValidity
9461    });
9462  
9463    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/root/FieldRoot.mjs
9464    var React59 = __toESM(require_react(), 1);
9465  
9466    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/fieldset/root/FieldsetRootContext.mjs
9467    var React56 = __toESM(require_react(), 1);
9468    var FieldsetRootContext = /* @__PURE__ */ React56.createContext(void 0);
9469    if (true) FieldsetRootContext.displayName = "FieldsetRootContext";
9470    function useFieldsetRootContext(optional = false) {
9471      const context = React56.useContext(FieldsetRootContext);
9472      if (!context && !optional) {
9473        throw new Error(true ? "Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>." : formatErrorMessage_default(86));
9474      }
9475      return context;
9476    }
9477  
9478    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/labelable-provider/LabelableProvider.mjs
9479    var React57 = __toESM(require_react(), 1);
9480    var import_jsx_runtime30 = __toESM(require_jsx_runtime(), 1);
9481    var LabelableProvider = function LabelableProvider2(props) {
9482      const defaultId = useBaseUiId();
9483      const [controlIdState, setControlIdState] = React57.useState(defaultId);
9484      const [labelId, setLabelId] = React57.useState();
9485      const [messageIds, setMessageIds] = React57.useState([]);
9486      const controlId = controlIdState === void 0 ? defaultId : controlIdState;
9487      const registrationsRef = useRefWithInit(() => /* @__PURE__ */ new Map());
9488      const {
9489        messageIds: parentMessageIds
9490      } = useLabelableContext();
9491      const registerControlId = useStableCallback((source, nextId) => {
9492        const registrations = registrationsRef.current;
9493        if (nextId === void 0) {
9494          registrations.delete(source);
9495        } else {
9496          registrations.set(source, nextId);
9497        }
9498        setControlIdState((prev) => {
9499          if (registrations.size === 0) {
9500            return prev;
9501          }
9502          let nextControlId;
9503          for (const id of registrations.values()) {
9504            if (id === prev) {
9505              return prev;
9506            }
9507            if (nextControlId === void 0) {
9508              nextControlId = id;
9509            }
9510          }
9511          return nextControlId;
9512        });
9513      });
9514      const resetControlId = useStableCallback(() => {
9515        if (registrationsRef.current.size === 0) {
9516          setControlIdState(defaultId);
9517        }
9518      });
9519      const getDescriptionProps = React57.useCallback((externalProps) => {
9520        const ids = externalProps["aria-describedby"] ? externalProps["aria-describedby"].split(" ") : [];
9521        ids.push(...parentMessageIds, ...messageIds);
9522        return {
9523          ...externalProps,
9524          "aria-describedby": Array.from(new Set(ids)).join(" ") || void 0
9525        };
9526      }, [parentMessageIds, messageIds]);
9527      const contextValue = React57.useMemo(() => ({
9528        controlId,
9529        registerControlId,
9530        resetControlId,
9531        labelId,
9532        setLabelId,
9533        messageIds,
9534        setMessageIds,
9535        getDescriptionProps
9536      }), [controlId, registerControlId, resetControlId, labelId, setLabelId, messageIds, setMessageIds, getDescriptionProps]);
9537      return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(LabelableContext.Provider, {
9538        value: contextValue,
9539        children: props.children
9540      });
9541    };
9542    if (true) LabelableProvider.displayName = "LabelableProvider";
9543  
9544    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/field-register-control/useFieldControlRegistration.mjs
9545    var React58 = __toESM(require_react(), 1);
9546    function useFieldControlRegistration(params) {
9547      const {
9548        change,
9549        commit,
9550        invalid: invalid2,
9551        markedDirtyRef,
9552        name: name16,
9553        setRegisteredFieldName,
9554        registeredFieldIdRef,
9555        setValidityData,
9556        validityData
9557      } = params;
9558      const {
9559        formRef
9560      } = useFormContext();
9561      const activeFieldControlSourceRef = React58.useRef(null);
9562      const registrationRef = React58.useRef(null);
9563      const initialValueCapturedRef = React58.useRef(false);
9564      const getValueForForm = useStableCallback(() => {
9565        const registration = registrationRef.current;
9566        if (!registration) {
9567          return void 0;
9568        }
9569        if (registration.getValue) {
9570          return registration.getValue();
9571        }
9572        return registration.value;
9573      });
9574      function getRegistrationValue(registration) {
9575        return registration.value === void 0 ? getValueForForm() : registration.value;
9576      }
9577      const validate = useStableCallback(() => {
9578        const registration = registrationRef.current;
9579        markedDirtyRef.current = true;
9580        if (!registration) {
9581          commit(validityData.value);
9582          return;
9583        }
9584        commit(getRegistrationValue(registration));
9585      });
9586      function refreshRegistration() {
9587        const registration = registrationRef.current;
9588        if (!registration || !registration.id) {
9589          return;
9590        }
9591        formRef.current.fields.set(registration.id, {
9592          getValue: getValueForForm,
9593          name: name16 ?? registration.name,
9594          controlRef: registration.controlRef,
9595          validityData: getCombinedFieldValidityData(validityData, invalid2),
9596          validate
9597        });
9598      }
9599      function deleteRegistration(id = registrationRef.current?.id) {
9600        if (id) {
9601          formRef.current.fields.delete(id);
9602        }
9603      }
9604      function captureInitialValue(registration) {
9605        if (initialValueCapturedRef.current) {
9606          return;
9607        }
9608        initialValueCapturedRef.current = true;
9609        const initialValue = getRegistrationValue(registration);
9610        setValidityData((prev) => prev.initialValue === initialValue ? prev : {
9611          ...prev,
9612          initialValue
9613        });
9614      }
9615      useIsoLayoutEffect(() => {
9616        const registration = registrationRef.current;
9617        if (!registration || !registration.id) {
9618          return;
9619        }
9620        setRegisteredFieldName(name16 ? void 0 : registration.name);
9621        formRef.current.fields.set(registration.id, {
9622          getValue: getValueForForm,
9623          name: name16 ?? registration.name,
9624          controlRef: registration.controlRef,
9625          validityData: getCombinedFieldValidityData(validityData, invalid2),
9626          validate
9627        });
9628      }, [formRef, getValueForForm, invalid2, name16, setRegisteredFieldName, validate, validityData]);
9629      useIsoLayoutEffect(() => {
9630        const fields = formRef.current.fields;
9631        return () => {
9632          const id = registrationRef.current?.id;
9633          if (id) {
9634            fields.delete(id);
9635          }
9636        };
9637      }, [formRef]);
9638      const register2 = useStableCallback((source, registration) => {
9639        if (!registration) {
9640          if (activeFieldControlSourceRef.current === source) {
9641            activeFieldControlSourceRef.current = null;
9642            change(void 0, true);
9643            deleteRegistration();
9644            registrationRef.current = null;
9645            setRegisteredFieldName(void 0);
9646            registeredFieldIdRef.current = void 0;
9647          }
9648          return;
9649        }
9650        const previousId = registrationRef.current?.id;
9651        const previousSource = activeFieldControlSourceRef.current;
9652        if (previousSource && previousSource !== source) {
9653          change(void 0, true);
9654        }
9655        activeFieldControlSourceRef.current = source;
9656        registrationRef.current = registration;
9657        if (!name16) {
9658          setRegisteredFieldName(registration.name);
9659        }
9660        registeredFieldIdRef.current = registration.id;
9661        if (previousId && previousId !== registration.id) {
9662          deleteRegistration(previousId);
9663        }
9664        captureInitialValue(registration);
9665        refreshRegistration();
9666      });
9667      return [validate, register2];
9668    }
9669  
9670    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/root/FieldRoot.mjs
9671    var import_jsx_runtime31 = __toESM(require_jsx_runtime(), 1);
9672    var FieldRootInner = /* @__PURE__ */ React59.forwardRef(function FieldRootInner2(componentProps, forwardedRef) {
9673      const {
9674        errors,
9675        validationMode: formValidationMode,
9676        submitCountRef
9677      } = useFormContext();
9678      const {
9679        render,
9680        className,
9681        validate: validateProp,
9682        validationDebounceTime = 0,
9683        validationMode = formValidationMode,
9684        name: name16,
9685        disabled: disabledProp = false,
9686        invalid: invalidProp,
9687        dirty: dirtyProp,
9688        touched: touchedProp,
9689        actionsRef,
9690        style,
9691        ...elementProps
9692      } = componentProps;
9693      const disabledFieldset = useFieldsetRootContext(true)?.disabled;
9694      const validate = useStableCallback(validateProp || (() => null));
9695      const disabled2 = disabledFieldset || disabledProp;
9696      const [touchedState, setTouchedUnwrapped] = React59.useState(false);
9697      const [dirtyState, setDirtyUnwrapped] = React59.useState(false);
9698      const [filled, setFilled] = React59.useState(false);
9699      const [focused, setFocused] = React59.useState(false);
9700      const focusOwnerRef = React59.useRef(void 0);
9701      const dirty = dirtyProp ?? dirtyState;
9702      const touched = touchedProp ?? touchedState;
9703      const markedDirtyRef = React59.useRef(dirty);
9704      const registeredFieldIdRef = React59.useRef(void 0);
9705      const [registeredFieldName, setRegisteredFieldName] = React59.useState();
9706      const effectiveName = name16 ?? registeredFieldName;
9707      useIsoLayoutEffect(() => {
9708        if (dirtyProp !== void 0) {
9709          markedDirtyRef.current = dirtyProp;
9710        }
9711      }, [dirtyProp]);
9712      const setDirty = useStableCallback((value) => {
9713        if (dirtyProp !== void 0) {
9714          return;
9715        }
9716        if (value) {
9717          markedDirtyRef.current = true;
9718        }
9719        setDirtyUnwrapped(value);
9720      });
9721      const setTouched = useStableCallback((value) => {
9722        if (touchedProp !== void 0) {
9723          return;
9724        }
9725        setTouchedUnwrapped(value);
9726      });
9727      const shouldValidateOnChange = useStableCallback(() => validationMode === "onChange" || validationMode === "onSubmit" && submitCountRef.current > 0);
9728      const formError = effectiveName && Object.hasOwn(errors, effectiveName) ? errors[effectiveName] : null;
9729      const hasFormError = !!(Array.isArray(formError) ? formError.length : formError);
9730      const invalid2 = invalidProp === true || hasFormError;
9731      const [validityData, setValidityData] = React59.useState({
9732        state: DEFAULT_VALIDITY_STATE,
9733        error: "",
9734        errors: [],
9735        value: null,
9736        initialValue: null
9737      });
9738      const valid2 = !invalid2 && (disabled2 ? null : validityData.state.valid);
9739      const state = React59.useMemo(() => ({
9740        disabled: disabled2,
9741        touched,
9742        dirty,
9743        valid: valid2,
9744        filled,
9745        focused
9746      }), [disabled2, touched, dirty, valid2, filled, focused]);
9747      const validation = useFieldValidation({
9748        setValidityData,
9749        validate,
9750        validityData,
9751        validationDebounceTime,
9752        invalid: invalid2,
9753        markedDirtyRef,
9754        state,
9755        shouldValidateOnChange,
9756        validationMode,
9757        registeredFieldIdRef
9758      });
9759      const [validateFieldControl, registerFieldControl] = useFieldControlRegistration({
9760        change: validation.change,
9761        commit: validation.commit,
9762        invalid: invalid2,
9763        markedDirtyRef,
9764        name: name16,
9765        setRegisteredFieldName,
9766        registeredFieldIdRef,
9767        setValidityData,
9768        validityData
9769      });
9770      React59.useImperativeHandle(actionsRef, () => ({
9771        validate: validateFieldControl
9772      }), [validateFieldControl]);
9773      const contextValue = React59.useMemo(() => ({
9774        invalid: invalid2,
9775        name: effectiveName,
9776        validityData,
9777        setValidityData,
9778        disabled: disabled2,
9779        setTouched,
9780        setDirty,
9781        setFilled,
9782        setFocused,
9783        focusOwnerRef,
9784        validationMode,
9785        shouldValidateOnChange,
9786        state,
9787        registerFieldControl,
9788        validation
9789      }), [invalid2, effectiveName, validityData, disabled2, setTouched, setDirty, setFilled, setFocused, validationMode, shouldValidateOnChange, state, registerFieldControl, validation]);
9790      const element = useRenderElement("div", componentProps, {
9791        ref: forwardedRef,
9792        state,
9793        props: elementProps,
9794        stateAttributesMapping: fieldValidityMapping
9795      });
9796      return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(FieldRootContext.Provider, {
9797        value: contextValue,
9798        children: element
9799      });
9800    });
9801    if (true) FieldRootInner.displayName = "FieldRootInner";
9802    var FieldRoot = /* @__PURE__ */ React59.forwardRef(function FieldRoot2(componentProps, forwardedRef) {
9803      return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(LabelableProvider, {
9804        children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(FieldRootInner, {
9805          ...componentProps,
9806          ref: forwardedRef
9807        })
9808      });
9809    });
9810    if (true) FieldRoot.displayName = "FieldRoot";
9811  
9812    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/label/FieldLabel.mjs
9813    var React60 = __toESM(require_react(), 1);
9814    var FieldLabel = /* @__PURE__ */ React60.forwardRef(function FieldLabel2(componentProps, forwardedRef) {
9815      const {
9816        render,
9817        className,
9818        style,
9819        id: idProp,
9820        nativeLabel = true,
9821        ...elementProps
9822      } = componentProps;
9823      const fieldRootContext = useFieldRootContext(false);
9824      const fieldItemContext = useFieldItemContext();
9825      const {
9826        labelId
9827      } = useLabelableContext();
9828      const state = {
9829        ...fieldRootContext.state,
9830        disabled: fieldRootContext.disabled || fieldItemContext.disabled
9831      };
9832      const labelRef = React60.useRef(null);
9833      const labelProps = useLabel({
9834        id: labelId ?? idProp,
9835        native: nativeLabel
9836      });
9837      if (true) {
9838        React60.useEffect(() => {
9839          if (!labelRef.current) {
9840            return;
9841          }
9842          const isLabelTag = labelRef.current.tagName === "LABEL";
9843          if (nativeLabel) {
9844            if (!isLabelTag) {
9845              const ownerStackMessage = SafeReact.captureOwnerStack?.() || "";
9846              const message = "<Field.Label> expected a <label> element because the `nativeLabel` prop is true. Rendering a non-<label> disables native label association, so `htmlFor` will not work. Use a real <label> in the `render` prop, or set `nativeLabel` to `false`.";
9847              error(`$message}$ownerStackMessage}`);
9848            }
9849          } else if (isLabelTag) {
9850            const ownerStackMessage = SafeReact.captureOwnerStack?.() || "";
9851            const message = "<Field.Label> expected a non-<label> element because the `nativeLabel` prop is false. Rendering a <label> assumes native label behavior while Base UI treats it as non-native, which can cause unexpected pointer behavior. Use a non-<label> in the `render` prop, or set `nativeLabel` to `true`.";
9852            error(`$message}$ownerStackMessage}`);
9853          }
9854        }, [nativeLabel]);
9855      }
9856      const element = useRenderElement("label", componentProps, {
9857        ref: [forwardedRef, labelRef],
9858        state,
9859        props: [labelProps, elementProps],
9860        stateAttributesMapping: fieldValidityMapping
9861      });
9862      return element;
9863    });
9864    if (true) FieldLabel.displayName = "FieldLabel";
9865  
9866    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/error/FieldError.mjs
9867    var React61 = __toESM(require_react(), 1);
9868    var import_jsx_runtime32 = __toESM(require_jsx_runtime(), 1);
9869    var stateAttributesMapping = {
9870      ...fieldValidityMapping,
9871      ...transitionStatusMapping
9872    };
9873    var FieldError = /* @__PURE__ */ React61.forwardRef(function FieldError2(componentProps, forwardedRef) {
9874      const {
9875        render,
9876        id: idProp,
9877        className,
9878        match,
9879        style,
9880        ...elementProps
9881      } = componentProps;
9882      const id = useBaseUiId(idProp);
9883      const {
9884        validityData,
9885        state: fieldState,
9886        name: name16
9887      } = useFieldRootContext(false);
9888      const {
9889        setMessageIds
9890      } = useLabelableContext();
9891      const {
9892        errors
9893      } = useFormContext();
9894      const formError = name16 && Object.hasOwn(errors, name16) ? errors[name16] : null;
9895      const hasFormError = !!(Array.isArray(formError) ? formError.length : formError);
9896      const hasSpecificMatch = typeof match === "string";
9897      let rendered = false;
9898      if (match === true) {
9899        rendered = true;
9900      } else if (fieldState.disabled) {
9901        rendered = false;
9902      } else if (hasSpecificMatch) {
9903        rendered = Boolean(validityData.state[match]);
9904      } else {
9905        rendered = hasFormError || validityData.state.valid === false;
9906      }
9907      const {
9908        mounted,
9909        transitionStatus,
9910        setMounted
9911      } = useTransitionStatus(rendered);
9912      useIsoLayoutEffect(() => {
9913        if (!rendered || !id) {
9914          return void 0;
9915        }
9916        setMessageIds((v) => v.concat(id));
9917        return () => {
9918          setMessageIds((v) => v.filter((item) => item !== id));
9919        };
9920      }, [rendered, id, setMessageIds]);
9921      const errorRef = React61.useRef(null);
9922      const [lastRenderedMessage, setLastRenderedMessage] = React61.useState(null);
9923      const [lastRenderedMessageKey, setLastRenderedMessageKey] = React61.useState(null);
9924      let error2 = validityData.error;
9925      if (!hasSpecificMatch && hasFormError) {
9926        error2 = formError;
9927      } else if (validityData.errors.length > 1) {
9928        error2 = validityData.errors;
9929      }
9930      let errorMessage = error2;
9931      if (Array.isArray(error2)) {
9932        errorMessage = error2.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("ul", {
9933          children: error2.map((message) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("li", {
9934            children: message
9935          }, message))
9936        }) : error2[0];
9937      }
9938      const errorKey = Array.isArray(error2) ? JSON.stringify(error2) : error2;
9939      if (rendered && errorKey !== lastRenderedMessageKey) {
9940        setLastRenderedMessageKey(errorKey);
9941        setLastRenderedMessage(errorMessage);
9942      }
9943      useOpenChangeComplete({
9944        open: rendered,
9945        ref: errorRef,
9946        onComplete() {
9947          if (!rendered) {
9948            setMounted(false);
9949          }
9950        }
9951      });
9952      const state = {
9953        ...fieldState,
9954        transitionStatus
9955      };
9956      const element = useRenderElement("div", componentProps, {
9957        ref: [forwardedRef, errorRef],
9958        state,
9959        props: [{
9960          id,
9961          children: rendered ? errorMessage : lastRenderedMessage
9962        }, elementProps],
9963        stateAttributesMapping,
9964        enabled: mounted
9965      });
9966      if (!mounted) {
9967        return null;
9968      }
9969      return element;
9970    });
9971    if (true) FieldError.displayName = "FieldError";
9972  
9973    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/description/FieldDescription.mjs
9974    var React62 = __toESM(require_react(), 1);
9975    var FieldDescription = /* @__PURE__ */ React62.forwardRef(function FieldDescription2(componentProps, forwardedRef) {
9976      const {
9977        render,
9978        id: idProp,
9979        className,
9980        style,
9981        ...elementProps
9982      } = componentProps;
9983      const id = useBaseUiId(idProp);
9984      const fieldRootContext = useFieldRootContext(false);
9985      const fieldItemContext = useFieldItemContext();
9986      const {
9987        setMessageIds
9988      } = useLabelableContext();
9989      const state = {
9990        ...fieldRootContext.state,
9991        disabled: fieldRootContext.disabled || fieldItemContext.disabled
9992      };
9993      useIsoLayoutEffect(() => {
9994        if (!id) {
9995          return void 0;
9996        }
9997        setMessageIds((v) => v.concat(id));
9998        return () => {
9999          setMessageIds((v) => v.filter((item) => item !== id));
10000        };
10001      }, [id, setMessageIds]);
10002      const element = useRenderElement("p", componentProps, {
10003        ref: forwardedRef,
10004        state,
10005        props: [{
10006          id
10007        }, elementProps],
10008        stateAttributesMapping: fieldValidityMapping
10009      });
10010      return element;
10011    });
10012    if (true) FieldDescription.displayName = "FieldDescription";
10013  
10014    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/control/FieldControl.mjs
10015    var React63 = __toESM(require_react(), 1);
10016    var FieldControl = /* @__PURE__ */ React63.forwardRef(function FieldControl2(componentProps, forwardedRef) {
10017      const {
10018        render,
10019        className,
10020        id: idProp,
10021        name: nameProp,
10022        value,
10023        disabled: disabledProp = false,
10024        onValueChange,
10025        defaultValue,
10026        autoFocus = false,
10027        style,
10028        ...elementProps
10029      } = componentProps;
10030      const {
10031        state: fieldState,
10032        name: fieldName,
10033        disabled: fieldDisabled,
10034        setTouched,
10035        setDirty,
10036        validityData,
10037        setFilled,
10038        validationMode,
10039        validation
10040      } = useFieldRootContext();
10041      const {
10042        clearErrors,
10043        elementRef: formElementRef,
10044        submitCountRef
10045      } = useFormContext();
10046      const disabled2 = fieldDisabled || disabledProp;
10047      const name16 = fieldName ?? nameProp;
10048      const state = {
10049        ...fieldState,
10050        disabled: disabled2
10051      };
10052      const {
10053        labelId
10054      } = useLabelableContext();
10055      const id = useLabelableId({
10056        id: idProp
10057      });
10058      const isControlled = value !== void 0;
10059      const serializedValue = value == null ? void 0 : String(value);
10060      const getValueFromInput = useStableCallback(() => validation.inputRef.current?.value);
10061      useRegisterFieldControl(validation.inputRef, id, serializedValue, getValueFromInput, !disabled2, nameProp);
10062      useIsoLayoutEffect(() => {
10063        const currentValue = serializedValue ?? validation.inputRef.current?.value;
10064        if (currentValue !== void 0) {
10065          setFilled(currentValue !== "");
10066        }
10067      }, [serializedValue, defaultValue, validation.inputRef, setFilled]);
10068      useValueChanged(serializedValue, () => {
10069        if (serializedValue === void 0) {
10070          return;
10071        }
10072        clearErrors(name16);
10073        setDirty(serializedValue !== (validityData.initialValue ?? ""));
10074        validation.change(serializedValue);
10075      });
10076      const inputRef = React63.useRef(null);
10077      const setFocused = useSetFieldFocused(disabled2, inputRef);
10078      const enterValidationTimeout = useTimeout();
10079      const element = useRenderElement("input", componentProps, {
10080        ref: [forwardedRef, inputRef],
10081        state,
10082        props: [{
10083          id,
10084          disabled: disabled2,
10085          name: name16,
10086          ref: validation.inputRef,
10087          "aria-labelledby": labelId,
10088          autoFocus,
10089          ...isControlled ? {
10090            value
10091          } : {
10092            defaultValue
10093          },
10094          onChange(event) {
10095            const inputValue = event.currentTarget.value;
10096            const details = createChangeEventDetails(reason_parts_exports.none, event.nativeEvent);
10097            onValueChange?.(inputValue, details);
10098            if (isControlled) {
10099              return;
10100            }
10101            setDirty(inputValue !== (validityData.initialValue ?? ""));
10102            setFilled(inputValue !== "");
10103            if (!event.nativeEvent.defaultPrevented && !details.isCanceled) {
10104              clearErrors(name16);
10105              validation.change(inputValue);
10106            }
10107          },
10108          onFocus() {
10109            setFocused(true);
10110          },
10111          onBlur(event) {
10112            setTouched(true);
10113            setFocused(false);
10114            if (validationMode === "onBlur") {
10115              const inputValue = event.currentTarget.value;
10116              validation.commit(inputValue);
10117              if (isControlled) {
10118                queueMicrotask(() => {
10119                  const nextValue = validation.inputRef.current?.value;
10120                  if (nextValue !== void 0 && nextValue !== inputValue && nextValue !== (validityData.initialValue ?? "")) {
10121                    validation.commit(nextValue);
10122                  }
10123                });
10124              }
10125            }
10126          },
10127          onKeyDown(event) {
10128            if (event.currentTarget.tagName === "INPUT" && event.key === "Enter") {
10129              setTouched(true);
10130              const value2 = event.currentTarget.value;
10131              const form = event.currentTarget.form;
10132              if (form && form === formElementRef.current && !event.defaultPrevented) {
10133                const input = event.currentTarget;
10134                const submitCount = submitCountRef.current;
10135                enterValidationTimeout.start(0, () => {
10136                  if (submitCountRef.current === submitCount) {
10137                    validation.commit(input.value);
10138                  }
10139                });
10140              } else {
10141                validation.commit(value2);
10142              }
10143            }
10144          }
10145        }, elementProps, (props) => validation.getValidationProps(disabled2, props)],
10146        stateAttributesMapping: fieldValidityMapping
10147      });
10148      return element;
10149    });
10150    if (true) FieldControl.displayName = "FieldControl";
10151  
10152    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/validity/FieldValidity.mjs
10153    var React64 = __toESM(require_react(), 1);
10154    var import_jsx_runtime33 = __toESM(require_jsx_runtime(), 1);
10155    var FieldValidity = function FieldValidity2(props) {
10156      const {
10157        children
10158      } = props;
10159      const {
10160        validityData,
10161        invalid: invalid2
10162      } = useFieldRootContext(false);
10163      const combinedFieldValidityData = React64.useMemo(() => getCombinedFieldValidityData(validityData, invalid2), [validityData, invalid2]);
10164      const isInvalid = combinedFieldValidityData.state.valid === false;
10165      const {
10166        transitionStatus
10167      } = useTransitionStatus(isInvalid);
10168      const fieldValidityState = React64.useMemo(() => {
10169        return {
10170          ...combinedFieldValidityData,
10171          validity: combinedFieldValidityData.state,
10172          transitionStatus
10173        };
10174      }, [combinedFieldValidityData, transitionStatus]);
10175      return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(React64.Fragment, {
10176        children: children(fieldValidityState)
10177      });
10178    };
10179    if (true) FieldValidity.displayName = "FieldValidity";
10180  
10181    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/field/item/FieldItem.mjs
10182    var React65 = __toESM(require_react(), 1);
10183    var import_jsx_runtime34 = __toESM(require_jsx_runtime(), 1);
10184    var FieldItem = /* @__PURE__ */ React65.forwardRef(function FieldItem2(componentProps, forwardedRef) {
10185      const {
10186        render,
10187        className,
10188        style,
10189        disabled: disabledProp = false,
10190        ...elementProps
10191      } = componentProps;
10192      const {
10193        state: fieldState,
10194        disabled: rootDisabled
10195      } = useFieldRootContext(false);
10196      const disabled2 = rootDisabled || disabledProp;
10197      const state = {
10198        ...fieldState,
10199        disabled: disabled2
10200      };
10201      const fieldItemContext = React65.useMemo(() => ({
10202        disabled: disabled2
10203      }), [disabled2]);
10204      const element = useRenderElement("div", componentProps, {
10205        ref: forwardedRef,
10206        state,
10207        props: elementProps,
10208        stateAttributesMapping: fieldValidityMapping
10209      });
10210      return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(LabelableProvider, {
10211        children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(FieldItemContext.Provider, {
10212          value: fieldItemContext,
10213          children: element
10214        })
10215      });
10216    });
10217    if (true) FieldItem.displayName = "FieldItem";
10218  
10219    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/input/Input.mjs
10220    var React66 = __toESM(require_react(), 1);
10221    var import_jsx_runtime35 = __toESM(require_jsx_runtime(), 1);
10222    var Input = /* @__PURE__ */ React66.forwardRef(function Input2(props, forwardedRef) {
10223      return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(index_parts_exports.Control, {
10224        ref: forwardedRef,
10225        ...props
10226      });
10227    });
10228    if (true) Input.displayName = "Input";
10229  
10230    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/root/CompositeRoot.mjs
10231    var React68 = __toESM(require_react(), 1);
10232  
10233    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/root/useCompositeRoot.mjs
10234    var React67 = __toESM(require_react(), 1);
10235  
10236    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/constants.mjs
10237    var ACTIVE_COMPOSITE_ITEM = "data-composite-item-active";
10238  
10239    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/root/useCompositeRoot.mjs
10240    function useCompositeRoot(params) {
10241      const {
10242        loopFocus = true,
10243        orientation = "both",
10244        grid,
10245        onLoop,
10246        direction,
10247        highlightedIndex: externalHighlightedIndex,
10248        onHighlightedIndexChange: externalSetHighlightedIndex,
10249        rootRef: externalRef,
10250        enableHomeAndEndKeys = false,
10251        stopEventPropagation,
10252        disabledIndices,
10253        modifierKeys = EMPTY_ARRAY
10254      } = params;
10255      const [internalHighlightedIndex, internalSetHighlightedIndex] = React67.useState(0);
10256      const isGrid = grid != null;
10257      const rootRef = React67.useRef(null);
10258      const mergedRef = useMergedRefs(rootRef, externalRef);
10259      const elementsRef = React67.useRef([]);
10260      const hasSetDefaultIndexRef = React67.useRef(false);
10261      const highlightedElementRef = React67.useRef(null);
10262      const highlightedIndex = externalHighlightedIndex ?? internalHighlightedIndex;
10263      const onHighlightedIndexChange = useStableCallback((index3, shouldScrollIntoView = false) => {
10264        highlightedElementRef.current = elementsRef.current[index3] ?? null;
10265        (externalSetHighlightedIndex ?? internalSetHighlightedIndex)(index3);
10266        if (shouldScrollIntoView) {
10267          const newActiveItem = elementsRef.current[index3];
10268          scrollIntoViewIfNeeded(rootRef.current, newActiveItem, direction, orientation);
10269        }
10270      });
10271      const onMapChange = useStableCallback((map) => {
10272        if (map.size === 0) {
10273          return;
10274        }
10275        if (hasSetDefaultIndexRef.current) {
10276          const elements = elementsRef.current;
10277          const nextIndex = elements.indexOf(highlightedElementRef.current);
10278          if (nextIndex === -1) {
10279            const replacement = elements[highlightedIndex];
10280            if (!replacement || isListIndexDisabled(elements, highlightedIndex, disabledIndices)) {
10281              onHighlightedIndexChange(getFallbackIndex(elements, disabledIndices));
10282            } else {
10283              highlightedElementRef.current = replacement;
10284            }
10285          } else if (nextIndex !== highlightedIndex) {
10286            onHighlightedIndexChange(nextIndex);
10287          }
10288          return;
10289        }
10290        hasSetDefaultIndexRef.current = true;
10291        const sortedElements = Array.from(map.keys());
10292        const activeItem = sortedElements.find((compositeElement) => compositeElement?.hasAttribute(ACTIVE_COMPOSITE_ITEM)) ?? null;
10293        const activeIndex = activeItem ? map.get(activeItem)?.index ?? -1 : -1;
10294        if (activeIndex !== -1) {
10295          onHighlightedIndexChange(activeIndex);
10296        } else if (isListIndexDisabled(sortedElements, highlightedIndex, disabledIndices)) {
10297          const firstEnabledIndex = findNonDisabledListIndex(sortedElements, {
10298            disabledIndices
10299          });
10300          if (!isIndexOutOfListBounds(sortedElements, firstEnabledIndex)) {
10301            onHighlightedIndexChange(firstEnabledIndex);
10302          }
10303        }
10304        scrollIntoViewIfNeeded(rootRef.current, activeItem, direction, orientation);
10305      });
10306      useIsoLayoutEffect(() => {
10307        if (disabledIndices == null || externalHighlightedIndex != null || !hasSetDefaultIndexRef.current) {
10308          return;
10309        }
10310        const elements = elementsRef.current;
10311        if (isListIndexDisabled(elements, highlightedIndex, disabledIndices)) {
10312          const firstEnabledIndex = findNonDisabledListIndex(elements, {
10313            disabledIndices
10314          });
10315          if (!isIndexOutOfListBounds(elements, firstEnabledIndex)) {
10316            onHighlightedIndexChange(firstEnabledIndex);
10317          }
10318        }
10319      }, [disabledIndices, externalHighlightedIndex, highlightedIndex, elementsRef, onHighlightedIndexChange]);
10320      const wrappedOnLoop = useStableCallback((event, prevIndex, nextIndex) => {
10321        if (!onLoop) {
10322          return nextIndex;
10323        }
10324        return onLoop(event, prevIndex, nextIndex, elementsRef);
10325      });
10326      const onKeyDown = useStableCallback((event) => {
10327        const isHomeOrEnd = event.key === HOME || event.key === END;
10328        if (!COMPOSITE_KEYS.has(event.key) || !enableHomeAndEndKeys && isHomeOrEnd) {
10329          return;
10330        }
10331        if (isModifierKeySet(event, modifierKeys)) {
10332          return;
10333        }
10334        const element = rootRef.current;
10335        if (!element) {
10336          return;
10337        }
10338        const isRtl = direction === "rtl";
10339        const horizontalForwardKey = isRtl ? ARROW_LEFT2 : ARROW_RIGHT2;
10340        const horizontalBackwardKey = isRtl ? ARROW_RIGHT2 : ARROW_LEFT2;
10341        const forwardKey = orientation === "vertical" ? ARROW_DOWN2 : horizontalForwardKey;
10342        const backwardKey = orientation === "vertical" ? ARROW_UP2 : horizontalBackwardKey;
10343        const target = getTarget(event.nativeEvent);
10344        if (target != null && isNativeInput(target) && !isElementDisabled(target)) {
10345          const selectionStart = target.selectionStart;
10346          const selectionEnd = target.selectionEnd;
10347          const textContent = target.value;
10348          if (selectionStart == null || event.shiftKey || selectionStart !== selectionEnd) {
10349            return;
10350          }
10351          if (event.key !== backwardKey && selectionStart < textContent.length) {
10352            return;
10353          }
10354          if (event.key !== forwardKey && selectionStart > 0) {
10355            return;
10356          }
10357        }
10358        let nextIndex = highlightedIndex;
10359        const minIndex = getMinListIndex(elementsRef, disabledIndices);
10360        const maxIndex = getMaxListIndex(elementsRef, disabledIndices);
10361        if (grid != null) {
10362          nextIndex = grid({
10363            disabledIndices,
10364            elementsRef,
10365            event,
10366            highlightedIndex,
10367            loopFocus,
10368            maxIndex,
10369            minIndex,
10370            onLoop: wrappedOnLoop,
10371            orientation,
10372            rtl: isRtl
10373          });
10374        }
10375        const isForwardKey = orientation !== "vertical" && event.key === horizontalForwardKey || orientation !== "horizontal" && event.key === ARROW_DOWN2;
10376        const isBackwardKey = orientation !== "vertical" && event.key === horizontalBackwardKey || orientation !== "horizontal" && event.key === ARROW_UP2;
10377        if (enableHomeAndEndKeys) {
10378          if (event.key === HOME) {
10379            nextIndex = minIndex;
10380          } else if (event.key === END) {
10381            nextIndex = maxIndex;
10382          }
10383        }
10384        if (nextIndex === highlightedIndex && (isForwardKey || isBackwardKey)) {
10385          if (loopFocus && nextIndex === maxIndex && isForwardKey) {
10386            nextIndex = minIndex;
10387            if (onLoop) {
10388              nextIndex = onLoop(event, highlightedIndex, nextIndex, elementsRef);
10389            }
10390          } else if (loopFocus && nextIndex === minIndex && isBackwardKey) {
10391            nextIndex = maxIndex;
10392            if (onLoop) {
10393              nextIndex = onLoop(event, highlightedIndex, nextIndex, elementsRef);
10394            }
10395          } else {
10396            nextIndex = findNonDisabledListIndex(elementsRef.current, {
10397              startingIndex: nextIndex,
10398              decrement: isBackwardKey,
10399              disabledIndices
10400            });
10401          }
10402        }
10403        if (nextIndex !== highlightedIndex && !isIndexOutOfListBounds(elementsRef.current, nextIndex)) {
10404          if (stopEventPropagation) {
10405            event.stopPropagation();
10406          }
10407          if (isGrid || isHomeOrEnd || isForwardKey || isBackwardKey) {
10408            event.preventDefault();
10409          }
10410          onHighlightedIndexChange(nextIndex, true);
10411          queueMicrotask(() => {
10412            elementsRef.current[nextIndex]?.focus();
10413          });
10414        }
10415      });
10416      const props = {
10417        ref: mergedRef,
10418        onFocus(event) {
10419          const element = rootRef.current;
10420          const target = getTarget(event.nativeEvent);
10421          if (!element || target == null || !isNativeInput(target)) {
10422            return;
10423          }
10424          target.setSelectionRange(0, target.value.length);
10425        },
10426        onKeyDown
10427      };
10428      return {
10429        props,
10430        highlightedIndex,
10431        onHighlightedIndexChange,
10432        elementsRef,
10433        onMapChange,
10434        relayKeyboardEvent: onKeyDown
10435      };
10436    }
10437    function getFallbackIndex(elements, disabledIndices) {
10438      let fallbackIndex = -1;
10439      for (let index3 = 0; index3 < elements.length; index3 += 1) {
10440        const element = elements[index3];
10441        if (!element || isListIndexDisabled(elements, index3, disabledIndices)) {
10442          continue;
10443        }
10444        if (element.hasAttribute(ACTIVE_COMPOSITE_ITEM)) {
10445          return index3;
10446        }
10447        if (fallbackIndex === -1) {
10448          fallbackIndex = index3;
10449        }
10450      }
10451      return Math.max(fallbackIndex, 0);
10452    }
10453    function isModifierKeySet(event, ignoredModifierKeys) {
10454      for (const key of MODIFIER_KEYS) {
10455        if (ignoredModifierKeys.includes(key)) {
10456          continue;
10457        }
10458        if (event.getModifierState(key)) {
10459          return true;
10460        }
10461      }
10462      return false;
10463    }
10464  
10465    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/composite/root/CompositeRoot.mjs
10466    var import_jsx_runtime36 = __toESM(require_jsx_runtime(), 1);
10467    function CompositeRoot(componentProps) {
10468      const {
10469        render,
10470        className,
10471        style,
10472        refs = EMPTY_ARRAY,
10473        props = EMPTY_ARRAY,
10474        state = EMPTY_OBJECT,
10475        stateAttributesMapping: stateAttributesMapping8,
10476        highlightedIndex: highlightedIndexProp,
10477        onHighlightedIndexChange: onHighlightedIndexChangeProp,
10478        orientation,
10479        grid,
10480        loopFocus,
10481        onLoop,
10482        enableHomeAndEndKeys,
10483        onMapChange: onMapChangeProp,
10484        stopEventPropagation = true,
10485        rootRef,
10486        disabledIndices,
10487        modifierKeys,
10488        highlightItemOnHover = false,
10489        tag = "div",
10490        ...elementProps
10491      } = componentProps;
10492      const direction = useDirection();
10493      const {
10494        props: defaultProps,
10495        highlightedIndex,
10496        onHighlightedIndexChange,
10497        elementsRef,
10498        onMapChange: onMapChangeUnwrapped,
10499        relayKeyboardEvent
10500      } = useCompositeRoot({
10501        grid,
10502        loopFocus,
10503        onLoop,
10504        orientation,
10505        highlightedIndex: highlightedIndexProp,
10506        onHighlightedIndexChange: onHighlightedIndexChangeProp,
10507        rootRef,
10508        stopEventPropagation,
10509        enableHomeAndEndKeys,
10510        direction,
10511        disabledIndices,
10512        modifierKeys
10513      });
10514      const element = useRenderElement(tag, componentProps, {
10515        state,
10516        ref: refs,
10517        props: [defaultProps, ...props, elementProps],
10518        stateAttributesMapping: stateAttributesMapping8
10519      });
10520      const contextValue = React68.useMemo(() => ({
10521        highlightedIndex,
10522        onHighlightedIndexChange,
10523        highlightItemOnHover,
10524        relayKeyboardEvent
10525      }), [highlightedIndex, onHighlightedIndexChange, highlightItemOnHover, relayKeyboardEvent]);
10526      return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CompositeRootContext.Provider, {
10527        value: contextValue,
10528        children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CompositeList, {
10529          elementsRef,
10530          onMapChange: (newMap) => {
10531            onMapChangeProp?.(newMap);
10532            onMapChangeUnwrapped(newMap);
10533          },
10534          children: element
10535        })
10536      });
10537    }
10538  
10539    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/styles.mjs
10540    var import_jsx_runtime37 = __toESM(require_jsx_runtime(), 1);
10541    var DISABLE_SCROLLBAR_CLASS_NAME = "base-ui-disable-scrollbar";
10542    var styleDisableScrollbar = {
10543      className: DISABLE_SCROLLBAR_CLASS_NAME,
10544      getElement(nonce) {
10545        return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("style", {
10546          nonce,
10547          href: DISABLE_SCROLLBAR_CLASS_NAME,
10548          precedence: "base-ui:low",
10549          children: `.$DISABLE_SCROLLBAR_CLASS_NAME}{scrollbar-width:none}.$DISABLE_SCROLLBAR_CLASS_NAME}::-webkit-scrollbar{display:none}`
10550        });
10551      }
10552    };
10553    if (true) styleDisableScrollbar.getElement.displayName = "styleDisableScrollbar.getElement";
10554  
10555    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/utils/scrollEdges.mjs
10556    var SCROLL_EDGE_TOLERANCE_PX = 1;
10557    function getMaxScrollOffset(scrollSize, clientSize) {
10558      return Math.max(0, scrollSize - clientSize);
10559    }
10560    function normalizeScrollOffset(value, max2) {
10561      if (max2 <= 0) {
10562        return 0;
10563      }
10564      const clamped = clamp2(value, 0, max2);
10565      const startDistance = clamped;
10566      const endDistance = max2 - clamped;
10567      const withinStartTolerance = startDistance <= SCROLL_EDGE_TOLERANCE_PX;
10568      const withinEndTolerance = endDistance <= SCROLL_EDGE_TOLERANCE_PX;
10569      if (withinStartTolerance && withinEndTolerance) {
10570        return startDistance <= endDistance ? 0 : max2;
10571      }
10572      if (withinStartTolerance) {
10573        return 0;
10574      }
10575      if (withinEndTolerance) {
10576        return max2;
10577      }
10578      return clamped;
10579    }
10580  
10581    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/index.parts.mjs
10582    var index_parts_exports2 = {};
10583    __export(index_parts_exports2, {
10584      Arrow: () => SelectArrow,
10585      Backdrop: () => SelectBackdrop,
10586      Group: () => SelectGroup,
10587      GroupLabel: () => SelectGroupLabel,
10588      Icon: () => SelectIcon,
10589      Item: () => SelectItem,
10590      ItemIndicator: () => SelectItemIndicator,
10591      ItemText: () => SelectItemText,
10592      Label: () => SelectLabel,
10593      List: () => SelectList,
10594      Popup: () => SelectPopup,
10595      Portal: () => SelectPortal,
10596      Positioner: () => SelectPositioner,
10597      Root: () => SelectRoot,
10598      ScrollDownArrow: () => SelectScrollDownArrow,
10599      ScrollUpArrow: () => SelectScrollUpArrow,
10600      Separator: () => SelectSeparator,
10601      Trigger: () => SelectTrigger,
10602      Value: () => SelectValue
10603    });
10604  
10605    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/root/SelectRoot.mjs
10606    var React70 = __toESM(require_react(), 1);
10607  
10608    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/root/SelectRootContext.mjs
10609    var React69 = __toESM(require_react(), 1);
10610    var SelectRootContext = /* @__PURE__ */ React69.createContext(void 0);
10611    if (true) SelectRootContext.displayName = "SelectRootContext";
10612    var SelectFloatingContext = /* @__PURE__ */ React69.createContext(void 0);
10613    if (true) SelectFloatingContext.displayName = "SelectFloatingContext";
10614    function useSelectRootContext() {
10615      const store = React69.useContext(SelectRootContext);
10616      if (store === void 0) {
10617        throw new Error(true ? "Base UI: SelectRootContext is missing. Select parts must be placed within <Select.Root>." : formatErrorMessage_default(60));
10618      }
10619      return store;
10620    }
10621    function useSelectFloatingContext() {
10622      const context = React69.useContext(SelectFloatingContext);
10623      if (context === void 0) {
10624        throw new Error(true ? "Base UI: SelectFloatingContext is missing. Select parts must be placed within <Select.Root>." : formatErrorMessage_default(61));
10625      }
10626      return context;
10627    }
10628  
10629    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/store.mjs
10630    var selectors2 = {
10631      id: (state) => state.id,
10632      labelId: (state) => state.labelId,
10633      modal: (state) => state.modal,
10634      multiple: (state) => state.multiple,
10635      disabled: (state) => state.disabled,
10636      readOnly: (state) => state.readOnly,
10637      required: (state) => state.required,
10638      highlightItemOnHover: (state) => state.highlightItemOnHover,
10639      items: (state) => state.items,
10640      itemToStringLabel: (state) => state.itemToStringLabel,
10641      isItemEqualToValue: (state) => state.isItemEqualToValue,
10642      value: (state) => state.value,
10643      hasSelectedValue: (state) => {
10644        const {
10645          value,
10646          multiple,
10647          itemToStringValue
10648        } = state;
10649        if (value == null) {
10650          return false;
10651        }
10652        if (multiple && Array.isArray(value)) {
10653          return value.length > 0;
10654        }
10655        return stringifyAsValue(value, itemToStringValue) !== "";
10656      },
10657      hasNullItemLabel: (state, enabled) => {
10658        return enabled ? hasNullItemLabel(state.items) : false;
10659      },
10660      open: (state) => state.open,
10661      mounted: (state) => state.mounted,
10662      forceMount: (state) => state.forceMount,
10663      transitionStatus: (state) => state.transitionStatus,
10664      openMethod: (state) => state.openMethod,
10665      activeIndex: (state) => state.activeIndex,
10666      selectedIndex: (state) => state.selectedIndex,
10667      isActive: (state, index3) => state.activeIndex === index3,
10668      isSelected: (state, itemValue) => {
10669        const comparer = state.isItemEqualToValue;
10670        const storeValue = state.value;
10671        if (state.multiple) {
10672          return Array.isArray(storeValue) && storeValue.some((selectedItem) => compareItemEquality(itemValue, selectedItem, comparer));
10673        }
10674        return compareItemEquality(itemValue, storeValue, comparer);
10675      },
10676      isSelectedByFocus: (state, index3) => {
10677        return state.selectedIndex === index3;
10678      },
10679      popupProps: (state) => state.popupProps,
10680      triggerProps: (state) => state.triggerProps,
10681      itemRoot: (state) => state.itemRoot,
10682      triggerElement: (state) => state.triggerElement,
10683      positionerElement: (state) => state.positionerElement,
10684      listElement: (state) => state.listElement,
10685      popupSide: (state) => state.popupSide,
10686      scrollUpArrowVisible: (state) => state.scrollUpArrowVisible,
10687      scrollDownArrowVisible: (state) => state.scrollDownArrowVisible,
10688      hasScrollArrows: (state) => state.hasScrollArrows
10689    };
10690  
10691    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/root/SelectRoot.mjs
10692    var import_jsx_runtime38 = __toESM(require_jsx_runtime(), 1);
10693    function SelectRoot(props) {
10694      const {
10695        id,
10696        value: valueProp,
10697        defaultValue = null,
10698        onValueChange,
10699        open: openProp,
10700        defaultOpen = false,
10701        onOpenChange,
10702        name: nameProp,
10703        form,
10704        autoComplete,
10705        disabled: disabledProp = false,
10706        readOnly = false,
10707        required = false,
10708        modal = true,
10709        actionsRef,
10710        inputRef,
10711        onOpenChangeComplete,
10712        items,
10713        multiple = false,
10714        itemToStringLabel,
10715        itemToStringValue,
10716        isItemEqualToValue = defaultItemEquality,
10717        highlightItemOnHover = true,
10718        children
10719      } = props;
10720      const {
10721        clearErrors
10722      } = useFormContext();
10723      const {
10724        setDirty,
10725        setTouched,
10726        setFocused,
10727        validityData,
10728        setFilled,
10729        name: fieldName,
10730        disabled: fieldDisabled,
10731        validation,
10732        validationMode
10733      } = useFieldRootContext();
10734      const generatedId = useLabelableId({
10735        id
10736      });
10737      const disabled2 = fieldDisabled || disabledProp;
10738      const name16 = fieldName ?? nameProp;
10739      const [value, setValueUnwrapped] = useControlled({
10740        controlled: valueProp,
10741        default: multiple ? defaultValue ?? EMPTY_ARRAY : defaultValue,
10742        name: "Select",
10743        state: "value"
10744      });
10745      const [open2, setOpenUnwrapped] = useControlled({
10746        controlled: openProp,
10747        default: defaultOpen,
10748        name: "Select",
10749        state: "open"
10750      });
10751      const listRef = React70.useRef([]);
10752      const labelsRef = React70.useRef([]);
10753      const popupRef = React70.useRef(null);
10754      const scrollHandlerRef = React70.useRef(null);
10755      const scrollArrowsMountedCountRef = React70.useRef(0);
10756      const valueRef = React70.useRef(null);
10757      const valuesRef = React70.useRef([]);
10758      const typingRef = React70.useRef(false);
10759      const firstItemTextRef = React70.useRef(null);
10760      const selectedItemTextRef = React70.useRef(null);
10761      const selectionRef = React70.useRef({
10762        allowSelectedMouseUp: false,
10763        allowUnselectedMouseUp: false,
10764        dragY: 0
10765      });
10766      const alignItemWithTriggerActiveRef = React70.useRef(false);
10767      const initialValueRef = React70.useRef(value);
10768      const {
10769        openMethod,
10770        triggerProps: interactionTypeProps
10771      } = useOpenInteractionType(open2);
10772      const store = useRefWithInit(() => new ReactStore({
10773        id: generatedId,
10774        labelId: void 0,
10775        modal,
10776        multiple,
10777        disabled: disabled2,
10778        readOnly,
10779        required,
10780        highlightItemOnHover,
10781        itemToStringLabel,
10782        itemToStringValue,
10783        isItemEqualToValue,
10784        value,
10785        open: open2,
10786        // Seeded with the initial values of `useUnmountAfterClose`, which is called after the
10787        // store because its unmount cleanup writes to it. `useSyncedValues` keeps them in sync.
10788        mounted: open2,
10789        transitionStatus: void 0,
10790        items,
10791        forceMount: false,
10792        openMethod: null,
10793        activeIndex: null,
10794        selectedIndex: null,
10795        popupProps: EMPTY_OBJECT,
10796        triggerProps: EMPTY_OBJECT,
10797        itemRoot: {
10798          props: EMPTY_OBJECT,
10799          multiple,
10800          disabled: disabled2,
10801          readOnly,
10802          isItemEqualToValue
10803        },
10804        triggerElement: null,
10805        positionerElement: null,
10806        listElement: null,
10807        popupSide: null,
10808        scrollUpArrowVisible: false,
10809        scrollDownArrowVisible: false,
10810        hasScrollArrows: false
10811      }, {
10812        setValue: NOOP,
10813        setOpen: NOOP,
10814        handleScrollArrowVisibility: NOOP,
10815        onOpenChangeComplete: NOOP,
10816        listRef,
10817        popupRef,
10818        scrollHandlerRef,
10819        scrollArrowsMountedCountRef,
10820        valueRef,
10821        valuesRef,
10822        labelsRef,
10823        typingRef,
10824        selectionRef,
10825        firstItemTextRef,
10826        selectedItemTextRef,
10827        alignItemWithTriggerActiveRef,
10828        initialValueRef
10829      }, selectors2)).current;
10830      const [preventUnmountOnClose, setPreventUnmountOnClose] = React70.useState(false);
10831      const {
10832        mounted,
10833        transitionStatus,
10834        forceUnmount: handleUnmount
10835      } = useUnmountAfterClose({
10836        open: open2,
10837        ref: popupRef,
10838        preventUnmountOnClose,
10839        setPreventUnmountOnClose,
10840        onUnmount() {
10841          store.update({
10842            activeIndex: null,
10843            openMethod: null,
10844            scrollUpArrowVisible: false,
10845            scrollDownArrowVisible: false
10846          });
10847          onOpenChangeComplete?.(false);
10848        }
10849      });
10850      const activeIndex = store.useState("activeIndex");
10851      const selectedIndex = store.useState("selectedIndex");
10852      const triggerElement = store.useState("triggerElement");
10853      const positionerElement = store.useState("positionerElement");
10854      const previousOpenMethod = usePreviousValue(openMethod);
10855      const renderedOpenMethod = openMethod ?? previousOpenMethod;
10856      const serializedValue = React70.useMemo(() => {
10857        if (multiple) {
10858          return "";
10859        }
10860        return stringifyAsValue(value, itemToStringValue);
10861      }, [multiple, value, itemToStringValue]);
10862      const fieldStringValue = React70.useMemo(() => {
10863        if (multiple && Array.isArray(value)) {
10864          return value.map((currentValue) => stringifyAsValue(currentValue, itemToStringValue));
10865        }
10866        return stringifyAsValue(value, itemToStringValue);
10867      }, [multiple, value, itemToStringValue]);
10868      const controlRef = useValueAsRef(triggerElement);
10869      const getStringifiedValueForForm = useStableCallback(() => fieldStringValue);
10870      useRegisterFieldControl(controlRef, generatedId, value, getStringifiedValueForForm, !disabled2, nameProp);
10871      const hasSelectedValue = multiple ? Array.isArray(value) && value.length > 0 : value != null && serializedValue !== "";
10872      useIsoLayoutEffect(() => {
10873        setFilled(hasSelectedValue);
10874      }, [hasSelectedValue, setFilled]);
10875      useIsoLayoutEffect(function syncSelectedIndex() {
10876        const nextIndex = findSelectionIndex(valuesRef.current, value, isItemEqualToValue, multiple);
10877        if (nextIndex === null) {
10878          selectedItemTextRef.current = null;
10879        }
10880        if (open2) {
10881          return;
10882        }
10883        store.set("selectedIndex", nextIndex);
10884      }, [multiple, open2, value, isItemEqualToValue, store]);
10885      useValueChanged(value, () => {
10886        clearErrors(name16);
10887        setDirty(isSelectedValueDirty(value, validityData.initialValue, isItemEqualToValue));
10888        validation.change(value);
10889      });
10890      const setOpen = useStableCallback((nextOpen, eventDetails) => {
10891        const openEventDetails = eventDetails;
10892        const shouldPreventUnmountOnClose = attachPreventUnmountOnClose(openEventDetails);
10893        onOpenChange?.(nextOpen, openEventDetails);
10894        if (eventDetails.isCanceled) {
10895          return;
10896        }
10897        if (!nextOpen) {
10898          setPreventUnmountOnClose(shouldPreventUnmountOnClose());
10899        }
10900        setOpenUnwrapped(nextOpen);
10901        if (!nextOpen && (eventDetails.reason === reason_parts_exports.focusOut || eventDetails.reason === reason_parts_exports.outsidePress)) {
10902          setTouched(true);
10903          setFocused(false);
10904          if (validationMode === "onBlur") {
10905            validation.commit(value);
10906          }
10907        }
10908      });
10909      React70.useImperativeHandle(actionsRef, () => ({
10910        unmount: handleUnmount,
10911        close: () => {
10912          if (store.state.open) {
10913            setOpen(false, createChangeEventDetails(reason_parts_exports.imperativeAction));
10914          }
10915        }
10916      }), [handleUnmount, setOpen, store]);
10917      const setValue = useStableCallback((nextValue, eventDetails) => {
10918        onValueChange?.(nextValue, eventDetails);
10919        if (eventDetails.isCanceled) {
10920          return;
10921        }
10922        setValueUnwrapped(nextValue);
10923      });
10924      const handleScrollArrowVisibility = useStableCallback((scroller) => {
10925        const maxScrollTop = getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);
10926        const scrollTop = normalizeScrollOffset(scroller.scrollTop, maxScrollTop);
10927        const shouldShowUp = scrollTop > 0;
10928        const shouldShowDown = scrollTop < maxScrollTop;
10929        store.set("scrollUpArrowVisible", shouldShowUp);
10930        store.set("scrollDownArrowVisible", shouldShowDown);
10931      });
10932      const floatingContext = useFloatingRootContext({
10933        open: open2,
10934        onOpenChange: setOpen,
10935        elements: {
10936          reference: triggerElement,
10937          floating: positionerElement
10938        }
10939      });
10940      const click = useClick(floatingContext, {
10941        enabled: !disabled2,
10942        event: "mousedown"
10943      });
10944      const dismiss = useDismiss(floatingContext);
10945      const listNavigation2 = useListNavigation(floatingContext, {
10946        enabled: !disabled2,
10947        listRef,
10948        activeIndex,
10949        selectedIndex,
10950        disabledIndices: EMPTY_ARRAY,
10951        onNavigate(nextActiveIndex) {
10952          if (nextActiveIndex === null && !open2) {
10953            return;
10954          }
10955          store.set("activeIndex", nextActiveIndex);
10956        },
10957        focusItemOnHover: highlightItemOnHover
10958      });
10959      const typeahead = useTypeahead(floatingContext, {
10960        // Typeahead on an open popup only moves the highlight, so it remains available while
10961        // `readOnly`. The closed-trigger variant commits a value instead, so it doesn't.
10962        enabled: !disabled2 && (open2 || !readOnly && !multiple),
10963        listRef: labelsRef,
10964        activeIndex,
10965        selectedIndex,
10966        // Skip disabled items while matching so typeahead advances to the next selectable item
10967        // (a click can never select a disabled item and native `<select>` skips them too). Resolve
10968        // the disabled state from the element via the attribute-only `isElementDisabled` so the
10969        // hidden, force-mounted items used for closed-trigger typeahead aren't dropped by the
10970        // `elementsRef`/visibility filter that `disabledIndices` deliberately sidesteps.
10971        disabledIndices: (index3) => isElementDisabled(listRef.current[index3]),
10972        onMatch(index3) {
10973          if (open2) {
10974            store.set("activeIndex", index3);
10975          } else {
10976            setValue(valuesRef.current[index3], createChangeEventDetails(reason_parts_exports.none));
10977          }
10978        },
10979        onTyping(typing) {
10980          typingRef.current = typing;
10981        }
10982      });
10983      const mergedTriggerProps = React70.useMemo(() => mergeProps(typeahead.reference, listNavigation2.reference, dismiss.reference, click.reference, interactionTypeProps), [click.reference, typeahead.reference, listNavigation2.reference, dismiss.reference, interactionTypeProps]);
10984      const popupProps = React70.useMemo(() => mergeProps(FOCUSABLE_POPUP_PROPS, typeahead.floating, listNavigation2.floating, dismiss.floating), [typeahead.floating, listNavigation2.floating, dismiss.floating]);
10985      const itemProps = listNavigation2.item ?? EMPTY_OBJECT;
10986      const itemRoot = React70.useMemo(() => ({
10987        props: itemProps,
10988        multiple,
10989        disabled: disabled2,
10990        readOnly,
10991        isItemEqualToValue
10992      }), [itemProps, multiple, disabled2, readOnly, isItemEqualToValue]);
10993      store.useContextCallback("setValue", setValue);
10994      store.useContextCallback("setOpen", setOpen);
10995      store.useContextCallback("handleScrollArrowVisibility", handleScrollArrowVisibility);
10996      store.useContextCallback("onOpenChangeComplete", onOpenChangeComplete);
10997      useOnFirstRender(() => {
10998        store.update({
10999          popupProps,
11000          triggerProps: mergedTriggerProps,
11001          itemRoot
11002        });
11003      });
11004      store.useSyncedValues({
11005        id: generatedId,
11006        modal,
11007        multiple,
11008        disabled: disabled2,
11009        readOnly,
11010        required,
11011        highlightItemOnHover,
11012        value,
11013        open: open2,
11014        mounted,
11015        transitionStatus,
11016        popupProps,
11017        triggerProps: mergedTriggerProps,
11018        itemRoot,
11019        items,
11020        itemToStringLabel,
11021        itemToStringValue,
11022        isItemEqualToValue,
11023        openMethod: renderedOpenMethod
11024      });
11025      const ref = useMergedRefs(inputRef, validation.inputRef);
11026      const hiddenInputName = multiple ? void 0 : name16;
11027      const hiddenInputs = React70.useMemo(() => {
11028        if (!multiple || !Array.isArray(value) || !name16) {
11029          return null;
11030        }
11031        return value.map((v) => {
11032          const currentSerializedValue = stringifyAsValue(v, itemToStringValue);
11033          return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("input", {
11034            type: "hidden",
11035            form,
11036            name: name16,
11037            value: currentSerializedValue,
11038            disabled: disabled2
11039          }, currentSerializedValue);
11040        });
11041      }, [multiple, value, form, name16, itemToStringValue, disabled2]);
11042      return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(SelectRootContext.Provider, {
11043        value: store,
11044        children: [/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SelectFloatingContext.Provider, {
11045          value: floatingContext,
11046          children
11047        }), /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("input", {
11048          ...validation.getValidationProps(disabled2, {
11049            onFocus() {
11050              store.state.triggerElement?.focus({
11051                // Supported in Chrome from 144 (January 2026)
11052                focusVisible: true
11053              });
11054            },
11055            // Handle browser autofill.
11056            onChange(event) {
11057              if (event.nativeEvent.defaultPrevented || disabled2 || readOnly) {
11058                return;
11059              }
11060              const nextValue = event.currentTarget.value;
11061              const details = createChangeEventDetails(reason_parts_exports.none, event.nativeEvent);
11062              function handleChange() {
11063                if (multiple) {
11064                  return;
11065                }
11066                const nextValueLower = nextValue.toLowerCase();
11067                let matchingIndex = valuesRef.current.findIndex((candidate) => stringifyAsValue(candidate, itemToStringValue).toLowerCase() === nextValueLower || stringifyAsLabel(candidate, itemToStringLabel).toLowerCase() === nextValueLower);
11068                if (matchingIndex === -1) {
11069                  matchingIndex = valuesRef.current.findIndex((_, index3) => {
11070                    const renderedLabel = labelsRef.current[index3];
11071                    return renderedLabel != null && renderedLabel.toLowerCase() === nextValueLower;
11072                  });
11073                }
11074                const matchingValue = valuesRef.current[matchingIndex];
11075                if (matchingValue != null) {
11076                  setValue(matchingValue, details);
11077                }
11078              }
11079              store.set("forceMount", true);
11080              queueMicrotask(handleChange);
11081            }
11082          }),
11083          id: generatedId && hiddenInputName == null ? `$generatedId}-hidden-input` : void 0,
11084          form,
11085          name: hiddenInputName,
11086          autoComplete,
11087          value: serializedValue,
11088          disabled: disabled2,
11089          required: required && !(multiple && hasSelectedValue),
11090          readOnly,
11091          ref,
11092          style: name16 ? visuallyHiddenInput : visuallyHidden,
11093          tabIndex: -1,
11094          "aria-hidden": true,
11095          suppressHydrationWarning: true
11096        }), hiddenInputs]
11097      });
11098    }
11099  
11100    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/label/SelectLabel.mjs
11101    var React71 = __toESM(require_react(), 1);
11102    var SelectLabel = /* @__PURE__ */ React71.forwardRef(function SelectLabel2(componentProps, forwardedRef) {
11103      const {
11104        render,
11105        className,
11106        style,
11107        ...elementProps
11108      } = componentProps;
11109      const elementPropsWithoutId = elementProps;
11110      delete elementPropsWithoutId.id;
11111      const fieldRootContext = useFieldRootContext();
11112      const store = useSelectRootContext();
11113      const triggerElement = store.useState("triggerElement");
11114      const rootId = store.useState("id");
11115      const defaultLabelId = getDefaultLabelId(rootId);
11116      const labelProps = useLabel({
11117        id: defaultLabelId,
11118        fallbackControlId: triggerElement?.id ?? rootId,
11119        setLabelId(nextLabelId) {
11120          const resolvedLabelId = typeof nextLabelId === "function" ? nextLabelId(store.state.labelId) : nextLabelId;
11121          store.set("labelId", resolvedLabelId);
11122        }
11123      });
11124      return useRenderElement("div", componentProps, {
11125        ref: forwardedRef,
11126        state: fieldRootContext.state,
11127        props: [labelProps, elementProps],
11128        stateAttributesMapping: fieldValidityMapping
11129      });
11130    });
11131    if (true) SelectLabel.displayName = "SelectLabel";
11132  
11133    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs
11134    var React72 = __toESM(require_react(), 1);
11135  
11136    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/trigger/SelectTriggerDataAttributes.mjs
11137    var popupOpen2 = CommonTriggerDataAttributes_exports.popupOpen;
11138    var pressed2 = CommonTriggerDataAttributes_exports.pressed;
11139    var popupSide = "data-popup-side";
11140  
11141    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/trigger/SelectTrigger.mjs
11142    var SELECTED_DELAY = 400;
11143    var stateAttributesMapping2 = {
11144      ...pressableTriggerOpenStateMapping,
11145      ...fieldValidityMapping,
11146      popupSide: (side) => side ? {
11147        [popupSide]: side
11148      } : null,
11149      value: () => null
11150    };
11151    var SelectTrigger = /* @__PURE__ */ React72.forwardRef(function SelectTrigger2(componentProps, forwardedRef) {
11152      const {
11153        render,
11154        className,
11155        id: idProp,
11156        disabled: disabledProp = false,
11157        nativeButton = true,
11158        style,
11159        ...elementProps
11160      } = componentProps;
11161      const {
11162        setTouched,
11163        validationMode,
11164        validation,
11165        state: fieldState,
11166        disabled: fieldDisabled
11167      } = useFieldRootContext();
11168      const {
11169        labelId: fieldLabelId
11170      } = useLabelableContext();
11171      const store = useSelectRootContext();
11172      const readOnly = store.useState("readOnly");
11173      const required = store.useState("required");
11174      const selectDisabled = store.useState("disabled");
11175      const disabled2 = fieldDisabled || selectDisabled || disabledProp;
11176      const open2 = store.useState("open");
11177      const mounted = store.useState("mounted");
11178      const value = store.useState("value");
11179      const triggerProps = store.useState("triggerProps");
11180      const positionerElement = store.useState("positionerElement");
11181      const listElement = store.useState("listElement");
11182      const popupSideValue = store.useState("popupSide");
11183      const rootId = store.useState("id");
11184      const selectLabelId = store.useState("labelId");
11185      const hasSelectedValue = store.useState("hasSelectedValue");
11186      const popupSide2 = mounted && positionerElement ? popupSideValue : null;
11187      const id = idProp ?? rootId;
11188      const ariaLabelledBy = resolveAriaLabelledBy(fieldLabelId, selectLabelId);
11189      useLabelableId({
11190        id: idProp
11191      });
11192      const positionerRef = useValueAsRef(positionerElement);
11193      const triggerRef = React72.useRef(null);
11194      const setFocused = useSetFieldFocused(disabled2, triggerRef);
11195      const {
11196        getButtonProps,
11197        buttonRef
11198      } = useButton({
11199        disabled: disabled2,
11200        native: nativeButton
11201      });
11202      const setTriggerElement = store.useStateSetter("triggerElement");
11203      const timeoutFocus = useTimeout();
11204      const timeoutMouseDown = useTimeout();
11205      const selectedDelayTimeout = useTimeout();
11206      React72.useEffect(() => {
11207        if (open2) {
11208          selectedDelayTimeout.start(SELECTED_DELAY, () => {
11209            store.context.selectionRef.current.allowUnselectedMouseUp = true;
11210            store.context.selectionRef.current.allowSelectedMouseUp = true;
11211          });
11212          return () => {
11213            selectedDelayTimeout.clear();
11214          };
11215        }
11216        store.context.selectionRef.current = {
11217          allowSelectedMouseUp: false,
11218          allowUnselectedMouseUp: false,
11219          dragY: 0
11220        };
11221        timeoutMouseDown.clear();
11222        return void 0;
11223      }, [open2, store, timeoutMouseDown, selectedDelayTimeout]);
11224      const mergedProps = mergeProps(triggerProps, {
11225        id,
11226        role: "combobox",
11227        "aria-expanded": open2,
11228        "aria-haspopup": "listbox",
11229        "aria-controls": open2 ? listElement?.id ?? getFloatingFocusElement(positionerElement)?.id : void 0,
11230        "aria-labelledby": ariaLabelledBy,
11231        "aria-readonly": readOnly || void 0,
11232        "aria-required": required || void 0,
11233        tabIndex: disabled2 ? -1 : 0,
11234        onFocus(event) {
11235          setFocused(true);
11236          if (open2 && store.context.alignItemWithTriggerActiveRef.current) {
11237            store.context.setOpen(false, createChangeEventDetails(reason_parts_exports.none, event.nativeEvent));
11238          }
11239          timeoutFocus.start(0, () => {
11240            store.set("forceMount", true);
11241          });
11242        },
11243        onBlur(event) {
11244          if (contains(positionerElement, event.relatedTarget)) {
11245            return;
11246          }
11247          setTouched(true);
11248          setFocused(false);
11249          if (validationMode === "onBlur") {
11250            validation.commit(value);
11251          }
11252        },
11253        onMouseDown(event) {
11254          if (open2) {
11255            return;
11256          }
11257          const doc = ownerDocument(event.currentTarget);
11258          function handleMouseUp(mouseEvent) {
11259            if (!triggerRef.current) {
11260              return;
11261            }
11262            const mouseUpTarget = mouseEvent.target;
11263            if (contains(triggerRef.current, mouseUpTarget) || contains(positionerRef.current, mouseUpTarget)) {
11264              return;
11265            }
11266            if (isMouseWithinBounds(mouseEvent, triggerRef.current)) {
11267              return;
11268            }
11269            store.context.setOpen(false, createChangeEventDetails(reason_parts_exports.cancelOpen, mouseEvent));
11270          }
11271          timeoutMouseDown.start(0, () => {
11272            doc.addEventListener("mouseup", handleMouseUp, {
11273              once: true
11274            });
11275          });
11276        }
11277      }, elementProps, getButtonProps);
11278      const props = validation.getValidationProps(disabled2, mergedProps);
11279      props.role = "combobox";
11280      const state = {
11281        ...fieldState,
11282        open: open2,
11283        disabled: disabled2,
11284        value,
11285        readOnly,
11286        popupSide: popupSide2,
11287        placeholder: !hasSelectedValue
11288      };
11289      return useRenderElement("button", componentProps, {
11290        ref: [forwardedRef, triggerRef, buttonRef, setTriggerElement],
11291        state,
11292        stateAttributesMapping: stateAttributesMapping2,
11293        props
11294      });
11295    });
11296    if (true) SelectTrigger.displayName = "SelectTrigger";
11297  
11298    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/value/SelectValue.mjs
11299    var React73 = __toESM(require_react(), 1);
11300    var stateAttributesMapping3 = {
11301      value: () => null
11302    };
11303    var SelectValue = /* @__PURE__ */ React73.forwardRef(function SelectValue2(componentProps, forwardedRef) {
11304      const {
11305        className,
11306        render,
11307        children: childrenProp,
11308        placeholder,
11309        style,
11310        ...elementProps
11311      } = componentProps;
11312      const store = useSelectRootContext();
11313      const value = store.useState("value");
11314      const items = store.useState("items");
11315      const itemToStringLabel = store.useState("itemToStringLabel");
11316      const hasSelectedValue = store.useState("hasSelectedValue");
11317      const shouldCheckNullItemLabel = !hasSelectedValue && placeholder != null && childrenProp == null;
11318      const hasNullLabel = store.useState("hasNullItemLabel", shouldCheckNullItemLabel);
11319      const state = {
11320        value,
11321        placeholder: !hasSelectedValue
11322      };
11323      let children = null;
11324      if (typeof childrenProp === "function") {
11325        children = childrenProp(value);
11326      } else if (childrenProp != null) {
11327        children = childrenProp;
11328      } else if (shouldCheckNullItemLabel && !hasNullLabel) {
11329        children = placeholder;
11330      } else if (Array.isArray(value)) {
11331        children = resolveMultipleLabels(value, items, itemToStringLabel);
11332      } else {
11333        children = resolveSelectedLabel(value, items, itemToStringLabel);
11334      }
11335      const element = useRenderElement("span", componentProps, {
11336        state,
11337        ref: [forwardedRef, store.context.valueRef],
11338        props: [{
11339          children
11340        }, elementProps],
11341        stateAttributesMapping: stateAttributesMapping3
11342      });
11343      return element;
11344    });
11345    if (true) SelectValue.displayName = "SelectValue";
11346  
11347    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/icon/SelectIcon.mjs
11348    var React74 = __toESM(require_react(), 1);
11349    var SelectIcon = /* @__PURE__ */ React74.forwardRef(function SelectIcon2(componentProps, forwardedRef) {
11350      const {
11351        render,
11352        className,
11353        style,
11354        ...elementProps
11355      } = componentProps;
11356      const store = useSelectRootContext();
11357      const open2 = store.useState("open");
11358      const state = {
11359        open: open2
11360      };
11361      const element = useRenderElement("span", componentProps, {
11362        state,
11363        ref: forwardedRef,
11364        props: [{
11365          "aria-hidden": true,
11366          children: "\u25BC"
11367        }, elementProps],
11368        stateAttributesMapping: triggerOpenStateMapping
11369      });
11370      return element;
11371    });
11372    if (true) SelectIcon.displayName = "SelectIcon";
11373  
11374    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/portal/SelectPortal.mjs
11375    var React75 = __toESM(require_react(), 1);
11376    var import_jsx_runtime39 = __toESM(require_jsx_runtime(), 1);
11377    var SelectPortal = /* @__PURE__ */ React75.forwardRef(function SelectPortal2(portalProps, forwardedRef) {
11378      const store = useSelectRootContext();
11379      const mounted = store.useState("mounted");
11380      const forceMount = store.useState("forceMount");
11381      const shouldRender = mounted || forceMount;
11382      if (!shouldRender) {
11383        return null;
11384      }
11385      return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(FloatingPortal, {
11386        ref: forwardedRef,
11387        ...portalProps
11388      });
11389    });
11390    if (true) SelectPortal.displayName = "SelectPortal";
11391  
11392    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/backdrop/SelectBackdrop.mjs
11393    var React76 = __toESM(require_react(), 1);
11394    var stateAttributesMapping4 = {
11395      ...popupStateMapping,
11396      ...transitionStatusMapping
11397    };
11398    var SelectBackdrop = /* @__PURE__ */ React76.forwardRef(function SelectBackdrop2(componentProps, forwardedRef) {
11399      const {
11400        render,
11401        className,
11402        style,
11403        ...elementProps
11404      } = componentProps;
11405      const store = useSelectRootContext();
11406      const open2 = store.useState("open");
11407      const mounted = store.useState("mounted");
11408      const transitionStatus = store.useState("transitionStatus");
11409      const state = {
11410        open: open2,
11411        transitionStatus
11412      };
11413      const element = useRenderElement("div", componentProps, {
11414        state,
11415        ref: forwardedRef,
11416        props: [{
11417          role: "presentation",
11418          hidden: !mounted,
11419          style: {
11420            userSelect: "none",
11421            WebkitUserSelect: "none"
11422          }
11423        }, elementProps],
11424        stateAttributesMapping: stateAttributesMapping4
11425      });
11426      return element;
11427    });
11428    if (true) SelectBackdrop.displayName = "SelectBackdrop";
11429  
11430    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/positioner/SelectPositioner.mjs
11431    var React78 = __toESM(require_react(), 1);
11432  
11433    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/positioner/SelectPositionerContext.mjs
11434    var React77 = __toESM(require_react(), 1);
11435    var SelectPositionerContext = /* @__PURE__ */ React77.createContext(void 0);
11436    if (true) SelectPositionerContext.displayName = "SelectPositionerContext";
11437    function useSelectPositionerContext() {
11438      const context = React77.useContext(SelectPositionerContext);
11439      if (!context) {
11440        throw new Error(true ? "Base UI: SelectPositionerContext is missing. SelectPositioner parts must be placed within <Select.Positioner>." : formatErrorMessage_default(59));
11441      }
11442      return context;
11443    }
11444  
11445    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/popup/utils.mjs
11446    function clearStyles(element, originalStyles) {
11447      if (element) {
11448        Object.assign(element.style, originalStyles);
11449      }
11450    }
11451    var LIST_FUNCTIONAL_STYLES = {
11452      position: "relative",
11453      maxHeight: "100%",
11454      overflowX: "hidden",
11455      overflowY: "auto"
11456    };
11457  
11458    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/positioner/SelectPositioner.mjs
11459    var import_jsx_runtime40 = __toESM(require_jsx_runtime(), 1);
11460    var FIXED = {
11461      position: "fixed"
11462    };
11463    var SelectPositioner = /* @__PURE__ */ React78.forwardRef(function SelectPositioner2(componentProps, forwardedRef) {
11464      const {
11465        anchor,
11466        className,
11467        render,
11468        // `useAnchorPositioning` applies the same defaults to the undefined values; the names
11469        // remain destructured to exclude the props from `elementProps`.
11470        positionMethod,
11471        side,
11472        align,
11473        sideOffset,
11474        alignOffset,
11475        collisionBoundary = "clipping-ancestors",
11476        collisionPadding,
11477        arrowPadding,
11478        sticky,
11479        disableAnchorTracking,
11480        alignItemWithTrigger = true,
11481        collisionAvoidance = DROPDOWN_COLLISION_AVOIDANCE,
11482        style,
11483        ...elementProps
11484      } = componentProps;
11485      const store = useSelectRootContext();
11486      const floatingRootContext = useSelectFloatingContext();
11487      const open2 = store.useState("open");
11488      const mounted = store.useState("mounted");
11489      const modal = store.useState("modal");
11490      const value = store.useState("value");
11491      const openMethod = store.useState("openMethod");
11492      const positionerElement = store.useState("positionerElement");
11493      const triggerElement = store.useState("triggerElement");
11494      const isItemEqualToValue = store.useState("isItemEqualToValue");
11495      const transitionStatus = store.useState("transitionStatus");
11496      const scrollUpArrowRef = React78.useRef(null);
11497      const scrollDownArrowRef = React78.useRef(null);
11498      const [controlledAlignItemWithTrigger, setControlledAlignItemWithTrigger] = React78.useState(alignItemWithTrigger);
11499      const alignItemWithTriggerActive = mounted && controlledAlignItemWithTrigger && openMethod !== "touch";
11500      if (!mounted && controlledAlignItemWithTrigger !== alignItemWithTrigger) {
11501        setControlledAlignItemWithTrigger(alignItemWithTrigger);
11502      }
11503      React78.useImperativeHandle(store.context.alignItemWithTriggerActiveRef, () => alignItemWithTriggerActive);
11504      useAnchoredPopupScrollLock((alignItemWithTriggerActive || modal) && open2, openMethod === "touch", positionerElement, triggerElement);
11505      const positioning = useAnchorPositioning({
11506        anchor,
11507        floatingRootContext,
11508        positionMethod,
11509        mounted,
11510        side,
11511        sideOffset,
11512        align,
11513        alignOffset,
11514        arrowPadding,
11515        collisionBoundary,
11516        collisionPadding,
11517        sticky,
11518        disableAnchorTracking: disableAnchorTracking ?? alignItemWithTriggerActive,
11519        collisionAvoidance,
11520        keepMounted: true
11521      });
11522      const renderedSide = alignItemWithTriggerActive ? "none" : positioning.side;
11523      const positionerStyles = alignItemWithTriggerActive ? FIXED : positioning.positionerStyles;
11524      const state = {
11525        open: open2,
11526        side: renderedSide,
11527        align: positioning.align,
11528        anchorHidden: positioning.anchorHidden
11529      };
11530      useIsoLayoutEffect(() => {
11531        store.set("popupSide", positioning.side);
11532      }, [store, positioning.side]);
11533      const setPositionerElement = store.useStateSetter("positionerElement");
11534      const element = usePositioner(componentProps, state, {
11535        styles: positionerStyles,
11536        transitionStatus,
11537        props: elementProps,
11538        refs: [forwardedRef, setPositionerElement],
11539        hidden: !mounted,
11540        inert: !open2
11541      });
11542      const prevMapSizeRef = React78.useRef(0);
11543      const onMapChange = useStableCallback((map) => {
11544        if (store.context.valuesRef.current.length === 0) {
11545          return;
11546        }
11547        const prevSize = prevMapSizeRef.current;
11548        prevMapSizeRef.current = map.size;
11549        const eventDetails = createChangeEventDetails(reason_parts_exports.none);
11550        if (prevSize !== 0 && !store.state.multiple && value !== null) {
11551          const selectedValueIndex = findItemIndex(store.context.valuesRef.current, value, isItemEqualToValue);
11552          if (selectedValueIndex === -1) {
11553            const initialSelectedValue = store.context.initialValueRef.current;
11554            const hasInitial = initialSelectedValue != null && findItemIndex(store.context.valuesRef.current, initialSelectedValue, isItemEqualToValue) !== -1;
11555            const nextValue = hasInitial ? initialSelectedValue : null;
11556            store.context.setValue(nextValue, eventDetails);
11557            if (nextValue === null) {
11558              store.set("selectedIndex", null);
11559              store.context.selectedItemTextRef.current = null;
11560            }
11561          }
11562        }
11563        if (prevSize !== 0 && store.state.multiple && Array.isArray(value)) {
11564          const nextValue = value.filter((selectedItemValue) => findItemIndex(store.context.valuesRef.current, selectedItemValue, isItemEqualToValue) !== -1);
11565          if (nextValue.length !== value.length) {
11566            store.context.setValue(nextValue, eventDetails);
11567            if (nextValue.length === 0) {
11568              store.set("selectedIndex", null);
11569              store.context.selectedItemTextRef.current = null;
11570            }
11571          }
11572        }
11573        if (open2 && alignItemWithTriggerActive) {
11574          store.update({
11575            scrollUpArrowVisible: false,
11576            scrollDownArrowVisible: false
11577          });
11578          const stylesToClear = {
11579            height: ""
11580          };
11581          clearStyles(positionerElement, stylesToClear);
11582          clearStyles(store.context.popupRef.current, stylesToClear);
11583        }
11584      });
11585      const contextValue = React78.useMemo(() => ({
11586        ...positioning,
11587        side: renderedSide,
11588        alignItemWithTriggerActive,
11589        setControlledAlignItemWithTrigger,
11590        scrollUpArrowRef,
11591        scrollDownArrowRef
11592      }), [positioning, renderedSide, alignItemWithTriggerActive, setControlledAlignItemWithTrigger]);
11593      return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CompositeList, {
11594        elementsRef: store.context.listRef,
11595        labelsRef: store.context.labelsRef,
11596        onMapChange,
11597        children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(SelectPositionerContext.Provider, {
11598          value: contextValue,
11599          children: [mounted && modal && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(InternalBackdrop, {
11600            inert: inertValue(!open2),
11601            cutout: triggerElement
11602          }), element]
11603        })
11604      });
11605    });
11606    if (true) SelectPositioner.displayName = "SelectPositioner";
11607  
11608    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/popup/SelectPopup.mjs
11609    var React79 = __toESM(require_react(), 1);
11610  
11611    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/positioner/SelectPositionerCssVars.mjs
11612    var transformOrigin2 = "--transform-origin";
11613  
11614    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/popup/SelectPopup.mjs
11615    var import_jsx_runtime41 = __toESM(require_jsx_runtime(), 1);
11616    var stateAttributesMapping5 = {
11617      ...popupStateMapping,
11618      ...transitionStatusMapping
11619    };
11620    var SelectPopup = /* @__PURE__ */ React79.forwardRef(function SelectPopup2(componentProps, forwardedRef) {
11621      const {
11622        render,
11623        className,
11624        style,
11625        finalFocus,
11626        ...elementProps
11627      } = componentProps;
11628      const store = useSelectRootContext();
11629      const multiple = store.useState("multiple");
11630      const readOnly = store.useState("readOnly");
11631      const highlightItemOnHover = store.useState("highlightItemOnHover");
11632      const floatingRootContext = useSelectFloatingContext();
11633      const {
11634        side,
11635        align,
11636        alignItemWithTriggerActive,
11637        isPositioned,
11638        setControlledAlignItemWithTrigger
11639      } = useSelectPositionerContext();
11640      const insideToolbar = useToolbarRootContext(true) != null;
11641      const direction = useDirection();
11642      const {
11643        nonce,
11644        disableStyleElements
11645      } = useCSPContext();
11646      const id = store.useState("id");
11647      const open2 = store.useState("open");
11648      const openMethod = store.useState("openMethod");
11649      const mounted = store.useState("mounted");
11650      const popupProps = store.useState("popupProps");
11651      const transitionStatus = store.useState("transitionStatus");
11652      const triggerElement = store.useState("triggerElement");
11653      const positionerElement = store.useState("positionerElement");
11654      const listElement = store.useState("listElement");
11655      const reachedMaxHeightRef = React79.useRef(false);
11656      const initialPlacedRef = React79.useRef(false);
11657      const originalPositionerStylesRef = React79.useRef({});
11658      const scrollArrowFrame = useAnimationFrame();
11659      const handleScroll = useStableCallback((scroller) => {
11660        if (!positionerElement || !store.context.popupRef.current || !initialPlacedRef.current) {
11661          return;
11662        }
11663        const isTopPositioned = positionerElement.style.top === "0px";
11664        const isBottomPositioned = positionerElement.style.bottom === "0px";
11665        if (reachedMaxHeightRef.current || !alignItemWithTriggerActive || !isTopPositioned && !isBottomPositioned) {
11666          store.context.handleScrollArrowVisibility(scroller);
11667          return;
11668        }
11669        const scale = getScale2(positionerElement);
11670        const currentHeight = normalizeSize(positionerElement.getBoundingClientRect().height, "y", scale);
11671        const doc = ownerDocument(positionerElement);
11672        const win = getWindow(positionerElement);
11673        const positionerStyles = win.getComputedStyle(positionerElement);
11674        const marginTop = parseFloat(positionerStyles.marginTop);
11675        const marginBottom = parseFloat(positionerStyles.marginBottom);
11676        const maxPopupHeight = getMaxPopupHeight(win.getComputedStyle(store.context.popupRef.current));
11677        const maxAvailableHeight = Math.min(doc.documentElement.clientHeight - marginTop - marginBottom, maxPopupHeight);
11678        const scrollTop = scroller.scrollTop;
11679        const maxScrollTop = getMaxScrollTop(scroller);
11680        let nextScrollTop = null;
11681        const setHeight = (height) => {
11682          positionerElement.style.height = `$height}px`;
11683        };
11684        const diff = isTopPositioned ? maxScrollTop - scrollTop : scrollTop;
11685        const nextHeight = Math.min(currentHeight + diff, maxAvailableHeight);
11686        if (diff <= SCROLL_EDGE_TOLERANCE_PX) {
11687          const heightDelta = clamp2(diff, 0, maxAvailableHeight - currentHeight);
11688          if (heightDelta > 0) {
11689            setHeight(currentHeight + heightDelta);
11690          }
11691          scroller.scrollTop = isTopPositioned ? maxScrollTop : 0;
11692          if (maxAvailableHeight - (currentHeight + heightDelta) <= SCROLL_EDGE_TOLERANCE_PX) {
11693            reachedMaxHeightRef.current = true;
11694          }
11695          store.context.handleScrollArrowVisibility(scroller);
11696          return;
11697        }
11698        if (maxAvailableHeight - nextHeight > SCROLL_EDGE_TOLERANCE_PX) {
11699          nextScrollTop = isTopPositioned ? Infinity : 0;
11700        } else if (isBottomPositioned && scrollTop < maxScrollTop) {
11701          const overshoot = currentHeight + diff - maxAvailableHeight;
11702          nextScrollTop = scrollTop - (diff - overshoot);
11703        }
11704        const nextPositionerHeight = Math.ceil(nextHeight);
11705        if (nextPositionerHeight !== 0) {
11706          setHeight(nextPositionerHeight);
11707        }
11708        if (nextScrollTop != null) {
11709          const target = clamp2(nextScrollTop, 0, getMaxScrollTop(scroller));
11710          if (Math.abs(scroller.scrollTop - target) > SCROLL_EDGE_TOLERANCE_PX) {
11711            scroller.scrollTop = target;
11712          }
11713        }
11714        if (nextPositionerHeight >= maxAvailableHeight - SCROLL_EDGE_TOLERANCE_PX) {
11715          reachedMaxHeightRef.current = true;
11716        }
11717        store.context.handleScrollArrowVisibility(scroller);
11718      });
11719      React79.useImperativeHandle(store.context.scrollHandlerRef, () => handleScroll, [handleScroll]);
11720      useOpenChangeComplete({
11721        open: open2,
11722        ref: store.context.popupRef,
11723        onComplete() {
11724          if (open2) {
11725            store.context.onOpenChangeComplete(true);
11726          }
11727        }
11728      });
11729      const state = {
11730        open: open2,
11731        transitionStatus,
11732        side,
11733        align
11734      };
11735      useIsoLayoutEffect(() => {
11736        if (!positionerElement || !store.context.popupRef.current || Object.keys(originalPositionerStylesRef.current).length) {
11737          return;
11738        }
11739        originalPositionerStylesRef.current = {
11740          top: positionerElement.style.top || "0",
11741          left: positionerElement.style.left || "0",
11742          right: positionerElement.style.right,
11743          height: positionerElement.style.height,
11744          bottom: positionerElement.style.bottom,
11745          minHeight: positionerElement.style.minHeight,
11746          maxHeight: positionerElement.style.maxHeight,
11747          marginTop: positionerElement.style.marginTop,
11748          marginBottom: positionerElement.style.marginBottom
11749        };
11750      }, [store, positionerElement]);
11751      useIsoLayoutEffect(() => {
11752        if (open2 || alignItemWithTriggerActive) {
11753          return;
11754        }
11755        initialPlacedRef.current = false;
11756        reachedMaxHeightRef.current = false;
11757        clearStyles(positionerElement, originalPositionerStylesRef.current);
11758      }, [open2, alignItemWithTriggerActive, positionerElement]);
11759      useIsoLayoutEffect(() => {
11760        const popupElement = store.context.popupRef.current;
11761        if (!open2 || !triggerElement || !positionerElement || !popupElement || alignItemWithTriggerActive && !isPositioned || store.state.transitionStatus === "ending") {
11762          return;
11763        }
11764        initialPlacedRef.current = true;
11765        popupElement.style.removeProperty(transformOrigin2);
11766        if (!alignItemWithTriggerActive) {
11767          scrollArrowFrame.request(() => store.context.handleScrollArrowVisibility(listElement || popupElement));
11768          return;
11769        }
11770        const restoreTransformStyles = unsetTransformStyles(popupElement);
11771        try {
11772          let textElement = store.context.selectedItemTextRef.current;
11773          if (!textElement?.isConnected) {
11774            const hasSelectedValue = store.select("hasSelectedValue");
11775            textElement = !hasSelectedValue && store.context.firstItemTextRef.current?.isConnected ? store.context.firstItemTextRef.current : null;
11776          }
11777          const valueElement = store.context.valueRef.current;
11778          const win = getWindow(positionerElement);
11779          const positionerStyles = win.getComputedStyle(positionerElement);
11780          const popupStyles = win.getComputedStyle(popupElement);
11781          const doc = ownerDocument(triggerElement);
11782          const scale = getScale2(triggerElement);
11783          const triggerRect = normalizeRect(triggerElement.getBoundingClientRect(), scale);
11784          const positionerRect = normalizeRect(positionerElement.getBoundingClientRect(), scale);
11785          const triggerHeight = triggerRect.height;
11786          const scroller = listElement || popupElement;
11787          const scrollHeight = scroller.scrollHeight;
11788          const borderBottom = parseFloat(popupStyles.borderBottomWidth);
11789          const marginTop = parseFloat(positionerStyles.marginTop) || 10;
11790          const marginBottom = parseFloat(positionerStyles.marginBottom) || 10;
11791          const minHeight = parseFloat(positionerStyles.minHeight) || 100;
11792          const maxPopupHeight = getMaxPopupHeight(popupStyles);
11793          const paddingLeft = 5;
11794          const paddingRight = 5;
11795          const triggerCollisionThreshold = 20;
11796          const viewportHeight = doc.documentElement.clientHeight - marginTop - marginBottom;
11797          const viewportWidth = doc.documentElement.clientWidth;
11798          const availableSpaceBeneathTrigger = viewportHeight - triggerRect.bottom + triggerHeight;
11799          let textRect;
11800          let alignedLeft = direction === "rtl" ? triggerRect.right - positionerRect.width : triggerRect.left;
11801          let offsetY = 0;
11802          if (textElement && valueElement) {
11803            const valueRect = normalizeRect(valueElement.getBoundingClientRect(), scale);
11804            textRect = normalizeRect(textElement.getBoundingClientRect(), scale);
11805            alignedLeft = positionerRect.left + (direction === "rtl" ? valueRect.right - textRect.right : valueRect.left - textRect.left);
11806            const valueCenterFromTriggerTop = valueRect.top - triggerRect.top + valueRect.height / 2;
11807            const textCenterFromPositionerTop = textRect.top - positionerRect.top + textRect.height / 2;
11808            offsetY = textCenterFromPositionerTop - valueCenterFromTriggerTop;
11809          }
11810          const idealHeight = availableSpaceBeneathTrigger + offsetY + marginBottom + borderBottom;
11811          let height = Math.min(viewportHeight, idealHeight);
11812          const maxHeight = viewportHeight - marginTop - marginBottom;
11813          const scrollTop = idealHeight - height;
11814          const maxRight = viewportWidth - paddingRight;
11815          positionerElement.style.left = `$clamp2(alignedLeft, paddingLeft, maxRight - positionerRect.width)}px`;
11816          positionerElement.style.height = `$height}px`;
11817          positionerElement.style.maxHeight = "none";
11818          positionerElement.style.marginTop = `$marginTop}px`;
11819          positionerElement.style.marginBottom = `$marginBottom}px`;
11820          popupElement.style.height = "100%";
11821          const maxScrollTop = getMaxScrollTop(scroller);
11822          const isTopPositioned = scrollTop >= maxScrollTop - SCROLL_EDGE_TOLERANCE_PX;
11823          if (isTopPositioned) {
11824            height = Math.min(viewportHeight, positionerRect.height) - (scrollTop - maxScrollTop);
11825          }
11826          const fallbackToAlignPopupToTrigger = triggerRect.top < triggerCollisionThreshold || triggerRect.bottom > viewportHeight - triggerCollisionThreshold || Math.ceil(height) + SCROLL_EDGE_TOLERANCE_PX < Math.min(scrollHeight, minHeight);
11827          const isPinchZoomed = (win.visualViewport?.scale ?? 1) !== 1 && parts_exports.engine.webkit;
11828          if (fallbackToAlignPopupToTrigger || isPinchZoomed) {
11829            clearStyles(positionerElement, originalPositionerStylesRef.current);
11830            setControlledAlignItemWithTrigger(false);
11831            return;
11832          }
11833          const initialHeight = Math.max(minHeight, height);
11834          if (isTopPositioned) {
11835            const topOffset = Math.max(0, viewportHeight - idealHeight);
11836            positionerElement.style.top = positionerRect.height >= maxHeight ? "0" : `$topOffset}px`;
11837            positionerElement.style.height = `$height}px`;
11838            scroller.scrollTop = getMaxScrollTop(scroller);
11839          } else {
11840            positionerElement.style.bottom = "0";
11841            scroller.scrollTop = scrollTop;
11842          }
11843          if (textRect) {
11844            const popupTop = positionerRect.top;
11845            const popupHeight = positionerRect.height;
11846            const textCenterY = textRect.top + textRect.height / 2;
11847            const clampedY = clamp2(popupHeight > 0 ? (textCenterY - popupTop) / popupHeight * 100 : 50, 0, 100);
11848            popupElement.style.setProperty(transformOrigin2, `50% $clampedY}%`);
11849          }
11850          if (initialHeight === viewportHeight || height >= maxPopupHeight) {
11851            reachedMaxHeightRef.current = true;
11852          }
11853          store.context.handleScrollArrowVisibility(scroller);
11854          if (highlightItemOnHover && store.state.selectedIndex === null && store.state.activeIndex === null && store.context.listRef.current[0] != null) {
11855            store.set("activeIndex", 0);
11856          }
11857        } finally {
11858          restoreTransformStyles();
11859        }
11860      }, [store, open2, positionerElement, triggerElement, alignItemWithTriggerActive, setControlledAlignItemWithTrigger, scrollArrowFrame, listElement, highlightItemOnHover, direction, isPositioned]);
11861      React79.useEffect(() => {
11862        if (!alignItemWithTriggerActive || !positionerElement || !open2) {
11863          return void 0;
11864        }
11865        const win = getWindow(positionerElement);
11866        function handleResize(event) {
11867          store.context.setOpen(false, createChangeEventDetails(reason_parts_exports.windowResize, event));
11868        }
11869        return addEventListener(win, "resize", handleResize);
11870      }, [store, alignItemWithTriggerActive, positionerElement, open2]);
11871      const defaultProps = {
11872        ...listElement ? {
11873          role: "presentation"
11874        } : {
11875          role: "listbox",
11876          "aria-multiselectable": multiple || void 0,
11877          "aria-readonly": readOnly || void 0,
11878          id: `$id}-list`
11879        },
11880        onKeyDown(event) {
11881          if (insideToolbar && COMPOSITE_KEYS.has(event.key)) {
11882            event.stopPropagation();
11883          }
11884        },
11885        onScroll(event) {
11886          if (listElement) {
11887            return;
11888          }
11889          handleScroll(event.currentTarget);
11890        },
11891        ...alignItemWithTriggerActive && {
11892          style: listElement ? {
11893            height: "100%"
11894          } : LIST_FUNCTIONAL_STYLES
11895        },
11896        className: !listElement && alignItemWithTriggerActive ? styleDisableScrollbar.className : void 0
11897      };
11898      const element = useRenderElement("div", componentProps, {
11899        ref: [forwardedRef, store.context.popupRef],
11900        state,
11901        stateAttributesMapping: stateAttributesMapping5,
11902        props: [popupProps, defaultProps, getDisabledMountTransitionStyles(transitionStatus), elementProps]
11903      });
11904      return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(React79.Fragment, {
11905        children: [!disableStyleElements && styleDisableScrollbar.getElement(nonce), /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(FloatingFocusManager, {
11906          context: floatingRootContext,
11907          modal: false,
11908          disabled: !mounted,
11909          openInteractionType: openMethod,
11910          returnFocus: finalFocus,
11911          restoreFocus: true,
11912          children: element
11913        })]
11914      });
11915    });
11916    if (true) SelectPopup.displayName = "SelectPopup";
11917    function getMaxPopupHeight(popupStyles) {
11918      const maxHeightStyle = popupStyles.maxHeight;
11919      return maxHeightStyle.endsWith("px") ? parseFloat(maxHeightStyle) || Infinity : Infinity;
11920    }
11921    function getMaxScrollTop(scroller) {
11922      return getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);
11923    }
11924    function getScale2(element) {
11925      return platform2.getScale(element);
11926    }
11927    function normalizeSize(size4, axis, scale) {
11928      return size4 / scale[axis];
11929    }
11930    function normalizeRect(rect, scale) {
11931      return rectToClientRect({
11932        x: normalizeSize(rect.x, "x", scale),
11933        y: normalizeSize(rect.y, "y", scale),
11934        width: normalizeSize(rect.width, "x", scale),
11935        height: normalizeSize(rect.height, "y", scale)
11936      });
11937    }
11938    var TRANSFORM_STYLE_RESETS = [["transform", "none"], ["scale", "1"], ["translate", "0 0"]];
11939    function unsetTransformStyles(popupElement) {
11940      const {
11941        style
11942      } = popupElement;
11943      const originalStyles = {};
11944      for (const [property, value] of TRANSFORM_STYLE_RESETS) {
11945        originalStyles[property] = style.getPropertyValue(property);
11946        style.setProperty(property, value, "important");
11947      }
11948      return () => {
11949        for (const [property] of TRANSFORM_STYLE_RESETS) {
11950          const originalValue = originalStyles[property];
11951          if (originalValue) {
11952            style.setProperty(property, originalValue);
11953          } else {
11954            style.removeProperty(property);
11955          }
11956        }
11957      };
11958    }
11959  
11960    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/list/SelectList.mjs
11961    var React80 = __toESM(require_react(), 1);
11962    var SelectList = /* @__PURE__ */ React80.forwardRef(function SelectList2(componentProps, forwardedRef) {
11963      const {
11964        render,
11965        className,
11966        style,
11967        ...elementProps
11968      } = componentProps;
11969      const store = useSelectRootContext();
11970      const multiple = store.useState("multiple");
11971      const readOnly = store.useState("readOnly");
11972      const {
11973        alignItemWithTriggerActive
11974      } = useSelectPositionerContext();
11975      const hasScrollArrows = store.useState("hasScrollArrows");
11976      const openMethod = store.useState("openMethod");
11977      const id = store.useState("id");
11978      const defaultProps = {
11979        id: `$id}-list`,
11980        role: "listbox",
11981        "aria-multiselectable": multiple || void 0,
11982        "aria-readonly": readOnly || void 0,
11983        onScroll(event) {
11984          store.context.scrollHandlerRef.current?.(event.currentTarget);
11985        },
11986        ...alignItemWithTriggerActive && {
11987          style: LIST_FUNCTIONAL_STYLES
11988        },
11989        className: hasScrollArrows && openMethod !== "touch" ? styleDisableScrollbar.className : void 0
11990      };
11991      const setListElement = store.useStateSetter("listElement");
11992      return useRenderElement("div", componentProps, {
11993        ref: [forwardedRef, setListElement],
11994        props: [defaultProps, elementProps]
11995      });
11996    });
11997    if (true) SelectList.displayName = "SelectList";
11998  
11999    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/item/SelectItem.mjs
12000    var React82 = __toESM(require_react(), 1);
12001  
12002    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/item/SelectItemContext.mjs
12003    var React81 = __toESM(require_react(), 1);
12004    var SelectItemContext = /* @__PURE__ */ React81.createContext(void 0);
12005    if (true) SelectItemContext.displayName = "SelectItemContext";
12006    function useSelectItemContext() {
12007      const context = React81.useContext(SelectItemContext);
12008      if (!context) {
12009        throw new Error(true ? "Base UI: SelectItemContext is missing. SelectItem parts must be placed within <Select.Item>." : formatErrorMessage_default(57));
12010      }
12011      return context;
12012    }
12013  
12014    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/item/SelectItem.mjs
12015    var import_jsx_runtime42 = __toESM(require_jsx_runtime(), 1);
12016    var SelectItem = /* @__PURE__ */ React82.memo(/* @__PURE__ */ React82.forwardRef(function SelectItem2(componentProps, forwardedRef) {
12017      const {
12018        render,
12019        className,
12020        style,
12021        value: itemValue = null,
12022        label,
12023        disabled: disabledProp = false,
12024        nativeButton = false,
12025        ...elementProps
12026      } = componentProps;
12027      const textRef = React82.useRef(null);
12028      const listItem = useCompositeListItem({
12029        guess: true,
12030        label,
12031        textRef
12032      });
12033      const store = useSelectRootContext();
12034      const {
12035        props: itemProps,
12036        multiple,
12037        disabled: selectDisabled,
12038        readOnly,
12039        isItemEqualToValue
12040      } = store.useState("itemRoot");
12041      const disabled2 = selectDisabled || disabledProp;
12042      const highlighted = store.useState("isActive", listItem.index);
12043      const open2 = store.useState("open");
12044      const selected = store.useState("isSelected", itemValue);
12045      const selectedByFocus = store.useState("isSelectedByFocus", listItem.index);
12046      const index3 = listItem.index;
12047      const itemRef = React82.useRef(null);
12048      useIsoLayoutEffect(() => {
12049        const values = store.context.valuesRef.current;
12050        values[index3] = itemValue;
12051        return () => {
12052          delete values[index3];
12053        };
12054      }, [index3, itemValue, store]);
12055      useIsoLayoutEffect(() => {
12056        const selectedValue = store.state.value;
12057        const currentIndex = store.state.selectedIndex;
12058        let nextIndex = currentIndex;
12059        let claims;
12060        if (multiple && Array.isArray(selectedValue)) {
12061          nextIndex = resolveSelectedIndex(index3, itemValue, store.context.valuesRef.current, selectedValue, isItemEqualToValue, currentIndex);
12062          claims = nextIndex === index3;
12063          if (index3 === currentIndex && !claims) {
12064            store.context.selectedItemTextRef.current = null;
12065          }
12066        } else {
12067          claims = selectedValue !== void 0 && compareItemEquality(itemValue, selectedValue, isItemEqualToValue);
12068          if (claims) {
12069            nextIndex = index3;
12070          }
12071        }
12072        store.set("selectedIndex", nextIndex);
12073        if (claims && textRef.current) {
12074          store.context.selectedItemTextRef.current = textRef.current;
12075        }
12076      }, [index3, multiple, isItemEqualToValue, store, itemValue]);
12077      const pointerTypeRef = React82.useRef("mouse");
12078      const allowMouseSelectionRef = React82.useRef(false);
12079      const {
12080        getButtonProps,
12081        buttonRef
12082      } = useButton({
12083        disabled: disabled2,
12084        focusableWhenDisabled: true,
12085        native: nativeButton,
12086        composite: true
12087      });
12088      const state = {
12089        disabled: disabled2,
12090        selected,
12091        highlighted
12092      };
12093      function commitSelection(event) {
12094        if (selectDisabled || readOnly) {
12095          return;
12096        }
12097        const selectedValue = store.state.value;
12098        if (multiple) {
12099          const currentValue = Array.isArray(selectedValue) ? selectedValue : [];
12100          const nextValue = selected ? removeItem(currentValue, itemValue, isItemEqualToValue) : [...currentValue, itemValue];
12101          store.context.setValue(nextValue, createChangeEventDetails(reason_parts_exports.itemPress, event));
12102        } else {
12103          store.context.setValue(itemValue, createChangeEventDetails(reason_parts_exports.itemPress, event));
12104          store.context.setOpen(false, createChangeEventDetails(reason_parts_exports.itemPress, event));
12105        }
12106      }
12107      function resetDragMovement() {
12108        store.context.selectionRef.current.dragY = 0;
12109      }
12110      const defaultProps = {
12111        role: "option",
12112        "aria-selected": selected,
12113        tabIndex: open2 && highlighted ? 0 : -1,
12114        onKeyDown(event) {
12115          store.set("activeIndex", index3);
12116          if (event.key === " " && store.context.typingRef.current) {
12117            event.preventDefault();
12118          }
12119        },
12120        onClick(event) {
12121          const isMouseClick = pointerTypeRef.current !== "touch";
12122          const clickPointerType = event.nativeEvent.pointerType;
12123          const isVirtualMouseClick = isMouseClick && isVirtualClick(event.nativeEvent) && // Generic no-pointer `detail === 0` clicks stay tied to highlight state. Virtual
12124          // clicks that carry browser pointer data, including an empty string from assistive
12125          // technology, can activate unhighlighted items.
12126          (clickPointerType !== void 0 || highlighted);
12127          const isInvalidMouseClick = isMouseClick && !isVirtualMouseClick && !allowMouseSelectionRef.current;
12128          allowMouseSelectionRef.current = false;
12129          if (disabled2 || isInvalidMouseClick) {
12130            return;
12131          }
12132          commitSelection(event.nativeEvent);
12133        },
12134        onPointerEnter(event) {
12135          pointerTypeRef.current = event.pointerType;
12136        },
12137        onPointerMove(event) {
12138          if (event.pointerType === "mouse" && event.buttons === 1) {
12139            const selection = store.context.selectionRef.current;
12140            selection.dragY += event.movementY;
12141            if (selection.dragY ** 2 >= 64) {
12142              selection.allowUnselectedMouseUp = true;
12143            }
12144          }
12145        },
12146        onPointerDown(event) {
12147          pointerTypeRef.current = event.pointerType;
12148          allowMouseSelectionRef.current = true;
12149          resetDragMovement();
12150        },
12151        onMouseUp() {
12152          resetDragMovement();
12153          if (disabled2 || pointerTypeRef.current === "touch") {
12154            return;
12155          }
12156          if (allowMouseSelectionRef.current) {
12157            return;
12158          }
12159          const disallowSelectedMouseUp = !store.context.selectionRef.current.allowSelectedMouseUp && selected;
12160          const disallowUnselectedMouseUp = !store.context.selectionRef.current.allowUnselectedMouseUp && !selected;
12161          if (disallowSelectedMouseUp || disallowUnselectedMouseUp) {
12162            return;
12163          }
12164          allowMouseSelectionRef.current = true;
12165          itemRef.current?.click();
12166          allowMouseSelectionRef.current = false;
12167        }
12168      };
12169      const element = useRenderElement("div", componentProps, {
12170        ref: [buttonRef, forwardedRef, listItem.ref, itemRef],
12171        state,
12172        props: [itemProps, defaultProps, elementProps, getButtonProps]
12173      });
12174      const contextValue = React82.useMemo(() => ({
12175        selected,
12176        index: index3,
12177        textRef,
12178        selectedByFocus
12179      }), [selected, index3, textRef, selectedByFocus]);
12180      return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectItemContext.Provider, {
12181        value: contextValue,
12182        children: element
12183      });
12184    }));
12185    if (true) SelectItem.displayName = "SelectItem";
12186  
12187    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/item-indicator/SelectItemIndicator.mjs
12188    var React83 = __toESM(require_react(), 1);
12189    var import_jsx_runtime43 = __toESM(require_jsx_runtime(), 1);
12190    var SelectItemIndicator = /* @__PURE__ */ React83.forwardRef(function SelectItemIndicator2(componentProps, forwardedRef) {
12191      const {
12192        selected
12193      } = useSelectItemContext();
12194      const shouldRender = componentProps.keepMounted || selected;
12195      if (!shouldRender) {
12196        return null;
12197      }
12198      return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ItemIndicator, {
12199        ...componentProps,
12200        selected,
12201        ref: forwardedRef
12202      });
12203    });
12204    if (true) SelectItemIndicator.displayName = "SelectItemIndicator";
12205  
12206    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/item-text/SelectItemText.mjs
12207    var React84 = __toESM(require_react(), 1);
12208    var SelectItemText = /* @__PURE__ */ React84.memo(/* @__PURE__ */ React84.forwardRef(function SelectItemText2(componentProps, forwardedRef) {
12209      const {
12210        index: index3,
12211        textRef,
12212        selectedByFocus
12213      } = useSelectItemContext();
12214      const store = useSelectRootContext();
12215      const {
12216        render,
12217        className,
12218        style,
12219        ...elementProps
12220      } = componentProps;
12221      const localRef = React84.useCallback((node) => {
12222        if (!node) {
12223          return;
12224        }
12225        if (index3 === 0) {
12226          store.context.firstItemTextRef.current = node;
12227        }
12228        if (selectedByFocus) {
12229          store.context.selectedItemTextRef.current = node;
12230        }
12231      }, [store, index3, selectedByFocus]);
12232      const element = useRenderElement("div", componentProps, {
12233        ref: [localRef, forwardedRef, textRef],
12234        props: elementProps
12235      });
12236      return element;
12237    }));
12238    if (true) SelectItemText.displayName = "SelectItemText";
12239  
12240    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/arrow/SelectArrow.mjs
12241    var React85 = __toESM(require_react(), 1);
12242    var SelectArrow = /* @__PURE__ */ React85.forwardRef(function SelectArrow2(componentProps, forwardedRef) {
12243      const {
12244        render,
12245        className,
12246        style,
12247        ...elementProps
12248      } = componentProps;
12249      const store = useSelectRootContext();
12250      const {
12251        side,
12252        align,
12253        arrowRef,
12254        arrowStyles,
12255        arrowUncentered,
12256        alignItemWithTriggerActive
12257      } = useSelectPositionerContext();
12258      const open2 = store.useState("open");
12259      const state = {
12260        open: open2,
12261        side,
12262        align,
12263        uncentered: arrowUncentered
12264      };
12265      const element = useRenderElement("div", componentProps, {
12266        state,
12267        ref: [arrowRef, forwardedRef],
12268        props: [{
12269          style: arrowStyles,
12270          "aria-hidden": true
12271        }, elementProps],
12272        stateAttributesMapping: popupTransitionStateMapping
12273      });
12274      if (alignItemWithTriggerActive) {
12275        return null;
12276      }
12277      return element;
12278    });
12279    if (true) SelectArrow.displayName = "SelectArrow";
12280  
12281    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/scroll-down-arrow/SelectScrollDownArrow.mjs
12282    var React87 = __toESM(require_react(), 1);
12283  
12284    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/scroll-arrow/SelectScrollArrow.mjs
12285    var React86 = __toESM(require_react(), 1);
12286    var SelectScrollArrow = /* @__PURE__ */ React86.forwardRef(function SelectScrollArrow2(componentProps, forwardedRef) {
12287      const {
12288        render,
12289        className,
12290        style,
12291        direction,
12292        keepMounted,
12293        ...elementProps
12294      } = componentProps;
12295      const isUp = direction === "up";
12296      const store = useSelectRootContext();
12297      const {
12298        side,
12299        scrollDownArrowRef,
12300        scrollUpArrowRef
12301      } = useSelectPositionerContext();
12302      const visibleSelector = isUp ? "scrollUpArrowVisible" : "scrollDownArrowVisible";
12303      const stateVisible = store.useState(visibleSelector);
12304      const openMethod = store.useState("openMethod");
12305      const visible = stateVisible && openMethod !== "touch";
12306      const timeout = useTimeout();
12307      const scrollArrowRef = isUp ? scrollUpArrowRef : scrollDownArrowRef;
12308      const {
12309        mounted,
12310        transitionStatus,
12311        setMounted
12312      } = useTransitionStatus(visible);
12313      useIsoLayoutEffect(() => {
12314        store.context.scrollArrowsMountedCountRef.current += 1;
12315        store.set("hasScrollArrows", true);
12316        return () => {
12317          store.context.scrollArrowsMountedCountRef.current = Math.max(0, store.context.scrollArrowsMountedCountRef.current - 1);
12318          if (store.context.scrollArrowsMountedCountRef.current === 0) {
12319            store.set("hasScrollArrows", false);
12320          }
12321        };
12322      }, [store]);
12323      useOpenChangeComplete({
12324        open: visible,
12325        ref: scrollArrowRef,
12326        onComplete() {
12327          if (!visible) {
12328            setMounted(false);
12329          }
12330        }
12331      });
12332      const state = {
12333        direction,
12334        visible,
12335        side,
12336        transitionStatus
12337      };
12338      const defaultProps = {
12339        "aria-hidden": true,
12340        children: isUp ? "\u25B2" : "\u25BC",
12341        style: {
12342          position: "absolute"
12343        },
12344        onMouseMove(event) {
12345          if (event.movementX === 0 && event.movementY === 0 || timeout.isStarted()) {
12346            return;
12347          }
12348          store.set("activeIndex", null);
12349          function scrollNextItem() {
12350            const scroller = store.state.listElement ?? store.context.popupRef.current;
12351            if (!scroller) {
12352              return;
12353            }
12354            store.set("activeIndex", null);
12355            store.context.handleScrollArrowVisibility(scroller);
12356            const maxScrollTop = getMaxScrollOffset(scroller.scrollHeight, scroller.clientHeight);
12357            const scrollTop = normalizeScrollOffset(scroller.scrollTop, maxScrollTop);
12358            const isScrolledToEdge = scrollTop === (isUp ? 0 : maxScrollTop);
12359            const items = store.context.listRef.current;
12360            if (scrollTop !== scroller.scrollTop) {
12361              scroller.scrollTop = scrollTop;
12362            }
12363            if (isScrolledToEdge) {
12364              timeout.clear();
12365              return;
12366            }
12367            if (items.length > 0) {
12368              const scrollArrowHeight = scrollArrowRef.current?.offsetHeight || 0;
12369              scroller.scrollTop = getTargetScrollTop(items, isUp, scrollTop, scroller.clientHeight, scrollArrowHeight, maxScrollTop);
12370            }
12371            timeout.start(40, scrollNextItem);
12372          }
12373          timeout.start(40, scrollNextItem);
12374        },
12375        onMouseLeave() {
12376          timeout.clear();
12377        }
12378      };
12379      const element = useRenderElement("div", componentProps, {
12380        ref: [forwardedRef, scrollArrowRef],
12381        state,
12382        props: [defaultProps, elementProps],
12383        stateAttributesMapping: transitionStatusMapping
12384      });
12385      const shouldRender = mounted || keepMounted;
12386      if (!shouldRender) {
12387        return null;
12388      }
12389      return element;
12390    });
12391    if (true) SelectScrollArrow.displayName = "SelectScrollArrow";
12392    function getTargetScrollTop(items, isUp, scrollTop, clientHeight, scrollArrowHeight, maxScrollTop) {
12393      if (isUp) {
12394        let firstVisibleIndex = 0;
12395        const visibleTop = scrollTop + scrollArrowHeight - SCROLL_EDGE_TOLERANCE_PX;
12396        for (let i = 0; i < items.length; i += 1) {
12397          const item = items[i];
12398          if (item && item.offsetTop >= visibleTop) {
12399            firstVisibleIndex = i;
12400            break;
12401          }
12402        }
12403        const targetIndex2 = Math.max(0, firstVisibleIndex - 1);
12404        const targetItem2 = items[targetIndex2];
12405        return targetIndex2 < firstVisibleIndex && targetItem2 ? normalizeScrollOffset(targetItem2.offsetTop - scrollArrowHeight, maxScrollTop) : 0;
12406      }
12407      let lastVisibleIndex = items.length - 1;
12408      const visibleBottom = scrollTop + clientHeight - scrollArrowHeight + SCROLL_EDGE_TOLERANCE_PX;
12409      for (let i = 0; i < items.length; i += 1) {
12410        const item = items[i];
12411        if (item && item.offsetTop + item.offsetHeight > visibleBottom) {
12412          lastVisibleIndex = Math.max(0, i - 1);
12413          break;
12414        }
12415      }
12416      const targetIndex = Math.min(items.length - 1, lastVisibleIndex + 1);
12417      const targetItem = items[targetIndex];
12418      return targetIndex > lastVisibleIndex && targetItem ? normalizeScrollOffset(targetItem.offsetTop + targetItem.offsetHeight - clientHeight + scrollArrowHeight, maxScrollTop) : maxScrollTop;
12419    }
12420  
12421    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/scroll-down-arrow/SelectScrollDownArrow.mjs
12422    var import_jsx_runtime44 = __toESM(require_jsx_runtime(), 1);
12423    var SelectScrollDownArrow = /* @__PURE__ */ React87.forwardRef(function SelectScrollDownArrow2(props, forwardedRef) {
12424      return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(SelectScrollArrow, {
12425        ...props,
12426        ref: forwardedRef,
12427        direction: "down"
12428      });
12429    });
12430    if (true) SelectScrollDownArrow.displayName = "SelectScrollDownArrow";
12431  
12432    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/scroll-up-arrow/SelectScrollUpArrow.mjs
12433    var React88 = __toESM(require_react(), 1);
12434    var import_jsx_runtime45 = __toESM(require_jsx_runtime(), 1);
12435    var SelectScrollUpArrow = /* @__PURE__ */ React88.forwardRef(function SelectScrollUpArrow2(props, forwardedRef) {
12436      return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(SelectScrollArrow, {
12437        ...props,
12438        ref: forwardedRef,
12439        direction: "up"
12440      });
12441    });
12442    if (true) SelectScrollUpArrow.displayName = "SelectScrollUpArrow";
12443  
12444    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/group/SelectGroup.mjs
12445    var React90 = __toESM(require_react(), 1);
12446  
12447    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/group/SelectGroupContext.mjs
12448    var React89 = __toESM(require_react(), 1);
12449    var SelectGroupContext = /* @__PURE__ */ React89.createContext(void 0);
12450    if (true) SelectGroupContext.displayName = "SelectGroupContext";
12451    function useSelectGroupContext() {
12452      const context = React89.useContext(SelectGroupContext);
12453      if (context === void 0) {
12454        throw new Error(true ? "Base UI: SelectGroupContext is missing. SelectGroup parts must be placed within <Select.Group>." : formatErrorMessage_default(56));
12455      }
12456      return context;
12457    }
12458  
12459    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/group/SelectGroup.mjs
12460    var import_jsx_runtime46 = __toESM(require_jsx_runtime(), 1);
12461    var SelectGroup = /* @__PURE__ */ React90.forwardRef(function SelectGroup2(componentProps, forwardedRef) {
12462      const {
12463        render,
12464        className,
12465        style,
12466        ...elementProps
12467      } = componentProps;
12468      const [labelId, setLabelId] = React90.useState();
12469      const contextValue = React90.useMemo(() => ({
12470        labelId,
12471        setLabelId
12472      }), [labelId, setLabelId]);
12473      const element = useRenderElement("div", componentProps, {
12474        ref: forwardedRef,
12475        props: [{
12476          role: "group",
12477          "aria-labelledby": labelId
12478        }, elementProps]
12479      });
12480      return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(SelectGroupContext.Provider, {
12481        value: contextValue,
12482        children: element
12483      });
12484    });
12485    if (true) SelectGroup.displayName = "SelectGroup";
12486  
12487    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/group-label/SelectGroupLabel.mjs
12488    var React91 = __toESM(require_react(), 1);
12489    var SelectGroupLabel = /* @__PURE__ */ React91.forwardRef(function SelectGroupLabel2(componentProps, forwardedRef) {
12490      const {
12491        render,
12492        className,
12493        style,
12494        id: idProp,
12495        ...elementProps
12496      } = componentProps;
12497      const {
12498        setLabelId
12499      } = useSelectGroupContext();
12500      const id = useBaseUiId(idProp);
12501      useIsoLayoutEffect(() => {
12502        setLabelId(id);
12503        return () => {
12504          setLabelId((currentId) => currentId === id ? void 0 : currentId);
12505        };
12506      }, [id, setLabelId]);
12507      const element = useRenderElement("div", componentProps, {
12508        ref: forwardedRef,
12509        props: [{
12510          id,
12511          "aria-hidden": true
12512        }, elementProps]
12513      });
12514      return element;
12515    });
12516    if (true) SelectGroupLabel.displayName = "SelectGroupLabel";
12517  
12518    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/select/separator/SelectSeparator.mjs
12519    var SelectSeparator = ListboxSeparator;
12520  
12521    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/prehydrationScript.stub.mjs
12522    var script = "";
12523  
12524    // node_modules/.store/@base-ui/utils@0.5.0--7My7Lubseca8je9LSEweA/node_modules/@base-ui/utils/hydration.mjs
12525    var React92 = __toESM(require_react(), 1);
12526    var import_shim2 = __toESM(require_shim(), 1);
12527    var emptySubscribe = () => () => {
12528    };
12529    var getTrue = () => true;
12530    var getFalse = () => false;
12531    function useIsHydratedModern() {
12532      return (0, import_shim2.useSyncExternalStore)(emptySubscribe, getTrue, getFalse);
12533    }
12534    function useIsHydratedLegacy() {
12535      const [hydrated, setHydrated] = React92.useState(false);
12536      React92.useEffect(() => {
12537        setHydrated(true);
12538      }, []);
12539      return hydrated;
12540    }
12541    var useIsHydrated = isReactVersionAtLeast(18) ? useIsHydratedModern : useIsHydratedLegacy;
12542    function useIsHydrating() {
12543      return !useIsHydrated();
12544    }
12545  
12546    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/internals/PrehydrationScript.mjs
12547    var React93 = __toESM(require_react(), 1);
12548    var import_jsx_runtime47 = __toESM(require_jsx_runtime(), 1);
12549    function PrehydrationScript(props) {
12550      const {
12551        script: script2
12552      } = props;
12553      const {
12554        nonce
12555      } = useCSPContext();
12556      const isHydrating = useIsHydrating();
12557      if (!isHydrating) {
12558        return null;
12559      }
12560      return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("script", {
12561        nonce,
12562        dangerouslySetInnerHTML: {
12563          __html: script2
12564        },
12565        suppressHydrationWarning: true
12566      });
12567    }
12568  
12569    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/index.parts.mjs
12570    var index_parts_exports3 = {};
12571    __export(index_parts_exports3, {
12572      Indicator: () => TabsIndicator,
12573      List: () => TabsList,
12574      Panel: () => TabsPanel,
12575      Root: () => TabsRoot,
12576      Tab: () => TabsTab
12577    });
12578  
12579    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/root/TabsRoot.mjs
12580    var React95 = __toESM(require_react(), 1);
12581  
12582    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/root/TabsRootContext.mjs
12583    var React94 = __toESM(require_react(), 1);
12584    var TabsRootContext = /* @__PURE__ */ React94.createContext(void 0);
12585    if (true) TabsRootContext.displayName = "TabsRootContext";
12586    function useTabsRootContext() {
12587      const context = React94.useContext(TabsRootContext);
12588      if (context === void 0) {
12589        throw new Error(true ? "Base UI: TabsRootContext is missing. Tabs parts must be placed within <Tabs.Root>." : formatErrorMessage_default(64));
12590      }
12591      return context;
12592    }
12593  
12594    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/root/TabsRootDataAttributes.mjs
12595    var activationDirection = "data-activation-direction";
12596  
12597    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/root/stateAttributesMapping.mjs
12598    var tabsStateAttributesMapping = {
12599      tabActivationDirection: (dir) => ({
12600        [activationDirection]: dir
12601      })
12602    };
12603  
12604    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/root/TabsRoot.mjs
12605    var import_jsx_runtime48 = __toESM(require_jsx_runtime(), 1);
12606    var TabsRoot = /* @__PURE__ */ React95.forwardRef(function TabsRoot2(componentProps, forwardedRef) {
12607      const {
12608        className,
12609        defaultValue: defaultValueProp = 0,
12610        onValueChange: onValueChangeProp,
12611        orientation = "horizontal",
12612        render,
12613        value: valueProp,
12614        style,
12615        ...elementProps
12616      } = componentProps;
12617      const hasExplicitDefaultValueProp = componentProps.defaultValue !== void 0;
12618      const tabPanelRefs = React95.useRef([]);
12619      const [mountedTabPanels, setMountedTabPanels] = React95.useState(() => /* @__PURE__ */ new Map());
12620      const [value, setValue] = useControlled({
12621        controlled: valueProp,
12622        default: defaultValueProp,
12623        name: "Tabs",
12624        state: "value"
12625      });
12626      const isControlled = valueProp !== void 0;
12627      const [tabMap, setTabMap] = React95.useState(() => /* @__PURE__ */ new Map());
12628      const lastKnownTabElementRef = React95.useRef(void 0);
12629      const getTabElementBySelectedValue = React95.useCallback((selectedValue) => findTabElement(tabMap, selectedValue), [tabMap]);
12630      const [activationDirectionState, setActivationDirectionState] = React95.useState(() => ({
12631        previousValue: value,
12632        tabActivationDirection: "none"
12633      }));
12634      const {
12635        previousValue,
12636        tabActivationDirection: committedTabActivationDirection
12637      } = activationDirectionState;
12638      let tabActivationDirection = committedTabActivationDirection;
12639      let directionComputationIncomplete = false;
12640      if (previousValue !== value) {
12641        tabActivationDirection = computeActivationDirection(previousValue, value, orientation, tabMap);
12642        directionComputationIncomplete = previousValue != null && value != null && getTabElementBySelectedValue(value) == null;
12643      }
12644      const nextPreviousValue = directionComputationIncomplete ? previousValue : value;
12645      const shouldSyncActivationDirectionState = previousValue !== nextPreviousValue || committedTabActivationDirection !== tabActivationDirection;
12646      useIsoLayoutEffect(() => {
12647        if (!shouldSyncActivationDirectionState) {
12648          return;
12649        }
12650        setActivationDirectionState({
12651          previousValue: nextPreviousValue,
12652          tabActivationDirection
12653        });
12654      }, [nextPreviousValue, shouldSyncActivationDirectionState, tabActivationDirection]);
12655      const onValueChange = useStableCallback((newValue, eventDetails) => {
12656        const activationDirection2 = computeActivationDirection(value, newValue, orientation, tabMap);
12657        eventDetails.activationDirection = activationDirection2;
12658        onValueChangeProp?.(newValue, eventDetails);
12659        if (eventDetails.isCanceled) {
12660          return;
12661        }
12662        setValue(() => newValue);
12663      });
12664      const notifyAutomaticValueChange = useStableCallback((nextValue, reason) => {
12665        onValueChangeProp?.(nextValue, createChangeEventDetails(reason, void 0, void 0, {
12666          activationDirection: "none"
12667        }));
12668      });
12669      const registerMountedTabPanel = useStableCallback((panelValue, panelId) => {
12670        setMountedTabPanels((prev) => {
12671          const next = new Map(prev);
12672          next.set(panelValue, panelId);
12673          return next;
12674        });
12675        return () => {
12676          setMountedTabPanels((prev) => {
12677            if (prev.get(panelValue) !== panelId) {
12678              return prev;
12679            }
12680            const next = new Map(prev);
12681            next.delete(panelValue);
12682            return next;
12683          });
12684        };
12685      });
12686      const getTabPanelIdByValue = React95.useCallback((tabValue) => {
12687        return mountedTabPanels.get(tabValue);
12688      }, [mountedTabPanels]);
12689      const getTabIdByPanelValue = React95.useCallback((tabPanelValue) => {
12690        for (const tabMetadata of tabMap.values()) {
12691          if (tabPanelValue === tabMetadata.value) {
12692            return tabMetadata.id;
12693          }
12694        }
12695        return void 0;
12696      }, [tabMap]);
12697      const tabsContextValue = React95.useMemo(() => ({
12698        getTabElementBySelectedValue,
12699        getTabIdByPanelValue,
12700        getTabPanelIdByValue,
12701        onValueChange,
12702        orientation,
12703        registerMountedTabPanel,
12704        setTabMap,
12705        tabActivationDirection,
12706        value
12707      }), [getTabElementBySelectedValue, getTabIdByPanelValue, getTabPanelIdByValue, onValueChange, orientation, registerMountedTabPanel, setTabMap, tabActivationDirection, value]);
12708      const selectedTabMetadata = React95.useMemo(() => {
12709        for (const tabMetadata of tabMap.values()) {
12710          if (tabMetadata.value === value) {
12711            return tabMetadata;
12712          }
12713        }
12714        return void 0;
12715      }, [tabMap, value]);
12716      const firstEnabledTabValue = React95.useMemo(() => {
12717        for (const tabMetadata of tabMap.values()) {
12718          if (!tabMetadata.disabled) {
12719            return tabMetadata.value;
12720          }
12721        }
12722        return void 0;
12723      }, [tabMap]);
12724      const shouldNotifyInitialValueChangeRef = React95.useRef(!hasExplicitDefaultValueProp);
12725      const initialDefaultValueRef = React95.useRef(defaultValueProp);
12726      const shouldHonorDisabledDefaultValueRef = React95.useRef(hasExplicitDefaultValueProp);
12727      const didRegisterTabsRef = React95.useRef(false);
12728      useIsoLayoutEffect(() => {
12729        if (isControlled) {
12730          return;
12731        }
12732        function commitAutomaticValueChange(fallbackValue, fallbackReason) {
12733          setValue(() => fallbackValue);
12734          setActivationDirectionState({
12735            previousValue: fallbackValue,
12736            tabActivationDirection: "none"
12737          });
12738          notifyAutomaticValueChange(fallbackValue, fallbackReason);
12739          shouldNotifyInitialValueChangeRef.current = false;
12740        }
12741        if (tabMap.size === 0) {
12742          if (didRegisterTabsRef.current && value !== null && !lastKnownTabElementRef.current?.isConnected) {
12743            commitAutomaticValueChange(null, reason_parts_exports.missing);
12744          }
12745          return;
12746        }
12747        didRegisterTabsRef.current = true;
12748        lastKnownTabElementRef.current = tabMap.keys().next().value;
12749        const selectionIsDisabled = selectedTabMetadata?.disabled;
12750        const selectionIsMissing = selectedTabMetadata == null && value !== null;
12751        if (!selectionIsDisabled && value === initialDefaultValueRef.current) {
12752          shouldHonorDisabledDefaultValueRef.current = false;
12753        }
12754        if (shouldHonorDisabledDefaultValueRef.current && selectionIsDisabled && value === initialDefaultValueRef.current) {
12755          return;
12756        }
12757        const shouldNotifyInitialValueChange = shouldNotifyInitialValueChangeRef.current;
12758        if (selectionIsDisabled || selectionIsMissing) {
12759          const fallbackValue = firstEnabledTabValue ?? null;
12760          if (value === fallbackValue) {
12761            shouldNotifyInitialValueChangeRef.current = false;
12762            return;
12763          }
12764          let fallbackReason = reason_parts_exports.missing;
12765          if (shouldNotifyInitialValueChange) {
12766            fallbackReason = reason_parts_exports.initial;
12767          } else if (selectionIsDisabled) {
12768            fallbackReason = reason_parts_exports.disabled;
12769          }
12770          commitAutomaticValueChange(fallbackValue, fallbackReason);
12771          return;
12772        }
12773        if (shouldNotifyInitialValueChange && selectedTabMetadata != null) {
12774          notifyAutomaticValueChange(value, reason_parts_exports.initial);
12775          shouldNotifyInitialValueChangeRef.current = false;
12776        }
12777      }, [firstEnabledTabValue, isControlled, notifyAutomaticValueChange, selectedTabMetadata, setValue, tabMap, value]);
12778      const state = {
12779        orientation,
12780        tabActivationDirection
12781      };
12782      const element = useRenderElement("div", componentProps, {
12783        state,
12784        ref: forwardedRef,
12785        props: elementProps,
12786        stateAttributesMapping: tabsStateAttributesMapping
12787      });
12788      return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(TabsRootContext.Provider, {
12789        value: tabsContextValue,
12790        children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(CompositeList, {
12791          elementsRef: tabPanelRefs,
12792          children: element
12793        })
12794      });
12795    });
12796    if (true) TabsRoot.displayName = "TabsRoot";
12797    function findTabElement(tabMap, value) {
12798      for (const [tabElement, tabMetadata] of tabMap.entries()) {
12799        if (value === tabMetadata.value) {
12800          return tabElement;
12801        }
12802      }
12803      return null;
12804    }
12805    function computeActivationDirection(oldValue, newValue, orientation, tabMap) {
12806      if (oldValue == null || newValue == null) {
12807        return "none";
12808      }
12809      const [positionProp, backward, forward] = orientation === "horizontal" ? ["left", "left", "right"] : ["top", "up", "down"];
12810      const oldTab = findTabElement(tabMap, oldValue);
12811      const newTab = findTabElement(tabMap, newValue);
12812      if (oldTab == null || newTab == null) {
12813        if (oldTab !== newTab && (typeof oldValue === "number" || typeof oldValue === "string") && typeof oldValue === typeof newValue) {
12814          return newValue > oldValue ? forward : backward;
12815        }
12816        return "none";
12817      }
12818      const oldPosition = oldTab.getBoundingClientRect()[positionProp];
12819      const newPosition = newTab.getBoundingClientRect()[positionProp];
12820      if (newPosition < oldPosition) {
12821        return backward;
12822      }
12823      if (newPosition > oldPosition) {
12824        return forward;
12825      }
12826      return "none";
12827    }
12828  
12829    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/tab/TabsTab.mjs
12830    var React97 = __toESM(require_react(), 1);
12831  
12832    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/list/TabsListContext.mjs
12833    var React96 = __toESM(require_react(), 1);
12834    var TabsListContext = /* @__PURE__ */ React96.createContext(void 0);
12835    if (true) TabsListContext.displayName = "TabsListContext";
12836    function useTabsListContext() {
12837      const context = React96.useContext(TabsListContext);
12838      if (context === void 0) {
12839        throw new Error(true ? "Base UI: TabsListContext is missing. TabsList parts must be placed within <Tabs.List>." : formatErrorMessage_default(65));
12840      }
12841      return context;
12842    }
12843  
12844    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/tab/TabsTab.mjs
12845    var TabsTab = /* @__PURE__ */ React97.forwardRef(function TabsTab2(componentProps, forwardedRef) {
12846      const {
12847        className,
12848        disabled: disabled2 = false,
12849        render,
12850        value,
12851        id: idProp,
12852        nativeButton = true,
12853        style,
12854        ...elementProps
12855      } = componentProps;
12856      const {
12857        value: activeTabValue,
12858        getTabPanelIdByValue,
12859        onValueChange,
12860        orientation,
12861        tabActivationDirection
12862      } = useTabsRootContext();
12863      const {
12864        activateOnFocus,
12865        registerTabResizeObserverElement,
12866        tabsListElement
12867      } = useTabsListContext();
12868      const {
12869        highlightedIndex,
12870        onHighlightedIndexChange
12871      } = useCompositeRootContext();
12872      const id = useBaseUiId(idProp);
12873      const tabMetadata = React97.useMemo(() => ({
12874        disabled: disabled2,
12875        id,
12876        value
12877      }), [disabled2, id, value]);
12878      const {
12879        compositeProps,
12880        compositeRef,
12881        index: index3
12882        // hook is used instead of the CompositeItem component
12883        // because the index is needed for Tab internals
12884      } = useCompositeItem({
12885        metadata: tabMetadata
12886      });
12887      const active = value === activeTabValue;
12888      const isNavigatingRef = React97.useRef(false);
12889      const unobserveTabElementRef = React97.useRef(null);
12890      const observeTabElement = useStableCallback((element2) => {
12891        unobserveTabElementRef.current?.();
12892        unobserveTabElementRef.current = element2 ? registerTabResizeObserverElement(element2) : null;
12893      });
12894      useIsoLayoutEffect(() => {
12895        if (isNavigatingRef.current) {
12896          isNavigatingRef.current = false;
12897          return;
12898        }
12899        if (!(active && index3 > -1 && highlightedIndex !== index3)) {
12900          return;
12901        }
12902        const listElement = tabsListElement;
12903        if (listElement != null) {
12904          const activeEl = activeElement(ownerDocument(listElement));
12905          if (activeEl && contains(listElement, activeEl)) {
12906            return;
12907          }
12908        }
12909        if (!disabled2) {
12910          onHighlightedIndexChange(index3);
12911        }
12912      }, [active, index3, highlightedIndex, onHighlightedIndexChange, disabled2, tabsListElement]);
12913      const {
12914        getButtonProps,
12915        buttonRef
12916      } = useButton({
12917        disabled: disabled2,
12918        native: nativeButton,
12919        focusableWhenDisabled: true
12920      });
12921      const tabPanelId = getTabPanelIdByValue(value);
12922      const isPressingRef = React97.useRef(false);
12923      const isMainButtonRef = React97.useRef(false);
12924      function activate(event) {
12925        onValueChange(value, createChangeEventDetails(reason_parts_exports.none, event.nativeEvent, void 0, {
12926          activationDirection: "none"
12927        }));
12928      }
12929      function onClick(event) {
12930        if (active || disabled2) {
12931          return;
12932        }
12933        activate(event);
12934      }
12935      function onFocus(event) {
12936        if (active || disabled2) {
12937          return;
12938        }
12939        if (activateOnFocus && (!isPressingRef.current || // keyboard or touch focus
12940        isMainButtonRef.current)) {
12941          activate(event);
12942        }
12943      }
12944      function onPointerDown(event) {
12945        if (active || disabled2) {
12946          return;
12947        }
12948        isPressingRef.current = true;
12949        isMainButtonRef.current = event.button === 0;
12950        const doc = ownerDocument(event.currentTarget);
12951        function handlePointerEnd() {
12952          isPressingRef.current = false;
12953          isMainButtonRef.current = false;
12954          doc.removeEventListener("pointerup", handlePointerEnd);
12955          doc.removeEventListener("pointercancel", handlePointerEnd);
12956        }
12957        doc.addEventListener("pointerup", handlePointerEnd);
12958        doc.addEventListener("pointercancel", handlePointerEnd);
12959      }
12960      const state = {
12961        disabled: disabled2,
12962        active,
12963        orientation,
12964        tabActivationDirection
12965      };
12966      const element = useRenderElement("button", componentProps, {
12967        state,
12968        ref: [forwardedRef, buttonRef, compositeRef, observeTabElement],
12969        props: [compositeProps, {
12970          role: "tab",
12971          "aria-controls": tabPanelId,
12972          "aria-selected": active,
12973          id,
12974          onClick,
12975          onFocus,
12976          onPointerDown,
12977          [ACTIVE_COMPOSITE_ITEM]: active ? "" : void 0,
12978          onKeyDownCapture() {
12979            isNavigatingRef.current = true;
12980          }
12981        }, elementProps, getButtonProps],
12982        stateAttributesMapping: tabsStateAttributesMapping
12983      });
12984      return element;
12985    });
12986    if (true) TabsTab.displayName = "TabsTab";
12987  
12988    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/indicator/TabsIndicator.mjs
12989    var React98 = __toESM(require_react(), 1);
12990  
12991    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/indicator/TabsIndicatorCssVars.mjs
12992    var activeTabLeft = "--active-tab-left";
12993    var activeTabRight = "--active-tab-right";
12994    var activeTabTop = "--active-tab-top";
12995    var activeTabBottom = "--active-tab-bottom";
12996    var activeTabWidth = "--active-tab-width";
12997    var activeTabHeight = "--active-tab-height";
12998  
12999    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/indicator/TabsIndicator.mjs
13000    var import_jsx_runtime49 = __toESM(require_jsx_runtime(), 1);
13001    var _PrehydrationScript;
13002    var stateAttributesMapping6 = {
13003      ...tabsStateAttributesMapping,
13004      activeTabPosition: () => null,
13005      activeTabSize: () => null
13006    };
13007    var MAX_LAYOUT_ROUNDING_ERROR = 2;
13008    var TabsIndicator = /* @__PURE__ */ React98.forwardRef(function TabsIndicator2(componentProps, forwardedRef) {
13009      const {
13010        className,
13011        render,
13012        renderBeforeHydration = false,
13013        style: styleProp,
13014        ...elementProps
13015      } = componentProps;
13016      const {
13017        getTabElementBySelectedValue,
13018        orientation,
13019        tabActivationDirection,
13020        value
13021      } = useTabsRootContext();
13022      const {
13023        tabsListElement,
13024        registerIndicatorUpdateListener
13025      } = useTabsListContext();
13026      const rerender = useForcedRerendering();
13027      React98.useEffect(() => {
13028        return registerIndicatorUpdateListener(rerender);
13029      }, [registerIndicatorUpdateListener, rerender]);
13030      let left = 0;
13031      let right = 0;
13032      let top = 0;
13033      let bottom = 0;
13034      let width = 0;
13035      let height = 0;
13036      let isTabSelected = false;
13037      if (value != null && tabsListElement != null) {
13038        const activeTab = getTabElementBySelectedValue(value);
13039        if (activeTab != null) {
13040          isTabSelected = true;
13041          const {
13042            width: computedWidth,
13043            height: computedHeight
13044          } = getCssDimensions2(activeTab);
13045          const {
13046            width: tabListWidth,
13047            height: tabListHeight
13048          } = getCssDimensions2(tabsListElement);
13049          const tabRect = activeTab.getBoundingClientRect();
13050          const tabsListRect = tabsListElement.getBoundingClientRect();
13051          const scaleX = tabListWidth > 0 ? tabsListRect.width / tabListWidth : 1;
13052          const scaleY = tabListHeight > 0 ? tabsListRect.height / tabListHeight : 1;
13053          const layoutOffset = getLayoutOffset(activeTab, tabsListElement);
13054          left = layoutOffset.left;
13055          top = layoutOffset.top;
13056          const rectLeft = (tabRect.left - tabsListRect.left) / scaleX + tabsListElement.scrollLeft - tabsListElement.clientLeft;
13057          const rectTop = (tabRect.top - tabsListRect.top) / scaleY + tabsListElement.scrollTop - tabsListElement.clientTop;
13058          const tabTranslation = getActiveTabTranslation(activeTab);
13059          if (Math.abs(rectLeft - tabTranslation.x - left) <= MAX_LAYOUT_ROUNDING_ERROR && Math.abs(rectTop - tabTranslation.y - top) <= MAX_LAYOUT_ROUNDING_ERROR) {
13060            left = rectLeft;
13061            top = rectTop;
13062          }
13063          width = computedWidth;
13064          height = computedHeight;
13065          right = tabsListElement.scrollWidth - left - width;
13066          bottom = tabsListElement.scrollHeight - top - height;
13067        }
13068      }
13069      const activeTabPosition = isTabSelected ? {
13070        left,
13071        right,
13072        top,
13073        bottom
13074      } : null;
13075      const activeTabSize = isTabSelected ? {
13076        width,
13077        height
13078      } : null;
13079      const style = isTabSelected ? {
13080        [activeTabLeft]: `$left}px`,
13081        [activeTabRight]: `$right}px`,
13082        [activeTabTop]: `$top}px`,
13083        [activeTabBottom]: `$bottom}px`,
13084        [activeTabWidth]: `$width}px`,
13085        [activeTabHeight]: `$height}px`
13086      } : void 0;
13087      const displayIndicator = isTabSelected && width > 0 && height > 0;
13088      const state = {
13089        orientation,
13090        activeTabPosition,
13091        activeTabSize,
13092        tabActivationDirection
13093      };
13094      const element = useRenderElement("span", componentProps, {
13095        state,
13096        ref: forwardedRef,
13097        props: [{
13098          role: "presentation",
13099          style,
13100          hidden: !displayIndicator
13101          // do not display the indicator before the layout is settled
13102        }, elementProps, {
13103          suppressHydrationWarning: true
13104        }],
13105        stateAttributesMapping: stateAttributesMapping6
13106      });
13107      if (value == null) {
13108        return null;
13109      }
13110      return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(React98.Fragment, {
13111        children: [element, renderBeforeHydration && (_PrehydrationScript || (_PrehydrationScript = /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PrehydrationScript, {
13112          script
13113        })))]
13114      });
13115    });
13116    if (true) TabsIndicator.displayName = "TabsIndicator";
13117    function getLayoutOffset(element, ancestor) {
13118      const elementOffset = getCumulativeOffset(element);
13119      const ancestorOffset = getCumulativeOffset(ancestor);
13120      let left = elementOffset.left - ancestorOffset.left - ancestor.clientLeft;
13121      let top = elementOffset.top - ancestorOffset.top - ancestor.clientTop;
13122      let node = getParentNode(element);
13123      while (isHTMLElement(node) && node !== ancestor && !isLastTraversableNode(node)) {
13124        left -= node.scrollLeft;
13125        top -= node.scrollTop;
13126        node = getParentNode(node);
13127      }
13128      return {
13129        left,
13130        top
13131      };
13132    }
13133    function getCumulativeOffset(element) {
13134      let left = 0;
13135      let top = 0;
13136      let currentElement = element;
13137      while (currentElement != null) {
13138        left += currentElement.offsetLeft;
13139        top += currentElement.offsetTop;
13140        const offsetParent = currentElement.offsetParent;
13141        if (offsetParent != null) {
13142          left += offsetParent.clientLeft;
13143          top += offsetParent.clientTop;
13144        }
13145        currentElement = offsetParent;
13146      }
13147      return {
13148        left,
13149        top
13150      };
13151    }
13152    function getActiveTabTranslation(element) {
13153      const computedStyle = getWindow(element).getComputedStyle(element);
13154      const {
13155        x,
13156        y
13157      } = getElementTransform(element, computedStyle);
13158      let translateX = x;
13159      let translateY = y;
13160      const {
13161        translate
13162      } = computedStyle;
13163      if (translate && translate !== "none") {
13164        const parts = translate.split(" ");
13165        translateX += resolveTranslateLength(parts[0], element.offsetWidth);
13166        translateY += resolveTranslateLength(parts[1], element.offsetHeight);
13167      }
13168      return {
13169        x: translateX,
13170        y: translateY
13171      };
13172    }
13173    function resolveTranslateLength(value, referenceSize) {
13174      if (!value) {
13175        return 0;
13176      }
13177      const numeric = parseFloat(value);
13178      if (!Number.isFinite(numeric)) {
13179        return 0;
13180      }
13181      return value.endsWith("%") ? numeric / 100 * referenceSize : numeric;
13182    }
13183  
13184    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/panel/TabsPanel.mjs
13185    var React99 = __toESM(require_react(), 1);
13186  
13187    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/panel/TabsPanelDataAttributes.mjs
13188    var index2 = "data-index";
13189    var startingStyle2 = TransitionStatusDataAttributes_exports.startingStyle;
13190    var endingStyle2 = TransitionStatusDataAttributes_exports.endingStyle;
13191  
13192    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/panel/TabsPanel.mjs
13193    var stateAttributesMapping7 = {
13194      ...tabsStateAttributesMapping,
13195      ...transitionStatusMapping
13196    };
13197    var TabsPanel = /* @__PURE__ */ React99.forwardRef(function TabsPanel2(componentProps, forwardedRef) {
13198      const {
13199        className,
13200        value,
13201        render,
13202        keepMounted = false,
13203        style,
13204        ...elementProps
13205      } = componentProps;
13206      const {
13207        value: selectedValue,
13208        getTabIdByPanelValue,
13209        orientation,
13210        tabActivationDirection,
13211        registerMountedTabPanel
13212      } = useTabsRootContext();
13213      const id = useBaseUiId();
13214      const {
13215        ref: listItemRef,
13216        index: index3
13217      } = useCompositeListItem();
13218      const open2 = value === selectedValue;
13219      const {
13220        mounted,
13221        transitionStatus,
13222        setMounted
13223      } = useTransitionStatus(open2);
13224      const hidden = !mounted;
13225      const correspondingTabId = getTabIdByPanelValue(value);
13226      const state = {
13227        hidden,
13228        orientation,
13229        tabActivationDirection,
13230        transitionStatus
13231      };
13232      const panelRef = React99.useRef(null);
13233      const element = useRenderElement("div", componentProps, {
13234        state,
13235        ref: [forwardedRef, listItemRef, panelRef],
13236        props: [{
13237          "aria-labelledby": correspondingTabId,
13238          hidden,
13239          id,
13240          role: "tabpanel",
13241          tabIndex: open2 ? 0 : -1,
13242          inert: inertValue(!open2),
13243          // Computed key: a plain literal key fails the DOM-props excess property check.
13244          [index2]: index3
13245        }, elementProps],
13246        stateAttributesMapping: stateAttributesMapping7
13247      });
13248      useOpenChangeComplete({
13249        open: open2,
13250        ref: panelRef,
13251        onComplete() {
13252          if (!open2) {
13253            setMounted(false);
13254          }
13255        }
13256      });
13257      useIsoLayoutEffect(() => {
13258        if (id == null || hidden && !keepMounted) {
13259          return void 0;
13260        }
13261        return registerMountedTabPanel(value, id);
13262      }, [hidden, keepMounted, value, id, registerMountedTabPanel]);
13263      const shouldRender = keepMounted || mounted;
13264      if (!shouldRender) {
13265        return null;
13266      }
13267      return element;
13268    });
13269    if (true) TabsPanel.displayName = "TabsPanel";
13270  
13271    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/tabs/list/TabsList.mjs
13272    var React100 = __toESM(require_react(), 1);
13273    var import_jsx_runtime50 = __toESM(require_jsx_runtime(), 1);
13274    var TabsList = /* @__PURE__ */ React100.forwardRef(function TabsList2(componentProps, forwardedRef) {
13275      const {
13276        activateOnFocus = false,
13277        className,
13278        loopFocus = true,
13279        render,
13280        style,
13281        ...elementProps
13282      } = componentProps;
13283      const {
13284        orientation,
13285        setTabMap,
13286        tabActivationDirection
13287      } = useTabsRootContext();
13288      const [highlightedTabIndex, setHighlightedTabIndex] = React100.useState(0);
13289      const [tabsListElement, setTabsListElement] = React100.useState(null);
13290      const indicatorUpdateListenersRef = React100.useRef(/* @__PURE__ */ new Set());
13291      const tabResizeObserverElementsRef = React100.useRef(/* @__PURE__ */ new Set());
13292      const resizeObserverRef = React100.useRef(null);
13293      useIsoLayoutEffect(() => {
13294        if (typeof ResizeObserver === "undefined") {
13295          return void 0;
13296        }
13297        const resizeObserver = new ResizeObserver(() => {
13298          indicatorUpdateListenersRef.current.forEach((listener) => {
13299            listener();
13300          });
13301        });
13302        resizeObserverRef.current = resizeObserver;
13303        if (tabsListElement) {
13304          resizeObserver.observe(tabsListElement);
13305        }
13306        tabResizeObserverElementsRef.current.forEach((element) => {
13307          resizeObserver.observe(element);
13308        });
13309        return () => {
13310          resizeObserver.disconnect();
13311          resizeObserverRef.current = null;
13312        };
13313      }, [tabsListElement]);
13314      const registerIndicatorUpdateListener = useStableCallback((listener) => {
13315        indicatorUpdateListenersRef.current.add(listener);
13316        return () => {
13317          indicatorUpdateListenersRef.current.delete(listener);
13318        };
13319      });
13320      const registerTabResizeObserverElement = useStableCallback((element) => {
13321        tabResizeObserverElementsRef.current.add(element);
13322        resizeObserverRef.current?.observe(element);
13323        return () => {
13324          tabResizeObserverElementsRef.current.delete(element);
13325          resizeObserverRef.current?.unobserve(element);
13326        };
13327      });
13328      const state = {
13329        orientation,
13330        tabActivationDirection
13331      };
13332      const defaultProps = {
13333        "aria-orientation": orientation === "vertical" ? "vertical" : void 0,
13334        role: "tablist"
13335      };
13336      const tabsListContextValue = React100.useMemo(() => ({
13337        activateOnFocus,
13338        registerIndicatorUpdateListener,
13339        registerTabResizeObserverElement,
13340        tabsListElement
13341      }), [activateOnFocus, registerIndicatorUpdateListener, registerTabResizeObserverElement, tabsListElement]);
13342      return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(TabsListContext.Provider, {
13343        value: tabsListContextValue,
13344        children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(CompositeRoot, {
13345          render,
13346          className,
13347          style,
13348          state,
13349          refs: [forwardedRef, setTabsListElement],
13350          props: [defaultProps, elementProps],
13351          stateAttributesMapping: tabsStateAttributesMapping,
13352          highlightedIndex: highlightedTabIndex,
13353          enableHomeAndEndKeys: true,
13354          loopFocus,
13355          orientation,
13356          onHighlightedIndexChange: setHighlightedTabIndex,
13357          onMapChange: setTabMap,
13358          disabledIndices: EMPTY_ARRAY
13359        })
13360      });
13361    });
13362    if (true) TabsList.displayName = "TabsList";
13363  
13364    // node_modules/.store/@base-ui/react@1.9.0-uHNeM94OdjIeOtpyYGvL0A/node_modules/@base-ui/react/use-render/useRender.mjs
13365    function useRender(params) {
13366      return useRenderElement(params.defaultTagName ?? "div", params, params);
13367    }
13368  
13369    // packages/ui/build-module/text/text.mjs
13370    var import_element9 = __toESM(require_element(), 1);
13371    var STYLE_HASH_ATTRIBUTE = "data-wp-hash";
13372    function getRuntime() {
13373      const globalScope = globalThis;
13374      if (globalScope.__wpStyleRuntime) {
13375        return globalScope.__wpStyleRuntime;
13376      }
13377      globalScope.__wpStyleRuntime = {
13378        documents: /* @__PURE__ */ new Map(),
13379        styles: /* @__PURE__ */ new Map(),
13380        injectedStyles: /* @__PURE__ */ new WeakMap()
13381      };
13382      if (typeof document !== "undefined") {
13383        registerDocument(document);
13384      }
13385      return globalScope.__wpStyleRuntime;
13386    }
13387    function documentContainsStyleHash(targetDocument, hash) {
13388      if (!targetDocument.head) {
13389        return false;
13390      }
13391      for (const style of targetDocument.head.querySelectorAll(
13392        `style[$STYLE_HASH_ATTRIBUTE}]`
13393      )) {
13394        if (style.getAttribute(STYLE_HASH_ATTRIBUTE) === hash) {
13395          return true;
13396        }
13397      }
13398      return false;
13399    }
13400    function injectStyle(targetDocument, hash, css) {
13401      if (!targetDocument.head) {
13402        return;
13403      }
13404      const runtime = getRuntime();
13405      let injectedStyles = runtime.injectedStyles.get(targetDocument);
13406      if (!injectedStyles) {
13407        injectedStyles = /* @__PURE__ */ new Set();
13408        runtime.injectedStyles.set(targetDocument, injectedStyles);
13409      }
13410      if (injectedStyles.has(hash)) {
13411        return;
13412      }
13413      if (documentContainsStyleHash(targetDocument, hash)) {
13414        injectedStyles.add(hash);
13415        return;
13416      }
13417      const style = targetDocument.createElement("style");
13418      style.setAttribute(STYLE_HASH_ATTRIBUTE, hash);
13419      style.appendChild(targetDocument.createTextNode(css));
13420      targetDocument.head.appendChild(style);
13421      injectedStyles.add(hash);
13422    }
13423    function registerDocument(targetDocument) {
13424      const runtime = getRuntime();
13425      runtime.documents.set(
13426        targetDocument,
13427        (runtime.documents.get(targetDocument) ?? 0) + 1
13428      );
13429      for (const [hash, css] of runtime.styles) {
13430        injectStyle(targetDocument, hash, css);
13431      }
13432      return () => {
13433        const count = runtime.documents.get(targetDocument);
13434        if (count === void 0) {
13435          return;
13436        }
13437        if (count <= 1) {
13438          runtime.documents.delete(targetDocument);
13439          return;
13440        }
13441        runtime.documents.set(targetDocument, count - 1);
13442      };
13443    }
13444    function registerStyle(hash, css) {
13445      const runtime = getRuntime();
13446      runtime.styles.set(hash, css);
13447      for (const targetDocument of runtime.documents.keys()) {
13448        injectStyle(targetDocument, hash, css);
13449      }
13450    }
13451    if (typeof process === "undefined" || true) {
13452      registerStyle("09bae534ff", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._9745ffa515d864cf__text{text-wrap:pretty;margin:0}._8882b6a7feb4fd3d__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)}._664e3e7687c45603__heading-xl,._8882b6a7feb4fd3d__heading-2xl{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)}._664e3e7687c45603__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)}.dac661a5de0ed2bd__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)}._59c7f3f740e2f96e__heading-md,.dac661a5de0ed2bd__heading-lg{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)}._59c7f3f740e2f96e__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)}.cf052fbad8d93b7e__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}._212b9cfef57a0af4__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)}._07f57bc0aa36b2c6__body-lg,._212b9cfef57a0af4__body-xl{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)}._07f57bc0aa36b2c6__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)}._0c6da4457aec9e62__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)}._0c6da4457aec9e62__body-md,.b998f87ff17b7bec__body-sm{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)}.b998f87ff17b7bec__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)}}}');
13453    }
13454    var style_default = { "text": "_9745ffa515d864cf__text", "heading-2xl": "_8882b6a7feb4fd3d__heading-2xl", "heading-xl": "_664e3e7687c45603__heading-xl", "heading-lg": "dac661a5de0ed2bd__heading-lg", "heading-md": "_59c7f3f740e2f96e__heading-md", "heading-sm": "cf052fbad8d93b7e__heading-sm", "body-xl": "_212b9cfef57a0af4__body-xl", "body-lg": "_07f57bc0aa36b2c6__body-lg", "body-md": "_0c6da4457aec9e62__body-md", "body-sm": "b998f87ff17b7bec__body-sm" };
13455    if (typeof process === "undefined" || true) {
13456      registerStyle("726f348f3f", "._78c10a0773e51a91__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)}._5b33aa2d48624b4f__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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}}._980b3b4776ac8f81__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._43e478b4279a076c__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._698099e25b0fb1a6__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)._326aee4184d261fd__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)}.e9576240835601ba__a,.e9576240835601ba__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)}._3f05789653864a73__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._3c72ff72abe57859__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._79d16267c15d9eb2__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");
13457    }
13458    var global_css_defense_default = { "button": "_78c10a0773e51a91__button", "input": "_5b33aa2d48624b4f__input", "textarea": "_980b3b4776ac8f81__textarea", "div": "_43e478b4279a076c__div", "p": "_698099e25b0fb1a6__p", "heading": "_326aee4184d261fd__heading", "a": "e9576240835601ba__a", "ol": "_3f05789653864a73__ol", "li": "_3c72ff72abe57859__li", "span": "_79d16267c15d9eb2__span" };
13459    var Text = (0, import_element9.forwardRef)(
13460      function UnforwardedText({ variant = "body-md", render, className, ...props }, ref) {
13461        const element = useRender({
13462          render,
13463          defaultTagName: "span",
13464          ref,
13465          props: mergeProps(props, {
13466            className: clsx_default(
13467              style_default.text,
13468              global_css_defense_default.heading,
13469              global_css_defense_default.p,
13470              style_default[variant],
13471              className
13472            )
13473          })
13474        });
13475        return element;
13476      }
13477    );
13478  
13479    // packages/ui/build-module/spinner/spinner.mjs
13480    var import_element10 = __toESM(require_element(), 1);
13481    var import_jsx_runtime51 = __toESM(require_jsx_runtime(), 1);
13482    var STYLE_HASH_ATTRIBUTE2 = "data-wp-hash";
13483    function getRuntime2() {
13484      const globalScope = globalThis;
13485      if (globalScope.__wpStyleRuntime) {
13486        return globalScope.__wpStyleRuntime;
13487      }
13488      globalScope.__wpStyleRuntime = {
13489        documents: /* @__PURE__ */ new Map(),
13490        styles: /* @__PURE__ */ new Map(),
13491        injectedStyles: /* @__PURE__ */ new WeakMap()
13492      };
13493      if (typeof document !== "undefined") {
13494        registerDocument2(document);
13495      }
13496      return globalScope.__wpStyleRuntime;
13497    }
13498    function documentContainsStyleHash2(targetDocument, hash) {
13499      if (!targetDocument.head) {
13500        return false;
13501      }
13502      for (const style of targetDocument.head.querySelectorAll(
13503        `style[$STYLE_HASH_ATTRIBUTE2}]`
13504      )) {
13505        if (style.getAttribute(STYLE_HASH_ATTRIBUTE2) === hash) {
13506          return true;
13507        }
13508      }
13509      return false;
13510    }
13511    function injectStyle2(targetDocument, hash, css) {
13512      if (!targetDocument.head) {
13513        return;
13514      }
13515      const runtime = getRuntime2();
13516      let injectedStyles = runtime.injectedStyles.get(targetDocument);
13517      if (!injectedStyles) {
13518        injectedStyles = /* @__PURE__ */ new Set();
13519        runtime.injectedStyles.set(targetDocument, injectedStyles);
13520      }
13521      if (injectedStyles.has(hash)) {
13522        return;
13523      }
13524      if (documentContainsStyleHash2(targetDocument, hash)) {
13525        injectedStyles.add(hash);
13526        return;
13527      }
13528      const style = targetDocument.createElement("style");
13529      style.setAttribute(STYLE_HASH_ATTRIBUTE2, hash);
13530      style.appendChild(targetDocument.createTextNode(css));
13531      targetDocument.head.appendChild(style);
13532      injectedStyles.add(hash);
13533    }
13534    function registerDocument2(targetDocument) {
13535      const runtime = getRuntime2();
13536      runtime.documents.set(
13537        targetDocument,
13538        (runtime.documents.get(targetDocument) ?? 0) + 1
13539      );
13540      for (const [hash, css] of runtime.styles) {
13541        injectStyle2(targetDocument, hash, css);
13542      }
13543      return () => {
13544        const count = runtime.documents.get(targetDocument);
13545        if (count === void 0) {
13546          return;
13547        }
13548        if (count <= 1) {
13549          runtime.documents.delete(targetDocument);
13550          return;
13551        }
13552        runtime.documents.set(targetDocument, count - 1);
13553      };
13554    }
13555    function registerStyle2(hash, css) {
13556      const runtime = getRuntime2();
13557      runtime.styles.set(hash, css);
13558      for (const targetDocument of runtime.documents.keys()) {
13559        injectStyle2(targetDocument, hash, css);
13560      }
13561    }
13562    if (typeof process === "undefined" || true) {
13563      registerStyle2("b081213352", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.da418dc15e63be57__spinner{background-color:transparent;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:inline-block;height:var(--wpds-dimension-size-2xs,16px);opacity:1;overflow:visible;position:relative;width:var(--wpds-dimension-size-2xs,16px)}._8b83deccaefa3c92__indicator{fill:transparent;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;transform-origin:50% 50%;@media (forced-colors:active){stroke:CanvasText}animation:_0da63cf2c7b08803__spinner-spin 1.4s linear infinite both}@keyframes _0da63cf2c7b08803__spinner-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}}}");
13564    }
13565    var style_default2 = { "spinner": "da418dc15e63be57__spinner", "indicator": "_8b83deccaefa3c92__indicator", "spinner-spin": "_0da63cf2c7b08803__spinner-spin" };
13566    var Spinner = (0, import_element10.forwardRef)(
13567      function UnforwardedSpinner({ className, color, style, ...props }, ref) {
13568        return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13569          "svg",
13570          {
13571            className: clsx_default(style_default2.spinner, className),
13572            style: color === void 0 ? style : { ...style, color },
13573            viewBox: "0 0 24 24",
13574            xmlns: "http://www.w3.org/2000/svg",
13575            role: "presentation",
13576            focusable: "false",
13577            ...props,
13578            ref,
13579            children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
13580              "path",
13581              {
13582                className: style_default2.indicator,
13583                d: "m 12 0 a 12 12 0 0 1 0 24"
13584              }
13585            )
13586          }
13587        );
13588      }
13589    );
13590  
13591    // packages/ui/build-module/visually-hidden/visually-hidden.mjs
13592    var import_element11 = __toESM(require_element(), 1);
13593    var STYLE_HASH_ATTRIBUTE3 = "data-wp-hash";
13594    function getRuntime3() {
13595      const globalScope = globalThis;
13596      if (globalScope.__wpStyleRuntime) {
13597        return globalScope.__wpStyleRuntime;
13598      }
13599      globalScope.__wpStyleRuntime = {
13600        documents: /* @__PURE__ */ new Map(),
13601        styles: /* @__PURE__ */ new Map(),
13602        injectedStyles: /* @__PURE__ */ new WeakMap()
13603      };
13604      if (typeof document !== "undefined") {
13605        registerDocument3(document);
13606      }
13607      return globalScope.__wpStyleRuntime;
13608    }
13609    function documentContainsStyleHash3(targetDocument, hash) {
13610      if (!targetDocument.head) {
13611        return false;
13612      }
13613      for (const style of targetDocument.head.querySelectorAll(
13614        `style[$STYLE_HASH_ATTRIBUTE3}]`
13615      )) {
13616        if (style.getAttribute(STYLE_HASH_ATTRIBUTE3) === hash) {
13617          return true;
13618        }
13619      }
13620      return false;
13621    }
13622    function injectStyle3(targetDocument, hash, css) {
13623      if (!targetDocument.head) {
13624        return;
13625      }
13626      const runtime = getRuntime3();
13627      let injectedStyles = runtime.injectedStyles.get(targetDocument);
13628      if (!injectedStyles) {
13629        injectedStyles = /* @__PURE__ */ new Set();
13630        runtime.injectedStyles.set(targetDocument, injectedStyles);
13631      }
13632      if (injectedStyles.has(hash)) {
13633        return;
13634      }
13635      if (documentContainsStyleHash3(targetDocument, hash)) {
13636        injectedStyles.add(hash);
13637        return;
13638      }
13639      const style = targetDocument.createElement("style");
13640      style.setAttribute(STYLE_HASH_ATTRIBUTE3, hash);
13641      style.appendChild(targetDocument.createTextNode(css));
13642      targetDocument.head.appendChild(style);
13643      injectedStyles.add(hash);
13644    }
13645    function registerDocument3(targetDocument) {
13646      const runtime = getRuntime3();
13647      runtime.documents.set(
13648        targetDocument,
13649        (runtime.documents.get(targetDocument) ?? 0) + 1
13650      );
13651      for (const [hash, css] of runtime.styles) {
13652        injectStyle3(targetDocument, hash, css);
13653      }
13654      return () => {
13655        const count = runtime.documents.get(targetDocument);
13656        if (count === void 0) {
13657          return;
13658        }
13659        if (count <= 1) {
13660          runtime.documents.delete(targetDocument);
13661          return;
13662        }
13663        runtime.documents.set(targetDocument, count - 1);
13664      };
13665    }
13666    function registerStyle3(hash, css) {
13667      const runtime = getRuntime3();
13668      runtime.styles.set(hash, css);
13669      for (const targetDocument of runtime.documents.keys()) {
13670        injectStyle3(targetDocument, hash, css);
13671      }
13672    }
13673    if (typeof process === "undefined" || true) {
13674      registerStyle3("7caae29f9e", ".e2c3cbe6ada7d785__visually-hidden{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;overflow-wrap:normal;padding:0;position:absolute;width:1px;word-break:normal}");
13675    }
13676    var style_default3 = { "visually-hidden": "e2c3cbe6ada7d785__visually-hidden" };
13677    var VisuallyHidden = (0, import_element11.forwardRef)(
13678      function UnforwardedVisuallyHidden({ render, ...restProps }, ref) {
13679        const element = useRender({
13680          render,
13681          ref,
13682          props: mergeProps(
13683            { className: style_default3["visually-hidden"] },
13684            restProps,
13685            {
13686              // @ts-expect-error Arbitrary data-* attributes aren't indexable on the typed div props. Kept hardcoded so consumers can't change or remove it.
13687              "data-visually-hidden": ""
13688            }
13689          )
13690        });
13691        return element;
13692      }
13693    );
13694  
13695    // packages/ui/build-module/utils/item-popup/item-content.mjs
13696    var import_element12 = __toESM(require_element(), 1);
13697    var VALIDATION_ENABLED = true;
13698    function parseItemContent(children, { Label: Label2, Description: Description2, validationMessage }) {
13699      const childArray = import_element12.Children.toArray(children);
13700      const [label, ...descriptions] = childArray;
13701      const hasLabel = (0, import_element12.isValidElement)(label) && label.type === Label2;
13702      const descriptionElements = descriptions.filter(
13703        (description) => (0, import_element12.isValidElement)(description) && description.type === Description2
13704      );
13705      if (VALIDATION_ENABLED && (!hasLabel || descriptionElements.length !== descriptions.length)) {
13706        throw new Error(validationMessage);
13707      }
13708      return {
13709        descriptionIds: descriptionElements.map(
13710          (description) => description.props.id
13711        ),
13712        hasLabel,
13713        labelId: hasLabel ? label.props.id : void 0
13714      };
13715    }
13716    function useItemContent(children, components, {
13717      "aria-describedby": ariaDescribedBy,
13718      "aria-label": ariaLabel,
13719      "aria-labelledby": ariaLabelledBy
13720    } = {}) {
13721      const generatedLabelId = (0, import_element12.useId)();
13722      const generatedDescriptionId = (0, import_element12.useId)();
13723      const { descriptionIds, hasLabel, labelId } = parseItemContent(
13724        children,
13725        components
13726      );
13727      const resolvedLabelId = hasLabel ? labelId ?? generatedLabelId : void 0;
13728      const resolvedDescriptionIds = descriptionIds.map(
13729        (descriptionId, index3) => descriptionId ?? `$generatedDescriptionId}-$index3}`
13730      );
13731      const itemDescribedBy = Array.from(
13732        /* @__PURE__ */ new Set([
13733          ...ariaDescribedBy?.split(/\s+/).filter(Boolean) ?? [],
13734          ...resolvedDescriptionIds
13735        ])
13736      ).join(" ");
13737      let descriptionIndex = 0;
13738      const { Label: Label2, Description: Description2, descriptionValidationToken } = components;
13739      const contentChildren = import_element12.Children.map(children, (child) => {
13740        if (!(0, import_element12.isValidElement)(child)) {
13741          return child;
13742        }
13743        if (child.type === Label2) {
13744          return child.props.id === resolvedLabelId ? child : (0, import_element12.cloneElement)(child, { id: resolvedLabelId });
13745        }
13746        if (child.type !== Description2) {
13747          return child;
13748        }
13749        const descriptionId = resolvedDescriptionIds[descriptionIndex++];
13750        if (!descriptionValidationToken && child.props.id === descriptionId) {
13751          return child;
13752        }
13753        return (0, import_element12.cloneElement)(child, {
13754          id: descriptionId,
13755          ...descriptionValidationToken && {
13756            validationToken: descriptionValidationToken
13757          }
13758        });
13759      });
13760      const labelledBy = ariaLabelledBy ?? (ariaLabel ? void 0 : resolvedLabelId);
13761      return {
13762        contentChildren,
13763        resolvedLabelId,
13764        itemAriaProps: {
13765          "aria-describedby": itemDescribedBy || void 0,
13766          "aria-label": ariaLabel,
13767          "aria-labelledby": labelledBy
13768        }
13769      };
13770    }
13771  
13772    // packages/ui/build-module/utils/render-slot-with-children.mjs
13773    var import_element13 = __toESM(require_element(), 1);
13774    function renderSlotWithChildren(slot, defaultSlot, children) {
13775      return (0, import_element13.cloneElement)(
13776        slot ?? defaultSlot,
13777        { children }
13778      );
13779    }
13780  
13781    // packages/ui/build-module/utils/wp-compat-overlay-slot.mjs
13782    var STYLE_HASH_ATTRIBUTE4 = "data-wp-hash";
13783    function getRuntime4() {
13784      const globalScope = globalThis;
13785      if (globalScope.__wpStyleRuntime) {
13786        return globalScope.__wpStyleRuntime;
13787      }
13788      globalScope.__wpStyleRuntime = {
13789        documents: /* @__PURE__ */ new Map(),
13790        styles: /* @__PURE__ */ new Map(),
13791        injectedStyles: /* @__PURE__ */ new WeakMap()
13792      };
13793      if (typeof document !== "undefined") {
13794        registerDocument4(document);
13795      }
13796      return globalScope.__wpStyleRuntime;
13797    }
13798    function documentContainsStyleHash4(targetDocument, hash) {
13799      if (!targetDocument.head) {
13800        return false;
13801      }
13802      for (const style of targetDocument.head.querySelectorAll(
13803        `style[$STYLE_HASH_ATTRIBUTE4}]`
13804      )) {
13805        if (style.getAttribute(STYLE_HASH_ATTRIBUTE4) === hash) {
13806          return true;
13807        }
13808      }
13809      return false;
13810    }
13811    function injectStyle4(targetDocument, hash, css) {
13812      if (!targetDocument.head) {
13813        return;
13814      }
13815      const runtime = getRuntime4();
13816      let injectedStyles = runtime.injectedStyles.get(targetDocument);
13817      if (!injectedStyles) {
13818        injectedStyles = /* @__PURE__ */ new Set();
13819        runtime.injectedStyles.set(targetDocument, injectedStyles);
13820      }
13821      if (injectedStyles.has(hash)) {
13822        return;
13823      }
13824      if (documentContainsStyleHash4(targetDocument, hash)) {
13825        injectedStyles.add(hash);
13826        return;
13827      }
13828      const style = targetDocument.createElement("style");
13829      style.setAttribute(STYLE_HASH_ATTRIBUTE4, hash);
13830      style.appendChild(targetDocument.createTextNode(css));
13831      targetDocument.head.appendChild(style);
13832      injectedStyles.add(hash);
13833    }
13834    function registerDocument4(targetDocument) {
13835      const runtime = getRuntime4();
13836      runtime.documents.set(
13837        targetDocument,
13838        (runtime.documents.get(targetDocument) ?? 0) + 1
13839      );
13840      for (const [hash, css] of runtime.styles) {
13841        injectStyle4(targetDocument, hash, css);
13842      }
13843      return () => {
13844        const count = runtime.documents.get(targetDocument);
13845        if (count === void 0) {
13846          return;
13847        }
13848        if (count <= 1) {
13849          runtime.documents.delete(targetDocument);
13850          return;
13851        }
13852        runtime.documents.set(targetDocument, count - 1);
13853      };
13854    }
13855    function registerStyle4(hash, css) {
13856      const runtime = getRuntime4();
13857      runtime.styles.set(hash, css);
13858      for (const targetDocument of runtime.documents.keys()) {
13859        injectStyle4(targetDocument, hash, css);
13860      }
13861    }
13862    if (typeof process === "undefined" || true) {
13863      registerStyle4("40df669685", "._9e7887c25dedb459__slot{inset:0;isolation:isolate;pointer-events:none;position:fixed;z-index:1000000003}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._9e7887c25dedb459__slot>*{pointer-events:auto}}}");
13864    }
13865    var wp_compat_overlay_slot_default = { "slot": "_9e7887c25dedb459__slot" };
13866    var WP_COMPAT_OVERLAY_SLOT_ATTRIBUTE = "data-wp-compat-overlay-slot";
13867    function resolveOwnerDocument() {
13868      return typeof document === "undefined" ? null : document;
13869    }
13870    function isInWordPressEnvironment() {
13871      let topWp;
13872      try {
13873        topWp = window.top?.wp;
13874      } catch {
13875      }
13876      const wp = topWp ?? window.wp;
13877      return typeof wp?.components === "object" && wp.components !== null;
13878    }
13879    var cachedSlot = null;
13880    function ensureSlotIsAccessible(element) {
13881      element.setAttribute("aria-hidden", "false");
13882      return element;
13883    }
13884    function createSlot(ownerDocument2) {
13885      const element = ownerDocument2.createElement("div");
13886      element.setAttribute(WP_COMPAT_OVERLAY_SLOT_ATTRIBUTE, "");
13887      if (wp_compat_overlay_slot_default.slot) {
13888        element.classList.add(wp_compat_overlay_slot_default.slot);
13889      }
13890      ownerDocument2.body.appendChild(element);
13891      return element;
13892    }
13893    function getWpCompatOverlaySlot() {
13894      if (typeof window === "undefined") {
13895        return void 0;
13896      }
13897      if (!isInWordPressEnvironment() && window.__wpUiCompatOverlaySlotEnabled !== true) {
13898        return void 0;
13899      }
13900      const ownerDocument2 = resolveOwnerDocument();
13901      if (!ownerDocument2 || !ownerDocument2.body) {
13902        return void 0;
13903      }
13904      if (cachedSlot && cachedSlot.ownerDocument === ownerDocument2 && cachedSlot.isConnected) {
13905        return ensureSlotIsAccessible(cachedSlot);
13906      }
13907      const existing = ownerDocument2.querySelector(
13908        `[$WP_COMPAT_OVERLAY_SLOT_ATTRIBUTE}]`
13909      );
13910      if (existing instanceof HTMLDivElement) {
13911        cachedSlot = ensureSlotIsAccessible(existing);
13912        return cachedSlot;
13913      }
13914      if (cachedSlot?.isConnected) {
13915        cachedSlot.remove();
13916      }
13917      cachedSlot = ensureSlotIsAccessible(createSlot(ownerDocument2));
13918      return cachedSlot;
13919    }
13920  
13921    // packages/ui/build-module/form/primitives/constants.mjs
13922    var ITEM_POPUP_POSITIONER_PROPS = {
13923      align: "start",
13924      sideOffset: 8,
13925      collisionPadding: 12
13926    };
13927  
13928    // packages/ui/build-module/utils/direction-provider.mjs
13929    var import_i18n3 = __toESM(require_i18n(), 1);
13930    var import_jsx_runtime52 = __toESM(require_jsx_runtime(), 1);
13931    function DirectionProvider3({ children }) {
13932      return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(DirectionProvider, { direction: (0, import_i18n3.isRTL)() ? "rtl" : "ltr", children });
13933    }
13934  
13935    // packages/ui/build-module/link/link.mjs
13936    var import_element14 = __toESM(require_element(), 1);
13937    var import_i18n4 = __toESM(require_i18n(), 1);
13938    var import_jsx_runtime53 = __toESM(require_jsx_runtime(), 1);
13939    var STYLE_HASH_ATTRIBUTE5 = "data-wp-hash";
13940    function getRuntime5() {
13941      const globalScope = globalThis;
13942      if (globalScope.__wpStyleRuntime) {
13943        return globalScope.__wpStyleRuntime;
13944      }
13945      globalScope.__wpStyleRuntime = {
13946        documents: /* @__PURE__ */ new Map(),
13947        styles: /* @__PURE__ */ new Map(),
13948        injectedStyles: /* @__PURE__ */ new WeakMap()
13949      };
13950      if (typeof document !== "undefined") {
13951        registerDocument5(document);
13952      }
13953      return globalScope.__wpStyleRuntime;
13954    }
13955    function documentContainsStyleHash5(targetDocument, hash) {
13956      if (!targetDocument.head) {
13957        return false;
13958      }
13959      for (const style of targetDocument.head.querySelectorAll(
13960        `style[$STYLE_HASH_ATTRIBUTE5}]`
13961      )) {
13962        if (style.getAttribute(STYLE_HASH_ATTRIBUTE5) === hash) {
13963          return true;
13964        }
13965      }
13966      return false;
13967    }
13968    function injectStyle5(targetDocument, hash, css) {
13969      if (!targetDocument.head) {
13970        return;
13971      }
13972      const runtime = getRuntime5();
13973      let injectedStyles = runtime.injectedStyles.get(targetDocument);
13974      if (!injectedStyles) {
13975        injectedStyles = /* @__PURE__ */ new Set();
13976        runtime.injectedStyles.set(targetDocument, injectedStyles);
13977      }
13978      if (injectedStyles.has(hash)) {
13979        return;
13980      }
13981      if (documentContainsStyleHash5(targetDocument, hash)) {
13982        injectedStyles.add(hash);
13983        return;
13984      }
13985      const style = targetDocument.createElement("style");
13986      style.setAttribute(STYLE_HASH_ATTRIBUTE5, hash);
13987      style.appendChild(targetDocument.createTextNode(css));
13988      targetDocument.head.appendChild(style);
13989      injectedStyles.add(hash);
13990    }
13991    function registerDocument5(targetDocument) {
13992      const runtime = getRuntime5();
13993      runtime.documents.set(
13994        targetDocument,
13995        (runtime.documents.get(targetDocument) ?? 0) + 1
13996      );
13997      for (const [hash, css] of runtime.styles) {
13998        injectStyle5(targetDocument, hash, css);
13999      }
14000      return () => {
14001        const count = runtime.documents.get(targetDocument);
14002        if (count === void 0) {
14003          return;
14004        }
14005        if (count <= 1) {
14006          runtime.documents.delete(targetDocument);
14007          return;
14008        }
14009        runtime.documents.set(targetDocument, count - 1);
14010      };
14011    }
14012    function registerStyle5(hash, css) {
14013      const runtime = getRuntime5();
14014      runtime.styles.set(hash, css);
14015      for (const targetDocument of runtime.documents.keys()) {
14016        injectStyle5(targetDocument, hash, css);
14017      }
14018    }
14019    if (typeof process === "undefined" || true) {
14020      registerStyle5("37477070fb", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.ccc29f9575c4c758__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
14021    }
14022    var resets_default = { "box-sizing": "ccc29f9575c4c758__box-sizing" };
14023    if (typeof process === "undefined" || true) {
14024      registerStyle5("c13e206e92", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._0f52be5f1d4ce686__outset-ring--focus-within:focus-within,._8f922cee854f2408__outset-ring--focus-visible:focus-visible,.accedd6ae8fd878e__outset-ring--focus:focus{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--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,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))}._3ad2c88c126f2bdd__outset-ring--focus-within-except-active:focus-within,.c20f61b115485a7f__outset-ring--focus-except-active:focus{outline:none}._3ad2c88c126f2bdd__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c20f61b115485a7f__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--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,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))}}}");
14025    }
14026    var focus_module_default = { "outset-ring--focus": "accedd6ae8fd878e__outset-ring--focus", "outset-ring--focus-visible": "_8f922cee854f2408__outset-ring--focus-visible", "outset-ring--focus-within": "_0f52be5f1d4ce686__outset-ring--focus-within", "outset-ring--focus-except-active": "c20f61b115485a7f__outset-ring--focus-except-active", "outset-ring--focus-within-except-active": "_3ad2c88c126f2bdd__outset-ring--focus-within-except-active" };
14027    if (typeof process === "undefined" || true) {
14028      registerStyle5("c87d91cdf7", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a574f9f242212d58__link{--_gcd-a-border-radius:var(--wpds-border-radius-sm,2px);border-radius:var(--wpds-border-radius-sm,2px);text-decoration-thickness:from-font;text-underline-offset:.2em}._2d2f0506e717a46c__link-with-icon{text-decoration-line:none}._92b7b6a03fbb27ac__link-contents{text-decoration:inherit;text-decoration-line:underline}._69f40d9212adc58d__is-brand,._69f40d9212adc58d__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))}._69f40d9212adc58d__is-brand:active,._69f40d9212adc58d__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))}._9a9c54c6e67b4c3c__is-neutral,._9a9c54c6e67b4c3c__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)}._9a9c54c6e67b4c3c__is-neutral:active,._9a9c54c6e67b4c3c__is-neutral:hover{--_gcd-a-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}._93be0b747897baad__is-unstyled{--_gcd-a-border-radius:0;--_gcd-a-color:inherit;color:inherit;text-decoration:none}._9c39df40fdc09594__link-icon{font-weight:var(--wpds-typography-font-weight-default,400);line-height:1;margin-inline-start:var(--wpds-dimension-padding-xs,4px);text-decoration:none}._9c39df40fdc09594__link-icon:after{content:"\\2060\\2197"}._9c39df40fdc09594__link-icon:dir(rtl):after{content:"\\2060\\2196"}}}');
14029    }
14030    var style_default4 = { "link": "a574f9f242212d58__link", "link-with-icon": "_2d2f0506e717a46c__link-with-icon", "link-contents": "_92b7b6a03fbb27ac__link-contents", "is-brand": "_69f40d9212adc58d__is-brand", "is-neutral": "_9a9c54c6e67b4c3c__is-neutral", "is-unstyled": "_93be0b747897baad__is-unstyled", "link-icon": "_9c39df40fdc09594__link-icon" };
14031    if (typeof process === "undefined" || true) {
14032      registerStyle5("726f348f3f", "._78c10a0773e51a91__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)}._5b33aa2d48624b4f__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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}}._980b3b4776ac8f81__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._43e478b4279a076c__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._698099e25b0fb1a6__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)._326aee4184d261fd__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)}.e9576240835601ba__a,.e9576240835601ba__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)}._3f05789653864a73__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._3c72ff72abe57859__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._79d16267c15d9eb2__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");
14033    }
14034    var global_css_defense_default2 = { "button": "_78c10a0773e51a91__button", "input": "_5b33aa2d48624b4f__input", "textarea": "_980b3b4776ac8f81__textarea", "div": "_43e478b4279a076c__div", "p": "_698099e25b0fb1a6__p", "heading": "_326aee4184d261fd__heading", "a": "e9576240835601ba__a", "ol": "_3f05789653864a73__ol", "li": "_3c72ff72abe57859__li", "span": "_79d16267c15d9eb2__span" };
14035    var Link = (0, import_element14.forwardRef)(
14036      function UnforwardedLink({
14037        children,
14038        variant = "default",
14039        tone = "brand",
14040        openInNewTab = false,
14041        target,
14042        render,
14043        className,
14044        ...props
14045      }, ref) {
14046        const shouldShowNewTabIndicator = openInNewTab || /^_blank$/i.test(target ?? "");
14047        const element = useRender({
14048          render,
14049          defaultTagName: "a",
14050          ref,
14051          props: mergeProps(props, {
14052            className: clsx_default(
14053              global_css_defense_default2.a,
14054              resets_default["box-sizing"],
14055              focus_module_default["outset-ring--focus-except-active"],
14056              variant !== "unstyled" && style_default4.link,
14057              variant !== "unstyled" && shouldShowNewTabIndicator && style_default4["link-with-icon"],
14058              variant !== "unstyled" && style_default4[`is-$tone}`],
14059              variant === "unstyled" && style_default4["is-unstyled"],
14060              className
14061            ),
14062            target: target ?? (openInNewTab ? "_blank" : void 0),
14063            children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
14064              shouldShowNewTabIndicator && variant !== "unstyled" ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { className: style_default4["link-contents"], children }) : children,
14065              shouldShowNewTabIndicator && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
14066                "span",
14067                {
14068                  className: style_default4["link-icon"],
14069                  role: "img",
14070                  "aria-label": (
14071                    /* translators: accessibility text appended to link text */
14072                    (0, import_i18n4.__)("(opens in a new tab)")
14073                  )
14074                }
14075              )
14076            ] })
14077          })
14078        });
14079        return element;
14080      }
14081    );
14082  
14083    // packages/ui/build-module/stack/stack.mjs
14084    var import_element15 = __toESM(require_element(), 1);
14085    var STYLE_HASH_ATTRIBUTE6 = "data-wp-hash";
14086    function getRuntime6() {
14087      const globalScope = globalThis;
14088      if (globalScope.__wpStyleRuntime) {
14089        return globalScope.__wpStyleRuntime;
14090      }
14091      globalScope.__wpStyleRuntime = {
14092        documents: /* @__PURE__ */ new Map(),
14093        styles: /* @__PURE__ */ new Map(),
14094        injectedStyles: /* @__PURE__ */ new WeakMap()
14095      };
14096      if (typeof document !== "undefined") {
14097        registerDocument6(document);
14098      }
14099      return globalScope.__wpStyleRuntime;
14100    }
14101    function documentContainsStyleHash6(targetDocument, hash) {
14102      if (!targetDocument.head) {
14103        return false;
14104      }
14105      for (const style of targetDocument.head.querySelectorAll(
14106        `style[$STYLE_HASH_ATTRIBUTE6}]`
14107      )) {
14108        if (style.getAttribute(STYLE_HASH_ATTRIBUTE6) === hash) {
14109          return true;
14110        }
14111      }
14112      return false;
14113    }
14114    function injectStyle6(targetDocument, hash, css) {
14115      if (!targetDocument.head) {
14116        return;
14117      }
14118      const runtime = getRuntime6();
14119      let injectedStyles = runtime.injectedStyles.get(targetDocument);
14120      if (!injectedStyles) {
14121        injectedStyles = /* @__PURE__ */ new Set();
14122        runtime.injectedStyles.set(targetDocument, injectedStyles);
14123      }
14124      if (injectedStyles.has(hash)) {
14125        return;
14126      }
14127      if (documentContainsStyleHash6(targetDocument, hash)) {
14128        injectedStyles.add(hash);
14129        return;
14130      }
14131      const style = targetDocument.createElement("style");
14132      style.setAttribute(STYLE_HASH_ATTRIBUTE6, hash);
14133      style.appendChild(targetDocument.createTextNode(css));
14134      targetDocument.head.appendChild(style);
14135      injectedStyles.add(hash);
14136    }
14137    function registerDocument6(targetDocument) {
14138      const runtime = getRuntime6();
14139      runtime.documents.set(
14140        targetDocument,
14141        (runtime.documents.get(targetDocument) ?? 0) + 1
14142      );
14143      for (const [hash, css] of runtime.styles) {
14144        injectStyle6(targetDocument, hash, css);
14145      }
14146      return () => {
14147        const count = runtime.documents.get(targetDocument);
14148        if (count === void 0) {
14149          return;
14150        }
14151        if (count <= 1) {
14152          runtime.documents.delete(targetDocument);
14153          return;
14154        }
14155        runtime.documents.set(targetDocument, count - 1);
14156      };
14157    }
14158    function registerStyle6(hash, css) {
14159      const runtime = getRuntime6();
14160      runtime.styles.set(hash, css);
14161      for (const targetDocument of runtime.documents.keys()) {
14162        injectStyle6(targetDocument, hash, css);
14163      }
14164    }
14165    if (typeof process === "undefined" || true) {
14166      registerStyle6("67591fa198", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._8e8e79c1a2eec43b__stack{display:flex}}}");
14167    }
14168    var style_default5 = { "stack": "_8e8e79c1a2eec43b__stack" };
14169    var gapTokens = {
14170      xs: "var(--wpds-dimension-gap-xs, 4px)",
14171      sm: "var(--wpds-dimension-gap-sm, 8px)",
14172      md: "var(--wpds-dimension-gap-md, 12px)",
14173      lg: "var(--wpds-dimension-gap-lg, 16px)",
14174      xl: "var(--wpds-dimension-gap-xl, 24px)",
14175      "2xl": "var(--wpds-dimension-gap-2xl, 32px)",
14176      "3xl": "var(--wpds-dimension-gap-3xl, 40px)"
14177    };
14178    var Stack = (0, import_element15.forwardRef)(
14179      function UnforwardedStack({ direction, gap, align, justify, wrap, render, ...props }, ref) {
14180        const style = {
14181          gap: gap && gapTokens[gap],
14182          alignItems: align,
14183          justifyContent: justify,
14184          flexDirection: direction,
14185          flexWrap: wrap
14186        };
14187        const element = useRender({
14188          render,
14189          ref,
14190          props: mergeProps(props, {
14191            style,
14192            className: style_default5.stack
14193          })
14194        });
14195        return element;
14196      }
14197    );
14198  
14199    // packages/ui/build-module/utils/use-schedule-validation.mjs
14200    var import_compose = __toESM(require_compose(), 1);
14201    var import_element16 = __toESM(require_element(), 1);
14202    function useScheduleValidation(validate) {
14203      const validateEvent = (0, import_compose.useEvent)(validate);
14204      const timerRef = (0, import_element16.useRef)(null);
14205      const unmountedRef = (0, import_element16.useRef)(false);
14206      const scheduleValidation = (0, import_element16.useCallback)(() => {
14207        if (unmountedRef.current) {
14208          return;
14209        }
14210        if (timerRef.current) {
14211          clearTimeout(timerRef.current);
14212        }
14213        timerRef.current = setTimeout(() => {
14214          validateEvent();
14215          timerRef.current = null;
14216        }, 0);
14217      }, [validateEvent]);
14218      (0, import_element16.useEffect)(() => {
14219        unmountedRef.current = false;
14220        return () => {
14221          unmountedRef.current = true;
14222          if (timerRef.current) {
14223            clearTimeout(timerRef.current);
14224          }
14225        };
14226      }, []);
14227      return scheduleValidation;
14228    }
14229  
14230    // packages/ui/build-module/form/primitives/input/input.mjs
14231    var import_element19 = __toESM(require_element(), 1);
14232  
14233    // packages/ui/build-module/form/primitives/input-layout/input-layout.mjs
14234    var import_element17 = __toESM(require_element(), 1);
14235    var import_jsx_runtime54 = __toESM(require_jsx_runtime(), 1);
14236    var STYLE_HASH_ATTRIBUTE7 = "data-wp-hash";
14237    function getRuntime7() {
14238      const globalScope = globalThis;
14239      if (globalScope.__wpStyleRuntime) {
14240        return globalScope.__wpStyleRuntime;
14241      }
14242      globalScope.__wpStyleRuntime = {
14243        documents: /* @__PURE__ */ new Map(),
14244        styles: /* @__PURE__ */ new Map(),
14245        injectedStyles: /* @__PURE__ */ new WeakMap()
14246      };
14247      if (typeof document !== "undefined") {
14248        registerDocument7(document);
14249      }
14250      return globalScope.__wpStyleRuntime;
14251    }
14252    function documentContainsStyleHash7(targetDocument, hash) {
14253      if (!targetDocument.head) {
14254        return false;
14255      }
14256      for (const style of targetDocument.head.querySelectorAll(
14257        `style[$STYLE_HASH_ATTRIBUTE7}]`
14258      )) {
14259        if (style.getAttribute(STYLE_HASH_ATTRIBUTE7) === hash) {
14260          return true;
14261        }
14262      }
14263      return false;
14264    }
14265    function injectStyle7(targetDocument, hash, css) {
14266      if (!targetDocument.head) {
14267        return;
14268      }
14269      const runtime = getRuntime7();
14270      let injectedStyles = runtime.injectedStyles.get(targetDocument);
14271      if (!injectedStyles) {
14272        injectedStyles = /* @__PURE__ */ new Set();
14273        runtime.injectedStyles.set(targetDocument, injectedStyles);
14274      }
14275      if (injectedStyles.has(hash)) {
14276        return;
14277      }
14278      if (documentContainsStyleHash7(targetDocument, hash)) {
14279        injectedStyles.add(hash);
14280        return;
14281      }
14282      const style = targetDocument.createElement("style");
14283      style.setAttribute(STYLE_HASH_ATTRIBUTE7, hash);
14284      style.appendChild(targetDocument.createTextNode(css));
14285      targetDocument.head.appendChild(style);
14286      injectedStyles.add(hash);
14287    }
14288    function registerDocument7(targetDocument) {
14289      const runtime = getRuntime7();
14290      runtime.documents.set(
14291        targetDocument,
14292        (runtime.documents.get(targetDocument) ?? 0) + 1
14293      );
14294      for (const [hash, css] of runtime.styles) {
14295        injectStyle7(targetDocument, hash, css);
14296      }
14297      return () => {
14298        const count = runtime.documents.get(targetDocument);
14299        if (count === void 0) {
14300          return;
14301        }
14302        if (count <= 1) {
14303          runtime.documents.delete(targetDocument);
14304          return;
14305        }
14306        runtime.documents.set(targetDocument, count - 1);
14307      };
14308    }
14309    function registerStyle7(hash, css) {
14310      const runtime = getRuntime7();
14311      runtime.styles.set(hash, css);
14312      for (const targetDocument of runtime.documents.keys()) {
14313        injectStyle7(targetDocument, hash, css);
14314      }
14315    }
14316    if (typeof process === "undefined" || true) {
14317      registerStyle7("726f348f3f", "._78c10a0773e51a91__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)}._5b33aa2d48624b4f__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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}}._980b3b4776ac8f81__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._43e478b4279a076c__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._698099e25b0fb1a6__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)._326aee4184d261fd__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)}.e9576240835601ba__a,.e9576240835601ba__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)}._3f05789653864a73__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._3c72ff72abe57859__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._79d16267c15d9eb2__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");
14318    }
14319    var global_css_defense_default3 = { "button": "_78c10a0773e51a91__button", "input": "_5b33aa2d48624b4f__input", "textarea": "_980b3b4776ac8f81__textarea", "div": "_43e478b4279a076c__div", "p": "_698099e25b0fb1a6__p", "heading": "_326aee4184d261fd__heading", "a": "e9576240835601ba__a", "ol": "_3f05789653864a73__ol", "li": "_3c72ff72abe57859__li", "span": "_79d16267c15d9eb2__span" };
14320    if (typeof process === "undefined" || true) {
14321      registerStyle7("37477070fb", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.ccc29f9575c4c758__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
14322    }
14323    var resets_default2 = { "box-sizing": "ccc29f9575c4c758__box-sizing" };
14324    if (typeof process === "undefined" || true) {
14325      registerStyle7("a933c8f665", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.b58f09bec1a5dbde__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral,var(--wpds-color-background-surface-neutral-strong,#fff));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:var(--wpds-typography-font-size-md,13px);height:var(--wpds-dimension-size-lg,40px);line-height:1;&.c6959524c70627d6__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&.aa52ad890a16cc91__is-size-small,&.c6959524c70627d6__is-size-compact{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.aa52ad890a16cc91__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._50a72abb47530e8a__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}&:not(._33a5f404fc55a9f2__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-disabled,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText}}}&._33a5f404fc55a9f2__is-borderless{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:transparent}&:has(._7ef4bcd6bfde61ae__input-layout-slot:focus-within){--_gcd-div-outline:none;outline:none}&:hover:not(._50a72abb47530e8a__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._33a5f404fc55a9f2__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-active,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}._7c0c0ce7b5c57b8f__slot-wrapper{display:contents}._7ef4bcd6bfde61ae__input-layout-slot{align-items:center;display:flex;&._50d0eced305893d5__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))}}}}');
14326    }
14327    var style_default6 = { "input-layout": "b58f09bec1a5dbde__input-layout", "is-size-compact": "c6959524c70627d6__is-size-compact", "is-size-small": "aa52ad890a16cc91__is-size-small", "is-disabled": "_50a72abb47530e8a__is-disabled", "is-borderless": "_33a5f404fc55a9f2__is-borderless", "input-layout-slot": "_7ef4bcd6bfde61ae__input-layout-slot", "slot-wrapper": "_7c0c0ce7b5c57b8f__slot-wrapper", "is-padding-minimal": "_50d0eced305893d5__is-padding-minimal" };
14328    var InputLayout = (0, import_element17.forwardRef)(
14329      function UnforwardedInputLayout({
14330        className,
14331        children,
14332        visuallyDisabled,
14333        size: size4 = "default",
14334        isBorderless,
14335        prefix,
14336        suffix,
14337        ...restProps
14338      }, ref) {
14339        return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
14340          "div",
14341          {
14342            ref,
14343            className: clsx_default(
14344              global_css_defense_default3.div,
14345              resets_default2["box-sizing"],
14346              style_default6["input-layout"],
14347              style_default6[`is-size-$size4}`],
14348              visuallyDisabled && style_default6["is-disabled"],
14349              isBorderless && style_default6["is-borderless"],
14350              className
14351            ),
14352            ...restProps,
14353            children: [
14354              import_element17.Children.count(prefix) > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
14355                "div",
14356                {
14357                  className: style_default6["slot-wrapper"],
14358                  "data-slot-type": "prefix",
14359                  children: prefix
14360                }
14361              ),
14362              children,
14363              import_element17.Children.count(suffix) > 0 && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
14364                "div",
14365                {
14366                  className: style_default6["slot-wrapper"],
14367                  "data-slot-type": "suffix",
14368                  children: suffix
14369                }
14370              )
14371            ]
14372          }
14373        );
14374      }
14375    );
14376  
14377    // packages/ui/build-module/form/primitives/input-layout/slot.mjs
14378    var import_element18 = __toESM(require_element(), 1);
14379    var import_jsx_runtime55 = __toESM(require_jsx_runtime(), 1);
14380    var STYLE_HASH_ATTRIBUTE8 = "data-wp-hash";
14381    function getRuntime8() {
14382      const globalScope = globalThis;
14383      if (globalScope.__wpStyleRuntime) {
14384        return globalScope.__wpStyleRuntime;
14385      }
14386      globalScope.__wpStyleRuntime = {
14387        documents: /* @__PURE__ */ new Map(),
14388        styles: /* @__PURE__ */ new Map(),
14389        injectedStyles: /* @__PURE__ */ new WeakMap()
14390      };
14391      if (typeof document !== "undefined") {
14392        registerDocument8(document);
14393      }
14394      return globalScope.__wpStyleRuntime;
14395    }
14396    function documentContainsStyleHash8(targetDocument, hash) {
14397      if (!targetDocument.head) {
14398        return false;
14399      }
14400      for (const style of targetDocument.head.querySelectorAll(
14401        `style[$STYLE_HASH_ATTRIBUTE8}]`
14402      )) {
14403        if (style.getAttribute(STYLE_HASH_ATTRIBUTE8) === hash) {
14404          return true;
14405        }
14406      }
14407      return false;
14408    }
14409    function injectStyle8(targetDocument, hash, css) {
14410      if (!targetDocument.head) {
14411        return;
14412      }
14413      const runtime = getRuntime8();
14414      let injectedStyles = runtime.injectedStyles.get(targetDocument);
14415      if (!injectedStyles) {
14416        injectedStyles = /* @__PURE__ */ new Set();
14417        runtime.injectedStyles.set(targetDocument, injectedStyles);
14418      }
14419      if (injectedStyles.has(hash)) {
14420        return;
14421      }
14422      if (documentContainsStyleHash8(targetDocument, hash)) {
14423        injectedStyles.add(hash);
14424        return;
14425      }
14426      const style = targetDocument.createElement("style");
14427      style.setAttribute(STYLE_HASH_ATTRIBUTE8, hash);
14428      style.appendChild(targetDocument.createTextNode(css));
14429      targetDocument.head.appendChild(style);
14430      injectedStyles.add(hash);
14431    }
14432    function registerDocument8(targetDocument) {
14433      const runtime = getRuntime8();
14434      runtime.documents.set(
14435        targetDocument,
14436        (runtime.documents.get(targetDocument) ?? 0) + 1
14437      );
14438      for (const [hash, css] of runtime.styles) {
14439        injectStyle8(targetDocument, hash, css);
14440      }
14441      return () => {
14442        const count = runtime.documents.get(targetDocument);
14443        if (count === void 0) {
14444          return;
14445        }
14446        if (count <= 1) {
14447          runtime.documents.delete(targetDocument);
14448          return;
14449        }
14450        runtime.documents.set(targetDocument, count - 1);
14451      };
14452    }
14453    function registerStyle8(hash, css) {
14454      const runtime = getRuntime8();
14455      runtime.styles.set(hash, css);
14456      for (const targetDocument of runtime.documents.keys()) {
14457        injectStyle8(targetDocument, hash, css);
14458      }
14459    }
14460    if (typeof process === "undefined" || true) {
14461      registerStyle8("a933c8f665", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.b58f09bec1a5dbde__input-layout{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-md,12px);background-color:var(--wpds-color-background-interactive-neutral,var(--wpds-color-background-surface-neutral-strong,#fff));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:var(--wpds-typography-font-size-md,13px);height:var(--wpds-dimension-size-lg,40px);line-height:1;&.c6959524c70627d6__is-size-compact{height:var(--wpds-dimension-size-md,32px)}&.aa52ad890a16cc91__is-size-small,&.c6959524c70627d6__is-size-compact{--wp-ui-input-layout-padding-inline:var(--wpds-dimension-padding-sm,8px)}&.aa52ad890a16cc91__is-size-small{height:var(--wpds-dimension-size-sm,24px)}&._50a72abb47530e8a__is-disabled,&:has([data-can-disable-input-layout][data-disabled]){color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}&:not(._33a5f404fc55a9f2__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-disabled,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-disabled,#dbdbdb);@media (forced-colors:active){border-bottom-color:GrayText;border-left-color:GrayText;border-right-color:GrayText;border-top-color:GrayText}}}&._33a5f404fc55a9f2__is-borderless{background-color:var(--wpds-color-background-interactive-neutral-weak,#0000);border-color:transparent}&:has(._7ef4bcd6bfde61ae__input-layout-slot:focus-within){--_gcd-div-outline:none;outline:none}&:hover:not(._50a72abb47530e8a__is-disabled,:has([data-can-disable-input-layout][data-disabled]),._33a5f404fc55a9f2__is-borderless){background-color:var(--wpds-color-background-interactive-neutral-active,var(--wpds-color-background-surface-neutral-strong,#fff));border-color:var(--wpds-color-stroke-interactive-neutral-active,#6e6e6e)}&:has(:invalid[data-validity-visible]){--focus-color:var(--wpds-color-stroke-interactive-error,#cc1818);border-color:var(--wpds-color-stroke-interactive-error,#cc1818);&:hover{border-color:var(--wpds-color-stroke-interactive-error-active,#9d0000)}}}._7c0c0ce7b5c57b8f__slot-wrapper{display:contents}._7ef4bcd6bfde61ae__input-layout-slot{align-items:center;display:flex;&._50d0eced305893d5__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))}}}}');
14462    }
14463    var style_default7 = { "input-layout": "b58f09bec1a5dbde__input-layout", "is-size-compact": "c6959524c70627d6__is-size-compact", "is-size-small": "aa52ad890a16cc91__is-size-small", "is-disabled": "_50a72abb47530e8a__is-disabled", "is-borderless": "_33a5f404fc55a9f2__is-borderless", "input-layout-slot": "_7ef4bcd6bfde61ae__input-layout-slot", "slot-wrapper": "_7c0c0ce7b5c57b8f__slot-wrapper", "is-padding-minimal": "_50d0eced305893d5__is-padding-minimal" };
14464    var InputLayoutSlot = (0, import_element18.forwardRef)(function UnforwardedInputLayoutSlot({ padding = "default", className, ...restProps }, ref) {
14465      return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
14466        "div",
14467        {
14468          ref,
14469          className: clsx_default(
14470            style_default7["input-layout-slot"],
14471            style_default7[`is-padding-$padding}`],
14472            className
14473          ),
14474          ...restProps
14475        }
14476      );
14477    });
14478    InputLayoutSlot.displayName = "InputLayout.Slot";
14479  
14480    // packages/ui/build-module/form/primitives/input-layout/index.mjs
14481    var InputLayout2 = Object.assign(InputLayout, {
14482      Slot: InputLayoutSlot
14483    });
14484  
14485    // packages/ui/build-module/form/primitives/input/input.mjs
14486    var import_jsx_runtime56 = __toESM(require_jsx_runtime(), 1);
14487    var STYLE_HASH_ATTRIBUTE9 = "data-wp-hash";
14488    function getRuntime9() {
14489      const globalScope = globalThis;
14490      if (globalScope.__wpStyleRuntime) {
14491        return globalScope.__wpStyleRuntime;
14492      }
14493      globalScope.__wpStyleRuntime = {
14494        documents: /* @__PURE__ */ new Map(),
14495        styles: /* @__PURE__ */ new Map(),
14496        injectedStyles: /* @__PURE__ */ new WeakMap()
14497      };
14498      if (typeof document !== "undefined") {
14499        registerDocument9(document);
14500      }
14501      return globalScope.__wpStyleRuntime;
14502    }
14503    function documentContainsStyleHash9(targetDocument, hash) {
14504      if (!targetDocument.head) {
14505        return false;
14506      }
14507      for (const style of targetDocument.head.querySelectorAll(
14508        `style[$STYLE_HASH_ATTRIBUTE9}]`
14509      )) {
14510        if (style.getAttribute(STYLE_HASH_ATTRIBUTE9) === hash) {
14511          return true;
14512        }
14513      }
14514      return false;
14515    }
14516    function injectStyle9(targetDocument, hash, css) {
14517      if (!targetDocument.head) {
14518        return;
14519      }
14520      const runtime = getRuntime9();
14521      let injectedStyles = runtime.injectedStyles.get(targetDocument);
14522      if (!injectedStyles) {
14523        injectedStyles = /* @__PURE__ */ new Set();
14524        runtime.injectedStyles.set(targetDocument, injectedStyles);
14525      }
14526      if (injectedStyles.has(hash)) {
14527        return;
14528      }
14529      if (documentContainsStyleHash9(targetDocument, hash)) {
14530        injectedStyles.add(hash);
14531        return;
14532      }
14533      const style = targetDocument.createElement("style");
14534      style.setAttribute(STYLE_HASH_ATTRIBUTE9, hash);
14535      style.appendChild(targetDocument.createTextNode(css));
14536      targetDocument.head.appendChild(style);
14537      injectedStyles.add(hash);
14538    }
14539    function registerDocument9(targetDocument) {
14540      const runtime = getRuntime9();
14541      runtime.documents.set(
14542        targetDocument,
14543        (runtime.documents.get(targetDocument) ?? 0) + 1
14544      );
14545      for (const [hash, css] of runtime.styles) {
14546        injectStyle9(targetDocument, hash, css);
14547      }
14548      return () => {
14549        const count = runtime.documents.get(targetDocument);
14550        if (count === void 0) {
14551          return;
14552        }
14553        if (count <= 1) {
14554          runtime.documents.delete(targetDocument);
14555          return;
14556        }
14557        runtime.documents.set(targetDocument, count - 1);
14558      };
14559    }
14560    function registerStyle9(hash, css) {
14561      const runtime = getRuntime9();
14562      runtime.styles.set(hash, css);
14563      for (const targetDocument of runtime.documents.keys()) {
14564        injectStyle9(targetDocument, hash, css);
14565      }
14566    }
14567    if (typeof process === "undefined" || true) {
14568      registerStyle9("726f348f3f", "._78c10a0773e51a91__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)}._5b33aa2d48624b4f__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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}}._980b3b4776ac8f81__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._43e478b4279a076c__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._698099e25b0fb1a6__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)._326aee4184d261fd__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)}.e9576240835601ba__a,.e9576240835601ba__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)}._3f05789653864a73__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._3c72ff72abe57859__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._79d16267c15d9eb2__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");
14569    }
14570    var global_css_defense_default4 = { "button": "_78c10a0773e51a91__button", "input": "_5b33aa2d48624b4f__input", "textarea": "_980b3b4776ac8f81__textarea", "div": "_43e478b4279a076c__div", "p": "_698099e25b0fb1a6__p", "heading": "_326aee4184d261fd__heading", "a": "e9576240835601ba__a", "ol": "_3f05789653864a73__ol", "li": "_3c72ff72abe57859__li", "span": "_79d16267c15d9eb2__span" };
14571    if (typeof process === "undefined" || true) {
14572      registerStyle9("c13e206e92", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._0f52be5f1d4ce686__outset-ring--focus-within:focus-within,._8f922cee854f2408__outset-ring--focus-visible:focus-visible,.accedd6ae8fd878e__outset-ring--focus:focus{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--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,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))}._3ad2c88c126f2bdd__outset-ring--focus-within-except-active:focus-within,.c20f61b115485a7f__outset-ring--focus-except-active:focus{outline:none}._3ad2c88c126f2bdd__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c20f61b115485a7f__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--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,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))}}}");
14573    }
14574    var focus_module_default2 = { "outset-ring--focus": "accedd6ae8fd878e__outset-ring--focus", "outset-ring--focus-visible": "_8f922cee854f2408__outset-ring--focus-visible", "outset-ring--focus-within": "_0f52be5f1d4ce686__outset-ring--focus-within", "outset-ring--focus-except-active": "c20f61b115485a7f__outset-ring--focus-except-active", "outset-ring--focus-within-except-active": "_3ad2c88c126f2bdd__outset-ring--focus-within-except-active" };
14575    if (typeof process === "undefined" || true) {
14576      registerStyle9("a53cd10a80", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._9edfcd97eeaee9dc__input{--_gcd-input-padding:var(--wp-ui-input-padding-block,0px) var(--wp-ui-input-layout-padding-inline,0px);--_gcd-input-font-size:max(var(--wpds-typography-font-size-md,13px),16px);background:transparent;border:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);font-family:inherit;font-size:inherit;line-height:inherit;outline:none;padding-block:var(--wp-ui-input-padding-block,0);padding-inline:var(--wp-ui-input-layout-padding-inline,0);width:100%;@media (min-width:600px){--_gcd-input-font-size:inherit}&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}&:disabled,&[aria-disabled=true]{--_gcd-input-placeholder-color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&::placeholder{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d)}@media (forced-colors:active){color:GrayText}}&[type=email],&[type=url]{direction:ltr}&[type=number]{appearance:textfield;&::-webkit-inner-spin-button,&::-webkit-outer-spin-button{appearance:none;margin:0}}}}@layer compositions{.edc52bf0fe80b57f__layout{font-size:max(var(--wpds-typography-font-size-md,13px),16px);@media (min-width:600px){font-size:var(--wpds-typography-font-size-md,13px)}}}}");
14577    }
14578    var style_default8 = { "input": "_9edfcd97eeaee9dc__input", "layout": "edc52bf0fe80b57f__layout" };
14579    var Input3 = (0, import_element19.forwardRef)(
14580      function UnforwardedInput({ className, size: size4 = "default", prefix, suffix, style, ...restProps }, ref) {
14581        return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
14582          InputLayout2,
14583          {
14584            className: clsx_default(
14585              style_default8.layout,
14586              focus_module_default2["outset-ring--focus-within"],
14587              className
14588            ),
14589            style,
14590            size: size4,
14591            visuallyDisabled: restProps.disabled,
14592            prefix,
14593            suffix,
14594            children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
14595              Input,
14596              {
14597                ref,
14598                className: clsx_default(global_css_defense_default4.input, style_default8.input),
14599                ...restProps
14600              }
14601            )
14602          }
14603        );
14604      }
14605    );
14606  
14607    // packages/ui/build-module/utils/css/item-popup.mjs
14608    var STYLE_HASH_ATTRIBUTE10 = "data-wp-hash";
14609    function getRuntime10() {
14610      const globalScope = globalThis;
14611      if (globalScope.__wpStyleRuntime) {
14612        return globalScope.__wpStyleRuntime;
14613      }
14614      globalScope.__wpStyleRuntime = {
14615        documents: /* @__PURE__ */ new Map(),
14616        styles: /* @__PURE__ */ new Map(),
14617        injectedStyles: /* @__PURE__ */ new WeakMap()
14618      };
14619      if (typeof document !== "undefined") {
14620        registerDocument10(document);
14621      }
14622      return globalScope.__wpStyleRuntime;
14623    }
14624    function documentContainsStyleHash10(targetDocument, hash) {
14625      if (!targetDocument.head) {
14626        return false;
14627      }
14628      for (const style of targetDocument.head.querySelectorAll(
14629        `style[$STYLE_HASH_ATTRIBUTE10}]`
14630      )) {
14631        if (style.getAttribute(STYLE_HASH_ATTRIBUTE10) === hash) {
14632          return true;
14633        }
14634      }
14635      return false;
14636    }
14637    function injectStyle10(targetDocument, hash, css) {
14638      if (!targetDocument.head) {
14639        return;
14640      }
14641      const runtime = getRuntime10();
14642      let injectedStyles = runtime.injectedStyles.get(targetDocument);
14643      if (!injectedStyles) {
14644        injectedStyles = /* @__PURE__ */ new Set();
14645        runtime.injectedStyles.set(targetDocument, injectedStyles);
14646      }
14647      if (injectedStyles.has(hash)) {
14648        return;
14649      }
14650      if (documentContainsStyleHash10(targetDocument, hash)) {
14651        injectedStyles.add(hash);
14652        return;
14653      }
14654      const style = targetDocument.createElement("style");
14655      style.setAttribute(STYLE_HASH_ATTRIBUTE10, hash);
14656      style.appendChild(targetDocument.createTextNode(css));
14657      targetDocument.head.appendChild(style);
14658      injectedStyles.add(hash);
14659    }
14660    function registerDocument10(targetDocument) {
14661      const runtime = getRuntime10();
14662      runtime.documents.set(
14663        targetDocument,
14664        (runtime.documents.get(targetDocument) ?? 0) + 1
14665      );
14666      for (const [hash, css] of runtime.styles) {
14667        injectStyle10(targetDocument, hash, css);
14668      }
14669      return () => {
14670        const count = runtime.documents.get(targetDocument);
14671        if (count === void 0) {
14672          return;
14673        }
14674        if (count <= 1) {
14675          runtime.documents.delete(targetDocument);
14676          return;
14677        }
14678        runtime.documents.set(targetDocument, count - 1);
14679      };
14680    }
14681    function registerStyle10(hash, css) {
14682      const runtime = getRuntime10();
14683      runtime.styles.set(hash, css);
14684      for (const targetDocument of runtime.documents.keys()) {
14685        injectStyle10(targetDocument, hash, css);
14686      }
14687    }
14688    if (typeof process === "undefined" || true) {
14689      registerStyle10("7ad1c0f17c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._069972d5e326bada__dropdown-motion,._66136bf671f00b1f__dropdown-motion--fade-only{--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;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._069972d5e326bada__dropdown-motion{transform:translate(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))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.db3b5361087077bf__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" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&._55f74d412c3e00e8__is-width-anchor{width:var(--anchor-width)}&._90e0b62205351f85__is-width-content{width:auto}&._30ba87899c0b11ce__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&._402d4db0488da324__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._34ead52b2d60b21d__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._3fec17b6dc9029c3__is-width-available{width:var(--available-width)}}._89cf8b0bb3319c7e__is-align-item-with-trigger[data-side=none] .db3b5361087077bf__popup{max-height:none}._66636b371582ead4__list-chrome{--_wp-ui-popup-selection-offset:0px;color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);&:has(.b6aeb640498fae5d__item-icon){--_wp-ui-popup-selection-offset:calc(var(--wpds-dimension-size-2xs, 16px) + var(--wpds-dimension-gap-xs, 4px) - var(--wpds-dimension-padding-xs, 4px))}}._325f1b7764907c29__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._597ea43c6bec63d8__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)}}._5865110cf5678449__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._597ea43c6bec63d8__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}._09c9c50e605390ff__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._6361da5eb54e618d__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-sm,24px);padding-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));padding-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset))}._88cf016d20b4f2ef__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));margin-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset));@media (forced-colors:active){background-color:CanvasText}}.c466e5465a76d4f6__item-layout{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--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);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline:var(--wp-ui-popup-item-padding-inline);&:has(>.b6aeb640498fae5d__item-icon){align-content:center;align-items:start;display:grid;grid-template-columns:auto minmax(0,1fr);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}}.b9c803da5aae76d5__item{user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._8931f3eb02e2e0ad__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]){._494b2a9f2e72b67f__item-indicator-icon{opacity:0}}&[data-highlighted]:not([data-disabled]){background-color: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);outline:none;@media (forced-colors:active){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&:focus-visible{--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--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,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:0}@media (forced-colors:active){color:GrayText}}}.b6aeb640498fae5d__item-icon{align-items:center;display:flex;height:var(--wpds-typography-line-height-sm,20px);justify-content:center;pointer-events:none;width:var(--wpds-dimension-size-2xs,16px)}._494b2a9f2e72b67f__item-indicator-icon{translate:0 1px}.b40c7d58965ce4a5__item-content{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);min-width:0}._3c629930ceb193c7__item-text{display:flex;flex-direction:column;min-width:0}._5c4aad98ed7a8382__item-label{--_gcd-heading-color:currentColor;min-width:0}.deb952050541c0e4__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.b9c803da5aae76d5__item[data-disabled] .deb952050541c0e4__item-description,.b9c803da5aae76d5__item[data-highlighted]:not([data-disabled]) .deb952050541c0e4__item-description{--_gcd-heading-color:currentColor;color:inherit}._5f8e4a2a04ecdade__loading-indicator{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-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.c1bf7c14e9600f0a__status{grid-area:status;&:has(._5f8e4a2a04ecdade__loading-indicator){padding-block:var(--wp-ui-popup-padding)}}._0850de87108c9441__empty:not(:empty){grid-area:main}._0850de87108c9441__empty:not(:empty),.c1bf7c14e9600f0a__status:not(:empty):not(:has([data-visually-hidden],._5f8e4a2a04ecdade__loading-indicator)){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--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);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)}}@layer compositions{.eaec70f7db4a63ef__loading-spinner{height:var(--wpds-dimension-size-3xs,12px);width:var(--wpds-dimension-size-3xs,12px)}}}');
14690    }
14691    var item_popup_default = { "popup": "db3b5361087077bf__popup _069972d5e326bada__dropdown-motion", "is-width-anchor": "_55f74d412c3e00e8__is-width-anchor", "is-width-content": "_90e0b62205351f85__is-width-content", "is-width-sm": "_30ba87899c0b11ce__is-width-sm", "is-width-md": "_402d4db0488da324__is-width-md", "is-width-lg": "_34ead52b2d60b21d__is-width-lg", "is-width-available": "_3fec17b6dc9029c3__is-width-available", "is-align-item-with-trigger": "_89cf8b0bb3319c7e__is-align-item-with-trigger", "list-chrome": "_66636b371582ead4__list-chrome", "item-icon": "b6aeb640498fae5d__item-icon", "list": "_325f1b7764907c29__list _66636b371582ead4__list-chrome", "list-scrollable-container": "_597ea43c6bec63d8__list-scrollable-container", "list-footer": "_5865110cf5678449__list-footer", "group": "_09c9c50e605390ff__group", "group-label": "_6361da5eb54e618d__group-label", "separator": "_88cf016d20b4f2ef__separator", "item-layout": "c466e5465a76d4f6__item-layout", "item": "b9c803da5aae76d5__item c466e5465a76d4f6__item-layout", "is-size-small": "_8931f3eb02e2e0ad__is-size-small", "item-indicator-icon": "_494b2a9f2e72b67f__item-indicator-icon", "item-content": "b40c7d58965ce4a5__item-content", "item-text": "_3c629930ceb193c7__item-text", "item-label": "_5c4aad98ed7a8382__item-label", "item-description": "deb952050541c0e4__item-description", "loading-indicator": "_5f8e4a2a04ecdade__loading-indicator c466e5465a76d4f6__item-layout", "status": "c1bf7c14e9600f0a__status", "empty": "_0850de87108c9441__empty", "loading-spinner": "eaec70f7db4a63ef__loading-spinner" };
14692    function getItemPopupWidthClassName(width = "anchor") {
14693      switch (width) {
14694        case "available":
14695          return item_popup_default["is-width-available"];
14696        case "content":
14697          return item_popup_default["is-width-content"];
14698        case "lg":
14699          return item_popup_default["is-width-lg"];
14700        case "md":
14701          return item_popup_default["is-width-md"];
14702        case "sm":
14703          return item_popup_default["is-width-sm"];
14704        case "anchor":
14705          return item_popup_default["is-width-anchor"];
14706        default:
14707          return false;
14708      }
14709    }
14710  
14711    // packages/ui/build-module/form/primitives/control-with-error/control-with-error.mjs
14712    var import_i18n5 = __toESM(require_i18n(), 1);
14713    var import_element20 = __toESM(require_element(), 1);
14714  
14715    // packages/ui/build-module/form/primitives/validity-indicator/validity-indicator.mjs
14716    var import_jsx_runtime57 = __toESM(require_jsx_runtime(), 1);
14717    var STYLE_HASH_ATTRIBUTE11 = "data-wp-hash";
14718    function getRuntime11() {
14719      const globalScope = globalThis;
14720      if (globalScope.__wpStyleRuntime) {
14721        return globalScope.__wpStyleRuntime;
14722      }
14723      globalScope.__wpStyleRuntime = {
14724        documents: /* @__PURE__ */ new Map(),
14725        styles: /* @__PURE__ */ new Map(),
14726        injectedStyles: /* @__PURE__ */ new WeakMap()
14727      };
14728      if (typeof document !== "undefined") {
14729        registerDocument11(document);
14730      }
14731      return globalScope.__wpStyleRuntime;
14732    }
14733    function documentContainsStyleHash11(targetDocument, hash) {
14734      if (!targetDocument.head) {
14735        return false;
14736      }
14737      for (const style of targetDocument.head.querySelectorAll(
14738        `style[$STYLE_HASH_ATTRIBUTE11}]`
14739      )) {
14740        if (style.getAttribute(STYLE_HASH_ATTRIBUTE11) === hash) {
14741          return true;
14742        }
14743      }
14744      return false;
14745    }
14746    function injectStyle11(targetDocument, hash, css) {
14747      if (!targetDocument.head) {
14748        return;
14749      }
14750      const runtime = getRuntime11();
14751      let injectedStyles = runtime.injectedStyles.get(targetDocument);
14752      if (!injectedStyles) {
14753        injectedStyles = /* @__PURE__ */ new Set();
14754        runtime.injectedStyles.set(targetDocument, injectedStyles);
14755      }
14756      if (injectedStyles.has(hash)) {
14757        return;
14758      }
14759      if (documentContainsStyleHash11(targetDocument, hash)) {
14760        injectedStyles.add(hash);
14761        return;
14762      }
14763      const style = targetDocument.createElement("style");
14764      style.setAttribute(STYLE_HASH_ATTRIBUTE11, hash);
14765      style.appendChild(targetDocument.createTextNode(css));
14766      targetDocument.head.appendChild(style);
14767      injectedStyles.add(hash);
14768    }
14769    function registerDocument11(targetDocument) {
14770      const runtime = getRuntime11();
14771      runtime.documents.set(
14772        targetDocument,
14773        (runtime.documents.get(targetDocument) ?? 0) + 1
14774      );
14775      for (const [hash, css] of runtime.styles) {
14776        injectStyle11(targetDocument, hash, css);
14777      }
14778      return () => {
14779        const count = runtime.documents.get(targetDocument);
14780        if (count === void 0) {
14781          return;
14782        }
14783        if (count <= 1) {
14784          runtime.documents.delete(targetDocument);
14785          return;
14786        }
14787        runtime.documents.set(targetDocument, count - 1);
14788      };
14789    }
14790    function registerStyle11(hash, css) {
14791      const runtime = getRuntime11();
14792      runtime.styles.set(hash, css);
14793      for (const targetDocument of runtime.documents.keys()) {
14794        injectStyle11(targetDocument, hash, css);
14795      }
14796    }
14797    if (typeof process === "undefined" || true) {
14798      registerStyle11("726f348f3f", "._78c10a0773e51a91__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)}._5b33aa2d48624b4f__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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}}._980b3b4776ac8f81__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._43e478b4279a076c__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._698099e25b0fb1a6__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)._326aee4184d261fd__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)}.e9576240835601ba__a,.e9576240835601ba__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)}._3f05789653864a73__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._3c72ff72abe57859__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._79d16267c15d9eb2__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");
14799    }
14800    var global_css_defense_default5 = { "button": "_78c10a0773e51a91__button", "input": "_5b33aa2d48624b4f__input", "textarea": "_980b3b4776ac8f81__textarea", "div": "_43e478b4279a076c__div", "p": "_698099e25b0fb1a6__p", "heading": "_326aee4184d261fd__heading", "a": "e9576240835601ba__a", "ol": "_3f05789653864a73__ol", "li": "_3c72ff72abe57859__li", "span": "_79d16267c15d9eb2__span" };
14801    if (typeof process === "undefined" || true) {
14802      registerStyle11("aba5ec2cd2", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._065156d308cd9e34__indicator{--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);align-items:flex-start;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-sm,12px);gap:var(--wpds-dimension-gap-xs,4px);line-height:var(--wpds-typography-line-height-xs,16px);@media not (prefers-reduced-motion){animation:_0b9b0205648471e6__indicator-jump var(--wpds-motion-duration-md,.2s) cubic-bezier(.68,-.55,.27,1.55)}}._1433e92faa429aa6__is-invalid{color:var(--wpds-color-foreground-content-error-weak,#cc1818)}._8f2844793b7e3dbd__is-valid{color:var(--wpds-color-foreground-content-success-weak,#008030)}._9b4c4f0124b71294__indicator-icon{flex-shrink:0}.c07a36506fa9f62a__indicator-spinner{height:var(--wpds-dimension-size-3xs,12px);margin:2px;width:var(--wpds-dimension-size-3xs,12px)}@keyframes _0b9b0205648471e6__indicator-jump{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}}}');
14803    }
14804    var style_default9 = { "indicator": "_065156d308cd9e34__indicator", "indicator-jump": "_0b9b0205648471e6__indicator-jump", "is-invalid": "_1433e92faa429aa6__is-invalid", "is-valid": "_8f2844793b7e3dbd__is-valid", "indicator-icon": "_9b4c4f0124b71294__indicator-icon", "indicator-spinner": "c07a36506fa9f62a__indicator-spinner" };
14805    var ICON = {
14806      valid: published_default,
14807      invalid: error_default
14808    };
14809    function ValidityIndicator({
14810      id,
14811      type,
14812      message
14813    }) {
14814      return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
14815        "p",
14816        {
14817          id,
14818          className: clsx_default(
14819            global_css_defense_default5.p,
14820            style_default9.indicator,
14821            style_default9[`is-$type}`]
14822          ),
14823          children: [
14824            type === "validating" ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Spinner, { className: style_default9["indicator-spinner"] }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
14825              Icon,
14826              {
14827                className: style_default9["indicator-icon"],
14828                icon: ICON[type],
14829                size: 16,
14830                fill: "currentColor"
14831              }
14832            ),
14833            message
14834          ]
14835        }
14836      );
14837    }
14838  
14839    // packages/ui/build-module/form/primitives/control-with-error/control-with-error.mjs
14840    var import_jsx_runtime58 = __toESM(require_jsx_runtime(), 1);
14841    var DEFAULT_RENDER = (props) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Stack, { ...props, direction: "column", gap: "sm" });
14842    function appendRequiredIndicator(label, required, markWhenOptional) {
14843      let suffix;
14844      if (required && !markWhenOptional) {
14845        suffix = `(${(0, import_i18n5.__)("Required")})`;
14846      } else if (!required && markWhenOptional) {
14847        suffix = `(${(0, import_i18n5.__)("Optional")})`;
14848      }
14849      if (!suffix) {
14850        return label;
14851      }
14852      if (typeof label === "string") {
14853        return `$label} $suffix}`;
14854      }
14855      return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
14856        label,
14857        " ",
14858        suffix
14859      ] });
14860    }
14861    var VALIDITY_VISIBLE_ATTRIBUTE = "data-validity-visible";
14862    var ControlWithError = (0, import_element20.forwardRef)(function UnforwardedControlWithError({
14863      required,
14864      markWhenOptional,
14865      customValidity,
14866      getValidityTarget,
14867      children,
14868      render = DEFAULT_RENDER,
14869      ...restProps
14870    }, forwardedRef) {
14871      const [errorMessage, setErrorMessage] = (0, import_element20.useState)();
14872      const [statusMessage, setStatusMessage] = (0, import_element20.useState)();
14873      const [showMessage, setShowMessage] = (0, import_element20.useState)(false);
14874      const [isTouched, setIsTouched] = (0, import_element20.useState)(false);
14875      const wrapperRef = (0, import_element20.useRef)(null);
14876      (0, import_element20.useEffect)(() => {
14877        const validityTarget = getValidityTarget();
14878        const handler = () => {
14879          if (customValidity?.type !== "validating") {
14880            setErrorMessage(validityTarget?.validationMessage);
14881          }
14882          setShowMessage(true);
14883          validityTarget?.setAttribute(VALIDITY_VISIBLE_ATTRIBUTE, "");
14884        };
14885        validityTarget?.addEventListener("invalid", handler);
14886        return () => validityTarget?.removeEventListener("invalid", handler);
14887      }, [customValidity?.type, getValidityTarget]);
14888      (0, import_element20.useEffect)(() => {
14889        const validityTarget = getValidityTarget();
14890        const suppressNativePopover = (event) => {
14891          event.preventDefault();
14892          if (!event.isTrusted) {
14893            return;
14894          }
14895          const target = event.target;
14896          const firstErrorInForm = Array.from(
14897            target.form?.elements ?? []
14898          ).find((el) => !el.validity.valid);
14899          if (!target.form || firstErrorInForm === target) {
14900            target.focus();
14901          }
14902        };
14903        const radioSiblings = validityTarget?.type === "radio" && validityTarget?.name ? Array.from(
14904          wrapperRef.current?.querySelectorAll(
14905            `input[type="radio"][name="$validityTarget?.name}"]`
14906          ) ?? []
14907        ).filter((sibling) => sibling !== validityTarget) : [];
14908        validityTarget?.addEventListener("invalid", suppressNativePopover);
14909        radioSiblings.forEach(
14910          (sibling) => sibling.addEventListener("invalid", suppressNativePopover)
14911        );
14912        return () => {
14913          validityTarget?.removeEventListener(
14914            "invalid",
14915            suppressNativePopover
14916          );
14917          radioSiblings.forEach(
14918            (sibling) => sibling.removeEventListener("invalid", suppressNativePopover)
14919          );
14920        };
14921      }, [getValidityTarget]);
14922      (0, import_element20.useEffect)(() => {
14923        const validityTarget = getValidityTarget();
14924        if (!customValidity?.type) {
14925          validityTarget?.setCustomValidity("");
14926          setErrorMessage(validityTarget?.validationMessage);
14927          setStatusMessage(void 0);
14928          return;
14929        }
14930        switch (customValidity.type) {
14931          case "validating": {
14932            validityTarget?.setCustomValidity("");
14933            setErrorMessage(void 0);
14934            setStatusMessage({
14935              type: "validating",
14936              message: customValidity.message
14937            });
14938            break;
14939          }
14940          case "valid": {
14941            validityTarget?.setCustomValidity("");
14942            setErrorMessage(validityTarget?.validationMessage);
14943            setStatusMessage({
14944              type: "valid",
14945              message: customValidity.message
14946            });
14947            break;
14948          }
14949          case "invalid": {
14950            validityTarget?.setCustomValidity(
14951              customValidity.message ?? ""
14952            );
14953            setErrorMessage(validityTarget?.validationMessage);
14954            setStatusMessage(void 0);
14955            break;
14956          }
14957        }
14958      }, [customValidity, getValidityTarget]);
14959      (0, import_element20.useEffect)(() => {
14960        if (!isTouched || showMessage) {
14961          return;
14962        }
14963        if (customValidity?.type === "validating") {
14964          const timer = setTimeout(() => {
14965            setShowMessage(true);
14966          }, 1e3);
14967          return () => clearTimeout(timer);
14968        }
14969        setShowMessage(true);
14970      }, [isTouched, customValidity?.type, showMessage]);
14971      const onBlur = (event) => {
14972        if (event.relatedTarget && event.currentTarget.contains(event.relatedTarget)) {
14973          return;
14974        }
14975        if (!isTouched) {
14976          setIsTouched(true);
14977          getValidityTarget()?.setAttribute(VALIDITY_VISIBLE_ATTRIBUTE, "");
14978        }
14979        const validityTarget = getValidityTarget();
14980        const isValidating = customValidity?.type === "validating";
14981        window.queueMicrotask(() => {
14982          if (!isValidating) {
14983            setErrorMessage(validityTarget?.validationMessage);
14984          }
14985        });
14986      };
14987      const messageId = (0, import_element20.useId)();
14988      const message = (() => {
14989        if (errorMessage) {
14990          return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
14991            ValidityIndicator,
14992            {
14993              id: messageId,
14994              type: "invalid",
14995              message: errorMessage
14996            }
14997          );
14998        }
14999        if (statusMessage?.type) {
15000          return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
15001            ValidityIndicator,
15002            {
15003              id: messageId,
15004              type: statusMessage.type,
15005              message: statusMessage.message
15006            }
15007          );
15008        }
15009        return null;
15010      })();
15011      const visibleMessage = showMessage ? message : null;
15012      (0, import_element20.useEffect)(() => {
15013        const target = getValidityTarget();
15014        if (!target) {
15015          return;
15016        }
15017        function setDescribedBy(el, shouldAdd) {
15018          const ids = (el.getAttribute("aria-describedby") ?? "").split(" ").filter((id) => id && id !== messageId);
15019          if (shouldAdd) {
15020            ids.push(messageId);
15021          }
15022          if (ids.length) {
15023            el.setAttribute("aria-describedby", ids.join(" "));
15024          } else {
15025            el.removeAttribute("aria-describedby");
15026          }
15027        }
15028        setDescribedBy(target, !!visibleMessage);
15029        return () => setDescribedBy(target, false);
15030      }, [visibleMessage, messageId, getValidityTarget]);
15031      return useRender({
15032        render,
15033        ref: [forwardedRef, wrapperRef],
15034        props: mergeProps(restProps, {
15035          onBlur,
15036          children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_jsx_runtime58.Fragment, { children: [
15037            (0, import_element20.cloneElement)(children, {
15038              label: appendRequiredIndicator(
15039                children.props.label,
15040                required,
15041                markWhenOptional
15042              ),
15043              required
15044            }),
15045            visibleMessage
15046          ] })
15047        })
15048      });
15049    });
15050  
15051    // packages/ui/build-module/form/primitives/field/index.mjs
15052    var field_exports = {};
15053    __export(field_exports, {
15054      Control: () => Control,
15055      Description: () => Description,
15056      Details: () => Details,
15057      Item: () => Item,
15058      Label: () => Label,
15059      Root: () => Root,
15060      VisualLabel: () => VisualLabel
15061    });
15062  
15063    // packages/ui/build-module/form/primitives/field/root.mjs
15064    var import_element21 = __toESM(require_element(), 1);
15065    var import_jsx_runtime59 = __toESM(require_jsx_runtime(), 1);
15066    var STYLE_HASH_ATTRIBUTE12 = "data-wp-hash";
15067    function getRuntime12() {
15068      const globalScope = globalThis;
15069      if (globalScope.__wpStyleRuntime) {
15070        return globalScope.__wpStyleRuntime;
15071      }
15072      globalScope.__wpStyleRuntime = {
15073        documents: /* @__PURE__ */ new Map(),
15074        styles: /* @__PURE__ */ new Map(),
15075        injectedStyles: /* @__PURE__ */ new WeakMap()
15076      };
15077      if (typeof document !== "undefined") {
15078        registerDocument12(document);
15079      }
15080      return globalScope.__wpStyleRuntime;
15081    }
15082    function documentContainsStyleHash12(targetDocument, hash) {
15083      if (!targetDocument.head) {
15084        return false;
15085      }
15086      for (const style of targetDocument.head.querySelectorAll(
15087        `style[$STYLE_HASH_ATTRIBUTE12}]`
15088      )) {
15089        if (style.getAttribute(STYLE_HASH_ATTRIBUTE12) === hash) {
15090          return true;
15091        }
15092      }
15093      return false;
15094    }
15095    function injectStyle12(targetDocument, hash, css) {
15096      if (!targetDocument.head) {
15097        return;
15098      }
15099      const runtime = getRuntime12();
15100      let injectedStyles = runtime.injectedStyles.get(targetDocument);
15101      if (!injectedStyles) {
15102        injectedStyles = /* @__PURE__ */ new Set();
15103        runtime.injectedStyles.set(targetDocument, injectedStyles);
15104      }
15105      if (injectedStyles.has(hash)) {
15106        return;
15107      }
15108      if (documentContainsStyleHash12(targetDocument, hash)) {
15109        injectedStyles.add(hash);
15110        return;
15111      }
15112      const style = targetDocument.createElement("style");
15113      style.setAttribute(STYLE_HASH_ATTRIBUTE12, hash);
15114      style.appendChild(targetDocument.createTextNode(css));
15115      targetDocument.head.appendChild(style);
15116      injectedStyles.add(hash);
15117    }
15118    function registerDocument12(targetDocument) {
15119      const runtime = getRuntime12();
15120      runtime.documents.set(
15121        targetDocument,
15122        (runtime.documents.get(targetDocument) ?? 0) + 1
15123      );
15124      for (const [hash, css] of runtime.styles) {
15125        injectStyle12(targetDocument, hash, css);
15126      }
15127      return () => {
15128        const count = runtime.documents.get(targetDocument);
15129        if (count === void 0) {
15130          return;
15131        }
15132        if (count <= 1) {
15133          runtime.documents.delete(targetDocument);
15134          return;
15135        }
15136        runtime.documents.set(targetDocument, count - 1);
15137      };
15138    }
15139    function registerStyle12(hash, css) {
15140      const runtime = getRuntime12();
15141      runtime.styles.set(hash, css);
15142      for (const targetDocument of runtime.documents.keys()) {
15143        injectStyle12(targetDocument, hash, css);
15144      }
15145    }
15146    if (typeof process === "undefined" || true) {
15147      registerStyle12("37477070fb", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.ccc29f9575c4c758__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
15148    }
15149    var resets_default3 = { "box-sizing": "ccc29f9575c4c758__box-sizing" };
15150    var DEFAULT_RENDER2 = (props) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Stack, { ...props, direction: "column", gap: "sm" });
15151    var Root = (0, import_element21.forwardRef)(
15152      function UnforwardedRoot({ className, render = DEFAULT_RENDER2, ...restProps }, ref) {
15153        return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
15154          index_parts_exports.Root,
15155          {
15156            ref,
15157            className: clsx_default(resets_default3["box-sizing"], className),
15158            render,
15159            ...restProps
15160          }
15161        );
15162      }
15163    );
15164  
15165    // packages/ui/build-module/form/primitives/field/item.mjs
15166    var import_element22 = __toESM(require_element(), 1);
15167    var import_jsx_runtime60 = __toESM(require_jsx_runtime(), 1);
15168    var Item = (0, import_element22.forwardRef)(function UnforwardedItem(props, ref) {
15169      return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(index_parts_exports.Item, { ref, ...props });
15170    });
15171  
15172    // packages/ui/build-module/form/primitives/field/label.mjs
15173    var import_element23 = __toESM(require_element(), 1);
15174    var import_jsx_runtime61 = __toESM(require_jsx_runtime(), 1);
15175    var STYLE_HASH_ATTRIBUTE13 = "data-wp-hash";
15176    function getRuntime13() {
15177      const globalScope = globalThis;
15178      if (globalScope.__wpStyleRuntime) {
15179        return globalScope.__wpStyleRuntime;
15180      }
15181      globalScope.__wpStyleRuntime = {
15182        documents: /* @__PURE__ */ new Map(),
15183        styles: /* @__PURE__ */ new Map(),
15184        injectedStyles: /* @__PURE__ */ new WeakMap()
15185      };
15186      if (typeof document !== "undefined") {
15187        registerDocument13(document);
15188      }
15189      return globalScope.__wpStyleRuntime;
15190    }
15191    function documentContainsStyleHash13(targetDocument, hash) {
15192      if (!targetDocument.head) {
15193        return false;
15194      }
15195      for (const style of targetDocument.head.querySelectorAll(
15196        `style[$STYLE_HASH_ATTRIBUTE13}]`
15197      )) {
15198        if (style.getAttribute(STYLE_HASH_ATTRIBUTE13) === hash) {
15199          return true;
15200        }
15201      }
15202      return false;
15203    }
15204    function injectStyle13(targetDocument, hash, css) {
15205      if (!targetDocument.head) {
15206        return;
15207      }
15208      const runtime = getRuntime13();
15209      let injectedStyles = runtime.injectedStyles.get(targetDocument);
15210      if (!injectedStyles) {
15211        injectedStyles = /* @__PURE__ */ new Set();
15212        runtime.injectedStyles.set(targetDocument, injectedStyles);
15213      }
15214      if (injectedStyles.has(hash)) {
15215        return;
15216      }
15217      if (documentContainsStyleHash13(targetDocument, hash)) {
15218        injectedStyles.add(hash);
15219        return;
15220      }
15221      const style = targetDocument.createElement("style");
15222      style.setAttribute(STYLE_HASH_ATTRIBUTE13, hash);
15223      style.appendChild(targetDocument.createTextNode(css));
15224      targetDocument.head.appendChild(style);
15225      injectedStyles.add(hash);
15226    }
15227    function registerDocument13(targetDocument) {
15228      const runtime = getRuntime13();
15229      runtime.documents.set(
15230        targetDocument,
15231        (runtime.documents.get(targetDocument) ?? 0) + 1
15232      );
15233      for (const [hash, css] of runtime.styles) {
15234        injectStyle13(targetDocument, hash, css);
15235      }
15236      return () => {
15237        const count = runtime.documents.get(targetDocument);
15238        if (count === void 0) {
15239          return;
15240        }
15241        if (count <= 1) {
15242          runtime.documents.delete(targetDocument);
15243          return;
15244        }
15245        runtime.documents.set(targetDocument, count - 1);
15246      };
15247    }
15248    function registerStyle13(hash, css) {
15249      const runtime = getRuntime13();
15250      runtime.styles.set(hash, css);
15251      for (const targetDocument of runtime.documents.keys()) {
15252        injectStyle13(targetDocument, hash, css);
15253      }
15254    }
15255    if (typeof process === "undefined" || true) {
15256      registerStyle13("71ecfbcef4", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.b83e088455118c35__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;&._7cbfa5d2e598834a__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._507b5c7970fe2ffd__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)}}}');
15257    }
15258    var field_default = { "label": "b83e088455118c35__label", "is-plain": "_7cbfa5d2e598834a__is-plain", "description": "_507b5c7970fe2ffd__description" };
15259    var Label = (0, import_element23.forwardRef)(
15260      function UnforwardedLabel({ className, hideFromVision, variant, ...restProps }, ref) {
15261        const label = /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
15262          index_parts_exports.Label,
15263          {
15264            ref,
15265            className: clsx_default(
15266              field_default.label,
15267              variant && field_default[`is-$variant}`],
15268              className
15269            ),
15270            ...restProps
15271          }
15272        );
15273        if (hideFromVision) {
15274          return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(VisuallyHidden, { render: label });
15275        }
15276        return label;
15277      }
15278    );
15279  
15280    // packages/ui/build-module/form/primitives/field/description.mjs
15281    var import_element24 = __toESM(require_element(), 1);
15282    var import_jsx_runtime62 = __toESM(require_jsx_runtime(), 1);
15283    var STYLE_HASH_ATTRIBUTE14 = "data-wp-hash";
15284    function getRuntime14() {
15285      const globalScope = globalThis;
15286      if (globalScope.__wpStyleRuntime) {
15287        return globalScope.__wpStyleRuntime;
15288      }
15289      globalScope.__wpStyleRuntime = {
15290        documents: /* @__PURE__ */ new Map(),
15291        styles: /* @__PURE__ */ new Map(),
15292        injectedStyles: /* @__PURE__ */ new WeakMap()
15293      };
15294      if (typeof document !== "undefined") {
15295        registerDocument14(document);
15296      }
15297      return globalScope.__wpStyleRuntime;
15298    }
15299    function documentContainsStyleHash14(targetDocument, hash) {
15300      if (!targetDocument.head) {
15301        return false;
15302      }
15303      for (const style of targetDocument.head.querySelectorAll(
15304        `style[$STYLE_HASH_ATTRIBUTE14}]`
15305      )) {
15306        if (style.getAttribute(STYLE_HASH_ATTRIBUTE14) === hash) {
15307          return true;
15308        }
15309      }
15310      return false;
15311    }
15312    function injectStyle14(targetDocument, hash, css) {
15313      if (!targetDocument.head) {
15314        return;
15315      }
15316      const runtime = getRuntime14();
15317      let injectedStyles = runtime.injectedStyles.get(targetDocument);
15318      if (!injectedStyles) {
15319        injectedStyles = /* @__PURE__ */ new Set();
15320        runtime.injectedStyles.set(targetDocument, injectedStyles);
15321      }
15322      if (injectedStyles.has(hash)) {
15323        return;
15324      }
15325      if (documentContainsStyleHash14(targetDocument, hash)) {
15326        injectedStyles.add(hash);
15327        return;
15328      }
15329      const style = targetDocument.createElement("style");
15330      style.setAttribute(STYLE_HASH_ATTRIBUTE14, hash);
15331      style.appendChild(targetDocument.createTextNode(css));
15332      targetDocument.head.appendChild(style);
15333      injectedStyles.add(hash);
15334    }
15335    function registerDocument14(targetDocument) {
15336      const runtime = getRuntime14();
15337      runtime.documents.set(
15338        targetDocument,
15339        (runtime.documents.get(targetDocument) ?? 0) + 1
15340      );
15341      for (const [hash, css] of runtime.styles) {
15342        injectStyle14(targetDocument, hash, css);
15343      }
15344      return () => {
15345        const count = runtime.documents.get(targetDocument);
15346        if (count === void 0) {
15347          return;
15348        }
15349        if (count <= 1) {
15350          runtime.documents.delete(targetDocument);
15351          return;
15352        }
15353        runtime.documents.set(targetDocument, count - 1);
15354      };
15355    }
15356    function registerStyle14(hash, css) {
15357      const runtime = getRuntime14();
15358      runtime.styles.set(hash, css);
15359      for (const targetDocument of runtime.documents.keys()) {
15360        injectStyle14(targetDocument, hash, css);
15361      }
15362    }
15363    if (typeof process === "undefined" || true) {
15364      registerStyle14("726f348f3f", "._78c10a0773e51a91__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)}._5b33aa2d48624b4f__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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}}._980b3b4776ac8f81__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._43e478b4279a076c__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._698099e25b0fb1a6__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)._326aee4184d261fd__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)}.e9576240835601ba__a,.e9576240835601ba__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)}._3f05789653864a73__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._3c72ff72abe57859__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._79d16267c15d9eb2__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");
15365    }
15366    var global_css_defense_default6 = { "button": "_78c10a0773e51a91__button", "input": "_5b33aa2d48624b4f__input", "textarea": "_980b3b4776ac8f81__textarea", "div": "_43e478b4279a076c__div", "p": "_698099e25b0fb1a6__p", "heading": "_326aee4184d261fd__heading", "a": "e9576240835601ba__a", "ol": "_3f05789653864a73__ol", "li": "_3c72ff72abe57859__li", "span": "_79d16267c15d9eb2__span" };
15367    if (typeof process === "undefined" || true) {
15368      registerStyle14("71ecfbcef4", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.b83e088455118c35__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;&._7cbfa5d2e598834a__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._507b5c7970fe2ffd__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)}}}');
15369    }
15370    var field_default2 = { "label": "b83e088455118c35__label", "is-plain": "_7cbfa5d2e598834a__is-plain", "description": "_507b5c7970fe2ffd__description" };
15371    var Description = (0, import_element24.forwardRef)(function UnforwardedDescription({ className, ...restProps }, ref) {
15372      return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
15373        index_parts_exports.Description,
15374        {
15375          ref,
15376          className: clsx_default(
15377            global_css_defense_default6.p,
15378            field_default2.description,
15379            className
15380          ),
15381          ...restProps
15382        }
15383      );
15384    });
15385  
15386    // packages/ui/build-module/form/primitives/field/details.mjs
15387    var import_element25 = __toESM(require_element(), 1);
15388    var import_i18n6 = __toESM(require_i18n(), 1);
15389    var import_jsx_runtime63 = __toESM(require_jsx_runtime(), 1);
15390    var STYLE_HASH_ATTRIBUTE15 = "data-wp-hash";
15391    function getRuntime15() {
15392      const globalScope = globalThis;
15393      if (globalScope.__wpStyleRuntime) {
15394        return globalScope.__wpStyleRuntime;
15395      }
15396      globalScope.__wpStyleRuntime = {
15397        documents: /* @__PURE__ */ new Map(),
15398        styles: /* @__PURE__ */ new Map(),
15399        injectedStyles: /* @__PURE__ */ new WeakMap()
15400      };
15401      if (typeof document !== "undefined") {
15402        registerDocument15(document);
15403      }
15404      return globalScope.__wpStyleRuntime;
15405    }
15406    function documentContainsStyleHash15(targetDocument, hash) {
15407      if (!targetDocument.head) {
15408        return false;
15409      }
15410      for (const style of targetDocument.head.querySelectorAll(
15411        `style[$STYLE_HASH_ATTRIBUTE15}]`
15412      )) {
15413        if (style.getAttribute(STYLE_HASH_ATTRIBUTE15) === hash) {
15414          return true;
15415        }
15416      }
15417      return false;
15418    }
15419    function injectStyle15(targetDocument, hash, css) {
15420      if (!targetDocument.head) {
15421        return;
15422      }
15423      const runtime = getRuntime15();
15424      let injectedStyles = runtime.injectedStyles.get(targetDocument);
15425      if (!injectedStyles) {
15426        injectedStyles = /* @__PURE__ */ new Set();
15427        runtime.injectedStyles.set(targetDocument, injectedStyles);
15428      }
15429      if (injectedStyles.has(hash)) {
15430        return;
15431      }
15432      if (documentContainsStyleHash15(targetDocument, hash)) {
15433        injectedStyles.add(hash);
15434        return;
15435      }
15436      const style = targetDocument.createElement("style");
15437      style.setAttribute(STYLE_HASH_ATTRIBUTE15, hash);
15438      style.appendChild(targetDocument.createTextNode(css));
15439      targetDocument.head.appendChild(style);
15440      injectedStyles.add(hash);
15441    }
15442    function registerDocument15(targetDocument) {
15443      const runtime = getRuntime15();
15444      runtime.documents.set(
15445        targetDocument,
15446        (runtime.documents.get(targetDocument) ?? 0) + 1
15447      );
15448      for (const [hash, css] of runtime.styles) {
15449        injectStyle15(targetDocument, hash, css);
15450      }
15451      return () => {
15452        const count = runtime.documents.get(targetDocument);
15453        if (count === void 0) {
15454          return;
15455        }
15456        if (count <= 1) {
15457          runtime.documents.delete(targetDocument);
15458          return;
15459        }
15460        runtime.documents.set(targetDocument, count - 1);
15461      };
15462    }
15463    function registerStyle15(hash, css) {
15464      const runtime = getRuntime15();
15465      runtime.styles.set(hash, css);
15466      for (const targetDocument of runtime.documents.keys()) {
15467        injectStyle15(targetDocument, hash, css);
15468      }
15469    }
15470    if (typeof process === "undefined" || true) {
15471      registerStyle15("71ecfbcef4", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.b83e088455118c35__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;&._7cbfa5d2e598834a__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._507b5c7970fe2ffd__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)}}}');
15472    }
15473    var field_default3 = { "label": "b83e088455118c35__label", "is-plain": "_7cbfa5d2e598834a__is-plain", "description": "_507b5c7970fe2ffd__description" };
15474    var Details = (0, import_element25.forwardRef)(
15475      function UnforwardedDetails({ className, ...restProps }, ref) {
15476        return /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_jsx_runtime63.Fragment, { children: [
15477          /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(index_parts_exports.Description, {}), children: (0, import_i18n6.__)("More details follow the field.") }),
15478          /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
15479            "div",
15480            {
15481              ref,
15482              className: clsx_default(field_default3.description, className),
15483              ...restProps
15484            }
15485          )
15486        ] });
15487      }
15488    );
15489  
15490    // packages/ui/build-module/form/primitives/field/control.mjs
15491    var import_element26 = __toESM(require_element(), 1);
15492    var import_jsx_runtime64 = __toESM(require_jsx_runtime(), 1);
15493    var Control = (0, import_element26.forwardRef)(
15494      function UnforwardedControl(props, ref) {
15495        return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(index_parts_exports.Control, { ref, ...props });
15496      }
15497    );
15498  
15499    // packages/ui/build-module/form/primitives/field/visual-label.mjs
15500    var import_element27 = __toESM(require_element(), 1);
15501    var STYLE_HASH_ATTRIBUTE16 = "data-wp-hash";
15502    function getRuntime16() {
15503      const globalScope = globalThis;
15504      if (globalScope.__wpStyleRuntime) {
15505        return globalScope.__wpStyleRuntime;
15506      }
15507      globalScope.__wpStyleRuntime = {
15508        documents: /* @__PURE__ */ new Map(),
15509        styles: /* @__PURE__ */ new Map(),
15510        injectedStyles: /* @__PURE__ */ new WeakMap()
15511      };
15512      if (typeof document !== "undefined") {
15513        registerDocument16(document);
15514      }
15515      return globalScope.__wpStyleRuntime;
15516    }
15517    function documentContainsStyleHash16(targetDocument, hash) {
15518      if (!targetDocument.head) {
15519        return false;
15520      }
15521      for (const style of targetDocument.head.querySelectorAll(
15522        `style[$STYLE_HASH_ATTRIBUTE16}]`
15523      )) {
15524        if (style.getAttribute(STYLE_HASH_ATTRIBUTE16) === hash) {
15525          return true;
15526        }
15527      }
15528      return false;
15529    }
15530    function injectStyle16(targetDocument, hash, css) {
15531      if (!targetDocument.head) {
15532        return;
15533      }
15534      const runtime = getRuntime16();
15535      let injectedStyles = runtime.injectedStyles.get(targetDocument);
15536      if (!injectedStyles) {
15537        injectedStyles = /* @__PURE__ */ new Set();
15538        runtime.injectedStyles.set(targetDocument, injectedStyles);
15539      }
15540      if (injectedStyles.has(hash)) {
15541        return;
15542      }
15543      if (documentContainsStyleHash16(targetDocument, hash)) {
15544        injectedStyles.add(hash);
15545        return;
15546      }
15547      const style = targetDocument.createElement("style");
15548      style.setAttribute(STYLE_HASH_ATTRIBUTE16, hash);
15549      style.appendChild(targetDocument.createTextNode(css));
15550      targetDocument.head.appendChild(style);
15551      injectedStyles.add(hash);
15552    }
15553    function registerDocument16(targetDocument) {
15554      const runtime = getRuntime16();
15555      runtime.documents.set(
15556        targetDocument,
15557        (runtime.documents.get(targetDocument) ?? 0) + 1
15558      );
15559      for (const [hash, css] of runtime.styles) {
15560        injectStyle16(targetDocument, hash, css);
15561      }
15562      return () => {
15563        const count = runtime.documents.get(targetDocument);
15564        if (count === void 0) {
15565          return;
15566        }
15567        if (count <= 1) {
15568          runtime.documents.delete(targetDocument);
15569          return;
15570        }
15571        runtime.documents.set(targetDocument, count - 1);
15572      };
15573    }
15574    function registerStyle16(hash, css) {
15575      const runtime = getRuntime16();
15576      runtime.styles.set(hash, css);
15577      for (const targetDocument of runtime.documents.keys()) {
15578        injectStyle16(targetDocument, hash, css);
15579      }
15580    }
15581    if (typeof process === "undefined" || true) {
15582      registerStyle16("71ecfbcef4", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.b83e088455118c35__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;&._7cbfa5d2e598834a__is-plain{font-size:var(--wpds-typography-font-size-md,13px);font-weight:var(--wpds-typography-font-weight-default,400);text-transform:none}}._507b5c7970fe2ffd__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)}}}');
15583    }
15584    var field_default4 = { "label": "b83e088455118c35__label", "is-plain": "_7cbfa5d2e598834a__is-plain", "description": "_507b5c7970fe2ffd__description" };
15585    var VisualLabel = (0, import_element27.forwardRef)(
15586      function UnforwardedVisualLabel({ className, render, variant, ...restProps }, ref) {
15587        return useRender({
15588          defaultTagName: "span",
15589          render,
15590          ref,
15591          props: mergeProps(restProps, {
15592            className: clsx_default(
15593              field_default4.label,
15594              variant && field_default4[`is-$variant}`],
15595              className
15596            )
15597          })
15598        });
15599      }
15600    );
15601    VisualLabel.displayName = "Field.VisualLabel";
15602  
15603    // packages/ui/build-module/form/primitives/select/index.mjs
15604    var select_exports = {};
15605    __export(select_exports, {
15606      Group: () => Group,
15607      GroupLabel: () => GroupLabel,
15608      Item: () => Item2,
15609      ItemDescription: () => ItemDescription,
15610      ItemLabel: () => ItemLabel,
15611      Popup: () => Popup,
15612      Portal: () => Portal,
15613      Positioner: () => Positioner,
15614      Root: () => Root2,
15615      Separator: () => Separator,
15616      Trigger: () => Trigger
15617    });
15618  
15619    // packages/ui/build-module/form/primitives/select/group.mjs
15620    var import_element28 = __toESM(require_element(), 1);
15621    var import_jsx_runtime65 = __toESM(require_jsx_runtime(), 1);
15622    var STYLE_HASH_ATTRIBUTE17 = "data-wp-hash";
15623    function getRuntime17() {
15624      const globalScope = globalThis;
15625      if (globalScope.__wpStyleRuntime) {
15626        return globalScope.__wpStyleRuntime;
15627      }
15628      globalScope.__wpStyleRuntime = {
15629        documents: /* @__PURE__ */ new Map(),
15630        styles: /* @__PURE__ */ new Map(),
15631        injectedStyles: /* @__PURE__ */ new WeakMap()
15632      };
15633      if (typeof document !== "undefined") {
15634        registerDocument17(document);
15635      }
15636      return globalScope.__wpStyleRuntime;
15637    }
15638    function documentContainsStyleHash17(targetDocument, hash) {
15639      if (!targetDocument.head) {
15640        return false;
15641      }
15642      for (const style of targetDocument.head.querySelectorAll(
15643        `style[$STYLE_HASH_ATTRIBUTE17}]`
15644      )) {
15645        if (style.getAttribute(STYLE_HASH_ATTRIBUTE17) === hash) {
15646          return true;
15647        }
15648      }
15649      return false;
15650    }
15651    function injectStyle17(targetDocument, hash, css) {
15652      if (!targetDocument.head) {
15653        return;
15654      }
15655      const runtime = getRuntime17();
15656      let injectedStyles = runtime.injectedStyles.get(targetDocument);
15657      if (!injectedStyles) {
15658        injectedStyles = /* @__PURE__ */ new Set();
15659        runtime.injectedStyles.set(targetDocument, injectedStyles);
15660      }
15661      if (injectedStyles.has(hash)) {
15662        return;
15663      }
15664      if (documentContainsStyleHash17(targetDocument, hash)) {
15665        injectedStyles.add(hash);
15666        return;
15667      }
15668      const style = targetDocument.createElement("style");
15669      style.setAttribute(STYLE_HASH_ATTRIBUTE17, hash);
15670      style.appendChild(targetDocument.createTextNode(css));
15671      targetDocument.head.appendChild(style);
15672      injectedStyles.add(hash);
15673    }
15674    function registerDocument17(targetDocument) {
15675      const runtime = getRuntime17();
15676      runtime.documents.set(
15677        targetDocument,
15678        (runtime.documents.get(targetDocument) ?? 0) + 1
15679      );
15680      for (const [hash, css] of runtime.styles) {
15681        injectStyle17(targetDocument, hash, css);
15682      }
15683      return () => {
15684        const count = runtime.documents.get(targetDocument);
15685        if (count === void 0) {
15686          return;
15687        }
15688        if (count <= 1) {
15689          runtime.documents.delete(targetDocument);
15690          return;
15691        }
15692        runtime.documents.set(targetDocument, count - 1);
15693      };
15694    }
15695    function registerStyle17(hash, css) {
15696      const runtime = getRuntime17();
15697      runtime.styles.set(hash, css);
15698      for (const targetDocument of runtime.documents.keys()) {
15699        injectStyle17(targetDocument, hash, css);
15700      }
15701    }
15702    if (typeof process === "undefined" || true) {
15703      registerStyle17("7ad1c0f17c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._069972d5e326bada__dropdown-motion,._66136bf671f00b1f__dropdown-motion--fade-only{--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;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._069972d5e326bada__dropdown-motion{transform:translate(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))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.db3b5361087077bf__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" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&._55f74d412c3e00e8__is-width-anchor{width:var(--anchor-width)}&._90e0b62205351f85__is-width-content{width:auto}&._30ba87899c0b11ce__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&._402d4db0488da324__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._34ead52b2d60b21d__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._3fec17b6dc9029c3__is-width-available{width:var(--available-width)}}._89cf8b0bb3319c7e__is-align-item-with-trigger[data-side=none] .db3b5361087077bf__popup{max-height:none}._66636b371582ead4__list-chrome{--_wp-ui-popup-selection-offset:0px;color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);&:has(.b6aeb640498fae5d__item-icon){--_wp-ui-popup-selection-offset:calc(var(--wpds-dimension-size-2xs, 16px) + var(--wpds-dimension-gap-xs, 4px) - var(--wpds-dimension-padding-xs, 4px))}}._325f1b7764907c29__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._597ea43c6bec63d8__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)}}._5865110cf5678449__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._597ea43c6bec63d8__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}._09c9c50e605390ff__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._6361da5eb54e618d__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-sm,24px);padding-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));padding-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset))}._88cf016d20b4f2ef__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));margin-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset));@media (forced-colors:active){background-color:CanvasText}}.c466e5465a76d4f6__item-layout{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--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);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline:var(--wp-ui-popup-item-padding-inline);&:has(>.b6aeb640498fae5d__item-icon){align-content:center;align-items:start;display:grid;grid-template-columns:auto minmax(0,1fr);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}}.b9c803da5aae76d5__item{user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._8931f3eb02e2e0ad__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]){._494b2a9f2e72b67f__item-indicator-icon{opacity:0}}&[data-highlighted]:not([data-disabled]){background-color: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);outline:none;@media (forced-colors:active){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&:focus-visible{--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--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,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:0}@media (forced-colors:active){color:GrayText}}}.b6aeb640498fae5d__item-icon{align-items:center;display:flex;height:var(--wpds-typography-line-height-sm,20px);justify-content:center;pointer-events:none;width:var(--wpds-dimension-size-2xs,16px)}._494b2a9f2e72b67f__item-indicator-icon{translate:0 1px}.b40c7d58965ce4a5__item-content{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);min-width:0}._3c629930ceb193c7__item-text{display:flex;flex-direction:column;min-width:0}._5c4aad98ed7a8382__item-label{--_gcd-heading-color:currentColor;min-width:0}.deb952050541c0e4__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.b9c803da5aae76d5__item[data-disabled] .deb952050541c0e4__item-description,.b9c803da5aae76d5__item[data-highlighted]:not([data-disabled]) .deb952050541c0e4__item-description{--_gcd-heading-color:currentColor;color:inherit}._5f8e4a2a04ecdade__loading-indicator{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-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.c1bf7c14e9600f0a__status{grid-area:status;&:has(._5f8e4a2a04ecdade__loading-indicator){padding-block:var(--wp-ui-popup-padding)}}._0850de87108c9441__empty:not(:empty){grid-area:main}._0850de87108c9441__empty:not(:empty),.c1bf7c14e9600f0a__status:not(:empty):not(:has([data-visually-hidden],._5f8e4a2a04ecdade__loading-indicator)){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--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);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)}}@layer compositions{.eaec70f7db4a63ef__loading-spinner{height:var(--wpds-dimension-size-3xs,12px);width:var(--wpds-dimension-size-3xs,12px)}}}');
15704    }
15705    var item_popup_default2 = { "popup": "db3b5361087077bf__popup _069972d5e326bada__dropdown-motion", "is-width-anchor": "_55f74d412c3e00e8__is-width-anchor", "is-width-content": "_90e0b62205351f85__is-width-content", "is-width-sm": "_30ba87899c0b11ce__is-width-sm", "is-width-md": "_402d4db0488da324__is-width-md", "is-width-lg": "_34ead52b2d60b21d__is-width-lg", "is-width-available": "_3fec17b6dc9029c3__is-width-available", "is-align-item-with-trigger": "_89cf8b0bb3319c7e__is-align-item-with-trigger", "list-chrome": "_66636b371582ead4__list-chrome", "item-icon": "b6aeb640498fae5d__item-icon", "list": "_325f1b7764907c29__list _66636b371582ead4__list-chrome", "list-scrollable-container": "_597ea43c6bec63d8__list-scrollable-container", "list-footer": "_5865110cf5678449__list-footer", "group": "_09c9c50e605390ff__group", "group-label": "_6361da5eb54e618d__group-label", "separator": "_88cf016d20b4f2ef__separator", "item-layout": "c466e5465a76d4f6__item-layout", "item": "b9c803da5aae76d5__item c466e5465a76d4f6__item-layout", "is-size-small": "_8931f3eb02e2e0ad__is-size-small", "item-indicator-icon": "_494b2a9f2e72b67f__item-indicator-icon", "item-content": "b40c7d58965ce4a5__item-content", "item-text": "_3c629930ceb193c7__item-text", "item-label": "_5c4aad98ed7a8382__item-label", "item-description": "deb952050541c0e4__item-description", "loading-indicator": "_5f8e4a2a04ecdade__loading-indicator c466e5465a76d4f6__item-layout", "status": "c1bf7c14e9600f0a__status", "empty": "_0850de87108c9441__empty", "loading-spinner": "eaec70f7db4a63ef__loading-spinner" };
15706    var Group = (0, import_element28.forwardRef)(
15707      function UnforwardedGroup({ className, children, ...restProps }, ref) {
15708        return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
15709          index_parts_exports2.Group,
15710          {
15711            className: clsx_default(item_popup_default2.group, className),
15712            ref,
15713            ...restProps,
15714            children
15715          }
15716        );
15717      }
15718    );
15719  
15720    // packages/ui/build-module/form/primitives/select/group-label.mjs
15721    var import_element29 = __toESM(require_element(), 1);
15722    var import_jsx_runtime66 = __toESM(require_jsx_runtime(), 1);
15723    var STYLE_HASH_ATTRIBUTE18 = "data-wp-hash";
15724    function getRuntime18() {
15725      const globalScope = globalThis;
15726      if (globalScope.__wpStyleRuntime) {
15727        return globalScope.__wpStyleRuntime;
15728      }
15729      globalScope.__wpStyleRuntime = {
15730        documents: /* @__PURE__ */ new Map(),
15731        styles: /* @__PURE__ */ new Map(),
15732        injectedStyles: /* @__PURE__ */ new WeakMap()
15733      };
15734      if (typeof document !== "undefined") {
15735        registerDocument18(document);
15736      }
15737      return globalScope.__wpStyleRuntime;
15738    }
15739    function documentContainsStyleHash18(targetDocument, hash) {
15740      if (!targetDocument.head) {
15741        return false;
15742      }
15743      for (const style of targetDocument.head.querySelectorAll(
15744        `style[$STYLE_HASH_ATTRIBUTE18}]`
15745      )) {
15746        if (style.getAttribute(STYLE_HASH_ATTRIBUTE18) === hash) {
15747          return true;
15748        }
15749      }
15750      return false;
15751    }
15752    function injectStyle18(targetDocument, hash, css) {
15753      if (!targetDocument.head) {
15754        return;
15755      }
15756      const runtime = getRuntime18();
15757      let injectedStyles = runtime.injectedStyles.get(targetDocument);
15758      if (!injectedStyles) {
15759        injectedStyles = /* @__PURE__ */ new Set();
15760        runtime.injectedStyles.set(targetDocument, injectedStyles);
15761      }
15762      if (injectedStyles.has(hash)) {
15763        return;
15764      }
15765      if (documentContainsStyleHash18(targetDocument, hash)) {
15766        injectedStyles.add(hash);
15767        return;
15768      }
15769      const style = targetDocument.createElement("style");
15770      style.setAttribute(STYLE_HASH_ATTRIBUTE18, hash);
15771      style.appendChild(targetDocument.createTextNode(css));
15772      targetDocument.head.appendChild(style);
15773      injectedStyles.add(hash);
15774    }
15775    function registerDocument18(targetDocument) {
15776      const runtime = getRuntime18();
15777      runtime.documents.set(
15778        targetDocument,
15779        (runtime.documents.get(targetDocument) ?? 0) + 1
15780      );
15781      for (const [hash, css] of runtime.styles) {
15782        injectStyle18(targetDocument, hash, css);
15783      }
15784      return () => {
15785        const count = runtime.documents.get(targetDocument);
15786        if (count === void 0) {
15787          return;
15788        }
15789        if (count <= 1) {
15790          runtime.documents.delete(targetDocument);
15791          return;
15792        }
15793        runtime.documents.set(targetDocument, count - 1);
15794      };
15795    }
15796    function registerStyle18(hash, css) {
15797      const runtime = getRuntime18();
15798      runtime.styles.set(hash, css);
15799      for (const targetDocument of runtime.documents.keys()) {
15800        injectStyle18(targetDocument, hash, css);
15801      }
15802    }
15803    if (typeof process === "undefined" || true) {
15804      registerStyle18("7ad1c0f17c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._069972d5e326bada__dropdown-motion,._66136bf671f00b1f__dropdown-motion--fade-only{--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;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._069972d5e326bada__dropdown-motion{transform:translate(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))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.db3b5361087077bf__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" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&._55f74d412c3e00e8__is-width-anchor{width:var(--anchor-width)}&._90e0b62205351f85__is-width-content{width:auto}&._30ba87899c0b11ce__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&._402d4db0488da324__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._34ead52b2d60b21d__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._3fec17b6dc9029c3__is-width-available{width:var(--available-width)}}._89cf8b0bb3319c7e__is-align-item-with-trigger[data-side=none] .db3b5361087077bf__popup{max-height:none}._66636b371582ead4__list-chrome{--_wp-ui-popup-selection-offset:0px;color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);&:has(.b6aeb640498fae5d__item-icon){--_wp-ui-popup-selection-offset:calc(var(--wpds-dimension-size-2xs, 16px) + var(--wpds-dimension-gap-xs, 4px) - var(--wpds-dimension-padding-xs, 4px))}}._325f1b7764907c29__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._597ea43c6bec63d8__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)}}._5865110cf5678449__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._597ea43c6bec63d8__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}._09c9c50e605390ff__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._6361da5eb54e618d__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-sm,24px);padding-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));padding-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset))}._88cf016d20b4f2ef__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));margin-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset));@media (forced-colors:active){background-color:CanvasText}}.c466e5465a76d4f6__item-layout{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--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);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline:var(--wp-ui-popup-item-padding-inline);&:has(>.b6aeb640498fae5d__item-icon){align-content:center;align-items:start;display:grid;grid-template-columns:auto minmax(0,1fr);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}}.b9c803da5aae76d5__item{user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._8931f3eb02e2e0ad__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]){._494b2a9f2e72b67f__item-indicator-icon{opacity:0}}&[data-highlighted]:not([data-disabled]){background-color: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);outline:none;@media (forced-colors:active){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&:focus-visible{--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--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,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:0}@media (forced-colors:active){color:GrayText}}}.b6aeb640498fae5d__item-icon{align-items:center;display:flex;height:var(--wpds-typography-line-height-sm,20px);justify-content:center;pointer-events:none;width:var(--wpds-dimension-size-2xs,16px)}._494b2a9f2e72b67f__item-indicator-icon{translate:0 1px}.b40c7d58965ce4a5__item-content{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);min-width:0}._3c629930ceb193c7__item-text{display:flex;flex-direction:column;min-width:0}._5c4aad98ed7a8382__item-label{--_gcd-heading-color:currentColor;min-width:0}.deb952050541c0e4__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.b9c803da5aae76d5__item[data-disabled] .deb952050541c0e4__item-description,.b9c803da5aae76d5__item[data-highlighted]:not([data-disabled]) .deb952050541c0e4__item-description{--_gcd-heading-color:currentColor;color:inherit}._5f8e4a2a04ecdade__loading-indicator{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-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.c1bf7c14e9600f0a__status{grid-area:status;&:has(._5f8e4a2a04ecdade__loading-indicator){padding-block:var(--wp-ui-popup-padding)}}._0850de87108c9441__empty:not(:empty){grid-area:main}._0850de87108c9441__empty:not(:empty),.c1bf7c14e9600f0a__status:not(:empty):not(:has([data-visually-hidden],._5f8e4a2a04ecdade__loading-indicator)){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--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);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)}}@layer compositions{.eaec70f7db4a63ef__loading-spinner{height:var(--wpds-dimension-size-3xs,12px);width:var(--wpds-dimension-size-3xs,12px)}}}');
15805    }
15806    var item_popup_default3 = { "popup": "db3b5361087077bf__popup _069972d5e326bada__dropdown-motion", "is-width-anchor": "_55f74d412c3e00e8__is-width-anchor", "is-width-content": "_90e0b62205351f85__is-width-content", "is-width-sm": "_30ba87899c0b11ce__is-width-sm", "is-width-md": "_402d4db0488da324__is-width-md", "is-width-lg": "_34ead52b2d60b21d__is-width-lg", "is-width-available": "_3fec17b6dc9029c3__is-width-available", "is-align-item-with-trigger": "_89cf8b0bb3319c7e__is-align-item-with-trigger", "list-chrome": "_66636b371582ead4__list-chrome", "item-icon": "b6aeb640498fae5d__item-icon", "list": "_325f1b7764907c29__list _66636b371582ead4__list-chrome", "list-scrollable-container": "_597ea43c6bec63d8__list-scrollable-container", "list-footer": "_5865110cf5678449__list-footer", "group": "_09c9c50e605390ff__group", "group-label": "_6361da5eb54e618d__group-label", "separator": "_88cf016d20b4f2ef__separator", "item-layout": "c466e5465a76d4f6__item-layout", "item": "b9c803da5aae76d5__item c466e5465a76d4f6__item-layout", "is-size-small": "_8931f3eb02e2e0ad__is-size-small", "item-indicator-icon": "_494b2a9f2e72b67f__item-indicator-icon", "item-content": "b40c7d58965ce4a5__item-content", "item-text": "_3c629930ceb193c7__item-text", "item-label": "_5c4aad98ed7a8382__item-label", "item-description": "deb952050541c0e4__item-description", "loading-indicator": "_5f8e4a2a04ecdade__loading-indicator c466e5465a76d4f6__item-layout", "status": "c1bf7c14e9600f0a__status", "empty": "_0850de87108c9441__empty", "loading-spinner": "eaec70f7db4a63ef__loading-spinner" };
15807    var GroupLabel = (0, import_element29.forwardRef)(
15808      function UnforwardedGroupLabel({ className, children, ...restProps }, ref) {
15809        return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
15810          Text,
15811          {
15812            variant: "heading-sm",
15813            className: clsx_default(
15814              item_popup_default3["group-label"],
15815              className
15816            ),
15817            render: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(index_parts_exports2.GroupLabel, { ref, ...restProps }),
15818            children
15819          }
15820        );
15821      }
15822    );
15823  
15824    // packages/ui/build-module/form/primitives/select/item.mjs
15825    var import_element32 = __toESM(require_element(), 1);
15826  
15827    // packages/ui/build-module/form/primitives/select/item-description.mjs
15828    var import_element30 = __toESM(require_element(), 1);
15829    var import_jsx_runtime67 = __toESM(require_jsx_runtime(), 1);
15830    var STYLE_HASH_ATTRIBUTE19 = "data-wp-hash";
15831    function getRuntime19() {
15832      const globalScope = globalThis;
15833      if (globalScope.__wpStyleRuntime) {
15834        return globalScope.__wpStyleRuntime;
15835      }
15836      globalScope.__wpStyleRuntime = {
15837        documents: /* @__PURE__ */ new Map(),
15838        styles: /* @__PURE__ */ new Map(),
15839        injectedStyles: /* @__PURE__ */ new WeakMap()
15840      };
15841      if (typeof document !== "undefined") {
15842        registerDocument19(document);
15843      }
15844      return globalScope.__wpStyleRuntime;
15845    }
15846    function documentContainsStyleHash19(targetDocument, hash) {
15847      if (!targetDocument.head) {
15848        return false;
15849      }
15850      for (const style of targetDocument.head.querySelectorAll(
15851        `style[$STYLE_HASH_ATTRIBUTE19}]`
15852      )) {
15853        if (style.getAttribute(STYLE_HASH_ATTRIBUTE19) === hash) {
15854          return true;
15855        }
15856      }
15857      return false;
15858    }
15859    function injectStyle19(targetDocument, hash, css) {
15860      if (!targetDocument.head) {
15861        return;
15862      }
15863      const runtime = getRuntime19();
15864      let injectedStyles = runtime.injectedStyles.get(targetDocument);
15865      if (!injectedStyles) {
15866        injectedStyles = /* @__PURE__ */ new Set();
15867        runtime.injectedStyles.set(targetDocument, injectedStyles);
15868      }
15869      if (injectedStyles.has(hash)) {
15870        return;
15871      }
15872      if (documentContainsStyleHash19(targetDocument, hash)) {
15873        injectedStyles.add(hash);
15874        return;
15875      }
15876      const style = targetDocument.createElement("style");
15877      style.setAttribute(STYLE_HASH_ATTRIBUTE19, hash);
15878      style.appendChild(targetDocument.createTextNode(css));
15879      targetDocument.head.appendChild(style);
15880      injectedStyles.add(hash);
15881    }
15882    function registerDocument19(targetDocument) {
15883      const runtime = getRuntime19();
15884      runtime.documents.set(
15885        targetDocument,
15886        (runtime.documents.get(targetDocument) ?? 0) + 1
15887      );
15888      for (const [hash, css] of runtime.styles) {
15889        injectStyle19(targetDocument, hash, css);
15890      }
15891      return () => {
15892        const count = runtime.documents.get(targetDocument);
15893        if (count === void 0) {
15894          return;
15895        }
15896        if (count <= 1) {
15897          runtime.documents.delete(targetDocument);
15898          return;
15899        }
15900        runtime.documents.set(targetDocument, count - 1);
15901      };
15902    }
15903    function registerStyle19(hash, css) {
15904      const runtime = getRuntime19();
15905      runtime.styles.set(hash, css);
15906      for (const targetDocument of runtime.documents.keys()) {
15907        injectStyle19(targetDocument, hash, css);
15908      }
15909    }
15910    if (typeof process === "undefined" || true) {
15911      registerStyle19("7ad1c0f17c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._069972d5e326bada__dropdown-motion,._66136bf671f00b1f__dropdown-motion--fade-only{--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;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._069972d5e326bada__dropdown-motion{transform:translate(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))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.db3b5361087077bf__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" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&._55f74d412c3e00e8__is-width-anchor{width:var(--anchor-width)}&._90e0b62205351f85__is-width-content{width:auto}&._30ba87899c0b11ce__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&._402d4db0488da324__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._34ead52b2d60b21d__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._3fec17b6dc9029c3__is-width-available{width:var(--available-width)}}._89cf8b0bb3319c7e__is-align-item-with-trigger[data-side=none] .db3b5361087077bf__popup{max-height:none}._66636b371582ead4__list-chrome{--_wp-ui-popup-selection-offset:0px;color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);&:has(.b6aeb640498fae5d__item-icon){--_wp-ui-popup-selection-offset:calc(var(--wpds-dimension-size-2xs, 16px) + var(--wpds-dimension-gap-xs, 4px) - var(--wpds-dimension-padding-xs, 4px))}}._325f1b7764907c29__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._597ea43c6bec63d8__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)}}._5865110cf5678449__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._597ea43c6bec63d8__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}._09c9c50e605390ff__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._6361da5eb54e618d__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-sm,24px);padding-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));padding-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset))}._88cf016d20b4f2ef__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));margin-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset));@media (forced-colors:active){background-color:CanvasText}}.c466e5465a76d4f6__item-layout{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--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);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline:var(--wp-ui-popup-item-padding-inline);&:has(>.b6aeb640498fae5d__item-icon){align-content:center;align-items:start;display:grid;grid-template-columns:auto minmax(0,1fr);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}}.b9c803da5aae76d5__item{user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._8931f3eb02e2e0ad__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]){._494b2a9f2e72b67f__item-indicator-icon{opacity:0}}&[data-highlighted]:not([data-disabled]){background-color: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);outline:none;@media (forced-colors:active){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&:focus-visible{--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--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,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:0}@media (forced-colors:active){color:GrayText}}}.b6aeb640498fae5d__item-icon{align-items:center;display:flex;height:var(--wpds-typography-line-height-sm,20px);justify-content:center;pointer-events:none;width:var(--wpds-dimension-size-2xs,16px)}._494b2a9f2e72b67f__item-indicator-icon{translate:0 1px}.b40c7d58965ce4a5__item-content{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);min-width:0}._3c629930ceb193c7__item-text{display:flex;flex-direction:column;min-width:0}._5c4aad98ed7a8382__item-label{--_gcd-heading-color:currentColor;min-width:0}.deb952050541c0e4__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.b9c803da5aae76d5__item[data-disabled] .deb952050541c0e4__item-description,.b9c803da5aae76d5__item[data-highlighted]:not([data-disabled]) .deb952050541c0e4__item-description{--_gcd-heading-color:currentColor;color:inherit}._5f8e4a2a04ecdade__loading-indicator{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-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.c1bf7c14e9600f0a__status{grid-area:status;&:has(._5f8e4a2a04ecdade__loading-indicator){padding-block:var(--wp-ui-popup-padding)}}._0850de87108c9441__empty:not(:empty){grid-area:main}._0850de87108c9441__empty:not(:empty),.c1bf7c14e9600f0a__status:not(:empty):not(:has([data-visually-hidden],._5f8e4a2a04ecdade__loading-indicator)){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--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);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)}}@layer compositions{.eaec70f7db4a63ef__loading-spinner{height:var(--wpds-dimension-size-3xs,12px);width:var(--wpds-dimension-size-3xs,12px)}}}');
15912    }
15913    var item_popup_default4 = { "popup": "db3b5361087077bf__popup _069972d5e326bada__dropdown-motion", "is-width-anchor": "_55f74d412c3e00e8__is-width-anchor", "is-width-content": "_90e0b62205351f85__is-width-content", "is-width-sm": "_30ba87899c0b11ce__is-width-sm", "is-width-md": "_402d4db0488da324__is-width-md", "is-width-lg": "_34ead52b2d60b21d__is-width-lg", "is-width-available": "_3fec17b6dc9029c3__is-width-available", "is-align-item-with-trigger": "_89cf8b0bb3319c7e__is-align-item-with-trigger", "list-chrome": "_66636b371582ead4__list-chrome", "item-icon": "b6aeb640498fae5d__item-icon", "list": "_325f1b7764907c29__list _66636b371582ead4__list-chrome", "list-scrollable-container": "_597ea43c6bec63d8__list-scrollable-container", "list-footer": "_5865110cf5678449__list-footer", "group": "_09c9c50e605390ff__group", "group-label": "_6361da5eb54e618d__group-label", "separator": "_88cf016d20b4f2ef__separator", "item-layout": "c466e5465a76d4f6__item-layout", "item": "b9c803da5aae76d5__item c466e5465a76d4f6__item-layout", "is-size-small": "_8931f3eb02e2e0ad__is-size-small", "item-indicator-icon": "_494b2a9f2e72b67f__item-indicator-icon", "item-content": "b40c7d58965ce4a5__item-content", "item-text": "_3c629930ceb193c7__item-text", "item-label": "_5c4aad98ed7a8382__item-label", "item-description": "deb952050541c0e4__item-description", "loading-indicator": "_5f8e4a2a04ecdade__loading-indicator c466e5465a76d4f6__item-layout", "status": "c1bf7c14e9600f0a__status", "empty": "_0850de87108c9441__empty", "loading-spinner": "eaec70f7db4a63ef__loading-spinner" };
15914    var ITEM_DESCRIPTION_DIRECT_CHILD = /* @__PURE__ */ Symbol();
15915    var ItemDescription = (0, import_element30.forwardRef)(function UnforwardedItemDescription(props, ref) {
15916      const { className, validationToken, ...restProps } = props;
15917      if (validationToken !== ITEM_DESCRIPTION_DIRECT_CHILD) {
15918        throw new Error(
15919          "Select.ItemDescription: Missing direct select item parent. Render <Select.ItemDescription> as a direct child of <Select.Item>."
15920        );
15921      }
15922      return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
15923        Text,
15924        {
15925          ref,
15926          variant: "body-sm",
15927          className: clsx_default(
15928            item_popup_default4["item-description"],
15929            className
15930          ),
15931          ...restProps
15932        }
15933      );
15934    });
15935  
15936    // packages/ui/build-module/form/primitives/select/item-label.mjs
15937    var import_element31 = __toESM(require_element(), 1);
15938    var import_jsx_runtime68 = __toESM(require_jsx_runtime(), 1);
15939    var STYLE_HASH_ATTRIBUTE20 = "data-wp-hash";
15940    function getRuntime20() {
15941      const globalScope = globalThis;
15942      if (globalScope.__wpStyleRuntime) {
15943        return globalScope.__wpStyleRuntime;
15944      }
15945      globalScope.__wpStyleRuntime = {
15946        documents: /* @__PURE__ */ new Map(),
15947        styles: /* @__PURE__ */ new Map(),
15948        injectedStyles: /* @__PURE__ */ new WeakMap()
15949      };
15950      if (typeof document !== "undefined") {
15951        registerDocument20(document);
15952      }
15953      return globalScope.__wpStyleRuntime;
15954    }
15955    function documentContainsStyleHash20(targetDocument, hash) {
15956      if (!targetDocument.head) {
15957        return false;
15958      }
15959      for (const style of targetDocument.head.querySelectorAll(
15960        `style[$STYLE_HASH_ATTRIBUTE20}]`
15961      )) {
15962        if (style.getAttribute(STYLE_HASH_ATTRIBUTE20) === hash) {
15963          return true;
15964        }
15965      }
15966      return false;
15967    }
15968    function injectStyle20(targetDocument, hash, css) {
15969      if (!targetDocument.head) {
15970        return;
15971      }
15972      const runtime = getRuntime20();
15973      let injectedStyles = runtime.injectedStyles.get(targetDocument);
15974      if (!injectedStyles) {
15975        injectedStyles = /* @__PURE__ */ new Set();
15976        runtime.injectedStyles.set(targetDocument, injectedStyles);
15977      }
15978      if (injectedStyles.has(hash)) {
15979        return;
15980      }
15981      if (documentContainsStyleHash20(targetDocument, hash)) {
15982        injectedStyles.add(hash);
15983        return;
15984      }
15985      const style = targetDocument.createElement("style");
15986      style.setAttribute(STYLE_HASH_ATTRIBUTE20, hash);
15987      style.appendChild(targetDocument.createTextNode(css));
15988      targetDocument.head.appendChild(style);
15989      injectedStyles.add(hash);
15990    }
15991    function registerDocument20(targetDocument) {
15992      const runtime = getRuntime20();
15993      runtime.documents.set(
15994        targetDocument,
15995        (runtime.documents.get(targetDocument) ?? 0) + 1
15996      );
15997      for (const [hash, css] of runtime.styles) {
15998        injectStyle20(targetDocument, hash, css);
15999      }
16000      return () => {
16001        const count = runtime.documents.get(targetDocument);
16002        if (count === void 0) {
16003          return;
16004        }
16005        if (count <= 1) {
16006          runtime.documents.delete(targetDocument);
16007          return;
16008        }
16009        runtime.documents.set(targetDocument, count - 1);
16010      };
16011    }
16012    function registerStyle20(hash, css) {
16013      const runtime = getRuntime20();
16014      runtime.styles.set(hash, css);
16015      for (const targetDocument of runtime.documents.keys()) {
16016        injectStyle20(targetDocument, hash, css);
16017      }
16018    }
16019    if (typeof process === "undefined" || true) {
16020      registerStyle20("7ad1c0f17c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._069972d5e326bada__dropdown-motion,._66136bf671f00b1f__dropdown-motion--fade-only{--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;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._069972d5e326bada__dropdown-motion{transform:translate(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))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.db3b5361087077bf__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" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&._55f74d412c3e00e8__is-width-anchor{width:var(--anchor-width)}&._90e0b62205351f85__is-width-content{width:auto}&._30ba87899c0b11ce__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&._402d4db0488da324__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._34ead52b2d60b21d__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._3fec17b6dc9029c3__is-width-available{width:var(--available-width)}}._89cf8b0bb3319c7e__is-align-item-with-trigger[data-side=none] .db3b5361087077bf__popup{max-height:none}._66636b371582ead4__list-chrome{--_wp-ui-popup-selection-offset:0px;color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);&:has(.b6aeb640498fae5d__item-icon){--_wp-ui-popup-selection-offset:calc(var(--wpds-dimension-size-2xs, 16px) + var(--wpds-dimension-gap-xs, 4px) - var(--wpds-dimension-padding-xs, 4px))}}._325f1b7764907c29__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._597ea43c6bec63d8__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)}}._5865110cf5678449__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._597ea43c6bec63d8__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}._09c9c50e605390ff__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._6361da5eb54e618d__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-sm,24px);padding-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));padding-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset))}._88cf016d20b4f2ef__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));margin-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset));@media (forced-colors:active){background-color:CanvasText}}.c466e5465a76d4f6__item-layout{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--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);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline:var(--wp-ui-popup-item-padding-inline);&:has(>.b6aeb640498fae5d__item-icon){align-content:center;align-items:start;display:grid;grid-template-columns:auto minmax(0,1fr);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}}.b9c803da5aae76d5__item{user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._8931f3eb02e2e0ad__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]){._494b2a9f2e72b67f__item-indicator-icon{opacity:0}}&[data-highlighted]:not([data-disabled]){background-color: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);outline:none;@media (forced-colors:active){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&:focus-visible{--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--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,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:0}@media (forced-colors:active){color:GrayText}}}.b6aeb640498fae5d__item-icon{align-items:center;display:flex;height:var(--wpds-typography-line-height-sm,20px);justify-content:center;pointer-events:none;width:var(--wpds-dimension-size-2xs,16px)}._494b2a9f2e72b67f__item-indicator-icon{translate:0 1px}.b40c7d58965ce4a5__item-content{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);min-width:0}._3c629930ceb193c7__item-text{display:flex;flex-direction:column;min-width:0}._5c4aad98ed7a8382__item-label{--_gcd-heading-color:currentColor;min-width:0}.deb952050541c0e4__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.b9c803da5aae76d5__item[data-disabled] .deb952050541c0e4__item-description,.b9c803da5aae76d5__item[data-highlighted]:not([data-disabled]) .deb952050541c0e4__item-description{--_gcd-heading-color:currentColor;color:inherit}._5f8e4a2a04ecdade__loading-indicator{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-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.c1bf7c14e9600f0a__status{grid-area:status;&:has(._5f8e4a2a04ecdade__loading-indicator){padding-block:var(--wp-ui-popup-padding)}}._0850de87108c9441__empty:not(:empty){grid-area:main}._0850de87108c9441__empty:not(:empty),.c1bf7c14e9600f0a__status:not(:empty):not(:has([data-visually-hidden],._5f8e4a2a04ecdade__loading-indicator)){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--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);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)}}@layer compositions{.eaec70f7db4a63ef__loading-spinner{height:var(--wpds-dimension-size-3xs,12px);width:var(--wpds-dimension-size-3xs,12px)}}}');
16021    }
16022    var item_popup_default5 = { "popup": "db3b5361087077bf__popup _069972d5e326bada__dropdown-motion", "is-width-anchor": "_55f74d412c3e00e8__is-width-anchor", "is-width-content": "_90e0b62205351f85__is-width-content", "is-width-sm": "_30ba87899c0b11ce__is-width-sm", "is-width-md": "_402d4db0488da324__is-width-md", "is-width-lg": "_34ead52b2d60b21d__is-width-lg", "is-width-available": "_3fec17b6dc9029c3__is-width-available", "is-align-item-with-trigger": "_89cf8b0bb3319c7e__is-align-item-with-trigger", "list-chrome": "_66636b371582ead4__list-chrome", "item-icon": "b6aeb640498fae5d__item-icon", "list": "_325f1b7764907c29__list _66636b371582ead4__list-chrome", "list-scrollable-container": "_597ea43c6bec63d8__list-scrollable-container", "list-footer": "_5865110cf5678449__list-footer", "group": "_09c9c50e605390ff__group", "group-label": "_6361da5eb54e618d__group-label", "separator": "_88cf016d20b4f2ef__separator", "item-layout": "c466e5465a76d4f6__item-layout", "item": "b9c803da5aae76d5__item c466e5465a76d4f6__item-layout", "is-size-small": "_8931f3eb02e2e0ad__is-size-small", "item-indicator-icon": "_494b2a9f2e72b67f__item-indicator-icon", "item-content": "b40c7d58965ce4a5__item-content", "item-text": "_3c629930ceb193c7__item-text", "item-label": "_5c4aad98ed7a8382__item-label", "item-description": "deb952050541c0e4__item-description", "loading-indicator": "_5f8e4a2a04ecdade__loading-indicator c466e5465a76d4f6__item-layout", "status": "c1bf7c14e9600f0a__status", "empty": "_0850de87108c9441__empty", "loading-spinner": "eaec70f7db4a63ef__loading-spinner" };
16023    var ItemLabel = (0, import_element31.forwardRef)(
16024      function UnforwardedItemLabel({ children, className, render, ...restProps }, ref) {
16025        return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
16026          Text,
16027          {
16028            ref,
16029            variant: "body-md",
16030            render: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(index_parts_exports2.ItemText, { render }),
16031            className: clsx_default(item_popup_default5["item-label"], className),
16032            ...restProps,
16033            children
16034          }
16035        );
16036      }
16037    );
16038  
16039    // packages/ui/build-module/form/primitives/select/item.mjs
16040    var import_jsx_runtime69 = __toESM(require_jsx_runtime(), 1);
16041    var STYLE_HASH_ATTRIBUTE21 = "data-wp-hash";
16042    function getRuntime21() {
16043      const globalScope = globalThis;
16044      if (globalScope.__wpStyleRuntime) {
16045        return globalScope.__wpStyleRuntime;
16046      }
16047      globalScope.__wpStyleRuntime = {
16048        documents: /* @__PURE__ */ new Map(),
16049        styles: /* @__PURE__ */ new Map(),
16050        injectedStyles: /* @__PURE__ */ new WeakMap()
16051      };
16052      if (typeof document !== "undefined") {
16053        registerDocument21(document);
16054      }
16055      return globalScope.__wpStyleRuntime;
16056    }
16057    function documentContainsStyleHash21(targetDocument, hash) {
16058      if (!targetDocument.head) {
16059        return false;
16060      }
16061      for (const style of targetDocument.head.querySelectorAll(
16062        `style[$STYLE_HASH_ATTRIBUTE21}]`
16063      )) {
16064        if (style.getAttribute(STYLE_HASH_ATTRIBUTE21) === hash) {
16065          return true;
16066        }
16067      }
16068      return false;
16069    }
16070    function injectStyle21(targetDocument, hash, css) {
16071      if (!targetDocument.head) {
16072        return;
16073      }
16074      const runtime = getRuntime21();
16075      let injectedStyles = runtime.injectedStyles.get(targetDocument);
16076      if (!injectedStyles) {
16077        injectedStyles = /* @__PURE__ */ new Set();
16078        runtime.injectedStyles.set(targetDocument, injectedStyles);
16079      }
16080      if (injectedStyles.has(hash)) {
16081        return;
16082      }
16083      if (documentContainsStyleHash21(targetDocument, hash)) {
16084        injectedStyles.add(hash);
16085        return;
16086      }
16087      const style = targetDocument.createElement("style");
16088      style.setAttribute(STYLE_HASH_ATTRIBUTE21, hash);
16089      style.appendChild(targetDocument.createTextNode(css));
16090      targetDocument.head.appendChild(style);
16091      injectedStyles.add(hash);
16092    }
16093    function registerDocument21(targetDocument) {
16094      const runtime = getRuntime21();
16095      runtime.documents.set(
16096        targetDocument,
16097        (runtime.documents.get(targetDocument) ?? 0) + 1
16098      );
16099      for (const [hash, css] of runtime.styles) {
16100        injectStyle21(targetDocument, hash, css);
16101      }
16102      return () => {
16103        const count = runtime.documents.get(targetDocument);
16104        if (count === void 0) {
16105          return;
16106        }
16107        if (count <= 1) {
16108          runtime.documents.delete(targetDocument);
16109          return;
16110        }
16111        runtime.documents.set(targetDocument, count - 1);
16112      };
16113    }
16114    function registerStyle21(hash, css) {
16115      const runtime = getRuntime21();
16116      runtime.styles.set(hash, css);
16117      for (const targetDocument of runtime.documents.keys()) {
16118        injectStyle21(targetDocument, hash, css);
16119      }
16120    }
16121    if (typeof process === "undefined" || true) {
16122      registerStyle21("726f348f3f", "._78c10a0773e51a91__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)}._5b33aa2d48624b4f__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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}}._980b3b4776ac8f81__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._43e478b4279a076c__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._698099e25b0fb1a6__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)._326aee4184d261fd__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)}.e9576240835601ba__a,.e9576240835601ba__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)}._3f05789653864a73__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._3c72ff72abe57859__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._79d16267c15d9eb2__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");
16123    }
16124    var global_css_defense_default7 = { "button": "_78c10a0773e51a91__button", "input": "_5b33aa2d48624b4f__input", "textarea": "_980b3b4776ac8f81__textarea", "div": "_43e478b4279a076c__div", "p": "_698099e25b0fb1a6__p", "heading": "_326aee4184d261fd__heading", "a": "e9576240835601ba__a", "ol": "_3f05789653864a73__ol", "li": "_3c72ff72abe57859__li", "span": "_79d16267c15d9eb2__span" };
16125    if (typeof process === "undefined" || true) {
16126      registerStyle21("7ad1c0f17c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._069972d5e326bada__dropdown-motion,._66136bf671f00b1f__dropdown-motion--fade-only{--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;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._069972d5e326bada__dropdown-motion{transform:translate(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))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.db3b5361087077bf__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" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&._55f74d412c3e00e8__is-width-anchor{width:var(--anchor-width)}&._90e0b62205351f85__is-width-content{width:auto}&._30ba87899c0b11ce__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&._402d4db0488da324__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._34ead52b2d60b21d__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._3fec17b6dc9029c3__is-width-available{width:var(--available-width)}}._89cf8b0bb3319c7e__is-align-item-with-trigger[data-side=none] .db3b5361087077bf__popup{max-height:none}._66636b371582ead4__list-chrome{--_wp-ui-popup-selection-offset:0px;color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);&:has(.b6aeb640498fae5d__item-icon){--_wp-ui-popup-selection-offset:calc(var(--wpds-dimension-size-2xs, 16px) + var(--wpds-dimension-gap-xs, 4px) - var(--wpds-dimension-padding-xs, 4px))}}._325f1b7764907c29__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._597ea43c6bec63d8__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)}}._5865110cf5678449__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._597ea43c6bec63d8__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}._09c9c50e605390ff__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._6361da5eb54e618d__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-sm,24px);padding-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));padding-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset))}._88cf016d20b4f2ef__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));margin-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset));@media (forced-colors:active){background-color:CanvasText}}.c466e5465a76d4f6__item-layout{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--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);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline:var(--wp-ui-popup-item-padding-inline);&:has(>.b6aeb640498fae5d__item-icon){align-content:center;align-items:start;display:grid;grid-template-columns:auto minmax(0,1fr);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}}.b9c803da5aae76d5__item{user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._8931f3eb02e2e0ad__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]){._494b2a9f2e72b67f__item-indicator-icon{opacity:0}}&[data-highlighted]:not([data-disabled]){background-color: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);outline:none;@media (forced-colors:active){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&:focus-visible{--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--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,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:0}@media (forced-colors:active){color:GrayText}}}.b6aeb640498fae5d__item-icon{align-items:center;display:flex;height:var(--wpds-typography-line-height-sm,20px);justify-content:center;pointer-events:none;width:var(--wpds-dimension-size-2xs,16px)}._494b2a9f2e72b67f__item-indicator-icon{translate:0 1px}.b40c7d58965ce4a5__item-content{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);min-width:0}._3c629930ceb193c7__item-text{display:flex;flex-direction:column;min-width:0}._5c4aad98ed7a8382__item-label{--_gcd-heading-color:currentColor;min-width:0}.deb952050541c0e4__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.b9c803da5aae76d5__item[data-disabled] .deb952050541c0e4__item-description,.b9c803da5aae76d5__item[data-highlighted]:not([data-disabled]) .deb952050541c0e4__item-description{--_gcd-heading-color:currentColor;color:inherit}._5f8e4a2a04ecdade__loading-indicator{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-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.c1bf7c14e9600f0a__status{grid-area:status;&:has(._5f8e4a2a04ecdade__loading-indicator){padding-block:var(--wp-ui-popup-padding)}}._0850de87108c9441__empty:not(:empty){grid-area:main}._0850de87108c9441__empty:not(:empty),.c1bf7c14e9600f0a__status:not(:empty):not(:has([data-visually-hidden],._5f8e4a2a04ecdade__loading-indicator)){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--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);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)}}@layer compositions{.eaec70f7db4a63ef__loading-spinner{height:var(--wpds-dimension-size-3xs,12px);width:var(--wpds-dimension-size-3xs,12px)}}}');
16127    }
16128    var item_popup_default6 = { "popup": "db3b5361087077bf__popup _069972d5e326bada__dropdown-motion", "is-width-anchor": "_55f74d412c3e00e8__is-width-anchor", "is-width-content": "_90e0b62205351f85__is-width-content", "is-width-sm": "_30ba87899c0b11ce__is-width-sm", "is-width-md": "_402d4db0488da324__is-width-md", "is-width-lg": "_34ead52b2d60b21d__is-width-lg", "is-width-available": "_3fec17b6dc9029c3__is-width-available", "is-align-item-with-trigger": "_89cf8b0bb3319c7e__is-align-item-with-trigger", "list-chrome": "_66636b371582ead4__list-chrome", "item-icon": "b6aeb640498fae5d__item-icon", "list": "_325f1b7764907c29__list _66636b371582ead4__list-chrome", "list-scrollable-container": "_597ea43c6bec63d8__list-scrollable-container", "list-footer": "_5865110cf5678449__list-footer", "group": "_09c9c50e605390ff__group", "group-label": "_6361da5eb54e618d__group-label", "separator": "_88cf016d20b4f2ef__separator", "item-layout": "c466e5465a76d4f6__item-layout", "item": "b9c803da5aae76d5__item c466e5465a76d4f6__item-layout", "is-size-small": "_8931f3eb02e2e0ad__is-size-small", "item-indicator-icon": "_494b2a9f2e72b67f__item-indicator-icon", "item-content": "b40c7d58965ce4a5__item-content", "item-text": "_3c629930ceb193c7__item-text", "item-label": "_5c4aad98ed7a8382__item-label", "item-description": "deb952050541c0e4__item-description", "loading-indicator": "_5f8e4a2a04ecdade__loading-indicator c466e5465a76d4f6__item-layout", "status": "c1bf7c14e9600f0a__status", "empty": "_0850de87108c9441__empty", "loading-spinner": "eaec70f7db4a63ef__loading-spinner" };
16129    if (typeof process === "undefined" || true) {
16130      registerStyle21("37477070fb", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.ccc29f9575c4c758__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
16131    }
16132    var resets_default4 = { "box-sizing": "ccc29f9575c4c758__box-sizing" };
16133    var ITEM_CONTENT_COMPONENTS = {
16134      Label: ItemLabel,
16135      Description: ItemDescription,
16136      descriptionValidationToken: ITEM_DESCRIPTION_DIRECT_CHILD,
16137      validationMessage: "Select.ItemLabel must be the first direct child of every select item, followed only by Select.ItemDescription components."
16138    };
16139    var Item2 = (0, import_element32.forwardRef)(
16140      function UnforwardedItem2({
16141        className,
16142        value,
16143        size: size4 = "default",
16144        children,
16145        "aria-describedby": ariaDescribedBy,
16146        "aria-label": ariaLabel,
16147        "aria-labelledby": ariaLabelledBy,
16148        ...restProps
16149      }, ref) {
16150        const { contentChildren, itemAriaProps } = useItemContent(
16151          children,
16152          ITEM_CONTENT_COMPONENTS,
16153          {
16154            "aria-describedby": ariaDescribedBy,
16155            "aria-label": ariaLabel,
16156            "aria-labelledby": ariaLabelledBy
16157          }
16158        );
16159        return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
16160          index_parts_exports2.Item,
16161          {
16162            className: clsx_default(
16163              global_css_defense_default7.div,
16164              resets_default4["box-sizing"],
16165              item_popup_default6.item,
16166              size4 === "small" && item_popup_default6["is-size-small"],
16167              className
16168            ),
16169            value,
16170            ref,
16171            ...itemAriaProps,
16172            ...restProps,
16173            children: [
16174              /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("span", { className: item_popup_default6["item-icon"], children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
16175                Icon,
16176                {
16177                  icon: check_default,
16178                  className: item_popup_default6["item-indicator-icon"],
16179                  size: 16
16180                }
16181              ) }),
16182              /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: item_popup_default6["item-text"], children: contentChildren })
16183            ]
16184          }
16185        );
16186      }
16187    );
16188  
16189    // packages/ui/build-module/form/primitives/select/popup.mjs
16190    var import_element35 = __toESM(require_element(), 1);
16191  
16192    // packages/ui/build-module/form/primitives/select/portal.mjs
16193    var import_element33 = __toESM(require_element(), 1);
16194    var import_jsx_runtime70 = __toESM(require_jsx_runtime(), 1);
16195    var Portal = (0, import_element33.forwardRef)(function SelectPortal3({ container, ...restProps }, ref) {
16196      return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
16197        index_parts_exports2.Portal,
16198        {
16199          container: container === void 0 ? getWpCompatOverlaySlot() : container,
16200          ...restProps,
16201          ref
16202        }
16203      );
16204    });
16205  
16206    // packages/ui/build-module/form/primitives/select/positioner.mjs
16207    var import_element34 = __toESM(require_element(), 1);
16208    var import_jsx_runtime71 = __toESM(require_jsx_runtime(), 1);
16209    var STYLE_HASH_ATTRIBUTE22 = "data-wp-hash";
16210    function getRuntime22() {
16211      const globalScope = globalThis;
16212      if (globalScope.__wpStyleRuntime) {
16213        return globalScope.__wpStyleRuntime;
16214      }
16215      globalScope.__wpStyleRuntime = {
16216        documents: /* @__PURE__ */ new Map(),
16217        styles: /* @__PURE__ */ new Map(),
16218        injectedStyles: /* @__PURE__ */ new WeakMap()
16219      };
16220      if (typeof document !== "undefined") {
16221        registerDocument22(document);
16222      }
16223      return globalScope.__wpStyleRuntime;
16224    }
16225    function documentContainsStyleHash22(targetDocument, hash) {
16226      if (!targetDocument.head) {
16227        return false;
16228      }
16229      for (const style of targetDocument.head.querySelectorAll(
16230        `style[$STYLE_HASH_ATTRIBUTE22}]`
16231      )) {
16232        if (style.getAttribute(STYLE_HASH_ATTRIBUTE22) === hash) {
16233          return true;
16234        }
16235      }
16236      return false;
16237    }
16238    function injectStyle22(targetDocument, hash, css) {
16239      if (!targetDocument.head) {
16240        return;
16241      }
16242      const runtime = getRuntime22();
16243      let injectedStyles = runtime.injectedStyles.get(targetDocument);
16244      if (!injectedStyles) {
16245        injectedStyles = /* @__PURE__ */ new Set();
16246        runtime.injectedStyles.set(targetDocument, injectedStyles);
16247      }
16248      if (injectedStyles.has(hash)) {
16249        return;
16250      }
16251      if (documentContainsStyleHash22(targetDocument, hash)) {
16252        injectedStyles.add(hash);
16253        return;
16254      }
16255      const style = targetDocument.createElement("style");
16256      style.setAttribute(STYLE_HASH_ATTRIBUTE22, hash);
16257      style.appendChild(targetDocument.createTextNode(css));
16258      targetDocument.head.appendChild(style);
16259      injectedStyles.add(hash);
16260    }
16261    function registerDocument22(targetDocument) {
16262      const runtime = getRuntime22();
16263      runtime.documents.set(
16264        targetDocument,
16265        (runtime.documents.get(targetDocument) ?? 0) + 1
16266      );
16267      for (const [hash, css] of runtime.styles) {
16268        injectStyle22(targetDocument, hash, css);
16269      }
16270      return () => {
16271        const count = runtime.documents.get(targetDocument);
16272        if (count === void 0) {
16273          return;
16274        }
16275        if (count <= 1) {
16276          runtime.documents.delete(targetDocument);
16277          return;
16278        }
16279        runtime.documents.set(targetDocument, count - 1);
16280      };
16281    }
16282    function registerStyle22(hash, css) {
16283      const runtime = getRuntime22();
16284      runtime.styles.set(hash, css);
16285      for (const targetDocument of runtime.documents.keys()) {
16286        injectStyle22(targetDocument, hash, css);
16287      }
16288    }
16289    if (typeof process === "undefined" || true) {
16290      registerStyle22("37477070fb", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.ccc29f9575c4c758__box-sizing{box-sizing:border-box;*,:after,:before{box-sizing:inherit}}}}");
16291    }
16292    var resets_default5 = { "box-sizing": "ccc29f9575c4c758__box-sizing" };
16293    if (typeof process === "undefined" || true) {
16294      registerStyle22("7ad1c0f17c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._069972d5e326bada__dropdown-motion,._66136bf671f00b1f__dropdown-motion--fade-only{--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;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._069972d5e326bada__dropdown-motion{transform:translate(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))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.db3b5361087077bf__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" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&._55f74d412c3e00e8__is-width-anchor{width:var(--anchor-width)}&._90e0b62205351f85__is-width-content{width:auto}&._30ba87899c0b11ce__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&._402d4db0488da324__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._34ead52b2d60b21d__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._3fec17b6dc9029c3__is-width-available{width:var(--available-width)}}._89cf8b0bb3319c7e__is-align-item-with-trigger[data-side=none] .db3b5361087077bf__popup{max-height:none}._66636b371582ead4__list-chrome{--_wp-ui-popup-selection-offset:0px;color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);&:has(.b6aeb640498fae5d__item-icon){--_wp-ui-popup-selection-offset:calc(var(--wpds-dimension-size-2xs, 16px) + var(--wpds-dimension-gap-xs, 4px) - var(--wpds-dimension-padding-xs, 4px))}}._325f1b7764907c29__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._597ea43c6bec63d8__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)}}._5865110cf5678449__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._597ea43c6bec63d8__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}._09c9c50e605390ff__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._6361da5eb54e618d__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-sm,24px);padding-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));padding-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset))}._88cf016d20b4f2ef__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));margin-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset));@media (forced-colors:active){background-color:CanvasText}}.c466e5465a76d4f6__item-layout{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--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);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline:var(--wp-ui-popup-item-padding-inline);&:has(>.b6aeb640498fae5d__item-icon){align-content:center;align-items:start;display:grid;grid-template-columns:auto minmax(0,1fr);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}}.b9c803da5aae76d5__item{user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._8931f3eb02e2e0ad__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]){._494b2a9f2e72b67f__item-indicator-icon{opacity:0}}&[data-highlighted]:not([data-disabled]){background-color: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);outline:none;@media (forced-colors:active){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&:focus-visible{--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--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,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:0}@media (forced-colors:active){color:GrayText}}}.b6aeb640498fae5d__item-icon{align-items:center;display:flex;height:var(--wpds-typography-line-height-sm,20px);justify-content:center;pointer-events:none;width:var(--wpds-dimension-size-2xs,16px)}._494b2a9f2e72b67f__item-indicator-icon{translate:0 1px}.b40c7d58965ce4a5__item-content{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);min-width:0}._3c629930ceb193c7__item-text{display:flex;flex-direction:column;min-width:0}._5c4aad98ed7a8382__item-label{--_gcd-heading-color:currentColor;min-width:0}.deb952050541c0e4__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.b9c803da5aae76d5__item[data-disabled] .deb952050541c0e4__item-description,.b9c803da5aae76d5__item[data-highlighted]:not([data-disabled]) .deb952050541c0e4__item-description{--_gcd-heading-color:currentColor;color:inherit}._5f8e4a2a04ecdade__loading-indicator{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-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.c1bf7c14e9600f0a__status{grid-area:status;&:has(._5f8e4a2a04ecdade__loading-indicator){padding-block:var(--wp-ui-popup-padding)}}._0850de87108c9441__empty:not(:empty){grid-area:main}._0850de87108c9441__empty:not(:empty),.c1bf7c14e9600f0a__status:not(:empty):not(:has([data-visually-hidden],._5f8e4a2a04ecdade__loading-indicator)){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--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);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)}}@layer compositions{.eaec70f7db4a63ef__loading-spinner{height:var(--wpds-dimension-size-3xs,12px);width:var(--wpds-dimension-size-3xs,12px)}}}');
16295    }
16296    var item_popup_default7 = { "popup": "db3b5361087077bf__popup _069972d5e326bada__dropdown-motion", "is-width-anchor": "_55f74d412c3e00e8__is-width-anchor", "is-width-content": "_90e0b62205351f85__is-width-content", "is-width-sm": "_30ba87899c0b11ce__is-width-sm", "is-width-md": "_402d4db0488da324__is-width-md", "is-width-lg": "_34ead52b2d60b21d__is-width-lg", "is-width-available": "_3fec17b6dc9029c3__is-width-available", "is-align-item-with-trigger": "_89cf8b0bb3319c7e__is-align-item-with-trigger", "list-chrome": "_66636b371582ead4__list-chrome", "item-icon": "b6aeb640498fae5d__item-icon", "list": "_325f1b7764907c29__list _66636b371582ead4__list-chrome", "list-scrollable-container": "_597ea43c6bec63d8__list-scrollable-container", "list-footer": "_5865110cf5678449__list-footer", "group": "_09c9c50e605390ff__group", "group-label": "_6361da5eb54e618d__group-label", "separator": "_88cf016d20b4f2ef__separator", "item-layout": "c466e5465a76d4f6__item-layout", "item": "b9c803da5aae76d5__item c466e5465a76d4f6__item-layout", "is-size-small": "_8931f3eb02e2e0ad__is-size-small", "item-indicator-icon": "_494b2a9f2e72b67f__item-indicator-icon", "item-content": "b40c7d58965ce4a5__item-content", "item-text": "_3c629930ceb193c7__item-text", "item-label": "_5c4aad98ed7a8382__item-label", "item-description": "deb952050541c0e4__item-description", "loading-indicator": "_5f8e4a2a04ecdade__loading-indicator c466e5465a76d4f6__item-layout", "status": "c1bf7c14e9600f0a__status", "empty": "_0850de87108c9441__empty", "loading-spinner": "eaec70f7db4a63ef__loading-spinner" };
16297    if (typeof process === "undefined" || true) {
16298      registerStyle22("656946f66b", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cc0f09fba19eb669__positioner{z-index:var(--wp-ui-select-z-index,initial)}._3a3c25e09f4fd1ec__list{display:block;min-block-size:0;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}}}");
16299    }
16300    var style_default10 = { "positioner": "cc0f09fba19eb669__positioner", "list": "_3a3c25e09f4fd1ec__list" };
16301    var Positioner = (0, import_element34.forwardRef)(
16302      function SelectPositioner3({ className, alignItemWithTrigger = true, ...props }, ref) {
16303        return /* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
16304          index_parts_exports2.Positioner,
16305          {
16306            ...ITEM_POPUP_POSITIONER_PROPS,
16307            ...props,
16308            alignItemWithTrigger,
16309            ref,
16310            className: clsx_default(
16311              resets_default5["box-sizing"],
16312              style_default10.positioner,
16313              alignItemWithTrigger && item_popup_default7["is-align-item-with-trigger"],
16314              className
16315            )
16316          }
16317        );
16318      }
16319    );
16320  
16321    // packages/ui/build-module/form/primitives/select/popup.mjs
16322    var import_jsx_runtime72 = __toESM(require_jsx_runtime(), 1);
16323    var STYLE_HASH_ATTRIBUTE23 = "data-wp-hash";
16324    function getRuntime23() {
16325      const globalScope = globalThis;
16326      if (globalScope.__wpStyleRuntime) {
16327        return globalScope.__wpStyleRuntime;
16328      }
16329      globalScope.__wpStyleRuntime = {
16330        documents: /* @__PURE__ */ new Map(),
16331        styles: /* @__PURE__ */ new Map(),
16332        injectedStyles: /* @__PURE__ */ new WeakMap()
16333      };
16334      if (typeof document !== "undefined") {
16335        registerDocument23(document);
16336      }
16337      return globalScope.__wpStyleRuntime;
16338    }
16339    function documentContainsStyleHash23(targetDocument, hash) {
16340      if (!targetDocument.head) {
16341        return false;
16342      }
16343      for (const style of targetDocument.head.querySelectorAll(
16344        `style[$STYLE_HASH_ATTRIBUTE23}]`
16345      )) {
16346        if (style.getAttribute(STYLE_HASH_ATTRIBUTE23) === hash) {
16347          return true;
16348        }
16349      }
16350      return false;
16351    }
16352    function injectStyle23(targetDocument, hash, css) {
16353      if (!targetDocument.head) {
16354        return;
16355      }
16356      const runtime = getRuntime23();
16357      let injectedStyles = runtime.injectedStyles.get(targetDocument);
16358      if (!injectedStyles) {
16359        injectedStyles = /* @__PURE__ */ new Set();
16360        runtime.injectedStyles.set(targetDocument, injectedStyles);
16361      }
16362      if (injectedStyles.has(hash)) {
16363        return;
16364      }
16365      if (documentContainsStyleHash23(targetDocument, hash)) {
16366        injectedStyles.add(hash);
16367        return;
16368      }
16369      const style = targetDocument.createElement("style");
16370      style.setAttribute(STYLE_HASH_ATTRIBUTE23, hash);
16371      style.appendChild(targetDocument.createTextNode(css));
16372      targetDocument.head.appendChild(style);
16373      injectedStyles.add(hash);
16374    }
16375    function registerDocument23(targetDocument) {
16376      const runtime = getRuntime23();
16377      runtime.documents.set(
16378        targetDocument,
16379        (runtime.documents.get(targetDocument) ?? 0) + 1
16380      );
16381      for (const [hash, css] of runtime.styles) {
16382        injectStyle23(targetDocument, hash, css);
16383      }
16384      return () => {
16385        const count = runtime.documents.get(targetDocument);
16386        if (count === void 0) {
16387          return;
16388        }
16389        if (count <= 1) {
16390          runtime.documents.delete(targetDocument);
16391          return;
16392        }
16393        runtime.documents.set(targetDocument, count - 1);
16394      };
16395    }
16396    function registerStyle23(hash, css) {
16397      const runtime = getRuntime23();
16398      runtime.styles.set(hash, css);
16399      for (const targetDocument of runtime.documents.keys()) {
16400        injectStyle23(targetDocument, hash, css);
16401      }
16402    }
16403    if (typeof process === "undefined" || true) {
16404      registerStyle23("7ad1c0f17c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._069972d5e326bada__dropdown-motion,._66136bf671f00b1f__dropdown-motion--fade-only{--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;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._069972d5e326bada__dropdown-motion{transform:translate(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))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.db3b5361087077bf__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" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&._55f74d412c3e00e8__is-width-anchor{width:var(--anchor-width)}&._90e0b62205351f85__is-width-content{width:auto}&._30ba87899c0b11ce__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&._402d4db0488da324__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._34ead52b2d60b21d__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._3fec17b6dc9029c3__is-width-available{width:var(--available-width)}}._89cf8b0bb3319c7e__is-align-item-with-trigger[data-side=none] .db3b5361087077bf__popup{max-height:none}._66636b371582ead4__list-chrome{--_wp-ui-popup-selection-offset:0px;color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);&:has(.b6aeb640498fae5d__item-icon){--_wp-ui-popup-selection-offset:calc(var(--wpds-dimension-size-2xs, 16px) + var(--wpds-dimension-gap-xs, 4px) - var(--wpds-dimension-padding-xs, 4px))}}._325f1b7764907c29__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._597ea43c6bec63d8__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)}}._5865110cf5678449__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._597ea43c6bec63d8__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}._09c9c50e605390ff__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._6361da5eb54e618d__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-sm,24px);padding-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));padding-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset))}._88cf016d20b4f2ef__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));margin-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset));@media (forced-colors:active){background-color:CanvasText}}.c466e5465a76d4f6__item-layout{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--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);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline:var(--wp-ui-popup-item-padding-inline);&:has(>.b6aeb640498fae5d__item-icon){align-content:center;align-items:start;display:grid;grid-template-columns:auto minmax(0,1fr);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}}.b9c803da5aae76d5__item{user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._8931f3eb02e2e0ad__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]){._494b2a9f2e72b67f__item-indicator-icon{opacity:0}}&[data-highlighted]:not([data-disabled]){background-color: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);outline:none;@media (forced-colors:active){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&:focus-visible{--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--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,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:0}@media (forced-colors:active){color:GrayText}}}.b6aeb640498fae5d__item-icon{align-items:center;display:flex;height:var(--wpds-typography-line-height-sm,20px);justify-content:center;pointer-events:none;width:var(--wpds-dimension-size-2xs,16px)}._494b2a9f2e72b67f__item-indicator-icon{translate:0 1px}.b40c7d58965ce4a5__item-content{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);min-width:0}._3c629930ceb193c7__item-text{display:flex;flex-direction:column;min-width:0}._5c4aad98ed7a8382__item-label{--_gcd-heading-color:currentColor;min-width:0}.deb952050541c0e4__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.b9c803da5aae76d5__item[data-disabled] .deb952050541c0e4__item-description,.b9c803da5aae76d5__item[data-highlighted]:not([data-disabled]) .deb952050541c0e4__item-description{--_gcd-heading-color:currentColor;color:inherit}._5f8e4a2a04ecdade__loading-indicator{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-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.c1bf7c14e9600f0a__status{grid-area:status;&:has(._5f8e4a2a04ecdade__loading-indicator){padding-block:var(--wp-ui-popup-padding)}}._0850de87108c9441__empty:not(:empty){grid-area:main}._0850de87108c9441__empty:not(:empty),.c1bf7c14e9600f0a__status:not(:empty):not(:has([data-visually-hidden],._5f8e4a2a04ecdade__loading-indicator)){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--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);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)}}@layer compositions{.eaec70f7db4a63ef__loading-spinner{height:var(--wpds-dimension-size-3xs,12px);width:var(--wpds-dimension-size-3xs,12px)}}}');
16405    }
16406    var item_popup_default8 = { "popup": "db3b5361087077bf__popup _069972d5e326bada__dropdown-motion", "is-width-anchor": "_55f74d412c3e00e8__is-width-anchor", "is-width-content": "_90e0b62205351f85__is-width-content", "is-width-sm": "_30ba87899c0b11ce__is-width-sm", "is-width-md": "_402d4db0488da324__is-width-md", "is-width-lg": "_34ead52b2d60b21d__is-width-lg", "is-width-available": "_3fec17b6dc9029c3__is-width-available", "is-align-item-with-trigger": "_89cf8b0bb3319c7e__is-align-item-with-trigger", "list-chrome": "_66636b371582ead4__list-chrome", "item-icon": "b6aeb640498fae5d__item-icon", "list": "_325f1b7764907c29__list _66636b371582ead4__list-chrome", "list-scrollable-container": "_597ea43c6bec63d8__list-scrollable-container", "list-footer": "_5865110cf5678449__list-footer", "group": "_09c9c50e605390ff__group", "group-label": "_6361da5eb54e618d__group-label", "separator": "_88cf016d20b4f2ef__separator", "item-layout": "c466e5465a76d4f6__item-layout", "item": "b9c803da5aae76d5__item c466e5465a76d4f6__item-layout", "is-size-small": "_8931f3eb02e2e0ad__is-size-small", "item-indicator-icon": "_494b2a9f2e72b67f__item-indicator-icon", "item-content": "b40c7d58965ce4a5__item-content", "item-text": "_3c629930ceb193c7__item-text", "item-label": "_5c4aad98ed7a8382__item-label", "item-description": "deb952050541c0e4__item-description", "loading-indicator": "_5f8e4a2a04ecdade__loading-indicator c466e5465a76d4f6__item-layout", "status": "c1bf7c14e9600f0a__status", "empty": "_0850de87108c9441__empty", "loading-spinner": "eaec70f7db4a63ef__loading-spinner" };
16407    if (typeof process === "undefined" || true) {
16408      registerStyle23("656946f66b", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.cc0f09fba19eb669__positioner{z-index:var(--wp-ui-select-z-index,initial)}._3a3c25e09f4fd1ec__list{display:block;min-block-size:0;overflow-block:auto;overscroll-behavior:contain;scroll-padding-block:var(--wp-ui-popup-padding);&:not(:empty){padding-block:var(--wp-ui-popup-padding)}}}}");
16409    }
16410    var style_default11 = { "positioner": "cc0f09fba19eb669__positioner", "list": "_3a3c25e09f4fd1ec__list" };
16411    var Popup = (0, import_element35.forwardRef)(
16412      function UnforwardedPopup({ className, portal, positioner, width, children, ...restProps }, ref) {
16413        const popupContent = /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16414          index_parts_exports2.Popup,
16415          {
16416            ref,
16417            className: clsx_default(
16418              item_popup_default8.popup,
16419              getItemPopupWidthClassName(width),
16420              className
16421            ),
16422            ...restProps,
16423            children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
16424              index_parts_exports2.List,
16425              {
16426                className: clsx_default(
16427                  item_popup_default8["list-chrome"],
16428                  style_default11.list
16429                ),
16430                children
16431              }
16432            )
16433          }
16434        );
16435        const positionedPopup = renderSlotWithChildren(
16436          positioner,
16437          /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Positioner, {}),
16438          popupContent
16439        );
16440        return renderSlotWithChildren(portal, /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Portal, {}), positionedPopup);
16441      }
16442    );
16443  
16444    // packages/ui/build-module/form/primitives/select/root.mjs
16445    var import_jsx_runtime73 = __toESM(require_jsx_runtime(), 1);
16446    function Root2(props) {
16447      return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DirectionProvider3, { children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(index_parts_exports2.Root, { ...props }) });
16448    }
16449  
16450    // packages/ui/build-module/form/primitives/select/separator.mjs
16451    var import_element36 = __toESM(require_element(), 1);
16452    var import_jsx_runtime74 = __toESM(require_jsx_runtime(), 1);
16453    var STYLE_HASH_ATTRIBUTE24 = "data-wp-hash";
16454    function getRuntime24() {
16455      const globalScope = globalThis;
16456      if (globalScope.__wpStyleRuntime) {
16457        return globalScope.__wpStyleRuntime;
16458      }
16459      globalScope.__wpStyleRuntime = {
16460        documents: /* @__PURE__ */ new Map(),
16461        styles: /* @__PURE__ */ new Map(),
16462        injectedStyles: /* @__PURE__ */ new WeakMap()
16463      };
16464      if (typeof document !== "undefined") {
16465        registerDocument24(document);
16466      }
16467      return globalScope.__wpStyleRuntime;
16468    }
16469    function documentContainsStyleHash24(targetDocument, hash) {
16470      if (!targetDocument.head) {
16471        return false;
16472      }
16473      for (const style of targetDocument.head.querySelectorAll(
16474        `style[$STYLE_HASH_ATTRIBUTE24}]`
16475      )) {
16476        if (style.getAttribute(STYLE_HASH_ATTRIBUTE24) === hash) {
16477          return true;
16478        }
16479      }
16480      return false;
16481    }
16482    function injectStyle24(targetDocument, hash, css) {
16483      if (!targetDocument.head) {
16484        return;
16485      }
16486      const runtime = getRuntime24();
16487      let injectedStyles = runtime.injectedStyles.get(targetDocument);
16488      if (!injectedStyles) {
16489        injectedStyles = /* @__PURE__ */ new Set();
16490        runtime.injectedStyles.set(targetDocument, injectedStyles);
16491      }
16492      if (injectedStyles.has(hash)) {
16493        return;
16494      }
16495      if (documentContainsStyleHash24(targetDocument, hash)) {
16496        injectedStyles.add(hash);
16497        return;
16498      }
16499      const style = targetDocument.createElement("style");
16500      style.setAttribute(STYLE_HASH_ATTRIBUTE24, hash);
16501      style.appendChild(targetDocument.createTextNode(css));
16502      targetDocument.head.appendChild(style);
16503      injectedStyles.add(hash);
16504    }
16505    function registerDocument24(targetDocument) {
16506      const runtime = getRuntime24();
16507      runtime.documents.set(
16508        targetDocument,
16509        (runtime.documents.get(targetDocument) ?? 0) + 1
16510      );
16511      for (const [hash, css] of runtime.styles) {
16512        injectStyle24(targetDocument, hash, css);
16513      }
16514      return () => {
16515        const count = runtime.documents.get(targetDocument);
16516        if (count === void 0) {
16517          return;
16518        }
16519        if (count <= 1) {
16520          runtime.documents.delete(targetDocument);
16521          return;
16522        }
16523        runtime.documents.set(targetDocument, count - 1);
16524      };
16525    }
16526    function registerStyle24(hash, css) {
16527      const runtime = getRuntime24();
16528      runtime.styles.set(hash, css);
16529      for (const targetDocument of runtime.documents.keys()) {
16530        injectStyle24(targetDocument, hash, css);
16531      }
16532    }
16533    if (typeof process === "undefined" || true) {
16534      registerStyle24("7ad1c0f17c", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._069972d5e326bada__dropdown-motion,._66136bf671f00b1f__dropdown-motion--fade-only{--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;&[data-instant]{transition:none}&[data-ending-style],&[data-starting-style]{opacity:0}}._069972d5e326bada__dropdown-motion{transform:translate(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))}&[data-side=inline-start][data-ending-style],&[data-side=inline-start][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}&[data-side=inline-end][data-ending-style],&[data-side=inline-end][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-start][data-ending-style],&:dir(rtl)[data-side=inline-start][data-starting-style]{transform:translateX(calc(var(--wp-ui-dropdown-slide-distance)*-1))}&:dir(rtl)[data-side=inline-end][data-ending-style],&:dir(rtl)[data-side=inline-end][data-starting-style]{transform:translateX(var(--wp-ui-dropdown-slide-distance))}}}}@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.db3b5361087077bf__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" "status" "main";grid-template-rows:auto auto minmax(0,1fr);max-height:min(var(--available-height),480px,60dvh);max-width:var(--available-width);min-width:var(--anchor-width);&._55f74d412c3e00e8__is-width-anchor{width:var(--anchor-width)}&._90e0b62205351f85__is-width-content{width:auto}&._30ba87899c0b11ce__is-width-sm{width:min(var(--available-width),var(--wpds-dimension-surface-width-sm,320px))}&._402d4db0488da324__is-width-md{width:min(var(--available-width),var(--wpds-dimension-surface-width-md,400px))}&._34ead52b2d60b21d__is-width-lg{width:min(var(--available-width),var(--wpds-dimension-surface-width-lg,560px))}&._3fec17b6dc9029c3__is-width-available{width:var(--available-width)}}._89cf8b0bb3319c7e__is-align-item-with-trigger[data-side=none] .db3b5361087077bf__popup{max-height:none}._66636b371582ead4__list-chrome{--_wp-ui-popup-selection-offset:0px;color:var(--wpds-color-foreground-interactive-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-md,13px);grid-area:main;line-height:var(--wpds-typography-line-height-sm,20px);&:has(.b6aeb640498fae5d__item-icon){--_wp-ui-popup-selection-offset:calc(var(--wpds-dimension-size-2xs, 16px) + var(--wpds-dimension-gap-xs, 4px) - var(--wpds-dimension-padding-xs, 4px))}}._325f1b7764907c29__list{display:grid;grid-template-areas:"scrollable" "footer";grid-template-rows:minmax(0,1fr) auto}._597ea43c6bec63d8__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)}}._5865110cf5678449__list-footer{grid-area:footer;padding-block:var(--wp-ui-popup-padding);._597ea43c6bec63d8__list-scrollable-container:not(:empty)+&{border-block-start:var(--wpds-border-width-xs,1px) solid var(--wpds-color-stroke-surface-neutral,#dbdbdb)}}._09c9c50e605390ff__group:not(:first-child){margin-block-start:var(--wpds-dimension-gap-sm,8px)}._6361da5eb54e618d__group-label{align-items:center;color:var(--wpds-color-foreground-content-neutral-weak,#707070);display:flex;min-height:var(--wpds-dimension-size-sm,24px);padding-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));padding-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset))}._88cf016d20b4f2ef__separator{background-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);height:var(--wpds-border-width-xs,1px);margin-block:var(--wpds-dimension-gap-xs,4px);margin-inline-end:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px));margin-inline-start:calc(var(--wp-ui-popup-padding) + var(--wpds-dimension-padding-sm, 8px) + var(--_wp-ui-popup-selection-offset));@media (forced-colors:active){background-color:CanvasText}}.c466e5465a76d4f6__item-layout{--wp-ui-popup-item-height:var(--wpds-dimension-size-md,32px);--wp-ui-popup-item-padding-inline:var(--wpds-dimension-padding-sm,8px);--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);min-width:0;overflow-wrap:anywhere;padding-block:var(--wp-ui-popup-item-padding-block);padding-inline:var(--wp-ui-popup-item-padding-inline);&:has(>.b6aeb640498fae5d__item-icon){align-content:center;align-items:start;display:grid;grid-template-columns:auto minmax(0,1fr);padding-inline-start:calc(var(--wp-ui-popup-item-padding-inline) - var(--wpds-dimension-padding-xs, 4px))}}.b9c803da5aae76d5__item{user-select:none;&:not([data-disabled]){cursor:var(--wpds-cursor-control,pointer)}&._8931f3eb02e2e0ad__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]){._494b2a9f2e72b67f__item-indicator-icon{opacity:0}}&[data-highlighted]:not([data-disabled]){background-color: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);outline:none;@media (forced-colors:active){background-color:Highlight;color:HighlightText;forced-color-adjust:none}}&[data-disabled]{background-color:var(--wpds-color-background-interactive-neutral-weak-disabled,#0000);color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);&:focus-visible{--_gcd-div-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--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,var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9)));outline-offset:0}@media (forced-colors:active){color:GrayText}}}.b6aeb640498fae5d__item-icon{align-items:center;display:flex;height:var(--wpds-typography-line-height-sm,20px);justify-content:center;pointer-events:none;width:var(--wpds-dimension-size-2xs,16px)}._494b2a9f2e72b67f__item-indicator-icon{translate:0 1px}.b40c7d58965ce4a5__item-content{align-items:center;display:flex;gap:var(--wpds-dimension-gap-xs,4px);min-width:0}._3c629930ceb193c7__item-text{display:flex;flex-direction:column;min-width:0}._5c4aad98ed7a8382__item-label{--_gcd-heading-color:currentColor;min-width:0}.deb952050541c0e4__item-description{color:var(--wpds-color-foreground-content-neutral-weak,#707070)}.b9c803da5aae76d5__item[data-disabled] .deb952050541c0e4__item-description,.b9c803da5aae76d5__item[data-highlighted]:not([data-disabled]) .deb952050541c0e4__item-description{--_gcd-heading-color:currentColor;color:inherit}._5f8e4a2a04ecdade__loading-indicator{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-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}.c1bf7c14e9600f0a__status{grid-area:status;&:has(._5f8e4a2a04ecdade__loading-indicator){padding-block:var(--wp-ui-popup-padding)}}._0850de87108c9441__empty:not(:empty){grid-area:main}._0850de87108c9441__empty:not(:empty),.c1bf7c14e9600f0a__status:not(:empty):not(:has([data-visually-hidden],._5f8e4a2a04ecdade__loading-indicator)){--wp-ui-popup-empty-min-height:var(--wpds-dimension-size-md,32px);--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);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)}}@layer compositions{.eaec70f7db4a63ef__loading-spinner{height:var(--wpds-dimension-size-3xs,12px);width:var(--wpds-dimension-size-3xs,12px)}}}');
16535    }
16536    var item_popup_default9 = { "popup": "db3b5361087077bf__popup _069972d5e326bada__dropdown-motion", "is-width-anchor": "_55f74d412c3e00e8__is-width-anchor", "is-width-content": "_90e0b62205351f85__is-width-content", "is-width-sm": "_30ba87899c0b11ce__is-width-sm", "is-width-md": "_402d4db0488da324__is-width-md", "is-width-lg": "_34ead52b2d60b21d__is-width-lg", "is-width-available": "_3fec17b6dc9029c3__is-width-available", "is-align-item-with-trigger": "_89cf8b0bb3319c7e__is-align-item-with-trigger", "list-chrome": "_66636b371582ead4__list-chrome", "item-icon": "b6aeb640498fae5d__item-icon", "list": "_325f1b7764907c29__list _66636b371582ead4__list-chrome", "list-scrollable-container": "_597ea43c6bec63d8__list-scrollable-container", "list-footer": "_5865110cf5678449__list-footer", "group": "_09c9c50e605390ff__group", "group-label": "_6361da5eb54e618d__group-label", "separator": "_88cf016d20b4f2ef__separator", "item-layout": "c466e5465a76d4f6__item-layout", "item": "b9c803da5aae76d5__item c466e5465a76d4f6__item-layout", "is-size-small": "_8931f3eb02e2e0ad__is-size-small", "item-indicator-icon": "_494b2a9f2e72b67f__item-indicator-icon", "item-content": "b40c7d58965ce4a5__item-content", "item-text": "_3c629930ceb193c7__item-text", "item-label": "_5c4aad98ed7a8382__item-label", "item-description": "deb952050541c0e4__item-description", "loading-indicator": "_5f8e4a2a04ecdade__loading-indicator c466e5465a76d4f6__item-layout", "status": "c1bf7c14e9600f0a__status", "empty": "_0850de87108c9441__empty", "loading-spinner": "eaec70f7db4a63ef__loading-spinner" };
16537    var Separator = (0, import_element36.forwardRef)(
16538      function SelectSeparator2({
16539        className,
16540        orientation: _orientation,
16541        ...props
16542      }, ref) {
16543        return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
16544          index_parts_exports2.Separator,
16545          {
16546            ref,
16547            className: clsx_default(item_popup_default9.separator, className),
16548            ...props
16549          }
16550        );
16551      }
16552    );
16553  
16554    // packages/ui/build-module/form/primitives/select/trigger.mjs
16555    var import_element37 = __toESM(require_element(), 1);
16556    var import_i18n7 = __toESM(require_i18n(), 1);
16557    var import_jsx_runtime75 = __toESM(require_jsx_runtime(), 1);
16558    var STYLE_HASH_ATTRIBUTE25 = "data-wp-hash";
16559    function getRuntime25() {
16560      const globalScope = globalThis;
16561      if (globalScope.__wpStyleRuntime) {
16562        return globalScope.__wpStyleRuntime;
16563      }
16564      globalScope.__wpStyleRuntime = {
16565        documents: /* @__PURE__ */ new Map(),
16566        styles: /* @__PURE__ */ new Map(),
16567        injectedStyles: /* @__PURE__ */ new WeakMap()
16568      };
16569      if (typeof document !== "undefined") {
16570        registerDocument25(document);
16571      }
16572      return globalScope.__wpStyleRuntime;
16573    }
16574    function documentContainsStyleHash25(targetDocument, hash) {
16575      if (!targetDocument.head) {
16576        return false;
16577      }
16578      for (const style of targetDocument.head.querySelectorAll(
16579        `style[$STYLE_HASH_ATTRIBUTE25}]`
16580      )) {
16581        if (style.getAttribute(STYLE_HASH_ATTRIBUTE25) === hash) {
16582          return true;
16583        }
16584      }
16585      return false;
16586    }
16587    function injectStyle25(targetDocument, hash, css) {
16588      if (!targetDocument.head) {
16589        return;
16590      }
16591      const runtime = getRuntime25();
16592      let injectedStyles = runtime.injectedStyles.get(targetDocument);
16593      if (!injectedStyles) {
16594        injectedStyles = /* @__PURE__ */ new Set();
16595        runtime.injectedStyles.set(targetDocument, injectedStyles);
16596      }
16597      if (injectedStyles.has(hash)) {
16598        return;
16599      }
16600      if (documentContainsStyleHash25(targetDocument, hash)) {
16601        injectedStyles.add(hash);
16602        return;
16603      }
16604      const style = targetDocument.createElement("style");
16605      style.setAttribute(STYLE_HASH_ATTRIBUTE25, hash);
16606      style.appendChild(targetDocument.createTextNode(css));
16607      targetDocument.head.appendChild(style);
16608      injectedStyles.add(hash);
16609    }
16610    function registerDocument25(targetDocument) {
16611      const runtime = getRuntime25();
16612      runtime.documents.set(
16613        targetDocument,
16614        (runtime.documents.get(targetDocument) ?? 0) + 1
16615      );
16616      for (const [hash, css] of runtime.styles) {
16617        injectStyle25(targetDocument, hash, css);
16618      }
16619      return () => {
16620        const count = runtime.documents.get(targetDocument);
16621        if (count === void 0) {
16622          return;
16623        }
16624        if (count <= 1) {
16625          runtime.documents.delete(targetDocument);
16626          return;
16627        }
16628        runtime.documents.set(targetDocument, count - 1);
16629      };
16630    }
16631    function registerStyle25(hash, css) {
16632      const runtime = getRuntime25();
16633      runtime.styles.set(hash, css);
16634      for (const targetDocument of runtime.documents.keys()) {
16635        injectStyle25(targetDocument, hash, css);
16636      }
16637    }
16638    if (typeof process === "undefined" || true) {
16639      registerStyle25("c13e206e92", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._0f52be5f1d4ce686__outset-ring--focus-within:focus-within,._8f922cee854f2408__outset-ring--focus-visible:focus-visible,.accedd6ae8fd878e__outset-ring--focus:focus{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--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,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))}._3ad2c88c126f2bdd__outset-ring--focus-within-except-active:focus-within,.c20f61b115485a7f__outset-ring--focus-except-active:focus{outline:none}._3ad2c88c126f2bdd__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c20f61b115485a7f__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--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,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))}}}");
16640    }
16641    var focus_module_default3 = { "outset-ring--focus": "accedd6ae8fd878e__outset-ring--focus", "outset-ring--focus-visible": "_8f922cee854f2408__outset-ring--focus-visible", "outset-ring--focus-within": "_0f52be5f1d4ce686__outset-ring--focus-within", "outset-ring--focus-except-active": "c20f61b115485a7f__outset-ring--focus-except-active", "outset-ring--focus-within-except-active": "_3ad2c88c126f2bdd__outset-ring--focus-within-except-active" };
16642    if (typeof process === "undefined" || true) {
16643      registerStyle25("56b0509c70", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{.f19aaaa579fccf54__trigger-wrapper{&.bfac6d240be543bd__is-minimal{width:fit-content}}.e1f5987e5bdc9112__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)}&.bfac6d240be543bd__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)}}.ba63264311039401__trigger-value{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;.e1f5987e5bdc9112__trigger[data-placeholder]:not([data-disabled]) &{color:var(--wpds-color-foreground-interactive-neutral-weak,#707070)}}.cb34834e4f533240__trigger-caret{flex:0 0 auto}}}");
16644    }
16645    var select_trigger_default = { "trigger-wrapper": "f19aaaa579fccf54__trigger-wrapper", "is-minimal": "bfac6d240be543bd__is-minimal", "trigger": "e1f5987e5bdc9112__trigger", "trigger-value": "ba63264311039401__trigger-value", "trigger-caret": "cb34834e4f533240__trigger-caret" };
16646    var Trigger = (0, import_element37.forwardRef)(
16647      function UnforwardedTrigger({
16648        className,
16649        size: size4,
16650        variant,
16651        children,
16652        placeholder = (0, import_i18n7.__)("Select"),
16653        ...restProps
16654      }, ref) {
16655        return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16656          InputLayout2,
16657          {
16658            className: clsx_default(
16659              focus_module_default3["outset-ring--focus-within-except-active"],
16660              select_trigger_default["trigger-wrapper"],
16661              variant === "minimal" && select_trigger_default["is-minimal"],
16662              className
16663            ),
16664            size: size4,
16665            isBorderless: variant === "minimal",
16666            children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(
16667              index_parts_exports2.Trigger,
16668              {
16669                ...restProps,
16670                className: clsx_default(
16671                  select_trigger_default.trigger,
16672                  variant === "minimal" && select_trigger_default["is-minimal"]
16673                ),
16674                "data-can-disable-input-layout": true,
16675                ref,
16676                children: [
16677                  /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16678                    index_parts_exports2.Value,
16679                    {
16680                      placeholder,
16681                      className: select_trigger_default["trigger-value"],
16682                      children
16683                    }
16684                  ),
16685                  /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
16686                    Icon,
16687                    {
16688                      className: select_trigger_default["trigger-caret"],
16689                      icon: chevron_down_default,
16690                      size: 18
16691                    }
16692                  )
16693                ]
16694              }
16695            )
16696          }
16697        );
16698      }
16699    );
16700  
16701    // packages/ui/build-module/form/input-control/input-control.mjs
16702    var import_element38 = __toESM(require_element(), 1);
16703    var import_jsx_runtime76 = __toESM(require_jsx_runtime(), 1);
16704    var STYLE_HASH_ATTRIBUTE26 = "data-wp-hash";
16705    function getRuntime26() {
16706      const globalScope = globalThis;
16707      if (globalScope.__wpStyleRuntime) {
16708        return globalScope.__wpStyleRuntime;
16709      }
16710      globalScope.__wpStyleRuntime = {
16711        documents: /* @__PURE__ */ new Map(),
16712        styles: /* @__PURE__ */ new Map(),
16713        injectedStyles: /* @__PURE__ */ new WeakMap()
16714      };
16715      if (typeof document !== "undefined") {
16716        registerDocument26(document);
16717      }
16718      return globalScope.__wpStyleRuntime;
16719    }
16720    function documentContainsStyleHash26(targetDocument, hash) {
16721      if (!targetDocument.head) {
16722        return false;
16723      }
16724      for (const style of targetDocument.head.querySelectorAll(
16725        `style[$STYLE_HASH_ATTRIBUTE26}]`
16726      )) {
16727        if (style.getAttribute(STYLE_HASH_ATTRIBUTE26) === hash) {
16728          return true;
16729        }
16730      }
16731      return false;
16732    }
16733    function injectStyle26(targetDocument, hash, css) {
16734      if (!targetDocument.head) {
16735        return;
16736      }
16737      const runtime = getRuntime26();
16738      let injectedStyles = runtime.injectedStyles.get(targetDocument);
16739      if (!injectedStyles) {
16740        injectedStyles = /* @__PURE__ */ new Set();
16741        runtime.injectedStyles.set(targetDocument, injectedStyles);
16742      }
16743      if (injectedStyles.has(hash)) {
16744        return;
16745      }
16746      if (documentContainsStyleHash26(targetDocument, hash)) {
16747        injectedStyles.add(hash);
16748        return;
16749      }
16750      const style = targetDocument.createElement("style");
16751      style.setAttribute(STYLE_HASH_ATTRIBUTE26, hash);
16752      style.appendChild(targetDocument.createTextNode(css));
16753      targetDocument.head.appendChild(style);
16754      injectedStyles.add(hash);
16755    }
16756    function registerDocument26(targetDocument) {
16757      const runtime = getRuntime26();
16758      runtime.documents.set(
16759        targetDocument,
16760        (runtime.documents.get(targetDocument) ?? 0) + 1
16761      );
16762      for (const [hash, css] of runtime.styles) {
16763        injectStyle26(targetDocument, hash, css);
16764      }
16765      return () => {
16766        const count = runtime.documents.get(targetDocument);
16767        if (count === void 0) {
16768          return;
16769        }
16770        if (count <= 1) {
16771          runtime.documents.delete(targetDocument);
16772          return;
16773        }
16774        runtime.documents.set(targetDocument, count - 1);
16775      };
16776    }
16777    function registerStyle26(hash, css) {
16778      const runtime = getRuntime26();
16779      runtime.styles.set(hash, css);
16780      for (const targetDocument of runtime.documents.keys()) {
16781        injectStyle26(targetDocument, hash, css);
16782      }
16783    }
16784    if (typeof process === "undefined" || true) {
16785      registerStyle26("1122fa5d0a", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer compositions{@supports (-webkit-hyphens:none) and (not (-moz-appearance:none)){.df5861c8fb684609__root input[type=date]:not([data-filled]):not(:focus),.df5861c8fb684609__root input[type=datetime-local]:not([data-filled]):not(:focus),.df5861c8fb684609__root input[type=time]:not([data-filled]):not(:focus){--_gcd-input-color:transparent;--_gcd-input-color-disabled:transparent;color:transparent;&:disabled::-webkit-datetime-edit-text{color:transparent}}}}}");
16786    }
16787    var style_default12 = { "root": "df5861c8fb684609__root" };
16788    var InputControl = (0, import_element38.forwardRef)(
16789      function UnforwardedInputControl({
16790        className,
16791        label,
16792        description,
16793        details,
16794        hideLabelFromVision,
16795        ...restProps
16796      }, ref) {
16797        return /* @__PURE__ */ (0, import_jsx_runtime76.jsxs)(field_exports.Root, { className: clsx_default(style_default12.root, className), children: [
16798          /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(field_exports.Label, { hideFromVision: hideLabelFromVision, children: label }),
16799          /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Input3, { ref, ...restProps }),
16800          description && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(field_exports.Description, { children: description }),
16801          details && /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(field_exports.Details, { children: details })
16802        ] });
16803      }
16804    );
16805  
16806    // packages/ui/build-module/form/select-control/select-control.mjs
16807    var import_element41 = __toESM(require_element(), 1);
16808  
16809    // packages/ui/build-module/form/select-control/dev-warnings.mjs
16810    var import_warning = __toESM(require_warning(), 1);
16811    function warnSelectControlProps(items, itemToStringValue) {
16812      if (!itemToStringValue && items?.some((item) => item.value === "")) {
16813        (0, import_warning.default)(
16814          "SelectControl: empty string item values are treated as empty selections by default. Use a non-empty item value or return a non-empty string from `itemToStringValue`. Use `null` for an option that clears the selection."
16815        );
16816      }
16817    }
16818  
16819    // packages/ui/build-module/form/select-control/item.mjs
16820    var import_element39 = __toESM(require_element(), 1);
16821    var import_jsx_runtime77 = __toESM(require_jsx_runtime(), 1);
16822    var Item3 = (0, import_element39.forwardRef)(
16823      function UnforwardedItem3(props, ref) {
16824        return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(select_exports.Item, { ref, ...props });
16825      }
16826    );
16827  
16828    // packages/ui/build-module/form/select-control/trigger.mjs
16829    var import_element40 = __toESM(require_element(), 1);
16830    var import_jsx_runtime78 = __toESM(require_jsx_runtime(), 1);
16831    var Trigger2 = (0, import_element40.forwardRef)(function UnforwardedTrigger2(props, ref) {
16832      return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(select_exports.Trigger, { ref, ...props });
16833    });
16834  
16835    // packages/ui/build-module/form/select-control/select-control.mjs
16836    var import_jsx_runtime79 = __toESM(require_jsx_runtime(), 1);
16837    var DEFAULT_TRIGGER = /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Trigger2, {});
16838    var SelectControl = (0, import_element41.forwardRef)(function UnforwardedSelectControl({
16839      className,
16840      children,
16841      items,
16842      label,
16843      description,
16844      details,
16845      hideLabelFromVision,
16846      placeholder,
16847      popupWidth = "content",
16848      size: size4 = "default",
16849      trigger,
16850      ...restProps
16851    }, ref) {
16852      if (true) {
16853        warnSelectControlProps(items, restProps.itemToStringValue);
16854      }
16855      const triggerElement = useRender({
16856        render: trigger ?? DEFAULT_TRIGGER,
16857        ref,
16858        props: { placeholder, size: size4 }
16859      });
16860      return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(field_exports.Root, { className, children: [
16861        /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(field_exports.Label, { hideFromVision: hideLabelFromVision, children: label }),
16862        /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(select_exports.Root, { items, ...restProps, children: [
16863          triggerElement,
16864          /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(select_exports.Popup, { width: popupWidth, children: children !== void 0 ? children : items?.map((item) => /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
16865            Item3,
16866            {
16867              value: item,
16868              label: item.label,
16869              disabled: item.disabled,
16870              children: [
16871                /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(select_exports.ItemLabel, { children: item.label }),
16872                item.description ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(select_exports.ItemDescription, { children: item.description }) : null
16873              ]
16874            },
16875            item.value ?? "null"
16876          )) })
16877        ] }),
16878        description && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(field_exports.Description, { children: description }),
16879        details && /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(field_exports.Details, { children: details })
16880      ] });
16881    });
16882  
16883    // packages/ui/build-module/form/select-control/index.mjs
16884    Trigger2.displayName = "SelectControl.Trigger";
16885    Group.displayName = "SelectControl.Group";
16886    GroupLabel.displayName = "SelectControl.GroupLabel";
16887    Item3.displayName = "SelectControl.Item";
16888    ItemLabel.displayName = "SelectControl.ItemLabel";
16889    ItemDescription.displayName = "SelectControl.ItemDescription";
16890    var SelectControl2 = Object.assign(SelectControl, {
16891      /**
16892       * The trigger button, passed through the `trigger` prop to customize
16893       * its props while retaining the control's label and selected content.
16894       */
16895      Trigger: Trigger2,
16896      /**
16897       * Groups related items together with an associated label rendered by
16898       * `SelectControl.GroupLabel`.
16899       */
16900      Group,
16901      /**
16902       * Renders a label for a `SelectControl.Group`.
16903       */
16904      GroupLabel,
16905      /**
16906       * An item rendered inside a `SelectControl` popup.
16907       */
16908      Item: Item3,
16909      /**
16910       * The primary label of a select item.
16911       */
16912      ItemLabel,
16913      /**
16914       * Supplementary content that describes a select item via
16915       * `aria-describedby`.
16916       */
16917      ItemDescription,
16918      /**
16919       * Renders a visual separator between items or groups.
16920       */
16921      Separator
16922    });
16923  
16924    // packages/ui/build-module/form/with-validation/validated-input-control/validated-input-control.mjs
16925    var import_element42 = __toESM(require_element(), 1);
16926    var import_compose2 = __toESM(require_compose(), 1);
16927    var import_jsx_runtime80 = __toESM(require_jsx_runtime(), 1);
16928    var ValidatedInputControl = (0, import_element42.forwardRef)(function UnforwardedValidatedInputControl({ required, markWhenOptional, customValidity, ...restProps }, forwardedRef) {
16929      const validityTargetRef = (0, import_element42.useRef)(null);
16930      const mergedRefs = (0, import_compose2.useMergeRefs)([forwardedRef, validityTargetRef]);
16931      return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
16932        ControlWithError,
16933        {
16934          required,
16935          markWhenOptional,
16936          customValidity,
16937          getValidityTarget: () => validityTargetRef.current,
16938          children: /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(InputControl, { ref: mergedRefs, ...restProps })
16939        }
16940      );
16941    });
16942  
16943    // packages/ui/build-module/tabs/index.mjs
16944    var tabs_exports = {};
16945    __export(tabs_exports, {
16946      List: () => List,
16947      Panel: () => Panel,
16948      Root: () => Root3,
16949      Tab: () => Tab
16950    });
16951  
16952    // packages/ui/build-module/tabs/list.mjs
16953    var import_element43 = __toESM(require_element(), 1);
16954    var import_compose3 = __toESM(require_compose(), 1);
16955    var import_jsx_runtime81 = __toESM(require_jsx_runtime(), 1);
16956    var STYLE_HASH_ATTRIBUTE27 = "data-wp-hash";
16957    function getRuntime27() {
16958      const globalScope = globalThis;
16959      if (globalScope.__wpStyleRuntime) {
16960        return globalScope.__wpStyleRuntime;
16961      }
16962      globalScope.__wpStyleRuntime = {
16963        documents: /* @__PURE__ */ new Map(),
16964        styles: /* @__PURE__ */ new Map(),
16965        injectedStyles: /* @__PURE__ */ new WeakMap()
16966      };
16967      if (typeof document !== "undefined") {
16968        registerDocument27(document);
16969      }
16970      return globalScope.__wpStyleRuntime;
16971    }
16972    function documentContainsStyleHash27(targetDocument, hash) {
16973      if (!targetDocument.head) {
16974        return false;
16975      }
16976      for (const style of targetDocument.head.querySelectorAll(
16977        `style[$STYLE_HASH_ATTRIBUTE27}]`
16978      )) {
16979        if (style.getAttribute(STYLE_HASH_ATTRIBUTE27) === hash) {
16980          return true;
16981        }
16982      }
16983      return false;
16984    }
16985    function injectStyle27(targetDocument, hash, css) {
16986      if (!targetDocument.head) {
16987        return;
16988      }
16989      const runtime = getRuntime27();
16990      let injectedStyles = runtime.injectedStyles.get(targetDocument);
16991      if (!injectedStyles) {
16992        injectedStyles = /* @__PURE__ */ new Set();
16993        runtime.injectedStyles.set(targetDocument, injectedStyles);
16994      }
16995      if (injectedStyles.has(hash)) {
16996        return;
16997      }
16998      if (documentContainsStyleHash27(targetDocument, hash)) {
16999        injectedStyles.add(hash);
17000        return;
17001      }
17002      const style = targetDocument.createElement("style");
17003      style.setAttribute(STYLE_HASH_ATTRIBUTE27, hash);
17004      style.appendChild(targetDocument.createTextNode(css));
17005      targetDocument.head.appendChild(style);
17006      injectedStyles.add(hash);
17007    }
17008    function registerDocument27(targetDocument) {
17009      const runtime = getRuntime27();
17010      runtime.documents.set(
17011        targetDocument,
17012        (runtime.documents.get(targetDocument) ?? 0) + 1
17013      );
17014      for (const [hash, css] of runtime.styles) {
17015        injectStyle27(targetDocument, hash, css);
17016      }
17017      return () => {
17018        const count = runtime.documents.get(targetDocument);
17019        if (count === void 0) {
17020          return;
17021        }
17022        if (count <= 1) {
17023          runtime.documents.delete(targetDocument);
17024          return;
17025        }
17026        runtime.documents.set(targetDocument, count - 1);
17027      };
17028    }
17029    function registerStyle27(hash, css) {
17030      const runtime = getRuntime27();
17031      runtime.styles.set(hash, css);
17032      for (const targetDocument of runtime.documents.keys()) {
17033        injectStyle27(targetDocument, hash, css);
17034      }
17035    }
17036    if (typeof process === "undefined" || true) {
17037      registerStyle27("3d953ec7ac", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a0e75f120439a0aa__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&:not(.d0a55a85eda75e42__is-scrolling){overflow:visible}&._3458825d62377029__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._485eb1577637fe68__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._3458825d62377029__is-overflowing-first._485eb1577637fe68__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._75bc52ead60e02b3__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._8db3ebc0bb0b18de__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height;transition-timing-function:ease-out}background-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;z-index:1;.a0e75f120439a0aa__tablist:has(>.cbf34d4b11b8d6d4__tab[aria-selected=true]:not([data-disabled]):focus-visible)\n                &{background-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&[data-orientation=horizontal]{bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width)}&[data-orientation=vertical]{height:max(0px,calc(var(--active-tab-height) - var(--wpds-dimension-padding-md, 12px)*2));inset-inline-start:0;top:var(--wpds-dimension-padding-md,12px);translate:0 var(--active-tab-top);width:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}.cbf34d4b11b8d6d4__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;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:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&:is([aria-selected=true],[data-disabled]){cursor:default}&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:not([aria-selected=true]):hover,:not([aria-selected=true]):active,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);&:after{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);opacity:1}}&:after,&:before{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid transparent;pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1;outline-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset-block:calc(var(--wpds-dimension-padding-md, 12px) + var(--wpds-dimension-padding-xs, 4px));inset-inline:var(--wpds-dimension-padding-lg,16px);outline-offset:var(--wpds-dimension-padding-xs,4px)}&:not([data-disabled]):is(:not([aria-selected=true]):hover,:not([aria-selected=true]):active,:focus-visible):after{box-shadow:0 0 0 var(--wpds-dimension-padding-xs,4px) var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}}._75bc52ead60e02b3__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:0}}._75bc52ead60e02b3__is-minimal-variant.d0a55a85eda75e42__is-scrolling[data-orientation=horizontal] &{&:before{content:"";inset-block:var(--wpds-dimension-padding-md,12px);inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px);z-index:0}&:focus-visible{&:before{opacity:1;outline-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}&:after{outline:none}}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-md,12px);&:after{content:"";inset:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}}}._48bd1f7fa091c988__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}}}');
17038    }
17039    var style_default13 = { "tablist": "a0e75f120439a0aa__tablist", "is-scrolling": "d0a55a85eda75e42__is-scrolling", "is-overflowing-first": "_3458825d62377029__is-overflowing-first", "is-overflowing-last": "_485eb1577637fe68__is-overflowing-last", "is-minimal-variant": "_75bc52ead60e02b3__is-minimal-variant", "indicator": "_8db3ebc0bb0b18de__indicator", "tab": "cbf34d4b11b8d6d4__tab", "tab-children": "_48bd1f7fa091c988__tab-children" };
17040    var SCROLL_EPSILON = 1;
17041    var List = (0, import_element43.forwardRef)(
17042      function TabList({
17043        children,
17044        variant = "default",
17045        className,
17046        activateOnFocus,
17047        ...otherProps
17048      }, forwardedRef) {
17049        const [listEl, setListEl] = (0, import_element43.useState)(null);
17050        const [overflow, setOverflow] = (0, import_element43.useState)({
17051          first: false,
17052          last: false,
17053          isScrolling: false
17054        });
17055        (0, import_element43.useEffect)(() => {
17056          if (!listEl) {
17057            return;
17058          }
17059          const measureOverflow = () => {
17060            const { scrollWidth, clientWidth, scrollLeft } = listEl;
17061            const maxScroll = Math.max(scrollWidth - clientWidth, 0);
17062            const direction = listEl.dir || (typeof window !== "undefined" ? window.getComputedStyle(listEl).direction : "ltr");
17063            const scrollFromStart = direction === "rtl" && scrollLeft < 0 ? (
17064              // In RTL layouts, scrollLeft is typically 0 at the visual "start"
17065              // (right edge) and becomes negative toward the "end" (left edge).
17066              // Normalize value for correct first/last detection logic.
17067              -scrollLeft
17068            ) : scrollLeft;
17069            const next = {
17070              first: scrollFromStart > SCROLL_EPSILON,
17071              last: scrollFromStart < maxScroll - SCROLL_EPSILON,
17072              isScrolling: scrollWidth > clientWidth
17073            };
17074            setOverflow(
17075              (prev) => prev.first === next.first && prev.last === next.last && prev.isScrolling === next.isScrolling ? prev : next
17076            );
17077          };
17078          const resizeObserver = new ResizeObserver(measureOverflow);
17079          const observeTabs = () => {
17080            resizeObserver.disconnect();
17081            resizeObserver.observe(listEl);
17082            listEl.querySelectorAll('[role="tab"]').forEach((tab) => resizeObserver.observe(tab));
17083          };
17084          const mutationObserver = new MutationObserver(observeTabs);
17085          mutationObserver.observe(listEl, {
17086            childList: true,
17087            subtree: true
17088          });
17089          let scrollTick = false;
17090          const throttleMeasureOverflowOnScroll = () => {
17091            if (!scrollTick) {
17092              requestAnimationFrame(() => {
17093                measureOverflow();
17094                scrollTick = false;
17095              });
17096              scrollTick = true;
17097            }
17098          };
17099          listEl.addEventListener(
17100            "scroll",
17101            throttleMeasureOverflowOnScroll,
17102            { passive: true }
17103          );
17104          observeTabs();
17105          measureOverflow();
17106          return () => {
17107            listEl.removeEventListener(
17108              "scroll",
17109              throttleMeasureOverflowOnScroll
17110            );
17111            resizeObserver.disconnect();
17112            mutationObserver.disconnect();
17113          };
17114        }, [listEl]);
17115        const mergedListRef = (0, import_compose3.useMergeRefs)([
17116          forwardedRef,
17117          (el) => setListEl(el)
17118        ]);
17119        return /* @__PURE__ */ (0, import_jsx_runtime81.jsxs)(
17120          index_parts_exports3.List,
17121          {
17122            ref: mergedListRef,
17123            activateOnFocus,
17124            "data-select-on-move": activateOnFocus ? "true" : "false",
17125            className: clsx_default(
17126              style_default13.tablist,
17127              overflow.isScrolling && style_default13["is-scrolling"],
17128              overflow.first && style_default13["is-overflowing-first"],
17129              overflow.last && style_default13["is-overflowing-last"],
17130              style_default13[`is-$variant}-variant`],
17131              className
17132            ),
17133            ...otherProps,
17134            tabIndex: otherProps.tabIndex ?? (overflow.isScrolling ? -1 : void 0),
17135            children: [
17136              children,
17137              /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(index_parts_exports3.Indicator, { className: style_default13.indicator })
17138            ]
17139          }
17140        );
17141      }
17142    );
17143  
17144    // packages/ui/build-module/tabs/panel.mjs
17145    var import_element45 = __toESM(require_element(), 1);
17146  
17147    // packages/ui/build-module/tabs/context.mjs
17148    var import_element44 = __toESM(require_element(), 1);
17149    var import_jsx_runtime82 = __toESM(require_jsx_runtime(), 1);
17150    var VALIDATION_ENABLED2 = true;
17151    var TabsValidationContext = VALIDATION_ENABLED2 ? (0, import_element44.createContext)(null) : null;
17152    function useRegisterTabDev() {
17153      const context = (0, import_element44.useContext)(TabsValidationContext);
17154      (0, import_element44.useEffect)(() => {
17155        if (context) {
17156          return context.registerTab();
17157        }
17158        return void 0;
17159      }, [context]);
17160    }
17161    function useRegisterTabProd() {
17162    }
17163    var useRegisterTab = VALIDATION_ENABLED2 ? useRegisterTabDev : useRegisterTabProd;
17164    function useRegisterPanelDev() {
17165      const context = (0, import_element44.useContext)(TabsValidationContext);
17166      (0, import_element44.useEffect)(() => {
17167        if (context) {
17168          return context.registerPanel();
17169        }
17170        return void 0;
17171      }, [context]);
17172    }
17173    function useRegisterPanelProd() {
17174    }
17175    var useRegisterPanel = VALIDATION_ENABLED2 ? useRegisterPanelDev : useRegisterPanelProd;
17176    function TabsValidationProviderDev({
17177      children
17178    }) {
17179      const tabCountRef = (0, import_element44.useRef)(0);
17180      const panelCountRef = (0, import_element44.useRef)(0);
17181      const scheduleValidation = useScheduleValidation(() => {
17182        const tabCount = tabCountRef.current;
17183        const panelCount = panelCountRef.current;
17184        if (tabCount !== panelCount) {
17185          throw new Error(
17186            `Tabs: Tab/Panel count mismatch ($tabCount} Tabs, $panelCount} Panels). Each Tab must be associated with exactly one Panel. Mismatched or missing associations can break screen reader navigation and violate WAI-ARIA Tabs pattern requirements.`
17187          );
17188        }
17189      });
17190      const registerTab = (0, import_element44.useCallback)(() => {
17191        tabCountRef.current += 1;
17192        scheduleValidation();
17193        return () => {
17194          tabCountRef.current -= 1;
17195          scheduleValidation();
17196        };
17197      }, [scheduleValidation]);
17198      const registerPanel = (0, import_element44.useCallback)(() => {
17199        panelCountRef.current += 1;
17200        scheduleValidation();
17201        return () => {
17202          panelCountRef.current -= 1;
17203          scheduleValidation();
17204        };
17205      }, [scheduleValidation]);
17206      const contextValue = (0, import_element44.useMemo)(
17207        () => ({
17208          registerTab,
17209          registerPanel
17210        }),
17211        [registerTab, registerPanel]
17212      );
17213      return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(TabsValidationContext.Provider, { value: contextValue, children });
17214    }
17215    function TabsValidationProviderProd({
17216      children
17217    }) {
17218      return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(import_jsx_runtime82.Fragment, { children });
17219    }
17220    var TabsValidationProvider = VALIDATION_ENABLED2 ? TabsValidationProviderDev : TabsValidationProviderProd;
17221  
17222    // packages/ui/build-module/tabs/panel.mjs
17223    var import_jsx_runtime83 = __toESM(require_jsx_runtime(), 1);
17224    var STYLE_HASH_ATTRIBUTE28 = "data-wp-hash";
17225    function getRuntime28() {
17226      const globalScope = globalThis;
17227      if (globalScope.__wpStyleRuntime) {
17228        return globalScope.__wpStyleRuntime;
17229      }
17230      globalScope.__wpStyleRuntime = {
17231        documents: /* @__PURE__ */ new Map(),
17232        styles: /* @__PURE__ */ new Map(),
17233        injectedStyles: /* @__PURE__ */ new WeakMap()
17234      };
17235      if (typeof document !== "undefined") {
17236        registerDocument28(document);
17237      }
17238      return globalScope.__wpStyleRuntime;
17239    }
17240    function documentContainsStyleHash28(targetDocument, hash) {
17241      if (!targetDocument.head) {
17242        return false;
17243      }
17244      for (const style of targetDocument.head.querySelectorAll(
17245        `style[$STYLE_HASH_ATTRIBUTE28}]`
17246      )) {
17247        if (style.getAttribute(STYLE_HASH_ATTRIBUTE28) === hash) {
17248          return true;
17249        }
17250      }
17251      return false;
17252    }
17253    function injectStyle28(targetDocument, hash, css) {
17254      if (!targetDocument.head) {
17255        return;
17256      }
17257      const runtime = getRuntime28();
17258      let injectedStyles = runtime.injectedStyles.get(targetDocument);
17259      if (!injectedStyles) {
17260        injectedStyles = /* @__PURE__ */ new Set();
17261        runtime.injectedStyles.set(targetDocument, injectedStyles);
17262      }
17263      if (injectedStyles.has(hash)) {
17264        return;
17265      }
17266      if (documentContainsStyleHash28(targetDocument, hash)) {
17267        injectedStyles.add(hash);
17268        return;
17269      }
17270      const style = targetDocument.createElement("style");
17271      style.setAttribute(STYLE_HASH_ATTRIBUTE28, hash);
17272      style.appendChild(targetDocument.createTextNode(css));
17273      targetDocument.head.appendChild(style);
17274      injectedStyles.add(hash);
17275    }
17276    function registerDocument28(targetDocument) {
17277      const runtime = getRuntime28();
17278      runtime.documents.set(
17279        targetDocument,
17280        (runtime.documents.get(targetDocument) ?? 0) + 1
17281      );
17282      for (const [hash, css] of runtime.styles) {
17283        injectStyle28(targetDocument, hash, css);
17284      }
17285      return () => {
17286        const count = runtime.documents.get(targetDocument);
17287        if (count === void 0) {
17288          return;
17289        }
17290        if (count <= 1) {
17291          runtime.documents.delete(targetDocument);
17292          return;
17293        }
17294        runtime.documents.set(targetDocument, count - 1);
17295      };
17296    }
17297    function registerStyle28(hash, css) {
17298      const runtime = getRuntime28();
17299      runtime.styles.set(hash, css);
17300      for (const targetDocument of runtime.documents.keys()) {
17301        injectStyle28(targetDocument, hash, css);
17302      }
17303    }
17304    if (typeof process === "undefined" || true) {
17305      registerStyle28("726f348f3f", "._78c10a0773e51a91__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)}._5b33aa2d48624b4f__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);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&: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))}}&: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)}}._980b3b4776ac8f81__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._43e478b4279a076c__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._698099e25b0fb1a6__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)._326aee4184d261fd__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)}.e9576240835601ba__a,.e9576240835601ba__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)}._3f05789653864a73__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._3c72ff72abe57859__li{margin:var(--_gcd-li-margin,0)}[role=treeitem] span._79d16267c15d9eb2__span[aria-hidden]{display:var(--_gcd-span-display,inline);font-family:var(--_gcd-span-font-family,inherit);font-size:var(--_gcd-span-font-size,inherit);line-height:var(--_gcd-span-line-height,1);pointer-events:var(--_gcd-span-pointer-events,auto);position:var(--_gcd-span-position,static)}");
17306    }
17307    var global_css_defense_default8 = { "button": "_78c10a0773e51a91__button", "input": "_5b33aa2d48624b4f__input", "textarea": "_980b3b4776ac8f81__textarea", "div": "_43e478b4279a076c__div", "p": "_698099e25b0fb1a6__p", "heading": "_326aee4184d261fd__heading", "a": "e9576240835601ba__a", "ol": "_3f05789653864a73__ol", "li": "_3c72ff72abe57859__li", "span": "_79d16267c15d9eb2__span" };
17308    if (typeof process === "undefined" || true) {
17309      registerStyle28("c13e206e92", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer utilities{._0f52be5f1d4ce686__outset-ring--focus-within:focus-within,._8f922cee854f2408__outset-ring--focus-visible:focus-visible,.accedd6ae8fd878e__outset-ring--focus:focus{--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--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,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))}._3ad2c88c126f2bdd__outset-ring--focus-within-except-active:focus-within,.c20f61b115485a7f__outset-ring--focus-except-active:focus{outline:none}._3ad2c88c126f2bdd__outset-ring--focus-within-except-active:focus-within:not(:has(:active)),.c20f61b115485a7f__outset-ring--focus-except-active:focus:not(:active){--_gcd-a-outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid var(--focus-color,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(--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,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))}}}");
17310    }
17311    var focus_module_default4 = { "outset-ring--focus": "accedd6ae8fd878e__outset-ring--focus", "outset-ring--focus-visible": "_8f922cee854f2408__outset-ring--focus-visible", "outset-ring--focus-within": "_0f52be5f1d4ce686__outset-ring--focus-within", "outset-ring--focus-except-active": "c20f61b115485a7f__outset-ring--focus-except-active", "outset-ring--focus-within-except-active": "_3ad2c88c126f2bdd__outset-ring--focus-within-except-active" };
17312    var Panel = (0, import_element45.forwardRef)(
17313      function TabPanel({ className, ...otherProps }, forwardedRef) {
17314        useRegisterPanel();
17315        return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(
17316          index_parts_exports3.Panel,
17317          {
17318            ref: forwardedRef,
17319            className: clsx_default(
17320              global_css_defense_default8.div,
17321              focus_module_default4["outset-ring--focus-visible"],
17322              className
17323            ),
17324            ...otherProps
17325          }
17326        );
17327      }
17328    );
17329  
17330    // packages/ui/build-module/tabs/root.mjs
17331    var import_element46 = __toESM(require_element(), 1);
17332    var import_jsx_runtime84 = __toESM(require_jsx_runtime(), 1);
17333    var Root3 = (0, import_element46.forwardRef)(
17334      function TabsRoot3({ ...otherProps }, forwardedRef) {
17335        return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(DirectionProvider3, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(TabsValidationProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(index_parts_exports3.Root, { ref: forwardedRef, ...otherProps }) }) });
17336      }
17337    );
17338  
17339    // packages/ui/build-module/tabs/tab.mjs
17340    var import_element47 = __toESM(require_element(), 1);
17341    var import_jsx_runtime85 = __toESM(require_jsx_runtime(), 1);
17342    var STYLE_HASH_ATTRIBUTE29 = "data-wp-hash";
17343    function getRuntime29() {
17344      const globalScope = globalThis;
17345      if (globalScope.__wpStyleRuntime) {
17346        return globalScope.__wpStyleRuntime;
17347      }
17348      globalScope.__wpStyleRuntime = {
17349        documents: /* @__PURE__ */ new Map(),
17350        styles: /* @__PURE__ */ new Map(),
17351        injectedStyles: /* @__PURE__ */ new WeakMap()
17352      };
17353      if (typeof document !== "undefined") {
17354        registerDocument29(document);
17355      }
17356      return globalScope.__wpStyleRuntime;
17357    }
17358    function documentContainsStyleHash29(targetDocument, hash) {
17359      if (!targetDocument.head) {
17360        return false;
17361      }
17362      for (const style of targetDocument.head.querySelectorAll(
17363        `style[$STYLE_HASH_ATTRIBUTE29}]`
17364      )) {
17365        if (style.getAttribute(STYLE_HASH_ATTRIBUTE29) === hash) {
17366          return true;
17367        }
17368      }
17369      return false;
17370    }
17371    function injectStyle29(targetDocument, hash, css) {
17372      if (!targetDocument.head) {
17373        return;
17374      }
17375      const runtime = getRuntime29();
17376      let injectedStyles = runtime.injectedStyles.get(targetDocument);
17377      if (!injectedStyles) {
17378        injectedStyles = /* @__PURE__ */ new Set();
17379        runtime.injectedStyles.set(targetDocument, injectedStyles);
17380      }
17381      if (injectedStyles.has(hash)) {
17382        return;
17383      }
17384      if (documentContainsStyleHash29(targetDocument, hash)) {
17385        injectedStyles.add(hash);
17386        return;
17387      }
17388      const style = targetDocument.createElement("style");
17389      style.setAttribute(STYLE_HASH_ATTRIBUTE29, hash);
17390      style.appendChild(targetDocument.createTextNode(css));
17391      targetDocument.head.appendChild(style);
17392      injectedStyles.add(hash);
17393    }
17394    function registerDocument29(targetDocument) {
17395      const runtime = getRuntime29();
17396      runtime.documents.set(
17397        targetDocument,
17398        (runtime.documents.get(targetDocument) ?? 0) + 1
17399      );
17400      for (const [hash, css] of runtime.styles) {
17401        injectStyle29(targetDocument, hash, css);
17402      }
17403      return () => {
17404        const count = runtime.documents.get(targetDocument);
17405        if (count === void 0) {
17406          return;
17407        }
17408        if (count <= 1) {
17409          runtime.documents.delete(targetDocument);
17410          return;
17411        }
17412        runtime.documents.set(targetDocument, count - 1);
17413      };
17414    }
17415    function registerStyle29(hash, css) {
17416      const runtime = getRuntime29();
17417      runtime.styles.set(hash, css);
17418      for (const targetDocument of runtime.documents.keys()) {
17419        injectStyle29(targetDocument, hash, css);
17420      }
17421    }
17422    if (typeof process === "undefined" || true) {
17423      registerStyle29("3d953ec7ac", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.a0e75f120439a0aa__tablist{--direction-start:left;--direction-end:right;align-items:stretch;display:flex;overflow-inline:auto;overscroll-behavior-inline:none;position:relative;&:dir(rtl){--direction-start:right;--direction-end:left}&[data-orientation=horizontal]{--fade-width:4rem;--fade-gradient-base:transparent 0%,#000 var(--fade-width);--fade-gradient-composed:var(--fade-gradient-base),#000 60%,transparent 50%;width:fit-content;&:not(.d0a55a85eda75e42__is-scrolling){overflow:visible}&._3458825d62377029__is-overflowing-first{mask-image:linear-gradient(to var(--direction-end),var(--fade-gradient-base))}&._485eb1577637fe68__is-overflowing-last{mask-image:linear-gradient(to var(--direction-start),var(--fade-gradient-base))}&._3458825d62377029__is-overflowing-first._485eb1577637fe68__is-overflowing-last{mask-image:linear-gradient(to right,var(--fade-gradient-composed)),linear-gradient(to left,var(--fade-gradient-composed))}&._75bc52ead60e02b3__is-minimal-variant{gap:1rem}}&[data-orientation=vertical]{flex-direction:column}}._8db3ebc0bb0b18de__indicator{@media not (prefers-reduced-motion){transition-duration:.2s;transition-property:translate,width,height;transition-timing-function:ease-out}background-color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);outline:2px solid transparent;outline-offset:-1px;pointer-events:none;position:absolute;z-index:1;.a0e75f120439a0aa__tablist:has(>.cbf34d4b11b8d6d4__tab[aria-selected=true]:not([data-disabled]):focus-visible)\n                &{background-color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e)}&[data-orientation=horizontal]{bottom:0;height:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px));left:0;translate:var(--active-tab-left) 0;width:var(--active-tab-width)}&[data-orientation=vertical]{height:max(0px,calc(var(--active-tab-height) - var(--wpds-dimension-padding-md, 12px)*2));inset-inline-start:0;top:var(--wpds-dimension-padding-md,12px);translate:0 var(--active-tab-top);width:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px))}}.cbf34d4b11b8d6d4__tab{align-items:center;background:transparent;border:none;border-radius:0;box-shadow:none;color:var(--wpds-color-foreground-interactive-neutral,#1e1e1e);cursor:var(--wpds-cursor-control,pointer);display:flex;flex:1 0 auto;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:400;line-height:1.2;outline:none;padding:0;position:relative;white-space:nowrap;z-index:1;&:is([aria-selected=true],[data-disabled]){cursor:default}&[data-disabled]{color:var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d);@media (forced-colors:active){color:GrayText}}&:not([data-disabled]):is(:not([aria-selected=true]):hover,:not([aria-selected=true]):active,:focus-visible){color:var(--wpds-color-foreground-interactive-neutral-active,#1e1e1e);&:after{background-color:var(--wpds-color-background-interactive-neutral-weak-active,#ededed);opacity:1}}&:after,&:before{border-radius:var(--wpds-border-radius-sm,2px);opacity:0;outline:var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)) solid transparent;pointer-events:none;position:absolute;z-index:-1;@media not (prefers-reduced-motion){transition:opacity .1s linear}}&:focus-visible:after{opacity:1;outline-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}[data-orientation=horizontal] &{height:48px;padding-inline:var(--wpds-dimension-padding-lg,16px);scroll-margin:24px;&:after{content:"";inset-block:calc(var(--wpds-dimension-padding-md, 12px) + var(--wpds-dimension-padding-xs, 4px));inset-inline:var(--wpds-dimension-padding-lg,16px);outline-offset:var(--wpds-dimension-padding-xs,4px)}&:not([data-disabled]):is(:not([aria-selected=true]):hover,:not([aria-selected=true]):active,:focus-visible):after{box-shadow:0 0 0 var(--wpds-dimension-padding-xs,4px) var(--wpds-color-background-interactive-neutral-weak-active,#ededed)}}._75bc52ead60e02b3__is-minimal-variant[data-orientation=horizontal] &{padding-inline:0;&:after{inset-inline:0}}._75bc52ead60e02b3__is-minimal-variant.d0a55a85eda75e42__is-scrolling[data-orientation=horizontal] &{&:before{content:"";inset-block:var(--wpds-dimension-padding-md,12px);inset-inline:round(up,var(--wpds-border-width-focus,var(--wp-admin-border-width-focus,2px)),1px);z-index:0}&:focus-visible{&:before{opacity:1;outline-color:var(--wpds-color-stroke-focus,var(--wp-admin-theme-color,#3858e9))}&:after{outline:none}}}[data-orientation=vertical] &{min-height:var(--wpds-dimension-size-lg,40px);padding:var(--wpds-dimension-padding-md,12px);&:after{content:"";inset:0;outline-offset:calc(var(--wpds-border-width-focus, var(--wp-admin-border-width-focus, 2px))*-1)}}}._48bd1f7fa091c988__tab-children{align-items:center;display:flex;flex-grow:1;[data-orientation=horizontal] &{justify-content:center}[data-orientation=vertical] &{justify-content:start}}}}');
17424    }
17425    var style_default14 = { "tablist": "a0e75f120439a0aa__tablist", "is-scrolling": "d0a55a85eda75e42__is-scrolling", "is-overflowing-first": "_3458825d62377029__is-overflowing-first", "is-overflowing-last": "_485eb1577637fe68__is-overflowing-last", "is-minimal-variant": "_75bc52ead60e02b3__is-minimal-variant", "indicator": "_8db3ebc0bb0b18de__indicator", "tab": "cbf34d4b11b8d6d4__tab", "tab-children": "_48bd1f7fa091c988__tab-children" };
17426    var Tab = (0, import_element47.forwardRef)(
17427      function UnforwardedTab({ className, children, ...otherProps }, forwardedRef) {
17428        useRegisterTab();
17429        return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
17430          index_parts_exports3.Tab,
17431          {
17432            ref: forwardedRef,
17433            className: clsx_default(style_default14.tab, className),
17434            ...otherProps,
17435            children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)("span", { className: style_default14["tab-children"], children })
17436          }
17437        );
17438      }
17439    );
17440  
17441    // packages/format-library/build-module/image/index.mjs
17442    var import_i18n8 = __toESM(require_i18n(), 1);
17443    var import_element48 = __toESM(require_element(), 1);
17444    var import_rich_text3 = __toESM(require_rich_text(), 1);
17445    var import_block_editor3 = __toESM(require_block_editor(), 1);
17446    var import_jsx_runtime86 = __toESM(require_jsx_runtime(), 1);
17447    var ALLOWED_MEDIA_TYPES = ["image"];
17448    var name3 = "core/image";
17449    var title3 = (0, import_i18n8.__)("Inline image");
17450    function getCurrentImageId(activeObjectAttributes) {
17451      if (!activeObjectAttributes.className) {
17452        return void 0;
17453      }
17454      const [, id] = activeObjectAttributes.className.match(/wp-image-(\d+)/) ?? [];
17455      return id ? parseInt(id, 10) : void 0;
17456    }
17457    var image = {
17458      name: name3,
17459      title: title3,
17460      keywords: [(0, import_i18n8.__)("photo"), (0, import_i18n8.__)("media")],
17461      object: true,
17462      tagName: "img",
17463      className: null,
17464      attributes: {
17465        className: "class",
17466        style: "style",
17467        url: "src",
17468        alt: "alt"
17469      },
17470      edit: Edit
17471    };
17472    function InlineUI({
17473      value,
17474      onChange,
17475      activeObjectAttributes,
17476      contentRef
17477    }) {
17478      const style = activeObjectAttributes.style;
17479      const alt = activeObjectAttributes.alt;
17480      const width = style?.replace(/\D/g, "");
17481      const [editedWidth, setEditedWidth] = (0, import_element48.useState)(width);
17482      const [editedAlt, setEditedAlt] = (0, import_element48.useState)(alt);
17483      const hasChanged = editedWidth !== width || editedAlt !== alt;
17484      const popoverAnchor = (0, import_rich_text3.useAnchor)({
17485        // eslint-disable-next-line react-hooks/refs
17486        editableContentElement: contentRef.current,
17487        settings: image
17488      });
17489      return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17490        import_components.Popover,
17491        {
17492          focusOnMount: false,
17493          anchor: popoverAnchor,
17494          className: "block-editor-format-toolbar__image-popover",
17495          children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17496            "form",
17497            {
17498              className: "block-editor-format-toolbar__image-container-content",
17499              onSubmit: (event) => {
17500                event.preventDefault();
17501                if (value.start === void 0) {
17502                  return;
17503                }
17504                const newReplacements = value.replacements.slice();
17505                newReplacements[value.start] = {
17506                  type: name3,
17507                  attributes: {
17508                    ...activeObjectAttributes,
17509                    style: editedWidth ? `width: $editedWidth}px;` : "",
17510                    alt: editedAlt ?? ""
17511                  }
17512                };
17513                onChange({
17514                  ...value,
17515                  replacements: newReplacements
17516                });
17517              },
17518              children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Stack, { direction: "column", gap: "lg", children: [
17519                /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17520                  import_components.__experimentalNumberControl,
17521                  {
17522                    label: (0, import_i18n8.__)("Width"),
17523                    value: editedWidth,
17524                    min: 1,
17525                    onChange: (newWidth) => {
17526                      setEditedWidth(newWidth);
17527                    }
17528                  }
17529                ),
17530                /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17531                  import_components.TextareaControl,
17532                  {
17533                    label: (0, import_i18n8.__)("Alternative text"),
17534                    value: editedAlt ?? "",
17535                    onChange: (newAlt) => {
17536                      setEditedAlt(newAlt);
17537                    },
17538                    help: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_jsx_runtime86.Fragment, { children: [
17539                      /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17540                        Link,
17541                        {
17542                          openInNewTab: true,
17543                          href: (
17544                            // translators: Localized tutorial, if one exists. W3C Web Accessibility Initiative link has list of existing translations.
17545                            (0, import_i18n8.__)(
17546                              "https://www.w3.org/WAI/tutorials/images/decision-tree/"
17547                            )
17548                          ),
17549                          children: (0, import_i18n8.__)(
17550                            "Describe the purpose of the image."
17551                          )
17552                        }
17553                      ),
17554                      /* @__PURE__ */ (0, import_jsx_runtime86.jsx)("br", {}),
17555                      (0, import_i18n8.__)("Leave empty if decorative.")
17556                    ] })
17557                  }
17558                ),
17559                /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Stack, { justify: "right", children: /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17560                  import_components.Button,
17561                  {
17562                    disabled: !hasChanged,
17563                    accessibleWhenDisabled: true,
17564                    variant: "primary",
17565                    type: "submit",
17566                    size: "compact",
17567                    children: (0, import_i18n8.__)("Apply")
17568                  }
17569                ) })
17570              ] })
17571            }
17572          )
17573        }
17574      );
17575    }
17576    function Edit({
17577      value,
17578      onChange,
17579      onFocus,
17580      isObjectActive,
17581      activeObjectAttributes,
17582      contentRef
17583    }) {
17584      return /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_block_editor3.MediaUploadCheck, { children: [
17585        /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17586          import_block_editor3.MediaUpload,
17587          {
17588            allowedTypes: ALLOWED_MEDIA_TYPES,
17589            value: getCurrentImageId(activeObjectAttributes),
17590            onSelect: ({
17591              id,
17592              url,
17593              alt,
17594              width: imgWidth
17595            }) => {
17596              onChange(
17597                (0, import_rich_text3.insertObject)(value, {
17598                  type: name3,
17599                  attributes: {
17600                    className: `wp-image-$id}`,
17601                    style: `width: $Math.min(
17602                      imgWidth,
17603                      150
17604                    )}px;`,
17605                    url,
17606                    alt
17607                  }
17608                })
17609              );
17610              onFocus();
17611            },
17612            render: ({ open: open2 }) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17613              import_block_editor3.RichTextToolbarButton,
17614              {
17615                icon: inline_image_default,
17616                title: isObjectActive ? (0, import_i18n8.__)("Replace image") : title3,
17617                onClick: open2,
17618                isActive: isObjectActive
17619              }
17620            )
17621          }
17622        ),
17623        isObjectActive && /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
17624          InlineUI,
17625          {
17626            value,
17627            onChange,
17628            activeObjectAttributes,
17629            contentRef
17630          }
17631        )
17632      ] });
17633    }
17634  
17635    // packages/format-library/build-module/italic/index.mjs
17636    var import_i18n9 = __toESM(require_i18n(), 1);
17637    var import_rich_text4 = __toESM(require_rich_text(), 1);
17638    var import_block_editor4 = __toESM(require_block_editor(), 1);
17639    var import_jsx_runtime87 = __toESM(require_jsx_runtime(), 1);
17640    var name4 = "core/italic";
17641    var title4 = (0, import_i18n9.__)("Italic");
17642    var italic = {
17643      name: name4,
17644      title: title4,
17645      tagName: "em",
17646      className: null,
17647      edit({
17648        isActive,
17649        value,
17650        onChange,
17651        onFocus,
17652        isVisible = true
17653      }) {
17654        function onToggle() {
17655          onChange((0, import_rich_text4.toggleFormat)(value, { type: name4, title: title4 }));
17656        }
17657        function onClick() {
17658          onChange((0, import_rich_text4.toggleFormat)(value, { type: name4, title: title4 }));
17659          onFocus();
17660        }
17661        return /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_jsx_runtime87.Fragment, { children: [
17662          /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
17663            import_block_editor4.RichTextShortcut,
17664            {
17665              type: "primary",
17666              character: "i",
17667              onUse: onToggle
17668            }
17669          ),
17670          isVisible && /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
17671            import_block_editor4.RichTextToolbarButton,
17672            {
17673              name: "italic",
17674              icon: format_italic_default,
17675              title: title4,
17676              onClick,
17677              isActive,
17678              shortcutType: "primary",
17679              shortcutCharacter: "i"
17680            }
17681          ),
17682          /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(
17683            import_block_editor4.__unstableRichTextInputEvent,
17684            {
17685              inputType: "formatItalic",
17686              onInput: onToggle
17687            }
17688          )
17689        ] });
17690      }
17691    };
17692  
17693    // packages/format-library/build-module/link/index.mjs
17694    var import_i18n12 = __toESM(require_i18n(), 1);
17695    var import_element51 = __toESM(require_element(), 1);
17696    var import_rich_text6 = __toESM(require_rich_text(), 1);
17697    var import_url3 = __toESM(require_url(), 1);
17698    var import_block_editor6 = __toESM(require_block_editor(), 1);
17699    var import_html_entities = __toESM(require_html_entities(), 1);
17700    var import_a11y2 = __toESM(require_a11y(), 1);
17701  
17702    // packages/format-library/build-module/link/inline.mjs
17703    var import_element50 = __toESM(require_element(), 1);
17704    var import_i18n11 = __toESM(require_i18n(), 1);
17705    var import_a11y = __toESM(require_a11y(), 1);
17706    var import_components3 = __toESM(require_components(), 1);
17707    var import_url2 = __toESM(require_url(), 1);
17708    var import_rich_text5 = __toESM(require_rich_text(), 1);
17709    var import_block_editor5 = __toESM(require_block_editor(), 1);
17710    var import_data = __toESM(require_data(), 1);
17711  
17712    // packages/format-library/build-module/link/utils.mjs
17713    var import_url = __toESM(require_url(), 1);
17714    function isValidHref(href) {
17715      if (!href) {
17716        return false;
17717      }
17718      const trimmedHref = href.trim();
17719      if (!trimmedHref) {
17720        return false;
17721      }
17722      if (/^\S+:/.test(trimmedHref)) {
17723        const protocol = (0, import_url.getProtocol)(trimmedHref);
17724        if (!protocol || !(0, import_url.isValidProtocol)(protocol)) {
17725          return false;
17726        }
17727        if (protocol.startsWith("http") && !/^https?:\/\/[^\/\s]/i.test(trimmedHref)) {
17728          return false;
17729        }
17730        const authority = (0, import_url.getAuthority)(trimmedHref);
17731        if (!authority || !(0, import_url.isValidAuthority)(authority)) {
17732          return false;
17733        }
17734        const path = (0, import_url.getPath)(trimmedHref);
17735        if (path && !(0, import_url.isValidPath)(path)) {
17736          return false;
17737        }
17738        const queryString = (0, import_url.getQueryString)(trimmedHref);
17739        if (queryString && !(0, import_url.isValidQueryString)(queryString)) {
17740          return false;
17741        }
17742        const fragment = (0, import_url.getFragment)(trimmedHref);
17743        if (fragment && !(0, import_url.isValidFragment)(fragment)) {
17744          return false;
17745        }
17746      }
17747      if (trimmedHref.startsWith("#") && !(0, import_url.isValidFragment)(trimmedHref)) {
17748        return false;
17749      }
17750      return true;
17751    }
17752    function createLinkFormat({
17753      url,
17754      type,
17755      id,
17756      opensInNewWindow,
17757      nofollow,
17758      cssClasses
17759    }) {
17760      const format = {
17761        type: "core/link",
17762        attributes: {
17763          url
17764        }
17765      };
17766      if (type) {
17767        format.attributes.type = type;
17768      }
17769      if (id) {
17770        format.attributes.id = id;
17771      }
17772      if (opensInNewWindow) {
17773        format.attributes.target = "_blank";
17774        format.attributes.rel = format.attributes.rel ? format.attributes.rel + " noopener" : "noopener";
17775      }
17776      if (nofollow) {
17777        format.attributes.rel = format.attributes.rel ? format.attributes.rel + " nofollow" : "nofollow";
17778      }
17779      const trimmedCssClasses = cssClasses?.trim();
17780      if (trimmedCssClasses?.length) {
17781        format.attributes.class = trimmedCssClasses;
17782      }
17783      return format;
17784    }
17785    function getFormatBoundary(value, format, startIndex = value.start, endIndex = value.end) {
17786      const EMPTY_BOUNDARIES = {
17787        start: void 0,
17788        end: void 0
17789      };
17790      const { formats } = value;
17791      let targetFormat;
17792      let initialIndex;
17793      if (!formats?.length || startIndex === void 0 || endIndex === void 0) {
17794        return EMPTY_BOUNDARIES;
17795      }
17796      const newFormats = formats.slice();
17797      const formatAtStart = newFormats[startIndex]?.find(
17798        ({ type }) => type === format.type
17799      );
17800      const formatAtEnd = newFormats[endIndex]?.find(
17801        ({ type }) => type === format.type
17802      );
17803      const formatAtEndMinusOne = newFormats[endIndex - 1]?.find(
17804        ({ type }) => type === format.type
17805      );
17806      if (!!formatAtStart) {
17807        targetFormat = formatAtStart;
17808        initialIndex = startIndex;
17809      } else if (!!formatAtEnd) {
17810        targetFormat = formatAtEnd;
17811        initialIndex = endIndex;
17812      } else if (!!formatAtEndMinusOne) {
17813        targetFormat = formatAtEndMinusOne;
17814        initialIndex = endIndex - 1;
17815      } else {
17816        return EMPTY_BOUNDARIES;
17817      }
17818      const index3 = newFormats[initialIndex].indexOf(targetFormat);
17819      startIndex = walkToStart(newFormats, initialIndex, targetFormat, index3);
17820      endIndex = walkToEnd(newFormats, initialIndex, targetFormat, index3);
17821      startIndex = startIndex < 0 ? 0 : startIndex;
17822      return {
17823        start: startIndex,
17824        end: endIndex + 1
17825      };
17826    }
17827    function walkToBoundary(formats, initialIndex, targetFormatRef, formatIndex, direction) {
17828      let index3 = initialIndex;
17829      const directions = {
17830        forwards: 1,
17831        backwards: -1
17832      };
17833      const directionIncrement = directions[direction] || 1;
17834      const inverseDirectionIncrement = directionIncrement * -1;
17835      while (formats[index3] && formats[index3][formatIndex] === targetFormatRef) {
17836        index3 = index3 + directionIncrement;
17837      }
17838      index3 = index3 + inverseDirectionIncrement;
17839      return index3;
17840    }
17841    var walkToStart = (...args) => walkToBoundary(...args, "backwards");
17842    var walkToEnd = (...args) => walkToBoundary(...args, "forwards");
17843  
17844    // packages/format-library/build-module/link/css-classes-setting.mjs
17845    var import_element49 = __toESM(require_element(), 1);
17846    var import_compose4 = __toESM(require_compose(), 1);
17847    var import_i18n10 = __toESM(require_i18n(), 1);
17848    var import_components2 = __toESM(require_components(), 1);
17849    var import_jsx_runtime88 = __toESM(require_jsx_runtime(), 1);
17850    var CSSClassesSettingComponent = ({
17851      setting,
17852      value,
17853      onChange
17854    }) => {
17855      const hasValue = !!value?.cssClasses?.length;
17856      const [isSettingActive, setIsSettingActive] = (0, import_element49.useState)(hasValue);
17857      const instanceId = (0, import_compose4.useInstanceId)(CSSClassesSettingComponent);
17858      const controlledRegionId = `css-classes-setting-$instanceId}`;
17859      const handleSettingChange = (newValue) => {
17860        const sanitizedValue = typeof newValue === "string" ? newValue.replace(/,/g, " ").replace(/\s+/g, " ").trim() : newValue;
17861        onChange({
17862          ...value,
17863          [setting.id]: sanitizedValue
17864        });
17865      };
17866      const handleCheckboxChange = () => {
17867        if (isSettingActive) {
17868          if (hasValue) {
17869            handleSettingChange("");
17870          }
17871          setIsSettingActive(false);
17872        } else {
17873          setIsSettingActive(true);
17874        }
17875      };
17876      return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("fieldset", { children: [
17877        /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("legend", {}), children: setting.title }),
17878        /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(Stack, { direction: "column", gap: "md", children: [
17879          /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
17880            import_components2.CheckboxControl,
17881            {
17882              label: setting.title,
17883              onChange: handleCheckboxChange,
17884              checked: isSettingActive || hasValue,
17885              "aria-expanded": isSettingActive,
17886              "aria-controls": isSettingActive ? controlledRegionId : void 0
17887            }
17888          ),
17889          isSettingActive && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)("div", { id: controlledRegionId, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(
17890            import_components2.__experimentalInputControl,
17891            {
17892              label: (0, import_i18n10.__)("CSS classes"),
17893              value: value?.cssClasses,
17894              onChange: handleSettingChange,
17895              help: (0, import_i18n10.__)(
17896                "Separate multiple classes with spaces."
17897              ),
17898              __unstableInputWidth: "100%"
17899            }
17900          ) })
17901        ] })
17902      ] });
17903    };
17904    var css_classes_setting_default = CSSClassesSettingComponent;
17905  
17906    // packages/format-library/build-module/link/inline.mjs
17907    var import_jsx_runtime89 = __toESM(require_jsx_runtime(), 1);
17908    var LINK_SETTINGS = [
17909      ...import_block_editor5.LinkControl.DEFAULT_LINK_SETTINGS,
17910      {
17911        id: "nofollow",
17912        title: (0, import_i18n11.__)("Mark as nofollow")
17913      },
17914      {
17915        id: "cssClasses",
17916        title: (0, import_i18n11.__)("Additional CSS class(es)"),
17917        render: (setting, value, onChange) => /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
17918          css_classes_setting_default,
17919          {
17920            setting,
17921            value,
17922            onChange
17923          }
17924        )
17925      }
17926    ];
17927    function InlineLinkUI({
17928      isActive,
17929      activeAttributes,
17930      value,
17931      onChange,
17932      onFocusOutside,
17933      stopAddingLink,
17934      contentRef,
17935      focusOnMount
17936    }) {
17937      const richLinkTextValue = getRichTextValueFromSelection(value, isActive);
17938      const richTextText = richLinkTextValue.text;
17939      const { selectionChange } = (0, import_data.useDispatch)(import_block_editor5.store);
17940      const { createPageEntity, userCanCreatePages, selectionStart } = (0, import_data.useSelect)(
17941        (select) => {
17942          const { getSettings, getSelectionStart } = select(import_block_editor5.store);
17943          const _settings = getSettings();
17944          return {
17945            createPageEntity: _settings.__experimentalCreatePageEntity,
17946            userCanCreatePages: _settings.__experimentalUserCanCreatePages,
17947            selectionStart: getSelectionStart()
17948          };
17949        },
17950        []
17951      );
17952      const linkValue = (0, import_element50.useMemo)(
17953        () => ({
17954          url: activeAttributes.url,
17955          type: activeAttributes.type,
17956          id: activeAttributes.id,
17957          opensInNewTab: activeAttributes.target === "_blank",
17958          nofollow: activeAttributes.rel?.includes("nofollow"),
17959          title: richTextText,
17960          cssClasses: activeAttributes.class
17961        }),
17962        [
17963          activeAttributes.class,
17964          activeAttributes.id,
17965          activeAttributes.rel,
17966          activeAttributes.target,
17967          activeAttributes.type,
17968          activeAttributes.url,
17969          richTextText
17970        ]
17971      );
17972      function removeLink() {
17973        const newValue = (0, import_rich_text5.removeFormat)(value, "core/link");
17974        onChange(newValue);
17975        stopAddingLink();
17976        (0, import_a11y.speak)((0, import_i18n11.__)("Link removed."), "assertive");
17977      }
17978      function onChangeLink(nextValue) {
17979        const hasLink = linkValue?.url;
17980        const isNewLink = !hasLink;
17981        nextValue = {
17982          ...linkValue,
17983          ...nextValue
17984        };
17985        const newUrl = (0, import_url2.prependHTTPS)(nextValue?.url ?? "");
17986        const linkFormat = createLinkFormat({
17987          url: newUrl,
17988          type: nextValue.type,
17989          id: nextValue.id !== void 0 && nextValue.id !== null ? String(nextValue.id) : void 0,
17990          opensInNewWindow: nextValue.opensInNewTab,
17991          nofollow: nextValue.nofollow,
17992          cssClasses: nextValue.cssClasses
17993        });
17994        const newText = nextValue.title || newUrl;
17995        let newValue;
17996        if ((0, import_rich_text5.isCollapsed)(value) && value.start !== void 0 && !isActive) {
17997          const inserted = (0, import_rich_text5.insert)(value, newText);
17998          newValue = (0, import_rich_text5.applyFormat)(
17999            inserted,
18000            linkFormat,
18001            value.start,
18002            value.start + newText.length
18003          );
18004          onChange(newValue);
18005          stopAddingLink();
18006          selectionChange({
18007            clientId: selectionStart.clientId,
18008            identifier: selectionStart.attributeKey,
18009            start: value.start + newText.length + 1
18010          });
18011          return;
18012        } else if (newText === richTextText) {
18013          const boundary = getFormatBoundary(value, {
18014            type: "core/link"
18015          });
18016          newValue = (0, import_rich_text5.applyFormat)(
18017            value,
18018            linkFormat,
18019            boundary.start,
18020            boundary.end
18021          );
18022        } else {
18023          newValue = (0, import_rich_text5.create)({ text: newText });
18024          newValue = (0, import_rich_text5.applyFormat)(newValue, linkFormat, 0, newText.length);
18025          const boundary = getFormatBoundary(value, {
18026            type: "core/link"
18027          });
18028          const splitValue = (0, import_rich_text5.split)(value, boundary.start, boundary.start);
18029          if (!splitValue) {
18030            return;
18031          }
18032          const [valBefore, valAfter] = splitValue;
18033          const newValAfter = (0, import_rich_text5.replace)(valAfter, richTextText, newValue);
18034          newValue = (0, import_rich_text5.concat)(valBefore, newValAfter);
18035        }
18036        onChange(newValue);
18037        if (!isNewLink) {
18038          stopAddingLink();
18039        }
18040        if (!isValidHref(newUrl)) {
18041          (0, import_a11y.speak)(
18042            (0, import_i18n11.__)(
18043              "Warning: the link has been inserted but may have errors. Please test it."
18044            ),
18045            "assertive"
18046          );
18047        } else if (isActive) {
18048          (0, import_a11y.speak)((0, import_i18n11.__)("Link edited."), "assertive");
18049        } else {
18050          (0, import_a11y.speak)((0, import_i18n11.__)("Link inserted."), "assertive");
18051        }
18052      }
18053      const anchorSettings = { ...link, isActive };
18054      const popoverAnchor = (0, import_rich_text5.useAnchor)({
18055        // eslint-disable-next-line react-hooks/refs
18056        editableContentElement: contentRef.current,
18057        settings: anchorSettings
18058      });
18059      async function handleCreate(pageTitle) {
18060        const page = await createPageEntity({
18061          title: pageTitle,
18062          status: "draft"
18063        });
18064        return {
18065          id: page.id,
18066          type: page.type,
18067          title: page.title.rendered,
18068          url: page.link,
18069          kind: "post-type"
18070        };
18071      }
18072      function createButtonText(searchTerm) {
18073        return (0, import_element50.createInterpolateElement)(
18074          (0, import_i18n11.sprintf)(
18075            /* translators: %s: search term. */
18076            (0, import_i18n11.__)("Create page: <mark>%s</mark>"),
18077            searchTerm
18078          ),
18079          { mark: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)("mark", {}) }
18080        );
18081      }
18082      return /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
18083        import_components3.Popover,
18084        {
18085          anchor: popoverAnchor,
18086          animate: false,
18087          onClose: stopAddingLink,
18088          onFocusOutside,
18089          placement: "bottom",
18090          offset: 8,
18091          shift: true,
18092          focusOnMount,
18093          constrainTabbing: true,
18094          children: /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
18095            import_block_editor5.LinkControl,
18096            {
18097              value: linkValue,
18098              onChange: onChangeLink,
18099              onRemove: removeLink,
18100              hasRichPreviews: true,
18101              createSuggestion: createPageEntity && handleCreate,
18102              withCreateSuggestion: userCanCreatePages,
18103              createSuggestionButtonText: createButtonText,
18104              hasTextControl: true,
18105              settings: LINK_SETTINGS,
18106              showInitialSuggestions: true,
18107              suggestionsQuery: {
18108                // always show Pages as initial suggestions
18109                initialSuggestionsSearchOptions: {
18110                  type: "post",
18111                  subtype: "page",
18112                  perPage: 20
18113                }
18114              }
18115            }
18116          )
18117        }
18118      );
18119    }
18120    function getRichTextValueFromSelection(value, isActive) {
18121      let textStart = value.start;
18122      let textEnd = value.end;
18123      if (isActive) {
18124        const boundary = getFormatBoundary(value, {
18125          type: "core/link"
18126        });
18127        textStart = boundary.start ?? value.start;
18128        textEnd = boundary.end ?? value.end;
18129      }
18130      return (0, import_rich_text5.slice)(value, textStart, textEnd);
18131    }
18132    var inline_default = InlineLinkUI;
18133  
18134    // packages/format-library/build-module/link/index.mjs
18135    var import_jsx_runtime90 = __toESM(require_jsx_runtime(), 1);
18136    var name5 = "core/link";
18137    var title5 = (0, import_i18n12.__)("Link");
18138    function Edit2({
18139      isActive,
18140      activeAttributes,
18141      value,
18142      onChange,
18143      onFocus,
18144      contentRef,
18145      isVisible = true
18146    }) {
18147      const [addingLink, setAddingLink] = (0, import_element51.useState)(false);
18148      const [openedBy, setOpenedBy] = (0, import_element51.useState)(null);
18149      (0, import_element51.useEffect)(() => {
18150        if (!isActive) {
18151          setAddingLink(false);
18152        }
18153      }, [isActive]);
18154      (0, import_element51.useLayoutEffect)(() => {
18155        const editableContentElement = contentRef.current;
18156        if (!editableContentElement) {
18157          return;
18158        }
18159        function handleClick(event) {
18160          const link2 = event.target.closest(
18161            "[contenteditable] a"
18162          );
18163          if (!link2 || // other formats (e.g. bold) may be nested within the link.
18164          !isActive) {
18165            return;
18166          }
18167          setAddingLink(true);
18168          setOpenedBy({
18169            el: link2,
18170            action: "click"
18171          });
18172        }
18173        editableContentElement.addEventListener("click", handleClick);
18174        return () => {
18175          editableContentElement.removeEventListener("click", handleClick);
18176        };
18177      }, [contentRef, isActive]);
18178      function addLink(target) {
18179        const text = (0, import_rich_text6.getTextContent)((0, import_rich_text6.slice)(value));
18180        if (!isActive && text && (0, import_url3.isURL)(text) && isValidHref(text)) {
18181          onChange(
18182            (0, import_rich_text6.applyFormat)(value, {
18183              type: name5,
18184              attributes: { url: text }
18185            })
18186          );
18187        } else if (!isActive && text && (0, import_url3.isEmail)(text)) {
18188          onChange(
18189            (0, import_rich_text6.applyFormat)(value, {
18190              type: name5,
18191              attributes: { url: `mailto:$text}` }
18192            })
18193          );
18194        } else if (!isActive && text && (0, import_url3.isPhoneNumber)(text)) {
18195          onChange(
18196            (0, import_rich_text6.applyFormat)(value, {
18197              type: name5,
18198              attributes: { url: `tel:$text.replace(/\D/g, "")}` }
18199            })
18200          );
18201        } else {
18202          if (target) {
18203            setOpenedBy({
18204              el: target,
18205              action: null
18206              // We don't need to distinguish between click or keyboard here
18207            });
18208          }
18209          setAddingLink(true);
18210        }
18211      }
18212      function stopAddingLink() {
18213        setAddingLink(false);
18214        if (openedBy?.el?.tagName === "BUTTON") {
18215          openedBy.el.focus();
18216        } else {
18217          onFocus();
18218        }
18219        setOpenedBy(null);
18220      }
18221      function onFocusOutside() {
18222        setAddingLink(false);
18223        setOpenedBy(null);
18224      }
18225      function onRemoveFormat() {
18226        onChange((0, import_rich_text6.removeFormat)(value, name5));
18227        (0, import_a11y2.speak)((0, import_i18n12.__)("Link removed."), "assertive");
18228      }
18229      const shouldAutoFocus = !(openedBy?.el?.tagName === "A" && openedBy?.action === "click");
18230      const hasSelection = !(0, import_rich_text6.isCollapsed)(value);
18231      return /* @__PURE__ */ (0, import_jsx_runtime90.jsxs)(import_jsx_runtime90.Fragment, { children: [
18232        hasSelection && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
18233          import_block_editor6.RichTextShortcut,
18234          {
18235            type: "primary",
18236            character: "k",
18237            onUse: addLink
18238          }
18239        ),
18240        /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
18241          import_block_editor6.RichTextShortcut,
18242          {
18243            type: "primaryShift",
18244            character: "k",
18245            onUse: onRemoveFormat
18246          }
18247        ),
18248        isVisible && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
18249          import_block_editor6.RichTextToolbarButton,
18250          {
18251            name: "link",
18252            icon: link_default,
18253            title: isActive ? (0, import_i18n12.__)("Link") : title5,
18254            onClick: (event) => {
18255              addLink(event.currentTarget);
18256            },
18257            isActive: isActive || addingLink,
18258            shortcutType: "primary",
18259            shortcutCharacter: "k",
18260            "aria-haspopup": "true",
18261            "aria-expanded": addingLink
18262          }
18263        ),
18264        isVisible && addingLink && /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
18265          inline_default,
18266          {
18267            stopAddingLink,
18268            onFocusOutside,
18269            isActive,
18270            activeAttributes,
18271            value,
18272            onChange,
18273            contentRef,
18274            focusOnMount: shouldAutoFocus ? "firstElement" : false
18275          }
18276        )
18277      ] });
18278    }
18279    var link = {
18280      name: name5,
18281      title: title5,
18282      tagName: "a",
18283      className: null,
18284      attributes: {
18285        url: "href",
18286        type: "data-type",
18287        id: "data-id",
18288        _id: "id",
18289        target: "target",
18290        rel: "rel",
18291        class: "class"
18292      },
18293      __unstablePasteRule(value, { html, plainText }) {
18294        const pastedText = (html || plainText).replace(/<[^>]+>/g, "").trim();
18295        if (!(0, import_url3.isURL)(pastedText) || !/^https?:/.test(pastedText)) {
18296          return value;
18297        }
18298        window.console.log("Created link:\n\n", pastedText);
18299        const format = {
18300          type: name5,
18301          attributes: {
18302            url: (0, import_html_entities.decodeEntities)(pastedText)
18303          }
18304        };
18305        if ((0, import_rich_text6.isCollapsed)(value)) {
18306          return (0, import_rich_text6.insert)(
18307            value,
18308            (0, import_rich_text6.applyFormat)(
18309              (0, import_rich_text6.create)({ text: plainText }),
18310              format,
18311              0,
18312              plainText.length
18313            )
18314          );
18315        }
18316        return (0, import_rich_text6.applyFormat)(value, format);
18317      },
18318      edit: Edit2
18319    };
18320  
18321    // packages/format-library/build-module/strikethrough/index.mjs
18322    var import_i18n13 = __toESM(require_i18n(), 1);
18323    var import_rich_text7 = __toESM(require_rich_text(), 1);
18324    var import_block_editor7 = __toESM(require_block_editor(), 1);
18325    var import_jsx_runtime91 = __toESM(require_jsx_runtime(), 1);
18326    var name6 = "core/strikethrough";
18327    var title6 = (0, import_i18n13.__)("Strikethrough");
18328    var strikethrough = {
18329      name: name6,
18330      title: title6,
18331      tagName: "s",
18332      className: null,
18333      edit({ isActive, value, onChange, onFocus }) {
18334        function onClick() {
18335          onChange((0, import_rich_text7.toggleFormat)(value, { type: name6, title: title6 }));
18336          onFocus();
18337        }
18338        return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_jsx_runtime91.Fragment, { children: [
18339          /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
18340            import_block_editor7.RichTextShortcut,
18341            {
18342              type: "access",
18343              character: "d",
18344              onUse: onClick
18345            }
18346          ),
18347          /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
18348            import_block_editor7.RichTextToolbarButton,
18349            {
18350              icon: format_strikethrough_default,
18351              title: title6,
18352              onClick,
18353              isActive,
18354              role: "menuitemcheckbox"
18355            }
18356          )
18357        ] });
18358      }
18359    };
18360  
18361    // packages/format-library/build-module/underline/index.mjs
18362    var import_i18n14 = __toESM(require_i18n(), 1);
18363    var import_rich_text8 = __toESM(require_rich_text(), 1);
18364    var import_block_editor8 = __toESM(require_block_editor(), 1);
18365    var import_jsx_runtime92 = __toESM(require_jsx_runtime(), 1);
18366    var name7 = "core/underline";
18367    var title7 = (0, import_i18n14.__)("Underline");
18368    var underline = {
18369      name: name7,
18370      title: title7,
18371      tagName: "span",
18372      className: null,
18373      attributes: {
18374        style: "style"
18375      },
18376      edit({ value, onChange }) {
18377        const onToggle = () => {
18378          onChange(
18379            (0, import_rich_text8.toggleFormat)(value, {
18380              type: name7,
18381              attributes: {
18382                style: "text-decoration: underline;"
18383              },
18384              title: title7
18385            })
18386          );
18387        };
18388        return /* @__PURE__ */ (0, import_jsx_runtime92.jsxs)(import_jsx_runtime92.Fragment, { children: [
18389          /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
18390            import_block_editor8.RichTextShortcut,
18391            {
18392              type: "primary",
18393              character: "u",
18394              onUse: onToggle
18395            }
18396          ),
18397          /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(
18398            import_block_editor8.__unstableRichTextInputEvent,
18399            {
18400              inputType: "formatUnderline",
18401              onInput: onToggle
18402            }
18403          )
18404        ] });
18405      }
18406    };
18407  
18408    // packages/format-library/build-module/text-color/index.mjs
18409    var import_i18n16 = __toESM(require_i18n(), 1);
18410    var import_element53 = __toESM(require_element(), 1);
18411    var import_block_editor10 = __toESM(require_block_editor(), 1);
18412    var import_rich_text10 = __toESM(require_rich_text(), 1);
18413  
18414    // packages/format-library/build-module/text-color/inline.mjs
18415    var import_element52 = __toESM(require_element(), 1);
18416    var import_data2 = __toESM(require_data(), 1);
18417    var import_rich_text9 = __toESM(require_rich_text(), 1);
18418    var import_block_editor9 = __toESM(require_block_editor(), 1);
18419    var import_components4 = __toESM(require_components(), 1);
18420    var import_i18n15 = __toESM(require_i18n(), 1);
18421    var import_jsx_runtime93 = __toESM(require_jsx_runtime(), 1);
18422    var TABS = [
18423      { name: "color", title: (0, import_i18n15.__)("Text") },
18424      { name: "backgroundColor", title: (0, import_i18n15.__)("Background") }
18425    ];
18426    function parseCSS(css = "") {
18427      return css.split(";").reduce(
18428        (accumulator, rule) => {
18429          if (rule) {
18430            const [property, value] = rule.split(":");
18431            if (property === "color") {
18432              accumulator.color = value;
18433            }
18434            if (property === "background-color" && value !== transparentValue) {
18435              accumulator.backgroundColor = value;
18436            }
18437          }
18438          return accumulator;
18439        },
18440        {}
18441      );
18442    }
18443    function parseClassName(className = "", colorSettings) {
18444      return className.split(" ").reduce((accumulator, name16) => {
18445        if (name16.startsWith("has-") && name16.endsWith("-color")) {
18446          const colorSlug = name16.replace(/^has-/, "").replace(/-color$/, "");
18447          const colorObject = (0, import_block_editor9.getColorObjectByAttributeValues)(
18448            colorSettings,
18449            colorSlug
18450          );
18451          accumulator.color = colorObject.color;
18452        }
18453        return accumulator;
18454      }, {});
18455    }
18456    function getActiveColors(value, name16, colorSettings) {
18457      const activeColorFormat = (0, import_rich_text9.getActiveFormat)(value, name16);
18458      if (!activeColorFormat) {
18459        return {};
18460      }
18461      return {
18462        ...parseCSS(activeColorFormat.attributes?.style),
18463        ...parseClassName(activeColorFormat.attributes?.class, colorSettings)
18464      };
18465    }
18466    function setColors(value, name16, colorSettings, colors) {
18467      const { color, backgroundColor } = {
18468        ...getActiveColors(value, name16, colorSettings),
18469        ...colors
18470      };
18471      if (!color && !backgroundColor) {
18472        return (0, import_rich_text9.removeFormat)(value, name16);
18473      }
18474      const styles = [];
18475      const classNames = [];
18476      const attributes = {};
18477      if (backgroundColor) {
18478        styles.push(["background-color", backgroundColor].join(":"));
18479      } else {
18480        styles.push(["background-color", transparentValue].join(":"));
18481      }
18482      if (color) {
18483        const colorObject = (0, import_block_editor9.getColorObjectByColorValue)(colorSettings, color);
18484        if (colorObject && colorObject.slug) {
18485          const colorClassName = (0, import_block_editor9.getColorClassName)(
18486            "color",
18487            colorObject.slug
18488          );
18489          if (colorClassName) {
18490            classNames.push(colorClassName);
18491          }
18492        } else {
18493          styles.push(["color", color].join(":"));
18494        }
18495      }
18496      if (styles.length) {
18497        attributes.style = styles.join(";");
18498      }
18499      if (classNames.length) {
18500        attributes.class = classNames.join(" ");
18501      }
18502      return (0, import_rich_text9.applyFormat)(value, { type: name16, attributes });
18503    }
18504    function ColorPicker({ name: name16, property, value, onChange }) {
18505      const colors = (0, import_data2.useSelect)((select) => {
18506        const { getSettings } = select(import_block_editor9.store);
18507        return getSettings().colors ?? [];
18508      }, []);
18509      const activeColors = (0, import_element52.useMemo)(
18510        () => getActiveColors(value, name16, colors),
18511        [name16, value, colors]
18512      );
18513      return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
18514        import_block_editor9.ColorPalette,
18515        {
18516          value: activeColors[property],
18517          onChange: (color) => {
18518            onChange(
18519              setColors(value, name16, colors, { [property]: color })
18520            );
18521          },
18522          enableAlpha: true,
18523          __experimentalIsRenderedInSidebar: true
18524        }
18525      );
18526    }
18527    function InlineColorUI({
18528      name: name16,
18529      value,
18530      onChange,
18531      onClose,
18532      contentRef,
18533      isActive
18534    }) {
18535      const anchorSettings = { ...textColor, isActive };
18536      const popoverAnchor = (0, import_rich_text9.useAnchor)({
18537        // eslint-disable-next-line react-hooks/refs
18538        editableContentElement: contentRef.current,
18539        settings: anchorSettings
18540      });
18541      return /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
18542        import_components4.Popover,
18543        {
18544          onClose,
18545          className: "format-library__inline-color-popover",
18546          anchor: popoverAnchor,
18547          children: /* @__PURE__ */ (0, import_jsx_runtime93.jsxs)(tabs_exports.Root, { defaultValue: TABS[0].name, children: [
18548            /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(tabs_exports.List, { children: TABS.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(tabs_exports.Tab, { value: tab.name, children: tab.title }, tab.name)) }),
18549            TABS.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
18550              tabs_exports.Panel,
18551              {
18552                value: tab.name,
18553                tabIndex: -1,
18554                children: /* @__PURE__ */ (0, import_jsx_runtime93.jsx)(
18555                  ColorPicker,
18556                  {
18557                    name: name16,
18558                    property: tab.name,
18559                    value,
18560                    onChange
18561                  }
18562                )
18563              },
18564              tab.name
18565            ))
18566          ] })
18567        }
18568      );
18569    }
18570  
18571    // packages/format-library/build-module/text-color/index.mjs
18572    var import_jsx_runtime94 = __toESM(require_jsx_runtime(), 1);
18573    var transparentValue = "rgba(0, 0, 0, 0)";
18574    var name8 = "core/text-color";
18575    var title8 = (0, import_i18n16.__)("Highlight");
18576    var EMPTY_ARRAY2 = [];
18577    function getComputedStyleProperty(element, property) {
18578      const { ownerDocument: ownerDocument2 } = element;
18579      const { defaultView } = ownerDocument2;
18580      const style = defaultView?.getComputedStyle(element);
18581      const value = style?.getPropertyValue(property);
18582      if (property === "background-color" && value === transparentValue && element.parentElement) {
18583        return getComputedStyleProperty(element.parentElement, property);
18584      }
18585      return value;
18586    }
18587    function fillComputedColors(element, { color, backgroundColor }) {
18588      if (!element || !color && !backgroundColor) {
18589        return;
18590      }
18591      return {
18592        color: color || getComputedStyleProperty(element, "color"),
18593        backgroundColor: backgroundColor === transparentValue ? getComputedStyleProperty(element, "background-color") : backgroundColor
18594      };
18595    }
18596    function TextColorEdit({
18597      value,
18598      onChange,
18599      isActive,
18600      activeAttributes,
18601      contentRef
18602    }) {
18603      const [allowCustomControl, colors = EMPTY_ARRAY2] = (0, import_block_editor10.useSettings)(
18604        "color.custom",
18605        "color.palette"
18606      );
18607      const [isAddingColor, setIsAddingColor] = (0, import_element53.useState)(false);
18608      const colorIndicatorStyle = (0, import_element53.useMemo)(
18609        () => fillComputedColors(
18610          contentRef.current,
18611          getActiveColors(value, name8, colors)
18612        ),
18613        [contentRef, value, colors]
18614      );
18615      const hasColorsToChoose = !!colors.length || allowCustomControl;
18616      if (!hasColorsToChoose && !isActive) {
18617        return null;
18618      }
18619      return /* @__PURE__ */ (0, import_jsx_runtime94.jsxs)(import_jsx_runtime94.Fragment, { children: [
18620        /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
18621          import_block_editor10.RichTextToolbarButton,
18622          {
18623            className: "format-library-text-color-button",
18624            isActive,
18625            icon: /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
18626              icon_default,
18627              {
18628                icon: Object.keys(activeAttributes).length ? text_color_default : color_default,
18629                style: colorIndicatorStyle
18630              }
18631            ),
18632            title: title8,
18633            onClick: hasColorsToChoose ? () => setIsAddingColor(true) : () => onChange((0, import_rich_text10.removeFormat)(value, name8)),
18634            role: "menuitemcheckbox"
18635          }
18636        ),
18637        isAddingColor && /* @__PURE__ */ (0, import_jsx_runtime94.jsx)(
18638          InlineColorUI,
18639          {
18640            name: name8,
18641            onClose: () => setIsAddingColor(false),
18642            value,
18643            onChange,
18644            contentRef,
18645            isActive
18646          }
18647        )
18648      ] });
18649    }
18650    var textColor = {
18651      name: name8,
18652      title: title8,
18653      tagName: "mark",
18654      className: "has-inline-color",
18655      attributes: {
18656        style: "style",
18657        class: "class"
18658      },
18659      edit: TextColorEdit
18660    };
18661  
18662    // packages/format-library/build-module/subscript/index.mjs
18663    var import_i18n17 = __toESM(require_i18n(), 1);
18664    var import_rich_text11 = __toESM(require_rich_text(), 1);
18665    var import_block_editor11 = __toESM(require_block_editor(), 1);
18666    var import_jsx_runtime95 = __toESM(require_jsx_runtime(), 1);
18667    var name9 = "core/subscript";
18668    var title9 = (0, import_i18n17.__)("Subscript");
18669    var subscript = {
18670      name: name9,
18671      title: title9,
18672      tagName: "sub",
18673      className: null,
18674      edit({ isActive, value, onChange, onFocus }) {
18675        function onToggle() {
18676          onChange((0, import_rich_text11.toggleFormat)(value, { type: name9, title: title9 }));
18677        }
18678        function onClick() {
18679          onToggle();
18680          onFocus();
18681        }
18682        return /* @__PURE__ */ (0, import_jsx_runtime95.jsx)(
18683          import_block_editor11.RichTextToolbarButton,
18684          {
18685            icon: subscript_default,
18686            title: title9,
18687            onClick,
18688            isActive,
18689            role: "menuitemcheckbox"
18690          }
18691        );
18692      }
18693    };
18694  
18695    // packages/format-library/build-module/superscript/index.mjs
18696    var import_i18n18 = __toESM(require_i18n(), 1);
18697    var import_rich_text12 = __toESM(require_rich_text(), 1);
18698    var import_block_editor12 = __toESM(require_block_editor(), 1);
18699    var import_jsx_runtime96 = __toESM(require_jsx_runtime(), 1);
18700    var name10 = "core/superscript";
18701    var title10 = (0, import_i18n18.__)("Superscript");
18702    var superscript = {
18703      name: name10,
18704      title: title10,
18705      tagName: "sup",
18706      className: null,
18707      edit({ isActive, value, onChange, onFocus }) {
18708        function onToggle() {
18709          onChange((0, import_rich_text12.toggleFormat)(value, { type: name10, title: title10 }));
18710        }
18711        function onClick() {
18712          onToggle();
18713          onFocus();
18714        }
18715        return /* @__PURE__ */ (0, import_jsx_runtime96.jsx)(
18716          import_block_editor12.RichTextToolbarButton,
18717          {
18718            icon: superscript_default,
18719            title: title10,
18720            onClick,
18721            isActive,
18722            role: "menuitemcheckbox"
18723          }
18724        );
18725      }
18726    };
18727  
18728    // packages/format-library/build-module/keyboard/index.mjs
18729    var import_i18n19 = __toESM(require_i18n(), 1);
18730    var import_rich_text13 = __toESM(require_rich_text(), 1);
18731    var import_block_editor13 = __toESM(require_block_editor(), 1);
18732    var import_jsx_runtime97 = __toESM(require_jsx_runtime(), 1);
18733    var name11 = "core/keyboard";
18734    var title11 = (0, import_i18n19.__)("Keyboard input");
18735    var keyboard2 = {
18736      name: name11,
18737      title: title11,
18738      tagName: "kbd",
18739      className: null,
18740      edit({ isActive, value, onChange, onFocus }) {
18741        function onToggle() {
18742          onChange((0, import_rich_text13.toggleFormat)(value, { type: name11, title: title11 }));
18743        }
18744        function onClick() {
18745          onToggle();
18746          onFocus();
18747        }
18748        return /* @__PURE__ */ (0, import_jsx_runtime97.jsx)(
18749          import_block_editor13.RichTextToolbarButton,
18750          {
18751            icon: button_default,
18752            title: title11,
18753            onClick,
18754            isActive,
18755            role: "menuitemcheckbox"
18756          }
18757        );
18758      }
18759    };
18760  
18761    // packages/format-library/build-module/unknown/index.mjs
18762    var import_i18n20 = __toESM(require_i18n(), 1);
18763    var import_rich_text14 = __toESM(require_rich_text(), 1);
18764    var import_block_editor14 = __toESM(require_block_editor(), 1);
18765    var import_jsx_runtime98 = __toESM(require_jsx_runtime(), 1);
18766    var name12 = "core/unknown";
18767    var title12 = (0, import_i18n20.__)("Clear Unknown Formatting");
18768    function selectionContainsUnknownFormats(value) {
18769      if ((0, import_rich_text14.isCollapsed)(value)) {
18770        return false;
18771      }
18772      const selectedValue = (0, import_rich_text14.slice)(value);
18773      return selectedValue.formats.some((formats) => {
18774        return formats.some((format) => format.type === name12);
18775      });
18776    }
18777    var unknown = {
18778      name: name12,
18779      title: title12,
18780      tagName: "*",
18781      className: null,
18782      edit({ isActive, value, onChange, onFocus }) {
18783        if (!isActive && !selectionContainsUnknownFormats(value)) {
18784          return null;
18785        }
18786        function onClick() {
18787          onChange((0, import_rich_text14.removeFormat)(value, name12));
18788          onFocus();
18789        }
18790        return /* @__PURE__ */ (0, import_jsx_runtime98.jsx)(
18791          import_block_editor14.RichTextToolbarButton,
18792          {
18793            name: "unknown",
18794            icon: help_default,
18795            title: title12,
18796            onClick,
18797            isActive: true
18798          }
18799        );
18800      }
18801    };
18802  
18803    // packages/format-library/build-module/language/index.mjs
18804    var import_i18n21 = __toESM(require_i18n(), 1);
18805    var import_block_editor15 = __toESM(require_block_editor(), 1);
18806    var import_components5 = __toESM(require_components(), 1);
18807    var import_element54 = __toESM(require_element(), 1);
18808    var import_rich_text15 = __toESM(require_rich_text(), 1);
18809    var import_jsx_runtime99 = __toESM(require_jsx_runtime(), 1);
18810    var name13 = "core/language";
18811    var title13 = (0, import_i18n21.__)("Language");
18812    var language = {
18813      name: name13,
18814      title: title13,
18815      tagName: "bdo",
18816      className: null,
18817      attributes: {
18818        lang: "lang",
18819        dir: "dir"
18820      },
18821      edit: Edit3
18822    };
18823    function Edit3({ isActive, value, onChange, contentRef }) {
18824      const [isPopoverVisible, setIsPopoverVisible] = (0, import_element54.useState)(false);
18825      const togglePopover = () => {
18826        setIsPopoverVisible((state) => !state);
18827      };
18828      return /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(import_jsx_runtime99.Fragment, { children: [
18829        /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18830          import_block_editor15.RichTextToolbarButton,
18831          {
18832            icon: language_default,
18833            label: title13,
18834            title: title13,
18835            onClick: () => {
18836              if (isActive) {
18837                onChange((0, import_rich_text15.removeFormat)(value, name13));
18838              } else {
18839                togglePopover();
18840              }
18841            },
18842            isActive,
18843            role: "menuitemcheckbox"
18844          }
18845        ),
18846        isPopoverVisible && /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18847          InlineLanguageUI,
18848          {
18849            value,
18850            onChange,
18851            onClose: togglePopover,
18852            contentRef
18853          }
18854        )
18855      ] });
18856    }
18857    function InlineLanguageUI({
18858      value,
18859      contentRef,
18860      onChange,
18861      onClose
18862    }) {
18863      const popoverAnchor = (0, import_rich_text15.useAnchor)({
18864        // eslint-disable-next-line react-hooks/refs
18865        editableContentElement: contentRef.current,
18866        settings: language
18867      });
18868      const [lang, setLang] = (0, import_element54.useState)("");
18869      const [dir, setDir] = (0, import_element54.useState)("ltr");
18870      const directionItems = [
18871        { label: (0, import_i18n21.__)("Left to right"), value: "ltr" },
18872        { label: (0, import_i18n21.__)("Right to left"), value: "rtl" }
18873      ];
18874      return /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18875        import_components5.Popover,
18876        {
18877          className: "block-editor-format-toolbar__language-popover",
18878          anchor: popoverAnchor,
18879          onClose,
18880          children: /* @__PURE__ */ (0, import_jsx_runtime99.jsxs)(
18881            Stack,
18882            {
18883              render: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)("form", {}),
18884              direction: "column",
18885              gap: "lg",
18886              className: "block-editor-format-toolbar__language-container-content",
18887              onSubmit: (event) => {
18888                event.preventDefault();
18889                onChange(
18890                  (0, import_rich_text15.applyFormat)(value, {
18891                    type: name13,
18892                    attributes: {
18893                      lang,
18894                      dir
18895                    }
18896                  })
18897                );
18898                onClose();
18899              },
18900              children: [
18901                /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18902                  import_components5.TextControl,
18903                  {
18904                    label: title13,
18905                    value: lang,
18906                    onChange: (val) => setLang(val),
18907                    help: (0, import_i18n21.__)(
18908                      'A valid language attribute, like "en" or "fr".'
18909                    )
18910                  }
18911                ),
18912                /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18913                  SelectControl2,
18914                  {
18915                    label: (0, import_i18n21.__)("Text direction"),
18916                    value: directionItems.find((item) => item.value === dir) ?? null,
18917                    items: directionItems,
18918                    onValueChange: (item) => {
18919                      if (item?.value === "ltr" || item?.value === "rtl") {
18920                        setDir(item.value);
18921                      }
18922                    }
18923                  }
18924                ),
18925                /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(Stack, { justify: "right", children: /* @__PURE__ */ (0, import_jsx_runtime99.jsx)(
18926                  import_components5.Button,
18927                  {
18928                    __next40pxDefaultSize: true,
18929                    variant: "primary",
18930                    type: "submit",
18931                    text: (0, import_i18n21.__)("Apply")
18932                  }
18933                ) })
18934              ]
18935            }
18936          )
18937        }
18938      );
18939    }
18940  
18941    // packages/format-library/build-module/math/index.mjs
18942    var import_i18n22 = __toESM(require_i18n(), 1);
18943    var import_element55 = __toESM(require_element(), 1);
18944    var import_rich_text16 = __toESM(require_rich_text(), 1);
18945    var import_block_editor16 = __toESM(require_block_editor(), 1);
18946    var import_components6 = __toESM(require_components(), 1);
18947    var import_jsx_runtime100 = __toESM(require_jsx_runtime(), 1);
18948    var name14 = "core/math";
18949    var title14 = (0, import_i18n22.__)("Math");
18950    function InlineUI2({
18951      value,
18952      onChange,
18953      activeObjectAttributes,
18954      contentRef,
18955      latexToMathML
18956    }) {
18957      const [latex, setLatex] = (0, import_element55.useState)(
18958        activeObjectAttributes["data-latex"] || ""
18959      );
18960      const [error2, setError] = (0, import_element55.useState)(null);
18961      const popoverAnchor = (0, import_rich_text16.useAnchor)({
18962        // eslint-disable-next-line react-hooks/refs
18963        editableContentElement: contentRef.current,
18964        settings: math
18965      });
18966      const handleLatexChange = (newLatex) => {
18967        setLatex(newLatex);
18968        let mathML = "";
18969        if (newLatex && latexToMathML) {
18970          try {
18971            mathML = latexToMathML(newLatex, { displayMode: false });
18972            setError(null);
18973          } catch (err) {
18974            setError(
18975              err instanceof Error ? err.message : (0, import_i18n22.__)("Could not parse the LaTeX math syntax.")
18976            );
18977          }
18978        } else {
18979          setError(null);
18980        }
18981        if (value.start === void 0) {
18982          return;
18983        }
18984        const newReplacements = value.replacements.slice();
18985        newReplacements[value.start] = {
18986          type: name14,
18987          attributes: {
18988            "data-latex": newLatex
18989          },
18990          innerHTML: mathML
18991        };
18992        onChange({
18993          ...value,
18994          replacements: newReplacements
18995        });
18996      };
18997      return /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
18998        import_components6.Popover,
18999        {
19000          placement: "bottom-start",
19001          offset: 8,
19002          focusOnMount: false,
19003          anchor: popoverAnchor,
19004          className: "block-editor-format-toolbar__math-popover",
19005          children: /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(
19006            "form",
19007            {
19008              style: { minWidth: "300px", padding: "16px" },
19009              onSubmit: (event) => event.preventDefault(),
19010              children: [
19011                /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19012                  ValidatedInputControl,
19013                  {
19014                    label: (0, import_i18n22.__)("LaTeX math syntax"),
19015                    value: latex,
19016                    customValidity: error2 ? { type: "invalid", message: error2 } : void 0,
19017                    onValueChange: handleLatexChange,
19018                    placeholder: (0, import_i18n22.__)("e.g., x^2, \\frac{a}{b}, \\sqrt{x}"),
19019                    autoComplete: "off",
19020                    className: "block-editor-format-toolbar__math-input"
19021                  }
19022                ),
19023                /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19024                  Link,
19025                  {
19026                    openInNewTab: true,
19027                    className: "block-editor-format-toolbar__math-learn-more",
19028                    href: (0, import_i18n22.__)(
19029                      "https://wordpress.org/documentation/article/math-block/"
19030                    ),
19031                    children: (0, import_i18n22.__)("Learn more about LaTeX syntax")
19032                  }
19033                )
19034              ]
19035            }
19036          )
19037        }
19038      );
19039    }
19040    function Edit4({
19041      value,
19042      onChange,
19043      onFocus,
19044      isObjectActive,
19045      activeObjectAttributes,
19046      contentRef
19047    }) {
19048      const [latexToMathML, setLatexToMathML] = (0, import_element55.useState)();
19049      (0, import_element55.useEffect)(() => {
19050        import("@wordpress/latex-to-mathml").then((module) => {
19051          setLatexToMathML(() => module.default);
19052        });
19053      }, []);
19054      function onClick() {
19055        let newValue;
19056        if (isObjectActive) {
19057          const latex = activeObjectAttributes["data-latex"] || "";
19058          newValue = (0, import_rich_text16.insert)(value, latex);
19059          newValue.start = newValue.end - latex.length;
19060        } else {
19061          const selectedText = (0, import_rich_text16.getTextContent)((0, import_rich_text16.slice)(value));
19062          let innerHTML = "";
19063          if (selectedText && latexToMathML) {
19064            try {
19065              innerHTML = latexToMathML(selectedText, {
19066                displayMode: false
19067              });
19068            } catch {
19069            }
19070          }
19071          newValue = (0, import_rich_text16.insertObject)(value, {
19072            type: name14,
19073            attributes: { "data-latex": selectedText },
19074            innerHTML
19075          });
19076          newValue.start = newValue.end - 1;
19077        }
19078        onChange(newValue);
19079        onFocus();
19080      }
19081      return /* @__PURE__ */ (0, import_jsx_runtime100.jsxs)(import_jsx_runtime100.Fragment, { children: [
19082        /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19083          import_block_editor16.RichTextToolbarButton,
19084          {
19085            icon: math_default,
19086            title: title14,
19087            onClick,
19088            isActive: isObjectActive
19089          }
19090        ),
19091        isObjectActive && /* @__PURE__ */ (0, import_jsx_runtime100.jsx)(
19092          InlineUI2,
19093          {
19094            value,
19095            onChange,
19096            activeObjectAttributes,
19097            contentRef,
19098            latexToMathML
19099          }
19100        )
19101      ] });
19102    }
19103    var math = {
19104      name: name14,
19105      title: title14,
19106      tagName: "math",
19107      className: null,
19108      attributes: {
19109        "data-latex": "data-latex"
19110      },
19111      contentEditable: false,
19112      edit: Edit4
19113    };
19114  
19115    // packages/format-library/build-module/non-breaking-space/index.mjs
19116    var import_i18n23 = __toESM(require_i18n(), 1);
19117    var import_rich_text17 = __toESM(require_rich_text(), 1);
19118    var import_block_editor17 = __toESM(require_block_editor(), 1);
19119    var import_components7 = __toESM(require_components(), 1);
19120    var import_jsx_runtime101 = __toESM(require_jsx_runtime(), 1);
19121    var name15 = "core/non-breaking-space";
19122    var title15 = (0, import_i18n23.__)("Non breaking space");
19123    var NBSP = "\xA0";
19124    var icon = /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_components7.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_components7.Path, { d: "M4.5 9.5H6V14h12V9.5h1.5v6h-15z" }) });
19125    function getNonBreakingSpaceRange({ text, start, end }) {
19126      if (start === void 0 || end === void 0) {
19127        return null;
19128      }
19129      const from = start === end ? Math.max(start - 1, 0) : start;
19130      const to = start === end ? end + 1 : end;
19131      return text.slice(from, to).includes(NBSP) ? [from, to] : null;
19132    }
19133    function PopoverAnchor({
19134      contentRef
19135    }) {
19136      const popoverAnchor = (0, import_rich_text17.useAnchor)({
19137        // eslint-disable-next-line react-hooks/refs
19138        editableContentElement: contentRef.current,
19139        settings: nonBreakingSpace
19140      });
19141      return /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(import_components7.Popover, { anchor: popoverAnchor, children: /* @__PURE__ */ (0, import_jsx_runtime101.jsx)("div", { style: { whiteSpace: "nowrap", padding: "4px" }, children: (0, import_i18n23.__)("Non-breaking space") }) });
19142    }
19143    var nonBreakingSpace = {
19144      name: name15,
19145      title: title15,
19146      tagName: "span",
19147      className: "non-breaking-space",
19148      edit({ value, onChange, onFocus, contentRef }) {
19149        function addNonBreakingSpace() {
19150          onChange((0, import_rich_text17.insert)(value, NBSP));
19151        }
19152        const range = getNonBreakingSpaceRange(value);
19153        const rangeText = range ? value.text.slice(range[0], range[1]) : "";
19154        const nonBreakingSpaceCount = rangeText.split(NBSP).length - 1;
19155        function replaceNonBreakingSpaces() {
19156          if (!range) {
19157            return;
19158          }
19159          const [from, to] = range;
19160          const { text } = value;
19161          let newValue = {
19162            ...value,
19163            text: text.slice(0, from) + text.slice(from, to).replaceAll(NBSP, " ") + text.slice(to)
19164          };
19165          for (let index3 = to - 1; index3 >= from; index3--) {
19166            const isCollapsed4 = [
19167              newValue.text[index3 - 1],
19168              newValue.text[index3 + 1]
19169            ].some(
19170              (character) => [void 0, " ", "\n"].includes(character)
19171            );
19172            if (text[index3] === NBSP && isCollapsed4) {
19173              newValue = (0, import_rich_text17.remove)(newValue, index3, index3 + 1);
19174            }
19175          }
19176          onChange(newValue);
19177          onFocus();
19178        }
19179        const selectedValue = value.start && value.end ? value.text.slice(value.start, value.end) : null;
19180        return /* @__PURE__ */ (0, import_jsx_runtime101.jsxs)(import_jsx_runtime101.Fragment, { children: [
19181          /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
19182            import_block_editor17.RichTextShortcut,
19183            {
19184              type: "primaryShift",
19185              character: " ",
19186              onUse: addNonBreakingSpace
19187            }
19188          ),
19189          range && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(
19190            import_block_editor17.RichTextToolbarButton,
19191            {
19192              name: "non-breaking-space",
19193              icon,
19194              title: nonBreakingSpaceCount === 1 ? (0, import_i18n23.__)("Replace non-breaking space") : (0, import_i18n23.__)("Replace non-breaking spaces"),
19195              onClick: replaceNonBreakingSpaces,
19196              isActive: true
19197            }
19198          ),
19199          selectedValue === NBSP && /* @__PURE__ */ (0, import_jsx_runtime101.jsx)(PopoverAnchor, { contentRef })
19200        ] });
19201      },
19202      __experimentalCreatePrepareEditableTree() {
19203        return (formats, text) => {
19204          let record = { formats, text };
19205          let index3 = -1;
19206          do {
19207            index3 = text.indexOf(NBSP, index3 + 1);
19208            if (index3 !== -1) {
19209              record = (0, import_rich_text17.applyFormat)(
19210                record,
19211                { type: name15 },
19212                index3,
19213                index3 + 1
19214              );
19215            }
19216          } while (index3 !== -1);
19217          return record.formats;
19218        };
19219      }
19220    };
19221  
19222    // packages/format-library/build-module/default-formats.mjs
19223    var default_formats_default = [
19224      bold,
19225      code,
19226      image,
19227      italic,
19228      link,
19229      strikethrough,
19230      underline,
19231      textColor,
19232      subscript,
19233      superscript,
19234      keyboard2,
19235      unknown,
19236      language,
19237      math,
19238      nonBreakingSpace
19239    ];
19240  
19241    // packages/format-library/build-module/index.mjs
19242    default_formats_default.forEach(
19243      ({ name: name16, ...settings }) => (0, import_rich_text18.registerFormatType)(name16, settings)
19244    );
19245  })();
19246  /*! Bundled license information:
19247  
19248  use-sync-external-store/cjs/use-sync-external-store-shim.development.js:
19249    (**
19250     * @license React
19251     * use-sync-external-store-shim.development.js
19252     *
19253     * Copyright (c) Meta Platforms, Inc. and affiliates.
19254     *
19255     * This source code is licensed under the MIT license found in the
19256     * LICENSE file in the root directory of this source tree.
19257     *)
19258  
19259  use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js:
19260    (**
19261     * @license React
19262     * use-sync-external-store-shim/with-selector.development.js
19263     *
19264     * Copyright (c) Meta Platforms, Inc. and affiliates.
19265     *
19266     * This source code is licensed under the MIT license found in the
19267     * LICENSE file in the root directory of this source tree.
19268     *)
19269  */
19270  (window.wp ||= {}).formatLibrary = wp.formatLibrary;
19271  })();


Generated : Sun Nov 15 08:20:01 2026 Cross-referenced by PHPXref