@remotion/bundler 3.0.0-lambda.25 → 3.0.0-lambda.274

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.
Files changed (254) hide show
  1. package/dist/bundler.d.ts.map +1 -1
  2. package/dist/bundler.js +29 -11
  3. package/dist/bundler.js.map +1 -1
  4. package/dist/copy-dir.d.ts +2 -0
  5. package/dist/copy-dir.d.ts.map +1 -0
  6. package/dist/copy-dir.js +24 -0
  7. package/dist/copy-dir.js.map +1 -0
  8. package/dist/dev-middleware/compatible-api.d.ts +10 -0
  9. package/dist/dev-middleware/compatible-api.d.ts.map +1 -0
  10. package/dist/dev-middleware/compatible-api.js +45 -0
  11. package/dist/dev-middleware/compatible-api.js.map +1 -0
  12. package/dist/dev-middleware/compatible.api.d.ts +1 -0
  13. package/dist/dev-middleware/compatible.api.d.ts.map +1 -0
  14. package/dist/dev-middleware/compatible.api.js +2 -0
  15. package/dist/dev-middleware/compatible.api.js.map +1 -0
  16. package/dist/dev-middleware/compatibleapi.d.ts +1 -0
  17. package/dist/dev-middleware/compatibleapi.d.ts.map +1 -0
  18. package/dist/dev-middleware/compatibleapi.js +2 -0
  19. package/dist/dev-middleware/compatibleapi.js.map +1 -0
  20. package/dist/dev-middleware/get-filename-from-url.d.ts +3 -0
  21. package/dist/dev-middleware/get-filename-from-url.d.ts.map +1 -0
  22. package/dist/dev-middleware/get-filename-from-url.js +93 -0
  23. package/dist/dev-middleware/get-filename-from-url.js.map +1 -0
  24. package/dist/dev-middleware/get-paths.d.ts +8 -0
  25. package/dist/dev-middleware/get-paths.d.ts.map +1 -0
  26. package/dist/dev-middleware/get-paths.js +20 -0
  27. package/dist/dev-middleware/get-paths.js.map +1 -0
  28. package/dist/dev-middleware/index.d.ts +3 -0
  29. package/dist/dev-middleware/index.d.ts.map +1 -0
  30. package/dist/dev-middleware/index.js +58 -0
  31. package/dist/dev-middleware/index.js.map +1 -0
  32. package/dist/dev-middleware/is-color-supported.d.ts +2 -0
  33. package/dist/dev-middleware/is-color-supported.d.ts.map +1 -0
  34. package/dist/dev-middleware/is-color-supported.js +34 -0
  35. package/dist/dev-middleware/is-color-supported.js.map +1 -0
  36. package/dist/dev-middleware/middleware.d.ts +4 -0
  37. package/dist/dev-middleware/middleware.d.ts.map +1 -0
  38. package/dist/dev-middleware/middleware.js +142 -0
  39. package/dist/dev-middleware/middleware.js.map +1 -0
  40. package/dist/dev-middleware/range-parser.d.ts +16 -0
  41. package/dist/dev-middleware/range-parser.d.ts.map +1 -0
  42. package/dist/dev-middleware/range-parser.js +97 -0
  43. package/dist/dev-middleware/range-parser.js.map +1 -0
  44. package/dist/dev-middleware/ready.d.ts +6 -0
  45. package/dist/dev-middleware/ready.d.ts.map +1 -0
  46. package/dist/dev-middleware/ready.js +14 -0
  47. package/dist/dev-middleware/ready.js.map +1 -0
  48. package/dist/dev-middleware/setup-hooks.d.ts +3 -0
  49. package/dist/dev-middleware/setup-hooks.d.ts.map +1 -0
  50. package/dist/dev-middleware/setup-hooks.js +45 -0
  51. package/dist/dev-middleware/setup-hooks.js.map +1 -0
  52. package/dist/dev-middleware/setup-output-filesystem.d.ts +3 -0
  53. package/dist/dev-middleware/setup-output-filesystem.d.ts.map +1 -0
  54. package/dist/dev-middleware/setup-output-filesystem.js +14 -0
  55. package/dist/dev-middleware/setup-output-filesystem.js.map +1 -0
  56. package/dist/dev-middleware/types.d.ts +12 -0
  57. package/dist/dev-middleware/types.d.ts.map +1 -0
  58. package/dist/dev-middleware/types.js +3 -0
  59. package/dist/dev-middleware/types.js.map +1 -0
  60. package/dist/error-overlay/entry-basic.d.ts +2 -0
  61. package/dist/error-overlay/entry-basic.d.ts.map +1 -0
  62. package/dist/error-overlay/entry-basic.js +22 -0
  63. package/dist/error-overlay/entry-basic.js.map +1 -0
  64. package/dist/error-overlay/entry-devserver.d.ts +12 -0
  65. package/dist/error-overlay/entry-devserver.d.ts.map +1 -0
  66. package/dist/error-overlay/entry-devserver.js +36 -0
  67. package/dist/error-overlay/entry-devserver.js.map +1 -0
  68. package/dist/error-overlay/index.d.ts +5 -0
  69. package/dist/error-overlay/index.d.ts.map +1 -0
  70. package/dist/error-overlay/index.js +28 -0
  71. package/dist/error-overlay/index.js.map +1 -0
  72. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts +13 -0
  73. package/dist/error-overlay/react-overlay/effects/format-warning.d.ts.map +1 -0
  74. package/dist/error-overlay/react-overlay/effects/format-warning.js +42 -0
  75. package/dist/error-overlay/react-overlay/effects/format-warning.js.map +1 -0
  76. package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts +18 -0
  77. package/dist/error-overlay/react-overlay/effects/proxy-console.d.ts.map +1 -0
  78. package/dist/error-overlay/react-overlay/effects/proxy-console.js +55 -0
  79. package/dist/error-overlay/react-overlay/effects/proxy-console.js.map +1 -0
  80. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts +4 -0
  81. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.d.ts.map +1 -0
  82. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js +44 -0
  83. package/dist/error-overlay/react-overlay/effects/stack-trace-limit.js.map +1 -0
  84. package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts +5 -0
  85. package/dist/error-overlay/react-overlay/effects/unhandled-error.d.ts.map +1 -0
  86. package/dist/error-overlay/react-overlay/effects/unhandled-error.js +46 -0
  87. package/dist/error-overlay/react-overlay/effects/unhandled-error.js.map +1 -0
  88. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts +5 -0
  89. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.d.ts.map +1 -0
  90. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js +42 -0
  91. package/dist/error-overlay/react-overlay/effects/unhandled-rejection.js.map +1 -0
  92. package/dist/error-overlay/react-overlay/index.d.ts +8 -0
  93. package/dist/error-overlay/react-overlay/index.d.ts.map +1 -0
  94. package/dist/error-overlay/react-overlay/index.js +45 -0
  95. package/dist/error-overlay/react-overlay/index.js.map +1 -0
  96. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts +12 -0
  97. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.d.ts.map +1 -0
  98. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js +63 -0
  99. package/dist/error-overlay/react-overlay/listen-to-runtime-errors.js.map +1 -0
  100. package/dist/error-overlay/react-overlay/stack-frame.d.ts +47 -0
  101. package/dist/error-overlay/react-overlay/stack-frame.d.ts.map +1 -0
  102. package/dist/error-overlay/react-overlay/stack-frame.js +82 -0
  103. package/dist/error-overlay/react-overlay/stack-frame.js.map +1 -0
  104. package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts +15 -0
  105. package/dist/error-overlay/react-overlay/utils/get-lines-around.d.ts.map +1 -0
  106. package/dist/error-overlay/react-overlay/utils/get-lines-around.js +31 -0
  107. package/dist/error-overlay/react-overlay/utils/get-lines-around.js.map +1 -0
  108. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts +52 -0
  109. package/dist/error-overlay/react-overlay/utils/get-source-map.d.ts.map +1 -0
  110. package/dist/error-overlay/react-overlay/utils/get-source-map.js +108 -0
  111. package/dist/error-overlay/react-overlay/utils/get-source-map.js.map +1 -0
  112. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts +13 -0
  113. package/dist/error-overlay/react-overlay/utils/get-stack-frames.d.ts.map +1 -0
  114. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js +32 -0
  115. package/dist/error-overlay/react-overlay/utils/get-stack-frames.js.map +1 -0
  116. package/dist/error-overlay/react-overlay/utils/mapper.d.ts +16 -0
  117. package/dist/error-overlay/react-overlay/utils/mapper.d.ts.map +1 -0
  118. package/dist/error-overlay/react-overlay/utils/mapper.js +61 -0
  119. package/dist/error-overlay/react-overlay/utils/mapper.js.map +1 -0
  120. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts +15 -0
  121. package/dist/error-overlay/react-overlay/utils/open-in-editor.d.ts.map +1 -0
  122. package/dist/error-overlay/react-overlay/utils/open-in-editor.js +452 -0
  123. package/dist/error-overlay/react-overlay/utils/open-in-editor.js.map +1 -0
  124. package/dist/error-overlay/react-overlay/utils/parser.d.ts +15 -0
  125. package/dist/error-overlay/react-overlay/utils/parser.d.ts.map +1 -0
  126. package/dist/error-overlay/react-overlay/utils/parser.js +85 -0
  127. package/dist/error-overlay/react-overlay/utils/parser.js.map +1 -0
  128. package/dist/error-overlay/react-overlay/utils/path.d.ts +2 -0
  129. package/dist/error-overlay/react-overlay/utils/path.d.ts.map +1 -0
  130. package/dist/error-overlay/react-overlay/utils/path.js +98 -0
  131. package/dist/error-overlay/react-overlay/utils/path.js.map +1 -0
  132. package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts +3 -0
  133. package/dist/error-overlay/react-overlay/utils/settle-promise.d.ts.map +1 -0
  134. package/dist/error-overlay/react-overlay/utils/settle-promise.js +20 -0
  135. package/dist/error-overlay/react-overlay/utils/settle-promise.js.map +1 -0
  136. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts +46 -0
  137. package/dist/error-overlay/react-overlay/utils/stack-frame.d.ts.map +1 -0
  138. package/dist/error-overlay/react-overlay/utils/stack-frame.js +85 -0
  139. package/dist/error-overlay/react-overlay/utils/stack-frame.js.map +1 -0
  140. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts +14 -0
  141. package/dist/error-overlay/react-overlay/utils/unmapper.d.ts.map +1 -0
  142. package/dist/error-overlay/react-overlay/utils/unmapper.js +94 -0
  143. package/dist/error-overlay/react-overlay/utils/unmapper.js.map +1 -0
  144. package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts +3 -0
  145. package/dist/error-overlay/remotion-overlay/AskOnDiscord.d.ts.map +1 -0
  146. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js +15 -0
  147. package/dist/error-overlay/remotion-overlay/AskOnDiscord.js.map +1 -0
  148. package/dist/error-overlay/remotion-overlay/Button.d.ts +6 -0
  149. package/dist/error-overlay/remotion-overlay/Button.d.ts.map +1 -0
  150. package/dist/error-overlay/remotion-overlay/Button.js +25 -0
  151. package/dist/error-overlay/remotion-overlay/Button.js.map +1 -0
  152. package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts +7 -0
  153. package/dist/error-overlay/remotion-overlay/CodeFrame.d.ts.map +1 -0
  154. package/dist/error-overlay/remotion-overlay/CodeFrame.js +29 -0
  155. package/dist/error-overlay/remotion-overlay/CodeFrame.js.map +1 -0
  156. package/dist/error-overlay/remotion-overlay/DismissButton.d.ts +3 -0
  157. package/dist/error-overlay/remotion-overlay/DismissButton.d.ts.map +1 -0
  158. package/dist/error-overlay/remotion-overlay/DismissButton.js +24 -0
  159. package/dist/error-overlay/remotion-overlay/DismissButton.js.map +1 -0
  160. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts +6 -0
  161. package/dist/error-overlay/remotion-overlay/ErrorDisplay.d.ts.map +1 -0
  162. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js +62 -0
  163. package/dist/error-overlay/remotion-overlay/ErrorDisplay.js.map +1 -0
  164. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts +6 -0
  165. package/dist/error-overlay/remotion-overlay/OpenInEditor.d.ts.map +1 -0
  166. package/dist/error-overlay/remotion-overlay/OpenInEditor.js +92 -0
  167. package/dist/error-overlay/remotion-overlay/OpenInEditor.js.map +1 -0
  168. package/dist/error-overlay/remotion-overlay/Overlay.d.ts +17 -0
  169. package/dist/error-overlay/remotion-overlay/Overlay.d.ts.map +1 -0
  170. package/dist/error-overlay/remotion-overlay/Overlay.js +35 -0
  171. package/dist/error-overlay/remotion-overlay/Overlay.js.map +1 -0
  172. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts +5 -0
  173. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.d.ts.map +1 -0
  174. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js +14 -0
  175. package/dist/error-overlay/remotion-overlay/SearchGitHubIssues.js.map +1 -0
  176. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts +8 -0
  177. package/dist/error-overlay/remotion-overlay/StackFrame.d.ts.map +1 -0
  178. package/dist/error-overlay/remotion-overlay/StackFrame.js +42 -0
  179. package/dist/error-overlay/remotion-overlay/StackFrame.js.map +1 -0
  180. package/dist/error-overlay/remotion-overlay/carets.d.ts +3 -0
  181. package/dist/error-overlay/remotion-overlay/carets.d.ts.map +1 -0
  182. package/dist/error-overlay/remotion-overlay/carets.js +13 -0
  183. package/dist/error-overlay/remotion-overlay/carets.js.map +1 -0
  184. package/dist/error-overlay/remotion-overlay/format-location.d.ts +2 -0
  185. package/dist/error-overlay/remotion-overlay/format-location.d.ts.map +1 -0
  186. package/dist/error-overlay/remotion-overlay/format-location.js +11 -0
  187. package/dist/error-overlay/remotion-overlay/format-location.js.map +1 -0
  188. package/dist/error-overlay/remotion-overlay/index.d.ts +2 -0
  189. package/dist/error-overlay/remotion-overlay/index.d.ts.map +1 -0
  190. package/dist/error-overlay/remotion-overlay/index.js +14 -0
  191. package/dist/error-overlay/remotion-overlay/index.js.map +1 -0
  192. package/dist/fast-refresh/helpers.d.ts +40 -0
  193. package/dist/fast-refresh/helpers.d.ts.map +1 -0
  194. package/dist/fast-refresh/helpers.js +146 -0
  195. package/dist/fast-refresh/helpers.js.map +1 -0
  196. package/dist/fast-refresh/index.d.ts +31 -0
  197. package/dist/fast-refresh/index.d.ts.map +1 -0
  198. package/dist/fast-refresh/index.js +60 -0
  199. package/dist/fast-refresh/index.js.map +1 -0
  200. package/dist/fast-refresh/loader.d.ts +36 -0
  201. package/dist/fast-refresh/loader.d.ts.map +1 -0
  202. package/dist/fast-refresh/loader.js +82 -0
  203. package/dist/fast-refresh/loader.js.map +1 -0
  204. package/dist/fast-refresh/runtime.d.ts +36 -0
  205. package/dist/fast-refresh/runtime.d.ts.map +1 -0
  206. package/dist/fast-refresh/runtime.js +33 -0
  207. package/dist/fast-refresh/runtime.js.map +1 -0
  208. package/dist/homepage/homepage.d.ts +4 -0
  209. package/dist/homepage/homepage.d.ts.map +1 -0
  210. package/dist/homepage/homepage.js +63 -0
  211. package/dist/homepage/homepage.js.map +1 -0
  212. package/dist/hot-middleware/client.d.ts +20 -0
  213. package/dist/hot-middleware/client.d.ts.map +1 -0
  214. package/dist/hot-middleware/client.js +208 -0
  215. package/dist/hot-middleware/client.js.map +1 -0
  216. package/dist/hot-middleware/index.d.ts +14 -0
  217. package/dist/hot-middleware/index.d.ts.map +1 -0
  218. package/dist/hot-middleware/index.js +181 -0
  219. package/dist/hot-middleware/index.js.map +1 -0
  220. package/dist/hot-middleware/process-update.d.ts +13 -0
  221. package/dist/hot-middleware/process-update.d.ts.map +1 -0
  222. package/dist/hot-middleware/process-update.js +147 -0
  223. package/dist/hot-middleware/process-update.js.map +1 -0
  224. package/dist/hot-middleware/strip-ansi.d.ts +7 -0
  225. package/dist/hot-middleware/strip-ansi.d.ts.map +1 -0
  226. package/dist/hot-middleware/strip-ansi.js +23 -0
  227. package/dist/hot-middleware/strip-ansi.js.map +1 -0
  228. package/dist/hot-middleware/types.d.ts +39 -0
  229. package/dist/hot-middleware/types.d.ts.map +1 -0
  230. package/dist/hot-middleware/types.js +18 -0
  231. package/dist/hot-middleware/types.js.map +1 -0
  232. package/dist/index.d.ts +1 -1
  233. package/dist/index.d.ts.map +1 -1
  234. package/dist/index.js.map +1 -1
  235. package/dist/renderEntry.js +7 -3
  236. package/dist/renderEntry.js.map +1 -1
  237. package/dist/start-server.d.ts +0 -1
  238. package/dist/start-server.d.ts.map +1 -1
  239. package/dist/start-server.js +41 -14
  240. package/dist/start-server.js.map +1 -1
  241. package/dist/static-preview.d.ts +2 -0
  242. package/dist/static-preview.d.ts.map +1 -0
  243. package/dist/static-preview.js +34 -0
  244. package/dist/static-preview.js.map +1 -0
  245. package/dist/webpack-config.d.ts +1 -2
  246. package/dist/webpack-config.d.ts.map +1 -1
  247. package/dist/webpack-config.js +29 -12
  248. package/dist/webpack-config.js.map +1 -1
  249. package/package.json +11 -8
  250. package/dist/env-variables.d.ts +0 -2
  251. package/dist/env-variables.d.ts.map +0 -1
  252. package/dist/env-variables.js +0 -5
  253. package/dist/env-variables.js.map +0 -1
  254. package/web/index.html +0 -20
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ /*
3
+ Source code adapted from https://github.com/browserify/path-browserify and refactored in Typescript. This file is MIT-licensed.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.pathNormalize = void 0;
7
+ function normalizeStringPosix(path, allowAboveRoot) {
8
+ let res = '';
9
+ let lastSegmentLength = 0;
10
+ let lastSlash = -1;
11
+ let dots = 0;
12
+ let code;
13
+ for (let i = 0; i <= path.length; ++i) {
14
+ if (i < path.length)
15
+ code = path.charCodeAt(i);
16
+ else if (code === 47 /* / */)
17
+ break;
18
+ else
19
+ code = 47 /* / */;
20
+ if (code === 47 /* / */) {
21
+ if (lastSlash === i - 1 || dots === 1) {
22
+ // NOOP
23
+ }
24
+ else if (lastSlash !== i - 1 && dots === 2) {
25
+ if (res.length < 2 ||
26
+ lastSegmentLength !== 2 ||
27
+ res.charCodeAt(res.length - 1) !== 46 /* . */ ||
28
+ res.charCodeAt(res.length - 2) !== 46 /* . */) {
29
+ if (res.length > 2) {
30
+ const lastSlashIndex = res.lastIndexOf('/');
31
+ // eslint-disable-next-line max-depth
32
+ if (lastSlashIndex !== res.length - 1) {
33
+ // eslint-disable-next-line max-depth
34
+ if (lastSlashIndex === -1) {
35
+ res = '';
36
+ lastSegmentLength = 0;
37
+ }
38
+ else {
39
+ res = res.slice(0, lastSlashIndex);
40
+ lastSegmentLength = res.length - 1 - res.lastIndexOf('/');
41
+ }
42
+ lastSlash = i;
43
+ dots = 0;
44
+ continue;
45
+ }
46
+ }
47
+ else if (res.length === 2 || res.length === 1) {
48
+ res = '';
49
+ lastSegmentLength = 0;
50
+ lastSlash = i;
51
+ dots = 0;
52
+ continue;
53
+ }
54
+ }
55
+ if (allowAboveRoot) {
56
+ if (res.length > 0)
57
+ res += '/..';
58
+ else
59
+ res = '..';
60
+ lastSegmentLength = 2;
61
+ }
62
+ }
63
+ else {
64
+ if (res.length > 0)
65
+ res += '/' + path.slice(lastSlash + 1, i);
66
+ else
67
+ res = path.slice(lastSlash + 1, i);
68
+ lastSegmentLength = i - lastSlash - 1;
69
+ }
70
+ lastSlash = i;
71
+ dots = 0;
72
+ }
73
+ else if (code === 46 /* . */ && dots !== -1) {
74
+ ++dots;
75
+ }
76
+ else {
77
+ dots = -1;
78
+ }
79
+ }
80
+ return res;
81
+ }
82
+ function pathNormalize(path) {
83
+ if (path.length === 0)
84
+ return '.';
85
+ const isAbsolute = path.charCodeAt(0) === 47; /* / */
86
+ const trailingSeparator = path.charCodeAt(path.length - 1) === 47; /* / */
87
+ // Normalize the path
88
+ path = normalizeStringPosix(path, !isAbsolute);
89
+ if (path.length === 0 && !isAbsolute)
90
+ path = '.';
91
+ if (path.length > 0 && trailingSeparator)
92
+ path += '/';
93
+ if (isAbsolute)
94
+ return '/' + path;
95
+ return path;
96
+ }
97
+ exports.pathNormalize = pathNormalize;
98
+ //# sourceMappingURL=path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/path.ts"],"names":[],"mappings":";AAAA;;EAEE;;;AAEF,SAAS,oBAAoB,CAAC,IAAY,EAAE,cAAuB;IAClE,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,IAAI,iBAAiB,GAAG,CAAC,CAAC;IAC1B,IAAI,SAAS,GAAG,CAAC,CAAC,CAAC;IACnB,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,IAAI,CAAC;IACT,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE;QACtC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM;YAAE,IAAI,GAAG,IAAI,CAAC,U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AO;IAE1E,qBAAqB;IACrB,IAAI,GAAG,oBAAoB,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,CAAC;IAE/C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,UAAU;QAAE,IAAI,GAAG,GAAG,CAAC;IACjD,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,iBAAiB;QAAE,IAAI,IAAI,GAAG,CAAC;IAEtD,IAAI,UAAU;QAAE,OAAO,GAAG,GAAG,IAAI,CAAC;IAClC,OAAO,IAAI,CAAC;AACb,CAAC;AAdD,sCAcC"}
@@ -0,0 +1,3 @@
1
+ declare function settle(val: Array<Promise<unknown>> | Promise<unknown>): Promise<unknown>;
2
+ export { settle };
3
+ //# sourceMappingURL=settle-promise.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settle-promise.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/settle-promise.ts"],"names":[],"mappings":"AAAA,iBAAS,MAAM,CACd,GAAG,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC,GAC7C,OAAO,CAAC,OAAO,CAAC,CAiBlB;AAED,OAAO,EAAC,MAAM,EAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.settle = void 0;
4
+ function settle(val) {
5
+ if (!Array.isArray(val))
6
+ val = [val];
7
+ return Promise.all(val.map((p) => p
8
+ .then((value) => ({
9
+ isFulfilled: true,
10
+ isRejected: false,
11
+ value,
12
+ }))
13
+ .catch((reason) => ({
14
+ isFulfilled: false,
15
+ isRejected: true,
16
+ reason,
17
+ }))));
18
+ }
19
+ exports.settle = settle;
20
+ //# sourceMappingURL=settle-promise.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settle-promise.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/settle-promise.ts"],"names":[],"mappings":";;;AAAA,SAAS,MAAM,CACd,GAA+C;IAE/C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QAAE,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;IACrC,OAAO,OAAO,CAAC,GAAG,CACjB,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CACb,CAAC;SACC,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACjB,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,KAAK;QACjB,KAAK;KACL,CAAC,CAAC;SACF,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACnB,WAAW,EAAE,KAAK;QAClB,UAAU,EAAE,IAAI;QAChB,MAAM;KACN,CAAC,CAAC,CACJ,CACD,CAAC;AACH,CAAC;AAEO,wBAAM"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Copyright (c) 2015-present, Facebook, Inc.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ /** A container holding a script line. */
8
+ export declare class ScriptLine {
9
+ /** The line number of this line of source. */
10
+ lineNumber: number;
11
+ /** The content (or value) of this line of source. */
12
+ content: string;
13
+ /** Whether or not this line should be highlighted. Particularly useful for error reporting with context. */
14
+ highlight: boolean;
15
+ constructor(lineNumber: number, content: string, highlight?: boolean);
16
+ }
17
+ /**
18
+ * A representation of a stack frame.
19
+ */
20
+ export declare class StackFrame {
21
+ functionName: string | null;
22
+ fileName: string | null;
23
+ lineNumber: number | null;
24
+ columnNumber: number | null;
25
+ _originalFunctionName: string | null;
26
+ _originalFileName: string | null;
27
+ _originalLineNumber: number | null;
28
+ _originalColumnNumber: number | null;
29
+ _scriptCode: ScriptLine[] | null;
30
+ _originalScriptCode: ScriptLine[] | null;
31
+ constructor(functionName?: string | null, fileName?: string | null, lineNumber?: number | null, columnNumber?: number | null, scriptCode?: ScriptLine[] | null, sourceFunctionName?: string | null, sourceFileName?: string | null, sourceLineNumber?: number | null, sourceColumnNumber?: number | null, sourceScriptCode?: ScriptLine[] | null);
32
+ /**
33
+ * Returns the name of this function.
34
+ */
35
+ getFunctionName(): string;
36
+ /**
37
+ * Returns the source of the frame.
38
+ * This contains the file name, line number, and column number when available.
39
+ */
40
+ getSource(): string;
41
+ /**
42
+ * Returns a pretty version of this stack frame.
43
+ */
44
+ toString(): string;
45
+ }
46
+ //# sourceMappingURL=stack-frame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack-frame.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/stack-frame.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AAEH,yCAAyC;AACzC,qBAAa,UAAU;IACtB,8CAA8C;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,4GAA4G;IAC5G,SAAS,EAAE,OAAO,CAAC;gBAEP,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,UAAQ;CAKlE;AAED;;GAEG;AACH,qBAAa,UAAU;IACtB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,qBAAqB,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC,WAAW,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;gBAIxC,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,QAAQ,GAAE,MAAM,GAAG,IAAW,EAC9B,UAAU,GAAE,MAAM,GAAG,IAAW,EAChC,YAAY,GAAE,MAAM,GAAG,IAAW,EAClC,UAAU,GAAE,UAAU,EAAE,GAAG,IAAW,EACtC,kBAAkB,GAAE,MAAM,GAAG,IAAW,EACxC,cAAc,GAAE,MAAM,GAAG,IAAW,EACpC,gBAAgB,GAAE,MAAM,GAAG,IAAW,EACtC,kBAAkB,GAAE,MAAM,GAAG,IAAW,EACxC,gBAAgB,GAAE,UAAU,EAAE,GAAG,IAAW;IAiC7C;;OAEG;IACH,eAAe,IAAI,MAAM;IAIzB;;;OAGG;IACH,SAAS,IAAI,MAAM;IAiBnB;;OAEG;IACH,QAAQ,IAAI,MAAM;CAKlB"}
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ /*
3
+ Source code adapted from https://github.com/facebook/create-react-app/tree/main/packages/react-error-overlay and refactored in Typescript. This file is MIT-licensed.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.StackFrame = exports.ScriptLine = void 0;
7
+ /**
8
+ * Copyright (c) 2015-present, Facebook, Inc.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+ /** A container holding a script line. */
14
+ class ScriptLine {
15
+ constructor(lineNumber, content, highlight = false) {
16
+ this.lineNumber = lineNumber;
17
+ this.content = content;
18
+ this.highlight = highlight;
19
+ }
20
+ }
21
+ exports.ScriptLine = ScriptLine;
22
+ /**
23
+ * A representation of a stack frame.
24
+ */
25
+ class StackFrame {
26
+ // eslint-disable-next-line max-params
27
+ constructor(functionName = null, fileName = null, lineNumber = null, columnNumber = null, scriptCode = null, sourceFunctionName = null, sourceFileName = null, sourceLineNumber = null, sourceColumnNumber = null, sourceScriptCode = null) {
28
+ if (functionName && functionName.indexOf('Object.') === 0) {
29
+ functionName = functionName.slice('Object.'.length);
30
+ }
31
+ if (
32
+ // Chrome has a bug with inferring function.name:
33
+ // https://github.com/facebook/create-react-app/issues/2097
34
+ // Let's ignore a meaningless name we get for top-level modules.
35
+ functionName === 'friendlySyntaxErrorLabel' ||
36
+ functionName === 'exports.__esModule' ||
37
+ functionName === '<anonymous>' ||
38
+ !functionName) {
39
+ functionName = null;
40
+ }
41
+ this.functionName = functionName;
42
+ this.fileName = fileName;
43
+ this.lineNumber = lineNumber;
44
+ this.columnNumber = columnNumber;
45
+ this._originalFunctionName = sourceFunctionName;
46
+ this._originalFileName = sourceFileName;
47
+ this._originalLineNumber = sourceLineNumber;
48
+ this._originalColumnNumber = sourceColumnNumber;
49
+ this._scriptCode = scriptCode;
50
+ this._originalScriptCode = sourceScriptCode;
51
+ }
52
+ /**
53
+ * Returns the name of this function.
54
+ */
55
+ getFunctionName() {
56
+ return this.functionName || '(anonymous function)';
57
+ }
58
+ /**
59
+ * Returns the source of the frame.
60
+ * This contains the file name, line number, and column number when available.
61
+ */
62
+ getSource() {
63
+ let str = '';
64
+ if (this.fileName !== null) {
65
+ str += this.fileName + ':';
66
+ }
67
+ if (this.lineNumber !== null) {
68
+ str += this.lineNumber + ':';
69
+ }
70
+ if (this.columnNumber !== null) {
71
+ str += this.columnNumber + ':';
72
+ }
73
+ return str.slice(0, -1);
74
+ }
75
+ /**
76
+ * Returns a pretty version of this stack frame.
77
+ */
78
+ toString() {
79
+ const functionName = this.getFunctionName();
80
+ const source = this.getSource();
81
+ return `${functionName}${source ? ` (${source})` : ``}`;
82
+ }
83
+ }
84
+ exports.StackFrame = StackFrame;
85
+ //# sourceMappingURL=stack-frame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack-frame.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/stack-frame.ts"],"names":[],"mappings":";AAAA;;EAEE;;;AAEF;;;;;GAKG;AAEH,yCAAyC;AACzC,MAAa,UAAU;IAQtB,YAAY,UAAkB,EAAE,OAAe,EAAE,SAAS,GAAG,KAAK;QACjE,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,O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AAC;IAED;;;OAGG;IACH,SAAS;QACR,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,IAAI,CAAC,QAAQ,KAAK,IAAI,EAAE;YAC3B,GAAG,IAAI,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC;SAC3B;QAED,IAAI,IAAI,CAAC,UAAU,KAAK,IAAI,EAAE;YAC7B,GAAG,IAAI,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC;SAC7B;QAED,IAAI,IAAI,CAAC,YAAY,KAAK,IAAI,EAAE;YAC/B,GAAG,IAAI,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;SAC/B;QAED,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,QAAQ;QACP,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,EAAE,CAAC;QAC5C,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,OAAO,GAAG,YAAY,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACzD,CAAC;CACD;AA9FD,gCA8FC"}
@@ -0,0 +1,14 @@
1
+ import { StackFrame } from './stack-frame';
2
+ /**
3
+ * Turns a set of mapped <code>StackFrame</code>s back into their generated code position and enhances them with code.
4
+ * @param {string} fileUri The URI of the <code>bundle.js</code> file.
5
+ * @param {StackFrame[]} frames A set of <code>StackFrame</code>s which are already mapped and missing their generated positions.
6
+ * @param {number} [fileContents=3] The number of lines to provide before and after the line specified in the <code>StackFrame</code>.
7
+ */
8
+ declare function unmap(_fileUri: string | {
9
+ uri: string;
10
+ contents: string;
11
+ }, frames: StackFrame[], contextLines?: number): Promise<StackFrame[]>;
12
+ export { unmap };
13
+ export default unmap;
14
+ //# sourceMappingURL=unmapper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unmapper.d.ts","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/unmapper.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;AAiBzC;;;;;GAKG;AACH,iBAAe,KAAK,CACnB,QAAQ,EAAE,MAAM,GAAG;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,EAClD,MAAM,EAAE,UAAU,EAAE,EACpB,YAAY,SAAI,GACd,OAAO,CAAC,UAAU,EAAE,CAAC,CAqFvB;AAED,OAAO,EAAC,KAAK,EAAC,CAAC;AACf,eAAe,KAAK,CAAC"}
@@ -0,0 +1,94 @@
1
+ "use strict";
2
+ /*
3
+ Source code adapted from https://github.com/facebook/create-react-app/tree/main/packages/react-error-overlay and refactored in Typescript. This file is MIT-licensed.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.unmap = void 0;
7
+ /* eslint-disable eqeqeq */
8
+ /* eslint-disable no-eq-null */
9
+ /**
10
+ * Copyright (c) 2015-present, Facebook, Inc.
11
+ *
12
+ * This source code is licensed under the MIT license found in the
13
+ * LICENSE file in the root directory of this source tree.
14
+ */
15
+ const get_lines_around_1 = require("./get-lines-around");
16
+ const get_source_map_1 = require("./get-source-map");
17
+ const path_1 = require("./path");
18
+ const stack_frame_1 = require("./stack-frame");
19
+ function count(search, string) {
20
+ // Count starts at -1 because a do-while loop always runs at least once
21
+ let _count = -1;
22
+ let index = -1;
23
+ do {
24
+ // First call or the while case evaluated true, meaning we have to make
25
+ // count 0 or we found a character
26
+ ++_count;
27
+ // Find the index of our search string, starting after the previous index
28
+ index = string.indexOf(search, index + 1);
29
+ } while (index !== -1);
30
+ return _count;
31
+ }
32
+ /**
33
+ * Turns a set of mapped <code>StackFrame</code>s back into their generated code position and enhances them with code.
34
+ * @param {string} fileUri The URI of the <code>bundle.js</code> file.
35
+ * @param {StackFrame[]} frames A set of <code>StackFrame</code>s which are already mapped and missing their generated positions.
36
+ * @param {number} [fileContents=3] The number of lines to provide before and after the line specified in the <code>StackFrame</code>.
37
+ */
38
+ async function unmap(_fileUri, frames, contextLines = 3) {
39
+ let fileContents = typeof _fileUri === 'object' ? _fileUri.contents : null;
40
+ const fileUri = typeof _fileUri === 'object' ? _fileUri.uri : _fileUri;
41
+ if (fileContents == null) {
42
+ fileContents = await fetch(fileUri).then((res) => res.text());
43
+ }
44
+ const map = await (0, get_source_map_1.getSourceMap)(fileUri, fileContents);
45
+ return frames.map((frame) => {
46
+ const { functionName, lineNumber, columnNumber, _originalLineNumber } = frame;
47
+ if (_originalLineNumber != null) {
48
+ return frame;
49
+ }
50
+ let { fileName } = frame;
51
+ if (fileName) {
52
+ // The web version of this module only provides POSIX support, so Windows
53
+ // paths like C:\foo\\baz\..\\bar\ cannot be normalized.
54
+ // A simple solution to this is to replace all `\` with `/`, then
55
+ // normalize afterwards.
56
+ fileName = (0, path_1.pathNormalize)(fileName.replace(/[\\]+/g, '/'));
57
+ }
58
+ if (fileName == null) {
59
+ return frame;
60
+ }
61
+ const fN = fileName;
62
+ const source = map
63
+ .getSources()
64
+ // Prepare path for normalization; see comment above for reasoning.
65
+ .map((s) => s.replace(/[\\]+/g, '/'))
66
+ .filter((p) => {
67
+ p = (0, path_1.pathNormalize)(p);
68
+ const i = p.lastIndexOf(fN);
69
+ return i !== -1 && i === p.length - fN.length;
70
+ })
71
+ .map((p) => ({
72
+ token: p,
73
+ seps: count('/', (0, path_1.pathNormalize)(p)),
74
+ penalties: count('node_modules', p) + count('~', p),
75
+ }))
76
+ .sort((a, b) => {
77
+ const s = Math.sign(a.seps - b.seps);
78
+ if (s !== 0) {
79
+ return s;
80
+ }
81
+ return Math.sign(a.penalties - b.penalties);
82
+ });
83
+ if (source.length < 1 || lineNumber == null) {
84
+ return new stack_frame_1.StackFrame(null, null, null, null, null, functionName, fN, lineNumber, columnNumber, null);
85
+ }
86
+ const sourceT = source[0].token;
87
+ const { line, column } = map.getGeneratedPosition(sourceT, lineNumber, columnNumber);
88
+ const originalSource = map.getSource(sourceT);
89
+ return new stack_frame_1.StackFrame(functionName, fileUri, line, column || null, (0, get_lines_around_1.getLinesAround)(line, contextLines, fileContents || []), functionName, fN, lineNumber, columnNumber, (0, get_lines_around_1.getLinesAround)(lineNumber, contextLines, originalSource));
90
+ });
91
+ }
92
+ exports.unmap = unmap;
93
+ exports.default = unmap;
94
+ //# sourceMappingURL=unmapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unmapper.js","sourceRoot":"","sources":["../../../../src/error-overlay/react-overlay/utils/unmapper.ts"],"names":[],"mappings":";AAAA;;EAEE;;;AAEF,2BAA2B;AAC3B,+BAA+B;AAC/B;;;;;GAKG;AAEH,yDAAkD;AAClD,qDAA8C;AAC9C,iCAAqC;AACrC,+CAAyC;AAEzC,SAAS,KAAK,CAAC,MAAc,EAAE,MAAc;IAC5C,uEAAuE;IACvE,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC;IAChB,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;IACf,GAAG;QACF,uEAAuE;QACvE,kCAAkC;QAClC,EAAE,MAAM,CAAC;QACT,yEAAyE;QACzE,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;KAC1C,QAAQ,KAAK,KAAK,CAAC,CAAC,EAAE;IAEvB,OAAO,MAAM,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,KAAK,UAAU,KAAK,CACnB,QAAkD,EAClD,MAAoB,EACpB,YAAY,GAAG,CAAC;IAEhB,IAAI,YAAY,GAAG,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;IAC3E,MAAM,OAAO,GAAG,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC;IACvE,IAAI,YAAY,IAAI,IA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,EAAE,CAAC,EACtD,YAAY,EACZ,EAAE,EACF,UAAU,EACV,YAAY,EACZ,IAAA,iCAAc,EAAC,UAAU,EAAE,YAAY,EAAE,cAAc,CAAC,CACxD,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC;AAEO,sBAAK;AACb,kBAAe,KAAK,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const AskOnDiscord: React.FC;
3
+ //# sourceMappingURL=AskOnDiscord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AskOnDiscord.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/remotion-overlay/AskOnDiscord.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAGzC,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAKhC,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AskOnDiscord = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const DISCORD_LINK = 'https://discord.gg/6VzzNDwUwV';
6
+ const react_1 = require("react");
7
+ const Button_1 = require("./Button");
8
+ const AskOnDiscord = () => {
9
+ const openInBrowser = (0, react_1.useCallback)(() => {
10
+ window.open(DISCORD_LINK, '_blank');
11
+ }, []);
12
+ return (0, jsx_runtime_1.jsx)(Button_1.Button, Object.assign({ onClick: openInBrowser }, { children: "Ask on Discord" }), void 0);
13
+ };
14
+ exports.AskOnDiscord = AskOnDiscord;
15
+ //# sourceMappingURL=AskOnDiscord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AskOnDiscord.js","sourceRoot":"","sources":["../../../src/error-overlay/remotion-overlay/AskOnDiscord.tsx"],"names":[],"mappings":";;;;AAAA,MAAM,YAAY,GAAG,+BAA+B,CAAC;AAErD,iCAAyC;AACzC,qCAAgC;AAEzB,MAAM,YAAY,GAAa,GAAG,EAAE;IAC1C,MAAM,aAAa,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QACtC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;IACrC,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,uBAAC,eAAM,kBAAC,OAAO,EAAE,aAAa,4CAAyB,CAAC;AAChE,CAAC,CAAC;AALW,QAAA,YAAY,gBAKvB"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const Button: React.FC<{
3
+ onClick: () => void;
4
+ disabled?: boolean;
5
+ }>;
6
+ //# sourceMappingURL=Button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/remotion-overlay/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqB1B,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;IAC7B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB,CAMA,CAAC"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Button = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const INPUT_BORDER_COLOR_UNHOVERED = 'rgba(0, 0, 0, 0.6)';
6
+ const INPUT_BACKGROUND = '#2f363d';
7
+ const button = {
8
+ border: `1px solid ${INPUT_BORDER_COLOR_UNHOVERED}`,
9
+ borderRadius: 4,
10
+ backgroundColor: INPUT_BACKGROUND,
11
+ appearance: 'none',
12
+ fontFamily: 'inherit',
13
+ fontSize: 14,
14
+ color: 'white',
15
+ };
16
+ const buttonContainer = {
17
+ padding: 10,
18
+ cursor: 'pointer',
19
+ fontSize: 14,
20
+ };
21
+ const Button = ({ children, onClick, disabled }) => {
22
+ return ((0, jsx_runtime_1.jsx)("button", Object.assign({ style: button, type: "button", disabled: disabled, onClick: onClick }, { children: (0, jsx_runtime_1.jsx)("div", Object.assign({ style: buttonContainer }, { children: children }), void 0) }), void 0));
23
+ };
24
+ exports.Button = Button;
25
+ //# sourceMappingURL=Button.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../src/error-overlay/remotion-overlay/Button.tsx"],"names":[],"mappings":";;;;AAEA,MAAM,4BAA4B,GAAG,oBAAoB,CAAC;AAC1D,MAAM,gBAAgB,GAAG,SAAS,CAAC;AAEnC,MAAM,MAAM,GAAwB;IACnC,MAAM,EAAE,aAAa,4BAA4B,EAAE;IACnD,YAAY,EAAE,CAAC;IACf,eAAe,EAAE,gBAAgB;IACjC,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,EAAE;IACZ,KAAK,EAAE,OAAO;CACd,CAAC;AAEF,MAAM,eAAe,GAAwB;IAC5C,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,SAAS;IACjB,QAAQ,EAAE,EAAE;CACZ,CAAC;AAEK,MAAM,MAAM,GAGd,CAAC,EAAC,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAC,EAAE,EAAE;IACtC,OAAO,CACN,iDAAQ,KAAK,EAAE,MAAM,EAAE,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,gBACxE,8CAAK,KAAK,EAAE,eAAe,gBAAG,QAAQ,YAAO,YACrC,CACT,CAAC;AACH,CAAC,CAAC;AATW,QAAA,MAAM,UASjB"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { ScriptLine } from '../react-overlay/utils/stack-frame';
3
+ export declare const CodeFrame: React.FC<{
4
+ source: ScriptLine[];
5
+ lineNumberWidth: number;
6
+ }>;
7
+ //# sourceMappingURL=CodeFrame.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeFrame.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/remotion-overlay/CodeFrame.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,oCAAoC,CAAC;AAgB9D,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAChC,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;CACxB,CAyBA,CAAC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodeFrame = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const frame = {
6
+ backgroundColor: '#070707',
7
+ marginBottom: 20,
8
+ };
9
+ const lineNumber = {
10
+ display: 'inline-block',
11
+ whiteSpace: 'pre',
12
+ backgroundColor: '#121212',
13
+ paddingLeft: 10,
14
+ paddingRight: 12,
15
+ marginRight: 12,
16
+ };
17
+ const CodeFrame = ({ source, lineNumberWidth }) => {
18
+ return ((0, jsx_runtime_1.jsx)("div", Object.assign({ style: frame }, { children: source.map((s, j) => {
19
+ return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ style: {
20
+ fontFamily: 'monospace',
21
+ whiteSpace: 'pre',
22
+ tabSize: 2,
23
+ color: s.highlight ? 'white' : 'rgba(255, 255, 255, 0.6)',
24
+ lineHeight: 1.7,
25
+ } }, { children: [(0, jsx_runtime_1.jsx)("div", Object.assign({ style: lineNumber }, { children: String(s.lineNumber).padStart(lineNumberWidth, ' ') }), void 0), s.content] }), j));
26
+ }) }), void 0));
27
+ };
28
+ exports.CodeFrame = CodeFrame;
29
+ //# sourceMappingURL=CodeFrame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CodeFrame.js","sourceRoot":"","sources":["../../../src/error-overlay/remotion-overlay/CodeFrame.tsx"],"names":[],"mappings":";;;;AAGA,MAAM,KAAK,GAAwB;IAClC,eAAe,EAAE,SAAS;IAC1B,YAAY,EAAE,EAAE;CAChB,CAAC;AAEF,MAAM,UAAU,GAAwB;IACvC,OAAO,EAAE,cAAc;IACvB,UAAU,EAAE,KAAK;IACjB,eAAe,EAAE,SAAS;IAC1B,WAAW,EAAE,EAAE;IACf,YAAY,EAAE,EAAE;IAChB,WAAW,EAAE,EAAE;CACf,CAAC;AAEK,MAAM,SAAS,GAGjB,CAAC,EAAC,MAAM,EAAE,eAAe,EAAC,EAAE,EAAE;IAClC,OAAO,CACN,8CAAK,KAAK,EAAE,KAAK,gBACf,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACpB,OAAO,CACN,+CAGC,KAAK,EAAE;oBACN,UAAU,EAAE,WAAW;oBACvB,UAAU,EAAE,KAAK;oBACjB,OAAO,EAAE,CAAC;oBACV,KAAK,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,0BAA0B;oBACzD,UAAU,EAAE,GAAG;iBACf,iBAED,8CAAK,KAAK,EAAE,UAAU,gBACpB,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,eAAe,EAAE,GAAG,CAAC,YAC/C,EACL,CAAC,CAAC,OAAO,MAZL,CAAC,CAaD,CACN,CAAC;QACH,CAAC,CAAC,YACG,CACN,CAAC;AACH,CAAC,CAAC;AA5BW,QAAA,SAAS,aA4BpB"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const DismissButton: React.FC;
3
+ //# sourceMappingURL=DismissButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DismissButton.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/remotion-overlay/DismissButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAe1B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAqBjC,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DismissButton = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const size = {
7
+ height: 20,
8
+ width: 20,
9
+ };
10
+ const style = {
11
+ appearance: 'none',
12
+ WebkitAppearance: 'none',
13
+ backgroundColor: 'transparent',
14
+ border: 'none',
15
+ cursor: 'pointer',
16
+ };
17
+ const DismissButton = () => {
18
+ const dismiss = (0, react_1.useCallback)(() => {
19
+ window.location.href = '/';
20
+ }, []);
21
+ return ((0, jsx_runtime_1.jsx)("button", Object.assign({ type: "button", style: style, onClick: dismiss }, { children: (0, jsx_runtime_1.jsx)("svg", Object.assign({ focusable: "false", role: "img", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 352 512", style: size }, { children: (0, jsx_runtime_1.jsx)("path", { fill: "white", d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" }, void 0) }), void 0) }), void 0));
22
+ };
23
+ exports.DismissButton = DismissButton;
24
+ //# sourceMappingURL=DismissButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DismissButton.js","sourceRoot":"","sources":["../../../src/error-overlay/remotion-overlay/DismissButton.tsx"],"names":[],"mappings":";;;;AAAA,iCAAkC;AAGlC,MAAM,IAAI,GAAwB;IACjC,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,EAAE;CACT,CAAC;AAEF,MAAM,KAAK,GAAwB;IAClC,UAAU,EAAE,MAAM;IAClB,gBAAgB,EAAE,MAAM;IACxB,eAAe,EAAE,aAAa;IAC9B,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,SAAS;CACjB,CAAC;AAEK,MAAM,aAAa,GAAa,GAAG,EAAE;IAC3C,MAAM,OAAO,GAAG,IAAA,mBAAW,EAAC,GAAG,EAAE;QAChC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,GAAG,CAAC;IAC5B,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACN,iDAAQ,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,gBACnD,8CACC,SAAS,EAAC,OAAO,EACjB,IAAI,EAAC,KAAK,EACV,KAAK,EAAC,4BAA4B,EAClC,OAAO,EAAC,aAAa,EACrB,KAAK,EAAE,IAAI,gBAEX,iCACC,IAAI,EAAC,OAAO,EACZ,CAAC,EAAC,iaAAia,WACla,YACG,YACE,CACT,CAAC;AACH,CAAC,CAAC;AArBW,QAAA,aAAa,iBAqBxB"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { ErrorRecord } from '../react-overlay/listen-to-runtime-errors';
3
+ export declare const ErrorDisplay: React.FC<{
4
+ display: ErrorRecord;
5
+ }>;
6
+ //# sourceMappingURL=ErrorDisplay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorDisplay.d.ts","sourceRoot":"","sources":["../../../src/error-overlay/remotion-overlay/ErrorDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,WAAW,EAAC,MAAM,2CAA2C,CAAC;AAoDtE,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IACnC,OAAO,EAAE,WAAW,CAAC;CACrB,CA2CA,CAAC"}