PageSourceSearch

https://www.zine.supply/_next/static/chunks/646.a9c77397c58e6ffb.js

js zine.supply collected 2026-10-05 07:39:06 UTC 3,056 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[646],{33646:function(e,t,a){a.r(t),a.d(t,{ccipFetch:function(){return k},offchainLookup:function(){return g},offchainLookupAbiItem:function(){return m},offchainLookupSignature:function(){return y}});var r=a(83161),n=a(61344),s=a(69977),o=a(20966);class c extends s.G{constructor({callbackSelector:e,cause:t,data:a,extraData:r,sender:n,urls:s}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",s&&["  Gateway URL(s):",...s.map(e=>`    ${(0,o.Gr)(e)}`)],`  Sender: ${n}`,`  Data: ${a}`,`  Callback selector: ${e}`,`  Extra data: ${r}`].flat()}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupError"})}}class i extends s.G{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.Gr)(t)}`,`Response: ${(0,n.P)(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupResponseMalformedError"})}}class u extends s.G{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"OffchainLookupSenderMismatchError"})}}var f=a(88822),d=a(11856),l=a(62546),h=a(92960),p=a(97451),w=a(9040),b=a(25493);let 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:t,blockTag:a,data:n,to:s}){let{args:o}=(0,d.p)({data:n,abi:[m]}),[i,f,b,y,g]=o;try{if(!function(e,t){if(!(0,p.U)(e))throw new h.b({address:e});if(!(0,p.U)(t))throw new h.b({address:t});return e.toLowerCase()===t.toLowerCase()}(s,i))throw new u({sender:i,to:s});let O=await k({data:b,sender:i,urls:f}),{data:L}=await (0,r.R)(e,{blockNumber:t,blockTag:a,data:(0,w.zo)([y,(0,l.E)([{type:"bytes"},{type:"bytes"}],[O,g])]),to:s});return L}catch(G){throw new c({callbackSelector:y,cause:G,data:n,extraData:g,sender:i,urls:f})}}async function k({data:e,sender:t,urls:a}){let r=Error("An unknown error occurred.");for(let s=0;s<a.length;s++){let o=a[s],c=o.includes("{sender}")||o.includes("{data}")?"GET":"POST",u="POST"===c?{data:e,sender:t}:void 0;try{let d;let l=await fetch(o.replace("{sender}",t).replace("{data}",e),{body:JSON.stringify(u),method:c});if(d=l.headers.get("Content-Type")?.startsWith("application/json")?(await l.json()).data:await l.text(),!l.ok){r=new f.Gg({body:u,details:(0,n.P)(d.error)||l.statusText,headers:l.headers,status:l.status,url:o});continue}if(!(0,b.v)(d)){r=new i({result:d,url:o});continue}return d}catch(h){r=new f.Gg({body:u,details:h.message,url:o})}}throw r}}}]);

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.