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AAC,EAAM,KACb,MAAM,GAAE,EAAI,UAAW,GAAc,EACrC,IAAK,EACH,MAAM,IAAI,MACR,0BAA0B,oEAG9B,OAAuB,EAAI,oBAAoB,KAAK,EAAW,IAAK,GAAO,MAG5E,KAKH,EACA,GAEI,EAAO,IAAI,MAAM,EAAS,GAOhC,OANI,SACF,OAAO,6BAA+B,EACtC,OAAO,sBAAwB,GAEjC,EAAK,YAAc,EACnB,EAAQ,wBAA0B,SAAY,EAAK,YAC5C,CACT,CACA,SAAS,WAAW,EAAc,EAAa,EAAmB,GAChE,MAAM,GAAsB,EAAI,oBAAoB,gBAAgB,GAC9D,EAAY,EAAoB,YAAY,SAAS,WACrD,UAAE,EAAS,MAAE,GAAU,eAAe,CAC1C,aAAc,EACd,UACA,cAEF,EAAa,SAAS,iBAAiB,CACrC,SAAU,MAAO,GAAe,EAAU,KAE5C,EAAa,SAAS,+BAA+B,CACnD,sBAAuB,sBAAsB,EAAc,KAE7D,EAAa,YAAc,EAC3B,EAAa,SAAS,sBAAsB,MAAK,KAC/C,EAAa,6BAA6B,MAAK,IAAM,EAAa,kBAAiB,GAEvF","file":"/npm/@storybook/react-native@10.1.11/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@storybook/react-native@10.1.11/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var __create = Object.create;\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __getProtoOf = Object.getPrototypeOf;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n  for (var name in all)\n    __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n  if (from && typeof from === \"object\" || typeof from === \"function\") {\n    for (let key of __getOwnPropNames(from))\n      if (!__hasOwnProp.call(to, key) && key !== except)\n        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n  }\n  return to;\n};\nvar __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(\n  // If the importer is in node compatibility mode or this is not an ESM\n  // file that has been converted to a CommonJS file using a Babel-\n  // compatible transform (i.e. \"__esModule\" has not been set), then set\n  // \"default\" to the CommonJS \"module.exports\" for node compatibility.\n  isNodeMode || !mod || !mod.__esModule ? __defProp(target, \"default\", { value: mod, enumerable: true }) : target,\n  mod\n));\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar index_exports = {};\n__export(index_exports, {\n  darkTheme: () => import_react_native_theming3.darkTheme,\n  getProjectAnnotations: () => getProjectAnnotations,\n  prepareStories: () => prepareStories,\n  start: () => start,\n  theme: () => import_react_native_theming3.theme,\n  updateView: () => updateView\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_react_native_theming3 = require(\"@storybook/react-native-theming\");\n\n// ../../node_modules/react-native-web/dist/exports/Platform/index.js\nvar Platform = {\n  OS: \"web\",\n  select: (obj) => \"web\" in obj ? obj.web : obj.default,\n  get isTesting() {\n    if (process.env.NODE_ENV === \"test\") {\n      return true;\n    }\n    return false;\n  }\n};\nvar Platform_default = Platform;\n\n// src/polyfill.ts\nif (Platform_default.OS !== \"web\") {\n  try {\n    let params = new URLSearchParams({ test: \"1\" });\n    params.get(\"test\");\n  } catch {\n    const { setupURLPolyfill } = require(\"react-native-url-polyfill\");\n    setupURLPolyfill();\n  }\n}\n\n// src/Start.tsx\nvar import_react_native4 = require(\"react-native\");\nvar import_manager_api2 = require(\"storybook/manager-api\");\nvar import_preview_api2 = require(\"storybook/internal/preview-api\");\nvar import_csf2 = require(\"storybook/internal/csf\");\nvar import_channels2 = require(\"storybook/internal/channels\");\n\n// src/View.tsx\nvar import_csf = require(\"storybook/internal/csf\");\nvar import_react_native_theming2 = require(\"@storybook/react-native-theming\");\nvar import_react_native_ui_common = require(\"@storybook/react-native-ui-common\");\nvar import_channels = require(\"storybook/internal/channels\");\nvar import_core_events = require(\"storybook/internal/core-events\");\nvar import_manager_api = require(\"storybook/manager-api\");\nvar import_preview_api = require(\"storybook/internal/preview-api\");\nvar import_dedent = __toESM(require(\"dedent\"));\nvar import_deepmerge = __toESM(require(\"deepmerge\"));\nvar import_react4 = require(\"react\");\nvar import_react_native3 = require(\"react-native\");\n\n// src/components/StoryView/StoryView.tsx\nvar import_react_native_theming = require(\"@storybook/react-native-theming\");\nvar import_react3 = __toESM(require(\"react\"));\nvar import_react_native2 = require(\"react-native\");\n\n// ../../node_modules/jotai/esm/vanilla.mjs\nvar import_meta = {};\nvar keyCount = 0;\nfunction atom(read, write) {\n  const key = `atom${++keyCount}`;\n  const config = {\n    toString: () => key\n  };\n  if (typeof read === \"function\") {\n    config.read = read;\n  } else {\n    config.init = read;\n    config.read = function(get) {\n      return get(this);\n    };\n    config.write = function(get, set, arg) {\n      return set(\n        this,\n        typeof arg === \"function\" ? arg(get(this)) : arg\n      );\n    };\n  }\n  if (write) {\n    config.write = write;\n  }\n  return config;\n}\nvar hasInitialValue = (atom2) => \"init\" in atom2;\nvar isActuallyWritableAtom = (atom2) => !!atom2.write;\nvar cancelPromiseMap = /* @__PURE__ */ new WeakMap();\nvar registerCancelPromise = (promise, cancel) => {\n  cancelPromiseMap.set(promise, cancel);\n  promise.catch(() => {\n  }).finally(() => cancelPromiseMap.delete(promise));\n};\nvar cancelPromise = (promise, next) => {\n  const cancel = cancelPromiseMap.get(promise);\n  if (cancel) {\n    cancelPromiseMap.delete(promise);\n    cancel(next);\n  }\n};\nvar resolvePromise = (promise, value) => {\n  promise.status = \"fulfilled\";\n  promise.value = value;\n};\nvar rejectPromise = (promise, e) => {\n  promise.status = \"rejected\";\n  promise.reason = e;\n};\nvar isPromiseLike = (x) => typeof (x == null ? void 0 : x.then) === \"function\";\nvar isEqualAtomValue = (a, b) => !!a && \"v\" in a && \"v\" in b && Object.is(a.v, b.v);\nvar isEqualAtomError = (a, b) => !!a && \"e\" in a && \"e\" in b && Object.is(a.e, b.e);\nvar hasPromiseAtomValue = (a) => !!a && \"v\" in a && a.v instanceof Promise;\nvar isEqualPromiseAtomValue = (a, b) => \"v\" in a && \"v\" in b && a.v.orig && a.v.orig === b.v.orig;\nvar returnAtomValue = (atomState) => {\n  if (\"e\" in atomState) {\n    throw atomState.e;\n  }\n  return atomState.v;\n};\nvar createStore = () => {\n  const atomStateMap = /* @__PURE__ */ new WeakMap();\n  const mountedMap = /* @__PURE__ */ new WeakMap();\n  const pendingMap = /* @__PURE__ */ new Map();\n  let storeListenersRev2;\n  let mountedAtoms;\n  if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n    storeListenersRev2 = /* @__PURE__ */ new Set();\n    mountedAtoms = /* @__PURE__ */ new Set();\n  }\n  const getAtomState = (atom2) => atomStateMap.get(atom2);\n  const setAtomState = (atom2, atomState) => {\n    if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n      Object.freeze(atomState);\n    }\n    const prevAtomState = atomStateMap.get(atom2);\n    atomStateMap.set(atom2, atomState);\n    if (!pendingMap.has(atom2)) {\n      pendingMap.set(atom2, prevAtomState);\n    }\n    if (hasPromiseAtomValue(prevAtomState)) {\n      const next = \"v\" in atomState ? atomState.v instanceof Promise ? atomState.v : Promise.resolve(atomState.v) : Promise.reject(atomState.e);\n      if (prevAtomState.v !== next) {\n        cancelPromise(prevAtomState.v, next);\n      }\n    }\n  };\n  const updateDependencies = (atom2, nextAtomState, nextDependencies) => {\n    const dependencies = /* @__PURE__ */ new Map();\n    let changed = false;\n    nextDependencies.forEach((aState, a) => {\n      if (!aState && a === atom2) {\n        aState = nextAtomState;\n      }\n      if (aState) {\n        dependencies.set(a, aState);\n        if (nextAtomState.d.get(a) !== aState) {\n          changed = true;\n        }\n      } else if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n        console.warn(\"[Bug] atom state not found\");\n      }\n    });\n    if (changed || nextAtomState.d.size !== dependencies.size) {\n      nextAtomState.d = dependencies;\n    }\n  };\n  const setAtomValue = (atom2, value, nextDependencies) => {\n    const prevAtomState = getAtomState(atom2);\n    const nextAtomState = {\n      d: (prevAtomState == null ? void 0 : prevAtomState.d) || /* @__PURE__ */ new Map(),\n      v: value\n    };\n    if (nextDependencies) {\n      updateDependencies(atom2, nextAtomState, nextDependencies);\n    }\n    if (isEqualAtomValue(prevAtomState, nextAtomState) && prevAtomState.d === nextAtomState.d) {\n      return prevAtomState;\n    }\n    if (hasPromiseAtomValue(prevAtomState) && hasPromiseAtomValue(nextAtomState) && isEqualPromiseAtomValue(prevAtomState, nextAtomState)) {\n      if (prevAtomState.d === nextAtomState.d) {\n        return prevAtomState;\n      } else {\n        nextAtomState.v = prevAtomState.v;\n      }\n    }\n    setAtomState(atom2, nextAtomState);\n    return nextAtomState;\n  };\n  const setAtomValueOrPromise = (atom2, valueOrPromise, nextDependencies, abortPromise) => {\n    if (isPromiseLike(valueOrPromise)) {\n      let continuePromise;\n      const updatePromiseDependencies = () => {\n        const prevAtomState = getAtomState(atom2);\n        if (!hasPromiseAtomValue(prevAtomState) || prevAtomState.v !== promise) {\n          return;\n        }\n        const nextAtomState = setAtomValue(\n          atom2,\n          promise,\n          nextDependencies\n        );\n        if (mountedMap.has(atom2) && prevAtomState.d !== nextAtomState.d) {\n          mountDependencies(atom2, nextAtomState, prevAtomState.d);\n        }\n      };\n      const promise = new Promise((resolve, reject) => {\n        let settled = false;\n        valueOrPromise.then(\n          (v) => {\n            if (!settled) {\n              settled = true;\n              resolvePromise(promise, v);\n              resolve(v);\n              updatePromiseDependencies();\n            }\n          },\n          (e) => {\n            if (!settled) {\n              settled = true;\n              rejectPromise(promise, e);\n              reject(e);\n              updatePromiseDependencies();\n            }\n          }\n        );\n        continuePromise = (next) => {\n          if (!settled) {\n            settled = true;\n            next.then(\n              (v) => resolvePromise(promise, v),\n              (e) => rejectPromise(promise, e)\n            );\n            resolve(next);\n          }\n        };\n      });\n      promise.orig = valueOrPromise;\n      promise.status = \"pending\";\n      registerCancelPromise(promise, (next) => {\n        if (next) {\n          continuePromise(next);\n        }\n        abortPromise == null ? void 0 : abortPromise();\n      });\n      return setAtomValue(atom2, promise, nextDependencies);\n    }\n    return setAtomValue(atom2, valueOrPromise, nextDependencies);\n  };\n  const setAtomError = (atom2, error, nextDependencies) => {\n    const prevAtomState = getAtomState(atom2);\n    const nextAtomState = {\n      d: (prevAtomState == null ? void 0 : prevAtomState.d) || /* @__PURE__ */ new Map(),\n      e: error\n    };\n    if (nextDependencies) {\n      updateDependencies(atom2, nextAtomState, nextDependencies);\n    }\n    if (isEqualAtomError(prevAtomState, nextAtomState) && prevAtomState.d === nextAtomState.d) {\n      return prevAtomState;\n    }\n    setAtomState(atom2, nextAtomState);\n    return nextAtomState;\n  };\n  const readAtomState = (atom2, force) => {\n    const atomState = getAtomState(atom2);\n    if (!force && atomState) {\n      if (mountedMap.has(atom2)) {\n        return atomState;\n      }\n      if (Array.from(atomState.d).every(([a, s]) => {\n        if (a === atom2) {\n          return true;\n        }\n        const aState = readAtomState(a);\n        return aState === s || isEqualAtomValue(aState, s);\n      })) {\n        return atomState;\n      }\n    }\n    const nextDependencies = /* @__PURE__ */ new Map();\n    let isSync = true;\n    const getter = (a) => {\n      if (a === atom2) {\n        const aState2 = getAtomState(a);\n        if (aState2) {\n          nextDependencies.set(a, aState2);\n          return returnAtomValue(aState2);\n        }\n        if (hasInitialValue(a)) {\n          nextDependencies.set(a, void 0);\n          return a.init;\n        }\n        throw new Error(\"no atom init\");\n      }\n      const aState = readAtomState(a);\n      nextDependencies.set(a, aState);\n      return returnAtomValue(aState);\n    };\n    let controller;\n    let setSelf;\n    const options = {\n      get signal() {\n        if (!controller) {\n          controller = new AbortController();\n        }\n        return controller.signal;\n      },\n      get setSelf() {\n        if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\" && !isActuallyWritableAtom(atom2)) {\n          console.warn(\"setSelf function cannot be used with read-only atom\");\n        }\n        if (!setSelf && isActuallyWritableAtom(atom2)) {\n          setSelf = (...args) => {\n            if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\" && isSync) {\n              console.warn(\"setSelf function cannot be called in sync\");\n            }\n            if (!isSync) {\n              return writeAtom(atom2, ...args);\n            }\n          };\n        }\n        return setSelf;\n      }\n    };\n    try {\n      const valueOrPromise = atom2.read(getter, options);\n      return setAtomValueOrPromise(\n        atom2,\n        valueOrPromise,\n        nextDependencies,\n        () => controller == null ? void 0 : controller.abort()\n      );\n    } catch (error) {\n      return setAtomError(atom2, error, nextDependencies);\n    } finally {\n      isSync = false;\n    }\n  };\n  const readAtom = (atom2) => returnAtomValue(readAtomState(atom2));\n  const addAtom = (atom2) => {\n    let mounted = mountedMap.get(atom2);\n    if (!mounted) {\n      mounted = mountAtom(atom2);\n    }\n    return mounted;\n  };\n  const canUnmountAtom = (atom2, mounted) => !mounted.l.size && (!mounted.t.size || mounted.t.size === 1 && mounted.t.has(atom2));\n  const delAtom = (atom2) => {\n    const mounted = mountedMap.get(atom2);\n    if (mounted && canUnmountAtom(atom2, mounted)) {\n      unmountAtom(atom2);\n    }\n  };\n  const recomputeDependents = (atom2) => {\n    const dependencyMap = /* @__PURE__ */ new Map();\n    const dirtyMap = /* @__PURE__ */ new WeakMap();\n    const getDependents = (a) => {\n      var _a;\n      const dependents = new Set((_a = mountedMap.get(a)) == null ? void 0 : _a.t);\n      pendingMap.forEach((_, pendingAtom) => {\n        var _a2;\n        if ((_a2 = getAtomState(pendingAtom)) == null ? void 0 : _a2.d.has(a)) {\n          dependents.add(pendingAtom);\n        }\n      });\n      return dependents;\n    };\n    const loop1 = (a) => {\n      getDependents(a).forEach((dependent) => {\n        if (dependent !== a) {\n          dependencyMap.set(\n            dependent,\n            (dependencyMap.get(dependent) || /* @__PURE__ */ new Set()).add(a)\n          );\n          dirtyMap.set(dependent, (dirtyMap.get(dependent) || 0) + 1);\n          loop1(dependent);\n        }\n      });\n    };\n    loop1(atom2);\n    const loop2 = (a) => {\n      getDependents(a).forEach((dependent) => {\n        var _a;\n        if (dependent !== a) {\n          let dirtyCount = dirtyMap.get(dependent);\n          if (dirtyCount) {\n            dirtyMap.set(dependent, --dirtyCount);\n          }\n          if (!dirtyCount) {\n            let isChanged = !!((_a = dependencyMap.get(dependent)) == null ? void 0 : _a.size);\n            if (isChanged) {\n              const prevAtomState = getAtomState(dependent);\n              const nextAtomState = readAtomState(dependent, true);\n              isChanged = !isEqualAtomValue(prevAtomState, nextAtomState);\n            }\n            if (!isChanged) {\n              dependencyMap.forEach((s) => s.delete(dependent));\n            }\n          }\n          loop2(dependent);\n        }\n      });\n    };\n    loop2(atom2);\n  };\n  const writeAtomState = (atom2, ...args) => {\n    let isSync = true;\n    const getter = (a) => returnAtomValue(readAtomState(a));\n    const setter = (a, ...args2) => {\n      let r;\n      if (a === atom2) {\n        if (!hasInitialValue(a)) {\n          throw new Error(\"atom not writable\");\n        }\n        const prevAtomState = getAtomState(a);\n        const nextAtomState = setAtomValueOrPromise(a, args2[0]);\n        if (!isEqualAtomValue(prevAtomState, nextAtomState)) {\n          recomputeDependents(a);\n        }\n      } else {\n        r = writeAtomState(a, ...args2);\n      }\n      if (!isSync) {\n        const flushed = flushPending();\n        if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n          storeListenersRev2.forEach(\n            (l) => l({ type: \"async-write\", flushed })\n          );\n        }\n      }\n      return r;\n    };\n    const result = atom2.write(getter, setter, ...args);\n    isSync = false;\n    return result;\n  };\n  const writeAtom = (atom2, ...args) => {\n    const result = writeAtomState(atom2, ...args);\n    const flushed = flushPending();\n    if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n      storeListenersRev2.forEach(\n        (l) => l({ type: \"write\", flushed })\n      );\n    }\n    return result;\n  };\n  const mountAtom = (atom2, initialDependent, onMountQueue) => {\n    var _a;\n    const queue = onMountQueue || [];\n    (_a = getAtomState(atom2)) == null ? void 0 : _a.d.forEach((_, a) => {\n      const aMounted = mountedMap.get(a);\n      if (aMounted) {\n        aMounted.t.add(atom2);\n      } else {\n        if (a !== atom2) {\n          mountAtom(a, atom2, queue);\n        }\n      }\n    });\n    readAtomState(atom2);\n    const mounted = {\n      t: new Set(initialDependent && [initialDependent]),\n      l: /* @__PURE__ */ new Set()\n    };\n    mountedMap.set(atom2, mounted);\n    if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n      mountedAtoms.add(atom2);\n    }\n    if (isActuallyWritableAtom(atom2) && atom2.onMount) {\n      const { onMount } = atom2;\n      queue.push(() => {\n        const onUnmount = onMount((...args) => writeAtom(atom2, ...args));\n        if (onUnmount) {\n          mounted.u = onUnmount;\n        }\n      });\n    }\n    if (!onMountQueue) {\n      queue.forEach((f) => f());\n    }\n    return mounted;\n  };\n  const unmountAtom = (atom2) => {\n    var _a;\n    const onUnmount = (_a = mountedMap.get(atom2)) == null ? void 0 : _a.u;\n    if (onUnmount) {\n      onUnmount();\n    }\n    mountedMap.delete(atom2);\n    if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n      mountedAtoms.delete(atom2);\n    }\n    const atomState = getAtomState(atom2);\n    if (atomState) {\n      if (hasPromiseAtomValue(atomState)) {\n        cancelPromise(atomState.v);\n      }\n      atomState.d.forEach((_, a) => {\n        if (a !== atom2) {\n          const mounted = mountedMap.get(a);\n          if (mounted) {\n            mounted.t.delete(atom2);\n            if (canUnmountAtom(a, mounted)) {\n              unmountAtom(a);\n            }\n          }\n        }\n      });\n    } else if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n      console.warn(\"[Bug] could not find atom state to unmount\", atom2);\n    }\n  };\n  const mountDependencies = (atom2, atomState, prevDependencies) => {\n    const depSet = new Set(atomState.d.keys());\n    const maybeUnmountAtomSet = /* @__PURE__ */ new Set();\n    prevDependencies == null ? void 0 : prevDependencies.forEach((_, a) => {\n      if (depSet.has(a)) {\n        depSet.delete(a);\n        return;\n      }\n      maybeUnmountAtomSet.add(a);\n      const mounted = mountedMap.get(a);\n      if (mounted) {\n        mounted.t.delete(atom2);\n      }\n    });\n    depSet.forEach((a) => {\n      const mounted = mountedMap.get(a);\n      if (mounted) {\n        mounted.t.add(atom2);\n      } else if (mountedMap.has(atom2)) {\n        mountAtom(a, atom2);\n      }\n    });\n    maybeUnmountAtomSet.forEach((a) => {\n      const mounted = mountedMap.get(a);\n      if (mounted && canUnmountAtom(a, mounted)) {\n        unmountAtom(a);\n      }\n    });\n  };\n  const flushPending = () => {\n    let flushed;\n    if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n      flushed = /* @__PURE__ */ new Set();\n    }\n    while (pendingMap.size) {\n      const pending = Array.from(pendingMap);\n      pendingMap.clear();\n      pending.forEach(([atom2, prevAtomState]) => {\n        const atomState = getAtomState(atom2);\n        if (atomState) {\n          const mounted = mountedMap.get(atom2);\n          if (mounted && atomState.d !== (prevAtomState == null ? void 0 : prevAtomState.d)) {\n            mountDependencies(atom2, atomState, prevAtomState == null ? void 0 : prevAtomState.d);\n          }\n          if (mounted && !// TODO This seems pretty hacky. Hope to fix it.\n          // Maybe we could `mountDependencies` in `setAtomState`?\n          (!hasPromiseAtomValue(prevAtomState) && (isEqualAtomValue(prevAtomState, atomState) || isEqualAtomError(prevAtomState, atomState)))) {\n            mounted.l.forEach((listener) => listener());\n            if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n              flushed.add(atom2);\n            }\n          }\n        } else if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n          console.warn(\"[Bug] no atom state to flush\");\n        }\n      });\n    }\n    if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n      return flushed;\n    }\n  };\n  const subscribeAtom = (atom2, listener) => {\n    const mounted = addAtom(atom2);\n    const flushed = flushPending();\n    const listeners = mounted.l;\n    listeners.add(listener);\n    if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n      storeListenersRev2.forEach(\n        (l) => l({ type: \"sub\", flushed })\n      );\n    }\n    return () => {\n      listeners.delete(listener);\n      delAtom(atom2);\n      if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n        storeListenersRev2.forEach((l) => l({ type: \"unsub\" }));\n      }\n    };\n  };\n  if ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n    return {\n      get: readAtom,\n      set: writeAtom,\n      sub: subscribeAtom,\n      // store dev methods (these are tentative and subject to change without notice)\n      dev_subscribe_store: (l, rev) => {\n        if (rev !== 2) {\n          throw new Error(\"The current StoreListener revision is 2.\");\n        }\n        storeListenersRev2.add(l);\n        return () => {\n          storeListenersRev2.delete(l);\n        };\n      },\n      dev_get_mounted_atoms: () => mountedAtoms.values(),\n      dev_get_atom_state: (a) => atomStateMap.get(a),\n      dev_get_mounted: (a) => mountedMap.get(a),\n      dev_restore_atoms: (values) => {\n        for (const [atom2, valueOrPromise] of values) {\n          if (hasInitialValue(atom2)) {\n            setAtomValueOrPromise(atom2, valueOrPromise);\n            recomputeDependents(atom2);\n          }\n        }\n        const flushed = flushPending();\n        storeListenersRev2.forEach(\n          (l) => l({ type: \"restore\", flushed })\n        );\n      }\n    };\n  }\n  return {\n    get: readAtom,\n    set: writeAtom,\n    sub: subscribeAtom\n  };\n};\nvar defaultStore;\nif ((import_meta.env ? import_meta.env.MODE : void 0) !== \"production\") {\n  if (typeof globalThis.__NUMBER_OF_JOTAI_INSTANCES__ === \"number\") {\n    ++globalThis.__NUMBER_OF_JOTAI_INSTANCES__;\n  } else {\n    globalThis.__NUMBER_OF_JOTAI_INSTANCES__ = 1;\n  }\n}\nvar getDefaultStore = () => {\n  if (!defaultStore) {\n    defaultStore = createStore();\n  }\n  return defaultStore;\n};\n\n// ../../node_modules/jotai/esm/react.mjs\nvar import_react = __toESM(require(\"react\"), 1);\nvar import_meta2 = {};\nvar StoreContext = (0, import_react.createContext)(void 0);\nvar useStore = (options) => {\n  const store = (0, import_react.useContext)(StoreContext);\n  return (options == null ? void 0 : options.store) || store || getDefaultStore();\n};\nvar isPromiseLike2 = (x) => typeof (x == null ? void 0 : x.then) === \"function\";\nvar use = import_react.default.use || ((promise) => {\n  if (promise.status === \"pending\") {\n    throw promise;\n  } else if (promise.status === \"fulfilled\") {\n    return promise.value;\n  } else if (promise.status === \"rejected\") {\n    throw promise.reason;\n  } else {\n    promise.status = \"pending\";\n    promise.then(\n      (v) => {\n        promise.status = \"fulfilled\";\n        promise.value = v;\n      },\n      (e) => {\n        promise.status = \"rejected\";\n        promise.reason = e;\n      }\n    );\n    throw promise;\n  }\n});\nfunction useAtomValue(atom2, options) {\n  const store = useStore(options);\n  const [[valueFromReducer, storeFromReducer, atomFromReducer], rerender] = (0, import_react.useReducer)(\n    (prev) => {\n      const nextValue = store.get(atom2);\n      if (Object.is(prev[0], nextValue) && prev[1] === store && prev[2] === atom2) {\n        return prev;\n      }\n      return [nextValue, store, atom2];\n    },\n    void 0,\n    () => [store.get(atom2), store, atom2]\n  );\n  let value = valueFromReducer;\n  if (storeFromReducer !== store || atomFromReducer !== atom2) {\n    rerender();\n    value = store.get(atom2);\n  }\n  const delay = options == null ? void 0 : options.delay;\n  (0, import_react.useEffect)(() => {\n    const unsub = store.sub(atom2, () => {\n      if (typeof delay === \"number\") {\n        setTimeout(rerender, delay);\n        return;\n      }\n      rerender();\n    });\n    rerender();\n    return unsub;\n  }, [store, atom2, delay]);\n  (0, import_react.useDebugValue)(value);\n  return isPromiseLike2(value) ? use(value) : value;\n}\nfunction useSetAtom(atom2, options) {\n  const store = useStore(options);\n  const setAtom = (0, import_react.useCallback)(\n    (...args) => {\n      if ((import_meta2.env ? import_meta2.env.MODE : void 0) !== \"production\" && !(\"write\" in atom2)) {\n        throw new Error(\"not writable atom\");\n      }\n      return store.set(atom2, ...args);\n    },\n    [store, atom2]\n  );\n  return setAtom;\n}\n\n// src/hooks.tsx\nvar storyContextAtom = atom(null);\nfunction useSetStoryContext() {\n  return useSetAtom(storyContextAtom);\n}\nfunction useStoryContext() {\n  return useAtomValue(storyContextAtom);\n}\n\n// src/components/StoryView/ErrorBoundary.tsx\nvar import_react2 = __toESM(require(\"react\"));\nvar import_react_native = require(\"react-native\");\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar ErrorBoundary = class extends import_react2.default.Component {\n  constructor(props) {\n    super(props);\n    this.state = { hasError: false };\n  }\n  static getDerivedStateFromError(_error) {\n    return { hasError: true };\n  }\n  componentDidCatch(error, info) {\n    this.props.onError(error, info.componentStack);\n  }\n  render() {\n    if (this.state.hasError) {\n      return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(\n        import_react_native.View,\n        {\n          style: {\n            margin: 16,\n            padding: 16,\n            borderColor: \"red\",\n            borderWidth: 2,\n            alignItems: \"center\",\n            justifyContent: \"center\",\n            borderRadius: 4\n          },\n          children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native.Text, { style: { fontWeight: \"bold\" }, children: \"Something went wrong rendering your story\" })\n        }\n      );\n    }\n    return this.props.children;\n  }\n};\n\n// src/components/StoryView/StoryView.tsx\nvar import_jsx_runtime2 = require(\"react/jsx-runtime\");\nfunction dismissOnStartResponder() {\n  import_react_native2.Keyboard.dismiss();\n  return false;\n}\nvar Text2 = import_react_native_theming.styled.Text(({ theme: theme3 }) => ({\n  color: theme3?.color?.defaultText\n}));\nvar errorContainerStyle = {\n  flex: 1,\n  padding: 16,\n  alignItems: \"center\",\n  justifyContent: \"center\"\n};\nvar layoutStyles = {\n  padded: { padding: 8 },\n  centered: { alignItems: \"center\", justifyContent: \"center\" },\n  fullscreen: {}\n};\nvar StoryView = ({ useWrapper = true }) => {\n  const context = useStoryContext();\n  const id = context?.id;\n  const theme3 = (0, import_react_native_theming.useTheme)();\n  const containerStyle = (0, import_react3.useMemo)(() => {\n    const layout = context?.parameters?.layout;\n    const layoutStyle = layout ? layoutStyles[layout] : {};\n    return {\n      flex: 1,\n      backgroundColor: theme3.background?.content,\n      overflow: \"hidden\",\n      ...layoutStyle\n    };\n  }, [theme3.background?.content, context?.parameters?.layout]);\n  const onError = (0, import_react3.useCallback)(() => {\n    console.log(`Error rendering story for ${context?.title} ${context?.name}`);\n  }, [context?.title, context?.name]);\n  if (context && context.unboundStoryFn) {\n    const { unboundStoryFn: StoryComponent } = context;\n    if (useWrapper) {\n      return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(\n        import_react_native2.View,\n        {\n          style: containerStyle,\n          testID: id,\n          accessibilityLabel: id,\n          importantForAccessibility: \"no\",\n          onStartShouldSetResponder: dismissOnStartResponder,\n          children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorBoundary, { onError, children: StoryComponent && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(StoryComponent, { ...context }) })\n        },\n        id\n      );\n    }\n    return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ErrorBoundary, { onError, children: StoryComponent && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(StoryComponent, { ...context }) });\n  }\n  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_native2.View, { style: errorContainerStyle, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Text2, { children: \"Please select a story to preview.\" }) });\n};\nvar StoryView_default = import_react3.default.memo(StoryView);\n\n// src/rn-host-detect.js\nfunction getByRemoteConfig(hostname) {\n  var remoteModuleConfig = window?.__fbBatchedBridgeConfig?.remoteModuleConfig;\n  if (!Array.isArray(remoteModuleConfig) || hostname !== \"localhost\" && hostname !== \"127.0.0.1\") {\n    return { hostname, passed: false };\n  }\n  var constants = (remoteModuleConfig.find(getConstants) || [])[1];\n  if (constants) {\n    var serverHost = constants.ServerHost || hostname;\n    return { hostname: serverHost.split(\":\")[0], passed: true };\n  }\n  return { hostname, passed: false };\n}\nfunction getConstants(config) {\n  return config && (config[0] === \"AndroidConstants\" || config[0] === \"PlatformConstants\");\n}\nfunction getByRNRequirePolyfill(hostname) {\n  var NativeModules;\n  var PlatformConstants;\n  var AndroidConstants;\n  if (typeof window === \"undefined\" || !window.__DEV__ || typeof window.require !== \"function\" || // RN >= 0.56\n  // TODO: Get NativeModules for RN >= 0.56\n  window.require.name === \"metroRequire\") {\n    return hostname;\n  }\n  NativeModules = window.require(\"NativeModules\");\n  if (!NativeModules || !NativeModules.PlatformConstants && !NativeModules.AndroidConstants) {\n    return hostname;\n  }\n  PlatformConstants = NativeModules.PlatformConstants;\n  AndroidConstants = NativeModules.AndroidConstants;\n  var serverHost = (PlatformConstants ? PlatformConstants.ServerHost : AndroidConstants.ServerHost) || hostname;\n  return serverHost.split(\":\")[0];\n}\nfunction getHost(hostname) {\n  if (typeof __fbBatchedBridge !== \"object\" || hostname !== \"localhost\" && hostname !== \"127.0.0.1\") {\n    return hostname;\n  }\n  var result = getByRemoteConfig(hostname);\n  if (result.passed) {\n    return result.hostname;\n  }\n  return getByRNRequirePolyfill(hostname);\n}\n\n// src/View.tsx\nvar import_jsx_runtime3 = require(\"react/jsx-runtime\");\nvar STORAGE_KEY = \"lastOpenedStory\";\nvar View3 = class {\n  _storyIndex;\n  _setStory = () => {\n  };\n  _forceRerender = () => {\n  };\n  _ready = false;\n  _preview;\n  _asyncStorageStoryId;\n  _webUrl;\n  _storage;\n  _channel;\n  _idToPrepared = {};\n  constructor(preview, channel) {\n    this._preview = preview;\n    this._channel = channel;\n  }\n  _storyIdExists = (storyId) => {\n    return Object.keys(this._storyIndex.entries).includes(storyId);\n  };\n  _getInitialStory = async ({\n    initialSelection,\n    shouldPersistSelection = true\n  } = {}) => {\n    if (initialSelection) {\n      if (typeof initialSelection === \"string\") {\n        return { storySpecifier: initialSelection, viewMode: \"story\" };\n      } else {\n        return {\n          storySpecifier: (0, import_csf.toId)(initialSelection.kind, initialSelection.name),\n          viewMode: \"story\"\n        };\n      }\n    }\n    if (shouldPersistSelection) {\n      try {\n        let value = this._asyncStorageStoryId;\n        if (!value && this._storage != null) {\n          value = await this._storage.getItem(STORAGE_KEY);\n          this._asyncStorageStoryId = value;\n        }\n        const exists = value && this._storyIdExists(value);\n        if (!exists) console.log(\"Storybook: could not find persisted story\");\n        return { storySpecifier: exists ? value : \"*\", viewMode: \"story\" };\n      } catch (e) {\n        console.warn(\"storybook-log: error reading from async storage\", e);\n      }\n    }\n    return { storySpecifier: \"*\", viewMode: \"story\" };\n  };\n  _getServerChannel = (params = {}) => {\n    const host = getHost(params.host || \"localhost\");\n    const port = `:${params.port || 7007}`;\n    const query = params.query || \"\";\n    const websocketType = params.secured ? \"wss\" : \"ws\";\n    const url = `${websocketType}://${host}${port}/${query}`;\n    const channel = new import_channels.Channel({\n      transport: new import_channels.WebsocketTransport({\n        url,\n        onError: (e) => {\n          console.log(`WebsocketTransport error ${JSON.stringify(e)}`);\n        }\n      }),\n      async: true\n    });\n    return channel;\n  };\n  createPreparedStoryMapping = async () => {\n    await this._preview.ready().then(\n      () => Promise.all(\n        Object.keys(this._storyIndex.entries).map(async (storyId) => {\n          this._idToPrepared[storyId] = await this._preview.loadStory({ storyId });\n        })\n      )\n    );\n  };\n  getStorybookUI = (params = {}) => {\n    const {\n      shouldPersistSelection = true,\n      onDeviceUI = true,\n      enableWebsockets = false,\n      storage,\n      CustomUIComponent,\n      hasStoryWrapper: storyViewWrapper = true\n    } = params;\n    const getFullUI = (enabled) => {\n      if (enabled) {\n        try {\n          const { FullUI: FullUI2 } = require(\"@storybook/react-native-ui\");\n          return FullUI2;\n        } catch (error) {\n          console.warn(\"storybook-log: error loading UI\", error);\n        }\n      }\n      const PlaceholderUI = ({ children }) => children;\n      return PlaceholderUI;\n    };\n    const FullUI = getFullUI(onDeviceUI && !CustomUIComponent);\n    this._storage = storage;\n    const initialStory = this._getInitialStory(params);\n    if (enableWebsockets) {\n      const channel = this._getServerChannel(params);\n      import_manager_api.addons.setChannel(channel);\n      import_preview_api.addons.setChannel(channel);\n      this._channel = channel;\n      this._preview.channel = channel;\n      this._preview.setupListeners();\n      channel.emit(import_core_events.CHANNEL_CREATED);\n      this._preview.ready().then(() => this._preview.onStoryIndexChanged());\n    }\n    import_manager_api.addons.loadAddons({\n      store: () => ({\n        fromId: (id) => {\n          if (!this._ready) {\n            throw new Error(\"Storybook is not ready yet\");\n          }\n          return this._preview.getStoryContext(this._idToPrepared[id]);\n        },\n        getSelection: () => {\n          return this._preview.currentSelection;\n        },\n        _channel: this._channel\n      })\n    });\n    const self = this;\n    return () => {\n      const setContext = useSetStoryContext();\n      const story = useStoryContext();\n      const colorScheme = (0, import_react_native3.useColorScheme)();\n      const [update, forceUpdate] = (0, import_react4.useReducer)((x) => x + 1, 0);\n      const [ready, setReady] = (0, import_react4.useState)(false);\n      const appliedTheme = (0, import_react4.useMemo)(\n        () => (0, import_deepmerge.default)(colorScheme === \"dark\" ? import_react_native_theming2.darkTheme : import_react_native_theming2.theme, params.theme ?? {}),\n        [colorScheme]\n      );\n      (0, import_react4.useEffect)(() => {\n        const listener = import_react_native3.Linking.addEventListener(\"url\", ({ url }) => {\n          if (typeof url === \"string\") {\n            const urlObj = new URL(url);\n            const storyId = urlObj.searchParams.get(\"STORYBOOK_STORY_ID\");\n            const hasStoryId = storyId && typeof storyId === \"string\";\n            const storyExists = hasStoryId && self._storyIdExists(storyId);\n            if (storyExists && self._ready) {\n              console.log(`STORYBOOK: Linking event received, navigating to story: ${storyId}`);\n              self._channel.emit(import_core_events.SET_CURRENT_STORY, { storyId });\n            }\n            if (hasStoryId && !storyExists) {\n              console.log(\n                `STORYBOOK: Linking event received, but story does not exist: ${storyId}`\n              );\n            }\n          }\n        });\n        return () => {\n          listener.remove();\n        };\n      }, []);\n      (0, import_react4.useEffect)(() => {\n        self.createPreparedStoryMapping().then(() => {\n          self._ready = true;\n          setReady(true);\n          return import_react_native3.Linking.getInitialURL().then((url) => {\n            if (url && typeof url === \"string\") {\n              const urlObj = new URL(url);\n              const storyId = urlObj.searchParams.get(\"STORYBOOK_STORY_ID\");\n              const hasStoryId = storyId && typeof storyId === \"string\";\n              const storyExists = hasStoryId && self._storyIdExists(storyId);\n              if (hasStoryId && !storyExists) {\n                console.log(\n                  `STORYBOOK: Initial Linking event received, but story does not exist: ${storyId}`\n                );\n              }\n              if (storyExists) {\n                return storyId;\n              } else {\n                return null;\n              }\n            }\n          }).then((initialStoryIdFromUrl) => {\n            return initialStory.then((st) => {\n              self._preview.selectionStore.selectionSpecifier = st;\n              if (initialStoryIdFromUrl) {\n                console.log(\n                  `STORYBOOK: Setting initial story from Linking event, storyId: ${initialStoryIdFromUrl}`\n                );\n                self._preview.selectionStore.selectionSpecifier = {\n                  storySpecifier: initialStoryIdFromUrl,\n                  viewMode: \"story\"\n                };\n              }\n              self._preview.selectSpecifiedStory();\n            });\n          });\n        }).catch((e) => console.error(e));\n        self._setStory = (newStory) => {\n          setContext(newStory);\n          if (shouldPersistSelection && !storage) {\n            console.warn(import_dedent.default`Please set storage in getStorybookUI like this:\n              const StorybookUIRoot = view.getStorybookUI({\n                storage: {\n                  getItem: AsyncStorage.getItem,\n                  setItem: AsyncStorage.setItem,\n                },\n              });\n            `);\n          }\n          if (shouldPersistSelection && !!self._storage) {\n            self._storage.setItem(STORAGE_KEY, newStory.id).catch((e) => {\n              console.warn(\"storybook-log: error writing to async storage\", e);\n            });\n          }\n        };\n        self._forceRerender = () => forceUpdate();\n      }, []);\n      const storyHash = (0, import_react4.useMemo)(() => {\n        if (!ready) {\n          return {};\n        }\n        return (0, import_react_native_ui_common.transformStoryIndexToStoriesHash)(self._storyIndex, {\n          docsOptions: { docsMode: false, defaultName: \"\" },\n          filters: {},\n          allStatuses: {},\n          provider: {\n            handleAPI: () => ({}),\n            getConfig: () => ({})\n          }\n        });\n      }, [ready, update]);\n      if (!ready) {\n        return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(\n          import_react_native3.View,\n          {\n            style: {\n              ...import_react_native3.StyleSheet.absoluteFillObject,\n              alignItems: \"center\",\n              justifyContent: \"center\"\n            },\n            children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_native3.ActivityIndicator, { animating: true, size: \"large\" })\n          }\n        );\n      }\n      if (onDeviceUI) {\n        if (CustomUIComponent) {\n          return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(\n            CustomUIComponent,\n            {\n              story,\n              storyHash,\n              setStory: (newStoryId) => self._channel.emit(import_core_events.SET_CURRENT_STORY, { storyId: newStoryId }),\n              storage,\n              theme: appliedTheme,\n              children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StoryView_default, { useWrapper: storyViewWrapper })\n            }\n          );\n        }\n        return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(\n          FullUI,\n          {\n            storage,\n            theme: appliedTheme,\n            storyHash,\n            story,\n            setStory: (newStoryId) => self._channel.emit(import_core_events.SET_CURRENT_STORY, { storyId: newStoryId }),\n            children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StoryView_default, { useWrapper: storyViewWrapper })\n          }\n        );\n      } else {\n        return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(StoryView_default, { useWrapper: storyViewWrapper });\n      }\n    };\n  };\n};\n\n// src/Start.tsx\nvar import_jsx_runtime4 = require(\"react/jsx-runtime\");\nglobalThis.FEATURES = {\n  measure: false,\n  outline: false,\n  interactions: false,\n  viewport: false,\n  highlight: false,\n  backgrounds: false\n};\nif (import_react_native4.Platform.OS === \"web\" && typeof globalThis.setImmediate === \"undefined\") {\n  require(\"setimmediate\");\n}\nfunction prepareStories({\n  storyEntries,\n  options,\n  storySort\n}) {\n  let index = {\n    v: 5,\n    entries: {}\n  };\n  let importMap = {};\n  const makeTitle = (fileName, specifier, userTitle) => {\n    const title = (0, import_preview_api2.userOrAutoTitleFromSpecifier)(fileName, specifier, userTitle);\n    if (title) {\n      return title.replace(\"./\", \"\");\n    } else {\n      console.log({\n        fileName,\n        userTitle,\n        storyEntries: storyEntries.map((entry) => {\n          return { ...entry, importPathMatcher: entry.importPathMatcher.source };\n        }),\n        title: title ?? \"\"\n      });\n      throw new Error(\"Could not generate title\");\n    }\n  };\n  storyEntries.forEach((specifier) => {\n    const { req, directory: root } = specifier;\n    req.keys().forEach((filename) => {\n      try {\n        const fileExports = req(filename);\n        if (!fileExports.default) return;\n        const meta = fileExports.default;\n        Object.keys(fileExports).forEach((key) => {\n          if (key === \"default\") return;\n          if (!(0, import_csf2.isExportStory)(key, fileExports.default)) return;\n          const exportValue = fileExports[key];\n          if (!exportValue) return;\n          const title = makeTitle(filename, specifier, meta.title);\n          if (title) {\n            const nameFromExport = (0, import_csf2.storyNameFromExport)(key);\n            const id = (0, import_csf2.toId)(title, nameFromExport);\n            let name = nameFromExport;\n            if (typeof exportValue === \"function\") {\n              name = exportValue?.storyName || nameFromExport;\n            } else {\n              name = exportValue?.name || exportValue?.storyName || nameFromExport;\n            }\n            index.entries[id] = {\n              type: \"story\",\n              id,\n              name,\n              title,\n              importPath: `${root}/${filename.substring(2)}`,\n              // FIXME: use normalize function here\n              tags: [\"story\"],\n              subtype: \"story\"\n            };\n            const importedStories = req(filename);\n            const stories = Object.entries(importedStories).reduce(\n              (carry, [storyKey, story]) => {\n                if (!(0, import_csf2.isExportStory)(storyKey, fileExports.default)) return carry;\n                if (story.play && !options?.playFn) {\n                  carry[storyKey] = { ...story, play: void 0 };\n                } else {\n                  carry[storyKey] = story;\n                }\n                return carry;\n              },\n              {}\n            );\n            importMap[`${root}/${filename.substring(2)}`] = stories;\n          } else {\n            console.log(`Unexpected error while loading ${filename}: could not find title`);\n          }\n        });\n      } catch (error) {\n        const errorString = error.message && error.stack ? `${error.message}\n ${error.stack}` : error.toString();\n        console.error(`Unexpected error while loading ${filename}: ${errorString}`);\n      }\n    });\n  });\n  const sortableStories = Object.values(index.entries);\n  (0, import_preview_api2.sortStoriesV7)(\n    sortableStories,\n    storySort,\n    Object.values(index.entries).map((entry) => entry.importPath)\n  );\n  const sorted = sortableStories.reduce(\n    (acc, item) => {\n      acc[item.id] = item;\n      return acc;\n    },\n    {}\n  );\n  return { index: { v: 5, entries: sorted }, importMap };\n}\nvar getProjectAnnotations = (view, annotations) => async () => (0, import_preview_api2.composeConfigs)([\n  {\n    renderToCanvas: (context) => {\n      view._setStory(context.storyContext);\n    },\n    render: (args, context) => {\n      const { id, component: Component } = context;\n      if (!Component) {\n        throw new Error(\n          `Unable to render story ${id} as the component annotation is missing from the default export`\n        );\n      }\n      return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Component, { ...args });\n    }\n  },\n  ...annotations\n]);\nfunction start({\n  annotations,\n  storyEntries,\n  options\n}) {\n  const composedAnnotations = (0, import_preview_api2.composeConfigs)(annotations);\n  const { index, importMap } = prepareStories({\n    storyEntries,\n    options,\n    storySort: composedAnnotations.parameters?.options?.storySort\n  });\n  const channel = new import_channels2.Channel({});\n  import_manager_api2.addons.setChannel(channel);\n  import_preview_api2.addons.setChannel(channel);\n  const previewView = {\n    prepareForStory: () => {\n      return {\n        component: () => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, {}),\n        canvasElement: null,\n        mount: () => Promise.resolve({}),\n        storyResult: null,\n        T: null\n      };\n    },\n    prepareForDocs: () => {\n    },\n    showErrorDisplay: (e) => {\n      console.log(e);\n    },\n    showDocs: () => {\n    },\n    showMain: () => {\n    },\n    showNoPreview: () => {\n    },\n    showPreparingDocs: () => {\n    },\n    showPreparingStory: () => {\n    },\n    showStory: () => {\n    },\n    showStoryDuringRender: () => {\n    }\n  };\n  const selectionStore = {\n    selection: null,\n    selectionSpecifier: null,\n    setQueryParams: () => {\n    },\n    setSelection: (selection) => {\n      preview.selectionStore.selection = selection;\n    }\n  };\n  const getProjectAnnotationsInitial = async () => (0, import_preview_api2.composeConfigs)([\n    {\n      renderToCanvas: (context) => {\n        view._setStory(context.storyContext);\n      },\n      render: (args, context) => {\n        const { id, component: Component } = context;\n        if (!Component) {\n          throw new Error(\n            `Unable to render story ${id} as the component annotation is missing from the default export`\n          );\n        }\n        return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Component, { ...args });\n      }\n    },\n    ...annotations\n  ]);\n  const preview = new import_preview_api2.PreviewWithSelection(\n    async (importPath) => importMap[importPath],\n    getProjectAnnotationsInitial,\n    selectionStore,\n    previewView\n  );\n  const view = new View3(preview, channel);\n  if (global) {\n    global.__STORYBOOK_ADDONS_CHANNEL__ = channel;\n    global.__STORYBOOK_PREVIEW__ = preview;\n  }\n  view._storyIndex = index;\n  preview.getStoryIndexFromServer = async () => view._storyIndex;\n  return view;\n}\nfunction updateView(viewInstance, annotations, normalizedStories, options) {\n  const composedAnnotations = (0, import_preview_api2.composeConfigs)(annotations);\n  const storySort = composedAnnotations.parameters?.options?.storySort;\n  const { importMap, index } = prepareStories({\n    storyEntries: normalizedStories,\n    options,\n    storySort\n  });\n  viewInstance._preview.onStoriesChanged({\n    importFn: async (importPath) => importMap[importPath]\n  });\n  viewInstance._preview.onGetProjectAnnotationsChanged({\n    getProjectAnnotations: getProjectAnnotations(viewInstance, annotations)\n  });\n  viewInstance._storyIndex = index;\n  viewInstance._preview.onStoryIndexChanged().then(() => {\n    viewInstance.createPreparedStoryMapping().then(() => viewInstance._forceRerender());\n  });\n}\n// Annotate the CommonJS export names for ESM import in node:\n0 && (module.exports = {\n  darkTheme,\n  getProjectAnnotations,\n  prepareStories,\n  start,\n  theme,\n  updateView\n});\n"]}