PageSourceSearch

https://arenberg-holdings.web.app/assets/XyronMarkdown-Q8hnP07h.js

js arenberg-holdings.web.app collected 2026-10-03 12:17:13 UTC 12,888 bytes, 5 lines download raw bytes

1import{s as P}from"./rolldown-runtime-aoxQmdZa.js";import{or as T,rr as O}from"./vendor-C44JUHxF.js";var w=P(T(),1),e=O();function $(F){var x=F.code||"",c=(F.lang||"text").toLowerCase(),v=(0,w.useState)(!1),m=v[0],j=v[1],d=(0,w.useState)(!1),h=d[0],r=d[1],f=(0,w.useState)(null),s=f[0],b=f[1],A=(0,w.useState)(!1),W=A[0],S=A[1],g="monospace",_=["function","var","let","const","return","if","else","for","while","class","import","export","default","new","this","async","await","try","catch","typeof","instanceof"],E=["def","class","import","from","return","if","elif","else","for","while","in","not","and","or","True","False","None","lambda","with","as","try","except","raise","pass","break","continue","yield","async","await"],B=["background","color","display","flex","grid","margin","padding","width","height","font","border","position","top","left","right","bottom","transform","opacity","animation","transition"];function z(n){for(var l=c==="python"?E:c==="css"?B:_,p=[],i=0;i<n.length;){if(n[i]==='"'||n[i]==="'"||n[i]==="`"){for(var y=n[i],C=i+1;C<n.length&&n[C]!==y;)C++;p.push((0,e.jsx)("span",{style:{color:"#3FB950"},children:n.slice(i,C+1)},i)),i=C+1;continue}if(n.slice(i,i+2)==="//"||n[i]==="#"){p.push((0,e.jsx)("span",{style:{color:"#5A7090",fontStyle:"italic"},children:n.slice(i)},i));break}if(n[i].match(/\d/)){for(var D=i;D<n.length&&n[D].match(/[\d.]/);)D++;p.push((0,e.jsx)("span",{style:{color:"#C89850"},children:n.slice(i,D)},i)),i=D;continue}if(n[i].match(/[a-zA-Z_$]/)){for(var k=i;k<n.length&&n[k].match(/[\w$]/);)k++;var R=n.slice(i,k);l.indexOf(R)!==-1?p.push((0,e.jsx)("span",{style:{color:"#D4AF5C",fontWeight:600},children:R},i)):R.match(/^[A-Z]/)?p.push((0,e.jsx)("span",{style:{color:"#5BA8A0"},children:R},i)):p.push((0,e.jsx)("span",{style:{color:"#C9D1D9"},children:R},i)),i=k;continue}if("{}[]()=><+-*/%&|!;:,".indexOf(n[i])!==-1){p.push((0,e.jsx)("span",{style:{color:"#D4AF5C"},children:n[i]},i)),i++;continue}p.push((0,e.jsx)("span",{children:n[i]},i)),i++}return p}function t(){try{navigator.clipboard.writeText(x)}catch{var n=document.createElement("textarea");n.value=x,document.body.appendChild(n),n.select(),document.execCommand("copy"),document.body.removeChild(n)}j(!0),setTimeout(function(){j(!1)},2e3)}function a(){if(r(!0),b(null),c==="javascript"||c==="js")setTimeout(function(){try{var l=[];new Function("console",x)({log:function(){l.push(Array.from(arguments).join(" "))},error:function(){l.push("ERROR: "+Array.from(arguments).join(" "))}}),b({type:"success",text:l.join(`
2`)||"(no output)"})}catch(p){b({type:"error",text:p.message})}r(!1)},200);else if(c==="python"||c==="py"){if(F.onRunPython)F.onRunPython(x,o,function(l){b(l),r(!1)});else if(window._xyronRunPython)window._xyronRunPython(x,o,function(l){b(l),r(!1)});else if(b({type:"info",text:"Python runner loading… Click Run again in a moment."}),r(!1),!window._pyodideLoading){window._pyodideLoading=!0;var n=document.createElement("script");n.src="https://cdn.jsdelivr.net/pyodide/v0.25.0/full/pyodide.js",n.onload=function(){window.loadPyodide({indexURL:"https://cdn.jsdelivr.net/pyodide/v0.25.0/full/"}).then(function(l){window.pyodide=l,window._xyronRunPython=function(p,i,y){l.runPythonAsync(p).then(function(C){y({type:"success",text:String(C||"(no output)")})}).catch(function(C){y({type:"error",text:C.message})})}})},document.head.appendChild(n)}}else c==="html"?(S(!0),r(!1)):(b({type:"info",text:"Run is supported for JavaScript and HTML. Connect Python backend to run Python."}),r(!1))}var u=c==="javascript"||c==="js"||c==="html"||c==="python"||c==="py",o=(0,w.useRef)("code-"+Math.random().toString(36).slice(2)).current;return(0,e.jsxs)("div",{style:{margin:"8px 0",borderRadius:8,overflow:"hidden",border:"1px solid #1C2740",background:"#06080D"},children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"5px 12px",background:"#0A0D18",borderBottom:"1px solid #1C2740"},children:[(0,e.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:8},children:[(0,e.jsx)("div",{style:{display:"flex",gap:4},children:["#FF5F56","#FFBD2E","#27C93F"].map(function(n,l){return(0,e.jsx)("div",{style:{width:9,height:9,borderRadius:"50%",background:n}},l)})}),(0,e.jsx)("span",{style:{fontFamily:g,fontSize:9,color:{javascript:"#D4AF5C",js:"#D4AF5C",python:"#5BA8A0",typescript:"#60A5FA",ts:"#60A5FA",html:"#C89850",css:"#D4AF5C",json:"#3FB950",
2sql:"#C85C5C",bash:"#8B949E",sh:"#8B949E",text:"#5A7090"}[c]||"#5A7090",fontWeight:700,letterSpacing:".08em"},children:c.toUpperCase()})]}),(0,e.jsxs)("div",{style:{display:"flex",gap:6},children:[u&&(0,e.jsx)("button",{onClick:a,disabled:h,style:{padding:"2px 9px",background:"rgba(63,185,80,0.1)",border:"1px solid rgba(63,185,80,0.25)",borderRadius:4,cursor:"pointer",fontFamily:g,fontSize:8,color:"#3FB950"},children:h?"▶ Running…":"▶ Run"}),c==="html"&&(0,e.jsx)("button",{onClick:function(){S(function(n){return!n})},style:{padding:"2px 9px",background:"rgba(176,188,200,0.1)",border:"1px solid rgba(176,188,200,0.25)",borderRadius:4,cursor:"pointer",fontFamily:g,fontSize:8,color:"#5BA8A0"},children:"⊞ Preview"}),(0,e.jsx)("button",{onClick:t,style:{padding:"2px 9px",background:m?"rgba(63,185,80,0.1)":"transparent",border:"1px solid "+(m?"rgba(63,185,80,0.25)":"#1C2740"),borderRadius:4,cursor:"pointer",fontFamily:g,fontSize:8,color:m?"#3FB950":"#5A7090"},children:m?"✓ Copied":"⎘ Copy"}),(0,e.jsx)("button",{onClick:function(){var n=document.createElement("a"),l={javascript:"js",python:"py",html:"html",css:"css",typescript:"ts",json:"json",sql:"sql",bash:"sh",sh:"sh"}[c]||"txt";n.href="data:text/plain;charset=utf-8,"+encodeURIComponent(x),n.download="xyron-code."+l,document.body.appendChild(n),n.click(),document.body.removeChild(n)},style:{padding:"2px 9px",background:"transparent",border:"1px solid #1C2740",borderRadius:4,cursor:"pointer",fontFamily:g,fontSize:8,color:"#5A7090"},children:"↓"})]})]}),(0,e.jsx)("div",{style:{overflowX:"auto",padding:"12px"},children:(0,e.jsx)("pre",{style:{margin:0,fontFamily:g,fontSize:12,lineHeight:1.7,color:"#C9D1D9"},children:x.split(`
3`).map(function(n,l){return(0,e.jsxs)("div",{style:{display:"flex",gap:12,minHeight:"1.7em"},children:[(0,e.jsx)("span",{style:{color:"#2A3548",userSelect:"none",minWidth:24,textAlign:"right",flexShrink:0},children:l+1}),(0,e.jsx)("span",{children:z(n)})]},l)})})}),s&&(0,e.jsxs)("div",{style:{padding:"8px 12px",borderTop:"1px solid #1C2740",background:"#040810"},children:[(0,e.jsx)("div",{style:{fontFamily:g,fontSize:8,color:s.type==="error"?"#C85C5C":s.type==="info"?"#5A7090":"#3FB950",letterSpacing:".1em",marginBottom:4},children:s.type==="error"?"✕ ERROR":s.type==="info"?"ℹ INFO":"✓ OUTPUT"}),(0,e.jsx)("pre",{style:{margin:0,fontFamily:g,fontSize:11,color:s.type==="error"?"#C85C5C":"#C9D1D9",whiteSpace:"pre-wrap"},children:s.text})]}),W&&c==="html"&&(0,e.jsxs)("div",{style:{borderTop:"1px solid #1C2740"},children:[(0,e.jsxs)("div",{style:{padding:"4px 12px",background:"#0A0D18",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,e.jsx)("span",{style:{fontFamily:g,fontSize:8,color:"#5BA8A0"},children:"⊞ HTML PREVIEW"}),(0,e.jsx)("button",{onClick:function(){S(!1)},style:{background:"none",border:"none",color:"#5A7090",cursor:"pointer",fontSize:12},children:"×"})]}),(0,e.jsx)("iframe",{srcDoc:x,sandbox:"allow-scripts",style:{width:"100%",height:320,border:"none",background:"#fff"}})]})]})}var L=w.memo(function(x){var c=x.text||"",v="monospace";function m(t){return t.includes("$$")?t.split("$$").map(function(a,u){return u%2===1?(0,e.jsx)("span",{style:{fontFamily:"serif",fontSize:13,color:"#D4AF5C",padding:"1px 4px",background:"rgba(212,175,92,0.08)",borderRadius:3,fontStyle:"italic"},children:a},u):j(a,u+"c")}):t.includes("$")?t.split(/(\$[^$]+\$)/).map(function(a,u){return a.startsWith("$")&&a.endsWith("$")&&a.length>2?(0,e.jsx)("span",{style:{fontFamily:"serif",fontSize:13,color:"#D4AF5C",padding:"1px 4px",background:"rgba(212,175,92,0.08)",borderRadius:3,fontStyle:"italic"},children:a.slice(1,-1)},u):j(a,u+"c")}):j(t,"0")}function j(t,a){for(var u=[],o=0;o<t.length;){if(t[o]==="`"&&t.indexOf("`",o+1)!==-1){var n=t.indexOf("`",o+1);u.push((0,e.jsx)("code",{style:{fontFamily:v,fontSize:11,background:"rgba(212,175,92,0.12)",border:"1px solid rgba(212,175,92,0.2)",borderRadius:3,padding:"1px 5px",color:"#D4AF5C"},children:t.slice(o+1,n)},a+o)),o=n+1;continue}if(t[o]==="*"&&t[o+1]==="*"){var l=t.indexOf("**",o+2);if(l!==-1){u.push((0,e.jsx)("strong",{style:{color:"#E6EDF3",fontWeight:700},children:t.slice(o+2,l)},a+o)),o=l+2;continue}}if(t.slice(o,o+4)==="http"){var p=t.search(/\s/,o),i=p===-1?t.slice(o):t.slice(o,p);u.push((0,e.jsx)("a",{href:i,target:"_blank",rel:"noopener",style:{color:"#5BA8A0",textDecoration:"underline",cursor:"pointer"},children:i},a+o)),o=p===-1?t.length:p;continue}for(var y=o;y<t.length&&t[y]!=="`"&&!(t[y]==="*"&&t[y+1]==="*")&&t.slice(y,y+4)!=="http";)y++;y>o&&u.push(t.slice(o,y)),o=y}return u}for(var d=c.split(`
4`),h=[],r=0,f=0;r<d.length;){var s=d[r].trim();if(s.startsWith("```")){var b=s.slice(3).trim()||"text",A=[];for(r++;r<d.length&&!d[r].trim().startsWith("```");)A.push(d[r]),r++;var W=A.join(`
5`);h.push((0,e.jsx)($,{code:W,lang:b},f++)),r++;continue}if(s.startsWith("# ")){h.push((0,e.jsx)("div",{style:{fontFamily:v,fontSize:13,fontWeight:800,color:"#D4AF5C",letterSpacing:".08em",marginTop:14,marginBottom:7,borderBottom:"1px solid rgba(212,175,92,0.24)",paddingBottom:5},children:s.slice(2)},f++)),r++;continue}if(s.startsWith("## ")){h.push((0,e.jsx)("div",{style:{fontFamily:v,fontSize:10,fontWeight:700,color:"#D4AF5C",letterSpacing:".12em",marginTop:14,marginBottom:6,borderBottom:"1px solid #1C2740",paddingBottom:4},children:s.slice(3)},f++)),r++;continue}if(s.startsWith("### ")){h.push((0,e.jsx)("div",{style:{fontFamily:v,fontSize:10,fontWeight:700,color:"#D4AF5C",letterSpacing:".10em",marginTop:10,marginBottom:4},children:s.slice(4)},f++)),r++;continue}if(s.startsWith("#### ")){h.push((0,e.jsx)("div",{style:{fontFamily:v,fontSize:9,fontWeight:700,color:"#D4AF5C",letterSpacing:".08em",marginTop:8,marginBottom:3},children:s.slice(5)},f++)),r++;continue}if(s==="---"||s==="***"){h.push((0,e.jsx)("div",{style:{height:1,background:"#1C2740",margin:"10px 0"}},f++)),r++;continue}if(s.startsWith("|")&&r+1<d.length&&d[r+1].trim().match(/^\|[-:| ]+\|/)){for(var S=[];r<d.length&&d[r].trim().startsWith("|");)S.push(d[r]),r++;var g=S.filter(function(t){return!t.trim().match(/^\|[-:| ]+\|$/)}),_=g[0]?g[0].split("|").filter(function(t){return t.trim()}):[],E=g.slice(1);h.push((0,e.jsx)("div",{style:{overflowX:"auto",margin:"10px 0",borderRadius:6,border:"1px solid #1C2740"},children:(0,e.jsxs)("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:11},children:[(0,e.jsx)("thead",{children:(0,e.jsx)("tr",{children:_.map(function(t,a){return(0,e.jsx)("th",{style:{padding:"7px 12px",background:"#0D1117",color:"#D4AF5C",fontFamily:v,fontSize:9,fontWeight:700,letterSpacing:".08em",textAlign:"left",borderBottom:"1px solid #1C2740",whiteSpace:"nowrap"},children:t.trim()},a)})})}),(0,e.jsx)("tbody",{children:E.map(function(t,a){var u=t.split("|").filter(function(o){return o.trim()});return(0,e.jsx)("tr",{style:{background:a%2===0?"transparent":"rgba(255,255,255,0.015)"},children:u.map(function(o,n){return(0,e.jsx)("td",{style:{padding:"6px 12px",color:"#C9D1D9",fontSize:11,borderBottom:"1px solid #0D1117"},children:m(o.trim())},n)})},a)})})]})},f++));continue}if(s.match(/^\d+\.\s/)){for(var B=[];r<d.length&&d[r].trim().match(/^\d+\.\s/);)B.push(d[r].trim().replace(/^\d+\.\s/,"")),r++;h.push((0,e.jsx)("ol",{style:{margin:"6px 0 6px 18px",paddingLeft:4},children:B.map(function(t,a){return(0,e.jsx)("li",{style:{color:"#C9D1D9",fontSize:13,lineHeight:1.7,marginBottom:2},children:m(t)},a)})},f++));continue}if(s.match(/^[-*•]\s/)){for(var z=[];r<d.length&&d[r].trim().match(/^[-*•]\s/);)z.push(d[r].trim().replace(/^[-*•]\s/,"")),r++;h.push((0,e.jsx)("ul",{style:{margin:"6px 0 6px 16px",paddingLeft:4,listStyle:"none"},children:z.map(function(t,a){return(0,e.jsxs)("li",{style:{color:"#C9D1D9",fontSize:13,lineHeight:1.7,marginBottom:2,display:"flex",gap:6,alignItems:"flex-start"},children:[(0,e.jsx)("span",{style:{color:"#D4AF5C",flexShrink:0,marginTop:2},children:"›"}),(0,e.jsx)("span",{children:m(t)})]},a)})},f++));continue}if(s.startsWith("> ")){h.push((0,e.jsx)("div",{style:{borderLeft:"3px solid #D4AF5C",paddingLeft:12,margin:"6px 0",color:"#8B949E",fontSize:12,fontStyle:"italic",lineHeight:1.7},children:m(s.slice(2))},f++)),r++;continue}if(!s){h.push((0,e.jsx)("div",{style:{height:4}},f++)),r++;continue}h.push((0,e.jsx)("p",{style:{margin:"0 0 6px",color:"#C9D1D9",fontSize:13,lineHeight:1.75},children:m(s)},f++)),r++}return(0,e.jsx)("div",{children:h})});export{L 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.