PageSourceSearch

https://www.passly.xyz/static/js/7055.faf41f0c.chunk.js

js passly.xyz collected 2026-10-02 02:13:13 UTC 3,623 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunksocial_passport=self.webpackChunksocial_passport||[]).push([[7055],{97055(e,a,t){t.d(a,{offchainLookup:()=>k,offchainLookupSignature:()=>m});var s=t(89379),r=t(5544),n=t(52046),o=t(23512),c=t(21627),l=t(91218);class i extends c.C{constructor(e){var a;let t=e.callbackSelector,s=e.cause,r=e.data,n=e.extraData,o=e.sender,c=e.urls;super(s.shortMessage||"An error occurred while fetching for an offchain result.",{cause:s,metaMessages:[...s.metaMessages||[],null!==(a=s.metaMessages)&&void 0!==a&&a.length?"":[],"Offchain Gateway Call:",c&&["  Gateway URL(s):",...c.map(e=>"    ".concat((0,l.ID)(e)))],"  Sender: ".concat(o),"  Data: ".concat(r),"  Callback selector: ".concat(t),"  Extra data: ".concat(n)].flat(),name:"OffchainLookupError"})}}class d extends c.C{constructor(e){let a=e.result,t=e.url;super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:["Gateway URL: ".concat((0,l.ID)(t)),"Response: ".concat((0,o.A)(a))],name:"OffchainLookupResponseMalformedError"})}}class u extends c.C{constructor(e){let a=e.sender,t=e.to;super("Reverted sender address does not match target contract address (`to`).",{metaMessages:["Contract address: ".concat(t),"OffchainLookup sender address: ".concat(a)],name:"OffchainLookupSenderMismatchError"})}}var p=t(72494),f=t(74745),h=t(31376),w=t(6816),g=t(52620),y=t(31499),b=t(50707);const m="0x556f1830",v={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 k(e,a){let t=a.blockNumber,o=a.blockTag,c=a.data,d=a.requestOptions,p=a.to;const y=(0,f.W)({data:c,abi:[v]}).args,m=(0,r.A)(y,5),k=m[0],C=m[1],T=m[2],x=m[3],L=m[4],q=e.ccipRead,S=q&&"function"===typeof(null===q||void 0===q?void 0:q.request)?q.request:O;try{if(!(0,w.h)(p,k))throw new u({sender:k,to:p});const a=C.includes(b.J)?await(0,b.X)({data:T,ccipRequest:e=>S((0,s.A)((0,s.A)({},e),{},{requestOptions:d}))}):await S({data:T,requestOptions:d,sender:k,urls:C}),r=await(0,n.T)(e,{blockNumber:t,blockTag:o,data:(0,g.xW)([x,(0,h.h)([{type:"bytes"},{type:"bytes"}],[a,L])]),requestOptions:d,to:p});return r.data}catch(M){var A;if(null!==d&&void 0!==d&&null!==(A=d.signal)&&void 0!==A&&A.aborted)throw(0,l.TY)(d.signal);if((0,l.zf)(M))throw M;throw new i({callbackSelector:x,cause:M,data:c,extraData:L,sender:k,urls:C})}}async function O(e){let a=e.data,t=e.requestOptions,r=e.sender,n=e.urls,c=new Error("An unknown error occurred.");for(let g=0;g<n.length;g++){var i;if(null!==t&&void 0!==t&&null!==(i=t.signal)&&void 0!==i&&i.aborted)throw(0,l.TY)(t.signal);const e=n[g],b=e.includes("{data}")?"GET":"POST",m="POST"===b?{data:a,sender:r}:void 0,v="POST"===b?{"Content-Type":"application/json"}:{};try{var u;const n=await fetch(e.replace("{sender}",r.toLowerCase()).replace("{data}",a),(0,s.A)({body:JSON.stringify(m),headers:v,method:b},null!==t&&void 0!==t&&t.signal?{signal:t.signal}:{}));let l;if(l=null!==(u=n.headers.get("Content-Type"))&&void 0!==u&&u.startsWith("application/json")?(await n.json()).data:await n.text(),!n.ok){var f;c=new p.Ci({body:m,details:null!==(f=l)&&void 0!==f&&f.error?(0,o.A)(l.error):n.statusText,headers:n.headers,status:n.status,url:e});continue}if(!(0,y.q)(l)){c=new d({result:l,url:e});continue}return l}catch(w){var h;if(null!==t&&void 0!==t&&null!==(h=t.signal)&&void 0!==h&&h.aborted)throw(0,l.TY)(t.signal);if((0,l.zf)(w))throw w;c=new p.Ci({body:m,details:w.message,url:e})}}throw c}}}]);
2//# sourceMappingURL=7055.faf41f0c.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.