@tamagui/static 1.89.26 → 1.89.27-1708113113238

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. package/dist/cjs/constants.native.js +4 -4
  2. package/dist/cjs/constants.native.js.map +3 -3
  3. package/dist/cjs/extractor/accessSafe.native.js +1 -5
  4. package/dist/cjs/extractor/accessSafe.native.js.map +3 -3
  5. package/dist/cjs/extractor/babelParse.native.js +5 -8
  6. package/dist/cjs/extractor/babelParse.native.js.map +3 -3
  7. package/dist/cjs/extractor/buildClassName.native.js +31 -42
  8. package/dist/cjs/extractor/buildClassName.native.js.map +3 -3
  9. package/dist/cjs/extractor/bundle.js +6 -4
  10. package/dist/cjs/extractor/bundle.js.map +1 -1
  11. package/dist/cjs/extractor/bundle.native.js +321 -56
  12. package/dist/cjs/extractor/bundle.native.js.map +3 -3
  13. package/dist/cjs/extractor/bundleConfig.native.js +499 -187
  14. package/dist/cjs/extractor/bundleConfig.native.js.map +3 -3
  15. package/dist/cjs/extractor/createEvaluator.native.js +9 -11
  16. package/dist/cjs/extractor/createEvaluator.native.js.map +3 -3
  17. package/dist/cjs/extractor/createExtractor.native.js +1240 -906
  18. package/dist/cjs/extractor/createExtractor.native.js.map +3 -3
  19. package/dist/cjs/extractor/ensureImportingConcat.native.js +11 -17
  20. package/dist/cjs/extractor/ensureImportingConcat.native.js.map +3 -3
  21. package/dist/cjs/extractor/esbuildAliasPlugin.native.js +22 -11
  22. package/dist/cjs/extractor/esbuildAliasPlugin.native.js.map +3 -3
  23. package/dist/cjs/extractor/evaluateAstNode.native.js +15 -21
  24. package/dist/cjs/extractor/evaluateAstNode.native.js.map +3 -3
  25. package/dist/cjs/extractor/extractHelpers.native.js +146 -38
  26. package/dist/cjs/extractor/extractHelpers.native.js.map +3 -3
  27. package/dist/cjs/extractor/extractMediaStyle.native.js +127 -54
  28. package/dist/cjs/extractor/extractMediaStyle.native.js.map +3 -3
  29. package/dist/cjs/extractor/extractToClassNames.native.js +449 -252
  30. package/dist/cjs/extractor/extractToClassNames.native.js.map +3 -3
  31. package/dist/cjs/extractor/findTopmostFunction.native.js +4 -4
  32. package/dist/cjs/extractor/findTopmostFunction.native.js.map +3 -3
  33. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js +415 -54
  34. package/dist/cjs/extractor/generateTamaguiStudioConfig.native.js.map +3 -3
  35. package/dist/cjs/extractor/generatedUid.native.js +2 -2
  36. package/dist/cjs/extractor/generatedUid.native.js.map +3 -3
  37. package/dist/cjs/extractor/getPrefixLogs.native.js +2 -1
  38. package/dist/cjs/extractor/getPrefixLogs.native.js.map +3 -3
  39. package/dist/cjs/extractor/getPropValueFromAttributes.native.js +16 -19
  40. package/dist/cjs/extractor/getPropValueFromAttributes.native.js.map +3 -3
  41. package/dist/cjs/extractor/getSourceModule.native.js +20 -7
  42. package/dist/cjs/extractor/getSourceModule.native.js.map +3 -3
  43. package/dist/cjs/extractor/getStaticBindingsForScope.native.js +336 -94
  44. package/dist/cjs/extractor/getStaticBindingsForScope.native.js.map +3 -3
  45. package/dist/cjs/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +3 -3
  46. package/dist/cjs/extractor/hoistClassNames.native.js +8 -10
  47. package/dist/cjs/extractor/hoistClassNames.native.js.map +3 -3
  48. package/dist/cjs/extractor/literalToAst.native.js +89 -19
  49. package/dist/cjs/extractor/literalToAst.native.js.map +3 -3
  50. package/dist/cjs/extractor/loadFile.native.js +16 -8
  51. package/dist/cjs/extractor/loadFile.native.js.map +3 -3
  52. package/dist/cjs/extractor/loadTamagui.js +3 -3
  53. package/dist/cjs/extractor/loadTamagui.js.map +1 -1
  54. package/dist/cjs/extractor/loadTamagui.native.js +667 -192
  55. package/dist/cjs/extractor/loadTamagui.native.js.map +3 -3
  56. package/dist/cjs/extractor/logLines.native.js +24 -6
  57. package/dist/cjs/extractor/logLines.native.js.map +3 -3
  58. package/dist/cjs/extractor/normalizeTernaries.native.js +71 -20
  59. package/dist/cjs/extractor/normalizeTernaries.native.js.map +3 -3
  60. package/dist/cjs/extractor/propsToFontFamilyCache.native.js +3 -3
  61. package/dist/cjs/extractor/propsToFontFamilyCache.native.js.map +3 -3
  62. package/dist/cjs/extractor/removeUnusedHooks.native.js +69 -36
  63. package/dist/cjs/extractor/removeUnusedHooks.native.js.map +3 -3
  64. package/dist/cjs/extractor/timer.native.js +10 -9
  65. package/dist/cjs/extractor/timer.native.js.map +3 -3
  66. package/dist/cjs/extractor/validHTMLAttributes.native.js +1 -1
  67. package/dist/cjs/extractor/validHTMLAttributes.native.js.map +3 -3
  68. package/dist/cjs/getPragmaOptions.native.js +4 -9
  69. package/dist/cjs/getPragmaOptions.native.js.map +3 -3
  70. package/dist/cjs/helpers/memoize.native.js +5 -3
  71. package/dist/cjs/helpers/memoize.native.js.map +3 -3
  72. package/dist/cjs/helpers/requireTamaguiCore.native.js +2 -1
  73. package/dist/cjs/helpers/requireTamaguiCore.native.js.map +3 -3
  74. package/dist/cjs/index.native.js.map +2 -2
  75. package/dist/cjs/minifyCSS.native.js.map +3 -3
  76. package/dist/cjs/registerRequire.native.js +56 -28
  77. package/dist/cjs/registerRequire.native.js.map +3 -3
  78. package/dist/cjs/server.native.js +175 -21
  79. package/dist/cjs/server.native.js.map +3 -3
  80. package/dist/cjs/setup.native.js.map +3 -3
  81. package/dist/cjs/static.native.js.map +2 -2
  82. package/dist/cjs/types.native.js.map +2 -2
  83. package/dist/cjs/webpackPlugin.native.js +26 -5
  84. package/dist/cjs/webpackPlugin.native.js.map +3 -3
  85. package/dist/esm/constants.native.js +4 -3
  86. package/dist/esm/constants.native.js.map +3 -3
  87. package/dist/esm/extractor/accessSafe.native.js +1 -5
  88. package/dist/esm/extractor/accessSafe.native.js.map +3 -3
  89. package/dist/esm/extractor/babelParse.native.js +5 -7
  90. package/dist/esm/extractor/babelParse.native.js.map +3 -3
  91. package/dist/esm/extractor/buildClassName.native.js +31 -41
  92. package/dist/esm/extractor/buildClassName.native.js.map +3 -3
  93. package/dist/esm/extractor/bundle.js +6 -4
  94. package/dist/esm/extractor/bundle.js.map +1 -1
  95. package/dist/esm/extractor/bundle.mjs +7 -5
  96. package/dist/esm/extractor/bundle.native.js +321 -56
  97. package/dist/esm/extractor/bundle.native.js.map +3 -3
  98. package/dist/esm/extractor/bundleConfig.native.js +499 -187
  99. package/dist/esm/extractor/bundleConfig.native.js.map +3 -3
  100. package/dist/esm/extractor/createEvaluator.native.js +9 -11
  101. package/dist/esm/extractor/createEvaluator.native.js.map +3 -3
  102. package/dist/esm/extractor/createExtractor.native.js +1241 -916
  103. package/dist/esm/extractor/createExtractor.native.js.map +3 -3
  104. package/dist/esm/extractor/ensureImportingConcat.native.js +11 -16
  105. package/dist/esm/extractor/ensureImportingConcat.native.js.map +3 -3
  106. package/dist/esm/extractor/esbuildAliasPlugin.native.js +22 -11
  107. package/dist/esm/extractor/esbuildAliasPlugin.native.js.map +3 -3
  108. package/dist/esm/extractor/evaluateAstNode.native.js +15 -21
  109. package/dist/esm/extractor/evaluateAstNode.native.js.map +3 -3
  110. package/dist/esm/extractor/extractHelpers.native.js +146 -38
  111. package/dist/esm/extractor/extractHelpers.native.js.map +3 -3
  112. package/dist/esm/extractor/extractMediaStyle.native.js +127 -54
  113. package/dist/esm/extractor/extractMediaStyle.native.js.map +3 -3
  114. package/dist/esm/extractor/extractToClassNames.native.js +449 -252
  115. package/dist/esm/extractor/extractToClassNames.native.js.map +3 -3
  116. package/dist/esm/extractor/findTopmostFunction.native.js +4 -4
  117. package/dist/esm/extractor/findTopmostFunction.native.js.map +3 -3
  118. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js +415 -54
  119. package/dist/esm/extractor/generateTamaguiStudioConfig.native.js.map +3 -3
  120. package/dist/esm/extractor/generatedUid.native.js +2 -2
  121. package/dist/esm/extractor/generatedUid.native.js.map +3 -3
  122. package/dist/esm/extractor/getPrefixLogs.native.js +2 -1
  123. package/dist/esm/extractor/getPrefixLogs.native.js.map +3 -3
  124. package/dist/esm/extractor/getPropValueFromAttributes.native.js +16 -19
  125. package/dist/esm/extractor/getPropValueFromAttributes.native.js.map +3 -3
  126. package/dist/esm/extractor/getSourceModule.native.js +20 -7
  127. package/dist/esm/extractor/getSourceModule.native.js.map +3 -3
  128. package/dist/esm/extractor/getStaticBindingsForScope.native.js +336 -94
  129. package/dist/esm/extractor/getStaticBindingsForScope.native.js.map +3 -3
  130. package/dist/esm/extractor/getTamaguiConfigPathFromOptionsConfig.native.js.map +3 -3
  131. package/dist/esm/extractor/hoistClassNames.native.js +8 -10
  132. package/dist/esm/extractor/hoistClassNames.native.js.map +3 -3
  133. package/dist/esm/extractor/literalToAst.native.js +89 -19
  134. package/dist/esm/extractor/literalToAst.native.js.map +3 -3
  135. package/dist/esm/extractor/loadFile.native.js +16 -8
  136. package/dist/esm/extractor/loadFile.native.js.map +3 -3
  137. package/dist/esm/extractor/loadTamagui.js +1 -2
  138. package/dist/esm/extractor/loadTamagui.js.map +1 -1
  139. package/dist/esm/extractor/loadTamagui.mjs +5 -3
  140. package/dist/esm/extractor/loadTamagui.native.js +668 -203
  141. package/dist/esm/extractor/loadTamagui.native.js.map +3 -3
  142. package/dist/esm/extractor/logLines.native.js +24 -6
  143. package/dist/esm/extractor/logLines.native.js.map +3 -3
  144. package/dist/esm/extractor/normalizeTernaries.native.js +71 -20
  145. package/dist/esm/extractor/normalizeTernaries.native.js.map +3 -3
  146. package/dist/esm/extractor/propsToFontFamilyCache.native.js +3 -3
  147. package/dist/esm/extractor/propsToFontFamilyCache.native.js.map +3 -3
  148. package/dist/esm/extractor/removeUnusedHooks.native.js +69 -35
  149. package/dist/esm/extractor/removeUnusedHooks.native.js.map +3 -3
  150. package/dist/esm/extractor/timer.native.js +10 -9
  151. package/dist/esm/extractor/timer.native.js.map +3 -3
  152. package/dist/esm/extractor/validHTMLAttributes.native.js +1 -1
  153. package/dist/esm/extractor/validHTMLAttributes.native.js.map +3 -3
  154. package/dist/esm/getPragmaOptions.native.js +4 -9
  155. package/dist/esm/getPragmaOptions.native.js.map +3 -3
  156. package/dist/esm/helpers/memoize.native.js +5 -3
  157. package/dist/esm/helpers/memoize.native.js.map +3 -3
  158. package/dist/esm/helpers/requireTamaguiCore.native.js +2 -1
  159. package/dist/esm/helpers/requireTamaguiCore.native.js.map +3 -3
  160. package/dist/esm/index.native.js.map +1 -1
  161. package/dist/esm/minifyCSS.native.js.map +3 -3
  162. package/dist/esm/registerRequire.native.js +56 -28
  163. package/dist/esm/registerRequire.native.js.map +3 -3
  164. package/dist/esm/server.native.js +175 -21
  165. package/dist/esm/server.native.js.map +3 -3
  166. package/dist/esm/setup.native.js.map +3 -3
  167. package/dist/esm/static.native.js.map +3 -3
  168. package/dist/esm/webpackPlugin.native.js +26 -5
  169. package/dist/esm/webpackPlugin.native.js.map +3 -3
  170. package/package.json +14 -15
  171. package/src/extractor/bundle.ts +5 -2
  172. package/src/extractor/loadTamagui.ts +3 -2
  173. package/types/extractor/bundle.d.ts.map +1 -1
  174. package/types/extractor/loadTamagui.d.ts.map +1 -1
  175. package/tamagui.tsconfig.json +0 -5
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/extractor/loadTamagui.ts"],
4
- "mappings": "AAAA,SAAS,cAAc,qBAAqB;AAC5C,SAAS,UAAU,SAAS,SAAS,MAAM,UAAU,eAAe;AAEpE,SAAS,OAAO,gBAAgB;AAChC,SAAS,+BAA+B;AAGxC,OAAO,aAAa;AACpB,SAAS,YAAwB,YAAY,UAAU,iBAAiB;AAExE,SAAS,oBAAoB;AAC7B,SAAS,0BAA0B;AACnC,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB,uBAAuB;AAChD;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,6CAA6C;AACtD,SAAS,gBAAgB;AAEzB,MAAM,mBAAmB,CAAC,aAAsD;AAAA;AAAA,EAE9E,UAAW;AAAA,EACX,QAAQ;AAAA,EACR,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A,IACL,UAAU;AACR,2BAAqB,GACrB;AAAA,IACF;AAAA,EACF;AACF;AAEA,eAAe,kBAAkB,OAAe,WAAuB;AACrE,MAAI,aAAa;AAOjB,QAAM,UAAU,MAAM,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
- "names": []
3
+ "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/loadTamagui.ts"],
4
+ "mappings": "AAAA,SAASA,cAAcC,qBAAqB;AAC5C,SAASC,UAAUC,SAASC,SAASC,MAAMC,UAAUC,eAAe;AAEpE,SAASC,OAAOC,gBAAgB;AAGhC,OAAOC,aAAa;AACpB,SAASC,YAAwBC,YAAYC,UAAUC,iBAAiB;AAExE,SAASC,oBAAoB;AAC7B,SAASC,0BAA0B;AACnC,SAASC,iBAAiB;AAC1B,SAASC,gBAAgBC,uBAAuB;AAChD,SACEC,oBACAC,kBACAC,yBACAC,sBACK;AACP,SACEC,6BACAC,iCACAC,6BACK;AACP,SAASC,6CAA6C;AACtD,SAASC,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;EACF,CAAA,GAzCsBL,oBAAAA,MAAAA,MAAAA,SAAAA;;SA2CPc,kBAAkBO,OAAeC,WAAqB;SAAtDR,mBAAAA,MAAAA,MAAAA,SAAAA;;SAAAA,qBAAAA;AAAAA,8BAAf,oBAAA,SAAiCO,OAAeC,WAAqB;QAC/DC,YAOEC;;;;AAPFD,8BAAa,IAOD;;YAAME,QAAQD,QAAQ;cACpCE,QAAQ;cACRC,aAAW;gBAAGN;;cACdO,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,sBAAQX,QAAO;YACjB;;;;EACF,CAAA,GApCeC,mBAAAA,MAAAA,MAAAA,SAAAA;;",
5
+ "names": ["readFileSync", "writeFileSync", "basename", "dirname", "extname", "join", "relative", "resolve", "Color", "colorLog", "esbuild", "existsSync", "pathExists", "readJSON", "writeFile", "SHOULD_DEBUG", "requireTamaguiCore", "minifyCSS", "getNameToPaths", "registerRequire", "TamaguiProjectInfo", "getBundledConfig", "hasBundledConfigChanged", "loadComponents", "generateTamaguiStudioConfig", "generateTamaguiStudioConfigSync", "generateTamaguiThemes", "getTamaguiConfigPathFromOptionsConfig", "readFile", "getFilledOptions", "propsIn", "platform", "process", "config", "components", "loadTamagui", "props", "bundleInfo", "createTamagui", "outputCSS", "flush", "cssOut", "css", "generateThemesAndLog", "console", "warn", "tamaguiConfig", "FgYellow", "_state", "getCSS", "disableMinifyCSS", "code", "env", "NODE_ENV", "waiting", "hasLoggedOnce", "options", "force", "didGenerate", "whitespaceBefore", "themeBuilder", "Promise", "res", "setTimeout", "cwd", "output", "last", "lastVersion", "loadTamaguiBuildConfigSync", "tamaguiOptions", "buildFilePath", "buildFile", "registered", "out", "require", "default", "Error", "unregister", "loadTamaguiSync", "forceExports", "cacheKey", "key", "JSON", "stringify", "IS_STATIC", "TAMAGUI_IS_SERVER", "proxyWormImports", "devValueOG", "globalThis", "configPath", "exp", "parsed", "confPath", "DEBUG", "info", "undefined", "nameToPaths", "cached", "err", "message", "error", "getDefaultTamaguiConfig", "getOptions", "root", "tsconfigPath", "host", "debug", "dotDir", "pkgJson", "mode", "getDefaultTamaguiConfigPath", "paths", "conf", "types", "resolveWebOrNativeSpecificEntry", "entry", "workspaceRoot", "resolved", "ext", "fileName", "replace", "specificExt", "specificFile", "defaultPaths", "hasWarnedOnce", "searchPaths", "path", "Set", "filter", "Boolean", "map", "p", "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"]
6
6
  }
