PageSourceSearch

https://rarecode.ai/_next/static/chunks/41311-80d1dc52165676b2.js

js rarecode.ai collected 2026-10-05 12:28:07 UTC 8,912 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[41311],{41311:function(t,e,i){i.d(e,{$D:function(){return h},LJ:function(){return c},yK:function(){return u}});var n=i(82138),s=i(44649),r=i(44874),o=i(58345);function u(t){return n.wn(s.zo("0x05",r.H_(l(t))))}function a(t){let{address:e,chainId:i,nonce:n,...r}=t;return{address:e,chainId:s.xS(i),nonce:s.xS(n),...o.oO(r)}}function h(t){return t.map(a)}function l(t){let{address:e,chainId:i,nonce:n}=t,r=o.Kl(t);return[i?s.xS(i):"0x",e,n?s.xS(n):"0x",...r?o.Vb(r):[]]}function c(t){if(!t||0===t.length)return[];let e=[];for(let i of t)e.push(l(i));return e}},44874:function(t,e,i){i.d(e,{H_:function(){return l}});var n=i(8140),s=i(55072),r=i(44649);let o={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new h({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new a({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new u({offset:t});let e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new u({offset:t});let e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){let e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){let i=e??this.position;return this.assertPosition(i+t-1),this.bytes.subarray(i,i+t)},inspectUint8(t){let e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){let e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){let e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){let e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();let i=this.inspectBytes(t);return this.position+=e??t,i},readUint8(){this.assertReadLimit(),this._touch();let t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();let t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();let t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();let t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){let e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};class u extends s.G{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class a extends s.G{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class h extends s.G{constructor({count:t,limit:e}){super(`Recursive read limit of \`${e}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function l(t,e={}){let{as:i="Hex"}=e;return function(t,e){let{as:i}=e,s=function t(e){return Array.isArray(e)?function(t){let e=t.reduce((t,e)=>t+e.length,0),i=c(e);return{length:e<=55?1+e:1+i+e,encode(n){for(let{encode:s}of(e<=55?n.pushByte(192+e):(n.pushByte(247+i),1===i?n.pushUint8(e):2===i?n.pushUint16(e):3
1===i?n.pushUint24(e):n.pushUint32(e)),t))s(n)}}}(e.map(e=>t(e))):function(t){let e="string"==typeof t?n.H_(t):t,i=c(e.length);return{length:1===e.length&&e[0]<128?1:e.length<=55?1+e.length:1+i+e.length,encode(t){1===e.length&&e[0]<128||(e.length<=55?t.pushByte(128+e.length):(t.pushByte(183+i),1===i?t.pushUint8(e.length):2===i?t.pushUint16(e.length):3===i?t.pushUint24(e.length):t.pushUint32(e.length))),t.pushBytes(e)}}}(e)}(t),u=function(t,{recursiveReadLimit:e=8192}={}){let i=Object.create(o);return i.bytes=t,i.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),i.positionReadCount=new Map,i.recursiveReadLimit=e,i}(new Uint8Array(s.length));return(s.encode(u),"Hex"===i)?r.xv(u.bytes):u.bytes}(t,{as:i})}function c(t){if(t<256)return 1;if(t<65536)return 2;if(t<16777216)return 3;if(t<4294967296)return 4;throw new s.G("Length is too large.")}},58345:function(t,e,i){i.d(e,{DZ:function(){return h},H_:function(){return u},Kb:function(){return f},Kl:function(){return a},Vb:function(){return c},j9:function(){return p},oO:function(){return l},xY:function(){return w}});var n=i(55072),s=i(44649),r=i(45865),o=i(62532);function u(t){if(130!==t.length&&132!==t.length)throw new d({signature:t});let e=BigInt(s.tP(t,0,32)),i=BigInt(s.tP(t,32,64)),n=(()=>{let e=Number(`0x${t.slice(130)}`);if(!Number.isNaN(e))try{return p(e)}catch{throw new v({value:e})}})();return void 0===n?{r:e,s:i}:{r:e,s:i,yParity:n}}function a(t){if(void 0!==t.r&&void 0!==t.s)return function(t){let e="string"==typeof t?u(t):t instanceof Uint8Array?u(s.xv(t)):"string"==typeof t.r?function(t){let e=(()=>{let e=t.v?Number(t.v):void 0,i=t.yParity?Number(t.yParity):void 0;if("number"==typeof e&&"number"!=typeof i&&(i=p(e)),"number"!=typeof i)throw new v({value:t.yParity});return i})();return{r:BigInt(t.r),s:BigInt(t.s),yParity:e}}(t):t.v?h(t):{r:t.r,s:t.s,...void 0!==t.yParity?{yParity:t.yParity}:{}};return!function(t,e={}){let{recovered:i}=e;if(void 0===t.r||void 0===t.s||i&&void 0===t.yParity)throw new y({signature:t});if(t.r<0n||t.r>o.zL)throw new b({value:t.r});if(t.s<0n||t.s>o.zL)throw new g({value:t.s});if("number"==typeof t.yParity&&0!==t.yParity&&1!==t.yParity)throw new v({value:t.yParity})}(e),e}(t)}function h(t){return{r:t.r,s:t.s,yParity:p(t.v)}}
1function l(t){let{r:e,s:i,yParity:n}=t;return{r:s.xS(e,{size:32}),s:s.xS(i,{size:32}),yParity:0===n?"0x0":"0x1"}}function c(t){let{r:e,s:i,yParity:n}=t;return[n?"0x01":"0x",0n===e?"0x":s.fi(s.xS(e)),0n===i?"0x":s.fi(s.xS(i))]}function p(t){if(0===t||27===t)return 0;if(1===t||28===t)return 1;if(t>=35)return t%2==0?1:0;throw new w({value:t})}function f(t){if(0===t)return 27;if(1===t)return 28;throw new v({value:t})}class d extends n.G{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${s.dp(s.Dp(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class y extends n.G{constructor({signature:t}){super(`Signature \`${r.P(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class b extends n.G{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class g extends n.G{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class v extends n.G{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class w extends n.G{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}}}]);

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.