@intlayer/design-system 2.0.2

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 (252) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/.vite/manifest.json +953 -0
  4. package/dist/MarkDownRender-BeQGOIow.cjs +14 -0
  5. package/dist/MarkDownRender-gURA8GAt.js +315 -0
  6. package/dist/StringWrapper-CW70GPXq.js +28 -0
  7. package/dist/StringWrapper-DUDqtkwz.cjs +1 -0
  8. package/dist/check-BLEiR8OY.js +12 -0
  9. package/dist/check-rhNgx2ZQ.cjs +6 -0
  10. package/dist/components/Accordion/Accordion.cjs.js +8 -0
  11. package/dist/components/Accordion/Accordion.d.ts +10 -0
  12. package/dist/components/Accordion/Accordion.es.js +48 -0
  13. package/dist/components/Accordion/index.cjs.js +1 -0
  14. package/dist/components/Accordion/index.d.ts +1 -0
  15. package/dist/components/Accordion/index.es.js +5 -0
  16. package/dist/components/Avatar/index.cjs.js +6 -0
  17. package/dist/components/Avatar/index.d.ts +9 -0
  18. package/dist/components/Avatar/index.es.js +71 -0
  19. package/dist/components/Button/index.cjs.js +6 -0
  20. package/dist/components/Button/index.d.ts +22 -0
  21. package/dist/components/Button/index.es.js +306 -0
  22. package/dist/components/Container/index.cjs.js +7 -0
  23. package/dist/components/Container/index.d.ts +23 -0
  24. package/dist/components/Container/index.es.js +152 -0
  25. package/dist/components/ContentEditor/ContentEditor.cjs.js +5 -0
  26. package/dist/components/ContentEditor/ContentEditor.d.ts +8 -0
  27. package/dist/components/ContentEditor/ContentEditor.es.js +75 -0
  28. package/dist/components/ContentEditor/index.cjs.js +1 -0
  29. package/dist/components/ContentEditor/index.d.ts +1 -0
  30. package/dist/components/ContentEditor/index.es.js +5 -0
  31. package/dist/components/ContentSelector/ContentSelector.cjs.js +1 -0
  32. package/dist/components/ContentSelector/ContentSelector.d.ts +11 -0
  33. package/dist/components/ContentSelector/ContentSelector.es.js +14 -0
  34. package/dist/components/ContentSelector/index.cjs.js +1 -0
  35. package/dist/components/ContentSelector/index.d.ts +1 -0
  36. package/dist/components/ContentSelector/index.es.js +5 -0
  37. package/dist/components/DictionaryEditor/DictionaryEditor.cjs.js +1 -0
  38. package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +20 -0
  39. package/dist/components/DictionaryEditor/DictionaryEditor.es.js +25 -0
  40. package/dist/components/DictionaryEditor/ItemLayout.cjs.js +1 -0
  41. package/dist/components/DictionaryEditor/ItemLayout.d.ts +16 -0
  42. package/dist/components/DictionaryEditor/ItemLayout.es.js +81 -0
  43. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.js +1 -0
  44. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +9 -0
  45. package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.es.js +10 -0
  46. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs.js +1 -0
  47. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +9 -0
  48. package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.es.js +9 -0
  49. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.js +1 -0
  50. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +9 -0
  51. package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.es.js +9 -0
  52. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.js +1 -0
  53. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts +8 -0
  54. package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.es.js +9 -0
  55. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs.js +1 -0
  56. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +9 -0
  57. package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.es.js +7 -0
  58. package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.js +1 -0
  59. package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +19 -0
  60. package/dist/components/DictionaryEditor/NodeWrapper/index.es.js +9 -0
  61. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.js +1 -0
  62. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +10 -0
  63. package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.es.js +40 -0
  64. package/dist/components/DictionaryEditor/index.cjs.js +1 -0
  65. package/dist/components/DictionaryEditor/index.d.ts +1 -0
  66. package/dist/components/DictionaryEditor/index.es.js +5 -0
  67. package/dist/components/DropDown/index.cjs.js +5 -0
  68. package/dist/components/DropDown/index.d.ts +3 -0
  69. package/dist/components/DropDown/index.es.js +50 -0
  70. package/dist/components/DropDown/types.cjs.js +1 -0
  71. package/dist/components/DropDown/types.d.ts +15 -0
  72. package/dist/components/DropDown/types.es.js +1 -0
  73. package/dist/components/Footer/index.cjs.js +1 -0
  74. package/dist/components/Footer/index.d.ts +17 -0
  75. package/dist/components/Footer/index.es.js +64 -0
  76. package/dist/components/Headers/index.cjs.js +1 -0
  77. package/dist/components/Headers/index.d.ts +5 -0
  78. package/dist/components/Headers/index.es.js +35 -0
  79. package/dist/components/IDE/CodeRender.cjs.js +11 -0
  80. package/dist/components/IDE/CodeRender.d.ts +10 -0
  81. package/dist/components/IDE/CodeRender.es.js +833 -0
  82. package/dist/components/IDE/IDE.cjs.js +1 -0
  83. package/dist/components/IDE/IDE.d.ts +10 -0
  84. package/dist/components/IDE/IDE.es.js +124 -0
  85. package/dist/components/IDE/MarkDownRender.cjs.js +1 -0
  86. package/dist/components/IDE/MarkDownRender.d.ts +8 -0
  87. package/dist/components/IDE/MarkDownRender.es.js +7 -0
  88. package/dist/components/IDE/index.cjs.js +1 -0
  89. package/dist/components/IDE/index.d.ts +2 -0
  90. package/dist/components/IDE/index.es.js +7 -0
  91. package/dist/components/Loader/index.cjs.js +1 -0
  92. package/dist/components/Loader/index.d.ts +6 -0
  93. package/dist/components/Loader/index.es.js +21 -0
  94. package/dist/components/Loader/spinner.cjs.js +1 -0
  95. package/dist/components/Loader/spinner.d.ts +7 -0
  96. package/dist/components/Loader/spinner.es.js +22 -0
  97. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.js +6 -0
  98. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +11 -0
  99. package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.es.js +571 -0
  100. package/dist/components/LocaleSwitcherDropDown/index.cjs.js +1 -0
  101. package/dist/components/LocaleSwitcherDropDown/index.d.ts +1 -0
  102. package/dist/components/LocaleSwitcherDropDown/index.es.js +5 -0
  103. package/dist/components/Logo/LogoCircle.cjs.js +1 -0
  104. package/dist/components/Logo/LogoCircle.d.ts +4 -0
  105. package/dist/components/Logo/LogoCircle.es.js +12 -0
  106. package/dist/components/Logo/LogoNoFrame.cjs.js +1 -0
  107. package/dist/components/Logo/LogoNoFrame.d.ts +4 -0
  108. package/dist/components/Logo/LogoNoFrame.es.js +28 -0
  109. package/dist/components/Logo/LogoSquare.cjs.js +1 -0
  110. package/dist/components/Logo/LogoSquare.d.ts +4 -0
  111. package/dist/components/Logo/LogoSquare.es.js +12 -0
  112. package/dist/components/Logo/LogoSquircle.cjs.js +1 -0
  113. package/dist/components/Logo/LogoSquircle.d.ts +4 -0
  114. package/dist/components/Logo/LogoSquircle.es.js +17 -0
  115. package/dist/components/Logo/LogoTextOnly.cjs.js +1 -0
  116. package/dist/components/Logo/LogoTextOnly.d.ts +4 -0
  117. package/dist/components/Logo/LogoTextOnly.es.js +28 -0
  118. package/dist/components/Logo/LogoWithTextBelowCircle.cjs.js +1 -0
  119. package/dist/components/Logo/LogoWithTextBelowCircle.d.ts +4 -0
  120. package/dist/components/Logo/LogoWithTextBelowCircle.es.js +30 -0
  121. package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.js +1 -0
  122. package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts +4 -0
  123. package/dist/components/Logo/LogoWithTextBelowNoFrame.es.js +28 -0
  124. package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.js +1 -0
  125. package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts +4 -0
  126. package/dist/components/Logo/LogoWithTextBelowSquircle.es.js +17 -0
  127. package/dist/components/Logo/LogoWithTextCircle.cjs.js +1 -0
  128. package/dist/components/Logo/LogoWithTextCircle.d.ts +4 -0
  129. package/dist/components/Logo/LogoWithTextCircle.es.js +51 -0
  130. package/dist/components/Logo/LogoWithTextNoFrame.cjs.js +1 -0
  131. package/dist/components/Logo/LogoWithTextNoFrame.d.ts +4 -0
  132. package/dist/components/Logo/LogoWithTextNoFrame.es.js +28 -0
  133. package/dist/components/Logo/LogoWithTextSquircle.cjs.js +1 -0
  134. package/dist/components/Logo/LogoWithTextSquircle.d.ts +4 -0
  135. package/dist/components/Logo/LogoWithTextSquircle.es.js +17 -0
  136. package/dist/components/Logo/index.cjs.js +1 -0
  137. package/dist/components/Logo/index.d.ts +20 -0
  138. package/dist/components/Logo/index.es.js +65 -0
  139. package/dist/components/MarkDownRender/index.cjs.js +1 -0
  140. package/dist/components/MarkDownRender/index.d.ts +8 -0
  141. package/dist/components/MarkDownRender/index.es.js +84 -0
  142. package/dist/components/MaxHeightSmoother/index.cjs.js +6 -0
  143. package/dist/components/MaxHeightSmoother/index.d.ts +11 -0
  144. package/dist/components/MaxHeightSmoother/index.es.js +52 -0
  145. package/dist/components/MaxWidthSmoother/index.cjs.js +6 -0
  146. package/dist/components/MaxWidthSmoother/index.d.ts +11 -0
  147. package/dist/components/MaxWidthSmoother/index.es.js +39 -0
  148. package/dist/components/Modal/index.cjs.js +1 -0
  149. package/dist/components/Modal/index.d.ts +9 -0
  150. package/dist/components/Modal/index.es.js +64 -0
  151. package/dist/components/Navbar/Burger.cjs.js +1 -0
  152. package/dist/components/Navbar/Burger.d.ts +7 -0
  153. package/dist/components/Navbar/Burger.es.js +84 -0
  154. package/dist/components/Navbar/DesktopNavbar.cjs.js +7 -0
  155. package/dist/components/Navbar/DesktopNavbar.d.ts +10 -0
  156. package/dist/components/Navbar/DesktopNavbar.es.js +76 -0
  157. package/dist/components/Navbar/MobileNavbar.cjs.js +9 -0
  158. package/dist/components/Navbar/MobileNavbar.d.ts +12 -0
  159. package/dist/components/Navbar/MobileNavbar.es.js +199 -0
  160. package/dist/components/Navbar/index.cjs.js +1 -0
  161. package/dist/components/Navbar/index.d.ts +20 -0
  162. package/dist/components/Navbar/index.es.js +25 -0
  163. package/dist/components/Navbar/useNavigation.cjs.js +1 -0
  164. package/dist/components/Navbar/useNavigation.d.ts +5 -0
  165. package/dist/components/Navbar/useNavigation.es.js +39 -0
  166. package/dist/components/Popover/index.cjs.js +1 -0
  167. package/dist/components/Popover/index.d.ts +8 -0
  168. package/dist/components/Popover/index.es.js +48 -0
  169. package/dist/components/PressableDiv/PressableDiv.cjs.js +1 -0
  170. package/dist/components/PressableDiv/PressableDiv.d.ts +10 -0
  171. package/dist/components/PressableDiv/PressableDiv.es.js +62 -0
  172. package/dist/components/PressableDiv/index.cjs.js +1 -0
  173. package/dist/components/PressableDiv/index.d.ts +1 -0
  174. package/dist/components/PressableDiv/index.es.js +5 -0
  175. package/dist/components/ProfileDropDown/index.cjs.js +6 -0
  176. package/dist/components/ProfileDropDown/index.d.ts +6 -0
  177. package/dist/components/ProfileDropDown/index.es.js +37 -0
  178. package/dist/components/RedirectionButton/RedirectionButton.cjs.js +6 -0
  179. package/dist/components/RedirectionButton/RedirectionButton.d.ts +8 -0
  180. package/dist/components/RedirectionButton/RedirectionButton.es.js +42 -0
  181. package/dist/components/RedirectionButton/index.cjs.js +1 -0
  182. package/dist/components/RedirectionButton/index.d.ts +1 -0
  183. package/dist/components/RedirectionButton/index.es.js +5 -0
  184. package/dist/components/RightDrawer/RightDrawer.cjs.js +8 -0
  185. package/dist/components/RightDrawer/RightDrawer.d.ts +16 -0
  186. package/dist/components/RightDrawer/RightDrawer.es.js +118 -0
  187. package/dist/components/RightDrawer/index.cjs.js +1 -0
  188. package/dist/components/RightDrawer/index.d.ts +2 -0
  189. package/dist/components/RightDrawer/index.es.js +8 -0
  190. package/dist/components/RightDrawer/useRightDrawerStore.cjs.js +1 -0
  191. package/dist/components/RightDrawer/useRightDrawerStore.d.ts +8 -0
  192. package/dist/components/RightDrawer/useRightDrawerStore.es.js +15 -0
  193. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.js +1 -0
  194. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts +10 -0
  195. package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.es.js +69 -0
  196. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.js +1 -0
  197. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts +10 -0
  198. package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.es.js +65 -0
  199. package/dist/components/ThemeSwitcherDropDown/index.cjs.js +1 -0
  200. package/dist/components/ThemeSwitcherDropDown/index.d.ts +3 -0
  201. package/dist/components/ThemeSwitcherDropDown/index.es.js +9 -0
  202. package/dist/components/ThemeSwitcherDropDown/types.cjs.js +1 -0
  203. package/dist/components/ThemeSwitcherDropDown/types.d.ts +5 -0
  204. package/dist/components/ThemeSwitcherDropDown/types.es.js +5 -0
  205. package/dist/components/index.cjs.js +1 -0
  206. package/dist/components/index.d.ts +22 -0
  207. package/dist/components/index.es.js +61 -0
  208. package/dist/createLucideIcon-DlZEiEGq.js +80 -0
  209. package/dist/createLucideIcon-ZOnO-fn6.cjs +21 -0
  210. package/dist/hooks/index.cjs.js +1 -0
  211. package/dist/hooks/index.d.ts +5 -0
  212. package/dist/hooks/index.es.js +13 -0
  213. package/dist/hooks/useDevice.cjs.js +1 -0
  214. package/dist/hooks/useDevice.d.ts +8 -0
  215. package/dist/hooks/useDevice.es.js +48 -0
  216. package/dist/hooks/useGetElementOrWindow.cjs.js +1 -0
  217. package/dist/hooks/useGetElementOrWindow.d.ts +1 -0
  218. package/dist/hooks/useGetElementOrWindow.es.js +11 -0
  219. package/dist/hooks/useIsMounted.cjs.js +1 -0
  220. package/dist/hooks/useIsMounted.d.ts +1 -0
  221. package/dist/hooks/useIsMounted.es.js +11 -0
  222. package/dist/hooks/useScrollBlockage/index.cjs.js +1 -0
  223. package/dist/hooks/useScrollBlockage/index.d.ts +14 -0
  224. package/dist/hooks/useScrollBlockage/index.es.js +24 -0
  225. package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs.js +1 -0
  226. package/dist/hooks/useScrollBlockage/useScrollBlockageStore.d.ts +12 -0
  227. package/dist/hooks/useScrollBlockage/useScrollBlockageStore.es.js +40 -0
  228. package/dist/hooks/useScrollDetection.cjs.js +1 -0
  229. package/dist/hooks/useScrollDetection.d.ts +13 -0
  230. package/dist/hooks/useScrollDetection.es.js +41 -0
  231. package/dist/index-B2ncVbtX.cjs +1 -0
  232. package/dist/index-D-PWvdb-.js +91 -0
  233. package/dist/intlayer-editor/src/client/renderContentEditor.d.ts +14 -0
  234. package/dist/jsx-runtime-D6agescH.cjs +30 -0
  235. package/dist/jsx-runtime-Tw_Kw2GZ.js +638 -0
  236. package/dist/localeList-CaRF-907.js +300 -0
  237. package/dist/localeList-DlUgKn8J.cjs +1 -0
  238. package/dist/motion-BuKul-u9.cjs +1 -0
  239. package/dist/motion-CP5YERk7.js +4517 -0
  240. package/dist/styled-components.browser.esm-D6kkzXl4.js +1085 -0
  241. package/dist/styled-components.browser.esm-GqWwDlfY.cjs +58 -0
  242. package/dist/sun-BQYZHcpc.cjs +16 -0
  243. package/dist/sun-BrKC5Qwg.js +49 -0
  244. package/dist/utils/capitalize.cjs.js +1 -0
  245. package/dist/utils/capitalize.d.ts +1 -0
  246. package/dist/utils/capitalize.es.js +5 -0
  247. package/dist/utils/cn.cjs.js +1 -0
  248. package/dist/utils/cn.d.ts +3 -0
  249. package/dist/utils/cn.es.js +2338 -0
  250. package/dist/x-BKwnSvvj.js +15 -0
  251. package/dist/x-DIXoN4xe.cjs +6 -0
  252. package/package.json +84 -0
