PageSourceSearch

https://solana.fm/_next/static/chunks/2549-b7d40071340d0739.js

js solana.fm collected 2026-09-25 15:02:55 UTC 40,569 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2549],{8173:function(e,t,r){r.d(t,{Z:function(){return en}});var n=r(52322),s=r(50274),a=r(76422),l=r(80085),o=r(39097),c=r.n(o),i=r(5632),d=r(2784),x=r(57927),u=r(45011),h=r(99799),m=r(82289),g=r(74176),f=r(63445),p=r(49182),v=r(53725),b=r(43544);let j=(e,t,r,s,a,l,o,c)=>{if(!e)return null;let i=e.descriptionFormatSpecifier,d=e.values,x=[],u=i.split(/%[a-z]+/).map(e=>e.trim()),h=u.length;i.replaceAll(/%[a-z]+/g,e=>(x.push(e),e));let m=[],g=0,f=0;return u.forEach((e,i)=>{""===e?0!==i&&i!==h-1&&(m.push((0,n.jsx)("div",{className:"flex gap-1.5 items-center",children:y(x[g],d[f],t,r,s.styled,a,l,o,void 0,c)},i)),g++,f++):m.push((0,n.jsx)("span",{className:"font-mono dark:text-grey-50 text-grey-700 ".concat(!a&&"text-xs"),children:e},i)),m.push((0,n.jsx)("div",{className:"flex gap-1.5 items-center",children:y(x[g],d[f],t,r,s.styled,a,l,o,void 0,c)},"outer-"+i)),g++,f++}),m},w=e=>{let{color:t,fontStyle:r,fontWeight:s,children:l}=e;return(0,n.jsx)(a.xv,{color:t,as:"h1",fontStyle:r,fontWeight:s,children:l})},y=(e,t,r,s,l,o,c,i,d,x)=>{if(!e||!t)return null;try{var h,m;let d,g,f;let j=e.replace(/%/g,"");switch(l?(d=b.Mr.SALMON,g="mono",f="font-normal",b.n$.SM):(d=b.Mr.ORANGE,g="mono",f="font-normal",b.n$.XL),j){case b.hs.FIGURE:return(0,n.jsx)(n.Fragment,{children:l?(0,n.jsx)(a.xv,{color:b.Mr.SALMON,as:"p",size:o?b.n$.SM:b.n$.XS,fontStyle:"mono",fontWeight:"font-normal",children:t.value}):(0,n.jsx)(a.xv,{color:b.Mr.NEUTRAL_DEFAULT,as:"h1",size:"xl",fontStyle:"mono",fontWeight:"font-normal",children:t.value})});case b.hs.TOKEN:let y=t.value,N=null!==(m=null===(h=t.enrichedData)||void 0===h?void 0:h.tokenDecimal)&&void 0!==m?m:9,k=void 0!==t.amount?new Intl.NumberFormat("en-US",{maximumFractionDigits:N}).format(Number(t.amount)):void 0,S=s?s.get(y):void 0,E=(0,v.id)(S);return(0,v.qR)(S),(0,n.jsxs)(n.Fragment,{children:[k&&l?(0,n.jsx)(a.xv,{color:b.Mr.SALMON,as:"p",size:o?b.n$.SM:b.n$.XS,fontStyle:"mono",fontWeight:"font-normal",children:k}):(0,n.jsx)(a.xv,{color:b.Mr.ORANGE,as:"h1",size:b.n$.XL,fontStyle:"mono",fontWeight:"font-normal",children:k}),""===y?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.rU,{rounding:"full",size:o?b.n$.SM:b.n$.XS,children:(0,n.jsx)(u.Z,{src:"/SolanaLogo.png",alt:"Solana Logo",fill:!0})}),(0,n.jsx)(a.xv,{color:b.Mr.PURPLE,as:"p",size:o?b.n$.SM:b.n$.XS,fontStyle:"mono",fontWeight:"font-normal",children:"SOL"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{children:S&&l&&(0,n.jsx)(a.rU,{alt:y,rounding:"full",size:b.n$.SM,isCustomSize:!0,className:"w-5 h-5",children:(0,n.jsx)(u.Z,{src:null!=E?E:"",alt:y,fill:!0},y)})}),(0,n.jsx)("div",{className:"w-fit",children:(0,n.jsx)(p.Jf,{copyable:!1,widthSize:l?o?b.n$.SM:b.n$.XS:b.n$.XL,fontSize:l?o?b.n$.SM:b.n$.XS:b.n$.XL,value:y,href:"/address/".concat(y),fontStyle:"mono",currentHighlightedHash:c,setCurrentHighlightedHash:i})})]})]});case b.hs.PUBLICKEY:let M=x?t.value:t.owner?t.owner:t.value;return(0,v.Rg)(r,M),(0,n.jsx)(p.Jf,{copyable:!1,widthSize:l?o?b.n$.SM:b.n$.XS:b.n$.XL,fontSize:l?o?b.n$.SM:b.n$.XS:b.n$.XL,value:M,href:"/address/".concat(M),fontStyle:"mono",currentHighlightedHash:c,setCurrentHighlightedHash:i});case b.hs.DEFAULT:return(0,n.jsx)(w,{color:d,fontStyle:g,fontWeight:f,children:t.value});default:return null}}catch(e){return console.error("There was an error parsing the action data.",e),null}};var N=r(43649),k=r(18266);function S(e){let{top:t,left:r,bottom:s,right:a,text:l,containerClass:o,children:c}=e;return(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsxs)("span",{className:"absolute z-10 py-2 px-4 bg-gray-700 rounded-lg text-center text-white text-sm before:content-[''] before:absolute before:-translate-y-1/2 before:border-4 -top-[30%] -translate-y-full left-1/2 -translate-x-1/2 before:-bottom-3 before:right-[50%] before:border-x-transparent before:border-b-transparent before:border-t-gray-700",children:[l,c]}),a&&(0,n.jsxs)("span",{className:"absolute z-10 py-2 px-4 bg-gray-700 rounded-lg text-center text-white text-sm before:content-[''] before:absolute before:-translate-y-1/2 before:border-4 top-1/2 -translate-y-1/2 left-[101%] before:top-1/2 before:right-[100%] before:border-y-transparent before:border-l-transparent before:border-r-gray-700",children:[l,c]}),s&&(0,n.jsxs)("span",{className:"-bottom-[30%] translate-y-full left-1/2 -translate-x-1/2 before:-top-1 before:right-[50%] before:border-x-trans
1parent before:border-t-transparent before:border-b-gray-700 absolute z-10 py-2 px-4 bg-gray-700 rounded-lg text-center text-white text-sm before:content-[''] before:absolute before:-translate-y-1/2 before:border-4",children:[l,c]}),r&&(0,n.jsxs)("span",{className:"absolute z-10 py-2 px-4 bg-gray-700 rounded-lg text-center text-white text-sm before:content-[''] before:absolute before:-translate-y-1/2 before:border-4 top-1/2 -translate-y-1/2 right-[101%] before:top-1/2 before:left-[100%] before:border-y-transparent before:border-r-transparent before:border-l-gray-700",children:[l,c]})]})}var E=r(33378),M=r(13128),z=r(18409),L=["size","color"];function C(e){var t=e.size,r=void 0===t?24:t,n=e.color,s=(0,z.Kd)(e,L);return d.createElement("svg",(0,z.gY)({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-eye-off",width:r,height:r,viewBox:"0 0 24 24",stroke:void 0===n?"currentColor":n,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("line",{x1:"3",y1:"3",x2:"21",y2:"21"}),d.createElement("path",{d:"M10.584 10.587a2 2 0 0 0 2.828 2.83"}),d.createElement("path",{d:"M9.363 5.365a9.466 9.466 0 0 1 2.637 -.365c4 0 7.333 2.333 10 7c-.778 1.361 -1.612 2.524 -2.503 3.488m-2.14 1.861c-1.631 1.1 -3.415 1.651 -5.357 1.651c-4 0 -7.333 -2.333 -10 -7c1.369 -2.395 2.913 -4.175 4.632 -5.341"}))}var R=["size","color"];function A(e){var t=e.size,r=void 0===t?24:t,n=e.color,s=(0,z.Kd)(e,R);return d.createElement("svg",(0,z.gY)({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-eye",width:r,height:r,viewBox:"0 0 24 24",stroke:void 0===n?"currentColor":n,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},s),d.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),d.createElement("circle",{cx:"12",cy:"12",r:"2"}),d.createElement("path",{d:"M22 12c-2.667 4.667 -6 7 -10 7s-7.333 -2.333 -10 -7c2.667 -4.667 6 -7 10 -7s7.333 2.333 10 7"}))}var O=r(61306),T=r(67765),$=r(73372),D=e=>{let{accountHash:t,isOpen:r,onClose:s}=e,{isReady:l}=(0,i.useRouter)(),o=(0,g.F)(e=>e.currentRPC),{mutate:c}=(0,N.kY)(),x="pro"===(0,g.F)(e=>e.mode),{data:u}=(0,$.Z)("tokens"),{data:h,isLoading:m}=(0,T.mA)(c,l&&o.slug&&t?"".concat(o.slug,"/address/").concat(t):null,null!=t?t:"",o,[],u),f=(0,d.useMemo)(()=>{var e,t,r;if(x)return(null!==(t=null==h?void 0:null===(e=h.getAccountResult().rawData)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0;{let e=null==h?void 0:null===(r=h.getAccountResult().accountInfo)||void 0===r?void 0:r.data;return e&&(0,v.Bp)(e)}},[h,x]);return(0,n.jsx)(n.Fragment,{children:h&&(f||m)?(0,n.jsx)(O.Z,{isTooltip:!0,data:h.getAccountResult()}):(0,n.jsx)(a.Zb,{backgroundColor:"bg-surface-1",className:"w-full h-20 justify-center items-center",border:!0,children:(0,n.jsx)(a.xv,{as:"span",children:"No data"})})})},B=e=>{let{accountHash:t,direction:r="right"}=e,{isReady:s}=(0,i.useRouter)(),l=(0,g.F)(e=>e.currentRPC),{mutate:o}=(0,N.kY)(),c="pro"===(0,g.F)(e=>e.mode),{data:x}=(0,$.Z)("tokens"),{data:u,isLoading:h}=(0,T.mA)(o,s&&l.slug&&t?"".concat(l.slug,"/address/").concat(t):null,null!=t?t:"",l,[],x),m=(0,d.useMemo)(()=>{var e,t,r;if(c)return(null!==(t=null==u?void 0:null===(e=u.getAccountResult().rawData)||void 0===e?void 0:e.length)&&void 0!==t?t:0)>0;{let e=null==u?void 0:null===(r=u.getAccountResult().accountInfo)||void 0===r?void 0:r.data;return e&&(0,v.Bp)(e)}},[u,c]);return m||h?(0,n.jsx)(a.Zb,{backgroundColor:"bg-kit-none",border:!0,className:"w-[35em]",children:m&&!h?(0,n.jsx)(O.Z,{isTooltip:!0,data:u.getAccountResult()}):(0,n.jsx)(a.Zb,{backgroundColor:"bg-surface-base",className:"w-32 h-20 justify-center items-center",border:!0,children:(0,n.jsx)(a.xv,{as:"span",size:b.n$.SM,children:"Loading..."})})}):(0,n.jsx)(a.Zb,{backgroundColor:"bg-surface-base",className:"w-32 h-20 justify-center items-center",border:!0,children:(0,n.jsx)(a.xv,{as:"span",size:b.n$.SM,children:"No data"})})},F=r(25239),P=r(32588),Z=r(64780),X=r(15849);let I=e=>{let{accoutName:t,index:r}=e,[s,a]=(0,d.useState)(!1);return(0,n.jsxs)("div",{className:"max-w-[100px] sm:max-w-full font-normal text-sm lg:text-md whitespace-nowrap truncate",onMouseOver:e=>{e.currentTarget.scrollWidth>e.currentTarget.clientWidth&&a(!0)},onMouseLeave:()=>{a(!1)},children:["#",r+1," ",(0,l.ZX)(t),s&&(0,n.jsx)(S,{top:!0,containerClass:"mr-4",text:(0,l.ZX)(t).toString()})]})};var K=e=>{let{accounts:t}=e,{data:r}=(0,N.ZP)(f.L.LABELS);(0,Z.u)();let{asPath:l}=(0,i.useRouter)(),o=(0,d.useRef)(null),[c,x]=(0,d.useState)([]),[u,h]=(0,d.useState)([]),[m,g]=(0,d.useState)([]);(0,d.useEffect)(()=>{let e=[],r=[];t&&t.map(()=>{e.push(!0),r.push(!1)}),x(r),h(r),g(r)},[]),(0,d.useEffect)(()=>{let e=e=>{o.current&&!o.current.contains(e.target)&&g(e=>e.map(()=>!1))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let v=e=>{g(t=>t.map((t,r)=>r===e))};return(0,n.jsx)(a.Zb,{backgroundColor:"bg-surface-base",rounded:"xl",padding:4,border:!0,children:(0,n.jsx)(a.Kq,{gap:2,widthFull:!0,children:t&&t.length>0?t.map((e,t)=>(0,n.jsx)(a.Zb,{backgroundColor:"bg-surface-1",rounded:"base",className:"w-full",padding:2,children:(0,n.jsxs)(a.Kq,{direction:"row",alignItems:"center",widthFull:!0,className:"gap-4 md:gap-0",children:[(0,n.jsxs)(a.Kq,{direction:"col",className:"gap-3 md:gap-0",widthFull:!0,children:[(0,n.jsxs)(a.Kq,{direction:"row",gap:3,widthFull:!0,children:[(0,n.jsx)("div",{className:"rounded-md py-1 px-3 relative dark:bg-dark-700 bg-light-300 dark:text-grey-50 text-grey-700",children:e.name?(0,n.jsx)(I,{accoutName:e.name,index:t}):(0,n.jsxs)("span",{className:"font-normal text-md",children:["#",t+1]})}),(0,n.jsx)("div",{className:"basis-1/6",children:(0,n.jsxs)(a.Kq,{direction:"row",gap:2,children:[e.isWritable&&(0,n.jsx)(F.pn,{delayDuration:200,children:(0,n.jsxs)(F.u,{children:[(0,n.jsx)(F.aJ,{children:(0,n.jsx)(a.Ct,{color:b.Mr.ORANGE,inverseStyle:!0,size:b.n$.XS,icon:(0,n.jsx)(E.Z,{strokeWidth:2,color:"white"}),iconOnly:!0,className:"!p-2"})}),(0,n.jsx)(F._v,{side:"bottom",size:b.n$.SM,children:"Writer"})]})}),e.isSigner&&(0,n.jsx)(F.pn,{delayDuration:200,children:(0,n.jsxs)(F.u,{children:[(0,n.jsx)(F.aJ,{children:(0,n.jsx)(a.Ct,{color:b.Mr.PUNCH,inverseStyle:!0,size:b.n$.XS,icon:(0,n.jsx)(M.Z,{strokeWidth:2,color:"white"}),iconOnly:!0,className:"!p-2"})}),(0,n.jsx)(F._v,{side:"bottom",size:b.n$.SM,children:"Signer"})]})})]})})]}),(0,n.jsx)("div",{className:"block md:hidden",children:(0,n.jsx)(p.pG,{truncate:!0,fontSize:b.n$.SM,value:e.publicKey,href:"/address/".concat(e.publicKey)})})]}),(0,n.jsx)("div",{className:"grow basis-3/6 hidden md:flex",children:(0,n.jsxs)(a.Kq,{direction:"row",alignItems:"center",gap:2,widthFull:!0,className:"grow basis-3/6 hidden md:flex",children:[(0,n.jsx)(p.pG,{truncate:!0,fontSize:b.n$.SM,value:e.publicKey,href:"/address/".concat(e.publicKey),textContainerClassName:"justify-end"}),(0,n.jsxs)(X.J2,{children:[(0,n.jsx)(X.xo,{asChild:!0,children:(0,n.jsx)("div",{children:(0,n.jsx)(a.zx,{size:b.n$.XS,onClick:()=>v(t),btnColor:b.Mr.PURPLE,icon:m[t]?(0,n.jsx)(C,{}):(0,n.jsx)(A,{}),ghost:!0,className:"!p-2"})})}),(0,n.jsx)(X.yk,{side:"right",sideOffset:6,variant:"bg-transparent",className:"w-full h-full",children:m.map((r,s)=>r&&s===t&&(0,n.jsx)("div",{ref:o,children:(0,n.jsx)(B,{accountHash:e.publicKey},s)}))})]})]})}),(0,n.jsxs)(P.Vq,{children:[(0,n.jsx)(P.hg,{asChild:!0,children:(0,n.jsx)("div",{children:(0,n.jsx)(a.zx,{size:b.n$.XS,onClick:()=>v(t),btnColor:b.Mr.PURPLE,icon:m[t]?(0,n.jsx)(C,{}):(0,n.jsx)(A,{}),ghost:!0,className:"!p-2 block md:hidden"})})}),(0,n.jsx)(P.cZ,{className:"w-full h-fit",children:m.map((r,s)=>r&&s===t&&(0,n.jsx)(D,{accountHash:e.publicKey,isOpen:!0,onClose:()=>g(e=>e.map(e=>!1))},s))})]})]})},"".concat(t))):(0,n.jsx)(a.ub,{icon:(0,n.jsx)(s.JO,{icon:"tabler:users"}),description:"No accounts in this instruction!",size:b.n$.MD,className:"gap-0 !w-full"})})})},U=r(6375),J=r(46084),Q=r(8417),W=r(45380),H=e=>{let{rawData:t,parsedData:r,activeButton:s,showBase58:a,setShowBase58:l}=e;return(()=>{switch(s){case m.lQ.HEX:default:return(0,n.jsx)(U.Z,{data:t?[t]:[]});
1case m.lQ.RAW:return(0,n.jsx)(W.Z,{data:t?[t]:[],showBase58:a,setShowBase58:l});case m.lQ.JSON:return(0,n.jsx)(J.Z,{parsedData:r});case m.lQ.PRETTY:return(0,n.jsx)(Q.Z,{data:r})}})()},q=e=>{let{rawData:t,parsedData:r,activeButton:s,showBase58:a,setShowBase58:l}=e;return(()=>{switch(s){case m.lQ.HEX:default:return(0,n.jsx)(U.Z,{data:t});case m.lQ.RAW:return(0,n.jsx)(W.Z,{data:t,showBase58:a,setShowBase58:l});case m.lQ.JSON:return(0,n.jsx)(J.Z,{parsedData:r});case m.lQ.PRETTY:return(0,n.jsx)(Q.Z,{data:r})}})()},Y=r(29492),G=r(39969),_=r(69793),V=r(41288),ee=r(48834).Buffer;let et=e=>{let{programId:t,logoURI:r}=e;return void 0!==r&&""!==r?(0,n.jsx)(a.rU,{rounding:"full",size:b.n$.XS,children:(0,n.jsx)(u.Z,{src:r,alt:t,fill:!0},t)}):"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"===t?(0,n.jsx)(s.JO,{icon:"tabler:coins",className:"icon-md dark:text-grey-50 text-grey-700 shrink-0"}):(0,n.jsx)(s.JO,{icon:"tabler:cpu-2",className:"icon-md dark:text-grey-50 text-grey-700 shrink-0"})},er={[m.lQ.HEX]:{id:m.lQ.HEX,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 text-xs",children:[(0,n.jsx)(x.r,{className:"icon-sm"}),(0,n.jsx)("span",{className:"hidden md:block",children:m.lQ.HEX})]})},[m.lQ.RAW]:{id:m.lQ.RAW,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 text-xs",children:[(0,n.jsx)(s.JO,{icon:"tabler:code",className:"icon-sm"})," ",(0,n.jsx)("span",{className:"hidden md:block",children:m.lQ.RAW})]})},[m.lQ.JSON]:{id:m.lQ.JSON,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 text-xs",children:[(0,n.jsx)(s.JO,{icon:"tabler:code-dots",className:"icon-sm"})," ",(0,n.jsx)("span",{className:"hidden md:block",children:m.lQ.JSON})]})},[m.lQ.PRETTY]:{id:m.lQ.PRETTY,children:(0,n.jsxs)("div",{className:"flex items-center gap-1 text-xs",children:[(0,n.jsx)(s.JO,{icon:"tabler:crystal-ball",className:"icon-sm"})," ",(0,n.jsx)("span",{className:"hidden md:block",children:m.lQ.PRETTY})]})}};var en=e=>{var t,r,o,x,v;let{index:w,innerIndex:y,ixData:S,isLastInnerIx:E,expandAll:M,innerCards:z,ixFlow:L,error:C,action:R,v2Action:A,keyString:O,currentHighlightedHash:T,setCurrentHighlightedHash:$,slot:D}=e,{currentRPC:B,localIdlMap:F}=(0,g.F)(),{publicKey:P}=(0,k.yG)(),Z=null==P?void 0:P.toString(),X=(0,h.s)(),I="pro"===(0,g.F)(e=>e.mode),U=(0,g.F)(e=>I?e.proSettings:e.defaultSettings),{instructionsDataLayout:J,instructionRowSize:Q}=(0,g.F)(e=>e),W="vertical"===J,en=(0,d.useRef)(void 0),[es,ea]=(0,d.useState)(m.lQ.HEX),[el,eo]=(0,d.useState)(!1),[ec,ei]=(0,d.useState)(m.lQ.HEX),[ed,ex]=(0,d.useState)(!1),[eu,eh]=(0,d.useState)(!0),{data:em}=(0,N.ZP)(f.L.LABELS),{data:eg}=(0,N.ZP)(f.L.IDL),{data:ef}=(0,N.ZP)(f.L.TOKENS),ep=S.programId,[ev,eb]=(0,d.useState)(!1),[ej,ew]=(0,d.useState)(!1),ey=em&&em.get(ep),[eN,ek]=(0,d.useState)(!1);(0,d.useEffect)(()=>{if(I&&void 0!==D){let e=F.get(ep),t=[];if(e)for(let[r,n]of e)n.network.slug===B.slug&&t.push(n.startSlot);let r=[],n=null==eg?void 0:eg.get(ep);n&&r.push(...Array.from(n.keys()));let s=r.concat(t);if(s.length>0){let e=s.reduce((e,t)=>{if(e<=D&&D<t)return e;if(t>=D);else if(e>t)return e;return t});t.includes(e)&&ek(!0)}}},[]);let{asPath:eS}=(0,i.useRouter)(),eE=async e=>{try{await navigator.clipboard.writeText(e||""),eb(!0)}catch(e){eb(!1)}setTimeout(()=>eb(!1),1e3)},eM=async e=>{try{await navigator.clipboard.writeText(e||""),ew(!0)}catch(e){ew(!1)}setTimeout(()=>ew(!1),1e3)},ez=()=>{let e="border ";return C&&0!==C.length?e+="bg-red-1000 border-red-900 rounded-xl ":(e+="border-navy-50 dark:hover:bg-dark-1000 hover:bg-light-100 dark:border-navy-600 ",void 0===E?!y&&z&&0===z.length?e+="data-[state=open]:rounded-t-xl data-[state=open]:border-b-0 data-[state=closed]:rounded-xl ":!y&&z&&z.length>0&&(e+="rounded-t-xl border-b-0 "):e+=void 0===y||E?"data-[state=open]:border-b-0 data-[state=closed]:rounded-b-xl ":"border-b-0 "),e},eL=()=>{let e="border-navy-50 dark:border-navy-600 border-xl ";return E?(e+="rounded-b-xl ",y&&(e+="border-b ")):!y&&z&&0===z.length?e+="border-b rounded-b-xl ":e+="border-b-0 ",e},eC=(0,d.useMemo)(()=>{var e;let t=S.accounts||[],r=Object.entries((null===(e=S.parsedInfo)||void 0===e?void 0:e.data)||{});if(0!==t.length&&0!==r.length){let e=t.map(e=>e.publicKey);return Object.fromEntries(r.filter(t=>!e.find(e=>t[1].data===e)))}return Object.fromEntries(r)},[S]),eR=I?[er[m.lQ.HEX],er[m.lQ.RAW],er[m.lQ.JSON],er[m.lQ.PRETTY]]:[er[m.lQ.JSON],er[m.lQ.PRETTY]],eA=(0,d.useMemo)(()=>void 0===y?z&&z.length>0?b.Lq.BELOW:b.Lq.NONE:E?b.Lq.ABOVE:b.Lq.BOTH,[y,z]);(0,d.useEffect)(()=>
1{ea(U.instructionsDataFormat),ei(U.instructionsDataEventFormat)},[U]),(0,d.useEffect)(()=>{"parsedInfo"in S&&eh(!1)},[S]),(0,d.useEffect)(()=>(setTimeout(()=>{if(en.current){let e="expanded"===M;"true"===en.current.getAttribute("aria-expanded")!==e&&en.current.click()}},125),()=>{}),[M,en]);let eO=()=>{var e,t,r;switch(es){case m.lQ.HEX:eE((null===(e=S.rawData)||void 0===e?void 0:e.toString("hex"))||"");break;case m.lQ.RAW:el?eE((null===(t=S.rawData)||void 0===t?void 0:t.join(""))||""):eE((null===(r=S.rawData)||void 0===r?void 0:r.toString("base64"))||"");break;case m.lQ.JSON:case m.lQ.PRETTY:eE(JSON.stringify(eC))}},eT=()=>{var e,t;switch(ec){case m.lQ.HEX:eM(JSON.stringify((null!==(e=S.rawEventData)&&void 0!==e?e:[]).map(e=>{let t=new Uint8Array(ee.from(e,"base64"));return ee.from(t).toString("hex")})));break;case m.lQ.RAW:{let e=[],r=null!==(t=S.rawEventData)&&void 0!==t?t:[];ed?r.forEach(t=>{let r=new Uint8Array(ee.from(t,"base64"));e.push((0,l.X3)(r))}):e=r,eM(JSON.stringify(e));break}case m.lQ.JSON:case m.lQ.PRETTY:eM(JSON.stringify(S.parsedEvents))}};return X?(0,n.jsxs)("div",{className:"flex flex-col justify-between ".concat("large"===Q?"gap-4":"gap-3"),children:[(0,n.jsxs)(V.Qd,{value:"disclosureMobile-".concat(O),children:[(0,n.jsx)(V.o4,{className:"relative flex w-full flex-wrap border dark:border-navy-600 border-navy-50 h-full ".concat("large"===Q?"p-6":"p-4"," ").concat(ez()),id:"logs-".concat(w+1,".").concat(void 0===y?"0":y+1),children:(0,n.jsx)("div",{className:"w-full h-full flex flex-1 gap-8",children:(0,n.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,n.jsx)("div",{className:"flex flex-col",children:(0,n.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,n.jsx)(a.Vm,{className:"h-full text-sm",value:"".concat(void 0!==y?"".concat(w+1,".").concat(y+1):w+1),rightOffset:!1,borderColor:void 0===y?"border-blue-400":void 0,error:!!C&&C.length>0}),(0,n.jsxs)("div",{className:"flex items-center gap-4 w-full",children:[(0,n.jsx)(et,{programId:ep,logoURI:null==ey?void 0:ey.logoURI}),(0,n.jsxs)("div",{className:"flex flex-col",children:[(0,n.jsx)("span",{className:"font-bold ".concat("large"===Q?"text-md":"text-sm"," dark:text-grey-50 text-grey-700 text-start font-sans"),children:S.parsedInfo?(0,l.ZX)(S.parsedInfo.name):"Unknown"}),(0,n.jsx)(p.pG,{truncate:!0,copyable:!1,fontSize:b.n$.XS,value:ep,href:"/address/".concat(ep)})]})]})]})}),(0,n.jsx)("div",{children:C&&C.length>0&&(0,n.jsx)(a.Ct,{icon:(0,n.jsx)(s.JO,{icon:"tabler:file-alert"}),iconPlacement:"left",color:b.Mr.RED,size:b.n$.SM,inverseStyle:!0,children:C[0]&&C[0].msg})})]})})}),(0,n.jsx)(V.vF,{className:"font-mono text-md p-4 ".concat(eL()),children:(0,n.jsxs)(a.Kq,{direction:"col",gap:3,children:[(0,n.jsx)(a.Kq,{className:"text-sm",widthFull:!0,children:(0,n.jsx)(K,{accounts:S.accounts})}),(0,n.jsxs)(a.Kq,{direction:"col",gap:2,className:"w-full",children:[(null!==(v=null===(o=S.rawData)||void 0===o?void 0:o.length)&&void 0!==v?v:0)>0&&(0,n.jsx)(a.Zb,{backgroundColor:"bg-surface-base",rounded:"xl",padding:4,border:!0,children:(0,n.jsxs)(a.Kq,{gap:2,widthFull:!0,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between flex-wrap",children:[(0,n.jsx)(a.xv,{as:"span",color:b.Mr.NEUTRAL_DEFAULT,size:b.n$.MD,fontStyle:"mono",fontWeight:"font-semibold",children:"Data"}),(0,n.jsxs)("div",{className:"flex gap-4 items-center flex-wrap",children:[(0,n.jsx)(a.zx,{onClick:eO,icon:(0,n.jsx)(s.JO,{icon:"tabler:".concat(ev?"circle-check":"copy")}),iconOnly:!0,btnColor:ev?b.Mr.GREEN:b.Mr.BLUE,size:b.n$.SM}),(0,n.jsx)(a.dm,{layoutId:"Data-".concat(w,"-").concat(y),isActiveButton:es,setIsActiveButton:ea,size:b.n$.XS,childrenProps:eR,className:"flex-wrap"})]})]}),(0,n.jsx)(a.Kq,{className:"max-h-96",children:(0,n.jsx)(H,{rawData:S.rawData,parsedData:eC,activeButton:es,showBase58:el,setShowBase58:eo})})]})}),S.parsedEvents&&Object.keys(S.parsedEvents).length>0&&(0,n.jsx)(a.Zb,{backgroundColor:"bg-surface-base",rounded:"xl",padding:4,border:!0,children:(0,n.jsx)(a.Kq,{gap:2,widthFull:!0,children:(0,n.jsxs)(a.Kq,{direction:"col",gap:2,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between flex-wrap",children:[(0,n.jsx)(a.xv,{as:"span",color:b.Mr.NEUTRAL_DEFAULT,size:b.n$.MD,fontStyle:"mono",children:"Event Data"}),(0,n.jsxs)("div",{className:"flex gap-4 items-center flex-wrap",children:[(0,n.jsx)(a.zx,{onClick:eT,icon:(0,n.jsx)(s.JO,{icon:"tabler:".concat(ej?"circle-check":"copy")}),iconOnly:!0,btnColor:ej?b.Mr.GREEN:b.Mr.BLUE,size:"md"}),(0,n.jsx)(a.dm,{layoutId:"Event-".concat(w,"-").concat(y),isActiveButton:ec,setIsActiveButton:ei,size:b.n$.XS,childrenProps:eR,className:"flex-wrap"})]})]}),(0,n.jsx)(a.Kq,{className:"max-h-96",children:(0,n.jsx)(q,{rawData:S.rawEventData,parsedData:S.parsedEvents,activeButton:ec,showBase58:ed,setShowBase58:ex})})]})})})]})]})})]}),z&&z.length>0&&(0,n.jsx)(n.Fragment,{children:z})]},"parentMobile-".concat(O)):(0,n.jsxs)("div",{className:"flex flex-col ".concat(void 0===y&&"rounded-xl"," ").concat(E&&"rounded-b-xl"),children:[(0,n.jsxs)(V.Qd,{value:"disclosure-".concat(O),children:[(0,n.jsx)(V.o4,{className:"flex justify-between items-center dark:bg-dark-900 bg-light-50 w-full p-0 pr-4 ".concat("large"===Q&&"h-24"," ").concat(ez()),ref:e=>en.current=e,children:(0,n.jsx)("div",{className:"relative flex flex-wrap items-center w-full lg:px-5 px-8 border-gray-600 border-opacity-30 h-full",id:"logs-".concat(w+1,".").concat(void 0===y?"0":y+1),children:(0,n.jsxs)("div",{className:"items-center w-full h-full flex ".concat(void 0===y?"gap-5 lg:gap-10":" gap-6 lg:gap-11"),children:[(0,n.jsx)("div",{className:"".concat(void 0!==y?"h-full ml-[31px] lg:block":"h-full lg:flex w-[64px] justify-center shrink-0"),children:(0,n.jsx)(a.Vm,{className:"h-full",value:"".concat(void 0!==y?"".concat(w+1,".").concat(y+1):w+1),rightOffset:void 0!==y,borderColor:void 0===y?"border-blue-400":void 0,connections:eA,error:!!C&&C.length>0})}),void 0===y&&(0,n.jsx)(et,{programId:ep,logoURI:null==ey?void 0:ey.logoURI}),(0,n.jsxs)("div",{className:"py-4",children:[(0,n.jsxs)("div",{className:"font-semibold flex items-center gap-1 dar
1k:text-grey-50 text-grey-700 ".concat("small"===Q&&"text-sm"),children:[(0,n.jsx)(p.pG,{disableTruncationIfSameValue:!0,widthSize:b.n$["2XL"],copyable:!1,fontSize:b.n$.SM,value:ep,href:"/address/".concat(ep),className:"truncate",textColor:b.Mr.PURPLE})," : ",(0,n.jsx)("span",{className:"font-normal font-sans ml-1 shrink-0",children:S.parsedInfo?(0,l.ZX)(S.parsedInfo.name):"Unknown"}),eN&&(0,n.jsx)(a.Ct,{size:b.n$.XS,color:"gradient",className:"ml-2",children:"Local IDL Parsed"})]}),(0,n.jsxs)("div",{className:"flex flex-row flex-wrap  ".concat("small"===Q&&"text-sm"," text-gray-400 gap-1.5 gap-y-0 items-center"),children:[C&&C.length>0&&(0,n.jsx)(a.Ct,{icon:(0,n.jsx)(s.JO,{icon:"tabler:file-alert"}),iconPlacement:"left",color:b.Mr.RED,size:b.n$.XS,inverseStyle:!0,children:C[0]&&C[0].msg}),A&&A.data&&(0,n.jsxs)("div",{className:"flex flex-row flex-wrap gap-2 items-center align-center",children:[G.D0&&(0,n.jsx)("span",{children:"V2: "}),(0,n.jsx)(Y.T,{template:A.data.mappedTemplate,templateValue:A.data.customMappedValues,components:{Link:e=>(0,n.jsx)(c(),{...e,children:e.children}),Image:e=>(0,n.jsx)(a.rU,{isCustomSize:!0,...e,children:(0,n.jsx)(u.Z,{fill:!0,...e})}),Hash:e=>(0,n.jsx)(p.Jf,{...e}),Text:e=>(0,n.jsx)(a.xv,{...e})},componentsProps:{asPath:eS,currentHighlightedHash:T,setCurrentHighlightedHash:$,textConfig:{textWidthSize:"large"===Q?b.n$.SM:b.n$.XS,textSize:"large"===Q?b.n$.SM:b.n$.XS}},tokenCache:ef,labelsCache:em,useAccountDomains:_.w,userPubkey:Z})]}),!A&&R&&(null===(t=R.data)||void 0===t?void 0:t.action.descriptionFormatSpecifier)!=="Instruction"?j(R.data.action,em,ef,{styled:!0},"large"===Q,T,$):(0,n.jsx)(n.Fragment,{children:!A&&(0,n.jsx)(a.Ct,{icon:(0,n.jsx)(s.JO,{icon:"tabler:users"}),iconPlacement:"left",color:b.Mr.GREY,size:b.n$.XS,inverseStyle:!0,children:(0,n.jsxs)(a.Kq,{direction:"row",gap:2,children:[S.accounts&&S.accounts.length,(0,n.jsxs)("span",{children:[S.accounts&&1===S.accounts.length?"account":"accounts"," "]})]})})})]})]})]})})}),(0,n.jsx)(V.vF,{className:"font-mono text-md p-4 ".concat(eL()),children:(0,n.jsxs)(a.Kq,{className:"flex ".concat(W?"flex-col":"flex-col xl:flex-row"),gap:3,children:[(0,n.jsx)(a.Kq,{className:W?"w-full":"w-full xl:w-1/2",children:(0,n.jsx)(K,{accounts:S.accounts})}),(0,n.jsxs)(a.Kq,{direction:"col",gap:2,className:W?"w-full":"w-full xl:w-1/2",children:[(null!==(x=null===(r=S.rawData)||void 0===r?void 0:r.length)&&void 0!==x?x:0)>0?(0,n.jsx)(a.Zb,{backgroundColor:"bg-surface-base",rounded:"xl",padding:4,border:!0,className:"overflow-y-scroll",children:(0,n.jsxs)(a.Kq,{gap:2,widthFull:!0,heightFull:!0,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between flex-wrap",children:[(0,n.jsx)(a.xv,{as:"span",className:"".concat("large"===Q?"text-lg":"text-md"," font-mono p-4 "),color:b.Mr.NEUTRAL_DEFAULT,fontWeight:"font-semibold",children:"Data"}),(0,n.jsxs)("div",{className:"flex gap-4 items-center flex-wrap",children:[(0,n.jsx)(a.zx,{onClick:eO,icon:(0,n.jsx)(s.JO,{icon:"tabler:".concat(ev?"circle-check":"copy")}),iconOnly:!0,btnColor:ev?b.Mr.GREEN:b.Mr.BLUE,size:"sm"}),(0,n.jsx)(a.dm,{layoutId:"Data-".concat(w,"-").concat(y),isActiveButton:es,setIsActiveButton:ea,size:b.n$.XS,childrenProps:eR,className:"flex-wrap"})]})]}),(0,n.jsx)(a.Kq,{className:"max-h-96",children:(0,n.jsx)(H,{rawData:S.rawData,parsedData:eC,activeButton:es,showBase58:el,setShowBase58:eo})})]})}):(0,n.jsx)(a.Zb,{backgroundColor:"bg-surface-1",rounded:"xl",padding:4,border:!0,children:(0,n.jsx)(a.ub,{icon:(0,n.jsx)(s.JO,{icon:"tabler:file-alert"}),description:"No data for this instruction!",className:"!w-full",size:b.n$.MD})}),S.parsedEvents&&Object.keys(S.parsedEvents).length>0&&(0,n.jsx)(a.Zb,{backgroundColor:"bg-surface-base",rounded:"xl",padding:4,border:!0,className:"overflow-y-scroll",children:(0,n.jsx)(a.Kq,{gap:2,widthFull:!0,children:(0,n.jsxs)(a.Kq,{direction:"col",gap:2,children:[(0,n.jsxs)("div",{className:"flex items-center justify-between flex-wrap",children:[(0,n.jsx)(a.xv,{as:"span",color:b.Mr.NEUTRAL_DEFAULT,className:"".concat("large"===Q?"text-lg":"text-md"," font-mono p-4"),fontWeight:"font-semibold",children:"Event Data"}),(0,n.jsxs)("div",{className:"flex gap-4 items-center flex-wrap",children:[(0,n.jsx)(a.zx,{onClick:eT,icon:(0,n.jsx)(s.JO,{icon:"tabler:".concat(ej?"circle-check":"copy")}),iconOnly:!0,btnColor:ej?b.Mr.GREEN:b.Mr.BLUE,size:"sm"}),(0,n.jsx)(a.dm,{layoutId:"Event-".concat(w,"-").concat(y),isActiveButton:ec,setIsActiveButton:ei,size:b.n$.XS,childrenProps:eR,className:"flex-wrap"})]})]}),(0,n.jsx)(a.Kq,{className:"max-h-96",children:(0,n.jsx)(q,{rawData:S.rawEventData,parsedData:S.parsedEvents,activeButton:ec,showBase58:ed,setShowBase58:ex})})]})})})]})]})})]}),z&&z.length>0&&(0,n.jsx)(n.Fragment,{children:z})]},"parent-".concat(O))}},71240:function(e,t,r){r.d(t,{Z:function(){return N}});
1var n=r(52322),s=r(50274),a=r(76422),l=r(43544),o=r(5632),c=r(2784),i=r(74176),d=r(63445),x=r(43835),u=r(43649),h=r(18266),m=r(24239),g=r(55849),f=r(46519);let p=e=>{let{iconSize:t,value:r,color:s}=e,[a,l]=(0,c.useState)("copy"),o=async()=>{try{await navigator.clipboard.writeText(r||""),l("copied")}catch(e){l("errored")}setTimeout(()=>l("copy"),1e3)};return"copy"===a?(0,n.jsx)("button",{onClick:o,children:(0,n.jsx)(m.Z,{size:t,color:s,strokeWidth:2})}):"copied"===a?(0,n.jsx)(g.Z,{size:t,strokeWidth:2,className:"text-green-400"}):"errored"===a?(0,n.jsx)(f.Z,{size:t,strokeWidth:2,className:"text-red-500"}):null};var v=r(53725),b=r(13844);let j=e=>{switch(e){case"blue":return"text-blue-500";case"muted":return"text-grey-300";case"green":return"text-green-500 dark:text-green-300";case"yellow":return"text-red-300";default:return"dark:text-grey-50 text-grey-700"}},w=e=>{let{lineText:t,lineNumber:r,onMouseEvent:o}=e,[i,d]=(0,c.useState)(!1),x=async e=>{try{await navigator.clipboard.writeText(e)}catch(e){console.error(e)}},u=async()=>{try{if(window.location.toString().includes("&lineNum")){let e=new URL(window.location.toString()),t=new URLSearchParams(e.search),n=[...t.keys()].filter(e=>"lineNum"!==e),s=new URL(e.origin+e.pathname);for(let e of n)s.searchParams.append(e,t.get(e)||"");await navigator.clipboard.writeText(s.toString()+"&lineNum=".concat(r+1))}else await navigator.clipboard.writeText(window.location.toString()+"&lineNum=".concat(r+1))}catch(e){console.error(e)}};return(0,n.jsx)("div",{className:"absolute left-[-30px]",children:(0,n.jsxs)(b.J2,{open:i,onOpenChange:d,children:[(0,n.jsx)(b.xo,{asChild:!0,children:(0,n.jsx)("div",{children:(0,n.jsx)(a.zx,{btnColor:"purple",size:l.n$.XS,icon:(0,n.jsx)(s.JO,{icon:"tabler:code-dots",className:"icon-sm text-white hover:text-purple-300"}),className:"!p-2",onClick:()=>{o(r,!1)}})})}),(0,n.jsx)(b.yk,{side:"right",align:"start",alignOffset:25,className:"".concat(i?"block":"hidden"," z-50 dark:bg-navy-700 bg-light-50 border dark:border-navy-600 border-navy-50 rounded-md w-full p-2"),children:(0,n.jsxs)(a.Kq,{direction:"col",gap:2,widthFull:!0,className:"text-sm font-mono",children:[(0,n.jsx)("button",{className:"p-2 hover:bg-light-400 dark:hover:bg-navy-900 dark:text-grey-50 text-grey-700 rounded",onClick:()=>{x(t),d(!i)},children:"Copy line"}),(0,n.jsx)("button",{className:"p-2 hover:bg-light-400 dark:hover:bg-navy-900 dark:text-grey-50 text-grey-700 rounded",onClick:()=>{u(),d(!i)},children:"Copy permalink"})]})})]})})},y=e=>{let t;let{style:r,logText:s,indentLevel:a,programNumber:l}=e,{asPath:c}=(0,o.useRouter)();if(!s.startsWith("Program log:")&&s.includes("Program")&&s.includes("compute units")){let e=s.split(" "),a=e[0],l=e[1],o=e.slice(2).join(" ").match(/\d+/g)||0,i=parseInt(o[0],10),d=parseInt(o[1],10);t=(0,n.jsxs)("div",{className:"flex overflow-x font-medium text-md ".concat(j(r)),children:["".concat(a," "),(0,n.jsx)("a",{href:(0,x.n)("/address/".concat(l),c),className:"text-[#BA68C8] hover:text-purple-800",children:"".concat(l," ")}),"consumed",(0,n.jsxs)("span",{className:"text-blue-400 dark:text-[#81D4FA]",children:[" ","".concat(i)," "]}),"of",(0,n.jsxs)("span",{className:"text-blue-400 dark:text-[#81D4FA]",children:[" ",d," "]}),"compute units"]})}else t=s.startsWith("Invoking")?(0,n.jsx)("div",{className:"flex whitespace-nowrap overflow-x",children:(0,n.jsx)("div",{onClick:()=>{var e;return null===(e=document.getElementById("logs-".concat(l,".0")))||void 0===e?void 0:e.scrollIntoView({block:"center",behavior:"smooth"})},className:"text-blue-400 dark:text-[#81D4FA] hover:text-blue-800 cursor-pointer",children:s})}):s.includes("Program returned error")?(0,n.jsx)("div",{className:"flex whitespace-nowrap overflow-x",children:(0,n.jsx)("div",{onClick:()=>{var e;return null===(e=document.getElementById("logs-".concat(l,".0")))||void 0===e?void 0:e.scrollIntoView({block:"center",behavior:"smooth"})},className:"cursor-pointer text-red-600 hover:text-red-800",children:s})}):(0,n.jsx)("div",{className:"flex whitespace-nowrap overflow-x font-medium text-md ".concat(j(r)),children:s});for(let e=0;e<a;e++)t=(0,n.jsx)("div",{className:"ml-5 items-start flex-col pl-2 w-full break-words overflow-x",children:t});return(0,n.jsx)(n.Fragment,{children:t})};var N=e=>{var t;let r,m;(0,i.F)(e=>e.currentRPC);let{publicKey:g}=(0,h.yG)();null==g||g.toString();let f=[{id:"raw",children:(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)(s.JO,{icon:"tabler:code",className:"icon-xs"})," Raw"]})},{id:"pretty",children:(0,n.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,n.jsx)(s.JO,{icon:"tabler:crystal-ball",className:"icon-xs"})," Pretty"]})}],{logs:b}=e,{data:N}=(0,u.ZP)(d.L.LABELS),[k,S]=(0,c.useState)(0),[E,M]=(0,c.useState)(0),z=(0,c.useRef)(null),L=(0,o.useRouter)(),{lineNum:C}=L.query,R=(0,i.F)(e=>e.logsLayout),[A,O]=(0,c.useState)(R),[T,$]=(0,c.useState)(!1),D=async e=>{try{await navigator.clipboard.writeText(e||""),$(!0)}catch(e){$(!1)}setTimeout(()=>$(!1),1e3)},B=(0,n.jsx)(n.Fragment,{});if(b){let e=b.logMessages&&b.logMessages.join(" ")||"";B=(0,n.jsx)(a.zx,{onClick:()=>{D(e)},icon:(0,n.jsx)(s.JO,{icon:"tabler:".concat(T?"circle-check":"copy")}),size:l.n$.XS,ghost:!0,btnColor:T?l.Mr.GREEN:l.Mr.BLUE,children:T?"Copied":"Copy"})}let F=(e,t)=>{t?S(e+1):M(e+1)};return(0,c.useEffect)(()=>{C&&"string"==typeof C&&(e=>{let t=document.getElementById("program-logs-".concat(e));t&&t.scrollIntoView({block:"center",behavior:"smooth"}),S(+e),M(+e)})(C)},[document.documentElement.scrollHeight]),(0,c.useEffect)(()=>{let e=e=>{z.current&&!z.current.contains(e.target)&&(S(0),M(0))};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[z]),(0,n.jsx)("div",{ref:z,className:"hidden lg:block",children:(0,n.jsxs)(a.Zb,{backgroundColor:"bg-surface-1",className:"flex flex-col rounded-2xl p-6",border:!0,children:[(0,n.jsxs)("div",{className:"flex flex-1 gap-2 justify-between items-center",children:[(0,n.jsx)(a.xv,{as:"span",color:l.Mr.NEUTRAL_DEFAULT,children:"Logs"}),(0,n.jsxs)("div",{className:"flex justify-evenly items-center gap-4",children:[B,(0,n.jsx)(a.dm,{layoutId:"programlogsId",size:l.n$.XS,isActiveButton:A,setIsActiveButton:O,childrenProps:f,className:"flex-wrap"})]})]}),(0,n.jsx)("div",{className:"relative flex flex-col bg-background-400 rounded-2xl p-4 gap-2",children:(0,n.jsx)("div",{className:"flex flex-col overflow-x-auto font-mono",children:"pretty"===A?(0,n.jsx)(n.Fragment,{children:(r=[],m=0,null===(t=b.prettyLogs)||void 0===t||t.map((e,t)=>{let n=e.invokedProgram?(0,v.Rg)(N,e.invokedProgram):"Unknown Program",s={index:m,logText:"#".concat(t+1," ").concat(n)||0,indent:0,style:"light",programNumber:t+1,headerLog:!0,invokedProgram:e.invokedProgram||void 0};m++,r.push(s),e.logs.length>0&&e.logs.map(e=>{let n={index:m,logText:e.text,indent:e.indentLevel+1,style:e.style,programNumber:t+1,headerLog:!1,invokedProgram:void 0};m++,r.push(n)})}),r).map((e,t)=>{let r=e.index,s=e.logText,a=e.indent,l=e.style,o=e.programNumber,c=e.invokedProgram;return(0,n.jsxs)("div",{className:"flex gap-6",children:[k===r+1&&(0,n.jsx)(w,{lineNumber:r,lineText:s||"",onMouseEvent:F}),(0,n.jsx)("div",{id:"program-logs-".concat(r),onClick:()=>{F(r,!1)},onMouseOver:()=>{F(r,!0)},children:(0,n.jsx)("span",{className:"text-grey-300 text-md font-bold hover:text-gray-300 cursor-pointer",children:r+1})}),(0,n.jsx)("div",{className:"flex flex-row ".concat(E===r+1&&"bg-orange-800 transition-colors duration-500 ease-linear"),children:(0,n.jsx)("pre",{children:(0,n.jsx)("span",{className:"font-medium text-md ".concat(j(l),"}"),children:e.headerLog?(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("a",{href:(0,x.n)("/address/".concat(c),L.asPath),className:"text-[#BA68C8] hover:text-purple-800",children:s}),(0,n.jsx)(p,{iconSize:20,value:"".concat(c),color:"#BA68C8"})]}):(0,n.jsx)(y,{style:l,logText:s,indentLevel:a,programNumber:o})})})})]},"flattened-logs-".concat(t))})}):(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"flex overflow-x-auto break-none gap-6 dark:text-grey-50 text-grey-700",children:[(0,n.jsx)("div",{className:"flex flex-col",children:b.logMessages&&b.logMessages.map((e,t)=>(0,n.jsx)("span",{className:"font-bold text-md text-grey-300",children:t+1}))}),(0,n.jsx)("div",{className:"flex flex-col",children:b.logMessages&&b.logMessages.map((e,t)=>(0,n.jsxs)("pre",{className:"ml-5",children:[e,t!==(b.logMessages&&b.logMessages.length-1)&&","]}))})]})})})})]})})}},84098:function(e,t,r){var n=r(52322),s=r(25239);r(2784);var a=r(43544);t.Z=e=>{let{children:t,tooltipText:r}=e;return(0,n.jsx)(s.pn,{delayDuration:200,children:(0,n.jsxs)(s.u,{children:[(0,n.jsx)(s.aJ,{children:t}),(0,n.jsxs)(s._v,{side:"bottom",size:a.n$.SM,children:[r," "]})]})})}},71330:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(18409),s=r(2784),a=["size","color"];function l(e){var t=e.size,r=void 0===t?24:t,l=e.color,o=(0,n.Kd)(e,a);return s.createElement("svg",(0,n.gY)({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-corner-down-right",width:r,height:r,viewBox:"0 0 24 24",stroke:void 0===l?"currentColor":l,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},o),s.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),s.createElement("path",{d:"M6 6v6a3 3 0 0 0 3 3h10l-4 -4m0 8l4 -4"}))}},33539:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(18409),s=r(2784),a=["size","color"];function l(e){var t=e.size,r=void 0===t?24:t,l=e.color,o=(0,n.Kd)(e,a);return s.createElement("svg",(0,n.gY)({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-credit-card",width:r,height:r,viewBox:"0 0 24 24",stroke:void 0===l?"currentColor":l,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},o),s.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),s.createElement("rect",{x:"3",y:"5",width:"18",height:"14",rx:"3"}),s.createElement("line",{x1:"3",y1:"10",x2:"21",y2:"10"}),s.createElement("line",{x1:"7",y1:"15",x2:"7.01",y2:"15"}),s.createElement("line",{x1:"11",y1:"15",x2:"13",y2:"15"}))}},33378:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(18409),s=r(2784),a=["size","color"];function l(e){var t=e.size,r=void 0===t?24:t,l=e.color,o=(0,n.Kd)(e,a);return s.createElement("svg",(0,n.gY)({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-pencil",width:r,height:r,viewBox:"0 0 24 24",stroke:void 0===l?"currentColor":l,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},o),s.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),s.createElement("path",{d:"M4 20h4l10.5 -10.5a1.5 1.5 0 0 0 -4 -4l-10.5 10.5v4"}),s.createElement("line",{x1:"13.5",y1:"6.5",x2:"17.5",y2:"10.5"}))}},24477:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(18409),s=r(2784),a=["size","color"];function l(e){var t=e.size,r=void 0===t?24:t,l=e.color,o=(0,n.Kd)(e,a);return s.createElement("svg",(0,n.gY)({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-table",width:r,height:r,viewBox:"0 0 24 24",stroke:void 0===l?"currentColor":l,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},o),s.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),s.createElement("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2"}),s.createElement("line",{x1:"4",y1:"10",x2:"20",y2:"10"}),s.createElement("line",{x1:"10",y1:"4",x2:"10",y2:"20"}))}},13128:function(e,t,r){r.d(t,{Z:function(){return l}});var n=r(18409),s=r(2784),a=["size","color"];function l(e){var t=e.size,r=void 0===t?24:t,l=e.color,o=(0,n.Kd)(e,a);return s.createElement("svg",(0,n.gY)({xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-writing-sign",width:r,height:r,viewBox:"0 0 24 24",stroke:void 0===l?"currentColor":l,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round"},o),s.createElement("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),s.createElement("path",{d:"M3 19c3.333 -2 5 -4 5 -6c0 -3 -1 -3 -2 -3s-2.032 1.085 -2 3c.034 2.048 1.658 2.877 2.5 4c1.5 2 2.5 2.5 3.5 1c.667 -1 1.167 -1.833 1.5 -2.5c1 2.333 2.333 3.5 4 3.5h2.5"}),s.createElement("path",{d:"M20 17v-12c0 -1.121 -.879 -2 -2 -2s-2 .879 -2 2v12l2 2l2 -2z"}),s.createElement("path",{d:"M16 7h4"}))}}}]);

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.