@tamagui/static 1.92.1 → 1.93.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. package/dist/cjs/extractor/bundle.js +4 -4
  2. package/dist/cjs/extractor/bundle.js.map +1 -1
  3. package/dist/cjs/extractor/bundle.native.js +4 -4
  4. package/dist/cjs/extractor/bundle.native.js.map +2 -2
  5. package/dist/cjs/extractor/bundleConfig.js +10 -10
  6. package/dist/cjs/extractor/bundleConfig.js.map +1 -1
  7. package/dist/cjs/extractor/bundleConfig.native.js +10 -10
  8. package/dist/cjs/extractor/bundleConfig.native.js.map +2 -2
  9. package/dist/cjs/extractor/createExtractor.js +10 -4
  10. package/dist/cjs/extractor/createExtractor.js.map +1 -1
  11. package/dist/cjs/extractor/createExtractor.native.js +3 -3
  12. package/dist/cjs/extractor/createExtractor.native.js.map +2 -2
  13. package/dist/cjs/extractor/extractHelpers.js +1 -1
  14. package/dist/cjs/extractor/extractHelpers.js.map +1 -1
  15. package/dist/cjs/extractor/extractHelpers.native.js +1 -1
  16. package/dist/cjs/extractor/extractHelpers.native.js.map +1 -1
  17. package/dist/cjs/extractor/extractMediaStyle.js +8 -2
  18. package/dist/cjs/extractor/extractMediaStyle.js.map +1 -1
  19. package/dist/cjs/extractor/extractMediaStyle.native.js +2 -2
  20. package/dist/cjs/extractor/extractMediaStyle.native.js.map +2 -2
  21. package/dist/cjs/extractor/extractToClassNames.js +3 -2
  22. package/dist/cjs/extractor/extractToClassNames.js.map +1 -1
  23. package/dist/cjs/extractor/extractToClassNames.native.js +3 -2
  24. package/dist/cjs/extractor/extractToClassNames.native.js.map +2 -2
  25. package/dist/cjs/extractor/generateTamaguiStudioConfig.js +12 -8
  26. package/dist/cjs/extractor/generateTamaguiStudioConfig.js.map +2 -2
  27. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js +7 -7
  28. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js.map +2 -2
  29. package/dist/cjs/extractor/generatedUid.js.map +1 -1
  30. package/dist/cjs/extractor/generatedUid.native.js.map +1 -1
  31. package/dist/cjs/extractor/getStaticBindingsForScope.js +1 -1
  32. package/dist/cjs/extractor/getStaticBindingsForScope.js.map +1 -1
  33. package/dist/cjs/extractor/getStaticBindingsForScope.native.js +1 -1
  34. package/dist/cjs/extractor/getStaticBindingsForScope.native.js.map +1 -1
  35. package/dist/cjs/extractor/loadTamagui.js +13 -45
  36. package/dist/cjs/extractor/loadTamagui.js.map +1 -1
  37. package/dist/cjs/extractor/loadTamagui.native.js +16 -78
  38. package/dist/cjs/extractor/loadTamagui.native.js.map +2 -2
  39. package/dist/cjs/extractor/watchTamaguiConfig.js +53 -0
  40. package/dist/cjs/extractor/watchTamaguiConfig.js.map +6 -0
  41. package/dist/cjs/extractor/watchTamaguiConfig.native.js +203 -0
  42. package/dist/cjs/extractor/watchTamaguiConfig.native.js.map +6 -0
  43. package/dist/cjs/index.js +18 -2
  44. package/dist/cjs/index.js.map +1 -1
  45. package/dist/cjs/index.native.js +30 -4
  46. package/dist/cjs/index.native.js.map +1 -1
  47. package/dist/cjs/registerRequire.js +2 -2
  48. package/dist/cjs/registerRequire.js.map +1 -1
  49. package/dist/cjs/registerRequire.native.js +3 -3
  50. package/dist/cjs/registerRequire.native.js.map +2 -2
  51. package/dist/esm/extractor/bundle.js +4 -4
  52. package/dist/esm/extractor/bundle.js.map +1 -1
  53. package/dist/esm/extractor/bundle.mjs +4 -4
  54. package/dist/esm/extractor/bundle.native.js +4 -4
  55. package/dist/esm/extractor/bundle.native.js.map +2 -2
  56. package/dist/esm/extractor/bundleConfig.js +10 -10
  57. package/dist/esm/extractor/bundleConfig.js.map +1 -1
  58. package/dist/esm/extractor/bundleConfig.mjs +10 -10
  59. package/dist/esm/extractor/bundleConfig.native.js +10 -10
  60. package/dist/esm/extractor/bundleConfig.native.js.map +2 -2
  61. package/dist/esm/extractor/createExtractor.js +10 -4
  62. package/dist/esm/extractor/createExtractor.js.map +1 -1
  63. package/dist/esm/extractor/createExtractor.mjs +4 -4
  64. package/dist/esm/extractor/createExtractor.native.js +3 -3
  65. package/dist/esm/extractor/createExtractor.native.js.map +2 -2
  66. package/dist/esm/extractor/extractHelpers.js +1 -1
  67. package/dist/esm/extractor/extractHelpers.js.map +1 -1
  68. package/dist/esm/extractor/extractHelpers.mjs +1 -1
  69. package/dist/esm/extractor/extractHelpers.native.js +1 -1
  70. package/dist/esm/extractor/extractHelpers.native.js.map +1 -1
  71. package/dist/esm/extractor/extractMediaStyle.js +8 -2
  72. package/dist/esm/extractor/extractMediaStyle.js.map +1 -1
  73. package/dist/esm/extractor/extractMediaStyle.mjs +2 -2
  74. package/dist/esm/extractor/extractMediaStyle.native.js +2 -2
  75. package/dist/esm/extractor/extractMediaStyle.native.js.map +2 -2
  76. package/dist/esm/extractor/extractToClassNames.js +3 -2
  77. package/dist/esm/extractor/extractToClassNames.js.map +1 -1
  78. package/dist/esm/extractor/extractToClassNames.mjs +3 -2
  79. package/dist/esm/extractor/extractToClassNames.native.js +3 -2
  80. package/dist/esm/extractor/extractToClassNames.native.js.map +2 -2
  81. package/dist/esm/extractor/generateTamaguiStudioConfig.js +12 -8
  82. package/dist/esm/extractor/generateTamaguiStudioConfig.js.map +1 -1
  83. package/dist/esm/extractor/generateTamaguiStudioConfig.mjs +6 -6
  84. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +7 -7
  85. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +2 -2
  86. package/dist/esm/extractor/generatedUid.js.map +1 -1
  87. package/dist/esm/extractor/generatedUid.native.js.map +1 -1
  88. package/dist/esm/extractor/getStaticBindingsForScope.js +1 -1
  89. package/dist/esm/extractor/getStaticBindingsForScope.js.map +1 -1
  90. package/dist/esm/extractor/getStaticBindingsForScope.mjs +1 -1
  91. package/dist/esm/extractor/getStaticBindingsForScope.native.js +1 -1
  92. package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +1 -1
  93. package/dist/esm/extractor/loadTamagui.js +14 -47
  94. package/dist/esm/extractor/loadTamagui.js.map +1 -1
  95. package/dist/esm/extractor/loadTamagui.mjs +13 -41
  96. package/dist/esm/extractor/loadTamagui.native.js +15 -77
  97. package/dist/esm/extractor/loadTamagui.native.js.map +2 -2
  98. package/dist/esm/extractor/watchTamaguiConfig.js +38 -0
  99. package/dist/esm/extractor/watchTamaguiConfig.js.map +6 -0
  100. package/dist/esm/extractor/watchTamaguiConfig.mjs +31 -0
  101. package/dist/esm/extractor/watchTamaguiConfig.native.js +183 -0
  102. package/dist/esm/extractor/watchTamaguiConfig.native.js.map +6 -0
  103. package/dist/esm/index.js +15 -1
  104. package/dist/esm/index.js.map +1 -1
  105. package/dist/esm/index.mjs +13 -2
  106. package/dist/esm/index.native.js +15 -1
  107. package/dist/esm/index.native.js.map +2 -2
  108. package/dist/esm/registerRequire.js +2 -2
  109. package/dist/esm/registerRequire.js.map +1 -1
  110. package/dist/esm/registerRequire.mjs +3 -3
  111. package/dist/esm/registerRequire.native.js +3 -3
  112. package/dist/esm/registerRequire.native.js.map +2 -2
  113. package/package.json +25 -19
  114. package/src/extractor/bundle.ts +4 -4
  115. package/src/extractor/bundleConfig.ts +10 -10
  116. package/src/extractor/createExtractor.ts +10 -4
  117. package/src/extractor/extractHelpers.ts +1 -1
  118. package/src/extractor/extractMediaStyle.ts +8 -2
  119. package/src/extractor/extractToClassNames.ts +3 -2
  120. package/src/extractor/generateTamaguiStudioConfig.ts +14 -10
  121. package/src/extractor/generatedUid.ts +0 -1
  122. package/src/extractor/getStaticBindingsForScope.ts +5 -1
  123. package/src/extractor/loadTamagui.ts +14 -57
  124. package/src/extractor/watchTamaguiConfig.ts +46 -0
  125. package/src/index.ts +11 -1
  126. package/src/registerRequire.ts +2 -3
  127. package/types/extractor/createExtractor.d.ts.map +1 -1
  128. package/types/extractor/extractMediaStyle.d.ts +3 -2
  129. package/types/extractor/extractMediaStyle.d.ts.map +1 -1
  130. package/types/extractor/extractToClassNames.d.ts.map +1 -1
  131. package/types/extractor/generateTamaguiStudioConfig.d.ts.map +1 -1
  132. package/types/extractor/generatedUid.d.ts.map +1 -1
  133. package/types/extractor/getStaticBindingsForScope.d.ts.map +1 -1
  134. package/types/extractor/loadTamagui.d.ts +3 -4
  135. package/types/extractor/loadTamagui.d.ts.map +1 -1
  136. package/types/extractor/watchTamaguiConfig.d.ts +5 -0
  137. package/types/extractor/watchTamaguiConfig.d.ts.map +1 -0
  138. package/types/index.d.ts +11 -1
  139. package/types/index.d.ts.map +1 -1
  140. package/types/registerRequire.d.ts.map +1 -1
  141. package/src/static.ts +0 -10
