@tamagui/vite-plugin 3.0.0-beta.1187.1 → 3.0.0-beta.1191.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,11 +43,14 @@ function createViteTamaguiLoader(optionsIn = {}) {
43
43
  let loadPromise = null;
44
44
  let loadedOptions = null;
45
45
  let projectPromise = null;
46
+ let loadingProject = null;
47
+ const invalidatedFiles = /* @__PURE__ */ new Set();
46
48
  const evaluationDependencies = /* @__PURE__ */ new Set();
47
49
  const stampSources = /* @__PURE__ */ new Set();
48
50
  let generation = 0;
49
51
  const normalizeDependency = (id) => id.split("?")[0];
50
52
  const captureEvaluationDependencies = (modules) => {
53
+ evaluationDependencies.clear();
51
54
  stampSources.clear();
52
55
  for (const { id } of modules) {
53
56
  const dependency = normalizeDependency(id);
@@ -113,16 +116,34 @@ function createViteTamaguiLoader(optionsIn = {}) {
113
116
  };
114
117
  const loadProject = async (options) => {
115
118
  if (projectPromise) return projectPromise;
119
+ const previous = loadingProject;
120
+ const projectGeneration = generation;
121
+ const changedFiles = [...invalidatedFiles];
122
+ invalidatedFiles.clear();
116
123
  projectPromise = (async () => {
124
+ try {
125
+ await previous;
126
+ } catch {}
117
127
  if (!environment) {
118
128
  throw new Error(`Cannot load Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`);
119
129
  }
130
+ for (const file of changedFiles) {
131
+ const evaluated2 = environment.runner.evaluatedModules;
132
+ const affected = new Set(evaluated2.getModulesByFile(file));
133
+ for (const module2 of affected) {
134
+ for (const importer of module2.importers) {
135
+ const parent = evaluated2.getModuleById(importer);
136
+ if (parent) affected.add(parent);
137
+ }
138
+ evaluated2.invalidateModule(module2);
139
+ }
140
+ }
120
141
  let evaluated = null;
121
142
  return import_static.default.loadCompilerProject({
122
143
  root: environment.config.root,
123
144
  target: "web",
124
145
  options,
125
- generation: `vite:${generation}`,
146
+ generation: `vite:${projectGeneration}`,
126
147
  hostVersions: vitePluginVersions,
127
148
  async load(normalizedOptions) {
128
149
  evaluated = await evaluateProjectModules(normalizedOptions);
@@ -151,7 +172,16 @@ function createViteTamaguiLoader(optionsIn = {}) {
151
172
  }
152
173
  });
153
174
  })();
154
- return projectPromise;
175
+ loadingProject = projectPromise;
176
+ const pending = projectPromise;
177
+ try {
178
+ return await pending;
179
+ } catch (error) {
180
+ if (projectPromise === pending) projectPromise = null;
181
+ throw error;
182
+ } finally {
183
+ if (loadingProject === pending) loadingProject = null;
184
+ }
155
185
  };
156
186
  return {
157
187
  getEnvironment: () => environment,
@@ -190,9 +220,7 @@ function createViteTamaguiLoader(optionsIn = {}) {
190
220
  projectPromise = null;
191
221
  },
192
222
  invalidate(file) {
193
- if (file && environment) {
194
- environment.runner.clearCache();
195
- }
223
+ if (file) invalidatedFiles.add(normalizeDependency(file));
196
224
  generation++;
197
225
  projectPromise = null;
198
226
  },
@@ -205,6 +233,7 @@ function createViteTamaguiLoader(optionsIn = {}) {
205
233
  },
206
234
  async cleanup() {
207
235
  try {
236
+ await loadingProject?.catch(() => {});
208
237
  if (ownsEnvironment && environment) {
209
238
  await environment.close();
210
239
  }
@@ -214,6 +243,10 @@ function createViteTamaguiLoader(optionsIn = {}) {
214
243
  loadPromise = null;
215
244
  loadedOptions = null;
216
245
  projectPromise = null;
246
+ loadingProject = null;
247
+ invalidatedFiles.clear();
248
+ evaluationDependencies.clear();
249
+ stampSources.clear();
217
250
  }
218
251
  }
219
252
  };
@@ -509,7 +509,9 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
509
509
  dev: {
510
510
  createEnvironment(name, resolved) {
511
511
  const evaluationConfig = createServeEvaluationConfig(resolved, configuredEvaluationPackages);
512
- return (0, import_vite.createRunnableDevEnvironment)(name, evaluationConfig);
512
+ const environment = (0, import_vite.createRunnableDevEnvironment)(name, evaluationConfig, { hot: false });
513
+ tamaguiLoader.setEnvironment(environment);
514
+ return environment;
513
515
  },
514
516
  moduleRunnerTransform: true
515
517
  }
@@ -575,9 +577,6 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
575
577
  enforce: "pre",
576
578
  configureServer(_server) {
577
579
  server = _server;
578
- const evaluationEnvironment = server.environments[import_loadTamagui.TAMAGUI_EVALUATION_ENVIRONMENT];
579
- if (!(0, import_vite.isRunnableDevEnvironment)(evaluationEnvironment)) throw new Error(`The ${import_loadTamagui.TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment must support ModuleRunner evaluation`);
580
- tamaguiLoader.setEnvironment(evaluationEnvironment);
581
580
  },
582
581
  async buildEnd() {
583
582
  await releaseBuildEnvironment(this.environment);
@@ -694,7 +693,13 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
694
693
  },
695
694
  async buildStart() {
696
695
  const buildConfig = this.environment.getTopLevelConfig();
697
- if (buildConfig.command !== "build") return;
696
+ if (buildConfig.command !== "build") {
697
+ if (this.environment.name === "client") {
698
+ const dependencies = await tamaguiLoader.ensureFullConfigLoaded();
699
+ for (const dependency of dependencies) this.addWatchFile(dependency);
700
+ }
701
+ return;
702
+ }
698
703
  const pendingCleanup = buildCleanupPromise;
699
704
  if (pendingCleanup) await pendingCleanup;
700
705
  const buildEnvironment = this.environment;
@@ -788,6 +793,8 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
788
793
  tamaguiLoader.invalidate(options.file);
789
794
  invalidateCompilerModules();
790
795
  }
796
+ const dependencies = await tamaguiLoader.ensureFullConfigLoaded();
797
+ server.watcher.add(dependencies);
791
798
  if (this.environment.name === "client" && compilerHotReloadSignatures.get(options.file) !== signature) {
792
799
  compilerHotReloadSignatures.set(options.file, signature);
793
800
  this.environment.hot.send({
@@ -11,11 +11,14 @@ function createViteTamaguiLoader(optionsIn = {}) {
11
11
  let loadPromise = null;
12
12
  let loadedOptions = null;
13
13
  let projectPromise = null;
14
+ let loadingProject = null;
15
+ const invalidatedFiles = /* @__PURE__ */ new Set();
14
16
  const evaluationDependencies = /* @__PURE__ */ new Set();
15
17
  const stampSources = /* @__PURE__ */ new Set();
16
18
  let generation = 0;
17
19
  const normalizeDependency = (id) => id.split("?")[0];
18
20
  const captureEvaluationDependencies = (modules) => {
21
+ evaluationDependencies.clear();
19
22
  stampSources.clear();
20
23
  for (const { id } of modules) {
21
24
  const dependency = normalizeDependency(id);
@@ -81,16 +84,34 @@ function createViteTamaguiLoader(optionsIn = {}) {
81
84
  };
82
85
  const loadProject = async (options) => {
83
86
  if (projectPromise) return projectPromise;
87
+ const previous = loadingProject;
88
+ const projectGeneration = generation;
89
+ const changedFiles = [...invalidatedFiles];
90
+ invalidatedFiles.clear();
84
91
  projectPromise = (async () => {
92
+ try {
93
+ await previous;
94
+ } catch {}
85
95
  if (!environment) {
86
96
  throw new Error(`Cannot load Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`);
87
97
  }
98
+ for (const file of changedFiles) {
99
+ const evaluated2 = environment.runner.evaluatedModules;
100
+ const affected = new Set(evaluated2.getModulesByFile(file));
101
+ for (const module of affected) {
102
+ for (const importer of module.importers) {
103
+ const parent = evaluated2.getModuleById(importer);
104
+ if (parent) affected.add(parent);
105
+ }
106
+ evaluated2.invalidateModule(module);
107
+ }
108
+ }
88
109
  let evaluated = null;
89
110
  return Static.loadCompilerProject({
90
111
  root: environment.config.root,
91
112
  target: "web",
92
113
  options,
93
- generation: `vite:${generation}`,
114
+ generation: `vite:${projectGeneration}`,
94
115
  hostVersions: vitePluginVersions,
95
116
  async load(normalizedOptions) {
96
117
  evaluated = await evaluateProjectModules(normalizedOptions);
@@ -119,7 +140,16 @@ function createViteTamaguiLoader(optionsIn = {}) {
119
140
  }
120
141
  });
121
142
  })();
122
- return projectPromise;
143
+ loadingProject = projectPromise;
144
+ const pending = projectPromise;
145
+ try {
146
+ return await pending;
147
+ } catch (error) {
148
+ if (projectPromise === pending) projectPromise = null;
149
+ throw error;
150
+ } finally {
151
+ if (loadingProject === pending) loadingProject = null;
152
+ }
123
153
  };
124
154
  return {
125
155
  getEnvironment: () => environment,
@@ -158,9 +188,7 @@ function createViteTamaguiLoader(optionsIn = {}) {
158
188
  projectPromise = null;
159
189
  },
160
190
  invalidate(file) {
161
- if (file && environment) {
162
- environment.runner.clearCache();
163
- }
191
+ if (file) invalidatedFiles.add(normalizeDependency(file));
164
192
  generation++;
165
193
  projectPromise = null;
166
194
  },
@@ -173,6 +201,7 @@ function createViteTamaguiLoader(optionsIn = {}) {
173
201
  },
174
202
  async cleanup() {
175
203
  try {
204
+ await loadingProject?.catch(() => {});
176
205
  if (ownsEnvironment && environment) {
177
206
  await environment.close();
178
207
  }
@@ -182,6 +211,10 @@ function createViteTamaguiLoader(optionsIn = {}) {
182
211
  loadPromise = null;
183
212
  loadedOptions = null;
184
213
  projectPromise = null;
214
+ loadingProject = null;
215
+ invalidatedFiles.clear();
216
+ evaluationDependencies.clear();
217
+ stampSources.clear();
185
218
  }
186
219
  }
187
220
  };
@@ -1 +1 @@
1
- {"version":3,"file":"loadTamagui.js","names":[],"sources":["esm/loadTamagui.js"],"sourcesContent":["import Static from \"@tamagui/static\";\nimport { createRequire } from \"node:module\";\nimport path from \"node:path\";\nconst TAMAGUI_EVALUATION_ENVIRONMENT = \"tamagui\";\nconst requireFromLoader = createRequire(\n typeof __filename === \"string\" ? __filename : import.meta.url\n);\nconst vitePluginVersions = [\n `@tamagui/vite-plugin@${requireFromLoader(\"@tamagui/vite-plugin/package.json\").version}`\n];\nfunction createViteTamaguiLoader(optionsIn = {}) {\n let environment = null;\n let ownsEnvironment = false;\n let loadPromise = null;\n let loadedOptions = null;\n let projectPromise = null;\n const evaluationDependencies = /* @__PURE__ */ new Set();\n const stampSources = /* @__PURE__ */ new Set();\n let generation = 0;\n const normalizeDependency = (id) => id.split(\"?\")[0];\n const captureEvaluationDependencies = (modules) => {\n stampSources.clear();\n for (const { id } of modules) {\n const dependency = normalizeDependency(id);\n if (path.isAbsolute(dependency)) {\n evaluationDependencies.add(dependency);\n stampSources.add(dependency);\n }\n }\n if (environment) {\n for (const module of environment.runner.evaluatedModules.urlToIdModuleMap.values()) {\n const dependency = normalizeDependency(module.file);\n if (!path.isAbsolute(dependency)) continue;\n stampSources.add(dependency);\n if (!dependency.includes(\"/node_modules/\")) {\n evaluationDependencies.add(dependency);\n }\n }\n }\n };\n const loadTamaguiBuildConfig = async () => {\n if (loadedOptions) return loadedOptions;\n if (loadPromise) return loadPromise;\n loadPromise = Static.loadTamaguiBuildConfigAsync({\n ...optionsIn,\n platform: \"web\"\n }).then((options) => {\n loadedOptions = options;\n return options;\n });\n return loadPromise;\n };\n const resolveAndImport = async (moduleName, root, kind) => {\n if (!environment) {\n throw new Error(\n `The Tamagui Vite evaluation environment is not ready. Config and component evaluation requires Vite's ModuleRunner.`\n );\n }\n const source = path.isAbsolute(moduleName) ? moduleName : kind === \"config\" || moduleName.startsWith(\".\") ? path.resolve(root, moduleName) : moduleName;\n let environmentResolution = await environment.pluginContainer.resolveId(source);\n if (!environmentResolution && kind === \"config\" && source !== moduleName) {\n environmentResolution = await environment.pluginContainer.resolveId(moduleName);\n }\n const resolvedId = environmentResolution?.id;\n if (!resolvedId) {\n throw new Error(\n `Unable to resolve ${moduleName} in the Tamagui Vite environment (plugins: ${environment.plugins.map((plugin) => plugin.name).join(\", \")})`\n );\n }\n return {\n moduleName,\n id: resolvedId,\n module: await environment.runner.import(resolvedId)\n };\n };\n const evaluateProjectModules = async (options) => {\n if (!environment) {\n throw new Error(\n `Cannot evaluate Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`\n );\n }\n const root = environment.config.root;\n const config = await resolveAndImport(\n options.config || \"tamagui.config.ts\",\n root,\n \"config\"\n );\n const components = await Promise.all(\n (options.components || []).map((name) => resolveAndImport(name, root, \"component\"))\n );\n captureEvaluationDependencies([config, ...components]);\n return { config, components };\n };\n const loadProject = async (options) => {\n if (projectPromise) return projectPromise;\n projectPromise = (async () => {\n if (!environment) {\n throw new Error(\n `Cannot load Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`\n );\n }\n let evaluated = null;\n return Static.loadCompilerProject({\n root: environment.config.root,\n target: \"web\",\n options,\n generation: `vite:${generation}`,\n hostVersions: vitePluginVersions,\n async load(normalizedOptions) {\n evaluated = await evaluateProjectModules(normalizedOptions);\n return Static.loadTamaguiFromModules(normalizedOptions, {\n config: evaluated.config.module,\n components: evaluated.components.map(({ moduleName, module }) => ({\n moduleName,\n module\n })),\n stampSources: [...stampSources]\n });\n },\n async resolveComponents(moduleNames) {\n if (!evaluated) {\n throw new Error(\"The Tamagui compiler project modules were not evaluated\");\n }\n const byName = new Map(\n evaluated.components.map(({ moduleName, id }) => [moduleName, id])\n );\n return moduleNames.map((moduleName) => {\n const id = byName.get(moduleName);\n if (!id) throw new Error(`Unable to resolve compiler component ${moduleName}`);\n return { moduleName, id };\n });\n }\n });\n })();\n return projectPromise;\n };\n return {\n getEnvironment: () => environment,\n getGeneration: () => generation,\n getLoadPromise: () => loadPromise,\n getTamaguiOptions: () => loadedOptions,\n async getTamaguiConfig() {\n const options = await loadTamaguiBuildConfig();\n if (options.disable) return null;\n return (await loadProject(options)).projectInfo.tamaguiConfig;\n },\n async getCompilerProject() {\n const options = await loadTamaguiBuildConfig();\n return loadProject(options);\n },\n getEvaluationDependencies: () => [...evaluationDependencies],\n isEvaluationDependency: (id) => evaluationDependencies.has(normalizeDependency(id)),\n evaluateProjectModules,\n async evaluateModule(id) {\n if (!environment) return null;\n try {\n return await environment.runner.import(id);\n } catch (error) {\n if (process.env.DEBUG === \"tamagui\") {\n console.info(`[tamagui] component discovery skipped ${id}:`, error);\n }\n return null;\n }\n },\n loadTamaguiBuildConfig,\n setEnvironment(next, options) {\n if (environment === next) return;\n environment = next;\n ownsEnvironment = options?.owned === true;\n generation++;\n projectPromise = null;\n },\n invalidate(file) {\n if (file && environment) {\n environment.runner.clearCache();\n }\n generation++;\n projectPromise = null;\n },\n async ensureFullConfigLoaded() {\n const options = await loadTamaguiBuildConfig();\n if (!options.disable) {\n await loadProject(options);\n }\n return [...evaluationDependencies];\n },\n async cleanup() {\n try {\n if (ownsEnvironment && environment) {\n await environment.close();\n }\n } finally {\n environment = null;\n ownsEnvironment = false;\n loadPromise = null;\n loadedOptions = null;\n projectPromise = null;\n }\n }\n };\n}\nexport {\n TAMAGUI_EVALUATION_ENVIRONMENT,\n createViteTamaguiLoader\n};\n//# sourceMappingURL=loadTamagui.js.map\n"],"mappings":";;;;;AAGA,MAAM,iCAAiC;AACvC,MAAM,oBAAoB,cACxB,OAAO,eAAe,WAAW,aAAa,YAAY,GAC5D;AACA,MAAM,qBAAqB,CACzB,wBAAwB,kBAAkB,mCAAmC,CAAC,CAAC,SACjF;AACA,SAAS,wBAAwB,YAAY,CAAC,GAAG;CAC/C,IAAI,cAAc;CAClB,IAAI,kBAAkB;CACtB,IAAI,cAAc;CAClB,IAAI,gBAAgB;CACpB,IAAI,iBAAiB;CACrB,MAAM,yCAAyC,IAAI,IAAI;CACvD,MAAM,+BAA+B,IAAI,IAAI;CAC7C,IAAI,aAAa;CACjB,MAAM,uBAAuB,OAAO,GAAG,MAAM,GAAG,CAAC,CAAC;CAClD,MAAM,iCAAiC,YAAY;EACjD,aAAa,MAAM;EACnB,KAAK,MAAM,EAAE,QAAQ,SAAS;GAC5B,MAAM,aAAa,oBAAoB,EAAE;GACzC,IAAI,KAAK,WAAW,UAAU,GAAG;IAC/B,uBAAuB,IAAI,UAAU;IACrC,aAAa,IAAI,UAAU;GAC7B;EACF;EACA,IAAI,aAAa;GACf,KAAK,MAAM,UAAU,YAAY,OAAO,iBAAiB,iBAAiB,OAAO,GAAG;IAClF,MAAM,aAAa,oBAAoB,OAAO,IAAI;IAClD,IAAI,CAAC,KAAK,WAAW,UAAU,GAAG;IAClC,aAAa,IAAI,UAAU;IAC3B,IAAI,CAAC,WAAW,SAAS,gBAAgB,GAAG;KAC1C,uBAAuB,IAAI,UAAU;IACvC;GACF;EACF;CACF;CACA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BAAsB;EAC3D,yBAAyB,OAAO,uBAAuB,IAAI,oBAAoB,EAAE,CAAC;EAClF;EACA,MAAM,eAAe,IAAI;GACvB,IAAI,CAAC,aAAa,OAAO;GACzB,IAAI;IACF,OAAO,MAAM,YAAY,OAAO,OAAO,EAAE;GAC3C,SAAS,OAAO;IACd,IAAI,QAAQ,IAAI,UAAU,WAAW;KACnC,QAAQ,KAAK,yCAAyC,GAAG,IAAI,KAAK;IACpE;IACA,OAAO;GACT;EACF;EACA;EACA,eAAe,MAAM,SAAS;GAC5B,IAAI,gBAAgB,MAAM;GAC1B,cAAc;GACd,kBAAkB,SAAS,UAAU;GACrC;GACA,iBAAiB;EACnB;EACA,WAAW,MAAM;GACf,IAAI,QAAQ,aAAa;IACvB,YAAY,OAAO,WAAW;GAChC;GACA;GACA,iBAAiB;EACnB;EACA,MAAM,yBAAyB;GAC7B,MAAM,UAAU,MAAM,uBAAuB;GAC7C,IAAI,CAAC,QAAQ,SAAS;IACpB,MAAM,YAAY,OAAO;GAC3B;GACA,OAAO,CAAC,GAAG,sBAAsB;EACnC;EACA,MAAM,UAAU;GACd,IAAI;IACF,IAAI,mBAAmB,aAAa;KAClC,MAAM,YAAY,MAAM;IAC1B;GACF,UAAU;IACR,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,gBAAgB;IAChB,iBAAiB;GACnB;EACF;CACF;AACF"}
1
+ {"version":3,"file":"loadTamagui.js","names":[],"sources":["esm/loadTamagui.js"],"sourcesContent":["import Static from \"@tamagui/static\";\nimport { createRequire } from \"node:module\";\nimport path from \"node:path\";\nconst TAMAGUI_EVALUATION_ENVIRONMENT = \"tamagui\";\nconst requireFromLoader = createRequire(\n typeof __filename === \"string\" ? __filename : import.meta.url\n);\nconst vitePluginVersions = [\n `@tamagui/vite-plugin@${requireFromLoader(\"@tamagui/vite-plugin/package.json\").version}`\n];\nfunction createViteTamaguiLoader(optionsIn = {}) {\n let environment = null;\n let ownsEnvironment = false;\n let loadPromise = null;\n let loadedOptions = null;\n let projectPromise = null;\n let loadingProject = null;\n const invalidatedFiles = /* @__PURE__ */ new Set();\n const evaluationDependencies = /* @__PURE__ */ new Set();\n const stampSources = /* @__PURE__ */ new Set();\n let generation = 0;\n const normalizeDependency = (id) => id.split(\"?\")[0];\n const captureEvaluationDependencies = (modules) => {\n evaluationDependencies.clear();\n stampSources.clear();\n for (const { id } of modules) {\n const dependency = normalizeDependency(id);\n if (path.isAbsolute(dependency)) {\n evaluationDependencies.add(dependency);\n stampSources.add(dependency);\n }\n }\n if (environment) {\n for (const module of environment.runner.evaluatedModules.urlToIdModuleMap.values()) {\n const dependency = normalizeDependency(module.file);\n if (!path.isAbsolute(dependency)) continue;\n stampSources.add(dependency);\n if (!dependency.includes(\"/node_modules/\")) {\n evaluationDependencies.add(dependency);\n }\n }\n }\n };\n const loadTamaguiBuildConfig = async () => {\n if (loadedOptions) return loadedOptions;\n if (loadPromise) return loadPromise;\n loadPromise = Static.loadTamaguiBuildConfigAsync({\n ...optionsIn,\n platform: \"web\"\n }).then((options) => {\n loadedOptions = options;\n return options;\n });\n return loadPromise;\n };\n const resolveAndImport = async (moduleName, root, kind) => {\n if (!environment) {\n throw new Error(\n `The Tamagui Vite evaluation environment is not ready. Config and component evaluation requires Vite's ModuleRunner.`\n );\n }\n const source = path.isAbsolute(moduleName) ? moduleName : kind === \"config\" || moduleName.startsWith(\".\") ? path.resolve(root, moduleName) : moduleName;\n let environmentResolution = await environment.pluginContainer.resolveId(source);\n if (!environmentResolution && kind === \"config\" && source !== moduleName) {\n environmentResolution = await environment.pluginContainer.resolveId(moduleName);\n }\n const resolvedId = environmentResolution?.id;\n if (!resolvedId) {\n throw new Error(\n `Unable to resolve ${moduleName} in the Tamagui Vite environment (plugins: ${environment.plugins.map((plugin) => plugin.name).join(\", \")})`\n );\n }\n return {\n moduleName,\n id: resolvedId,\n module: await environment.runner.import(resolvedId)\n };\n };\n const evaluateProjectModules = async (options) => {\n if (!environment) {\n throw new Error(\n `Cannot evaluate Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`\n );\n }\n const root = environment.config.root;\n const config = await resolveAndImport(\n options.config || \"tamagui.config.ts\",\n root,\n \"config\"\n );\n const components = await Promise.all(\n (options.components || []).map((name) => resolveAndImport(name, root, \"component\"))\n );\n captureEvaluationDependencies([config, ...components]);\n return { config, components };\n };\n const loadProject = async (options) => {\n if (projectPromise) return projectPromise;\n const previous = loadingProject;\n const projectGeneration = generation;\n const changedFiles = [...invalidatedFiles];\n invalidatedFiles.clear();\n projectPromise = (async () => {\n try {\n await previous;\n } catch {\n }\n if (!environment) {\n throw new Error(\n `Cannot load Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`\n );\n }\n for (const file of changedFiles) {\n const evaluated2 = environment.runner.evaluatedModules;\n const affected = new Set(evaluated2.getModulesByFile(file));\n for (const module of affected) {\n for (const importer of module.importers) {\n const parent = evaluated2.getModuleById(importer);\n if (parent) affected.add(parent);\n }\n evaluated2.invalidateModule(module);\n }\n }\n let evaluated = null;\n return Static.loadCompilerProject({\n root: environment.config.root,\n target: \"web\",\n options,\n generation: `vite:${projectGeneration}`,\n hostVersions: vitePluginVersions,\n async load(normalizedOptions) {\n evaluated = await evaluateProjectModules(normalizedOptions);\n return Static.loadTamaguiFromModules(normalizedOptions, {\n config: evaluated.config.module,\n components: evaluated.components.map(({ moduleName, module }) => ({\n moduleName,\n module\n })),\n stampSources: [...stampSources]\n });\n },\n async resolveComponents(moduleNames) {\n if (!evaluated) {\n throw new Error(\"The Tamagui compiler project modules were not evaluated\");\n }\n const byName = new Map(\n evaluated.components.map(({ moduleName, id }) => [moduleName, id])\n );\n return moduleNames.map((moduleName) => {\n const id = byName.get(moduleName);\n if (!id) throw new Error(`Unable to resolve compiler component ${moduleName}`);\n return { moduleName, id };\n });\n }\n });\n })();\n loadingProject = projectPromise;\n const pending = projectPromise;\n try {\n return await pending;\n } catch (error) {\n if (projectPromise === pending) projectPromise = null;\n throw error;\n } finally {\n if (loadingProject === pending) loadingProject = null;\n }\n };\n return {\n getEnvironment: () => environment,\n getGeneration: () => generation,\n getLoadPromise: () => loadPromise,\n getTamaguiOptions: () => loadedOptions,\n async getTamaguiConfig() {\n const options = await loadTamaguiBuildConfig();\n if (options.disable) return null;\n return (await loadProject(options)).projectInfo.tamaguiConfig;\n },\n async getCompilerProject() {\n const options = await loadTamaguiBuildConfig();\n return loadProject(options);\n },\n getEvaluationDependencies: () => [...evaluationDependencies],\n isEvaluationDependency: (id) => evaluationDependencies.has(normalizeDependency(id)),\n evaluateProjectModules,\n async evaluateModule(id) {\n if (!environment) return null;\n try {\n return await environment.runner.import(id);\n } catch (error) {\n if (process.env.DEBUG === \"tamagui\") {\n console.info(`[tamagui] component discovery skipped ${id}:`, error);\n }\n return null;\n }\n },\n loadTamaguiBuildConfig,\n setEnvironment(next, options) {\n if (environment === next) return;\n environment = next;\n ownsEnvironment = options?.owned === true;\n generation++;\n projectPromise = null;\n },\n invalidate(file) {\n if (file) invalidatedFiles.add(normalizeDependency(file));\n generation++;\n projectPromise = null;\n },\n async ensureFullConfigLoaded() {\n const options = await loadTamaguiBuildConfig();\n if (!options.disable) {\n await loadProject(options);\n }\n return [...evaluationDependencies];\n },\n async cleanup() {\n try {\n await loadingProject?.catch(() => {\n });\n if (ownsEnvironment && environment) {\n await environment.close();\n }\n } finally {\n environment = null;\n ownsEnvironment = false;\n loadPromise = null;\n loadedOptions = null;\n projectPromise = null;\n loadingProject = null;\n invalidatedFiles.clear();\n evaluationDependencies.clear();\n stampSources.clear();\n }\n }\n };\n}\nexport {\n TAMAGUI_EVALUATION_ENVIRONMENT,\n createViteTamaguiLoader\n};\n//# sourceMappingURL=loadTamagui.js.map\n"],"mappings":";;;;;AAGA,MAAM,iCAAiC;AACvC,MAAM,oBAAoB,cACxB,OAAO,eAAe,WAAW,aAAa,YAAY,GAC5D;AACA,MAAM,qBAAqB,CACzB,wBAAwB,kBAAkB,mCAAmC,CAAC,CAAC,SACjF;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createRequire } from "node:module";
7
7
  import path from "node:path";
8
8
  import { fileURLToPath } from "node:url";
9
- import { createFilter, createIdResolver, createRunnableDevEnvironment, defaultClientConditions, defaultClientMainFields, isRunnableDevEnvironment, resolveConfig } from "vite";
9
+ import { createFilter, createIdResolver, createRunnableDevEnvironment, defaultClientConditions, defaultClientMainFields, resolveConfig } from "vite";
10
10
  import { TAMAGUI_EVALUATION_ENVIRONMENT, createViteTamaguiLoader } from "./loadTamagui.mjs";
11
11
  import { createCompilerStatsReport, formatCompilerStatsReport } from "./compilerStats.mjs";
12
12
  import { ZERO_CSS_FILENAME, ZERO_ISLAND_DIRNAME, assertZeroGraph, buildIsland, createZeroRuntimeController, finalizeZeroCSS, zeroModuleKey } from "./zeroRuntime.mjs";
@@ -474,7 +474,9 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
474
474
  },
475
475
  dev: {
476
476
  createEnvironment(name, resolved) {
477
- return createRunnableDevEnvironment(name, createServeEvaluationConfig(resolved, configuredEvaluationPackages));
477
+ const environment = createRunnableDevEnvironment(name, createServeEvaluationConfig(resolved, configuredEvaluationPackages), { hot: false });
478
+ tamaguiLoader.setEnvironment(environment);
479
+ return environment;
478
480
  },
479
481
  moduleRunnerTransform: true
480
482
  }
@@ -540,9 +542,6 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
540
542
  enforce: "pre",
541
543
  configureServer(_server) {
542
544
  server = _server;
543
- const evaluationEnvironment = server.environments[TAMAGUI_EVALUATION_ENVIRONMENT];
544
- if (!isRunnableDevEnvironment(evaluationEnvironment)) throw new Error(`The ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment must support ModuleRunner evaluation`);
545
- tamaguiLoader.setEnvironment(evaluationEnvironment);
546
545
  },
547
546
  async buildEnd() {
548
547
  await releaseBuildEnvironment(this.environment);
@@ -659,7 +658,13 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
659
658
  },
660
659
  async buildStart() {
661
660
  const buildConfig = this.environment.getTopLevelConfig();
662
- if (buildConfig.command !== "build") return;
661
+ if (buildConfig.command !== "build") {
662
+ if (this.environment.name === "client") {
663
+ const dependencies = await tamaguiLoader.ensureFullConfigLoaded();
664
+ for (const dependency of dependencies) this.addWatchFile(dependency);
665
+ }
666
+ return;
667
+ }
663
668
  const pendingCleanup = buildCleanupPromise;
664
669
  if (pendingCleanup) await pendingCleanup;
665
670
  const buildEnvironment = this.environment;
@@ -752,6 +757,8 @@ function createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) =
752
757
  tamaguiLoader.invalidate(options.file);
753
758
  invalidateCompilerModules();
754
759
  }
760
+ const dependencies = await tamaguiLoader.ensureFullConfigLoaded();
761
+ server.watcher.add(dependencies);
755
762
  if (this.environment.name === "client" && compilerHotReloadSignatures.get(options.file) !== signature) {
756
763
  compilerHotReloadSignatures.set(options.file, signature);
757
764
  this.environment.hot.send({
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","names":[],"sources":["esm/plugin.js"],"sourcesContent":["import Static from \"@tamagui/static\";\nimport { createHash } from \"node:crypto\";\nimport { existsSync, readFileSync, readdirSync, writeFileSync } from \"node:fs\";\nimport { gzipSync } from \"node:zlib\";\nimport { readFile } from \"node:fs/promises\";\nimport { createRequire } from \"node:module\";\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { createFilter, createIdResolver, createRunnableDevEnvironment, defaultClientConditions, defaultClientMainFields, isRunnableDevEnvironment, resolveConfig } from \"vite\";\nimport { TAMAGUI_EVALUATION_ENVIRONMENT, createViteTamaguiLoader } from \"./loadTamagui\";\nimport { createCompilerStatsReport, formatCompilerStatsReport } from \"./compilerStats\";\nimport { ZERO_CSS_FILENAME, ZERO_ISLAND_DIRNAME, assertZeroGraph, buildIsland, createZeroRuntimeController, finalizeZeroCSS, zeroModuleKey } from \"./zeroRuntime\";\n\nconst environmentSpecificTransformPluginNames = /* @__PURE__ */ new Set([\"one:compiler\", \"one:compiler-css-to-js\"]);\nconst oneTsconfigPathsPluginName = \"one:tsconfig-paths\";\nconst bareTamaguiPackage = /^@tamagui\\/[^/?#]+(?:[/?#]|$)/;\nconst inlineEvaluationTamaguiPackage = /^@tamagui\\/(?:config|core|slider|web)(?:[/?#]|$)/;\nconst externalizablePackageExtensions = /* @__PURE__ */ new Set([\n\t\"\",\n\t\".js\",\n\t\".mjs\",\n\t\".cjs\"\n]);\nconst TAMAGUI_COMPILER_CONDITION = \"tamagui-compiler\";\nfunction packageDeclaresCompilerCondition(packageDir) {\n\tconst manifest = path.join(packageDir, \"package.json\");\n\tif (!existsSync(manifest)) return false;\n\ttry {\n\t\tconst exports = JSON.parse(readFileSync(manifest, \"utf8\")).exports;\n\t\treturn JSON.stringify(exports ?? null).includes(`\"${TAMAGUI_COMPILER_CONDITION}\"`);\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction mergeEvaluationNoExternal(required, userNoExternal) {\n\tif (userNoExternal === true) return true;\n\tif (!userNoExternal) return required;\n\treturn [...required, ...Array.isArray(userNoExternal) ? userNoExternal : [userNoExternal]];\n}\nfunction createEvaluationResolveId(plugin, resolveBarePackage) {\n\tconst resolveId = plugin.resolveId;\n\tif (plugin.name !== oneTsconfigPathsPluginName || !resolveId) return resolveId;\n\tconst handler = typeof resolveId === \"object\" ? resolveId.handler : resolveId;\n\tconst evaluationHandler = function(source, ...args) {\n\t\tif (bareTamaguiPackage.test(source)) {\n\t\t\tconst importer = typeof args[0] === \"string\" ? args[0] : void 0;\n\t\t\treturn resolveBarePackage?.(this.environment, source, importer);\n\t\t}\n\t\treturn Reflect.apply(handler, this, [source, ...args]);\n\t};\n\treturn typeof resolveId === \"object\" ? {\n\t\t...resolveId,\n\t\thandler: evaluationHandler\n\t} : evaluationHandler;\n}\nfunction createEvaluationPluginFacade(plugin, resolveBarePackage) {\n\treturn {\n\t\tname: plugin.name,\n\t\tenforce: plugin.enforce,\n\t\tresolveId: createEvaluationResolveId(plugin, resolveBarePackage),\n\t\tload: plugin.load,\n\t\ttransform: environmentSpecificTransformPluginNames.has(plugin.name) ? void 0 : plugin.transform\n\t};\n}\nconst tamaguiEvaluationPluginNames = /* @__PURE__ */ new Set([\n\t\"tamagui\",\n\t\"tamagui-extract\",\n\t\"tamagui-rnw-lite\"\n]);\nfunction isEvaluationUserPlugin(plugin) {\n\treturn !!(plugin.resolveId || plugin.load || plugin.transform) && plugin.name !== \"alias\" && !plugin.name.startsWith(\"native:\") && !plugin.name.startsWith(\"vite:\") && !plugin.name.startsWith(\"builtin:vite-\") && !tamaguiEvaluationPluginNames.has(plugin.name);\n}\nfunction isEvaluationCorePlugin(plugin) {\n\treturn plugin.name === \"alias\" || plugin.name.startsWith(\"vite:\") || plugin.name.startsWith(\"builtin:vite-\");\n}\nfunction isConfiguredEvaluationPackage(source, packages) {\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\treturn [...packages].some((packageName) => cleanSource === packageName || cleanSource.startsWith(`${packageName}/`));\n}\nfunction getEvaluationPackageName(source) {\n\tif (!source) return;\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\tif (!cleanSource || cleanSource.startsWith(\".\") || cleanSource.startsWith(\"#\") || cleanSource.startsWith(\"\\0\") || path.isAbsolute(cleanSource)) return;\n\tif (cleanSource.startsWith(\"@\")) {\n\t\tconst [scope, name2] = cleanSource.split(\"/\");\n\t\treturn scope && name2 ? `${scope}/${name2}` : void 0;\n\t}\n\tconst [name] = cleanSource.split(\"/\");\n\treturn name && !path.extname(name) ? name : void 0;\n}\nfunction scanInstalledTamaguiPackages(root, configuredEvaluationPackages) {\n\tconst packageRequire = createRequire(path.join(root, \"package.json\"));\n\tconst externalizable = /* @__PURE__ */ new Set();\n\tconst compilerCondition = /* @__PURE__ */ new Set();\n\tfor (const modulePath of packageRequire.resolve.paths(\"@tamagui/core\") || []) {\n\t\tconst scopePath = path.join(modulePath, \"@tamagui\");\n\t\tif (!existsSync(scopePath)) continue;\n\t\tfor (const entry of readdirSync(scopePath, { withFileTypes: true })) {\n\t\t\tif (!entry.isDirectory() && !entry.isSymbolicLink()) continue;\n\t\t\tconst packageName = `@tamagui/${entry.name}`;\n\t\t\tif (inlineEvaluationTamaguiPackage.test(packageName) || configuredEvaluationPackages.has(packageName)) continue;\n\t\t\tif (packageDeclaresCompilerCondition(path.join(scopePath, entry.name))) compilerCondition.add(packageName);\n\t\t\telse externalizable.add(packageName);\n\t\t}\n\t}\n\treturn {\n\t\texternalizable,\n\t\tcompilerCondition\n\t};\n}\nfunction getEvaluationResolve(resolve2, root, disableTsconfigPaths, configuredEvaluationPackages) {\n\tconst noExternal = resolve2.noExternal;\n\tconst noExternalFilter = noExternal && noExternal !== true ? createFilter(void 0, noExternal, { resolve: false }) : void 0;\n\tconst isNoExternalPackage = noExternal === true ? () => true : noExternalFilter ? (packageName) => !noExternalFilter(packageName) : () => false;\n\treturn {\n\t\t...resolve2,\n\t\texternal: resolve2.external === true ? true : [.../* @__PURE__ */ new Set([...(resolve2.external || []).filter((packageName) => !isConfiguredEvaluationPackage(packageName, configuredEvaluationPackages)), ...[...scanInstalledTamaguiPackages(root, configuredEvaluationPackages).externalizable].filter((packageName) => !isNoExternalPackage(packageName))])],\n\t\t...disableTsconfigPaths && { tsconfigPaths: false }\n\t};\n}\nfunction isConfiguredExternalPackage(source, external) {\n\tif (external === true) return true;\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\treturn external?.some((packageName) => cleanSource === packageName || cleanSource.startsWith(`${packageName}/`));\n}\nfunction createServeEvaluationConfig(config, configuredEvaluationPackages) {\n\tconst environment = config.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\tlet packageResolver;\n\tconst resolveBarePackage = async (evaluationEnvironment, source, importer) => {\n\t\tconst resolved = await packageResolver?.(evaluationEnvironment, source, importer);\n\t\tif (!resolved) return;\n\t\tconst cleanResolved = resolved.split(/[?#]/, 1)[0];\n\t\tif (!inlineEvaluationTamaguiPackage.test(source) && !isConfiguredEvaluationPackage(source, configuredEvaluationPackages) && isConfiguredExternalPackage(source, evaluationEnvironment.config.resolve.external)) return {\n\t\t\tid: source,\n\t\t\texternal: true\n\t\t};\n\t\tif (inlineEvaluationTamaguiPackage.test(source) || isConfiguredEvaluationPackage(source, configuredEvaluationPackages) || !normalizePath(cleanResolved).includes(\"/node_modules/\") || !externalizablePackageExtensions.has(path.extname(cleanResolved))) return resolved;\n\t\treturn {\n\t\t\tid: source,\n\t\t\texternal: true\n\t\t};\n\t};\n\tconst plugins = environment.plugins.flatMap((plugin) => {\n\t\tif (isEvaluationCorePlugin(plugin)) return [plugin];\n\t\tif (isEvaluationUserPlugin(plugin)) return [createEvaluationPluginFacade(plugin, resolveBarePackage)];\n\t\treturn [];\n\t});\n\tconst resolve2 = getEvaluationResolve(environment.resolve, config.root, plugins.some((plugin) => plugin.name === oneTsconfigPathsPluginName), configuredEvaluationPackages);\n\tconst evaluationConfig = {\n\t\t...config,\n\t\tenvironments: {\n\t\t\t...config.environments,\n\t\t\t[TAMAGUI_EVALUATION_ENVIRONMENT]: {\n\t\t\t\t...environment,\n\t\t\t\tplugins,\n\t\t\t\tresolve: resolve2\n\t\t\t}\n\t\t}\n\t};\n\tpackageResolver = createIdResolver(evaluationConfig);\n\treturn evaluationConfig;\n}\nasync function createOwnedEvaluationConfig(config, configuredEvaluationPackages) {\n\tconst environment = config.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\tconst plugins = environment.plugins.filter(isEvaluationUserPlugin).map((plugin) => createEvaluationPluginFacade(plugin));\n\tconst resolve2 = getEvaluationResolve(environment.resolve, config.root, plugins.some((plugin) => plugin.name === oneTsconfigPathsPluginName), configuredEvaluationPackages);\n\tconst { createEnvironment: _createEnvironment, ...dev } = environment.dev;\n\tconst { esbuildOptions: _esbuildOptions, ...optimizeDeps } = environment.optimizeDeps;\n\treturn resolveConfig({\n\t\tconfigFile: false,\n\t\troot: config.root,\n\t\tmode: config.mode,\n\t\tlogLevel: config.logLevel,\n\t\tplugins,\n\t\tdefine: environment.define,\n\t\tresolve: resolve2,\n\t\tenvironments: { [TAMAGUI_EVALUATION_ENVIRONMENT]: {\n\t\t\tconsumer: environment.consumer,\n\t\t\tkeepProcessEnv: environment.keepProcessEnv,\n\t\t\tdefine: environment.define,\n\t\t\tresolve: resolve2,\n\t\t\toptimizeDeps,\n\t\t\tdev: {\n\t\t\t\t...dev,\n\t\t\t\tmoduleRunnerTransform: true\n\t\t\t}\n\t\t} }\n\t}, \"serve\", config.mode);\n}\nconst _pluginRequire = createRequire(typeof __filename === \"string\" ? __filename : fileURLToPath(import.meta.url));\nconst resolve = (name) => _pluginRequire.resolve(name);\nconst normalizePath = (value) => value.replace(/\\\\/g, \"/\");\nconst PLUGIN_INSTANCE_KEY = \"__tamagui_vite_plugin_instance__\";\nfunction reportCompilerStats(root, reports) {\n\tconst report = createCompilerStatsReport(root, reports);\n\tconsole.info(formatCompilerStatsReport(report, process.env.TAMAGUI_COMPILER_STATS === \"verbose\"));\n\tif (process.env.TAMAGUI_COMPILER_STATS_FILE) {\n\t\tconst outputPath = path.resolve(root, process.env.TAMAGUI_COMPILER_STATS_FILE);\n\t\twriteFileSync(outputPath, `${JSON.stringify(report, null, 2)}\n`);\n\t\tconsole.info(`[tamagui] compiler stats JSON: ${path.relative(process.cwd(), outputPath)}`);\n\t}\n}\nfunction getNextPluginInstanceId() {\n\tconst next = (globalThis[PLUGIN_INSTANCE_KEY] || 0) + 1;\n\tglobalThis[PLUGIN_INSTANCE_KEY] = next;\n\treturn next;\n}\nfunction isInstalled(projectRoot, id) {\n\ttry {\n\t\tcreateRequire(path.join(projectRoot, \"package.json\")).resolve(id);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction addIfInstalled(userConf, projectRoot, ids) {\n\tconst root = projectRoot || process.cwd();\n\tuserConf.optimizeDeps ||= {};\n\tuserConf.optimizeDeps.include ||= [];\n\tfor (const id of ids) if (!userConf.optimizeDeps.include.includes(id) && isInstalled(root, id)) userConf.optimizeDeps.include.push(id);\n}\nfunction svgWebEntry() {\n\treturn normalizePath(path.join(path.dirname(resolve(\"@tamagui/react-native-svg/package.json\")), \"dist/esm/index.mjs\"));\n}\nfunction tamaguiAliases(options = {}) {\n\tconst aliases = [];\n\tif (options.svg) {\n\t\tconst svg = svgWebEntry();\n\t\taliases.push({\n\t\t\tfind: \"react-native-svg\",\n\t\t\treplacement: svg\n\t\t}, {\n\t\t\tfind: \"@tamagui/react-native-svg\",\n\t\t\treplacement: svg\n\t\t});\n\t}\n\tif (options.rnwLite) {\n\t\tconst rnwlBase = path.dirname(resolve(\"@tamagui/react-native-web-lite/package.json\"));\n\t\tconst rnwl = normalizePath(path.join(rnwlBase, options.rnwLite === \"without-animated\" ? \"dist/esm/without-animated.mjs\" : \"dist/esm/index.mjs\"));\n\t\tconst rnwlFlatModules = readdirSync(path.join(rnwlBase, \"dist/esm\")).filter((file) => file.endsWith(\".mjs\")).map((file) => file.slice(0, -4)).filter((name) => /^[A-Za-z0-9_]+$/.test(name));\n\t\taliases.push({\n\t\t\tfind: new RegExp(`^react-native(?:-web)?\\\\/dist\\\\/(?:exports|modules)\\\\/(?:.*\\\\/)?(${rnwlFlatModules.join(\"|\")})$`),\n\t\t\treplacement: `${normalizePath(rnwlBase)}/dist/esm/$1.mjs`\n\t\t}, {\n\t\t\tfind: /^react-native$/,\n\t\t\treplacement: rnwl\n\t\t}, {\n\t\t\tfind: /^react-native\\/(Libraries\\/Utilities\\/codegenNativeComponent|Libraries\\/Utilities\\/codegenNativeCommand)$/,\n\t\t\treplacement: `${rnwlBase}/$1`\n\t\t}, {\n\t\t\tfind: \"react-native/package.json\",\n\t\t\treplacement: resolve(\"@tamagui/react-native-web-lite/package.json\")\n\t\t}, {\n\t\t\tfind: /^react-native-web$/,\n\t\t\treplacement: rnwl\n\t\t});\n\t}\n\treturn aliases;\n}\nfunction createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {\n\tlet compilerFrontend = new Static.CompilerFrontend();\n\tconst projectDependencies = /* @__PURE__ */ new Set();\n\tlet root = nativeContext?.root || process.cwd();\n\tlet projectPromise = null;\n\tlet nativeOptions = null;\n\tlet rebuildProject = false;\n\tlet generation = 0;\n\tconst loadProject = async (resolveModule) => {\n\t\tif (projectPromise) return projectPromise;\n\t\tconst shouldRebuild = rebuildProject;\n\t\trebuildProject = false;\n\t\tconst guarded = (async () => {\n\t\t\tprojectDependencies.clear();\n\t\t\tconst loadedOptions = await Static.loadTamaguiBuildConfigAsync({\n\t\t\t\t...tamaguiOptionsIn,\n\t\t\t\troot,\n\t\t\t\tplatform: \"native\",\n\t\t\t\toutputCSS: void 0\n\t\t\t});\n\t\t\tconst options = {\n\t\t\t\t...loadedOptions,\n\t\t\t\troot,\n\t\t\t\toutputCSS: void 0\n\t\t\t};\n\t\t\tnativeOptions = options;\n\t\t\tfor (const dependency of Static.getTamaguiBuildConfigDependencies(loadedOptions)) projectDependencies.add(normalizePath(dependency));\n\t\t\tif (options.disable || options.disableExtraction) return null;\n\t\t\tconst project = await Static.loadCompilerProject({\n\t\t\t\troot,\n\t\t\t\ttarget: \"native\",\n\t\t\t\toptions,\n\t\t\t\trebuild: shouldRebuild,\n\t\t\t\tgeneration: `vite-native:${generation + 1}`,\n\t\t\t\tmissingProjectMessage: \"Unable to load the Tamagui project for Vite native compilation\",\n\t\t\t\tasync resolveComponents(moduleNames) {\n\t\t\t\t\treturn Promise.all(moduleNames.map(async (moduleName) => {\n\t\t\t\t\t\tconst id = await resolveModule(moduleName);\n\t\t\t\t\t\tprojectDependencies.add(normalizePath(id.split(/[?#]/, 1)[0]));\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tmoduleName,\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t};\n\t\t\t\t\t}));\n\t\t\t\t}\n\t\t\t});\n\t\t\tfor (const dependency of project.projectInfo.dependencies ?? []) projectDependencies.add(normalizePath(dependency.split(/[?#]/, 1)[0]));\n\t\t\tconst configPath = options.config || \"tamagui.config.ts\";\n\t\t\tprojectDependencies.add(normalizePath(path.isAbsolute(configPath) ? configPath : path.resolve(root, configPath)));\n\t\t\tconst buildFile = options.buildFile || \"tamagui.build.ts\";\n\t\t\tprojectDependencies.add(normalizePath(path.isAbsolute(buildFile) ? buildFile : path.resolve(root, buildFile)));\n\t\t\tif (options.themeBuilder?.input) projectDependencies.add(normalizePath(path.isAbsolute(options.themeBuilder.input) ? options.themeBuilder.input : path.resolve(root, options.themeBuilder.input)));\n\t\t\tgeneration++;\n\t\t\treturn project;\n\t\t})().catch((error) => {\n\t\t\tif (projectPromise === guarded) projectPromise = null;\n\t\t\trebuildProject = true;\n\t\t\tthrow error;\n\t\t});\n\t\tprojectPromise = guarded;\n\t\treturn projectPromise;\n\t};\n\treturn {\n\t\tname: \"tamagui-native-compiler\",\n\t\tenforce: \"post\",\n\t\tconfigResolved(config) {\n\t\t\troot = config.root;\n\t\t},\n\t\twatchChange(id) {\n\t\t\tif (projectDependencies.has(normalizePath(id.split(/[?#]/, 1)[0]))) {\n\t\t\t\trebuildProject = true;\n\t\t\t\tprojectPromise = null;\n\t\t\t\tcompilerFrontend = new Static.CompilerFrontend();\n\t\t\t}\n\t\t},\n\t\ttransform: {\n\t\t\torder: \"pre\",\n\t\t\tasync handler(code, id) {\n\t\t\t\tconst environmentName = nativeContext?.platform || this.environment?.name;\n\t\t\t\tif (environmentName !== \"ios\" && environmentName !== \"android\") return;\n\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\tif (!validId || !/\\.[jt]sx$/.test(validId) || normalizePath(validId).split(\"/\").includes(\"node_modules\")) return;\n\t\t\t\tconst { shouldDisable } = await Static.getPragmaOptions({\n\t\t\t\t\tsource: code,\n\t\t\t\t\tpath: validId\n\t\t\t\t});\n\t\t\t\tif (shouldDisable) return;\n\t\t\t\tconst resolve2 = async (specifier, importer) => {\n\t\t\t\t\tconst resolution = await this.resolve(specifier, importer, { skipSelf: true });\n\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t} : null;\n\t\t\t\t};\n\t\t\t\tconst project = await loadProject(async (specifier) => {\n\t\t\t\t\tconst resolution = await resolve2(specifier, path.join(root, \"__tamagui_native.tsx\"));\n\t\t\t\t\tif (!resolution) throw new Error(`Unable to resolve native compiler component ${specifier}`);\n\t\t\t\t\treturn resolution.id;\n\t\t\t\t});\n\t\t\t\tif (!project) return;\n\t\t\t\tfor (const dependency of projectDependencies) this.addWatchFile(dependency);\n\t\t\t\tconst result = await compilerFrontend.compile({\n\t\t\t\t\tid: validId,\n\t\t\t\t\tsource: code,\n\t\t\t\t\troot,\n\t\t\t\t\ttarget: \"native\",\n\t\t\t\t\tproject,\n\t\t\t\t\tresolve: resolve2,\n\t\t\t\t\tevaluate: async ({ id: moduleId }) => nativeOptions ? Static.evaluateComponentModule(nativeOptions, moduleId) : null,\n\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfor (const dependency of result.plan.dependencies) if (path.isAbsolute(dependency)) this.addWatchFile(dependency);\n\t\t\t\tif (result.plan.css) throw new Error(`Native Tamagui compilation produced unexpected CSS for ${validId}`);\n\t\t\t\treturn result.output.changed ? {\n\t\t\t\t\tcode: result.output.code,\n\t\t\t\t\tmap: result.output.map\n\t\t\t\t} : void 0;\n\t\t\t}\n\t\t}\n\t};\n}\nfunction tamaguiNativePlugin(tamaguiOptionsIn = {}) {\n\tconst plugin = createTamaguiNativePlugin(tamaguiOptionsIn);\n\tconst api = plugin.api && typeof plugin.api === \"object\" ? plugin.api : {};\n\treturn {\n\t\t...plugin,\n\t\tapi: {\n\t\t\t...api,\n\t\t\tvxrnNative: (context) => createTamaguiNativePlugin(tamaguiOptionsIn, context)\n\t\t}\n\t};\n}\nfunction createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) => css, zeroIslandBuild, ...tamaguiOptionsIn } = {}) {\n\tlet shouldExtract = !tamaguiOptionsIn.disableExtraction;\n\tconst enableNativeEnv = !!globalThis.__vxrnEnableNativeEnv;\n\tconst tamaguiLoader = createViteTamaguiLoader(tamaguiOptionsIn);\n\tconst compilerFrontends = /* @__PURE__ */ new WeakMap();\n\tconst getCompilerFrontend = (environment) => {\n\t\tlet frontend = compilerFrontends.get(environment);\n\t\tif (!frontend) {\n\t\t\tfrontend = new Static.CompilerFrontend();\n\t\t\tcompilerFrontends.set(environment, frontend);\n\t\t}\n\t\treturn frontend;\n\t};\n\tconst pluginInstanceId = getNextPluginInstanceId();\n\tconst configuredEvaluationPackages = /* @__PURE__ */ new Set();\n\tlet buildEnvironmentPromise = null;\n\tlet buildCleanupPromise = null;\n\tconst activeBuildEnvironments = /* @__PURE__ */ new Set();\n\tconst compilerReports = process.env.TAMAGUI_COMPILER_STATS || process.env.TAMAGUI_COMPILER_STATS_FILE ? /* @__PURE__ */ new Map() : null;\n\tconst releaseBuildEnvironment = async (environment) => {\n\t\tif (!activeBuildEnvironments.delete(environment) || activeBuildEnvironments.size) return;\n\t\tif (compilerReports?.size) reportCompilerStats(config?.root ?? process.cwd(), compilerReports);\n\t\tconst currentCleanup = Promise.resolve().then(async () => {\n\t\t\ttry {\n\t\t\t\tawait tamaguiLoader.cleanup();\n\t\t\t} finally {\n\t\t\t\tbuildEnvironmentPromise = null;\n\t\t\t}\n\t\t});\n\t\tbuildCleanupPromise = currentCleanup;\n\t\ttry {\n\t\t\tawait currentCleanup;\n\t\t} finally {\n\t\t\tif (buildCleanupPromise === currentCleanup) buildCleanupPromise = null;\n\t\t}\n\t};\n\tconst extensions = [\n\t\t`.web.mjs`,\n\t\t`.web.js`,\n\t\t`.web.jsx`,\n\t\t`.web.ts`,\n\t\t`.web.tsx`,\n\t\t\".mjs\",\n\t\t\".js\",\n\t\t\".mts\",\n\t\t\".ts\",\n\t\t\".jsx\",\n\t\t\".tsx\",\n\t\t\".json\"\n\t];\n\tconst getEvaluationEnvironmentOptions = (resolvedRoot, userNoExternal) => ({\n\t\tconsumer: \"server\",\n\t\tkeepProcessEnv: true,\n\t\tdefine: {\n\t\t\t\"process.env.IS_STATIC\": JSON.stringify(\"is_static\"),\n\t\t\t\"process.env.TAMAGUI_IS_CLIENT\": JSON.stringify(false),\n\t\t\t\"process.env.TAMAGUI_IS_SERVER\": JSON.stringify(true),\n\t\t\t\"process.env.TAMAGUI_TARGET\": JSON.stringify(\"web\"),\n\t\t\t\"process.env.TAMAGUI_ENVIRONMENT\": JSON.stringify(TAMAGUI_EVALUATION_ENVIRONMENT),\n\t\t\t\"process.env.TAMAGUI_RUNTIME\": JSON.stringify(\"full\"),\n\t\t\t\"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"\"),\n\t\t\t\"process.env.VITE_ENVIRONMENT\": JSON.stringify(\"ssr\"),\n\t\t\t\"process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL\": JSON.stringify(\"1\")\n\t\t},\n\t\tresolve: {\n\t\t\tconditions: [TAMAGUI_COMPILER_CONDITION, ...defaultClientConditions],\n\t\t\tmainFields: [...defaultClientMainFields],\n\t\t\tnoExternal: mergeEvaluationNoExternal([\n\t\t\t\tinlineEvaluationTamaguiPackage,\n\t\t\t\t...configuredEvaluationPackages,\n\t\t\t\t...scanInstalledTamaguiPackages(resolvedRoot, configuredEvaluationPackages).compilerCondition\n\t\t\t], userNoExternal),\n\t\t\textensions\n\t\t},\n\t\tdev: {\n\t\t\tcreateEnvironment(name, resolved) {\n\t\t\t\treturn createRunnableDevEnvironment(name, createServeEvaluationConfig(resolved, configuredEvaluationPackages));\n\t\t\t},\n\t\t\tmoduleRunnerTransform: true\n\t\t}\n\t});\n\ttamaguiLoader.loadTamaguiBuildConfig();\n\tconst ensureLoaded = async () => {\n\t\tconst promise = tamaguiLoader.getLoadPromise();\n\t\tif (promise) await promise;\n\t\tconst options = tamaguiLoader.getTamaguiOptions();\n\t\tif (options) shouldExtract = !options.disableExtraction;\n\t\treturn options;\n\t};\n\tconst getHash = (input) => createHash(\"sha1\").update(input).digest(\"base64\");\n\tconst cssMap = /* @__PURE__ */ new Map();\n\tconst transformedModuleIds = /* @__PURE__ */ new Set();\n\tconst compilerHotUpdateSignatures = /* @__PURE__ */ new Map();\n\tconst compilerHotReloadSignatures = /* @__PURE__ */ new Map();\n\tlet config;\n\tlet server;\n\tlet zero = null;\n\tlet zeroReceipt = null;\n\tlet zeroBuildFailed = false;\n\tlet globalCSS = null;\n\tlet globalCSSExpected = null;\n\tlet zeroHtmlEntries = 0;\n\tlet zeroDevIslands = Promise.resolve();\n\tconst virtualExt = `.tamagui.css`;\n\tconst getAbsoluteVirtualFileId = (filePath) => {\n\t\tif (filePath.startsWith(config.root)) return filePath;\n\t\treturn normalizePath(path.join(config.root, filePath));\n\t};\n\tconst isAppJSXSource = (filePath) => {\n\t\tif (!/\\.[jt]sx$/.test(filePath)) return false;\n\t\tconst relative = path.relative(config.root, filePath);\n\t\treturn relative !== \"\" && relative !== \"..\" && !relative.startsWith(`..${path.sep}`) && !relative.split(path.sep).includes(\"node_modules\");\n\t};\n\tconst isFrameworkAnalysisRequest = (id) => id.includes(\"__react-router-build-client-route\");\n\tfunction isNotClient(environment) {\n\t\treturn environment?.name && environment.name !== \"client\";\n\t}\n\tconst isDevEnvironment = (environment) => environment.mode === \"dev\";\n\tfunction isNative(environment) {\n\t\treturn environment?.name && (environment.name === \"ios\" || environment.name === \"android\");\n\t}\n\tfunction invalidateCompilerModules() {\n\t\tif (server) {\n\t\t\tconst ids = /* @__PURE__ */ new Set([...transformedModuleIds, ...cssMap.keys()]);\n\t\t\tfor (const environment of Object.values(server.environments)) {\n\t\t\t\tif (environment.name === TAMAGUI_EVALUATION_ENVIRONMENT) continue;\n\t\t\t\tfor (const id of ids) {\n\t\t\t\t\tconst modules = environment.moduleGraph.getModulesByFile(id);\n\t\t\t\t\tif (!modules) continue;\n\t\t\t\t\tfor (const module of modules) environment.moduleGraph.invalidateModule(module);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcssMap.clear();\n\t}\n\treturn {\n\t\tplugins: [\n\t\t\t{\n\t\t\t\tname: \"tamagui\",\n\t\t\t\tenforce: \"pre\",\n\t\t\t\tconfigureServer(_server) {\n\t\t\t\t\tserver = _server;\n\t\t\t\t\tconst evaluationEnvironment = server.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\t\t\t\t\tif (!isRunnableDevEnvironment(evaluationEnvironment)) throw new Error(`The ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment must support ModuleRunner evaluation`);\n\t\t\t\t\ttamaguiLoader.setEnvironment(evaluationEnvironment);\n\t\t\t\t},\n\t\t\t\tasync buildEnd() {\n\t\t\t\t\tawait releaseBuildEnvironment(this.environment);\n\t\t\t\t},\n\t\t\t\tasync config(userConfig, env) {\n\t\t\t\t\tconst options = await ensureLoaded();\n\t\t\t\t\tif (!options) throw new Error(`No tamagui options loaded`);\n\t\t\t\t\tconst useReactNativeWebLite = tamaguiOptionsIn.useReactNativeWebLite ?? options.useReactNativeWebLite;\n\t\t\t\t\tfor (const source of [options.config, ...options.components || []]) {\n\t\t\t\t\t\tconst packageName = getEvaluationPackageName(source);\n\t\t\t\t\t\tif (packageName) configuredEvaluationPackages.add(packageName);\n\t\t\t\t\t}\n\t\t\t\t\tconst resolvedRoot = userConfig.root ? path.resolve(userConfig.root) : process.cwd();\n\t\t\t\t\tzero = zeroIslandBuild ? null : await createZeroRuntimeController(options, resolvedRoot, userConfig.base || \"/\");\n\t\t\t\t\tglobalCSS = zeroIslandBuild || env.command !== \"build\" ? null : Static.resolveGlobalCSSOwnership(options, resolvedRoot);\n\t\t\t\t\treturn {\n\t\t\t\t\t\tenvPrefix: [\"TAMAGUI_\"],\n\t\t\t\t\t\tenvironments: {\n\t\t\t\t\t\t\tclient: { define: {\n\t\t\t\t\t\t\t\t\"process.env.TAMAGUI_IS_CLIENT\": JSON.stringify(true),\n\t\t\t\t\t\t\t\t\"process.env.TAMAGUI_ENVIRONMENT\": \"\\\"client\\\"\",\n\t\t\t\t\t\t\t\t...zero?.isEnforcing && { \"process.env.TAMAGUI_RUNTIME\": JSON.stringify(\"zero\") },\n\t\t\t\t\t\t\t\t...globalCSS && { \"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"1\") }\n\t\t\t\t\t\t\t} },\n\t\t\t\t\t\t\tssr: { define: { ...globalCSS && { \"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"1\") } } },\n\t\t\t\t\t\t\t[TAMAGUI_EVALUATION_ENVIRONMENT]: getEvaluationEnvironmentOptions(resolvedRoot, userConfig.environments?.[TAMAGUI_EVALUATION_ENVIRONMENT]?.resolve?.noExternal)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdefine: {\n\t\t\t\t\t\t\t\"process.env.TAMAGUI_RUNTIME\": JSON.stringify(zeroIslandBuild ? \"island\" : \"full\"),\n\t\t\t\t\t\t\t_frameTimestamp: void 0,\n\t\t\t\t\t\t\t_WORKLET: false,\n\t\t\t\t\t\t\t__DEV__: `${env.mode === \"development\"}`,\n\t\t\t\t\t\t\t\"process.env.NODE_ENV\": JSON.stringify(process.env.NODE_ENV || env.mode),\n\t\t\t\t\t\t\t\"process.env.ENABLE_RSC\": JSON.stringify(process.env.ENABLE_RSC || \"\"),\n\t\t\t\t\t\t\t\"process.env.ENABLE_STEPS\": JSON.stringify(process.env.ENABLE_STEPS || \"\"),\n\t\t\t\t\t\t\t\"process.env.IS_STATIC\": JSON.stringify(false),\n\t\t\t\t\t\t\t...env.mode === \"production\" && { \"process.env.TAMAGUI_OPTIMIZE_THEMES\": JSON.stringify(true) }\n\t\t\t\t\t\t},\n\t\t\t\t\t\tresolve: disableResolveConfig || enableNativeEnv ? {} : {\n\t\t\t\t\t\t\textensions,\n\t\t\t\t\t\t\talias: { ...options.platform !== \"native\" && {\n\t\t\t\t\t\t\t\t\"react-native/Libraries/Renderer/shims/ReactFabric\": resolve(\"@tamagui/proxy-worm\"),\n\t\t\t\t\t\t\t\t\"react-native/Libraries/Utilities/codegenNativeComponent\": resolve(\"@tamagui/proxy-worm\"),\n\t\t\t\t\t\t\t\t\"react-native-svg\": svgWebEntry(),\n\t\t\t\t\t\t\t\t\"@tamagui/react-native-svg\": svgWebEntry(),\n\t\t\t\t\t\t\t\t...!useReactNativeWebLite && { \"react-native\": resolve(\"react-native-web\") }\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-rnw-lite\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tconfig() {\n\t\t\t\t\tif (enableNativeEnv) return {};\n\t\t\t\t\tconst options = tamaguiLoader.getTamaguiOptions();\n\t\t\t\t\tconst useReactNativeWebLite = tamaguiOptionsIn.useReactNativeWebLite ?? options?.useReactNativeWebLite;\n\t\t\t\t\tif (!useReactNativeWebLite) return {};\n\t\t\t\t\tconst include = [];\n\t\t\t\t\tfor (const dependency of [\"memoize-one\", \"@react-native/normalize-color\"]) if (isInstalled(process.cwd(), dependency)) include.push(dependency);\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresolve: { alias: tamaguiAliases({ rnwLite: useReactNativeWebLite }) },\n\t\t\t\t\t\tssr: { noExternal: [\n\t\t\t\t\t\t\t/^@tamagui\\//,\n\t\t\t\t\t\t\t\"tamagui\",\n\t\t\t\t\t\t\t\"react-native\",\n\t\t\t\t\t\t\t\"react-native-web\"\n\t\t\t\t\t\t] },\n\t\t\t\t\t\toptimizeDeps: {\n\t\t\t\t\t\t\texclude: [\"react-native-web\"],\n\t\t\t\t\t\t\tinclude\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-extract\",\n\t\t\t\tenforce: \"pre\",\n\t\t\t\tasync config(userConf) {\n\t\t\t\t\tawait ensureLoaded();\n\t\t\t\t\tuserConf.optimizeDeps ||= {};\n\t\t\t\t\tuserConf.optimizeDeps.include ||= [];\n\t\t\t\t\tuserConf.optimizeDeps.include.push(\"inline-style-prefixer\");\n\t\t\t\t\taddIfInstalled(userConf, userConf.root, [\"@react-native/normalize-color\"]);\n\t\t\t\t\taddIfInstalled(userConf, userConf.root, [\n\t\t\t\t\t\t\"@tamagui/core\",\n\t\t\t\t\t\t\"@tamagui/core/theme-update\",\n\t\t\t\t\t\t\"@tamagui/web\",\n\t\t\t\t\t\t\"@tamagui/web/theme-update\",\n\t\t\t\t\t\t\"@tamagui/animations-css\",\n\t\t\t\t\t\t\"@tamagui/animations-css/extras\",\n\t\t\t\t\t\t\"@tamagui/toast\",\n\t\t\t\t\t\t\"@tamagui/sheet\",\n\t\t\t\t\t\t\"@tamagui/sheet/controller\"\n\t\t\t\t\t]);\n\t\t\t\t\tuserConf.resolve ||= {};\n\t\t\t\t\tuserConf.resolve.dedupe ||= [];\n\t\t\t\t\tfor (const id of [\n\t\t\t\t\t\t\"tamagui\",\n\t\t\t\t\t\t\"@tamagui/core\",\n\t\t\t\t\t\t\"@tamagui/core/theme-update\",\n\t\t\t\t\t\t\"@tamagui/web\",\n\t\t\t\t\t\t\"@tamagui/web/theme-update\",\n\t\t\t\t\t\t\"@tamagui/animations-css\",\n\t\t\t\t\t\t\"@tamagui/toast\",\n\t\t\t\t\t\t\"@tamagui/sheet\"\n\t\t\t\t\t]) if (!userConf.resolve.dedupe.includes(id) && isInstalled(userConf.root || process.cwd(), id)) userConf.resolve.dedupe.push(id);\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tuserConf.optimizeDeps.include.push(\"@tamagui/core/inject-styles\");\n\t\t\t\t},\n\t\t\t\tasync configResolved(resolvedConfig) {\n\t\t\t\t\tconfig = resolvedConfig;\n\t\t\t\t},\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tconst buildConfig = this.environment.getTopLevelConfig();\n\t\t\t\t\tif (buildConfig.command !== \"build\") return;\n\t\t\t\t\tconst pendingCleanup = buildCleanupPromise;\n\t\t\t\t\tif (pendingCleanup) await pendingCleanup;\n\t\t\t\t\tconst buildEnvironment = this.environment;\n\t\t\t\t\tactiveBuildEnvironments.add(buildEnvironment);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!tamaguiLoader.getEnvironment()) {\n\t\t\t\t\t\t\tawait tamaguiLoader.loadTamaguiBuildConfig();\n\t\t\t\t\t\t\tbuildEnvironmentPromise ||= (async () => {\n\t\t\t\t\t\t\t\tconst evaluationEnvironment = createRunnableDevEnvironment(TAMAGUI_EVALUATION_ENVIRONMENT, await createOwnedEvaluationConfig(buildConfig, configuredEvaluationPackages), { hot: false });\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tawait evaluationEnvironment.init();\n\t\t\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\t\t\tawait evaluationEnvironment.close().catch(() => void 0);\n\t\t\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttamaguiLoader.setEnvironment(evaluationEnvironment, { owned: true });\n\t\t\t\t\t\t\t})();\n\t\t\t\t\t\t\tawait buildEnvironmentPromise;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tawait releaseBuildEnvironment(buildEnvironment);\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\thotUpdate: {\n\t\t\t\t\torder: \"post\",\n\t\t\t\t\tasync handler(options) {\n\t\t\t\t\t\tif (!tamaguiLoader.isEvaluationDependency(options.file)) {\n\t\t\t\t\t\t\tif (this.environment.name !== \"client\") return;\n\t\t\t\t\t\t\tconst compilerFrontend = getCompilerFrontend(this.environment);\n\t\t\t\t\t\t\tconst source = options.type === \"delete\" ? null : await options.read();\n\t\t\t\t\t\t\tconst affectedModules = /* @__PURE__ */ new Set();\n\t\t\t\t\t\t\tconst compilerHmrRoots = new Set(compilerFrontend.dependentsOf(options.file));\n\t\t\t\t\t\t\tif (compilerHmrRoots.size || compilerFrontend.has(options.file)) compilerHmrRoots.add(options.file);\n\t\t\t\t\t\t\tif (compilerFrontend.has(options.file) || compilerHmrRoots.size > 0) {\n\t\t\t\t\t\t\t\tif (!(await ensureLoaded())?.disable) {\n\t\t\t\t\t\t\t\t\tconst invalidatedIds = options.type === \"delete\" ? (await compilerFrontend.remove(options.file)).invalidatedIds : await compilerFrontend.update({\n\t\t\t\t\t\t\t\t\t\tid: options.file,\n\t\t\t\t\t\t\t\t\t\tsource,\n\t\t\t\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\t\t\t\t\tenvironment: this.environment.name,\n\t\t\t\t\t\t\t\t\t\tproject: {\n\t\t\t\t\t\t\t\t\t\t\t...await tamaguiLoader.getCompilerProject(),\n\t\t\t\t\t\t\t\t\t\t\tgeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tresolve: async (specifier, importer) => {\n\t\t\t\t\t\t\t\t\t\t\tconst resolution = await this.environment.pluginContainer.resolveId(specifier, importer);\n\t\t\t\t\t\t\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\t\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\t\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t\t\t\t\t\t\t} : null;\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tfor (const invalidatedId of invalidatedIds) {\n\t\t\t\t\t\t\t\t\t\tfor (const module of this.environment.moduleGraph.getModulesByFile(invalidatedId) ?? []) {\n\t\t\t\t\t\t\t\t\t\t\tthis.environment.moduleGraph.invalidateModule(module);\n\t\t\t\t\t\t\t\t\t\t\tif (compilerHmrRoots.has(invalidatedId) || module.isSelfAccepting) affectedModules.add(module);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tconst cssId = getAbsoluteVirtualFileId(`${invalidatedId}${virtualExt}`);\n\t\t\t\t\t\t\t\t\t\tconst cssModule = this.environment.moduleGraph.getModuleById(cssId);\n\t\t\t\t\t\t\t\t\t\tif (cssModule) {\n\t\t\t\t\t\t\t\t\t\t\tthis.environment.moduleGraph.invalidateModule(cssModule);\n\t\t\t\t\t\t\t\t\t\t\taffectedModules.add(cssModule);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn affectedModules.size ? [...affectedModules] : void 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst signature = await (async () => {\n\t\t\t\t\t\t\tif (options.type === \"delete\") return getHash(`${options.type}:${options.file}`);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\treturn getHash(`${options.type}:${options.file}:${await options.read()}`);\n\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\treturn getHash(`${options.type}:${options.file}:${options.timestamp}`);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})();\n\t\t\t\t\t\tif (compilerHotUpdateSignatures.get(options.file) !== signature) {\n\t\t\t\t\t\t\tcompilerHotUpdateSignatures.set(options.file, signature);\n\t\t\t\t\t\t\ttamaguiLoader.invalidate(options.file);\n\t\t\t\t\t\t\tinvalidateCompilerModules();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (this.environment.name === \"client\" && compilerHotReloadSignatures.get(options.file) !== signature) {\n\t\t\t\t\t\t\tcompilerHotReloadSignatures.set(options.file, signature);\n\t\t\t\t\t\t\tthis.environment.hot.send({\n\t\t\t\t\t\t\t\ttype: \"full-reload\",\n\t\t\t\t\t\t\t\tpath: \"*\",\n\t\t\t\t\t\t\t\ttriggeredBy: options.file\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn [];\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync watchChange(id) {\n\t\t\t\t\tif (config.command !== \"build\") return;\n\t\t\t\t\tif (tamaguiLoader.isEvaluationDependency(id)) {\n\t\t\t\t\t\ttamaguiLoader.invalidate(id);\n\t\t\t\t\t\tinvalidateCompilerModules();\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync resolveId(source) {\n\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\tif (isNotClient(this.environment)) return;\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tconst [validId, query] = source.split(\"?\");\n\t\t\t\t\tif (!validId.endsWith(virtualExt)) return;\n\t\t\t\t\tconst absoluteId = validId.startsWith(config.root) ? validId : getAbsoluteVirtualFileId(validId);\n\t\t\t\t\tif (cssMap.has(absoluteId)) return absoluteId + (query ? `?${query}` : \"\");\n\t\t\t\t},\n\t\t\t\tasync load(id) {\n\t\t\t\t\tif (tamaguiLoader.getTamaguiOptions()?.disable) return;\n\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\tif (isNotClient(this.environment)) return;\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\t\tif (!validId.endsWith(virtualExt)) return;\n\t\t\t\t\tif (isDevEnvironment(this.environment)) {\n\t\t\t\t\t\tconst importer = this.environment.moduleGraph.getModuleById(validId.slice(0, -virtualExt.length));\n\t\t\t\t\t\tif (importer && importer.transformResult == null) await this.environment.transformRequest(importer.url);\n\t\t\t\t\t}\n\t\t\t\t\treturn cssMap.get(validId);\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-compiler\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\ttransform: {\n\t\t\t\t\torder: \"pre\",\n\t\t\t\t\tasync handler(code, id) {\n\t\t\t\t\t\tif (this.environment?.name === TAMAGUI_EVALUATION_ENVIRONMENT) return;\n\t\t\t\t\t\tif (!tamaguiLoader.getEnvironment()) return;\n\t\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\t\t\tif (isFrameworkAnalysisRequest(id) || !isAppJSXSource(validId) || !/\\.[jt]sx$/.test(validId)) return;\n\t\t\t\t\t\tif ((await ensureLoaded())?.disable || !shouldExtract) return;\n\t\t\t\t\t\tconst { shouldDisable } = await Static.getPragmaOptions({\n\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\tpath: validId\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (shouldDisable) return;\n\t\t\t\t\t\tconst evaluationDependencies = await tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\t\tfor (const dependency of evaluationDependencies) this.addWatchFile(dependency);\n\t\t\t\t\t\tconst compilerProject = await tamaguiLoader.getCompilerProject();\n\t\t\t\t\t\tconst result = await getCompilerFrontend(this.environment).compile({\n\t\t\t\t\t\t\tid: validId,\n\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\t\tenvironment: this.environment.name,\n\t\t\t\t\t\t\tproject: {\n\t\t\t\t\t\t\t\t...compilerProject,\n\t\t\t\t\t\t\t\tgeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`,\n\t\t\t\t\t\t\t\tzeroRuntime: zero !== null\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tresolve: async (specifier, importer) => {\n\t\t\t\t\t\t\t\tconst resolution = await this.resolve(specifier, importer, { skipSelf: true });\n\t\t\t\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t\t\t\t} : null;\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tevaluate: ({ id: moduleId }) => tamaguiLoader.evaluateModule(moduleId),\n\t\t\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\ttransformedModuleIds.add(validId);\n\t\t\t\t\t\tcompilerReports?.set(validId, {\n\t\t\t\t\t\t\tstats: result.plan.stats,\n\t\t\t\t\t\t\tdiagnostics: result.plan.diagnostics\n\t\t\t\t\t\t});\n\t\t\t\t\t\tfor (const dependency of result.plan.dependencies) if (path.isAbsolute(dependency)) this.addWatchFile(dependency);\n\t\t\t\t\t\tif (zeroIslandBuild) {\n\t\t\t\t\t\t\tzeroIslandBuild.artifact.setIslandModuleCSS(zeroIslandBuild.islandId, validId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\treturn result.output.changed ? {\n\t\t\t\t\t\t\t\tcode: result.output.code,\n\t\t\t\t\t\t\t\tmap: result.output.map\n\t\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (zero) {\n\t\t\t\t\t\t\tconst zeroResult = Static.transformZeroModule({\n\t\t\t\t\t\t\t\tmode: zero.isEnforcing ? \"enforce\" : \"report\",\n\t\t\t\t\t\t\t\tid: validId,\n\t\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\t\tplan: result.plan,\n\t\t\t\t\t\t\t\tconfig: await tamaguiLoader.getTamaguiConfig(),\n\t\t\t\t\t\t\t\tisTamaguiSpecifier: Static.isTamaguiSpecifier,\n\t\t\t\t\t\t\t\tresolveIslandLoader: (specifier) => {\n\t\t\t\t\t\t\t\t\tconst islandId = zero.loaderIds.get(zeroModuleKey(path.resolve(path.dirname(validId), specifier)));\n\t\t\t\t\t\t\t\t\treturn islandId ? { islandId } : null;\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tresolveIslandModule: (specifier) => zero.islandModuleIds.get(zeroModuleKey(path.resolve(path.dirname(validId), specifier))) ?? null\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tzero.transformed.add(validId);\n\t\t\t\t\t\t\tif (zeroResult.erased.exports.length) zero.erasedExports.set(validId, zeroResult.erased.exports);\n\t\t\t\t\t\t\tfor (const violation of zeroResult.violations) {\n\t\t\t\t\t\t\t\tconst { line, column } = Static.offsetToLineColumn(code, violation.span.start);\n\t\t\t\t\t\t\t\tzero.violations.push({\n\t\t\t\t\t\t\t\t\tfile: path.relative(config.root, validId),\n\t\t\t\t\t\t\t\t\tline,\n\t\t\t\t\t\t\t\t\tcolumn,\n\t\t\t\t\t\t\t\t\trule: violation.rule,\n\t\t\t\t\t\t\t\t\tcode: violation.code,\n\t\t\t\t\t\t\t\t\tcomponent: violation.component,\n\t\t\t\t\t\t\t\t\tmessage: violation.message\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (zero.isEnforcing) {\n\t\t\t\t\t\t\t\tStatic.mergeIslandBridges(zero.bridges, zeroResult.bridges);\n\t\t\t\t\t\t\t\tconst moduleCSS = [wrapExtractedCSS(result.plan.css), ...zeroResult.bridgeCSS.values()].filter(Boolean).join(\"\\n\");\n\t\t\t\t\t\t\t\tif (config.command !== \"build\") {\n\t\t\t\t\t\t\t\t\tlet cssImport2 = \"\";\n\t\t\t\t\t\t\t\t\tif (moduleCSS) {\n\t\t\t\t\t\t\t\t\t\tconst rootRelativeId = `${validId}${virtualExt}`;\n\t\t\t\t\t\t\t\t\t\tcssMap.set(getAbsoluteVirtualFileId(rootRelativeId), moduleCSS);\n\t\t\t\t\t\t\t\t\t\tthis.addWatchFile(rootRelativeId);\n\t\t\t\t\t\t\t\t\t\tcssImport2 = `\nimport \"${rootRelativeId}\";`;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\tcode: `${zeroResult.output.code}${cssImport2}`,\n\t\t\t\t\t\t\t\t\t\tmap: zeroResult.output.map\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor (const [identifier, rules] of zeroResult.bridgeCSS) zero.artifact.setBridgeRules(identifier, rules);\n\t\t\t\t\t\t\t\tzero.artifact.setZeroModuleCSS(validId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\t\treturn zeroResult.output.changed ? {\n\t\t\t\t\t\t\t\t\tcode: zeroResult.output.code,\n\t\t\t\t\t\t\t\t\tmap: zeroResult.output.map\n\t\t\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst isSSR = isNotClient(this.environment);\n\t\t\t\t\t\tlet cssImport = null;\n\t\t\t\t\t\tif (result.plan.css) {\n\t\t\t\t\t\t\tconst rootRelativeId = `${validId}${virtualExt}`;\n\t\t\t\t\t\t\tconst absoluteId = getAbsoluteVirtualFileId(rootRelativeId);\n\t\t\t\t\t\t\tcssMap.set(absoluteId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\tthis.addWatchFile(rootRelativeId);\n\t\t\t\t\t\t\tif (!isSSR) cssImport = `import \"${rootRelativeId}\";`;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst finalCode = cssImport ? `${result.output.code}\n${cssImport}` : result.output.code;\n\t\t\t\t\t\treturn result.output.changed || cssImport ? {\n\t\t\t\t\t\t\tcode: finalCode,\n\t\t\t\t\t\t\tmap: result.output.map\n\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-zero-runtime\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tawait tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\tconst tamaguiConfig = await tamaguiLoader.getTamaguiConfig();\n\t\t\t\t\tif (!tamaguiConfig) throw new Error(`[tamagui zero-runtime] the Tamagui config did not evaluate, so no CSS artifact can be generated`);\n\t\t\t\t\tzero.violations.length = 0;\n\t\t\t\t\tzero.transformed.clear();\n\t\t\t\t\tzero.erasedExports.clear();\n\t\t\t\t\tif (!zero.isEnforcing) return;\n\t\t\t\t\tStatic.assertZeroConfigDrivers(tamaguiConfig);\n\t\t\t\t\tzero.artifact.clearGraphs();\n\t\t\t\t\tzero.bridges.clear();\n\t\t\t\t\tzeroHtmlEntries = 0;\n\t\t\t\t\tzero.artifact.setConfigCSS(tamaguiConfig.getCSS());\n\t\t\t\t\tif (config.command !== \"build\") {\n\t\t\t\t\t\tconst islands = zero;\n\t\t\t\t\t\tzeroDevIslands = Promise.all(islands.resolved.islands.map((island) => buildIsland({\n\t\t\t\t\t\t\tisland,\n\t\t\t\t\t\t\tcontroller: islands,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\toutDir: zeroDevIslandDir(islands),\n\t\t\t\t\t\t\tmode: \"development\"\n\t\t\t\t\t\t})));\n\t\t\t\t\t\tawait zeroDevIslands;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync configureServer(devServer) {\n\t\t\t\t\tif (!zero?.isEnforcing) return;\n\t\t\t\t\tconst islandBase = `${zero.cssHref.replace(ZERO_CSS_FILENAME, \"\")}${ZERO_ISLAND_DIRNAME}/`;\n\t\t\t\t\tdevServer.middlewares.use(async (request, response, next) => {\n\t\t\t\t\t\tconst url = (request.url || \"\").split(\"?\")[0];\n\t\t\t\t\t\tif (url !== zero.cssHref && !url.startsWith(islandBase)) return next();\n\t\t\t\t\t\tawait zeroDevIslands;\n\t\t\t\t\t\tif (url === zero.cssHref) {\n\t\t\t\t\t\t\tresponse.setHeader(\"content-type\", \"text/css; charset=utf-8\");\n\t\t\t\t\t\t\tresponse.setHeader(\"cache-control\", \"no-cache\");\n\t\t\t\t\t\t\tresponse.end(zero.artifact.css());\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst islandId = url.slice(islandBase.length).replace(/\\.js$/, \"\");\n\t\t\t\t\t\tconst file = path.join(zeroDevIslandDir(zero), ZERO_ISLAND_DIRNAME, `${islandId}.js`);\n\t\t\t\t\t\tif (!existsSync(file)) return next();\n\t\t\t\t\t\tresponse.setHeader(\"content-type\", \"text/javascript; charset=utf-8\");\n\t\t\t\t\t\tresponse.setHeader(\"cache-control\", \"no-cache\");\n\t\t\t\t\t\tresponse.end(readFileSync(file));\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tbuildEnd(error) {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tif (error) {\n\t\t\t\t\t\tzeroBuildFailed = true;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (!zero.isEnforcing) return;\n\t\t\t\t\tconst importers = /* @__PURE__ */ new Map();\n\t\t\t\t\tfor (const moduleId of this.getModuleIds()) importers.set(moduleId, this.getModuleInfo(moduleId)?.importers ?? []);\n\t\t\t\t\tconst escape = Static.erasedExportEscape({\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\ttransformed: zero.transformed,\n\t\t\t\t\t\terasedExports: zero.erasedExports,\n\t\t\t\t\t\timportersOf: importers\n\t\t\t\t\t});\n\t\t\t\t\tif (escape) {\n\t\t\t\t\t\tzeroBuildFailed = true;\n\t\t\t\t\t\tthrow new Error(escape);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\ttransformIndexHtml: {\n\t\t\t\t\torder: \"post\",\n\t\t\t\t\thandler(html) {\n\t\t\t\t\t\tif (!zero?.isEnforcing) return;\n\t\t\t\t\t\tzeroHtmlEntries++;\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\thtml,\n\t\t\t\t\t\t\ttags: [{\n\t\t\t\t\t\t\t\ttag: \"link\",\n\t\t\t\t\t\t\t\tattrs: {\n\t\t\t\t\t\t\t\t\trel: \"stylesheet\",\n\t\t\t\t\t\t\t\t\thref: zero.cssHref\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tinjectTo: \"head\"\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tgenerateBundle(_outputOptions, bundle) {\n\t\t\t\t\tif (!zero?.isEnforcing || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst importers = /* @__PURE__ */ new Map();\n\t\t\t\t\tfor (const moduleId of this.getModuleIds()) for (const imported of this.getModuleInfo(moduleId)?.importedIds ?? []) {\n\t\t\t\t\t\tconst list = importers.get(imported);\n\t\t\t\t\t\tif (list) list.push(moduleId);\n\t\t\t\t\t\telse importers.set(imported, [moduleId]);\n\t\t\t\t\t}\n\t\t\t\t\tconst entries = [];\n\t\t\t\t\tconst modules = [];\n\t\t\t\t\tfor (const chunk of Object.values(bundle)) {\n\t\t\t\t\t\tif (chunk.type !== \"chunk\") continue;\n\t\t\t\t\t\tfor (const moduleId of Object.keys(chunk.modules)) {\n\t\t\t\t\t\t\tmodules.push({\n\t\t\t\t\t\t\t\tid: moduleId,\n\t\t\t\t\t\t\t\timporters: importers.get(moduleId) ?? []\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tif (this.getModuleInfo(moduleId)?.isEntry) entries.push(moduleId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tconst checked = Static.checkZeroGraph({\n\t\t\t\t\t\tentries,\n\t\t\t\t\t\tmodules,\n\t\t\t\t\t\timporterEdges: importers,\n\t\t\t\t\t\troot: zero.resolved.root\n\t\t\t\t\t});\n\t\t\t\t\tzeroReceipt = {\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\tgraph: \"zero\",\n\t\t\t\t\t\tentries: entries.sort(),\n\t\t\t\t\t\tmoduleCount: modules.length,\n\t\t\t\t\t\ttamaguiModules: checked.tamaguiModules,\n\t\t\t\t\t\tforbidden: checked.forbidden,\n\t\t\t\t\t\tcssArtifact: null,\n\t\t\t\t\t\tidentity: \"\",\n\t\t\t\t\t\tgzip: Object.fromEntries(Object.values(bundle).filter((chunk) => chunk.type === \"chunk\").map((chunk) => [chunk.fileName, gzipSync(Buffer.from(chunk.code), { level: 9 }).length]))\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\tasync closeBundle() {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst outDir = path.resolve(config.root, this.environment.config.build.outDir);\n\t\t\t\t\tconst receiptName = `vite-${path.basename(outDir)}`;\n\t\t\t\t\tStatic.writeZeroViolationReport(zero.resolved.outDir, receiptName, {\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\tmode: zero.isEnforcing ? \"enforce\" : \"report\",\n\t\t\t\t\t\tviolations: zero.violations\n\t\t\t\t\t});\n\t\t\t\t\tif (!zero.isEnforcing || zeroBuildFailed) return;\n\t\t\t\t\tif (zero.violations.length) throw new Error(Static.formatZeroViolations(zero.violations));\n\t\t\t\t\tconst islandOutputHashes = {};\n\t\t\t\t\tfor (const island of zero.resolved.islands) {\n\t\t\t\t\t\tconst built = await buildIsland({\n\t\t\t\t\t\t\tisland,\n\t\t\t\t\t\t\tcontroller: zero,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\toutDir,\n\t\t\t\t\t\t\tmode: config.mode\n\t\t\t\t\t\t});\n\t\t\t\t\t\tislandOutputHashes[island.id] = built.hash;\n\t\t\t\t\t}\n\t\t\t\t\tif (zeroHtmlEntries === 0) throw new Error(`[tamagui zero-runtime] the zero entry graph has no HTML entry, so the one generated CSS artifact ${zero.cssHref} is never loaded. Build a zero entry through its HTML document.`);\n\t\t\t\t\tconst css = finalizeZeroCSS(zero, outDir);\n\t\t\t\t\tconst bridgeManifest = Static.canonicalizeBridgeManifest(Object.fromEntries([...zero.bridges.entries()].sort(([left], [right]) => left < right ? -1 : 1)));\n\t\t\t\t\tconst identityInputs = {\n\t\t\t\t\t\truntimeLiteral: \"zero\",\n\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\tconfigGeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`,\n\t\t\t\t\t\tcssHash: css.hash,\n\t\t\t\t\t\tcompilerVersion: Static.ZERO_COMPILER_VERSION,\n\t\t\t\t\t\tislandEntries: zero.resolved.islands.map((island) => island.module),\n\t\t\t\t\t\tbridgeManifestHash: Static.hashBridgeManifest(bridgeManifest),\n\t\t\t\t\t\tislandOutputHashes\n\t\t\t\t\t};\n\t\t\t\t\tconst identity = Static.hashZeroIdentity(identityInputs);\n\t\t\t\t\tif (!zeroReceipt) throw new Error(`[tamagui zero-runtime] no module graph was recorded for the zero entry`);\n\t\t\t\t\tzeroReceipt.cssArtifact = {\n\t\t\t\t\t\tpath: css.href,\n\t\t\t\t\t\thash: css.hash\n\t\t\t\t\t};\n\t\t\t\t\tzeroReceipt.identity = identity;\n\t\t\t\t\tStatic.writeZeroGraphReceipt(zero.resolved.outDir, receiptName, zeroReceipt);\n\t\t\t\t\twriteFileSync(path.join(zero.resolved.outDir, `${receiptName}.bridges.json`), `${JSON.stringify({\n\t\t\t\t\t\tidentity,\n\t\t\t\t\t\tidentityInputs,\n\t\t\t\t\t\tcssGzip: css.gzip,\n\t\t\t\t\t\tbridges: bridgeManifest\n\t\t\t\t\t}, null, 2)}\n`);\n\t\t\t\t\tassertZeroGraph(zeroReceipt);\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-global-css\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tapply: \"build\",\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tif (!globalCSS || this.environment.name !== \"client\") return;\n\t\t\t\t\tawait tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\tconst tamaguiConfig = await tamaguiLoader.getTamaguiConfig();\n\t\t\t\t\tif (!tamaguiConfig) throw new Error(`[tamagui] outputCSS is set but the Tamagui config did not evaluate, so no CSS artifact can be generated`);\n\t\t\t\t\tglobalCSSExpected = tamaguiConfig.getCSS();\n\t\t\t\t},\n\t\t\t\tgenerateBundle() {\n\t\t\t\t\tif (!globalCSS || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst failure = Static.checkGlobalCSSArtifact({\n\t\t\t\t\t\tcssPath: globalCSS.cssPath,\n\t\t\t\t\t\texpectedCSS: globalCSSExpected ?? \"\",\n\t\t\t\t\t\tloadedModuleIds: this.getModuleIds(),\n\t\t\t\t\t\timportHint: `Import it once from your client entry: import ${JSON.stringify(relativeImportSpecifier(config.root, globalCSS.cssPath))}`\n\t\t\t\t\t});\n\t\t\t\t\tif (failure) throw new Error(failure.message);\n\t\t\t\t}\n\t\t\t},\n\t\t\ttamaguiNativePlugin(tamaguiOptionsIn)\n\t\t],\n\t\tloader: tamaguiLoader\n\t};\n}\nfunction zeroDevIslandDir(zero) {\n\treturn path.join(zero.resolved.outDir, \"dev\");\n}\nfunction relativeImportSpecifier(from, to) {\n\tconst relative = normalizePath(path.relative(from, to));\n\treturn relative.startsWith(\".\") ? relative : `./${relative}`;\n}\nfunction tamaguiPlugin(options = {}) {\n\treturn createTamaguiPlugins(options).plugins;\n}\n\nexport { createTamaguiPlugins, tamaguiAliases, tamaguiNativePlugin, tamaguiPlugin };"],"mappings":";;;;;;;;;;;;;;AAaA,MAAM,0DAA0D,IAAI,IAAI,CAAC,gBAAgB,wBAAwB,CAAC;AAClH,MAAM,6BAA6B;AACnC,MAAM,qBAAqB;AAC3B,MAAM,iCAAiC;AACvC,MAAM,kDAAkD,IAAI,IAAI;CAC/D;CACA;CACA;CACA;AACD,CAAC;AACD,MAAM,6BAA6B;AACnC,SAAS,iCAAiC,YAAY;CACrD,MAAM,WAAW,KAAK,KAAK,YAAY,cAAc;CACrD,IAAI,CAAC,WAAW,QAAQ,GAAG,OAAO;CAClC,IAAI;EACH,MAAM,UAAU,KAAK,MAAM,aAAa,UAAU,MAAM,CAAC,CAAC,CAAC;EAC3D,OAAO,KAAK,UAAU,WAAW,IAAI,CAAC,CAAC,SAAS,IAAI,2BAA2B,EAAE;CAClF,QAAQ;EACP,OAAO;CACR;AACD;AACA,SAAS,0BAA0B,UAAU,gBAAgB;CAC5D,IAAI,mBAAmB,MAAM,OAAO;CACpC,IAAI,CAAC,gBAAgB,OAAO;CAC5B,OAAO,CAAC,GAAG,UAAU,GAAG,MAAM,QAAQ,cAAc,IAAI,iBAAiB,CAAC,cAAc,CAAC;AAC1F;AACA,SAAS,0BAA0B,QAAQ,oBAAoB;CAC9D,MAAM,YAAY,OAAO;CACzB,IAAI,OAAO,SAAS,8BAA8B,CAAC,WAAW,OAAO;CACrE,MAAM,UAAU,OAAO,cAAc,WAAW,UAAU,UAAU;CACpE,MAAM,oBAAoB,SAAS,QAAQ,GAAG,MAAM;EACnD,IAAI,m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G,IAAI,WAAW,KAAK;AACnD;AACA,SAAS,cAAc,UAAU,CAAC,GAAG;CACpC,OAAO,qBAAqB,OAAO,CAAC,CAAC;AACtC"}
1
+ {"version":3,"file":"plugin.js","names":[],"sources":["esm/plugin.js"],"sourcesContent":["import Static from \"@tamagui/static\";\nimport { createHash } from \"node:crypto\";\nimport { existsSync, readFileSync, readdirSync, writeFileSync } from \"node:fs\";\nimport { gzipSync } from \"node:zlib\";\nimport { readFile } from \"node:fs/promises\";\nimport { createRequire } from \"node:module\";\nimport path from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { createFilter, createIdResolver, createRunnableDevEnvironment, defaultClientConditions, defaultClientMainFields, resolveConfig } from \"vite\";\nimport { TAMAGUI_EVALUATION_ENVIRONMENT, createViteTamaguiLoader } from \"./loadTamagui\";\nimport { createCompilerStatsReport, formatCompilerStatsReport } from \"./compilerStats\";\nimport { ZERO_CSS_FILENAME, ZERO_ISLAND_DIRNAME, assertZeroGraph, buildIsland, createZeroRuntimeController, finalizeZeroCSS, zeroModuleKey } from \"./zeroRuntime\";\n\nconst environmentSpecificTransformPluginNames = /* @__PURE__ */ new Set([\"one:compiler\", \"one:compiler-css-to-js\"]);\nconst oneTsconfigPathsPluginName = \"one:tsconfig-paths\";\nconst bareTamaguiPackage = /^@tamagui\\/[^/?#]+(?:[/?#]|$)/;\nconst inlineEvaluationTamaguiPackage = /^@tamagui\\/(?:config|core|slider|web)(?:[/?#]|$)/;\nconst externalizablePackageExtensions = /* @__PURE__ */ new Set([\n\t\"\",\n\t\".js\",\n\t\".mjs\",\n\t\".cjs\"\n]);\nconst TAMAGUI_COMPILER_CONDITION = \"tamagui-compiler\";\nfunction packageDeclaresCompilerCondition(packageDir) {\n\tconst manifest = path.join(packageDir, \"package.json\");\n\tif (!existsSync(manifest)) return false;\n\ttry {\n\t\tconst exports = JSON.parse(readFileSync(manifest, \"utf8\")).exports;\n\t\treturn JSON.stringify(exports ?? null).includes(`\"${TAMAGUI_COMPILER_CONDITION}\"`);\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction mergeEvaluationNoExternal(required, userNoExternal) {\n\tif (userNoExternal === true) return true;\n\tif (!userNoExternal) return required;\n\treturn [...required, ...Array.isArray(userNoExternal) ? userNoExternal : [userNoExternal]];\n}\nfunction createEvaluationResolveId(plugin, resolveBarePackage) {\n\tconst resolveId = plugin.resolveId;\n\tif (plugin.name !== oneTsconfigPathsPluginName || !resolveId) return resolveId;\n\tconst handler = typeof resolveId === \"object\" ? resolveId.handler : resolveId;\n\tconst evaluationHandler = function(source, ...args) {\n\t\tif (bareTamaguiPackage.test(source)) {\n\t\t\tconst importer = typeof args[0] === \"string\" ? args[0] : void 0;\n\t\t\treturn resolveBarePackage?.(this.environment, source, importer);\n\t\t}\n\t\treturn Reflect.apply(handler, this, [source, ...args]);\n\t};\n\treturn typeof resolveId === \"object\" ? {\n\t\t...resolveId,\n\t\thandler: evaluationHandler\n\t} : evaluationHandler;\n}\nfunction createEvaluationPluginFacade(plugin, resolveBarePackage) {\n\treturn {\n\t\tname: plugin.name,\n\t\tenforce: plugin.enforce,\n\t\tresolveId: createEvaluationResolveId(plugin, resolveBarePackage),\n\t\tload: plugin.load,\n\t\ttransform: environmentSpecificTransformPluginNames.has(plugin.name) ? void 0 : plugin.transform\n\t};\n}\nconst tamaguiEvaluationPluginNames = /* @__PURE__ */ new Set([\n\t\"tamagui\",\n\t\"tamagui-extract\",\n\t\"tamagui-rnw-lite\"\n]);\nfunction isEvaluationUserPlugin(plugin) {\n\treturn !!(plugin.resolveId || plugin.load || plugin.transform) && plugin.name !== \"alias\" && !plugin.name.startsWith(\"native:\") && !plugin.name.startsWith(\"vite:\") && !plugin.name.startsWith(\"builtin:vite-\") && !tamaguiEvaluationPluginNames.has(plugin.name);\n}\nfunction isEvaluationCorePlugin(plugin) {\n\treturn plugin.name === \"alias\" || plugin.name.startsWith(\"vite:\") || plugin.name.startsWith(\"builtin:vite-\");\n}\nfunction isConfiguredEvaluationPackage(source, packages) {\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\treturn [...packages].some((packageName) => cleanSource === packageName || cleanSource.startsWith(`${packageName}/`));\n}\nfunction getEvaluationPackageName(source) {\n\tif (!source) return;\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\tif (!cleanSource || cleanSource.startsWith(\".\") || cleanSource.startsWith(\"#\") || cleanSource.startsWith(\"\\0\") || path.isAbsolute(cleanSource)) return;\n\tif (cleanSource.startsWith(\"@\")) {\n\t\tconst [scope, name2] = cleanSource.split(\"/\");\n\t\treturn scope && name2 ? `${scope}/${name2}` : void 0;\n\t}\n\tconst [name] = cleanSource.split(\"/\");\n\treturn name && !path.extname(name) ? name : void 0;\n}\nfunction scanInstalledTamaguiPackages(root, configuredEvaluationPackages) {\n\tconst packageRequire = createRequire(path.join(root, \"package.json\"));\n\tconst externalizable = /* @__PURE__ */ new Set();\n\tconst compilerCondition = /* @__PURE__ */ new Set();\n\tfor (const modulePath of packageRequire.resolve.paths(\"@tamagui/core\") || []) {\n\t\tconst scopePath = path.join(modulePath, \"@tamagui\");\n\t\tif (!existsSync(scopePath)) continue;\n\t\tfor (const entry of readdirSync(scopePath, { withFileTypes: true })) {\n\t\t\tif (!entry.isDirectory() && !entry.isSymbolicLink()) continue;\n\t\t\tconst packageName = `@tamagui/${entry.name}`;\n\t\t\tif (inlineEvaluationTamaguiPackage.test(packageName) || configuredEvaluationPackages.has(packageName)) continue;\n\t\t\tif (packageDeclaresCompilerCondition(path.join(scopePath, entry.name))) compilerCondition.add(packageName);\n\t\t\telse externalizable.add(packageName);\n\t\t}\n\t}\n\treturn {\n\t\texternalizable,\n\t\tcompilerCondition\n\t};\n}\nfunction getEvaluationResolve(resolve2, root, disableTsconfigPaths, configuredEvaluationPackages) {\n\tconst noExternal = resolve2.noExternal;\n\tconst noExternalFilter = noExternal && noExternal !== true ? createFilter(void 0, noExternal, { resolve: false }) : void 0;\n\tconst isNoExternalPackage = noExternal === true ? () => true : noExternalFilter ? (packageName) => !noExternalFilter(packageName) : () => false;\n\treturn {\n\t\t...resolve2,\n\t\texternal: resolve2.external === true ? true : [.../* @__PURE__ */ new Set([...(resolve2.external || []).filter((packageName) => !isConfiguredEvaluationPackage(packageName, configuredEvaluationPackages)), ...[...scanInstalledTamaguiPackages(root, configuredEvaluationPackages).externalizable].filter((packageName) => !isNoExternalPackage(packageName))])],\n\t\t...disableTsconfigPaths && { tsconfigPaths: false }\n\t};\n}\nfunction isConfiguredExternalPackage(source, external) {\n\tif (external === true) return true;\n\tconst cleanSource = source.split(/[?#]/, 1)[0];\n\treturn external?.some((packageName) => cleanSource === packageName || cleanSource.startsWith(`${packageName}/`));\n}\nfunction createServeEvaluationConfig(config, configuredEvaluationPackages) {\n\tconst environment = config.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\tlet packageResolver;\n\tconst resolveBarePackage = async (evaluationEnvironment, source, importer) => {\n\t\tconst resolved = await packageResolver?.(evaluationEnvironment, source, importer);\n\t\tif (!resolved) return;\n\t\tconst cleanResolved = resolved.split(/[?#]/, 1)[0];\n\t\tif (!inlineEvaluationTamaguiPackage.test(source) && !isConfiguredEvaluationPackage(source, configuredEvaluationPackages) && isConfiguredExternalPackage(source, evaluationEnvironment.config.resolve.external)) return {\n\t\t\tid: source,\n\t\t\texternal: true\n\t\t};\n\t\tif (inlineEvaluationTamaguiPackage.test(source) || isConfiguredEvaluationPackage(source, configuredEvaluationPackages) || !normalizePath(cleanResolved).includes(\"/node_modules/\") || !externalizablePackageExtensions.has(path.extname(cleanResolved))) return resolved;\n\t\treturn {\n\t\t\tid: source,\n\t\t\texternal: true\n\t\t};\n\t};\n\tconst plugins = environment.plugins.flatMap((plugin) => {\n\t\tif (isEvaluationCorePlugin(plugin)) return [plugin];\n\t\tif (isEvaluationUserPlugin(plugin)) return [createEvaluationPluginFacade(plugin, resolveBarePackage)];\n\t\treturn [];\n\t});\n\tconst resolve2 = getEvaluationResolve(environment.resolve, config.root, plugins.some((plugin) => plugin.name === oneTsconfigPathsPluginName), configuredEvaluationPackages);\n\tconst evaluationConfig = {\n\t\t...config,\n\t\tenvironments: {\n\t\t\t...config.environments,\n\t\t\t[TAMAGUI_EVALUATION_ENVIRONMENT]: {\n\t\t\t\t...environment,\n\t\t\t\tplugins,\n\t\t\t\tresolve: resolve2\n\t\t\t}\n\t\t}\n\t};\n\tpackageResolver = createIdResolver(evaluationConfig);\n\treturn evaluationConfig;\n}\nasync function createOwnedEvaluationConfig(config, configuredEvaluationPackages) {\n\tconst environment = config.environments[TAMAGUI_EVALUATION_ENVIRONMENT];\n\tconst plugins = environment.plugins.filter(isEvaluationUserPlugin).map((plugin) => createEvaluationPluginFacade(plugin));\n\tconst resolve2 = getEvaluationResolve(environment.resolve, config.root, plugins.some((plugin) => plugin.name === oneTsconfigPathsPluginName), configuredEvaluationPackages);\n\tconst { createEnvironment: _createEnvironment, ...dev } = environment.dev;\n\tconst { esbuildOptions: _esbuildOptions, ...optimizeDeps } = environment.optimizeDeps;\n\treturn resolveConfig({\n\t\tconfigFile: false,\n\t\troot: config.root,\n\t\tmode: config.mode,\n\t\tlogLevel: config.logLevel,\n\t\tplugins,\n\t\tdefine: environment.define,\n\t\tresolve: resolve2,\n\t\tenvironments: { [TAMAGUI_EVALUATION_ENVIRONMENT]: {\n\t\t\tconsumer: environment.consumer,\n\t\t\tkeepProcessEnv: environment.keepProcessEnv,\n\t\t\tdefine: environment.define,\n\t\t\tresolve: resolve2,\n\t\t\toptimizeDeps,\n\t\t\tdev: {\n\t\t\t\t...dev,\n\t\t\t\tmoduleRunnerTransform: true\n\t\t\t}\n\t\t} }\n\t}, \"serve\", config.mode);\n}\nconst _pluginRequire = createRequire(typeof __filename === \"string\" ? __filename : fileURLToPath(import.meta.url));\nconst resolve = (name) => _pluginRequire.resolve(name);\nconst normalizePath = (value) => value.replace(/\\\\/g, \"/\");\nconst PLUGIN_INSTANCE_KEY = \"__tamagui_vite_plugin_instance__\";\nfunction reportCompilerStats(root, reports) {\n\tconst report = createCompilerStatsReport(root, reports);\n\tconsole.info(formatCompilerStatsReport(report, process.env.TAMAGUI_COMPILER_STATS === \"verbose\"));\n\tif (process.env.TAMAGUI_COMPILER_STATS_FILE) {\n\t\tconst outputPath = path.resolve(root, process.env.TAMAGUI_COMPILER_STATS_FILE);\n\t\twriteFileSync(outputPath, `${JSON.stringify(report, null, 2)}\n`);\n\t\tconsole.info(`[tamagui] compiler stats JSON: ${path.relative(process.cwd(), outputPath)}`);\n\t}\n}\nfunction getNextPluginInstanceId() {\n\tconst next = (globalThis[PLUGIN_INSTANCE_KEY] || 0) + 1;\n\tglobalThis[PLUGIN_INSTANCE_KEY] = next;\n\treturn next;\n}\nfunction isInstalled(projectRoot, id) {\n\ttry {\n\t\tcreateRequire(path.join(projectRoot, \"package.json\")).resolve(id);\n\t\treturn true;\n\t} catch {\n\t\treturn false;\n\t}\n}\nfunction addIfInstalled(userConf, projectRoot, ids) {\n\tconst root = projectRoot || process.cwd();\n\tuserConf.optimizeDeps ||= {};\n\tuserConf.optimizeDeps.include ||= [];\n\tfor (const id of ids) if (!userConf.optimizeDeps.include.includes(id) && isInstalled(root, id)) userConf.optimizeDeps.include.push(id);\n}\nfunction svgWebEntry() {\n\treturn normalizePath(path.join(path.dirname(resolve(\"@tamagui/react-native-svg/package.json\")), \"dist/esm/index.mjs\"));\n}\nfunction tamaguiAliases(options = {}) {\n\tconst aliases = [];\n\tif (options.svg) {\n\t\tconst svg = svgWebEntry();\n\t\taliases.push({\n\t\t\tfind: \"react-native-svg\",\n\t\t\treplacement: svg\n\t\t}, {\n\t\t\tfind: \"@tamagui/react-native-svg\",\n\t\t\treplacement: svg\n\t\t});\n\t}\n\tif (options.rnwLite) {\n\t\tconst rnwlBase = path.dirname(resolve(\"@tamagui/react-native-web-lite/package.json\"));\n\t\tconst rnwl = normalizePath(path.join(rnwlBase, options.rnwLite === \"without-animated\" ? \"dist/esm/without-animated.mjs\" : \"dist/esm/index.mjs\"));\n\t\tconst rnwlFlatModules = readdirSync(path.join(rnwlBase, \"dist/esm\")).filter((file) => file.endsWith(\".mjs\")).map((file) => file.slice(0, -4)).filter((name) => /^[A-Za-z0-9_]+$/.test(name));\n\t\taliases.push({\n\t\t\tfind: new RegExp(`^react-native(?:-web)?\\\\/dist\\\\/(?:exports|modules)\\\\/(?:.*\\\\/)?(${rnwlFlatModules.join(\"|\")})$`),\n\t\t\treplacement: `${normalizePath(rnwlBase)}/dist/esm/$1.mjs`\n\t\t}, {\n\t\t\tfind: /^react-native$/,\n\t\t\treplacement: rnwl\n\t\t}, {\n\t\t\tfind: /^react-native\\/(Libraries\\/Utilities\\/codegenNativeComponent|Libraries\\/Utilities\\/codegenNativeCommand)$/,\n\t\t\treplacement: `${rnwlBase}/$1`\n\t\t}, {\n\t\t\tfind: \"react-native/package.json\",\n\t\t\treplacement: resolve(\"@tamagui/react-native-web-lite/package.json\")\n\t\t}, {\n\t\t\tfind: /^react-native-web$/,\n\t\t\treplacement: rnwl\n\t\t});\n\t}\n\treturn aliases;\n}\nfunction createTamaguiNativePlugin(tamaguiOptionsIn, nativeContext) {\n\tlet compilerFrontend = new Static.CompilerFrontend();\n\tconst projectDependencies = /* @__PURE__ */ new Set();\n\tlet root = nativeContext?.root || process.cwd();\n\tlet projectPromise = null;\n\tlet nativeOptions = null;\n\tlet rebuildProject = false;\n\tlet generation = 0;\n\tconst loadProject = async (resolveModule) => {\n\t\tif (projectPromise) return projectPromise;\n\t\tconst shouldRebuild = rebuildProject;\n\t\trebuildProject = false;\n\t\tconst guarded = (async () => {\n\t\t\tprojectDependencies.clear();\n\t\t\tconst loadedOptions = await Static.loadTamaguiBuildConfigAsync({\n\t\t\t\t...tamaguiOptionsIn,\n\t\t\t\troot,\n\t\t\t\tplatform: \"native\",\n\t\t\t\toutputCSS: void 0\n\t\t\t});\n\t\t\tconst options = {\n\t\t\t\t...loadedOptions,\n\t\t\t\troot,\n\t\t\t\toutputCSS: void 0\n\t\t\t};\n\t\t\tnativeOptions = options;\n\t\t\tfor (const dependency of Static.getTamaguiBuildConfigDependencies(loadedOptions)) projectDependencies.add(normalizePath(dependency));\n\t\t\tif (options.disable || options.disableExtraction) return null;\n\t\t\tconst project = await Static.loadCompilerProject({\n\t\t\t\troot,\n\t\t\t\ttarget: \"native\",\n\t\t\t\toptions,\n\t\t\t\trebuild: shouldRebuild,\n\t\t\t\tgeneration: `vite-native:${generation + 1}`,\n\t\t\t\tmissingProjectMessage: \"Unable to load the Tamagui project for Vite native compilation\",\n\t\t\t\tasync resolveComponents(moduleNames) {\n\t\t\t\t\treturn Promise.all(moduleNames.map(async (moduleName) => {\n\t\t\t\t\t\tconst id = await resolveModule(moduleName);\n\t\t\t\t\t\tprojectDependencies.add(normalizePath(id.split(/[?#]/, 1)[0]));\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\tmoduleName,\n\t\t\t\t\t\t\tid\n\t\t\t\t\t\t};\n\t\t\t\t\t}));\n\t\t\t\t}\n\t\t\t});\n\t\t\tfor (const dependency of project.projectInfo.dependencies ?? []) projectDependencies.add(normalizePath(dependency.split(/[?#]/, 1)[0]));\n\t\t\tconst configPath = options.config || \"tamagui.config.ts\";\n\t\t\tprojectDependencies.add(normalizePath(path.isAbsolute(configPath) ? configPath : path.resolve(root, configPath)));\n\t\t\tconst buildFile = options.buildFile || \"tamagui.build.ts\";\n\t\t\tprojectDependencies.add(normalizePath(path.isAbsolute(buildFile) ? buildFile : path.resolve(root, buildFile)));\n\t\t\tif (options.themeBuilder?.input) projectDependencies.add(normalizePath(path.isAbsolute(options.themeBuilder.input) ? options.themeBuilder.input : path.resolve(root, options.themeBuilder.input)));\n\t\t\tgeneration++;\n\t\t\treturn project;\n\t\t})().catch((error) => {\n\t\t\tif (projectPromise === guarded) projectPromise = null;\n\t\t\trebuildProject = true;\n\t\t\tthrow error;\n\t\t});\n\t\tprojectPromise = guarded;\n\t\treturn projectPromise;\n\t};\n\treturn {\n\t\tname: \"tamagui-native-compiler\",\n\t\tenforce: \"post\",\n\t\tconfigResolved(config) {\n\t\t\troot = config.root;\n\t\t},\n\t\twatchChange(id) {\n\t\t\tif (projectDependencies.has(normalizePath(id.split(/[?#]/, 1)[0]))) {\n\t\t\t\trebuildProject = true;\n\t\t\t\tprojectPromise = null;\n\t\t\t\tcompilerFrontend = new Static.CompilerFrontend();\n\t\t\t}\n\t\t},\n\t\ttransform: {\n\t\t\torder: \"pre\",\n\t\t\tasync handler(code, id) {\n\t\t\t\tconst environmentName = nativeContext?.platform || this.environment?.name;\n\t\t\t\tif (environmentName !== \"ios\" && environmentName !== \"android\") return;\n\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\tif (!validId || !/\\.[jt]sx$/.test(validId) || normalizePath(validId).split(\"/\").includes(\"node_modules\")) return;\n\t\t\t\tconst { shouldDisable } = await Static.getPragmaOptions({\n\t\t\t\t\tsource: code,\n\t\t\t\t\tpath: validId\n\t\t\t\t});\n\t\t\t\tif (shouldDisable) return;\n\t\t\t\tconst resolve2 = async (specifier, importer) => {\n\t\t\t\t\tconst resolution = await this.resolve(specifier, importer, { skipSelf: true });\n\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t} : null;\n\t\t\t\t};\n\t\t\t\tconst project = await loadProject(async (specifier) => {\n\t\t\t\t\tconst resolution = await resolve2(specifier, path.join(root, \"__tamagui_native.tsx\"));\n\t\t\t\t\tif (!resolution) throw new Error(`Unable to resolve native compiler component ${specifier}`);\n\t\t\t\t\treturn resolution.id;\n\t\t\t\t});\n\t\t\t\tif (!project) return;\n\t\t\t\tfor (const dependency of projectDependencies) this.addWatchFile(dependency);\n\t\t\t\tconst result = await compilerFrontend.compile({\n\t\t\t\t\tid: validId,\n\t\t\t\t\tsource: code,\n\t\t\t\t\troot,\n\t\t\t\t\ttarget: \"native\",\n\t\t\t\t\tproject,\n\t\t\t\t\tresolve: resolve2,\n\t\t\t\t\tevaluate: async ({ id: moduleId }) => nativeOptions ? Static.evaluateComponentModule(nativeOptions, moduleId) : null,\n\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfor (const dependency of result.plan.dependencies) if (path.isAbsolute(dependency)) this.addWatchFile(dependency);\n\t\t\t\tif (result.plan.css) throw new Error(`Native Tamagui compilation produced unexpected CSS for ${validId}`);\n\t\t\t\treturn result.output.changed ? {\n\t\t\t\t\tcode: result.output.code,\n\t\t\t\t\tmap: result.output.map\n\t\t\t\t} : void 0;\n\t\t\t}\n\t\t}\n\t};\n}\nfunction tamaguiNativePlugin(tamaguiOptionsIn = {}) {\n\tconst plugin = createTamaguiNativePlugin(tamaguiOptionsIn);\n\tconst api = plugin.api && typeof plugin.api === \"object\" ? plugin.api : {};\n\treturn {\n\t\t...plugin,\n\t\tapi: {\n\t\t\t...api,\n\t\t\tvxrnNative: (context) => createTamaguiNativePlugin(tamaguiOptionsIn, context)\n\t\t}\n\t};\n}\nfunction createTamaguiPlugins({ disableResolveConfig, wrapExtractedCSS = (css) => css, zeroIslandBuild, ...tamaguiOptionsIn } = {}) {\n\tlet shouldExtract = !tamaguiOptionsIn.disableExtraction;\n\tconst enableNativeEnv = !!globalThis.__vxrnEnableNativeEnv;\n\tconst tamaguiLoader = createViteTamaguiLoader(tamaguiOptionsIn);\n\tconst compilerFrontends = /* @__PURE__ */ new WeakMap();\n\tconst getCompilerFrontend = (environment) => {\n\t\tlet frontend = compilerFrontends.get(environment);\n\t\tif (!frontend) {\n\t\t\tfrontend = new Static.CompilerFrontend();\n\t\t\tcompilerFrontends.set(environment, frontend);\n\t\t}\n\t\treturn frontend;\n\t};\n\tconst pluginInstanceId = getNextPluginInstanceId();\n\tconst configuredEvaluationPackages = /* @__PURE__ */ new Set();\n\tlet buildEnvironmentPromise = null;\n\tlet buildCleanupPromise = null;\n\tconst activeBuildEnvironments = /* @__PURE__ */ new Set();\n\tconst compilerReports = process.env.TAMAGUI_COMPILER_STATS || process.env.TAMAGUI_COMPILER_STATS_FILE ? /* @__PURE__ */ new Map() : null;\n\tconst releaseBuildEnvironment = async (environment) => {\n\t\tif (!activeBuildEnvironments.delete(environment) || activeBuildEnvironments.size) return;\n\t\tif (compilerReports?.size) reportCompilerStats(config?.root ?? process.cwd(), compilerReports);\n\t\tconst currentCleanup = Promise.resolve().then(async () => {\n\t\t\ttry {\n\t\t\t\tawait tamaguiLoader.cleanup();\n\t\t\t} finally {\n\t\t\t\tbuildEnvironmentPromise = null;\n\t\t\t}\n\t\t});\n\t\tbuildCleanupPromise = currentCleanup;\n\t\ttry {\n\t\t\tawait currentCleanup;\n\t\t} finally {\n\t\t\tif (buildCleanupPromise === currentCleanup) buildCleanupPromise = null;\n\t\t}\n\t};\n\tconst extensions = [\n\t\t`.web.mjs`,\n\t\t`.web.js`,\n\t\t`.web.jsx`,\n\t\t`.web.ts`,\n\t\t`.web.tsx`,\n\t\t\".mjs\",\n\t\t\".js\",\n\t\t\".mts\",\n\t\t\".ts\",\n\t\t\".jsx\",\n\t\t\".tsx\",\n\t\t\".json\"\n\t];\n\tconst getEvaluationEnvironmentOptions = (resolvedRoot, userNoExternal) => ({\n\t\tconsumer: \"server\",\n\t\tkeepProcessEnv: true,\n\t\tdefine: {\n\t\t\t\"process.env.IS_STATIC\": JSON.stringify(\"is_static\"),\n\t\t\t\"process.env.TAMAGUI_IS_CLIENT\": JSON.stringify(false),\n\t\t\t\"process.env.TAMAGUI_IS_SERVER\": JSON.stringify(true),\n\t\t\t\"process.env.TAMAGUI_TARGET\": JSON.stringify(\"web\"),\n\t\t\t\"process.env.TAMAGUI_ENVIRONMENT\": JSON.stringify(TAMAGUI_EVALUATION_ENVIRONMENT),\n\t\t\t\"process.env.TAMAGUI_RUNTIME\": JSON.stringify(\"full\"),\n\t\t\t\"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"\"),\n\t\t\t\"process.env.VITE_ENVIRONMENT\": JSON.stringify(\"ssr\"),\n\t\t\t\"process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL\": JSON.stringify(\"1\")\n\t\t},\n\t\tresolve: {\n\t\t\tconditions: [TAMAGUI_COMPILER_CONDITION, ...defaultClientConditions],\n\t\t\tmainFields: [...defaultClientMainFields],\n\t\t\tnoExternal: mergeEvaluationNoExternal([\n\t\t\t\tinlineEvaluationTamaguiPackage,\n\t\t\t\t...configuredEvaluationPackages,\n\t\t\t\t...scanInstalledTamaguiPackages(resolvedRoot, configuredEvaluationPackages).compilerCondition\n\t\t\t], userNoExternal),\n\t\t\textensions\n\t\t},\n\t\tdev: {\n\t\t\tcreateEnvironment(name, resolved) {\n\t\t\t\tconst environment = createRunnableDevEnvironment(name, createServeEvaluationConfig(resolved, configuredEvaluationPackages), { hot: false });\n\t\t\t\ttamaguiLoader.setEnvironment(environment);\n\t\t\t\treturn environment;\n\t\t\t},\n\t\t\tmoduleRunnerTransform: true\n\t\t}\n\t});\n\ttamaguiLoader.loadTamaguiBuildConfig();\n\tconst ensureLoaded = async () => {\n\t\tconst promise = tamaguiLoader.getLoadPromise();\n\t\tif (promise) await promise;\n\t\tconst options = tamaguiLoader.getTamaguiOptions();\n\t\tif (options) shouldExtract = !options.disableExtraction;\n\t\treturn options;\n\t};\n\tconst getHash = (input) => createHash(\"sha1\").update(input).digest(\"base64\");\n\tconst cssMap = /* @__PURE__ */ new Map();\n\tconst transformedModuleIds = /* @__PURE__ */ new Set();\n\tconst compilerHotUpdateSignatures = /* @__PURE__ */ new Map();\n\tconst compilerHotReloadSignatures = /* @__PURE__ */ new Map();\n\tlet config;\n\tlet server;\n\tlet zero = null;\n\tlet zeroReceipt = null;\n\tlet zeroBuildFailed = false;\n\tlet globalCSS = null;\n\tlet globalCSSExpected = null;\n\tlet zeroHtmlEntries = 0;\n\tlet zeroDevIslands = Promise.resolve();\n\tconst virtualExt = `.tamagui.css`;\n\tconst getAbsoluteVirtualFileId = (filePath) => {\n\t\tif (filePath.startsWith(config.root)) return filePath;\n\t\treturn normalizePath(path.join(config.root, filePath));\n\t};\n\tconst isAppJSXSource = (filePath) => {\n\t\tif (!/\\.[jt]sx$/.test(filePath)) return false;\n\t\tconst relative = path.relative(config.root, filePath);\n\t\treturn relative !== \"\" && relative !== \"..\" && !relative.startsWith(`..${path.sep}`) && !relative.split(path.sep).includes(\"node_modules\");\n\t};\n\tconst isFrameworkAnalysisRequest = (id) => id.includes(\"__react-router-build-client-route\");\n\tfunction isNotClient(environment) {\n\t\treturn environment?.name && environment.name !== \"client\";\n\t}\n\tconst isDevEnvironment = (environment) => environment.mode === \"dev\";\n\tfunction isNative(environment) {\n\t\treturn environment?.name && (environment.name === \"ios\" || environment.name === \"android\");\n\t}\n\tfunction invalidateCompilerModules() {\n\t\tif (server) {\n\t\t\tconst ids = /* @__PURE__ */ new Set([...transformedModuleIds, ...cssMap.keys()]);\n\t\t\tfor (const environment of Object.values(server.environments)) {\n\t\t\t\tif (environment.name === TAMAGUI_EVALUATION_ENVIRONMENT) continue;\n\t\t\t\tfor (const id of ids) {\n\t\t\t\t\tconst modules = environment.moduleGraph.getModulesByFile(id);\n\t\t\t\t\tif (!modules) continue;\n\t\t\t\t\tfor (const module of modules) environment.moduleGraph.invalidateModule(module);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcssMap.clear();\n\t}\n\treturn {\n\t\tplugins: [\n\t\t\t{\n\t\t\t\tname: \"tamagui\",\n\t\t\t\tenforce: \"pre\",\n\t\t\t\tconfigureServer(_server) {\n\t\t\t\t\tserver = _server;\n\t\t\t\t},\n\t\t\t\tasync buildEnd() {\n\t\t\t\t\tawait releaseBuildEnvironment(this.environment);\n\t\t\t\t},\n\t\t\t\tasync config(userConfig, env) {\n\t\t\t\t\tconst options = await ensureLoaded();\n\t\t\t\t\tif (!options) throw new Error(`No tamagui options loaded`);\n\t\t\t\t\tconst useReactNativeWebLite = tamaguiOptionsIn.useReactNativeWebLite ?? options.useReactNativeWebLite;\n\t\t\t\t\tfor (const source of [options.config, ...options.components || []]) {\n\t\t\t\t\t\tconst packageName = getEvaluationPackageName(source);\n\t\t\t\t\t\tif (packageName) configuredEvaluationPackages.add(packageName);\n\t\t\t\t\t}\n\t\t\t\t\tconst resolvedRoot = userConfig.root ? path.resolve(userConfig.root) : process.cwd();\n\t\t\t\t\tzero = zeroIslandBuild ? null : await createZeroRuntimeController(options, resolvedRoot, userConfig.base || \"/\");\n\t\t\t\t\tglobalCSS = zeroIslandBuild || env.command !== \"build\" ? null : Static.resolveGlobalCSSOwnership(options, resolvedRoot);\n\t\t\t\t\treturn {\n\t\t\t\t\t\tenvPrefix: [\"TAMAGUI_\"],\n\t\t\t\t\t\tenvironments: {\n\t\t\t\t\t\t\tclient: { define: {\n\t\t\t\t\t\t\t\t\"process.env.TAMAGUI_IS_CLIENT\": JSON.stringify(true),\n\t\t\t\t\t\t\t\t\"process.env.TAMAGUI_ENVIRONMENT\": \"\\\"client\\\"\",\n\t\t\t\t\t\t\t\t...zero?.isEnforcing && { \"process.env.TAMAGUI_RUNTIME\": JSON.stringify(\"zero\") },\n\t\t\t\t\t\t\t\t...globalCSS && { \"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"1\") }\n\t\t\t\t\t\t\t} },\n\t\t\t\t\t\t\tssr: { define: { ...globalCSS && { \"process.env.TAMAGUI_DID_OUTPUT_CSS\": JSON.stringify(\"1\") } } },\n\t\t\t\t\t\t\t[TAMAGUI_EVALUATION_ENVIRONMENT]: getEvaluationEnvironmentOptions(resolvedRoot, userConfig.environments?.[TAMAGUI_EVALUATION_ENVIRONMENT]?.resolve?.noExternal)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdefine: {\n\t\t\t\t\t\t\t\"process.env.TAMAGUI_RUNTIME\": JSON.stringify(zeroIslandBuild ? \"island\" : \"full\"),\n\t\t\t\t\t\t\t_frameTimestamp: void 0,\n\t\t\t\t\t\t\t_WORKLET: false,\n\t\t\t\t\t\t\t__DEV__: `${env.mode === \"development\"}`,\n\t\t\t\t\t\t\t\"process.env.NODE_ENV\": JSON.stringify(process.env.NODE_ENV || env.mode),\n\t\t\t\t\t\t\t\"process.env.ENABLE_RSC\": JSON.stringify(process.env.ENABLE_RSC || \"\"),\n\t\t\t\t\t\t\t\"process.env.ENABLE_STEPS\": JSON.stringify(process.env.ENABLE_STEPS || \"\"),\n\t\t\t\t\t\t\t\"process.env.IS_STATIC\": JSON.stringify(false),\n\t\t\t\t\t\t\t...env.mode === \"production\" && { \"process.env.TAMAGUI_OPTIMIZE_THEMES\": JSON.stringify(true) }\n\t\t\t\t\t\t},\n\t\t\t\t\t\tresolve: disableResolveConfig || enableNativeEnv ? {} : {\n\t\t\t\t\t\t\textensions,\n\t\t\t\t\t\t\talias: { ...options.platform !== \"native\" && {\n\t\t\t\t\t\t\t\t\"react-native/Libraries/Renderer/shims/ReactFabric\": resolve(\"@tamagui/proxy-worm\"),\n\t\t\t\t\t\t\t\t\"react-native/Libraries/Utilities/codegenNativeComponent\": resolve(\"@tamagui/proxy-worm\"),\n\t\t\t\t\t\t\t\t\"react-native-svg\": svgWebEntry(),\n\t\t\t\t\t\t\t\t\"@tamagui/react-native-svg\": svgWebEntry(),\n\t\t\t\t\t\t\t\t...!useReactNativeWebLite && { \"react-native\": resolve(\"react-native-web\") }\n\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-rnw-lite\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tconfig() {\n\t\t\t\t\tif (enableNativeEnv) return {};\n\t\t\t\t\tconst options = tamaguiLoader.getTamaguiOptions();\n\t\t\t\t\tconst useReactNativeWebLite = tamaguiOptionsIn.useReactNativeWebLite ?? options?.useReactNativeWebLite;\n\t\t\t\t\tif (!useReactNativeWebLite) return {};\n\t\t\t\t\tconst include = [];\n\t\t\t\t\tfor (const dependency of [\"memoize-one\", \"@react-native/normalize-color\"]) if (isInstalled(process.cwd(), dependency)) include.push(dependency);\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresolve: { alias: tamaguiAliases({ rnwLite: useReactNativeWebLite }) },\n\t\t\t\t\t\tssr: { noExternal: [\n\t\t\t\t\t\t\t/^@tamagui\\//,\n\t\t\t\t\t\t\t\"tamagui\",\n\t\t\t\t\t\t\t\"react-native\",\n\t\t\t\t\t\t\t\"react-native-web\"\n\t\t\t\t\t\t] },\n\t\t\t\t\t\toptimizeDeps: {\n\t\t\t\t\t\t\texclude: [\"react-native-web\"],\n\t\t\t\t\t\t\tinclude\n\t\t\t\t\t\t}\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-extract\",\n\t\t\t\tenforce: \"pre\",\n\t\t\t\tasync config(userConf) {\n\t\t\t\t\tawait ensureLoaded();\n\t\t\t\t\tuserConf.optimizeDeps ||= {};\n\t\t\t\t\tuserConf.optimizeDeps.include ||= [];\n\t\t\t\t\tuserConf.optimizeDeps.include.push(\"inline-style-prefixer\");\n\t\t\t\t\taddIfInstalled(userConf, userConf.root, [\"@react-native/normalize-color\"]);\n\t\t\t\t\taddIfInstalled(userConf, userConf.root, [\n\t\t\t\t\t\t\"@tamagui/core\",\n\t\t\t\t\t\t\"@tamagui/core/theme-update\",\n\t\t\t\t\t\t\"@tamagui/web\",\n\t\t\t\t\t\t\"@tamagui/web/theme-update\",\n\t\t\t\t\t\t\"@tamagui/animations-css\",\n\t\t\t\t\t\t\"@tamagui/animations-css/extras\",\n\t\t\t\t\t\t\"@tamagui/toast\",\n\t\t\t\t\t\t\"@tamagui/sheet\",\n\t\t\t\t\t\t\"@tamagui/sheet/controller\"\n\t\t\t\t\t]);\n\t\t\t\t\tuserConf.resolve ||= {};\n\t\t\t\t\tuserConf.resolve.dedupe ||= [];\n\t\t\t\t\tfor (const id of [\n\t\t\t\t\t\t\"tamagui\",\n\t\t\t\t\t\t\"@tamagui/core\",\n\t\t\t\t\t\t\"@tamagui/core/theme-update\",\n\t\t\t\t\t\t\"@tamagui/web\",\n\t\t\t\t\t\t\"@tamagui/web/theme-update\",\n\t\t\t\t\t\t\"@tamagui/animations-css\",\n\t\t\t\t\t\t\"@tamagui/toast\",\n\t\t\t\t\t\t\"@tamagui/sheet\"\n\t\t\t\t\t]) if (!userConf.resolve.dedupe.includes(id) && isInstalled(userConf.root || process.cwd(), id)) userConf.resolve.dedupe.push(id);\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tuserConf.optimizeDeps.include.push(\"@tamagui/core/inject-styles\");\n\t\t\t\t},\n\t\t\t\tasync configResolved(resolvedConfig) {\n\t\t\t\t\tconfig = resolvedConfig;\n\t\t\t\t},\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tconst buildConfig = this.environment.getTopLevelConfig();\n\t\t\t\t\tif (buildConfig.command !== \"build\") {\n\t\t\t\t\t\tif (this.environment.name === \"client\") {\n\t\t\t\t\t\t\tconst dependencies = await tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\t\t\tfor (const dependency of dependencies) this.addWatchFile(dependency);\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tconst pendingCleanup = buildCleanupPromise;\n\t\t\t\t\tif (pendingCleanup) await pendingCleanup;\n\t\t\t\t\tconst buildEnvironment = this.environment;\n\t\t\t\t\tactiveBuildEnvironments.add(buildEnvironment);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (!tamaguiLoader.getEnvironment()) {\n\t\t\t\t\t\t\tawait tamaguiLoader.loadTamaguiBuildConfig();\n\t\t\t\t\t\t\tbuildEnvironmentPromise ||= (async () => {\n\t\t\t\t\t\t\t\tconst evaluationEnvironment = createRunnableDevEnvironment(TAMAGUI_EVALUATION_ENVIRONMENT, await createOwnedEvaluationConfig(buildConfig, configuredEvaluationPackages), { hot: false });\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tawait evaluationEnvironment.init();\n\t\t\t\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t\t\t\tawait evaluationEnvironment.close().catch(() => void 0);\n\t\t\t\t\t\t\t\t\tthrow error;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttamaguiLoader.setEnvironment(evaluationEnvironment, { owned: true });\n\t\t\t\t\t\t\t})();\n\t\t\t\t\t\t\tawait buildEnvironmentPromise;\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tawait releaseBuildEnvironment(buildEnvironment);\n\t\t\t\t\t\tthrow error;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\thotUpdate: {\n\t\t\t\t\torder: \"post\",\n\t\t\t\t\tasync handler(options) {\n\t\t\t\t\t\tif (!tamaguiLoader.isEvaluationDependency(options.file)) {\n\t\t\t\t\t\t\tif (this.environment.name !== \"client\") return;\n\t\t\t\t\t\t\tconst compilerFrontend = getCompilerFrontend(this.environment);\n\t\t\t\t\t\t\tconst source = options.type === \"delete\" ? null : await options.read();\n\t\t\t\t\t\t\tconst affectedModules = /* @__PURE__ */ new Set();\n\t\t\t\t\t\t\tconst compilerHmrRoots = new Set(compilerFrontend.dependentsOf(options.file));\n\t\t\t\t\t\t\tif (compilerHmrRoots.size || compilerFrontend.has(options.file)) compilerHmrRoots.add(options.file);\n\t\t\t\t\t\t\tif (compilerFrontend.has(options.file) || compilerHmrRoots.size > 0) {\n\t\t\t\t\t\t\t\tif (!(await ensureLoaded())?.disable) {\n\t\t\t\t\t\t\t\t\tconst invalidatedIds = options.type === \"delete\" ? (await compilerFrontend.remove(options.file)).invalidatedIds : await compilerFrontend.update({\n\t\t\t\t\t\t\t\t\t\tid: options.file,\n\t\t\t\t\t\t\t\t\t\tsource,\n\t\t\t\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\t\t\t\t\tenvironment: this.environment.name,\n\t\t\t\t\t\t\t\t\t\tproject: {\n\t\t\t\t\t\t\t\t\t\t\t...await tamaguiLoader.getCompilerProject(),\n\t\t\t\t\t\t\t\t\t\t\tgeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tresolve: async (specifier, importer) => {\n\t\t\t\t\t\t\t\t\t\t\tconst resolution = await this.environment.pluginContainer.resolveId(specifier, importer);\n\t\t\t\t\t\t\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\t\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\t\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t\t\t\t\t\t\t} : null;\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\tfor (const invalidatedId of invalidatedIds) {\n\t\t\t\t\t\t\t\t\t\tfor (const module of this.environment.moduleGraph.getModulesByFile(invalidatedId) ?? []) {\n\t\t\t\t\t\t\t\t\t\t\tthis.environment.moduleGraph.invalidateModule(module);\n\t\t\t\t\t\t\t\t\t\t\tif (compilerHmrRoots.has(invalidatedId) || module.isSelfAccepting) affectedModules.add(module);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tconst cssId = getAbsoluteVirtualFileId(`${invalidatedId}${virtualExt}`);\n\t\t\t\t\t\t\t\t\t\tconst cssModule = this.environment.moduleGraph.getModuleById(cssId);\n\t\t\t\t\t\t\t\t\t\tif (cssModule) {\n\t\t\t\t\t\t\t\t\t\t\tthis.environment.moduleGraph.invalidateModule(cssModule);\n\t\t\t\t\t\t\t\t\t\t\taffectedModules.add(cssModule);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn affectedModules.size ? [...affectedModules] : void 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst signature = await (async () => {\n\t\t\t\t\t\t\tif (options.type === \"delete\") return getHash(`${options.type}:${options.file}`);\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\treturn getHash(`${options.type}:${options.file}:${await options.read()}`);\n\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\treturn getHash(`${options.type}:${options.file}:${options.timestamp}`);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})();\n\t\t\t\t\t\tif (compilerHotUpdateSignatures.get(options.file) !== signature) {\n\t\t\t\t\t\t\tcompilerHotUpdateSignatures.set(options.file, signature);\n\t\t\t\t\t\t\ttamaguiLoader.invalidate(options.file);\n\t\t\t\t\t\t\tinvalidateCompilerModules();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst dependencies = await tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\t\tserver.watcher.add(dependencies);\n\t\t\t\t\t\tif (this.environment.name === \"client\" && compilerHotReloadSignatures.get(options.file) !== signature) {\n\t\t\t\t\t\t\tcompilerHotReloadSignatures.set(options.file, signature);\n\t\t\t\t\t\t\tthis.environment.hot.send({\n\t\t\t\t\t\t\t\ttype: \"full-reload\",\n\t\t\t\t\t\t\t\tpath: \"*\",\n\t\t\t\t\t\t\t\ttriggeredBy: options.file\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn [];\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync watchChange(id) {\n\t\t\t\t\tif (config.command !== \"build\") return;\n\t\t\t\t\tif (tamaguiLoader.isEvaluationDependency(id)) {\n\t\t\t\t\t\ttamaguiLoader.invalidate(id);\n\t\t\t\t\t\tinvalidateCompilerModules();\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync resolveId(source) {\n\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\tif (isNotClient(this.environment)) return;\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tconst [validId, query] = source.split(\"?\");\n\t\t\t\t\tif (!validId.endsWith(virtualExt)) return;\n\t\t\t\t\tconst absoluteId = validId.startsWith(config.root) ? validId : getAbsoluteVirtualFileId(validId);\n\t\t\t\t\tif (cssMap.has(absoluteId)) return absoluteId + (query ? `?${query}` : \"\");\n\t\t\t\t},\n\t\t\t\tasync load(id) {\n\t\t\t\t\tif (tamaguiLoader.getTamaguiOptions()?.disable) return;\n\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\tif (isNotClient(this.environment)) return;\n\t\t\t\t\tif (!shouldExtract) return;\n\t\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\t\tif (!validId.endsWith(virtualExt)) return;\n\t\t\t\t\tif (isDevEnvironment(this.environment)) {\n\t\t\t\t\t\tconst importer = this.environment.moduleGraph.getModuleById(validId.slice(0, -virtualExt.length));\n\t\t\t\t\t\tif (importer && importer.transformResult == null) await this.environment.transformRequest(importer.url);\n\t\t\t\t\t}\n\t\t\t\t\treturn cssMap.get(validId);\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-compiler\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\ttransform: {\n\t\t\t\t\torder: \"pre\",\n\t\t\t\t\tasync handler(code, id) {\n\t\t\t\t\t\tif (this.environment?.name === TAMAGUI_EVALUATION_ENVIRONMENT) return;\n\t\t\t\t\t\tif (!tamaguiLoader.getEnvironment()) return;\n\t\t\t\t\t\tif (isNative(this.environment)) return;\n\t\t\t\t\t\tconst [validId] = id.split(\"?\");\n\t\t\t\t\t\tif (isFrameworkAnalysisRequest(id) || !isAppJSXSource(validId) || !/\\.[jt]sx$/.test(validId)) return;\n\t\t\t\t\t\tif ((await ensureLoaded())?.disable || !shouldExtract) return;\n\t\t\t\t\t\tconst { shouldDisable } = await Static.getPragmaOptions({\n\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\tpath: validId\n\t\t\t\t\t\t});\n\t\t\t\t\t\tif (shouldDisable) return;\n\t\t\t\t\t\tconst evaluationDependencies = await tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\t\tfor (const dependency of evaluationDependencies) this.addWatchFile(dependency);\n\t\t\t\t\t\tconst compilerProject = await tamaguiLoader.getCompilerProject();\n\t\t\t\t\t\tconst result = await getCompilerFrontend(this.environment).compile({\n\t\t\t\t\t\t\tid: validId,\n\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\t\tenvironment: this.environment.name,\n\t\t\t\t\t\t\tproject: {\n\t\t\t\t\t\t\t\t...compilerProject,\n\t\t\t\t\t\t\t\tgeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`,\n\t\t\t\t\t\t\t\tzeroRuntime: zero !== null\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tresolve: async (specifier, importer) => {\n\t\t\t\t\t\t\t\tconst resolution = await this.resolve(specifier, importer, { skipSelf: true });\n\t\t\t\t\t\t\t\treturn resolution ? {\n\t\t\t\t\t\t\t\t\tid: resolution.id,\n\t\t\t\t\t\t\t\t\texternal: resolution.external === true\n\t\t\t\t\t\t\t\t} : null;\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tevaluate: ({ id: moduleId }) => tamaguiLoader.evaluateModule(moduleId),\n\t\t\t\t\t\t\tload: async (dependencyId) => {\n\t\t\t\t\t\t\t\tconst cleanDependencyId = dependencyId.split(/[?#]/, 1)[0];\n\t\t\t\t\t\t\t\tif (!path.isAbsolute(cleanDependencyId)) return null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\treturn await readFile(cleanDependencyId, \"utf8\");\n\t\t\t\t\t\t\t\t} catch {\n\t\t\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\ttransformedModuleIds.add(validId);\n\t\t\t\t\t\tcompilerReports?.set(validId, {\n\t\t\t\t\t\t\tstats: result.plan.stats,\n\t\t\t\t\t\t\tdiagnostics: result.plan.diagnostics\n\t\t\t\t\t\t});\n\t\t\t\t\t\tfor (const dependency of result.plan.dependencies) if (path.isAbsolute(dependency)) this.addWatchFile(dependency);\n\t\t\t\t\t\tif (zeroIslandBuild) {\n\t\t\t\t\t\t\tzeroIslandBuild.artifact.setIslandModuleCSS(zeroIslandBuild.islandId, validId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\treturn result.output.changed ? {\n\t\t\t\t\t\t\t\tcode: result.output.code,\n\t\t\t\t\t\t\t\tmap: result.output.map\n\t\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (zero) {\n\t\t\t\t\t\t\tconst zeroResult = Static.transformZeroModule({\n\t\t\t\t\t\t\t\tmode: zero.isEnforcing ? \"enforce\" : \"report\",\n\t\t\t\t\t\t\t\tid: validId,\n\t\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\t\tsource: code,\n\t\t\t\t\t\t\t\tplan: result.plan,\n\t\t\t\t\t\t\t\tconfig: await tamaguiLoader.getTamaguiConfig(),\n\t\t\t\t\t\t\t\tisTamaguiSpecifier: Static.isTamaguiSpecifier,\n\t\t\t\t\t\t\t\tresolveIslandLoader: (specifier) => {\n\t\t\t\t\t\t\t\t\tconst islandId = zero.loaderIds.get(zeroModuleKey(path.resolve(path.dirname(validId), specifier)));\n\t\t\t\t\t\t\t\t\treturn islandId ? { islandId } : null;\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tresolveIslandModule: (specifier) => zero.islandModuleIds.get(zeroModuleKey(path.resolve(path.dirname(validId), specifier))) ?? null\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tzero.transformed.add(validId);\n\t\t\t\t\t\t\tif (zeroResult.erased.exports.length) zero.erasedExports.set(validId, zeroResult.erased.exports);\n\t\t\t\t\t\t\tfor (const violation of zeroResult.violations) {\n\t\t\t\t\t\t\t\tconst { line, column } = Static.offsetToLineColumn(code, violation.span.start);\n\t\t\t\t\t\t\t\tzero.violations.push({\n\t\t\t\t\t\t\t\t\tfile: path.relative(config.root, validId),\n\t\t\t\t\t\t\t\t\tline,\n\t\t\t\t\t\t\t\t\tcolumn,\n\t\t\t\t\t\t\t\t\trule: violation.rule,\n\t\t\t\t\t\t\t\t\tcode: violation.code,\n\t\t\t\t\t\t\t\t\tcomponent: violation.component,\n\t\t\t\t\t\t\t\t\tmessage: violation.message\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (zero.isEnforcing) {\n\t\t\t\t\t\t\t\tStatic.mergeIslandBridges(zero.bridges, zeroResult.bridges);\n\t\t\t\t\t\t\t\tconst moduleCSS = [wrapExtractedCSS(result.plan.css), ...zeroResult.bridgeCSS.values()].filter(Boolean).join(\"\\n\");\n\t\t\t\t\t\t\t\tif (config.command !== \"build\") {\n\t\t\t\t\t\t\t\t\tlet cssImport2 = \"\";\n\t\t\t\t\t\t\t\t\tif (moduleCSS) {\n\t\t\t\t\t\t\t\t\t\tconst rootRelativeId = `${validId}${virtualExt}`;\n\t\t\t\t\t\t\t\t\t\tcssMap.set(getAbsoluteVirtualFileId(rootRelativeId), moduleCSS);\n\t\t\t\t\t\t\t\t\t\tthis.addWatchFile(rootRelativeId);\n\t\t\t\t\t\t\t\t\t\tcssImport2 = `\nimport \"${rootRelativeId}\";`;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\tcode: `${zeroResult.output.code}${cssImport2}`,\n\t\t\t\t\t\t\t\t\t\tmap: zeroResult.output.map\n\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfor (const [identifier, rules] of zeroResult.bridgeCSS) zero.artifact.setBridgeRules(identifier, rules);\n\t\t\t\t\t\t\t\tzero.artifact.setZeroModuleCSS(validId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\t\treturn zeroResult.output.changed ? {\n\t\t\t\t\t\t\t\t\tcode: zeroResult.output.code,\n\t\t\t\t\t\t\t\t\tmap: zeroResult.output.map\n\t\t\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst isSSR = isNotClient(this.environment);\n\t\t\t\t\t\tlet cssImport = null;\n\t\t\t\t\t\tif (result.plan.css) {\n\t\t\t\t\t\t\tconst rootRelativeId = `${validId}${virtualExt}`;\n\t\t\t\t\t\t\tconst absoluteId = getAbsoluteVirtualFileId(rootRelativeId);\n\t\t\t\t\t\t\tcssMap.set(absoluteId, wrapExtractedCSS(result.plan.css));\n\t\t\t\t\t\t\tthis.addWatchFile(rootRelativeId);\n\t\t\t\t\t\t\tif (!isSSR) cssImport = `import \"${rootRelativeId}\";`;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst finalCode = cssImport ? `${result.output.code}\n${cssImport}` : result.output.code;\n\t\t\t\t\t\treturn result.output.changed || cssImport ? {\n\t\t\t\t\t\t\tcode: finalCode,\n\t\t\t\t\t\t\tmap: result.output.map\n\t\t\t\t\t\t} : void 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-zero-runtime\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tawait tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\tconst tamaguiConfig = await tamaguiLoader.getTamaguiConfig();\n\t\t\t\t\tif (!tamaguiConfig) throw new Error(`[tamagui zero-runtime] the Tamagui config did not evaluate, so no CSS artifact can be generated`);\n\t\t\t\t\tzero.violations.length = 0;\n\t\t\t\t\tzero.transformed.clear();\n\t\t\t\t\tzero.erasedExports.clear();\n\t\t\t\t\tif (!zero.isEnforcing) return;\n\t\t\t\t\tStatic.assertZeroConfigDrivers(tamaguiConfig);\n\t\t\t\t\tzero.artifact.clearGraphs();\n\t\t\t\t\tzero.bridges.clear();\n\t\t\t\t\tzeroHtmlEntries = 0;\n\t\t\t\t\tzero.artifact.setConfigCSS(tamaguiConfig.getCSS());\n\t\t\t\t\tif (config.command !== \"build\") {\n\t\t\t\t\t\tconst islands = zero;\n\t\t\t\t\t\tzeroDevIslands = Promise.all(islands.resolved.islands.map((island) => buildIsland({\n\t\t\t\t\t\t\tisland,\n\t\t\t\t\t\t\tcontroller: islands,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\toutDir: zeroDevIslandDir(islands),\n\t\t\t\t\t\t\tmode: \"development\"\n\t\t\t\t\t\t})));\n\t\t\t\t\t\tawait zeroDevIslands;\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tasync configureServer(devServer) {\n\t\t\t\t\tif (!zero?.isEnforcing) return;\n\t\t\t\t\tconst islandBase = `${zero.cssHref.replace(ZERO_CSS_FILENAME, \"\")}${ZERO_ISLAND_DIRNAME}/`;\n\t\t\t\t\tdevServer.middlewares.use(async (request, response, next) => {\n\t\t\t\t\t\tconst url = (request.url || \"\").split(\"?\")[0];\n\t\t\t\t\t\tif (url !== zero.cssHref && !url.startsWith(islandBase)) return next();\n\t\t\t\t\t\tawait zeroDevIslands;\n\t\t\t\t\t\tif (url === zero.cssHref) {\n\t\t\t\t\t\t\tresponse.setHeader(\"content-type\", \"text/css; charset=utf-8\");\n\t\t\t\t\t\t\tresponse.setHeader(\"cache-control\", \"no-cache\");\n\t\t\t\t\t\t\tresponse.end(zero.artifact.css());\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst islandId = url.slice(islandBase.length).replace(/\\.js$/, \"\");\n\t\t\t\t\t\tconst file = path.join(zeroDevIslandDir(zero), ZERO_ISLAND_DIRNAME, `${islandId}.js`);\n\t\t\t\t\t\tif (!existsSync(file)) return next();\n\t\t\t\t\t\tresponse.setHeader(\"content-type\", \"text/javascript; charset=utf-8\");\n\t\t\t\t\t\tresponse.setHeader(\"cache-control\", \"no-cache\");\n\t\t\t\t\t\tresponse.end(readFileSync(file));\n\t\t\t\t\t});\n\t\t\t\t},\n\t\t\t\tbuildEnd(error) {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tif (error) {\n\t\t\t\t\t\tzeroBuildFailed = true;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (!zero.isEnforcing) return;\n\t\t\t\t\tconst importers = /* @__PURE__ */ new Map();\n\t\t\t\t\tfor (const moduleId of this.getModuleIds()) importers.set(moduleId, this.getModuleInfo(moduleId)?.importers ?? []);\n\t\t\t\t\tconst escape = Static.erasedExportEscape({\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\ttransformed: zero.transformed,\n\t\t\t\t\t\terasedExports: zero.erasedExports,\n\t\t\t\t\t\timportersOf: importers\n\t\t\t\t\t});\n\t\t\t\t\tif (escape) {\n\t\t\t\t\t\tzeroBuildFailed = true;\n\t\t\t\t\t\tthrow new Error(escape);\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\ttransformIndexHtml: {\n\t\t\t\t\torder: \"post\",\n\t\t\t\t\thandler(html) {\n\t\t\t\t\t\tif (!zero?.isEnforcing) return;\n\t\t\t\t\t\tzeroHtmlEntries++;\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\thtml,\n\t\t\t\t\t\t\ttags: [{\n\t\t\t\t\t\t\t\ttag: \"link\",\n\t\t\t\t\t\t\t\tattrs: {\n\t\t\t\t\t\t\t\t\trel: \"stylesheet\",\n\t\t\t\t\t\t\t\t\thref: zero.cssHref\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tinjectTo: \"head\"\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t};\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tgenerateBundle(_outputOptions, bundle) {\n\t\t\t\t\tif (!zero?.isEnforcing || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst importers = /* @__PURE__ */ new Map();\n\t\t\t\t\tfor (const moduleId of this.getModuleIds()) for (const imported of this.getModuleInfo(moduleId)?.importedIds ?? []) {\n\t\t\t\t\t\tconst list = importers.get(imported);\n\t\t\t\t\t\tif (list) list.push(moduleId);\n\t\t\t\t\t\telse importers.set(imported, [moduleId]);\n\t\t\t\t\t}\n\t\t\t\t\tconst entries = [];\n\t\t\t\t\tconst modules = [];\n\t\t\t\t\tfor (const chunk of Object.values(bundle)) {\n\t\t\t\t\t\tif (chunk.type !== \"chunk\") continue;\n\t\t\t\t\t\tfor (const moduleId of Object.keys(chunk.modules)) {\n\t\t\t\t\t\t\tmodules.push({\n\t\t\t\t\t\t\t\tid: moduleId,\n\t\t\t\t\t\t\t\timporters: importers.get(moduleId) ?? []\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tif (this.getModuleInfo(moduleId)?.isEntry) entries.push(moduleId);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tconst checked = Static.checkZeroGraph({\n\t\t\t\t\t\tentries,\n\t\t\t\t\t\tmodules,\n\t\t\t\t\t\timporterEdges: importers,\n\t\t\t\t\t\troot: zero.resolved.root\n\t\t\t\t\t});\n\t\t\t\t\tzeroReceipt = {\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\tgraph: \"zero\",\n\t\t\t\t\t\tentries: entries.sort(),\n\t\t\t\t\t\tmoduleCount: modules.length,\n\t\t\t\t\t\ttamaguiModules: checked.tamaguiModules,\n\t\t\t\t\t\tforbidden: checked.forbidden,\n\t\t\t\t\t\tcssArtifact: null,\n\t\t\t\t\t\tidentity: \"\",\n\t\t\t\t\t\tgzip: Object.fromEntries(Object.values(bundle).filter((chunk) => chunk.type === \"chunk\").map((chunk) => [chunk.fileName, gzipSync(Buffer.from(chunk.code), { level: 9 }).length]))\n\t\t\t\t\t};\n\t\t\t\t},\n\t\t\t\tasync closeBundle() {\n\t\t\t\t\tif (!zero || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst outDir = path.resolve(config.root, this.environment.config.build.outDir);\n\t\t\t\t\tconst receiptName = `vite-${path.basename(outDir)}`;\n\t\t\t\t\tStatic.writeZeroViolationReport(zero.resolved.outDir, receiptName, {\n\t\t\t\t\t\tintegration: \"vite\",\n\t\t\t\t\t\tmode: zero.isEnforcing ? \"enforce\" : \"report\",\n\t\t\t\t\t\tviolations: zero.violations\n\t\t\t\t\t});\n\t\t\t\t\tif (!zero.isEnforcing || zeroBuildFailed) return;\n\t\t\t\t\tif (zero.violations.length) throw new Error(Static.formatZeroViolations(zero.violations));\n\t\t\t\t\tconst islandOutputHashes = {};\n\t\t\t\t\tfor (const island of zero.resolved.islands) {\n\t\t\t\t\t\tconst built = await buildIsland({\n\t\t\t\t\t\t\tisland,\n\t\t\t\t\t\t\tcontroller: zero,\n\t\t\t\t\t\t\troot: config.root,\n\t\t\t\t\t\t\toutDir,\n\t\t\t\t\t\t\tmode: config.mode\n\t\t\t\t\t\t});\n\t\t\t\t\t\tislandOutputHashes[island.id] = built.hash;\n\t\t\t\t\t}\n\t\t\t\t\tif (zeroHtmlEntries === 0) throw new Error(`[tamagui zero-runtime] the zero entry graph has no HTML entry, so the one generated CSS artifact ${zero.cssHref} is never loaded. Build a zero entry through its HTML document.`);\n\t\t\t\t\tconst css = finalizeZeroCSS(zero, outDir);\n\t\t\t\t\tconst bridgeManifest = Static.canonicalizeBridgeManifest(Object.fromEntries([...zero.bridges.entries()].sort(([left], [right]) => left < right ? -1 : 1)));\n\t\t\t\t\tconst identityInputs = {\n\t\t\t\t\t\truntimeLiteral: \"zero\",\n\t\t\t\t\t\ttarget: \"web\",\n\t\t\t\t\t\tconfigGeneration: `${pluginInstanceId}:${tamaguiLoader.getGeneration()}`,\n\t\t\t\t\t\tcssHash: css.hash,\n\t\t\t\t\t\tcompilerVersion: Static.ZERO_COMPILER_VERSION,\n\t\t\t\t\t\tislandEntries: zero.resolved.islands.map((island) => island.module),\n\t\t\t\t\t\tbridgeManifestHash: Static.hashBridgeManifest(bridgeManifest),\n\t\t\t\t\t\tislandOutputHashes\n\t\t\t\t\t};\n\t\t\t\t\tconst identity = Static.hashZeroIdentity(identityInputs);\n\t\t\t\t\tif (!zeroReceipt) throw new Error(`[tamagui zero-runtime] no module graph was recorded for the zero entry`);\n\t\t\t\t\tzeroReceipt.cssArtifact = {\n\t\t\t\t\t\tpath: css.href,\n\t\t\t\t\t\thash: css.hash\n\t\t\t\t\t};\n\t\t\t\t\tzeroReceipt.identity = identity;\n\t\t\t\t\tStatic.writeZeroGraphReceipt(zero.resolved.outDir, receiptName, zeroReceipt);\n\t\t\t\t\twriteFileSync(path.join(zero.resolved.outDir, `${receiptName}.bridges.json`), `${JSON.stringify({\n\t\t\t\t\t\tidentity,\n\t\t\t\t\t\tidentityInputs,\n\t\t\t\t\t\tcssGzip: css.gzip,\n\t\t\t\t\t\tbridges: bridgeManifest\n\t\t\t\t\t}, null, 2)}\n`);\n\t\t\t\t\tassertZeroGraph(zeroReceipt);\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\tname: \"tamagui-global-css\",\n\t\t\t\tenforce: \"post\",\n\t\t\t\tapply: \"build\",\n\t\t\t\tasync buildStart() {\n\t\t\t\t\tif (!globalCSS || this.environment.name !== \"client\") return;\n\t\t\t\t\tawait tamaguiLoader.ensureFullConfigLoaded();\n\t\t\t\t\tconst tamaguiConfig = await tamaguiLoader.getTamaguiConfig();\n\t\t\t\t\tif (!tamaguiConfig) throw new Error(`[tamagui] outputCSS is set but the Tamagui config did not evaluate, so no CSS artifact can be generated`);\n\t\t\t\t\tglobalCSSExpected = tamaguiConfig.getCSS();\n\t\t\t\t},\n\t\t\t\tgenerateBundle() {\n\t\t\t\t\tif (!globalCSS || this.environment.name !== \"client\") return;\n\t\t\t\t\tconst failure = Static.checkGlobalCSSArtifact({\n\t\t\t\t\t\tcssPath: globalCSS.cssPath,\n\t\t\t\t\t\texpectedCSS: globalCSSExpected ?? \"\",\n\t\t\t\t\t\tloadedModuleIds: this.getModuleIds(),\n\t\t\t\t\t\timportHint: `Import it once from your client entry: import ${JSON.stringify(relativeImportSpecifier(config.root, globalCSS.cssPath))}`\n\t\t\t\t\t});\n\t\t\t\t\tif (failure) throw new Error(failure.message);\n\t\t\t\t}\n\t\t\t},\n\t\t\ttamaguiNativePlugin(tamaguiOptionsIn)\n\t\t],\n\t\tloader: tamaguiLoader\n\t};\n}\nfunction zeroDevIslandDir(zero) {\n\treturn path.join(zero.resolved.outDir, \"dev\");\n}\nfunction relativeImportSpecifier(from, to) {\n\tconst relative = normalizePath(path.relative(from, to));\n\treturn relative.startsWith(\".\") ? relative : `./${relative}`;\n}\nfunction tamaguiPlugin(options = {}) {\n\treturn createTamaguiPlugins(options).plugins;\n}\n\nexport { createTamaguiPlugins, tamaguiAliases, tamaguiNativePlugin, tamaguiPlugin };"],"mappings":";;;;;;;;;;;;;;AAaA,MAAM,0DAA0D,IAAI,IAAI,CAAC,gBAAgB,wBAAwB,CAAC;AAClH,MAA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5
  "files": [
6
6
  "src",
@@ -41,19 +41,19 @@
41
41
  "clean:build": "tamagui-build clean:build"
42
42
  },
43
43
  "dependencies": {
44
- "@tamagui/fake-react-native": "3.0.0-beta.1187.1",
45
- "@tamagui/proxy-worm": "3.0.0-beta.1187.1",
46
- "@tamagui/react-native-svg": "3.0.0-beta.1187.1",
47
- "@tamagui/react-native-web-lite": "3.0.0-beta.1187.1",
48
- "@tamagui/static": "3.0.0-beta.1187.1",
49
- "@tamagui/types": "3.0.0-beta.1187.1",
44
+ "@tamagui/fake-react-native": "3.0.0-beta.1191.1",
45
+ "@tamagui/proxy-worm": "3.0.0-beta.1191.1",
46
+ "@tamagui/react-native-svg": "3.0.0-beta.1191.1",
47
+ "@tamagui/react-native-web-lite": "3.0.0-beta.1191.1",
48
+ "@tamagui/static": "3.0.0-beta.1191.1",
49
+ "@tamagui/types": "3.0.0-beta.1191.1",
50
50
  "esm-resolve": "^1.0.8",
51
51
  "fs-extra": "^11.2.0",
52
52
  "outdent": "^0.8.0",
53
53
  "react-native-web": "~0.21.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@tamagui/build": "3.0.0-beta.1187.1",
56
+ "@tamagui/build": "3.0.0-beta.1191.1",
57
57
  "vite": "^8.2.2",
58
58
  "vitest": "4.1.0"
59
59
  },
@@ -59,6 +59,8 @@ export function createViteTamaguiLoader(
59
59
  let loadPromise: Promise<TamaguiOptions> | null = null
60
60
  let loadedOptions: TamaguiOptions | null = null
61
61
  let projectPromise: Promise<Static.CompilerProject> | null = null
62
+ let loadingProject: Promise<Static.CompilerProject> | null = null
63
+ const invalidatedFiles = new Set<string>()
62
64
  const evaluationDependencies = new Set<string>()
63
65
  const stampSources = new Set<string>()
64
66
  let generation = 0
@@ -66,6 +68,7 @@ export function createViteTamaguiLoader(
66
68
  const normalizeDependency = (id: string) => id.split('?')[0]
67
69
 
68
70
  const captureEvaluationDependencies = (modules: ResolvedEvaluationModule[]) => {
71
+ evaluationDependencies.clear()
69
72
  stampSources.clear()
70
73
  for (const { id } of modules) {
71
74
  const dependency = normalizeDependency(id)
@@ -172,19 +175,41 @@ export function createViteTamaguiLoader(
172
175
  ): Promise<Static.CompilerProject> => {
173
176
  if (projectPromise) return projectPromise
174
177
 
178
+ const previous = loadingProject
179
+ const projectGeneration = generation
180
+ const changedFiles = [...invalidatedFiles]
181
+ invalidatedFiles.clear()
175
182
  projectPromise = (async () => {
183
+ // evaluations and their artifact writes have one owner across generations.
184
+ // a repaired edit runs after the failed generation has finished reporting.
185
+ try {
186
+ await previous
187
+ } catch {}
176
188
  if (!environment) {
177
189
  throw new Error(
178
190
  `Cannot load Tamagui without the ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment`
179
191
  )
180
192
  }
181
193
 
194
+ for (const file of changedFiles) {
195
+ const evaluated = environment.runner.evaluatedModules
196
+ const affected = new Set(evaluated.getModulesByFile(file))
197
+ // invalidate importers, retaining unrelated modules and their singletons.
198
+ for (const module of affected) {
199
+ for (const importer of module.importers) {
200
+ const parent = evaluated.getModuleById(importer)
201
+ if (parent) affected.add(parent)
202
+ }
203
+ evaluated.invalidateModule(module)
204
+ }
205
+ }
206
+
182
207
  let evaluated: EvaluatedProjectModules | null = null
183
208
  return Static.loadCompilerProject({
184
209
  root: environment.config.root,
185
210
  target: 'web',
186
211
  options,
187
- generation: `vite:${generation}`,
212
+ generation: `vite:${projectGeneration}`,
188
213
  hostVersions: vitePluginVersions,
189
214
  async load(normalizedOptions) {
190
215
  evaluated = await evaluateProjectModules(normalizedOptions)
@@ -213,7 +238,16 @@ export function createViteTamaguiLoader(
213
238
  })
214
239
  })()
215
240
 
216
- return projectPromise
241
+ loadingProject = projectPromise
242
+ const pending = projectPromise
243
+ try {
244
+ return await pending
245
+ } catch (error) {
246
+ if (projectPromise === pending) projectPromise = null
247
+ throw error
248
+ } finally {
249
+ if (loadingProject === pending) loadingProject = null
250
+ }
217
251
  }
218
252
 
219
253
  return {
@@ -256,9 +290,7 @@ export function createViteTamaguiLoader(
256
290
  },
257
291
 
258
292
  invalidate(file?: string) {
259
- if (file && environment) {
260
- environment.runner.clearCache()
261
- }
293
+ if (file) invalidatedFiles.add(normalizeDependency(file))
262
294
  generation++
263
295
  projectPromise = null
264
296
  },
@@ -273,6 +305,7 @@ export function createViteTamaguiLoader(
273
305
 
274
306
  async cleanup() {
275
307
  try {
308
+ await loadingProject?.catch(() => {})
276
309
  if (ownsEnvironment && environment) {
277
310
  await environment.close()
278
311
  }
@@ -282,6 +315,10 @@ export function createViteTamaguiLoader(
282
315
  loadPromise = null
283
316
  loadedOptions = null
284
317
  projectPromise = null
318
+ loadingProject = null
319
+ invalidatedFiles.clear()
320
+ evaluationDependencies.clear()
321
+ stampSources.clear()
285
322
  }
286
323
  },
287
324
  }
package/src/plugin.ts CHANGED
@@ -13,7 +13,6 @@ import {
13
13
  createRunnableDevEnvironment,
14
14
  defaultClientConditions,
15
15
  defaultClientMainFields,
16
- isRunnableDevEnvironment,
17
16
  resolveConfig,
18
17
  } from 'vite'
19
18
  import type {
@@ -889,7 +888,13 @@ export function createTamaguiPlugins({
889
888
  resolved,
890
889
  configuredEvaluationPackages
891
890
  )
892
- return createRunnableDevEnvironment(name, evaluationConfig)
891
+ // configuration updates are serialized by the shared loader. the runner
892
+ // must not also re-import its entries on Vite's full-reload event.
893
+ const environment = createRunnableDevEnvironment(name, evaluationConfig, {
894
+ hot: false,
895
+ })
896
+ tamaguiLoader.setEnvironment(environment)
897
+ return environment
893
898
  },
894
899
  moduleRunnerTransform: true,
895
900
  },
@@ -991,13 +996,6 @@ export function createTamaguiPlugins({
991
996
 
992
997
  configureServer(_server) {
993
998
  server = _server
994
- const evaluationEnvironment = server.environments[TAMAGUI_EVALUATION_ENVIRONMENT]
995
- if (!isRunnableDevEnvironment(evaluationEnvironment)) {
996
- throw new Error(
997
- `The ${TAMAGUI_EVALUATION_ENVIRONMENT} Vite environment must support ModuleRunner evaluation`
998
- )
999
- }
1000
- tamaguiLoader.setEnvironment(evaluationEnvironment)
1001
999
  },
1002
1000
 
1003
1001
  async buildEnd() {
@@ -1243,7 +1241,13 @@ export function createTamaguiPlugins({
1243
1241
 
1244
1242
  async buildStart() {
1245
1243
  const buildConfig = this.environment.getTopLevelConfig()
1246
- if (buildConfig.command !== 'build') return
1244
+ if (buildConfig.command !== 'build') {
1245
+ if (this.environment.name === 'client') {
1246
+ const dependencies = await tamaguiLoader.ensureFullConfigLoaded()
1247
+ for (const dependency of dependencies) this.addWatchFile(dependency)
1248
+ }
1249
+ return
1250
+ }
1247
1251
 
1248
1252
  const pendingCleanup = buildCleanupPromise
1249
1253
  if (pendingCleanup) {
@@ -1371,6 +1375,8 @@ export function createTamaguiPlugins({
1371
1375
  tamaguiLoader.invalidate(options.file)
1372
1376
  invalidateCompilerModules()
1373
1377
  }
1378
+ const dependencies = await tamaguiLoader.ensureFullConfigLoaded()
1379
+ server.watcher.add(dependencies)
1374
1380
  if (
1375
1381
  this.environment.name === 'client' &&
1376
1382
  compilerHotReloadSignatures.get(options.file) !== signature
@@ -1 +1 @@
1
- {"version":3,"file":"loadTamagui.d.ts","sourceRoot":"","sources":["../src/loadTamagui.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAA;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAGpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,MAAM,CAAA;AAElD,eAAO,MAAM,8BAA8B,YAAY,CAAA;AAYvD,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAA;IAClB,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,MAAM,EAAE,wBAAwB,CAAA;IAChC,UAAU,EAAE,wBAAwB,EAAE,CAAA;CACvC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