1import{i as e}from"./rolldown-runtime-8BhlS34s.js";import{at as t,rt as n}from"./base-ui-BaBGL73B.js";import{t as r}from"./react-D_kTwsNw.js";import{f as i}from"./tanstack-router-DL0XPAIz.js";var a=r(),o=e(t(),1),s=n(),c=/\*\*(.+?)\*\*|\*(.+?)\*|\[(.+?)\]\((.+?)\)|`([^`]+)`/g,l=`text-orange-deep underline decoration-2 underline-offset-2 hover:text-ink`;function u(e){let t=(0,a.c)(5),{children:n}=e,r;if(t[0]!==n){let e=[],i=0;for(let t of n.matchAll(c)){let[r,a,o,c,l,u]=t;t.index>i&&e.push(n.slice(i,t.index)),a?e.push((0,s.jsx)(`strong`,{children:a},t.index)):o?e.push((0,s.jsx)(`em`,{children:o},t.index)):u?e.push((0,s.jsx)(m,{children:u},t.index)):e.push((0,s.jsx)(d,{href:l,label:c},t.index)),i=t.index+r.length}let a;t[2]!==n||t[3]!==i?(a=n.slice(i),t[2]=n,t[3]=i,t[4]=a):a=t[4],e.push(a),r=(0,s.jsx)(o.Fragment,{children:e}),t[0]=n,t[1]=r}else r=t[1];return r}function d(e){let t=(0,a.c)(21),{href:n,label:r}=e;if(n.startsWith(`/`)){let e;t[0]===n?e=t[1]:(e=n.split(`#`),t[0]=n,t[1]=e);let[a,o]=e,c=a||`/`,d;t[2]===r?d=t[3]:(d=(0,s.jsx)(u,{children:r}),t[2]=r,t[3]=d);let f;return t[4]!==o||t[5]!==c||t[6]!==d?(f=(0,s.jsx)(i,{to:c,hash:o,className:l,children:d}),t[4]=o,t[5]=c,t[6]=d,t[7]=f):f=t[7],f}if(n.startsWith(`mailto:`)){let e;t[8]===r?e=t[9]:(e=(0,s.jsx)(u,{children:r}),t[8]=r,t[9]=e);let i;return t[10]!==n||t[11]!==e?(i=(0,s.jsx)(`a`,{href:n,className:l,children:e}),t[10]=n,t[11]=e,t[12]=i):i=t[12],i}if(!f.test(n)){let e;return t[13]===r?e=t[14]:(e=(0,s.jsx)(u,{children:r}),t[13]=r,t[14]=e),e}let o=p.test(n)?`noopener sponsored`:`noopener`,c;t[15]===r?c=t[16]:(c=(0,s.jsx)(u,{children:r}),t[15]=r,t[16]=c);let d;return t[17]!==n||t[18]!==o||t[19]!==c?(d=(0,s.jsx)(`a`,{href:n,target:`_blank`,rel:o,className:l,children:c}),t[17]=n,t[18]=o,t[19]=c,t[20]=d):d=t[20],d}var f=/^https?:\/\//i,p=/^https:\/\/([a-z0-9-]+\.)*(tourdesk\.is|gorentals\.is)(\/|$)/i;function m(e){let t=(0,a.c)(2),{children:n}=e,r;return t[0]===n?r=t[1]:(r=(0,s.jsx)(`code`,{className:`rounded-sm bg-paper-2 px-1 py-px font-mono text-[0.85em] break-words`,children:n}),t[0]=n,t[1]=r),r}export{l as n,u as t};
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.