@@ -22,16 +22,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
23
23
  var loadTamagui_exports = {};
24
24
  __export(loadTamagui_exports, {
25
- TamaguiProjectInfo: () => import_bundleConfig.TamaguiProjectInfo,
25
+ esbuildWatchFiles: () => esbuildWatchFiles,
26
+ generateThemesAndLog: () => generateThemesAndLog,
26
27
  getOptions: () => getOptions,
27
28
  loadTamagui: () => loadTamagui,
28
29
  loadTamaguiBuildConfigSync: () => loadTamaguiBuildConfigSync,
29
30
  loadTamaguiSync: () => loadTamaguiSync,
30
- resolveWebOrNativeSpecificEntry: () => resolveWebOrNativeSpecificEntry,
31
- watchTamaguiConfig: () => watchTamaguiConfig
31
+ resolveWebOrNativeSpecificEntry: () => resolveWebOrNativeSpecificEntry
32
32
  });
33
33
  module.exports = __toCommonJS(loadTamagui_exports);
34
- var import_fs = require("fs"), import_path = require("path"), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), import_fs_extra = require("fs-extra"), import_constants = require("../constants"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore"), import_minifyCSS = require("../minifyCSS"), import_registerRequire = require("../registerRequire"), import_bundleConfig = require("./bundleConfig"), import_generateTamaguiStudioConfig = require("./generateTamaguiStudioConfig"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig"), import_promises = require("fs/promises");
34
+ var import_fs = require("fs"), import_path = require("path"), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), fsExtra = __toESM(require("fs-extra")), import_promises = require("fs/promises"), import_constants = require("../constants"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore"), import_minifyCSS = require("../minifyCSS"), import_registerRequire = require("../registerRequire"), import_bundleConfig = require("./bundleConfig"), import_generateTamaguiStudioConfig = require("./generateTamaguiStudioConfig"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig");
35
35
  const getFilledOptions = (propsIn) => ({
36
36
  // defaults
37
37
  platform: "web",
@@ -48,11 +48,11 @@ async function loadTamagui(propsIn) {
48
48
  if (await generateThemesAndLog(props, !0), !(0, import_bundleConfig.hasBundledConfigChanged)())
49
49
  return bundleInfo;
50
50
  if (bundleInfo) {
51
- const { createTamagui } = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform), config = createTamagui(bundleInfo.tamaguiConfig), { outputCSS } = props;
51
+ const { createTamagui } = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform || "web"), config = createTamagui(bundleInfo.tamaguiConfig), { outputCSS } = props;
52
52
  if (outputCSS && props.platform === "web") {
53
53
  const flush = async () => {
54
54
  (0, import_cli_color.colorLog)(import_cli_color.Color.FgYellow, ` \u27A1 [tamagui] output css: ${outputCSS}
55
- `), await (0, import_fs_extra.writeFile)(outputCSS, css);
55
+ `), await fsExtra.writeFile(outputCSS, css);
56
56
  }, cssOut = config.getCSS(), css = props.disableMinifyCSS === !1 ? (0, import_minifyCSS.minifyCSS)(cssOut).code : cssOut;
57
57
  try {
58
58
  await (0, import_promises.readFile)(outputCSS, "utf8") === css || await flush();
@@ -83,7 +83,7 @@ const generateThemesAndLog = async (options, force = !1) => {
83
83
  }, last = {}, lastVersion = {};
84
84
  function loadTamaguiBuildConfigSync(tamaguiOptions) {
85
85
  const buildFilePath = tamaguiOptions?.buildFile ?? "tamagui.build.ts";
86
- if ((0, import_fs_extra.existsSync)(buildFilePath)) {
86
+ if (fsExtra.existsSync(buildFilePath)) {
87
87
  const registered = (0, import_registerRequire.registerRequire)("web");
88
88
  try {
89
89
  const out = require(buildFilePath).default;
@@ -118,7 +118,7 @@ function loadTamaguiSync({
118
118
  lastVersion[key] = cacheKey || "";
119
119
  const props = getFilledOptions(propsIn);
120
120
  process.env.IS_STATIC = "is_static", process.env.TAMAGUI_IS_SERVER = "true";
121
- const { unregister } = (0, import_registerRequire.registerRequire)(props.platform, {
121
+ const { unregister } = (0, import_registerRequire.registerRequire)(props.platform || "web", {
122
122
  proxyWormImports: !!forceExports
123
123
  });
124
124
  try {
@@ -135,7 +135,7 @@ function loadTamaguiSync({
135
135
  Be sure you "export default" or "export const config" the config.`);
136
136
  }
137
137
  if (tamaguiConfig) {
138
- const { createTamagui } = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform);
138
+ const { createTamagui } = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform || "web");
139
139
  createTamagui(tamaguiConfig);
140
140
  }
