PageSourceSearch

https://app-nuts-family.netlify.app/static/js/702.45cd803b.chunk.js

js app-nuts-family.netlify.app collected 2026-10-03 10:27:35 UTC 3,081 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunknuts_app=self.webpackChunknuts_app||[]).push([[702],{6702:(e,a,t)=>{t.d(a,{offchainLookup:()=>g,offchainLookupSignature:()=>y});var r=t(5369),s=t(93134),n=t(7929),o=t(26368);class c extends n.G{constructor({callbackSelector:e,cause:a,data:t,extraData:r,sender:s,urls:n}){super(a.shortMessage||"An error occurred while fetching for an offchain result.",{cause:a,metaMessages:[...a.metaMessages||[],a.metaMessages?.length?"":[],"Offchain Gateway Call:",n&&["  Gateway URL(s):",...n.map((e=>`    ${(0,o.Gr)(e)}`))],`  Sender: ${s}`,`  Data: ${t}`,`  Callback selector: ${e}`,`  Extra data: ${r}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class u extends n.G{constructor({result:e,url:a}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.Gr)(a)}`,`Response: ${(0,s.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class d extends n.G{constructor({sender:e,to:a}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${a}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}var l=t(30624),i=t(9802),f=t(72043),p=t(88768),h=t(29343);var b=t(96922),w=t(32539);const y="0x556f1830",m={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function g(e,{blockNumber:a,blockTag:t,data:s,to:n}){const{args:o}=(0,i.p)({data:s,abi:[m]}),[u,l,w,y,g]=o,{ccipRead:O}=e,x=O&&"function"==typeof O?.request?O.request:k;try{if(!function(e,a){if(!(0,h.U)(e,{strict:!1}))throw new p.b({address:e});if(!(0,h.U)(a,{strict:!1}))throw new p.b({address:a});return e.toLowerCase()===a.toLowerCase()}(n,u))throw new d({sender:u,to:n});const s=await x({data:w,sender:u,urls:l}),{data:o}=await(0,r.RE)(e,{blockNumber:a,blockTag:t,data:(0,b.zo)([y,(0,f.E)([{type:"bytes"},{type:"bytes"}],[s,g])]),to:n});return o}catch(G){throw new c({callbackSelector:y,cause:G,data:s,extraData:g,sender:u,urls:l})}}async function k({data:e,sender:a,urls:t}){let r=new Error("An unknown error occurred.");for(let o=0;o<t.length;o++){const c=t[o],d=c.includes("{data}")?"GET":"POST",i="POST"===d?{data:e,sender:a}:void 0;try{const t=await fetch(c.replace("{sender}",a).replace("{data}",e),{body:JSON.stringify(i),method:d});let n;if(n=t.headers.get("Content-Type")?.startsWith("application/json")?(await t.json()).data:await t.text(),!t.ok){r=new l.Gg({body:i,details:n?.error?(0,s.P)(n.error):t.statusText,headers:t.headers,status:t.status,url:c});continue}if(!(0,w.v)(n)){r=new u({result:n,url:c});continue}return n}catch(n){r=new l.Gg({body:i,details:n.message,url:c})}}throw r}}}]);
2//# sourceMappingURL=702.45cd803b.chunk.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.