@@ -0,0 +1,833 @@
1
+ "use client";
2
+ import { j as d } from "../../jsx-runtime-Tw_Kw2GZ.js";
3
+ import { p as m } from "../../styled-components.browser.esm-D6kkzXl4.js";
4
+ import D, { useState as M, useEffect as R } from "react";
5
+ import { Prism as E } from "react-syntax-highlighter";
6
+ import { c as O } from "../../createLucideIcon-DlZEiEGq.js";
7
+ function W(e) {
8
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
9
+ }
10
+ /**
11
+ * @license lucide-react v0.376.0 - ISC
12
+ *
13
+ * This source code is licensed under the ISC license.
14
+ * See the LICENSE file in the root directory of this source tree.
15
+ */
16
+ const H = O("CopyCheck", [
17
+ ["path", { d: "m12 15 2 2 4-4", key: "2c609p" }],
18
+ ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
19
+ ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
20
+ ]);
21
+ /**
22
+ * @license lucide-react v0.376.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */
27
+ const A = O("Copy", [
28
+ ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
29
+ ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
30
+ ]);
31
+ var y = {}, I = function() {
32
+ var e = document.getSelection();
33
+ if (!e.rangeCount)
34
+ return function() {
35
+ };
36
+ for (var o = document.activeElement, r = [], t = 0; t < e.rangeCount; t++)
37
+ r.push(e.getRangeAt(t));
38
+ switch (o.tagName.toUpperCase()) {
39
+ case "INPUT":
40
+ case "TEXTAREA":
41
+ o.blur();
42
+ break;
43
+ default:
44
+ o = null;
45
+ break;
46
+ }
47
+ return e.removeAllRanges(), function() {
48
+ e.type === "Caret" && e.removeAllRanges(), e.rangeCount || r.forEach(function(n) {
49
+ e.addRange(n);
50
+ }), o && o.focus();
51
+ };
52
+ }, U = I, C = {
53
+ "text/plain": "Text",
54
+ "text/html": "Url",
55
+ default: "Text"
56
+ }, B = "Copy to clipboard: #{key}, Enter";
57
+ function F(e) {
58
+ var o = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
59
+ return e.replace(/#{\s*key\s*}/g, o);
60
+ }
61
+ function $(e, o) {
62
+ var r, t, n, l, c, a, u = !1;
63
+ o || (o = {}), r = o.debug || !1;
64
+ try {
65
+ n = U(), l = document.createRange(), c = document.getSelection(), a = document.createElement("span"), a.textContent = e, a.ariaHidden = "true", a.style.all = "unset", a.style.position = "fixed", a.style.top = 0, a.style.clip = "rect(0, 0, 0, 0)", a.style.whiteSpace = "pre", a.style.webkitUserSelect = "text", a.style.MozUserSelect = "text", a.style.msUserSelect = "text", a.style.userSelect = "text", a.addEventListener("copy", function(i) {
66
+ if (i.stopPropagation(), o.format)
67
+ if (i.preventDefault(), typeof i.clipboardData > "u") {
68
+ r && console.warn("unable to use e.clipboardData"), r && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
69
+ var f = C[o.format] || C.default;
70
+ window.clipboardData.setData(f, e);
71
+ } else
72
+ i.clipboardData.clearData(), i.clipboardData.setData(o.format, e);
73
+ o.onCopy && (i.preventDefault(), o.onCopy(i.clipboardData));
74
+ }), document.body.appendChild(a), l.selectNodeContents(a), c.addRange(l);
75
+ var s = document.execCommand("copy");
76
+ if (!s)
77
+ throw new Error("copy command was unsuccessful");
78
+ u = !0;
79
+ } catch (i) {
80
+ r && console.error("unable to copy using execCommand: ", i), r && console.warn("trying IE specific stuff");
81
+ try {
82
+ window.clipboardData.setData(o.format || "text", e), o.onCopy && o.onCopy(window.clipboardData), u = !0;
83
+ } catch (f) {
84
+ r && console.error("unable to copy using clipboardData: ", f), r && console.error("falling back to prompt"), t = F("message" in o ? o.message : B), window.prompt(t, e);
85
+ }
86
+ } finally {
87
+ c && (typeof c.removeRange == "function" ? c.removeRange(l) : c.removeAllRanges()), a && document.body.removeChild(a), n();
88
+ }
89
+ return u;
90
+ }
91
+ var L = $;
92
+ function h(e) {
93
+ "@babel/helpers - typeof";
94
+ return h = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
95
+ return typeof o;
96
+ } : function(o) {
97
+ return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
98
+ }, h(e);
99
+ }
100
+ Object.defineProperty(y, "__esModule", {
101
+ value: !0
102
+ });
103
+ y.CopyToClipboard = void 0;
104
+ var b = _(D), N = _(L), q = ["text", "onCopy", "options", "children"];
105
+ function _(e) {
106
+ return e && e.__esModule ? e : { default: e };
107
+ }
108
+ function S(e, o) {
109
+ var r = Object.keys(e);
110
+ if (Object.getOwnPropertySymbols) {
111
+ var t = Object.getOwnPropertySymbols(e);
112
+ o && (t = t.filter(function(n) {
113
+ return Object.getOwnPropertyDescriptor(e, n).enumerable;
114
+ })), r.push.apply(r, t);
115
+ }
116
+ return r;
117
+ }
118
+ function x(e) {
119
+ for (var o = 1; o < arguments.length; o++) {
120
+ var r = arguments[o] != null ? arguments[o] : {};
121
+ o % 2 ? S(Object(r), !0).forEach(function(t) {
122
+ w(e, t, r[t]);
123
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : S(Object(r)).forEach(function(t) {
124
+ Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
125
+ });
126
+ }
127
+ return e;
128
+ }
129
+ function K(e, o) {
130
+ if (e == null) return {};
131
+ var r = V(e, o), t, n;
132
+ if (Object.getOwnPropertySymbols) {
133
+ var l = Object.getOwnPropertySymbols(e);
134
+ for (n = 0; n < l.length; n++)
135
+ t = l[n], !(o.indexOf(t) >= 0) && Object.prototype.propertyIsEnumerable.call(e, t) && (r[t] = e[t]);
136
+ }
137
+ return r;
138
+ }
139
+ function V(e, o) {
140
+ if (e == null) return {};
141
+ var r = {}, t = Object.keys(e), n, l;
142
+ for (l = 0; l < t.length; l++)
143
+ n = t[l], !(o.indexOf(n) >= 0) && (r[n] = e[n]);
144
+ return r;
145
+ }
146
+ function X(e, o) {
147
+ if (!(e instanceof o))
148
+ throw new TypeError("Cannot call a class as a function");
149
+ }
150
+ function Y(e, o) {
151
+ for (var r = 0; r < o.length; r++) {
152
+ var t = o[r];
153
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(e, t.key, t);
154
+ }
155
+ }
156
+ function G(e, o, r) {
157
+ return o && Y(e.prototype, o), Object.defineProperty(e, "prototype", { writable: !1 }), e;
158
+ }
159
+ function J(e, o) {
160
+ if (typeof o != "function" && o !== null)
161
+ throw new TypeError("Super expression must either be null or a function");
162
+ e.prototype = Object.create(o && o.prototype, { constructor: { value: e, writable: !0, configurable: !0 } }), Object.defineProperty(e, "prototype", { writable: !1 }), o && k(e, o);
163
+ }
164
+ function k(e, o) {
165
+ return k = Object.setPrototypeOf || function(t, n) {
166
+ return t.__proto__ = n, t;
167
+ }, k(e, o);
168
+ }
169
+ function Q(e) {
170
+ var o = ee();
171
+ return function() {
172
+ var t = g(e), n;
173
+ if (o) {
174
+ var l = g(this).constructor;
175
+ n = Reflect.construct(t, arguments, l);
176
+ } else
177
+ n = t.apply(this, arguments);
178
+ return Z(this, n);
179
+ };
180
+ }
181
+ function Z(e, o) {
182
+ if (o && (h(o) === "object" || typeof o == "function"))
183
+ return o;
184
+ if (o !== void 0)
185
+ throw new TypeError("Derived constructors may only return object or undefined");
186
+ return P(e);
187
+ }
188
+ function P(e) {
189
+ if (e === void 0)
190
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
191
+ return e;
192
+ }
193
+ function ee() {
194
+ if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
195
+ if (typeof Proxy == "function") return !0;
196
+ try {
197
+ return Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
198
+ })), !0;
199
+ } catch {
200
+ return !1;
201
+ }
202
+ }
203
+ function g(e) {
204
+ return g = Object.setPrototypeOf ? Object.getPrototypeOf : function(r) {
205
+ return r.__proto__ || Object.getPrototypeOf(r);
206
+ }, g(e);
207
+ }
208
+ function w(e, o, r) {
209
+ return o in e ? Object.defineProperty(e, o, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[o] = r, e;
210
+ }
211
+ var j = /* @__PURE__ */ function(e) {
212
+ J(r, e);
213
+ var o = Q(r);
214
+ function r() {
215
+ var t;
216
+ X(this, r);
217
+ for (var n = arguments.length, l = new Array(n), c = 0; c < n; c++)
218
+ l[c] = arguments[c];
219
+ return t = o.call.apply(o, [this].concat(l)), w(P(t), "onClick", function(a) {
220
+ var u = t.props, s = u.text, i = u.onCopy, f = u.children, z = u.options, p = b.default.Children.only(f), T = (0, N.default)(s, z);
221
+ i && i(s, T), p && p.props && typeof p.props.onClick == "function" && p.props.onClick(a);
222
+ }), t;
223
+ }
224
+ return G(r, [{
225
+ key: "render",
226
+ value: function() {
227
+ var n = this.props;
228
+ n.text, n.onCopy, n.options;
229
+ var l = n.children, c = K(n, q), a = b.default.Children.only(l);
230
+ return /* @__PURE__ */ b.default.cloneElement(a, x(x({}, c), {}, {
231
+ onClick: this.onClick
232
+ }));
233
+ }
234
+ }]), r;
235
+ }(b.default.PureComponent);
236
+ y.CopyToClipboard = j;
237
+ w(j, "defaultProps", {
238
+ onCopy: void 0,
239
+ options: void 0
240
+ });
241
+ var oe = y, v = oe.CopyToClipboard;
242
+ v.CopyToClipboard = v;
243
+ var te = v;
244
+ const re = /* @__PURE__ */ W(te), ne = {
245
+ 'code[class*="language-"]': {
246
+ color: "#f8f8f2",
247
+ background: "none",
248
+ textShadow: "0 1px rgba(0, 0, 0, 0.3)",
249
+ fontFamily: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
250
+ fontSize: "1em",
251
+ textAlign: "left",
252
+ whiteSpace: "pre",
253
+ wordSpacing: "normal",
254
+ wordBreak: "normal",
255
+ wordWrap: "normal",
256
+ lineHeight: "1.5",
257
+ MozTabSize: "4",
258
+ OTabSize: "4",
259
+ tabSize: "4",
260
+ WebkitHyphens: "none",
261
+ MozHyphens: "none",
262
+ msHyphens: "none",
263
+ hyphens: "none"
264
+ },
265
+ 'pre[class*="language-"]': {
266
+ color: "#f8f8f2",
267
+ background: "#272822",
268
+ textShadow: "0 1px rgba(0, 0, 0, 0.3)",
269
+ fontFamily: "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",
270
+ fontSize: "1em",
271
+ textAlign: "left",
272
+ whiteSpace: "pre",
273
+ wordSpacing: "normal",
274
+ wordBreak: "normal",
275
+ wordWrap: "normal",
276
+ lineHeight: "1.5",
277
+ MozTabSize: "4",
278
+ OTabSize: "4",
279
+ tabSize: "4",
280
+ WebkitHyphens: "none",
281
+ MozHyphens: "none",
282
+ msHyphens: "none",
283
+ hyphens: "none",
284
+ padding: "1em",
285
+ margin: ".5em 0",
286
+ overflow: "auto",
287
+ borderRadius: "0.3em"
288
+ },
289
+ ':not(pre) > code[class*="language-"]': {
290
+ background: "#272822",
291
+ padding: ".1em",
292
+ borderRadius: ".3em",
293
+ whiteSpace: "normal"
294
+ },
295
+ comment: {
296
+ color: "#8292a2"
297
+ },
298
+ prolog: {
299
+ color: "#8292a2"
300
+ },
301
+ doctype: {
302
+ color: "#8292a2"
303
+ },
304
+ cdata: {
305
+ color: "#8292a2"
306
+ },
307
+ punctuation: {
308
+ color: "#f8f8f2"
309
+ },
310
+ namespace: {
311
+ Opacity: ".7"
312
+ },
313
+ property: {
314
+ color: "#f92672"
315
+ },
316
+ tag: {
317
+ color: "#f92672"
318
+ },
319
+ constant: {
320
+ color: "#f92672"
321
+ },
322
+ symbol: {
323
+ color: "#f92672"
324
+ },
325
+ deleted: {
326
+ color: "#f92672"
327
+ },
328
+ boolean: {
329
+ color: "#ae81ff"
330
+ },
331
+ number: {
332
+ color: "#ae81ff"
333
+ },
334
+ selector: {
335
+ color: "#a6e22e"
336
+ },
337
+ "attr-name": {
338
+ color: "#a6e22e"
339
+ },
340
+ string: {
341
+ color: "#a6e22e"
342
+ },
343
+ char: {
344
+ color: "#a6e22e"
345
+ },
346
+ builtin: {
347
+ color: "#a6e22e"
348
+ },
349
+ inserted: {
350
+ color: "#a6e22e"
351
+ },
352
+ operator: {
353
+ color: "#f8f8f2"
354
+ },
355
+ entity: {
356
+ color: "#f8f8f2",
357
+ cursor: "help"
358
+ },
359
+ url: {
360
+ color: "#f8f8f2"
361
+ },
362
+ ".language-css .token.string": {
363
+ color: "#f8f8f2"
364
+ },
365
+ ".style .token.string": {
366
+ color: "#f8f8f2"
367
+ },
368
+ variable: {
369
+ color: "#f8f8f2"
370
+ },
371
+ atrule: {
372
+ color: "#e6db74"
373
+ },
374
+ "attr-value": {
375
+ color: "#e6db74"
376
+ },
377
+ function: {
378
+ color: "#e6db74"
379
+ },
380
+ "class-name": {
381
+ color: "#e6db74"
382
+ },
383
+ keyword: {
384
+ color: "#66d9ef"
385
+ },
386
+ regex: {
387
+ color: "#fd971f"
388
+ },
389
+ important: {
390
+ color: "#fd971f",
391
+ fontWeight: "bold"
392
+ },
393
+ bold: {
394
+ fontWeight: "bold"
395
+ },
396
+ italic: {
397
+ fontStyle: "italic"
398
+ }
399
+ }, ae = {
400
+ 'code[class*="language-"]': {
401
+ color: "#111b27",
402
+ background: "none",
403
+ fontFamily: 'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',
404
+ textAlign: "left",
405
+ whiteSpace: "pre",
406
+ wordSpacing: "normal",
407
+ wordBreak: "normal",
408
+ wordWrap: "normal",
409
+ lineHeight: "1.5",
410
+ MozTabSize: "4",
411
+ OTabSize: "4",
412
+ tabSize: "4",
413
+ WebkitHyphens: "none",
414
+ MozHyphens: "none",
415
+ msHyphens: "none",
416
+ hyphens: "none"
417
+ },
418
+ 'pre[class*="language-"]': {
419
+ color: "#111b27",
420
+ background: "#e3eaf2",
421
+ fontFamily: 'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace',
422
+ textAlign: "left",
423
+ whiteSpace: "pre",
424
+ wordSpacing: "normal",
425
+ wordBreak: "normal",
426
+ wordWrap: "normal",
427
+ lineHeight: "1.5",
428
+ MozTabSize: "4",
429
+ OTabSize: "4",
430
+ tabSize: "4",
431
+ WebkitHyphens: "none",
432
+ MozHyphens: "none",
433
+ msHyphens: "none",
434
+ hyphens: "none",
435
+ padding: "1em",
436
+ margin: "0.5em 0",
437
+ overflow: "auto"
438
+ },
439
+ 'pre[class*="language-"]::-moz-selection': {
440
+ background: "#8da1b9"
441
+ },
442
+ 'pre[class*="language-"] ::-moz-selection': {
443
+ background: "#8da1b9"
444
+ },
445
+ 'code[class*="language-"]::-moz-selection': {
446
+ background: "#8da1b9"
447
+ },
448
+ 'code[class*="language-"] ::-moz-selection': {
449
+ background: "#8da1b9"
450
+ },
451
+ 'pre[class*="language-"]::selection': {
452
+ background: "#8da1b9"
453
+ },
454
+ 'pre[class*="language-"] ::selection': {
455
+ background: "#8da1b9"
456
+ },
457
+ 'code[class*="language-"]::selection': {
458
+ background: "#8da1b9"
459
+ },
460
+ 'code[class*="language-"] ::selection': {
461
+ background: "#8da1b9"
462
+ },
463
+ ':not(pre) > code[class*="language-"]': {
464
+ background: "#e3eaf2",
465
+ padding: "0.1em 0.3em",
466
+ borderRadius: "0.3em",
467
+ whiteSpace: "normal"
468
+ },
469
+ comment: {
470
+ color: "#3c526d"
471
+ },
472
+ prolog: {
473
+ color: "#3c526d"
474
+ },
475
+ doctype: {
476
+ color: "#3c526d"
477
+ },
478
+ cdata: {
479
+ color: "#3c526d"
480
+ },
481
+ punctuation: {
482
+ color: "#111b27"
483
+ },
484
+ "delimiter.important": {
485
+ color: "#006d6d",
486
+ fontWeight: "inherit"
487
+ },
488
+ "selector.parent": {
489
+ color: "#006d6d"
490
+ },
491
+ tag: {
492
+ color: "#006d6d"
493
+ },
494
+ "tag.punctuation": {
495
+ color: "#006d6d"
496
+ },
497
+ "attr-name": {
498
+ color: "#755f00"
499
+ },
500
+ boolean: {
501
+ color: "#755f00"
502
+ },
503
+ "boolean.important": {
504
+ color: "#755f00"
505
+ },
506
+ number: {
507
+ color: "#755f00"
508
+ },
509
+ constant: {
510
+ color: "#755f00"
511
+ },
512
+ "selector.attribute": {
513
+ color: "#755f00"
514
+ },
515
+ "class-name": {
516
+ color: "#005a8e"
517
+ },
518
+ key: {
519
+ color: "#005a8e"
520
+ },
521
+ parameter: {
522
+ color: "#005a8e"
523
+ },
524
+ property: {
525
+ color: "#005a8e"
526
+ },
527
+ "property-access": {
528
+ color: "#005a8e"
529
+ },
530
+ variable: {
531
+ color: "#005a8e"
532
+ },
533
+ "attr-value": {
534
+ color: "#116b00"
535
+ },
536
+ inserted: {
537
+ color: "#116b00"
538
+ },
539
+ color: {
540
+ color: "#116b00"
541
+ },
542
+ "selector.value": {
543
+ color: "#116b00"
544
+ },
545
+ string: {
546
+ color: "#116b00"
547
+ },
548
+ "string.url-link": {
549
+ color: "#116b00"
550
+ },
551
+ builtin: {
552
+ color: "#af00af"
553
+ },
554
+ "keyword-array": {
555
+ color: "#af00af"
556
+ },
557
+ package: {
558
+ color: "#af00af"
559
+ },
560
+ regex: {
561
+ color: "#af00af"
562
+ },
563
+ function: {
564
+ color: "#7c00aa"
565
+ },
566
+ "selector.class": {
567
+ color: "#7c00aa"
568
+ },
569
+ "selector.id": {
570
+ color: "#7c00aa"
571
+ },
572
+ "atrule.rule": {
573
+ color: "#a04900"
574
+ },
575
+ combinator: {
576
+ color: "#a04900"
577
+ },
578
+ keyword: {
579
+ color: "#a04900"
580
+ },
581
+ operator: {
582
+ color: "#a04900"
583
+ },
584
+ "pseudo-class": {
585
+ color: "#a04900"
586
+ },
587
+ "pseudo-element": {
588
+ color: "#a04900"
589
+ },
590
+ selector: {
591
+ color: "#a04900"
592
+ },
593
+ unit: {
594
+ color: "#a04900"
595
+ },
596
+ deleted: {
597
+ color: "#c22f2e"
598
+ },
599
+ important: {
600
+ color: "#c22f2e",
601
+ fontWeight: "bold"
602
+ },
603
+ "keyword-this": {
604
+ color: "#005a8e",
605
+ fontWeight: "bold"
606
+ },
607
+ this: {
608
+ color: "#005a8e",
609
+ fontWeight: "bold"
610
+ },
611
+ bold: {
612
+ fontWeight: "bold"
613
+ },
614
+ italic: {
615
+ fontStyle: "italic"
616
+ },
617
+ entity: {
618
+ cursor: "help"
619
+ },
620
+ ".language-markdown .token.title": {
621
+ color: "#005a8e",
622
+ fontWeight: "bold"
623
+ },
624
+ ".language-markdown .token.title .token.punctuation": {
625
+ color: "#005a8e",
626
+ fontWeight: "bold"
627
+ },
628
+ ".language-markdown .token.blockquote.punctuation": {
629
+ color: "#af00af"
630
+ },
631
+ ".language-markdown .token.code": {
632
+ color: "#006d6d"
633
+ },
634
+ ".language-markdown .token.hr.punctuation": {
635
+ color: "#005a8e"
636
+ },
637
+ ".language-markdown .token.url > .token.content": {
638
+ color: "#116b00"
639
+ },
640
+ ".language-markdown .token.url-link": {
641
+ color: "#755f00"
642
+ },
643
+ ".language-markdown .token.list.punctuation": {
644
+ color: "#af00af"
645
+ },
646
+ ".language-markdown .token.table-header": {
647
+ color: "#111b27"
648
+ },
649
+ ".language-json .token.operator": {
650
+ color: "#111b27"
651
+ },
652
+ ".language-scss .token.variable": {
653
+ color: "#006d6d"
654
+ },
655
+ "token.tab:not(:empty):before": {
656
+ color: "#3c526d"
657
+ },
658
+ "token.cr:before": {
659
+ color: "#3c526d"
660
+ },
661
+ "token.lf:before": {
662
+ color: "#3c526d"
663
+ },
664
+ "token.space:before": {
665
+ color: "#3c526d"
666
+ },
667
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a": {
668
+ color: "#e3eaf2",
669
+ background: "#005a8e"
670
+ },
671
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button": {
672
+ color: "#e3eaf2",
673
+ background: "#005a8e"
674
+ },
675
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:hover": {
676
+ color: "#e3eaf2",
677
+ background: "#005a8eda",
678
+ textDecoration: "none"
679
+ },
680
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > a:focus": {
681
+ color: "#e3eaf2",
682
+ background: "#005a8eda",
683
+ textDecoration: "none"
684
+ },
685
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:hover": {
686
+ color: "#e3eaf2",
687
+ background: "#005a8eda",
688
+ textDecoration: "none"
689
+ },
690
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > button:focus": {
691
+ color: "#e3eaf2",
692
+ background: "#005a8eda",
693
+ textDecoration: "none"
694
+ },
695
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span": {
696
+ color: "#e3eaf2",
697
+ background: "#3c526d"
698
+ },
699
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:hover": {
700
+ color: "#e3eaf2",
701
+ background: "#3c526d"
702
+ },
703
+ "div.code-toolbar > .toolbar.toolbar > .toolbar-item > span:focus": {
704
+ color: "#e3eaf2",
705
+ background: "#3c526d"
706
+ },
707
+ ".line-highlight.line-highlight": {
708
+ background: "linear-gradient(to right, #8da1b92f 70%, #8da1b925)"
709
+ },
710
+ ".line-highlight.line-highlight:before": {
711
+ backgroundColor: "#3c526d",
712
+ color: "#e3eaf2",
713
+ boxShadow: "0 1px #8da1b9"
714
+ },
715
+ ".line-highlight.line-highlight[data-end]:after": {
716
+ backgroundColor: "#3c526d",
717
+ color: "#e3eaf2",
718
+ boxShadow: "0 1px #8da1b9"
719
+ },
720
+ "pre[id].linkable-line-numbers.linkable-line-numbers span.line-numbers-rows > span:hover:before": {
721
+ backgroundColor: "#3c526d1f"
722
+ },
723
+ ".line-numbers.line-numbers .line-numbers-rows": {
724
+ borderRight: "1px solid #8da1b97a",
725
+ background: "#d0dae77a"
726
+ },
727
+ ".line-numbers .line-numbers-rows > span:before": {
728
+ color: "#3c526dda"
729
+ },
730
+ ".rainbow-braces .token.token.punctuation.brace-level-1": {
731
+ color: "#755f00"
732
+ },
733
+ ".rainbow-braces .token.token.punctuation.brace-level-5": {
734
+ color: "#755f00"
735
+ },
736
+ ".rainbow-braces .token.token.punctuation.brace-level-9": {
737
+ color: "#755f00"
738
+ },
739
+ ".rainbow-braces .token.token.punctuation.brace-level-2": {
740
+ color: "#af00af"
741
+ },
742
+ ".rainbow-braces .token.token.punctuation.brace-level-6": {
743
+ color: "#af00af"
744
+ },
745
+ ".rainbow-braces .token.token.punctuation.brace-level-10": {
746
+ color: "#af00af"
747
+ },
748
+ ".rainbow-braces .token.token.punctuation.brace-level-3": {
749
+ color: "#005a8e"
750
+ },
751
+ ".rainbow-braces .token.token.punctuation.brace-level-7": {
752
+ color: "#005a8e"
753
+ },
754
+ ".rainbow-braces .token.token.punctuation.brace-level-11": {
755
+ color: "#005a8e"
756
+ },
757
+ ".rainbow-braces .token.token.punctuation.brace-level-4": {
758
+ color: "#7c00aa"
759
+ },
760
+ ".rainbow-braces .token.token.punctuation.brace-level-8": {
761
+ color: "#7c00aa"
762
+ },
763
+ ".rainbow-braces .token.token.punctuation.brace-level-12": {
764
+ color: "#7c00aa"
765
+ },
766
+ "pre.diff-highlight > code .token.token.deleted:not(.prefix)": {
767
+ backgroundColor: "#c22f2e1f"
768
+ },
769
+ "pre > code.diff-highlight .token.token.deleted:not(.prefix)": {
770
+ backgroundColor: "#c22f2e1f"
771
+ },
772
+ "pre.diff-highlight > code .token.token.inserted:not(.prefix)": {
773
+ backgroundColor: "#116b001f"
774
+ },
775
+ "pre > code.diff-highlight .token.token.inserted:not(.prefix)": {
776
+ backgroundColor: "#116b001f"
777
+ },
778
+ ".command-line .command-line-prompt": {
779
+ borderRight: "1px solid #8da1b97a"
780
+ },
781
+ ".command-line .command-line-prompt > span:before": {
782
+ color: "#3c526dda"
783
+ }
784
+ }, le = m.div(({
785
+ $showLineNumbers: e
786
+ }) => [{
787
+ position: "relative",
788
+ padding: "0.75rem"
789
+ }, e && {
790
+ marginLeft: "0px"
791
+ }]), ce = m.button({
792
+ position: "absolute",
793
+ right: "0.75rem",
794
+ top: "0.75rem"
795
+ }), ie = m(A)({
796
+ height: "1rem",
797
+ width: "1rem"
798
+ }), ue = m(H)({
799
+ height: "1rem",
800
+ width: "1rem"
801
+ }), ge = ({
802
+ children: e,
803
+ language: o,
804
+ isDarkMode: r,
805
+ showLineNumbers: t = !0,
806
+ ...n
807
+ }) => {
808
+ const [l, c] = M(!1);
809
+ return R(() => {
810
+ const a = setTimeout(() => {
811
+ c(!1);
812
+ }, 1e3);
813
+ return () => clearTimeout(a);
814
+ }, [l]), /* @__PURE__ */ d.jsxs(le, { $showLineNumbers: t, children: [
815
+ /* @__PURE__ */ d.jsx(re, { text: e, onCopy: () => c(!0), children: /* @__PURE__ */ d.jsx(ce, { "aria-label": "Copy code", children: l ? /* @__PURE__ */ d.jsx(ue, {}) : /* @__PURE__ */ d.jsx(ie, {}) }) }),
816
+ /* @__PURE__ */ d.jsx(E, { lineProps: {
817
+ style: {
818
+ whiteSpace: "pre-wrap"
819
+ }
820
+ }, wrapLines: !0, customStyle: {
821
+ display: void 0,
822
+ overflowX: void 0,
823
+ overflowY: "scroll",
824
+ padding: void 0,
825
+ color: void 0,
826
+ background: "inherit",
827
+ margin: void 0
828
+ }, language: o ?? "javascript", style: r ? ne : ae, showLineNumbers: t, ...n, children: String(e).replace(/\n$/, "") })
829
+ ] });
830
+ };
831
+ export {
832
+ ge as Code
833
+ };