@shriyanss/js-recon 1.0.0 → 1.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/.api_gateway_config.json +1 -0
  2. package/.github/workflows/npm-publish.yml +35 -0
  3. package/.github/workflows/prettier.yaml +44 -0
  4. package/.prettierignore +2 -0
  5. package/.prettierrc +4 -0
  6. package/.resp_cache.json +1 -0
  7. package/.vscode/launch.json +27 -0
  8. package/CHANGELOG.md +40 -0
  9. package/README.md +35 -140
  10. package/build/api_gateway/checkFeasibility.js +32 -0
  11. package/build/api_gateway/checkFeasibility.js.map +1 -0
  12. package/build/api_gateway/checkFireWallBlocking.js +24 -0
  13. package/build/api_gateway/checkFireWallBlocking.js.map +1 -0
  14. package/build/api_gateway/genReq.js +202 -0
  15. package/build/api_gateway/genReq.js.map +1 -0
  16. package/build/api_gateway/index.js +277 -0
  17. package/build/api_gateway/index.js.map +1 -0
  18. package/build/endpoints/gen_report/gen_json.js +22 -0
  19. package/build/endpoints/gen_report/gen_json.js.map +1 -0
  20. package/build/endpoints/gen_report/gen_markdown.js +66 -0
  21. package/build/endpoints/gen_report/gen_markdown.js.map +1 -0
  22. package/build/endpoints/gen_report/utility/iterate_n_store.js +46 -0
  23. package/build/endpoints/gen_report/utility/iterate_n_store.js.map +1 -0
  24. package/build/endpoints/index.js +89 -0
  25. package/build/endpoints/index.js.map +1 -0
  26. package/build/endpoints/next_js/client_jsFilesHref.js +91 -0
  27. package/build/endpoints/next_js/client_jsFilesHref.js.map +1 -0
  28. package/build/endpoints/next_js/client_jsonParse.js +75 -0
  29. package/build/endpoints/next_js/client_jsonParse.js.map +1 -0
  30. package/build/endpoints/next_js/client_subsequentRequests.js +199 -0
  31. package/build/endpoints/next_js/client_subsequentRequests.js.map +1 -0
  32. package/build/endpoints/next_js/getWebpacks.js +45 -0
  33. package/build/endpoints/next_js/getWebpacks.js.map +1 -0
  34. package/build/globalConfig.js +11 -0
  35. package/build/globalConfig.js.map +1 -0
  36. package/build/index.js +166 -0
  37. package/build/index.js.map +1 -0
  38. package/build/lazyLoad/downloadFilesUtil.js +128 -0
  39. package/build/lazyLoad/downloadFilesUtil.js.map +1 -0
  40. package/build/lazyLoad/downloadLoadedJsUtil.js +51 -0
  41. package/build/lazyLoad/downloadLoadedJsUtil.js.map +1 -0
  42. package/build/lazyLoad/globals.js +25 -0
  43. package/build/lazyLoad/globals.js.map +1 -0
  44. package/build/lazyLoad/index.js +171 -0
  45. package/build/lazyLoad/index.js.map +1 -0
  46. package/build/lazyLoad/next_js/next_GetJSScript.js +94 -0
  47. package/build/lazyLoad/next_js/next_GetJSScript.js.map +1 -0
  48. package/build/lazyLoad/next_js/next_GetLazyResources.js +202 -0
  49. package/build/lazyLoad/next_js/next_GetLazyResources.js.map +1 -0
  50. package/build/lazyLoad/next_js/next_SubsequentRequests.js +120 -0
  51. package/build/lazyLoad/next_js/next_SubsequentRequests.js.map +1 -0
  52. package/build/lazyLoad/nuxt_js/nuxt_astParse.js +188 -0
  53. package/build/lazyLoad/nuxt_js/nuxt_astParse.js.map +1 -0
  54. package/build/lazyLoad/nuxt_js/nuxt_getFromPageSource.js +75 -0
  55. package/build/lazyLoad/nuxt_js/nuxt_getFromPageSource.js.map +1 -0
  56. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js +94 -0
  57. package/build/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js.map +1 -0
  58. package/build/lazyLoad/svelte/svelte_getFromPageSource.js +68 -0
  59. package/build/lazyLoad/svelte/svelte_getFromPageSource.js.map +1 -0
  60. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js +95 -0
  61. package/build/lazyLoad/svelte/svelte_stringAnalysisJSFiles.js.map +1 -0
  62. package/build/map/index.js +58 -0
  63. package/build/map/index.js.map +1 -0
  64. package/build/map/next_js/getFetchInstances.js +105 -0
  65. package/build/map/next_js/getFetchInstances.js.map +1 -0
  66. package/build/map/next_js/getWebpackConnections.js +224 -0
  67. package/build/map/next_js/getWebpackConnections.js.map +1 -0
  68. package/build/map/next_js/interactive.js +32 -0
  69. package/build/map/next_js/interactive.js.map +1 -0
  70. package/build/map/next_js/interactive_helpers/commandHandler.js +190 -0
  71. package/build/map/next_js/interactive_helpers/commandHandler.js.map +1 -0
  72. package/build/map/next_js/interactive_helpers/commandHelpers.js +91 -0
  73. package/build/map/next_js/interactive_helpers/commandHelpers.js.map +1 -0
  74. package/build/map/next_js/interactive_helpers/helpMenu.js +11 -0
  75. package/build/map/next_js/interactive_helpers/helpMenu.js.map +1 -0
  76. package/build/map/next_js/interactive_helpers/keybindings.js +80 -0
  77. package/build/map/next_js/interactive_helpers/keybindings.js.map +1 -0
  78. package/build/map/next_js/interactive_helpers/printer.js +17 -0
  79. package/build/map/next_js/interactive_helpers/printer.js.map +1 -0
  80. package/build/map/next_js/interactive_helpers/ui.js +81 -0
  81. package/build/map/next_js/interactive_helpers/ui.js.map +1 -0
  82. package/build/map/next_js/resolveFetch.js +201 -0
  83. package/build/map/next_js/resolveFetch.js.map +1 -0
  84. package/build/run/index.js +62 -0
  85. package/build/run/index.js.map +1 -0
  86. package/build/strings/index.js +235 -0
  87. package/build/strings/index.js.map +1 -0
  88. package/build/strings/openapi.js +55 -0
  89. package/build/strings/openapi.js.map +1 -0
  90. package/build/strings/permutate.js +55 -0
  91. package/build/strings/permutate.js.map +1 -0
  92. package/build/strings/secrets.js +89 -0
  93. package/build/strings/secrets.js.map +1 -0
  94. package/build/techDetect/index.js +224 -0
  95. package/build/techDetect/index.js.map +1 -0
  96. package/build/utility/ai.js +69 -0
  97. package/build/utility/ai.js.map +1 -0
  98. package/build/utility/globals.js +84 -0
  99. package/build/utility/globals.js.map +1 -0
  100. package/build/utility/interfaces.js +2 -0
  101. package/build/utility/interfaces.js.map +1 -0
  102. package/build/utility/makeReq.js +265 -0
  103. package/build/utility/makeReq.js.map +1 -0
  104. package/build/utility/resolvePath.js +44 -0
  105. package/build/utility/resolvePath.js.map +1 -0
  106. package/{utility → build/utility}/runSandboxed.js +10 -13
  107. package/build/utility/runSandboxed.js.map +1 -0
  108. package/{utility → build/utility}/urlUtils.js +9 -11
  109. package/build/utility/urlUtils.js.map +1 -0
  110. package/docs/README.md +20 -0
  111. package/docs/api-gateway.md +68 -0
  112. package/docs/endpoints.md +49 -0
  113. package/docs/example-scenario.md +258 -0
  114. package/docs/interactive-mode.md +76 -0
  115. package/docs/lazyload.md +56 -0
  116. package/docs/map.md +53 -0
  117. package/docs/run.md +54 -0
  118. package/docs/strings.md +75 -0
  119. package/endpoints.json +77 -0
  120. package/extracted_urls-openapi.json +225 -0
  121. package/extracted_urls-swagger.json +225 -0
  122. package/extracted_urls.json +47 -0
  123. package/extracted_urls.txt +296 -0
  124. package/mapped.json +3413 -0
  125. package/output/ss0x00.com/_next/data/k7xKVnxmboK4SktY2dZWt/index.json +971 -0
  126. package/output/ss0x00.com/_next/static/chunks/12.7e6d2ac6e1808fc2.js +247 -0
  127. package/output/ss0x00.com/_next/static/chunks/128.160aa801ef0445bc.js +1074 -0
  128. package/output/ss0x00.com/_next/static/chunks/132.55df84f7707fc278.js +102 -0
  129. package/output/ss0x00.com/_next/static/chunks/142.77038c55d9ec10ba.js +96 -0
  130. package/output/ss0x00.com/_next/static/chunks/215.321479e91d330bfa.js +228 -0
  131. package/output/ss0x00.com/_next/static/chunks/229.097c396d86b4a882.js +458 -0
  132. package/output/ss0x00.com/_next/static/chunks/257.5fd052aa4ef06ef9.js +1327 -0
  133. package/output/ss0x00.com/_next/static/chunks/268.72cb3779f66db70b.js +10520 -0
  134. package/output/ss0x00.com/_next/static/chunks/320.57d528b0e9bf86f0.js +186 -0
  135. package/output/ss0x00.com/_next/static/chunks/325.302a44b604c35f17.js +88 -0
  136. package/output/ss0x00.com/_next/static/chunks/328.e4a0307a4fddf318.js +248 -0
  137. package/output/ss0x00.com/_next/static/chunks/432.3621f17504ef18f2.js +443 -0
  138. package/output/ss0x00.com/_next/static/chunks/44.e90dd963003a3d43.js +1094 -0
  139. package/output/ss0x00.com/_next/static/chunks/442.8c054f100f9e5e50.js +1082 -0
  140. package/output/ss0x00.com/_next/static/chunks/460.f8db9a5142598e2c.js +466 -0
  141. package/output/ss0x00.com/_next/static/chunks/487.05ca55420459c002.js +78 -0
  142. package/output/ss0x00.com/_next/static/chunks/567.1909a6b0a920114b.js +1374 -0
  143. package/output/ss0x00.com/_next/static/chunks/586.802fc9214d87fb29.js +752 -0
  144. package/output/ss0x00.com/_next/static/chunks/620.a2a3a6b94d30a4c8.js +1037 -0
  145. package/output/ss0x00.com/_next/static/chunks/642.6b3e487c9604cbb8.js +1628 -0
  146. package/output/ss0x00.com/_next/static/chunks/673.e5d77887e5c6a68c.js +1045 -0
  147. package/output/ss0x00.com/_next/static/chunks/684.8b8e52baca70524b.js +96 -0
  148. package/output/ss0x00.com/_next/static/chunks/686.79480519e5ccfb77.js +296 -0
  149. package/output/ss0x00.com/_next/static/chunks/756.7a3878a2e6765be7.js +504 -0
  150. package/output/ss0x00.com/_next/static/chunks/761.7bea7516c5d22b2a.js +1485 -0
  151. package/output/ss0x00.com/_next/static/chunks/794.e079ef369b41a3c5.js +1350 -0
  152. package/output/ss0x00.com/_next/static/chunks/826.31ba213e1d023c68.js +1031 -0
  153. package/output/ss0x00.com/_next/static/chunks/847.d8397a73efc81848.js +1068 -0
  154. package/output/ss0x00.com/_next/static/chunks/848.5feaeee1e2624aea.js +132 -0
  155. package/output/ss0x00.com/_next/static/chunks/850.ecc7c3c3d787ee03.js +1472 -0
  156. package/output/ss0x00.com/_next/static/chunks/853.50b9eb60b7d0e83c.js +1472 -0
  157. package/output/ss0x00.com/_next/static/chunks/856.7a7bb6c3c7bfc2ba.js +1320 -0
  158. package/output/ss0x00.com/_next/static/chunks/859.df4bd45c03a65f53.js +1306 -0
  159. package/output/ss0x00.com/_next/static/chunks/867.e8633955a147c978.js +541 -0
  160. package/output/ss0x00.com/_next/static/chunks/921.c3123f20a4c8d53c.js +96 -0
  161. package/output/ss0x00.com/_next/static/chunks/932.25cb421c466c99cb.js +999 -0
  162. package/output/ss0x00.com/_next/static/chunks/framework-64ad27b21261a9ce.js +9189 -0
  163. package/output/ss0x00.com/_next/static/chunks/main-710ab85aa9a8f10d.js +6583 -0
  164. package/output/ss0x00.com/_next/static/chunks/pages/5D-af5a23529ce3c337.js +486 -0
  165. package/output/ss0x00.com/_next/static/chunks/pages/_app-c449865c8af1faa0.js +39 -0
  166. package/output/ss0x00.com/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js +6383 -0
  167. package/output/ss0x00.com/_next/static/chunks/webpack-efff35ee26971294.js +271 -0
  168. package/output/ss0x00.com/_next/static/k7xKVnxmboK4SktY2dZWt/_buildManifest.js +8 -0
  169. package/output/ss0x00.com/_next/static/k7xKVnxmboK4SktY2dZWt/_ssgManifest.js +3 -0
  170. package/output/ss0x00.com/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js +82 -0
  171. package/package.json +50 -38
  172. package/strings.json +7407 -0
  173. package/api_gateway/checkFeasibility.js +0 -25
  174. package/api_gateway/checkFireWallBlocking.js +0 -17
  175. package/api_gateway/genReq.js +0 -214
  176. package/api_gateway/index.js +0 -325
  177. package/endpoints/index.js +0 -7
  178. package/globalConfig.js +0 -12
  179. package/index.js +0 -69
  180. package/lazyLoad/downloadFilesUtil.js +0 -122
  181. package/lazyLoad/downloadLoadedJsUtil.js +0 -54
  182. package/lazyLoad/globals.js +0 -15
  183. package/lazyLoad/index.js +0 -167
  184. package/lazyLoad/next_js/next_GetJSScript.js +0 -99
  185. package/lazyLoad/next_js/next_GetLazyResources.js +0 -201
  186. package/lazyLoad/next_js/next_SubsequentRequests.js +0 -138
  187. package/lazyLoad/nuxt_js/nuxt_astParse.js +0 -194
  188. package/lazyLoad/nuxt_js/nuxt_getFromPageSource.js +0 -77
  189. package/lazyLoad/nuxt_js/nuxt_stringAnalysisJSFiles.js +0 -99
  190. package/research/firewall_bypass.md +0 -38
  191. package/research/next_js.md +0 -116
  192. package/research/nuxt_js.md +0 -125
  193. package/research/vue_js.md +0 -9
  194. package/strings/index.js +0 -145
  195. package/techDetect/index.js +0 -156
  196. package/utility/globals.js +0 -6
  197. package/utility/makeReq.js +0 -179
  198. package/utility/resolvePath.js +0 -43
