hermium 0.1.9 → 0.2.0

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 (209) hide show
  1. package/README.md +56 -0
  2. package/bin/hermium.mjs +185 -164
  3. package/dist/api.mjs +3513 -0
  4. package/dist/public/assets/css/index-Dfs9RUU9.css +1 -0
  5. package/dist/public/assets/css/styles-B8p6jk5Z.css +1 -0
  6. package/dist/public/assets/js/ChatInputBlock-Bw7AL70H.js +1 -0
  7. package/dist/public/assets/js/MarkdownMessage-8d7Y6VL-.js +1 -0
  8. package/dist/public/assets/js/base-ui-BvQbAt_1.js +1 -0
  9. package/dist/public/assets/js/chat._sessionId-BG6lVraH.js +1 -0
  10. package/dist/public/assets/js/chat.index-D2zdMPTT.js +1 -0
  11. package/dist/public/assets/js/index-C0AK45FU.js +60 -0
  12. package/dist/public/assets/js/index-Cx5En4FK.js +1 -0
  13. package/dist/public/assets/js/memory-CeSRdTkW.js +3 -0
  14. package/dist/public/assets/js/router-8uDKazL-.js +1 -0
  15. package/dist/public/assets/js/settings-Bc3Y5zXO.js +1 -0
  16. package/dist/public/assets/js/skills-DZv7sA_5.js +1 -0
  17. package/dist/public/assets/js/theme-CPkdkpaj.js +1 -0
  18. package/dist/public/assets/js/usage-DXQsT9_b.js +1 -0
  19. package/dist/public/assets/woff2/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  20. package/dist/public/assets/woff2/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  21. package/dist/public/assets/woff2/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  22. package/dist/public/assets/woff2/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  23. package/dist/public/assets/woff2/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  24. package/dist/public/favicon.ico +0 -0
  25. package/dist/public/logo.png +0 -0
  26. package/package.json +1 -1
  27. package/dist/public/assets/IconAlertCircle-BHkmI3j7.js +0 -1
  28. package/dist/public/assets/IconAlertTriangle-wCJudlVg.js +0 -1
  29. package/dist/public/assets/IconCheck-CFuEh_p7.js +0 -1
  30. package/dist/public/assets/IconLoader2-BIx3OuF9.js +0 -1
  31. package/dist/public/assets/IconRefresh-Dgm93w3T.js +0 -1
  32. package/dist/public/assets/geist-cyrillic-wght-normal-CHSlOQsW.woff2 +0 -0
  33. package/dist/public/assets/geist-latin-ext-wght-normal-DMtmJ5ZE.woff2 +0 -0
  34. package/dist/public/assets/geist-latin-wght-normal-Dm3htQBi.woff2 +0 -0
  35. package/dist/public/assets/index-Bbz3abmO.js +0 -14
  36. package/dist/public/assets/index-CWUaRwcE.js +0 -1
  37. package/dist/public/assets/index-CinLq3cd.js +0 -1
  38. package/dist/public/assets/index-CrQs9n6q.js +0 -29
  39. package/dist/public/assets/index-CtacpN3I.js +0 -1
  40. package/dist/public/assets/index-DY7aE-9s.js +0 -2
  41. package/dist/public/assets/index-DkYGodJj.js +0 -94
  42. package/dist/public/assets/index-DvDLadUx.js +0 -1
  43. package/dist/public/assets/index-U6RcWedt.js +0 -1
  44. package/dist/public/assets/index-_6iFZ0fh.js +0 -1
  45. package/dist/public/assets/index-enFS26SU.js +0 -1
  46. package/dist/public/assets/input-eNcwlDHp.js +0 -1
  47. package/dist/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  48. package/dist/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  49. package/dist/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  50. package/dist/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  51. package/dist/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  52. package/dist/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  53. package/dist/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  54. package/dist/public/assets/queries-iHRgZzw2.js +0 -1
  55. package/dist/public/assets/styles-KcflDlA_.css +0 -1
  56. package/dist/public/assets/switch-B1DcZLwL.js +0 -1
  57. package/dist/public/assets/syntax-highlighter-DWPF-A_h.js +0 -6
  58. package/dist/public/assets/textarea-Di_syYTS.js +0 -1
  59. package/dist/public/favicon.png +0 -0
  60. package/dist/public/nous-logo.png +0 -0
  61. package/dist/server/index.mjs +0 -244
  62. package/dist/web-server/__23tanstack-start-plugin-adapters-Cwee5PKy.mjs +0 -6
  63. package/dist/web-server/_chunks/ssr-renderer.mjs +0 -22
  64. package/dist/web-server/_libs/babel__runtime.mjs +0 -237
  65. package/dist/web-server/_libs/bail.mjs +0 -8
  66. package/dist/web-server/_libs/base-ui__react.mjs +0 -9554
  67. package/dist/web-server/_libs/base-ui__utils.mjs +0 -1101
  68. package/dist/web-server/_libs/ccount.mjs +0 -16
  69. package/dist/web-server/_libs/character-entities-legacy.mjs +0 -111
  70. package/dist/web-server/_libs/character-entities.mjs +0 -2130
  71. package/dist/web-server/_libs/character-reference-invalid.mjs +0 -33
  72. package/dist/web-server/_libs/class-variance-authority.mjs +0 -44
  73. package/dist/web-server/_libs/clsx.mjs +0 -16
  74. package/dist/web-server/_libs/comma-separated-tokens.mjs +0 -31
  75. package/dist/web-server/_libs/cookie-es.mjs +0 -44
  76. package/dist/web-server/_libs/croner.mjs +0 -1
  77. package/dist/web-server/_libs/crossws.mjs +0 -1
  78. package/dist/web-server/_libs/decode-named-character-reference+[...].mjs +0 -8
  79. package/dist/web-server/_libs/devlop.mjs +0 -8
  80. package/dist/web-server/_libs/escape-string-regexp.mjs +0 -9
  81. package/dist/web-server/_libs/estree-util-is-identifier-name.mjs +0 -11
  82. package/dist/web-server/_libs/extend.mjs +0 -97
  83. package/dist/web-server/_libs/fault.mjs +0 -1
  84. package/dist/web-server/_libs/floating-ui__core.mjs +0 -663
  85. package/dist/web-server/_libs/floating-ui__dom.mjs +0 -624
  86. package/dist/web-server/_libs/floating-ui__react-dom.mjs +0 -279
  87. package/dist/web-server/_libs/floating-ui__utils.mjs +0 -322
  88. package/dist/web-server/_libs/format.mjs +0 -1
  89. package/dist/web-server/_libs/h3.mjs +0 -408
  90. package/dist/web-server/_libs/hast-util-parse-selector.mjs +0 -39
  91. package/dist/web-server/_libs/hast-util-to-jsx-runtime.mjs +0 -388
  92. package/dist/web-server/_libs/hast-util-whitespace.mjs +0 -10
  93. package/dist/web-server/_libs/hastscript.mjs +0 -200
  94. package/dist/web-server/_libs/highlight.js.mjs +0 -1
  95. package/dist/web-server/_libs/hookable.mjs +0 -1
  96. package/dist/web-server/_libs/html-url-attributes.mjs +0 -26
  97. package/dist/web-server/_libs/inline-style-parser.mjs +0 -142
  98. package/dist/web-server/_libs/is-alphabetical.mjs +0 -7
  99. package/dist/web-server/_libs/is-alphanumerical.mjs +0 -8
  100. package/dist/web-server/_libs/is-decimal.mjs +0 -7
  101. package/dist/web-server/_libs/is-hexadecimal.mjs +0 -7
  102. package/dist/web-server/_libs/is-plain-obj.mjs +0 -10
  103. package/dist/web-server/_libs/isbot.mjs +0 -21
  104. package/dist/web-server/_libs/longest-streak.mjs +0 -25
  105. package/dist/web-server/_libs/lowlight.mjs +0 -1
  106. package/dist/web-server/_libs/markdown-table.mjs +0 -142
  107. package/dist/web-server/_libs/mdast-util-find-and-replace.mjs +0 -109
  108. package/dist/web-server/_libs/mdast-util-from-markdown.mjs +0 -717
  109. package/dist/web-server/_libs/mdast-util-gfm-autolink-literal+[...].mjs +0 -156
  110. package/dist/web-server/_libs/mdast-util-gfm-footnote.mjs +0 -117
  111. package/dist/web-server/_libs/mdast-util-gfm-strikethrough.mjs +0 -54
  112. package/dist/web-server/_libs/mdast-util-gfm-table.mjs +0 -157
  113. package/dist/web-server/_libs/mdast-util-gfm-task-list-item.mjs +0 -77
  114. package/dist/web-server/_libs/mdast-util-gfm.mjs +0 -29
  115. package/dist/web-server/_libs/mdast-util-phrasing.mjs +0 -30
  116. package/dist/web-server/_libs/mdast-util-to-hast.mjs +0 -710
  117. package/dist/web-server/_libs/mdast-util-to-markdown.mjs +0 -798
  118. package/dist/web-server/_libs/mdast-util-to-string.mjs +0 -38
  119. package/dist/web-server/_libs/micromark-core-commonmark.mjs +0 -2259
  120. package/dist/web-server/_libs/micromark-extension-gfm-autolink-literal+[...].mjs +0 -344
  121. package/dist/web-server/_libs/micromark-extension-gfm-footnote+[...].mjs +0 -279
  122. package/dist/web-server/_libs/micromark-extension-gfm-strikethrough+[...].mjs +0 -98
  123. package/dist/web-server/_libs/micromark-extension-gfm-table.mjs +0 -491
  124. package/dist/web-server/_libs/micromark-extension-gfm-tagfilter+[...].mjs +0 -1
  125. package/dist/web-server/_libs/micromark-extension-gfm-task-list-item+[...].mjs +0 -77
  126. package/dist/web-server/_libs/micromark-extension-gfm.mjs +0 -18
  127. package/dist/web-server/_libs/micromark-factory-destination.mjs +0 -94
  128. package/dist/web-server/_libs/micromark-factory-label.mjs +0 -63
  129. package/dist/web-server/_libs/micromark-factory-space.mjs +0 -24
  130. package/dist/web-server/_libs/micromark-factory-title.mjs +0 -65
  131. package/dist/web-server/_libs/micromark-factory-whitespace.mjs +0 -22
  132. package/dist/web-server/_libs/micromark-util-character.mjs +0 -44
  133. package/dist/web-server/_libs/micromark-util-chunked.mjs +0 -36
  134. package/dist/web-server/_libs/micromark-util-classify-character+[...].mjs +0 -12
  135. package/dist/web-server/_libs/micromark-util-combine-extensions+[...].mjs +0 -41
  136. package/dist/web-server/_libs/micromark-util-decode-numeric-character-reference+[...].mjs +0 -19
  137. package/dist/web-server/_libs/micromark-util-decode-string.mjs +0 -21
  138. package/dist/web-server/_libs/micromark-util-encode.mjs +0 -1
  139. package/dist/web-server/_libs/micromark-util-html-tag-name.mjs +0 -69
  140. package/dist/web-server/_libs/micromark-util-normalize-identifier+[...].mjs +0 -6
  141. package/dist/web-server/_libs/micromark-util-resolve-all.mjs +0 -15
  142. package/dist/web-server/_libs/micromark-util-sanitize-uri.mjs +0 -41
  143. package/dist/web-server/_libs/micromark-util-subtokenize.mjs +0 -346
  144. package/dist/web-server/_libs/micromark.mjs +0 -906
  145. package/dist/web-server/_libs/ocache.mjs +0 -1
  146. package/dist/web-server/_libs/ohash.mjs +0 -1
  147. package/dist/web-server/_libs/parse-entities.mjs +0 -245
  148. package/dist/web-server/_libs/property-information.mjs +0 -1210
  149. package/dist/web-server/_libs/react-dom.mjs +0 -10779
  150. package/dist/web-server/_libs/react-markdown.mjs +0 -147
  151. package/dist/web-server/_libs/react-syntax-highlighter.mjs +0 -941
  152. package/dist/web-server/_libs/react.mjs +0 -513
  153. package/dist/web-server/_libs/refractor.mjs +0 -2425
  154. package/dist/web-server/_libs/remark-gfm.mjs +0 -20
  155. package/dist/web-server/_libs/remark-parse.mjs +0 -19
  156. package/dist/web-server/_libs/remark-rehype.mjs +0 -21
  157. package/dist/web-server/_libs/reselect.mjs +0 -1
  158. package/dist/web-server/_libs/rou3.mjs +0 -8
  159. package/dist/web-server/_libs/seroval-plugins.mjs +0 -58
  160. package/dist/web-server/_libs/seroval.mjs +0 -1775
  161. package/dist/web-server/_libs/space-separated-tokens.mjs +0 -11
  162. package/dist/web-server/_libs/srvx.mjs +0 -781
  163. package/dist/web-server/_libs/style-to-js.mjs +0 -72
  164. package/dist/web-server/_libs/style-to-object.mjs +0 -38
  165. package/dist/web-server/_libs/tabler__icons-react.mjs +0 -230
  166. package/dist/web-server/_libs/tanstack__history.mjs +0 -204
  167. package/dist/web-server/_libs/tanstack__query-core.mjs +0 -2552
  168. package/dist/web-server/_libs/tanstack__react-query.mjs +0 -190
  169. package/dist/web-server/_libs/tanstack__react-router.mjs +0 -1120
  170. package/dist/web-server/_libs/tanstack__react-store.mjs +0 -2
  171. package/dist/web-server/_libs/tanstack__router-core.mjs +0 -4288
  172. package/dist/web-server/_libs/tanstack__store.mjs +0 -1
  173. package/dist/web-server/_libs/trim-lines.mjs +0 -41
  174. package/dist/web-server/_libs/trough.mjs +0 -85
  175. package/dist/web-server/_libs/ufo.mjs +0 -54
  176. package/dist/web-server/_libs/unctx.mjs +0 -1
  177. package/dist/web-server/_libs/ungap__structured-clone.mjs +0 -224
  178. package/dist/web-server/_libs/unified.mjs +0 -661
  179. package/dist/web-server/_libs/unist-util-is.mjs +0 -100
  180. package/dist/web-server/_libs/unist-util-position.mjs +0 -27
  181. package/dist/web-server/_libs/unist-util-stringify-position.mjs +0 -27
  182. package/dist/web-server/_libs/unist-util-visit-parents.mjs +0 -83
  183. package/dist/web-server/_libs/unist-util-visit.mjs +0 -24
  184. package/dist/web-server/_libs/unstorage.mjs +0 -1
  185. package/dist/web-server/_libs/use-sync-external-store.mjs +0 -139
  186. package/dist/web-server/_libs/vfile-message.mjs +0 -138
  187. package/dist/web-server/_libs/vfile.mjs +0 -467
  188. package/dist/web-server/_libs/zod.mjs +0 -3915
  189. package/dist/web-server/_libs/zustand.mjs +0 -343
  190. package/dist/web-server/_libs/zwitch.mjs +0 -1
  191. package/dist/web-server/_ssr/index-0n2Z3BPQ.mjs +0 -369
  192. package/dist/web-server/_ssr/index-6itDALOw.mjs +0 -339
  193. package/dist/web-server/_ssr/index-BIRTrOmp.mjs +0 -449
  194. package/dist/web-server/_ssr/index-BPzfADac.mjs +0 -66
  195. package/dist/web-server/_ssr/index-BQE3bF14.mjs +0 -1870
  196. package/dist/web-server/_ssr/index-C5HpvlUP.mjs +0 -190
  197. package/dist/web-server/_ssr/index-C_ZxnypN.mjs +0 -213
  198. package/dist/web-server/_ssr/index-Ca8JFH8f.mjs +0 -612
  199. package/dist/web-server/_ssr/index-DNVESZiA.mjs +0 -513
  200. package/dist/web-server/_ssr/index.mjs +0 -1558
  201. package/dist/web-server/_ssr/input-CqXjTRQg.mjs +0 -20
  202. package/dist/web-server/_ssr/queries-3H_19mUt.mjs +0 -16
  203. package/dist/web-server/_ssr/router-sbsNus0Y.mjs +0 -2093
  204. package/dist/web-server/_ssr/start-HYkvq4Ni.mjs +0 -4
  205. package/dist/web-server/_ssr/switch-usf2F1UM.mjs +0 -33
  206. package/dist/web-server/_ssr/syntax-highlighter-5vezNTce.mjs +0 -62
  207. package/dist/web-server/_ssr/textarea-DfRheWY0.mjs +0 -18
  208. package/dist/web-server/_tanstack-start-manifest_v-DqW-pKEH.mjs +0 -4
  209. package/dist/web-server/index.mjs +0 -597