141
141
  }
@@ -175,7 +175,7 @@ function loadTamaguiSync({
175
175
  ${err.message}
176
176
 
177
177
  `)) : import_constants.SHOULD_DEBUG && console.error(err) : console.error("Error loading tamagui.config.ts", err);
178
- const { createTamagui } = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform), { getDefaultTamaguiConfig } = require("@tamagui/config-default");
178
+ const { createTamagui } = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform || "web"), { getDefaultTamaguiConfig } = require("@tamagui/config-default");
179
179
  return {
180
180
  components: [],
181
181
  tamaguiConfig: createTamagui(getDefaultTamaguiConfig()),
@@ -196,7 +196,7 @@ async function getOptions({
196
196
  const dotDir = (0, import_path.join)(root, ".tamagui");
197
197
  let pkgJson = {};
198
198
  try {
199
- pkgJson = await (0, import_fs_extra.readJSON)((0, import_path.join)(root, "package.json"));
199
+ pkgJson = await fsExtra.readJSON((0, import_path.join)(root, "package.json"));
200
200
  } catch {
201
201
  }
202
202
  return {
@@ -222,7 +222,7 @@ async function getOptions({
222
222
  }
223
223
  function resolveWebOrNativeSpecificEntry(entry) {
224
224
  const workspaceRoot = (0, import_path.resolve)(), resolved = require.resolve(entry, { paths: [workspaceRoot] }), ext = (0, import_path.extname)(resolved), fileName = (0, import_path.basename)(resolved).replace(ext, ""), specificFile = (0, import_path.join)((0, import_path.dirname)(resolved), fileName + "." + "web" + ext);
225
- return (0, import_fs_extra.existsSync)(specificFile) ? specificFile : entry;
225
+ return fsExtra.existsSync(specificFile) ? specificFile : entry;
226
226
  }
227
227
  const defaultPaths = ["tamagui.config.ts", (0, import_path.join)("src", "tamagui.config.ts")];
228
228
  let hasWarnedOnce = !1;
@@ -233,45 +233,13 @@ async function getDefaultTamaguiConfigPath(root, configPath) {
233
233
  )
234
234
  ];
235
235
  for (const path of searchPaths)
236
- if (await (0, import_fs_extra.pathExists)(path))
236
+ if (await fsExtra.pathExists(path))
237
237
  return path;
238
238
  hasWarnedOnce || (hasWarnedOnce = !0, console.warn(`Warning: couldn't find tamagui.config.ts in the following paths given configuration "${configPath}":
239
239
  ${searchPaths.join(`
240
240
  `)}
241
241
  `));
242
242
  }
243
- async function watchTamaguiConfig(tamaguiOptions) {
244
- const options = await getOptions({ tamaguiOptions });
245
- if (!options.tamaguiOptions.config)
246
- throw new Error("No config");
247
- if (process.env.NODE_ENV === "production")
248
- return {
249
- dispose() {
250
- }
251
- };
252
- const disposeConfigWatcher = await esbuildWatchFiles(
253
- options.tamaguiOptions.config,
254
- () => {
255
- (0, import_generateTamaguiStudioConfig.generateTamaguiStudioConfig)(options.tamaguiOptions, null, !0);
256
- }
257
- ), themeBuilderInput = options.tamaguiOptions.themeBuilder?.input;
258
- let disposeThemesWatcher;
259
- if (themeBuilderInput) {
260
- let inputPath = themeBuilderInput;
261
- try {
262
- inputPath = require.resolve(themeBuilderInput);
263
- } catch {
264
- }
265
- disposeThemesWatcher = await esbuildWatchFiles(inputPath, () => {
266
- generateThemesAndLog(options.tamaguiOptions);
267
- });
268
- }
269
- return {
270
- dispose() {
271
- disposeConfigWatcher(), disposeThemesWatcher?.();
272
- }
273
- };
274
- }
275
243
  async function esbuildWatchFiles(entry, onChanged) {
276
244
  let hasRunOnce = !1;
277
245
  const context = await import_esbuild.default.context({
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/loadTamagui.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAA4C,eAC5C,cAAoE,iBAEpE,mBAAgC,+BAGhC,iBAAoB,6BACpB,kBAAwE,qBAExE,mBAA6B,yBAC7B,4BAAmC,0CACnC,mBAA0B,yBAC1B,yBAAgD,+BAChD,sBAKO,2BACP,qCAIO,0CACP,+CAAsD,oDACtD,kBAAyB;AAEzB,MAAM,mBAAmB,CAAC,aAAsD;AAAA;AAAA,EAE9E,UAAW;AAAA,EACX,QAAQ;AAAA,EACR,YAAY,CAAC,SAAS;AAAA,EACtB,GAAI;AACN;AAEA,eAAsB,YACpB,SACoC;AACpC,QAAM,QAAQ,iBAAiB,OAAO,GAEhC,aAAa,UAAM,sCAAiB,KAAK;AAC/C,MAAI,CAAC;AACH,mBAAQ;AAAA,MACN;AAAA,IACF,GACO;AAMT,MAFA,MAAM,qBAAqB,OAAO,EAAI,GAElC,KAAC,6CAAwB;AAC3B,WAAO;AAIT,MAAI,YAAY;AACd,UAAM,EAAE,cAAc,QAAI,8CAAmB,MAAM,QAAQ,GAGrD,SAAS,cAAc,WAAW,aAAa,GAE/C,EAAE,UAAU,IAAI;AACtB,QAAI,aAAa,MAAM,aAAa,OAAO;AACzC,YAAM,QAAQ,YAAY;AACxB,uCAAS,uBAAM,UAAU,oCAA+B,SAAS;AAAA,CAAI,GACrE,UAAM,2BAAU,WAAW,GAAG;AAAA,MAChC,GAEM,SAAS,OAAO,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MAAI,aAAa;AAOjB,QAAM,UAAU,MAAM,eAAAA,QAAQ,QAAQ;AAAA,IACpC,QAAQ;AAAA,IACR,aAAa,CAAC,KAAK;AAAA,IACnB,mBAAmB,CAAC,OAAO,QAAQ,OAAO,QAAQ,MAAM;AAAA,IACxD,UAAU;AAAA,IACV,OAAO;AAAA,IACP,SAAS;AAAA,MACP;AAAA,QACE,MAAM;AAAA,QACN,MAAM,EAAE,MAAM,GAAG;AACf,gBAAM,MAAM;AACV,YAAK,aAGH,UAAU,IAFV,aAAa;AAAA,UAIjB,CAAC;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAAA,EACF,CAAC;AAGD,SAAK,QAAQ,MAAM,GAEZ,MAAM;AACX,YAAQ,QAAQ;AAAA,EAClB;AACF;",
5
5
  "names": ["esbuild"]
6
6
  }
@@ -23,16 +23,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
23
  )), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
24
24
  var loadTamagui_exports = {};
25
25
  __export(loadTamagui_exports, {
26
- TamaguiProjectInfo: () => import_bundleConfig.TamaguiProjectInfo,
26
+ esbuildWatchFiles: () => esbuildWatchFiles,
27
+ generateThemesAndLog: () => generateThemesAndLog,
27
28
  getOptions: () => getOptions,
28
29
  loadTamagui: () => loadTamagui,
29
30
  loadTamaguiBuildConfigSync: () => loadTamaguiBuildConfigSync,
30
31
  loadTamaguiSync: () => loadTamaguiSync,
31
- resolveWebOrNativeSpecificEntry: () => resolveWebOrNativeSpecificEntry,
32
- watchTamaguiConfig: () => watchTamaguiConfig
32
+ resolveWebOrNativeSpecificEntry: () => resolveWebOrNativeSpecificEntry
33
33
  });
34
34
  module.exports = __toCommonJS(loadTamagui_exports);
35
- var import_fs = require("fs"), import_path = require("path"), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), import_fs_extra = require("fs-extra"), import_constants = require("../constants"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore"), import_minifyCSS = require("../minifyCSS"), import_registerRequire = require("../registerRequire"), import_bundleConfig = require("./bundleConfig"), import_generateTamaguiStudioConfig = require("./generateTamaguiStudioConfig"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig"), import_promises = require("fs/promises");
35
+ var import_fs = require("fs"), import_path = require("path"), import_cli_color = require("@tamagui/cli-color"), import_esbuild = __toESM(require("esbuild")), fsExtra = __toESM(require("fs-extra")), import_promises = require("fs/promises"), import_constants = require("../constants"), import_requireTamaguiCore = require("../helpers/requireTamaguiCore"), import_minifyCSS = require("../minifyCSS"), import_registerRequire = require("../registerRequire"), import_bundleConfig = require("./bundleConfig"), import_generateTamaguiStudioConfig = require("./generateTamaguiStudioConfig"), import_getTamaguiConfigPathFromOptionsConfig = require("./getTamaguiConfigPathFromOptionsConfig");
36
36
  function _array_like_to_array(arr, len) {
37
37
  (len == null || len > arr.length) && (len = arr.length);
38
38
  for (var i = 0, arr2 = new Array(len); i < len; i++)
@@ -278,7 +278,7 @@ function _loadTamagui() {
278
278
  3,
279
279
  10
280
280
  ];
281
- if (createTamagui = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform).createTamagui, config = createTamagui(bundleInfo.tamaguiConfig), outputCSS = props.outputCSS, !(outputCSS && props.platform === "web"))
281
+ if (createTamagui = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform || "web").createTamagui, config = createTamagui(bundleInfo.tamaguiConfig), outputCSS = props.outputCSS, !(outputCSS && props.platform === "web"))
282
282
  return [
283
283
  3,
284
284
  10
@@ -291,7 +291,7 @@ function _loadTamagui() {
291
291
  return (0, import_cli_color.colorLog)(import_cli_color.Color.FgYellow, " \u27A1 [tamagui] output css: ".concat(outputCSS, `
292
292
  `)), [
293
293
  4,
294
- (0, import_fs_extra.writeFile)(outputCSS, css)
294
+ fsExtra.writeFile(outputCSS, css)
295
295
  ];
296
296
  case 1:
297
297
  return _state2.sent(), [
@@ -418,7 +418,7 @@ var waiting = !1, hasLoggedOnce = !1, generateThemesAndLog = function() {
418
418
  }(), last = {}, lastVersion = {};
419
419
  function loadTamaguiBuildConfigSync(tamaguiOptions) {
420
420
  var _tamaguiOptions_buildFile, buildFilePath = (_tamaguiOptions_buildFile = tamaguiOptions == null ? void 0 : tamaguiOptions.buildFile) !== null && _tamaguiOptions_buildFile !== void 0 ? _tamaguiOptions_buildFile : "tamagui.build.ts";
421
- if ((0, import_fs_extra.existsSync)(buildFilePath)) {
421
+ if (fsExtra.existsSync(buildFilePath)) {
422
422
  var registered = (0, import_registerRequire.registerRequire)("web");
423
423
  try {
424
424
  var out = require(buildFilePath).default;
@@ -448,7 +448,7 @@ function loadTamaguiSync(_param) {
448
448
  lastVersion[key] = cacheKey || "";
449
449
  var props = getFilledOptions(propsIn);
450
450
  process.env.IS_STATIC = "is_static", process.env.TAMAGUI_IS_SERVER = "true";
451
- var unregister = (0, import_registerRequire.registerRequire)(props.platform, {
451
+ var unregister = (0, import_registerRequire.registerRequire)(props.platform || "web", {
452
452
  proxyWormImports: !!forceExports
453
453
  }).unregister;
454
454
  try {
@@ -465,7 +465,7 @@ function loadTamaguiSync(_param) {
465
465
  Be sure you "export default" or "export const config" the config.`));