@@ -0,0 +1,102 @@
1
+ // JS Source: https://ss0x00.com/_next/static/chunks/132.55df84f7707fc278.js
2
+ (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
3
+ [132],
4
+ {
5
+ 8132: function (r, t, e) {
6
+ "use strict";
7
+ (e.r(t),
8
+ e.d(t, {
9
+ default: function () {
10
+ return i;
11
+ },
12
+ }));
13
+ var n = e(5893);
14
+ e(7294);
15
+ var l = e(3967),
16
+ o = e.n(l);
17
+ function i(r) {
18
+ let {
19
+ name: t,
20
+ label: e,
21
+ hideLabel: l,
22
+ defaultValue: i,
23
+ options: a = [],
24
+ isRequired: u,
25
+ width: s = "full",
26
+ } = r,
27
+ c = "".concat(t, "-label"),
28
+ f = {};
29
+ return (
30
+ e && (f["aria-labelledby"] = c),
31
+ u && (f.required = !0),
32
+ (0, n.jsxs)("div", {
33
+ className: o()("sb-form-control", {
34
+ "sb-form-control-full": "full" === s,
35
+ }),
36
+ children: [
37
+ e &&
38
+ (0, n.jsx)("label", {
39
+ id: c,
40
+ className: o()("sb-label", { "sr-only": l }),
41
+ htmlFor: t,
42
+ children: e,
43
+ }),
44
+ (0, n.jsxs)("select", {
45
+ id: t,
46
+ className: "sb-select",
47
+ name: t,
48
+ ...f,
49
+ children: [
50
+ i && (0, n.jsx)("option", { value: "", children: i }),
51
+ a.length > 0 &&
52
+ a.map((r, t) =>
53
+ (0, n.jsx)("option", { value: r, children: r }, t),
54
+ ),
55
+ ],
56
+ }),
57
+ ],
58
+ })
59
+ );
60
+ }
61
+ },
62
+ 3967: function (r, t) {
63
+ var e;
64
+ !(function () {
65
+ "use strict";
66
+ var n = {}.hasOwnProperty;
67
+ function l() {
68
+ for (var r = "", t = 0; t < arguments.length; t++) {
69
+ var e = arguments[t];
70
+ e &&
71
+ (r = o(
72
+ r,
73
+ (function (r) {
74
+ if ("string" == typeof r || "number" == typeof r) return r;
75
+ if ("object" != typeof r) return "";
76
+ if (Array.isArray(r)) return l.apply(null, r);
77
+ if (
78
+ r.toString !== Object.prototype.toString &&
79
+ !r.toString.toString().includes("[native code]")
80
+ )
81
+ return r.toString();
82
+ var t = "";
83
+ for (var e in r) n.call(r, e) && r[e] && (t = o(t, e));
84
+ return t;
85
+ })(e),
86
+ ));
87
+ }
88
+ return r;
89
+ }
90
+ function o(r, t) {
91
+ return t ? (r ? r + " " + t : r + t) : r;
92
+ }
93
+ r.exports
94
+ ? ((l.default = l), (r.exports = l))
95
+ : void 0 !==
96
+ (e = function () {
97
+ return l;
98
+ }.apply(t, [])) && (r.exports = e);
99
+ })();
100
+ },
101
+ },
102
+ ]);
@@ -0,0 +1,96 @@
1
+ // JS Source: https://ss0x00.com/_next/static/chunks/142.77038c55d9ec10ba.js
2
+ (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
3
+ [142],
4
+ {
5
+ 4142: function (r, t, e) {
6
+ "use strict";
7
+ (e.r(t),
8
+ e.d(t, {
9
+ default: function () {
10
+ return a;
11
+ },
12
+ }));
13
+ var n = e(5893);
14
+ e(7294);
15
+ var l = e(3967),
16
+ o = e.n(l);
17
+ function a(r) {
18
+ let {
19
+ name: t,
20
+ label: e,
21
+ hideLabel: l,
22
+ placeholder: a,
23
+ isRequired: i,
24
+ width: u = "full",
25
+ } = r,
26
+ s = "".concat(t, "-label"),
27
+ c = {};
28
+ return (
29
+ e && (c["aria-labelledby"] = s),
30
+ i && (c.required = !0),
31
+ a && (c.placeholder = a),
32
+ (0, n.jsxs)("div", {
33
+ className: o()("sb-form-control", {
34
+ "sb-form-control-full": "full" === u,
35
+ }),
36
+ children: [
37
+ e &&
38
+ (0, n.jsx)("label", {
39
+ id: s,
40
+ className: o()("sb-label", { "sr-only": l }),
41
+ htmlFor: t,
42
+ children: e,
43
+ }),
44
+ (0, n.jsx)("textarea", {
45
+ id: t,
46
+ className: "sb-textarea",
47
+ name: t,
48
+ rows: "5",
49
+ ...c,
50
+ }),
51
+ ],
52
+ })
53
+ );
54
+ }
55
+ },
56
+ 3967: function (r, t) {
57
+ var e;
58
+ !(function () {
59
+ "use strict";
60
+ var n = {}.hasOwnProperty;
61
+ function l() {
62
+ for (var r = "", t = 0; t < arguments.length; t++) {
63
+ var e = arguments[t];
64
+ e &&
65
+ (r = o(
66
+ r,
67
+ (function (r) {
68
+ if ("string" == typeof r || "number" == typeof r) return r;
69
+ if ("object" != typeof r) return "";
70
+ if (Array.isArray(r)) return l.apply(null, r);
71
+ if (
72
+ r.toString !== Object.prototype.toString &&
73
+ !r.toString.toString().includes("[native code]")
74
+ )
75
+ return r.toString();
76
+ var t = "";
77
+ for (var e in r) n.call(r, e) && r[e] && (t = o(t, e));
78
+ return t;
79
+ })(e),
80
+ ));
81
+ }
82
+ return r;
83
+ }
84
+ function o(r, t) {
85
+ return t ? (r ? r + " " + t : r + t) : r;
86
+ }
87
+ r.exports
88
+ ? ((l.default = l), (r.exports = l))
89
+ : void 0 !==
90
+ (e = function () {
91
+ return l;
92
+ }.apply(t, [])) && (r.exports = e);
93
+ })();
94
+ },
95
+ },
96
+ ]);
@@ -0,0 +1,228 @@
1
+ // JS Source: https://ss0x00.com/_next/static/chunks/215.321479e91d330bfa.js
2
+ (self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
3
+ [215],
4
+ {
5
+ 1215: function (t, e, l) {
6
+ "use strict";
7
+ (l.r(e),
8
+ l.d(e, {
9
+ default: function () {
10
+ return s;
11
+ },
12
+ }));
13
+ var r = l(5893);
14
+ l(7294);
15
+ var i = l(3967),
16
+ o = l.n(i);
17
+ function n(t) {
18
+ return t.includes("?")
19
+ ? t.split("?")[0]
20
+ : t.includes("/")
21
+ ? t.split("/")[0]
22
+ : t.includes("&")
23
+ ? t.split("&")[0]
24
+ : t;
25
+ }
26
+ let u = {
27
+ youtube: function (t) {
28
+ let { id: e, autoplay: l, loop: i, muted: o, controls: n } = t,
29
+ u = {};
30
+ ((u.autoplay = l ? "1" : "0"),
31
+ (u.controls = n ? "1" : "0"),
32
+ (u.loop = i ? "1" : "0"),
33
+ (u.mute = o ? "1" : "0"));
34
+ let s = new URLSearchParams(u).toString();
35
+ return (0, r.jsx)("iframe", {
36
+ src: "https://www.youtube.com/embed/".concat(e, "?").concat(s),
37
+ title: "YouTube video player",
38
+ frameBorder: "0",
39
+ allow:
40
+ "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
41
+ allowFullScreen: !0,
42
+ className: "absolute left-0 top-0 h-full w-full",
43
+ });
44
+ },
45
+ vimeo: function (t) {
46
+ let { id: e, autoplay: l, loop: i, muted: o, controls: n } = t,
47
+ u = {};
48
+ ((u.autoplay = l ? "1" : "0"),
49
+ (u.controls = n ? "1" : "0"),
50
+ (u.loop = i ? "1" : "0"),
51
+ (u.muted = o ? "1" : "0"),
52
+ (u.transparent = "0"));
53
+ let s = new URLSearchParams(u).toString();
54
+ return (0, r.jsx)("iframe", {
55
+ src: "https://player.vimeo.com/video/".concat(e, "?").concat(s),
56
+ title: "Vimeo video player",
57
+ frameBorder: "0",
58
+ allowFullScreen: !0,
59
+ className: "absolute left-0 top-0 h-full w-full",
60
+ });
61
+ },
62
+ custom: function (t) {
63
+ let { id: e, autoplay: l, loop: i, muted: o, controls: n } = t;
64
+ return (0, r.jsx)("video", {
65
+ ...(l && { autoPlay: !0 }),
66
+ ...(i && { loop: !0 }),
67
+ ...(o && { muted: !0 }),
68
+ ...(n && { controls: !0 }),
69
+ playsInline: !0,
70
+ className: "absolute left-0 top-0 h-full w-full",
71
+ children: (0, r.jsx)("source", { src: e, type: "video/mp4" }),
72
+ });
73
+ },
74
+ };
75
+ function s(t) {
76
+ var e;
77
+ let l;
78
+ let {
79
+ elementId: i,
80
+ className: s,
81
+ url: c,
82
+ aspectRatio: p = "16:9",
83
+ autoplay: a,
84
+ loop: f,
85
+ muted: d,
86
+ controls: m = !0,
87
+ } = t;
88
+ if (!c) return null;
89
+ let v =
90
+ ((e = c),
91
+ (l = { id: null, service: null }),
92
+ /youtube|youtu\.be|y2u\.be|i.ytimg\./.test(e)
93
+ ? (l = {
94
+ id: (function (t) {
95
+ let e = t;
96
+ e = (e = e.replace(/#t=.*$/, "")).replace(
97
+ /^https?:\/\//,
98
+ "",
99
+ );
100
+ let l = /youtube:\/\/|youtu\.be\/|y2u\.be\//g;
101
+ if (l.test(e)) return n(e.split(l)[1]);
102
+ let r = /\/v\/|\/vi\//g;
103
+ if (r.test(e)) return n(e.split(r)[1]);
104
+ let i = /v=|vi=/g;
105
+ if (i.test(e)) return n(e.split(i)[1].split("&")[0]);
106
+ let o = /\/an_webp\//g;
107
+ if (o.test(e)) return n(e.split(o)[1]);
108
+ let u = /\/e\//g;
109
+ if (u.test(e)) return n(e.split(u)[1]);
110
+ let s = /\/embed\//g;
111
+ if (s.test(e)) return n(e.split(s)[1]);
112
+ if (/\/user\/([a-zA-Z\d]*)$/g.test(e)) return;
113
+ if (/\/user\/(?!.*videos)/g.test(e))
114
+ return n(e.split("/").pop());
115
+ let c = /\/attribution_link\?.*v%3D([^%&]*)(%26|&|$)/;
116
+ if (c.test(e)) return n(e.match(c)[1]);
117
+ })(
118
+ (e = (e = e.replace("/www.", "/")).replace(
119
+ "-nocookie",
120
+ "",
121
+ )),
122
+ ),
123
+ service: "youtube",
124
+ })
125
+ : /vimeo/.test(e)
126
+ ? (l = {
127
+ id: (function (t) {
128
+ let e,
129
+ l,
130
+ r = t;
131
+ (r.includes("#") && ([r] = r.split("#")),
132
+ r.includes("?") &&
133
+ !r.includes("clip_id=") &&
134
+ ([r] = r.split("?")));
135
+ let i = /https?:\/\/vimeo\.com\/event\/(\d+)$/.exec(r);
136
+ if (i && i[1]) return i[1];
137
+ let o = /https?:\/\/vimeo\.com\/(\d+)/.exec(r);
138
+ return o && o[1]
139
+ ? o[1]
140
+ : (RegExp(
141
+ "https?://player.vimeo.com/video/[0-9]+$|https?://vimeo.com/channels|groups|album",
142
+ "gim",
143
+ ).test(r)
144
+ ? (l = r.split("/")) &&
145
+ l.length > 0 &&
146
+ (e = l.pop())
147
+ : /clip_id=/gim.test(r) &&
148
+ (l = r.split("clip_id=")) &&
149
+ l.length > 0 &&
150
+ ([e] = l[1].split("&")),
151
+ e);
152
+ })((e = e.replace("/www.", "/"))),
153
+ service: "vimeo",
154
+ })
155
+ : /\.mp4/.test(e) && (l = { id: e, service: "custom" }),
156
+ l),
157
+ y = u[v.service];
158
+ return (0, r.jsx)("div", {
159
+ id: i || null,
160
+ className: o()(
161
+ "sb-component",
162
+ "sb-component-block",
163
+ "sb-component-video-block",
164
+ s,
165
+ "overflow-hidden",
166
+ "relative",
167
+ "w-full",
168
+ "h-0",
169
+ { "pt-3/4": "4:3" === p, "pt-9/16": "16:9" === p },
170
+ ),
171
+ children:
172
+ v.id && y
173
+ ? (0, r.jsx)(y, {
174
+ id: v.id,
175
+ autoplay: a,
176
+ loop: f,
177
+ muted: d,
178
+ controls: m,
179
+ })
180
+ : (0, r.jsx)("p", {
181
+ className:
182
+ "absolute italic left-0 text-center top-1/2 -translate-y-1/2 w-full",
183
+ children: "Video URL is not supported.",
184
+ }),
185
+ });
186
+ }
187
+ },
188
+ 3967: function (t, e) {
189
+ var l;
190
+ !(function () {
191
+ "use strict";
192
+ var r = {}.hasOwnProperty;
193
+ function i() {
194
+ for (var t = "", e = 0; e < arguments.length; e++) {
195
+ var l = arguments[e];
196
+ l &&
197
+ (t = o(
198
+ t,
199
+ (function (t) {
200
+ if ("string" == typeof t || "number" == typeof t) return t;
201
+ if ("object" != typeof t) return "";
202
+ if (Array.isArray(t)) return i.apply(null, t);
203
+ if (
204
+ t.toString !== Object.prototype.toString &&
205
+ !t.toString.toString().includes("[native code]")
206
+ )
207
+ return t.toString();
208
+ var e = "";
209
+ for (var l in t) r.call(t, l) && t[l] && (e = o(e, l));
210
+ return e;
211
+ })(l),
212
+ ));
213
+ }
214
+ return t;
215
+ }
216
+ function o(t, e) {
217
+ return e ? (t ? t + " " + e : t + e) : t;
218
+ }
219
+ t.exports
220
+ ? ((i.default = i), (t.exports = i))
221
+ : void 0 !==
222
+ (l = function () {
223
+ return i;
224
+ }.apply(e, [])) && (t.exports = l);
225
+ })();
226
+ },
227
+ },
228
+ ]);