@@ -1,142 +0,0 @@
1
- var cjs;
2
- var hasRequiredCjs;
3
- function requireCjs() {
4
- if (hasRequiredCjs) return cjs;
5
- hasRequiredCjs = 1;
6
- var COMMENT_REGEX = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;
7
- var NEWLINE_REGEX = /\n/g;
8
- var WHITESPACE_REGEX = /^\s*/;
9
- var PROPERTY_REGEX = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/;
10
- var COLON_REGEX = /^:\s*/;
11
- var VALUE_REGEX = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/;
12
- var SEMICOLON_REGEX = /^[;\s]*/;
13
- var TRIM_REGEX = /^\s+|\s+$/g;
14
- var NEWLINE = "\n";
15
- var FORWARD_SLASH = "/";
16
- var ASTERISK = "*";
17
- var EMPTY_STRING = "";
18
- var TYPE_COMMENT = "comment";
19
- var TYPE_DECLARATION = "declaration";
20
- function index(style, options) {
21
- if (typeof style !== "string") {
22
- throw new TypeError("First argument must be a string");
23
- }
24
- if (!style) return [];
25
- options = options || {};
26
- var lineno = 1;
27
- var column = 1;
28
- function updatePosition(str) {
29
- var lines = str.match(NEWLINE_REGEX);
30
- if (lines) lineno += lines.length;
31
- var i = str.lastIndexOf(NEWLINE);
32
- column = ~i ? str.length - i : column + str.length;
33
- }
34
- function position() {
35
- var start = { line: lineno, column };
36
- return function(node) {
37
- node.position = new Position(start);
38
- whitespace();
39
- return node;
40
- };
41
- }
42
- function Position(start) {
43
- this.start = start;
44
- this.end = { line: lineno, column };
45
- this.source = options.source;
46
- }
47
- Position.prototype.content = style;
48
- function error(msg) {
49
- var err = new Error(
50
- options.source + ":" + lineno + ":" + column + ": " + msg
51
- );
52
- err.reason = msg;
53
- err.filename = options.source;
54
- err.line = lineno;
55
- err.column = column;
56
- err.source = style;
57
- if (options.silent) ;
58
- else {
59
- throw err;
60
- }
61
- }
62
- function match(re) {
63
- var m = re.exec(style);
64
- if (!m) return;
65
- var str = m[0];
66
- updatePosition(str);
67
- style = style.slice(str.length);
68
- return m;
69
- }
70
- function whitespace() {
71
- match(WHITESPACE_REGEX);
72
- }
73
- function comments(rules) {
74
- var c;
75
- rules = rules || [];
76
- while (c = comment()) {
77
- if (c !== false) {
78
- rules.push(c);
79
- }
80
- }
81
- return rules;
82
- }
83
- function comment() {
84
- var pos = position();
85
- if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
86
- var i = 2;
87
- while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) {
88
- ++i;
89
- }
90
- i += 2;
91
- if (EMPTY_STRING === style.charAt(i - 1)) {
92
- return error("End of comment missing");
93
- }
94
- var str = style.slice(2, i - 2);
95
- column += 2;
96
- updatePosition(str);
97
- style = style.slice(i);
98
- column += 2;
99
- return pos({
100
- type: TYPE_COMMENT,
101
- comment: str
102
- });
103
- }
104
- function declaration() {
105
- var pos = position();
106
- var prop = match(PROPERTY_REGEX);
107
- if (!prop) return;
108
- comment();
109
- if (!match(COLON_REGEX)) return error("property missing ':'");
110
- var val = match(VALUE_REGEX);
111
- var ret = pos({
112
- type: TYPE_DECLARATION,
113
- property: trim(prop[0].replace(COMMENT_REGEX, EMPTY_STRING)),
114
- value: val ? trim(val[0].replace(COMMENT_REGEX, EMPTY_STRING)) : EMPTY_STRING
115
- });
116
- match(SEMICOLON_REGEX);
117
- return ret;
118
- }
119
- function declarations() {
120
- var decls = [];
121
- comments(decls);
122
- var decl;
123
- while (decl = declaration()) {
124
- if (decl !== false) {
125
- decls.push(decl);
126
- comments(decls);
127
- }
128
- }
129
- return decls;
130
- }
131
- whitespace();
132
- return declarations();
133
- }
134
- function trim(str) {
135
- return str ? str.replace(TRIM_REGEX, EMPTY_STRING) : EMPTY_STRING;
136
- }
137
- cjs = index;
138
- return cjs;
139
- }
140
- export {
141
- requireCjs as r
142
- };
@@ -1,7 +0,0 @@
1
- function isAlphabetical(character) {
2
- const code = typeof character === "string" ? character.charCodeAt(0) : character;
3
- return code >= 97 && code <= 122 || code >= 65 && code <= 90;
4
- }
5
- export {
6
- isAlphabetical as i
7
- };
@@ -1,8 +0,0 @@
1
- import { i as isAlphabetical } from "./is-alphabetical.mjs";
2
- import { i as isDecimal } from "./is-decimal.mjs";
3
- function isAlphanumerical(character) {
4
- return isAlphabetical(character) || isDecimal(character);
5
- }
6
- export {
7
- isAlphanumerical as i
8
- };
@@ -1,7 +0,0 @@
1
- function isDecimal(character) {
2
- const code = typeof character === "string" ? character.charCodeAt(0) : character;
3
- return code >= 48 && code <= 57;
4
- }
5
- export {
6
- isDecimal as i
7
- };
@@ -1,7 +0,0 @@
1
- function isHexadecimal(character) {
2
- const code = typeof character === "string" ? character.charCodeAt(0) : character;
3
- return code >= 97 && code <= 102 || code >= 65 && code <= 70 || code >= 48 && code <= 57;
4
- }
5
- export {
6
- isHexadecimal as i
7
- };
@@ -1,10 +0,0 @@
1
- function isPlainObject(value) {
2
- if (typeof value !== "object" || value === null) {
3
- return false;
4
- }
5
- const prototype = Object.getPrototypeOf(value);
6
- return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);
7
- }
8
- export {
9
- isPlainObject as i
10
- };
@@ -1,21 +0,0 @@
1
- var fullPattern = " daum[ /]| deusu/|(?:^|[^g])news(?!sapphire)|(?<! (?:channel/|google/))google(?!(app|/google| pixel))|(?<! cu)bots?(?:\\b|_)|(?<!(?:lib))http|(?<!cam)scan|24x7|@[a-z][\\w-]+\\.|\\(\\)|\\.com\\b|\\b\\w+\\.ai|\\bcursor/|\\bmanus-user/|\\bort/|\\bperl\\b|\\bplaywright\\b|\\bsecurityheaders\\b|\\bselenium\\b|\\btime/|\\||^[\\w \\.\\-\\(?:\\):%]+(?:/v?\\d+(?:\\.\\d+)?(?:\\.\\d{1,10})*?)?(?:,|$)|^[\\w\\-]+/[\\w]+$|^[^ ]{50,}$|^\\d+\\b|^\\W|^\\w*search\\b|^\\w+/[\\w\\(\\)]*$|^\\w+/\\d\\.\\d\\s\\([\\w@]+\\)$|^active|^ad muncher|^amaya|^apache/|^avsdevicesdk/|^azure|^biglotron|^bot|^bw/|^clamav[ /]|^claude-code/|^client/|^cobweb/|^custom|^ddg[_-]android|^discourse|^dispatch/\\d|^downcast/|^duckduckgo|^email|^facebook|^getright/|^gozilla/|^hobbit|^hotzonu|^hwcdn/|^igetter/|^jeode/|^jetty/|^jigsaw|^microsoft bits|^movabletype|^mozilla/\\d\\.\\d\\s[\\w\\.-]+$|^mozilla/\\d\\.\\d\\s\\((?:compatible;)?(?:\\s?[\\w\\d-.]+\\/\\d+\\.\\d+)?\\)$|^navermailapp|^netsurf|^offline|^openai/|^owler|^php|^postman|^python|^rank|^read|^reed|^rest|^rss|^snapchat|^space bison|^svn|^swcd |^taringa|^thumbor/|^track|^w3c|^webbandit/|^webcopier|^wget|^whatsapp|^wordpress|^xenu link sleuth|^yahoo|^yandex|^zdm/\\d|^zoom marketplace/|advisor|agent\\b|analyzer|archive|ask jeeves/teoma|audit|bit\\.ly/|bluecoat drtr|browsex|burpcollaborator|capture|catch|check\\b|checker|chrome-lighthouse|chromeframe|classifier|cloudflare|convertify|crawl|cypress/|dareboost|datanyze|dejaclick|detect|dmbrowser|download|exaleadcloudview|feed|fetcher|firephp|functionize|grab|headless|httrack|hubspot marketing grader|ibisbrowser|infrawatch|insight|inspect|iplabel|java(?!;)|library|linkcheck|mail\\.ru/|manager|measure|monitor\\b|neustar wpm|node\\b|nutch|offbyone|onetrust|optimize|pageburst|pagespeed|parser|phantomjs|pingdom|powermarks|preview|proxy|ptst[ /]\\d|retriever|rexx;|rigor|rss\\b|scrape|server|sogou|sparkler/|speedcurve|spider|splash|statuscake|supercleaner|synapse|synthetic|tools|torrent|transcoder|url|validator|virtuoso|wappalyzer|webglance|webkit2png|whatcms/|xtate/";
2
- var naivePattern = /bot|crawl|http|lighthouse|scan|search|spider/i;
3
- var pattern;
4
- function getPattern() {
5
- if (pattern instanceof RegExp) {
6
- return pattern;
7
- }
8
- try {
9
- pattern = new RegExp(fullPattern, "i");
10
- } catch (error) {
11
- pattern = naivePattern;
12
- }
13
- return pattern;
14
- }
15
- var isNonEmptyString = (value) => typeof value === "string" && value !== "";
16
- function isbot(userAgent) {
17
- return isNonEmptyString(userAgent) && getPattern().test(userAgent);
18
- }
19
- export {
20
- isbot as i
21
- };
@@ -1,25 +0,0 @@
1
- function longestStreak(value, substring) {
2
- const source = String(value);
3
- let index = source.indexOf(substring);
4
- let expected = index;
5
- let count = 0;
6
- let max = 0;
7
- if (typeof substring !== "string") {
8
- throw new TypeError("Expected substring");
9
- }
10
- while (index !== -1) {
11
- if (index === expected) {
12
- if (++count > max) {
13
- max = count;
14
- }
15
- } else {
16
- count = 1;
17
- }
18
- expected = index + substring.length;
19
- index = source.indexOf(substring, expected);
20
- }
21
- return max;
22
- }
23
- export {
24
- longestStreak as l
25
- };
@@ -1 +0,0 @@
1
-
@@ -1,142 +0,0 @@
1
- function defaultStringLength(value) {
2
- return value.length;
3
- }
4
- function markdownTable(table, options) {
5
- const settings = options || {};
6
- const align = (settings.align || []).concat();
7
- const stringLength = settings.stringLength || defaultStringLength;
8
- const alignments = [];
9
- const cellMatrix = [];
10
- const sizeMatrix = [];
11
- const longestCellByColumn = [];
12
- let mostCellsPerRow = 0;
13
- let rowIndex = -1;
14
- while (++rowIndex < table.length) {
15
- const row2 = [];
16
- const sizes2 = [];
17
- let columnIndex2 = -1;
18
- if (table[rowIndex].length > mostCellsPerRow) {
19
- mostCellsPerRow = table[rowIndex].length;
20
- }
21
- while (++columnIndex2 < table[rowIndex].length) {
22
- const cell = serialize(table[rowIndex][columnIndex2]);
23
- if (settings.alignDelimiters !== false) {
24
- const size = stringLength(cell);
25
- sizes2[columnIndex2] = size;
26
- if (longestCellByColumn[columnIndex2] === void 0 || size > longestCellByColumn[columnIndex2]) {
27
- longestCellByColumn[columnIndex2] = size;
28
- }
29
- }
30
- row2.push(cell);
31
- }
32
- cellMatrix[rowIndex] = row2;
33
- sizeMatrix[rowIndex] = sizes2;
34
- }
35
- let columnIndex = -1;
36
- if (typeof align === "object" && "length" in align) {
37
- while (++columnIndex < mostCellsPerRow) {
38
- alignments[columnIndex] = toAlignment(align[columnIndex]);
39
- }
40
- } else {
41
- const code = toAlignment(align);
42
- while (++columnIndex < mostCellsPerRow) {
43
- alignments[columnIndex] = code;
44
- }
45
- }
46
- columnIndex = -1;
47
- const row = [];
48
- const sizes = [];
49
- while (++columnIndex < mostCellsPerRow) {
50
- const code = alignments[columnIndex];
51
- let before = "";
52
- let after = "";
53
- if (code === 99) {
54
- before = ":";
55
- after = ":";
56
- } else if (code === 108) {
57
- before = ":";
58
- } else if (code === 114) {
59
- after = ":";
60
- }
61
- let size = settings.alignDelimiters === false ? 1 : Math.max(
62
- 1,
63
- longestCellByColumn[columnIndex] - before.length - after.length
64
- );
65
- const cell = before + "-".repeat(size) + after;
66
- if (settings.alignDelimiters !== false) {
67
- size = before.length + size + after.length;
68
- if (size > longestCellByColumn[columnIndex]) {
69
- longestCellByColumn[columnIndex] = size;
70
- }
71
- sizes[columnIndex] = size;
72
- }
73
- row[columnIndex] = cell;
74
- }
75
- cellMatrix.splice(1, 0, row);
76
- sizeMatrix.splice(1, 0, sizes);
77
- rowIndex = -1;
78
- const lines = [];
79
- while (++rowIndex < cellMatrix.length) {
80
- const row2 = cellMatrix[rowIndex];
81
- const sizes2 = sizeMatrix[rowIndex];
82
- columnIndex = -1;
83
- const line = [];
84
- while (++columnIndex < mostCellsPerRow) {
85
- const cell = row2[columnIndex] || "";
86
- let before = "";
87
- let after = "";
88
- if (settings.alignDelimiters !== false) {
89
- const size = longestCellByColumn[columnIndex] - (sizes2[columnIndex] || 0);
90
- const code = alignments[columnIndex];
91
- if (code === 114) {
92
- before = " ".repeat(size);
93
- } else if (code === 99) {
94
- if (size % 2) {
95
- before = " ".repeat(size / 2 + 0.5);
96
- after = " ".repeat(size / 2 - 0.5);
97
- } else {
98
- before = " ".repeat(size / 2);
99
- after = before;
100
- }
101
- } else {
102
- after = " ".repeat(size);
103
- }
104
- }
105
- if (settings.delimiterStart !== false && !columnIndex) {
106
- line.push("|");
107
- }
108
- if (settings.padding !== false && // Don’t add the opening space if we’re not aligning and the cell is
109
- // empty: there will be a closing space.
110
- !(settings.alignDelimiters === false && cell === "") && (settings.delimiterStart !== false || columnIndex)) {
111
- line.push(" ");
112
- }
113
- if (settings.alignDelimiters !== false) {
114
- line.push(before);
115
- }
116
- line.push(cell);
117
- if (settings.alignDelimiters !== false) {
118
- line.push(after);
119
- }
120
- if (settings.padding !== false) {
121
- line.push(" ");
122
- }
123
- if (settings.delimiterEnd !== false || columnIndex !== mostCellsPerRow - 1) {
124
- line.push("|");
125
- }
126
- }
127
- lines.push(
128
- settings.delimiterEnd === false ? line.join("").replace(/ +$/, "") : line.join("")
129
- );
130
- }
131
- return lines.join("\n");
132
- }
133
- function serialize(value) {
134
- return value === null || value === void 0 ? "" : String(value);
135
- }
136
- function toAlignment(value) {
137
- const code = typeof value === "string" ? value.codePointAt(0) : 0;
138
- return code === 67 || code === 99 ? 99 : code === 76 || code === 108 ? 108 : code === 82 || code === 114 ? 114 : 0;
139
- }
140
- export {
141
- markdownTable as m
142
- };
@@ -1,109 +0,0 @@
1
- import { e as escapeStringRegexp } from "./escape-string-regexp.mjs";
2
- import { c as convert } from "./unist-util-is.mjs";
3
- import { v as visitParents } from "./unist-util-visit-parents.mjs";
4
- function findAndReplace(tree, list, options) {
5
- const settings = options || {};
6
- const ignored = convert(settings.ignore || []);
7
- const pairs = toPairs(list);
8
- let pairIndex = -1;
9
- while (++pairIndex < pairs.length) {
10
- visitParents(tree, "text", visitor);
11
- }
12
- function visitor(node, parents) {
13
- let index = -1;
14
- let grandparent;
15
- while (++index < parents.length) {
16
- const parent = parents[index];
17
- const siblings = grandparent ? grandparent.children : void 0;
18
- if (ignored(
19
- parent,
20
- siblings ? siblings.indexOf(parent) : void 0,
21
- grandparent
22
- )) {
23
- return;
24
- }
25
- grandparent = parent;
26
- }
27
- if (grandparent) {
28
- return handler(node, parents);
29
- }
30
- }
31
- function handler(node, parents) {
32
- const parent = parents[parents.length - 1];
33
- const find = pairs[pairIndex][0];
34
- const replace = pairs[pairIndex][1];
35
- let start = 0;
36
- const siblings = parent.children;
37
- const index = siblings.indexOf(node);
38
- let change = false;
39
- let nodes = [];
40
- find.lastIndex = 0;
41
- let match = find.exec(node.value);
42
- while (match) {
43
- const position = match.index;
44
- const matchObject = {
45
- index: match.index,
46
- input: match.input,
47
- stack: [...parents, node]
48
- };
49
- let value = replace(...match, matchObject);
50
- if (typeof value === "string") {
51
- value = value.length > 0 ? { type: "text", value } : void 0;
52
- }
53
- if (value === false) {
54
- find.lastIndex = position + 1;
55
- } else {
56
- if (start !== position) {
57
- nodes.push({
58
- type: "text",
59
- value: node.value.slice(start, position)
60
- });
61
- }
62
- if (Array.isArray(value)) {
63
- nodes.push(...value);
64
- } else if (value) {
65
- nodes.push(value);
66
- }
67
- start = position + match[0].length;
68
- change = true;
69
- }
70
- if (!find.global) {
71
- break;
72
- }
73
- match = find.exec(node.value);
74
- }
75
- if (change) {
76
- if (start < node.value.length) {
77
- nodes.push({ type: "text", value: node.value.slice(start) });
78
- }
79
- parent.children.splice(index, 1, ...nodes);
80
- } else {
81
- nodes = [node];
82
- }
83
- return index + nodes.length;
84
- }
85
- }
86
- function toPairs(tupleOrList) {
87
- const result = [];
88
- if (!Array.isArray(tupleOrList)) {
89
- throw new TypeError("Expected find and replace tuple or list of tuples");
90
- }
91
- const list = !tupleOrList[0] || Array.isArray(tupleOrList[0]) ? tupleOrList : [tupleOrList];
92
- let index = -1;
93
- while (++index < list.length) {
94
- const tuple = list[index];
95
- result.push([toExpression(tuple[0]), toFunction(tuple[1])]);
96
- }
97
- return result;
98
- }
99
- function toExpression(find) {
100
- return typeof find === "string" ? new RegExp(escapeStringRegexp(find), "g") : find;
101
- }
102
- function toFunction(replace) {
103
- return typeof replace === "function" ? replace : function() {
104
- return replace;
105
- };
106
- }
107
- export {
108
- findAndReplace as f
109
- };