@@ -1,11 +1,29 @@
1
- const prefix = " ", logLines = (str, singleLine = !1) => {
1
+ var prefix = " ", logLines = function(str) {
2
+ var singleLine = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2
3
  if (singleLine)
3
4
  return prefix + str.split(" ").join(`
4
- ${prefix}`);
5
- const lines = [""], items = str.split(" ");
6
- for (const item of items)
7
- item.length + lines[lines.length - 1].length > 85 && lines.push(""), lines[lines.length - 1] += item + " ";
8
- return lines.map((line, i) => prefix + (i == 0 ? "" : " ") + line.trim()).join(`
5
+ `.concat(prefix));
6
+ var lines = [
7
+ ""
8
+ ], items = str.split(" "), _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
9
+ try {
10
+ for (var _iterator = items[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0) {
11
+ var item = _step.value;
12
+ item.length + lines[lines.length - 1].length > 85 && lines.push(""), lines[lines.length - 1] += item + " ";
13
+ }
14
+ } catch (err) {
15
+ _didIteratorError = !0, _iteratorError = err;
16
+ } finally {
17
+ try {
18
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
19
+ } finally {
20
+ if (_didIteratorError)
21
+ throw _iteratorError;
22
+ }
23
+ }
24
+ return lines.map(function(line, i) {
25
+ return prefix + (i == 0 ? "" : " ") + line.trim();
26
+ }).join(`
9
27
  `);
10
28
  };
11
29
  export {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/extractor/logLines.ts"],
4
- "mappings": "AAAA,MAAM,SAAS,eAEF,WAAW,CAAC,KAAa,aAAa,OAAU;AAC3D,MAAI;AACF,WAAO,SAAS,IAAI,MAAM,GAAG,EAAE,KAAK;AAAA,EAAK,MAAM,EAAE;AAEnD,QAAM,QAAkB,CAAC,EAAE,GACrB,QAAQ,IAAI,MAAM,GAAG;AAC3B,aAAW,QAAQ;AACjB,IAAI,KAAK,SAAS,MAAM,MAAM,SAAS,CAAC,EAAE,SAAS,MACjD,MAAM,KAAK,EAAE,GAEf,MAAM,MAAM,SAAS,CAAC,KAAK,OAAO;AAEpC,SAAO,MAAM,IAAI,CAAC,MAAM,MAAM,UAAU,KAAK,IAAI,KAAK,OAAO,KAAK,KAAK,CAAC,EAAE,KAAK;AAAA,CAAI;AACrF;",
5
- "names": []
3
+ "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/logLines.ts"],
4
+ "mappings": "AAAA,IAAMA,SAAS,eAEFC,WAAW,SAACC,KAAAA;MAAaC,aAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAa;AACjD,MAAIA;AACF,WAAOH,SAASE,IAAIE,MAAM,GAAA,EAAKC,KAAM;EAAW,OAAPL,MAAAA,CAAAA;AAE3C,MAAMM,QAAkB;IAAC;KACnBC,QAAQL,IAAIE,MAAM,GAAA,GACnB,4BAAA,IAAA,oBAAA,IAAA,iBAAA;;AAAL,aAAK,YAAcG,MAAAA,OAAAA,QAAAA,EAAAA,GAAd,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA,IAAqB;AAArB,UAAMC,OAAN,MAAA;AACH,MAAIA,KAAKC,SAASH,MAAMA,MAAMG,SAAS,CAAA,EAAGA,SAAS,MACjDH,MAAMI,KAAK,EAAA,GAEbJ,MAAMA,MAAMG,SAAS,CAAA,KAAMD,OAAO;IACpC;;AALK,wBAAA,IAAA,iBAAA;;;OAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;UAAA;cAAA;;;AAML,SAAOF,MAAMK,IAAI,SAACC,MAAMC,GAAAA;WAAMb,UAAUa,KAAK,IAAI,KAAK,OAAOD,KAAKE,KAAI;KAAIT,KAAK;CAAA;AACjF;",
5
+ "names": ["prefix", "logLines", "str", "singleLine", "split", "join", "lines", "items", "item", "length", "push", "map", "line", "i", "trim"]
6
6
  }
@@ -1,35 +1,86 @@
1
1
  import generate from "@babel/generator";
2
2
  import * as t from "@babel/types";
3
3
  import invariant from "invariant";
4
+ function _define_property(obj, key, value) {
5
+ return key in obj ? Object.defineProperty(obj, key, {
6
+ value,
7
+ enumerable: !0,
8
+ configurable: !0,
9
+ writable: !0
10
+ }) : obj[key] = value, obj;
11
+ }
12
+ function _object_spread(target) {
13
+ for (var i = 1; i < arguments.length; i++) {
14
+ var source = arguments[i] != null ? arguments[i] : {}, ownKeys2 = Object.keys(source);
15
+ typeof Object.getOwnPropertySymbols == "function" && (ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
16
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
17
+ }))), ownKeys2.forEach(function(key) {
18
+ _define_property(target, key, source[key]);
19
+ });
20
+ }
21
+ return target;
22
+ }
23
+ function ownKeys(object, enumerableOnly) {
24
+ var keys = Object.keys(object);
25
+ if (Object.getOwnPropertySymbols) {
26
+ var symbols = Object.getOwnPropertySymbols(object);
27
+ enumerableOnly && (symbols = symbols.filter(function(sym) {
28
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
29
+ })), keys.push.apply(keys, symbols);
30
+ }
31
+ return keys;
32
+ }
33
+ function _object_spread_props(target, source) {
34
+ return source = source ?? {}, Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
35
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
36
+ }), target;
37
+ }
38
+ function _object_without_properties(source, excluded) {
39
+ if (source == null)
40
+ return {};
41
+ var target = _object_without_properties_loose(source, excluded), key, i;
42
+ if (Object.getOwnPropertySymbols) {
43
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
44
+ for (i = 0; i < sourceSymbolKeys.length; i++)
45
+ key = sourceSymbolKeys[i], !(excluded.indexOf(key) >= 0) && Object.prototype.propertyIsEnumerable.call(source, key) && (target[key] = source[key]);
46
+ }
47
+ return target;
48
+ }
49
+ function _object_without_properties_loose(source, excluded) {
50
+ if (source == null)
51
+ return {};
52
+ var target = {}, sourceKeys = Object.keys(source), key, i;
53
+ for (i = 0; i < sourceKeys.length; i++)
54
+ key = sourceKeys[i], !(excluded.indexOf(key) >= 0) && (target[key] = source[key]);
55
+ return target;
56
+ }
4
57
  function normalizeTernaries(ternaries) {
5
- if (invariant(
6
- Array.isArray(ternaries),
7
- "extractStaticTernaries expects param 1 to be an array of ternaries"
8
- ), ternaries.length === 0)
58
+ if (invariant(Array.isArray(ternaries), "extractStaticTernaries expects param 1 to be an array of ternaries"), ternaries.length === 0)
9
59
  return [];
10
- const ternariesByKey = {};
11
- for (let idx = -1, len = ternaries.length; ++idx < len; ) {
12
- const { test, consequent, alternate, remove, ...rest } = ternaries[idx];
13
- let ternaryTest = test;
60
+ for (var ternariesByKey = {}, idx = -1, len = ternaries.length; ++idx < len; ) {
61
+ var _ternaries_idx = ternaries[idx], test = _ternaries_idx.test, consequent = _ternaries_idx.consequent, alternate = _ternaries_idx.alternate, remove = _ternaries_idx.remove, rest = _object_without_properties(_ternaries_idx, [
62
+ "test",
63
+ "consequent",
64
+ "alternate",
65
+ "remove"
66
+ ]), ternaryTest = test;
14
67
  t.isExpressionStatement(test) && (ternaryTest = test.expression);
15
- let shouldSwap = !1;
16
- t.isUnaryExpression(test) && test.operator === "!" ? (ternaryTest = test.argument, shouldSwap = !0) : t.isBinaryExpression(test) && (test.operator === "!==" || test.operator === "!=") && (ternaryTest = t.binaryExpression(
17
- test.operator.replace("!", "="),
18
- test.left,
19
- test.right
20
- ), shouldSwap = !0);
21
- const key = generate(ternaryTest).code;
22
- ternariesByKey[key] || (ternariesByKey[key] = {
23
- ...rest,
68
+ var shouldSwap = !1;
69
+ t.isUnaryExpression(test) && test.operator === "!" ? (ternaryTest = test.argument, shouldSwap = !0) : t.isBinaryExpression(test) && (test.operator === "!==" || test.operator === "!=") && (ternaryTest = t.binaryExpression(test.operator.replace("!", "="), test.left, test.right), shouldSwap = !0);
70
+ var key = generate(ternaryTest).code;
71
+ ternariesByKey[key] || (ternariesByKey[key] = _object_spread_props(_object_spread({}, rest), {
24
72
  alternate: {},
25
73
  consequent: {},
26
74
  test: ternaryTest,
27
75
  remove
28
- });
29
- const altStyle = (shouldSwap ? consequent : alternate) ?? {}, consStyle = (shouldSwap ? alternate : consequent) ?? {};
76
+ }));
77
+ var _ref, altStyle = (_ref = shouldSwap ? consequent : alternate) !== null && _ref !== void 0 ? _ref : {}, _ref1, consStyle = (_ref1 = shouldSwap ? alternate : consequent) !== null && _ref1 !== void 0 ? _ref1 : {};
30
78
  Object.assign(ternariesByKey[key].alternate, altStyle), Object.assign(ternariesByKey[key].consequent, consStyle);
31
79
  }
32
- return Object.keys(ternariesByKey).map((key) => ternariesByKey[key]);
80
+ var ternaryExpression = Object.keys(ternariesByKey).map(function(key2) {
81
+ return ternariesByKey[key2];
82
+ });
83
+ return ternaryExpression;
33
84
  }
34
85
  export {
35
86
  normalizeTernaries
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/extractor/normalizeTernaries.ts"],
4
- "mappings": "AAAA,OAAO,cAAc;AACrB,YAAY,OAAO;AACnB,OAAO,eAAe;AAIf,SAAS,mBAAmB,WAAsB;AAMvD,MALA;AAAA,IACE,MAAM,QAAQ,SAAS;AAAA,IACvB;AAAA,EACF,GAEI,UAAU,WAAW;AACvB,WAAO,CAAC;AAGV,QAAM,iBAA6C,CAAC;AAEpD,WAAS,MAAM,IAAI,MAAM,UAAU,QAAQ,EAAE,MAAM,OAAO;AACxD,UAAM,EAAE,MAAM,YAAY,WAAW,QAAQ,GAAG,KAAK,IAAI,UAAU,GAAG;AAEtE,QAAI,cAAc;AAGlB,IAAI,EAAE,sBAAsB,IAAI,MAC9B,cAAe,KAAa;AAI9B,QAAI,aAAa;AACjB,IAAI,EAAE,kBAAkB,IAAI,KAAK,KAAK,aAAa,OACjD,cAAc,KAAK,UACnB,aAAa,MACJ,EAAE,mBAAmB,IAAI,MAC9B,KAAK,aAAa,SAAS,KAAK,aAAa,UAC/C,cAAc,EAAE;AAAA,MACd,KAAK,SAAS,QAAQ,KAAK,GAAG;AAAA,MAC9B,KAAK;AAAA,MACL,KAAK;AAAA,IACP,GACA,aAAa;AAKjB,UAAM,MAAM,SAAS,WAAkB,EAAE;AAEzC,IAAK,eAAe,GAAG,MACrB,eAAe,GAAG,IAAI;AAAA,MACpB,GAAG;AAAA,MACH,WAAW,CAAC;AAAA,MACZ,YAAY,CAAC;AAAA,MACb,MAAM;AAAA,MACN;AAAA,IACF;AAEF,UAAM,YAAY,aAAa,aAAa,cAAc,CAAC,GACrD,aAAa,aAAa,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B,SAASgB,WAAAA,EAAoBa;AAEzC,IAAKrB,eAAeoB,GAAAA,MAClBpB,eAAeoB,GAAAA,IAAO,qBAAA,eAAA,CAAA,GACjBb,IAAAA,GAAAA;MACHF,WAAW,CAAC;MACZD,YAAY,CAAC;MACbD,MAAMK;MACNF;;QAGcK,MAAZW,YAAYX,OAAAA,aAAaP,aAAaC,eAAAA,QAA1BM,SAAAA,SAAAA,OAAwC,CAAC,GACxCA,OAAbY,aAAaZ,QAAAA,aAAaN,YAAYD,gBAAAA,QAAzBO,UAAAA,SAAAA,QAAwC,CAAC;AAC5Da,WAAOC,OAAOzB,eAAeoB,GAAAA,EAAKf,WAAYiB,QAAAA,GAC9CE,OAAOC,OAAOzB,eAAeoB,GAAAA,EAAKhB,YAAamB,SAAAA;EACjD;AAEA,MAAMG,oBAAoBF,OAAOG,KAAK3B,cAAAA,EAAgB4B,IAAI,SAACR,MAAAA;AACzD,WAAOpB,eAAeoB,IAAAA;EACxB,CAAA;AAEA,SAAOM;AACT;",
5
+ "names": ["generate", "t", "invariant", "normalizeTernaries", "ternaries", "Array", "isArray", "length", "ternariesByKey", "idx", "len", "test", "consequent", "alternate", "remove", "rest", "ternaryTest", "isExpressionStatement", "expression", "shouldSwap", "isUnaryExpression", "operator", "argument", "isBinaryExpression", "binaryExpression", "replace", "left", "right", "key", "code", "altStyle", "consStyle", "Object", "assign", "ternaryExpression", "keys", "map"]
6
6
  }
@@ -1,4 +1,4 @@
1
- const cache = /* @__PURE__ */ new WeakMap();
1
+ var cache = /* @__PURE__ */ new WeakMap();
2
2
  function setPropsToFontFamily(props, ff) {
3
3
  cache.set(props, ff);
4
4
  }
@@ -6,9 +6,9 @@ function getPropsToFontFamily(props) {
6
6
  return cache.get(props);
7
7
  }
8
8
  function getFontFamilyClassNameFromProps(props) {
9
- const ff = getPropsToFontFamily(props);
9
+ var ff = getPropsToFontFamily(props);
10
10
  if (ff)
11
- return ` font_${ff.replace("$", "")}`;
11
+ return " font_".concat(ff.replace("$", ""));
12
12
  }
13
13
  export {
14
14
  getFontFamilyClassNameFromProps,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/extractor/propsToFontFamilyCache.ts"],
4
- "mappings": "AAEA,MAAM,QAAQ,oBAAI,QAAqB;AAEhC,SAAS,qBAAqB,OAAY,IAAY;AAC3D,QAAM,IAAI,OAAO,EAAE;AACrB;AAEO,SAAS,qBAAqB,OAAY;AAC/C,SAAO,MAAM,IAAI,KAAK;AACxB;AAEO,SAAS,gCAAgC,OAAY;AAC1D,QAAM,KAAK,qBAAqB,KAAK;AACrC,MAAI;AACF,WAAO,SAAS,GAAG,QAAQ,KAAK,EAAE,CAAC;AAEvC;",
5
- "names": []
3
+ "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/propsToFontFamilyCache.ts"],
4
+ "mappings": "AAEA,IAAMA,QAAQ,oBAAIC,QAAAA;AAEX,SAASC,qBAAqBC,OAAYC,IAAU;AACzDJ,QAAMK,IAAIF,OAAOC,EAAAA;AACnB;AAEO,SAASE,qBAAqBH,OAAU;AAC7C,SAAOH,MAAMO,IAAIJ,KAAAA;AACnB;AAEO,SAASK,gCAAgCL,OAAU;AACxD,MAAMC,KAAKE,qBAAqBH,KAAAA;AAChC,MAAIC;AACF,WAAQ,SAA4B,OAApBA,GAAGK,QAAQ,KAAK,EAAA,CAAA;AAEpC;",
5
+ "names": ["cache", "WeakMap", "setPropsToFontFamily", "props", "ff", "set", "getPropsToFontFamily", "get", "getFontFamilyClassNameFromProps", "replace"]
6
6
  }
