@class101/cdn-ui-system 0.0.11 → 0.0.12

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.
@@ -1,2170 +1,73 @@
1
1
  import {
2
2
  convertToSecureUrl
3
- } from "../../chunk-QNI6E7MT.js";
3
+ } from "../../chunk-WVIP3U54.js";
4
4
  import {
5
5
  React,
6
- __commonJS,
7
- __require,
8
- __toModule,
9
6
  init_react_shim
10
7
  } from "../../chunk-VIIHQGZ3.js";
11
8
 
12
- // node_modules/react-linkify/dist/decorators/defaultComponentDecorator.js
13
- var require_defaultComponentDecorator = __commonJS({
14
- "node_modules/react-linkify/dist/decorators/defaultComponentDecorator.js"(exports) {
15
- init_react_shim();
16
- "use strict";
17
- Object.defineProperty(exports, "__esModule", {
18
- value: true
19
- });
20
- var _react = __require("react");
21
- var React2 = _interopRequireWildcard(_react);
22
- function _interopRequireWildcard(obj) {
23
- if (obj && obj.__esModule) {
24
- return obj;
25
- } else {
26
- var newObj = {};
27
- if (obj != null) {
28
- for (var key in obj) {
29
- if (Object.prototype.hasOwnProperty.call(obj, key))
30
- newObj[key] = obj[key];
31
- }
32
- }
33
- newObj.default = obj;
34
- return newObj;
35
- }
36
- }
37
- exports.default = function(decoratedHref, decoratedText, key) {
38
- return React2.createElement("a", { href: decoratedHref, key }, decoratedText);
39
- };
40
- }
41
- });
42
-
43
- // node_modules/react-linkify/dist/decorators/defaultHrefDecorator.js
44
- var require_defaultHrefDecorator = __commonJS({
45
- "node_modules/react-linkify/dist/decorators/defaultHrefDecorator.js"(exports) {
46
- init_react_shim();
47
- "use strict";
48
- Object.defineProperty(exports, "__esModule", {
49
- value: true
50
- });
51
- exports.default = function(href) {
52
- return href;
53
- };
54
- }
55
- });
56
-
57
- // node_modules/uc.micro/properties/Any/regex.js
58
- var require_regex = __commonJS({
59
- "node_modules/uc.micro/properties/Any/regex.js"(exports, module) {
60
- init_react_shim();
61
- module.exports = /[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
62
- }
63
- });
64
-
65
- // node_modules/uc.micro/categories/Cc/regex.js
66
- var require_regex2 = __commonJS({
67
- "node_modules/uc.micro/categories/Cc/regex.js"(exports, module) {
68
- init_react_shim();
69
- module.exports = /[\0-\x1F\x7F-\x9F]/;
70
- }
71
- });
72
-
73
- // node_modules/uc.micro/categories/Z/regex.js
74
- var require_regex3 = __commonJS({
75
- "node_modules/uc.micro/categories/Z/regex.js"(exports, module) {
76
- init_react_shim();
77
- module.exports = /[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;
78
- }
79
- });
80
-
81
- // node_modules/uc.micro/categories/P/regex.js
82
- var require_regex4 = __commonJS({
83
- "node_modules/uc.micro/categories/P/regex.js"(exports, module) {
84
- init_react_shim();
85
- module.exports = /[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;
86
- }
87
- });
88
-
89
- // node_modules/linkify-it/lib/re.js
90
- var require_re = __commonJS({
91
- "node_modules/linkify-it/lib/re.js"(exports, module) {
92
- init_react_shim();
93
- "use strict";
94
- module.exports = function(opts) {
95
- var re = {};
96
- re.src_Any = require_regex().source;
97
- re.src_Cc = require_regex2().source;
98
- re.src_Z = require_regex3().source;
99
- re.src_P = require_regex4().source;
100
- re.src_ZPCc = [re.src_Z, re.src_P, re.src_Cc].join("|");
101
- re.src_ZCc = [re.src_Z, re.src_Cc].join("|");
102
- var text_separators = "[><\uFF5C]";
103
- re.src_pseudo_letter = "(?:(?!" + text_separators + "|" + re.src_ZPCc + ")" + re.src_Any + ")";
104
- re.src_ip4 = "(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)";
105
- re.src_auth = "(?:(?:(?!" + re.src_ZCc + "|[@/\\[\\]()]).)+@)?";
106
- re.src_port = "(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?";
107
- re.src_host_terminator = "(?=$|" + text_separators + "|" + re.src_ZPCc + ")(?!-|_|:\\d|\\.-|\\.(?!$|" + re.src_ZPCc + "))";
108
- re.src_path = "(?:[/?#](?:(?!" + re.src_ZCc + "|" + text_separators + `|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!` + re.src_ZCc + "|\\]).)*\\]|\\((?:(?!" + re.src_ZCc + "|[)]).)*\\)|\\{(?:(?!" + re.src_ZCc + '|[}]).)*\\}|\\"(?:(?!' + re.src_ZCc + `|["]).)+\\"|\\'(?:(?!` + re.src_ZCc + "|[']).)+\\'|\\'(?=" + re.src_pseudo_letter + "|[-]).|\\.{2,4}[a-zA-Z0-9%/]|\\.(?!" + re.src_ZCc + "|[.]).|" + (opts && opts["---"] ? "\\-(?!--(?:[^-]|$))(?:-*)|" : "\\-+|") + "\\,(?!" + re.src_ZCc + ").|\\!(?!" + re.src_ZCc + "|[!]).|\\?(?!" + re.src_ZCc + "|[?]).)+|\\/)?";
109
- re.src_email_name = '[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*';
110
- re.src_xn = "xn--[a-z0-9\\-]{1,59}";
111
- re.src_domain_root = "(?:" + re.src_xn + "|" + re.src_pseudo_letter + "{1,63})";
112
- re.src_domain = "(?:" + re.src_xn + "|(?:" + re.src_pseudo_letter + ")|(?:" + re.src_pseudo_letter + "(?:-|" + re.src_pseudo_letter + "){0,61}" + re.src_pseudo_letter + "))";
113
- re.src_host = "(?:(?:(?:(?:" + re.src_domain + ")\\.)*" + re.src_domain + "))";
114
- re.tpl_host_fuzzy = "(?:" + re.src_ip4 + "|(?:(?:(?:" + re.src_domain + ")\\.)+(?:%TLDS%)))";
115
- re.tpl_host_no_ip_fuzzy = "(?:(?:(?:" + re.src_domain + ")\\.)+(?:%TLDS%))";
116
- re.src_host_strict = re.src_host + re.src_host_terminator;
117
- re.tpl_host_fuzzy_strict = re.tpl_host_fuzzy + re.src_host_terminator;
118
- re.src_host_port_strict = re.src_host + re.src_port + re.src_host_terminator;
119
- re.tpl_host_port_fuzzy_strict = re.tpl_host_fuzzy + re.src_port + re.src_host_terminator;
120
- re.tpl_host_port_no_ip_fuzzy_strict = re.tpl_host_no_ip_fuzzy + re.src_port + re.src_host_terminator;
121
- re.tpl_host_fuzzy_test = "localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:" + re.src_ZPCc + "|>|$))";
122
- re.tpl_email_fuzzy = "(^|" + text_separators + '|"|\\(|' + re.src_ZCc + ")(" + re.src_email_name + "@" + re.tpl_host_fuzzy_strict + ")";
123
- re.tpl_link_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|" + re.src_ZPCc + "))((?![$+<=>^`|\uFF5C])" + re.tpl_host_port_fuzzy_strict + re.src_path + ")";
124
- re.tpl_link_no_ip_fuzzy = "(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|" + re.src_ZPCc + "))((?![$+<=>^`|\uFF5C])" + re.tpl_host_port_no_ip_fuzzy_strict + re.src_path + ")";
125
- return re;
126
- };
127
- }
128
- });
129
-
130
- // node_modules/linkify-it/index.js
131
- var require_linkify_it = __commonJS({
132
- "node_modules/linkify-it/index.js"(exports, module) {
133
- init_react_shim();
134
- "use strict";
135
- function assign(obj) {
136
- var sources = Array.prototype.slice.call(arguments, 1);
137
- sources.forEach(function(source) {
138
- if (!source) {
139
- return;
140
- }
141
- Object.keys(source).forEach(function(key) {
142
- obj[key] = source[key];
143
- });
144
- });
145
- return obj;
146
- }
147
- function _class(obj) {
148
- return Object.prototype.toString.call(obj);
149
- }
150
- function isString(obj) {
151
- return _class(obj) === "[object String]";
152
- }
153
- function isObject(obj) {
154
- return _class(obj) === "[object Object]";
155
- }
156
- function isRegExp(obj) {
157
- return _class(obj) === "[object RegExp]";
158
- }
159
- function isFunction(obj) {
160
- return _class(obj) === "[object Function]";
161
- }
162
- function escapeRE(str) {
163
- return str.replace(/[.?*+^$[\]\\(){}|-]/g, "\\$&");
164
- }
165
- var defaultOptions = {
166
- fuzzyLink: true,
167
- fuzzyEmail: true,
168
- fuzzyIP: false
169
- };
170
- function isOptionsObj(obj) {
171
- return Object.keys(obj || {}).reduce(function(acc, k) {
172
- return acc || defaultOptions.hasOwnProperty(k);
173
- }, false);
174
- }
175
- var defaultSchemas = {
176
- "http:": {
177
- validate: function(text, pos, self) {
178
- var tail = text.slice(pos);
179
- if (!self.re.http) {
180
- self.re.http = new RegExp("^\\/\\/" + self.re.src_auth + self.re.src_host_port_strict + self.re.src_path, "i");
181
- }
182
- if (self.re.http.test(tail)) {
183
- return tail.match(self.re.http)[0].length;
184
- }
185
- return 0;
186
- }
187
- },
188
- "https:": "http:",
189
- "ftp:": "http:",
190
- "//": {
191
- validate: function(text, pos, self) {
192
- var tail = text.slice(pos);
193
- if (!self.re.no_http) {
194
- self.re.no_http = new RegExp("^" + self.re.src_auth + "(?:localhost|(?:(?:" + self.re.src_domain + ")\\.)+" + self.re.src_domain_root + ")" + self.re.src_port + self.re.src_host_terminator + self.re.src_path, "i");
195
- }
196
- if (self.re.no_http.test(tail)) {
197
- if (pos >= 3 && text[pos - 3] === ":") {
198
- return 0;
199
- }
200
- if (pos >= 3 && text[pos - 3] === "/") {
201
- return 0;
202
- }
203
- return tail.match(self.re.no_http)[0].length;
204
- }
205
- return 0;
206
- }
207
- },
208
- "mailto:": {
209
- validate: function(text, pos, self) {
210
- var tail = text.slice(pos);
211
- if (!self.re.mailto) {
212
- self.re.mailto = new RegExp("^" + self.re.src_email_name + "@" + self.re.src_host_strict, "i");
213
- }
214
- if (self.re.mailto.test(tail)) {
215
- return tail.match(self.re.mailto)[0].length;
216
- }
217
- return 0;
218
- }
219
- }
220
- };
221
- var tlds_2ch_src_re = "a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]";
222
- var tlds_default = "biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");
223
- function resetScanCache(self) {
224
- self.__index__ = -1;
225
- self.__text_cache__ = "";
226
- }
227
- function createValidator(re) {
228
- return function(text, pos) {
229
- var tail = text.slice(pos);
230
- if (re.test(tail)) {
231
- return tail.match(re)[0].length;
232
- }
233
- return 0;
234
- };
235
- }
236
- function createNormalizer() {
237
- return function(match, self) {
238
- self.normalize(match);
239
- };
240
- }
241
- function compile(self) {
242
- var re = self.re = require_re()(self.__opts__);
243
- var tlds = self.__tlds__.slice();
244
- self.onCompile();
245
- if (!self.__tlds_replaced__) {
246
- tlds.push(tlds_2ch_src_re);
247
- }
248
- tlds.push(re.src_xn);
249
- re.src_tlds = tlds.join("|");
250
- function untpl(tpl) {
251
- return tpl.replace("%TLDS%", re.src_tlds);
252
- }
253
- re.email_fuzzy = RegExp(untpl(re.tpl_email_fuzzy), "i");
254
- re.link_fuzzy = RegExp(untpl(re.tpl_link_fuzzy), "i");
255
- re.link_no_ip_fuzzy = RegExp(untpl(re.tpl_link_no_ip_fuzzy), "i");
256
- re.host_fuzzy_test = RegExp(untpl(re.tpl_host_fuzzy_test), "i");
257
- var aliases = [];
258
- self.__compiled__ = {};
259
- function schemaError(name, val) {
260
- throw new Error('(LinkifyIt) Invalid schema "' + name + '": ' + val);
261
- }
262
- Object.keys(self.__schemas__).forEach(function(name) {
263
- var val = self.__schemas__[name];
264
- if (val === null) {
265
- return;
266
- }
267
- var compiled = { validate: null, link: null };
268
- self.__compiled__[name] = compiled;
269
- if (isObject(val)) {
270
- if (isRegExp(val.validate)) {
271
- compiled.validate = createValidator(val.validate);
272
- } else if (isFunction(val.validate)) {
273
- compiled.validate = val.validate;
274
- } else {
275
- schemaError(name, val);
276
- }
277
- if (isFunction(val.normalize)) {
278
- compiled.normalize = val.normalize;
279
- } else if (!val.normalize) {
280
- compiled.normalize = createNormalizer();
281
- } else {
282
- schemaError(name, val);
283
- }
284
- return;
285
- }
286
- if (isString(val)) {
287
- aliases.push(name);
288
- return;
289
- }
290
- schemaError(name, val);
291
- });
292
- aliases.forEach(function(alias) {
293
- if (!self.__compiled__[self.__schemas__[alias]]) {
294
- return;
295
- }
296
- self.__compiled__[alias].validate = self.__compiled__[self.__schemas__[alias]].validate;
297
- self.__compiled__[alias].normalize = self.__compiled__[self.__schemas__[alias]].normalize;
298
- });
299
- self.__compiled__[""] = { validate: null, normalize: createNormalizer() };
300
- var slist = Object.keys(self.__compiled__).filter(function(name) {
301
- return name.length > 0 && self.__compiled__[name];
302
- }).map(escapeRE).join("|");
303
- self.re.schema_test = RegExp("(^|(?!_)(?:[><\uFF5C]|" + re.src_ZPCc + "))(" + slist + ")", "i");
304
- self.re.schema_search = RegExp("(^|(?!_)(?:[><\uFF5C]|" + re.src_ZPCc + "))(" + slist + ")", "ig");
305
- self.re.pretest = RegExp("(" + self.re.schema_test.source + ")|(" + self.re.host_fuzzy_test.source + ")|@", "i");
306
- resetScanCache(self);
307
- }
308
- function Match(self, shift) {
309
- var start = self.__index__, end = self.__last_index__, text = self.__text_cache__.slice(start, end);
310
- this.schema = self.__schema__.toLowerCase();
311
- this.index = start + shift;
312
- this.lastIndex = end + shift;
313
- this.raw = text;
314
- this.text = text;
315
- this.url = text;
316
- }
317
- function createMatch(self, shift) {
318
- var match = new Match(self, shift);
319
- self.__compiled__[match.schema].normalize(match, self);
320
- return match;
321
- }
322
- function LinkifyIt(schemas, options) {
323
- if (!(this instanceof LinkifyIt)) {
324
- return new LinkifyIt(schemas, options);
325
- }
326
- if (!options) {
327
- if (isOptionsObj(schemas)) {
328
- options = schemas;
329
- schemas = {};
330
- }
331
- }
332
- this.__opts__ = assign({}, defaultOptions, options);
333
- this.__index__ = -1;
334
- this.__last_index__ = -1;
335
- this.__schema__ = "";
336
- this.__text_cache__ = "";
337
- this.__schemas__ = assign({}, defaultSchemas, schemas);
338
- this.__compiled__ = {};
339
- this.__tlds__ = tlds_default;
340
- this.__tlds_replaced__ = false;
341
- this.re = {};
342
- compile(this);
343
- }
344
- LinkifyIt.prototype.add = function add(schema, definition) {
345
- this.__schemas__[schema] = definition;
346
- compile(this);
347
- return this;
348
- };
349
- LinkifyIt.prototype.set = function set(options) {
350
- this.__opts__ = assign(this.__opts__, options);
351
- return this;
352
- };
353
- LinkifyIt.prototype.test = function test(text) {
354
- this.__text_cache__ = text;
355
- this.__index__ = -1;
356
- if (!text.length) {
357
- return false;
358
- }
359
- var m, ml, me, len, shift, next, re, tld_pos, at_pos;
360
- if (this.re.schema_test.test(text)) {
361
- re = this.re.schema_search;
362
- re.lastIndex = 0;
363
- while ((m = re.exec(text)) !== null) {
364
- len = this.testSchemaAt(text, m[2], re.lastIndex);
365
- if (len) {
366
- this.__schema__ = m[2];
367
- this.__index__ = m.index + m[1].length;
368
- this.__last_index__ = m.index + m[0].length + len;
369
- break;
370
- }
371
- }
372
- }
373
- if (this.__opts__.fuzzyLink && this.__compiled__["http:"]) {
374
- tld_pos = text.search(this.re.host_fuzzy_test);
375
- if (tld_pos >= 0) {
376
- if (this.__index__ < 0 || tld_pos < this.__index__) {
377
- if ((ml = text.match(this.__opts__.fuzzyIP ? this.re.link_fuzzy : this.re.link_no_ip_fuzzy)) !== null) {
378
- shift = ml.index + ml[1].length;
379
- if (this.__index__ < 0 || shift < this.__index__) {
380
- this.__schema__ = "";
381
- this.__index__ = shift;
382
- this.__last_index__ = ml.index + ml[0].length;
383
- }
384
- }
385
- }
386
- }
387
- }
388
- if (this.__opts__.fuzzyEmail && this.__compiled__["mailto:"]) {
389
- at_pos = text.indexOf("@");
390
- if (at_pos >= 0) {
391
- if ((me = text.match(this.re.email_fuzzy)) !== null) {
392
- shift = me.index + me[1].length;
393
- next = me.index + me[0].length;
394
- if (this.__index__ < 0 || shift < this.__index__ || shift === this.__index__ && next > this.__last_index__) {
395
- this.__schema__ = "mailto:";
396
- this.__index__ = shift;
397
- this.__last_index__ = next;
398
- }
399
- }
400
- }
401
- }
402
- return this.__index__ >= 0;
403
- };
404
- LinkifyIt.prototype.pretest = function pretest(text) {
405
- return this.re.pretest.test(text);
406
- };
407
- LinkifyIt.prototype.testSchemaAt = function testSchemaAt(text, schema, pos) {
408
- if (!this.__compiled__[schema.toLowerCase()]) {
409
- return 0;
410
- }
411
- return this.__compiled__[schema.toLowerCase()].validate(text, pos, this);
412
- };
413
- LinkifyIt.prototype.match = function match(text) {
414
- var shift = 0, result = [];
415
- if (this.__index__ >= 0 && this.__text_cache__ === text) {
416
- result.push(createMatch(this, shift));
417
- shift = this.__last_index__;
418
- }
419
- var tail = shift ? text.slice(shift) : text;
420
- while (this.test(tail)) {
421
- result.push(createMatch(this, shift));
422
- tail = tail.slice(this.__last_index__);
423
- shift += this.__last_index__;
424
- }
425
- if (result.length) {
426
- return result;
427
- }
428
- return null;
429
- };
430
- LinkifyIt.prototype.tlds = function tlds(list, keepOld) {
431
- list = Array.isArray(list) ? list : [list];
432
- if (!keepOld) {
433
- this.__tlds__ = list.slice();
434
- this.__tlds_replaced__ = true;
435
- compile(this);
436
- return this;
437
- }
438
- this.__tlds__ = this.__tlds__.concat(list).sort().filter(function(el, idx, arr) {
439
- return el !== arr[idx - 1];
440
- }).reverse();
441
- compile(this);
442
- return this;
443
- };
444
- LinkifyIt.prototype.normalize = function normalize(match) {
445
- if (!match.schema) {
446
- match.url = "http://" + match.url;
447
- }
448
- if (match.schema === "mailto:" && !/^mailto:/i.test(match.url)) {
449
- match.url = "mailto:" + match.url;
450
- }
451
- };
452
- LinkifyIt.prototype.onCompile = function onCompile() {
453
- };
454
- module.exports = LinkifyIt;
455
- }
456
- });
9
+ // libs/shared/ui-system/src/lib/Linkify/Linkify.tsx
10
+ init_react_shim();
457
11
 