466
466
  }
467
467
  if (tamaguiConfig) {
468
- var createTamagui = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform).createTamagui;
468
+ var createTamagui = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform || "web").createTamagui;
469
469
  createTamagui(tamaguiConfig);
470
470
  }
471
471
  }
@@ -502,7 +502,7 @@ function loadTamaguiSync(_param) {
502
502
  `.concat(err.message, `
503
503
 
504
504
  `))) : import_constants.SHOULD_DEBUG && console.error(err) : console.error("Error loading tamagui.config.ts", err);
505
- var createTamagui1 = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform).createTamagui, getDefaultTamaguiConfig = require("@tamagui/config-default").getDefaultTamaguiConfig;
505
+ var createTamagui1 = (0, import_requireTamaguiCore.requireTamaguiCore)(props.platform || "web").createTamagui, getDefaultTamaguiConfig = require("@tamagui/config-default").getDefaultTamaguiConfig;
506
506
  return {
507
507
  components: [],
508
508
  tamaguiConfig: createTamagui1(getDefaultTamaguiConfig()),
@@ -531,7 +531,7 @@ function _getOptions() {
531
531
  4
532
532
  ]), [
533
533
  4,
534
- (0, import_fs_extra.readJSON)((0, import_path.join)(root, "package.json"))
534
+ fsExtra.readJSON((0, import_path.join)(root, "package.json"))
535
535
  ];
536
536
  case 2:
537
537
  return pkgJson = _state.sent(), [
@@ -584,7 +584,7 @@ function resolveWebOrNativeSpecificEntry(entry) {
584
584
  workspaceRoot
585
585
  ]
586
586
  }), ext = (0, import_path.extname)(resolved), fileName = (0, import_path.basename)(resolved).replace(ext, ""), specificExt = "native", specificFile = (0, import_path.join)((0, import_path.dirname)(resolved), fileName + "." + specificExt + ext);
587
- return (0, import_fs_extra.existsSync)(specificFile) ? specificFile : entry;
587
+ return fsExtra.existsSync(specificFile) ? specificFile : entry;
588
588
  }
589
589
  var defaultPaths = [
590
590
  "tamagui.config.ts",
@@ -617,7 +617,7 @@ function _getDefaultTamaguiConfigPath() {
617
617
  5
618
618
  ] : (path = _step.value, [
619
619
  4,
620
- (0, import_fs_extra.pathExists)(path)
620
+ fsExtra.pathExists(path)
621
621
  ]);
622
622
  case 3:
623
623
  if (_state.sent())
@@ -662,68 +662,6 @@ function _getDefaultTamaguiConfigPath() {
662
662
  });
663
663
  }), _getDefaultTamaguiConfigPath.apply(this, arguments);
664
664
  }
665
- function watchTamaguiConfig(tamaguiOptions) {
666
- return _watchTamaguiConfig.apply(this, arguments);
667
- }
668
- function _watchTamaguiConfig() {
669
- return _watchTamaguiConfig = _async_to_generator(function(tamaguiOptions) {
670
- var _options_tamaguiOptions_themeBuilder, options, disposeConfigWatcher, themeBuilderInput, disposeThemesWatcher, inputPath;
671
- return _ts_generator(this, function(_state) {
672
- switch (_state.label) {
673
- case 0:
674
- return [
675
- 4,
676
- getOptions({
677
- tamaguiOptions
678
- })
679
- ];
680
- case 1:
681
- if (options = _state.sent(), !options.tamaguiOptions.config)
682
- throw new Error("No config");
683
- return process.env.NODE_ENV === "production" ? [
684
- 2,
685
- {
686
- dispose: function() {
687
- }
688
- }
689
- ] : [
690
- 4,
691
- esbuildWatchFiles(options.tamaguiOptions.config, function() {
692
- (0, import_generateTamaguiStudioConfig.generateTamaguiStudioConfig)(options.tamaguiOptions, null, !0);
693
- })
694
- ];
695
- case 2:
696
- if (disposeConfigWatcher = _state.sent(), themeBuilderInput = (_options_tamaguiOptions_themeBuilder = options.tamaguiOptions.themeBuilder) === null || _options_tamaguiOptions_themeBuilder === void 0 ? void 0 : _options_tamaguiOptions_themeBuilder.input, !themeBuilderInput)
697
- return [
698
- 3,
699
- 4
700
- ];
701
- inputPath = themeBuilderInput;
702
- try {
703
- inputPath = require.resolve(themeBuilderInput);
704
- } catch {
705
- }
706
- return [
707
- 4,
708
- esbuildWatchFiles(inputPath, function() {
709
- generateThemesAndLog(options.tamaguiOptions);
710
- })
711
- ];
712
- case 3:
713
- disposeThemesWatcher = _state.sent(), _state.label = 4;
714
- case 4:
715
- return [
716
- 2,
717
- {
718
- dispose: function() {
719
- disposeConfigWatcher(), disposeThemesWatcher == null || disposeThemesWatcher();
720
- }
721
- }
722
- ];
723
- }
724
- });
725
- }), _watchTamaguiConfig.apply(this, arguments);
726
- }
727
665
  function esbuildWatchFiles(entry, onChanged) {
728
666
  return _esbuildWatchFiles.apply(this, arguments);
729
667
  }
@@ -775,12 +713,12 @@ function _esbuildWatchFiles() {
775
713
  }
776
714
  // Annotate the CommonJS export names for ESM import in node:
777
715
  0 && (module.exports = {
778
- TamaguiProjectInfo,
716
+ esbuildWatchFiles,
717
+ generateThemesAndLog,
779
718
  getOptions,
780
719
  loadTamagui,
781
720
  loadTamaguiBuildConfigSync,
782
721
  loadTamaguiSync,
783
- resolveWebOrNativeSpecificEntry,
784
- watchTamaguiConfig
722
+ resolveWebOrNativeSpecificEntry
785
723
  });
786
724
  //# sourceMappingURL=loadTamagui.js.map
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/loadTamagui.ts"],
4
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gBAA4C,eAC5C,cAAoE,iBAEpE,mBAAgC,+BAGhC,iBAAoB,6BACpB,kBAAwE,qBAExE,mBAA6B,yBAC7B,4BAAmC,0CACnC,mBAA0B,yBAC1B,yBAAgD,+BAChD,sBAKO,2BACP,qCAIO,0CACP,+CAAsD,oDACtD,kBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEzB,IAAMA,mBAAmB,SAACC,SAAAA;SAAsD,eAAA;;IAE9EC,UAAWC;IACXC,QAAQ;IACRC,YAAY;MAAC;;KACTJ,OAAAA;;AAGN,SAAsBK,YACpBL,SAAgC;SADZK,aAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,eAAAA;AAAAA,wBAAf,oBAAA,SACLL,SAAgC;QAE1BM,OAEAC,YAiBIC,eAGFL,QAEEM,WAEAC,OAKAC,QACAC,KAAAA;;;;AAhCJN,yBAAQP,iBAAiBC,OAAAA,GAEZ;;gBAAMa,sCAAiBP,KAAAA;;;AAC1C,iBADMC,aAAa,OAAA,KAAA,GACdA,aAQL;;YAAMO,qBAAqBR,OAAO,EAAA;eAPhCS,QAAQC,KACL,oGAAA,GAEH;;YAAO;;;AAMT,cAFA,OAAA,KAAA,GAEI,KAACC,6CAAAA;AACH,mBAAA;;cAAOV;;;UAILA;AAAAA,mBAAAA;;;;cACMC,oBAAkBU,8CA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AAK,GAElB;;YAAO,WAAA;AACLX,sBAAQX,QAAO;YACjB;;;;EACF,CAAA,GApCeC,mBAAAA,MAAAA,MAAAA,SAAAA;;",
5
- "names": ["getFilledOptions", "propsIn", "platform", "process", "config", "components", "loadTamagui", "props", "bundleInfo", "createTamagui", "outputCSS", "flush", "cssOut", "css", "getBundledConfig", "generateThemesAndLog", "console", "warn", "hasBundledConfigChanged", "requireTamaguiCore", "tamaguiConfig", "colorLog", "Color", "FgYellow", "writeFile", "_state", "getCSS", "disableMinifyCSS", "minifyCSS", "code", "readFile", "env", "NODE_ENV", "generateTamaguiStudioConfig", "waiting", "hasLoggedOnce", "options", "force", "didGenerate", "whitespaceBefore", "themeBuilder", "Promise", "res", "setTimeout", "generateTamaguiThemes", "relative", "cwd", "output", "last", "lastVersion", "loadTamaguiBuildConfigSync", "tamaguiOptions", "buildFilePath", "buildFile", "existsSync", "registered", "registerRequire", "out", "require", "default", "Error", "unregister", "loadTamaguiSync", "forceExports", "cacheKey", "key", "JSON", "stringify", "IS_STATIC", "TAMAGUI_IS_SERVER", "proxyWormImports", "devValueOG", "globalThis", "configPath", "getTamaguiConfigPathFromOptionsConfig", "exp", "parsed", "confPath", "resolve", "loadComponents", "DEBUG", "info", "undefined", "nameToPaths", "getNameToPaths", "writeFileSync", "readFileSync", "generateTamaguiStudioConfigSync", "cached", "err", "SHOULD_DEBUG", "message", "error", "getDefaultTamaguiConfig", "getOptions", "root", "tsconfigPath", "host", "debug", "dotDir", "pkgJson", "join", "readJSON", "mode", "getDefaultTamaguiConfigPath", "paths", "conf", "types", "resolveWebOrNativeSpecificEntry", "entry", "workspaceRoot", "resolved", "ext", "extname", "fileName", "basename", "replace", "specificExt", "specificFile", "dirname", "defaultPaths", "hasWarnedOnce", "searchPaths", "path", "Set", "filter", "Boolean", "map", "p", "pathExists", "watchTamaguiConfig", "tamaguiOptions", "options", "disposeConfigWatcher", "themeBuilderInput", "disposeThemesWatcher", "inputPath", "getOptions", "config", "Error", "process", "env", "NODE_ENV", "dispose", "esbuildWatchFiles", "generateTamaguiStudioConfig", "themeBuilder", "input", "require", "resolve", "generateThemesAndLog", "entry", "onChanged", "hasRunOnce", "context", "esbuild", "bundle", "entryPoints", "resolveExtensions", "logLevel", "write", "plugins", "name", "setup", "onEnd", "watch"]
4
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gBAA4C,eAC5C,cAAoE,iBAEpE,mBAAgC,+BAGhC,iBAAoB,6BACpB,UAAyB,8BAEzB,kBAAyB,wBACzB,mBAA6B,yBAC7B,4BAAmC,0CACnC,mBAA0B,yBAC1B,yBAAgD,+BAChD,sBAKO,2BACP,qCAIO,0CACP,+CAAsD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtD,IAAMA,mBAAmB,SAACC,SAAAA;SAAsD,eAAA;;IAE9EC,UAAWC;IACXC,QAAQ;IACRC,YAAY;MAAC;;KACTJ,OAAAA;;AAGN,SAAsBK,YACpBL,SAAgC;SADZK,aAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,eAAAA;AAAAA,wBAAf,oBAAA,SACLL,SAAgC;QAE1BM,OAEAC,YAiBIC,eAGFL,QAEEM,WAEAC,OAKAC,QACAC,KAAAA;;;;AAhCJN,yBAAQP,iBAAiBC,OAAAA,GAEZ;;gBAAMa,sCAAiBP,KAAAA;;;AAC1C,iBADMC,aAAa,OAAA,KAAA,GACdA,aAQL;;YAAMO,qBAAqBR,OAAO,EAAA;eAPhCS,QAAQC,KACL,oGAAA,GAEH;;YAAO;;;AAMT,cAFA,OAAA,KAAA,GAEI,KAACC,6CAAAA;AACH,mBAAA;;cAAOV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,aAAW;gBAAG3B;;cACd4B,mBAAiB;gBAAG;gBAAO;gBAAQ;gBAAO;gBAAQ;;cAClDC,UAAU;cACVC,OAAO;cACPC,SAAO;gBACL;kBACEC,MAAO;kBACPC,OAAAA,SAAM,OAAS;wBAAPC,QAAF,MAAEA;AACNA,0BAAM,WAAA;AACJ,sBAAKX,aAGHD,UAAAA,IAFAC,aAAa;oBAIjB,CAAA;kBACF;gBACF;;YAEJ,CAAA;;;AApBMC,2BAAU,OAAA,KAAA,GAuBXA,QAAQW,MAAK,GAElB;;YAAO,WAAA;AACLX,sBAAQY,QAAO;YACjB;;;;EACF,CAAA,GApCsBf,mBAAAA,MAAAA,MAAAA,SAAAA;;",
5
+ "names": ["getFilledOptions", "propsIn", "platform", "process", "config", "components", "loadTamagui", "props", "bundleInfo", "createTamagui", "outputCSS", "flush", "cssOut", "css", "getBundledConfig", "generateThemesAndLog", "console", "warn", "hasBundledConfigChanged", "requireTamaguiCore", "tamaguiConfig", "colorLog", "Color", "FgYellow", "fsExtra", "writeFile", "_state", "getCSS", "disableMinifyCSS", "minifyCSS", "code", "readFile", "env", "NODE_ENV", "generateTamaguiStudioConfig", "waiting", "hasLoggedOnce", "options", "force", "didGenerate", "whitespaceBefore", "themeBuilder", "Promise", "res", "setTimeout", "generateTamaguiThemes", "relative", "cwd", "output", "last", "lastVersion", "loadTamaguiBuildConfigSync", "tamaguiOptions", "buildFilePath", "buildFile", "existsSync", "registered", "registerRequire", "out", "require", "default", "Error", "unregister", "loadTamaguiSync", "forceExports", "cacheKey", "key", "JSON", "stringify", "IS_STATIC", "TAMAGUI_IS_SERVER", "proxyWormImports", "devValueOG", "globalThis", "configPath", "getTamaguiConfigPathFromOptionsConfig", "exp", "parsed", "confPath", "resolve", "loadComponents", "DEBUG", "info", "undefined", "nameToPaths", "getNameToPaths", "writeFileSync", "readFileSync", "generateTamaguiStudioConfigSync", "cached", "err", "SHOULD_DEBUG", "message", "error", "getDefaultTamaguiConfig", "getOptions", "root", "tsconfigPath", "host", "debug", "dotDir", "pkgJson", "join", "readJSON", "mode", "getDefaultTamaguiConfigPath", "paths", "conf", "types", "resolveWebOrNativeSpecificEntry", "entry", "workspaceRoot", "resolved", "ext", "extname", "fileName", "basename", "replace", "specificExt", "specificFile", "dirname", "defaultPaths", "hasWarnedOnce", "searchPaths", "path", "Set", "filter", "Boolean", "map", "p", "pathExists", "esbuildWatchFiles", "onChanged", "hasRunOnce", "context", "esbuild", "bundle", "entryPoints", "resolveExtensions", "logLevel", "write", "plugins", "name", "setup", "onEnd", "watch", "dispose"]
6
6
  }
@@ -0,0 +1,53 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: !0 });
8
+ }, __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from == "object" || typeof from == "function")
10
+ for (let key of __getOwnPropNames(from))
11
+ !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
+ return to;
13
+ };
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
+ var watchTamaguiConfig_exports = {};
16
+ __export(watchTamaguiConfig_exports, {
17
+ watchTamaguiConfig: () => watchTamaguiConfig
18
+ });
19
+ module.exports = __toCommonJS(watchTamaguiConfig_exports);
20
+ var import_generateTamaguiStudioConfig = require("./generateTamaguiStudioConfig"), import_loadTamagui = require("./loadTamagui");
21
+ async function watchTamaguiConfig(tamaguiOptions) {
22
+ const options = await (0, import_loadTamagui.getOptions)({ tamaguiOptions });
23
+ if (!options.tamaguiOptions.config)
24
+ throw new Error("No config");
25
+ if (process.env.NODE_ENV === "production")
26
+ return {
27
+ dispose() {
28
+ }
29
+ };
30
+ const disposeConfigWatcher = await (0, import_loadTamagui.esbuildWatchFiles)(
31
+ options.tamaguiOptions.config,
32
+ () => {
33
+ (0, import_generateTamaguiStudioConfig.generateTamaguiStudioConfig)(options.tamaguiOptions, null, !0);
34
+ }
35
+ ), themeBuilderInput = options.tamaguiOptions.themeBuilder?.input;
36
+ let disposeThemesWatcher;
37
+ if (themeBuilderInput) {
38
+ let inputPath = themeBuilderInput;
39
+ try {
40
+ inputPath = require.resolve(themeBuilderInput);
41
+ } catch {
42
+ }
43
+ disposeThemesWatcher = await (0, import_loadTamagui.esbuildWatchFiles)(inputPath, () => {
44
+ (0, import_loadTamagui.generateThemesAndLog)(options.tamaguiOptions);
45
+ });
46
+ }
47
+ return {
48
+ dispose() {
49
+ disposeConfigWatcher(), disposeThemesWatcher?.();
50
+ }
51
+ };
52
+ }
53
+ //# sourceMappingURL=watchTamaguiConfig.js.map
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/extractor/watchTamaguiConfig.ts"],
4
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,yCAA4C,0CAC5C,qBAAoE;AAEpE,eAAsB,mBAAmB,gBAAgC;AACvE,QAAM,UAAU,UAAM,+BAAW,EAAE,eAAe,CAAC;AAEnD,MAAI,CAAC,QAAQ,eAAe;AAC1B,UAAM,IAAI,MAAM,WAAW;AAG7B,MAAI,QAAQ,IAAI,aAAa;AAC3B,WAAO;AAAA,MACL,UAAU;AAAA,MAAC;AAAA,IACb;AAGF,QAAM,uBAAuB,UAAM;AAAA,IACjC,QAAQ,eAAe;AAAA,IACvB,MAAM;AACJ,UAAK,gEAA4B,QAAQ,gBAAgB,MAAM,EAAI;AAAA,IACrE;AAAA,EACF,GAEM,oBAAoB,QAAQ,eAAe,cAAc;AAC/D,MAAI;AAEJ,MAAI,mBAAmB;AACrB,QAAI,YAAY;AAChB,QAAI;AACF,kBAAY,QAAQ,QAAQ,iBAAiB;AAAA,IAC/C,QAAQ;AAAA,IAER;AACA,2BAAuB,UAAM,sCAAkB,WAAW,MAAM;AAC9D,UAAK,yCAAqB,QAAQ,cAAc;AAAA,IAClD,CAAC;AAAA,EACH;AAEA,SAAO;AAAA,IACL,UAAU;AACR,2BAAqB,GACrB,uBAAuB;AAAA,IACzB;AAAA,EACF;AACF;",
5
+ "names": []
6
+ }