@@ -1,49 +1,83 @@
1
1
  import * as t from "@babel/types";
2
- const hooks = {
2
+ var hooks = {
3
3
  useMedia: !0,
4
4
  useTheme: !0
5
5
  };
6
6
  function removeUnusedHooks(compFn, shouldPrintDebug) {
7
7
  compFn.scope.crawl();
8
- let bodyStatements = compFn == null ? void 0 : compFn.get("body");
8
+ var bodyStatements = compFn == null ? void 0 : compFn.get("body");
9
9
  if (!bodyStatements) {
10
10
  console.info("no body statemnts?", compFn);
11
11
  return;
12
12
  }
13
- if (Array.isArray(bodyStatements) || (bodyStatements.isFunctionExpression() ? bodyStatements = bodyStatements.scope.path.get("body") : bodyStatements = bodyStatements.get("body")), !bodyStatements || !Array.isArray(bodyStatements))
14
- return;
15
- const statements = bodyStatements;
16
- for (const statement of statements) {
17
- if (!statement.isVariableDeclaration())
18
- continue;
19
- const declarations = statement.get("declarations");
20
- if (!Array.isArray(declarations))
21
- continue;
22
- const isBindingReferenced = (name) => {
23
- var _a;
24
- return !!((_a = statement.scope.getBinding(name)) != null && _a.referenced);
25
- };
26
- for (const declarator of declarations) {
27
- const id = declarator.get("id"), init = declarator.node.init;
28
- if (Array.isArray(id) || Array.isArray(init))
29
- continue;
30
- (() => {
31
- if (!(init && t.isCallExpression(init) && t.isIdentifier(init.callee) && hooks[init.callee.name]))
32
- return !1;
33
- if (t.isIdentifier(id.node)) {
34
- const name = id.node.name;
35
- return !isBindingReferenced(name);
13
+ if (Array.isArray(bodyStatements) || (bodyStatements.isFunctionExpression() ? bodyStatements = bodyStatements.scope.path.get("body") : bodyStatements = bodyStatements.get("body")), !(!bodyStatements || !Array.isArray(bodyStatements))) {
14
+ var statements = bodyStatements, _iteratorNormalCompletion = !0, _didIteratorError = !1, _iteratorError = void 0;
15
+ try {
16
+ for (var _loop = function() {
17
+ var statement = _step.value;
18
+ if (!statement.isVariableDeclaration())
19
+ return "continue";
20
+ var declarations = statement.get("declarations");
21
+ if (!Array.isArray(declarations))
22
+ return "continue";
23
+ var isBindingReferenced = function(name) {
24
+ var _statement_scope_getBinding;
25
+ return !!(!((_statement_scope_getBinding = statement.scope.getBinding(name)) === null || _statement_scope_getBinding === void 0) && _statement_scope_getBinding.referenced);
26
+ }, _iteratorNormalCompletion2 = !0, _didIteratorError2 = !1, _iteratorError2 = void 0;
27
+ try {
28
+ for (var _loop2 = function() {
29
+ var declarator = _step1.value, id = declarator.get("id"), init = declarator.node.init;
30
+ if (Array.isArray(id) || Array.isArray(init))
31
+ return "continue";
32
+ var shouldRemove = function() {
33
+ var isHook = init && t.isCallExpression(init) && t.isIdentifier(init.callee) && hooks[init.callee.name];
34
+ if (!isHook)
35
+ return !1;
36
+ if (t.isIdentifier(id.node)) {
37
+ var name = id.node.name;
38
+ return !isBindingReferenced(name);
39
+ }
40
+ if (t.isObjectPattern(id.node)) {
41
+ var propPaths = id.get("properties");
42
+ return propPaths.every(function(prop) {
43
+ if (!prop.isObjectProperty())
44
+ return !1;
45
+ var value = prop.get("value");
46
+ if (Array.isArray(value) || !value.isIdentifier())
47
+ return !1;
48
+ var name2 = value.node.name;
49
+ return !isBindingReferenced(name2);
50
+ });
51
+ }
52
+ return !1;
53
+ }();
54
+ if (shouldRemove && (declarator.remove(), shouldPrintDebug)) {
55
+ var _id_node_name;
56
+ console.info(" [\u{1FA9D}] removed ".concat((_id_node_name = id.node.name) !== null && _id_node_name !== void 0 ? _id_node_name : ""));
57
+ }
58
+ }, _iterator2 = declarations[Symbol.iterator](), _step1; !(_iteratorNormalCompletion2 = (_step1 = _iterator2.next()).done); _iteratorNormalCompletion2 = !0)
59
+ _loop2();
60
+ } catch (err) {
61
+ _didIteratorError2 = !0, _iteratorError2 = err;
62
+ } finally {
63
+ try {
64
+ !_iteratorNormalCompletion2 && _iterator2.return != null && _iterator2.return();
65
+ } finally {
66
+ if (_didIteratorError2)
67
+ throw _iteratorError2;
68
+ }
36
69
  }
37
- return t.isObjectPattern(id.node) ? id.get("properties").every((prop) => {
38
- if (!prop.isObjectProperty())
39
- return !1;
40
- const value = prop.get("value");
41
- if (Array.isArray(value) || !value.isIdentifier())
42
- return !1;
43
- const name = value.node.name;
44
- return !isBindingReferenced(name);
45
- }) : !1;
46
- })() && (declarator.remove(), shouldPrintDebug && console.info(` [\u{1FA9D}] removed ${id.node.name ?? ""}`));
70
+ }, _iterator = statements[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = !0)
71
+ _loop();
72
+ } catch (err) {
73
+ _didIteratorError = !0, _iteratorError = err;
74
+ } finally {
75
+ try {
76
+ !_iteratorNormalCompletion && _iterator.return != null && _iterator.return();
77
+ } finally {
78
+ if (_didIteratorError)
79
+ throw _iteratorError;
80
+ }
47
81
  }
48
82
  }
49
83
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/extractor/removeUnusedHooks.ts"],
4
- "mappings": "AACA,YAAY,OAAO;AAEnB,MAAM,QAAQ;AAAA,EACZ,UAAU;AAAA,EACV,UAAU;AACZ;AAEO,SAAS,kBACd,QACA,kBACA;AACA,SAAO,MAAM,MAAM;AAEnB,MAAI,iBAAiB,iCAAQ,IAAI;AACjC,MAAI,CAAC,gBAAgB;AACnB,YAAQ,KAAK,sBAAsB,MAAM;AACzC;AAAA,EACF;AAQA,MAPK,MAAM,QAAQ,cAAc,MAC3B,eAAe,qBAAqB,IACtC,iBAAiB,eAAe,MAAM,KAAK,IAAI,MAAM,IAErD,iBAAiB,eAAe,IAAI,MAAM,IAG1C,CAAC,kBAAkB,CAAC,MAAM,QAAQ,cAAc;AAClD;AAEF,QAAM,aAAa;AACnB,aAAW,aAAa,YAAY;AAClC,QAAI,CAAC,UAAU,sBAAsB;AACnC;AAEF,UAAM,eAAe,UAAU,IAAI,cAAc;AACjD,QAAI,CAAC,MAAM,QAAQ,YAAY;AAC7B;AAEF,UAAM,sBAAsB,CAAC,SAAiB;AAtClD;AAuCM,aAAO,CAAC,GAAC,eAAU,MAAM,WAAW,IAAI,MAA/B,WAAkC;AAAA,IAC7C;AACA,eAAW,cAAc,cAAc;AACrC,YAAM,KAAK,WAAW,IAAI,IAAI,GACxB,OAAO,WAAW,KAAK;AAC7B,UAAI,MAAM,QAAQ,EAAE,KAAK,MAAM,QAAQ,IAAI;AACzC;AA6BF,OA3BsB,MAAM;AAM1B,YAAI,EAJF,QACA,EAAE,iBAAiB,IAAI,KACvB,EAAE,aAAa,KAAK,MAAM,K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D,oBAAoBC,KAAAA;gBAC9B,CAAA;cACF;AACA,qBAAO;YACT,EAAA;AACA,gBAAIU,iBACFJ,WAAWe,OAAM,GACbrC,mBAAkB;kBACWuB;AAA/BlB,sBAAQC,KAAM,yBAAuC,QAAtBiB,gBAAAA,GAAGE,KAAK,UAAO,QAAfF,kBAAAA,SAAAA,gBAAmB,EAAA,CAAA;YACpD;UAEJ,GAvCKe,aAAoBxB,aAAAA,OAAAA,QAAAA,EAAAA,GAApB,QAAA,EAAAK,8BAAA,SAAAmB,WAAA,KAAA,GAAA,OAAAnB,6BAAA;AAAA,YAAAoB,OAAA;;AAAA,UAAAnB,qBAAA,IAAAC,kBAAA;;;aAAAF,8BAAAmB,WAAA,UAAA,QAAAA,WAAA,OAAA;;gBAAAlB;oBAAAC;;;MAwCP,GAnDK,YAAmBV,WAAAA,OAAAA,QAAAA,EAAAA,GAAnB,OAAA,EAAA,6BAAA,QAAA,UAAA,KAAA,GAAA,OAAA,4BAAA;AAAA,cAAA;;AAAA,0BAAA,IAAA,iBAAA;;;SAAA,6BAAA,UAAA,UAAA,QAAA,UAAA,OAAA;;YAAA;gBAAA;;;;AAoDP;",
5
+ "names": ["t", "hooks", "useMedia", "useTheme", "removeUnusedHooks", "compFn", "shouldPrintDebug", "scope", "crawl", "bodyStatements", "get", "console", "info", "Array", "isArray", "isFunctionExpression", "path", "statements", "statement", "isVariableDeclaration", "declarations", "isBindingReferenced", "name", "getBinding", "referenced", "_iteratorNormalCompletion", "_didIteratorError", "_iteratorError", "declarator", "id", "init", "node", "shouldRemove", "isHook", "isCallExpression", "isIdentifier", "callee", "isObjectPattern", "propPaths", "every", "prop", "isObjectProperty", "value", "remove", "_iterator", "_loop"]
6
6
  }
@@ -1,17 +1,18 @@
1
- const timer = () => {
2
- const start = Date.now();
3
- let last = start;
1
+ var timer = function() {
2
+ var start = Date.now(), last = start;
4
3
  return {
5
- mark: (name, print = !1) => {
4
+ mark: function(name) {
5
+ var print = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
6
6
  if (print) {
7
- const took = Date.now() - last;
8
- last = Date.now(), console.info(`Time ${name}: ${took}ms`), took > 10 && console.info(" long timer");
7
+ var took = Date.now() - last;
8
+ last = Date.now(), console.info("Time ".concat(name, ": ").concat(took, "ms")), took > 10 && console.info(" long timer");
9
9
  }
10
10
  },
11
- done: (print = !1) => {
11
+ done: function() {
12
+ var print = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1;
12
13
  if (print) {
13
- const total = Date.now() - start;
14
- console.info(`Total time: ${total}ms`), total > 50 && console.info(" long timer");
14
+ var total = Date.now() - start;
15
+ console.info("Total time: ".concat(total, "ms")), total > 50 && console.info(" long timer");
15
16
  }
16
17
  }
17
18
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/extractor/timer.ts"],
4
- "mappings": "AAAO,MAAM,QAAQ,MAAM;AACzB,QAAM,QAAQ,KAAK,IAAI;AACvB,MAAI,OAAO;AACX,SAAO;AAAA,IACL,MAAM,CAAC,MAAc,QAAQ,OAAU;AACrC,UAAI,OAAO;AACT,cAAM,OAAO,KAAK,IAAI,IAAI;AAC1B,eAAO,KAAK,IAAI,GAChB,QAAQ,KAAK,QAAQ,IAAI,KAAK,IAAI,IAAI,GAClC,OAAO,MACT,QAAQ,KAAK,cAAc;AAAA,MAE/B;AAAA,IACF;AAAA,IACA,MAAM,CAAC,QAAQ,OAAU;AACvB,UAAI,OAAO;AACT,cAAM,QAAQ,KAAK,IAAI,IAAI;AAC3B,gBAAQ,KAAK,eAAe,KAAK,IAAI,GACjC,QAAQ,MACV,QAAQ,KAAK,cAAc;AAAA,MAE/B;AAAA,IACF;AAAA,EACF;AACF;",
5
- "names": []
3
+ "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/timer.ts"],
4
+ "mappings": "AAAO,IAAMA,QAAQ,WAAA;AACnB,MAAMC,QAAQC,KAAKC,IAAG,GAClBC,OAAOH;AACX,SAAO;IACLI,MAAM,SAACC,MAAAA;UAAcC,QAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAQ;AAC3B,UAAIA,OAAO;AACT,YAAMC,OAAON,KAAKC,IAAG,IAAKC;AAC1BA,eAAOF,KAAKC,IAAG,GACfM,QAAQC,KAAM,QAAgBF,OAATF,MAAK,IAAA,EAAS,OAALE,MAAK,IAAA,CAAA,GAC/BA,OAAO,MACTC,QAAQC,KAAK,cAAA;MAEjB;IACF;IACAC,MAAM,WAAA;UAACJ,QAAAA,UAAAA,SAAAA,KAAAA,UAAAA,CAAAA,MAAAA,SAAAA,UAAAA,CAAAA,IAAQ;AACb,UAAIA,OAAO;AACT,YAAMK,QAAQV,KAAKC,IAAG,IAAKF;AAC3BQ,gBAAQC,KAAM,eAAoB,OAANE,OAAM,IAAA,CAAA,GAC9BA,QAAQ,MACVH,QAAQC,KAAK,cAAA;MAEjB;IACF;EACF;AACF;",
5
+ "names": ["timer", "start", "Date", "now", "last", "mark", "name", "print", "took", "console", "info", "done", "total"]
6
6
  }
@@ -1,4 +1,4 @@
1
- const validHTMLAttributes = {
1
+ var validHTMLAttributes = {
2
2
  autocomplete: !0,
3
3
  border: !0,
4
4
  contenteditable: !0,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/extractor/validHTMLAttributes.ts"],
4
- "mappings": "AAAO,MAAM,sBAAsB;AAAA,EACjC,cAAc;AAAA,EACd,QAAQ;AAAA,EACR,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,KAAK;AAAA,EACL,WAAW;AAAA,EACX,SAAS;AAAA,EACT,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,gBAAgB;AAAA,EAChB,KAAK;AAAA,EACL,KAAK;AAAA,EACL,MAAM;AAAA,EACN,SAAS;AAAA,EACT,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,MAAM;AAAA,EACN,MAAM;AAAA,EACN,qBAAqB;AAAA,EACrB,aAAa;AAAA,EACb,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,wBAAwB;AAAA,EACxB,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,aAAa;AACf;",
5
- "names": []
3
+ "sources": ["../../../src/extractor/Users/n8/tamagui/packages/static/src/extractor/validHTMLAttributes.ts"],
4
+ "mappings": "AAAO,IAAMA,sBAAsB;EACjCC,cAAc;EACdC,QAAQ;EACRC,iBAAiB;EACjBC,aAAa;EACbC,KAAK;EACLC,WAAW;EACXC,SAAS;EACTC,aAAa;EACbC,YAAY;EACZC,YAAY;EACZC,WAAW;EACXC,MAAM;EACNC,MAAM;EACNC,QAAQ;EACRC,SAAS;EACTC,gBAAgB;EAChBC,KAAK;EACLC,KAAK;EACLC,MAAM;EACNC,SAAS;EACTC,OAAO;EACPC,YAAY;EACZC,QAAQ;EACRC,WAAW;EACXC,MAAM;EACNC,MAAM;EACN,qBAAqB;EACrB,aAAa;EACb,gBAAgB;EAChB,gBAAgB;EAChB,iBAAiB;EACjB,iBAAiB;EACjB,iBAAiB;EACjB,eAAe;EACf,gBAAgB;EAChB,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,wBAAwB;EACxB,oBAAoB;EACpB,gBAAgB;EAChB,iBAAiB;EACjB,iBAAiB;EACjB,iBAAiB;EACjB,iBAAiB;EACjB,aAAa;AACf;",
5
+ "names": ["validHTMLAttributes", "autocomplete", "border", "contenteditable", "crossorigin", "dir", "draggable", "enctype", "formenctype", "formmethod", "formtarget", "inputmode", "kind", "link", "method", "preload", "referrerpolicy", "rel", "rev", "role", "sandbox", "shape", "spellcheck", "target", "translate", "type", "wrap"]
6
6
  }
@@ -1,18 +1,13 @@
1
- function getPragmaOptions({
2
- source,
3
- path,
4
- disableCommentCheck
5
- }) {
6
- var _a, _b;
1
+ function getPragmaOptions(param) {
2
+ var source = param.source, path = param.path, disableCommentCheck = param.disableCommentCheck, _process_env_DEBUG, _process_env_DEBUG1;
7
3
  if (!disableCommentCheck && !source.startsWith("//") && !source.startsWith("/*"))
8
4
  return {
9
5
  shouldPrintDebug: !1,
10
6
  shouldDisable: !1
11
7
  };
12
- let shouldPrintDebug = !1, shouldDisable = !1;
13
- const firstLine = source.slice(0, 800).split(`
8
+ var shouldPrintDebug = !1, shouldDisable = !1, firstLine = source.slice(0, 800).split(`
14
9
  `)[0];
15
- return firstLine.includes("tamagui-ignore") && (shouldDisable = !0), firstLine.includes("debug") && (shouldPrintDebug = !0), firstLine.includes("debug-verbose") && (shouldPrintDebug = "verbose"), process.env.TAMAGUI_DEBUG_FILE && path.includes(process.env.TAMAGUI_DEBUG_FILE) && (shouldPrintDebug = "verbose"), (_a = process.env.DEBUG) != null && _a.includes("tamagui") && (shouldPrintDebug || (shouldPrintDebug = !0)), (_b = process.env.DEBUG) != null && _b.includes("tamagui-verbose") && (shouldPrintDebug = "verbose"), {
10
+ return firstLine.includes("tamagui-ignore") && (shouldDisable = !0), firstLine.includes("debug") && (shouldPrintDebug = !0), firstLine.includes("debug-verbose") && (shouldPrintDebug = "verbose"), process.env.TAMAGUI_DEBUG_FILE && path.includes(process.env.TAMAGUI_DEBUG_FILE) && (shouldPrintDebug = "verbose"), !((_process_env_DEBUG = process.env.DEBUG) === null || _process_env_DEBUG === void 0) && _process_env_DEBUG.includes("tamagui") && (shouldPrintDebug || (shouldPrintDebug = !0)), !((_process_env_DEBUG1 = process.env.DEBUG) === null || _process_env_DEBUG1 === void 0) && _process_env_DEBUG1.includes("tamagui-verbose") && (shouldPrintDebug = "verbose"), {
16
11
  shouldPrintDebug,
17
12
  shouldDisable
18
13
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/getPragmaOptions.ts"],
4
- "mappings": "AAAO,SAAS,iBAAiB;AAAA,EAC/B;AAAA,EACA;AAAA,EACA;AACF,GAIG;AARH;AASE,MAAI,CAAC,uBAAuB,CAAC,OAAO,WAAW,IAAI,KAAK,CAAC,OAAO,WAAW,IAAI;AAC7E,WAAO;AAAA,MACL,kBAAkB;AAAA,MAClB,eAAe;AAAA,IACjB;AAGF,MAAI,mBAAwC,IACxC,gBAAgB;AAGpB,QAAM,YAAY,OAAO,MAAM,GAAG,GAAG,EAAE,MAAM;AAAA,CAAI,EAAE,CAAC;AAEpD,SAAI,UAAU,SAAS,gBAAgB,MACrC,gBAAgB,KAGd,UAAU,SAAS,OAAO,MAC5B,mBAAmB,KAGjB,UAAU,SAAS,eAAe,MACpC,mBAAmB,YAGjB,QAAQ,IAAI,sBACV,KAAK,SAAS,QAAQ,IAAI,kBAAkB,MAC9C,mBAAmB,aAInB,aAAQ,IAAI,UAAZ,WAAmB,SAAS,eAC9B,wCAAqB,OAGnB,aAAQ,IAAI,UAAZ,WAAmB,SAAS,uBAC9B,mBAAmB,YAGd;AAAA,IACL;AAAA,IACA;AAAA,EACF;AACF;",
5
- "names": []
3
+ "sources": ["../../src/Users/n8/tamagui/packages/static/src/getPragmaOptions.ts"],
4
+ "mappings": "AAAO,SAASA,iBAAiB,OAQhC;MAPCC,SAD+B,MAC/BA,QACAC,OAF+B,MAE/BA,MACAC,sBAH+B,MAG/BA,qBAqCIC,oBAIAA;AAnCJ,MAAI,CAACD,uBAAuB,CAACF,OAAOI,WAAW,IAAA,KAAS,CAACJ,OAAOI,WAAW,IAAA;AACzE,WAAO;MACLC,kBAAkB;MAClBC,eAAe;IACjB;AAGF,MAAID,mBAAwC,IACxCC,gBAAgB,IAGdC,YAAYP,OAAOQ,MAAM,GAAG,GAAA,EAAKC,MAAM;CAAA,EAAM,CAAA;AAEnD,SAAIF,UAAUG,SAAS,gBAAA,MACrBJ,gBAAgB,KAGdC,UAAUG,SAAS,OAAA,MACrBL,mBAAmB,KAGjBE,UAAUG,SAAS,eAAA,MACrBL,mBAAmB,YAGjBF,QAAQQ,IAAIC,sBACVX,KAAKS,SAASP,QAAQQ,IAAIC,kBAAkB,MAC9CP,mBAAmB,YAInBF,wBAAAA,QAAQQ,IAAIE,WAAK,QAAjBV,uBAAAA,WAAAA,mBAAmBO,SAAS,SAAA,MAC9BL,qBAAAA,mBAAqB,MAGnBF,yBAAAA,QAAQQ,IAAIE,WAAK,QAAjBV,wBAAAA,WAAAA,oBAAmBO,SAAS,iBAAA,MAC9BL,mBAAmB,YAGd;IACLA;IACAC;EACF;AACF;",
5
+ "names": ["getPragmaOptions", "source", "path", "disableCommentCheck", "process", "startsWith", "shouldPrintDebug", "shouldDisable", "firstLine", "slice", "split", "includes", "env", "TAMAGUI_DEBUG_FILE", "DEBUG"]
6
6
  }
@@ -1,11 +1,13 @@
1
1
  function memoize(func, resolver) {
2
2
  if (typeof func != "function" || resolver != null && typeof resolver != "function")
3
3
  throw new TypeError("Expected a function");
4
- const memoized = function(...args) {
5
- const key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
4
+ var memoized = function() {
5
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++)
6
+ args[_key] = arguments[_key];
7
+ var key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
6
8
  if (cache.has(key))
7
9
  return cache.get(key);
8
- const result = func.apply(this, args);
10
+ var result = func.apply(this, args);
9
11
  return memoized.cache = cache.set(key, result) || cache, result;
10
12
  };
11
13
  return memoized.cache = new (memoize.Cache || Map)(), memoized;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../src/helpers/memoize.ts"],
4
- "mappings": "AACO,SAAS,QAAQ,MAAiB,UAAgB;AACvD,MACE,OAAO,QAAS,cACf,YAAY,QAAQ,OAAO,YAAa;AAEzC,UAAM,IAAI,UAAU,qBAAqB;AAE3C,QAAM,WAAW,YAAa,MAAM;AAClC,UAAM,MAAM,WAAW,SAAS,MAAM,MAAM,IAAI,IAAI,KAAK,CAAC,GACpD,QAAQ,SAAS;AAEvB,QAAI,MAAM,IAAI,GAAG;AACf,aAAO,MAAM,IAAI,GAAG;AAEtB,UAAM,SAAS,KAAK,MAAM,MAAM,IAAI;AACpC,oBAAS,QAAQ,MAAM,IAAI,KAAK,MAAM,KAAK,OACpC;AAAA,EACT;AACA,kBAAS,QAAQ,KAAK,QAAQ,SAAS,KAAK,GACrC;AACT;AAEA,QAAQ,QAAQ;",
5
- "names": []
3
+ "sources": ["../../../src/helpers/Users/n8/tamagui/packages/static/src/helpers/memoize.ts"],
4
+ "mappings": "AACO,SAASA,QAAQC,MAAiBC,UAAc;AACrD,MACE,OAAOD,QAAS,cACfC,YAAY,QAAQ,OAAOA,YAAa;AAEzC,UAAM,IAAIC,UAAU,qBAAA;AAEtB,MAAMC,WAAW,WAAA;AAAU,aAAA,OAAA,UAAA,QAAGC,OAAH,IAAA,MAAA,IAAA,GAAA,OAAA,GAAA,OAAA,MAAA;AAAGA,WAAH,IAAA,IAAA,UAAA,IAAA;AACzB,QAAMC,MAAMJ,WAAWA,SAASK,MAAM,MAAMF,IAAAA,IAAQA,KAAK,CAAA,GACnDG,QAAQJ,SAASI;AAEvB,QAAIA,MAAMC,IAAIH,GAAAA;AACZ,aAAOE,MAAME,IAAIJ,GAAAA;AAEnB,QAAMK,SAASV,KAAKM,MAAM,MAAMF,IAAAA;AAChCD,oBAASI,QAAQA,MAAMI,IAAIN,KAAKK,MAAAA,KAAWH,OACpCG;EACT;AACAP,kBAASI,QAAQ,KAAKR,QAAQa,SAASC,KAAE,GAClCV;AACT;AAEAJ,QAAQa,QAAQC;",
5
+ "names": ["memoize", "func", "resolver", "TypeError", "memoized", "args", "key", "apply", "cache", "has", "get", "result", "set", "Cache", "Map"]
6
6
  }