458
- // node_modules/tlds/index.json
459
- var require_tlds = __commonJS({
460
- "node_modules/tlds/index.json"(exports, module) {
461
- module.exports = [
462
- "aaa",
463
- "aarp",
464
- "abarth",
465
- "abb",
466
- "abbott",
467
- "abbvie",
468
- "abc",
469
- "able",
470
- "abogado",
471
- "abudhabi",
472
- "ac",
473
- "academy",
474
- "accenture",
475
- "accountant",
476
- "accountants",
477
- "aco",
478
- "actor",
479
- "ad",
480
- "adac",
481
- "ads",
482
- "adult",
483
- "ae",
484
- "aeg",
485
- "aero",
486
- "aetna",
487
- "af",
488
- "afamilycompany",
489
- "afl",
490
- "africa",
491
- "ag",
492
- "agakhan",
493
- "agency",
494
- "ai",
495
- "aig",
496
- "airbus",
497
- "airforce",
498
- "airtel",
499
- "akdn",
500
- "al",
501
- "alfaromeo",
502
- "alibaba",
503
- "alipay",
504
- "allfinanz",
505
- "allstate",
506
- "ally",
507
- "alsace",
508
- "alstom",
509
- "am",
510
- "amazon",
511
- "americanexpress",
512
- "americanfamily",
513
- "amex",
514
- "amfam",
515
- "amica",
516
- "amsterdam",
517
- "analytics",
518
- "android",
519
- "anquan",
520
- "anz",
521
- "ao",
522
- "aol",
523
- "apartments",
524
- "app",
525
- "apple",
526
- "aq",
527
- "aquarelle",
528
- "ar",
529
- "arab",
530
- "aramco",
531
- "archi",
532
- "army",
533
- "arpa",
534
- "art",
535
- "arte",
536
- "as",
537
- "asda",
538
- "asia",
539
- "associates",
540
- "at",
541
- "athleta",
542
- "attorney",
543
- "au",
544
- "auction",
545
- "audi",
546
- "audible",
547
- "audio",
548
- "auspost",
549
- "author",
550
- "auto",
551
- "autos",
552
- "avianca",
553
- "aw",
554
- "aws",
555
- "ax",
556
- "axa",
557
- "az",
558
- "azure",
559
- "ba",
560
- "baby",
561
- "baidu",
562
- "banamex",
563
- "bananarepublic",
564
- "band",
565
- "bank",
566
- "bar",
567
- "barcelona",
568
- "barclaycard",
569
- "barclays",
570
- "barefoot",
571
- "bargains",
572
- "baseball",
573
- "basketball",
574
- "bauhaus",
575
- "bayern",
576
- "bb",
577
- "bbc",
578
- "bbt",
579
- "bbva",
580
- "bcg",
581
- "bcn",
582
- "bd",
583
- "be",
584
- "beats",
585
- "beauty",
586
- "beer",
587
- "bentley",
588
- "berlin",
589
- "best",
590
- "bestbuy",
591
- "bet",
592
- "bf",
593
- "bg",
594
- "bh",
595
- "bharti",
596
- "bi",
597
- "bible",
598
- "bid",
599
- "bike",
600
- "bing",
601
- "bingo",
602
- "bio",
603
- "biz",
604
- "bj",
605
- "black",
606
- "blackfriday",
607
- "blockbuster",
608
- "blog",
609
- "bloomberg",
610
- "blue",
611
- "bm",
612
- "bms",
613
- "bmw",
614
- "bn",
615
- "bnpparibas",
616
- "bo",
617
- "boats",
618
- "boehringer",
619
- "bofa",
620
- "bom",
621
- "bond",
622
- "boo",
623
- "book",
624
- "booking",
625
- "bosch",
626
- "bostik",
627
- "boston",
628
- "bot",
629
- "boutique",
630
- "box",
631
- "br",
632
- "bradesco",
633
- "bridgestone",
634
- "broadway",
635
- "broker",
636
- "brother",
637
- "brussels",
638
- "bs",
639
- "bt",
640
- "budapest",
641
- "bugatti",
642
- "build",
643
- "builders",
644
- "business",
645
- "buy",
646
- "buzz",
647
- "bv",
648
- "bw",
649
- "by",
650
- "bz",
651
- "bzh",
652
- "ca",
653
- "cab",
654
- "cafe",
655
- "cal",
656
- "call",
657
- "calvinklein",
658
- "cam",
659
- "camera",
660
- "camp",
661
- "cancerresearch",
662
- "canon",
663
- "capetown",
664
- "capital",
665
- "capitalone",
666
- "car",
667
- "caravan",
668
- "cards",
669
- "care",
670
- "career",
671
- "careers",
672
- "cars",
673
- "casa",
674
- "case",
675
- "cash",
676
- "casino",
677
- "cat",
678
- "catering",
679
- "catholic",
680
- "cba",
681
- "cbn",
682
- "cbre",
683
- "cbs",
684
- "cc",
685
- "cd",
686
- "center",
687
- "ceo",
688
- "cern",
689
- "cf",
690
- "cfa",
691
- "cfd",
692
- "cg",
693
- "ch",
694
- "chanel",
695
- "channel",
696
- "charity",
697
- "chase",
698
- "chat",
699
- "cheap",
700
- "chintai",
701
- "christmas",
702
- "chrome",
703
- "church",
704
- "ci",
705
- "cipriani",
706
- "circle",
707
- "cisco",
708
- "citadel",
709
- "citi",
710
- "citic",
711
- "city",
712
- "cityeats",
713
- "ck",
714
- "cl",
715
- "claims",
716
- "cleaning",
717
- "click",
718
- "clinic",
719
- "clinique",
720
- "clothing",
721
- "cloud",
722
- "club",
723
- "clubmed",
724
- "cm",
725
- "cn",
726
- "co",
727
- "coach",
728
- "codes",
729
- "coffee",
730
- "college",
731
- "cologne",
732
- "com",
733
- "comcast",
734
- "commbank",
735
- "community",
736
- "company",
737
- "compare",
738
- "computer",
739
- "comsec",
740
- "condos",
741
- "construction",
742
- "consulting",
743
- "contact",
744
- "contractors",
745
- "cooking",
746
- "cookingchannel",
747
- "cool",
748
- "coop",
749
- "corsica",
750
- "country",
751
- "coupon",
752
- "coupons",
753
- "courses",
754
- "cpa",
755
- "cr",
756
- "credit",
757
- "creditcard",
758
- "creditunion",
759
- "cricket",
760
- "crown",
761
- "crs",
762
- "cruise",
763
- "cruises",
764
- "csc",
765
- "cu",
766
- "cuisinella",
767
- "cv",
768
- "cw",
769
- "cx",
770
- "cy",
771
- "cymru",
772
- "cyou",
773
- "cz",
774
- "dabur",
775
- "dad",
776
- "dance",
777
- "data",
778
- "date",
779
- "dating",
780
- "datsun",
781
- "day",
782
- "dclk",
783
- "dds",
784
- "de",
785
- "deal",
786
- "dealer",
787
- "deals",
788
- "degree",
789
- "delivery",
790
- "dell",
791
- "deloitte",
792
- "delta",
793
- "democrat",
794
- "dental",
795
- "dentist",
796
- "desi",
797
- "design",
798
- "dev",
799
- "dhl",
800
- "diamonds",
801
- "diet",
802
- "digital",
803
- "direct",
804
- "directory",
805
- "discount",
806
- "discover",
807
- "dish",
808
- "diy",
809
- "dj",
810
- "dk",
811
- "dm",
812
- "dnp",
813
- "do",
814
- "docs",
815
- "doctor",
816
- "dog",
817
- "domains",
818
- "dot",
819
- "download",
820
- "drive",
821
- "dtv",
822
- "dubai",
823
- "duck",
824
- "dunlop",
825
- "dupont",
826
- "durban",
827
- "dvag",
828
- "dvr",
829
- "dz",
830
- "earth",
831
- "eat",
832
- "ec",
833
- "eco",
834
- "edeka",
835
- "edu",
836
- "education",
837
- "ee",
838
- "eg",
839
- "email",
840
- "emerck",
841
- "energy",
842
- "engineer",
843
- "engineering",
844
- "enterprises",
845
- "epson",
846
- "equipment",
847
- "er",
848
- "ericsson",
849
- "erni",
850
- "es",
851
- "esq",
852
- "estate",
853
- "et",
854
- "etisalat",
855
- "eu",
856
- "eurovision",
857
- "eus",
858
- "events",
859
- "exchange",
860
- "expert",
861
- "exposed",
862
- "express",
863
- "extraspace",
864
- "fage",
865
- "fail",
866
- "fairwinds",
867
- "faith",
868
- "family",
869
- "fan",
870
- "fans",
871
- "farm",
872
- "farmers",
873
- "fashion",
874
- "fast",
875
- "fedex",
876
- "feedback",
877
- "ferrari",
878
- "ferrero",
879
- "fi",
880
- "fiat",
881
- "fidelity",
882
- "fido",
883
- "film",
884
- "final",
885
- "finance",
886
- "financial",
887
- "fire",
888
- "firestone",
889
- "firmdale",
890
- "fish",
891
- "fishing",
892
- "fit",
893
- "fitness",
894
- "fj",
895
- "fk",
896
- "flickr",
897
- "flights",
898
- "flir",
899
- "florist",
900
- "flowers",
901
- "fly",
902
- "fm",
903
- "fo",
904
- "foo",
905
- "food",
906
- "foodnetwork",
907
- "football",
908
- "ford",
909
- "forex",
910
- "forsale",
911
- "forum",
912
- "foundation",
913
- "fox",
914
- "fr",
915
- "free",
916
- "fresenius",
917
- "frl",
918
- "frogans",
919
- "frontdoor",
920
- "frontier",
921
- "ftr",
922
- "fujitsu",
923
- "fun",
924
- "fund",
925
- "furniture",
926
- "futbol",
927
- "fyi",
928
- "ga",
929
- "gal",
930
- "gallery",
931
- "gallo",
932
- "gallup",
933
- "game",
934
- "games",
935
- "gap",
936
- "garden",
937
- "gay",
938
- "gb",
939
- "gbiz",
940
- "gd",
941
- "gdn",
942
- "ge",
943
- "gea",
944
- "gent",
945
- "genting",
946
- "george",
947
- "gf",
948
- "gg",
949
- "ggee",
950
- "gh",
951
- "gi",
952
- "gift",
953
- "gifts",
954
- "gives",
955
- "giving",
956
- "gl",
957
- "glade",
958
- "glass",
959
- "gle",
960
- "global",
961
- "globo",
962
- "gm",
963
- "gmail",
964
- "gmbh",
965
- "gmo",
966
- "gmx",
967
- "gn",
968
- "godaddy",
969
- "gold",
970
- "goldpoint",
971
- "golf",
972
- "goo",
973
- "goodyear",
974
- "goog",
975
- "google",
976
- "gop",
977
- "got",
978
- "gov",
979
- "gp",
980
- "gq",
981
- "gr",
982
- "grainger",
983
- "graphics",
984
- "gratis",
985
- "green",
986
- "gripe",
987
- "grocery",
988
- "group",
989
- "gs",
990
- "gt",
991
- "gu",
992
- "guardian",
993
- "gucci",
994
- "guge",
995
- "guide",
996
- "guitars",
997
- "guru",
998
- "gw",
999
- "gy",
1000
- "hair",
1001
- "hamburg",
1002
- "hangout",
1003
- "haus",
1004
- "hbo",
1005
- "hdfc",
1006
- "hdfcbank",
1007
- "health",
1008
- "healthcare",
1009
- "help",
1010
- "helsinki",
1011
- "here",
1012
- "hermes",
1013
- "hgtv",
1014
- "hiphop",
1015
- "hisamitsu",
1016
- "hitachi",
1017
- "hiv",
1018
- "hk",
1019
- "hkt",
1020
- "hm",
1021
- "hn",
1022
- "hockey",
1023
- "holdings",
1024
- "holiday",
1025
- "homedepot",
1026
- "homegoods",
1027
- "homes",
1028
- "homesense",
1029
- "honda",
1030
- "horse",
1031
- "hospital",
1032
- "host",
1033
- "hosting",
1034
- "hot",
1035
- "hoteles",
1036
- "hotels",
1037
- "hotmail",
1038
- "house",
1039
- "how",
1040
- "hr",
1041
- "hsbc",
1042
- "ht",
1043
- "hu",
1044
- "hughes",
1045
- "hyatt",
1046
- "hyundai",
1047
- "ibm",
1048
- "icbc",
1049
- "ice",
1050
- "icu",
1051
- "id",
1052
- "ie",
1053
- "ieee",
1054
- "ifm",
1055
- "ikano",
1056
- "il",
1057
- "im",
1058
- "imamat",
1059
- "imdb",
1060
- "immo",
1061
- "immobilien",
1062
- "in",
1063
- "inc",
1064
- "industries",
1065
- "infiniti",
1066
- "info",
1067
- "ing",
1068
- "ink",
1069
- "institute",
1070
- "insurance",
1071
- "insure",
1072
- "int",
1073
- "international",
1074
- "intuit",
1075
- "investments",
1076
- "io",
1077
- "ipiranga",
1078
- "iq",
1079
- "ir",
1080
- "irish",
1081
- "is",
1082
- "ismaili",
1083
- "ist",
1084
- "istanbul",
1085
- "it",
1086
- "itau",
1087
- "itv",
1088
- "jaguar",
1089
- "java",
1090
- "jcb",
1091
- "je",
1092
- "jeep",
1093
- "jetzt",
1094
- "jewelry",
1095
- "jio",
1096
- "jll",
1097
- "jm",
1098
- "jmp",
1099
- "jnj",
1100
- "jo",
1101
- "jobs",
1102
- "joburg",
1103
- "jot",
1104
- "joy",
1105
- "jp",
1106
- "jpmorgan",
1107
- "jprs",
1108
- "juegos",
1109
- "juniper",
1110
- "kaufen",
1111
- "kddi",
1112
- "ke",
1113
- "kerryhotels",
1114
- "kerrylogistics",
1115
- "kerryproperties",
1116
- "kfh",
1117
- "kg",
1118
- "kh",
1119
- "ki",
1120
- "kia",
1121
- "kim",
1122
- "kinder",
1123
- "kindle",
1124
- "kitchen",
1125
- "kiwi",
1126
- "km",
1127
- "kn",
1128
- "koeln",
1129
- "komatsu",
1130
- "kosher",
1131
- "kp",
1132
- "kpmg",
1133
- "kpn",
1134
- "kr",
1135
- "krd",
1136
- "kred",
1137
- "kuokgroup",
1138
- "kw",
1139
- "ky",
1140
- "kyoto",
1141
- "kz",
1142
- "la",
1143
- "lacaixa",
1144
- "lamborghini",
1145
- "lamer",
1146
- "lancaster",
1147
- "lancia",
1148
- "land",
1149
- "landrover",
1150
- "lanxess",
1151
- "lasalle",
1152
- "lat",
1153
- "latino",
1154
- "latrobe",
1155
- "law",
1156
- "lawyer",
1157
- "lb",
1158
- "lc",
1159
- "lds",
1160
- "lease",
1161
- "leclerc",
1162
- "lefrak",
1163
- "legal",
1164
- "lego",
1165
- "lexus",
1166
- "lgbt",
1167
- "li",
1168
- "lidl",
1169
- "life",
1170
- "lifeinsurance",
1171
- "lifestyle",
1172
- "lighting",
1173
- "like",
1174
- "lilly",
1175
- "limited",
1176
- "limo",
1177
- "lincoln",
1178
- "linde",
1179
- "link",
1180
- "lipsy",
1181
- "live",
1182
- "living",
1183
- "lixil",
1184
- "lk",
1185
- "llc",
1186
- "llp",
1187
- "loan",
1188
- "loans",
1189
- "locker",
1190
- "locus",
1191
- "loft",
1192
- "lol",
1193
- "london",
1194
- "lotte",
1195
- "lotto",
1196
- "love",
1197
- "lpl",
1198
- "lplfinancial",
1199
- "lr",
1200
- "ls",
1201
- "lt",
1202
- "ltd",
1203
- "ltda",
1204
- "lu",
1205
- "lundbeck",
1206
- "luxe",
1207
- "luxury",
1208
- "lv",
1209
- "ly",
1210
- "ma",
1211
- "macys",
1212
- "madrid",
1213
- "maif",
1214
- "maison",
1215
- "makeup",
1216
- "man",
1217
- "management",
1218
- "mango",
1219
- "map",
1220
- "market",
1221
- "marketing",
1222
- "markets",
1223
- "marriott",
1224
- "marshalls",
1225
- "maserati",
1226
- "mattel",
1227
- "mba",
1228
- "mc",
1229
- "mckinsey",
1230
- "md",
1231
- "me",
1232
- "med",
1233
- "media",
1234
- "meet",
1235
- "melbourne",
1236
- "meme",
1237
- "memorial",
1238
- "men",
1239
- "menu",
1240
- "merckmsd",
1241
- "mg",
1242
- "mh",
1243
- "miami",
1244
- "microsoft",
1245
- "mil",
1246
- "mini",
1247
- "mint",
1248
- "mit",
1249
- "mitsubishi",
1250
- "mk",
1251
- "ml",
1252
- "mlb",
1253
- "mls",
1254
- "mm",
1255
- "mma",
1256
- "mn",
1257
- "mo",
1258
- "mobi",
1259
- "mobile",
1260
- "moda",
1261
- "moe",
1262
- "moi",
1263
- "mom",
1264
- "monash",
1265
- "money",
1266
- "monster",
1267
- "mormon",
1268
- "mortgage",
1269
- "moscow",
1270
- "moto",
1271
- "motorcycles",
1272
- "mov",
1273
- "movie",
1274
- "mp",
1275
- "mq",
1276
- "mr",
1277
- "ms",
1278
- "msd",
1279
- "mt",
1280
- "mtn",
1281
- "mtr",
1282
- "mu",
1283
- "museum",
1284
- "mutual",
1285
- "mv",
1286
- "mw",
1287
- "mx",
1288
- "my",
1289
- "mz",
1290
- "na",
1291
- "nab",
1292
- "nagoya",
1293
- "name",
1294
- "natura",
1295
- "navy",
1296
- "nba",
1297
- "nc",
1298
- "ne",
1299
- "nec",
1300
- "net",
1301
- "netbank",
1302
- "netflix",
1303
- "network",
1304
- "neustar",
1305
- "new",
1306
- "news",
1307
- "next",
1308
- "nextdirect",
1309
- "nexus",
1310
- "nf",
1311
- "nfl",
1312
- "ng",
1313
- "ngo",
1314
- "nhk",
1315
- "ni",
1316
- "nico",
1317
- "nike",
1318
- "nikon",
1319
- "ninja",
1320
- "nissan",
1321
- "nissay",
1322
- "nl",
1323
- "no",
1324
- "nokia",
1325
- "northwesternmutual",
1326
- "norton",
1327
- "now",
1328
- "nowruz",
1329
- "nowtv",
1330
- "np",
1331
- "nr",
1332
- "nra",
1333
- "nrw",
1334
- "ntt",
1335
- "nu",
1336
- "nyc",
1337
- "nz",
1338
- "obi",
1339
- "observer",
1340
- "off",
1341
- "office",
1342
- "okinawa",
1343
- "olayan",
1344
- "olayangroup",
1345
- "oldnavy",
1346
- "ollo",
1347
- "om",
1348
- "omega",
1349
- "one",
1350
- "ong",
1351
- "onl",
1352
- "online",
1353
- "ooo",
1354
- "open",
1355
- "oracle",
1356
- "orange",
1357
- "org",
1358
- "organic",
1359
- "origins",
1360
- "osaka",
1361
- "otsuka",
1362
- "ott",
1363
- "ovh",
1364
- "pa",
1365
- "page",
1366
- "panasonic",
1367
- "paris",
1368
- "pars",
1369
- "partners",
1370
- "parts",
1371
- "party",
1372
- "passagens",
1373
- "pay",
1374
- "pccw",
1375
- "pe",
1376
- "pet",
1377
- "pf",
1378
- "pfizer",
1379
- "pg",
1380
- "ph",
1381
- "pharmacy",
1382
- "phd",
1383
- "philips",
1384
- "phone",
1385
- "photo",
1386
- "photography",
1387
- "photos",
1388
- "physio",
1389
- "pics",
1390
- "pictet",
1391
- "pictures",
1392
- "pid",
1393
- "pin",
1394
- "ping",
1395
- "pink",
1396
- "pioneer",
1397
- "pizza",
1398
- "pk",
1399
- "pl",
1400
- "place",
1401
- "play",
1402
- "playstation",
1403
- "plumbing",
1404
- "plus",
1405
- "pm",
1406
- "pn",
1407
- "pnc",
1408
- "pohl",
1409
- "poker",
1410
- "politie",
1411
- "porn",
1412
- "post",
1413
- "pr",
1414
- "pramerica",
1415
- "praxi",
1416
- "press",
1417
- "prime",
1418
- "pro",
1419
- "prod",
1420
- "productions",
1421
- "prof",
1422
- "progressive",
1423
- "promo",
1424
- "properties",
1425
- "property",
1426
- "protection",
1427
- "pru",
1428
- "prudential",
1429
- "ps",
1430
- "pt",
1431
- "pub",
1432
- "pw",
1433
- "pwc",
1434
- "py",
1435
- "qa",
1436
- "qpon",
1437
- "quebec",
1438
- "quest",
1439
- "racing",
1440
- "radio",
1441
- "raid",
1442
- "re",
1443
- "read",
1444
- "realestate",
1445
- "realtor",
1446
- "realty",
1447
- "recipes",
1448
- "red",
1449
- "redstone",
1450
- "redumbrella",
1451
- "rehab",
1452
- "reise",
1453
- "reisen",
1454
- "reit",
1455
- "reliance",
1456
- "ren",
1457
- "rent",
1458
- "rentals",
1459
- "repair",
1460
- "report",
1461
- "republican",
1462
- "rest",
1463
- "restaurant",
1464
- "review",
1465
- "reviews",
1466
- "rexroth",
1467
- "rich",
1468
- "richardli",
1469
- "ricoh",
1470
- "ril",
1471
- "rio",
1472
- "rip",
1473
- "ro",
1474
- "rocher",
1475
- "rocks",
1476
- "rodeo",
1477
- "rogers",
1478
- "room",
1479
- "rs",
1480
- "rsvp",
1481
- "ru",
1482
- "rugby",
1483
- "ruhr",
1484
- "run",
1485
- "rw",
1486
- "rwe",
1487
- "ryukyu",
1488
- "sa",
1489
- "saarland",
1490
- "safe",
1491
- "safety",
1492
- "sakura",
1493
- "sale",
1494
- "salon",
1495
- "samsclub",
1496
- "samsung",
1497
- "sandvik",
1498
- "sandvikcoromant",
1499
- "sanofi",
1500
- "sap",
1501
- "sarl",
1502
- "sas",
1503
- "save",
1504
- "saxo",
1505
- "sb",
1506
- "sbi",
1507
- "sbs",
1508
- "sc",
1509
- "sca",
1510
- "scb",
1511
- "schaeffler",
1512
- "schmidt",
1513
- "scholarships",
1514
- "school",
1515
- "schule",
1516
- "schwarz",
1517
- "science",
1518
- "scjohnson",
1519
- "scot",
1520
- "sd",
1521
- "se",
1522
- "search",
1523
- "seat",
1524
- "secure",
1525
- "security",
1526
- "seek",
1527
- "select",
1528
- "sener",
1529
- "services",
1530
- "ses",
1531
- "seven",
1532
- "sew",
1533
- "sex",
1534
- "sexy",
1535
- "sfr",
1536
- "sg",
1537
- "sh",
1538
- "shangrila",
1539
- "sharp",
1540
- "shaw",
1541
- "shell",
1542
- "shia",
1543
- "shiksha",
1544
- "shoes",
1545
- "shop",
1546
- "shopping",
1547
- "shouji",
1548
- "show",
1549
- "showtime",
1550
- "si",
1551
- "silk",
1552
- "sina",
1553
- "singles",
1554
- "site",
1555
- "sj",
1556
- "sk",
1557
- "ski",
1558
- "skin",
1559
- "sky",
1560
- "skype",
1561
- "sl",
1562
- "sling",
1563
- "sm",
1564
- "smart",
1565
- "smile",
1566
- "sn",
1567
- "sncf",
1568
- "so",
1569
- "soccer",
1570
- "social",
1571
- "softbank",
1572
- "software",
1573
- "sohu",
1574
- "solar",
1575
- "solutions",
1576
- "song",
1577
- "sony",
1578
- "soy",
1579
- "spa",
1580
- "space",
1581
- "sport",
1582
- "spot",
1583
- "sr",
1584
- "srl",
1585
- "ss",
1586
- "st",
1587
- "stada",
1588
- "staples",
1589
- "star",
1590
- "statebank",
1591
- "statefarm",
1592
- "stc",
1593
- "stcgroup",
1594
- "stockholm",
1595
- "storage",
1596
- "store",
1597
- "stream",
1598
- "studio",
1599
- "study",
1600
- "style",
1601
- "su",
1602
- "sucks",
1603
- "supplies",
1604
- "supply",
1605
- "support",
1606
- "surf",
1607
- "surgery",
1608
- "suzuki",
1609
- "sv",
1610
- "swatch",
1611
- "swiss",
1612
- "sx",
1613
- "sy",
1614
- "sydney",
1615
- "systems",
1616
- "sz",
1617
- "tab",
1618
- "taipei",
1619
- "talk",
1620
- "taobao",
1621
- "target",
1622
- "tatamotors",
1623
- "tatar",
1624
- "tattoo",
1625
- "tax",
1626
- "taxi",
1627
- "tc",
1628
- "tci",
1629
- "td",
1630
- "tdk",
1631
- "team",
1632
- "tech",
1633
- "technology",
1634
- "tel",
1635
- "temasek",
1636
- "tennis",
1637
- "teva",
1638
- "tf",
1639
- "tg",
1640
- "th",
1641
- "thd",
1642
- "theater",
1643
- "theatre",
1644
- "tiaa",
1645
- "tickets",
1646
- "tienda",
1647
- "tiffany",
1648
- "tips",
1649
- "tires",
1650
- "tirol",
1651
- "tj",
1652
- "tjmaxx",
1653
- "tjx",
1654
- "tk",
1655
- "tkmaxx",
1656
- "tl",
1657
- "tm",
1658
- "tmall",
1659
- "tn",
1660
- "to",
1661
- "today",
1662
- "tokyo",
1663
- "tools",
1664
- "top",
1665
- "toray",
1666
- "toshiba",
1667
- "total",
1668
- "tours",
1669
- "town",
1670
- "toyota",
1671
- "toys",
1672
- "tr",
1673
- "trade",
1674
- "trading",
1675
- "training",
1676
- "travel",
1677
- "travelchannel",
1678
- "travelers",
1679
- "travelersinsurance",
1680
- "trust",
1681
- "trv",
1682
- "tt",
1683
- "tube",
1684
- "tui",
1685
- "tunes",
1686
- "tushu",
1687
- "tv",
1688
- "tvs",
1689
- "tw",
1690
- "tz",
1691
- "ua",
1692
- "ubank",
1693
- "ubs",
1694
- "ug",
1695
- "uk",
1696
- "unicom",
1697
- "university",
1698
- "uno",
1699
- "uol",
1700
- "ups",
1701
- "us",
1702
- "uy",
1703
- "uz",
1704
- "va",
1705
- "vacations",
1706
- "vana",
1707
- "vanguard",
1708
- "vc",
1709
- "ve",
1710
- "vegas",
1711
- "ventures",
1712
- "verisign",
1713
- "verm\xF6gensberater",
1714
- "verm\xF6gensberatung",
1715
- "versicherung",
1716
- "vet",
1717
- "vg",
1718
- "vi",
1719
- "viajes",
1720
- "video",
1721
- "vig",
1722
- "viking",
1723
- "villas",
1724
- "vin",
1725
- "vip",
1726
- "virgin",
1727
- "visa",
1728
- "vision",
1729
- "viva",
1730
- "vivo",
1731
- "vlaanderen",
1732
- "vn",
1733
- "vodka",
1734
- "volkswagen",
1735
- "volvo",
1736
- "vote",
1737
- "voting",
1738
- "voto",
1739
- "voyage",
1740
- "vu",
1741
- "vuelos",
1742
- "wales",
1743
- "walmart",
1744
- "walter",
1745
- "wang",
1746
- "wanggou",
1747
- "watch",
1748
- "watches",
1749
- "weather",
1750
- "weatherchannel",
1751
- "webcam",
1752
- "weber",
1753
- "website",
1754
- "wed",
1755
- "wedding",
1756
- "weibo",
1757
- "weir",
1758
- "wf",
1759
- "whoswho",
1760
- "wien",
1761
- "wiki",
1762
- "williamhill",
1763
- "win",
1764
- "windows",
1765
- "wine",
1766
- "winners",
1767
- "wme",
1768
- "wolterskluwer",
1769
- "woodside",
1770
- "work",
1771
- "works",
1772
- "world",
1773
- "wow",
1774
- "ws",
1775
- "wtc",
1776
- "wtf",
1777
- "xbox",
1778
- "xerox",
1779
- "xfinity",
1780
- "xihuan",
1781
- "xin",
1782
- "xxx",
1783
- "xyz",
1784
- "yachts",
1785
- "yahoo",
1786
- "yamaxun",
1787
- "yandex",
1788
- "ye",
1789
- "yodobashi",
1790
- "yoga",
1791
- "yokohama",
1792
- "you",
1793
- "youtube",
1794
- "yt",
1795
- "yun",
1796
- "za",
1797
- "zappos",
1798
- "zara",
1799
- "zero",
1800
- "zip",
1801
- "zm",
1802
- "zone",
1803
- "zuerich",
1804
- "zw",
1805
- "\u03B5\u03BB",
1806
- "\u03B5\u03C5",
1807
- "\u0431\u0433",
1808
- "\u0431\u0435\u043B",
1809
- "\u0434\u0435\u0442\u0438",
1810
- "\u0435\u044E",
1811
- "\u043A\u0430\u0442\u043E\u043B\u0438\u043A",
1812
- "\u043A\u043E\u043C",
1813
- "\u043C\u043A\u0434",
1814
- "\u043C\u043E\u043D",
1815
- "\u043C\u043E\u0441\u043A\u0432\u0430",
1816
- "\u043E\u043D\u043B\u0430\u0439\u043D",
1817
- "\u043E\u0440\u0433",
1818
- "\u0440\u0443\u0441",
1819
- "\u0440\u0444",
1820
- "\u0441\u0430\u0439\u0442",
1821
- "\u0441\u0440\u0431",
1822
- "\u0443\u043A\u0440",
1823
- "\u049B\u0430\u0437",
1824
- "\u0570\u0561\u0575",
1825
- "\u05D9\u05E9\u05E8\u05D0\u05DC",
1826
- "\u05E7\u05D5\u05DD",
1827
- "\u0627\u0628\u0648\u0638\u0628\u064A",
1828
- "\u0627\u062A\u0635\u0627\u0644\u0627\u062A",
1829
- "\u0627\u0631\u0627\u0645\u0643\u0648",
1830
- "\u0627\u0644\u0627\u0631\u062F\u0646",
1831
- "\u0627\u0644\u0628\u062D\u0631\u064A\u0646",
1832
- "\u0627\u0644\u062C\u0632\u0627\u0626\u0631",
1833
- "\u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629",
1834
- "\u0627\u0644\u0639\u0644\u064A\u0627\u0646",
1835
- "\u0627\u0644\u0645\u063A\u0631\u0628",
1836
- "\u0627\u0645\u0627\u0631\u0627\u062A",
1837
- "\u0627\u06CC\u0631\u0627\u0646",
1838
- "\u0628\u0627\u0631\u062A",
1839
- "\u0628\u0627\u0632\u0627\u0631",
1840
- "\u0628\u064A\u062A\u0643",
1841
- "\u0628\u06BE\u0627\u0631\u062A",
1842
- "\u062A\u0648\u0646\u0633",
1843
- "\u0633\u0648\u062F\u0627\u0646",
1844
- "\u0633\u0648\u0631\u064A\u0629",
1845
- "\u0634\u0628\u0643\u0629",
1846
- "\u0639\u0631\u0627\u0642",
1847
- "\u0639\u0631\u0628",
1848
- "\u0639\u0645\u0627\u0646",
1849
- "\u0641\u0644\u0633\u0637\u064A\u0646",
1850
- "\u0642\u0637\u0631",
1851
- "\u0643\u0627\u062B\u0648\u0644\u064A\u0643",
1852
- "\u0643\u0648\u0645",
1853
- "\u0645\u0635\u0631",
1854
- "\u0645\u0644\u064A\u0633\u064A\u0627",
1855
- "\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627",
1856
- "\u0645\u0648\u0642\u0639",
1857
- "\u0647\u0645\u0631\u0627\u0647",
1858
- "\u067E\u0627\u06A9\u0633\u062A\u0627\u0646",
1859
- "\u0680\u0627\u0631\u062A",
1860
- "\u0915\u0949\u092E",
1861
- "\u0928\u0947\u091F",
1862
- "\u092D\u093E\u0930\u0924",
1863
- "\u092D\u093E\u0930\u0924\u092E\u094D",
1864
- "\u092D\u093E\u0930\u094B\u0924",
1865
- "\u0938\u0902\u0917\u0920\u0928",
1866
- "\u09AC\u09BE\u0982\u09B2\u09BE",
1867
- "\u09AD\u09BE\u09B0\u09A4",
1868
- "\u09AD\u09BE\u09F0\u09A4",
1869
- "\u0A2D\u0A3E\u0A30\u0A24",
1870
- "\u0AAD\u0ABE\u0AB0\u0AA4",
1871
- "\u0B2D\u0B3E\u0B30\u0B24",
1872
- "\u0B87\u0BA8\u0BCD\u0BA4\u0BBF\u0BAF\u0BBE",
1873
- "\u0B87\u0BB2\u0B99\u0BCD\u0B95\u0BC8",
1874
- "\u0B9A\u0BBF\u0B99\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0BC2\u0BB0\u0BCD",
1875
- "\u0C2D\u0C3E\u0C30\u0C24\u0C4D",
1876
- "\u0CAD\u0CBE\u0CB0\u0CA4",
1877
- "\u0D2D\u0D3E\u0D30\u0D24\u0D02",
1878
- "\u0DBD\u0D82\u0D9A\u0DCF",
1879
- "\u0E04\u0E2D\u0E21",
1880
- "\u0E44\u0E17\u0E22",
1881
- "\u0EA5\u0EB2\u0EA7",
1882
- "\u10D2\u10D4",
1883
- "\u307F\u3093\u306A",
1884
- "\u30A2\u30DE\u30BE\u30F3",
1885
- "\u30AF\u30E9\u30A6\u30C9",
1886
- "\u30B0\u30FC\u30B0\u30EB",
1887
- "\u30B3\u30E0",
1888
- "\u30B9\u30C8\u30A2",
1889
- "\u30BB\u30FC\u30EB",
1890
- "\u30D5\u30A1\u30C3\u30B7\u30E7\u30F3",
1891
- "\u30DD\u30A4\u30F3\u30C8",
1892
- "\u4E16\u754C",
1893
- "\u4E2D\u4FE1",
1894
- "\u4E2D\u56FD",
1895
- "\u4E2D\u570B",
1896
- "\u4E2D\u6587\u7F51",
1897
- "\u4E9A\u9A6C\u900A",
1898
- "\u4F01\u4E1A",
1899
- "\u4F5B\u5C71",
1900
- "\u4FE1\u606F",
1901
- "\u5065\u5EB7",
1902
- "\u516B\u5366",
1903
- "\u516C\u53F8",
1904
- "\u516C\u76CA",
1905
- "\u53F0\u6E7E",
1906
- "\u53F0\u7063",
1907
- "\u5546\u57CE",
1908
- "\u5546\u5E97",
1909
- "\u5546\u6807",
1910
- "\u5609\u91CC",
1911
- "\u5609\u91CC\u5927\u9152\u5E97",
1912
- "\u5728\u7EBF",
1913
- "\u5927\u4F17\u6C7D\u8F66",
1914
- "\u5927\u62FF",
1915
- "\u5929\u4E3B\u6559",
1916
- "\u5A31\u4E50",
1917
- "\u5BB6\u96FB",
1918
- "\u5E7F\u4E1C",
1919
- "\u5FAE\u535A",
1920
- "\u6148\u5584",
1921
- "\u6211\u7231\u4F60",
1922
- "\u624B\u673A",
1923
- "\u62DB\u8058",
1924
- "\u653F\u52A1",
1925
- "\u653F\u5E9C",
1926
- "\u65B0\u52A0\u5761",
1927
- "\u65B0\u95FB",
1928
- "\u65F6\u5C1A",
1929
- "\u66F8\u7C4D",
1930
- "\u673A\u6784",
1931
- "\u6DE1\u9A6C\u9521",
1932
- "\u6E38\u620F",
1933
- "\u6FB3\u9580",
1934
- "\u70B9\u770B",
1935
- "\u79FB\u52A8",
1936
- "\u7EC4\u7EC7\u673A\u6784",
1937
- "\u7F51\u5740",
1938
- "\u7F51\u5E97",
1939
- "\u7F51\u7AD9",
1940
- "\u7F51\u7EDC",
1941
- "\u8054\u901A",
1942
- "\u8BFA\u57FA\u4E9A",
1943
- "\u8C37\u6B4C",
1944
- "\u8D2D\u7269",
1945
- "\u901A\u8CA9",
1946
- "\u96C6\u56E2",
1947
- "\u96FB\u8A0A\u76C8\u79D1",
1948
- "\u98DE\u5229\u6D66",
1949
- "\u98DF\u54C1",
1950
- "\u9910\u5385",
1951
- "\u9999\u683C\u91CC\u62C9",
1952
- "\u9999\u6E2F",
1953
- "\uB2F7\uB137",
1954
- "\uB2F7\uCEF4",
1955
- "\uC0BC\uC131",
1956
- "\uD55C\uAD6D"
1957
- ];
12
+ // node_modules/react-linkify-it/dist/react-linkify-it.esm.js
13
+ init_react_shim();
14
+ import React2, { Fragment, isValidElement, cloneElement } from "react";
15
+ var key = 0;
16
+ var getKey = () => ++key;
17
+ var ctrlCharactersRegex = /[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim;
18
+ function linkIt(text, linkComponent, linkRegex) {
19
+ const elements = [];
20
+ let rest = text;
21
+ while (true) {
22
+ const match = linkRegex.exec(rest);
23
+ if (!match || match[0] === void 0)
24
+ break;
25
+ const urlStartIndex = match.index;
26
+ const urlEndIndex = match.index + match[0].length;
27
+ const textBeforeMatch = rest.slice(0, urlStartIndex);
28
+ const url = rest.slice(urlStartIndex, urlEndIndex).replace(ctrlCharactersRegex, "");
29
+ rest = rest.slice(urlEndIndex);
30
+ textBeforeMatch && elements.push(textBeforeMatch);
31
+ elements.push(linkComponent(url, getKey()));
1958
32
  }
1959
- });
1960
-
1961
- // node_modules/react-linkify/dist/decorators/defaultMatchDecorator.js
1962
- var require_defaultMatchDecorator = __commonJS({
1963
- "node_modules/react-linkify/dist/decorators/defaultMatchDecorator.js"(exports) {
1964
- init_react_shim();
1965
- "use strict";
1966
- Object.defineProperty(exports, "__esModule", {
1967
- value: true
1968
- });
1969
- var _linkifyIt = require_linkify_it();
1970
- var _linkifyIt2 = _interopRequireDefault(_linkifyIt);
1971
- var _tlds = require_tlds();
1972
- var _tlds2 = _interopRequireDefault(_tlds);
1973
- function _interopRequireDefault(obj) {
1974
- return obj && obj.__esModule ? obj : { default: obj };
1975
- }
1976
- var linkify = new _linkifyIt2.default();
1977
- linkify.tlds(_tlds2.default);
1978
- exports.default = function(text) {
1979
- return linkify.match(text);
1980
- };
33
+ rest && elements.push(React2.createElement(Fragment, {
34
+ key: getKey()
35
+ }, rest));
36
+ if (elements.length === 0) {
37
+ return text;
1981
38
  }
1982
- });
1983
-
1984
- // node_modules/react-linkify/dist/decorators/defaultTextDecorator.js
1985
- var require_defaultTextDecorator = __commonJS({
1986
- "node_modules/react-linkify/dist/decorators/defaultTextDecorator.js"(exports) {
1987
- init_react_shim();
1988
- "use strict";
1989
- Object.defineProperty(exports, "__esModule", {
1990
- value: true
1991
- });
1992
- exports.default = function(text) {
1993
- return text;
1994
- };
39
+ return elements;
40
+ }
41
+ function findText(children, component, regex) {
42
+ if (typeof children === "string") {
43
+ return linkIt(children, component, regex);
1995
44
  }
1996
- });
1997
-
1998
- // node_modules/react-linkify/dist/components/Linkify.js
1999
- var require_Linkify = __commonJS({
2000
- "node_modules/react-linkify/dist/components/Linkify.js"(exports) {
2001
- init_react_shim();
2002
- "use strict";
2003
- Object.defineProperty(exports, "__esModule", {
2004
- value: true
2005
- });
2006
- var _createClass = function() {
2007
- function defineProperties(target, props) {
2008
- for (var i = 0; i < props.length; i++) {
2009
- var descriptor = props[i];
2010
- descriptor.enumerable = descriptor.enumerable || false;
2011
- descriptor.configurable = true;
2012
- if ("value" in descriptor)
2013
- descriptor.writable = true;
2014
- Object.defineProperty(target, descriptor.key, descriptor);
2015
- }
2016
- }
2017
- return function(Constructor, protoProps, staticProps) {
2018
- if (protoProps)
2019
- defineProperties(Constructor.prototype, protoProps);
2020
- if (staticProps)
2021
- defineProperties(Constructor, staticProps);
2022
- return Constructor;
2023
- };
2024
- }();
2025
- var _react = __require("react");
2026
- var React2 = _interopRequireWildcard(_react);
2027
- var _defaultComponentDecorator = require_defaultComponentDecorator();
2028
- var _defaultComponentDecorator2 = _interopRequireDefault(_defaultComponentDecorator);
2029
- var _defaultHrefDecorator = require_defaultHrefDecorator();
2030
- var _defaultHrefDecorator2 = _interopRequireDefault(_defaultHrefDecorator);
2031
- var _defaultMatchDecorator = require_defaultMatchDecorator();
2032
- var _defaultMatchDecorator2 = _interopRequireDefault(_defaultMatchDecorator);
2033
- var _defaultTextDecorator = require_defaultTextDecorator();
2034
- var _defaultTextDecorator2 = _interopRequireDefault(_defaultTextDecorator);
2035
- function _interopRequireDefault(obj) {
2036
- return obj && obj.__esModule ? obj : { default: obj };
2037
- }
2038
- function _interopRequireWildcard(obj) {
2039
- if (obj && obj.__esModule) {
2040
- return obj;
2041
- } else {
2042
- var newObj = {};
2043
- if (obj != null) {
2044
- for (var key in obj) {
2045
- if (Object.prototype.hasOwnProperty.call(obj, key))
2046
- newObj[key] = obj[key];
2047
- }
2048
- }
2049
- newObj.default = obj;
2050
- return newObj;
2051
- }
2052
- }
2053
- function _classCallCheck(instance, Constructor) {
2054
- if (!(instance instanceof Constructor)) {
2055
- throw new TypeError("Cannot call a class as a function");
2056
- }
2057
- }
2058
- function _possibleConstructorReturn(self, call) {
2059
- if (!self) {
2060
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2061
- }
2062
- return call && (typeof call === "object" || typeof call === "function") ? call : self;
2063
- }
2064
- function _inherits(subClass, superClass) {
2065
- if (typeof superClass !== "function" && superClass !== null) {
2066
- throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
2067
- }
2068
- subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
2069
- if (superClass)
2070
- Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
2071
- }
2072
- var Linkify2 = function(_React$Component) {
2073
- _inherits(Linkify3, _React$Component);
2074
- function Linkify3() {
2075
- _classCallCheck(this, Linkify3);
2076
- return _possibleConstructorReturn(this, (Linkify3.__proto__ || Object.getPrototypeOf(Linkify3)).apply(this, arguments));
2077
- }
2078
- _createClass(Linkify3, [{
2079
- key: "parseString",
2080
- value: function parseString(string) {
2081
- var _this2 = this;
2082
- if (string === "") {
2083
- return string;
2084
- }
2085
- var matches = this.props.matchDecorator(string);
2086
- if (!matches) {
2087
- return string;
2088
- }
2089
- var elements = [];
2090
- var lastIndex = 0;
2091
- matches.forEach(function(match, i) {
2092
- if (match.index > lastIndex) {
2093
- elements.push(string.substring(lastIndex, match.index));
2094
- }
2095
- var decoratedHref = _this2.props.hrefDecorator(match.url);
2096
- var decoratedText = _this2.props.textDecorator(match.text);
2097
- var decoratedComponent = _this2.props.componentDecorator(decoratedHref, decoratedText, i);
2098
- elements.push(decoratedComponent);
2099
- lastIndex = match.lastIndex;
2100
- });
2101
- if (string.length > lastIndex) {
2102
- elements.push(string.substring(lastIndex));
2103
- }
2104
- return elements.length === 1 ? elements[0] : elements;
2105
- }
2106
- }, {
2107
- key: "parse",
2108
- value: function parse(children) {
2109
- var _this3 = this;
2110
- var key = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
2111
- if (typeof children === "string") {
2112
- return this.parseString(children);
2113
- } else if (React2.isValidElement(children) && children.type !== "a" && children.type !== "button") {
2114
- return React2.cloneElement(children, { key }, this.parse(children.props.children));
2115
- } else if (Array.isArray(children)) {
2116
- return children.map(function(child, i) {
2117
- return _this3.parse(child, i);
2118
- });
2119
- }
2120
- return children;
2121
- }
2122
- }, {
2123
- key: "render",
2124
- value: function render() {
2125
- return React2.createElement(React2.Fragment, null, this.parse(this.props.children));
2126
- }
2127
- }]);
2128
- return Linkify3;
2129
- }(React2.Component);
2130
- Linkify2.defaultProps = {
2131
- componentDecorator: _defaultComponentDecorator2.default,
2132
- hrefDecorator: _defaultHrefDecorator2.default,
2133
- matchDecorator: _defaultMatchDecorator2.default,
2134
- textDecorator: _defaultTextDecorator2.default
2135
- };
2136
- exports.default = Linkify2;
45
+ if (Array.isArray(children)) {
46
+ return children.map((c) => findText(c, component, regex));
2137
47
  }
2138
- });
2139
-
2140
- // node_modules/react-linkify/dist/index.js
2141
- var require_dist = __commonJS({
2142
- "node_modules/react-linkify/dist/index.js"(exports) {
2143
- init_react_shim();
2144
- "use strict";
2145
- Object.defineProperty(exports, "__esModule", {
2146
- value: true
2147
- });
2148
- var _Linkify = require_Linkify();
2149
- var _Linkify2 = _interopRequireDefault(_Linkify);
2150
- function _interopRequireDefault(obj) {
2151
- return obj && obj.__esModule ? obj : { default: obj };
2152
- }
2153
- exports.default = _Linkify2.default;
48
+ if (isValidElement(children) && children.props.children && children.type !== "a" && children.type !== "button") {
49
+ return cloneElement(children, {
50
+ ...children.props,
51
+ key: getKey()
52
+ }, findText(children.props.children, component, regex));
2154
53
  }
2155
- });
54
+ return children;
55
+ }
56
+ var LinkIt = (props) => {
57
+ return React2.createElement(Fragment, null, findText(props.children, props.component, props.regex));
58
+ };
2156
59
 
2157
60
  // libs/shared/ui-system/src/lib/Linkify/Linkify.tsx
2158
- init_react_shim();
2159
- var import_react_linkify = __toModule(require_dist());
2160
61
  import { system } from "../../core/index.js";
2161
62
  import { Box } from "../../private/Box/index.js";
2162
- var Linkify = system()()(({ children }) => /* @__PURE__ */ React.createElement(import_react_linkify.default, {
2163
- componentDecorator: (decoratedHref, decoratedText) => /* @__PURE__ */ React.createElement(Box, {
63
+ var urlRegex = /((https?):\/\/|www\.)?([-\w.]+\/[\p{L}!#$%&'"()*+,./\\:;=_?@[\]~-]*[^\s'",.;:\b)\]}?]|(([\w-]+\.)+[\w-]+[\w/-]))/u;
64
+ var Linkify = system()()(({ children }) => /* @__PURE__ */ React.createElement(LinkIt, {
65
+ regex: urlRegex,
66
+ component: (decoratedHref) => /* @__PURE__ */ React.createElement(Box, {
2164
67
  as: "a",
2165
68
  href: convertToSecureUrl(decoratedHref),
2166
69
  color: "blue.500"
2167
- }, decoratedText)
70
+ }, decoratedHref)
2168
71
  }, children));
2169
72
  export {
2170
73
  Linkify