1import { p as prop, e as init } from './i18n-CMo5lpzy.js'; 2import { R as push, G as deep_read_state, z as untrack, a as append, T as pop, U as flushSync, V as child, W as from_html, Y as reset } from './index-BvBk1Iap.js'; 3import { h as html } from './html-CdUEtR5E.js'; 4import './ScrollFade.svelte_svelte_type_style_lang-Xm-PLg9E.js'; 5 6const INLINE_CODE_RE = /`([^`]+)`/g; 7const LINK_RE = /\[([^\]]+)\]\(([^)]+)\)/g; 8const BOLD_ASTERISK_RE = /\*\*(.+?)\*\*/g; 9const BOLD_UNDERSCORE_RE = /__(.+?)__/g; 10const ITALIC_ASTERISK_RE = /\*(.+?)\*/g; 11const ITALIC_UNDERSCORE_RE = /(?<!\w)_(.+?)_(?!\w)/g; 12const PROTOCOL_RE = /^\w+:/; 13function escape_html(text) { 14 return text.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """); 15} 16function render_link(_match, text, url) { 17 const trimmed = url.trim(); 18 if (PROTOCOL_RE.test(trimmed)) { 19 if (/^https?:/i.test(trimmed)) { 20 return `<a href="${trimmed}" target="_blank" rel="noopener noreferrer">${text}</a>`; 21 } 22 return text; 23 } 24 return `<a href="${trimmed}" target="_blank" rel="noopener noreferrer">${text}</a>`; 25} 26function render_inline_markdown(text) { 27 let result = escape_html(text); 28 result = result.replace(INLINE_CODE_RE, "<code>$1</code>"); 29 result = result.replace(LINK_RE, render_link); 30 result = result.replace(BOLD_ASTERISK_RE, "<strong>$1</strong>"); 31 result = result.replace(BOLD_UNDERSCORE_RE, "<strong>$1</strong>"); 32 result = result.replace(ITALIC_ASTERISK_RE, "<em>$1</em>"); 33 result = result.replace(ITALIC_UNDERSCORE_RE, "<em>$1</em>"); 34 result = result.replace(/\n/g, "<br>"); 35 return result; 36} 37 38var root = from_html(`<div class="info-text svelte-9hc4ua"><!></div>`); 39 40function Info($$anchor, $$props) { 41 push($$props, false); 42 43 let info = prop($$props, 'info', 12); 44 45 var $$exports = { 46 get info() { 47 return info(); 48 }, 49 50 set info($$value) { 51 info($$value); 52 flushSync(); 53 } 54 }; 55 56 init(); 57 58 var div = root(); 59 var node = child(div); 60 61 html(node, () => ( 62 deep_read_state(render_inline_markdown), 63 deep_read_state(info()), 64 untrack(() => render_inline_markdown(info())) 65 )); 66 67 reset(div); 68 append($$anchor, div); 69 70 return pop($$exports); 71} 72 73export { Info as I }; 74//# sourceMappingURL=Info-BrkJhX6_.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.