Search
Search

Transaction: 6gmbnWC...bsyu

Status
Failed
Transaction Fee
0.0006 
Deposit Value
0 
Gas Used
6 Tgas
Attached Gas
30 Tgas
Created
March 07, 2024 at 6:50:56pm
Hash
6gmbnWCPZnTp1XYQTRcrVGBYbnd4jSGb45auF1s7bsyu

Actions

Called method: 'fs_store' in contract: web4.tldraw.near
Arguments:
00000000: 65 74 75 72 6e 20 6e 75 6c 6c 21 3d 74 26 26 74 eturn null!=t&&t 00000010: 68 69 73 2e 5f 74 68 72 6f 77 45 72 72 6f 72 28 his._throwError( 00000020: 22 6e 6f 74 20 6e 75 6c 6c 22 2c 74 29 2c 65 2e "not null",t),e. 00000030: 77 72 69 74 65 42 79 74 65 73 28 5b 5d 29 7d 64 writeBytes([])}d 00000040: 65 63 6f 64 65 28 65 29 7b 72 65 74 75 72 6e 20 ecode(e){return 00000050: 65 2e 72 65 61 64 42 79 74 65 73 28 30 29 2c 65 e.readBytes(0),e 00000060: 2e 63 6f 65 72 63 65 28 74 68 69 73 2e 6e 61 6d .coerce(this.nam 00000070: 65 2c 6e 75 6c 6c 29 7d 7d 63 6f 6e 73 74 20 63 e,null)}}const c 00000080: 74 3d 59 2e 66 72 6f 6d 28 2d 31 29 2c 75 74 3d t=Y.from(-1),ut= 00000090: 59 2e 66 72 6f 6d 28 30 29 2c 64 74 3d 59 2e 66 Y.from(0),dt=Y.f 000000a0: 72 6f 6d 28 31 29 2c 70 74 3d 59 2e 66 72 6f 6d rom(1),pt=Y.from 000000b0: 28 32 29 2c 66 74 3d 59 2e 66 72 6f 6d 28 22 31 (2),ft=Y.from("1 000000c0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 000000d0: 30 30 22 29 2c 68 74 3d 59 2e 66 72 6f 6d 28 22 00"),ht=Y.from(" 000000e0: 30 78 66 66 66 66 66 66 66 66 66 66 66 66 66 66 0xffffffffffffff 000000f0: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00000100: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00000110: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00000120: 66 66 22 29 2c 6d 74 3d 59 2e 66 72 6f 6d 28 22 ff"),mt=Y.from(" 00000130: 2d 30 78 38 30 30 30 30 30 30 30 30 30 30 30 30 -0x8000000000000 00000140: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00000150: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00000160: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00000170: 30 30 30 22 29 2c 67 74 3d 59 2e 66 72 6f 6d 28 000"),gt=Y.from( 00000180: 22 30 78 37 66 66 66 66 66 66 66 66 66 66 66 66 "0x7ffffffffffff 00000190: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 000001a0: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 000001b0: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 000001c0: 66 66 66 22 29 3b 63 6c 61 73 73 20 62 74 20 65 fff");class bt e 000001d0: 78 74 65 6e 64 73 20 68 65 7b 63 6f 6e 73 74 72 xtends he{constr 000001e0: 75 63 74 6f 72 28 65 2c 74 2c 6e 29 7b 63 6f 6e uctor(e,t,n){con 000001f0: 73 74 20 72 3d 28 74 3f 22 69 6e 74 22 3a 22 75 st r=(t?"int":"u 00000200: 69 6e 74 22 29 2b 38 2a 65 3b 73 75 70 65 72 28 int")+8*e;super( 00000210: 72 2c 72 2c 6e 2c 21 31 29 2c 74 68 69 73 2e 73 r,r,n,!1),this.s 00000220: 69 7a 65 3d 65 2c 74 68 69 73 2e 73 69 67 6e 65 ize=e,this.signe 00000230: 64 3d 74 7d 64 65 66 61 75 6c 74 56 61 6c 75 65 d=t}defaultValue 00000240: 28 29 7b 72 65 74 75 72 6e 20 30 7d 65 6e 63 6f (){return 0}enco 00000250: 64 65 28 65 2c 74 29 7b 6c 65 74 20 6e 3d 59 2e de(e,t){let n=Y. 00000260: 66 72 6f 6d 28 74 29 2c 72 3d 68 74 2e 6d 61 73 from(t),r=ht.mas 00000270: 6b 28 38 2a 65 2e 77 6f 72 64 53 69 7a 65 29 3b k(8*e.wordSize); 00000280: 69 66 28 74 68 69 73 2e 73 69 67 6e 65 64 29 7b if(this.signed){ 00000290: 6c 65 74 20 65 3d 72 2e 6d 61 73 6b 28 38 2a 74 let e=r.mask(8*t 000002a0: 68 69 73 2e 73 69 7a 65 2d 31 29 3b 28 6e 2e 67 his.size-1);(n.g 000002b0: 74 28 65 29 7c 7c 6e 2e 6c 74 28 65 2e 61 64 64 t(e)||n.lt(e.add 000002c0: 28 64 74 29 2e 6d 75 6c 28 63 74 29 29 29 26 26 (dt).mul(ct)))&& 000002d0: 74 68 69 73 2e 5f 74 68 72 6f 77 45 72 72 6f 72 this._throwError 000002e0: 28 22 76 61 6c 75 65 20 6f 75 74 2d 6f 66 2d 62 ("value out-of-b 000002f0: 6f 75 6e 64 73 22 2c 74 29 7d 65 6c 73 65 28 6e ounds",t)}else(n 00000300: 2e 6c 74 28 75 74 29 7c 7c 6e 2e 67 74 28 72 2e .lt(ut)||n.gt(r. 00000310: 6d 61 73 6b 28 38 2a 74 68 69 73 2e 73 69 7a 65 mask(8*this.size 00000320: 29 29 29 26 26 74 68 69 73 2e 5f 74 68 72 6f 77 )))&&this._throw 00000330: 45 72 72 6f 72 28 22 76 61 6c 75 65 20 6f 75 74 Error("value out 00000340: 2d 6f 66 2d 62 6f 75 6e 64 73 22 2c 74 29 3b 72 -of-bounds",t);r 00000350: 65 74 75 72 6e 20 6e 3d 6e 2e 74 6f 54 77 6f 73 eturn n=n.toTwos 00000360: 28 38 2a 74 68 69 73 2e 73 69 7a 65 29 2e 6d 61 (8*this.size).ma 00000370: 73 6b 28 38 2a 74 68 69 73 2e 73 69 7a 65 29 2c sk(8*this.size), 00000380: 74 68 69 73 2e 73 69 67 6e 65 64 26 26 28 6e 3d this.signed&&(n= 00000390: 6e 2e 66 72 6f 6d 54 77 6f 73 28 38 2a 74 68 69 n.fromTwos(8*thi 000003a0: 73 2e 73 69 7a 65 29 2e 74 6f 54 77 6f 73 28 38 s.size).toTwos(8 000003b0: 2a 65 2e 77 6f 72 64 53 69 7a 65 29 29 2c 65 2e *e.wordSize)),e. 000003c0: 77 72 69 74 65 56 61 6c 75 65 28 6e 29 7d 64 65 writeValue(n)}de 000003d0: 63 6f 64 65 28 65 29 7b 6c 65 74 20 74 3d 65 2e code(e){let t=e. 000003e0: 72 65 61 64 56 61 6c 75 65 28 29 2e 6d 61 73 6b readValue().mask 000003f0: 28 38 2a 74 68 69 73 2e 73 69 7a 65 29 3b 72 65 (8*this.size);re 00000400: 74 75 72 6e 20 74 68 69 73 2e 73 69 67 6e 65 64 turn this.signed 00000410: 26 26 28 74 3d 74 2e 66 72 6f 6d 54 77 6f 73 28 &&(t=t.fromTwos( 00000420: 38 2a 74 68 69 73 2e 73 69 7a 65 29 29 2c 65 2e 8*this.size)),e. 00000430: 63 6f 65 72 63 65 28 74 68 69 73 2e 6e 61 6d 65 coerce(this.name 00000440: 2c 74 29 7d 7d 63 6c 61 73 73 20 79 74 20 65 78 ,t)}}class yt ex 00000450: 74 65 6e 64 73 20 69 74 7b 63 6f 6e 73 74 72 75 tends it{constru 00000460: 63 74 6f 72 28 65 29 7b 73 75 70 65 72 28 22 73 ctor(e){super("s 00000470: 74 72 69 6e 67 22 2c 65 29 7d 64 65 66 61 75 6c tring",e)}defaul 00000480: 74 56 61 6c 75 65 28 29 7b 72 65 74 75 72 6e 22 tValue(){return" 00000490: 22 7d 65 6e 63 6f 64 65 28 65 2c 74 29 7b 72 65 "}encode(e,t){re 000004a0: 74 75 72 6e 20 73 75 70 65 72 2e 65 6e 63 6f 64 turn super.encod 000004b0: 65 28 65 2c 71 65 28 74 29 29 7d 64 65 63 6f 64 e(e,qe(t))}decod 000004c0: 65 28 65 29 7b 72 65 74 75 72 6e 20 58 65 28 73 e(e){return Xe(s 000004d0: 75 70 65 72 2e 64 65 63 6f 64 65 28 65 29 29 7d uper.decode(e))} 000004e0: 7d 63 6c 61 73 73 20 76 74 20 65 78 74 65 6e 64 }class vt extend 000004f0: 73 20 68 65 7b 63 6f 6e 73 74 72 75 63 74 6f 72 s he{constructor 00000500: 28 65 2c 74 29 7b 6c 65 74 20 6e 3d 21 31 3b 63 (e,t){let n=!1;c 00000510: 6f 6e 73 74 20 72 3d 5b 5d 3b 65 2e 66 6f 72 45 onst r=[];e.forE 00000520: 61 63 68 28 28 65 3d 3e 7b 65 2e 64 79 6e 61 6d ach((e=>{e.dynam 00000530: 69 63 26 26 28 6e 3d 21 30 29 2c 72 2e 70 75 73 ic&&(n=!0),r.pus 00000540: 68 28 65 2e 74 79 70 65 29 7d 29 29 3b 73 75 70 h(e.type)}));sup 00000550: 65 72 28 22 74 75 70 6c 65 22 2c 22 74 75 70 6c er("tuple","tupl 00000560: 65 28 22 2b 72 2e 6a 6f 69 6e 28 22 2c 22 29 2b e("+r.join(",")+ 00000570: 22 29 22 2c 74 2c 6e 29 2c 74 68 69 73 2e 63 6f ")",t,n),this.co 00000580: 64 65 72 73 3d 65 7d 64 65 66 61 75 6c 74 56 61 ders=e}defaultVa 00000590: 6c 75 65 28 29 7b 63 6f 6e 73 74 20 65 3d 5b 5d lue(){const e=[] 000005a0: 3b 74 68 69 73 2e 63 6f 64 65 72 73 2e 66 6f 72 ;this.coders.for 000005b0: 45 61 63 68 28 28 74 3d 3e 7b 65 2e 70 75 73 68 Each((t=>{e.push 000005c0: 28 74 2e 64 65 66 61 75 6c 74 56 61 6c 75 65 28 (t.defaultValue( 000005d0: 29 29 7d 29 29 3b 63 6f 6e 73 74 20 74 3d 74 68 ))}));const t=th 000005e0: 69 73 2e 63 6f 64 65 72 73 2e 72 65 64 75 63 65 is.coders.reduce 000005f0: 28 28 28 65 2c 74 29 3d 3e 7b 63 6f 6e 73 74 20 (((e,t)=>{const 00000600: 6e 3d 74 2e 6c 6f 63 61 6c 4e 61 6d 65 3b 72 65 n=t.localName;re 00000610: 74 75 72 6e 20 6e 26 26 28 65 5b 6e 5d 7c 7c 28 turn n&&(e[n]||( 00000620: 65 5b 6e 5d 3d 30 29 2c 65 5b 6e 5d 2b 2b 29 2c e[n]=0),e[n]++), 00000630: 65 7d 29 2c 7b 7d 29 3b 72 65 74 75 72 6e 20 74 e}),{});return t 00000640: 68 69 73 2e 63 6f 64 65 72 73 2e 66 6f 72 45 61 his.coders.forEa 00000650: 63 68 28 28 28 6e 2c 72 29 3d 3e 7b 6c 65 74 20 ch(((n,r)=>{let 00000660: 6f 3d 6e 2e 6c 6f 63 61 6c 4e 61 6d 65 3b 6f 26 o=n.localName;o& 00000670: 26 31 3d 3d 3d 74 5b 6f 5d 26 26 28 22 6c 65 6e &1===t[o]&&("len 00000680: 67 74 68 22 3d 3d 3d 6f 26 26 28 6f 3d 22 5f 6c gth"===o&&(o="_l 00000690: 65 6e 67 74 68 22 29 2c 6e 75 6c 6c 3d 3d 65 5b ength"),null==e[ 000006a0: 6f 5d 26 26 28 65 5b 6f 5d 3d 65 5b 72 5d 29 29 o]&&(e[o]=e[r])) 000006b0: 7d 29 29 2c 4f 62 6a 65 63 74 2e 66 72 65 65 7a })),Object.freez 000006c0: 65 28 65 29 7d 65 6e 63 6f 64 65 28 65 2c 74 29 e(e)}encode(e,t) 000006d0: 7b 72 65 74 75 72 6e 20 74 74 28 65 2c 74 68 69 {return tt(e,thi 000006e0: 73 2e 63 6f 64 65 72 73 2c 74 29 7d 64 65 63 6f s.coders,t)}deco 000006f0: 64 65 28 65 29 7b 72 65 74 75 72 6e 20 65 2e 63 de(e){return e.c 00000700: 6f 65 72 63 65 28 74 68 69 73 2e 6e 61 6d 65 2c oerce(this.name, 00000710: 6e 74 28 65 2c 74 68 69 73 2e 63 6f 64 65 72 73 nt(e,this.coders 00000720: 29 29 7d 7d 63 6f 6e 73 74 20 53 74 3d 6e 65 77 ))}}const St=new 00000730: 20 79 28 64 65 29 2c 45 74 3d 7b 7d 3b 6c 65 74 y(de),Et={};let 00000740: 20 5f 74 3d 7b 63 61 6c 6c 64 61 74 61 3a 21 30 _t={calldata:!0 00000750: 2c 6d 65 6d 6f 72 79 3a 21 30 2c 73 74 6f 72 61 ,memory:!0,stora 00000760: 67 65 3a 21 30 7d 2c 77 74 3d 7b 63 61 6c 6c 64 ge:!0},wt={calld 00000770: 61 74 61 3a 21 30 2c 6d 65 6d 6f 72 79 3a 21 30 ata:!0,memory:!0 00000780: 7d 3b 66 75 6e 63 74 69 6f 6e 20 78 74 28 65 2c };function xt(e, 00000790: 74 29 7b 69 66 28 22 62 79 74 65 73 22 3d 3d 3d t){if("bytes"=== 000007a0: 65 7c 7c 22 73 74 72 69 6e 67 22 3d 3d 3d 65 29 e||"string"===e) 000007b0: 7b 69 66 28 5f 74 5b 74 5d 29 72 65 74 75 72 6e {if(_t[t])return 000007c0: 21 30 7d 65 6c 73 65 20 69 66 28 22 61 64 64 72 !0}else if("addr 000007d0: 65 73 73 22 3d 3d 3d 65 29 7b 69 66 28 22 70 61 ess"===e){if("pa 000007e0: 79 61 62 6c 65 22 3d 3d 3d 74 29 72 65 74 75 72 yable"===t)retur 000007f0: 6e 21 30 7d 65 6c 73 65 20 69 66 28 28 65 2e 69 n!0}else if((e.i 00000800: 6e 64 65 78 4f 66 28 22 5b 22 29 3e 3d 30 7c 7c ndexOf("[")>=0|| 00000810: 22 74 75 70 6c 65 22 3d 3d 3d 65 29 26 26 77 74 "tuple"===e)&&wt 00000820: 5b 74 5d 29 72 65 74 75 72 6e 21 30 3b 72 65 74 [t])return!0;ret 00000830: 75 72 6e 28 5f 74 5b 74 5d 7c 7c 22 70 61 79 61 urn(_t[t]||"paya 00000840: 62 6c 65 22 3d 3d 3d 74 29 26 26 53 74 2e 74 68 ble"===t)&&St.th 00000850: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 00000860: 28 22 69 6e 76 61 6c 69 64 20 6d 6f 64 69 66 69 ("invalid modifi 00000870: 65 72 22 2c 22 6e 61 6d 65 22 2c 74 29 2c 21 31 er","name",t),!1 00000880: 7d 66 75 6e 63 74 69 6f 6e 20 54 74 28 65 2c 74 }function Tt(e,t 00000890: 29 7b 66 6f 72 28 6c 65 74 20 6e 20 69 6e 20 74 ){for(let n in t 000008a0: 29 74 65 28 65 2c 6e 2c 74 5b 6e 5d 29 7d 63 6f )te(e,n,t[n])}co 000008b0: 6e 73 74 20 43 74 3d 4f 62 6a 65 63 74 2e 66 72 nst Ct=Object.fr 000008c0: 65 65 7a 65 28 7b 73 69 67 68 61 73 68 3a 22 73 eeze({sighash:"s 000008d0: 69 67 68 61 73 68 22 2c 6d 69 6e 69 6d 61 6c 3a ighash",minimal: 000008e0: 22 6d 69 6e 69 6d 61 6c 22 2c 66 75 6c 6c 3a 22 "minimal",full:" 000008f0: 66 75 6c 6c 22 2c 6a 73 6f 6e 3a 22 6a 73 6f 6e full",json:"json 00000900: 22 7d 29 2c 41 74 3d 6e 65 77 20 52 65 67 45 78 "}),At=new RegEx 00000910: 70 28 2f 5e 28 2e 2a 29 5c 5b 28 5b 30 2d 39 5d p(/^(.*)\[([0-9] 00000920: 2a 29 5c 5d 24 2f 29 3b 63 6c 61 73 73 20 6b 74 *)\]$/);class kt 00000930: 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 {constructor(e,t 00000940: 29 7b 65 21 3d 3d 45 74 26 26 53 74 2e 74 68 72 ){e!==Et&&St.thr 00000950: 6f 77 45 72 72 6f 72 28 22 75 73 65 20 66 72 6f owError("use fro 00000960: 6d 53 74 72 69 6e 67 22 2c 79 2e 65 72 72 6f 72 mString",y.error 00000970: 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 s.UNSUPPORTED_OP 00000980: 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 ERATION,{operati 00000990: 6f 6e 3a 22 6e 65 77 20 50 61 72 61 6d 54 79 70 on:"new ParamTyp 000009a0: 65 28 29 22 7d 29 2c 54 74 28 74 68 69 73 2c 74 e()"}),Tt(this,t 000009b0: 29 3b 6c 65 74 20 6e 3d 74 68 69 73 2e 74 79 70 );let n=this.typ 000009c0: 65 2e 6d 61 74 63 68 28 41 74 29 3b 54 74 28 74 e.match(At);Tt(t 000009d0: 68 69 73 2c 6e 3f 7b 61 72 72 61 79 4c 65 6e 67 his,n?{arrayLeng 000009e0: 74 68 3a 70 61 72 73 65 49 6e 74 28 6e 5b 32 5d th:parseInt(n[2] 000009f0: 7c 7c 22 2d 31 22 29 2c 61 72 72 61 79 43 68 69 ||"-1"),arrayChi 00000a00: 6c 64 72 65 6e 3a 6b 74 2e 66 72 6f 6d 4f 62 6a ldren:kt.fromObj 00000a10: 65 63 74 28 7b 74 79 70 65 3a 6e 5b 31 5d 2c 63 ect({type:n[1],c 00000a20: 6f 6d 70 6f 6e 65 6e 74 73 3a 74 68 69 73 2e 63 omponents:this.c 00000a30: 6f 6d 70 6f 6e 65 6e 74 73 7d 29 2c 62 61 73 65 omponents}),base 00000a40: 54 79 70 65 3a 22 61 72 72 61 79 22 7d 3a 7b 61 Type:"array"}:{a 00000a50: 72 72 61 79 4c 65 6e 67 74 68 3a 6e 75 6c 6c 2c rrayLength:null, 00000a60: 61 72 72 61 79 43 68 69 6c 64 72 65 6e 3a 6e 75 arrayChildren:nu 00000a70: 6c 6c 2c 62 61 73 65 54 79 70 65 3a 6e 75 6c 6c ll,baseType:null 00000a80: 21 3d 74 68 69 73 2e 63 6f 6d 70 6f 6e 65 6e 74 !=this.component 00000a90: 73 3f 22 74 75 70 6c 65 22 3a 74 68 69 73 2e 74 s?"tuple":this.t 00000aa0: 79 70 65 7d 29 2c 74 68 69 73 2e 5f 69 73 50 61 ype}),this._isPa 00000ab0: 72 61 6d 54 79 70 65 3d 21 30 2c 4f 62 6a 65 63 ramType=!0,Objec 00000ac0: 74 2e 66 72 65 65 7a 65 28 74 68 69 73 29 7d 66 t.freeze(this)}f 00000ad0: 6f 72 6d 61 74 28 65 29 7b 69 66 28 65 7c 7c 28 ormat(e){if(e||( 00000ae0: 65 3d 43 74 2e 73 69 67 68 61 73 68 29 2c 43 74 e=Ct.sighash),Ct 00000af0: 5b 65 5d 7c 7c 53 74 2e 74 68 72 6f 77 41 72 67 [e]||St.throwArg 00000b00: 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 umentError("inva 00000b10: 6c 69 64 20 66 6f 72 6d 61 74 20 74 79 70 65 22 lid format type" 00000b20: 2c 22 66 6f 72 6d 61 74 22 2c 65 29 2c 65 3d 3d ,"format",e),e== 00000b30: 3d 43 74 2e 6a 73 6f 6e 29 7b 6c 65 74 20 74 3d =Ct.json){let t= 00000b40: 7b 74 79 70 65 3a 22 74 75 70 6c 65 22 3d 3d 3d {type:"tuple"=== 00000b50: 74 68 69 73 2e 62 61 73 65 54 79 70 65 3f 22 74 this.baseType?"t 00000b60: 75 70 6c 65 22 3a 74 68 69 73 2e 74 79 70 65 2c uple":this.type, 00000b70: 6e 61 6d 65 3a 74 68 69 73 2e 6e 61 6d 65 7c 7c name:this.name|| 00000b80: 76 6f 69 64 20 30 7d 3b 72 65 74 75 72 6e 22 62 void 0};return"b 00000b90: 6f 6f 6c 65 61 6e 22 3d 3d 74 79 70 65 6f 66 20 oolean"==typeof 00000ba0: 74 68 69 73 2e 69 6e 64 65 78 65 64 26 26 28 74 this.indexed&&(t 00000bb0: 2e 69 6e 64 65 78 65 64 3d 74 68 69 73 2e 69 6e .indexed=this.in 00000bc0: 64 65 78 65 64 29 2c 74 68 69 73 2e 63 6f 6d 70 dexed),this.comp 00000bd0: 6f 6e 65 6e 74 73 26 26 28 74 2e 63 6f 6d 70 6f onents&&(t.compo 00000be0: 6e 65 6e 74 73 3d 74 68 69 73 2e 63 6f 6d 70 6f nents=this.compo 00000bf0: 6e 65 6e 74 73 2e 6d 61 70 28 28 74 3d 3e 4a 53 nents.map((t=>JS 00000c00: 4f 4e 2e 70 61 72 73 65 28 74 2e 66 6f 72 6d 61 ON.parse(t.forma 00000c10: 74 28 65 29 29 29 29 29 2c 4a 53 4f 4e 2e 73 74 t(e))))),JSON.st 00000c20: 72 69 6e 67 69 66 79 28 74 29 7d 6c 65 74 20 74 ringify(t)}let t 00000c30: 3d 22 22 3b 72 65 74 75 72 6e 22 61 72 72 61 79 ="";return"array 00000c40: 22 3d 3d 3d 74 68 69 73 2e 62 61 73 65 54 79 70 "===this.baseTyp 00000c50: 65 3f 28 74 2b 3d 74 68 69 73 2e 61 72 72 61 79 e?(t+=this.array 00000c60: 43 68 69 6c 64 72 65 6e 2e 66 6f 72 6d 61 74 28 Children.format( 00000c70: 65 29 2c 74 2b 3d 22 5b 22 2b 28 74 68 69 73 2e e),t+="["+(this. 00000c80: 61 72 72 61 79 4c 65 6e 67 74 68 3c 30 3f 22 22 arrayLength<0?"" 00000c90: 3a 53 74 72 69 6e 67 28 74 68 69 73 2e 61 72 72 :String(this.arr 00000ca0: 61 79 4c 65 6e 67 74 68 29 29 2b 22 5d 22 29 3a ayLength))+"]"): 00000cb0: 22 74 75 70 6c 65 22 3d 3d 3d 74 68 69 73 2e 62 "tuple"===this.b 00000cc0: 61 73 65 54 79 70 65 3f 28 65 21 3d 3d 43 74 2e aseType?(e!==Ct. 00000cd0: 73 69 67 68 61 73 68 26 26 28 74 2b 3d 74 68 69 sighash&&(t+=thi 00000ce0: 73 2e 74 79 70 65 29 2c 74 2b 3d 22 28 22 2b 74 s.type),t+="("+t 00000cf0: 68 69 73 2e 63 6f 6d 70 6f 6e 65 6e 74 73 2e 6d his.components.m 00000d00: 61 70 28 28 74 3d 3e 74 2e 66 6f 72 6d 61 74 28 ap((t=>t.format( 00000d10: 65 29 29 29 2e 6a 6f 69 6e 28 65 3d 3d 3d 43 74 e))).join(e===Ct 00000d20: 2e 66 75 6c 6c 3f 22 2c 20 22 3a 22 2c 22 29 2b .full?", ":",")+ 00000d30: 22 29 22 29 3a 74 2b 3d 74 68 69 73 2e 74 79 70 ")"):t+=this.typ 00000d40: 65 2c 65 21 3d 3d 43 74 2e 73 69 67 68 61 73 68 e,e!==Ct.sighash 00000d50: 26 26 28 21 30 3d 3d 3d 74 68 69 73 2e 69 6e 64 &&(!0===this.ind 00000d60: 65 78 65 64 26 26 28 74 2b 3d 22 20 69 6e 64 65 exed&&(t+=" inde 00000d70: 78 65 64 22 29 2c 65 3d 3d 3d 43 74 2e 66 75 6c xed"),e===Ct.ful 00000d80: 6c 26 26 74 68 69 73 2e 6e 61 6d 65 26 26 28 74 l&&this.name&&(t 00000d90: 2b 3d 22 20 22 2b 74 68 69 73 2e 6e 61 6d 65 29 +=" "+this.name) 00000da0: 29 2c 74 7d 73 74 61 74 69 63 20 66 72 6f 6d 28 ),t}static from( 00000db0: 65 2c 74 29 7b 72 65 74 75 72 6e 22 73 74 72 69 e,t){return"stri 00000dc0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 6b 74 ng"==typeof e?kt 00000dd0: 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 2c 74 29 .fromString(e,t) 00000de0: 3a 6b 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 28 65 :kt.fromObject(e 00000df0: 29 7d 73 74 61 74 69 63 20 66 72 6f 6d 4f 62 6a )}static fromObj 00000e00: 65 63 74 28 65 29 7b 72 65 74 75 72 6e 20 6b 74 ect(e){return kt 00000e10: 2e 69 73 50 61 72 61 6d 54 79 70 65 28 65 29 3f .isParamType(e)? 00000e20: 65 3a 6e 65 77 20 6b 74 28 45 74 2c 7b 6e 61 6d e:new kt(Et,{nam 00000e30: 65 3a 65 2e 6e 61 6d 65 7c 7c 6e 75 6c 6c 2c 74 e:e.name||null,t 00000e40: 79 70 65 3a 42 74 28 65 2e 74 79 70 65 29 2c 69 ype:Bt(e.type),i 00000e50: 6e 64 65 78 65 64 3a 6e 75 6c 6c 3d 3d 65 2e 69 ndexed:null==e.i 00000e60: 6e 64 65 78 65 64 3f 6e 75 6c 6c 3a 21 21 65 2e ndexed?null:!!e. 00000e70: 69 6e 64 65 78 65 64 2c 63 6f 6d 70 6f 6e 65 6e indexed,componen 00000e80: 74 73 3a 65 2e 63 6f 6d 70 6f 6e 65 6e 74 73 3f ts:e.components? 00000e90: 65 2e 63 6f 6d 70 6f 6e 65 6e 74 73 2e 6d 61 70 e.components.map 00000ea0: 28 6b 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 29 3a (kt.fromObject): 00000eb0: 6e 75 6c 6c 7d 29 7d 73 74 61 74 69 63 20 66 72 null})}static fr 00000ec0: 6f 6d 53 74 72 69 6e 67 28 65 2c 74 29 7b 72 65 omString(e,t){re 00000ed0: 74 75 72 6e 20 6e 3d 66 75 6e 63 74 69 6f 6e 28 turn n=function( 00000ee0: 65 2c 74 29 7b 6c 65 74 20 6e 3d 65 3b 66 75 6e e,t){let n=e;fun 00000ef0: 63 74 69 6f 6e 20 72 28 74 29 7b 53 74 2e 74 68 ction r(t){St.th 00000f00: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 00000f10: 28 60 75 6e 65 78 70 65 63 74 65 64 20 63 68 61 (`unexpected cha 00000f20: 72 61 63 74 65 72 20 61 74 20 70 6f 73 69 74 69 racter at positi 00000f30: 6f 6e 20 24 7b 74 7d 60 2c 22 70 61 72 61 6d 22 on ${t}`,"param" 00000f40: 2c 65 29 7d 66 75 6e 63 74 69 6f 6e 20 6f 28 65 ,e)}function o(e 00000f50: 29 7b 6c 65 74 20 6e 3d 7b 74 79 70 65 3a 22 22 ){let n={type:"" 00000f60: 2c 6e 61 6d 65 3a 22 22 2c 70 61 72 65 6e 74 3a ,name:"",parent: 00000f70: 65 2c 73 74 61 74 65 3a 7b 61 6c 6c 6f 77 54 79 e,state:{allowTy 00000f80: 70 65 3a 21 30 7d 7d 3b 72 65 74 75 72 6e 20 74 pe:!0}};return t 00000f90: 26 26 28 6e 2e 69 6e 64 65 78 65 64 3d 21 31 29 &&(n.indexed=!1) 00000fa0: 2c 6e 7d 65 3d 65 2e 72 65 70 6c 61 63 65 28 2f ,n}e=e.replace(/ 00000fb0: 5c 73 2f 67 2c 22 20 22 29 3b 6c 65 74 20 69 3d \s/g," ");let i= 00000fc0: 7b 74 79 70 65 3a 22 22 2c 6e 61 6d 65 3a 22 22 {type:"",name:"" 00000fd0: 2c 73 74 61 74 65 3a 7b 61 6c 6c 6f 77 54 79 70 ,state:{allowTyp 00000fe0: 65 3a 21 30 7d 7d 2c 61 3d 69 3b 66 6f 72 28 6c e:!0}},a=i;for(l 00000ff0: 65 74 20 6e 3d 30 3b 6e 3c 65 2e 6c 65 6e 67 74 et n=0;n<e.lengt 00001000: 68 3b 6e 2b 2b 29 7b 6c 65 74 20 69 3d 65 5b 6e h;n++){let i=e[n 00001010: 5d 3b 73 77 69 74 63 68 28 69 29 7b 63 61 73 65 ];switch(i){case 00001020: 22 28 22 3a 61 2e 73 74 61 74 65 2e 61 6c 6c 6f "(":a.state.allo 00001030: 77 54 79 70 65 26 26 22 22 3d 3d 3d 61 2e 74 79 wType&&""===a.ty 00001040: 70 65 3f 61 2e 74 79 70 65 3d 22 74 75 70 6c 65 pe?a.type="tuple 00001050: 22 3a 61 2e 73 74 61 74 65 2e 61 6c 6c 6f 77 50 ":a.state.allowP 00001060: 61 72 61 6d 73 7c 7c 72 28 6e 29 2c 61 2e 73 74 arams||r(n),a.st 00001070: 61 74 65 2e 61 6c 6c 6f 77 54 79 70 65 3d 21 31 ate.allowType=!1 00001080: 2c 61 2e 74 79 70 65 3d 42 74 28 61 2e 74 79 70 ,a.type=Bt(a.typ 00001090: 65 29 2c 61 2e 63 6f 6d 70 6f 6e 65 6e 74 73 3d e),a.components= 000010a0: 5b 6f 28 61 29 5d 2c 61 3d 61 2e 63 6f 6d 70 6f [o(a)],a=a.compo 000010b0: 6e 65 6e 74 73 5b 30 5d 3b 62 72 65 61 6b 3b 63 nents[0];break;c 000010c0: 61 73 65 22 29 22 3a 64 65 6c 65 74 65 20 61 2e ase")":delete a. 000010d0: 73 74 61 74 65 2c 22 69 6e 64 65 78 65 64 22 3d state,"indexed"= 000010e0: 3d 3d 61 2e 6e 61 6d 65 26 26 28 74 7c 7c 72 28 ==a.name&&(t||r( 000010f0: 6e 29 2c 61 2e 69 6e 64 65 78 65 64 3d 21 30 2c n),a.indexed=!0, 00001100: 61 2e 6e 61 6d 65 3d 22 22 29 2c 78 74 28 61 2e a.name=""),xt(a. 00001110: 74 79 70 65 2c 61 2e 6e 61 6d 65 29 26 26 28 61 type,a.name)&&(a 00001120: 2e 6e 61 6d 65 3d 22 22 29 2c 61 2e 74 79 70 65 .name=""),a.type 00001130: 3d 42 74 28 61 2e 74 79 70 65 29 3b 6c 65 74 20 =Bt(a.type);let 00001140: 65 3d 61 3b 61 3d 61 2e 70 61 72 65 6e 74 2c 61 e=a;a=a.parent,a 00001150: 7c 7c 72 28 6e 29 2c 64 65 6c 65 74 65 20 65 2e ||r(n),delete e. 00001160: 70 61 72 65 6e 74 2c 61 2e 73 74 61 74 65 2e 61 parent,a.state.a 00001170: 6c 6c 6f 77 50 61 72 61 6d 73 3d 21 31 2c 61 2e llowParams=!1,a. 00001180: 73 74 61 74 65 2e 61 6c 6c 6f 77 4e 61 6d 65 3d state.allowName= 00001190: 21 30 2c 61 2e 73 74 61 74 65 2e 61 6c 6c 6f 77 !0,a.state.allow 000011a0: 41 72 72 61 79 3d 21 30 3b 62 72 65 61 6b 3b 63 Array=!0;break;c 000011b0: 61 73 65 22 2c 22 3a 64 65 6c 65 74 65 20 61 2e ase",":delete a. 000011c0: 73 74 61 74 65 2c 22 69 6e 64 65 78 65 64 22 3d state,"indexed"= 000011d0: 3d 3d 61 2e 6e 61 6d 65 26 26 28 74 7c 7c 72 28 ==a.name&&(t||r( 000011e0: 6e 29 2c 61 2e 69 6e 64 65 78 65 64 3d 21 30 2c n),a.indexed=!0, 000011f0: 61 2e 6e 61 6d 65 3d 22 22 29 2c 78 74 28 61 2e a.name=""),xt(a. 00001200: 74 79 70 65 2c 61 2e 6e 61 6d 65 29 26 26 28 61 type,a.name)&&(a 00001210: 2e 6e 61 6d 65 3d 22 22 29 2c 61 2e 74 79 70 65 .name=""),a.type 00001220: 3d 42 74 28 61 2e 74 79 70 65 29 3b 6c 65 74 20 =Bt(a.type);let 00001230: 73 3d 6f 28 61 2e 70 61 72 65 6e 74 29 3b 61 2e s=o(a.parent);a. 00001240: 70 61 72 65 6e 74 2e 63 6f 6d 70 6f 6e 65 6e 74 parent.component 00001250: 73 2e 70 75 73 68 28 73 29 2c 64 65 6c 65 74 65 s.push(s),delete 00001260: 20 61 2e 70 61 72 65 6e 74 2c 61 3d 73 3b 62 72 a.parent,a=s;br 00001270: 65 61 6b 3b 63 61 73 65 22 20 22 3a 61 2e 73 74 eak;case" ":a.st 00001280: 61 74 65 2e 61 6c 6c 6f 77 54 79 70 65 26 26 22 ate.allowType&&" 00001290: 22 21 3d 3d 61 2e 74 79 70 65 26 26 28 61 2e 74 "!==a.type&&(a.t 000012a0: 79 70 65 3d 42 74 28 61 2e 74 79 70 65 29 2c 64 ype=Bt(a.type),d 000012b0: 65 6c 65 74 65 20 61 2e 73 74 61 74 65 2e 61 6c elete a.state.al 000012c0: 6c 6f 77 54 79 70 65 2c 61 2e 73 74 61 74 65 2e lowType,a.state. 000012d0: 61 6c 6c 6f 77 4e 61 6d 65 3d 21 30 2c 61 2e 73 allowName=!0,a.s 000012e0: 74 61 74 65 2e 61 6c 6c 6f 77 50 61 72 61 6d 73 tate.allowParams 000012f0: 3d 21 30 29 2c 61 2e 73 74 61 74 65 2e 61 6c 6c =!0),a.state.all 00001300: 6f 77 4e 61 6d 65 26 26 22 22 21 3d 3d 61 2e 6e owName&&""!==a.n 00001310: 61 6d 65 26 26 28 22 69 6e 64 65 78 65 64 22 3d ame&&("indexed"= 00001320: 3d 3d 61 2e 6e 61 6d 65 3f 28 74 7c 7c 72 28 6e ==a.name?(t||r(n 00001330: 29 2c 61 2e 69 6e 64 65 78 65 64 26 26 72 28 6e ),a.indexed&&r(n 00001340: 29 2c 61 2e 69 6e 64 65 78 65 64 3d 21 30 2c 61 ),a.indexed=!0,a 00001350: 2e 6e 61 6d 65 3d 22 22 29 3a 78 74 28 61 2e 74 .name=""):xt(a.t 00001360: 79 70 65 2c 61 2e 6e 61 6d 65 29 3f 61 2e 6e 61 ype,a.name)?a.na 00001370: 6d 65 3d 22 22 3a 61 2e 73 74 61 74 65 2e 61 6c me="":a.state.al 00001380: 6c 6f 77 4e 61 6d 65 3d 21 31 29 3b 62 72 65 61 lowName=!1);brea 00001390: 6b 3b 63 61 73 65 22 5b 22 3a 61 2e 73 74 61 74 k;case"[":a.stat 000013a0: 65 2e 61 6c 6c 6f 77 41 72 72 61 79 7c 7c 72 28 e.allowArray||r( 000013b0: 6e 29 2c 61 2e 74 79 70 65 2b 3d 69 2c 61 2e 73 n),a.type+=i,a.s 000013c0: 74 61 74 65 2e 61 6c 6c 6f 77 41 72 72 61 79 3d tate.allowArray= 000013d0: 21 31 2c 61 2e 73 74 61 74 65 2e 61 6c 6c 6f 77 !1,a.state.allow 000013e0: 4e 61 6d 65 3d 21 31 2c 61 2e 73 74 61 74 65 2e Name=!1,a.state. 000013f0: 72 65 61 64 41 72 72 61 79 3d 21 30 3b 62 72 65 readArray=!0;bre 00001400: 61 6b 3b 63 61 73 65 22 5d 22 3a 61 2e 73 74 61 ak;case"]":a.sta 00001410: 74 65 2e 72 65 61 64 41 72 72 61 79 7c 7c 72 28 te.readArray||r( 00001420: 6e 29 2c 61 2e 74 79 70 65 2b 3d 69 2c 61 2e 73 n),a.type+=i,a.s 00001430: 74 61 74 65 2e 72 65 61 64 41 72 72 61 79 3d 21 tate.readArray=! 00001440: 31 2c 61 2e 73 74 61 74 65 2e 61 6c 6c 6f 77 41 1,a.state.allowA 00001450: 72 72 61 79 3d 21 30 2c 61 2e 73 74 61 74 65 2e rray=!0,a.state. 00001460: 61 6c 6c 6f 77 4e 61 6d 65 3d 21 30 3b 62 72 65 allowName=!0;bre 00001470: 61 6b 3b 64 65 66 61 75 6c 74 3a 61 2e 73 74 61 ak;default:a.sta 00001480: 74 65 2e 61 6c 6c 6f 77 54 79 70 65 3f 28 61 2e te.allowType?(a. 00001490: 74 79 70 65 2b 3d 69 2c 61 2e 73 74 61 74 65 2e type+=i,a.state. 000014a0: 61 6c 6c 6f 77 50 61 72 61 6d 73 3d 21 30 2c 61 allowParams=!0,a 000014b0: 2e 73 74 61 74 65 2e 61 6c 6c 6f 77 41 72 72 61 .state.allowArra 000014c0: 79 3d 21 30 29 3a 61 2e 73 74 61 74 65 2e 61 6c y=!0):a.state.al 000014d0: 6c 6f 77 4e 61 6d 65 3f 28 61 2e 6e 61 6d 65 2b lowName?(a.name+ 000014e0: 3d 69 2c 64 65 6c 65 74 65 20 61 2e 73 74 61 74 =i,delete a.stat 000014f0: 65 2e 61 6c 6c 6f 77 41 72 72 61 79 29 3a 61 2e e.allowArray):a. 00001500: 73 74 61 74 65 2e 72 65 61 64 41 72 72 61 79 3f state.readArray? 00001510: 61 2e 74 79 70 65 2b 3d 69 3a 72 28 6e 29 7d 7d a.type+=i:r(n)}} 00001520: 72 65 74 75 72 6e 20 61 2e 70 61 72 65 6e 74 26 return a.parent& 00001530: 26 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &St.throwArgumen 00001540: 74 45 72 72 6f 72 28 22 75 6e 65 78 70 65 63 74 tError("unexpect 00001550: 65 64 20 65 6f 66 22 2c 22 70 61 72 61 6d 22 2c ed eof","param", 00001560: 65 29 2c 64 65 6c 65 74 65 20 69 2e 73 74 61 74 e),delete i.stat 00001570: 65 2c 22 69 6e 64 65 78 65 64 22 3d 3d 3d 61 2e e,"indexed"===a. 00001580: 6e 61 6d 65 3f 28 74 7c 7c 72 28 6e 2e 6c 65 6e name?(t||r(n.len 00001590: 67 74 68 2d 37 29 2c 61 2e 69 6e 64 65 78 65 64 gth-7),a.indexed 000015a0: 26 26 72 28 6e 2e 6c 65 6e 67 74 68 2d 37 29 2c &&r(n.length-7), 000015b0: 61 2e 69 6e 64 65 78 65 64 3d 21 30 2c 61 2e 6e a.indexed=!0,a.n 000015c0: 61 6d 65 3d 22 22 29 3a 78 74 28 61 2e 74 79 70 ame=""):xt(a.typ 000015d0: 65 2c 61 2e 6e 61 6d 65 29 26 26 28 61 2e 6e 61 e,a.name)&&(a.na 000015e0: 6d 65 3d 22 22 29 2c 69 2e 74 79 70 65 3d 42 74 me=""),i.type=Bt 000015f0: 28 69 2e 74 79 70 65 29 2c 69 7d 28 65 2c 21 21 (i.type),i}(e,!! 00001600: 74 29 2c 6b 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 t),kt.fromObject 00001610: 28 7b 6e 61 6d 65 3a 6e 2e 6e 61 6d 65 2c 74 79 ({name:n.name,ty 00001620: 70 65 3a 6e 2e 74 79 70 65 2c 69 6e 64 65 78 65 pe:n.type,indexe 00001630: 64 3a 6e 2e 69 6e 64 65 78 65 64 2c 63 6f 6d 70 d:n.indexed,comp 00001640: 6f 6e 65 6e 74 73 3a 6e 2e 63 6f 6d 70 6f 6e 65 onents:n.compone 00001650: 6e 74 73 7d 29 3b 76 61 72 20 6e 7d 73 74 61 74 nts});var n}stat 00001660: 69 63 20 69 73 50 61 72 61 6d 54 79 70 65 28 65 ic isParamType(e 00001670: 29 7b 72 65 74 75 72 6e 21 28 6e 75 6c 6c 3d 3d ){return!(null== 00001680: 65 7c 7c 21 65 2e 5f 69 73 50 61 72 61 6d 54 79 e||!e._isParamTy 00001690: 70 65 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 49 74 pe)}}function It 000016a0: 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 66 75 6e (e,t){return fun 000016b0: 63 74 69 6f 6e 28 65 29 7b 65 3d 65 2e 74 72 69 ction(e){e=e.tri 000016c0: 6d 28 29 3b 6c 65 74 20 74 3d 5b 5d 2c 6e 3d 22 m();let t=[],n=" 000016d0: 22 2c 72 3d 30 3b 66 6f 72 28 6c 65 74 20 6f 3d ",r=0;for(let o= 000016e0: 30 3b 6f 3c 65 2e 6c 65 6e 67 74 68 3b 6f 2b 2b 0;o<e.length;o++ 000016f0: 29 7b 6c 65 74 20 69 3d 65 5b 6f 5d 3b 22 2c 22 ){let i=e[o];"," 00001700: 3d 3d 3d 69 26 26 30 3d 3d 3d 72 3f 28 74 2e 70 ===i&&0===r?(t.p 00001710: 75 73 68 28 6e 29 2c 6e 3d 22 22 29 3a 28 6e 2b ush(n),n=""):(n+ 00001720: 3d 69 2c 22 28 22 3d 3d 3d 69 3f 72 2b 2b 3a 22 =i,"("===i?r++:" 00001730: 29 22 3d 3d 3d 69 26 26 28 72 2d 2d 2c 2d 31 3d )"===i&&(r--,-1= 00001740: 3d 3d 72 26 26 53 74 2e 74 68 72 6f 77 41 72 67 ==r&&St.throwArg 00001750: 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 62 61 umentError("unba 00001760: 6c 61 6e 63 65 64 20 70 61 72 65 6e 74 68 65 73 lanced parenthes 00001770: 69 73 22 2c 22 76 61 6c 75 65 22 2c 65 29 29 29 is","value",e))) 00001780: 7d 6e 26 26 74 2e 70 75 73 68 28 6e 29 3b 72 65 }n&&t.push(n);re 00001790: 74 75 72 6e 20 74 7d 28 65 29 2e 6d 61 70 28 28 turn t}(e).map(( 000017a0: 65 3d 3e 6b 74 2e 66 72 6f 6d 53 74 72 69 6e 67 e=>kt.fromString 000017b0: 28 65 2c 74 29 29 29 7d 63 6c 61 73 73 20 4f 74 (e,t)))}class Ot 000017c0: 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 {constructor(e,t 000017d0: 29 7b 65 21 3d 3d 45 74 26 26 53 74 2e 74 68 72 ){e!==Et&&St.thr 000017e0: 6f 77 45 72 72 6f 72 28 22 75 73 65 20 61 20 73 owError("use a s 000017f0: 74 61 74 69 63 20 66 72 6f 6d 20 6d 65 74 68 6f tatic from metho 00001800: 64 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 d",y.errors.UNSU 00001810: 50 50 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f PPORTED_OPERATIO 00001820: 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a 22 6e 65 N,{operation:"ne 00001830: 77 20 46 72 61 67 6d 65 6e 74 28 29 22 7d 29 2c w Fragment()"}), 00001840: 54 74 28 74 68 69 73 2c 74 29 2c 74 68 69 73 2e Tt(this,t),this. 00001850: 5f 69 73 46 72 61 67 6d 65 6e 74 3d 21 30 2c 4f _isFragment=!0,O 00001860: 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 74 68 69 bject.freeze(thi 00001870: 73 29 7d 73 74 61 74 69 63 20 66 72 6f 6d 28 65 s)}static from(e 00001880: 29 7b 72 65 74 75 72 6e 20 4f 74 2e 69 73 46 72 ){return Ot.isFr 00001890: 61 67 6d 65 6e 74 28 65 29 3f 65 3a 22 73 74 72 agment(e)?e:"str 000018a0: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 4f ing"==typeof e?O 000018b0: 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 29 3a t.fromString(e): 000018c0: 4f 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 28 65 29 Ot.fromObject(e) 000018d0: 7d 73 74 61 74 69 63 20 66 72 6f 6d 4f 62 6a 65 }static fromObje 000018e0: 63 74 28 65 29 7b 69 66 28 4f 74 2e 69 73 46 72 ct(e){if(Ot.isFr 000018f0: 61 67 6d 65 6e 74 28 65 29 29 72 65 74 75 72 6e agment(e))return 00001900: 20 65 3b 73 77 69 74 63 68 28 65 2e 74 79 70 65 e;switch(e.type 00001910: 29 7b 63 61 73 65 22 66 75 6e 63 74 69 6f 6e 22 ){case"function" 00001920: 3a 72 65 74 75 72 6e 20 4c 74 2e 66 72 6f 6d 4f :return Lt.fromO 00001930: 62 6a 65 63 74 28 65 29 3b 63 61 73 65 22 65 76 bject(e);case"ev 00001940: 65 6e 74 22 3a 72 65 74 75 72 6e 20 52 74 2e 66 ent":return Rt.f 00001950: 72 6f 6d 4f 62 6a 65 63 74 28 65 29 3b 63 61 73 romObject(e);cas 00001960: 65 22 63 6f 6e 73 74 72 75 63 74 6f 72 22 3a 72 e"constructor":r 00001970: 65 74 75 72 6e 20 44 74 2e 66 72 6f 6d 4f 62 6a eturn Dt.fromObj 00001980: 65 63 74 28 65 29 3b 63 61 73 65 22 65 72 72 6f ect(e);case"erro 00001990: 72 22 3a 72 65 74 75 72 6e 20 55 74 2e 66 72 6f r":return Ut.fro 000019a0: 6d 4f 62 6a 65 63 74 28 65 29 3b 63 61 73 65 22 mObject(e);case" 000019b0: 66 61 6c 6c 62 61 63 6b 22 3a 63 61 73 65 22 72 fallback":case"r 000019c0: 65 63 65 69 76 65 22 3a 72 65 74 75 72 6e 20 6e eceive":return n 000019d0: 75 6c 6c 7d 72 65 74 75 72 6e 20 53 74 2e 74 68 ull}return St.th 000019e0: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 000019f0: 28 22 69 6e 76 61 6c 69 64 20 66 72 61 67 6d 65 ("invalid fragme 00001a00: 6e 74 20 6f 62 6a 65 63 74 22 2c 22 76 61 6c 75 nt object","valu 00001a10: 65 22 2c 65 29 7d 73 74 61 74 69 63 20 66 72 6f e",e)}static fro 00001a20: 6d 53 74 72 69 6e 67 28 65 29 7b 72 65 74 75 72 mString(e){retur 00001a30: 6e 22 65 76 65 6e 74 22 3d 3d 3d 28 65 3d 28 65 n"event"===(e=(e 00001a40: 3d 28 65 3d 65 2e 72 65 70 6c 61 63 65 28 2f 5c =(e=e.replace(/\ 00001a50: 73 2f 67 2c 22 20 22 29 29 2e 72 65 70 6c 61 63 s/g," ")).replac 00001a60: 65 28 2f 5c 28 2f 67 2c 22 20 28 22 29 2e 72 65 e(/\(/g," (").re 00001a70: 70 6c 61 63 65 28 2f 5c 29 2f 67 2c 22 29 20 22 place(/\)/g,") " 00001a80: 29 2e 72 65 70 6c 61 63 65 28 2f 5c 73 2b 2f 67 ).replace(/\s+/g 00001a90: 2c 22 20 22 29 29 2e 74 72 69 6d 28 29 29 2e 73 ," ")).trim()).s 00001aa0: 70 6c 69 74 28 22 20 22 29 5b 30 5d 3f 52 74 2e plit(" ")[0]?Rt. 00001ab0: 66 72 6f 6d 53 74 72 69 6e 67 28 65 2e 73 75 62 fromString(e.sub 00001ac0: 73 74 72 69 6e 67 28 35 29 2e 74 72 69 6d 28 29 string(5).trim() 00001ad0: 29 3a 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 3d 65 ):"function"===e 00001ae0: 2e 73 70 6c 69 74 28 22 20 22 29 5b 30 5d 3f 4c .split(" ")[0]?L 00001af0: 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 2e 73 t.fromString(e.s 00001b00: 75 62 73 74 72 69 6e 67 28 38 29 2e 74 72 69 6d ubstring(8).trim 00001b10: 28 29 29 3a 22 63 6f 6e 73 74 72 75 63 74 6f 72 ()):"constructor 00001b20: 22 3d 3d 3d 65 2e 73 70 6c 69 74 28 22 28 22 29 "===e.split("(") 00001b30: 5b 30 5d 2e 74 72 69 6d 28 29 3f 44 74 2e 66 72 [0].trim()?Dt.fr 00001b40: 6f 6d 53 74 72 69 6e 67 28 65 2e 74 72 69 6d 28 omString(e.trim( 00001b50: 29 29 3a 22 65 72 72 6f 72 22 3d 3d 3d 65 2e 73 )):"error"===e.s 00001b60: 70 6c 69 74 28 22 20 22 29 5b 30 5d 3f 55 74 2e plit(" ")[0]?Ut. 00001b70: 66 72 6f 6d 53 74 72 69 6e 67 28 65 2e 73 75 62 fromString(e.sub 00001b80: 73 74 72 69 6e 67 28 35 29 2e 74 72 69 6d 28 29 string(5).trim() 00001b90: 29 3a 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 ):St.throwArgume 00001ba0: 6e 74 45 72 72 6f 72 28 22 75 6e 73 75 70 70 6f ntError("unsuppo 00001bb0: 72 74 65 64 20 66 72 61 67 6d 65 6e 74 22 2c 22 rted fragment"," 00001bc0: 76 61 6c 75 65 22 2c 65 29 7d 73 74 61 74 69 63 value",e)}static 00001bd0: 20 69 73 46 72 61 67 6d 65 6e 74 28 65 29 7b 72 isFragment(e){r 00001be0: 65 74 75 72 6e 21 28 21 65 7c 7c 21 65 2e 5f 69 eturn!(!e||!e._i 00001bf0: 73 46 72 61 67 6d 65 6e 74 29 7d 7d 63 6c 61 73 sFragment)}}clas 00001c00: 73 20 52 74 20 65 78 74 65 6e 64 73 20 4f 74 7b s Rt extends Ot{ 00001c10: 66 6f 72 6d 61 74 28 65 29 7b 69 66 28 65 7c 7c format(e){if(e|| 00001c20: 28 65 3d 43 74 2e 73 69 67 68 61 73 68 29 2c 43 (e=Ct.sighash),C 00001c30: 74 5b 65 5d 7c 7c 53 74 2e 74 68 72 6f 77 41 72 t[e]||St.throwAr 00001c40: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 00001c50: 61 6c 69 64 20 66 6f 72 6d 61 74 20 74 79 70 65 alid format type 00001c60: 22 2c 22 66 6f 72 6d 61 74 22 2c 65 29 2c 65 3d ","format",e),e= 00001c70: 3d 3d 43 74 2e 6a 73 6f 6e 29 72 65 74 75 72 6e ==Ct.json)return 00001c80: 20 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 JSON.stringify( 00001c90: 7b 74 79 70 65 3a 22 65 76 65 6e 74 22 2c 61 6e {type:"event",an 00001ca0: 6f 6e 79 6d 6f 75 73 3a 74 68 69 73 2e 61 6e 6f onymous:this.ano 00001cb0: 6e 79 6d 6f 75 73 2c 6e 61 6d 65 3a 74 68 69 73 nymous,name:this 00001cc0: 2e 6e 61 6d 65 2c 69 6e 70 75 74 73 3a 74 68 69 .name,inputs:thi 00001cd0: 73 2e 69 6e 70 75 74 73 2e 6d 61 70 28 28 74 3d s.inputs.map((t= 00001ce0: 3e 4a 53 4f 4e 2e 70 61 72 73 65 28 74 2e 66 6f >JSON.parse(t.fo 00001cf0: 72 6d 61 74 28 65 29 29 29 29 7d 29 3b 6c 65 74 rmat(e))))});let 00001d00: 20 74 3d 22 22 3b 72 65 74 75 72 6e 20 65 21 3d t="";return e!= 00001d10: 3d 43 74 2e 73 69 67 68 61 73 68 26 26 28 74 2b =Ct.sighash&&(t+ 00001d20: 3d 22 65 76 65 6e 74 20 22 29 2c 74 2b 3d 74 68 ="event "),t+=th 00001d30: 69 73 2e 6e 61 6d 65 2b 22 28 22 2b 74 68 69 73 is.name+"("+this 00001d40: 2e 69 6e 70 75 74 73 2e 6d 61 70 28 28 74 3d 3e .inputs.map((t=> 00001d50: 74 2e 66 6f 72 6d 61 74 28 65 29 29 29 2e 6a 6f t.format(e))).jo 00001d60: 69 6e 28 65 3d 3d 3d 43 74 2e 66 75 6c 6c 3f 22 in(e===Ct.full?" 00001d70: 2c 20 22 3a 22 2c 22 29 2b 22 29 20 22 2c 65 21 , ":",")+") ",e! 00001d80: 3d 3d 43 74 2e 73 69 67 68 61 73 68 26 26 74 68 ==Ct.sighash&&th 00001d90: 69 73 2e 61 6e 6f 6e 79 6d 6f 75 73 26 26 28 74 is.anonymous&&(t 00001da0: 2b 3d 22 61 6e 6f 6e 79 6d 6f 75 73 20 22 29 2c +="anonymous "), 00001db0: 74 2e 74 72 69 6d 28 29 7d 73 74 61 74 69 63 20 t.trim()}static 00001dc0: 66 72 6f 6d 28 65 29 7b 72 65 74 75 72 6e 22 73 from(e){return"s 00001dd0: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 00001de0: 3f 52 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 ?Rt.fromString(e 00001df0: 29 3a 52 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 28 ):Rt.fromObject( 00001e00: 65 29 7d 73 74 61 74 69 63 20 66 72 6f 6d 4f 62 e)}static fromOb 00001e10: 6a 65 63 74 28 65 29 7b 69 66 28 52 74 2e 69 73 ject(e){if(Rt.is 00001e20: 45 76 65 6e 74 46 72 61 67 6d 65 6e 74 28 65 29 EventFragment(e) 00001e30: 29 72 65 74 75 72 6e 20 65 3b 22 65 76 65 6e 74 )return e;"event 00001e40: 22 21 3d 3d 65 2e 74 79 70 65 26 26 53 74 2e 74 "!==e.type&&St.t 00001e50: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00001e60: 72 28 22 69 6e 76 61 6c 69 64 20 65 76 65 6e 74 r("invalid event 00001e70: 20 6f 62 6a 65 63 74 22 2c 22 76 61 6c 75 65 22 object","value" 00001e80: 2c 65 29 3b 63 6f 6e 73 74 20 74 3d 7b 6e 61 6d ,e);const t={nam 00001e90: 65 3a 7a 74 28 65 2e 6e 61 6d 65 29 2c 61 6e 6f e:zt(e.name),ano 00001ea0: 6e 79 6d 6f 75 73 3a 65 2e 61 6e 6f 6e 79 6d 6f nymous:e.anonymo 00001eb0: 75 73 2c 69 6e 70 75 74 73 3a 65 2e 69 6e 70 75 us,inputs:e.inpu 00001ec0: 74 73 3f 65 2e 69 6e 70 75 74 73 2e 6d 61 70 28 ts?e.inputs.map( 00001ed0: 6b 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 29 3a 5b kt.fromObject):[ 00001ee0: 5d 2c 74 79 70 65 3a 22 65 76 65 6e 74 22 7d 3b ],type:"event"}; 00001ef0: 72 65 74 75 72 6e 20 6e 65 77 20 52 74 28 45 74 return new Rt(Et 00001f00: 2c 74 29 7d 73 74 61 74 69 63 20 66 72 6f 6d 53 ,t)}static fromS 00001f10: 74 72 69 6e 67 28 65 29 7b 6c 65 74 20 74 3d 65 tring(e){let t=e 00001f20: 2e 6d 61 74 63 68 28 47 74 29 3b 74 7c 7c 53 74 .match(Gt);t||St 00001f30: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00001f40: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 65 76 65 ror("invalid eve 00001f50: 6e 74 20 73 74 72 69 6e 67 22 2c 22 76 61 6c 75 nt string","valu 00001f60: 65 22 2c 65 29 3b 6c 65 74 20 6e 3d 21 31 3b 72 e",e);let n=!1;r 00001f70: 65 74 75 72 6e 20 74 5b 33 5d 2e 73 70 6c 69 74 eturn t[3].split 00001f80: 28 22 20 22 29 2e 66 6f 72 45 61 63 68 28 28 65 (" ").forEach((e 00001f90: 3d 3e 7b 73 77 69 74 63 68 28 65 2e 74 72 69 6d =>{switch(e.trim 00001fa0: 28 29 29 7b 63 61 73 65 22 61 6e 6f 6e 79 6d 6f ()){case"anonymo 00001fb0: 75 73 22 3a 6e 3d 21 30 3b 62 72 65 61 6b 3b 63 us":n=!0;break;c 00001fc0: 61 73 65 22 22 3a 62 72 65 61 6b 3b 64 65 66 61 ase"":break;defa 00001fd0: 75 6c 74 3a 53 74 2e 77 61 72 6e 28 22 75 6e 6b ult:St.warn("unk 00001fe0: 6e 6f 77 6e 20 6d 6f 64 69 66 69 65 72 3a 20 22 nown modifier: " 00001ff0: 2b 65 29 7d 7d 29 29 2c 52 74 2e 66 72 6f 6d 4f +e)}})),Rt.fromO 00002000: 62 6a 65 63 74 28 7b 6e 61 6d 65 3a 74 5b 31 5d bject({name:t[1] 00002010: 2e 74 72 69 6d 28 29 2c 61 6e 6f 6e 79 6d 6f 75 .trim(),anonymou 00002020: 73 3a 6e 2c 69 6e 70 75 74 73 3a 49 74 28 74 5b s:n,inputs:It(t[ 00002030: 32 5d 2c 21 30 29 2c 74 79 70 65 3a 22 65 76 65 2],!0),type:"eve 00002040: 6e 74 22 7d 29 7d 73 74 61 74 69 63 20 69 73 45 nt"})}static isE 00002050: 76 65 6e 74 46 72 61 67 6d 65 6e 74 28 65 29 7b ventFragment(e){ 00002060: 72 65 74 75 72 6e 20 65 26 26 65 2e 5f 69 73 46 return e&&e._isF 00002070: 72 61 67 6d 65 6e 74 26 26 22 65 76 65 6e 74 22 ragment&&"event" 00002080: 3d 3d 3d 65 2e 74 79 70 65 7d 7d 66 75 6e 63 74 ===e.type}}funct 00002090: 69 6f 6e 20 4e 74 28 65 2c 74 29 7b 74 2e 67 61 ion Nt(e,t){t.ga 000020a0: 73 3d 6e 75 6c 6c 3b 6c 65 74 20 6e 3d 65 2e 73 s=null;let n=e.s 000020b0: 70 6c 69 74 28 22 40 22 29 3b 72 65 74 75 72 6e plit("@");return 000020c0: 20 31 21 3d 3d 6e 2e 6c 65 6e 67 74 68 3f 28 6e 1!==n.length?(n 000020d0: 2e 6c 65 6e 67 74 68 3e 32 26 26 53 74 2e 74 68 .length>2&&St.th 000020e0: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 000020f0: 28 22 69 6e 76 61 6c 69 64 20 68 75 6d 61 6e 2d ("invalid human- 00002100: 72 65 61 64 61 62 6c 65 20 41 42 49 20 73 69 67 readable ABI sig 00002110: 6e 61 74 75 72 65 22 2c 22 76 61 6c 75 65 22 2c nature","value", 00002120: 65 29 2c 6e 5b 31 5d 2e 6d 61 74 63 68 28 2f 5e e),n[1].match(/^ 00002130: 5b 30 2d 39 5d 2b 24 2f 29 7c 7c 53 74 2e 74 68 [0-9]+$/)||St.th 00002140: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 00002150: 28 22 69 6e 76 61 6c 69 64 20 68 75 6d 61 6e 2d ("invalid human- 00002160: 72 65 61 64 61 62 6c 65 20 41 42 49 20 73 69 67 readable ABI sig 00002170: 6e 61 74 75 72 65 20 67 61 73 22 2c 22 76 61 6c nature gas","val 00002180: 75 65 22 2c 65 29 2c 74 2e 67 61 73 3d 59 2e 66 ue",e),t.gas=Y.f 00002190: 72 6f 6d 28 6e 5b 31 5d 29 2c 6e 5b 30 5d 29 3a rom(n[1]),n[0]): 000021a0: 65 7d 66 75 6e 63 74 69 6f 6e 20 50 74 28 65 2c e}function Pt(e, 000021b0: 74 29 7b 74 2e 63 6f 6e 73 74 61 6e 74 3d 21 31 t){t.constant=!1 000021c0: 2c 74 2e 70 61 79 61 62 6c 65 3d 21 31 2c 74 2e ,t.payable=!1,t. 000021d0: 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 3d stateMutability= 000021e0: 22 6e 6f 6e 70 61 79 61 62 6c 65 22 2c 65 2e 73 "nonpayable",e.s 000021f0: 70 6c 69 74 28 22 20 22 29 2e 66 6f 72 45 61 63 plit(" ").forEac 00002200: 68 28 28 65 3d 3e 7b 73 77 69 74 63 68 28 65 2e h((e=>{switch(e. 00002210: 74 72 69 6d 28 29 29 7b 63 61 73 65 22 63 6f 6e trim()){case"con 00002220: 73 74 61 6e 74 22 3a 74 2e 63 6f 6e 73 74 61 6e stant":t.constan 00002230: 74 3d 21 30 3b 62 72 65 61 6b 3b 63 61 73 65 22 t=!0;break;case" 00002240: 70 61 79 61 62 6c 65 22 3a 74 2e 70 61 79 61 62 payable":t.payab 00002250: 6c 65 3d 21 30 2c 74 2e 73 74 61 74 65 4d 75 74 le=!0,t.stateMut 00002260: 61 62 69 6c 69 74 79 3d 22 70 61 79 61 62 6c 65 ability="payable 00002270: 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 6e 6f 6e ";break;case"non 00002280: 70 61 79 61 62 6c 65 22 3a 74 2e 70 61 79 61 62 payable":t.payab 00002290: 6c 65 3d 21 31 2c 74 2e 73 74 61 74 65 4d 75 74 le=!1,t.stateMut 000022a0: 61 62 69 6c 69 74 79 3d 22 6e 6f 6e 70 61 79 61 ability="nonpaya 000022b0: 62 6c 65 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 ble";break;case" 000022c0: 70 75 72 65 22 3a 74 2e 63 6f 6e 73 74 61 6e 74 pure":t.constant 000022d0: 3d 21 30 2c 74 2e 73 74 61 74 65 4d 75 74 61 62 =!0,t.stateMutab 000022e0: 69 6c 69 74 79 3d 22 70 75 72 65 22 3b 62 72 65 ility="pure";bre 000022f0: 61 6b 3b 63 61 73 65 22 76 69 65 77 22 3a 74 2e ak;case"view":t. 00002300: 63 6f 6e 73 74 61 6e 74 3d 21 30 2c 74 2e 73 74 constant=!0,t.st 00002310: 61 74 65 4d 75 74 61 62 69 6c 69 74 79 3d 22 76 ateMutability="v 00002320: 69 65 77 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 iew";break;case" 00002330: 65 78 74 65 72 6e 61 6c 22 3a 63 61 73 65 22 70 external":case"p 00002340: 75 62 6c 69 63 22 3a 63 61 73 65 22 22 3a 62 72 ublic":case"":br 00002350: 65 61 6b 3b 64 65 66 61 75 6c 74 3a 63 6f 6e 73 eak;default:cons 00002360: 6f 6c 65 2e 6c 6f 67 28 22 75 6e 6b 6e 6f 77 6e ole.log("unknown 00002370: 20 6d 6f 64 69 66 69 65 72 3a 20 22 2b 65 29 7d modifier: "+e)} 00002380: 7d 29 29 7d 66 75 6e 63 74 69 6f 6e 20 4d 74 28 }))}function Mt( 00002390: 65 29 7b 6c 65 74 20 74 3d 7b 63 6f 6e 73 74 61 e){let t={consta 000023a0: 6e 74 3a 21 31 2c 70 61 79 61 62 6c 65 3a 21 30 nt:!1,payable:!0 000023b0: 2c 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 ,stateMutability 000023c0: 3a 22 70 61 79 61 62 6c 65 22 7d 3b 72 65 74 75 :"payable"};retu 000023d0: 72 6e 20 6e 75 6c 6c 21 3d 65 2e 73 74 61 74 65 rn null!=e.state 000023e0: 4d 75 74 61 62 69 6c 69 74 79 3f 28 74 2e 73 74 Mutability?(t.st 000023f0: 61 74 65 4d 75 74 61 62 69 6c 69 74 79 3d 65 2e ateMutability=e. 00002400: 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 2c stateMutability, 00002410: 74 2e 63 6f 6e 73 74 61 6e 74 3d 22 76 69 65 77 t.constant="view 00002420: 22 3d 3d 3d 74 2e 73 74 61 74 65 4d 75 74 61 62 "===t.stateMutab 00002430: 69 6c 69 74 79 7c 7c 22 70 75 72 65 22 3d 3d 3d ility||"pure"=== 00002440: 74 2e 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 t.stateMutabilit 00002450: 79 2c 6e 75 6c 6c 21 3d 65 2e 63 6f 6e 73 74 61 y,null!=e.consta 00002460: 6e 74 26 26 21 21 65 2e 63 6f 6e 73 74 61 6e 74 nt&&!!e.constant 00002470: 21 3d 3d 74 2e 63 6f 6e 73 74 61 6e 74 26 26 53 !==t.constant&&S 00002480: 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 t.throwArgumentE 00002490: 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 68 61 76 rror("cannot hav 000024a0: 65 20 63 6f 6e 73 74 61 6e 74 20 66 75 6e 63 74 e constant funct 000024b0: 69 6f 6e 20 77 69 74 68 20 6d 75 74 61 62 69 6c ion with mutabil 000024c0: 69 74 79 20 22 2b 74 2e 73 74 61 74 65 4d 75 74 ity "+t.stateMut 000024d0: 61 62 69 6c 69 74 79 2c 22 76 61 6c 75 65 22 2c ability,"value", 000024e0: 65 29 2c 74 2e 70 61 79 61 62 6c 65 3d 22 70 61 e),t.payable="pa 000024f0: 79 61 62 6c 65 22 3d 3d 3d 74 2e 73 74 61 74 65 yable"===t.state 00002500: 4d 75 74 61 62 69 6c 69 74 79 2c 6e 75 6c 6c 21 Mutability,null! 00002510: 3d 65 2e 70 61 79 61 62 6c 65 26 26 21 21 65 2e =e.payable&&!!e. 00002520: 70 61 79 61 62 6c 65 21 3d 3d 74 2e 70 61 79 61 payable!==t.paya 00002530: 62 6c 65 26 26 53 74 2e 74 68 72 6f 77 41 72 67 ble&&St.throwArg 00002540: 75 6d 65 6e 74 45 72 72 6f 72 28 22 63 61 6e 6e umentError("cann 00002550: 6f 74 20 68 61 76 65 20 70 61 79 61 62 6c 65 20 ot have payable 00002560: 66 75 6e 63 74 69 6f 6e 20 77 69 74 68 20 6d 75 function with mu 00002570: 74 61 62 69 6c 69 74 79 20 22 2b 74 2e 73 74 61 tability "+t.sta 00002580: 74 65 4d 75 74 61 62 69 6c 69 74 79 2c 22 76 61 teMutability,"va 00002590: 6c 75 65 22 2c 65 29 29 3a 6e 75 6c 6c 21 3d 65 lue",e)):null!=e 000025a0: 2e 70 61 79 61 62 6c 65 3f 28 74 2e 70 61 79 61 .payable?(t.paya 000025b0: 62 6c 65 3d 21 21 65 2e 70 61 79 61 62 6c 65 2c ble=!!e.payable, 000025c0: 6e 75 6c 6c 21 3d 65 2e 63 6f 6e 73 74 61 6e 74 null!=e.constant 000025d0: 7c 7c 74 2e 70 61 79 61 62 6c 65 7c 7c 22 63 6f ||t.payable||"co 000025e0: 6e 73 74 72 75 63 74 6f 72 22 3d 3d 3d 65 2e 74 nstructor"===e.t 000025f0: 79 70 65 7c 7c 53 74 2e 74 68 72 6f 77 41 72 67 ype||St.throwArg 00002600: 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 61 62 umentError("unab 00002610: 6c 65 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 20 le to determine 00002620: 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 22 stateMutability" 00002630: 2c 22 76 61 6c 75 65 22 2c 65 29 2c 74 2e 63 6f ,"value",e),t.co 00002640: 6e 73 74 61 6e 74 3d 21 21 65 2e 63 6f 6e 73 74 nstant=!!e.const 00002650: 61 6e 74 2c 74 2e 63 6f 6e 73 74 61 6e 74 3f 74 ant,t.constant?t 00002660: 2e 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 .stateMutability 00002670: 3d 22 76 69 65 77 22 3a 74 2e 73 74 61 74 65 4d ="view":t.stateM 00002680: 75 74 61 62 69 6c 69 74 79 3d 74 2e 70 61 79 61 utability=t.paya 00002690: 62 6c 65 3f 22 70 61 79 61 62 6c 65 22 3a 22 6e ble?"payable":"n 000026a0: 6f 6e 70 61 79 61 62 6c 65 22 2c 74 2e 70 61 79 onpayable",t.pay 000026b0: 61 62 6c 65 26 26 74 2e 63 6f 6e 73 74 61 6e 74 able&&t.constant 000026c0: 26 26 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 &&St.throwArgume 000026d0: 6e 74 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 ntError("cannot 000026e0: 68 61 76 65 20 63 6f 6e 73 74 61 6e 74 20 70 61 have constant pa 000026f0: 79 61 62 6c 65 20 66 75 6e 63 74 69 6f 6e 22 2c yable function", 00002700: 22 76 61 6c 75 65 22 2c 65 29 29 3a 6e 75 6c 6c "value",e)):null 00002710: 21 3d 65 2e 63 6f 6e 73 74 61 6e 74 3f 28 74 2e !=e.constant?(t. 00002720: 63 6f 6e 73 74 61 6e 74 3d 21 21 65 2e 63 6f 6e constant=!!e.con 00002730: 73 74 61 6e 74 2c 74 2e 70 61 79 61 62 6c 65 3d stant,t.payable= 00002740: 21 74 2e 63 6f 6e 73 74 61 6e 74 2c 74 2e 73 74 !t.constant,t.st 00002750: 61 74 65 4d 75 74 61 62 69 6c 69 74 79 3d 74 2e ateMutability=t. 00002760: 63 6f 6e 73 74 61 6e 74 3f 22 76 69 65 77 22 3a constant?"view": 00002770: 22 70 61 79 61 62 6c 65 22 29 3a 22 63 6f 6e 73 "payable"):"cons 00002780: 74 72 75 63 74 6f 72 22 21 3d 3d 65 2e 74 79 70 tructor"!==e.typ 00002790: 65 26 26 53 74 2e 74 68 72 6f 77 41 72 67 75 6d e&&St.throwArgum 000027a0: 65 6e 74 45 72 72 6f 72 28 22 75 6e 61 62 6c 65 entError("unable 000027b0: 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 20 73 74 to determine st 000027c0: 61 74 65 4d 75 74 61 62 69 6c 69 74 79 22 2c 22 ateMutability"," 000027d0: 76 61 6c 75 65 22 2c 65 29 2c 74 7d 63 6c 61 73 value",e),t}clas 000027e0: 73 20 44 74 20 65 78 74 65 6e 64 73 20 4f 74 7b s Dt extends Ot{ 000027f0: 66 6f 72 6d 61 74 28 65 29 7b 69 66 28 65 7c 7c format(e){if(e|| 00002800: 28 65 3d 43 74 2e 73 69 67 68 61 73 68 29 2c 43 (e=Ct.sighash),C 00002810: 74 5b 65 5d 7c 7c 53 74 2e 74 68 72 6f 77 41 72 t[e]||St.throwAr 00002820: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 00002830: 61 6c 69 64 20 66 6f 72 6d 61 74 20 74 79 70 65 alid format type 00002840: 22 2c 22 66 6f 72 6d 61 74 22 2c 65 29 2c 65 3d ","format",e),e= 00002850: 3d 3d 43 74 2e 6a 73 6f 6e 29 72 65 74 75 72 6e ==Ct.json)return 00002860: 20 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 JSON.stringify( 00002870: 7b 74 79 70 65 3a 22 63 6f 6e 73 74 72 75 63 74 {type:"construct 00002880: 6f 72 22 2c 73 74 61 74 65 4d 75 74 61 62 69 6c or",stateMutabil 00002890: 69 74 79 3a 22 6e 6f 6e 70 61 79 61 62 6c 65 22 ity:"nonpayable" 000028a0: 21 3d 3d 74 68 69 73 2e 73 74 61 74 65 4d 75 74 !==this.stateMut 000028b0: 61 62 69 6c 69 74 79 3f 74 68 69 73 2e 73 74 61 ability?this.sta 000028c0: 74 65 4d 75 74 61 62 69 6c 69 74 79 3a 76 6f 69 teMutability:voi 000028d0: 64 20 30 2c 70 61 79 61 62 6c 65 3a 74 68 69 73 d 0,payable:this 000028e0: 2e 70 61 79 61 62 6c 65 2c 67 61 73 3a 74 68 69 .payable,gas:thi 000028f0: 73 2e 67 61 73 3f 74 68 69 73 2e 67 61 73 2e 74 s.gas?this.gas.t 00002900: 6f 4e 75 6d 62 65 72 28 29 3a 76 6f 69 64 20 30 oNumber():void 0 00002910: 2c 69 6e 70 75 74 73 3a 74 68 69 73 2e 69 6e 70 ,inputs:this.inp 00002920: 75 74 73 2e 6d 61 70 28 28 74 3d 3e 4a 53 4f 4e uts.map((t=>JSON 00002930: 2e 70 61 72 73 65 28 74 2e 66 6f 72 6d 61 74 28 .parse(t.format( 00002940: 65 29 29 29 29 7d 29 3b 65 3d 3d 3d 43 74 2e 73 e))))});e===Ct.s 00002950: 69 67 68 61 73 68 26 26 53 74 2e 74 68 72 6f 77 ighash&&St.throw 00002960: 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 66 6f Error("cannot fo 00002970: 72 6d 61 74 20 61 20 63 6f 6e 73 74 72 75 63 74 rmat a construct 00002980: 6f 72 20 66 6f 72 20 73 69 67 68 61 73 68 22 2c or for sighash", 00002990: 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f y.errors.UNSUPPO 000029a0: 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b RTED_OPERATION,{ 000029b0: 6f 70 65 72 61 74 69 6f 6e 3a 22 66 6f 72 6d 61 operation:"forma 000029c0: 74 28 73 69 67 68 61 73 68 29 22 7d 29 3b 6c 65 t(sighash)"});le 000029d0: 74 20 74 3d 22 63 6f 6e 73 74 72 75 63 74 6f 72 t t="constructor 000029e0: 28 22 2b 74 68 69 73 2e 69 6e 70 75 74 73 2e 6d ("+this.inputs.m 000029f0: 61 70 28 28 74 3d 3e 74 2e 66 6f 72 6d 61 74 28 ap((t=>t.format( 00002a00: 65 29 29 29 2e 6a 6f 69 6e 28 65 3d 3d 3d 43 74 e))).join(e===Ct 00002a10: 2e 66 75 6c 6c 3f 22 2c 20 22 3a 22 2c 22 29 2b .full?", ":",")+ 00002a20: 22 29 20 22 3b 72 65 74 75 72 6e 20 74 68 69 73 ") ";return this 00002a30: 2e 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 .stateMutability 00002a40: 26 26 22 6e 6f 6e 70 61 79 61 62 6c 65 22 21 3d &&"nonpayable"!= 00002a50: 3d 74 68 69 73 2e 73 74 61 74 65 4d 75 74 61 62 =this.stateMutab 00002a60: 69 6c 69 74 79 26 26 28 74 2b 3d 74 68 69 73 2e ility&&(t+=this. 00002a70: 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 2b stateMutability+ 00002a80: 22 20 22 29 2c 74 2e 74 72 69 6d 28 29 7d 73 74 " "),t.trim()}st 00002a90: 61 74 69 63 20 66 72 6f 6d 28 65 29 7b 72 65 74 atic from(e){ret 00002aa0: 75 72 6e 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 urn"string"==typ 00002ab0: 65 6f 66 20 65 3f 44 74 2e 66 72 6f 6d 53 74 72 eof e?Dt.fromStr 00002ac0: 69 6e 67 28 65 29 3a 44 74 2e 66 72 6f 6d 4f 62 ing(e):Dt.fromOb 00002ad0: 6a 65 63 74 28 65 29 7d 73 74 61 74 69 63 20 66 ject(e)}static f 00002ae0: 72 6f 6d 4f 62 6a 65 63 74 28 65 29 7b 69 66 28 romObject(e){if( 00002af0: 44 74 2e 69 73 43 6f 6e 73 74 72 75 63 74 6f 72 Dt.isConstructor 00002b00: 46 72 61 67 6d 65 6e 74 28 65 29 29 72 65 74 75 Fragment(e))retu 00002b10: 72 6e 20 65 3b 22 63 6f 6e 73 74 72 75 63 74 6f rn e;"constructo 00002b20: 72 22 21 3d 3d 65 2e 74 79 70 65 26 26 53 74 2e r"!==e.type&&St. 00002b30: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00002b40: 6f 72 28 22 69 6e 76 61 6c 69 64 20 63 6f 6e 73 or("invalid cons 00002b50: 74 72 75 63 74 6f 72 20 6f 62 6a 65 63 74 22 2c tructor object", 00002b60: 22 76 61 6c 75 65 22 2c 65 29 3b 6c 65 74 20 74 "value",e);let t 00002b70: 3d 4d 74 28 65 29 3b 74 2e 63 6f 6e 73 74 61 6e =Mt(e);t.constan 00002b80: 74 26 26 53 74 2e 74 68 72 6f 77 41 72 67 75 6d t&&St.throwArgum 00002b90: 65 6e 74 45 72 72 6f 72 28 22 63 6f 6e 73 74 72 entError("constr 00002ba0: 75 63 74 6f 72 20 63 61 6e 6e 6f 74 20 62 65 20 uctor cannot be 00002bb0: 63 6f 6e 73 74 61 6e 74 22 2c 22 76 61 6c 75 65 constant","value 00002bc0: 22 2c 65 29 3b 63 6f 6e 73 74 20 6e 3d 7b 6e 61 ",e);const n={na 00002bd0: 6d 65 3a 6e 75 6c 6c 2c 74 79 70 65 3a 65 2e 74 me:null,type:e.t 00002be0: 79 70 65 2c 69 6e 70 75 74 73 3a 65 2e 69 6e 70 ype,inputs:e.inp 00002bf0: 75 74 73 3f 65 2e 69 6e 70 75 74 73 2e 6d 61 70 uts?e.inputs.map 00002c00: 28 6b 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 29 3a (kt.fromObject): 00002c10: 5b 5d 2c 70 61 79 61 62 6c 65 3a 74 2e 70 61 79 [],payable:t.pay 00002c20: 61 62 6c 65 2c 73 74 61 74 65 4d 75 74 61 62 69 able,stateMutabi 00002c30: 6c 69 74 79 3a 74 2e 73 74 61 74 65 4d 75 74 61 lity:t.stateMuta 00002c40: 62 69 6c 69 74 79 2c 67 61 73 3a 65 2e 67 61 73 bility,gas:e.gas 00002c50: 3f 59 2e 66 72 6f 6d 28 65 2e 67 61 73 29 3a 6e ?Y.from(e.gas):n 00002c60: 75 6c 6c 7d 3b 72 65 74 75 72 6e 20 6e 65 77 20 ull};return new 00002c70: 44 74 28 45 74 2c 6e 29 7d 73 74 61 74 69 63 20 Dt(Et,n)}static 00002c80: 66 72 6f 6d 53 74 72 69 6e 67 28 65 29 7b 6c 65 fromString(e){le 00002c90: 74 20 74 3d 7b 74 79 70 65 3a 22 63 6f 6e 73 74 t t={type:"const 00002ca0: 72 75 63 74 6f 72 22 7d 2c 6e 3d 28 65 3d 4e 74 ructor"},n=(e=Nt 00002cb0: 28 65 2c 74 29 29 2e 6d 61 74 63 68 28 47 74 29 (e,t)).match(Gt) 00002cc0: 3b 72 65 74 75 72 6e 20 6e 26 26 22 63 6f 6e 73 ;return n&&"cons 00002cd0: 74 72 75 63 74 6f 72 22 3d 3d 3d 6e 5b 31 5d 2e tructor"===n[1]. 00002ce0: 74 72 69 6d 28 29 7c 7c 53 74 2e 74 68 72 6f 77 trim()||St.throw 00002cf0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 00002d00: 6e 76 61 6c 69 64 20 63 6f 6e 73 74 72 75 63 74 nvalid construct 00002d10: 6f 72 20 73 74 72 69 6e 67 22 2c 22 76 61 6c 75 or string","valu 00002d20: 65 22 2c 65 29 2c 74 2e 69 6e 70 75 74 73 3d 49 e",e),t.inputs=I 00002d30: 74 28 6e 5b 32 5d 2e 74 72 69 6d 28 29 2c 21 31 t(n[2].trim(),!1 00002d40: 29 2c 50 74 28 6e 5b 33 5d 2e 74 72 69 6d 28 29 ),Pt(n[3].trim() 00002d50: 2c 74 29 2c 44 74 2e 66 72 6f 6d 4f 62 6a 65 63 ,t),Dt.fromObjec 00002d60: 74 28 74 29 7d 73 74 61 74 69 63 20 69 73 43 6f t(t)}static isCo 00002d70: 6e 73 74 72 75 63 74 6f 72 46 72 61 67 6d 65 6e nstructorFragmen 00002d80: 74 28 65 29 7b 72 65 74 75 72 6e 20 65 26 26 65 t(e){return e&&e 00002d90: 2e 5f 69 73 46 72 61 67 6d 65 6e 74 26 26 22 63 ._isFragment&&"c 00002da0: 6f 6e 73 74 72 75 63 74 6f 72 22 3d 3d 3d 65 2e onstructor"===e. 00002db0: 74 79 70 65 7d 7d 63 6c 61 73 73 20 4c 74 20 65 type}}class Lt e 00002dc0: 78 74 65 6e 64 73 20 44 74 7b 66 6f 72 6d 61 74 xtends Dt{format 00002dd0: 28 65 29 7b 69 66 28 65 7c 7c 28 65 3d 43 74 2e (e){if(e||(e=Ct. 00002de0: 73 69 67 68 61 73 68 29 2c 43 74 5b 65 5d 7c 7c sighash),Ct[e]|| 00002df0: 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 St.throwArgument 00002e00: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 66 Error("invalid f 00002e10: 6f 72 6d 61 74 20 74 79 70 65 22 2c 22 66 6f 72 ormat type","for 00002e20: 6d 61 74 22 2c 65 29 2c 65 3d 3d 3d 43 74 2e 6a mat",e),e===Ct.j 00002e30: 73 6f 6e 29 72 65 74 75 72 6e 20 4a 53 4f 4e 2e son)return JSON. 00002e40: 73 74 72 69 6e 67 69 66 79 28 7b 74 79 70 65 3a stringify({type: 00002e50: 22 66 75 6e 63 74 69 6f 6e 22 2c 6e 61 6d 65 3a "function",name: 00002e60: 74 68 69 73 2e 6e 61 6d 65 2c 63 6f 6e 73 74 61 this.name,consta 00002e70: 6e 74 3a 74 68 69 73 2e 63 6f 6e 73 74 61 6e 74 nt:this.constant 00002e80: 2c 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 ,stateMutability 00002e90: 3a 22 6e 6f 6e 70 61 79 61 62 6c 65 22 21 3d 3d :"nonpayable"!== 00002ea0: 74 68 69 73 2e 73 74 61 74 65 4d 75 74 61 62 69 this.stateMutabi 00002eb0: 6c 69 74 79 3f 74 68 69 73 2e 73 74 61 74 65 4d lity?this.stateM 00002ec0: 75 74 61 62 69 6c 69 74 79 3a 76 6f 69 64 20 30 utability:void 0 00002ed0: 2c 70 61 79 61 62 6c 65 3a 74 68 69 73 2e 70 61 ,payable:this.pa 00002ee0: 79 61 62 6c 65 2c 67 61 73 3a 74 68 69 73 2e 67 yable,gas:this.g 00002ef0: 61 73 3f 74 68 69 73 2e 67 61 73 2e 74 6f 4e 75 as?this.gas.toNu 00002f00: 6d 62 65 72 28 29 3a 76 6f 69 64 20 30 2c 69 6e mber():void 0,in 00002f10: 70 75 74 73 3a 74 68 69 73 2e 69 6e 70 75 74 73 puts:this.inputs 00002f20: 2e 6d 61 70 28 28 74 3d 3e 4a 53 4f 4e 2e 70 61 .map((t=>JSON.pa 00002f30: 72 73 65 28 74 2e 66 6f 72 6d 61 74 28 65 29 29 rse(t.format(e)) 00002f40: 29 29 2c 6f 75 74 70 75 74 73 3a 74 68 69 73 2e )),outputs:this. 00002f50: 6f 75 74 70 75 74 73 2e 6d 61 70 28 28 74 3d 3e outputs.map((t=> 00002f60: 4a 53 4f 4e 2e 70 61 72 73 65 28 74 2e 66 6f 72 JSON.parse(t.for 00002f70: 6d 61 74 28 65 29 29 29 29 7d 29 3b 6c 65 74 20 mat(e))))});let 00002f80: 74 3d 22 22 3b 72 65 74 75 72 6e 20 65 21 3d 3d t="";return e!== 00002f90: 43 74 2e 73 69 67 68 61 73 68 26 26 28 74 2b 3d Ct.sighash&&(t+= 00002fa0: 22 66 75 6e 63 74 69 6f 6e 20 22 29 2c 74 2b 3d "function "),t+= 00002fb0: 74 68 69 73 2e 6e 61 6d 65 2b 22 28 22 2b 74 68 this.name+"("+th 00002fc0: 69 73 2e 69 6e 70 75 74 73 2e 6d 61 70 28 28 74 is.inputs.map((t 00002fd0: 3d 3e 74 2e 66 6f 72 6d 61 74 28 65 29 29 29 2e =>t.format(e))). 00002fe0: 6a 6f 69 6e 28 65 3d 3d 3d 43 74 2e 66 75 6c 6c join(e===Ct.full 00002ff0: 3f 22 2c 20 22 3a 22 2c 22 29 2b 22 29 20 22 2c ?", ":",")+") ", 00003000: 65 21 3d 3d 43 74 2e 73 69 67 68 61 73 68 26 26 e!==Ct.sighash&& 00003010: 28 74 68 69 73 2e 73 74 61 74 65 4d 75 74 61 62 (this.stateMutab 00003020: 69 6c 69 74 79 3f 22 6e 6f 6e 70 61 79 61 62 6c ility?"nonpayabl 00003030: 65 22 21 3d 3d 74 68 69 73 2e 73 74 61 74 65 4d e"!==this.stateM 00003040: 75 74 61 62 69 6c 69 74 79 26 26 28 74 2b 3d 74 utability&&(t+=t 00003050: 68 69 73 2e 73 74 61 74 65 4d 75 74 61 62 69 6c his.stateMutabil 00003060: 69 74 79 2b 22 20 22 29 3a 74 68 69 73 2e 63 6f ity+" "):this.co 00003070: 6e 73 74 61 6e 74 26 26 28 74 2b 3d 22 76 69 65 nstant&&(t+="vie 00003080: 77 20 22 29 2c 74 68 69 73 2e 6f 75 74 70 75 74 w "),this.output 00003090: 73 26 26 74 68 69 73 2e 6f 75 74 70 75 74 73 2e s&&this.outputs. 000030a0: 6c 65 6e 67 74 68 26 26 28 74 2b 3d 22 72 65 74 length&&(t+="ret 000030b0: 75 72 6e 73 20 28 22 2b 74 68 69 73 2e 6f 75 74 urns ("+this.out 000030c0: 70 75 74 73 2e 6d 61 70 28 28 74 3d 3e 74 2e 66 puts.map((t=>t.f 000030d0: 6f 72 6d 61 74 28 65 29 29 29 2e 6a 6f 69 6e 28 ormat(e))).join( 000030e0: 22 2c 20 22 29 2b 22 29 20 22 29 2c 6e 75 6c 6c ", ")+") "),null 000030f0: 21 3d 74 68 69 73 2e 67 61 73 26 26 28 74 2b 3d !=this.gas&&(t+= 00003100: 22 40 22 2b 74 68 69 73 2e 67 61 73 2e 74 6f 53 "@"+this.gas.toS 00003110: 74 72 69 6e 67 28 29 2b 22 20 22 29 29 2c 74 2e tring()+" ")),t. 00003120: 74 72 69 6d 28 29 7d 73 74 61 74 69 63 20 66 72 trim()}static fr 00003130: 6f 6d 28 65 29 7b 72 65 74 75 72 6e 22 73 74 72 om(e){return"str 00003140: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 4c ing"==typeof e?L 00003150: 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 29 3a t.fromString(e): 00003160: 4c 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 28 65 29 Lt.fromObject(e) 00003170: 7d 73 74 61 74 69 63 20 66 72 6f 6d 4f 62 6a 65 }static fromObje 00003180: 63 74 28 65 29 7b 69 66 28 4c 74 2e 69 73 46 75 ct(e){if(Lt.isFu 00003190: 6e 63 74 69 6f 6e 46 72 61 67 6d 65 6e 74 28 65 nctionFragment(e 000031a0: 29 29 72 65 74 75 72 6e 20 65 3b 22 66 75 6e 63 ))return e;"func 000031b0: 74 69 6f 6e 22 21 3d 3d 65 2e 74 79 70 65 26 26 tion"!==e.type&& 000031c0: 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 St.throwArgument 000031d0: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 66 Error("invalid f 000031e0: 75 6e 63 74 69 6f 6e 20 6f 62 6a 65 63 74 22 2c unction object", 000031f0: 22 76 61 6c 75 65 22 2c 65 29 3b 6c 65 74 20 74 "value",e);let t 00003200: 3d 4d 74 28 65 29 3b 63 6f 6e 73 74 20 6e 3d 7b =Mt(e);const n={ 00003210: 74 79 70 65 3a 65 2e 74 79 70 65 2c 6e 61 6d 65 type:e.type,name 00003220: 3a 7a 74 28 65 2e 6e 61 6d 65 29 2c 63 6f 6e 73 :zt(e.name),cons 00003230: 74 61 6e 74 3a 74 2e 63 6f 6e 73 74 61 6e 74 2c tant:t.constant, 00003240: 69 6e 70 75 74 73 3a 65 2e 69 6e 70 75 74 73 3f inputs:e.inputs? 00003250: 65 2e 69 6e 70 75 74 73 2e 6d 61 70 28 6b 74 2e e.inputs.map(kt. 00003260: 66 72 6f 6d 4f 62 6a 65 63 74 29 3a 5b 5d 2c 6f fromObject):[],o 00003270: 75 74 70 75 74 73 3a 65 2e 6f 75 74 70 75 74 73 utputs:e.outputs 00003280: 3f 65 2e 6f 75 74 70 75 74 73 2e 6d 61 70 28 6b ?e.outputs.map(k 00003290: 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 29 3a 5b 5d t.fromObject):[] 000032a0: 2c 70 61 79 61 62 6c 65 3a 74 2e 70 61 79 61 62 ,payable:t.payab 000032b0: 6c 65 2c 73 74 61 74 65 4d 75 74 61 62 69 6c 69 le,stateMutabili 000032c0: 74 79 3a 74 2e 73 74 61 74 65 4d 75 74 61 62 69 ty:t.stateMutabi 000032d0: 6c 69 74 79 2c 67 61 73 3a 65 2e 67 61 73 3f 59 lity,gas:e.gas?Y 000032e0: 2e 66 72 6f 6d 28 65 2e 67 61 73 29 3a 6e 75 6c .from(e.gas):nul 000032f0: 6c 7d 3b 72 65 74 75 72 6e 20 6e 65 77 20 4c 74 l};return new Lt 00003300: 28 45 74 2c 6e 29 7d 73 74 61 74 69 63 20 66 72 (Et,n)}static fr 00003310: 6f 6d 53 74 72 69 6e 67 28 65 29 7b 6c 65 74 20 omString(e){let 00003320: 74 3d 7b 74 79 70 65 3a 22 66 75 6e 63 74 69 6f t={type:"functio 00003330: 6e 22 7d 2c 6e 3d 28 65 3d 4e 74 28 65 2c 74 29 n"},n=(e=Nt(e,t) 00003340: 29 2e 73 70 6c 69 74 28 22 20 72 65 74 75 72 6e ).split(" return 00003350: 73 20 22 29 3b 6e 2e 6c 65 6e 67 74 68 3e 32 26 s ");n.length>2& 00003360: 26 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &St.throwArgumen 00003370: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 00003380: 66 75 6e 63 74 69 6f 6e 20 73 74 72 69 6e 67 22 function string" 00003390: 2c 22 76 61 6c 75 65 22 2c 65 29 3b 6c 65 74 20 ,"value",e);let 000033a0: 72 3d 6e 5b 30 5d 2e 6d 61 74 63 68 28 47 74 29 r=n[0].match(Gt) 000033b0: 3b 69 66 28 72 7c 7c 53 74 2e 74 68 72 6f 77 41 ;if(r||St.throwA 000033c0: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e rgumentError("in 000033d0: 76 61 6c 69 64 20 66 75 6e 63 74 69 6f 6e 20 73 valid function s 000033e0: 69 67 6e 61 74 75 72 65 22 2c 22 76 61 6c 75 65 ignature","value 000033f0: 22 2c 65 29 2c 74 2e 6e 61 6d 65 3d 72 5b 31 5d ",e),t.name=r[1] 00003400: 2e 74 72 69 6d 28 29 2c 74 2e 6e 61 6d 65 26 26 .trim(),t.name&& 00003410: 7a 74 28 74 2e 6e 61 6d 65 29 2c 74 2e 69 6e 70 zt(t.name),t.inp 00003420: 75 74 73 3d 49 74 28 72 5b 32 5d 2c 21 31 29 2c uts=It(r[2],!1), 00003430: 50 74 28 72 5b 33 5d 2e 74 72 69 6d 28 29 2c 74 Pt(r[3].trim(),t 00003440: 29 2c 6e 2e 6c 65 6e 67 74 68 3e 31 29 7b 6c 65 ),n.length>1){le 00003450: 74 20 72 3d 6e 5b 31 5d 2e 6d 61 74 63 68 28 47 t r=n[1].match(G 00003460: 74 29 3b 22 22 3d 3d 72 5b 31 5d 2e 74 72 69 6d t);""==r[1].trim 00003470: 28 29 26 26 22 22 3d 3d 72 5b 33 5d 2e 74 72 69 ()&&""==r[3].tri 00003480: 6d 28 29 7c 7c 53 74 2e 74 68 72 6f 77 41 72 67 m()||St.throwArg 00003490: 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 65 78 umentError("unex 000034a0: 70 65 63 74 65 64 20 74 6f 6b 65 6e 73 22 2c 22 pected tokens"," 000034b0: 76 61 6c 75 65 22 2c 65 29 2c 74 2e 6f 75 74 70 value",e),t.outp 000034c0: 75 74 73 3d 49 74 28 72 5b 32 5d 2c 21 31 29 7d uts=It(r[2],!1)} 000034d0: 65 6c 73 65 20 74 2e 6f 75 74 70 75 74 73 3d 5b else t.outputs=[ 000034e0: 5d 3b 72 65 74 75 72 6e 20 4c 74 2e 66 72 6f 6d ];return Lt.from 000034f0: 4f 62 6a 65 63 74 28 74 29 7d 73 74 61 74 69 63 Object(t)}static 00003500: 20 69 73 46 75 6e 63 74 69 6f 6e 46 72 61 67 6d isFunctionFragm 00003510: 65 6e 74 28 65 29 7b 72 65 74 75 72 6e 20 65 26 ent(e){return e& 00003520: 26 65 2e 5f 69 73 46 72 61 67 6d 65 6e 74 26 26 &e._isFragment&& 00003530: 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 3d 65 2e 74 "function"===e.t 00003540: 79 70 65 7d 7d 66 75 6e 63 74 69 6f 6e 20 46 74 ype}}function Ft 00003550: 28 65 29 7b 63 6f 6e 73 74 20 74 3d 65 2e 66 6f (e){const t=e.fo 00003560: 72 6d 61 74 28 29 3b 72 65 74 75 72 6e 22 45 72 rmat();return"Er 00003570: 72 6f 72 28 73 74 72 69 6e 67 29 22 21 3d 3d 74 ror(string)"!==t 00003580: 26 26 22 50 61 6e 69 63 28 75 69 6e 74 32 35 36 &&"Panic(uint256 00003590: 29 22 21 3d 3d 74 7c 7c 53 74 2e 74 68 72 6f 77 )"!==t||St.throw 000035a0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 60 63 ArgumentError(`c 000035b0: 61 6e 6e 6f 74 20 73 70 65 63 69 66 79 20 75 73 annot specify us 000035c0: 65 72 20 64 65 66 69 6e 65 64 20 24 7b 74 7d 20 er defined ${t} 000035d0: 65 72 72 6f 72 60 2c 22 66 72 61 67 6d 65 6e 74 error`,"fragment 000035e0: 22 2c 65 29 2c 65 7d 63 6c 61 73 73 20 55 74 20 ",e),e}class Ut 000035f0: 65 78 74 65 6e 64 73 20 4f 74 7b 66 6f 72 6d 61 extends Ot{forma 00003600: 74 28 65 29 7b 69 66 28 65 7c 7c 28 65 3d 43 74 t(e){if(e||(e=Ct 00003610: 2e 73 69 67 68 61 73 68 29 2c 43 74 5b 65 5d 7c .sighash),Ct[e]| 00003620: 7c 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e |St.throwArgumen 00003630: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 00003640: 66 6f 72 6d 61 74 20 74 79 70 65 22 2c 22 66 6f format type","fo 00003650: 72 6d 61 74 22 2c 65 29 2c 65 3d 3d 3d 43 74 2e rmat",e),e===Ct. 00003660: 6a 73 6f 6e 29 72 65 74 75 72 6e 20 4a 53 4f 4e json)return JSON 00003670: 2e 73 74 72 69 6e 67 69 66 79 28 7b 74 79 70 65 .stringify({type 00003680: 3a 22 65 72 72 6f 72 22 2c 6e 61 6d 65 3a 74 68 :"error",name:th 00003690: 69 73 2e 6e 61 6d 65 2c 69 6e 70 75 74 73 3a 74 is.name,inputs:t 000036a0: 68 69 73 2e 69 6e 70 75 74 73 2e 6d 61 70 28 28 his.inputs.map(( 000036b0: 74 3d 3e 4a 53 4f 4e 2e 70 61 72 73 65 28 74 2e t=>JSON.parse(t. 000036c0: 66 6f 72 6d 61 74 28 65 29 29 29 29 7d 29 3b 6c format(e))))});l 000036d0: 65 74 20 74 3d 22 22 3b 72 65 74 75 72 6e 20 65 et t="";return e 000036e0: 21 3d 3d 43 74 2e 73 69 67 68 61 73 68 26 26 28 !==Ct.sighash&&( 000036f0: 74 2b 3d 22 65 72 72 6f 72 20 22 29 2c 74 2b 3d t+="error "),t+= 00003700: 74 68 69 73 2e 6e 61 6d 65 2b 22 28 22 2b 74 68 this.name+"("+th 00003710: 69 73 2e 69 6e 70 75 74 73 2e 6d 61 70 28 28 74 is.inputs.map((t 00003720: 3d 3e 74 2e 66 6f 72 6d 61 74 28 65 29 29 29 2e =>t.format(e))). 00003730: 6a 6f 69 6e 28 65 3d 3d 3d 43 74 2e 66 75 6c 6c join(e===Ct.full 00003740: 3f 22 2c 20 22 3a 22 2c 22 29 2b 22 29 20 22 2c ?", ":",")+") ", 00003750: 74 2e 74 72 69 6d 28 29 7d 73 74 61 74 69 63 20 t.trim()}static 00003760: 66 72 6f 6d 28 65 29 7b 72 65 74 75 72 6e 22 73 from(e){return"s 00003770: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 00003780: 3f 55 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 ?Ut.fromString(e 00003790: 29 3a 55 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 28 ):Ut.fromObject( 000037a0: 65 29 7d 73 74 61 74 69 63 20 66 72 6f 6d 4f 62 e)}static fromOb 000037b0: 6a 65 63 74 28 65 29 7b 69 66 28 55 74 2e 69 73 ject(e){if(Ut.is 000037c0: 45 72 72 6f 72 46 72 61 67 6d 65 6e 74 28 65 29 ErrorFragment(e) 000037d0: 29 72 65 74 75 72 6e 20 65 3b 22 65 72 72 6f 72 )return e;"error 000037e0: 22 21 3d 3d 65 2e 74 79 70 65 26 26 53 74 2e 74 "!==e.type&&St.t 000037f0: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00003800: 72 28 22 69 6e 76 61 6c 69 64 20 65 72 72 6f 72 r("invalid error 00003810: 20 6f 62 6a 65 63 74 22 2c 22 76 61 6c 75 65 22 object","value" 00003820: 2c 65 29 3b 63 6f 6e 73 74 20 74 3d 7b 74 79 70 ,e);const t={typ 00003830: 65 3a 65 2e 74 79 70 65 2c 6e 61 6d 65 3a 7a 74 e:e.type,name:zt 00003840: 28 65 2e 6e 61 6d 65 29 2c 69 6e 70 75 74 73 3a (e.name),inputs: 00003850: 65 2e 69 6e 70 75 74 73 3f 65 2e 69 6e 70 75 74 e.inputs?e.input 00003860: 73 2e 6d 61 70 28 6b 74 2e 66 72 6f 6d 4f 62 6a s.map(kt.fromObj 00003870: 65 63 74 29 3a 5b 5d 7d 3b 72 65 74 75 72 6e 20 ect):[]};return 00003880: 46 74 28 6e 65 77 20 55 74 28 45 74 2c 74 29 29 Ft(new Ut(Et,t)) 00003890: 7d 73 74 61 74 69 63 20 66 72 6f 6d 53 74 72 69 }static fromStri 000038a0: 6e 67 28 65 29 7b 6c 65 74 20 74 3d 7b 74 79 70 ng(e){let t={typ 000038b0: 65 3a 22 65 72 72 6f 72 22 7d 2c 6e 3d 65 2e 6d e:"error"},n=e.m 000038c0: 61 74 63 68 28 47 74 29 3b 72 65 74 75 72 6e 20 atch(Gt);return 000038d0: 6e 7c 7c 53 74 2e 74 68 72 6f 77 41 72 67 75 6d n||St.throwArgum 000038e0: 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 entError("invali 000038f0: 64 20 65 72 72 6f 72 20 73 69 67 6e 61 74 75 72 d error signatur 00003900: 65 22 2c 22 76 61 6c 75 65 22 2c 65 29 2c 74 2e e","value",e),t. 00003910: 6e 61 6d 65 3d 6e 5b 31 5d 2e 74 72 69 6d 28 29 name=n[1].trim() 00003920: 2c 74 2e 6e 61 6d 65 26 26 7a 74 28 74 2e 6e 61 ,t.name&&zt(t.na 00003930: 6d 65 29 2c 74 2e 69 6e 70 75 74 73 3d 49 74 28 me),t.inputs=It( 00003940: 6e 5b 32 5d 2c 21 31 29 2c 46 74 28 55 74 2e 66 n[2],!1),Ft(Ut.f 00003950: 72 6f 6d 4f 62 6a 65 63 74 28 74 29 29 7d 73 74 romObject(t))}st 00003960: 61 74 69 63 20 69 73 45 72 72 6f 72 46 72 61 67 atic isErrorFrag 00003970: 6d 65 6e 74 28 65 29 7b 72 65 74 75 72 6e 20 65 ment(e){return e 00003980: 26 26 65 2e 5f 69 73 46 72 61 67 6d 65 6e 74 26 &&e._isFragment& 00003990: 26 22 65 72 72 6f 72 22 3d 3d 3d 65 2e 74 79 70 &"error"===e.typ 000039a0: 65 7d 7d 66 75 6e 63 74 69 6f 6e 20 42 74 28 65 e}}function Bt(e 000039b0: 29 7b 72 65 74 75 72 6e 20 65 2e 6d 61 74 63 68 ){return e.match 000039c0: 28 2f 5e 75 69 6e 74 28 24 7c 5b 5e 31 2d 39 5d (/^uint($|[^1-9] 000039d0: 29 2f 29 3f 65 3d 22 75 69 6e 74 32 35 36 22 2b )/)?e="uint256"+ 000039e0: 65 2e 73 75 62 73 74 72 69 6e 67 28 34 29 3a 65 e.substring(4):e 000039f0: 2e 6d 61 74 63 68 28 2f 5e 69 6e 74 28 24 7c 5b .match(/^int($|[ 00003a00: 5e 31 2d 39 5d 29 2f 29 26 26 28 65 3d 22 69 6e ^1-9])/)&&(e="in 00003a10: 74 32 35 36 22 2b 65 2e 73 75 62 73 74 72 69 6e t256"+e.substrin 00003a20: 67 28 33 29 29 2c 65 7d 63 6f 6e 73 74 20 6a 74 g(3)),e}const jt 00003a30: 3d 6e 65 77 20 52 65 67 45 78 70 28 22 5e 5b 61 =new RegExp("^[a 00003a40: 2d 7a 41 2d 5a 24 5f 5d 5b 61 2d 7a 41 2d 5a 30 -zA-Z$_][a-zA-Z0 00003a50: 2d 39 24 5f 5d 2a 24 22 29 3b 66 75 6e 63 74 69 -9$_]*$");functi 00003a60: 6f 6e 20 7a 74 28 65 29 7b 72 65 74 75 72 6e 20 on zt(e){return 00003a70: 65 26 26 65 2e 6d 61 74 63 68 28 6a 74 29 7c 7c e&&e.match(jt)|| 00003a80: 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 St.throwArgument 00003a90: 45 72 72 6f 72 28 60 69 6e 76 61 6c 69 64 20 69 Error(`invalid i 00003aa0: 64 65 6e 74 69 66 69 65 72 20 22 24 7b 65 7d 22 dentifier "${e}" 00003ab0: 60 2c 22 76 61 6c 75 65 22 2c 65 29 2c 65 7d 63 `,"value",e),e}c 00003ac0: 6f 6e 73 74 20 47 74 3d 6e 65 77 20 52 65 67 45 onst Gt=new RegE 00003ad0: 78 70 28 22 5e 28 5b 5e 29 28 5d 2a 29 5c 5c 28 xp("^([^)(]*)\\( 00003ae0: 28 2e 2a 29 5c 5c 29 28 5b 5e 29 28 5d 2a 29 24 (.*)\\)([^)(]*)$ 00003af0: 22 29 3b 63 6f 6e 73 74 20 48 74 3d 6e 65 77 20 ");const Ht=new 00003b00: 79 28 64 65 29 2c 56 74 3d 6e 65 77 20 52 65 67 y(de),Vt=new Reg 00003b10: 45 78 70 28 2f 5e 62 79 74 65 73 28 5b 30 2d 39 Exp(/^bytes([0-9 00003b20: 5d 2a 29 24 2f 29 2c 71 74 3d 6e 65 77 20 52 65 ]*)$/),qt=new Re 00003b30: 67 45 78 70 28 2f 5e 28 75 3f 69 6e 74 29 28 5b gExp(/^(u?int)([ 00003b40: 30 2d 39 5d 2a 29 24 2f 29 3b 63 6c 61 73 73 20 0-9]*)$/);class 00003b50: 57 74 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 Wt{constructor(e 00003b60: 29 7b 74 65 28 74 68 69 73 2c 22 63 6f 65 72 63 ){te(this,"coerc 00003b70: 65 46 75 6e 63 22 2c 65 7c 7c 6e 75 6c 6c 29 7d eFunc",e||null)} 00003b80: 5f 67 65 74 43 6f 64 65 72 28 65 29 7b 73 77 69 _getCoder(e){swi 00003b90: 74 63 68 28 65 2e 62 61 73 65 54 79 70 65 29 7b tch(e.baseType){ 00003ba0: 63 61 73 65 22 61 64 64 72 65 73 73 22 3a 72 65 case"address":re 00003bb0: 74 75 72 6e 20 6e 65 77 20 4a 65 28 65 2e 6e 61 turn new Je(e.na 00003bc0: 6d 65 29 3b 63 61 73 65 22 62 6f 6f 6c 22 3a 72 me);case"bool":r 00003bd0: 65 74 75 72 6e 20 6e 65 77 20 6f 74 28 65 2e 6e eturn new ot(e.n 00003be0: 61 6d 65 29 3b 63 61 73 65 22 73 74 72 69 6e 67 ame);case"string 00003bf0: 22 3a 72 65 74 75 72 6e 20 6e 65 77 20 79 74 28 ":return new yt( 00003c00: 65 2e 6e 61 6d 65 29 3b 63 61 73 65 22 62 79 74 e.name);case"byt 00003c10: 65 73 22 3a 72 65 74 75 72 6e 20 6e 65 77 20 61 es":return new a 00003c20: 74 28 65 2e 6e 61 6d 65 29 3b 63 61 73 65 22 61 t(e.name);case"a 00003c30: 72 72 61 79 22 3a 72 65 74 75 72 6e 20 6e 65 77 rray":return new 00003c40: 20 72 74 28 74 68 69 73 2e 5f 67 65 74 43 6f 64 rt(this._getCod 00003c50: 65 72 28 65 2e 61 72 72 61 79 43 68 69 6c 64 72 er(e.arrayChildr 00003c60: 65 6e 29 2c 65 2e 61 72 72 61 79 4c 65 6e 67 74 en),e.arrayLengt 00003c70: 68 2c 65 2e 6e 61 6d 65 29 3b 63 61 73 65 22 74 h,e.name);case"t 00003c80: 75 70 6c 65 22 3a 72 65 74 75 72 6e 20 6e 65 77 uple":return new 00003c90: 20 76 74 28 28 65 2e 63 6f 6d 70 6f 6e 65 6e 74 vt((e.component 00003ca0: 73 7c 7c 5b 5d 29 2e 6d 61 70 28 28 65 3d 3e 74 s||[]).map((e=>t 00003cb0: 68 69 73 2e 5f 67 65 74 43 6f 64 65 72 28 65 29 his._getCoder(e) 00003cc0: 29 29 2c 65 2e 6e 61 6d 65 29 3b 63 61 73 65 22 )),e.name);case" 00003cd0: 22 3a 72 65 74 75 72 6e 20 6e 65 77 20 6c 74 28 ":return new lt( 00003ce0: 65 2e 6e 61 6d 65 29 7d 6c 65 74 20 74 3d 65 2e e.name)}let t=e. 00003cf0: 74 79 70 65 2e 6d 61 74 63 68 28 71 74 29 3b 69 type.match(qt);i 00003d00: 66 28 74 29 7b 6c 65 74 20 6e 3d 70 61 72 73 65 f(t){let n=parse 00003d10: 49 6e 74 28 74 5b 32 5d 7c 7c 22 32 35 36 22 29 Int(t[2]||"256") 00003d20: 3b 72 65 74 75 72 6e 28 30 3d 3d 3d 6e 7c 7c 6e ;return(0===n||n 00003d30: 3e 32 35 36 7c 7c 6e 25 38 21 3d 30 29 26 26 48 >256||n%8!=0)&&H 00003d40: 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 t.throwArgumentE 00003d50: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 22 2b rror("invalid "+ 00003d60: 74 5b 31 5d 2b 22 20 62 69 74 20 6c 65 6e 67 74 t[1]+" bit lengt 00003d70: 68 22 2c 22 70 61 72 61 6d 22 2c 65 29 2c 6e 65 h","param",e),ne 00003d80: 77 20 62 74 28 6e 2f 38 2c 22 69 6e 74 22 3d 3d w bt(n/8,"int"== 00003d90: 3d 74 5b 31 5d 2c 65 2e 6e 61 6d 65 29 7d 69 66 =t[1],e.name)}if 00003da0: 28 74 3d 65 2e 74 79 70 65 2e 6d 61 74 63 68 28 (t=e.type.match( 00003db0: 56 74 29 2c 74 29 7b 6c 65 74 20 6e 3d 70 61 72 Vt),t){let n=par 00003dc0: 73 65 49 6e 74 28 74 5b 31 5d 29 3b 72 65 74 75 seInt(t[1]);retu 00003dd0: 72 6e 28 30 3d 3d 3d 6e 7c 7c 6e 3e 33 32 29 26 rn(0===n||n>32)& 00003de0: 26 48 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &Ht.throwArgumen 00003df0: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 00003e00: 62 79 74 65 73 20 6c 65 6e 67 74 68 22 2c 22 70 bytes length","p 00003e10: 61 72 61 6d 22 2c 65 29 2c 6e 65 77 20 73 74 28 aram",e),new st( 00003e20: 6e 2c 65 2e 6e 61 6d 65 29 7d 72 65 74 75 72 6e n,e.name)}return 00003e30: 20 48 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e Ht.throwArgumen 00003e40: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 00003e50: 74 79 70 65 22 2c 22 74 79 70 65 22 2c 65 2e 74 type","type",e.t 00003e60: 79 70 65 29 7d 5f 67 65 74 57 6f 72 64 53 69 7a ype)}_getWordSiz 00003e70: 65 28 29 7b 72 65 74 75 72 6e 20 33 32 7d 5f 67 e(){return 32}_g 00003e80: 65 74 52 65 61 64 65 72 28 65 2c 74 29 7b 72 65 etReader(e,t){re 00003e90: 74 75 72 6e 20 6e 65 77 20 67 65 28 65 2c 74 68 turn new ge(e,th 00003ea0: 69 73 2e 5f 67 65 74 57 6f 72 64 53 69 7a 65 28 is._getWordSize( 00003eb0: 29 2c 74 68 69 73 2e 63 6f 65 72 63 65 46 75 6e ),this.coerceFun 00003ec0: 63 2c 74 29 7d 5f 67 65 74 57 72 69 74 65 72 28 c,t)}_getWriter( 00003ed0: 29 7b 72 65 74 75 72 6e 20 6e 65 77 20 6d 65 28 ){return new me( 00003ee0: 74 68 69 73 2e 5f 67 65 74 57 6f 72 64 53 69 7a this._getWordSiz 00003ef0: 65 28 29 29 7d 67 65 74 44 65 66 61 75 6c 74 56 e())}getDefaultV 00003f00: 61 6c 75 65 28 65 29 7b 63 6f 6e 73 74 20 74 3d alue(e){const t= 00003f10: 65 2e 6d 61 70 28 28 65 3d 3e 74 68 69 73 2e 5f e.map((e=>this._ 00003f20: 67 65 74 43 6f 64 65 72 28 6b 74 2e 66 72 6f 6d getCoder(kt.from 00003f30: 28 65 29 29 29 29 3b 72 65 74 75 72 6e 20 6e 65 (e))));return ne 00003f40: 77 20 76 74 28 74 2c 22 5f 22 29 2e 64 65 66 61 w vt(t,"_").defa 00003f50: 75 6c 74 56 61 6c 75 65 28 29 7d 65 6e 63 6f 64 ultValue()}encod 00003f60: 65 28 65 2c 74 29 7b 65 2e 6c 65 6e 67 74 68 21 e(e,t){e.length! 00003f70: 3d 3d 74 2e 6c 65 6e 67 74 68 26 26 48 74 2e 74 ==t.length&&Ht.t 00003f80: 68 72 6f 77 45 72 72 6f 72 28 22 74 79 70 65 73 hrowError("types 00003f90: 2f 76 61 6c 75 65 73 20 6c 65 6e 67 74 68 20 6d /values length m 00003fa0: 69 73 6d 61 74 63 68 22 2c 79 2e 65 72 72 6f 72 ismatch",y.error 00003fb0: 73 2e 49 4e 56 41 4c 49 44 5f 41 52 47 55 4d 45 s.INVALID_ARGUME 00003fc0: 4e 54 2c 7b 63 6f 75 6e 74 3a 7b 74 79 70 65 73 NT,{count:{types 00003fd0: 3a 65 2e 6c 65 6e 67 74 68 2c 76 61 6c 75 65 73 :e.length,values 00003fe0: 3a 74 2e 6c 65 6e 67 74 68 7d 2c 76 61 6c 75 65 :t.length},value 00003ff0: 3a 7b 74 79 70 65 73 3a 65 2c 76 61 6c 75 65 73 :{types:e,values 00004000: 3a 74 7d 7d 29 3b 63 6f 6e 73 74 20 6e 3d 65 2e :t}});const n=e. 00004010: 6d 61 70 28 28 65 3d 3e 74 68 69 73 2e 5f 67 65 map((e=>this._ge 00004020: 74 43 6f 64 65 72 28 6b 74 2e 66 72 6f 6d 28 65 tCoder(kt.from(e 00004030: 29 29 29 29 2c 72 3d 6e 65 77 20 76 74 28 6e 2c )))),r=new vt(n, 00004040: 22 5f 22 29 2c 6f 3d 74 68 69 73 2e 5f 67 65 74 "_"),o=this._get 00004050: 57 72 69 74 65 72 28 29 3b 72 65 74 75 72 6e 20 Writer();return 00004060: 72 2e 65 6e 63 6f 64 65 28 6f 2c 74 29 2c 6f 2e r.encode(o,t),o. 00004070: 64 61 74 61 7d 64 65 63 6f 64 65 28 65 2c 74 2c data}decode(e,t, 00004080: 6e 29 7b 63 6f 6e 73 74 20 72 3d 65 2e 6d 61 70 n){const r=e.map 00004090: 28 28 65 3d 3e 74 68 69 73 2e 5f 67 65 74 43 6f ((e=>this._getCo 000040a0: 64 65 72 28 6b 74 2e 66 72 6f 6d 28 65 29 29 29 der(kt.from(e))) 000040b0: 29 3b 72 65 74 75 72 6e 20 6e 65 77 20 76 74 28 );return new vt( 000040c0: 72 2c 22 5f 22 29 2e 64 65 63 6f 64 65 28 74 68 r,"_").decode(th 000040d0: 69 73 2e 5f 67 65 74 52 65 61 64 65 72 28 54 28 is._getReader(T( 000040e0: 74 29 2c 6e 29 29 7d 7d 63 6f 6e 73 74 20 4b 74 t),n))}}const Kt 000040f0: 3d 6e 65 77 20 57 74 2c 59 74 3d 6e 65 77 20 79 =new Wt,Yt=new y 00004100: 28 64 65 29 3b 63 6c 61 73 73 20 58 74 20 65 78 (de);class Xt ex 00004110: 74 65 6e 64 73 20 75 65 7b 7d 63 6c 61 73 73 20 tends ue{}class 00004120: 5a 74 20 65 78 74 65 6e 64 73 20 75 65 7b 7d 63 Zt extends ue{}c 00004130: 6c 61 73 73 20 51 74 20 65 78 74 65 6e 64 73 20 lass Qt extends 00004140: 75 65 7b 7d 63 6c 61 73 73 20 4a 74 20 65 78 74 ue{}class Jt ext 00004150: 65 6e 64 73 20 75 65 7b 73 74 61 74 69 63 20 69 ends ue{static i 00004160: 73 49 6e 64 65 78 65 64 28 65 29 7b 72 65 74 75 sIndexed(e){retu 00004170: 72 6e 21 28 21 65 7c 7c 21 65 2e 5f 69 73 49 6e rn!(!e||!e._isIn 00004180: 64 65 78 65 64 29 7d 7d 63 6f 6e 73 74 20 24 74 dexed)}}const $t 00004190: 3d 7b 22 30 78 30 38 63 33 37 39 61 30 22 3a 7b ={"0x08c379a0":{ 000041a0: 73 69 67 6e 61 74 75 72 65 3a 22 45 72 72 6f 72 signature:"Error 000041b0: 28 73 74 72 69 6e 67 29 22 2c 6e 61 6d 65 3a 22 (string)",name:" 000041c0: 45 72 72 6f 72 22 2c 69 6e 70 75 74 73 3a 5b 22 Error",inputs:[" 000041d0: 73 74 72 69 6e 67 22 5d 2c 72 65 61 73 6f 6e 3a string"],reason: 000041e0: 21 30 7d 2c 22 30 78 34 65 34 38 37 62 37 31 22 !0},"0x4e487b71" 000041f0: 3a 7b 73 69 67 6e 61 74 75 72 65 3a 22 50 61 6e :{signature:"Pan 00004200: 69 63 28 75 69 6e 74 32 35 36 29 22 2c 6e 61 6d ic(uint256)",nam 00004210: 65 3a 22 50 61 6e 69 63 22 2c 69 6e 70 75 74 73 e:"Panic",inputs 00004220: 3a 5b 22 75 69 6e 74 32 35 36 22 5d 7d 7d 3b 66 :["uint256"]}};f 00004230: 75 6e 63 74 69 6f 6e 20 65 6e 28 65 2c 74 29 7b unction en(e,t){ 00004240: 63 6f 6e 73 74 20 6e 3d 6e 65 77 20 45 72 72 6f const n=new Erro 00004250: 72 28 60 64 65 66 65 72 72 65 64 20 65 72 72 6f r(`deferred erro 00004260: 72 20 64 75 72 69 6e 67 20 41 42 49 20 64 65 63 r during ABI dec 00004270: 6f 64 69 6e 67 20 74 72 69 67 67 65 72 65 64 20 oding triggered 00004280: 61 63 63 65 73 73 69 6e 67 20 24 7b 65 7d 60 29 accessing ${e}`) 00004290: 3b 72 65 74 75 72 6e 20 6e 2e 65 72 72 6f 72 3d ;return n.error= 000042a0: 74 2c 6e 7d 63 6c 61 73 73 20 74 6e 7b 63 6f 6e t,n}class tn{con 000042b0: 73 74 72 75 63 74 6f 72 28 65 29 7b 6c 65 74 20 structor(e){let 000042c0: 74 3d 5b 5d 3b 74 3d 22 73 74 72 69 6e 67 22 3d t=[];t="string"= 000042d0: 3d 74 79 70 65 6f 66 20 65 3f 4a 53 4f 4e 2e 70 =typeof e?JSON.p 000042e0: 61 72 73 65 28 65 29 3a 65 2c 74 65 28 74 68 69 arse(e):e,te(thi 000042f0: 73 2c 22 66 72 61 67 6d 65 6e 74 73 22 2c 74 2e s,"fragments",t. 00004300: 6d 61 70 28 28 65 3d 3e 4f 74 2e 66 72 6f 6d 28 map((e=>Ot.from( 00004310: 65 29 29 29 2e 66 69 6c 74 65 72 28 28 65 3d 3e e))).filter((e=> 00004320: 6e 75 6c 6c 21 3d 65 29 29 29 2c 74 65 28 74 68 null!=e))),te(th 00004330: 69 73 2c 22 5f 61 62 69 43 6f 64 65 72 22 2c 6e is,"_abiCoder",n 00004340: 65 28 6e 65 77 2e 74 61 72 67 65 74 2c 22 67 65 e(new.target,"ge 00004350: 74 41 62 69 43 6f 64 65 72 22 29 28 29 29 2c 74 tAbiCoder")()),t 00004360: 65 28 74 68 69 73 2c 22 66 75 6e 63 74 69 6f 6e e(this,"function 00004370: 73 22 2c 7b 7d 29 2c 74 65 28 74 68 69 73 2c 22 s",{}),te(this," 00004380: 65 72 72 6f 72 73 22 2c 7b 7d 29 2c 74 65 28 74 errors",{}),te(t 00004390: 68 69 73 2c 22 65 76 65 6e 74 73 22 2c 7b 7d 29 his,"events",{}) 000043a0: 2c 74 65 28 74 68 69 73 2c 22 73 74 72 75 63 74 ,te(this,"struct 000043b0: 73 22 2c 7b 7d 29 2c 74 68 69 73 2e 66 72 61 67 s",{}),this.frag 000043c0: 6d 65 6e 74 73 2e 66 6f 72 45 61 63 68 28 28 65 ments.forEach((e 000043d0: 3d 3e 7b 6c 65 74 20 74 3d 6e 75 6c 6c 3b 73 77 =>{let t=null;sw 000043e0: 69 74 63 68 28 65 2e 74 79 70 65 29 7b 63 61 73 itch(e.type){cas 000043f0: 65 22 63 6f 6e 73 74 72 75 63 74 6f 72 22 3a 72 e"constructor":r 00004400: 65 74 75 72 6e 20 74 68 69 73 2e 64 65 70 6c 6f eturn this.deplo 00004410: 79 3f 76 6f 69 64 20 59 74 2e 77 61 72 6e 28 22 y?void Yt.warn(" 00004420: 64 75 70 6c 69 63 61 74 65 20 64 65 66 69 6e 69 duplicate defini 00004430: 74 69 6f 6e 20 2d 20 63 6f 6e 73 74 72 75 63 74 tion - construct 00004440: 6f 72 22 29 3a 76 6f 69 64 20 74 65 28 74 68 69 or"):void te(thi 00004450: 73 2c 22 64 65 70 6c 6f 79 22 2c 65 29 3b 63 61 s,"deploy",e);ca 00004460: 73 65 22 66 75 6e 63 74 69 6f 6e 22 3a 74 3d 74 se"function":t=t 00004470: 68 69 73 2e 66 75 6e 63 74 69 6f 6e 73 3b 62 72 his.functions;br 00004480: 65 61 6b 3b 63 61 73 65 22 65 76 65 6e 74 22 3a eak;case"event": 00004490: 74 3d 74 68 69 73 2e 65 76 65 6e 74 73 3b 62 72 t=this.events;br 000044a0: 65 61 6b 3b 63 61 73 65 22 65 72 72 6f 72 22 3a eak;case"error": 000044b0: 74 3d 74 68 69 73 2e 65 72 72 6f 72 73 3b 62 72 t=this.errors;br 000044c0: 65 61 6b 3b 64 65 66 61 75 6c 74 3a 72 65 74 75 eak;default:retu 000044d0: 72 6e 7d 6c 65 74 20 6e 3d 65 2e 66 6f 72 6d 61 rn}let n=e.forma 000044e0: 74 28 29 3b 74 5b 6e 5d 3f 59 74 2e 77 61 72 6e t();t[n]?Yt.warn 000044f0: 28 22 64 75 70 6c 69 63 61 74 65 20 64 65 66 69 ("duplicate defi 00004500: 6e 69 74 69 6f 6e 20 2d 20 22 2b 6e 29 3a 74 5b nition - "+n):t[ 00004510: 6e 5d 3d 65 7d 29 29 2c 74 68 69 73 2e 64 65 70 n]=e})),this.dep 00004520: 6c 6f 79 7c 7c 74 65 28 74 68 69 73 2c 22 64 65 loy||te(this,"de 00004530: 70 6c 6f 79 22 2c 44 74 2e 66 72 6f 6d 28 7b 70 ploy",Dt.from({p 00004540: 61 79 61 62 6c 65 3a 21 31 2c 74 79 70 65 3a 22 ayable:!1,type:" 00004550: 63 6f 6e 73 74 72 75 63 74 6f 72 22 7d 29 29 2c constructor"})), 00004560: 74 65 28 74 68 69 73 2c 22 5f 69 73 49 6e 74 65 te(this,"_isInte 00004570: 72 66 61 63 65 22 2c 21 30 29 7d 66 6f 72 6d 61 rface",!0)}forma 00004580: 74 28 65 29 7b 65 7c 7c 28 65 3d 43 74 2e 66 75 t(e){e||(e=Ct.fu 00004590: 6c 6c 29 2c 65 3d 3d 3d 43 74 2e 73 69 67 68 61 ll),e===Ct.sigha 000045a0: 73 68 26 26 59 74 2e 74 68 72 6f 77 41 72 67 75 sh&&Yt.throwArgu 000045b0: 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 74 65 72 mentError("inter 000045c0: 66 61 63 65 20 64 6f 65 73 20 6e 6f 74 20 73 75 face does not su 000045d0: 70 70 6f 72 74 20 66 6f 72 6d 61 74 74 69 6e 67 pport formatting 000045e0: 20 73 69 67 68 61 73 68 22 2c 22 66 6f 72 6d 61 sighash","forma 000045f0: 74 22 2c 65 29 3b 63 6f 6e 73 74 20 74 3d 74 68 t",e);const t=th 00004600: 69 73 2e 66 72 61 67 6d 65 6e 74 73 2e 6d 61 70 is.fragments.map 00004610: 28 28 74 3d 3e 74 2e 66 6f 72 6d 61 74 28 65 29 ((t=>t.format(e) 00004620: 29 29 3b 72 65 74 75 72 6e 20 65 3d 3d 3d 43 74 ));return e===Ct 00004630: 2e 6a 73 6f 6e 3f 4a 53 4f 4e 2e 73 74 72 69 6e .json?JSON.strin 00004640: 67 69 66 79 28 74 2e 6d 61 70 28 28 65 3d 3e 4a gify(t.map((e=>J 00004650: 53 4f 4e 2e 70 61 72 73 65 28 65 29 29 29 29 3a SON.parse(e)))): 00004660: 74 7d 73 74 61 74 69 63 20 67 65 74 41 62 69 43 t}static getAbiC 00004670: 6f 64 65 72 28 29 7b 72 65 74 75 72 6e 20 4b 74 oder(){return Kt 00004680: 7d 73 74 61 74 69 63 20 67 65 74 41 64 64 72 65 }static getAddre 00004690: 73 73 28 65 29 7b 72 65 74 75 72 6e 20 4d 65 28 ss(e){return Me( 000046a0: 65 29 7d 73 74 61 74 69 63 20 67 65 74 53 69 67 e)}static getSig 000046b0: 68 61 73 68 28 65 29 7b 72 65 74 75 72 6e 20 50 hash(e){return P 000046c0: 28 51 65 28 65 2e 66 6f 72 6d 61 74 28 29 29 2c (Qe(e.format()), 000046d0: 30 2c 34 29 7d 73 74 61 74 69 63 20 67 65 74 45 0,4)}static getE 000046e0: 76 65 6e 74 54 6f 70 69 63 28 65 29 7b 72 65 74 ventTopic(e){ret 000046f0: 75 72 6e 20 51 65 28 65 2e 66 6f 72 6d 61 74 28 urn Qe(e.format( 00004700: 29 29 7d 67 65 74 46 75 6e 63 74 69 6f 6e 28 65 ))}getFunction(e 00004710: 29 7b 69 66 28 49 28 65 29 29 7b 66 6f 72 28 63 ){if(I(e)){for(c 00004720: 6f 6e 73 74 20 74 20 69 6e 20 74 68 69 73 2e 66 onst t in this.f 00004730: 75 6e 63 74 69 6f 6e 73 29 69 66 28 65 3d 3d 3d unctions)if(e=== 00004740: 74 68 69 73 2e 67 65 74 53 69 67 68 61 73 68 28 this.getSighash( 00004750: 74 29 29 72 65 74 75 72 6e 20 74 68 69 73 2e 66 t))return this.f 00004760: 75 6e 63 74 69 6f 6e 73 5b 74 5d 3b 59 74 2e 74 unctions[t];Yt.t 00004770: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00004780: 72 28 22 6e 6f 20 6d 61 74 63 68 69 6e 67 20 66 r("no matching f 00004790: 75 6e 63 74 69 6f 6e 22 2c 22 73 69 67 68 61 73 unction","sighas 000047a0: 68 22 2c 65 29 7d 69 66 28 2d 31 3d 3d 3d 65 2e h",e)}if(-1===e. 000047b0: 69 6e 64 65 78 4f 66 28 22 28 22 29 29 7b 63 6f indexOf("(")){co 000047c0: 6e 73 74 20 74 3d 65 2e 74 72 69 6d 28 29 2c 6e nst t=e.trim(),n 000047d0: 3d 4f 62 6a 65 63 74 2e 6b 65 79 73 28 74 68 69 =Object.keys(thi 000047e0: 73 2e 66 75 6e 63 74 69 6f 6e 73 29 2e 66 69 6c s.functions).fil 000047f0: 74 65 72 28 28 65 3d 3e 65 2e 73 70 6c 69 74 28 ter((e=>e.split( 00004800: 22 28 22 29 5b 30 5d 3d 3d 3d 74 29 29 3b 72 65 "(")[0]===t));re 00004810: 74 75 72 6e 20 30 3d 3d 3d 6e 2e 6c 65 6e 67 74 turn 0===n.lengt 00004820: 68 3f 59 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 h?Yt.throwArgume 00004830: 6e 74 45 72 72 6f 72 28 22 6e 6f 20 6d 61 74 63 ntError("no matc 00004840: 68 69 6e 67 20 66 75 6e 63 74 69 6f 6e 22 2c 22 hing function"," 00004850: 6e 61 6d 65 22 2c 74 29 3a 6e 2e 6c 65 6e 67 74 name",t):n.lengt 00004860: 68 3e 31 26 26 59 74 2e 74 68 72 6f 77 41 72 67 h>1&&Yt.throwArg 00004870: 75 6d 65 6e 74 45 72 72 6f 72 28 22 6d 75 6c 74 umentError("mult 00004880: 69 70 6c 65 20 6d 61 74 63 68 69 6e 67 20 66 75 iple matching fu 00004890: 6e 63 74 69 6f 6e 73 22 2c 22 6e 61 6d 65 22 2c nctions","name", 000048a0: 74 29 2c 74 68 69 73 2e 66 75 6e 63 74 69 6f 6e t),this.function 000048b0: 73 5b 6e 5b 30 5d 5d 7d 63 6f 6e 73 74 20 74 3d s[n[0]]}const t= 000048c0: 74 68 69 73 2e 66 75 6e 63 74 69 6f 6e 73 5b 4c this.functions[L 000048d0: 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 29 2e t.fromString(e). 000048e0: 66 6f 72 6d 61 74 28 29 5d 3b 72 65 74 75 72 6e format()];return 000048f0: 20 74 7c 7c 59 74 2e 74 68 72 6f 77 41 72 67 75 t||Yt.throwArgu 00004900: 6d 65 6e 74 45 72 72 6f 72 28 22 6e 6f 20 6d 61 mentError("no ma 00004910: 74 63 68 69 6e 67 20 66 75 6e 63 74 69 6f 6e 22 tching function" 00004920: 2c 22 73 69 67 6e 61 74 75 72 65 22 2c 65 29 2c ,"signature",e), 00004930: 74 7d 67 65 74 45 76 65 6e 74 28 65 29 7b 69 66 t}getEvent(e){if 00004940: 28 49 28 65 29 29 7b 63 6f 6e 73 74 20 74 3d 65 (I(e)){const t=e 00004950: 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 3b 66 .toLowerCase();f 00004960: 6f 72 28 63 6f 6e 73 74 20 65 20 69 6e 20 74 68 or(const e in th 00004970: 69 73 2e 65 76 65 6e 74 73 29 69 66 28 74 3d 3d is.events)if(t== 00004980: 3d 74 68 69 73 2e 67 65 74 45 76 65 6e 74 54 6f =this.getEventTo 00004990: 70 69 63 28 65 29 29 72 65 74 75 72 6e 20 74 68 pic(e))return th 000049a0: 69 73 2e 65 76 65 6e 74 73 5b 65 5d 3b 59 74 2e is.events[e];Yt. 000049b0: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 000049c0: 6f 72 28 22 6e 6f 20 6d 61 74 63 68 69 6e 67 20 or("no matching 000049d0: 65 76 65 6e 74 22 2c 22 74 6f 70 69 63 68 61 73 event","topichas 000049e0: 68 22 2c 74 29 7d 69 66 28 2d 31 3d 3d 3d 65 2e h",t)}if(-1===e. 000049f0: 69 6e 64 65 78 4f 66 28 22 28 22 29 29 7b 63 6f indexOf("(")){co 00004a00: 6e 73 74 20 74 3d 65 2e 74 72 69 6d 28 29 2c 6e nst t=e.trim(),n 00004a10: 3d 4f 62 6a 65 63 74 2e 6b 65 79 73 28 74 68 69 =Object.keys(thi 00004a20: 73 2e 65 76 65 6e 74 73 29 2e 66 69 6c 74 65 72 s.events).filter 00004a30: 28 28 65 3d 3e 65 2e 73 70 6c 69 74 28 22 28 22 ((e=>e.split("(" 00004a40: 29 5b 30 5d 3d 3d 3d 74 29 29 3b 72 65 74 75 72 )[0]===t));retur 00004a50: 6e 20 30 3d 3d 3d 6e 2e 6c 65 6e 67 74 68 3f 59 n 0===n.length?Y 00004a60: 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 t.throwArgumentE 00004a70: 72 72 6f 72 28 22 6e 6f 20 6d 61 74 63 68 69 6e rror("no matchin 00004a80: 67 20 65 76 65 6e 74 22 2c 22 6e 61 6d 65 22 2c g event","name", 00004a90: 74 29 3a 6e 2e 6c 65 6e 67 74 68 3e 31 26 26 59 t):n.length>1&&Y 00004aa0: 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 t.throwArgumentE 00004ab0: 72 72 6f 72 28 22 6d 75 6c 74 69 70 6c 65 20 6d rror("multiple m 00004ac0: 61 74 63 68 69 6e 67 20 65 76 65 6e 74 73 22 2c atching events", 00004ad0: 22 6e 61 6d 65 22 2c 74 29 2c 74 68 69 73 2e 65 "name",t),this.e 00004ae0: 76 65 6e 74 73 5b 6e 5b 30 5d 5d 7d 63 6f 6e 73 vents[n[0]]}cons 00004af0: 74 20 74 3d 74 68 69 73 2e 65 76 65 6e 74 73 5b t t=this.events[ 00004b00: 52 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 29 Rt.fromString(e) 00004b10: 2e 66 6f 72 6d 61 74 28 29 5d 3b 72 65 74 75 72 .format()];retur 00004b20: 6e 20 74 7c 7c 59 74 2e 74 68 72 6f 77 41 72 67 n t||Yt.throwArg 00004b30: 75 6d 65 6e 74 45 72 72 6f 72 28 22 6e 6f 20 6d umentError("no m 00004b40: 61 74 63 68 69 6e 67 20 65 76 65 6e 74 22 2c 22 atching event"," 00004b50: 73 69 67 6e 61 74 75 72 65 22 2c 65 29 2c 74 7d signature",e),t} 00004b60: 67 65 74 45 72 72 6f 72 28 65 29 7b 69 66 28 49 getError(e){if(I 00004b70: 28 65 29 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 28 (e)){const t=ne( 00004b80: 74 68 69 73 2e 63 6f 6e 73 74 72 75 63 74 6f 72 this.constructor 00004b90: 2c 22 67 65 74 53 69 67 68 61 73 68 22 29 3b 66 ,"getSighash");f 00004ba0: 6f 72 28 63 6f 6e 73 74 20 6e 20 69 6e 20 74 68 or(const n in th 00004bb0: 69 73 2e 65 72 72 6f 72 73 29 7b 69 66 28 65 3d is.errors){if(e= 00004bc0: 3d 3d 74 28 74 68 69 73 2e 65 72 72 6f 72 73 5b ==t(this.errors[ 00004bd0: 6e 5d 29 29 72 65 74 75 72 6e 20 74 68 69 73 2e n]))return this. 00004be0: 65 72 72 6f 72 73 5b 6e 5d 7d 59 74 2e 74 68 72 errors[n]}Yt.thr 00004bf0: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 00004c00: 22 6e 6f 20 6d 61 74 63 68 69 6e 67 20 65 72 72 "no matching err 00004c10: 6f 72 22 2c 22 73 69 67 68 61 73 68 22 2c 65 29 or","sighash",e) 00004c20: 7d 69 66 28 2d 31 3d 3d 3d 65 2e 69 6e 64 65 78 }if(-1===e.index 00004c30: 4f 66 28 22 28 22 29 29 7b 63 6f 6e 73 74 20 74 Of("(")){const t 00004c40: 3d 65 2e 74 72 69 6d 28 29 2c 6e 3d 4f 62 6a 65 =e.trim(),n=Obje 00004c50: 63 74 2e 6b 65 79 73 28 74 68 69 73 2e 65 72 72 ct.keys(this.err 00004c60: 6f 72 73 29 2e 66 69 6c 74 65 72 28 28 65 3d 3e ors).filter((e=> 00004c70: 65 2e 73 70 6c 69 74 28 22 28 22 29 5b 30 5d 3d e.split("(")[0]= 00004c80: 3d 3d 74 29 29 3b 72 65 74 75 72 6e 20 30 3d 3d ==t));return 0== 00004c90: 3d 6e 2e 6c 65 6e 67 74 68 3f 59 74 2e 74 68 72 =n.length?Yt.thr 00004ca0: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 00004cb0: 22 6e 6f 20 6d 61 74 63 68 69 6e 67 20 65 72 72 "no matching err 00004cc0: 6f 72 22 2c 22 6e 61 6d 65 22 2c 74 29 3a 6e 2e or","name",t):n. 00004cd0: 6c 65 6e 67 74 68 3e 31 26 26 59 74 2e 74 68 72 length>1&&Yt.thr 00004ce0: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 00004cf0: 22 6d 75 6c 74 69 70 6c 65 20 6d 61 74 63 68 69 "multiple matchi 00004d00: 6e 67 20 65 72 72 6f 72 73 22 2c 22 6e 61 6d 65 ng errors","name 00004d10: 22 2c 74 29 2c 74 68 69 73 2e 65 72 72 6f 72 73 ",t),this.errors 00004d20: 5b 6e 5b 30 5d 5d 7d 63 6f 6e 73 74 20 74 3d 74 [n[0]]}const t=t 00004d30: 68 69 73 2e 65 72 72 6f 72 73 5b 4c 74 2e 66 72 his.errors[Lt.fr 00004d40: 6f 6d 53 74 72 69 6e 67 28 65 29 2e 66 6f 72 6d omString(e).form 00004d50: 61 74 28 29 5d 3b 72 65 74 75 72 6e 20 74 7c 7c at()];return t|| 00004d60: 59 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Yt.throwArgument 00004d70: 45 72 72 6f 72 28 22 6e 6f 20 6d 61 74 63 68 69 Error("no matchi 00004d80: 6e 67 20 65 72 72 6f 72 22 2c 22 73 69 67 6e 61 ng error","signa 00004d90: 74 75 72 65 22 2c 65 29 2c 74 7d 67 65 74 53 69 ture",e),t}getSi 00004da0: 67 68 61 73 68 28 65 29 7b 69 66 28 22 73 74 72 ghash(e){if("str 00004db0: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 29 74 ing"==typeof e)t 00004dc0: 72 79 7b 65 3d 74 68 69 73 2e 67 65 74 46 75 6e ry{e=this.getFun 00004dd0: 63 74 69 6f 6e 28 65 29 7d 63 61 74 63 68 28 74 ction(e)}catch(t 00004de0: 29 7b 74 72 79 7b 65 3d 74 68 69 73 2e 67 65 74 ){try{e=this.get 00004df0: 45 72 72 6f 72 28 65 29 7d 63 61 74 63 68 28 65 Error(e)}catch(e 00004e00: 29 7b 74 68 72 6f 77 20 74 7d 7d 72 65 74 75 72 ){throw t}}retur 00004e10: 6e 20 6e 65 28 74 68 69 73 2e 63 6f 6e 73 74 72 n ne(this.constr 00004e20: 75 63 74 6f 72 2c 22 67 65 74 53 69 67 68 61 73 uctor,"getSighas 00004e30: 68 22 29 28 65 29 7d 67 65 74 45 76 65 6e 74 54 h")(e)}getEventT 00004e40: 6f 70 69 63 28 65 29 7b 72 65 74 75 72 6e 22 73 opic(e){return"s 00004e50: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 00004e60: 26 26 28 65 3d 74 68 69 73 2e 67 65 74 45 76 65 &&(e=this.getEve 00004e70: 6e 74 28 65 29 29 2c 6e 65 28 74 68 69 73 2e 63 nt(e)),ne(this.c 00004e80: 6f 6e 73 74 72 75 63 74 6f 72 2c 22 67 65 74 45 onstructor,"getE 00004e90: 76 65 6e 74 54 6f 70 69 63 22 29 28 65 29 7d 5f ventTopic")(e)}_ 00004ea0: 64 65 63 6f 64 65 50 61 72 61 6d 73 28 65 2c 74 decodeParams(e,t 00004eb0: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 61 ){return this._a 00004ec0: 62 69 43 6f 64 65 72 2e 64 65 63 6f 64 65 28 65 biCoder.decode(e 00004ed0: 2c 74 29 7d 5f 65 6e 63 6f 64 65 50 61 72 61 6d ,t)}_encodeParam 00004ee0: 73 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 74 68 s(e,t){return th 00004ef0: 69 73 2e 5f 61 62 69 43 6f 64 65 72 2e 65 6e 63 is._abiCoder.enc 00004f00: 6f 64 65 28 65 2c 74 29 7d 65 6e 63 6f 64 65 44 ode(e,t)}encodeD 00004f10: 65 70 6c 6f 79 28 65 29 7b 72 65 74 75 72 6e 20 eploy(e){return 00004f20: 74 68 69 73 2e 5f 65 6e 63 6f 64 65 50 61 72 61 this._encodePara 00004f30: 6d 73 28 74 68 69 73 2e 64 65 70 6c 6f 79 2e 69 ms(this.deploy.i 00004f40: 6e 70 75 74 73 2c 65 7c 7c 5b 5d 29 7d 64 65 63 nputs,e||[])}dec 00004f50: 6f 64 65 45 72 72 6f 72 52 65 73 75 6c 74 28 65 odeErrorResult(e 00004f60: 2c 74 29 7b 22 73 74 72 69 6e 67 22 3d 3d 74 79 ,t){"string"==ty 00004f70: 70 65 6f 66 20 65 26 26 28 65 3d 74 68 69 73 2e peof e&&(e=this. 00004f80: 67 65 74 45 72 72 6f 72 28 65 29 29 3b 63 6f 6e getError(e));con 00004f90: 73 74 20 6e 3d 54 28 74 29 3b 72 65 74 75 72 6e st n=T(t);return 00004fa0: 20 52 28 6e 2e 73 6c 69 63 65 28 30 2c 34 29 29 R(n.slice(0,4)) 00004fb0: 21 3d 3d 74 68 69 73 2e 67 65 74 53 69 67 68 61 !==this.getSigha 00004fc0: 73 68 28 65 29 26 26 59 74 2e 74 68 72 6f 77 41 sh(e)&&Yt.throwA 00004fd0: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 60 64 61 rgumentError(`da 00004fe0: 74 61 20 73 69 67 6e 61 74 75 72 65 20 64 6f 65 ta signature doe 00004ff0: 73 20 6e 6f 74 20 6d 61 74 63 68 20 65 72 72 6f s not match erro 00005000: 72 20 24 7b 65 2e 6e 61 6d 65 7d 2e 60 2c 22 64 r ${e.name}.`,"d 00005010: 61 74 61 22 2c 52 28 6e 29 29 2c 74 68 69 73 2e ata",R(n)),this. 00005020: 5f 64 65 63 6f 64 65 50 61 72 61 6d 73 28 65 2e _decodeParams(e. 00005030: 69 6e 70 75 74 73 2c 6e 2e 73 6c 69 63 65 28 34 inputs,n.slice(4 00005040: 29 29 7d 65 6e 63 6f 64 65 45 72 72 6f 72 52 65 ))}encodeErrorRe 00005050: 73 75 6c 74 28 65 2c 74 29 7b 72 65 74 75 72 6e sult(e,t){return 00005060: 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 "string"==typeof 00005070: 20 65 26 26 28 65 3d 74 68 69 73 2e 67 65 74 45 e&&(e=this.getE 00005080: 72 72 6f 72 28 65 29 29 2c 52 28 43 28 5b 74 68 rror(e)),R(C([th 00005090: 69 73 2e 67 65 74 53 69 67 68 61 73 68 28 65 29 is.getSighash(e) 000050a0: 2c 74 68 69 73 2e 5f 65 6e 63 6f 64 65 50 61 72 ,this._encodePar 000050b0: 61 6d 73 28 65 2e 69 6e 70 75 74 73 2c 74 7c 7c ams(e.inputs,t|| 000050c0: 5b 5d 29 5d 29 29 7d 64 65 63 6f 64 65 46 75 6e [])]))}decodeFun 000050d0: 63 74 69 6f 6e 44 61 74 61 28 65 2c 74 29 7b 22 ctionData(e,t){" 000050e0: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 000050f0: 65 26 26 28 65 3d 74 68 69 73 2e 67 65 74 46 75 e&&(e=this.getFu 00005100: 6e 63 74 69 6f 6e 28 65 29 29 3b 63 6f 6e 73 74 nction(e));const 00005110: 20 6e 3d 54 28 74 29 3b 72 65 74 75 72 6e 20 52 n=T(t);return R 00005120: 28 6e 2e 73 6c 69 63 65 28 30 2c 34 29 29 21 3d (n.slice(0,4))!= 00005130: 3d 74 68 69 73 2e 67 65 74 53 69 67 68 61 73 68 =this.getSighash 00005140: 28 65 29 26 26 59 74 2e 74 68 72 6f 77 41 72 67 (e)&&Yt.throwArg 00005150: 75 6d 65 6e 74 45 72 72 6f 72 28 60 64 61 74 61 umentError(`data 00005160: 20 73 69 67 6e 61 74 75 72 65 20 64 6f 65 73 20 signature does 00005170: 6e 6f 74 20 6d 61 74 63 68 20 66 75 6e 63 74 69 not match functi 00005180: 6f 6e 20 24 7b 65 2e 6e 61 6d 65 7d 2e 60 2c 22 on ${e.name}.`," 00005190: 64 61 74 61 22 2c 52 28 6e 29 29 2c 74 68 69 73 data",R(n)),this 000051a0: 2e 5f 64 65 63 6f 64 65 50 61 72 61 6d 73 28 65 ._decodeParams(e 000051b0: 2e 69 6e 70 75 74 73 2c 6e 2e 73 6c 69 63 65 28 .inputs,n.slice( 000051c0: 34 29 29 7d 65 6e 63 6f 64 65 46 75 6e 63 74 69 4))}encodeFuncti 000051d0: 6f 6e 44 61 74 61 28 65 2c 74 29 7b 72 65 74 75 onData(e,t){retu 000051e0: 72 6e 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 rn"string"==type 000051f0: 6f 66 20 65 26 26 28 65 3d 74 68 69 73 2e 67 65 of e&&(e=this.ge 00005200: 74 46 75 6e 63 74 69 6f 6e 28 65 29 29 2c 52 28 tFunction(e)),R( 00005210: 43 28 5b 74 68 69 73 2e 67 65 74 53 69 67 68 61 C([this.getSigha 00005220: 73 68 28 65 29 2c 74 68 69 73 2e 5f 65 6e 63 6f sh(e),this._enco 00005230: 64 65 50 61 72 61 6d 73 28 65 2e 69 6e 70 75 74 deParams(e.input 00005240: 73 2c 74 7c 7c 5b 5d 29 5d 29 29 7d 64 65 63 6f s,t||[])]))}deco 00005250: 64 65 46 75 6e 63 74 69 6f 6e 52 65 73 75 6c 74 deFunctionResult 00005260: 28 65 2c 74 29 7b 22 73 74 72 69 6e 67 22 3d 3d (e,t){"string"== 00005270: 74 79 70 65 6f 66 20 65 26 26 28 65 3d 74 68 69 typeof e&&(e=thi 00005280: 73 2e 67 65 74 46 75 6e 63 74 69 6f 6e 28 65 29 s.getFunction(e) 00005290: 29 3b 6c 65 74 20 6e 3d 54 28 74 29 2c 72 3d 6e );let n=T(t),r=n 000052a0: 75 6c 6c 2c 6f 3d 22 22 2c 69 3d 6e 75 6c 6c 2c ull,o="",i=null, 000052b0: 61 3d 6e 75 6c 6c 2c 73 3d 6e 75 6c 6c 3b 73 77 a=null,s=null;sw 000052c0: 69 74 63 68 28 6e 2e 6c 65 6e 67 74 68 25 74 68 itch(n.length%th 000052d0: 69 73 2e 5f 61 62 69 43 6f 64 65 72 2e 5f 67 65 is._abiCoder._ge 000052e0: 74 57 6f 72 64 53 69 7a 65 28 29 29 7b 63 61 73 tWordSize()){cas 000052f0: 65 20 30 3a 74 72 79 7b 72 65 74 75 72 6e 20 74 e 0:try{return t 00005300: 68 69 73 2e 5f 61 62 69 43 6f 64 65 72 2e 64 65 his._abiCoder.de 00005310: 63 6f 64 65 28 65 2e 6f 75 74 70 75 74 73 2c 6e code(e.outputs,n 00005320: 29 7d 63 61 74 63 68 28 65 29 7b 7d 62 72 65 61 )}catch(e){}brea 00005330: 6b 3b 63 61 73 65 20 34 3a 7b 63 6f 6e 73 74 20 k;case 4:{const 00005340: 65 3d 52 28 6e 2e 73 6c 69 63 65 28 30 2c 34 29 e=R(n.slice(0,4) 00005350: 29 2c 74 3d 24 74 5b 65 5d 3b 69 66 28 74 29 69 ),t=$t[e];if(t)i 00005360: 3d 74 68 69 73 2e 5f 61 62 69 43 6f 64 65 72 2e =this._abiCoder. 00005370: 64 65 63 6f 64 65 28 74 2e 69 6e 70 75 74 73 2c decode(t.inputs, 00005380: 6e 2e 73 6c 69 63 65 28 34 29 29 2c 61 3d 74 2e n.slice(4)),a=t. 00005390: 6e 61 6d 65 2c 73 3d 74 2e 73 69 67 6e 61 74 75 name,s=t.signatu 000053a0: 72 65 2c 74 2e 72 65 61 73 6f 6e 26 26 28 72 3d re,t.reason&&(r= 000053b0: 69 5b 30 5d 29 2c 22 45 72 72 6f 72 22 3d 3d 3d i[0]),"Error"=== 000053c0: 61 3f 6f 3d 60 3b 20 56 4d 20 45 78 63 65 70 74 a?o=`; VM Except 000053d0: 69 6f 6e 20 77 68 69 6c 65 20 70 72 6f 63 65 73 ion while proces 000053e0: 73 69 6e 67 20 74 72 61 6e 73 61 63 74 69 6f 6e sing transaction 000053f0: 3a 20 72 65 76 65 72 74 65 64 20 77 69 74 68 20 : reverted with 00005400: 72 65 61 73 6f 6e 20 73 74 72 69 6e 67 20 24 7b reason string ${ 00005410: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 69 JSON.stringify(i 00005420: 5b 30 5d 29 7d 60 3a 22 50 61 6e 69 63 22 3d 3d [0])}`:"Panic"== 00005430: 3d 61 26 26 28 6f 3d 60 3b 20 56 4d 20 45 78 63 =a&&(o=`; VM Exc 00005440: 65 70 74 69 6f 6e 20 77 68 69 6c 65 20 70 72 6f eption while pro 00005450: 63 65 73 73 69 6e 67 20 74 72 61 6e 73 61 63 74 cessing transact 00005460: 69 6f 6e 3a 20 72 65 76 65 72 74 65 64 20 77 69 ion: reverted wi 00005470: 74 68 20 70 61 6e 69 63 20 63 6f 64 65 20 24 7b th panic code ${ 00005480: 69 5b 30 5d 7d 60 29 3b 65 6c 73 65 20 74 72 79 i[0]}`);else try 00005490: 7b 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 67 65 {const t=this.ge 000054a0: 74 45 72 72 6f 72 28 65 29 3b 69 3d 74 68 69 73 tError(e);i=this 000054b0: 2e 5f 61 62 69 43 6f 64 65 72 2e 64 65 63 6f 64 ._abiCoder.decod 000054c0: 65 28 74 2e 69 6e 70 75 74 73 2c 6e 2e 73 6c 69 e(t.inputs,n.sli 000054d0: 63 65 28 34 29 29 2c 61 3d 74 2e 6e 61 6d 65 2c ce(4)),a=t.name, 000054e0: 73 3d 74 2e 66 6f 72 6d 61 74 28 29 7d 63 61 74 s=t.format()}cat 000054f0: 63 68 28 65 29 7b 7d 62 72 65 61 6b 7d 7d 72 65 ch(e){}break}}re 00005500: 74 75 72 6e 20 59 74 2e 74 68 72 6f 77 45 72 72 turn Yt.throwErr 00005510: 6f 72 28 22 63 61 6c 6c 20 72 65 76 65 72 74 20 or("call revert 00005520: 65 78 63 65 70 74 69 6f 6e 22 2b 6f 2c 79 2e 65 exception"+o,y.e 00005530: 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 rrors.CALL_EXCEP 00005540: 54 49 4f 4e 2c 7b 6d 65 74 68 6f 64 3a 65 2e 66 TION,{method:e.f 00005550: 6f 72 6d 61 74 28 29 2c 64 61 74 61 3a 52 28 74 ormat(),data:R(t 00005560: 29 2c 65 72 72 6f 72 41 72 67 73 3a 69 2c 65 72 ),errorArgs:i,er 00005570: 72 6f 72 4e 61 6d 65 3a 61 2c 65 72 72 6f 72 53 rorName:a,errorS 00005580: 69 67 6e 61 74 75 72 65 3a 73 2c 72 65 61 73 6f ignature:s,reaso 00005590: 6e 3a 72 7d 29 7d 65 6e 63 6f 64 65 46 75 6e 63 n:r})}encodeFunc 000055a0: 74 69 6f 6e 52 65 73 75 6c 74 28 65 2c 74 29 7b tionResult(e,t){ 000055b0: 72 65 74 75 72 6e 22 73 74 72 69 6e 67 22 3d 3d return"string"== 000055c0: 74 79 70 65 6f 66 20 65 26 26 28 65 3d 74 68 69 typeof e&&(e=thi 000055d0: 73 2e 67 65 74 46 75 6e 63 74 69 6f 6e 28 65 29 s.getFunction(e) 000055e0: 29 2c 52 28 74 68 69 73 2e 5f 61 62 69 43 6f 64 ),R(this._abiCod 000055f0: 65 72 2e 65 6e 63 6f 64 65 28 65 2e 6f 75 74 70 er.encode(e.outp 00005600: 75 74 73 2c 74 7c 7c 5b 5d 29 29 7d 65 6e 63 6f uts,t||[]))}enco 00005610: 64 65 46 69 6c 74 65 72 54 6f 70 69 63 73 28 65 deFilterTopics(e 00005620: 2c 74 29 7b 22 73 74 72 69 6e 67 22 3d 3d 74 79 ,t){"string"==ty 00005630: 70 65 6f 66 20 65 26 26 28 65 3d 74 68 69 73 2e peof e&&(e=this. 00005640: 67 65 74 45 76 65 6e 74 28 65 29 29 2c 74 2e 6c getEvent(e)),t.l 00005650: 65 6e 67 74 68 3e 65 2e 69 6e 70 75 74 73 2e 6c ength>e.inputs.l 00005660: 65 6e 67 74 68 26 26 59 74 2e 74 68 72 6f 77 45 ength&&Yt.throwE 00005670: 72 72 6f 72 28 22 74 6f 6f 20 6d 61 6e 79 20 61 rror("too many a 00005680: 72 67 75 6d 65 6e 74 73 20 66 6f 72 20 22 2b 65 rguments for "+e 00005690: 2e 66 6f 72 6d 61 74 28 29 2c 79 2e 65 72 72 6f .format(),y.erro 000056a0: 72 73 2e 55 4e 45 58 50 45 43 54 45 44 5f 41 52 rs.UNEXPECTED_AR 000056b0: 47 55 4d 45 4e 54 2c 7b 61 72 67 75 6d 65 6e 74 GUMENT,{argument 000056c0: 3a 22 76 61 6c 75 65 73 22 2c 76 61 6c 75 65 3a :"values",value: 000056d0: 74 7d 29 3b 6c 65 74 20 6e 3d 5b 5d 3b 65 2e 61 t});let n=[];e.a 000056e0: 6e 6f 6e 79 6d 6f 75 73 7c 7c 6e 2e 70 75 73 68 nonymous||n.push 000056f0: 28 74 68 69 73 2e 67 65 74 45 76 65 6e 74 54 6f (this.getEventTo 00005700: 70 69 63 28 65 29 29 3b 63 6f 6e 73 74 20 72 3d pic(e));const r= 00005710: 28 65 2c 74 29 3d 3e 22 73 74 72 69 6e 67 22 3d (e,t)=>"string"= 00005720: 3d 3d 65 2e 74 79 70 65 3f 51 65 28 74 29 3a 22 ==e.type?Qe(t):" 00005730: 62 79 74 65 73 22 3d 3d 3d 65 2e 74 79 70 65 3f bytes"===e.type? 00005740: 76 65 28 52 28 74 29 29 3a 28 22 62 6f 6f 6c 22 ve(R(t)):("bool" 00005750: 3d 3d 3d 65 2e 74 79 70 65 26 26 22 62 6f 6f 6c ===e.type&&"bool 00005760: 65 61 6e 22 3d 3d 74 79 70 65 6f 66 20 74 26 26 ean"==typeof t&& 00005770: 28 74 3d 74 3f 22 30 78 30 31 22 3a 22 30 78 30 (t=t?"0x01":"0x0 00005780: 30 22 29 2c 65 2e 74 79 70 65 2e 6d 61 74 63 68 0"),e.type.match 00005790: 28 2f 5e 75 3f 69 6e 74 2f 29 26 26 28 74 3d 59 (/^u?int/)&&(t=Y 000057a0: 2e 66 72 6f 6d 28 74 29 2e 74 6f 48 65 78 53 74 .from(t).toHexSt 000057b0: 72 69 6e 67 28 29 29 2c 22 61 64 64 72 65 73 73 ring()),"address 000057c0: 22 3d 3d 3d 65 2e 74 79 70 65 26 26 74 68 69 73 "===e.type&&this 000057d0: 2e 5f 61 62 69 43 6f 64 65 72 2e 65 6e 63 6f 64 ._abiCoder.encod 000057e0: 65 28 5b 22 61 64 64 72 65 73 73 22 5d 2c 5b 74 e(["address"],[t 000057f0: 5d 29 2c 46 28 52 28 74 29 2c 33 32 29 29 3b 66 ]),F(R(t),32));f 00005800: 6f 72 28 74 2e 66 6f 72 45 61 63 68 28 28 28 74 or(t.forEach(((t 00005810: 2c 6f 29 3d 3e 7b 6c 65 74 20 69 3d 65 2e 69 6e ,o)=>{let i=e.in 00005820: 70 75 74 73 5b 6f 5d 3b 69 2e 69 6e 64 65 78 65 puts[o];i.indexe 00005830: 64 3f 6e 75 6c 6c 3d 3d 74 3f 6e 2e 70 75 73 68 d?null==t?n.push 00005840: 28 6e 75 6c 6c 29 3a 22 61 72 72 61 79 22 3d 3d (null):"array"== 00005850: 3d 69 2e 62 61 73 65 54 79 70 65 7c 7c 22 74 75 =i.baseType||"tu 00005860: 70 6c 65 22 3d 3d 3d 69 2e 62 61 73 65 54 79 70 ple"===i.baseTyp 00005870: 65 3f 59 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 e?Yt.throwArgume 00005880: 6e 74 45 72 72 6f 72 28 22 66 69 6c 74 65 72 69 ntError("filteri 00005890: 6e 67 20 77 69 74 68 20 74 75 70 6c 65 73 20 6f ng with tuples o 000058a0: 72 20 61 72 72 61 79 73 20 6e 6f 74 20 73 75 70 r arrays not sup 000058b0: 70 6f 72 74 65 64 22 2c 22 63 6f 6e 74 72 61 63 ported","contrac 000058c0: 74 2e 22 2b 69 2e 6e 61 6d 65 2c 74 29 3a 41 72 t."+i.name,t):Ar 000058d0: 72 61 79 2e 69 73 41 72 72 61 79 28 74 29 3f 6e ray.isArray(t)?n 000058e0: 2e 70 75 73 68 28 74 2e 6d 61 70 28 28 65 3d 3e .push(t.map((e=> 000058f0: 72 28 69 2c 65 29 29 29 29 3a 6e 2e 70 75 73 68 r(i,e)))):n.push 00005900: 28 72 28 69 2c 74 29 29 3a 6e 75 6c 6c 21 3d 74 (r(i,t)):null!=t 00005910: 26 26 59 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 &&Yt.throwArgume 00005920: 6e 74 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 ntError("cannot 00005930: 66 69 6c 74 65 72 20 6e 6f 6e 2d 69 6e 64 65 78 filter non-index 00005940: 65 64 20 70 61 72 61 6d 65 74 65 72 73 3b 20 6d ed parameters; m 00005950: 75 73 74 20 62 65 20 6e 75 6c 6c 22 2c 22 63 6f ust be null","co 00005960: 6e 74 72 61 63 74 2e 22 2b 69 2e 6e 61 6d 65 2c ntract."+i.name, 00005970: 74 29 7d 29 29 3b 6e 2e 6c 65 6e 67 74 68 26 26 t)}));n.length&& 00005980: 6e 75 6c 6c 3d 3d 3d 6e 5b 6e 2e 6c 65 6e 67 74 null===n[n.lengt 00005990: 68 2d 31 5d 3b 29 6e 2e 70 6f 70 28 29 3b 72 65 h-1];)n.pop();re 000059a0: 74 75 72 6e 20 6e 7d 65 6e 63 6f 64 65 45 76 65 turn n}encodeEve 000059b0: 6e 74 4c 6f 67 28 65 2c 74 29 7b 22 73 74 72 69 ntLog(e,t){"stri 000059c0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 28 ng"==typeof e&&( 000059d0: 65 3d 74 68 69 73 2e 67 65 74 45 76 65 6e 74 28 e=this.getEvent( 000059e0: 65 29 29 3b 63 6f 6e 73 74 20 6e 3d 5b 5d 2c 72 e));const n=[],r 000059f0: 3d 5b 5d 2c 6f 3d 5b 5d 3b 72 65 74 75 72 6e 20 =[],o=[];return 00005a00: 65 2e 61 6e 6f 6e 79 6d 6f 75 73 7c 7c 6e 2e 70 e.anonymous||n.p 00005a10: 75 73 68 28 74 68 69 73 2e 67 65 74 45 76 65 6e ush(this.getEven 00005a20: 74 54 6f 70 69 63 28 65 29 29 2c 74 2e 6c 65 6e tTopic(e)),t.len 00005a30: 67 74 68 21 3d 3d 65 2e 69 6e 70 75 74 73 2e 6c gth!==e.inputs.l 00005a40: 65 6e 67 74 68 26 26 59 74 2e 74 68 72 6f 77 41 ength&&Yt.throwA 00005a50: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 65 76 rgumentError("ev 00005a60: 65 6e 74 20 61 72 67 75 6d 65 6e 74 73 2f 76 61 ent arguments/va 00005a70: 6c 75 65 73 20 6d 69 73 6d 61 74 63 68 22 2c 22 lues mismatch"," 00005a80: 76 61 6c 75 65 73 22 2c 74 29 2c 65 2e 69 6e 70 values",t),e.inp 00005a90: 75 74 73 2e 66 6f 72 45 61 63 68 28 28 28 65 2c uts.forEach(((e, 00005aa0: 69 29 3d 3e 7b 63 6f 6e 73 74 20 61 3d 74 5b 69 i)=>{const a=t[i 00005ab0: 5d 3b 69 66 28 65 2e 69 6e 64 65 78 65 64 29 69 ];if(e.indexed)i 00005ac0: 66 28 22 73 74 72 69 6e 67 22 3d 3d 3d 65 2e 74 f("string"===e.t 00005ad0: 79 70 65 29 6e 2e 70 75 73 68 28 51 65 28 61 29 ype)n.push(Qe(a) 00005ae0: 29 3b 65 6c 73 65 20 69 66 28 22 62 79 74 65 73 );else if("bytes 00005af0: 22 3d 3d 3d 65 2e 74 79 70 65 29 6e 2e 70 75 73 "===e.type)n.pus 00005b00: 68 28 76 65 28 61 29 29 3b 65 6c 73 65 7b 69 66 h(ve(a));else{if 00005b10: 28 22 74 75 70 6c 65 22 3d 3d 3d 65 2e 62 61 73 ("tuple"===e.bas 00005b20: 65 54 79 70 65 7c 7c 22 61 72 72 61 79 22 3d 3d eType||"array"== 00005b30: 3d 65 2e 62 61 73 65 54 79 70 65 29 74 68 72 6f =e.baseType)thro 00005b40: 77 20 6e 65 77 20 45 72 72 6f 72 28 22 6e 6f 74 w new Error("not 00005b50: 20 69 6d 70 6c 65 6d 65 6e 74 65 64 22 29 3b 6e implemented");n 00005b60: 2e 70 75 73 68 28 74 68 69 73 2e 5f 61 62 69 43 .push(this._abiC 00005b70: 6f 64 65 72 2e 65 6e 63 6f 64 65 28 5b 65 2e 74 oder.encode([e.t 00005b80: 79 70 65 5d 2c 5b 61 5d 29 29 7d 65 6c 73 65 20 ype],[a]))}else 00005b90: 72 2e 70 75 73 68 28 65 29 2c 6f 2e 70 75 73 68 r.push(e),o.push 00005ba0: 28 61 29 7d 29 29 2c 7b 64 61 74 61 3a 74 68 69 (a)})),{data:thi 00005bb0: 73 2e 5f 61 62 69 43 6f 64 65 72 2e 65 6e 63 6f s._abiCoder.enco 00005bc0: 64 65 28 72 2c 6f 29 2c 74 6f 70 69 63 73 3a 6e de(r,o),topics:n 00005bd0: 7d 7d 64 65 63 6f 64 65 45 76 65 6e 74 4c 6f 67 }}decodeEventLog 00005be0: 28 65 2c 74 2c 6e 29 7b 69 66 28 22 73 74 72 69 (e,t,n){if("stri 00005bf0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 28 ng"==typeof e&&( 00005c00: 65 3d 74 68 69 73 2e 67 65 74 45 76 65 6e 74 28 e=this.getEvent( 00005c10: 65 29 29 2c 6e 75 6c 6c 21 3d 6e 26 26 21 65 2e e)),null!=n&&!e. 00005c20: 61 6e 6f 6e 79 6d 6f 75 73 29 7b 6c 65 74 20 74 anonymous){let t 00005c30: 3d 74 68 69 73 2e 67 65 74 45 76 65 6e 74 54 6f =this.getEventTo 00005c40: 70 69 63 28 65 29 3b 49 28 6e 5b 30 5d 2c 33 32 pic(e);I(n[0],32 00005c50: 29 26 26 6e 5b 30 5d 2e 74 6f 4c 6f 77 65 72 43 )&&n[0].toLowerC 00005c60: 61 73 65 28 29 3d 3d 3d 74 7c 7c 59 74 2e 74 68 ase()===t||Yt.th 00005c70: 72 6f 77 45 72 72 6f 72 28 22 66 72 61 67 6d 65 rowError("fragme 00005c80: 6e 74 2f 74 6f 70 69 63 20 6d 69 73 6d 61 74 63 nt/topic mismatc 00005c90: 68 22 2c 79 2e 65 72 72 6f 72 73 2e 49 4e 56 41 h",y.errors.INVA 00005ca0: 4c 49 44 5f 41 52 47 55 4d 45 4e 54 2c 7b 61 72 LID_ARGUMENT,{ar 00005cb0: 67 75 6d 65 6e 74 3a 22 74 6f 70 69 63 73 5b 30 gument:"topics[0 00005cc0: 5d 22 2c 65 78 70 65 63 74 65 64 3a 74 2c 76 61 ]",expected:t,va 00005cd0: 6c 75 65 3a 6e 5b 30 5d 7d 29 2c 6e 3d 6e 2e 73 lue:n[0]}),n=n.s 00005ce0: 6c 69 63 65 28 31 29 7d 6c 65 74 20 72 3d 5b 5d lice(1)}let r=[] 00005cf0: 2c 6f 3d 5b 5d 2c 69 3d 5b 5d 3b 65 2e 69 6e 70 ,o=[],i=[];e.inp 00005d00: 75 74 73 2e 66 6f 72 45 61 63 68 28 28 28 65 2c uts.forEach(((e, 00005d10: 74 29 3d 3e 7b 65 2e 69 6e 64 65 78 65 64 3f 22 t)=>{e.indexed?" 00005d20: 73 74 72 69 6e 67 22 3d 3d 3d 65 2e 74 79 70 65 string"===e.type 00005d30: 7c 7c 22 62 79 74 65 73 22 3d 3d 3d 65 2e 74 79 ||"bytes"===e.ty 00005d40: 70 65 7c 7c 22 74 75 70 6c 65 22 3d 3d 3d 65 2e pe||"tuple"===e. 00005d50: 62 61 73 65 54 79 70 65 7c 7c 22 61 72 72 61 79 baseType||"array 00005d60: 22 3d 3d 3d 65 2e 62 61 73 65 54 79 70 65 3f 28 "===e.baseType?( 00005d70: 72 2e 70 75 73 68 28 6b 74 2e 66 72 6f 6d 4f 62 r.push(kt.fromOb 00005d80: 6a 65 63 74 28 7b 74 79 70 65 3a 22 62 79 74 65 ject({type:"byte 00005d90: 73 33 32 22 2c 6e 61 6d 65 3a 65 2e 6e 61 6d 65 s32",name:e.name 00005da0: 7d 29 29 2c 69 2e 70 75 73 68 28 21 30 29 29 3a })),i.push(!0)): 00005db0: 28 72 2e 70 75 73 68 28 65 29 2c 69 2e 70 75 73 (r.push(e),i.pus 00005dc0: 68 28 21 31 29 29 3a 28 6f 2e 70 75 73 68 28 65 h(!1)):(o.push(e 00005dd0: 29 2c 69 2e 70 75 73 68 28 21 31 29 29 7d 29 29 ),i.push(!1))})) 00005de0: 3b 6c 65 74 20 61 3d 6e 75 6c 6c 21 3d 6e 3f 74 ;let a=null!=n?t 00005df0: 68 69 73 2e 5f 61 62 69 43 6f 64 65 72 2e 64 65 his._abiCoder.de 00005e00: 63 6f 64 65 28 72 2c 43 28 6e 29 29 3a 6e 75 6c code(r,C(n)):nul 00005e10: 6c 2c 73 3d 74 68 69 73 2e 5f 61 62 69 43 6f 64 l,s=this._abiCod 00005e20: 65 72 2e 64 65 63 6f 64 65 28 6f 2c 74 2c 21 30 er.decode(o,t,!0 00005e30: 29 2c 6c 3d 5b 5d 2c 63 3d 30 2c 75 3d 30 3b 65 ),l=[],c=0,u=0;e 00005e40: 2e 69 6e 70 75 74 73 2e 66 6f 72 45 61 63 68 28 .inputs.forEach( 00005e50: 28 28 65 2c 74 29 3d 3e 7b 69 66 28 65 2e 69 6e ((e,t)=>{if(e.in 00005e60: 64 65 78 65 64 29 69 66 28 6e 75 6c 6c 3d 3d 61 dexed)if(null==a 00005e70: 29 6c 5b 74 5d 3d 6e 65 77 20 4a 74 28 7b 5f 69 )l[t]=new Jt({_i 00005e80: 73 49 6e 64 65 78 65 64 3a 21 30 2c 68 61 73 68 sIndexed:!0,hash 00005e90: 3a 6e 75 6c 6c 7d 29 3b 65 6c 73 65 20 69 66 28 :null});else if( 00005ea0: 69 5b 74 5d 29 6c 5b 74 5d 3d 6e 65 77 20 4a 74 i[t])l[t]=new Jt 00005eb0: 28 7b 5f 69 73 49 6e 64 65 78 65 64 3a 21 30 2c ({_isIndexed:!0, 00005ec0: 68 61 73 68 3a 61 5b 75 2b 2b 5d 7d 29 3b 65 6c hash:a[u++]});el 00005ed0: 73 65 20 74 72 79 7b 6c 5b 74 5d 3d 61 5b 75 2b se try{l[t]=a[u+ 00005ee0: 2b 5d 7d 63 61 74 63 68 28 65 29 7b 6c 5b 74 5d +]}catch(e){l[t] 00005ef0: 3d 65 7d 65 6c 73 65 20 74 72 79 7b 6c 5b 74 5d =e}else try{l[t] 00005f00: 3d 73 5b 63 2b 2b 5d 7d 63 61 74 63 68 28 65 29 =s[c++]}catch(e) 00005f10: 7b 6c 5b 74 5d 3d 65 7d 69 66 28 65 2e 6e 61 6d {l[t]=e}if(e.nam 00005f20: 65 26 26 6e 75 6c 6c 3d 3d 6c 5b 65 2e 6e 61 6d e&&null==l[e.nam 00005f30: 65 5d 29 7b 63 6f 6e 73 74 20 6e 3d 6c 5b 74 5d e]){const n=l[t] 00005f40: 3b 6e 20 69 6e 73 74 61 6e 63 65 6f 66 20 45 72 ;n instanceof Er 00005f50: 72 6f 72 3f 4f 62 6a 65 63 74 2e 64 65 66 69 6e ror?Object.defin 00005f60: 65 50 72 6f 70 65 72 74 79 28 6c 2c 65 2e 6e 61 eProperty(l,e.na 00005f70: 6d 65 2c 7b 65 6e 75 6d 65 72 61 62 6c 65 3a 21 me,{enumerable:! 00005f80: 30 2c 67 65 74 3a 28 29 3d 3e 7b 74 68 72 6f 77 0,get:()=>{throw 00005f90: 20 65 6e 28 60 70 72 6f 70 65 72 74 79 20 24 7b en(`property ${ 00005fa0: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 65 JSON.stringify(e 00005fb0: 2e 6e 61 6d 65 29 7d 60 2c 6e 29 7d 7d 29 3a 6c .name)}`,n)}}):l 00005fc0: 5b 65 2e 6e 61 6d 65 5d 3d 6e 7d 7d 29 29 3b 66 [e.name]=n}}));f 00005fd0: 6f 72 28 6c 65 74 20 65 3d 30 3b 65 3c 6c 2e 6c or(let e=0;e<l.l 00005fe0: 65 6e 67 74 68 3b 65 2b 2b 29 7b 63 6f 6e 73 74 ength;e++){const 00005ff0: 20 74 3d 6c 5b 65 5d 3b 74 20 69 6e 73 74 61 6e t=l[e];t instan 00006000: 63 65 6f 66 20 45 72 72 6f 72 26 26 4f 62 6a 65 ceof Error&&Obje 00006010: 63 74 2e 64 65 66 69 6e 65 50 72 6f 70 65 72 74 ct.definePropert 00006020: 79 28 6c 2c 65 2c 7b 65 6e 75 6d 65 72 61 62 6c y(l,e,{enumerabl 00006030: 65 3a 21 30 2c 67 65 74 3a 28 29 3d 3e 7b 74 68 e:!0,get:()=>{th 00006040: 72 6f 77 20 65 6e 28 60 69 6e 64 65 78 20 24 7b row en(`index ${ 00006050: 65 7d 60 2c 74 29 7d 7d 29 7d 72 65 74 75 72 6e e}`,t)}})}return 00006060: 20 4f 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 6c Object.freeze(l 00006070: 29 7d 70 61 72 73 65 54 72 61 6e 73 61 63 74 69 )}parseTransacti 00006080: 6f 6e 28 65 29 7b 6c 65 74 20 74 3d 74 68 69 73 on(e){let t=this 00006090: 2e 67 65 74 46 75 6e 63 74 69 6f 6e 28 65 2e 64 .getFunction(e.d 000060a0: 61 74 61 2e 73 75 62 73 74 72 69 6e 67 28 30 2c ata.substring(0, 000060b0: 31 30 29 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 10).toLowerCase( 000060c0: 29 29 3b 72 65 74 75 72 6e 20 74 3f 6e 65 77 20 ));return t?new 000060d0: 5a 74 28 7b 61 72 67 73 3a 74 68 69 73 2e 5f 61 Zt({args:this._a 000060e0: 62 69 43 6f 64 65 72 2e 64 65 63 6f 64 65 28 74 biCoder.decode(t 000060f0: 2e 69 6e 70 75 74 73 2c 22 30 78 22 2b 65 2e 64 .inputs,"0x"+e.d 00006100: 61 74 61 2e 73 75 62 73 74 72 69 6e 67 28 31 30 ata.substring(10 00006110: 29 29 2c 66 75 6e 63 74 69 6f 6e 46 72 61 67 6d )),functionFragm 00006120: 65 6e 74 3a 74 2c 6e 61 6d 65 3a 74 2e 6e 61 6d ent:t,name:t.nam 00006130: 65 2c 73 69 67 6e 61 74 75 72 65 3a 74 2e 66 6f e,signature:t.fo 00006140: 72 6d 61 74 28 29 2c 73 69 67 68 61 73 68 3a 74 rmat(),sighash:t 00006150: 68 69 73 2e 67 65 74 53 69 67 68 61 73 68 28 74 his.getSighash(t 00006160: 29 2c 76 61 6c 75 65 3a 59 2e 66 72 6f 6d 28 65 ),value:Y.from(e 00006170: 2e 76 61 6c 75 65 7c 7c 22 30 22 29 7d 29 3a 6e .value||"0")}):n 00006180: 75 6c 6c 7d 70 61 72 73 65 4c 6f 67 28 65 29 7b ull}parseLog(e){ 00006190: 6c 65 74 20 74 3d 74 68 69 73 2e 67 65 74 45 76 let t=this.getEv 000061a0: 65 6e 74 28 65 2e 74 6f 70 69 63 73 5b 30 5d 29 ent(e.topics[0]) 000061b0: 3b 72 65 74 75 72 6e 21 74 7c 7c 74 2e 61 6e 6f ;return!t||t.ano 000061c0: 6e 79 6d 6f 75 73 3f 6e 75 6c 6c 3a 6e 65 77 20 nymous?null:new 000061d0: 58 74 28 7b 65 76 65 6e 74 46 72 61 67 6d 65 6e Xt({eventFragmen 000061e0: 74 3a 74 2c 6e 61 6d 65 3a 74 2e 6e 61 6d 65 2c t:t,name:t.name, 000061f0: 73 69 67 6e 61 74 75 72 65 3a 74 2e 66 6f 72 6d signature:t.form 00006200: 61 74 28 29 2c 74 6f 70 69 63 3a 74 68 69 73 2e at(),topic:this. 00006210: 67 65 74 45 76 65 6e 74 54 6f 70 69 63 28 74 29 getEventTopic(t) 00006220: 2c 61 72 67 73 3a 74 68 69 73 2e 64 65 63 6f 64 ,args:this.decod 00006230: 65 45 76 65 6e 74 4c 6f 67 28 74 2c 65 2e 64 61 eEventLog(t,e.da 00006240: 74 61 2c 65 2e 74 6f 70 69 63 73 29 7d 29 7d 70 ta,e.topics)})}p 00006250: 61 72 73 65 45 72 72 6f 72 28 65 29 7b 63 6f 6e arseError(e){con 00006260: 73 74 20 74 3d 52 28 65 29 3b 6c 65 74 20 6e 3d st t=R(e);let n= 00006270: 74 68 69 73 2e 67 65 74 45 72 72 6f 72 28 74 2e this.getError(t. 00006280: 73 75 62 73 74 72 69 6e 67 28 30 2c 31 30 29 2e substring(0,10). 00006290: 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 29 3b 72 toLowerCase());r 000062a0: 65 74 75 72 6e 20 6e 3f 6e 65 77 20 51 74 28 7b eturn n?new Qt({ 000062b0: 61 72 67 73 3a 74 68 69 73 2e 5f 61 62 69 43 6f args:this._abiCo 000062c0: 64 65 72 2e 64 65 63 6f 64 65 28 6e 2e 69 6e 70 der.decode(n.inp 000062d0: 75 74 73 2c 22 30 78 22 2b 74 2e 73 75 62 73 74 uts,"0x"+t.subst 000062e0: 72 69 6e 67 28 31 30 29 29 2c 65 72 72 6f 72 46 ring(10)),errorF 000062f0: 72 61 67 6d 65 6e 74 3a 6e 2c 6e 61 6d 65 3a 6e ragment:n,name:n 00006300: 2e 6e 61 6d 65 2c 73 69 67 6e 61 74 75 72 65 3a .name,signature: 00006310: 6e 2e 66 6f 72 6d 61 74 28 29 2c 73 69 67 68 61 n.format(),sigha 00006320: 73 68 3a 74 68 69 73 2e 67 65 74 53 69 67 68 61 sh:this.getSigha 00006330: 73 68 28 6e 29 7d 29 3a 6e 75 6c 6c 7d 73 74 61 sh(n)}):null}sta 00006340: 74 69 63 20 69 73 49 6e 74 65 72 66 61 63 65 28 tic isInterface( 00006350: 65 29 7b 72 65 74 75 72 6e 21 28 21 65 7c 7c 21 e){return!(!e||! 00006360: 65 2e 5f 69 73 49 6e 74 65 72 66 61 63 65 29 7d e._isInterface)} 00006370: 7d 76 61 72 20 6e 6e 3d 66 75 6e 63 74 69 6f 6e }var nn=function 00006380: 28 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e (e,t,n,r){return 00006390: 20 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 new(n||(n=Promi 000063a0: 73 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f se))((function(o 000063b0: 2c 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 ,i){function a(e 000063c0: 29 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 ){try{l(r.next(e 000063d0: 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 ))}catch(e){i(e) 000063e0: 7d 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b }}function s(e){ 000063f0: 74 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 try{l(r.throw(e) 00006400: 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d )}catch(e){i(e)} 00006410: 7d 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 }function l(e){v 00006420: 61 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e ar t;e.done?o(e. 00006430: 76 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 value):(t=e.valu 00006440: 65 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e e,t instanceof n 00006450: 3f 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 ?t:new n((functi 00006460: 6f 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 on(e){e(t)}))).t 00006470: 68 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e hen(a,s)}l((r=r. 00006480: 61 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e apply(e,t||[])). 00006490: 6e 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 next())}))};cons 000064a0: 74 20 72 6e 3d 6e 65 77 20 79 28 22 61 62 73 74 t rn=new y("abst 000064b0: 72 61 63 74 2d 70 72 6f 76 69 64 65 72 2f 35 2e ract-provider/5. 000064c0: 37 2e 30 22 29 3b 63 6c 61 73 73 20 6f 6e 20 65 7.0");class on e 000064d0: 78 74 65 6e 64 73 20 75 65 7b 73 74 61 74 69 63 xtends ue{static 000064e0: 20 69 73 46 6f 72 6b 45 76 65 6e 74 28 65 29 7b isForkEvent(e){ 000064f0: 72 65 74 75 72 6e 21 28 21 65 7c 7c 21 65 2e 5f return!(!e||!e._ 00006500: 69 73 46 6f 72 6b 45 76 65 6e 74 29 7d 7d 63 6c isForkEvent)}}cl 00006510: 61 73 73 20 61 6e 7b 63 6f 6e 73 74 72 75 63 74 ass an{construct 00006520: 6f 72 28 29 7b 72 6e 2e 63 68 65 63 6b 41 62 73 or(){rn.checkAbs 00006530: 74 72 61 63 74 28 6e 65 77 2e 74 61 72 67 65 74 tract(new.target 00006540: 2c 61 6e 29 2c 74 65 28 74 68 69 73 2c 22 5f 69 ,an),te(this,"_i 00006550: 73 50 72 6f 76 69 64 65 72 22 2c 21 30 29 7d 67 sProvider",!0)}g 00006560: 65 74 46 65 65 44 61 74 61 28 29 7b 72 65 74 75 etFeeData(){retu 00006570: 72 6e 20 6e 6e 28 74 68 69 73 2c 76 6f 69 64 20 rn nn(this,void 00006580: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 00006590: 6f 6e 2a 28 29 7b 63 6f 6e 73 74 7b 62 6c 6f 63 on*(){const{bloc 000065a0: 6b 3a 65 2c 67 61 73 50 72 69 63 65 3a 74 7d 3d k:e,gasPrice:t}= 000065b0: 79 69 65 6c 64 20 72 65 28 7b 62 6c 6f 63 6b 3a yield re({block: 000065c0: 74 68 69 73 2e 67 65 74 42 6c 6f 63 6b 28 22 6c this.getBlock("l 000065d0: 61 74 65 73 74 22 29 2c 67 61 73 50 72 69 63 65 atest"),gasPrice 000065e0: 3a 74 68 69 73 2e 67 65 74 47 61 73 50 72 69 63 :this.getGasPric 000065f0: 65 28 29 2e 63 61 74 63 68 28 28 65 3d 3e 6e 75 e().catch((e=>nu 00006600: 6c 6c 29 29 7d 29 3b 6c 65 74 20 6e 3d 6e 75 6c ll))});let n=nul 00006610: 6c 2c 72 3d 6e 75 6c 6c 2c 6f 3d 6e 75 6c 6c 3b l,r=null,o=null; 00006620: 72 65 74 75 72 6e 20 65 26 26 65 2e 62 61 73 65 return e&&e.base 00006630: 46 65 65 50 65 72 47 61 73 26 26 28 6e 3d 65 2e FeePerGas&&(n=e. 00006640: 62 61 73 65 46 65 65 50 65 72 47 61 73 2c 6f 3d baseFeePerGas,o= 00006650: 59 2e 66 72 6f 6d 28 22 31 35 30 30 30 30 30 30 Y.from("15000000 00006660: 30 30 22 29 2c 72 3d 65 2e 62 61 73 65 46 65 65 00"),r=e.baseFee 00006670: 50 65 72 47 61 73 2e 6d 75 6c 28 32 29 2e 61 64 PerGas.mul(2).ad 00006680: 64 28 6f 29 29 2c 7b 6c 61 73 74 42 61 73 65 46 d(o)),{lastBaseF 00006690: 65 65 50 65 72 47 61 73 3a 6e 2c 6d 61 78 46 65 eePerGas:n,maxFe 000066a0: 65 50 65 72 47 61 73 3a 72 2c 6d 61 78 50 72 69 ePerGas:r,maxPri 000066b0: 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 3a 6f orityFeePerGas:o 000066c0: 2c 67 61 73 50 72 69 63 65 3a 74 7d 7d 29 29 7d ,gasPrice:t}}))} 000066d0: 61 64 64 4c 69 73 74 65 6e 65 72 28 65 2c 74 29 addListener(e,t) 000066e0: 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 6f 6e 28 {return this.on( 000066f0: 65 2c 74 29 7d 72 65 6d 6f 76 65 4c 69 73 74 65 e,t)}removeListe 00006700: 6e 65 72 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 ner(e,t){return 00006710: 74 68 69 73 2e 6f 66 66 28 65 2c 74 29 7d 73 74 this.off(e,t)}st 00006720: 61 74 69 63 20 69 73 50 72 6f 76 69 64 65 72 28 atic isProvider( 00006730: 65 29 7b 72 65 74 75 72 6e 21 28 21 65 7c 7c 21 e){return!(!e||! 00006740: 65 2e 5f 69 73 50 72 6f 76 69 64 65 72 29 7d 7d e._isProvider)}} 00006750: 76 61 72 20 73 6e 3d 66 75 6e 63 74 69 6f 6e 28 var sn=function( 00006760: 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 e,t,n,r){return 00006770: 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 new(n||(n=Promis 00006780: 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c e))((function(o, 00006790: 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 i){function a(e) 000067a0: 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 {try{l(r.next(e) 000067b0: 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d )}catch(e){i(e)} 000067c0: 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 }function s(e){t 000067d0: 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 ry{l(r.throw(e)) 000067e0: 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d }catch(e){i(e)}} 000067f0: 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 function l(e){va 00006800: 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 r t;e.done?o(e.v 00006810: 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 alue):(t=e.value 00006820: 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f ,t instanceof n? 00006830: 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 6f t:new n((functio 00006840: 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 n(e){e(t)}))).th 00006850: 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 en(a,s)}l((r=r.a 00006860: 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e pply(e,t||[])).n 00006870: 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 ext())}))};const 00006880: 20 6c 6e 3d 6e 65 77 20 79 28 22 61 62 73 74 72 ln=new y("abstr 00006890: 61 63 74 2d 73 69 67 6e 65 72 2f 35 2e 37 2e 30 act-signer/5.7.0 000068a0: 22 29 2c 63 6e 3d 5b 22 61 63 63 65 73 73 4c 69 "),cn=["accessLi 000068b0: 73 74 22 2c 22 63 63 69 70 52 65 61 64 45 6e 61 st","ccipReadEna 000068c0: 62 6c 65 64 22 2c 22 63 68 61 69 6e 49 64 22 2c bled","chainId", 000068d0: 22 63 75 73 74 6f 6d 44 61 74 61 22 2c 22 64 61 "customData","da 000068e0: 74 61 22 2c 22 66 72 6f 6d 22 2c 22 67 61 73 4c ta","from","gasL 000068f0: 69 6d 69 74 22 2c 22 67 61 73 50 72 69 63 65 22 imit","gasPrice" 00006900: 2c 22 6d 61 78 46 65 65 50 65 72 47 61 73 22 2c ,"maxFeePerGas", 00006910: 22 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 "maxPriorityFeeP 00006920: 65 72 47 61 73 22 2c 22 6e 6f 6e 63 65 22 2c 22 erGas","nonce"," 00006930: 74 6f 22 2c 22 74 79 70 65 22 2c 22 76 61 6c 75 to","type","valu 00006940: 65 22 5d 2c 75 6e 3d 5b 79 2e 65 72 72 6f 72 73 e"],un=[y.errors 00006950: 2e 49 4e 53 55 46 46 49 43 49 45 4e 54 5f 46 55 .INSUFFICIENT_FU 00006960: 4e 44 53 2c 79 2e 65 72 72 6f 72 73 2e 4e 4f 4e NDS,y.errors.NON 00006970: 43 45 5f 45 58 50 49 52 45 44 2c 79 2e 65 72 72 CE_EXPIRED,y.err 00006980: 6f 72 73 2e 52 45 50 4c 41 43 45 4d 45 4e 54 5f ors.REPLACEMENT_ 00006990: 55 4e 44 45 52 50 52 49 43 45 44 5d 3b 63 6c 61 UNDERPRICED];cla 000069a0: 73 73 20 64 6e 7b 63 6f 6e 73 74 72 75 63 74 6f ss dn{constructo 000069b0: 72 28 29 7b 6c 6e 2e 63 68 65 63 6b 41 62 73 74 r(){ln.checkAbst 000069c0: 72 61 63 74 28 6e 65 77 2e 74 61 72 67 65 74 2c ract(new.target, 000069d0: 64 6e 29 2c 74 65 28 74 68 69 73 2c 22 5f 69 73 dn),te(this,"_is 000069e0: 53 69 67 6e 65 72 22 2c 21 30 29 7d 67 65 74 42 Signer",!0)}getB 000069f0: 61 6c 61 6e 63 65 28 65 29 7b 72 65 74 75 72 6e alance(e){return 00006a00: 20 73 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 2c sn(this,void 0, 00006a10: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 00006a20: 2a 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e *(){return this. 00006a30: 5f 63 68 65 63 6b 50 72 6f 76 69 64 65 72 28 22 _checkProvider(" 00006a40: 67 65 74 42 61 6c 61 6e 63 65 22 29 2c 79 69 65 getBalance"),yie 00006a50: 6c 64 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 ld this.provider 00006a60: 2e 67 65 74 42 61 6c 61 6e 63 65 28 74 68 69 73 .getBalance(this 00006a70: 2e 67 65 74 41 64 64 72 65 73 73 28 29 2c 65 29 .getAddress(),e) 00006a80: 7d 29 29 7d 67 65 74 54 72 61 6e 73 61 63 74 69 }))}getTransacti 00006a90: 6f 6e 43 6f 75 6e 74 28 65 29 7b 72 65 74 75 72 onCount(e){retur 00006aa0: 6e 20 73 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 n sn(this,void 0 00006ab0: 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f ,void 0,(functio 00006ac0: 6e 2a 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 n*(){return this 00006ad0: 2e 5f 63 68 65 63 6b 50 72 6f 76 69 64 65 72 28 ._checkProvider( 00006ae0: 22 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 43 "getTransactionC 00006af0: 6f 75 6e 74 22 29 2c 79 69 65 6c 64 20 74 68 69 ount"),yield thi 00006b00: 73 2e 70 72 6f 76 69 64 65 72 2e 67 65 74 54 72 s.provider.getTr 00006b10: 61 6e 73 61 63 74 69 6f 6e 43 6f 75 6e 74 28 74 ansactionCount(t 00006b20: 68 69 73 2e 67 65 74 41 64 64 72 65 73 73 28 29 his.getAddress() 00006b30: 2c 65 29 7d 29 29 7d 65 73 74 69 6d 61 74 65 47 ,e)}))}estimateG 00006b40: 61 73 28 65 29 7b 72 65 74 75 72 6e 20 73 6e 28 as(e){return sn( 00006b50: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 00006b60: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 00006b70: 74 68 69 73 2e 5f 63 68 65 63 6b 50 72 6f 76 69 this._checkProvi 00006b80: 64 65 72 28 22 65 73 74 69 6d 61 74 65 47 61 73 der("estimateGas 00006b90: 22 29 3b 63 6f 6e 73 74 20 74 3d 79 69 65 6c 64 ");const t=yield 00006ba0: 20 72 65 28 74 68 69 73 2e 63 68 65 63 6b 54 72 re(this.checkTr 00006bb0: 61 6e 73 61 63 74 69 6f 6e 28 65 29 29 3b 72 65 ansaction(e));re 00006bc0: 74 75 72 6e 20 79 69 65 6c 64 20 74 68 69 73 2e turn yield this. 00006bd0: 70 72 6f 76 69 64 65 72 2e 65 73 74 69 6d 61 74 provider.estimat 00006be0: 65 47 61 73 28 74 29 7d 29 29 7d 63 61 6c 6c 28 eGas(t)}))}call( 00006bf0: 65 2c 74 29 7b 72 65 74 75 72 6e 20 73 6e 28 74 e,t){return sn(t 00006c00: 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 his,void 0,void 00006c10: 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 74 0,(function*(){t 00006c20: 68 69 73 2e 5f 63 68 65 63 6b 50 72 6f 76 69 64 his._checkProvid 00006c30: 65 72 28 22 63 61 6c 6c 22 29 3b 63 6f 6e 73 74 er("call");const 00006c40: 20 6e 3d 79 69 65 6c 64 20 72 65 28 74 68 69 73 n=yield re(this 00006c50: 2e 63 68 65 63 6b 54 72 61 6e 73 61 63 74 69 6f .checkTransactio 00006c60: 6e 28 65 29 29 3b 72 65 74 75 72 6e 20 79 69 65 n(e));return yie 00006c70: 6c 64 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 ld this.provider 00006c80: 2e 63 61 6c 6c 28 6e 2c 74 29 7d 29 29 7d 73 65 .call(n,t)}))}se 00006c90: 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 ndTransaction(e) 00006ca0: 7b 72 65 74 75 72 6e 20 73 6e 28 74 68 69 73 2c {return sn(this, 00006cb0: 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 void 0,void 0,(f 00006cc0: 75 6e 63 74 69 6f 6e 2a 28 29 7b 74 68 69 73 2e unction*(){this. 00006cd0: 5f 63 68 65 63 6b 50 72 6f 76 69 64 65 72 28 22 _checkProvider(" 00006ce0: 73 65 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 22 sendTransaction" 00006cf0: 29 3b 63 6f 6e 73 74 20 74 3d 79 69 65 6c 64 20 );const t=yield 00006d00: 74 68 69 73 2e 70 6f 70 75 6c 61 74 65 54 72 61 this.populateTra 00006d10: 6e 73 61 63 74 69 6f 6e 28 65 29 2c 6e 3d 79 69 nsaction(e),n=yi 00006d20: 65 6c 64 20 74 68 69 73 2e 73 69 67 6e 54 72 61 eld this.signTra 00006d30: 6e 73 61 63 74 69 6f 6e 28 74 29 3b 72 65 74 75 nsaction(t);retu 00006d40: 72 6e 20 79 69 65 6c 64 20 74 68 69 73 2e 70 72 rn yield this.pr 00006d50: 6f 76 69 64 65 72 2e 73 65 6e 64 54 72 61 6e 73 ovider.sendTrans 00006d60: 61 63 74 69 6f 6e 28 6e 29 7d 29 29 7d 67 65 74 action(n)}))}get 00006d70: 43 68 61 69 6e 49 64 28 29 7b 72 65 74 75 72 6e ChainId(){return 00006d80: 20 73 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 2c sn(this,void 0, 00006d90: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 00006da0: 2a 28 29 7b 74 68 69 73 2e 5f 63 68 65 63 6b 50 *(){this._checkP 00006db0: 72 6f 76 69 64 65 72 28 22 67 65 74 43 68 61 69 rovider("getChai 00006dc0: 6e 49 64 22 29 3b 72 65 74 75 72 6e 28 79 69 65 nId");return(yie 00006dd0: 6c 64 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 ld this.provider 00006de0: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 29 2e 63 .getNetwork()).c 00006df0: 68 61 69 6e 49 64 7d 29 29 7d 67 65 74 47 61 73 hainId}))}getGas 00006e00: 50 72 69 63 65 28 29 7b 72 65 74 75 72 6e 20 73 Price(){return s 00006e10: 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f n(this,void 0,vo 00006e20: 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 id 0,(function*( 00006e30: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 63 ){return this._c 00006e40: 68 65 63 6b 50 72 6f 76 69 64 65 72 28 22 67 65 heckProvider("ge 00006e50: 74 47 61 73 50 72 69 63 65 22 29 2c 79 69 65 6c tGasPrice"),yiel 00006e60: 64 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e d this.provider. 00006e70: 67 65 74 47 61 73 50 72 69 63 65 28 29 7d 29 29 getGasPrice()})) 00006e80: 7d 67 65 74 46 65 65 44 61 74 61 28 29 7b 72 65 }getFeeData(){re 00006e90: 74 75 72 6e 20 73 6e 28 74 68 69 73 2c 76 6f 69 turn sn(this,voi 00006ea0: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 00006eb0: 74 69 6f 6e 2a 28 29 7b 72 65 74 75 72 6e 20 74 tion*(){return t 00006ec0: 68 69 73 2e 5f 63 68 65 63 6b 50 72 6f 76 69 64 his._checkProvid 00006ed0: 65 72 28 22 67 65 74 46 65 65 44 61 74 61 22 29 er("getFeeData") 00006ee0: 2c 79 69 65 6c 64 20 74 68 69 73 2e 70 72 6f 76 ,yield this.prov 00006ef0: 69 64 65 72 2e 67 65 74 46 65 65 44 61 74 61 28 ider.getFeeData( 00006f00: 29 7d 29 29 7d 72 65 73 6f 6c 76 65 4e 61 6d 65 )}))}resolveName 00006f10: 28 65 29 7b 72 65 74 75 72 6e 20 73 6e 28 74 68 (e){return sn(th 00006f20: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 00006f30: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 ,(function*(){re 00006f40: 74 75 72 6e 20 74 68 69 73 2e 5f 63 68 65 63 6b turn this._check 00006f50: 50 72 6f 76 69 64 65 72 28 22 72 65 73 6f 6c 76 Provider("resolv 00006f60: 65 4e 61 6d 65 22 29 2c 79 69 65 6c 64 20 74 68 eName"),yield th 00006f70: 69 73 2e 70 72 6f 76 69 64 65 72 2e 72 65 73 6f is.provider.reso 00006f80: 6c 76 65 4e 61 6d 65 28 65 29 7d 29 29 7d 63 68 lveName(e)}))}ch 00006f90: 65 63 6b 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 eckTransaction(e 00006fa0: 29 7b 66 6f 72 28 63 6f 6e 73 74 20 74 20 69 6e ){for(const t in 00006fb0: 20 65 29 2d 31 3d 3d 3d 63 6e 2e 69 6e 64 65 78 e)-1===cn.index 00006fc0: 4f 66 28 74 29 26 26 6c 6e 2e 74 68 72 6f 77 41 Of(t)&&ln.throwA 00006fd0: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e rgumentError("in 00006fe0: 76 61 6c 69 64 20 74 72 61 6e 73 61 63 74 69 6f valid transactio 00006ff0: 6e 20 6b 65 79 3a 20 22 2b 74 2c 22 74 72 61 6e n key: "+t,"tran 00007000: 73 61 63 74 69 6f 6e 22 2c 65 29 3b 63 6f 6e 73 saction",e);cons 00007010: 74 20 74 3d 69 65 28 65 29 3b 72 65 74 75 72 6e t t=ie(e);return 00007020: 20 6e 75 6c 6c 3d 3d 74 2e 66 72 6f 6d 3f 74 2e null==t.from?t. 00007030: 66 72 6f 6d 3d 74 68 69 73 2e 67 65 74 41 64 64 from=this.getAdd 00007040: 72 65 73 73 28 29 3a 74 2e 66 72 6f 6d 3d 50 72 ress():t.from=Pr 00007050: 6f 6d 69 73 65 2e 61 6c 6c 28 5b 50 72 6f 6d 69 omise.all([Promi 00007060: 73 65 2e 72 65 73 6f 6c 76 65 28 74 2e 66 72 6f se.resolve(t.fro 00007070: 6d 29 2c 74 68 69 73 2e 67 65 74 41 64 64 72 65 m),this.getAddre 00007080: 73 73 28 29 5d 29 2e 74 68 65 6e 28 28 74 3d 3e ss()]).then((t=> 00007090: 28 74 5b 30 5d 2e 74 6f 4c 6f 77 65 72 43 61 73 (t[0].toLowerCas 000070a0: 65 28 29 21 3d 3d 74 5b 31 5d 2e 74 6f 4c 6f 77 e()!==t[1].toLow 000070b0: 65 72 43 61 73 65 28 29 26 26 6c 6e 2e 74 68 72 erCase()&&ln.thr 000070c0: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 000070d0: 22 66 72 6f 6d 20 61 64 64 72 65 73 73 20 6d 69 "from address mi 000070e0: 73 6d 61 74 63 68 22 2c 22 74 72 61 6e 73 61 63 smatch","transac 000070f0: 74 69 6f 6e 22 2c 65 29 2c 74 5b 30 5d 29 29 29 tion",e),t[0]))) 00007100: 2c 74 7d 70 6f 70 75 6c 61 74 65 54 72 61 6e 73 ,t}populateTrans 00007110: 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e action(e){return 00007120: 20 73 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 2c sn(this,void 0, 00007130: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 00007140: 2a 28 29 7b 63 6f 6e 73 74 20 74 3d 79 69 65 6c *(){const t=yiel 00007150: 64 20 72 65 28 74 68 69 73 2e 63 68 65 63 6b 54 d re(this.checkT 00007160: 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 29 3b 6e ransaction(e));n 00007170: 75 6c 6c 21 3d 74 2e 74 6f 26 26 28 74 2e 74 6f ull!=t.to&&(t.to 00007180: 3d 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 =Promise.resolve 00007190: 28 74 2e 74 6f 29 2e 74 68 65 6e 28 28 65 3d 3e (t.to).then((e=> 000071a0: 73 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 sn(this,void 0,v 000071b0: 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a oid 0,(function* 000071c0: 28 29 7b 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 (){if(null==e)re 000071d0: 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f 6e 73 74 20 turn null;const 000071e0: 74 3d 79 69 65 6c 64 20 74 68 69 73 2e 72 65 73 t=yield this.res 000071f0: 6f 6c 76 65 4e 61 6d 65 28 65 29 3b 72 65 74 75 olveName(e);retu 00007200: 72 6e 20 6e 75 6c 6c 3d 3d 74 26 26 6c 6e 2e 74 rn null==t&&ln.t 00007210: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00007220: 72 28 22 70 72 6f 76 69 64 65 64 20 45 4e 53 20 r("provided ENS 00007230: 6e 61 6d 65 20 72 65 73 6f 6c 76 65 73 20 74 6f name resolves to 00007240: 20 6e 75 6c 6c 22 2c 22 74 78 2e 74 6f 22 2c 65 null","tx.to",e 00007250: 29 2c 74 7d 29 29 29 29 2c 74 2e 74 6f 2e 63 61 ),t})))),t.to.ca 00007260: 74 63 68 28 28 65 3d 3e 7b 7d 29 29 29 3b 63 6f tch((e=>{})));co 00007270: 6e 73 74 20 6e 3d 6e 75 6c 6c 21 3d 74 2e 6d 61 nst n=null!=t.ma 00007280: 78 46 65 65 50 65 72 47 61 73 7c 7c 6e 75 6c 6c xFeePerGas||null 00007290: 21 3d 74 2e 6d 61 78 50 72 69 6f 72 69 74 79 46 !=t.maxPriorityF 000072a0: 65 65 50 65 72 47 61 73 3b 69 66 28 6e 75 6c 6c eePerGas;if(null 000072b0: 3d 3d 74 2e 67 61 73 50 72 69 63 65 7c 7c 32 21 ==t.gasPrice||2! 000072c0: 3d 3d 74 2e 74 79 70 65 26 26 21 6e 3f 30 21 3d ==t.type&&!n?0!= 000072d0: 3d 74 2e 74 79 70 65 26 26 31 21 3d 3d 74 2e 74 =t.type&&1!==t.t 000072e0: 79 70 65 7c 7c 21 6e 7c 7c 6c 6e 2e 74 68 72 6f ype||!n||ln.thro 000072f0: 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 wArgumentError(" 00007300: 70 72 65 2d 65 69 70 2d 31 35 35 39 20 74 72 61 pre-eip-1559 tra 00007310: 6e 73 61 63 74 69 6f 6e 20 64 6f 20 6e 6f 74 20 nsaction do not 00007320: 73 75 70 70 6f 72 74 20 6d 61 78 46 65 65 50 65 support maxFeePe 00007330: 72 47 61 73 2f 6d 61 78 50 72 69 6f 72 69 74 79 rGas/maxPriority 00007340: 46 65 65 50 65 72 47 61 73 22 2c 22 74 72 61 6e FeePerGas","tran 00007350: 73 61 63 74 69 6f 6e 22 2c 65 29 3a 6c 6e 2e 74 saction",e):ln.t 00007360: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00007370: 72 28 22 65 69 70 2d 31 35 35 39 20 74 72 61 6e r("eip-1559 tran 00007380: 73 61 63 74 69 6f 6e 20 64 6f 20 6e 6f 74 20 73 saction do not s 00007390: 75 70 70 6f 72 74 20 67 61 73 50 72 69 63 65 22 upport gasPrice" 000073a0: 2c 22 74 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 ,"transaction",e 000073b0: 29 2c 32 21 3d 3d 74 2e 74 79 70 65 26 26 6e 75 ),2!==t.type&&nu 000073c0: 6c 6c 21 3d 74 2e 74 79 70 65 7c 7c 6e 75 6c 6c ll!=t.type||null 000073d0: 3d 3d 74 2e 6d 61 78 46 65 65 50 65 72 47 61 73 ==t.maxFeePerGas 000073e0: 7c 7c 6e 75 6c 6c 3d 3d 74 2e 6d 61 78 50 72 69 ||null==t.maxPri 000073f0: 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 29 69 orityFeePerGas)i 00007400: 66 28 30 3d 3d 3d 74 2e 74 79 70 65 7c 7c 31 3d f(0===t.type||1= 00007410: 3d 3d 74 2e 74 79 70 65 29 6e 75 6c 6c 3d 3d 74 ==t.type)null==t 00007420: 2e 67 61 73 50 72 69 63 65 26 26 28 74 2e 67 61 .gasPrice&&(t.ga 00007430: 73 50 72 69 63 65 3d 74 68 69 73 2e 67 65 74 47 sPrice=this.getG 00007440: 61 73 50 72 69 63 65 28 29 29 3b 65 6c 73 65 7b asPrice());else{ 00007450: 63 6f 6e 73 74 20 65 3d 79 69 65 6c 64 20 74 68 const e=yield th 00007460: 69 73 2e 67 65 74 46 65 65 44 61 74 61 28 29 3b is.getFeeData(); 00007470: 69 66 28 6e 75 6c 6c 3d 3d 74 2e 74 79 70 65 29 if(null==t.type) 00007480: 69 66 28 6e 75 6c 6c 21 3d 65 2e 6d 61 78 46 65 if(null!=e.maxFe 00007490: 65 50 65 72 47 61 73 26 26 6e 75 6c 6c 21 3d 65 ePerGas&&null!=e 000074a0: 2e 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 .maxPriorityFeeP 000074b0: 65 72 47 61 73 29 69 66 28 74 2e 74 79 70 65 3d erGas)if(t.type= 000074c0: 32 2c 6e 75 6c 6c 21 3d 74 2e 67 61 73 50 72 69 2,null!=t.gasPri 000074d0: 63 65 29 7b 63 6f 6e 73 74 20 65 3d 74 2e 67 61 ce){const e=t.ga 000074e0: 73 50 72 69 63 65 3b 64 65 6c 65 74 65 20 74 2e sPrice;delete t. 000074f0: 67 61 73 50 72 69 63 65 2c 74 2e 6d 61 78 46 65 gasPrice,t.maxFe 00007500: 65 50 65 72 47 61 73 3d 65 2c 74 2e 6d 61 78 50 ePerGas=e,t.maxP 00007510: 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 riorityFeePerGas 00007520: 3d 65 7d 65 6c 73 65 20 6e 75 6c 6c 3d 3d 74 2e =e}else null==t. 00007530: 6d 61 78 46 65 65 50 65 72 47 61 73 26 26 28 74 maxFeePerGas&&(t 00007540: 2e 6d 61 78 46 65 65 50 65 72 47 61 73 3d 65 2e .maxFeePerGas=e. 00007550: 6d 61 78 46 65 65 50 65 72 47 61 73 29 2c 6e 75 maxFeePerGas),nu 00007560: 6c 6c 3d 3d 74 2e 6d 61 78 50 72 69 6f 72 69 74 ll==t.maxPriorit 00007570: 79 46 65 65 50 65 72 47 61 73 26 26 28 74 2e 6d yFeePerGas&&(t.m 00007580: 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 axPriorityFeePer 00007590: 47 61 73 3d 65 2e 6d 61 78 50 72 69 6f 72 69 74 Gas=e.maxPriorit 000075a0: 79 46 65 65 50 65 72 47 61 73 29 3b 65 6c 73 65 yFeePerGas);else 000075b0: 20 6e 75 6c 6c 21 3d 65 2e 67 61 73 50 72 69 63 null!=e.gasPric 000075c0: 65 3f 28 6e 26 26 6c 6e 2e 74 68 72 6f 77 45 72 e?(n&&ln.throwEr 000075d0: 72 6f 72 28 22 6e 65 74 77 6f 72 6b 20 64 6f 65 ror("network doe 000075e0: 73 20 6e 6f 74 20 73 75 70 70 6f 72 74 20 45 49 s not support EI 000075f0: 50 2d 31 35 35 39 22 2c 79 2e 65 72 72 6f 72 73 P-1559",y.errors 00007600: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 00007610: 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f RATION,{operatio 00007620: 6e 3a 22 70 6f 70 75 6c 61 74 65 54 72 61 6e 73 n:"populateTrans 00007630: 61 63 74 69 6f 6e 22 7d 29 2c 6e 75 6c 6c 3d 3d action"}),null== 00007640: 74 2e 67 61 73 50 72 69 63 65 26 26 28 74 2e 67 t.gasPrice&&(t.g 00007650: 61 73 50 72 69 63 65 3d 65 2e 67 61 73 50 72 69 asPrice=e.gasPri 00007660: 63 65 29 2c 74 2e 74 79 70 65 3d 30 29 3a 6c 6e ce),t.type=0):ln 00007670: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 66 61 69 .throwError("fai 00007680: 6c 65 64 20 74 6f 20 67 65 74 20 63 6f 6e 73 69 led to get consi 00007690: 73 74 65 6e 74 20 66 65 65 20 64 61 74 61 22 2c stent fee data", 000076a0: 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f y.errors.UNSUPPO 000076b0: 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b RTED_OPERATION,{ 000076c0: 6f 70 65 72 61 74 69 6f 6e 3a 22 73 69 67 6e 65 operation:"signe 000076d0: 72 2e 67 65 74 46 65 65 44 61 74 61 22 7d 29 3b r.getFeeData"}); 000076e0: 65 6c 73 65 20 32 3d 3d 3d 74 2e 74 79 70 65 26 else 2===t.type& 000076f0: 26 28 6e 75 6c 6c 3d 3d 74 2e 6d 61 78 46 65 65 &(null==t.maxFee 00007700: 50 65 72 47 61 73 26 26 28 74 2e 6d 61 78 46 65 PerGas&&(t.maxFe 00007710: 65 50 65 72 47 61 73 3d 65 2e 6d 61 78 46 65 65 ePerGas=e.maxFee 00007720: 50 65 72 47 61 73 29 2c 6e 75 6c 6c 3d 3d 74 2e PerGas),null==t. 00007730: 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 maxPriorityFeePe 00007740: 72 47 61 73 26 26 28 74 2e 6d 61 78 50 72 69 6f rGas&&(t.maxPrio 00007750: 72 69 74 79 46 65 65 50 65 72 47 61 73 3d 65 2e rityFeePerGas=e. 00007760: 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 maxPriorityFeePe 00007770: 72 47 61 73 29 29 7d 65 6c 73 65 20 74 2e 74 79 rGas))}else t.ty 00007780: 70 65 3d 32 3b 72 65 74 75 72 6e 20 6e 75 6c 6c pe=2;return null 00007790: 3d 3d 74 2e 6e 6f 6e 63 65 26 26 28 74 2e 6e 6f ==t.nonce&&(t.no 000077a0: 6e 63 65 3d 74 68 69 73 2e 67 65 74 54 72 61 6e nce=this.getTran 000077b0: 73 61 63 74 69 6f 6e 43 6f 75 6e 74 28 22 70 65 sactionCount("pe 000077c0: 6e 64 69 6e 67 22 29 29 2c 6e 75 6c 6c 3d 3d 74 nding")),null==t 000077d0: 2e 67 61 73 4c 69 6d 69 74 26 26 28 74 2e 67 61 .gasLimit&&(t.ga 000077e0: 73 4c 69 6d 69 74 3d 74 68 69 73 2e 65 73 74 69 sLimit=this.esti 000077f0: 6d 61 74 65 47 61 73 28 74 29 2e 63 61 74 63 68 mateGas(t).catch 00007800: 28 28 65 3d 3e 7b 69 66 28 75 6e 2e 69 6e 64 65 ((e=>{if(un.inde 00007810: 78 4f 66 28 65 2e 63 6f 64 65 29 3e 3d 30 29 74 xOf(e.code)>=0)t 00007820: 68 72 6f 77 20 65 3b 72 65 74 75 72 6e 20 6c 6e hrow e;return ln 00007830: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 63 61 6e .throwError("can 00007840: 6e 6f 74 20 65 73 74 69 6d 61 74 65 20 67 61 73 not estimate gas 00007850: 3b 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 6d 61 ; transaction ma 00007860: 79 20 66 61 69 6c 20 6f 72 20 6d 61 79 20 72 65 y fail or may re 00007870: 71 75 69 72 65 20 6d 61 6e 75 61 6c 20 67 61 73 quire manual gas 00007880: 20 6c 69 6d 69 74 22 2c 79 2e 65 72 72 6f 72 73 limit",y.errors 00007890: 2e 55 4e 50 52 45 44 49 43 54 41 42 4c 45 5f 47 .UNPREDICTABLE_G 000078a0: 41 53 5f 4c 49 4d 49 54 2c 7b 65 72 72 6f 72 3a AS_LIMIT,{error: 000078b0: 65 2c 74 78 3a 74 7d 29 7d 29 29 29 2c 6e 75 6c e,tx:t})}))),nul 000078c0: 6c 3d 3d 74 2e 63 68 61 69 6e 49 64 3f 74 2e 63 l==t.chainId?t.c 000078d0: 68 61 69 6e 49 64 3d 74 68 69 73 2e 67 65 74 43 hainId=this.getC 000078e0: 68 61 69 6e 49 64 28 29 3a 74 2e 63 68 61 69 6e hainId():t.chain 000078f0: 49 64 3d 50 72 6f 6d 69 73 65 2e 61 6c 6c 28 5b Id=Promise.all([ 00007900: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 00007910: 74 2e 63 68 61 69 6e 49 64 29 2c 74 68 69 73 2e t.chainId),this. 00007920: 67 65 74 43 68 61 69 6e 49 64 28 29 5d 29 2e 74 getChainId()]).t 00007930: 68 65 6e 28 28 74 3d 3e 28 30 21 3d 3d 74 5b 31 hen((t=>(0!==t[1 00007940: 5d 26 26 74 5b 30 5d 21 3d 3d 74 5b 31 5d 26 26 ]&&t[0]!==t[1]&& 00007950: 6c 6e 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 ln.throwArgument 00007960: 45 72 72 6f 72 28 22 63 68 61 69 6e 49 64 20 61 Error("chainId a 00007970: 64 64 72 65 73 73 20 6d 69 73 6d 61 74 63 68 22 ddress mismatch" 00007980: 2c 22 74 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 ,"transaction",e 00007990: 29 2c 74 5b 30 5d 29 29 29 2c 79 69 65 6c 64 20 ),t[0]))),yield 000079a0: 72 65 28 74 29 7d 29 29 7d 5f 63 68 65 63 6b 50 re(t)}))}_checkP 000079b0: 72 6f 76 69 64 65 72 28 65 29 7b 74 68 69 73 2e rovider(e){this. 000079c0: 70 72 6f 76 69 64 65 72 7c 7c 6c 6e 2e 74 68 72 provider||ln.thr 000079d0: 6f 77 45 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 owError("missing 000079e0: 20 70 72 6f 76 69 64 65 72 22 2c 79 2e 65 72 72 provider",y.err 000079f0: 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f ors.UNSUPPORTED_ 00007a00: 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 OPERATION,{opera 00007a10: 74 69 6f 6e 3a 65 7c 7c 22 5f 63 68 65 63 6b 50 tion:e||"_checkP 00007a20: 72 6f 76 69 64 65 72 22 7d 29 7d 73 74 61 74 69 rovider"})}stati 00007a30: 63 20 69 73 53 69 67 6e 65 72 28 65 29 7b 72 65 c isSigner(e){re 00007a40: 74 75 72 6e 21 28 21 65 7c 7c 21 65 2e 5f 69 73 turn!(!e||!e._is 00007a50: 53 69 67 6e 65 72 29 7d 7d 63 6c 61 73 73 20 70 Signer)}}class p 00007a60: 6e 20 65 78 74 65 6e 64 73 20 64 6e 7b 63 6f 6e n extends dn{con 00007a70: 73 74 72 75 63 74 6f 72 28 65 2c 74 29 7b 73 75 structor(e,t){su 00007a80: 70 65 72 28 29 2c 74 65 28 74 68 69 73 2c 22 61 per(),te(this,"a 00007a90: 64 64 72 65 73 73 22 2c 65 29 2c 74 65 28 74 68 ddress",e),te(th 00007aa0: 69 73 2c 22 70 72 6f 76 69 64 65 72 22 2c 74 7c is,"provider",t| 00007ab0: 7c 6e 75 6c 6c 29 7d 67 65 74 41 64 64 72 65 73 |null)}getAddres 00007ac0: 73 28 29 7b 72 65 74 75 72 6e 20 50 72 6f 6d 69 s(){return Promi 00007ad0: 73 65 2e 72 65 73 6f 6c 76 65 28 74 68 69 73 2e se.resolve(this. 00007ae0: 61 64 64 72 65 73 73 29 7d 5f 66 61 69 6c 28 65 address)}_fail(e 00007af0: 2c 74 29 7b 72 65 74 75 72 6e 20 50 72 6f 6d 69 ,t){return Promi 00007b00: 73 65 2e 72 65 73 6f 6c 76 65 28 29 2e 74 68 65 se.resolve().the 00007b10: 6e 28 28 28 29 3d 3e 7b 6c 6e 2e 74 68 72 6f 77 n((()=>{ln.throw 00007b20: 45 72 72 6f 72 28 65 2c 79 2e 65 72 72 6f 72 73 Error(e,y.errors 00007b30: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 00007b40: 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f RATION,{operatio 00007b50: 6e 3a 74 7d 29 7d 29 29 7d 73 69 67 6e 4d 65 73 n:t})}))}signMes 00007b60: 73 61 67 65 28 65 29 7b 72 65 74 75 72 6e 20 74 sage(e){return t 00007b70: 68 69 73 2e 5f 66 61 69 6c 28 22 56 6f 69 64 53 his._fail("VoidS 00007b80: 69 67 6e 65 72 20 63 61 6e 6e 6f 74 20 73 69 67 igner cannot sig 00007b90: 6e 20 6d 65 73 73 61 67 65 73 22 2c 22 73 69 67 n messages","sig 00007ba0: 6e 4d 65 73 73 61 67 65 22 29 7d 73 69 67 6e 54 nMessage")}signT 00007bb0: 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 7b 72 65 ransaction(e){re 00007bc0: 74 75 72 6e 20 74 68 69 73 2e 5f 66 61 69 6c 28 turn this._fail( 00007bd0: 22 56 6f 69 64 53 69 67 6e 65 72 20 63 61 6e 6e "VoidSigner cann 00007be0: 6f 74 20 73 69 67 6e 20 74 72 61 6e 73 61 63 74 ot sign transact 00007bf0: 69 6f 6e 73 22 2c 22 73 69 67 6e 54 72 61 6e 73 ions","signTrans 00007c00: 61 63 74 69 6f 6e 22 29 7d 5f 73 69 67 6e 54 79 action")}_signTy 00007c10: 70 65 64 44 61 74 61 28 65 2c 74 2c 6e 29 7b 72 pedData(e,t,n){r 00007c20: 65 74 75 72 6e 20 74 68 69 73 2e 5f 66 61 69 6c eturn this._fail 00007c30: 28 22 56 6f 69 64 53 69 67 6e 65 72 20 63 61 6e ("VoidSigner can 00007c40: 6e 6f 74 20 73 69 67 6e 20 74 79 70 65 64 20 64 not sign typed d 00007c50: 61 74 61 22 2c 22 73 69 67 6e 54 79 70 65 64 44 ata","signTypedD 00007c60: 61 74 61 22 29 7d 63 6f 6e 6e 65 63 74 28 65 29 ata")}connect(e) 00007c70: 7b 72 65 74 75 72 6e 20 6e 65 77 20 70 6e 28 74 {return new pn(t 00007c80: 68 69 73 2e 61 64 64 72 65 73 73 2c 65 29 7d 7d his.address,e)}} 00007c90: 76 61 72 20 66 6e 3d 6e 28 33 33 37 31 35 29 2c var fn=n(33715), 00007ca0: 68 6e 3d 6e 2e 6e 28 66 6e 29 3b 22 75 6e 64 65 hn=n.n(fn);"unde 00007cb0: 66 69 6e 65 64 22 21 3d 74 79 70 65 6f 66 20 67 fined"!=typeof g 00007cc0: 6c 6f 62 61 6c 54 68 69 73 3f 67 6c 6f 62 61 6c lobalThis?global 00007cd0: 54 68 69 73 3a 22 75 6e 64 65 66 69 6e 65 64 22 This:"undefined" 00007ce0: 21 3d 74 79 70 65 6f 66 20 77 69 6e 64 6f 77 3f !=typeof window? 00007cf0: 77 69 6e 64 6f 77 3a 76 6f 69 64 20 30 21 3d 3d window:void 0!== 00007d00: 6e 2e 67 3f 6e 2e 67 3a 22 75 6e 64 65 66 69 6e n.g?n.g:"undefin 00007d10: 65 64 22 21 3d 74 79 70 65 6f 66 20 73 65 6c 66 ed"!=typeof self 00007d20: 26 26 73 65 6c 66 3b 66 75 6e 63 74 69 6f 6e 20 &&self;function 00007d30: 6d 6e 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e mn(e,t,n){return 00007d40: 20 6e 3d 7b 70 61 74 68 3a 74 2c 65 78 70 6f 72 n={path:t,expor 00007d50: 74 73 3a 7b 7d 2c 72 65 71 75 69 72 65 3a 66 75 ts:{},require:fu 00007d60: 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 74 75 nction(e,t){retu 00007d70: 72 6e 20 66 75 6e 63 74 69 6f 6e 28 29 7b 74 68 rn function(){th 00007d80: 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 44 row new Error("D 00007d90: 79 6e 61 6d 69 63 20 72 65 71 75 69 72 65 73 20 ynamic requires 00007da0: 61 72 65 20 6e 6f 74 20 63 75 72 72 65 6e 74 6c are not currentl 00007db0: 79 20 73 75 70 70 6f 72 74 65 64 20 62 79 20 40 y supported by @ 00007dc0: 72 6f 6c 6c 75 70 2f 70 6c 75 67 69 6e 2d 63 6f rollup/plugin-co 00007dd0: 6d 6d 6f 6e 6a 73 22 29 7d 28 6e 75 6c 6c 3d 3d mmonjs")}(null== 00007de0: 74 26 26 6e 2e 70 61 74 68 29 7d 7d 2c 65 28 6e t&&n.path)}},e(n 00007df0: 2c 6e 2e 65 78 70 6f 72 74 73 29 2c 6e 2e 65 78 ,n.exports),n.ex 00007e00: 70 6f 72 74 73 7d 76 61 72 20 67 6e 3d 62 6e 3b ports}var gn=bn; 00007e10: 66 75 6e 63 74 69 6f 6e 20 62 6e 28 65 2c 74 29 function bn(e,t) 00007e20: 7b 69 66 28 21 65 29 74 68 72 6f 77 20 6e 65 77 {if(!e)throw new 00007e30: 20 45 72 72 6f 72 28 74 7c 7c 22 41 73 73 65 72 Error(t||"Asser 00007e40: 74 69 6f 6e 20 66 61 69 6c 65 64 22 29 7d 62 6e tion failed")}bn 00007e50: 2e 65 71 75 61 6c 3d 66 75 6e 63 74 69 6f 6e 28 .equal=function( 00007e60: 65 2c 74 2c 6e 29 7b 69 66 28 65 21 3d 74 29 74 e,t,n){if(e!=t)t 00007e70: 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 6e hrow new Error(n 00007e80: 7c 7c 22 41 73 73 65 72 74 69 6f 6e 20 66 61 69 ||"Assertion fai 00007e90: 6c 65 64 3a 20 22 2b 65 2b 22 20 21 3d 20 22 2b led: "+e+" != "+ 00007ea0: 74 29 7d 3b 76 61 72 20 79 6e 3d 6d 6e 28 28 66 t)};var yn=mn((f 00007eb0: 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 76 61 72 unction(e,t){var 00007ec0: 20 6e 3d 74 3b 66 75 6e 63 74 69 6f 6e 20 72 28 n=t;function r( 00007ed0: 65 29 7b 72 65 74 75 72 6e 20 31 3d 3d 3d 65 2e e){return 1===e. 00007ee0: 6c 65 6e 67 74 68 3f 22 30 22 2b 65 3a 65 7d 66 length?"0"+e:e}f 00007ef0: 75 6e 63 74 69 6f 6e 20 6f 28 65 29 7b 66 6f 72 unction o(e){for 00007f00: 28 76 61 72 20 74 3d 22 22 2c 6e 3d 30 3b 6e 3c (var t="",n=0;n< 00007f10: 65 2e 6c 65 6e 67 74 68 3b 6e 2b 2b 29 74 2b 3d e.length;n++)t+= 00007f20: 72 28 65 5b 6e 5d 2e 74 6f 53 74 72 69 6e 67 28 r(e[n].toString( 00007f30: 31 36 29 29 3b 72 65 74 75 72 6e 20 74 7d 6e 2e 16));return t}n. 00007f40: 74 6f 41 72 72 61 79 3d 66 75 6e 63 74 69 6f 6e toArray=function 00007f50: 28 65 2c 74 29 7b 69 66 28 41 72 72 61 79 2e 69 (e,t){if(Array.i 00007f60: 73 41 72 72 61 79 28 65 29 29 72 65 74 75 72 6e sArray(e))return 00007f70: 20 65 2e 73 6c 69 63 65 28 29 3b 69 66 28 21 65 e.slice();if(!e 00007f80: 29 72 65 74 75 72 6e 5b 5d 3b 76 61 72 20 6e 3d )return[];var n= 00007f90: 5b 5d 3b 69 66 28 22 73 74 72 69 6e 67 22 21 3d [];if("string"!= 00007fa0: 74 79 70 65 6f 66 20 65 29 7b 66 6f 72 28 76 61 typeof e){for(va 00007fb0: 72 20 72 3d 30 3b 72 3c 65 2e 6c 65 6e 67 74 68 r r=0;r<e.length 00007fc0: 3b 72 2b 2b 29 6e 5b 72 5d 3d 30 7c 65 5b 72 5d ;r++)n[r]=0|e[r] 00007fd0: 3b 72 65 74 75 72 6e 20 6e 7d 69 66 28 22 68 65 ;return n}if("he 00007fe0: 78 22 3d 3d 3d 74 29 7b 28 65 3d 65 2e 72 65 70 x"===t){(e=e.rep 00007ff0: 6c 61 63 65 28 2f 5b 5e 61 2d 7a 30 2d 39 5d 2b lace(/[^a-z0-9]+ 00008000: 2f 67 69 2c 22 22 29 29 2e 6c 65 6e 67 74 68 25 /gi,"")).length% 00008010: 32 21 3d 30 26 26 28 65 3d 22 30 22 2b 65 29 3b 2!=0&&(e="0"+e); 00008020: 66 6f 72 28 72 3d 30 3b 72 3c 65 2e 6c 65 6e 67 for(r=0;r<e.leng 00008030: 74 68 3b 72 2b 3d 32 29 6e 2e 70 75 73 68 28 70 th;r+=2)n.push(p 00008040: 61 72 73 65 49 6e 74 28 65 5b 72 5d 2b 65 5b 72 arseInt(e[r]+e[r 00008050: 2b 31 5d 2c 31 36 29 29 7d 65 6c 73 65 20 66 6f +1],16))}else fo 00008060: 72 28 72 3d 30 3b 72 3c 65 2e 6c 65 6e 67 74 68 r(r=0;r<e.length 00008070: 3b 72 2b 2b 29 7b 76 61 72 20 6f 3d 65 2e 63 68 ;r++){var o=e.ch 00008080: 61 72 43 6f 64 65 41 74 28 72 29 2c 69 3d 6f 3e arCodeAt(r),i=o> 00008090: 3e 38 2c 61 3d 32 35 35 26 6f 3b 69 3f 6e 2e 70 >8,a=255&o;i?n.p 000080a0: 75 73 68 28 69 2c 61 29 3a 6e 2e 70 75 73 68 28 ush(i,a):n.push( 000080b0: 61 29 7d 72 65 74 75 72 6e 20 6e 7d 2c 6e 2e 7a a)}return n},n.z 000080c0: 65 72 6f 32 3d 72 2c 6e 2e 74 6f 48 65 78 3d 6f ero2=r,n.toHex=o 000080d0: 2c 6e 2e 65 6e 63 6f 64 65 3d 66 75 6e 63 74 69 ,n.encode=functi 000080e0: 6f 6e 28 65 2c 74 29 7b 72 65 74 75 72 6e 22 68 on(e,t){return"h 000080f0: 65 78 22 3d 3d 3d 74 3f 6f 28 65 29 3a 65 7d 7d ex"===t?o(e):e}} 00008100: 29 29 2c 76 6e 3d 6d 6e 28 28 66 75 6e 63 74 69 )),vn=mn((functi 00008110: 6f 6e 28 65 2c 74 29 7b 76 61 72 20 6e 3d 74 3b on(e,t){var n=t; 00008120: 6e 2e 61 73 73 65 72 74 3d 67 6e 2c 6e 2e 74 6f n.assert=gn,n.to 00008130: 41 72 72 61 79 3d 79 6e 2e 74 6f 41 72 72 61 79 Array=yn.toArray 00008140: 2c 6e 2e 7a 65 72 6f 32 3d 79 6e 2e 7a 65 72 6f ,n.zero2=yn.zero 00008150: 32 2c 6e 2e 74 6f 48 65 78 3d 79 6e 2e 74 6f 48 2,n.toHex=yn.toH 00008160: 65 78 2c 6e 2e 65 6e 63 6f 64 65 3d 79 6e 2e 65 ex,n.encode=yn.e 00008170: 6e 63 6f 64 65 2c 6e 2e 67 65 74 4e 41 46 3d 66 ncode,n.getNAF=f 00008180: 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 7b 76 unction(e,t,n){v 00008190: 61 72 20 72 3d 6e 65 77 20 41 72 72 61 79 28 4d ar r=new Array(M 000081a0: 61 74 68 2e 6d 61 78 28 65 2e 62 69 74 4c 65 6e ath.max(e.bitLen 000081b0: 67 74 68 28 29 2c 6e 29 2b 31 29 3b 72 2e 66 69 gth(),n)+1);r.fi 000081c0: 6c 6c 28 30 29 3b 66 6f 72 28 76 61 72 20 6f 3d ll(0);for(var o= 000081d0: 31 3c 3c 74 2b 31 2c 69 3d 65 2e 63 6c 6f 6e 65 1<<t+1,i=e.clone 000081e0: 28 29 2c 61 3d 30 3b 61 3c 72 2e 6c 65 6e 67 74 (),a=0;a<r.lengt 000081f0: 68 3b 61 2b 2b 29 7b 76 61 72 20 73 2c 6c 3d 69 h;a++){var s,l=i 00008200: 2e 61 6e 64 6c 6e 28 6f 2d 31 29 3b 69 2e 69 73 .andln(o-1);i.is 00008210: 4f 64 64 28 29 3f 28 73 3d 6c 3e 28 6f 3e 3e 31 Odd()?(s=l>(o>>1 00008220: 29 2d 31 3f 28 6f 3e 3e 31 29 2d 6c 3a 6c 2c 69 )-1?(o>>1)-l:l,i 00008230: 2e 69 73 75 62 6e 28 73 29 29 3a 73 3d 30 2c 72 .isubn(s)):s=0,r 00008240: 5b 61 5d 3d 73 2c 69 2e 69 75 73 68 72 6e 28 31 [a]=s,i.iushrn(1 00008250: 29 7d 72 65 74 75 72 6e 20 72 7d 2c 6e 2e 67 65 )}return r},n.ge 00008260: 74 4a 53 46 3d 66 75 6e 63 74 69 6f 6e 28 65 2c tJSF=function(e, 00008270: 74 29 7b 76 61 72 20 6e 3d 5b 5b 5d 2c 5b 5d 5d t){var n=[[],[]] 00008280: 3b 65 3d 65 2e 63 6c 6f 6e 65 28 29 2c 74 3d 74 ;e=e.clone(),t=t 00008290: 2e 63 6c 6f 6e 65 28 29 3b 66 6f 72 28 76 61 72 .clone();for(var 000082a0: 20 72 2c 6f 3d 30 2c 69 3d 30 3b 65 2e 63 6d 70 r,o=0,i=0;e.cmp 000082b0: 6e 28 2d 6f 29 3e 30 7c 7c 74 2e 63 6d 70 6e 28 n(-o)>0||t.cmpn( 000082c0: 2d 69 29 3e 30 3b 29 7b 76 61 72 20 61 2c 73 2c -i)>0;){var a,s, 000082d0: 6c 3d 65 2e 61 6e 64 6c 6e 28 33 29 2b 6f 26 33 l=e.andln(3)+o&3 000082e0: 2c 63 3d 74 2e 61 6e 64 6c 6e 28 33 29 2b 69 26 ,c=t.andln(3)+i& 000082f0: 33 3b 33 3d 3d 3d 6c 26 26 28 6c 3d 2d 31 29 2c 3;3===l&&(l=-1), 00008300: 33 3d 3d 3d 63 26 26 28 63 3d 2d 31 29 2c 61 3d 3===c&&(c=-1),a= 00008310: 30 3d 3d 28 31 26 6c 29 3f 30 3a 33 21 3d 3d 28 0==(1&l)?0:3!==( 00008320: 72 3d 65 2e 61 6e 64 6c 6e 28 37 29 2b 6f 26 37 r=e.andln(7)+o&7 00008330: 29 26 26 35 21 3d 3d 72 7c 7c 32 21 3d 3d 63 3f )&&5!==r||2!==c? 00008340: 6c 3a 2d 6c 2c 6e 5b 30 5d 2e 70 75 73 68 28 61 l:-l,n[0].push(a 00008350: 29 2c 73 3d 30 3d 3d 28 31 26 63 29 3f 30 3a 33 ),s=0==(1&c)?0:3 00008360: 21 3d 3d 28 72 3d 74 2e 61 6e 64 6c 6e 28 37 29 !==(r=t.andln(7) 00008370: 2b 69 26 37 29 26 26 35 21 3d 3d 72 7c 7c 32 21 +i&7)&&5!==r||2! 00008380: 3d 3d 6c 3f 63 3a 2d 63 2c 6e 5b 31 5d 2e 70 75 ==l?c:-c,n[1].pu 00008390: 73 68 28 73 29 2c 32 2a 6f 3d 3d 3d 61 2b 31 26 sh(s),2*o===a+1& 000083a0: 26 28 6f 3d 31 2d 6f 29 2c 32 2a 69 3d 3d 3d 73 &(o=1-o),2*i===s 000083b0: 2b 31 26 26 28 69 3d 31 2d 69 29 2c 65 2e 69 75 +1&&(i=1-i),e.iu 000083c0: 73 68 72 6e 28 31 29 2c 74 2e 69 75 73 68 72 6e shrn(1),t.iushrn 000083d0: 28 31 29 7d 72 65 74 75 72 6e 20 6e 7d 2c 6e 2e (1)}return n},n. 000083e0: 63 61 63 68 65 64 50 72 6f 70 65 72 74 79 3d 66 cachedProperty=f 000083f0: 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 7b 76 unction(e,t,n){v 00008400: 61 72 20 72 3d 22 5f 22 2b 74 3b 65 2e 70 72 6f ar r="_"+t;e.pro 00008410: 74 6f 74 79 70 65 5b 74 5d 3d 66 75 6e 63 74 69 totype[t]=functi 00008420: 6f 6e 28 29 7b 72 65 74 75 72 6e 20 76 6f 69 64 on(){return void 00008430: 20 30 21 3d 3d 74 68 69 73 5b 72 5d 3f 74 68 69 0!==this[r]?thi 00008440: 73 5b 72 5d 3a 74 68 69 73 5b 72 5d 3d 6e 2e 63 s[r]:this[r]=n.c 00008450: 61 6c 6c 28 74 68 69 73 29 7d 7d 2c 6e 2e 70 61 all(this)}},n.pa 00008460: 72 73 65 42 79 74 65 73 3d 66 75 6e 63 74 69 6f rseBytes=functio 00008470: 6e 28 65 29 7b 72 65 74 75 72 6e 22 73 74 72 69 n(e){return"stri 00008480: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 6e 2e ng"==typeof e?n. 00008490: 74 6f 41 72 72 61 79 28 65 2c 22 68 65 78 22 29 toArray(e,"hex") 000084a0: 3a 65 7d 2c 6e 2e 69 6e 74 46 72 6f 6d 4c 45 3d :e},n.intFromLE= 000084b0: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 function(e){retu 000084c0: 72 6e 20 6e 65 77 28 7a 28 29 29 28 65 2c 22 68 rn new(z())(e,"h 000084d0: 65 78 22 2c 22 6c 65 22 29 7d 7d 29 29 2c 53 6e ex","le")}})),Sn 000084e0: 3d 76 6e 2e 67 65 74 4e 41 46 2c 45 6e 3d 76 6e =vn.getNAF,En=vn 000084f0: 2e 67 65 74 4a 53 46 2c 5f 6e 3d 76 6e 2e 61 73 .getJSF,_n=vn.as 00008500: 73 65 72 74 3b 66 75 6e 63 74 69 6f 6e 20 77 6e sert;function wn 00008510: 28 65 2c 74 29 7b 74 68 69 73 2e 74 79 70 65 3d (e,t){this.type= 00008520: 65 2c 74 68 69 73 2e 70 3d 6e 65 77 28 7a 28 29 e,this.p=new(z() 00008530: 29 28 74 2e 70 2c 31 36 29 2c 74 68 69 73 2e 72 )(t.p,16),this.r 00008540: 65 64 3d 74 2e 70 72 69 6d 65 3f 7a 28 29 2e 72 ed=t.prime?z().r 00008550: 65 64 28 74 2e 70 72 69 6d 65 29 3a 7a 28 29 2e ed(t.prime):z(). 00008560: 6d 6f 6e 74 28 74 68 69 73 2e 70 29 2c 74 68 69 mont(this.p),thi 00008570: 73 2e 7a 65 72 6f 3d 6e 65 77 28 7a 28 29 29 28 s.zero=new(z())( 00008580: 30 29 2e 74 6f 52 65 64 28 74 68 69 73 2e 72 65 0).toRed(this.re 00008590: 64 29 2c 74 68 69 73 2e 6f 6e 65 3d 6e 65 77 28 d),this.one=new( 000085a0: 7a 28 29 29 28 31 29 2e 74 6f 52 65 64 28 74 68 z())(1).toRed(th 000085b0: 69 73 2e 72 65 64 29 2c 74 68 69 73 2e 74 77 6f is.red),this.two 000085c0: 3d 6e 65 77 28 7a 28 29 29 28 32 29 2e 74 6f 52 =new(z())(2).toR 000085d0: 65 64 28 74 68 69 73 2e 72 65 64 29 2c 74 68 69 ed(this.red),thi 000085e0: 73 2e 6e 3d 74 2e 6e 26 26 6e 65 77 28 7a 28 29 s.n=t.n&&new(z() 000085f0: 29 28 74 2e 6e 2c 31 36 29 2c 74 68 69 73 2e 67 )(t.n,16),this.g 00008600: 3d 74 2e 67 26 26 74 68 69 73 2e 70 6f 69 6e 74 =t.g&&this.point 00008610: 46 72 6f 6d 4a 53 4f 4e 28 74 2e 67 2c 74 2e 67 FromJSON(t.g,t.g 00008620: 52 65 64 29 2c 74 68 69 73 2e 5f 77 6e 61 66 54 Red),this._wnafT 00008630: 31 3d 6e 65 77 20 41 72 72 61 79 28 34 29 2c 74 1=new Array(4),t 00008640: 68 69 73 2e 5f 77 6e 61 66 54 32 3d 6e 65 77 20 his._wnafT2=new 00008650: 41 72 72 61 79 28 34 29 2c 74 68 69 73 2e 5f 77 Array(4),this._w 00008660: 6e 61 66 54 33 3d 6e 65 77 20 41 72 72 61 79 28 nafT3=new Array( 00008670: 34 29 2c 74 68 69 73 2e 5f 77 6e 61 66 54 34 3d 4),this._wnafT4= 00008680: 6e 65 77 20 41 72 72 61 79 28 34 29 2c 74 68 69 new Array(4),thi 00008690: 73 2e 5f 62 69 74 4c 65 6e 67 74 68 3d 74 68 69 s._bitLength=thi 000086a0: 73 2e 6e 3f 74 68 69 73 2e 6e 2e 62 69 74 4c 65 s.n?this.n.bitLe 000086b0: 6e 67 74 68 28 29 3a 30 3b 76 61 72 20 6e 3d 74 ngth():0;var n=t 000086c0: 68 69 73 2e 6e 26 26 74 68 69 73 2e 70 2e 64 69 his.n&&this.p.di 000086d0: 76 28 74 68 69 73 2e 6e 29 3b 21 6e 7c 7c 6e 2e v(this.n);!n||n. 000086e0: 63 6d 70 6e 28 31 30 30 29 3e 30 3f 74 68 69 73 cmpn(100)>0?this 000086f0: 2e 72 65 64 4e 3d 6e 75 6c 6c 3a 28 74 68 69 73 .redN=null:(this 00008700: 2e 5f 6d 61 78 77 65 6c 6c 54 72 69 63 6b 3d 21 ._maxwellTrick=! 00008710: 30 2c 74 68 69 73 2e 72 65 64 4e 3d 74 68 69 73 0,this.redN=this 00008720: 2e 6e 2e 74 6f 52 65 64 28 74 68 69 73 2e 72 65 .n.toRed(this.re 00008730: 64 29 29 7d 76 61 72 20 78 6e 3d 77 6e 3b 66 75 d))}var xn=wn;fu 00008740: 6e 63 74 69 6f 6e 20 54 6e 28 65 2c 74 29 7b 74 nction Tn(e,t){t 00008750: 68 69 73 2e 63 75 72 76 65 3d 65 2c 74 68 69 73 his.curve=e,this 00008760: 2e 74 79 70 65 3d 74 2c 74 68 69 73 2e 70 72 65 .type=t,this.pre 00008770: 63 6f 6d 70 75 74 65 64 3d 6e 75 6c 6c 7d 77 6e computed=null}wn 00008780: 2e 70 72 6f 74 6f 74 79 70 65 2e 70 6f 69 6e 74 .prototype.point 00008790: 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 74 68 72 6f =function(){thro 000087a0: 77 20 6e 65 77 20 45 72 72 6f 72 28 22 4e 6f 74 w new Error("Not 000087b0: 20 69 6d 70 6c 65 6d 65 6e 74 65 64 22 29 7d 2c implemented")}, 000087c0: 77 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 76 61 6c wn.prototype.val 000087d0: 69 64 61 74 65 3d 66 75 6e 63 74 69 6f 6e 28 29 idate=function() 000087e0: 7b 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 {throw new Error 000087f0: 28 22 4e 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 65 ("Not implemente 00008800: 64 22 29 7d 2c 77 6e 2e 70 72 6f 74 6f 74 79 70 d")},wn.prototyp 00008810: 65 2e 5f 66 69 78 65 64 4e 61 66 4d 75 6c 3d 66 e._fixedNafMul=f 00008820: 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 5f 6e 28 unction(e,t){_n( 00008830: 65 2e 70 72 65 63 6f 6d 70 75 74 65 64 29 3b 76 e.precomputed);v 00008840: 61 72 20 6e 3d 65 2e 5f 67 65 74 44 6f 75 62 6c ar n=e._getDoubl 00008850: 65 73 28 29 2c 72 3d 53 6e 28 74 2c 31 2c 74 68 es(),r=Sn(t,1,th 00008860: 69 73 2e 5f 62 69 74 4c 65 6e 67 74 68 29 2c 6f is._bitLength),o 00008870: 3d 28 31 3c 3c 6e 2e 73 74 65 70 2b 31 29 2d 28 =(1<<n.step+1)-( 00008880: 6e 2e 73 74 65 70 25 32 3d 3d 30 3f 32 3a 31 29 n.step%2==0?2:1) 00008890: 3b 6f 2f 3d 33 3b 76 61 72 20 69 2c 61 2c 73 3d ;o/=3;var i,a,s= 000088a0: 5b 5d 3b 66 6f 72 28 69 3d 30 3b 69 3c 72 2e 6c [];for(i=0;i<r.l 000088b0: 65 6e 67 74 68 3b 69 2b 3d 6e 2e 73 74 65 70 29 ength;i+=n.step) 000088c0: 7b 61 3d 30 3b 66 6f 72 28 76 61 72 20 6c 3d 69 {a=0;for(var l=i 000088d0: 2b 6e 2e 73 74 65 70 2d 31 3b 6c 3e 3d 69 3b 6c +n.step-1;l>=i;l 000088e0: 2d 2d 29 61 3d 28 61 3c 3c 31 29 2b 72 5b 6c 5d --)a=(a<<1)+r[l] 000088f0: 3b 73 2e 70 75 73 68 28 61 29 7d 66 6f 72 28 76 ;s.push(a)}for(v 00008900: 61 72 20 63 3d 74 68 69 73 2e 6a 70 6f 69 6e 74 ar c=this.jpoint 00008910: 28 6e 75 6c 6c 2c 6e 75 6c 6c 2c 6e 75 6c 6c 29 (null,null,null) 00008920: 2c 75 3d 74 68 69 73 2e 6a 70 6f 69 6e 74 28 6e ,u=this.jpoint(n 00008930: 75 6c 6c 2c 6e 75 6c 6c 2c 6e 75 6c 6c 29 2c 64 ull,null,null),d 00008940: 3d 6f 3b 64 3e 30 3b 64 2d 2d 29 7b 66 6f 72 28 =o;d>0;d--){for( 00008950: 69 3d 30 3b 69 3c 73 2e 6c 65 6e 67 74 68 3b 69 i=0;i<s.length;i 00008960: 2b 2b 29 28 61 3d 73 5b 69 5d 29 3d 3d 3d 64 3f ++)(a=s[i])===d? 00008970: 75 3d 75 2e 6d 69 78 65 64 41 64 64 28 6e 2e 70 u=u.mixedAdd(n.p 00008980: 6f 69 6e 74 73 5b 69 5d 29 3a 61 3d 3d 3d 2d 64 oints[i]):a===-d 00008990: 26 26 28 75 3d 75 2e 6d 69 78 65 64 41 64 64 28 &&(u=u.mixedAdd( 000089a0: 6e 2e 70 6f 69 6e 74 73 5b 69 5d 2e 6e 65 67 28 n.points[i].neg( 000089b0: 29 29 29 3b 63 3d 63 2e 61 64 64 28 75 29 7d 72 )));c=c.add(u)}r 000089c0: 65 74 75 72 6e 20 63 2e 74 6f 50 28 29 7d 2c 77 eturn c.toP()},w 000089d0: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 77 6e 61 n.prototype._wna 000089e0: 66 4d 75 6c 3d 66 75 6e 63 74 69 6f 6e 28 65 2c fMul=function(e, 000089f0: 74 29 7b 76 61 72 20 6e 3d 34 2c 72 3d 65 2e 5f t){var n=4,r=e._ 00008a00: 67 65 74 4e 41 46 50 6f 69 6e 74 73 28 6e 29 3b getNAFPoints(n); 00008a10: 6e 3d 72 2e 77 6e 64 3b 66 6f 72 28 76 61 72 20 n=r.wnd;for(var 00008a20: 6f 3d 72 2e 70 6f 69 6e 74 73 2c 69 3d 53 6e 28 o=r.points,i=Sn( 00008a30: 74 2c 6e 2c 74 68 69 73 2e 5f 62 69 74 4c 65 6e t,n,this._bitLen 00008a40: 67 74 68 29 2c 61 3d 74 68 69 73 2e 6a 70 6f 69 gth),a=this.jpoi 00008a50: 6e 74 28 6e 75 6c 6c 2c 6e 75 6c 6c 2c 6e 75 6c nt(null,null,nul 00008a60: 6c 29 2c 73 3d 69 2e 6c 65 6e 67 74 68 2d 31 3b l),s=i.length-1; 00008a70: 73 3e 3d 30 3b 73 2d 2d 29 7b 66 6f 72 28 76 61 s>=0;s--){for(va 00008a80: 72 20 6c 3d 30 3b 73 3e 3d 30 26 26 30 3d 3d 3d r l=0;s>=0&&0=== 00008a90: 69 5b 73 5d 3b 73 2d 2d 29 6c 2b 2b 3b 69 66 28 i[s];s--)l++;if( 00008aa0: 73 3e 3d 30 26 26 6c 2b 2b 2c 61 3d 61 2e 64 62 s>=0&&l++,a=a.db 00008ab0: 6c 70 28 6c 29 2c 73 3c 30 29 62 72 65 61 6b 3b lp(l),s<0)break; 00008ac0: 76 61 72 20 63 3d 69 5b 73 5d 3b 5f 6e 28 30 21 var c=i[s];_n(0! 00008ad0: 3d 3d 63 29 2c 61 3d 22 61 66 66 69 6e 65 22 3d ==c),a="affine"= 00008ae0: 3d 3d 65 2e 74 79 70 65 3f 63 3e 30 3f 61 2e 6d ==e.type?c>0?a.m 00008af0: 69 78 65 64 41 64 64 28 6f 5b 63 2d 31 3e 3e 31 ixedAdd(o[c-1>>1 00008b00: 5d 29 3a 61 2e 6d 69 78 65 64 41 64 64 28 6f 5b ]):a.mixedAdd(o[ 00008b10: 2d 63 2d 31 3e 3e 31 5d 2e 6e 65 67 28 29 29 3a -c-1>>1].neg()): 00008b20: 63 3e 30 3f 61 2e 61 64 64 28 6f 5b 63 2d 31 3e c>0?a.add(o[c-1> 00008b30: 3e 31 5d 29 3a 61 2e 61 64 64 28 6f 5b 2d 63 2d >1]):a.add(o[-c- 00008b40: 31 3e 3e 31 5d 2e 6e 65 67 28 29 29 7d 72 65 74 1>>1].neg())}ret 00008b50: 75 72 6e 22 61 66 66 69 6e 65 22 3d 3d 3d 65 2e urn"affine"===e. 00008b60: 74 79 70 65 3f 61 2e 74 6f 50 28 29 3a 61 7d 2c type?a.toP():a}, 00008b70: 77 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 77 6e wn.prototype._wn 00008b80: 61 66 4d 75 6c 41 64 64 3d 66 75 6e 63 74 69 6f afMulAdd=functio 00008b90: 6e 28 65 2c 74 2c 6e 2c 72 2c 6f 29 7b 76 61 72 n(e,t,n,r,o){var 00008ba0: 20 69 2c 61 2c 73 2c 6c 3d 74 68 69 73 2e 5f 77 i,a,s,l=this._w 00008bb0: 6e 61 66 54 31 2c 63 3d 74 68 69 73 2e 5f 77 6e nafT1,c=this._wn 00008bc0: 61 66 54 32 2c 75 3d 74 68 69 73 2e 5f 77 6e 61 afT2,u=this._wna 00008bd0: 66 54 33 2c 64 3d 30 3b 66 6f 72 28 69 3d 30 3b fT3,d=0;for(i=0; 00008be0: 69 3c 72 3b 69 2b 2b 29 7b 76 61 72 20 70 3d 28 i<r;i++){var p=( 00008bf0: 73 3d 74 5b 69 5d 29 2e 5f 67 65 74 4e 41 46 50 s=t[i])._getNAFP 00008c00: 6f 69 6e 74 73 28 65 29 3b 6c 5b 69 5d 3d 70 2e oints(e);l[i]=p. 00008c10: 77 6e 64 2c 63 5b 69 5d 3d 70 2e 70 6f 69 6e 74 wnd,c[i]=p.point 00008c20: 73 7d 66 6f 72 28 69 3d 72 2d 31 3b 69 3e 3d 31 s}for(i=r-1;i>=1 00008c30: 3b 69 2d 3d 32 29 7b 76 61 72 20 66 3d 69 2d 31 ;i-=2){var f=i-1 00008c40: 2c 68 3d 69 3b 69 66 28 31 3d 3d 3d 6c 5b 66 5d ,h=i;if(1===l[f] 00008c50: 26 26 31 3d 3d 3d 6c 5b 68 5d 29 7b 76 61 72 20 &&1===l[h]){var 00008c60: 6d 3d 5b 74 5b 66 5d 2c 6e 75 6c 6c 2c 6e 75 6c m=[t[f],null,nul 00008c70: 6c 2c 74 5b 68 5d 5d 3b 30 3d 3d 3d 74 5b 66 5d l,t[h]];0===t[f] 00008c80: 2e 79 2e 63 6d 70 28 74 5b 68 5d 2e 79 29 3f 28 .y.cmp(t[h].y)?( 00008c90: 6d 5b 31 5d 3d 74 5b 66 5d 2e 61 64 64 28 74 5b m[1]=t[f].add(t[ 00008ca0: 68 5d 29 2c 6d 5b 32 5d 3d 74 5b 66 5d 2e 74 6f h]),m[2]=t[f].to 00008cb0: 4a 28 29 2e 6d 69 78 65 64 41 64 64 28 74 5b 68 J().mixedAdd(t[h 00008cc0: 5d 2e 6e 65 67 28 29 29 29 3a 30 3d 3d 3d 74 5b ].neg())):0===t[ 00008cd0: 66 5d 2e 79 2e 63 6d 70 28 74 5b 68 5d 2e 79 2e f].y.cmp(t[h].y. 00008ce0: 72 65 64 4e 65 67 28 29 29 3f 28 6d 5b 31 5d 3d redNeg())?(m[1]= 00008cf0: 74 5b 66 5d 2e 74 6f 4a 28 29 2e 6d 69 78 65 64 t[f].toJ().mixed 00008d00: 41 64 64 28 74 5b 68 5d 29 2c 6d 5b 32 5d 3d 74 Add(t[h]),m[2]=t 00008d10: 5b 66 5d 2e 61 64 64 28 74 5b 68 5d 2e 6e 65 67 [f].add(t[h].neg 00008d20: 28 29 29 29 3a 28 6d 5b 31 5d 3d 74 5b 66 5d 2e ())):(m[1]=t[f]. 00008d30: 74 6f 4a 28 29 2e 6d 69 78 65 64 41 64 64 28 74 toJ().mixedAdd(t 00008d40: 5b 68 5d 29 2c 6d 5b 32 5d 3d 74 5b 66 5d 2e 74 [h]),m[2]=t[f].t 00008d50: 6f 4a 28 29 2e 6d 69 78 65 64 41 64 64 28 74 5b oJ().mixedAdd(t[ 00008d60: 68 5d 2e 6e 65 67 28 29 29 29 3b 76 61 72 20 67 h].neg()));var g 00008d70: 3d 5b 2d 33 2c 2d 31 2c 2d 35 2c 2d 37 2c 30 2c =[-3,-1,-5,-7,0, 00008d80: 37 2c 35 2c 31 2c 33 5d 2c 62 3d 45 6e 28 6e 5b 7,5,1,3],b=En(n[ 00008d90: 66 5d 2c 6e 5b 68 5d 29 3b 66 6f 72 28 64 3d 4d f],n[h]);for(d=M 00008da0: 61 74 68 2e 6d 61 78 28 62 5b 30 5d 2e 6c 65 6e ath.max(b[0].len 00008db0: 67 74 68 2c 64 29 2c 75 5b 66 5d 3d 6e 65 77 20 gth,d),u[f]=new 00008dc0: 41 72 72 61 79 28 64 29 2c 75 5b 68 5d 3d 6e 65 Array(d),u[h]=ne 00008dd0: 77 20 41 72 72 61 79 28 64 29 2c 61 3d 30 3b 61 w Array(d),a=0;a 00008de0: 3c 64 3b 61 2b 2b 29 7b 76 61 72 20 79 3d 30 7c <d;a++){var y=0| 00008df0: 62 5b 30 5d 5b 61 5d 2c 76 3d 30 7c 62 5b 31 5d b[0][a],v=0|b[1] 00008e00: 5b 61 5d 3b 75 5b 66 5d 5b 61 5d 3d 67 5b 33 2a [a];u[f][a]=g[3* 00008e10: 28 79 2b 31 29 2b 28 76 2b 31 29 5d 2c 75 5b 68 (y+1)+(v+1)],u[h 00008e20: 5d 5b 61 5d 3d 30 2c 63 5b 66 5d 3d 6d 7d 7d 65 ][a]=0,c[f]=m}}e 00008e30: 6c 73 65 20 75 5b 66 5d 3d 53 6e 28 6e 5b 66 5d lse u[f]=Sn(n[f] 00008e40: 2c 6c 5b 66 5d 2c 74 68 69 73 2e 5f 62 69 74 4c ,l[f],this._bitL 00008e50: 65 6e 67 74 68 29 2c 75 5b 68 5d 3d 53 6e 28 6e ength),u[h]=Sn(n 00008e60: 5b 68 5d 2c 6c 5b 68 5d 2c 74 68 69 73 2e 5f 62 [h],l[h],this._b 00008e70: 69 74 4c 65 6e 67 74 68 29 2c 64 3d 4d 61 74 68 itLength),d=Math 00008e80: 2e 6d 61 78 28 75 5b 66 5d 2e 6c 65 6e 67 74 68 .max(u[f].length 00008e90: 2c 64 29 2c 64 3d 4d 61 74 68 2e 6d 61 78 28 75 ,d),d=Math.max(u 00008ea0: 5b 68 5d 2e 6c 65 6e 67 74 68 2c 64 29 7d 76 61 [h].length,d)}va 00008eb0: 72 20 53 3d 74 68 69 73 2e 6a 70 6f 69 6e 74 28 r S=this.jpoint( 00008ec0: 6e 75 6c 6c 2c 6e 75 6c 6c 2c 6e 75 6c 6c 29 2c null,null,null), 00008ed0: 45 3d 74 68 69 73 2e 5f 77 6e 61 66 54 34 3b 66 E=this._wnafT4;f 00008ee0: 6f 72 28 69 3d 64 3b 69 3e 3d 30 3b 69 2d 2d 29 or(i=d;i>=0;i--) 00008ef0: 7b 66 6f 72 28 76 61 72 20 5f 3d 30 3b 69 3e 3d {for(var _=0;i>= 00008f00: 30 3b 29 7b 76 61 72 20 77 3d 21 30 3b 66 6f 72 0;){var w=!0;for 00008f10: 28 61 3d 30 3b 61 3c 72 3b 61 2b 2b 29 45 5b 61 (a=0;a<r;a++)E[a 00008f20: 5d 3d 30 7c 75 5b 61 5d 5b 69 5d 2c 30 21 3d 3d ]=0|u[a][i],0!== 00008f30: 45 5b 61 5d 26 26 28 77 3d 21 31 29 3b 69 66 28 E[a]&&(w=!1);if( 00008f40: 21 77 29 62 72 65 61 6b 3b 5f 2b 2b 2c 69 2d 2d !w)break;_++,i-- 00008f50: 7d 69 66 28 69 3e 3d 30 26 26 5f 2b 2b 2c 53 3d }if(i>=0&&_++,S= 00008f60: 53 2e 64 62 6c 70 28 5f 29 2c 69 3c 30 29 62 72 S.dblp(_),i<0)br 00008f70: 65 61 6b 3b 66 6f 72 28 61 3d 30 3b 61 3c 72 3b eak;for(a=0;a<r; 00008f80: 61 2b 2b 29 7b 76 61 72 20 78 3d 45 5b 61 5d 3b a++){var x=E[a]; 00008f90: 30 21 3d 3d 78 26 26 28 78 3e 30 3f 73 3d 63 5b 0!==x&&(x>0?s=c[ 00008fa0: 61 5d 5b 78 2d 31 3e 3e 31 5d 3a 78 3c 30 26 26 a][x-1>>1]:x<0&& 00008fb0: 28 73 3d 63 5b 61 5d 5b 2d 78 2d 31 3e 3e 31 5d (s=c[a][-x-1>>1] 00008fc0: 2e 6e 65 67 28 29 29 2c 53 3d 22 61 66 66 69 6e .neg()),S="affin 00008fd0: 65 22 3d 3d 3d 73 2e 74 79 70 65 3f 53 2e 6d 69 e"===s.type?S.mi 00008fe0: 78 65 64 41 64 64 28 73 29 3a 53 2e 61 64 64 28 xedAdd(s):S.add( 00008ff0: 73 29 29 7d 7d 66 6f 72 28 69 3d 30 3b 69 3c 72 s))}}for(i=0;i<r 00009000: 3b 69 2b 2b 29 63 5b 69 5d 3d 6e 75 6c 6c 3b 72 ;i++)c[i]=null;r 00009010: 65 74 75 72 6e 20 6f 3f 53 3a 53 2e 74 6f 50 28 eturn o?S:S.toP( 00009020: 29 7d 2c 77 6e 2e 42 61 73 65 50 6f 69 6e 74 3d )},wn.BasePoint= 00009030: 54 6e 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 65 2e Tn,Tn.prototype. 00009040: 65 71 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 74 68 eq=function(){th 00009050: 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 4e row new Error("N 00009060: 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 65 64 22 29 ot implemented") 00009070: 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 76 },Tn.prototype.v 00009080: 61 6c 69 64 61 74 65 3d 66 75 6e 63 74 69 6f 6e alidate=function 00009090: 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 63 (){return this.c 000090a0: 75 72 76 65 2e 76 61 6c 69 64 61 74 65 28 74 68 urve.validate(th 000090b0: 69 73 29 7d 2c 77 6e 2e 70 72 6f 74 6f 74 79 70 is)},wn.prototyp 000090c0: 65 2e 64 65 63 6f 64 65 50 6f 69 6e 74 3d 66 75 e.decodePoint=fu 000090d0: 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 65 3d 76 6e nction(e,t){e=vn 000090e0: 2e 74 6f 41 72 72 61 79 28 65 2c 74 29 3b 76 61 .toArray(e,t);va 000090f0: 72 20 6e 3d 74 68 69 73 2e 70 2e 62 79 74 65 4c r n=this.p.byteL 00009100: 65 6e 67 74 68 28 29 3b 69 66 28 28 34 3d 3d 3d ength();if((4=== 00009110: 65 5b 30 5d 7c 7c 36 3d 3d 3d 65 5b 30 5d 7c 7c e[0]||6===e[0]|| 00009120: 37 3d 3d 3d 65 5b 30 5d 29 26 26 65 2e 6c 65 6e 7===e[0])&&e.len 00009130: 67 74 68 2d 31 3d 3d 32 2a 6e 29 72 65 74 75 72 gth-1==2*n)retur 00009140: 6e 20 36 3d 3d 3d 65 5b 30 5d 3f 5f 6e 28 65 5b n 6===e[0]?_n(e[ 00009150: 65 2e 6c 65 6e 67 74 68 2d 31 5d 25 32 3d 3d 30 e.length-1]%2==0 00009160: 29 3a 37 3d 3d 3d 65 5b 30 5d 26 26 5f 6e 28 65 ):7===e[0]&&_n(e 00009170: 5b 65 2e 6c 65 6e 67 74 68 2d 31 5d 25 32 3d 3d [e.length-1]%2== 00009180: 31 29 2c 74 68 69 73 2e 70 6f 69 6e 74 28 65 2e 1),this.point(e. 00009190: 73 6c 69 63 65 28 31 2c 31 2b 6e 29 2c 65 2e 73 slice(1,1+n),e.s 000091a0: 6c 69 63 65 28 31 2b 6e 2c 31 2b 32 2a 6e 29 29 lice(1+n,1+2*n)) 000091b0: 3b 69 66 28 28 32 3d 3d 3d 65 5b 30 5d 7c 7c 33 ;if((2===e[0]||3 000091c0: 3d 3d 3d 65 5b 30 5d 29 26 26 65 2e 6c 65 6e 67 ===e[0])&&e.leng 000091d0: 74 68 2d 31 3d 3d 3d 6e 29 72 65 74 75 72 6e 20 th-1===n)return 000091e0: 74 68 69 73 2e 70 6f 69 6e 74 46 72 6f 6d 58 28 this.pointFromX( 000091f0: 65 2e 73 6c 69 63 65 28 31 2c 31 2b 6e 29 2c 33 e.slice(1,1+n),3 00009200: 3d 3d 3d 65 5b 30 5d 29 3b 74 68 72 6f 77 20 6e ===e[0]);throw n 00009210: 65 77 20 45 72 72 6f 72 28 22 55 6e 6b 6e 6f 77 ew Error("Unknow 00009220: 6e 20 70 6f 69 6e 74 20 66 6f 72 6d 61 74 22 29 n point format") 00009230: 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 65 },Tn.prototype.e 00009240: 6e 63 6f 64 65 43 6f 6d 70 72 65 73 73 65 64 3d ncodeCompressed= 00009250: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 function(e){retu 00009260: 72 6e 20 74 68 69 73 2e 65 6e 63 6f 64 65 28 65 rn this.encode(e 00009270: 2c 21 30 29 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 ,!0)},Tn.prototy 00009280: 70 65 2e 5f 65 6e 63 6f 64 65 3d 66 75 6e 63 74 pe._encode=funct 00009290: 69 6f 6e 28 65 29 7b 76 61 72 20 74 3d 74 68 69 ion(e){var t=thi 000092a0: 73 2e 63 75 72 76 65 2e 70 2e 62 79 74 65 4c 65 s.curve.p.byteLe 000092b0: 6e 67 74 68 28 29 2c 6e 3d 74 68 69 73 2e 67 65 ngth(),n=this.ge 000092c0: 74 58 28 29 2e 74 6f 41 72 72 61 79 28 22 62 65 tX().toArray("be 000092d0: 22 2c 74 29 3b 72 65 74 75 72 6e 20 65 3f 5b 74 ",t);return e?[t 000092e0: 68 69 73 2e 67 65 74 59 28 29 2e 69 73 45 76 65 his.getY().isEve 000092f0: 6e 28 29 3f 32 3a 33 5d 2e 63 6f 6e 63 61 74 28 n()?2:3].concat( 00009300: 6e 29 3a 5b 34 5d 2e 63 6f 6e 63 61 74 28 6e 2c n):[4].concat(n, 00009310: 74 68 69 73 2e 67 65 74 59 28 29 2e 74 6f 41 72 this.getY().toAr 00009320: 72 61 79 28 22 62 65 22 2c 74 29 29 7d 2c 54 6e ray("be",t))},Tn 00009330: 2e 70 72 6f 74 6f 74 79 70 65 2e 65 6e 63 6f 64 .prototype.encod 00009340: 65 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b e=function(e,t){ 00009350: 72 65 74 75 72 6e 20 76 6e 2e 65 6e 63 6f 64 65 return vn.encode 00009360: 28 74 68 69 73 2e 5f 65 6e 63 6f 64 65 28 74 29 (this._encode(t) 00009370: 2c 65 29 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 ,e)},Tn.prototyp 00009380: 65 2e 70 72 65 63 6f 6d 70 75 74 65 3d 66 75 6e e.precompute=fun 00009390: 63 74 69 6f 6e 28 65 29 7b 69 66 28 74 68 69 73 ction(e){if(this 000093a0: 2e 70 72 65 63 6f 6d 70 75 74 65 64 29 72 65 74 .precomputed)ret 000093b0: 75 72 6e 20 74 68 69 73 3b 76 61 72 20 74 3d 7b urn this;var t={ 000093c0: 64 6f 75 62 6c 65 73 3a 6e 75 6c 6c 2c 6e 61 66 doubles:null,naf 000093d0: 3a 6e 75 6c 6c 2c 62 65 74 61 3a 6e 75 6c 6c 7d :null,beta:null} 000093e0: 3b 72 65 74 75 72 6e 20 74 2e 6e 61 66 3d 74 68 ;return t.naf=th 000093f0: 69 73 2e 5f 67 65 74 4e 41 46 50 6f 69 6e 74 73 is._getNAFPoints 00009400: 28 38 29 2c 74 2e 64 6f 75 62 6c 65 73 3d 74 68 (8),t.doubles=th 00009410: 69 73 2e 5f 67 65 74 44 6f 75 62 6c 65 73 28 34 is._getDoubles(4 00009420: 2c 65 29 2c 74 2e 62 65 74 61 3d 74 68 69 73 2e ,e),t.beta=this. 00009430: 5f 67 65 74 42 65 74 61 28 29 2c 74 68 69 73 2e _getBeta(),this. 00009440: 70 72 65 63 6f 6d 70 75 74 65 64 3d 74 2c 74 68 precomputed=t,th 00009450: 69 73 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 65 is},Tn.prototype 00009460: 2e 5f 68 61 73 44 6f 75 62 6c 65 73 3d 66 75 6e ._hasDoubles=fun 00009470: 63 74 69 6f 6e 28 65 29 7b 69 66 28 21 74 68 69 ction(e){if(!thi 00009480: 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 29 72 65 s.precomputed)re 00009490: 74 75 72 6e 21 31 3b 76 61 72 20 74 3d 74 68 69 turn!1;var t=thi 000094a0: 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 2e 64 6f s.precomputed.do 000094b0: 75 62 6c 65 73 3b 72 65 74 75 72 6e 21 21 74 26 ubles;return!!t& 000094c0: 26 74 2e 70 6f 69 6e 74 73 2e 6c 65 6e 67 74 68 &t.points.length 000094d0: 3e 3d 4d 61 74 68 2e 63 65 69 6c 28 28 65 2e 62 >=Math.ceil((e.b 000094e0: 69 74 4c 65 6e 67 74 68 28 29 2b 31 29 2f 74 2e itLength()+1)/t. 000094f0: 73 74 65 70 29 7d 2c 54 6e 2e 70 72 6f 74 6f 74 step)},Tn.protot 00009500: 79 70 65 2e 5f 67 65 74 44 6f 75 62 6c 65 73 3d ype._getDoubles= 00009510: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 69 66 function(e,t){if 00009520: 28 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 (this.precompute 00009530: 64 26 26 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 d&&this.precompu 00009540: 74 65 64 2e 64 6f 75 62 6c 65 73 29 72 65 74 75 ted.doubles)retu 00009550: 72 6e 20 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 rn this.precompu 00009560: 74 65 64 2e 64 6f 75 62 6c 65 73 3b 66 6f 72 28 ted.doubles;for( 00009570: 76 61 72 20 6e 3d 5b 74 68 69 73 5d 2c 72 3d 74 var n=[this],r=t 00009580: 68 69 73 2c 6f 3d 30 3b 6f 3c 74 3b 6f 2b 3d 65 his,o=0;o<t;o+=e 00009590: 29 7b 66 6f 72 28 76 61 72 20 69 3d 30 3b 69 3c ){for(var i=0;i< 000095a0: 65 3b 69 2b 2b 29 72 3d 72 2e 64 62 6c 28 29 3b e;i++)r=r.dbl(); 000095b0: 6e 2e 70 75 73 68 28 72 29 7d 72 65 74 75 72 6e n.push(r)}return 000095c0: 7b 73 74 65 70 3a 65 2c 70 6f 69 6e 74 73 3a 6e {step:e,points:n 000095d0: 7d 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 65 2e }},Tn.prototype. 000095e0: 5f 67 65 74 4e 41 46 50 6f 69 6e 74 73 3d 66 75 _getNAFPoints=fu 000095f0: 6e 63 74 69 6f 6e 28 65 29 7b 69 66 28 74 68 69 nction(e){if(thi 00009600: 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 26 26 74 s.precomputed&&t 00009610: 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 2e his.precomputed. 00009620: 6e 61 66 29 72 65 74 75 72 6e 20 74 68 69 73 2e naf)return this. 00009630: 70 72 65 63 6f 6d 70 75 74 65 64 2e 6e 61 66 3b precomputed.naf; 00009640: 66 6f 72 28 76 61 72 20 74 3d 5b 74 68 69 73 5d for(var t=[this] 00009650: 2c 6e 3d 28 31 3c 3c 65 29 2d 31 2c 72 3d 31 3d ,n=(1<<e)-1,r=1= 00009660: 3d 3d 6e 3f 6e 75 6c 6c 3a 74 68 69 73 2e 64 62 ==n?null:this.db 00009670: 6c 28 29 2c 6f 3d 31 3b 6f 3c 6e 3b 6f 2b 2b 29 l(),o=1;o<n;o++) 00009680: 74 5b 6f 5d 3d 74 5b 6f 2d 31 5d 2e 61 64 64 28 t[o]=t[o-1].add( 00009690: 72 29 3b 72 65 74 75 72 6e 7b 77 6e 64 3a 65 2c r);return{wnd:e, 000096a0: 70 6f 69 6e 74 73 3a 74 7d 7d 2c 54 6e 2e 70 72 points:t}},Tn.pr 000096b0: 6f 74 6f 74 79 70 65 2e 5f 67 65 74 42 65 74 61 ototype._getBeta 000096c0: 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 65 74 75 =function(){retu 000096d0: 72 6e 20 6e 75 6c 6c 7d 2c 54 6e 2e 70 72 6f 74 rn null},Tn.prot 000096e0: 6f 74 79 70 65 2e 64 62 6c 70 3d 66 75 6e 63 74 otype.dblp=funct 000096f0: 69 6f 6e 28 65 29 7b 66 6f 72 28 76 61 72 20 74 ion(e){for(var t 00009700: 3d 74 68 69 73 2c 6e 3d 30 3b 6e 3c 65 3b 6e 2b =this,n=0;n<e;n+ 00009710: 2b 29 74 3d 74 2e 64 62 6c 28 29 3b 72 65 74 75 +)t=t.dbl();retu 00009720: 72 6e 20 74 7d 3b 76 61 72 20 43 6e 3d 6d 6e 28 rn t};var Cn=mn( 00009730: 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b 22 66 75 (function(e){"fu 00009740: 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 nction"==typeof 00009750: 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 3f 65 2e Object.create?e. 00009760: 65 78 70 6f 72 74 73 3d 66 75 6e 63 74 69 6f 6e exports=function 00009770: 28 65 2c 74 29 7b 74 26 26 28 65 2e 73 75 70 65 (e,t){t&&(e.supe 00009780: 72 5f 3d 74 2c 65 2e 70 72 6f 74 6f 74 79 70 65 r_=t,e.prototype 00009790: 3d 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 28 74 =Object.create(t 000097a0: 2e 70 72 6f 74 6f 74 79 70 65 2c 7b 63 6f 6e 73 .prototype,{cons 000097b0: 74 72 75 63 74 6f 72 3a 7b 76 61 6c 75 65 3a 65 tructor:{value:e 000097c0: 2c 65 6e 75 6d 65 72 61 62 6c 65 3a 21 31 2c 77 ,enumerable:!1,w 000097d0: 72 69 74 61 62 6c 65 3a 21 30 2c 63 6f 6e 66 69 ritable:!0,confi 000097e0: 67 75 72 61 62 6c 65 3a 21 30 7d 7d 29 29 7d 3a gurable:!0}}))}: 000097f0: 65 2e 65 78 70 6f 72 74 73 3d 66 75 6e 63 74 69 e.exports=functi 00009800: 6f 6e 28 65 2c 74 29 7b 69 66 28 74 29 7b 65 2e on(e,t){if(t){e. 00009810: 73 75 70 65 72 5f 3d 74 3b 76 61 72 20 6e 3d 66 super_=t;var n=f 00009820: 75 6e 63 74 69 6f 6e 28 29 7b 7d 3b 6e 2e 70 72 unction(){};n.pr 00009830: 6f 74 6f 74 79 70 65 3d 74 2e 70 72 6f 74 6f 74 ototype=t.protot 00009840: 79 70 65 2c 65 2e 70 72 6f 74 6f 74 79 70 65 3d ype,e.prototype= 00009850: 6e 65 77 20 6e 2c 65 2e 70 72 6f 74 6f 74 79 70 new n,e.prototyp 00009860: 65 2e 63 6f 6e 73 74 72 75 63 74 6f 72 3d 65 7d e.constructor=e} 00009870: 7d 7d 29 29 2c 41 6e 3d 76 6e 2e 61 73 73 65 72 }})),An=vn.asser 00009880: 74 3b 66 75 6e 63 74 69 6f 6e 20 6b 6e 28 65 29 t;function kn(e) 00009890: 7b 78 6e 2e 63 61 6c 6c 28 74 68 69 73 2c 22 73 {xn.call(this,"s 000098a0: 68 6f 72 74 22 2c 65 29 2c 74 68 69 73 2e 61 3d hort",e),this.a= 000098b0: 6e 65 77 28 7a 28 29 29 28 65 2e 61 2c 31 36 29 new(z())(e.a,16) 000098c0: 2e 74 6f 52 65 64 28 74 68 69 73 2e 72 65 64 29 .toRed(this.red) 000098d0: 2c 74 68 69 73 2e 62 3d 6e 65 77 28 7a 28 29 29 ,this.b=new(z()) 000098e0: 28 65 2e 62 2c 31 36 29 2e 74 6f 52 65 64 28 74 (e.b,16).toRed(t 000098f0: 68 69 73 2e 72 65 64 29 2c 74 68 69 73 2e 74 69 his.red),this.ti 00009900: 6e 76 3d 74 68 69 73 2e 74 77 6f 2e 72 65 64 49 nv=this.two.redI 00009910: 6e 76 6d 28 29 2c 74 68 69 73 2e 7a 65 72 6f 41 nvm(),this.zeroA 00009920: 3d 30 3d 3d 3d 74 68 69 73 2e 61 2e 66 72 6f 6d =0===this.a.from 00009930: 52 65 64 28 29 2e 63 6d 70 6e 28 30 29 2c 74 68 Red().cmpn(0),th 00009940: 69 73 2e 74 68 72 65 65 41 3d 30 3d 3d 3d 74 68 is.threeA=0===th 00009950: 69 73 2e 61 2e 66 72 6f 6d 52 65 64 28 29 2e 73 is.a.fromRed().s 00009960: 75 62 28 74 68 69 73 2e 70 29 2e 63 6d 70 6e 28 ub(this.p).cmpn( 00009970: 2d 33 29 2c 74 68 69 73 2e 65 6e 64 6f 3d 74 68 -3),this.endo=th 00009980: 69 73 2e 5f 67 65 74 45 6e 64 6f 6d 6f 72 70 68 is._getEndomorph 00009990: 69 73 6d 28 65 29 2c 74 68 69 73 2e 5f 65 6e 64 ism(e),this._end 000099a0: 6f 57 6e 61 66 54 31 3d 6e 65 77 20 41 72 72 61 oWnafT1=new Arra 000099b0: 79 28 34 29 2c 74 68 69 73 2e 5f 65 6e 64 6f 57 y(4),this._endoW 000099c0: 6e 61 66 54 32 3d 6e 65 77 20 41 72 72 61 79 28 nafT2=new Array( 000099d0: 34 29 7d 43 6e 28 6b 6e 2c 78 6e 29 3b 76 61 72 4)}Cn(kn,xn);var 000099e0: 20 49 6e 3d 6b 6e 3b 66 75 6e 63 74 69 6f 6e 20 In=kn;function 000099f0: 4f 6e 28 65 2c 74 2c 6e 2c 72 29 7b 78 6e 2e 42 On(e,t,n,r){xn.B 00009a00: 61 73 65 50 6f 69 6e 74 2e 63 61 6c 6c 28 74 68 asePoint.call(th 00009a10: 69 73 2c 65 2c 22 61 66 66 69 6e 65 22 29 2c 6e is,e,"affine"),n 00009a20: 75 6c 6c 3d 3d 3d 74 26 26 6e 75 6c 6c 3d 3d 3d ull===t&&null=== 00009a30: 6e 3f 28 74 68 69 73 2e 78 3d 6e 75 6c 6c 2c 74 n?(this.x=null,t 00009a40: 68 69 73 2e 79 3d 6e 75 6c 6c 2c 74 68 69 73 2e his.y=null,this. 00009a50: 69 6e 66 3d 21 30 29 3a 28 74 68 69 73 2e 78 3d inf=!0):(this.x= 00009a60: 6e 65 77 28 7a 28 29 29 28 74 2c 31 36 29 2c 74 new(z())(t,16),t 00009a70: 68 69 73 2e 79 3d 6e 65 77 28 7a 28 29 29 28 6e his.y=new(z())(n 00009a80: 2c 31 36 29 2c 72 26 26 28 74 68 69 73 2e 78 2e ,16),r&&(this.x. 00009a90: 66 6f 72 63 65 52 65 64 28 74 68 69 73 2e 63 75 forceRed(this.cu 00009aa0: 72 76 65 2e 72 65 64 29 2c 74 68 69 73 2e 79 2e rve.red),this.y. 00009ab0: 66 6f 72 63 65 52 65 64 28 74 68 69 73 2e 63 75 forceRed(this.cu 00009ac0: 72 76 65 2e 72 65 64 29 29 2c 74 68 69 73 2e 78 rve.red)),this.x 00009ad0: 2e 72 65 64 7c 7c 28 74 68 69 73 2e 78 3d 74 68 .red||(this.x=th 00009ae0: 69 73 2e 78 2e 74 6f 52 65 64 28 74 68 69 73 2e is.x.toRed(this. 00009af0: 63 75 72 76 65 2e 72 65 64 29 29 2c 74 68 69 73 curve.red)),this 00009b00: 2e 79 2e 72 65 64 7c 7c 28 74 68 69 73 2e 79 3d .y.red||(this.y= 00009b10: 74 68 69 73 2e 79 2e 74 6f 52 65 64 28 74 68 69 this.y.toRed(thi 00009b20: 73 2e 63 75 72 76 65 2e 72 65 64 29 29 2c 74 68 s.curve.red)),th 00009b30: 69 73 2e 69 6e 66 3d 21 31 29 7d 66 75 6e 63 74 is.inf=!1)}funct 00009b40: 69 6f 6e 20 52 6e 28 65 2c 74 2c 6e 2c 72 29 7b ion Rn(e,t,n,r){ 00009b50: 78 6e 2e 42 61 73 65 50 6f 69 6e 74 2e 63 61 6c xn.BasePoint.cal 00009b60: 6c 28 74 68 69 73 2c 65 2c 22 6a 61 63 6f 62 69 l(this,e,"jacobi 00009b70: 61 6e 22 29 2c 6e 75 6c 6c 3d 3d 3d 74 26 26 6e an"),null===t&&n 00009b80: 75 6c 6c 3d 3d 3d 6e 26 26 6e 75 6c 6c 3d 3d 3d ull===n&&null=== 00009b90: 72 3f 28 74 68 69 73 2e 78 3d 74 68 69 73 2e 63 r?(this.x=this.c 00009ba0: 75 72 76 65 2e 6f 6e 65 2c 74 68 69 73 2e 79 3d urve.one,this.y= 00009bb0: 74 68 69 73 2e 63 75 72 76 65 2e 6f 6e 65 2c 74 this.curve.one,t 00009bc0: 68 69 73 2e 7a 3d 6e 65 77 28 7a 28 29 29 28 30 his.z=new(z())(0 00009bd0: 29 29 3a 28 74 68 69 73 2e 78 3d 6e 65 77 28 7a )):(this.x=new(z 00009be0: 28 29 29 28 74 2c 31 36 29 2c 74 68 69 73 2e 79 ())(t,16),this.y 00009bf0: 3d 6e 65 77 28 7a 28 29 29 28 6e 2c 31 36 29 2c =new(z())(n,16), 00009c00: 74 68 69 73 2e 7a 3d 6e 65 77 28 7a 28 29 29 28 this.z=new(z())( 00009c10: 72 2c 31 36 29 29 2c 74 68 69 73 2e 78 2e 72 65 r,16)),this.x.re 00009c20: 64 7c 7c 28 74 68 69 73 2e 78 3d 74 68 69 73 2e d||(this.x=this. 00009c30: 78 2e 74 6f 52 65 64 28 74 68 69 73 2e 63 75 72 x.toRed(this.cur 00009c40: 76 65 2e 72 65 64 29 29 2c 74 68 69 73 2e 79 2e ve.red)),this.y. 00009c50: 72 65 64 7c 7c 28 74 68 69 73 2e 79 3d 74 68 69 red||(this.y=thi 00009c60: 73 2e 79 2e 74 6f 52 65 64 28 74 68 69 73 2e 63 s.y.toRed(this.c 00009c70: 75 72 76 65 2e 72 65 64 29 29 2c 74 68 69 73 2e urve.red)),this. 00009c80: 7a 2e 72 65 64 7c 7c 28 74 68 69 73 2e 7a 3d 74 z.red||(this.z=t 00009c90: 68 69 73 2e 7a 2e 74 6f 52 65 64 28 74 68 69 73 his.z.toRed(this 00009ca0: 2e 63 75 72 76 65 2e 72 65 64 29 29 2c 74 68 69 .curve.red)),thi 00009cb0: 73 2e 7a 4f 6e 65 3d 74 68 69 73 2e 7a 3d 3d 3d s.zOne=this.z=== 00009cc0: 74 68 69 73 2e 63 75 72 76 65 2e 6f 6e 65 7d 6b this.curve.one}k 00009cd0: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 67 65 74 n.prototype._get 00009ce0: 45 6e 64 6f 6d 6f 72 70 68 69 73 6d 3d 66 75 6e Endomorphism=fun 00009cf0: 63 74 69 6f 6e 28 65 29 7b 69 66 28 74 68 69 73 ction(e){if(this 00009d00: 2e 7a 65 72 6f 41 26 26 74 68 69 73 2e 67 26 26 .zeroA&&this.g&& 00009d10: 74 68 69 73 2e 6e 26 26 31 3d 3d 3d 74 68 69 73 this.n&&1===this 00009d20: 2e 70 2e 6d 6f 64 6e 28 33 29 29 7b 76 61 72 20 .p.modn(3)){var 00009d30: 74 2c 6e 3b 69 66 28 65 2e 62 65 74 61 29 74 3d t,n;if(e.beta)t= 00009d40: 6e 65 77 28 7a 28 29 29 28 65 2e 62 65 74 61 2c new(z())(e.beta, 00009d50: 31 36 29 2e 74 6f 52 65 64 28 74 68 69 73 2e 72 16).toRed(this.r 00009d60: 65 64 29 3b 65 6c 73 65 7b 76 61 72 20 72 3d 74 ed);else{var r=t 00009d70: 68 69 73 2e 5f 67 65 74 45 6e 64 6f 52 6f 6f 74 his._getEndoRoot 00009d80: 73 28 74 68 69 73 2e 70 29 3b 74 3d 28 74 3d 72 s(this.p);t=(t=r 00009d90: 5b 30 5d 2e 63 6d 70 28 72 5b 31 5d 29 3c 30 3f [0].cmp(r[1])<0? 00009da0: 72 5b 30 5d 3a 72 5b 31 5d 29 2e 74 6f 52 65 64 r[0]:r[1]).toRed 00009db0: 28 74 68 69 73 2e 72 65 64 29 7d 69 66 28 65 2e (this.red)}if(e. 00009dc0: 6c 61 6d 62 64 61 29 6e 3d 6e 65 77 28 7a 28 29 lambda)n=new(z() 00009dd0: 29 28 65 2e 6c 61 6d 62 64 61 2c 31 36 29 3b 65 )(e.lambda,16);e 00009de0: 6c 73 65 7b 76 61 72 20 6f 3d 74 68 69 73 2e 5f lse{var o=this._ 00009df0: 67 65 74 45 6e 64 6f 52 6f 6f 74 73 28 74 68 69 getEndoRoots(thi 00009e00: 73 2e 6e 29 3b 30 3d 3d 3d 74 68 69 73 2e 67 2e s.n);0===this.g. 00009e10: 6d 75 6c 28 6f 5b 30 5d 29 2e 78 2e 63 6d 70 28 mul(o[0]).x.cmp( 00009e20: 74 68 69 73 2e 67 2e 78 2e 72 65 64 4d 75 6c 28 this.g.x.redMul( 00009e30: 74 29 29 3f 6e 3d 6f 5b 30 5d 3a 28 6e 3d 6f 5b t))?n=o[0]:(n=o[ 00009e40: 31 5d 2c 41 6e 28 30 3d 3d 3d 74 68 69 73 2e 67 1],An(0===this.g 00009e50: 2e 6d 75 6c 28 6e 29 2e 78 2e 63 6d 70 28 74 68 .mul(n).x.cmp(th 00009e60: 69 73 2e 67 2e 78 2e 72 65 64 4d 75 6c 28 74 29 is.g.x.redMul(t) 00009e70: 29 29 29 7d 72 65 74 75 72 6e 7b 62 65 74 61 3a )))}return{beta: 00009e80: 74 2c 6c 61 6d 62 64 61 3a 6e 2c 62 61 73 69 73 t,lambda:n,basis 00009e90: 3a 65 2e 62 61 73 69 73 3f 65 2e 62 61 73 69 73 :e.basis?e.basis 00009ea0: 2e 6d 61 70 28 28 66 75 6e 63 74 69 6f 6e 28 65 .map((function(e 00009eb0: 29 7b 72 65 74 75 72 6e 7b 61 3a 6e 65 77 28 7a ){return{a:new(z 00009ec0: 28 29 29 28 65 2e 61 2c 31 36 29 2c 62 3a 6e 65 ())(e.a,16),b:ne 00009ed0: 77 28 7a 28 29 29 28 65 2e 62 2c 31 36 29 7d 7d w(z())(e.b,16)}} 00009ee0: 29 29 3a 74 68 69 73 2e 5f 67 65 74 45 6e 64 6f )):this._getEndo 00009ef0: 42 61 73 69 73 28 6e 29 7d 7d 7d 2c 6b 6e 2e 70 Basis(n)}}},kn.p 00009f00: 72 6f 74 6f 74 79 70 65 2e 5f 67 65 74 45 6e 64 rototype._getEnd 00009f10: 6f 52 6f 6f 74 73 3d 66 75 6e 63 74 69 6f 6e 28 oRoots=function( 00009f20: 65 29 7b 76 61 72 20 74 3d 65 3d 3d 3d 74 68 69 e){var t=e===thi 00009f30: 73 2e 70 3f 74 68 69 73 2e 72 65 64 3a 7a 28 29 s.p?this.red:z() 00009f40: 2e 6d 6f 6e 74 28 65 29 2c 6e 3d 6e 65 77 28 7a .mont(e),n=new(z 00009f50: 28 29 29 28 32 29 2e 74 6f 52 65 64 28 74 29 2e ())(2).toRed(t). 00009f60: 72 65 64 49 6e 76 6d 28 29 2c 72 3d 6e 2e 72 65 redInvm(),r=n.re 00009f70: 64 4e 65 67 28 29 2c 6f 3d 6e 65 77 28 7a 28 29 dNeg(),o=new(z() 00009f80: 29 28 33 29 2e 74 6f 52 65 64 28 74 29 2e 72 65 )(3).toRed(t).re 00009f90: 64 4e 65 67 28 29 2e 72 65 64 53 71 72 74 28 29 dNeg().redSqrt() 00009fa0: 2e 72 65 64 4d 75 6c 28 6e 29 3b 72 65 74 75 72 .redMul(n);retur 00009fb0: 6e 5b 72 2e 72 65 64 41 64 64 28 6f 29 2e 66 72 n[r.redAdd(o).fr 00009fc0: 6f 6d 52 65 64 28 29 2c 72 2e 72 65 64 53 75 62 omRed(),r.redSub 00009fd0: 28 6f 29 2e 66 72 6f 6d 52 65 64 28 29 5d 7d 2c (o).fromRed()]}, 00009fe0: 6b 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 67 65 kn.prototype._ge 00009ff0: 74 45 6e 64 6f 42 61 73 69 73 3d 66 75 6e 63 74 tEndoBasis=funct 0000a000: 69 6f 6e 28 65 29 7b 66 6f 72 28 76 61 72 20 74 ion(e){for(var t 0000a010: 2c 6e 2c 72 2c 6f 2c 69 2c 61 2c 73 2c 6c 2c 63 ,n,r,o,i,a,s,l,c 0000a020: 2c 75 3d 74 68 69 73 2e 6e 2e 75 73 68 72 6e 28 ,u=this.n.ushrn( 0000a030: 4d 61 74 68 2e 66 6c 6f 6f 72 28 74 68 69 73 2e Math.floor(this. 0000a040: 6e 2e 62 69 74 4c 65 6e 67 74 68 28 29 2f 32 29 n.bitLength()/2) 0000a050: 29 2c 64 3d 65 2c 70 3d 74 68 69 73 2e 6e 2e 63 ),d=e,p=this.n.c 0000a060: 6c 6f 6e 65 28 29 2c 66 3d 6e 65 77 28 7a 28 29 lone(),f=new(z() 0000a070: 29 28 31 29 2c 68 3d 6e 65 77 28 7a 28 29 29 28 )(1),h=new(z())( 0000a080: 30 29 2c 6d 3d 6e 65 77 28 7a 28 29 29 28 30 29 0),m=new(z())(0) 0000a090: 2c 67 3d 6e 65 77 28 7a 28 29 29 28 31 29 2c 62 ,g=new(z())(1),b 0000a0a0: 3d 30 3b 30 21 3d 3d 64 2e 63 6d 70 6e 28 30 29 =0;0!==d.cmpn(0) 0000a0b0: 3b 29 7b 76 61 72 20 79 3d 70 2e 64 69 76 28 64 ;){var y=p.div(d 0000a0c0: 29 3b 6c 3d 70 2e 73 75 62 28 79 2e 6d 75 6c 28 );l=p.sub(y.mul( 0000a0d0: 64 29 29 2c 63 3d 6d 2e 73 75 62 28 79 2e 6d 75 d)),c=m.sub(y.mu 0000a0e0: 6c 28 66 29 29 3b 76 61 72 20 76 3d 67 2e 73 75 l(f));var v=g.su 0000a0f0: 62 28 79 2e 6d 75 6c 28 68 29 29 3b 69 66 28 21 b(y.mul(h));if(! 0000a100: 72 26 26 6c 2e 63 6d 70 28 75 29 3c 30 29 74 3d r&&l.cmp(u)<0)t= 0000a110: 73 2e 6e 65 67 28 29 2c 6e 3d 66 2c 72 3d 6c 2e s.neg(),n=f,r=l. 0000a120: 6e 65 67 28 29 2c 6f 3d 63 3b 65 6c 73 65 20 69 neg(),o=c;else i 0000a130: 66 28 72 26 26 32 3d 3d 2b 2b 62 29 62 72 65 61 f(r&&2==++b)brea 0000a140: 6b 3b 73 3d 6c 2c 70 3d 64 2c 64 3d 6c 2c 6d 3d k;s=l,p=d,d=l,m= 0000a150: 66 2c 66 3d 63 2c 67 3d 68 2c 68 3d 76 7d 69 3d f,f=c,g=h,h=v}i= 0000a160: 6c 2e 6e 65 67 28 29 2c 61 3d 63 3b 76 61 72 20 l.neg(),a=c;var 0000a170: 53 3d 72 2e 73 71 72 28 29 2e 61 64 64 28 6f 2e S=r.sqr().add(o. 0000a180: 73 71 72 28 29 29 3b 72 65 74 75 72 6e 20 69 2e sqr());return i. 0000a190: 73 71 72 28 29 2e 61 64 64 28 61 2e 73 71 72 28 sqr().add(a.sqr( 0000a1a0: 29 29 2e 63 6d 70 28 53 29 3e 3d 30 26 26 28 69 )).cmp(S)>=0&&(i 0000a1b0: 3d 74 2c 61 3d 6e 29 2c 72 2e 6e 65 67 61 74 69 =t,a=n),r.negati 0000a1c0: 76 65 26 26 28 72 3d 72 2e 6e 65 67 28 29 2c 6f ve&&(r=r.neg(),o 0000a1d0: 3d 6f 2e 6e 65 67 28 29 29 2c 69 2e 6e 65 67 61 =o.neg()),i.nega 0000a1e0: 74 69 76 65 26 26 28 69 3d 69 2e 6e 65 67 28 29 tive&&(i=i.neg() 0000a1f0: 2c 61 3d 61 2e 6e 65 67 28 29 29 2c 5b 7b 61 3a ,a=a.neg()),[{a: 0000a200: 72 2c 62 3a 6f 7d 2c 7b 61 3a 69 2c 62 3a 61 7d r,b:o},{a:i,b:a} 0000a210: 5d 7d 2c 6b 6e 2e 70 72 6f 74 6f 74 79 70 65 2e ]},kn.prototype. 0000a220: 5f 65 6e 64 6f 53 70 6c 69 74 3d 66 75 6e 63 74 _endoSplit=funct 0000a230: 69 6f 6e 28 65 29 7b 76 61 72 20 74 3d 74 68 69 ion(e){var t=thi 0000a240: 73 2e 65 6e 64 6f 2e 62 61 73 69 73 2c 6e 3d 74 s.endo.basis,n=t 0000a250: 5b 30 5d 2c 72 3d 74 5b 31 5d 2c 6f 3d 72 2e 62 [0],r=t[1],o=r.b 0000a260: 2e 6d 75 6c 28 65 29 2e 64 69 76 52 6f 75 6e 64 .mul(e).divRound 0000a270: 28 74 68 69 73 2e 6e 29 2c 69 3d 6e 2e 62 2e 6e (this.n),i=n.b.n 0000a280: 65 67 28 29 2e 6d 75 6c 28 65 29 2e 64 69 76 52 eg().mul(e).divR 0000a290: 6f 75 6e 64 28 74 68 69 73 2e 6e 29 2c 61 3d 6f ound(this.n),a=o 0000a2a0: 2e 6d 75 6c 28 6e 2e 61 29 2c 73 3d 69 2e 6d 75 .mul(n.a),s=i.mu 0000a2b0: 6c 28 72 2e 61 29 2c 6c 3d 6f 2e 6d 75 6c 28 6e l(r.a),l=o.mul(n 0000a2c0: 2e 62 29 2c 63 3d 69 2e 6d 75 6c 28 72 2e 62 29 .b),c=i.mul(r.b) 0000a2d0: 3b 72 65 74 75 72 6e 7b 6b 31 3a 65 2e 73 75 62 ;return{k1:e.sub 0000a2e0: 28 61 29 2e 73 75 62 28 73 29 2c 6b 32 3a 6c 2e (a).sub(s),k2:l. 0000a2f0: 61 64 64 28 63 29 2e 6e 65 67 28 29 7d 7d 2c 6b add(c).neg()}},k 0000a300: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 70 6f 69 6e n.prototype.poin 0000a310: 74 46 72 6f 6d 58 3d 66 75 6e 63 74 69 6f 6e 28 tFromX=function( 0000a320: 65 2c 74 29 7b 28 65 3d 6e 65 77 28 7a 28 29 29 e,t){(e=new(z()) 0000a330: 28 65 2c 31 36 29 29 2e 72 65 64 7c 7c 28 65 3d (e,16)).red||(e= 0000a340: 65 2e 74 6f 52 65 64 28 74 68 69 73 2e 72 65 64 e.toRed(this.red 0000a350: 29 29 3b 76 61 72 20 6e 3d 65 2e 72 65 64 53 71 ));var n=e.redSq 0000a360: 72 28 29 2e 72 65 64 4d 75 6c 28 65 29 2e 72 65 r().redMul(e).re 0000a370: 64 49 41 64 64 28 65 2e 72 65 64 4d 75 6c 28 74 dIAdd(e.redMul(t 0000a380: 68 69 73 2e 61 29 29 2e 72 65 64 49 41 64 64 28 his.a)).redIAdd( 0000a390: 74 68 69 73 2e 62 29 2c 72 3d 6e 2e 72 65 64 53 this.b),r=n.redS 0000a3a0: 71 72 74 28 29 3b 69 66 28 30 21 3d 3d 72 2e 72 qrt();if(0!==r.r 0000a3b0: 65 64 53 71 72 28 29 2e 72 65 64 53 75 62 28 6e edSqr().redSub(n 0000a3c0: 29 2e 63 6d 70 28 74 68 69 73 2e 7a 65 72 6f 29 ).cmp(this.zero) 0000a3d0: 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 )throw new Error 0000a3e0: 28 22 69 6e 76 61 6c 69 64 20 70 6f 69 6e 74 22 ("invalid point" 0000a3f0: 29 3b 76 61 72 20 6f 3d 72 2e 66 72 6f 6d 52 65 );var o=r.fromRe 0000a400: 64 28 29 2e 69 73 4f 64 64 28 29 3b 72 65 74 75 d().isOdd();retu 0000a410: 72 6e 28 74 26 26 21 6f 7c 7c 21 74 26 26 6f 29 rn(t&&!o||!t&&o) 0000a420: 26 26 28 72 3d 72 2e 72 65 64 4e 65 67 28 29 29 &&(r=r.redNeg()) 0000a430: 2c 74 68 69 73 2e 70 6f 69 6e 74 28 65 2c 72 29 ,this.point(e,r) 0000a440: 7d 2c 6b 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 76 },kn.prototype.v 0000a450: 61 6c 69 64 61 74 65 3d 66 75 6e 63 74 69 6f 6e alidate=function 0000a460: 28 65 29 7b 69 66 28 65 2e 69 6e 66 29 72 65 74 (e){if(e.inf)ret 0000a470: 75 72 6e 21 30 3b 76 61 72 20 74 3d 65 2e 78 2c urn!0;var t=e.x, 0000a480: 6e 3d 65 2e 79 2c 72 3d 74 68 69 73 2e 61 2e 72 n=e.y,r=this.a.r 0000a490: 65 64 4d 75 6c 28 74 29 2c 6f 3d 74 2e 72 65 64 edMul(t),o=t.red 0000a4a0: 53 71 72 28 29 2e 72 65 64 4d 75 6c 28 74 29 2e Sqr().redMul(t). 0000a4b0: 72 65 64 49 41 64 64 28 72 29 2e 72 65 64 49 41 redIAdd(r).redIA 0000a4c0: 64 64 28 74 68 69 73 2e 62 29 3b 72 65 74 75 72 dd(this.b);retur 0000a4d0: 6e 20 30 3d 3d 3d 6e 2e 72 65 64 53 71 72 28 29 n 0===n.redSqr() 0000a4e0: 2e 72 65 64 49 53 75 62 28 6f 29 2e 63 6d 70 6e .redISub(o).cmpn 0000a4f0: 28 30 29 7d 2c 6b 6e 2e 70 72 6f 74 6f 74 79 70 (0)},kn.prototyp 0000a500: 65 2e 5f 65 6e 64 6f 57 6e 61 66 4d 75 6c 41 64 e._endoWnafMulAd 0000a510: 64 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e d=function(e,t,n 0000a520: 29 7b 66 6f 72 28 76 61 72 20 72 3d 74 68 69 73 ){for(var r=this 0000a530: 2e 5f 65 6e 64 6f 57 6e 61 66 54 31 2c 6f 3d 74 ._endoWnafT1,o=t 0000a540: 68 69 73 2e 5f 65 6e 64 6f 57 6e 61 66 54 32 2c his._endoWnafT2, 0000a550: 69 3d 30 3b 69 3c 65 2e 6c 65 6e 67 74 68 3b 69 i=0;i<e.length;i 0000a560: 2b 2b 29 7b 76 61 72 20 61 3d 74 68 69 73 2e 5f ++){var a=this._ 0000a570: 65 6e 64 6f 53 70 6c 69 74 28 74 5b 69 5d 29 2c endoSplit(t[i]), 0000a580: 73 3d 65 5b 69 5d 2c 6c 3d 73 2e 5f 67 65 74 42 s=e[i],l=s._getB 0000a590: 65 74 61 28 29 3b 61 2e 6b 31 2e 6e 65 67 61 74 eta();a.k1.negat 0000a5a0: 69 76 65 26 26 28 61 2e 6b 31 2e 69 6e 65 67 28 ive&&(a.k1.ineg( 0000a5b0: 29 2c 73 3d 73 2e 6e 65 67 28 21 30 29 29 2c 61 ),s=s.neg(!0)),a 0000a5c0: 2e 6b 32 2e 6e 65 67 61 74 69 76 65 26 26 28 61 .k2.negative&&(a 0000a5d0: 2e 6b 32 2e 69 6e 65 67 28 29 2c 6c 3d 6c 2e 6e .k2.ineg(),l=l.n 0000a5e0: 65 67 28 21 30 29 29 2c 72 5b 32 2a 69 5d 3d 73 eg(!0)),r[2*i]=s 0000a5f0: 2c 72 5b 32 2a 69 2b 31 5d 3d 6c 2c 6f 5b 32 2a ,r[2*i+1]=l,o[2* 0000a600: 69 5d 3d 61 2e 6b 31 2c 6f 5b 32 2a 69 2b 31 5d i]=a.k1,o[2*i+1] 0000a610: 3d 61 2e 6b 32 7d 66 6f 72 28 76 61 72 20 63 3d =a.k2}for(var c= 0000a620: 74 68 69 73 2e 5f 77 6e 61 66 4d 75 6c 41 64 64 this._wnafMulAdd 0000a630: 28 31 2c 72 2c 6f 2c 32 2a 69 2c 6e 29 2c 75 3d (1,r,o,2*i,n),u= 0000a640: 30 3b 75 3c 32 2a 69 3b 75 2b 2b 29 72 5b 75 5d 0;u<2*i;u++)r[u] 0000a650: 3d 6e 75 6c 6c 2c 6f 5b 75 5d 3d 6e 75 6c 6c 3b =null,o[u]=null; 0000a660: 72 65 74 75 72 6e 20 63 7d 2c 43 6e 28 4f 6e 2c return c},Cn(On, 0000a670: 78 6e 2e 42 61 73 65 50 6f 69 6e 74 29 2c 6b 6e xn.BasePoint),kn 0000a680: 2e 70 72 6f 74 6f 74 79 70 65 2e 70 6f 69 6e 74 .prototype.point 0000a690: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 =function(e,t,n) 0000a6a0: 7b 72 65 74 75 72 6e 20 6e 65 77 20 4f 6e 28 74 {return new On(t 0000a6b0: 68 69 73 2c 65 2c 74 2c 6e 29 7d 2c 6b 6e 2e 70 his,e,t,n)},kn.p 0000a6c0: 72 6f 74 6f 74 79 70 65 2e 70 6f 69 6e 74 46 72 rototype.pointFr 0000a6d0: 6f 6d 4a 53 4f 4e 3d 66 75 6e 63 74 69 6f 6e 28 omJSON=function( 0000a6e0: 65 2c 74 29 7b 72 65 74 75 72 6e 20 4f 6e 2e 66 e,t){return On.f 0000a6f0: 72 6f 6d 4a 53 4f 4e 28 74 68 69 73 2c 65 2c 74 romJSON(this,e,t 0000a700: 29 7d 2c 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},On.prototype. 0000a710: 5f 67 65 74 42 65 74 61 3d 66 75 6e 63 74 69 6f _getBeta=functio 0000a720: 6e 28 29 7b 69 66 28 74 68 69 73 2e 63 75 72 76 n(){if(this.curv 0000a730: 65 2e 65 6e 64 6f 29 7b 76 61 72 20 65 3d 74 68 e.endo){var e=th 0000a740: 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 3b 69 is.precomputed;i 0000a750: 66 28 65 26 26 65 2e 62 65 74 61 29 72 65 74 75 f(e&&e.beta)retu 0000a760: 72 6e 20 65 2e 62 65 74 61 3b 76 61 72 20 74 3d rn e.beta;var t= 0000a770: 74 68 69 73 2e 63 75 72 76 65 2e 70 6f 69 6e 74 this.curve.point 0000a780: 28 74 68 69 73 2e 78 2e 72 65 64 4d 75 6c 28 74 (this.x.redMul(t 0000a790: 68 69 73 2e 63 75 72 76 65 2e 65 6e 64 6f 2e 62 his.curve.endo.b 0000a7a0: 65 74 61 29 2c 74 68 69 73 2e 79 29 3b 69 66 28 eta),this.y);if( 0000a7b0: 65 29 7b 76 61 72 20 6e 3d 74 68 69 73 2e 63 75 e){var n=this.cu 0000a7c0: 72 76 65 2c 72 3d 66 75 6e 63 74 69 6f 6e 28 65 rve,r=function(e 0000a7d0: 29 7b 72 65 74 75 72 6e 20 6e 2e 70 6f 69 6e 74 ){return n.point 0000a7e0: 28 65 2e 78 2e 72 65 64 4d 75 6c 28 6e 2e 65 6e (e.x.redMul(n.en 0000a7f0: 64 6f 2e 62 65 74 61 29 2c 65 2e 79 29 7d 3b 65 do.beta),e.y)};e 0000a800: 2e 62 65 74 61 3d 74 2c 74 2e 70 72 65 63 6f 6d .beta=t,t.precom 0000a810: 70 75 74 65 64 3d 7b 62 65 74 61 3a 6e 75 6c 6c puted={beta:null 0000a820: 2c 6e 61 66 3a 65 2e 6e 61 66 26 26 7b 77 6e 64 ,naf:e.naf&&{wnd 0000a830: 3a 65 2e 6e 61 66 2e 77 6e 64 2c 70 6f 69 6e 74 :e.naf.wnd,point 0000a840: 73 3a 65 2e 6e 61 66 2e 70 6f 69 6e 74 73 2e 6d s:e.naf.points.m 0000a850: 61 70 28 72 29 7d 2c 64 6f 75 62 6c 65 73 3a 65 ap(r)},doubles:e 0000a860: 2e 64 6f 75 62 6c 65 73 26 26 7b 73 74 65 70 3a .doubles&&{step: 0000a870: 65 2e 64 6f 75 62 6c 65 73 2e 73 74 65 70 2c 70 e.doubles.step,p 0000a880: 6f 69 6e 74 73 3a 65 2e 64 6f 75 62 6c 65 73 2e oints:e.doubles. 0000a890: 70 6f 69 6e 74 73 2e 6d 61 70 28 72 29 7d 7d 7d points.map(r)}}} 0000a8a0: 72 65 74 75 72 6e 20 74 7d 7d 2c 4f 6e 2e 70 72 return t}},On.pr 0000a8b0: 6f 74 6f 74 79 70 65 2e 74 6f 4a 53 4f 4e 3d 66 ototype.toJSON=f 0000a8c0: 75 6e 63 74 69 6f 6e 28 29 7b 72 65 74 75 72 6e unction(){return 0000a8d0: 20 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 this.precompute 0000a8e0: 64 3f 5b 74 68 69 73 2e 78 2c 74 68 69 73 2e 79 d?[this.x,this.y 0000a8f0: 2c 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 ,this.precompute 0000a900: 64 26 26 7b 64 6f 75 62 6c 65 73 3a 74 68 69 73 d&&{doubles:this 0000a910: 2e 70 72 65 63 6f 6d 70 75 74 65 64 2e 64 6f 75 .precomputed.dou 0000a920: 62 6c 65 73 26 26 7b 73 74 65 70 3a 74 68 69 73 bles&&{step:this 0000a930: 2e 70 72 65 63 6f 6d 70 75 74 65 64 2e 64 6f 75 .precomputed.dou 0000a940: 62 6c 65 73 2e 73 74 65 70 2c 70 6f 69 6e 74 73 bles.step,points 0000a950: 3a 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 :this.precompute 0000a960: 64 2e 64 6f 75 62 6c 65 73 2e 70 6f 69 6e 74 73 d.doubles.points 0000a970: 2e 73 6c 69 63 65 28 31 29 7d 2c 6e 61 66 3a 74 .slice(1)},naf:t 0000a980: 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 2e his.precomputed. 0000a990: 6e 61 66 26 26 7b 77 6e 64 3a 74 68 69 73 2e 70 naf&&{wnd:this.p 0000a9a0: 72 65 63 6f 6d 70 75 74 65 64 2e 6e 61 66 2e 77 recomputed.naf.w 0000a9b0: 6e 64 2c 70 6f 69 6e 74 73 3a 74 68 69 73 2e 70 nd,points:this.p 0000a9c0: 72 65 63 6f 6d 70 75 74 65 64 2e 6e 61 66 2e 70 recomputed.naf.p 0000a9d0: 6f 69 6e 74 73 2e 73 6c 69 63 65 28 31 29 7d 7d oints.slice(1)}} 0000a9e0: 5d 3a 5b 74 68 69 73 2e 78 2c 74 68 69 73 2e 79 ]:[this.x,this.y 0000a9f0: 5d 7d 2c 4f 6e 2e 66 72 6f 6d 4a 53 4f 4e 3d 66 ]},On.fromJSON=f 0000aa00: 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 7b 22 unction(e,t,n){" 0000aa10: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 0000aa20: 74 26 26 28 74 3d 4a 53 4f 4e 2e 70 61 72 73 65 t&&(t=JSON.parse 0000aa30: 28 74 29 29 3b 76 61 72 20 72 3d 65 2e 70 6f 69 (t));var r=e.poi 0000aa40: 6e 74 28 74 5b 30 5d 2c 74 5b 31 5d 2c 6e 29 3b nt(t[0],t[1],n); 0000aa50: 69 66 28 21 74 5b 32 5d 29 72 65 74 75 72 6e 20 if(!t[2])return 0000aa60: 72 3b 66 75 6e 63 74 69 6f 6e 20 6f 28 74 29 7b r;function o(t){ 0000aa70: 72 65 74 75 72 6e 20 65 2e 70 6f 69 6e 74 28 74 return e.point(t 0000aa80: 5b 30 5d 2c 74 5b 31 5d 2c 6e 29 7d 76 61 72 20 [0],t[1],n)}var 0000aa90: 69 3d 74 5b 32 5d 3b 72 65 74 75 72 6e 20 72 2e i=t[2];return r. 0000aaa0: 70 72 65 63 6f 6d 70 75 74 65 64 3d 7b 62 65 74 precomputed={bet 0000aab0: 61 3a 6e 75 6c 6c 2c 64 6f 75 62 6c 65 73 3a 69 a:null,doubles:i 0000aac0: 2e 64 6f 75 62 6c 65 73 26 26 7b 73 74 65 70 3a .doubles&&{step: 0000aad0: 69 2e 64 6f 75 62 6c 65 73 2e 73 74 65 70 2c 70 i.doubles.step,p 0000aae0: 6f 69 6e 74 73 3a 5b 72 5d 2e 63 6f 6e 63 61 74 oints:[r].concat 0000aaf0: 28 69 2e 64 6f 75 62 6c 65 73 2e 70 6f 69 6e 74 (i.doubles.point 0000ab00: 73 2e 6d 61 70 28 6f 29 29 7d 2c 6e 61 66 3a 69 s.map(o))},naf:i 0000ab10: 2e 6e 61 66 26 26 7b 77 6e 64 3a 69 2e 6e 61 66 .naf&&{wnd:i.naf 0000ab20: 2e 77 6e 64 2c 70 6f 69 6e 74 73 3a 5b 72 5d 2e .wnd,points:[r]. 0000ab30: 63 6f 6e 63 61 74 28 69 2e 6e 61 66 2e 70 6f 69 concat(i.naf.poi 0000ab40: 6e 74 73 2e 6d 61 70 28 6f 29 29 7d 7d 2c 72 7d nts.map(o))}},r} 0000ab50: 2c 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 69 6e ,On.prototype.in 0000ab60: 73 70 65 63 74 3d 66 75 6e 63 74 69 6f 6e 28 29 spect=function() 0000ab70: 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 69 73 49 {return this.isI 0000ab80: 6e 66 69 6e 69 74 79 28 29 3f 22 3c 45 43 20 50 nfinity()?"<EC P 0000ab90: 6f 69 6e 74 20 49 6e 66 69 6e 69 74 79 3e 22 3a oint Infinity>": 0000aba0: 22 3c 45 43 20 50 6f 69 6e 74 20 78 3a 20 22 2b "<EC Point x: "+ 0000abb0: 74 68 69 73 2e 78 2e 66 72 6f 6d 52 65 64 28 29 this.x.fromRed() 0000abc0: 2e 74 6f 53 74 72 69 6e 67 28 31 36 2c 32 29 2b .toString(16,2)+ 0000abd0: 22 20 79 3a 20 22 2b 74 68 69 73 2e 79 2e 66 72 " y: "+this.y.fr 0000abe0: 6f 6d 52 65 64 28 29 2e 74 6f 53 74 72 69 6e 67 omRed().toString 0000abf0: 28 31 36 2c 32 29 2b 22 3e 22 7d 2c 4f 6e 2e 70 (16,2)+">"},On.p 0000ac00: 72 6f 74 6f 74 79 70 65 2e 69 73 49 6e 66 69 6e rototype.isInfin 0000ac10: 69 74 79 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 ity=function(){r 0000ac20: 65 74 75 72 6e 20 74 68 69 73 2e 69 6e 66 7d 2c eturn this.inf}, 0000ac30: 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 61 64 64 On.prototype.add 0000ac40: 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 69 66 28 =function(e){if( 0000ac50: 74 68 69 73 2e 69 6e 66 29 72 65 74 75 72 6e 20 this.inf)return 0000ac60: 65 3b 69 66 28 65 2e 69 6e 66 29 72 65 74 75 72 e;if(e.inf)retur 0000ac70: 6e 20 74 68 69 73 3b 69 66 28 74 68 69 73 2e 65 n this;if(this.e 0000ac80: 71 28 65 29 29 72 65 74 75 72 6e 20 74 68 69 73 q(e))return this 0000ac90: 2e 64 62 6c 28 29 3b 69 66 28 74 68 69 73 2e 6e .dbl();if(this.n 0000aca0: 65 67 28 29 2e 65 71 28 65 29 29 72 65 74 75 72 eg().eq(e))retur 0000acb0: 6e 20 74 68 69 73 2e 63 75 72 76 65 2e 70 6f 69 n this.curve.poi 0000acc0: 6e 74 28 6e 75 6c 6c 2c 6e 75 6c 6c 29 3b 69 66 nt(null,null);if 0000acd0: 28 30 3d 3d 3d 74 68 69 73 2e 78 2e 63 6d 70 28 (0===this.x.cmp( 0000ace0: 65 2e 78 29 29 72 65 74 75 72 6e 20 74 68 69 73 e.x))return this 0000acf0: 2e 63 75 72 76 65 2e 70 6f 69 6e 74 28 6e 75 6c .curve.point(nul 0000ad00: 6c 2c 6e 75 6c 6c 29 3b 76 61 72 20 74 3d 74 68 l,null);var t=th 0000ad10: 69 73 2e 79 2e 72 65 64 53 75 62 28 65 2e 79 29 is.y.redSub(e.y) 0000ad20: 3b 30 21 3d 3d 74 2e 63 6d 70 6e 28 30 29 26 26 ;0!==t.cmpn(0)&& 0000ad30: 28 74 3d 74 2e 72 65 64 4d 75 6c 28 74 68 69 73 (t=t.redMul(this 0000ad40: 2e 78 2e 72 65 64 53 75 62 28 65 2e 78 29 2e 72 .x.redSub(e.x).r 0000ad50: 65 64 49 6e 76 6d 28 29 29 29 3b 76 61 72 20 6e edInvm()));var n 0000ad60: 3d 74 2e 72 65 64 53 71 72 28 29 2e 72 65 64 49 =t.redSqr().redI 0000ad70: 53 75 62 28 74 68 69 73 2e 78 29 2e 72 65 64 49 Sub(this.x).redI 0000ad80: 53 75 62 28 65 2e 78 29 2c 72 3d 74 2e 72 65 64 Sub(e.x),r=t.red 0000ad90: 4d 75 6c 28 74 68 69 73 2e 78 2e 72 65 64 53 75 Mul(this.x.redSu 0000ada0: 62 28 6e 29 29 2e 72 65 64 49 53 75 62 28 74 68 b(n)).redISub(th 0000adb0: 69 73 2e 79 29 3b 72 65 74 75 72 6e 20 74 68 69 is.y);return thi 0000adc0: 73 2e 63 75 72 76 65 2e 70 6f 69 6e 74 28 6e 2c s.curve.point(n, 0000add0: 72 29 7d 2c 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 r)},On.prototype 0000ade0: 2e 64 62 6c 3d 66 75 6e 63 74 69 6f 6e 28 29 7b .dbl=function(){ 0000adf0: 69 66 28 74 68 69 73 2e 69 6e 66 29 72 65 74 75 if(this.inf)retu 0000ae00: 72 6e 20 74 68 69 73 3b 76 61 72 20 65 3d 74 68 rn this;var e=th 0000ae10: 69 73 2e 79 2e 72 65 64 41 64 64 28 74 68 69 73 is.y.redAdd(this 0000ae20: 2e 79 29 3b 69 66 28 30 3d 3d 3d 65 2e 63 6d 70 .y);if(0===e.cmp 0000ae30: 6e 28 30 29 29 72 65 74 75 72 6e 20 74 68 69 73 n(0))return this 0000ae40: 2e 63 75 72 76 65 2e 70 6f 69 6e 74 28 6e 75 6c .curve.point(nul 0000ae50: 6c 2c 6e 75 6c 6c 29 3b 76 61 72 20 74 3d 74 68 l,null);var t=th 0000ae60: 69 73 2e 63 75 72 76 65 2e 61 2c 6e 3d 74 68 69 is.curve.a,n=thi 0000ae70: 73 2e 78 2e 72 65 64 53 71 72 28 29 2c 72 3d 65 s.x.redSqr(),r=e 0000ae80: 2e 72 65 64 49 6e 76 6d 28 29 2c 6f 3d 6e 2e 72 .redInvm(),o=n.r 0000ae90: 65 64 41 64 64 28 6e 29 2e 72 65 64 49 41 64 64 edAdd(n).redIAdd 0000aea0: 28 6e 29 2e 72 65 64 49 41 64 64 28 74 29 2e 72 (n).redIAdd(t).r 0000aeb0: 65 64 4d 75 6c 28 72 29 2c 69 3d 6f 2e 72 65 64 edMul(r),i=o.red 0000aec0: 53 71 72 28 29 2e 72 65 64 49 53 75 62 28 74 68 Sqr().redISub(th 0000aed0: 69 73 2e 78 2e 72 65 64 41 64 64 28 74 68 69 73 is.x.redAdd(this 0000aee0: 2e 78 29 29 2c 61 3d 6f 2e 72 65 64 4d 75 6c 28 .x)),a=o.redMul( 0000aef0: 74 68 69 73 2e 78 2e 72 65 64 53 75 62 28 69 29 this.x.redSub(i) 0000af00: 29 2e 72 65 64 49 53 75 62 28 74 68 69 73 2e 79 ).redISub(this.y 0000af10: 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e 63 75 );return this.cu 0000af20: 72 76 65 2e 70 6f 69 6e 74 28 69 2c 61 29 7d 2c rve.point(i,a)}, 0000af30: 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 67 65 74 On.prototype.get 0000af40: 58 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 65 74 X=function(){ret 0000af50: 75 72 6e 20 74 68 69 73 2e 78 2e 66 72 6f 6d 52 urn this.x.fromR 0000af60: 65 64 28 29 7d 2c 4f 6e 2e 70 72 6f 74 6f 74 79 ed()},On.prototy 0000af70: 70 65 2e 67 65 74 59 3d 66 75 6e 63 74 69 6f 6e pe.getY=function 0000af80: 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 79 (){return this.y 0000af90: 2e 66 72 6f 6d 52 65 64 28 29 7d 2c 4f 6e 2e 70 .fromRed()},On.p 0000afa0: 72 6f 74 6f 74 79 70 65 2e 6d 75 6c 3d 66 75 6e rototype.mul=fun 0000afb0: 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 ction(e){return 0000afc0: 65 3d 6e 65 77 28 7a 28 29 29 28 65 2c 31 36 29 e=new(z())(e,16) 0000afd0: 2c 74 68 69 73 2e 69 73 49 6e 66 69 6e 69 74 79 ,this.isInfinity 0000afe0: 28 29 3f 74 68 69 73 3a 74 68 69 73 2e 5f 68 61 ()?this:this._ha 0000aff0: 73 44 6f 75 62 6c 65 73 28 65 29 3f 74 68 69 73 sDoubles(e)?this 0000b000: 2e 63 75 72 76 65 2e 5f 66 69 78 65 64 4e 61 66 .curve._fixedNaf 0000b010: 4d 75 6c 28 74 68 69 73 2c 65 29 3a 74 68 69 73 Mul(this,e):this 0000b020: 2e 63 75 72 76 65 2e 65 6e 64 6f 3f 74 68 69 73 .curve.endo?this 0000b030: 2e 63 75 72 76 65 2e 5f 65 6e 64 6f 57 6e 61 66 .curve._endoWnaf 0000b040: 4d 75 6c 41 64 64 28 5b 74 68 69 73 5d 2c 5b 65 MulAdd([this],[e 0000b050: 5d 29 3a 74 68 69 73 2e 63 75 72 76 65 2e 5f 77 ]):this.curve._w 0000b060: 6e 61 66 4d 75 6c 28 74 68 69 73 2c 65 29 7d 2c nafMul(this,e)}, 0000b070: 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 6d 75 6c On.prototype.mul 0000b080: 41 64 64 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 Add=function(e,t 0000b090: 2c 6e 29 7b 76 61 72 20 72 3d 5b 74 68 69 73 2c ,n){var r=[this, 0000b0a0: 74 5d 2c 6f 3d 5b 65 2c 6e 5d 3b 72 65 74 75 72 t],o=[e,n];retur 0000b0b0: 6e 20 74 68 69 73 2e 63 75 72 76 65 2e 65 6e 64 n this.curve.end 0000b0c0: 6f 3f 74 68 69 73 2e 63 75 72 76 65 2e 5f 65 6e o?this.curve._en 0000b0d0: 64 6f 57 6e 61 66 4d 75 6c 41 64 64 28 72 2c 6f doWnafMulAdd(r,o 0000b0e0: 29 3a 74 68 69 73 2e 63 75 72 76 65 2e 5f 77 6e ):this.curve._wn 0000b0f0: 61 66 4d 75 6c 41 64 64 28 31 2c 72 2c 6f 2c 32 afMulAdd(1,r,o,2 0000b100: 29 7d 2c 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},On.prototype. 0000b110: 6a 6d 75 6c 41 64 64 3d 66 75 6e 63 74 69 6f 6e jmulAdd=function 0000b120: 28 65 2c 74 2c 6e 29 7b 76 61 72 20 72 3d 5b 74 (e,t,n){var r=[t 0000b130: 68 69 73 2c 74 5d 2c 6f 3d 5b 65 2c 6e 5d 3b 72 his,t],o=[e,n];r 0000b140: 65 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 eturn this.curve 0000b150: 2e 65 6e 64 6f 3f 74 68 69 73 2e 63 75 72 76 65 .endo?this.curve 0000b160: 2e 5f 65 6e 64 6f 57 6e 61 66 4d 75 6c 41 64 64 ._endoWnafMulAdd 0000b170: 28 72 2c 6f 2c 21 30 29 3a 74 68 69 73 2e 63 75 (r,o,!0):this.cu 0000b180: 72 76 65 2e 5f 77 6e 61 66 4d 75 6c 41 64 64 28 rve._wnafMulAdd( 0000b190: 31 2c 72 2c 6f 2c 32 2c 21 30 29 7d 2c 4f 6e 2e 1,r,o,2,!0)},On. 0000b1a0: 70 72 6f 74 6f 74 79 70 65 2e 65 71 3d 66 75 6e prototype.eq=fun 0000b1b0: 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 ction(e){return 0000b1c0: 74 68 69 73 3d 3d 3d 65 7c 7c 74 68 69 73 2e 69 this===e||this.i 0000b1d0: 6e 66 3d 3d 3d 65 2e 69 6e 66 26 26 28 74 68 69 nf===e.inf&&(thi 0000b1e0: 73 2e 69 6e 66 7c 7c 30 3d 3d 3d 74 68 69 73 2e s.inf||0===this. 0000b1f0: 78 2e 63 6d 70 28 65 2e 78 29 26 26 30 3d 3d 3d x.cmp(e.x)&&0=== 0000b200: 74 68 69 73 2e 79 2e 63 6d 70 28 65 2e 79 29 29 this.y.cmp(e.y)) 0000b210: 7d 2c 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 6e },On.prototype.n 0000b220: 65 67 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 69 eg=function(e){i 0000b230: 66 28 74 68 69 73 2e 69 6e 66 29 72 65 74 75 72 f(this.inf)retur 0000b240: 6e 20 74 68 69 73 3b 76 61 72 20 74 3d 74 68 69 n this;var t=thi 0000b250: 73 2e 63 75 72 76 65 2e 70 6f 69 6e 74 28 74 68 s.curve.point(th 0000b260: 69 73 2e 78 2c 74 68 69 73 2e 79 2e 72 65 64 4e is.x,this.y.redN 0000b270: 65 67 28 29 29 3b 69 66 28 65 26 26 74 68 69 73 eg());if(e&&this 0000b280: 2e 70 72 65 63 6f 6d 70 75 74 65 64 29 7b 76 61 .precomputed){va 0000b290: 72 20 6e 3d 74 68 69 73 2e 70 72 65 63 6f 6d 70 r n=this.precomp 0000b2a0: 75 74 65 64 2c 72 3d 66 75 6e 63 74 69 6f 6e 28 uted,r=function( 0000b2b0: 65 29 7b 72 65 74 75 72 6e 20 65 2e 6e 65 67 28 e){return e.neg( 0000b2c0: 29 7d 3b 74 2e 70 72 65 63 6f 6d 70 75 74 65 64 )};t.precomputed 0000b2d0: 3d 7b 6e 61 66 3a 6e 2e 6e 61 66 26 26 7b 77 6e ={naf:n.naf&&{wn 0000b2e0: 64 3a 6e 2e 6e 61 66 2e 77 6e 64 2c 70 6f 69 6e d:n.naf.wnd,poin 0000b2f0: 74 73 3a 6e 2e 6e 61 66 2e 70 6f 69 6e 74 73 2e ts:n.naf.points. 0000b300: 6d 61 70 28 72 29 7d 2c 64 6f 75 62 6c 65 73 3a map(r)},doubles: 0000b310: 6e 2e 64 6f 75 62 6c 65 73 26 26 7b 73 74 65 70 n.doubles&&{step 0000b320: 3a 6e 2e 64 6f 75 62 6c 65 73 2e 73 74 65 70 2c :n.doubles.step, 0000b330: 70 6f 69 6e 74 73 3a 6e 2e 64 6f 75 62 6c 65 73 points:n.doubles 0000b340: 2e 70 6f 69 6e 74 73 2e 6d 61 70 28 72 29 7d 7d .points.map(r)}} 0000b350: 7d 72 65 74 75 72 6e 20 74 7d 2c 4f 6e 2e 70 72 }return t},On.pr 0000b360: 6f 74 6f 74 79 70 65 2e 74 6f 4a 3d 66 75 6e 63 ototype.toJ=func 0000b370: 74 69 6f 6e 28 29 7b 72 65 74 75 72 6e 20 74 68 tion(){return th 0000b380: 69 73 2e 69 6e 66 3f 74 68 69 73 2e 63 75 72 76 is.inf?this.curv 0000b390: 65 2e 6a 70 6f 69 6e 74 28 6e 75 6c 6c 2c 6e 75 e.jpoint(null,nu 0000b3a0: 6c 6c 2c 6e 75 6c 6c 29 3a 74 68 69 73 2e 63 75 ll,null):this.cu 0000b3b0: 72 76 65 2e 6a 70 6f 69 6e 74 28 74 68 69 73 2e rve.jpoint(this. 0000b3c0: 78 2c 74 68 69 73 2e 79 2c 74 68 69 73 2e 63 75 x,this.y,this.cu 0000b3d0: 72 76 65 2e 6f 6e 65 29 7d 2c 43 6e 28 52 6e 2c rve.one)},Cn(Rn, 0000b3e0: 78 6e 2e 42 61 73 65 50 6f 69 6e 74 29 2c 6b 6e xn.BasePoint),kn 0000b3f0: 2e 70 72 6f 74 6f 74 79 70 65 2e 6a 70 6f 69 6e .prototype.jpoin 0000b400: 74 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e t=function(e,t,n 0000b410: 29 7b 72 65 74 75 72 6e 20 6e 65 77 20 52 6e 28 ){return new Rn( 0000b420: 74 68 69 73 2c 65 2c 74 2c 6e 29 7d 2c 52 6e 2e this,e,t,n)},Rn. 0000b430: 70 72 6f 74 6f 74 79 70 65 2e 74 6f 50 3d 66 75 prototype.toP=fu 0000b440: 6e 63 74 69 6f 6e 28 29 7b 69 66 28 74 68 69 73 nction(){if(this 0000b450: 2e 69 73 49 6e 66 69 6e 69 74 79 28 29 29 72 65 .isInfinity())re 0000b460: 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 2e turn this.curve. 0000b470: 70 6f 69 6e 74 28 6e 75 6c 6c 2c 6e 75 6c 6c 29 point(null,null) 0000b480: 3b 76 61 72 20 65 3d 74 68 69 73 2e 7a 2e 72 65 ;var e=this.z.re 0000b490: 64 49 6e 76 6d 28 29 2c 74 3d 65 2e 72 65 64 53 dInvm(),t=e.redS 0000b4a0: 71 72 28 29 2c 6e 3d 74 68 69 73 2e 78 2e 72 65 qr(),n=this.x.re 0000b4b0: 64 4d 75 6c 28 74 29 2c 72 3d 74 68 69 73 2e 79 dMul(t),r=this.y 0000b4c0: 2e 72 65 64 4d 75 6c 28 74 29 2e 72 65 64 4d 75 .redMul(t).redMu 0000b4d0: 6c 28 65 29 3b 72 65 74 75 72 6e 20 74 68 69 73 l(e);return this 0000b4e0: 2e 63 75 72 76 65 2e 70 6f 69 6e 74 28 6e 2c 72 .curve.point(n,r 0000b4f0: 29 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},Rn.prototype. 0000b500: 6e 65 67 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 neg=function(){r 0000b510: 65 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 eturn this.curve 0000b520: 2e 6a 70 6f 69 6e 74 28 74 68 69 73 2e 78 2c 74 .jpoint(this.x,t 0000b530: 68 69 73 2e 79 2e 72 65 64 4e 65 67 28 29 2c 74 his.y.redNeg(),t 0000b540: 68 69 73 2e 7a 29 7d 2c 52 6e 2e 70 72 6f 74 6f his.z)},Rn.proto 0000b550: 74 79 70 65 2e 61 64 64 3d 66 75 6e 63 74 69 6f type.add=functio 0000b560: 6e 28 65 29 7b 69 66 28 74 68 69 73 2e 69 73 49 n(e){if(this.isI 0000b570: 6e 66 69 6e 69 74 79 28 29 29 72 65 74 75 72 6e nfinity())return 0000b580: 20 65 3b 69 66 28 65 2e 69 73 49 6e 66 69 6e 69 e;if(e.isInfini 0000b590: 74 79 28 29 29 72 65 74 75 72 6e 20 74 68 69 73 ty())return this 0000b5a0: 3b 76 61 72 20 74 3d 65 2e 7a 2e 72 65 64 53 71 ;var t=e.z.redSq 0000b5b0: 72 28 29 2c 6e 3d 74 68 69 73 2e 7a 2e 72 65 64 r(),n=this.z.red 0000b5c0: 53 71 72 28 29 2c 72 3d 74 68 69 73 2e 78 2e 72 Sqr(),r=this.x.r 0000b5d0: 65 64 4d 75 6c 28 74 29 2c 6f 3d 65 2e 78 2e 72 edMul(t),o=e.x.r 0000b5e0: 65 64 4d 75 6c 28 6e 29 2c 69 3d 74 68 69 73 2e edMul(n),i=this. 0000b5f0: 79 2e 72 65 64 4d 75 6c 28 74 2e 72 65 64 4d 75 y.redMul(t.redMu 0000b600: 6c 28 65 2e 7a 29 29 2c 61 3d 65 2e 79 2e 72 65 l(e.z)),a=e.y.re 0000b610: 64 4d 75 6c 28 6e 2e 72 65 64 4d 75 6c 28 74 68 dMul(n.redMul(th 0000b620: 69 73 2e 7a 29 29 2c 73 3d 72 2e 72 65 64 53 75 is.z)),s=r.redSu 0000b630: 62 28 6f 29 2c 6c 3d 69 2e 72 65 64 53 75 62 28 b(o),l=i.redSub( 0000b640: 61 29 3b 69 66 28 30 3d 3d 3d 73 2e 63 6d 70 6e a);if(0===s.cmpn 0000b650: 28 30 29 29 72 65 74 75 72 6e 20 30 21 3d 3d 6c (0))return 0!==l 0000b660: 2e 63 6d 70 6e 28 30 29 3f 74 68 69 73 2e 63 75 .cmpn(0)?this.cu 0000b670: 72 76 65 2e 6a 70 6f 69 6e 74 28 6e 75 6c 6c 2c rve.jpoint(null, 0000b680: 6e 75 6c 6c 2c 6e 75 6c 6c 29 3a 74 68 69 73 2e null,null):this. 0000b690: 64 62 6c 28 29 3b 76 61 72 20 63 3d 73 2e 72 65 dbl();var c=s.re 0000b6a0: 64 53 71 72 28 29 2c 75 3d 63 2e 72 65 64 4d 75 dSqr(),u=c.redMu 0000b6b0: 6c 28 73 29 2c 64 3d 72 2e 72 65 64 4d 75 6c 28 l(s),d=r.redMul( 0000b6c0: 63 29 2c 70 3d 6c 2e 72 65 64 53 71 72 28 29 2e c),p=l.redSqr(). 0000b6d0: 72 65 64 49 41 64 64 28 75 29 2e 72 65 64 49 53 redIAdd(u).redIS 0000b6e0: 75 62 28 64 29 2e 72 65 64 49 53 75 62 28 64 29 ub(d).redISub(d) 0000b6f0: 2c 66 3d 6c 2e 72 65 64 4d 75 6c 28 64 2e 72 65 ,f=l.redMul(d.re 0000b700: 64 49 53 75 62 28 70 29 29 2e 72 65 64 49 53 75 dISub(p)).redISu 0000b710: 62 28 69 2e 72 65 64 4d 75 6c 28 75 29 29 2c 68 b(i.redMul(u)),h 0000b720: 3d 74 68 69 73 2e 7a 2e 72 65 64 4d 75 6c 28 65 =this.z.redMul(e 0000b730: 2e 7a 29 2e 72 65 64 4d 75 6c 28 73 29 3b 72 65 .z).redMul(s);re 0000b740: 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 2e turn this.curve. 0000b750: 6a 70 6f 69 6e 74 28 70 2c 66 2c 68 29 7d 2c 52 jpoint(p,f,h)},R 0000b760: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 6d 69 78 65 n.prototype.mixe 0000b770: 64 41 64 64 3d 66 75 6e 63 74 69 6f 6e 28 65 29 dAdd=function(e) 0000b780: 7b 69 66 28 74 68 69 73 2e 69 73 49 6e 66 69 6e {if(this.isInfin 0000b790: 69 74 79 28 29 29 72 65 74 75 72 6e 20 65 2e 74 ity())return e.t 0000b7a0: 6f 4a 28 29 3b 69 66 28 65 2e 69 73 49 6e 66 69 oJ();if(e.isInfi 0000b7b0: 6e 69 74 79 28 29 29 72 65 74 75 72 6e 20 74 68 nity())return th 0000b7c0: 69 73 3b 76 61 72 20 74 3d 74 68 69 73 2e 7a 2e is;var t=this.z. 0000b7d0: 72 65 64 53 71 72 28 29 2c 6e 3d 74 68 69 73 2e redSqr(),n=this. 0000b7e0: 78 2c 72 3d 65 2e 78 2e 72 65 64 4d 75 6c 28 74 x,r=e.x.redMul(t 0000b7f0: 29 2c 6f 3d 74 68 69 73 2e 79 2c 69 3d 65 2e 79 ),o=this.y,i=e.y 0000b800: 2e 72 65 64 4d 75 6c 28 74 29 2e 72 65 64 4d 75 .redMul(t).redMu 0000b810: 6c 28 74 68 69 73 2e 7a 29 2c 61 3d 6e 2e 72 65 l(this.z),a=n.re 0000b820: 64 53 75 62 28 72 29 2c 73 3d 6f 2e 72 65 64 53 dSub(r),s=o.redS 0000b830: 75 62 28 69 29 3b 69 66 28 30 3d 3d 3d 61 2e 63 ub(i);if(0===a.c 0000b840: 6d 70 6e 28 30 29 29 72 65 74 75 72 6e 20 30 21 mpn(0))return 0! 0000b850: 3d 3d 73 2e 63 6d 70 6e 28 30 29 3f 74 68 69 73 ==s.cmpn(0)?this 0000b860: 2e 63 75 72 76 65 2e 6a 70 6f 69 6e 74 28 6e 75 .curve.jpoint(nu 0000b870: 6c 6c 2c 6e 75 6c 6c 2c 6e 75 6c 6c 29 3a 74 68 ll,null,null):th 0000b880: 69 73 2e 64 62 6c 28 29 3b 76 61 72 20 6c 3d 61 is.dbl();var l=a 0000b890: 2e 72 65 64 53 71 72 28 29 2c 63 3d 6c 2e 72 65 .redSqr(),c=l.re 0000b8a0: 64 4d 75 6c 28 61 29 2c 75 3d 6e 2e 72 65 64 4d dMul(a),u=n.redM 0000b8b0: 75 6c 28 6c 29 2c 64 3d 73 2e 72 65 64 53 71 72 ul(l),d=s.redSqr 0000b8c0: 28 29 2e 72 65 64 49 41 64 64 28 63 29 2e 72 65 ().redIAdd(c).re 0000b8d0: 64 49 53 75 62 28 75 29 2e 72 65 64 49 53 75 62 dISub(u).redISub 0000b8e0: 28 75 29 2c 70 3d 73 2e 72 65 64 4d 75 6c 28 75 (u),p=s.redMul(u 0000b8f0: 2e 72 65 64 49 53 75 62 28 64 29 29 2e 72 65 64 .redISub(d)).red 0000b900: 49 53 75 62 28 6f 2e 72 65 64 4d 75 6c 28 63 29 ISub(o.redMul(c) 0000b910: 29 2c 66 3d 74 68 69 73 2e 7a 2e 72 65 64 4d 75 ),f=this.z.redMu 0000b920: 6c 28 61 29 3b 72 65 74 75 72 6e 20 74 68 69 73 l(a);return this 0000b930: 2e 63 75 72 76 65 2e 6a 70 6f 69 6e 74 28 64 2c .curve.jpoint(d, 0000b940: 70 2c 66 29 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 p,f)},Rn.prototy 0000b950: 70 65 2e 64 62 6c 70 3d 66 75 6e 63 74 69 6f 6e pe.dblp=function 0000b960: 28 65 29 7b 69 66 28 30 3d 3d 3d 65 29 72 65 74 (e){if(0===e)ret 0000b970: 75 72 6e 20 74 68 69 73 3b 69 66 28 74 68 69 73 urn this;if(this 0000b980: 2e 69 73 49 6e 66 69 6e 69 74 79 28 29 29 72 65 .isInfinity())re 0000b990: 74 75 72 6e 20 74 68 69 73 3b 69 66 28 21 65 29 turn this;if(!e) 0000b9a0: 72 65 74 75 72 6e 20 74 68 69 73 2e 64 62 6c 28 return this.dbl( 0000b9b0: 29 3b 76 61 72 20 74 3b 69 66 28 74 68 69 73 2e );var t;if(this. 0000b9c0: 63 75 72 76 65 2e 7a 65 72 6f 41 7c 7c 74 68 69 curve.zeroA||thi 0000b9d0: 73 2e 63 75 72 76 65 2e 74 68 72 65 65 41 29 7b s.curve.threeA){ 0000b9e0: 76 61 72 20 6e 3d 74 68 69 73 3b 66 6f 72 28 74 var n=this;for(t 0000b9f0: 3d 30 3b 74 3c 65 3b 74 2b 2b 29 6e 3d 6e 2e 64 =0;t<e;t++)n=n.d 0000ba00: 62 6c 28 29 3b 72 65 74 75 72 6e 20 6e 7d 76 61 bl();return n}va 0000ba10: 72 20 72 3d 74 68 69 73 2e 63 75 72 76 65 2e 61 r r=this.curve.a 0000ba20: 2c 6f 3d 74 68 69 73 2e 63 75 72 76 65 2e 74 69 ,o=this.curve.ti 0000ba30: 6e 76 2c 69 3d 74 68 69 73 2e 78 2c 61 3d 74 68 nv,i=this.x,a=th 0000ba40: 69 73 2e 79 2c 73 3d 74 68 69 73 2e 7a 2c 6c 3d is.y,s=this.z,l= 0000ba50: 73 2e 72 65 64 53 71 72 28 29 2e 72 65 64 53 71 s.redSqr().redSq 0000ba60: 72 28 29 2c 63 3d 61 2e 72 65 64 41 64 64 28 61 r(),c=a.redAdd(a 0000ba70: 29 3b 66 6f 72 28 74 3d 30 3b 74 3c 65 3b 74 2b );for(t=0;t<e;t+ 0000ba80: 2b 29 7b 76 61 72 20 75 3d 69 2e 72 65 64 53 71 +){var u=i.redSq 0000ba90: 72 28 29 2c 64 3d 63 2e 72 65 64 53 71 72 28 29 r(),d=c.redSqr() 0000baa0: 2c 70 3d 64 2e 72 65 64 53 71 72 28 29 2c 66 3d ,p=d.redSqr(),f= 0000bab0: 75 2e 72 65 64 41 64 64 28 75 29 2e 72 65 64 49 u.redAdd(u).redI 0000bac0: 41 64 64 28 75 29 2e 72 65 64 49 41 64 64 28 72 Add(u).redIAdd(r 0000bad0: 2e 72 65 64 4d 75 6c 28 6c 29 29 2c 68 3d 69 2e .redMul(l)),h=i. 0000bae0: 72 65 64 4d 75 6c 28 64 29 2c 6d 3d 66 2e 72 65 redMul(d),m=f.re 0000baf0: 64 53 71 72 28 29 2e 72 65 64 49 53 75 62 28 68 dSqr().redISub(h 0000bb00: 2e 72 65 64 41 64 64 28 68 29 29 2c 67 3d 68 2e .redAdd(h)),g=h. 0000bb10: 72 65 64 49 53 75 62 28 6d 29 2c 62 3d 66 2e 72 redISub(m),b=f.r 0000bb20: 65 64 4d 75 6c 28 67 29 3b 62 3d 62 2e 72 65 64 edMul(g);b=b.red 0000bb30: 49 41 64 64 28 62 29 2e 72 65 64 49 53 75 62 28 IAdd(b).redISub( 0000bb40: 70 29 3b 76 61 72 20 79 3d 63 2e 72 65 64 4d 75 p);var y=c.redMu 0000bb50: 6c 28 73 29 3b 74 2b 31 3c 65 26 26 28 6c 3d 6c l(s);t+1<e&&(l=l 0000bb60: 2e 72 65 64 4d 75 6c 28 70 29 29 2c 69 3d 6d 2c .redMul(p)),i=m, 0000bb70: 73 3d 79 2c 63 3d 62 7d 72 65 74 75 72 6e 20 74 s=y,c=b}return t 0000bb80: 68 69 73 2e 63 75 72 76 65 2e 6a 70 6f 69 6e 74 his.curve.jpoint 0000bb90: 28 69 2c 63 2e 72 65 64 4d 75 6c 28 6f 29 2c 73 (i,c.redMul(o),s 0000bba0: 29 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},Rn.prototype. 0000bbb0: 64 62 6c 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 dbl=function(){r 0000bbc0: 65 74 75 72 6e 20 74 68 69 73 2e 69 73 49 6e 66 eturn this.isInf 0000bbd0: 69 6e 69 74 79 28 29 3f 74 68 69 73 3a 74 68 69 inity()?this:thi 0000bbe0: 73 2e 63 75 72 76 65 2e 7a 65 72 6f 41 3f 74 68 s.curve.zeroA?th 0000bbf0: 69 73 2e 5f 7a 65 72 6f 44 62 6c 28 29 3a 74 68 is._zeroDbl():th 0000bc00: 69 73 2e 63 75 72 76 65 2e 74 68 72 65 65 41 3f is.curve.threeA? 0000bc10: 74 68 69 73 2e 5f 74 68 72 65 65 44 62 6c 28 29 this._threeDbl() 0000bc20: 3a 74 68 69 73 2e 5f 64 62 6c 28 29 7d 2c 52 6e :this._dbl()},Rn 0000bc30: 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 7a 65 72 6f .prototype._zero 0000bc40: 44 62 6c 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 76 Dbl=function(){v 0000bc50: 61 72 20 65 2c 74 2c 6e 3b 69 66 28 74 68 69 73 ar e,t,n;if(this 0000bc60: 2e 7a 4f 6e 65 29 7b 76 61 72 20 72 3d 74 68 69 .zOne){var r=thi 0000bc70: 73 2e 78 2e 72 65 64 53 71 72 28 29 2c 6f 3d 74 s.x.redSqr(),o=t 0000bc80: 68 69 73 2e 79 2e 72 65 64 53 71 72 28 29 2c 69 his.y.redSqr(),i 0000bc90: 3d 6f 2e 72 65 64 53 71 72 28 29 2c 61 3d 74 68 =o.redSqr(),a=th 0000bca0: 69 73 2e 78 2e 72 65 64 41 64 64 28 6f 29 2e 72 is.x.redAdd(o).r 0000bcb0: 65 64 53 71 72 28 29 2e 72 65 64 49 53 75 62 28 edSqr().redISub( 0000bcc0: 72 29 2e 72 65 64 49 53 75 62 28 69 29 3b 61 3d r).redISub(i);a= 0000bcd0: 61 2e 72 65 64 49 41 64 64 28 61 29 3b 76 61 72 a.redIAdd(a);var 0000bce0: 20 73 3d 72 2e 72 65 64 41 64 64 28 72 29 2e 72 s=r.redAdd(r).r 0000bcf0: 65 64 49 41 64 64 28 72 29 2c 6c 3d 73 2e 72 65 edIAdd(r),l=s.re 0000bd00: 64 53 71 72 28 29 2e 72 65 64 49 53 75 62 28 61 dSqr().redISub(a 0000bd10: 29 2e 72 65 64 49 53 75 62 28 61 29 2c 63 3d 69 ).redISub(a),c=i 0000bd20: 2e 72 65 64 49 41 64 64 28 69 29 3b 63 3d 28 63 .redIAdd(i);c=(c 0000bd30: 3d 63 2e 72 65 64 49 41 64 64 28 63 29 29 2e 72 =c.redIAdd(c)).r 0000bd40: 65 64 49 41 64 64 28 63 29 2c 65 3d 6c 2c 74 3d edIAdd(c),e=l,t= 0000bd50: 73 2e 72 65 64 4d 75 6c 28 61 2e 72 65 64 49 53 s.redMul(a.redIS 0000bd60: 75 62 28 6c 29 29 2e 72 65 64 49 53 75 62 28 63 ub(l)).redISub(c 0000bd70: 29 2c 6e 3d 74 68 69 73 2e 79 2e 72 65 64 41 64 ),n=this.y.redAd 0000bd80: 64 28 74 68 69 73 2e 79 29 7d 65 6c 73 65 7b 76 d(this.y)}else{v 0000bd90: 61 72 20 75 3d 74 68 69 73 2e 78 2e 72 65 64 53 ar u=this.x.redS 0000bda0: 71 72 28 29 2c 64 3d 74 68 69 73 2e 79 2e 72 65 qr(),d=this.y.re 0000bdb0: 64 53 71 72 28 29 2c 70 3d 64 2e 72 65 64 53 71 dSqr(),p=d.redSq 0000bdc0: 72 28 29 2c 66 3d 74 68 69 73 2e 78 2e 72 65 64 r(),f=this.x.red 0000bdd0: 41 64 64 28 64 29 2e 72 65 64 53 71 72 28 29 2e Add(d).redSqr(). 0000bde0: 72 65 64 49 53 75 62 28 75 29 2e 72 65 64 49 53 redISub(u).redIS 0000bdf0: 75 62 28 70 29 3b 66 3d 66 2e 72 65 64 49 41 64 ub(p);f=f.redIAd 0000be00: 64 28 66 29 3b 76 61 72 20 68 3d 75 2e 72 65 64 d(f);var h=u.red 0000be10: 41 64 64 28 75 29 2e 72 65 64 49 41 64 64 28 75 Add(u).redIAdd(u 0000be20: 29 2c 6d 3d 68 2e 72 65 64 53 71 72 28 29 2c 67 ),m=h.redSqr(),g 0000be30: 3d 70 2e 72 65 64 49 41 64 64 28 70 29 3b 67 3d =p.redIAdd(p);g= 0000be40: 28 67 3d 67 2e 72 65 64 49 41 64 64 28 67 29 29 (g=g.redIAdd(g)) 0000be50: 2e 72 65 64 49 41 64 64 28 67 29 2c 65 3d 6d 2e .redIAdd(g),e=m. 0000be60: 72 65 64 49 53 75 62 28 66 29 2e 72 65 64 49 53 redISub(f).redIS 0000be70: 75 62 28 66 29 2c 74 3d 68 2e 72 65 64 4d 75 6c ub(f),t=h.redMul 0000be80: 28 66 2e 72 65 64 49 53 75 62 28 65 29 29 2e 72 (f.redISub(e)).r 0000be90: 65 64 49 53 75 62 28 67 29 2c 6e 3d 28 6e 3d 74 edISub(g),n=(n=t 0000bea0: 68 69 73 2e 79 2e 72 65 64 4d 75 6c 28 74 68 69 his.y.redMul(thi 0000beb0: 73 2e 7a 29 29 2e 72 65 64 49 41 64 64 28 6e 29 s.z)).redIAdd(n) 0000bec0: 7d 72 65 74 75 72 6e 20 74 68 69 73 2e 63 75 72 }return this.cur 0000bed0: 76 65 2e 6a 70 6f 69 6e 74 28 65 2c 74 2c 6e 29 ve.jpoint(e,t,n) 0000bee0: 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f },Rn.prototype._ 0000bef0: 74 68 72 65 65 44 62 6c 3d 66 75 6e 63 74 69 6f threeDbl=functio 0000bf00: 6e 28 29 7b 76 61 72 20 65 2c 74 2c 6e 3b 69 66 n(){var e,t,n;if 0000bf10: 28 74 68 69 73 2e 7a 4f 6e 65 29 7b 76 61 72 20 (this.zOne){var 0000bf20: 72 3d 74 68 69 73 2e 78 2e 72 65 64 53 71 72 28 r=this.x.redSqr( 0000bf30: 29 2c 6f 3d 74 68 69 73 2e 79 2e 72 65 64 53 71 ),o=this.y.redSq 0000bf40: 72 28 29 2c 69 3d 6f 2e 72 65 64 53 71 72 28 29 r(),i=o.redSqr() 0000bf50: 2c 61 3d 74 68 69 73 2e 78 2e 72 65 64 41 64 64 ,a=this.x.redAdd 0000bf60: 28 6f 29 2e 72 65 64 53 71 72 28 29 2e 72 65 64 (o).redSqr().red 0000bf70: 49 53 75 62 28 72 29 2e 72 65 64 49 53 75 62 28 ISub(r).redISub( 0000bf80: 69 29 3b 61 3d 61 2e 72 65 64 49 41 64 64 28 61 i);a=a.redIAdd(a 0000bf90: 29 3b 76 61 72 20 73 3d 72 2e 72 65 64 41 64 64 );var s=r.redAdd 0000bfa0: 28 72 29 2e 72 65 64 49 41 64 64 28 72 29 2e 72 (r).redIAdd(r).r 0000bfb0: 65 64 49 41 64 64 28 74 68 69 73 2e 63 75 72 76 edIAdd(this.curv 0000bfc0: 65 2e 61 29 2c 6c 3d 73 2e 72 65 64 53 71 72 28 e.a),l=s.redSqr( 0000bfd0: 29 2e 72 65 64 49 53 75 62 28 61 29 2e 72 65 64 ).redISub(a).red 0000bfe0: 49 53 75 62 28 61 29 3b 65 3d 6c 3b 76 61 72 20 ISub(a);e=l;var 0000bff0: 63 3d 69 2e 72 65 64 49 41 64 64 28 69 29 3b 63 c=i.redIAdd(i);c 0000c000: 3d 28 63 3d 63 2e 72 65 64 49 41 64 64 28 63 29 =(c=c.redIAdd(c) 0000c010: 29 2e 72 65 64 49 41 64 64 28 63 29 2c 74 3d 73 ).redIAdd(c),t=s 0000c020: 2e 72 65 64 4d 75 6c 28 61 2e 72 65 64 49 53 75 .redMul(a.redISu 0000c030: 62 28 6c 29 29 2e 72 65 64 49 53 75 62 28 63 29 b(l)).redISub(c) 0000c040: 2c 6e 3d 74 68 69 73 2e 79 2e 72 65 64 41 64 64 ,n=this.y.redAdd 0000c050: 28 74 68 69 73 2e 79 29 7d 65 6c 73 65 7b 76 61 (this.y)}else{va 0000c060: 72 20 75 3d 74 68 69 73 2e 7a 2e 72 65 64 53 71 r u=this.z.redSq 0000c070: 72 28 29 2c 64 3d 74 68 69 73 2e 79 2e 72 65 64 r(),d=this.y.red 0000c080: 53 71 72 28 29 2c 70 3d 74 68 69 73 2e 78 2e 72 Sqr(),p=this.x.r 0000c090: 65 64 4d 75 6c 28 64 29 2c 66 3d 74 68 69 73 2e edMul(d),f=this. 0000c0a0: 78 2e 72 65 64 53 75 62 28 75 29 2e 72 65 64 4d x.redSub(u).redM 0000c0b0: 75 6c 28 74 68 69 73 2e 78 2e 72 65 64 41 64 64 ul(this.x.redAdd 0000c0c0: 28 75 29 29 3b 66 3d 66 2e 72 65 64 41 64 64 28 (u));f=f.redAdd( 0000c0d0: 66 29 2e 72 65 64 49 41 64 64 28 66 29 3b 76 61 f).redIAdd(f);va 0000c0e0: 72 20 68 3d 70 2e 72 65 64 49 41 64 64 28 70 29 r h=p.redIAdd(p) 0000c0f0: 2c 6d 3d 28 68 3d 68 2e 72 65 64 49 41 64 64 28 ,m=(h=h.redIAdd( 0000c100: 68 29 29 2e 72 65 64 41 64 64 28 68 29 3b 65 3d h)).redAdd(h);e= 0000c110: 66 2e 72 65 64 53 71 72 28 29 2e 72 65 64 49 53 f.redSqr().redIS 0000c120: 75 62 28 6d 29 2c 6e 3d 74 68 69 73 2e 79 2e 72 ub(m),n=this.y.r 0000c130: 65 64 41 64 64 28 74 68 69 73 2e 7a 29 2e 72 65 edAdd(this.z).re 0000c140: 64 53 71 72 28 29 2e 72 65 64 49 53 75 62 28 64 dSqr().redISub(d 0000c150: 29 2e 72 65 64 49 53 75 62 28 75 29 3b 76 61 72 ).redISub(u);var 0000c160: 20 67 3d 64 2e 72 65 64 53 71 72 28 29 3b 67 3d g=d.redSqr();g= 0000c170: 28 67 3d 28 67 3d 67 2e 72 65 64 49 41 64 64 28 (g=(g=g.redIAdd( 0000c180: 67 29 29 2e 72 65 64 49 41 64 64 28 67 29 29 2e g)).redIAdd(g)). 0000c190: 72 65 64 49 41 64 64 28 67 29 2c 74 3d 66 2e 72 redIAdd(g),t=f.r 0000c1a0: 65 64 4d 75 6c 28 68 2e 72 65 64 49 53 75 62 28 edMul(h.redISub( 0000c1b0: 65 29 29 2e 72 65 64 49 53 75 62 28 67 29 7d 72 e)).redISub(g)}r 0000c1c0: 65 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 eturn this.curve 0000c1d0: 2e 6a 70 6f 69 6e 74 28 65 2c 74 2c 6e 29 7d 2c .jpoint(e,t,n)}, 0000c1e0: 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 64 62 Rn.prototype._db 0000c1f0: 6c 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 76 61 72 l=function(){var 0000c200: 20 65 3d 74 68 69 73 2e 63 75 72 76 65 2e 61 2c e=this.curve.a, 0000c210: 74 3d 74 68 69 73 2e 78 2c 6e 3d 74 68 69 73 2e t=this.x,n=this. 0000c220: 79 2c 72 3d 74 68 69 73 2e 7a 2c 6f 3d 72 2e 72 y,r=this.z,o=r.r 0000c230: 65 64 53 71 72 28 29 2e 72 65 64 53 71 72 28 29 edSqr().redSqr() 0000c240: 2c 69 3d 74 2e 72 65 64 53 71 72 28 29 2c 61 3d ,i=t.redSqr(),a= 0000c250: 6e 2e 72 65 64 53 71 72 28 29 2c 73 3d 69 2e 72 n.redSqr(),s=i.r 0000c260: 65 64 41 64 64 28 69 29 2e 72 65 64 49 41 64 64 edAdd(i).redIAdd 0000c270: 28 69 29 2e 72 65 64 49 41 64 64 28 65 2e 72 65 (i).redIAdd(e.re 0000c280: 64 4d 75 6c 28 6f 29 29 2c 6c 3d 74 2e 72 65 64 dMul(o)),l=t.red 0000c290: 41 64 64 28 74 29 2c 63 3d 28 6c 3d 6c 2e 72 65 Add(t),c=(l=l.re 0000c2a0: 64 49 41 64 64 28 6c 29 29 2e 72 65 64 4d 75 6c dIAdd(l)).redMul 0000c2b0: 28 61 29 2c 75 3d 73 2e 72 65 64 53 71 72 28 29 (a),u=s.redSqr() 0000c2c0: 2e 72 65 64 49 53 75 62 28 63 2e 72 65 64 41 64 .redISub(c.redAd 0000c2d0: 64 28 63 29 29 2c 64 3d 63 2e 72 65 64 49 53 75 d(c)),d=c.redISu 0000c2e0: 62 28 75 29 2c 70 3d 61 2e 72 65 64 53 71 72 28 b(u),p=a.redSqr( 0000c2f0: 29 3b 70 3d 28 70 3d 28 70 3d 70 2e 72 65 64 49 );p=(p=(p=p.redI 0000c300: 41 64 64 28 70 29 29 2e 72 65 64 49 41 64 64 28 Add(p)).redIAdd( 0000c310: 70 29 29 2e 72 65 64 49 41 64 64 28 70 29 3b 76 p)).redIAdd(p);v 0000c320: 61 72 20 66 3d 73 2e 72 65 64 4d 75 6c 28 64 29 ar f=s.redMul(d) 0000c330: 2e 72 65 64 49 53 75 62 28 70 29 2c 68 3d 6e 2e .redISub(p),h=n. 0000c340: 72 65 64 41 64 64 28 6e 29 2e 72 65 64 4d 75 6c redAdd(n).redMul 0000c350: 28 72 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e (r);return this. 0000c360: 63 75 72 76 65 2e 6a 70 6f 69 6e 74 28 75 2c 66 curve.jpoint(u,f 0000c370: 2c 68 29 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 70 ,h)},Rn.prototyp 0000c380: 65 2e 74 72 70 6c 3d 66 75 6e 63 74 69 6f 6e 28 e.trpl=function( 0000c390: 29 7b 69 66 28 21 74 68 69 73 2e 63 75 72 76 65 ){if(!this.curve 0000c3a0: 2e 7a 65 72 6f 41 29 72 65 74 75 72 6e 20 74 68 .zeroA)return th 0000c3b0: 69 73 2e 64 62 6c 28 29 2e 61 64 64 28 74 68 69 is.dbl().add(thi 0000c3c0: 73 29 3b 76 61 72 20 65 3d 74 68 69 73 2e 78 2e s);var e=this.x. 0000c3d0: 72 65 64 53 71 72 28 29 2c 74 3d 74 68 69 73 2e redSqr(),t=this. 0000c3e0: 79 2e 72 65 64 53 71 72 28 29 2c 6e 3d 74 68 69 y.redSqr(),n=thi 0000c3f0: 73 2e 7a 2e 72 65 64 53 71 72 28 29 2c 72 3d 74 s.z.redSqr(),r=t 0000c400: 2e 72 65 64 53 71 72 28 29 2c 6f 3d 65 2e 72 65 .redSqr(),o=e.re 0000c410: 64 41 64 64 28 65 29 2e 72 65 64 49 41 64 64 28 dAdd(e).redIAdd( 0000c420: 65 29 2c 69 3d 6f 2e 72 65 64 53 71 72 28 29 2c e),i=o.redSqr(), 0000c430: 61 3d 74 68 69 73 2e 78 2e 72 65 64 41 64 64 28 a=this.x.redAdd( 0000c440: 74 29 2e 72 65 64 53 71 72 28 29 2e 72 65 64 49 t).redSqr().redI 0000c450: 53 75 62 28 65 29 2e 72 65 64 49 53 75 62 28 72 Sub(e).redISub(r 0000c460: 29 2c 73 3d 28 61 3d 28 61 3d 28 61 3d 61 2e 72 ),s=(a=(a=(a=a.r 0000c470: 65 64 49 41 64 64 28 61 29 29 2e 72 65 64 41 64 edIAdd(a)).redAd 0000c480: 64 28 61 29 2e 72 65 64 49 41 64 64 28 61 29 29 d(a).redIAdd(a)) 0000c490: 2e 72 65 64 49 53 75 62 28 69 29 29 2e 72 65 64 .redISub(i)).red 0000c4a0: 53 71 72 28 29 2c 6c 3d 72 2e 72 65 64 49 41 64 Sqr(),l=r.redIAd 0000c4b0: 64 28 72 29 3b 6c 3d 28 6c 3d 28 6c 3d 6c 2e 72 d(r);l=(l=(l=l.r 0000c4c0: 65 64 49 41 64 64 28 6c 29 29 2e 72 65 64 49 41 edIAdd(l)).redIA 0000c4d0: 64 64 28 6c 29 29 2e 72 65 64 49 41 64 64 28 6c dd(l)).redIAdd(l 0000c4e0: 29 3b 76 61 72 20 63 3d 6f 2e 72 65 64 49 41 64 );var c=o.redIAd 0000c4f0: 64 28 61 29 2e 72 65 64 53 71 72 28 29 2e 72 65 d(a).redSqr().re 0000c500: 64 49 53 75 62 28 69 29 2e 72 65 64 49 53 75 62 dISub(i).redISub 0000c510: 28 73 29 2e 72 65 64 49 53 75 62 28 6c 29 2c 75 (s).redISub(l),u 0000c520: 3d 74 2e 72 65 64 4d 75 6c 28 63 29 3b 75 3d 28 =t.redMul(c);u=( 0000c530: 75 3d 75 2e 72 65 64 49 41 64 64 28 75 29 29 2e u=u.redIAdd(u)). 0000c540: 72 65 64 49 41 64 64 28 75 29 3b 76 61 72 20 64 redIAdd(u);var d 0000c550: 3d 74 68 69 73 2e 78 2e 72 65 64 4d 75 6c 28 73 =this.x.redMul(s 0000c560: 29 2e 72 65 64 49 53 75 62 28 75 29 3b 64 3d 28 ).redISub(u);d=( 0000c570: 64 3d 64 2e 72 65 64 49 41 64 64 28 64 29 29 2e d=d.redIAdd(d)). 0000c580: 72 65 64 49 41 64 64 28 64 29 3b 76 61 72 20 70 redIAdd(d);var p 0000c590: 3d 74 68 69 73 2e 79 2e 72 65 64 4d 75 6c 28 63 =this.y.redMul(c 0000c5a0: 2e 72 65 64 4d 75 6c 28 6c 2e 72 65 64 49 53 75 .redMul(l.redISu 0000c5b0: 62 28 63 29 29 2e 72 65 64 49 53 75 62 28 61 2e b(c)).redISub(a. 0000c5c0: 72 65 64 4d 75 6c 28 73 29 29 29 3b 70 3d 28 70 redMul(s)));p=(p 0000c5d0: 3d 28 70 3d 70 2e 72 65 64 49 41 64 64 28 70 29 =(p=p.redIAdd(p) 0000c5e0: 29 2e 72 65 64 49 41 64 64 28 70 29 29 2e 72 65 ).redIAdd(p)).re 0000c5f0: 64 49 41 64 64 28 70 29 3b 76 61 72 20 66 3d 74 dIAdd(p);var f=t 0000c600: 68 69 73 2e 7a 2e 72 65 64 41 64 64 28 61 29 2e his.z.redAdd(a). 0000c610: 72 65 64 53 71 72 28 29 2e 72 65 64 49 53 75 62 redSqr().redISub 0000c620: 28 6e 29 2e 72 65 64 49 53 75 62 28 73 29 3b 72 (n).redISub(s);r 0000c630: 65 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 eturn this.curve 0000c640: 2e 6a 70 6f 69 6e 74 28 64 2c 70 2c 66 29 7d 2c .jpoint(d,p,f)}, 0000c650: 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 6d 75 6c Rn.prototype.mul 0000c660: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 =function(e,t){r 0000c670: 65 74 75 72 6e 20 65 3d 6e 65 77 28 7a 28 29 29 eturn e=new(z()) 0000c680: 28 65 2c 74 29 2c 74 68 69 73 2e 63 75 72 76 65 (e,t),this.curve 0000c690: 2e 5f 77 6e 61 66 4d 75 6c 28 74 68 69 73 2c 65 ._wnafMul(this,e 0000c6a0: 29 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},Rn.prototype. 0000c6b0: 65 71 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 69 eq=function(e){i 0000c6c0: 66 28 22 61 66 66 69 6e 65 22 3d 3d 3d 65 2e 74 f("affine"===e.t 0000c6d0: 79 70 65 29 72 65 74 75 72 6e 20 74 68 69 73 2e ype)return this. 0000c6e0: 65 71 28 65 2e 74 6f 4a 28 29 29 3b 69 66 28 74 eq(e.toJ());if(t 0000c6f0: 68 69 73 3d 3d 3d 65 29 72 65 74 75 72 6e 21 30 his===e)return!0 0000c700: 3b 76 61 72 20 74 3d 74 68 69 73 2e 7a 2e 72 65 ;var t=this.z.re 0000c710: 64 53 71 72 28 29 2c 6e 3d 65 2e 7a 2e 72 65 64 dSqr(),n=e.z.red 0000c720: 53 71 72 28 29 3b 69 66 28 30 21 3d 3d 74 68 69 Sqr();if(0!==thi 0000c730: 73 2e 78 2e 72 65 64 4d 75 6c 28 6e 29 2e 72 65 s.x.redMul(n).re 0000c740: 64 49 53 75 62 28 65 2e 78 2e 72 65 64 4d 75 6c dISub(e.x.redMul 0000c750: 28 74 29 29 2e 63 6d 70 6e 28 30 29 29 72 65 74 (t)).cmpn(0))ret 0000c760: 75 72 6e 21 31 3b 76 61 72 20 72 3d 74 2e 72 65 urn!1;var r=t.re 0000c770: 64 4d 75 6c 28 74 68 69 73 2e 7a 29 2c 6f 3d 6e dMul(this.z),o=n 0000c780: 2e 72 65 64 4d 75 6c 28 65 2e 7a 29 3b 72 65 74 .redMul(e.z);ret 0000c790: 75 72 6e 20 30 3d 3d 3d 74 68 69 73 2e 79 2e 72 urn 0===this.y.r 0000c7a0: 65 64 4d 75 6c 28 6f 29 2e 72 65 64 49 53 75 62 edMul(o).redISub 0000c7b0: 28 65 2e 79 2e 72 65 64 4d 75 6c 28 72 29 29 2e (e.y.redMul(r)). 0000c7c0: 63 6d 70 6e 28 30 29 7d 2c 52 6e 2e 70 72 6f 74 cmpn(0)},Rn.prot 0000c7d0: 6f 74 79 70 65 2e 65 71 58 54 6f 50 3d 66 75 6e otype.eqXToP=fun 0000c7e0: 63 74 69 6f 6e 28 65 29 7b 76 61 72 20 74 3d 74 ction(e){var t=t 0000c7f0: 68 69 73 2e 7a 2e 72 65 64 53 71 72 28 29 2c 6e his.z.redSqr(),n 0000c800: 3d 65 2e 74 6f 52 65 64 28 74 68 69 73 2e 63 75 =e.toRed(this.cu 0000c810: 72 76 65 2e 72 65 64 29 2e 72 65 64 4d 75 6c 28 rve.red).redMul( 0000c820: 74 29 3b 69 66 28 30 3d 3d 3d 74 68 69 73 2e 78 t);if(0===this.x 0000c830: 2e 63 6d 70 28 6e 29 29 72 65 74 75 72 6e 21 30 .cmp(n))return!0 0000c840: 3b 66 6f 72 28 76 61 72 20 72 3d 65 2e 63 6c 6f ;for(var r=e.clo 0000c850: 6e 65 28 29 2c 6f 3d 74 68 69 73 2e 63 75 72 76 ne(),o=this.curv 0000c860: 65 2e 72 65 64 4e 2e 72 65 64 4d 75 6c 28 74 29 e.redN.redMul(t) 0000c870: 3b 3b 29 7b 69 66 28 72 2e 69 61 64 64 28 74 68 ;;){if(r.iadd(th 0000c880: 69 73 2e 63 75 72 76 65 2e 6e 29 2c 72 2e 63 6d is.curve.n),r.cm 0000c890: 70 28 74 68 69 73 2e 63 75 72 76 65 2e 70 29 3e p(this.curve.p)> 0000c8a0: 3d 30 29 72 65 74 75 72 6e 21 31 3b 69 66 28 6e =0)return!1;if(n 0000c8b0: 2e 72 65 64 49 41 64 64 28 6f 29 2c 30 3d 3d 3d .redIAdd(o),0=== 0000c8c0: 74 68 69 73 2e 78 2e 63 6d 70 28 6e 29 29 72 65 this.x.cmp(n))re 0000c8d0: 74 75 72 6e 21 30 7d 7d 2c 52 6e 2e 70 72 6f 74 turn!0}},Rn.prot 0000c8e0: 6f 74 79 70 65 2e 69 6e 73 70 65 63 74 3d 66 75 otype.inspect=fu 0000c8f0: 6e 63 74 69 6f 6e 28 29 7b 72 65 74 75 72 6e 20 nction(){return 0000c900: 74 68 69 73 2e 69 73 49 6e 66 69 6e 69 74 79 28 this.isInfinity( 0000c910: 29 3f 22 3c 45 43 20 4a 50 6f 69 6e 74 20 49 6e )?"<EC JPoint In 0000c920: 66 69 6e 69 74 79 3e 22 3a 22 3c 45 43 20 4a 50 finity>":"<EC JP 0000c930: 6f 69 6e 74 20 78 3a 20 22 2b 74 68 69 73 2e 78 oint x: "+this.x 0000c940: 2e 74 6f 53 74 72 69 6e 67 28 31 36 2c 32 29 2b .toString(16,2)+ 0000c950: 22 20 79 3a 20 22 2b 74 68 69 73 2e 79 2e 74 6f " y: "+this.y.to 0000c960: 53 74 72 69 6e 67 28 31 36 2c 32 29 2b 22 20 7a String(16,2)+" z 0000c970: 3a 20 22 2b 74 68 69 73 2e 7a 2e 74 6f 53 74 72 : "+this.z.toStr 0000c980: 69 6e 67 28 31 36 2c 32 29 2b 22 3e 22 7d 2c 52 ing(16,2)+">"},R 0000c990: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 69 73 49 6e n.prototype.isIn 0000c9a0: 66 69 6e 69 74 79 3d 66 75 6e 63 74 69 6f 6e 28 finity=function( 0000c9b0: 29 7b 72 65 74 75 72 6e 20 30 3d 3d 3d 74 68 69 ){return 0===thi 0000c9c0: 73 2e 7a 2e 63 6d 70 6e 28 30 29 7d 3b 76 61 72 s.z.cmpn(0)};var 0000c9d0: 20 4e 6e 3d 6d 6e 28 28 66 75 6e 63 74 69 6f 6e Nn=mn((function 0000c9e0: 28 65 2c 74 29 7b 76 61 72 20 6e 3d 74 3b 6e 2e (e,t){var n=t;n. 0000c9f0: 62 61 73 65 3d 78 6e 2c 6e 2e 73 68 6f 72 74 3d base=xn,n.short= 0000ca00: 49 6e 2c 6e 2e 6d 6f 6e 74 3d 6e 75 6c 6c 2c 6e In,n.mont=null,n 0000ca10: 2e 65 64 77 61 72 64 73 3d 6e 75 6c 6c 7d 29 29 .edwards=null})) 0000ca20: 2c 50 6e 3d 6d 6e 28 28 66 75 6e 63 74 69 6f 6e ,Pn=mn((function 0000ca30: 28 65 2c 74 29 7b 76 61 72 20 6e 2c 72 3d 74 2c (e,t){var n,r=t, 0000ca40: 6f 3d 76 6e 2e 61 73 73 65 72 74 3b 66 75 6e 63 o=vn.assert;func 0000ca50: 74 69 6f 6e 20 69 28 65 29 7b 22 73 68 6f 72 74 tion i(e){"short 0000ca60: 22 3d 3d 3d 65 2e 74 79 70 65 3f 74 68 69 73 2e "===e.type?this. 0000ca70: 63 75 72 76 65 3d 6e 65 77 20 4e 6e 2e 73 68 6f curve=new Nn.sho 0000ca80: 72 74 28 65 29 3a 22 65 64 77 61 72 64 73 22 3d rt(e):"edwards"= 0000ca90: 3d 3d 65 2e 74 79 70 65 3f 74 68 69 73 2e 63 75 ==e.type?this.cu 0000caa0: 72 76 65 3d 6e 65 77 20 4e 6e 2e 65 64 77 61 72 rve=new Nn.edwar 0000cab0: 64 73 28 65 29 3a 74 68 69 73 2e 63 75 72 76 65 ds(e):this.curve 0000cac0: 3d 6e 65 77 20 4e 6e 2e 6d 6f 6e 74 28 65 29 2c =new Nn.mont(e), 0000cad0: 74 68 69 73 2e 67 3d 74 68 69 73 2e 63 75 72 76 this.g=this.curv 0000cae0: 65 2e 67 2c 74 68 69 73 2e 6e 3d 74 68 69 73 2e e.g,this.n=this. 0000caf0: 63 75 72 76 65 2e 6e 2c 74 68 69 73 2e 68 61 73 curve.n,this.has 0000cb00: 68 3d 65 2e 68 61 73 68 2c 6f 28 74 68 69 73 2e h=e.hash,o(this. 0000cb10: 67 2e 76 61 6c 69 64 61 74 65 28 29 2c 22 49 6e g.validate(),"In 0000cb20: 76 61 6c 69 64 20 63 75 72 76 65 22 29 2c 6f 28 valid curve"),o( 0000cb30: 74 68 69 73 2e 67 2e 6d 75 6c 28 74 68 69 73 2e this.g.mul(this. 0000cb40: 6e 29 2e 69 73 49 6e 66 69 6e 69 74 79 28 29 2c n).isInfinity(), 0000cb50: 22 49 6e 76 61 6c 69 64 20 63 75 72 76 65 2c 20 "Invalid curve, 0000cb60: 47 2a 4e 20 21 3d 20 4f 22 29 7d 66 75 6e 63 74 G*N != O")}funct 0000cb70: 69 6f 6e 20 61 28 65 2c 74 29 7b 4f 62 6a 65 63 ion a(e,t){Objec 0000cb80: 74 2e 64 65 66 69 6e 65 50 72 6f 70 65 72 74 79 t.defineProperty 0000cb90: 28 72 2c 65 2c 7b 63 6f 6e 66 69 67 75 72 61 62 (r,e,{configurab 0000cba0: 6c 65 3a 21 30 2c 65 6e 75 6d 65 72 61 62 6c 65 le:!0,enumerable 0000cbb0: 3a 21 30 2c 67 65 74 3a 66 75 6e 63 74 69 6f 6e :!0,get:function 0000cbc0: 28 29 7b 76 61 72 20 6e 3d 6e 65 77 20 69 28 74 (){var n=new i(t 0000cbd0: 29 3b 72 65 74 75 72 6e 20 4f 62 6a 65 63 74 2e );return Object. 0000cbe0: 64 65 66 69 6e 65 50 72 6f 70 65 72 74 79 28 72 defineProperty(r 0000cbf0: 2c 65 2c 7b 63 6f 6e 66 69 67 75 72 61 62 6c 65 ,e,{configurable 0000cc00: 3a 21 30 2c 65 6e 75 6d 65 72 61 62 6c 65 3a 21 :!0,enumerable:! 0000cc10: 30 2c 76 61 6c 75 65 3a 6e 7d 29 2c 6e 7d 7d 29 0,value:n}),n}}) 0000cc20: 7d 72 2e 50 72 65 73 65 74 43 75 72 76 65 3d 69 }r.PresetCurve=i 0000cc30: 2c 61 28 22 70 31 39 32 22 2c 7b 74 79 70 65 3a ,a("p192",{type: 0000cc40: 22 73 68 6f 72 74 22 2c 70 72 69 6d 65 3a 22 70 "short",prime:"p 0000cc50: 31 39 32 22 2c 70 3a 22 66 66 66 66 66 66 66 66 192",p:"ffffffff 0000cc60: 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 ffffffff ffffff 0000cc70: 66 66 20 66 66 66 66 66 66 66 65 20 66 66 66 66 ff fffffffe ffff 0000cc80: 66 66 66 66 20 66 66 66 66 66 66 66 66 22 2c 61 ffff ffffffff",a 0000cc90: 3a 22 66 66 66 66 66 66 66 66 20 66 66 66 66 66 :"ffffffff fffff 0000cca0: 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 fff ffffffff fff 0000ccb0: 66 66 66 66 65 20 66 66 66 66 66 66 66 66 20 66 ffffe ffffffff f 0000ccc0: 66 66 66 66 66 66 63 22 2c 62 3a 22 36 34 32 31 ffffffc",b:"6421 0000ccd0: 30 35 31 39 20 65 35 39 63 38 30 65 37 20 30 66 0519 e59c80e7 0f 0000cce0: 61 37 65 39 61 62 20 37 32 32 34 33 30 34 39 20 a7e9ab 72243049 0000ccf0: 66 65 62 38 64 65 65 63 20 63 31 34 36 62 39 62 feb8deec c146b9b 0000cd00: 31 22 2c 6e 3a 22 66 66 66 66 66 66 66 66 20 66 1",n:"ffffffff f 0000cd10: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000cd20: 20 39 39 64 65 66 38 33 36 20 31 34 36 62 63 39 99def836 146bc9 0000cd30: 62 31 20 62 34 64 32 32 38 33 31 22 2c 68 61 73 b1 b4d22831",has 0000cd40: 68 3a 68 6e 28 29 2e 73 68 61 32 35 36 2c 67 52 h:hn().sha256,gR 0000cd50: 65 64 3a 21 31 2c 67 3a 5b 22 31 38 38 64 61 38 ed:!1,g:["188da8 0000cd60: 30 65 20 62 30 33 30 39 30 66 36 20 37 63 62 66 0e b03090f6 7cbf 0000cd70: 32 30 65 62 20 34 33 61 31 38 38 30 30 20 66 34 20eb 43a18800 f4 0000cd80: 66 66 30 61 66 64 20 38 32 66 66 31 30 31 32 22 ff0afd 82ff1012" 0000cd90: 2c 22 30 37 31 39 32 62 39 35 20 66 66 63 38 64 ,"07192b95 ffc8d 0000cda0: 61 37 38 20 36 33 31 30 31 31 65 64 20 36 62 32 a78 631011ed 6b2 0000cdb0: 34 63 64 64 35 20 37 33 66 39 37 37 61 31 20 31 4cdd5 73f977a1 1 0000cdc0: 65 37 39 34 38 31 31 22 5d 7d 29 2c 61 28 22 70 e794811"]}),a("p 0000cdd0: 32 32 34 22 2c 7b 74 79 70 65 3a 22 73 68 6f 72 224",{type:"shor 0000cde0: 74 22 2c 70 72 69 6d 65 3a 22 70 32 32 34 22 2c t",prime:"p224", 0000cdf0: 70 3a 22 66 66 66 66 66 66 66 66 20 66 66 66 66 p:"ffffffff ffff 0000ce00: 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 ffff ffffffff ff 0000ce10: 66 66 66 66 66 66 20 30 30 30 30 30 30 30 30 20 ffffff 00000000 0000ce20: 30 30 30 30 30 30 30 30 20 30 30 30 30 30 30 30 00000000 0000000 0000ce30: 31 22 2c 61 3a 22 66 66 66 66 66 66 66 66 20 66 1",a:"ffffffff f 0000ce40: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000ce50: 20 66 66 66 66 66 66 66 65 20 66 66 66 66 66 66 fffffffe ffffff 0000ce60: 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 ff ffffffff ffff 0000ce70: 66 66 66 65 22 2c 62 3a 22 62 34 30 35 30 61 38 fffe",b:"b4050a8 0000ce80: 35 20 30 63 30 34 62 33 61 62 20 66 35 34 31 33 5 0c04b3ab f5413 0000ce90: 32 35 36 20 35 30 34 34 62 30 62 37 20 64 37 62 256 5044b0b7 d7b 0000cea0: 66 64 38 62 61 20 32 37 30 62 33 39 34 33 20 32 fd8ba 270b3943 2 0000ceb0: 33 35 35 66 66 62 34 22 2c 6e 3a 22 66 66 66 66 355ffb4",n:"ffff 0000cec0: 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 ffff ffffffff ff 0000ced0: 66 66 66 66 66 66 20 66 66 66 66 31 36 61 32 20 ffffff ffff16a2 0000cee0: 65 30 62 38 66 30 33 65 20 31 33 64 64 32 39 34 e0b8f03e 13dd294 0000cef0: 35 20 35 63 35 63 32 61 33 64 22 2c 68 61 73 68 5 5c5c2a3d",hash 0000cf00: 3a 68 6e 28 29 2e 73 68 61 32 35 36 2c 67 52 65 :hn().sha256,gRe 0000cf10: 64 3a 21 31 2c 67 3a 5b 22 62 37 30 65 30 63 62 d:!1,g:["b70e0cb 0000cf20: 64 20 36 62 62 34 62 66 37 66 20 33 32 31 33 39 d 6bb4bf7f 32139 0000cf30: 30 62 39 20 34 61 30 33 63 31 64 33 20 35 36 63 0b9 4a03c1d3 56c 0000cf40: 32 31 31 32 32 20 33 34 33 32 38 30 64 36 20 31 21122 343280d6 1 0000cf50: 31 35 63 31 64 32 31 22 2c 22 62 64 33 37 36 33 15c1d21","bd3763 0000cf60: 38 38 20 62 35 66 37 32 33 66 62 20 34 63 32 32 88 b5f723fb 4c22 0000cf70: 64 66 65 36 20 63 64 34 33 37 35 61 30 20 35 61 dfe6 cd4375a0 5a 0000cf80: 30 37 34 37 36 34 20 34 34 64 35 38 31 39 39 20 074764 44d58199 0000cf90: 38 35 30 30 37 65 33 34 22 5d 7d 29 2c 61 28 22 85007e34"]}),a(" 0000cfa0: 70 32 35 36 22 2c 7b 74 79 70 65 3a 22 73 68 6f p256",{type:"sho 0000cfb0: 72 74 22 2c 70 72 69 6d 65 3a 6e 75 6c 6c 2c 70 rt",prime:null,p 0000cfc0: 3a 22 66 66 66 66 66 66 66 66 20 30 30 30 30 30 :"ffffffff 00000 0000cfd0: 30 30 31 20 30 30 30 30 30 30 30 30 20 30 30 30 001 00000000 000 0000cfe0: 30 30 30 30 30 20 30 30 30 30 30 30 30 30 20 66 00000 00000000 f 0000cff0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000d000: 20 66 66 66 66 66 66 66 66 22 2c 61 3a 22 66 66 ffffffff",a:"ff 0000d010: 66 66 66 66 66 66 20 30 30 30 30 30 30 30 31 20 ffffff 00000001 0000d020: 30 30 30 30 30 30 30 30 20 30 30 30 30 30 30 30 00000000 0000000 0000d030: 30 20 30 30 30 30 30 30 30 30 20 66 66 66 66 66 0 00000000 fffff 0000d040: 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 fff ffffffff fff 0000d050: 66 66 66 66 63 22 2c 62 3a 22 35 61 63 36 33 35 ffffc",b:"5ac635 0000d060: 64 38 20 61 61 33 61 39 33 65 37 20 62 33 65 62 d8 aa3a93e7 b3eb 0000d070: 62 64 35 35 20 37 36 39 38 38 36 62 63 20 36 35 bd55 769886bc 65 0000d080: 31 64 30 36 62 30 20 63 63 35 33 62 30 66 36 20 1d06b0 cc53b0f6 0000d090: 33 62 63 65 33 63 33 65 20 32 37 64 32 36 30 34 3bce3c3e 27d2604 0000d0a0: 62 22 2c 6e 3a 22 66 66 66 66 66 66 66 66 20 30 b",n:"ffffffff 0 0000d0b0: 30 30 30 30 30 30 30 20 66 66 66 66 66 66 66 66 0000000 ffffffff 0000d0c0: 20 66 66 66 66 66 66 66 66 20 62 63 65 36 66 61 ffffffff bce6fa 0000d0d0: 61 64 20 61 37 31 37 39 65 38 34 20 66 33 62 39 ad a7179e84 f3b9 0000d0e0: 63 61 63 32 20 66 63 36 33 32 35 35 31 22 2c 68 cac2 fc632551",h 0000d0f0: 61 73 68 3a 68 6e 28 29 2e 73 68 61 32 35 36 2c ash:hn().sha256, 0000d100: 67 52 65 64 3a 21 31 2c 67 3a 5b 22 36 62 31 37 gRed:!1,g:["6b17 0000d110: 64 31 66 32 20 65 31 32 63 34 32 34 37 20 66 38 d1f2 e12c4247 f8 0000d120: 62 63 65 36 65 35 20 36 33 61 34 34 30 66 32 20 bce6e5 63a440f2 0000d130: 37 37 30 33 37 64 38 31 20 32 64 65 62 33 33 61 77037d81 2deb33a 0000d140: 30 20 66 34 61 31 33 39 34 35 20 64 38 39 38 63 0 f4a13945 d898c 0000d150: 32 39 36 22 2c 22 34 66 65 33 34 32 65 32 20 66 296","4fe342e2 f 0000d160: 65 31 61 37 66 39 62 20 38 65 65 37 65 62 34 61 e1a7f9b 8ee7eb4a 0000d170: 20 37 63 30 66 39 65 31 36 20 32 62 63 65 33 33 7c0f9e16 2bce33 0000d180: 35 37 20 36 62 33 31 35 65 63 65 20 63 62 62 36 57 6b315ece cbb6 0000d190: 34 30 36 38 20 33 37 62 66 35 31 66 35 22 5d 7d 4068 37bf51f5"]} 0000d1a0: 29 2c 61 28 22 70 33 38 34 22 2c 7b 74 79 70 65 ),a("p384",{type 0000d1b0: 3a 22 73 68 6f 72 74 22 2c 70 72 69 6d 65 3a 6e :"short",prime:n 0000d1c0: 75 6c 6c 2c 70 3a 22 66 66 66 66 66 66 66 66 20 ull,p:"ffffffff 0000d1d0: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d1e0: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000d1f0: 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 fff ffffffff fff 0000d200: 66 66 66 66 66 20 66 66 66 66 66 66 66 65 20 66 fffff fffffffe f 0000d210: 66 66 66 66 66 66 66 20 30 30 30 30 30 30 30 30 fffffff 00000000 0000d220: 20 30 30 30 30 30 30 30 30 20 66 66 66 66 66 66 00000000 ffffff 0000d230: 66 66 22 2c 61 3a 22 66 66 66 66 66 66 66 66 20 ff",a:"ffffffff 0000d240: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d250: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000d260: 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 fff ffffffff fff 0000d270: 66 66 66 66 66 20 66 66 66 66 66 66 66 65 20 66 fffff fffffffe f 0000d280: 66 66 66 66 66 66 66 20 30 30 30 30 30 30 30 30 fffffff 00000000 0000d290: 20 30 30 30 30 30 30 30 30 20 66 66 66 66 66 66 00000000 ffffff 0000d2a0: 66 63 22 2c 62 3a 22 62 33 33 31 32 66 61 37 20 fc",b:"b3312fa7 0000d2b0: 65 32 33 65 65 37 65 34 20 39 38 38 65 30 35 36 e23ee7e4 988e056 0000d2c0: 62 20 65 33 66 38 32 64 31 39 20 31 38 31 64 39 b e3f82d19 181d9 0000d2d0: 63 36 65 20 66 65 38 31 34 31 31 32 20 30 33 31 c6e fe814112 031 0000d2e0: 34 30 38 38 66 20 35 30 31 33 38 37 35 61 20 63 4088f 5013875a c 0000d2f0: 36 35 36 33 39 38 64 20 38 61 32 65 64 31 39 64 656398d 8a2ed19d 0000d300: 20 32 61 38 35 63 38 65 64 20 64 33 65 63 32 61 2a85c8ed d3ec2a 0000d310: 65 66 22 2c 6e 3a 22 66 66 66 66 66 66 66 66 20 ef",n:"ffffffff 0000d320: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d330: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000d340: 66 66 66 20 66 66 66 66 66 66 66 66 20 63 37 36 fff ffffffff c76 0000d350: 33 34 64 38 31 20 66 34 33 37 32 64 64 66 20 35 34d81 f4372ddf 5 0000d360: 38 31 61 30 64 62 32 20 34 38 62 30 61 37 37 61 81a0db2 48b0a77a 0000d370: 20 65 63 65 63 31 39 36 61 20 63 63 63 35 32 39 ecec196a ccc529 0000d380: 37 33 22 2c 68 61 73 68 3a 68 6e 28 29 2e 73 68 73",hash:hn().sh 0000d390: 61 33 38 34 2c 67 52 65 64 3a 21 31 2c 67 3a 5b a384,gRed:!1,g:[ 0000d3a0: 22 61 61 38 37 63 61 32 32 20 62 65 38 62 30 35 "aa87ca22 be8b05 0000d3b0: 33 37 20 38 65 62 31 63 37 31 65 20 66 33 32 30 37 8eb1c71e f320 0000d3c0: 61 64 37 34 20 36 65 31 64 33 62 36 32 20 38 62 ad74 6e1d3b62 8b 0000d3d0: 61 37 39 62 39 38 20 35 39 66 37 34 31 65 30 20 a79b98 59f741e0 0000d3e0: 38 32 35 34 32 61 33 38 20 35 35 30 32 66 32 35 82542a38 5502f25 0000d3f0: 64 20 62 66 35 35 32 39 36 63 20 33 61 35 34 35 d bf55296c 3a545 0000d400: 65 33 38 20 37 32 37 36 30 61 62 37 22 2c 22 33 e38 72760ab7","3 0000d410: 36 31 37 64 65 34 61 20 39 36 32 36 32 63 36 66 617de4a 96262c6f 0000d420: 20 35 64 39 65 39 38 62 66 20 39 32 39 32 64 63 5d9e98bf 9292dc 0000d430: 32 39 20 66 38 66 34 31 64 62 64 20 32 38 39 61 29 f8f41dbd 289a 0000d440: 31 34 37 63 20 65 39 64 61 33 31 31 33 20 62 35 147c e9da3113 b5 0000d450: 66 30 62 38 63 30 20 30 61 36 30 62 31 63 65 20 f0b8c0 0a60b1ce 0000d460: 31 64 37 65 38 31 39 64 20 37 61 34 33 31 64 37 1d7e819d 7a431d7 0000d470: 63 20 39 30 65 61 30 65 35 66 22 5d 7d 29 2c 61 c 90ea0e5f"]}),a 0000d480: 28 22 70 35 32 31 22 2c 7b 74 79 70 65 3a 22 73 ("p521",{type:"s 0000d490: 68 6f 72 74 22 2c 70 72 69 6d 65 3a 6e 75 6c 6c hort",prime:null 0000d4a0: 2c 70 3a 22 30 30 30 30 30 31 66 66 20 66 66 66 ,p:"000001ff fff 0000d4b0: 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 fffff ffffffff f 0000d4c0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000d4d0: 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 ffffffff ffffff 0000d4e0: 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 ff ffffffff ffff 0000d4f0: 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 ffff ffffffff ff 0000d500: 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 ffffff ffffffff 0000d510: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d520: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000d530: 66 66 66 20 66 66 66 66 66 66 66 66 22 2c 61 3a fff ffffffff",a: 0000d540: 22 30 30 30 30 30 31 66 66 20 66 66 66 66 66 66 "000001ff ffffff 0000d550: 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 ff ffffffff ffff 0000d560: 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 ffff ffffffff ff 0000d570: 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 ffffff ffffffff 0000d580: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d590: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000d5a0: 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 fff ffffffff fff 0000d5b0: 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 fffff ffffffff f 0000d5c0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000d5d0: 20 66 66 66 66 66 66 66 63 22 2c 62 3a 22 30 30 fffffffc",b:"00 0000d5e0: 30 30 30 30 35 31 20 39 35 33 65 62 39 36 31 20 000051 953eb961 0000d5f0: 38 65 31 63 39 61 31 66 20 39 32 39 61 32 31 61 8e1c9a1f 929a21a 0000d600: 30 20 62 36 38 35 34 30 65 65 20 61 32 64 61 37 0 b68540ee a2da7 0000d610: 32 35 62 20 39 39 62 33 31 35 66 33 20 62 38 62 25b 99b315f3 b8b 0000d620: 34 38 39 39 31 20 38 65 66 31 30 39 65 31 20 35 48991 8ef109e1 5 0000d630: 36 31 39 33 39 35 31 20 65 63 37 65 39 33 37 62 6193951 ec7e937b 0000d640: 20 31 36 35 32 63 30 62 64 20 33 62 62 31 62 66 1652c0bd 3bb1bf 0000d650: 30 37 20 33 35 37 33 64 66 38 38 20 33 64 32 63 07 3573df88 3d2c 0000d660: 33 34 66 31 20 65 66 34 35 31 66 64 34 20 36 62 34f1 ef451fd4 6b 0000d670: 35 30 33 66 30 30 22 2c 6e 3a 22 30 30 30 30 30 503f00",n:"00000 0000d680: 31 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 1ff ffffffff fff 0000d690: 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 fffff ffffffff f 0000d6a0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000d6b0: 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 ffffffff ffffff 0000d6c0: 66 66 20 66 66 66 66 66 66 66 61 20 35 31 38 36 ff fffffffa 5186 0000d6d0: 38 37 38 33 20 62 66 32 66 39 36 36 62 20 37 66 8783 bf2f966b 7f 0000d6e0: 63 63 30 31 34 38 20 66 37 30 39 61 35 64 30 20 cc0148 f709a5d0 0000d6f0: 33 62 62 35 63 39 62 38 20 38 39 39 63 34 37 61 3bb5c9b8 899c47a 0000d700: 65 20 62 62 36 66 62 37 31 65 20 39 31 33 38 36 e bb6fb71e 91386 0000d710: 34 30 39 22 2c 68 61 73 68 3a 68 6e 28 29 2e 73 409",hash:hn().s 0000d720: 68 61 35 31 32 2c 67 52 65 64 3a 21 31 2c 67 3a ha512,gRed:!1,g: 0000d730: 5b 22 30 30 30 30 30 30 63 36 20 38 35 38 65 30 ["000000c6 858e0 0000d740: 36 62 37 20 30 34 30 34 65 39 63 64 20 39 65 33 6b7 0404e9cd 9e3 0000d750: 65 63 62 36 36 20 32 33 39 35 62 34 34 32 20 39 ecb66 2395b442 9 0000d760: 63 36 34 38 31 33 39 20 30 35 33 66 62 35 32 31 c648139 053fb521 0000d770: 20 66 38 32 38 61 66 36 30 20 36 62 34 64 33 64 f828af60 6b4d3d 0000d780: 62 61 20 61 31 34 62 35 65 37 37 20 65 66 65 37 ba a14b5e77 efe7 0000d790: 35 39 32 38 20 66 65 31 64 63 31 32 37 20 61 32 5928 fe1dc127 a2 0000d7a0: 66 66 61 38 64 65 20 33 33 34 38 62 33 63 31 20 ffa8de 3348b3c1 0000d7b0: 38 35 36 61 34 32 39 62 20 66 39 37 65 37 65 33 856a429b f97e7e3 0000d7c0: 31 20 63 32 65 35 62 64 36 36 22 2c 22 30 30 30 1 c2e5bd66","000 0000d7d0: 30 30 31 31 38 20 33 39 32 39 36 61 37 38 20 39 00118 39296a78 9 0000d7e0: 61 33 62 63 30 30 34 20 35 63 38 61 35 66 62 34 a3bc004 5c8a5fb4 0000d7f0: 20 32 63 37 64 31 62 64 39 20 39 38 66 35 34 34 2c7d1bd9 98f544 0000d800: 34 39 20 35 37 39 62 34 34 36 38 20 31 37 61 66 49 579b4468 17af 0000d810: 62 64 31 37 20 32 37 33 65 36 36 32 63 20 39 37 bd17 273e662c 97 0000d820: 65 65 37 32 39 39 20 35 65 66 34 32 36 34 30 20 ee7299 5ef42640 0000d830: 63 35 35 30 62 39 30 31 20 33 66 61 64 30 37 36 c550b901 3fad076 0000d840: 31 20 33 35 33 63 37 30 38 36 20 61 32 37 32 63 1 353c7086 a272c 0000d850: 32 34 30 20 38 38 62 65 39 34 37 36 20 39 66 64 240 88be9476 9fd 0000d860: 31 36 36 35 30 22 5d 7d 29 2c 61 28 22 63 75 72 16650"]}),a("cur 0000d870: 76 65 32 35 35 31 39 22 2c 7b 74 79 70 65 3a 22 ve25519",{type:" 0000d880: 6d 6f 6e 74 22 2c 70 72 69 6d 65 3a 22 70 32 35 mont",prime:"p25 0000d890: 35 31 39 22 2c 70 3a 22 37 66 66 66 66 66 66 66 519",p:"7fffffff 0000d8a0: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d8b0: 66 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 fffffffff ffffff 0000d8c0: 66 66 66 66 66 66 66 66 66 66 20 66 66 66 66 66 ffffffffff fffff 0000d8d0: 66 66 66 66 66 66 66 66 66 65 64 22 2c 61 3a 22 fffffffffed",a:" 0000d8e0: 37 36 64 30 36 22 2c 62 3a 22 31 22 2c 6e 3a 22 76d06",b:"1",n:" 0000d8f0: 31 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 1000000000000000 0000d900: 20 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 000000000000000 0000d910: 30 20 31 34 64 65 66 39 64 65 61 32 66 37 39 63 0 14def9dea2f79c 0000d920: 64 36 20 35 38 31 32 36 33 31 61 35 63 66 35 64 d6 5812631a5cf5d 0000d930: 33 65 64 22 2c 68 61 73 68 3a 68 6e 28 29 2e 73 3ed",hash:hn().s 0000d940: 68 61 32 35 36 2c 67 52 65 64 3a 21 31 2c 67 3a ha256,gRed:!1,g: 0000d950: 5b 22 39 22 5d 7d 29 2c 61 28 22 65 64 32 35 35 ["9"]}),a("ed255 0000d960: 31 39 22 2c 7b 74 79 70 65 3a 22 65 64 77 61 72 19",{type:"edwar 0000d970: 64 73 22 2c 70 72 69 6d 65 3a 22 70 32 35 35 31 ds",prime:"p2551 0000d980: 39 22 2c 70 3a 22 37 66 66 66 66 66 66 66 66 66 9",p:"7fffffffff 0000d990: 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 66 ffffff fffffffff 0000d9a0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000d9b0: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d9c0: 66 66 66 66 66 66 66 65 64 22 2c 61 3a 22 2d 31 fffffffed",a:"-1 0000d9d0: 22 2c 63 3a 22 31 22 2c 64 3a 22 35 32 30 33 36 ",c:"1",d:"52036 0000d9e0: 63 65 65 32 62 36 66 66 65 37 33 20 38 63 63 37 cee2b6ffe73 8cc7 0000d9f0: 34 30 37 39 37 37 37 39 65 38 39 38 20 30 30 37 40797779e898 007 0000da00: 30 30 61 34 64 34 31 34 31 64 38 61 62 20 37 35 00a4d4141d8ab 75 0000da10: 65 62 34 64 63 61 31 33 35 39 37 38 61 33 22 2c eb4dca135978a3", 0000da20: 6e 3a 22 31 30 30 30 30 30 30 30 30 30 30 30 30 n:"1000000000000 0000da30: 30 30 30 20 30 30 30 30 30 30 30 30 30 30 30 30 000 000000000000 0000da40: 30 30 30 30 20 31 34 64 65 66 39 64 65 61 32 66 0000 14def9dea2f 0000da50: 37 39 63 64 36 20 35 38 31 32 36 33 31 61 35 63 79cd6 5812631a5c 0000da60: 66 35 64 33 65 64 22 2c 68 61 73 68 3a 68 6e 28 f5d3ed",hash:hn( 0000da70: 29 2e 73 68 61 32 35 36 2c 67 52 65 64 3a 21 31 ).sha256,gRed:!1 0000da80: 2c 67 3a 5b 22 32 31 36 39 33 36 64 33 63 64 36 ,g:["216936d3cd6 0000da90: 65 35 33 66 65 63 30 61 34 65 32 33 31 66 64 64 e53fec0a4e231fdd 0000daa0: 36 64 63 35 63 36 39 32 63 63 37 36 30 39 35 32 6dc5c692cc760952 0000dab0: 35 61 37 62 32 63 39 35 36 32 64 36 30 38 66 32 5a7b2c9562d608f2 0000dac0: 35 64 35 31 61 22 2c 22 36 36 36 36 36 36 36 36 5d51a","66666666 0000dad0: 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 6666666666666666 0000dae0: 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 6666666666666666 0000daf0: 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 6666666666666666 0000db00: 36 36 36 36 36 36 35 38 22 5d 7d 29 3b 74 72 79 66666658"]});try 0000db10: 7b 6e 3d 6e 75 6c 6c 2e 63 72 61 73 68 28 29 7d {n=null.crash()} 0000db20: 63 61 74 63 68 28 65 29 7b 6e 3d 76 6f 69 64 20 catch(e){n=void 0000db30: 30 7d 61 28 22 73 65 63 70 32 35 36 6b 31 22 2c 0}a("secp256k1", 0000db40: 7b 74 79 70 65 3a 22 73 68 6f 72 74 22 2c 70 72 {type:"short",pr 0000db50: 69 6d 65 3a 22 6b 32 35 36 22 2c 70 3a 22 66 66 ime:"k256",p:"ff 0000db60: 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 ffffff ffffffff 0000db70: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000db80: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000db90: 66 66 66 20 66 66 66 66 66 66 66 65 20 66 66 66 fff fffffffe fff 0000dba0: 66 66 63 32 66 22 2c 61 3a 22 30 22 2c 62 3a 22 ffc2f",a:"0",b:" 0000dbb0: 37 22 2c 6e 3a 22 66 66 66 66 66 66 66 66 20 66 7",n:"ffffffff f 0000dbc0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000dbd0: 20 66 66 66 66 66 66 66 65 20 62 61 61 65 64 63 fffffffe baaedc 0000dbe0: 65 36 20 61 66 34 38 61 30 33 62 20 62 66 64 32 e6 af48a03b bfd2 0000dbf0: 35 65 38 63 20 64 30 33 36 34 31 34 31 22 2c 68 5e8c d0364141",h 0000dc00: 3a 22 31 22 2c 68 61 73 68 3a 68 6e 28 29 2e 73 :"1",hash:hn().s 0000dc10: 68 61 32 35 36 2c 62 65 74 61 3a 22 37 61 65 39 ha256,beta:"7ae9 0000dc20: 36 61 32 62 36 35 37 63 30 37 31 30 36 65 36 34 6a2b657c07106e64 0000dc30: 34 37 39 65 61 63 33 34 33 34 65 39 39 63 66 30 479eac3434e99cf0 0000dc40: 34 39 37 35 31 32 66 35 38 39 39 35 63 31 33 39 497512f58995c139 0000dc50: 36 63 32 38 37 31 39 35 30 31 65 65 22 2c 6c 61 6c28719501ee",la 0000dc60: 6d 62 64 61 3a 22 35 33 36 33 61 64 34 63 63 30 mbda:"5363ad4cc0 0000dc70: 35 63 33 30 65 30 61 35 32 36 31 63 30 32 38 38 5c30e0a5261c0288 0000dc80: 31 32 36 34 35 61 31 32 32 65 32 32 65 61 32 30 12645a122e22ea20 0000dc90: 38 31 36 36 37 38 64 66 30 32 39 36 37 63 31 62 816678df02967c1b 0000dca0: 32 33 62 64 37 32 22 2c 62 61 73 69 73 3a 5b 7b 23bd72",basis:[{ 0000dcb0: 61 3a 22 33 30 38 36 64 32 32 31 61 37 64 34 36 a:"3086d221a7d46 0000dcc0: 62 63 64 65 38 36 63 39 30 65 34 39 32 38 34 65 bcde86c90e49284e 0000dcd0: 62 31 35 22 2c 62 3a 22 2d 65 34 34 33 37 65 64 b15",b:"-e4437ed 0000dce0: 36 30 31 30 65 38 38 32 38 36 66 35 34 37 66 61 6010e88286f547fa 0000dcf0: 39 30 61 62 66 65 34 63 33 22 7d 2c 7b 61 3a 22 90abfe4c3"},{a:" 0000dd00: 31 31 34 63 61 35 30 66 37 61 38 65 32 66 33 66 114ca50f7a8e2f3f 0000dd10: 36 35 37 63 31 31 30 38 64 39 64 34 34 63 66 64 657c1108d9d44cfd 0000dd20: 38 22 2c 62 3a 22 33 30 38 36 64 32 32 31 61 37 8",b:"3086d221a7 0000dd30: 64 34 36 62 63 64 65 38 36 63 39 30 65 34 39 32 d46bcde86c90e492 0000dd40: 38 34 65 62 31 35 22 7d 5d 2c 67 52 65 64 3a 21 84eb15"}],gRed:! 0000dd50: 31 2c 67 3a 5b 22 37 39 62 65 36 36 37 65 66 39 1,g:["79be667ef9 0000dd60: 64 63 62 62 61 63 35 35 61 30 36 32 39 35 63 65 dcbbac55a06295ce 0000dd70: 38 37 30 62 30 37 30 32 39 62 66 63 64 62 32 64 870b07029bfcdb2d 0000dd80: 63 65 32 38 64 39 35 39 66 32 38 31 35 62 31 36 ce28d959f2815b16 0000dd90: 66 38 31 37 39 38 22 2c 22 34 38 33 61 64 61 37 f81798","483ada7 0000dda0: 37 32 36 61 33 63 34 36 35 35 64 61 34 66 62 66 726a3c4655da4fbf 0000ddb0: 63 30 65 31 31 30 38 61 38 66 64 31 37 62 34 34 c0e1108a8fd17b44 0000ddc0: 38 61 36 38 35 35 34 31 39 39 63 34 37 64 30 38 8a68554199c47d08 0000ddd0: 66 66 62 31 30 64 34 62 38 22 2c 6e 5d 7d 29 7d ffb10d4b8",n]})} 0000dde0: 29 29 3b 66 75 6e 63 74 69 6f 6e 20 4d 6e 28 65 ));function Mn(e 0000ddf0: 29 7b 69 66 28 21 28 74 68 69 73 20 69 6e 73 74 ){if(!(this inst 0000de00: 61 6e 63 65 6f 66 20 4d 6e 29 29 72 65 74 75 72 anceof Mn))retur 0000de10: 6e 20 6e 65 77 20 4d 6e 28 65 29 3b 74 68 69 73 n new Mn(e);this 0000de20: 2e 68 61 73 68 3d 65 2e 68 61 73 68 2c 74 68 69 .hash=e.hash,thi 0000de30: 73 2e 70 72 65 64 52 65 73 69 73 74 3d 21 21 65 s.predResist=!!e 0000de40: 2e 70 72 65 64 52 65 73 69 73 74 2c 74 68 69 73 .predResist,this 0000de50: 2e 6f 75 74 4c 65 6e 3d 74 68 69 73 2e 68 61 73 .outLen=this.has 0000de60: 68 2e 6f 75 74 53 69 7a 65 2c 74 68 69 73 2e 6d h.outSize,this.m 0000de70: 69 6e 45 6e 74 72 6f 70 79 3d 65 2e 6d 69 6e 45 inEntropy=e.minE 0000de80: 6e 74 72 6f 70 79 7c 7c 74 68 69 73 2e 68 61 73 ntropy||this.has 0000de90: 68 2e 68 6d 61 63 53 74 72 65 6e 67 74 68 2c 74 h.hmacStrength,t 0000dea0: 68 69 73 2e 5f 72 65 73 65 65 64 3d 6e 75 6c 6c his._reseed=null 0000deb0: 2c 74 68 69 73 2e 72 65 73 65 65 64 49 6e 74 65 ,this.reseedInte 0000dec0: 72 76 61 6c 3d 6e 75 6c 6c 2c 74 68 69 73 2e 4b rval=null,this.K 0000ded0: 3d 6e 75 6c 6c 2c 74 68 69 73 2e 56 3d 6e 75 6c =null,this.V=nul 0000dee0: 6c 3b 76 61 72 20 74 3d 79 6e 2e 74 6f 41 72 72 l;var t=yn.toArr 0000def0: 61 79 28 65 2e 65 6e 74 72 6f 70 79 2c 65 2e 65 ay(e.entropy,e.e 0000df00: 6e 74 72 6f 70 79 45 6e 63 7c 7c 22 68 65 78 22 ntropyEnc||"hex" 0000df10: 29 2c 6e 3d 79 6e 2e 74 6f 41 72 72 61 79 28 65 ),n=yn.toArray(e 0000df20: 2e 6e 6f 6e 63 65 2c 65 2e 6e 6f 6e 63 65 45 6e .nonce,e.nonceEn 0000df30: 63 7c 7c 22 68 65 78 22 29 2c 72 3d 79 6e 2e 74 c||"hex"),r=yn.t 0000df40: 6f 41 72 72 61 79 28 65 2e 70 65 72 73 2c 65 2e oArray(e.pers,e. 0000df50: 70 65 72 73 45 6e 63 7c 7c 22 68 65 78 22 29 3b persEnc||"hex"); 0000df60: 67 6e 28 74 2e 6c 65 6e 67 74 68 3e 3d 74 68 69 gn(t.length>=thi 0000df70: 73 2e 6d 69 6e 45 6e 74 72 6f 70 79 2f 38 2c 22 s.minEntropy/8," 0000df80: 4e 6f 74 20 65 6e 6f 75 67 68 20 65 6e 74 72 6f Not enough entro 0000df90: 70 79 2e 20 4d 69 6e 69 6d 75 6d 20 69 73 3a 20 py. Minimum is: 0000dfa0: 22 2b 74 68 69 73 2e 6d 69 6e 45 6e 74 72 6f 70 "+this.minEntrop 0000dfb0: 79 2b 22 20 62 69 74 73 22 29 2c 74 68 69 73 2e y+" bits"),this. 0000dfc0: 5f 69 6e 69 74 28 74 2c 6e 2c 72 29 7d 76 61 72 _init(t,n,r)}var 0000dfd0: 20 44 6e 3d 4d 6e 3b 4d 6e 2e 70 72 6f 74 6f 74 Dn=Mn;Mn.protot 0000dfe0: 79 70 65 2e 5f 69 6e 69 74 3d 66 75 6e 63 74 69 ype._init=functi 0000dff0: 6f 6e 28 65 2c 74 2c 6e 29 7b 76 61 72 20 72 3d on(e,t,n){var r= 0000e000: 65 2e 63 6f 6e 63 61 74 28 74 29 2e 63 6f 6e 63 e.concat(t).conc 0000e010: 61 74 28 6e 29 3b 74 68 69 73 2e 4b 3d 6e 65 77 at(n);this.K=new 0000e020: 20 41 72 72 61 79 28 74 68 69 73 2e 6f 75 74 4c Array(this.outL 0000e030: 65 6e 2f 38 29 2c 74 68 69 73 2e 56 3d 6e 65 77 en/8),this.V=new 0000e040: 20 41 72 72 61 79 28 74 68 69 73 2e 6f 75 74 4c Array(this.outL 0000e050: 65 6e 2f 38 29 3b 66 6f 72 28 76 61 72 20 6f 3d en/8);for(var o= 0000e060: 30 3b 6f 3c 74 68 69 73 2e 56 2e 6c 65 6e 67 74 0;o<this.V.lengt 0000e070: 68 3b 6f 2b 2b 29 74 68 69 73 2e 4b 5b 6f 5d 3d h;o++)this.K[o]= 0000e080: 30 2c 74 68 69 73 2e 56 5b 6f 5d 3d 31 3b 74 68 0,this.V[o]=1;th 0000e090: 69 73 2e 5f 75 70 64 61 74 65 28 72 29 2c 74 68 is._update(r),th 0000e0a0: 69 73 2e 5f 72 65 73 65 65 64 3d 31 2c 74 68 69 is._reseed=1,thi 0000e0b0: 73 2e 72 65 73 65 65 64 49 6e 74 65 72 76 61 6c s.reseedInterval 0000e0c0: 3d 32 38 31 34 37 34 39 37 36 37 31 30 36 35 36 =281474976710656 0000e0d0: 7d 2c 4d 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f },Mn.prototype._ 0000e0e0: 68 6d 61 63 3d 66 75 6e 63 74 69 6f 6e 28 29 7b hmac=function(){ 0000e0f0: 72 65 74 75 72 6e 20 6e 65 77 28 68 6e 28 29 2e return new(hn(). 0000e100: 68 6d 61 63 29 28 74 68 69 73 2e 68 61 73 68 2c hmac)(this.hash, 0000e110: 74 68 69 73 2e 4b 29 7d 2c 4d 6e 2e 70 72 6f 74 this.K)},Mn.prot 0000e120: 6f 74 79 70 65 2e 5f 75 70 64 61 74 65 3d 66 75 otype._update=fu 0000e130: 6e 63 74 69 6f 6e 28 65 29 7b 76 61 72 20 74 3d nction(e){var t= 0000e140: 74 68 69 73 2e 5f 68 6d 61 63 28 29 2e 75 70 64 this._hmac().upd 0000e150: 61 74 65 28 74 68 69 73 2e 56 29 2e 75 70 64 61 ate(this.V).upda 0000e160: 74 65 28 5b 30 5d 29 3b 65 26 26 28 74 3d 74 2e te([0]);e&&(t=t. 0000e170: 75 70 64 61 74 65 28 65 29 29 2c 74 68 69 73 2e update(e)),this. 0000e180: 4b 3d 74 2e 64 69 67 65 73 74 28 29 2c 74 68 69 K=t.digest(),thi 0000e190: 73 2e 56 3d 74 68 69 73 2e 5f 68 6d 61 63 28 29 s.V=this._hmac() 0000e1a0: 2e 75 70 64 61 74 65 28 74 68 69 73 2e 56 29 2e .update(this.V). 0000e1b0: 64 69 67 65 73 74 28 29 2c 65 26 26 28 74 68 69 digest(),e&&(thi 0000e1c0: 73 2e 4b 3d 74 68 69 73 2e 5f 68 6d 61 63 28 29 s.K=this._hmac() 0000e1d0: 2e 75 70 64 61 74 65 28 74 68 69 73 2e 56 29 2e .update(this.V). 0000e1e0: 75 70 64 61 74 65 28 5b 31 5d 29 2e 75 70 64 61 update([1]).upda 0000e1f0: 74 65 28 65 29 2e 64 69 67 65 73 74 28 29 2c 74 te(e).digest(),t 0000e200: 68 69 73 2e 56 3d 74 68 69 73 2e 5f 68 6d 61 63 his.V=this._hmac 0000e210: 28 29 2e 75 70 64 61 74 65 28 74 68 69 73 2e 56 ().update(this.V 0000e220: 29 2e 64 69 67 65 73 74 28 29 29 7d 2c 4d 6e 2e ).digest())},Mn. 0000e230: 70 72 6f 74 6f 74 79 70 65 2e 72 65 73 65 65 64 prototype.reseed 0000e240: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c =function(e,t,n, 0000e250: 72 29 7b 22 73 74 72 69 6e 67 22 21 3d 74 79 70 r){"string"!=typ 0000e260: 65 6f 66 20 74 26 26 28 72 3d 6e 2c 6e 3d 74 2c eof t&&(r=n,n=t, 0000e270: 74 3d 6e 75 6c 6c 29 2c 65 3d 79 6e 2e 74 6f 41 t=null),e=yn.toA 0000e280: 72 72 61 79 28 65 2c 74 29 2c 6e 3d 79 6e 2e 74 rray(e,t),n=yn.t 0000e290: 6f 41 72 72 61 79 28 6e 2c 72 29 2c 67 6e 28 65 oArray(n,r),gn(e 0000e2a0: 2e 6c 65 6e 67 74 68 3e 3d 74 68 69 73 2e 6d 69 .length>=this.mi 0000e2b0: 6e 45 6e 74 72 6f 70 79 2f 38 2c 22 4e 6f 74 20 nEntropy/8,"Not 0000e2c0: 65 6e 6f 75 67 68 20 65 6e 74 72 6f 70 79 2e 20 enough entropy. 0000e2d0: 4d 69 6e 69 6d 75 6d 20 69 73 3a 20 22 2b 74 68 Minimum is: "+th 0000e2e0: 69 73 2e 6d 69 6e 45 6e 74 72 6f 70 79 2b 22 20 is.minEntropy+" 0000e2f0: 62 69 74 73 22 29 2c 74 68 69 73 2e 5f 75 70 64 bits"),this._upd 0000e300: 61 74 65 28 65 2e 63 6f 6e 63 61 74 28 6e 7c 7c ate(e.concat(n|| 0000e310: 5b 5d 29 29 2c 74 68 69 73 2e 5f 72 65 73 65 65 [])),this._resee 0000e320: 64 3d 31 7d 2c 4d 6e 2e 70 72 6f 74 6f 74 79 70 d=1},Mn.prototyp 0000e330: 65 2e 67 65 6e 65 72 61 74 65 3d 66 75 6e 63 74 e.generate=funct 0000e340: 69 6f 6e 28 65 2c 74 2c 6e 2c 72 29 7b 69 66 28 ion(e,t,n,r){if( 0000e350: 74 68 69 73 2e 5f 72 65 73 65 65 64 3e 74 68 69 this._reseed>thi 0000e360: 73 2e 72 65 73 65 65 64 49 6e 74 65 72 76 61 6c s.reseedInterval 0000e370: 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 )throw new Error 0000e380: 28 22 52 65 73 65 65 64 20 69 73 20 72 65 71 75 ("Reseed is requ 0000e390: 69 72 65 64 22 29 3b 22 73 74 72 69 6e 67 22 21 ired");"string"! 0000e3a0: 3d 74 79 70 65 6f 66 20 74 26 26 28 72 3d 6e 2c =typeof t&&(r=n, 0000e3b0: 6e 3d 74 2c 74 3d 6e 75 6c 6c 29 2c 6e 26 26 28 n=t,t=null),n&&( 0000e3c0: 6e 3d 79 6e 2e 74 6f 41 72 72 61 79 28 6e 2c 72 n=yn.toArray(n,r 0000e3d0: 7c 7c 22 68 65 78 22 29 2c 74 68 69 73 2e 5f 75 ||"hex"),this._u 0000e3e0: 70 64 61 74 65 28 6e 29 29 3b 66 6f 72 28 76 61 pdate(n));for(va 0000e3f0: 72 20 6f 3d 5b 5d 3b 6f 2e 6c 65 6e 67 74 68 3c r o=[];o.length< 0000e400: 65 3b 29 74 68 69 73 2e 56 3d 74 68 69 73 2e 5f e;)this.V=this._ 0000e410: 68 6d 61 63 28 29 2e 75 70 64 61 74 65 28 74 68 hmac().update(th 0000e420: 69 73 2e 56 29 2e 64 69 67 65 73 74 28 29 2c 6f is.V).digest(),o 0000e430: 3d 6f 2e 63 6f 6e 63 61 74 28 74 68 69 73 2e 56 =o.concat(this.V 0000e440: 29 3b 76 61 72 20 69 3d 6f 2e 73 6c 69 63 65 28 );var i=o.slice( 0000e450: 30 2c 65 29 3b 72 65 74 75 72 6e 20 74 68 69 73 0,e);return this 0000e460: 2e 5f 75 70 64 61 74 65 28 6e 29 2c 74 68 69 73 ._update(n),this 0000e470: 2e 5f 72 65 73 65 65 64 2b 2b 2c 79 6e 2e 65 6e ._reseed++,yn.en 0000e480: 63 6f 64 65 28 69 2c 74 29 7d 3b 76 61 72 20 4c code(i,t)};var L 0000e490: 6e 3d 76 6e 2e 61 73 73 65 72 74 3b 66 75 6e 63 n=vn.assert;func 0000e4a0: 74 69 6f 6e 20 46 6e 28 65 2c 74 29 7b 74 68 69 tion Fn(e,t){thi 0000e4b0: 73 2e 65 63 3d 65 2c 74 68 69 73 2e 70 72 69 76 s.ec=e,this.priv 0000e4c0: 3d 6e 75 6c 6c 2c 74 68 69 73 2e 70 75 62 3d 6e =null,this.pub=n 0000e4d0: 75 6c 6c 2c 74 2e 70 72 69 76 26 26 74 68 69 73 ull,t.priv&&this 0000e4e0: 2e 5f 69 6d 70 6f 72 74 50 72 69 76 61 74 65 28 ._importPrivate( 0000e4f0: 74 2e 70 72 69 76 2c 74 2e 70 72 69 76 45 6e 63 t.priv,t.privEnc 0000e500: 29 2c 74 2e 70 75 62 26 26 74 68 69 73 2e 5f 69 ),t.pub&&this._i 0000e510: 6d 70 6f 72 74 50 75 62 6c 69 63 28 74 2e 70 75 mportPublic(t.pu 0000e520: 62 2c 74 2e 70 75 62 45 6e 63 29 7d 76 61 72 20 b,t.pubEnc)}var 0000e530: 55 6e 3d 46 6e 3b 46 6e 2e 66 72 6f 6d 50 75 62 Un=Fn;Fn.fromPub 0000e540: 6c 69 63 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 lic=function(e,t 0000e550: 2c 6e 29 7b 72 65 74 75 72 6e 20 74 20 69 6e 73 ,n){return t ins 0000e560: 74 61 6e 63 65 6f 66 20 46 6e 3f 74 3a 6e 65 77 tanceof Fn?t:new 0000e570: 20 46 6e 28 65 2c 7b 70 75 62 3a 74 2c 70 75 62 Fn(e,{pub:t,pub 0000e580: 45 6e 63 3a 6e 7d 29 7d 2c 46 6e 2e 66 72 6f 6d Enc:n})},Fn.from 0000e590: 50 72 69 76 61 74 65 3d 66 75 6e 63 74 69 6f 6e Private=function 0000e5a0: 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e 20 74 (e,t,n){return t 0000e5b0: 20 69 6e 73 74 61 6e 63 65 6f 66 20 46 6e 3f 74 instanceof Fn?t 0000e5c0: 3a 6e 65 77 20 46 6e 28 65 2c 7b 70 72 69 76 3a :new Fn(e,{priv: 0000e5d0: 74 2c 70 72 69 76 45 6e 63 3a 6e 7d 29 7d 2c 46 t,privEnc:n})},F 0000e5e0: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 76 61 6c 69 n.prototype.vali 0000e5f0: 64 61 74 65 3d 66 75 6e 63 74 69 6f 6e 28 29 7b date=function(){ 0000e600: 76 61 72 20 65 3d 74 68 69 73 2e 67 65 74 50 75 var e=this.getPu 0000e610: 62 6c 69 63 28 29 3b 72 65 74 75 72 6e 20 65 2e blic();return e. 0000e620: 69 73 49 6e 66 69 6e 69 74 79 28 29 3f 7b 72 65 isInfinity()?{re 0000e630: 73 75 6c 74 3a 21 31 2c 72 65 61 73 6f 6e 3a 22 sult:!1,reason:" 0000e640: 49 6e 76 61 6c 69 64 20 70 75 62 6c 69 63 20 6b Invalid public k 0000e650: 65 79 22 7d 3a 65 2e 76 61 6c 69 64 61 74 65 28 ey"}:e.validate( 0000e660: 29 3f 65 2e 6d 75 6c 28 74 68 69 73 2e 65 63 2e )?e.mul(this.ec. 0000e670: 63 75 72 76 65 2e 6e 29 2e 69 73 49 6e 66 69 6e curve.n).isInfin 0000e680: 69 74 79 28 29 3f 7b 72 65 73 75 6c 74 3a 21 30 ity()?{result:!0 0000e690: 2c 72 65 61 73 6f 6e 3a 6e 75 6c 6c 7d 3a 7b 72 ,reason:null}:{r 0000e6a0: 65 73 75 6c 74 3a 21 31 2c 72 65 61 73 6f 6e 3a esult:!1,reason: 0000e6b0: 22 50 75 62 6c 69 63 20 6b 65 79 20 2a 20 4e 20 "Public key * N 0000e6c0: 21 3d 20 4f 22 7d 3a 7b 72 65 73 75 6c 74 3a 21 != O"}:{result:! 0000e6d0: 31 2c 72 65 61 73 6f 6e 3a 22 50 75 62 6c 69 63 1,reason:"Public 0000e6e0: 20 6b 65 79 20 69 73 20 6e 6f 74 20 61 20 70 6f key is not a po 0000e6f0: 69 6e 74 22 7d 7d 2c 46 6e 2e 70 72 6f 74 6f 74 int"}},Fn.protot 0000e700: 79 70 65 2e 67 65 74 50 75 62 6c 69 63 3d 66 75 ype.getPublic=fu 0000e710: 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 74 75 nction(e,t){retu 0000e720: 72 6e 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 rn"string"==type 0000e730: 6f 66 20 65 26 26 28 74 3d 65 2c 65 3d 6e 75 6c of e&&(t=e,e=nul 0000e740: 6c 29 2c 74 68 69 73 2e 70 75 62 7c 7c 28 74 68 l),this.pub||(th 0000e750: 69 73 2e 70 75 62 3d 74 68 69 73 2e 65 63 2e 67 is.pub=this.ec.g 0000e760: 2e 6d 75 6c 28 74 68 69 73 2e 70 72 69 76 29 29 .mul(this.priv)) 0000e770: 2c 74 3f 74 68 69 73 2e 70 75 62 2e 65 6e 63 6f ,t?this.pub.enco 0000e780: 64 65 28 74 2c 65 29 3a 74 68 69 73 2e 70 75 62 de(t,e):this.pub 0000e790: 7d 2c 46 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 67 },Fn.prototype.g 0000e7a0: 65 74 50 72 69 76 61 74 65 3d 66 75 6e 63 74 69 etPrivate=functi 0000e7b0: 6f 6e 28 65 29 7b 72 65 74 75 72 6e 22 68 65 78 on(e){return"hex 0000e7c0: 22 3d 3d 3d 65 3f 74 68 69 73 2e 70 72 69 76 2e "===e?this.priv. 0000e7d0: 74 6f 53 74 72 69 6e 67 28 31 36 2c 32 29 3a 74 toString(16,2):t 0000e7e0: 68 69 73 2e 70 72 69 76 7d 2c 46 6e 2e 70 72 6f his.priv},Fn.pro 0000e7f0: 74 6f 74 79 70 65 2e 5f 69 6d 70 6f 72 74 50 72 totype._importPr 0000e800: 69 76 61 74 65 3d 66 75 6e 63 74 69 6f 6e 28 65 ivate=function(e 0000e810: 2c 74 29 7b 74 68 69 73 2e 70 72 69 76 3d 6e 65 ,t){this.priv=ne 0000e820: 77 28 7a 28 29 29 28 65 2c 74 7c 7c 31 36 29 2c w(z())(e,t||16), 0000e830: 74 68 69 73 2e 70 72 69 76 3d 74 68 69 73 2e 70 this.priv=this.p 0000e840: 72 69 76 2e 75 6d 6f 64 28 74 68 69 73 2e 65 63 riv.umod(this.ec 0000e850: 2e 63 75 72 76 65 2e 6e 29 7d 2c 46 6e 2e 70 72 .curve.n)},Fn.pr 0000e860: 6f 74 6f 74 79 70 65 2e 5f 69 6d 70 6f 72 74 50 ototype._importP 0000e870: 75 62 6c 69 63 3d 66 75 6e 63 74 69 6f 6e 28 65 ublic=function(e 0000e880: 2c 74 29 7b 69 66 28 65 2e 78 7c 7c 65 2e 79 29 ,t){if(e.x||e.y) 0000e890: 72 65 74 75 72 6e 22 6d 6f 6e 74 22 3d 3d 3d 74 return"mont"===t 0000e8a0: 68 69 73 2e 65 63 2e 63 75 72 76 65 2e 74 79 70 his.ec.curve.typ 0000e8b0: 65 3f 4c 6e 28 65 2e 78 2c 22 4e 65 65 64 20 78 e?Ln(e.x,"Need x 0000e8c0: 20 63 6f 6f 72 64 69 6e 61 74 65 22 29 3a 22 73 coordinate"):"s 0000e8d0: 68 6f 72 74 22 21 3d 3d 74 68 69 73 2e 65 63 2e hort"!==this.ec. 0000e8e0: 63 75 72 76 65 2e 74 79 70 65 26 26 22 65 64 77 curve.type&&"edw 0000e8f0: 61 72 64 73 22 21 3d 3d 74 68 69 73 2e 65 63 2e ards"!==this.ec. 0000e900: 63 75 72 76 65 2e 74 79 70 65 7c 7c 4c 6e 28 65 curve.type||Ln(e 0000e910: 2e 78 26 26 65 2e 79 2c 22 4e 65 65 64 20 62 6f .x&&e.y,"Need bo 0000e920: 74 68 20 78 20 61 6e 64 20 79 20 63 6f 6f 72 64 th x and y coord 0000e930: 69 6e 61 74 65 22 29 2c 76 6f 69 64 28 74 68 69 inate"),void(thi 0000e940: 73 2e 70 75 62 3d 74 68 69 73 2e 65 63 2e 63 75 s.pub=this.ec.cu 0000e950: 72 76 65 2e 70 6f 69 6e 74 28 65 2e 78 2c 65 2e rve.point(e.x,e. 0000e960: 79 29 29 3b 74 68 69 73 2e 70 75 62 3d 74 68 69 y));this.pub=thi 0000e970: 73 2e 65 63 2e 63 75 72 76 65 2e 64 65 63 6f 64 s.ec.curve.decod 0000e980: 65 50 6f 69 6e 74 28 65 2c 74 29 7d 2c 46 6e 2e ePoint(e,t)},Fn. 0000e990: 70 72 6f 74 6f 74 79 70 65 2e 64 65 72 69 76 65 prototype.derive 0000e9a0: 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 =function(e){ret 0000e9b0: 75 72 6e 20 65 2e 76 61 6c 69 64 61 74 65 28 29 urn e.validate() 0000e9c0: 7c 7c 4c 6e 28 65 2e 76 61 6c 69 64 61 74 65 28 ||Ln(e.validate( 0000e9d0: 29 2c 22 70 75 62 6c 69 63 20 70 6f 69 6e 74 20 ),"public point 0000e9e0: 6e 6f 74 20 76 61 6c 69 64 61 74 65 64 22 29 2c not validated"), 0000e9f0: 65 2e 6d 75 6c 28 74 68 69 73 2e 70 72 69 76 29 e.mul(this.priv) 0000ea00: 2e 67 65 74 58 28 29 7d 2c 46 6e 2e 70 72 6f 74 .getX()},Fn.prot 0000ea10: 6f 74 79 70 65 2e 73 69 67 6e 3d 66 75 6e 63 74 otype.sign=funct 0000ea20: 69 6f 6e 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 ion(e,t,n){retur 0000ea30: 6e 20 74 68 69 73 2e 65 63 2e 73 69 67 6e 28 65 n this.ec.sign(e 0000ea40: 2c 74 68 69 73 2c 74 2c 6e 29 7d 2c 46 6e 2e 70 ,this,t,n)},Fn.p 0000ea50: 72 6f 74 6f 74 79 70 65 2e 76 65 72 69 66 79 3d rototype.verify= 0000ea60: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 function(e,t){re 0000ea70: 74 75 72 6e 20 74 68 69 73 2e 65 63 2e 76 65 72 turn this.ec.ver 0000ea80: 69 66 79 28 65 2c 74 2c 74 68 69 73 29 7d 2c 46 ify(e,t,this)},F 0000ea90: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 69 6e 73 70 n.prototype.insp 0000eaa0: 65 63 74 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 ect=function(){r 0000eab0: 65 74 75 72 6e 22 3c 4b 65 79 20 70 72 69 76 3a eturn"<Key priv: 0000eac0: 20 22 2b 28 74 68 69 73 2e 70 72 69 76 26 26 74 "+(this.priv&&t 0000ead0: 68 69 73 2e 70 72 69 76 2e 74 6f 53 74 72 69 6e his.priv.toStrin 0000eae0: 67 28 31 36 2c 32 29 29 2b 22 20 70 75 62 3a 20 g(16,2))+" pub: 0000eaf0: 22 2b 28 74 68 69 73 2e 70 75 62 26 26 74 68 69 "+(this.pub&&thi 0000eb00: 73 2e 70 75 62 2e 69 6e 73 70 65 63 74 28 29 29 s.pub.inspect()) 0000eb10: 2b 22 20 3e 22 7d 3b 76 61 72 20 42 6e 3d 76 6e +" >"};var Bn=vn 0000eb20: 2e 61 73 73 65 72 74 3b 66 75 6e 63 74 69 6f 6e .assert;function 0000eb30: 20 6a 6e 28 65 2c 74 29 7b 69 66 28 65 20 69 6e jn(e,t){if(e in 0000eb40: 73 74 61 6e 63 65 6f 66 20 6a 6e 29 72 65 74 75 stanceof jn)retu 0000eb50: 72 6e 20 65 3b 74 68 69 73 2e 5f 69 6d 70 6f 72 rn e;this._impor 0000eb60: 74 44 45 52 28 65 2c 74 29 7c 7c 28 42 6e 28 65 tDER(e,t)||(Bn(e 0000eb70: 2e 72 26 26 65 2e 73 2c 22 53 69 67 6e 61 74 75 .r&&e.s,"Signatu 0000eb80: 72 65 20 77 69 74 68 6f 75 74 20 72 20 6f 72 20 re without r or 0000eb90: 73 22 29 2c 74 68 69 73 2e 72 3d 6e 65 77 28 7a s"),this.r=new(z 0000eba0: 28 29 29 28 65 2e 72 2c 31 36 29 2c 74 68 69 73 ())(e.r,16),this 0000ebb0: 2e 73 3d 6e 65 77 28 7a 28 29 29 28 65 2e 73 2c .s=new(z())(e.s, 0000ebc0: 31 36 29 2c 76 6f 69 64 20 30 3d 3d 3d 65 2e 72 16),void 0===e.r 0000ebd0: 65 63 6f 76 65 72 79 50 61 72 61 6d 3f 74 68 69 ecoveryParam?thi 0000ebe0: 73 2e 72 65 63 6f 76 65 72 79 50 61 72 61 6d 3d s.recoveryParam= 0000ebf0: 6e 75 6c 6c 3a 74 68 69 73 2e 72 65 63 6f 76 65 null:this.recove 0000ec00: 72 79 50 61 72 61 6d 3d 65 2e 72 65 63 6f 76 65 ryParam=e.recove 0000ec10: 72 79 50 61 72 61 6d 29 7d 76 61 72 20 7a 6e 3d ryParam)}var zn= 0000ec20: 6a 6e 3b 66 75 6e 63 74 69 6f 6e 20 47 6e 28 29 jn;function Gn() 0000ec30: 7b 74 68 69 73 2e 70 6c 61 63 65 3d 30 7d 66 75 {this.place=0}fu 0000ec40: 6e 63 74 69 6f 6e 20 48 6e 28 65 2c 74 29 7b 76 nction Hn(e,t){v 0000ec50: 61 72 20 6e 3d 65 5b 74 2e 70 6c 61 63 65 2b 2b ar n=e[t.place++ 0000ec60: 5d 3b 69 66 28 21 28 31 32 38 26 6e 29 29 72 65 ];if(!(128&n))re 0000ec70: 74 75 72 6e 20 6e 3b 76 61 72 20 72 3d 31 35 26 turn n;var r=15& 0000ec80: 6e 3b 69 66 28 30 3d 3d 3d 72 7c 7c 72 3e 34 29 n;if(0===r||r>4) 0000ec90: 72 65 74 75 72 6e 21 31 3b 66 6f 72 28 76 61 72 return!1;for(var 0000eca0: 20 6f 3d 30 2c 69 3d 30 2c 61 3d 74 2e 70 6c 61 o=0,i=0,a=t.pla 0000ecb0: 63 65 3b 69 3c 72 3b 69 2b 2b 2c 61 2b 2b 29 6f ce;i<r;i++,a++)o 0000ecc0: 3c 3c 3d 38 2c 6f 7c 3d 65 5b 61 5d 2c 6f 3e 3e <<=8,o|=e[a],o>> 0000ecd0: 3e 3d 30 3b 72 65 74 75 72 6e 21 28 6f 3c 3d 31 >=0;return!(o<=1 0000ece0: 32 37 29 26 26 28 74 2e 70 6c 61 63 65 3d 61 2c 27)&&(t.place=a, 0000ecf0: 6f 29 7d 66 75 6e 63 74 69 6f 6e 20 56 6e 28 65 o)}function Vn(e 0000ed00: 29 7b 66 6f 72 28 76 61 72 20 74 3d 30 2c 6e 3d ){for(var t=0,n= 0000ed10: 65 2e 6c 65 6e 67 74 68 2d 31 3b 21 65 5b 74 5d e.length-1;!e[t] 0000ed20: 26 26 21 28 31 32 38 26 65 5b 74 2b 31 5d 29 26 &&!(128&e[t+1])& 0000ed30: 26 74 3c 6e 3b 29 74 2b 2b 3b 72 65 74 75 72 6e &t<n;)t++;return 0000ed40: 20 30 3d 3d 3d 74 3f 65 3a 65 2e 73 6c 69 63 65 0===t?e:e.slice 0000ed50: 28 74 29 7d 66 75 6e 63 74 69 6f 6e 20 71 6e 28 (t)}function qn( 0000ed60: 65 2c 74 29 7b 69 66 28 74 3c 31 32 38 29 65 2e e,t){if(t<128)e. 0000ed70: 70 75 73 68 28 74 29 3b 65 6c 73 65 7b 76 61 72 push(t);else{var 0000ed80: 20 6e 3d 31 2b 28 4d 61 74 68 2e 6c 6f 67 28 74 n=1+(Math.log(t 0000ed90: 29 2f 4d 61 74 68 2e 4c 4e 32 3e 3e 3e 33 29 3b )/Math.LN2>>>3); 0000eda0: 66 6f 72 28 65 2e 70 75 73 68 28 31 32 38 7c 6e for(e.push(128|n 0000edb0: 29 3b 2d 2d 6e 3b 29 65 2e 70 75 73 68 28 74 3e );--n;)e.push(t> 0000edc0: 3e 3e 28 6e 3c 3c 33 29 26 32 35 35 29 3b 65 2e >>(n<<3)&255);e. 0000edd0: 70 75 73 68 28 74 29 7d 7d 6a 6e 2e 70 72 6f 74 push(t)}}jn.prot 0000ede0: 6f 74 79 70 65 2e 5f 69 6d 70 6f 72 74 44 45 52 otype._importDER 0000edf0: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 65 =function(e,t){e 0000ee00: 3d 76 6e 2e 74 6f 41 72 72 61 79 28 65 2c 74 29 =vn.toArray(e,t) 0000ee10: 3b 76 61 72 20 6e 3d 6e 65 77 20 47 6e 3b 69 66 ;var n=new Gn;if 0000ee20: 28 34 38 21 3d 3d 65 5b 6e 2e 70 6c 61 63 65 2b (48!==e[n.place+ 0000ee30: 2b 5d 29 72 65 74 75 72 6e 21 31 3b 76 61 72 20 +])return!1;var 0000ee40: 72 3d 48 6e 28 65 2c 6e 29 3b 69 66 28 21 31 3d r=Hn(e,n);if(!1= 0000ee50: 3d 3d 72 29 72 65 74 75 72 6e 21 31 3b 69 66 28 ==r)return!1;if( 0000ee60: 72 2b 6e 2e 70 6c 61 63 65 21 3d 3d 65 2e 6c 65 r+n.place!==e.le 0000ee70: 6e 67 74 68 29 72 65 74 75 72 6e 21 31 3b 69 66 ngth)return!1;if 0000ee80: 28 32 21 3d 3d 65 5b 6e 2e 70 6c 61 63 65 2b 2b (2!==e[n.place++ 0000ee90: 5d 29 72 65 74 75 72 6e 21 31 3b 76 61 72 20 6f ])return!1;var o 0000eea0: 3d 48 6e 28 65 2c 6e 29 3b 69 66 28 21 31 3d 3d =Hn(e,n);if(!1== 0000eeb0: 3d 6f 29 72 65 74 75 72 6e 21 31 3b 76 61 72 20 =o)return!1;var 0000eec0: 69 3d 65 2e 73 6c 69 63 65 28 6e 2e 70 6c 61 63 i=e.slice(n.plac 0000eed0: 65 2c 6f 2b 6e 2e 70 6c 61 63 65 29 3b 69 66 28 e,o+n.place);if( 0000eee0: 6e 2e 70 6c 61 63 65 2b 3d 6f 2c 32 21 3d 3d 65 n.place+=o,2!==e 0000eef0: 5b 6e 2e 70 6c 61 63 65 2b 2b 5d 29 72 65 74 75 [n.place++])retu 0000ef00: 72 6e 21 31 3b 76 61 72 20 61 3d 48 6e 28 65 2c rn!1;var a=Hn(e, 0000ef10: 6e 29 3b 69 66 28 21 31 3d 3d 3d 61 29 72 65 74 n);if(!1===a)ret 0000ef20: 75 72 6e 21 31 3b 69 66 28 65 2e 6c 65 6e 67 74 urn!1;if(e.lengt 0000ef30: 68 21 3d 3d 61 2b 6e 2e 70 6c 61 63 65 29 72 65 h!==a+n.place)re 0000ef40: 74 75 72 6e 21 31 3b 76 61 72 20 73 3d 65 2e 73 turn!1;var s=e.s 0000ef50: 6c 69 63 65 28 6e 2e 70 6c 61 63 65 2c 61 2b 6e lice(n.place,a+n 0000ef60: 2e 70 6c 61 63 65 29 3b 69 66 28 30 3d 3d 3d 69 .place);if(0===i 0000ef70: 5b 30 5d 29 7b 69 66 28 21 28 31 32 38 26 69 5b [0]){if(!(128&i[ 0000ef80: 31 5d 29 29 72 65 74 75 72 6e 21 31 3b 69 3d 69 1]))return!1;i=i 0000ef90: 2e 73 6c 69 63 65 28 31 29 7d 69 66 28 30 3d 3d .slice(1)}if(0== 0000efa0: 3d 73 5b 30 5d 29 7b 69 66 28 21 28 31 32 38 26 =s[0]){if(!(128& 0000efb0: 73 5b 31 5d 29 29 72 65 74 75 72 6e 21 31 3b 73 s[1]))return!1;s 0000efc0: 3d 73 2e 73 6c 69 63 65 28 31 29 7d 72 65 74 75 =s.slice(1)}retu 0000efd0: 72 6e 20 74 68 69 73 2e 72 3d 6e 65 77 28 7a 28 rn this.r=new(z( 0000efe0: 29 29 28 69 29 2c 74 68 69 73 2e 73 3d 6e 65 77 ))(i),this.s=new 0000eff0: 28 7a 28 29 29 28 73 29 2c 74 68 69 73 2e 72 65 (z())(s),this.re 0000f000: 63 6f 76 65 72 79 50 61 72 61 6d 3d 6e 75 6c 6c coveryParam=null 0000f010: 2c 21 30 7d 2c 6a 6e 2e 70 72 6f 74 6f 74 79 70 ,!0},jn.prototyp 0000f020: 65 2e 74 6f 44 45 52 3d 66 75 6e 63 74 69 6f 6e e.toDER=function 0000f030: 28 65 29 7b 76 61 72 20 74 3d 74 68 69 73 2e 72 (e){var t=this.r 0000f040: 2e 74 6f 41 72 72 61 79 28 29 2c 6e 3d 74 68 69 .toArray(),n=thi 0000f050: 73 2e 73 2e 74 6f 41 72 72 61 79 28 29 3b 66 6f s.s.toArray();fo 0000f060: 72 28 31 32 38 26 74 5b 30 5d 26 26 28 74 3d 5b r(128&t[0]&&(t=[ 0000f070: 30 5d 2e 63 6f 6e 63 61 74 28 74 29 29 2c 31 32 0].concat(t)),12 0000f080: 38 26 6e 5b 30 5d 26 26 28 6e 3d 5b 30 5d 2e 63 8&n[0]&&(n=[0].c 0000f090: 6f 6e 63 61 74 28 6e 29 29 2c 74 3d 56 6e 28 74 oncat(n)),t=Vn(t 0000f0a0: 29 2c 6e 3d 56 6e 28 6e 29 3b 21 28 6e 5b 30 5d ),n=Vn(n);!(n[0] 0000f0b0: 7c 7c 31 32 38 26 6e 5b 31 5d 29 3b 29 6e 3d 6e ||128&n[1]);)n=n 0000f0c0: 2e 73 6c 69 63 65 28 31 29 3b 76 61 72 20 72 3d .slice(1);var r= 0000f0d0: 5b 32 5d 3b 71 6e 28 72 2c 74 2e 6c 65 6e 67 74 [2];qn(r,t.lengt 0000f0e0: 68 29 2c 28 72 3d 72 2e 63 6f 6e 63 61 74 28 74 h),(r=r.concat(t 0000f0f0: 29 29 2e 70 75 73 68 28 32 29 2c 71 6e 28 72 2c )).push(2),qn(r, 0000f100: 6e 2e 6c 65 6e 67 74 68 29 3b 76 61 72 20 6f 3d n.length);var o= 0000f110: 72 2e 63 6f 6e 63 61 74 28 6e 29 2c 69 3d 5b 34 r.concat(n),i=[4 0000f120: 38 5d 3b 72 65 74 75 72 6e 20 71 6e 28 69 2c 6f 8];return qn(i,o 0000f130: 2e 6c 65 6e 67 74 68 29 2c 69 3d 69 2e 63 6f 6e .length),i=i.con 0000f140: 63 61 74 28 6f 29 2c 76 6e 2e 65 6e 63 6f 64 65 cat(o),vn.encode 0000f150: 28 69 2c 65 29 7d 3b 76 61 72 20 57 6e 3d 66 75 (i,e)};var Wn=fu 0000f160: 6e 63 74 69 6f 6e 28 29 7b 74 68 72 6f 77 20 6e nction(){throw n 0000f170: 65 77 20 45 72 72 6f 72 28 22 75 6e 73 75 70 70 ew Error("unsupp 0000f180: 6f 72 74 65 64 22 29 7d 2c 4b 6e 3d 76 6e 2e 61 orted")},Kn=vn.a 0000f190: 73 73 65 72 74 3b 66 75 6e 63 74 69 6f 6e 20 59 ssert;function Y 0000f1a0: 6e 28 65 29 7b 69 66 28 21 28 74 68 69 73 20 69 n(e){if(!(this i 0000f1b0: 6e 73 74 61 6e 63 65 6f 66 20 59 6e 29 29 72 65 nstanceof Yn))re 0000f1c0: 74 75 72 6e 20 6e 65 77 20 59 6e 28 65 29 3b 22 turn new Yn(e);" 0000f1d0: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 0000f1e0: 65 26 26 28 4b 6e 28 4f 62 6a 65 63 74 2e 70 72 e&&(Kn(Object.pr 0000f1f0: 6f 74 6f 74 79 70 65 2e 68 61 73 4f 77 6e 50 72 ototype.hasOwnPr 0000f200: 6f 70 65 72 74 79 2e 63 61 6c 6c 28 50 6e 2c 65 operty.call(Pn,e 0000f210: 29 2c 22 55 6e 6b 6e 6f 77 6e 20 63 75 72 76 65 ),"Unknown curve 0000f220: 20 22 2b 65 29 2c 65 3d 50 6e 5b 65 5d 29 2c 65 "+e),e=Pn[e]),e 0000f230: 20 69 6e 73 74 61 6e 63 65 6f 66 20 50 6e 2e 50 instanceof Pn.P 0000f240: 72 65 73 65 74 43 75 72 76 65 26 26 28 65 3d 7b resetCurve&&(e={ 0000f250: 63 75 72 76 65 3a 65 7d 29 2c 74 68 69 73 2e 63 curve:e}),this.c 0000f260: 75 72 76 65 3d 65 2e 63 75 72 76 65 2e 63 75 72 urve=e.curve.cur 0000f270: 76 65 2c 74 68 69 73 2e 6e 3d 74 68 69 73 2e 63 ve,this.n=this.c 0000f280: 75 72 76 65 2e 6e 2c 74 68 69 73 2e 6e 68 3d 74 urve.n,this.nh=t 0000f290: 68 69 73 2e 6e 2e 75 73 68 72 6e 28 31 29 2c 74 his.n.ushrn(1),t 0000f2a0: 68 69 73 2e 67 3d 74 68 69 73 2e 63 75 72 76 65 his.g=this.curve 0000f2b0: 2e 67 2c 74 68 69 73 2e 67 3d 65 2e 63 75 72 76 .g,this.g=e.curv 0000f2c0: 65 2e 67 2c 74 68 69 73 2e 67 2e 70 72 65 63 6f e.g,this.g.preco 0000f2d0: 6d 70 75 74 65 28 65 2e 63 75 72 76 65 2e 6e 2e mpute(e.curve.n. 0000f2e0: 62 69 74 4c 65 6e 67 74 68 28 29 2b 31 29 2c 74 bitLength()+1),t 0000f2f0: 68 69 73 2e 68 61 73 68 3d 65 2e 68 61 73 68 7c his.hash=e.hash| 0000f300: 7c 65 2e 63 75 72 76 65 2e 68 61 73 68 7d 76 61 |e.curve.hash}va 0000f310: 72 20 58 6e 3d 59 6e 3b 59 6e 2e 70 72 6f 74 6f r Xn=Yn;Yn.proto 0000f320: 74 79 70 65 2e 6b 65 79 50 61 69 72 3d 66 75 6e type.keyPair=fun 0000f330: 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 ction(e){return 0000f340: 6e 65 77 20 55 6e 28 74 68 69 73 2c 65 29 7d 2c new Un(this,e)}, 0000f350: 59 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 6b 65 79 Yn.prototype.key 0000f360: 46 72 6f 6d 50 72 69 76 61 74 65 3d 66 75 6e 63 FromPrivate=func 0000f370: 74 69 6f 6e 28 65 2c 74 29 7b 72 65 74 75 72 6e tion(e,t){return 0000f380: 20 55 6e 2e 66 72 6f 6d 50 72 69 76 61 74 65 28 Un.fromPrivate( 0000f390: 74 68 69 73 2c 65 2c 74 29 7d 2c 59 6e 2e 70 72 this,e,t)},Yn.pr 0000f3a0: 6f 74 6f 74 79 70 65 2e 6b 65 79 46 72 6f 6d 50 ototype.keyFromP 0000f3b0: 75 62 6c 69 63 3d 66 75 6e 63 74 69 6f 6e 28 65 ublic=function(e 0000f3c0: 2c 74 29 7b 72 65 74 75 72 6e 20 55 6e 2e 66 72 ,t){return Un.fr 0000f3d0: 6f 6d 50 75 62 6c 69 63 28 74 68 69 73 2c 65 2c omPublic(this,e, 0000f3e0: 74 29 7d 2c 59 6e 2e 70 72 6f 74 6f 74 79 70 65 t)},Yn.prototype 0000f3f0: 2e 67 65 6e 4b 65 79 50 61 69 72 3d 66 75 6e 63 .genKeyPair=func 0000f400: 74 69 6f 6e 28 65 29 7b 65 7c 7c 28 65 3d 7b 7d tion(e){e||(e={} 0000f410: 29 3b 66 6f 72 28 76 61 72 20 74 3d 6e 65 77 20 );for(var t=new 0000f420: 44 6e 28 7b 68 61 73 68 3a 74 68 69 73 2e 68 61 Dn({hash:this.ha 0000f430: 73 68 2c 70 65 72 73 3a 65 2e 70 65 72 73 2c 70 sh,pers:e.pers,p 0000f440: 65 72 73 45 6e 63 3a 65 2e 70 65 72 73 45 6e 63 ersEnc:e.persEnc 0000f450: 7c 7c 22 75 74 66 38 22 2c 65 6e 74 72 6f 70 79 ||"utf8",entropy 0000f460: 3a 65 2e 65 6e 74 72 6f 70 79 7c 7c 57 6e 28 74 :e.entropy||Wn(t 0000f470: 68 69 73 2e 68 61 73 68 2e 68 6d 61 63 53 74 72 his.hash.hmacStr 0000f480: 65 6e 67 74 68 29 2c 65 6e 74 72 6f 70 79 45 6e ength),entropyEn 0000f490: 63 3a 65 2e 65 6e 74 72 6f 70 79 26 26 65 2e 65 c:e.entropy&&e.e 0000f4a0: 6e 74 72 6f 70 79 45 6e 63 7c 7c 22 75 74 66 38 ntropyEnc||"utf8 0000f4b0: 22 2c 6e 6f 6e 63 65 3a 74 68 69 73 2e 6e 2e 74 ",nonce:this.n.t 0000f4c0: 6f 41 72 72 61 79 28 29 7d 29 2c 6e 3d 74 68 69 oArray()}),n=thi 0000f4d0: 73 2e 6e 2e 62 79 74 65 4c 65 6e 67 74 68 28 29 s.n.byteLength() 0000f4e0: 2c 72 3d 74 68 69 73 2e 6e 2e 73 75 62 28 6e 65 ,r=this.n.sub(ne 0000f4f0: 77 28 7a 28 29 29 28 32 29 29 3b 3b 29 7b 76 61 w(z())(2));;){va 0000f500: 72 20 6f 3d 6e 65 77 28 7a 28 29 29 28 74 2e 67 r o=new(z())(t.g 0000f510: 65 6e 65 72 61 74 65 28 6e 29 29 3b 69 66 28 21 enerate(n));if(! 0000f520: 28 6f 2e 63 6d 70 28 72 29 3e 30 29 29 72 65 74 (o.cmp(r)>0))ret 0000f530: 75 72 6e 20 6f 2e 69 61 64 64 6e 28 31 29 2c 74 urn o.iaddn(1),t 0000f540: 68 69 73 2e 6b 65 79 46 72 6f 6d 50 72 69 76 61 his.keyFromPriva 0000f550: 74 65 28 6f 29 7d 7d 2c 59 6e 2e 70 72 6f 74 6f te(o)}},Yn.proto 0000f560: 74 79 70 65 2e 5f 74 72 75 6e 63 61 74 65 54 6f type._truncateTo 0000f570: 4e 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b N=function(e,t){ 0000f580: 76 61 72 20 6e 3d 38 2a 65 2e 62 79 74 65 4c 65 var n=8*e.byteLe 0000f590: 6e 67 74 68 28 29 2d 74 68 69 73 2e 6e 2e 62 69 ngth()-this.n.bi 0000f5a0: 74 4c 65 6e 67 74 68 28 29 3b 72 65 74 75 72 6e tLength();return 0000f5b0: 20 6e 3e 30 26 26 28 65 3d 65 2e 75 73 68 72 6e n>0&&(e=e.ushrn 0000f5c0: 28 6e 29 29 2c 21 74 26 26 65 2e 63 6d 70 28 74 (n)),!t&&e.cmp(t 0000f5d0: 68 69 73 2e 6e 29 3e 3d 30 3f 65 2e 73 75 62 28 his.n)>=0?e.sub( 0000f5e0: 74 68 69 73 2e 6e 29 3a 65 7d 2c 59 6e 2e 70 72 this.n):e},Yn.pr 0000f5f0: 6f 74 6f 74 79 70 65 2e 73 69 67 6e 3d 66 75 6e ototype.sign=fun 0000f600: 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c 72 29 7b 22 ction(e,t,n,r){" 0000f610: 6f 62 6a 65 63 74 22 3d 3d 74 79 70 65 6f 66 20 object"==typeof 0000f620: 6e 26 26 28 72 3d 6e 2c 6e 3d 6e 75 6c 6c 29 2c n&&(r=n,n=null), 0000f630: 72 7c 7c 28 72 3d 7b 7d 29 2c 74 3d 74 68 69 73 r||(r={}),t=this 0000f640: 2e 6b 65 79 46 72 6f 6d 50 72 69 76 61 74 65 28 .keyFromPrivate( 0000f650: 74 2c 6e 29 2c 65 3d 74 68 69 73 2e 5f 74 72 75 t,n),e=this._tru 0000f660: 6e 63 61 74 65 54 6f 4e 28 6e 65 77 28 7a 28 29 ncateToN(new(z() 0000f670: 29 28 65 2c 31 36 29 29 3b 66 6f 72 28 76 61 72 )(e,16));for(var 0000f680: 20 6f 3d 74 68 69 73 2e 6e 2e 62 79 74 65 4c 65 o=this.n.byteLe 0000f690: 6e 67 74 68 28 29 2c 69 3d 74 2e 67 65 74 50 72 ngth(),i=t.getPr 0000f6a0: 69 76 61 74 65 28 29 2e 74 6f 41 72 72 61 79 28 ivate().toArray( 0000f6b0: 22 62 65 22 2c 6f 29 2c 61 3d 65 2e 74 6f 41 72 "be",o),a=e.toAr 0000f6c0: 72 61 79 28 22 62 65 22 2c 6f 29 2c 73 3d 6e 65 ray("be",o),s=ne 0000f6d0: 77 20 44 6e 28 7b 68 61 73 68 3a 74 68 69 73 2e w Dn({hash:this. 0000f6e0: 68 61 73 68 2c 65 6e 74 72 6f 70 79 3a 69 2c 6e hash,entropy:i,n 0000f6f0: 6f 6e 63 65 3a 61 2c 70 65 72 73 3a 72 2e 70 65 once:a,pers:r.pe 0000f700: 72 73 2c 70 65 72 73 45 6e 63 3a 72 2e 70 65 72 rs,persEnc:r.per 0000f710: 73 45 6e 63 7c 7c 22 75 74 66 38 22 7d 29 2c 6c sEnc||"utf8"}),l 0000f720: 3d 74 68 69 73 2e 6e 2e 73 75 62 28 6e 65 77 28 =this.n.sub(new( 0000f730: 7a 28 29 29 28 31 29 29 2c 63 3d 30 3b 3b 63 2b z())(1)),c=0;;c+ 0000f740: 2b 29 7b 76 61 72 20 75 3d 72 2e 6b 3f 72 2e 6b +){var u=r.k?r.k 0000f750: 28 63 29 3a 6e 65 77 28 7a 28 29 29 28 73 2e 67 (c):new(z())(s.g 0000f760: 65 6e 65 72 61 74 65 28 74 68 69 73 2e 6e 2e 62 enerate(this.n.b 0000f770: 79 74 65 4c 65 6e 67 74 68 28 29 29 29 3b 69 66 yteLength()));if 0000f780: 28 21 28 28 75 3d 74 68 69 73 2e 5f 74 72 75 6e (!((u=this._trun 0000f790: 63 61 74 65 54 6f 4e 28 75 2c 21 30 29 29 2e 63 cateToN(u,!0)).c 0000f7a0: 6d 70 6e 28 31 29 3c 3d 30 7c 7c 75 2e 63 6d 70 mpn(1)<=0||u.cmp 0000f7b0: 28 6c 29 3e 3d 30 29 29 7b 76 61 72 20 64 3d 74 (l)>=0)){var d=t 0000f7c0: 68 69 73 2e 67 2e 6d 75 6c 28 75 29 3b 69 66 28 his.g.mul(u);if( 0000f7d0: 21 64 2e 69 73 49 6e 66 69 6e 69 74 79 28 29 29 !d.isInfinity()) 0000f7e0: 7b 76 61 72 20 70 3d 64 2e 67 65 74 58 28 29 2c {var p=d.getX(), 0000f7f0: 66 3d 70 2e 75 6d 6f 64 28 74 68 69 73 2e 6e 29 f=p.umod(this.n) 0000f800: 3b 69 66 28 30 21 3d 3d 66 2e 63 6d 70 6e 28 30 ;if(0!==f.cmpn(0 0000f810: 29 29 7b 76 61 72 20 68 3d 75 2e 69 6e 76 6d 28 )){var h=u.invm( 0000f820: 74 68 69 73 2e 6e 29 2e 6d 75 6c 28 66 2e 6d 75 this.n).mul(f.mu 0000f830: 6c 28 74 2e 67 65 74 50 72 69 76 61 74 65 28 29 l(t.getPrivate() 0000f840: 29 2e 69 61 64 64 28 65 29 29 3b 69 66 28 30 21 ).iadd(e));if(0! 0000f850: 3d 3d 28 68 3d 68 2e 75 6d 6f 64 28 74 68 69 73 ==(h=h.umod(this 0000f860: 2e 6e 29 29 2e 63 6d 70 6e 28 30 29 29 7b 76 61 .n)).cmpn(0)){va 0000f870: 72 20 6d 3d 28 64 2e 67 65 74 59 28 29 2e 69 73 r m=(d.getY().is 0000f880: 4f 64 64 28 29 3f 31 3a 30 29 7c 28 30 21 3d 3d Odd()?1:0)|(0!== 0000f890: 70 2e 63 6d 70 28 66 29 3f 32 3a 30 29 3b 72 65 p.cmp(f)?2:0);re 0000f8a0: 74 75 72 6e 20 72 2e 63 61 6e 6f 6e 69 63 61 6c turn r.canonical 0000f8b0: 26 26 68 2e 63 6d 70 28 74 68 69 73 2e 6e 68 29 &&h.cmp(this.nh) 0000f8c0: 3e 30 26 26 28 68 3d 74 68 69 73 2e 6e 2e 73 75 >0&&(h=this.n.su 0000f8d0: 62 28 68 29 2c 6d 5e 3d 31 29 2c 6e 65 77 20 7a b(h),m^=1),new z 0000f8e0: 6e 28 7b 72 3a 66 2c 73 3a 68 2c 72 65 63 6f 76 n({r:f,s:h,recov 0000f8f0: 65 72 79 50 61 72 61 6d 3a 6d 7d 29 7d 7d 7d 7d eryParam:m})}}}} 0000f900: 7d 7d 2c 59 6e 2e 70 72 6f 74 6f 74 79 70 65 2e }},Yn.prototype. 0000f910: 76 65 72 69 66 79 3d 66 75 6e 63 74 69 6f 6e 28 verify=function( 0000f920: 65 2c 74 2c 6e 2c 72 29 7b 65 3d 74 68 69 73 2e e,t,n,r){e=this. 0000f930: 5f 74 72 75 6e 63 61 74 65 54 6f 4e 28 6e 65 77 _truncateToN(new 0000f940: 28 7a 28 29 29 28 65 2c 31 36 29 29 2c 6e 3d 74 (z())(e,16)),n=t 0000f950: 68 69 73 2e 6b 65 79 46 72 6f 6d 50 75 62 6c 69 his.keyFromPubli 0000f960: 63 28 6e 2c 72 29 3b 76 61 72 20 6f 3d 28 74 3d c(n,r);var o=(t= 0000f970: 6e 65 77 20 7a 6e 28 74 2c 22 68 65 78 22 29 29 new zn(t,"hex")) 0000f980: 2e 72 2c 69 3d 74 2e 73 3b 69 66 28 6f 2e 63 6d .r,i=t.s;if(o.cm 0000f990: 70 6e 28 31 29 3c 30 7c 7c 6f 2e 63 6d 70 28 74 pn(1)<0||o.cmp(t 0000f9a0: 68 69 73 2e 6e 29 3e 3d 30 29 72 65 74 75 72 6e his.n)>=0)return 0000f9b0: 21 31 3b 69 66 28 69 2e 63 6d 70 6e 28 31 29 3c !1;if(i.cmpn(1)< 0000f9c0: 30 7c 7c 69 2e 63 6d 70 28 74 68 69 73 2e 6e 29 0||i.cmp(this.n) 0000f9d0: 3e 3d 30 29 72 65 74 75 72 6e 21 31 3b 76 61 72 >=0)return!1;var 0000f9e0: 20 61 2c 73 3d 69 2e 69 6e 76 6d 28 74 68 69 73 a,s=i.invm(this 0000f9f0: 2e 6e 29 2c 6c 3d 73 2e 6d 75 6c 28 65 29 2e 75 .n),l=s.mul(e).u 0000fa00: 6d 6f 64 28 74 68 69 73 2e 6e 29 2c 63 3d 73 2e mod(this.n),c=s. 0000fa10: 6d 75 6c 28 6f 29 2e 75 6d 6f 64 28 74 68 69 73 mul(o).umod(this 0000fa20: 2e 6e 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e .n);return this. 0000fa30: 63 75 72 76 65 2e 5f 6d 61 78 77 65 6c 6c 54 72 curve._maxwellTr 0000fa40: 69 63 6b 3f 21 28 61 3d 74 68 69 73 2e 67 2e 6a ick?!(a=this.g.j 0000fa50: 6d 75 6c 41 64 64 28 6c 2c 6e 2e 67 65 74 50 75 mulAdd(l,n.getPu 0000fa60: 62 6c 69 63 28 29 2c 63 29 29 2e 69 73 49 6e 66 blic(),c)).isInf 0000fa70: 69 6e 69 74 79 28 29 26 26 61 2e 65 71 58 54 6f inity()&&a.eqXTo 0000fa80: 50 28 6f 29 3a 21 28 61 3d 74 68 69 73 2e 67 2e P(o):!(a=this.g. 0000fa90: 6d 75 6c 41 64 64 28 6c 2c 6e 2e 67 65 74 50 75 mulAdd(l,n.getPu 0000faa0: 62 6c 69 63 28 29 2c 63 29 29 2e 69 73 49 6e 66 blic(),c)).isInf 0000fab0: 69 6e 69 74 79 28 29 26 26 30 3d 3d 3d 61 2e 67 inity()&&0===a.g 0000fac0: 65 74 58 28 29 2e 75 6d 6f 64 28 74 68 69 73 2e etX().umod(this. 0000fad0: 6e 29 2e 63 6d 70 28 6f 29 7d 2c 59 6e 2e 70 72 n).cmp(o)},Yn.pr 0000fae0: 6f 74 6f 74 79 70 65 2e 72 65 63 6f 76 65 72 50 ototype.recoverP 0000faf0: 75 62 4b 65 79 3d 66 75 6e 63 74 69 6f 6e 28 65 ubKey=function(e 0000fb00: 2c 74 2c 6e 2c 72 29 7b 4b 6e 28 28 33 26 6e 29 ,t,n,r){Kn((3&n) 0000fb10: 3d 3d 3d 6e 2c 22 54 68 65 20 72 65 63 6f 76 65 ===n,"The recove 0000fb20: 72 79 20 70 61 72 61 6d 20 69 73 20 6d 6f 72 65 ry param is more 0000fb30: 20 74 68 61 6e 20 74 77 6f 20 62 69 74 73 22 29 than two bits") 0000fb40: 2c 74 3d 6e 65 77 20 7a 6e 28 74 2c 72 29 3b 76 ,t=new zn(t,r);v 0000fb50: 61 72 20 6f 3d 74 68 69 73 2e 6e 2c 69 3d 6e 65 ar o=this.n,i=ne 0000fb60: 77 28 7a 28 29 29 28 65 29 2c 61 3d 74 2e 72 2c w(z())(e),a=t.r, 0000fb70: 73 3d 74 2e 73 2c 6c 3d 31 26 6e 2c 63 3d 6e 3e s=t.s,l=1&n,c=n> 0000fb80: 3e 31 3b 69 66 28 61 2e 63 6d 70 28 74 68 69 73 >1;if(a.cmp(this 0000fb90: 2e 63 75 72 76 65 2e 70 2e 75 6d 6f 64 28 74 68 .curve.p.umod(th 0000fba0: 69 73 2e 63 75 72 76 65 2e 6e 29 29 3e 3d 30 26 is.curve.n))>=0& 0000fbb0: 26 63 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 &c)throw new Err 0000fbc0: 6f 72 28 22 55 6e 61 62 6c 65 20 74 6f 20 66 69 or("Unable to fi 0000fbd0: 6e 64 20 73 65 6e 63 6f 6e 64 20 6b 65 79 20 63 nd sencond key c 0000fbe0: 61 6e 64 69 6e 61 74 65 22 29 3b 61 3d 63 3f 74 andinate");a=c?t 0000fbf0: 68 69 73 2e 63 75 72 76 65 2e 70 6f 69 6e 74 46 his.curve.pointF 0000fc00: 72 6f 6d 58 28 61 2e 61 64 64 28 74 68 69 73 2e romX(a.add(this. 0000fc10: 63 75 72 76 65 2e 6e 29 2c 6c 29 3a 74 68 69 73 curve.n),l):this 0000fc20: 2e 63 75 72 76 65 2e 70 6f 69 6e 74 46 72 6f 6d .curve.pointFrom 0000fc30: 58 28 61 2c 6c 29 3b 76 61 72 20 75 3d 74 2e 72 X(a,l);var u=t.r 0000fc40: 2e 69 6e 76 6d 28 6f 29 2c 64 3d 6f 2e 73 75 62 .invm(o),d=o.sub 0000fc50: 28 69 29 2e 6d 75 6c 28 75 29 2e 75 6d 6f 64 28 (i).mul(u).umod( 0000fc60: 6f 29 2c 70 3d 73 2e 6d 75 6c 28 75 29 2e 75 6d o),p=s.mul(u).um 0000fc70: 6f 64 28 6f 29 3b 72 65 74 75 72 6e 20 74 68 69 od(o);return thi 0000fc80: 73 2e 67 2e 6d 75 6c 41 64 64 28 64 2c 61 2c 70 s.g.mulAdd(d,a,p 0000fc90: 29 7d 2c 59 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},Yn.prototype. 0000fca0: 67 65 74 4b 65 79 52 65 63 6f 76 65 72 79 50 61 getKeyRecoveryPa 0000fcb0: 72 61 6d 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 ram=function(e,t 0000fcc0: 2c 6e 2c 72 29 7b 69 66 28 6e 75 6c 6c 21 3d 3d ,n,r){if(null!== 0000fcd0: 28 74 3d 6e 65 77 20 7a 6e 28 74 2c 72 29 29 2e (t=new zn(t,r)). 0000fce0: 72 65 63 6f 76 65 72 79 50 61 72 61 6d 29 72 65 recoveryParam)re 0000fcf0: 74 75 72 6e 20 74 2e 72 65 63 6f 76 65 72 79 50 turn t.recoveryP 0000fd00: 61 72 61 6d 3b 66 6f 72 28 76 61 72 20 6f 3d 30 aram;for(var o=0 0000fd10: 3b 6f 3c 34 3b 6f 2b 2b 29 7b 76 61 72 20 69 3b ;o<4;o++){var i; 0000fd20: 74 72 79 7b 69 3d 74 68 69 73 2e 72 65 63 6f 76 try{i=this.recov 0000fd30: 65 72 50 75 62 4b 65 79 28 65 2c 74 2c 6f 29 7d erPubKey(e,t,o)} 0000fd40: 63 61 74 63 68 28 65 29 7b 63 6f 6e 74 69 6e 75 catch(e){continu 0000fd50: 65 7d 69 66 28 69 2e 65 71 28 6e 29 29 72 65 74 e}if(i.eq(n))ret 0000fd60: 75 72 6e 20 6f 7d 74 68 72 6f 77 20 6e 65 77 20 urn o}throw new 0000fd70: 45 72 72 6f 72 28 22 55 6e 61 62 6c 65 20 74 6f Error("Unable to 0000fd80: 20 66 69 6e 64 20 76 61 6c 69 64 20 72 65 63 6f find valid reco 0000fd90: 76 65 72 79 20 66 61 63 74 6f 72 22 29 7d 3b 76 very factor")};v 0000fda0: 61 72 20 5a 6e 3d 6d 6e 28 28 66 75 6e 63 74 69 ar Zn=mn((functi 0000fdb0: 6f 6e 28 65 2c 74 29 7b 76 61 72 20 6e 3d 74 3b on(e,t){var n=t; 0000fdc0: 6e 2e 76 65 72 73 69 6f 6e 3d 22 36 2e 35 2e 34 n.version="6.5.4 0000fdd0: 22 2c 6e 2e 75 74 69 6c 73 3d 76 6e 2c 6e 2e 72 ",n.utils=vn,n.r 0000fde0: 61 6e 64 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 74 and=function(){t 0000fdf0: 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 hrow new Error(" 0000fe00: 75 6e 73 75 70 70 6f 72 74 65 64 22 29 7d 2c 6e unsupported")},n 0000fe10: 2e 63 75 72 76 65 3d 4e 6e 2c 6e 2e 63 75 72 76 .curve=Nn,n.curv 0000fe20: 65 73 3d 50 6e 2c 6e 2e 65 63 3d 58 6e 2c 6e 2e es=Pn,n.ec=Xn,n. 0000fe30: 65 64 64 73 61 3d 6e 75 6c 6c 7d 29 29 2e 65 63 eddsa=null})).ec 0000fe40: 3b 63 6f 6e 73 74 20 51 6e 3d 6e 65 77 20 79 28 ;const Qn=new y( 0000fe50: 22 73 69 67 6e 69 6e 67 2d 6b 65 79 2f 35 2e 37 "signing-key/5.7 0000fe60: 2e 30 22 29 3b 6c 65 74 20 4a 6e 3d 6e 75 6c 6c .0");let Jn=null 0000fe70: 3b 66 75 6e 63 74 69 6f 6e 20 24 6e 28 29 7b 72 ;function $n(){r 0000fe80: 65 74 75 72 6e 20 4a 6e 7c 7c 28 4a 6e 3d 6e 65 eturn Jn||(Jn=ne 0000fe90: 77 20 5a 6e 28 22 73 65 63 70 32 35 36 6b 31 22 w Zn("secp256k1" 0000fea0: 29 29 2c 4a 6e 7d 63 6c 61 73 73 20 65 72 7b 63 )),Jn}class er{c 0000feb0: 6f 6e 73 74 72 75 63 74 6f 72 28 65 29 7b 74 65 onstructor(e){te 0000fec0: 28 74 68 69 73 2c 22 63 75 72 76 65 22 2c 22 73 (this,"curve","s 0000fed0: 65 63 70 32 35 36 6b 31 22 29 2c 74 65 28 74 68 ecp256k1"),te(th 0000fee0: 69 73 2c 22 70 72 69 76 61 74 65 4b 65 79 22 2c is,"privateKey", 0000fef0: 52 28 65 29 29 2c 33 32 21 3d 3d 4e 28 74 68 69 R(e)),32!==N(thi 0000ff00: 73 2e 70 72 69 76 61 74 65 4b 65 79 29 26 26 51 s.privateKey)&&Q 0000ff10: 6e 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 n.throwArgumentE 0000ff20: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 70 72 rror("invalid pr 0000ff30: 69 76 61 74 65 20 6b 65 79 22 2c 22 70 72 69 76 ivate key","priv 0000ff40: 61 74 65 4b 65 79 22 2c 22 5b 5b 20 52 45 44 41 ateKey","[[ REDA 0000ff50: 43 54 45 44 20 5d 5d 22 29 3b 63 6f 6e 73 74 20 CTED ]]");const 0000ff60: 74 3d 24 6e 28 29 2e 6b 65 79 46 72 6f 6d 50 72 t=$n().keyFromPr 0000ff70: 69 76 61 74 65 28 54 28 74 68 69 73 2e 70 72 69 ivate(T(this.pri 0000ff80: 76 61 74 65 4b 65 79 29 29 3b 74 65 28 74 68 69 vateKey));te(thi 0000ff90: 73 2c 22 70 75 62 6c 69 63 4b 65 79 22 2c 22 30 s,"publicKey","0 0000ffa0: 78 22 2b 74 2e 67 65 74 50 75 62 6c 69 63 28 21 x"+t.getPublic(! 0000ffb0: 31 2c 22 68 65 78 22 29 29 2c 74 65 28 74 68 69 1,"hex")),te(thi 0000ffc0: 73 2c 22 63 6f 6d 70 72 65 73 73 65 64 50 75 62 s,"compressedPub 0000ffd0: 6c 69 63 4b 65 79 22 2c 22 30 78 22 2b 74 2e 67 licKey","0x"+t.g 0000ffe0: 65 74 50 75 62 6c 69 63 28 21 30 2c 22 68 65 78 etPublic(!0,"hex 0000fff0: 22 29 29 2c 74 65 28 74 68 69 73 2c 22 5f 69 73 ")),te(this,"_is 00010000: 53 69 67 6e 69 6e 67 4b 65 79 22 2c 21 30 29 7d SigningKey",!0)} 00010010: 5f 61 64 64 50 6f 69 6e 74 28 65 29 7b 63 6f 6e _addPoint(e){con 00010020: 73 74 20 74 3d 24 6e 28 29 2e 6b 65 79 46 72 6f st t=$n().keyFro 00010030: 6d 50 75 62 6c 69 63 28 54 28 74 68 69 73 2e 70 mPublic(T(this.p 00010040: 75 62 6c 69 63 4b 65 79 29 29 2c 6e 3d 24 6e 28 ublicKey)),n=$n( 00010050: 29 2e 6b 65 79 46 72 6f 6d 50 75 62 6c 69 63 28 ).keyFromPublic( 00010060: 54 28 65 29 29 3b 72 65 74 75 72 6e 22 30 78 22 T(e));return"0x" 00010070: 2b 74 2e 70 75 62 2e 61 64 64 28 6e 2e 70 75 62 +t.pub.add(n.pub 00010080: 29 2e 65 6e 63 6f 64 65 43 6f 6d 70 72 65 73 73 ).encodeCompress 00010090: 65 64 28 22 68 65 78 22 29 7d 73 69 67 6e 44 69 ed("hex")}signDi 000100a0: 67 65 73 74 28 65 29 7b 63 6f 6e 73 74 20 74 3d gest(e){const t= 000100b0: 24 6e 28 29 2e 6b 65 79 46 72 6f 6d 50 72 69 76 $n().keyFromPriv 000100c0: 61 74 65 28 54 28 74 68 69 73 2e 70 72 69 76 61 ate(T(this.priva 000100d0: 74 65 4b 65 79 29 29 2c 6e 3d 54 28 65 29 3b 33 teKey)),n=T(e);3 000100e0: 32 21 3d 3d 6e 2e 6c 65 6e 67 74 68 26 26 51 6e 2!==n.length&&Qn 000100f0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00010100: 72 6f 72 28 22 62 61 64 20 64 69 67 65 73 74 20 ror("bad digest 00010110: 6c 65 6e 67 74 68 22 2c 22 64 69 67 65 73 74 22 length","digest" 00010120: 2c 65 29 3b 63 6f 6e 73 74 20 72 3d 74 2e 73 69 ,e);const r=t.si 00010130: 67 6e 28 6e 2c 7b 63 61 6e 6f 6e 69 63 61 6c 3a gn(n,{canonical: 00010140: 21 30 7d 29 3b 72 65 74 75 72 6e 20 55 28 7b 72 !0});return U({r 00010150: 65 63 6f 76 65 72 79 50 61 72 61 6d 3a 72 2e 72 ecoveryParam:r.r 00010160: 65 63 6f 76 65 72 79 50 61 72 61 6d 2c 72 3a 46 ecoveryParam,r:F 00010170: 28 22 30 78 22 2b 72 2e 72 2e 74 6f 53 74 72 69 ("0x"+r.r.toStri 00010180: 6e 67 28 31 36 29 2c 33 32 29 2c 73 3a 46 28 22 ng(16),32),s:F(" 00010190: 30 78 22 2b 72 2e 73 2e 74 6f 53 74 72 69 6e 67 0x"+r.s.toString 000101a0: 28 31 36 29 2c 33 32 29 7d 29 7d 63 6f 6d 70 75 (16),32)})}compu 000101b0: 74 65 53 68 61 72 65 64 53 65 63 72 65 74 28 65 teSharedSecret(e 000101c0: 29 7b 63 6f 6e 73 74 20 74 3d 24 6e 28 29 2e 6b ){const t=$n().k 000101d0: 65 79 46 72 6f 6d 50 72 69 76 61 74 65 28 54 28 eyFromPrivate(T( 000101e0: 74 68 69 73 2e 70 72 69 76 61 74 65 4b 65 79 29 this.privateKey) 000101f0: 29 2c 6e 3d 24 6e 28 29 2e 6b 65 79 46 72 6f 6d ),n=$n().keyFrom 00010200: 50 75 62 6c 69 63 28 54 28 6e 72 28 65 29 29 29 Public(T(nr(e))) 00010210: 3b 72 65 74 75 72 6e 20 46 28 22 30 78 22 2b 74 ;return F("0x"+t 00010220: 2e 64 65 72 69 76 65 28 6e 2e 67 65 74 50 75 62 .derive(n.getPub 00010230: 6c 69 63 28 29 29 2e 74 6f 53 74 72 69 6e 67 28 lic()).toString( 00010240: 31 36 29 2c 33 32 29 7d 73 74 61 74 69 63 20 69 16),32)}static i 00010250: 73 53 69 67 6e 69 6e 67 4b 65 79 28 65 29 7b 72 sSigningKey(e){r 00010260: 65 74 75 72 6e 21 28 21 65 7c 7c 21 65 2e 5f 69 eturn!(!e||!e._i 00010270: 73 53 69 67 6e 69 6e 67 4b 65 79 29 7d 7d 66 75 sSigningKey)}}fu 00010280: 6e 63 74 69 6f 6e 20 74 72 28 65 2c 74 29 7b 63 nction tr(e,t){c 00010290: 6f 6e 73 74 20 6e 3d 55 28 74 29 2c 72 3d 7b 72 onst n=U(t),r={r 000102a0: 3a 54 28 6e 2e 72 29 2c 73 3a 54 28 6e 2e 73 29 :T(n.r),s:T(n.s) 000102b0: 7d 3b 72 65 74 75 72 6e 22 30 78 22 2b 24 6e 28 };return"0x"+$n( 000102c0: 29 2e 72 65 63 6f 76 65 72 50 75 62 4b 65 79 28 ).recoverPubKey( 000102d0: 54 28 65 29 2c 72 2c 6e 2e 72 65 63 6f 76 65 72 T(e),r,n.recover 000102e0: 79 50 61 72 61 6d 29 2e 65 6e 63 6f 64 65 28 22 yParam).encode(" 000102f0: 68 65 78 22 2c 21 31 29 7d 66 75 6e 63 74 69 6f hex",!1)}functio 00010300: 6e 20 6e 72 28 65 2c 74 29 7b 63 6f 6e 73 74 20 n nr(e,t){const 00010310: 6e 3d 54 28 65 29 3b 69 66 28 33 32 3d 3d 3d 6e n=T(e);if(32===n 00010320: 2e 6c 65 6e 67 74 68 29 7b 63 6f 6e 73 74 20 65 .length){const e 00010330: 3d 6e 65 77 20 65 72 28 6e 29 3b 72 65 74 75 72 =new er(n);retur 00010340: 6e 20 74 3f 22 30 78 22 2b 24 6e 28 29 2e 6b 65 n t?"0x"+$n().ke 00010350: 79 46 72 6f 6d 50 72 69 76 61 74 65 28 6e 29 2e yFromPrivate(n). 00010360: 67 65 74 50 75 62 6c 69 63 28 21 30 2c 22 68 65 getPublic(!0,"he 00010370: 78 22 29 3a 65 2e 70 75 62 6c 69 63 4b 65 79 7d x"):e.publicKey} 00010380: 72 65 74 75 72 6e 20 33 33 3d 3d 3d 6e 2e 6c 65 return 33===n.le 00010390: 6e 67 74 68 3f 74 3f 52 28 6e 29 3a 22 30 78 22 ngth?t?R(n):"0x" 000103a0: 2b 24 6e 28 29 2e 6b 65 79 46 72 6f 6d 50 75 62 +$n().keyFromPub 000103b0: 6c 69 63 28 6e 29 2e 67 65 74 50 75 62 6c 69 63 lic(n).getPublic 000103c0: 28 21 31 2c 22 68 65 78 22 29 3a 36 35 3d 3d 3d (!1,"hex"):65=== 000103d0: 6e 2e 6c 65 6e 67 74 68 3f 74 3f 22 30 78 22 2b n.length?t?"0x"+ 000103e0: 24 6e 28 29 2e 6b 65 79 46 72 6f 6d 50 75 62 6c $n().keyFromPubl 000103f0: 69 63 28 6e 29 2e 67 65 74 50 75 62 6c 69 63 28 ic(n).getPublic( 00010400: 21 30 2c 22 68 65 78 22 29 3a 52 28 6e 29 3a 51 !0,"hex"):R(n):Q 00010410: 6e 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 n.throwArgumentE 00010420: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 70 75 rror("invalid pu 00010430: 62 6c 69 63 20 6f 72 20 70 72 69 76 61 74 65 20 blic or private 00010440: 6b 65 79 22 2c 22 6b 65 79 22 2c 22 5b 52 45 44 key","key","[RED 00010450: 41 43 54 45 44 5d 22 29 7d 63 6f 6e 73 74 20 72 ACTED]")}const r 00010460: 72 3d 6e 65 77 20 79 28 22 74 72 61 6e 73 61 63 r=new y("transac 00010470: 74 69 6f 6e 73 2f 35 2e 37 2e 30 22 29 3b 76 61 tions/5.7.0");va 00010480: 72 20 6f 72 3b 66 75 6e 63 74 69 6f 6e 20 69 72 r or;function ir 00010490: 28 65 29 7b 72 65 74 75 72 6e 22 30 78 22 3d 3d (e){return"0x"== 000104a0: 3d 65 3f 6e 75 6c 6c 3a 4d 65 28 65 29 7d 66 75 =e?null:Me(e)}fu 000104b0: 6e 63 74 69 6f 6e 20 61 72 28 65 29 7b 72 65 74 nction ar(e){ret 000104c0: 75 72 6e 22 30 78 22 3d 3d 3d 65 3f 75 74 3a 59 urn"0x"===e?ut:Y 000104d0: 2e 66 72 6f 6d 28 65 29 7d 21 66 75 6e 63 74 69 .from(e)}!functi 000104e0: 6f 6e 28 65 29 7b 65 5b 65 2e 6c 65 67 61 63 79 on(e){e[e.legacy 000104f0: 3d 30 5d 3d 22 6c 65 67 61 63 79 22 2c 65 5b 65 =0]="legacy",e[e 00010500: 2e 65 69 70 32 39 33 30 3d 31 5d 3d 22 65 69 70 .eip2930=1]="eip 00010510: 32 39 33 30 22 2c 65 5b 65 2e 65 69 70 31 35 35 2930",e[e.eip155 00010520: 39 3d 32 5d 3d 22 65 69 70 31 35 35 39 22 7d 28 9=2]="eip1559"}( 00010530: 6f 72 7c 7c 28 6f 72 3d 7b 7d 29 29 3b 63 6f 6e or||(or={}));con 00010540: 73 74 20 73 72 3d 5b 7b 6e 61 6d 65 3a 22 6e 6f st sr=[{name:"no 00010550: 6e 63 65 22 2c 6d 61 78 4c 65 6e 67 74 68 3a 33 nce",maxLength:3 00010560: 32 2c 6e 75 6d 65 72 69 63 3a 21 30 7d 2c 7b 6e 2,numeric:!0},{n 00010570: 61 6d 65 3a 22 67 61 73 50 72 69 63 65 22 2c 6d ame:"gasPrice",m 00010580: 61 78 4c 65 6e 67 74 68 3a 33 32 2c 6e 75 6d 65 axLength:32,nume 00010590: 72 69 63 3a 21 30 7d 2c 7b 6e 61 6d 65 3a 22 67 ric:!0},{name:"g 000105a0: 61 73 4c 69 6d 69 74 22 2c 6d 61 78 4c 65 6e 67 asLimit",maxLeng 000105b0: 74 68 3a 33 32 2c 6e 75 6d 65 72 69 63 3a 21 30 th:32,numeric:!0 000105c0: 7d 2c 7b 6e 61 6d 65 3a 22 74 6f 22 2c 6c 65 6e },{name:"to",len 000105d0: 67 74 68 3a 32 30 7d 2c 7b 6e 61 6d 65 3a 22 76 gth:20},{name:"v 000105e0: 61 6c 75 65 22 2c 6d 61 78 4c 65 6e 67 74 68 3a alue",maxLength: 000105f0: 33 32 2c 6e 75 6d 65 72 69 63 3a 21 30 7d 2c 7b 32,numeric:!0},{ 00010600: 6e 61 6d 65 3a 22 64 61 74 61 22 7d 5d 2c 6c 72 name:"data"}],lr 00010610: 3d 7b 63 68 61 69 6e 49 64 3a 21 30 2c 64 61 74 ={chainId:!0,dat 00010620: 61 3a 21 30 2c 67 61 73 4c 69 6d 69 74 3a 21 30 a:!0,gasLimit:!0 00010630: 2c 67 61 73 50 72 69 63 65 3a 21 30 2c 6e 6f 6e ,gasPrice:!0,non 00010640: 63 65 3a 21 30 2c 74 6f 3a 21 30 2c 74 79 70 65 ce:!0,to:!0,type 00010650: 3a 21 30 2c 76 61 6c 75 65 3a 21 30 7d 3b 66 75 :!0,value:!0};fu 00010660: 6e 63 74 69 6f 6e 20 63 72 28 65 29 7b 72 65 74 nction cr(e){ret 00010670: 75 72 6e 20 4d 65 28 50 28 76 65 28 50 28 6e 72 urn Me(P(ve(P(nr 00010680: 28 65 29 2c 31 29 29 2c 31 32 29 29 7d 66 75 6e (e),1)),12))}fun 00010690: 63 74 69 6f 6e 20 75 72 28 65 2c 74 29 7b 72 65 ction ur(e,t){re 000106a0: 74 75 72 6e 20 63 72 28 74 72 28 54 28 65 29 2c turn cr(tr(T(e), 000106b0: 74 29 29 7d 66 75 6e 63 74 69 6f 6e 20 64 72 28 t))}function dr( 000106c0: 65 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 41 28 59 e,t){const n=A(Y 000106d0: 2e 66 72 6f 6d 28 65 29 2e 74 6f 48 65 78 53 74 .from(e).toHexSt 000106e0: 72 69 6e 67 28 29 29 3b 72 65 74 75 72 6e 20 6e ring());return n 000106f0: 2e 6c 65 6e 67 74 68 3e 33 32 26 26 72 72 2e 74 .length>32&&rr.t 00010700: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00010710: 72 28 22 69 6e 76 61 6c 69 64 20 6c 65 6e 67 74 r("invalid lengt 00010720: 68 20 66 6f 72 20 22 2b 74 2c 22 74 72 61 6e 73 h for "+t,"trans 00010730: 61 63 74 69 6f 6e 3a 22 2b 74 2c 65 29 2c 6e 7d action:"+t,e),n} 00010740: 66 75 6e 63 74 69 6f 6e 20 70 72 28 65 2c 74 29 function pr(e,t) 00010750: 7b 72 65 74 75 72 6e 7b 61 64 64 72 65 73 73 3a {return{address: 00010760: 4d 65 28 65 29 2c 73 74 6f 72 61 67 65 4b 65 79 Me(e),storageKey 00010770: 73 3a 28 74 7c 7c 5b 5d 29 2e 6d 61 70 28 28 28 s:(t||[]).map((( 00010780: 74 2c 6e 29 3d 3e 28 33 32 21 3d 3d 4e 28 74 29 t,n)=>(32!==N(t) 00010790: 26 26 72 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 &&rr.throwArgume 000107a0: 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 ntError("invalid 000107b0: 20 61 63 63 65 73 73 20 6c 69 73 74 20 73 74 6f access list sto 000107c0: 72 61 67 65 4b 65 79 22 2c 60 61 63 63 65 73 73 rageKey",`access 000107d0: 4c 69 73 74 5b 24 7b 65 7d 3a 24 7b 6e 7d 5d 60 List[${e}:${n}]` 000107e0: 2c 74 29 2c 74 2e 74 6f 4c 6f 77 65 72 43 61 73 ,t),t.toLowerCas 000107f0: 65 28 29 29 29 29 7d 7d 66 75 6e 63 74 69 6f 6e e())))}}function 00010800: 20 66 72 28 65 29 7b 69 66 28 41 72 72 61 79 2e fr(e){if(Array. 00010810: 69 73 41 72 72 61 79 28 65 29 29 72 65 74 75 72 isArray(e))retur 00010820: 6e 20 65 2e 6d 61 70 28 28 28 65 2c 74 29 3d 3e n e.map(((e,t)=> 00010830: 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 65 29 Array.isArray(e) 00010840: 3f 28 65 2e 6c 65 6e 67 74 68 3e 32 26 26 72 72 ?(e.length>2&&rr 00010850: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00010860: 72 6f 72 28 22 61 63 63 65 73 73 20 6c 69 73 74 ror("access list 00010870: 20 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 expected to be 00010880: 5b 20 61 64 64 72 65 73 73 2c 20 73 74 6f 72 61 [ address, stora 00010890: 67 65 4b 65 79 73 5b 5d 20 5d 22 2c 60 76 61 6c geKeys[] ]",`val 000108a0: 75 65 5b 24 7b 74 7d 5d 60 2c 65 29 2c 70 72 28 ue[${t}]`,e),pr( 000108b0: 65 5b 30 5d 2c 65 5b 31 5d 29 29 3a 70 72 28 65 e[0],e[1])):pr(e 000108c0: 2e 61 64 64 72 65 73 73 2c 65 2e 73 74 6f 72 61 .address,e.stora 000108d0: 67 65 4b 65 79 73 29 29 29 3b 63 6f 6e 73 74 20 geKeys)));const 000108e0: 74 3d 4f 62 6a 65 63 74 2e 6b 65 79 73 28 65 29 t=Object.keys(e) 000108f0: 2e 6d 61 70 28 28 74 3d 3e 7b 63 6f 6e 73 74 20 .map((t=>{const 00010900: 6e 3d 65 5b 74 5d 2e 72 65 64 75 63 65 28 28 28 n=e[t].reduce((( 00010910: 65 2c 74 29 3d 3e 28 65 5b 74 5d 3d 21 30 2c 65 e,t)=>(e[t]=!0,e 00010920: 29 29 2c 7b 7d 29 3b 72 65 74 75 72 6e 20 70 72 )),{});return pr 00010930: 28 74 2c 4f 62 6a 65 63 74 2e 6b 65 79 73 28 6e (t,Object.keys(n 00010940: 29 2e 73 6f 72 74 28 29 29 7d 29 29 3b 72 65 74 ).sort())}));ret 00010950: 75 72 6e 20 74 2e 73 6f 72 74 28 28 28 65 2c 74 urn t.sort(((e,t 00010960: 29 3d 3e 65 2e 61 64 64 72 65 73 73 2e 6c 6f 63 )=>e.address.loc 00010970: 61 6c 65 43 6f 6d 70 61 72 65 28 74 2e 61 64 64 aleCompare(t.add 00010980: 72 65 73 73 29 29 29 2c 74 7d 66 75 6e 63 74 69 ress))),t}functi 00010990: 6f 6e 20 68 72 28 65 29 7b 72 65 74 75 72 6e 20 on hr(e){return 000109a0: 66 72 28 65 29 2e 6d 61 70 28 28 65 3d 3e 5b 65 fr(e).map((e=>[e 000109b0: 2e 61 64 64 72 65 73 73 2c 65 2e 73 74 6f 72 61 .address,e.stora 000109c0: 67 65 4b 65 79 73 5d 29 29 7d 66 75 6e 63 74 69 geKeys]))}functi 000109d0: 6f 6e 20 6d 72 28 65 2c 74 29 7b 69 66 28 6e 75 on mr(e,t){if(nu 000109e0: 6c 6c 21 3d 65 2e 67 61 73 50 72 69 63 65 29 7b ll!=e.gasPrice){ 000109f0: 63 6f 6e 73 74 20 74 3d 59 2e 66 72 6f 6d 28 65 const t=Y.from(e 00010a00: 2e 67 61 73 50 72 69 63 65 29 2c 6e 3d 59 2e 66 .gasPrice),n=Y.f 00010a10: 72 6f 6d 28 65 2e 6d 61 78 46 65 65 50 65 72 47 rom(e.maxFeePerG 00010a20: 61 73 7c 7c 30 29 3b 74 2e 65 71 28 6e 29 7c 7c as||0);t.eq(n)|| 00010a30: 72 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 rr.throwArgument 00010a40: 45 72 72 6f 72 28 22 6d 69 73 6d 61 74 63 68 20 Error("mismatch 00010a50: 45 49 50 2d 31 35 35 39 20 67 61 73 50 72 69 63 EIP-1559 gasPric 00010a60: 65 20 21 3d 20 6d 61 78 46 65 65 50 65 72 47 61 e != maxFeePerGa 00010a70: 73 22 2c 22 74 78 22 2c 7b 67 61 73 50 72 69 63 s","tx",{gasPric 00010a80: 65 3a 74 2c 6d 61 78 46 65 65 50 65 72 47 61 73 e:t,maxFeePerGas 00010a90: 3a 6e 7d 29 7d 63 6f 6e 73 74 20 6e 3d 5b 64 72 :n})}const n=[dr 00010aa0: 28 65 2e 63 68 61 69 6e 49 64 7c 7c 30 2c 22 63 (e.chainId||0,"c 00010ab0: 68 61 69 6e 49 64 22 29 2c 64 72 28 65 2e 6e 6f hainId"),dr(e.no 00010ac0: 6e 63 65 7c 7c 30 2c 22 6e 6f 6e 63 65 22 29 2c nce||0,"nonce"), 00010ad0: 64 72 28 65 2e 6d 61 78 50 72 69 6f 72 69 74 79 dr(e.maxPriority 00010ae0: 46 65 65 50 65 72 47 61 73 7c 7c 30 2c 22 6d 61 FeePerGas||0,"ma 00010af0: 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 xPriorityFeePerG 00010b00: 61 73 22 29 2c 64 72 28 65 2e 6d 61 78 46 65 65 as"),dr(e.maxFee 00010b10: 50 65 72 47 61 73 7c 7c 30 2c 22 6d 61 78 46 65 PerGas||0,"maxFe 00010b20: 65 50 65 72 47 61 73 22 29 2c 64 72 28 65 2e 67 ePerGas"),dr(e.g 00010b30: 61 73 4c 69 6d 69 74 7c 7c 30 2c 22 67 61 73 4c asLimit||0,"gasL 00010b40: 69 6d 69 74 22 29 2c 6e 75 6c 6c 21 3d 65 2e 74 imit"),null!=e.t 00010b50: 6f 3f 4d 65 28 65 2e 74 6f 29 3a 22 30 78 22 2c o?Me(e.to):"0x", 00010b60: 64 72 28 65 2e 76 61 6c 75 65 7c 7c 30 2c 22 76 dr(e.value||0,"v 00010b70: 61 6c 75 65 22 29 2c 65 2e 64 61 74 61 7c 7c 22 alue"),e.data||" 00010b80: 30 78 22 2c 68 72 28 65 2e 61 63 63 65 73 73 4c 0x",hr(e.accessL 00010b90: 69 73 74 7c 7c 5b 5d 29 5d 3b 69 66 28 74 29 7b ist||[])];if(t){ 00010ba0: 63 6f 6e 73 74 20 65 3d 55 28 74 29 3b 6e 2e 70 const e=U(t);n.p 00010bb0: 75 73 68 28 64 72 28 65 2e 72 65 63 6f 76 65 72 ush(dr(e.recover 00010bc0: 79 50 61 72 61 6d 2c 22 72 65 63 6f 76 65 72 79 yParam,"recovery 00010bd0: 50 61 72 61 6d 22 29 29 2c 6e 2e 70 75 73 68 28 Param")),n.push( 00010be0: 41 28 65 2e 72 29 29 2c 6e 2e 70 75 73 68 28 41 A(e.r)),n.push(A 00010bf0: 28 65 2e 73 29 29 7d 72 65 74 75 72 6e 20 4d 28 (e.s))}return M( 00010c00: 5b 22 30 78 30 32 22 2c 78 65 28 6e 29 5d 29 7d ["0x02",xe(n)])} 00010c10: 66 75 6e 63 74 69 6f 6e 20 67 72 28 65 2c 74 29 function gr(e,t) 00010c20: 7b 63 6f 6e 73 74 20 6e 3d 5b 64 72 28 65 2e 63 {const n=[dr(e.c 00010c30: 68 61 69 6e 49 64 7c 7c 30 2c 22 63 68 61 69 6e hainId||0,"chain 00010c40: 49 64 22 29 2c 64 72 28 65 2e 6e 6f 6e 63 65 7c Id"),dr(e.nonce| 00010c50: 7c 30 2c 22 6e 6f 6e 63 65 22 29 2c 64 72 28 65 |0,"nonce"),dr(e 00010c60: 2e 67 61 73 50 72 69 63 65 7c 7c 30 2c 22 67 61 .gasPrice||0,"ga 00010c70: 73 50 72 69 63 65 22 29 2c 64 72 28 65 2e 67 61 sPrice"),dr(e.ga 00010c80: 73 4c 69 6d 69 74 7c 7c 30 2c 22 67 61 73 4c 69 sLimit||0,"gasLi 00010c90: 6d 69 74 22 29 2c 6e 75 6c 6c 21 3d 65 2e 74 6f mit"),null!=e.to 00010ca0: 3f 4d 65 28 65 2e 74 6f 29 3a 22 30 78 22 2c 64 ?Me(e.to):"0x",d 00010cb0: 72 28 65 2e 76 61 6c 75 65 7c 7c 30 2c 22 76 61 r(e.value||0,"va 00010cc0: 6c 75 65 22 29 2c 65 2e 64 61 74 61 7c 7c 22 30 lue"),e.data||"0 00010cd0: 78 22 2c 68 72 28 65 2e 61 63 63 65 73 73 4c 69 x",hr(e.accessLi 00010ce0: 73 74 7c 7c 5b 5d 29 5d 3b 69 66 28 74 29 7b 63 st||[])];if(t){c 00010cf0: 6f 6e 73 74 20 65 3d 55 28 74 29 3b 6e 2e 70 75 onst e=U(t);n.pu 00010d00: 73 68 28 64 72 28 65 2e 72 65 63 6f 76 65 72 79 sh(dr(e.recovery 00010d10: 50 61 72 61 6d 2c 22 72 65 63 6f 76 65 72 79 50 Param,"recoveryP 00010d20: 61 72 61 6d 22 29 29 2c 6e 2e 70 75 73 68 28 41 aram")),n.push(A 00010d30: 28 65 2e 72 29 29 2c 6e 2e 70 75 73 68 28 41 28 (e.r)),n.push(A( 00010d40: 65 2e 73 29 29 7d 72 65 74 75 72 6e 20 4d 28 5b e.s))}return M([ 00010d50: 22 30 78 30 31 22 2c 78 65 28 6e 29 5d 29 7d 66 "0x01",xe(n)])}f 00010d60: 75 6e 63 74 69 6f 6e 20 62 72 28 65 2c 74 29 7b unction br(e,t){ 00010d70: 69 66 28 6e 75 6c 6c 3d 3d 65 2e 74 79 70 65 7c if(null==e.type| 00010d80: 7c 30 3d 3d 3d 65 2e 74 79 70 65 29 72 65 74 75 |0===e.type)retu 00010d90: 72 6e 20 6e 75 6c 6c 21 3d 65 2e 61 63 63 65 73 rn null!=e.acces 00010da0: 73 4c 69 73 74 26 26 72 72 2e 74 68 72 6f 77 41 sList&&rr.throwA 00010db0: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e rgumentError("un 00010dc0: 74 79 70 65 64 20 74 72 61 6e 73 61 63 74 69 6f typed transactio 00010dd0: 6e 73 20 64 6f 20 6e 6f 74 20 73 75 70 70 6f 72 ns do not suppor 00010de0: 74 20 61 63 63 65 73 73 4c 69 73 74 3b 20 69 6e t accessList; in 00010df0: 63 6c 75 64 65 20 74 79 70 65 3a 20 31 22 2c 22 clude type: 1"," 00010e00: 74 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 29 2c transaction",e), 00010e10: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 6f 65 function(e,t){oe 00010e20: 28 65 2c 6c 72 29 3b 63 6f 6e 73 74 20 6e 3d 5b (e,lr);const n=[ 00010e30: 5d 3b 73 72 2e 66 6f 72 45 61 63 68 28 28 66 75 ];sr.forEach((fu 00010e40: 6e 63 74 69 6f 6e 28 74 29 7b 6c 65 74 20 72 3d nction(t){let r= 00010e50: 65 5b 74 2e 6e 61 6d 65 5d 7c 7c 5b 5d 3b 63 6f e[t.name]||[];co 00010e60: 6e 73 74 20 6f 3d 7b 7d 3b 74 2e 6e 75 6d 65 72 nst o={};t.numer 00010e70: 69 63 26 26 28 6f 2e 68 65 78 50 61 64 3d 22 6c ic&&(o.hexPad="l 00010e80: 65 66 74 22 29 2c 72 3d 54 28 52 28 72 2c 6f 29 eft"),r=T(R(r,o) 00010e90: 29 2c 74 2e 6c 65 6e 67 74 68 26 26 72 2e 6c 65 ),t.length&&r.le 00010ea0: 6e 67 74 68 21 3d 3d 74 2e 6c 65 6e 67 74 68 26 ngth!==t.length& 00010eb0: 26 72 2e 6c 65 6e 67 74 68 3e 30 26 26 72 72 2e &r.length>0&&rr. 00010ec0: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00010ed0: 6f 72 28 22 69 6e 76 61 6c 69 64 20 6c 65 6e 67 or("invalid leng 00010ee0: 74 68 20 66 6f 72 20 22 2b 74 2e 6e 61 6d 65 2c th for "+t.name, 00010ef0: 22 74 72 61 6e 73 61 63 74 69 6f 6e 3a 22 2b 74 "transaction:"+t 00010f00: 2e 6e 61 6d 65 2c 72 29 2c 74 2e 6d 61 78 4c 65 .name,r),t.maxLe 00010f10: 6e 67 74 68 26 26 28 72 3d 41 28 72 29 2c 72 2e ngth&&(r=A(r),r. 00010f20: 6c 65 6e 67 74 68 3e 74 2e 6d 61 78 4c 65 6e 67 length>t.maxLeng 00010f30: 74 68 26 26 72 72 2e 74 68 72 6f 77 41 72 67 75 th&&rr.throwArgu 00010f40: 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c mentError("inval 00010f50: 69 64 20 6c 65 6e 67 74 68 20 66 6f 72 20 22 2b id length for "+ 00010f60: 74 2e 6e 61 6d 65 2c 22 74 72 61 6e 73 61 63 74 t.name,"transact 00010f70: 69 6f 6e 3a 22 2b 74 2e 6e 61 6d 65 2c 72 29 29 ion:"+t.name,r)) 00010f80: 2c 6e 2e 70 75 73 68 28 52 28 72 29 29 7d 29 29 ,n.push(R(r))})) 00010f90: 3b 6c 65 74 20 72 3d 30 3b 69 66 28 6e 75 6c 6c ;let r=0;if(null 00010fa0: 21 3d 65 2e 63 68 61 69 6e 49 64 3f 28 72 3d 65 !=e.chainId?(r=e 00010fb0: 2e 63 68 61 69 6e 49 64 2c 22 6e 75 6d 62 65 72 .chainId,"number 00010fc0: 22 21 3d 74 79 70 65 6f 66 20 72 26 26 72 72 2e "!=typeof r&&rr. 00010fd0: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00010fe0: 6f 72 28 22 69 6e 76 61 6c 69 64 20 74 72 61 6e or("invalid tran 00010ff0: 73 61 63 74 69 6f 6e 2e 63 68 61 69 6e 49 64 22 saction.chainId" 00011000: 2c 22 74 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 ,"transaction",e 00011010: 29 29 3a 74 26 26 21 5f 28 74 29 26 26 74 2e 76 )):t&&!_(t)&&t.v 00011020: 3e 32 38 26 26 28 72 3d 4d 61 74 68 2e 66 6c 6f >28&&(r=Math.flo 00011030: 6f 72 28 28 74 2e 76 2d 33 35 29 2f 32 29 29 2c or((t.v-35)/2)), 00011040: 30 21 3d 3d 72 26 26 28 6e 2e 70 75 73 68 28 52 0!==r&&(n.push(R 00011050: 28 72 29 29 2c 6e 2e 70 75 73 68 28 22 30 78 22 (r)),n.push("0x" 00011060: 29 2c 6e 2e 70 75 73 68 28 22 30 78 22 29 29 2c ),n.push("0x")), 00011070: 21 74 29 72 65 74 75 72 6e 20 78 65 28 6e 29 3b !t)return xe(n); 00011080: 63 6f 6e 73 74 20 6f 3d 55 28 74 29 3b 6c 65 74 const o=U(t);let 00011090: 20 69 3d 32 37 2b 6f 2e 72 65 63 6f 76 65 72 79 i=27+o.recovery 000110a0: 50 61 72 61 6d 3b 72 65 74 75 72 6e 20 30 21 3d Param;return 0!= 000110b0: 3d 72 3f 28 6e 2e 70 6f 70 28 29 2c 6e 2e 70 6f =r?(n.pop(),n.po 000110c0: 70 28 29 2c 6e 2e 70 6f 70 28 29 2c 69 2b 3d 32 p(),n.pop(),i+=2 000110d0: 2a 72 2b 38 2c 6f 2e 76 3e 32 38 26 26 6f 2e 76 *r+8,o.v>28&&o.v 000110e0: 21 3d 3d 69 26 26 72 72 2e 74 68 72 6f 77 41 72 !==i&&rr.throwAr 000110f0: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 74 72 61 gumentError("tra 00011100: 6e 73 61 63 74 69 6f 6e 2e 63 68 61 69 6e 49 64 nsaction.chainId 00011110: 2f 73 69 67 6e 61 74 75 72 65 2e 76 20 6d 69 73 /signature.v mis 00011120: 6d 61 74 63 68 22 2c 22 73 69 67 6e 61 74 75 72 match","signatur 00011130: 65 22 2c 74 29 29 3a 6f 2e 76 21 3d 3d 69 26 26 e",t)):o.v!==i&& 00011140: 72 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 rr.throwArgument 00011150: 45 72 72 6f 72 28 22 74 72 61 6e 73 61 63 74 69 Error("transacti 00011160: 6f 6e 2e 63 68 61 69 6e 49 64 2f 73 69 67 6e 61 on.chainId/signa 00011170: 74 75 72 65 2e 76 20 6d 69 73 6d 61 74 63 68 22 ture.v mismatch" 00011180: 2c 22 73 69 67 6e 61 74 75 72 65 22 2c 74 29 2c ,"signature",t), 00011190: 6e 2e 70 75 73 68 28 52 28 69 29 29 2c 6e 2e 70 n.push(R(i)),n.p 000111a0: 75 73 68 28 41 28 54 28 6f 2e 72 29 29 29 2c 6e ush(A(T(o.r))),n 000111b0: 2e 70 75 73 68 28 41 28 54 28 6f 2e 73 29 29 29 .push(A(T(o.s))) 000111c0: 2c 78 65 28 6e 29 7d 28 65 2c 74 29 3b 73 77 69 ,xe(n)}(e,t);swi 000111d0: 74 63 68 28 65 2e 74 79 70 65 29 7b 63 61 73 65 tch(e.type){case 000111e0: 20 31 3a 72 65 74 75 72 6e 20 67 72 28 65 2c 74 1:return gr(e,t 000111f0: 29 3b 63 61 73 65 20 32 3a 72 65 74 75 72 6e 20 );case 2:return 00011200: 6d 72 28 65 2c 74 29 7d 72 65 74 75 72 6e 20 72 mr(e,t)}return r 00011210: 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 60 75 6e r.throwError(`un 00011220: 73 75 70 70 6f 72 74 65 64 20 74 72 61 6e 73 61 supported transa 00011230: 63 74 69 6f 6e 20 74 79 70 65 3a 20 24 7b 65 2e ction type: ${e. 00011240: 74 79 70 65 7d 60 2c 79 2e 65 72 72 6f 72 73 2e type}`,y.errors. 00011250: 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 UNSUPPORTED_OPER 00011260: 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e ATION,{operation 00011270: 3a 22 73 65 72 69 61 6c 69 7a 65 54 72 61 6e 73 :"serializeTrans 00011280: 61 63 74 69 6f 6e 22 2c 74 72 61 6e 73 61 63 74 action",transact 00011290: 69 6f 6e 54 79 70 65 3a 65 2e 74 79 70 65 7d 29 ionType:e.type}) 000112a0: 7d 66 75 6e 63 74 69 6f 6e 20 79 72 28 65 2c 74 }function yr(e,t 000112b0: 2c 6e 29 7b 74 72 79 7b 63 6f 6e 73 74 20 6e 3d ,n){try{const n= 000112c0: 61 72 28 74 5b 30 5d 29 2e 74 6f 4e 75 6d 62 65 ar(t[0]).toNumbe 000112d0: 72 28 29 3b 69 66 28 30 21 3d 3d 6e 26 26 31 21 r();if(0!==n&&1! 000112e0: 3d 3d 6e 29 74 68 72 6f 77 20 6e 65 77 20 45 72 ==n)throw new Er 000112f0: 72 6f 72 28 22 62 61 64 20 72 65 63 69 64 22 29 ror("bad recid") 00011300: 3b 65 2e 76 3d 6e 7d 63 61 74 63 68 28 65 29 7b ;e.v=n}catch(e){ 00011310: 72 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 rr.throwArgument 00011320: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 76 Error("invalid v 00011330: 20 66 6f 72 20 74 72 61 6e 73 61 63 74 69 6f 6e for transaction 00011340: 20 74 79 70 65 3a 20 31 22 2c 22 76 22 2c 74 5b type: 1","v",t[ 00011350: 30 5d 29 7d 65 2e 72 3d 46 28 74 5b 31 5d 2c 33 0])}e.r=F(t[1],3 00011360: 32 29 2c 65 2e 73 3d 46 28 74 5b 32 5d 2c 33 32 2),e.s=F(t[2],32 00011370: 29 3b 74 72 79 7b 63 6f 6e 73 74 20 74 3d 76 65 );try{const t=ve 00011380: 28 6e 28 65 29 29 3b 65 2e 66 72 6f 6d 3d 75 72 (n(e));e.from=ur 00011390: 28 74 2c 7b 72 3a 65 2e 72 2c 73 3a 65 2e 73 2c (t,{r:e.r,s:e.s, 000113a0: 72 65 63 6f 76 65 72 79 50 61 72 61 6d 3a 65 2e recoveryParam:e. 000113b0: 76 7d 29 7d 63 61 74 63 68 28 65 29 7b 7d 7d 66 v})}catch(e){}}f 000113c0: 75 6e 63 74 69 6f 6e 20 76 72 28 65 29 7b 63 6f unction vr(e){co 000113d0: 6e 73 74 20 74 3d 54 28 65 29 3b 69 66 28 74 5b nst t=T(e);if(t[ 000113e0: 30 5d 3e 31 32 37 29 72 65 74 75 72 6e 20 66 75 0]>127)return fu 000113f0: 6e 63 74 69 6f 6e 28 65 29 7b 63 6f 6e 73 74 20 nction(e){const 00011400: 74 3d 41 65 28 65 29 3b 39 21 3d 3d 74 2e 6c 65 t=Ae(e);9!==t.le 00011410: 6e 67 74 68 26 26 36 21 3d 3d 74 2e 6c 65 6e 67 ngth&&6!==t.leng 00011420: 74 68 26 26 72 72 2e 74 68 72 6f 77 41 72 67 75 th&&rr.throwArgu 00011430: 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c mentError("inval 00011440: 69 64 20 72 61 77 20 74 72 61 6e 73 61 63 74 69 id raw transacti 00011450: 6f 6e 22 2c 22 72 61 77 54 72 61 6e 73 61 63 74 on","rawTransact 00011460: 69 6f 6e 22 2c 65 29 3b 63 6f 6e 73 74 20 6e 3d ion",e);const n= 00011470: 7b 6e 6f 6e 63 65 3a 61 72 28 74 5b 30 5d 29 2e {nonce:ar(t[0]). 00011480: 74 6f 4e 75 6d 62 65 72 28 29 2c 67 61 73 50 72 toNumber(),gasPr 00011490: 69 63 65 3a 61 72 28 74 5b 31 5d 29 2c 67 61 73 ice:ar(t[1]),gas 000114a0: 4c 69 6d 69 74 3a 61 72 28 74 5b 32 5d 29 2c 74 Limit:ar(t[2]),t 000114b0: 6f 3a 69 72 28 74 5b 33 5d 29 2c 76 61 6c 75 65 o:ir(t[3]),value 000114c0: 3a 61 72 28 74 5b 34 5d 29 2c 64 61 74 61 3a 74 :ar(t[4]),data:t 000114d0: 5b 35 5d 2c 63 68 61 69 6e 49 64 3a 30 7d 3b 69 [5],chainId:0};i 000114e0: 66 28 36 3d 3d 3d 74 2e 6c 65 6e 67 74 68 29 72 f(6===t.length)r 000114f0: 65 74 75 72 6e 20 6e 3b 74 72 79 7b 6e 2e 76 3d eturn n;try{n.v= 00011500: 59 2e 66 72 6f 6d 28 74 5b 36 5d 29 2e 74 6f 4e Y.from(t[6]).toN 00011510: 75 6d 62 65 72 28 29 7d 63 61 74 63 68 28 65 29 umber()}catch(e) 00011520: 7b 72 65 74 75 72 6e 20 6e 7d 69 66 28 6e 2e 72 {return n}if(n.r 00011530: 3d 46 28 74 5b 37 5d 2c 33 32 29 2c 6e 2e 73 3d =F(t[7],32),n.s= 00011540: 46 28 74 5b 38 5d 2c 33 32 29 2c 59 2e 66 72 6f F(t[8],32),Y.fro 00011550: 6d 28 6e 2e 72 29 2e 69 73 5a 65 72 6f 28 29 26 m(n.r).isZero()& 00011560: 26 59 2e 66 72 6f 6d 28 6e 2e 73 29 2e 69 73 5a &Y.from(n.s).isZ 00011570: 65 72 6f 28 29 29 6e 2e 63 68 61 69 6e 49 64 3d ero())n.chainId= 00011580: 6e 2e 76 2c 6e 2e 76 3d 30 3b 65 6c 73 65 7b 6e n.v,n.v=0;else{n 00011590: 2e 63 68 61 69 6e 49 64 3d 4d 61 74 68 2e 66 6c .chainId=Math.fl 000115a0: 6f 6f 72 28 28 6e 2e 76 2d 33 35 29 2f 32 29 2c oor((n.v-35)/2), 000115b0: 6e 2e 63 68 61 69 6e 49 64 3c 30 26 26 28 6e 2e n.chainId<0&&(n. 000115c0: 63 68 61 69 6e 49 64 3d 30 29 3b 6c 65 74 20 72 chainId=0);let r 000115d0: 3d 6e 2e 76 2d 32 37 3b 63 6f 6e 73 74 20 6f 3d =n.v-27;const o= 000115e0: 74 2e 73 6c 69 63 65 28 30 2c 36 29 3b 30 21 3d t.slice(0,6);0!= 000115f0: 3d 6e 2e 63 68 61 69 6e 49 64 26 26 28 6f 2e 70 =n.chainId&&(o.p 00011600: 75 73 68 28 52 28 6e 2e 63 68 61 69 6e 49 64 29 ush(R(n.chainId) 00011610: 29 2c 6f 2e 70 75 73 68 28 22 30 78 22 29 2c 6f ),o.push("0x"),o 00011620: 2e 70 75 73 68 28 22 30 78 22 29 2c 72 2d 3d 32 .push("0x"),r-=2 00011630: 2a 6e 2e 63 68 61 69 6e 49 64 2b 38 29 3b 63 6f *n.chainId+8);co 00011640: 6e 73 74 20 69 3d 76 65 28 78 65 28 6f 29 29 3b nst i=ve(xe(o)); 00011650: 74 72 79 7b 6e 2e 66 72 6f 6d 3d 75 72 28 69 2c try{n.from=ur(i, 00011660: 7b 72 3a 52 28 6e 2e 72 29 2c 73 3a 52 28 6e 2e {r:R(n.r),s:R(n. 00011670: 73 29 2c 72 65 63 6f 76 65 72 79 50 61 72 61 6d s),recoveryParam 00011680: 3a 72 7d 29 7d 63 61 74 63 68 28 65 29 7b 7d 6e :r})}catch(e){}n 00011690: 2e 68 61 73 68 3d 76 65 28 65 29 7d 72 65 74 75 .hash=ve(e)}retu 000116a0: 72 6e 20 6e 2e 74 79 70 65 3d 6e 75 6c 6c 2c 6e rn n.type=null,n 000116b0: 7d 28 74 29 3b 73 77 69 74 63 68 28 74 5b 30 5d }(t);switch(t[0] 000116c0: 29 7b 63 61 73 65 20 31 3a 72 65 74 75 72 6e 20 ){case 1:return 000116d0: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 63 6f 6e 73 function(e){cons 000116e0: 74 20 74 3d 41 65 28 65 2e 73 6c 69 63 65 28 31 t t=Ae(e.slice(1 000116f0: 29 29 3b 38 21 3d 3d 74 2e 6c 65 6e 67 74 68 26 ));8!==t.length& 00011700: 26 31 31 21 3d 3d 74 2e 6c 65 6e 67 74 68 26 26 &11!==t.length&& 00011710: 72 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 rr.throwArgument 00011720: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 63 Error("invalid c 00011730: 6f 6d 70 6f 6e 65 6e 74 20 63 6f 75 6e 74 20 66 omponent count f 00011740: 6f 72 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 74 or transaction t 00011750: 79 70 65 3a 20 31 22 2c 22 70 61 79 6c 6f 61 64 ype: 1","payload 00011760: 22 2c 52 28 65 29 29 3b 63 6f 6e 73 74 20 6e 3d ",R(e));const n= 00011770: 7b 74 79 70 65 3a 31 2c 63 68 61 69 6e 49 64 3a {type:1,chainId: 00011780: 61 72 28 74 5b 30 5d 29 2e 74 6f 4e 75 6d 62 65 ar(t[0]).toNumbe 00011790: 72 28 29 2c 6e 6f 6e 63 65 3a 61 72 28 74 5b 31 r(),nonce:ar(t[1 000117a0: 5d 29 2e 74 6f 4e 75 6d 62 65 72 28 29 2c 67 61 ]).toNumber(),ga 000117b0: 73 50 72 69 63 65 3a 61 72 28 74 5b 32 5d 29 2c sPrice:ar(t[2]), 000117c0: 67 61 73 4c 69 6d 69 74 3a 61 72 28 74 5b 33 5d gasLimit:ar(t[3] 000117d0: 29 2c 74 6f 3a 69 72 28 74 5b 34 5d 29 2c 76 61 ),to:ir(t[4]),va 000117e0: 6c 75 65 3a 61 72 28 74 5b 35 5d 29 2c 64 61 74 lue:ar(t[5]),dat 000117f0: 61 3a 74 5b 36 5d 2c 61 63 63 65 73 73 4c 69 73 a:t[6],accessLis 00011800: 74 3a 66 72 28 74 5b 37 5d 29 7d 3b 72 65 74 75 t:fr(t[7])};retu 00011810: 72 6e 20 38 3d 3d 3d 74 2e 6c 65 6e 67 74 68 7c rn 8===t.length| 00011820: 7c 28 6e 2e 68 61 73 68 3d 76 65 28 65 29 2c 79 |(n.hash=ve(e),y 00011830: 72 28 6e 2c 74 2e 73 6c 69 63 65 28 38 29 2c 67 r(n,t.slice(8),g 00011840: 72 29 29 2c 6e 7d 28 74 29 3b 63 61 73 65 20 32 r)),n}(t);case 2 00011850: 3a 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e :return function 00011860: 28 65 29 7b 63 6f 6e 73 74 20 74 3d 41 65 28 65 (e){const t=Ae(e 00011870: 2e 73 6c 69 63 65 28 31 29 29 3b 39 21 3d 3d 74 .slice(1));9!==t 00011880: 2e 6c 65 6e 67 74 68 26 26 31 32 21 3d 3d 74 2e .length&&12!==t. 00011890: 6c 65 6e 67 74 68 26 26 72 72 2e 74 68 72 6f 77 length&&rr.throw 000118a0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 000118b0: 6e 76 61 6c 69 64 20 63 6f 6d 70 6f 6e 65 6e 74 nvalid component 000118c0: 20 63 6f 75 6e 74 20 66 6f 72 20 74 72 61 6e 73 count for trans 000118d0: 61 63 74 69 6f 6e 20 74 79 70 65 3a 20 32 22 2c action type: 2", 000118e0: 22 70 61 79 6c 6f 61 64 22 2c 52 28 65 29 29 3b "payload",R(e)); 000118f0: 63 6f 6e 73 74 20 6e 3d 61 72 28 74 5b 32 5d 29 const n=ar(t[2]) 00011900: 2c 72 3d 61 72 28 74 5b 33 5d 29 2c 6f 3d 7b 74 ,r=ar(t[3]),o={t 00011910: 79 70 65 3a 32 2c 63 68 61 69 6e 49 64 3a 61 72 ype:2,chainId:ar 00011920: 28 74 5b 30 5d 29 2e 74 6f 4e 75 6d 62 65 72 28 (t[0]).toNumber( 00011930: 29 2c 6e 6f 6e 63 65 3a 61 72 28 74 5b 31 5d 29 ),nonce:ar(t[1]) 00011940: 2e 74 6f 4e 75 6d 62 65 72 28 29 2c 6d 61 78 50 .toNumber(),maxP 00011950: 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 riorityFeePerGas 00011960: 3a 6e 2c 6d 61 78 46 65 65 50 65 72 47 61 73 3a :n,maxFeePerGas: 00011970: 72 2c 67 61 73 50 72 69 63 65 3a 6e 75 6c 6c 2c r,gasPrice:null, 00011980: 67 61 73 4c 69 6d 69 74 3a 61 72 28 74 5b 34 5d gasLimit:ar(t[4] 00011990: 29 2c 74 6f 3a 69 72 28 74 5b 35 5d 29 2c 76 61 ),to:ir(t[5]),va 000119a0: 6c 75 65 3a 61 72 28 74 5b 36 5d 29 2c 64 61 74 lue:ar(t[6]),dat 000119b0: 61 3a 74 5b 37 5d 2c 61 63 63 65 73 73 4c 69 73 a:t[7],accessLis 000119c0: 74 3a 66 72 28 74 5b 38 5d 29 7d 3b 72 65 74 75 t:fr(t[8])};retu 000119d0: 72 6e 20 39 3d 3d 3d 74 2e 6c 65 6e 67 74 68 7c rn 9===t.length| 000119e0: 7c 28 6f 2e 68 61 73 68 3d 76 65 28 65 29 2c 79 |(o.hash=ve(e),y 000119f0: 72 28 6f 2c 74 2e 73 6c 69 63 65 28 39 29 2c 6d r(o,t.slice(9),m 00011a00: 72 29 29 2c 6f 7d 28 74 29 7d 72 65 74 75 72 6e r)),o}(t)}return 00011a10: 20 72 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 60 rr.throwError(` 00011a20: 75 6e 73 75 70 70 6f 72 74 65 64 20 74 72 61 6e unsupported tran 00011a30: 73 61 63 74 69 6f 6e 20 74 79 70 65 3a 20 24 7b saction type: ${ 00011a40: 74 5b 30 5d 7d 60 2c 79 2e 65 72 72 6f 72 73 2e t[0]}`,y.errors. 00011a50: 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 UNSUPPORTED_OPER 00011a60: 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e ATION,{operation 00011a70: 3a 22 70 61 72 73 65 54 72 61 6e 73 61 63 74 69 :"parseTransacti 00011a80: 6f 6e 22 2c 74 72 61 6e 73 61 63 74 69 6f 6e 54 on",transactionT 00011a90: 79 70 65 3a 74 5b 30 5d 7d 29 7d 76 61 72 20 53 ype:t[0]})}var S 00011aa0: 72 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e r=function(e,t,n 00011ab0: 2c 72 29 7b 72 65 74 75 72 6e 20 6e 65 77 28 6e ,r){return new(n 00011ac0: 7c 7c 28 6e 3d 50 72 6f 6d 69 73 65 29 29 28 28 ||(n=Promise))(( 00011ad0: 66 75 6e 63 74 69 6f 6e 28 6f 2c 69 29 7b 66 75 function(o,i){fu 00011ae0: 6e 63 74 69 6f 6e 20 61 28 65 29 7b 74 72 79 7b nction a(e){try{ 00011af0: 6c 28 72 2e 6e 65 78 74 28 65 29 29 7d 63 61 74 l(r.next(e))}cat 00011b00: 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 ch(e){i(e)}}func 00011b10: 74 69 6f 6e 20 73 28 65 29 7b 74 72 79 7b 6c 28 tion s(e){try{l( 00011b20: 72 2e 74 68 72 6f 77 28 65 29 29 7d 63 61 74 63 r.throw(e))}catc 00011b30: 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 h(e){i(e)}}funct 00011b40: 69 6f 6e 20 6c 28 65 29 7b 76 61 72 20 74 3b 65 ion l(e){var t;e 00011b50: 2e 64 6f 6e 65 3f 6f 28 65 2e 76 61 6c 75 65 29 .done?o(e.value) 00011b60: 3a 28 74 3d 65 2e 76 61 6c 75 65 2c 74 20 69 6e :(t=e.value,t in 00011b70: 73 74 61 6e 63 65 6f 66 20 6e 3f 74 3a 6e 65 77 stanceof n?t:new 00011b80: 20 6e 28 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b n((function(e){ 00011b90: 65 28 74 29 7d 29 29 29 2e 74 68 65 6e 28 61 2c e(t)}))).then(a, 00011ba0: 73 29 7d 6c 28 28 72 3d 72 2e 61 70 70 6c 79 28 s)}l((r=r.apply( 00011bb0: 65 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 78 74 28 29 e,t||[])).next() 00011bc0: 29 7d 29 29 7d 3b 63 6f 6e 73 74 20 45 72 3d 6e )}))};const Er=n 00011bd0: 65 77 20 79 28 22 63 6f 6e 74 72 61 63 74 73 2f ew y("contracts/ 00011be0: 35 2e 37 2e 30 22 29 2c 5f 72 3d 7b 63 68 61 69 5.7.0"),_r={chai 00011bf0: 6e 49 64 3a 21 30 2c 64 61 74 61 3a 21 30 2c 66 nId:!0,data:!0,f 00011c00: 72 6f 6d 3a 21 30 2c 67 61 73 4c 69 6d 69 74 3a rom:!0,gasLimit: 00011c10: 21 30 2c 67 61 73 50 72 69 63 65 3a 21 30 2c 6e !0,gasPrice:!0,n 00011c20: 6f 6e 63 65 3a 21 30 2c 74 6f 3a 21 30 2c 76 61 once:!0,to:!0,va 00011c30: 6c 75 65 3a 21 30 2c 74 79 70 65 3a 21 30 2c 61 lue:!0,type:!0,a 00011c40: 63 63 65 73 73 4c 69 73 74 3a 21 30 2c 6d 61 78 ccessList:!0,max 00011c50: 46 65 65 50 65 72 47 61 73 3a 21 30 2c 6d 61 78 FeePerGas:!0,max 00011c60: 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 61 PriorityFeePerGa 00011c70: 73 3a 21 30 2c 63 75 73 74 6f 6d 44 61 74 61 3a s:!0,customData: 00011c80: 21 30 2c 63 63 69 70 52 65 61 64 45 6e 61 62 6c !0,ccipReadEnabl 00011c90: 65 64 3a 21 30 7d 3b 66 75 6e 63 74 69 6f 6e 20 ed:!0};function 00011ca0: 77 72 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 53 wr(e,t){return S 00011cb0: 72 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f r(this,void 0,vo 00011cc0: 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 id 0,(function*( 00011cd0: 29 7b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c 64 20 ){const n=yield 00011ce0: 74 3b 22 73 74 72 69 6e 67 22 21 3d 74 79 70 65 t;"string"!=type 00011cf0: 6f 66 20 6e 26 26 45 72 2e 74 68 72 6f 77 41 72 of n&&Er.throwAr 00011d00: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 00011d10: 61 6c 69 64 20 61 64 64 72 65 73 73 20 6f 72 20 alid address or 00011d20: 45 4e 53 20 6e 61 6d 65 22 2c 22 6e 61 6d 65 22 ENS name","name" 00011d30: 2c 6e 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 4d ,n);try{return M 00011d40: 65 28 6e 29 7d 63 61 74 63 68 28 65 29 7b 7d 65 e(n)}catch(e){}e 00011d50: 7c 7c 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 ||Er.throwError( 00011d60: 22 61 20 70 72 6f 76 69 64 65 72 20 6f 72 20 73 "a provider or s 00011d70: 69 67 6e 65 72 20 69 73 20 6e 65 65 64 65 64 20 igner is needed 00011d80: 74 6f 20 72 65 73 6f 6c 76 65 20 45 4e 53 20 6e to resolve ENS n 00011d90: 61 6d 65 73 22 2c 79 2e 65 72 72 6f 72 73 2e 55 ames",y.errors.U 00011da0: 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 41 NSUPPORTED_OPERA 00011db0: 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a TION,{operation: 00011dc0: 22 72 65 73 6f 6c 76 65 4e 61 6d 65 22 7d 29 3b "resolveName"}); 00011dd0: 63 6f 6e 73 74 20 72 3d 79 69 65 6c 64 20 65 2e const r=yield e. 00011de0: 72 65 73 6f 6c 76 65 4e 61 6d 65 28 6e 29 3b 72 resolveName(n);r 00011df0: 65 74 75 72 6e 20 6e 75 6c 6c 3d 3d 72 26 26 45 eturn null==r&&E 00011e00: 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 r.throwArgumentE 00011e10: 72 72 6f 72 28 22 72 65 73 6f 6c 76 65 72 20 6f rror("resolver o 00011e20: 72 20 61 64 64 72 20 69 73 20 6e 6f 74 20 63 6f r addr is not co 00011e30: 6e 66 69 67 75 72 65 64 20 66 6f 72 20 45 4e 53 nfigured for ENS 00011e40: 20 6e 61 6d 65 22 2c 22 6e 61 6d 65 22 2c 6e 29 name","name",n) 00011e50: 2c 72 7d 29 29 7d 66 75 6e 63 74 69 6f 6e 20 78 ,r}))}function x 00011e60: 72 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e 20 r(e,t,n){return 00011e70: 53 72 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 Sr(this,void 0,v 00011e80: 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a oid 0,(function* 00011e90: 28 29 7b 72 65 74 75 72 6e 20 41 72 72 61 79 2e (){return Array. 00011ea0: 69 73 41 72 72 61 79 28 6e 29 3f 79 69 65 6c 64 isArray(n)?yield 00011eb0: 20 50 72 6f 6d 69 73 65 2e 61 6c 6c 28 6e 2e 6d Promise.all(n.m 00011ec0: 61 70 28 28 28 6e 2c 72 29 3d 3e 78 72 28 65 2c ap(((n,r)=>xr(e, 00011ed0: 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 74 29 Array.isArray(t) 00011ee0: 3f 74 5b 72 5d 3a 74 5b 6e 2e 6e 61 6d 65 5d 2c ?t[r]:t[n.name], 00011ef0: 6e 29 29 29 29 3a 22 61 64 64 72 65 73 73 22 3d n)))):"address"= 00011f00: 3d 3d 6e 2e 74 79 70 65 3f 79 69 65 6c 64 20 77 ==n.type?yield w 00011f10: 72 28 65 2c 74 29 3a 22 74 75 70 6c 65 22 3d 3d r(e,t):"tuple"== 00011f20: 3d 6e 2e 74 79 70 65 3f 79 69 65 6c 64 20 78 72 =n.type?yield xr 00011f30: 28 65 2c 74 2c 6e 2e 63 6f 6d 70 6f 6e 65 6e 74 (e,t,n.component 00011f40: 73 29 3a 22 61 72 72 61 79 22 3d 3d 3d 6e 2e 62 s):"array"===n.b 00011f50: 61 73 65 54 79 70 65 3f 41 72 72 61 79 2e 69 73 aseType?Array.is 00011f60: 41 72 72 61 79 28 74 29 3f 79 69 65 6c 64 20 50 Array(t)?yield P 00011f70: 72 6f 6d 69 73 65 2e 61 6c 6c 28 74 2e 6d 61 70 romise.all(t.map 00011f80: 28 28 74 3d 3e 78 72 28 65 2c 74 2c 6e 2e 61 72 ((t=>xr(e,t,n.ar 00011f90: 72 61 79 43 68 69 6c 64 72 65 6e 29 29 29 29 3a rayChildren)))): 00011fa0: 50 72 6f 6d 69 73 65 2e 72 65 6a 65 63 74 28 45 Promise.reject(E 00011fb0: 72 2e 6d 61 6b 65 45 72 72 6f 72 28 22 69 6e 76 r.makeError("inv 00011fc0: 61 6c 69 64 20 76 61 6c 75 65 20 66 6f 72 20 61 alid value for a 00011fd0: 72 72 61 79 22 2c 79 2e 65 72 72 6f 72 73 2e 49 rray",y.errors.I 00011fe0: 4e 56 41 4c 49 44 5f 41 52 47 55 4d 45 4e 54 2c NVALID_ARGUMENT, 00011ff0: 7b 61 72 67 75 6d 65 6e 74 3a 22 76 61 6c 75 65 {argument:"value 00012000: 22 2c 76 61 6c 75 65 3a 74 7d 29 29 3a 74 7d 29 ",value:t})):t}) 00012010: 29 7d 66 75 6e 63 74 69 6f 6e 20 54 72 28 65 2c )}function Tr(e, 00012020: 74 2c 6e 29 7b 72 65 74 75 72 6e 20 53 72 28 74 t,n){return Sr(t 00012030: 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 his,void 0,void 00012040: 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6c 0,(function*(){l 00012050: 65 74 20 72 3d 7b 7d 3b 6e 2e 6c 65 6e 67 74 68 et r={};n.length 00012060: 3d 3d 3d 74 2e 69 6e 70 75 74 73 2e 6c 65 6e 67 ===t.inputs.leng 00012070: 74 68 2b 31 26 26 22 6f 62 6a 65 63 74 22 3d 3d th+1&&"object"== 00012080: 74 79 70 65 6f 66 20 6e 5b 6e 2e 6c 65 6e 67 74 typeof n[n.lengt 00012090: 68 2d 31 5d 26 26 28 72 3d 69 65 28 6e 2e 70 6f h-1]&&(r=ie(n.po 000120a0: 70 28 29 29 29 2c 45 72 2e 63 68 65 63 6b 41 72 p())),Er.checkAr 000120b0: 67 75 6d 65 6e 74 43 6f 75 6e 74 28 6e 2e 6c 65 gumentCount(n.le 000120c0: 6e 67 74 68 2c 74 2e 69 6e 70 75 74 73 2e 6c 65 ngth,t.inputs.le 000120d0: 6e 67 74 68 2c 22 70 61 73 73 65 64 20 74 6f 20 ngth,"passed to 000120e0: 63 6f 6e 74 72 61 63 74 22 29 2c 65 2e 73 69 67 contract"),e.sig 000120f0: 6e 65 72 3f 72 2e 66 72 6f 6d 3f 72 2e 66 72 6f ner?r.from?r.fro 00012100: 6d 3d 72 65 28 7b 6f 76 65 72 72 69 64 65 3a 77 m=re({override:w 00012110: 72 28 65 2e 73 69 67 6e 65 72 2c 72 2e 66 72 6f r(e.signer,r.fro 00012120: 6d 29 2c 73 69 67 6e 65 72 3a 65 2e 73 69 67 6e m),signer:e.sign 00012130: 65 72 2e 67 65 74 41 64 64 72 65 73 73 28 29 7d er.getAddress()} 00012140: 29 2e 74 68 65 6e 28 28 65 3d 3e 53 72 28 74 68 ).then((e=>Sr(th 00012150: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 00012160: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 ,(function*(){re 00012170: 74 75 72 6e 20 4d 65 28 65 2e 73 69 67 6e 65 72 turn Me(e.signer 00012180: 29 21 3d 3d 65 2e 6f 76 65 72 72 69 64 65 26 26 )!==e.override&& 00012190: 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 43 Er.throwError("C 000121a0: 6f 6e 74 72 61 63 74 20 77 69 74 68 20 61 20 53 ontract with a S 000121b0: 69 67 6e 65 72 20 63 61 6e 6e 6f 74 20 6f 76 65 igner cannot ove 000121c0: 72 72 69 64 65 20 66 72 6f 6d 22 2c 79 2e 65 72 rride from",y.er 000121d0: 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 rors.UNSUPPORTED 000121e0: 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 _OPERATION,{oper 000121f0: 61 74 69 6f 6e 3a 22 6f 76 65 72 72 69 64 65 73 ation:"overrides 00012200: 2e 66 72 6f 6d 22 7d 29 2c 65 2e 6f 76 65 72 72 .from"}),e.overr 00012210: 69 64 65 7d 29 29 29 29 3a 72 2e 66 72 6f 6d 3d ide})))):r.from= 00012220: 65 2e 73 69 67 6e 65 72 2e 67 65 74 41 64 64 72 e.signer.getAddr 00012230: 65 73 73 28 29 3a 72 2e 66 72 6f 6d 26 26 28 72 ess():r.from&&(r 00012240: 2e 66 72 6f 6d 3d 77 72 28 65 2e 70 72 6f 76 69 .from=wr(e.provi 00012250: 64 65 72 2c 72 2e 66 72 6f 6d 29 29 3b 63 6f 6e der,r.from));con 00012260: 73 74 20 6f 3d 79 69 65 6c 64 20 72 65 28 7b 61 st o=yield re({a 00012270: 72 67 73 3a 78 72 28 65 2e 73 69 67 6e 65 72 7c rgs:xr(e.signer| 00012280: 7c 65 2e 70 72 6f 76 69 64 65 72 2c 6e 2c 74 2e |e.provider,n,t. 00012290: 69 6e 70 75 74 73 29 2c 61 64 64 72 65 73 73 3a inputs),address: 000122a0: 65 2e 72 65 73 6f 6c 76 65 64 41 64 64 72 65 73 e.resolvedAddres 000122b0: 73 2c 6f 76 65 72 72 69 64 65 73 3a 72 65 28 72 s,overrides:re(r 000122c0: 29 7c 7c 7b 7d 7d 29 2c 69 3d 65 2e 69 6e 74 65 )||{}}),i=e.inte 000122d0: 72 66 61 63 65 2e 65 6e 63 6f 64 65 46 75 6e 63 rface.encodeFunc 000122e0: 74 69 6f 6e 44 61 74 61 28 74 2c 6f 2e 61 72 67 tionData(t,o.arg 000122f0: 73 29 2c 61 3d 7b 64 61 74 61 3a 69 2c 74 6f 3a s),a={data:i,to: 00012300: 6f 2e 61 64 64 72 65 73 73 7d 2c 73 3d 6f 2e 6f o.address},s=o.o 00012310: 76 65 72 72 69 64 65 73 3b 69 66 28 6e 75 6c 6c verrides;if(null 00012320: 21 3d 73 2e 6e 6f 6e 63 65 26 26 28 61 2e 6e 6f !=s.nonce&&(a.no 00012330: 6e 63 65 3d 59 2e 66 72 6f 6d 28 73 2e 6e 6f 6e nce=Y.from(s.non 00012340: 63 65 29 2e 74 6f 4e 75 6d 62 65 72 28 29 29 2c ce).toNumber()), 00012350: 6e 75 6c 6c 21 3d 73 2e 67 61 73 4c 69 6d 69 74 null!=s.gasLimit 00012360: 26 26 28 61 2e 67 61 73 4c 69 6d 69 74 3d 59 2e &&(a.gasLimit=Y. 00012370: 66 72 6f 6d 28 73 2e 67 61 73 4c 69 6d 69 74 29 from(s.gasLimit) 00012380: 29 2c 6e 75 6c 6c 21 3d 73 2e 67 61 73 50 72 69 ),null!=s.gasPri 00012390: 63 65 26 26 28 61 2e 67 61 73 50 72 69 63 65 3d ce&&(a.gasPrice= 000123a0: 59 2e 66 72 6f 6d 28 73 2e 67 61 73 50 72 69 63 Y.from(s.gasPric 000123b0: 65 29 29 2c 6e 75 6c 6c 21 3d 73 2e 6d 61 78 46 e)),null!=s.maxF 000123c0: 65 65 50 65 72 47 61 73 26 26 28 61 2e 6d 61 78 eePerGas&&(a.max 000123d0: 46 65 65 50 65 72 47 61 73 3d 59 2e 66 72 6f 6d FeePerGas=Y.from 000123e0: 28 73 2e 6d 61 78 46 65 65 50 65 72 47 61 73 29 (s.maxFeePerGas) 000123f0: 29 2c 6e 75 6c 6c 21 3d 73 2e 6d 61 78 50 72 69 ),null!=s.maxPri 00012400: 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 26 26 orityFeePerGas&& 00012410: 28 61 2e 6d 61 78 50 72 69 6f 72 69 74 79 46 65 (a.maxPriorityFe 00012420: 65 50 65 72 47 61 73 3d 59 2e 66 72 6f 6d 28 73 ePerGas=Y.from(s 00012430: 2e 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 .maxPriorityFeeP 00012440: 65 72 47 61 73 29 29 2c 6e 75 6c 6c 21 3d 73 2e erGas)),null!=s. 00012450: 66 72 6f 6d 26 26 28 61 2e 66 72 6f 6d 3d 73 2e from&&(a.from=s. 00012460: 66 72 6f 6d 29 2c 6e 75 6c 6c 21 3d 73 2e 74 79 from),null!=s.ty 00012470: 70 65 26 26 28 61 2e 74 79 70 65 3d 73 2e 74 79 pe&&(a.type=s.ty 00012480: 70 65 29 2c 6e 75 6c 6c 21 3d 73 2e 61 63 63 65 pe),null!=s.acce 00012490: 73 73 4c 69 73 74 26 26 28 61 2e 61 63 63 65 73 ssList&&(a.acces 000124a0: 73 4c 69 73 74 3d 66 72 28 73 2e 61 63 63 65 73 sList=fr(s.acces 000124b0: 73 4c 69 73 74 29 29 2c 6e 75 6c 6c 3d 3d 61 2e sList)),null==a. 000124c0: 67 61 73 4c 69 6d 69 74 26 26 6e 75 6c 6c 21 3d gasLimit&&null!= 000124d0: 74 2e 67 61 73 29 7b 6c 65 74 20 65 3d 32 31 65 t.gas){let e=21e 000124e0: 33 3b 63 6f 6e 73 74 20 6e 3d 54 28 69 29 3b 66 3;const n=T(i);f 000124f0: 6f 72 28 6c 65 74 20 74 3d 30 3b 74 3c 6e 2e 6c or(let t=0;t<n.l 00012500: 65 6e 67 74 68 3b 74 2b 2b 29 65 2b 3d 34 2c 6e ength;t++)e+=4,n 00012510: 5b 74 5d 26 26 28 65 2b 3d 36 34 29 3b 61 2e 67 [t]&&(e+=64);a.g 00012520: 61 73 4c 69 6d 69 74 3d 59 2e 66 72 6f 6d 28 74 asLimit=Y.from(t 00012530: 2e 67 61 73 29 2e 61 64 64 28 65 29 7d 69 66 28 .gas).add(e)}if( 00012540: 73 2e 76 61 6c 75 65 29 7b 63 6f 6e 73 74 20 65 s.value){const e 00012550: 3d 59 2e 66 72 6f 6d 28 73 2e 76 61 6c 75 65 29 =Y.from(s.value) 00012560: 3b 65 2e 69 73 5a 65 72 6f 28 29 7c 7c 74 2e 70 ;e.isZero()||t.p 00012570: 61 79 61 62 6c 65 7c 7c 45 72 2e 74 68 72 6f 77 ayable||Er.throw 00012580: 45 72 72 6f 72 28 22 6e 6f 6e 2d 70 61 79 61 62 Error("non-payab 00012590: 6c 65 20 6d 65 74 68 6f 64 20 63 61 6e 6e 6f 74 le method cannot 000125a0: 20 6f 76 65 72 72 69 64 65 20 76 61 6c 75 65 22 override value" 000125b0: 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 ,y.errors.UNSUPP 000125c0: 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c ORTED_OPERATION, 000125d0: 7b 6f 70 65 72 61 74 69 6f 6e 3a 22 6f 76 65 72 {operation:"over 000125e0: 72 69 64 65 73 2e 76 61 6c 75 65 22 2c 76 61 6c rides.value",val 000125f0: 75 65 3a 72 2e 76 61 6c 75 65 7d 29 2c 61 2e 76 ue:r.value}),a.v 00012600: 61 6c 75 65 3d 65 7d 73 2e 63 75 73 74 6f 6d 44 alue=e}s.customD 00012610: 61 74 61 26 26 28 61 2e 63 75 73 74 6f 6d 44 61 ata&&(a.customDa 00012620: 74 61 3d 69 65 28 73 2e 63 75 73 74 6f 6d 44 61 ta=ie(s.customDa 00012630: 74 61 29 29 2c 73 2e 63 63 69 70 52 65 61 64 45 ta)),s.ccipReadE 00012640: 6e 61 62 6c 65 64 26 26 28 61 2e 63 63 69 70 52 nabled&&(a.ccipR 00012650: 65 61 64 45 6e 61 62 6c 65 64 3d 21 21 73 2e 63 eadEnabled=!!s.c 00012660: 63 69 70 52 65 61 64 45 6e 61 62 6c 65 64 29 2c cipReadEnabled), 00012670: 64 65 6c 65 74 65 20 72 2e 6e 6f 6e 63 65 2c 64 delete r.nonce,d 00012680: 65 6c 65 74 65 20 72 2e 67 61 73 4c 69 6d 69 74 elete r.gasLimit 00012690: 2c 64 65 6c 65 74 65 20 72 2e 67 61 73 50 72 69 ,delete r.gasPri 000126a0: 63 65 2c 64 65 6c 65 74 65 20 72 2e 66 72 6f 6d ce,delete r.from 000126b0: 2c 64 65 6c 65 74 65 20 72 2e 76 61 6c 75 65 2c ,delete r.value, 000126c0: 64 65 6c 65 74 65 20 72 2e 74 79 70 65 2c 64 65 delete r.type,de 000126d0: 6c 65 74 65 20 72 2e 61 63 63 65 73 73 4c 69 73 lete r.accessLis 000126e0: 74 2c 64 65 6c 65 74 65 20 72 2e 6d 61 78 46 65 t,delete r.maxFe 000126f0: 65 50 65 72 47 61 73 2c 64 65 6c 65 74 65 20 72 ePerGas,delete r 00012700: 2e 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 .maxPriorityFeeP 00012710: 65 72 47 61 73 2c 64 65 6c 65 74 65 20 72 2e 63 erGas,delete r.c 00012720: 75 73 74 6f 6d 44 61 74 61 2c 64 65 6c 65 74 65 ustomData,delete 00012730: 20 72 2e 63 63 69 70 52 65 61 64 45 6e 61 62 6c r.ccipReadEnabl 00012740: 65 64 3b 63 6f 6e 73 74 20 6c 3d 4f 62 6a 65 63 ed;const l=Objec 00012750: 74 2e 6b 65 79 73 28 72 29 2e 66 69 6c 74 65 72 t.keys(r).filter 00012760: 28 28 65 3d 3e 6e 75 6c 6c 21 3d 72 5b 65 5d 29 ((e=>null!=r[e]) 00012770: 29 3b 72 65 74 75 72 6e 20 6c 2e 6c 65 6e 67 74 );return l.lengt 00012780: 68 26 26 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 h&&Er.throwError 00012790: 28 60 63 61 6e 6e 6f 74 20 6f 76 65 72 72 69 64 (`cannot overrid 000127a0: 65 20 24 7b 6c 2e 6d 61 70 28 28 65 3d 3e 4a 53 e ${l.map((e=>JS 000127b0: 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 65 29 29 ON.stringify(e)) 000127c0: 29 2e 6a 6f 69 6e 28 22 2c 22 29 7d 60 2c 79 2e ).join(",")}`,y. 000127d0: 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 errors.UNSUPPORT 000127e0: 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 ED_OPERATION,{op 000127f0: 65 72 61 74 69 6f 6e 3a 22 6f 76 65 72 72 69 64 eration:"overrid 00012800: 65 73 22 2c 6f 76 65 72 72 69 64 65 73 3a 6c 7d es",overrides:l} 00012810: 29 2c 61 7d 29 29 7d 66 75 6e 63 74 69 6f 6e 20 ),a}))}function 00012820: 43 72 28 65 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d Cr(e,t){const n= 00012830: 74 2e 77 61 69 74 2e 62 69 6e 64 28 74 29 3b 74 t.wait.bind(t);t 00012840: 2e 77 61 69 74 3d 74 3d 3e 6e 28 74 29 2e 74 68 .wait=t=>n(t).th 00012850: 65 6e 28 28 74 3d 3e 28 74 2e 65 76 65 6e 74 73 en((t=>(t.events 00012860: 3d 74 2e 6c 6f 67 73 2e 6d 61 70 28 28 6e 3d 3e =t.logs.map((n=> 00012870: 7b 6c 65 74 20 72 3d 63 65 28 6e 29 2c 6f 3d 6e {let r=ce(n),o=n 00012880: 75 6c 6c 3b 74 72 79 7b 6f 3d 65 2e 69 6e 74 65 ull;try{o=e.inte 00012890: 72 66 61 63 65 2e 70 61 72 73 65 4c 6f 67 28 6e rface.parseLog(n 000128a0: 29 7d 63 61 74 63 68 28 65 29 7b 7d 72 65 74 75 )}catch(e){}retu 000128b0: 72 6e 20 6f 26 26 28 72 2e 61 72 67 73 3d 6f 2e rn o&&(r.args=o. 000128c0: 61 72 67 73 2c 72 2e 64 65 63 6f 64 65 3d 28 74 args,r.decode=(t 000128d0: 2c 6e 29 3d 3e 65 2e 69 6e 74 65 72 66 61 63 65 ,n)=>e.interface 000128e0: 2e 64 65 63 6f 64 65 45 76 65 6e 74 4c 6f 67 28 .decodeEventLog( 000128f0: 6f 2e 65 76 65 6e 74 46 72 61 67 6d 65 6e 74 2c o.eventFragment, 00012900: 74 2c 6e 29 2c 72 2e 65 76 65 6e 74 3d 6f 2e 6e t,n),r.event=o.n 00012910: 61 6d 65 2c 72 2e 65 76 65 6e 74 53 69 67 6e 61 ame,r.eventSigna 00012920: 74 75 72 65 3d 6f 2e 73 69 67 6e 61 74 75 72 65 ture=o.signature 00012930: 29 2c 72 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e ),r.removeListen 00012940: 65 72 3d 28 29 3d 3e 65 2e 70 72 6f 76 69 64 65 er=()=>e.provide 00012950: 72 2c 72 2e 67 65 74 42 6c 6f 63 6b 3d 28 29 3d r,r.getBlock=()= 00012960: 3e 65 2e 70 72 6f 76 69 64 65 72 2e 67 65 74 42 >e.provider.getB 00012970: 6c 6f 63 6b 28 74 2e 62 6c 6f 63 6b 48 61 73 68 lock(t.blockHash 00012980: 29 2c 72 2e 67 65 74 54 72 61 6e 73 61 63 74 69 ),r.getTransacti 00012990: 6f 6e 3d 28 29 3d 3e 65 2e 70 72 6f 76 69 64 65 on=()=>e.provide 000129a0: 72 2e 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e r.getTransaction 000129b0: 28 74 2e 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 (t.transactionHa 000129c0: 73 68 29 2c 72 2e 67 65 74 54 72 61 6e 73 61 63 sh),r.getTransac 000129d0: 74 69 6f 6e 52 65 63 65 69 70 74 3d 28 29 3d 3e tionReceipt=()=> 000129e0: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 000129f0: 74 29 2c 72 7d 29 29 2c 74 29 29 29 7d 66 75 6e t),r})),t)))}fun 00012a00: 63 74 69 6f 6e 20 41 72 28 65 2c 74 2c 6e 29 7b ction Ar(e,t,n){ 00012a10: 63 6f 6e 73 74 20 72 3d 65 2e 73 69 67 6e 65 72 const r=e.signer 00012a20: 7c 7c 65 2e 70 72 6f 76 69 64 65 72 3b 72 65 74 ||e.provider;ret 00012a30: 75 72 6e 20 66 75 6e 63 74 69 6f 6e 28 2e 2e 2e urn function(... 00012a40: 6f 29 7b 72 65 74 75 72 6e 20 53 72 28 74 68 69 o){return Sr(thi 00012a50: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 00012a60: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6c 65 74 (function*(){let 00012a70: 20 69 3b 69 66 28 6f 2e 6c 65 6e 67 74 68 3d 3d i;if(o.length== 00012a80: 3d 74 2e 69 6e 70 75 74 73 2e 6c 65 6e 67 74 68 =t.inputs.length 00012a90: 2b 31 26 26 22 6f 62 6a 65 63 74 22 3d 3d 74 79 +1&&"object"==ty 00012aa0: 70 65 6f 66 20 6f 5b 6f 2e 6c 65 6e 67 74 68 2d peof o[o.length- 00012ab0: 31 5d 29 7b 63 6f 6e 73 74 20 65 3d 69 65 28 6f 1]){const e=ie(o 00012ac0: 2e 70 6f 70 28 29 29 3b 6e 75 6c 6c 21 3d 65 2e .pop());null!=e. 00012ad0: 62 6c 6f 63 6b 54 61 67 26 26 28 69 3d 79 69 65 blockTag&&(i=yie 00012ae0: 6c 64 20 65 2e 62 6c 6f 63 6b 54 61 67 29 2c 64 ld e.blockTag),d 00012af0: 65 6c 65 74 65 20 65 2e 62 6c 6f 63 6b 54 61 67 elete e.blockTag 00012b00: 2c 6f 2e 70 75 73 68 28 65 29 7d 6e 75 6c 6c 21 ,o.push(e)}null! 00012b10: 3d 65 2e 64 65 70 6c 6f 79 54 72 61 6e 73 61 63 =e.deployTransac 00012b20: 74 69 6f 6e 26 26 28 79 69 65 6c 64 20 65 2e 5f tion&&(yield e._ 00012b30: 64 65 70 6c 6f 79 65 64 28 69 29 29 3b 63 6f 6e deployed(i));con 00012b40: 73 74 20 61 3d 79 69 65 6c 64 20 54 72 28 65 2c st a=yield Tr(e, 00012b50: 74 2c 6f 29 2c 73 3d 79 69 65 6c 64 20 72 2e 63 t,o),s=yield r.c 00012b60: 61 6c 6c 28 61 2c 69 29 3b 74 72 79 7b 6c 65 74 all(a,i);try{let 00012b70: 20 72 3d 65 2e 69 6e 74 65 72 66 61 63 65 2e 64 r=e.interface.d 00012b80: 65 63 6f 64 65 46 75 6e 63 74 69 6f 6e 52 65 73 ecodeFunctionRes 00012b90: 75 6c 74 28 74 2c 73 29 3b 72 65 74 75 72 6e 20 ult(t,s);return 00012ba0: 6e 26 26 31 3d 3d 3d 74 2e 6f 75 74 70 75 74 73 n&&1===t.outputs 00012bb0: 2e 6c 65 6e 67 74 68 26 26 28 72 3d 72 5b 30 5d .length&&(r=r[0] 00012bc0: 29 2c 72 7d 63 61 74 63 68 28 74 29 7b 74 68 72 ),r}catch(t){thr 00012bd0: 6f 77 20 74 2e 63 6f 64 65 3d 3d 3d 79 2e 65 72 ow t.code===y.er 00012be0: 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 54 rors.CALL_EXCEPT 00012bf0: 49 4f 4e 26 26 28 74 2e 61 64 64 72 65 73 73 3d ION&&(t.address= 00012c00: 65 2e 61 64 64 72 65 73 73 2c 74 2e 61 72 67 73 e.address,t.args 00012c10: 3d 6f 2c 74 2e 74 72 61 6e 73 61 63 74 69 6f 6e =o,t.transaction 00012c20: 3d 61 29 2c 74 7d 7d 29 29 7d 7d 66 75 6e 63 74 =a),t}}))}}funct 00012c30: 69 6f 6e 20 6b 72 28 65 2c 74 2c 6e 29 7b 72 65 ion kr(e,t,n){re 00012c40: 74 75 72 6e 20 74 2e 63 6f 6e 73 74 61 6e 74 3f turn t.constant? 00012c50: 41 72 28 65 2c 74 2c 6e 29 3a 66 75 6e 63 74 69 Ar(e,t,n):functi 00012c60: 6f 6e 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 66 on(e,t){return f 00012c70: 75 6e 63 74 69 6f 6e 28 2e 2e 2e 6e 29 7b 72 65 unction(...n){re 00012c80: 74 75 72 6e 20 53 72 28 74 68 69 73 2c 76 6f 69 turn Sr(this,voi 00012c90: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 00012ca0: 74 69 6f 6e 2a 28 29 7b 65 2e 73 69 67 6e 65 72 tion*(){e.signer 00012cb0: 7c 7c 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 ||Er.throwError( 00012cc0: 22 73 65 6e 64 69 6e 67 20 61 20 74 72 61 6e 73 "sending a trans 00012cd0: 61 63 74 69 6f 6e 20 72 65 71 75 69 72 65 73 20 action requires 00012ce0: 61 20 73 69 67 6e 65 72 22 2c 79 2e 65 72 72 6f a signer",y.erro 00012cf0: 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f rs.UNSUPPORTED_O 00012d00: 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 PERATION,{operat 00012d10: 69 6f 6e 3a 22 73 65 6e 64 54 72 61 6e 73 61 63 ion:"sendTransac 00012d20: 74 69 6f 6e 22 7d 29 2c 6e 75 6c 6c 21 3d 65 2e tion"}),null!=e. 00012d30: 64 65 70 6c 6f 79 54 72 61 6e 73 61 63 74 69 6f deployTransactio 00012d40: 6e 26 26 28 79 69 65 6c 64 20 65 2e 5f 64 65 70 n&&(yield e._dep 00012d50: 6c 6f 79 65 64 28 29 29 3b 63 6f 6e 73 74 20 72 loyed());const r 00012d60: 3d 79 69 65 6c 64 20 54 72 28 65 2c 74 2c 6e 29 =yield Tr(e,t,n) 00012d70: 2c 6f 3d 79 69 65 6c 64 20 65 2e 73 69 67 6e 65 ,o=yield e.signe 00012d80: 72 2e 73 65 6e 64 54 72 61 6e 73 61 63 74 69 6f r.sendTransactio 00012d90: 6e 28 72 29 3b 72 65 74 75 72 6e 20 43 72 28 65 n(r);return Cr(e 00012da0: 2c 6f 29 2c 6f 7d 29 29 7d 7d 28 65 2c 74 29 7d ,o),o}))}}(e,t)} 00012db0: 66 75 6e 63 74 69 6f 6e 20 49 72 28 65 29 7b 72 function Ir(e){r 00012dc0: 65 74 75 72 6e 21 65 2e 61 64 64 72 65 73 73 7c eturn!e.address| 00012dd0: 7c 6e 75 6c 6c 21 3d 65 2e 74 6f 70 69 63 73 26 |null!=e.topics& 00012de0: 26 30 21 3d 3d 65 2e 74 6f 70 69 63 73 2e 6c 65 &0!==e.topics.le 00012df0: 6e 67 74 68 3f 28 65 2e 61 64 64 72 65 73 73 7c ngth?(e.address| 00012e00: 7c 22 2a 22 29 2b 22 40 22 2b 28 65 2e 74 6f 70 |"*")+"@"+(e.top 00012e10: 69 63 73 3f 65 2e 74 6f 70 69 63 73 2e 6d 61 70 ics?e.topics.map 00012e20: 28 28 65 3d 3e 41 72 72 61 79 2e 69 73 41 72 72 ((e=>Array.isArr 00012e30: 61 79 28 65 29 3f 65 2e 6a 6f 69 6e 28 22 7c 22 ay(e)?e.join("|" 00012e40: 29 3a 65 29 29 2e 6a 6f 69 6e 28 22 3a 22 29 3a ):e)).join(":"): 00012e50: 22 22 29 3a 22 2a 22 7d 63 6c 61 73 73 20 4f 72 ""):"*"}class Or 00012e60: 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 {constructor(e,t 00012e70: 29 7b 74 65 28 74 68 69 73 2c 22 74 61 67 22 2c ){te(this,"tag", 00012e80: 65 29 2c 74 65 28 74 68 69 73 2c 22 66 69 6c 74 e),te(this,"filt 00012e90: 65 72 22 2c 74 29 2c 74 68 69 73 2e 5f 6c 69 73 er",t),this._lis 00012ea0: 74 65 6e 65 72 73 3d 5b 5d 7d 61 64 64 4c 69 73 teners=[]}addLis 00012eb0: 74 65 6e 65 72 28 65 2c 74 29 7b 74 68 69 73 2e tener(e,t){this. 00012ec0: 5f 6c 69 73 74 65 6e 65 72 73 2e 70 75 73 68 28 _listeners.push( 00012ed0: 7b 6c 69 73 74 65 6e 65 72 3a 65 2c 6f 6e 63 65 {listener:e,once 00012ee0: 3a 74 7d 29 7d 72 65 6d 6f 76 65 4c 69 73 74 65 :t})}removeListe 00012ef0: 6e 65 72 28 65 29 7b 6c 65 74 20 74 3d 21 31 3b ner(e){let t=!1; 00012f00: 74 68 69 73 2e 5f 6c 69 73 74 65 6e 65 72 73 3d this._listeners= 00012f10: 74 68 69 73 2e 5f 6c 69 73 74 65 6e 65 72 73 2e this._listeners. 00012f20: 66 69 6c 74 65 72 28 28 6e 3d 3e 21 28 21 74 26 filter((n=>!(!t& 00012f30: 26 6e 2e 6c 69 73 74 65 6e 65 72 3d 3d 3d 65 29 &n.listener===e) 00012f40: 7c 7c 28 74 3d 21 30 2c 21 31 29 29 29 7d 72 65 ||(t=!0,!1)))}re 00012f50: 6d 6f 76 65 41 6c 6c 4c 69 73 74 65 6e 65 72 73 moveAllListeners 00012f60: 28 29 7b 74 68 69 73 2e 5f 6c 69 73 74 65 6e 65 (){this._listene 00012f70: 72 73 3d 5b 5d 7d 6c 69 73 74 65 6e 65 72 73 28 rs=[]}listeners( 00012f80: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 6c ){return this._l 00012f90: 69 73 74 65 6e 65 72 73 2e 6d 61 70 28 28 65 3d isteners.map((e= 00012fa0: 3e 65 2e 6c 69 73 74 65 6e 65 72 29 29 7d 6c 69 >e.listener))}li 00012fb0: 73 74 65 6e 65 72 43 6f 75 6e 74 28 29 7b 72 65 stenerCount(){re 00012fc0: 74 75 72 6e 20 74 68 69 73 2e 5f 6c 69 73 74 65 turn this._liste 00012fd0: 6e 65 72 73 2e 6c 65 6e 67 74 68 7d 72 75 6e 28 ners.length}run( 00012fe0: 65 29 7b 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e e){const t=this. 00012ff0: 6c 69 73 74 65 6e 65 72 43 6f 75 6e 74 28 29 3b listenerCount(); 00013000: 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 6c 69 73 return this._lis 00013010: 74 65 6e 65 72 73 3d 74 68 69 73 2e 5f 6c 69 73 teners=this._lis 00013020: 74 65 6e 65 72 73 2e 66 69 6c 74 65 72 28 28 74 teners.filter((t 00013030: 3d 3e 7b 63 6f 6e 73 74 20 6e 3d 65 2e 73 6c 69 =>{const n=e.sli 00013040: 63 65 28 29 3b 72 65 74 75 72 6e 20 73 65 74 54 ce();return setT 00013050: 69 6d 65 6f 75 74 28 28 28 29 3d 3e 7b 74 2e 6c imeout((()=>{t.l 00013060: 69 73 74 65 6e 65 72 2e 61 70 70 6c 79 28 74 68 istener.apply(th 00013070: 69 73 2c 6e 29 7d 29 2c 30 29 2c 21 74 2e 6f 6e is,n)}),0),!t.on 00013080: 63 65 7d 29 29 2c 74 7d 70 72 65 70 61 72 65 45 ce})),t}prepareE 00013090: 76 65 6e 74 28 65 29 7b 7d 67 65 74 45 6d 69 74 vent(e){}getEmit 000130a0: 28 65 29 7b 72 65 74 75 72 6e 5b 65 5d 7d 7d 63 (e){return[e]}}c 000130b0: 6c 61 73 73 20 52 72 20 65 78 74 65 6e 64 73 20 lass Rr extends 000130c0: 4f 72 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 29 Or{constructor() 000130d0: 7b 73 75 70 65 72 28 22 65 72 72 6f 72 22 2c 6e {super("error",n 000130e0: 75 6c 6c 29 7d 7d 63 6c 61 73 73 20 4e 72 20 65 ull)}}class Nr e 000130f0: 78 74 65 6e 64 73 20 4f 72 7b 63 6f 6e 73 74 72 xtends Or{constr 00013100: 75 63 74 6f 72 28 65 2c 74 2c 6e 2c 72 29 7b 63 uctor(e,t,n,r){c 00013110: 6f 6e 73 74 20 6f 3d 7b 61 64 64 72 65 73 73 3a onst o={address: 00013120: 65 7d 3b 6c 65 74 20 69 3d 74 2e 67 65 74 45 76 e};let i=t.getEv 00013130: 65 6e 74 54 6f 70 69 63 28 6e 29 3b 72 3f 28 69 entTopic(n);r?(i 00013140: 21 3d 3d 72 5b 30 5d 26 26 45 72 2e 74 68 72 6f !==r[0]&&Er.thro 00013150: 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 wArgumentError(" 00013160: 74 6f 70 69 63 20 6d 69 73 6d 61 74 63 68 22 2c topic mismatch", 00013170: 22 74 6f 70 69 63 73 22 2c 72 29 2c 6f 2e 74 6f "topics",r),o.to 00013180: 70 69 63 73 3d 72 2e 73 6c 69 63 65 28 29 29 3a pics=r.slice()): 00013190: 6f 2e 74 6f 70 69 63 73 3d 5b 69 5d 2c 73 75 70 o.topics=[i],sup 000131a0: 65 72 28 49 72 28 6f 29 2c 6f 29 2c 74 65 28 74 er(Ir(o),o),te(t 000131b0: 68 69 73 2c 22 61 64 64 72 65 73 73 22 2c 65 29 his,"address",e) 000131c0: 2c 74 65 28 74 68 69 73 2c 22 69 6e 74 65 72 66 ,te(this,"interf 000131d0: 61 63 65 22 2c 74 29 2c 74 65 28 74 68 69 73 2c ace",t),te(this, 000131e0: 22 66 72 61 67 6d 65 6e 74 22 2c 6e 29 7d 70 72 "fragment",n)}pr 000131f0: 65 70 61 72 65 45 76 65 6e 74 28 65 29 7b 73 75 epareEvent(e){su 00013200: 70 65 72 2e 70 72 65 70 61 72 65 45 76 65 6e 74 per.prepareEvent 00013210: 28 65 29 2c 65 2e 65 76 65 6e 74 3d 74 68 69 73 (e),e.event=this 00013220: 2e 66 72 61 67 6d 65 6e 74 2e 6e 61 6d 65 2c 65 .fragment.name,e 00013230: 2e 65 76 65 6e 74 53 69 67 6e 61 74 75 72 65 3d .eventSignature= 00013240: 74 68 69 73 2e 66 72 61 67 6d 65 6e 74 2e 66 6f this.fragment.fo 00013250: 72 6d 61 74 28 29 2c 65 2e 64 65 63 6f 64 65 3d rmat(),e.decode= 00013260: 28 65 2c 74 29 3d 3e 74 68 69 73 2e 69 6e 74 65 (e,t)=>this.inte 00013270: 72 66 61 63 65 2e 64 65 63 6f 64 65 45 76 65 6e rface.decodeEven 00013280: 74 4c 6f 67 28 74 68 69 73 2e 66 72 61 67 6d 65 tLog(this.fragme 00013290: 6e 74 2c 65 2c 74 29 3b 74 72 79 7b 65 2e 61 72 nt,e,t);try{e.ar 000132a0: 67 73 3d 74 68 69 73 2e 69 6e 74 65 72 66 61 63 gs=this.interfac 000132b0: 65 2e 64 65 63 6f 64 65 45 76 65 6e 74 4c 6f 67 e.decodeEventLog 000132c0: 28 74 68 69 73 2e 66 72 61 67 6d 65 6e 74 2c 65 (this.fragment,e 000132d0: 2e 64 61 74 61 2c 65 2e 74 6f 70 69 63 73 29 7d .data,e.topics)} 000132e0: 63 61 74 63 68 28 74 29 7b 65 2e 61 72 67 73 3d catch(t){e.args= 000132f0: 6e 75 6c 6c 2c 65 2e 64 65 63 6f 64 65 45 72 72 null,e.decodeErr 00013300: 6f 72 3d 74 7d 7d 67 65 74 45 6d 69 74 28 65 29 or=t}}getEmit(e) 00013310: 7b 63 6f 6e 73 74 20 74 3d 66 65 28 65 2e 61 72 {const t=fe(e.ar 00013320: 67 73 29 3b 69 66 28 74 2e 6c 65 6e 67 74 68 29 gs);if(t.length) 00013330: 74 68 72 6f 77 20 74 5b 30 5d 2e 65 72 72 6f 72 throw t[0].error 00013340: 3b 63 6f 6e 73 74 20 6e 3d 28 65 2e 61 72 67 73 ;const n=(e.args 00013350: 7c 7c 5b 5d 29 2e 73 6c 69 63 65 28 29 3b 72 65 ||[]).slice();re 00013360: 74 75 72 6e 20 6e 2e 70 75 73 68 28 65 29 2c 6e turn n.push(e),n 00013370: 7d 7d 63 6c 61 73 73 20 50 72 20 65 78 74 65 6e }}class Pr exten 00013380: 64 73 20 4f 72 7b 63 6f 6e 73 74 72 75 63 74 6f ds Or{constructo 00013390: 72 28 65 2c 74 29 7b 73 75 70 65 72 28 22 2a 22 r(e,t){super("*" 000133a0: 2c 7b 61 64 64 72 65 73 73 3a 65 7d 29 2c 74 65 ,{address:e}),te 000133b0: 28 74 68 69 73 2c 22 61 64 64 72 65 73 73 22 2c (this,"address", 000133c0: 65 29 2c 74 65 28 74 68 69 73 2c 22 69 6e 74 65 e),te(this,"inte 000133d0: 72 66 61 63 65 22 2c 74 29 7d 70 72 65 70 61 72 rface",t)}prepar 000133e0: 65 45 76 65 6e 74 28 65 29 7b 73 75 70 65 72 2e eEvent(e){super. 000133f0: 70 72 65 70 61 72 65 45 76 65 6e 74 28 65 29 3b prepareEvent(e); 00013400: 74 72 79 7b 63 6f 6e 73 74 20 74 3d 74 68 69 73 try{const t=this 00013410: 2e 69 6e 74 65 72 66 61 63 65 2e 70 61 72 73 65 .interface.parse 00013420: 4c 6f 67 28 65 29 3b 65 2e 65 76 65 6e 74 3d 74 Log(e);e.event=t 00013430: 2e 6e 61 6d 65 2c 65 2e 65 76 65 6e 74 53 69 67 .name,e.eventSig 00013440: 6e 61 74 75 72 65 3d 74 2e 73 69 67 6e 61 74 75 nature=t.signatu 00013450: 72 65 2c 65 2e 64 65 63 6f 64 65 3d 28 65 2c 6e re,e.decode=(e,n 00013460: 29 3d 3e 74 68 69 73 2e 69 6e 74 65 72 66 61 63 )=>this.interfac 00013470: 65 2e 64 65 63 6f 64 65 45 76 65 6e 74 4c 6f 67 e.decodeEventLog 00013480: 28 74 2e 65 76 65 6e 74 46 72 61 67 6d 65 6e 74 (t.eventFragment 00013490: 2c 65 2c 6e 29 2c 65 2e 61 72 67 73 3d 74 2e 61 ,e,n),e.args=t.a 000134a0: 72 67 73 7d 63 61 74 63 68 28 65 29 7b 7d 7d 7d rgs}catch(e){}}} 000134b0: 63 6c 61 73 73 20 4d 72 7b 63 6f 6e 73 74 72 75 class Mr{constru 000134c0: 63 74 6f 72 28 65 2c 74 2c 6e 29 7b 74 65 28 74 ctor(e,t,n){te(t 000134d0: 68 69 73 2c 22 69 6e 74 65 72 66 61 63 65 22 2c his,"interface", 000134e0: 6e 65 28 6e 65 77 2e 74 61 72 67 65 74 2c 22 67 ne(new.target,"g 000134f0: 65 74 49 6e 74 65 72 66 61 63 65 22 29 28 74 29 etInterface")(t) 00013500: 29 2c 6e 75 6c 6c 3d 3d 6e 3f 28 74 65 28 74 68 ),null==n?(te(th 00013510: 69 73 2c 22 70 72 6f 76 69 64 65 72 22 2c 6e 75 is,"provider",nu 00013520: 6c 6c 29 2c 74 65 28 74 68 69 73 2c 22 73 69 67 ll),te(this,"sig 00013530: 6e 65 72 22 2c 6e 75 6c 6c 29 29 3a 64 6e 2e 69 ner",null)):dn.i 00013540: 73 53 69 67 6e 65 72 28 6e 29 3f 28 74 65 28 74 sSigner(n)?(te(t 00013550: 68 69 73 2c 22 70 72 6f 76 69 64 65 72 22 2c 6e his,"provider",n 00013560: 2e 70 72 6f 76 69 64 65 72 7c 7c 6e 75 6c 6c 29 .provider||null) 00013570: 2c 74 65 28 74 68 69 73 2c 22 73 69 67 6e 65 72 ,te(this,"signer 00013580: 22 2c 6e 29 29 3a 61 6e 2e 69 73 50 72 6f 76 69 ",n)):an.isProvi 00013590: 64 65 72 28 6e 29 3f 28 74 65 28 74 68 69 73 2c der(n)?(te(this, 000135a0: 22 70 72 6f 76 69 64 65 72 22 2c 6e 29 2c 74 65 "provider",n),te 000135b0: 28 74 68 69 73 2c 22 73 69 67 6e 65 72 22 2c 6e (this,"signer",n 000135c0: 75 6c 6c 29 29 3a 45 72 2e 74 68 72 6f 77 41 72 ull)):Er.throwAr 000135d0: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 000135e0: 61 6c 69 64 20 73 69 67 6e 65 72 20 6f 72 20 70 alid signer or p 000135f0: 72 6f 76 69 64 65 72 22 2c 22 73 69 67 6e 65 72 rovider","signer 00013600: 4f 72 50 72 6f 76 69 64 65 72 22 2c 6e 29 2c 74 OrProvider",n),t 00013610: 65 28 74 68 69 73 2c 22 63 61 6c 6c 53 74 61 74 e(this,"callStat 00013620: 69 63 22 2c 7b 7d 29 2c 74 65 28 74 68 69 73 2c ic",{}),te(this, 00013630: 22 65 73 74 69 6d 61 74 65 47 61 73 22 2c 7b 7d "estimateGas",{} 00013640: 29 2c 74 65 28 74 68 69 73 2c 22 66 75 6e 63 74 ),te(this,"funct 00013650: 69 6f 6e 73 22 2c 7b 7d 29 2c 74 65 28 74 68 69 ions",{}),te(thi 00013660: 73 2c 22 70 6f 70 75 6c 61 74 65 54 72 61 6e 73 s,"populateTrans 00013670: 61 63 74 69 6f 6e 22 2c 7b 7d 29 2c 74 65 28 74 action",{}),te(t 00013680: 68 69 73 2c 22 66 69 6c 74 65 72 73 22 2c 7b 7d his,"filters",{} 00013690: 29 3b 7b 63 6f 6e 73 74 20 65 3d 7b 7d 3b 4f 62 );{const e={};Ob 000136a0: 6a 65 63 74 2e 6b 65 79 73 28 74 68 69 73 2e 69 ject.keys(this.i 000136b0: 6e 74 65 72 66 61 63 65 2e 65 76 65 6e 74 73 29 nterface.events) 000136c0: 2e 66 6f 72 45 61 63 68 28 28 74 3d 3e 7b 63 6f .forEach((t=>{co 000136d0: 6e 73 74 20 6e 3d 74 68 69 73 2e 69 6e 74 65 72 nst n=this.inter 000136e0: 66 61 63 65 2e 65 76 65 6e 74 73 5b 74 5d 3b 74 face.events[t];t 000136f0: 65 28 74 68 69 73 2e 66 69 6c 74 65 72 73 2c 74 e(this.filters,t 00013700: 2c 28 28 2e 2e 2e 65 29 3d 3e 28 7b 61 64 64 72 ,((...e)=>({addr 00013710: 65 73 73 3a 74 68 69 73 2e 61 64 64 72 65 73 73 ess:this.address 00013720: 2c 74 6f 70 69 63 73 3a 74 68 69 73 2e 69 6e 74 ,topics:this.int 00013730: 65 72 66 61 63 65 2e 65 6e 63 6f 64 65 46 69 6c erface.encodeFil 00013740: 74 65 72 54 6f 70 69 63 73 28 6e 2c 65 29 7d 29 terTopics(n,e)}) 00013750: 29 29 2c 65 5b 6e 2e 6e 61 6d 65 5d 7c 7c 28 65 )),e[n.name]||(e 00013760: 5b 6e 2e 6e 61 6d 65 5d 3d 5b 5d 29 2c 65 5b 6e [n.name]=[]),e[n 00013770: 2e 6e 61 6d 65 5d 2e 70 75 73 68 28 74 29 7d 29 .name].push(t)}) 00013780: 29 2c 4f 62 6a 65 63 74 2e 6b 65 79 73 28 65 29 ),Object.keys(e) 00013790: 2e 66 6f 72 45 61 63 68 28 28 74 3d 3e 7b 63 6f .forEach((t=>{co 000137a0: 6e 73 74 20 6e 3d 65 5b 74 5d 3b 31 3d 3d 3d 6e nst n=e[t];1===n 000137b0: 2e 6c 65 6e 67 74 68 3f 74 65 28 74 68 69 73 2e .length?te(this. 000137c0: 66 69 6c 74 65 72 73 2c 74 2c 74 68 69 73 2e 66 filters,t,this.f 000137d0: 69 6c 74 65 72 73 5b 6e 5b 30 5d 5d 29 3a 45 72 ilters[n[0]]):Er 000137e0: 2e 77 61 72 6e 28 60 44 75 70 6c 69 63 61 74 65 .warn(`Duplicate 000137f0: 20 64 65 66 69 6e 69 74 69 6f 6e 20 6f 66 20 24 definition of $ 00013800: 7b 74 7d 20 28 24 7b 6e 2e 6a 6f 69 6e 28 22 2c {t} (${n.join(", 00013810: 20 22 29 7d 29 60 29 7d 29 29 7d 69 66 28 74 65 ")})`)}))}if(te 00013820: 28 74 68 69 73 2c 22 5f 72 75 6e 6e 69 6e 67 45 (this,"_runningE 00013830: 76 65 6e 74 73 22 2c 7b 7d 29 2c 74 65 28 74 68 vents",{}),te(th 00013840: 69 73 2c 22 5f 77 72 61 70 70 65 64 45 6d 69 74 is,"_wrappedEmit 00013850: 73 22 2c 7b 7d 29 2c 6e 75 6c 6c 3d 3d 65 26 26 s",{}),null==e&& 00013860: 45 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Er.throwArgument 00013870: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 63 Error("invalid c 00013880: 6f 6e 74 72 61 63 74 20 61 64 64 72 65 73 73 20 ontract address 00013890: 6f 72 20 45 4e 53 20 6e 61 6d 65 22 2c 22 61 64 or ENS name","ad 000138a0: 64 72 65 73 73 4f 72 4e 61 6d 65 22 2c 65 29 2c dressOrName",e), 000138b0: 74 65 28 74 68 69 73 2c 22 61 64 64 72 65 73 73 te(this,"address 000138c0: 22 2c 65 29 2c 74 68 69 73 2e 70 72 6f 76 69 64 ",e),this.provid 000138d0: 65 72 29 74 65 28 74 68 69 73 2c 22 72 65 73 6f er)te(this,"reso 000138e0: 6c 76 65 64 41 64 64 72 65 73 73 22 2c 77 72 28 lvedAddress",wr( 000138f0: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2c 65 29 this.provider,e) 00013900: 29 3b 65 6c 73 65 20 74 72 79 7b 74 65 28 74 68 );else try{te(th 00013910: 69 73 2c 22 72 65 73 6f 6c 76 65 64 41 64 64 72 is,"resolvedAddr 00013920: 65 73 73 22 2c 50 72 6f 6d 69 73 65 2e 72 65 73 ess",Promise.res 00013930: 6f 6c 76 65 28 4d 65 28 65 29 29 29 7d 63 61 74 olve(Me(e)))}cat 00013940: 63 68 28 65 29 7b 45 72 2e 74 68 72 6f 77 45 72 ch(e){Er.throwEr 00013950: 72 6f 72 28 22 70 72 6f 76 69 64 65 72 20 69 73 ror("provider is 00013960: 20 72 65 71 75 69 72 65 64 20 74 6f 20 75 73 65 required to use 00013970: 20 45 4e 53 20 6e 61 6d 65 20 61 73 20 63 6f 6e ENS name as con 00013980: 74 72 61 63 74 20 61 64 64 72 65 73 73 22 2c 79 tract address",y 00013990: 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 .errors.UNSUPPOR 000139a0: 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f TED_OPERATION,{o 000139b0: 70 65 72 61 74 69 6f 6e 3a 22 6e 65 77 20 43 6f peration:"new Co 000139c0: 6e 74 72 61 63 74 22 7d 29 7d 74 68 69 73 2e 72 ntract"})}this.r 000139d0: 65 73 6f 6c 76 65 64 41 64 64 72 65 73 73 2e 63 esolvedAddress.c 000139e0: 61 74 63 68 28 28 65 3d 3e 7b 7d 29 29 3b 63 6f atch((e=>{}));co 000139f0: 6e 73 74 20 72 3d 7b 7d 2c 6f 3d 7b 7d 3b 4f 62 nst r={},o={};Ob 00013a00: 6a 65 63 74 2e 6b 65 79 73 28 74 68 69 73 2e 69 ject.keys(this.i 00013a10: 6e 74 65 72 66 61 63 65 2e 66 75 6e 63 74 69 6f nterface.functio 00013a20: 6e 73 29 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e ns).forEach((e=> 00013a30: 7b 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 69 6e {const t=this.in 00013a40: 74 65 72 66 61 63 65 2e 66 75 6e 63 74 69 6f 6e terface.function 00013a50: 73 5b 65 5d 3b 69 66 28 6f 5b 65 5d 29 45 72 2e s[e];if(o[e])Er. 00013a60: 77 61 72 6e 28 60 44 75 70 6c 69 63 61 74 65 20 warn(`Duplicate 00013a70: 41 42 49 20 65 6e 74 72 79 20 66 6f 72 20 24 7b ABI entry for ${ 00013a80: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 65 JSON.stringify(e 00013a90: 29 7d 60 29 3b 65 6c 73 65 7b 6f 5b 65 5d 3d 21 )}`);else{o[e]=! 00013aa0: 30 3b 7b 63 6f 6e 73 74 20 6e 3d 74 2e 6e 61 6d 0;{const n=t.nam 00013ab0: 65 3b 72 5b 60 25 24 7b 6e 7d 60 5d 7c 7c 28 72 e;r[`%${n}`]||(r 00013ac0: 5b 60 25 24 7b 6e 7d 60 5d 3d 5b 5d 29 2c 72 5b [`%${n}`]=[]),r[ 00013ad0: 60 25 24 7b 6e 7d 60 5d 2e 70 75 73 68 28 65 29 `%${n}`].push(e) 00013ae0: 7d 6e 75 6c 6c 3d 3d 74 68 69 73 5b 65 5d 26 26 }null==this[e]&& 00013af0: 74 65 28 74 68 69 73 2c 65 2c 6b 72 28 74 68 69 te(this,e,kr(thi 00013b00: 73 2c 74 2c 21 30 29 29 2c 6e 75 6c 6c 3d 3d 74 s,t,!0)),null==t 00013b10: 68 69 73 2e 66 75 6e 63 74 69 6f 6e 73 5b 65 5d his.functions[e] 00013b20: 26 26 74 65 28 74 68 69 73 2e 66 75 6e 63 74 69 &&te(this.functi 00013b30: 6f 6e 73 2c 65 2c 6b 72 28 74 68 69 73 2c 74 2c ons,e,kr(this,t, 00013b40: 21 31 29 29 2c 6e 75 6c 6c 3d 3d 74 68 69 73 2e !1)),null==this. 00013b50: 63 61 6c 6c 53 74 61 74 69 63 5b 65 5d 26 26 74 callStatic[e]&&t 00013b60: 65 28 74 68 69 73 2e 63 61 6c 6c 53 74 61 74 69 e(this.callStati 00013b70: 63 2c 65 2c 41 72 28 74 68 69 73 2c 74 2c 21 30 c,e,Ar(this,t,!0 00013b80: 29 29 2c 6e 75 6c 6c 3d 3d 74 68 69 73 2e 70 6f )),null==this.po 00013b90: 70 75 6c 61 74 65 54 72 61 6e 73 61 63 74 69 6f pulateTransactio 00013ba0: 6e 5b 65 5d 26 26 74 65 28 74 68 69 73 2e 70 6f n[e]&&te(this.po 00013bb0: 70 75 6c 61 74 65 54 72 61 6e 73 61 63 74 69 6f pulateTransactio 00013bc0: 6e 2c 65 2c 66 75 6e 63 74 69 6f 6e 28 65 2c 74 n,e,function(e,t 00013bd0: 29 7b 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f ){return functio 00013be0: 6e 28 2e 2e 2e 6e 29 7b 72 65 74 75 72 6e 20 54 n(...n){return T 00013bf0: 72 28 65 2c 74 2c 6e 29 7d 7d 28 74 68 69 73 2c r(e,t,n)}}(this, 00013c00: 74 29 29 2c 6e 75 6c 6c 3d 3d 74 68 69 73 2e 65 t)),null==this.e 00013c10: 73 74 69 6d 61 74 65 47 61 73 5b 65 5d 26 26 74 stimateGas[e]&&t 00013c20: 65 28 74 68 69 73 2e 65 73 74 69 6d 61 74 65 47 e(this.estimateG 00013c30: 61 73 2c 65 2c 66 75 6e 63 74 69 6f 6e 28 65 2c as,e,function(e, 00013c40: 74 29 7b 63 6f 6e 73 74 20 6e 3d 65 2e 73 69 67 t){const n=e.sig 00013c50: 6e 65 72 7c 7c 65 2e 70 72 6f 76 69 64 65 72 3b ner||e.provider; 00013c60: 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e 28 return function( 00013c70: 2e 2e 2e 72 29 7b 72 65 74 75 72 6e 20 53 72 28 ...r){return Sr( 00013c80: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 00013c90: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 00013ca0: 6e 7c 7c 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 n||Er.throwError 00013cb0: 28 22 65 73 74 69 6d 61 74 65 20 72 65 71 75 69 ("estimate requi 00013cc0: 72 65 20 61 20 70 72 6f 76 69 64 65 72 20 6f 72 re a provider or 00013cd0: 20 73 69 67 6e 65 72 22 2c 79 2e 65 72 72 6f 72 signer",y.error 00013ce0: 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 s.UNSUPPORTED_OP 00013cf0: 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 ERATION,{operati 00013d00: 6f 6e 3a 22 65 73 74 69 6d 61 74 65 47 61 73 22 on:"estimateGas" 00013d10: 7d 29 3b 63 6f 6e 73 74 20 6f 3d 79 69 65 6c 64 });const o=yield 00013d20: 20 54 72 28 65 2c 74 2c 72 29 3b 72 65 74 75 72 Tr(e,t,r);retur 00013d30: 6e 20 79 69 65 6c 64 20 6e 2e 65 73 74 69 6d 61 n yield n.estima 00013d40: 74 65 47 61 73 28 6f 29 7d 29 29 7d 7d 28 74 68 teGas(o)}))}}(th 00013d50: 69 73 2c 74 29 29 7d 7d 29 29 2c 4f 62 6a 65 63 is,t))}})),Objec 00013d60: 74 2e 6b 65 79 73 28 72 29 2e 66 6f 72 45 61 63 t.keys(r).forEac 00013d70: 68 28 28 65 3d 3e 7b 63 6f 6e 73 74 20 74 3d 72 h((e=>{const t=r 00013d80: 5b 65 5d 3b 69 66 28 74 2e 6c 65 6e 67 74 68 3e [e];if(t.length> 00013d90: 31 29 72 65 74 75 72 6e 3b 65 3d 65 2e 73 75 62 1)return;e=e.sub 00013da0: 73 74 72 69 6e 67 28 31 29 3b 63 6f 6e 73 74 20 string(1);const 00013db0: 6e 3d 74 5b 30 5d 3b 74 72 79 7b 6e 75 6c 6c 3d n=t[0];try{null= 00013dc0: 3d 74 68 69 73 5b 65 5d 26 26 74 65 28 74 68 69 =this[e]&&te(thi 00013dd0: 73 2c 65 2c 74 68 69 73 5b 6e 5d 29 7d 63 61 74 s,e,this[n])}cat 00013de0: 63 68 28 65 29 7b 7d 6e 75 6c 6c 3d 3d 74 68 69 ch(e){}null==thi 00013df0: 73 2e 66 75 6e 63 74 69 6f 6e 73 5b 65 5d 26 26 s.functions[e]&& 00013e00: 74 65 28 74 68 69 73 2e 66 75 6e 63 74 69 6f 6e te(this.function 00013e10: 73 2c 65 2c 74 68 69 73 2e 66 75 6e 63 74 69 6f s,e,this.functio 00013e20: 6e 73 5b 6e 5d 29 2c 6e 75 6c 6c 3d 3d 74 68 69 ns[n]),null==thi 00013e30: 73 2e 63 61 6c 6c 53 74 61 74 69 63 5b 65 5d 26 s.callStatic[e]& 00013e40: 26 74 65 28 74 68 69 73 2e 63 61 6c 6c 53 74 61 &te(this.callSta 00013e50: 74 69 63 2c 65 2c 74 68 69 73 2e 63 61 6c 6c 53 tic,e,this.callS 00013e60: 74 61 74 69 63 5b 6e 5d 29 2c 6e 75 6c 6c 3d 3d tatic[n]),null== 00013e70: 74 68 69 73 2e 70 6f 70 75 6c 61 74 65 54 72 61 this.populateTra 00013e80: 6e 73 61 63 74 69 6f 6e 5b 65 5d 26 26 74 65 28 nsaction[e]&&te( 00013e90: 74 68 69 73 2e 70 6f 70 75 6c 61 74 65 54 72 61 this.populateTra 00013ea0: 6e 73 61 63 74 69 6f 6e 2c 65 2c 74 68 69 73 2e nsaction,e,this. 00013eb0: 70 6f 70 75 6c 61 74 65 54 72 61 6e 73 61 63 74 populateTransact 00013ec0: 69 6f 6e 5b 6e 5d 29 2c 6e 75 6c 6c 3d 3d 74 68 ion[n]),null==th 00013ed0: 69 73 2e 65 73 74 69 6d 61 74 65 47 61 73 5b 65 is.estimateGas[e 00013ee0: 5d 26 26 74 65 28 74 68 69 73 2e 65 73 74 69 6d ]&&te(this.estim 00013ef0: 61 74 65 47 61 73 2c 65 2c 74 68 69 73 2e 65 73 ateGas,e,this.es 00013f00: 74 69 6d 61 74 65 47 61 73 5b 6e 5d 29 7d 29 29 timateGas[n])})) 00013f10: 7d 73 74 61 74 69 63 20 67 65 74 43 6f 6e 74 72 }static getContr 00013f20: 61 63 74 41 64 64 72 65 73 73 28 65 29 7b 72 65 actAddress(e){re 00013f30: 74 75 72 6e 20 46 65 28 65 29 7d 73 74 61 74 69 turn Fe(e)}stati 00013f40: 63 20 67 65 74 49 6e 74 65 72 66 61 63 65 28 65 c getInterface(e 00013f50: 29 7b 72 65 74 75 72 6e 20 74 6e 2e 69 73 49 6e ){return tn.isIn 00013f60: 74 65 72 66 61 63 65 28 65 29 3f 65 3a 6e 65 77 terface(e)?e:new 00013f70: 20 74 6e 28 65 29 7d 64 65 70 6c 6f 79 65 64 28 tn(e)}deployed( 00013f80: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 64 ){return this._d 00013f90: 65 70 6c 6f 79 65 64 28 29 7d 5f 64 65 70 6c 6f eployed()}_deplo 00013fa0: 79 65 64 28 65 29 7b 72 65 74 75 72 6e 20 74 68 yed(e){return th 00013fb0: 69 73 2e 5f 64 65 70 6c 6f 79 65 64 50 72 6f 6d is._deployedProm 00013fc0: 69 73 65 7c 7c 28 74 68 69 73 2e 64 65 70 6c 6f ise||(this.deplo 00013fd0: 79 54 72 61 6e 73 61 63 74 69 6f 6e 3f 74 68 69 yTransaction?thi 00013fe0: 73 2e 5f 64 65 70 6c 6f 79 65 64 50 72 6f 6d 69 s._deployedPromi 00013ff0: 73 65 3d 74 68 69 73 2e 64 65 70 6c 6f 79 54 72 se=this.deployTr 00014000: 61 6e 73 61 63 74 69 6f 6e 2e 77 61 69 74 28 29 ansaction.wait() 00014010: 2e 74 68 65 6e 28 28 28 29 3d 3e 74 68 69 73 29 .then((()=>this) 00014020: 29 3a 74 68 69 73 2e 5f 64 65 70 6c 6f 79 65 64 ):this._deployed 00014030: 50 72 6f 6d 69 73 65 3d 74 68 69 73 2e 70 72 6f Promise=this.pro 00014040: 76 69 64 65 72 2e 67 65 74 43 6f 64 65 28 74 68 vider.getCode(th 00014050: 69 73 2e 61 64 64 72 65 73 73 2c 65 29 2e 74 68 is.address,e).th 00014060: 65 6e 28 28 65 3d 3e 28 22 30 78 22 3d 3d 3d 65 en((e=>("0x"===e 00014070: 26 26 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 &&Er.throwError( 00014080: 22 63 6f 6e 74 72 61 63 74 20 6e 6f 74 20 64 65 "contract not de 00014090: 70 6c 6f 79 65 64 22 2c 79 2e 65 72 72 6f 72 73 ployed",y.errors 000140a0: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 000140b0: 52 41 54 49 4f 4e 2c 7b 63 6f 6e 74 72 61 63 74 RATION,{contract 000140c0: 41 64 64 72 65 73 73 3a 74 68 69 73 2e 61 64 64 Address:this.add 000140d0: 72 65 73 73 2c 6f 70 65 72 61 74 69 6f 6e 3a 22 ress,operation:" 000140e0: 67 65 74 44 65 70 6c 6f 79 65 64 22 7d 29 2c 74 getDeployed"}),t 000140f0: 68 69 73 29 29 29 29 2c 74 68 69 73 2e 5f 64 65 his)))),this._de 00014100: 70 6c 6f 79 65 64 50 72 6f 6d 69 73 65 7d 66 61 ployedPromise}fa 00014110: 6c 6c 62 61 63 6b 28 65 29 7b 74 68 69 73 2e 73 llback(e){this.s 00014120: 69 67 6e 65 72 7c 7c 45 72 2e 74 68 72 6f 77 45 igner||Er.throwE 00014130: 72 72 6f 72 28 22 73 65 6e 64 69 6e 67 20 61 20 rror("sending a 00014140: 74 72 61 6e 73 61 63 74 69 6f 6e 73 20 72 65 71 transactions req 00014150: 75 69 72 65 20 61 20 73 69 67 6e 65 72 22 2c 79 uire a signer",y 00014160: 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 .errors.UNSUPPOR 00014170: 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f TED_OPERATION,{o 00014180: 70 65 72 61 74 69 6f 6e 3a 22 73 65 6e 64 54 72 peration:"sendTr 00014190: 61 6e 73 61 63 74 69 6f 6e 28 66 61 6c 6c 62 61 ansaction(fallba 000141a0: 63 6b 29 22 7d 29 3b 63 6f 6e 73 74 20 74 3d 69 ck)"});const t=i 000141b0: 65 28 65 7c 7c 7b 7d 29 3b 72 65 74 75 72 6e 5b e(e||{});return[ 000141c0: 22 66 72 6f 6d 22 2c 22 74 6f 22 5d 2e 66 6f 72 "from","to"].for 000141d0: 45 61 63 68 28 28 66 75 6e 63 74 69 6f 6e 28 65 Each((function(e 000141e0: 29 7b 6e 75 6c 6c 21 3d 74 5b 65 5d 26 26 45 72 ){null!=t[e]&&Er 000141f0: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 63 61 6e .throwError("can 00014200: 6e 6f 74 20 6f 76 65 72 72 69 64 65 20 22 2b 65 not override "+e 00014210: 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 ,y.errors.UNSUPP 00014220: 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c ORTED_OPERATION, 00014230: 7b 6f 70 65 72 61 74 69 6f 6e 3a 65 7d 29 7d 29 {operation:e})}) 00014240: 29 2c 74 2e 74 6f 3d 74 68 69 73 2e 72 65 73 6f ),t.to=this.reso 00014250: 6c 76 65 64 41 64 64 72 65 73 73 2c 74 68 69 73 lvedAddress,this 00014260: 2e 64 65 70 6c 6f 79 65 64 28 29 2e 74 68 65 6e .deployed().then 00014270: 28 28 28 29 3d 3e 74 68 69 73 2e 73 69 67 6e 65 ((()=>this.signe 00014280: 72 2e 73 65 6e 64 54 72 61 6e 73 61 63 74 69 6f r.sendTransactio 00014290: 6e 28 74 29 29 29 7d 63 6f 6e 6e 65 63 74 28 65 n(t)))}connect(e 000142a0: 29 7b 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 ){"string"==type 000142b0: 6f 66 20 65 26 26 28 65 3d 6e 65 77 20 70 6e 28 of e&&(e=new pn( 000142c0: 65 2c 74 68 69 73 2e 70 72 6f 76 69 64 65 72 29 e,this.provider) 000142d0: 29 3b 63 6f 6e 73 74 20 74 3d 6e 65 77 20 74 68 );const t=new th 000142e0: 69 73 2e 63 6f 6e 73 74 72 75 63 74 6f 72 28 74 is.constructor(t 000142f0: 68 69 73 2e 61 64 64 72 65 73 73 2c 74 68 69 73 his.address,this 00014300: 2e 69 6e 74 65 72 66 61 63 65 2c 65 29 3b 72 65 .interface,e);re 00014310: 74 75 72 6e 20 74 68 69 73 2e 64 65 70 6c 6f 79 turn this.deploy 00014320: 54 72 61 6e 73 61 63 74 69 6f 6e 26 26 74 65 28 Transaction&&te( 00014330: 74 2c 22 64 65 70 6c 6f 79 54 72 61 6e 73 61 63 t,"deployTransac 00014340: 74 69 6f 6e 22 2c 74 68 69 73 2e 64 65 70 6c 6f tion",this.deplo 00014350: 79 54 72 61 6e 73 61 63 74 69 6f 6e 29 2c 74 7d yTransaction),t} 00014360: 61 74 74 61 63 68 28 65 29 7b 72 65 74 75 72 6e attach(e){return 00014370: 20 6e 65 77 20 74 68 69 73 2e 63 6f 6e 73 74 72 new this.constr 00014380: 75 63 74 6f 72 28 65 2c 74 68 69 73 2e 69 6e 74 uctor(e,this.int 00014390: 65 72 66 61 63 65 2c 74 68 69 73 2e 73 69 67 6e erface,this.sign 000143a0: 65 72 7c 7c 74 68 69 73 2e 70 72 6f 76 69 64 65 er||this.provide 000143b0: 72 29 7d 73 74 61 74 69 63 20 69 73 49 6e 64 65 r)}static isInde 000143c0: 78 65 64 28 65 29 7b 72 65 74 75 72 6e 20 4a 74 xed(e){return Jt 000143d0: 2e 69 73 49 6e 64 65 78 65 64 28 65 29 7d 5f 6e .isIndexed(e)}_n 000143e0: 6f 72 6d 61 6c 69 7a 65 52 75 6e 6e 69 6e 67 45 ormalizeRunningE 000143f0: 76 65 6e 74 28 65 29 7b 72 65 74 75 72 6e 20 74 vent(e){return t 00014400: 68 69 73 2e 5f 72 75 6e 6e 69 6e 67 45 76 65 6e his._runningEven 00014410: 74 73 5b 65 2e 74 61 67 5d 3f 74 68 69 73 2e 5f ts[e.tag]?this._ 00014420: 72 75 6e 6e 69 6e 67 45 76 65 6e 74 73 5b 65 2e runningEvents[e. 00014430: 74 61 67 5d 3a 65 7d 5f 67 65 74 52 75 6e 6e 69 tag]:e}_getRunni 00014440: 6e 67 45 76 65 6e 74 28 65 29 7b 69 66 28 22 73 ngEvent(e){if("s 00014450: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 00014460: 29 7b 69 66 28 22 65 72 72 6f 72 22 3d 3d 3d 65 ){if("error"===e 00014470: 29 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 6e 6f )return this._no 00014480: 72 6d 61 6c 69 7a 65 52 75 6e 6e 69 6e 67 45 76 rmalizeRunningEv 00014490: 65 6e 74 28 6e 65 77 20 52 72 29 3b 69 66 28 22 ent(new Rr);if(" 000144a0: 65 76 65 6e 74 22 3d 3d 3d 65 29 72 65 74 75 72 event"===e)retur 000144b0: 6e 20 74 68 69 73 2e 5f 6e 6f 72 6d 61 6c 69 7a n this._normaliz 000144c0: 65 52 75 6e 6e 69 6e 67 45 76 65 6e 74 28 6e 65 eRunningEvent(ne 000144d0: 77 20 4f 72 28 22 65 76 65 6e 74 22 2c 6e 75 6c w Or("event",nul 000144e0: 6c 29 29 3b 69 66 28 22 2a 22 3d 3d 3d 65 29 72 l));if("*"===e)r 000144f0: 65 74 75 72 6e 20 74 68 69 73 2e 5f 6e 6f 72 6d eturn this._norm 00014500: 61 6c 69 7a 65 52 75 6e 6e 69 6e 67 45 76 65 6e alizeRunningEven 00014510: 74 28 6e 65 77 20 50 72 28 74 68 69 73 2e 61 64 t(new Pr(this.ad 00014520: 64 72 65 73 73 2c 74 68 69 73 2e 69 6e 74 65 72 dress,this.inter 00014530: 66 61 63 65 29 29 3b 63 6f 6e 73 74 20 74 3d 74 face));const t=t 00014540: 68 69 73 2e 69 6e 74 65 72 66 61 63 65 2e 67 65 his.interface.ge 00014550: 74 45 76 65 6e 74 28 65 29 3b 72 65 74 75 72 6e tEvent(e);return 00014560: 20 74 68 69 73 2e 5f 6e 6f 72 6d 61 6c 69 7a 65 this._normalize 00014570: 52 75 6e 6e 69 6e 67 45 76 65 6e 74 28 6e 65 77 RunningEvent(new 00014580: 20 4e 72 28 74 68 69 73 2e 61 64 64 72 65 73 73 Nr(this.address 00014590: 2c 74 68 69 73 2e 69 6e 74 65 72 66 61 63 65 2c ,this.interface, 000145a0: 74 29 29 7d 69 66 28 65 2e 74 6f 70 69 63 73 26 t))}if(e.topics& 000145b0: 26 65 2e 74 6f 70 69 63 73 2e 6c 65 6e 67 74 68 &e.topics.length 000145c0: 3e 30 29 7b 74 72 79 7b 63 6f 6e 73 74 20 74 3d >0){try{const t= 000145d0: 65 2e 74 6f 70 69 63 73 5b 30 5d 3b 69 66 28 22 e.topics[0];if(" 000145e0: 73 74 72 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 string"!=typeof 000145f0: 74 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f t)throw new Erro 00014600: 72 28 22 69 6e 76 61 6c 69 64 20 74 6f 70 69 63 r("invalid topic 00014610: 22 29 3b 63 6f 6e 73 74 20 6e 3d 74 68 69 73 2e ");const n=this. 00014620: 69 6e 74 65 72 66 61 63 65 2e 67 65 74 45 76 65 interface.getEve 00014630: 6e 74 28 74 29 3b 72 65 74 75 72 6e 20 74 68 69 nt(t);return thi 00014640: 73 2e 5f 6e 6f 72 6d 61 6c 69 7a 65 52 75 6e 6e s._normalizeRunn 00014650: 69 6e 67 45 76 65 6e 74 28 6e 65 77 20 4e 72 28 ingEvent(new Nr( 00014660: 74 68 69 73 2e 61 64 64 72 65 73 73 2c 74 68 69 this.address,thi 00014670: 73 2e 69 6e 74 65 72 66 61 63 65 2c 6e 2c 65 2e s.interface,n,e. 00014680: 74 6f 70 69 63 73 29 29 7d 63 61 74 63 68 28 65 topics))}catch(e 00014690: 29 7b 7d 63 6f 6e 73 74 20 74 3d 7b 61 64 64 72 ){}const t={addr 000146a0: 65 73 73 3a 74 68 69 73 2e 61 64 64 72 65 73 73 ess:this.address 000146b0: 2c 74 6f 70 69 63 73 3a 65 2e 74 6f 70 69 63 73 ,topics:e.topics 000146c0: 7d 3b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 6e };return this._n 000146d0: 6f 72 6d 61 6c 69 7a 65 52 75 6e 6e 69 6e 67 45 ormalizeRunningE 000146e0: 76 65 6e 74 28 6e 65 77 20 4f 72 28 49 72 28 74 vent(new Or(Ir(t 000146f0: 29 2c 74 29 29 7d 72 65 74 75 72 6e 20 74 68 69 ),t))}return thi 00014700: 73 2e 5f 6e 6f 72 6d 61 6c 69 7a 65 52 75 6e 6e s._normalizeRunn 00014710: 69 6e 67 45 76 65 6e 74 28 6e 65 77 20 50 72 28 ingEvent(new Pr( 00014720: 74 68 69 73 2e 61 64 64 72 65 73 73 2c 74 68 69 this.address,thi 00014730: 73 2e 69 6e 74 65 72 66 61 63 65 29 29 7d 5f 63 s.interface))}_c 00014740: 68 65 63 6b 52 75 6e 6e 69 6e 67 45 76 65 6e 74 heckRunningEvent 00014750: 73 28 65 29 7b 69 66 28 30 3d 3d 3d 65 2e 6c 69 s(e){if(0===e.li 00014760: 73 74 65 6e 65 72 43 6f 75 6e 74 28 29 29 7b 64 stenerCount()){d 00014770: 65 6c 65 74 65 20 74 68 69 73 2e 5f 72 75 6e 6e elete this._runn 00014780: 69 6e 67 45 76 65 6e 74 73 5b 65 2e 74 61 67 5d ingEvents[e.tag] 00014790: 3b 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 5f 77 ;const t=this._w 000147a0: 72 61 70 70 65 64 45 6d 69 74 73 5b 65 2e 74 61 rappedEmits[e.ta 000147b0: 67 5d 3b 74 26 26 65 2e 66 69 6c 74 65 72 26 26 g];t&&e.filter&& 000147c0: 28 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 6f (this.provider.o 000147d0: 66 66 28 65 2e 66 69 6c 74 65 72 2c 74 29 2c 64 ff(e.filter,t),d 000147e0: 65 6c 65 74 65 20 74 68 69 73 2e 5f 77 72 61 70 elete this._wrap 000147f0: 70 65 64 45 6d 69 74 73 5b 65 2e 74 61 67 5d 29 pedEmits[e.tag]) 00014800: 7d 7d 5f 77 72 61 70 45 76 65 6e 74 28 65 2c 74 }}_wrapEvent(e,t 00014810: 2c 6e 29 7b 63 6f 6e 73 74 20 72 3d 63 65 28 74 ,n){const r=ce(t 00014820: 29 3b 72 65 74 75 72 6e 20 72 2e 72 65 6d 6f 76 );return r.remov 00014830: 65 4c 69 73 74 65 6e 65 72 3d 28 29 3d 3e 7b 6e eListener=()=>{n 00014840: 26 26 28 65 2e 72 65 6d 6f 76 65 4c 69 73 74 65 &&(e.removeListe 00014850: 6e 65 72 28 6e 29 2c 74 68 69 73 2e 5f 63 68 65 ner(n),this._che 00014860: 63 6b 52 75 6e 6e 69 6e 67 45 76 65 6e 74 73 28 ckRunningEvents( 00014870: 65 29 29 7d 2c 72 2e 67 65 74 42 6c 6f 63 6b 3d e))},r.getBlock= 00014880: 28 29 3d 3e 74 68 69 73 2e 70 72 6f 76 69 64 65 ()=>this.provide 00014890: 72 2e 67 65 74 42 6c 6f 63 6b 28 74 2e 62 6c 6f r.getBlock(t.blo 000148a0: 63 6b 48 61 73 68 29 2c 72 2e 67 65 74 54 72 61 ckHash),r.getTra 000148b0: 6e 73 61 63 74 69 6f 6e 3d 28 29 3d 3e 74 68 69 nsaction=()=>thi 000148c0: 73 2e 70 72 6f 76 69 64 65 72 2e 67 65 74 54 72 s.provider.getTr 000148d0: 61 6e 73 61 63 74 69 6f 6e 28 74 2e 74 72 61 6e ansaction(t.tran 000148e0: 73 61 63 74 69 6f 6e 48 61 73 68 29 2c 72 2e 67 sactionHash),r.g 000148f0: 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 etTransactionRec 00014900: 65 69 70 74 3d 28 29 3d 3e 74 68 69 73 2e 70 72 eipt=()=>this.pr 00014910: 6f 76 69 64 65 72 2e 67 65 74 54 72 61 6e 73 61 ovider.getTransa 00014920: 63 74 69 6f 6e 52 65 63 65 69 70 74 28 74 2e 74 ctionReceipt(t.t 00014930: 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 68 29 2c ransactionHash), 00014940: 65 2e 70 72 65 70 61 72 65 45 76 65 6e 74 28 72 e.prepareEvent(r 00014950: 29 2c 72 7d 5f 61 64 64 45 76 65 6e 74 4c 69 73 ),r}_addEventLis 00014960: 74 65 6e 65 72 28 65 2c 74 2c 6e 29 7b 69 66 28 tener(e,t,n){if( 00014970: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 7c 7c 45 this.provider||E 00014980: 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 65 76 r.throwError("ev 00014990: 65 6e 74 73 20 72 65 71 75 69 72 65 20 61 20 70 ents require a p 000149a0: 72 6f 76 69 64 65 72 20 6f 72 20 61 20 73 69 67 rovider or a sig 000149b0: 6e 65 72 20 77 69 74 68 20 61 20 70 72 6f 76 69 ner with a provi 000149c0: 64 65 72 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e der",y.errors.UN 000149d0: 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 41 54 SUPPORTED_OPERAT 000149e0: 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a 22 ION,{operation:" 000149f0: 6f 6e 63 65 22 7d 29 2c 65 2e 61 64 64 4c 69 73 once"}),e.addLis 00014a00: 74 65 6e 65 72 28 74 2c 6e 29 2c 74 68 69 73 2e tener(t,n),this. 00014a10: 5f 72 75 6e 6e 69 6e 67 45 76 65 6e 74 73 5b 65 _runningEvents[e 00014a20: 2e 74 61 67 5d 3d 65 2c 21 74 68 69 73 2e 5f 77 .tag]=e,!this._w 00014a30: 72 61 70 70 65 64 45 6d 69 74 73 5b 65 2e 74 61 rappedEmits[e.ta 00014a40: 67 5d 29 7b 63 6f 6e 73 74 20 6e 3d 6e 3d 3e 7b g]){const n=n=>{ 00014a50: 6c 65 74 20 72 3d 74 68 69 73 2e 5f 77 72 61 70 let r=this._wrap 00014a60: 45 76 65 6e 74 28 65 2c 6e 2c 74 29 3b 69 66 28 Event(e,n,t);if( 00014a70: 6e 75 6c 6c 3d 3d 72 2e 64 65 63 6f 64 65 45 72 null==r.decodeEr 00014a80: 72 6f 72 29 74 72 79 7b 63 6f 6e 73 74 20 74 3d ror)try{const t= 00014a90: 65 2e 67 65 74 45 6d 69 74 28 72 29 3b 74 68 69 e.getEmit(r);thi 00014aa0: 73 2e 65 6d 69 74 28 65 2e 66 69 6c 74 65 72 2c s.emit(e.filter, 00014ab0: 2e 2e 2e 74 29 7d 63 61 74 63 68 28 65 29 7b 72 ...t)}catch(e){r 00014ac0: 2e 64 65 63 6f 64 65 45 72 72 6f 72 3d 65 2e 65 .decodeError=e.e 00014ad0: 72 72 6f 72 7d 6e 75 6c 6c 21 3d 65 2e 66 69 6c rror}null!=e.fil 00014ae0: 74 65 72 26 26 74 68 69 73 2e 65 6d 69 74 28 22 ter&&this.emit(" 00014af0: 65 76 65 6e 74 22 2c 72 29 2c 6e 75 6c 6c 21 3d event",r),null!= 00014b00: 72 2e 64 65 63 6f 64 65 45 72 72 6f 72 26 26 74 r.decodeError&&t 00014b10: 68 69 73 2e 65 6d 69 74 28 22 65 72 72 6f 72 22 his.emit("error" 00014b20: 2c 72 2e 64 65 63 6f 64 65 45 72 72 6f 72 2c 72 ,r.decodeError,r 00014b30: 29 7d 3b 74 68 69 73 2e 5f 77 72 61 70 70 65 64 )};this._wrapped 00014b40: 45 6d 69 74 73 5b 65 2e 74 61 67 5d 3d 6e 2c 6e Emits[e.tag]=n,n 00014b50: 75 6c 6c 21 3d 65 2e 66 69 6c 74 65 72 26 26 74 ull!=e.filter&&t 00014b60: 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 6f 6e 28 his.provider.on( 00014b70: 65 2e 66 69 6c 74 65 72 2c 6e 29 7d 7d 71 75 65 e.filter,n)}}que 00014b80: 72 79 46 69 6c 74 65 72 28 65 2c 74 2c 6e 29 7b ryFilter(e,t,n){ 00014b90: 63 6f 6e 73 74 20 72 3d 74 68 69 73 2e 5f 67 65 const r=this._ge 00014ba0: 74 52 75 6e 6e 69 6e 67 45 76 65 6e 74 28 65 29 tRunningEvent(e) 00014bb0: 2c 6f 3d 69 65 28 72 2e 66 69 6c 74 65 72 29 3b ,o=ie(r.filter); 00014bc0: 72 65 74 75 72 6e 22 73 74 72 69 6e 67 22 3d 3d return"string"== 00014bd0: 74 79 70 65 6f 66 20 74 26 26 49 28 74 2c 33 32 typeof t&&I(t,32 00014be0: 29 3f 28 6e 75 6c 6c 21 3d 6e 26 26 45 72 2e 74 )?(null!=n&&Er.t 00014bf0: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00014c00: 72 28 22 63 61 6e 6e 6f 74 20 73 70 65 63 69 66 r("cannot specif 00014c10: 79 20 74 6f 42 6c 6f 63 6b 20 77 69 74 68 20 62 y toBlock with b 00014c20: 6c 6f 63 6b 68 61 73 68 22 2c 22 74 6f 42 6c 6f lockhash","toBlo 00014c30: 63 6b 22 2c 6e 29 2c 6f 2e 62 6c 6f 63 6b 48 61 ck",n),o.blockHa 00014c40: 73 68 3d 74 29 3a 28 6f 2e 66 72 6f 6d 42 6c 6f sh=t):(o.fromBlo 00014c50: 63 6b 3d 6e 75 6c 6c 21 3d 74 3f 74 3a 30 2c 6f ck=null!=t?t:0,o 00014c60: 2e 74 6f 42 6c 6f 63 6b 3d 6e 75 6c 6c 21 3d 6e .toBlock=null!=n 00014c70: 3f 6e 3a 22 6c 61 74 65 73 74 22 29 2c 74 68 69 ?n:"latest"),thi 00014c80: 73 2e 70 72 6f 76 69 64 65 72 2e 67 65 74 4c 6f s.provider.getLo 00014c90: 67 73 28 6f 29 2e 74 68 65 6e 28 28 65 3d 3e 65 gs(o).then((e=>e 00014ca0: 2e 6d 61 70 28 28 65 3d 3e 74 68 69 73 2e 5f 77 .map((e=>this._w 00014cb0: 72 61 70 45 76 65 6e 74 28 72 2c 65 2c 6e 75 6c rapEvent(r,e,nul 00014cc0: 6c 29 29 29 29 29 7d 6f 6e 28 65 2c 74 29 7b 72 l)))))}on(e,t){r 00014cd0: 65 74 75 72 6e 20 74 68 69 73 2e 5f 61 64 64 45 eturn this._addE 00014ce0: 76 65 6e 74 4c 69 73 74 65 6e 65 72 28 74 68 69 ventListener(thi 00014cf0: 73 2e 5f 67 65 74 52 75 6e 6e 69 6e 67 45 76 65 s._getRunningEve 00014d00: 6e 74 28 65 29 2c 74 2c 21 31 29 2c 74 68 69 73 nt(e),t,!1),this 00014d10: 7d 6f 6e 63 65 28 65 2c 74 29 7b 72 65 74 75 72 }once(e,t){retur 00014d20: 6e 20 74 68 69 73 2e 5f 61 64 64 45 76 65 6e 74 n this._addEvent 00014d30: 4c 69 73 74 65 6e 65 72 28 74 68 69 73 2e 5f 67 Listener(this._g 00014d40: 65 74 52 75 6e 6e 69 6e 67 45 76 65 6e 74 28 65 etRunningEvent(e 00014d50: 29 2c 74 2c 21 30 29 2c 74 68 69 73 7d 65 6d 69 ),t,!0),this}emi 00014d60: 74 28 65 2c 2e 2e 2e 74 29 7b 69 66 28 21 74 68 t(e,...t){if(!th 00014d70: 69 73 2e 70 72 6f 76 69 64 65 72 29 72 65 74 75 is.provider)retu 00014d80: 72 6e 21 31 3b 63 6f 6e 73 74 20 6e 3d 74 68 69 rn!1;const n=thi 00014d90: 73 2e 5f 67 65 74 52 75 6e 6e 69 6e 67 45 76 65 s._getRunningEve 00014da0: 6e 74 28 65 29 2c 72 3d 6e 2e 72 75 6e 28 74 29 nt(e),r=n.run(t) 00014db0: 3e 30 3b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f >0;return this._ 00014dc0: 63 68 65 63 6b 52 75 6e 6e 69 6e 67 45 76 65 6e checkRunningEven 00014dd0: 74 73 28 6e 29 2c 72 7d 6c 69 73 74 65 6e 65 72 ts(n),r}listener 00014de0: 43 6f 75 6e 74 28 65 29 7b 72 65 74 75 72 6e 20 Count(e){return 00014df0: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 3f 6e 75 this.provider?nu 00014e00: 6c 6c 3d 3d 65 3f 4f 62 6a 65 63 74 2e 6b 65 79 ll==e?Object.key 00014e10: 73 28 74 68 69 73 2e 5f 72 75 6e 6e 69 6e 67 45 s(this._runningE 00014e20: 76 65 6e 74 73 29 2e 72 65 64 75 63 65 28 28 28 vents).reduce((( 00014e30: 65 2c 74 29 3d 3e 65 2b 74 68 69 73 2e 5f 72 75 e,t)=>e+this._ru 00014e40: 6e 6e 69 6e 67 45 76 65 6e 74 73 5b 74 5d 2e 6c nningEvents[t].l 00014e50: 69 73 74 65 6e 65 72 43 6f 75 6e 74 28 29 29 2c istenerCount()), 00014e60: 30 29 3a 74 68 69 73 2e 5f 67 65 74 52 75 6e 6e 0):this._getRunn 00014e70: 69 6e 67 45 76 65 6e 74 28 65 29 2e 6c 69 73 74 ingEvent(e).list 00014e80: 65 6e 65 72 43 6f 75 6e 74 28 29 3a 30 7d 6c 69 enerCount():0}li 00014e90: 73 74 65 6e 65 72 73 28 65 29 7b 69 66 28 21 74 steners(e){if(!t 00014ea0: 68 69 73 2e 70 72 6f 76 69 64 65 72 29 72 65 74 his.provider)ret 00014eb0: 75 72 6e 5b 5d 3b 69 66 28 6e 75 6c 6c 3d 3d 65 urn[];if(null==e 00014ec0: 29 7b 63 6f 6e 73 74 20 65 3d 5b 5d 3b 66 6f 72 ){const e=[];for 00014ed0: 28 6c 65 74 20 74 20 69 6e 20 74 68 69 73 2e 5f (let t in this._ 00014ee0: 72 75 6e 6e 69 6e 67 45 76 65 6e 74 73 29 74 68 runningEvents)th 00014ef0: 69 73 2e 5f 72 75 6e 6e 69 6e 67 45 76 65 6e 74 is._runningEvent 00014f00: 73 5b 74 5d 2e 6c 69 73 74 65 6e 65 72 73 28 29 s[t].listeners() 00014f10: 2e 66 6f 72 45 61 63 68 28 28 74 3d 3e 7b 65 2e .forEach((t=>{e. 00014f20: 70 75 73 68 28 74 29 7d 29 29 3b 72 65 74 75 72 push(t)}));retur 00014f30: 6e 20 65 7d 72 65 74 75 72 6e 20 74 68 69 73 2e n e}return this. 00014f40: 5f 67 65 74 52 75 6e 6e 69 6e 67 45 76 65 6e 74 _getRunningEvent 00014f50: 28 65 29 2e 6c 69 73 74 65 6e 65 72 73 28 29 7d (e).listeners()} 00014f60: 72 65 6d 6f 76 65 41 6c 6c 4c 69 73 74 65 6e 65 removeAllListene 00014f70: 72 73 28 65 29 7b 69 66 28 21 74 68 69 73 2e 70 rs(e){if(!this.p 00014f80: 72 6f 76 69 64 65 72 29 72 65 74 75 72 6e 20 74 rovider)return t 00014f90: 68 69 73 3b 69 66 28 6e 75 6c 6c 3d 3d 65 29 7b his;if(null==e){ 00014fa0: 66 6f 72 28 63 6f 6e 73 74 20 65 20 69 6e 20 74 for(const e in t 00014fb0: 68 69 73 2e 5f 72 75 6e 6e 69 6e 67 45 76 65 6e his._runningEven 00014fc0: 74 73 29 7b 63 6f 6e 73 74 20 74 3d 74 68 69 73 ts){const t=this 00014fd0: 2e 5f 72 75 6e 6e 69 6e 67 45 76 65 6e 74 73 5b ._runningEvents[ 00014fe0: 65 5d 3b 74 2e 72 65 6d 6f 76 65 41 6c 6c 4c 69 e];t.removeAllLi 00014ff0: 73 74 65 6e 65 72 73 28 29 2c 74 68 69 73 2e 5f steners(),this._ 00015000: 63 68 65 63 6b 52 75 6e 6e 69 6e 67 45 76 65 6e checkRunningEven 00015010: 74 73 28 74 29 7d 72 65 74 75 72 6e 20 74 68 69 ts(t)}return thi 00015020: 73 7d 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 5f s}const t=this._ 00015030: 67 65 74 52 75 6e 6e 69 6e 67 45 76 65 6e 74 28 getRunningEvent( 00015040: 65 29 3b 72 65 74 75 72 6e 20 74 2e 72 65 6d 6f e);return t.remo 00015050: 76 65 41 6c 6c 4c 69 73 74 65 6e 65 72 73 28 29 veAllListeners() 00015060: 2c 74 68 69 73 2e 5f 63 68 65 63 6b 52 75 6e 6e ,this._checkRunn 00015070: 69 6e 67 45 76 65 6e 74 73 28 74 29 2c 74 68 69 ingEvents(t),thi 00015080: 73 7d 6f 66 66 28 65 2c 74 29 7b 69 66 28 21 74 s}off(e,t){if(!t 00015090: 68 69 73 2e 70 72 6f 76 69 64 65 72 29 72 65 74 his.provider)ret 000150a0: 75 72 6e 20 74 68 69 73 3b 63 6f 6e 73 74 20 6e urn this;const n 000150b0: 3d 74 68 69 73 2e 5f 67 65 74 52 75 6e 6e 69 6e =this._getRunnin 000150c0: 67 45 76 65 6e 74 28 65 29 3b 72 65 74 75 72 6e gEvent(e);return 000150d0: 20 6e 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 n.removeListene 000150e0: 72 28 74 29 2c 74 68 69 73 2e 5f 63 68 65 63 6b r(t),this._check 000150f0: 52 75 6e 6e 69 6e 67 45 76 65 6e 74 73 28 6e 29 RunningEvents(n) 00015100: 2c 74 68 69 73 7d 72 65 6d 6f 76 65 4c 69 73 74 ,this}removeList 00015110: 65 6e 65 72 28 65 2c 74 29 7b 72 65 74 75 72 6e ener(e,t){return 00015120: 20 74 68 69 73 2e 6f 66 66 28 65 2c 74 29 7d 7d this.off(e,t)}} 00015130: 63 6c 61 73 73 20 44 72 20 65 78 74 65 6e 64 73 class Dr extends 00015140: 20 4d 72 7b 7d 63 6c 61 73 73 20 4c 72 7b 63 6f Mr{}class Lr{co 00015150: 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 2c 6e 29 nstructor(e,t,n) 00015160: 7b 6c 65 74 20 72 3d 6e 75 6c 6c 3b 72 3d 22 73 {let r=null;r="s 00015170: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 74 tring"==typeof t 00015180: 3f 74 3a 78 28 74 29 3f 52 28 74 29 3a 74 26 26 ?t:x(t)?R(t):t&& 00015190: 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 "string"==typeof 000151a0: 20 74 2e 6f 62 6a 65 63 74 3f 74 2e 6f 62 6a 65 t.object?t.obje 000151b0: 63 74 3a 22 21 22 2c 22 30 78 22 21 3d 3d 72 2e ct:"!","0x"!==r. 000151c0: 73 75 62 73 74 72 69 6e 67 28 30 2c 32 29 26 26 substring(0,2)&& 000151d0: 28 72 3d 22 30 78 22 2b 72 29 2c 28 21 49 28 72 (r="0x"+r),(!I(r 000151e0: 29 7c 7c 72 2e 6c 65 6e 67 74 68 25 32 29 26 26 )||r.length%2)&& 000151f0: 45 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Er.throwArgument 00015200: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 62 Error("invalid b 00015210: 79 74 65 63 6f 64 65 22 2c 22 62 79 74 65 63 6f ytecode","byteco 00015220: 64 65 22 2c 74 29 2c 6e 26 26 21 64 6e 2e 69 73 de",t),n&&!dn.is 00015230: 53 69 67 6e 65 72 28 6e 29 26 26 45 72 2e 74 68 Signer(n)&&Er.th 00015240: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 00015250: 28 22 69 6e 76 61 6c 69 64 20 73 69 67 6e 65 72 ("invalid signer 00015260: 22 2c 22 73 69 67 6e 65 72 22 2c 6e 29 2c 74 65 ","signer",n),te 00015270: 28 74 68 69 73 2c 22 62 79 74 65 63 6f 64 65 22 (this,"bytecode" 00015280: 2c 72 29 2c 74 65 28 74 68 69 73 2c 22 69 6e 74 ,r),te(this,"int 00015290: 65 72 66 61 63 65 22 2c 6e 65 28 6e 65 77 2e 74 erface",ne(new.t 000152a0: 61 72 67 65 74 2c 22 67 65 74 49 6e 74 65 72 66 arget,"getInterf 000152b0: 61 63 65 22 29 28 65 29 29 2c 74 65 28 74 68 69 ace")(e)),te(thi 000152c0: 73 2c 22 73 69 67 6e 65 72 22 2c 6e 7c 7c 6e 75 s,"signer",n||nu 000152d0: 6c 6c 29 7d 67 65 74 44 65 70 6c 6f 79 54 72 61 ll)}getDeployTra 000152e0: 6e 73 61 63 74 69 6f 6e 28 2e 2e 2e 65 29 7b 6c nsaction(...e){l 000152f0: 65 74 20 74 3d 7b 7d 3b 69 66 28 65 2e 6c 65 6e et t={};if(e.len 00015300: 67 74 68 3d 3d 3d 74 68 69 73 2e 69 6e 74 65 72 gth===this.inter 00015310: 66 61 63 65 2e 64 65 70 6c 6f 79 2e 69 6e 70 75 face.deploy.inpu 00015320: 74 73 2e 6c 65 6e 67 74 68 2b 31 26 26 22 6f 62 ts.length+1&&"ob 00015330: 6a 65 63 74 22 3d 3d 74 79 70 65 6f 66 20 65 5b ject"==typeof e[ 00015340: 65 2e 6c 65 6e 67 74 68 2d 31 5d 29 7b 74 3d 69 e.length-1]){t=i 00015350: 65 28 65 2e 70 6f 70 28 29 29 3b 66 6f 72 28 63 e(e.pop());for(c 00015360: 6f 6e 73 74 20 65 20 69 6e 20 74 29 69 66 28 21 onst e in t)if(! 00015370: 5f 72 5b 65 5d 29 74 68 72 6f 77 20 6e 65 77 20 _r[e])throw new 00015380: 45 72 72 6f 72 28 22 75 6e 6b 6e 6f 77 6e 20 74 Error("unknown t 00015390: 72 61 6e 73 61 63 74 69 6f 6e 20 6f 76 65 72 72 ransaction overr 000153a0: 69 64 65 20 22 2b 65 29 7d 69 66 28 5b 22 64 61 ide "+e)}if(["da 000153b0: 74 61 22 2c 22 66 72 6f 6d 22 2c 22 74 6f 22 5d ta","from","to"] 000153c0: 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 6e 75 .forEach((e=>{nu 000153d0: 6c 6c 21 3d 74 5b 65 5d 26 26 45 72 2e 74 68 72 ll!=t[e]&&Er.thr 000153e0: 6f 77 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 owError("cannot 000153f0: 6f 76 65 72 72 69 64 65 20 22 2b 65 2c 79 2e 65 override "+e,y.e 00015400: 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 rrors.UNSUPPORTE 00015410: 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 D_OPERATION,{ope 00015420: 72 61 74 69 6f 6e 3a 65 7d 29 7d 29 29 2c 74 2e ration:e})})),t. 00015430: 76 61 6c 75 65 29 7b 59 2e 66 72 6f 6d 28 74 2e value){Y.from(t. 00015440: 76 61 6c 75 65 29 2e 69 73 5a 65 72 6f 28 29 7c value).isZero()| 00015450: 7c 74 68 69 73 2e 69 6e 74 65 72 66 61 63 65 2e |this.interface. 00015460: 64 65 70 6c 6f 79 2e 70 61 79 61 62 6c 65 7c 7c deploy.payable|| 00015470: 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 6e Er.throwError("n 00015480: 6f 6e 2d 70 61 79 61 62 6c 65 20 63 6f 6e 73 74 on-payable const 00015490: 72 75 63 74 6f 72 20 63 61 6e 6e 6f 74 20 6f 76 ructor cannot ov 000154a0: 65 72 72 69 64 65 20 76 61 6c 75 65 22 2c 79 2e erride value",y. 000154b0: 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 errors.UNSUPPORT 000154c0: 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 ED_OPERATION,{op 000154d0: 65 72 61 74 69 6f 6e 3a 22 6f 76 65 72 72 69 64 eration:"overrid 000154e0: 65 73 2e 76 61 6c 75 65 22 2c 76 61 6c 75 65 3a es.value",value: 000154f0: 74 2e 76 61 6c 75 65 7d 29 7d 72 65 74 75 72 6e t.value})}return 00015500: 20 45 72 2e 63 68 65 63 6b 41 72 67 75 6d 65 6e Er.checkArgumen 00015510: 74 43 6f 75 6e 74 28 65 2e 6c 65 6e 67 74 68 2c tCount(e.length, 00015520: 74 68 69 73 2e 69 6e 74 65 72 66 61 63 65 2e 64 this.interface.d 00015530: 65 70 6c 6f 79 2e 69 6e 70 75 74 73 2e 6c 65 6e eploy.inputs.len 00015540: 67 74 68 2c 22 20 69 6e 20 43 6f 6e 74 72 61 63 gth," in Contrac 00015550: 74 20 63 6f 6e 73 74 72 75 63 74 6f 72 22 29 2c t constructor"), 00015560: 74 2e 64 61 74 61 3d 52 28 43 28 5b 74 68 69 73 t.data=R(C([this 00015570: 2e 62 79 74 65 63 6f 64 65 2c 74 68 69 73 2e 69 .bytecode,this.i 00015580: 6e 74 65 72 66 61 63 65 2e 65 6e 63 6f 64 65 44 nterface.encodeD 00015590: 65 70 6c 6f 79 28 65 29 5d 29 29 2c 74 7d 64 65 eploy(e)])),t}de 000155a0: 70 6c 6f 79 28 2e 2e 2e 65 29 7b 72 65 74 75 72 ploy(...e){retur 000155b0: 6e 20 53 72 28 74 68 69 73 2c 76 6f 69 64 20 30 n Sr(this,void 0 000155c0: 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f ,void 0,(functio 000155d0: 6e 2a 28 29 7b 6c 65 74 20 74 3d 7b 7d 3b 65 2e n*(){let t={};e. 000155e0: 6c 65 6e 67 74 68 3d 3d 3d 74 68 69 73 2e 69 6e length===this.in 000155f0: 74 65 72 66 61 63 65 2e 64 65 70 6c 6f 79 2e 69 terface.deploy.i 00015600: 6e 70 75 74 73 2e 6c 65 6e 67 74 68 2b 31 26 26 nputs.length+1&& 00015610: 28 74 3d 65 2e 70 6f 70 28 29 29 2c 45 72 2e 63 (t=e.pop()),Er.c 00015620: 68 65 63 6b 41 72 67 75 6d 65 6e 74 43 6f 75 6e heckArgumentCoun 00015630: 74 28 65 2e 6c 65 6e 67 74 68 2c 74 68 69 73 2e t(e.length,this. 00015640: 69 6e 74 65 72 66 61 63 65 2e 64 65 70 6c 6f 79 interface.deploy 00015650: 2e 69 6e 70 75 74 73 2e 6c 65 6e 67 74 68 2c 22 .inputs.length," 00015660: 20 69 6e 20 43 6f 6e 74 72 61 63 74 20 63 6f 6e in Contract con 00015670: 73 74 72 75 63 74 6f 72 22 29 3b 63 6f 6e 73 74 structor");const 00015680: 20 6e 3d 79 69 65 6c 64 20 78 72 28 74 68 69 73 n=yield xr(this 00015690: 2e 73 69 67 6e 65 72 2c 65 2c 74 68 69 73 2e 69 .signer,e,this.i 000156a0: 6e 74 65 72 66 61 63 65 2e 64 65 70 6c 6f 79 2e nterface.deploy. 000156b0: 69 6e 70 75 74 73 29 3b 6e 2e 70 75 73 68 28 74 inputs);n.push(t 000156c0: 29 3b 63 6f 6e 73 74 20 72 3d 74 68 69 73 2e 67 );const r=this.g 000156d0: 65 74 44 65 70 6c 6f 79 54 72 61 6e 73 61 63 74 etDeployTransact 000156e0: 69 6f 6e 28 2e 2e 2e 6e 29 2c 6f 3d 79 69 65 6c ion(...n),o=yiel 000156f0: 64 20 74 68 69 73 2e 73 69 67 6e 65 72 2e 73 65 d this.signer.se 00015700: 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 28 72 29 ndTransaction(r) 00015710: 2c 69 3d 6e 65 28 74 68 69 73 2e 63 6f 6e 73 74 ,i=ne(this.const 00015720: 72 75 63 74 6f 72 2c 22 67 65 74 43 6f 6e 74 72 ructor,"getContr 00015730: 61 63 74 41 64 64 72 65 73 73 22 29 28 6f 29 2c actAddress")(o), 00015740: 61 3d 6e 65 28 74 68 69 73 2e 63 6f 6e 73 74 72 a=ne(this.constr 00015750: 75 63 74 6f 72 2c 22 67 65 74 43 6f 6e 74 72 61 uctor,"getContra 00015760: 63 74 22 29 28 69 2c 74 68 69 73 2e 69 6e 74 65 ct")(i,this.inte 00015770: 72 66 61 63 65 2c 74 68 69 73 2e 73 69 67 6e 65 rface,this.signe 00015780: 72 29 3b 72 65 74 75 72 6e 20 43 72 28 61 2c 6f r);return Cr(a,o 00015790: 29 2c 74 65 28 61 2c 22 64 65 70 6c 6f 79 54 72 ),te(a,"deployTr 000157a0: 61 6e 73 61 63 74 69 6f 6e 22 2c 6f 29 2c 61 7d ansaction",o),a} 000157b0: 29 29 7d 61 74 74 61 63 68 28 65 29 7b 72 65 74 ))}attach(e){ret 000157c0: 75 72 6e 20 74 68 69 73 2e 63 6f 6e 73 74 72 75 urn this.constru 000157d0: 63 74 6f 72 2e 67 65 74 43 6f 6e 74 72 61 63 74 ctor.getContract 000157e0: 28 65 2c 74 68 69 73 2e 69 6e 74 65 72 66 61 63 (e,this.interfac 000157f0: 65 2c 74 68 69 73 2e 73 69 67 6e 65 72 29 7d 63 e,this.signer)}c 00015800: 6f 6e 6e 65 63 74 28 65 29 7b 72 65 74 75 72 6e onnect(e){return 00015810: 20 6e 65 77 20 74 68 69 73 2e 63 6f 6e 73 74 72 new this.constr 00015820: 75 63 74 6f 72 28 74 68 69 73 2e 69 6e 74 65 72 uctor(this.inter 00015830: 66 61 63 65 2c 74 68 69 73 2e 62 79 74 65 63 6f face,this.byteco 00015840: 64 65 2c 65 29 7d 73 74 61 74 69 63 20 66 72 6f de,e)}static fro 00015850: 6d 53 6f 6c 69 64 69 74 79 28 65 2c 74 29 7b 6e mSolidity(e,t){n 00015860: 75 6c 6c 3d 3d 65 26 26 45 72 2e 74 68 72 6f 77 ull==e&&Er.throw 00015870: 45 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 20 63 Error("missing c 00015880: 6f 6d 70 69 6c 65 72 20 6f 75 74 70 75 74 22 2c ompiler output", 00015890: 79 2e 65 72 72 6f 72 73 2e 4d 49 53 53 49 4e 47 y.errors.MISSING 000158a0: 5f 41 52 47 55 4d 45 4e 54 2c 7b 61 72 67 75 6d _ARGUMENT,{argum 000158b0: 65 6e 74 3a 22 63 6f 6d 70 69 6c 65 72 4f 75 74 ent:"compilerOut 000158c0: 70 75 74 22 7d 29 2c 22 73 74 72 69 6e 67 22 3d put"}),"string"= 000158d0: 3d 74 79 70 65 6f 66 20 65 26 26 28 65 3d 4a 53 =typeof e&&(e=JS 000158e0: 4f 4e 2e 70 61 72 73 65 28 65 29 29 3b 63 6f 6e ON.parse(e));con 000158f0: 73 74 20 6e 3d 65 2e 61 62 69 3b 6c 65 74 20 72 st n=e.abi;let r 00015900: 3d 6e 75 6c 6c 3b 72 65 74 75 72 6e 20 65 2e 62 =null;return e.b 00015910: 79 74 65 63 6f 64 65 3f 72 3d 65 2e 62 79 74 65 ytecode?r=e.byte 00015920: 63 6f 64 65 3a 65 2e 65 76 6d 26 26 65 2e 65 76 code:e.evm&&e.ev 00015930: 6d 2e 62 79 74 65 63 6f 64 65 26 26 28 72 3d 65 m.bytecode&&(r=e 00015940: 2e 65 76 6d 2e 62 79 74 65 63 6f 64 65 29 2c 6e .evm.bytecode),n 00015950: 65 77 20 74 68 69 73 28 6e 2c 72 2c 74 29 7d 73 ew this(n,r,t)}s 00015960: 74 61 74 69 63 20 67 65 74 49 6e 74 65 72 66 61 tatic getInterfa 00015970: 63 65 28 65 29 7b 72 65 74 75 72 6e 20 44 72 2e ce(e){return Dr. 00015980: 67 65 74 49 6e 74 65 72 66 61 63 65 28 65 29 7d getInterface(e)} 00015990: 73 74 61 74 69 63 20 67 65 74 43 6f 6e 74 72 61 static getContra 000159a0: 63 74 41 64 64 72 65 73 73 28 65 29 7b 72 65 74 ctAddress(e){ret 000159b0: 75 72 6e 20 46 65 28 65 29 7d 73 74 61 74 69 63 urn Fe(e)}static 000159c0: 20 67 65 74 43 6f 6e 74 72 61 63 74 28 65 2c 74 getContract(e,t 000159d0: 2c 6e 29 7b 72 65 74 75 72 6e 20 6e 65 77 20 44 ,n){return new D 000159e0: 72 28 65 2c 74 2c 6e 29 7d 7d 63 6f 6e 73 74 20 r(e,t,n)}}const 000159f0: 46 72 3d 6e 65 77 20 79 28 47 29 2c 55 72 3d 7b Fr=new y(G),Ur={ 00015a00: 7d 2c 42 72 3d 59 2e 66 72 6f 6d 28 30 29 2c 6a },Br=Y.from(0),j 00015a10: 72 3d 59 2e 66 72 6f 6d 28 2d 31 29 3b 66 75 6e r=Y.from(-1);fun 00015a20: 63 74 69 6f 6e 20 7a 72 28 65 2c 74 2c 6e 2c 72 ction zr(e,t,n,r 00015a30: 29 7b 63 6f 6e 73 74 20 6f 3d 7b 66 61 75 6c 74 ){const o={fault 00015a40: 3a 74 2c 6f 70 65 72 61 74 69 6f 6e 3a 6e 7d 3b :t,operation:n}; 00015a50: 72 65 74 75 72 6e 20 76 6f 69 64 20 30 21 3d 3d return void 0!== 00015a60: 72 26 26 28 6f 2e 76 61 6c 75 65 3d 72 29 2c 46 r&&(o.value=r),F 00015a70: 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 65 2c 79 r.throwError(e,y 00015a80: 2e 65 72 72 6f 72 73 2e 4e 55 4d 45 52 49 43 5f .errors.NUMERIC_ 00015a90: 46 41 55 4c 54 2c 6f 29 7d 6c 65 74 20 47 72 3d FAULT,o)}let Gr= 00015aa0: 22 30 22 3b 66 6f 72 28 3b 47 72 2e 6c 65 6e 67 "0";for(;Gr.leng 00015ab0: 74 68 3c 32 35 36 3b 29 47 72 2b 3d 47 72 3b 66 th<256;)Gr+=Gr;f 00015ac0: 75 6e 63 74 69 6f 6e 20 48 72 28 65 29 7b 69 66 unction Hr(e){if 00015ad0: 28 22 6e 75 6d 62 65 72 22 21 3d 74 79 70 65 6f ("number"!=typeo 00015ae0: 66 20 65 29 74 72 79 7b 65 3d 59 2e 66 72 6f 6d f e)try{e=Y.from 00015af0: 28 65 29 2e 74 6f 4e 75 6d 62 65 72 28 29 7d 63 (e).toNumber()}c 00015b00: 61 74 63 68 28 65 29 7b 7d 72 65 74 75 72 6e 22 atch(e){}return" 00015b10: 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f 66 20 number"==typeof 00015b20: 65 26 26 65 3e 3d 30 26 26 65 3c 3d 32 35 36 26 e&&e>=0&&e<=256& 00015b30: 26 21 28 65 25 31 29 3f 22 31 22 2b 47 72 2e 73 &!(e%1)?"1"+Gr.s 00015b40: 75 62 73 74 72 69 6e 67 28 30 2c 65 29 3a 46 72 ubstring(0,e):Fr 00015b50: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00015b60: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 64 65 63 ror("invalid dec 00015b70: 69 6d 61 6c 20 73 69 7a 65 22 2c 22 64 65 63 69 imal size","deci 00015b80: 6d 61 6c 73 22 2c 65 29 7d 66 75 6e 63 74 69 6f mals",e)}functio 00015b90: 6e 20 56 72 28 65 2c 74 29 7b 6e 75 6c 6c 3d 3d n Vr(e,t){null== 00015ba0: 74 26 26 28 74 3d 30 29 3b 63 6f 6e 73 74 20 6e t&&(t=0);const n 00015bb0: 3d 48 72 28 74 29 2c 72 3d 28 65 3d 59 2e 66 72 =Hr(t),r=(e=Y.fr 00015bc0: 6f 6d 28 65 29 29 2e 6c 74 28 42 72 29 3b 72 26 om(e)).lt(Br);r& 00015bd0: 26 28 65 3d 65 2e 6d 75 6c 28 6a 72 29 29 3b 6c &(e=e.mul(jr));l 00015be0: 65 74 20 6f 3d 65 2e 6d 6f 64 28 6e 29 2e 74 6f et o=e.mod(n).to 00015bf0: 53 74 72 69 6e 67 28 29 3b 66 6f 72 28 3b 6f 2e String();for(;o. 00015c00: 6c 65 6e 67 74 68 3c 6e 2e 6c 65 6e 67 74 68 2d length<n.length- 00015c10: 31 3b 29 6f 3d 22 30 22 2b 6f 3b 6f 3d 6f 2e 6d 1;)o="0"+o;o=o.m 00015c20: 61 74 63 68 28 2f 5e 28 5b 30 2d 39 5d 2a 5b 31 atch(/^([0-9]*[1 00015c30: 2d 39 5d 7c 30 29 28 30 2a 29 2f 29 5b 31 5d 3b -9]|0)(0*)/)[1]; 00015c40: 63 6f 6e 73 74 20 69 3d 65 2e 64 69 76 28 6e 29 const i=e.div(n) 00015c50: 2e 74 6f 53 74 72 69 6e 67 28 29 3b 72 65 74 75 .toString();retu 00015c60: 72 6e 20 65 3d 31 3d 3d 3d 6e 2e 6c 65 6e 67 74 rn e=1===n.lengt 00015c70: 68 3f 69 3a 69 2b 22 2e 22 2b 6f 2c 72 26 26 28 h?i:i+"."+o,r&&( 00015c80: 65 3d 22 2d 22 2b 65 29 2c 65 7d 66 75 6e 63 74 e="-"+e),e}funct 00015c90: 69 6f 6e 20 71 72 28 65 2c 74 29 7b 6e 75 6c 6c ion qr(e,t){null 00015ca0: 3d 3d 74 26 26 28 74 3d 30 29 3b 63 6f 6e 73 74 ==t&&(t=0);const 00015cb0: 20 6e 3d 48 72 28 74 29 3b 22 73 74 72 69 6e 67 n=Hr(t);"string 00015cc0: 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 65 2e 6d "==typeof e&&e.m 00015cd0: 61 74 63 68 28 2f 5e 2d 3f 5b 30 2d 39 2e 5d 2b atch(/^-?[0-9.]+ 00015ce0: 24 2f 29 7c 7c 46 72 2e 74 68 72 6f 77 41 72 67 $/)||Fr.throwArg 00015cf0: 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 umentError("inva 00015d00: 6c 69 64 20 64 65 63 69 6d 61 6c 20 76 61 6c 75 lid decimal valu 00015d10: 65 22 2c 22 76 61 6c 75 65 22 2c 65 29 3b 63 6f e","value",e);co 00015d20: 6e 73 74 20 72 3d 22 2d 22 3d 3d 3d 65 2e 73 75 nst r="-"===e.su 00015d30: 62 73 74 72 69 6e 67 28 30 2c 31 29 3b 72 26 26 bstring(0,1);r&& 00015d40: 28 65 3d 65 2e 73 75 62 73 74 72 69 6e 67 28 31 (e=e.substring(1 00015d50: 29 29 2c 22 2e 22 3d 3d 3d 65 26 26 46 72 2e 74 )),"."===e&&Fr.t 00015d60: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00015d70: 72 28 22 6d 69 73 73 69 6e 67 20 76 61 6c 75 65 r("missing value 00015d80: 22 2c 22 76 61 6c 75 65 22 2c 65 29 3b 63 6f 6e ","value",e);con 00015d90: 73 74 20 6f 3d 65 2e 73 70 6c 69 74 28 22 2e 22 st o=e.split("." 00015da0: 29 3b 6f 2e 6c 65 6e 67 74 68 3e 32 26 26 46 72 );o.length>2&&Fr 00015db0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00015dc0: 72 6f 72 28 22 74 6f 6f 20 6d 61 6e 79 20 64 65 ror("too many de 00015dd0: 63 69 6d 61 6c 20 70 6f 69 6e 74 73 22 2c 22 76 cimal points","v 00015de0: 61 6c 75 65 22 2c 65 29 3b 6c 65 74 20 69 3d 6f alue",e);let i=o 00015df0: 5b 30 5d 2c 61 3d 6f 5b 31 5d 3b 66 6f 72 28 69 [0],a=o[1];for(i 00015e00: 7c 7c 28 69 3d 22 30 22 29 2c 61 7c 7c 28 61 3d ||(i="0"),a||(a= 00015e10: 22 30 22 29 3b 22 30 22 3d 3d 3d 61 5b 61 2e 6c "0");"0"===a[a.l 00015e20: 65 6e 67 74 68 2d 31 5d 3b 29 61 3d 61 2e 73 75 ength-1];)a=a.su 00015e30: 62 73 74 72 69 6e 67 28 30 2c 61 2e 6c 65 6e 67 bstring(0,a.leng 00015e40: 74 68 2d 31 29 3b 66 6f 72 28 61 2e 6c 65 6e 67 th-1);for(a.leng 00015e50: 74 68 3e 6e 2e 6c 65 6e 67 74 68 2d 31 26 26 7a th>n.length-1&&z 00015e60: 72 28 22 66 72 61 63 74 69 6f 6e 61 6c 20 63 6f r("fractional co 00015e70: 6d 70 6f 6e 65 6e 74 20 65 78 63 65 65 64 73 20 mponent exceeds 00015e80: 64 65 63 69 6d 61 6c 73 22 2c 22 75 6e 64 65 72 decimals","under 00015e90: 66 6c 6f 77 22 2c 22 70 61 72 73 65 46 69 78 65 flow","parseFixe 00015ea0: 64 22 29 2c 22 22 3d 3d 3d 61 26 26 28 61 3d 22 d"),""===a&&(a=" 00015eb0: 30 22 29 3b 61 2e 6c 65 6e 67 74 68 3c 6e 2e 6c 0");a.length<n.l 00015ec0: 65 6e 67 74 68 2d 31 3b 29 61 2b 3d 22 30 22 3b ength-1;)a+="0"; 00015ed0: 63 6f 6e 73 74 20 73 3d 59 2e 66 72 6f 6d 28 69 const s=Y.from(i 00015ee0: 29 2c 6c 3d 59 2e 66 72 6f 6d 28 61 29 3b 6c 65 ),l=Y.from(a);le 00015ef0: 74 20 63 3d 73 2e 6d 75 6c 28 6e 29 2e 61 64 64 t c=s.mul(n).add 00015f00: 28 6c 29 3b 72 65 74 75 72 6e 20 72 26 26 28 63 (l);return r&&(c 00015f10: 3d 63 2e 6d 75 6c 28 6a 72 29 29 2c 63 7d 63 6c =c.mul(jr)),c}cl 00015f20: 61 73 73 20 57 72 7b 63 6f 6e 73 74 72 75 63 74 ass Wr{construct 00015f30: 6f 72 28 65 2c 74 2c 6e 2c 72 29 7b 65 21 3d 3d or(e,t,n,r){e!== 00015f40: 55 72 26 26 46 72 2e 74 68 72 6f 77 45 72 72 6f Ur&&Fr.throwErro 00015f50: 72 28 22 63 61 6e 6e 6f 74 20 75 73 65 20 46 69 r("cannot use Fi 00015f60: 78 65 64 46 6f 72 6d 61 74 20 63 6f 6e 73 74 72 xedFormat constr 00015f70: 75 63 74 6f 72 3b 20 75 73 65 20 46 69 78 65 64 uctor; use Fixed 00015f80: 46 6f 72 6d 61 74 2e 66 72 6f 6d 22 2c 79 2e 65 Format.from",y.e 00015f90: 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 rrors.UNSUPPORTE 00015fa0: 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 D_OPERATION,{ope 00015fb0: 72 61 74 69 6f 6e 3a 22 6e 65 77 20 46 69 78 65 ration:"new Fixe 00015fc0: 64 46 6f 72 6d 61 74 22 7d 29 2c 74 68 69 73 2e dFormat"}),this. 00015fd0: 73 69 67 6e 65 64 3d 74 2c 74 68 69 73 2e 77 69 signed=t,this.wi 00015fe0: 64 74 68 3d 6e 2c 74 68 69 73 2e 64 65 63 69 6d dth=n,this.decim 00015ff0: 61 6c 73 3d 72 2c 74 68 69 73 2e 6e 61 6d 65 3d als=r,this.name= 00016000: 28 74 3f 22 22 3a 22 75 22 29 2b 22 66 69 78 65 (t?"":"u")+"fixe 00016010: 64 22 2b 53 74 72 69 6e 67 28 6e 29 2b 22 78 22 d"+String(n)+"x" 00016020: 2b 53 74 72 69 6e 67 28 72 29 2c 74 68 69 73 2e +String(r),this. 00016030: 5f 6d 75 6c 74 69 70 6c 69 65 72 3d 48 72 28 72 _multiplier=Hr(r 00016040: 29 2c 4f 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 ),Object.freeze( 00016050: 74 68 69 73 29 7d 73 74 61 74 69 63 20 66 72 6f this)}static fro 00016060: 6d 28 65 29 7b 69 66 28 65 20 69 6e 73 74 61 6e m(e){if(e instan 00016070: 63 65 6f 66 20 57 72 29 72 65 74 75 72 6e 20 65 ceof Wr)return e 00016080: 3b 22 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f ;"number"==typeo 00016090: 66 20 65 26 26 28 65 3d 60 66 69 78 65 64 31 32 f e&&(e=`fixed12 000160a0: 38 78 24 7b 65 7d 60 29 3b 6c 65 74 20 74 3d 21 8x${e}`);let t=! 000160b0: 30 2c 6e 3d 31 32 38 2c 72 3d 31 38 3b 69 66 28 0,n=128,r=18;if( 000160c0: 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 "string"==typeof 000160d0: 20 65 29 69 66 28 22 66 69 78 65 64 22 3d 3d 3d e)if("fixed"=== 000160e0: 65 29 3b 65 6c 73 65 20 69 66 28 22 75 66 69 78 e);else if("ufix 000160f0: 65 64 22 3d 3d 3d 65 29 74 3d 21 31 3b 65 6c 73 ed"===e)t=!1;els 00016100: 65 7b 63 6f 6e 73 74 20 6f 3d 65 2e 6d 61 74 63 e{const o=e.matc 00016110: 68 28 2f 5e 28 75 3f 29 66 69 78 65 64 28 5b 30 h(/^(u?)fixed([0 00016120: 2d 39 5d 2b 29 78 28 5b 30 2d 39 5d 2b 29 24 2f -9]+)x([0-9]+)$/ 00016130: 29 3b 6f 7c 7c 46 72 2e 74 68 72 6f 77 41 72 67 );o||Fr.throwArg 00016140: 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 umentError("inva 00016150: 6c 69 64 20 66 69 78 65 64 20 66 6f 72 6d 61 74 lid fixed format 00016160: 22 2c 22 66 6f 72 6d 61 74 22 2c 65 29 2c 74 3d ","format",e),t= 00016170: 22 75 22 21 3d 3d 6f 5b 31 5d 2c 6e 3d 70 61 72 "u"!==o[1],n=par 00016180: 73 65 49 6e 74 28 6f 5b 32 5d 29 2c 72 3d 70 61 seInt(o[2]),r=pa 00016190: 72 73 65 49 6e 74 28 6f 5b 33 5d 29 7d 65 6c 73 rseInt(o[3])}els 000161a0: 65 20 69 66 28 65 29 7b 63 6f 6e 73 74 20 6f 3d e if(e){const o= 000161b0: 28 74 2c 6e 2c 72 29 3d 3e 6e 75 6c 6c 3d 3d 65 (t,n,r)=>null==e 000161c0: 5b 74 5d 3f 72 3a 28 74 79 70 65 6f 66 20 65 5b [t]?r:(typeof e[ 000161d0: 74 5d 21 3d 3d 6e 26 26 46 72 2e 74 68 72 6f 77 t]!==n&&Fr.throw 000161e0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 000161f0: 6e 76 61 6c 69 64 20 66 69 78 65 64 20 66 6f 72 nvalid fixed for 00016200: 6d 61 74 20 28 22 2b 74 2b 22 20 6e 6f 74 20 22 mat ("+t+" not " 00016210: 2b 6e 2b 22 29 22 2c 22 66 6f 72 6d 61 74 2e 22 +n+")","format." 00016220: 2b 74 2c 65 5b 74 5d 29 2c 65 5b 74 5d 29 3b 74 +t,e[t]),e[t]);t 00016230: 3d 6f 28 22 73 69 67 6e 65 64 22 2c 22 62 6f 6f =o("signed","boo 00016240: 6c 65 61 6e 22 2c 74 29 2c 6e 3d 6f 28 22 77 69 lean",t),n=o("wi 00016250: 64 74 68 22 2c 22 6e 75 6d 62 65 72 22 2c 6e 29 dth","number",n) 00016260: 2c 72 3d 6f 28 22 64 65 63 69 6d 61 6c 73 22 2c ,r=o("decimals", 00016270: 22 6e 75 6d 62 65 72 22 2c 72 29 7d 72 65 74 75 "number",r)}retu 00016280: 72 6e 20 6e 25 38 26 26 46 72 2e 74 68 72 6f 77 rn n%8&&Fr.throw 00016290: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 000162a0: 6e 76 61 6c 69 64 20 66 69 78 65 64 20 66 6f 72 nvalid fixed for 000162b0: 6d 61 74 20 77 69 64 74 68 20 28 6e 6f 74 20 62 mat width (not b 000162c0: 79 74 65 20 61 6c 69 67 6e 65 64 29 22 2c 22 66 yte aligned)","f 000162d0: 6f 72 6d 61 74 2e 77 69 64 74 68 22 2c 6e 29 2c ormat.width",n), 000162e0: 72 3e 38 30 26 26 46 72 2e 74 68 72 6f 77 41 72 r>80&&Fr.throwAr 000162f0: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 00016300: 61 6c 69 64 20 66 69 78 65 64 20 66 6f 72 6d 61 alid fixed forma 00016310: 74 20 28 64 65 63 69 6d 61 6c 73 20 74 6f 6f 20 t (decimals too 00016320: 6c 61 72 67 65 29 22 2c 22 66 6f 72 6d 61 74 2e large)","format. 00016330: 64 65 63 69 6d 61 6c 73 22 2c 72 29 2c 6e 65 77 decimals",r),new 00016340: 20 57 72 28 55 72 2c 74 2c 6e 2c 72 29 7d 7d 63 Wr(Ur,t,n,r)}}c 00016350: 6c 61 73 73 20 4b 72 7b 63 6f 6e 73 74 72 75 63 lass Kr{construc 00016360: 74 6f 72 28 65 2c 74 2c 6e 2c 72 29 7b 65 21 3d tor(e,t,n,r){e!= 00016370: 3d 55 72 26 26 46 72 2e 74 68 72 6f 77 45 72 72 =Ur&&Fr.throwErr 00016380: 6f 72 28 22 63 61 6e 6e 6f 74 20 75 73 65 20 46 or("cannot use F 00016390: 69 78 65 64 4e 75 6d 62 65 72 20 63 6f 6e 73 74 ixedNumber const 000163a0: 72 75 63 74 6f 72 3b 20 75 73 65 20 46 69 78 65 ructor; use Fixe 000163b0: 64 4e 75 6d 62 65 72 2e 66 72 6f 6d 22 2c 79 2e dNumber.from",y. 000163c0: 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 errors.UNSUPPORT 000163d0: 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 ED_OPERATION,{op 000163e0: 65 72 61 74 69 6f 6e 3a 22 6e 65 77 20 46 69 78 eration:"new Fix 000163f0: 65 64 46 6f 72 6d 61 74 22 7d 29 2c 74 68 69 73 edFormat"}),this 00016400: 2e 66 6f 72 6d 61 74 3d 72 2c 74 68 69 73 2e 5f .format=r,this._ 00016410: 68 65 78 3d 74 2c 74 68 69 73 2e 5f 76 61 6c 75 hex=t,this._valu 00016420: 65 3d 6e 2c 74 68 69 73 2e 5f 69 73 46 69 78 65 e=n,this._isFixe 00016430: 64 4e 75 6d 62 65 72 3d 21 30 2c 4f 62 6a 65 63 dNumber=!0,Objec 00016440: 74 2e 66 72 65 65 7a 65 28 74 68 69 73 29 7d 5f t.freeze(this)}_ 00016450: 63 68 65 63 6b 46 6f 72 6d 61 74 28 65 29 7b 74 checkFormat(e){t 00016460: 68 69 73 2e 66 6f 72 6d 61 74 2e 6e 61 6d 65 21 his.format.name! 00016470: 3d 3d 65 2e 66 6f 72 6d 61 74 2e 6e 61 6d 65 26 ==e.format.name& 00016480: 26 46 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &Fr.throwArgumen 00016490: 74 45 72 72 6f 72 28 22 69 6e 63 6f 6d 70 61 74 tError("incompat 000164a0: 69 62 6c 65 20 66 6f 72 6d 61 74 3b 20 75 73 65 ible format; use 000164b0: 20 66 69 78 65 64 4e 75 6d 62 65 72 2e 74 6f 46 fixedNumber.toF 000164c0: 6f 72 6d 61 74 22 2c 22 6f 74 68 65 72 22 2c 65 ormat","other",e 000164d0: 29 7d 61 64 64 55 6e 73 61 66 65 28 65 29 7b 74 )}addUnsafe(e){t 000164e0: 68 69 73 2e 5f 63 68 65 63 6b 46 6f 72 6d 61 74 his._checkFormat 000164f0: 28 65 29 3b 63 6f 6e 73 74 20 74 3d 71 72 28 74 (e);const t=qr(t 00016500: 68 69 73 2e 5f 76 61 6c 75 65 2c 74 68 69 73 2e his._value,this. 00016510: 66 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 29 format.decimals) 00016520: 2c 6e 3d 71 72 28 65 2e 5f 76 61 6c 75 65 2c 65 ,n=qr(e._value,e 00016530: 2e 66 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 .format.decimals 00016540: 29 3b 72 65 74 75 72 6e 20 4b 72 2e 66 72 6f 6d );return Kr.from 00016550: 56 61 6c 75 65 28 74 2e 61 64 64 28 6e 29 2c 74 Value(t.add(n),t 00016560: 68 69 73 2e 66 6f 72 6d 61 74 2e 64 65 63 69 6d his.format.decim 00016570: 61 6c 73 2c 74 68 69 73 2e 66 6f 72 6d 61 74 29 als,this.format) 00016580: 7d 73 75 62 55 6e 73 61 66 65 28 65 29 7b 74 68 }subUnsafe(e){th 00016590: 69 73 2e 5f 63 68 65 63 6b 46 6f 72 6d 61 74 28 is._checkFormat( 000165a0: 65 29 3b 63 6f 6e 73 74 20 74 3d 71 72 28 74 68 e);const t=qr(th 000165b0: 69 73 2e 5f 76 61 6c 75 65 2c 74 68 69 73 2e 66 is._value,this.f 000165c0: 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 29 2c ormat.decimals), 000165d0: 6e 3d 71 72 28 65 2e 5f 76 61 6c 75 65 2c 65 2e n=qr(e._value,e. 000165e0: 66 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 29 format.decimals) 000165f0: 3b 72 65 74 75 72 6e 20 4b 72 2e 66 72 6f 6d 56 ;return Kr.fromV 00016600: 61 6c 75 65 28 74 2e 73 75 62 28 6e 29 2c 74 68 alue(t.sub(n),th 00016610: 69 73 2e 66 6f 72 6d 61 74 2e 64 65 63 69 6d 61 is.format.decima 00016620: 6c 73 2c 74 68 69 73 2e 66 6f 72 6d 61 74 29 7d ls,this.format)} 00016630: 6d 75 6c 55 6e 73 61 66 65 28 65 29 7b 74 68 69 mulUnsafe(e){thi 00016640: 73 2e 5f 63 68 65 63 6b 46 6f 72 6d 61 74 28 65 s._checkFormat(e 00016650: 29 3b 63 6f 6e 73 74 20 74 3d 71 72 28 74 68 69 );const t=qr(thi 00016660: 73 2e 5f 76 61 6c 75 65 2c 74 68 69 73 2e 66 6f s._value,this.fo 00016670: 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 29 2c 6e rmat.decimals),n 00016680: 3d 71 72 28 65 2e 5f 76 61 6c 75 65 2c 65 2e 66 =qr(e._value,e.f 00016690: 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 29 3b ormat.decimals); 000166a0: 72 65 74 75 72 6e 20 4b 72 2e 66 72 6f 6d 56 61 return Kr.fromVa 000166b0: 6c 75 65 28 74 2e 6d 75 6c 28 6e 29 2e 64 69 76 lue(t.mul(n).div 000166c0: 28 74 68 69 73 2e 66 6f 72 6d 61 74 2e 5f 6d 75 (this.format._mu 000166d0: 6c 74 69 70 6c 69 65 72 29 2c 74 68 69 73 2e 66 ltiplier),this.f 000166e0: 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 2c 74 ormat.decimals,t 000166f0: 68 69 73 2e 66 6f 72 6d 61 74 29 7d 64 69 76 55 his.format)}divU 00016700: 6e 73 61 66 65 28 65 29 7b 74 68 69 73 2e 5f 63 nsafe(e){this._c 00016710: 68 65 63 6b 46 6f 72 6d 61 74 28 65 29 3b 63 6f heckFormat(e);co 00016720: 6e 73 74 20 74 3d 71 72 28 74 68 69 73 2e 5f 76 nst t=qr(this._v 00016730: 61 6c 75 65 2c 74 68 69 73 2e 66 6f 72 6d 61 74 alue,this.format 00016740: 2e 64 65 63 69 6d 61 6c 73 29 2c 6e 3d 71 72 28 .decimals),n=qr( 00016750: 65 2e 5f 76 61 6c 75 65 2c 65 2e 66 6f 72 6d 61 e._value,e.forma 00016760: 74 2e 64 65 63 69 6d 61 6c 73 29 3b 72 65 74 75 t.decimals);retu 00016770: 72 6e 20 4b 72 2e 66 72 6f 6d 56 61 6c 75 65 28 rn Kr.fromValue( 00016780: 74 2e 6d 75 6c 28 74 68 69 73 2e 66 6f 72 6d 61 t.mul(this.forma 00016790: 74 2e 5f 6d 75 6c 74 69 70 6c 69 65 72 29 2e 64 t._multiplier).d 000167a0: 69 76 28 6e 29 2c 74 68 69 73 2e 66 6f 72 6d 61 iv(n),this.forma 000167b0: 74 2e 64 65 63 69 6d 61 6c 73 2c 74 68 69 73 2e t.decimals,this. 000167c0: 66 6f 72 6d 61 74 29 7d 66 6c 6f 6f 72 28 29 7b format)}floor(){ 000167d0: 63 6f 6e 73 74 20 65 3d 74 68 69 73 2e 74 6f 53 const e=this.toS 000167e0: 74 72 69 6e 67 28 29 2e 73 70 6c 69 74 28 22 2e tring().split(". 000167f0: 22 29 3b 31 3d 3d 3d 65 2e 6c 65 6e 67 74 68 26 ");1===e.length& 00016800: 26 65 2e 70 75 73 68 28 22 30 22 29 3b 6c 65 74 &e.push("0");let 00016810: 20 74 3d 4b 72 2e 66 72 6f 6d 28 65 5b 30 5d 2c t=Kr.from(e[0], 00016820: 74 68 69 73 2e 66 6f 72 6d 61 74 29 3b 63 6f 6e this.format);con 00016830: 73 74 20 6e 3d 21 65 5b 31 5d 2e 6d 61 74 63 68 st n=!e[1].match 00016840: 28 2f 5e 28 30 2a 29 24 2f 29 3b 72 65 74 75 72 (/^(0*)$/);retur 00016850: 6e 20 74 68 69 73 2e 69 73 4e 65 67 61 74 69 76 n this.isNegativ 00016860: 65 28 29 26 26 6e 26 26 28 74 3d 74 2e 73 75 62 e()&&n&&(t=t.sub 00016870: 55 6e 73 61 66 65 28 59 72 2e 74 6f 46 6f 72 6d Unsafe(Yr.toForm 00016880: 61 74 28 74 2e 66 6f 72 6d 61 74 29 29 29 2c 74 at(t.format))),t 00016890: 7d 63 65 69 6c 69 6e 67 28 29 7b 63 6f 6e 73 74 }ceiling(){const 000168a0: 20 65 3d 74 68 69 73 2e 74 6f 53 74 72 69 6e 67 e=this.toString 000168b0: 28 29 2e 73 70 6c 69 74 28 22 2e 22 29 3b 31 3d ().split(".");1= 000168c0: 3d 3d 65 2e 6c 65 6e 67 74 68 26 26 65 2e 70 75 ==e.length&&e.pu 000168d0: 73 68 28 22 30 22 29 3b 6c 65 74 20 74 3d 4b 72 sh("0");let t=Kr 000168e0: 2e 66 72 6f 6d 28 65 5b 30 5d 2c 74 68 69 73 2e .from(e[0],this. 000168f0: 66 6f 72 6d 61 74 29 3b 63 6f 6e 73 74 20 6e 3d format);const n= 00016900: 21 65 5b 31 5d 2e 6d 61 74 63 68 28 2f 5e 28 30 !e[1].match(/^(0 00016910: 2a 29 24 2f 29 3b 72 65 74 75 72 6e 21 74 68 69 *)$/);return!thi 00016920: 73 2e 69 73 4e 65 67 61 74 69 76 65 28 29 26 26 s.isNegative()&& 00016930: 6e 26 26 28 74 3d 74 2e 61 64 64 55 6e 73 61 66 n&&(t=t.addUnsaf 00016940: 65 28 59 72 2e 74 6f 46 6f 72 6d 61 74 28 74 2e e(Yr.toFormat(t. 00016950: 66 6f 72 6d 61 74 29 29 29 2c 74 7d 72 6f 75 6e format))),t}roun 00016960: 64 28 65 29 7b 6e 75 6c 6c 3d 3d 65 26 26 28 65 d(e){null==e&&(e 00016970: 3d 30 29 3b 63 6f 6e 73 74 20 74 3d 74 68 69 73 =0);const t=this 00016980: 2e 74 6f 53 74 72 69 6e 67 28 29 2e 73 70 6c 69 .toString().spli 00016990: 74 28 22 2e 22 29 3b 69 66 28 31 3d 3d 3d 74 2e t(".");if(1===t. 000169a0: 6c 65 6e 67 74 68 26 26 74 2e 70 75 73 68 28 22 length&&t.push(" 000169b0: 30 22 29 2c 28 65 3c 30 7c 7c 65 3e 38 30 7c 7c 0"),(e<0||e>80|| 000169c0: 65 25 31 29 26 26 46 72 2e 74 68 72 6f 77 41 72 e%1)&&Fr.throwAr 000169d0: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 000169e0: 61 6c 69 64 20 64 65 63 69 6d 61 6c 20 63 6f 75 alid decimal cou 000169f0: 6e 74 22 2c 22 64 65 63 69 6d 61 6c 73 22 2c 65 nt","decimals",e 00016a00: 29 2c 74 5b 31 5d 2e 6c 65 6e 67 74 68 3c 3d 65 ),t[1].length<=e 00016a10: 29 72 65 74 75 72 6e 20 74 68 69 73 3b 63 6f 6e )return this;con 00016a20: 73 74 20 6e 3d 4b 72 2e 66 72 6f 6d 28 22 31 22 st n=Kr.from("1" 00016a30: 2b 47 72 2e 73 75 62 73 74 72 69 6e 67 28 30 2c +Gr.substring(0, 00016a40: 65 29 2c 74 68 69 73 2e 66 6f 72 6d 61 74 29 2c e),this.format), 00016a50: 72 3d 58 72 2e 74 6f 46 6f 72 6d 61 74 28 74 68 r=Xr.toFormat(th 00016a60: 69 73 2e 66 6f 72 6d 61 74 29 3b 72 65 74 75 72 is.format);retur 00016a70: 6e 20 74 68 69 73 2e 6d 75 6c 55 6e 73 61 66 65 n this.mulUnsafe 00016a80: 28 6e 29 2e 61 64 64 55 6e 73 61 66 65 28 72 29 (n).addUnsafe(r) 00016a90: 2e 66 6c 6f 6f 72 28 29 2e 64 69 76 55 6e 73 61 .floor().divUnsa 00016aa0: 66 65 28 6e 29 7d 69 73 5a 65 72 6f 28 29 7b 72 fe(n)}isZero(){r 00016ab0: 65 74 75 72 6e 22 30 2e 30 22 3d 3d 3d 74 68 69 eturn"0.0"===thi 00016ac0: 73 2e 5f 76 61 6c 75 65 7c 7c 22 30 22 3d 3d 3d s._value||"0"=== 00016ad0: 74 68 69 73 2e 5f 76 61 6c 75 65 7d 69 73 4e 65 this._value}isNe 00016ae0: 67 61 74 69 76 65 28 29 7b 72 65 74 75 72 6e 22 gative(){return" 00016af0: 2d 22 3d 3d 3d 74 68 69 73 2e 5f 76 61 6c 75 65 -"===this._value 00016b00: 5b 30 5d 7d 74 6f 53 74 72 69 6e 67 28 29 7b 72 [0]}toString(){r 00016b10: 65 74 75 72 6e 20 74 68 69 73 2e 5f 76 61 6c 75 eturn this._valu 00016b20: 65 7d 74 6f 48 65 78 53 74 72 69 6e 67 28 65 29 e}toHexString(e) 00016b30: 7b 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 74 75 {if(null==e)retu 00016b40: 72 6e 20 74 68 69 73 2e 5f 68 65 78 3b 65 25 38 rn this._hex;e%8 00016b50: 26 26 46 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 &&Fr.throwArgume 00016b60: 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 ntError("invalid 00016b70: 20 62 79 74 65 20 77 69 64 74 68 22 2c 22 77 69 byte width","wi 00016b80: 64 74 68 22 2c 65 29 3b 72 65 74 75 72 6e 20 46 dth",e);return F 00016b90: 28 59 2e 66 72 6f 6d 28 74 68 69 73 2e 5f 68 65 (Y.from(this._he 00016ba0: 78 29 2e 66 72 6f 6d 54 77 6f 73 28 74 68 69 73 x).fromTwos(this 00016bb0: 2e 66 6f 72 6d 61 74 2e 77 69 64 74 68 29 2e 74 .format.width).t 00016bc0: 6f 54 77 6f 73 28 65 29 2e 74 6f 48 65 78 53 74 oTwos(e).toHexSt 00016bd0: 72 69 6e 67 28 29 2c 65 2f 38 29 7d 74 6f 55 6e ring(),e/8)}toUn 00016be0: 73 61 66 65 46 6c 6f 61 74 28 29 7b 72 65 74 75 safeFloat(){retu 00016bf0: 72 6e 20 70 61 72 73 65 46 6c 6f 61 74 28 74 68 rn parseFloat(th 00016c00: 69 73 2e 74 6f 53 74 72 69 6e 67 28 29 29 7d 74 is.toString())}t 00016c10: 6f 46 6f 72 6d 61 74 28 65 29 7b 72 65 74 75 72 oFormat(e){retur 00016c20: 6e 20 4b 72 2e 66 72 6f 6d 53 74 72 69 6e 67 28 n Kr.fromString( 00016c30: 74 68 69 73 2e 5f 76 61 6c 75 65 2c 65 29 7d 73 this._value,e)}s 00016c40: 74 61 74 69 63 20 66 72 6f 6d 56 61 6c 75 65 28 tatic fromValue( 00016c50: 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e 20 6e 75 e,t,n){return nu 00016c60: 6c 6c 21 3d 6e 7c 7c 6e 75 6c 6c 3d 3d 74 7c 7c ll!=n||null==t|| 00016c70: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 function(e){retu 00016c80: 72 6e 20 6e 75 6c 6c 21 3d 65 26 26 28 59 2e 69 rn null!=e&&(Y.i 00016c90: 73 42 69 67 4e 75 6d 62 65 72 28 65 29 7c 7c 22 sBigNumber(e)||" 00016ca0: 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f 66 20 number"==typeof 00016cb0: 65 26 26 65 25 31 3d 3d 30 7c 7c 22 73 74 72 69 e&&e%1==0||"stri 00016cc0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 21 ng"==typeof e&&! 00016cd0: 21 65 2e 6d 61 74 63 68 28 2f 5e 2d 3f 5b 30 2d !e.match(/^-?[0- 00016ce0: 39 5d 2b 24 2f 29 7c 7c 49 28 65 29 7c 7c 22 62 9]+$/)||I(e)||"b 00016cf0: 69 67 69 6e 74 22 3d 3d 74 79 70 65 6f 66 20 65 igint"==typeof e 00016d00: 7c 7c 78 28 65 29 29 7d 28 74 29 7c 7c 28 6e 3d ||x(e))}(t)||(n= 00016d10: 74 2c 74 3d 6e 75 6c 6c 29 2c 6e 75 6c 6c 3d 3d t,t=null),null== 00016d20: 74 26 26 28 74 3d 30 29 2c 6e 75 6c 6c 3d 3d 6e t&&(t=0),null==n 00016d30: 26 26 28 6e 3d 22 66 69 78 65 64 22 29 2c 4b 72 &&(n="fixed"),Kr 00016d40: 2e 66 72 6f 6d 53 74 72 69 6e 67 28 56 72 28 65 .fromString(Vr(e 00016d50: 2c 74 29 2c 57 72 2e 66 72 6f 6d 28 6e 29 29 7d ,t),Wr.from(n))} 00016d60: 73 74 61 74 69 63 20 66 72 6f 6d 53 74 72 69 6e static fromStrin 00016d70: 67 28 65 2c 74 29 7b 6e 75 6c 6c 3d 3d 74 26 26 g(e,t){null==t&& 00016d80: 28 74 3d 22 66 69 78 65 64 22 29 3b 63 6f 6e 73 (t="fixed");cons 00016d90: 74 20 6e 3d 57 72 2e 66 72 6f 6d 28 74 29 2c 72 t n=Wr.from(t),r 00016da0: 3d 71 72 28 65 2c 6e 2e 64 65 63 69 6d 61 6c 73 =qr(e,n.decimals 00016db0: 29 3b 21 6e 2e 73 69 67 6e 65 64 26 26 72 2e 6c );!n.signed&&r.l 00016dc0: 74 28 42 72 29 26 26 7a 72 28 22 75 6e 73 69 67 t(Br)&&zr("unsig 00016dd0: 6e 65 64 20 76 61 6c 75 65 20 63 61 6e 6e 6f 74 ned value cannot 00016de0: 20 62 65 20 6e 65 67 61 74 69 76 65 22 2c 22 6f be negative","o 00016df0: 76 65 72 66 6c 6f 77 22 2c 22 76 61 6c 75 65 22 verflow","value" 00016e00: 2c 65 29 3b 6c 65 74 20 6f 3d 6e 75 6c 6c 3b 6e ,e);let o=null;n 00016e10: 2e 73 69 67 6e 65 64 3f 6f 3d 72 2e 74 6f 54 77 .signed?o=r.toTw 00016e20: 6f 73 28 6e 2e 77 69 64 74 68 29 2e 74 6f 48 65 os(n.width).toHe 00016e30: 78 53 74 72 69 6e 67 28 29 3a 28 6f 3d 72 2e 74 xString():(o=r.t 00016e40: 6f 48 65 78 53 74 72 69 6e 67 28 29 2c 6f 3d 46 oHexString(),o=F 00016e50: 28 6f 2c 6e 2e 77 69 64 74 68 2f 38 29 29 3b 63 (o,n.width/8));c 00016e60: 6f 6e 73 74 20 69 3d 56 72 28 72 2c 6e 2e 64 65 onst i=Vr(r,n.de 00016e70: 63 69 6d 61 6c 73 29 3b 72 65 74 75 72 6e 20 6e cimals);return n 00016e80: 65 77 20 4b 72 28 55 72 2c 6f 2c 69 2c 6e 29 7d ew Kr(Ur,o,i,n)} 00016e90: 73 74 61 74 69 63 20 66 72 6f 6d 42 79 74 65 73 static fromBytes 00016ea0: 28 65 2c 74 29 7b 6e 75 6c 6c 3d 3d 74 26 26 28 (e,t){null==t&&( 00016eb0: 74 3d 22 66 69 78 65 64 22 29 3b 63 6f 6e 73 74 t="fixed");const 00016ec0: 20 6e 3d 57 72 2e 66 72 6f 6d 28 74 29 3b 69 66 n=Wr.from(t);if 00016ed0: 28 54 28 65 29 2e 6c 65 6e 67 74 68 3e 6e 2e 77 (T(e).length>n.w 00016ee0: 69 64 74 68 2f 38 29 74 68 72 6f 77 20 6e 65 77 idth/8)throw new 00016ef0: 20 45 72 72 6f 72 28 22 6f 76 65 72 66 6c 6f 77 Error("overflow 00016f00: 22 29 3b 6c 65 74 20 72 3d 59 2e 66 72 6f 6d 28 ");let r=Y.from( 00016f10: 65 29 3b 6e 2e 73 69 67 6e 65 64 26 26 28 72 3d e);n.signed&&(r= 00016f20: 72 2e 66 72 6f 6d 54 77 6f 73 28 6e 2e 77 69 64 r.fromTwos(n.wid 00016f30: 74 68 29 29 3b 63 6f 6e 73 74 20 6f 3d 72 2e 74 th));const o=r.t 00016f40: 6f 54 77 6f 73 28 28 6e 2e 73 69 67 6e 65 64 3f oTwos((n.signed? 00016f50: 30 3a 31 29 2b 6e 2e 77 69 64 74 68 29 2e 74 6f 0:1)+n.width).to 00016f60: 48 65 78 53 74 72 69 6e 67 28 29 2c 69 3d 56 72 HexString(),i=Vr 00016f70: 28 72 2c 6e 2e 64 65 63 69 6d 61 6c 73 29 3b 72 (r,n.decimals);r 00016f80: 65 74 75 72 6e 20 6e 65 77 20 4b 72 28 55 72 2c eturn new Kr(Ur, 00016f90: 6f 2c 69 2c 6e 29 7d 73 74 61 74 69 63 20 66 72 o,i,n)}static fr 00016fa0: 6f 6d 28 65 2c 74 29 7b 69 66 28 22 73 74 72 69 om(e,t){if("stri 00016fb0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 29 72 65 ng"==typeof e)re 00016fc0: 74 75 72 6e 20 4b 72 2e 66 72 6f 6d 53 74 72 69 turn Kr.fromStri 00016fd0: 6e 67 28 65 2c 74 29 3b 69 66 28 78 28 65 29 29 ng(e,t);if(x(e)) 00016fe0: 72 65 74 75 72 6e 20 4b 72 2e 66 72 6f 6d 42 79 return Kr.fromBy 00016ff0: 74 65 73 28 65 2c 74 29 3b 74 72 79 7b 72 65 74 tes(e,t);try{ret 00017000: 75 72 6e 20 4b 72 2e 66 72 6f 6d 56 61 6c 75 65 urn Kr.fromValue 00017010: 28 65 2c 30 2c 74 29 7d 63 61 74 63 68 28 65 29 (e,0,t)}catch(e) 00017020: 7b 69 66 28 65 2e 63 6f 64 65 21 3d 3d 79 2e 65 {if(e.code!==y.e 00017030: 72 72 6f 72 73 2e 49 4e 56 41 4c 49 44 5f 41 52 rrors.INVALID_AR 00017040: 47 55 4d 45 4e 54 29 74 68 72 6f 77 20 65 7d 72 GUMENT)throw e}r 00017050: 65 74 75 72 6e 20 46 72 2e 74 68 72 6f 77 41 72 eturn Fr.throwAr 00017060: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 00017070: 61 6c 69 64 20 46 69 78 65 64 4e 75 6d 62 65 72 alid FixedNumber 00017080: 20 76 61 6c 75 65 22 2c 22 76 61 6c 75 65 22 2c value","value", 00017090: 65 29 7d 73 74 61 74 69 63 20 69 73 46 69 78 65 e)}static isFixe 000170a0: 64 4e 75 6d 62 65 72 28 65 29 7b 72 65 74 75 72 dNumber(e){retur 000170b0: 6e 21 28 21 65 7c 7c 21 65 2e 5f 69 73 46 69 78 n!(!e||!e._isFix 000170c0: 65 64 4e 75 6d 62 65 72 29 7d 7d 63 6f 6e 73 74 edNumber)}}const 000170d0: 20 59 72 3d 4b 72 2e 66 72 6f 6d 28 31 29 2c 58 Yr=Kr.from(1),X 000170e0: 72 3d 4b 72 2e 66 72 6f 6d 28 22 30 2e 35 22 29 r=Kr.from("0.5") 000170f0: 2c 5a 72 3d 22 19 45 74 68 65 72 65 75 6d 20 53 ,Zr=".Ethereum S 00017100: 69 67 6e 65 64 20 4d 65 73 73 61 67 65 3a 5c 6e igned Message:\n 00017110: 22 3b 66 75 6e 63 74 69 6f 6e 20 51 72 28 65 29 ";function Qr(e) 00017120: 7b 72 65 74 75 72 6e 22 73 74 72 69 6e 67 22 3d {return"string"= 00017130: 3d 74 79 70 65 6f 66 20 65 26 26 28 65 3d 71 65 =typeof e&&(e=qe 00017140: 28 65 29 29 2c 76 65 28 43 28 5b 71 65 28 5a 72 (e)),ve(C([qe(Zr 00017150: 29 2c 71 65 28 53 74 72 69 6e 67 28 65 2e 6c 65 ),qe(String(e.le 00017160: 6e 67 74 68 29 29 2c 65 5d 29 29 7d 63 6f 6e 73 ngth)),e]))}cons 00017170: 74 20 4a 72 3d 22 68 61 73 68 2f 35 2e 37 2e 30 t Jr="hash/5.7.0 00017180: 22 3b 76 61 72 20 24 72 3d 66 75 6e 63 74 69 6f ";var $r=functio 00017190: 6e 28 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 n(e,t,n,r){retur 000171a0: 6e 20 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d n new(n||(n=Prom 000171b0: 69 73 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 ise))((function( 000171c0: 6f 2c 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 o,i){function a( 000171d0: 65 29 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 e){try{l(r.next( 000171e0: 65 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 e))}catch(e){i(e 000171f0: 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 )}}function s(e) 00017200: 7b 74 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 {try{l(r.throw(e 00017210: 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 ))}catch(e){i(e) 00017220: 7d 7d 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b }}function l(e){ 00017230: 76 61 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 var t;e.done?o(e 00017240: 2e 76 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c .value):(t=e.val 00017250: 75 65 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 ue,t instanceof 00017260: 6e 3f 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 n?t:new n((funct 00017270: 69 6f 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e ion(e){e(t)}))). 00017280: 74 68 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 then(a,s)}l((r=r 00017290: 2e 61 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 .apply(e,t||[])) 000172a0: 2e 6e 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e .next())}))};con 000172b0: 73 74 20 65 6f 3d 6e 65 77 20 79 28 4a 72 29 2c st eo=new y(Jr), 000172c0: 74 6f 3d 6e 65 77 20 55 69 6e 74 38 41 72 72 61 to=new Uint8Arra 000172d0: 79 28 33 32 29 3b 74 6f 2e 66 69 6c 6c 28 30 29 y(32);to.fill(0) 000172e0: 3b 63 6f 6e 73 74 20 6e 6f 3d 59 2e 66 72 6f 6d ;const no=Y.from 000172f0: 28 2d 31 29 2c 72 6f 3d 59 2e 66 72 6f 6d 28 30 (-1),ro=Y.from(0 00017300: 29 2c 6f 6f 3d 59 2e 66 72 6f 6d 28 31 29 2c 69 ),oo=Y.from(1),i 00017310: 6f 3d 59 2e 66 72 6f 6d 28 22 30 78 66 66 66 66 o=Y.from("0xffff 00017320: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00017330: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00017340: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00017350: 66 66 66 66 66 66 66 66 66 66 66 66 22 29 3b 63 ffffffffffff");c 00017360: 6f 6e 73 74 20 61 6f 3d 46 28 6f 6f 2e 74 6f 48 onst ao=F(oo.toH 00017370: 65 78 53 74 72 69 6e 67 28 29 2c 33 32 29 2c 73 exString(),32),s 00017380: 6f 3d 46 28 72 6f 2e 74 6f 48 65 78 53 74 72 69 o=F(ro.toHexStri 00017390: 6e 67 28 29 2c 33 32 29 2c 6c 6f 3d 7b 6e 61 6d ng(),32),lo={nam 000173a0: 65 3a 22 73 74 72 69 6e 67 22 2c 76 65 72 73 69 e:"string",versi 000173b0: 6f 6e 3a 22 73 74 72 69 6e 67 22 2c 63 68 61 69 on:"string",chai 000173c0: 6e 49 64 3a 22 75 69 6e 74 32 35 36 22 2c 76 65 nId:"uint256",ve 000173d0: 72 69 66 79 69 6e 67 43 6f 6e 74 72 61 63 74 3a rifyingContract: 000173e0: 22 61 64 64 72 65 73 73 22 2c 73 61 6c 74 3a 22 "address",salt:" 000173f0: 62 79 74 65 73 33 32 22 7d 2c 63 6f 3d 5b 22 6e bytes32"},co=["n 00017400: 61 6d 65 22 2c 22 76 65 72 73 69 6f 6e 22 2c 22 ame","version"," 00017410: 63 68 61 69 6e 49 64 22 2c 22 76 65 72 69 66 79 chainId","verify 00017420: 69 6e 67 43 6f 6e 74 72 61 63 74 22 2c 22 73 61 ingContract","sa 00017430: 6c 74 22 5d 3b 66 75 6e 63 74 69 6f 6e 20 75 6f lt"];function uo 00017440: 28 65 29 7b 72 65 74 75 72 6e 20 66 75 6e 63 74 (e){return funct 00017450: 69 6f 6e 28 74 29 7b 72 65 74 75 72 6e 22 73 74 ion(t){return"st 00017460: 72 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 74 26 ring"!=typeof t& 00017470: 26 65 6f 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &eo.throwArgumen 00017480: 74 45 72 72 6f 72 28 60 69 6e 76 61 6c 69 64 20 tError(`invalid 00017490: 64 6f 6d 61 69 6e 20 76 61 6c 75 65 20 66 6f 72 domain value for 000174a0: 20 24 7b 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 ${JSON.stringif 000174b0: 79 28 65 29 7d 60 2c 60 64 6f 6d 61 69 6e 2e 24 y(e)}`,`domain.$ 000174c0: 7b 65 7d 60 2c 74 29 2c 74 7d 7d 63 6f 6e 73 74 {e}`,t),t}}const 000174d0: 20 70 6f 3d 7b 6e 61 6d 65 3a 75 6f 28 22 6e 61 po={name:uo("na 000174e0: 6d 65 22 29 2c 76 65 72 73 69 6f 6e 3a 75 6f 28 me"),version:uo( 000174f0: 22 76 65 72 73 69 6f 6e 22 29 2c 63 68 61 69 6e "version"),chain 00017500: 49 64 3a 66 75 6e 63 74 69 6f 6e 28 65 29 7b 74 Id:function(e){t 00017510: 72 79 7b 72 65 74 75 72 6e 20 59 2e 66 72 6f 6d ry{return Y.from 00017520: 28 65 29 2e 74 6f 53 74 72 69 6e 67 28 29 7d 63 (e).toString()}c 00017530: 61 74 63 68 28 65 29 7b 7d 72 65 74 75 72 6e 20 atch(e){}return 00017540: 65 6f 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 eo.throwArgument 00017550: 45 72 72 6f 72 28 27 69 6e 76 61 6c 69 64 20 64 Error('invalid d 00017560: 6f 6d 61 69 6e 20 76 61 6c 75 65 20 66 6f 72 20 omain value for 00017570: 22 63 68 61 69 6e 49 64 22 27 2c 22 64 6f 6d 61 "chainId"',"doma 00017580: 69 6e 2e 63 68 61 69 6e 49 64 22 2c 65 29 7d 2c in.chainId",e)}, 00017590: 76 65 72 69 66 79 69 6e 67 43 6f 6e 74 72 61 63 verifyingContrac 000175a0: 74 3a 66 75 6e 63 74 69 6f 6e 28 65 29 7b 74 72 t:function(e){tr 000175b0: 79 7b 72 65 74 75 72 6e 20 4d 65 28 65 29 2e 74 y{return Me(e).t 000175c0: 6f 4c 6f 77 65 72 43 61 73 65 28 29 7d 63 61 74 oLowerCase()}cat 000175d0: 63 68 28 65 29 7b 7d 72 65 74 75 72 6e 20 65 6f ch(e){}return eo 000175e0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 000175f0: 72 6f 72 28 27 69 6e 76 61 6c 69 64 20 64 6f 6d ror('invalid dom 00017600: 61 69 6e 20 76 61 6c 75 65 20 22 76 65 72 69 66 ain value "verif 00017610: 79 69 6e 67 43 6f 6e 74 72 61 63 74 22 27 2c 22 yingContract"'," 00017620: 64 6f 6d 61 69 6e 2e 76 65 72 69 66 79 69 6e 67 domain.verifying 00017630: 43 6f 6e 74 72 61 63 74 22 2c 65 29 7d 2c 73 61 Contract",e)},sa 00017640: 6c 74 3a 66 75 6e 63 74 69 6f 6e 28 65 29 7b 74 lt:function(e){t 00017650: 72 79 7b 63 6f 6e 73 74 20 74 3d 54 28 65 29 3b ry{const t=T(e); 00017660: 69 66 28 33 32 21 3d 3d 74 2e 6c 65 6e 67 74 68 if(32!==t.length 00017670: 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 )throw new Error 00017680: 28 22 62 61 64 20 6c 65 6e 67 74 68 22 29 3b 72 ("bad length");r 00017690: 65 74 75 72 6e 20 52 28 74 29 7d 63 61 74 63 68 eturn R(t)}catch 000176a0: 28 65 29 7b 7d 72 65 74 75 72 6e 20 65 6f 2e 74 (e){}return eo.t 000176b0: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 000176c0: 72 28 27 69 6e 76 61 6c 69 64 20 64 6f 6d 61 69 r('invalid domai 000176d0: 6e 20 76 61 6c 75 65 20 22 73 61 6c 74 22 27 2c n value "salt"', 000176e0: 22 64 6f 6d 61 69 6e 2e 73 61 6c 74 22 2c 65 29 "domain.salt",e) 000176f0: 7d 7d 3b 66 75 6e 63 74 69 6f 6e 20 66 6f 28 65 }};function fo(e 00017700: 29 7b 7b 63 6f 6e 73 74 20 74 3d 65 2e 6d 61 74 ){{const t=e.mat 00017710: 63 68 28 2f 5e 28 75 3f 29 69 6e 74 28 5c 64 2a ch(/^(u?)int(\d* 00017720: 29 24 2f 29 3b 69 66 28 74 29 7b 63 6f 6e 73 74 )$/);if(t){const 00017730: 20 6e 3d 22 22 3d 3d 3d 74 5b 31 5d 2c 72 3d 70 n=""===t[1],r=p 00017740: 61 72 73 65 49 6e 74 28 74 5b 32 5d 7c 7c 22 32 arseInt(t[2]||"2 00017750: 35 36 22 29 3b 28 72 25 38 21 3d 30 7c 7c 72 3e 56");(r%8!=0||r> 00017760: 32 35 36 7c 7c 74 5b 32 5d 26 26 74 5b 32 5d 21 256||t[2]&&t[2]! 00017770: 3d 3d 53 74 72 69 6e 67 28 72 29 29 26 26 65 6f ==String(r))&&eo 00017780: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00017790: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 6e 75 6d ror("invalid num 000177a0: 65 72 69 63 20 77 69 64 74 68 22 2c 22 74 79 70 eric width","typ 000177b0: 65 22 2c 65 29 3b 63 6f 6e 73 74 20 6f 3d 69 6f e",e);const o=io 000177c0: 2e 6d 61 73 6b 28 6e 3f 72 2d 31 3a 72 29 2c 69 .mask(n?r-1:r),i 000177d0: 3d 6e 3f 6f 2e 61 64 64 28 6f 6f 29 2e 6d 75 6c =n?o.add(oo).mul 000177e0: 28 6e 6f 29 3a 72 6f 3b 72 65 74 75 72 6e 20 66 (no):ro;return f 000177f0: 75 6e 63 74 69 6f 6e 28 74 29 7b 63 6f 6e 73 74 unction(t){const 00017800: 20 6e 3d 59 2e 66 72 6f 6d 28 74 29 3b 72 65 74 n=Y.from(t);ret 00017810: 75 72 6e 28 6e 2e 6c 74 28 69 29 7c 7c 6e 2e 67 urn(n.lt(i)||n.g 00017820: 74 28 6f 29 29 26 26 65 6f 2e 74 68 72 6f 77 41 t(o))&&eo.throwA 00017830: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 60 76 61 rgumentError(`va 00017840: 6c 75 65 20 6f 75 74 2d 6f 66 2d 62 6f 75 6e 64 lue out-of-bound 00017850: 73 20 66 6f 72 20 24 7b 65 7d 60 2c 22 76 61 6c s for ${e}`,"val 00017860: 75 65 22 2c 74 29 2c 46 28 6e 2e 74 6f 54 77 6f ue",t),F(n.toTwo 00017870: 73 28 32 35 36 29 2e 74 6f 48 65 78 53 74 72 69 s(256).toHexStri 00017880: 6e 67 28 29 2c 33 32 29 7d 7d 7d 7b 63 6f 6e 73 ng(),32)}}}{cons 00017890: 74 20 74 3d 65 2e 6d 61 74 63 68 28 2f 5e 62 79 t t=e.match(/^by 000178a0: 74 65 73 28 5c 64 2b 29 24 2f 29 3b 69 66 28 74 tes(\d+)$/);if(t 000178b0: 29 7b 63 6f 6e 73 74 20 6e 3d 70 61 72 73 65 49 ){const n=parseI 000178c0: 6e 74 28 74 5b 31 5d 29 3b 72 65 74 75 72 6e 28 nt(t[1]);return( 000178d0: 30 3d 3d 3d 6e 7c 7c 6e 3e 33 32 7c 7c 74 5b 31 0===n||n>32||t[1 000178e0: 5d 21 3d 3d 53 74 72 69 6e 67 28 6e 29 29 26 26 ]!==String(n))&& 000178f0: 65 6f 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 eo.throwArgument 00017900: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 62 Error("invalid b 00017910: 79 74 65 73 20 77 69 64 74 68 22 2c 22 74 79 70 ytes width","typ 00017920: 65 22 2c 65 29 2c 66 75 6e 63 74 69 6f 6e 28 74 e",e),function(t 00017930: 29 7b 72 65 74 75 72 6e 20 54 28 74 29 2e 6c 65 ){return T(t).le 00017940: 6e 67 74 68 21 3d 3d 6e 26 26 65 6f 2e 74 68 72 ngth!==n&&eo.thr 00017950: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 00017960: 60 69 6e 76 61 6c 69 64 20 6c 65 6e 67 74 68 20 `invalid length 00017970: 66 6f 72 20 24 7b 65 7d 60 2c 22 76 61 6c 75 65 for ${e}`,"value 00017980: 22 2c 74 29 2c 66 75 6e 63 74 69 6f 6e 28 65 29 ",t),function(e) 00017990: 7b 63 6f 6e 73 74 20 74 3d 54 28 65 29 2c 6e 3d {const t=T(e),n= 000179a0: 74 2e 6c 65 6e 67 74 68 25 33 32 3b 72 65 74 75 t.length%32;retu 000179b0: 72 6e 20 6e 3f 4d 28 5b 74 2c 74 6f 2e 73 6c 69 rn n?M([t,to.sli 000179c0: 63 65 28 6e 29 5d 29 3a 52 28 74 29 7d 28 74 29 ce(n)]):R(t)}(t) 000179d0: 7d 7d 7d 73 77 69 74 63 68 28 65 29 7b 63 61 73 }}}switch(e){cas 000179e0: 65 22 61 64 64 72 65 73 73 22 3a 72 65 74 75 72 e"address":retur 000179f0: 6e 20 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 n function(e){re 00017a00: 74 75 72 6e 20 46 28 4d 65 28 65 29 2c 33 32 29 turn F(Me(e),32) 00017a10: 7d 3b 63 61 73 65 22 62 6f 6f 6c 22 3a 72 65 74 };case"bool":ret 00017a20: 75 72 6e 20 66 75 6e 63 74 69 6f 6e 28 65 29 7b urn function(e){ 00017a30: 72 65 74 75 72 6e 20 65 3f 61 6f 3a 73 6f 7d 3b return e?ao:so}; 00017a40: 63 61 73 65 22 62 79 74 65 73 22 3a 72 65 74 75 case"bytes":retu 00017a50: 72 6e 20 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 rn function(e){r 00017a60: 65 74 75 72 6e 20 76 65 28 65 29 7d 3b 63 61 73 eturn ve(e)};cas 00017a70: 65 22 73 74 72 69 6e 67 22 3a 72 65 74 75 72 6e e"string":return 00017a80: 20 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 function(e){ret 00017a90: 75 72 6e 20 51 65 28 65 29 7d 7d 72 65 74 75 72 urn Qe(e)}}retur 00017aa0: 6e 20 6e 75 6c 6c 7d 66 75 6e 63 74 69 6f 6e 20 n null}function 00017ab0: 68 6f 28 65 2c 74 29 7b 72 65 74 75 72 6e 60 24 ho(e,t){return`$ 00017ac0: 7b 65 7d 28 24 7b 74 2e 6d 61 70 28 28 28 7b 6e {e}(${t.map((({n 00017ad0: 61 6d 65 3a 65 2c 74 79 70 65 3a 74 7d 29 3d 3e ame:e,type:t})=> 00017ae0: 74 2b 22 20 22 2b 65 29 29 2e 6a 6f 69 6e 28 22 t+" "+e)).join(" 00017af0: 2c 22 29 7d 29 60 7d 63 6c 61 73 73 20 6d 6f 7b ,")})`}class mo{ 00017b00: 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 29 7b 74 constructor(e){t 00017b10: 65 28 74 68 69 73 2c 22 74 79 70 65 73 22 2c 4f e(this,"types",O 00017b20: 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 63 65 28 bject.freeze(ce( 00017b30: 65 29 29 29 2c 74 65 28 74 68 69 73 2c 22 5f 65 e))),te(this,"_e 00017b40: 6e 63 6f 64 65 72 43 61 63 68 65 22 2c 7b 7d 29 ncoderCache",{}) 00017b50: 2c 74 65 28 74 68 69 73 2c 22 5f 74 79 70 65 73 ,te(this,"_types 00017b60: 22 2c 7b 7d 29 3b 63 6f 6e 73 74 20 74 3d 7b 7d ",{});const t={} 00017b70: 2c 6e 3d 7b 7d 2c 72 3d 7b 7d 3b 4f 62 6a 65 63 ,n={},r={};Objec 00017b80: 74 2e 6b 65 79 73 28 65 29 2e 66 6f 72 45 61 63 t.keys(e).forEac 00017b90: 68 28 28 65 3d 3e 7b 74 5b 65 5d 3d 7b 7d 2c 6e h((e=>{t[e]={},n 00017ba0: 5b 65 5d 3d 5b 5d 2c 72 5b 65 5d 3d 7b 7d 7d 29 [e]=[],r[e]={}}) 00017bb0: 29 3b 66 6f 72 28 63 6f 6e 73 74 20 72 20 69 6e );for(const r in 00017bc0: 20 65 29 7b 63 6f 6e 73 74 20 6f 3d 7b 7d 3b 65 e){const o={};e 00017bd0: 5b 72 5d 2e 66 6f 72 45 61 63 68 28 28 69 3d 3e [r].forEach((i=> 00017be0: 7b 6f 5b 69 2e 6e 61 6d 65 5d 26 26 65 6f 2e 74 {o[i.name]&&eo.t 00017bf0: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00017c00: 72 28 60 64 75 70 6c 69 63 61 74 65 20 76 61 72 r(`duplicate var 00017c10: 69 61 62 6c 65 20 6e 61 6d 65 20 24 7b 4a 53 4f iable name ${JSO 00017c20: 4e 2e 73 74 72 69 6e 67 69 66 79 28 69 2e 6e 61 N.stringify(i.na 00017c30: 6d 65 29 7d 20 69 6e 20 24 7b 4a 53 4f 4e 2e 73 me)} in ${JSON.s 00017c40: 74 72 69 6e 67 69 66 79 28 72 29 7d 60 2c 22 74 tringify(r)}`,"t 00017c50: 79 70 65 73 22 2c 65 29 2c 6f 5b 69 2e 6e 61 6d ypes",e),o[i.nam 00017c60: 65 5d 3d 21 30 3b 63 6f 6e 73 74 20 61 3d 69 2e e]=!0;const a=i. 00017c70: 74 79 70 65 2e 6d 61 74 63 68 28 2f 5e 28 5b 5e type.match(/^([^ 00017c80: 5c 78 35 62 5d 2a 29 28 5c 78 35 62 7c 24 29 2f \x5b]*)(\x5b|$)/ 00017c90: 29 5b 31 5d 3b 61 3d 3d 3d 72 26 26 65 6f 2e 74 )[1];a===r&&eo.t 00017ca0: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00017cb0: 72 28 60 63 69 72 63 75 6c 61 72 20 74 79 70 65 r(`circular type 00017cc0: 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 24 7b reference to ${ 00017cd0: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 61 JSON.stringify(a 00017ce0: 29 7d 60 2c 22 74 79 70 65 73 22 2c 65 29 3b 66 )}`,"types",e);f 00017cf0: 6f 28 61 29 7c 7c 28 6e 5b 61 5d 7c 7c 65 6f 2e o(a)||(n[a]||eo. 00017d00: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00017d10: 6f 72 28 60 75 6e 6b 6e 6f 77 6e 20 74 79 70 65 or(`unknown type 00017d20: 20 24 7b 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 ${JSON.stringif 00017d30: 79 28 61 29 7d 60 2c 22 74 79 70 65 73 22 2c 65 y(a)}`,"types",e 00017d40: 29 2c 6e 5b 61 5d 2e 70 75 73 68 28 72 29 2c 74 ),n[a].push(r),t 00017d50: 5b 72 5d 5b 61 5d 3d 21 30 29 7d 29 29 7d 63 6f [r][a]=!0)}))}co 00017d60: 6e 73 74 20 6f 3d 4f 62 6a 65 63 74 2e 6b 65 79 nst o=Object.key 00017d70: 73 28 6e 29 2e 66 69 6c 74 65 72 28 28 65 3d 3e s(n).filter((e=> 00017d80: 30 3d 3d 3d 6e 5b 65 5d 2e 6c 65 6e 67 74 68 29 0===n[e].length) 00017d90: 29 3b 30 3d 3d 3d 6f 2e 6c 65 6e 67 74 68 3f 65 );0===o.length?e 00017da0: 6f 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 o.throwArgumentE 00017db0: 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 20 70 72 rror("missing pr 00017dc0: 69 6d 61 72 79 20 74 79 70 65 22 2c 22 74 79 70 imary type","typ 00017dd0: 65 73 22 2c 65 29 3a 6f 2e 6c 65 6e 67 74 68 3e es",e):o.length> 00017de0: 31 26 26 65 6f 2e 74 68 72 6f 77 41 72 67 75 6d 1&&eo.throwArgum 00017df0: 65 6e 74 45 72 72 6f 72 28 60 61 6d 62 69 67 75 entError(`ambigu 00017e00: 6f 75 73 20 70 72 69 6d 61 72 79 20 74 79 70 65 ous primary type 00017e10: 73 20 6f 72 20 75 6e 75 73 65 64 20 74 79 70 65 s or unused type 00017e20: 73 3a 20 24 7b 6f 2e 6d 61 70 28 28 65 3d 3e 4a s: ${o.map((e=>J 00017e30: 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 65 29 SON.stringify(e) 00017e40: 29 29 2e 6a 6f 69 6e 28 22 2c 20 22 29 7d 60 2c )).join(", ")}`, 00017e50: 22 74 79 70 65 73 22 2c 65 29 2c 74 65 28 74 68 "types",e),te(th 00017e60: 69 73 2c 22 70 72 69 6d 61 72 79 54 79 70 65 22 is,"primaryType" 00017e70: 2c 6f 5b 30 5d 29 2c 66 75 6e 63 74 69 6f 6e 20 ,o[0]),function 00017e80: 6f 28 69 2c 61 29 7b 61 5b 69 5d 26 26 65 6f 2e o(i,a){a[i]&&eo. 00017e90: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00017ea0: 6f 72 28 60 63 69 72 63 75 6c 61 72 20 74 79 70 or(`circular typ 00017eb0: 65 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 24 e reference to $ 00017ec0: 7b 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 {JSON.stringify( 00017ed0: 69 29 7d 60 2c 22 74 79 70 65 73 22 2c 65 29 2c i)}`,"types",e), 00017ee0: 61 5b 69 5d 3d 21 30 2c 4f 62 6a 65 63 74 2e 6b a[i]=!0,Object.k 00017ef0: 65 79 73 28 74 5b 69 5d 29 2e 66 6f 72 45 61 63 eys(t[i]).forEac 00017f00: 68 28 28 65 3d 3e 7b 6e 5b 65 5d 26 26 28 6f 28 h((e=>{n[e]&&(o( 00017f10: 65 2c 61 29 2c 4f 62 6a 65 63 74 2e 6b 65 79 73 e,a),Object.keys 00017f20: 28 61 29 2e 66 6f 72 45 61 63 68 28 28 74 3d 3e (a).forEach((t=> 00017f30: 7b 72 5b 74 5d 5b 65 5d 3d 21 30 7d 29 29 29 7d {r[t][e]=!0})))} 00017f40: 29 29 2c 64 65 6c 65 74 65 20 61 5b 69 5d 7d 28 )),delete a[i]}( 00017f50: 74 68 69 73 2e 70 72 69 6d 61 72 79 54 79 70 65 this.primaryType 00017f60: 2c 7b 7d 29 3b 66 6f 72 28 63 6f 6e 73 74 20 74 ,{});for(const t 00017f70: 20 69 6e 20 72 29 7b 63 6f 6e 73 74 20 6e 3d 4f in r){const n=O 00017f80: 62 6a 65 63 74 2e 6b 65 79 73 28 72 5b 74 5d 29 bject.keys(r[t]) 00017f90: 3b 6e 2e 73 6f 72 74 28 29 2c 74 68 69 73 2e 5f ;n.sort(),this._ 00017fa0: 74 79 70 65 73 5b 74 5d 3d 68 6f 28 74 2c 65 5b types[t]=ho(t,e[ 00017fb0: 74 5d 29 2b 6e 2e 6d 61 70 28 28 74 3d 3e 68 6f t])+n.map((t=>ho 00017fc0: 28 74 2c 65 5b 74 5d 29 29 29 2e 6a 6f 69 6e 28 (t,e[t]))).join( 00017fd0: 22 22 29 7d 7d 67 65 74 45 6e 63 6f 64 65 72 28 "")}}getEncoder( 00017fe0: 65 29 7b 6c 65 74 20 74 3d 74 68 69 73 2e 5f 65 e){let t=this._e 00017ff0: 6e 63 6f 64 65 72 43 61 63 68 65 5b 65 5d 3b 72 ncoderCache[e];r 00018000: 65 74 75 72 6e 20 74 7c 7c 28 74 3d 74 68 69 73 eturn t||(t=this 00018010: 2e 5f 65 6e 63 6f 64 65 72 43 61 63 68 65 5b 65 ._encoderCache[e 00018020: 5d 3d 74 68 69 73 2e 5f 67 65 74 45 6e 63 6f 64 ]=this._getEncod 00018030: 65 72 28 65 29 29 2c 74 7d 5f 67 65 74 45 6e 63 er(e)),t}_getEnc 00018040: 6f 64 65 72 28 65 29 7b 7b 63 6f 6e 73 74 20 74 oder(e){{const t 00018050: 3d 66 6f 28 65 29 3b 69 66 28 74 29 72 65 74 75 =fo(e);if(t)retu 00018060: 72 6e 20 74 7d 63 6f 6e 73 74 20 74 3d 65 2e 6d rn t}const t=e.m 00018070: 61 74 63 68 28 2f 5e 28 2e 2a 29 28 5c 78 35 62 atch(/^(.*)(\x5b 00018080: 28 5c 64 2a 29 5c 78 35 64 29 24 2f 29 3b 69 66 (\d*)\x5d)$/);if 00018090: 28 74 29 7b 63 6f 6e 73 74 20 65 3d 74 5b 31 5d (t){const e=t[1] 000180a0: 2c 6e 3d 74 68 69 73 2e 67 65 74 45 6e 63 6f 64 ,n=this.getEncod 000180b0: 65 72 28 65 29 2c 72 3d 70 61 72 73 65 49 6e 74 er(e),r=parseInt 000180c0: 28 74 5b 33 5d 29 3b 72 65 74 75 72 6e 20 74 3d (t[3]);return t= 000180d0: 3e 7b 72 3e 3d 30 26 26 74 2e 6c 65 6e 67 74 68 >{r>=0&&t.length 000180e0: 21 3d 3d 72 26 26 65 6f 2e 74 68 72 6f 77 41 72 !==r&&eo.throwAr 000180f0: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 61 72 72 gumentError("arr 00018100: 61 79 20 6c 65 6e 67 74 68 20 6d 69 73 6d 61 74 ay length mismat 00018110: 63 68 3b 20 65 78 70 65 63 74 65 64 20 6c 65 6e ch; expected len 00018120: 67 74 68 20 24 7b 20 61 72 72 61 79 4c 65 6e 67 gth ${ arrayLeng 00018130: 74 68 20 7d 22 2c 22 76 61 6c 75 65 22 2c 74 29 th }","value",t) 00018140: 3b 6c 65 74 20 6f 3d 74 2e 6d 61 70 28 6e 29 3b ;let o=t.map(n); 00018150: 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 74 79 70 return this._typ 00018160: 65 73 5b 65 5d 26 26 28 6f 3d 6f 2e 6d 61 70 28 es[e]&&(o=o.map( 00018170: 76 65 29 29 2c 76 65 28 4d 28 6f 29 29 7d 7d 63 ve)),ve(M(o))}}c 00018180: 6f 6e 73 74 20 6e 3d 74 68 69 73 2e 74 79 70 65 onst n=this.type 00018190: 73 5b 65 5d 3b 69 66 28 6e 29 7b 63 6f 6e 73 74 s[e];if(n){const 000181a0: 20 74 3d 51 65 28 74 68 69 73 2e 5f 74 79 70 65 t=Qe(this._type 000181b0: 73 5b 65 5d 29 3b 72 65 74 75 72 6e 20 65 3d 3e s[e]);return e=> 000181c0: 7b 63 6f 6e 73 74 20 72 3d 6e 2e 6d 61 70 28 28 {const r=n.map(( 000181d0: 28 7b 6e 61 6d 65 3a 74 2c 74 79 70 65 3a 6e 7d ({name:t,type:n} 000181e0: 29 3d 3e 7b 63 6f 6e 73 74 20 72 3d 74 68 69 73 )=>{const r=this 000181f0: 2e 67 65 74 45 6e 63 6f 64 65 72 28 6e 29 28 65 .getEncoder(n)(e 00018200: 5b 74 5d 29 3b 72 65 74 75 72 6e 20 74 68 69 73 [t]);return this 00018210: 2e 5f 74 79 70 65 73 5b 6e 5d 3f 76 65 28 72 29 ._types[n]?ve(r) 00018220: 3a 72 7d 29 29 3b 72 65 74 75 72 6e 20 72 2e 75 :r}));return r.u 00018230: 6e 73 68 69 66 74 28 74 29 2c 4d 28 72 29 7d 7d nshift(t),M(r)}} 00018240: 72 65 74 75 72 6e 20 65 6f 2e 74 68 72 6f 77 41 return eo.throwA 00018250: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 60 75 6e rgumentError(`un 00018260: 6b 6e 6f 77 6e 20 74 79 70 65 3a 20 24 7b 65 7d known type: ${e} 00018270: 60 2c 22 74 79 70 65 22 2c 65 29 7d 65 6e 63 6f `,"type",e)}enco 00018280: 64 65 54 79 70 65 28 65 29 7b 63 6f 6e 73 74 20 deType(e){const 00018290: 74 3d 74 68 69 73 2e 5f 74 79 70 65 73 5b 65 5d t=this._types[e] 000182a0: 3b 72 65 74 75 72 6e 20 74 7c 7c 65 6f 2e 74 68 ;return t||eo.th 000182b0: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 000182c0: 28 60 75 6e 6b 6e 6f 77 6e 20 74 79 70 65 3a 20 (`unknown type: 000182d0: 24 7b 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 ${JSON.stringify 000182e0: 28 65 29 7d 60 2c 22 6e 61 6d 65 22 2c 65 29 2c (e)}`,"name",e), 000182f0: 74 7d 65 6e 63 6f 64 65 44 61 74 61 28 65 2c 74 t}encodeData(e,t 00018300: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 67 65 ){return this.ge 00018310: 74 45 6e 63 6f 64 65 72 28 65 29 28 74 29 7d 68 tEncoder(e)(t)}h 00018320: 61 73 68 53 74 72 75 63 74 28 65 2c 74 29 7b 72 ashStruct(e,t){r 00018330: 65 74 75 72 6e 20 76 65 28 74 68 69 73 2e 65 6e eturn ve(this.en 00018340: 63 6f 64 65 44 61 74 61 28 65 2c 74 29 29 7d 65 codeData(e,t))}e 00018350: 6e 63 6f 64 65 28 65 29 7b 72 65 74 75 72 6e 20 ncode(e){return 00018360: 74 68 69 73 2e 65 6e 63 6f 64 65 44 61 74 61 28 this.encodeData( 00018370: 74 68 69 73 2e 70 72 69 6d 61 72 79 54 79 70 65 this.primaryType 00018380: 2c 65 29 7d 68 61 73 68 28 65 29 7b 72 65 74 75 ,e)}hash(e){retu 00018390: 72 6e 20 74 68 69 73 2e 68 61 73 68 53 74 72 75 rn this.hashStru 000183a0: 63 74 28 74 68 69 73 2e 70 72 69 6d 61 72 79 54 ct(this.primaryT 000183b0: 79 70 65 2c 65 29 7d 5f 76 69 73 69 74 28 65 2c ype,e)}_visit(e, 000183c0: 74 2c 6e 29 7b 69 66 28 66 6f 28 65 29 29 72 65 t,n){if(fo(e))re 000183d0: 74 75 72 6e 20 6e 28 65 2c 74 29 3b 63 6f 6e 73 turn n(e,t);cons 000183e0: 74 20 72 3d 65 2e 6d 61 74 63 68 28 2f 5e 28 2e t r=e.match(/^(. 000183f0: 2a 29 28 5c 78 35 62 28 5c 64 2a 29 5c 78 35 64 *)(\x5b(\d*)\x5d 00018400: 29 24 2f 29 3b 69 66 28 72 29 7b 63 6f 6e 73 74 )$/);if(r){const 00018410: 20 65 3d 72 5b 31 5d 2c 6f 3d 70 61 72 73 65 49 e=r[1],o=parseI 00018420: 6e 74 28 72 5b 33 5d 29 3b 72 65 74 75 72 6e 20 nt(r[3]);return 00018430: 6f 3e 3d 30 26 26 74 2e 6c 65 6e 67 74 68 21 3d o>=0&&t.length!= 00018440: 3d 6f 26 26 65 6f 2e 74 68 72 6f 77 41 72 67 75 =o&&eo.throwArgu 00018450: 6d 65 6e 74 45 72 72 6f 72 28 22 61 72 72 61 79 mentError("array 00018460: 20 6c 65 6e 67 74 68 20 6d 69 73 6d 61 74 63 68 length mismatch 00018470: 3b 20 65 78 70 65 63 74 65 64 20 6c 65 6e 67 74 ; expected lengt 00018480: 68 20 24 7b 20 61 72 72 61 79 4c 65 6e 67 74 68 h ${ arrayLength 00018490: 20 7d 22 2c 22 76 61 6c 75 65 22 2c 74 29 2c 74 }","value",t),t 000184a0: 2e 6d 61 70 28 28 74 3d 3e 74 68 69 73 2e 5f 76 .map((t=>this._v 000184b0: 69 73 69 74 28 65 2c 74 2c 6e 29 29 29 7d 63 6f isit(e,t,n)))}co 000184c0: 6e 73 74 20 6f 3d 74 68 69 73 2e 74 79 70 65 73 nst o=this.types 000184d0: 5b 65 5d 3b 72 65 74 75 72 6e 20 6f 3f 6f 2e 72 [e];return o?o.r 000184e0: 65 64 75 63 65 28 28 28 65 2c 7b 6e 61 6d 65 3a educe(((e,{name: 000184f0: 72 2c 74 79 70 65 3a 6f 7d 29 3d 3e 28 65 5b 72 r,type:o})=>(e[r 00018500: 5d 3d 74 68 69 73 2e 5f 76 69 73 69 74 28 6f 2c ]=this._visit(o, 00018510: 74 5b 72 5d 2c 6e 29 2c 65 29 29 2c 7b 7d 29 3a t[r],n),e)),{}): 00018520: 65 6f 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 eo.throwArgument 00018530: 45 72 72 6f 72 28 60 75 6e 6b 6e 6f 77 6e 20 74 Error(`unknown t 00018540: 79 70 65 3a 20 24 7b 65 7d 60 2c 22 74 79 70 65 ype: ${e}`,"type 00018550: 22 2c 65 29 7d 76 69 73 69 74 28 65 2c 74 29 7b ",e)}visit(e,t){ 00018560: 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 76 69 73 return this._vis 00018570: 69 74 28 74 68 69 73 2e 70 72 69 6d 61 72 79 54 it(this.primaryT 00018580: 79 70 65 2c 65 2c 74 29 7d 73 74 61 74 69 63 20 ype,e,t)}static 00018590: 66 72 6f 6d 28 65 29 7b 72 65 74 75 72 6e 20 6e from(e){return n 000185a0: 65 77 20 6d 6f 28 65 29 7d 73 74 61 74 69 63 20 ew mo(e)}static 000185b0: 67 65 74 50 72 69 6d 61 72 79 54 79 70 65 28 65 getPrimaryType(e 000185c0: 29 7b 72 65 74 75 72 6e 20 6d 6f 2e 66 72 6f 6d ){return mo.from 000185d0: 28 65 29 2e 70 72 69 6d 61 72 79 54 79 70 65 7d (e).primaryType} 000185e0: 73 74 61 74 69 63 20 68 61 73 68 53 74 72 75 63 static hashStruc 000185f0: 74 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e 20 t(e,t,n){return 00018600: 6d 6f 2e 66 72 6f 6d 28 74 29 2e 68 61 73 68 53 mo.from(t).hashS 00018610: 74 72 75 63 74 28 65 2c 6e 29 7d 73 74 61 74 69 truct(e,n)}stati 00018620: 63 20 68 61 73 68 44 6f 6d 61 69 6e 28 65 29 7b c hashDomain(e){ 00018630: 63 6f 6e 73 74 20 74 3d 5b 5d 3b 66 6f 72 28 63 const t=[];for(c 00018640: 6f 6e 73 74 20 6e 20 69 6e 20 65 29 7b 63 6f 6e onst n in e){con 00018650: 73 74 20 72 3d 6c 6f 5b 6e 5d 3b 72 7c 7c 65 6f st r=lo[n];r||eo 00018660: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00018670: 72 6f 72 28 60 69 6e 76 61 6c 69 64 20 74 79 70 ror(`invalid typ 00018680: 65 64 2d 64 61 74 61 20 64 6f 6d 61 69 6e 20 6b ed-data domain k 00018690: 65 79 3a 20 24 7b 4a 53 4f 4e 2e 73 74 72 69 6e ey: ${JSON.strin 000186a0: 67 69 66 79 28 6e 29 7d 60 2c 22 64 6f 6d 61 69 gify(n)}`,"domai 000186b0: 6e 22 2c 65 29 2c 74 2e 70 75 73 68 28 7b 6e 61 n",e),t.push({na 000186c0: 6d 65 3a 6e 2c 74 79 70 65 3a 72 7d 29 7d 72 65 me:n,type:r})}re 000186d0: 74 75 72 6e 20 74 2e 73 6f 72 74 28 28 28 65 2c turn t.sort(((e, 000186e0: 74 29 3d 3e 63 6f 2e 69 6e 64 65 78 4f 66 28 65 t)=>co.indexOf(e 000186f0: 2e 6e 61 6d 65 29 2d 63 6f 2e 69 6e 64 65 78 4f .name)-co.indexO 00018700: 66 28 74 2e 6e 61 6d 65 29 29 29 2c 6d 6f 2e 68 f(t.name))),mo.h 00018710: 61 73 68 53 74 72 75 63 74 28 22 45 49 50 37 31 ashStruct("EIP71 00018720: 32 44 6f 6d 61 69 6e 22 2c 7b 45 49 50 37 31 32 2Domain",{EIP712 00018730: 44 6f 6d 61 69 6e 3a 74 7d 2c 65 29 7d 73 74 61 Domain:t},e)}sta 00018740: 74 69 63 20 65 6e 63 6f 64 65 28 65 2c 74 2c 6e tic encode(e,t,n 00018750: 29 7b 72 65 74 75 72 6e 20 4d 28 5b 22 30 78 31 ){return M(["0x1 00018760: 39 30 31 22 2c 6d 6f 2e 68 61 73 68 44 6f 6d 61 901",mo.hashDoma 00018770: 69 6e 28 65 29 2c 6d 6f 2e 66 72 6f 6d 28 74 29 in(e),mo.from(t) 00018780: 2e 68 61 73 68 28 6e 29 5d 29 7d 73 74 61 74 69 .hash(n)])}stati 00018790: 63 20 68 61 73 68 28 65 2c 74 2c 6e 29 7b 72 65 c hash(e,t,n){re 000187a0: 74 75 72 6e 20 76 65 28 6d 6f 2e 65 6e 63 6f 64 turn ve(mo.encod 000187b0: 65 28 65 2c 74 2c 6e 29 29 7d 73 74 61 74 69 63 e(e,t,n))}static 000187c0: 20 72 65 73 6f 6c 76 65 4e 61 6d 65 73 28 65 2c resolveNames(e, 000187d0: 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 24 72 t,n,r){return $r 000187e0: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 000187f0: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 00018800: 7b 65 3d 69 65 28 65 29 3b 63 6f 6e 73 74 20 6f {e=ie(e);const o 00018810: 3d 7b 7d 3b 65 2e 76 65 72 69 66 79 69 6e 67 43 ={};e.verifyingC 00018820: 6f 6e 74 72 61 63 74 26 26 21 49 28 65 2e 76 65 ontract&&!I(e.ve 00018830: 72 69 66 79 69 6e 67 43 6f 6e 74 72 61 63 74 2c rifyingContract, 00018840: 32 30 29 26 26 28 6f 5b 65 2e 76 65 72 69 66 79 20)&&(o[e.verify 00018850: 69 6e 67 43 6f 6e 74 72 61 63 74 5d 3d 22 30 78 ingContract]="0x 00018860: 22 29 3b 63 6f 6e 73 74 20 69 3d 6d 6f 2e 66 72 ");const i=mo.fr 00018870: 6f 6d 28 74 29 3b 69 2e 76 69 73 69 74 28 6e 2c om(t);i.visit(n, 00018880: 28 28 65 2c 74 29 3d 3e 28 22 61 64 64 72 65 73 ((e,t)=>("addres 00018890: 73 22 21 3d 3d 65 7c 7c 49 28 74 2c 32 30 29 7c s"!==e||I(t,20)| 000188a0: 7c 28 6f 5b 74 5d 3d 22 30 78 22 29 2c 74 29 29 |(o[t]="0x"),t)) 000188b0: 29 3b 66 6f 72 28 63 6f 6e 73 74 20 65 20 69 6e );for(const e in 000188c0: 20 6f 29 6f 5b 65 5d 3d 79 69 65 6c 64 20 72 28 o)o[e]=yield r( 000188d0: 65 29 3b 72 65 74 75 72 6e 20 65 2e 76 65 72 69 e);return e.veri 000188e0: 66 79 69 6e 67 43 6f 6e 74 72 61 63 74 26 26 6f fyingContract&&o 000188f0: 5b 65 2e 76 65 72 69 66 79 69 6e 67 43 6f 6e 74 [e.verifyingCont 00018900: 72 61 63 74 5d 26 26 28 65 2e 76 65 72 69 66 79 ract]&&(e.verify 00018910: 69 6e 67 43 6f 6e 74 72 61 63 74 3d 6f 5b 65 2e ingContract=o[e. 00018920: 76 65 72 69 66 79 69 6e 67 43 6f 6e 74 72 61 63 verifyingContrac 00018930: 74 5d 29 2c 6e 3d 69 2e 76 69 73 69 74 28 6e 2c t]),n=i.visit(n, 00018940: 28 28 65 2c 74 29 3d 3e 22 61 64 64 72 65 73 73 ((e,t)=>"address 00018950: 22 3d 3d 3d 65 26 26 6f 5b 74 5d 3f 6f 5b 74 5d "===e&&o[t]?o[t] 00018960: 3a 74 29 29 2c 7b 64 6f 6d 61 69 6e 3a 65 2c 76 :t)),{domain:e,v 00018970: 61 6c 75 65 3a 6e 7d 7d 29 29 7d 73 74 61 74 69 alue:n}}))}stati 00018980: 63 20 67 65 74 50 61 79 6c 6f 61 64 28 65 2c 74 c getPayload(e,t 00018990: 2c 6e 29 7b 6d 6f 2e 68 61 73 68 44 6f 6d 61 69 ,n){mo.hashDomai 000189a0: 6e 28 65 29 3b 63 6f 6e 73 74 20 72 3d 7b 7d 2c n(e);const r={}, 000189b0: 6f 3d 5b 5d 3b 63 6f 2e 66 6f 72 45 61 63 68 28 o=[];co.forEach( 000189c0: 28 74 3d 3e 7b 63 6f 6e 73 74 20 6e 3d 65 5b 74 (t=>{const n=e[t 000189d0: 5d 3b 6e 75 6c 6c 21 3d 6e 26 26 28 72 5b 74 5d ];null!=n&&(r[t] 000189e0: 3d 70 6f 5b 74 5d 28 6e 29 2c 6f 2e 70 75 73 68 =po[t](n),o.push 000189f0: 28 7b 6e 61 6d 65 3a 74 2c 74 79 70 65 3a 6c 6f ({name:t,type:lo 00018a00: 5b 74 5d 7d 29 29 7d 29 29 3b 63 6f 6e 73 74 20 [t]}))}));const 00018a10: 69 3d 6d 6f 2e 66 72 6f 6d 28 74 29 2c 61 3d 69 i=mo.from(t),a=i 00018a20: 65 28 74 29 3b 72 65 74 75 72 6e 20 61 2e 45 49 e(t);return a.EI 00018a30: 50 37 31 32 44 6f 6d 61 69 6e 3f 65 6f 2e 74 68 P712Domain?eo.th 00018a40: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 00018a50: 28 22 74 79 70 65 73 20 6d 75 73 74 20 6e 6f 74 ("types must not 00018a60: 20 63 6f 6e 74 61 69 6e 20 45 49 50 37 31 32 44 contain EIP712D 00018a70: 6f 6d 61 69 6e 20 74 79 70 65 22 2c 22 74 79 70 omain type","typ 00018a80: 65 73 2e 45 49 50 37 31 32 44 6f 6d 61 69 6e 22 es.EIP712Domain" 00018a90: 2c 74 29 3a 61 2e 45 49 50 37 31 32 44 6f 6d 61 ,t):a.EIP712Doma 00018aa0: 69 6e 3d 6f 2c 69 2e 65 6e 63 6f 64 65 28 6e 29 in=o,i.encode(n) 00018ab0: 2c 7b 74 79 70 65 73 3a 61 2c 64 6f 6d 61 69 6e ,{types:a,domain 00018ac0: 3a 72 2c 70 72 69 6d 61 72 79 54 79 70 65 3a 69 :r,primaryType:i 00018ad0: 2e 70 72 69 6d 61 72 79 54 79 70 65 2c 6d 65 73 .primaryType,mes 00018ae0: 73 61 67 65 3a 69 2e 76 69 73 69 74 28 6e 2c 28 sage:i.visit(n,( 00018af0: 28 65 2c 74 29 3d 3e 7b 69 66 28 65 2e 6d 61 74 (e,t)=>{if(e.mat 00018b00: 63 68 28 2f 5e 62 79 74 65 73 28 5c 64 2a 29 2f ch(/^bytes(\d*)/ 00018b10: 29 29 72 65 74 75 72 6e 20 52 28 54 28 74 29 29 ))return R(T(t)) 00018b20: 3b 69 66 28 65 2e 6d 61 74 63 68 28 2f 5e 75 3f ;if(e.match(/^u? 00018b30: 69 6e 74 2f 29 29 72 65 74 75 72 6e 20 59 2e 66 int/))return Y.f 00018b40: 72 6f 6d 28 74 29 2e 74 6f 53 74 72 69 6e 67 28 rom(t).toString( 00018b50: 29 3b 73 77 69 74 63 68 28 65 29 7b 63 61 73 65 );switch(e){case 00018b60: 22 61 64 64 72 65 73 73 22 3a 72 65 74 75 72 6e "address":return 00018b70: 20 74 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 t.toLowerCase() 00018b80: 3b 63 61 73 65 22 62 6f 6f 6c 22 3a 72 65 74 75 ;case"bool":retu 00018b90: 72 6e 21 21 74 3b 63 61 73 65 22 73 74 72 69 6e rn!!t;case"strin 00018ba0: 67 22 3a 72 65 74 75 72 6e 22 73 74 72 69 6e 67 g":return"string 00018bb0: 22 21 3d 74 79 70 65 6f 66 20 74 26 26 65 6f 2e "!=typeof t&&eo. 00018bc0: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00018bd0: 6f 72 28 22 69 6e 76 61 6c 69 64 20 73 74 72 69 or("invalid stri 00018be0: 6e 67 22 2c 22 76 61 6c 75 65 22 2c 74 29 2c 74 ng","value",t),t 00018bf0: 7d 72 65 74 75 72 6e 20 65 6f 2e 74 68 72 6f 77 }return eo.throw 00018c00: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 ArgumentError("u 00018c10: 6e 73 75 70 70 6f 72 74 65 64 20 74 79 70 65 22 nsupported type" 00018c20: 2c 22 74 79 70 65 22 2c 65 29 7d 29 29 7d 7d 7d ,"type",e)}))}}} 00018c30: 63 6c 61 73 73 20 67 6f 7b 63 6f 6e 73 74 72 75 class go{constru 00018c40: 63 74 6f 72 28 65 29 7b 74 65 28 74 68 69 73 2c ctor(e){te(this, 00018c50: 22 61 6c 70 68 61 62 65 74 22 2c 65 29 2c 74 65 "alphabet",e),te 00018c60: 28 74 68 69 73 2c 22 62 61 73 65 22 2c 65 2e 6c (this,"base",e.l 00018c70: 65 6e 67 74 68 29 2c 74 65 28 74 68 69 73 2c 22 ength),te(this," 00018c80: 5f 61 6c 70 68 61 62 65 74 4d 61 70 22 2c 7b 7d _alphabetMap",{} 00018c90: 29 2c 74 65 28 74 68 69 73 2c 22 5f 6c 65 61 64 ),te(this,"_lead 00018ca0: 65 72 22 2c 65 2e 63 68 61 72 41 74 28 30 29 29 er",e.charAt(0)) 00018cb0: 3b 66 6f 72 28 6c 65 74 20 74 3d 30 3b 74 3c 65 ;for(let t=0;t<e 00018cc0: 2e 6c 65 6e 67 74 68 3b 74 2b 2b 29 74 68 69 73 .length;t++)this 00018cd0: 2e 5f 61 6c 70 68 61 62 65 74 4d 61 70 5b 65 2e ._alphabetMap[e. 00018ce0: 63 68 61 72 41 74 28 74 29 5d 3d 74 7d 65 6e 63 charAt(t)]=t}enc 00018cf0: 6f 64 65 28 65 29 7b 6c 65 74 20 74 3d 54 28 65 ode(e){let t=T(e 00018d00: 29 3b 69 66 28 30 3d 3d 3d 74 2e 6c 65 6e 67 74 );if(0===t.lengt 00018d10: 68 29 72 65 74 75 72 6e 22 22 3b 6c 65 74 20 6e h)return"";let n 00018d20: 3d 5b 30 5d 3b 66 6f 72 28 6c 65 74 20 65 3d 30 =[0];for(let e=0 00018d30: 3b 65 3c 74 2e 6c 65 6e 67 74 68 3b 2b 2b 65 29 ;e<t.length;++e) 00018d40: 7b 6c 65 74 20 72 3d 74 5b 65 5d 3b 66 6f 72 28 {let r=t[e];for( 00018d50: 6c 65 74 20 65 3d 30 3b 65 3c 6e 2e 6c 65 6e 67 let e=0;e<n.leng 00018d60: 74 68 3b 2b 2b 65 29 72 2b 3d 6e 5b 65 5d 3c 3c th;++e)r+=n[e]<< 00018d70: 38 2c 6e 5b 65 5d 3d 72 25 74 68 69 73 2e 62 61 8,n[e]=r%this.ba 00018d80: 73 65 2c 72 3d 72 2f 74 68 69 73 2e 62 61 73 65 se,r=r/this.base 00018d90: 7c 30 3b 66 6f 72 28 3b 72 3e 30 3b 29 6e 2e 70 |0;for(;r>0;)n.p 00018da0: 75 73 68 28 72 25 74 68 69 73 2e 62 61 73 65 29 ush(r%this.base) 00018db0: 2c 72 3d 72 2f 74 68 69 73 2e 62 61 73 65 7c 30 ,r=r/this.base|0 00018dc0: 7d 6c 65 74 20 72 3d 22 22 3b 66 6f 72 28 6c 65 }let r="";for(le 00018dd0: 74 20 65 3d 30 3b 30 3d 3d 3d 74 5b 65 5d 26 26 t e=0;0===t[e]&& 00018de0: 65 3c 74 2e 6c 65 6e 67 74 68 2d 31 3b 2b 2b 65 e<t.length-1;++e 00018df0: 29 72 2b 3d 74 68 69 73 2e 5f 6c 65 61 64 65 72 )r+=this._leader 00018e00: 3b 66 6f 72 28 6c 65 74 20 65 3d 6e 2e 6c 65 6e ;for(let e=n.len 00018e10: 67 74 68 2d 31 3b 65 3e 3d 30 3b 2d 2d 65 29 72 gth-1;e>=0;--e)r 00018e20: 2b 3d 74 68 69 73 2e 61 6c 70 68 61 62 65 74 5b +=this.alphabet[ 00018e30: 6e 5b 65 5d 5d 3b 72 65 74 75 72 6e 20 72 7d 64 n[e]];return r}d 00018e40: 65 63 6f 64 65 28 65 29 7b 69 66 28 22 73 74 72 ecode(e){if("str 00018e50: 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 65 29 74 ing"!=typeof e)t 00018e60: 68 72 6f 77 20 6e 65 77 20 54 79 70 65 45 72 72 hrow new TypeErr 00018e70: 6f 72 28 22 45 78 70 65 63 74 65 64 20 53 74 72 or("Expected Str 00018e80: 69 6e 67 22 29 3b 6c 65 74 20 74 3d 5b 5d 3b 69 ing");let t=[];i 00018e90: 66 28 30 3d 3d 3d 65 2e 6c 65 6e 67 74 68 29 72 f(0===e.length)r 00018ea0: 65 74 75 72 6e 20 6e 65 77 20 55 69 6e 74 38 41 eturn new Uint8A 00018eb0: 72 72 61 79 28 74 29 3b 74 2e 70 75 73 68 28 30 rray(t);t.push(0 00018ec0: 29 3b 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 6e 3c );for(let n=0;n< 00018ed0: 65 2e 6c 65 6e 67 74 68 3b 6e 2b 2b 29 7b 6c 65 e.length;n++){le 00018ee0: 74 20 72 3d 74 68 69 73 2e 5f 61 6c 70 68 61 62 t r=this._alphab 00018ef0: 65 74 4d 61 70 5b 65 5b 6e 5d 5d 3b 69 66 28 76 etMap[e[n]];if(v 00018f00: 6f 69 64 20 30 3d 3d 3d 72 29 74 68 72 6f 77 20 oid 0===r)throw 00018f10: 6e 65 77 20 45 72 72 6f 72 28 22 4e 6f 6e 2d 62 new Error("Non-b 00018f20: 61 73 65 22 2b 74 68 69 73 2e 62 61 73 65 2b 22 ase"+this.base+" 00018f30: 20 63 68 61 72 61 63 74 65 72 22 29 3b 6c 65 74 character");let 00018f40: 20 6f 3d 72 3b 66 6f 72 28 6c 65 74 20 65 3d 30 o=r;for(let e=0 00018f50: 3b 65 3c 74 2e 6c 65 6e 67 74 68 3b 2b 2b 65 29 ;e<t.length;++e) 00018f60: 6f 2b 3d 74 5b 65 5d 2a 74 68 69 73 2e 62 61 73 o+=t[e]*this.bas 00018f70: 65 2c 74 5b 65 5d 3d 32 35 35 26 6f 2c 6f 3e 3e e,t[e]=255&o,o>> 00018f80: 3d 38 3b 66 6f 72 28 3b 6f 3e 30 3b 29 74 2e 70 =8;for(;o>0;)t.p 00018f90: 75 73 68 28 32 35 35 26 6f 29 2c 6f 3e 3e 3d 38 ush(255&o),o>>=8 00018fa0: 7d 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 65 5b 6e }for(let n=0;e[n 00018fb0: 5d 3d 3d 3d 74 68 69 73 2e 5f 6c 65 61 64 65 72 ]===this._leader 00018fc0: 26 26 6e 3c 65 2e 6c 65 6e 67 74 68 2d 31 3b 2b &&n<e.length-1;+ 00018fd0: 2b 6e 29 74 2e 70 75 73 68 28 30 29 3b 72 65 74 +n)t.push(0);ret 00018fe0: 75 72 6e 20 54 28 6e 65 77 20 55 69 6e 74 38 41 urn T(new Uint8A 00018ff0: 72 72 61 79 28 74 2e 72 65 76 65 72 73 65 28 29 rray(t.reverse() 00019000: 29 29 7d 7d 6e 65 77 20 67 6f 28 22 61 62 63 64 ))}}new go("abcd 00019010: 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 efghijklmnopqrst 00019020: 75 76 77 78 79 7a 32 33 34 35 36 37 22 29 3b 63 uvwxyz234567");c 00019030: 6f 6e 73 74 20 62 6f 3d 6e 65 77 20 67 6f 28 22 onst bo=new go(" 00019040: 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 123456789ABCDEFG 00019050: 48 4a 4b 4c 4d 4e 50 51 52 53 54 55 56 57 58 59 HJKLMNPQRSTUVWXY 00019060: 5a 61 62 63 64 65 66 67 68 69 6a 6b 6d 6e 6f 70 Zabcdefghijkmnop 00019070: 71 72 73 74 75 76 77 78 79 7a 22 29 3b 76 61 72 qrstuvwxyz");var 00019080: 20 79 6f 3b 21 66 75 6e 63 74 69 6f 6e 28 65 29 yo;!function(e) 00019090: 7b 65 2e 73 68 61 32 35 36 3d 22 73 68 61 32 35 {e.sha256="sha25 000190a0: 36 22 2c 65 2e 73 68 61 35 31 32 3d 22 73 68 61 6",e.sha512="sha 000190b0: 35 31 32 22 7d 28 79 6f 7c 7c 28 79 6f 3d 7b 7d 512"}(yo||(yo={} 000190c0: 29 29 3b 63 6f 6e 73 74 20 76 6f 3d 6e 65 77 20 ));const vo=new 000190d0: 79 28 22 73 68 61 32 2f 35 2e 37 2e 30 22 29 3b y("sha2/5.7.0"); 000190e0: 66 75 6e 63 74 69 6f 6e 20 53 6f 28 65 29 7b 72 function So(e){r 000190f0: 65 74 75 72 6e 22 30 78 22 2b 68 6e 28 29 2e 72 eturn"0x"+hn().r 00019100: 69 70 65 6d 64 31 36 30 28 29 2e 75 70 64 61 74 ipemd160().updat 00019110: 65 28 54 28 65 29 29 2e 64 69 67 65 73 74 28 22 e(T(e)).digest(" 00019120: 68 65 78 22 29 7d 66 75 6e 63 74 69 6f 6e 20 45 hex")}function E 00019130: 6f 28 65 29 7b 72 65 74 75 72 6e 22 30 78 22 2b o(e){return"0x"+ 00019140: 68 6e 28 29 2e 73 68 61 32 35 36 28 29 2e 75 70 hn().sha256().up 00019150: 64 61 74 65 28 54 28 65 29 29 2e 64 69 67 65 73 date(T(e)).diges 00019160: 74 28 22 68 65 78 22 29 7d 66 75 6e 63 74 69 6f t("hex")}functio 00019170: 6e 20 5f 6f 28 65 29 7b 72 65 74 75 72 6e 22 30 n _o(e){return"0 00019180: 78 22 2b 68 6e 28 29 2e 73 68 61 35 31 32 28 29 x"+hn().sha512() 00019190: 2e 75 70 64 61 74 65 28 54 28 65 29 29 2e 64 69 .update(T(e)).di 000191a0: 67 65 73 74 28 22 68 65 78 22 29 7d 66 75 6e 63 gest("hex")}func 000191b0: 74 69 6f 6e 20 77 6f 28 65 2c 74 2c 6e 29 7b 72 tion wo(e,t,n){r 000191c0: 65 74 75 72 6e 20 79 6f 5b 65 5d 7c 7c 76 6f 2e eturn yo[e]||vo. 000191d0: 74 68 72 6f 77 45 72 72 6f 72 28 22 75 6e 73 75 throwError("unsu 000191e0: 70 70 6f 72 74 65 64 20 61 6c 67 6f 72 69 74 68 pported algorith 000191f0: 6d 20 22 2b 65 2c 79 2e 65 72 72 6f 72 73 2e 55 m "+e,y.errors.U 00019200: 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 41 NSUPPORTED_OPERA 00019210: 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a TION,{operation: 00019220: 22 68 6d 61 63 22 2c 61 6c 67 6f 72 69 74 68 6d "hmac",algorithm 00019230: 3a 65 7d 29 2c 22 30 78 22 2b 68 6e 28 29 2e 68 :e}),"0x"+hn().h 00019240: 6d 61 63 28 68 6e 28 29 5b 65 5d 2c 54 28 74 29 mac(hn()[e],T(t) 00019250: 29 2e 75 70 64 61 74 65 28 54 28 6e 29 29 2e 64 ).update(T(n)).d 00019260: 69 67 65 73 74 28 22 68 65 78 22 29 7d 66 75 6e igest("hex")}fun 00019270: 63 74 69 6f 6e 20 78 6f 28 65 2c 74 2c 6e 2c 72 ction xo(e,t,n,r 00019280: 2c 6f 29 7b 6c 65 74 20 69 3b 65 3d 54 28 65 29 ,o){let i;e=T(e) 00019290: 2c 74 3d 54 28 74 29 3b 6c 65 74 20 61 3d 31 3b ,t=T(t);let a=1; 000192a0: 63 6f 6e 73 74 20 73 3d 6e 65 77 20 55 69 6e 74 const s=new Uint 000192b0: 38 41 72 72 61 79 28 72 29 2c 6c 3d 6e 65 77 20 8Array(r),l=new 000192c0: 55 69 6e 74 38 41 72 72 61 79 28 74 2e 6c 65 6e Uint8Array(t.len 000192d0: 67 74 68 2b 34 29 3b 6c 65 74 20 63 2c 75 3b 6c gth+4);let c,u;l 000192e0: 2e 73 65 74 28 74 29 3b 66 6f 72 28 6c 65 74 20 .set(t);for(let 000192f0: 64 3d 31 3b 64 3c 3d 61 3b 64 2b 2b 29 7b 6c 5b d=1;d<=a;d++){l[ 00019300: 74 2e 6c 65 6e 67 74 68 5d 3d 64 3e 3e 32 34 26 t.length]=d>>24& 00019310: 32 35 35 2c 6c 5b 74 2e 6c 65 6e 67 74 68 2b 31 255,l[t.length+1 00019320: 5d 3d 64 3e 3e 31 36 26 32 35 35 2c 6c 5b 74 2e ]=d>>16&255,l[t. 00019330: 6c 65 6e 67 74 68 2b 32 5d 3d 64 3e 3e 38 26 32 length+2]=d>>8&2 00019340: 35 35 2c 6c 5b 74 2e 6c 65 6e 67 74 68 2b 33 5d 55,l[t.length+3] 00019350: 3d 32 35 35 26 64 3b 6c 65 74 20 70 3d 54 28 77 =255&d;let p=T(w 00019360: 6f 28 6f 2c 65 2c 6c 29 29 3b 69 7c 7c 28 69 3d o(o,e,l));i||(i= 00019370: 70 2e 6c 65 6e 67 74 68 2c 75 3d 6e 65 77 20 55 p.length,u=new U 00019380: 69 6e 74 38 41 72 72 61 79 28 69 29 2c 61 3d 4d int8Array(i),a=M 00019390: 61 74 68 2e 63 65 69 6c 28 72 2f 69 29 2c 63 3d ath.ceil(r/i),c= 000193a0: 72 2d 28 61 2d 31 29 2a 69 29 2c 75 2e 73 65 74 r-(a-1)*i),u.set 000193b0: 28 70 29 3b 66 6f 72 28 6c 65 74 20 74 3d 31 3b (p);for(let t=1; 000193c0: 74 3c 6e 3b 74 2b 2b 29 7b 70 3d 54 28 77 6f 28 t<n;t++){p=T(wo( 000193d0: 6f 2c 65 2c 70 29 29 3b 66 6f 72 28 6c 65 74 20 o,e,p));for(let 000193e0: 65 3d 30 3b 65 3c 69 3b 65 2b 2b 29 75 5b 65 5d e=0;e<i;e++)u[e] 000193f0: 5e 3d 70 5b 65 5d 7d 63 6f 6e 73 74 20 66 3d 28 ^=p[e]}const f=( 00019400: 64 2d 31 29 2a 69 2c 68 3d 64 3d 3d 3d 61 3f 63 d-1)*i,h=d===a?c 00019410: 3a 69 3b 73 2e 73 65 74 28 54 28 75 29 2e 73 6c :i;s.set(T(u).sl 00019420: 69 63 65 28 30 2c 68 29 2c 66 29 7d 72 65 74 75 ice(0,h),f)}retu 00019430: 72 6e 20 52 28 73 29 7d 63 6f 6e 73 74 20 54 6f rn R(s)}const To 00019440: 3d 6e 65 77 20 79 28 22 77 6f 72 64 6c 69 73 74 =new y("wordlist 00019450: 73 2f 35 2e 37 2e 30 22 29 3b 63 6c 61 73 73 20 s/5.7.0");class 00019460: 43 6f 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 Co{constructor(e 00019470: 29 7b 54 6f 2e 63 68 65 63 6b 41 62 73 74 72 61 ){To.checkAbstra 00019480: 63 74 28 6e 65 77 2e 74 61 72 67 65 74 2c 43 6f ct(new.target,Co 00019490: 29 2c 74 65 28 74 68 69 73 2c 22 6c 6f 63 61 6c ),te(this,"local 000194a0: 65 22 2c 65 29 7d 73 70 6c 69 74 28 65 29 7b 72 e",e)}split(e){r 000194b0: 65 74 75 72 6e 20 65 2e 74 6f 4c 6f 77 65 72 43 eturn e.toLowerC 000194c0: 61 73 65 28 29 2e 73 70 6c 69 74 28 2f 20 2b 2f ase().split(/ +/ 000194d0: 67 29 7d 6a 6f 69 6e 28 65 29 7b 72 65 74 75 72 g)}join(e){retur 000194e0: 6e 20 65 2e 6a 6f 69 6e 28 22 20 22 29 7d 73 74 n e.join(" ")}st 000194f0: 61 74 69 63 20 63 68 65 63 6b 28 65 29 7b 63 6f atic check(e){co 00019500: 6e 73 74 20 74 3d 5b 5d 3b 66 6f 72 28 6c 65 74 nst t=[];for(let 00019510: 20 6e 3d 30 3b 6e 3c 32 30 34 38 3b 6e 2b 2b 29 n=0;n<2048;n++) 00019520: 7b 63 6f 6e 73 74 20 72 3d 65 2e 67 65 74 57 6f {const r=e.getWo 00019530: 72 64 28 6e 29 3b 69 66 28 6e 21 3d 3d 65 2e 67 rd(n);if(n!==e.g 00019540: 65 74 57 6f 72 64 49 6e 64 65 78 28 72 29 29 72 etWordIndex(r))r 00019550: 65 74 75 72 6e 22 30 78 22 3b 74 2e 70 75 73 68 eturn"0x";t.push 00019560: 28 72 29 7d 72 65 74 75 72 6e 20 51 65 28 74 2e (r)}return Qe(t. 00019570: 6a 6f 69 6e 28 22 5c 6e 22 29 2b 22 5c 6e 22 29 join("\n")+"\n") 00019580: 7d 73 74 61 74 69 63 20 72 65 67 69 73 74 65 72 }static register 00019590: 28 65 2c 74 29 7b 74 7c 7c 28 74 3d 65 2e 6c 6f (e,t){t||(t=e.lo 000195a0: 63 61 6c 65 29 7d 7d 63 6f 6e 73 74 20 41 6f 3d cale)}}const Ao= 000195b0: 22 41 62 61 6e 64 6f 6e 41 62 69 6c 69 74 79 41 "AbandonAbilityA 000195c0: 62 6c 65 41 62 6f 75 74 41 62 6f 76 65 41 62 73 bleAboutAboveAbs 000195d0: 65 6e 74 41 62 73 6f 72 62 41 62 73 74 72 61 63 entAbsorbAbstrac 000195e0: 74 41 62 73 75 72 64 41 62 75 73 65 41 63 63 65 tAbsurdAbuseAcce 000195f0: 73 73 41 63 63 69 64 65 6e 74 41 63 63 6f 75 6e ssAccidentAccoun 00019600: 74 41 63 63 75 73 65 41 63 68 69 65 76 65 41 63 tAccuseAchieveAc 00019610: 69 64 41 63 6f 75 73 74 69 63 41 63 71 75 69 72 idAcousticAcquir 00019620: 65 41 63 72 6f 73 73 41 63 74 41 63 74 69 6f 6e eAcrossActAction 00019630: 41 63 74 6f 72 41 63 74 72 65 73 73 41 63 74 75 ActorActressActu 00019640: 61 6c 41 64 61 70 74 41 64 64 41 64 64 69 63 74 alAdaptAddAddict 00019650: 41 64 64 72 65 73 73 41 64 6a 75 73 74 41 64 6d AddressAdjustAdm 00019660: 69 74 41 64 75 6c 74 41 64 76 61 6e 63 65 41 64 itAdultAdvanceAd 00019670: 76 69 63 65 41 65 72 6f 62 69 63 41 66 66 61 69 viceAerobicAffai 00019680: 72 41 66 66 6f 72 64 41 66 72 61 69 64 41 67 61 rAffordAfraidAga 00019690: 69 6e 41 67 65 41 67 65 6e 74 41 67 72 65 65 41 inAgeAgentAgreeA 000196a0: 68 65 61 64 41 69 6d 41 69 72 41 69 72 70 6f 72 headAimAirAirpor 000196b0: 74 41 69 73 6c 65 41 6c 61 72 6d 41 6c 62 75 6d tAisleAlarmAlbum 000196c0: 41 6c 63 6f 68 6f 6c 41 6c 65 72 74 41 6c 69 65 AlcoholAlertAlie 000196d0: 6e 41 6c 6c 41 6c 6c 65 79 41 6c 6c 6f 77 41 6c nAllAlleyAllowAl 000196e0: 6d 6f 73 74 41 6c 6f 6e 65 41 6c 70 68 61 41 6c mostAloneAlphaAl 000196f0: 72 65 61 64 79 41 6c 73 6f 41 6c 74 65 72 41 6c readyAlsoAlterAl 00019700: 77 61 79 73 41 6d 61 74 65 75 72 41 6d 61 7a 69 waysAmateurAmazi 00019710: 6e 67 41 6d 6f 6e 67 41 6d 6f 75 6e 74 41 6d 75 ngAmongAmountAmu 00019720: 73 65 64 41 6e 61 6c 79 73 74 41 6e 63 68 6f 72 sedAnalystAnchor 00019730: 41 6e 63 69 65 6e 74 41 6e 67 65 72 41 6e 67 6c AncientAngerAngl 00019740: 65 41 6e 67 72 79 41 6e 69 6d 61 6c 41 6e 6b 6c eAngryAnimalAnkl 00019750: 65 41 6e 6e 6f 75 6e 63 65 41 6e 6e 75 61 6c 41 eAnnounceAnnualA 00019760: 6e 6f 74 68 65 72 41 6e 73 77 65 72 41 6e 74 65 notherAnswerAnte 00019770: 6e 6e 61 41 6e 74 69 71 75 65 41 6e 78 69 65 74 nnaAntiqueAnxiet 00019780: 79 41 6e 79 41 70 61 72 74 41 70 6f 6c 6f 67 79 yAnyApartApology 00019790: 41 70 70 65 61 72 41 70 70 6c 65 41 70 70 72 6f AppearAppleAppro 000197a0: 76 65 41 70 72 69 6c 41 72 63 68 41 72 63 74 69 veAprilArchArcti 000197b0: 63 41 72 65 61 41 72 65 6e 61 41 72 67 75 65 41 cAreaArenaArgueA 000197c0: 72 6d 41 72 6d 65 64 41 72 6d 6f 72 41 72 6d 79 rmArmedArmorArmy 000197d0: 41 72 6f 75 6e 64 41 72 72 61 6e 67 65 41 72 72 AroundArrangeArr 000197e0: 65 73 74 41 72 72 69 76 65 41 72 72 6f 77 41 72 estArriveArrowAr 000197f0: 74 41 72 74 65 66 61 63 74 41 72 74 69 73 74 41 tArtefactArtistA 00019800: 72 74 77 6f 72 6b 41 73 6b 41 73 70 65 63 74 41 rtworkAskAspectA 00019810: 73 73 61 75 6c 74 41 73 73 65 74 41 73 73 69 73 ssaultAssetAssis 00019820: 74 41 73 73 75 6d 65 41 73 74 68 6d 61 41 74 68 tAssumeAsthmaAth 00019830: 6c 65 74 65 41 74 6f 6d 41 74 74 61 63 6b 41 74 leteAtomAttackAt 00019840: 74 65 6e 64 41 74 74 69 74 75 64 65 41 74 74 72 tendAttitudeAttr 00019850: 61 63 74 41 75 63 74 69 6f 6e 41 75 64 69 74 41 actAuctionAuditA 00019860: 75 67 75 73 74 41 75 6e 74 41 75 74 68 6f 72 41 ugustAuntAuthorA 00019870: 75 74 6f 41 75 74 75 6d 6e 41 76 65 72 61 67 65 utoAutumnAverage 00019880: 41 76 6f 63 61 64 6f 41 76 6f 69 64 41 77 61 6b AvocadoAvoidAwak 00019890: 65 41 77 61 72 65 41 77 61 79 41 77 65 73 6f 6d eAwareAwayAwesom 000198a0: 65 41 77 66 75 6c 41 77 6b 77 61 72 64 41 78 69 eAwfulAwkwardAxi 000198b0: 73 42 61 62 79 42 61 63 68 65 6c 6f 72 42 61 63 sBabyBachelorBac 000198c0: 6f 6e 42 61 64 67 65 42 61 67 42 61 6c 61 6e 63 onBadgeBagBalanc 000198d0: 65 42 61 6c 63 6f 6e 79 42 61 6c 6c 42 61 6d 62 eBalconyBallBamb 000198e0: 6f 6f 42 61 6e 61 6e 61 42 61 6e 6e 65 72 42 61 ooBananaBannerBa 000198f0: 72 42 61 72 65 6c 79 42 61 72 67 61 69 6e 42 61 rBarelyBargainBa 00019900: 72 72 65 6c 42 61 73 65 42 61 73 69 63 42 61 73 rrelBaseBasicBas 00019910: 6b 65 74 42 61 74 74 6c 65 42 65 61 63 68 42 65 ketBattleBeachBe 00019920: 61 6e 42 65 61 75 74 79 42 65 63 61 75 73 65 42 anBeautyBecauseB 00019930: 65 63 6f 6d 65 42 65 65 66 42 65 66 6f 72 65 42 ecomeBeefBeforeB 00019940: 65 67 69 6e 42 65 68 61 76 65 42 65 68 69 6e 64 eginBehaveBehind 00019950: 42 65 6c 69 65 76 65 42 65 6c 6f 77 42 65 6c 74 BelieveBelowBelt 00019960: 42 65 6e 63 68 42 65 6e 65 66 69 74 42 65 73 74 BenchBenefitBest 00019970: 42 65 74 72 61 79 42 65 74 74 65 72 42 65 74 77 BetrayBetterBetw 00019980: 65 65 6e 42 65 79 6f 6e 64 42 69 63 79 63 6c 65 eenBeyondBicycle 00019990: 42 69 64 42 69 6b 65 42 69 6e 64 42 69 6f 6c 6f BidBikeBindBiolo 000199a0: 67 79 42 69 72 64 42 69 72 74 68 42 69 74 74 65 gyBirdBirthBitte 000199b0: 72 42 6c 61 63 6b 42 6c 61 64 65 42 6c 61 6d 65 rBlackBladeBlame 000199c0: 42 6c 61 6e 6b 65 74 42 6c 61 73 74 42 6c 65 61 BlanketBlastBlea 000199d0: 6b 42 6c 65 73 73 42 6c 69 6e 64 42 6c 6f 6f 64 kBlessBlindBlood 000199e0: 42 6c 6f 73 73 6f 6d 42 6c 6f 75 73 65 42 6c 75 BlossomBlouseBlu 000199f0: 65 42 6c 75 72 42 6c 75 73 68 42 6f 61 72 64 42 eBlurBlushBoardB 00019a00: 6f 61 74 42 6f 64 79 42 6f 69 6c 42 6f 6d 62 42 oatBodyBoilBombB 00019a10: 6f 6e 65 42 6f 6e 75 73 42 6f 6f 6b 42 6f 6f 73 oneBonusBookBoos 00019a20: 74 42 6f 72 64 65 72 42 6f 72 69 6e 67 42 6f 72 tBorderBoringBor 00019a30: 72 6f 77 42 6f 73 73 42 6f 74 74 6f 6d 42 6f 75 rowBossBottomBou 00019a40: 6e 63 65 42 6f 78 42 6f 79 42 72 61 63 6b 65 74 nceBoxBoyBracket 00019a50: 42 72 61 69 6e 42 72 61 6e 64 42 72 61 73 73 42 BrainBrandBrassB 00019a60: 72 61 76 65 42 72 65 61 64 42 72 65 65 7a 65 42 raveBreadBreezeB 00019a70: 72 69 63 6b 42 72 69 64 67 65 42 72 69 65 66 42 rickBridgeBriefB 00019a80: 72 69 67 68 74 42 72 69 6e 67 42 72 69 73 6b 42 rightBringBriskB 00019a90: 72 6f 63 63 6f 6c 69 42 72 6f 6b 65 6e 42 72 6f roccoliBrokenBro 00019aa0: 6e 7a 65 42 72 6f 6f 6d 42 72 6f 74 68 65 72 42 nzeBroomBrotherB 00019ab0: 72 6f 77 6e 42 72 75 73 68 42 75 62 62 6c 65 42 rownBrushBubbleB 00019ac0: 75 64 64 79 42 75 64 67 65 74 42 75 66 66 61 6c uddyBudgetBuffal 00019ad0: 6f 42 75 69 6c 64 42 75 6c 62 42 75 6c 6b 42 75 oBuildBulbBulkBu 00019ae0: 6c 6c 65 74 42 75 6e 64 6c 65 42 75 6e 6b 65 72 lletBundleBunker 00019af0: 42 75 72 64 65 6e 42 75 72 67 65 72 42 75 72 73 BurdenBurgerBurs 00019b00: 74 42 75 73 42 75 73 69 6e 65 73 73 42 75 73 79 tBusBusinessBusy 00019b10: 42 75 74 74 65 72 42 75 79 65 72 42 75 7a 7a 43 ButterBuyerBuzzC 00019b20: 61 62 62 61 67 65 43 61 62 69 6e 43 61 62 6c 65 abbageCabinCable 00019b30: 43 61 63 74 75 73 43 61 67 65 43 61 6b 65 43 61 CactusCageCakeCa 00019b40: 6c 6c 43 61 6c 6d 43 61 6d 65 72 61 43 61 6d 70 llCalmCameraCamp 00019b50: 43 61 6e 43 61 6e 61 6c 43 61 6e 63 65 6c 43 61 CanCanalCancelCa 00019b60: 6e 64 79 43 61 6e 6e 6f 6e 43 61 6e 6f 65 43 61 ndyCannonCanoeCa 00019b70: 6e 76 61 73 43 61 6e 79 6f 6e 43 61 70 61 62 6c nvasCanyonCapabl 00019b80: 65 43 61 70 69 74 61 6c 43 61 70 74 61 69 6e 43 eCapitalCaptainC 00019b90: 61 72 43 61 72 62 6f 6e 43 61 72 64 43 61 72 67 arCarbonCardCarg 00019ba0: 6f 43 61 72 70 65 74 43 61 72 72 79 43 61 72 74 oCarpetCarryCart 00019bb0: 43 61 73 65 43 61 73 68 43 61 73 69 6e 6f 43 61 CaseCashCasinoCa 00019bc0: 73 74 6c 65 43 61 73 75 61 6c 43 61 74 43 61 74 stleCasualCatCat 00019bd0: 61 6c 6f 67 43 61 74 63 68 43 61 74 65 67 6f 72 alogCatchCategor 00019be0: 79 43 61 74 74 6c 65 43 61 75 67 68 74 43 61 75 yCattleCaughtCau 00019bf0: 73 65 43 61 75 74 69 6f 6e 43 61 76 65 43 65 69 seCautionCaveCei 00019c00: 6c 69 6e 67 43 65 6c 65 72 79 43 65 6d 65 6e 74 lingCeleryCement 00019c10: 43 65 6e 73 75 73 43 65 6e 74 75 72 79 43 65 72 CensusCenturyCer 00019c20: 65 61 6c 43 65 72 74 61 69 6e 43 68 61 69 72 43 ealCertainChairC 00019c30: 68 61 6c 6b 43 68 61 6d 70 69 6f 6e 43 68 61 6e halkChampionChan 00019c40: 67 65 43 68 61 6f 73 43 68 61 70 74 65 72 43 68 geChaosChapterCh 00019c50: 61 72 67 65 43 68 61 73 65 43 68 61 74 43 68 65 argeChaseChatChe 00019c60: 61 70 43 68 65 63 6b 43 68 65 65 73 65 43 68 65 apCheckCheeseChe 00019c70: 66 43 68 65 72 72 79 43 68 65 73 74 43 68 69 63 fCherryChestChic 00019c80: 6b 65 6e 43 68 69 65 66 43 68 69 6c 64 43 68 69 kenChiefChildChi 00019c90: 6d 6e 65 79 43 68 6f 69 63 65 43 68 6f 6f 73 65 mneyChoiceChoose 00019ca0: 43 68 72 6f 6e 69 63 43 68 75 63 6b 6c 65 43 68 ChronicChuckleCh 00019cb0: 75 6e 6b 43 68 75 72 6e 43 69 67 61 72 43 69 6e unkChurnCigarCin 00019cc0: 6e 61 6d 6f 6e 43 69 72 63 6c 65 43 69 74 69 7a namonCircleCitiz 00019cd0: 65 6e 43 69 74 79 43 69 76 69 6c 43 6c 61 69 6d enCityCivilClaim 00019ce0: 43 6c 61 70 43 6c 61 72 69 66 79 43 6c 61 77 43 ClapClarifyClawC 00019cf0: 6c 61 79 43 6c 65 61 6e 43 6c 65 72 6b 43 6c 65 layCleanClerkCle 00019d00: 76 65 72 43 6c 69 63 6b 43 6c 69 65 6e 74 43 6c verClickClientCl 00019d10: 69 66 66 43 6c 69 6d 62 43 6c 69 6e 69 63 43 6c iffClimbClinicCl 00019d20: 69 70 43 6c 6f 63 6b 43 6c 6f 67 43 6c 6f 73 65 ipClockClogClose 00019d30: 43 6c 6f 74 68 43 6c 6f 75 64 43 6c 6f 77 6e 43 ClothCloudClownC 00019d40: 6c 75 62 43 6c 75 6d 70 43 6c 75 73 74 65 72 43 lubClumpClusterC 00019d50: 6c 75 74 63 68 43 6f 61 63 68 43 6f 61 73 74 43 lutchCoachCoastC 00019d60: 6f 63 6f 6e 75 74 43 6f 64 65 43 6f 66 66 65 65 oconutCodeCoffee 00019d70: 43 6f 69 6c 43 6f 69 6e 43 6f 6c 6c 65 63 74 43 CoilCoinCollectC 00019d80: 6f 6c 6f 72 43 6f 6c 75 6d 6e 43 6f 6d 62 69 6e olorColumnCombin 00019d90: 65 43 6f 6d 65 43 6f 6d 66 6f 72 74 43 6f 6d 69 eComeComfortComi 00019da0: 63 43 6f 6d 6d 6f 6e 43 6f 6d 70 61 6e 79 43 6f cCommonCompanyCo 00019db0: 6e 63 65 72 74 43 6f 6e 64 75 63 74 43 6f 6e 66 ncertConductConf 00019dc0: 69 72 6d 43 6f 6e 67 72 65 73 73 43 6f 6e 6e 65 irmCongressConne 00019dd0: 63 74 43 6f 6e 73 69 64 65 72 43 6f 6e 74 72 6f ctConsiderContro 00019de0: 6c 43 6f 6e 76 69 6e 63 65 43 6f 6f 6b 43 6f 6f lConvinceCookCoo 00019df0: 6c 43 6f 70 70 65 72 43 6f 70 79 43 6f 72 61 6c lCopperCopyCoral 00019e00: 43 6f 72 65 43 6f 72 6e 43 6f 72 72 65 63 74 43 CoreCornCorrectC 00019e10: 6f 73 74 43 6f 74 74 6f 6e 43 6f 75 63 68 43 6f ostCottonCouchCo 00019e20: 75 6e 74 72 79 43 6f 75 70 6c 65 43 6f 75 72 73 untryCoupleCours 00019e30: 65 43 6f 75 73 69 6e 43 6f 76 65 72 43 6f 79 6f eCousinCoverCoyo 00019e40: 74 65 43 72 61 63 6b 43 72 61 64 6c 65 43 72 61 teCrackCradleCra 00019e50: 66 74 43 72 61 6d 43 72 61 6e 65 43 72 61 73 68 ftCramCraneCrash 00019e60: 43 72 61 74 65 72 43 72 61 77 6c 43 72 61 7a 79 CraterCrawlCrazy 00019e70: 43 72 65 61 6d 43 72 65 64 69 74 43 72 65 65 6b CreamCreditCreek 00019e80: 43 72 65 77 43 72 69 63 6b 65 74 43 72 69 6d 65 CrewCricketCrime 00019e90: 43 72 69 73 70 43 72 69 74 69 63 43 72 6f 70 43 CrispCriticCropC 00019ea0: 72 6f 73 73 43 72 6f 75 63 68 43 72 6f 77 64 43 rossCrouchCrowdC 00019eb0: 72 75 63 69 61 6c 43 72 75 65 6c 43 72 75 69 73 rucialCruelCruis 00019ec0: 65 43 72 75 6d 62 6c 65 43 72 75 6e 63 68 43 72 eCrumbleCrunchCr 00019ed0: 75 73 68 43 72 79 43 72 79 73 74 61 6c 43 75 62 ushCryCrystalCub 00019ee0: 65 43 75 6c 74 75 72 65 43 75 70 43 75 70 62 6f eCultureCupCupbo 00019ef0: 61 72 64 43 75 72 69 6f 75 73 43 75 72 72 65 6e ardCuriousCurren 00019f00: 74 43 75 72 74 61 69 6e 43 75 72 76 65 43 75 73 tCurtainCurveCus 00019f10: 68 69 6f 6e 43 75 73 74 6f 6d 43 75 74 65 43 79 hionCustomCuteCy 00019f20: 63 6c 65 44 61 64 44 61 6d 61 67 65 44 61 6d 70 cleDadDamageDamp 00019f30: 44 61 6e 63 65 44 61 6e 67 65 72 44 61 72 69 6e DanceDangerDarin 00019f40: 67 44 61 73 68 44 61 75 67 68 74 65 72 44 61 77 gDashDaughterDaw 00019f50: 6e 44 61 79 44 65 61 6c 44 65 62 61 74 65 44 65 nDayDealDebateDe 00019f60: 62 72 69 73 44 65 63 61 64 65 44 65 63 65 6d 62 brisDecadeDecemb 00019f70: 65 72 44 65 63 69 64 65 44 65 63 6c 69 6e 65 44 erDecideDeclineD 00019f80: 65 63 6f 72 61 74 65 44 65 63 72 65 61 73 65 44 ecorateDecreaseD 00019f90: 65 65 72 44 65 66 65 6e 73 65 44 65 66 69 6e 65 eerDefenseDefine 00019fa0: 44 65 66 79 44 65 67 72 65 65 44 65 6c 61 79 44 DefyDegreeDelayD 00019fb0: 65 6c 69 76 65 72 44 65 6d 61 6e 64 44 65 6d 69 eliverDemandDemi 00019fc0: 73 65 44 65 6e 69 61 6c 44 65 6e 74 69 73 74 44 seDenialDentistD 00019fd0: 65 6e 79 44 65 70 61 72 74 44 65 70 65 6e 64 44 enyDepartDependD 00019fe0: 65 70 6f 73 69 74 44 65 70 74 68 44 65 70 75 74 epositDepthDeput 00019ff0: 79 44 65 72 69 76 65 44 65 73 63 72 69 62 65 44 yDeriveDescribeD 0001a000: 65 73 65 72 74 44 65 73 69 67 6e 44 65 73 6b 44 esertDesignDeskD 0001a010: 65 73 70 61 69 72 44 65 73 74 72 6f 79 44 65 74 espairDestroyDet 0001a020: 61 69 6c 44 65 74 65 63 74 44 65 76 65 6c 6f 70 ailDetectDevelop 0001a030: 44 65 76 69 63 65 44 65 76 6f 74 65 44 69 61 67 DeviceDevoteDiag 0001a040: 72 61 6d 44 69 61 6c 44 69 61 6d 6f 6e 64 44 69 ramDialDiamondDi 0001a050: 61 72 79 44 69 63 65 44 69 65 73 65 6c 44 69 65 aryDiceDieselDie 0001a060: 74 44 69 66 66 65 72 44 69 67 69 74 61 6c 44 69 tDifferDigitalDi 0001a070: 67 6e 69 74 79 44 69 6c 65 6d 6d 61 44 69 6e 6e gnityDilemmaDinn 0001a080: 65 72 44 69 6e 6f 73 61 75 72 44 69 72 65 63 74 erDinosaurDirect 0001a090: 44 69 72 74 44 69 73 61 67 72 65 65 44 69 73 63 DirtDisagreeDisc 0001a0a0: 6f 76 65 72 44 69 73 65 61 73 65 44 69 73 68 44 overDiseaseDishD 0001a0b0: 69 73 6d 69 73 73 44 69 73 6f 72 64 65 72 44 69 ismissDisorderDi 0001a0c0: 73 70 6c 61 79 44 69 73 74 61 6e 63 65 44 69 76 splayDistanceDiv 0001a0d0: 65 72 74 44 69 76 69 64 65 44 69 76 6f 72 63 65 ertDivideDivorce 0001a0e0: 44 69 7a 7a 79 44 6f 63 74 6f 72 44 6f 63 75 6d DizzyDoctorDocum 0001a0f0: 65 6e 74 44 6f 67 44 6f 6c 6c 44 6f 6c 70 68 69 entDogDollDolphi 0001a100: 6e 44 6f 6d 61 69 6e 44 6f 6e 61 74 65 44 6f 6e nDomainDonateDon 0001a110: 6b 65 79 44 6f 6e 6f 72 44 6f 6f 72 44 6f 73 65 keyDonorDoorDose 0001a120: 44 6f 75 62 6c 65 44 6f 76 65 44 72 61 66 74 44 DoubleDoveDraftD 0001a130: 72 61 67 6f 6e 44 72 61 6d 61 44 72 61 73 74 69 ragonDramaDrasti 0001a140: 63 44 72 61 77 44 72 65 61 6d 44 72 65 73 73 44 cDrawDreamDressD 0001a150: 72 69 66 74 44 72 69 6c 6c 44 72 69 6e 6b 44 72 riftDrillDrinkDr 0001a160: 69 70 44 72 69 76 65 44 72 6f 70 44 72 75 6d 44 ipDriveDropDrumD 0001a170: 72 79 44 75 63 6b 44 75 6d 62 44 75 6e 65 44 75 ryDuckDumbDuneDu 0001a180: 72 69 6e 67 44 75 73 74 44 75 74 63 68 44 75 74 ringDustDutchDut 0001a190: 79 44 77 61 72 66 44 79 6e 61 6d 69 63 45 61 67 yDwarfDynamicEag 0001a1a0: 65 72 45 61 67 6c 65 45 61 72 6c 79 45 61 72 6e erEagleEarlyEarn 0001a1b0: 45 61 72 74 68 45 61 73 69 6c 79 45 61 73 74 45 EarthEasilyEastE 0001a1c0: 61 73 79 45 63 68 6f 45 63 6f 6c 6f 67 79 45 63 asyEchoEcologyEc 0001a1d0: 6f 6e 6f 6d 79 45 64 67 65 45 64 69 74 45 64 75 onomyEdgeEditEdu 0001a1e0: 63 61 74 65 45 66 66 6f 72 74 45 67 67 45 69 67 cateEffortEggEig 0001a1f0: 68 74 45 69 74 68 65 72 45 6c 62 6f 77 45 6c 64 htEitherElbowEld 0001a200: 65 72 45 6c 65 63 74 72 69 63 45 6c 65 67 61 6e erElectricElegan 0001a210: 74 45 6c 65 6d 65 6e 74 45 6c 65 70 68 61 6e 74 tElementElephant 0001a220: 45 6c 65 76 61 74 6f 72 45 6c 69 74 65 45 6c 73 ElevatorEliteEls 0001a230: 65 45 6d 62 61 72 6b 45 6d 62 6f 64 79 45 6d 62 eEmbarkEmbodyEmb 0001a240: 72 61 63 65 45 6d 65 72 67 65 45 6d 6f 74 69 6f raceEmergeEmotio 0001a250: 6e 45 6d 70 6c 6f 79 45 6d 70 6f 77 65 72 45 6d nEmployEmpowerEm 0001a260: 70 74 79 45 6e 61 62 6c 65 45 6e 61 63 74 45 6e ptyEnableEnactEn 0001a270: 64 45 6e 64 6c 65 73 73 45 6e 64 6f 72 73 65 45 dEndlessEndorseE 0001a280: 6e 65 6d 79 45 6e 65 72 67 79 45 6e 66 6f 72 63 nemyEnergyEnforc 0001a290: 65 45 6e 67 61 67 65 45 6e 67 69 6e 65 45 6e 68 eEngageEngineEnh 0001a2a0: 61 6e 63 65 45 6e 6a 6f 79 45 6e 6c 69 73 74 45 anceEnjoyEnlistE 0001a2b0: 6e 6f 75 67 68 45 6e 72 69 63 68 45 6e 72 6f 6c noughEnrichEnrol 0001a2c0: 6c 45 6e 73 75 72 65 45 6e 74 65 72 45 6e 74 69 lEnsureEnterEnti 0001a2d0: 72 65 45 6e 74 72 79 45 6e 76 65 6c 6f 70 65 45 reEntryEnvelopeE 0001a2e0: 70 69 73 6f 64 65 45 71 75 61 6c 45 71 75 69 70 pisodeEqualEquip 0001a2f0: 45 72 61 45 72 61 73 65 45 72 6f 64 65 45 72 6f EraEraseErodeEro 0001a300: 73 69 6f 6e 45 72 72 6f 72 45 72 75 70 74 45 73 sionErrorEruptEs 0001a310: 63 61 70 65 45 73 73 61 79 45 73 73 65 6e 63 65 capeEssayEssence 0001a320: 45 73 74 61 74 65 45 74 65 72 6e 61 6c 45 74 68 EstateEternalEth 0001a330: 69 63 73 45 76 69 64 65 6e 63 65 45 76 69 6c 45 icsEvidenceEvilE 0001a340: 76 6f 6b 65 45 76 6f 6c 76 65 45 78 61 63 74 45 vokeEvolveExactE 0001a350: 78 61 6d 70 6c 65 45 78 63 65 73 73 45 78 63 68 xampleExcessExch 0001a360: 61 6e 67 65 45 78 63 69 74 65 45 78 63 6c 75 64 angeExciteExclud 0001a370: 65 45 78 63 75 73 65 45 78 65 63 75 74 65 45 78 eExcuseExecuteEx 0001a380: 65 72 63 69 73 65 45 78 68 61 75 73 74 45 78 68 erciseExhaustExh 0001a390: 69 62 69 74 45 78 69 6c 65 45 78 69 73 74 45 78 ibitExileExistEx 0001a3a0: 69 74 45 78 6f 74 69 63 45 78 70 61 6e 64 45 78 itExoticExpandEx 0001a3b0: 70 65 63 74 45 78 70 69 72 65 45 78 70 6c 61 69 pectExpireExplai 0001a3c0: 6e 45 78 70 6f 73 65 45 78 70 72 65 73 73 45 78 nExposeExpressEx 0001a3d0: 74 65 6e 64 45 78 74 72 61 45 79 65 45 79 65 62 tendExtraEyeEyeb 0001a3e0: 72 6f 77 46 61 62 72 69 63 46 61 63 65 46 61 63 rowFabricFaceFac 0001a3f0: 75 6c 74 79 46 61 64 65 46 61 69 6e 74 46 61 69 ultyFadeFaintFai 0001a400: 74 68 46 61 6c 6c 46 61 6c 73 65 46 61 6d 65 46 thFallFalseFameF 0001a410: 61 6d 69 6c 79 46 61 6d 6f 75 73 46 61 6e 46 61 amilyFamousFanFa 0001a420: 6e 63 79 46 61 6e 74 61 73 79 46 61 72 6d 46 61 ncyFantasyFarmFa 0001a430: 73 68 69 6f 6e 46 61 74 46 61 74 61 6c 46 61 74 shionFatFatalFat 0001a440: 68 65 72 46 61 74 69 67 75 65 46 61 75 6c 74 46 herFatigueFaultF 0001a450: 61 76 6f 72 69 74 65 46 65 61 74 75 72 65 46 65 avoriteFeatureFe 0001a460: 62 72 75 61 72 79 46 65 64 65 72 61 6c 46 65 65 bruaryFederalFee 0001a470: 46 65 65 64 46 65 65 6c 46 65 6d 61 6c 65 46 65 FeedFeelFemaleFe 0001a480: 6e 63 65 46 65 73 74 69 76 61 6c 46 65 74 63 68 nceFestivalFetch 0001a490: 46 65 76 65 72 46 65 77 46 69 62 65 72 46 69 63 FeverFewFiberFic 0001a4a0: 74 69 6f 6e 46 69 65 6c 64 46 69 67 75 72 65 46 tionFieldFigureF 0001a4b0: 69 6c 65 46 69 6c 6d 46 69 6c 74 65 72 46 69 6e ileFilmFilterFin 0001a4c0: 61 6c 46 69 6e 64 46 69 6e 65 46 69 6e 67 65 72 alFindFineFinger 0001a4d0: 46 69 6e 69 73 68 46 69 72 65 46 69 72 6d 46 69 FinishFireFirmFi 0001a4e0: 72 73 74 46 69 73 63 61 6c 46 69 73 68 46 69 74 rstFiscalFishFit 0001a4f0: 46 69 74 6e 65 73 73 46 69 78 46 6c 61 67 46 6c FitnessFixFlagFl 0001a500: 61 6d 65 46 6c 61 73 68 46 6c 61 74 46 6c 61 76 ameFlashFlatFlav 0001a510: 6f 72 46 6c 65 65 46 6c 69 67 68 74 46 6c 69 70 orFleeFlightFlip 0001a520: 46 6c 6f 61 74 46 6c 6f 63 6b 46 6c 6f 6f 72 46 FloatFlockFloorF 0001a530: 6c 6f 77 65 72 46 6c 75 69 64 46 6c 75 73 68 46 lowerFluidFlushF 0001a540: 6c 79 46 6f 61 6d 46 6f 63 75 73 46 6f 67 46 6f lyFoamFocusFogFo 0001a550: 69 6c 46 6f 6c 64 46 6f 6c 6c 6f 77 46 6f 6f 64 ilFoldFollowFood 0001a560: 46 6f 6f 74 46 6f 72 63 65 46 6f 72 65 73 74 46 FootForceForestF 0001a570: 6f 72 67 65 74 46 6f 72 6b 46 6f 72 74 75 6e 65 orgetForkFortune 0001a580: 46 6f 72 75 6d 46 6f 72 77 61 72 64 46 6f 73 73 ForumForwardFoss 0001a590: 69 6c 46 6f 73 74 65 72 46 6f 75 6e 64 46 6f 78 ilFosterFoundFox 0001a5a0: 46 72 61 67 69 6c 65 46 72 61 6d 65 46 72 65 71 FragileFrameFreq 0001a5b0: 75 65 6e 74 46 72 65 73 68 46 72 69 65 6e 64 46 uentFreshFriendF 0001a5c0: 72 69 6e 67 65 46 72 6f 67 46 72 6f 6e 74 46 72 ringeFrogFrontFr 0001a5d0: 6f 73 74 46 72 6f 77 6e 46 72 6f 7a 65 6e 46 72 ostFrownFrozenFr 0001a5e0: 75 69 74 46 75 65 6c 46 75 6e 46 75 6e 6e 79 46 uitFuelFunFunnyF 0001a5f0: 75 72 6e 61 63 65 46 75 72 79 46 75 74 75 72 65 urnaceFuryFuture 0001a600: 47 61 64 67 65 74 47 61 69 6e 47 61 6c 61 78 79 GadgetGainGalaxy 0001a610: 47 61 6c 6c 65 72 79 47 61 6d 65 47 61 70 47 61 GalleryGameGapGa 0001a620: 72 61 67 65 47 61 72 62 61 67 65 47 61 72 64 65 rageGarbageGarde 0001a630: 6e 47 61 72 6c 69 63 47 61 72 6d 65 6e 74 47 61 nGarlicGarmentGa 0001a640: 73 47 61 73 70 47 61 74 65 47 61 74 68 65 72 47 sGaspGateGatherG 0001a650: 61 75 67 65 47 61 7a 65 47 65 6e 65 72 61 6c 47 augeGazeGeneralG 0001a660: 65 6e 69 75 73 47 65 6e 72 65 47 65 6e 74 6c 65 eniusGenreGentle 0001a670: 47 65 6e 75 69 6e 65 47 65 73 74 75 72 65 47 68 GenuineGestureGh 0001a680: 6f 73 74 47 69 61 6e 74 47 69 66 74 47 69 67 67 ostGiantGiftGigg 0001a690: 6c 65 47 69 6e 67 65 72 47 69 72 61 66 66 65 47 leGingerGiraffeG 0001a6a0: 69 72 6c 47 69 76 65 47 6c 61 64 47 6c 61 6e 63 irlGiveGladGlanc 0001a6b0: 65 47 6c 61 72 65 47 6c 61 73 73 47 6c 69 64 65 eGlareGlassGlide 0001a6c0: 47 6c 69 6d 70 73 65 47 6c 6f 62 65 47 6c 6f 6f GlimpseGlobeGloo 0001a6d0: 6d 47 6c 6f 72 79 47 6c 6f 76 65 47 6c 6f 77 47 mGloryGloveGlowG 0001a6e0: 6c 75 65 47 6f 61 74 47 6f 64 64 65 73 73 47 6f lueGoatGoddessGo 0001a6f0: 6c 64 47 6f 6f 64 47 6f 6f 73 65 47 6f 72 69 6c ldGoodGooseGoril 0001a700: 6c 61 47 6f 73 70 65 6c 47 6f 73 73 69 70 47 6f laGospelGossipGo 0001a710: 76 65 72 6e 47 6f 77 6e 47 72 61 62 47 72 61 63 vernGownGrabGrac 0001a720: 65 47 72 61 69 6e 47 72 61 6e 74 47 72 61 70 65 eGrainGrantGrape 0001a730: 47 72 61 73 73 47 72 61 76 69 74 79 47 72 65 61 GrassGravityGrea 0001a740: 74 47 72 65 65 6e 47 72 69 64 47 72 69 65 66 47 tGreenGridGriefG 0001a750: 72 69 74 47 72 6f 63 65 72 79 47 72 6f 75 70 47 ritGroceryGroupG 0001a760: 72 6f 77 47 72 75 6e 74 47 75 61 72 64 47 75 65 rowGruntGuardGue 0001a770: 73 73 47 75 69 64 65 47 75 69 6c 74 47 75 69 74 ssGuideGuiltGuit 0001a780: 61 72 47 75 6e 47 79 6d 48 61 62 69 74 48 61 69 arGunGymHabitHai 0001a790: 72 48 61 6c 66 48 61 6d 6d 65 72 48 61 6d 73 74 rHalfHammerHamst 0001a7a0: 65 72 48 61 6e 64 48 61 70 70 79 48 61 72 62 6f erHandHappyHarbo 0001a7b0: 72 48 61 72 64 48 61 72 73 68 48 61 72 76 65 73 rHardHarshHarves 0001a7c0: 74 48 61 74 48 61 76 65 48 61 77 6b 48 61 7a 61 tHatHaveHawkHaza 0001a7d0: 72 64 48 65 61 64 48 65 61 6c 74 68 48 65 61 72 rdHeadHealthHear 0001a7e0: 74 48 65 61 76 79 48 65 64 67 65 68 6f 67 48 65 tHeavyHedgehogHe 0001a7f0: 69 67 68 74 48 65 6c 6c 6f 48 65 6c 6d 65 74 48 ightHelloHelmetH 0001a800: 65 6c 70 48 65 6e 48 65 72 6f 48 69 64 64 65 6e elpHenHeroHidden 0001a810: 48 69 67 68 48 69 6c 6c 48 69 6e 74 48 69 70 48 HighHillHintHipH 0001a820: 69 72 65 48 69 73 74 6f 72 79 48 6f 62 62 79 48 ireHistoryHobbyH 0001a830: 6f 63 6b 65 79 48 6f 6c 64 48 6f 6c 65 48 6f 6c ockeyHoldHoleHol 0001a840: 69 64 61 79 48 6f 6c 6c 6f 77 48 6f 6d 65 48 6f idayHollowHomeHo 0001a850: 6e 65 79 48 6f 6f 64 48 6f 70 65 48 6f 72 6e 48 neyHoodHopeHornH 0001a860: 6f 72 72 6f 72 48 6f 72 73 65 48 6f 73 70 69 74 orrorHorseHospit 0001a870: 61 6c 48 6f 73 74 48 6f 74 65 6c 48 6f 75 72 48 alHostHotelHourH 0001a880: 6f 76 65 72 48 75 62 48 75 67 65 48 75 6d 61 6e overHubHugeHuman 0001a890: 48 75 6d 62 6c 65 48 75 6d 6f 72 48 75 6e 64 72 HumbleHumorHundr 0001a8a0: 65 64 48 75 6e 67 72 79 48 75 6e 74 48 75 72 64 edHungryHuntHurd 0001a8b0: 6c 65 48 75 72 72 79 48 75 72 74 48 75 73 62 61 leHurryHurtHusba 0001a8c0: 6e 64 48 79 62 72 69 64 49 63 65 49 63 6f 6e 49 ndHybridIceIconI 0001a8d0: 64 65 61 49 64 65 6e 74 69 66 79 49 64 6c 65 49 deaIdentifyIdleI 0001a8e0: 67 6e 6f 72 65 49 6c 6c 49 6c 6c 65 67 61 6c 49 gnoreIllIllegalI 0001a8f0: 6c 6c 6e 65 73 73 49 6d 61 67 65 49 6d 69 74 61 llnessImageImita 0001a900: 74 65 49 6d 6d 65 6e 73 65 49 6d 6d 75 6e 65 49 teImmenseImmuneI 0001a910: 6d 70 61 63 74 49 6d 70 6f 73 65 49 6d 70 72 6f mpactImposeImpro 0001a920: 76 65 49 6d 70 75 6c 73 65 49 6e 63 68 49 6e 63 veImpulseInchInc 0001a930: 6c 75 64 65 49 6e 63 6f 6d 65 49 6e 63 72 65 61 ludeIncomeIncrea 0001a940: 73 65 49 6e 64 65 78 49 6e 64 69 63 61 74 65 49 seIndexIndicateI 0001a950: 6e 64 6f 6f 72 49 6e 64 75 73 74 72 79 49 6e 66 ndoorIndustryInf 0001a960: 61 6e 74 49 6e 66 6c 69 63 74 49 6e 66 6f 72 6d antInflictInform 0001a970: 49 6e 68 61 6c 65 49 6e 68 65 72 69 74 49 6e 69 InhaleInheritIni 0001a980: 74 69 61 6c 49 6e 6a 65 63 74 49 6e 6a 75 72 79 tialInjectInjury 0001a990: 49 6e 6d 61 74 65 49 6e 6e 65 72 49 6e 6e 6f 63 InmateInnerInnoc 0001a9a0: 65 6e 74 49 6e 70 75 74 49 6e 71 75 69 72 79 49 entInputInquiryI 0001a9b0: 6e 73 61 6e 65 49 6e 73 65 63 74 49 6e 73 69 64 nsaneInsectInsid 0001a9c0: 65 49 6e 73 70 69 72 65 49 6e 73 74 61 6c 6c 49 eInspireInstallI 0001a9d0: 6e 74 61 63 74 49 6e 74 65 72 65 73 74 49 6e 74 ntactInterestInt 0001a9e0: 6f 49 6e 76 65 73 74 49 6e 76 69 74 65 49 6e 76 oInvestInviteInv 0001a9f0: 6f 6c 76 65 49 72 6f 6e 49 73 6c 61 6e 64 49 73 olveIronIslandIs 0001aa00: 6f 6c 61 74 65 49 73 73 75 65 49 74 65 6d 49 76 olateIssueItemIv 0001aa10: 6f 72 79 4a 61 63 6b 65 74 4a 61 67 75 61 72 4a oryJacketJaguarJ 0001aa20: 61 72 4a 61 7a 7a 4a 65 61 6c 6f 75 73 4a 65 61 arJazzJealousJea 0001aa30: 6e 73 4a 65 6c 6c 79 4a 65 77 65 6c 4a 6f 62 4a nsJellyJewelJobJ 0001aa40: 6f 69 6e 4a 6f 6b 65 4a 6f 75 72 6e 65 79 4a 6f oinJokeJourneyJo 0001aa50: 79 4a 75 64 67 65 4a 75 69 63 65 4a 75 6d 70 4a yJudgeJuiceJumpJ 0001aa60: 75 6e 67 6c 65 4a 75 6e 69 6f 72 4a 75 6e 6b 4a ungleJuniorJunkJ 0001aa70: 75 73 74 4b 61 6e 67 61 72 6f 6f 4b 65 65 6e 4b ustKangarooKeenK 0001aa80: 65 65 70 4b 65 74 63 68 75 70 4b 65 79 4b 69 63 eepKetchupKeyKic 0001aa90: 6b 4b 69 64 4b 69 64 6e 65 79 4b 69 6e 64 4b 69 kKidKidneyKindKi 0001aaa0: 6e 67 64 6f 6d 4b 69 73 73 4b 69 74 4b 69 74 63 ngdomKissKitKitc 0001aab0: 68 65 6e 4b 69 74 65 4b 69 74 74 65 6e 4b 69 77 henKiteKittenKiw 0001aac0: 69 4b 6e 65 65 4b 6e 69 66 65 4b 6e 6f 63 6b 4b iKneeKnifeKnockK 0001aad0: 6e 6f 77 4c 61 62 4c 61 62 65 6c 4c 61 62 6f 72 nowLabLabelLabor 0001aae0: 4c 61 64 64 65 72 4c 61 64 79 4c 61 6b 65 4c 61 LadderLadyLakeLa 0001aaf0: 6d 70 4c 61 6e 67 75 61 67 65 4c 61 70 74 6f 70 mpLanguageLaptop 0001ab00: 4c 61 72 67 65 4c 61 74 65 72 4c 61 74 69 6e 4c LargeLaterLatinL 0001ab10: 61 75 67 68 4c 61 75 6e 64 72 79 4c 61 76 61 4c aughLaundryLavaL 0001ab20: 61 77 4c 61 77 6e 4c 61 77 73 75 69 74 4c 61 79 awLawnLawsuitLay 0001ab30: 65 72 4c 61 7a 79 4c 65 61 64 65 72 4c 65 61 66 erLazyLeaderLeaf 0001ab40: 4c 65 61 72 6e 4c 65 61 76 65 4c 65 63 74 75 72 LearnLeaveLectur 0001ab50: 65 4c 65 66 74 4c 65 67 4c 65 67 61 6c 4c 65 67 eLeftLegLegalLeg 0001ab60: 65 6e 64 4c 65 69 73 75 72 65 4c 65 6d 6f 6e 4c endLeisureLemonL 0001ab70: 65 6e 64 4c 65 6e 67 74 68 4c 65 6e 73 4c 65 6f endLengthLensLeo 0001ab80: 70 61 72 64 4c 65 73 73 6f 6e 4c 65 74 74 65 72 pardLessonLetter 0001ab90: 4c 65 76 65 6c 4c 69 61 72 4c 69 62 65 72 74 79 LevelLiarLiberty 0001aba0: 4c 69 62 72 61 72 79 4c 69 63 65 6e 73 65 4c 69 LibraryLicenseLi 0001abb0: 66 65 4c 69 66 74 4c 69 67 68 74 4c 69 6b 65 4c feLiftLightLikeL 0001abc0: 69 6d 62 4c 69 6d 69 74 4c 69 6e 6b 4c 69 6f 6e imbLimitLinkLion 0001abd0: 4c 69 71 75 69 64 4c 69 73 74 4c 69 74 74 6c 65 LiquidListLittle 0001abe0: 4c 69 76 65 4c 69 7a 61 72 64 4c 6f 61 64 4c 6f LiveLizardLoadLo 0001abf0: 61 6e 4c 6f 62 73 74 65 72 4c 6f 63 61 6c 4c 6f anLobsterLocalLo 0001ac00: 63 6b 4c 6f 67 69 63 4c 6f 6e 65 6c 79 4c 6f 6e ckLogicLonelyLon 0001ac10: 67 4c 6f 6f 70 4c 6f 74 74 65 72 79 4c 6f 75 64 gLoopLotteryLoud 0001ac20: 4c 6f 75 6e 67 65 4c 6f 76 65 4c 6f 79 61 6c 4c LoungeLoveLoyalL 0001ac30: 75 63 6b 79 4c 75 67 67 61 67 65 4c 75 6d 62 65 uckyLuggageLumbe 0001ac40: 72 4c 75 6e 61 72 4c 75 6e 63 68 4c 75 78 75 72 rLunarLunchLuxur 0001ac50: 79 4c 79 72 69 63 73 4d 61 63 68 69 6e 65 4d 61 yLyricsMachineMa 0001ac60: 64 4d 61 67 69 63 4d 61 67 6e 65 74 4d 61 69 64 dMagicMagnetMaid 0001ac70: 4d 61 69 6c 4d 61 69 6e 4d 61 6a 6f 72 4d 61 6b MailMainMajorMak 0001ac80: 65 4d 61 6d 6d 61 6c 4d 61 6e 4d 61 6e 61 67 65 eMammalManManage 0001ac90: 4d 61 6e 64 61 74 65 4d 61 6e 67 6f 4d 61 6e 73 MandateMangoMans 0001aca0: 69 6f 6e 4d 61 6e 75 61 6c 4d 61 70 6c 65 4d 61 ionManualMapleMa 0001acb0: 72 62 6c 65 4d 61 72 63 68 4d 61 72 67 69 6e 4d rbleMarchMarginM 0001acc0: 61 72 69 6e 65 4d 61 72 6b 65 74 4d 61 72 72 69 arineMarketMarri 0001acd0: 61 67 65 4d 61 73 6b 4d 61 73 73 4d 61 73 74 65 ageMaskMassMaste 0001ace0: 72 4d 61 74 63 68 4d 61 74 65 72 69 61 6c 4d 61 rMatchMaterialMa 0001acf0: 74 68 4d 61 74 72 69 78 4d 61 74 74 65 72 4d 61 thMatrixMatterMa 0001ad00: 78 69 6d 75 6d 4d 61 7a 65 4d 65 61 64 6f 77 4d ximumMazeMeadowM 0001ad10: 65 61 6e 4d 65 61 73 75 72 65 4d 65 61 74 4d 65 eanMeasureMeatMe 0001ad20: 63 68 61 6e 69 63 4d 65 64 61 6c 4d 65 64 69 61 chanicMedalMedia 0001ad30: 4d 65 6c 6f 64 79 4d 65 6c 74 4d 65 6d 62 65 72 MelodyMeltMember 0001ad40: 4d 65 6d 6f 72 79 4d 65 6e 74 69 6f 6e 4d 65 6e MemoryMentionMen 0001ad50: 75 4d 65 72 63 79 4d 65 72 67 65 4d 65 72 69 74 uMercyMergeMerit 0001ad60: 4d 65 72 72 79 4d 65 73 68 4d 65 73 73 61 67 65 MerryMeshMessage 0001ad70: 4d 65 74 61 6c 4d 65 74 68 6f 64 4d 69 64 64 6c MetalMethodMiddl 0001ad80: 65 4d 69 64 6e 69 67 68 74 4d 69 6c 6b 4d 69 6c eMidnightMilkMil 0001ad90: 6c 69 6f 6e 4d 69 6d 69 63 4d 69 6e 64 4d 69 6e lionMimicMindMin 0001ada0: 69 6d 75 6d 4d 69 6e 6f 72 4d 69 6e 75 74 65 4d imumMinorMinuteM 0001adb0: 69 72 61 63 6c 65 4d 69 72 72 6f 72 4d 69 73 65 iracleMirrorMise 0001adc0: 72 79 4d 69 73 73 4d 69 73 74 61 6b 65 4d 69 78 ryMissMistakeMix 0001add0: 4d 69 78 65 64 4d 69 78 74 75 72 65 4d 6f 62 69 MixedMixtureMobi 0001ade0: 6c 65 4d 6f 64 65 6c 4d 6f 64 69 66 79 4d 6f 6d leModelModifyMom 0001adf0: 4d 6f 6d 65 6e 74 4d 6f 6e 69 74 6f 72 4d 6f 6e MomentMonitorMon 0001ae00: 6b 65 79 4d 6f 6e 73 74 65 72 4d 6f 6e 74 68 4d keyMonsterMonthM 0001ae10: 6f 6f 6e 4d 6f 72 61 6c 4d 6f 72 65 4d 6f 72 6e oonMoralMoreMorn 0001ae20: 69 6e 67 4d 6f 73 71 75 69 74 6f 4d 6f 74 68 65 ingMosquitoMothe 0001ae30: 72 4d 6f 74 69 6f 6e 4d 6f 74 6f 72 4d 6f 75 6e rMotionMotorMoun 0001ae40: 74 61 69 6e 4d 6f 75 73 65 4d 6f 76 65 4d 6f 76 tainMouseMoveMov 0001ae50: 69 65 4d 75 63 68 4d 75 66 66 69 6e 4d 75 6c 65 ieMuchMuffinMule 0001ae60: 4d 75 6c 74 69 70 6c 79 4d 75 73 63 6c 65 4d 75 MultiplyMuscleMu 0001ae70: 73 65 75 6d 4d 75 73 68 72 6f 6f 6d 4d 75 73 69 seumMushroomMusi 0001ae80: 63 4d 75 73 74 4d 75 74 75 61 6c 4d 79 73 65 6c cMustMutualMysel 0001ae90: 66 4d 79 73 74 65 72 79 4d 79 74 68 4e 61 69 76 fMysteryMythNaiv 0001aea0: 65 4e 61 6d 65 4e 61 70 6b 69 6e 4e 61 72 72 6f eNameNapkinNarro 0001aeb0: 77 4e 61 73 74 79 4e 61 74 69 6f 6e 4e 61 74 75 wNastyNationNatu 0001aec0: 72 65 4e 65 61 72 4e 65 63 6b 4e 65 65 64 4e 65 reNearNeckNeedNe 0001aed0: 67 61 74 69 76 65 4e 65 67 6c 65 63 74 4e 65 69 gativeNeglectNei 0001aee0: 74 68 65 72 4e 65 70 68 65 77 4e 65 72 76 65 4e therNephewNerveN 0001aef0: 65 73 74 4e 65 74 4e 65 74 77 6f 72 6b 4e 65 75 estNetNetworkNeu 0001af00: 74 72 61 6c 4e 65 76 65 72 4e 65 77 73 4e 65 78 tralNeverNewsNex 0001af10: 74 4e 69 63 65 4e 69 67 68 74 4e 6f 62 6c 65 4e tNiceNightNobleN 0001af20: 6f 69 73 65 4e 6f 6d 69 6e 65 65 4e 6f 6f 64 6c oiseNomineeNoodl 0001af30: 65 4e 6f 72 6d 61 6c 4e 6f 72 74 68 4e 6f 73 65 eNormalNorthNose 0001af40: 4e 6f 74 61 62 6c 65 4e 6f 74 65 4e 6f 74 68 69 NotableNoteNothi 0001af50: 6e 67 4e 6f 74 69 63 65 4e 6f 76 65 6c 4e 6f 77 ngNoticeNovelNow 0001af60: 4e 75 63 6c 65 61 72 4e 75 6d 62 65 72 4e 75 72 NuclearNumberNur 0001af70: 73 65 4e 75 74 4f 61 6b 4f 62 65 79 4f 62 6a 65 seNutOakObeyObje 0001af80: 63 74 4f 62 6c 69 67 65 4f 62 73 63 75 72 65 4f ctObligeObscureO 0001af90: 62 73 65 72 76 65 4f 62 74 61 69 6e 4f 62 76 69 bserveObtainObvi 0001afa0: 6f 75 73 4f 63 63 75 72 4f 63 65 61 6e 4f 63 74 ousOccurOceanOct 0001afb0: 6f 62 65 72 4f 64 6f 72 4f 66 66 4f 66 66 65 72 oberOdorOffOffer 0001afc0: 4f 66 66 69 63 65 4f 66 74 65 6e 4f 69 6c 4f 6b OfficeOftenOilOk 0001afd0: 61 79 4f 6c 64 4f 6c 69 76 65 4f 6c 79 6d 70 69 ayOldOliveOlympi 0001afe0: 63 4f 6d 69 74 4f 6e 63 65 4f 6e 65 4f 6e 69 6f cOmitOnceOneOnio 0001aff0: 6e 4f 6e 6c 69 6e 65 4f 6e 6c 79 4f 70 65 6e 4f nOnlineOnlyOpenO 0001b000: 70 65 72 61 4f 70 69 6e 69 6f 6e 4f 70 70 6f 73 peraOpinionOppos 0001b010: 65 4f 70 74 69 6f 6e 4f 72 61 6e 67 65 4f 72 62 eOptionOrangeOrb 0001b020: 69 74 4f 72 63 68 61 72 64 4f 72 64 65 72 4f 72 itOrchardOrderOr 0001b030: 64 69 6e 61 72 79 4f 72 67 61 6e 4f 72 69 65 6e dinaryOrganOrien 0001b040: 74 4f 72 69 67 69 6e 61 6c 4f 72 70 68 61 6e 4f tOriginalOrphanO 0001b050: 73 74 72 69 63 68 4f 74 68 65 72 4f 75 74 64 6f strichOtherOutdo 0001b060: 6f 72 4f 75 74 65 72 4f 75 74 70 75 74 4f 75 74 orOuterOutputOut 0001b070: 73 69 64 65 4f 76 61 6c 4f 76 65 6e 4f 76 65 72 sideOvalOvenOver 0001b080: 4f 77 6e 4f 77 6e 65 72 4f 78 79 67 65 6e 4f 79 OwnOwnerOxygenOy 0001b090: 73 74 65 72 4f 7a 6f 6e 65 50 61 63 74 50 61 64 sterOzonePactPad 0001b0a0: 64 6c 65 50 61 67 65 50 61 69 72 50 61 6c 61 63 dlePagePairPalac 0001b0b0: 65 50 61 6c 6d 50 61 6e 64 61 50 61 6e 65 6c 50 ePalmPandaPanelP 0001b0c0: 61 6e 69 63 50 61 6e 74 68 65 72 50 61 70 65 72 anicPantherPaper 0001b0d0: 50 61 72 61 64 65 50 61 72 65 6e 74 50 61 72 6b ParadeParentPark 0001b0e0: 50 61 72 72 6f 74 50 61 72 74 79 50 61 73 73 50 ParrotPartyPassP 0001b0f0: 61 74 63 68 50 61 74 68 50 61 74 69 65 6e 74 50 atchPathPatientP 0001b100: 61 74 72 6f 6c 50 61 74 74 65 72 6e 50 61 75 73 atrolPatternPaus 0001b110: 65 50 61 76 65 50 61 79 6d 65 6e 74 50 65 61 63 ePavePaymentPeac 0001b120: 65 50 65 61 6e 75 74 50 65 61 72 50 65 61 73 61 ePeanutPearPeasa 0001b130: 6e 74 50 65 6c 69 63 61 6e 50 65 6e 50 65 6e 61 ntPelicanPenPena 0001b140: 6c 74 79 50 65 6e 63 69 6c 50 65 6f 70 6c 65 50 ltyPencilPeopleP 0001b150: 65 70 70 65 72 50 65 72 66 65 63 74 50 65 72 6d epperPerfectPerm 0001b160: 69 74 50 65 72 73 6f 6e 50 65 74 50 68 6f 6e 65 itPersonPetPhone 0001b170: 50 68 6f 74 6f 50 68 72 61 73 65 50 68 79 73 69 PhotoPhrasePhysi 0001b180: 63 61 6c 50 69 61 6e 6f 50 69 63 6e 69 63 50 69 calPianoPicnicPi 0001b190: 63 74 75 72 65 50 69 65 63 65 50 69 67 50 69 67 cturePiecePigPig 0001b1a0: 65 6f 6e 50 69 6c 6c 50 69 6c 6f 74 50 69 6e 6b eonPillPilotPink 0001b1b0: 50 69 6f 6e 65 65 72 50 69 70 65 50 69 73 74 6f PioneerPipePisto 0001b1c0: 6c 50 69 74 63 68 50 69 7a 7a 61 50 6c 61 63 65 lPitchPizzaPlace 0001b1d0: 50 6c 61 6e 65 74 50 6c 61 73 74 69 63 50 6c 61 PlanetPlasticPla 0001b1e0: 74 65 50 6c 61 79 50 6c 65 61 73 65 50 6c 65 64 tePlayPleasePled 0001b1f0: 67 65 50 6c 75 63 6b 50 6c 75 67 50 6c 75 6e 67 gePluckPlugPlung 0001b200: 65 50 6f 65 6d 50 6f 65 74 50 6f 69 6e 74 50 6f ePoemPoetPointPo 0001b210: 6c 61 72 50 6f 6c 65 50 6f 6c 69 63 65 50 6f 6e larPolePolicePon 0001b220: 64 50 6f 6e 79 50 6f 6f 6c 50 6f 70 75 6c 61 72 dPonyPoolPopular 0001b230: 50 6f 72 74 69 6f 6e 50 6f 73 69 74 69 6f 6e 50 PortionPositionP 0001b240: 6f 73 73 69 62 6c 65 50 6f 73 74 50 6f 74 61 74 ossiblePostPotat 0001b250: 6f 50 6f 74 74 65 72 79 50 6f 76 65 72 74 79 50 oPotteryPovertyP 0001b260: 6f 77 64 65 72 50 6f 77 65 72 50 72 61 63 74 69 owderPowerPracti 0001b270: 63 65 50 72 61 69 73 65 50 72 65 64 69 63 74 50 cePraisePredictP 0001b280: 72 65 66 65 72 50 72 65 70 61 72 65 50 72 65 73 referPreparePres 0001b290: 65 6e 74 50 72 65 74 74 79 50 72 65 76 65 6e 74 entPrettyPrevent 0001b2a0: 50 72 69 63 65 50 72 69 64 65 50 72 69 6d 61 72 PricePridePrimar 0001b2b0: 79 50 72 69 6e 74 50 72 69 6f 72 69 74 79 50 72 yPrintPriorityPr 0001b2c0: 69 73 6f 6e 50 72 69 76 61 74 65 50 72 69 7a 65 isonPrivatePrize 0001b2d0: 50 72 6f 62 6c 65 6d 50 72 6f 63 65 73 73 50 72 ProblemProcessPr 0001b2e0: 6f 64 75 63 65 50 72 6f 66 69 74 50 72 6f 67 72 oduceProfitProgr 0001b2f0: 61 6d 50 72 6f 6a 65 63 74 50 72 6f 6d 6f 74 65 amProjectPromote 0001b300: 50 72 6f 6f 66 50 72 6f 70 65 72 74 79 50 72 6f ProofPropertyPro 0001b310: 73 70 65 72 50 72 6f 74 65 63 74 50 72 6f 75 64 sperProtectProud 0001b320: 50 72 6f 76 69 64 65 50 75 62 6c 69 63 50 75 64 ProvidePublicPud 0001b330: 64 69 6e 67 50 75 6c 6c 50 75 6c 70 50 75 6c 73 dingPullPulpPuls 0001b340: 65 50 75 6d 70 6b 69 6e 50 75 6e 63 68 50 75 70 ePumpkinPunchPup 0001b350: 69 6c 50 75 70 70 79 50 75 72 63 68 61 73 65 50 ilPuppyPurchaseP 0001b360: 75 72 69 74 79 50 75 72 70 6f 73 65 50 75 72 73 urityPurposePurs 0001b370: 65 50 75 73 68 50 75 74 50 75 7a 7a 6c 65 50 79 ePushPutPuzzlePy 0001b380: 72 61 6d 69 64 51 75 61 6c 69 74 79 51 75 61 6e ramidQualityQuan 0001b390: 74 75 6d 51 75 61 72 74 65 72 51 75 65 73 74 69 tumQuarterQuesti 0001b3a0: 6f 6e 51 75 69 63 6b 51 75 69 74 51 75 69 7a 51 onQuickQuitQuizQ 0001b3b0: 75 6f 74 65 52 61 62 62 69 74 52 61 63 63 6f 6f uoteRabbitRaccoo 0001b3c0: 6e 52 61 63 65 52 61 63 6b 52 61 64 61 72 52 61 nRaceRackRadarRa 0001b3d0: 64 69 6f 52 61 69 6c 52 61 69 6e 52 61 69 73 65 dioRailRainRaise 0001b3e0: 52 61 6c 6c 79 52 61 6d 70 52 61 6e 63 68 52 61 RallyRampRanchRa 0001b3f0: 6e 64 6f 6d 52 61 6e 67 65 52 61 70 69 64 52 61 ndomRangeRapidRa 0001b400: 72 65 52 61 74 65 52 61 74 68 65 72 52 61 76 65 reRateRatherRave 0001b410: 6e 52 61 77 52 61 7a 6f 72 52 65 61 64 79 52 65 nRawRazorReadyRe 0001b420: 61 6c 52 65 61 73 6f 6e 52 65 62 65 6c 52 65 62 alReasonRebelReb 0001b430: 75 69 6c 64 52 65 63 61 6c 6c 52 65 63 65 69 76 uildRecallReceiv 0001b440: 65 52 65 63 69 70 65 52 65 63 6f 72 64 52 65 63 eRecipeRecordRec 0001b450: 79 63 6c 65 52 65 64 75 63 65 52 65 66 6c 65 63 ycleReduceReflec 0001b460: 74 52 65 66 6f 72 6d 52 65 66 75 73 65 52 65 67 tReformRefuseReg 0001b470: 69 6f 6e 52 65 67 72 65 74 52 65 67 75 6c 61 72 ionRegretRegular 0001b480: 52 65 6a 65 63 74 52 65 6c 61 78 52 65 6c 65 61 RejectRelaxRelea 0001b490: 73 65 52 65 6c 69 65 66 52 65 6c 79 52 65 6d 61 seReliefRelyRema 0001b4a0: 69 6e 52 65 6d 65 6d 62 65 72 52 65 6d 69 6e 64 inRememberRemind 0001b4b0: 52 65 6d 6f 76 65 52 65 6e 64 65 72 52 65 6e 65 RemoveRenderRene 0001b4c0: 77 52 65 6e 74 52 65 6f 70 65 6e 52 65 70 61 69 wRentReopenRepai 0001b4d0: 72 52 65 70 65 61 74 52 65 70 6c 61 63 65 52 65 rRepeatReplaceRe 0001b4e0: 70 6f 72 74 52 65 71 75 69 72 65 52 65 73 63 75 portRequireRescu 0001b4f0: 65 52 65 73 65 6d 62 6c 65 52 65 73 69 73 74 52 eResembleResistR 0001b500: 65 73 6f 75 72 63 65 52 65 73 70 6f 6e 73 65 52 esourceResponseR 0001b510: 65 73 75 6c 74 52 65 74 69 72 65 52 65 74 72 65 esultRetireRetre 0001b520: 61 74 52 65 74 75 72 6e 52 65 75 6e 69 6f 6e 52 atReturnReunionR 0001b530: 65 76 65 61 6c 52 65 76 69 65 77 52 65 77 61 72 evealReviewRewar 0001b540: 64 52 68 79 74 68 6d 52 69 62 52 69 62 62 6f 6e dRhythmRibRibbon 0001b550: 52 69 63 65 52 69 63 68 52 69 64 65 52 69 64 67 RiceRichRideRidg 0001b560: 65 52 69 66 6c 65 52 69 67 68 74 52 69 67 69 64 eRifleRightRigid 0001b570: 52 69 6e 67 52 69 6f 74 52 69 70 70 6c 65 52 69 RingRiotRippleRi 0001b580: 73 6b 52 69 74 75 61 6c 52 69 76 61 6c 52 69 76 skRitualRivalRiv 0001b590: 65 72 52 6f 61 64 52 6f 61 73 74 52 6f 62 6f 74 erRoadRoastRobot 0001b5a0: 52 6f 62 75 73 74 52 6f 63 6b 65 74 52 6f 6d 61 RobustRocketRoma 0001b5b0: 6e 63 65 52 6f 6f 66 52 6f 6f 6b 69 65 52 6f 6f nceRoofRookieRoo 0001b5c0: 6d 52 6f 73 65 52 6f 74 61 74 65 52 6f 75 67 68 mRoseRotateRough 0001b5d0: 52 6f 75 6e 64 52 6f 75 74 65 52 6f 79 61 6c 52 RoundRouteRoyalR 0001b5e0: 75 62 62 65 72 52 75 64 65 52 75 67 52 75 6c 65 ubberRudeRugRule 0001b5f0: 52 75 6e 52 75 6e 77 61 79 52 75 72 61 6c 53 61 RunRunwayRuralSa 0001b600: 64 53 61 64 64 6c 65 53 61 64 6e 65 73 73 53 61 dSaddleSadnessSa 0001b610: 66 65 53 61 69 6c 53 61 6c 61 64 53 61 6c 6d 6f feSailSaladSalmo 0001b620: 6e 53 61 6c 6f 6e 53 61 6c 74 53 61 6c 75 74 65 nSalonSaltSalute 0001b630: 53 61 6d 65 53 61 6d 70 6c 65 53 61 6e 64 53 61 SameSampleSandSa 0001b640: 74 69 73 66 79 53 61 74 6f 73 68 69 53 61 75 63 tisfySatoshiSauc 0001b650: 65 53 61 75 73 61 67 65 53 61 76 65 53 61 79 53 eSausageSaveSayS 0001b660: 63 61 6c 65 53 63 61 6e 53 63 61 72 65 53 63 61 caleScanScareSca 0001b670: 74 74 65 72 53 63 65 6e 65 53 63 68 65 6d 65 53 tterSceneSchemeS 0001b680: 63 68 6f 6f 6c 53 63 69 65 6e 63 65 53 63 69 73 choolScienceScis 0001b690: 73 6f 72 73 53 63 6f 72 70 69 6f 6e 53 63 6f 75 sorsScorpionScou 0001b6a0: 74 53 63 72 61 70 53 63 72 65 65 6e 53 63 72 69 tScrapScreenScri 0001b6b0: 70 74 53 63 72 75 62 53 65 61 53 65 61 72 63 68 ptScrubSeaSearch 0001b6c0: 53 65 61 73 6f 6e 53 65 61 74 53 65 63 6f 6e 64 SeasonSeatSecond 0001b6d0: 53 65 63 72 65 74 53 65 63 74 69 6f 6e 53 65 63 SecretSectionSec 0001b6e0: 75 72 69 74 79 53 65 65 64 53 65 65 6b 53 65 67 uritySeedSeekSeg 0001b6f0: 6d 65 6e 74 53 65 6c 65 63 74 53 65 6c 6c 53 65 mentSelectSellSe 0001b700: 6d 69 6e 61 72 53 65 6e 69 6f 72 53 65 6e 73 65 minarSeniorSense 0001b710: 53 65 6e 74 65 6e 63 65 53 65 72 69 65 73 53 65 SentenceSeriesSe 0001b720: 72 76 69 63 65 53 65 73 73 69 6f 6e 53 65 74 74 rviceSessionSett 0001b730: 6c 65 53 65 74 75 70 53 65 76 65 6e 53 68 61 64 leSetupSevenShad 0001b740: 6f 77 53 68 61 66 74 53 68 61 6c 6c 6f 77 53 68 owShaftShallowSh 0001b750: 61 72 65 53 68 65 64 53 68 65 6c 6c 53 68 65 72 areShedShellSher 0001b760: 69 66 66 53 68 69 65 6c 64 53 68 69 66 74 53 68 iffShieldShiftSh 0001b770: 69 6e 65 53 68 69 70 53 68 69 76 65 72 53 68 6f ineShipShiverSho 0001b780: 63 6b 53 68 6f 65 53 68 6f 6f 74 53 68 6f 70 53 ckShoeShootShopS 0001b790: 68 6f 72 74 53 68 6f 75 6c 64 65 72 53 68 6f 76 hortShoulderShov 0001b7a0: 65 53 68 72 69 6d 70 53 68 72 75 67 53 68 75 66 eShrimpShrugShuf 0001b7b0: 66 6c 65 53 68 79 53 69 62 6c 69 6e 67 53 69 63 fleShySiblingSic 0001b7c0: 6b 53 69 64 65 53 69 65 67 65 53 69 67 68 74 53 kSideSiegeSightS 0001b7d0: 69 67 6e 53 69 6c 65 6e 74 53 69 6c 6b 53 69 6c ignSilentSilkSil 0001b7e0: 6c 79 53 69 6c 76 65 72 53 69 6d 69 6c 61 72 53 lySilverSimilarS 0001b7f0: 69 6d 70 6c 65 53 69 6e 63 65 53 69 6e 67 53 69 impleSinceSingSi 0001b800: 72 65 6e 53 69 73 74 65 72 53 69 74 75 61 74 65 renSisterSituate 0001b810: 53 69 78 53 69 7a 65 53 6b 61 74 65 53 6b 65 74 SixSizeSkateSket 0001b820: 63 68 53 6b 69 53 6b 69 6c 6c 53 6b 69 6e 53 6b chSkiSkillSkinSk 0001b830: 69 72 74 53 6b 75 6c 6c 53 6c 61 62 53 6c 61 6d irtSkullSlabSlam 0001b840: 53 6c 65 65 70 53 6c 65 6e 64 65 72 53 6c 69 63 SleepSlenderSlic 0001b850: 65 53 6c 69 64 65 53 6c 69 67 68 74 53 6c 69 6d eSlideSlightSlim 0001b860: 53 6c 6f 67 61 6e 53 6c 6f 74 53 6c 6f 77 53 6c SloganSlotSlowSl 0001b870: 75 73 68 53 6d 61 6c 6c 53 6d 61 72 74 53 6d 69 ushSmallSmartSmi 0001b880: 6c 65 53 6d 6f 6b 65 53 6d 6f 6f 74 68 53 6e 61 leSmokeSmoothSna 0001b890: 63 6b 53 6e 61 6b 65 53 6e 61 70 53 6e 69 66 66 ckSnakeSnapSniff 0001b8a0: 53 6e 6f 77 53 6f 61 70 53 6f 63 63 65 72 53 6f SnowSoapSoccerSo 0001b8b0: 63 69 61 6c 53 6f 63 6b 53 6f 64 61 53 6f 66 74 cialSockSodaSoft 0001b8c0: 53 6f 6c 61 72 53 6f 6c 64 69 65 72 53 6f 6c 69 SolarSoldierSoli 0001b8d0: 64 53 6f 6c 75 74 69 6f 6e 53 6f 6c 76 65 53 6f dSolutionSolveSo 0001b8e0: 6d 65 6f 6e 65 53 6f 6e 67 53 6f 6f 6e 53 6f 72 meoneSongSoonSor 0001b8f0: 72 79 53 6f 72 74 53 6f 75 6c 53 6f 75 6e 64 53 rySortSoulSoundS 0001b900: 6f 75 70 53 6f 75 72 63 65 53 6f 75 74 68 53 70 oupSourceSouthSp 0001b910: 61 63 65 53 70 61 72 65 53 70 61 74 69 61 6c 53 aceSpareSpatialS 0001b920: 70 61 77 6e 53 70 65 61 6b 53 70 65 63 69 61 6c pawnSpeakSpecial 0001b930: 53 70 65 65 64 53 70 65 6c 6c 53 70 65 6e 64 53 SpeedSpellSpendS 0001b940: 70 68 65 72 65 53 70 69 63 65 53 70 69 64 65 72 phereSpiceSpider 0001b950: 53 70 69 6b 65 53 70 69 6e 53 70 69 72 69 74 53 SpikeSpinSpiritS 0001b960: 70 6c 69 74 53 70 6f 69 6c 53 70 6f 6e 73 6f 72 plitSpoilSponsor 0001b970: 53 70 6f 6f 6e 53 70 6f 72 74 53 70 6f 74 53 70 SpoonSportSpotSp 0001b980: 72 61 79 53 70 72 65 61 64 53 70 72 69 6e 67 53 raySpreadSpringS 0001b990: 70 79 53 71 75 61 72 65 53 71 75 65 65 7a 65 53 pySquareSqueezeS 0001b9a0: 71 75 69 72 72 65 6c 53 74 61 62 6c 65 53 74 61 quirrelStableSta 0001b9b0: 64 69 75 6d 53 74 61 66 66 53 74 61 67 65 53 74 diumStaffStageSt 0001b9c0: 61 69 72 73 53 74 61 6d 70 53 74 61 6e 64 53 74 airsStampStandSt 0001b9d0: 61 72 74 53 74 61 74 65 53 74 61 79 53 74 65 61 artStateStayStea 0001b9e0: 6b 53 74 65 65 6c 53 74 65 6d 53 74 65 70 53 74 kSteelStemStepSt 0001b9f0: 65 72 65 6f 53 74 69 63 6b 53 74 69 6c 6c 53 74 ereoStickStillSt 0001ba00: 69 6e 67 53 74 6f 63 6b 53 74 6f 6d 61 63 68 53 ingStockStomachS 0001ba10: 74 6f 6e 65 53 74 6f 6f 6c 53 74 6f 72 79 53 74 toneStoolStorySt 0001ba20: 6f 76 65 53 74 72 61 74 65 67 79 53 74 72 65 65 oveStrategyStree 0001ba30: 74 53 74 72 69 6b 65 53 74 72 6f 6e 67 53 74 72 tStrikeStrongStr 0001ba40: 75 67 67 6c 65 53 74 75 64 65 6e 74 53 74 75 66 uggleStudentStuf 0001ba50: 66 53 74 75 6d 62 6c 65 53 74 79 6c 65 53 75 62 fStumbleStyleSub 0001ba60: 6a 65 63 74 53 75 62 6d 69 74 53 75 62 77 61 79 jectSubmitSubway 0001ba70: 53 75 63 63 65 73 73 53 75 63 68 53 75 64 64 65 SuccessSuchSudde 0001ba80: 6e 53 75 66 66 65 72 53 75 67 61 72 53 75 67 67 nSufferSugarSugg 0001ba90: 65 73 74 53 75 69 74 53 75 6d 6d 65 72 53 75 6e estSuitSummerSun 0001baa0: 53 75 6e 6e 79 53 75 6e 73 65 74 53 75 70 65 72 SunnySunsetSuper 0001bab0: 53 75 70 70 6c 79 53 75 70 72 65 6d 65 53 75 72 SupplySupremeSur 0001bac0: 65 53 75 72 66 61 63 65 53 75 72 67 65 53 75 72 eSurfaceSurgeSur 0001bad0: 70 72 69 73 65 53 75 72 72 6f 75 6e 64 53 75 72 priseSurroundSur 0001bae0: 76 65 79 53 75 73 70 65 63 74 53 75 73 74 61 69 veySuspectSustai 0001baf0: 6e 53 77 61 6c 6c 6f 77 53 77 61 6d 70 53 77 61 nSwallowSwampSwa 0001bb00: 70 53 77 61 72 6d 53 77 65 61 72 53 77 65 65 74 pSwarmSwearSweet 0001bb10: 53 77 69 66 74 53 77 69 6d 53 77 69 6e 67 53 77 SwiftSwimSwingSw 0001bb20: 69 74 63 68 53 77 6f 72 64 53 79 6d 62 6f 6c 53 itchSwordSymbolS 0001bb30: 79 6d 70 74 6f 6d 53 79 72 75 70 53 79 73 74 65 ymptomSyrupSyste 0001bb40: 6d 54 61 62 6c 65 54 61 63 6b 6c 65 54 61 67 54 mTableTackleTagT 0001bb50: 61 69 6c 54 61 6c 65 6e 74 54 61 6c 6b 54 61 6e ailTalentTalkTan 0001bb60: 6b 54 61 70 65 54 61 72 67 65 74 54 61 73 6b 54 kTapeTargetTaskT 0001bb70: 61 73 74 65 54 61 74 74 6f 6f 54 61 78 69 54 65 asteTattooTaxiTe 0001bb80: 61 63 68 54 65 61 6d 54 65 6c 6c 54 65 6e 54 65 achTeamTellTenTe 0001bb90: 6e 61 6e 74 54 65 6e 6e 69 73 54 65 6e 74 54 65 nantTennisTentTe 0001bba0: 72 6d 54 65 73 74 54 65 78 74 54 68 61 6e 6b 54 rmTestTextThankT 0001bbb0: 68 61 74 54 68 65 6d 65 54 68 65 6e 54 68 65 6f hatThemeThenTheo 0001bbc0: 72 79 54 68 65 72 65 54 68 65 79 54 68 69 6e 67 ryThereTheyThing 0001bbd0: 54 68 69 73 54 68 6f 75 67 68 74 54 68 72 65 65 ThisThoughtThree 0001bbe0: 54 68 72 69 76 65 54 68 72 6f 77 54 68 75 6d 62 ThriveThrowThumb 0001bbf0: 54 68 75 6e 64 65 72 54 69 63 6b 65 74 54 69 64 ThunderTicketTid 0001bc00: 65 54 69 67 65 72 54 69 6c 74 54 69 6d 62 65 72 eTigerTiltTimber 0001bc10: 54 69 6d 65 54 69 6e 79 54 69 70 54 69 72 65 64 TimeTinyTipTired 0001bc20: 54 69 73 73 75 65 54 69 74 6c 65 54 6f 61 73 74 TissueTitleToast 0001bc30: 54 6f 62 61 63 63 6f 54 6f 64 61 79 54 6f 64 64 TobaccoTodayTodd 0001bc40: 6c 65 72 54 6f 65 54 6f 67 65 74 68 65 72 54 6f lerToeTogetherTo 0001bc50: 69 6c 65 74 54 6f 6b 65 6e 54 6f 6d 61 74 6f 54 iletTokenTomatoT 0001bc60: 6f 6d 6f 72 72 6f 77 54 6f 6e 65 54 6f 6e 67 75 omorrowToneTongu 0001bc70: 65 54 6f 6e 69 67 68 74 54 6f 6f 6c 54 6f 6f 74 eTonightToolToot 0001bc80: 68 54 6f 70 54 6f 70 69 63 54 6f 70 70 6c 65 54 hTopTopicToppleT 0001bc90: 6f 72 63 68 54 6f 72 6e 61 64 6f 54 6f 72 74 6f orchTornadoTorto 0001bca0: 69 73 65 54 6f 73 73 54 6f 74 61 6c 54 6f 75 72 iseTossTotalTour 0001bcb0: 69 73 74 54 6f 77 61 72 64 54 6f 77 65 72 54 6f istTowardTowerTo 0001bcc0: 77 6e 54 6f 79 54 72 61 63 6b 54 72 61 64 65 54 wnToyTrackTradeT 0001bcd0: 72 61 66 66 69 63 54 72 61 67 69 63 54 72 61 69 rafficTragicTrai 0001bce0: 6e 54 72 61 6e 73 66 65 72 54 72 61 70 54 72 61 nTransferTrapTra 0001bcf0: 73 68 54 72 61 76 65 6c 54 72 61 79 54 72 65 61 shTravelTrayTrea 0001bd00: 74 54 72 65 65 54 72 65 6e 64 54 72 69 61 6c 54 tTreeTrendTrialT 0001bd10: 72 69 62 65 54 72 69 63 6b 54 72 69 67 67 65 72 ribeTrickTrigger 0001bd20: 54 72 69 6d 54 72 69 70 54 72 6f 70 68 79 54 72 TrimTripTrophyTr 0001bd30: 6f 75 62 6c 65 54 72 75 63 6b 54 72 75 65 54 72 oubleTruckTrueTr 0001bd40: 75 6c 79 54 72 75 6d 70 65 74 54 72 75 73 74 54 ulyTrumpetTrustT 0001bd50: 72 75 74 68 54 72 79 54 75 62 65 54 75 69 74 69 ruthTryTubeTuiti 0001bd60: 6f 6e 54 75 6d 62 6c 65 54 75 6e 61 54 75 6e 6e onTumbleTunaTunn 0001bd70: 65 6c 54 75 72 6b 65 79 54 75 72 6e 54 75 72 74 elTurkeyTurnTurt 0001bd80: 6c 65 54 77 65 6c 76 65 54 77 65 6e 74 79 54 77 leTwelveTwentyTw 0001bd90: 69 63 65 54 77 69 6e 54 77 69 73 74 54 77 6f 54 iceTwinTwistTwoT 0001bda0: 79 70 65 54 79 70 69 63 61 6c 55 67 6c 79 55 6d ypeTypicalUglyUm 0001bdb0: 62 72 65 6c 6c 61 55 6e 61 62 6c 65 55 6e 61 77 brellaUnableUnaw 0001bdc0: 61 72 65 55 6e 63 6c 65 55 6e 63 6f 76 65 72 55 areUncleUncoverU 0001bdd0: 6e 64 65 72 55 6e 64 6f 55 6e 66 61 69 72 55 6e nderUndoUnfairUn 0001bde0: 66 6f 6c 64 55 6e 68 61 70 70 79 55 6e 69 66 6f foldUnhappyUnifo 0001bdf0: 72 6d 55 6e 69 71 75 65 55 6e 69 74 55 6e 69 76 rmUniqueUnitUniv 0001be00: 65 72 73 65 55 6e 6b 6e 6f 77 6e 55 6e 6c 6f 63 erseUnknownUnloc 0001be10: 6b 55 6e 74 69 6c 55 6e 75 73 75 61 6c 55 6e 76 kUntilUnusualUnv 0001be20: 65 69 6c 55 70 64 61 74 65 55 70 67 72 61 64 65 eilUpdateUpgrade 0001be30: 55 70 68 6f 6c 64 55 70 6f 6e 55 70 70 65 72 55 UpholdUponUpperU 0001be40: 70 73 65 74 55 72 62 61 6e 55 72 67 65 55 73 61 psetUrbanUrgeUsa 0001be50: 67 65 55 73 65 55 73 65 64 55 73 65 66 75 6c 55 geUseUsedUsefulU 0001be60: 73 65 6c 65 73 73 55 73 75 61 6c 55 74 69 6c 69 selessUsualUtili 0001be70: 74 79 56 61 63 61 6e 74 56 61 63 75 75 6d 56 61 tyVacantVacuumVa 0001be80: 67 75 65 56 61 6c 69 64 56 61 6c 6c 65 79 56 61 gueValidValleyVa 0001be90: 6c 76 65 56 61 6e 56 61 6e 69 73 68 56 61 70 6f lveVanVanishVapo 0001bea0: 72 56 61 72 69 6f 75 73 56 61 73 74 56 61 75 6c rVariousVastVaul 0001beb0: 74 56 65 68 69 63 6c 65 56 65 6c 76 65 74 56 65 tVehicleVelvetVe 0001bec0: 6e 64 6f 72 56 65 6e 74 75 72 65 56 65 6e 75 65 ndorVentureVenue 0001bed0: 56 65 72 62 56 65 72 69 66 79 56 65 72 73 69 6f VerbVerifyVersio 0001bee0: 6e 56 65 72 79 56 65 73 73 65 6c 56 65 74 65 72 nVeryVesselVeter 0001bef0: 61 6e 56 69 61 62 6c 65 56 69 62 72 61 6e 74 56 anViableVibrantV 0001bf00: 69 63 69 6f 75 73 56 69 63 74 6f 72 79 56 69 64 iciousVictoryVid 0001bf10: 65 6f 56 69 65 77 56 69 6c 6c 61 67 65 56 69 6e eoViewVillageVin 0001bf20: 74 61 67 65 56 69 6f 6c 69 6e 56 69 72 74 75 61 tageViolinVirtua 0001bf30: 6c 56 69 72 75 73 56 69 73 61 56 69 73 69 74 56 lVirusVisaVisitV 0001bf40: 69 73 75 61 6c 56 69 74 61 6c 56 69 76 69 64 56 isualVitalVividV 0001bf50: 6f 63 61 6c 56 6f 69 63 65 56 6f 69 64 56 6f 6c ocalVoiceVoidVol 0001bf60: 63 61 6e 6f 56 6f 6c 75 6d 65 56 6f 74 65 56 6f canoVolumeVoteVo 0001bf70: 79 61 67 65 57 61 67 65 57 61 67 6f 6e 57 61 69 yageWageWagonWai 0001bf80: 74 57 61 6c 6b 57 61 6c 6c 57 61 6c 6e 75 74 57 tWalkWallWalnutW 0001bf90: 61 6e 74 57 61 72 66 61 72 65 57 61 72 6d 57 61 antWarfareWarmWa 0001bfa0: 72 72 69 6f 72 57 61 73 68 57 61 73 70 57 61 73 rriorWashWaspWas 0001bfb0: 74 65 57 61 74 65 72 57 61 76 65 57 61 79 57 65 teWaterWaveWayWe 0001bfc0: 61 6c 74 68 57 65 61 70 6f 6e 57 65 61 72 57 65 althWeaponWearWe 0001bfd0: 61 73 65 6c 57 65 61 74 68 65 72 57 65 62 57 65 aselWeatherWebWe 0001bfe0: 64 64 69 6e 67 57 65 65 6b 65 6e 64 57 65 69 72 ddingWeekendWeir 0001bff0: 64 57 65 6c 63 6f 6d 65 57 65 73 74 57 65 74 57 dWelcomeWestWetW 0001c000: 68 61 6c 65 57 68 61 74 57 68 65 61 74 57 68 65 haleWhatWheatWhe 0001c010: 65 6c 57 68 65 6e 57 68 65 72 65 57 68 69 70 57 elWhenWhereWhipW 0001c020: 68 69 73 70 65 72 57 69 64 65 57 69 64 74 68 57 hisperWideWidthW 0001c030: 69 66 65 57 69 6c 64 57 69 6c 6c 57 69 6e 57 69 ifeWildWillWinWi 0001c040: 6e 64 6f 77 57 69 6e 65 57 69 6e 67 57 69 6e 6b ndowWineWingWink 0001c050: 57 69 6e 6e 65 72 57 69 6e 74 65 72 57 69 72 65 WinnerWinterWire 0001c060: 57 69 73 64 6f 6d 57 69 73 65 57 69 73 68 57 69 WisdomWiseWishWi 0001c070: 74 6e 65 73 73 57 6f 6c 66 57 6f 6d 61 6e 57 6f tnessWolfWomanWo 0001c080: 6e 64 65 72 57 6f 6f 64 57 6f 6f 6c 57 6f 72 64 nderWoodWoolWord 0001c090: 57 6f 72 6b 57 6f 72 6c 64 57 6f 72 72 79 57 6f WorkWorldWorryWo 0001c0a0: 72 74 68 57 72 61 70 57 72 65 63 6b 57 72 65 73 rthWrapWreckWres 0001c0b0: 74 6c 65 57 72 69 73 74 57 72 69 74 65 57 72 6f tleWristWriteWro 0001c0c0: 6e 67 59 61 72 64 59 65 61 72 59 65 6c 6c 6f 77 ngYardYearYellow 0001c0d0: 59 6f 75 59 6f 75 6e 67 59 6f 75 74 68 5a 65 62 YouYoungYouthZeb 0001c0e0: 72 61 5a 65 72 6f 5a 6f 6e 65 5a 6f 6f 22 3b 6c raZeroZoneZoo";l 0001c0f0: 65 74 20 6b 6f 3d 6e 75 6c 6c 3b 66 75 6e 63 74 et ko=null;funct 0001c100: 69 6f 6e 20 49 6f 28 65 29 7b 69 66 28 6e 75 6c ion Io(e){if(nul 0001c110: 6c 3d 3d 6b 6f 26 26 28 6b 6f 3d 41 6f 2e 72 65 l==ko&&(ko=Ao.re 0001c120: 70 6c 61 63 65 28 2f 28 5b 41 2d 5a 5d 29 2f 67 place(/([A-Z])/g 0001c130: 2c 22 20 24 31 22 29 2e 74 6f 4c 6f 77 65 72 43 ," $1").toLowerC 0001c140: 61 73 65 28 29 2e 73 75 62 73 74 72 69 6e 67 28 ase().substring( 0001c150: 31 29 2e 73 70 6c 69 74 28 22 20 22 29 2c 22 30 1).split(" "),"0 0001c160: 78 33 63 38 61 63 63 31 65 37 62 30 38 64 38 65 x3c8acc1e7b08d8e 0001c170: 37 36 66 39 66 64 61 30 31 35 65 66 34 38 64 63 76f9fda015ef48dc 0001c180: 38 63 37 31 30 61 37 33 63 62 37 65 30 66 37 37 8c710a73cb7e0f77 0001c190: 62 32 63 31 38 61 39 62 35 61 37 61 64 64 65 36 b2c18a9b5a7adde6 0001c1a0: 30 22 21 3d 3d 43 6f 2e 63 68 65 63 6b 28 65 29 0"!==Co.check(e) 0001c1b0: 29 29 74 68 72 6f 77 20 6b 6f 3d 6e 75 6c 6c 2c ))throw ko=null, 0001c1c0: 6e 65 77 20 45 72 72 6f 72 28 22 42 49 50 33 39 new Error("BIP39 0001c1d0: 20 57 6f 72 64 6c 69 73 74 20 66 6f 72 20 65 6e Wordlist for en 0001c1e0: 20 28 45 6e 67 6c 69 73 68 29 20 46 41 49 4c 45 (English) FAILE 0001c1f0: 44 22 29 7d 63 6f 6e 73 74 20 4f 6f 3d 6e 65 77 D")}const Oo=new 0001c200: 20 63 6c 61 73 73 20 65 78 74 65 6e 64 73 20 43 class extends C 0001c210: 6f 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 29 7b o{constructor(){ 0001c220: 73 75 70 65 72 28 22 65 6e 22 29 7d 67 65 74 57 super("en")}getW 0001c230: 6f 72 64 28 65 29 7b 72 65 74 75 72 6e 20 49 6f ord(e){return Io 0001c240: 28 74 68 69 73 29 2c 6b 6f 5b 65 5d 7d 67 65 74 (this),ko[e]}get 0001c250: 57 6f 72 64 49 6e 64 65 78 28 65 29 7b 72 65 74 WordIndex(e){ret 0001c260: 75 72 6e 20 49 6f 28 74 68 69 73 29 2c 6b 6f 2e urn Io(this),ko. 0001c270: 69 6e 64 65 78 4f 66 28 65 29 7d 7d 3b 43 6f 2e indexOf(e)}};Co. 0001c280: 72 65 67 69 73 74 65 72 28 4f 6f 29 3b 63 6f 6e register(Oo);con 0001c290: 73 74 20 52 6f 3d 7b 65 6e 3a 4f 6f 7d 2c 4e 6f st Ro={en:Oo},No 0001c2a0: 3d 6e 65 77 20 79 28 22 68 64 6e 6f 64 65 2f 35 =new y("hdnode/5 0001c2b0: 2e 37 2e 30 22 29 2c 50 6f 3d 59 2e 66 72 6f 6d .7.0"),Po=Y.from 0001c2c0: 28 22 30 78 66 66 66 66 66 66 66 66 66 66 66 66 ("0xffffffffffff 0001c2d0: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 0001c2e0: 66 66 66 65 62 61 61 65 64 63 65 36 61 66 34 38 fffebaaedce6af48 0001c2f0: 61 30 33 62 62 66 64 32 35 65 38 63 64 30 33 36 a03bbfd25e8cd036 0001c300: 34 31 34 31 22 29 2c 4d 6f 3d 71 65 28 22 42 69 4141"),Mo=qe("Bi 0001c310: 74 63 6f 69 6e 20 73 65 65 64 22 29 2c 44 6f 3d tcoin seed"),Do= 0001c320: 32 31 34 37 34 38 33 36 34 38 3b 66 75 6e 63 74 2147483648;funct 0001c330: 69 6f 6e 20 4c 6f 28 65 29 7b 72 65 74 75 72 6e ion Lo(e){return 0001c340: 28 31 3c 3c 65 29 2d 31 3c 3c 38 2d 65 7d 66 75 (1<<e)-1<<8-e}fu 0001c350: 6e 63 74 69 6f 6e 20 46 6f 28 65 29 7b 72 65 74 nction Fo(e){ret 0001c360: 75 72 6e 20 46 28 52 28 65 29 2c 33 32 29 7d 66 urn F(R(e),32)}f 0001c370: 75 6e 63 74 69 6f 6e 20 55 6f 28 65 29 7b 72 65 unction Uo(e){re 0001c380: 74 75 72 6e 20 62 6f 2e 65 6e 63 6f 64 65 28 43 turn bo.encode(C 0001c390: 28 5b 65 2c 50 28 45 6f 28 45 6f 28 65 29 29 2c ([e,P(Eo(Eo(e)), 0001c3a0: 30 2c 34 29 5d 29 29 7d 66 75 6e 63 74 69 6f 6e 0,4)]))}function 0001c3b0: 20 42 6f 28 65 29 7b 69 66 28 6e 75 6c 6c 3d 3d Bo(e){if(null== 0001c3c0: 65 29 72 65 74 75 72 6e 20 52 6f 2e 65 6e 3b 69 e)return Ro.en;i 0001c3d0: 66 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 f("string"==type 0001c3e0: 6f 66 20 65 29 7b 63 6f 6e 73 74 20 74 3d 52 6f of e){const t=Ro 0001c3f0: 5b 65 5d 3b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d [e];return null= 0001c400: 3d 74 26 26 4e 6f 2e 74 68 72 6f 77 41 72 67 75 =t&&No.throwArgu 0001c410: 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 6b 6e 6f mentError("unkno 0001c420: 77 6e 20 6c 6f 63 61 6c 65 22 2c 22 77 6f 72 64 wn locale","word 0001c430: 6c 69 73 74 22 2c 65 29 2c 74 7d 72 65 74 75 72 list",e),t}retur 0001c440: 6e 20 65 7d 63 6f 6e 73 74 20 6a 6f 3d 7b 7d 2c n e}const jo={}, 0001c450: 7a 6f 3d 22 6d 2f 34 34 27 2f 36 30 27 2f 30 27 zo="m/44'/60'/0' 0001c460: 2f 30 2f 30 22 3b 63 6c 61 73 73 20 47 6f 7b 63 /0/0";class Go{c 0001c470: 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 2c 6e onstructor(e,t,n 0001c480: 2c 72 2c 6f 2c 69 2c 61 2c 73 29 7b 69 66 28 65 ,r,o,i,a,s){if(e 0001c490: 21 3d 3d 6a 6f 29 74 68 72 6f 77 20 6e 65 77 20 !==jo)throw new 0001c4a0: 45 72 72 6f 72 28 22 48 44 4e 6f 64 65 20 63 6f Error("HDNode co 0001c4b0: 6e 73 74 72 75 63 74 6f 72 20 63 61 6e 6e 6f 74 nstructor cannot 0001c4c0: 20 62 65 20 63 61 6c 6c 65 64 20 64 69 72 65 63 be called direc 0001c4d0: 74 6c 79 22 29 3b 69 66 28 74 29 7b 63 6f 6e 73 tly");if(t){cons 0001c4e0: 74 20 65 3d 6e 65 77 20 65 72 28 74 29 3b 74 65 t e=new er(t);te 0001c4f0: 28 74 68 69 73 2c 22 70 72 69 76 61 74 65 4b 65 (this,"privateKe 0001c500: 79 22 2c 65 2e 70 72 69 76 61 74 65 4b 65 79 29 y",e.privateKey) 0001c510: 2c 74 65 28 74 68 69 73 2c 22 70 75 62 6c 69 63 ,te(this,"public 0001c520: 4b 65 79 22 2c 65 2e 63 6f 6d 70 72 65 73 73 65 Key",e.compresse 0001c530: 64 50 75 62 6c 69 63 4b 65 79 29 7d 65 6c 73 65 dPublicKey)}else 0001c540: 20 74 65 28 74 68 69 73 2c 22 70 72 69 76 61 74 te(this,"privat 0001c550: 65 4b 65 79 22 2c 6e 75 6c 6c 29 2c 74 65 28 74 eKey",null),te(t 0001c560: 68 69 73 2c 22 70 75 62 6c 69 63 4b 65 79 22 2c his,"publicKey", 0001c570: 52 28 6e 29 29 3b 74 65 28 74 68 69 73 2c 22 70 R(n));te(this,"p 0001c580: 61 72 65 6e 74 46 69 6e 67 65 72 70 72 69 6e 74 arentFingerprint 0001c590: 22 2c 72 29 2c 74 65 28 74 68 69 73 2c 22 66 69 ",r),te(this,"fi 0001c5a0: 6e 67 65 72 70 72 69 6e 74 22 2c 50 28 53 6f 28 ngerprint",P(So( 0001c5b0: 45 6f 28 74 68 69 73 2e 70 75 62 6c 69 63 4b 65 Eo(this.publicKe 0001c5c0: 79 29 29 2c 30 2c 34 29 29 2c 74 65 28 74 68 69 y)),0,4)),te(thi 0001c5d0: 73 2c 22 61 64 64 72 65 73 73 22 2c 63 72 28 74 s,"address",cr(t 0001c5e0: 68 69 73 2e 70 75 62 6c 69 63 4b 65 79 29 29 2c his.publicKey)), 0001c5f0: 74 65 28 74 68 69 73 2c 22 63 68 61 69 6e 43 6f te(this,"chainCo 0001c600: 64 65 22 2c 6f 29 2c 74 65 28 74 68 69 73 2c 22 de",o),te(this," 0001c610: 69 6e 64 65 78 22 2c 69 29 2c 74 65 28 74 68 69 index",i),te(thi 0001c620: 73 2c 22 64 65 70 74 68 22 2c 61 29 2c 6e 75 6c s,"depth",a),nul 0001c630: 6c 3d 3d 73 3f 28 74 65 28 74 68 69 73 2c 22 6d l==s?(te(this,"m 0001c640: 6e 65 6d 6f 6e 69 63 22 2c 6e 75 6c 6c 29 2c 74 nemonic",null),t 0001c650: 65 28 74 68 69 73 2c 22 70 61 74 68 22 2c 6e 75 e(this,"path",nu 0001c660: 6c 6c 29 29 3a 22 73 74 72 69 6e 67 22 3d 3d 74 ll)):"string"==t 0001c670: 79 70 65 6f 66 20 73 3f 28 74 65 28 74 68 69 73 ypeof s?(te(this 0001c680: 2c 22 6d 6e 65 6d 6f 6e 69 63 22 2c 6e 75 6c 6c ,"mnemonic",null 0001c690: 29 2c 74 65 28 74 68 69 73 2c 22 70 61 74 68 22 ),te(this,"path" 0001c6a0: 2c 73 29 29 3a 28 74 65 28 74 68 69 73 2c 22 6d ,s)):(te(this,"m 0001c6b0: 6e 65 6d 6f 6e 69 63 22 2c 73 29 2c 74 65 28 74 nemonic",s),te(t 0001c6c0: 68 69 73 2c 22 70 61 74 68 22 2c 73 2e 70 61 74 his,"path",s.pat 0001c6d0: 68 29 29 7d 67 65 74 20 65 78 74 65 6e 64 65 64 h))}get extended 0001c6e0: 4b 65 79 28 29 7b 69 66 28 74 68 69 73 2e 64 65 Key(){if(this.de 0001c6f0: 70 74 68 3e 3d 32 35 36 29 74 68 72 6f 77 20 6e pth>=256)throw n 0001c700: 65 77 20 45 72 72 6f 72 28 22 44 65 70 74 68 20 ew Error("Depth 0001c710: 74 6f 6f 20 6c 61 72 67 65 21 22 29 3b 72 65 74 too large!");ret 0001c720: 75 72 6e 20 55 6f 28 43 28 5b 6e 75 6c 6c 21 3d urn Uo(C([null!= 0001c730: 74 68 69 73 2e 70 72 69 76 61 74 65 4b 65 79 3f this.privateKey? 0001c740: 22 30 78 30 34 38 38 41 44 45 34 22 3a 22 30 78 "0x0488ADE4":"0x 0001c750: 30 34 38 38 42 32 31 45 22 2c 52 28 74 68 69 73 0488B21E",R(this 0001c760: 2e 64 65 70 74 68 29 2c 74 68 69 73 2e 70 61 72 .depth),this.par 0001c770: 65 6e 74 46 69 6e 67 65 72 70 72 69 6e 74 2c 46 entFingerprint,F 0001c780: 28 52 28 74 68 69 73 2e 69 6e 64 65 78 29 2c 34 (R(this.index),4 0001c790: 29 2c 74 68 69 73 2e 63 68 61 69 6e 43 6f 64 65 ),this.chainCode 0001c7a0: 2c 6e 75 6c 6c 21 3d 74 68 69 73 2e 70 72 69 76 ,null!=this.priv 0001c7b0: 61 74 65 4b 65 79 3f 43 28 5b 22 30 78 30 30 22 ateKey?C(["0x00" 0001c7c0: 2c 74 68 69 73 2e 70 72 69 76 61 74 65 4b 65 79 ,this.privateKey 0001c7d0: 5d 29 3a 74 68 69 73 2e 70 75 62 6c 69 63 4b 65 ]):this.publicKe 0001c7e0: 79 5d 29 29 7d 6e 65 75 74 65 72 28 29 7b 72 65 y]))}neuter(){re 0001c7f0: 74 75 72 6e 20 6e 65 77 20 47 6f 28 6a 6f 2c 6e turn new Go(jo,n 0001c800: 75 6c 6c 2c 74 68 69 73 2e 70 75 62 6c 69 63 4b ull,this.publicK 0001c810: 65 79 2c 74 68 69 73 2e 70 61 72 65 6e 74 46 69 ey,this.parentFi 0001c820: 6e 67 65 72 70 72 69 6e 74 2c 74 68 69 73 2e 63 ngerprint,this.c 0001c830: 68 61 69 6e 43 6f 64 65 2c 74 68 69 73 2e 69 6e hainCode,this.in 0001c840: 64 65 78 2c 74 68 69 73 2e 64 65 70 74 68 2c 74 dex,this.depth,t 0001c850: 68 69 73 2e 70 61 74 68 29 7d 5f 64 65 72 69 76 his.path)}_deriv 0001c860: 65 28 65 29 7b 69 66 28 65 3e 34 32 39 34 39 36 e(e){if(e>429496 0001c870: 37 32 39 35 29 74 68 72 6f 77 20 6e 65 77 20 45 7295)throw new E 0001c880: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 69 6e rror("invalid in 0001c890: 64 65 78 20 2d 20 22 2b 53 74 72 69 6e 67 28 65 dex - "+String(e 0001c8a0: 29 29 3b 6c 65 74 20 74 3d 74 68 69 73 2e 70 61 ));let t=this.pa 0001c8b0: 74 68 3b 74 26 26 28 74 2b 3d 22 2f 22 2b 28 65 th;t&&(t+="/"+(e 0001c8c0: 26 7e 44 6f 29 29 3b 63 6f 6e 73 74 20 6e 3d 6e &~Do));const n=n 0001c8d0: 65 77 20 55 69 6e 74 38 41 72 72 61 79 28 33 37 ew Uint8Array(37 0001c8e0: 29 3b 69 66 28 65 26 44 6f 29 7b 69 66 28 21 74 );if(e&Do){if(!t 0001c8f0: 68 69 73 2e 70 72 69 76 61 74 65 4b 65 79 29 74 his.privateKey)t 0001c900: 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 hrow new Error(" 0001c910: 63 61 6e 6e 6f 74 20 64 65 72 69 76 65 20 63 68 cannot derive ch 0001c920: 69 6c 64 20 6f 66 20 6e 65 75 74 65 72 65 64 20 ild of neutered 0001c930: 6e 6f 64 65 22 29 3b 6e 2e 73 65 74 28 54 28 74 node");n.set(T(t 0001c940: 68 69 73 2e 70 72 69 76 61 74 65 4b 65 79 29 2c his.privateKey), 0001c950: 31 29 2c 74 26 26 28 74 2b 3d 22 27 22 29 7d 65 1),t&&(t+="'")}e 0001c960: 6c 73 65 20 6e 2e 73 65 74 28 54 28 74 68 69 73 lse n.set(T(this 0001c970: 2e 70 75 62 6c 69 63 4b 65 79 29 29 3b 66 6f 72 .publicKey));for 0001c980: 28 6c 65 74 20 74 3d 32 34 3b 74 3e 3d 30 3b 74 (let t=24;t>=0;t 0001c990: 2d 3d 38 29 6e 5b 33 33 2b 28 74 3e 3e 33 29 5d -=8)n[33+(t>>3)] 0001c9a0: 3d 65 3e 3e 32 34 2d 74 26 32 35 35 3b 63 6f 6e =e>>24-t&255;con 0001c9b0: 73 74 20 72 3d 54 28 77 6f 28 79 6f 2e 73 68 61 st r=T(wo(yo.sha 0001c9c0: 35 31 32 2c 74 68 69 73 2e 63 68 61 69 6e 43 6f 512,this.chainCo 0001c9d0: 64 65 2c 6e 29 29 2c 6f 3d 72 2e 73 6c 69 63 65 de,n)),o=r.slice 0001c9e0: 28 30 2c 33 32 29 2c 69 3d 72 2e 73 6c 69 63 65 (0,32),i=r.slice 0001c9f0: 28 33 32 29 3b 6c 65 74 20 61 3d 6e 75 6c 6c 2c (32);let a=null, 0001ca00: 73 3d 6e 75 6c 6c 3b 69 66 28 74 68 69 73 2e 70 s=null;if(this.p 0001ca10: 72 69 76 61 74 65 4b 65 79 29 61 3d 46 6f 28 59 rivateKey)a=Fo(Y 0001ca20: 2e 66 72 6f 6d 28 6f 29 2e 61 64 64 28 74 68 69 .from(o).add(thi 0001ca30: 73 2e 70 72 69 76 61 74 65 4b 65 79 29 2e 6d 6f s.privateKey).mo 0001ca40: 64 28 50 6f 29 29 3b 65 6c 73 65 7b 73 3d 6e 65 d(Po));else{s=ne 0001ca50: 77 20 65 72 28 52 28 6f 29 29 2e 5f 61 64 64 50 w er(R(o))._addP 0001ca60: 6f 69 6e 74 28 74 68 69 73 2e 70 75 62 6c 69 63 oint(this.public 0001ca70: 4b 65 79 29 7d 6c 65 74 20 6c 3d 74 3b 63 6f 6e Key)}let l=t;con 0001ca80: 73 74 20 63 3d 74 68 69 73 2e 6d 6e 65 6d 6f 6e st c=this.mnemon 0001ca90: 69 63 3b 72 65 74 75 72 6e 20 63 26 26 28 6c 3d ic;return c&&(l= 0001caa0: 4f 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 7b 70 Object.freeze({p 0001cab0: 68 72 61 73 65 3a 63 2e 70 68 72 61 73 65 2c 70 hrase:c.phrase,p 0001cac0: 61 74 68 3a 74 2c 6c 6f 63 61 6c 65 3a 63 2e 6c ath:t,locale:c.l 0001cad0: 6f 63 61 6c 65 7c 7c 22 65 6e 22 7d 29 29 2c 6e ocale||"en"})),n 0001cae0: 65 77 20 47 6f 28 6a 6f 2c 61 2c 73 2c 74 68 69 ew Go(jo,a,s,thi 0001caf0: 73 2e 66 69 6e 67 65 72 70 72 69 6e 74 2c 46 6f s.fingerprint,Fo 0001cb00: 28 69 29 2c 65 2c 74 68 69 73 2e 64 65 70 74 68 (i),e,this.depth 0001cb10: 2b 31 2c 6c 29 7d 64 65 72 69 76 65 50 61 74 68 +1,l)}derivePath 0001cb20: 28 65 29 7b 63 6f 6e 73 74 20 74 3d 65 2e 73 70 (e){const t=e.sp 0001cb30: 6c 69 74 28 22 2f 22 29 3b 69 66 28 30 3d 3d 3d lit("/");if(0=== 0001cb40: 74 2e 6c 65 6e 67 74 68 7c 7c 22 6d 22 3d 3d 3d t.length||"m"=== 0001cb50: 74 5b 30 5d 26 26 30 21 3d 3d 74 68 69 73 2e 64 t[0]&&0!==this.d 0001cb60: 65 70 74 68 29 74 68 72 6f 77 20 6e 65 77 20 45 epth)throw new E 0001cb70: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 70 61 rror("invalid pa 0001cb80: 74 68 20 2d 20 22 2b 65 29 3b 22 6d 22 3d 3d 3d th - "+e);"m"=== 0001cb90: 74 5b 30 5d 26 26 74 2e 73 68 69 66 74 28 29 3b t[0]&&t.shift(); 0001cba0: 6c 65 74 20 6e 3d 74 68 69 73 3b 66 6f 72 28 6c let n=this;for(l 0001cbb0: 65 74 20 65 3d 30 3b 65 3c 74 2e 6c 65 6e 67 74 et e=0;e<t.lengt 0001cbc0: 68 3b 65 2b 2b 29 7b 63 6f 6e 73 74 20 72 3d 74 h;e++){const r=t 0001cbd0: 5b 65 5d 3b 69 66 28 72 2e 6d 61 74 63 68 28 2f [e];if(r.match(/ 0001cbe0: 5e 5b 30 2d 39 5d 2b 27 24 2f 29 29 7b 63 6f 6e ^[0-9]+'$/)){con 0001cbf0: 73 74 20 65 3d 70 61 72 73 65 49 6e 74 28 72 2e st e=parseInt(r. 0001cc00: 73 75 62 73 74 72 69 6e 67 28 30 2c 72 2e 6c 65 substring(0,r.le 0001cc10: 6e 67 74 68 2d 31 29 29 3b 69 66 28 65 3e 3d 44 ngth-1));if(e>=D 0001cc20: 6f 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f o)throw new Erro 0001cc30: 72 28 22 69 6e 76 61 6c 69 64 20 70 61 74 68 20 r("invalid path 0001cc40: 69 6e 64 65 78 20 2d 20 22 2b 72 29 3b 6e 3d 6e index - "+r);n=n 0001cc50: 2e 5f 64 65 72 69 76 65 28 44 6f 2b 65 29 7d 65 ._derive(Do+e)}e 0001cc60: 6c 73 65 7b 69 66 28 21 72 2e 6d 61 74 63 68 28 lse{if(!r.match( 0001cc70: 2f 5e 5b 30 2d 39 5d 2b 24 2f 29 29 74 68 72 6f /^[0-9]+$/))thro 0001cc80: 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 76 w new Error("inv 0001cc90: 61 6c 69 64 20 70 61 74 68 20 63 6f 6d 70 6f 6e alid path compon 0001cca0: 65 6e 74 20 2d 20 22 2b 72 29 3b 7b 63 6f 6e 73 ent - "+r);{cons 0001ccb0: 74 20 65 3d 70 61 72 73 65 49 6e 74 28 72 29 3b t e=parseInt(r); 0001ccc0: 69 66 28 65 3e 3d 44 6f 29 74 68 72 6f 77 20 6e if(e>=Do)throw n 0001ccd0: 65 77 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 ew Error("invali 0001cce0: 64 20 70 61 74 68 20 69 6e 64 65 78 20 2d 20 22 d path index - " 0001ccf0: 2b 72 29 3b 6e 3d 6e 2e 5f 64 65 72 69 76 65 28 +r);n=n._derive( 0001cd00: 65 29 7d 7d 7d 72 65 74 75 72 6e 20 6e 7d 73 74 e)}}}return n}st 0001cd10: 61 74 69 63 20 5f 66 72 6f 6d 53 65 65 64 28 65 atic _fromSeed(e 0001cd20: 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 54 28 65 29 ,t){const n=T(e) 0001cd30: 3b 69 66 28 6e 2e 6c 65 6e 67 74 68 3c 31 36 7c ;if(n.length<16| 0001cd40: 7c 6e 2e 6c 65 6e 67 74 68 3e 36 34 29 74 68 72 |n.length>64)thr 0001cd50: 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e ow new Error("in 0001cd60: 76 61 6c 69 64 20 73 65 65 64 22 29 3b 63 6f 6e valid seed");con 0001cd70: 73 74 20 72 3d 54 28 77 6f 28 79 6f 2e 73 68 61 st r=T(wo(yo.sha 0001cd80: 35 31 32 2c 4d 6f 2c 6e 29 29 3b 72 65 74 75 72 512,Mo,n));retur 0001cd90: 6e 20 6e 65 77 20 47 6f 28 6a 6f 2c 46 6f 28 72 n new Go(jo,Fo(r 0001cda0: 2e 73 6c 69 63 65 28 30 2c 33 32 29 29 2c 6e 75 .slice(0,32)),nu 0001cdb0: 6c 6c 2c 22 30 78 30 30 30 30 30 30 30 30 22 2c ll,"0x00000000", 0001cdc0: 46 6f 28 72 2e 73 6c 69 63 65 28 33 32 29 29 2c Fo(r.slice(32)), 0001cdd0: 30 2c 30 2c 74 29 7d 73 74 61 74 69 63 20 66 72 0,0,t)}static fr 0001cde0: 6f 6d 4d 6e 65 6d 6f 6e 69 63 28 65 2c 74 2c 6e omMnemonic(e,t,n 0001cdf0: 29 7b 72 65 74 75 72 6e 20 65 3d 71 6f 28 56 6f ){return e=qo(Vo 0001ce00: 28 65 2c 6e 3d 42 6f 28 6e 29 29 2c 6e 29 2c 47 (e,n=Bo(n)),n),G 0001ce10: 6f 2e 5f 66 72 6f 6d 53 65 65 64 28 48 6f 28 65 o._fromSeed(Ho(e 0001ce20: 2c 74 29 2c 7b 70 68 72 61 73 65 3a 65 2c 70 61 ,t),{phrase:e,pa 0001ce30: 74 68 3a 22 6d 22 2c 6c 6f 63 61 6c 65 3a 6e 2e th:"m",locale:n. 0001ce40: 6c 6f 63 61 6c 65 7d 29 7d 73 74 61 74 69 63 20 locale})}static 0001ce50: 66 72 6f 6d 53 65 65 64 28 65 29 7b 72 65 74 75 fromSeed(e){retu 0001ce60: 72 6e 20 47 6f 2e 5f 66 72 6f 6d 53 65 65 64 28 rn Go._fromSeed( 0001ce70: 65 2c 6e 75 6c 6c 29 7d 73 74 61 74 69 63 20 66 e,null)}static f 0001ce80: 72 6f 6d 45 78 74 65 6e 64 65 64 4b 65 79 28 65 romExtendedKey(e 0001ce90: 29 7b 63 6f 6e 73 74 20 74 3d 62 6f 2e 64 65 63 ){const t=bo.dec 0001cea0: 6f 64 65 28 65 29 3b 38 32 3d 3d 3d 74 2e 6c 65 ode(e);82===t.le 0001ceb0: 6e 67 74 68 26 26 55 6f 28 74 2e 73 6c 69 63 65 ngth&&Uo(t.slice 0001cec0: 28 30 2c 37 38 29 29 3d 3d 3d 65 7c 7c 4e 6f 2e (0,78))===e||No. 0001ced0: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 0001cee0: 6f 72 28 22 69 6e 76 61 6c 69 64 20 65 78 74 65 or("invalid exte 0001cef0: 6e 64 65 64 20 6b 65 79 22 2c 22 65 78 74 65 6e nded key","exten 0001cf00: 64 65 64 4b 65 79 22 2c 22 5b 52 45 44 41 43 54 dedKey","[REDACT 0001cf10: 45 44 5d 22 29 3b 63 6f 6e 73 74 20 6e 3d 74 5b ED]");const n=t[ 0001cf20: 34 5d 2c 72 3d 52 28 74 2e 73 6c 69 63 65 28 35 4],r=R(t.slice(5 0001cf30: 2c 39 29 29 2c 6f 3d 70 61 72 73 65 49 6e 74 28 ,9)),o=parseInt( 0001cf40: 52 28 74 2e 73 6c 69 63 65 28 39 2c 31 33 29 29 R(t.slice(9,13)) 0001cf50: 2e 73 75 62 73 74 72 69 6e 67 28 32 29 2c 31 36 .substring(2),16 0001cf60: 29 2c 69 3d 52 28 74 2e 73 6c 69 63 65 28 31 33 ),i=R(t.slice(13 0001cf70: 2c 34 35 29 29 2c 61 3d 74 2e 73 6c 69 63 65 28 ,45)),a=t.slice( 0001cf80: 34 35 2c 37 38 29 3b 73 77 69 74 63 68 28 52 28 45,78);switch(R( 0001cf90: 74 2e 73 6c 69 63 65 28 30 2c 34 29 29 29 7b 63 t.slice(0,4))){c 0001cfa0: 61 73 65 22 30 78 30 34 38 38 62 32 31 65 22 3a ase"0x0488b21e": 0001cfb0: 63 61 73 65 22 30 78 30 34 33 35 38 37 63 66 22 case"0x043587cf" 0001cfc0: 3a 72 65 74 75 72 6e 20 6e 65 77 20 47 6f 28 6a :return new Go(j 0001cfd0: 6f 2c 6e 75 6c 6c 2c 52 28 61 29 2c 72 2c 69 2c o,null,R(a),r,i, 0001cfe0: 6f 2c 6e 2c 6e 75 6c 6c 29 3b 63 61 73 65 22 30 o,n,null);case"0 0001cff0: 78 30 34 38 38 61 64 65 34 22 3a 63 61 73 65 22 x0488ade4":case" 0001d000: 30 78 30 34 33 35 38 33 39 34 20 22 3a 69 66 28 0x04358394 ":if( 0001d010: 30 21 3d 3d 61 5b 30 5d 29 62 72 65 61 6b 3b 72 0!==a[0])break;r 0001d020: 65 74 75 72 6e 20 6e 65 77 20 47 6f 28 6a 6f 2c eturn new Go(jo, 0001d030: 52 28 61 2e 73 6c 69 63 65 28 31 29 29 2c 6e 75 R(a.slice(1)),nu 0001d040: 6c 6c 2c 72 2c 69 2c 6f 2c 6e 2c 6e 75 6c 6c 29 ll,r,i,o,n,null) 0001d050: 7d 72 65 74 75 72 6e 20 4e 6f 2e 74 68 72 6f 77 }return No.throw 0001d060: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 0001d070: 6e 76 61 6c 69 64 20 65 78 74 65 6e 64 65 64 20 nvalid extended 0001d080: 6b 65 79 22 2c 22 65 78 74 65 6e 64 65 64 4b 65 key","extendedKe 0001d090: 79 22 2c 22 5b 52 45 44 41 43 54 45 44 5d 22 29 y","[REDACTED]") 0001d0a0: 7d 7d 66 75 6e 63 74 69 6f 6e 20 48 6f 28 65 2c }}function Ho(e, 0001d0b0: 74 29 7b 74 7c 7c 28 74 3d 22 22 29 3b 63 6f 6e t){t||(t="");con 0001d0c0: 73 74 20 6e 3d 71 65 28 22 6d 6e 65 6d 6f 6e 69 st n=qe("mnemoni 0001d0d0: 63 22 2b 74 2c 6a 65 2e 4e 46 4b 44 29 3b 72 65 c"+t,je.NFKD);re 0001d0e0: 74 75 72 6e 20 78 6f 28 71 65 28 65 2c 6a 65 2e turn xo(qe(e,je. 0001d0f0: 4e 46 4b 44 29 2c 6e 2c 32 30 34 38 2c 36 34 2c NFKD),n,2048,64, 0001d100: 22 73 68 61 35 31 32 22 29 7d 66 75 6e 63 74 69 "sha512")}functi 0001d110: 6f 6e 20 56 6f 28 65 2c 74 29 7b 74 3d 42 6f 28 on Vo(e,t){t=Bo( 0001d120: 74 29 2c 4e 6f 2e 63 68 65 63 6b 4e 6f 72 6d 61 t),No.checkNorma 0001d130: 6c 69 7a 65 28 29 3b 63 6f 6e 73 74 20 6e 3d 74 lize();const n=t 0001d140: 2e 73 70 6c 69 74 28 65 29 3b 69 66 28 6e 2e 6c .split(e);if(n.l 0001d150: 65 6e 67 74 68 25 33 21 3d 30 29 74 68 72 6f 77 ength%3!=0)throw 0001d160: 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 76 61 new Error("inva 0001d170: 6c 69 64 20 6d 6e 65 6d 6f 6e 69 63 22 29 3b 63 lid mnemonic");c 0001d180: 6f 6e 73 74 20 72 3d 54 28 6e 65 77 20 55 69 6e onst r=T(new Uin 0001d190: 74 38 41 72 72 61 79 28 4d 61 74 68 2e 63 65 69 t8Array(Math.cei 0001d1a0: 6c 28 31 31 2a 6e 2e 6c 65 6e 67 74 68 2f 38 29 l(11*n.length/8) 0001d1b0: 29 29 3b 6c 65 74 20 6f 3d 30 3b 66 6f 72 28 6c ));let o=0;for(l 0001d1c0: 65 74 20 65 3d 30 3b 65 3c 6e 2e 6c 65 6e 67 74 et e=0;e<n.lengt 0001d1d0: 68 3b 65 2b 2b 29 7b 6c 65 74 20 69 3d 74 2e 67 h;e++){let i=t.g 0001d1e0: 65 74 57 6f 72 64 49 6e 64 65 78 28 6e 5b 65 5d etWordIndex(n[e] 0001d1f0: 2e 6e 6f 72 6d 61 6c 69 7a 65 28 22 4e 46 4b 44 .normalize("NFKD 0001d200: 22 29 29 3b 69 66 28 2d 31 3d 3d 3d 69 29 74 68 "));if(-1===i)th 0001d210: 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 row new Error("i 0001d220: 6e 76 61 6c 69 64 20 6d 6e 65 6d 6f 6e 69 63 22 nvalid mnemonic" 0001d230: 29 3b 66 6f 72 28 6c 65 74 20 65 3d 30 3b 65 3c );for(let e=0;e< 0001d240: 31 31 3b 65 2b 2b 29 69 26 31 3c 3c 31 30 2d 65 11;e++)i&1<<10-e 0001d250: 26 26 28 72 5b 6f 3e 3e 33 5d 7c 3d 31 3c 3c 37 &&(r[o>>3]|=1<<7 0001d260: 2d 6f 25 38 29 2c 6f 2b 2b 7d 63 6f 6e 73 74 20 -o%8),o++}const 0001d270: 69 3d 33 32 2a 6e 2e 6c 65 6e 67 74 68 2f 33 2c i=32*n.length/3, 0001d280: 61 3d 4c 6f 28 6e 2e 6c 65 6e 67 74 68 2f 33 29 a=Lo(n.length/3) 0001d290: 3b 69 66 28 28 54 28 45 6f 28 72 2e 73 6c 69 63 ;if((T(Eo(r.slic 0001d2a0: 65 28 30 2c 69 2f 38 29 29 29 5b 30 5d 26 61 29 e(0,i/8)))[0]&a) 0001d2b0: 21 3d 3d 28 72 5b 72 2e 6c 65 6e 67 74 68 2d 31 !==(r[r.length-1 0001d2c0: 5d 26 61 29 29 74 68 72 6f 77 20 6e 65 77 20 45 ]&a))throw new E 0001d2d0: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 63 68 rror("invalid ch 0001d2e0: 65 63 6b 73 75 6d 22 29 3b 72 65 74 75 72 6e 20 ecksum");return 0001d2f0: 52 28 72 2e 73 6c 69 63 65 28 30 2c 69 2f 38 29 R(r.slice(0,i/8) 0001d300: 29 7d 66 75 6e 63 74 69 6f 6e 20 71 6f 28 65 2c )}function qo(e, 0001d310: 74 29 7b 69 66 28 74 3d 42 6f 28 74 29 2c 28 65 t){if(t=Bo(t),(e 0001d320: 3d 54 28 65 29 29 2e 6c 65 6e 67 74 68 25 34 21 =T(e)).length%4! 0001d330: 3d 30 7c 7c 65 2e 6c 65 6e 67 74 68 3c 31 36 7c =0||e.length<16| 0001d340: 7c 65 2e 6c 65 6e 67 74 68 3e 33 32 29 74 68 72 |e.length>32)thr 0001d350: 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e ow new Error("in 0001d360: 76 61 6c 69 64 20 65 6e 74 72 6f 70 79 22 29 3b valid entropy"); 0001d370: 63 6f 6e 73 74 20 6e 3d 5b 30 5d 3b 6c 65 74 20 const n=[0];let 0001d380: 72 3d 31 31 3b 66 6f 72 28 6c 65 74 20 74 3d 30 r=11;for(let t=0 0001d390: 3b 74 3c 65 2e 6c 65 6e 67 74 68 3b 74 2b 2b 29 ;t<e.length;t++) 0001d3a0: 72 3e 38 3f 28 6e 5b 6e 2e 6c 65 6e 67 74 68 2d r>8?(n[n.length- 0001d3b0: 31 5d 3c 3c 3d 38 2c 6e 5b 6e 2e 6c 65 6e 67 74 1]<<=8,n[n.lengt 0001d3c0: 68 2d 31 5d 7c 3d 65 5b 74 5d 2c 72 2d 3d 38 29 h-1]|=e[t],r-=8) 0001d3d0: 3a 28 6e 5b 6e 2e 6c 65 6e 67 74 68 2d 31 5d 3c :(n[n.length-1]< 0001d3e0: 3c 3d 72 2c 6e 5b 6e 2e 6c 65 6e 67 74 68 2d 31 <=r,n[n.length-1 0001d3f0: 5d 7c 3d 65 5b 74 5d 3e 3e 38 2d 72 2c 6e 2e 70 ]|=e[t]>>8-r,n.p 0001d400: 75 73 68 28 65 5b 74 5d 26 28 31 3c 3c 38 2d 72 ush(e[t]&(1<<8-r 0001d410: 29 2d 31 29 2c 72 2b 3d 33 29 3b 63 6f 6e 73 74 )-1),r+=3);const 0001d420: 20 6f 3d 65 2e 6c 65 6e 67 74 68 2f 34 2c 69 3d o=e.length/4,i= 0001d430: 54 28 45 6f 28 65 29 29 5b 30 5d 26 4c 6f 28 6f T(Eo(e))[0]&Lo(o 0001d440: 29 3b 72 65 74 75 72 6e 20 6e 5b 6e 2e 6c 65 6e );return n[n.len 0001d450: 67 74 68 2d 31 5d 3c 3c 3d 6f 2c 6e 5b 6e 2e 6c gth-1]<<=o,n[n.l 0001d460: 65 6e 67 74 68 2d 31 5d 7c 3d 69 3e 3e 38 2d 6f ength-1]|=i>>8-o 0001d470: 2c 74 2e 6a 6f 69 6e 28 6e 2e 6d 61 70 28 28 65 ,t.join(n.map((e 0001d480: 3d 3e 74 2e 67 65 74 57 6f 72 64 28 65 29 29 29 =>t.getWord(e))) 0001d490: 29 7d 66 75 6e 63 74 69 6f 6e 20 57 6f 28 65 2c )}function Wo(e, 0001d4a0: 74 29 7b 74 72 79 7b 72 65 74 75 72 6e 20 56 6f t){try{return Vo 0001d4b0: 28 65 2c 74 29 2c 21 30 7d 63 61 74 63 68 28 65 (e,t),!0}catch(e 0001d4c0: 29 7b 7d 72 65 74 75 72 6e 21 31 7d 66 75 6e 63 ){}return!1}func 0001d4d0: 74 69 6f 6e 20 4b 6f 28 65 29 7b 72 65 74 75 72 tion Ko(e){retur 0001d4e0: 6e 28 22 6e 75 6d 62 65 72 22 21 3d 74 79 70 65 n("number"!=type 0001d4f0: 6f 66 20 65 7c 7c 65 3c 30 7c 7c 65 3e 3d 44 6f of e||e<0||e>=Do 0001d500: 7c 7c 65 25 31 29 26 26 4e 6f 2e 74 68 72 6f 77 ||e%1)&&No.throw 0001d510: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 0001d520: 6e 76 61 6c 69 64 20 61 63 63 6f 75 6e 74 20 69 nvalid account i 0001d530: 6e 64 65 78 22 2c 22 69 6e 64 65 78 22 2c 65 29 ndex","index",e) 0001d540: 2c 60 6d 2f 34 34 27 2f 36 30 27 2f 24 7b 65 7d ,`m/44'/60'/${e} 0001d550: 27 2f 30 2f 30 60 7d 63 6f 6e 73 74 20 59 6f 3d '/0/0`}const Yo= 0001d560: 6e 65 77 20 79 28 22 72 61 6e 64 6f 6d 2f 35 2e new y("random/5. 0001d570: 37 2e 30 22 29 3b 63 6f 6e 73 74 20 58 6f 3d 66 7.0");const Xo=f 0001d580: 75 6e 63 74 69 6f 6e 28 29 7b 69 66 28 22 75 6e unction(){if("un 0001d590: 64 65 66 69 6e 65 64 22 21 3d 74 79 70 65 6f 66 defined"!=typeof 0001d5a0: 20 73 65 6c 66 29 72 65 74 75 72 6e 20 73 65 6c self)return sel 0001d5b0: 66 3b 69 66 28 22 75 6e 64 65 66 69 6e 65 64 22 f;if("undefined" 0001d5c0: 21 3d 74 79 70 65 6f 66 20 77 69 6e 64 6f 77 29 !=typeof window) 0001d5d0: 72 65 74 75 72 6e 20 77 69 6e 64 6f 77 3b 69 66 return window;if 0001d5e0: 28 76 6f 69 64 20 30 21 3d 3d 6e 2e 67 29 72 65 (void 0!==n.g)re 0001d5f0: 74 75 72 6e 20 6e 2e 67 3b 74 68 72 6f 77 20 6e turn n.g;throw n 0001d600: 65 77 20 45 72 72 6f 72 28 22 75 6e 61 62 6c 65 ew Error("unable 0001d610: 20 74 6f 20 6c 6f 63 61 74 65 20 67 6c 6f 62 61 to locate globa 0001d620: 6c 20 6f 62 6a 65 63 74 22 29 7d 28 29 3b 6c 65 l object")}();le 0001d630: 74 20 5a 6f 3d 58 6f 2e 63 72 79 70 74 6f 7c 7c t Zo=Xo.crypto|| 0001d640: 58 6f 2e 6d 73 43 72 79 70 74 6f 3b 66 75 6e 63 Xo.msCrypto;func 0001d650: 74 69 6f 6e 20 51 6f 28 65 29 7b 28 65 3c 3d 30 tion Qo(e){(e<=0 0001d660: 7c 7c 65 3e 31 30 32 34 7c 7c 65 25 31 7c 7c 65 ||e>1024||e%1||e 0001d670: 21 3d 65 29 26 26 59 6f 2e 74 68 72 6f 77 41 72 !=e)&&Yo.throwAr 0001d680: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 0001d690: 61 6c 69 64 20 6c 65 6e 67 74 68 22 2c 22 6c 65 alid length","le 0001d6a0: 6e 67 74 68 22 2c 65 29 3b 63 6f 6e 73 74 20 74 ngth",e);const t 0001d6b0: 3d 6e 65 77 20 55 69 6e 74 38 41 72 72 61 79 28 =new Uint8Array( 0001d6c0: 65 29 3b 72 65 74 75 72 6e 20 5a 6f 2e 67 65 74 e);return Zo.get 0001d6d0: 52 61 6e 64 6f 6d 56 61 6c 75 65 73 28 74 29 2c RandomValues(t), 0001d6e0: 54 28 74 29 7d 5a 6f 26 26 5a 6f 2e 67 65 74 52 T(t)}Zo&&Zo.getR 0001d6f0: 61 6e 64 6f 6d 56 61 6c 75 65 73 7c 7c 28 59 6f andomValues||(Yo 0001d700: 2e 77 61 72 6e 28 22 57 41 52 4e 49 4e 47 3a 20 .warn("WARNING: 0001d710: 4d 69 73 73 69 6e 67 20 73 74 72 6f 6e 67 20 72 Missing strong r 0001d720: 61 6e 64 6f 6d 20 6e 75 6d 62 65 72 20 73 6f 75 andom number sou 0001d730: 72 63 65 22 29 2c 5a 6f 3d 7b 67 65 74 52 61 6e rce"),Zo={getRan 0001d740: 64 6f 6d 56 61 6c 75 65 73 3a 66 75 6e 63 74 69 domValues:functi 0001d750: 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 59 6f 2e on(e){return Yo. 0001d760: 74 68 72 6f 77 45 72 72 6f 72 28 22 6e 6f 20 73 throwError("no s 0001d770: 65 63 75 72 65 20 72 61 6e 64 6f 6d 20 73 6f 75 ecure random sou 0001d780: 72 63 65 20 61 76 61 69 61 6c 62 6c 65 22 2c 79 rce avaialble",y 0001d790: 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 .errors.UNSUPPOR 0001d7a0: 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f TED_OPERATION,{o 0001d7b0: 70 65 72 61 74 69 6f 6e 3a 22 63 72 79 70 74 6f peration:"crypto 0001d7c0: 2e 67 65 74 52 61 6e 64 6f 6d 56 61 6c 75 65 73 .getRandomValues 0001d7d0: 22 7d 29 7d 7d 29 3b 76 61 72 20 4a 6f 3d 6e 28 "})}});var Jo=n( 0001d7e0: 37 38 38 32 36 29 2c 24 6f 3d 6e 2e 6e 28 4a 6f 78826),$o=n.n(Jo 0001d7f0: 29 2c 65 69 3d 6e 28 31 37 36 33 35 29 2c 74 69 ),ei=n(17635),ti 0001d800: 3d 6e 2e 6e 28 65 69 29 3b 66 75 6e 63 74 69 6f =n.n(ei);functio 0001d810: 6e 20 6e 69 28 65 29 7b 72 65 74 75 72 6e 22 73 n ni(e){return"s 0001d820: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 0001d830: 26 26 22 30 78 22 21 3d 3d 65 2e 73 75 62 73 74 &&"0x"!==e.subst 0001d840: 72 69 6e 67 28 30 2c 32 29 26 26 28 65 3d 22 30 ring(0,2)&&(e="0 0001d850: 78 22 2b 65 29 2c 54 28 65 29 7d 66 75 6e 63 74 x"+e),T(e)}funct 0001d860: 69 6f 6e 20 72 69 28 65 2c 74 29 7b 66 6f 72 28 ion ri(e,t){for( 0001d870: 65 3d 53 74 72 69 6e 67 28 65 29 3b 65 2e 6c 65 e=String(e);e.le 0001d880: 6e 67 74 68 3c 74 3b 29 65 3d 22 30 22 2b 65 3b ngth<t;)e="0"+e; 0001d890: 72 65 74 75 72 6e 20 65 7d 66 75 6e 63 74 69 6f return e}functio 0001d8a0: 6e 20 6f 69 28 65 29 7b 72 65 74 75 72 6e 22 73 n oi(e){return"s 0001d8b0: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 0001d8c0: 3f 71 65 28 65 2c 6a 65 2e 4e 46 4b 43 29 3a 54 ?qe(e,je.NFKC):T 0001d8d0: 28 65 29 7d 66 75 6e 63 74 69 6f 6e 20 69 69 28 (e)}function ii( 0001d8e0: 65 2c 74 29 7b 6c 65 74 20 6e 3d 65 3b 63 6f 6e e,t){let n=e;con 0001d8f0: 73 74 20 72 3d 74 2e 74 6f 4c 6f 77 65 72 43 61 st r=t.toLowerCa 0001d900: 73 65 28 29 2e 73 70 6c 69 74 28 22 2f 22 29 3b se().split("/"); 0001d910: 66 6f 72 28 6c 65 74 20 65 3d 30 3b 65 3c 72 2e for(let e=0;e<r. 0001d920: 6c 65 6e 67 74 68 3b 65 2b 2b 29 7b 6c 65 74 20 length;e++){let 0001d930: 74 3d 6e 75 6c 6c 3b 66 6f 72 28 63 6f 6e 73 74 t=null;for(const 0001d940: 20 6f 20 69 6e 20 6e 29 69 66 28 6f 2e 74 6f 4c o in n)if(o.toL 0001d950: 6f 77 65 72 43 61 73 65 28 29 3d 3d 3d 72 5b 65 owerCase()===r[e 0001d960: 5d 29 7b 74 3d 6e 5b 6f 5d 3b 62 72 65 61 6b 7d ]){t=n[o];break} 0001d970: 69 66 28 6e 75 6c 6c 3d 3d 3d 74 29 72 65 74 75 if(null===t)retu 0001d980: 72 6e 20 6e 75 6c 6c 3b 6e 3d 74 7d 72 65 74 75 rn null;n=t}retu 0001d990: 72 6e 20 6e 7d 66 75 6e 63 74 69 6f 6e 20 61 69 rn n}function ai 0001d9a0: 28 65 29 7b 63 6f 6e 73 74 20 74 3d 54 28 65 29 (e){const t=T(e) 0001d9b0: 3b 74 5b 36 5d 3d 31 35 26 74 5b 36 5d 7c 36 34 ;t[6]=15&t[6]|64 0001d9c0: 2c 74 5b 38 5d 3d 36 33 26 74 5b 38 5d 7c 31 32 ,t[8]=63&t[8]|12 0001d9d0: 38 3b 63 6f 6e 73 74 20 6e 3d 52 28 74 29 3b 72 8;const n=R(t);r 0001d9e0: 65 74 75 72 6e 5b 6e 2e 73 75 62 73 74 72 69 6e eturn[n.substrin 0001d9f0: 67 28 32 2c 31 30 29 2c 6e 2e 73 75 62 73 74 72 g(2,10),n.substr 0001da00: 69 6e 67 28 31 30 2c 31 34 29 2c 6e 2e 73 75 62 ing(10,14),n.sub 0001da10: 73 74 72 69 6e 67 28 31 34 2c 31 38 29 2c 6e 2e string(14,18),n. 0001da20: 73 75 62 73 74 72 69 6e 67 28 31 38 2c 32 32 29 substring(18,22) 0001da30: 2c 6e 2e 73 75 62 73 74 72 69 6e 67 28 32 32 2c ,n.substring(22, 0001da40: 33 34 29 5d 2e 6a 6f 69 6e 28 22 2d 22 29 7d 63 34)].join("-")}c 0001da50: 6f 6e 73 74 20 73 69 3d 22 6a 73 6f 6e 2d 77 61 onst si="json-wa 0001da60: 6c 6c 65 74 73 2f 35 2e 37 2e 30 22 3b 76 61 72 llets/5.7.0";var 0001da70: 20 6c 69 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 li=function(e,t 0001da80: 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 6e 65 77 ,n,r){return new 0001da90: 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 65 29 29 (n||(n=Promise)) 0001daa0: 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c 69 29 7b ((function(o,i){ 0001dab0: 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 7b 74 72 function a(e){tr 0001dac0: 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 29 7d 63 y{l(r.next(e))}c 0001dad0: 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 atch(e){i(e)}}fu 0001dae0: 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 72 79 7b nction s(e){try{ 0001daf0: 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 7d 63 61 l(r.throw(e))}ca 0001db00: 74 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e tch(e){i(e)}}fun 0001db10: 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 72 20 74 ction l(e){var t 0001db20: 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 61 6c 75 ;e.done?o(e.valu 0001db30: 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 2c 74 20 e):(t=e.value,t 0001db40: 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f 74 3a 6e instanceof n?t:n 0001db50: 65 77 20 6e 28 28 66 75 6e 63 74 69 6f 6e 28 65 ew n((function(e 0001db60: 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 65 6e 28 ){e(t)}))).then( 0001db70: 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 70 70 6c a,s)}l((r=r.appl 0001db80: 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 78 74 y(e,t||[])).next 0001db90: 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 20 63 69 ())}))};const ci 0001dba0: 3d 6e 65 77 20 79 28 73 69 29 3b 66 75 6e 63 74 =new y(si);funct 0001dbb0: 69 6f 6e 20 75 69 28 65 29 7b 72 65 74 75 72 6e ion ui(e){return 0001dbc0: 20 6e 75 6c 6c 21 3d 65 26 26 65 2e 6d 6e 65 6d null!=e&&e.mnem 0001dbd0: 6f 6e 69 63 26 26 65 2e 6d 6e 65 6d 6f 6e 69 63 onic&&e.mnemonic 0001dbe0: 2e 70 68 72 61 73 65 7d 63 6c 61 73 73 20 64 69 .phrase}class di 0001dbf0: 20 65 78 74 65 6e 64 73 20 75 65 7b 69 73 4b 65 extends ue{isKe 0001dc00: 79 73 74 6f 72 65 41 63 63 6f 75 6e 74 28 65 29 ystoreAccount(e) 0001dc10: 7b 72 65 74 75 72 6e 21 28 21 65 7c 7c 21 65 2e {return!(!e||!e. 0001dc20: 5f 69 73 4b 65 79 73 74 6f 72 65 41 63 63 6f 75 _isKeystoreAccou 0001dc30: 6e 74 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 70 69 nt)}}function pi 0001dc40: 28 65 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 6e 69 (e,t){const n=ni 0001dc50: 28 69 69 28 65 2c 22 63 72 79 70 74 6f 2f 63 69 (ii(e,"crypto/ci 0001dc60: 70 68 65 72 74 65 78 74 22 29 29 3b 69 66 28 52 phertext"));if(R 0001dc70: 28 76 65 28 43 28 5b 74 2e 73 6c 69 63 65 28 31 (ve(C([t.slice(1 0001dc80: 36 2c 33 32 29 2c 6e 5d 29 29 29 2e 73 75 62 73 6,32),n]))).subs 0001dc90: 74 72 69 6e 67 28 32 29 21 3d 3d 69 69 28 65 2c tring(2)!==ii(e, 0001dca0: 22 63 72 79 70 74 6f 2f 6d 61 63 22 29 2e 74 6f "crypto/mac").to 0001dcb0: 4c 6f 77 65 72 43 61 73 65 28 29 29 74 68 72 6f LowerCase())thro 0001dcc0: 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 76 w new Error("inv 0001dcd0: 61 6c 69 64 20 70 61 73 73 77 6f 72 64 22 29 3b alid password"); 0001dce0: 63 6f 6e 73 74 20 72 3d 66 75 6e 63 74 69 6f 6e const r=function 0001dcf0: 28 65 2c 74 2c 6e 29 7b 69 66 28 22 61 65 73 2d (e,t,n){if("aes- 0001dd00: 31 32 38 2d 63 74 72 22 3d 3d 3d 69 69 28 65 2c 128-ctr"===ii(e, 0001dd10: 22 63 72 79 70 74 6f 2f 63 69 70 68 65 72 22 29 "crypto/cipher") 0001dd20: 29 7b 63 6f 6e 73 74 20 72 3d 6e 69 28 69 69 28 ){const r=ni(ii( 0001dd30: 65 2c 22 63 72 79 70 74 6f 2f 63 69 70 68 65 72 e,"crypto/cipher 0001dd40: 70 61 72 61 6d 73 2f 69 76 22 29 29 2c 6f 3d 6e params/iv")),o=n 0001dd50: 65 77 28 24 6f 28 29 2e 43 6f 75 6e 74 65 72 29 ew($o().Counter) 0001dd60: 28 72 29 3b 72 65 74 75 72 6e 20 54 28 6e 65 77 (r);return T(new 0001dd70: 28 24 6f 28 29 2e 4d 6f 64 65 4f 66 4f 70 65 72 ($o().ModeOfOper 0001dd80: 61 74 69 6f 6e 2e 63 74 72 29 28 74 2c 6f 29 2e ation.ctr)(t,o). 0001dd90: 64 65 63 72 79 70 74 28 6e 29 29 7d 72 65 74 75 decrypt(n))}retu 0001dda0: 72 6e 20 6e 75 6c 6c 7d 28 65 2c 74 2e 73 6c 69 rn null}(e,t.sli 0001ddb0: 63 65 28 30 2c 31 36 29 2c 6e 29 3b 72 7c 7c 63 ce(0,16),n);r||c 0001ddc0: 69 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 75 6e i.throwError("un 0001ddd0: 73 75 70 70 6f 72 74 65 64 20 63 69 70 68 65 72 supported cipher 0001dde0: 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 ",y.errors.UNSUP 0001ddf0: 50 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e PORTED_OPERATION 0001de00: 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a 22 64 65 63 ,{operation:"dec 0001de10: 72 79 70 74 22 7d 29 3b 63 6f 6e 73 74 20 6f 3d rypt"});const o= 0001de20: 74 2e 73 6c 69 63 65 28 33 32 2c 36 34 29 2c 69 t.slice(32,64),i 0001de30: 3d 63 72 28 72 29 3b 69 66 28 65 2e 61 64 64 72 =cr(r);if(e.addr 0001de40: 65 73 73 29 7b 6c 65 74 20 74 3d 65 2e 61 64 64 ess){let t=e.add 0001de50: 72 65 73 73 2e 74 6f 4c 6f 77 65 72 43 61 73 65 ress.toLowerCase 0001de60: 28 29 3b 69 66 28 22 30 78 22 21 3d 3d 74 2e 73 ();if("0x"!==t.s 0001de70: 75 62 73 74 72 69 6e 67 28 30 2c 32 29 26 26 28 ubstring(0,2)&&( 0001de80: 74 3d 22 30 78 22 2b 74 29 2c 4d 65 28 74 29 21 t="0x"+t),Me(t)! 0001de90: 3d 3d 69 29 74 68 72 6f 77 20 6e 65 77 20 45 72 ==i)throw new Er 0001dea0: 72 6f 72 28 22 61 64 64 72 65 73 73 20 6d 69 73 ror("address mis 0001deb0: 6d 61 74 63 68 22 29 7d 63 6f 6e 73 74 20 61 3d match")}const a= 0001dec0: 7b 5f 69 73 4b 65 79 73 74 6f 72 65 41 63 63 6f {_isKeystoreAcco 0001ded0: 75 6e 74 3a 21 30 2c 61 64 64 72 65 73 73 3a 69 unt:!0,address:i 0001dee0: 2c 70 72 69 76 61 74 65 4b 65 79 3a 52 28 72 29 ,privateKey:R(r) 0001def0: 7d 3b 69 66 28 22 30 2e 31 22 3d 3d 3d 69 69 28 };if("0.1"===ii( 0001df00: 65 2c 22 78 2d 65 74 68 65 72 73 2f 76 65 72 73 e,"x-ethers/vers 0001df10: 69 6f 6e 22 29 29 7b 63 6f 6e 73 74 20 74 3d 6e ion")){const t=n 0001df20: 69 28 69 69 28 65 2c 22 78 2d 65 74 68 65 72 73 i(ii(e,"x-ethers 0001df30: 2f 6d 6e 65 6d 6f 6e 69 63 43 69 70 68 65 72 74 /mnemonicCiphert 0001df40: 65 78 74 22 29 29 2c 6e 3d 6e 69 28 69 69 28 65 ext")),n=ni(ii(e 0001df50: 2c 22 78 2d 65 74 68 65 72 73 2f 6d 6e 65 6d 6f ,"x-ethers/mnemo 0001df60: 6e 69 63 43 6f 75 6e 74 65 72 22 29 29 2c 72 3d nicCounter")),r= 0001df70: 6e 65 77 28 24 6f 28 29 2e 43 6f 75 6e 74 65 72 new($o().Counter 0001df80: 29 28 6e 29 2c 69 3d 6e 65 77 28 24 6f 28 29 2e )(n),i=new($o(). 0001df90: 4d 6f 64 65 4f 66 4f 70 65 72 61 74 69 6f 6e 2e ModeOfOperation. 0001dfa0: 63 74 72 29 28 6f 2c 72 29 2c 73 3d 69 69 28 65 ctr)(o,r),s=ii(e 0001dfb0: 2c 22 78 2d 65 74 68 65 72 73 2f 70 61 74 68 22 ,"x-ethers/path" 0001dfc0: 29 7c 7c 7a 6f 2c 6c 3d 69 69 28 65 2c 22 78 2d )||zo,l=ii(e,"x- 0001dfd0: 65 74 68 65 72 73 2f 6c 6f 63 61 6c 65 22 29 7c ethers/locale")| 0001dfe0: 7c 22 65 6e 22 2c 63 3d 54 28 69 2e 64 65 63 72 |"en",c=T(i.decr 0001dff0: 79 70 74 28 74 29 29 3b 74 72 79 7b 63 6f 6e 73 ypt(t));try{cons 0001e000: 74 20 65 3d 71 6f 28 63 2c 6c 29 2c 74 3d 47 6f t e=qo(c,l),t=Go 0001e010: 2e 66 72 6f 6d 4d 6e 65 6d 6f 6e 69 63 28 65 2c .fromMnemonic(e, 0001e020: 6e 75 6c 6c 2c 6c 29 2e 64 65 72 69 76 65 50 61 null,l).derivePa 0001e030: 74 68 28 73 29 3b 69 66 28 74 2e 70 72 69 76 61 th(s);if(t.priva 0001e040: 74 65 4b 65 79 21 3d 61 2e 70 72 69 76 61 74 65 teKey!=a.private 0001e050: 4b 65 79 29 74 68 72 6f 77 20 6e 65 77 20 45 72 Key)throw new Er 0001e060: 72 6f 72 28 22 6d 6e 65 6d 6f 6e 69 63 20 6d 69 ror("mnemonic mi 0001e070: 73 6d 61 74 63 68 22 29 3b 61 2e 6d 6e 65 6d 6f smatch");a.mnemo 0001e080: 6e 69 63 3d 74 2e 6d 6e 65 6d 6f 6e 69 63 7d 63 nic=t.mnemonic}c 0001e090: 61 74 63 68 28 65 29 7b 69 66 28 65 2e 63 6f 64 atch(e){if(e.cod 0001e0a0: 65 21 3d 3d 79 2e 65 72 72 6f 72 73 2e 49 4e 56 e!==y.errors.INV 0001e0b0: 41 4c 49 44 5f 41 52 47 55 4d 45 4e 54 7c 7c 22 ALID_ARGUMENT||" 0001e0c0: 77 6f 72 64 6c 69 73 74 22 21 3d 3d 65 2e 61 72 wordlist"!==e.ar 0001e0d0: 67 75 6d 65 6e 74 29 74 68 72 6f 77 20 65 7d 7d gument)throw e}} 0001e0e0: 72 65 74 75 72 6e 20 6e 65 77 20 64 69 28 61 29 return new di(a) 0001e0f0: 7d 66 75 6e 63 74 69 6f 6e 20 66 69 28 65 2c 74 }function fi(e,t 0001e100: 2c 6e 2c 72 2c 6f 29 7b 72 65 74 75 72 6e 20 54 ,n,r,o){return T 0001e110: 28 78 6f 28 65 2c 74 2c 6e 2c 72 2c 6f 29 29 7d (xo(e,t,n,r,o))} 0001e120: 66 75 6e 63 74 69 6f 6e 20 68 69 28 65 2c 74 2c function hi(e,t, 0001e130: 6e 2c 72 2c 6f 29 7b 72 65 74 75 72 6e 20 50 72 n,r,o){return Pr 0001e140: 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 66 69 omise.resolve(fi 0001e150: 28 65 2c 74 2c 6e 2c 72 2c 6f 29 29 7d 66 75 6e (e,t,n,r,o))}fun 0001e160: 63 74 69 6f 6e 20 6d 69 28 65 2c 74 2c 6e 2c 72 ction mi(e,t,n,r 0001e170: 2c 6f 29 7b 63 6f 6e 73 74 20 69 3d 6f 69 28 74 ,o){const i=oi(t 0001e180: 29 2c 61 3d 69 69 28 65 2c 22 63 72 79 70 74 6f ),a=ii(e,"crypto 0001e190: 2f 6b 64 66 22 29 3b 69 66 28 61 26 26 22 73 74 /kdf");if(a&&"st 0001e1a0: 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 61 29 ring"==typeof a) 0001e1b0: 7b 63 6f 6e 73 74 20 74 3d 66 75 6e 63 74 69 6f {const t=functio 0001e1c0: 6e 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 63 69 n(e,t){return ci 0001e1d0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 0001e1e0: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 6b 65 79 ror("invalid key 0001e1f0: 2d 64 65 72 69 76 61 74 69 6f 6e 20 66 75 6e 63 -derivation func 0001e200: 74 69 6f 6e 20 70 61 72 61 6d 65 74 65 72 73 22 tion parameters" 0001e210: 2c 65 2c 74 29 7d 3b 69 66 28 22 73 63 72 79 70 ,e,t)};if("scryp 0001e220: 74 22 3d 3d 3d 61 2e 74 6f 4c 6f 77 65 72 43 61 t"===a.toLowerCa 0001e230: 73 65 28 29 29 7b 63 6f 6e 73 74 20 6e 3d 6e 69 se()){const n=ni 0001e240: 28 69 69 28 65 2c 22 63 72 79 70 74 6f 2f 6b 64 (ii(e,"crypto/kd 0001e250: 66 70 61 72 61 6d 73 2f 73 61 6c 74 22 29 29 2c fparams/salt")), 0001e260: 73 3d 70 61 72 73 65 49 6e 74 28 69 69 28 65 2c s=parseInt(ii(e, 0001e270: 22 63 72 79 70 74 6f 2f 6b 64 66 70 61 72 61 6d "crypto/kdfparam 0001e280: 73 2f 6e 22 29 29 2c 6c 3d 70 61 72 73 65 49 6e s/n")),l=parseIn 0001e290: 74 28 69 69 28 65 2c 22 63 72 79 70 74 6f 2f 6b t(ii(e,"crypto/k 0001e2a0: 64 66 70 61 72 61 6d 73 2f 72 22 29 29 2c 63 3d dfparams/r")),c= 0001e2b0: 70 61 72 73 65 49 6e 74 28 69 69 28 65 2c 22 63 parseInt(ii(e,"c 0001e2c0: 72 79 70 74 6f 2f 6b 64 66 70 61 72 61 6d 73 2f rypto/kdfparams/ 0001e2d0: 70 22 29 29 3b 73 26 26 6c 26 26 63 7c 7c 74 28 p"));s&&l&&c||t( 0001e2e0: 22 6b 64 66 22 2c 61 29 2c 30 21 3d 28 73 26 73 "kdf",a),0!=(s&s 0001e2f0: 2d 31 29 26 26 74 28 22 4e 22 2c 73 29 3b 63 6f -1)&&t("N",s);co 0001e300: 6e 73 74 20 75 3d 70 61 72 73 65 49 6e 74 28 69 nst u=parseInt(i 0001e310: 69 28 65 2c 22 63 72 79 70 74 6f 2f 6b 64 66 70 i(e,"crypto/kdfp 0001e320: 61 72 61 6d 73 2f 64 6b 6c 65 6e 22 29 29 3b 72 arams/dklen"));r 0001e330: 65 74 75 72 6e 20 33 32 21 3d 3d 75 26 26 74 28 eturn 32!==u&&t( 0001e340: 22 64 6b 6c 65 6e 22 2c 75 29 2c 72 28 69 2c 6e "dklen",u),r(i,n 0001e350: 2c 73 2c 6c 2c 63 2c 36 34 2c 6f 29 7d 69 66 28 ,s,l,c,64,o)}if( 0001e360: 22 70 62 6b 64 66 32 22 3d 3d 3d 61 2e 74 6f 4c "pbkdf2"===a.toL 0001e370: 6f 77 65 72 43 61 73 65 28 29 29 7b 63 6f 6e 73 owerCase()){cons 0001e380: 74 20 72 3d 6e 69 28 69 69 28 65 2c 22 63 72 79 t r=ni(ii(e,"cry 0001e390: 70 74 6f 2f 6b 64 66 70 61 72 61 6d 73 2f 73 61 pto/kdfparams/sa 0001e3a0: 6c 74 22 29 29 3b 6c 65 74 20 6f 3d 6e 75 6c 6c lt"));let o=null 0001e3b0: 3b 63 6f 6e 73 74 20 61 3d 69 69 28 65 2c 22 63 ;const a=ii(e,"c 0001e3c0: 72 79 70 74 6f 2f 6b 64 66 70 61 72 61 6d 73 2f rypto/kdfparams/ 0001e3d0: 70 72 66 22 29 3b 22 68 6d 61 63 2d 73 68 61 32 prf");"hmac-sha2 0001e3e0: 35 36 22 3d 3d 3d 61 3f 6f 3d 22 73 68 61 32 35 56"===a?o="sha25 0001e3f0: 36 22 3a 22 68 6d 61 63 2d 73 68 61 35 31 32 22 6":"hmac-sha512" 0001e400: 3d 3d 3d 61 3f 6f 3d 22 73 68 61 35 31 32 22 3a ===a?o="sha512": 0001e410: 74 28 22 70 72 66 22 2c 61 29 3b 63 6f 6e 73 74 t("prf",a);const 0001e420: 20 73 3d 70 61 72 73 65 49 6e 74 28 69 69 28 65 s=parseInt(ii(e 0001e430: 2c 22 63 72 79 70 74 6f 2f 6b 64 66 70 61 72 61 ,"crypto/kdfpara 0001e440: 6d 73 2f 63 22 29 29 2c 6c 3d 70 61 72 73 65 49 ms/c")),l=parseI 0001e450: 6e 74 28 69 69 28 65 2c 22 63 72 79 70 74 6f 2f nt(ii(e,"crypto/ 0001e460: 6b 64 66 70 61 72 61 6d 73 2f 64 6b 6c 65 6e 22 kdfparams/dklen" 0001e470: 29 29 3b 72 65 74 75 72 6e 20 33 32 21 3d 3d 6c ));return 32!==l 0001e480: 26 26 74 28 22 64 6b 6c 65 6e 22 2c 6c 29 2c 6e &&t("dklen",l),n 0001e490: 28 69 2c 72 2c 73 2c 6c 2c 6f 29 7d 7d 72 65 74 (i,r,s,l,o)}}ret 0001e4a0: 75 72 6e 20 63 69 2e 74 68 72 6f 77 41 72 67 75 urn ci.throwArgu 0001e4b0: 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 73 75 70 mentError("unsup 0001e4c0: 70 6f 72 74 65 64 20 6b 65 79 2d 64 65 72 69 76 ported key-deriv 0001e4d0: 61 74 69 6f 6e 20 66 75 6e 63 74 69 6f 6e 22 2c ation function", 0001e4e0: 22 6b 64 66 22 2c 61 29 7d 63 6f 6e 73 74 20 67 "kdf",a)}const g 0001e4f0: 69 3d 6e 65 77 20 79 28 73 69 29 3b 63 6c 61 73 i=new y(si);clas 0001e500: 73 20 62 69 20 65 78 74 65 6e 64 73 20 75 65 7b s bi extends ue{ 0001e510: 69 73 43 72 6f 77 64 73 61 6c 65 41 63 63 6f 75 isCrowdsaleAccou 0001e520: 6e 74 28 65 29 7b 72 65 74 75 72 6e 21 28 21 65 nt(e){return!(!e 0001e530: 7c 7c 21 65 2e 5f 69 73 43 72 6f 77 64 73 61 6c ||!e._isCrowdsal 0001e540: 65 41 63 63 6f 75 6e 74 29 7d 7d 66 75 6e 63 74 eAccount)}}funct 0001e550: 69 6f 6e 20 79 69 28 65 2c 74 29 7b 63 6f 6e 73 ion yi(e,t){cons 0001e560: 74 20 6e 3d 4a 53 4f 4e 2e 70 61 72 73 65 28 65 t n=JSON.parse(e 0001e570: 29 3b 74 3d 6f 69 28 74 29 3b 63 6f 6e 73 74 20 );t=oi(t);const 0001e580: 72 3d 4d 65 28 69 69 28 6e 2c 22 65 74 68 61 64 r=Me(ii(n,"ethad 0001e590: 64 72 22 29 29 2c 6f 3d 6e 69 28 69 69 28 6e 2c dr")),o=ni(ii(n, 0001e5a0: 22 65 6e 63 73 65 65 64 22 29 29 3b 6f 26 26 6f "encseed"));o&&o 0001e5b0: 2e 6c 65 6e 67 74 68 25 31 36 3d 3d 30 7c 7c 67 .length%16==0||g 0001e5c0: 69 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 i.throwArgumentE 0001e5d0: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 65 6e rror("invalid en 0001e5e0: 63 73 65 65 64 22 2c 22 6a 73 6f 6e 22 2c 65 29 cseed","json",e) 0001e5f0: 3b 63 6f 6e 73 74 20 69 3d 54 28 78 6f 28 74 2c ;const i=T(xo(t, 0001e600: 74 2c 32 65 33 2c 33 32 2c 22 73 68 61 32 35 36 t,2e3,32,"sha256 0001e610: 22 29 29 2e 73 6c 69 63 65 28 30 2c 31 36 29 2c ")).slice(0,16), 0001e620: 61 3d 6f 2e 73 6c 69 63 65 28 30 2c 31 36 29 2c a=o.slice(0,16), 0001e630: 73 3d 6f 2e 73 6c 69 63 65 28 31 36 29 2c 6c 3d s=o.slice(16),l= 0001e640: 6e 65 77 28 24 6f 28 29 2e 4d 6f 64 65 4f 66 4f new($o().ModeOfO 0001e650: 70 65 72 61 74 69 6f 6e 2e 63 62 63 29 28 69 2c peration.cbc)(i, 0001e660: 61 29 2c 63 3d 24 6f 28 29 2e 70 61 64 64 69 6e a),c=$o().paddin 0001e670: 67 2e 70 6b 63 73 37 2e 73 74 72 69 70 28 54 28 g.pkcs7.strip(T( 0001e680: 6c 2e 64 65 63 72 79 70 74 28 73 29 29 29 3b 6c l.decrypt(s)));l 0001e690: 65 74 20 75 3d 22 22 3b 66 6f 72 28 6c 65 74 20 et u="";for(let 0001e6a0: 65 3d 30 3b 65 3c 63 2e 6c 65 6e 67 74 68 3b 65 e=0;e<c.length;e 0001e6b0: 2b 2b 29 75 2b 3d 53 74 72 69 6e 67 2e 66 72 6f ++)u+=String.fro 0001e6c0: 6d 43 68 61 72 43 6f 64 65 28 63 5b 65 5d 29 3b mCharCode(c[e]); 0001e6d0: 63 6f 6e 73 74 20 64 3d 76 65 28 71 65 28 75 29 const d=ve(qe(u) 0001e6e0: 29 3b 72 65 74 75 72 6e 20 6e 65 77 20 62 69 28 );return new bi( 0001e6f0: 7b 5f 69 73 43 72 6f 77 64 73 61 6c 65 41 63 63 {_isCrowdsaleAcc 0001e700: 6f 75 6e 74 3a 21 30 2c 61 64 64 72 65 73 73 3a ount:!0,address: 0001e710: 72 2c 70 72 69 76 61 74 65 4b 65 79 3a 64 7d 29 r,privateKey:d}) 0001e720: 7d 66 75 6e 63 74 69 6f 6e 20 76 69 28 65 29 7b }function vi(e){ 0001e730: 6c 65 74 20 74 3d 6e 75 6c 6c 3b 74 72 79 7b 74 let t=null;try{t 0001e740: 3d 4a 53 4f 4e 2e 70 61 72 73 65 28 65 29 7d 63 =JSON.parse(e)}c 0001e750: 61 74 63 68 28 65 29 7b 72 65 74 75 72 6e 21 31 atch(e){return!1 0001e760: 7d 72 65 74 75 72 6e 20 74 2e 65 6e 63 73 65 65 }return t.encsee 0001e770: 64 26 26 74 2e 65 74 68 61 64 64 72 7d 66 75 6e d&&t.ethaddr}fun 0001e780: 63 74 69 6f 6e 20 53 69 28 65 29 7b 6c 65 74 20 ction Si(e){let 0001e790: 74 3d 6e 75 6c 6c 3b 74 72 79 7b 74 3d 4a 53 4f t=null;try{t=JSO 0001e7a0: 4e 2e 70 61 72 73 65 28 65 29 7d 63 61 74 63 68 N.parse(e)}catch 0001e7b0: 28 65 29 7b 72 65 74 75 72 6e 21 31 7d 72 65 74 (e){return!1}ret 0001e7c0: 75 72 6e 21 28 21 74 2e 76 65 72 73 69 6f 6e 7c urn!(!t.version| 0001e7d0: 7c 70 61 72 73 65 49 6e 74 28 74 2e 76 65 72 73 |parseInt(t.vers 0001e7e0: 69 6f 6e 29 21 3d 3d 74 2e 76 65 72 73 69 6f 6e ion)!==t.version 0001e7f0: 7c 7c 33 21 3d 3d 70 61 72 73 65 49 6e 74 28 74 ||3!==parseInt(t 0001e800: 2e 76 65 72 73 69 6f 6e 29 29 7d 66 75 6e 63 74 .version))}funct 0001e810: 69 6f 6e 20 45 69 28 65 29 7b 69 66 28 76 69 28 ion Ei(e){if(vi( 0001e820: 65 29 29 74 72 79 7b 72 65 74 75 72 6e 20 4d 65 e))try{return Me 0001e830: 28 4a 53 4f 4e 2e 70 61 72 73 65 28 65 29 2e 65 (JSON.parse(e).e 0001e840: 74 68 61 64 64 72 29 7d 63 61 74 63 68 28 65 29 thaddr)}catch(e) 0001e850: 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 7d 69 66 28 {return null}if( 0001e860: 53 69 28 65 29 29 74 72 79 7b 72 65 74 75 72 6e Si(e))try{return 0001e870: 20 4d 65 28 4a 53 4f 4e 2e 70 61 72 73 65 28 65 Me(JSON.parse(e 0001e880: 29 2e 61 64 64 72 65 73 73 29 7d 63 61 74 63 68 ).address)}catch 0001e890: 28 65 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 7d (e){return null} 0001e8a0: 72 65 74 75 72 6e 20 6e 75 6c 6c 7d 66 75 6e 63 return null}func 0001e8b0: 74 69 6f 6e 20 5f 69 28 65 2c 74 2c 6e 29 7b 69 tion _i(e,t,n){i 0001e8c0: 66 28 76 69 28 65 29 29 7b 6e 26 26 6e 28 30 29 f(vi(e)){n&&n(0) 0001e8d0: 3b 63 6f 6e 73 74 20 72 3d 79 69 28 65 2c 74 29 ;const r=yi(e,t) 0001e8e0: 3b 72 65 74 75 72 6e 20 6e 26 26 6e 28 31 29 2c ;return n&&n(1), 0001e8f0: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 0001e900: 72 29 7d 72 65 74 75 72 6e 20 53 69 28 65 29 3f r)}return Si(e)? 0001e910: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 7b function(e,t,n){ 0001e920: 72 65 74 75 72 6e 20 6c 69 28 74 68 69 73 2c 76 return li(this,v 0001e930: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 0001e940: 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 nction*(){const 0001e950: 72 3d 4a 53 4f 4e 2e 70 61 72 73 65 28 65 29 3b r=JSON.parse(e); 0001e960: 72 65 74 75 72 6e 20 70 69 28 72 2c 79 69 65 6c return pi(r,yiel 0001e970: 64 20 6d 69 28 72 2c 74 2c 68 69 2c 74 69 28 29 d mi(r,t,hi,ti() 0001e980: 2e 73 63 72 79 70 74 2c 6e 29 29 7d 29 29 7d 28 .scrypt,n))}))}( 0001e990: 65 2c 74 2c 6e 29 3a 50 72 6f 6d 69 73 65 2e 72 e,t,n):Promise.r 0001e9a0: 65 6a 65 63 74 28 6e 65 77 20 45 72 72 6f 72 28 eject(new Error( 0001e9b0: 22 69 6e 76 61 6c 69 64 20 4a 53 4f 4e 20 77 61 "invalid JSON wa 0001e9c0: 6c 6c 65 74 22 29 29 7d 66 75 6e 63 74 69 6f 6e llet"))}function 0001e9d0: 20 77 69 28 65 2c 74 29 7b 69 66 28 76 69 28 65 wi(e,t){if(vi(e 0001e9e0: 29 29 72 65 74 75 72 6e 20 79 69 28 65 2c 74 29 ))return yi(e,t) 0001e9f0: 3b 69 66 28 53 69 28 65 29 29 72 65 74 75 72 6e ;if(Si(e))return 0001ea00: 20 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 63 function(e,t){c 0001ea10: 6f 6e 73 74 20 6e 3d 4a 53 4f 4e 2e 70 61 72 73 onst n=JSON.pars 0001ea20: 65 28 65 29 3b 72 65 74 75 72 6e 20 70 69 28 6e e(e);return pi(n 0001ea30: 2c 6d 69 28 6e 2c 74 2c 66 69 2c 74 69 28 29 2e ,mi(n,t,fi,ti(). 0001ea40: 73 79 6e 63 53 63 72 79 70 74 29 29 7d 28 65 2c syncScrypt))}(e, 0001ea50: 74 29 3b 74 68 72 6f 77 20 6e 65 77 20 45 72 72 t);throw new Err 0001ea60: 6f 72 28 22 69 6e 76 61 6c 69 64 20 4a 53 4f 4e or("invalid JSON 0001ea70: 20 77 61 6c 6c 65 74 22 29 7d 76 61 72 20 78 69 wallet")}var xi 0001ea80: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c =function(e,t,n, 0001ea90: 72 29 7b 72 65 74 75 72 6e 20 6e 65 77 28 6e 7c r){return new(n| 0001eaa0: 7c 28 6e 3d 50 72 6f 6d 69 73 65 29 29 28 28 66 |(n=Promise))((f 0001eab0: 75 6e 63 74 69 6f 6e 28 6f 2c 69 29 7b 66 75 6e unction(o,i){fun 0001eac0: 63 74 69 6f 6e 20 61 28 65 29 7b 74 72 79 7b 6c ction a(e){try{l 0001ead0: 28 72 2e 6e 65 78 74 28 65 29 29 7d 63 61 74 63 (r.next(e))}catc 0001eae0: 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 h(e){i(e)}}funct 0001eaf0: 69 6f 6e 20 73 28 65 29 7b 74 72 79 7b 6c 28 72 ion s(e){try{l(r 0001eb00: 2e 74 68 72 6f 77 28 65 29 29 7d 63 61 74 63 68 .throw(e))}catch 0001eb10: 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 69 (e){i(e)}}functi 0001eb20: 6f 6e 20 6c 28 65 29 7b 76 61 72 20 74 3b 65 2e on l(e){var t;e. 0001eb30: 64 6f 6e 65 3f 6f 28 65 2e 76 61 6c 75 65 29 3a done?o(e.value): 0001eb40: 28 74 3d 65 2e 76 61 6c 75 65 2c 74 20 69 6e 73 (t=e.value,t ins 0001eb50: 74 61 6e 63 65 6f 66 20 6e 3f 74 3a 6e 65 77 20 tanceof n?t:new 0001eb60: 6e 28 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b 65 n((function(e){e 0001eb70: 28 74 29 7d 29 29 29 2e 74 68 65 6e 28 61 2c 73 (t)}))).then(a,s 0001eb80: 29 7d 6c 28 28 72 3d 72 2e 61 70 70 6c 79 28 65 )}l((r=r.apply(e 0001eb90: 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 78 74 28 29 29 ,t||[])).next()) 0001eba0: 7d 29 29 7d 3b 63 6f 6e 73 74 20 54 69 3d 6e 65 }))};const Ti=ne 0001ebb0: 77 20 79 28 22 77 61 6c 6c 65 74 2f 35 2e 37 2e w y("wallet/5.7. 0001ebc0: 30 22 29 3b 63 6c 61 73 73 20 43 69 20 65 78 74 0");class Ci ext 0001ebd0: 65 6e 64 73 20 64 6e 7b 63 6f 6e 73 74 72 75 63 ends dn{construc 0001ebe0: 74 6f 72 28 65 2c 74 29 7b 69 66 28 73 75 70 65 tor(e,t){if(supe 0001ebf0: 72 28 29 2c 6e 75 6c 6c 21 3d 28 6e 3d 65 29 26 r(),null!=(n=e)& 0001ec00: 26 49 28 6e 2e 70 72 69 76 61 74 65 4b 65 79 2c &I(n.privateKey, 0001ec10: 33 32 29 26 26 6e 75 6c 6c 21 3d 6e 2e 61 64 64 32)&&null!=n.add 0001ec20: 72 65 73 73 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 ress){const t=ne 0001ec30: 77 20 65 72 28 65 2e 70 72 69 76 61 74 65 4b 65 w er(e.privateKe 0001ec40: 79 29 3b 69 66 28 74 65 28 74 68 69 73 2c 22 5f y);if(te(this,"_ 0001ec50: 73 69 67 6e 69 6e 67 4b 65 79 22 2c 28 28 29 3d signingKey",(()= 0001ec60: 3e 74 29 29 2c 74 65 28 74 68 69 73 2c 22 61 64 >t)),te(this,"ad 0001ec70: 64 72 65 73 73 22 2c 63 72 28 74 68 69 73 2e 70 dress",cr(this.p 0001ec80: 75 62 6c 69 63 4b 65 79 29 29 2c 74 68 69 73 2e ublicKey)),this. 0001ec90: 61 64 64 72 65 73 73 21 3d 3d 4d 65 28 65 2e 61 address!==Me(e.a 0001eca0: 64 64 72 65 73 73 29 26 26 54 69 2e 74 68 72 6f ddress)&&Ti.thro 0001ecb0: 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 wArgumentError(" 0001ecc0: 70 72 69 76 61 74 65 4b 65 79 2f 61 64 64 72 65 privateKey/addre 0001ecd0: 73 73 20 6d 69 73 6d 61 74 63 68 22 2c 22 70 72 ss mismatch","pr 0001ece0: 69 76 61 74 65 4b 65 79 22 2c 22 5b 52 45 44 41 ivateKey","[REDA 0001ecf0: 43 54 45 44 5d 22 29 2c 66 75 6e 63 74 69 6f 6e CTED]"),function 0001ed00: 28 65 29 7b 63 6f 6e 73 74 20 74 3d 65 2e 6d 6e (e){const t=e.mn 0001ed10: 65 6d 6f 6e 69 63 3b 72 65 74 75 72 6e 20 74 26 emonic;return t& 0001ed20: 26 74 2e 70 68 72 61 73 65 7d 28 65 29 29 7b 63 &t.phrase}(e)){c 0001ed30: 6f 6e 73 74 20 74 3d 65 2e 6d 6e 65 6d 6f 6e 69 onst t=e.mnemoni 0001ed40: 63 3b 74 65 28 74 68 69 73 2c 22 5f 6d 6e 65 6d c;te(this,"_mnem 0001ed50: 6f 6e 69 63 22 2c 28 28 29 3d 3e 28 7b 70 68 72 onic",(()=>({phr 0001ed60: 61 73 65 3a 74 2e 70 68 72 61 73 65 2c 70 61 74 ase:t.phrase,pat 0001ed70: 68 3a 74 2e 70 61 74 68 7c 7c 7a 6f 2c 6c 6f 63 h:t.path||zo,loc 0001ed80: 61 6c 65 3a 74 2e 6c 6f 63 61 6c 65 7c 7c 22 65 ale:t.locale||"e 0001ed90: 6e 22 7d 29 29 29 3b 63 6f 6e 73 74 20 6e 3d 74 n"})));const n=t 0001eda0: 68 69 73 2e 6d 6e 65 6d 6f 6e 69 63 3b 63 72 28 his.mnemonic;cr( 0001edb0: 47 6f 2e 66 72 6f 6d 4d 6e 65 6d 6f 6e 69 63 28 Go.fromMnemonic( 0001edc0: 6e 2e 70 68 72 61 73 65 2c 6e 75 6c 6c 2c 6e 2e n.phrase,null,n. 0001edd0: 6c 6f 63 61 6c 65 29 2e 64 65 72 69 76 65 50 61 locale).derivePa 0001ede0: 74 68 28 6e 2e 70 61 74 68 29 2e 70 72 69 76 61 th(n.path).priva 0001edf0: 74 65 4b 65 79 29 21 3d 3d 74 68 69 73 2e 61 64 teKey)!==this.ad 0001ee00: 64 72 65 73 73 26 26 54 69 2e 74 68 72 6f 77 41 dress&&Ti.throwA 0001ee10: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 6d 6e rgumentError("mn 0001ee20: 65 6d 6f 6e 69 63 2f 61 64 64 72 65 73 73 20 6d emonic/address m 0001ee30: 69 73 6d 61 74 63 68 22 2c 22 70 72 69 76 61 74 ismatch","privat 0001ee40: 65 4b 65 79 22 2c 22 5b 52 45 44 41 43 54 45 44 eKey","[REDACTED 0001ee50: 5d 22 29 7d 65 6c 73 65 20 74 65 28 74 68 69 73 ]")}else te(this 0001ee60: 2c 22 5f 6d 6e 65 6d 6f 6e 69 63 22 2c 28 28 29 ,"_mnemonic",(() 0001ee70: 3d 3e 6e 75 6c 6c 29 29 7d 65 6c 73 65 7b 69 66 =>null))}else{if 0001ee80: 28 65 72 2e 69 73 53 69 67 6e 69 6e 67 4b 65 79 (er.isSigningKey 0001ee90: 28 65 29 29 22 73 65 63 70 32 35 36 6b 31 22 21 (e))"secp256k1"! 0001eea0: 3d 3d 65 2e 63 75 72 76 65 26 26 54 69 2e 74 68 ==e.curve&&Ti.th 0001eeb0: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 0001eec0: 28 22 75 6e 73 75 70 70 6f 72 74 65 64 20 63 75 ("unsupported cu 0001eed0: 72 76 65 3b 20 6d 75 73 74 20 62 65 20 73 65 63 rve; must be sec 0001eee0: 70 32 35 36 6b 31 22 2c 22 70 72 69 76 61 74 65 p256k1","private 0001eef0: 4b 65 79 22 2c 22 5b 52 45 44 41 43 54 45 44 5d Key","[REDACTED] 0001ef00: 22 29 2c 74 65 28 74 68 69 73 2c 22 5f 73 69 67 "),te(this,"_sig 0001ef10: 6e 69 6e 67 4b 65 79 22 2c 28 28 29 3d 3e 65 29 ningKey",(()=>e) 0001ef20: 29 3b 65 6c 73 65 7b 22 73 74 72 69 6e 67 22 3d );else{"string"= 0001ef30: 3d 74 79 70 65 6f 66 20 65 26 26 65 2e 6d 61 74 =typeof e&&e.mat 0001ef40: 63 68 28 2f 5e 5b 30 2d 39 61 2d 66 5d 2a 24 2f ch(/^[0-9a-f]*$/ 0001ef50: 69 29 26 26 36 34 3d 3d 3d 65 2e 6c 65 6e 67 74 i)&&64===e.lengt 0001ef60: 68 26 26 28 65 3d 22 30 78 22 2b 65 29 3b 63 6f h&&(e="0x"+e);co 0001ef70: 6e 73 74 20 74 3d 6e 65 77 20 65 72 28 65 29 3b nst t=new er(e); 0001ef80: 74 65 28 74 68 69 73 2c 22 5f 73 69 67 6e 69 6e te(this,"_signin 0001ef90: 67 4b 65 79 22 2c 28 28 29 3d 3e 74 29 29 7d 74 gKey",(()=>t))}t 0001efa0: 65 28 74 68 69 73 2c 22 5f 6d 6e 65 6d 6f 6e 69 e(this,"_mnemoni 0001efb0: 63 22 2c 28 28 29 3d 3e 6e 75 6c 6c 29 29 2c 74 c",(()=>null)),t 0001efc0: 65 28 74 68 69 73 2c 22 61 64 64 72 65 73 73 22 e(this,"address" 0001efd0: 2c 63 72 28 74 68 69 73 2e 70 75 62 6c 69 63 4b ,cr(this.publicK 0001efe0: 65 79 29 29 7d 76 61 72 20 6e 3b 74 26 26 21 61 ey))}var n;t&&!a 0001eff0: 6e 2e 69 73 50 72 6f 76 69 64 65 72 28 74 29 26 n.isProvider(t)& 0001f000: 26 54 69 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &Ti.throwArgumen 0001f010: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 0001f020: 70 72 6f 76 69 64 65 72 22 2c 22 70 72 6f 76 69 provider","provi 0001f030: 64 65 72 22 2c 74 29 2c 74 65 28 74 68 69 73 2c der",t),te(this, 0001f040: 22 70 72 6f 76 69 64 65 72 22 2c 74 7c 7c 6e 75 "provider",t||nu 0001f050: 6c 6c 29 7d 67 65 74 20 6d 6e 65 6d 6f 6e 69 63 ll)}get mnemonic 0001f060: 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f (){return this._ 0001f070: 6d 6e 65 6d 6f 6e 69 63 28 29 7d 67 65 74 20 70 mnemonic()}get p 0001f080: 72 69 76 61 74 65 4b 65 79 28 29 7b 72 65 74 75 rivateKey(){retu 0001f090: 72 6e 20 74 68 69 73 2e 5f 73 69 67 6e 69 6e 67 rn this._signing 0001f0a0: 4b 65 79 28 29 2e 70 72 69 76 61 74 65 4b 65 79 Key().privateKey 0001f0b0: 7d 67 65 74 20 70 75 62 6c 69 63 4b 65 79 28 29 }get publicKey() 0001f0c0: 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 73 69 {return this._si 0001f0d0: 67 6e 69 6e 67 4b 65 79 28 29 2e 70 75 62 6c 69 gningKey().publi 0001f0e0: 63 4b 65 79 7d 67 65 74 41 64 64 72 65 73 73 28 cKey}getAddress( 0001f0f0: 29 7b 72 65 74 75 72 6e 20 50 72 6f 6d 69 73 65 ){return Promise 0001f100: 2e 72 65 73 6f 6c 76 65 28 74 68 69 73 2e 61 64 .resolve(this.ad 0001f110: 64 72 65 73 73 29 7d 63 6f 6e 6e 65 63 74 28 65 dress)}connect(e 0001f120: 29 7b 72 65 74 75 72 6e 20 6e 65 77 20 43 69 28 ){return new Ci( 0001f130: 74 68 69 73 2c 65 29 7d 73 69 67 6e 54 72 61 6e this,e)}signTran 0001f140: 73 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 saction(e){retur 0001f150: 6e 20 72 65 28 65 29 2e 74 68 65 6e 28 28 74 3d n re(e).then((t= 0001f160: 3e 7b 6e 75 6c 6c 21 3d 74 2e 66 72 6f 6d 26 26 >{null!=t.from&& 0001f170: 28 4d 65 28 74 2e 66 72 6f 6d 29 21 3d 3d 74 68 (Me(t.from)!==th 0001f180: 69 73 2e 61 64 64 72 65 73 73 26 26 54 69 2e 74 is.address&&Ti.t 0001f190: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 0001f1a0: 72 28 22 74 72 61 6e 73 61 63 74 69 6f 6e 20 66 r("transaction f 0001f1b0: 72 6f 6d 20 61 64 64 72 65 73 73 20 6d 69 73 6d rom address mism 0001f1c0: 61 74 63 68 22 2c 22 74 72 61 6e 73 61 63 74 69 atch","transacti 0001f1d0: 6f 6e 2e 66 72 6f 6d 22 2c 65 2e 66 72 6f 6d 29 on.from",e.from) 0001f1e0: 2c 64 65 6c 65 74 65 20 74 2e 66 72 6f 6d 29 3b ,delete t.from); 0001f1f0: 63 6f 6e 73 74 20 6e 3d 74 68 69 73 2e 5f 73 69 const n=this._si 0001f200: 67 6e 69 6e 67 4b 65 79 28 29 2e 73 69 67 6e 44 gningKey().signD 0001f210: 69 67 65 73 74 28 76 65 28 62 72 28 74 29 29 29 igest(ve(br(t))) 0001f220: 3b 72 65 74 75 72 6e 20 62 72 28 74 2c 6e 29 7d ;return br(t,n)} 0001f230: 29 29 7d 73 69 67 6e 4d 65 73 73 61 67 65 28 65 ))}signMessage(e 0001f240: 29 7b 72 65 74 75 72 6e 20 78 69 28 74 68 69 73 ){return xi(this 0001f250: 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 ,void 0,void 0,( 0001f260: 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 74 75 function*(){retu 0001f270: 72 6e 20 42 28 74 68 69 73 2e 5f 73 69 67 6e 69 rn B(this._signi 0001f280: 6e 67 4b 65 79 28 29 2e 73 69 67 6e 44 69 67 65 ngKey().signDige 0001f290: 73 74 28 51 72 28 65 29 29 29 7d 29 29 7d 5f 73 st(Qr(e)))}))}_s 0001f2a0: 69 67 6e 54 79 70 65 64 44 61 74 61 28 65 2c 74 ignTypedData(e,t 0001f2b0: 2c 6e 29 7b 72 65 74 75 72 6e 20 78 69 28 74 68 ,n){return xi(th 0001f2c0: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 0001f2d0: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f ,(function*(){co 0001f2e0: 6e 73 74 20 72 3d 79 69 65 6c 64 20 6d 6f 2e 72 nst r=yield mo.r 0001f2f0: 65 73 6f 6c 76 65 4e 61 6d 65 73 28 65 2c 74 2c esolveNames(e,t, 0001f300: 6e 2c 28 65 3d 3e 28 6e 75 6c 6c 3d 3d 74 68 69 n,(e=>(null==thi 0001f310: 73 2e 70 72 6f 76 69 64 65 72 26 26 54 69 2e 74 s.provider&&Ti.t 0001f320: 68 72 6f 77 45 72 72 6f 72 28 22 63 61 6e 6e 6f hrowError("canno 0001f330: 74 20 72 65 73 6f 6c 76 65 20 45 4e 53 20 6e 61 t resolve ENS na 0001f340: 6d 65 73 20 77 69 74 68 6f 75 74 20 61 20 70 72 mes without a pr 0001f350: 6f 76 69 64 65 72 22 2c 79 2e 65 72 72 6f 72 73 ovider",y.errors 0001f360: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 0001f370: 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f RATION,{operatio 0001f380: 6e 3a 22 72 65 73 6f 6c 76 65 4e 61 6d 65 22 2c n:"resolveName", 0001f390: 76 61 6c 75 65 3a 65 7d 29 2c 74 68 69 73 2e 70 value:e}),this.p 0001f3a0: 72 6f 76 69 64 65 72 2e 72 65 73 6f 6c 76 65 4e rovider.resolveN 0001f3b0: 61 6d 65 28 65 29 29 29 29 3b 72 65 74 75 72 6e ame(e))));return 0001f3c0: 20 42 28 74 68 69 73 2e 5f 73 69 67 6e 69 6e 67 B(this._signing 0001f3d0: 4b 65 79 28 29 2e 73 69 67 6e 44 69 67 65 73 74 Key().signDigest 0001f3e0: 28 6d 6f 2e 68 61 73 68 28 72 2e 64 6f 6d 61 69 (mo.hash(r.domai 0001f3f0: 6e 2c 74 2c 72 2e 76 61 6c 75 65 29 29 29 7d 29 n,t,r.value)))}) 0001f400: 29 7d 65 6e 63 72 79 70 74 28 65 2c 74 2c 6e 29 )}encrypt(e,t,n) 0001f410: 7b 69 66 28 22 66 75 6e 63 74 69 6f 6e 22 21 3d {if("function"!= 0001f420: 74 79 70 65 6f 66 20 74 7c 7c 6e 7c 7c 28 6e 3d typeof t||n||(n= 0001f430: 74 2c 74 3d 7b 7d 29 2c 6e 26 26 22 66 75 6e 63 t,t={}),n&&"func 0001f440: 74 69 6f 6e 22 21 3d 74 79 70 65 6f 66 20 6e 29 tion"!=typeof n) 0001f450: 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 throw new Error( 0001f460: 22 69 6e 76 61 6c 69 64 20 63 61 6c 6c 62 61 63 "invalid callbac 0001f470: 6b 22 29 3b 72 65 74 75 72 6e 20 74 7c 7c 28 74 k");return t||(t 0001f480: 3d 7b 7d 29 2c 66 75 6e 63 74 69 6f 6e 28 65 2c ={}),function(e, 0001f490: 74 2c 6e 2c 72 29 7b 74 72 79 7b 69 66 28 4d 65 t,n,r){try{if(Me 0001f4a0: 28 65 2e 61 64 64 72 65 73 73 29 21 3d 3d 63 72 (e.address)!==cr 0001f4b0: 28 65 2e 70 72 69 76 61 74 65 4b 65 79 29 29 74 (e.privateKey))t 0001f4c0: 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 hrow new Error(" 0001f4d0: 61 64 64 72 65 73 73 2f 70 72 69 76 61 74 65 4b address/privateK 0001f4e0: 65 79 20 6d 69 73 6d 61 74 63 68 22 29 3b 69 66 ey mismatch");if 0001f4f0: 28 75 69 28 65 29 29 7b 63 6f 6e 73 74 20 74 3d (ui(e)){const t= 0001f500: 65 2e 6d 6e 65 6d 6f 6e 69 63 3b 69 66 28 47 6f e.mnemonic;if(Go 0001f510: 2e 66 72 6f 6d 4d 6e 65 6d 6f 6e 69 63 28 74 2e .fromMnemonic(t. 0001f520: 70 68 72 61 73 65 2c 6e 75 6c 6c 2c 74 2e 6c 6f phrase,null,t.lo 0001f530: 63 61 6c 65 29 2e 64 65 72 69 76 65 50 61 74 68 cale).derivePath 0001f540: 28 74 2e 70 61 74 68 7c 7c 7a 6f 29 2e 70 72 69 (t.path||zo).pri 0001f550: 76 61 74 65 4b 65 79 21 3d 65 2e 70 72 69 76 61 vateKey!=e.priva 0001f560: 74 65 4b 65 79 29 74 68 72 6f 77 20 6e 65 77 20 teKey)throw new 0001f570: 45 72 72 6f 72 28 22 6d 6e 65 6d 6f 6e 69 63 20 Error("mnemonic 0001f580: 6d 69 73 6d 61 74 63 68 22 29 7d 7d 63 61 74 63 mismatch")}}catc 0001f590: 68 28 65 29 7b 72 65 74 75 72 6e 20 50 72 6f 6d h(e){return Prom 0001f5a0: 69 73 65 2e 72 65 6a 65 63 74 28 65 29 7d 22 66 ise.reject(e)}"f 0001f5b0: 75 6e 63 74 69 6f 6e 22 21 3d 74 79 70 65 6f 66 unction"!=typeof 0001f5c0: 20 6e 7c 7c 72 7c 7c 28 72 3d 6e 2c 6e 3d 7b 7d n||r||(r=n,n={} 0001f5d0: 29 2c 6e 7c 7c 28 6e 3d 7b 7d 29 3b 63 6f 6e 73 ),n||(n={});cons 0001f5e0: 74 20 6f 3d 54 28 65 2e 70 72 69 76 61 74 65 4b t o=T(e.privateK 0001f5f0: 65 79 29 2c 69 3d 6f 69 28 74 29 3b 6c 65 74 20 ey),i=oi(t);let 0001f600: 61 3d 6e 75 6c 6c 2c 73 3d 6e 75 6c 6c 2c 6c 3d a=null,s=null,l= 0001f610: 6e 75 6c 6c 3b 69 66 28 75 69 28 65 29 29 7b 63 null;if(ui(e)){c 0001f620: 6f 6e 73 74 20 74 3d 65 2e 6d 6e 65 6d 6f 6e 69 onst t=e.mnemoni 0001f630: 63 3b 61 3d 54 28 56 6f 28 74 2e 70 68 72 61 73 c;a=T(Vo(t.phras 0001f640: 65 2c 74 2e 6c 6f 63 61 6c 65 7c 7c 22 65 6e 22 e,t.locale||"en" 0001f650: 29 29 2c 73 3d 74 2e 70 61 74 68 7c 7c 7a 6f 2c )),s=t.path||zo, 0001f660: 6c 3d 74 2e 6c 6f 63 61 6c 65 7c 7c 22 65 6e 22 l=t.locale||"en" 0001f670: 7d 6c 65 74 20 63 3d 6e 2e 63 6c 69 65 6e 74 3b }let c=n.client; 0001f680: 63 7c 7c 28 63 3d 22 65 74 68 65 72 73 2e 6a 73 c||(c="ethers.js 0001f690: 22 29 3b 6c 65 74 20 75 3d 6e 75 6c 6c 3b 75 3d ");let u=null;u= 0001f6a0: 6e 2e 73 61 6c 74 3f 54 28 6e 2e 73 61 6c 74 29 n.salt?T(n.salt) 0001f6b0: 3a 51 6f 28 33 32 29 3b 6c 65 74 20 64 3d 6e 75 :Qo(32);let d=nu 0001f6c0: 6c 6c 3b 69 66 28 6e 2e 69 76 29 7b 69 66 28 64 ll;if(n.iv){if(d 0001f6d0: 3d 54 28 6e 2e 69 76 29 2c 31 36 21 3d 3d 64 2e =T(n.iv),16!==d. 0001f6e0: 6c 65 6e 67 74 68 29 74 68 72 6f 77 20 6e 65 77 length)throw new 0001f6f0: 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 Error("invalid 0001f700: 69 76 22 29 7d 65 6c 73 65 20 64 3d 51 6f 28 31 iv")}else d=Qo(1 0001f710: 36 29 3b 6c 65 74 20 70 3d 6e 75 6c 6c 3b 69 66 6);let p=null;if 0001f720: 28 6e 2e 75 75 69 64 29 7b 69 66 28 70 3d 54 28 (n.uuid){if(p=T( 0001f730: 6e 2e 75 75 69 64 29 2c 31 36 21 3d 3d 70 2e 6c n.uuid),16!==p.l 0001f740: 65 6e 67 74 68 29 74 68 72 6f 77 20 6e 65 77 20 ength)throw new 0001f750: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 75 Error("invalid u 0001f760: 75 69 64 22 29 7d 65 6c 73 65 20 70 3d 51 6f 28 uid")}else p=Qo( 0001f770: 31 36 29 3b 6c 65 74 20 66 3d 31 3c 3c 31 37 2c 16);let f=1<<17, 0001f780: 68 3d 38 2c 6d 3d 31 3b 72 65 74 75 72 6e 20 6e h=8,m=1;return n 0001f790: 2e 73 63 72 79 70 74 26 26 28 6e 2e 73 63 72 79 .scrypt&&(n.scry 0001f7a0: 70 74 2e 4e 26 26 28 66 3d 6e 2e 73 63 72 79 70 pt.N&&(f=n.scryp 0001f7b0: 74 2e 4e 29 2c 6e 2e 73 63 72 79 70 74 2e 72 26 t.N),n.scrypt.r& 0001f7c0: 26 28 68 3d 6e 2e 73 63 72 79 70 74 2e 72 29 2c &(h=n.scrypt.r), 0001f7d0: 6e 2e 73 63 72 79 70 74 2e 70 26 26 28 6d 3d 6e n.scrypt.p&&(m=n 0001f7e0: 2e 73 63 72 79 70 74 2e 70 29 29 2c 74 69 28 29 .scrypt.p)),ti() 0001f7f0: 2e 73 63 72 79 70 74 28 69 2c 75 2c 66 2c 68 2c .scrypt(i,u,f,h, 0001f800: 6d 2c 36 34 2c 72 29 2e 74 68 65 6e 28 28 74 3d m,64,r).then((t= 0001f810: 3e 7b 63 6f 6e 73 74 20 6e 3d 28 74 3d 54 28 74 >{const n=(t=T(t 0001f820: 29 29 2e 73 6c 69 63 65 28 30 2c 31 36 29 2c 72 )).slice(0,16),r 0001f830: 3d 74 2e 73 6c 69 63 65 28 31 36 2c 33 32 29 2c =t.slice(16,32), 0001f840: 69 3d 74 2e 73 6c 69 63 65 28 33 32 2c 36 34 29 i=t.slice(32,64) 0001f850: 2c 67 3d 6e 65 77 28 24 6f 28 29 2e 43 6f 75 6e ,g=new($o().Coun 0001f860: 74 65 72 29 28 64 29 2c 62 3d 54 28 6e 65 77 28 ter)(d),b=T(new( 0001f870: 24 6f 28 29 2e 4d 6f 64 65 4f 66 4f 70 65 72 61 $o().ModeOfOpera 0001f880: 74 69 6f 6e 2e 63 74 72 29 28 6e 2c 67 29 2e 65 tion.ctr)(n,g).e 0001f890: 6e 63 72 79 70 74 28 6f 29 29 2c 79 3d 76 65 28 ncrypt(o)),y=ve( 0001f8a0: 43 28 5b 72 2c 62 5d 29 29 2c 76 3d 7b 61 64 64 C([r,b])),v={add 0001f8b0: 72 65 73 73 3a 65 2e 61 64 64 72 65 73 73 2e 73 ress:e.address.s 0001f8c0: 75 62 73 74 72 69 6e 67 28 32 29 2e 74 6f 4c 6f ubstring(2).toLo 0001f8d0: 77 65 72 43 61 73 65 28 29 2c 69 64 3a 61 69 28 werCase(),id:ai( 0001f8e0: 70 29 2c 76 65 72 73 69 6f 6e 3a 33 2c 63 72 79 p),version:3,cry 0001f8f0: 70 74 6f 3a 7b 63 69 70 68 65 72 3a 22 61 65 73 pto:{cipher:"aes 0001f900: 2d 31 32 38 2d 63 74 72 22 2c 63 69 70 68 65 72 -128-ctr",cipher 0001f910: 70 61 72 61 6d 73 3a 7b 69 76 3a 52 28 64 29 2e params:{iv:R(d). 0001f920: 73 75 62 73 74 72 69 6e 67 28 32 29 7d 2c 63 69 substring(2)},ci 0001f930: 70 68 65 72 74 65 78 74 3a 52 28 62 29 2e 73 75 phertext:R(b).su 0001f940: 62 73 74 72 69 6e 67 28 32 29 2c 6b 64 66 3a 22 bstring(2),kdf:" 0001f950: 73 63 72 79 70 74 22 2c 6b 64 66 70 61 72 61 6d scrypt",kdfparam 0001f960: 73 3a 7b 73 61 6c 74 3a 52 28 75 29 2e 73 75 62 s:{salt:R(u).sub 0001f970: 73 74 72 69 6e 67 28 32 29 2c 6e 3a 66 2c 64 6b string(2),n:f,dk 0001f980: 6c 65 6e 3a 33 32 2c 70 3a 6d 2c 72 3a 68 7d 2c len:32,p:m,r:h}, 0001f990: 6d 61 63 3a 79 2e 73 75 62 73 74 72 69 6e 67 28 mac:y.substring( 0001f9a0: 32 29 7d 7d 3b 69 66 28 61 29 7b 63 6f 6e 73 74 2)}};if(a){const 0001f9b0: 20 65 3d 51 6f 28 31 36 29 2c 74 3d 6e 65 77 28 e=Qo(16),t=new( 0001f9c0: 24 6f 28 29 2e 43 6f 75 6e 74 65 72 29 28 65 29 $o().Counter)(e) 0001f9d0: 2c 6e 3d 54 28 6e 65 77 28 24 6f 28 29 2e 4d 6f ,n=T(new($o().Mo 0001f9e0: 64 65 4f 66 4f 70 65 72 61 74 69 6f 6e 2e 63 74 deOfOperation.ct 0001f9f0: 72 29 28 69 2c 74 29 2e 65 6e 63 72 79 70 74 28 r)(i,t).encrypt( 0001fa00: 61 29 29 2c 72 3d 6e 65 77 20 44 61 74 65 2c 6f a)),r=new Date,o 0001fa10: 3d 72 2e 67 65 74 55 54 43 46 75 6c 6c 59 65 61 =r.getUTCFullYea 0001fa20: 72 28 29 2b 22 2d 22 2b 72 69 28 72 2e 67 65 74 r()+"-"+ri(r.get 0001fa30: 55 54 43 4d 6f 6e 74 68 28 29 2b 31 2c 32 29 2b UTCMonth()+1,2)+ 0001fa40: 22 2d 22 2b 72 69 28 72 2e 67 65 74 55 54 43 44 "-"+ri(r.getUTCD 0001fa50: 61 74 65 28 29 2c 32 29 2b 22 54 22 2b 72 69 28 ate(),2)+"T"+ri( 0001fa60: 72 2e 67 65 74 55 54 43 48 6f 75 72 73 28 29 2c r.getUTCHours(), 0001fa70: 32 29 2b 22 2d 22 2b 72 69 28 72 2e 67 65 74 55 2)+"-"+ri(r.getU 0001fa80: 54 43 4d 69 6e 75 74 65 73 28 29 2c 32 29 2b 22 TCMinutes(),2)+" 0001fa90: 2d 22 2b 72 69 28 72 2e 67 65 74 55 54 43 53 65 -"+ri(r.getUTCSe 0001faa0: 63 6f 6e 64 73 28 29 2c 32 29 2b 22 2e 30 5a 22 conds(),2)+".0Z" 0001fab0: 3b 76 5b 22 78 2d 65 74 68 65 72 73 22 5d 3d 7b ;v["x-ethers"]={ 0001fac0: 63 6c 69 65 6e 74 3a 63 2c 67 65 74 68 46 69 6c client:c,gethFil 0001fad0: 65 6e 61 6d 65 3a 22 55 54 43 2d 2d 22 2b 6f 2b ename:"UTC--"+o+ 0001fae0: 22 2d 2d 22 2b 76 2e 61 64 64 72 65 73 73 2c 6d "--"+v.address,m 0001faf0: 6e 65 6d 6f 6e 69 63 43 6f 75 6e 74 65 72 3a 52 nemonicCounter:R 0001fb00: 28 65 29 2e 73 75 62 73 74 72 69 6e 67 28 32 29 (e).substring(2) 0001fb10: 2c 6d 6e 65 6d 6f 6e 69 63 43 69 70 68 65 72 74 ,mnemonicCiphert 0001fb20: 65 78 74 3a 52 28 6e 29 2e 73 75 62 73 74 72 69 ext:R(n).substri 0001fb30: 6e 67 28 32 29 2c 70 61 74 68 3a 73 2c 6c 6f 63 ng(2),path:s,loc 0001fb40: 61 6c 65 3a 6c 2c 76 65 72 73 69 6f 6e 3a 22 30 ale:l,version:"0 0001fb50: 2e 31 22 7d 7d 72 65 74 75 72 6e 20 4a 53 4f 4e .1"}}return JSON 0001fb60: 2e 73 74 72 69 6e 67 69 66 79 28 76 29 7d 29 29 .stringify(v)})) 0001fb70: 7d 28 74 68 69 73 2c 65 2c 74 2c 6e 29 7d 73 74 }(this,e,t,n)}st 0001fb80: 61 74 69 63 20 63 72 65 61 74 65 52 61 6e 64 6f atic createRando 0001fb90: 6d 28 65 29 7b 6c 65 74 20 74 3d 51 6f 28 31 36 m(e){let t=Qo(16 0001fba0: 29 3b 65 7c 7c 28 65 3d 7b 7d 29 2c 65 2e 65 78 );e||(e={}),e.ex 0001fbb0: 74 72 61 45 6e 74 72 6f 70 79 26 26 28 74 3d 54 traEntropy&&(t=T 0001fbc0: 28 50 28 76 65 28 43 28 5b 74 2c 65 2e 65 78 74 (P(ve(C([t,e.ext 0001fbd0: 72 61 45 6e 74 72 6f 70 79 5d 29 29 2c 30 2c 31 raEntropy])),0,1 0001fbe0: 36 29 29 29 3b 63 6f 6e 73 74 20 6e 3d 71 6f 28 6)));const n=qo( 0001fbf0: 74 2c 65 2e 6c 6f 63 61 6c 65 29 3b 72 65 74 75 t,e.locale);retu 0001fc00: 72 6e 20 43 69 2e 66 72 6f 6d 4d 6e 65 6d 6f 6e rn Ci.fromMnemon 0001fc10: 69 63 28 6e 2c 65 2e 70 61 74 68 2c 65 2e 6c 6f ic(n,e.path,e.lo 0001fc20: 63 61 6c 65 29 7d 73 74 61 74 69 63 20 66 72 6f cale)}static fro 0001fc30: 6d 45 6e 63 72 79 70 74 65 64 4a 73 6f 6e 28 65 mEncryptedJson(e 0001fc40: 2c 74 2c 6e 29 7b 72 65 74 75 72 6e 20 5f 69 28 ,t,n){return _i( 0001fc50: 65 2c 74 2c 6e 29 2e 74 68 65 6e 28 28 65 3d 3e e,t,n).then((e=> 0001fc60: 6e 65 77 20 43 69 28 65 29 29 29 7d 73 74 61 74 new Ci(e)))}stat 0001fc70: 69 63 20 66 72 6f 6d 45 6e 63 72 79 70 74 65 64 ic fromEncrypted 0001fc80: 4a 73 6f 6e 53 79 6e 63 28 65 2c 74 29 7b 72 65 JsonSync(e,t){re 0001fc90: 74 75 72 6e 20 6e 65 77 20 43 69 28 77 69 28 65 turn new Ci(wi(e 0001fca0: 2c 74 29 29 7d 73 74 61 74 69 63 20 66 72 6f 6d ,t))}static from 0001fcb0: 4d 6e 65 6d 6f 6e 69 63 28 65 2c 74 2c 6e 29 7b Mnemonic(e,t,n){ 0001fcc0: 72 65 74 75 72 6e 20 74 7c 7c 28 74 3d 7a 6f 29 return t||(t=zo) 0001fcd0: 2c 6e 65 77 20 43 69 28 47 6f 2e 66 72 6f 6d 4d ,new Ci(Go.fromM 0001fce0: 6e 65 6d 6f 6e 69 63 28 65 2c 6e 75 6c 6c 2c 6e nemonic(e,null,n 0001fcf0: 29 2e 64 65 72 69 76 65 50 61 74 68 28 74 29 29 ).derivePath(t)) 0001fd00: 7d 7d 66 75 6e 63 74 69 6f 6e 20 41 69 28 65 2c }}function Ai(e, 0001fd10: 74 29 7b 72 65 74 75 72 6e 20 75 72 28 51 72 28 t){return ur(Qr( 0001fd20: 65 29 2c 74 29 7d 66 75 6e 63 74 69 6f 6e 20 6b e),t)}function k 0001fd30: 69 28 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 i(e,t,n,r){retur 0001fd40: 6e 20 75 72 28 6d 6f 2e 68 61 73 68 28 65 2c 74 n ur(mo.hash(e,t 0001fd50: 2c 6e 29 2c 72 29 7d 63 6f 6e 73 74 20 49 69 3d ,n),r)}const Ii= 0001fd60: 22 30 78 30 30 30 30 30 30 30 30 30 30 30 30 30 "0x0000000000000 0001fd70: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0001fd80: 30 30 30 30 30 30 30 30 30 30 30 22 2c 4f 69 3d 00000000000",Oi= 0001fd90: 22 30 78 30 30 30 30 30 30 30 30 30 30 30 30 30 "0x0000000000000 0001fda0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0001fdb0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0001fdc0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0001fdd0: 30 30 30 22 2c 52 69 3d 22 ce 9e 22 2c 4e 69 3d 000",Ri="..",Ni= 0001fde0: 6e 65 77 20 79 28 22 6e 65 74 77 6f 72 6b 73 2f new y("networks/ 0001fdf0: 35 2e 37 2e 31 22 29 3b 66 75 6e 63 74 69 6f 6e 5.7.1");function 0001fe00: 20 50 69 28 65 29 7b 63 6f 6e 73 74 20 74 3d 66 Pi(e){const t=f 0001fe10: 75 6e 63 74 69 6f 6e 28 74 2c 6e 29 7b 6e 75 6c unction(t,n){nul 0001fe20: 6c 3d 3d 6e 26 26 28 6e 3d 7b 7d 29 3b 63 6f 6e l==n&&(n={});con 0001fe30: 73 74 20 72 3d 5b 5d 3b 69 66 28 74 2e 49 6e 66 st r=[];if(t.Inf 0001fe40: 75 72 61 50 72 6f 76 69 64 65 72 26 26 22 2d 22 uraProvider&&"-" 0001fe50: 21 3d 3d 6e 2e 69 6e 66 75 72 61 29 74 72 79 7b !==n.infura)try{ 0001fe60: 72 2e 70 75 73 68 28 6e 65 77 20 74 2e 49 6e 66 r.push(new t.Inf 0001fe70: 75 72 61 50 72 6f 76 69 64 65 72 28 65 2c 6e 2e uraProvider(e,n. 0001fe80: 69 6e 66 75 72 61 29 29 7d 63 61 74 63 68 28 65 infura))}catch(e 0001fe90: 29 7b 7d 69 66 28 74 2e 45 74 68 65 72 73 63 61 ){}if(t.Ethersca 0001fea0: 6e 50 72 6f 76 69 64 65 72 26 26 22 2d 22 21 3d nProvider&&"-"!= 0001feb0: 3d 6e 2e 65 74 68 65 72 73 63 61 6e 29 74 72 79 =n.etherscan)try 0001fec0: 7b 72 2e 70 75 73 68 28 6e 65 77 20 74 2e 45 74 {r.push(new t.Et 0001fed0: 68 65 72 73 63 61 6e 50 72 6f 76 69 64 65 72 28 herscanProvider( 0001fee0: 65 2c 6e 2e 65 74 68 65 72 73 63 61 6e 29 29 7d e,n.etherscan))} 0001fef0: 63 61 74 63 68 28 65 29 7b 7d 69 66 28 74 2e 41 catch(e){}if(t.A 0001ff00: 6c 63 68 65 6d 79 50 72 6f 76 69 64 65 72 26 26 lchemyProvider&& 0001ff10: 22 2d 22 21 3d 3d 6e 2e 61 6c 63 68 65 6d 79 29 "-"!==n.alchemy) 0001ff20: 74 72 79 7b 72 2e 70 75 73 68 28 6e 65 77 20 74 try{r.push(new t 0001ff30: 2e 41 6c 63 68 65 6d 79 50 72 6f 76 69 64 65 72 .AlchemyProvider 0001ff40: 28 65 2c 6e 2e 61 6c 63 68 65 6d 79 29 29 7d 63 (e,n.alchemy))}c 0001ff50: 61 74 63 68 28 65 29 7b 7d 69 66 28 74 2e 50 6f atch(e){}if(t.Po 0001ff60: 63 6b 65 74 50 72 6f 76 69 64 65 72 26 26 22 2d cketProvider&&"- 0001ff70: 22 21 3d 3d 6e 2e 70 6f 63 6b 65 74 29 7b 63 6f "!==n.pocket){co 0001ff80: 6e 73 74 20 6f 3d 5b 22 67 6f 65 72 6c 69 22 2c nst o=["goerli", 0001ff90: 22 72 6f 70 73 74 65 6e 22 2c 22 72 69 6e 6b 65 "ropsten","rinke 0001ffa0: 62 79 22 2c 22 73 65 70 6f 6c 69 61 22 5d 3b 74 by","sepolia"];t 0001ffb0: 72 79 7b 63 6f 6e 73 74 20 69 3d 6e 65 77 20 74 ry{const i=new t 0001ffc0: 2e 50 6f 63 6b 65 74 50 72 6f 76 69 64 65 72 28 .PocketProvider( 0001ffd0: 65 2c 6e 2e 70 6f 63 6b 65 74 29 3b 69 2e 6e 65 e,n.pocket);i.ne 0001ffe0: 74 77 6f 72 6b 26 26 2d 31 3d 3d 3d 6f 2e 69 6e twork&&-1===o.in 0001fff0: 64 65 78 4f 66 28 69 2e 6e 65 74 77 6f 72 6b 2e dexOf(i.network. 00020000: 6e 61 6d 65 29 26 26 72 2e 70 75 73 68 28 69 29 name)&&r.push(i) 00020010: 7d 63 61 74 63 68 28 65 29 7b 7d 7d 69 66 28 74 }catch(e){}}if(t 00020020: 2e 43 6c 6f 75 64 66 6c 61 72 65 50 72 6f 76 69 .CloudflareProvi 00020030: 64 65 72 26 26 22 2d 22 21 3d 3d 6e 2e 63 6c 6f der&&"-"!==n.clo 00020040: 75 64 66 6c 61 72 65 29 74 72 79 7b 72 2e 70 75 udflare)try{r.pu 00020050: 73 68 28 6e 65 77 20 74 2e 43 6c 6f 75 64 66 6c sh(new t.Cloudfl 00020060: 61 72 65 50 72 6f 76 69 64 65 72 28 65 29 29 7d areProvider(e))} 00020070: 63 61 74 63 68 28 65 29 7b 7d 69 66 28 74 2e 41 catch(e){}if(t.A 00020080: 6e 6b 72 50 72 6f 76 69 64 65 72 26 26 22 2d 22 nkrProvider&&"-" 00020090: 21 3d 3d 6e 2e 61 6e 6b 72 29 74 72 79 7b 63 6f !==n.ankr)try{co 000200a0: 6e 73 74 20 6f 3d 5b 22 72 6f 70 73 74 65 6e 22 nst o=["ropsten" 000200b0: 5d 2c 69 3d 6e 65 77 20 74 2e 41 6e 6b 72 50 72 ],i=new t.AnkrPr 000200c0: 6f 76 69 64 65 72 28 65 2c 6e 2e 61 6e 6b 72 29 ovider(e,n.ankr) 000200d0: 3b 69 2e 6e 65 74 77 6f 72 6b 26 26 2d 31 3d 3d ;i.network&&-1== 000200e0: 3d 6f 2e 69 6e 64 65 78 4f 66 28 69 2e 6e 65 74 =o.indexOf(i.net 000200f0: 77 6f 72 6b 2e 6e 61 6d 65 29 26 26 72 2e 70 75 work.name)&&r.pu 00020100: 73 68 28 69 29 7d 63 61 74 63 68 28 65 29 7b 7d sh(i)}catch(e){} 00020110: 69 66 28 30 3d 3d 3d 72 2e 6c 65 6e 67 74 68 29 if(0===r.length) 00020120: 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 69 66 28 74 return null;if(t 00020130: 2e 46 61 6c 6c 62 61 63 6b 50 72 6f 76 69 64 65 .FallbackProvide 00020140: 72 29 7b 6c 65 74 20 6f 3d 31 3b 72 65 74 75 72 r){let o=1;retur 00020150: 6e 20 6e 75 6c 6c 21 3d 6e 2e 71 75 6f 72 75 6d n null!=n.quorum 00020160: 3f 6f 3d 6e 2e 71 75 6f 72 75 6d 3a 22 68 6f 6d ?o=n.quorum:"hom 00020170: 65 73 74 65 61 64 22 3d 3d 3d 65 26 26 28 6f 3d estead"===e&&(o= 00020180: 32 29 2c 6e 65 77 20 74 2e 46 61 6c 6c 62 61 63 2),new t.Fallbac 00020190: 6b 50 72 6f 76 69 64 65 72 28 72 2c 6f 29 7d 72 kProvider(r,o)}r 000201a0: 65 74 75 72 6e 20 72 5b 30 5d 7d 3b 72 65 74 75 eturn r[0]};retu 000201b0: 72 6e 20 74 2e 72 65 6e 65 74 77 6f 72 6b 3d 66 rn t.renetwork=f 000201c0: 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 unction(e){retur 000201d0: 6e 20 50 69 28 65 29 7d 2c 74 7d 66 75 6e 63 74 n Pi(e)},t}funct 000201e0: 69 6f 6e 20 4d 69 28 65 2c 74 29 7b 63 6f 6e 73 ion Mi(e,t){cons 000201f0: 74 20 6e 3d 66 75 6e 63 74 69 6f 6e 28 6e 2c 72 t n=function(n,r 00020200: 29 7b 72 65 74 75 72 6e 20 6e 2e 4a 73 6f 6e 52 ){return n.JsonR 00020210: 70 63 50 72 6f 76 69 64 65 72 3f 6e 65 77 20 6e pcProvider?new n 00020220: 2e 4a 73 6f 6e 52 70 63 50 72 6f 76 69 64 65 72 .JsonRpcProvider 00020230: 28 65 2c 74 29 3a 6e 75 6c 6c 7d 3b 72 65 74 75 (e,t):null};retu 00020240: 72 6e 20 6e 2e 72 65 6e 65 74 77 6f 72 6b 3d 66 rn n.renetwork=f 00020250: 75 6e 63 74 69 6f 6e 28 74 29 7b 72 65 74 75 72 unction(t){retur 00020260: 6e 20 4d 69 28 65 2c 74 29 7d 2c 6e 7d 63 6f 6e n Mi(e,t)},n}con 00020270: 73 74 20 44 69 3d 7b 63 68 61 69 6e 49 64 3a 31 st Di={chainId:1 00020280: 2c 65 6e 73 41 64 64 72 65 73 73 3a 22 30 78 30 ,ensAddress:"0x0 00020290: 30 30 30 30 30 30 30 30 30 30 43 32 45 30 37 34 0000000000C2E074 000202a0: 65 43 36 39 41 30 64 46 62 32 39 39 37 42 41 36 eC69A0dFb2997BA6 000202b0: 43 37 64 32 65 31 65 22 2c 6e 61 6d 65 3a 22 68 C7d2e1e",name:"h 000202c0: 6f 6d 65 73 74 65 61 64 22 2c 5f 64 65 66 61 75 omestead",_defau 000202d0: 6c 74 50 72 6f 76 69 64 65 72 3a 50 69 28 22 68 ltProvider:Pi("h 000202e0: 6f 6d 65 73 74 65 61 64 22 29 7d 2c 4c 69 3d 7b omestead")},Li={ 000202f0: 63 68 61 69 6e 49 64 3a 33 2c 65 6e 73 41 64 64 chainId:3,ensAdd 00020300: 72 65 73 73 3a 22 30 78 30 30 30 30 30 30 30 30 ress:"0x00000000 00020310: 30 30 30 43 32 45 30 37 34 65 43 36 39 41 30 64 000C2E074eC69A0d 00020320: 46 62 32 39 39 37 42 41 36 43 37 64 32 65 31 65 Fb2997BA6C7d2e1e 00020330: 22 2c 6e 61 6d 65 3a 22 72 6f 70 73 74 65 6e 22 ",name:"ropsten" 00020340: 2c 5f 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 ,_defaultProvide 00020350: 72 3a 50 69 28 22 72 6f 70 73 74 65 6e 22 29 7d r:Pi("ropsten")} 00020360: 2c 46 69 3d 7b 63 68 61 69 6e 49 64 3a 36 33 2c ,Fi={chainId:63, 00020370: 6e 61 6d 65 3a 22 63 6c 61 73 73 69 63 4d 6f 72 name:"classicMor 00020380: 64 6f 72 22 2c 5f 64 65 66 61 75 6c 74 50 72 6f dor",_defaultPro 00020390: 76 69 64 65 72 3a 4d 69 28 22 68 74 74 70 73 3a vider:Mi("https: 000203a0: 2f 2f 77 77 77 2e 65 74 68 65 72 63 6c 75 73 74 //www.etherclust 000203b0: 65 72 2e 63 6f 6d 2f 6d 6f 72 64 6f 72 22 2c 22 er.com/mordor"," 000203c0: 63 6c 61 73 73 69 63 4d 6f 72 64 6f 72 22 29 7d classicMordor")} 000203d0: 2c 55 69 3d 7b 75 6e 73 70 65 63 69 66 69 65 64 ,Ui={unspecified 000203e0: 3a 7b 63 68 61 69 6e 49 64 3a 30 2c 6e 61 6d 65 :{chainId:0,name 000203f0: 3a 22 75 6e 73 70 65 63 69 66 69 65 64 22 7d 2c :"unspecified"}, 00020400: 68 6f 6d 65 73 74 65 61 64 3a 44 69 2c 6d 61 69 homestead:Di,mai 00020410: 6e 6e 65 74 3a 44 69 2c 6d 6f 72 64 65 6e 3a 7b nnet:Di,morden:{ 00020420: 63 68 61 69 6e 49 64 3a 32 2c 6e 61 6d 65 3a 22 chainId:2,name:" 00020430: 6d 6f 72 64 65 6e 22 7d 2c 72 6f 70 73 74 65 6e morden"},ropsten 00020440: 3a 4c 69 2c 74 65 73 74 6e 65 74 3a 4c 69 2c 72 :Li,testnet:Li,r 00020450: 69 6e 6b 65 62 79 3a 7b 63 68 61 69 6e 49 64 3a inkeby:{chainId: 00020460: 34 2c 65 6e 73 41 64 64 72 65 73 73 3a 22 30 78 4,ensAddress:"0x 00020470: 30 30 30 30 30 30 30 30 30 30 30 43 32 45 30 37 00000000000C2E07 00020480: 34 65 43 36 39 41 30 64 46 62 32 39 39 37 42 41 4eC69A0dFb2997BA 00020490: 36 43 37 64 32 65 31 65 22 2c 6e 61 6d 65 3a 22 6C7d2e1e",name:" 000204a0: 72 69 6e 6b 65 62 79 22 2c 5f 64 65 66 61 75 6c rinkeby",_defaul 000204b0: 74 50 72 6f 76 69 64 65 72 3a 50 69 28 22 72 69 tProvider:Pi("ri 000204c0: 6e 6b 65 62 79 22 29 7d 2c 6b 6f 76 61 6e 3a 7b nkeby")},kovan:{ 000204d0: 63 68 61 69 6e 49 64 3a 34 32 2c 6e 61 6d 65 3a chainId:42,name: 000204e0: 22 6b 6f 76 61 6e 22 2c 5f 64 65 66 61 75 6c 74 "kovan",_default 000204f0: 50 72 6f 76 69 64 65 72 3a 50 69 28 22 6b 6f 76 Provider:Pi("kov 00020500: 61 6e 22 29 7d 2c 67 6f 65 72 6c 69 3a 7b 63 68 an")},goerli:{ch 00020510: 61 69 6e 49 64 3a 35 2c 65 6e 73 41 64 64 72 65 ainId:5,ensAddre 00020520: 73 73 3a 22 30 78 30 30 30 30 30 30 30 30 30 30 ss:"0x0000000000 00020530: 30 43 32 45 30 37 34 65 43 36 39 41 30 64 46 62 0C2E074eC69A0dFb 00020540: 32 39 39 37 42 41 36 43 37 64 32 65 31 65 22 2c 2997BA6C7d2e1e", 00020550: 6e 61 6d 65 3a 22 67 6f 65 72 6c 69 22 2c 5f 64 name:"goerli",_d 00020560: 65 66 61 75 6c 74 50 72 6f 76 69 64 65 72 3a 50 efaultProvider:P 00020570: 69 28 22 67 6f 65 72 6c 69 22 29 7d 2c 6b 69 6e i("goerli")},kin 00020580: 74 73 75 67 69 3a 7b 63 68 61 69 6e 49 64 3a 31 tsugi:{chainId:1 00020590: 33 33 37 37 30 32 2c 6e 61 6d 65 3a 22 6b 69 6e 337702,name:"kin 000205a0: 74 73 75 67 69 22 7d 2c 73 65 70 6f 6c 69 61 3a tsugi"},sepolia: 000205b0: 7b 63 68 61 69 6e 49 64 3a 31 31 31 35 35 31 31 {chainId:1115511 000205c0: 31 2c 6e 61 6d 65 3a 22 73 65 70 6f 6c 69 61 22 1,name:"sepolia" 000205d0: 2c 5f 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 ,_defaultProvide 000205e0: 72 3a 50 69 28 22 73 65 70 6f 6c 69 61 22 29 7d r:Pi("sepolia")} 000205f0: 2c 63 6c 61 73 73 69 63 3a 7b 63 68 61 69 6e 49 ,classic:{chainI 00020600: 64 3a 36 31 2c 6e 61 6d 65 3a 22 63 6c 61 73 73 d:61,name:"class 00020610: 69 63 22 2c 5f 64 65 66 61 75 6c 74 50 72 6f 76 ic",_defaultProv 00020620: 69 64 65 72 3a 4d 69 28 22 68 74 74 70 73 3a 2f ider:Mi("https:/ 00020630: 2f 77 77 77 2e 65 74 68 65 72 63 6c 75 73 74 65 /www.ethercluste 00020640: 72 2e 63 6f 6d 2f 65 74 63 22 2c 22 63 6c 61 73 r.com/etc","clas 00020650: 73 69 63 22 29 7d 2c 63 6c 61 73 73 69 63 4d 6f sic")},classicMo 00020660: 72 64 65 6e 3a 7b 63 68 61 69 6e 49 64 3a 36 32 rden:{chainId:62 00020670: 2c 6e 61 6d 65 3a 22 63 6c 61 73 73 69 63 4d 6f ,name:"classicMo 00020680: 72 64 65 6e 22 7d 2c 63 6c 61 73 73 69 63 4d 6f rden"},classicMo 00020690: 72 64 6f 72 3a 46 69 2c 63 6c 61 73 73 69 63 54 rdor:Fi,classicT 000206a0: 65 73 74 6e 65 74 3a 46 69 2c 63 6c 61 73 73 69 estnet:Fi,classi 000206b0: 63 4b 6f 74 74 69 3a 7b 63 68 61 69 6e 49 64 3a cKotti:{chainId: 000206c0: 36 2c 6e 61 6d 65 3a 22 63 6c 61 73 73 69 63 4b 6,name:"classicK 000206d0: 6f 74 74 69 22 2c 5f 64 65 66 61 75 6c 74 50 72 otti",_defaultPr 000206e0: 6f 76 69 64 65 72 3a 4d 69 28 22 68 74 74 70 73 ovider:Mi("https 000206f0: 3a 2f 2f 77 77 77 2e 65 74 68 65 72 63 6c 75 73 ://www.etherclus 00020700: 74 65 72 2e 63 6f 6d 2f 6b 6f 74 74 69 22 2c 22 ter.com/kotti"," 00020710: 63 6c 61 73 73 69 63 4b 6f 74 74 69 22 29 7d 2c classicKotti")}, 00020720: 78 64 61 69 3a 7b 63 68 61 69 6e 49 64 3a 31 30 xdai:{chainId:10 00020730: 30 2c 6e 61 6d 65 3a 22 78 64 61 69 22 7d 2c 6d 0,name:"xdai"},m 00020740: 61 74 69 63 3a 7b 63 68 61 69 6e 49 64 3a 31 33 atic:{chainId:13 00020750: 37 2c 6e 61 6d 65 3a 22 6d 61 74 69 63 22 2c 5f 7,name:"matic",_ 00020760: 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 72 3a defaultProvider: 00020770: 50 69 28 22 6d 61 74 69 63 22 29 7d 2c 6d 61 74 Pi("matic")},mat 00020780: 69 63 6d 75 6d 3a 7b 63 68 61 69 6e 49 64 3a 38 icmum:{chainId:8 00020790: 30 30 30 31 2c 6e 61 6d 65 3a 22 6d 61 74 69 63 0001,name:"matic 000207a0: 6d 75 6d 22 7d 2c 6f 70 74 69 6d 69 73 6d 3a 7b mum"},optimism:{ 000207b0: 63 68 61 69 6e 49 64 3a 31 30 2c 6e 61 6d 65 3a chainId:10,name: 000207c0: 22 6f 70 74 69 6d 69 73 6d 22 2c 5f 64 65 66 61 "optimism",_defa 000207d0: 75 6c 74 50 72 6f 76 69 64 65 72 3a 50 69 28 22 ultProvider:Pi(" 000207e0: 6f 70 74 69 6d 69 73 6d 22 29 7d 2c 22 6f 70 74 optimism")},"opt 000207f0: 69 6d 69 73 6d 2d 6b 6f 76 61 6e 22 3a 7b 63 68 imism-kovan":{ch 00020800: 61 69 6e 49 64 3a 36 39 2c 6e 61 6d 65 3a 22 6f ainId:69,name:"o 00020810: 70 74 69 6d 69 73 6d 2d 6b 6f 76 61 6e 22 7d 2c ptimism-kovan"}, 00020820: 22 6f 70 74 69 6d 69 73 6d 2d 67 6f 65 72 6c 69 "optimism-goerli 00020830: 22 3a 7b 63 68 61 69 6e 49 64 3a 34 32 30 2c 6e ":{chainId:420,n 00020840: 61 6d 65 3a 22 6f 70 74 69 6d 69 73 6d 2d 67 6f ame:"optimism-go 00020850: 65 72 6c 69 22 7d 2c 61 72 62 69 74 72 75 6d 3a erli"},arbitrum: 00020860: 7b 63 68 61 69 6e 49 64 3a 34 32 31 36 31 2c 6e {chainId:42161,n 00020870: 61 6d 65 3a 22 61 72 62 69 74 72 75 6d 22 7d 2c ame:"arbitrum"}, 00020880: 22 61 72 62 69 74 72 75 6d 2d 72 69 6e 6b 65 62 "arbitrum-rinkeb 00020890: 79 22 3a 7b 63 68 61 69 6e 49 64 3a 34 32 31 36 y":{chainId:4216 000208a0: 31 31 2c 6e 61 6d 65 3a 22 61 72 62 69 74 72 75 11,name:"arbitru 000208b0: 6d 2d 72 69 6e 6b 65 62 79 22 7d 2c 22 61 72 62 m-rinkeby"},"arb 000208c0: 69 74 72 75 6d 2d 67 6f 65 72 6c 69 22 3a 7b 63 itrum-goerli":{c 000208d0: 68 61 69 6e 49 64 3a 34 32 31 36 31 33 2c 6e 61 hainId:421613,na 000208e0: 6d 65 3a 22 61 72 62 69 74 72 75 6d 2d 67 6f 65 me:"arbitrum-goe 000208f0: 72 6c 69 22 7d 2c 62 6e 62 3a 7b 63 68 61 69 6e rli"},bnb:{chain 00020900: 49 64 3a 35 36 2c 6e 61 6d 65 3a 22 62 6e 62 22 Id:56,name:"bnb" 00020910: 7d 2c 62 6e 62 74 3a 7b 63 68 61 69 6e 49 64 3a },bnbt:{chainId: 00020920: 39 37 2c 6e 61 6d 65 3a 22 62 6e 62 74 22 7d 7d 97,name:"bnbt"}} 00020930: 3b 66 75 6e 63 74 69 6f 6e 20 42 69 28 65 29 7b ;function Bi(e){ 00020940: 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 74 75 72 if(null==e)retur 00020950: 6e 20 6e 75 6c 6c 3b 69 66 28 22 6e 75 6d 62 65 n null;if("numbe 00020960: 72 22 3d 3d 74 79 70 65 6f 66 20 65 29 7b 66 6f r"==typeof e){fo 00020970: 72 28 63 6f 6e 73 74 20 74 20 69 6e 20 55 69 29 r(const t in Ui) 00020980: 7b 63 6f 6e 73 74 20 6e 3d 55 69 5b 74 5d 3b 69 {const n=Ui[t];i 00020990: 66 28 6e 2e 63 68 61 69 6e 49 64 3d 3d 3d 65 29 f(n.chainId===e) 000209a0: 72 65 74 75 72 6e 7b 6e 61 6d 65 3a 6e 2e 6e 61 return{name:n.na 000209b0: 6d 65 2c 63 68 61 69 6e 49 64 3a 6e 2e 63 68 61 me,chainId:n.cha 000209c0: 69 6e 49 64 2c 65 6e 73 41 64 64 72 65 73 73 3a inId,ensAddress: 000209d0: 6e 2e 65 6e 73 41 64 64 72 65 73 73 7c 7c 6e 75 n.ensAddress||nu 000209e0: 6c 6c 2c 5f 64 65 66 61 75 6c 74 50 72 6f 76 69 ll,_defaultProvi 000209f0: 64 65 72 3a 6e 2e 5f 64 65 66 61 75 6c 74 50 72 der:n._defaultPr 00020a00: 6f 76 69 64 65 72 7c 7c 6e 75 6c 6c 7d 7d 72 65 ovider||null}}re 00020a10: 74 75 72 6e 7b 63 68 61 69 6e 49 64 3a 65 2c 6e turn{chainId:e,n 00020a20: 61 6d 65 3a 22 75 6e 6b 6e 6f 77 6e 22 7d 7d 69 ame:"unknown"}}i 00020a30: 66 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 f("string"==type 00020a40: 6f 66 20 65 29 7b 63 6f 6e 73 74 20 74 3d 55 69 of e){const t=Ui 00020a50: 5b 65 5d 3b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d [e];return null= 00020a60: 3d 74 3f 6e 75 6c 6c 3a 7b 6e 61 6d 65 3a 74 2e =t?null:{name:t. 00020a70: 6e 61 6d 65 2c 63 68 61 69 6e 49 64 3a 74 2e 63 name,chainId:t.c 00020a80: 68 61 69 6e 49 64 2c 65 6e 73 41 64 64 72 65 73 hainId,ensAddres 00020a90: 73 3a 74 2e 65 6e 73 41 64 64 72 65 73 73 2c 5f s:t.ensAddress,_ 00020aa0: 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 72 3a defaultProvider: 00020ab0: 74 2e 5f 64 65 66 61 75 6c 74 50 72 6f 76 69 64 t._defaultProvid 00020ac0: 65 72 7c 7c 6e 75 6c 6c 7d 7d 63 6f 6e 73 74 20 er||null}}const 00020ad0: 74 3d 55 69 5b 65 2e 6e 61 6d 65 5d 3b 69 66 28 t=Ui[e.name];if( 00020ae0: 21 74 29 72 65 74 75 72 6e 22 6e 75 6d 62 65 72 !t)return"number 00020af0: 22 21 3d 74 79 70 65 6f 66 20 65 2e 63 68 61 69 "!=typeof e.chai 00020b00: 6e 49 64 26 26 4e 69 2e 74 68 72 6f 77 41 72 67 nId&&Ni.throwArg 00020b10: 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 umentError("inva 00020b20: 6c 69 64 20 6e 65 74 77 6f 72 6b 20 63 68 61 69 lid network chai 00020b30: 6e 49 64 22 2c 22 6e 65 74 77 6f 72 6b 22 2c 65 nId","network",e 00020b40: 29 2c 65 3b 30 21 3d 3d 65 2e 63 68 61 69 6e 49 ),e;0!==e.chainI 00020b50: 64 26 26 65 2e 63 68 61 69 6e 49 64 21 3d 3d 74 d&&e.chainId!==t 00020b60: 2e 63 68 61 69 6e 49 64 26 26 4e 69 2e 74 68 72 .chainId&&Ni.thr 00020b70: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 00020b80: 22 6e 65 74 77 6f 72 6b 20 63 68 61 69 6e 49 64 "network chainId 00020b90: 20 6d 69 73 6d 61 74 63 68 22 2c 22 6e 65 74 77 mismatch","netw 00020ba0: 6f 72 6b 22 2c 65 29 3b 6c 65 74 20 6e 3d 65 2e ork",e);let n=e. 00020bb0: 5f 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 72 _defaultProvider 00020bc0: 7c 7c 6e 75 6c 6c 3b 76 61 72 20 72 3b 72 65 74 ||null;var r;ret 00020bd0: 75 72 6e 20 6e 75 6c 6c 3d 3d 6e 26 26 74 2e 5f urn null==n&&t._ 00020be0: 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 72 26 defaultProvider& 00020bf0: 26 28 6e 3d 28 72 3d 74 2e 5f 64 65 66 61 75 6c &(n=(r=t._defaul 00020c00: 74 50 72 6f 76 69 64 65 72 29 26 26 22 66 75 6e tProvider)&&"fun 00020c10: 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 72 ction"==typeof r 00020c20: 2e 72 65 6e 65 74 77 6f 72 6b 3f 74 2e 5f 64 65 .renetwork?t._de 00020c30: 66 61 75 6c 74 50 72 6f 76 69 64 65 72 2e 72 65 faultProvider.re 00020c40: 6e 65 74 77 6f 72 6b 28 65 29 3a 74 2e 5f 64 65 network(e):t._de 00020c50: 66 61 75 6c 74 50 72 6f 76 69 64 65 72 29 2c 7b faultProvider),{ 00020c60: 6e 61 6d 65 3a 65 2e 6e 61 6d 65 2c 63 68 61 69 name:e.name,chai 00020c70: 6e 49 64 3a 74 2e 63 68 61 69 6e 49 64 2c 65 6e nId:t.chainId,en 00020c80: 73 41 64 64 72 65 73 73 3a 65 2e 65 6e 73 41 64 sAddress:e.ensAd 00020c90: 64 72 65 73 73 7c 7c 74 2e 65 6e 73 41 64 64 72 dress||t.ensAddr 00020ca0: 65 73 73 7c 7c 6e 75 6c 6c 2c 5f 64 65 66 61 75 ess||null,_defau 00020cb0: 6c 74 50 72 6f 76 69 64 65 72 3a 6e 7d 7d 66 75 ltProvider:n}}fu 00020cc0: 6e 63 74 69 6f 6e 20 6a 69 28 65 29 7b 65 3d 61 nction ji(e){e=a 00020cd0: 74 6f 62 28 65 29 3b 63 6f 6e 73 74 20 74 3d 5b tob(e);const t=[ 00020ce0: 5d 3b 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 6e 3c ];for(let n=0;n< 00020cf0: 65 2e 6c 65 6e 67 74 68 3b 6e 2b 2b 29 74 2e 70 e.length;n++)t.p 00020d00: 75 73 68 28 65 2e 63 68 61 72 43 6f 64 65 41 74 ush(e.charCodeAt 00020d10: 28 6e 29 29 3b 72 65 74 75 72 6e 20 54 28 74 29 (n));return T(t) 00020d20: 7d 66 75 6e 63 74 69 6f 6e 20 7a 69 28 65 29 7b }function zi(e){ 00020d30: 65 3d 54 28 65 29 3b 6c 65 74 20 74 3d 22 22 3b e=T(e);let t=""; 00020d40: 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 6e 3c 65 2e for(let n=0;n<e. 00020d50: 6c 65 6e 67 74 68 3b 6e 2b 2b 29 74 2b 3d 53 74 length;n++)t+=St 00020d60: 72 69 6e 67 2e 66 72 6f 6d 43 68 61 72 43 6f 64 ring.fromCharCod 00020d70: 65 28 65 5b 6e 5d 29 3b 72 65 74 75 72 6e 20 62 e(e[n]);return b 00020d80: 74 6f 61 28 74 29 7d 66 75 6e 63 74 69 6f 6e 20 toa(t)}function 00020d90: 47 69 28 65 2c 74 29 7b 6e 75 6c 6c 3d 3d 74 26 Gi(e,t){null==t& 00020da0: 26 28 74 3d 31 29 3b 63 6f 6e 73 74 20 6e 3d 5b &(t=1);const n=[ 00020db0: 5d 2c 72 3d 6e 2e 66 6f 72 45 61 63 68 2c 6f 3d ],r=n.forEach,o= 00020dc0: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 2e function(e,t){r. 00020dd0: 63 61 6c 6c 28 65 2c 28 66 75 6e 63 74 69 6f 6e call(e,(function 00020de0: 28 65 29 7b 74 3e 30 26 26 41 72 72 61 79 2e 69 (e){t>0&&Array.i 00020df0: 73 41 72 72 61 79 28 65 29 3f 6f 28 65 2c 74 2d sArray(e)?o(e,t- 00020e00: 31 29 3a 6e 2e 70 75 73 68 28 65 29 7d 29 29 7d 1):n.push(e)}))} 00020e10: 3b 72 65 74 75 72 6e 20 6f 28 65 2c 74 29 2c 6e ;return o(e,t),n 00020e20: 7d 66 75 6e 63 74 69 6f 6e 20 48 69 28 65 29 7b }function Hi(e){ 00020e30: 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e 28 return function( 00020e40: 65 29 7b 6c 65 74 20 74 3d 30 3b 72 65 74 75 72 e){let t=0;retur 00020e50: 6e 28 29 3d 3e 65 5b 74 2b 2b 5d 7d 28 66 75 6e n()=>e[t++]}(fun 00020e60: 63 74 69 6f 6e 28 65 29 7b 6c 65 74 20 74 3d 30 ction(e){let t=0 00020e70: 3b 66 75 6e 63 74 69 6f 6e 20 6e 28 29 7b 72 65 ;function n(){re 00020e80: 74 75 72 6e 20 65 5b 74 2b 2b 5d 3c 3c 38 7c 65 turn e[t++]<<8|e 00020e90: 5b 74 2b 2b 5d 7d 6c 65 74 20 72 3d 6e 28 29 2c [t++]}let r=n(), 00020ea0: 6f 3d 31 2c 69 3d 5b 30 2c 31 5d 3b 66 6f 72 28 o=1,i=[0,1];for( 00020eb0: 6c 65 74 20 65 3d 31 3b 65 3c 72 3b 65 2b 2b 29 let e=1;e<r;e++) 00020ec0: 69 2e 70 75 73 68 28 6f 2b 3d 6e 28 29 29 3b 6c i.push(o+=n());l 00020ed0: 65 74 20 61 3d 6e 28 29 2c 73 3d 74 3b 74 2b 3d et a=n(),s=t;t+= 00020ee0: 61 3b 6c 65 74 20 6c 3d 30 2c 63 3d 30 3b 66 75 a;let l=0,c=0;fu 00020ef0: 6e 63 74 69 6f 6e 20 75 28 29 7b 72 65 74 75 72 nction u(){retur 00020f00: 6e 20 30 3d 3d 6c 26 26 28 63 3d 63 3c 3c 38 7c n 0==l&&(c=c<<8| 00020f10: 65 5b 74 2b 2b 5d 2c 6c 3d 38 29 2c 63 3e 3e 2d e[t++],l=8),c>>- 00020f20: 2d 6c 26 31 7d 63 6f 6e 73 74 20 64 3d 4d 61 74 -l&1}const d=Mat 00020f30: 68 2e 70 6f 77 28 32 2c 33 31 29 2c 70 3d 64 3e h.pow(2,31),p=d> 00020f40: 3e 3e 31 2c 66 3d 70 3e 3e 31 2c 68 3d 64 2d 31 >>1,f=p>>1,h=d-1 00020f50: 3b 6c 65 74 20 6d 3d 30 3b 66 6f 72 28 6c 65 74 ;let m=0;for(let 00020f60: 20 65 3d 30 3b 65 3c 33 31 3b 65 2b 2b 29 6d 3d e=0;e<31;e++)m= 00020f70: 6d 3c 3c 31 7c 75 28 29 3b 6c 65 74 20 67 3d 5b m<<1|u();let g=[ 00020f80: 5d 2c 62 3d 30 2c 79 3d 64 3b 66 6f 72 28 3b 3b ],b=0,y=d;for(;; 00020f90: 29 7b 6c 65 74 20 65 3d 4d 61 74 68 2e 66 6c 6f ){let e=Math.flo 00020fa0: 6f 72 28 28 28 6d 2d 62 2b 31 29 2a 6f 2d 31 29 or(((m-b+1)*o-1) 00020fb0: 2f 79 29 2c 74 3d 30 2c 6e 3d 72 3b 66 6f 72 28 /y),t=0,n=r;for( 00020fc0: 3b 6e 2d 74 3e 31 3b 29 7b 6c 65 74 20 72 3d 74 ;n-t>1;){let r=t 00020fd0: 2b 6e 3e 3e 3e 31 3b 65 3c 69 5b 72 5d 3f 6e 3d +n>>>1;e<i[r]?n= 00020fe0: 72 3a 74 3d 72 7d 69 66 28 30 3d 3d 74 29 62 72 r:t=r}if(0==t)br 00020ff0: 65 61 6b 3b 67 2e 70 75 73 68 28 74 29 3b 6c 65 eak;g.push(t);le 00021000: 74 20 61 3d 62 2b 4d 61 74 68 2e 66 6c 6f 6f 72 t a=b+Math.floor 00021010: 28 79 2a 69 5b 74 5d 2f 6f 29 2c 73 3d 62 2b 4d (y*i[t]/o),s=b+M 00021020: 61 74 68 2e 66 6c 6f 6f 72 28 79 2a 69 5b 74 2b ath.floor(y*i[t+ 00021030: 31 5d 2f 6f 29 2d 31 3b 66 6f 72 28 3b 30 3d 3d 1]/o)-1;for(;0== 00021040: 28 28 61 5e 73 29 26 70 29 3b 29 6d 3d 6d 3c 3c ((a^s)&p);)m=m<< 00021050: 31 26 68 7c 75 28 29 2c 61 3d 61 3c 3c 31 26 68 1&h|u(),a=a<<1&h 00021060: 2c 73 3d 73 3c 3c 31 26 68 7c 31 3b 66 6f 72 28 ,s=s<<1&h|1;for( 00021070: 3b 61 26 7e 73 26 66 3b 29 6d 3d 6d 26 70 7c 6d ;a&~s&f;)m=m&p|m 00021080: 3c 3c 31 26 68 3e 3e 3e 31 7c 75 28 29 2c 61 3d <<1&h>>>1|u(),a= 00021090: 61 3c 3c 31 5e 70 2c 73 3d 28 73 5e 70 29 3c 3c a<<1^p,s=(s^p)<< 000210a0: 31 7c 70 7c 31 3b 62 3d 61 2c 79 3d 31 2b 73 2d 1|p|1;b=a,y=1+s- 000210b0: 61 7d 6c 65 74 20 76 3d 72 2d 34 3b 72 65 74 75 a}let v=r-4;retu 000210c0: 72 6e 20 67 2e 6d 61 70 28 28 74 3d 3e 7b 73 77 rn g.map((t=>{sw 000210d0: 69 74 63 68 28 74 2d 76 29 7b 63 61 73 65 20 33 itch(t-v){case 3 000210e0: 3a 72 65 74 75 72 6e 20 76 2b 36 35 37 39 32 2b :return v+65792+ 000210f0: 28 65 5b 73 2b 2b 5d 3c 3c 31 36 7c 65 5b 73 2b (e[s++]<<16|e[s+ 00021100: 2b 5d 3c 3c 38 7c 65 5b 73 2b 2b 5d 29 3b 63 61 +]<<8|e[s++]);ca 00021110: 73 65 20 32 3a 72 65 74 75 72 6e 20 76 2b 32 35 se 2:return v+25 00021120: 36 2b 28 65 5b 73 2b 2b 5d 3c 3c 38 7c 65 5b 73 6+(e[s++]<<8|e[s 00021130: 2b 2b 5d 29 3b 63 61 73 65 20 31 3a 72 65 74 75 ++]);case 1:retu 00021140: 72 6e 20 76 2b 65 5b 73 2b 2b 5d 3b 64 65 66 61 rn v+e[s++];defa 00021150: 75 6c 74 3a 72 65 74 75 72 6e 20 74 2d 31 7d 7d ult:return t-1}} 00021160: 29 29 7d 28 65 29 29 7d 66 75 6e 63 74 69 6f 6e ))}(e))}function 00021170: 20 56 69 28 65 29 7b 72 65 74 75 72 6e 20 31 26 Vi(e){return 1& 00021180: 65 3f 7e 65 3e 3e 31 3a 65 3e 3e 31 7d 66 75 6e e?~e>>1:e>>1}fun 00021190: 63 74 69 6f 6e 20 71 69 28 65 2c 74 29 7b 6c 65 ction qi(e,t){le 000211a0: 74 20 6e 3d 41 72 72 61 79 28 65 29 3b 66 6f 72 t n=Array(e);for 000211b0: 28 6c 65 74 20 72 3d 30 2c 6f 3d 2d 31 3b 72 3c (let r=0,o=-1;r< 000211c0: 65 3b 72 2b 2b 29 6e 5b 72 5d 3d 6f 2b 3d 31 2b e;r++)n[r]=o+=1+ 000211d0: 74 28 29 3b 72 65 74 75 72 6e 20 6e 7d 66 75 6e t();return n}fun 000211e0: 63 74 69 6f 6e 20 57 69 28 65 2c 74 29 7b 6c 65 ction Wi(e,t){le 000211f0: 74 20 6e 3d 41 72 72 61 79 28 65 29 3b 66 6f 72 t n=Array(e);for 00021200: 28 6c 65 74 20 72 3d 30 2c 6f 3d 30 3b 72 3c 65 (let r=0,o=0;r<e 00021210: 3b 72 2b 2b 29 6e 5b 72 5d 3d 6f 2b 3d 56 69 28 ;r++)n[r]=o+=Vi( 00021220: 74 28 29 29 3b 72 65 74 75 72 6e 20 6e 7d 66 75 t());return n}fu 00021230: 6e 63 74 69 6f 6e 20 4b 69 28 65 2c 74 29 7b 6c nction Ki(e,t){l 00021240: 65 74 20 6e 3d 71 69 28 65 28 29 2c 65 29 2c 72 et n=qi(e(),e),r 00021250: 3d 65 28 29 2c 6f 3d 71 69 28 72 2c 65 29 2c 69 =e(),o=qi(r,e),i 00021260: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 6c =function(e,t){l 00021270: 65 74 20 6e 3d 41 72 72 61 79 28 65 29 3b 66 6f et n=Array(e);fo 00021280: 72 28 6c 65 74 20 72 3d 30 3b 72 3c 65 3b 72 2b r(let r=0;r<e;r+ 00021290: 2b 29 6e 5b 72 5d 3d 31 2b 74 28 29 3b 72 65 74 +)n[r]=1+t();ret 000212a0: 75 72 6e 20 6e 7d 28 72 2c 65 29 3b 66 6f 72 28 urn n}(r,e);for( 000212b0: 6c 65 74 20 65 3d 30 3b 65 3c 72 3b 65 2b 2b 29 let e=0;e<r;e++) 000212c0: 66 6f 72 28 6c 65 74 20 74 3d 30 3b 74 3c 69 5b for(let t=0;t<i[ 000212d0: 65 5d 3b 74 2b 2b 29 6e 2e 70 75 73 68 28 6f 5b e];t++)n.push(o[ 000212e0: 65 5d 2b 74 29 3b 72 65 74 75 72 6e 20 74 3f 6e e]+t);return t?n 000212f0: 2e 6d 61 70 28 28 65 3d 3e 74 5b 65 5d 29 29 3a .map((e=>t[e])): 00021300: 6e 7d 66 75 6e 63 74 69 6f 6e 20 59 69 28 65 2c n}function Yi(e, 00021310: 74 2c 6e 29 7b 6c 65 74 20 72 3d 41 72 72 61 79 t,n){let r=Array 00021320: 28 65 29 2e 66 69 6c 6c 28 76 6f 69 64 20 30 29 (e).fill(void 0) 00021330: 2e 6d 61 70 28 28 28 29 3d 3e 5b 5d 29 29 3b 66 .map((()=>[]));f 00021340: 6f 72 28 6c 65 74 20 6f 3d 30 3b 6f 3c 74 3b 6f or(let o=0;o<t;o 00021350: 2b 2b 29 57 69 28 65 2c 6e 29 2e 66 6f 72 45 61 ++)Wi(e,n).forEa 00021360: 63 68 28 28 28 65 2c 74 29 3d 3e 72 5b 74 5d 2e ch(((e,t)=>r[t]. 00021370: 70 75 73 68 28 65 29 29 29 3b 72 65 74 75 72 6e push(e)));return 00021380: 20 72 7d 66 75 6e 63 74 69 6f 6e 20 58 69 28 65 r}function Xi(e 00021390: 2c 74 29 7b 6c 65 74 20 6e 3d 31 2b 74 28 29 2c ,t){let n=1+t(), 000213a0: 72 3d 74 28 29 2c 6f 3d 66 75 6e 63 74 69 6f 6e r=t(),o=function 000213b0: 28 65 29 7b 6c 65 74 20 74 3d 5b 5d 3b 66 6f 72 (e){let t=[];for 000213c0: 28 3b 3b 29 7b 6c 65 74 20 6e 3d 65 28 29 3b 69 (;;){let n=e();i 000213d0: 66 28 30 3d 3d 6e 29 62 72 65 61 6b 3b 74 2e 70 f(0==n)break;t.p 000213e0: 75 73 68 28 6e 29 7d 72 65 74 75 72 6e 20 74 7d ush(n)}return t} 000213f0: 28 74 29 3b 72 65 74 75 72 6e 20 47 69 28 59 69 (t);return Gi(Yi 00021400: 28 6f 2e 6c 65 6e 67 74 68 2c 31 2b 65 2c 74 29 (o.length,1+e,t) 00021410: 2e 6d 61 70 28 28 28 65 2c 74 29 3d 3e 7b 63 6f .map(((e,t)=>{co 00021420: 6e 73 74 20 69 3d 65 5b 30 5d 2c 61 3d 65 2e 73 nst i=e[0],a=e.s 00021430: 6c 69 63 65 28 31 29 3b 72 65 74 75 72 6e 20 41 lice(1);return A 00021440: 72 72 61 79 28 6f 5b 74 5d 29 2e 66 69 6c 6c 28 rray(o[t]).fill( 00021450: 76 6f 69 64 20 30 29 2e 6d 61 70 28 28 28 65 2c void 0).map(((e, 00021460: 74 29 3d 3e 7b 6c 65 74 20 6f 3d 74 2a 72 3b 72 t)=>{let o=t*r;r 00021470: 65 74 75 72 6e 5b 69 2b 74 2a 6e 2c 61 2e 6d 61 eturn[i+t*n,a.ma 00021480: 70 28 28 65 3d 3e 65 2b 6f 29 29 5d 7d 29 29 7d p((e=>e+o))]}))} 00021490: 29 29 29 7d 66 75 6e 63 74 69 6f 6e 20 5a 69 28 )))}function Zi( 000214a0: 65 2c 74 29 7b 72 65 74 75 72 6e 20 59 69 28 31 e,t){return Yi(1 000214b0: 2b 74 28 29 2c 31 2b 65 2c 74 29 2e 6d 61 70 28 +t(),1+e,t).map( 000214c0: 28 65 3d 3e 5b 65 5b 30 5d 2c 65 2e 73 6c 69 63 (e=>[e[0],e.slic 000214d0: 65 28 31 29 5d 29 29 7d 63 6f 6e 73 74 20 51 69 e(1)]))}const Qi 000214e0: 3d 48 69 28 6a 69 28 22 41 45 51 46 32 41 4f 32 =Hi(ji("AEQF2AO2 000214f0: 44 45 73 41 32 77 49 72 41 47 73 42 52 41 42 78 DEsA2wIrAGsBRABx 00021500: 41 4e 38 41 5a 77 43 63 41 45 77 41 71 67 41 30 AN8AZwCcAEwAqgA0 00021510: 41 47 77 41 55 67 42 79 41 44 63 41 54 41 41 56 AGwAUgByADcATAAV 00021520: 41 46 59 41 49 51 41 79 41 43 45 41 4b 41 41 59 AFYAIQAyACEAKAAY 00021530: 41 46 67 41 47 77 41 6a 41 42 51 41 4d 41 41 6d AFgAGwAjABQAMAAm 00021540: 41 44 49 41 46 41 41 66 41 42 51 41 4b 77 41 54 ADIAFAAfABQAKwAT 00021550: 41 43 6f 41 44 67 41 62 41 41 38 41 48 51 41 59 ACoADgAbAA8AHQAY 00021560: 41 42 6f 41 47 51 41 78 41 44 67 41 4c 41 41 6f ABoAGQAxADgALAAo 00021570: 41 44 77 41 45 77 41 39 41 42 4d 41 47 67 41 52 ADwAEwA9ABMAGgAR 00021580: 41 41 34 41 44 77 41 57 41 42 4d 41 46 67 41 49 AA4ADwAWABMAFgAI 00021590: 41 41 38 41 48 67 51 58 42 59 4d 41 35 42 48 4a AA8AHgQXBYMA5BHJ 000215a0: 41 53 38 4a 74 41 59 6f 41 65 34 41 45 78 6f 7a AS8JtAYoAe4AExoz 000215b0: 69 30 55 41 48 32 31 74 41 61 4d 6e 42 54 38 43 i0UAH21tAaMnBT8C 000215c0: 72 6e 49 79 68 72 4d 44 68 52 67 44 79 67 49 42 rnIyhrMDhRgDygIB 000215d0: 55 41 45 48 63 6f 46 48 55 50 65 38 41 58 42 6a UAEHcoFHUPe8AXBj 000215e0: 41 65 77 43 6a 67 44 51 52 38 49 49 43 49 63 45 AewCjgDQR8IICIcE 000215f0: 63 51 4c 77 41 54 58 43 44 67 7a 76 48 77 42 6d cQLwATXCDgzvHwBm 00021600: 42 6f 48 4e 41 71 73 42 64 42 63 55 41 79 6b 67 BoHNAqsBdBcUAykg 00021610: 44 68 41 4d 53 68 73 6b 4d 67 6f 38 41 59 38 6a DhAMShskMgo8AY8j 00021620: 71 41 51 66 41 55 41 66 48 77 38 42 44 77 38 37 qAQfAUAfHw8BDw87 00021630: 4d 69 6f 47 6c 43 49 50 42 77 5a 43 61 34 45 4c MioGlCIPBwZCa4EL 00021640: 61 74 4d 41 41 4d 73 70 4a 56 67 73 44 6c 38 41 atMAAMspJVgsDl8A 00021650: 49 68 63 6b 53 67 38 58 41 48 64 76 54 77 42 63 IhckSg8XAHdvTwBc 00021660: 49 51 45 69 44 54 34 4f 50 68 55 71 62 79 45 43 IQEiDT4OPhUqbyEC 00021670: 41 45 6f 41 53 33 34 41 65 6a 38 59 62 78 38 33 AEoAS34Aej8Ybx83 00021680: 4a 67 54 2f 58 77 38 67 48 78 5a 2f 37 77 38 52 JgT/Xw8gHxZ/7w8R 00021690: 49 43 78 50 48 41 39 76 42 77 2b 50 66 77 38 50 ICxPHA9vBw+Pfw8P 000216a0: 48 77 41 50 46 76 2b 66 41 73 41 76 43 63 38 76 HwAPFv+fAsAvCc8v 000216b0: 45 72 38 69 76 77 44 2f 45 51 38 42 6f 6c 38 4f Er8ivwD/EQ8Bol8O 000216c0: 45 42 61 2f 41 37 38 68 72 77 41 50 43 55 38 76 EBa/A78hrwAPCU8v 000216d0: 45 53 4e 76 76 77 57 66 48 77 4e 66 41 56 6f 44 ESNvvwWfHwNfAVoD 000216e0: 48 72 2b 5a 41 41 45 44 33 34 59 61 41 64 4a 50 Hr+ZAAED34YaAdJP 000216f0: 41 4b 37 50 4c 77 53 45 67 44 4c 48 41 47 6f 31 AK7PLwSEgDLHAGo1 00021700: 50 7a 38 50 76 78 39 66 55 77 4d 72 70 62 38 4f Pz8Pvx9fUwMrpb8O 00021710: 2f 35 38 56 54 7a 41 50 49 42 6f 58 49 79 51 4a /58VTzAPIBoXIyQJ 00021720: 4e 46 38 68 70 77 49 56 41 54 38 59 47 41 55 41 NF8hpwIVAT8YGAUA 00021730: 44 44 4e 42 61 58 33 52 41 4d 6f 6d 4a 43 67 39 DDNBaX3RAMomJCg9 00021740: 45 68 55 65 41 32 39 4d 41 42 73 5a 42 54 4d 4e EhUeA29MABsZBTMN 00021750: 4a 69 70 6a 4f 68 63 31 39 67 63 49 44 52 38 62 JipjOhc19gcIDR8b 00021760: 42 77 51 48 45 67 67 43 57 69 36 44 49 67 4c 75 BwQHEggCWi6DIgLu 00021770: 41 51 59 41 2b 42 41 46 43 68 61 33 41 35 58 69 AQYA+BAFCha3A5Xi 00021780: 41 45 73 71 4d 37 55 46 46 67 46 4c 68 41 4d 6a AEsqM7UFFgFLhAMj 00021790: 46 54 4d 59 45 31 4b 6c 6e 77 37 34 6e 52 56 42 FTMYE1Klnw74nRVB 000217a0: 47 2f 41 53 43 6d 30 42 59 52 4e 2f 42 72 73 55 G/ASCm0BYRN/BrsU 000217b0: 33 56 6f 57 79 2b 53 30 76 56 38 4c 51 78 2b 76 3VoWy+S0vV8LQx+v 000217c0: 4e 38 67 46 32 41 43 32 41 4b 35 45 41 57 77 41 N8gF2AC2AK5EAWwA 000217d0: 70 67 59 44 4b 6d 41 41 72 6f 51 30 4e 44 51 30 pgYDKmAAroQ0NDQ0 000217e0: 41 54 2b 4f 43 67 37 77 41 41 49 48 52 41 62 70 AT+OCg7wAAIHRAbp 000217f0: 4e 67 56 63 42 56 30 41 50 54 41 35 42 66 62 50 NgVcBV0APTA5BfbP 00021800: 46 67 4d 4c 7a 63 59 4c 2f 51 71 71 41 38 32 65 FgMLzcYL/QqqA82e 00021810: 42 41 4c 4b 43 6a 51 43 6a 71 59 43 68 74 30 2f BALKCjQCjqYCht0/ 00021820: 6b 32 2b 4f 41 73 58 51 41 6f 50 33 41 53 54 4b k2+OAsXQAoP3ASTK 00021830: 44 67 44 77 36 41 43 4b 41 55 59 43 4d 70 49 4b DgDw6ACKAUYCMpIK 00021840: 4a 70 52 61 41 45 34 41 35 77 6f 6d 41 42 7a 5a JpRaAE4A5womABzZ 00021850: 76 73 30 52 45 45 4b 69 41 43 49 51 41 64 35 51 vs0REEKiACIQAd5Q 00021860: 64 41 45 43 41 6a 34 59 77 67 2f 77 47 71 59 32 dAECAj4Ywg/wGqY2 00021870: 41 56 67 41 59 41 44 59 76 41 6f 43 47 41 45 75 AVgAYADYvAoCGAEu 00021880: 62 41 30 67 76 41 59 32 41 4c 41 41 62 70 62 76 bA0gvAY2ALAAbpbv 00021890: 71 70 79 45 41 47 41 45 70 67 51 41 4a 67 41 47 qpyEAGAEpgQAJgAG 000218a0: 37 67 41 67 41 45 41 43 6d 67 68 55 46 77 43 71 7gAgAEACmghUFwCq 000218b0: 41 4d 70 41 49 4e 51 49 77 43 34 44 74 68 52 41 AMpAINQIwC4DthRA 000218c0: 41 50 63 79 63 4b 67 41 70 6f 49 64 41 42 77 42 APcycKgApoIdABwB 000218d0: 66 43 69 73 41 42 6f 41 54 77 42 71 41 53 49 41 fCisABoATwBqASIA 000218e0: 76 68 6e 53 42 50 38 61 48 2f 45 43 65 41 4b 58 vhnSBP8aH/ECeAKX 000218f0: 41 71 34 30 4e 6a 67 44 42 54 77 46 59 51 55 36 Aq40NjgDBTwFYQU6 00021900: 41 58 73 33 6f 41 42 67 41 44 34 58 4e 67 6d 63 AXs3oABgAD4XNgmc 00021910: 43 59 31 65 43 6c 35 74 49 46 5a 65 55 71 47 67 CY1eCl5tIFZeUqGg 00021920: 79 6f 4e 48 41 42 67 41 45 51 41 61 41 42 4e 77 yoNHABgAEQAaABNw 00021930: 57 51 41 6d 41 42 4d 41 54 50 4d 61 33 54 33 34 WQAmABMATPMa3T34 00021940: 41 44 6c 64 79 70 72 6d 4d 31 4d 32 58 6f 63 69 ADldyprmM1M2Xoci 00021950: 55 51 67 4c 7a 76 77 41 58 54 33 78 41 42 67 41 UQgLzvwAXT3xABgA 00021960: 45 51 41 61 41 42 4e 77 49 47 46 41 6e 41 44 44 EQAaABNwIGFAnADD 00021970: 38 41 41 67 41 44 34 42 42 4a 57 7a 61 43 63 49 8AAgAD4BBJWzaCcI 00021980: 41 49 45 42 46 4d 41 57 77 4b 6f 41 41 64 71 39 AIEBFMAWwKoAAdq9 00021990: 42 57 41 46 35 77 4c 51 70 41 4c 45 74 51 41 4b BWAF5wLQpALEtQAK 000219a0: 55 53 47 6b 61 68 52 34 47 6e 4a 4d 2b 67 73 41 USGkahR4GnJM+gsA 000219b0: 77 43 67 65 46 41 69 55 41 45 43 51 30 42 51 75 wCgeFAiUAECQ0BQu 000219c0: 4c 38 41 41 49 41 41 41 41 44 4b 65 49 68 65 63 L8AAIAAAADKeIhec 000219d0: 6c 76 46 71 51 41 41 45 54 72 34 69 41 4d 78 49 lvFqQAAETr4iAMxI 000219e0: 41 52 4d 67 41 4d 49 6f 48 68 51 49 41 6e 30 45 ARMgAMIoHhQIAn0E 000219f0: 30 70 44 51 46 43 34 48 68 7a 6e 6f 41 41 41 41 0pDQFC4HhznoAAAA 00021a00: 49 41 49 32 43 30 2f 34 6c 76 46 71 51 41 41 45 IAI2C0/4lvFqQAAE 00021a10: 54 67 42 4a 4a 77 59 43 41 79 34 41 42 67 59 41 TgBJJwYCAy4ABgYA 00021a20: 46 41 41 38 4d 42 4b 59 45 48 34 65 52 68 54 6b FAA8MBKYEH4eRhTk 00021a30: 41 6a 59 65 46 63 67 41 43 41 59 41 65 41 42 73 AjYeFcgACAYAeABs 00021a40: 4f 71 79 51 35 67 52 77 44 61 79 71 75 67 45 67 OqyQ5gRwDayqugEg 00021a50: 61 49 49 41 74 67 6f 41 43 67 44 6d 45 41 42 6d aIIAtgoACgDmEABm 00021a60: 42 41 57 47 6d 65 35 4f 42 4a 4a 41 32 6d 34 63 BAWGme5OBJJA2m4c 00021a70: 44 65 6f 41 6d 49 54 57 41 58 77 72 4d 67 4f 67 DeoAmITWAXwrMgOg 00021a80: 41 47 77 42 43 68 36 43 42 58 59 46 31 54 7a 67 AGwBCh6CBXYF1Tzg 00021a90: 31 77 4b 41 41 46 64 69 75 41 42 52 41 46 77 41 1wKAAFdiuABRAFwA 00021aa0: 58 51 42 73 41 47 38 41 64 67 42 72 41 48 59 41 XQBsAG8AdgBrAHYA 00021ab0: 62 77 43 45 41 48 45 77 66 78 51 42 56 45 35 54 bwCEAHEwfxQBVE5T 00021ac0: 45 51 41 44 56 46 68 54 42 77 42 44 41 4e 49 4c EQADVFhTBwBDANIL 00021ad0: 41 71 63 43 7a 67 4c 54 41 70 51 43 72 51 4c 36 AqcCzgLTApQCrQL6 00021ae0: 76 41 41 4d 41 4c 38 41 50 4c 68 4e 42 4b 6b 45 vAAMAL8APLhNBKkE 00021af0: 36 67 6c 47 4b 54 41 55 34 44 72 34 4e 32 45 59 6glGKTAU4Dr4N2EY 00021b00: 45 77 42 43 6b 41 42 4b 6b 38 72 48 41 62 59 42 EwBCkABKk8rHAbYB 00021b10: 6d 77 49 6f 41 69 55 34 41 6a 66 2f 41 71 34 43 mwIoAiU4Ajf/Aq4C 00021b20: 6f 77 43 41 41 4e 49 43 68 7a 67 61 4e 42 73 43 owCAANIChzgaNBsC 00021b30: 73 54 67 65 4f 44 63 46 58 72 67 43 6c 51 4b 64 sTgeODcFXrgClQKd 00021b40: 41 71 51 42 69 51 47 59 41 71 73 43 73 6a 54 73 AqQBiQGYAqsCsjTs 00021b50: 4e 48 73 66 4e 50 41 30 69 78 73 41 57 54 57 69 NHsfNPA0ixsAWTWi 00021b60: 4f 41 4d 46 50 44 51 53 4e 43 6b 32 42 44 5a 48 OAMFPDQSNCk2BDZH 00021b70: 4e 6f 77 32 54 54 5a 55 4e 68 6b 32 38 4a 6b 39 Now2TTZUNhk28Jk9 00021b80: 56 7a 49 33 51 6b 45 6f 41 6f 49 43 6f 51 4b 77 VzI3QkEoAoICoQKw 00021b90: 41 71 63 41 51 41 41 78 42 56 34 46 58 62 53 39 AqcAQAAxBV4FXbS9 00021ba0: 42 57 34 37 59 6b 49 58 50 31 63 69 55 71 73 30 BW47YkIXP1ciUqs0 00021bb0: 35 44 53 2f 46 77 41 42 55 77 4a 57 31 31 65 36 5DS/FwABUwJW11e6 00021bc0: 6e 48 75 59 5a 6d 53 68 2f 52 41 59 41 38 6f 4d nHuYZmSh/RAYA8oM 00021bd0: 4b 76 5a 38 4b 41 53 6f 55 41 4a 59 57 41 4a 36 KvZ8KASoUAJYWAJ6 00021be0: 49 4c 41 73 41 5a 53 6f 71 6a 70 67 41 30 6f 63 ILAsAZSoqjpgA0oc 00021bf0: 42 49 68 6d 44 67 44 57 41 41 61 77 52 44 51 6f BIhmDgDWAAawRDQo 00021c00: 41 41 63 75 41 6a 35 69 41 48 41 42 5a 69 52 32 AAcuAj5iAHABZiR2 00021c10: 41 49 67 69 48 67 43 61 41 55 36 38 41 43 78 75 AIgiHgCaAU68ACxu 00021c20: 48 41 47 30 79 67 4d 38 4d 69 5a 49 41 6c 67 42 HAG0ygM8MiZIAlgB 00021c30: 64 46 34 47 61 67 4a 71 41 50 5a 4f 48 41 4d 75 dF4GagJqAPZOHAMu 00021c40: 42 67 6f 41 54 6b 59 41 73 41 42 69 41 48 67 41 BgoATkYAsABiAHgA 00021c50: 4d 4c 6f 47 44 50 6a 30 48 70 4b 45 42 41 41 4f MLoGDPj0HpKEBAAO 00021c60: 4a 67 41 75 41 4c 67 67 54 41 48 57 41 65 41 4d JgAuALggTAHWAeAM 00021c70: 45 44 62 64 32 30 55 65 67 65 30 41 44 77 41 57 EDbd20Uege0ADwAW 00021c80: 41 44 6b 41 51 67 41 39 4f 48 64 2b 32 4d 55 51 ADkAQgA9OHd+2MUQ 00021c90: 5a 42 42 68 42 67 4e 4e 44 6b 78 78 50 78 55 51 ZBBhBgNNDkxxPxUQ 00021ca0: 41 72 45 50 71 77 76 71 45 52 6f 4d 31 69 72 51 ArEPqwvqERoM1irQ 00021cb0: 30 39 30 41 4e 4b 34 48 38 41 4e 59 42 2f 41 44 090ANK4H8ANYB/AD 00021cc0: 57 41 4e 59 42 2f 41 48 38 41 4e 59 42 2f 41 44 WANYB/AH8ANYB/AD 00021cd0: 57 41 4e 59 41 31 67 44 57 42 77 50 38 42 2f 59 WANYA1gDWBwP8B/Y 00021ce0: 78 52 42 6b 44 30 30 45 63 67 57 54 42 5a 41 45 xRBkD00EcgWTBZAE 00021cf0: 32 77 69 49 4a 6b 34 52 68 67 63 74 43 4e 64 55 2wiIJk4RhgctCNdU 00021d00: 45 6e 51 6a 48 45 77 44 53 67 45 42 49 79 70 4a EnQjHEwDSgEBIypJ 00021d10: 49 54 75 59 4d 78 41 6c 52 30 77 52 54 51 67 49 ITuYMxAlR0wRTQgI 00021d20: 41 54 5a 48 62 4b 78 39 50 51 4e 4d 4d 62 42 55 ATZHbKx9PQNMMbBU 00021d30: 2b 70 43 6e 41 39 41 79 56 44 6c 78 42 67 4d 65 +pCnA9AyVDlxBgMe 00021d40: 64 68 4b 6c 41 43 38 50 65 43 45 31 75 6b 36 44 dhKlAC8PeCE1uk6D 00021d50: 65 6b 78 78 70 51 70 51 54 37 4e 58 39 77 42 46 ekxxpQpQT7NX9wBF 00021d60: 42 67 41 53 71 77 41 53 35 67 42 4a 44 53 67 41 BgASqwAS5gBJDSgA 00021d70: 55 43 77 47 50 51 42 49 34 7a 54 59 41 42 4e 47 UCwGPQBI4zTYABNG 00021d80: 41 45 32 62 41 45 33 4b 41 45 78 64 47 41 42 4b AE2bAE3KAExdGABK 00021d90: 61 41 62 67 41 46 42 58 41 46 43 4f 41 46 42 4a aAbgAFBXAFCOAFBJ 00021da0: 41 42 49 32 53 57 64 4f 62 41 4c 44 4f 71 30 2f ABI2SWdObALDOq0/ 00021db0: 2f 51 6f 6d 43 5a 68 76 77 48 64 54 42 6b 49 51 /QomCZhvwHdTBkIQ 00021dc0: 48 43 65 6d 45 50 67 4d 4e 41 47 32 41 54 77 4e HCemEPgMNAG2ATwN 00021dd0: 37 6b 76 5a 42 50 49 47 50 41 54 4b 48 33 34 5a 7kvZBPIGPATKH34Z 00021de0: 47 67 2f 4f 6c 5a 30 49 70 69 33 65 44 4f 34 6d Gg/OlZ0Ipi3eDO4m 00021df0: 35 43 36 69 67 46 73 6a 39 69 71 45 42 65 35 4c 5C6igFsj9iqEBe5L 00021e00: 39 54 7a 65 43 30 35 52 61 51 39 61 43 32 59 4a 9TzeC05RaQ9aC2YJ 00021e10: 35 44 70 6b 67 55 38 44 49 67 45 4f 49 6f 77 4b 5DpkgU8DIgEOIowK 00021e20: 33 67 30 36 43 47 34 51 39 41 72 4b 62 41 33 6d 3g06CG4Q9ArKbA3m 00021e30: 45 55 59 48 4f 67 50 57 53 5a 73 41 70 67 63 43 EUYHOgPWSZsApgcC 00021e40: 43 78 49 64 4e 68 57 32 4a 68 46 69 72 51 73 4b CxIdNhW2JhFirQsK 00021e50: 4f 58 67 47 2f 42 72 33 43 35 41 6d 73 42 4d 71 OXgG/Br3C5AmsBMq 00021e60: 65 76 30 46 31 42 6f 69 42 6b 34 42 4b 68 73 41 ev0F1BoiBk4BKhsA 00021e70: 41 4e 41 75 36 49 57 78 57 6a 4a 63 48 55 39 67 ANAu6IWxWjJcHU9g 00021e80: 42 67 51 4c 4a 69 50 49 46 4b 6c 51 49 51 30 6d BgQLJiPIFKlQIQ0m 00021e90: 51 4c 68 34 53 52 6f 63 42 78 59 6c 71 67 4b 53 QLh4SRocBxYlqgKS 00021ea0: 51 33 46 4b 69 46 45 33 48 70 51 68 39 7a 77 2b Q3FKiFE3HpQh9zw+ 00021eb0: 44 57 63 75 46 46 46 39 42 2f 59 38 42 68 6c 51 DWcuFFF9B/Y8BhlQ 00021ec0: 43 34 49 38 6e 30 61 73 52 51 38 52 30 7a 36 4f C4I8n0asRQ8R0z6O 00021ed0: 50 55 6b 69 53 6b 77 74 42 44 61 41 4c 44 41 6e PUkiSkwtBDaALDAn 00021ee0: 6a 41 6e 51 44 34 59 4d 75 6e 78 7a 41 56 6f 4a jAnQD4YMunxzAVoJ 00021ef0: 49 67 6d 79 44 48 49 54 4d 68 45 59 4e 38 59 49 IgmyDHITMhEYN8YI 00021f00: 4f 67 63 61 4c 70 63 6c 4a 78 59 49 49 6b 61 57 OgcaLpclJxYIIkaW 00021f10: 59 4a 73 45 2b 4b 41 44 39 42 50 53 41 77 77 46 YJsE+KAD9BPSAwwF 00021f20: 51 41 6c 43 42 78 51 44 74 68 77 75 45 79 38 56 QAlCBxQDthwuEy8V 00021f30: 4b 67 55 4f 67 53 58 59 41 76 51 32 31 69 36 30 KgUOgSXYAvQ21i60 00021f40: 41 70 42 57 67 51 45 59 42 63 77 50 4a 68 2f 67 ApBWgQEYBcwPJh/g 00021f50: 45 46 46 48 34 51 37 71 43 4a 77 43 5a 67 4f 45 EFFH4Q7qCJwCZgOE 00021f60: 4a 65 77 41 4c 68 55 69 41 42 67 69 6e 41 68 45 JewALhUiABginAhE 00021f70: 5a 41 42 67 6a 39 6c 54 42 69 37 4d 43 4d 68 71 ZABgj9lTBi7MCMhq 00021f80: 62 53 4e 31 41 32 67 55 36 47 49 52 64 41 65 53 bSN1A2gU6GIRdAeS 00021f90: 44 6c 67 48 71 42 77 30 46 63 41 63 34 6e 44 4a DlgHqBw0FcAc4nDJ 00021fa0: 58 67 79 47 43 53 69 6b 73 41 6c 63 41 58 59 4a XgyGCSiksAlcAXYJ 00021fb0: 6d 67 46 67 42 4f 51 49 43 6a 56 63 6a 4b 45 67 mgFgBOQICjVcjKEg 00021fc0: 51 6d 64 55 69 31 6b 59 6e 43 42 69 51 55 42 64 QmdUi1kYnCBiQUBd 00021fd0: 2f 51 49 79 44 47 59 56 6f 45 53 2b 68 33 6b 43 /QIyDGYVoES+h3kC 00021fe0: 6a 41 39 73 45 68 77 42 4e 67 46 30 42 7a 6f 4e jA9sEhwBNgF0BzoN 00021ff0: 41 67 4a 34 45 65 34 52 62 42 43 57 43 4f 79 47 AgJ4Ee4RbBCWCOyG 00022000: 42 54 57 32 4d 2f 6b 36 4a 67 52 51 49 59 51 67 BTW2M/k6JgRQIYQg 00022010: 45 67 6f 6f 41 31 42 73 7a 77 73 6f 4a 76 6f 4d EgooA1BszwsoJvoM 00022020: 2b 57 6f 42 70 42 4a 6a 41 77 30 30 50 6e 66 76 +WoBpBJjAw00Pnfv 00022030: 5a 36 78 67 74 79 55 58 2f 67 63 61 4d 73 5a 42 Z6xgtyUX/gcaMsZB 00022040: 59 53 48 79 43 35 4e 50 7a 67 79 64 47 73 49 59 YSHyC5NPzgydGsIY 00022050: 51 31 51 76 47 65 55 48 77 41 50 30 47 76 51 6e Q1QvGeUHwAP0GvQn 00022060: 36 30 46 59 42 67 41 44 70 41 51 55 4f 6b 34 7a 60FYBgADpAQUOk4z 00022070: 37 77 53 2b 43 32 6f 49 6a 41 6c 41 41 45 6f 4f 7wS+C2oIjAlAAEoO 00022080: 70 42 67 48 32 42 68 72 43 6e 4b 4d 30 51 45 79 pBgH2BhrCnKM0QEy 00022090: 6a 41 47 34 6d 67 4e 59 6b 6f 51 43 63 4a 41 47 jAG4mgNYkoQCcJAG 000220a0: 4f 41 63 4d 41 47 67 4d 69 41 56 36 35 67 41 65 OAcMAGgMiAV65gAe 000220b0: 41 71 67 49 70 41 41 47 41 4e 41 44 57 41 41 36 AqgIpAAGANADWAA6 000220c0: 41 71 34 48 6e 67 41 61 41 49 5a 43 41 54 34 44 Aq4HngAaAIZCAT4D 000220d0: 4b 44 41 42 49 75 59 43 6b 41 4f 55 43 44 4c 4d KDABIuYCkAOUCDLM 000220e0: 41 5a 59 77 41 66 51 71 42 42 7a 45 44 42 59 41 AZYwAfQqBBzEDBYA 000220f0: 2b 44 68 75 53 77 4c 44 73 67 4b 41 61 32 61 6a +DhuSwLDsgKAa2aj 00022100: 42 64 35 5a 41 6f 38 43 53 6a 59 42 54 69 59 45 Bd5ZAo8CSjYBTiYE 00022110: 42 6b 39 49 55 67 4f 77 63 75 49 41 33 41 42 4d Bk9IUgOwcuIA3ABM 00022120: 42 68 54 67 53 41 45 57 72 45 76 4d 47 2b 52 45 BhTgSAEWrEvMG+RE 00022130: 41 65 42 77 4c 41 44 49 41 50 77 41 42 6a 59 48 AeBwLADIAPwABjYH 00022140: 42 6b 49 42 7a 67 48 30 62 67 43 34 41 57 41 4c BkIBzgH0bgC4AWAL 00022150: 4d 67 6d 6a 74 4c 59 42 54 75 6f 71 41 49 51 41 MgmjtLYBTuoqAIQA 00022160: 46 6d 77 42 32 41 4b 4b 41 4e 34 41 4e 67 43 41 FmwB2AKKAN4ANgCA 00022170: 38 67 46 55 41 45 34 46 57 76 6f 46 31 41 4a 51 8gFUAE4FWvoF1AJQ 00022180: 53 67 45 53 4d 68 6b 73 57 47 49 42 76 41 4d 67 SgESMhksWGIBvAMg 00022190: 41 54 51 42 44 67 42 36 42 73 79 4f 70 73 6f 49 ATQBDgB6BsyOpsoI 000221a0: 49 41 52 75 42 39 51 43 45 42 77 56 34 67 4c 76 IARuB9QCEBwV4gLv 000221b0: 4c 77 65 32 41 67 4d 69 34 42 50 4f 51 73 59 43 Lwe2AgMi4BPOQsYC 000221c0: 76 64 39 57 41 44 49 58 55 75 35 65 5a 77 71 6f vd9WADIXUu5eZwqo 000221d0: 43 71 64 65 61 41 43 30 59 54 51 48 4d 6e 4d 39 CqdeaAC0YTQHMnM9 000221e0: 55 51 41 50 48 36 6b 2b 79 41 64 79 2f 42 5a 49 UQAPH6k+yAdy/BZI 000221f0: 69 51 49 6d 53 77 42 51 35 67 42 51 51 7a 53 61 iQImSwBQ5gBQQzSa 00022200: 4e 54 46 57 53 54 59 42 70 77 47 71 4b 51 4b 33 NTFWSTYBpwGqKQK3 00022210: 38 41 46 74 71 77 42 49 2f 77 4b 33 37 67 4b 33 8AFtqwBI/wK37gK3 00022220: 72 51 4b 33 73 41 4b 36 32 38 30 43 30 67 4b 33 rQK3sAK6280C0gK3 00022230: 33 41 4b 33 7a 78 41 41 55 45 49 41 55 44 39 53 3AK3zxAAUEIAUD9S 00022240: 6b 6c 4b 44 41 72 65 6b 41 72 77 35 41 45 51 41 klKDArekArw5AEQA 00022250: 7a 41 48 43 4f 31 34 37 57 54 74 65 4f 31 6b 37 zAHCO147WTteO1k7 00022260: 58 6a 74 5a 4f 31 34 37 57 54 74 65 4f 31 6b 44 XjtZO147WTteO1kD 00022270: 6d 43 68 59 49 30 33 41 56 55 30 6f 4a 71 6b 4b mChYI03AVU0oJqkK 00022280: 62 56 39 47 59 65 77 4d 70 77 33 56 52 4d 6b 36 bV9GYewMpw3VRMk6 00022290: 53 68 50 63 59 46 4a 67 4d 78 50 4a 4c 62 67 55 ShPcYFJgMxPJLbgU 000222a0: 77 68 58 50 4a 56 63 5a 50 68 71 39 4a 77 59 6c whXPJVcZPhq9JwYl 000222b0: 35 56 55 4b 44 77 55 74 31 47 59 78 43 43 30 30 5VUKDwUt1GYxCC00 000222c0: 64 68 65 39 41 45 41 70 61 59 4e 43 59 34 63 65 dhe9AEApaYNCY4ce 000222d0: 4d 51 70 4d 48 4f 68 54 6b 6c 54 35 4c 52 77 41 MQpMHOhTklT5LRwA 000222e0: 73 6b 75 6a 4d 37 41 4e 72 52 73 57 52 45 45 46 skujM7ANrRsWREEF 000222f0: 53 48 58 75 59 69 73 57 44 77 6f 6a 41 6d 53 43 SHXuYisWDwojAmSC 00022300: 41 6d 4a 44 58 45 36 77 58 44 63 68 41 71 48 34 AmJDXE6wXDchAqH4 00022310: 41 6d 69 5a 41 6d 59 4b 41 70 2b 46 4f 42 77 4d AmiZAmYKAp+FOBwM 00022320: 41 6d 59 38 41 6d 59 6e 42 47 38 45 67 41 4e 2f AmY8AmYnBG8EgAN/ 00022330: 46 41 4e 2b 6b 7a 6b 48 4f 58 67 59 4f 59 4d 36 FAN+kzkHOXgYOYM6 00022340: 4a 43 51 43 62 42 34 43 4d 6a 63 34 43 77 4a 74 JCQCbB4CMjc4CwJt 00022350: 79 41 4a 74 72 2f 43 4c 41 44 52 6f 52 69 77 42 yAJtr/CLADRoRiwB 00022360: 61 41 44 66 41 4f 49 41 53 77 59 48 6d 51 79 4f aADfAOIASwYHmQyO 00022370: 41 50 38 4d 77 77 41 4f 74 67 4a 33 4d 41 4a 32 AP8MwwAOtgJ3MAJ2 00022380: 6f 30 41 43 65 55 78 45 41 6e 69 37 48 6c 33 63 o0ACeUxEAni7Hl3c 00022390: 52 61 39 47 39 41 4a 38 51 41 4a 36 79 51 4a 39 Ra9G9AJ8QAJ6yQJ9 000223a0: 43 67 4a 38 38 55 67 42 53 48 35 6b 4a 51 41 73 CgJ88UgBSH5kJQAs 000223b0: 46 6b 6c 5a 53 6c 77 57 47 45 72 4e 41 74 45 43 FklZSlwWGErNAtEC 000223c0: 41 74 44 4e 53 79 67 44 69 46 41 44 68 2b 64 45 AtDNSygDiFADh+dE 000223d0: 78 70 45 7a 41 76 4b 69 58 51 51 44 41 36 39 4c xpEzAvKiXQQDA69L 000223e0: 7a 30 77 75 4a 67 54 51 54 55 31 4e 73 41 4b 4c z0wuJgTQTU1NsAKL 000223f0: 51 41 4b 4b 32 63 49 63 43 42 35 45 61 41 61 34 QAKK2cIcCB5EaAa4 00022400: 41 6f 34 34 41 6f 35 64 51 5a 69 43 41 6f 37 61 Ao44Ao5dQZiCAo7a 00022410: 41 6f 35 64 65 56 47 31 55 7a 59 4c 55 74 56 55 Ao5deVG1UzYLUtVU 00022420: 68 67 4b 54 2f 41 4b 54 44 51 44 71 41 42 31 56 hgKT/AKTDQDqAB1V 00022430: 48 31 57 77 56 64 45 48 4c 42 77 70 6c 6f 63 79 H1WwVdEHLBwplocy 00022440: 34 6e 68 6e 52 54 77 36 41 70 65 67 41 75 2b 7a 4nhnRTw6ApegAu+z 00022450: 57 43 4b 70 41 46 6f 6d 41 70 61 51 41 70 5a 39 WCKpAFomApaQApZ9 00022460: 6e 51 43 71 57 61 31 61 43 6f 4a 4f 41 44 77 43 nQCqWa1aCoJOADwC 00022470: 6c 72 59 43 6c 6b 39 63 52 56 7a 53 41 70 6e 4d lrYClk9cRVzSApnM 00022480: 41 70 6c 6c 58 4d 74 64 43 42 6f 43 6e 4a 77 35 ApllXMtdCBoCnJw5 00022490: 77 7a 71 65 41 70 77 58 41 70 2b 63 41 70 36 35 wzqeApwXAp+cAp65 000224a0: 69 77 41 65 45 44 49 72 45 41 4b 64 38 67 4b 65 iwAeEDIrEAKd8gKe 000224b0: 6b 77 43 32 50 6d 45 31 59 66 41 43 6e 74 51 43 kwC2PmE1YfACntQC 000224c0: 6f 47 38 42 71 67 4b 65 6f 43 41 43 6e 6b 2b 6d oG8BqgKeoCACnk+m 000224d0: 59 38 6c 6b 4b 43 59 73 41 69 65 77 41 69 5a 2f Y8lkKCYsAiewAiZ/ 000224e0: 41 71 44 38 41 71 42 4e 32 41 4b 6d 4d 41 4b 6c AqD8AqBN2AKmMAKl 000224f0: 7a 77 4b 6f 41 41 42 2b 41 71 66 7a 61 48 31 6f zwKoAAB+AqfzaH1o 00022500: 73 67 41 45 53 6d 6f 64 61 74 49 43 72 4f 51 43 sgAESmodatICrOQC 00022510: 72 4b 38 43 72 57 67 43 72 51 4d 43 56 78 34 43 rK8CrWgCrQMCVx4C 00022520: 56 64 30 43 73 65 4c 59 41 78 39 50 62 4a 67 43 Vd0CseLYAx9PbJgC 00022530: 73 72 34 4f 41 72 4c 70 47 47 7a 68 62 57 52 74 sr4OArLpGGzhbWRt 00022540: 53 57 41 44 4a 63 34 43 74 6c 30 38 51 47 36 52 SWADJc4Ctl08QG6R 00022550: 41 79 6c 47 41 72 68 66 41 72 6c 49 46 67 4b 35 AylGArhfArlIFgK5 00022560: 4b 33 68 77 4e 33 44 69 41 72 30 61 41 79 32 7a K3hwN3DiAr0aAy2z 00022570: 41 7a 49 53 41 72 36 4a 63 67 4d 44 4d 33 49 43 AzISAr6JcgMDM3IC 00022580: 76 68 74 7a 49 33 4e 51 41 73 50 4d 41 73 4d 46 vhtzI3NQAsPMAsMF 00022590: 63 34 4e 30 54 44 5a 47 64 4f 45 44 50 4b 67 44 c4N0TDZGdOEDPKgD 000225a0: 50 4a 73 44 50 63 41 43 78 58 30 43 78 6b 67 43 PJsDPcACxX0CxkgC 000225b0: 78 68 47 4b 41 73 68 71 55 67 4c 49 52 51 4c 4a xhGKAshqUgLIRQLJ 000225c0: 55 41 4c 4a 4c 77 4a 6b 6e 67 4c 64 30 33 68 36 UALJLwJkngLd03h6 000225d0: 59 6e 69 76 65 53 5a 4c 30 51 4d 59 70 47 63 44 YniveSZL0QMYpGcD 000225e0: 41 6d 48 31 47 66 53 56 4a 58 73 4d 58 70 4e 65 AmH1GfSVJXsMXpNe 000225f0: 76 42 49 43 7a 32 77 43 7a 32 30 77 54 46 54 54 vBICz2wCz20wTFTT 00022600: 39 42 53 67 41 4d 65 75 41 73 39 30 41 53 72 72 9BSgAMeuAs90ASrr 00022610: 41 30 34 54 66 6b 77 47 41 74 77 6f 41 74 75 4c A04TfkwGAtwoAtuL 00022620: 41 74 4a 51 41 31 4a 64 41 31 4e 67 41 51 49 44 AtJQA1JdA1NgAQID 00022630: 56 59 32 41 69 6b 41 42 7a 42 66 75 59 55 5a 32 VY2AikABzBfuYUZ2 00022640: 41 49 4c 50 67 34 34 43 32 73 67 43 32 64 2b 45 AILPg44C2sgC2d+E 00022650: 45 59 52 4b 70 7a 30 44 68 71 59 41 4d 41 4e 6b EYRKpz0DhqYAMANk 00022660: 44 34 5a 79 57 76 6f 41 56 67 4c 66 5a 67 4c 65 D4ZyWvoAVgLfZgLe 00022670: 75 58 52 34 41 75 49 77 37 52 55 42 38 7a 45 6f uXR4AuIw7RUB8zEo 00022680: 41 66 53 63 41 66 4c 54 69 41 4c 72 39 41 4c 70 AfScAfLTiALr9ALp 00022690: 63 58 6f 41 41 75 72 36 41 75 72 6c 41 50 70 49 cXoAAur6AurlAPpI 000226a0: 41 62 6f 43 37 6f 6f 43 36 35 32 57 71 35 63 45 AboC7ooC652Wq5cE 000226b0: 41 75 35 41 41 34 58 68 6d 48 70 77 34 58 47 69 Au5AA4XhmHpw4XGi 000226c0: 41 76 4d 45 41 47 6f 44 6a 68 65 5a 6c 41 4c 33 AvMEAGoDjheZlAL3 000226d0: 46 41 4f 52 62 77 4f 53 69 41 4c 33 6d 51 4c 35 FAORbwOSiAL3mQL5 000226e0: 32 67 4c 34 5a 35 6f 64 6d 71 79 38 4f 4a 73 66 2gL4Z5odmqy8OJsf 000226f0: 41 35 32 45 41 76 37 37 41 52 77 41 4f 70 38 64 A52EAv77ARwAOp8d 00022700: 6e 37 51 44 42 59 34 44 70 6d 73 44 70 74 6f 41 n7QDBY4DpmsDptoA 00022710: 30 73 59 44 42 6d 75 68 69 61 49 47 43 67 4d 4d 0sYDBmuhiaIGCgMM 00022720: 53 67 46 67 41 53 41 43 74 67 4e 47 41 4a 77 45 SgFgASACtgNGAJwE 00022730: 67 4c 70 6f 42 67 43 38 42 47 7a 41 45 6f 77 63 gLpoBgC8BGzAEowc 00022740: 67 67 43 45 44 43 36 6b 64 6a 6f 41 4a 41 4d 30 ggCEDC6kdjoAJAM0 00022750: 43 35 49 4b 52 6f 41 42 5a 43 67 69 41 49 7a 77 C5IKRoABZCgiAIzw 00022760: 33 41 59 42 4c 41 43 6b 66 6e 67 39 6f 67 69 67 3AYBLACkfng9ogig 00022770: 6b 67 4e 6d 57 41 4e 36 41 45 51 43 76 72 6b 45 kgNmWAN6AEQCvrkE 00022780: 56 71 54 47 41 77 43 73 42 52 62 41 41 2b 34 69 VqTGAwCsBRbAA+4i 00022790: 51 6b 4d 43 48 52 30 37 32 6a 49 32 50 54 62 55 QkMCHR072jI2PTbU 000227a0: 4e 73 6b 32 52 6a 59 35 4e 76 41 32 33 54 5a 4b Nsk2RjY5NvA23TZK 000227b0: 4e 69 55 33 45 44 63 5a 4e 35 49 2b 52 54 78 44 NiU3EDcZN5I+RTxD 000227c0: 52 54 42 43 4a 6b 4b 35 56 42 59 4b 46 68 5a 66 RTBCJkK5VBYKFhZf 000227d0: 77 51 43 57 79 67 55 33 41 4a 42 52 48 70 75 2b wQCWygU3AJBRHpu+ 000227e0: 4f 79 74 67 4e 78 61 36 31 41 34 30 47 4d 73 59 OytgNxa61A40GMsY 000227f0: 6a 73 6e 37 42 56 77 46 58 51 56 63 42 56 30 46 jsn7BVwFXQVcBV0F 00022800: 61 41 56 64 42 56 77 46 58 51 56 63 42 56 30 46 aAVdBVwFXQVcBV0F 00022810: 58 41 56 64 42 56 77 46 58 55 73 61 43 4e 79 4b XAVdBVwFXUsaCNyK 00022820: 41 4b 34 41 41 51 55 48 42 77 4b 55 37 6f 49 43 AK4AAQUHBwKU7oIC 00022830: 6f 57 31 65 37 6a 41 45 7a 67 50 78 41 2b 59 44 oW1e7jAEzgPxA+YD 00022840: 77 67 43 6b 42 46 44 41 77 41 44 41 42 4b 7a 41 wgCkBFDAwADABKzA 00022850: 41 4f 78 46 4c 68 69 74 41 31 55 46 54 44 65 79 AOxFLhitA1UFTDey 00022860: 50 6b 4d 2b 62 6a 35 31 51 6b 52 43 75 77 54 51 PkM+bj51QkRCuwTQ 00022870: 57 57 51 38 58 2b 30 41 57 42 59 7a 73 41 43 4e WWQ8X+0AWBYzsACN 00022880: 41 38 78 77 7a 41 47 6d 37 45 5a 2f 51 69 73 6f A8xwzAGm7EZ/Qiso 00022890: 43 54 41 62 4c 44 73 36 66 6e 4c 66 62 38 48 32 CTAbLDs6fnLfb8H2 000228a0: 47 63 63 73 62 67 46 77 31 33 4d 31 48 41 56 6b GccsbgFw13M1HAVk 000228b0: 42 57 2f 4a 78 73 6d 39 43 4e 52 4f 38 45 38 46 BW/Jxsm9CNRO8E8F 000228c0: 44 44 30 46 42 51 77 39 46 6b 63 43 6c 4f 59 43 DD0FBQw9FkcClOYC 000228d0: 6f 4d 46 65 67 70 44 66 41 44 67 63 4d 69 41 32 oMFegpDfADgcMiA2 000228e0: 41 4a 51 41 43 42 38 41 73 69 67 4b 41 49 7a 49 AJQACB8AsigKAIzI 000228f0: 45 41 4a 4b 65 42 49 41 70 59 35 79 50 5a 51 49 EAJKeBIApY5yPZQI 00022900: 41 4b 51 69 48 62 34 66 76 6a 35 42 4b 53 52 50 AKQiHb4fvj5BKSRP 00022910: 51 72 5a 43 4f 7a 30 6f 58 79 78 67 4f 79 77 66 QrZCOz0oXyxgOywf 00022920: 4b 41 6e 47 62 67 4d 43 6c 51 61 43 41 6b 49 4c KAnGbgMClQaCAkIL 00022930: 58 67 64 65 43 44 39 49 49 47 55 67 51 6a 35 66 XgdeCD9IIGUgQj5f 00022940: 50 6f 59 2b 64 54 35 32 41 6f 35 43 4d 30 64 41 PoY+dT52Ao5CM0dA 00022950: 58 39 42 54 56 47 39 53 44 7a 46 77 57 54 51 41 X9BTVG9SDzFwWTQA 00022960: 62 78 42 7a 4a 46 2f 6c 4f 45 49 51 51 67 6c 43 bxBzJF/lOEIQQglC 00022970: 43 6b 4b 4a 49 41 6c 73 35 41 63 43 6c 51 49 43 CkKJIAls5AcClQIC 00022980: 6f 4b 50 4d 4f 44 45 46 78 68 69 36 4b 53 41 62 oKPMODEFxhi6KSAb 00022990: 69 79 66 49 52 72 4d 6a 74 43 67 64 57 43 41 6b iyfIRrMjtCgdWCAk 000229a0: 50 6c 46 42 49 69 74 43 73 45 4a 52 7a 41 62 4d PlFBIitCsEJRzAbM 000229b0: 41 56 2f 4f 45 79 51 7a 44 67 30 4f 41 51 51 45 AV/OEyQzDg0OAQQE 000229c0: 4a 33 36 69 33 32 38 2f 4d 6b 39 41 79 62 44 4a J36i328/Mk9AybDJ 000229d0: 73 51 6c 71 33 74 44 52 41 70 55 4b 41 6b 46 7a sQlq3tDRApUKAkFz 000229e0: 58 66 31 64 2f 6a 39 75 41 4c 59 50 36 68 43 6f Xf1d/j9uALYP6hCo 000229f0: 46 67 43 54 47 44 38 6b 50 73 46 4b 51 69 6f 62 FgCTGD8kPsFKQiob 00022a00: 72 6d 30 2b 7a 6a 30 4b 53 44 38 6b 50 6e 56 43 rm0+zj0KSD8kPnVC 00022a10: 52 42 77 4d 44 79 4a 52 54 48 46 67 4d 54 4a 61 RBwMDyJRTHFgMTJa 00022a20: 35 72 77 58 51 69 51 32 59 66 49 2f 4a 44 37 42 5rwXQiQ2YfI/JD7B 00022a30: 4d 45 4a 45 48 47 49 4e 54 77 34 54 4f 46 6c 49 MEJEHGINTw4TOFlI 00022a40: 52 7a 77 4a 4f 30 69 63 4d 51 70 79 50 79 51 2b RzwJO0icMQpyPyQ+ 00022a50: 77 7a 4a 43 52 42 76 36 44 56 67 6e 4b 42 30 31 wzJCRBv6DVgnKB01 00022a60: 4e 67 55 4b 6a 32 62 77 59 7a 4d 71 43 6f 42 6b NgUKj2bwYzMqCoBk 00022a70: 7a 6e 42 67 45 46 2b 7a 59 44 49 6f 63 77 52 49 znBgEF+zYDIocwRI 00022a80: 58 2b 4e 67 48 6a 34 48 49 43 4e 66 68 32 43 34 X+NgHj4HICNfh2C4 00022a90: 43 77 64 77 46 57 70 54 47 2f 6c 67 55 68 59 47 CwdwFWpTG/lgUhYG 00022aa0: 41 77 52 66 76 32 54 73 38 6d 41 61 58 7a 56 67 AwRfv2Ts8mAaXzVg 00022ab0: 6d 6c 2f 58 59 49 4a 66 75 57 43 34 48 49 31 67 ml/XYIJfuWC4HI1g 00022ac0: 55 46 39 70 59 4a 5a 67 4d 52 36 69 6c 51 48 4d UF9pYJZgMR6ilQHM 00022ad0: 41 4f 77 4c 41 6c 44 52 65 66 43 30 69 6e 34 41 AOwLAlDRefC0in4A 00022ae0: 58 41 45 4a 41 36 50 6a 43 77 63 30 49 61 6d 4f XAEJA6PjCwc0IamO 00022af0: 41 4e 4d 4d 43 41 45 43 52 51 44 46 4e 52 54 5a ANMMCAECRQDFNRTZ 00022b00: 42 67 64 2b 43 77 51 6c 52 41 2b 72 36 2b 67 4c Bgd+CwQlRA+r6+gL 00022b10: 42 44 45 46 42 6e 77 55 42 58 67 4b 41 54 49 41 BDEFBnwUBXgKATIA 00022b20: 72 77 41 47 52 41 41 48 41 33 63 44 64 41 4e 32 rwAGRAAHA3cDdAN2 00022b30: 41 33 6b 44 64 77 4e 39 41 33 6f 44 64 51 4e 37 A3kDdwN9A3oDdQN7 00022b40: 41 33 30 44 66 41 4e 34 41 33 6f 44 66 51 41 59 A30DfAN4A3oDfQAY 00022b50: 45 41 41 6c 41 74 59 41 53 77 4d 41 55 41 46 73 EAAlAtYASwMAUAFs 00022b60: 41 48 63 4b 41 48 63 41 6d 67 42 33 41 48 55 41 AHcKAHcAmgB3AHUA 00022b70: 64 51 42 32 41 48 56 75 38 55 67 41 79 67 44 41 dQB2AHVu8UgAygDA 00022b80: 41 48 63 41 64 51 42 31 41 48 59 41 64 51 41 4c AHcAdQB1AHYAdQAL 00022b90: 43 67 42 33 41 41 73 41 6d 67 42 33 41 41 73 43 CgB3AAsAmgB3AAsC 00022ba0: 4f 77 42 33 41 41 74 75 38 55 67 41 79 67 44 41 OwB3AAtu8UgAygDA 00022bb0: 41 48 67 4b 41 4a 6f 41 64 77 42 33 41 48 55 41 AHgKAJoAdwB3AHUA 00022bc0: 64 51 42 32 41 48 55 41 65 41 42 31 41 48 55 41 dQB2AHUAeAB1AHUA 00022bd0: 64 67 42 31 62 76 46 49 41 4d 6f 41 77 41 41 4c dgB1bvFIAMoAwAAL 00022be0: 43 67 43 61 41 48 63 41 43 77 42 33 41 41 73 43 CgCaAHcACwB3AAsC 00022bf0: 4f 77 42 33 41 41 74 75 38 55 67 41 79 67 44 41 OwB3AAtu8UgAygDA 00022c00: 41 48 34 41 43 77 47 67 41 4c 63 42 70 77 43 36 AH4ACwGgALcBpwC6 00022c10: 41 61 68 64 41 75 30 43 4f 77 4c 74 62 76 46 49 AahdAu0COwLtbvFI 00022c20: 41 4d 6f 41 77 41 41 4c 43 67 43 61 41 75 30 41 AMoAwAALCgCaAu0A 00022c30: 43 77 4c 74 41 41 73 43 4f 77 4c 74 41 41 74 75 CwLtAAsCOwLtAAtu 00022c40: 38 55 67 41 79 67 44 41 41 32 34 41 43 77 4e 76 8UgAygDAA24ACwNv 00022c50: 41 41 75 30 56 73 51 41 41 7a 73 41 41 42 43 6b AAu0VsQAAzsAABCk 00022c60: 6a 55 49 70 41 41 73 41 55 49 75 73 4f 67 67 57 jUIpAAsAUIusOggW 00022c70: 63 67 4d 65 42 78 56 73 47 77 4c 36 37 55 2f 32 cgMeBxVsGwL67U/2 00022c80: 48 6c 7a 6d 57 4f 45 65 4f 67 41 4c 41 53 76 75 HlzmWOEeOgALASvu 00022c90: 41 41 73 65 41 66 70 4b 55 70 6e 70 47 67 59 4a AAseAfpKUpnpGgYJ 00022ca0: 44 43 49 5a 4d 36 59 79 41 52 55 45 39 54 68 71 DCIZM6YyARUE9Thq 00022cb0: 41 44 35 69 58 51 67 6e 41 4a 59 4a 50 6e 4f 7a AD5iXQgnAJYJPnOz 00022cc0: 77 30 5a 41 45 5a 78 45 4b 73 49 41 6b 41 34 44 w0ZAEZxEKsIAkA4D 00022cd0: 68 41 48 6e 54 41 49 44 78 78 55 44 4b 30 6c 78 hAHnTAIDxxUDK0lx 00022ce0: 43 51 6c 50 59 67 49 76 49 51 56 59 4a 51 42 56 CQlPYgIvIQVYJQBV 00022cf0: 71 45 31 47 61 6b 55 41 4b 47 59 69 44 54 6f 53 qE1GakUAKGYiDToS 00022d00: 42 41 31 45 74 41 59 41 58 51 4a 59 41 49 46 38 BA1EtAYAXQJYAIF8 00022d10: 47 67 4d 48 52 79 41 41 49 41 6a 4f 65 39 59 6e GgMHRyAAIAjOe9Yn 00022d20: 63 65 6b 52 41 41 30 4b 41 43 55 72 6a 77 45 37 cekRAA0KACUrjwE7 00022d30: 41 79 63 36 41 41 59 57 41 71 61 69 4b 47 34 4d Ayc6AAYWAqaiKG4M 00022d40: 63 45 63 71 41 4e 6f 4e 33 2b 4d 67 39 54 77 43 cEcqANoN3+Mg9TwC 00022d50: 42 68 49 6b 75 43 6e 79 2b 4a 77 55 51 32 39 4c BhIkuCny+JwUQ29L 00022d60: 30 30 38 4a 6c 75 52 78 75 33 4b 2b 6f 41 64 71 008JluRxu3K+oAdq 00022d70: 69 48 4f 71 46 48 30 41 47 35 53 55 49 66 55 4a iHOqFH0AG5SUIfUJ 00022d80: 35 53 78 43 47 66 78 64 69 70 52 7a 71 54 6d 54 5SxCGfxdipRzqTmT 00022d90: 34 56 35 5a 62 2b 72 31 55 6f 34 56 6d 2b 4e 71 4V5Zb+r1Uo4Vm+Nq 00022da0: 53 53 45 6c 32 6d 4e 76 52 32 4a 68 49 61 38 53 SSEl2mNvR2JhIa8S 00022db0: 70 59 4f 36 6e 74 64 77 46 58 48 43 57 54 43 4b pYO6ntdwFXHCWTCK 00022dc0: 38 66 32 2b 48 78 6f 37 75 69 47 33 64 72 44 79 8f2+Hxo7uiG3drDy 00022dd0: 63 41 75 4b 49 4d 50 35 62 68 69 30 36 41 43 6e cAuKIMP5bhi06ACn 00022de0: 71 41 72 48 31 72 7a 34 52 71 67 2f 2f 6c 6d 36 qArH1rz4Rqg//lm6 00022df0: 53 67 4a 47 45 56 62 46 39 78 4a 48 49 53 61 52 SgJGEVbF9xJHISaR 00022e00: 36 48 78 71 78 53 6e 6b 77 36 73 68 44 6e 65 6c 6HxqxSnkw6shDnel 00022e10: 48 4b 4e 45 66 47 55 58 53 4a 52 4a 31 47 63 73 HKNEfGUXSJRJ1Gcs 00022e20: 6d 74 4a 77 32 35 78 72 5a 4d 44 4b 39 67 58 53 mtJw25xrZMDK9gXS 00022e30: 6d 31 2f 59 4d 6b 64 58 34 2f 36 4e 4b 59 4f 64 m1/YMkdX4/6NKYOd 00022e40: 74 6b 2f 4e 51 33 2f 4e 6e 44 41 53 6a 54 63 33 tk/NQ3/NnDASjTc3 00022e50: 66 50 6a 49 6a 57 2f 35 73 56 66 56 4f 62 58 32 fPjIjW/5sVfVObX2 00022e60: 6f 54 44 57 6b 72 31 64 46 39 66 33 6b 78 42 73 oTDWkr1dF9f3kxBs 00022e70: 44 33 2f 33 61 51 4f 38 68 50 66 52 7a 2b 65 30 D3/3aQO8hPfRz+e0 00022e80: 75 45 69 4a 71 74 31 31 36 31 67 72 69 75 37 67 uEiJqt1161griu7g 00022e90: 7a 38 68 44 44 77 74 70 79 2b 46 2b 42 57 74 65 z8hDDwtpy+F+BWte 00022ea0: 66 6e 4b 48 5a 50 41 78 63 5a 6f 57 62 6e 7a 6e fnKHZPAxcZoWbnzn 00022eb0: 68 4a 70 79 30 65 38 34 32 6a 33 36 62 63 4e 7a hJpy0e842j36bcNz 00022ec0: 47 6e 49 45 75 73 67 47 58 30 61 38 5a 78 73 6e GnIEusgGX0a8Zxsn 00022ed0: 6a 63 53 73 50 44 5a 30 39 79 5a 33 36 66 43 51 jcSsPDZ09yZ36fCQ 00022ee0: 62 72 69 48 65 51 37 32 4a 52 4d 49 4c 4e 6c 36 briHeQ72JRMILNl6 00022ef0: 65 50 50 66 32 48 57 6f 56 77 67 57 41 6d 31 66 ePPf2HWoVwgWAm1f 00022f00: 62 33 56 32 73 41 59 30 2b 42 36 72 41 58 71 53 b3V2sAY0+B6rAXqS 00022f10: 77 50 42 67 73 65 56 6d 6f 71 73 42 54 53 72 6d wPBgseVmoqsBTSrm 00022f20: 39 31 2b 58 61 73 4d 59 59 79 53 49 38 65 65 52 91+XasMYYySI8eeR 00022f30: 78 48 33 5a 76 48 6b 4d 7a 33 42 51 35 61 4a 33 xH3ZvHkMz3BQ5aJ3 00022f40: 69 55 56 62 59 50 4e 4d 33 2f 37 65 6d 52 74 6a iUVbYPNM3/7emRtj 00022f50: 6c 73 4d 67 76 2f 39 56 79 54 73 79 74 2f 6d 4b lsMgv/9VyTsyt/mK 00022f60: 2b 38 66 67 57 65 54 36 53 6f 46 61 63 6c 58 71 +8fgWeT6SoFaclXq 00022f70: 6e 34 32 64 41 49 73 76 41 61 72 46 35 76 4e 4e n42dAIsvAarF5vNN 00022f80: 57 48 7a 4b 53 6b 4b 51 2f 38 48 66 6b 35 5a 57 WHzKSkKQ/8Hfk5ZW 00022f90: 4b 37 72 39 79 6c 69 4f 73 6f 6f 79 42 6a 52 68 K7r9yliOsooyBjRh 00022fa0: 66 6b 48 50 34 51 32 44 6b 57 58 51 69 36 46 47 fkHP4Q2DkWXQi6FG 00022fb0: 2f 39 72 2f 49 77 62 6d 6b 56 35 54 37 4a 53 6f /9r/IwbmkV5T7JSo 00022fc0: 70 48 4b 6e 31 70 4a 77 6d 39 74 62 35 4f 74 30 pHKn1pJwm9tb5Ot0 00022fd0: 6f 79 4e 31 5a 32 6d 50 70 4b 58 48 54 78 78 32 oyN1Z2mPpKXHTxx2 00022fe0: 6e 6c 4b 30 38 66 4b 6b 31 68 45 59 41 38 57 67 nlK08fKk1hEYA8Wg 00022ff0: 56 56 57 4c 35 6c 67 78 30 69 54 76 2b 4b 64 6f VVWL5lgx0iTv+Kdo 00023000: 6a 4a 65 55 32 33 5a 44 6a 6d 69 75 62 58 4f 78 jJeU23ZDjmiubXOx 00023010: 56 58 4a 4b 4b 69 32 57 6a 75 68 32 48 4c 5a 4f VXJKKi2Wjuh2HLZO 00023020: 46 4c 69 53 43 37 54 6c 73 35 53 4d 68 34 66 2b FLiSC7Tls5SMh4f+ 00023030: 50 6a 36 78 55 53 72 4e 6a 46 71 4c 47 65 68 52 Pj6xUSrNjFqLGehR 00023040: 4e 42 38 6c 43 30 51 53 4c 4e 6d 6b 4a 4a 78 2f NB8lC0QSLNmkJJx/ 00023050: 77 53 47 33 4d 6e 6a 45 39 54 31 43 6b 50 77 4a wSG3MnjE9T1CkPwJ 00023060: 49 30 77 48 32 6c 66 7a 77 45 54 49 69 56 71 55 I0wH2lfzwETIiVqU 00023070: 78 67 30 64 66 75 35 71 33 39 47 74 2b 68 77 64 xg0dfu5q39Gt+hwd 00023080: 63 78 6b 68 68 4e 76 51 34 54 79 72 42 63 65 6f cxkhhNvQ4TyrBceo 00023090: 66 33 4d 68 73 2f 49 78 46 63 69 31 48 6d 48 72 f3Mhs/IxFci1HmHr 000230a0: 34 46 4d 5a 67 58 45 45 63 7a 50 69 47 43 78 30 4FMZgXEEczPiGCx0 000230b0: 48 52 77 7a 41 71 44 71 32 6a 39 41 56 6d 31 6b HRwzAqDq2j9AVm1k 000230c0: 77 4e 30 6d 52 56 4c 57 4c 79 6c 67 74 6f 50 4e wN0mRVLWLylgtoPN 000230d0: 61 70 46 35 63 59 34 59 31 77 4a 68 2f 65 30 42 apF5cY4Y1wJh/e0B 000230e0: 42 77 5a 6a 34 34 59 67 5a 72 44 4e 71 76 44 2f BwZj44YgZrDNqvD/ 000230f0: 39 48 76 37 47 46 59 64 55 51 65 44 4a 75 51 33 9Hv7GFYdUQeDJuQ3 00023100: 45 57 49 34 48 61 4b 71 61 76 55 31 58 6a 43 2f EWI4HaKqavU1XjC/ 00023110: 6e 34 31 6b 54 34 4c 37 39 6b 71 47 71 30 6b 4c n41kT4L79kqGq0kL 00023120: 68 64 54 5a 76 67 50 33 54 41 33 66 53 30 6f 7a hdTZvgP3TA3fS0oz 00023130: 56 7a 2b 35 70 69 5a 73 6f 4f 74 49 76 42 55 46 Vz+5piZsoOtIvBUF 00023140: 6f 4d 4b 62 4e 63 6d 42 4c 36 59 78 78 61 55 41 oMKbNcmBL6YxxaUA 00023150: 75 73 48 42 33 38 58 72 53 38 64 51 4d 6e 51 77 usHB38XrS8dQMnQw 00023160: 4a 66 55 55 6b 70 52 6f 47 72 35 41 55 65 57 69 JfUUkpRoGr5AUeWi 00023170: 63 76 42 54 7a 79 4b 39 67 37 37 2b 79 43 6b 66 cvBTzyK9g77+yCkf 00023180: 35 50 41 79 73 4c 37 72 2f 4a 6a 63 5a 67 72 62 5PAysL7r/JjcZgrb 00023190: 76 52 70 4d 57 39 69 79 61 78 5a 76 4b 4f 36 63 vRpMW9iyaxZvKO6c 000231a0: 65 5a 4e 32 45 77 49 78 4b 77 56 46 50 75 76 46 eZN2EwIxKwVFPuvF 000231b0: 75 69 45 50 47 43 6f 61 67 62 4d 6f 2b 53 70 79 uiEPGCoagbMo+Spy 000231c0: 64 4c 72 58 71 42 7a 4e 43 44 47 46 43 72 4f 2f dLrXqBzNCDGFCrO/ 000231d0: 72 6b 63 77 61 32 78 68 6f 6b 51 5a 35 43 64 5a rkcwa2xhokQZ5CdZ 000231e0: 30 41 73 55 33 4a 66 53 71 4a 36 6e 35 49 31 34 0AsU3JfSqJ6n5I14 000231f0: 59 41 2b 50 2f 75 41 67 66 68 50 55 38 34 54 6c YA+P/uAgfhPU84Tl 00023200: 77 37 63 45 46 66 70 37 41 45 45 38 65 79 34 73 w7cEFfp7AEE8ey4s 00023210: 50 31 32 50 54 74 34 43 6f 64 73 31 47 52 67 44 P12PTt4Cods1GRgD 00023220: 4f 42 35 78 76 79 69 52 35 6d 2b 42 78 38 4f 35 OB5xvyiR5m+Bx8O5 00023230: 6e 42 43 4e 63 74 55 38 42 65 76 66 56 35 41 30 nBCNctU8BevfV5A0 00023240: 38 78 36 52 48 64 35 6a 63 77 50 54 4d 44 53 5a 8x6RHd5jcwPTMDSZ 00023250: 4a 4f 65 64 49 5a 31 63 47 51 37 30 34 6c 78 62 JOedIZ1cGQ704lxb 00023260: 41 7a 71 5a 4f 50 30 35 5a 78 61 4f 67 68 7a 53 AzqZOP05ZxaOghzS 00023270: 64 76 46 42 48 59 71 6f 6d 41 54 41 52 79 41 41 dvFBHYqomATARyAA 00023280: 44 4b 34 65 6c 50 38 4c 79 33 49 72 55 5a 4b 66 DK4elP8Ly3IrUZKf 00023290: 57 68 32 33 58 79 32 30 75 42 55 6d 4c 53 34 50 Wh23Xy20uBUmLS4P 000232a0: 66 61 67 75 39 2b 6f 79 56 61 32 69 50 67 71 52 fagu9+oyVa2iPgqR 000232b0: 50 33 46 32 43 54 55 73 76 4a 37 2b 52 59 6e 4e P3F2CTUsvJ7+RYnN 000232c0: 38 66 46 5a 62 55 2f 48 56 76 78 76 63 46 46 44 8fFZbU/HVvxvcFFD 000232d0: 4b 6b 69 54 71 56 35 55 42 5a 33 47 7a 35 34 4a KkiTqV5UBZ3Gz54J 000232e0: 41 4b 42 79 69 39 68 6b 4b 4d 5a 4a 76 75 47 67 AKByi9hkKMZJvuGg 000232f0: 63 53 59 58 46 6d 77 30 38 55 79 6f 51 79 56 64 cSYXFmw08UyoQyVd 00023300: 66 54 44 31 2f 64 4d 6b 43 48 58 63 54 47 41 4b fTD1/dMkCHXcTGAK 00023310: 65 52 4f 67 41 72 73 76 6d 52 72 51 54 4c 55 4f eROgArsvmRrQTLUO 00023320: 58 69 6f 4f 48 47 4b 32 51 6b 6a 48 75 6f 59 46 XioOHGK2QkjHuoYF 00023330: 67 58 63 69 5a 6f 54 4a 64 36 46 73 35 71 31 51 gXciZoTJd6Fs5q1Q 00023340: 58 31 47 2b 70 2f 65 32 36 68 59 73 45 66 37 51 X1G+p/e26hYsEf7Q 00023350: 5a 44 31 6e 6e 49 79 6c 2f 53 46 6b 4e 74 59 59 ZD1nnIyl/SFkNtYY 00023360: 6d 6d 42 68 70 42 72 78 6c 39 57 62 59 30 59 70 mmBhpBrxl9WbY0Yp 00023370: 48 57 52 75 77 32 4c 6c 2f 74 6a 39 6d 44 38 50 HWRuw2Ll/tj9mD8P 00023380: 34 73 6e 56 7a 4a 6c 34 46 39 4a 2b 31 61 72 56 4snVzJl4F9J+1arV 00023390: 65 54 62 39 45 35 72 32 49 4c 48 30 34 71 53 74 eTb9E5r2ILH04qSt 000233a0: 6a 78 51 4e 77 6e 33 6d 34 59 4e 71 78 6d 61 4e jxQNwn3m4YNqxmaN 000233b0: 62 4c 41 71 57 32 54 4e 36 4c 69 64 77 75 4a 52 bLAqW2TN6LidwuJR 000233c0: 71 53 2b 4e 58 62 74 71 78 6f 65 44 58 70 78 65 qS+NXbtqxoeDXpxe 000233d0: 47 57 6d 78 7a 53 6b 57 78 6a 6b 79 43 6b 58 34 GWmxzSkWxjkyCkX4 000233e0: 4e 51 52 6d 65 36 71 35 53 41 63 43 2b 4d 37 2b NQRme6q5SAcC+M7+ 000233f0: 39 45 54 66 41 2f 45 77 72 7a 51 61 6a 4b 61 6b 9ETfA/EwrzQajKak 00023400: 43 77 59 79 65 75 6e 50 36 5a 46 6c 78 55 32 6f CwYyeunP6ZFlxU2o 00023410: 4d 45 6e 31 50 7a 33 31 7a 65 53 74 57 37 34 47 MEn1Pz31zeStW74G 00023420: 34 30 36 5a 4a 46 43 6c 31 77 41 58 49 6f 55 4b 406ZJFCl1wAXIoUK 00023430: 6b 57 6f 74 59 45 70 4f 75 58 42 31 75 56 4e 78 kWotYEpOuXB1uVNx 00023440: 4a 36 33 64 70 4a 45 71 66 78 42 65 70 74 77 49 J63dpJEqfxBeptwI 00023450: 48 4e 72 50 7a 38 42 6c 6c 5a 6f 49 63 42 6f 58 HNrPz8BllZoIcBoX 00023460: 77 67 66 4a 2b 38 56 41 55 6e 56 50 76 52 76 65 wgfJ+8VAUnVPvRve 00023470: 78 6e 77 30 4d 61 2f 57 69 47 59 75 4a 4f 35 79 xnw0Ma/WiGYuJO5y 00023480: 38 51 54 76 45 59 42 69 67 46 6d 68 55 78 59 35 8QTvEYBigFmhUxY5 00023490: 52 71 7a 45 38 4f 63 79 77 4e 2f 38 6d 34 55 59 RqzE8OcywN/8m4UY 000234a0: 72 6c 61 6e 69 4a 4f 37 35 58 51 36 4b 53 6f 39 rlaniJO75XQ6KSo9 000234b0: 2b 74 57 48 6c 75 2b 68 4d 69 30 55 56 64 69 4b +tWHlu+hMi0UVdiK 000234c0: 51 70 37 4e 65 6c 6e 6f 5a 55 7a 4e 61 49 79 42 Qp7NelnoZUzNaIyB 000234d0: 50 56 65 4f 77 4b 36 47 4e 70 2b 46 66 48 75 50 PVeOwK6GNp+FfHuP 000234e0: 4f 6f 79 68 61 57 75 4e 76 54 59 46 6b 76 78 73 OoyhaWuNvTYFkvxs 000234f0: 63 4d 51 57 44 68 2b 7a 65 46 43 46 6b 67 77 62 cMQWDh+zeFCFkgwb 00023500: 58 66 74 69 56 32 33 79 77 4a 34 2b 75 77 52 71 XftiV23ywJ4+uwRq 00023510: 6d 67 39 6b 33 4b 7a 77 49 51 70 7a 70 70 74 38 mg9k3KzwIQpzppt8 00023520: 44 42 42 4f 4d 62 72 71 77 51 4d 35 47 62 30 35 DBBOMbrqwQM5Gb05 00023530: 73 45 77 64 4b 7a 4d 69 41 71 4f 6c 6f 61 41 2f sEwdKzMiAqOloaA/ 00023540: 6c 72 30 4b 41 2b 31 70 72 30 2f 2b 48 69 57 6f lr0KA+1pr0/+HiWo 00023550: 69 49 6a 48 41 2f 77 69 72 32 6e 49 75 53 33 50 iIjHA/wir2nIuS3P 00023560: 65 55 2f 6a 69 33 4f 36 5a 77 6f 78 63 52 31 53 eU/ji3O6ZwoxcR1S 00023570: 5a 39 46 68 74 4c 43 35 53 30 46 49 7a 46 68 62 Z9FhtLC5S0FIzFhb 00023580: 42 57 63 47 56 50 2f 4b 70 78 4f 50 53 69 55 6f BWcGVP/KpxOPSiUo 00023590: 41 64 57 55 70 71 4b 48 2b 2b 36 53 63 7a 35 30 AdWUpqKH++6Scz50 000235a0: 37 69 43 63 78 59 49 36 72 64 4d 42 49 43 50 4a 7iCcxYI6rdMBICPJ 000235b0: 5a 65 61 37 4f 63 6d 65 46 77 35 6d 4f 62 4a 53 Zea7OcmeFw5mObJS 000235c0: 69 71 70 6a 67 32 55 6f 57 4e 49 73 2b 63 46 68 iqpjg2UoWNIs+cFh 000235d0: 79 44 53 74 36 67 65 56 35 71 67 69 33 46 75 6e yDSt6geV5qgi3Fun 000235e0: 6d 77 77 44 6f 47 53 4d 67 65 72 46 4f 5a 47 58 mwwDoGSMgerFOZGX 000235f0: 31 6d 30 64 4d 43 59 6f 35 58 4f 72 75 78 4f 30 1m0dMCYo5XOruxO0 00023600: 36 33 64 77 45 4e 4b 39 44 62 6e 56 4d 39 77 59 63dwENK9DbnVM9wY 00023610: 46 52 45 7a 68 34 76 79 55 31 57 59 59 4a 2f 4c FREzh4vyU1WYYJ/L 00023620: 52 52 70 36 6f 78 67 6a 71 50 2f 58 35 61 38 2f RRp6oxgjqP/X5a8/ 00023630: 34 41 66 36 70 36 4e 57 6b 51 66 65 72 7a 42 6d 4Af6p6NWkQferzBm 00023640: 58 6d 65 30 7a 59 2f 34 6e 77 4d 4a 6d 2f 77 64 Xme0zY/4nwMJm/wd 00023650: 31 74 49 71 53 77 47 7a 2b 45 33 78 50 45 41 4f 1tIqSwGz+E3xPEAO 00023660: 6f 5a 6c 4a 69 74 33 58 64 64 44 37 2f 42 54 31 oZlJit3XddD7/BT1 00023670: 70 6c 6c 7a 4f 78 2b 38 62 6d 51 74 41 4e 51 2f pllzOx+8bmQtANQ/ 00023680: 53 36 66 5a 65 78 63 36 71 69 33 57 2b 51 32 78 S6fZexc6qi3W+Q2x 00023690: 63 6d 58 54 55 68 75 53 35 6d 70 48 51 52 76 63 cmXTUhuS5mpHQRvc 000236a0: 78 5a 55 4e 30 53 35 2b 50 4c 39 6c 58 57 55 41 xZUN0S5+PL9lXWUA 000236b0: 61 52 5a 68 45 48 38 68 54 64 41 63 75 4e 4d 4d aRZhEH8hTdAcuNMM 000236c0: 43 75 56 4e 4b 54 45 47 74 53 55 4b 4e 69 33 4f CuVNKTEGtSUKNi3O 000236d0: 36 4b 68 53 61 54 7a 63 6b 38 63 73 5a 32 76 57 6KhSaTzck8csZ2vW 000236e0: 52 5a 2b 64 37 6d 57 38 63 34 49 4b 77 58 49 59 RZ+d7mW8c4IKwXIY 000236f0: 64 32 35 53 2f 7a 49 66 74 50 6b 77 50 7a 75 66 d25S/zIftPkwPzuf 00023700: 6a 45 76 4f 48 57 56 44 31 6d 2b 46 6a 70 44 56 jEvOHWVD1m+FjpDV 00023710: 55 54 56 30 44 47 44 75 48 6a 36 51 6e 61 45 77 UTV0DGDuHj6QnaEw 00023720: 4c 75 2f 64 45 67 64 4c 51 4f 67 39 45 31 53 72 Lu/dEgdLQOg9E1Sr 00023730: 6f 39 58 48 4a 38 79 6b 4c 41 77 74 50 75 2b 70 o9XHJ8ykLAwtPu+p 00023740: 78 71 4b 44 75 46 65 78 71 4f 4e 31 73 4b 51 6d xqKDuFexqON1sKQm 00023750: 37 72 77 62 45 31 45 36 38 55 43 66 41 2f 65 72 7rwbE1E68UCfA/er 00023760: 6f 76 72 54 43 47 2b 44 42 53 4e 67 30 6c 34 67 ovrTCG+DBSNg0l4g 00023770: 6f 44 51 76 5a 4e 36 75 4e 6c 62 79 4c 70 63 5a oDQvZN6uNlbyLpcZ 00023780: 41 77 6a 32 55 63 6c 79 63 76 4c 70 49 5a 4d 67 Awj2UclycvLpIZMg 00023790: 76 34 79 52 6c 70 62 33 59 75 4d 66 74 6f 7a 6f v4yRlpb3YuMftozo 000237a0: 72 62 63 47 56 48 74 2f 56 65 44 56 33 2b 46 64 rbcGVHt/VeDV3+Fd 000237b0: 66 31 54 50 30 69 75 61 43 73 50 69 32 47 34 58 f1TP0iuaCsPi2G4X 000237c0: 65 47 68 73 79 46 31 75 62 56 44 78 6b 6f 4a 68 eGhsyF1ubVDxkoJh 000237d0: 6d 6e 69 51 30 2f 6a 53 67 2f 65 59 4d 4c 39 4b mniQ0/jSg/eYML9K 000237e0: 4c 66 6e 43 46 67 49 53 57 6b 70 39 31 65 61 75 LfnCFgISWkp91eau 000237f0: 52 33 49 51 76 45 44 30 6e 41 50 58 4b 2b 36 68 R3IQvED0nAPXK+6h 00023800: 50 43 59 73 2b 6e 33 2b 68 43 5a 62 69 73 6b 6d PCYs+n3+hCZbiskm 00023810: 56 4d 47 32 64 61 2b 30 45 73 5a 50 6f 6e 55 65 VMG2da+0EsZPonUe 00023820: 49 59 38 45 62 66 75 73 51 58 6a 73 4b 2f 65 46 IY8EbfusQXjsK/eF 00023830: 44 61 6f 73 62 50 6a 45 66 51 53 30 52 4b 47 37 DaosbPjEfQS0RKG7 00023840: 79 6a 35 47 47 36 39 4d 37 4d 65 4f 31 48 6d 69 yj5GG69M7MeO1Hmi 00023850: 55 59 6f 63 67 79 67 4a 48 4c 36 4d 31 71 7a 55 UYocgygJHL6M1qzU 00023860: 44 44 77 55 53 6d 72 39 39 56 37 53 64 72 32 46 DDwUSmr99V7Sdr2F 00023870: 33 4a 6a 51 41 4a 59 2b 46 30 79 48 33 33 49 76 3JjQAJY+F0yH33Iv 00023880: 33 2b 43 39 4d 33 38 65 4d 4c 37 67 54 67 6d 4e 3+C9M38eML7gTgmN 00023890: 75 2f 72 32 62 55 4d 69 50 76 70 59 62 5a 36 76 u/r2bUMiPvpYbZ6v 000238a0: 31 2f 49 61 45 53 69 72 42 48 4e 61 37 6d 50 4b 1/IaESirBHNa7mPK 000238b0: 6e 34 64 45 6d 59 67 37 76 2f 2b 48 51 67 50 4e n4dEmYg7v/+HQgPN 000238c0: 31 47 37 39 6a 42 51 31 2b 73 6f 79 64 66 44 43 1G79jBQ1+soydfDC 000238d0: 32 72 2b 68 32 42 6c 2f 4b 49 63 35 4b 6a 4d 4b 2r+h2Bl/KIc5KjMK 000238e0: 37 4f 48 36 6e 62 31 6a 4c 73 4e 66 30 45 48 56 7OH6nb1jLsNf0EHV 000238f0: 65 32 4b 42 69 45 35 31 6f 78 36 33 36 75 79 47 e2KBiE51ox636uyG 00023900: 36 4c 68 6f 30 74 33 4a 33 34 4c 35 51 59 2f 69 6Lho0t3J34L5QY/i 00023910: 6c 45 33 6d 69 6b 61 46 34 48 4b 58 47 31 6d 47 lE3mikaF4HKXG1mG 00023920: 31 72 43 65 76 54 31 56 76 36 47 61 76 6c 74 78 1rCevT1Vv6Gavltx 00023930: 6f 51 65 2f 62 4d 72 70 5a 76 52 67 67 6e 42 78 oQe/bMrpZvRggnBx 00023940: 53 45 50 45 65 45 7a 6b 45 64 4f 78 54 6e 50 58 SEPEeEzkEdOxTnPX 00023950: 48 56 6a 55 59 64 77 38 4a 59 76 6a 42 2f 6f 37 HVjUYdw8JYvjB/o7 00023960: 45 65 67 63 33 4d 61 2b 4e 55 78 4c 4c 6e 73 4b Eegc3Ma+NUxLLnsK 00023970: 30 6b 4a 6c 69 6e 50 6d 55 48 7a 48 47 74 72 6b 0kJlinPmUHzHGtrk 00023980: 35 2b 43 41 62 56 7a 46 4f 42 71 70 79 79 33 51 5+CAbVzFOBqpyy3Q 00023990: 56 55 6e 7a 54 44 66 43 2f 30 58 44 39 34 2f 6f VUnzTDfC/0XD94/o 000239a0: 6b 48 2b 4f 42 2b 69 37 67 39 6c 6f 6c 68 57 49 kH+OB+i7g9lolhWI 000239b0: 6a 53 6e 66 49 62 2b 45 71 34 33 5a 58 4f 57 6d jSnfIb+Eq43ZXOWm 000239c0: 77 76 6a 79 56 2f 71 71 44 2b 74 30 65 2b 37 6d wvjyV/qqD+t0e+7m 000239d0: 54 45 4d 37 34 71 50 2f 4f 7a 74 38 6e 6d 43 37 TEM74qP/Ozt8nmC7 000239e0: 6d 52 70 79 75 36 33 4f 42 34 4b 6e 55 7a 46 63 mRpyu63OB4KnUzFc 000239f0: 30 37 34 53 71 6f 79 50 55 41 67 4d 2b 2f 54 4a 074SqoyPUAgM+/TJ 00023a00: 47 46 6f 36 54 34 34 45 48 6e 51 55 34 58 34 7a GFo6T44EHnQU4X4z 00023a10: 36 71 61 6e 6e 56 71 67 77 2f 55 37 7a 43 70 77 6qannVqgw/U7zCpw 00023a20: 63 6d 58 56 31 41 75 62 49 72 76 4f 6d 6b 4b 48 cmXV1AubIrvOmkKH 00023a30: 61 7a 4a 41 52 35 35 65 50 6a 70 35 74 4c 42 73 azJAR55ePjp5tLBs 00023a40: 4e 38 76 41 71 73 33 4e 41 48 64 63 45 48 4f 52 N8vAqs3NAHdcEHOR 00023a50: 32 78 51 30 6c 73 4e 41 46 7a 53 55 75 78 46 51 2xQ0lsNAFzSUuxFQ 00023a60: 43 46 59 76 58 4c 5a 4a 64 4f 6a 39 70 34 66 4e CFYvXLZJdOj9p4fN 00023a70: 71 36 70 30 48 42 47 55 69 6b 32 59 7a 61 49 34 q6p0HBGUik2YzaI4 00023a80: 78 79 53 79 39 31 4b 7a 68 51 30 2b 71 31 68 6a xySy91KzhQ0+q1hj 00023a90: 78 76 49 6d 52 77 50 52 66 37 36 74 43 68 6c 52 xvImRwPRf76tChlR 00023aa0: 6b 68 52 43 69 37 34 4e 58 5a 39 71 55 4e 65 49 khRCi74NXZ9qUNeI 00023ab0: 77 50 2b 73 35 70 2b 33 6d 35 6e 77 50 64 4e 4f wP+s5p+3m5nwPdNO 00023ac0: 48 67 53 4c 44 37 39 6e 37 4f 39 6d 31 6e 31 75 HgSLD79n7O9m1n1u 00023ad0: 44 48 69 4d 6e 74 71 34 6e 6b 59 77 56 35 4f 5a DHiMntq4nkYwV5OZ 00023ae0: 31 45 4e 62 58 78 46 64 34 50 67 72 6c 76 61 76 1ENbXxFd4Pgrlvav 00023af0: 5a 73 79 55 4f 34 4d 71 59 6c 71 71 6e 31 4f 38 ZsyUO4MqYlqqn1O8 00023b00: 57 2f 49 31 64 45 5a 71 35 64 58 68 72 62 45 54 W/I1dEZq5dXhrbET 00023b10: 4c 61 5a 49 62 43 32 4b 6a 2f 41 61 2f 51 4d 2b LaZIbC2Kj/Aa/QM+ 00023b20: 66 71 55 4f 48 64 66 30 74 58 41 51 31 68 75 5a fqUOHdf0tXAQ1huZ 00023b30: 33 63 6d 57 45 43 57 53 58 79 2f 34 33 6a 33 35 3cmWECWSXy/43j35 00023b40: 2b 4d 76 71 39 78 77 73 37 4a 4b 73 65 72 69 5a +Mvq9xws7JKseriZ 00023b50: 31 70 45 57 4b 63 38 71 6c 7a 4e 72 47 50 55 47 1pEWKc8qlzNrGPUG 00023b60: 63 56 67 4f 61 39 63 50 4a 59 49 4a 73 47 6e 4a cVgOa9cPJYIJsGnJ 00023b70: 54 41 55 73 45 63 44 4f 45 56 55 4c 4f 35 78 30 TAUsEcDOEVULO5x0 00023b80: 72 58 42 69 6a 63 31 6c 67 58 45 7a 51 51 4b 68 rXBijc1lgXEzQQKh 00023b90: 52 4f 66 38 7a 49 56 38 32 77 38 65 73 77 63 37 ROf8zIV82w8eswc7 00023ba0: 38 59 58 31 31 4b 59 4c 57 51 52 63 67 48 4e 4a 8YX11KYLWQRcgHNJ 00023bb0: 45 6c 42 78 66 58 72 37 32 6c 53 32 52 42 53 6c ElBxfXr72lS2RBSl 00023bc0: 30 37 71 54 4b 6f 72 4f 32 75 55 44 5a 72 33 73 07qTKorO2uUDZr3s 00023bd0: 46 68 59 73 76 6e 68 4c 5a 6e 30 41 39 34 4b 52 FhYsvnhLZn0A94KR 00023be0: 7a 4a 2f 37 44 45 47 49 41 68 57 35 5a 57 46 70 zJ/7DEGIAhW5ZWFp 00023bf0: 4c 38 67 45 77 75 31 61 4c 41 39 4d 75 57 5a 7a L8gEwu1aLA9MuWZz 00023c00: 4e 77 6c 38 4f 7a 65 39 59 2b 62 58 2b 76 39 67 Nwl8Oze9Y+bX+v9g 00023c10: 79 77 52 56 6e 6f 42 35 49 2f 38 6b 58 54 58 55 ywRVnoB5I/8kXTXU 00023c20: 33 31 34 31 79 52 4c 59 72 49 4f 4f 7a 36 53 4f 3141yRLYrIOOz6SO 00023c30: 6e 79 48 4e 79 34 53 69 65 71 7a 6b 42 58 68 61 nyHNy4SieqzkBXha 00023c40: 72 6a 66 6a 71 71 31 71 36 74 6b 6c 61 45 62 41 rjfjqq1q6tklaEbA 00023c50: 38 51 66 6d 32 44 61 49 50 73 37 4f 54 71 2f 6e 8Qfm2DaIPs7OTq/n 00023c60: 76 4a 42 6a 4b 66 4f 32 48 39 62 48 32 63 43 4d vJBjKfO2H9bH2cCM 00023c70: 68 31 2b 35 67 73 70 66 79 63 75 38 66 2f 63 75 h1+5gspfycu8f/cu 00023c80: 75 52 6d 74 44 6a 79 71 5a 37 75 43 49 4d 79 6a uRmtDjyqZ7uCIMyj 00023c90: 64 56 33 61 2b 70 33 66 71 6d 58 73 52 78 34 43 dV3a+p3fqmXsRx4C 00023ca0: 38 6c 75 6a 65 7a 49 46 48 6e 51 69 56 54 58 4c 8lujezIFHnQiVTXL 00023cb0: 58 75 49 31 58 72 77 4e 33 2b 73 69 59 59 6a 32 XuI1XrwN3+siYYj2 00023cc0: 48 48 54 76 45 53 55 78 38 44 6c 4f 54 58 70 61 HHTvESUx8DlOTXpa 00023cd0: 6b 39 71 46 52 4b 2b 4c 33 6d 67 4a 31 57 73 44 k9qFRK+L3mgJ1WsD 00023ce0: 37 46 34 63 75 31 61 4a 6f 46 6f 59 51 6e 75 2b 7F4cu1aJoFoYQnu+ 00023cf0: 77 47 44 4d 4f 6a 4a 4d 33 6b 69 42 51 57 48 43 wGDMOjJM3kiBQWHC 00023d00: 63 76 68 4a 2f 48 52 64 78 6f 64 4f 51 70 34 35 cvhJ/HRdxodOQp45 00023d10: 59 5a 61 4f 54 41 32 32 4e 62 34 58 4b 43 56 78 YZaOTA22Nb4XKCVx 00023d20: 71 6b 62 77 4d 59 46 68 7a 59 51 59 49 41 6e 43 qkbwMYFhzYQYIAnC 00023d30: 57 38 46 57 31 34 75 66 39 38 6a 68 55 47 32 7a W8FW14uf98jhUG2z 00023d40: 72 4b 68 51 51 30 71 30 43 45 71 30 74 35 6e 58 rKhQQ0q0CEq0t5nX 00023d50: 79 76 55 79 76 52 38 44 76 44 36 39 4c 55 2b 67 yvUyvR8DvD69LU+g 00023d60: 33 69 2b 48 46 57 51 4d 51 38 50 71 5a 75 48 44 3i+HFWQMQ8PqZuHD 00023d70: 2b 73 4e 4b 41 56 30 2b 4d 36 45 4a 43 30 73 7a +sNKAV0+M6EJC0sz 00023d80: 71 37 72 45 72 37 42 35 62 51 38 42 63 4e 48 7a q7rEr7B5bQ8BcNHz 00023d90: 76 44 4d 63 39 65 71 42 35 5a 43 51 64 54 66 38 vDMc9eqB5ZCQdTf8 00023da0: 30 4f 62 6e 34 75 7a 6a 77 70 59 55 37 53 49 53 0Obn4uzjwpYU7SIS 00023db0: 64 74 56 30 51 47 61 39 44 33 57 72 68 32 42 44 dtV0QGa9D3Wrh2BD 00023dc0: 51 74 70 42 4b 78 61 4e 46 56 2b 2f 43 79 32 50 QtpBKxaNFV+/Cy2P 00023dd0: 2f 53 76 2b 38 73 37 55 64 30 46 64 37 34 58 34 /Sv+8s7Ud0Fd74X4 00023de0: 2b 6f 2f 54 4e 7a 74 57 67 45 54 55 61 70 79 2b +o/TNztWgETUapy+ 00023df0: 6d 61 6a 4e 51 36 38 4c 71 33 65 65 30 5a 4f 34 majNQ68Lq3ee0ZO4 00023e00: 38 56 45 62 54 5a 59 69 48 31 43 6f 34 4f 6c 66 8VEbTZYiH1Co4Olf 00023e10: 57 65 66 38 32 52 57 65 79 55 58 6f 37 77 6f 4d Wef82RWeyUXo7woM 00023e20: 30 33 50 79 61 70 47 66 69 6b 54 6e 51 69 6e 6f 03PyapGfikTnQino 00023e30: 4e 71 35 7a 35 76 65 4c 70 65 4d 56 33 48 43 41 Nq5z5veLpeMV3HCA 00023e40: 4d 54 61 5a 6d 41 31 6f 47 4c 41 6e 37 58 53 33 MTaZmA1oGLAn7XS3 00023e50: 58 59 73 7a 2b 58 4b 37 56 4d 51 73 63 34 58 4b XYsz+XK7VMQsc4XK 00023e60: 72 6d 44 58 4f 4c 55 2f 70 53 58 56 4e 55 71 38 rmDXOLU/pSXVNUq8 00023e70: 64 49 71 54 62 61 2f 2f 2f 33 78 36 4c 69 4c 53 dIqTba///3x6LiLS 00023e80: 36 78 73 31 78 75 43 41 59 53 66 63 51 33 2b 72 6xs1xuCAYSfcQ3+r 00023e90: 51 67 6d 75 37 75 76 66 33 54 48 4b 74 35 4f 6f Qgmu7uvf3THKt5Oo 00023ea0: 6f 39 37 54 71 63 62 52 71 78 78 37 45 41 53 69 o97TqcbRqxx7EASi 00023eb0: 7a 61 51 43 42 51 6c 6c 47 2f 72 59 78 56 61 70 zaQCBQllG/rYxVap 00023ec0: 4d 4c 67 74 4c 62 5a 53 36 34 77 31 4d 44 42 4d MLgtLbZS64w1MDBM 00023ed0: 58 58 2b 50 51 70 42 4b 4e 77 71 55 4b 4f 66 32 XX+PQpBKNwqUKOf2 00023ee0: 44 44 52 44 55 58 51 66 39 45 68 4f 53 30 51 6a DDRDUXQf9EhOS0Qj 00023ef0: 34 6e 54 6d 6c 41 38 64 7a 53 4c 7a 2f 47 31 64 4nTmlA8dzSLz/G1d 00023f00: 2b 55 64 38 4d 54 79 2f 36 67 68 68 64 69 4c 70 +Ud8MTy/6ghhdiLp 00023f10: 65 65 72 47 59 2f 55 6c 44 4f 66 69 75 71 46 73 eerGY/UlDOfiuqFs 00023f20: 4d 55 55 35 2f 55 59 6c 50 2b 42 41 6d 67 52 4c MUU5/UYlP+BAmgRL 00023f30: 75 4e 70 76 72 55 61 4c 6c 56 6b 72 71 44 69 65 uNpvrUaLlVkrqDie 00023f40: 76 4e 56 45 41 77 46 2b 34 43 6f 4d 31 4d 5a 54 vNVEAwF+4CoM1MZT 00023f50: 6d 6a 78 6a 4a 4d 73 4b 4a 71 2b 75 38 5a 64 37 mjxjJMsKJq+u8Zd7 00023f60: 74 4e 43 55 46 79 36 4c 69 79 59 58 52 4a 51 34 tNCUFy6LiyYXRJQ4 00023f70: 56 79 76 45 51 46 46 61 43 47 4b 73 78 49 77 51 VyvEQFFaCGKsxIwQ 00023f80: 6b 6b 37 45 7a 5a 36 4c 54 4a 71 32 68 55 75 50 kk7EzZ6LTJq2hUuP 00023f90: 68 76 41 57 2b 67 51 6e 53 47 36 4a 2b 4d 73 7a hvAW+gQnSG6J+Msz 00023fa0: 43 2b 37 51 43 52 48 63 6e 71 44 64 79 4e 52 4a C+7QCRHcnqDdyNRJ 00023fb0: 36 54 39 78 79 53 38 37 41 36 4d 44 75 74 62 7a 6T9xyS87A6MDutbz 00023fc0: 4b 47 76 47 6b 74 70 62 58 71 74 7a 57 74 58 62 KGvGktpbXqtzWtXb 00023fd0: 39 48 73 66 4b 32 63 42 4d 6f 6d 6a 4e 39 61 34 9HsfK2cBMomjN9a4 00023fe0: 79 2b 54 61 4a 4c 6e 58 78 41 65 58 2f 48 57 7a y+TaJLnXxAeX/HWz 00023ff0: 6d 66 34 63 52 34 76 41 4c 74 2f 50 34 77 34 71 mf4cR4vALt/P4w4q 00024000: 67 4b 59 30 34 6d 6c 34 5a 64 4c 4f 69 6e 46 59 gKY04ml4ZdLOinFY 00024010: 53 36 63 75 70 33 47 2f 31 69 65 34 2b 74 31 65 S6cup3G/1ie4+t1e 00024020: 4f 6e 70 42 4e 6c 71 47 71 73 37 35 69 6c 7a 6b OnpBNlqGqs75ilzk 00024030: 54 34 2b 44 73 5a 51 78 4e 76 61 53 4b 4a 2f 2f T4+DsZQxNvaSKJ// 00024040: 36 7a 49 62 62 6b 2f 4d 37 4c 4f 68 46 6d 52 63 6zIbbk/M7LOhFmRc 00024050: 2f 31 52 2b 6b 42 74 7a 37 4a 46 47 64 5a 6d 2f /1R+kBtz7JFGdZm/ 00024060: 43 4f 6f 74 49 64 76 51 6f 58 70 54 71 50 2f 31 COotIdvQoXpTqP/1 00024070: 75 71 45 55 6d 43 62 2f 51 57 6f 47 4c 4d 77 4f uqEUmCb/QWoGLMwO 00024080: 35 41 4e 63 48 7a 78 64 59 34 38 49 47 50 35 2b 5ANcHzxdY48IGP5+ 00024090: 4a 2b 7a 4b 4f 54 42 46 5a 34 50 69 64 2b 47 54 J+zKOTBFZ4Pid+GT 000240a0: 4d 2b 57 71 31 32 4d 56 2f 48 38 36 78 45 4a 70 M+Wq12MV/H86xEJp 000240b0: 74 42 61 36 54 2b 70 33 6b 67 70 77 4c 65 64 4d tBa6T+p3kgpwLedM 000240c0: 61 6e 42 48 43 32 47 67 4e 72 46 70 6f 4e 32 78 anBHC2GgNrFpoN2x 000240d0: 6e 72 4d 7a 39 57 46 57 58 2f 38 2f 79 67 53 42 nrMz9WFWX/8/ygSB 000240e0: 6b 61 76 71 32 55 76 37 46 64 43 73 4c 45 59 4c kavq2Uv7FdCsLEYL 000240f0: 75 39 4c 4c 49 76 41 55 30 62 4e 52 44 74 7a 59 u9LLIvAU0bNRDtzY 00024100: 6c 2b 2f 76 58 6d 6a 70 49 76 75 4a 46 59 6a 6d l+/vXmjpIvuJFYjm 00024110: 49 30 69 6d 36 51 45 59 71 6e 49 65 4d 73 4e 6a I0im6QEYqnIeMsNj 00024120: 58 47 34 76 49 75 74 49 47 48 69 6a 65 41 47 2f XG4vIutIGHijeAG/ 00024130: 39 45 44 42 6f 7a 4b 56 35 63 6c 64 6b 48 62 4c 9EDBozKV5cldkHbL 00024140: 78 48 68 32 35 76 54 2b 5a 45 7a 62 68 58 6c 71 xHh25vT+ZEzbhXlq 00024150: 76 70 7a 4b 4a 77 63 45 67 66 4e 77 4c 41 4b 46 vpzKJwcEgfNwLAKF 00024160: 65 6f 30 2f 70 76 45 45 31 30 58 44 42 2b 45 58 eo0/pvEE10XDB+EX 00024170: 52 54 58 74 53 7a 4a 6f 7a 51 4b 46 46 41 4a 68 RTXtSzJozQKFFAJh 00024180: 4d 78 59 6b 56 61 43 57 2b 45 39 41 4c 37 74 4d MxYkVaCW+E9AL7tM 00024190: 65 55 38 61 63 78 69 64 48 71 7a 62 36 6c 58 34 eU8acxidHqzb6lX4 000241a0: 36 39 31 55 73 44 70 79 2f 4c 4c 52 6d 54 2b 65 691UsDpy/LLRmT+e 000241b0: 70 67 57 35 36 2b 35 43 77 38 74 42 34 6b 4d 55 pgW56+5Cw8tB4kMU 000241c0: 76 36 73 39 6c 68 33 65 52 4b 62 79 47 73 2b 48 v6s9lh3eRKbyGs+H 000241d0: 2f 34 6d 51 4d 61 59 7a 50 54 66 32 4f 4f 64 6f /4mQMaYzPTf2OOdo 000241e0: 6b 45 6e 2b 7a 7a 67 76 6f 44 33 46 71 4e 4b 6b kEn+zzgvoD3FqNKk 000241f0: 38 51 71 47 41 58 56 73 71 63 47 64 58 72 54 36 8QqGAXVsqcGdXrT6 00024200: 32 66 53 50 6b 52 32 76 52 4f 46 69 36 38 41 36 2fSPkR2vROFi68A6 00024210: 73 65 38 36 55 78 52 55 6b 34 63 61 6a 66 50 79 se86UxRUk4cajfPy 00024220: 43 43 34 47 35 77 44 68 44 2b 7a 4e 71 34 6a 6f CC4G5wDhD+zNq4jo 00024230: 64 51 34 75 34 6e 2f 6d 33 37 4c 72 33 36 6e 34 dQ4u4n/m37Lr36n4 00024240: 4c 49 41 41 73 56 72 30 32 64 46 69 39 41 69 77 LIAAsVr02dFi9Aiw 00024250: 41 38 31 4d 59 73 32 72 6d 34 65 44 6c 44 4e 6d A81MYs2rm4eDlDNm 00024260: 64 4d 52 76 45 4b 52 48 66 42 77 57 35 44 64 4d dMRvEKRHfBwW5DdM 00024270: 4e 70 30 6a 50 46 5a 4d 65 41 52 71 46 2f 77 4c Np0jPFZMeARqF/wL 00024280: 34 58 42 66 64 2b 45 4d 4c 42 66 4d 7a 70 48 35 4XBfd+EMLBfMzpH5 00024290: 47 48 36 4e 61 57 2b 31 76 72 76 4d 64 67 2b 56 GH6NaW+1vrvMdg+V 000242a0: 78 44 7a 61 74 6b 33 4d 58 67 4f 33 72 6f 33 50 xDzatk3MXgO3ro3P 000242b0: 2f 44 70 63 43 36 2b 4d 6f 34 4d 79 53 4a 68 4b /DpcC6+Mo4MySJhK 000242c0: 4a 68 53 52 30 31 53 47 47 47 70 35 68 50 57 6d JhSR01SGGGp5hPWm 000242d0: 72 72 55 67 72 76 33 6c 44 6e 50 2b 48 68 63 49 rrUgrv3lDnP+HhcI 000242e0: 33 6e 74 33 59 71 42 6f 56 41 56 54 42 41 51 54 3nt3YqBoVAVTBAQT 000242f0: 35 69 75 68 54 67 38 6e 76 50 74 64 38 5a 65 59 5iuhTg8nvPtd8ZeY 00024300: 6a 36 77 31 78 36 52 71 47 55 42 72 53 6b 75 37 j6w1x6RqGUBrSku7 00024310: 2b 4e 31 2b 42 61 61 73 5a 76 6a 54 6b 36 34 52 +N1+BaasZvjTk64R 00024320: 6f 49 44 6c 4c 38 62 72 70 45 63 4a 78 33 4f 6d oIDlL8brpEcJx3Om 00024330: 59 37 6a 4c 6f 5a 73 73 77 64 74 6d 68 66 43 2f Y7jLoZsswdtmhfC/ 00024340: 47 32 31 6c 6c 58 68 49 54 4f 77 6d 76 52 44 44 G21llXhITOwmvRDD 00024350: 65 54 54 50 62 79 41 53 4f 61 31 36 63 46 35 2f eTTPbyASOa16cF5/ 00024360: 41 31 66 5a 41 69 64 4a 70 71 6a 75 33 77 59 41 A1fZAidJpqju3wYA 00024370: 79 39 61 76 50 52 31 79 61 36 65 4e 70 39 4b 38 y9avPR1ya6eNp9K8 00024380: 58 59 72 72 74 75 78 6c 71 69 2b 62 44 4b 77 6c XYrrtuxlqi+bDKwl 00024390: 66 72 59 64 52 30 52 52 69 4b 52 56 54 4c 4f 48 frYdR0RRiKRVTLOH 000243a0: 38 35 2b 5a 59 37 58 53 6d 7a 52 70 66 5a 42 4a 85+ZY7XSmzRpfZBJ 000243b0: 6a 61 54 61 38 31 56 44 63 4a 48 70 5a 6e 5a 6e jaTa81VDcJHpZnZn 000243c0: 53 51 4c 41 53 47 59 57 39 6c 35 31 5a 56 2f 68 SQLASGYW9l51ZV/h 000243d0: 37 65 56 7a 54 69 33 48 76 36 68 55 73 67 63 2f 7eVzTi3Hv6hUsgc/ 000243e0: 35 31 41 71 4a 52 54 6b 70 62 46 56 4c 58 58 73 51AqJRTkpbFVLXXs 000243f0: 7a 6f 42 4c 38 6e 42 58 30 75 2f 30 6a 42 4c 54 zoBL8nBX0u/0jBLT 00024400: 38 6e 48 2b 66 4a 65 50 62 72 77 55 52 54 35 38 8nH+fJePbrwURT58 00024410: 4f 59 2b 55 69 65 52 6a 64 31 76 73 30 34 77 30 OY+UieRjd1vs04w0 00024420: 56 47 35 56 4e 32 55 36 4d 6f 47 5a 6b 51 7a 4b VG5VN2U6MoGZkQzK 00024430: 4e 2f 70 74 7a 30 51 33 36 36 64 78 6f 54 47 6d N/ptz0Q366dxoTGm 00024440: 6a 37 69 31 4e 51 47 48 69 39 47 67 6e 71 75 58 j7i1NQGHi9GgnquX 00024450: 46 59 64 72 43 66 5a 42 6d 65 62 37 73 30 54 36 FYdrCfZBmeb7s0T6 00024460: 79 72 64 6c 5a 48 35 63 5a 75 77 48 46 79 49 4a yrdlZH5cZuwHFyIJ 00024470: 2f 6b 41 74 47 73 54 67 30 78 48 35 74 61 41 41 /kAtGsTg0xH5taAA 00024480: 71 34 34 42 41 6b 31 43 50 6b 39 4b 56 56 62 71 q44BAk1CPk9KVVbq 00024490: 51 7a 72 43 55 69 46 64 46 2f 36 67 74 6c 50 51 QzrCUiFdF/6gtlPQ 000244a0: 38 62 48 48 63 31 47 31 57 39 32 4d 58 47 5a 35 8bHHc1G1W92MXGZ5 000244b0: 48 45 48 66 74 79 4c 59 73 38 6d 62 44 2f 39 78 HEHftyLYs8mbD/9x 000244c0: 59 52 55 57 6b 48 6d 6c 4d 30 7a 43 32 69 6c 4a YRUWkHmlM0zC2ilJ 000244d0: 6c 6e 4e 67 56 34 62 66 41 4c 70 51 67 68 78 4f lnNgV4bfALpQghxO 000244e0: 55 6f 5a 4c 37 56 54 71 74 43 48 49 61 51 53 58 UoZL7VTqtCHIaQSX 000244f0: 6d 2b 59 55 4d 6e 70 6b 58 79 62 6e 56 2b 41 36 m+YUMnpkXybnV+A6 00024500: 78 6c 6d 32 43 56 79 38 66 6e 30 58 6c 6d 32 58 xlm2CVy8fn0Xlm2X 00024510: 52 61 30 2b 7a 7a 4f 61 32 31 4a 57 57 6d 69 78 Ra0+zzOa21JWWmix 00024520: 66 69 50 4d 53 43 5a 37 71 41 34 72 53 39 33 56 fiPMSCZ7qA4rS93V 00024530: 4e 33 70 6b 70 46 31 73 35 54 6f 6e 51 6a 69 73 N3pkpF1s5TonQjis 00024540: 48 66 37 69 55 39 5a 47 76 55 50 4f 41 4b 5a 63 Hf7iU9ZGvUPOAKZc 00024550: 52 31 70 62 65 56 66 2f 55 6c 37 4f 68 65 70 47 R1pbeVf/Ul7OhepG 00024560: 43 61 49 64 39 77 4f 74 71 6f 37 70 4a 37 79 4c CaId9wOtqo7pJ7yL 00024570: 63 42 5a 30 70 46 6b 4f 46 32 38 79 34 7a 45 49 cBZ0pFkOF28y4zEI 00024580: 2f 6b 63 55 4e 6d 75 74 42 48 61 51 70 42 64 4e /kcUNmutBHaQpBdN 00024590: 4d 38 76 6a 43 53 36 48 5a 52 6f 6b 6b 65 6f 38 M8vjCS6HZRokkeo8 000245a0: 38 54 42 41 6a 47 79 47 37 53 52 2b 36 76 55 67 8TBAjGyG7SR+6vUg 000245b0: 54 63 79 4b 39 49 6d 61 6c 6a 30 6b 75 78 7a 30 TcyK9Imalj0kuxz0 000245c0: 77 6d 4b 2b 62 79 51 55 31 31 41 69 4a 46 6b 2f wmK+byQU11AiJFk/ 000245d0: 79 61 35 64 4e 64 75 52 43 6c 63 6e 55 36 34 79 ya5dNduRClcnU64y 000245e0: 47 75 2f 69 65 57 53 65 4f 6f 73 31 74 33 65 70 Gu/ieWSeOos1t3ep 000245f0: 2b 52 50 49 57 51 32 70 79 54 59 56 62 5a 6c 74 +RPIWQ2pyTYVbZlt 00024600: 54 62 73 62 37 4e 69 77 53 69 33 41 56 2b 38 4b Tbsb7NiwSi3AV+8K 00024610: 4c 57 6b 37 4c 78 43 6e 66 5a 55 65 74 45 4d 38 LWk7LxCnfZUetEM8 00024620: 54 68 6e 73 53 6f 47 48 33 38 2f 6e 79 41 77 46 ThnsSoGH38/nyAwF 00024630: 67 75 4a 70 38 46 6a 76 6c 48 74 63 57 5a 75 55 guJp8FjvlHtcWZuU 00024640: 34 68 50 76 61 30 72 48 66 72 30 55 68 4f 4f 4a 4hPva0rHfr0UhOOJ 00024650: 2f 46 36 76 53 36 32 46 57 37 4b 7a 6b 6d 52 6c /F6vS62FW7KzkmRl 00024660: 6c 32 48 45 63 37 6f 55 71 34 66 79 69 35 54 37 l2HEc7oUq4fyi5T7 00024670: 30 56 6c 37 59 56 49 66 73 50 48 55 43 64 48 65 0Vl7YVIfsPHUCdHe 00024680: 73 66 39 4c 6b 37 57 4e 56 57 4f 37 35 4a 44 6b sf9Lk7WNVWO75JDk 00024690: 59 62 4d 49 38 54 4f 57 38 4a 4b 56 74 4c 59 39 YbMI8TOW8JKVtLY9 000246a0: 64 36 55 4a 52 49 54 4f 38 6f 4b 6f 30 78 53 2b d6UJRITO8oKo0xS+ 000246b0: 6f 39 39 59 79 30 34 69 6e 69 47 48 41 61 47 6a o99Yy04iniGHAaGj 000246c0: 38 38 6b 45 57 67 77 76 30 4f 72 48 64 59 2f 6e 88kEWgwv0OrHdY/n 000246d0: 72 37 36 44 4f 47 4e 53 35 39 68 58 43 47 58 7a r76DOGNS59hXCGXz 000246e0: 54 4b 55 76 44 6c 39 69 4b 70 4c 53 57 59 4e 31 TKUvDl9iKpLSWYN1 000246f0: 6c 78 49 65 79 79 77 64 4e 70 54 6b 68 61 79 37 lxIeyywdNpTkhay7 00024700: 34 77 32 6a 46 54 36 4e 53 38 71 6b 6a 6f 35 43 4w2jFT6NS8qkjo5C 00024710: 78 41 31 79 66 53 59 77 70 36 41 4a 49 5a 4e 4b xA1yfSYwp6AJIZNK 00024720: 49 65 45 4b 35 50 4a 41 57 37 4f 52 67 57 67 77 IeEK5PJAW7ORgWgw 00024730: 70 30 56 67 7a 59 70 71 6f 76 4d 72 57 78 62 75 p0VgzYpqovMrWxbu 00024740: 2b 44 47 5a 36 4c 68 69 65 31 52 41 71 70 7a 6d +DGZ6Lhie1RAqpzm 00024750: 38 56 55 7a 4b 4a 4f 48 33 6d 43 7a 57 75 54 4f 8VUzKJOH3mCzWuTO 00024760: 4c 73 4e 33 56 54 2f 64 76 32 65 65 59 65 39 55 LsN3VT/dv2eeYe9U 00024770: 6a 62 52 38 59 54 42 73 4c 7a 37 71 36 30 56 4e jbR8YTBsLz7q60VN 00024780: 31 73 55 35 31 6b 2b 75 6d 31 66 38 4a 78 44 35 1sU51k+um1f8JxD5 00024790: 70 50 68 62 68 53 43 38 72 52 61 42 34 35 34 74 pPhbhSC8rRaB454t 000247a0: 6d 68 36 59 55 57 72 4a 49 33 2b 47 57 59 30 71 mh6YUWrJI3+GWY0q 000247b0: 65 57 69 6f 6a 2f 74 62 6b 59 49 54 4f 6b 4a 61 eWioj/tbkYITOkJa 000247c0: 65 75 47 74 34 4a 72 4a 76 48 41 2b 6c 30 47 75 euGt4JrJvHA+l0Gu 000247d0: 37 6b 59 37 58 4f 61 61 30 35 61 6c 4d 6e 52 57 7kY7XOaa05alMnRW 000247e0: 56 43 58 71 46 67 4c 49 77 53 59 34 75 46 35 39 VCXqFgLIwSY4uF59 000247f0: 55 65 35 53 55 34 51 4b 75 63 2f 48 61 6d 44 78 Ue5SU4QKuc/HamDx 00024800: 62 72 30 78 36 63 73 43 65 74 58 47 6f 50 37 51 br0x6csCetXGoP7Q 00024810: 6e 31 42 6b 2f 4a 39 44 73 79 6e 4f 2f 55 44 36 n1Bk/J9DsynO/UD6 00024820: 69 5a 31 48 79 72 7a 2b 6a 69 74 30 68 44 43 77 iZ1Hyrz+jit0hDCw 00024830: 69 2f 45 39 4f 6a 67 4b 54 62 42 33 5a 51 4b 51 i/E9OjgKTbB3ZQKQ 00024840: 2f 30 5a 4f 76 65 76 66 4e 48 47 30 4e 4b 34 41 /0ZOvevfNHG0NK4A 00024850: 6a 33 43 70 37 4e 70 52 6b 30 37 52 54 31 69 2f j3Cp7NpRk07RT1i/ 00024860: 53 30 45 4c 39 33 41 67 38 47 52 67 4b 49 39 43 S0EL93Ag8GRgKI9C 00024870: 66 70 61 6a 4b 79 4b 36 2b 4a 6a 2f 50 49 31 4b fpajKyK6+Jj/PI1K 00024880: 4f 35 2f 38 35 56 41 77 7a 32 41 77 7a 50 38 46 O5/85VAwz2AwzP8F 00024890: 54 42 62 30 37 35 49 78 43 58 76 36 54 39 52 56 TBb075IxCXv6T9RV 000248a0: 76 57 54 32 74 55 61 71 78 44 53 39 32 7a 72 47 vWT2tUaqxDS92zrG 000248b0: 55 62 57 7a 55 59 6b 39 6d 53 73 38 32 70 45 43 UbWzUYk9mSs82pEC 000248c0: 48 2b 66 6b 71 73 44 74 39 33 56 57 2b 2b 34 59 H+fkqsDt93VW++4Y 000248d0: 73 52 2f 64 48 43 59 63 51 53 59 54 4f 2f 4b 61 sR/dHCYcQSYTO/Ka 000248e0: 42 4d 44 6a 39 4c 53 44 2f 4a 2f 2b 7a 32 30 4b BMDj9LSD/J/+z20K 000248f0: 71 38 58 76 5a 55 41 49 48 74 6d 39 68 52 50 50 q8XvZUAIHtm9hRPP 00024900: 33 49 74 62 75 41 75 32 48 6d 35 6c 6b 50 73 39 3ItbuAu2Hm5lkPs9 00024910: 32 70 64 37 6b 43 78 67 52 73 30 78 4f 56 42 6e 2pd7kCxgRs0xOVBn 00024920: 5a 31 33 63 63 64 41 30 61 75 6e 72 77 76 39 53 Z13ccdA0aunrwv9S 00024930: 64 71 45 6c 4a 52 43 33 67 2b 6f 43 75 2b 6e 58 dqElJRC3g+oCu+nX 00024940: 79 43 67 6d 58 55 73 39 79 4d 6a 54 4d 41 49 48 yCgmXUs9yMjTMAIH 00024950: 66 78 5a 56 2b 61 50 4b 63 5a 65 55 42 57 74 30 fxZV+aPKcZeUBWt0 00024960: 35 37 58 6f 38 35 4b 73 31 49 72 35 67 7a 45 48 57Xo85Ks1Ir5gzEH 00024970: 43 57 71 5a 45 68 72 4c 5a 4d 75 46 31 31 7a 69 CWqZEhrLZMuF11zi 00024980: 47 74 46 51 55 64 73 2f 45 45 53 61 6a 68 61 67 GtFQUds/EESajhag 00024990: 7a 63 4b 73 78 61 6d 63 53 5a 78 47 74 68 34 55 zcKsxamcSZxGth4U 000249a0: 49 49 2b 61 64 50 68 51 6b 55 6e 78 32 57 79 4e II+adPhQkUnx2WyN 000249b0: 2b 34 59 57 52 2b 72 33 66 38 4d 6e 6b 79 47 46 +4YWR+r3f8MnkyGF 000249c0: 75 52 34 7a 6a 7a 78 4a 53 38 57 73 51 59 52 35 uR4zjzxJS8WsQYR5 000249d0: 50 54 79 52 61 44 39 69 78 61 36 4d 68 37 34 31 PTyRaD9ixa6Mh741 000249e0: 6e 42 48 62 7a 66 6a 58 48 73 6b 47 44 71 31 37 nBHbzfjXHskGDq17 000249f0: 39 78 61 52 4e 72 43 49 42 31 7a 31 78 52 66 57 9xaRNrCIB1z1xRfW 00024a00: 66 6a 71 77 32 70 48 63 31 7a 6b 39 78 6c 50 70 fjqw2pHc1zk9xlPp 00024a10: 4c 38 73 51 57 41 49 75 45 54 5a 5a 68 62 6e 6d L8sQWAIuETZZhbnm 00024a20: 4c 35 34 72 63 65 58 56 4e 52 76 55 69 4b 72 72 L54rceXVNRvUiKrr 00024a30: 71 49 6b 65 6f 67 73 6c 30 58 58 62 31 37 79 6c qIkeogsl0XXb17yl 00024a40: 4e 62 30 66 34 47 41 39 57 64 34 34 76 66 66 45 Nb0f4GA9Wd44vffE 00024a50: 47 38 46 53 5a 47 48 45 4c 32 66 62 61 54 47 52 G8FSZGHEL2fbaTGR 00024a60: 63 53 69 43 65 41 38 50 6d 41 2f 66 36 48 7a 38 cSiCeA8PmA/f6Hz8 00024a70: 48 43 53 37 36 66 58 55 48 77 67 77 6b 7a 53 77 HCS76fXUHwgwkzSw 00024a80: 6c 49 37 31 65 6b 5a 37 46 61 70 6d 6c 6b 2f 4b lI71ekZ7Fapmlk/K 00024a90: 43 2b 48 73 38 68 55 63 77 33 4e 32 4c 4e 35 4c C+Hs8hUcw3N2LN5L 00024aa0: 68 6b 56 59 79 69 7a 59 46 6c 2f 75 50 65 56 50 hkVYyizYFl/uPeVP 00024ab0: 35 6c 73 6f 4a 48 68 68 66 57 76 76 53 57 72 75 5lsoJHhhfWvvSWru 00024ac0: 43 55 57 31 5a 63 4a 4f 65 75 54 62 72 44 67 79 CUW1ZcJOeuTbrDgy 00024ad0: 77 4a 2f 71 47 30 37 67 5a 4a 70 6c 6e 54 76 4c wJ/qG07gZJplnTvL 00024ae0: 63 59 64 4e 61 48 30 4b 4d 59 4f 59 4d 47 58 2b cYdNaH0KMYOYMGX+ 00024af0: 72 42 34 4e 47 50 46 6d 51 73 4e 61 49 77 6c 57 rB4NGPFmQsNaIwlW 00024b00: 72 66 43 65 7a 78 72 65 38 7a 58 42 72 73 4d 54 rfCezxre8zXBrsMT 00024b10: 2b 65 64 56 4c 62 4c 71 4e 31 42 71 42 37 36 4a +edVLbLqN1BqB76J 00024b20: 48 34 42 76 5a 54 71 55 49 4d 66 47 77 50 47 45 H4BvZTqUIMfGwPGE 00024b30: 6e 2b 45 6e 6d 54 56 38 36 66 50 42 61 59 62 46 n+EnmTV86fPBaYbF 00024b40: 4c 33 44 46 45 68 6a 42 34 35 43 65 77 6b 58 45 L3DFEhjB45CewkXE 00024b50: 41 74 4a 78 6b 34 2f 4d 73 32 70 50 58 6e 61 52 AtJxk4/Ms2pPXnaR 00024b60: 71 64 6b 79 30 48 4f 59 64 63 55 63 45 32 7a 63 qdky0HOYdcUcE2zc 00024b70: 58 71 34 76 61 49 76 57 32 2f 76 30 6e 48 46 4a Xq4vaIvW2/v0nHFJ 00024b80: 48 32 58 58 65 32 32 75 65 44 6d 71 2f 31 38 58 H2XXe22ueDmq/18X 00024b90: 47 74 45 4c 53 71 38 35 6a 39 58 38 71 30 74 63 GtELSq85j9X8q0tc 00024ba0: 4e 53 53 4b 4a 49 58 38 46 54 75 4a 46 2f 50 66 NSSKJIX8FTuJF/Pf 00024bb0: 38 6a 35 50 68 71 47 32 75 2b 6f 73 76 73 4c 78 8j5PhqG2u+osvsLx 00024bc0: 59 72 76 76 66 65 56 4a 4c 2b 34 74 6b 63 58 63 YrvvfeVJL+4tkcXc 00024bd0: 72 39 4a 56 37 76 30 45 52 6d 6a 2f 58 36 66 4d r9JV7v0ERmj/X6fM 00024be0: 33 4e 43 34 6a 36 64 53 31 2b 39 55 6d 72 32 6f 3NC4j6dS1+9Umr2o 00024bf0: 50 61 76 71 69 41 79 64 54 5a 50 4c 4d 4e 52 47 PavqiAydTZPLMNRG 00024c00: 59 32 33 4c 4f 39 7a 41 56 44 6c 79 37 6a 44 2b Y23LO9zAVDly7jD+ 00024c10: 37 30 47 35 54 50 50 4c 64 68 52 49 6c 34 57 78 70G5TPPLdhRIl4Wx 00024c20: 63 59 6a 4c 6e 4d 2b 53 4e 63 4a 32 36 46 4f 72 cYjLnM+SNcJ26FOr 00024c30: 6b 72 49 53 55 74 50 4f 62 49 7a 35 5a 62 33 41 krISUtPObIz5Zb3A 00024c40: 47 36 31 32 6b 72 6e 70 79 31 35 52 4d 57 2b 31 G612krnpy15RMW+1 00024c50: 63 51 6a 6c 6e 57 46 49 36 35 33 38 71 6b 79 39 cQjlnWFI6538qky9 00024c60: 61 78 64 32 6f 4a 6d 48 49 48 50 30 38 4b 79 50 axd2oJmHIHP08KyP 00024c70: 30 75 62 47 4f 2b 54 51 4e 4f 59 75 76 32 75 68 0ubGO+TQNOYuv2uh 00024c80: 31 37 79 43 49 76 52 38 56 63 53 74 77 37 6f 31 17yCIvR8VcStw7o1 00024c90: 67 30 4e 4d 36 30 73 6b 2b 38 54 71 37 59 66 49 g0NM60sk+8Tq7YfI 00024ca0: 42 4a 72 74 70 35 33 47 6b 76 7a 58 48 37 4f 41 BJrtp53GkvzXH7OA 00024cb0: 30 70 38 2f 6e 2f 75 31 73 61 74 66 2f 56 4a 68 0p8/n/u1satf/VJh 00024cc0: 74 52 31 6c 38 57 61 36 47 6d 61 75 67 37 68 61 tR1l8Wa6Gmaug7ha 00024cd0: 53 70 61 43 61 59 51 61 78 36 74 61 30 6d 6b 75 SpaCaYQax6ta0mku 00024ce0: 74 6c 62 2b 65 41 4f 53 47 31 61 6f 62 4d 38 31 tlb+eAOSG1aobM81 00024cf0: 44 39 41 34 69 53 31 52 52 6c 7a 42 42 6f 56 58 D9A4iS1RRlzBBoVX 00024d00: 36 74 55 31 53 36 57 45 32 4e 39 4f 52 59 36 44 6tU1S6WE2N9ORY6D 00024d10: 66 65 4c 52 43 34 6c 39 52 76 72 35 68 39 35 58 feLRC4l9Rvr5h95X 00024d20: 44 57 42 32 6d 52 31 64 34 57 46 75 64 70 73 67 DWB2mR1d4WFudpsg 00024d30: 56 59 77 69 54 77 54 33 31 6c 6a 73 6b 44 38 5a VYwiTwT31ljskD8Z 00024d40: 79 44 4f 6c 6d 35 44 6b 47 68 39 4e 2f 55 42 2f yDOlm5DkGh9N/UB/ 00024d50: 30 41 49 35 58 76 62 38 5a 42 6d 61 69 32 68 51 0AI5Xvb8ZBmai2hQ 00024d60: 34 42 57 4d 71 46 77 59 6e 7a 78 77 42 32 36 59 4BWMqFwYnzxwB26Y 00024d70: 48 53 4f 76 39 57 67 59 33 4a 58 6e 76 6f 4e 2b HSOv9WgY3JXnvoN+ 00024d80: 32 52 34 72 71 47 56 68 2f 4c 4c 44 4d 74 70 46 2R4rqGVh/LLDMtpF 00024d90: 50 2b 53 70 4d 47 4a 4e 57 76 62 49 6c 35 53 4f P+SpMGJNWvbIl5SO 00024da0: 6f 64 62 43 63 7a 57 32 52 4b 6c 65 6b 73 50 6f odbCczW2RKleksPo 00024db0: 55 65 47 45 7a 72 6a 74 4b 48 56 64 74 5a 41 2b UeGEzrjtKHVdtZA+ 00024dc0: 6b 66 71 4f 2b 72 56 78 2f 69 63 6c 43 71 77 6f kfqO+rVx/iclCqwo 00024dd0: 6f 70 65 70 76 4a 70 53 54 44 6a 54 2b 62 39 47 opepvJpSTDjT+b9G 00024de0: 57 79 6c 47 52 46 38 45 44 62 47 6c 77 36 65 55 WylGRF8EDbGlw6eU 00024df0: 7a 6d 4a 4d 39 35 4f 76 6f 7a 2b 6b 77 4c 58 33 zmJM95Ovoz+kwLX3 00024e00: 63 32 66 54 6a 46 65 59 45 73 45 37 76 55 5a 6d c2fTjFeYEsE7vUZm 00024e10: 33 6d 71 64 47 4a 75 4b 68 32 77 39 2f 51 47 53 3mqdGJuKh2w9/QGS 00024e20: 61 71 52 48 73 39 39 61 53 63 47 4f 64 44 71 6b aqRHs99aScGOdDqk 00024e30: 46 63 41 43 6f 71 64 62 42 6f 51 71 71 6a 61 6d FcACoqdbBoQqqjam 00024e40: 68 48 36 51 39 6e 67 33 39 4a 43 67 33 6c 72 47 hH6Q9ng39JCg3lrG 00024e50: 4a 77 64 35 30 51 6b 39 6f 76 6e 71 42 54 72 38 Jwd50Qk9ovnqBTr8 00024e60: 4d 4d 45 37 50 73 32 77 69 56 66 79 67 55 6d 50 MME7Ps2wiVfygUmP 00024e70: 6f 55 42 4a 4a 66 4a 57 58 35 4e 64 61 30 6e 75 oUBJJfJWX5Nda0nu 00024e80: 6e 63 62 46 6b 41 3d 3d 22 29 29 2c 4a 69 3d 6e ncbFkA==")),Ji=n 00024e90: 65 77 20 53 65 74 28 4b 69 28 51 69 29 29 2c 24 ew Set(Ki(Qi)),$ 00024ea0: 69 3d 6e 65 77 20 53 65 74 28 4b 69 28 51 69 29 i=new Set(Ki(Qi) 00024eb0: 29 2c 65 61 3d 66 75 6e 63 74 69 6f 6e 28 65 29 ),ea=function(e) 00024ec0: 7b 6c 65 74 20 74 3d 5b 5d 3b 66 6f 72 28 3b 3b {let t=[];for(;; 00024ed0: 29 7b 6c 65 74 20 6e 3d 65 28 29 3b 69 66 28 30 ){let n=e();if(0 00024ee0: 3d 3d 6e 29 62 72 65 61 6b 3b 74 2e 70 75 73 68 ==n)break;t.push 00024ef0: 28 58 69 28 6e 2c 65 29 29 7d 66 6f 72 28 3b 3b (Xi(n,e))}for(;; 00024f00: 29 7b 6c 65 74 20 6e 3d 65 28 29 2d 31 3b 69 66 ){let n=e()-1;if 00024f10: 28 6e 3c 30 29 62 72 65 61 6b 3b 74 2e 70 75 73 (n<0)break;t.pus 00024f20: 68 28 5a 69 28 6e 2c 65 29 29 7d 72 65 74 75 72 h(Zi(n,e))}retur 00024f30: 6e 20 66 75 6e 63 74 69 6f 6e 28 65 29 7b 63 6f n function(e){co 00024f40: 6e 73 74 20 74 3d 7b 7d 3b 66 6f 72 28 6c 65 74 nst t={};for(let 00024f50: 20 6e 3d 30 3b 6e 3c 65 2e 6c 65 6e 67 74 68 3b n=0;n<e.length; 00024f60: 6e 2b 2b 29 7b 63 6f 6e 73 74 20 72 3d 65 5b 6e n++){const r=e[n 00024f70: 5d 3b 74 5b 72 5b 30 5d 5d 3d 72 5b 31 5d 7d 72 ];t[r[0]]=r[1]}r 00024f80: 65 74 75 72 6e 20 74 7d 28 47 69 28 74 29 29 7d eturn t}(Gi(t))} 00024f90: 28 51 69 29 2c 74 61 3d 66 75 6e 63 74 69 6f 6e (Qi),ta=function 00024fa0: 28 65 29 7b 6c 65 74 20 74 3d 4b 69 28 65 29 2e (e){let t=Ki(e). 00024fb0: 73 6f 72 74 28 28 28 65 2c 74 29 3d 3e 65 2d 74 sort(((e,t)=>e-t 00024fc0: 29 29 3b 72 65 74 75 72 6e 20 66 75 6e 63 74 69 ));return functi 00024fd0: 6f 6e 20 6e 28 29 7b 6c 65 74 20 72 3d 5b 5d 3b on n(){let r=[]; 00024fe0: 66 6f 72 28 3b 3b 29 7b 6c 65 74 20 6f 3d 4b 69 for(;;){let o=Ki 00024ff0: 28 65 2c 74 29 3b 69 66 28 30 3d 3d 6f 2e 6c 65 (e,t);if(0==o.le 00025000: 6e 67 74 68 29 62 72 65 61 6b 3b 72 2e 70 75 73 ngth)break;r.pus 00025010: 68 28 7b 73 65 74 3a 6e 65 77 20 53 65 74 28 6f h({set:new Set(o 00025020: 29 2c 6e 6f 64 65 3a 6e 28 29 7d 29 7d 72 2e 73 ),node:n()})}r.s 00025030: 6f 72 74 28 28 28 65 2c 74 29 3d 3e 74 2e 73 65 ort(((e,t)=>t.se 00025040: 74 2e 73 69 7a 65 2d 65 2e 73 65 74 2e 73 69 7a t.size-e.set.siz 00025050: 65 29 29 3b 6c 65 74 20 6f 3d 65 28 29 2c 69 3d e));let o=e(),i= 00025060: 6f 25 33 3b 6f 3d 6f 2f 33 7c 30 3b 6c 65 74 20 o%3;o=o/3|0;let 00025070: 61 3d 21 21 28 31 26 6f 29 3b 72 65 74 75 72 6e a=!!(1&o);return 00025080: 20 6f 3e 3e 3d 31 2c 7b 62 72 61 6e 63 68 65 73 o>>=1,{branches 00025090: 3a 72 2c 76 61 6c 69 64 3a 69 2c 66 65 30 66 3a :r,valid:i,fe0f: 000250a0: 61 2c 73 61 76 65 3a 31 3d 3d 6f 2c 63 68 65 63 a,save:1==o,chec 000250b0: 6b 3a 32 3d 3d 6f 7d 7d 28 29 7d 28 51 69 29 2c k:2==o}}()}(Qi), 000250c0: 6e 61 3d 34 35 2c 72 61 3d 39 35 3b 66 75 6e 63 na=45,ra=95;func 000250d0: 74 69 6f 6e 20 6f 61 28 65 29 7b 72 65 74 75 72 tion oa(e){retur 000250e0: 6e 20 5a 65 28 65 29 7d 66 75 6e 63 74 69 6f 6e n Ze(e)}function 000250f0: 20 69 61 28 65 29 7b 72 65 74 75 72 6e 20 65 2e ia(e){return e. 00025100: 66 69 6c 74 65 72 28 28 65 3d 3e 36 35 30 33 39 filter((e=>65039 00025110: 21 3d 65 29 29 7d 66 75 6e 63 74 69 6f 6e 20 61 !=e))}function a 00025120: 61 28 65 29 7b 66 6f 72 28 6c 65 74 20 74 20 6f a(e){for(let t o 00025130: 66 20 65 2e 73 70 6c 69 74 28 22 2e 22 29 29 7b f e.split(".")){ 00025140: 6c 65 74 20 65 3d 6f 61 28 74 29 3b 74 72 79 7b let e=oa(t);try{ 00025150: 66 6f 72 28 6c 65 74 20 74 3d 65 2e 6c 61 73 74 for(let t=e.last 00025160: 49 6e 64 65 78 4f 66 28 72 61 29 2d 31 3b 74 3e IndexOf(ra)-1;t> 00025170: 3d 30 3b 74 2d 2d 29 69 66 28 65 5b 74 5d 21 3d =0;t--)if(e[t]!= 00025180: 3d 72 61 29 74 68 72 6f 77 20 6e 65 77 20 45 72 =ra)throw new Er 00025190: 72 6f 72 28 22 75 6e 64 65 72 73 63 6f 72 65 20 ror("underscore 000251a0: 6f 6e 6c 79 20 61 6c 6c 6f 77 65 64 20 61 74 20 only allowed at 000251b0: 73 74 61 72 74 22 29 3b 69 66 28 65 2e 6c 65 6e start");if(e.len 000251c0: 67 74 68 3e 3d 34 26 26 65 2e 65 76 65 72 79 28 gth>=4&&e.every( 000251d0: 28 65 3d 3e 65 3c 31 32 38 29 29 26 26 65 5b 32 (e=>e<128))&&e[2 000251e0: 5d 3d 3d 3d 6e 61 26 26 65 5b 33 5d 3d 3d 3d 6e ]===na&&e[3]===n 000251f0: 61 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f a)throw new Erro 00025200: 72 28 22 69 6e 76 61 6c 69 64 20 6c 61 62 65 6c r("invalid label 00025210: 20 65 78 74 65 6e 73 69 6f 6e 22 29 7d 63 61 74 extension")}cat 00025220: 63 68 28 65 29 7b 74 68 72 6f 77 20 6e 65 77 20 ch(e){throw new 00025230: 45 72 72 6f 72 28 60 49 6e 76 61 6c 69 64 20 6c Error(`Invalid l 00025240: 61 62 65 6c 20 22 24 7b 74 7d 22 3a 20 24 7b 65 abel "${t}": ${e 00025250: 2e 6d 65 73 73 61 67 65 7d 60 29 7d 7d 72 65 74 .message}`)}}ret 00025260: 75 72 6e 20 65 7d 66 75 6e 63 74 69 6f 6e 20 73 urn e}function s 00025270: 61 28 65 29 7b 72 65 74 75 72 6e 20 61 61 28 66 a(e){return aa(f 00025280: 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 6c 65 74 unction(e,t){let 00025290: 20 6e 3d 6f 61 28 65 29 2e 72 65 76 65 72 73 65 n=oa(e).reverse 000252a0: 28 29 2c 72 3d 5b 5d 3b 66 6f 72 28 3b 6e 2e 6c (),r=[];for(;n.l 000252b0: 65 6e 67 74 68 3b 29 7b 6c 65 74 20 65 3d 6c 61 ength;){let e=la 000252c0: 28 6e 29 3b 69 66 28 65 29 7b 72 2e 70 75 73 68 (n);if(e){r.push 000252d0: 28 2e 2e 2e 74 28 65 29 29 3b 63 6f 6e 74 69 6e (...t(e));contin 000252e0: 75 65 7d 6c 65 74 20 6f 3d 6e 2e 70 6f 70 28 29 ue}let o=n.pop() 000252f0: 3b 69 66 28 4a 69 2e 68 61 73 28 6f 29 29 7b 72 ;if(Ji.has(o)){r 00025300: 2e 70 75 73 68 28 6f 29 3b 63 6f 6e 74 69 6e 75 .push(o);continu 00025310: 65 7d 69 66 28 24 69 2e 68 61 73 28 6f 29 29 63 e}if($i.has(o))c 00025320: 6f 6e 74 69 6e 75 65 3b 6c 65 74 20 69 3d 65 61 ontinue;let i=ea 00025330: 5b 6f 5d 3b 69 66 28 21 69 29 74 68 72 6f 77 20 [o];if(!i)throw 00025340: 6e 65 77 20 45 72 72 6f 72 28 60 44 69 73 61 6c new Error(`Disal 00025350: 6c 6f 77 65 64 20 63 6f 64 65 70 6f 69 6e 74 3a lowed codepoint: 00025360: 20 30 78 24 7b 6f 2e 74 6f 53 74 72 69 6e 67 28 0x${o.toString( 00025370: 31 36 29 2e 74 6f 55 70 70 65 72 43 61 73 65 28 16).toUpperCase( 00025380: 29 7d 60 29 3b 72 2e 70 75 73 68 28 2e 2e 2e 69 )}`);r.push(...i 00025390: 29 7d 72 65 74 75 72 6e 20 61 61 28 28 6f 3d 53 )}return aa((o=S 000253a0: 74 72 69 6e 67 2e 66 72 6f 6d 43 6f 64 65 50 6f tring.fromCodePo 000253b0: 69 6e 74 28 2e 2e 2e 72 29 2c 6f 2e 6e 6f 72 6d int(...r),o.norm 000253c0: 61 6c 69 7a 65 28 22 4e 46 43 22 29 29 29 3b 76 alize("NFC")));v 000253d0: 61 72 20 6f 7d 28 65 2c 69 61 29 29 7d 66 75 6e ar o}(e,ia))}fun 000253e0: 63 74 69 6f 6e 20 6c 61 28 65 2c 74 29 7b 76 61 ction la(e,t){va 000253f0: 72 20 6e 3b 6c 65 74 20 72 2c 6f 2c 69 3d 74 61 r n;let r,o,i=ta 00025400: 2c 61 3d 5b 5d 2c 73 3d 65 2e 6c 65 6e 67 74 68 ,a=[],s=e.length 00025410: 3b 66 6f 72 28 74 26 26 28 74 2e 6c 65 6e 67 74 ;for(t&&(t.lengt 00025420: 68 3d 30 29 3b 73 3b 29 7b 6c 65 74 20 6c 3d 65 h=0);s;){let l=e 00025430: 5b 2d 2d 73 5d 3b 69 66 28 69 3d 6e 75 6c 6c 3d [--s];if(i=null= 00025440: 3d 3d 28 6e 3d 69 2e 62 72 61 6e 63 68 65 73 2e ==(n=i.branches. 00025450: 66 69 6e 64 28 28 65 3d 3e 65 2e 73 65 74 2e 68 find((e=>e.set.h 00025460: 61 73 28 6c 29 29 29 29 7c 7c 76 6f 69 64 20 30 as(l))))||void 0 00025470: 3d 3d 3d 6e 3f 76 6f 69 64 20 30 3a 6e 2e 6e 6f ===n?void 0:n.no 00025480: 64 65 2c 21 69 29 62 72 65 61 6b 3b 69 66 28 69 de,!i)break;if(i 00025490: 2e 73 61 76 65 29 6f 3d 6c 3b 65 6c 73 65 20 69 .save)o=l;else i 000254a0: 66 28 69 2e 63 68 65 63 6b 26 26 6c 3d 3d 3d 6f f(i.check&&l===o 000254b0: 29 62 72 65 61 6b 3b 61 2e 70 75 73 68 28 6c 29 )break;a.push(l) 000254c0: 2c 69 2e 66 65 30 66 26 26 28 61 2e 70 75 73 68 ,i.fe0f&&(a.push 000254d0: 28 36 35 30 33 39 29 2c 73 3e 30 26 26 36 35 30 (65039),s>0&&650 000254e0: 33 39 3d 3d 65 5b 73 2d 31 5d 26 26 73 2d 2d 29 39==e[s-1]&&s--) 000254f0: 2c 69 2e 76 61 6c 69 64 26 26 28 72 3d 61 2e 73 ,i.valid&&(r=a.s 00025500: 6c 69 63 65 28 29 2c 32 3d 3d 69 2e 76 61 6c 69 lice(),2==i.vali 00025510: 64 26 26 72 2e 73 70 6c 69 63 65 28 31 2c 31 29 d&&r.splice(1,1) 00025520: 2c 74 26 26 74 2e 70 75 73 68 28 2e 2e 2e 65 2e ,t&&t.push(...e. 00025530: 73 6c 69 63 65 28 73 29 2e 72 65 76 65 72 73 65 slice(s).reverse 00025540: 28 29 29 2c 65 2e 6c 65 6e 67 74 68 3d 73 29 7d ()),e.length=s)} 00025550: 72 65 74 75 72 6e 20 72 7d 63 6f 6e 73 74 20 63 return r}const c 00025560: 61 3d 6e 65 77 20 79 28 4a 72 29 2c 75 61 3d 6e a=new y(Jr),ua=n 00025570: 65 77 20 55 69 6e 74 38 41 72 72 61 79 28 33 32 ew Uint8Array(32 00025580: 29 3b 66 75 6e 63 74 69 6f 6e 20 64 61 28 65 29 );function da(e) 00025590: 7b 69 66 28 30 3d 3d 3d 65 2e 6c 65 6e 67 74 68 {if(0===e.length 000255a0: 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 )throw new Error 000255b0: 28 22 69 6e 76 61 6c 69 64 20 45 4e 53 20 6e 61 ("invalid ENS na 000255c0: 6d 65 3b 20 65 6d 70 74 79 20 63 6f 6d 70 6f 6e me; empty compon 000255d0: 65 6e 74 22 29 3b 72 65 74 75 72 6e 20 65 7d 66 ent");return e}f 000255e0: 75 6e 63 74 69 6f 6e 20 70 61 28 65 29 7b 63 6f unction pa(e){co 000255f0: 6e 73 74 20 74 3d 71 65 28 73 61 28 65 29 29 2c nst t=qe(sa(e)), 00025600: 6e 3d 5b 5d 3b 69 66 28 30 3d 3d 3d 65 2e 6c 65 n=[];if(0===e.le 00025610: 6e 67 74 68 29 72 65 74 75 72 6e 20 6e 3b 6c 65 ngth)return n;le 00025620: 74 20 72 3d 30 3b 66 6f 72 28 6c 65 74 20 65 3d t r=0;for(let e= 00025630: 30 3b 65 3c 74 2e 6c 65 6e 67 74 68 3b 65 2b 2b 0;e<t.length;e++ 00025640: 29 7b 34 36 3d 3d 3d 74 5b 65 5d 26 26 28 6e 2e ){46===t[e]&&(n. 00025650: 70 75 73 68 28 64 61 28 74 2e 73 6c 69 63 65 28 push(da(t.slice( 00025660: 72 2c 65 29 29 29 2c 72 3d 65 2b 31 29 7d 69 66 r,e))),r=e+1)}if 00025670: 28 72 3e 3d 74 2e 6c 65 6e 67 74 68 29 74 68 72 (r>=t.length)thr 00025680: 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e ow new Error("in 00025690: 76 61 6c 69 64 20 45 4e 53 20 6e 61 6d 65 3b 20 valid ENS name; 000256a0: 65 6d 70 74 79 20 63 6f 6d 70 6f 6e 65 6e 74 22 empty component" 000256b0: 29 3b 72 65 74 75 72 6e 20 6e 2e 70 75 73 68 28 );return n.push( 000256c0: 64 61 28 74 2e 73 6c 69 63 65 28 72 29 29 29 2c da(t.slice(r))), 000256d0: 6e 7d 66 75 6e 63 74 69 6f 6e 20 66 61 28 65 29 n}function fa(e) 000256e0: 7b 74 72 79 7b 72 65 74 75 72 6e 20 30 21 3d 3d {try{return 0!== 000256f0: 70 61 28 65 29 2e 6c 65 6e 67 74 68 7d 63 61 74 pa(e).length}cat 00025700: 63 68 28 65 29 7b 7d 72 65 74 75 72 6e 21 31 7d ch(e){}return!1} 00025710: 66 75 6e 63 74 69 6f 6e 20 68 61 28 65 29 7b 22 function ha(e){" 00025720: 73 74 72 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 string"!=typeof 00025730: 65 26 26 63 61 2e 74 68 72 6f 77 41 72 67 75 6d e&&ca.throwArgum 00025740: 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 entError("invali 00025750: 64 20 45 4e 53 20 6e 61 6d 65 3b 20 6e 6f 74 20 d ENS name; not 00025760: 61 20 73 74 72 69 6e 67 22 2c 22 6e 61 6d 65 22 a string","name" 00025770: 2c 65 29 3b 6c 65 74 20 74 3d 75 61 3b 63 6f 6e ,e);let t=ua;con 00025780: 73 74 20 6e 3d 70 61 28 65 29 3b 66 6f 72 28 3b st n=pa(e);for(; 00025790: 6e 2e 6c 65 6e 67 74 68 3b 29 74 3d 76 65 28 43 n.length;)t=ve(C 000257a0: 28 5b 74 2c 76 65 28 6e 2e 70 6f 70 28 29 29 5d ([t,ve(n.pop())] 000257b0: 29 29 3b 72 65 74 75 72 6e 20 52 28 74 29 7d 66 ));return R(t)}f 000257c0: 75 6e 63 74 69 6f 6e 20 6d 61 28 65 29 7b 72 65 unction ma(e){re 000257d0: 74 75 72 6e 20 52 28 43 28 70 61 28 65 29 2e 6d turn R(C(pa(e).m 000257e0: 61 70 28 28 65 3d 3e 7b 69 66 28 65 2e 6c 65 6e ap((e=>{if(e.len 000257f0: 67 74 68 3e 36 33 29 74 68 72 6f 77 20 6e 65 77 gth>63)throw new 00025800: 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 Error("invalid 00025810: 44 4e 53 20 65 6e 63 6f 64 65 64 20 65 6e 74 72 DNS encoded entr 00025820: 79 3b 20 6c 65 6e 67 74 68 20 65 78 63 65 65 64 y; length exceed 00025830: 73 20 36 33 20 62 79 74 65 73 22 29 3b 63 6f 6e s 63 bytes");con 00025840: 73 74 20 74 3d 6e 65 77 20 55 69 6e 74 38 41 72 st t=new Uint8Ar 00025850: 72 61 79 28 65 2e 6c 65 6e 67 74 68 2b 31 29 3b ray(e.length+1); 00025860: 72 65 74 75 72 6e 20 74 2e 73 65 74 28 65 2c 31 return t.set(e,1 00025870: 29 2c 74 5b 30 5d 3d 74 2e 6c 65 6e 67 74 68 2d ),t[0]=t.length- 00025880: 31 2c 74 7d 29 29 29 29 2b 22 30 30 22 7d 75 61 1,t}))))+"00"}ua 00025890: 2e 66 69 6c 6c 28 30 29 3b 76 61 72 20 67 61 3d .fill(0);var ga= 000258a0: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c 72 function(e,t,n,r 000258b0: 29 7b 72 65 74 75 72 6e 20 6e 65 77 28 6e 7c 7c ){return new(n|| 000258c0: 28 6e 3d 50 72 6f 6d 69 73 65 29 29 28 28 66 75 (n=Promise))((fu 000258d0: 6e 63 74 69 6f 6e 28 6f 2c 69 29 7b 66 75 6e 63 nction(o,i){func 000258e0: 74 69 6f 6e 20 61 28 65 29 7b 74 72 79 7b 6c 28 tion a(e){try{l( 000258f0: 72 2e 6e 65 78 74 28 65 29 29 7d 63 61 74 63 68 r.next(e))}catch 00025900: 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 69 (e){i(e)}}functi 00025910: 6f 6e 20 73 28 65 29 7b 74 72 79 7b 6c 28 72 2e on s(e){try{l(r. 00025920: 74 68 72 6f 77 28 65 29 29 7d 63 61 74 63 68 28 throw(e))}catch( 00025930: 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 69 6f e){i(e)}}functio 00025940: 6e 20 6c 28 65 29 7b 76 61 72 20 74 3b 65 2e 64 n l(e){var t;e.d 00025950: 6f 6e 65 3f 6f 28 65 2e 76 61 6c 75 65 29 3a 28 one?o(e.value):( 00025960: 74 3d 65 2e 76 61 6c 75 65 2c 74 20 69 6e 73 74 t=e.value,t inst 00025970: 61 6e 63 65 6f 66 20 6e 3f 74 3a 6e 65 77 20 6e anceof n?t:new n 00025980: 28 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b 65 28 ((function(e){e( 00025990: 74 29 7d 29 29 29 2e 74 68 65 6e 28 61 2c 73 29 t)}))).then(a,s) 000259a0: 7d 6c 28 28 72 3d 72 2e 61 70 70 6c 79 28 65 2c }l((r=r.apply(e, 000259b0: 74 7c 7c 5b 5d 29 29 2e 6e 65 78 74 28 29 29 7d t||[])).next())} 000259c0: 29 29 7d 3b 66 75 6e 63 74 69 6f 6e 20 62 61 28 ))};function ba( 000259d0: 65 2c 74 29 7b 72 65 74 75 72 6e 20 67 61 28 74 e,t){return ga(t 000259e0: 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 his,void 0,void 000259f0: 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6e 0,(function*(){n 00025a00: 75 6c 6c 3d 3d 74 26 26 28 74 3d 7b 7d 29 3b 63 ull==t&&(t={});c 00025a10: 6f 6e 73 74 20 6e 3d 7b 6d 65 74 68 6f 64 3a 74 onst n={method:t 00025a20: 2e 6d 65 74 68 6f 64 7c 7c 22 47 45 54 22 2c 68 .method||"GET",h 00025a30: 65 61 64 65 72 73 3a 74 2e 68 65 61 64 65 72 73 eaders:t.headers 00025a40: 7c 7c 7b 7d 2c 62 6f 64 79 3a 74 2e 62 6f 64 79 ||{},body:t.body 00025a50: 7c 7c 76 6f 69 64 20 30 7d 3b 69 66 28 21 30 21 ||void 0};if(!0! 00025a60: 3d 3d 74 2e 73 6b 69 70 46 65 74 63 68 53 65 74 ==t.skipFetchSet 00025a70: 75 70 26 26 28 6e 2e 6d 6f 64 65 3d 22 63 6f 72 up&&(n.mode="cor 00025a80: 73 22 2c 6e 2e 63 61 63 68 65 3d 22 6e 6f 2d 63 s",n.cache="no-c 00025a90: 61 63 68 65 22 2c 6e 2e 63 72 65 64 65 6e 74 69 ache",n.credenti 00025aa0: 61 6c 73 3d 22 73 61 6d 65 2d 6f 72 69 67 69 6e als="same-origin 00025ab0: 22 2c 6e 2e 72 65 64 69 72 65 63 74 3d 22 66 6f ",n.redirect="fo 00025ac0: 6c 6c 6f 77 22 2c 6e 2e 72 65 66 65 72 72 65 72 llow",n.referrer 00025ad0: 3d 22 63 6c 69 65 6e 74 22 29 2c 6e 75 6c 6c 21 ="client"),null! 00025ae0: 3d 74 2e 66 65 74 63 68 4f 70 74 69 6f 6e 73 29 =t.fetchOptions) 00025af0: 7b 63 6f 6e 73 74 20 65 3d 74 2e 66 65 74 63 68 {const e=t.fetch 00025b00: 4f 70 74 69 6f 6e 73 3b 65 2e 6d 6f 64 65 26 26 Options;e.mode&& 00025b10: 28 6e 2e 6d 6f 64 65 3d 65 2e 6d 6f 64 65 29 2c (n.mode=e.mode), 00025b20: 65 2e 63 61 63 68 65 26 26 28 6e 2e 63 61 63 68 e.cache&&(n.cach 00025b30: 65 3d 65 2e 63 61 63 68 65 29 2c 65 2e 63 72 65 e=e.cache),e.cre 00025b40: 64 65 6e 74 69 61 6c 73 26 26 28 6e 2e 63 72 65 dentials&&(n.cre 00025b50: 64 65 6e 74 69 61 6c 73 3d 65 2e 63 72 65 64 65 dentials=e.crede 00025b60: 6e 74 69 61 6c 73 29 2c 65 2e 72 65 64 69 72 65 ntials),e.redire 00025b70: 63 74 26 26 28 6e 2e 72 65 64 69 72 65 63 74 3d ct&&(n.redirect= 00025b80: 65 2e 72 65 64 69 72 65 63 74 29 2c 65 2e 72 65 e.redirect),e.re 00025b90: 66 65 72 72 65 72 26 26 28 6e 2e 72 65 66 65 72 ferrer&&(n.refer 00025ba0: 72 65 72 3d 65 2e 72 65 66 65 72 72 65 72 29 7d rer=e.referrer)} 00025bb0: 63 6f 6e 73 74 20 72 3d 79 69 65 6c 64 20 66 65 const r=yield fe 00025bc0: 74 63 68 28 65 2c 6e 29 2c 6f 3d 79 69 65 6c 64 tch(e,n),o=yield 00025bd0: 20 72 2e 61 72 72 61 79 42 75 66 66 65 72 28 29 r.arrayBuffer() 00025be0: 2c 69 3d 7b 7d 3b 72 65 74 75 72 6e 20 72 2e 68 ,i={};return r.h 00025bf0: 65 61 64 65 72 73 2e 66 6f 72 45 61 63 68 3f 72 eaders.forEach?r 00025c00: 2e 68 65 61 64 65 72 73 2e 66 6f 72 45 61 63 68 .headers.forEach 00025c10: 28 28 28 65 2c 74 29 3d 3e 7b 69 5b 74 2e 74 6f (((e,t)=>{i[t.to 00025c20: 4c 6f 77 65 72 43 61 73 65 28 29 5d 3d 65 7d 29 LowerCase()]=e}) 00025c30: 29 3a 72 2e 68 65 61 64 65 72 73 2e 6b 65 79 73 ):r.headers.keys 00025c40: 28 29 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b ().forEach((e=>{ 00025c50: 69 5b 65 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 i[e.toLowerCase( 00025c60: 29 5d 3d 72 2e 68 65 61 64 65 72 73 2e 67 65 74 )]=r.headers.get 00025c70: 28 65 29 7d 29 29 2c 7b 68 65 61 64 65 72 73 3a (e)})),{headers: 00025c80: 69 2c 73 74 61 74 75 73 43 6f 64 65 3a 72 2e 73 i,statusCode:r.s 00025c90: 74 61 74 75 73 2c 73 74 61 74 75 73 4d 65 73 73 tatus,statusMess 00025ca0: 61 67 65 3a 72 2e 73 74 61 74 75 73 54 65 78 74 age:r.statusText 00025cb0: 2c 62 6f 64 79 3a 54 28 6e 65 77 20 55 69 6e 74 ,body:T(new Uint 00025cc0: 38 41 72 72 61 79 28 6f 29 29 7d 7d 29 29 7d 76 8Array(o))}}))}v 00025cd0: 61 72 20 79 61 3d 66 75 6e 63 74 69 6f 6e 28 65 ar ya=function(e 00025ce0: 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 6e ,t,n,r){return n 00025cf0: 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 65 ew(n||(n=Promise 00025d00: 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c 69 ))((function(o,i 00025d10: 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 7b ){function a(e){ 00025d20: 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 29 try{l(r.next(e)) 00025d30: 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d }catch(e){i(e)}} 00025d40: 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 72 function s(e){tr 00025d50: 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 7d y{l(r.throw(e))} 00025d60: 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 catch(e){i(e)}}f 00025d70: 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 72 unction l(e){var 00025d80: 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 61 t;e.done?o(e.va 00025d90: 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 2c lue):(t=e.value, 00025da0: 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f 74 t instanceof n?t 00025db0: 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 6f 6e :new n((function 00025dc0: 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 65 (e){e(t)}))).the 00025dd0: 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 70 n(a,s)}l((r=r.ap 00025de0: 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 ply(e,t||[])).ne 00025df0: 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 20 xt())}))};const 00025e00: 76 61 3d 6e 65 77 20 79 28 22 77 65 62 2f 35 2e va=new y("web/5. 00025e10: 37 2e 31 22 29 3b 66 75 6e 63 74 69 6f 6e 20 53 7.1");function S 00025e20: 61 28 65 29 7b 72 65 74 75 72 6e 20 6e 65 77 20 a(e){return new 00025e30: 50 72 6f 6d 69 73 65 28 28 74 3d 3e 7b 73 65 74 Promise((t=>{set 00025e40: 54 69 6d 65 6f 75 74 28 74 2c 65 29 7d 29 29 7d Timeout(t,e)}))} 00025e50: 66 75 6e 63 74 69 6f 6e 20 45 61 28 65 2c 74 29 function Ea(e,t) 00025e60: 7b 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 74 75 {if(null==e)retu 00025e70: 72 6e 20 6e 75 6c 6c 3b 69 66 28 22 73 74 72 69 rn null;if("stri 00025e80: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 29 72 65 ng"==typeof e)re 00025e90: 74 75 72 6e 20 65 3b 69 66 28 5f 28 65 29 29 7b turn e;if(_(e)){ 00025ea0: 69 66 28 74 26 26 28 22 74 65 78 74 22 3d 3d 3d if(t&&("text"=== 00025eb0: 74 2e 73 70 6c 69 74 28 22 2f 22 29 5b 30 5d 7c t.split("/")[0]| 00025ec0: 7c 22 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 |"application/js 00025ed0: 6f 6e 22 3d 3d 3d 74 2e 73 70 6c 69 74 28 22 3b on"===t.split("; 00025ee0: 22 29 5b 30 5d 2e 74 72 69 6d 28 29 29 29 74 72 ")[0].trim()))tr 00025ef0: 79 7b 72 65 74 75 72 6e 20 58 65 28 65 29 7d 63 y{return Xe(e)}c 00025f00: 61 74 63 68 28 65 29 7b 7d 72 65 74 75 72 6e 20 atch(e){}return 00025f10: 52 28 65 29 7d 72 65 74 75 72 6e 20 65 7d 66 75 R(e)}return e}fu 00025f20: 6e 63 74 69 6f 6e 20 5f 61 28 65 2c 74 2c 6e 29 nction _a(e,t,n) 00025f30: 7b 63 6f 6e 73 74 20 72 3d 22 6f 62 6a 65 63 74 {const r="object 00025f40: 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 6e 75 6c "==typeof e&&nul 00025f50: 6c 21 3d 65 2e 74 68 72 6f 74 74 6c 65 4c 69 6d l!=e.throttleLim 00025f60: 69 74 3f 65 2e 74 68 72 6f 74 74 6c 65 4c 69 6d it?e.throttleLim 00025f70: 69 74 3a 31 32 3b 76 61 2e 61 73 73 65 72 74 41 it:12;va.assertA 00025f80: 72 67 75 6d 65 6e 74 28 72 3e 30 26 26 72 25 31 rgument(r>0&&r%1 00025f90: 3d 3d 30 2c 22 69 6e 76 61 6c 69 64 20 63 6f 6e ==0,"invalid con 00025fa0: 6e 65 63 74 69 6f 6e 20 74 68 72 6f 74 74 6c 65 nection throttle 00025fb0: 20 6c 69 6d 69 74 22 2c 22 63 6f 6e 6e 65 63 74 limit","connect 00025fc0: 69 6f 6e 2e 74 68 72 6f 74 74 6c 65 4c 69 6d 69 ion.throttleLimi 00025fd0: 74 22 2c 72 29 3b 63 6f 6e 73 74 20 6f 3d 22 6f t",r);const o="o 00025fe0: 62 6a 65 63 74 22 3d 3d 74 79 70 65 6f 66 20 65 bject"==typeof e 00025ff0: 3f 65 2e 74 68 72 6f 74 74 6c 65 43 61 6c 6c 62 ?e.throttleCallb 00026000: 61 63 6b 3a 6e 75 6c 6c 2c 69 3d 22 6f 62 6a 65 ack:null,i="obje 00026010: 63 74 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 22 ct"==typeof e&&" 00026020: 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f 66 20 number"==typeof 00026030: 65 2e 74 68 72 6f 74 74 6c 65 53 6c 6f 74 49 6e e.throttleSlotIn 00026040: 74 65 72 76 61 6c 3f 65 2e 74 68 72 6f 74 74 6c terval?e.throttl 00026050: 65 53 6c 6f 74 49 6e 74 65 72 76 61 6c 3a 31 30 eSlotInterval:10 00026060: 30 3b 76 61 2e 61 73 73 65 72 74 41 72 67 75 6d 0;va.assertArgum 00026070: 65 6e 74 28 69 3e 30 26 26 69 25 31 3d 3d 30 2c ent(i>0&&i%1==0, 00026080: 22 69 6e 76 61 6c 69 64 20 63 6f 6e 6e 65 63 74 "invalid connect 00026090: 69 6f 6e 20 74 68 72 6f 74 74 6c 65 20 73 6c 6f ion throttle slo 000260a0: 74 20 69 6e 74 65 72 76 61 6c 22 2c 22 63 6f 6e t interval","con 000260b0: 6e 65 63 74 69 6f 6e 2e 74 68 72 6f 74 74 6c 65 nection.throttle 000260c0: 53 6c 6f 74 49 6e 74 65 72 76 61 6c 22 2c 69 29 SlotInterval",i) 000260d0: 3b 63 6f 6e 73 74 20 61 3d 22 6f 62 6a 65 63 74 ;const a="object 000260e0: 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 21 21 65 "==typeof e&&!!e 000260f0: 2e 65 72 72 6f 72 50 61 73 73 54 68 72 6f 75 67 .errorPassThroug 00026100: 68 2c 73 3d 7b 7d 3b 6c 65 74 20 6c 3d 6e 75 6c h,s={};let l=nul 00026110: 6c 3b 63 6f 6e 73 74 20 63 3d 7b 6d 65 74 68 6f l;const c={metho 00026120: 64 3a 22 47 45 54 22 7d 3b 6c 65 74 20 75 3d 21 d:"GET"};let u=! 00026130: 31 2c 64 3d 31 32 65 34 3b 69 66 28 22 73 74 72 1,d=12e4;if("str 00026140: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 29 6c ing"==typeof e)l 00026150: 3d 65 3b 65 6c 73 65 20 69 66 28 22 6f 62 6a 65 =e;else if("obje 00026160: 63 74 22 3d 3d 74 79 70 65 6f 66 20 65 29 7b 69 ct"==typeof e){i 00026170: 66 28 6e 75 6c 6c 21 3d 65 26 26 6e 75 6c 6c 21 f(null!=e&&null! 00026180: 3d 65 2e 75 72 6c 7c 7c 76 61 2e 74 68 72 6f 77 =e.url||va.throw 00026190: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 6d ArgumentError("m 000261a0: 69 73 73 69 6e 67 20 55 52 4c 22 2c 22 63 6f 6e issing URL","con 000261b0: 6e 65 63 74 69 6f 6e 2e 75 72 6c 22 2c 65 29 2c nection.url",e), 000261c0: 6c 3d 65 2e 75 72 6c 2c 22 6e 75 6d 62 65 72 22 l=e.url,"number" 000261d0: 3d 3d 74 79 70 65 6f 66 20 65 2e 74 69 6d 65 6f ==typeof e.timeo 000261e0: 75 74 26 26 65 2e 74 69 6d 65 6f 75 74 3e 30 26 ut&&e.timeout>0& 000261f0: 26 28 64 3d 65 2e 74 69 6d 65 6f 75 74 29 2c 65 &(d=e.timeout),e 00026200: 2e 68 65 61 64 65 72 73 29 66 6f 72 28 63 6f 6e .headers)for(con 00026210: 73 74 20 74 20 69 6e 20 65 2e 68 65 61 64 65 72 st t in e.header 00026220: 73 29 73 5b 74 2e 74 6f 4c 6f 77 65 72 43 61 73 s)s[t.toLowerCas 00026230: 65 28 29 5d 3d 7b 6b 65 79 3a 74 2c 76 61 6c 75 e()]={key:t,valu 00026240: 65 3a 53 74 72 69 6e 67 28 65 2e 68 65 61 64 65 e:String(e.heade 00026250: 72 73 5b 74 5d 29 7d 2c 5b 22 69 66 2d 6e 6f 6e rs[t])},["if-non 00026260: 65 2d 6d 61 74 63 68 22 2c 22 69 66 2d 6d 6f 64 e-match","if-mod 00026270: 69 66 69 65 64 2d 73 69 6e 63 65 22 5d 2e 69 6e ified-since"].in 00026280: 64 65 78 4f 66 28 74 2e 74 6f 4c 6f 77 65 72 43 dexOf(t.toLowerC 00026290: 61 73 65 28 29 29 3e 3d 30 26 26 28 75 3d 21 30 ase())>=0&&(u=!0 000262a0: 29 3b 69 66 28 63 2e 61 6c 6c 6f 77 47 7a 69 70 );if(c.allowGzip 000262b0: 3d 21 21 65 2e 61 6c 6c 6f 77 47 7a 69 70 2c 6e =!!e.allowGzip,n 000262c0: 75 6c 6c 21 3d 65 2e 75 73 65 72 26 26 6e 75 6c ull!=e.user&&nul 000262d0: 6c 21 3d 65 2e 70 61 73 73 77 6f 72 64 29 7b 22 l!=e.password){" 000262e0: 68 74 74 70 73 3a 22 21 3d 3d 6c 2e 73 75 62 73 https:"!==l.subs 000262f0: 74 72 69 6e 67 28 30 2c 36 29 26 26 21 30 21 3d tring(0,6)&&!0!= 00026300: 3d 65 2e 61 6c 6c 6f 77 49 6e 73 65 63 75 72 65 =e.allowInsecure 00026310: 41 75 74 68 65 6e 74 69 63 61 74 69 6f 6e 26 26 Authentication&& 00026320: 76 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 62 va.throwError("b 00026330: 61 73 69 63 20 61 75 74 68 65 6e 74 69 63 61 74 asic authenticat 00026340: 69 6f 6e 20 72 65 71 75 69 72 65 73 20 61 20 73 ion requires a s 00026350: 65 63 75 72 65 20 68 74 74 70 73 20 75 72 6c 22 ecure https url" 00026360: 2c 79 2e 65 72 72 6f 72 73 2e 49 4e 56 41 4c 49 ,y.errors.INVALI 00026370: 44 5f 41 52 47 55 4d 45 4e 54 2c 7b 61 72 67 75 D_ARGUMENT,{argu 00026380: 6d 65 6e 74 3a 22 75 72 6c 22 2c 75 72 6c 3a 6c ment:"url",url:l 00026390: 2c 75 73 65 72 3a 65 2e 75 73 65 72 2c 70 61 73 ,user:e.user,pas 000263a0: 73 77 6f 72 64 3a 22 5b 52 45 44 41 43 54 45 44 sword:"[REDACTED 000263b0: 5d 22 7d 29 3b 63 6f 6e 73 74 20 74 3d 65 2e 75 ]"});const t=e.u 000263c0: 73 65 72 2b 22 3a 22 2b 65 2e 70 61 73 73 77 6f ser+":"+e.passwo 000263d0: 72 64 3b 73 2e 61 75 74 68 6f 72 69 7a 61 74 69 rd;s.authorizati 000263e0: 6f 6e 3d 7b 6b 65 79 3a 22 41 75 74 68 6f 72 69 on={key:"Authori 000263f0: 7a 61 74 69 6f 6e 22 2c 76 61 6c 75 65 3a 22 42 zation",value:"B 00026400: 61 73 69 63 20 22 2b 7a 69 28 71 65 28 74 29 29 asic "+zi(qe(t)) 00026410: 7d 7d 6e 75 6c 6c 21 3d 65 2e 73 6b 69 70 46 65 }}null!=e.skipFe 00026420: 74 63 68 53 65 74 75 70 26 26 28 63 2e 73 6b 69 tchSetup&&(c.ski 00026430: 70 46 65 74 63 68 53 65 74 75 70 3d 21 21 65 2e pFetchSetup=!!e. 00026440: 73 6b 69 70 46 65 74 63 68 53 65 74 75 70 29 2c skipFetchSetup), 00026450: 6e 75 6c 6c 21 3d 65 2e 66 65 74 63 68 4f 70 74 null!=e.fetchOpt 00026460: 69 6f 6e 73 26 26 28 63 2e 66 65 74 63 68 4f 70 ions&&(c.fetchOp 00026470: 74 69 6f 6e 73 3d 69 65 28 65 2e 66 65 74 63 68 tions=ie(e.fetch 00026480: 4f 70 74 69 6f 6e 73 29 29 7d 63 6f 6e 73 74 20 Options))}const 00026490: 70 3d 6e 65 77 20 52 65 67 45 78 70 28 22 5e 64 p=new RegExp("^d 000264a0: 61 74 61 3a 28 5b 5e 3b 3a 5d 2a 29 3f 28 3b 62 ata:([^;:]*)?(;b 000264b0: 61 73 65 36 34 29 3f 2c 28 2e 2a 29 24 22 2c 22 ase64)?,(.*)$"," 000264c0: 69 22 29 2c 66 3d 6c 3f 6c 2e 6d 61 74 63 68 28 i"),f=l?l.match( 000264d0: 70 29 3a 6e 75 6c 6c 3b 69 66 28 66 29 74 72 79 p):null;if(f)try 000264e0: 7b 63 6f 6e 73 74 20 65 3d 7b 73 74 61 74 75 73 {const e={status 000264f0: 43 6f 64 65 3a 32 30 30 2c 73 74 61 74 75 73 4d Code:200,statusM 00026500: 65 73 73 61 67 65 3a 22 4f 4b 22 2c 68 65 61 64 essage:"OK",head 00026510: 65 72 73 3a 7b 22 63 6f 6e 74 65 6e 74 2d 74 79 ers:{"content-ty 00026520: 70 65 22 3a 66 5b 31 5d 7c 7c 22 74 65 78 74 2f pe":f[1]||"text/ 00026530: 70 6c 61 69 6e 22 7d 2c 62 6f 64 79 3a 66 5b 32 plain"},body:f[2 00026540: 5d 3f 6a 69 28 66 5b 33 5d 29 3a 28 68 3d 66 5b ]?ji(f[3]):(h=f[ 00026550: 33 5d 2c 71 65 28 68 2e 72 65 70 6c 61 63 65 28 3],qe(h.replace( 00026560: 2f 25 28 5b 30 2d 39 61 2d 66 5d 5b 30 2d 39 61 /%([0-9a-f][0-9a 00026570: 2d 66 5d 29 2f 67 69 2c 28 28 65 2c 74 29 3d 3e -f])/gi,((e,t)=> 00026580: 53 74 72 69 6e 67 2e 66 72 6f 6d 43 68 61 72 43 String.fromCharC 00026590: 6f 64 65 28 70 61 72 73 65 49 6e 74 28 74 2c 31 ode(parseInt(t,1 000265a0: 36 29 29 29 29 29 29 7d 3b 6c 65 74 20 74 3d 65 6))))))};let t=e 000265b0: 2e 62 6f 64 79 3b 72 65 74 75 72 6e 20 6e 26 26 .body;return n&& 000265c0: 28 74 3d 6e 28 65 2e 62 6f 64 79 2c 65 29 29 2c (t=n(e.body,e)), 000265d0: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 000265e0: 74 29 7d 63 61 74 63 68 28 65 29 7b 76 61 2e 74 t)}catch(e){va.t 000265f0: 68 72 6f 77 45 72 72 6f 72 28 22 70 72 6f 63 65 hrowError("proce 00026600: 73 73 69 6e 67 20 72 65 73 70 6f 6e 73 65 20 65 ssing response e 00026610: 72 72 6f 72 22 2c 79 2e 65 72 72 6f 72 73 2e 53 rror",y.errors.S 00026620: 45 52 56 45 52 5f 45 52 52 4f 52 2c 7b 62 6f 64 ERVER_ERROR,{bod 00026630: 79 3a 45 61 28 66 5b 31 5d 2c 66 5b 32 5d 29 2c y:Ea(f[1],f[2]), 00026640: 65 72 72 6f 72 3a 65 2c 72 65 71 75 65 73 74 42 error:e,requestB 00026650: 6f 64 79 3a 6e 75 6c 6c 2c 72 65 71 75 65 73 74 ody:null,request 00026660: 4d 65 74 68 6f 64 3a 22 47 45 54 22 2c 75 72 6c Method:"GET",url 00026670: 3a 6c 7d 29 7d 76 61 72 20 68 3b 74 26 26 28 63 :l})}var h;t&&(c 00026680: 2e 6d 65 74 68 6f 64 3d 22 50 4f 53 54 22 2c 63 .method="POST",c 00026690: 2e 62 6f 64 79 3d 74 2c 6e 75 6c 6c 3d 3d 73 5b .body=t,null==s[ 000266a0: 22 63 6f 6e 74 65 6e 74 2d 74 79 70 65 22 5d 26 "content-type"]& 000266b0: 26 28 73 5b 22 63 6f 6e 74 65 6e 74 2d 74 79 70 &(s["content-typ 000266c0: 65 22 5d 3d 7b 6b 65 79 3a 22 43 6f 6e 74 65 6e e"]={key:"Conten 000266d0: 74 2d 54 79 70 65 22 2c 76 61 6c 75 65 3a 22 61 t-Type",value:"a 000266e0: 70 70 6c 69 63 61 74 69 6f 6e 2f 6f 63 74 65 74 pplication/octet 000266f0: 2d 73 74 72 65 61 6d 22 7d 29 2c 6e 75 6c 6c 3d -stream"}),null= 00026700: 3d 73 5b 22 63 6f 6e 74 65 6e 74 2d 6c 65 6e 67 =s["content-leng 00026710: 74 68 22 5d 26 26 28 73 5b 22 63 6f 6e 74 65 6e th"]&&(s["conten 00026720: 74 2d 6c 65 6e 67 74 68 22 5d 3d 7b 6b 65 79 3a t-length"]={key: 00026730: 22 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 22 "Content-Length" 00026740: 2c 76 61 6c 75 65 3a 53 74 72 69 6e 67 28 74 2e ,value:String(t. 00026750: 6c 65 6e 67 74 68 29 7d 29 29 3b 63 6f 6e 73 74 length)}));const 00026760: 20 6d 3d 7b 7d 3b 4f 62 6a 65 63 74 2e 6b 65 79 m={};Object.key 00026770: 73 28 73 29 2e 66 6f 72 45 61 63 68 28 28 65 3d s(s).forEach((e= 00026780: 3e 7b 63 6f 6e 73 74 20 74 3d 73 5b 65 5d 3b 6d >{const t=s[e];m 00026790: 5b 74 2e 6b 65 79 5d 3d 74 2e 76 61 6c 75 65 7d [t.key]=t.value} 000267a0: 29 29 2c 63 2e 68 65 61 64 65 72 73 3d 6d 3b 63 )),c.headers=m;c 000267b0: 6f 6e 73 74 20 67 3d 66 75 6e 63 74 69 6f 6e 28 onst g=function( 000267c0: 29 7b 6c 65 74 20 65 3d 6e 75 6c 6c 3b 72 65 74 ){let e=null;ret 000267d0: 75 72 6e 7b 70 72 6f 6d 69 73 65 3a 6e 65 77 20 urn{promise:new 000267e0: 50 72 6f 6d 69 73 65 28 28 66 75 6e 63 74 69 6f Promise((functio 000267f0: 6e 28 74 2c 6e 29 7b 64 26 26 28 65 3d 73 65 74 n(t,n){d&&(e=set 00026800: 54 69 6d 65 6f 75 74 28 28 28 29 3d 3e 7b 6e 75 Timeout((()=>{nu 00026810: 6c 6c 21 3d 65 26 26 28 65 3d 6e 75 6c 6c 2c 6e ll!=e&&(e=null,n 00026820: 28 76 61 2e 6d 61 6b 65 45 72 72 6f 72 28 22 74 (va.makeError("t 00026830: 69 6d 65 6f 75 74 22 2c 79 2e 65 72 72 6f 72 73 imeout",y.errors 00026840: 2e 54 49 4d 45 4f 55 54 2c 7b 72 65 71 75 65 73 .TIMEOUT,{reques 00026850: 74 42 6f 64 79 3a 45 61 28 63 2e 62 6f 64 79 2c tBody:Ea(c.body, 00026860: 6d 5b 22 63 6f 6e 74 65 6e 74 2d 74 79 70 65 22 m["content-type" 00026870: 5d 29 2c 72 65 71 75 65 73 74 4d 65 74 68 6f 64 ]),requestMethod 00026880: 3a 63 2e 6d 65 74 68 6f 64 2c 74 69 6d 65 6f 75 :c.method,timeou 00026890: 74 3a 64 2c 75 72 6c 3a 6c 7d 29 29 29 7d 29 2c t:d,url:l})))}), 000268a0: 64 29 29 7d 29 29 2c 63 61 6e 63 65 6c 3a 66 75 d))})),cancel:fu 000268b0: 6e 63 74 69 6f 6e 28 29 7b 6e 75 6c 6c 21 3d 65 nction(){null!=e 000268c0: 26 26 28 63 6c 65 61 72 54 69 6d 65 6f 75 74 28 &&(clearTimeout( 000268d0: 65 29 2c 65 3d 6e 75 6c 6c 29 7d 7d 7d 28 29 2c e),e=null)}}}(), 000268e0: 62 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 65 74 b=function(){ret 000268f0: 75 72 6e 20 79 61 28 74 68 69 73 2c 76 6f 69 64 urn ya(this,void 00026900: 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 0,void 0,(funct 00026910: 69 6f 6e 2a 28 29 7b 66 6f 72 28 6c 65 74 20 65 ion*(){for(let e 00026920: 3d 30 3b 65 3c 72 3b 65 2b 2b 29 7b 6c 65 74 20 =0;e<r;e++){let 00026930: 74 3d 6e 75 6c 6c 3b 74 72 79 7b 69 66 28 74 3d t=null;try{if(t= 00026940: 79 69 65 6c 64 20 62 61 28 6c 2c 63 29 2c 65 3c yield ba(l,c),e< 00026950: 72 29 69 66 28 33 30 31 3d 3d 3d 74 2e 73 74 61 r)if(301===t.sta 00026960: 74 75 73 43 6f 64 65 7c 7c 33 30 32 3d 3d 3d 74 tusCode||302===t 00026970: 2e 73 74 61 74 75 73 43 6f 64 65 29 7b 63 6f 6e .statusCode){con 00026980: 73 74 20 65 3d 74 2e 68 65 61 64 65 72 73 2e 6c st e=t.headers.l 00026990: 6f 63 61 74 69 6f 6e 7c 7c 22 22 3b 69 66 28 22 ocation||"";if(" 000269a0: 47 45 54 22 3d 3d 3d 63 2e 6d 65 74 68 6f 64 26 GET"===c.method& 000269b0: 26 65 2e 6d 61 74 63 68 28 2f 5e 68 74 74 70 73 &e.match(/^https 000269c0: 3a 2f 29 29 7b 6c 3d 74 2e 68 65 61 64 65 72 73 :/)){l=t.headers 000269d0: 2e 6c 6f 63 61 74 69 6f 6e 3b 63 6f 6e 74 69 6e .location;contin 000269e0: 75 65 7d 7d 65 6c 73 65 20 69 66 28 34 32 39 3d ue}}else if(429= 000269f0: 3d 3d 74 2e 73 74 61 74 75 73 43 6f 64 65 29 7b ==t.statusCode){ 00026a00: 6c 65 74 20 6e 3d 21 30 3b 69 66 28 6f 26 26 28 let n=!0;if(o&&( 00026a10: 6e 3d 79 69 65 6c 64 20 6f 28 65 2c 6c 29 29 2c n=yield o(e,l)), 00026a20: 6e 29 7b 6c 65 74 20 6e 3d 30 3b 63 6f 6e 73 74 n){let n=0;const 00026a30: 20 72 3d 74 2e 68 65 61 64 65 72 73 5b 22 72 65 r=t.headers["re 00026a40: 74 72 79 2d 61 66 74 65 72 22 5d 3b 6e 3d 22 73 try-after"];n="s 00026a50: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 72 tring"==typeof r 00026a60: 26 26 72 2e 6d 61 74 63 68 28 2f 5e 5b 31 2d 39 &&r.match(/^[1-9 00026a70: 5d 5b 30 2d 39 5d 2a 24 2f 29 3f 31 65 33 2a 70 ][0-9]*$/)?1e3*p 00026a80: 61 72 73 65 49 6e 74 28 72 29 3a 69 2a 70 61 72 arseInt(r):i*par 00026a90: 73 65 49 6e 74 28 53 74 72 69 6e 67 28 4d 61 74 seInt(String(Mat 00026aa0: 68 2e 72 61 6e 64 6f 6d 28 29 2a 4d 61 74 68 2e h.random()*Math. 00026ab0: 70 6f 77 28 32 2c 65 29 29 29 2c 79 69 65 6c 64 pow(2,e))),yield 00026ac0: 20 53 61 28 6e 29 3b 63 6f 6e 74 69 6e 75 65 7d Sa(n);continue} 00026ad0: 7d 7d 63 61 74 63 68 28 65 29 7b 74 3d 65 2e 72 }}catch(e){t=e.r 00026ae0: 65 73 70 6f 6e 73 65 2c 6e 75 6c 6c 3d 3d 74 26 esponse,null==t& 00026af0: 26 28 67 2e 63 61 6e 63 65 6c 28 29 2c 76 61 2e &(g.cancel(),va. 00026b00: 74 68 72 6f 77 45 72 72 6f 72 28 22 6d 69 73 73 throwError("miss 00026b10: 69 6e 67 20 72 65 73 70 6f 6e 73 65 22 2c 79 2e ing response",y. 00026b20: 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 errors.SERVER_ER 00026b30: 52 4f 52 2c 7b 72 65 71 75 65 73 74 42 6f 64 79 ROR,{requestBody 00026b40: 3a 45 61 28 63 2e 62 6f 64 79 2c 6d 5b 22 63 6f :Ea(c.body,m["co 00026b50: 6e 74 65 6e 74 2d 74 79 70 65 22 5d 29 2c 72 65 ntent-type"]),re 00026b60: 71 75 65 73 74 4d 65 74 68 6f 64 3a 63 2e 6d 65 questMethod:c.me 00026b70: 74 68 6f 64 2c 73 65 72 76 65 72 45 72 72 6f 72 thod,serverError 00026b80: 3a 65 2c 75 72 6c 3a 6c 7d 29 29 7d 6c 65 74 20 :e,url:l}))}let 00026b90: 73 3d 74 2e 62 6f 64 79 3b 69 66 28 75 26 26 33 s=t.body;if(u&&3 00026ba0: 30 34 3d 3d 3d 74 2e 73 74 61 74 75 73 43 6f 64 04===t.statusCod 00026bb0: 65 3f 73 3d 6e 75 6c 6c 3a 21 61 26 26 28 74 2e e?s=null:!a&&(t. 00026bc0: 73 74 61 74 75 73 43 6f 64 65 3c 32 30 30 7c 7c statusCode<200|| 00026bd0: 74 2e 73 74 61 74 75 73 43 6f 64 65 3e 3d 33 30 t.statusCode>=30 00026be0: 30 29 26 26 28 67 2e 63 61 6e 63 65 6c 28 29 2c 0)&&(g.cancel(), 00026bf0: 76 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 62 va.throwError("b 00026c00: 61 64 20 72 65 73 70 6f 6e 73 65 22 2c 79 2e 65 ad response",y.e 00026c10: 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 52 rrors.SERVER_ERR 00026c20: 4f 52 2c 7b 73 74 61 74 75 73 3a 74 2e 73 74 61 OR,{status:t.sta 00026c30: 74 75 73 43 6f 64 65 2c 68 65 61 64 65 72 73 3a tusCode,headers: 00026c40: 74 2e 68 65 61 64 65 72 73 2c 62 6f 64 79 3a 45 t.headers,body:E 00026c50: 61 28 73 2c 74 2e 68 65 61 64 65 72 73 3f 74 2e a(s,t.headers?t. 00026c60: 68 65 61 64 65 72 73 5b 22 63 6f 6e 74 65 6e 74 headers["content 00026c70: 2d 74 79 70 65 22 5d 3a 6e 75 6c 6c 29 2c 72 65 -type"]:null),re 00026c80: 71 75 65 73 74 42 6f 64 79 3a 45 61 28 63 2e 62 questBody:Ea(c.b 00026c90: 6f 64 79 2c 6d 5b 22 63 6f 6e 74 65 6e 74 2d 74 ody,m["content-t 00026ca0: 79 70 65 22 5d 29 2c 72 65 71 75 65 73 74 4d 65 ype"]),requestMe 00026cb0: 74 68 6f 64 3a 63 2e 6d 65 74 68 6f 64 2c 75 72 thod:c.method,ur 00026cc0: 6c 3a 6c 7d 29 29 2c 6e 29 74 72 79 7b 63 6f 6e l:l})),n)try{con 00026cd0: 73 74 20 65 3d 79 69 65 6c 64 20 6e 28 73 2c 74 st e=yield n(s,t 00026ce0: 29 3b 72 65 74 75 72 6e 20 67 2e 63 61 6e 63 65 );return g.cance 00026cf0: 6c 28 29 2c 65 7d 63 61 74 63 68 28 6e 29 7b 69 l(),e}catch(n){i 00026d00: 66 28 6e 2e 74 68 72 6f 74 74 6c 65 52 65 74 72 f(n.throttleRetr 00026d10: 79 26 26 65 3c 72 29 7b 6c 65 74 20 74 3d 21 30 y&&e<r){let t=!0 00026d20: 3b 69 66 28 6f 26 26 28 74 3d 79 69 65 6c 64 20 ;if(o&&(t=yield 00026d30: 6f 28 65 2c 6c 29 29 2c 74 29 7b 63 6f 6e 73 74 o(e,l)),t){const 00026d40: 20 74 3d 69 2a 70 61 72 73 65 49 6e 74 28 53 74 t=i*parseInt(St 00026d50: 72 69 6e 67 28 4d 61 74 68 2e 72 61 6e 64 6f 6d ring(Math.random 00026d60: 28 29 2a 4d 61 74 68 2e 70 6f 77 28 32 2c 65 29 ()*Math.pow(2,e) 00026d70: 29 29 3b 79 69 65 6c 64 20 53 61 28 74 29 3b 63 ));yield Sa(t);c 00026d80: 6f 6e 74 69 6e 75 65 7d 7d 67 2e 63 61 6e 63 65 ontinue}}g.cance 00026d90: 6c 28 29 2c 76 61 2e 74 68 72 6f 77 45 72 72 6f l(),va.throwErro 00026da0: 72 28 22 70 72 6f 63 65 73 73 69 6e 67 20 72 65 r("processing re 00026db0: 73 70 6f 6e 73 65 20 65 72 72 6f 72 22 2c 79 2e sponse error",y. 00026dc0: 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 errors.SERVER_ER 00026dd0: 52 4f 52 2c 7b 62 6f 64 79 3a 45 61 28 73 2c 74 ROR,{body:Ea(s,t 00026de0: 2e 68 65 61 64 65 72 73 3f 74 2e 68 65 61 64 65 .headers?t.heade 00026df0: 72 73 5b 22 63 6f 6e 74 65 6e 74 2d 74 79 70 65 rs["content-type 00026e00: 22 5d 3a 6e 75 6c 6c 29 2c 65 72 72 6f 72 3a 6e "]:null),error:n 00026e10: 2c 72 65 71 75 65 73 74 42 6f 64 79 3a 45 61 28 ,requestBody:Ea( 00026e20: 63 2e 62 6f 64 79 2c 6d 5b 22 63 6f 6e 74 65 6e c.body,m["conten 00026e30: 74 2d 74 79 70 65 22 5d 29 2c 72 65 71 75 65 73 t-type"]),reques 00026e40: 74 4d 65 74 68 6f 64 3a 63 2e 6d 65 74 68 6f 64 tMethod:c.method 00026e50: 2c 75 72 6c 3a 6c 7d 29 7d 72 65 74 75 72 6e 20 ,url:l})}return 00026e60: 67 2e 63 61 6e 63 65 6c 28 29 2c 73 7d 72 65 74 g.cancel(),s}ret 00026e70: 75 72 6e 20 76 61 2e 74 68 72 6f 77 45 72 72 6f urn va.throwErro 00026e80: 72 28 22 66 61 69 6c 65 64 20 72 65 73 70 6f 6e r("failed respon 00026e90: 73 65 22 2c 79 2e 65 72 72 6f 72 73 2e 53 45 52 se",y.errors.SER 00026ea0: 56 45 52 5f 45 52 52 4f 52 2c 7b 72 65 71 75 65 VER_ERROR,{reque 00026eb0: 73 74 42 6f 64 79 3a 45 61 28 63 2e 62 6f 64 79 stBody:Ea(c.body 00026ec0: 2c 6d 5b 22 63 6f 6e 74 65 6e 74 2d 74 79 70 65 ,m["content-type 00026ed0: 22 5d 29 2c 72 65 71 75 65 73 74 4d 65 74 68 6f "]),requestMetho 00026ee0: 64 3a 63 2e 6d 65 74 68 6f 64 2c 75 72 6c 3a 6c d:c.method,url:l 00026ef0: 7d 29 7d 29 29 7d 28 29 3b 72 65 74 75 72 6e 20 })}))}();return 00026f00: 50 72 6f 6d 69 73 65 2e 72 61 63 65 28 5b 67 2e Promise.race([g. 00026f10: 70 72 6f 6d 69 73 65 2c 62 5d 29 7d 66 75 6e 63 promise,b])}func 00026f20: 74 69 6f 6e 20 77 61 28 65 2c 74 2c 6e 29 7b 6c tion wa(e,t,n){l 00026f30: 65 74 20 72 3d 6e 75 6c 6c 3b 69 66 28 6e 75 6c et r=null;if(nul 00026f40: 6c 21 3d 74 29 7b 72 3d 71 65 28 74 29 3b 63 6f l!=t){r=qe(t);co 00026f50: 6e 73 74 20 6e 3d 22 73 74 72 69 6e 67 22 3d 3d nst n="string"== 00026f60: 74 79 70 65 6f 66 20 65 3f 7b 75 72 6c 3a 65 7d typeof e?{url:e} 00026f70: 3a 69 65 28 65 29 3b 69 66 28 6e 2e 68 65 61 64 :ie(e);if(n.head 00026f80: 65 72 73 29 7b 30 21 3d 3d 4f 62 6a 65 63 74 2e ers){0!==Object. 00026f90: 6b 65 79 73 28 6e 2e 68 65 61 64 65 72 73 29 2e keys(n.headers). 00026fa0: 66 69 6c 74 65 72 28 28 65 3d 3e 22 63 6f 6e 74 filter((e=>"cont 00026fb0: 65 6e 74 2d 74 79 70 65 22 3d 3d 3d 65 2e 74 6f ent-type"===e.to 00026fc0: 4c 6f 77 65 72 43 61 73 65 28 29 29 29 2e 6c 65 LowerCase())).le 00026fd0: 6e 67 74 68 7c 7c 28 6e 2e 68 65 61 64 65 72 73 ngth||(n.headers 00026fe0: 3d 69 65 28 6e 2e 68 65 61 64 65 72 73 29 2c 6e =ie(n.headers),n 00026ff0: 2e 68 65 61 64 65 72 73 5b 22 63 6f 6e 74 65 6e .headers["conten 00027000: 74 2d 74 79 70 65 22 5d 3d 22 61 70 70 6c 69 63 t-type"]="applic 00027010: 61 74 69 6f 6e 2f 6a 73 6f 6e 22 29 7d 65 6c 73 ation/json")}els 00027020: 65 20 6e 2e 68 65 61 64 65 72 73 3d 7b 22 63 6f e n.headers={"co 00027030: 6e 74 65 6e 74 2d 74 79 70 65 22 3a 22 61 70 70 ntent-type":"app 00027040: 6c 69 63 61 74 69 6f 6e 2f 6a 73 6f 6e 22 7d 3b lication/json"}; 00027050: 65 3d 6e 7d 72 65 74 75 72 6e 20 5f 61 28 65 2c e=n}return _a(e, 00027060: 72 2c 28 28 65 2c 74 29 3d 3e 7b 6c 65 74 20 72 r,((e,t)=>{let r 00027070: 3d 6e 75 6c 6c 3b 69 66 28 6e 75 6c 6c 21 3d 65 =null;if(null!=e 00027080: 29 74 72 79 7b 72 3d 4a 53 4f 4e 2e 70 61 72 73 )try{r=JSON.pars 00027090: 65 28 58 65 28 65 29 29 7d 63 61 74 63 68 28 74 e(Xe(e))}catch(t 000270a0: 29 7b 76 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 ){va.throwError( 000270b0: 22 69 6e 76 61 6c 69 64 20 4a 53 4f 4e 22 2c 79 "invalid JSON",y 000270c0: 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 .errors.SERVER_E 000270d0: 52 52 4f 52 2c 7b 62 6f 64 79 3a 65 2c 65 72 72 RROR,{body:e,err 000270e0: 6f 72 3a 74 7d 29 7d 72 65 74 75 72 6e 20 6e 26 or:t})}return n& 000270f0: 26 28 72 3d 6e 28 72 2c 74 29 29 2c 72 7d 29 29 &(r=n(r,t)),r})) 00027100: 7d 66 75 6e 63 74 69 6f 6e 20 78 61 28 65 2c 74 }function xa(e,t 00027110: 29 7b 72 65 74 75 72 6e 20 74 7c 7c 28 74 3d 7b ){return t||(t={ 00027120: 7d 29 2c 6e 75 6c 6c 3d 3d 28 74 3d 69 65 28 74 }),null==(t=ie(t 00027130: 29 29 2e 66 6c 6f 6f 72 26 26 28 74 2e 66 6c 6f )).floor&&(t.flo 00027140: 6f 72 3d 30 29 2c 6e 75 6c 6c 3d 3d 74 2e 63 65 or=0),null==t.ce 00027150: 69 6c 69 6e 67 26 26 28 74 2e 63 65 69 6c 69 6e iling&&(t.ceilin 00027160: 67 3d 31 65 34 29 2c 6e 75 6c 6c 3d 3d 74 2e 69 g=1e4),null==t.i 00027170: 6e 74 65 72 76 61 6c 26 26 28 74 2e 69 6e 74 65 nterval&&(t.inte 00027180: 72 76 61 6c 3d 32 35 30 29 2c 6e 65 77 20 50 72 rval=250),new Pr 00027190: 6f 6d 69 73 65 28 28 66 75 6e 63 74 69 6f 6e 28 omise((function( 000271a0: 6e 2c 72 29 7b 6c 65 74 20 6f 3d 6e 75 6c 6c 2c n,r){let o=null, 000271b0: 69 3d 21 31 3b 63 6f 6e 73 74 20 61 3d 28 29 3d i=!1;const a=()= 000271c0: 3e 21 69 26 26 28 69 3d 21 30 2c 6f 26 26 63 6c >!i&&(i=!0,o&&cl 000271d0: 65 61 72 54 69 6d 65 6f 75 74 28 6f 29 2c 21 30 earTimeout(o),!0 000271e0: 29 3b 74 2e 74 69 6d 65 6f 75 74 26 26 28 6f 3d );t.timeout&&(o= 000271f0: 73 65 74 54 69 6d 65 6f 75 74 28 28 28 29 3d 3e setTimeout((()=> 00027200: 7b 61 28 29 26 26 72 28 6e 65 77 20 45 72 72 6f {a()&&r(new Erro 00027210: 72 28 22 74 69 6d 65 6f 75 74 22 29 29 7d 29 2c r("timeout"))}), 00027220: 74 2e 74 69 6d 65 6f 75 74 29 29 3b 63 6f 6e 73 t.timeout));cons 00027230: 74 20 73 3d 74 2e 72 65 74 72 79 4c 69 6d 69 74 t s=t.retryLimit 00027240: 3b 6c 65 74 20 6c 3d 30 3b 21 66 75 6e 63 74 69 ;let l=0;!functi 00027250: 6f 6e 20 6f 28 29 7b 72 65 74 75 72 6e 20 65 28 on o(){return e( 00027260: 29 2e 74 68 65 6e 28 28 66 75 6e 63 74 69 6f 6e ).then((function 00027270: 28 65 29 7b 69 66 28 76 6f 69 64 20 30 21 3d 3d (e){if(void 0!== 00027280: 65 29 61 28 29 26 26 6e 28 65 29 3b 65 6c 73 65 e)a()&&n(e);else 00027290: 20 69 66 28 74 2e 6f 6e 63 65 50 6f 6c 6c 29 74 if(t.oncePoll)t 000272a0: 2e 6f 6e 63 65 50 6f 6c 6c 2e 6f 6e 63 65 28 22 .oncePoll.once(" 000272b0: 70 6f 6c 6c 22 2c 6f 29 3b 65 6c 73 65 20 69 66 poll",o);else if 000272c0: 28 74 2e 6f 6e 63 65 42 6c 6f 63 6b 29 74 2e 6f (t.onceBlock)t.o 000272d0: 6e 63 65 42 6c 6f 63 6b 2e 6f 6e 63 65 28 22 62 nceBlock.once("b 000272e0: 6c 6f 63 6b 22 2c 6f 29 3b 65 6c 73 65 20 69 66 lock",o);else if 000272f0: 28 21 69 29 7b 69 66 28 6c 2b 2b 2c 6c 3e 73 29 (!i){if(l++,l>s) 00027300: 72 65 74 75 72 6e 20 76 6f 69 64 28 61 28 29 26 return void(a()& 00027310: 26 72 28 6e 65 77 20 45 72 72 6f 72 28 22 72 65 &r(new Error("re 00027320: 74 72 79 20 6c 69 6d 69 74 20 72 65 61 63 68 65 try limit reache 00027330: 64 22 29 29 29 3b 6c 65 74 20 65 3d 74 2e 69 6e d")));let e=t.in 00027340: 74 65 72 76 61 6c 2a 70 61 72 73 65 49 6e 74 28 terval*parseInt( 00027350: 53 74 72 69 6e 67 28 4d 61 74 68 2e 72 61 6e 64 String(Math.rand 00027360: 6f 6d 28 29 2a 4d 61 74 68 2e 70 6f 77 28 32 2c om()*Math.pow(2, 00027370: 6c 29 29 29 3b 65 3c 74 2e 66 6c 6f 6f 72 26 26 l)));e<t.floor&& 00027380: 28 65 3d 74 2e 66 6c 6f 6f 72 29 2c 65 3e 74 2e (e=t.floor),e>t. 00027390: 63 65 69 6c 69 6e 67 26 26 28 65 3d 74 2e 63 65 ceiling&&(e=t.ce 000273a0: 69 6c 69 6e 67 29 2c 73 65 74 54 69 6d 65 6f 75 iling),setTimeou 000273b0: 74 28 6f 2c 65 29 7d 72 65 74 75 72 6e 20 6e 75 t(o,e)}return nu 000273c0: 6c 6c 7d 29 2c 28 66 75 6e 63 74 69 6f 6e 28 65 ll}),(function(e 000273d0: 29 7b 61 28 29 26 26 72 28 65 29 7d 29 29 7d 28 ){a()&&r(e)}))}( 000273e0: 29 7d 29 29 7d 76 61 72 20 54 61 3d 6e 28 39 32 )}))}var Ta=n(92 000273f0: 38 38 32 29 2c 43 61 3d 6e 2e 6e 28 54 61 29 3b 882),Ca=n.n(Ta); 00027400: 63 6f 6e 73 74 20 41 61 3d 22 70 72 6f 76 69 64 const Aa="provid 00027410: 65 72 73 2f 35 2e 37 2e 32 22 2c 6b 61 3d 6e 65 ers/5.7.2",ka=ne 00027420: 77 20 79 28 41 61 29 3b 63 6c 61 73 73 20 49 61 w y(Aa);class Ia 00027430: 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 29 7b 74 {constructor(){t 00027440: 68 69 73 2e 66 6f 72 6d 61 74 73 3d 74 68 69 73 his.formats=this 00027450: 2e 67 65 74 44 65 66 61 75 6c 74 46 6f 72 6d 61 .getDefaultForma 00027460: 74 73 28 29 7d 67 65 74 44 65 66 61 75 6c 74 46 ts()}getDefaultF 00027470: 6f 72 6d 61 74 73 28 29 7b 63 6f 6e 73 74 20 65 ormats(){const e 00027480: 3d 7b 7d 2c 74 3d 74 68 69 73 2e 61 64 64 72 65 ={},t=this.addre 00027490: 73 73 2e 62 69 6e 64 28 74 68 69 73 29 2c 6e 3d ss.bind(this),n= 000274a0: 74 68 69 73 2e 62 69 67 4e 75 6d 62 65 72 2e 62 this.bigNumber.b 000274b0: 69 6e 64 28 74 68 69 73 29 2c 72 3d 74 68 69 73 ind(this),r=this 000274c0: 2e 62 6c 6f 63 6b 54 61 67 2e 62 69 6e 64 28 74 .blockTag.bind(t 000274d0: 68 69 73 29 2c 6f 3d 74 68 69 73 2e 64 61 74 61 his),o=this.data 000274e0: 2e 62 69 6e 64 28 74 68 69 73 29 2c 69 3d 74 68 .bind(this),i=th 000274f0: 69 73 2e 68 61 73 68 2e 62 69 6e 64 28 74 68 69 is.hash.bind(thi 00027500: 73 29 2c 61 3d 74 68 69 73 2e 68 65 78 2e 62 69 s),a=this.hex.bi 00027510: 6e 64 28 74 68 69 73 29 2c 73 3d 74 68 69 73 2e nd(this),s=this. 00027520: 6e 75 6d 62 65 72 2e 62 69 6e 64 28 74 68 69 73 number.bind(this 00027530: 29 2c 6c 3d 74 68 69 73 2e 74 79 70 65 2e 62 69 ),l=this.type.bi 00027540: 6e 64 28 74 68 69 73 29 3b 72 65 74 75 72 6e 20 nd(this);return 00027550: 65 2e 74 72 61 6e 73 61 63 74 69 6f 6e 3d 7b 68 e.transaction={h 00027560: 61 73 68 3a 69 2c 74 79 70 65 3a 6c 2c 61 63 63 ash:i,type:l,acc 00027570: 65 73 73 4c 69 73 74 3a 49 61 2e 61 6c 6c 6f 77 essList:Ia.allow 00027580: 4e 75 6c 6c 28 74 68 69 73 2e 61 63 63 65 73 73 Null(this.access 00027590: 4c 69 73 74 2e 62 69 6e 64 28 74 68 69 73 29 2c List.bind(this), 000275a0: 6e 75 6c 6c 29 2c 62 6c 6f 63 6b 48 61 73 68 3a null),blockHash: 000275b0: 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 69 2c 6e Ia.allowNull(i,n 000275c0: 75 6c 6c 29 2c 62 6c 6f 63 6b 4e 75 6d 62 65 72 ull),blockNumber 000275d0: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 73 2c :Ia.allowNull(s, 000275e0: 6e 75 6c 6c 29 2c 74 72 61 6e 73 61 63 74 69 6f null),transactio 000275f0: 6e 49 6e 64 65 78 3a 49 61 2e 61 6c 6c 6f 77 4e nIndex:Ia.allowN 00027600: 75 6c 6c 28 73 2c 6e 75 6c 6c 29 2c 63 6f 6e 66 ull(s,null),conf 00027610: 69 72 6d 61 74 69 6f 6e 73 3a 49 61 2e 61 6c 6c irmations:Ia.all 00027620: 6f 77 4e 75 6c 6c 28 73 2c 6e 75 6c 6c 29 2c 66 owNull(s,null),f 00027630: 72 6f 6d 3a 74 2c 67 61 73 50 72 69 63 65 3a 49 rom:t,gasPrice:I 00027640: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6e 29 2c 6d a.allowNull(n),m 00027650: 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 axPriorityFeePer 00027660: 47 61 73 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c Gas:Ia.allowNull 00027670: 28 6e 29 2c 6d 61 78 46 65 65 50 65 72 47 61 73 (n),maxFeePerGas 00027680: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6e 29 :Ia.allowNull(n) 00027690: 2c 67 61 73 4c 69 6d 69 74 3a 6e 2c 74 6f 3a 49 ,gasLimit:n,to:I 000276a0: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 2c 6e 75 a.allowNull(t,nu 000276b0: 6c 6c 29 2c 76 61 6c 75 65 3a 6e 2c 6e 6f 6e 63 ll),value:n,nonc 000276c0: 65 3a 73 2c 64 61 74 61 3a 6f 2c 72 3a 49 61 2e e:s,data:o,r:Ia. 000276d0: 61 6c 6c 6f 77 4e 75 6c 6c 28 74 68 69 73 2e 75 allowNull(this.u 000276e0: 69 6e 74 32 35 36 29 2c 73 3a 49 61 2e 61 6c 6c int256),s:Ia.all 000276f0: 6f 77 4e 75 6c 6c 28 74 68 69 73 2e 75 69 6e 74 owNull(this.uint 00027700: 32 35 36 29 2c 76 3a 49 61 2e 61 6c 6c 6f 77 4e 256),v:Ia.allowN 00027710: 75 6c 6c 28 73 29 2c 63 72 65 61 74 65 73 3a 49 ull(s),creates:I 00027720: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 2c 6e 75 a.allowNull(t,nu 00027730: 6c 6c 29 2c 72 61 77 3a 49 61 2e 61 6c 6c 6f 77 ll),raw:Ia.allow 00027740: 4e 75 6c 6c 28 6f 29 7d 2c 65 2e 74 72 61 6e 73 Null(o)},e.trans 00027750: 61 63 74 69 6f 6e 52 65 71 75 65 73 74 3d 7b 66 actionRequest={f 00027760: 72 6f 6d 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c rom:Ia.allowNull 00027770: 28 74 29 2c 6e 6f 6e 63 65 3a 49 61 2e 61 6c 6c (t),nonce:Ia.all 00027780: 6f 77 4e 75 6c 6c 28 73 29 2c 67 61 73 4c 69 6d owNull(s),gasLim 00027790: 69 74 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 it:Ia.allowNull( 000277a0: 6e 29 2c 67 61 73 50 72 69 63 65 3a 49 61 2e 61 n),gasPrice:Ia.a 000277b0: 6c 6c 6f 77 4e 75 6c 6c 28 6e 29 2c 6d 61 78 50 llowNull(n),maxP 000277c0: 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 riorityFeePerGas 000277d0: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6e 29 :Ia.allowNull(n) 000277e0: 2c 6d 61 78 46 65 65 50 65 72 47 61 73 3a 49 61 ,maxFeePerGas:Ia 000277f0: 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6e 29 2c 74 6f .allowNull(n),to 00027800: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 29 :Ia.allowNull(t) 00027810: 2c 76 61 6c 75 65 3a 49 61 2e 61 6c 6c 6f 77 4e ,value:Ia.allowN 00027820: 75 6c 6c 28 6e 29 2c 64 61 74 61 3a 49 61 2e 61 ull(n),data:Ia.a 00027830: 6c 6c 6f 77 4e 75 6c 6c 28 28 65 3d 3e 74 68 69 llowNull((e=>thi 00027840: 73 2e 64 61 74 61 28 65 2c 21 30 29 29 29 2c 74 s.data(e,!0))),t 00027850: 79 70 65 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c ype:Ia.allowNull 00027860: 28 73 29 2c 61 63 63 65 73 73 4c 69 73 74 3a 49 (s),accessList:I 00027870: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 68 69 73 a.allowNull(this 00027880: 2e 61 63 63 65 73 73 4c 69 73 74 2e 62 69 6e 64 .accessList.bind 00027890: 28 74 68 69 73 29 2c 6e 75 6c 6c 29 7d 2c 65 2e (this),null)},e. 000278a0: 72 65 63 65 69 70 74 4c 6f 67 3d 7b 74 72 61 6e receiptLog={tran 000278b0: 73 61 63 74 69 6f 6e 49 6e 64 65 78 3a 73 2c 62 sactionIndex:s,b 000278c0: 6c 6f 63 6b 4e 75 6d 62 65 72 3a 73 2c 74 72 61 lockNumber:s,tra 000278d0: 6e 73 61 63 74 69 6f 6e 48 61 73 68 3a 69 2c 61 nsactionHash:i,a 000278e0: 64 64 72 65 73 73 3a 74 2c 74 6f 70 69 63 73 3a ddress:t,topics: 000278f0: 49 61 2e 61 72 72 61 79 4f 66 28 69 29 2c 64 61 Ia.arrayOf(i),da 00027900: 74 61 3a 6f 2c 6c 6f 67 49 6e 64 65 78 3a 73 2c ta:o,logIndex:s, 00027910: 62 6c 6f 63 6b 48 61 73 68 3a 69 7d 2c 65 2e 72 blockHash:i},e.r 00027920: 65 63 65 69 70 74 3d 7b 74 6f 3a 49 61 2e 61 6c eceipt={to:Ia.al 00027930: 6c 6f 77 4e 75 6c 6c 28 74 68 69 73 2e 61 64 64 lowNull(this.add 00027940: 72 65 73 73 2c 6e 75 6c 6c 29 2c 66 72 6f 6d 3a ress,null),from: 00027950: 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 68 69 Ia.allowNull(thi 00027960: 73 2e 61 64 64 72 65 73 73 2c 6e 75 6c 6c 29 2c s.address,null), 00027970: 63 6f 6e 74 72 61 63 74 41 64 64 72 65 73 73 3a contractAddress: 00027980: 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 2c 6e Ia.allowNull(t,n 00027990: 75 6c 6c 29 2c 74 72 61 6e 73 61 63 74 69 6f 6e ull),transaction 000279a0: 49 6e 64 65 78 3a 73 2c 72 6f 6f 74 3a 49 61 2e Index:s,root:Ia. 000279b0: 61 6c 6c 6f 77 4e 75 6c 6c 28 61 29 2c 67 61 73 allowNull(a),gas 000279c0: 55 73 65 64 3a 6e 2c 6c 6f 67 73 42 6c 6f 6f 6d Used:n,logsBloom 000279d0: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6f 29 :Ia.allowNull(o) 000279e0: 2c 62 6c 6f 63 6b 48 61 73 68 3a 69 2c 74 72 61 ,blockHash:i,tra 000279f0: 6e 73 61 63 74 69 6f 6e 48 61 73 68 3a 69 2c 6c nsactionHash:i,l 00027a00: 6f 67 73 3a 49 61 2e 61 72 72 61 79 4f 66 28 74 ogs:Ia.arrayOf(t 00027a10: 68 69 73 2e 72 65 63 65 69 70 74 4c 6f 67 2e 62 his.receiptLog.b 00027a20: 69 6e 64 28 74 68 69 73 29 29 2c 62 6c 6f 63 6b ind(this)),block 00027a30: 4e 75 6d 62 65 72 3a 73 2c 63 6f 6e 66 69 72 6d Number:s,confirm 00027a40: 61 74 69 6f 6e 73 3a 49 61 2e 61 6c 6c 6f 77 4e ations:Ia.allowN 00027a50: 75 6c 6c 28 73 2c 6e 75 6c 6c 29 2c 63 75 6d 75 ull(s,null),cumu 00027a60: 6c 61 74 69 76 65 47 61 73 55 73 65 64 3a 6e 2c lativeGasUsed:n, 00027a70: 65 66 66 65 63 74 69 76 65 47 61 73 50 72 69 63 effectiveGasPric 00027a80: 65 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6e e:Ia.allowNull(n 00027a90: 29 2c 73 74 61 74 75 73 3a 49 61 2e 61 6c 6c 6f ),status:Ia.allo 00027aa0: 77 4e 75 6c 6c 28 73 29 2c 74 79 70 65 3a 6c 7d wNull(s),type:l} 00027ab0: 2c 65 2e 62 6c 6f 63 6b 3d 7b 68 61 73 68 3a 49 ,e.block={hash:I 00027ac0: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 69 29 2c 70 a.allowNull(i),p 00027ad0: 61 72 65 6e 74 48 61 73 68 3a 69 2c 6e 75 6d 62 arentHash:i,numb 00027ae0: 65 72 3a 73 2c 74 69 6d 65 73 74 61 6d 70 3a 73 er:s,timestamp:s 00027af0: 2c 6e 6f 6e 63 65 3a 49 61 2e 61 6c 6c 6f 77 4e ,nonce:Ia.allowN 00027b00: 75 6c 6c 28 61 29 2c 64 69 66 66 69 63 75 6c 74 ull(a),difficult 00027b10: 79 3a 74 68 69 73 2e 64 69 66 66 69 63 75 6c 74 y:this.difficult 00027b20: 79 2e 62 69 6e 64 28 74 68 69 73 29 2c 67 61 73 y.bind(this),gas 00027b30: 4c 69 6d 69 74 3a 6e 2c 67 61 73 55 73 65 64 3a Limit:n,gasUsed: 00027b40: 6e 2c 6d 69 6e 65 72 3a 49 61 2e 61 6c 6c 6f 77 n,miner:Ia.allow 00027b50: 4e 75 6c 6c 28 74 29 2c 65 78 74 72 61 44 61 74 Null(t),extraDat 00027b60: 61 3a 6f 2c 74 72 61 6e 73 61 63 74 69 6f 6e 73 a:o,transactions 00027b70: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 49 61 :Ia.allowNull(Ia 00027b80: 2e 61 72 72 61 79 4f 66 28 69 29 29 2c 62 61 73 .arrayOf(i)),bas 00027b90: 65 46 65 65 50 65 72 47 61 73 3a 49 61 2e 61 6c eFeePerGas:Ia.al 00027ba0: 6c 6f 77 4e 75 6c 6c 28 6e 29 7d 2c 65 2e 62 6c lowNull(n)},e.bl 00027bb0: 6f 63 6b 57 69 74 68 54 72 61 6e 73 61 63 74 69 ockWithTransacti 00027bc0: 6f 6e 73 3d 69 65 28 65 2e 62 6c 6f 63 6b 29 2c ons=ie(e.block), 00027bd0: 65 2e 62 6c 6f 63 6b 57 69 74 68 54 72 61 6e 73 e.blockWithTrans 00027be0: 61 63 74 69 6f 6e 73 2e 74 72 61 6e 73 61 63 74 actions.transact 00027bf0: 69 6f 6e 73 3d 49 61 2e 61 6c 6c 6f 77 4e 75 6c ions=Ia.allowNul 00027c00: 6c 28 49 61 2e 61 72 72 61 79 4f 66 28 74 68 69 l(Ia.arrayOf(thi 00027c10: 73 2e 74 72 61 6e 73 61 63 74 69 6f 6e 52 65 73 s.transactionRes 00027c20: 70 6f 6e 73 65 2e 62 69 6e 64 28 74 68 69 73 29 ponse.bind(this) 00027c30: 29 29 2c 65 2e 66 69 6c 74 65 72 3d 7b 66 72 6f )),e.filter={fro 00027c40: 6d 42 6c 6f 63 6b 3a 49 61 2e 61 6c 6c 6f 77 4e mBlock:Ia.allowN 00027c50: 75 6c 6c 28 72 2c 76 6f 69 64 20 30 29 2c 74 6f ull(r,void 0),to 00027c60: 42 6c 6f 63 6b 3a 49 61 2e 61 6c 6c 6f 77 4e 75 Block:Ia.allowNu 00027c70: 6c 6c 28 72 2c 76 6f 69 64 20 30 29 2c 62 6c 6f ll(r,void 0),blo 00027c80: 63 6b 48 61 73 68 3a 49 61 2e 61 6c 6c 6f 77 4e ckHash:Ia.allowN 00027c90: 75 6c 6c 28 69 2c 76 6f 69 64 20 30 29 2c 61 64 ull(i,void 0),ad 00027ca0: 64 72 65 73 73 3a 49 61 2e 61 6c 6c 6f 77 4e 75 dress:Ia.allowNu 00027cb0: 6c 6c 28 74 2c 76 6f 69 64 20 30 29 2c 74 6f 70 ll(t,void 0),top 00027cc0: 69 63 73 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c ics:Ia.allowNull 00027cd0: 28 74 68 69 73 2e 74 6f 70 69 63 73 2e 62 69 6e (this.topics.bin 00027ce0: 64 28 74 68 69 73 29 2c 76 6f 69 64 20 30 29 7d d(this),void 0)} 00027cf0: 2c 65 2e 66 69 6c 74 65 72 4c 6f 67 3d 7b 62 6c ,e.filterLog={bl 00027d00: 6f 63 6b 4e 75 6d 62 65 72 3a 49 61 2e 61 6c 6c ockNumber:Ia.all 00027d10: 6f 77 4e 75 6c 6c 28 73 29 2c 62 6c 6f 63 6b 48 owNull(s),blockH 00027d20: 61 73 68 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c ash:Ia.allowNull 00027d30: 28 69 29 2c 74 72 61 6e 73 61 63 74 69 6f 6e 49 (i),transactionI 00027d40: 6e 64 65 78 3a 73 2c 72 65 6d 6f 76 65 64 3a 49 ndex:s,removed:I 00027d50: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 68 69 73 a.allowNull(this 00027d60: 2e 62 6f 6f 6c 65 61 6e 2e 62 69 6e 64 28 74 68 .boolean.bind(th 00027d70: 69 73 29 29 2c 61 64 64 72 65 73 73 3a 74 2c 64 is)),address:t,d 00027d80: 61 74 61 3a 49 61 2e 61 6c 6c 6f 77 46 61 6c 73 ata:Ia.allowFals 00027d90: 69 73 68 28 6f 2c 22 30 78 22 29 2c 74 6f 70 69 ish(o,"0x"),topi 00027da0: 63 73 3a 49 61 2e 61 72 72 61 79 4f 66 28 69 29 cs:Ia.arrayOf(i) 00027db0: 2c 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 68 ,transactionHash 00027dc0: 3a 69 2c 6c 6f 67 49 6e 64 65 78 3a 73 7d 2c 65 :i,logIndex:s},e 00027dd0: 7d 61 63 63 65 73 73 4c 69 73 74 28 65 29 7b 72 }accessList(e){r 00027de0: 65 74 75 72 6e 20 66 72 28 65 7c 7c 5b 5d 29 7d eturn fr(e||[])} 00027df0: 6e 75 6d 62 65 72 28 65 29 7b 72 65 74 75 72 6e number(e){return 00027e00: 22 30 78 22 3d 3d 3d 65 3f 30 3a 59 2e 66 72 6f "0x"===e?0:Y.fro 00027e10: 6d 28 65 29 2e 74 6f 4e 75 6d 62 65 72 28 29 7d m(e).toNumber()} 00027e20: 74 79 70 65 28 65 29 7b 72 65 74 75 72 6e 22 30 type(e){return"0 00027e30: 78 22 3d 3d 3d 65 7c 7c 6e 75 6c 6c 3d 3d 65 3f x"===e||null==e? 00027e40: 30 3a 59 2e 66 72 6f 6d 28 65 29 2e 74 6f 4e 75 0:Y.from(e).toNu 00027e50: 6d 62 65 72 28 29 7d 62 69 67 4e 75 6d 62 65 72 mber()}bigNumber 00027e60: 28 65 29 7b 72 65 74 75 72 6e 20 59 2e 66 72 6f (e){return Y.fro 00027e70: 6d 28 65 29 7d 62 6f 6f 6c 65 61 6e 28 65 29 7b m(e)}boolean(e){ 00027e80: 69 66 28 22 62 6f 6f 6c 65 61 6e 22 3d 3d 74 79 if("boolean"==ty 00027e90: 70 65 6f 66 20 65 29 72 65 74 75 72 6e 20 65 3b peof e)return e; 00027ea0: 69 66 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 if("string"==typ 00027eb0: 65 6f 66 20 65 29 7b 69 66 28 22 74 72 75 65 22 eof e){if("true" 00027ec0: 3d 3d 3d 28 65 3d 65 2e 74 6f 4c 6f 77 65 72 43 ===(e=e.toLowerC 00027ed0: 61 73 65 28 29 29 29 72 65 74 75 72 6e 21 30 3b ase()))return!0; 00027ee0: 69 66 28 22 66 61 6c 73 65 22 3d 3d 3d 65 29 72 if("false"===e)r 00027ef0: 65 74 75 72 6e 21 31 7d 74 68 72 6f 77 20 6e 65 eturn!1}throw ne 00027f00: 77 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 w Error("invalid 00027f10: 20 62 6f 6f 6c 65 61 6e 20 2d 20 22 2b 65 29 7d boolean - "+e)} 00027f20: 68 65 78 28 65 2c 74 29 7b 72 65 74 75 72 6e 22 hex(e,t){return" 00027f30: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 00027f40: 65 26 26 28 74 7c 7c 22 30 78 22 3d 3d 3d 65 2e e&&(t||"0x"===e. 00027f50: 73 75 62 73 74 72 69 6e 67 28 30 2c 32 29 7c 7c substring(0,2)|| 00027f60: 28 65 3d 22 30 78 22 2b 65 29 2c 49 28 65 29 29 (e="0x"+e),I(e)) 00027f70: 3f 65 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 ?e.toLowerCase() 00027f80: 3a 6b 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e :ka.throwArgumen 00027f90: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 00027fa0: 68 61 73 68 22 2c 22 76 61 6c 75 65 22 2c 65 29 hash","value",e) 00027fb0: 7d 64 61 74 61 28 65 2c 74 29 7b 63 6f 6e 73 74 }data(e,t){const 00027fc0: 20 6e 3d 74 68 69 73 2e 68 65 78 28 65 2c 74 29 n=this.hex(e,t) 00027fd0: 3b 69 66 28 6e 2e 6c 65 6e 67 74 68 25 32 21 3d ;if(n.length%2!= 00027fe0: 30 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 0)throw new Erro 00027ff0: 72 28 22 69 6e 76 61 6c 69 64 20 64 61 74 61 3b r("invalid data; 00028000: 20 6f 64 64 2d 6c 65 6e 67 74 68 20 2d 20 22 2b odd-length - "+ 00028010: 65 29 3b 72 65 74 75 72 6e 20 6e 7d 61 64 64 72 e);return n}addr 00028020: 65 73 73 28 65 29 7b 72 65 74 75 72 6e 20 4d 65 ess(e){return Me 00028030: 28 65 29 7d 63 61 6c 6c 41 64 64 72 65 73 73 28 (e)}callAddress( 00028040: 65 29 7b 69 66 28 21 49 28 65 2c 33 32 29 29 72 e){if(!I(e,32))r 00028050: 65 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f 6e 73 74 eturn null;const 00028060: 20 74 3d 4d 65 28 50 28 65 2c 31 32 29 29 3b 72 t=Me(P(e,12));r 00028070: 65 74 75 72 6e 20 74 3d 3d 3d 49 69 3f 6e 75 6c eturn t===Ii?nul 00028080: 6c 3a 74 7d 63 6f 6e 74 72 61 63 74 41 64 64 72 l:t}contractAddr 00028090: 65 73 73 28 65 29 7b 72 65 74 75 72 6e 20 46 65 ess(e){return Fe 000280a0: 28 65 29 7d 62 6c 6f 63 6b 54 61 67 28 65 29 7b (e)}blockTag(e){ 000280b0: 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 74 75 72 if(null==e)retur 000280c0: 6e 22 6c 61 74 65 73 74 22 3b 69 66 28 22 65 61 n"latest";if("ea 000280d0: 72 6c 69 65 73 74 22 3d 3d 3d 65 29 72 65 74 75 rliest"===e)retu 000280e0: 72 6e 22 30 78 30 22 3b 73 77 69 74 63 68 28 65 rn"0x0";switch(e 000280f0: 29 7b 63 61 73 65 22 65 61 72 6c 69 65 73 74 22 ){case"earliest" 00028100: 3a 72 65 74 75 72 6e 22 30 78 30 22 3b 63 61 73 :return"0x0";cas 00028110: 65 22 6c 61 74 65 73 74 22 3a 63 61 73 65 22 70 e"latest":case"p 00028120: 65 6e 64 69 6e 67 22 3a 63 61 73 65 22 73 61 66 ending":case"saf 00028130: 65 22 3a 63 61 73 65 22 66 69 6e 61 6c 69 7a 65 e":case"finalize 00028140: 64 22 3a 72 65 74 75 72 6e 20 65 7d 69 66 28 22 d":return e}if(" 00028150: 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f 66 20 number"==typeof 00028160: 65 7c 7c 49 28 65 29 29 72 65 74 75 72 6e 20 44 e||I(e))return D 00028170: 28 65 29 3b 74 68 72 6f 77 20 6e 65 77 20 45 72 (e);throw new Er 00028180: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 62 6c 6f ror("invalid blo 00028190: 63 6b 54 61 67 22 29 7d 68 61 73 68 28 65 2c 74 ckTag")}hash(e,t 000281a0: 29 7b 63 6f 6e 73 74 20 6e 3d 74 68 69 73 2e 68 ){const n=this.h 000281b0: 65 78 28 65 2c 74 29 3b 72 65 74 75 72 6e 20 33 ex(e,t);return 3 000281c0: 32 21 3d 3d 4e 28 6e 29 3f 6b 61 2e 74 68 72 6f 2!==N(n)?ka.thro 000281d0: 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 wArgumentError(" 000281e0: 69 6e 76 61 6c 69 64 20 68 61 73 68 22 2c 22 76 invalid hash","v 000281f0: 61 6c 75 65 22 2c 65 29 3a 6e 7d 64 69 66 66 69 alue",e):n}diffi 00028200: 63 75 6c 74 79 28 65 29 7b 69 66 28 6e 75 6c 6c culty(e){if(null 00028210: 3d 3d 65 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b ==e)return null; 00028220: 63 6f 6e 73 74 20 74 3d 59 2e 66 72 6f 6d 28 65 const t=Y.from(e 00028230: 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 74 2e 74 );try{return t.t 00028240: 6f 4e 75 6d 62 65 72 28 29 7d 63 61 74 63 68 28 oNumber()}catch( 00028250: 65 29 7b 7d 72 65 74 75 72 6e 20 6e 75 6c 6c 7d e){}return null} 00028260: 75 69 6e 74 32 35 36 28 65 29 7b 69 66 28 21 49 uint256(e){if(!I 00028270: 28 65 29 29 74 68 72 6f 77 20 6e 65 77 20 45 72 (e))throw new Er 00028280: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 75 69 6e ror("invalid uin 00028290: 74 32 35 36 22 29 3b 72 65 74 75 72 6e 20 46 28 t256");return F( 000282a0: 65 2c 33 32 29 7d 5f 62 6c 6f 63 6b 28 65 2c 74 e,32)}_block(e,t 000282b0: 29 7b 6e 75 6c 6c 21 3d 65 2e 61 75 74 68 6f 72 ){null!=e.author 000282c0: 26 26 6e 75 6c 6c 3d 3d 65 2e 6d 69 6e 65 72 26 &&null==e.miner& 000282d0: 26 28 65 2e 6d 69 6e 65 72 3d 65 2e 61 75 74 68 &(e.miner=e.auth 000282e0: 6f 72 29 3b 63 6f 6e 73 74 20 6e 3d 6e 75 6c 6c or);const n=null 000282f0: 21 3d 65 2e 5f 64 69 66 66 69 63 75 6c 74 79 3f !=e._difficulty? 00028300: 65 2e 5f 64 69 66 66 69 63 75 6c 74 79 3a 65 2e e._difficulty:e. 00028310: 64 69 66 66 69 63 75 6c 74 79 2c 72 3d 49 61 2e difficulty,r=Ia. 00028320: 63 68 65 63 6b 28 74 2c 65 29 3b 72 65 74 75 72 check(t,e);retur 00028330: 6e 20 72 2e 5f 64 69 66 66 69 63 75 6c 74 79 3d n r._difficulty= 00028340: 6e 75 6c 6c 3d 3d 6e 3f 6e 75 6c 6c 3a 59 2e 66 null==n?null:Y.f 00028350: 72 6f 6d 28 6e 29 2c 72 7d 62 6c 6f 63 6b 28 65 rom(n),r}block(e 00028360: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 62 ){return this._b 00028370: 6c 6f 63 6b 28 65 2c 74 68 69 73 2e 66 6f 72 6d lock(e,this.form 00028380: 61 74 73 2e 62 6c 6f 63 6b 29 7d 62 6c 6f 63 6b ats.block)}block 00028390: 57 69 74 68 54 72 61 6e 73 61 63 74 69 6f 6e 73 WithTransactions 000283a0: 28 65 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e (e){return this. 000283b0: 5f 62 6c 6f 63 6b 28 65 2c 74 68 69 73 2e 66 6f _block(e,this.fo 000283c0: 72 6d 61 74 73 2e 62 6c 6f 63 6b 57 69 74 68 54 rmats.blockWithT 000283d0: 72 61 6e 73 61 63 74 69 6f 6e 73 29 7d 74 72 61 ransactions)}tra 000283e0: 6e 73 61 63 74 69 6f 6e 52 65 71 75 65 73 74 28 nsactionRequest( 000283f0: 65 29 7b 72 65 74 75 72 6e 20 49 61 2e 63 68 65 e){return Ia.che 00028400: 63 6b 28 74 68 69 73 2e 66 6f 72 6d 61 74 73 2e ck(this.formats. 00028410: 74 72 61 6e 73 61 63 74 69 6f 6e 52 65 71 75 65 transactionReque 00028420: 73 74 2c 65 29 7d 74 72 61 6e 73 61 63 74 69 6f st,e)}transactio 00028430: 6e 52 65 73 70 6f 6e 73 65 28 65 29 7b 6e 75 6c nResponse(e){nul 00028440: 6c 21 3d 65 2e 67 61 73 26 26 6e 75 6c 6c 3d 3d l!=e.gas&&null== 00028450: 65 2e 67 61 73 4c 69 6d 69 74 26 26 28 65 2e 67 e.gasLimit&&(e.g 00028460: 61 73 4c 69 6d 69 74 3d 65 2e 67 61 73 29 2c 65 asLimit=e.gas),e 00028470: 2e 74 6f 26 26 59 2e 66 72 6f 6d 28 65 2e 74 6f .to&&Y.from(e.to 00028480: 29 2e 69 73 5a 65 72 6f 28 29 26 26 28 65 2e 74 ).isZero()&&(e.t 00028490: 6f 3d 22 30 78 30 30 30 30 30 30 30 30 30 30 30 o="0x00000000000 000284a0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 000284b0: 30 30 30 30 30 30 30 30 30 30 30 30 30 22 29 2c 0000000000000"), 000284c0: 6e 75 6c 6c 21 3d 65 2e 69 6e 70 75 74 26 26 6e null!=e.input&&n 000284d0: 75 6c 6c 3d 3d 65 2e 64 61 74 61 26 26 28 65 2e ull==e.data&&(e. 000284e0: 64 61 74 61 3d 65 2e 69 6e 70 75 74 29 2c 6e 75 data=e.input),nu 000284f0: 6c 6c 3d 3d 65 2e 74 6f 26 26 6e 75 6c 6c 3d 3d ll==e.to&&null== 00028500: 65 2e 63 72 65 61 74 65 73 26 26 28 65 2e 63 72 e.creates&&(e.cr 00028510: 65 61 74 65 73 3d 74 68 69 73 2e 63 6f 6e 74 72 eates=this.contr 00028520: 61 63 74 41 64 64 72 65 73 73 28 65 29 29 2c 31 actAddress(e)),1 00028530: 21 3d 3d 65 2e 74 79 70 65 26 26 32 21 3d 3d 65 !==e.type&&2!==e 00028540: 2e 74 79 70 65 7c 7c 6e 75 6c 6c 21 3d 65 2e 61 .type||null!=e.a 00028550: 63 63 65 73 73 4c 69 73 74 7c 7c 28 65 2e 61 63 ccessList||(e.ac 00028560: 63 65 73 73 4c 69 73 74 3d 5b 5d 29 3b 63 6f 6e cessList=[]);con 00028570: 73 74 20 74 3d 49 61 2e 63 68 65 63 6b 28 74 68 st t=Ia.check(th 00028580: 69 73 2e 66 6f 72 6d 61 74 73 2e 74 72 61 6e 73 is.formats.trans 00028590: 61 63 74 69 6f 6e 2c 65 29 3b 69 66 28 6e 75 6c action,e);if(nul 000285a0: 6c 21 3d 65 2e 63 68 61 69 6e 49 64 29 7b 6c 65 l!=e.chainId){le 000285b0: 74 20 6e 3d 65 2e 63 68 61 69 6e 49 64 3b 49 28 t n=e.chainId;I( 000285c0: 6e 29 26 26 28 6e 3d 59 2e 66 72 6f 6d 28 6e 29 n)&&(n=Y.from(n) 000285d0: 2e 74 6f 4e 75 6d 62 65 72 28 29 29 2c 74 2e 63 .toNumber()),t.c 000285e0: 68 61 69 6e 49 64 3d 6e 7d 65 6c 73 65 7b 6c 65 hainId=n}else{le 000285f0: 74 20 6e 3d 65 2e 6e 65 74 77 6f 72 6b 49 64 3b t n=e.networkId; 00028600: 6e 75 6c 6c 3d 3d 6e 26 26 6e 75 6c 6c 3d 3d 74 null==n&&null==t 00028610: 2e 76 26 26 28 6e 3d 65 2e 63 68 61 69 6e 49 64 .v&&(n=e.chainId 00028620: 29 2c 49 28 6e 29 26 26 28 6e 3d 59 2e 66 72 6f ),I(n)&&(n=Y.fro 00028630: 6d 28 6e 29 2e 74 6f 4e 75 6d 62 65 72 28 29 29 m(n).toNumber()) 00028640: 2c 22 6e 75 6d 62 65 72 22 21 3d 74 79 70 65 6f ,"number"!=typeo 00028650: 66 20 6e 26 26 6e 75 6c 6c 21 3d 74 2e 76 26 26 f n&&null!=t.v&& 00028660: 28 6e 3d 28 74 2e 76 2d 33 35 29 2f 32 2c 6e 3c (n=(t.v-35)/2,n< 00028670: 30 26 26 28 6e 3d 30 29 2c 6e 3d 70 61 72 73 65 0&&(n=0),n=parse 00028680: 49 6e 74 28 6e 29 29 2c 22 6e 75 6d 62 65 72 22 Int(n)),"number" 00028690: 21 3d 74 79 70 65 6f 66 20 6e 26 26 28 6e 3d 30 !=typeof n&&(n=0 000286a0: 29 2c 74 2e 63 68 61 69 6e 49 64 3d 6e 7d 72 65 ),t.chainId=n}re 000286b0: 74 75 72 6e 20 74 2e 62 6c 6f 63 6b 48 61 73 68 turn t.blockHash 000286c0: 26 26 22 78 22 3d 3d 3d 74 2e 62 6c 6f 63 6b 48 &&"x"===t.blockH 000286d0: 61 73 68 2e 72 65 70 6c 61 63 65 28 2f 30 2f 67 ash.replace(/0/g 000286e0: 2c 22 22 29 26 26 28 74 2e 62 6c 6f 63 6b 48 61 ,"")&&(t.blockHa 000286f0: 73 68 3d 6e 75 6c 6c 29 2c 74 7d 74 72 61 6e 73 sh=null),t}trans 00028700: 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e action(e){return 00028710: 20 76 72 28 65 29 7d 72 65 63 65 69 70 74 4c 6f vr(e)}receiptLo 00028720: 67 28 65 29 7b 72 65 74 75 72 6e 20 49 61 2e 63 g(e){return Ia.c 00028730: 68 65 63 6b 28 74 68 69 73 2e 66 6f 72 6d 61 74 heck(this.format 00028740: 73 2e 72 65 63 65 69 70 74 4c 6f 67 2c 65 29 7d s.receiptLog,e)} 00028750: 72 65 63 65 69 70 74 28 65 29 7b 63 6f 6e 73 74 receipt(e){const 00028760: 20 74 3d 49 61 2e 63 68 65 63 6b 28 74 68 69 73 t=Ia.check(this 00028770: 2e 66 6f 72 6d 61 74 73 2e 72 65 63 65 69 70 74 .formats.receipt 00028780: 2c 65 29 3b 69 66 28 6e 75 6c 6c 21 3d 74 2e 72 ,e);if(null!=t.r 00028790: 6f 6f 74 29 69 66 28 74 2e 72 6f 6f 74 2e 6c 65 oot)if(t.root.le 000287a0: 6e 67 74 68 3c 3d 34 29 7b 63 6f 6e 73 74 20 65 ngth<=4){const e 000287b0: 3d 59 2e 66 72 6f 6d 28 74 2e 72 6f 6f 74 29 2e =Y.from(t.root). 000287c0: 74 6f 4e 75 6d 62 65 72 28 29 3b 30 3d 3d 3d 65 toNumber();0===e 000287d0: 7c 7c 31 3d 3d 3d 65 3f 28 6e 75 6c 6c 21 3d 74 ||1===e?(null!=t 000287e0: 2e 73 74 61 74 75 73 26 26 74 2e 73 74 61 74 75 .status&&t.statu 000287f0: 73 21 3d 3d 65 26 26 6b 61 2e 74 68 72 6f 77 41 s!==e&&ka.throwA 00028800: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 61 6c rgumentError("al 00028810: 74 2d 72 6f 6f 74 2d 73 74 61 74 75 73 2f 73 74 t-root-status/st 00028820: 61 74 75 73 20 6d 69 73 6d 61 74 63 68 22 2c 22 atus mismatch"," 00028830: 76 61 6c 75 65 22 2c 7b 72 6f 6f 74 3a 74 2e 72 value",{root:t.r 00028840: 6f 6f 74 2c 73 74 61 74 75 73 3a 74 2e 73 74 61 oot,status:t.sta 00028850: 74 75 73 7d 29 2c 74 2e 73 74 61 74 75 73 3d 65 tus}),t.status=e 00028860: 2c 64 65 6c 65 74 65 20 74 2e 72 6f 6f 74 29 3a ,delete t.root): 00028870: 6b 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 ka.throwArgument 00028880: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 61 Error("invalid a 00028890: 6c 74 2d 72 6f 6f 74 2d 73 74 61 74 75 73 22 2c lt-root-status", 000288a0: 22 76 61 6c 75 65 2e 72 6f 6f 74 22 2c 74 2e 72 "value.root",t.r 000288b0: 6f 6f 74 29 7d 65 6c 73 65 20 36 36 21 3d 3d 74 oot)}else 66!==t 000288c0: 2e 72 6f 6f 74 2e 6c 65 6e 67 74 68 26 26 6b 61 .root.length&&ka 000288d0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 000288e0: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 72 6f 6f ror("invalid roo 000288f0: 74 20 68 61 73 68 22 2c 22 76 61 6c 75 65 2e 72 t hash","value.r 00028900: 6f 6f 74 22 2c 74 2e 72 6f 6f 74 29 3b 72 65 74 oot",t.root);ret 00028910: 75 72 6e 20 6e 75 6c 6c 21 3d 74 2e 73 74 61 74 urn null!=t.stat 00028920: 75 73 26 26 28 74 2e 62 79 7a 61 6e 74 69 75 6d us&&(t.byzantium 00028930: 3d 21 30 29 2c 74 7d 74 6f 70 69 63 73 28 65 29 =!0),t}topics(e) 00028940: 7b 72 65 74 75 72 6e 20 41 72 72 61 79 2e 69 73 {return Array.is 00028950: 41 72 72 61 79 28 65 29 3f 65 2e 6d 61 70 28 28 Array(e)?e.map(( 00028960: 65 3d 3e 74 68 69 73 2e 74 6f 70 69 63 73 28 65 e=>this.topics(e 00028970: 29 29 29 3a 6e 75 6c 6c 21 3d 65 3f 74 68 69 73 ))):null!=e?this 00028980: 2e 68 61 73 68 28 65 2c 21 30 29 3a 6e 75 6c 6c .hash(e,!0):null 00028990: 7d 66 69 6c 74 65 72 28 65 29 7b 72 65 74 75 72 }filter(e){retur 000289a0: 6e 20 49 61 2e 63 68 65 63 6b 28 74 68 69 73 2e n Ia.check(this. 000289b0: 66 6f 72 6d 61 74 73 2e 66 69 6c 74 65 72 2c 65 formats.filter,e 000289c0: 29 7d 66 69 6c 74 65 72 4c 6f 67 28 65 29 7b 72 )}filterLog(e){r 000289d0: 65 74 75 72 6e 20 49 61 2e 63 68 65 63 6b 28 74 eturn Ia.check(t 000289e0: 68 69 73 2e 66 6f 72 6d 61 74 73 2e 66 69 6c 74 his.formats.filt 000289f0: 65 72 4c 6f 67 2c 65 29 7d 73 74 61 74 69 63 20 erLog,e)}static 00028a00: 63 68 65 63 6b 28 65 2c 74 29 7b 63 6f 6e 73 74 check(e,t){const 00028a10: 20 6e 3d 7b 7d 3b 66 6f 72 28 63 6f 6e 73 74 20 n={};for(const 00028a20: 72 20 69 6e 20 65 29 74 72 79 7b 63 6f 6e 73 74 r in e)try{const 00028a30: 20 6f 3d 65 5b 72 5d 28 74 5b 72 5d 29 3b 76 6f o=e[r](t[r]);vo 00028a40: 69 64 20 30 21 3d 3d 6f 26 26 28 6e 5b 72 5d 3d id 0!==o&&(n[r]= 00028a50: 6f 29 7d 63 61 74 63 68 28 65 29 7b 74 68 72 6f o)}catch(e){thro 00028a60: 77 20 65 2e 63 68 65 63 6b 4b 65 79 3d 72 2c 65 w e.checkKey=r,e 00028a70: 2e 63 68 65 63 6b 56 61 6c 75 65 3d 74 5b 72 5d .checkValue=t[r] 00028a80: 2c 65 7d 72 65 74 75 72 6e 20 6e 7d 73 74 61 74 ,e}return n}stat 00028a90: 69 63 20 61 6c 6c 6f 77 4e 75 6c 6c 28 65 2c 74 ic allowNull(e,t 00028aa0: 29 7b 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f ){return functio 00028ab0: 6e 28 6e 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c n(n){return null 00028ac0: 3d 3d 6e 3f 74 3a 65 28 6e 29 7d 7d 73 74 61 74 ==n?t:e(n)}}stat 00028ad0: 69 63 20 61 6c 6c 6f 77 46 61 6c 73 69 73 68 28 ic allowFalsish( 00028ae0: 65 2c 74 29 7b 72 65 74 75 72 6e 20 66 75 6e 63 e,t){return func 00028af0: 74 69 6f 6e 28 6e 29 7b 72 65 74 75 72 6e 20 6e tion(n){return n 00028b00: 3f 65 28 6e 29 3a 74 7d 7d 73 74 61 74 69 63 20 ?e(n):t}}static 00028b10: 61 72 72 61 79 4f 66 28 65 29 7b 72 65 74 75 72 arrayOf(e){retur 00028b20: 6e 20 66 75 6e 63 74 69 6f 6e 28 74 29 7b 69 66 n function(t){if 00028b30: 28 21 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 (!Array.isArray( 00028b40: 74 29 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 t))throw new Err 00028b50: 6f 72 28 22 6e 6f 74 20 61 6e 20 61 72 72 61 79 or("not an array 00028b60: 22 29 3b 63 6f 6e 73 74 20 6e 3d 5b 5d 3b 72 65 ");const n=[];re 00028b70: 74 75 72 6e 20 74 2e 66 6f 72 45 61 63 68 28 28 turn t.forEach(( 00028b80: 66 75 6e 63 74 69 6f 6e 28 74 29 7b 6e 2e 70 75 function(t){n.pu 00028b90: 73 68 28 65 28 74 29 29 7d 29 29 2c 6e 7d 7d 7d sh(e(t))})),n}}} 00028ba0: 66 75 6e 63 74 69 6f 6e 20 4f 61 28 65 29 7b 72 function Oa(e){r 00028bb0: 65 74 75 72 6e 20 65 26 26 22 66 75 6e 63 74 69 eturn e&&"functi 00028bc0: 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 65 2e 69 73 on"==typeof e.is 00028bd0: 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f 75 72 63 CommunityResourc 00028be0: 65 7d 66 75 6e 63 74 69 6f 6e 20 52 61 28 65 29 e}function Ra(e) 00028bf0: 7b 72 65 74 75 72 6e 20 4f 61 28 65 29 26 26 65 {return Oa(e)&&e 00028c00: 2e 69 73 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f .isCommunityReso 00028c10: 75 72 63 65 28 29 7d 6c 65 74 20 4e 61 3d 21 31 urce()}let Na=!1 00028c20: 3b 66 75 6e 63 74 69 6f 6e 20 50 61 28 29 7b 4e ;function Pa(){N 00028c30: 61 7c 7c 28 4e 61 3d 21 30 2c 63 6f 6e 73 6f 6c a||(Na=!0,consol 00028c40: 65 2e 6c 6f 67 28 22 3d 3d 3d 3d 3d 3d 3d 3d 3d e.log("========= 00028c50: 20 4e 4f 54 49 43 45 20 3d 3d 3d 3d 3d 3d 3d 3d NOTICE ======== 00028c60: 3d 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 ="),console.log( 00028c70: 22 52 65 71 75 65 73 74 2d 52 61 74 65 20 45 78 "Request-Rate Ex 00028c80: 63 65 65 64 65 64 20 20 28 74 68 69 73 20 6d 65 ceeded (this me 00028c90: 73 73 61 67 65 20 77 69 6c 6c 20 6e 6f 74 20 62 ssage will not b 00028ca0: 65 20 72 65 70 65 61 74 65 64 29 22 29 2c 63 6f e repeated)"),co 00028cb0: 6e 73 6f 6c 65 2e 6c 6f 67 28 22 22 29 2c 63 6f nsole.log(""),co 00028cc0: 6e 73 6f 6c 65 2e 6c 6f 67 28 22 54 68 65 20 64 nsole.log("The d 00028cd0: 65 66 61 75 6c 74 20 41 50 49 20 6b 65 79 73 20 efault API keys 00028ce0: 66 6f 72 20 65 61 63 68 20 73 65 72 76 69 63 65 for each service 00028cf0: 20 61 72 65 20 70 72 6f 76 69 64 65 64 20 61 73 are provided as 00028d00: 20 61 20 68 69 67 68 6c 79 2d 74 68 72 6f 74 74 a highly-thrott 00028d10: 6c 65 64 2c 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c led,"),console.l 00028d20: 6f 67 28 22 63 6f 6d 6d 75 6e 69 74 79 20 72 65 og("community re 00028d30: 73 6f 75 72 63 65 20 66 6f 72 20 6c 6f 77 2d 74 source for low-t 00028d40: 72 61 66 66 69 63 20 70 72 6f 6a 65 63 74 73 20 raffic projects 00028d50: 61 6e 64 20 65 61 72 6c 79 20 70 72 6f 74 6f 74 and early protot 00028d60: 79 70 69 6e 67 2e 22 29 2c 63 6f 6e 73 6f 6c 65 yping."),console 00028d70: 2e 6c 6f 67 28 22 22 29 2c 63 6f 6e 73 6f 6c 65 .log(""),console 00028d80: 2e 6c 6f 67 28 22 57 68 69 6c 65 20 79 6f 75 72 .log("While your 00028d90: 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 77 69 6c application wil 00028da0: 6c 20 63 6f 6e 74 69 6e 75 65 20 74 6f 20 66 75 l continue to fu 00028db0: 6e 63 74 69 6f 6e 2c 20 77 65 20 68 69 67 68 6c nction, we highl 00028dc0: 79 20 72 65 63 6f 6d 6d 65 6e 64 65 64 22 29 2c y recommended"), 00028dd0: 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 22 73 69 67 console.log("sig 00028de0: 6e 69 6e 67 20 75 70 20 66 6f 72 20 79 6f 75 72 ning up for your 00028df0: 20 6f 77 6e 20 41 50 49 20 6b 65 79 73 20 74 6f own API keys to 00028e00: 20 69 6d 70 72 6f 76 65 20 70 65 72 66 6f 72 6d improve perform 00028e10: 61 6e 63 65 2c 20 69 6e 63 72 65 61 73 65 20 79 ance, increase y 00028e20: 6f 75 72 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c 6f our"),console.lo 00028e30: 67 28 22 72 65 71 75 65 73 74 20 72 61 74 65 2f g("request rate/ 00028e40: 6c 69 6d 69 74 20 61 6e 64 20 65 6e 61 62 6c 65 limit and enable 00028e50: 20 6f 74 68 65 72 20 70 65 72 6b 73 2c 20 73 75 other perks, su 00028e60: 63 68 20 61 73 20 6d 65 74 72 69 63 73 20 61 6e ch as metrics an 00028e70: 64 20 61 64 76 61 6e 63 65 64 20 41 50 49 73 2e d advanced APIs. 00028e80: 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 22 "),console.log(" 00028e90: 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 22 "),console.log(" 00028ea0: 46 6f 72 20 6d 6f 72 65 20 64 65 74 61 69 6c 73 For more details 00028eb0: 3a 20 68 74 74 70 73 3a 2f 2f 64 6f 63 73 2e 65 : https://docs.e 00028ec0: 74 68 65 72 73 2e 69 6f 2f 61 70 69 2d 6b 65 79 thers.io/api-key 00028ed0: 73 2f 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 s/"),console.log 00028ee0: 28 22 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ("============== 00028ef0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 22 29 29 7d ============"))} 00028f00: 76 61 72 20 4d 61 3d 66 75 6e 63 74 69 6f 6e 28 var Ma=function( 00028f10: 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 e,t,n,r){return 00028f20: 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 new(n||(n=Promis 00028f30: 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c e))((function(o, 00028f40: 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 i){function a(e) 00028f50: 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 {try{l(r.next(e) 00028f60: 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d )}catch(e){i(e)} 00028f70: 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 }function s(e){t 00028f80: 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 ry{l(r.throw(e)) 00028f90: 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d }catch(e){i(e)}} 00028fa0: 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 function l(e){va 00028fb0: 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 r t;e.done?o(e.v 00028fc0: 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 alue):(t=e.value 00028fd0: 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f ,t instanceof n? 00028fe0: 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 6f t:new n((functio 00028ff0: 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 n(e){e(t)}))).th 00029000: 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 en(a,s)}l((r=r.a 00029010: 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e pply(e,t||[])).n 00029020: 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 ext())}))};const 00029030: 20 44 61 3d 6e 65 77 20 79 28 41 61 29 3b 66 75 Da=new y(Aa);fu 00029040: 6e 63 74 69 6f 6e 20 4c 61 28 65 29 7b 72 65 74 nction La(e){ret 00029050: 75 72 6e 20 6e 75 6c 6c 3d 3d 65 3f 22 6e 75 6c urn null==e?"nul 00029060: 6c 22 3a 28 33 32 21 3d 3d 4e 28 65 29 26 26 44 l":(32!==N(e)&&D 00029070: 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 a.throwArgumentE 00029080: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 74 6f rror("invalid to 00029090: 70 69 63 22 2c 22 74 6f 70 69 63 22 2c 65 29 2c pic","topic",e), 000290a0: 65 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 29 e.toLowerCase()) 000290b0: 7d 66 75 6e 63 74 69 6f 6e 20 46 61 28 65 29 7b }function Fa(e){ 000290c0: 66 6f 72 28 65 3d 65 2e 73 6c 69 63 65 28 29 3b for(e=e.slice(); 000290d0: 65 2e 6c 65 6e 67 74 68 3e 30 26 26 6e 75 6c 6c e.length>0&&null 000290e0: 3d 3d 65 5b 65 2e 6c 65 6e 67 74 68 2d 31 5d 3b ==e[e.length-1]; 000290f0: 29 65 2e 70 6f 70 28 29 3b 72 65 74 75 72 6e 20 )e.pop();return 00029100: 65 2e 6d 61 70 28 28 65 3d 3e 7b 69 66 28 41 72 e.map((e=>{if(Ar 00029110: 72 61 79 2e 69 73 41 72 72 61 79 28 65 29 29 7b ray.isArray(e)){ 00029120: 63 6f 6e 73 74 20 74 3d 7b 7d 3b 65 2e 66 6f 72 const t={};e.for 00029130: 45 61 63 68 28 28 65 3d 3e 7b 74 5b 4c 61 28 65 Each((e=>{t[La(e 00029140: 29 5d 3d 21 30 7d 29 29 3b 63 6f 6e 73 74 20 6e )]=!0}));const n 00029150: 3d 4f 62 6a 65 63 74 2e 6b 65 79 73 28 74 29 3b =Object.keys(t); 00029160: 72 65 74 75 72 6e 20 6e 2e 73 6f 72 74 28 29 2c return n.sort(), 00029170: 6e 2e 6a 6f 69 6e 28 22 7c 22 29 7d 72 65 74 75 n.join("|")}retu 00029180: 72 6e 20 4c 61 28 65 29 7d 29 29 2e 6a 6f 69 6e rn La(e)})).join 00029190: 28 22 26 22 29 7d 66 75 6e 63 74 69 6f 6e 20 55 ("&")}function U 000291a0: 61 28 65 29 7b 69 66 28 22 73 74 72 69 6e 67 22 a(e){if("string" 000291b0: 3d 3d 74 79 70 65 6f 66 20 65 29 7b 69 66 28 33 ==typeof e){if(3 000291c0: 32 3d 3d 3d 4e 28 65 3d 65 2e 74 6f 4c 6f 77 65 2===N(e=e.toLowe 000291d0: 72 43 61 73 65 28 29 29 29 72 65 74 75 72 6e 22 rCase()))return" 000291e0: 74 78 3a 22 2b 65 3b 69 66 28 2d 31 3d 3d 3d 65 tx:"+e;if(-1===e 000291f0: 2e 69 6e 64 65 78 4f 66 28 22 3a 22 29 29 72 65 .indexOf(":"))re 00029200: 74 75 72 6e 20 65 7d 65 6c 73 65 7b 69 66 28 41 turn e}else{if(A 00029210: 72 72 61 79 2e 69 73 41 72 72 61 79 28 65 29 29 rray.isArray(e)) 00029220: 72 65 74 75 72 6e 22 66 69 6c 74 65 72 3a 2a 3a return"filter:*: 00029230: 22 2b 46 61 28 65 29 3b 69 66 28 6f 6e 2e 69 73 "+Fa(e);if(on.is 00029240: 46 6f 72 6b 45 76 65 6e 74 28 65 29 29 74 68 72 ForkEvent(e))thr 00029250: 6f 77 20 44 61 2e 77 61 72 6e 28 22 6e 6f 74 20 ow Da.warn("not 00029260: 69 6d 70 6c 65 6d 65 6e 74 65 64 22 29 2c 6e 65 implemented"),ne 00029270: 77 20 45 72 72 6f 72 28 22 6e 6f 74 20 69 6d 70 w Error("not imp 00029280: 6c 65 6d 65 6e 74 65 64 22 29 3b 69 66 28 65 26 lemented");if(e& 00029290: 26 22 6f 62 6a 65 63 74 22 3d 3d 74 79 70 65 6f &"object"==typeo 000292a0: 66 20 65 29 72 65 74 75 72 6e 22 66 69 6c 74 65 f e)return"filte 000292b0: 72 3a 22 2b 28 65 2e 61 64 64 72 65 73 73 7c 7c r:"+(e.address|| 000292c0: 22 2a 22 29 2b 22 3a 22 2b 46 61 28 65 2e 74 6f "*")+":"+Fa(e.to 000292d0: 70 69 63 73 7c 7c 5b 5d 29 7d 74 68 72 6f 77 20 pics||[])}throw 000292e0: 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 76 61 6c new Error("inval 000292f0: 69 64 20 65 76 65 6e 74 20 2d 20 22 2b 65 29 7d id event - "+e)} 00029300: 66 75 6e 63 74 69 6f 6e 20 42 61 28 29 7b 72 65 function Ba(){re 00029310: 74 75 72 6e 28 6e 65 77 20 44 61 74 65 29 2e 67 turn(new Date).g 00029320: 65 74 54 69 6d 65 28 29 7d 66 75 6e 63 74 69 6f etTime()}functio 00029330: 6e 20 6a 61 28 65 29 7b 72 65 74 75 72 6e 20 6e n ja(e){return n 00029340: 65 77 20 50 72 6f 6d 69 73 65 28 28 74 3d 3e 7b ew Promise((t=>{ 00029350: 73 65 74 54 69 6d 65 6f 75 74 28 74 2c 65 29 7d setTimeout(t,e)} 00029360: 29 29 7d 63 6f 6e 73 74 20 7a 61 3d 5b 22 62 6c ))}const za=["bl 00029370: 6f 63 6b 22 2c 22 6e 65 74 77 6f 72 6b 22 2c 22 ock","network"," 00029380: 70 65 6e 64 69 6e 67 22 2c 22 70 6f 6c 6c 22 5d pending","poll"] 00029390: 3b 63 6c 61 73 73 20 47 61 7b 63 6f 6e 73 74 72 ;class Ga{constr 000293a0: 75 63 74 6f 72 28 65 2c 74 2c 6e 29 7b 74 65 28 uctor(e,t,n){te( 000293b0: 74 68 69 73 2c 22 74 61 67 22 2c 65 29 2c 74 65 this,"tag",e),te 000293c0: 28 74 68 69 73 2c 22 6c 69 73 74 65 6e 65 72 22 (this,"listener" 000293d0: 2c 74 29 2c 74 65 28 74 68 69 73 2c 22 6f 6e 63 ,t),te(this,"onc 000293e0: 65 22 2c 6e 29 2c 74 68 69 73 2e 5f 6c 61 73 74 e",n),this._last 000293f0: 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 2d 32 2c 74 BlockNumber=-2,t 00029400: 68 69 73 2e 5f 69 6e 66 6c 69 67 68 74 3d 21 31 his._inflight=!1 00029410: 7d 67 65 74 20 65 76 65 6e 74 28 29 7b 73 77 69 }get event(){swi 00029420: 74 63 68 28 74 68 69 73 2e 74 79 70 65 29 7b 63 tch(this.type){c 00029430: 61 73 65 22 74 78 22 3a 72 65 74 75 72 6e 20 74 ase"tx":return t 00029440: 68 69 73 2e 68 61 73 68 3b 63 61 73 65 22 66 69 his.hash;case"fi 00029450: 6c 74 65 72 22 3a 72 65 74 75 72 6e 20 74 68 69 lter":return thi 00029460: 73 2e 66 69 6c 74 65 72 7d 72 65 74 75 72 6e 20 s.filter}return 00029470: 74 68 69 73 2e 74 61 67 7d 67 65 74 20 74 79 70 this.tag}get typ 00029480: 65 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e e(){return this. 00029490: 74 61 67 2e 73 70 6c 69 74 28 22 3a 22 29 5b 30 tag.split(":")[0 000294a0: 5d 7d 67 65 74 20 68 61 73 68 28 29 7b 63 6f 6e ]}get hash(){con 000294b0: 73 74 20 65 3d 74 68 69 73 2e 74 61 67 2e 73 70 st e=this.tag.sp 000294c0: 6c 69 74 28 22 3a 22 29 3b 72 65 74 75 72 6e 22 lit(":");return" 000294d0: 74 78 22 21 3d 3d 65 5b 30 5d 3f 6e 75 6c 6c 3a tx"!==e[0]?null: 000294e0: 65 5b 31 5d 7d 67 65 74 20 66 69 6c 74 65 72 28 e[1]}get filter( 000294f0: 29 7b 63 6f 6e 73 74 20 65 3d 74 68 69 73 2e 74 ){const e=this.t 00029500: 61 67 2e 73 70 6c 69 74 28 22 3a 22 29 3b 69 66 ag.split(":");if 00029510: 28 22 66 69 6c 74 65 72 22 21 3d 3d 65 5b 30 5d ("filter"!==e[0] 00029520: 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f 6e )return null;con 00029530: 73 74 20 74 3d 65 5b 31 5d 2c 6e 3d 22 22 3d 3d st t=e[1],n=""== 00029540: 3d 28 72 3d 65 5b 32 5d 29 3f 5b 5d 3a 72 2e 73 =(r=e[2])?[]:r.s 00029550: 70 6c 69 74 28 2f 26 2f 67 29 2e 6d 61 70 28 28 plit(/&/g).map(( 00029560: 65 3d 3e 7b 69 66 28 22 22 3d 3d 3d 65 29 72 65 e=>{if(""===e)re 00029570: 74 75 72 6e 5b 5d 3b 63 6f 6e 73 74 20 74 3d 65 turn[];const t=e 00029580: 2e 73 70 6c 69 74 28 22 7c 22 29 2e 6d 61 70 28 .split("|").map( 00029590: 28 65 3d 3e 22 6e 75 6c 6c 22 3d 3d 3d 65 3f 6e (e=>"null"===e?n 000295a0: 75 6c 6c 3a 65 29 29 3b 72 65 74 75 72 6e 20 31 ull:e));return 1 000295b0: 3d 3d 3d 74 2e 6c 65 6e 67 74 68 3f 74 5b 30 5d ===t.length?t[0] 000295c0: 3a 74 7d 29 29 3b 76 61 72 20 72 3b 63 6f 6e 73 :t}));var r;cons 000295d0: 74 20 6f 3d 7b 7d 3b 72 65 74 75 72 6e 20 6e 2e t o={};return n. 000295e0: 6c 65 6e 67 74 68 3e 30 26 26 28 6f 2e 74 6f 70 length>0&&(o.top 000295f0: 69 63 73 3d 6e 29 2c 74 26 26 22 2a 22 21 3d 3d ics=n),t&&"*"!== 00029600: 74 26 26 28 6f 2e 61 64 64 72 65 73 73 3d 74 29 t&&(o.address=t) 00029610: 2c 6f 7d 70 6f 6c 6c 61 62 6c 65 28 29 7b 72 65 ,o}pollable(){re 00029620: 74 75 72 6e 20 74 68 69 73 2e 74 61 67 2e 69 6e turn this.tag.in 00029630: 64 65 78 4f 66 28 22 3a 22 29 3e 3d 30 7c 7c 7a dexOf(":")>=0||z 00029640: 61 2e 69 6e 64 65 78 4f 66 28 74 68 69 73 2e 74 a.indexOf(this.t 00029650: 61 67 29 3e 3d 30 7d 7d 63 6f 6e 73 74 20 48 61 ag)>=0}}const Ha 00029660: 3d 7b 30 3a 7b 73 79 6d 62 6f 6c 3a 22 62 74 63 ={0:{symbol:"btc 00029670: 22 2c 70 32 70 6b 68 3a 30 2c 70 32 73 68 3a 35 ",p2pkh:0,p2sh:5 00029680: 2c 70 72 65 66 69 78 3a 22 62 63 22 7d 2c 32 3a ,prefix:"bc"},2: 00029690: 7b 73 79 6d 62 6f 6c 3a 22 6c 74 63 22 2c 70 32 {symbol:"ltc",p2 000296a0: 70 6b 68 3a 34 38 2c 70 32 73 68 3a 35 30 2c 70 pkh:48,p2sh:50,p 000296b0: 72 65 66 69 78 3a 22 6c 74 63 22 7d 2c 33 3a 7b refix:"ltc"},3:{ 000296c0: 73 79 6d 62 6f 6c 3a 22 64 6f 67 65 22 2c 70 32 symbol:"doge",p2 000296d0: 70 6b 68 3a 33 30 2c 70 32 73 68 3a 32 32 7d 2c pkh:30,p2sh:22}, 000296e0: 36 30 3a 7b 73 79 6d 62 6f 6c 3a 22 65 74 68 22 60:{symbol:"eth" 000296f0: 2c 69 6c 6b 3a 22 65 74 68 22 7d 2c 36 31 3a 7b ,ilk:"eth"},61:{ 00029700: 73 79 6d 62 6f 6c 3a 22 65 74 63 22 2c 69 6c 6b symbol:"etc",ilk 00029710: 3a 22 65 74 68 22 7d 2c 37 30 30 3a 7b 73 79 6d :"eth"},700:{sym 00029720: 62 6f 6c 3a 22 78 64 61 69 22 2c 69 6c 6b 3a 22 bol:"xdai",ilk:" 00029730: 65 74 68 22 7d 7d 3b 66 75 6e 63 74 69 6f 6e 20 eth"}};function 00029740: 56 61 28 65 29 7b 72 65 74 75 72 6e 20 46 28 59 Va(e){return F(Y 00029750: 2e 66 72 6f 6d 28 65 29 2e 74 6f 48 65 78 53 74 .from(e).toHexSt 00029760: 72 69 6e 67 28 29 2c 33 32 29 7d 66 75 6e 63 74 ring(),32)}funct 00029770: 69 6f 6e 20 71 61 28 65 29 7b 72 65 74 75 72 6e ion qa(e){return 00029780: 20 62 6f 2e 65 6e 63 6f 64 65 28 43 28 5b 65 2c bo.encode(C([e, 00029790: 50 28 45 6f 28 45 6f 28 65 29 29 2c 30 2c 34 29 P(Eo(Eo(e)),0,4) 000297a0: 5d 29 29 7d 63 6f 6e 73 74 20 57 61 3d 6e 65 77 ]))}const Wa=new 000297b0: 20 52 65 67 45 78 70 28 22 5e 28 69 70 66 73 29 RegExp("^(ipfs) 000297c0: 3a 2f 2f 28 2e 2a 29 24 22 2c 22 69 22 29 2c 4b ://(.*)$","i"),K 000297d0: 61 3d 5b 6e 65 77 20 52 65 67 45 78 70 28 22 5e a=[new RegExp("^ 000297e0: 28 68 74 74 70 73 29 3a 2f 2f 28 2e 2a 29 24 22 (https)://(.*)$" 000297f0: 2c 22 69 22 29 2c 6e 65 77 20 52 65 67 45 78 70 ,"i"),new RegExp 00029800: 28 22 5e 28 64 61 74 61 29 3a 28 2e 2a 29 24 22 ("^(data):(.*)$" 00029810: 2c 22 69 22 29 2c 57 61 2c 6e 65 77 20 52 65 67 ,"i"),Wa,new Reg 00029820: 45 78 70 28 22 5e 65 69 70 31 35 35 3a 5b 30 2d Exp("^eip155:[0- 00029830: 39 5d 2b 2f 28 65 72 63 5b 30 2d 39 5d 2b 29 3a 9]+/(erc[0-9]+): 00029840: 28 2e 2a 29 24 22 2c 22 69 22 29 5d 3b 66 75 6e (.*)$","i")];fun 00029850: 63 74 69 6f 6e 20 59 61 28 65 2c 74 29 7b 74 72 ction Ya(e,t){tr 00029860: 79 7b 72 65 74 75 72 6e 20 58 65 28 58 61 28 65 y{return Xe(Xa(e 00029870: 2c 74 29 29 7d 63 61 74 63 68 28 65 29 7b 7d 72 ,t))}catch(e){}r 00029880: 65 74 75 72 6e 20 6e 75 6c 6c 7d 66 75 6e 63 74 eturn null}funct 00029890: 69 6f 6e 20 58 61 28 65 2c 74 29 7b 69 66 28 22 ion Xa(e,t){if(" 000298a0: 30 78 22 3d 3d 3d 65 29 72 65 74 75 72 6e 20 6e 0x"===e)return n 000298b0: 75 6c 6c 3b 63 6f 6e 73 74 20 6e 3d 59 2e 66 72 ull;const n=Y.fr 000298c0: 6f 6d 28 50 28 65 2c 74 2c 74 2b 33 32 29 29 2e om(P(e,t,t+32)). 000298d0: 74 6f 4e 75 6d 62 65 72 28 29 2c 72 3d 59 2e 66 toNumber(),r=Y.f 000298e0: 72 6f 6d 28 50 28 65 2c 6e 2c 6e 2b 33 32 29 29 rom(P(e,n,n+32)) 000298f0: 2e 74 6f 4e 75 6d 62 65 72 28 29 3b 72 65 74 75 .toNumber();retu 00029900: 72 6e 20 50 28 65 2c 6e 2b 33 32 2c 6e 2b 33 32 rn P(e,n+32,n+32 00029910: 2b 72 29 7d 66 75 6e 63 74 69 6f 6e 20 5a 61 28 +r)}function Za( 00029920: 65 29 7b 72 65 74 75 72 6e 20 65 2e 6d 61 74 63 e){return e.matc 00029930: 68 28 2f 5e 69 70 66 73 3a 5c 2f 5c 2f 69 70 66 h(/^ipfs:\/\/ipf 00029940: 73 5c 2f 2f 69 29 3f 65 3d 65 2e 73 75 62 73 74 s\//i)?e=e.subst 00029950: 72 69 6e 67 28 31 32 29 3a 65 2e 6d 61 74 63 68 ring(12):e.match 00029960: 28 2f 5e 69 70 66 73 3a 5c 2f 5c 2f 2f 69 29 3f (/^ipfs:\/\//i)? 00029970: 65 3d 65 2e 73 75 62 73 74 72 69 6e 67 28 37 29 e=e.substring(7) 00029980: 3a 44 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e :Da.throwArgumen 00029990: 74 45 72 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 tError("unsuppor 000299a0: 74 65 64 20 49 50 46 53 20 66 6f 72 6d 61 74 22 ted IPFS format" 000299b0: 2c 22 6c 69 6e 6b 22 2c 65 29 2c 60 68 74 74 70 ,"link",e),`http 000299c0: 73 3a 2f 2f 67 61 74 65 77 61 79 2e 69 70 66 73 s://gateway.ipfs 000299d0: 2e 69 6f 2f 69 70 66 73 2f 24 7b 65 7d 60 7d 66 .io/ipfs/${e}`}f 000299e0: 75 6e 63 74 69 6f 6e 20 51 61 28 65 29 7b 63 6f unction Qa(e){co 000299f0: 6e 73 74 20 74 3d 54 28 65 29 3b 69 66 28 74 2e nst t=T(e);if(t. 00029a00: 6c 65 6e 67 74 68 3e 33 32 29 74 68 72 6f 77 20 length>32)throw 00029a10: 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 74 65 72 new Error("inter 00029a20: 6e 61 6c 3b 20 73 68 6f 75 6c 64 20 6e 6f 74 20 nal; should not 00029a30: 68 61 70 70 65 6e 22 29 3b 63 6f 6e 73 74 20 6e happen");const n 00029a40: 3d 6e 65 77 20 55 69 6e 74 38 41 72 72 61 79 28 =new Uint8Array( 00029a50: 33 32 29 3b 72 65 74 75 72 6e 20 6e 2e 73 65 74 32);return n.set 00029a60: 28 74 2c 33 32 2d 74 2e 6c 65 6e 67 74 68 29 2c (t,32-t.length), 00029a70: 6e 7d 66 75 6e 63 74 69 6f 6e 20 4a 61 28 65 29 n}function Ja(e) 00029a80: 7b 69 66 28 65 2e 6c 65 6e 67 74 68 25 33 32 3d {if(e.length%32= 00029a90: 3d 30 29 72 65 74 75 72 6e 20 65 3b 63 6f 6e 73 =0)return e;cons 00029aa0: 74 20 74 3d 6e 65 77 20 55 69 6e 74 38 41 72 72 t t=new Uint8Arr 00029ab0: 61 79 28 33 32 2a 4d 61 74 68 2e 63 65 69 6c 28 ay(32*Math.ceil( 00029ac0: 65 2e 6c 65 6e 67 74 68 2f 33 32 29 29 3b 72 65 e.length/32));re 00029ad0: 74 75 72 6e 20 74 2e 73 65 74 28 65 29 2c 74 7d turn t.set(e),t} 00029ae0: 66 75 6e 63 74 69 6f 6e 20 24 61 28 65 29 7b 63 function $a(e){c 00029af0: 6f 6e 73 74 20 74 3d 5b 5d 3b 6c 65 74 20 6e 3d onst t=[];let n= 00029b00: 30 3b 66 6f 72 28 6c 65 74 20 72 3d 30 3b 72 3c 0;for(let r=0;r< 00029b10: 65 2e 6c 65 6e 67 74 68 3b 72 2b 2b 29 74 2e 70 e.length;r++)t.p 00029b20: 75 73 68 28 6e 75 6c 6c 29 2c 6e 2b 3d 33 32 3b ush(null),n+=32; 00029b30: 66 6f 72 28 6c 65 74 20 72 3d 30 3b 72 3c 65 2e for(let r=0;r<e. 00029b40: 6c 65 6e 67 74 68 3b 72 2b 2b 29 7b 63 6f 6e 73 length;r++){cons 00029b50: 74 20 6f 3d 54 28 65 5b 72 5d 29 3b 74 5b 72 5d t o=T(e[r]);t[r] 00029b60: 3d 51 61 28 6e 29 2c 74 2e 70 75 73 68 28 51 61 =Qa(n),t.push(Qa 00029b70: 28 6f 2e 6c 65 6e 67 74 68 29 29 2c 74 2e 70 75 (o.length)),t.pu 00029b80: 73 68 28 4a 61 28 6f 29 29 2c 6e 2b 3d 33 32 2b sh(Ja(o)),n+=32+ 00029b90: 33 32 2a 4d 61 74 68 2e 63 65 69 6c 28 6f 2e 6c 32*Math.ceil(o.l 00029ba0: 65 6e 67 74 68 2f 33 32 29 7d 72 65 74 75 72 6e ength/32)}return 00029bb0: 20 4d 28 74 29 7d 63 6c 61 73 73 20 65 73 7b 63 M(t)}class es{c 00029bc0: 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 2c 6e onstructor(e,t,n 00029bd0: 2c 72 29 7b 74 65 28 74 68 69 73 2c 22 70 72 6f ,r){te(this,"pro 00029be0: 76 69 64 65 72 22 2c 65 29 2c 74 65 28 74 68 69 vider",e),te(thi 00029bf0: 73 2c 22 6e 61 6d 65 22 2c 6e 29 2c 74 65 28 74 s,"name",n),te(t 00029c00: 68 69 73 2c 22 61 64 64 72 65 73 73 22 2c 65 2e his,"address",e. 00029c10: 66 6f 72 6d 61 74 74 65 72 2e 61 64 64 72 65 73 formatter.addres 00029c20: 73 28 74 29 29 2c 74 65 28 74 68 69 73 2c 22 5f s(t)),te(this,"_ 00029c30: 72 65 73 6f 6c 76 65 64 41 64 64 72 65 73 73 22 resolvedAddress" 00029c40: 2c 72 29 7d 73 75 70 70 6f 72 74 73 57 69 6c 64 ,r)}supportsWild 00029c50: 63 61 72 64 28 29 7b 72 65 74 75 72 6e 20 74 68 card(){return th 00029c60: 69 73 2e 5f 73 75 70 70 6f 72 74 73 45 69 70 32 is._supportsEip2 00029c70: 35 34 34 7c 7c 28 74 68 69 73 2e 5f 73 75 70 70 544||(this._supp 00029c80: 6f 72 74 73 45 69 70 32 35 34 34 3d 74 68 69 73 ortsEip2544=this 00029c90: 2e 70 72 6f 76 69 64 65 72 2e 63 61 6c 6c 28 7b .provider.call({ 00029ca0: 74 6f 3a 74 68 69 73 2e 61 64 64 72 65 73 73 2c to:this.address, 00029cb0: 64 61 74 61 3a 22 30 78 30 31 66 66 63 39 61 37 data:"0x01ffc9a7 00029cc0: 39 30 36 31 62 39 32 33 30 30 30 30 30 30 30 30 9061b92300000000 00029cd0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00029ce0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00029cf0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00029d00: 22 7d 29 2e 74 68 65 6e 28 28 65 3d 3e 59 2e 66 "}).then((e=>Y.f 00029d10: 72 6f 6d 28 65 29 2e 65 71 28 31 29 29 29 2e 63 rom(e).eq(1))).c 00029d20: 61 74 63 68 28 28 65 3d 3e 7b 69 66 28 65 2e 63 atch((e=>{if(e.c 00029d30: 6f 64 65 3d 3d 3d 79 2e 65 72 72 6f 72 73 2e 43 ode===y.errors.C 00029d40: 41 4c 4c 5f 45 58 43 45 50 54 49 4f 4e 29 72 65 ALL_EXCEPTION)re 00029d50: 74 75 72 6e 21 31 3b 74 68 72 6f 77 20 74 68 69 turn!1;throw thi 00029d60: 73 2e 5f 73 75 70 70 6f 72 74 73 45 69 70 32 35 s._supportsEip25 00029d70: 34 34 3d 6e 75 6c 6c 2c 65 7d 29 29 29 2c 74 68 44=null,e}))),th 00029d80: 69 73 2e 5f 73 75 70 70 6f 72 74 73 45 69 70 32 is._supportsEip2 00029d90: 35 34 34 7d 5f 66 65 74 63 68 28 65 2c 74 29 7b 544}_fetch(e,t){ 00029da0: 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 return Ma(this,v 00029db0: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 00029dc0: 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 nction*(){const 00029dd0: 6e 3d 7b 74 6f 3a 74 68 69 73 2e 61 64 64 72 65 n={to:this.addre 00029de0: 73 73 2c 63 63 69 70 52 65 61 64 45 6e 61 62 6c ss,ccipReadEnabl 00029df0: 65 64 3a 21 30 2c 64 61 74 61 3a 4d 28 5b 65 2c ed:!0,data:M([e, 00029e00: 68 61 28 74 68 69 73 2e 6e 61 6d 65 29 2c 74 7c ha(this.name),t| 00029e10: 7c 22 30 78 22 5d 29 7d 3b 6c 65 74 20 72 3d 21 |"0x"])};let r=! 00029e20: 31 3b 28 79 69 65 6c 64 20 74 68 69 73 2e 73 75 1;(yield this.su 00029e30: 70 70 6f 72 74 73 57 69 6c 64 63 61 72 64 28 29 pportsWildcard() 00029e40: 29 26 26 28 72 3d 21 30 2c 6e 2e 64 61 74 61 3d )&&(r=!0,n.data= 00029e50: 4d 28 5b 22 30 78 39 30 36 31 62 39 32 33 22 2c M(["0x9061b923", 00029e60: 24 61 28 5b 6d 61 28 74 68 69 73 2e 6e 61 6d 65 $a([ma(this.name 00029e70: 29 2c 6e 2e 64 61 74 61 5d 29 5d 29 29 3b 74 72 ),n.data])]));tr 00029e80: 79 7b 6c 65 74 20 65 3d 79 69 65 6c 64 20 74 68 y{let e=yield th 00029e90: 69 73 2e 70 72 6f 76 69 64 65 72 2e 63 61 6c 6c is.provider.call 00029ea0: 28 6e 29 3b 72 65 74 75 72 6e 20 54 28 65 29 2e (n);return T(e). 00029eb0: 6c 65 6e 67 74 68 25 33 32 3d 3d 34 26 26 44 61 length%32==4&&Da 00029ec0: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 72 65 73 .throwError("res 00029ed0: 6f 6c 76 65 72 20 74 68 72 65 77 20 65 72 72 6f olver threw erro 00029ee0: 72 22 2c 79 2e 65 72 72 6f 72 73 2e 43 41 4c 4c r",y.errors.CALL 00029ef0: 5f 45 58 43 45 50 54 49 4f 4e 2c 7b 74 72 61 6e _EXCEPTION,{tran 00029f00: 73 61 63 74 69 6f 6e 3a 6e 2c 64 61 74 61 3a 65 saction:n,data:e 00029f10: 7d 29 2c 72 26 26 28 65 3d 58 61 28 65 2c 30 29 }),r&&(e=Xa(e,0) 00029f20: 29 2c 65 7d 63 61 74 63 68 28 65 29 7b 69 66 28 ),e}catch(e){if( 00029f30: 65 2e 63 6f 64 65 3d 3d 3d 79 2e 65 72 72 6f 72 e.code===y.error 00029f40: 73 2e 43 41 4c 4c 5f 45 58 43 45 50 54 49 4f 4e s.CALL_EXCEPTION 00029f50: 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 74 68 72 )return null;thr 00029f60: 6f 77 20 65 7d 7d 29 29 7d 5f 66 65 74 63 68 42 ow e}}))}_fetchB 00029f70: 79 74 65 73 28 65 2c 74 29 7b 72 65 74 75 72 6e ytes(e,t){return 00029f80: 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c Ma(this,void 0, 00029f90: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 00029fa0: 2a 28 29 7b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c *(){const n=yiel 00029fb0: 64 20 74 68 69 73 2e 5f 66 65 74 63 68 28 65 2c d this._fetch(e, 00029fc0: 74 29 3b 72 65 74 75 72 6e 20 6e 75 6c 6c 21 3d t);return null!= 00029fd0: 6e 3f 58 61 28 6e 2c 30 29 3a 6e 75 6c 6c 7d 29 n?Xa(n,0):null}) 00029fe0: 29 7d 5f 67 65 74 41 64 64 72 65 73 73 28 65 2c )}_getAddress(e, 00029ff0: 74 29 7b 63 6f 6e 73 74 20 6e 3d 48 61 5b 53 74 t){const n=Ha[St 0002a000: 72 69 6e 67 28 65 29 5d 3b 69 66 28 6e 75 6c 6c ring(e)];if(null 0002a010: 3d 3d 6e 26 26 44 61 2e 74 68 72 6f 77 45 72 72 ==n&&Da.throwErr 0002a020: 6f 72 28 60 75 6e 73 75 70 70 6f 72 74 65 64 20 or(`unsupported 0002a030: 63 6f 69 6e 20 74 79 70 65 3a 20 24 7b 65 7d 60 coin type: ${e}` 0002a040: 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 ,y.errors.UNSUPP 0002a050: 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c ORTED_OPERATION, 0002a060: 7b 6f 70 65 72 61 74 69 6f 6e 3a 60 67 65 74 41 {operation:`getA 0002a070: 64 64 72 65 73 73 28 24 7b 65 7d 29 60 7d 29 2c ddress(${e})`}), 0002a080: 22 65 74 68 22 3d 3d 3d 6e 2e 69 6c 6b 29 72 65 "eth"===n.ilk)re 0002a090: 74 75 72 6e 20 74 68 69 73 2e 70 72 6f 76 69 64 turn this.provid 0002a0a0: 65 72 2e 66 6f 72 6d 61 74 74 65 72 2e 61 64 64 er.formatter.add 0002a0b0: 72 65 73 73 28 74 29 3b 63 6f 6e 73 74 20 72 3d ress(t);const r= 0002a0c0: 54 28 74 29 3b 69 66 28 6e 75 6c 6c 21 3d 6e 2e T(t);if(null!=n. 0002a0d0: 70 32 70 6b 68 29 7b 63 6f 6e 73 74 20 65 3d 74 p2pkh){const e=t 0002a0e0: 2e 6d 61 74 63 68 28 2f 5e 30 78 37 36 61 39 28 .match(/^0x76a9( 0002a0f0: 5b 30 2d 39 61 2d 66 5d 5b 30 2d 39 61 2d 66 5d [0-9a-f][0-9a-f] 0002a100: 29 28 5b 30 2d 39 61 2d 66 5d 2a 29 38 38 61 63 )([0-9a-f]*)88ac 0002a110: 24 2f 29 3b 69 66 28 65 29 7b 63 6f 6e 73 74 20 $/);if(e){const 0002a120: 74 3d 70 61 72 73 65 49 6e 74 28 65 5b 31 5d 2c t=parseInt(e[1], 0002a130: 31 36 29 3b 69 66 28 65 5b 32 5d 2e 6c 65 6e 67 16);if(e[2].leng 0002a140: 74 68 3d 3d 3d 32 2a 74 26 26 74 3e 3d 31 26 26 th===2*t&&t>=1&& 0002a150: 74 3c 3d 37 35 29 72 65 74 75 72 6e 20 71 61 28 t<=75)return qa( 0002a160: 43 28 5b 5b 6e 2e 70 32 70 6b 68 5d 2c 22 30 78 C([[n.p2pkh],"0x 0002a170: 22 2b 65 5b 32 5d 5d 29 29 7d 7d 69 66 28 6e 75 "+e[2]]))}}if(nu 0002a180: 6c 6c 21 3d 6e 2e 70 32 73 68 29 7b 63 6f 6e 73 ll!=n.p2sh){cons 0002a190: 74 20 65 3d 74 2e 6d 61 74 63 68 28 2f 5e 30 78 t e=t.match(/^0x 0002a1a0: 61 39 28 5b 30 2d 39 61 2d 66 5d 5b 30 2d 39 61 a9([0-9a-f][0-9a 0002a1b0: 2d 66 5d 29 28 5b 30 2d 39 61 2d 66 5d 2a 29 38 -f])([0-9a-f]*)8 0002a1c0: 37 24 2f 29 3b 69 66 28 65 29 7b 63 6f 6e 73 74 7$/);if(e){const 0002a1d0: 20 74 3d 70 61 72 73 65 49 6e 74 28 65 5b 31 5d t=parseInt(e[1] 0002a1e0: 2c 31 36 29 3b 69 66 28 65 5b 32 5d 2e 6c 65 6e ,16);if(e[2].len 0002a1f0: 67 74 68 3d 3d 3d 32 2a 74 26 26 74 3e 3d 31 26 gth===2*t&&t>=1& 0002a200: 26 74 3c 3d 37 35 29 72 65 74 75 72 6e 20 71 61 &t<=75)return qa 0002a210: 28 43 28 5b 5b 6e 2e 70 32 73 68 5d 2c 22 30 78 (C([[n.p2sh],"0x 0002a220: 22 2b 65 5b 32 5d 5d 29 29 7d 7d 69 66 28 6e 75 "+e[2]]))}}if(nu 0002a230: 6c 6c 21 3d 6e 2e 70 72 65 66 69 78 29 7b 63 6f ll!=n.prefix){co 0002a240: 6e 73 74 20 65 3d 72 5b 31 5d 3b 6c 65 74 20 74 nst e=r[1];let t 0002a250: 3d 72 5b 30 5d 3b 69 66 28 30 3d 3d 3d 74 3f 32 =r[0];if(0===t?2 0002a260: 30 21 3d 3d 65 26 26 33 32 21 3d 3d 65 26 26 28 0!==e&&32!==e&&( 0002a270: 74 3d 2d 31 29 3a 74 3d 2d 31 2c 74 3e 3d 30 26 t=-1):t=-1,t>=0& 0002a280: 26 72 2e 6c 65 6e 67 74 68 3d 3d 3d 32 2b 65 26 &r.length===2+e& 0002a290: 26 65 3e 3d 31 26 26 65 3c 3d 37 35 29 7b 63 6f &e>=1&&e<=75){co 0002a2a0: 6e 73 74 20 65 3d 43 61 28 29 2e 74 6f 57 6f 72 nst e=Ca().toWor 0002a2b0: 64 73 28 72 2e 73 6c 69 63 65 28 32 29 29 3b 72 ds(r.slice(2));r 0002a2c0: 65 74 75 72 6e 20 65 2e 75 6e 73 68 69 66 74 28 eturn e.unshift( 0002a2d0: 74 29 2c 43 61 28 29 2e 65 6e 63 6f 64 65 28 6e t),Ca().encode(n 0002a2e0: 2e 70 72 65 66 69 78 2c 65 29 7d 7d 72 65 74 75 .prefix,e)}}retu 0002a2f0: 72 6e 20 6e 75 6c 6c 7d 67 65 74 41 64 64 72 65 rn null}getAddre 0002a300: 73 73 28 65 29 7b 72 65 74 75 72 6e 20 4d 61 28 ss(e){return Ma( 0002a310: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 0002a320: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 0002a330: 69 66 28 6e 75 6c 6c 3d 3d 65 26 26 28 65 3d 36 if(null==e&&(e=6 0002a340: 30 29 2c 36 30 3d 3d 3d 65 29 74 72 79 7b 63 6f 0),60===e)try{co 0002a350: 6e 73 74 20 65 3d 79 69 65 6c 64 20 74 68 69 73 nst e=yield this 0002a360: 2e 5f 66 65 74 63 68 28 22 30 78 33 62 33 62 35 ._fetch("0x3b3b5 0002a370: 37 64 65 22 29 3b 72 65 74 75 72 6e 22 30 78 22 7de");return"0x" 0002a380: 3d 3d 3d 65 7c 7c 65 3d 3d 3d 4f 69 3f 6e 75 6c ===e||e===Oi?nul 0002a390: 6c 3a 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e l:this.provider. 0002a3a0: 66 6f 72 6d 61 74 74 65 72 2e 63 61 6c 6c 41 64 formatter.callAd 0002a3b0: 64 72 65 73 73 28 65 29 7d 63 61 74 63 68 28 65 dress(e)}catch(e 0002a3c0: 29 7b 69 66 28 65 2e 63 6f 64 65 3d 3d 3d 79 2e ){if(e.code===y. 0002a3d0: 65 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 errors.CALL_EXCE 0002a3e0: 50 54 49 4f 4e 29 72 65 74 75 72 6e 20 6e 75 6c PTION)return nul 0002a3f0: 6c 3b 74 68 72 6f 77 20 65 7d 63 6f 6e 73 74 20 l;throw e}const 0002a400: 74 3d 79 69 65 6c 64 20 74 68 69 73 2e 5f 66 65 t=yield this._fe 0002a410: 74 63 68 42 79 74 65 73 28 22 30 78 66 31 63 62 tchBytes("0xf1cb 0002a420: 37 65 30 36 22 2c 56 61 28 65 29 29 3b 69 66 28 7e06",Va(e));if( 0002a430: 6e 75 6c 6c 3d 3d 74 7c 7c 22 30 78 22 3d 3d 3d null==t||"0x"=== 0002a440: 74 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f t)return null;co 0002a450: 6e 73 74 20 6e 3d 74 68 69 73 2e 5f 67 65 74 41 nst n=this._getA 0002a460: 64 64 72 65 73 73 28 65 2c 74 29 3b 72 65 74 75 ddress(e,t);retu 0002a470: 72 6e 20 6e 75 6c 6c 3d 3d 6e 26 26 44 61 2e 74 rn null==n&&Da.t 0002a480: 68 72 6f 77 45 72 72 6f 72 28 22 69 6e 76 61 6c hrowError("inval 0002a490: 69 64 20 6f 72 20 75 6e 73 75 70 70 6f 72 74 65 id or unsupporte 0002a4a0: 64 20 63 6f 69 6e 20 64 61 74 61 22 2c 79 2e 65 d coin data",y.e 0002a4b0: 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 rrors.UNSUPPORTE 0002a4c0: 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 D_OPERATION,{ope 0002a4d0: 72 61 74 69 6f 6e 3a 60 67 65 74 41 64 64 72 65 ration:`getAddre 0002a4e0: 73 73 28 24 7b 65 7d 29 60 2c 63 6f 69 6e 54 79 ss(${e})`,coinTy 0002a4f0: 70 65 3a 65 2c 64 61 74 61 3a 74 7d 29 2c 6e 7d pe:e,data:t}),n} 0002a500: 29 29 7d 67 65 74 41 76 61 74 61 72 28 29 7b 72 ))}getAvatar(){r 0002a510: 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f eturn Ma(this,vo 0002a520: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 0002a530: 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 65 ction*(){const e 0002a540: 3d 5b 7b 74 79 70 65 3a 22 6e 61 6d 65 22 2c 63 =[{type:"name",c 0002a550: 6f 6e 74 65 6e 74 3a 74 68 69 73 2e 6e 61 6d 65 ontent:this.name 0002a560: 7d 5d 3b 74 72 79 7b 63 6f 6e 73 74 20 74 3d 79 }];try{const t=y 0002a570: 69 65 6c 64 20 74 68 69 73 2e 67 65 74 54 65 78 ield this.getTex 0002a580: 74 28 22 61 76 61 74 61 72 22 29 3b 69 66 28 6e t("avatar");if(n 0002a590: 75 6c 6c 3d 3d 74 29 72 65 74 75 72 6e 20 6e 75 ull==t)return nu 0002a5a0: 6c 6c 3b 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 6e ll;for(let n=0;n 0002a5b0: 3c 4b 61 2e 6c 65 6e 67 74 68 3b 6e 2b 2b 29 7b <Ka.length;n++){ 0002a5c0: 63 6f 6e 73 74 20 72 3d 74 2e 6d 61 74 63 68 28 const r=t.match( 0002a5d0: 4b 61 5b 6e 5d 29 3b 69 66 28 6e 75 6c 6c 3d 3d Ka[n]);if(null== 0002a5e0: 72 29 63 6f 6e 74 69 6e 75 65 3b 63 6f 6e 73 74 r)continue;const 0002a5f0: 20 6f 3d 72 5b 31 5d 2e 74 6f 4c 6f 77 65 72 43 o=r[1].toLowerC 0002a600: 61 73 65 28 29 3b 73 77 69 74 63 68 28 6f 29 7b ase();switch(o){ 0002a610: 63 61 73 65 22 68 74 74 70 73 22 3a 72 65 74 75 case"https":retu 0002a620: 72 6e 20 65 2e 70 75 73 68 28 7b 74 79 70 65 3a rn e.push({type: 0002a630: 22 75 72 6c 22 2c 63 6f 6e 74 65 6e 74 3a 74 7d "url",content:t} 0002a640: 29 2c 7b 6c 69 6e 6b 61 67 65 3a 65 2c 75 72 6c ),{linkage:e,url 0002a650: 3a 74 7d 3b 63 61 73 65 22 64 61 74 61 22 3a 72 :t};case"data":r 0002a660: 65 74 75 72 6e 20 65 2e 70 75 73 68 28 7b 74 79 eturn e.push({ty 0002a670: 70 65 3a 22 64 61 74 61 22 2c 63 6f 6e 74 65 6e pe:"data",conten 0002a680: 74 3a 74 7d 29 2c 7b 6c 69 6e 6b 61 67 65 3a 65 t:t}),{linkage:e 0002a690: 2c 75 72 6c 3a 74 7d 3b 63 61 73 65 22 69 70 66 ,url:t};case"ipf 0002a6a0: 73 22 3a 72 65 74 75 72 6e 20 65 2e 70 75 73 68 s":return e.push 0002a6b0: 28 7b 74 79 70 65 3a 22 69 70 66 73 22 2c 63 6f ({type:"ipfs",co 0002a6c0: 6e 74 65 6e 74 3a 74 7d 29 2c 7b 6c 69 6e 6b 61 ntent:t}),{linka 0002a6d0: 67 65 3a 65 2c 75 72 6c 3a 5a 61 28 74 29 7d 3b ge:e,url:Za(t)}; 0002a6e0: 63 61 73 65 22 65 72 63 37 32 31 22 3a 63 61 73 case"erc721":cas 0002a6f0: 65 22 65 72 63 31 31 35 35 22 3a 7b 63 6f 6e 73 e"erc1155":{cons 0002a700: 74 20 6e 3d 22 65 72 63 37 32 31 22 3d 3d 3d 6f t n="erc721"===o 0002a710: 3f 22 30 78 63 38 37 62 35 36 64 64 22 3a 22 30 ?"0xc87b56dd":"0 0002a720: 78 30 65 38 39 33 34 31 63 22 3b 65 2e 70 75 73 x0e89341c";e.pus 0002a730: 68 28 7b 74 79 70 65 3a 6f 2c 63 6f 6e 74 65 6e h({type:o,conten 0002a740: 74 3a 74 7d 29 3b 63 6f 6e 73 74 20 69 3d 74 68 t:t});const i=th 0002a750: 69 73 2e 5f 72 65 73 6f 6c 76 65 64 41 64 64 72 is._resolvedAddr 0002a760: 65 73 73 7c 7c 28 79 69 65 6c 64 20 74 68 69 73 ess||(yield this 0002a770: 2e 67 65 74 41 64 64 72 65 73 73 28 29 29 2c 61 .getAddress()),a 0002a780: 3d 28 72 5b 32 5d 7c 7c 22 22 29 2e 73 70 6c 69 =(r[2]||"").spli 0002a790: 74 28 22 2f 22 29 3b 69 66 28 32 21 3d 3d 61 2e t("/");if(2!==a. 0002a7a0: 6c 65 6e 67 74 68 29 72 65 74 75 72 6e 20 6e 75 length)return nu 0002a7b0: 6c 6c 3b 63 6f 6e 73 74 20 73 3d 79 69 65 6c 64 ll;const s=yield 0002a7c0: 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 66 this.provider.f 0002a7d0: 6f 72 6d 61 74 74 65 72 2e 61 64 64 72 65 73 73 ormatter.address 0002a7e0: 28 61 5b 30 5d 29 2c 6c 3d 46 28 59 2e 66 72 6f (a[0]),l=F(Y.fro 0002a7f0: 6d 28 61 5b 31 5d 29 2e 74 6f 48 65 78 53 74 72 m(a[1]).toHexStr 0002a800: 69 6e 67 28 29 2c 33 32 29 3b 69 66 28 22 65 72 ing(),32);if("er 0002a810: 63 37 32 31 22 3d 3d 3d 6f 29 7b 63 6f 6e 73 74 c721"===o){const 0002a820: 20 74 3d 74 68 69 73 2e 70 72 6f 76 69 64 65 72 t=this.provider 0002a830: 2e 66 6f 72 6d 61 74 74 65 72 2e 63 61 6c 6c 41 .formatter.callA 0002a840: 64 64 72 65 73 73 28 79 69 65 6c 64 20 74 68 69 ddress(yield thi 0002a850: 73 2e 70 72 6f 76 69 64 65 72 2e 63 61 6c 6c 28 s.provider.call( 0002a860: 7b 74 6f 3a 73 2c 64 61 74 61 3a 4d 28 5b 22 30 {to:s,data:M(["0 0002a870: 78 36 33 35 32 32 31 31 65 22 2c 6c 5d 29 7d 29 x6352211e",l])}) 0002a880: 29 3b 69 66 28 69 21 3d 3d 74 29 72 65 74 75 72 );if(i!==t)retur 0002a890: 6e 20 6e 75 6c 6c 3b 65 2e 70 75 73 68 28 7b 74 n null;e.push({t 0002a8a0: 79 70 65 3a 22 6f 77 6e 65 72 22 2c 63 6f 6e 74 ype:"owner",cont 0002a8b0: 65 6e 74 3a 74 7d 29 7d 65 6c 73 65 20 69 66 28 ent:t})}else if( 0002a8c0: 22 65 72 63 31 31 35 35 22 3d 3d 3d 6f 29 7b 63 "erc1155"===o){c 0002a8d0: 6f 6e 73 74 20 74 3d 59 2e 66 72 6f 6d 28 79 69 onst t=Y.from(yi 0002a8e0: 65 6c 64 20 74 68 69 73 2e 70 72 6f 76 69 64 65 eld this.provide 0002a8f0: 72 2e 63 61 6c 6c 28 7b 74 6f 3a 73 2c 64 61 74 r.call({to:s,dat 0002a900: 61 3a 4d 28 5b 22 30 78 30 30 66 64 64 35 38 65 a:M(["0x00fdd58e 0002a910: 22 2c 46 28 69 2c 33 32 29 2c 6c 5d 29 7d 29 29 ",F(i,32),l])})) 0002a920: 3b 69 66 28 74 2e 69 73 5a 65 72 6f 28 29 29 72 ;if(t.isZero())r 0002a930: 65 74 75 72 6e 20 6e 75 6c 6c 3b 65 2e 70 75 73 eturn null;e.pus 0002a940: 68 28 7b 74 79 70 65 3a 22 62 61 6c 61 6e 63 65 h({type:"balance 0002a950: 22 2c 63 6f 6e 74 65 6e 74 3a 74 2e 74 6f 53 74 ",content:t.toSt 0002a960: 72 69 6e 67 28 29 7d 29 7d 63 6f 6e 73 74 20 63 ring()})}const c 0002a970: 3d 7b 74 6f 3a 74 68 69 73 2e 70 72 6f 76 69 64 ={to:this.provid 0002a980: 65 72 2e 66 6f 72 6d 61 74 74 65 72 2e 61 64 64 er.formatter.add 0002a990: 72 65 73 73 28 61 5b 30 5d 29 2c 64 61 74 61 3a ress(a[0]),data: 0002a9a0: 4d 28 5b 6e 2c 6c 5d 29 7d 3b 6c 65 74 20 75 3d M([n,l])};let u= 0002a9b0: 59 61 28 79 69 65 6c 64 20 74 68 69 73 2e 70 72 Ya(yield this.pr 0002a9c0: 6f 76 69 64 65 72 2e 63 61 6c 6c 28 63 29 2c 30 ovider.call(c),0 0002a9d0: 29 3b 69 66 28 6e 75 6c 6c 3d 3d 75 29 72 65 74 );if(null==u)ret 0002a9e0: 75 72 6e 20 6e 75 6c 6c 3b 65 2e 70 75 73 68 28 urn null;e.push( 0002a9f0: 7b 74 79 70 65 3a 22 6d 65 74 61 64 61 74 61 2d {type:"metadata- 0002aa00: 75 72 6c 2d 62 61 73 65 22 2c 63 6f 6e 74 65 6e url-base",conten 0002aa10: 74 3a 75 7d 29 2c 22 65 72 63 31 31 35 35 22 3d t:u}),"erc1155"= 0002aa20: 3d 3d 6f 26 26 28 75 3d 75 2e 72 65 70 6c 61 63 ==o&&(u=u.replac 0002aa30: 65 28 22 7b 69 64 7d 22 2c 6c 2e 73 75 62 73 74 e("{id}",l.subst 0002aa40: 72 69 6e 67 28 32 29 29 2c 65 2e 70 75 73 68 28 ring(2)),e.push( 0002aa50: 7b 74 79 70 65 3a 22 6d 65 74 61 64 61 74 61 2d {type:"metadata- 0002aa60: 75 72 6c 2d 65 78 70 61 6e 64 65 64 22 2c 63 6f url-expanded",co 0002aa70: 6e 74 65 6e 74 3a 75 7d 29 29 2c 75 2e 6d 61 74 ntent:u})),u.mat 0002aa80: 63 68 28 2f 5e 69 70 66 73 3a 2f 69 29 26 26 28 ch(/^ipfs:/i)&&( 0002aa90: 75 3d 5a 61 28 75 29 29 2c 65 2e 70 75 73 68 28 u=Za(u)),e.push( 0002aaa0: 7b 74 79 70 65 3a 22 6d 65 74 61 64 61 74 61 2d {type:"metadata- 0002aab0: 75 72 6c 22 2c 63 6f 6e 74 65 6e 74 3a 75 7d 29 url",content:u}) 0002aac0: 3b 63 6f 6e 73 74 20 64 3d 79 69 65 6c 64 20 77 ;const d=yield w 0002aad0: 61 28 75 29 3b 69 66 28 21 64 29 72 65 74 75 72 a(u);if(!d)retur 0002aae0: 6e 20 6e 75 6c 6c 3b 65 2e 70 75 73 68 28 7b 74 n null;e.push({t 0002aaf0: 79 70 65 3a 22 6d 65 74 61 64 61 74 61 22 2c 63 ype:"metadata",c 0002ab00: 6f 6e 74 65 6e 74 3a 4a 53 4f 4e 2e 73 74 72 69 ontent:JSON.stri 0002ab10: 6e 67 69 66 79 28 64 29 7d 29 3b 6c 65 74 20 70 ngify(d)});let p 0002ab20: 3d 64 2e 69 6d 61 67 65 3b 69 66 28 22 73 74 72 =d.image;if("str 0002ab30: 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 70 29 72 ing"!=typeof p)r 0002ab40: 65 74 75 72 6e 20 6e 75 6c 6c 3b 69 66 28 70 2e eturn null;if(p. 0002ab50: 6d 61 74 63 68 28 2f 5e 28 68 74 74 70 73 3a 5c match(/^(https:\ 0002ab60: 2f 5c 2f 7c 64 61 74 61 3a 29 2f 69 29 29 3b 65 /\/|data:)/i));e 0002ab70: 6c 73 65 7b 69 66 28 6e 75 6c 6c 3d 3d 70 2e 6d lse{if(null==p.m 0002ab80: 61 74 63 68 28 57 61 29 29 72 65 74 75 72 6e 20 atch(Wa))return 0002ab90: 6e 75 6c 6c 3b 65 2e 70 75 73 68 28 7b 74 79 70 null;e.push({typ 0002aba0: 65 3a 22 75 72 6c 2d 69 70 66 73 22 2c 63 6f 6e e:"url-ipfs",con 0002abb0: 74 65 6e 74 3a 70 7d 29 2c 70 3d 5a 61 28 70 29 tent:p}),p=Za(p) 0002abc0: 7d 72 65 74 75 72 6e 20 65 2e 70 75 73 68 28 7b }return e.push({ 0002abd0: 74 79 70 65 3a 22 75 72 6c 22 2c 63 6f 6e 74 65 type:"url",conte 0002abe0: 6e 74 3a 70 7d 29 2c 7b 6c 69 6e 6b 61 67 65 3a nt:p}),{linkage: 0002abf0: 65 2c 75 72 6c 3a 70 7d 7d 7d 7d 7d 63 61 74 63 e,url:p}}}}}catc 0002ac00: 68 28 65 29 7b 7d 72 65 74 75 72 6e 20 6e 75 6c h(e){}return nul 0002ac10: 6c 7d 29 29 7d 67 65 74 43 6f 6e 74 65 6e 74 48 l}))}getContentH 0002ac20: 61 73 68 28 29 7b 72 65 74 75 72 6e 20 4d 61 28 ash(){return Ma( 0002ac30: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 0002ac40: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 0002ac50: 63 6f 6e 73 74 20 65 3d 79 69 65 6c 64 20 74 68 const e=yield th 0002ac60: 69 73 2e 5f 66 65 74 63 68 42 79 74 65 73 28 22 is._fetchBytes(" 0002ac70: 30 78 62 63 31 63 35 38 64 31 22 29 3b 69 66 28 0xbc1c58d1");if( 0002ac80: 6e 75 6c 6c 3d 3d 65 7c 7c 22 30 78 22 3d 3d 3d null==e||"0x"=== 0002ac90: 65 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f e)return null;co 0002aca0: 6e 73 74 20 74 3d 65 2e 6d 61 74 63 68 28 2f 5e nst t=e.match(/^ 0002acb0: 30 78 65 33 30 31 30 31 37 30 28 28 5b 30 2d 39 0xe3010170(([0-9 0002acc0: 61 2d 66 5d 5b 30 2d 39 61 2d 66 5d 29 28 5b 30 a-f][0-9a-f])([0 0002acd0: 2d 39 61 2d 66 5d 5b 30 2d 39 61 2d 66 5d 29 28 -9a-f][0-9a-f])( 0002ace0: 5b 30 2d 39 61 2d 66 5d 2a 29 29 24 2f 29 3b 69 [0-9a-f]*))$/);i 0002acf0: 66 28 74 29 7b 63 6f 6e 73 74 20 65 3d 70 61 72 f(t){const e=par 0002ad00: 73 65 49 6e 74 28 74 5b 33 5d 2c 31 36 29 3b 69 seInt(t[3],16);i 0002ad10: 66 28 74 5b 34 5d 2e 6c 65 6e 67 74 68 3d 3d 3d f(t[4].length=== 0002ad20: 32 2a 65 29 72 65 74 75 72 6e 22 69 70 66 73 3a 2*e)return"ipfs: 0002ad30: 2f 2f 22 2b 62 6f 2e 65 6e 63 6f 64 65 28 22 30 //"+bo.encode("0 0002ad40: 78 22 2b 74 5b 31 5d 29 7d 63 6f 6e 73 74 20 6e x"+t[1])}const n 0002ad50: 3d 65 2e 6d 61 74 63 68 28 2f 5e 30 78 65 35 30 =e.match(/^0xe50 0002ad60: 31 30 31 37 32 28 28 5b 30 2d 39 61 2d 66 5d 5b 10172(([0-9a-f][ 0002ad70: 30 2d 39 61 2d 66 5d 29 28 5b 30 2d 39 61 2d 66 0-9a-f])([0-9a-f 0002ad80: 5d 5b 30 2d 39 61 2d 66 5d 29 28 5b 30 2d 39 61 ][0-9a-f])([0-9a 0002ad90: 2d 66 5d 2a 29 29 24 2f 29 3b 69 66 28 6e 29 7b -f]*))$/);if(n){ 0002ada0: 63 6f 6e 73 74 20 65 3d 70 61 72 73 65 49 6e 74 const e=parseInt 0002adb0: 28 6e 5b 33 5d 2c 31 36 29 3b 69 66 28 6e 5b 34 (n[3],16);if(n[4 0002adc0: 5d 2e 6c 65 6e 67 74 68 3d 3d 3d 32 2a 65 29 72 ].length===2*e)r 0002add0: 65 74 75 72 6e 22 69 70 6e 73 3a 2f 2f 22 2b 62 eturn"ipns://"+b 0002ade0: 6f 2e 65 6e 63 6f 64 65 28 22 30 78 22 2b 6e 5b o.encode("0x"+n[ 0002adf0: 31 5d 29 7d 63 6f 6e 73 74 20 72 3d 65 2e 6d 61 1])}const r=e.ma 0002ae00: 74 63 68 28 2f 5e 30 78 65 34 30 31 30 31 66 61 tch(/^0xe40101fa 0002ae10: 30 31 31 62 32 30 28 5b 30 2d 39 61 2d 66 5d 2a 011b20([0-9a-f]* 0002ae20: 29 24 2f 29 3b 69 66 28 72 26 26 36 34 3d 3d 3d )$/);if(r&&64=== 0002ae30: 72 5b 31 5d 2e 6c 65 6e 67 74 68 29 72 65 74 75 r[1].length)retu 0002ae40: 72 6e 22 62 7a 7a 3a 2f 2f 22 2b 72 5b 31 5d 3b rn"bzz://"+r[1]; 0002ae50: 63 6f 6e 73 74 20 6f 3d 65 2e 6d 61 74 63 68 28 const o=e.match( 0002ae60: 2f 5e 30 78 39 30 62 32 63 36 30 35 28 5b 30 2d /^0x90b2c605([0- 0002ae70: 39 61 2d 66 5d 2a 29 24 2f 29 3b 69 66 28 6f 26 9a-f]*)$/);if(o& 0002ae80: 26 36 38 3d 3d 3d 6f 5b 31 5d 2e 6c 65 6e 67 74 &68===o[1].lengt 0002ae90: 68 29 7b 63 6f 6e 73 74 20 65 3d 7b 22 3d 22 3a h){const e={"=": 0002aea0: 22 22 2c 22 2b 22 3a 22 2d 22 2c 22 2f 22 3a 22 "","+":"-","/":" 0002aeb0: 5f 22 7d 3b 72 65 74 75 72 6e 22 73 69 61 3a 2f _"};return"sia:/ 0002aec0: 2f 22 2b 7a 69 28 22 30 78 22 2b 6f 5b 31 5d 29 /"+zi("0x"+o[1]) 0002aed0: 2e 72 65 70 6c 61 63 65 28 2f 5b 3d 2b 5c 2f 5d .replace(/[=+\/] 0002aee0: 2f 67 2c 28 74 3d 3e 65 5b 74 5d 29 29 7d 72 65 /g,(t=>e[t]))}re 0002aef0: 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 45 72 72 turn Da.throwErr 0002af00: 6f 72 28 22 69 6e 76 61 6c 69 64 20 6f 72 20 75 or("invalid or u 0002af10: 6e 73 75 70 70 6f 72 74 65 64 20 63 6f 6e 74 65 nsupported conte 0002af20: 6e 74 20 68 61 73 68 20 64 61 74 61 22 2c 79 2e nt hash data",y. 0002af30: 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 errors.UNSUPPORT 0002af40: 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 ED_OPERATION,{op 0002af50: 65 72 61 74 69 6f 6e 3a 22 67 65 74 43 6f 6e 74 eration:"getCont 0002af60: 65 6e 74 48 61 73 68 28 29 22 2c 64 61 74 61 3a entHash()",data: 0002af70: 65 7d 29 7d 29 29 7d 67 65 74 54 65 78 74 28 65 e})}))}getText(e 0002af80: 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 ){return Ma(this 0002af90: 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 ,void 0,void 0,( 0002afa0: 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6c 65 74 20 function*(){let 0002afb0: 74 3d 71 65 28 65 29 3b 74 3d 43 28 5b 56 61 28 t=qe(e);t=C([Va( 0002afc0: 36 34 29 2c 56 61 28 74 2e 6c 65 6e 67 74 68 29 64),Va(t.length) 0002afd0: 2c 74 5d 29 2c 74 2e 6c 65 6e 67 74 68 25 33 32 ,t]),t.length%32 0002afe0: 21 3d 30 26 26 28 74 3d 43 28 5b 74 2c 46 28 22 !=0&&(t=C([t,F(" 0002aff0: 30 78 22 2c 33 32 2d 65 2e 6c 65 6e 67 74 68 25 0x",32-e.length% 0002b000: 33 32 29 5d 29 29 3b 63 6f 6e 73 74 20 6e 3d 79 32)]));const n=y 0002b010: 69 65 6c 64 20 74 68 69 73 2e 5f 66 65 74 63 68 ield this._fetch 0002b020: 42 79 74 65 73 28 22 30 78 35 39 64 31 64 34 33 Bytes("0x59d1d43 0002b030: 63 22 2c 52 28 74 29 29 3b 72 65 74 75 72 6e 20 c",R(t));return 0002b040: 6e 75 6c 6c 3d 3d 6e 7c 7c 22 30 78 22 3d 3d 3d null==n||"0x"=== 0002b050: 6e 3f 6e 75 6c 6c 3a 58 65 28 6e 29 7d 29 29 7d n?null:Xe(n)}))} 0002b060: 7d 6c 65 74 20 74 73 3d 6e 75 6c 6c 2c 6e 73 3d }let ts=null,ns= 0002b070: 31 3b 63 6c 61 73 73 20 72 73 20 65 78 74 65 6e 1;class rs exten 0002b080: 64 73 20 61 6e 7b 63 6f 6e 73 74 72 75 63 74 6f ds an{constructo 0002b090: 72 28 65 29 7b 69 66 28 73 75 70 65 72 28 29 2c r(e){if(super(), 0002b0a0: 74 68 69 73 2e 5f 65 76 65 6e 74 73 3d 5b 5d 2c this._events=[], 0002b0b0: 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 3d 7b 62 this._emitted={b 0002b0c0: 6c 6f 63 6b 3a 2d 32 7d 2c 74 68 69 73 2e 64 69 lock:-2},this.di 0002b0d0: 73 61 62 6c 65 43 63 69 70 52 65 61 64 3d 21 31 sableCcipRead=!1 0002b0e0: 2c 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 3d ,this.formatter= 0002b0f0: 6e 65 77 2e 74 61 72 67 65 74 2e 67 65 74 46 6f new.target.getFo 0002b100: 72 6d 61 74 74 65 72 28 29 2c 74 65 28 74 68 69 rmatter(),te(thi 0002b110: 73 2c 22 61 6e 79 4e 65 74 77 6f 72 6b 22 2c 22 s,"anyNetwork"," 0002b120: 61 6e 79 22 3d 3d 3d 65 29 2c 74 68 69 73 2e 61 any"===e),this.a 0002b130: 6e 79 4e 65 74 77 6f 72 6b 26 26 28 65 3d 74 68 nyNetwork&&(e=th 0002b140: 69 73 2e 64 65 74 65 63 74 4e 65 74 77 6f 72 6b is.detectNetwork 0002b150: 28 29 29 2c 65 20 69 6e 73 74 61 6e 63 65 6f 66 ()),e instanceof 0002b160: 20 50 72 6f 6d 69 73 65 29 74 68 69 73 2e 5f 6e Promise)this._n 0002b170: 65 74 77 6f 72 6b 50 72 6f 6d 69 73 65 3d 65 2c etworkPromise=e, 0002b180: 65 2e 63 61 74 63 68 28 28 65 3d 3e 7b 7d 29 29 e.catch((e=>{})) 0002b190: 2c 74 68 69 73 2e 5f 72 65 61 64 79 28 29 2e 63 ,this._ready().c 0002b1a0: 61 74 63 68 28 28 65 3d 3e 7b 7d 29 29 3b 65 6c atch((e=>{}));el 0002b1b0: 73 65 7b 63 6f 6e 73 74 20 74 3d 6e 65 28 6e 65 se{const t=ne(ne 0002b1c0: 77 2e 74 61 72 67 65 74 2c 22 67 65 74 4e 65 74 w.target,"getNet 0002b1d0: 77 6f 72 6b 22 29 28 65 29 3b 74 3f 28 74 65 28 work")(e);t?(te( 0002b1e0: 74 68 69 73 2c 22 5f 6e 65 74 77 6f 72 6b 22 2c this,"_network", 0002b1f0: 74 29 2c 74 68 69 73 2e 65 6d 69 74 28 22 6e 65 t),this.emit("ne 0002b200: 74 77 6f 72 6b 22 2c 74 2c 6e 75 6c 6c 29 29 3a twork",t,null)): 0002b210: 44 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Da.throwArgument 0002b220: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 6e Error("invalid n 0002b230: 65 74 77 6f 72 6b 22 2c 22 6e 65 74 77 6f 72 6b etwork","network 0002b240: 22 2c 65 29 7d 74 68 69 73 2e 5f 6d 61 78 49 6e ",e)}this._maxIn 0002b250: 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 6d 62 65 ternalBlockNumbe 0002b260: 72 3d 2d 31 30 32 34 2c 74 68 69 73 2e 5f 6c 61 r=-1024,this._la 0002b270: 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 2d 32 stBlockNumber=-2 0002b280: 2c 74 68 69 73 2e 5f 6d 61 78 46 69 6c 74 65 72 ,this._maxFilter 0002b290: 42 6c 6f 63 6b 52 61 6e 67 65 3d 31 30 2c 74 68 BlockRange=10,th 0002b2a0: 69 73 2e 5f 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 is._pollingInter 0002b2b0: 76 61 6c 3d 34 65 33 2c 74 68 69 73 2e 5f 66 61 val=4e3,this._fa 0002b2c0: 73 74 51 75 65 72 79 44 61 74 65 3d 30 7d 5f 72 stQueryDate=0}_r 0002b2d0: 65 61 64 79 28 29 7b 72 65 74 75 72 6e 20 4d 61 eady(){return Ma 0002b2e0: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 0002b2f0: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 0002b300: 7b 69 66 28 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f {if(null==this._ 0002b310: 6e 65 74 77 6f 72 6b 29 7b 6c 65 74 20 65 3d 6e network){let e=n 0002b320: 75 6c 6c 3b 69 66 28 74 68 69 73 2e 5f 6e 65 74 ull;if(this._net 0002b330: 77 6f 72 6b 50 72 6f 6d 69 73 65 29 74 72 79 7b workPromise)try{ 0002b340: 65 3d 79 69 65 6c 64 20 74 68 69 73 2e 5f 6e 65 e=yield this._ne 0002b350: 74 77 6f 72 6b 50 72 6f 6d 69 73 65 7d 63 61 74 tworkPromise}cat 0002b360: 63 68 28 65 29 7b 7d 6e 75 6c 6c 3d 3d 65 26 26 ch(e){}null==e&& 0002b370: 28 65 3d 79 69 65 6c 64 20 74 68 69 73 2e 64 65 (e=yield this.de 0002b380: 74 65 63 74 4e 65 74 77 6f 72 6b 28 29 29 2c 65 tectNetwork()),e 0002b390: 7c 7c 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 ||Da.throwError( 0002b3a0: 22 6e 6f 20 6e 65 74 77 6f 72 6b 20 64 65 74 65 "no network dete 0002b3b0: 63 74 65 64 22 2c 79 2e 65 72 72 6f 72 73 2e 55 cted",y.errors.U 0002b3c0: 4e 4b 4e 4f 57 4e 5f 45 52 52 4f 52 2c 7b 7d 29 NKNOWN_ERROR,{}) 0002b3d0: 2c 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f 6e 65 74 ,null==this._net 0002b3e0: 77 6f 72 6b 26 26 28 74 68 69 73 2e 61 6e 79 4e work&&(this.anyN 0002b3f0: 65 74 77 6f 72 6b 3f 74 68 69 73 2e 5f 6e 65 74 etwork?this._net 0002b400: 77 6f 72 6b 3d 65 3a 74 65 28 74 68 69 73 2c 22 work=e:te(this," 0002b410: 5f 6e 65 74 77 6f 72 6b 22 2c 65 29 2c 74 68 69 _network",e),thi 0002b420: 73 2e 65 6d 69 74 28 22 6e 65 74 77 6f 72 6b 22 s.emit("network" 0002b430: 2c 65 2c 6e 75 6c 6c 29 29 7d 72 65 74 75 72 6e ,e,null))}return 0002b440: 20 74 68 69 73 2e 5f 6e 65 74 77 6f 72 6b 7d 29 this._network}) 0002b450: 29 7d 67 65 74 20 72 65 61 64 79 28 29 7b 72 65 )}get ready(){re 0002b460: 74 75 72 6e 20 78 61 28 28 28 29 3d 3e 74 68 69 turn xa((()=>thi 0002b470: 73 2e 5f 72 65 61 64 79 28 29 2e 74 68 65 6e 28 s._ready().then( 0002b480: 28 65 3d 3e 65 29 2c 28 65 3d 3e 7b 69 66 28 65 (e=>e),(e=>{if(e 0002b490: 2e 63 6f 64 65 21 3d 3d 79 2e 65 72 72 6f 72 73 .code!==y.errors 0002b4a0: 2e 4e 45 54 57 4f 52 4b 5f 45 52 52 4f 52 7c 7c .NETWORK_ERROR|| 0002b4b0: 22 6e 6f 4e 65 74 77 6f 72 6b 22 21 3d 3d 65 2e "noNetwork"!==e. 0002b4c0: 65 76 65 6e 74 29 74 68 72 6f 77 20 65 7d 29 29 event)throw e})) 0002b4d0: 29 29 7d 73 74 61 74 69 63 20 67 65 74 46 6f 72 ))}static getFor 0002b4e0: 6d 61 74 74 65 72 28 29 7b 72 65 74 75 72 6e 20 matter(){return 0002b4f0: 6e 75 6c 6c 3d 3d 74 73 26 26 28 74 73 3d 6e 65 null==ts&&(ts=ne 0002b500: 77 20 49 61 29 2c 74 73 7d 73 74 61 74 69 63 20 w Ia),ts}static 0002b510: 67 65 74 4e 65 74 77 6f 72 6b 28 65 29 7b 72 65 getNetwork(e){re 0002b520: 74 75 72 6e 20 42 69 28 6e 75 6c 6c 3d 3d 65 3f turn Bi(null==e? 0002b530: 22 68 6f 6d 65 73 74 65 61 64 22 3a 65 29 7d 63 "homestead":e)}c 0002b540: 63 69 70 52 65 61 64 46 65 74 63 68 28 65 2c 74 cipReadFetch(e,t 0002b550: 2c 6e 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 ,n){return Ma(th 0002b560: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 0002b570: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 69 66 ,(function*(){if 0002b580: 28 74 68 69 73 2e 64 69 73 61 62 6c 65 43 63 69 (this.disableCci 0002b590: 70 52 65 61 64 7c 7c 30 3d 3d 3d 6e 2e 6c 65 6e pRead||0===n.len 0002b5a0: 67 74 68 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b gth)return null; 0002b5b0: 63 6f 6e 73 74 20 72 3d 65 2e 74 6f 2e 74 6f 4c const r=e.to.toL 0002b5c0: 6f 77 65 72 43 61 73 65 28 29 2c 6f 3d 74 2e 74 owerCase(),o=t.t 0002b5d0: 6f 4c 6f 77 65 72 43 61 73 65 28 29 2c 69 3d 5b oLowerCase(),i=[ 0002b5e0: 5d 3b 66 6f 72 28 6c 65 74 20 65 3d 30 3b 65 3c ];for(let e=0;e< 0002b5f0: 6e 2e 6c 65 6e 67 74 68 3b 65 2b 2b 29 7b 63 6f n.length;e++){co 0002b600: 6e 73 74 20 74 3d 6e 5b 65 5d 2c 61 3d 74 2e 72 nst t=n[e],a=t.r 0002b610: 65 70 6c 61 63 65 28 22 7b 73 65 6e 64 65 72 7d eplace("{sender} 0002b620: 22 2c 72 29 2e 72 65 70 6c 61 63 65 28 22 7b 64 ",r).replace("{d 0002b630: 61 74 61 7d 22 2c 6f 29 2c 73 3d 74 2e 69 6e 64 ata}",o),s=t.ind 0002b640: 65 78 4f 66 28 22 7b 64 61 74 61 7d 22 29 3e 3d exOf("{data}")>= 0002b650: 30 3f 6e 75 6c 6c 3a 4a 53 4f 4e 2e 73 74 72 69 0?null:JSON.stri 0002b660: 6e 67 69 66 79 28 7b 64 61 74 61 3a 6f 2c 73 65 ngify({data:o,se 0002b670: 6e 64 65 72 3a 72 7d 29 2c 6c 3d 79 69 65 6c 64 nder:r}),l=yield 0002b680: 20 77 61 28 7b 75 72 6c 3a 61 2c 65 72 72 6f 72 wa({url:a,error 0002b690: 50 61 73 73 54 68 72 6f 75 67 68 3a 21 30 7d 2c PassThrough:!0}, 0002b6a0: 73 2c 28 28 65 2c 74 29 3d 3e 28 65 2e 73 74 61 s,((e,t)=>(e.sta 0002b6b0: 74 75 73 3d 74 2e 73 74 61 74 75 73 43 6f 64 65 tus=t.statusCode 0002b6c0: 2c 65 29 29 29 3b 69 66 28 6c 2e 64 61 74 61 29 ,e)));if(l.data) 0002b6d0: 72 65 74 75 72 6e 20 6c 2e 64 61 74 61 3b 63 6f return l.data;co 0002b6e0: 6e 73 74 20 63 3d 6c 2e 6d 65 73 73 61 67 65 7c nst c=l.message| 0002b6f0: 7c 22 75 6e 6b 6e 6f 77 6e 20 65 72 72 6f 72 22 |"unknown error" 0002b700: 3b 69 66 28 6c 2e 73 74 61 74 75 73 3e 3d 34 30 ;if(l.status>=40 0002b710: 30 26 26 6c 2e 73 74 61 74 75 73 3c 35 30 30 29 0&&l.status<500) 0002b720: 72 65 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 45 return Da.throwE 0002b730: 72 72 6f 72 28 60 72 65 73 70 6f 6e 73 65 20 6e rror(`response n 0002b740: 6f 74 20 66 6f 75 6e 64 20 64 75 72 69 6e 67 20 ot found during 0002b750: 43 43 49 50 20 66 65 74 63 68 3a 20 24 7b 63 7d CCIP fetch: ${c} 0002b760: 60 2c 79 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 `,y.errors.SERVE 0002b770: 52 5f 45 52 52 4f 52 2c 7b 75 72 6c 3a 74 2c 65 R_ERROR,{url:t,e 0002b780: 72 72 6f 72 4d 65 73 73 61 67 65 3a 63 7d 29 3b rrorMessage:c}); 0002b790: 69 2e 70 75 73 68 28 63 29 7d 72 65 74 75 72 6e i.push(c)}return 0002b7a0: 20 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 60 Da.throwError(` 0002b7b0: 65 72 72 6f 72 20 65 6e 63 6f 75 6e 74 65 72 65 error encountere 0002b7c0: 64 20 64 75 72 69 6e 67 20 43 43 49 50 20 66 65 d during CCIP fe 0002b7d0: 74 63 68 3a 20 24 7b 69 2e 6d 61 70 28 28 65 3d tch: ${i.map((e= 0002b7e0: 3e 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 >JSON.stringify( 0002b7f0: 65 29 29 29 2e 6a 6f 69 6e 28 22 2c 20 22 29 7d e))).join(", ")} 0002b800: 60 2c 79 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 `,y.errors.SERVE 0002b810: 52 5f 45 52 52 4f 52 2c 7b 75 72 6c 73 3a 6e 2c R_ERROR,{urls:n, 0002b820: 65 72 72 6f 72 4d 65 73 73 61 67 65 73 3a 69 7d errorMessages:i} 0002b830: 29 7d 29 29 7d 5f 67 65 74 49 6e 74 65 72 6e 61 )}))}_getInterna 0002b840: 6c 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 65 29 7b lBlockNumber(e){ 0002b850: 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 return Ma(this,v 0002b860: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 0002b870: 6e 63 74 69 6f 6e 2a 28 29 7b 69 66 28 79 69 65 nction*(){if(yie 0002b880: 6c 64 20 74 68 69 73 2e 5f 72 65 61 64 79 28 29 ld this._ready() 0002b890: 2c 65 3e 30 29 66 6f 72 28 3b 74 68 69 73 2e 5f ,e>0)for(;this._ 0002b8a0: 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 6d internalBlockNum 0002b8b0: 62 65 72 3b 29 7b 63 6f 6e 73 74 20 74 3d 74 68 ber;){const t=th 0002b8c0: 69 73 2e 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 is._internalBloc 0002b8d0: 6b 4e 75 6d 62 65 72 3b 74 72 79 7b 63 6f 6e 73 kNumber;try{cons 0002b8e0: 74 20 6e 3d 79 69 65 6c 64 20 74 3b 69 66 28 42 t n=yield t;if(B 0002b8f0: 61 28 29 2d 6e 2e 72 65 73 70 54 69 6d 65 3c 3d a()-n.respTime<= 0002b900: 65 29 72 65 74 75 72 6e 20 6e 2e 62 6c 6f 63 6b e)return n.block 0002b910: 4e 75 6d 62 65 72 3b 62 72 65 61 6b 7d 63 61 74 Number;break}cat 0002b920: 63 68 28 65 29 7b 69 66 28 74 68 69 73 2e 5f 69 ch(e){if(this._i 0002b930: 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 6d 62 nternalBlockNumb 0002b940: 65 72 3d 3d 3d 74 29 62 72 65 61 6b 7d 7d 63 6f er===t)break}}co 0002b950: 6e 73 74 20 74 3d 42 61 28 29 2c 6e 3d 72 65 28 nst t=Ba(),n=re( 0002b960: 7b 62 6c 6f 63 6b 4e 75 6d 62 65 72 3a 74 68 69 {blockNumber:thi 0002b970: 73 2e 70 65 72 66 6f 72 6d 28 22 67 65 74 42 6c s.perform("getBl 0002b980: 6f 63 6b 4e 75 6d 62 65 72 22 2c 7b 7d 29 2c 6e ockNumber",{}),n 0002b990: 65 74 77 6f 72 6b 45 72 72 6f 72 3a 74 68 69 73 etworkError:this 0002b9a0: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 2e 74 68 .getNetwork().th 0002b9b0: 65 6e 28 28 65 3d 3e 6e 75 6c 6c 29 2c 28 65 3d en((e=>null),(e= 0002b9c0: 3e 65 29 29 7d 29 2e 74 68 65 6e 28 28 28 7b 62 >e))}).then((({b 0002b9d0: 6c 6f 63 6b 4e 75 6d 62 65 72 3a 65 2c 6e 65 74 lockNumber:e,net 0002b9e0: 77 6f 72 6b 45 72 72 6f 72 3a 72 7d 29 3d 3e 7b workError:r})=>{ 0002b9f0: 69 66 28 72 29 74 68 72 6f 77 20 74 68 69 73 2e if(r)throw this. 0002ba00: 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 _internalBlockNu 0002ba10: 6d 62 65 72 3d 3d 3d 6e 26 26 28 74 68 69 73 2e mber===n&&(this. 0002ba20: 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 _internalBlockNu 0002ba30: 6d 62 65 72 3d 6e 75 6c 6c 29 2c 72 3b 63 6f 6e mber=null),r;con 0002ba40: 73 74 20 6f 3d 42 61 28 29 3b 72 65 74 75 72 6e st o=Ba();return 0002ba50: 28 65 3d 59 2e 66 72 6f 6d 28 65 29 2e 74 6f 4e (e=Y.from(e).toN 0002ba60: 75 6d 62 65 72 28 29 29 3c 74 68 69 73 2e 5f 6d umber())<this._m 0002ba70: 61 78 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e axInternalBlockN 0002ba80: 75 6d 62 65 72 26 26 28 65 3d 74 68 69 73 2e 5f umber&&(e=this._ 0002ba90: 6d 61 78 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b maxInternalBlock 0002baa0: 4e 75 6d 62 65 72 29 2c 74 68 69 73 2e 5f 6d 61 Number),this._ma 0002bab0: 78 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 xInternalBlockNu 0002bac0: 6d 62 65 72 3d 65 2c 74 68 69 73 2e 5f 73 65 74 mber=e,this._set 0002bad0: 46 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 FastBlockNumber( 0002bae0: 65 29 2c 7b 62 6c 6f 63 6b 4e 75 6d 62 65 72 3a e),{blockNumber: 0002baf0: 65 2c 72 65 71 54 69 6d 65 3a 74 2c 72 65 73 70 e,reqTime:t,resp 0002bb00: 54 69 6d 65 3a 6f 7d 7d 29 29 3b 72 65 74 75 72 Time:o}}));retur 0002bb10: 6e 20 74 68 69 73 2e 5f 69 6e 74 65 72 6e 61 6c n this._internal 0002bb20: 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 6e 2c 6e 2e BlockNumber=n,n. 0002bb30: 63 61 74 63 68 28 28 65 3d 3e 7b 74 68 69 73 2e catch((e=>{this. 0002bb40: 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 _internalBlockNu 0002bb50: 6d 62 65 72 3d 3d 3d 6e 26 26 28 74 68 69 73 2e mber===n&&(this. 0002bb60: 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 _internalBlockNu 0002bb70: 6d 62 65 72 3d 6e 75 6c 6c 29 7d 29 29 2c 28 79 mber=null)})),(y 0002bb80: 69 65 6c 64 20 6e 29 2e 62 6c 6f 63 6b 4e 75 6d ield n).blockNum 0002bb90: 62 65 72 7d 29 29 7d 70 6f 6c 6c 28 29 7b 72 65 ber}))}poll(){re 0002bba0: 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 turn Ma(this,voi 0002bbb0: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 0002bbc0: 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 65 3d tion*(){const e= 0002bbd0: 6e 73 2b 2b 2c 74 3d 5b 5d 3b 6c 65 74 20 6e 3d ns++,t=[];let n= 0002bbe0: 6e 75 6c 6c 3b 74 72 79 7b 6e 3d 79 69 65 6c 64 null;try{n=yield 0002bbf0: 20 74 68 69 73 2e 5f 67 65 74 49 6e 74 65 72 6e this._getIntern 0002bc00: 61 6c 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 31 30 alBlockNumber(10 0002bc10: 30 2b 74 68 69 73 2e 70 6f 6c 6c 69 6e 67 49 6e 0+this.pollingIn 0002bc20: 74 65 72 76 61 6c 2f 32 29 7d 63 61 74 63 68 28 terval/2)}catch( 0002bc30: 65 29 7b 72 65 74 75 72 6e 20 76 6f 69 64 20 74 e){return void t 0002bc40: 68 69 73 2e 65 6d 69 74 28 22 65 72 72 6f 72 22 his.emit("error" 0002bc50: 2c 65 29 7d 69 66 28 74 68 69 73 2e 5f 73 65 74 ,e)}if(this._set 0002bc60: 46 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 FastBlockNumber( 0002bc70: 6e 29 2c 74 68 69 73 2e 65 6d 69 74 28 22 70 6f n),this.emit("po 0002bc80: 6c 6c 22 2c 65 2c 6e 29 2c 6e 21 3d 3d 74 68 69 ll",e,n),n!==thi 0002bc90: 73 2e 5f 6c 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 s._lastBlockNumb 0002bca0: 65 72 29 7b 69 66 28 2d 32 3d 3d 3d 74 68 69 73 er){if(-2===this 0002bcb0: 2e 5f 65 6d 69 74 74 65 64 2e 62 6c 6f 63 6b 26 ._emitted.block& 0002bcc0: 26 28 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 2e &(this._emitted. 0002bcd0: 62 6c 6f 63 6b 3d 6e 2d 31 29 2c 4d 61 74 68 2e block=n-1),Math. 0002bce0: 61 62 73 28 74 68 69 73 2e 5f 65 6d 69 74 74 65 abs(this._emitte 0002bcf0: 64 2e 62 6c 6f 63 6b 2d 6e 29 3e 31 65 33 29 44 d.block-n)>1e3)D 0002bd00: 61 2e 77 61 72 6e 28 60 6e 65 74 77 6f 72 6b 20 a.warn(`network 0002bd10: 62 6c 6f 63 6b 20 73 6b 65 77 20 64 65 74 65 63 block skew detec 0002bd20: 74 65 64 3b 20 73 6b 69 70 70 69 6e 67 20 62 6c ted; skipping bl 0002bd30: 6f 63 6b 20 65 76 65 6e 74 73 20 28 65 6d 69 74 ock events (emit 0002bd40: 74 65 64 3d 24 7b 74 68 69 73 2e 5f 65 6d 69 74 ted=${this._emit 0002bd50: 74 65 64 2e 62 6c 6f 63 6b 7d 20 62 6c 6f 63 6b ted.block} block 0002bd60: 4e 75 6d 62 65 72 24 7b 6e 7d 29 60 29 2c 74 68 Number${n})`),th 0002bd70: 69 73 2e 65 6d 69 74 28 22 65 72 72 6f 72 22 2c is.emit("error", 0002bd80: 44 61 2e 6d 61 6b 65 45 72 72 6f 72 28 22 6e 65 Da.makeError("ne 0002bd90: 74 77 6f 72 6b 20 62 6c 6f 63 6b 20 73 6b 65 77 twork block skew 0002bda0: 20 64 65 74 65 63 74 65 64 22 2c 79 2e 65 72 72 detected",y.err 0002bdb0: 6f 72 73 2e 4e 45 54 57 4f 52 4b 5f 45 52 52 4f ors.NETWORK_ERRO 0002bdc0: 52 2c 7b 62 6c 6f 63 6b 4e 75 6d 62 65 72 3a 6e R,{blockNumber:n 0002bdd0: 2c 65 76 65 6e 74 3a 22 62 6c 6f 63 6b 53 6b 65 ,event:"blockSke 0002bde0: 77 22 2c 70 72 65 76 69 6f 75 73 42 6c 6f 63 6b w",previousBlock 0002bdf0: 4e 75 6d 62 65 72 3a 74 68 69 73 2e 5f 65 6d 69 Number:this._emi 0002be00: 74 74 65 64 2e 62 6c 6f 63 6b 7d 29 29 2c 74 68 tted.block})),th 0002be10: 69 73 2e 65 6d 69 74 28 22 62 6c 6f 63 6b 22 2c is.emit("block", 0002be20: 6e 29 3b 65 6c 73 65 20 66 6f 72 28 6c 65 74 20 n);else for(let 0002be30: 65 3d 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 2e e=this._emitted. 0002be40: 62 6c 6f 63 6b 2b 31 3b 65 3c 3d 6e 3b 65 2b 2b block+1;e<=n;e++ 0002be50: 29 74 68 69 73 2e 65 6d 69 74 28 22 62 6c 6f 63 )this.emit("bloc 0002be60: 6b 22 2c 65 29 3b 74 68 69 73 2e 5f 65 6d 69 74 k",e);this._emit 0002be70: 74 65 64 2e 62 6c 6f 63 6b 21 3d 3d 6e 26 26 28 ted.block!==n&&( 0002be80: 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 2e 62 6c this._emitted.bl 0002be90: 6f 63 6b 3d 6e 2c 4f 62 6a 65 63 74 2e 6b 65 79 ock=n,Object.key 0002bea0: 73 28 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 29 s(this._emitted) 0002beb0: 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 69 66 .forEach((e=>{if 0002bec0: 28 22 62 6c 6f 63 6b 22 3d 3d 3d 65 29 72 65 74 ("block"===e)ret 0002bed0: 75 72 6e 3b 63 6f 6e 73 74 20 74 3d 74 68 69 73 urn;const t=this 0002bee0: 2e 5f 65 6d 69 74 74 65 64 5b 65 5d 3b 22 70 65 ._emitted[e];"pe 0002bef0: 6e 64 69 6e 67 22 21 3d 3d 74 26 26 6e 2d 74 3e nding"!==t&&n-t> 0002bf00: 31 32 26 26 64 65 6c 65 74 65 20 74 68 69 73 2e 12&&delete this. 0002bf10: 5f 65 6d 69 74 74 65 64 5b 65 5d 7d 29 29 29 2c _emitted[e]}))), 0002bf20: 2d 32 3d 3d 3d 74 68 69 73 2e 5f 6c 61 73 74 42 -2===this._lastB 0002bf30: 6c 6f 63 6b 4e 75 6d 62 65 72 26 26 28 74 68 69 lockNumber&&(thi 0002bf40: 73 2e 5f 6c 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 s._lastBlockNumb 0002bf50: 65 72 3d 6e 2d 31 29 2c 74 68 69 73 2e 5f 65 76 er=n-1),this._ev 0002bf60: 65 6e 74 73 2e 66 6f 72 45 61 63 68 28 28 65 3d ents.forEach((e= 0002bf70: 3e 7b 73 77 69 74 63 68 28 65 2e 74 79 70 65 29 >{switch(e.type) 0002bf80: 7b 63 61 73 65 22 74 78 22 3a 7b 63 6f 6e 73 74 {case"tx":{const 0002bf90: 20 6e 3d 65 2e 68 61 73 68 3b 6c 65 74 20 72 3d n=e.hash;let r= 0002bfa0: 74 68 69 73 2e 67 65 74 54 72 61 6e 73 61 63 74 this.getTransact 0002bfb0: 69 6f 6e 52 65 63 65 69 70 74 28 6e 29 2e 74 68 ionReceipt(n).th 0002bfc0: 65 6e 28 28 65 3d 3e 65 26 26 6e 75 6c 6c 21 3d en((e=>e&&null!= 0002bfd0: 65 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 3f 28 74 e.blockNumber?(t 0002bfe0: 68 69 73 2e 5f 65 6d 69 74 74 65 64 5b 22 74 3a his._emitted["t: 0002bff0: 22 2b 6e 5d 3d 65 2e 62 6c 6f 63 6b 4e 75 6d 62 "+n]=e.blockNumb 0002c000: 65 72 2c 74 68 69 73 2e 65 6d 69 74 28 6e 2c 65 er,this.emit(n,e 0002c010: 29 2c 6e 75 6c 6c 29 3a 6e 75 6c 6c 29 29 2e 63 ),null):null)).c 0002c020: 61 74 63 68 28 28 65 3d 3e 7b 74 68 69 73 2e 65 atch((e=>{this.e 0002c030: 6d 69 74 28 22 65 72 72 6f 72 22 2c 65 29 7d 29 mit("error",e)}) 0002c040: 29 3b 74 2e 70 75 73 68 28 72 29 3b 62 72 65 61 );t.push(r);brea 0002c050: 6b 7d 63 61 73 65 22 66 69 6c 74 65 72 22 3a 69 k}case"filter":i 0002c060: 66 28 21 65 2e 5f 69 6e 66 6c 69 67 68 74 29 7b f(!e._inflight){ 0002c070: 65 2e 5f 69 6e 66 6c 69 67 68 74 3d 21 30 2c 2d e._inflight=!0,- 0002c080: 32 3d 3d 3d 65 2e 5f 6c 61 73 74 42 6c 6f 63 6b 2===e._lastBlock 0002c090: 4e 75 6d 62 65 72 26 26 28 65 2e 5f 6c 61 73 74 Number&&(e._last 0002c0a0: 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 6e 2d 31 29 BlockNumber=n-1) 0002c0b0: 3b 63 6f 6e 73 74 20 72 3d 65 2e 66 69 6c 74 65 ;const r=e.filte 0002c0c0: 72 3b 72 2e 66 72 6f 6d 42 6c 6f 63 6b 3d 65 2e r;r.fromBlock=e. 0002c0d0: 5f 6c 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 _lastBlockNumber 0002c0e0: 2b 31 2c 72 2e 74 6f 42 6c 6f 63 6b 3d 6e 3b 63 +1,r.toBlock=n;c 0002c0f0: 6f 6e 73 74 20 6f 3d 72 2e 74 6f 42 6c 6f 63 6b onst o=r.toBlock 0002c100: 2d 74 68 69 73 2e 5f 6d 61 78 46 69 6c 74 65 72 -this._maxFilter 0002c110: 42 6c 6f 63 6b 52 61 6e 67 65 3b 6f 3e 72 2e 66 BlockRange;o>r.f 0002c120: 72 6f 6d 42 6c 6f 63 6b 26 26 28 72 2e 66 72 6f romBlock&&(r.fro 0002c130: 6d 42 6c 6f 63 6b 3d 6f 29 2c 72 2e 66 72 6f 6d mBlock=o),r.from 0002c140: 42 6c 6f 63 6b 3c 30 26 26 28 72 2e 66 72 6f 6d Block<0&&(r.from 0002c150: 42 6c 6f 63 6b 3d 30 29 3b 63 6f 6e 73 74 20 69 Block=0);const i 0002c160: 3d 74 68 69 73 2e 67 65 74 4c 6f 67 73 28 72 29 =this.getLogs(r) 0002c170: 2e 74 68 65 6e 28 28 74 3d 3e 7b 65 2e 5f 69 6e .then((t=>{e._in 0002c180: 66 6c 69 67 68 74 3d 21 31 2c 30 21 3d 3d 74 2e flight=!1,0!==t. 0002c190: 6c 65 6e 67 74 68 26 26 74 2e 66 6f 72 45 61 63 length&&t.forEac 0002c1a0: 68 28 28 74 3d 3e 7b 74 2e 62 6c 6f 63 6b 4e 75 h((t=>{t.blockNu 0002c1b0: 6d 62 65 72 3e 65 2e 5f 6c 61 73 74 42 6c 6f 63 mber>e._lastBloc 0002c1c0: 6b 4e 75 6d 62 65 72 26 26 28 65 2e 5f 6c 61 73 kNumber&&(e._las 0002c1d0: 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 74 2e 62 tBlockNumber=t.b 0002c1e0: 6c 6f 63 6b 4e 75 6d 62 65 72 29 2c 74 68 69 73 lockNumber),this 0002c1f0: 2e 5f 65 6d 69 74 74 65 64 5b 22 62 3a 22 2b 74 ._emitted["b:"+t 0002c200: 2e 62 6c 6f 63 6b 48 61 73 68 5d 3d 74 2e 62 6c .blockHash]=t.bl 0002c210: 6f 63 6b 4e 75 6d 62 65 72 2c 74 68 69 73 2e 5f ockNumber,this._ 0002c220: 65 6d 69 74 74 65 64 5b 22 74 3a 22 2b 74 2e 74 emitted["t:"+t.t 0002c230: 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 68 5d 3d ransactionHash]= 0002c240: 74 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 2c 74 68 t.blockNumber,th 0002c250: 69 73 2e 65 6d 69 74 28 72 2c 74 29 7d 29 29 7d is.emit(r,t)}))} 0002c260: 29 29 2e 63 61 74 63 68 28 28 74 3d 3e 7b 74 68 )).catch((t=>{th 0002c270: 69 73 2e 65 6d 69 74 28 22 65 72 72 6f 72 22 2c is.emit("error", 0002c280: 74 29 2c 65 2e 5f 69 6e 66 6c 69 67 68 74 3d 21 t),e._inflight=! 0002c290: 31 7d 29 29 3b 74 2e 70 75 73 68 28 69 29 7d 7d 1}));t.push(i)}} 0002c2a0: 7d 29 29 2c 74 68 69 73 2e 5f 6c 61 73 74 42 6c })),this._lastBl 0002c2b0: 6f 63 6b 4e 75 6d 62 65 72 3d 6e 2c 50 72 6f 6d ockNumber=n,Prom 0002c2c0: 69 73 65 2e 61 6c 6c 28 74 29 2e 74 68 65 6e 28 ise.all(t).then( 0002c2d0: 28 28 29 3d 3e 7b 74 68 69 73 2e 65 6d 69 74 28 (()=>{this.emit( 0002c2e0: 22 64 69 64 50 6f 6c 6c 22 2c 65 29 7d 29 29 2e "didPoll",e)})). 0002c2f0: 63 61 74 63 68 28 28 65 3d 3e 7b 74 68 69 73 2e catch((e=>{this. 0002c300: 65 6d 69 74 28 22 65 72 72 6f 72 22 2c 65 29 7d emit("error",e)} 0002c310: 29 29 7d 65 6c 73 65 20 74 68 69 73 2e 65 6d 69 ))}else this.emi 0002c320: 74 28 22 64 69 64 50 6f 6c 6c 22 2c 65 29 7d 29 t("didPoll",e)}) 0002c330: 29 7d 72 65 73 65 74 45 76 65 6e 74 73 42 6c 6f )}resetEventsBlo 0002c340: 63 6b 28 65 29 7b 74 68 69 73 2e 5f 6c 61 73 74 ck(e){this._last 0002c350: 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 65 2d 31 2c BlockNumber=e-1, 0002c360: 74 68 69 73 2e 70 6f 6c 6c 69 6e 67 26 26 74 68 this.polling&&th 0002c370: 69 73 2e 70 6f 6c 6c 28 29 7d 67 65 74 20 6e 65 is.poll()}get ne 0002c380: 74 77 6f 72 6b 28 29 7b 72 65 74 75 72 6e 20 74 twork(){return t 0002c390: 68 69 73 2e 5f 6e 65 74 77 6f 72 6b 7d 64 65 74 his._network}det 0002c3a0: 65 63 74 4e 65 74 77 6f 72 6b 28 29 7b 72 65 74 ectNetwork(){ret 0002c3b0: 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 urn Ma(this,void 0002c3c0: 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 0,void 0,(funct 0002c3d0: 69 6f 6e 2a 28 29 7b 72 65 74 75 72 6e 20 44 61 ion*(){return Da 0002c3e0: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 70 72 6f .throwError("pro 0002c3f0: 76 69 64 65 72 20 64 6f 65 73 20 6e 6f 74 20 73 vider does not s 0002c400: 75 70 70 6f 72 74 20 6e 65 74 77 6f 72 6b 20 64 upport network d 0002c410: 65 74 65 63 74 69 6f 6e 22 2c 79 2e 65 72 72 6f etection",y.erro 0002c420: 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f rs.UNSUPPORTED_O 0002c430: 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 PERATION,{operat 0002c440: 69 6f 6e 3a 22 70 72 6f 76 69 64 65 72 2e 64 65 ion:"provider.de 0002c450: 74 65 63 74 4e 65 74 77 6f 72 6b 22 7d 29 7d 29 tectNetwork"})}) 0002c460: 29 7d 67 65 74 4e 65 74 77 6f 72 6b 28 29 7b 72 )}getNetwork(){r 0002c470: 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f eturn Ma(this,vo 0002c480: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 0002c490: 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 65 ction*(){const e 0002c4a0: 3d 79 69 65 6c 64 20 74 68 69 73 2e 5f 72 65 61 =yield this._rea 0002c4b0: 64 79 28 29 2c 74 3d 79 69 65 6c 64 20 74 68 69 dy(),t=yield thi 0002c4c0: 73 2e 64 65 74 65 63 74 4e 65 74 77 6f 72 6b 28 s.detectNetwork( 0002c4d0: 29 3b 69 66 28 65 2e 63 68 61 69 6e 49 64 21 3d );if(e.chainId!= 0002c4e0: 3d 74 2e 63 68 61 69 6e 49 64 29 7b 69 66 28 74 =t.chainId){if(t 0002c4f0: 68 69 73 2e 61 6e 79 4e 65 74 77 6f 72 6b 29 72 his.anyNetwork)r 0002c500: 65 74 75 72 6e 20 74 68 69 73 2e 5f 6e 65 74 77 eturn this._netw 0002c510: 6f 72 6b 3d 74 2c 74 68 69 73 2e 5f 6c 61 73 74 ork=t,this._last 0002c520: 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 2d 32 2c 74 BlockNumber=-2,t 0002c530: 68 69 73 2e 5f 66 61 73 74 42 6c 6f 63 6b 4e 75 his._fastBlockNu 0002c540: 6d 62 65 72 3d 6e 75 6c 6c 2c 74 68 69 73 2e 5f mber=null,this._ 0002c550: 66 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 50 fastBlockNumberP 0002c560: 72 6f 6d 69 73 65 3d 6e 75 6c 6c 2c 74 68 69 73 romise=null,this 0002c570: 2e 5f 66 61 73 74 51 75 65 72 79 44 61 74 65 3d ._fastQueryDate= 0002c580: 30 2c 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 2e 0,this._emitted. 0002c590: 62 6c 6f 63 6b 3d 2d 32 2c 74 68 69 73 2e 5f 6d block=-2,this._m 0002c5a0: 61 78 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e axInternalBlockN 0002c5b0: 75 6d 62 65 72 3d 2d 31 30 32 34 2c 74 68 69 73 umber=-1024,this 0002c5c0: 2e 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e ._internalBlockN 0002c5d0: 75 6d 62 65 72 3d 6e 75 6c 6c 2c 74 68 69 73 2e umber=null,this. 0002c5e0: 65 6d 69 74 28 22 6e 65 74 77 6f 72 6b 22 2c 74 emit("network",t 0002c5f0: 2c 65 29 2c 79 69 65 6c 64 20 6a 61 28 30 29 2c ,e),yield ja(0), 0002c600: 74 68 69 73 2e 5f 6e 65 74 77 6f 72 6b 3b 63 6f this._network;co 0002c610: 6e 73 74 20 6e 3d 44 61 2e 6d 61 6b 65 45 72 72 nst n=Da.makeErr 0002c620: 6f 72 28 22 75 6e 64 65 72 6c 79 69 6e 67 20 6e or("underlying n 0002c630: 65 74 77 6f 72 6b 20 63 68 61 6e 67 65 64 22 2c etwork changed", 0002c640: 79 2e 65 72 72 6f 72 73 2e 4e 45 54 57 4f 52 4b y.errors.NETWORK 0002c650: 5f 45 52 52 4f 52 2c 7b 65 76 65 6e 74 3a 22 63 _ERROR,{event:"c 0002c660: 68 61 6e 67 65 64 22 2c 6e 65 74 77 6f 72 6b 3a hanged",network: 0002c670: 65 2c 64 65 74 65 63 74 65 64 4e 65 74 77 6f 72 e,detectedNetwor 0002c680: 6b 3a 74 7d 29 3b 74 68 72 6f 77 20 74 68 69 73 k:t});throw this 0002c690: 2e 65 6d 69 74 28 22 65 72 72 6f 72 22 2c 6e 29 .emit("error",n) 0002c6a0: 2c 6e 7d 72 65 74 75 72 6e 20 65 7d 29 29 7d 67 ,n}return e}))}g 0002c6b0: 65 74 20 62 6c 6f 63 6b 4e 75 6d 62 65 72 28 29 et blockNumber() 0002c6c0: 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 67 65 {return this._ge 0002c6d0: 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 tInternalBlockNu 0002c6e0: 6d 62 65 72 28 31 30 30 2b 74 68 69 73 2e 70 6f mber(100+this.po 0002c6f0: 6c 6c 69 6e 67 49 6e 74 65 72 76 61 6c 2f 32 29 llingInterval/2) 0002c700: 2e 74 68 65 6e 28 28 65 3d 3e 7b 74 68 69 73 2e .then((e=>{this. 0002c710: 5f 73 65 74 46 61 73 74 42 6c 6f 63 6b 4e 75 6d _setFastBlockNum 0002c720: 62 65 72 28 65 29 7d 29 2c 28 65 3d 3e 7b 7d 29 ber(e)}),(e=>{}) 0002c730: 29 2c 6e 75 6c 6c 21 3d 74 68 69 73 2e 5f 66 61 ),null!=this._fa 0002c740: 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 3f 74 68 stBlockNumber?th 0002c750: 69 73 2e 5f 66 61 73 74 42 6c 6f 63 6b 4e 75 6d is._fastBlockNum 0002c760: 62 65 72 3a 2d 31 7d 67 65 74 20 70 6f 6c 6c 69 ber:-1}get polli 0002c770: 6e 67 28 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c ng(){return null 0002c780: 21 3d 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 7d 73 !=this._poller}s 0002c790: 65 74 20 70 6f 6c 6c 69 6e 67 28 65 29 7b 65 26 et polling(e){e& 0002c7a0: 26 21 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 3f 28 &!this._poller?( 0002c7b0: 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 3d 73 65 74 this._poller=set 0002c7c0: 49 6e 74 65 72 76 61 6c 28 28 28 29 3d 3e 7b 74 Interval((()=>{t 0002c7d0: 68 69 73 2e 70 6f 6c 6c 28 29 7d 29 2c 74 68 69 his.poll()}),thi 0002c7e0: 73 2e 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 s.pollingInterva 0002c7f0: 6c 29 2c 74 68 69 73 2e 5f 62 6f 6f 74 73 74 72 l),this._bootstr 0002c800: 61 70 50 6f 6c 6c 7c 7c 28 74 68 69 73 2e 5f 62 apPoll||(this._b 0002c810: 6f 6f 74 73 74 72 61 70 50 6f 6c 6c 3d 73 65 74 ootstrapPoll=set 0002c820: 54 69 6d 65 6f 75 74 28 28 28 29 3d 3e 7b 74 68 Timeout((()=>{th 0002c830: 69 73 2e 70 6f 6c 6c 28 29 2c 74 68 69 73 2e 5f is.poll(),this._ 0002c840: 62 6f 6f 74 73 74 72 61 70 50 6f 6c 6c 3d 73 65 bootstrapPoll=se 0002c850: 74 54 69 6d 65 6f 75 74 28 28 28 29 3d 3e 7b 74 tTimeout((()=>{t 0002c860: 68 69 73 2e 5f 70 6f 6c 6c 65 72 7c 7c 74 68 69 his._poller||thi 0002c870: 73 2e 70 6f 6c 6c 28 29 2c 74 68 69 73 2e 5f 62 s.poll(),this._b 0002c880: 6f 6f 74 73 74 72 61 70 50 6f 6c 6c 3d 6e 75 6c ootstrapPoll=nul 0002c890: 6c 7d 29 2c 74 68 69 73 2e 70 6f 6c 6c 69 6e 67 l}),this.polling 0002c8a0: 49 6e 74 65 72 76 61 6c 29 7d 29 2c 30 29 29 29 Interval)}),0))) 0002c8b0: 3a 21 65 26 26 74 68 69 73 2e 5f 70 6f 6c 6c 65 :!e&&this._polle 0002c8c0: 72 26 26 28 63 6c 65 61 72 49 6e 74 65 72 76 61 r&&(clearInterva 0002c8d0: 6c 28 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 29 2c l(this._poller), 0002c8e0: 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 3d 6e 75 6c this._poller=nul 0002c8f0: 6c 29 7d 67 65 74 20 70 6f 6c 6c 69 6e 67 49 6e l)}get pollingIn 0002c900: 74 65 72 76 61 6c 28 29 7b 72 65 74 75 72 6e 20 terval(){return 0002c910: 74 68 69 73 2e 5f 70 6f 6c 6c 69 6e 67 49 6e 74 this._pollingInt 0002c920: 65 72 76 61 6c 7d 73 65 74 20 70 6f 6c 6c 69 6e erval}set pollin 0002c930: 67 49 6e 74 65 72 76 61 6c 28 65 29 7b 69 66 28 gInterval(e){if( 0002c940: 22 6e 75 6d 62 65 72 22 21 3d 74 79 70 65 6f 66 "number"!=typeof 0002c950: 20 65 7c 7c 65 3c 3d 30 7c 7c 70 61 72 73 65 49 e||e<=0||parseI 0002c960: 6e 74 28 53 74 72 69 6e 67 28 65 29 29 21 3d 65 nt(String(e))!=e 0002c970: 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 )throw new Error 0002c980: 28 22 69 6e 76 61 6c 69 64 20 70 6f 6c 6c 69 6e ("invalid pollin 0002c990: 67 20 69 6e 74 65 72 76 61 6c 22 29 3b 74 68 69 g interval");thi 0002c9a0: 73 2e 5f 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 s._pollingInterv 0002c9b0: 61 6c 3d 65 2c 74 68 69 73 2e 5f 70 6f 6c 6c 65 al=e,this._polle 0002c9c0: 72 26 26 28 63 6c 65 61 72 49 6e 74 65 72 76 61 r&&(clearInterva 0002c9d0: 6c 28 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 29 2c l(this._poller), 0002c9e0: 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 3d 73 65 74 this._poller=set 0002c9f0: 49 6e 74 65 72 76 61 6c 28 28 28 29 3d 3e 7b 74 Interval((()=>{t 0002ca00: 68 69 73 2e 70 6f 6c 6c 28 29 7d 29 2c 74 68 69 his.poll()}),thi 0002ca10: 73 2e 5f 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 s._pollingInterv 0002ca20: 61 6c 29 29 7d 5f 67 65 74 46 61 73 74 42 6c 6f al))}_getFastBlo 0002ca30: 63 6b 4e 75 6d 62 65 72 28 29 7b 63 6f 6e 73 74 ckNumber(){const 0002ca40: 20 65 3d 42 61 28 29 3b 72 65 74 75 72 6e 20 65 e=Ba();return e 0002ca50: 2d 74 68 69 73 2e 5f 66 61 73 74 51 75 65 72 79 -this._fastQuery 0002ca60: 44 61 74 65 3e 32 2a 74 68 69 73 2e 5f 70 6f 6c Date>2*this._pol 0002ca70: 6c 69 6e 67 49 6e 74 65 72 76 61 6c 26 26 28 74 lingInterval&&(t 0002ca80: 68 69 73 2e 5f 66 61 73 74 51 75 65 72 79 44 61 his._fastQueryDa 0002ca90: 74 65 3d 65 2c 74 68 69 73 2e 5f 66 61 73 74 42 te=e,this._fastB 0002caa0: 6c 6f 63 6b 4e 75 6d 62 65 72 50 72 6f 6d 69 73 lockNumberPromis 0002cab0: 65 3d 74 68 69 73 2e 67 65 74 42 6c 6f 63 6b 4e e=this.getBlockN 0002cac0: 75 6d 62 65 72 28 29 2e 74 68 65 6e 28 28 65 3d umber().then((e= 0002cad0: 3e 28 28 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f 66 >((null==this._f 0002cae0: 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 7c 7c astBlockNumber|| 0002caf0: 65 3e 74 68 69 73 2e 5f 66 61 73 74 42 6c 6f 63 e>this._fastBloc 0002cb00: 6b 4e 75 6d 62 65 72 29 26 26 28 74 68 69 73 2e kNumber)&&(this. 0002cb10: 5f 66 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 _fastBlockNumber 0002cb20: 3d 65 29 2c 74 68 69 73 2e 5f 66 61 73 74 42 6c =e),this._fastBl 0002cb30: 6f 63 6b 4e 75 6d 62 65 72 29 29 29 29 2c 74 68 ockNumber)))),th 0002cb40: 69 73 2e 5f 66 61 73 74 42 6c 6f 63 6b 4e 75 6d is._fastBlockNum 0002cb50: 62 65 72 50 72 6f 6d 69 73 65 7d 5f 73 65 74 46 berPromise}_setF 0002cb60: 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 65 astBlockNumber(e 0002cb70: 29 7b 6e 75 6c 6c 21 3d 74 68 69 73 2e 5f 66 61 ){null!=this._fa 0002cb80: 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 26 26 65 stBlockNumber&&e 0002cb90: 3c 74 68 69 73 2e 5f 66 61 73 74 42 6c 6f 63 6b <this._fastBlock 0002cba0: 4e 75 6d 62 65 72 7c 7c 28 74 68 69 73 2e 5f 66 Number||(this._f 0002cbb0: 61 73 74 51 75 65 72 79 44 61 74 65 3d 42 61 28 astQueryDate=Ba( 0002cbc0: 29 2c 28 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f 66 ),(null==this._f 0002cbd0: 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 7c 7c astBlockNumber|| 0002cbe0: 65 3e 74 68 69 73 2e 5f 66 61 73 74 42 6c 6f 63 e>this._fastBloc 0002cbf0: 6b 4e 75 6d 62 65 72 29 26 26 28 74 68 69 73 2e kNumber)&&(this. 0002cc00: 5f 66 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 _fastBlockNumber 0002cc10: 3d 65 2c 74 68 69 73 2e 5f 66 61 73 74 42 6c 6f =e,this._fastBlo 0002cc20: 63 6b 4e 75 6d 62 65 72 50 72 6f 6d 69 73 65 3d ckNumberPromise= 0002cc30: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 0002cc40: 65 29 29 29 7d 77 61 69 74 46 6f 72 54 72 61 6e e)))}waitForTran 0002cc50: 73 61 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 7b 72 saction(e,t,n){r 0002cc60: 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f eturn Ma(this,vo 0002cc70: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 0002cc80: 63 74 69 6f 6e 2a 28 29 7b 72 65 74 75 72 6e 20 ction*(){return 0002cc90: 74 68 69 73 2e 5f 77 61 69 74 46 6f 72 54 72 61 this._waitForTra 0002cca0: 6e 73 61 63 74 69 6f 6e 28 65 2c 6e 75 6c 6c 3d nsaction(e,null= 0002ccb0: 3d 74 3f 31 3a 74 2c 6e 7c 7c 30 2c 6e 75 6c 6c =t?1:t,n||0,null 0002ccc0: 29 7d 29 29 7d 5f 77 61 69 74 46 6f 72 54 72 61 )}))}_waitForTra 0002ccd0: 6e 73 61 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c 72 nsaction(e,t,n,r 0002cce0: 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 ){return Ma(this 0002ccf0: 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 ,void 0,void 0,( 0002cd00: 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 function*(){cons 0002cd10: 74 20 6f 3d 79 69 65 6c 64 20 74 68 69 73 2e 67 t o=yield this.g 0002cd20: 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 etTransactionRec 0002cd30: 65 69 70 74 28 65 29 3b 72 65 74 75 72 6e 28 6f eipt(e);return(o 0002cd40: 3f 6f 2e 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 ?o.confirmations 0002cd50: 3a 30 29 3e 3d 74 3f 6f 3a 6e 65 77 20 50 72 6f :0)>=t?o:new Pro 0002cd60: 6d 69 73 65 28 28 28 6f 2c 69 29 3d 3e 7b 63 6f mise(((o,i)=>{co 0002cd70: 6e 73 74 20 61 3d 5b 5d 3b 6c 65 74 20 73 3d 21 nst a=[];let s=! 0002cd80: 31 3b 63 6f 6e 73 74 20 6c 3d 66 75 6e 63 74 69 1;const l=functi 0002cd90: 6f 6e 28 29 7b 72 65 74 75 72 6e 21 21 73 7c 7c on(){return!!s|| 0002cda0: 28 73 3d 21 30 2c 61 2e 66 6f 72 45 61 63 68 28 (s=!0,a.forEach( 0002cdb0: 28 65 3d 3e 7b 65 28 29 7d 29 29 2c 21 31 29 7d (e=>{e()})),!1)} 0002cdc0: 2c 63 3d 65 3d 3e 7b 65 2e 63 6f 6e 66 69 72 6d ,c=e=>{e.confirm 0002cdd0: 61 74 69 6f 6e 73 3c 74 7c 7c 6c 28 29 7c 7c 6f ations<t||l()||o 0002cde0: 28 65 29 7d 3b 69 66 28 74 68 69 73 2e 6f 6e 28 (e)};if(this.on( 0002cdf0: 65 2c 63 29 2c 61 2e 70 75 73 68 28 28 28 29 3d e,c),a.push((()= 0002ce00: 3e 7b 74 68 69 73 2e 72 65 6d 6f 76 65 4c 69 73 >{this.removeLis 0002ce10: 74 65 6e 65 72 28 65 2c 63 29 7d 29 29 2c 72 29 tener(e,c)})),r) 0002ce20: 7b 6c 65 74 20 6e 3d 72 2e 73 74 61 72 74 42 6c {let n=r.startBl 0002ce30: 6f 63 6b 2c 6f 3d 6e 75 6c 6c 3b 63 6f 6e 73 74 ock,o=null;const 0002ce40: 20 63 3d 61 3d 3e 4d 61 28 74 68 69 73 2c 76 6f c=a=>Ma(this,vo 0002ce50: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 0002ce60: 63 74 69 6f 6e 2a 28 29 7b 73 7c 7c 28 79 69 65 ction*(){s||(yie 0002ce70: 6c 64 20 6a 61 28 31 65 33 29 2c 74 68 69 73 2e ld ja(1e3),this. 0002ce80: 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 43 6f getTransactionCo 0002ce90: 75 6e 74 28 72 2e 66 72 6f 6d 29 2e 74 68 65 6e unt(r.from).then 0002cea0: 28 28 75 3d 3e 4d 61 28 74 68 69 73 2c 76 6f 69 ((u=>Ma(this,voi 0002ceb0: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 0002cec0: 74 69 6f 6e 2a 28 29 7b 69 66 28 21 73 29 7b 69 tion*(){if(!s){i 0002ced0: 66 28 75 3c 3d 72 2e 6e 6f 6e 63 65 29 6e 3d 61 f(u<=r.nonce)n=a 0002cee0: 3b 65 6c 73 65 7b 7b 63 6f 6e 73 74 20 74 3d 79 ;else{{const t=y 0002cef0: 69 65 6c 64 20 74 68 69 73 2e 67 65 74 54 72 61 ield this.getTra 0002cf00: 6e 73 61 63 74 69 6f 6e 28 65 29 3b 69 66 28 74 nsaction(e);if(t 0002cf10: 26 26 6e 75 6c 6c 21 3d 74 2e 62 6c 6f 63 6b 4e &&null!=t.blockN 0002cf20: 75 6d 62 65 72 29 72 65 74 75 72 6e 7d 66 6f 72 umber)return}for 0002cf30: 28 6e 75 6c 6c 3d 3d 6f 26 26 28 6f 3d 6e 2d 33 (null==o&&(o=n-3 0002cf40: 2c 6f 3c 72 2e 73 74 61 72 74 42 6c 6f 63 6b 26 ,o<r.startBlock& 0002cf50: 26 28 6f 3d 72 2e 73 74 61 72 74 42 6c 6f 63 6b &(o=r.startBlock 0002cf60: 29 29 3b 6f 3c 3d 61 3b 29 7b 69 66 28 73 29 72 ));o<=a;){if(s)r 0002cf70: 65 74 75 72 6e 3b 63 6f 6e 73 74 20 6e 3d 79 69 eturn;const n=yi 0002cf80: 65 6c 64 20 74 68 69 73 2e 67 65 74 42 6c 6f 63 eld this.getBloc 0002cf90: 6b 57 69 74 68 54 72 61 6e 73 61 63 74 69 6f 6e kWithTransaction 0002cfa0: 73 28 6f 29 3b 66 6f 72 28 6c 65 74 20 6f 3d 30 s(o);for(let o=0 0002cfb0: 3b 6f 3c 6e 2e 74 72 61 6e 73 61 63 74 69 6f 6e ;o<n.transaction 0002cfc0: 73 2e 6c 65 6e 67 74 68 3b 6f 2b 2b 29 7b 63 6f s.length;o++){co 0002cfd0: 6e 73 74 20 61 3d 6e 2e 74 72 61 6e 73 61 63 74 nst a=n.transact 0002cfe0: 69 6f 6e 73 5b 6f 5d 3b 69 66 28 61 2e 68 61 73 ions[o];if(a.has 0002cff0: 68 3d 3d 3d 65 29 72 65 74 75 72 6e 3b 69 66 28 h===e)return;if( 0002d000: 61 2e 66 72 6f 6d 3d 3d 3d 72 2e 66 72 6f 6d 26 a.from===r.from& 0002d010: 26 61 2e 6e 6f 6e 63 65 3d 3d 3d 72 2e 6e 6f 6e &a.nonce===r.non 0002d020: 63 65 29 7b 69 66 28 73 29 72 65 74 75 72 6e 3b ce){if(s)return; 0002d030: 63 6f 6e 73 74 20 6e 3d 79 69 65 6c 64 20 74 68 const n=yield th 0002d040: 69 73 2e 77 61 69 74 46 6f 72 54 72 61 6e 73 61 is.waitForTransa 0002d050: 63 74 69 6f 6e 28 61 2e 68 61 73 68 2c 74 29 3b ction(a.hash,t); 0002d060: 69 66 28 6c 28 29 29 72 65 74 75 72 6e 3b 6c 65 if(l())return;le 0002d070: 74 20 6f 3d 22 72 65 70 6c 61 63 65 64 22 3b 72 t o="replaced";r 0002d080: 65 74 75 72 6e 20 61 2e 64 61 74 61 3d 3d 3d 72 eturn a.data===r 0002d090: 2e 64 61 74 61 26 26 61 2e 74 6f 3d 3d 3d 72 2e .data&&a.to===r. 0002d0a0: 74 6f 26 26 61 2e 76 61 6c 75 65 2e 65 71 28 72 to&&a.value.eq(r 0002d0b0: 2e 76 61 6c 75 65 29 3f 6f 3d 22 72 65 70 72 69 .value)?o="repri 0002d0c0: 63 65 64 22 3a 22 30 78 22 3d 3d 3d 61 2e 64 61 ced":"0x"===a.da 0002d0d0: 74 61 26 26 61 2e 66 72 6f 6d 3d 3d 3d 61 2e 74 ta&&a.from===a.t 0002d0e0: 6f 26 26 61 2e 76 61 6c 75 65 2e 69 73 5a 65 72 o&&a.value.isZer 0002d0f0: 6f 28 29 26 26 28 6f 3d 22 63 61 6e 63 65 6c 6c o()&&(o="cancell 0002d100: 65 64 22 29 2c 76 6f 69 64 20 69 28 44 61 2e 6d ed"),void i(Da.m 0002d110: 61 6b 65 45 72 72 6f 72 28 22 74 72 61 6e 73 61 akeError("transa 0002d120: 63 74 69 6f 6e 20 77 61 73 20 72 65 70 6c 61 63 ction was replac 0002d130: 65 64 22 2c 79 2e 65 72 72 6f 72 73 2e 54 52 41 ed",y.errors.TRA 0002d140: 4e 53 41 43 54 49 4f 4e 5f 52 45 50 4c 41 43 45 NSACTION_REPLACE 0002d150: 44 2c 7b 63 61 6e 63 65 6c 6c 65 64 3a 22 72 65 D,{cancelled:"re 0002d160: 70 6c 61 63 65 64 22 3d 3d 3d 6f 7c 7c 22 63 61 placed"===o||"ca 0002d170: 6e 63 65 6c 6c 65 64 22 3d 3d 3d 6f 2c 72 65 61 ncelled"===o,rea 0002d180: 73 6f 6e 3a 6f 2c 72 65 70 6c 61 63 65 6d 65 6e son:o,replacemen 0002d190: 74 3a 74 68 69 73 2e 5f 77 72 61 70 54 72 61 6e t:this._wrapTran 0002d1a0: 73 61 63 74 69 6f 6e 28 61 29 2c 68 61 73 68 3a saction(a),hash: 0002d1b0: 65 2c 72 65 63 65 69 70 74 3a 6e 7d 29 29 7d 7d e,receipt:n}))}} 0002d1c0: 6f 2b 2b 7d 7d 73 7c 7c 74 68 69 73 2e 6f 6e 63 o++}}s||this.onc 0002d1d0: 65 28 22 62 6c 6f 63 6b 22 2c 63 29 7d 7d 29 29 e("block",c)}})) 0002d1e0: 29 2c 28 65 3d 3e 7b 73 7c 7c 74 68 69 73 2e 6f ),(e=>{s||this.o 0002d1f0: 6e 63 65 28 22 62 6c 6f 63 6b 22 2c 63 29 7d 29 nce("block",c)}) 0002d200: 29 29 7d 29 29 3b 69 66 28 73 29 72 65 74 75 72 ))}));if(s)retur 0002d210: 6e 3b 74 68 69 73 2e 6f 6e 63 65 28 22 62 6c 6f n;this.once("blo 0002d220: 63 6b 22 2c 63 29 2c 61 2e 70 75 73 68 28 28 28 ck",c),a.push((( 0002d230: 29 3d 3e 7b 74 68 69 73 2e 72 65 6d 6f 76 65 4c )=>{this.removeL 0002d240: 69 73 74 65 6e 65 72 28 22 62 6c 6f 63 6b 22 2c istener("block", 0002d250: 63 29 7d 29 29 7d 69 66 28 22 6e 75 6d 62 65 72 c)}))}if("number 0002d260: 22 3d 3d 74 79 70 65 6f 66 20 6e 26 26 6e 3e 30 "==typeof n&&n>0 0002d270: 29 7b 63 6f 6e 73 74 20 65 3d 73 65 74 54 69 6d ){const e=setTim 0002d280: 65 6f 75 74 28 28 28 29 3d 3e 7b 6c 28 29 7c 7c eout((()=>{l()|| 0002d290: 69 28 44 61 2e 6d 61 6b 65 45 72 72 6f 72 28 22 i(Da.makeError(" 0002d2a0: 74 69 6d 65 6f 75 74 20 65 78 63 65 65 64 65 64 timeout exceeded 0002d2b0: 22 2c 79 2e 65 72 72 6f 72 73 2e 54 49 4d 45 4f ",y.errors.TIMEO 0002d2c0: 55 54 2c 7b 74 69 6d 65 6f 75 74 3a 6e 7d 29 29 UT,{timeout:n})) 0002d2d0: 7d 29 2c 6e 29 3b 65 2e 75 6e 72 65 66 26 26 65 }),n);e.unref&&e 0002d2e0: 2e 75 6e 72 65 66 28 29 2c 61 2e 70 75 73 68 28 .unref(),a.push( 0002d2f0: 28 28 29 3d 3e 7b 63 6c 65 61 72 54 69 6d 65 6f (()=>{clearTimeo 0002d300: 75 74 28 65 29 7d 29 29 7d 7d 29 29 7d 29 29 7d ut(e)}))}}))}))} 0002d310: 67 65 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 29 getBlockNumber() 0002d320: 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c {return Ma(this, 0002d330: 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 void 0,void 0,(f 0002d340: 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 74 75 72 unction*(){retur 0002d350: 6e 20 74 68 69 73 2e 5f 67 65 74 49 6e 74 65 72 n this._getInter 0002d360: 6e 61 6c 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 30 nalBlockNumber(0 0002d370: 29 7d 29 29 7d 67 65 74 47 61 73 50 72 69 63 65 )}))}getGasPrice 0002d380: 28 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 (){return Ma(thi 0002d390: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 0002d3a0: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 (function*(){yie 0002d3b0: 6c 64 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f ld this.getNetwo 0002d3c0: 72 6b 28 29 3b 63 6f 6e 73 74 20 65 3d 79 69 65 rk();const e=yie 0002d3d0: 6c 64 20 74 68 69 73 2e 70 65 72 66 6f 72 6d 28 ld this.perform( 0002d3e0: 22 67 65 74 47 61 73 50 72 69 63 65 22 2c 7b 7d "getGasPrice",{} 0002d3f0: 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 59 2e 66 );try{return Y.f 0002d400: 72 6f 6d 28 65 29 7d 63 61 74 63 68 28 74 29 7b rom(e)}catch(t){ 0002d410: 72 65 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 45 return Da.throwE 0002d420: 72 72 6f 72 28 22 62 61 64 20 72 65 73 75 6c 74 rror("bad result 0002d430: 20 66 72 6f 6d 20 62 61 63 6b 65 6e 64 22 2c 79 from backend",y 0002d440: 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 .errors.SERVER_E 0002d450: 52 52 4f 52 2c 7b 6d 65 74 68 6f 64 3a 22 67 65 RROR,{method:"ge 0002d460: 74 47 61 73 50 72 69 63 65 22 2c 72 65 73 75 6c tGasPrice",resul 0002d470: 74 3a 65 2c 65 72 72 6f 72 3a 74 7d 29 7d 7d 29 t:e,error:t})}}) 0002d480: 29 7d 67 65 74 42 61 6c 61 6e 63 65 28 65 2c 74 )}getBalance(e,t 0002d490: 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 ){return Ma(this 0002d4a0: 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 ,void 0,void 0,( 0002d4b0: 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 6c function*(){yiel 0002d4c0: 64 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f 72 d this.getNetwor 0002d4d0: 6b 28 29 3b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c k();const n=yiel 0002d4e0: 64 20 72 65 28 7b 61 64 64 72 65 73 73 3a 74 68 d re({address:th 0002d4f0: 69 73 2e 5f 67 65 74 41 64 64 72 65 73 73 28 65 is._getAddress(e 0002d500: 29 2c 62 6c 6f 63 6b 54 61 67 3a 74 68 69 73 2e ),blockTag:this. 0002d510: 5f 67 65 74 42 6c 6f 63 6b 54 61 67 28 74 29 7d _getBlockTag(t)} 0002d520: 29 2c 72 3d 79 69 65 6c 64 20 74 68 69 73 2e 70 ),r=yield this.p 0002d530: 65 72 66 6f 72 6d 28 22 67 65 74 42 61 6c 61 6e erform("getBalan 0002d540: 63 65 22 2c 6e 29 3b 74 72 79 7b 72 65 74 75 72 ce",n);try{retur 0002d550: 6e 20 59 2e 66 72 6f 6d 28 72 29 7d 63 61 74 63 n Y.from(r)}catc 0002d560: 68 28 65 29 7b 72 65 74 75 72 6e 20 44 61 2e 74 h(e){return Da.t 0002d570: 68 72 6f 77 45 72 72 6f 72 28 22 62 61 64 20 72 hrowError("bad r 0002d580: 65 73 75 6c 74 20 66 72 6f 6d 20 62 61 63 6b 65 esult from backe 0002d590: 6e 64 22 2c 79 2e 65 72 72 6f 72 73 2e 53 45 52 nd",y.errors.SER 0002d5a0: 56 45 52 5f 45 52 52 4f 52 2c 7b 6d 65 74 68 6f VER_ERROR,{metho 0002d5b0: 64 3a 22 67 65 74 42 61 6c 61 6e 63 65 22 2c 70 d:"getBalance",p 0002d5c0: 61 72 61 6d 73 3a 6e 2c 72 65 73 75 6c 74 3a 72 arams:n,result:r 0002d5d0: 2c 65 72 72 6f 72 3a 65 7d 29 7d 7d 29 29 7d 67 ,error:e})}}))}g 0002d5e0: 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 43 6f 75 etTransactionCou 0002d5f0: 6e 74 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 4d nt(e,t){return M 0002d600: 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f a(this,void 0,vo 0002d610: 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 id 0,(function*( 0002d620: 29 7b 79 69 65 6c 64 20 74 68 69 73 2e 67 65 74 ){yield this.get 0002d630: 4e 65 74 77 6f 72 6b 28 29 3b 63 6f 6e 73 74 20 Network();const 0002d640: 6e 3d 79 69 65 6c 64 20 72 65 28 7b 61 64 64 72 n=yield re({addr 0002d650: 65 73 73 3a 74 68 69 73 2e 5f 67 65 74 41 64 64 ess:this._getAdd 0002d660: 72 65 73 73 28 65 29 2c 62 6c 6f 63 6b 54 61 67 ress(e),blockTag 0002d670: 3a 74 68 69 73 2e 5f 67 65 74 42 6c 6f 63 6b 54 :this._getBlockT 0002d680: 61 67 28 74 29 7d 29 2c 72 3d 79 69 65 6c 64 20 ag(t)}),r=yield 0002d690: 74 68 69 73 2e 70 65 72 66 6f 72 6d 28 22 67 65 this.perform("ge 0002d6a0: 74 54 72 61 6e 73 61 63 74 69 6f 6e 43 6f 75 6e tTransactionCoun 0002d6b0: 74 22 2c 6e 29 3b 74 72 79 7b 72 65 74 75 72 6e t",n);try{return 0002d6c0: 20 59 2e 66 72 6f 6d 28 72 29 2e 74 6f 4e 75 6d Y.from(r).toNum 0002d6d0: 62 65 72 28 29 7d 63 61 74 63 68 28 65 29 7b 72 ber()}catch(e){r 0002d6e0: 65 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 45 72 eturn Da.throwEr 0002d6f0: 72 6f 72 28 22 62 61 64 20 72 65 73 75 6c 74 20 ror("bad result 0002d700: 66 72 6f 6d 20 62 61 63 6b 65 6e 64 22 2c 79 2e from backend",y. 0002d710: 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 errors.SERVER_ER 0002d720: 52 4f 52 2c 7b 6d 65 74 68 6f 64 3a 22 67 65 74 ROR,{method:"get 0002d730: 54 72 61 6e 73 61 63 74 69 6f 6e 43 6f 75 6e 74 TransactionCount 0002d740: 22 2c 70 61 72 61 6d 73 3a 6e 2c 72 65 73 75 6c ",params:n,resul 0002d750: 74 3a 72 2c 65 72 72 6f 72 3a 65 7d 29 7d 7d 29 t:r,error:e})}}) 0002d760: 29 7d 67 65 74 43 6f 64 65 28 65 2c 74 29 7b 72 )}getCode(e,t){r 0002d770: 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f eturn Ma(this,vo 0002d780: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 0002d790: 63 74 69 6f 6e 2a 28 29 7b 79 69 65 6c 64 20 74 ction*(){yield t 0002d7a0: 68 69 73 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 his.getNetwork() 0002d7b0: 3b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c 64 20 72 ;const n=yield r 0002d7c0: 65 28 7b 61 64 64 72 65 73 73 3a 74 68 69 73 2e e({address:this. 0002d7d0: 5f 67 65 74 41 64 64 72 65 73 73 28 65 29 2c 62 _getAddress(e),b 0002d7e0: 6c 6f 63 6b 54 61 67 3a 74 68 69 73 2e 5f 67 65 lockTag:this._ge 0002d7f0: 74 42 6c 6f 63 6b 54 61 67 28 74 29 7d 29 2c 72 tBlockTag(t)}),r 0002d800: 3d 79 69 65 6c 64 20 74 68 69 73 2e 70 65 72 66 =yield this.perf 0002d810: 6f 72 6d 28 22 67 65 74 43 6f 64 65 22 2c 6e 29 orm("getCode",n) 0002d820: 3b 74 72 79 7b 72 65 74 75 72 6e 20 52 28 72 29 ;try{return R(r) 0002d830: 7d 63 61 74 63 68 28 65 29 7b 72 65 74 75 72 6e }catch(e){return 0002d840: 20 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 Da.throwError(" 0002d850: 62 61 64 20 72 65 73 75 6c 74 20 66 72 6f 6d 20 bad result from 0002d860: 62 61 63 6b 65 6e 64 22 2c 79 2e 65 72 72 6f 72 backend",y.error 0002d870: 73 2e 53 45 52 56 45 52 5f 45 52 52 4f 52 2c 7b s.SERVER_ERROR,{ 0002d880: 6d 65 74 68 6f 64 3a 22 67 65 74 43 6f 64 65 22 method:"getCode" 0002d890: 2c 70 61 72 61 6d 73 3a 6e 2c 72 65 73 75 6c 74 ,params:n,result 0002d8a0: 3a 72 2c 65 72 72 6f 72 3a 65 7d 29 7d 7d 29 29 :r,error:e})}})) 0002d8b0: 7d 67 65 74 53 74 6f 72 61 67 65 41 74 28 65 2c }getStorageAt(e, 0002d8c0: 74 2c 6e 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 t,n){return Ma(t 0002d8d0: 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 his,void 0,void 0002d8e0: 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 0,(function*(){y 0002d8f0: 69 65 6c 64 20 74 68 69 73 2e 67 65 74 4e 65 74 ield this.getNet 0002d900: 77 6f 72 6b 28 29 3b 63 6f 6e 73 74 20 72 3d 79 work();const r=y 0002d910: 69 65 6c 64 20 72 65 28 7b 61 64 64 72 65 73 73 ield re({address 0002d920: 3a 74 68 69 73 2e 5f 67 65 74 41 64 64 72 65 73 :this._getAddres 0002d930: 73 28 65 29 2c 62 6c 6f 63 6b 54 61 67 3a 74 68 s(e),blockTag:th 0002d940: 69 73 2e 5f 67 65 74 42 6c 6f 63 6b 54 61 67 28 is._getBlockTag( 0002d950: 6e 29 2c 70 6f 73 69 74 69 6f 6e 3a 50 72 6f 6d n),position:Prom 0002d960: 69 73 65 2e 72 65 73 6f 6c 76 65 28 74 29 2e 74 ise.resolve(t).t 0002d970: 68 65 6e 28 28 65 3d 3e 44 28 65 29 29 29 7d 29 hen((e=>D(e)))}) 0002d980: 2c 6f 3d 79 69 65 6c 64 20 74 68 69 73 2e 70 65 ,o=yield this.pe 0002d990: 72 66 6f 72 6d 28 22 67 65 74 53 74 6f 72 61 67 rform("getStorag 0002d9a0: 65 41 74 22 2c 72 29 3b 74 72 79 7b 72 65 74 75 eAt",r);try{retu 0002d9b0: 72 6e 20 52 28 6f 29 7d 63 61 74 63 68 28 65 29 rn R(o)}catch(e) 0002d9c0: 7b 72 65 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 {return Da.throw 0002d9d0: 45 72 72 6f 72 28 22 62 61 64 20 72 65 73 75 6c Error("bad resul 0002d9e0: 74 20 66 72 6f 6d 20 62 61 63 6b 65 6e 64 22 2c t from backend", 0002d9f0: 79 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f y.errors.SERVER_ 0002da00: 45 52 52 4f 52 2c 7b 6d 65 74 68 6f 64 3a 22 67 ERROR,{method:"g 0002da10: 65 74 53 74 6f 72 61 67 65 41 74 22 2c 70 61 72 etStorageAt",par 0002da20: 61 6d 73 3a 72 2c 72 65 73 75 6c 74 3a 6f 2c 65 ams:r,result:o,e 0002da30: 72 72 6f 72 3a 65 7d 29 7d 7d 29 29 7d 5f 77 72 rror:e})}}))}_wr 0002da40: 61 70 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 2c apTransaction(e, 0002da50: 74 2c 6e 29 7b 69 66 28 6e 75 6c 6c 21 3d 74 26 t,n){if(null!=t& 0002da60: 26 33 32 21 3d 3d 4e 28 74 29 29 74 68 72 6f 77 &32!==N(t))throw 0002da70: 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 76 61 new Error("inva 0002da80: 6c 69 64 20 72 65 73 70 6f 6e 73 65 20 2d 20 73 lid response - s 0002da90: 65 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 22 29 endTransaction") 0002daa0: 3b 63 6f 6e 73 74 20 72 3d 65 3b 72 65 74 75 72 ;const r=e;retur 0002dab0: 6e 20 6e 75 6c 6c 21 3d 74 26 26 65 2e 68 61 73 n null!=t&&e.has 0002dac0: 68 21 3d 3d 74 26 26 44 61 2e 74 68 72 6f 77 45 h!==t&&Da.throwE 0002dad0: 72 72 6f 72 28 22 54 72 61 6e 73 61 63 74 69 6f rror("Transactio 0002dae0: 6e 20 68 61 73 68 20 6d 69 73 6d 61 74 63 68 20 n hash mismatch 0002daf0: 66 72 6f 6d 20 50 72 6f 76 69 64 65 72 2e 73 65 from Provider.se 0002db00: 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 2e 22 2c ndTransaction.", 0002db10: 79 2e 65 72 72 6f 72 73 2e 55 4e 4b 4e 4f 57 4e y.errors.UNKNOWN 0002db20: 5f 45 52 52 4f 52 2c 7b 65 78 70 65 63 74 65 64 _ERROR,{expected 0002db30: 48 61 73 68 3a 65 2e 68 61 73 68 2c 72 65 74 75 Hash:e.hash,retu 0002db40: 72 6e 65 64 48 61 73 68 3a 74 7d 29 2c 72 2e 77 rnedHash:t}),r.w 0002db50: 61 69 74 3d 28 74 2c 72 29 3d 3e 4d 61 28 74 68 ait=(t,r)=>Ma(th 0002db60: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 0002db70: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6c 65 ,(function*(){le 0002db80: 74 20 6f 3b 6e 75 6c 6c 3d 3d 74 26 26 28 74 3d t o;null==t&&(t= 0002db90: 31 29 2c 6e 75 6c 6c 3d 3d 72 26 26 28 72 3d 30 1),null==r&&(r=0 0002dba0: 29 2c 30 21 3d 3d 74 26 26 6e 75 6c 6c 21 3d 6e ),0!==t&&null!=n 0002dbb0: 26 26 28 6f 3d 7b 64 61 74 61 3a 65 2e 64 61 74 &&(o={data:e.dat 0002dbc0: 61 2c 66 72 6f 6d 3a 65 2e 66 72 6f 6d 2c 6e 6f a,from:e.from,no 0002dbd0: 6e 63 65 3a 65 2e 6e 6f 6e 63 65 2c 74 6f 3a 65 nce:e.nonce,to:e 0002dbe0: 2e 74 6f 2c 76 61 6c 75 65 3a 65 2e 76 61 6c 75 .to,value:e.valu 0002dbf0: 65 2c 73 74 61 72 74 42 6c 6f 63 6b 3a 6e 7d 29 e,startBlock:n}) 0002dc00: 3b 63 6f 6e 73 74 20 69 3d 79 69 65 6c 64 20 74 ;const i=yield t 0002dc10: 68 69 73 2e 5f 77 61 69 74 46 6f 72 54 72 61 6e his._waitForTran 0002dc20: 73 61 63 74 69 6f 6e 28 65 2e 68 61 73 68 2c 74 saction(e.hash,t 0002dc30: 2c 72 2c 6f 29 3b 72 65 74 75 72 6e 20 6e 75 6c ,r,o);return nul 0002dc40: 6c 3d 3d 69 26 26 30 3d 3d 3d 74 3f 6e 75 6c 6c l==i&&0===t?null 0002dc50: 3a 28 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 5b :(this._emitted[ 0002dc60: 22 74 3a 22 2b 65 2e 68 61 73 68 5d 3d 69 2e 62 "t:"+e.hash]=i.b 0002dc70: 6c 6f 63 6b 4e 75 6d 62 65 72 2c 30 3d 3d 3d 69 lockNumber,0===i 0002dc80: 2e 73 74 61 74 75 73 26 26 44 61 2e 74 68 72 6f .status&&Da.thro 0002dc90: 77 45 72 72 6f 72 28 22 74 72 61 6e 73 61 63 74 wError("transact 0002dca0: 69 6f 6e 20 66 61 69 6c 65 64 22 2c 79 2e 65 72 ion failed",y.er 0002dcb0: 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 54 rors.CALL_EXCEPT 0002dcc0: 49 4f 4e 2c 7b 74 72 61 6e 73 61 63 74 69 6f 6e ION,{transaction 0002dcd0: 48 61 73 68 3a 65 2e 68 61 73 68 2c 74 72 61 6e Hash:e.hash,tran 0002dce0: 73 61 63 74 69 6f 6e 3a 65 2c 72 65 63 65 69 70 saction:e,receip 0002dcf0: 74 3a 69 7d 29 2c 69 29 7d 29 29 2c 72 7d 73 65 t:i}),i)})),r}se 0002dd00: 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 ndTransaction(e) 0002dd10: 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c {return Ma(this, 0002dd20: 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 void 0,void 0,(f 0002dd30: 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 6c 64 unction*(){yield 0002dd40: 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f 72 6b this.getNetwork 0002dd50: 28 29 3b 63 6f 6e 73 74 20 74 3d 79 69 65 6c 64 ();const t=yield 0002dd60: 20 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 Promise.resolve 0002dd70: 28 65 29 2e 74 68 65 6e 28 28 65 3d 3e 52 28 65 (e).then((e=>R(e 0002dd80: 29 29 29 2c 6e 3d 74 68 69 73 2e 66 6f 72 6d 61 ))),n=this.forma 0002dd90: 74 74 65 72 2e 74 72 61 6e 73 61 63 74 69 6f 6e tter.transaction 0002dda0: 28 65 29 3b 6e 75 6c 6c 3d 3d 6e 2e 63 6f 6e 66 (e);null==n.conf 0002ddb0: 69 72 6d 61 74 69 6f 6e 73 26 26 28 6e 2e 63 6f irmations&&(n.co 0002ddc0: 6e 66 69 72 6d 61 74 69 6f 6e 73 3d 30 29 3b 63 nfirmations=0);c 0002ddd0: 6f 6e 73 74 20 72 3d 79 69 65 6c 64 20 74 68 69 onst r=yield thi 0002dde0: 73 2e 5f 67 65 74 49 6e 74 65 72 6e 61 6c 42 6c s._getInternalBl 0002ddf0: 6f 63 6b 4e 75 6d 62 65 72 28 31 30 30 2b 32 2a ockNumber(100+2* 0002de00: 74 68 69 73 2e 70 6f 6c 6c 69 6e 67 49 6e 74 65 this.pollingInte 0002de10: 72 76 61 6c 29 3b 74 72 79 7b 63 6f 6e 73 74 20 rval);try{const 0002de20: 65 3d 79 69 65 6c 64 20 74 68 69 73 2e 70 65 72 e=yield this.per 0002de30: 66 6f 72 6d 28 22 73 65 6e 64 54 72 61 6e 73 61 form("sendTransa 0002de40: 63 74 69 6f 6e 22 2c 7b 73 69 67 6e 65 64 54 72 ction",{signedTr 0002de50: 61 6e 73 61 63 74 69 6f 6e 3a 74 7d 29 3b 72 65 ansaction:t});re 0002de60: 74 75 72 6e 20 74 68 69 73 2e 5f 77 72 61 70 54 turn this._wrapT 0002de70: 72 61 6e 73 61 63 74 69 6f 6e 28 6e 2c 65 2c 72 ransaction(n,e,r 0002de80: 29 7d 63 61 74 63 68 28 65 29 7b 74 68 72 6f 77 )}catch(e){throw 0002de90: 20 65 2e 74 72 61 6e 73 61 63 74 69 6f 6e 3d 6e e.transaction=n 0002dea0: 2c 65 2e 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 ,e.transactionHa 0002deb0: 73 68 3d 6e 2e 68 61 73 68 2c 65 7d 7d 29 29 7d sh=n.hash,e}}))} 0002dec0: 5f 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 _getTransactionR 0002ded0: 65 71 75 65 73 74 28 65 29 7b 72 65 74 75 72 6e equest(e){return 0002dee0: 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c Ma(this,void 0, 0002def0: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 0002df00: 2a 28 29 7b 63 6f 6e 73 74 20 74 3d 79 69 65 6c *(){const t=yiel 0002df10: 64 20 65 2c 6e 3d 7b 7d 3b 72 65 74 75 72 6e 5b d e,n={};return[ 0002df20: 22 66 72 6f 6d 22 2c 22 74 6f 22 5d 2e 66 6f 72 "from","to"].for 0002df30: 45 61 63 68 28 28 65 3d 3e 7b 6e 75 6c 6c 21 3d Each((e=>{null!= 0002df40: 74 5b 65 5d 26 26 28 6e 5b 65 5d 3d 50 72 6f 6d t[e]&&(n[e]=Prom 0002df50: 69 73 65 2e 72 65 73 6f 6c 76 65 28 74 5b 65 5d ise.resolve(t[e] 0002df60: 29 2e 74 68 65 6e 28 28 65 3d 3e 65 3f 74 68 69 ).then((e=>e?thi 0002df70: 73 2e 5f 67 65 74 41 64 64 72 65 73 73 28 65 29 s._getAddress(e) 0002df80: 3a 6e 75 6c 6c 29 29 29 7d 29 29 2c 5b 22 67 61 :null)))})),["ga 0002df90: 73 4c 69 6d 69 74 22 2c 22 67 61 73 50 72 69 63 sLimit","gasPric 0002dfa0: 65 22 2c 22 6d 61 78 46 65 65 50 65 72 47 61 73 e","maxFeePerGas 0002dfb0: 22 2c 22 6d 61 78 50 72 69 6f 72 69 74 79 46 65 ","maxPriorityFe 0002dfc0: 65 50 65 72 47 61 73 22 2c 22 76 61 6c 75 65 22 ePerGas","value" 0002dfd0: 5d 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 6e ].forEach((e=>{n 0002dfe0: 75 6c 6c 21 3d 74 5b 65 5d 26 26 28 6e 5b 65 5d ull!=t[e]&&(n[e] 0002dff0: 3d 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 =Promise.resolve 0002e000: 28 74 5b 65 5d 29 2e 74 68 65 6e 28 28 65 3d 3e (t[e]).then((e=> 0002e010: 65 3f 59 2e 66 72 6f 6d 28 65 29 3a 6e 75 6c 6c e?Y.from(e):null 0002e020: 29 29 29 7d 29 29 2c 5b 22 74 79 70 65 22 5d 2e )))})),["type"]. 0002e030: 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 6e 75 6c forEach((e=>{nul 0002e040: 6c 21 3d 74 5b 65 5d 26 26 28 6e 5b 65 5d 3d 50 l!=t[e]&&(n[e]=P 0002e050: 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 74 romise.resolve(t 0002e060: 5b 65 5d 29 2e 74 68 65 6e 28 28 65 3d 3e 6e 75 [e]).then((e=>nu 0002e070: 6c 6c 21 3d 65 3f 65 3a 6e 75 6c 6c 29 29 29 7d ll!=e?e:null)))} 0002e080: 29 29 2c 74 2e 61 63 63 65 73 73 4c 69 73 74 26 )),t.accessList& 0002e090: 26 28 6e 2e 61 63 63 65 73 73 4c 69 73 74 3d 74 &(n.accessList=t 0002e0a0: 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e 61 63 his.formatter.ac 0002e0b0: 63 65 73 73 4c 69 73 74 28 74 2e 61 63 63 65 73 cessList(t.acces 0002e0c0: 73 4c 69 73 74 29 29 2c 5b 22 64 61 74 61 22 5d sList)),["data"] 0002e0d0: 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 6e 75 .forEach((e=>{nu 0002e0e0: 6c 6c 21 3d 74 5b 65 5d 26 26 28 6e 5b 65 5d 3d ll!=t[e]&&(n[e]= 0002e0f0: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 0002e100: 74 5b 65 5d 29 2e 74 68 65 6e 28 28 65 3d 3e 65 t[e]).then((e=>e 0002e110: 3f 52 28 65 29 3a 6e 75 6c 6c 29 29 29 7d 29 29 ?R(e):null)))})) 0002e120: 2c 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e ,this.formatter. 0002e130: 74 72 61 6e 73 61 63 74 69 6f 6e 52 65 71 75 65 transactionReque 0002e140: 73 74 28 79 69 65 6c 64 20 72 65 28 6e 29 29 7d st(yield re(n))} 0002e150: 29 29 7d 5f 67 65 74 46 69 6c 74 65 72 28 65 29 ))}_getFilter(e) 0002e160: 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c {return Ma(this, 0002e170: 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 void 0,void 0,(f 0002e180: 75 6e 63 74 69 6f 6e 2a 28 29 7b 65 3d 79 69 65 unction*(){e=yie 0002e190: 6c 64 20 65 3b 63 6f 6e 73 74 20 74 3d 7b 7d 3b ld e;const t={}; 0002e1a0: 72 65 74 75 72 6e 20 6e 75 6c 6c 21 3d 65 2e 61 return null!=e.a 0002e1b0: 64 64 72 65 73 73 26 26 28 74 2e 61 64 64 72 65 ddress&&(t.addre 0002e1c0: 73 73 3d 74 68 69 73 2e 5f 67 65 74 41 64 64 72 ss=this._getAddr 0002e1d0: 65 73 73 28 65 2e 61 64 64 72 65 73 73 29 29 2c ess(e.address)), 0002e1e0: 5b 22 62 6c 6f 63 6b 48 61 73 68 22 2c 22 74 6f ["blockHash","to 0002e1f0: 70 69 63 73 22 5d 2e 66 6f 72 45 61 63 68 28 28 pics"].forEach(( 0002e200: 6e 3d 3e 7b 6e 75 6c 6c 21 3d 65 5b 6e 5d 26 26 n=>{null!=e[n]&& 0002e210: 28 74 5b 6e 5d 3d 65 5b 6e 5d 29 7d 29 29 2c 5b (t[n]=e[n])})),[ 0002e220: 22 66 72 6f 6d 42 6c 6f 63 6b 22 2c 22 74 6f 42 "fromBlock","toB 0002e230: 6c 6f 63 6b 22 5d 2e 66 6f 72 45 61 63 68 28 28 lock"].forEach(( 0002e240: 6e 3d 3e 7b 6e 75 6c 6c 21 3d 65 5b 6e 5d 26 26 n=>{null!=e[n]&& 0002e250: 28 74 5b 6e 5d 3d 74 68 69 73 2e 5f 67 65 74 42 (t[n]=this._getB 0002e260: 6c 6f 63 6b 54 61 67 28 65 5b 6e 5d 29 29 7d 29 lockTag(e[n]))}) 0002e270: 29 2c 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 ),this.formatter 0002e280: 2e 66 69 6c 74 65 72 28 79 69 65 6c 64 20 72 65 .filter(yield re 0002e290: 28 74 29 29 7d 29 29 7d 5f 63 61 6c 6c 28 65 2c (t))}))}_call(e, 0002e2a0: 74 2c 6e 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 t,n){return Ma(t 0002e2b0: 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 his,void 0,void 0002e2c0: 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6e 0,(function*(){n 0002e2d0: 3e 3d 31 30 26 26 44 61 2e 74 68 72 6f 77 45 72 >=10&&Da.throwEr 0002e2e0: 72 6f 72 28 22 43 43 49 50 20 72 65 61 64 20 65 ror("CCIP read e 0002e2f0: 78 63 65 65 64 65 64 20 6d 61 78 69 6d 75 6d 20 xceeded maximum 0002e300: 72 65 64 69 72 65 63 74 69 6f 6e 73 22 2c 79 2e redirections",y. 0002e310: 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 errors.SERVER_ER 0002e320: 52 4f 52 2c 7b 72 65 64 69 72 65 63 74 73 3a 6e ROR,{redirects:n 0002e330: 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 65 7d 29 ,transaction:e}) 0002e340: 3b 63 6f 6e 73 74 20 72 3d 65 2e 74 6f 2c 6f 3d ;const r=e.to,o= 0002e350: 79 69 65 6c 64 20 74 68 69 73 2e 70 65 72 66 6f yield this.perfo 0002e360: 72 6d 28 22 63 61 6c 6c 22 2c 7b 74 72 61 6e 73 rm("call",{trans 0002e370: 61 63 74 69 6f 6e 3a 65 2c 62 6c 6f 63 6b 54 61 action:e,blockTa 0002e380: 67 3a 74 7d 29 3b 69 66 28 6e 3e 3d 30 26 26 22 g:t});if(n>=0&&" 0002e390: 6c 61 74 65 73 74 22 3d 3d 3d 74 26 26 6e 75 6c latest"===t&&nul 0002e3a0: 6c 21 3d 72 26 26 22 30 78 35 35 36 66 31 38 33 l!=r&&"0x556f183 0002e3b0: 30 22 3d 3d 3d 6f 2e 73 75 62 73 74 72 69 6e 67 0"===o.substring 0002e3c0: 28 30 2c 31 30 29 26 26 4e 28 6f 29 25 33 32 3d (0,10)&&N(o)%32= 0002e3d0: 3d 34 29 74 72 79 7b 63 6f 6e 73 74 20 69 3d 50 =4)try{const i=P 0002e3e0: 28 6f 2c 34 29 2c 61 3d 50 28 69 2c 30 2c 33 32 (o,4),a=P(i,0,32 0002e3f0: 29 3b 59 2e 66 72 6f 6d 28 61 29 2e 65 71 28 72 );Y.from(a).eq(r 0002e400: 29 7c 7c 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 )||Da.throwError 0002e410: 28 22 43 43 49 50 20 52 65 61 64 20 73 65 6e 64 ("CCIP Read send 0002e420: 65 72 20 64 69 64 20 6e 6f 74 20 6d 61 74 63 68 er did not match 0002e430: 22 2c 79 2e 65 72 72 6f 72 73 2e 43 41 4c 4c 5f ",y.errors.CALL_ 0002e440: 45 58 43 45 50 54 49 4f 4e 2c 7b 6e 61 6d 65 3a EXCEPTION,{name: 0002e450: 22 4f 66 66 63 68 61 69 6e 4c 6f 6f 6b 75 70 22 "OffchainLookup" 0002e460: 2c 73 69 67 6e 61 74 75 72 65 3a 22 4f 66 66 63 ,signature:"Offc 0002e470: 68 61 69 6e 4c 6f 6f 6b 75 70 28 61 64 64 72 65 hainLookup(addre 0002e480: 73 73 2c 73 74 72 69 6e 67 5b 5d 2c 62 79 74 65 ss,string[],byte 0002e490: 73 2c 62 79 74 65 73 34 2c 62 79 74 65 73 29 22 s,bytes4,bytes)" 0002e4a0: 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 65 2c 64 ,transaction:e,d 0002e4b0: 61 74 61 3a 6f 7d 29 3b 63 6f 6e 73 74 20 73 3d ata:o});const s= 0002e4c0: 5b 5d 2c 6c 3d 59 2e 66 72 6f 6d 28 50 28 69 2c [],l=Y.from(P(i, 0002e4d0: 33 32 2c 36 34 29 29 2e 74 6f 4e 75 6d 62 65 72 32,64)).toNumber 0002e4e0: 28 29 2c 63 3d 59 2e 66 72 6f 6d 28 50 28 69 2c (),c=Y.from(P(i, 0002e4f0: 6c 2c 6c 2b 33 32 29 29 2e 74 6f 4e 75 6d 62 65 l,l+32)).toNumbe 0002e500: 72 28 29 2c 75 3d 50 28 69 2c 6c 2b 33 32 29 3b r(),u=P(i,l+32); 0002e510: 66 6f 72 28 6c 65 74 20 74 3d 30 3b 74 3c 63 3b for(let t=0;t<c; 0002e520: 74 2b 2b 29 7b 63 6f 6e 73 74 20 6e 3d 59 61 28 t++){const n=Ya( 0002e530: 75 2c 33 32 2a 74 29 3b 6e 75 6c 6c 3d 3d 6e 26 u,32*t);null==n& 0002e540: 26 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 &Da.throwError(" 0002e550: 43 43 49 50 20 52 65 61 64 20 63 6f 6e 74 61 69 CCIP Read contai 0002e560: 6e 65 64 20 63 6f 72 72 75 70 74 20 55 52 4c 20 ned corrupt URL 0002e570: 73 74 72 69 6e 67 22 2c 79 2e 65 72 72 6f 72 73 string",y.errors 0002e580: 2e 43 41 4c 4c 5f 45 58 43 45 50 54 49 4f 4e 2c .CALL_EXCEPTION, 0002e590: 7b 6e 61 6d 65 3a 22 4f 66 66 63 68 61 69 6e 4c {name:"OffchainL 0002e5a0: 6f 6f 6b 75 70 22 2c 73 69 67 6e 61 74 75 72 65 ookup",signature 0002e5b0: 3a 22 4f 66 66 63 68 61 69 6e 4c 6f 6f 6b 75 70 :"OffchainLookup 0002e5c0: 28 61 64 64 72 65 73 73 2c 73 74 72 69 6e 67 5b (address,string[ 0002e5d0: 5d 2c 62 79 74 65 73 2c 62 79 74 65 73 34 2c 62 ],bytes,bytes4,b 0002e5e0: 79 74 65 73 29 22 2c 74 72 61 6e 73 61 63 74 69 ytes)",transacti 0002e5f0: 6f 6e 3a 65 2c 64 61 74 61 3a 6f 7d 29 2c 73 2e on:e,data:o}),s. 0002e600: 70 75 73 68 28 6e 29 7d 63 6f 6e 73 74 20 64 3d push(n)}const d= 0002e610: 58 61 28 69 2c 36 34 29 3b 59 2e 66 72 6f 6d 28 Xa(i,64);Y.from( 0002e620: 50 28 69 2c 31 30 30 2c 31 32 38 29 29 2e 69 73 P(i,100,128)).is 0002e630: 5a 65 72 6f 28 29 7c 7c 44 61 2e 74 68 72 6f 77 Zero()||Da.throw 0002e640: 45 72 72 6f 72 28 22 43 43 49 50 20 52 65 61 64 Error("CCIP Read 0002e650: 20 63 61 6c 6c 62 61 63 6b 20 73 65 6c 65 63 74 callback select 0002e660: 6f 72 20 69 6e 63 6c 75 64 65 64 20 6a 75 6e 6b or included junk 0002e670: 22 2c 79 2e 65 72 72 6f 72 73 2e 43 41 4c 4c 5f ",y.errors.CALL_ 0002e680: 45 58 43 45 50 54 49 4f 4e 2c 7b 6e 61 6d 65 3a EXCEPTION,{name: 0002e690: 22 4f 66 66 63 68 61 69 6e 4c 6f 6f 6b 75 70 22 "OffchainLookup" 0002e6a0: 2c 73 69 67 6e 61 74 75 72 65 3a 22 4f 66 66 63 ,signature:"Offc 0002e6b0: 68 61 69 6e 4c 6f 6f 6b 75 70 28 61 64 64 72 65 hainLookup(addre 0002e6c0: 73 73 2c 73 74 72 69 6e 67 5b 5d 2c 62 79 74 65 ss,string[],byte 0002e6d0: 73 2c 62 79 74 65 73 34 2c 62 79 74 65 73 29 22 s,bytes4,bytes)" 0002e6e0: 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 65 2c 64 ,transaction:e,d 0002e6f0: 61 74 61 3a 6f 7d 29 3b 63 6f 6e 73 74 20 70 3d ata:o});const p= 0002e700: 50 28 69 2c 39 36 2c 31 30 30 29 2c 66 3d 58 61 P(i,96,100),f=Xa 0002e710: 28 69 2c 31 32 38 29 2c 68 3d 79 69 65 6c 64 20 (i,128),h=yield 0002e720: 74 68 69 73 2e 63 63 69 70 52 65 61 64 46 65 74 this.ccipReadFet 0002e730: 63 68 28 65 2c 64 2c 73 29 3b 6e 75 6c 6c 3d 3d ch(e,d,s);null== 0002e740: 68 26 26 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 h&&Da.throwError 0002e750: 28 22 43 43 49 50 20 52 65 61 64 20 64 69 73 61 ("CCIP Read disa 0002e760: 62 6c 65 64 20 6f 72 20 70 72 6f 76 69 64 65 64 bled or provided 0002e770: 20 6e 6f 20 55 52 4c 73 22 2c 79 2e 65 72 72 6f no URLs",y.erro 0002e780: 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 54 49 4f rs.CALL_EXCEPTIO 0002e790: 4e 2c 7b 6e 61 6d 65 3a 22 4f 66 66 63 68 61 69 N,{name:"Offchai 0002e7a0: 6e 4c 6f 6f 6b 75 70 22 2c 73 69 67 6e 61 74 75 nLookup",signatu 0002e7b0: 72 65 3a 22 4f 66 66 63 68 61 69 6e 4c 6f 6f 6b re:"OffchainLook 0002e7c0: 75 70 28 61 64 64 72 65 73 73 2c 73 74 72 69 6e up(address,strin 0002e7d0: 67 5b 5d 2c 62 79 74 65 73 2c 62 79 74 65 73 34 g[],bytes,bytes4 0002e7e0: 2c 62 79 74 65 73 29 22 2c 74 72 61 6e 73 61 63 ,bytes)",transac 0002e7f0: 74 69 6f 6e 3a 65 2c 64 61 74 61 3a 6f 7d 29 3b tion:e,data:o}); 0002e800: 63 6f 6e 73 74 20 6d 3d 7b 74 6f 3a 72 2c 64 61 const m={to:r,da 0002e810: 74 61 3a 4d 28 5b 70 2c 24 61 28 5b 68 2c 66 5d ta:M([p,$a([h,f] 0002e820: 29 5d 29 7d 3b 72 65 74 75 72 6e 20 74 68 69 73 )])};return this 0002e830: 2e 5f 63 61 6c 6c 28 6d 2c 74 2c 6e 2b 31 29 7d ._call(m,t,n+1)} 0002e840: 63 61 74 63 68 28 65 29 7b 69 66 28 65 2e 63 6f catch(e){if(e.co 0002e850: 64 65 3d 3d 3d 79 2e 65 72 72 6f 72 73 2e 53 45 de===y.errors.SE 0002e860: 52 56 45 52 5f 45 52 52 4f 52 29 74 68 72 6f 77 RVER_ERROR)throw 0002e870: 20 65 7d 74 72 79 7b 72 65 74 75 72 6e 20 52 28 e}try{return R( 0002e880: 6f 29 7d 63 61 74 63 68 28 6e 29 7b 72 65 74 75 o)}catch(n){retu 0002e890: 72 6e 20 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 rn Da.throwError 0002e8a0: 28 22 62 61 64 20 72 65 73 75 6c 74 20 66 72 6f ("bad result fro 0002e8b0: 6d 20 62 61 63 6b 65 6e 64 22 2c 79 2e 65 72 72 m backend",y.err 0002e8c0: 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 52 4f 52 ors.SERVER_ERROR 0002e8d0: 2c 7b 6d 65 74 68 6f 64 3a 22 63 61 6c 6c 22 2c ,{method:"call", 0002e8e0: 70 61 72 61 6d 73 3a 7b 74 72 61 6e 73 61 63 74 params:{transact 0002e8f0: 69 6f 6e 3a 65 2c 62 6c 6f 63 6b 54 61 67 3a 74 ion:e,blockTag:t 0002e900: 7d 2c 72 65 73 75 6c 74 3a 6f 2c 65 72 72 6f 72 },result:o,error 0002e910: 3a 6e 7d 29 7d 7d 29 29 7d 63 61 6c 6c 28 65 2c :n})}}))}call(e, 0002e920: 74 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 t){return Ma(thi 0002e930: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 0002e940: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 (function*(){yie 0002e950: 6c 64 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f ld this.getNetwo 0002e960: 72 6b 28 29 3b 63 6f 6e 73 74 20 6e 3d 79 69 65 rk();const n=yie 0002e970: 6c 64 20 72 65 28 7b 74 72 61 6e 73 61 63 74 69 ld re({transacti 0002e980: 6f 6e 3a 74 68 69 73 2e 5f 67 65 74 54 72 61 6e on:this._getTran 0002e990: 73 61 63 74 69 6f 6e 52 65 71 75 65 73 74 28 65 sactionRequest(e 0002e9a0: 29 2c 62 6c 6f 63 6b 54 61 67 3a 74 68 69 73 2e ),blockTag:this. 0002e9b0: 5f 67 65 74 42 6c 6f 63 6b 54 61 67 28 74 29 2c _getBlockTag(t), 0002e9c0: 63 63 69 70 52 65 61 64 45 6e 61 62 6c 65 64 3a ccipReadEnabled: 0002e9d0: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 0002e9e0: 65 2e 63 63 69 70 52 65 61 64 45 6e 61 62 6c 65 e.ccipReadEnable 0002e9f0: 64 29 7d 29 3b 72 65 74 75 72 6e 20 74 68 69 73 d)});return this 0002ea00: 2e 5f 63 61 6c 6c 28 6e 2e 74 72 61 6e 73 61 63 ._call(n.transac 0002ea10: 74 69 6f 6e 2c 6e 2e 62 6c 6f 63 6b 54 61 67 2c tion,n.blockTag, 0002ea20: 6e 2e 63 63 69 70 52 65 61 64 45 6e 61 62 6c 65 n.ccipReadEnable 0002ea30: 64 3f 30 3a 2d 31 29 7d 29 29 7d 65 73 74 69 6d d?0:-1)}))}estim 0002ea40: 61 74 65 47 61 73 28 65 29 7b 72 65 74 75 72 6e ateGas(e){return 0002ea50: 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c Ma(this,void 0, 0002ea60: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 0002ea70: 2a 28 29 7b 79 69 65 6c 64 20 74 68 69 73 2e 67 *(){yield this.g 0002ea80: 65 74 4e 65 74 77 6f 72 6b 28 29 3b 63 6f 6e 73 etNetwork();cons 0002ea90: 74 20 74 3d 79 69 65 6c 64 20 72 65 28 7b 74 72 t t=yield re({tr 0002eaa0: 61 6e 73 61 63 74 69 6f 6e 3a 74 68 69 73 2e 5f ansaction:this._ 0002eab0: 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 65 getTransactionRe 0002eac0: 71 75 65 73 74 28 65 29 7d 29 2c 6e 3d 79 69 65 quest(e)}),n=yie 0002ead0: 6c 64 20 74 68 69 73 2e 70 65 72 66 6f 72 6d 28 ld this.perform( 0002eae0: 22 65 73 74 69 6d 61 74 65 47 61 73 22 2c 74 29 "estimateGas",t) 0002eaf0: 3b 74 72 79 7b 72 65 74 75 72 6e 20 59 2e 66 72 ;try{return Y.fr 0002eb00: 6f 6d 28 6e 29 7d 63 61 74 63 68 28 65 29 7b 72 om(n)}catch(e){r 0002eb10: 65 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 45 72 eturn Da.throwEr 0002eb20: 72 6f 72 28 22 62 61 64 20 72 65 73 75 6c 74 20 ror("bad result 0002eb30: 66 72 6f 6d 20 62 61 63 6b 65 6e 64 22 2c 79 2e from backend",y. 0002eb40: 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 errors.SERVER_ER 0002eb50: 52 4f 52 2c 7b 6d 65 74 68 6f 64 3a 22 65 73 74 ROR,{method:"est 0002eb60: 69 6d 61 74 65 47 61 73 22 2c 70 61 72 61 6d 73 imateGas",params 0002eb70: 3a 74 2c 72 65 73 75 6c 74 3a 6e 2c 65 72 72 6f :t,result:n,erro 0002eb80: 72 3a 65 7d 29 7d 7d 29 29 7d 5f 67 65 74 41 64 r:e})}}))}_getAd 0002eb90: 64 72 65 73 73 28 65 29 7b 72 65 74 75 72 6e 20 dress(e){return 0002eba0: 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 Ma(this,void 0,v 0002ebb0: 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a oid 0,(function* 0002ebc0: 28 29 7b 22 73 74 72 69 6e 67 22 21 3d 74 79 70 (){"string"!=typ 0002ebd0: 65 6f 66 28 65 3d 79 69 65 6c 64 20 65 29 26 26 eof(e=yield e)&& 0002ebe0: 44 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Da.throwArgument 0002ebf0: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 61 Error("invalid a 0002ec00: 64 64 72 65 73 73 20 6f 72 20 45 4e 53 20 6e 61 ddress or ENS na 0002ec10: 6d 65 22 2c 22 6e 61 6d 65 22 2c 65 29 3b 63 6f me","name",e);co 0002ec20: 6e 73 74 20 74 3d 79 69 65 6c 64 20 74 68 69 73 nst t=yield this 0002ec30: 2e 72 65 73 6f 6c 76 65 4e 61 6d 65 28 65 29 3b .resolveName(e); 0002ec40: 72 65 74 75 72 6e 20 6e 75 6c 6c 3d 3d 74 26 26 return null==t&& 0002ec50: 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 45 Da.throwError("E 0002ec60: 4e 53 20 6e 61 6d 65 20 6e 6f 74 20 63 6f 6e 66 NS name not conf 0002ec70: 69 67 75 72 65 64 22 2c 79 2e 65 72 72 6f 72 73 igured",y.errors 0002ec80: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 0002ec90: 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f RATION,{operatio 0002eca0: 6e 3a 60 72 65 73 6f 6c 76 65 4e 61 6d 65 28 24 n:`resolveName($ 0002ecb0: 7b 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 {JSON.stringify( 0002ecc0: 65 29 7d 29 60 7d 29 2c 74 7d 29 29 7d 5f 67 65 e)})`}),t}))}_ge 0002ecd0: 74 42 6c 6f 63 6b 28 65 2c 74 29 7b 72 65 74 75 tBlock(e,t){retu 0002ece0: 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 rn Ma(this,void 0002ecf0: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 0002ed00: 6f 6e 2a 28 29 7b 79 69 65 6c 64 20 74 68 69 73 on*(){yield this 0002ed10: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 2c 65 3d .getNetwork(),e= 0002ed20: 79 69 65 6c 64 20 65 3b 6c 65 74 20 6e 3d 2d 31 yield e;let n=-1 0002ed30: 32 38 3b 63 6f 6e 73 74 20 72 3d 7b 69 6e 63 6c 28;const r={incl 0002ed40: 75 64 65 54 72 61 6e 73 61 63 74 69 6f 6e 73 3a udeTransactions: 0002ed50: 21 21 74 7d 3b 69 66 28 49 28 65 2c 33 32 29 29 !!t};if(I(e,32)) 0002ed60: 72 2e 62 6c 6f 63 6b 48 61 73 68 3d 65 3b 65 6c r.blockHash=e;el 0002ed70: 73 65 20 74 72 79 7b 72 2e 62 6c 6f 63 6b 54 61 se try{r.blockTa 0002ed80: 67 3d 79 69 65 6c 64 20 74 68 69 73 2e 5f 67 65 g=yield this._ge 0002ed90: 74 42 6c 6f 63 6b 54 61 67 28 65 29 2c 49 28 72 tBlockTag(e),I(r 0002eda0: 2e 62 6c 6f 63 6b 54 61 67 29 26 26 28 6e 3d 70 .blockTag)&&(n=p 0002edb0: 61 72 73 65 49 6e 74 28 72 2e 62 6c 6f 63 6b 54 arseInt(r.blockT 0002edc0: 61 67 2e 73 75 62 73 74 72 69 6e 67 28 32 29 2c ag.substring(2), 0002edd0: 31 36 29 29 7d 63 61 74 63 68 28 74 29 7b 44 61 16))}catch(t){Da 0002ede0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 0002edf0: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 62 6c 6f ror("invalid blo 0002ee00: 63 6b 20 68 61 73 68 20 6f 72 20 62 6c 6f 63 6b ck hash or block 0002ee10: 20 74 61 67 22 2c 22 62 6c 6f 63 6b 48 61 73 68 tag","blockHash 0002ee20: 4f 72 42 6c 6f 63 6b 54 61 67 22 2c 65 29 7d 72 OrBlockTag",e)}r 0002ee30: 65 74 75 72 6e 20 78 61 28 28 28 29 3d 3e 4d 61 eturn xa((()=>Ma 0002ee40: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 0002ee50: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 0002ee60: 7b 63 6f 6e 73 74 20 65 3d 79 69 65 6c 64 20 74 {const e=yield t 0002ee70: 68 69 73 2e 70 65 72 66 6f 72 6d 28 22 67 65 74 his.perform("get 0002ee80: 42 6c 6f 63 6b 22 2c 72 29 3b 69 66 28 6e 75 6c Block",r);if(nul 0002ee90: 6c 3d 3d 65 29 72 65 74 75 72 6e 20 6e 75 6c 6c l==e)return null 0002eea0: 21 3d 72 2e 62 6c 6f 63 6b 48 61 73 68 26 26 6e !=r.blockHash&&n 0002eeb0: 75 6c 6c 3d 3d 74 68 69 73 2e 5f 65 6d 69 74 74 ull==this._emitt 0002eec0: 65 64 5b 22 62 3a 22 2b 72 2e 62 6c 6f 63 6b 48 ed["b:"+r.blockH 0002eed0: 61 73 68 5d 7c 7c 6e 75 6c 6c 21 3d 72 2e 62 6c ash]||null!=r.bl 0002eee0: 6f 63 6b 54 61 67 26 26 6e 3e 74 68 69 73 2e 5f ockTag&&n>this._ 0002eef0: 65 6d 69 74 74 65 64 2e 62 6c 6f 63 6b 3f 6e 75 emitted.block?nu 0002ef00: 6c 6c 3a 76 6f 69 64 20 30 3b 69 66 28 74 29 7b ll:void 0;if(t){ 0002ef10: 6c 65 74 20 74 3d 6e 75 6c 6c 3b 66 6f 72 28 6c let t=null;for(l 0002ef20: 65 74 20 6e 3d 30 3b 6e 3c 65 2e 74 72 61 6e 73 et n=0;n<e.trans 0002ef30: 61 63 74 69 6f 6e 73 2e 6c 65 6e 67 74 68 3b 6e actions.length;n 0002ef40: 2b 2b 29 7b 63 6f 6e 73 74 20 72 3d 65 2e 74 72 ++){const r=e.tr 0002ef50: 61 6e 73 61 63 74 69 6f 6e 73 5b 6e 5d 3b 69 66 ansactions[n];if 0002ef60: 28 6e 75 6c 6c 3d 3d 72 2e 62 6c 6f 63 6b 4e 75 (null==r.blockNu 0002ef70: 6d 62 65 72 29 72 2e 63 6f 6e 66 69 72 6d 61 74 mber)r.confirmat 0002ef80: 69 6f 6e 73 3d 30 3b 65 6c 73 65 20 69 66 28 6e ions=0;else if(n 0002ef90: 75 6c 6c 3d 3d 72 2e 63 6f 6e 66 69 72 6d 61 74 ull==r.confirmat 0002efa0: 69 6f 6e 73 29 7b 6e 75 6c 6c 3d 3d 74 26 26 28 ions){null==t&&( 0002efb0: 74 3d 79 69 65 6c 64 20 74 68 69 73 2e 5f 67 65 t=yield this._ge 0002efc0: 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 tInternalBlockNu 0002efd0: 6d 62 65 72 28 31 30 30 2b 32 2a 74 68 69 73 2e mber(100+2*this. 0002efe0: 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 6c 29 pollingInterval) 0002eff0: 29 3b 6c 65 74 20 65 3d 74 2d 72 2e 62 6c 6f 63 );let e=t-r.bloc 0002f000: 6b 4e 75 6d 62 65 72 2b 31 3b 65 3c 3d 30 26 26 kNumber+1;e<=0&& 0002f010: 28 65 3d 31 29 2c 72 2e 63 6f 6e 66 69 72 6d 61 (e=1),r.confirma 0002f020: 74 69 6f 6e 73 3d 65 7d 7d 63 6f 6e 73 74 20 6e tions=e}}const n 0002f030: 3d 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e =this.formatter. 0002f040: 62 6c 6f 63 6b 57 69 74 68 54 72 61 6e 73 61 63 blockWithTransac 0002f050: 74 69 6f 6e 73 28 65 29 3b 72 65 74 75 72 6e 20 tions(e);return 0002f060: 6e 2e 74 72 61 6e 73 61 63 74 69 6f 6e 73 3d 6e n.transactions=n 0002f070: 2e 74 72 61 6e 73 61 63 74 69 6f 6e 73 2e 6d 61 .transactions.ma 0002f080: 70 28 28 65 3d 3e 74 68 69 73 2e 5f 77 72 61 70 p((e=>this._wrap 0002f090: 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 29 29 Transaction(e))) 0002f0a0: 2c 6e 7d 72 65 74 75 72 6e 20 74 68 69 73 2e 66 ,n}return this.f 0002f0b0: 6f 72 6d 61 74 74 65 72 2e 62 6c 6f 63 6b 28 65 ormatter.block(e 0002f0c0: 29 7d 29 29 29 2c 7b 6f 6e 63 65 50 6f 6c 6c 3a )}))),{oncePoll: 0002f0d0: 74 68 69 73 7d 29 7d 29 29 7d 67 65 74 42 6c 6f this})}))}getBlo 0002f0e0: 63 6b 28 65 29 7b 72 65 74 75 72 6e 20 74 68 69 ck(e){return thi 0002f0f0: 73 2e 5f 67 65 74 42 6c 6f 63 6b 28 65 2c 21 31 s._getBlock(e,!1 0002f100: 29 7d 67 65 74 42 6c 6f 63 6b 57 69 74 68 54 72 )}getBlockWithTr 0002f110: 61 6e 73 61 63 74 69 6f 6e 73 28 65 29 7b 72 65 ansactions(e){re 0002f120: 74 75 72 6e 20 74 68 69 73 2e 5f 67 65 74 42 6c turn this._getBl 0002f130: 6f 63 6b 28 65 2c 21 30 29 7d 67 65 74 54 72 61 ock(e,!0)}getTra 0002f140: 6e 73 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 nsaction(e){retu 0002f150: 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 rn Ma(this,void 0002f160: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 0002f170: 6f 6e 2a 28 29 7b 79 69 65 6c 64 20 74 68 69 73 on*(){yield this 0002f180: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 2c 65 3d .getNetwork(),e= 0002f190: 79 69 65 6c 64 20 65 3b 63 6f 6e 73 74 20 74 3d yield e;const t= 0002f1a0: 7b 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 68 {transactionHash 0002f1b0: 3a 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e :this.formatter. 0002f1c0: 68 61 73 68 28 65 2c 21 30 29 7d 3b 72 65 74 75 hash(e,!0)};retu 0002f1d0: 72 6e 20 78 61 28 28 28 29 3d 3e 4d 61 28 74 68 rn xa((()=>Ma(th 0002f1e0: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 0002f1f0: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f ,(function*(){co 0002f200: 6e 73 74 20 6e 3d 79 69 65 6c 64 20 74 68 69 73 nst n=yield this 0002f210: 2e 70 65 72 66 6f 72 6d 28 22 67 65 74 54 72 61 .perform("getTra 0002f220: 6e 73 61 63 74 69 6f 6e 22 2c 74 29 3b 69 66 28 nsaction",t);if( 0002f230: 6e 75 6c 6c 3d 3d 6e 29 72 65 74 75 72 6e 20 6e null==n)return n 0002f240: 75 6c 6c 3d 3d 74 68 69 73 2e 5f 65 6d 69 74 74 ull==this._emitt 0002f250: 65 64 5b 22 74 3a 22 2b 65 5d 3f 6e 75 6c 6c 3a ed["t:"+e]?null: 0002f260: 76 6f 69 64 20 30 3b 63 6f 6e 73 74 20 72 3d 74 void 0;const r=t 0002f270: 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e 74 72 his.formatter.tr 0002f280: 61 6e 73 61 63 74 69 6f 6e 52 65 73 70 6f 6e 73 ansactionRespons 0002f290: 65 28 6e 29 3b 69 66 28 6e 75 6c 6c 3d 3d 72 2e e(n);if(null==r. 0002f2a0: 62 6c 6f 63 6b 4e 75 6d 62 65 72 29 72 2e 63 6f blockNumber)r.co 0002f2b0: 6e 66 69 72 6d 61 74 69 6f 6e 73 3d 30 3b 65 6c nfirmations=0;el 0002f2c0: 73 65 20 69 66 28 6e 75 6c 6c 3d 3d 72 2e 63 6f se if(null==r.co 0002f2d0: 6e 66 69 72 6d 61 74 69 6f 6e 73 29 7b 6c 65 74 nfirmations){let 0002f2e0: 20 65 3d 28 79 69 65 6c 64 20 74 68 69 73 2e 5f e=(yield this._ 0002f2f0: 67 65 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b getInternalBlock 0002f300: 4e 75 6d 62 65 72 28 31 30 30 2b 32 2a 74 68 69 Number(100+2*thi 0002f310: 73 2e 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 s.pollingInterva 0002f320: 6c 29 29 2d 72 2e 62 6c 6f 63 6b 4e 75 6d 62 65 l))-r.blockNumbe 0002f330: 72 2b 31 3b 65 3c 3d 30 26 26 28 65 3d 31 29 2c r+1;e<=0&&(e=1), 0002f340: 72 2e 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 3d r.confirmations= 0002f350: 65 7d 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 77 e}return this._w 0002f360: 72 61 70 54 72 61 6e 73 61 63 74 69 6f 6e 28 72 rapTransaction(r 0002f370: 29 7d 29 29 29 2c 7b 6f 6e 63 65 50 6f 6c 6c 3a )}))),{oncePoll: 0002f380: 74 68 69 73 7d 29 7d 29 29 7d 67 65 74 54 72 61 this})}))}getTra 0002f390: 6e 73 61 63 74 69 6f 6e 52 65 63 65 69 70 74 28 nsactionReceipt( 0002f3a0: 65 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 e){return Ma(thi 0002f3b0: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 0002f3c0: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 (function*(){yie 0002f3d0: 6c 64 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f ld this.getNetwo 0002f3e0: 72 6b 28 29 2c 65 3d 79 69 65 6c 64 20 65 3b 63 rk(),e=yield e;c 0002f3f0: 6f 6e 73 74 20 74 3d 7b 74 72 61 6e 73 61 63 74 onst t={transact 0002f400: 69 6f 6e 48 61 73 68 3a 74 68 69 73 2e 66 6f 72 ionHash:this.for 0002f410: 6d 61 74 74 65 72 2e 68 61 73 68 28 65 2c 21 30 matter.hash(e,!0 0002f420: 29 7d 3b 72 65 74 75 72 6e 20 78 61 28 28 28 29 )};return xa((() 0002f430: 3d 3e 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 =>Ma(this,void 0 0002f440: 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f ,void 0,(functio 0002f450: 6e 2a 28 29 7b 63 6f 6e 73 74 20 6e 3d 79 69 65 n*(){const n=yie 0002f460: 6c 64 20 74 68 69 73 2e 70 65 72 66 6f 72 6d 28 ld this.perform( 0002f470: 22 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 "getTransactionR 0002f480: 65 63 65 69 70 74 22 2c 74 29 3b 69 66 28 6e 75 eceipt",t);if(nu 0002f490: 6c 6c 3d 3d 6e 29 72 65 74 75 72 6e 20 6e 75 6c ll==n)return nul 0002f4a0: 6c 3d 3d 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 l==this._emitted 0002f4b0: 5b 22 74 3a 22 2b 65 5d 3f 6e 75 6c 6c 3a 76 6f ["t:"+e]?null:vo 0002f4c0: 69 64 20 30 3b 69 66 28 6e 75 6c 6c 3d 3d 6e 2e id 0;if(null==n. 0002f4d0: 62 6c 6f 63 6b 48 61 73 68 29 72 65 74 75 72 6e blockHash)return 0002f4e0: 3b 63 6f 6e 73 74 20 72 3d 74 68 69 73 2e 66 6f ;const r=this.fo 0002f4f0: 72 6d 61 74 74 65 72 2e 72 65 63 65 69 70 74 28 rmatter.receipt( 0002f500: 6e 29 3b 69 66 28 6e 75 6c 6c 3d 3d 72 2e 62 6c n);if(null==r.bl 0002f510: 6f 63 6b 4e 75 6d 62 65 72 29 72 2e 63 6f 6e 66 ockNumber)r.conf 0002f520: 69 72 6d 61 74 69 6f 6e 73 3d 30 3b 65 6c 73 65 irmations=0;else 0002f530: 20 69 66 28 6e 75 6c 6c 3d 3d 72 2e 63 6f 6e 66 if(null==r.conf 0002f540: 69 72 6d 61 74 69 6f 6e 73 29 7b 6c 65 74 20 65 irmations){let e 0002f550: 3d 28 79 69 65 6c 64 20 74 68 69 73 2e 5f 67 65 =(yield this._ge 0002f560: 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 tInternalBlockNu 0002f570: 6d 62 65 72 28 31 30 30 2b 32 2a 74 68 69 73 2e mber(100+2*this. 0002f580: 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 6c 29 pollingInterval) 0002f590: 29 2d 72 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 2b )-r.blockNumber+ 0002f5a0: 31 3b 65 3c 3d 30 26 26 28 65 3d 31 29 2c 72 2e 1;e<=0&&(e=1),r. 0002f5b0: 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 3d 65 7d confirmations=e} 0002f5c0: 72 65 74 75 72 6e 20 72 7d 29 29 29 2c 7b 6f 6e return r}))),{on 0002f5d0: 63 65 50 6f 6c 6c 3a 74 68 69 73 7d 29 7d 29 29 cePoll:this})})) 0002f5e0: 7d 67 65 74 4c 6f 67 73 28 65 29 7b 72 65 74 75 }getLogs(e){retu 0002f5f0: 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 rn Ma(this,void 0002f600: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 0002f610: 6f 6e 2a 28 29 7b 79 69 65 6c 64 20 74 68 69 73 on*(){yield this 0002f620: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 3b 63 6f .getNetwork();co 0002f630: 6e 73 74 20 74 3d 79 69 65 6c 64 20 72 65 28 7b nst t=yield re({ 0002f640: 66 69 6c 74 65 72 3a 74 68 69 73 2e 5f 67 65 74 filter:this._get 0002f650: 46 69 6c 74 65 72 28 65 29 7d 29 2c 6e 3d 79 69 Filter(e)}),n=yi 0002f660: 65 6c 64 20 74 68 69 73 2e 70 65 72 66 6f 72 6d eld this.perform 0002f670: 28 22 67 65 74 4c 6f 67 73 22 2c 74 29 3b 72 65 ("getLogs",t);re 0002f680: 74 75 72 6e 20 6e 2e 66 6f 72 45 61 63 68 28 28 turn n.forEach(( 0002f690: 65 3d 3e 7b 6e 75 6c 6c 3d 3d 65 2e 72 65 6d 6f e=>{null==e.remo 0002f6a0: 76 65 64 26 26 28 65 2e 72 65 6d 6f 76 65 64 3d ved&&(e.removed= 0002f6b0: 21 31 29 7d 29 29 2c 49 61 2e 61 72 72 61 79 4f !1)})),Ia.arrayO 0002f6c0: 66 28 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 f(this.formatter 0002f6d0: 2e 66 69 6c 74 65 72 4c 6f 67 2e 62 69 6e 64 28 .filterLog.bind( 0002f6e0: 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 29 29 this.formatter)) 0002f6f0: 28 6e 29 7d 29 29 7d 67 65 74 45 74 68 65 72 50 (n)}))}getEtherP 0002f700: 72 69 63 65 28 29 7b 72 65 74 75 72 6e 20 4d 61 rice(){return Ma 0002f710: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 0002f720: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 0002f730: 7b 72 65 74 75 72 6e 20 79 69 65 6c 64 20 74 68 {return yield th 0002f740: 69 73 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 2c is.getNetwork(), 0002f750: 74 68 69 73 2e 70 65 72 66 6f 72 6d 28 22 67 65 this.perform("ge 0002f760: 74 45 74 68 65 72 50 72 69 63 65 22 2c 7b 7d 29 tEtherPrice",{}) 0002f770: 7d 29 29 7d 5f 67 65 74 42 6c 6f 63 6b 54 61 67 }))}_getBlockTag 0002f780: 28 65 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 (e){return Ma(th 0002f790: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 0002f7a0: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 69 66 ,(function*(){if 0002f7b0: 28 22 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f ("number"==typeo 0002f7c0: 66 28 65 3d 79 69 65 6c 64 20 65 29 26 26 65 3c f(e=yield e)&&e< 0002f7d0: 30 29 7b 65 25 31 26 26 44 61 2e 74 68 72 6f 77 0){e%1&&Da.throw 0002f7e0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 0002f7f0: 6e 76 61 6c 69 64 20 42 6c 6f 63 6b 54 61 67 22 nvalid BlockTag" 0002f800: 2c 22 62 6c 6f 63 6b 54 61 67 22 2c 65 29 3b 6c ,"blockTag",e);l 0002f810: 65 74 20 74 3d 79 69 65 6c 64 20 74 68 69 73 2e et t=yield this. 0002f820: 5f 67 65 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 _getInternalBloc 0002f830: 6b 4e 75 6d 62 65 72 28 31 30 30 2b 32 2a 74 68 kNumber(100+2*th 0002f840: 69 73 2e 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 is.pollingInterv 0002f850: 61 6c 29 3b 72 65 74 75 72 6e 20 74 2b 3d 65 2c al);return t+=e, 0002f860: 74 3c 30 26 26 28 74 3d 30 29 2c 74 68 69 73 2e t<0&&(t=0),this. 0002f870: 66 6f 72 6d 61 74 74 65 72 2e 62 6c 6f 63 6b 54 formatter.blockT 0002f880: 61 67 28 74 29 7d 72 65 74 75 72 6e 20 74 68 69 ag(t)}return thi 0002f890: 73 2e 66 6f 72 6d 61 74 74 65 72 2e 62 6c 6f 63 s.formatter.bloc 0002f8a0: 6b 54 61 67 28 65 29 7d 29 29 7d 67 65 74 52 65 kTag(e)}))}getRe 0002f8b0: 73 6f 6c 76 65 72 28 65 29 7b 72 65 74 75 72 6e solver(e){return 0002f8c0: 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c Ma(this,void 0, 0002f8d0: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 0002f8e0: 2a 28 29 7b 6c 65 74 20 74 3d 65 3b 66 6f 72 28 *(){let t=e;for( 0002f8f0: 3b 3b 29 7b 69 66 28 22 22 3d 3d 3d 74 7c 7c 22 ;;){if(""===t||" 0002f900: 2e 22 3d 3d 3d 74 29 72 65 74 75 72 6e 20 6e 75 ."===t)return nu 0002f910: 6c 6c 3b 69 66 28 22 65 74 68 22 21 3d 3d 65 26 ll;if("eth"!==e& 0002f920: 26 22 65 74 68 22 3d 3d 3d 74 29 72 65 74 75 72 &"eth"===t)retur 0002f930: 6e 20 6e 75 6c 6c 3b 63 6f 6e 73 74 20 6e 3d 79 n null;const n=y 0002f940: 69 65 6c 64 20 74 68 69 73 2e 5f 67 65 74 52 65 ield this._getRe 0002f950: 73 6f 6c 76 65 72 28 74 2c 22 67 65 74 52 65 73 solver(t,"getRes 0002f960: 6f 6c 76 65 72 22 29 3b 69 66 28 6e 75 6c 6c 21 olver");if(null! 0002f970: 3d 6e 29 7b 63 6f 6e 73 74 20 72 3d 6e 65 77 20 =n){const r=new 0002f980: 65 73 28 74 68 69 73 2c 6e 2c 65 29 3b 72 65 74 es(this,n,e);ret 0002f990: 75 72 6e 20 74 3d 3d 3d 65 7c 7c 28 79 69 65 6c urn t===e||(yiel 0002f9a0: 64 20 72 2e 73 75 70 70 6f 72 74 73 57 69 6c 64 d r.supportsWild 0002f9b0: 63 61 72 64 28 29 29 3f 72 3a 6e 75 6c 6c 7d 74 card())?r:null}t 0002f9c0: 3d 74 2e 73 70 6c 69 74 28 22 2e 22 29 2e 73 6c =t.split(".").sl 0002f9d0: 69 63 65 28 31 29 2e 6a 6f 69 6e 28 22 2e 22 29 ice(1).join(".") 0002f9e0: 7d 7d 29 29 7d 5f 67 65 74 52 65 73 6f 6c 76 65 }}))}_getResolve 0002f9f0: 72 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 4d 61 r(e,t){return Ma 0002fa00: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 0002fa10: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 0002fa20: 7b 6e 75 6c 6c 3d 3d 74 26 26 28 74 3d 22 45 4e {null==t&&(t="EN 0002fa30: 53 22 29 3b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c S");const n=yiel 0002fa40: 64 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f 72 d this.getNetwor 0002fa50: 6b 28 29 3b 6e 2e 65 6e 73 41 64 64 72 65 73 73 k();n.ensAddress 0002fa60: 7c 7c 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 ||Da.throwError( 0002fa70: 22 6e 65 74 77 6f 72 6b 20 64 6f 65 73 20 6e 6f "network does no 0002fa80: 74 20 73 75 70 70 6f 72 74 20 45 4e 53 22 2c 79 t support ENS",y 0002fa90: 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 .errors.UNSUPPOR 0002faa0: 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f TED_OPERATION,{o 0002fab0: 70 65 72 61 74 69 6f 6e 3a 74 2c 6e 65 74 77 6f peration:t,netwo 0002fac0: 72 6b 3a 6e 2e 6e 61 6d 65 7d 29 3b 74 72 79 7b rk:n.name});try{ 0002fad0: 63 6f 6e 73 74 20 74 3d 79 69 65 6c 64 20 74 68 const t=yield th 0002fae0: 69 73 2e 63 61 6c 6c 28 7b 74 6f 3a 6e 2e 65 6e is.call({to:n.en 0002faf0: 73 41 64 64 72 65 73 73 2c 64 61 74 61 3a 22 30 sAddress,data:"0 0002fb00: 78 30 31 37 38 62 38 62 66 22 2b 68 61 28 65 29 x0178b8bf"+ha(e) 0002fb10: 2e 73 75 62 73 74 72 69 6e 67 28 32 29 7d 29 3b .substring(2)}); 0002fb20: 72 65 74 75 72 6e 20 74 68 69 73 2e 66 6f 72 6d return this.form 0002fb30: 61 74 74 65 72 2e 63 61 6c 6c 41 64 64 72 65 73 atter.callAddres 0002fb40: 73 28 74 29 7d 63 61 74 63 68 28 65 29 7b 7d 72 s(t)}catch(e){}r 0002fb50: 65 74 75 72 6e 20 6e 75 6c 6c 7d 29 29 7d 72 65 eturn null}))}re 0002fb60: 73 6f 6c 76 65 4e 61 6d 65 28 65 29 7b 72 65 74 solveName(e){ret 0002fb70: 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 urn Ma(this,void 0002fb80: 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 0,void 0,(funct 0002fb90: 69 6f 6e 2a 28 29 7b 65 3d 79 69 65 6c 64 20 65 ion*(){e=yield e 0002fba0: 3b 74 72 79 7b 72 65 74 75 72 6e 20 50 72 6f 6d ;try{return Prom 0002fbb0: 69 73 65 2e 72 65 73 6f 6c 76 65 28 74 68 69 73 ise.resolve(this 0002fbc0: 2e 66 6f 72 6d 61 74 74 65 72 2e 61 64 64 72 65 .formatter.addre 0002fbd0: 73 73 28 65 29 29 7d 63 61 74 63 68 28 74 29 7b ss(e))}catch(t){ 0002fbe0: 69 66 28 49 28 65 29 29 74 68 72 6f 77 20 74 7d if(I(e))throw t} 0002fbf0: 22 73 74 72 69 6e 67 22 21 3d 74 79 70 65 6f 66 "string"!=typeof 0002fc00: 20 65 26 26 44 61 2e 74 68 72 6f 77 41 72 67 75 e&&Da.throwArgu 0002fc10: 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c mentError("inval 0002fc20: 69 64 20 45 4e 53 20 6e 61 6d 65 22 2c 22 6e 61 id ENS name","na 0002fc30: 6d 65 22 2c 65 29 3b 63 6f 6e 73 74 20 74 3d 79 me",e);const t=y 0002fc40: 69 65 6c 64 20 74 68 69 73 2e 67 65 74 52 65 73 ield this.getRes 0002fc50: 6f 6c 76 65 72 28 65 29 3b 72 65 74 75 72 6e 20 olver(e);return 0002fc60: 74 3f 79 69 65 6c 64 20 74 2e 67 65 74 41 64 64 t?yield t.getAdd 0002fc70: 72 65 73 73 28 29 3a 6e 75 6c 6c 7d 29 29 7d 6c ress():null}))}l 0002fc80: 6f 6f 6b 75 70 41 64 64 72 65 73 73 28 65 29 7b ookupAddress(e){ 0002fc90: 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 return Ma(this,v 0002fca0: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 0002fcb0: 6e 63 74 69 6f 6e 2a 28 29 7b 65 3d 79 69 65 6c nction*(){e=yiel 0002fcc0: 64 20 65 3b 63 6f 6e 73 74 20 74 3d 28 65 3d 74 d e;const t=(e=t 0002fcd0: 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e 61 64 his.formatter.ad 0002fce0: 64 72 65 73 73 28 65 29 29 2e 73 75 62 73 74 72 dress(e)).substr 0002fcf0: 69 6e 67 28 32 29 2e 74 6f 4c 6f 77 65 72 43 61 ing(2).toLowerCa 0002fd00: 73 65 28 29 2b 22 2e 61 64 64 72 2e 72 65 76 65 se()+".addr.reve 0002fd10: 72 73 65 22 2c 6e 3d 79 69 65 6c 64 20 74 68 69 rse",n=yield thi 0002fd20: 73 2e 5f 67 65 74 52 65 73 6f 6c 76 65 72 28 74 s._getResolver(t 0002fd30: 2c 22 6c 6f 6f 6b 75 70 41 64 64 72 65 73 73 22 ,"lookupAddress" 0002fd40: 29 3b 69 66 28 6e 75 6c 6c 3d 3d 6e 29 72 65 74 );if(null==n)ret 0002fd50: 75 72 6e 20 6e 75 6c 6c 3b 63 6f 6e 73 74 20 72 urn null;const r 0002fd60: 3d 59 61 28 79 69 65 6c 64 20 74 68 69 73 2e 63 =Ya(yield this.c 0002fd70: 61 6c 6c 28 7b 74 6f 3a 6e 2c 64 61 74 61 3a 22 all({to:n,data:" 0002fd80: 30 78 36 39 31 66 33 34 33 31 22 2b 68 61 28 74 0x691f3431"+ha(t 0002fd90: 29 2e 73 75 62 73 74 72 69 6e 67 28 32 29 7d 29 ).substring(2)}) 0002fda0: 2c 30 29 3b 72 65 74 75 72 6e 28 79 69 65 6c 64 ,0);return(yield 0002fdb0: 20 74 68 69 73 2e 72 65 73 6f 6c 76 65 4e 61 6d this.resolveNam 0002fdc0: 65 28 72 29 29 21 3d 65 3f 6e 75 6c 6c 3a 72 7d e(r))!=e?null:r} 0002fdd0: 29 29 7d 67 65 74 41 76 61 74 61 72 28 65 29 7b ))}getAvatar(e){ 0002fde0: 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 return Ma(this,v 0002fdf0: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 0002fe00: 6e 63 74 69 6f 6e 2a 28 29 7b 6c 65 74 20 74 3d nction*(){let t= 0002fe10: 6e 75 6c 6c 3b 69 66 28 49 28 65 29 29 7b 63 6f null;if(I(e)){co 0002fe20: 6e 73 74 20 6e 3d 74 68 69 73 2e 66 6f 72 6d 61 nst n=this.forma 0002fe30: 74 74 65 72 2e 61 64 64 72 65 73 73 28 65 29 2e tter.address(e). 0002fe40: 73 75 62 73 74 72 69 6e 67 28 32 29 2e 74 6f 4c substring(2).toL 0002fe50: 6f 77 65 72 43 61 73 65 28 29 2b 22 2e 61 64 64 owerCase()+".add 0002fe60: 72 2e 72 65 76 65 72 73 65 22 2c 72 3d 79 69 65 r.reverse",r=yie 0002fe70: 6c 64 20 74 68 69 73 2e 5f 67 65 74 52 65 73 6f ld this._getReso 0002fe80: 6c 76 65 72 28 6e 2c 22 67 65 74 41 76 61 74 61 lver(n,"getAvata 0002fe90: 72 22 29 3b 69 66 28 21 72 29 72 65 74 75 72 6e r");if(!r)return 0002fea0: 20 6e 75 6c 6c 3b 74 3d 6e 65 77 20 65 73 28 74 null;t=new es(t 0002feb0: 68 69 73 2c 72 2c 6e 29 3b 74 72 79 7b 63 6f 6e his,r,n);try{con 0002fec0: 73 74 20 65 3d 79 69 65 6c 64 20 74 2e 67 65 74 st e=yield t.get 0002fed0: 41 76 61 74 61 72 28 29 3b 69 66 28 65 29 72 65 Avatar();if(e)re 0002fee0: 74 75 72 6e 20 65 2e 75 72 6c 7d 63 61 74 63 68 turn e.url}catch 0002fef0: 28 65 29 7b 69 66 28 65 2e 63 6f 64 65 21 3d 3d (e){if(e.code!== 0002ff00: 79 2e 65 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 y.errors.CALL_EX 0002ff10: 43 45 50 54 49 4f 4e 29 74 68 72 6f 77 20 65 7d CEPTION)throw e} 0002ff20: 74 72 79 7b 63 6f 6e 73 74 20 65 3d 59 61 28 79 try{const e=Ya(y 0002ff30: 69 65 6c 64 20 74 68 69 73 2e 63 61 6c 6c 28 7b ield this.call({ 0002ff40: 74 6f 3a 72 2c 64 61 74 61 3a 22 30 78 36 39 31 to:r,data:"0x691 0002ff50: 66 33 34 33 31 22 2b 68 61 28 6e 29 2e 73 75 62 f3431"+ha(n).sub 0002ff60: 73 74 72 69 6e 67 28 32 29 7d 29 2c 30 29 3b 74 string(2)}),0);t 0002ff70: 3d 79 69 65 6c 64 20 74 68 69 73 2e 67 65 74 52 =yield this.getR 0002ff80: 65 73 6f 6c 76 65 72 28 65 29 7d 63 61 74 63 68 esolver(e)}catch 0002ff90: 28 65 29 7b 69 66 28 65 2e 63 6f 64 65 21 3d 3d (e){if(e.code!== 0002ffa0: 79 2e 65 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 y.errors.CALL_EX 0002ffb0: 43 45 50 54 49 4f 4e 29 74 68 72 6f 77 20 65 3b CEPTION)throw e; 0002ffc0: 72 65 74 75 72 6e 20 6e 75 6c 6c 7d 7d 65 6c 73 return null}}els 0002ffd0: 65 20 69 66 28 74 3d 79 69 65 6c 64 20 74 68 69 e if(t=yield thi 0002ffe0: 73 2e 67 65 74 52 65 73 6f 6c 76 65 72 28 65 29 s.getResolver(e) 0002fff0: 2c 21 74 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b ,!t)return null; 00030000: 63 6f 6e 73 74 20 6e 3d 79 69 65 6c 64 20 74 2e const n=yield t. 00030010: 67 65 74 41 76 61 74 61 72 28 29 3b 72 65 74 75 getAvatar();retu 00030020: 72 6e 20 6e 75 6c 6c 3d 3d 6e 3f 6e 75 6c 6c 3a rn null==n?null: 00030030: 6e 2e 75 72 6c 7d 29 29 7d 70 65 72 66 6f 72 6d n.url}))}perform 00030040: 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 44 61 2e (e,t){return Da. 00030050: 74 68 72 6f 77 45 72 72 6f 72 28 65 2b 22 20 6e throwError(e+" n 00030060: 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 65 64 22 2c ot implemented", 00030070: 79 2e 65 72 72 6f 72 73 2e 4e 4f 54 5f 49 4d 50 y.errors.NOT_IMP 00030080: 4c 45 4d 45 4e 54 45 44 2c 7b 6f 70 65 72 61 74 LEMENTED,{operat 00030090: 69 6f 6e 3a 65 7d 29 7d 5f 73 74 61 72 74 45 76 ion:e})}_startEv 000300a0: 65 6e 74 28 65 29 7b 74 68 69 73 2e 70 6f 6c 6c ent(e){this.poll 000300b0: 69 6e 67 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 ing=this._events 000300c0: 2e 66 69 6c 74 65 72 28 28 65 3d 3e 65 2e 70 6f .filter((e=>e.po 000300d0: 6c 6c 61 62 6c 65 28 29 29 29 2e 6c 65 6e 67 74 llable())).lengt 000300e0: 68 3e 30 7d 5f 73 74 6f 70 45 76 65 6e 74 28 65 h>0}_stopEvent(e 000300f0: 29 7b 74 68 69 73 2e 70 6f 6c 6c 69 6e 67 3d 74 ){this.polling=t 00030100: 68 69 73 2e 5f 65 76 65 6e 74 73 2e 66 69 6c 74 his._events.filt 00030110: 65 72 28 28 65 3d 3e 65 2e 70 6f 6c 6c 61 62 6c er((e=>e.pollabl 00030120: 65 28 29 29 29 2e 6c 65 6e 67 74 68 3e 30 7d 5f e())).length>0}_ 00030130: 61 64 64 45 76 65 6e 74 4c 69 73 74 65 6e 65 72 addEventListener 00030140: 28 65 2c 74 2c 6e 29 7b 63 6f 6e 73 74 20 72 3d (e,t,n){const r= 00030150: 6e 65 77 20 47 61 28 55 61 28 65 29 2c 74 2c 6e new Ga(Ua(e),t,n 00030160: 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 65 );return this._e 00030170: 76 65 6e 74 73 2e 70 75 73 68 28 72 29 2c 74 68 vents.push(r),th 00030180: 69 73 2e 5f 73 74 61 72 74 45 76 65 6e 74 28 72 is._startEvent(r 00030190: 29 2c 74 68 69 73 7d 6f 6e 28 65 2c 74 29 7b 72 ),this}on(e,t){r 000301a0: 65 74 75 72 6e 20 74 68 69 73 2e 5f 61 64 64 45 eturn this._addE 000301b0: 76 65 6e 74 4c 69 73 74 65 6e 65 72 28 65 2c 74 ventListener(e,t 000301c0: 2c 21 31 29 7d 6f 6e 63 65 28 65 2c 74 29 7b 72 ,!1)}once(e,t){r 000301d0: 65 74 75 72 6e 20 74 68 69 73 2e 5f 61 64 64 45 eturn this._addE 000301e0: 76 65 6e 74 4c 69 73 74 65 6e 65 72 28 65 2c 74 ventListener(e,t 000301f0: 2c 21 30 29 7d 65 6d 69 74 28 65 2c 2e 2e 2e 74 ,!0)}emit(e,...t 00030200: 29 7b 6c 65 74 20 6e 3d 21 31 2c 72 3d 5b 5d 2c ){let n=!1,r=[], 00030210: 6f 3d 55 61 28 65 29 3b 72 65 74 75 72 6e 20 74 o=Ua(e);return t 00030220: 68 69 73 2e 5f 65 76 65 6e 74 73 3d 74 68 69 73 his._events=this 00030230: 2e 5f 65 76 65 6e 74 73 2e 66 69 6c 74 65 72 28 ._events.filter( 00030240: 28 65 3d 3e 65 2e 74 61 67 21 3d 3d 6f 7c 7c 28 (e=>e.tag!==o||( 00030250: 73 65 74 54 69 6d 65 6f 75 74 28 28 28 29 3d 3e setTimeout((()=> 00030260: 7b 65 2e 6c 69 73 74 65 6e 65 72 2e 61 70 70 6c {e.listener.appl 00030270: 79 28 74 68 69 73 2c 74 29 7d 29 2c 30 29 2c 6e y(this,t)}),0),n 00030280: 3d 21 30 2c 21 65 2e 6f 6e 63 65 7c 7c 28 72 2e =!0,!e.once||(r. 00030290: 70 75 73 68 28 65 29 2c 21 31 29 29 29 29 2c 72 push(e),!1)))),r 000302a0: 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 74 68 .forEach((e=>{th 000302b0: 69 73 2e 5f 73 74 6f 70 45 76 65 6e 74 28 65 29 is._stopEvent(e) 000302c0: 7d 29 29 2c 6e 7d 6c 69 73 74 65 6e 65 72 43 6f })),n}listenerCo 000302d0: 75 6e 74 28 65 29 7b 69 66 28 21 65 29 72 65 74 unt(e){if(!e)ret 000302e0: 75 72 6e 20 74 68 69 73 2e 5f 65 76 65 6e 74 73 urn this._events 000302f0: 2e 6c 65 6e 67 74 68 3b 6c 65 74 20 74 3d 55 61 .length;let t=Ua 00030300: 28 65 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e (e);return this. 00030310: 5f 65 76 65 6e 74 73 2e 66 69 6c 74 65 72 28 28 _events.filter(( 00030320: 65 3d 3e 65 2e 74 61 67 3d 3d 3d 74 29 29 2e 6c e=>e.tag===t)).l 00030330: 65 6e 67 74 68 7d 6c 69 73 74 65 6e 65 72 73 28 ength}listeners( 00030340: 65 29 7b 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 e){if(null==e)re 00030350: 74 75 72 6e 20 74 68 69 73 2e 5f 65 76 65 6e 74 turn this._event 00030360: 73 2e 6d 61 70 28 28 65 3d 3e 65 2e 6c 69 73 74 s.map((e=>e.list 00030370: 65 6e 65 72 29 29 3b 6c 65 74 20 74 3d 55 61 28 ener));let t=Ua( 00030380: 65 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f e);return this._ 00030390: 65 76 65 6e 74 73 2e 66 69 6c 74 65 72 28 28 65 events.filter((e 000303a0: 3d 3e 65 2e 74 61 67 3d 3d 3d 74 29 29 2e 6d 61 =>e.tag===t)).ma 000303b0: 70 28 28 65 3d 3e 65 2e 6c 69 73 74 65 6e 65 72 p((e=>e.listener 000303c0: 29 29 7d 6f 66 66 28 65 2c 74 29 7b 69 66 28 6e ))}off(e,t){if(n 000303d0: 75 6c 6c 3d 3d 74 29 72 65 74 75 72 6e 20 74 68 ull==t)return th 000303e0: 69 73 2e 72 65 6d 6f 76 65 41 6c 6c 4c 69 73 74 is.removeAllList 000303f0: 65 6e 65 72 73 28 65 29 3b 63 6f 6e 73 74 20 6e eners(e);const n 00030400: 3d 5b 5d 3b 6c 65 74 20 72 3d 21 31 2c 6f 3d 55 =[];let r=!1,o=U 00030410: 61 28 65 29 3b 72 65 74 75 72 6e 20 74 68 69 73 a(e);return this 00030420: 2e 5f 65 76 65 6e 74 73 3d 74 68 69 73 2e 5f 65 ._events=this._e 00030430: 76 65 6e 74 73 2e 66 69 6c 74 65 72 28 28 65 3d vents.filter((e= 00030440: 3e 65 2e 74 61 67 21 3d 3d 6f 7c 7c 65 2e 6c 69 >e.tag!==o||e.li 00030450: 73 74 65 6e 65 72 21 3d 74 7c 7c 28 21 21 72 7c stener!=t||(!!r| 00030460: 7c 28 72 3d 21 30 2c 6e 2e 70 75 73 68 28 65 29 |(r=!0,n.push(e) 00030470: 2c 21 31 29 29 29 29 2c 6e 2e 66 6f 72 45 61 63 ,!1)))),n.forEac 00030480: 68 28 28 65 3d 3e 7b 74 68 69 73 2e 5f 73 74 6f h((e=>{this._sto 00030490: 70 45 76 65 6e 74 28 65 29 7d 29 29 2c 74 68 69 pEvent(e)})),thi 000304a0: 73 7d 72 65 6d 6f 76 65 41 6c 6c 4c 69 73 74 65 s}removeAllListe 000304b0: 6e 65 72 73 28 65 29 7b 6c 65 74 20 74 3d 5b 5d ners(e){let t=[] 000304c0: 3b 69 66 28 6e 75 6c 6c 3d 3d 65 29 74 3d 74 68 ;if(null==e)t=th 000304d0: 69 73 2e 5f 65 76 65 6e 74 73 2c 74 68 69 73 2e is._events,this. 000304e0: 5f 65 76 65 6e 74 73 3d 5b 5d 3b 65 6c 73 65 7b _events=[];else{ 000304f0: 63 6f 6e 73 74 20 6e 3d 55 61 28 65 29 3b 74 68 const n=Ua(e);th 00030500: 69 73 2e 5f 65 76 65 6e 74 73 3d 74 68 69 73 2e is._events=this. 00030510: 5f 65 76 65 6e 74 73 2e 66 69 6c 74 65 72 28 28 _events.filter(( 00030520: 65 3d 3e 65 2e 74 61 67 21 3d 3d 6e 7c 7c 28 74 e=>e.tag!==n||(t 00030530: 2e 70 75 73 68 28 65 29 2c 21 31 29 29 29 7d 72 .push(e),!1)))}r 00030540: 65 74 75 72 6e 20 74 2e 66 6f 72 45 61 63 68 28 eturn t.forEach( 00030550: 28 65 3d 3e 7b 74 68 69 73 2e 5f 73 74 6f 70 45 (e=>{this._stopE 00030560: 76 65 6e 74 28 65 29 7d 29 29 2c 74 68 69 73 7d vent(e)})),this} 00030570: 7d 76 61 72 20 6f 73 3d 66 75 6e 63 74 69 6f 6e }var os=function 00030580: 28 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e (e,t,n,r){return 00030590: 20 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 new(n||(n=Promi 000305a0: 73 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f se))((function(o 000305b0: 2c 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 ,i){function a(e 000305c0: 29 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 ){try{l(r.next(e 000305d0: 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 ))}catch(e){i(e) 000305e0: 7d 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b }}function s(e){ 000305f0: 74 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 try{l(r.throw(e) 00030600: 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d )}catch(e){i(e)} 00030610: 7d 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 }function l(e){v 00030620: 61 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e ar t;e.done?o(e. 00030630: 76 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 value):(t=e.valu 00030640: 65 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e e,t instanceof n 00030650: 3f 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 ?t:new n((functi 00030660: 6f 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 on(e){e(t)}))).t 00030670: 68 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e hen(a,s)}l((r=r. 00030680: 61 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e apply(e,t||[])). 00030690: 6e 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 next())}))};cons 000306a0: 74 20 69 73 3d 6e 65 77 20 79 28 41 61 29 2c 61 t is=new y(Aa),a 000306b0: 73 3d 5b 22 63 61 6c 6c 22 2c 22 65 73 74 69 6d s=["call","estim 000306c0: 61 74 65 47 61 73 22 5d 3b 66 75 6e 63 74 69 6f ateGas"];functio 000306d0: 6e 20 73 73 28 65 2c 74 29 7b 69 66 28 6e 75 6c n ss(e,t){if(nul 000306e0: 6c 3d 3d 65 29 72 65 74 75 72 6e 20 6e 75 6c 6c l==e)return null 000306f0: 3b 69 66 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 ;if("string"==ty 00030700: 70 65 6f 66 20 65 2e 6d 65 73 73 61 67 65 26 26 peof e.message&& 00030710: 65 2e 6d 65 73 73 61 67 65 2e 6d 61 74 63 68 28 e.message.match( 00030720: 22 72 65 76 65 72 74 65 64 22 29 29 7b 63 6f 6e "reverted")){con 00030730: 73 74 20 6e 3d 49 28 65 2e 64 61 74 61 29 3f 65 st n=I(e.data)?e 00030740: 2e 64 61 74 61 3a 6e 75 6c 6c 3b 69 66 28 21 74 .data:null;if(!t 00030750: 7c 7c 6e 29 72 65 74 75 72 6e 7b 6d 65 73 73 61 ||n)return{messa 00030760: 67 65 3a 65 2e 6d 65 73 73 61 67 65 2c 64 61 74 ge:e.message,dat 00030770: 61 3a 6e 7d 7d 69 66 28 22 6f 62 6a 65 63 74 22 a:n}}if("object" 00030780: 3d 3d 74 79 70 65 6f 66 20 65 29 7b 66 6f 72 28 ==typeof e){for( 00030790: 63 6f 6e 73 74 20 6e 20 69 6e 20 65 29 7b 63 6f const n in e){co 000307a0: 6e 73 74 20 72 3d 73 73 28 65 5b 6e 5d 2c 74 29 nst r=ss(e[n],t) 000307b0: 3b 69 66 28 72 29 72 65 74 75 72 6e 20 72 7d 72 ;if(r)return r}r 000307c0: 65 74 75 72 6e 20 6e 75 6c 6c 7d 69 66 28 22 73 eturn null}if("s 000307d0: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 000307e0: 29 74 72 79 7b 72 65 74 75 72 6e 20 73 73 28 4a )try{return ss(J 000307f0: 53 4f 4e 2e 70 61 72 73 65 28 65 29 2c 74 29 7d SON.parse(e),t)} 00030800: 63 61 74 63 68 28 65 29 7b 7d 72 65 74 75 72 6e catch(e){}return 00030810: 20 6e 75 6c 6c 7d 66 75 6e 63 74 69 6f 6e 20 6c null}function l 00030820: 73 28 65 2c 74 2c 6e 29 7b 63 6f 6e 73 74 20 72 s(e,t,n){const r 00030830: 3d 6e 2e 74 72 61 6e 73 61 63 74 69 6f 6e 7c 7c =n.transaction|| 00030840: 6e 2e 73 69 67 6e 65 64 54 72 61 6e 73 61 63 74 n.signedTransact 00030850: 69 6f 6e 3b 69 66 28 22 63 61 6c 6c 22 3d 3d 3d ion;if("call"=== 00030860: 65 29 7b 63 6f 6e 73 74 20 65 3d 73 73 28 74 2c e){const e=ss(t, 00030870: 21 30 29 3b 69 66 28 65 29 72 65 74 75 72 6e 20 !0);if(e)return 00030880: 65 2e 64 61 74 61 3b 69 73 2e 74 68 72 6f 77 45 e.data;is.throwE 00030890: 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 20 72 65 rror("missing re 000308a0: 76 65 72 74 20 64 61 74 61 20 69 6e 20 63 61 6c vert data in cal 000308b0: 6c 20 65 78 63 65 70 74 69 6f 6e 3b 20 54 72 61 l exception; Tra 000308c0: 6e 73 61 63 74 69 6f 6e 20 72 65 76 65 72 74 65 nsaction reverte 000308d0: 64 20 77 69 74 68 6f 75 74 20 61 20 72 65 61 73 d without a reas 000308e0: 6f 6e 20 73 74 72 69 6e 67 22 2c 79 2e 65 72 72 on string",y.err 000308f0: 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 54 49 ors.CALL_EXCEPTI 00030900: 4f 4e 2c 7b 64 61 74 61 3a 22 30 78 22 2c 74 72 ON,{data:"0x",tr 00030910: 61 6e 73 61 63 74 69 6f 6e 3a 72 2c 65 72 72 6f ansaction:r,erro 00030920: 72 3a 74 7d 29 7d 69 66 28 22 65 73 74 69 6d 61 r:t})}if("estima 00030930: 74 65 47 61 73 22 3d 3d 3d 65 29 7b 6c 65 74 20 teGas"===e){let 00030940: 6e 3d 73 73 28 74 2e 62 6f 64 79 2c 21 31 29 3b n=ss(t.body,!1); 00030950: 6e 75 6c 6c 3d 3d 6e 26 26 28 6e 3d 73 73 28 74 null==n&&(n=ss(t 00030960: 2c 21 31 29 29 2c 6e 26 26 69 73 2e 74 68 72 6f ,!1)),n&&is.thro 00030970: 77 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 65 wError("cannot e 00030980: 73 74 69 6d 61 74 65 20 67 61 73 3b 20 74 72 61 stimate gas; tra 00030990: 6e 73 61 63 74 69 6f 6e 20 6d 61 79 20 66 61 69 nsaction may fai 000309a0: 6c 20 6f 72 20 6d 61 79 20 72 65 71 75 69 72 65 l or may require 000309b0: 20 6d 61 6e 75 61 6c 20 67 61 73 20 6c 69 6d 69 manual gas limi 000309c0: 74 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 50 52 t",y.errors.UNPR 000309d0: 45 44 49 43 54 41 42 4c 45 5f 47 41 53 5f 4c 49 EDICTABLE_GAS_LI 000309e0: 4d 49 54 2c 7b 72 65 61 73 6f 6e 3a 6e 2e 6d 65 MIT,{reason:n.me 000309f0: 73 73 61 67 65 2c 6d 65 74 68 6f 64 3a 65 2c 74 ssage,method:e,t 00030a00: 72 61 6e 73 61 63 74 69 6f 6e 3a 72 2c 65 72 72 ransaction:r,err 00030a10: 6f 72 3a 74 7d 29 7d 6c 65 74 20 6f 3d 74 2e 6d or:t})}let o=t.m 00030a20: 65 73 73 61 67 65 3b 74 68 72 6f 77 20 74 2e 63 essage;throw t.c 00030a30: 6f 64 65 3d 3d 3d 79 2e 65 72 72 6f 72 73 2e 53 ode===y.errors.S 00030a40: 45 52 56 45 52 5f 45 52 52 4f 52 26 26 74 2e 65 ERVER_ERROR&&t.e 00030a50: 72 72 6f 72 26 26 22 73 74 72 69 6e 67 22 3d 3d rror&&"string"== 00030a60: 74 79 70 65 6f 66 20 74 2e 65 72 72 6f 72 2e 6d typeof t.error.m 00030a70: 65 73 73 61 67 65 3f 6f 3d 74 2e 65 72 72 6f 72 essage?o=t.error 00030a80: 2e 6d 65 73 73 61 67 65 3a 22 73 74 72 69 6e 67 .message:"string 00030a90: 22 3d 3d 74 79 70 65 6f 66 20 74 2e 62 6f 64 79 "==typeof t.body 00030aa0: 3f 6f 3d 74 2e 62 6f 64 79 3a 22 73 74 72 69 6e ?o=t.body:"strin 00030ab0: 67 22 3d 3d 74 79 70 65 6f 66 20 74 2e 72 65 73 g"==typeof t.res 00030ac0: 70 6f 6e 73 65 54 65 78 74 26 26 28 6f 3d 74 2e ponseText&&(o=t. 00030ad0: 72 65 73 70 6f 6e 73 65 54 65 78 74 29 2c 6f 3d responseText),o= 00030ae0: 28 6f 7c 7c 22 22 29 2e 74 6f 4c 6f 77 65 72 43 (o||"").toLowerC 00030af0: 61 73 65 28 29 2c 6f 2e 6d 61 74 63 68 28 2f 69 ase(),o.match(/i 00030b00: 6e 73 75 66 66 69 63 69 65 6e 74 20 66 75 6e 64 nsufficient fund 00030b10: 73 7c 62 61 73 65 20 66 65 65 20 65 78 63 65 65 s|base fee excee 00030b20: 64 73 20 67 61 73 20 6c 69 6d 69 74 7c 49 6e 73 ds gas limit|Ins 00030b30: 75 66 66 69 63 69 65 6e 74 46 75 6e 64 73 2f 69 ufficientFunds/i 00030b40: 29 26 26 69 73 2e 74 68 72 6f 77 45 72 72 6f 72 )&&is.throwError 00030b50: 28 22 69 6e 73 75 66 66 69 63 69 65 6e 74 20 66 ("insufficient f 00030b60: 75 6e 64 73 20 66 6f 72 20 69 6e 74 72 69 6e 73 unds for intrins 00030b70: 69 63 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 63 ic transaction c 00030b80: 6f 73 74 22 2c 79 2e 65 72 72 6f 72 73 2e 49 4e ost",y.errors.IN 00030b90: 53 55 46 46 49 43 49 45 4e 54 5f 46 55 4e 44 53 SUFFICIENT_FUNDS 00030ba0: 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 68 6f 64 ,{error:t,method 00030bb0: 3a 65 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 72 :e,transaction:r 00030bc0: 7d 29 2c 6f 2e 6d 61 74 63 68 28 2f 6e 6f 6e 63 }),o.match(/nonc 00030bd0: 65 20 28 69 73 20 29 3f 74 6f 6f 20 6c 6f 77 2f e (is )?too low/ 00030be0: 69 29 26 26 69 73 2e 74 68 72 6f 77 45 72 72 6f i)&&is.throwErro 00030bf0: 72 28 22 6e 6f 6e 63 65 20 68 61 73 20 61 6c 72 r("nonce has alr 00030c00: 65 61 64 79 20 62 65 65 6e 20 75 73 65 64 22 2c eady been used", 00030c10: 79 2e 65 72 72 6f 72 73 2e 4e 4f 4e 43 45 5f 45 y.errors.NONCE_E 00030c20: 58 50 49 52 45 44 2c 7b 65 72 72 6f 72 3a 74 2c XPIRED,{error:t, 00030c30: 6d 65 74 68 6f 64 3a 65 2c 74 72 61 6e 73 61 63 method:e,transac 00030c40: 74 69 6f 6e 3a 72 7d 29 2c 6f 2e 6d 61 74 63 68 tion:r}),o.match 00030c50: 28 2f 72 65 70 6c 61 63 65 6d 65 6e 74 20 74 72 (/replacement tr 00030c60: 61 6e 73 61 63 74 69 6f 6e 20 75 6e 64 65 72 70 ansaction underp 00030c70: 72 69 63 65 64 7c 74 72 61 6e 73 61 63 74 69 6f riced|transactio 00030c80: 6e 20 67 61 73 20 70 72 69 63 65 2e 2a 74 6f 6f n gas price.*too 00030c90: 20 6c 6f 77 2f 69 29 26 26 69 73 2e 74 68 72 6f low/i)&&is.thro 00030ca0: 77 45 72 72 6f 72 28 22 72 65 70 6c 61 63 65 6d wError("replacem 00030cb0: 65 6e 74 20 66 65 65 20 74 6f 6f 20 6c 6f 77 22 ent fee too low" 00030cc0: 2c 79 2e 65 72 72 6f 72 73 2e 52 45 50 4c 41 43 ,y.errors.REPLAC 00030cd0: 45 4d 45 4e 54 5f 55 4e 44 45 52 50 52 49 43 45 EMENT_UNDERPRICE 00030ce0: 44 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 68 6f D,{error:t,metho 00030cf0: 64 3a 65 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a d:e,transaction: 00030d00: 72 7d 29 2c 6f 2e 6d 61 74 63 68 28 2f 6f 6e 6c r}),o.match(/onl 00030d10: 79 20 72 65 70 6c 61 79 2d 70 72 6f 74 65 63 74 y replay-protect 00030d20: 65 64 2f 69 29 26 26 69 73 2e 74 68 72 6f 77 45 ed/i)&&is.throwE 00030d30: 72 72 6f 72 28 22 6c 65 67 61 63 79 20 70 72 65 rror("legacy pre 00030d40: 2d 65 69 70 2d 31 35 35 20 74 72 61 6e 73 61 63 -eip-155 transac 00030d50: 74 69 6f 6e 73 20 6e 6f 74 20 73 75 70 70 6f 72 tions not suppor 00030d60: 74 65 64 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e ted",y.errors.UN 00030d70: 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 41 54 SUPPORTED_OPERAT 00030d80: 49 4f 4e 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 ION,{error:t,met 00030d90: 68 6f 64 3a 65 2c 74 72 61 6e 73 61 63 74 69 6f hod:e,transactio 00030da0: 6e 3a 72 7d 29 2c 61 73 2e 69 6e 64 65 78 4f 66 n:r}),as.indexOf 00030db0: 28 65 29 3e 3d 30 26 26 6f 2e 6d 61 74 63 68 28 (e)>=0&&o.match( 00030dc0: 2f 67 61 73 20 72 65 71 75 69 72 65 64 20 65 78 /gas required ex 00030dd0: 63 65 65 64 73 20 61 6c 6c 6f 77 61 6e 63 65 7c ceeds allowance| 00030de0: 61 6c 77 61 79 73 20 66 61 69 6c 69 6e 67 20 74 always failing t 00030df0: 72 61 6e 73 61 63 74 69 6f 6e 7c 65 78 65 63 75 ransaction|execu 00030e00: 74 69 6f 6e 20 72 65 76 65 72 74 65 64 7c 72 65 tion reverted|re 00030e10: 76 65 72 74 2f 29 26 26 69 73 2e 74 68 72 6f 77 vert/)&&is.throw 00030e20: 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 65 73 Error("cannot es 00030e30: 74 69 6d 61 74 65 20 67 61 73 3b 20 74 72 61 6e timate gas; tran 00030e40: 73 61 63 74 69 6f 6e 20 6d 61 79 20 66 61 69 6c saction may fail 00030e50: 20 6f 72 20 6d 61 79 20 72 65 71 75 69 72 65 20 or may require 00030e60: 6d 61 6e 75 61 6c 20 67 61 73 20 6c 69 6d 69 74 manual gas limit 00030e70: 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 50 52 45 ",y.errors.UNPRE 00030e80: 44 49 43 54 41 42 4c 45 5f 47 41 53 5f 4c 49 4d DICTABLE_GAS_LIM 00030e90: 49 54 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 68 IT,{error:t,meth 00030ea0: 6f 64 3a 65 2c 74 72 61 6e 73 61 63 74 69 6f 6e od:e,transaction 00030eb0: 3a 72 7d 29 2c 74 7d 66 75 6e 63 74 69 6f 6e 20 :r}),t}function 00030ec0: 63 73 28 65 29 7b 72 65 74 75 72 6e 20 6e 65 77 cs(e){return new 00030ed0: 20 50 72 6f 6d 69 73 65 28 28 66 75 6e 63 74 69 Promise((functi 00030ee0: 6f 6e 28 74 29 7b 73 65 74 54 69 6d 65 6f 75 74 on(t){setTimeout 00030ef0: 28 74 2c 65 29 7d 29 29 7d 66 75 6e 63 74 69 6f (t,e)}))}functio 00030f00: 6e 20 75 73 28 65 29 7b 69 66 28 65 2e 65 72 72 n us(e){if(e.err 00030f10: 6f 72 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 77 20 or){const t=new 00030f20: 45 72 72 6f 72 28 65 2e 65 72 72 6f 72 2e 6d 65 Error(e.error.me 00030f30: 73 73 61 67 65 29 3b 74 68 72 6f 77 20 74 2e 63 ssage);throw t.c 00030f40: 6f 64 65 3d 65 2e 65 72 72 6f 72 2e 63 6f 64 65 ode=e.error.code 00030f50: 2c 74 2e 64 61 74 61 3d 65 2e 65 72 72 6f 72 2e ,t.data=e.error. 00030f60: 64 61 74 61 2c 74 7d 72 65 74 75 72 6e 20 65 2e data,t}return e. 00030f70: 72 65 73 75 6c 74 7d 66 75 6e 63 74 69 6f 6e 20 result}function 00030f80: 64 73 28 65 29 7b 72 65 74 75 72 6e 20 65 3f 65 ds(e){return e?e 00030f90: 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 3a 65 .toLowerCase():e 00030fa0: 7d 63 6f 6e 73 74 20 70 73 3d 7b 7d 3b 63 6c 61 }const ps={};cla 00030fb0: 73 73 20 66 73 20 65 78 74 65 6e 64 73 20 64 6e ss fs extends dn 00030fc0: 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 {constructor(e,t 00030fd0: 2c 6e 29 7b 69 66 28 73 75 70 65 72 28 29 2c 65 ,n){if(super(),e 00030fe0: 21 3d 3d 70 73 29 74 68 72 6f 77 20 6e 65 77 20 !==ps)throw new 00030ff0: 45 72 72 6f 72 28 22 64 6f 20 6e 6f 74 20 63 61 Error("do not ca 00031000: 6c 6c 20 74 68 65 20 4a 73 6f 6e 52 70 63 53 69 ll the JsonRpcSi 00031010: 67 6e 65 72 20 63 6f 6e 73 74 72 75 63 74 6f 72 gner constructor 00031020: 20 64 69 72 65 63 74 6c 79 3b 20 75 73 65 20 70 directly; use p 00031030: 72 6f 76 69 64 65 72 2e 67 65 74 53 69 67 6e 65 rovider.getSigne 00031040: 72 22 29 3b 74 65 28 74 68 69 73 2c 22 70 72 6f r");te(this,"pro 00031050: 76 69 64 65 72 22 2c 74 29 2c 6e 75 6c 6c 3d 3d vider",t),null== 00031060: 6e 26 26 28 6e 3d 30 29 2c 22 73 74 72 69 6e 67 n&&(n=0),"string 00031070: 22 3d 3d 74 79 70 65 6f 66 20 6e 3f 28 74 65 28 "==typeof n?(te( 00031080: 74 68 69 73 2c 22 5f 61 64 64 72 65 73 73 22 2c this,"_address", 00031090: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 66 6f this.provider.fo 000310a0: 72 6d 61 74 74 65 72 2e 61 64 64 72 65 73 73 28 rmatter.address( 000310b0: 6e 29 29 2c 74 65 28 74 68 69 73 2c 22 5f 69 6e n)),te(this,"_in 000310c0: 64 65 78 22 2c 6e 75 6c 6c 29 29 3a 22 6e 75 6d dex",null)):"num 000310d0: 62 65 72 22 3d 3d 74 79 70 65 6f 66 20 6e 3f 28 ber"==typeof n?( 000310e0: 74 65 28 74 68 69 73 2c 22 5f 69 6e 64 65 78 22 te(this,"_index" 000310f0: 2c 6e 29 2c 74 65 28 74 68 69 73 2c 22 5f 61 64 ,n),te(this,"_ad 00031100: 64 72 65 73 73 22 2c 6e 75 6c 6c 29 29 3a 69 73 dress",null)):is 00031110: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00031120: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 61 64 64 ror("invalid add 00031130: 72 65 73 73 20 6f 72 20 69 6e 64 65 78 22 2c 22 ress or index"," 00031140: 61 64 64 72 65 73 73 4f 72 49 6e 64 65 78 22 2c addressOrIndex", 00031150: 6e 29 7d 63 6f 6e 6e 65 63 74 28 65 29 7b 72 65 n)}connect(e){re 00031160: 74 75 72 6e 20 69 73 2e 74 68 72 6f 77 45 72 72 turn is.throwErr 00031170: 6f 72 28 22 63 61 6e 6e 6f 74 20 61 6c 74 65 72 or("cannot alter 00031180: 20 4a 53 4f 4e 2d 52 50 43 20 53 69 67 6e 65 72 JSON-RPC Signer 00031190: 20 63 6f 6e 6e 65 63 74 69 6f 6e 22 2c 79 2e 65 connection",y.e 000311a0: 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 rrors.UNSUPPORTE 000311b0: 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 D_OPERATION,{ope 000311c0: 72 61 74 69 6f 6e 3a 22 63 6f 6e 6e 65 63 74 22 ration:"connect" 000311d0: 7d 29 7d 63 6f 6e 6e 65 63 74 55 6e 63 68 65 63 })}connectUnchec 000311e0: 6b 65 64 28 29 7b 72 65 74 75 72 6e 20 6e 65 77 ked(){return new 000311f0: 20 68 73 28 70 73 2c 74 68 69 73 2e 70 72 6f 76 hs(ps,this.prov 00031200: 69 64 65 72 2c 74 68 69 73 2e 5f 61 64 64 72 65 ider,this._addre 00031210: 73 73 7c 7c 74 68 69 73 2e 5f 69 6e 64 65 78 29 ss||this._index) 00031220: 7d 67 65 74 41 64 64 72 65 73 73 28 29 7b 72 65 }getAddress(){re 00031230: 74 75 72 6e 20 74 68 69 73 2e 5f 61 64 64 72 65 turn this._addre 00031240: 73 73 3f 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c ss?Promise.resol 00031250: 76 65 28 74 68 69 73 2e 5f 61 64 64 72 65 73 73 ve(this._address 00031260: 29 3a 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e ):this.provider. 00031270: 73 65 6e 64 28 22 65 74 68 5f 61 63 63 6f 75 6e send("eth_accoun 00031280: 74 73 22 2c 5b 5d 29 2e 74 68 65 6e 28 28 65 3d ts",[]).then((e= 00031290: 3e 28 65 2e 6c 65 6e 67 74 68 3c 3d 74 68 69 73 >(e.length<=this 000312a0: 2e 5f 69 6e 64 65 78 26 26 69 73 2e 74 68 72 6f ._index&&is.thro 000312b0: 77 45 72 72 6f 72 28 22 75 6e 6b 6e 6f 77 6e 20 wError("unknown 000312c0: 61 63 63 6f 75 6e 74 20 23 22 2b 74 68 69 73 2e account #"+this. 000312d0: 5f 69 6e 64 65 78 2c 79 2e 65 72 72 6f 72 73 2e _index,y.errors. 000312e0: 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 UNSUPPORTED_OPER 000312f0: 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e ATION,{operation 00031300: 3a 22 67 65 74 41 64 64 72 65 73 73 22 7d 29 2c :"getAddress"}), 00031310: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 66 6f this.provider.fo 00031320: 72 6d 61 74 74 65 72 2e 61 64 64 72 65 73 73 28 rmatter.address( 00031330: 65 5b 74 68 69 73 2e 5f 69 6e 64 65 78 5d 29 29 e[this._index])) 00031340: 29 29 7d 73 65 6e 64 55 6e 63 68 65 63 6b 65 64 ))}sendUnchecked 00031350: 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 7b 65 Transaction(e){e 00031360: 3d 69 65 28 65 29 3b 63 6f 6e 73 74 20 74 3d 74 =ie(e);const t=t 00031370: 68 69 73 2e 67 65 74 41 64 64 72 65 73 73 28 29 his.getAddress() 00031380: 2e 74 68 65 6e 28 28 65 3d 3e 28 65 26 26 28 65 .then((e=>(e&&(e 00031390: 3d 65 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 =e.toLowerCase() 000313a0: 29 2c 65 29 29 29 3b 69 66 28 6e 75 6c 6c 3d 3d ),e)));if(null== 000313b0: 65 2e 67 61 73 4c 69 6d 69 74 29 7b 63 6f 6e 73 e.gasLimit){cons 000313c0: 74 20 6e 3d 69 65 28 65 29 3b 6e 2e 66 72 6f 6d t n=ie(e);n.from 000313d0: 3d 74 2c 65 2e 67 61 73 4c 69 6d 69 74 3d 74 68 =t,e.gasLimit=th 000313e0: 69 73 2e 70 72 6f 76 69 64 65 72 2e 65 73 74 69 is.provider.esti 000313f0: 6d 61 74 65 47 61 73 28 6e 29 7d 72 65 74 75 72 mateGas(n)}retur 00031400: 6e 20 6e 75 6c 6c 21 3d 65 2e 74 6f 26 26 28 65 n null!=e.to&&(e 00031410: 2e 74 6f 3d 50 72 6f 6d 69 73 65 2e 72 65 73 6f .to=Promise.reso 00031420: 6c 76 65 28 65 2e 74 6f 29 2e 74 68 65 6e 28 28 lve(e.to).then(( 00031430: 65 3d 3e 6f 73 28 74 68 69 73 2c 76 6f 69 64 20 e=>os(this,void 00031440: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 00031450: 6f 6e 2a 28 29 7b 69 66 28 6e 75 6c 6c 3d 3d 65 on*(){if(null==e 00031460: 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f 6e )return null;con 00031470: 73 74 20 74 3d 79 69 65 6c 64 20 74 68 69 73 2e st t=yield this. 00031480: 70 72 6f 76 69 64 65 72 2e 72 65 73 6f 6c 76 65 provider.resolve 00031490: 4e 61 6d 65 28 65 29 3b 72 65 74 75 72 6e 20 6e Name(e);return n 000314a0: 75 6c 6c 3d 3d 74 26 26 69 73 2e 74 68 72 6f 77 ull==t&&is.throw 000314b0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 70 ArgumentError("p 000314c0: 72 6f 76 69 64 65 64 20 45 4e 53 20 6e 61 6d 65 rovided ENS name 000314d0: 20 72 65 73 6f 6c 76 65 73 20 74 6f 20 6e 75 6c resolves to nul 000314e0: 6c 22 2c 22 74 78 2e 74 6f 22 2c 65 29 2c 74 7d l","tx.to",e),t} 000314f0: 29 29 29 29 29 2c 72 65 28 7b 74 78 3a 72 65 28 ))))),re({tx:re( 00031500: 65 29 2c 73 65 6e 64 65 72 3a 74 7d 29 2e 74 68 e),sender:t}).th 00031510: 65 6e 28 28 28 7b 74 78 3a 74 2c 73 65 6e 64 65 en((({tx:t,sende 00031520: 72 3a 6e 7d 29 3d 3e 7b 6e 75 6c 6c 21 3d 74 2e r:n})=>{null!=t. 00031530: 66 72 6f 6d 3f 74 2e 66 72 6f 6d 2e 74 6f 4c 6f from?t.from.toLo 00031540: 77 65 72 43 61 73 65 28 29 21 3d 3d 6e 26 26 69 werCase()!==n&&i 00031550: 73 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 s.throwArgumentE 00031560: 72 72 6f 72 28 22 66 72 6f 6d 20 61 64 64 72 65 rror("from addre 00031570: 73 73 20 6d 69 73 6d 61 74 63 68 22 2c 22 74 72 ss mismatch","tr 00031580: 61 6e 73 61 63 74 69 6f 6e 22 2c 65 29 3a 74 2e ansaction",e):t. 00031590: 66 72 6f 6d 3d 6e 3b 63 6f 6e 73 74 20 72 3d 74 from=n;const r=t 000315a0: 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 63 6f 6e his.provider.con 000315b0: 73 74 72 75 63 74 6f 72 2e 68 65 78 6c 69 66 79 structor.hexlify 000315c0: 54 72 61 6e 73 61 63 74 69 6f 6e 28 74 2c 7b 66 Transaction(t,{f 000315d0: 72 6f 6d 3a 21 30 7d 29 3b 72 65 74 75 72 6e 20 rom:!0});return 000315e0: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 73 65 this.provider.se 000315f0: 6e 64 28 22 65 74 68 5f 73 65 6e 64 54 72 61 6e nd("eth_sendTran 00031600: 73 61 63 74 69 6f 6e 22 2c 5b 72 5d 29 2e 74 68 saction",[r]).th 00031610: 65 6e 28 28 65 3d 3e 65 29 2c 28 65 3d 3e 28 22 en((e=>e),(e=>(" 00031620: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 00031630: 65 2e 6d 65 73 73 61 67 65 26 26 65 2e 6d 65 73 e.message&&e.mes 00031640: 73 61 67 65 2e 6d 61 74 63 68 28 2f 75 73 65 72 sage.match(/user 00031650: 20 64 65 6e 69 65 64 2f 69 29 26 26 69 73 2e 74 denied/i)&&is.t 00031660: 68 72 6f 77 45 72 72 6f 72 28 22 75 73 65 72 20 hrowError("user 00031670: 72 65 6a 65 63 74 65 64 20 74 72 61 6e 73 61 63 rejected transac 00031680: 74 69 6f 6e 22 2c 79 2e 65 72 72 6f 72 73 2e 41 tion",y.errors.A 00031690: 43 54 49 4f 4e 5f 52 45 4a 45 43 54 45 44 2c 7b CTION_REJECTED,{ 000316a0: 61 63 74 69 6f 6e 3a 22 73 65 6e 64 54 72 61 6e action:"sendTran 000316b0: 73 61 63 74 69 6f 6e 22 2c 74 72 61 6e 73 61 63 saction",transac 000316c0: 74 69 6f 6e 3a 74 7d 29 2c 6c 73 28 22 73 65 6e tion:t}),ls("sen 000316d0: 64 54 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 2c dTransaction",e, 000316e0: 72 29 29 29 29 7d 29 29 7d 73 69 67 6e 54 72 61 r))))}))}signTra 000316f0: 6e 73 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 nsaction(e){retu 00031700: 72 6e 20 69 73 2e 74 68 72 6f 77 45 72 72 6f 72 rn is.throwError 00031710: 28 22 73 69 67 6e 69 6e 67 20 74 72 61 6e 73 61 ("signing transa 00031720: 63 74 69 6f 6e 73 20 69 73 20 75 6e 73 75 70 70 ctions is unsupp 00031730: 6f 72 74 65 64 22 2c 79 2e 65 72 72 6f 72 73 2e orted",y.errors. 00031740: 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 UNSUPPORTED_OPER 00031750: 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e ATION,{operation 00031760: 3a 22 73 69 67 6e 54 72 61 6e 73 61 63 74 69 6f :"signTransactio 00031770: 6e 22 7d 29 7d 73 65 6e 64 54 72 61 6e 73 61 63 n"})}sendTransac 00031780: 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 6f tion(e){return o 00031790: 73 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f s(this,void 0,vo 000317a0: 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 id 0,(function*( 000317b0: 29 7b 63 6f 6e 73 74 20 74 3d 79 69 65 6c 64 20 ){const t=yield 000317c0: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 5f 67 this.provider._g 000317d0: 65 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e etInternalBlockN 000317e0: 75 6d 62 65 72 28 31 30 30 2b 32 2a 74 68 69 73 umber(100+2*this 000317f0: 2e 70 72 6f 76 69 64 65 72 2e 70 6f 6c 6c 69 6e .provider.pollin 00031800: 67 49 6e 74 65 72 76 61 6c 29 2c 6e 3d 79 69 65 gInterval),n=yie 00031810: 6c 64 20 74 68 69 73 2e 73 65 6e 64 55 6e 63 68 ld this.sendUnch 00031820: 65 63 6b 65 64 54 72 61 6e 73 61 63 74 69 6f 6e eckedTransaction 00031830: 28 65 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 79 (e);try{return y 00031840: 69 65 6c 64 20 78 61 28 28 28 29 3d 3e 6f 73 28 ield xa((()=>os( 00031850: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 00031860: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 00031870: 63 6f 6e 73 74 20 65 3d 79 69 65 6c 64 20 74 68 const e=yield th 00031880: 69 73 2e 70 72 6f 76 69 64 65 72 2e 67 65 74 54 is.provider.getT 00031890: 72 61 6e 73 61 63 74 69 6f 6e 28 6e 29 3b 69 66 ransaction(n);if 000318a0: 28 6e 75 6c 6c 21 3d 3d 65 29 72 65 74 75 72 6e (null!==e)return 000318b0: 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 5f this.provider._ 000318c0: 77 72 61 70 54 72 61 6e 73 61 63 74 69 6f 6e 28 wrapTransaction( 000318d0: 65 2c 6e 2c 74 29 7d 29 29 29 2c 7b 6f 6e 63 65 e,n,t)}))),{once 000318e0: 50 6f 6c 6c 3a 74 68 69 73 2e 70 72 6f 76 69 64 Poll:this.provid 000318f0: 65 72 7d 29 7d 63 61 74 63 68 28 65 29 7b 74 68 er})}catch(e){th 00031900: 72 6f 77 20 65 2e 74 72 61 6e 73 61 63 74 69 6f row e.transactio 00031910: 6e 48 61 73 68 3d 6e 2c 65 7d 7d 29 29 7d 73 69 nHash=n,e}}))}si 00031920: 67 6e 4d 65 73 73 61 67 65 28 65 29 7b 72 65 74 gnMessage(e){ret 00031930: 75 72 6e 20 6f 73 28 74 68 69 73 2c 76 6f 69 64 urn os(this,void 00031940: 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 0,void 0,(funct 00031950: 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 74 3d 22 ion*(){const t=" 00031960: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 00031970: 65 3f 71 65 28 65 29 3a 65 2c 6e 3d 79 69 65 6c e?qe(e):e,n=yiel 00031980: 64 20 74 68 69 73 2e 67 65 74 41 64 64 72 65 73 d this.getAddres 00031990: 73 28 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 79 s();try{return y 000319a0: 69 65 6c 64 20 74 68 69 73 2e 70 72 6f 76 69 64 ield this.provid 000319b0: 65 72 2e 73 65 6e 64 28 22 70 65 72 73 6f 6e 61 er.send("persona 000319c0: 6c 5f 73 69 67 6e 22 2c 5b 52 28 74 29 2c 6e 2e l_sign",[R(t),n. 000319d0: 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 5d 29 7d toLowerCase()])} 000319e0: 63 61 74 63 68 28 74 29 7b 74 68 72 6f 77 22 73 catch(t){throw"s 000319f0: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 74 tring"==typeof t 00031a00: 2e 6d 65 73 73 61 67 65 26 26 74 2e 6d 65 73 73 .message&&t.mess 00031a10: 61 67 65 2e 6d 61 74 63 68 28 2f 75 73 65 72 20 age.match(/user 00031a20: 64 65 6e 69 65 64 2f 69 29 26 26 69 73 2e 74 68 denied/i)&&is.th 00031a30: 72 6f 77 45 72 72 6f 72 28 22 75 73 65 72 20 72 rowError("user r 00031a40: 65 6a 65 63 74 65 64 20 73 69 67 6e 69 6e 67 22 ejected signing" 00031a50: 2c 79 2e 65 72 72 6f 72 73 2e 41 43 54 49 4f 4e ,y.errors.ACTION 00031a60: 5f 52 45 4a 45 43 54 45 44 2c 7b 61 63 74 69 6f _REJECTED,{actio 00031a70: 6e 3a 22 73 69 67 6e 4d 65 73 73 61 67 65 22 2c n:"signMessage", 00031a80: 66 72 6f 6d 3a 6e 2c 6d 65 73 73 61 67 65 44 61 from:n,messageDa 00031a90: 74 61 3a 65 7d 29 2c 74 7d 7d 29 29 7d 5f 6c 65 ta:e}),t}}))}_le 00031aa0: 67 61 63 79 53 69 67 6e 4d 65 73 73 61 67 65 28 gacySignMessage( 00031ab0: 65 29 7b 72 65 74 75 72 6e 20 6f 73 28 74 68 69 e){return os(thi 00031ac0: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 00031ad0: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e (function*(){con 00031ae0: 73 74 20 74 3d 22 73 74 72 69 6e 67 22 3d 3d 74 st t="string"==t 00031af0: 79 70 65 6f 66 20 65 3f 71 65 28 65 29 3a 65 2c ypeof e?qe(e):e, 00031b00: 6e 3d 79 69 65 6c 64 20 74 68 69 73 2e 67 65 74 n=yield this.get 00031b10: 41 64 64 72 65 73 73 28 29 3b 74 72 79 7b 72 65 Address();try{re 00031b20: 74 75 72 6e 20 79 69 65 6c 64 20 74 68 69 73 2e turn yield this. 00031b30: 70 72 6f 76 69 64 65 72 2e 73 65 6e 64 28 22 65 provider.send("e 00031b40: 74 68 5f 73 69 67 6e 22 2c 5b 6e 2e 74 6f 4c 6f th_sign",[n.toLo 00031b50: 77 65 72 43 61 73 65 28 29 2c 52 28 74 29 5d 29 werCase(),R(t)]) 00031b60: 7d 63 61 74 63 68 28 74 29 7b 74 68 72 6f 77 22 }catch(t){throw" 00031b70: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 00031b80: 74 2e 6d 65 73 73 61 67 65 26 26 74 2e 6d 65 73 t.message&&t.mes 00031b90: 73 61 67 65 2e 6d 61 74 63 68 28 2f 75 73 65 72 sage.match(/user 00031ba0: 20 64 65 6e 69 65 64 2f 69 29 26 26 69 73 2e 74 denied/i)&&is.t 00031bb0: 68 72 6f 77 45 72 72 6f 72 28 22 75 73 65 72 20 hrowError("user 00031bc0: 72 65 6a 65 63 74 65 64 20 73 69 67 6e 69 6e 67 rejected signing 00031bd0: 22 2c 79 2e 65 72 72 6f 72 73 2e 41 43 54 49 4f ",y.errors.ACTIO 00031be0: 4e 5f 52 45 4a 45 43 54 45 44 2c 7b 61 63 74 69 N_REJECTED,{acti 00031bf0: 6f 6e 3a 22 5f 6c 65 67 61 63 79 53 69 67 6e 4d on:"_legacySignM 00031c00: 65 73 73 61 67 65 22 2c 66 72 6f 6d 3a 6e 2c 6d essage",from:n,m 00031c10: 65 73 73 61 67 65 44 61 74 61 3a 65 7d 29 2c 74 essageData:e}),t 00031c20: 7d 7d 29 29 7d 5f 73 69 67 6e 54 79 70 65 64 44 }}))}_signTypedD 00031c30: 61 74 61 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 ata(e,t,n){retur 00031c40: 6e 20 6f 73 28 74 68 69 73 2c 76 6f 69 64 20 30 n os(this,void 0 00031c50: 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f ,void 0,(functio 00031c60: 6e 2a 28 29 7b 63 6f 6e 73 74 20 72 3d 79 69 65 n*(){const r=yie 00031c70: 6c 64 20 6d 6f 2e 72 65 73 6f 6c 76 65 4e 61 6d ld mo.resolveNam 00031c80: 65 73 28 65 2c 74 2c 6e 2c 28 65 3d 3e 74 68 69 es(e,t,n,(e=>thi 00031c90: 73 2e 70 72 6f 76 69 64 65 72 2e 72 65 73 6f 6c s.provider.resol 00031ca0: 76 65 4e 61 6d 65 28 65 29 29 29 2c 6f 3d 79 69 veName(e))),o=yi 00031cb0: 65 6c 64 20 74 68 69 73 2e 67 65 74 41 64 64 72 eld this.getAddr 00031cc0: 65 73 73 28 29 3b 74 72 79 7b 72 65 74 75 72 6e ess();try{return 00031cd0: 20 79 69 65 6c 64 20 74 68 69 73 2e 70 72 6f 76 yield this.prov 00031ce0: 69 64 65 72 2e 73 65 6e 64 28 22 65 74 68 5f 73 ider.send("eth_s 00031cf0: 69 67 6e 54 79 70 65 64 44 61 74 61 5f 76 34 22 ignTypedData_v4" 00031d00: 2c 5b 6f 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 ,[o.toLowerCase( 00031d10: 29 2c 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 ),JSON.stringify 00031d20: 28 6d 6f 2e 67 65 74 50 61 79 6c 6f 61 64 28 72 (mo.getPayload(r 00031d30: 2e 64 6f 6d 61 69 6e 2c 74 2c 72 2e 76 61 6c 75 .domain,t,r.valu 00031d40: 65 29 29 5d 29 7d 63 61 74 63 68 28 65 29 7b 74 e))])}catch(e){t 00031d50: 68 72 6f 77 22 73 74 72 69 6e 67 22 3d 3d 74 79 hrow"string"==ty 00031d60: 70 65 6f 66 20 65 2e 6d 65 73 73 61 67 65 26 26 peof e.message&& 00031d70: 65 2e 6d 65 73 73 61 67 65 2e 6d 61 74 63 68 28 e.message.match( 00031d80: 2f 75 73 65 72 20 64 65 6e 69 65 64 2f 69 29 26 /user denied/i)& 00031d90: 26 69 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 &is.throwError(" 00031da0: 75 73 65 72 20 72 65 6a 65 63 74 65 64 20 73 69 user rejected si 00031db0: 67 6e 69 6e 67 22 2c 79 2e 65 72 72 6f 72 73 2e gning",y.errors. 00031dc0: 41 43 54 49 4f 4e 5f 52 45 4a 45 43 54 45 44 2c ACTION_REJECTED, 00031dd0: 7b 61 63 74 69 6f 6e 3a 22 5f 73 69 67 6e 54 79 {action:"_signTy 00031de0: 70 65 64 44 61 74 61 22 2c 66 72 6f 6d 3a 6f 2c pedData",from:o, 00031df0: 6d 65 73 73 61 67 65 44 61 74 61 3a 7b 64 6f 6d messageData:{dom 00031e00: 61 69 6e 3a 72 2e 64 6f 6d 61 69 6e 2c 74 79 70 ain:r.domain,typ 00031e10: 65 73 3a 74 2c 76 61 6c 75 65 3a 72 2e 76 61 6c es:t,value:r.val 00031e20: 75 65 7d 7d 29 2c 65 7d 7d 29 29 7d 75 6e 6c 6f ue}}),e}}))}unlo 00031e30: 63 6b 28 65 29 7b 72 65 74 75 72 6e 20 6f 73 28 ck(e){return os( 00031e40: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 00031e50: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 00031e60: 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 70 72 6f const t=this.pro 00031e70: 76 69 64 65 72 2c 6e 3d 79 69 65 6c 64 20 74 68 vider,n=yield th 00031e80: 69 73 2e 67 65 74 41 64 64 72 65 73 73 28 29 3b is.getAddress(); 00031e90: 72 65 74 75 72 6e 20 74 2e 73 65 6e 64 28 22 70 return t.send("p 00031ea0: 65 72 73 6f 6e 61 6c 5f 75 6e 6c 6f 63 6b 41 63 ersonal_unlockAc 00031eb0: 63 6f 75 6e 74 22 2c 5b 6e 2e 74 6f 4c 6f 77 65 count",[n.toLowe 00031ec0: 72 43 61 73 65 28 29 2c 65 2c 6e 75 6c 6c 5d 29 rCase(),e,null]) 00031ed0: 7d 29 29 7d 7d 63 6c 61 73 73 20 68 73 20 65 78 }))}}class hs ex 00031ee0: 74 65 6e 64 73 20 66 73 7b 73 65 6e 64 54 72 61 tends fs{sendTra 00031ef0: 6e 73 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 nsaction(e){retu 00031f00: 72 6e 20 74 68 69 73 2e 73 65 6e 64 55 6e 63 68 rn this.sendUnch 00031f10: 65 63 6b 65 64 54 72 61 6e 73 61 63 74 69 6f 6e eckedTransaction 00031f20: 28 65 29 2e 74 68 65 6e 28 28 65 3d 3e 28 7b 68 (e).then((e=>({h 00031f30: 61 73 68 3a 65 2c 6e 6f 6e 63 65 3a 6e 75 6c 6c ash:e,nonce:null 00031f40: 2c 67 61 73 4c 69 6d 69 74 3a 6e 75 6c 6c 2c 67 ,gasLimit:null,g 00031f50: 61 73 50 72 69 63 65 3a 6e 75 6c 6c 2c 64 61 74 asPrice:null,dat 00031f60: 61 3a 6e 75 6c 6c 2c 76 61 6c 75 65 3a 6e 75 6c a:null,value:nul 00031f70: 6c 2c 63 68 61 69 6e 49 64 3a 6e 75 6c 6c 2c 63 l,chainId:null,c 00031f80: 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 3a 30 2c 66 onfirmations:0,f 00031f90: 72 6f 6d 3a 6e 75 6c 6c 2c 77 61 69 74 3a 74 3d rom:null,wait:t= 00031fa0: 3e 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 77 >this.provider.w 00031fb0: 61 69 74 46 6f 72 54 72 61 6e 73 61 63 74 69 6f aitForTransactio 00031fc0: 6e 28 65 2c 74 29 7d 29 29 29 7d 7d 63 6f 6e 73 n(e,t)})))}}cons 00031fd0: 74 20 6d 73 3d 7b 63 68 61 69 6e 49 64 3a 21 30 t ms={chainId:!0 00031fe0: 2c 64 61 74 61 3a 21 30 2c 67 61 73 4c 69 6d 69 ,data:!0,gasLimi 00031ff0: 74 3a 21 30 2c 67 61 73 50 72 69 63 65 3a 21 30 t:!0,gasPrice:!0 00032000: 2c 6e 6f 6e 63 65 3a 21 30 2c 74 6f 3a 21 30 2c ,nonce:!0,to:!0, 00032010: 76 61 6c 75 65 3a 21 30 2c 74 79 70 65 3a 21 30 value:!0,type:!0 00032020: 2c 61 63 63 65 73 73 4c 69 73 74 3a 21 30 2c 6d ,accessList:!0,m 00032030: 61 78 46 65 65 50 65 72 47 61 73 3a 21 30 2c 6d axFeePerGas:!0,m 00032040: 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 axPriorityFeePer 00032050: 47 61 73 3a 21 30 7d 3b 63 6c 61 73 73 20 67 73 Gas:!0};class gs 00032060: 20 65 78 74 65 6e 64 73 20 72 73 7b 63 6f 6e 73 extends rs{cons 00032070: 74 72 75 63 74 6f 72 28 65 2c 74 29 7b 6c 65 74 tructor(e,t){let 00032080: 20 6e 3d 74 3b 6e 75 6c 6c 3d 3d 6e 26 26 28 6e n=t;null==n&&(n 00032090: 3d 6e 65 77 20 50 72 6f 6d 69 73 65 28 28 28 65 =new Promise(((e 000320a0: 2c 74 29 3d 3e 7b 73 65 74 54 69 6d 65 6f 75 74 ,t)=>{setTimeout 000320b0: 28 28 28 29 3d 3e 7b 74 68 69 73 2e 64 65 74 65 ((()=>{this.dete 000320c0: 63 74 4e 65 74 77 6f 72 6b 28 29 2e 74 68 65 6e ctNetwork().then 000320d0: 28 28 74 3d 3e 7b 65 28 74 29 7d 29 2c 28 65 3d ((t=>{e(t)}),(e= 000320e0: 3e 7b 74 28 65 29 7d 29 29 7d 29 2c 30 29 7d 29 >{t(e)}))}),0)}) 000320f0: 29 29 2c 73 75 70 65 72 28 6e 29 2c 65 7c 7c 28 )),super(n),e||( 00032100: 65 3d 6e 65 28 74 68 69 73 2e 63 6f 6e 73 74 72 e=ne(this.constr 00032110: 75 63 74 6f 72 2c 22 64 65 66 61 75 6c 74 55 72 uctor,"defaultUr 00032120: 6c 22 29 28 29 29 2c 74 65 28 74 68 69 73 2c 22 l")()),te(this," 00032130: 63 6f 6e 6e 65 63 74 69 6f 6e 22 2c 22 73 74 72 connection","str 00032140: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 4f ing"==typeof e?O 00032150: 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 7b 75 72 bject.freeze({ur 00032160: 6c 3a 65 7d 29 3a 4f 62 6a 65 63 74 2e 66 72 65 l:e}):Object.fre 00032170: 65 7a 65 28 69 65 28 65 29 29 29 2c 74 68 69 73 eze(ie(e))),this 00032180: 2e 5f 6e 65 78 74 49 64 3d 34 32 7d 67 65 74 20 ._nextId=42}get 00032190: 5f 63 61 63 68 65 28 29 7b 72 65 74 75 72 6e 20 _cache(){return 000321a0: 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f 65 76 65 6e null==this._even 000321b0: 74 4c 6f 6f 70 43 61 63 68 65 26 26 28 74 68 69 tLoopCache&&(thi 000321c0: 73 2e 5f 65 76 65 6e 74 4c 6f 6f 70 43 61 63 68 s._eventLoopCach 000321d0: 65 3d 7b 7d 29 2c 74 68 69 73 2e 5f 65 76 65 6e e={}),this._even 000321e0: 74 4c 6f 6f 70 43 61 63 68 65 7d 73 74 61 74 69 tLoopCache}stati 000321f0: 63 20 64 65 66 61 75 6c 74 55 72 6c 28 29 7b 72 c defaultUrl(){r 00032200: 65 74 75 72 6e 22 68 74 74 70 3a 2f 2f 6c 6f 63 eturn"http://loc 00032210: 61 6c 68 6f 73 74 3a 38 35 34 35 22 7d 64 65 74 alhost:8545"}det 00032220: 65 63 74 4e 65 74 77 6f 72 6b 28 29 7b 72 65 74 ectNetwork(){ret 00032230: 75 72 6e 20 74 68 69 73 2e 5f 63 61 63 68 65 2e urn this._cache. 00032240: 64 65 74 65 63 74 4e 65 74 77 6f 72 6b 7c 7c 28 detectNetwork||( 00032250: 74 68 69 73 2e 5f 63 61 63 68 65 2e 64 65 74 65 this._cache.dete 00032260: 63 74 4e 65 74 77 6f 72 6b 3d 74 68 69 73 2e 5f ctNetwork=this._ 00032270: 75 6e 63 61 63 68 65 64 44 65 74 65 63 74 4e 65 uncachedDetectNe 00032280: 74 77 6f 72 6b 28 29 2c 73 65 74 54 69 6d 65 6f twork(),setTimeo 00032290: 75 74 28 28 28 29 3d 3e 7b 74 68 69 73 2e 5f 63 ut((()=>{this._c 000322a0: 61 63 68 65 2e 64 65 74 65 63 74 4e 65 74 77 6f ache.detectNetwo 000322b0: 72 6b 3d 6e 75 6c 6c 7d 29 2c 30 29 29 2c 74 68 rk=null}),0)),th 000322c0: 69 73 2e 5f 63 61 63 68 65 2e 64 65 74 65 63 74 is._cache.detect 000322d0: 4e 65 74 77 6f 72 6b 7d 5f 75 6e 63 61 63 68 65 Network}_uncache 000322e0: 64 44 65 74 65 63 74 4e 65 74 77 6f 72 6b 28 29 dDetectNetwork() 000322f0: 7b 72 65 74 75 72 6e 20 6f 73 28 74 68 69 73 2c {return os(this, 00032300: 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 void 0,void 0,(f 00032310: 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 6c 64 unction*(){yield 00032320: 20 63 73 28 30 29 3b 6c 65 74 20 65 3d 6e 75 6c cs(0);let e=nul 00032330: 6c 3b 74 72 79 7b 65 3d 79 69 65 6c 64 20 74 68 l;try{e=yield th 00032340: 69 73 2e 73 65 6e 64 28 22 65 74 68 5f 63 68 61 is.send("eth_cha 00032350: 69 6e 49 64 22 2c 5b 5d 29 7d 63 61 74 63 68 28 inId",[])}catch( 00032360: 74 29 7b 74 72 79 7b 65 3d 79 69 65 6c 64 20 74 t){try{e=yield t 00032370: 68 69 73 2e 73 65 6e 64 28 22 6e 65 74 5f 76 65 his.send("net_ve 00032380: 72 73 69 6f 6e 22 2c 5b 5d 29 7d 63 61 74 63 68 rsion",[])}catch 00032390: 28 65 29 7b 7d 7d 69 66 28 6e 75 6c 6c 21 3d 65 (e){}}if(null!=e 000323a0: 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 28 74 68 69 ){const t=ne(thi 000323b0: 73 2e 63 6f 6e 73 74 72 75 63 74 6f 72 2c 22 67 s.constructor,"g 000323c0: 65 74 4e 65 74 77 6f 72 6b 22 29 3b 74 72 79 7b etNetwork");try{ 000323d0: 72 65 74 75 72 6e 20 74 28 59 2e 66 72 6f 6d 28 return t(Y.from( 000323e0: 65 29 2e 74 6f 4e 75 6d 62 65 72 28 29 29 7d 63 e).toNumber())}c 000323f0: 61 74 63 68 28 74 29 7b 72 65 74 75 72 6e 20 69 atch(t){return i 00032400: 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 63 6f s.throwError("co 00032410: 75 6c 64 20 6e 6f 74 20 64 65 74 65 63 74 20 6e uld not detect n 00032420: 65 74 77 6f 72 6b 22 2c 79 2e 65 72 72 6f 72 73 etwork",y.errors 00032430: 2e 4e 45 54 57 4f 52 4b 5f 45 52 52 4f 52 2c 7b .NETWORK_ERROR,{ 00032440: 63 68 61 69 6e 49 64 3a 65 2c 65 76 65 6e 74 3a chainId:e,event: 00032450: 22 69 6e 76 61 6c 69 64 4e 65 74 77 6f 72 6b 22 "invalidNetwork" 00032460: 2c 73 65 72 76 65 72 45 72 72 6f 72 3a 74 7d 29 ,serverError:t}) 00032470: 7d 7d 72 65 74 75 72 6e 20 69 73 2e 74 68 72 6f }}return is.thro 00032480: 77 45 72 72 6f 72 28 22 63 6f 75 6c 64 20 6e 6f wError("could no 00032490: 74 20 64 65 74 65 63 74 20 6e 65 74 77 6f 72 6b t detect network 000324a0: 22 2c 79 2e 65 72 72 6f 72 73 2e 4e 45 54 57 4f ",y.errors.NETWO 000324b0: 52 4b 5f 45 52 52 4f 52 2c 7b 65 76 65 6e 74 3a RK_ERROR,{event: 000324c0: 22 6e 6f 4e 65 74 77 6f 72 6b 22 7d 29 7d 29 29 "noNetwork"})})) 000324d0: 7d 67 65 74 53 69 67 6e 65 72 28 65 29 7b 72 65 }getSigner(e){re 000324e0: 74 75 72 6e 20 6e 65 77 20 66 73 28 70 73 2c 74 turn new fs(ps,t 000324f0: 68 69 73 2c 65 29 7d 67 65 74 55 6e 63 68 65 63 his,e)}getUnchec 00032500: 6b 65 64 53 69 67 6e 65 72 28 65 29 7b 72 65 74 kedSigner(e){ret 00032510: 75 72 6e 20 74 68 69 73 2e 67 65 74 53 69 67 6e urn this.getSign 00032520: 65 72 28 65 29 2e 63 6f 6e 6e 65 63 74 55 6e 63 er(e).connectUnc 00032530: 68 65 63 6b 65 64 28 29 7d 6c 69 73 74 41 63 63 hecked()}listAcc 00032540: 6f 75 6e 74 73 28 29 7b 72 65 74 75 72 6e 20 74 ounts(){return t 00032550: 68 69 73 2e 73 65 6e 64 28 22 65 74 68 5f 61 63 his.send("eth_ac 00032560: 63 6f 75 6e 74 73 22 2c 5b 5d 29 2e 74 68 65 6e counts",[]).then 00032570: 28 28 65 3d 3e 65 2e 6d 61 70 28 28 65 3d 3e 74 ((e=>e.map((e=>t 00032580: 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e 61 64 his.formatter.ad 00032590: 64 72 65 73 73 28 65 29 29 29 29 29 7d 73 65 6e dress(e)))))}sen 000325a0: 64 28 65 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 7b d(e,t){const n={ 000325b0: 6d 65 74 68 6f 64 3a 65 2c 70 61 72 61 6d 73 3a method:e,params: 000325c0: 74 2c 69 64 3a 74 68 69 73 2e 5f 6e 65 78 74 49 t,id:this._nextI 000325d0: 64 2b 2b 2c 6a 73 6f 6e 72 70 63 3a 22 32 2e 30 d++,jsonrpc:"2.0 000325e0: 22 7d 3b 74 68 69 73 2e 65 6d 69 74 28 22 64 65 "};this.emit("de 000325f0: 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 bug",{action:"re 00032600: 71 75 65 73 74 22 2c 72 65 71 75 65 73 74 3a 63 quest",request:c 00032610: 65 28 6e 29 2c 70 72 6f 76 69 64 65 72 3a 74 68 e(n),provider:th 00032620: 69 73 7d 29 3b 63 6f 6e 73 74 20 72 3d 5b 22 65 is});const r=["e 00032630: 74 68 5f 63 68 61 69 6e 49 64 22 2c 22 65 74 68 th_chainId","eth 00032640: 5f 62 6c 6f 63 6b 4e 75 6d 62 65 72 22 5d 2e 69 _blockNumber"].i 00032650: 6e 64 65 78 4f 66 28 65 29 3e 3d 30 3b 69 66 28 ndexOf(e)>=0;if( 00032660: 72 26 26 74 68 69 73 2e 5f 63 61 63 68 65 5b 65 r&&this._cache[e 00032670: 5d 29 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 63 ])return this._c 00032680: 61 63 68 65 5b 65 5d 3b 63 6f 6e 73 74 20 6f 3d ache[e];const o= 00032690: 77 61 28 74 68 69 73 2e 63 6f 6e 6e 65 63 74 69 wa(this.connecti 000326a0: 6f 6e 2c 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 on,JSON.stringif 000326b0: 79 28 6e 29 2c 75 73 29 2e 74 68 65 6e 28 28 65 y(n),us).then((e 000326c0: 3d 3e 28 74 68 69 73 2e 65 6d 69 74 28 22 64 65 =>(this.emit("de 000326d0: 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 bug",{action:"re 000326e0: 73 70 6f 6e 73 65 22 2c 72 65 71 75 65 73 74 3a sponse",request: 000326f0: 6e 2c 72 65 73 70 6f 6e 73 65 3a 65 2c 70 72 6f n,response:e,pro 00032700: 76 69 64 65 72 3a 74 68 69 73 7d 29 2c 65 29 29 vider:this}),e)) 00032710: 2c 28 65 3d 3e 7b 74 68 72 6f 77 20 74 68 69 73 ,(e=>{throw this 00032720: 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b 61 .emit("debug",{a 00032730: 63 74 69 6f 6e 3a 22 72 65 73 70 6f 6e 73 65 22 ction:"response" 00032740: 2c 65 72 72 6f 72 3a 65 2c 72 65 71 75 65 73 74 ,error:e,request 00032750: 3a 6e 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 :n,provider:this 00032760: 7d 29 2c 65 7d 29 29 3b 72 65 74 75 72 6e 20 72 }),e}));return r 00032770: 26 26 28 74 68 69 73 2e 5f 63 61 63 68 65 5b 65 &&(this._cache[e 00032780: 5d 3d 6f 2c 73 65 74 54 69 6d 65 6f 75 74 28 28 ]=o,setTimeout(( 00032790: 28 29 3d 3e 7b 74 68 69 73 2e 5f 63 61 63 68 65 ()=>{this._cache 000327a0: 5b 65 5d 3d 6e 75 6c 6c 7d 29 2c 30 29 29 2c 6f [e]=null}),0)),o 000327b0: 7d 70 72 65 70 61 72 65 52 65 71 75 65 73 74 28 }prepareRequest( 000327c0: 65 2c 74 29 7b 73 77 69 74 63 68 28 65 29 7b 63 e,t){switch(e){c 000327d0: 61 73 65 22 67 65 74 42 6c 6f 63 6b 4e 75 6d 62 ase"getBlockNumb 000327e0: 65 72 22 3a 72 65 74 75 72 6e 5b 22 65 74 68 5f er":return["eth_ 000327f0: 62 6c 6f 63 6b 4e 75 6d 62 65 72 22 2c 5b 5d 5d blockNumber",[]] 00032800: 3b 63 61 73 65 22 67 65 74 47 61 73 50 72 69 63 ;case"getGasPric 00032810: 65 22 3a 72 65 74 75 72 6e 5b 22 65 74 68 5f 67 e":return["eth_g 00032820: 61 73 50 72 69 63 65 22 2c 5b 5d 5d 3b 63 61 73 asPrice",[]];cas 00032830: 65 22 67 65 74 42 61 6c 61 6e 63 65 22 3a 72 65 e"getBalance":re 00032840: 74 75 72 6e 5b 22 65 74 68 5f 67 65 74 42 61 6c turn["eth_getBal 00032850: 61 6e 63 65 22 2c 5b 64 73 28 74 2e 61 64 64 72 ance",[ds(t.addr 00032860: 65 73 73 29 2c 74 2e 62 6c 6f 63 6b 54 61 67 5d ess),t.blockTag] 00032870: 5d 3b 63 61 73 65 22 67 65 74 54 72 61 6e 73 61 ];case"getTransa 00032880: 63 74 69 6f 6e 43 6f 75 6e 74 22 3a 72 65 74 75 ctionCount":retu 00032890: 72 6e 5b 22 65 74 68 5f 67 65 74 54 72 61 6e 73 rn["eth_getTrans 000328a0: 61 63 74 69 6f 6e 43 6f 75 6e 74 22 2c 5b 64 73 actionCount",[ds 000328b0: 28 74 2e 61 64 64 72 65 73 73 29 2c 74 2e 62 6c (t.address),t.bl 000328c0: 6f 63 6b 54 61 67 5d 5d 3b 63 61 73 65 22 67 65 ockTag]];case"ge 000328d0: 74 43 6f 64 65 22 3a 72 65 74 75 72 6e 5b 22 65 tCode":return["e 000328e0: 74 68 5f 67 65 74 43 6f 64 65 22 2c 5b 64 73 28 th_getCode",[ds( 000328f0: 74 2e 61 64 64 72 65 73 73 29 2c 74 2e 62 6c 6f t.address),t.blo 00032900: 63 6b 54 61 67 5d 5d 3b 63 61 73 65 22 67 65 74 ckTag]];case"get 00032910: 53 74 6f 72 61 67 65 41 74 22 3a 72 65 74 75 72 StorageAt":retur 00032920: 6e 5b 22 65 74 68 5f 67 65 74 53 74 6f 72 61 67 n["eth_getStorag 00032930: 65 41 74 22 2c 5b 64 73 28 74 2e 61 64 64 72 65 eAt",[ds(t.addre 00032940: 73 73 29 2c 46 28 74 2e 70 6f 73 69 74 69 6f 6e ss),F(t.position 00032950: 2c 33 32 29 2c 74 2e 62 6c 6f 63 6b 54 61 67 5d ,32),t.blockTag] 00032960: 5d 3b 63 61 73 65 22 73 65 6e 64 54 72 61 6e 73 ];case"sendTrans 00032970: 61 63 74 69 6f 6e 22 3a 72 65 74 75 72 6e 5b 22 action":return[" 00032980: 65 74 68 5f 73 65 6e 64 52 61 77 54 72 61 6e 73 eth_sendRawTrans 00032990: 61 63 74 69 6f 6e 22 2c 5b 74 2e 73 69 67 6e 65 action",[t.signe 000329a0: 64 54 72 61 6e 73 61 63 74 69 6f 6e 5d 5d 3b 63 dTransaction]];c 000329b0: 61 73 65 22 67 65 74 42 6c 6f 63 6b 22 3a 72 65 ase"getBlock":re 000329c0: 74 75 72 6e 20 74 2e 62 6c 6f 63 6b 54 61 67 3f turn t.blockTag? 000329d0: 5b 22 65 74 68 5f 67 65 74 42 6c 6f 63 6b 42 79 ["eth_getBlockBy 000329e0: 4e 75 6d 62 65 72 22 2c 5b 74 2e 62 6c 6f 63 6b Number",[t.block 000329f0: 54 61 67 2c 21 21 74 2e 69 6e 63 6c 75 64 65 54 Tag,!!t.includeT 00032a00: 72 61 6e 73 61 63 74 69 6f 6e 73 5d 5d 3a 74 2e ransactions]]:t. 00032a10: 62 6c 6f 63 6b 48 61 73 68 3f 5b 22 65 74 68 5f blockHash?["eth_ 00032a20: 67 65 74 42 6c 6f 63 6b 42 79 48 61 73 68 22 2c getBlockByHash", 00032a30: 5b 74 2e 62 6c 6f 63 6b 48 61 73 68 2c 21 21 74 [t.blockHash,!!t 00032a40: 2e 69 6e 63 6c 75 64 65 54 72 61 6e 73 61 63 74 .includeTransact 00032a50: 69 6f 6e 73 5d 5d 3a 6e 75 6c 6c 3b 63 61 73 65 ions]]:null;case 00032a60: 22 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 22 "getTransaction" 00032a70: 3a 72 65 74 75 72 6e 5b 22 65 74 68 5f 67 65 74 :return["eth_get 00032a80: 54 72 61 6e 73 61 63 74 69 6f 6e 42 79 48 61 73 TransactionByHas 00032a90: 68 22 2c 5b 74 2e 74 72 61 6e 73 61 63 74 69 6f h",[t.transactio 00032aa0: 6e 48 61 73 68 5d 5d 3b 63 61 73 65 22 67 65 74 nHash]];case"get 00032ab0: 54 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 65 69 TransactionRecei 00032ac0: 70 74 22 3a 72 65 74 75 72 6e 5b 22 65 74 68 5f pt":return["eth_ 00032ad0: 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 65 getTransactionRe 00032ae0: 63 65 69 70 74 22 2c 5b 74 2e 74 72 61 6e 73 61 ceipt",[t.transa 00032af0: 63 74 69 6f 6e 48 61 73 68 5d 5d 3b 63 61 73 65 ctionHash]];case 00032b00: 22 63 61 6c 6c 22 3a 72 65 74 75 72 6e 5b 22 65 "call":return["e 00032b10: 74 68 5f 63 61 6c 6c 22 2c 5b 6e 65 28 74 68 69 th_call",[ne(thi 00032b20: 73 2e 63 6f 6e 73 74 72 75 63 74 6f 72 2c 22 68 s.constructor,"h 00032b30: 65 78 6c 69 66 79 54 72 61 6e 73 61 63 74 69 6f exlifyTransactio 00032b40: 6e 22 29 28 74 2e 74 72 61 6e 73 61 63 74 69 6f n")(t.transactio 00032b50: 6e 2c 7b 66 72 6f 6d 3a 21 30 7d 29 2c 74 2e 62 n,{from:!0}),t.b 00032b60: 6c 6f 63 6b 54 61 67 5d 5d 3b 63 61 73 65 22 65 lockTag]];case"e 00032b70: 73 74 69 6d 61 74 65 47 61 73 22 3a 72 65 74 75 stimateGas":retu 00032b80: 72 6e 5b 22 65 74 68 5f 65 73 74 69 6d 61 74 65 rn["eth_estimate 00032b90: 47 61 73 22 2c 5b 6e 65 28 74 68 69 73 2e 63 6f Gas",[ne(this.co 00032ba0: 6e 73 74 72 75 63 74 6f 72 2c 22 68 65 78 6c 69 nstructor,"hexli 00032bb0: 66 79 54 72 61 6e 73 61 63 74 69 6f 6e 22 29 28 fyTransaction")( 00032bc0: 74 2e 74 72 61 6e 73 61 63 74 69 6f 6e 2c 7b 66 t.transaction,{f 00032bd0: 72 6f 6d 3a 21 30 7d 29 5d 5d 3b 63 61 73 65 22 rom:!0})]];case" 00032be0: 67 65 74 4c 6f 67 73 22 3a 72 65 74 75 72 6e 20 getLogs":return 00032bf0: 74 2e 66 69 6c 74 65 72 26 26 6e 75 6c 6c 21 3d t.filter&&null!= 00032c00: 74 2e 66 69 6c 74 65 72 2e 61 64 64 72 65 73 73 t.filter.address 00032c10: 26 26 28 74 2e 66 69 6c 74 65 72 2e 61 64 64 72 &&(t.filter.addr 00032c20: 65 73 73 3d 64 73 28 74 2e 66 69 6c 74 65 72 2e ess=ds(t.filter. 00032c30: 61 64 64 72 65 73 73 29 29 2c 5b 22 65 74 68 5f address)),["eth_ 00032c40: 67 65 74 4c 6f 67 73 22 2c 5b 74 2e 66 69 6c 74 getLogs",[t.filt 00032c50: 65 72 5d 5d 7d 72 65 74 75 72 6e 20 6e 75 6c 6c er]]}return null 00032c60: 7d 70 65 72 66 6f 72 6d 28 65 2c 74 29 7b 72 65 }perform(e,t){re 00032c70: 74 75 72 6e 20 6f 73 28 74 68 69 73 2c 76 6f 69 turn os(this,voi 00032c80: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 00032c90: 74 69 6f 6e 2a 28 29 7b 69 66 28 22 63 61 6c 6c tion*(){if("call 00032ca0: 22 3d 3d 3d 65 7c 7c 22 65 73 74 69 6d 61 74 65 "===e||"estimate 00032cb0: 47 61 73 22 3d 3d 3d 65 29 7b 63 6f 6e 73 74 20 Gas"===e){const 00032cc0: 65 3d 74 2e 74 72 61 6e 73 61 63 74 69 6f 6e 3b e=t.transaction; 00032cd0: 69 66 28 65 26 26 6e 75 6c 6c 21 3d 65 2e 74 79 if(e&&null!=e.ty 00032ce0: 70 65 26 26 59 2e 66 72 6f 6d 28 65 2e 74 79 70 pe&&Y.from(e.typ 00032cf0: 65 29 2e 69 73 5a 65 72 6f 28 29 26 26 6e 75 6c e).isZero()&&nul 00032d00: 6c 3d 3d 65 2e 6d 61 78 46 65 65 50 65 72 47 61 l==e.maxFeePerGa 00032d10: 73 26 26 6e 75 6c 6c 3d 3d 65 2e 6d 61 78 50 72 s&&null==e.maxPr 00032d20: 69 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 29 iorityFeePerGas) 00032d30: 7b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c 64 20 74 {const n=yield t 00032d40: 68 69 73 2e 67 65 74 46 65 65 44 61 74 61 28 29 his.getFeeData() 00032d50: 3b 6e 75 6c 6c 3d 3d 6e 2e 6d 61 78 46 65 65 50 ;null==n.maxFeeP 00032d60: 65 72 47 61 73 26 26 6e 75 6c 6c 3d 3d 6e 2e 6d erGas&&null==n.m 00032d70: 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 axPriorityFeePer 00032d80: 47 61 73 26 26 28 28 74 3d 69 65 28 74 29 29 2e Gas&&((t=ie(t)). 00032d90: 74 72 61 6e 73 61 63 74 69 6f 6e 3d 69 65 28 65 transaction=ie(e 00032da0: 29 2c 64 65 6c 65 74 65 20 74 2e 74 72 61 6e 73 ),delete t.trans 00032db0: 61 63 74 69 6f 6e 2e 74 79 70 65 29 7d 7d 63 6f action.type)}}co 00032dc0: 6e 73 74 20 6e 3d 74 68 69 73 2e 70 72 65 70 61 nst n=this.prepa 00032dd0: 72 65 52 65 71 75 65 73 74 28 65 2c 74 29 3b 6e reRequest(e,t);n 00032de0: 75 6c 6c 3d 3d 6e 26 26 69 73 2e 74 68 72 6f 77 ull==n&&is.throw 00032df0: 45 72 72 6f 72 28 65 2b 22 20 6e 6f 74 20 69 6d Error(e+" not im 00032e00: 70 6c 65 6d 65 6e 74 65 64 22 2c 79 2e 65 72 72 plemented",y.err 00032e10: 6f 72 73 2e 4e 4f 54 5f 49 4d 50 4c 45 4d 45 4e ors.NOT_IMPLEMEN 00032e20: 54 45 44 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a 65 TED,{operation:e 00032e30: 7d 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 79 69 });try{return yi 00032e40: 65 6c 64 20 74 68 69 73 2e 73 65 6e 64 28 6e 5b eld this.send(n[ 00032e50: 30 5d 2c 6e 5b 31 5d 29 7d 63 61 74 63 68 28 6e 0],n[1])}catch(n 00032e60: 29 7b 72 65 74 75 72 6e 20 6c 73 28 65 2c 6e 2c ){return ls(e,n, 00032e70: 74 29 7d 7d 29 29 7d 5f 73 74 61 72 74 45 76 65 t)}}))}_startEve 00032e80: 6e 74 28 65 29 7b 22 70 65 6e 64 69 6e 67 22 3d nt(e){"pending"= 00032e90: 3d 3d 65 2e 74 61 67 26 26 74 68 69 73 2e 5f 73 ==e.tag&&this._s 00032ea0: 74 61 72 74 50 65 6e 64 69 6e 67 28 29 2c 73 75 tartPending(),su 00032eb0: 70 65 72 2e 5f 73 74 61 72 74 45 76 65 6e 74 28 per._startEvent( 00032ec0: 65 29 7d 5f 73 74 61 72 74 50 65 6e 64 69 6e 67 e)}_startPending 00032ed0: 28 29 7b 69 66 28 6e 75 6c 6c 21 3d 74 68 69 73 (){if(null!=this 00032ee0: 2e 5f 70 65 6e 64 69 6e 67 46 69 6c 74 65 72 29 ._pendingFilter) 00032ef0: 72 65 74 75 72 6e 3b 63 6f 6e 73 74 20 65 3d 74 return;const e=t 00032f00: 68 69 73 2c 74 3d 74 68 69 73 2e 73 65 6e 64 28 his,t=this.send( 00032f10: 22 65 74 68 5f 6e 65 77 50 65 6e 64 69 6e 67 54 "eth_newPendingT 00032f20: 72 61 6e 73 61 63 74 69 6f 6e 46 69 6c 74 65 72 ransactionFilter 00032f30: 22 2c 5b 5d 29 3b 74 68 69 73 2e 5f 70 65 6e 64 ",[]);this._pend 00032f40: 69 6e 67 46 69 6c 74 65 72 3d 74 2c 74 2e 74 68 ingFilter=t,t.th 00032f50: 65 6e 28 28 66 75 6e 63 74 69 6f 6e 28 6e 29 7b en((function(n){ 00032f60: 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e 20 return function 00032f70: 72 28 29 7b 65 2e 73 65 6e 64 28 22 65 74 68 5f r(){e.send("eth_ 00032f80: 67 65 74 46 69 6c 74 65 72 43 68 61 6e 67 65 73 getFilterChanges 00032f90: 22 2c 5b 6e 5d 29 2e 74 68 65 6e 28 28 66 75 6e ",[n]).then((fun 00032fa0: 63 74 69 6f 6e 28 6e 29 7b 69 66 28 65 2e 5f 70 ction(n){if(e._p 00032fb0: 65 6e 64 69 6e 67 46 69 6c 74 65 72 21 3d 74 29 endingFilter!=t) 00032fc0: 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 6c 65 74 20 return null;let 00032fd0: 72 3d 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 r=Promise.resolv 00032fe0: 65 28 29 3b 72 65 74 75 72 6e 20 6e 2e 66 6f 72 e();return n.for 00032ff0: 45 61 63 68 28 28 66 75 6e 63 74 69 6f 6e 28 74 Each((function(t 00033000: 29 7b 65 2e 5f 65 6d 69 74 74 65 64 5b 22 74 3a ){e._emitted["t: 00033010: 22 2b 74 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 "+t.toLowerCase( 00033020: 29 5d 3d 22 70 65 6e 64 69 6e 67 22 2c 72 3d 72 )]="pending",r=r 00033030: 2e 74 68 65 6e 28 28 66 75 6e 63 74 69 6f 6e 28 .then((function( 00033040: 29 7b 72 65 74 75 72 6e 20 65 2e 67 65 74 54 72 ){return e.getTr 00033050: 61 6e 73 61 63 74 69 6f 6e 28 74 29 2e 74 68 65 ansaction(t).the 00033060: 6e 28 28 66 75 6e 63 74 69 6f 6e 28 74 29 7b 72 n((function(t){r 00033070: 65 74 75 72 6e 20 65 2e 65 6d 69 74 28 22 70 65 eturn e.emit("pe 00033080: 6e 64 69 6e 67 22 2c 74 29 2c 6e 75 6c 6c 7d 29 nding",t),null}) 00033090: 29 7d 29 29 7d 29 29 2c 72 2e 74 68 65 6e 28 28 )}))})),r.then(( 000330a0: 66 75 6e 63 74 69 6f 6e 28 29 7b 72 65 74 75 72 function(){retur 000330b0: 6e 20 63 73 28 31 65 33 29 7d 29 29 7d 29 29 2e n cs(1e3)}))})). 000330c0: 74 68 65 6e 28 28 66 75 6e 63 74 69 6f 6e 28 29 then((function() 000330d0: 7b 69 66 28 65 2e 5f 70 65 6e 64 69 6e 67 46 69 {if(e._pendingFi 000330e0: 6c 74 65 72 3d 3d 74 29 72 65 74 75 72 6e 20 73 lter==t)return s 000330f0: 65 74 54 69 6d 65 6f 75 74 28 28 66 75 6e 63 74 etTimeout((funct 00033100: 69 6f 6e 28 29 7b 72 28 29 7d 29 2c 30 29 2c 6e ion(){r()}),0),n 00033110: 75 6c 6c 3b 65 2e 73 65 6e 64 28 22 65 74 68 5f ull;e.send("eth_ 00033120: 75 6e 69 6e 73 74 61 6c 6c 46 69 6c 74 65 72 22 uninstallFilter" 00033130: 2c 5b 6e 5d 29 7d 29 29 2e 63 61 74 63 68 28 28 ,[n])})).catch(( 00033140: 65 3d 3e 7b 7d 29 29 7d 28 29 2c 6e 7d 29 29 2e e=>{}))}(),n})). 00033150: 63 61 74 63 68 28 28 65 3d 3e 7b 7d 29 29 7d 5f catch((e=>{}))}_ 00033160: 73 74 6f 70 45 76 65 6e 74 28 65 29 7b 22 70 65 stopEvent(e){"pe 00033170: 6e 64 69 6e 67 22 3d 3d 3d 65 2e 74 61 67 26 26 nding"===e.tag&& 00033180: 30 3d 3d 3d 74 68 69 73 2e 6c 69 73 74 65 6e 65 0===this.listene 00033190: 72 43 6f 75 6e 74 28 22 70 65 6e 64 69 6e 67 22 rCount("pending" 000331a0: 29 26 26 28 74 68 69 73 2e 5f 70 65 6e 64 69 6e )&&(this._pendin 000331b0: 67 46 69 6c 74 65 72 3d 6e 75 6c 6c 29 2c 73 75 gFilter=null),su 000331c0: 70 65 72 2e 5f 73 74 6f 70 45 76 65 6e 74 28 65 per._stopEvent(e 000331d0: 29 7d 73 74 61 74 69 63 20 68 65 78 6c 69 66 79 )}static hexlify 000331e0: 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 2c 74 29 Transaction(e,t) 000331f0: 7b 63 6f 6e 73 74 20 6e 3d 69 65 28 6d 73 29 3b {const n=ie(ms); 00033200: 69 66 28 74 29 66 6f 72 28 63 6f 6e 73 74 20 65 if(t)for(const e 00033210: 20 69 6e 20 74 29 74 5b 65 5d 26 26 28 6e 5b 65 in t)t[e]&&(n[e 00033220: 5d 3d 21 30 29 3b 6f 65 28 65 2c 6e 29 3b 63 6f ]=!0);oe(e,n);co 00033230: 6e 73 74 20 72 3d 7b 7d 3b 72 65 74 75 72 6e 5b nst r={};return[ 00033240: 22 63 68 61 69 6e 49 64 22 2c 22 67 61 73 4c 69 "chainId","gasLi 00033250: 6d 69 74 22 2c 22 67 61 73 50 72 69 63 65 22 2c mit","gasPrice", 00033260: 22 74 79 70 65 22 2c 22 6d 61 78 46 65 65 50 65 "type","maxFeePe 00033270: 72 47 61 73 22 2c 22 6d 61 78 50 72 69 6f 72 69 rGas","maxPriori 00033280: 74 79 46 65 65 50 65 72 47 61 73 22 2c 22 6e 6f tyFeePerGas","no 00033290: 6e 63 65 22 2c 22 76 61 6c 75 65 22 5d 2e 66 6f nce","value"].fo 000332a0: 72 45 61 63 68 28 28 66 75 6e 63 74 69 6f 6e 28 rEach((function( 000332b0: 74 29 7b 69 66 28 6e 75 6c 6c 3d 3d 65 5b 74 5d t){if(null==e[t] 000332c0: 29 72 65 74 75 72 6e 3b 63 6f 6e 73 74 20 6e 3d )return;const n= 000332d0: 44 28 59 2e 66 72 6f 6d 28 65 5b 74 5d 29 29 3b D(Y.from(e[t])); 000332e0: 22 67 61 73 4c 69 6d 69 74 22 3d 3d 3d 74 26 26 "gasLimit"===t&& 000332f0: 28 74 3d 22 67 61 73 22 29 2c 72 5b 74 5d 3d 6e (t="gas"),r[t]=n 00033300: 7d 29 29 2c 5b 22 66 72 6f 6d 22 2c 22 74 6f 22 })),["from","to" 00033310: 2c 22 64 61 74 61 22 5d 2e 66 6f 72 45 61 63 68 ,"data"].forEach 00033320: 28 28 66 75 6e 63 74 69 6f 6e 28 74 29 7b 6e 75 ((function(t){nu 00033330: 6c 6c 21 3d 65 5b 74 5d 26 26 28 72 5b 74 5d 3d ll!=e[t]&&(r[t]= 00033340: 52 28 65 5b 74 5d 29 29 7d 29 29 2c 65 2e 61 63 R(e[t]))})),e.ac 00033350: 63 65 73 73 4c 69 73 74 26 26 28 72 2e 61 63 63 cessList&&(r.acc 00033360: 65 73 73 4c 69 73 74 3d 66 72 28 65 2e 61 63 63 essList=fr(e.acc 00033370: 65 73 73 4c 69 73 74 29 29 2c 72 7d 7d 6c 65 74 essList)),r}}let 00033380: 20 62 73 3d 6e 75 6c 6c 3b 74 72 79 7b 69 66 28 bs=null;try{if( 00033390: 62 73 3d 57 65 62 53 6f 63 6b 65 74 2c 6e 75 6c bs=WebSocket,nul 000333a0: 6c 3d 3d 62 73 29 74 68 72 6f 77 20 6e 65 77 20 l==bs)throw new 000333b0: 45 72 72 6f 72 28 22 69 6e 6a 65 63 74 20 70 6c Error("inject pl 000333c0: 65 61 73 65 22 29 7d 63 61 74 63 68 28 65 29 7b ease")}catch(e){ 000333d0: 63 6f 6e 73 74 20 74 3d 6e 65 77 20 79 28 41 61 const t=new y(Aa 000333e0: 29 3b 62 73 3d 66 75 6e 63 74 69 6f 6e 28 29 7b );bs=function(){ 000333f0: 74 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 57 65 t.throwError("We 00033400: 62 53 6f 63 6b 65 74 73 20 6e 6f 74 20 73 75 70 bSockets not sup 00033410: 70 6f 72 74 65 64 20 69 6e 20 74 68 69 73 20 65 ported in this e 00033420: 6e 76 69 72 6f 6e 6d 65 6e 74 22 2c 79 2e 65 72 nvironment",y.er 00033430: 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 rors.UNSUPPORTED 00033440: 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 _OPERATION,{oper 00033450: 61 74 69 6f 6e 3a 22 6e 65 77 20 57 65 62 53 6f ation:"new WebSo 00033460: 63 6b 65 74 28 29 22 7d 29 7d 7d 76 61 72 20 79 cket()"})}}var y 00033470: 73 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e s=function(e,t,n 00033480: 2c 72 29 7b 72 65 74 75 72 6e 20 6e 65 77 28 6e ,r){return new(n 00033490: 7c 7c 28 6e 3d 50 72 6f 6d 69 73 65 29 29 28 28 ||(n=Promise))(( 000334a0: 66 75 6e 63 74 69 6f 6e 28 6f 2c 69 29 7b 66 75 function(o,i){fu 000334b0: 6e 63 74 69 6f 6e 20 61 28 65 29 7b 74 72 79 7b nction a(e){try{ 000334c0: 6c 28 72 2e 6e 65 78 74 28 65 29 29 7d 63 61 74 l(r.next(e))}cat 000334d0: 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 ch(e){i(e)}}func 000334e0: 74 69 6f 6e 20 73 28 65 29 7b 74 72 79 7b 6c 28 tion s(e){try{l( 000334f0: 72 2e 74 68 72 6f 77 28 65 29 29 7d 63 61 74 63 r.throw(e))}catc 00033500: 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 h(e){i(e)}}funct 00033510: 69 6f 6e 20 6c 28 65 29 7b 76 61 72 20 74 3b 65 ion l(e){var t;e 00033520: 2e 64 6f 6e 65 3f 6f 28 65 2e 76 61 6c 75 65 29 .done?o(e.value) 00033530: 3a 28 74 3d 65 2e 76 61 6c 75 65 2c 74 20 69 6e :(t=e.value,t in 00033540: 73 74 61 6e 63 65 6f 66 20 6e 3f 74 3a 6e 65 77 stanceof n?t:new 00033550: 20 6e 28 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b n((function(e){ 00033560: 65 28 74 29 7d 29 29 29 2e 74 68 65 6e 28 61 2c e(t)}))).then(a, 00033570: 73 29 7d 6c 28 28 72 3d 72 2e 61 70 70 6c 79 28 s)}l((r=r.apply( 00033580: 65 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 78 74 28 29 e,t||[])).next() 00033590: 29 7d 29 29 7d 3b 63 6f 6e 73 74 20 76 73 3d 6e )}))};const vs=n 000335a0: 65 77 20 79 28 41 61 29 3b 6c 65 74 20 53 73 3d ew y(Aa);let Ss= 000335b0: 31 3b 63 6c 61 73 73 20 45 73 20 65 78 74 65 6e 1;class Es exten 000335c0: 64 73 20 67 73 7b 63 6f 6e 73 74 72 75 63 74 6f ds gs{constructo 000335d0: 72 28 65 2c 74 29 7b 22 61 6e 79 22 3d 3d 3d 74 r(e,t){"any"===t 000335e0: 26 26 76 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 &&vs.throwError( 000335f0: 22 57 65 62 53 6f 63 6b 65 74 50 72 6f 76 69 64 "WebSocketProvid 00033600: 65 72 20 64 6f 65 73 20 6e 6f 74 20 73 75 70 70 er does not supp 00033610: 6f 72 74 20 27 61 6e 79 27 20 6e 65 74 77 6f 72 ort 'any' networ 00033620: 6b 20 79 65 74 22 2c 79 2e 65 72 72 6f 72 73 2e k yet",y.errors. 00033630: 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 UNSUPPORTED_OPER 00033640: 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e ATION,{operation 00033650: 3a 22 6e 65 74 77 6f 72 6b 3a 61 6e 79 22 7d 29 :"network:any"}) 00033660: 2c 73 75 70 65 72 28 22 73 74 72 69 6e 67 22 3d ,super("string"= 00033670: 3d 74 79 70 65 6f 66 20 65 3f 65 3a 22 5f 77 65 =typeof e?e:"_we 00033680: 62 73 6f 63 6b 65 74 22 2c 74 29 2c 74 68 69 73 bsocket",t),this 00033690: 2e 5f 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 ._pollingInterva 000336a0: 6c 3d 2d 31 2c 74 68 69 73 2e 5f 77 73 52 65 61 l=-1,this._wsRea 000336b0: 64 79 3d 21 31 2c 74 65 28 74 68 69 73 2c 22 5f dy=!1,te(this,"_ 000336c0: 77 65 62 73 6f 63 6b 65 74 22 2c 22 73 74 72 69 websocket","stri 000336d0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 6e 65 ng"==typeof e?ne 000336e0: 77 20 62 73 28 74 68 69 73 2e 63 6f 6e 6e 65 63 w bs(this.connec 000336f0: 74 69 6f 6e 2e 75 72 6c 29 3a 65 29 2c 74 65 28 tion.url):e),te( 00033700: 74 68 69 73 2c 22 5f 72 65 71 75 65 73 74 73 22 this,"_requests" 00033710: 2c 7b 7d 29 2c 74 65 28 74 68 69 73 2c 22 5f 73 ,{}),te(this,"_s 00033720: 75 62 73 22 2c 7b 7d 29 2c 74 65 28 74 68 69 73 ubs",{}),te(this 00033730: 2c 22 5f 73 75 62 49 64 73 22 2c 7b 7d 29 2c 74 ,"_subIds",{}),t 00033740: 65 28 74 68 69 73 2c 22 5f 64 65 74 65 63 74 4e e(this,"_detectN 00033750: 65 74 77 6f 72 6b 22 2c 73 75 70 65 72 2e 64 65 etwork",super.de 00033760: 74 65 63 74 4e 65 74 77 6f 72 6b 28 29 29 2c 74 tectNetwork()),t 00033770: 68 69 73 2e 77 65 62 73 6f 63 6b 65 74 2e 6f 6e his.websocket.on 00033780: 6f 70 65 6e 3d 28 29 3d 3e 7b 74 68 69 73 2e 5f open=()=>{this._ 00033790: 77 73 52 65 61 64 79 3d 21 30 2c 4f 62 6a 65 63 wsReady=!0,Objec 000337a0: 74 2e 6b 65 79 73 28 74 68 69 73 2e 5f 72 65 71 t.keys(this._req 000337b0: 75 65 73 74 73 29 2e 66 6f 72 45 61 63 68 28 28 uests).forEach(( 000337c0: 65 3d 3e 7b 74 68 69 73 2e 77 65 62 73 6f 63 6b e=>{this.websock 000337d0: 65 74 2e 73 65 6e 64 28 74 68 69 73 2e 5f 72 65 et.send(this._re 000337e0: 71 75 65 73 74 73 5b 65 5d 2e 70 61 79 6c 6f 61 quests[e].payloa 000337f0: 64 29 7d 29 29 7d 2c 74 68 69 73 2e 77 65 62 73 d)}))},this.webs 00033800: 6f 63 6b 65 74 2e 6f 6e 6d 65 73 73 61 67 65 3d ocket.onmessage= 00033810: 65 3d 3e 7b 63 6f 6e 73 74 20 74 3d 65 2e 64 61 e=>{const t=e.da 00033820: 74 61 2c 6e 3d 4a 53 4f 4e 2e 70 61 72 73 65 28 ta,n=JSON.parse( 00033830: 74 29 3b 69 66 28 6e 75 6c 6c 21 3d 6e 2e 69 64 t);if(null!=n.id 00033840: 29 7b 63 6f 6e 73 74 20 65 3d 53 74 72 69 6e 67 ){const e=String 00033850: 28 6e 2e 69 64 29 2c 72 3d 74 68 69 73 2e 5f 72 (n.id),r=this._r 00033860: 65 71 75 65 73 74 73 5b 65 5d 3b 69 66 28 64 65 equests[e];if(de 00033870: 6c 65 74 65 20 74 68 69 73 2e 5f 72 65 71 75 65 lete this._reque 00033880: 73 74 73 5b 65 5d 2c 76 6f 69 64 20 30 21 3d 3d sts[e],void 0!== 00033890: 6e 2e 72 65 73 75 6c 74 29 72 2e 63 61 6c 6c 62 n.result)r.callb 000338a0: 61 63 6b 28 6e 75 6c 6c 2c 6e 2e 72 65 73 75 6c ack(null,n.resul 000338b0: 74 29 2c 74 68 69 73 2e 65 6d 69 74 28 22 64 65 t),this.emit("de 000338c0: 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 bug",{action:"re 000338d0: 73 70 6f 6e 73 65 22 2c 72 65 71 75 65 73 74 3a sponse",request: 000338e0: 4a 53 4f 4e 2e 70 61 72 73 65 28 72 2e 70 61 79 JSON.parse(r.pay 000338f0: 6c 6f 61 64 29 2c 72 65 73 70 6f 6e 73 65 3a 6e load),response:n 00033900: 2e 72 65 73 75 6c 74 2c 70 72 6f 76 69 64 65 72 .result,provider 00033910: 3a 74 68 69 73 7d 29 3b 65 6c 73 65 7b 6c 65 74 :this});else{let 00033920: 20 65 3d 6e 75 6c 6c 3b 6e 2e 65 72 72 6f 72 3f e=null;n.error? 00033930: 28 65 3d 6e 65 77 20 45 72 72 6f 72 28 6e 2e 65 (e=new Error(n.e 00033940: 72 72 6f 72 2e 6d 65 73 73 61 67 65 7c 7c 22 75 rror.message||"u 00033950: 6e 6b 6e 6f 77 6e 20 65 72 72 6f 72 22 29 2c 74 nknown error"),t 00033960: 65 28 65 2c 22 63 6f 64 65 22 2c 6e 2e 65 72 72 e(e,"code",n.err 00033970: 6f 72 2e 63 6f 64 65 7c 7c 6e 75 6c 6c 29 2c 74 or.code||null),t 00033980: 65 28 65 2c 22 72 65 73 70 6f 6e 73 65 22 2c 74 e(e,"response",t 00033990: 29 29 3a 65 3d 6e 65 77 20 45 72 72 6f 72 28 22 )):e=new Error(" 000339a0: 75 6e 6b 6e 6f 77 6e 20 65 72 72 6f 72 22 29 2c unknown error"), 000339b0: 72 2e 63 61 6c 6c 62 61 63 6b 28 65 2c 76 6f 69 r.callback(e,voi 000339c0: 64 20 30 29 2c 74 68 69 73 2e 65 6d 69 74 28 22 d 0),this.emit(" 000339d0: 64 65 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 debug",{action:" 000339e0: 72 65 73 70 6f 6e 73 65 22 2c 65 72 72 6f 72 3a response",error: 000339f0: 65 2c 72 65 71 75 65 73 74 3a 4a 53 4f 4e 2e 70 e,request:JSON.p 00033a00: 61 72 73 65 28 72 2e 70 61 79 6c 6f 61 64 29 2c arse(r.payload), 00033a10: 70 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 7d provider:this})} 00033a20: 7d 65 6c 73 65 20 69 66 28 22 65 74 68 5f 73 75 }else if("eth_su 00033a30: 62 73 63 72 69 70 74 69 6f 6e 22 3d 3d 3d 6e 2e bscription"===n. 00033a40: 6d 65 74 68 6f 64 29 7b 63 6f 6e 73 74 20 65 3d method){const e= 00033a50: 74 68 69 73 2e 5f 73 75 62 73 5b 6e 2e 70 61 72 this._subs[n.par 00033a60: 61 6d 73 2e 73 75 62 73 63 72 69 70 74 69 6f 6e ams.subscription 00033a70: 5d 3b 65 26 26 65 2e 70 72 6f 63 65 73 73 46 75 ];e&&e.processFu 00033a80: 6e 63 28 6e 2e 70 61 72 61 6d 73 2e 72 65 73 75 nc(n.params.resu 00033a90: 6c 74 29 7d 65 6c 73 65 20 63 6f 6e 73 6f 6c 65 lt)}else console 00033aa0: 2e 77 61 72 6e 28 22 74 68 69 73 20 73 68 6f 75 .warn("this shou 00033ab0: 6c 64 20 6e 6f 74 20 68 61 70 70 65 6e 22 29 7d ld not happen")} 00033ac0: 3b 63 6f 6e 73 74 20 6e 3d 73 65 74 49 6e 74 65 ;const n=setInte 00033ad0: 72 76 61 6c 28 28 28 29 3d 3e 7b 74 68 69 73 2e rval((()=>{this. 00033ae0: 65 6d 69 74 28 22 70 6f 6c 6c 22 29 7d 29 2c 31 emit("poll")}),1 00033af0: 65 33 29 3b 6e 2e 75 6e 72 65 66 26 26 6e 2e 75 e3);n.unref&&n.u 00033b00: 6e 72 65 66 28 29 7d 67 65 74 20 77 65 62 73 6f nref()}get webso 00033b10: 63 6b 65 74 28 29 7b 72 65 74 75 72 6e 20 74 68 cket(){return th 00033b20: 69 73 2e 5f 77 65 62 73 6f 63 6b 65 74 7d 64 65 is._websocket}de 00033b30: 74 65 63 74 4e 65 74 77 6f 72 6b 28 29 7b 72 65 tectNetwork(){re 00033b40: 74 75 72 6e 20 74 68 69 73 2e 5f 64 65 74 65 63 turn this._detec 00033b50: 74 4e 65 74 77 6f 72 6b 7d 67 65 74 20 70 6f 6c tNetwork}get pol 00033b60: 6c 69 6e 67 49 6e 74 65 72 76 61 6c 28 29 7b 72 lingInterval(){r 00033b70: 65 74 75 72 6e 20 30 7d 72 65 73 65 74 45 76 65 eturn 0}resetEve 00033b80: 6e 74 73 42 6c 6f 63 6b 28 65 29 7b 76 73 2e 74 ntsBlock(e){vs.t 00033b90: 68 72 6f 77 45 72 72 6f 72 28 22 63 61 6e 6e 6f hrowError("canno 00033ba0: 74 20 72 65 73 65 74 20 65 76 65 6e 74 73 20 62 t reset events b 00033bb0: 6c 6f 63 6b 20 6f 6e 20 57 65 62 53 6f 63 6b 65 lock on WebSocke 00033bc0: 74 50 72 6f 76 69 64 65 72 22 2c 79 2e 65 72 72 tProvider",y.err 00033bd0: 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f ors.UNSUPPORTED_ 00033be0: 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 OPERATION,{opera 00033bf0: 74 69 6f 6e 3a 22 72 65 73 65 74 45 76 65 6e 74 tion:"resetEvent 00033c00: 42 6c 6f 63 6b 22 7d 29 7d 73 65 74 20 70 6f 6c Block"})}set pol 00033c10: 6c 69 6e 67 49 6e 74 65 72 76 61 6c 28 65 29 7b lingInterval(e){ 00033c20: 76 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 63 vs.throwError("c 00033c30: 61 6e 6e 6f 74 20 73 65 74 20 70 6f 6c 6c 69 6e annot set pollin 00033c40: 67 20 69 6e 74 65 72 76 61 6c 20 6f 6e 20 57 65 g interval on We 00033c50: 62 53 6f 63 6b 65 74 50 72 6f 76 69 64 65 72 22 bSocketProvider" 00033c60: 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 ,y.errors.UNSUPP 00033c70: 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c ORTED_OPERATION, 00033c80: 7b 6f 70 65 72 61 74 69 6f 6e 3a 22 73 65 74 50 {operation:"setP 00033c90: 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 6c 22 7d ollingInterval"} 00033ca0: 29 7d 70 6f 6c 6c 28 29 7b 72 65 74 75 72 6e 20 )}poll(){return 00033cb0: 79 73 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 ys(this,void 0,v 00033cc0: 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a oid 0,(function* 00033cd0: 28 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 7d 29 (){return null}) 00033ce0: 29 7d 73 65 74 20 70 6f 6c 6c 69 6e 67 28 65 29 )}set polling(e) 00033cf0: 7b 65 26 26 76 73 2e 74 68 72 6f 77 45 72 72 6f {e&&vs.throwErro 00033d00: 72 28 22 63 61 6e 6e 6f 74 20 73 65 74 20 70 6f r("cannot set po 00033d10: 6c 6c 69 6e 67 20 6f 6e 20 57 65 62 53 6f 63 6b lling on WebSock 00033d20: 65 74 50 72 6f 76 69 64 65 72 22 2c 79 2e 65 72 etProvider",y.er 00033d30: 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 rors.UNSUPPORTED 00033d40: 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 _OPERATION,{oper 00033d50: 61 74 69 6f 6e 3a 22 73 65 74 50 6f 6c 6c 69 6e ation:"setPollin 00033d60: 67 22 7d 29 7d 73 65 6e 64 28 65 2c 74 29 7b 63 g"})}send(e,t){c 00033d70: 6f 6e 73 74 20 6e 3d 53 73 2b 2b 3b 72 65 74 75 onst n=Ss++;retu 00033d80: 72 6e 20 6e 65 77 20 50 72 6f 6d 69 73 65 28 28 rn new Promise(( 00033d90: 28 72 2c 6f 29 3d 3e 7b 63 6f 6e 73 74 20 69 3d (r,o)=>{const i= 00033da0: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 7b JSON.stringify({ 00033db0: 6d 65 74 68 6f 64 3a 65 2c 70 61 72 61 6d 73 3a method:e,params: 00033dc0: 74 2c 69 64 3a 6e 2c 6a 73 6f 6e 72 70 63 3a 22 t,id:n,jsonrpc:" 00033dd0: 32 2e 30 22 7d 29 3b 74 68 69 73 2e 65 6d 69 74 2.0"});this.emit 00033de0: 28 22 64 65 62 75 67 22 2c 7b 61 63 74 69 6f 6e ("debug",{action 00033df0: 3a 22 72 65 71 75 65 73 74 22 2c 72 65 71 75 65 :"request",reque 00033e00: 73 74 3a 4a 53 4f 4e 2e 70 61 72 73 65 28 69 29 st:JSON.parse(i) 00033e10: 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 ,provider:this}) 00033e20: 2c 74 68 69 73 2e 5f 72 65 71 75 65 73 74 73 5b ,this._requests[ 00033e30: 53 74 72 69 6e 67 28 6e 29 5d 3d 7b 63 61 6c 6c String(n)]={call 00033e40: 62 61 63 6b 3a 66 75 6e 63 74 69 6f 6e 28 65 2c back:function(e, 00033e50: 74 29 7b 72 65 74 75 72 6e 20 65 3f 6f 28 65 29 t){return e?o(e) 00033e60: 3a 72 28 74 29 7d 2c 70 61 79 6c 6f 61 64 3a 69 :r(t)},payload:i 00033e70: 7d 2c 74 68 69 73 2e 5f 77 73 52 65 61 64 79 26 },this._wsReady& 00033e80: 26 74 68 69 73 2e 77 65 62 73 6f 63 6b 65 74 2e &this.websocket. 00033e90: 73 65 6e 64 28 69 29 7d 29 29 7d 73 74 61 74 69 send(i)}))}stati 00033ea0: 63 20 64 65 66 61 75 6c 74 55 72 6c 28 29 7b 72 c defaultUrl(){r 00033eb0: 65 74 75 72 6e 22 77 73 3a 2f 2f 6c 6f 63 61 6c eturn"ws://local 00033ec0: 68 6f 73 74 3a 38 35 34 36 22 7d 5f 73 75 62 73 host:8546"}_subs 00033ed0: 63 72 69 62 65 28 65 2c 74 2c 6e 29 7b 72 65 74 cribe(e,t,n){ret 00033ee0: 75 72 6e 20 79 73 28 74 68 69 73 2c 76 6f 69 64 urn ys(this,void 00033ef0: 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 0,void 0,(funct 00033f00: 69 6f 6e 2a 28 29 7b 6c 65 74 20 72 3d 74 68 69 ion*(){let r=thi 00033f10: 73 2e 5f 73 75 62 49 64 73 5b 65 5d 3b 6e 75 6c s._subIds[e];nul 00033f20: 6c 3d 3d 72 26 26 28 72 3d 50 72 6f 6d 69 73 65 l==r&&(r=Promise 00033f30: 2e 61 6c 6c 28 74 29 2e 74 68 65 6e 28 28 65 3d .all(t).then((e= 00033f40: 3e 74 68 69 73 2e 73 65 6e 64 28 22 65 74 68 5f >this.send("eth_ 00033f50: 73 75 62 73 63 72 69 62 65 22 2c 65 29 29 29 2c subscribe",e))), 00033f60: 74 68 69 73 2e 5f 73 75 62 49 64 73 5b 65 5d 3d this._subIds[e]= 00033f70: 72 29 3b 63 6f 6e 73 74 20 6f 3d 79 69 65 6c 64 r);const o=yield 00033f80: 20 72 3b 74 68 69 73 2e 5f 73 75 62 73 5b 6f 5d r;this._subs[o] 00033f90: 3d 7b 74 61 67 3a 65 2c 70 72 6f 63 65 73 73 46 ={tag:e,processF 00033fa0: 75 6e 63 3a 6e 7d 7d 29 29 7d 5f 73 74 61 72 74 unc:n}}))}_start 00033fb0: 45 76 65 6e 74 28 65 29 7b 73 77 69 74 63 68 28 Event(e){switch( 00033fc0: 65 2e 74 79 70 65 29 7b 63 61 73 65 22 62 6c 6f e.type){case"blo 00033fd0: 63 6b 22 3a 74 68 69 73 2e 5f 73 75 62 73 63 72 ck":this._subscr 00033fe0: 69 62 65 28 22 62 6c 6f 63 6b 22 2c 5b 22 6e 65 ibe("block",["ne 00033ff0: 77 48 65 61 64 73 22 5d 2c 28 65 3d 3e 7b 63 6f wHeads"],(e=>{co 00034000: 6e 73 74 20 74 3d 59 2e 66 72 6f 6d 28 65 2e 6e nst t=Y.from(e.n 00034010: 75 6d 62 65 72 29 2e 74 6f 4e 75 6d 62 65 72 28 umber).toNumber( 00034020: 29 3b 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 2e );this._emitted. 00034030: 62 6c 6f 63 6b 3d 74 2c 74 68 69 73 2e 65 6d 69 block=t,this.emi 00034040: 74 28 22 62 6c 6f 63 6b 22 2c 74 29 7d 29 29 3b t("block",t)})); 00034050: 62 72 65 61 6b 3b 63 61 73 65 22 70 65 6e 64 69 break;case"pendi 00034060: 6e 67 22 3a 74 68 69 73 2e 5f 73 75 62 73 63 72 ng":this._subscr 00034070: 69 62 65 28 22 70 65 6e 64 69 6e 67 22 2c 5b 22 ibe("pending",[" 00034080: 6e 65 77 50 65 6e 64 69 6e 67 54 72 61 6e 73 61 newPendingTransa 00034090: 63 74 69 6f 6e 73 22 5d 2c 28 65 3d 3e 7b 74 68 ctions"],(e=>{th 000340a0: 69 73 2e 65 6d 69 74 28 22 70 65 6e 64 69 6e 67 is.emit("pending 000340b0: 22 2c 65 29 7d 29 29 3b 62 72 65 61 6b 3b 63 61 ",e)}));break;ca 000340c0: 73 65 22 66 69 6c 74 65 72 22 3a 74 68 69 73 2e se"filter":this. 000340d0: 5f 73 75 62 73 63 72 69 62 65 28 65 2e 74 61 67 _subscribe(e.tag 000340e0: 2c 5b 22 6c 6f 67 73 22 2c 74 68 69 73 2e 5f 67 ,["logs",this._g 000340f0: 65 74 46 69 6c 74 65 72 28 65 2e 66 69 6c 74 65 etFilter(e.filte 00034100: 72 29 5d 2c 28 74 3d 3e 7b 6e 75 6c 6c 3d 3d 74 r)],(t=>{null==t 00034110: 2e 72 65 6d 6f 76 65 64 26 26 28 74 2e 72 65 6d .removed&&(t.rem 00034120: 6f 76 65 64 3d 21 31 29 2c 74 68 69 73 2e 65 6d oved=!1),this.em 00034130: 69 74 28 65 2e 66 69 6c 74 65 72 2c 74 68 69 73 it(e.filter,this 00034140: 2e 66 6f 72 6d 61 74 74 65 72 2e 66 69 6c 74 65 .formatter.filte 00034150: 72 4c 6f 67 28 74 29 29 7d 29 29 3b 62 72 65 61 rLog(t))}));brea 00034160: 6b 3b 63 61 73 65 22 74 78 22 3a 7b 63 6f 6e 73 k;case"tx":{cons 00034170: 74 20 74 3d 65 3d 3e 7b 63 6f 6e 73 74 20 74 3d t t=e=>{const t= 00034180: 65 2e 68 61 73 68 3b 74 68 69 73 2e 67 65 74 54 e.hash;this.getT 00034190: 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 65 69 70 ransactionReceip 000341a0: 74 28 74 29 2e 74 68 65 6e 28 28 65 3d 3e 7b 65 t(t).then((e=>{e 000341b0: 26 26 74 68 69 73 2e 65 6d 69 74 28 74 2c 65 29 &&this.emit(t,e) 000341c0: 7d 29 29 7d 3b 74 28 65 29 2c 74 68 69 73 2e 5f }))};t(e),this._ 000341d0: 73 75 62 73 63 72 69 62 65 28 22 74 78 22 2c 5b subscribe("tx",[ 000341e0: 22 6e 65 77 48 65 61 64 73 22 5d 2c 28 65 3d 3e "newHeads"],(e=> 000341f0: 7b 74 68 69 73 2e 5f 65 76 65 6e 74 73 2e 66 69 {this._events.fi 00034200: 6c 74 65 72 28 28 65 3d 3e 22 74 78 22 3d 3d 3d lter((e=>"tx"=== 00034210: 65 2e 74 79 70 65 29 29 2e 66 6f 72 45 61 63 68 e.type)).forEach 00034220: 28 74 29 7d 29 29 3b 62 72 65 61 6b 7d 63 61 73 (t)}));break}cas 00034230: 65 22 64 65 62 75 67 22 3a 63 61 73 65 22 70 6f e"debug":case"po 00034240: 6c 6c 22 3a 63 61 73 65 22 77 69 6c 6c 50 6f 6c ll":case"willPol 00034250: 6c 22 3a 63 61 73 65 22 64 69 64 50 6f 6c 6c 22 l":case"didPoll" 00034260: 3a 63 61 73 65 22 65 72 72 6f 72 22 3a 62 72 65 :case"error":bre 00034270: 61 6b 3b 64 65 66 61 75 6c 74 3a 63 6f 6e 73 6f ak;default:conso 00034280: 6c 65 2e 6c 6f 67 28 22 75 6e 68 61 6e 64 6c 65 le.log("unhandle 00034290: 64 3a 22 2c 65 29 7d 7d 5f 73 74 6f 70 45 76 65 d:",e)}}_stopEve 000342a0: 6e 74 28 65 29 7b 6c 65 74 20 74 3d 65 2e 74 61 nt(e){let t=e.ta 000342b0: 67 3b 69 66 28 22 74 78 22 3d 3d 3d 65 2e 74 79 g;if("tx"===e.ty 000342c0: 70 65 29 7b 69 66 28 74 68 69 73 2e 5f 65 76 65 pe){if(this._eve 000342d0: 6e 74 73 2e 66 69 6c 74 65 72 28 28 65 3d 3e 22 nts.filter((e=>" 000342e0: 74 78 22 3d 3d 3d 65 2e 74 79 70 65 29 29 2e 6c tx"===e.type)).l 000342f0: 65 6e 67 74 68 29 72 65 74 75 72 6e 3b 74 3d 22 ength)return;t=" 00034300: 74 78 22 7d 65 6c 73 65 20 69 66 28 74 68 69 73 tx"}else if(this 00034310: 2e 6c 69 73 74 65 6e 65 72 43 6f 75 6e 74 28 65 .listenerCount(e 00034320: 2e 65 76 65 6e 74 29 29 72 65 74 75 72 6e 3b 63 .event))return;c 00034330: 6f 6e 73 74 20 6e 3d 74 68 69 73 2e 5f 73 75 62 onst n=this._sub 00034340: 49 64 73 5b 74 5d 3b 6e 26 26 28 64 65 6c 65 74 Ids[t];n&&(delet 00034350: 65 20 74 68 69 73 2e 5f 73 75 62 49 64 73 5b 74 e this._subIds[t 00034360: 5d 2c 6e 2e 74 68 65 6e 28 28 65 3d 3e 7b 74 68 ],n.then((e=>{th 00034370: 69 73 2e 5f 73 75 62 73 5b 65 5d 26 26 28 64 65 is._subs[e]&&(de 00034380: 6c 65 74 65 20 74 68 69 73 2e 5f 73 75 62 73 5b lete this._subs[ 00034390: 65 5d 2c 74 68 69 73 2e 73 65 6e 64 28 22 65 74 e],this.send("et 000343a0: 68 5f 75 6e 73 75 62 73 63 72 69 62 65 22 2c 5b h_unsubscribe",[ 000343b0: 65 5d 29 29 7d 29 29 29 7d 64 65 73 74 72 6f 79 e]))})))}destroy 000343c0: 28 29 7b 72 65 74 75 72 6e 20 79 73 28 74 68 69 (){return ys(thi 000343d0: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 000343e0: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 74 68 69 (function*(){thi 000343f0: 73 2e 77 65 62 73 6f 63 6b 65 74 2e 72 65 61 64 s.websocket.read 00034400: 79 53 74 61 74 65 3d 3d 3d 62 73 2e 43 4f 4e 4e yState===bs.CONN 00034410: 45 43 54 49 4e 47 26 26 28 79 69 65 6c 64 20 6e ECTING&&(yield n 00034420: 65 77 20 50 72 6f 6d 69 73 65 28 28 65 3d 3e 7b ew Promise((e=>{ 00034430: 74 68 69 73 2e 77 65 62 73 6f 63 6b 65 74 2e 6f this.websocket.o 00034440: 6e 6f 70 65 6e 3d 66 75 6e 63 74 69 6f 6e 28 29 nopen=function() 00034450: 7b 65 28 21 30 29 7d 2c 74 68 69 73 2e 77 65 62 {e(!0)},this.web 00034460: 73 6f 63 6b 65 74 2e 6f 6e 65 72 72 6f 72 3d 66 socket.onerror=f 00034470: 75 6e 63 74 69 6f 6e 28 29 7b 65 28 21 31 29 7d unction(){e(!1)} 00034480: 7d 29 29 29 2c 74 68 69 73 2e 77 65 62 73 6f 63 }))),this.websoc 00034490: 6b 65 74 2e 63 6c 6f 73 65 28 31 65 33 29 7d 29 ket.close(1e3)}) 000344a0: 29 7d 7d 76 61 72 20 5f 73 3d 66 75 6e 63 74 69 )}}var _s=functi 000344b0: 6f 6e 28 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 on(e,t,n,r){retu 000344c0: 72 6e 20 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f rn new(n||(n=Pro 000344d0: 6d 69 73 65 29 29 28 28 66 75 6e 63 74 69 6f 6e mise))((function 000344e0: 28 6f 2c 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 (o,i){function a 000344f0: 28 65 29 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 (e){try{l(r.next 00034500: 28 65 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 (e))}catch(e){i( 00034510: 65 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 e)}}function s(e 00034520: 29 7b 74 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 ){try{l(r.throw( 00034530: 65 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 e))}catch(e){i(e 00034540: 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 )}}function l(e) 00034550: 7b 76 61 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 {var t;e.done?o( 00034560: 65 2e 76 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 e.value):(t=e.va 00034570: 6c 75 65 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 lue,t instanceof 00034580: 20 6e 3f 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 n?t:new n((func 00034590: 74 69 6f 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 tion(e){e(t)}))) 000345a0: 2e 74 68 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d .then(a,s)}l((r= 000345b0: 72 2e 61 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 r.apply(e,t||[]) 000345c0: 29 2e 6e 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f ).next())}))};co 000345d0: 6e 73 74 20 77 73 3d 6e 65 77 20 79 28 41 61 29 nst ws=new y(Aa) 000345e0: 3b 63 6c 61 73 73 20 78 73 20 65 78 74 65 6e 64 ;class xs extend 000345f0: 73 20 67 73 7b 64 65 74 65 63 74 4e 65 74 77 6f s gs{detectNetwo 00034600: 72 6b 28 29 7b 63 6f 6e 73 74 20 65 3d 4f 62 6a rk(){const e=Obj 00034610: 65 63 74 2e 63 72 65 61 74 65 28 6e 75 6c 6c 2c ect.create(null, 00034620: 7b 64 65 74 65 63 74 4e 65 74 77 6f 72 6b 3a 7b {detectNetwork:{ 00034630: 67 65 74 3a 28 29 3d 3e 73 75 70 65 72 2e 64 65 get:()=>super.de 00034640: 74 65 63 74 4e 65 74 77 6f 72 6b 7d 7d 29 3b 72 tectNetwork}});r 00034650: 65 74 75 72 6e 20 5f 73 28 74 68 69 73 2c 76 6f eturn _s(this,vo 00034660: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 00034670: 63 74 69 6f 6e 2a 28 29 7b 6c 65 74 20 74 3d 74 ction*(){let t=t 00034680: 68 69 73 2e 6e 65 74 77 6f 72 6b 3b 72 65 74 75 his.network;retu 00034690: 72 6e 20 6e 75 6c 6c 3d 3d 74 26 26 28 74 3d 79 rn null==t&&(t=y 000346a0: 69 65 6c 64 20 65 2e 64 65 74 65 63 74 4e 65 74 ield e.detectNet 000346b0: 77 6f 72 6b 2e 63 61 6c 6c 28 74 68 69 73 29 2c work.call(this), 000346c0: 74 7c 7c 77 73 2e 74 68 72 6f 77 45 72 72 6f 72 t||ws.throwError 000346d0: 28 22 6e 6f 20 6e 65 74 77 6f 72 6b 20 64 65 74 ("no network det 000346e0: 65 63 74 65 64 22 2c 79 2e 65 72 72 6f 72 73 2e ected",y.errors. 000346f0: 55 4e 4b 4e 4f 57 4e 5f 45 52 52 4f 52 2c 7b 7d UNKNOWN_ERROR,{} 00034700: 29 2c 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f 6e 65 ),null==this._ne 00034710: 74 77 6f 72 6b 26 26 28 74 65 28 74 68 69 73 2c twork&&(te(this, 00034720: 22 5f 6e 65 74 77 6f 72 6b 22 2c 74 29 2c 74 68 "_network",t),th 00034730: 69 73 2e 65 6d 69 74 28 22 6e 65 74 77 6f 72 6b is.emit("network 00034740: 22 2c 74 2c 6e 75 6c 6c 29 29 29 2c 74 7d 29 29 ",t,null))),t})) 00034750: 7d 7d 63 6c 61 73 73 20 54 73 20 65 78 74 65 6e }}class Ts exten 00034760: 64 73 20 78 73 7b 63 6f 6e 73 74 72 75 63 74 6f ds xs{constructo 00034770: 72 28 65 2c 74 29 7b 77 73 2e 63 68 65 63 6b 41 r(e,t){ws.checkA 00034780: 62 73 74 72 61 63 74 28 6e 65 77 2e 74 61 72 67 bstract(new.targ 00034790: 65 74 2c 54 73 29 2c 65 3d 6e 65 28 6e 65 77 2e et,Ts),e=ne(new. 000347a0: 74 61 72 67 65 74 2c 22 67 65 74 4e 65 74 77 6f target,"getNetwo 000347b0: 72 6b 22 29 28 65 29 2c 74 3d 6e 65 28 6e 65 77 rk")(e),t=ne(new 000347c0: 2e 74 61 72 67 65 74 2c 22 67 65 74 41 70 69 4b .target,"getApiK 000347d0: 65 79 22 29 28 74 29 3b 73 75 70 65 72 28 6e 65 ey")(t);super(ne 000347e0: 28 6e 65 77 2e 74 61 72 67 65 74 2c 22 67 65 74 (new.target,"get 000347f0: 55 72 6c 22 29 28 65 2c 74 29 2c 65 29 2c 22 73 Url")(e,t),e),"s 00034800: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 74 tring"==typeof t 00034810: 3f 74 65 28 74 68 69 73 2c 22 61 70 69 4b 65 79 ?te(this,"apiKey 00034820: 22 2c 74 29 3a 6e 75 6c 6c 21 3d 74 26 26 4f 62 ",t):null!=t&&Ob 00034830: 6a 65 63 74 2e 6b 65 79 73 28 74 29 2e 66 6f 72 ject.keys(t).for 00034840: 45 61 63 68 28 28 65 3d 3e 7b 74 65 28 74 68 69 Each((e=>{te(thi 00034850: 73 2c 65 2c 74 5b 65 5d 29 7d 29 29 7d 5f 73 74 s,e,t[e])}))}_st 00034860: 61 72 74 50 65 6e 64 69 6e 67 28 29 7b 77 73 2e artPending(){ws. 00034870: 77 61 72 6e 28 22 57 41 52 4e 49 4e 47 3a 20 41 warn("WARNING: A 00034880: 50 49 20 70 72 6f 76 69 64 65 72 20 64 6f 65 73 PI provider does 00034890: 20 6e 6f 74 20 73 75 70 70 6f 72 74 20 70 65 6e not support pen 000348a0: 64 69 6e 67 20 66 69 6c 74 65 72 73 22 29 7d 69 ding filters")}i 000348b0: 73 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f 75 72 sCommunityResour 000348c0: 63 65 28 29 7b 72 65 74 75 72 6e 21 31 7d 67 65 ce(){return!1}ge 000348d0: 74 53 69 67 6e 65 72 28 65 29 7b 72 65 74 75 72 tSigner(e){retur 000348e0: 6e 20 77 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 n ws.throwError( 000348f0: 22 41 50 49 20 70 72 6f 76 69 64 65 72 20 64 6f "API provider do 00034900: 65 73 20 6e 6f 74 20 73 75 70 70 6f 72 74 20 73 es not support s 00034910: 69 67 6e 69 6e 67 22 2c 79 2e 65 72 72 6f 72 73 igning",y.errors 00034920: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 00034930: 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f RATION,{operatio 00034940: 6e 3a 22 67 65 74 53 69 67 6e 65 72 22 7d 29 7d n:"getSigner"})} 00034950: 6c 69 73 74 41 63 63 6f 75 6e 74 73 28 29 7b 72 listAccounts(){r 00034960: 65 74 75 72 6e 20 50 72 6f 6d 69 73 65 2e 72 65 eturn Promise.re 00034970: 73 6f 6c 76 65 28 5b 5d 29 7d 73 74 61 74 69 63 solve([])}static 00034980: 20 67 65 74 41 70 69 4b 65 79 28 65 29 7b 72 65 getApiKey(e){re 00034990: 74 75 72 6e 20 65 7d 73 74 61 74 69 63 20 67 65 turn e}static ge 000349a0: 74 55 72 6c 28 65 2c 74 29 7b 72 65 74 75 72 6e tUrl(e,t){return 000349b0: 20 77 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 ws.throwError(" 000349c0: 6e 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 65 64 3b not implemented; 000349d0: 20 73 75 62 2d 63 6c 61 73 73 65 73 20 6d 75 73 sub-classes mus 000349e0: 74 20 6f 76 65 72 72 69 64 65 20 67 65 74 55 72 t override getUr 000349f0: 6c 22 2c 79 2e 65 72 72 6f 72 73 2e 4e 4f 54 5f l",y.errors.NOT_ 00034a00: 49 4d 50 4c 45 4d 45 4e 54 45 44 2c 7b 6f 70 65 IMPLEMENTED,{ope 00034a10: 72 61 74 69 6f 6e 3a 22 67 65 74 55 72 6c 22 7d ration:"getUrl"} 00034a20: 29 7d 7d 63 6f 6e 73 74 20 43 73 3d 6e 65 77 20 )}}const Cs=new 00034a30: 79 28 41 61 29 2c 41 73 3d 22 5f 67 67 37 77 53 y(Aa),As="_gg7wS 00034a40: 53 69 30 4b 4d 42 73 64 4b 6e 47 56 66 48 44 75 Si0KMBsdKnGVfHDu 00034a50: 65 71 36 78 4d 42 39 45 6b 43 22 3b 63 6c 61 73 eq6xMB9EkC";clas 00034a60: 73 20 6b 73 20 65 78 74 65 6e 64 73 20 45 73 7b s ks extends Es{ 00034a70: 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 29 constructor(e,t) 00034a80: 7b 63 6f 6e 73 74 20 6e 3d 6e 65 77 20 49 73 28 {const n=new Is( 00034a90: 65 2c 74 29 3b 73 75 70 65 72 28 6e 2e 63 6f 6e e,t);super(n.con 00034aa0: 6e 65 63 74 69 6f 6e 2e 75 72 6c 2e 72 65 70 6c nection.url.repl 00034ab0: 61 63 65 28 2f 5e 68 74 74 70 2f 69 2c 22 77 73 ace(/^http/i,"ws 00034ac0: 22 29 2e 72 65 70 6c 61 63 65 28 22 2e 61 6c 63 ").replace(".alc 00034ad0: 68 65 6d 79 61 70 69 2e 22 2c 22 2e 77 73 2e 61 hemyapi.",".ws.a 00034ae0: 6c 63 68 65 6d 79 61 70 69 2e 22 29 2c 6e 2e 6e lchemyapi."),n.n 00034af0: 65 74 77 6f 72 6b 29 2c 74 65 28 74 68 69 73 2c etwork),te(this, 00034b00: 22 61 70 69 4b 65 79 22 2c 6e 2e 61 70 69 4b 65 "apiKey",n.apiKe 00034b10: 79 29 7d 69 73 43 6f 6d 6d 75 6e 69 74 79 52 65 y)}isCommunityRe 00034b20: 73 6f 75 72 63 65 28 29 7b 72 65 74 75 72 6e 20 source(){return 00034b30: 74 68 69 73 2e 61 70 69 4b 65 79 3d 3d 3d 41 73 this.apiKey===As 00034b40: 7d 7d 63 6c 61 73 73 20 49 73 20 65 78 74 65 6e }}class Is exten 00034b50: 64 73 20 54 73 7b 73 74 61 74 69 63 20 67 65 74 ds Ts{static get 00034b60: 57 65 62 53 6f 63 6b 65 74 50 72 6f 76 69 64 65 WebSocketProvide 00034b70: 72 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 6e 65 r(e,t){return ne 00034b80: 77 20 6b 73 28 65 2c 74 29 7d 73 74 61 74 69 63 w ks(e,t)}static 00034b90: 20 67 65 74 41 70 69 4b 65 79 28 65 29 7b 72 65 getApiKey(e){re 00034ba0: 74 75 72 6e 20 6e 75 6c 6c 3d 3d 65 3f 41 73 3a turn null==e?As: 00034bb0: 28 65 26 26 22 73 74 72 69 6e 67 22 21 3d 74 79 (e&&"string"!=ty 00034bc0: 70 65 6f 66 20 65 26 26 43 73 2e 74 68 72 6f 77 peof e&&Cs.throw 00034bd0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 00034be0: 6e 76 61 6c 69 64 20 61 70 69 4b 65 79 22 2c 22 nvalid apiKey"," 00034bf0: 61 70 69 4b 65 79 22 2c 65 29 2c 65 29 7d 73 74 apiKey",e),e)}st 00034c00: 61 74 69 63 20 67 65 74 55 72 6c 28 65 2c 74 29 atic getUrl(e,t) 00034c10: 7b 6c 65 74 20 6e 3d 6e 75 6c 6c 3b 73 77 69 74 {let n=null;swit 00034c20: 63 68 28 65 2e 6e 61 6d 65 29 7b 63 61 73 65 22 ch(e.name){case" 00034c30: 68 6f 6d 65 73 74 65 61 64 22 3a 6e 3d 22 65 74 homestead":n="et 00034c40: 68 2d 6d 61 69 6e 6e 65 74 2e 61 6c 63 68 65 6d h-mainnet.alchem 00034c50: 79 61 70 69 2e 69 6f 2f 76 32 2f 22 3b 62 72 65 yapi.io/v2/";bre 00034c60: 61 6b 3b 63 61 73 65 22 67 6f 65 72 6c 69 22 3a ak;case"goerli": 00034c70: 6e 3d 22 65 74 68 2d 67 6f 65 72 6c 69 2e 67 2e n="eth-goerli.g. 00034c80: 61 6c 63 68 65 6d 79 2e 63 6f 6d 2f 76 32 2f 22 alchemy.com/v2/" 00034c90: 3b 62 72 65 61 6b 3b 63 61 73 65 22 6d 61 74 69 ;break;case"mati 00034ca0: 63 22 3a 6e 3d 22 70 6f 6c 79 67 6f 6e 2d 6d 61 c":n="polygon-ma 00034cb0: 69 6e 6e 65 74 2e 67 2e 61 6c 63 68 65 6d 79 2e innet.g.alchemy. 00034cc0: 63 6f 6d 2f 76 32 2f 22 3b 62 72 65 61 6b 3b 63 com/v2/";break;c 00034cd0: 61 73 65 22 6d 61 74 69 63 6d 75 6d 22 3a 6e 3d ase"maticmum":n= 00034ce0: 22 70 6f 6c 79 67 6f 6e 2d 6d 75 6d 62 61 69 2e "polygon-mumbai. 00034cf0: 67 2e 61 6c 63 68 65 6d 79 2e 63 6f 6d 2f 76 32 g.alchemy.com/v2 00034d00: 2f 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 61 72 /";break;case"ar 00034d10: 62 69 74 72 75 6d 22 3a 6e 3d 22 61 72 62 2d 6d bitrum":n="arb-m 00034d20: 61 69 6e 6e 65 74 2e 67 2e 61 6c 63 68 65 6d 79 ainnet.g.alchemy 00034d30: 2e 63 6f 6d 2f 76 32 2f 22 3b 62 72 65 61 6b 3b .com/v2/";break; 00034d40: 63 61 73 65 22 61 72 62 69 74 72 75 6d 2d 67 6f case"arbitrum-go 00034d50: 65 72 6c 69 22 3a 6e 3d 22 61 72 62 2d 67 6f 65 erli":n="arb-goe 00034d60: 72 6c 69 2e 67 2e 61 6c 63 68 65 6d 79 2e 63 6f rli.g.alchemy.co 00034d70: 6d 2f 76 32 2f 22 3b 62 72 65 61 6b 3b 63 61 73 m/v2/";break;cas 00034d80: 65 22 6f 70 74 69 6d 69 73 6d 22 3a 6e 3d 22 6f e"optimism":n="o 00034d90: 70 74 2d 6d 61 69 6e 6e 65 74 2e 67 2e 61 6c 63 pt-mainnet.g.alc 00034da0: 68 65 6d 79 2e 63 6f 6d 2f 76 32 2f 22 3b 62 72 hemy.com/v2/";br 00034db0: 65 61 6b 3b 63 61 73 65 22 6f 70 74 69 6d 69 73 eak;case"optimis 00034dc0: 6d 2d 67 6f 65 72 6c 69 22 3a 6e 3d 22 6f 70 74 m-goerli":n="opt 00034dd0: 2d 67 6f 65 72 6c 69 2e 67 2e 61 6c 63 68 65 6d -goerli.g.alchem 00034de0: 79 2e 63 6f 6d 2f 76 32 2f 22 3b 62 72 65 61 6b y.com/v2/";break 00034df0: 3b 64 65 66 61 75 6c 74 3a 43 73 2e 74 68 72 6f ;default:Cs.thro 00034e00: 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 wArgumentError(" 00034e10: 75 6e 73 75 70 70 6f 72 74 65 64 20 6e 65 74 77 unsupported netw 00034e20: 6f 72 6b 22 2c 22 6e 65 74 77 6f 72 6b 22 2c 61 ork","network",a 00034e30: 72 67 75 6d 65 6e 74 73 5b 30 5d 29 7d 72 65 74 rguments[0])}ret 00034e40: 75 72 6e 7b 61 6c 6c 6f 77 47 7a 69 70 3a 21 30 urn{allowGzip:!0 00034e50: 2c 75 72 6c 3a 22 68 74 74 70 73 3a 2f 2f 22 2b ,url:"https://"+ 00034e60: 6e 2b 74 2c 74 68 72 6f 74 74 6c 65 43 61 6c 6c n+t,throttleCall 00034e70: 62 61 63 6b 3a 28 65 2c 6e 29 3d 3e 28 74 3d 3d back:(e,n)=>(t== 00034e80: 3d 41 73 26 26 50 61 28 29 2c 50 72 6f 6d 69 73 =As&&Pa(),Promis 00034e90: 65 2e 72 65 73 6f 6c 76 65 28 21 30 29 29 7d 7d e.resolve(!0))}} 00034ea0: 69 73 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f 75 isCommunityResou 00034eb0: 72 63 65 28 29 7b 72 65 74 75 72 6e 20 74 68 69 rce(){return thi 00034ec0: 73 2e 61 70 69 4b 65 79 3d 3d 3d 41 73 7d 7d 63 s.apiKey===As}}c 00034ed0: 6f 6e 73 74 20 4f 73 3d 6e 65 77 20 79 28 41 61 onst Os=new y(Aa 00034ee0: 29 2c 52 73 3d 22 39 66 37 64 39 32 39 62 30 31 ),Rs="9f7d929b01 00034ef0: 38 63 64 66 66 62 33 33 38 35 31 37 65 66 61 30 8cdffb338517efa0 00034f00: 36 66 35 38 33 35 39 65 38 36 66 66 31 66 66 64 6f58359e86ff1ffd 00034f10: 33 35 30 62 63 38 38 39 37 33 38 35 32 33 36 35 350bc88973852365 00034f20: 39 65 37 39 37 32 22 3b 66 75 6e 63 74 69 6f 6e 9e7972";function 00034f30: 20 4e 73 28 65 29 7b 73 77 69 74 63 68 28 65 29 Ns(e){switch(e) 00034f40: 7b 63 61 73 65 22 68 6f 6d 65 73 74 65 61 64 22 {case"homestead" 00034f50: 3a 72 65 74 75 72 6e 22 72 70 63 2e 61 6e 6b 72 :return"rpc.ankr 00034f60: 2e 63 6f 6d 2f 65 74 68 2f 22 3b 63 61 73 65 22 .com/eth/";case" 00034f70: 72 6f 70 73 74 65 6e 22 3a 72 65 74 75 72 6e 22 ropsten":return" 00034f80: 72 70 63 2e 61 6e 6b 72 2e 63 6f 6d 2f 65 74 68 rpc.ankr.com/eth 00034f90: 5f 72 6f 70 73 74 65 6e 2f 22 3b 63 61 73 65 22 _ropsten/";case" 00034fa0: 72 69 6e 6b 65 62 79 22 3a 72 65 74 75 72 6e 22 rinkeby":return" 00034fb0: 72 70 63 2e 61 6e 6b 72 2e 63 6f 6d 2f 65 74 68 rpc.ankr.com/eth 00034fc0: 5f 72 69 6e 6b 65 62 79 2f 22 3b 63 61 73 65 22 _rinkeby/";case" 00034fd0: 67 6f 65 72 6c 69 22 3a 72 65 74 75 72 6e 22 72 goerli":return"r 00034fe0: 70 63 2e 61 6e 6b 72 2e 63 6f 6d 2f 65 74 68 5f pc.ankr.com/eth_ 00034ff0: 67 6f 65 72 6c 69 2f 22 3b 63 61 73 65 22 6d 61 goerli/";case"ma 00035000: 74 69 63 22 3a 72 65 74 75 72 6e 22 72 70 63 2e tic":return"rpc. 00035010: 61 6e 6b 72 2e 63 6f 6d 2f 70 6f 6c 79 67 6f 6e ankr.com/polygon 00035020: 2f 22 3b 63 61 73 65 22 61 72 62 69 74 72 75 6d /";case"arbitrum 00035030: 22 3a 72 65 74 75 72 6e 22 72 70 63 2e 61 6e 6b ":return"rpc.ank 00035040: 72 2e 63 6f 6d 2f 61 72 62 69 74 72 75 6d 2f 22 r.com/arbitrum/" 00035050: 7d 72 65 74 75 72 6e 20 4f 73 2e 74 68 72 6f 77 }return Os.throw 00035060: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 ArgumentError("u 00035070: 6e 73 75 70 70 6f 72 74 65 64 20 6e 65 74 77 6f nsupported netwo 00035080: 72 6b 22 2c 22 6e 61 6d 65 22 2c 65 29 7d 63 6c rk","name",e)}cl 00035090: 61 73 73 20 50 73 20 65 78 74 65 6e 64 73 20 54 ass Ps extends T 000350a0: 73 7b 69 73 43 6f 6d 6d 75 6e 69 74 79 52 65 73 s{isCommunityRes 000350b0: 6f 75 72 63 65 28 29 7b 72 65 74 75 72 6e 20 74 ource(){return t 000350c0: 68 69 73 2e 61 70 69 4b 65 79 3d 3d 3d 52 73 7d his.apiKey===Rs} 000350d0: 73 74 61 74 69 63 20 67 65 74 41 70 69 4b 65 79 static getApiKey 000350e0: 28 65 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d (e){return null= 000350f0: 3d 65 3f 52 73 3a 65 7d 73 74 61 74 69 63 20 67 =e?Rs:e}static g 00035100: 65 74 55 72 6c 28 65 2c 74 29 7b 6e 75 6c 6c 3d etUrl(e,t){null= 00035110: 3d 74 26 26 28 74 3d 52 73 29 3b 63 6f 6e 73 74 =t&&(t=Rs);const 00035120: 20 6e 3d 7b 61 6c 6c 6f 77 47 7a 69 70 3a 21 30 n={allowGzip:!0 00035130: 2c 75 72 6c 3a 22 68 74 74 70 73 3a 2f 2f 22 2b ,url:"https://"+ 00035140: 4e 73 28 65 2e 6e 61 6d 65 29 2b 74 2c 74 68 72 Ns(e.name)+t,thr 00035150: 6f 74 74 6c 65 43 61 6c 6c 62 61 63 6b 3a 28 65 ottleCallback:(e 00035160: 2c 6e 29 3d 3e 28 74 2e 61 70 69 4b 65 79 3d 3d ,n)=>(t.apiKey== 00035170: 3d 52 73 26 26 50 61 28 29 2c 50 72 6f 6d 69 73 =Rs&&Pa(),Promis 00035180: 65 2e 72 65 73 6f 6c 76 65 28 21 30 29 29 7d 3b e.resolve(!0))}; 00035190: 72 65 74 75 72 6e 20 6e 75 6c 6c 21 3d 74 2e 70 return null!=t.p 000351a0: 72 6f 6a 65 63 74 53 65 63 72 65 74 26 26 28 6e rojectSecret&&(n 000351b0: 2e 75 73 65 72 3d 22 22 2c 6e 2e 70 61 73 73 77 .user="",n.passw 000351c0: 6f 72 64 3d 74 2e 70 72 6f 6a 65 63 74 53 65 63 ord=t.projectSec 000351d0: 72 65 74 29 2c 6e 7d 7d 76 61 72 20 4d 73 3d 66 ret),n}}var Ms=f 000351e0: 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c 72 29 unction(e,t,n,r) 000351f0: 7b 72 65 74 75 72 6e 20 6e 65 77 28 6e 7c 7c 28 {return new(n||( 00035200: 6e 3d 50 72 6f 6d 69 73 65 29 29 28 28 66 75 6e n=Promise))((fun 00035210: 63 74 69 6f 6e 28 6f 2c 69 29 7b 66 75 6e 63 74 ction(o,i){funct 00035220: 69 6f 6e 20 61 28 65 29 7b 74 72 79 7b 6c 28 72 ion a(e){try{l(r 00035230: 2e 6e 65 78 74 28 65 29 29 7d 63 61 74 63 68 28 .next(e))}catch( 00035240: 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 69 6f e){i(e)}}functio 00035250: 6e 20 73 28 65 29 7b 74 72 79 7b 6c 28 72 2e 74 n s(e){try{l(r.t 00035260: 68 72 6f 77 28 65 29 29 7d 63 61 74 63 68 28 65 hrow(e))}catch(e 00035270: 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 69 6f 6e ){i(e)}}function 00035280: 20 6c 28 65 29 7b 76 61 72 20 74 3b 65 2e 64 6f l(e){var t;e.do 00035290: 6e 65 3f 6f 28 65 2e 76 61 6c 75 65 29 3a 28 74 ne?o(e.value):(t 000352a0: 3d 65 2e 76 61 6c 75 65 2c 74 20 69 6e 73 74 61 =e.value,t insta 000352b0: 6e 63 65 6f 66 20 6e 3f 74 3a 6e 65 77 20 6e 28 nceof n?t:new n( 000352c0: 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b 65 28 74 (function(e){e(t 000352d0: 29 7d 29 29 29 2e 74 68 65 6e 28 61 2c 73 29 7d )}))).then(a,s)} 000352e0: 6c 28 28 72 3d 72 2e 61 70 70 6c 79 28 65 2c 74 l((r=r.apply(e,t 000352f0: 7c 7c 5b 5d 29 29 2e 6e 65 78 74 28 29 29 7d 29 ||[])).next())}) 00035300: 29 7d 3b 63 6f 6e 73 74 20 44 73 3d 6e 65 77 20 )};const Ds=new 00035310: 79 28 41 61 29 3b 63 6c 61 73 73 20 4c 73 20 65 y(Aa);class Ls e 00035320: 78 74 65 6e 64 73 20 54 73 7b 73 74 61 74 69 63 xtends Ts{static 00035330: 20 67 65 74 41 70 69 4b 65 79 28 65 29 7b 72 65 getApiKey(e){re 00035340: 74 75 72 6e 20 6e 75 6c 6c 21 3d 65 26 26 44 73 turn null!=e&&Ds 00035350: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00035360: 72 6f 72 28 22 61 70 69 4b 65 79 20 6e 6f 74 20 ror("apiKey not 00035370: 73 75 70 70 6f 72 74 65 64 20 66 6f 72 20 63 6c supported for cl 00035380: 6f 75 64 66 6c 61 72 65 22 2c 22 61 70 69 4b 65 oudflare","apiKe 00035390: 79 22 2c 65 29 2c 6e 75 6c 6c 7d 73 74 61 74 69 y",e),null}stati 000353a0: 63 20 67 65 74 55 72 6c 28 65 2c 74 29 7b 6c 65 c getUrl(e,t){le 000353b0: 74 20 6e 3d 6e 75 6c 6c 3b 69 66 28 22 68 6f 6d t n=null;if("hom 000353c0: 65 73 74 65 61 64 22 3d 3d 3d 65 2e 6e 61 6d 65 estead"===e.name 000353d0: 29 6e 3d 22 68 74 74 70 73 3a 2f 2f 63 6c 6f 75 )n="https://clou 000353e0: 64 66 6c 61 72 65 2d 65 74 68 2e 63 6f 6d 2f 22 dflare-eth.com/" 000353f0: 3b 65 6c 73 65 20 44 73 2e 74 68 72 6f 77 41 72 ;else Ds.throwAr 00035400: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 73 gumentError("uns 00035410: 75 70 70 6f 72 74 65 64 20 6e 65 74 77 6f 72 6b upported network 00035420: 22 2c 22 6e 65 74 77 6f 72 6b 22 2c 61 72 67 75 ","network",argu 00035430: 6d 65 6e 74 73 5b 30 5d 29 3b 72 65 74 75 72 6e ments[0]);return 00035440: 20 6e 7d 70 65 72 66 6f 72 6d 28 65 2c 74 29 7b n}perform(e,t){ 00035450: 63 6f 6e 73 74 20 6e 3d 4f 62 6a 65 63 74 2e 63 const n=Object.c 00035460: 72 65 61 74 65 28 6e 75 6c 6c 2c 7b 70 65 72 66 reate(null,{perf 00035470: 6f 72 6d 3a 7b 67 65 74 3a 28 29 3d 3e 73 75 70 orm:{get:()=>sup 00035480: 65 72 2e 70 65 72 66 6f 72 6d 7d 7d 29 3b 72 65 er.perform}});re 00035490: 74 75 72 6e 20 4d 73 28 74 68 69 73 2c 76 6f 69 turn Ms(this,voi 000354a0: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 000354b0: 74 69 6f 6e 2a 28 29 7b 69 66 28 22 67 65 74 42 tion*(){if("getB 000354c0: 6c 6f 63 6b 4e 75 6d 62 65 72 22 3d 3d 3d 65 29 lockNumber"===e) 000354d0: 7b 72 65 74 75 72 6e 28 79 69 65 6c 64 20 6e 2e {return(yield n. 000354e0: 70 65 72 66 6f 72 6d 2e 63 61 6c 6c 28 74 68 69 perform.call(thi 000354f0: 73 2c 22 67 65 74 42 6c 6f 63 6b 22 2c 7b 62 6c s,"getBlock",{bl 00035500: 6f 63 6b 54 61 67 3a 22 6c 61 74 65 73 74 22 7d ockTag:"latest"} 00035510: 29 29 2e 6e 75 6d 62 65 72 7d 72 65 74 75 72 6e )).number}return 00035520: 20 6e 2e 70 65 72 66 6f 72 6d 2e 63 61 6c 6c 28 n.perform.call( 00035530: 74 68 69 73 2c 65 2c 74 29 7d 29 29 7d 7d 76 61 this,e,t)}))}}va 00035540: 72 20 46 73 3d 66 75 6e 63 74 69 6f 6e 28 65 2c r Fs=function(e, 00035550: 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 6e 65 t,n,r){return ne 00035560: 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 65 29 w(n||(n=Promise) 00035570: 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c 69 29 )((function(o,i) 00035580: 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 7b 74 {function a(e){t 00035590: 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 29 7d ry{l(r.next(e))} 000355a0: 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 catch(e){i(e)}}f 000355b0: 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 72 79 unction s(e){try 000355c0: 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 7d 63 {l(r.throw(e))}c 000355d0: 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 atch(e){i(e)}}fu 000355e0: 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 72 20 nction l(e){var 000355f0: 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 61 6c t;e.done?o(e.val 00035600: 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 2c 74 ue):(t=e.value,t 00035610: 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f 74 3a instanceof n?t: 00035620: 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 6f 6e 28 new n((function( 00035630: 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 65 6e e){e(t)}))).then 00035640: 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 70 70 (a,s)}l((r=r.app 00035650: 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 78 ly(e,t||[])).nex 00035660: 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 20 55 t())}))};const U 00035670: 73 3d 6e 65 77 20 79 28 41 61 29 3b 66 75 6e 63 s=new y(Aa);func 00035680: 74 69 6f 6e 20 42 73 28 65 29 7b 63 6f 6e 73 74 tion Bs(e){const 00035690: 20 74 3d 7b 7d 3b 66 6f 72 28 6c 65 74 20 6e 20 t={};for(let n 000356a0: 69 6e 20 65 29 7b 69 66 28 6e 75 6c 6c 3d 3d 65 in e){if(null==e 000356b0: 5b 6e 5d 29 63 6f 6e 74 69 6e 75 65 3b 6c 65 74 [n])continue;let 000356c0: 20 72 3d 65 5b 6e 5d 3b 22 74 79 70 65 22 3d 3d r=e[n];"type"== 000356d0: 3d 6e 26 26 30 3d 3d 3d 72 7c 7c 28 72 3d 7b 74 =n&&0===r||(r={t 000356e0: 79 70 65 3a 21 30 2c 67 61 73 4c 69 6d 69 74 3a ype:!0,gasLimit: 000356f0: 21 30 2c 67 61 73 50 72 69 63 65 3a 21 30 2c 6d !0,gasPrice:!0,m 00035700: 61 78 46 65 65 50 65 72 47 73 3a 21 30 2c 6d 61 axFeePerGs:!0,ma 00035710: 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 xPriorityFeePerG 00035720: 61 73 3a 21 30 2c 6e 6f 6e 63 65 3a 21 30 2c 76 as:!0,nonce:!0,v 00035730: 61 6c 75 65 3a 21 30 7d 5b 6e 5d 3f 44 28 52 28 alue:!0}[n]?D(R( 00035740: 72 29 29 3a 22 61 63 63 65 73 73 4c 69 73 74 22 r)):"accessList" 00035750: 3d 3d 3d 6e 3f 22 5b 22 2b 66 72 28 72 29 2e 6d ===n?"["+fr(r).m 00035760: 61 70 28 28 65 3d 3e 60 7b 61 64 64 72 65 73 73 ap((e=>`{address 00035770: 3a 22 24 7b 65 2e 61 64 64 72 65 73 73 7d 22 2c :"${e.address}", 00035780: 73 74 6f 72 61 67 65 4b 65 79 73 3a 5b 22 24 7b storageKeys:["${ 00035790: 65 2e 73 74 6f 72 61 67 65 4b 65 79 73 2e 6a 6f e.storageKeys.jo 000357a0: 69 6e 28 27 22 2c 22 27 29 7d 22 5d 7d 60 29 29 in('","')}"]}`)) 000357b0: 2e 6a 6f 69 6e 28 22 2c 22 29 2b 22 5d 22 3a 52 .join(",")+"]":R 000357c0: 28 72 29 2c 74 5b 6e 5d 3d 72 29 7d 72 65 74 75 (r),t[n]=r)}retu 000357d0: 72 6e 20 74 7d 66 75 6e 63 74 69 6f 6e 20 6a 73 rn t}function js 000357e0: 28 65 29 7b 69 66 28 30 3d 3d 65 2e 73 74 61 74 (e){if(0==e.stat 000357f0: 75 73 26 26 28 22 4e 6f 20 72 65 63 6f 72 64 73 us&&("No records 00035800: 20 66 6f 75 6e 64 22 3d 3d 3d 65 2e 6d 65 73 73 found"===e.mess 00035810: 61 67 65 7c 7c 22 4e 6f 20 74 72 61 6e 73 61 63 age||"No transac 00035820: 74 69 6f 6e 73 20 66 6f 75 6e 64 22 3d 3d 3d 65 tions found"===e 00035830: 2e 6d 65 73 73 61 67 65 29 29 72 65 74 75 72 6e .message))return 00035840: 20 65 2e 72 65 73 75 6c 74 3b 69 66 28 31 21 3d e.result;if(1!= 00035850: 65 2e 73 74 61 74 75 73 7c 7c 22 73 74 72 69 6e e.status||"strin 00035860: 67 22 21 3d 74 79 70 65 6f 66 20 65 2e 6d 65 73 g"!=typeof e.mes 00035870: 73 61 67 65 7c 7c 21 65 2e 6d 65 73 73 61 67 65 sage||!e.message 00035880: 2e 6d 61 74 63 68 28 2f 5e 4f 4b 2f 29 29 7b 63 .match(/^OK/)){c 00035890: 6f 6e 73 74 20 74 3d 6e 65 77 20 45 72 72 6f 72 onst t=new Error 000358a0: 28 22 69 6e 76 61 6c 69 64 20 72 65 73 70 6f 6e ("invalid respon 000358b0: 73 65 22 29 3b 74 68 72 6f 77 20 74 2e 72 65 73 se");throw t.res 000358c0: 75 6c 74 3d 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 ult=JSON.stringi 000358d0: 66 79 28 65 29 2c 28 65 2e 72 65 73 75 6c 74 7c fy(e),(e.result| 000358e0: 7c 22 22 29 2e 74 6f 4c 6f 77 65 72 43 61 73 65 |"").toLowerCase 000358f0: 28 29 2e 69 6e 64 65 78 4f 66 28 22 72 61 74 65 ().indexOf("rate 00035900: 20 6c 69 6d 69 74 22 29 3e 3d 30 26 26 28 74 2e limit")>=0&&(t. 00035910: 74 68 72 6f 74 74 6c 65 52 65 74 72 79 3d 21 30 throttleRetry=!0 00035920: 29 2c 74 7d 72 65 74 75 72 6e 20 65 2e 72 65 73 ),t}return e.res 00035930: 75 6c 74 7d 66 75 6e 63 74 69 6f 6e 20 7a 73 28 ult}function zs( 00035940: 65 29 7b 69 66 28 65 26 26 30 3d 3d 65 2e 73 74 e){if(e&&0==e.st 00035950: 61 74 75 73 26 26 22 4e 4f 54 4f 4b 22 3d 3d 65 atus&&"NOTOK"==e 00035960: 2e 6d 65 73 73 61 67 65 26 26 28 65 2e 72 65 73 .message&&(e.res 00035970: 75 6c 74 7c 7c 22 22 29 2e 74 6f 4c 6f 77 65 72 ult||"").toLower 00035980: 43 61 73 65 28 29 2e 69 6e 64 65 78 4f 66 28 22 Case().indexOf(" 00035990: 72 61 74 65 20 6c 69 6d 69 74 22 29 3e 3d 30 29 rate limit")>=0) 000359a0: 7b 63 6f 6e 73 74 20 74 3d 6e 65 77 20 45 72 72 {const t=new Err 000359b0: 6f 72 28 22 74 68 72 6f 74 74 6c 65 64 20 72 65 or("throttled re 000359c0: 73 70 6f 6e 73 65 22 29 3b 74 68 72 6f 77 20 74 sponse");throw t 000359d0: 2e 72 65 73 75 6c 74 3d 4a 53 4f 4e 2e 73 74 72 .result=JSON.str 000359e0: 69 6e 67 69 66 79 28 65 29 2c 74 2e 74 68 72 6f ingify(e),t.thro 000359f0: 74 74 6c 65 52 65 74 72 79 3d 21 30 2c 74 7d 69 ttleRetry=!0,t}i 00035a00: 66 28 22 32 2e 30 22 21 3d 65 2e 6a 73 6f 6e 72 f("2.0"!=e.jsonr 00035a10: 70 63 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 77 20 pc){const t=new 00035a20: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 72 Error("invalid r 00035a30: 65 73 70 6f 6e 73 65 22 29 3b 74 68 72 6f 77 20 esponse");throw 00035a40: 74 2e 72 65 73 75 6c 74 3d 4a 53 4f 4e 2e 73 74 t.result=JSON.st 00035a50: 72 69 6e 67 69 66 79 28 65 29 2c 74 7d 69 66 28 ringify(e),t}if( 00035a60: 65 2e 65 72 72 6f 72 29 7b 63 6f 6e 73 74 20 74 e.error){const t 00035a70: 3d 6e 65 77 20 45 72 72 6f 72 28 65 2e 65 72 72 =new Error(e.err 00035a80: 6f 72 2e 6d 65 73 73 61 67 65 7c 7c 22 75 6e 6b or.message||"unk 00035a90: 6e 6f 77 6e 20 65 72 72 6f 72 22 29 3b 74 68 72 nown error");thr 00035aa0: 6f 77 20 65 2e 65 72 72 6f 72 2e 63 6f 64 65 26 ow e.error.code& 00035ab0: 26 28 74 2e 63 6f 64 65 3d 65 2e 65 72 72 6f 72 &(t.code=e.error 00035ac0: 2e 63 6f 64 65 29 2c 65 2e 65 72 72 6f 72 2e 64 .code),e.error.d 00035ad0: 61 74 61 26 26 28 74 2e 64 61 74 61 3d 65 2e 65 ata&&(t.data=e.e 00035ae0: 72 72 6f 72 2e 64 61 74 61 29 2c 74 7d 72 65 74 rror.data),t}ret 00035af0: 75 72 6e 20 65 2e 72 65 73 75 6c 74 7d 66 75 6e urn e.result}fun 00035b00: 63 74 69 6f 6e 20 47 73 28 65 29 7b 69 66 28 22 ction Gs(e){if(" 00035b10: 70 65 6e 64 69 6e 67 22 3d 3d 3d 65 29 74 68 72 pending"===e)thr 00035b20: 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 70 65 ow new Error("pe 00035b30: 6e 64 69 6e 67 20 6e 6f 74 20 73 75 70 70 6f 72 nding not suppor 00035b40: 74 65 64 22 29 3b 72 65 74 75 72 6e 22 6c 61 74 ted");return"lat 00035b50: 65 73 74 22 3d 3d 3d 65 3f 65 3a 70 61 72 73 65 est"===e?e:parse 00035b60: 49 6e 74 28 65 2e 73 75 62 73 74 72 69 6e 67 28 Int(e.substring( 00035b70: 32 29 2c 31 36 29 7d 66 75 6e 63 74 69 6f 6e 20 2),16)}function 00035b80: 48 73 28 65 2c 74 2c 6e 29 7b 69 66 28 22 63 61 Hs(e,t,n){if("ca 00035b90: 6c 6c 22 3d 3d 3d 65 26 26 74 2e 63 6f 64 65 3d ll"===e&&t.code= 00035ba0: 3d 3d 79 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 ==y.errors.SERVE 00035bb0: 52 5f 45 52 52 4f 52 29 7b 63 6f 6e 73 74 20 65 R_ERROR){const e 00035bc0: 3d 74 2e 65 72 72 6f 72 3b 69 66 28 65 26 26 28 =t.error;if(e&&( 00035bd0: 65 2e 6d 65 73 73 61 67 65 2e 6d 61 74 63 68 28 e.message.match( 00035be0: 2f 72 65 76 65 72 74 65 64 2f 69 29 7c 7c 65 2e /reverted/i)||e. 00035bf0: 6d 65 73 73 61 67 65 2e 6d 61 74 63 68 28 2f 56 message.match(/V 00035c00: 4d 20 65 78 65 63 75 74 69 6f 6e 20 65 72 72 6f M execution erro 00035c10: 72 2f 69 29 29 29 7b 6c 65 74 20 6e 3d 65 2e 64 r/i))){let n=e.d 00035c20: 61 74 61 3b 69 66 28 6e 26 26 28 6e 3d 22 30 78 ata;if(n&&(n="0x 00035c30: 22 2b 6e 2e 72 65 70 6c 61 63 65 28 2f 5e 2e 2a "+n.replace(/^.* 00035c40: 30 78 2f 69 2c 22 22 29 29 2c 49 28 6e 29 29 72 0x/i,"")),I(n))r 00035c50: 65 74 75 72 6e 20 6e 3b 55 73 2e 74 68 72 6f 77 eturn n;Us.throw 00035c60: 45 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 20 72 Error("missing r 00035c70: 65 76 65 72 74 20 64 61 74 61 20 69 6e 20 63 61 evert data in ca 00035c80: 6c 6c 20 65 78 63 65 70 74 69 6f 6e 22 2c 79 2e ll exception",y. 00035c90: 65 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 errors.CALL_EXCE 00035ca0: 50 54 49 4f 4e 2c 7b 65 72 72 6f 72 3a 74 2c 64 PTION,{error:t,d 00035cb0: 61 74 61 3a 22 30 78 22 7d 29 7d 7d 6c 65 74 20 ata:"0x"})}}let 00035cc0: 72 3d 74 2e 6d 65 73 73 61 67 65 3b 74 68 72 6f r=t.message;thro 00035cd0: 77 20 74 2e 63 6f 64 65 3d 3d 3d 79 2e 65 72 72 w t.code===y.err 00035ce0: 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 52 4f 52 ors.SERVER_ERROR 00035cf0: 26 26 28 74 2e 65 72 72 6f 72 26 26 22 73 74 72 &&(t.error&&"str 00035d00: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 74 2e 65 ing"==typeof t.e 00035d10: 72 72 6f 72 2e 6d 65 73 73 61 67 65 3f 72 3d 74 rror.message?r=t 00035d20: 2e 65 72 72 6f 72 2e 6d 65 73 73 61 67 65 3a 22 .error.message:" 00035d30: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 00035d40: 74 2e 62 6f 64 79 3f 72 3d 74 2e 62 6f 64 79 3a t.body?r=t.body: 00035d50: 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 "string"==typeof 00035d60: 20 74 2e 72 65 73 70 6f 6e 73 65 54 65 78 74 26 t.responseText& 00035d70: 26 28 72 3d 74 2e 72 65 73 70 6f 6e 73 65 54 65 &(r=t.responseTe 00035d80: 78 74 29 29 2c 72 3d 28 72 7c 7c 22 22 29 2e 74 xt)),r=(r||"").t 00035d90: 6f 4c 6f 77 65 72 43 61 73 65 28 29 2c 72 2e 6d oLowerCase(),r.m 00035da0: 61 74 63 68 28 2f 69 6e 73 75 66 66 69 63 69 65 atch(/insufficie 00035db0: 6e 74 20 66 75 6e 64 73 2f 29 26 26 55 73 2e 74 nt funds/)&&Us.t 00035dc0: 68 72 6f 77 45 72 72 6f 72 28 22 69 6e 73 75 66 hrowError("insuf 00035dd0: 66 69 63 69 65 6e 74 20 66 75 6e 64 73 20 66 6f ficient funds fo 00035de0: 72 20 69 6e 74 72 69 6e 73 69 63 20 74 72 61 6e r intrinsic tran 00035df0: 73 61 63 74 69 6f 6e 20 63 6f 73 74 22 2c 79 2e saction cost",y. 00035e00: 65 72 72 6f 72 73 2e 49 4e 53 55 46 46 49 43 49 errors.INSUFFICI 00035e10: 45 4e 54 5f 46 55 4e 44 53 2c 7b 65 72 72 6f 72 ENT_FUNDS,{error 00035e20: 3a 74 2c 6d 65 74 68 6f 64 3a 65 2c 74 72 61 6e :t,method:e,tran 00035e30: 73 61 63 74 69 6f 6e 3a 6e 7d 29 2c 72 2e 6d 61 saction:n}),r.ma 00035e40: 74 63 68 28 2f 73 61 6d 65 20 68 61 73 68 20 77 tch(/same hash w 00035e50: 61 73 20 61 6c 72 65 61 64 79 20 69 6d 70 6f 72 as already impor 00035e60: 74 65 64 7c 74 72 61 6e 73 61 63 74 69 6f 6e 20 ted|transaction 00035e70: 6e 6f 6e 63 65 20 69 73 20 74 6f 6f 20 6c 6f 77 nonce is too low 00035e80: 7c 6e 6f 6e 63 65 20 74 6f 6f 20 6c 6f 77 2f 29 |nonce too low/) 00035e90: 26 26 55 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 &&Us.throwError( 00035ea0: 22 6e 6f 6e 63 65 20 68 61 73 20 61 6c 72 65 61 "nonce has alrea 00035eb0: 64 79 20 62 65 65 6e 20 75 73 65 64 22 2c 79 2e dy been used",y. 00035ec0: 65 72 72 6f 72 73 2e 4e 4f 4e 43 45 5f 45 58 50 errors.NONCE_EXP 00035ed0: 49 52 45 44 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 IRED,{error:t,me 00035ee0: 74 68 6f 64 3a 65 2c 74 72 61 6e 73 61 63 74 69 thod:e,transacti 00035ef0: 6f 6e 3a 6e 7d 29 2c 72 2e 6d 61 74 63 68 28 2f on:n}),r.match(/ 00035f00: 61 6e 6f 74 68 65 72 20 74 72 61 6e 73 61 63 74 another transact 00035f10: 69 6f 6e 20 77 69 74 68 20 73 61 6d 65 20 6e 6f ion with same no 00035f20: 6e 63 65 2f 29 26 26 55 73 2e 74 68 72 6f 77 45 nce/)&&Us.throwE 00035f30: 72 72 6f 72 28 22 72 65 70 6c 61 63 65 6d 65 6e rror("replacemen 00035f40: 74 20 66 65 65 20 74 6f 6f 20 6c 6f 77 22 2c 79 t fee too low",y 00035f50: 2e 65 72 72 6f 72 73 2e 52 45 50 4c 41 43 45 4d .errors.REPLACEM 00035f60: 45 4e 54 5f 55 4e 44 45 52 50 52 49 43 45 44 2c ENT_UNDERPRICED, 00035f70: 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 68 6f 64 3a {error:t,method: 00035f80: 65 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 6e 7d e,transaction:n} 00035f90: 29 2c 72 2e 6d 61 74 63 68 28 2f 65 78 65 63 75 ),r.match(/execu 00035fa0: 74 69 6f 6e 20 66 61 69 6c 65 64 20 64 75 65 20 tion failed due 00035fb0: 74 6f 20 61 6e 20 65 78 63 65 70 74 69 6f 6e 7c to an exception| 00035fc0: 65 78 65 63 75 74 69 6f 6e 20 72 65 76 65 72 74 execution revert 00035fd0: 65 64 2f 29 26 26 55 73 2e 74 68 72 6f 77 45 72 ed/)&&Us.throwEr 00035fe0: 72 6f 72 28 22 63 61 6e 6e 6f 74 20 65 73 74 69 ror("cannot esti 00035ff0: 6d 61 74 65 20 67 61 73 3b 20 74 72 61 6e 73 61 mate gas; transa 00036000: 63 74 69 6f 6e 20 6d 61 79 20 66 61 69 6c 20 6f ction may fail o 00036010: 72 20 6d 61 79 20 72 65 71 75 69 72 65 20 6d 61 r may require ma 00036020: 6e 75 61 6c 20 67 61 73 20 6c 69 6d 69 74 22 2c nual gas limit", 00036030: 79 2e 65 72 72 6f 72 73 2e 55 4e 50 52 45 44 49 y.errors.UNPREDI 00036040: 43 54 41 42 4c 45 5f 47 41 53 5f 4c 49 4d 49 54 CTABLE_GAS_LIMIT 00036050: 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 68 6f 64 ,{error:t,method 00036060: 3a 65 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 6e :e,transaction:n 00036070: 7d 29 2c 74 7d 63 6c 61 73 73 20 56 73 20 65 78 }),t}class Vs ex 00036080: 74 65 6e 64 73 20 72 73 7b 63 6f 6e 73 74 72 75 tends rs{constru 00036090: 63 74 6f 72 28 65 2c 74 29 7b 73 75 70 65 72 28 ctor(e,t){super( 000360a0: 65 29 2c 74 65 28 74 68 69 73 2c 22 62 61 73 65 e),te(this,"base 000360b0: 55 72 6c 22 2c 74 68 69 73 2e 67 65 74 42 61 73 Url",this.getBas 000360c0: 65 55 72 6c 28 29 29 2c 74 65 28 74 68 69 73 2c eUrl()),te(this, 000360d0: 22 61 70 69 4b 65 79 22 2c 74 7c 7c 6e 75 6c 6c "apiKey",t||null 000360e0: 29 7d 67 65 74 42 61 73 65 55 72 6c 28 29 7b 73 )}getBaseUrl(){s 000360f0: 77 69 74 63 68 28 74 68 69 73 2e 6e 65 74 77 6f witch(this.netwo 00036100: 72 6b 3f 74 68 69 73 2e 6e 65 74 77 6f 72 6b 2e rk?this.network. 00036110: 6e 61 6d 65 3a 22 69 6e 76 61 6c 69 64 22 29 7b name:"invalid"){ 00036120: 63 61 73 65 22 68 6f 6d 65 73 74 65 61 64 22 3a case"homestead": 00036130: 72 65 74 75 72 6e 22 68 74 74 70 73 3a 2f 2f 61 return"https://a 00036140: 70 69 2e 65 74 68 65 72 73 63 61 6e 2e 69 6f 22 pi.etherscan.io" 00036150: 3b 63 61 73 65 22 67 6f 65 72 6c 69 22 3a 72 65 ;case"goerli":re 00036160: 74 75 72 6e 22 68 74 74 70 73 3a 2f 2f 61 70 69 turn"https://api 00036170: 2d 67 6f 65 72 6c 69 2e 65 74 68 65 72 73 63 61 -goerli.ethersca 00036180: 6e 2e 69 6f 22 3b 63 61 73 65 22 73 65 70 6f 6c n.io";case"sepol 00036190: 69 61 22 3a 72 65 74 75 72 6e 22 68 74 74 70 73 ia":return"https 000361a0: 3a 2f 2f 61 70 69 2d 73 65 70 6f 6c 69 61 2e 65 ://api-sepolia.e 000361b0: 74 68 65 72 73 63 61 6e 2e 69 6f 22 3b 63 61 73 therscan.io";cas 000361c0: 65 22 6d 61 74 69 63 22 3a 72 65 74 75 72 6e 22 e"matic":return" 000361d0: 68 74 74 70 73 3a 2f 2f 61 70 69 2e 70 6f 6c 79 https://api.poly 000361e0: 67 6f 6e 73 63 61 6e 2e 63 6f 6d 22 3b 63 61 73 gonscan.com";cas 000361f0: 65 22 6d 61 74 69 63 6d 75 6d 22 3a 72 65 74 75 e"maticmum":retu 00036200: 72 6e 22 68 74 74 70 73 3a 2f 2f 61 70 69 2d 74 rn"https://api-t 00036210: 65 73 74 6e 65 74 2e 70 6f 6c 79 67 6f 6e 73 63 estnet.polygonsc 00036220: 61 6e 2e 63 6f 6d 22 3b 63 61 73 65 22 61 72 62 an.com";case"arb 00036230: 69 74 72 75 6d 22 3a 72 65 74 75 72 6e 22 68 74 itrum":return"ht 00036240: 74 70 73 3a 2f 2f 61 70 69 2e 61 72 62 69 73 63 tps://api.arbisc 00036250: 61 6e 2e 69 6f 22 3b 63 61 73 65 22 61 72 62 69 an.io";case"arbi 00036260: 74 72 75 6d 2d 67 6f 65 72 6c 69 22 3a 72 65 74 trum-goerli":ret 00036270: 75 72 6e 22 68 74 74 70 73 3a 2f 2f 61 70 69 2d urn"https://api- 00036280: 67 6f 65 72 6c 69 2e 61 72 62 69 73 63 61 6e 2e goerli.arbiscan. 00036290: 69 6f 22 3b 63 61 73 65 22 6f 70 74 69 6d 69 73 io";case"optimis 000362a0: 6d 22 3a 72 65 74 75 72 6e 22 68 74 74 70 73 3a m":return"https: 000362b0: 2f 2f 61 70 69 2d 6f 70 74 69 6d 69 73 74 69 63 //api-optimistic 000362c0: 2e 65 74 68 65 72 73 63 61 6e 2e 69 6f 22 3b 63 .etherscan.io";c 000362d0: 61 73 65 22 6f 70 74 69 6d 69 73 6d 2d 67 6f 65 ase"optimism-goe 000362e0: 72 6c 69 22 3a 72 65 74 75 72 6e 22 68 74 74 70 rli":return"http 000362f0: 73 3a 2f 2f 61 70 69 2d 67 6f 65 72 6c 69 2d 6f s://api-goerli-o 00036300: 70 74 69 6d 69 73 74 69 63 2e 65 74 68 65 72 73 ptimistic.ethers 00036310: 63 61 6e 2e 69 6f 22 7d 72 65 74 75 72 6e 20 55 can.io"}return U 00036320: 73 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 s.throwArgumentE 00036330: 72 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 74 65 rror("unsupporte 00036340: 64 20 6e 65 74 77 6f 72 6b 22 2c 22 6e 65 74 77 d network","netw 00036350: 6f 72 6b 22 2c 74 68 69 73 2e 6e 65 74 77 6f 72 ork",this.networ 00036360: 6b 2e 6e 61 6d 65 29 7d 67 65 74 55 72 6c 28 65 k.name)}getUrl(e 00036370: 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 4f 62 6a 65 ,t){const n=Obje 00036380: 63 74 2e 6b 65 79 73 28 74 29 2e 72 65 64 75 63 ct.keys(t).reduc 00036390: 65 28 28 28 65 2c 6e 29 3d 3e 7b 63 6f 6e 73 74 e(((e,n)=>{const 000363a0: 20 72 3d 74 5b 6e 5d 3b 72 65 74 75 72 6e 20 6e r=t[n];return n 000363b0: 75 6c 6c 21 3d 72 26 26 28 65 2b 3d 60 26 24 7b ull!=r&&(e+=`&${ 000363c0: 6e 7d 3d 24 7b 72 7d 60 29 2c 65 7d 29 2c 22 22 n}=${r}`),e}),"" 000363d0: 29 2c 72 3d 74 68 69 73 2e 61 70 69 4b 65 79 3f ),r=this.apiKey? 000363e0: 60 26 61 70 69 6b 65 79 3d 24 7b 74 68 69 73 2e `&apikey=${this. 000363f0: 61 70 69 4b 65 79 7d 60 3a 22 22 3b 72 65 74 75 apiKey}`:"";retu 00036400: 72 6e 60 24 7b 74 68 69 73 2e 62 61 73 65 55 72 rn`${this.baseUr 00036410: 6c 7d 2f 61 70 69 3f 6d 6f 64 75 6c 65 3d 24 7b l}/api?module=${ 00036420: 65 7d 24 7b 6e 7d 24 7b 72 7d 60 7d 67 65 74 50 e}${n}${r}`}getP 00036430: 6f 73 74 55 72 6c 28 29 7b 72 65 74 75 72 6e 60 ostUrl(){return` 00036440: 24 7b 74 68 69 73 2e 62 61 73 65 55 72 6c 7d 2f ${this.baseUrl}/ 00036450: 61 70 69 60 7d 67 65 74 50 6f 73 74 44 61 74 61 api`}getPostData 00036460: 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 74 2e 6d (e,t){return t.m 00036470: 6f 64 75 6c 65 3d 65 2c 74 2e 61 70 69 6b 65 79 odule=e,t.apikey 00036480: 3d 74 68 69 73 2e 61 70 69 4b 65 79 2c 74 7d 66 =this.apiKey,t}f 00036490: 65 74 63 68 28 65 2c 74 2c 6e 29 7b 72 65 74 75 etch(e,t,n){retu 000364a0: 72 6e 20 46 73 28 74 68 69 73 2c 76 6f 69 64 20 rn Fs(this,void 000364b0: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 000364c0: 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 72 3d 6e 3f on*(){const r=n? 000364d0: 74 68 69 73 2e 67 65 74 50 6f 73 74 55 72 6c 28 this.getPostUrl( 000364e0: 29 3a 74 68 69 73 2e 67 65 74 55 72 6c 28 65 2c ):this.getUrl(e, 000364f0: 74 29 2c 6f 3d 6e 3f 74 68 69 73 2e 67 65 74 50 t),o=n?this.getP 00036500: 6f 73 74 44 61 74 61 28 65 2c 74 29 3a 6e 75 6c ostData(e,t):nul 00036510: 6c 2c 69 3d 22 70 72 6f 78 79 22 3d 3d 3d 65 3f l,i="proxy"===e? 00036520: 7a 73 3a 6a 73 3b 74 68 69 73 2e 65 6d 69 74 28 zs:js;this.emit( 00036530: 22 64 65 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a "debug",{action: 00036540: 22 72 65 71 75 65 73 74 22 2c 72 65 71 75 65 73 "request",reques 00036550: 74 3a 72 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 t:r,provider:thi 00036560: 73 7d 29 3b 63 6f 6e 73 74 20 61 3d 7b 75 72 6c s});const a={url 00036570: 3a 72 2c 74 68 72 6f 74 74 6c 65 53 6c 6f 74 49 :r,throttleSlotI 00036580: 6e 74 65 72 76 61 6c 3a 31 65 33 2c 74 68 72 6f nterval:1e3,thro 00036590: 74 74 6c 65 43 61 6c 6c 62 61 63 6b 3a 28 65 2c ttleCallback:(e, 000365a0: 74 29 3d 3e 28 74 68 69 73 2e 69 73 43 6f 6d 6d t)=>(this.isComm 000365b0: 75 6e 69 74 79 52 65 73 6f 75 72 63 65 28 29 26 unityResource()& 000365c0: 26 50 61 28 29 2c 50 72 6f 6d 69 73 65 2e 72 65 &Pa(),Promise.re 000365d0: 73 6f 6c 76 65 28 21 30 29 29 7d 3b 6c 65 74 20 solve(!0))};let 000365e0: 73 3d 6e 75 6c 6c 3b 6f 26 26 28 61 2e 68 65 61 s=null;o&&(a.hea 000365f0: 64 65 72 73 3d 7b 22 63 6f 6e 74 65 6e 74 2d 74 ders={"content-t 00036600: 79 70 65 22 3a 22 61 70 70 6c 69 63 61 74 69 6f ype":"applicatio 00036610: 6e 2f 78 2d 77 77 77 2d 66 6f 72 6d 2d 75 72 6c n/x-www-form-url 00036620: 65 6e 63 6f 64 65 64 3b 20 63 68 61 72 73 65 74 encoded; charset 00036630: 3d 55 54 46 2d 38 22 7d 2c 73 3d 4f 62 6a 65 63 =UTF-8"},s=Objec 00036640: 74 2e 6b 65 79 73 28 6f 29 2e 6d 61 70 28 28 65 t.keys(o).map((e 00036650: 3d 3e 60 24 7b 65 7d 3d 24 7b 6f 5b 65 5d 7d 60 =>`${e}=${o[e]}` 00036660: 29 29 2e 6a 6f 69 6e 28 22 26 22 29 29 3b 63 6f )).join("&"));co 00036670: 6e 73 74 20 6c 3d 79 69 65 6c 64 20 77 61 28 61 nst l=yield wa(a 00036680: 2c 73 2c 69 7c 7c 7a 73 29 3b 72 65 74 75 72 6e ,s,i||zs);return 00036690: 20 74 68 69 73 2e 65 6d 69 74 28 22 64 65 62 75 this.emit("debu 000366a0: 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 73 70 g",{action:"resp 000366b0: 6f 6e 73 65 22 2c 72 65 71 75 65 73 74 3a 72 2c onse",request:r, 000366c0: 72 65 73 70 6f 6e 73 65 3a 63 65 28 6c 29 2c 70 response:ce(l),p 000366d0: 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 2c 6c rovider:this}),l 000366e0: 7d 29 29 7d 64 65 74 65 63 74 4e 65 74 77 6f 72 }))}detectNetwor 000366f0: 6b 28 29 7b 72 65 74 75 72 6e 20 46 73 28 74 68 k(){return Fs(th 00036700: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 00036710: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 ,(function*(){re 00036720: 74 75 72 6e 20 74 68 69 73 2e 6e 65 74 77 6f 72 turn this.networ 00036730: 6b 7d 29 29 7d 70 65 72 66 6f 72 6d 28 65 2c 74 k}))}perform(e,t 00036740: 29 7b 63 6f 6e 73 74 20 6e 3d 4f 62 6a 65 63 74 ){const n=Object 00036750: 2e 63 72 65 61 74 65 28 6e 75 6c 6c 2c 7b 70 65 .create(null,{pe 00036760: 72 66 6f 72 6d 3a 7b 67 65 74 3a 28 29 3d 3e 73 rform:{get:()=>s 00036770: 75 70 65 72 2e 70 65 72 66 6f 72 6d 7d 7d 29 3b uper.perform}}); 00036780: 72 65 74 75 72 6e 20 46 73 28 74 68 69 73 2c 76 return Fs(this,v 00036790: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 000367a0: 6e 63 74 69 6f 6e 2a 28 29 7b 73 77 69 74 63 68 nction*(){switch 000367b0: 28 65 29 7b 63 61 73 65 22 67 65 74 42 6c 6f 63 (e){case"getBloc 000367c0: 6b 4e 75 6d 62 65 72 22 3a 72 65 74 75 72 6e 20 kNumber":return 000367d0: 74 68 69 73 2e 66 65 74 63 68 28 22 70 72 6f 78 this.fetch("prox 000367e0: 79 22 2c 7b 61 63 74 69 6f 6e 3a 22 65 74 68 5f y",{action:"eth_ 000367f0: 62 6c 6f 63 6b 4e 75 6d 62 65 72 22 7d 29 3b 63 blockNumber"});c 00036800: 61 73 65 22 67 65 74 47 61 73 50 72 69 63 65 22 ase"getGasPrice" 00036810: 3a 72 65 74 75 72 6e 20 74 68 69 73 2e 66 65 74 :return this.fet 00036820: 63 68 28 22 70 72 6f 78 79 22 2c 7b 61 63 74 69 ch("proxy",{acti 00036830: 6f 6e 3a 22 65 74 68 5f 67 61 73 50 72 69 63 65 on:"eth_gasPrice 00036840: 22 7d 29 3b 63 61 73 65 22 67 65 74 42 61 6c 61 "});case"getBala 00036850: 6e 63 65 22 3a 72 65 74 75 72 6e 20 74 68 69 73 nce":return this 00036860: 2e 66 65 74 63 68 28 22 61 63 63 6f 75 6e 74 22 .fetch("account" 00036870: 2c 7b 61 63 74 69 6f 6e 3a 22 62 61 6c 61 6e 63 ,{action:"balanc 00036880: 65 22 2c 61 64 64 72 65 73 73 3a 74 2e 61 64 64 e",address:t.add 00036890: 72 65 73 73 2c 74 61 67 3a 74 2e 62 6c 6f 63 6b ress,tag:t.block 000368a0: 54 61 67 7d 29 3b 63 61 73 65 22 67 65 74 54 72 Tag});case"getTr 000368b0: 61 6e 73 61 63 74 69 6f 6e 43 6f 75 6e 74 22 3a ansactionCount": 000368c0: 72 65 74 75 72 6e 20 74 68 69 73 2e 66 65 74 63 return this.fetc 000368d0: 68 28 22 70 72 6f 78 79 22 2c 7b 61 63 74 69 6f h("proxy",{actio 000368e0: 6e 3a 22 65 74 68 5f 67 65 74 54 72 61 6e 73 61 n:"eth_getTransa 000368f0: 63 74 69 6f 6e 43 6f 75 6e 74 22 2c 61 64 64 72 ctionCount",addr 00036900: 65 73 73 3a 74 2e 61 64 64 72 65 73 73 2c 74 61 ess:t.address,ta 00036910: 67 3a 74 2e 62 6c 6f 63 6b 54 61 67 7d 29 3b 63 g:t.blockTag});c 00036920: 61 73 65 22 67 65 74 43 6f 64 65 22 3a 72 65 74 ase"getCode":ret 00036930: 75 72 6e 20 74 68 69 73 2e 66 65 74 63 68 28 22 urn this.fetch(" 00036940: 70 72 6f 78 79 22 2c 7b 61 63 74 69 6f 6e 3a 22 proxy",{action:" 00036950: 65 74 68 5f 67 65 74 43 6f 64 65 22 2c 61 64 64 eth_getCode",add 00036960: 72 65 73 73 3a 74 2e 61 64 64 72 65 73 73 2c 74 ress:t.address,t 00036970: 61 67 3a 74 2e 62 6c 6f 63 6b 54 61 67 7d 29 3b ag:t.blockTag}); 00036980: 63 61 73 65 22 67 65 74 53 74 6f 72 61 67 65 41 case"getStorageA 00036990: 74 22 3a 72 65 74 75 72 6e 20 74 68 69 73 2e 66 t":return this.f 000369a0: 65 74 63 68 28 22 70 72 6f 78 79 22 2c 7b 61 63 etch("proxy",{ac 000369b0: 74 69 6f 6e 3a 22 65 74 68 5f 67 65 74 53 74 6f tion:"eth_getSto 000369c0: 72 61 67 65 41 74 22 2c 61 64 64 72 65 73 73 3a rageAt",address: 000369d0: 74 2e 61 64 64 72 65 73 73 2c 70 6f 73 69 74 69 t.address,positi 000369e0: 6f 6e 3a 74 2e 70 6f 73 69 74 69 6f 6e 2c 74 61 on:t.position,ta 000369f0: 67 3a 74 2e 62 6c 6f 63 6b 54 61 67 7d 29 3b 63 g:t.blockTag});c 00036a00: 61 73 65 22 73 65 6e 64 54 72 61 6e 73 61 63 74 ase"sendTransact 00036a10: 69 6f 6e 22 3a 72 65 74 75 72 6e 20 74 68 69 73 ion":return this 00036a20: 2e 66 65 74 63 68 28 22 70 72 6f 78 79 22 2c 7b .fetch("proxy",{ 00036a30: 61 63 74 69 6f 6e 3a 22 65 74 68 5f 73 65 6e 64 action:"eth_send 00036a40: 52 61 77 54 72 61 6e 73 61 63 74 69 6f 6e 22 2c RawTransaction", 00036a50: 68 65 78 3a 74 2e 73 69 67 6e 65 64 54 72 61 6e hex:t.signedTran 00036a60: 73 61 63 74 69 6f 6e 7d 2c 21 30 29 2e 63 61 74 saction},!0).cat 00036a70: 63 68 28 28 65 3d 3e 48 73 28 22 73 65 6e 64 54 ch((e=>Hs("sendT 00036a80: 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 2c 74 2e ransaction",e,t. 00036a90: 73 69 67 6e 65 64 54 72 61 6e 73 61 63 74 69 6f signedTransactio 00036aa0: 6e 29 29 29 3b 63 61 73 65 22 67 65 74 42 6c 6f n)));case"getBlo 00036ab0: 63 6b 22 3a 69 66 28 74 2e 62 6c 6f 63 6b 54 61 ck":if(t.blockTa 00036ac0: 67 29 72 65 74 75 72 6e 20 74 68 69 73 2e 66 65 g)return this.fe 00036ad0: 74 63 68 28 22 70 72 6f 78 79 22 2c 7b 61 63 74 tch("proxy",{act 00036ae0: 69 6f 6e 3a 22 65 74 68 5f 67 65 74 42 6c 6f 63 ion:"eth_getBloc 00036af0: 6b 42 79 4e 75 6d 62 65 72 22 2c 74 61 67 3a 74 kByNumber",tag:t 00036b00: 2e 62 6c 6f 63 6b 54 61 67 2c 62 6f 6f 6c 65 61 .blockTag,boolea 00036b10: 6e 3a 74 2e 69 6e 63 6c 75 64 65 54 72 61 6e 73 n:t.includeTrans 00036b20: 61 63 74 69 6f 6e 73 3f 22 74 72 75 65 22 3a 22 actions?"true":" 00036b30: 66 61 6c 73 65 22 7d 29 3b 74 68 72 6f 77 20 6e false"});throw n 00036b40: 65 77 20 45 72 72 6f 72 28 22 67 65 74 42 6c 6f ew Error("getBlo 00036b50: 63 6b 20 62 79 20 62 6c 6f 63 6b 48 61 73 68 20 ck by blockHash 00036b60: 6e 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 65 64 22 not implemented" 00036b70: 29 3b 63 61 73 65 22 67 65 74 54 72 61 6e 73 61 );case"getTransa 00036b80: 63 74 69 6f 6e 22 3a 72 65 74 75 72 6e 20 74 68 ction":return th 00036b90: 69 73 2e 66 65 74 63 68 28 22 70 72 6f 78 79 22 is.fetch("proxy" 00036ba0: 2c 7b 61 63 74 69 6f 6e 3a 22 65 74 68 5f 67 65 ,{action:"eth_ge 00036bb0: 74 54 72 61 6e 73 61 63 74 69 6f 6e 42 79 48 61 tTransactionByHa 00036bc0: 73 68 22 2c 74 78 68 61 73 68 3a 74 2e 74 72 61 sh",txhash:t.tra 00036bd0: 6e 73 61 63 74 69 6f 6e 48 61 73 68 7d 29 3b 63 nsactionHash});c 00036be0: 61 73 65 22 67 65 74 54 72 61 6e 73 61 63 74 69 ase"getTransacti 00036bf0: 6f 6e 52 65 63 65 69 70 74 22 3a 72 65 74 75 72 onReceipt":retur 00036c00: 6e 20 74 68 69 73 2e 66 65 74 63 68 28 22 70 72 n this.fetch("pr 00036c10: 6f 78 79 22 2c 7b 61 63 74 69 6f 6e 3a 22 65 74 oxy",{action:"et 00036c20: 68 5f 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e h_getTransaction 00036c30: 52 65 63 65 69 70 74 22 2c 74 78 68 61 73 68 3a Receipt",txhash: 00036c40: 74 2e 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 t.transactionHas 00036c50: 68 7d 29 3b 63 61 73 65 22 63 61 6c 6c 22 3a 7b h});case"call":{ 00036c60: 69 66 28 22 6c 61 74 65 73 74 22 21 3d 3d 74 2e if("latest"!==t. 00036c70: 62 6c 6f 63 6b 54 61 67 29 74 68 72 6f 77 20 6e blockTag)throw n 00036c80: 65 77 20 45 72 72 6f 72 28 22 45 74 68 65 72 73 ew Error("Ethers 00036c90: 63 61 6e 50 72 6f 76 69 64 65 72 20 64 6f 65 73 canProvider does 00036ca0: 20 6e 6f 74 20 73 75 70 70 6f 72 74 20 62 6c 6f not support blo 00036cb0: 63 6b 54 61 67 20 66 6f 72 20 63 61 6c 6c 22 29 ckTag for call") 00036cc0: 3b 63 6f 6e 73 74 20 65 3d 42 73 28 74 2e 74 72 ;const e=Bs(t.tr 00036cd0: 61 6e 73 61 63 74 69 6f 6e 29 3b 65 2e 6d 6f 64 ansaction);e.mod 00036ce0: 75 6c 65 3d 22 70 72 6f 78 79 22 2c 65 2e 61 63 ule="proxy",e.ac 00036cf0: 74 69 6f 6e 3d 22 65 74 68 5f 63 61 6c 6c 22 3b tion="eth_call"; 00036d00: 74 72 79 7b 72 65 74 75 72 6e 20 79 69 65 6c 64 try{return yield 00036d10: 20 74 68 69 73 2e 66 65 74 63 68 28 22 70 72 6f this.fetch("pro 00036d20: 78 79 22 2c 65 2c 21 30 29 7d 63 61 74 63 68 28 xy",e,!0)}catch( 00036d30: 65 29 7b 72 65 74 75 72 6e 20 48 73 28 22 63 61 e){return Hs("ca 00036d40: 6c 6c 22 2c 65 2c 74 2e 74 72 61 6e 73 61 63 74 ll",e,t.transact 00036d50: 69 6f 6e 29 7d 7d 63 61 73 65 22 65 73 74 69 6d ion)}}case"estim 00036d60: 61 74 65 47 61 73 22 3a 7b 63 6f 6e 73 74 20 65 ateGas":{const e 00036d70: 3d 42 73 28 74 2e 74 72 61 6e 73 61 63 74 69 6f =Bs(t.transactio 00036d80: 6e 29 3b 65 2e 6d 6f 64 75 6c 65 3d 22 70 72 6f n);e.module="pro 00036d90: 78 79 22 2c 65 2e 61 63 74 69 6f 6e 3d 22 65 74 xy",e.action="et 00036da0: 68 5f 65 73 74 69 6d 61 74 65 47 61 73 22 3b 74 h_estimateGas";t 00036db0: 72 79 7b 72 65 74 75 72 6e 20 79 69 65 6c 64 20 ry{return yield 00036dc0: 74 68 69 73 2e 66 65 74 63 68 28 22 70 72 6f 78 this.fetch("prox 00036dd0: 79 22 2c 65 2c 21 30 29 7d 63 61 74 63 68 28 65 y",e,!0)}catch(e 00036de0: 29 7b 72 65 74 75 72 6e 20 48 73 28 22 65 73 74 ){return Hs("est 00036df0: 69 6d 61 74 65 47 61 73 22 2c 65 2c 74 2e 74 72 imateGas",e,t.tr 00036e00: 61 6e 73 61 63 74 69 6f 6e 29 7d 7d 63 61 73 65 ansaction)}}case 00036e10: 22 67 65 74 4c 6f 67 73 22 3a 7b 63 6f 6e 73 74 "getLogs":{const 00036e20: 20 65 3d 7b 61 63 74 69 6f 6e 3a 22 67 65 74 4c e={action:"getL 00036e30: 6f 67 73 22 7d 3b 69 66 28 74 2e 66 69 6c 74 65 ogs"};if(t.filte 00036e40: 72 2e 66 72 6f 6d 42 6c 6f 63 6b 26 26 28 65 2e r.fromBlock&&(e. 00036e50: 66 72 6f 6d 42 6c 6f 63 6b 3d 47 73 28 74 2e 66 fromBlock=Gs(t.f 00036e60: 69 6c 74 65 72 2e 66 72 6f 6d 42 6c 6f 63 6b 29 ilter.fromBlock) 00036e70: 29 2c 74 2e 66 69 6c 74 65 72 2e 74 6f 42 6c 6f ),t.filter.toBlo 00036e80: 63 6b 26 26 28 65 2e 74 6f 42 6c 6f 63 6b 3d 47 ck&&(e.toBlock=G 00036e90: 73 28 74 2e 66 69 6c 74 65 72 2e 74 6f 42 6c 6f s(t.filter.toBlo 00036ea0: 63 6b 29 29 2c 74 2e 66 69 6c 74 65 72 2e 61 64 ck)),t.filter.ad 00036eb0: 64 72 65 73 73 26 26 28 65 2e 61 64 64 72 65 73 dress&&(e.addres 00036ec0: 73 3d 74 2e 66 69 6c 74 65 72 2e 61 64 64 72 65 s=t.filter.addre 00036ed0: 73 73 29 2c 74 2e 66 69 6c 74 65 72 2e 74 6f 70 ss),t.filter.top 00036ee0: 69 63 73 26 26 74 2e 66 69 6c 74 65 72 2e 74 6f ics&&t.filter.to 00036ef0: 70 69 63 73 2e 6c 65 6e 67 74 68 3e 30 26 26 28 pics.length>0&&( 00036f00: 74 2e 66 69 6c 74 65 72 2e 74 6f 70 69 63 73 2e t.filter.topics. 00036f10: 6c 65 6e 67 74 68 3e 31 26 26 55 73 2e 74 68 72 length>1&&Us.thr 00036f20: 6f 77 45 72 72 6f 72 28 22 75 6e 73 75 70 70 6f owError("unsuppo 00036f30: 72 74 65 64 20 74 6f 70 69 63 20 63 6f 75 6e 74 rted topic count 00036f40: 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 ",y.errors.UNSUP 00036f50: 50 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e PORTED_OPERATION 00036f60: 2c 7b 74 6f 70 69 63 73 3a 74 2e 66 69 6c 74 65 ,{topics:t.filte 00036f70: 72 2e 74 6f 70 69 63 73 7d 29 2c 31 3d 3d 3d 74 r.topics}),1===t 00036f80: 2e 66 69 6c 74 65 72 2e 74 6f 70 69 63 73 2e 6c .filter.topics.l 00036f90: 65 6e 67 74 68 29 29 7b 63 6f 6e 73 74 20 6e 3d ength)){const n= 00036fa0: 74 2e 66 69 6c 74 65 72 2e 74 6f 70 69 63 73 5b t.filter.topics[ 00036fb0: 30 5d 3b 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 0];"string"==typ 00036fc0: 65 6f 66 20 6e 26 26 36 36 3d 3d 3d 6e 2e 6c 65 eof n&&66===n.le 00036fd0: 6e 67 74 68 7c 7c 55 73 2e 74 68 72 6f 77 45 72 ngth||Us.throwEr 00036fe0: 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 74 65 64 ror("unsupported 00036ff0: 20 74 6f 70 69 63 20 66 6f 72 6d 61 74 22 2c 79 topic format",y 00037000: 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 .errors.UNSUPPOR 00037010: 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 74 TED_OPERATION,{t 00037020: 6f 70 69 63 30 3a 6e 7d 29 2c 65 2e 74 6f 70 69 opic0:n}),e.topi 00037030: 63 30 3d 6e 7d 63 6f 6e 73 74 20 6e 3d 79 69 65 c0=n}const n=yie 00037040: 6c 64 20 74 68 69 73 2e 66 65 74 63 68 28 22 6c ld this.fetch("l 00037050: 6f 67 73 22 2c 65 29 3b 6c 65 74 20 72 3d 7b 7d ogs",e);let r={} 00037060: 3b 66 6f 72 28 6c 65 74 20 65 3d 30 3b 65 3c 6e ;for(let e=0;e<n 00037070: 2e 6c 65 6e 67 74 68 3b 65 2b 2b 29 7b 63 6f 6e .length;e++){con 00037080: 73 74 20 74 3d 6e 5b 65 5d 3b 69 66 28 6e 75 6c st t=n[e];if(nul 00037090: 6c 3d 3d 74 2e 62 6c 6f 63 6b 48 61 73 68 29 7b l==t.blockHash){ 000370a0: 69 66 28 6e 75 6c 6c 3d 3d 72 5b 74 2e 62 6c 6f if(null==r[t.blo 000370b0: 63 6b 4e 75 6d 62 65 72 5d 29 7b 63 6f 6e 73 74 ckNumber]){const 000370c0: 20 65 3d 79 69 65 6c 64 20 74 68 69 73 2e 67 65 e=yield this.ge 000370d0: 74 42 6c 6f 63 6b 28 74 2e 62 6c 6f 63 6b 4e 75 tBlock(t.blockNu 000370e0: 6d 62 65 72 29 3b 65 26 26 28 72 5b 74 2e 62 6c mber);e&&(r[t.bl 000370f0: 6f 63 6b 4e 75 6d 62 65 72 5d 3d 65 2e 68 61 73 ockNumber]=e.has 00037100: 68 29 7d 74 2e 62 6c 6f 63 6b 48 61 73 68 3d 72 h)}t.blockHash=r 00037110: 5b 74 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 5d 7d [t.blockNumber]} 00037120: 7d 72 65 74 75 72 6e 20 6e 7d 63 61 73 65 22 67 }return n}case"g 00037130: 65 74 45 74 68 65 72 50 72 69 63 65 22 3a 72 65 etEtherPrice":re 00037140: 74 75 72 6e 22 68 6f 6d 65 73 74 65 61 64 22 21 turn"homestead"! 00037150: 3d 3d 74 68 69 73 2e 6e 65 74 77 6f 72 6b 2e 6e ==this.network.n 00037160: 61 6d 65 3f 30 3a 70 61 72 73 65 46 6c 6f 61 74 ame?0:parseFloat 00037170: 28 28 79 69 65 6c 64 20 74 68 69 73 2e 66 65 74 ((yield this.fet 00037180: 63 68 28 22 73 74 61 74 73 22 2c 7b 61 63 74 69 ch("stats",{acti 00037190: 6f 6e 3a 22 65 74 68 70 72 69 63 65 22 7d 29 29 on:"ethprice"})) 000371a0: 2e 65 74 68 75 73 64 29 7d 72 65 74 75 72 6e 20 .ethusd)}return 000371b0: 6e 2e 70 65 72 66 6f 72 6d 2e 63 61 6c 6c 28 74 n.perform.call(t 000371c0: 68 69 73 2c 65 2c 74 29 7d 29 29 7d 67 65 74 48 his,e,t)}))}getH 000371d0: 69 73 74 6f 72 79 28 65 2c 74 2c 6e 29 7b 72 65 istory(e,t,n){re 000371e0: 74 75 72 6e 20 46 73 28 74 68 69 73 2c 76 6f 69 turn Fs(this,voi 000371f0: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 00037200: 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 72 3d tion*(){const r= 00037210: 7b 61 63 74 69 6f 6e 3a 22 74 78 6c 69 73 74 22 {action:"txlist" 00037220: 2c 61 64 64 72 65 73 73 3a 79 69 65 6c 64 20 74 ,address:yield t 00037230: 68 69 73 2e 72 65 73 6f 6c 76 65 4e 61 6d 65 28 his.resolveName( 00037240: 65 29 2c 73 74 61 72 74 62 6c 6f 63 6b 3a 6e 75 e),startblock:nu 00037250: 6c 6c 3d 3d 74 3f 30 3a 74 2c 65 6e 64 62 6c 6f ll==t?0:t,endblo 00037260: 63 6b 3a 6e 75 6c 6c 3d 3d 6e 3f 39 39 39 39 39 ck:null==n?99999 00037270: 39 39 39 3a 6e 2c 73 6f 72 74 3a 22 61 73 63 22 999:n,sort:"asc" 00037280: 7d 3b 72 65 74 75 72 6e 28 79 69 65 6c 64 20 74 };return(yield t 00037290: 68 69 73 2e 66 65 74 63 68 28 22 61 63 63 6f 75 his.fetch("accou 000372a0: 6e 74 22 2c 72 29 29 2e 6d 61 70 28 28 65 3d 3e nt",r)).map((e=> 000372b0: 7b 5b 22 63 6f 6e 74 72 61 63 74 41 64 64 72 65 {["contractAddre 000372c0: 73 73 22 2c 22 74 6f 22 5d 2e 66 6f 72 45 61 63 ss","to"].forEac 000372d0: 68 28 28 66 75 6e 63 74 69 6f 6e 28 74 29 7b 22 h((function(t){" 000372e0: 22 3d 3d 65 5b 74 5d 26 26 64 65 6c 65 74 65 20 "==e[t]&&delete 000372f0: 65 5b 74 5d 7d 29 29 2c 6e 75 6c 6c 3d 3d 65 2e e[t]})),null==e. 00037300: 63 72 65 61 74 65 73 26 26 6e 75 6c 6c 21 3d 65 creates&&null!=e 00037310: 2e 63 6f 6e 74 72 61 63 74 41 64 64 72 65 73 73 .contractAddress 00037320: 26 26 28 65 2e 63 72 65 61 74 65 73 3d 65 2e 63 &&(e.creates=e.c 00037330: 6f 6e 74 72 61 63 74 41 64 64 72 65 73 73 29 3b ontractAddress); 00037340: 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 66 6f 72 const t=this.for 00037350: 6d 61 74 74 65 72 2e 74 72 61 6e 73 61 63 74 69 matter.transacti 00037360: 6f 6e 52 65 73 70 6f 6e 73 65 28 65 29 3b 72 65 onResponse(e);re 00037370: 74 75 72 6e 20 65 2e 74 69 6d 65 53 74 61 6d 70 turn e.timeStamp 00037380: 26 26 28 74 2e 74 69 6d 65 73 74 61 6d 70 3d 70 &&(t.timestamp=p 00037390: 61 72 73 65 49 6e 74 28 65 2e 74 69 6d 65 53 74 arseInt(e.timeSt 000373a0: 61 6d 70 29 29 2c 74 7d 29 29 7d 29 29 7d 69 73 amp)),t}))}))}is 000373b0: 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f 75 72 63 CommunityResourc 000373c0: 65 28 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d e(){return null= 000373d0: 3d 74 68 69 73 2e 61 70 69 4b 65 79 7d 7d 66 75 =this.apiKey}}fu 000373e0: 6e 63 74 69 6f 6e 20 71 73 28 65 29 7b 66 6f 72 nction qs(e){for 000373f0: 28 6c 65 74 20 74 3d 28 65 3d 65 2e 73 6c 69 63 (let t=(e=e.slic 00037400: 65 28 29 29 2e 6c 65 6e 67 74 68 2d 31 3b 74 3e e()).length-1;t> 00037410: 30 3b 74 2d 2d 29 7b 63 6f 6e 73 74 20 6e 3d 4d 0;t--){const n=M 00037420: 61 74 68 2e 66 6c 6f 6f 72 28 4d 61 74 68 2e 72 ath.floor(Math.r 00037430: 61 6e 64 6f 6d 28 29 2a 28 74 2b 31 29 29 2c 72 andom()*(t+1)),r 00037440: 3d 65 5b 74 5d 3b 65 5b 74 5d 3d 65 5b 6e 5d 2c =e[t];e[t]=e[n], 00037450: 65 5b 6e 5d 3d 72 7d 72 65 74 75 72 6e 20 65 7d e[n]=r}return e} 00037460: 76 61 72 20 57 73 3d 66 75 6e 63 74 69 6f 6e 28 var Ws=function( 00037470: 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 e,t,n,r){return 00037480: 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 new(n||(n=Promis 00037490: 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c e))((function(o, 000374a0: 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 i){function a(e) 000374b0: 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 {try{l(r.next(e) 000374c0: 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d )}catch(e){i(e)} 000374d0: 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 }function s(e){t 000374e0: 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 ry{l(r.throw(e)) 000374f0: 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d }catch(e){i(e)}} 00037500: 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 function l(e){va 00037510: 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 r t;e.done?o(e.v 00037520: 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 alue):(t=e.value 00037530: 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f ,t instanceof n? 00037540: 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 6f t:new n((functio 00037550: 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 n(e){e(t)}))).th 00037560: 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 en(a,s)}l((r=r.a 00037570: 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e pply(e,t||[])).n 00037580: 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 ext())}))};const 00037590: 20 4b 73 3d 6e 65 77 20 79 28 41 61 29 3b 66 75 Ks=new y(Aa);fu 000375a0: 6e 63 74 69 6f 6e 20 59 73 28 29 7b 72 65 74 75 nction Ys(){retu 000375b0: 72 6e 28 6e 65 77 20 44 61 74 65 29 2e 67 65 74 rn(new Date).get 000375c0: 54 69 6d 65 28 29 7d 66 75 6e 63 74 69 6f 6e 20 Time()}function 000375d0: 58 73 28 65 29 7b 6c 65 74 20 74 3d 6e 75 6c 6c Xs(e){let t=null 000375e0: 3b 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 6e 3c 65 ;for(let n=0;n<e 000375f0: 2e 6c 65 6e 67 74 68 3b 6e 2b 2b 29 7b 63 6f 6e .length;n++){con 00037600: 73 74 20 72 3d 65 5b 6e 5d 3b 69 66 28 6e 75 6c st r=e[n];if(nul 00037610: 6c 3d 3d 72 29 72 65 74 75 72 6e 20 6e 75 6c 6c l==r)return null 00037620: 3b 74 3f 74 2e 6e 61 6d 65 3d 3d 3d 72 2e 6e 61 ;t?t.name===r.na 00037630: 6d 65 26 26 74 2e 63 68 61 69 6e 49 64 3d 3d 3d me&&t.chainId=== 00037640: 72 2e 63 68 61 69 6e 49 64 26 26 28 74 2e 65 6e r.chainId&&(t.en 00037650: 73 41 64 64 72 65 73 73 3d 3d 3d 72 2e 65 6e 73 sAddress===r.ens 00037660: 41 64 64 72 65 73 73 7c 7c 6e 75 6c 6c 3d 3d 74 Address||null==t 00037670: 2e 65 6e 73 41 64 64 72 65 73 73 26 26 6e 75 6c .ensAddress&&nul 00037680: 6c 3d 3d 72 2e 65 6e 73 41 64 64 72 65 73 73 29 l==r.ensAddress) 00037690: 7c 7c 4b 73 2e 74 68 72 6f 77 41 72 67 75 6d 65 ||Ks.throwArgume 000376a0: 6e 74 45 72 72 6f 72 28 22 70 72 6f 76 69 64 65 ntError("provide 000376b0: 72 20 6d 69 73 6d 61 74 63 68 22 2c 22 6e 65 74 r mismatch","net 000376c0: 77 6f 72 6b 73 22 2c 65 29 3a 74 3d 72 7d 72 65 works",e):t=r}re 000376d0: 74 75 72 6e 20 74 7d 66 75 6e 63 74 69 6f 6e 20 turn t}function 000376e0: 5a 73 28 65 2c 74 29 7b 65 3d 65 2e 73 6c 69 63 Zs(e,t){e=e.slic 000376f0: 65 28 29 2e 73 6f 72 74 28 29 3b 63 6f 6e 73 74 e().sort();const 00037700: 20 6e 3d 4d 61 74 68 2e 66 6c 6f 6f 72 28 65 2e n=Math.floor(e. 00037710: 6c 65 6e 67 74 68 2f 32 29 3b 69 66 28 65 2e 6c length/2);if(e.l 00037720: 65 6e 67 74 68 25 32 29 72 65 74 75 72 6e 20 65 ength%2)return e 00037730: 5b 6e 5d 3b 63 6f 6e 73 74 20 72 3d 65 5b 6e 2d [n];const r=e[n- 00037740: 31 5d 2c 6f 3d 65 5b 6e 5d 3b 72 65 74 75 72 6e 1],o=e[n];return 00037750: 20 6e 75 6c 6c 21 3d 74 26 26 4d 61 74 68 2e 61 null!=t&&Math.a 00037760: 62 73 28 72 2d 6f 29 3e 74 3f 6e 75 6c 6c 3a 28 bs(r-o)>t?null:( 00037770: 72 2b 6f 29 2f 32 7d 66 75 6e 63 74 69 6f 6e 20 r+o)/2}function 00037780: 51 73 28 65 29 7b 69 66 28 6e 75 6c 6c 3d 3d 3d Qs(e){if(null=== 00037790: 65 29 72 65 74 75 72 6e 22 6e 75 6c 6c 22 3b 69 e)return"null";i 000377a0: 66 28 22 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 f("number"==type 000377b0: 6f 66 20 65 7c 7c 22 62 6f 6f 6c 65 61 6e 22 3d of e||"boolean"= 000377c0: 3d 74 79 70 65 6f 66 20 65 29 72 65 74 75 72 6e =typeof e)return 000377d0: 20 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 JSON.stringify( 000377e0: 65 29 3b 69 66 28 22 73 74 72 69 6e 67 22 3d 3d e);if("string"== 000377f0: 74 79 70 65 6f 66 20 65 29 72 65 74 75 72 6e 20 typeof e)return 00037800: 65 3b 69 66 28 59 2e 69 73 42 69 67 4e 75 6d 62 e;if(Y.isBigNumb 00037810: 65 72 28 65 29 29 72 65 74 75 72 6e 20 65 2e 74 er(e))return e.t 00037820: 6f 53 74 72 69 6e 67 28 29 3b 69 66 28 41 72 72 oString();if(Arr 00037830: 61 79 2e 69 73 41 72 72 61 79 28 65 29 29 72 65 ay.isArray(e))re 00037840: 74 75 72 6e 20 4a 53 4f 4e 2e 73 74 72 69 6e 67 turn JSON.string 00037850: 69 66 79 28 65 2e 6d 61 70 28 28 65 3d 3e 51 73 ify(e.map((e=>Qs 00037860: 28 65 29 29 29 29 3b 69 66 28 22 6f 62 6a 65 63 (e))));if("objec 00037870: 74 22 3d 3d 74 79 70 65 6f 66 20 65 29 7b 63 6f t"==typeof e){co 00037880: 6e 73 74 20 74 3d 4f 62 6a 65 63 74 2e 6b 65 79 nst t=Object.key 00037890: 73 28 65 29 3b 72 65 74 75 72 6e 20 74 2e 73 6f s(e);return t.so 000378a0: 72 74 28 29 2c 22 7b 22 2b 74 2e 6d 61 70 28 28 rt(),"{"+t.map(( 000378b0: 74 3d 3e 7b 6c 65 74 20 6e 3d 65 5b 74 5d 3b 72 t=>{let n=e[t];r 000378c0: 65 74 75 72 6e 20 6e 3d 22 66 75 6e 63 74 69 6f eturn n="functio 000378d0: 6e 22 3d 3d 74 79 70 65 6f 66 20 6e 3f 22 5b 66 n"==typeof n?"[f 000378e0: 75 6e 63 74 69 6f 6e 5d 22 3a 51 73 28 6e 29 2c unction]":Qs(n), 000378f0: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 74 JSON.stringify(t 00037900: 29 2b 22 3a 22 2b 6e 7d 29 29 2e 6a 6f 69 6e 28 )+":"+n})).join( 00037910: 22 2c 22 29 2b 22 7d 22 7d 74 68 72 6f 77 20 6e ",")+"}"}throw n 00037920: 65 77 20 45 72 72 6f 72 28 22 75 6e 6b 6e 6f 77 ew Error("unknow 00037930: 6e 20 76 61 6c 75 65 20 74 79 70 65 3a 20 22 2b n value type: "+ 00037940: 74 79 70 65 6f 66 20 65 29 7d 6c 65 74 20 4a 73 typeof e)}let Js 00037950: 3d 31 3b 66 75 6e 63 74 69 6f 6e 20 24 73 28 65 =1;function $s(e 00037960: 29 7b 6c 65 74 20 74 3d 6e 75 6c 6c 2c 6e 3d 6e ){let t=null,n=n 00037970: 75 6c 6c 2c 72 3d 6e 65 77 20 50 72 6f 6d 69 73 ull,r=new Promis 00037980: 65 28 28 72 3d 3e 7b 74 3d 66 75 6e 63 74 69 6f e((r=>{t=functio 00037990: 6e 28 29 7b 6e 26 26 28 63 6c 65 61 72 54 69 6d n(){n&&(clearTim 000379a0: 65 6f 75 74 28 6e 29 2c 6e 3d 6e 75 6c 6c 29 2c eout(n),n=null), 000379b0: 72 28 29 7d 2c 6e 3d 73 65 74 54 69 6d 65 6f 75 r()},n=setTimeou 000379c0: 74 28 74 2c 65 29 7d 29 29 3b 72 65 74 75 72 6e t(t,e)}));return 000379d0: 7b 63 61 6e 63 65 6c 3a 74 2c 67 65 74 50 72 6f {cancel:t,getPro 000379e0: 6d 69 73 65 3a 66 75 6e 63 74 69 6f 6e 28 29 7b mise:function(){ 000379f0: 72 65 74 75 72 6e 20 72 7d 2c 77 61 69 74 3a 65 return r},wait:e 00037a00: 3d 3e 28 72 3d 72 2e 74 68 65 6e 28 65 29 2c 72 =>(r=r.then(e),r 00037a10: 29 7d 7d 63 6f 6e 73 74 20 65 6c 3d 5b 79 2e 65 )}}const el=[y.e 00037a20: 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 rrors.CALL_EXCEP 00037a30: 54 49 4f 4e 2c 79 2e 65 72 72 6f 72 73 2e 49 4e TION,y.errors.IN 00037a40: 53 55 46 46 49 43 49 45 4e 54 5f 46 55 4e 44 53 SUFFICIENT_FUNDS 00037a50: 2c 79 2e 65 72 72 6f 72 73 2e 4e 4f 4e 43 45 5f ,y.errors.NONCE_ 00037a60: 45 58 50 49 52 45 44 2c 79 2e 65 72 72 6f 72 73 EXPIRED,y.errors 00037a70: 2e 52 45 50 4c 41 43 45 4d 45 4e 54 5f 55 4e 44 .REPLACEMENT_UND 00037a80: 45 52 50 52 49 43 45 44 2c 79 2e 65 72 72 6f 72 ERPRICED,y.error 00037a90: 73 2e 55 4e 50 52 45 44 49 43 54 41 42 4c 45 5f s.UNPREDICTABLE_ 00037aa0: 47 41 53 5f 4c 49 4d 49 54 5d 2c 74 6c 3d 5b 22 GAS_LIMIT],tl=[" 00037ab0: 61 64 64 72 65 73 73 22 2c 22 61 72 67 73 22 2c address","args", 00037ac0: 22 65 72 72 6f 72 41 72 67 73 22 2c 22 65 72 72 "errorArgs","err 00037ad0: 6f 72 53 69 67 6e 61 74 75 72 65 22 2c 22 6d 65 orSignature","me 00037ae0: 74 68 6f 64 22 2c 22 74 72 61 6e 73 61 63 74 69 thod","transacti 00037af0: 6f 6e 22 5d 3b 66 75 6e 63 74 69 6f 6e 20 6e 6c on"];function nl 00037b00: 28 65 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 7b 77 (e,t){const n={w 00037b10: 65 69 67 68 74 3a 65 2e 77 65 69 67 68 74 7d 3b eight:e.weight}; 00037b20: 72 65 74 75 72 6e 20 4f 62 6a 65 63 74 2e 64 65 return Object.de 00037b30: 66 69 6e 65 50 72 6f 70 65 72 74 79 28 6e 2c 22 fineProperty(n," 00037b40: 70 72 6f 76 69 64 65 72 22 2c 7b 67 65 74 3a 28 provider",{get:( 00037b50: 29 3d 3e 65 2e 70 72 6f 76 69 64 65 72 7d 29 2c )=>e.provider}), 00037b60: 65 2e 73 74 61 72 74 26 26 28 6e 2e 73 74 61 72 e.start&&(n.star 00037b70: 74 3d 65 2e 73 74 61 72 74 29 2c 74 26 26 28 6e t=e.start),t&&(n 00037b80: 2e 64 75 72 61 74 69 6f 6e 3d 74 2d 65 2e 73 74 .duration=t-e.st 00037b90: 61 72 74 29 2c 65 2e 64 6f 6e 65 26 26 28 65 2e art),e.done&&(e. 00037ba0: 65 72 72 6f 72 3f 6e 2e 65 72 72 6f 72 3d 65 2e error?n.error=e. 00037bb0: 65 72 72 6f 72 3a 6e 2e 72 65 73 75 6c 74 3d 65 error:n.result=e 00037bc0: 2e 72 65 73 75 6c 74 7c 7c 6e 75 6c 6c 29 2c 6e .result||null),n 00037bd0: 7d 66 75 6e 63 74 69 6f 6e 20 72 6c 28 65 2c 74 }function rl(e,t 00037be0: 2c 6e 29 7b 6c 65 74 20 72 3d 51 73 3b 73 77 69 ,n){let r=Qs;swi 00037bf0: 74 63 68 28 74 29 7b 63 61 73 65 22 67 65 74 42 tch(t){case"getB 00037c00: 6c 6f 63 6b 4e 75 6d 62 65 72 22 3a 72 65 74 75 lockNumber":retu 00037c10: 72 6e 20 66 75 6e 63 74 69 6f 6e 28 74 29 7b 63 rn function(t){c 00037c20: 6f 6e 73 74 20 6e 3d 74 2e 6d 61 70 28 28 65 3d onst n=t.map((e= 00037c30: 3e 65 2e 72 65 73 75 6c 74 29 29 3b 6c 65 74 20 >e.result));let 00037c40: 72 3d 5a 73 28 74 2e 6d 61 70 28 28 65 3d 3e 65 r=Zs(t.map((e=>e 00037c50: 2e 72 65 73 75 6c 74 29 29 2c 32 29 3b 69 66 28 .result)),2);if( 00037c60: 6e 75 6c 6c 21 3d 72 29 72 65 74 75 72 6e 20 72 null!=r)return r 00037c70: 3d 4d 61 74 68 2e 63 65 69 6c 28 72 29 2c 6e 2e =Math.ceil(r),n. 00037c80: 69 6e 64 65 78 4f 66 28 72 2b 31 29 3e 3d 30 26 indexOf(r+1)>=0& 00037c90: 26 72 2b 2b 2c 72 3e 3d 65 2e 5f 68 69 67 68 65 &r++,r>=e._highe 00037ca0: 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 26 26 28 stBlockNumber&&( 00037cb0: 65 2e 5f 68 69 67 68 65 73 74 42 6c 6f 63 6b 4e e._highestBlockN 00037cc0: 75 6d 62 65 72 3d 72 29 2c 65 2e 5f 68 69 67 68 umber=r),e._high 00037cd0: 65 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 7d 3b estBlockNumber}; 00037ce0: 63 61 73 65 22 67 65 74 47 61 73 50 72 69 63 65 case"getGasPrice 00037cf0: 22 3a 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f ":return functio 00037d00: 6e 28 65 29 7b 63 6f 6e 73 74 20 74 3d 65 2e 6d n(e){const t=e.m 00037d10: 61 70 28 28 65 3d 3e 65 2e 72 65 73 75 6c 74 29 ap((e=>e.result) 00037d20: 29 3b 72 65 74 75 72 6e 20 74 2e 73 6f 72 74 28 );return t.sort( 00037d30: 29 2c 74 5b 4d 61 74 68 2e 66 6c 6f 6f 72 28 74 ),t[Math.floor(t 00037d40: 2e 6c 65 6e 67 74 68 2f 32 29 5d 7d 3b 63 61 73 .length/2)]};cas 00037d50: 65 22 67 65 74 45 74 68 65 72 50 72 69 63 65 22 e"getEtherPrice" 00037d60: 3a 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e :return function 00037d70: 28 65 29 7b 72 65 74 75 72 6e 20 5a 73 28 65 2e (e){return Zs(e. 00037d80: 6d 61 70 28 28 65 3d 3e 65 2e 72 65 73 75 6c 74 map((e=>e.result 00037d90: 29 29 29 7d 3b 63 61 73 65 22 67 65 74 42 61 6c )))};case"getBal 00037da0: 61 6e 63 65 22 3a 63 61 73 65 22 67 65 74 54 72 ance":case"getTr 00037db0: 61 6e 73 61 63 74 69 6f 6e 43 6f 75 6e 74 22 3a ansactionCount": 00037dc0: 63 61 73 65 22 67 65 74 43 6f 64 65 22 3a 63 61 case"getCode":ca 00037dd0: 73 65 22 67 65 74 53 74 6f 72 61 67 65 41 74 22 se"getStorageAt" 00037de0: 3a 63 61 73 65 22 63 61 6c 6c 22 3a 63 61 73 65 :case"call":case 00037df0: 22 65 73 74 69 6d 61 74 65 47 61 73 22 3a 63 61 "estimateGas":ca 00037e00: 73 65 22 67 65 74 4c 6f 67 73 22 3a 62 72 65 61 se"getLogs":brea 00037e10: 6b 3b 63 61 73 65 22 67 65 74 54 72 61 6e 73 61 k;case"getTransa 00037e20: 63 74 69 6f 6e 22 3a 63 61 73 65 22 67 65 74 54 ction":case"getT 00037e30: 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 65 69 70 ransactionReceip 00037e40: 74 22 3a 72 3d 66 75 6e 63 74 69 6f 6e 28 65 29 t":r=function(e) 00037e50: 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d 3d 65 3f {return null==e? 00037e60: 6e 75 6c 6c 3a 28 28 65 3d 69 65 28 65 29 29 2e null:((e=ie(e)). 00037e70: 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 3d 2d 31 confirmations=-1 00037e80: 2c 51 73 28 65 29 29 7d 3b 62 72 65 61 6b 3b 63 ,Qs(e))};break;c 00037e90: 61 73 65 22 67 65 74 42 6c 6f 63 6b 22 3a 72 3d ase"getBlock":r= 00037ea0: 6e 2e 69 6e 63 6c 75 64 65 54 72 61 6e 73 61 63 n.includeTransac 00037eb0: 74 69 6f 6e 73 3f 66 75 6e 63 74 69 6f 6e 28 65 tions?function(e 00037ec0: 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d 3d 65 ){return null==e 00037ed0: 3f 6e 75 6c 6c 3a 28 28 65 3d 69 65 28 65 29 29 ?null:((e=ie(e)) 00037ee0: 2e 74 72 61 6e 73 61 63 74 69 6f 6e 73 3d 65 2e .transactions=e. 00037ef0: 74 72 61 6e 73 61 63 74 69 6f 6e 73 2e 6d 61 70 transactions.map 00037f00: 28 28 65 3d 3e 28 28 65 3d 69 65 28 65 29 29 2e ((e=>((e=ie(e)). 00037f10: 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 3d 2d 31 confirmations=-1 00037f20: 2c 65 29 29 29 2c 51 73 28 65 29 29 7d 3a 66 75 ,e))),Qs(e))}:fu 00037f30: 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e nction(e){return 00037f40: 20 6e 75 6c 6c 3d 3d 65 3f 6e 75 6c 6c 3a 51 73 null==e?null:Qs 00037f50: 28 65 29 7d 3b 62 72 65 61 6b 3b 64 65 66 61 75 (e)};break;defau 00037f60: 6c 74 3a 74 68 72 6f 77 20 6e 65 77 20 45 72 72 lt:throw new Err 00037f70: 6f 72 28 22 75 6e 6b 6e 6f 77 6e 20 6d 65 74 68 or("unknown meth 00037f80: 6f 64 3a 20 22 2b 74 29 7d 72 65 74 75 72 6e 20 od: "+t)}return 00037f90: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 function(e,t){re 00037fa0: 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e 28 6e 29 turn function(n) 00037fb0: 7b 63 6f 6e 73 74 20 72 3d 7b 7d 3b 6e 2e 66 6f {const r={};n.fo 00037fc0: 72 45 61 63 68 28 28 74 3d 3e 7b 63 6f 6e 73 74 rEach((t=>{const 00037fd0: 20 6e 3d 65 28 74 2e 72 65 73 75 6c 74 29 3b 72 n=e(t.result);r 00037fe0: 5b 6e 5d 7c 7c 28 72 5b 6e 5d 3d 7b 63 6f 75 6e [n]||(r[n]={coun 00037ff0: 74 3a 30 2c 72 65 73 75 6c 74 3a 74 2e 72 65 73 t:0,result:t.res 00038000: 75 6c 74 7d 29 2c 72 5b 6e 5d 2e 63 6f 75 6e 74 ult}),r[n].count 00038010: 2b 2b 7d 29 29 3b 63 6f 6e 73 74 20 6f 3d 4f 62 ++}));const o=Ob 00038020: 6a 65 63 74 2e 6b 65 79 73 28 72 29 3b 66 6f 72 ject.keys(r);for 00038030: 28 6c 65 74 20 65 3d 30 3b 65 3c 6f 2e 6c 65 6e (let e=0;e<o.len 00038040: 67 74 68 3b 65 2b 2b 29 7b 63 6f 6e 73 74 20 6e gth;e++){const n 00038050: 3d 72 5b 6f 5b 65 5d 5d 3b 69 66 28 6e 2e 63 6f =r[o[e]];if(n.co 00038060: 75 6e 74 3e 3d 74 29 72 65 74 75 72 6e 20 6e 2e unt>=t)return n. 00038070: 72 65 73 75 6c 74 7d 7d 7d 28 72 2c 65 2e 71 75 result}}}(r,e.qu 00038080: 6f 72 75 6d 29 7d 66 75 6e 63 74 69 6f 6e 20 6f orum)}function o 00038090: 6c 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 57 73 l(e,t){return Ws 000380a0: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 000380b0: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 000380c0: 7b 63 6f 6e 73 74 20 6e 3d 65 2e 70 72 6f 76 69 {const n=e.provi 000380d0: 64 65 72 3b 72 65 74 75 72 6e 20 6e 75 6c 6c 21 der;return null! 000380e0: 3d 6e 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 26 26 =n.blockNumber&& 000380f0: 6e 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 3e 3d 74 n.blockNumber>=t 00038100: 7c 7c 2d 31 3d 3d 3d 74 3f 6e 3a 78 61 28 28 28 ||-1===t?n:xa((( 00038110: 29 3d 3e 6e 65 77 20 50 72 6f 6d 69 73 65 28 28 )=>new Promise(( 00038120: 28 72 2c 6f 29 3d 3e 7b 73 65 74 54 69 6d 65 6f (r,o)=>{setTimeo 00038130: 75 74 28 28 66 75 6e 63 74 69 6f 6e 28 29 7b 72 ut((function(){r 00038140: 65 74 75 72 6e 20 6e 2e 62 6c 6f 63 6b 4e 75 6d eturn n.blockNum 00038150: 62 65 72 3e 3d 74 3f 72 28 6e 29 3a 65 2e 63 61 ber>=t?r(n):e.ca 00038160: 6e 63 65 6c 6c 65 64 3f 72 28 6e 75 6c 6c 29 3a ncelled?r(null): 00038170: 72 28 76 6f 69 64 20 30 29 7d 29 2c 30 29 7d 29 r(void 0)}),0)}) 00038180: 29 29 2c 7b 6f 6e 63 65 50 6f 6c 6c 3a 6e 7d 29 )),{oncePoll:n}) 00038190: 7d 29 29 7d 66 75 6e 63 74 69 6f 6e 20 69 6c 28 }))}function il( 000381a0: 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 e,t,n,r){return 000381b0: 57 73 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 Ws(this,void 0,v 000381c0: 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a oid 0,(function* 000381d0: 28 29 7b 6c 65 74 20 6f 3d 65 2e 70 72 6f 76 69 (){let o=e.provi 000381e0: 64 65 72 3b 73 77 69 74 63 68 28 6e 29 7b 63 61 der;switch(n){ca 000381f0: 73 65 22 67 65 74 42 6c 6f 63 6b 4e 75 6d 62 65 se"getBlockNumbe 00038200: 72 22 3a 63 61 73 65 22 67 65 74 47 61 73 50 72 r":case"getGasPr 00038210: 69 63 65 22 3a 72 65 74 75 72 6e 20 6f 5b 6e 5d ice":return o[n] 00038220: 28 29 3b 63 61 73 65 22 67 65 74 45 74 68 65 72 ();case"getEther 00038230: 50 72 69 63 65 22 3a 69 66 28 6f 2e 67 65 74 45 Price":if(o.getE 00038240: 74 68 65 72 50 72 69 63 65 29 72 65 74 75 72 6e therPrice)return 00038250: 20 6f 2e 67 65 74 45 74 68 65 72 50 72 69 63 65 o.getEtherPrice 00038260: 28 29 3b 62 72 65 61 6b 3b 63 61 73 65 22 67 65 ();break;case"ge 00038270: 74 42 61 6c 61 6e 63 65 22 3a 63 61 73 65 22 67 tBalance":case"g 00038280: 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 43 6f 75 etTransactionCou 00038290: 6e 74 22 3a 63 61 73 65 22 67 65 74 43 6f 64 65 nt":case"getCode 000382a0: 22 3a 72 65 74 75 72 6e 20 72 2e 62 6c 6f 63 6b ":return r.block 000382b0: 54 61 67 26 26 49 28 72 2e 62 6c 6f 63 6b 54 61 Tag&&I(r.blockTa 000382c0: 67 29 26 26 28 6f 3d 79 69 65 6c 64 20 6f 6c 28 g)&&(o=yield ol( 000382d0: 65 2c 74 29 29 2c 6f 5b 6e 5d 28 72 2e 61 64 64 e,t)),o[n](r.add 000382e0: 72 65 73 73 2c 72 2e 62 6c 6f 63 6b 54 61 67 7c ress,r.blockTag| 000382f0: 7c 22 6c 61 74 65 73 74 22 29 3b 63 61 73 65 22 |"latest");case" 00038300: 67 65 74 53 74 6f 72 61 67 65 41 74 22 3a 72 65 getStorageAt":re 00038310: 74 75 72 6e 20 72 2e 62 6c 6f 63 6b 54 61 67 26 turn r.blockTag& 00038320: 26 49 28 72 2e 62 6c 6f 63 6b 54 61 67 29 26 26 &I(r.blockTag)&& 00038330: 28 6f 3d 79 69 65 6c 64 20 6f 6c 28 65 2c 74 29 (o=yield ol(e,t) 00038340: 29 2c 6f 2e 67 65 74 53 74 6f 72 61 67 65 41 74 ),o.getStorageAt 00038350: 28 72 2e 61 64 64 72 65 73 73 2c 72 2e 70 6f 73 (r.address,r.pos 00038360: 69 74 69 6f 6e 2c 72 2e 62 6c 6f 63 6b 54 61 67 ition,r.blockTag 00038370: 7c 7c 22 6c 61 74 65 73 74 22 29 3b 63 61 73 65 ||"latest");case 00038380: 22 67 65 74 42 6c 6f 63 6b 22 3a 72 65 74 75 72 "getBlock":retur 00038390: 6e 20 72 2e 62 6c 6f 63 6b 54 61 67 26 26 49 28 n r.blockTag&&I( 000383a0: 72 2e 62 6c 6f 63 6b 54 61 67 29 26 26 28 6f 3d r.blockTag)&&(o= 000383b0: 79 69 65 6c 64 20 6f 6c 28 65 2c 74 29 29 2c 6f yield ol(e,t)),o 000383c0: 5b 72 2e 69 6e 63 6c 75 64 65 54 72 61 6e 73 61 [r.includeTransa 000383d0: 63 74 69 6f 6e 73 3f 22 67 65 74 42 6c 6f 63 6b ctions?"getBlock 000383e0: 57 69 74 68 54 72 61 6e 73 61 63 74 69 6f 6e 73 WithTransactions 000383f0: 22 3a 22 67 65 74 42 6c 6f 63 6b 22 5d 28 72 2e ":"getBlock"](r. 00038400: 62 6c 6f 63 6b 54 61 67 7c 7c 72 2e 62 6c 6f 63 blockTag||r.bloc 00038410: 6b 48 61 73 68 29 3b 63 61 73 65 22 63 61 6c 6c kHash);case"call 00038420: 22 3a 63 61 73 65 22 65 73 74 69 6d 61 74 65 47 ":case"estimateG 00038430: 61 73 22 3a 72 65 74 75 72 6e 20 72 2e 62 6c 6f as":return r.blo 00038440: 63 6b 54 61 67 26 26 49 28 72 2e 62 6c 6f 63 6b ckTag&&I(r.block 00038450: 54 61 67 29 26 26 28 6f 3d 79 69 65 6c 64 20 6f Tag)&&(o=yield o 00038460: 6c 28 65 2c 74 29 29 2c 22 63 61 6c 6c 22 3d 3d l(e,t)),"call"== 00038470: 3d 6e 26 26 72 2e 62 6c 6f 63 6b 54 61 67 3f 6f =n&&r.blockTag?o 00038480: 5b 6e 5d 28 72 2e 74 72 61 6e 73 61 63 74 69 6f [n](r.transactio 00038490: 6e 2c 72 2e 62 6c 6f 63 6b 54 61 67 29 3a 6f 5b n,r.blockTag):o[ 000384a0: 6e 5d 28 72 2e 74 72 61 6e 73 61 63 74 69 6f 6e n](r.transaction 000384b0: 29 3b 63 61 73 65 22 67 65 74 54 72 61 6e 73 61 );case"getTransa 000384c0: 63 74 69 6f 6e 22 3a 63 61 73 65 22 67 65 74 54 ction":case"getT 000384d0: 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 65 69 70 ransactionReceip 000384e0: 74 22 3a 72 65 74 75 72 6e 20 6f 5b 6e 5d 28 72 t":return o[n](r 000384f0: 2e 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 68 .transactionHash 00038500: 29 3b 63 61 73 65 22 67 65 74 4c 6f 67 73 22 3a );case"getLogs": 00038510: 7b 6c 65 74 20 6e 3d 72 2e 66 69 6c 74 65 72 3b {let n=r.filter; 00038520: 72 65 74 75 72 6e 28 6e 2e 66 72 6f 6d 42 6c 6f return(n.fromBlo 00038530: 63 6b 26 26 49 28 6e 2e 66 72 6f 6d 42 6c 6f 63 ck&&I(n.fromBloc 00038540: 6b 29 7c 7c 6e 2e 74 6f 42 6c 6f 63 6b 26 26 49 k)||n.toBlock&&I 00038550: 28 6e 2e 74 6f 42 6c 6f 63 6b 29 29 26 26 28 6f (n.toBlock))&&(o 00038560: 3d 79 69 65 6c 64 20 6f 6c 28 65 2c 74 29 29 2c =yield ol(e,t)), 00038570: 6f 2e 67 65 74 4c 6f 67 73 28 6e 29 7d 7d 72 65 o.getLogs(n)}}re 00038580: 74 75 72 6e 20 4b 73 2e 74 68 72 6f 77 45 72 72 turn Ks.throwErr 00038590: 6f 72 28 22 75 6e 6b 6e 6f 77 6e 20 6d 65 74 68 or("unknown meth 000385a0: 6f 64 20 65 72 72 6f 72 22 2c 79 2e 65 72 72 6f od error",y.erro 000385b0: 72 73 2e 55 4e 4b 4e 4f 57 4e 5f 45 52 52 4f 52 rs.UNKNOWN_ERROR 000385c0: 2c 7b 6d 65 74 68 6f 64 3a 6e 2c 70 61 72 61 6d ,{method:n,param 000385d0: 73 3a 72 7d 29 7d 29 29 7d 63 6c 61 73 73 20 61 s:r})}))}class a 000385e0: 6c 20 65 78 74 65 6e 64 73 20 72 73 7b 63 6f 6e l extends rs{con 000385f0: 73 74 72 75 63 74 6f 72 28 65 2c 74 29 7b 30 3d structor(e,t){0= 00038600: 3d 3d 65 2e 6c 65 6e 67 74 68 26 26 4b 73 2e 74 ==e.length&&Ks.t 00038610: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00038620: 72 28 22 6d 69 73 73 69 6e 67 20 70 72 6f 76 69 r("missing provi 00038630: 64 65 72 73 22 2c 22 70 72 6f 76 69 64 65 72 73 ders","providers 00038640: 22 2c 65 29 3b 63 6f 6e 73 74 20 6e 3d 65 2e 6d ",e);const n=e.m 00038650: 61 70 28 28 28 65 2c 74 29 3d 3e 7b 69 66 28 61 ap(((e,t)=>{if(a 00038660: 6e 2e 69 73 50 72 6f 76 69 64 65 72 28 65 29 29 n.isProvider(e)) 00038670: 7b 63 6f 6e 73 74 20 74 3d 52 61 28 65 29 3f 32 {const t=Ra(e)?2 00038680: 65 33 3a 37 35 30 2c 6e 3d 31 3b 72 65 74 75 72 e3:750,n=1;retur 00038690: 6e 20 4f 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 n Object.freeze( 000386a0: 7b 70 72 6f 76 69 64 65 72 3a 65 2c 77 65 69 67 {provider:e,weig 000386b0: 68 74 3a 31 2c 73 74 61 6c 6c 54 69 6d 65 6f 75 ht:1,stallTimeou 000386c0: 74 3a 74 2c 70 72 69 6f 72 69 74 79 3a 6e 7d 29 t:t,priority:n}) 000386d0: 7d 63 6f 6e 73 74 20 6e 3d 69 65 28 65 29 3b 6e }const n=ie(e);n 000386e0: 75 6c 6c 3d 3d 6e 2e 70 72 69 6f 72 69 74 79 26 ull==n.priority& 000386f0: 26 28 6e 2e 70 72 69 6f 72 69 74 79 3d 31 29 2c &(n.priority=1), 00038700: 6e 75 6c 6c 3d 3d 6e 2e 73 74 61 6c 6c 54 69 6d null==n.stallTim 00038710: 65 6f 75 74 26 26 28 6e 2e 73 74 61 6c 6c 54 69 eout&&(n.stallTi 00038720: 6d 65 6f 75 74 3d 52 61 28 65 29 3f 32 65 33 3a meout=Ra(e)?2e3: 00038730: 37 35 30 29 2c 6e 75 6c 6c 3d 3d 6e 2e 77 65 69 750),null==n.wei 00038740: 67 68 74 26 26 28 6e 2e 77 65 69 67 68 74 3d 31 ght&&(n.weight=1 00038750: 29 3b 63 6f 6e 73 74 20 72 3d 6e 2e 77 65 69 67 );const r=n.weig 00038760: 68 74 3b 72 65 74 75 72 6e 28 72 25 31 7c 7c 72 ht;return(r%1||r 00038770: 3e 35 31 32 7c 7c 72 3c 31 29 26 26 4b 73 2e 74 >512||r<1)&&Ks.t 00038780: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00038790: 72 28 22 69 6e 76 61 6c 69 64 20 77 65 69 67 68 r("invalid weigh 000387a0: 74 3b 20 6d 75 73 74 20 62 65 20 69 6e 74 65 67 t; must be integ 000387b0: 65 72 20 69 6e 20 5b 31 2c 20 35 31 32 5d 22 2c er in [1, 512]", 000387c0: 60 70 72 6f 76 69 64 65 72 73 5b 24 7b 74 7d 5d `providers[${t}] 000387d0: 2e 77 65 69 67 68 74 60 2c 72 29 2c 4f 62 6a 65 .weight`,r),Obje 000387e0: 63 74 2e 66 72 65 65 7a 65 28 6e 29 7d 29 29 2c ct.freeze(n)})), 000387f0: 72 3d 6e 2e 72 65 64 75 63 65 28 28 28 65 2c 74 r=n.reduce(((e,t 00038800: 29 3d 3e 65 2b 74 2e 77 65 69 67 68 74 29 2c 30 )=>e+t.weight),0 00038810: 29 3b 6e 75 6c 6c 3d 3d 74 3f 74 3d 72 2f 32 3a );null==t?t=r/2: 00038820: 74 3e 72 26 26 4b 73 2e 74 68 72 6f 77 41 72 67 t>r&&Ks.throwArg 00038830: 75 6d 65 6e 74 45 72 72 6f 72 28 22 71 75 6f 72 umentError("quor 00038840: 75 6d 20 77 69 6c 6c 20 61 6c 77 61 79 73 20 66 um will always f 00038850: 61 69 6c 3b 20 6c 61 72 67 65 72 20 74 68 61 6e ail; larger than 00038860: 20 74 6f 74 61 6c 20 77 65 69 67 68 74 22 2c 22 total weight"," 00038870: 71 75 6f 72 75 6d 22 2c 74 29 3b 6c 65 74 20 6f quorum",t);let o 00038880: 3d 58 73 28 6e 2e 6d 61 70 28 28 65 3d 3e 65 2e =Xs(n.map((e=>e. 00038890: 70 72 6f 76 69 64 65 72 2e 6e 65 74 77 6f 72 6b provider.network 000388a0: 29 29 29 3b 6e 75 6c 6c 3d 3d 6f 26 26 28 6f 3d )));null==o&&(o= 000388b0: 6e 65 77 20 50 72 6f 6d 69 73 65 28 28 28 65 2c new Promise(((e, 000388c0: 74 29 3d 3e 7b 73 65 74 54 69 6d 65 6f 75 74 28 t)=>{setTimeout( 000388d0: 28 28 29 3d 3e 7b 74 68 69 73 2e 64 65 74 65 63 (()=>{this.detec 000388e0: 74 4e 65 74 77 6f 72 6b 28 29 2e 74 68 65 6e 28 tNetwork().then( 000388f0: 65 2c 74 29 7d 29 2c 30 29 7d 29 29 29 2c 73 75 e,t)}),0)}))),su 00038900: 70 65 72 28 6f 29 2c 74 65 28 74 68 69 73 2c 22 per(o),te(this," 00038910: 70 72 6f 76 69 64 65 72 43 6f 6e 66 69 67 73 22 providerConfigs" 00038920: 2c 4f 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 6e ,Object.freeze(n 00038930: 29 29 2c 74 65 28 74 68 69 73 2c 22 71 75 6f 72 )),te(this,"quor 00038940: 75 6d 22 2c 74 29 2c 74 68 69 73 2e 5f 68 69 67 um",t),this._hig 00038950: 68 65 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d hestBlockNumber= 00038960: 2d 31 7d 64 65 74 65 63 74 4e 65 74 77 6f 72 6b -1}detectNetwork 00038970: 28 29 7b 72 65 74 75 72 6e 20 57 73 28 74 68 69 (){return Ws(thi 00038980: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 00038990: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 74 (function*(){ret 000389a0: 75 72 6e 20 58 73 28 79 69 65 6c 64 20 50 72 6f urn Xs(yield Pro 000389b0: 6d 69 73 65 2e 61 6c 6c 28 74 68 69 73 2e 70 72 mise.all(this.pr 000389c0: 6f 76 69 64 65 72 43 6f 6e 66 69 67 73 2e 6d 61 oviderConfigs.ma 000389d0: 70 28 28 65 3d 3e 65 2e 70 72 6f 76 69 64 65 72 p((e=>e.provider 000389e0: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 29 29 29 .getNetwork()))) 000389f0: 29 7d 29 29 7d 70 65 72 66 6f 72 6d 28 65 2c 74 )}))}perform(e,t 00038a00: 29 7b 72 65 74 75 72 6e 20 57 73 28 74 68 69 73 ){return Ws(this 00038a10: 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 ,void 0,void 0,( 00038a20: 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 69 66 28 22 function*(){if(" 00038a30: 73 65 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 22 sendTransaction" 00038a40: 3d 3d 3d 65 29 7b 63 6f 6e 73 74 20 65 3d 79 69 ===e){const e=yi 00038a50: 65 6c 64 20 50 72 6f 6d 69 73 65 2e 61 6c 6c 28 eld Promise.all( 00038a60: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 43 6f 6e this.providerCon 00038a70: 66 69 67 73 2e 6d 61 70 28 28 65 3d 3e 65 2e 70 figs.map((e=>e.p 00038a80: 72 6f 76 69 64 65 72 2e 73 65 6e 64 54 72 61 6e rovider.sendTran 00038a90: 73 61 63 74 69 6f 6e 28 74 2e 73 69 67 6e 65 64 saction(t.signed 00038aa0: 54 72 61 6e 73 61 63 74 69 6f 6e 29 2e 74 68 65 Transaction).the 00038ab0: 6e 28 28 65 3d 3e 65 2e 68 61 73 68 29 2c 28 65 n((e=>e.hash),(e 00038ac0: 3d 3e 65 29 29 29 29 29 3b 66 6f 72 28 6c 65 74 =>e)))));for(let 00038ad0: 20 74 3d 30 3b 74 3c 65 2e 6c 65 6e 67 74 68 3b t=0;t<e.length; 00038ae0: 74 2b 2b 29 7b 63 6f 6e 73 74 20 6e 3d 65 5b 74 t++){const n=e[t 00038af0: 5d 3b 69 66 28 22 73 74 72 69 6e 67 22 3d 3d 74 ];if("string"==t 00038b00: 79 70 65 6f 66 20 6e 29 72 65 74 75 72 6e 20 6e ypeof n)return n 00038b10: 7d 74 68 72 6f 77 20 65 5b 30 5d 7d 2d 31 3d 3d }throw e[0]}-1== 00038b20: 3d 74 68 69 73 2e 5f 68 69 67 68 65 73 74 42 6c =this._highestBl 00038b30: 6f 63 6b 4e 75 6d 62 65 72 26 26 22 67 65 74 42 ockNumber&&"getB 00038b40: 6c 6f 63 6b 4e 75 6d 62 65 72 22 21 3d 3d 65 26 lockNumber"!==e& 00038b50: 26 28 79 69 65 6c 64 20 74 68 69 73 2e 67 65 74 &(yield this.get 00038b60: 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 29 29 3b 63 BlockNumber());c 00038b70: 6f 6e 73 74 20 6e 3d 72 6c 28 74 68 69 73 2c 65 onst n=rl(this,e 00038b80: 2c 74 29 2c 72 3d 71 73 28 74 68 69 73 2e 70 72 ,t),r=qs(this.pr 00038b90: 6f 76 69 64 65 72 43 6f 6e 66 69 67 73 2e 6d 61 oviderConfigs.ma 00038ba0: 70 28 69 65 29 29 3b 72 2e 73 6f 72 74 28 28 28 p(ie));r.sort((( 00038bb0: 65 2c 74 29 3d 3e 65 2e 70 72 69 6f 72 69 74 79 e,t)=>e.priority 00038bc0: 2d 74 2e 70 72 69 6f 72 69 74 79 29 29 3b 63 6f -t.priority));co 00038bd0: 6e 73 74 20 6f 3d 74 68 69 73 2e 5f 68 69 67 68 nst o=this._high 00038be0: 65 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 3b 6c estBlockNumber;l 00038bf0: 65 74 20 69 3d 30 2c 61 3d 21 30 3b 66 6f 72 28 et i=0,a=!0;for( 00038c00: 3b 3b 29 7b 63 6f 6e 73 74 20 73 3d 59 73 28 29 ;;){const s=Ys() 00038c10: 3b 6c 65 74 20 6c 3d 72 2e 66 69 6c 74 65 72 28 ;let l=r.filter( 00038c20: 28 65 3d 3e 65 2e 72 75 6e 6e 65 72 26 26 73 2d (e=>e.runner&&s- 00038c30: 65 2e 73 74 61 72 74 3c 65 2e 73 74 61 6c 6c 54 e.start<e.stallT 00038c40: 69 6d 65 6f 75 74 29 29 2e 72 65 64 75 63 65 28 imeout)).reduce( 00038c50: 28 28 65 2c 74 29 3d 3e 65 2b 74 2e 77 65 69 67 ((e,t)=>e+t.weig 00038c60: 68 74 29 2c 30 29 3b 66 6f 72 28 3b 6c 3c 74 68 ht),0);for(;l<th 00038c70: 69 73 2e 71 75 6f 72 75 6d 26 26 69 3c 72 2e 6c is.quorum&&i<r.l 00038c80: 65 6e 67 74 68 3b 29 7b 63 6f 6e 73 74 20 6e 3d ength;){const n= 00038c90: 72 5b 69 2b 2b 5d 2c 61 3d 4a 73 2b 2b 3b 6e 2e r[i++],a=Js++;n. 00038ca0: 73 74 61 72 74 3d 59 73 28 29 2c 6e 2e 73 74 61 start=Ys(),n.sta 00038cb0: 6c 6c 65 72 3d 24 73 28 6e 2e 73 74 61 6c 6c 54 ller=$s(n.stallT 00038cc0: 69 6d 65 6f 75 74 29 2c 6e 2e 73 74 61 6c 6c 65 imeout),n.stalle 00038cd0: 72 2e 77 61 69 74 28 28 28 29 3d 3e 7b 6e 2e 73 r.wait((()=>{n.s 00038ce0: 74 61 6c 6c 65 72 3d 6e 75 6c 6c 7d 29 29 2c 6e taller=null})),n 00038cf0: 2e 72 75 6e 6e 65 72 3d 69 6c 28 6e 2c 6f 2c 65 .runner=il(n,o,e 00038d00: 2c 74 29 2e 74 68 65 6e 28 28 72 3d 3e 7b 6e 2e ,t).then((r=>{n. 00038d10: 64 6f 6e 65 3d 21 30 2c 6e 2e 72 65 73 75 6c 74 done=!0,n.result 00038d20: 3d 72 2c 74 68 69 73 2e 6c 69 73 74 65 6e 65 72 =r,this.listener 00038d30: 43 6f 75 6e 74 28 22 64 65 62 75 67 22 29 26 26 Count("debug")&& 00038d40: 74 68 69 73 2e 65 6d 69 74 28 22 64 65 62 75 67 this.emit("debug 00038d50: 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 71 75 65 ",{action:"reque 00038d60: 73 74 22 2c 72 69 64 3a 61 2c 62 61 63 6b 65 6e st",rid:a,backen 00038d70: 64 3a 6e 6c 28 6e 2c 59 73 28 29 29 2c 72 65 71 d:nl(n,Ys()),req 00038d80: 75 65 73 74 3a 7b 6d 65 74 68 6f 64 3a 65 2c 70 uest:{method:e,p 00038d90: 61 72 61 6d 73 3a 63 65 28 74 29 7d 2c 70 72 6f arams:ce(t)},pro 00038da0: 76 69 64 65 72 3a 74 68 69 73 7d 29 7d 29 2c 28 vider:this})}),( 00038db0: 72 3d 3e 7b 6e 2e 64 6f 6e 65 3d 21 30 2c 6e 2e r=>{n.done=!0,n. 00038dc0: 65 72 72 6f 72 3d 72 2c 74 68 69 73 2e 6c 69 73 error=r,this.lis 00038dd0: 74 65 6e 65 72 43 6f 75 6e 74 28 22 64 65 62 75 tenerCount("debu 00038de0: 67 22 29 26 26 74 68 69 73 2e 65 6d 69 74 28 22 g")&&this.emit(" 00038df0: 64 65 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 debug",{action:" 00038e00: 72 65 71 75 65 73 74 22 2c 72 69 64 3a 61 2c 62 request",rid:a,b 00038e10: 61 63 6b 65 6e 64 3a 6e 6c 28 6e 2c 59 73 28 29 ackend:nl(n,Ys() 00038e20: 29 2c 72 65 71 75 65 73 74 3a 7b 6d 65 74 68 6f ),request:{metho 00038e30: 64 3a 65 2c 70 61 72 61 6d 73 3a 63 65 28 74 29 d:e,params:ce(t) 00038e40: 7d 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 7d },provider:this} 00038e50: 29 7d 29 29 2c 74 68 69 73 2e 6c 69 73 74 65 6e )})),this.listen 00038e60: 65 72 43 6f 75 6e 74 28 22 64 65 62 75 67 22 29 erCount("debug") 00038e70: 26 26 74 68 69 73 2e 65 6d 69 74 28 22 64 65 62 &&this.emit("deb 00038e80: 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 71 ug",{action:"req 00038e90: 75 65 73 74 22 2c 72 69 64 3a 61 2c 62 61 63 6b uest",rid:a,back 00038ea0: 65 6e 64 3a 6e 6c 28 6e 2c 6e 75 6c 6c 29 2c 72 end:nl(n,null),r 00038eb0: 65 71 75 65 73 74 3a 7b 6d 65 74 68 6f 64 3a 65 equest:{method:e 00038ec0: 2c 70 61 72 61 6d 73 3a 63 65 28 74 29 7d 2c 70 ,params:ce(t)},p 00038ed0: 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 2c 6c rovider:this}),l 00038ee0: 2b 3d 6e 2e 77 65 69 67 68 74 7d 63 6f 6e 73 74 +=n.weight}const 00038ef0: 20 63 3d 5b 5d 3b 72 2e 66 6f 72 45 61 63 68 28 c=[];r.forEach( 00038f00: 28 65 3d 3e 7b 21 65 2e 64 6f 6e 65 26 26 65 2e (e=>{!e.done&&e. 00038f10: 72 75 6e 6e 65 72 26 26 28 63 2e 70 75 73 68 28 runner&&(c.push( 00038f20: 65 2e 72 75 6e 6e 65 72 29 2c 65 2e 73 74 61 6c e.runner),e.stal 00038f30: 6c 65 72 26 26 63 2e 70 75 73 68 28 65 2e 73 74 ler&&c.push(e.st 00038f40: 61 6c 6c 65 72 2e 67 65 74 50 72 6f 6d 69 73 65 aller.getPromise 00038f50: 28 29 29 29 7d 29 29 2c 63 2e 6c 65 6e 67 74 68 ()))})),c.length 00038f60: 26 26 28 79 69 65 6c 64 20 50 72 6f 6d 69 73 65 &&(yield Promise 00038f70: 2e 72 61 63 65 28 63 29 29 3b 63 6f 6e 73 74 20 .race(c));const 00038f80: 75 3d 72 2e 66 69 6c 74 65 72 28 28 65 3d 3e 65 u=r.filter((e=>e 00038f90: 2e 64 6f 6e 65 26 26 6e 75 6c 6c 3d 3d 65 2e 65 .done&&null==e.e 00038fa0: 72 72 6f 72 29 29 3b 69 66 28 75 2e 6c 65 6e 67 rror));if(u.leng 00038fb0: 74 68 3e 3d 74 68 69 73 2e 71 75 6f 72 75 6d 29 th>=this.quorum) 00038fc0: 7b 63 6f 6e 73 74 20 65 3d 6e 28 75 29 3b 69 66 {const e=n(u);if 00038fd0: 28 76 6f 69 64 20 30 21 3d 3d 65 29 72 65 74 75 (void 0!==e)retu 00038fe0: 72 6e 20 72 2e 66 6f 72 45 61 63 68 28 28 65 3d rn r.forEach((e= 00038ff0: 3e 7b 65 2e 73 74 61 6c 6c 65 72 26 26 65 2e 73 >{e.staller&&e.s 00039000: 74 61 6c 6c 65 72 2e 63 61 6e 63 65 6c 28 29 2c taller.cancel(), 00039010: 65 2e 63 61 6e 63 65 6c 6c 65 64 3d 21 30 7d 29 e.cancelled=!0}) 00039020: 29 2c 65 3b 61 7c 7c 28 79 69 65 6c 64 20 24 73 ),e;a||(yield $s 00039030: 28 31 30 30 29 2e 67 65 74 50 72 6f 6d 69 73 65 (100).getPromise 00039040: 28 29 29 2c 61 3d 21 31 7d 63 6f 6e 73 74 20 64 ()),a=!1}const d 00039050: 3d 72 2e 72 65 64 75 63 65 28 28 28 65 2c 74 29 =r.reduce(((e,t) 00039060: 3d 3e 7b 69 66 28 21 74 2e 64 6f 6e 65 7c 7c 6e =>{if(!t.done||n 00039070: 75 6c 6c 3d 3d 74 2e 65 72 72 6f 72 29 72 65 74 ull==t.error)ret 00039080: 75 72 6e 20 65 3b 63 6f 6e 73 74 20 6e 3d 74 2e urn e;const n=t. 00039090: 65 72 72 6f 72 2e 63 6f 64 65 3b 72 65 74 75 72 error.code;retur 000390a0: 6e 20 65 6c 2e 69 6e 64 65 78 4f 66 28 6e 29 3e n el.indexOf(n)> 000390b0: 3d 30 26 26 28 65 5b 6e 5d 7c 7c 28 65 5b 6e 5d =0&&(e[n]||(e[n] 000390c0: 3d 7b 65 72 72 6f 72 3a 74 2e 65 72 72 6f 72 2c ={error:t.error, 000390d0: 77 65 69 67 68 74 3a 30 7d 29 2c 65 5b 6e 5d 2e weight:0}),e[n]. 000390e0: 77 65 69 67 68 74 2b 3d 74 2e 77 65 69 67 68 74 weight+=t.weight 000390f0: 29 2c 65 7d 29 2c 7b 7d 29 3b 69 66 28 4f 62 6a ),e}),{});if(Obj 00039100: 65 63 74 2e 6b 65 79 73 28 64 29 2e 66 6f 72 45 ect.keys(d).forE 00039110: 61 63 68 28 28 65 3d 3e 7b 63 6f 6e 73 74 20 74 ach((e=>{const t 00039120: 3d 64 5b 65 5d 3b 69 66 28 74 2e 77 65 69 67 68 =d[e];if(t.weigh 00039130: 74 3c 74 68 69 73 2e 71 75 6f 72 75 6d 29 72 65 t<this.quorum)re 00039140: 74 75 72 6e 3b 72 2e 66 6f 72 45 61 63 68 28 28 turn;r.forEach(( 00039150: 65 3d 3e 7b 65 2e 73 74 61 6c 6c 65 72 26 26 65 e=>{e.staller&&e 00039160: 2e 73 74 61 6c 6c 65 72 2e 63 61 6e 63 65 6c 28 .staller.cancel( 00039170: 29 2c 65 2e 63 61 6e 63 65 6c 6c 65 64 3d 21 30 ),e.cancelled=!0 00039180: 7d 29 29 3b 63 6f 6e 73 74 20 6e 3d 74 2e 65 72 }));const n=t.er 00039190: 72 6f 72 2c 6f 3d 7b 7d 3b 74 6c 2e 66 6f 72 45 ror,o={};tl.forE 000391a0: 61 63 68 28 28 65 3d 3e 7b 6e 75 6c 6c 21 3d 6e ach((e=>{null!=n 000391b0: 5b 65 5d 26 26 28 6f 5b 65 5d 3d 6e 5b 65 5d 29 [e]&&(o[e]=n[e]) 000391c0: 7d 29 29 2c 4b 73 2e 74 68 72 6f 77 45 72 72 6f })),Ks.throwErro 000391d0: 72 28 6e 2e 72 65 61 73 6f 6e 7c 7c 6e 2e 6d 65 r(n.reason||n.me 000391e0: 73 73 61 67 65 2c 65 2c 6f 29 7d 29 29 2c 30 3d ssage,e,o)})),0= 000391f0: 3d 3d 72 2e 66 69 6c 74 65 72 28 28 65 3d 3e 21 ==r.filter((e=>! 00039200: 65 2e 64 6f 6e 65 29 29 2e 6c 65 6e 67 74 68 29 e.done)).length) 00039210: 62 72 65 61 6b 7d 72 65 74 75 72 6e 20 72 2e 66 break}return r.f 00039220: 6f 72 45 61 63 68 28 28 65 3d 3e 7b 65 2e 73 74 orEach((e=>{e.st 00039230: 61 6c 6c 65 72 26 26 65 2e 73 74 61 6c 6c 65 72 aller&&e.staller 00039240: 2e 63 61 6e 63 65 6c 28 29 2c 65 2e 63 61 6e 63 .cancel(),e.canc 00039250: 65 6c 6c 65 64 3d 21 30 7d 29 29 2c 4b 73 2e 74 elled=!0})),Ks.t 00039260: 68 72 6f 77 45 72 72 6f 72 28 22 66 61 69 6c 65 hrowError("faile 00039270: 64 20 74 6f 20 6d 65 65 74 20 71 75 6f 72 75 6d d to meet quorum 00039280: 22 2c 79 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 ",y.errors.SERVE 00039290: 52 5f 45 52 52 4f 52 2c 7b 6d 65 74 68 6f 64 3a R_ERROR,{method: 000392a0: 65 2c 70 61 72 61 6d 73 3a 74 2c 72 65 73 75 6c e,params:t,resul 000392b0: 74 73 3a 72 2e 6d 61 70 28 28 65 3d 3e 6e 6c 28 ts:r.map((e=>nl( 000392c0: 65 29 29 29 2c 70 72 6f 76 69 64 65 72 3a 74 68 e))),provider:th 000392d0: 69 73 7d 29 7d 29 29 7d 7d 63 6f 6e 73 74 20 73 is})}))}}const s 000392e0: 6c 3d 6e 75 6c 6c 2c 6c 6c 3d 6e 65 77 20 79 28 l=null,ll=new y( 000392f0: 41 61 29 2c 63 6c 3d 22 38 34 38 34 32 30 37 38 Aa),cl="84842078 00039300: 62 30 39 39 34 36 36 33 38 63 30 33 31 35 37 66 b09946638c03157f 00039310: 38 33 34 30 35 32 31 33 22 3b 63 6c 61 73 73 20 83405213";class 00039320: 75 6c 20 65 78 74 65 6e 64 73 20 45 73 7b 63 6f ul extends Es{co 00039330: 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 29 7b 63 nstructor(e,t){c 00039340: 6f 6e 73 74 20 6e 3d 6e 65 77 20 64 6c 28 65 2c onst n=new dl(e, 00039350: 74 29 2c 72 3d 6e 2e 63 6f 6e 6e 65 63 74 69 6f t),r=n.connectio 00039360: 6e 3b 72 2e 70 61 73 73 77 6f 72 64 26 26 6c 6c n;r.password&&ll 00039370: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 49 4e 46 .throwError("INF 00039380: 55 52 41 20 57 65 62 53 6f 63 6b 65 74 20 70 72 URA WebSocket pr 00039390: 6f 6a 65 63 74 20 73 65 63 72 65 74 73 20 75 6e oject secrets un 000393a0: 73 75 70 70 6f 72 74 65 64 22 2c 79 2e 65 72 72 supported",y.err 000393b0: 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f ors.UNSUPPORTED_ 000393c0: 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 OPERATION,{opera 000393d0: 74 69 6f 6e 3a 22 49 6e 66 75 72 61 50 72 6f 76 tion:"InfuraProv 000393e0: 69 64 65 72 2e 67 65 74 57 65 62 53 6f 63 6b 65 ider.getWebSocke 000393f0: 74 50 72 6f 76 69 64 65 72 28 29 22 7d 29 3b 73 tProvider()"});s 00039400: 75 70 65 72 28 72 2e 75 72 6c 2e 72 65 70 6c 61 uper(r.url.repla 00039410: 63 65 28 2f 5e 68 74 74 70 2f 69 2c 22 77 73 22 ce(/^http/i,"ws" 00039420: 29 2e 72 65 70 6c 61 63 65 28 22 2f 76 33 2f 22 ).replace("/v3/" 00039430: 2c 22 2f 77 73 2f 76 33 2f 22 29 2c 65 29 2c 74 ,"/ws/v3/"),e),t 00039440: 65 28 74 68 69 73 2c 22 61 70 69 4b 65 79 22 2c e(this,"apiKey", 00039450: 6e 2e 70 72 6f 6a 65 63 74 49 64 29 2c 74 65 28 n.projectId),te( 00039460: 74 68 69 73 2c 22 70 72 6f 6a 65 63 74 49 64 22 this,"projectId" 00039470: 2c 6e 2e 70 72 6f 6a 65 63 74 49 64 29 2c 74 65 ,n.projectId),te 00039480: 28 74 68 69 73 2c 22 70 72 6f 6a 65 63 74 53 65 (this,"projectSe 00039490: 63 72 65 74 22 2c 6e 2e 70 72 6f 6a 65 63 74 53 cret",n.projectS 000394a0: 65 63 72 65 74 29 7d 69 73 43 6f 6d 6d 75 6e 69 ecret)}isCommuni 000394b0: 74 79 52 65 73 6f 75 72 63 65 28 29 7b 72 65 74 tyResource(){ret 000394c0: 75 72 6e 20 74 68 69 73 2e 70 72 6f 6a 65 63 74 urn this.project 000394d0: 49 64 3d 3d 3d 63 6c 7d 7d 63 6c 61 73 73 20 64 Id===cl}}class d 000394e0: 6c 20 65 78 74 65 6e 64 73 20 54 73 7b 73 74 61 l extends Ts{sta 000394f0: 74 69 63 20 67 65 74 57 65 62 53 6f 63 6b 65 74 tic getWebSocket 00039500: 50 72 6f 76 69 64 65 72 28 65 2c 74 29 7b 72 65 Provider(e,t){re 00039510: 74 75 72 6e 20 6e 65 77 20 75 6c 28 65 2c 74 29 turn new ul(e,t) 00039520: 7d 73 74 61 74 69 63 20 67 65 74 41 70 69 4b 65 }static getApiKe 00039530: 79 28 65 29 7b 63 6f 6e 73 74 20 74 3d 7b 61 70 y(e){const t={ap 00039540: 69 4b 65 79 3a 63 6c 2c 70 72 6f 6a 65 63 74 49 iKey:cl,projectI 00039550: 64 3a 63 6c 2c 70 72 6f 6a 65 63 74 53 65 63 72 d:cl,projectSecr 00039560: 65 74 3a 6e 75 6c 6c 7d 3b 72 65 74 75 72 6e 20 et:null};return 00039570: 6e 75 6c 6c 3d 3d 65 7c 7c 28 22 73 74 72 69 6e null==e||("strin 00039580: 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 74 2e 70 g"==typeof e?t.p 00039590: 72 6f 6a 65 63 74 49 64 3d 65 3a 6e 75 6c 6c 21 rojectId=e:null! 000395a0: 3d 65 2e 70 72 6f 6a 65 63 74 53 65 63 72 65 74 =e.projectSecret 000395b0: 3f 28 6c 6c 2e 61 73 73 65 72 74 41 72 67 75 6d ?(ll.assertArgum 000395c0: 65 6e 74 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 ent("string"==ty 000395d0: 70 65 6f 66 20 65 2e 70 72 6f 6a 65 63 74 49 64 peof e.projectId 000395e0: 2c 22 70 72 6f 6a 65 63 74 53 65 63 72 65 74 20 ,"projectSecret 000395f0: 72 65 71 75 69 72 65 73 20 61 20 70 72 6f 6a 65 requires a proje 00039600: 63 74 49 64 22 2c 22 70 72 6f 6a 65 63 74 49 64 ctId","projectId 00039610: 22 2c 65 2e 70 72 6f 6a 65 63 74 49 64 29 2c 6c ",e.projectId),l 00039620: 6c 2e 61 73 73 65 72 74 41 72 67 75 6d 65 6e 74 l.assertArgument 00039630: 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f ("string"==typeo 00039640: 66 20 65 2e 70 72 6f 6a 65 63 74 53 65 63 72 65 f e.projectSecre 00039650: 74 2c 22 69 6e 76 61 6c 69 64 20 70 72 6f 6a 65 t,"invalid proje 00039660: 63 74 53 65 63 72 65 74 22 2c 22 70 72 6f 6a 65 ctSecret","proje 00039670: 63 74 53 65 63 72 65 74 22 2c 22 5b 52 45 44 41 ctSecret","[REDA 00039680: 43 54 45 44 5d 22 29 2c 74 2e 70 72 6f 6a 65 63 CTED]"),t.projec 00039690: 74 49 64 3d 65 2e 70 72 6f 6a 65 63 74 49 64 2c tId=e.projectId, 000396a0: 74 2e 70 72 6f 6a 65 63 74 53 65 63 72 65 74 3d t.projectSecret= 000396b0: 65 2e 70 72 6f 6a 65 63 74 53 65 63 72 65 74 29 e.projectSecret) 000396c0: 3a 65 2e 70 72 6f 6a 65 63 74 49 64 26 26 28 74 :e.projectId&&(t 000396d0: 2e 70 72 6f 6a 65 63 74 49 64 3d 65 2e 70 72 6f .projectId=e.pro 000396e0: 6a 65 63 74 49 64 29 2c 74 2e 61 70 69 4b 65 79 jectId),t.apiKey 000396f0: 3d 74 2e 70 72 6f 6a 65 63 74 49 64 29 2c 74 7d =t.projectId),t} 00039700: 73 74 61 74 69 63 20 67 65 74 55 72 6c 28 65 2c static getUrl(e, 00039710: 74 29 7b 6c 65 74 20 6e 3d 6e 75 6c 6c 3b 73 77 t){let n=null;sw 00039720: 69 74 63 68 28 65 3f 65 2e 6e 61 6d 65 3a 22 75 itch(e?e.name:"u 00039730: 6e 6b 6e 6f 77 6e 22 29 7b 63 61 73 65 22 68 6f nknown"){case"ho 00039740: 6d 65 73 74 65 61 64 22 3a 6e 3d 22 6d 61 69 6e mestead":n="main 00039750: 6e 65 74 2e 69 6e 66 75 72 61 2e 69 6f 22 3b 62 net.infura.io";b 00039760: 72 65 61 6b 3b 63 61 73 65 22 67 6f 65 72 6c 69 reak;case"goerli 00039770: 22 3a 6e 3d 22 67 6f 65 72 6c 69 2e 69 6e 66 75 ":n="goerli.infu 00039780: 72 61 2e 69 6f 22 3b 62 72 65 61 6b 3b 63 61 73 ra.io";break;cas 00039790: 65 22 73 65 70 6f 6c 69 61 22 3a 6e 3d 22 73 65 e"sepolia":n="se 000397a0: 70 6f 6c 69 61 2e 69 6e 66 75 72 61 2e 69 6f 22 polia.infura.io" 000397b0: 3b 62 72 65 61 6b 3b 63 61 73 65 22 6d 61 74 69 ;break;case"mati 000397c0: 63 22 3a 6e 3d 22 70 6f 6c 79 67 6f 6e 2d 6d 61 c":n="polygon-ma 000397d0: 69 6e 6e 65 74 2e 69 6e 66 75 72 61 2e 69 6f 22 innet.infura.io" 000397e0: 3b 62 72 65 61 6b 3b 63 61 73 65 22 6d 61 74 69 ;break;case"mati 000397f0: 63 6d 75 6d 22 3a 6e 3d 22 70 6f 6c 79 67 6f 6e cmum":n="polygon 00039800: 2d 6d 75 6d 62 61 69 2e 69 6e 66 75 72 61 2e 69 -mumbai.infura.i 00039810: 6f 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 6f 70 o";break;case"op 00039820: 74 69 6d 69 73 6d 22 3a 6e 3d 22 6f 70 74 69 6d timism":n="optim 00039830: 69 73 6d 2d 6d 61 69 6e 6e 65 74 2e 69 6e 66 75 ism-mainnet.infu 00039840: 72 61 2e 69 6f 22 3b 62 72 65 61 6b 3b 63 61 73 ra.io";break;cas 00039850: 65 22 6f 70 74 69 6d 69 73 6d 2d 67 6f 65 72 6c e"optimism-goerl 00039860: 69 22 3a 6e 3d 22 6f 70 74 69 6d 69 73 6d 2d 67 i":n="optimism-g 00039870: 6f 65 72 6c 69 2e 69 6e 66 75 72 61 2e 69 6f 22 oerli.infura.io" 00039880: 3b 62 72 65 61 6b 3b 63 61 73 65 22 61 72 62 69 ;break;case"arbi 00039890: 74 72 75 6d 22 3a 6e 3d 22 61 72 62 69 74 72 75 trum":n="arbitru 000398a0: 6d 2d 6d 61 69 6e 6e 65 74 2e 69 6e 66 75 72 61 m-mainnet.infura 000398b0: 2e 69 6f 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 .io";break;case" 000398c0: 61 72 62 69 74 72 75 6d 2d 67 6f 65 72 6c 69 22 arbitrum-goerli" 000398d0: 3a 6e 3d 22 61 72 62 69 74 72 75 6d 2d 67 6f 65 :n="arbitrum-goe 000398e0: 72 6c 69 2e 69 6e 66 75 72 61 2e 69 6f 22 3b 62 rli.infura.io";b 000398f0: 72 65 61 6b 3b 64 65 66 61 75 6c 74 3a 6c 6c 2e reak;default:ll. 00039900: 74 68 72 6f 77 45 72 72 6f 72 28 22 75 6e 73 75 throwError("unsu 00039910: 70 70 6f 72 74 65 64 20 6e 65 74 77 6f 72 6b 22 pported network" 00039920: 2c 79 2e 65 72 72 6f 72 73 2e 49 4e 56 41 4c 49 ,y.errors.INVALI 00039930: 44 5f 41 52 47 55 4d 45 4e 54 2c 7b 61 72 67 75 D_ARGUMENT,{argu 00039940: 6d 65 6e 74 3a 22 6e 65 74 77 6f 72 6b 22 2c 76 ment:"network",v 00039950: 61 6c 75 65 3a 65 7d 29 7d 63 6f 6e 73 74 20 72 alue:e})}const r 00039960: 3d 7b 61 6c 6c 6f 77 47 7a 69 70 3a 21 30 2c 75 ={allowGzip:!0,u 00039970: 72 6c 3a 22 68 74 74 70 73 3a 2f 2f 22 2b 6e 2b rl:"https://"+n+ 00039980: 22 2f 76 33 2f 22 2b 74 2e 70 72 6f 6a 65 63 74 "/v3/"+t.project 00039990: 49 64 2c 74 68 72 6f 74 74 6c 65 43 61 6c 6c 62 Id,throttleCallb 000399a0: 61 63 6b 3a 28 65 2c 6e 29 3d 3e 28 74 2e 70 72 ack:(e,n)=>(t.pr 000399b0: 6f 6a 65 63 74 49 64 3d 3d 3d 63 6c 26 26 50 61 ojectId===cl&&Pa 000399c0: 28 29 2c 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c (),Promise.resol 000399d0: 76 65 28 21 30 29 29 7d 3b 72 65 74 75 72 6e 20 ve(!0))};return 000399e0: 6e 75 6c 6c 21 3d 74 2e 70 72 6f 6a 65 63 74 53 null!=t.projectS 000399f0: 65 63 72 65 74 26 26 28 72 2e 75 73 65 72 3d 22 ecret&&(r.user=" 00039a00: 22 2c 72 2e 70 61 73 73 77 6f 72 64 3d 74 2e 70 ",r.password=t.p 00039a10: 72 6f 6a 65 63 74 53 65 63 72 65 74 29 2c 72 7d rojectSecret),r} 00039a20: 69 73 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f 75 isCommunityResou 00039a30: 72 63 65 28 29 7b 72 65 74 75 72 6e 20 74 68 69 rce(){return thi 00039a40: 73 2e 70 72 6f 6a 65 63 74 49 64 3d 3d 3d 63 6c s.projectId===cl 00039a50: 7d 7d 63 6c 61 73 73 20 70 6c 20 65 78 74 65 6e }}class pl exten 00039a60: 64 73 20 67 73 7b 73 65 6e 64 28 65 2c 74 29 7b ds gs{send(e,t){ 00039a70: 63 6f 6e 73 74 20 6e 3d 7b 6d 65 74 68 6f 64 3a const n={method: 00039a80: 65 2c 70 61 72 61 6d 73 3a 74 2c 69 64 3a 74 68 e,params:t,id:th 00039a90: 69 73 2e 5f 6e 65 78 74 49 64 2b 2b 2c 6a 73 6f is._nextId++,jso 00039aa0: 6e 72 70 63 3a 22 32 2e 30 22 7d 3b 6e 75 6c 6c nrpc:"2.0"};null 00039ab0: 3d 3d 74 68 69 73 2e 5f 70 65 6e 64 69 6e 67 42 ==this._pendingB 00039ac0: 61 74 63 68 26 26 28 74 68 69 73 2e 5f 70 65 6e atch&&(this._pen 00039ad0: 64 69 6e 67 42 61 74 63 68 3d 5b 5d 29 3b 63 6f dingBatch=[]);co 00039ae0: 6e 73 74 20 72 3d 7b 72 65 71 75 65 73 74 3a 6e nst r={request:n 00039af0: 2c 72 65 73 6f 6c 76 65 3a 6e 75 6c 6c 2c 72 65 ,resolve:null,re 00039b00: 6a 65 63 74 3a 6e 75 6c 6c 7d 2c 6f 3d 6e 65 77 ject:null},o=new 00039b10: 20 50 72 6f 6d 69 73 65 28 28 28 65 2c 74 29 3d Promise(((e,t)= 00039b20: 3e 7b 72 2e 72 65 73 6f 6c 76 65 3d 65 2c 72 2e >{r.resolve=e,r. 00039b30: 72 65 6a 65 63 74 3d 74 7d 29 29 3b 72 65 74 75 reject=t}));retu 00039b40: 72 6e 20 74 68 69 73 2e 5f 70 65 6e 64 69 6e 67 rn this._pending 00039b50: 42 61 74 63 68 2e 70 75 73 68 28 72 29 2c 74 68 Batch.push(r),th 00039b60: 69 73 2e 5f 70 65 6e 64 69 6e 67 42 61 74 63 68 is._pendingBatch 00039b70: 41 67 67 72 65 67 61 74 6f 72 7c 7c 28 74 68 69 Aggregator||(thi 00039b80: 73 2e 5f 70 65 6e 64 69 6e 67 42 61 74 63 68 41 s._pendingBatchA 00039b90: 67 67 72 65 67 61 74 6f 72 3d 73 65 74 54 69 6d ggregator=setTim 00039ba0: 65 6f 75 74 28 28 28 29 3d 3e 7b 63 6f 6e 73 74 eout((()=>{const 00039bb0: 20 65 3d 74 68 69 73 2e 5f 70 65 6e 64 69 6e 67 e=this._pending 00039bc0: 42 61 74 63 68 3b 74 68 69 73 2e 5f 70 65 6e 64 Batch;this._pend 00039bd0: 69 6e 67 42 61 74 63 68 3d 6e 75 6c 6c 2c 74 68 ingBatch=null,th 00039be0: 69 73 2e 5f 70 65 6e 64 69 6e 67 42 61 74 63 68 is._pendingBatch 00039bf0: 41 67 67 72 65 67 61 74 6f 72 3d 6e 75 6c 6c 3b Aggregator=null; 00039c00: 63 6f 6e 73 74 20 74 3d 65 2e 6d 61 70 28 28 65 const t=e.map((e 00039c10: 3d 3e 65 2e 72 65 71 75 65 73 74 29 29 3b 72 65 =>e.request));re 00039c20: 74 75 72 6e 20 74 68 69 73 2e 65 6d 69 74 28 22 turn this.emit(" 00039c30: 64 65 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 debug",{action:" 00039c40: 72 65 71 75 65 73 74 42 61 74 63 68 22 2c 72 65 requestBatch",re 00039c50: 71 75 65 73 74 3a 63 65 28 74 29 2c 70 72 6f 76 quest:ce(t),prov 00039c60: 69 64 65 72 3a 74 68 69 73 7d 29 2c 77 61 28 74 ider:this}),wa(t 00039c70: 68 69 73 2e 63 6f 6e 6e 65 63 74 69 6f 6e 2c 4a his.connection,J 00039c80: 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 74 29 SON.stringify(t) 00039c90: 29 2e 74 68 65 6e 28 28 6e 3d 3e 7b 74 68 69 73 ).then((n=>{this 00039ca0: 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b 61 .emit("debug",{a 00039cb0: 63 74 69 6f 6e 3a 22 72 65 73 70 6f 6e 73 65 22 ction:"response" 00039cc0: 2c 72 65 71 75 65 73 74 3a 74 2c 72 65 73 70 6f ,request:t,respo 00039cd0: 6e 73 65 3a 6e 2c 70 72 6f 76 69 64 65 72 3a 74 nse:n,provider:t 00039ce0: 68 69 73 7d 29 2c 65 2e 66 6f 72 45 61 63 68 28 his}),e.forEach( 00039cf0: 28 28 65 2c 74 29 3d 3e 7b 63 6f 6e 73 74 20 72 ((e,t)=>{const r 00039d00: 3d 6e 5b 74 5d 3b 69 66 28 72 2e 65 72 72 6f 72 =n[t];if(r.error 00039d10: 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 77 20 45 72 ){const t=new Er 00039d20: 72 6f 72 28 72 2e 65 72 72 6f 72 2e 6d 65 73 73 ror(r.error.mess 00039d30: 61 67 65 29 3b 74 2e 63 6f 64 65 3d 72 2e 65 72 age);t.code=r.er 00039d40: 72 6f 72 2e 63 6f 64 65 2c 74 2e 64 61 74 61 3d ror.code,t.data= 00039d50: 72 2e 65 72 72 6f 72 2e 64 61 74 61 2c 65 2e 72 r.error.data,e.r 00039d60: 65 6a 65 63 74 28 74 29 7d 65 6c 73 65 20 65 2e eject(t)}else e. 00039d70: 72 65 73 6f 6c 76 65 28 72 2e 72 65 73 75 6c 74 resolve(r.result 00039d80: 29 7d 29 29 7d 29 2c 28 6e 3d 3e 7b 74 68 69 73 )}))}),(n=>{this 00039d90: 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b 61 .emit("debug",{a 00039da0: 63 74 69 6f 6e 3a 22 72 65 73 70 6f 6e 73 65 22 ction:"response" 00039db0: 2c 65 72 72 6f 72 3a 6e 2c 72 65 71 75 65 73 74 ,error:n,request 00039dc0: 3a 74 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 :t,provider:this 00039dd0: 7d 29 2c 65 2e 66 6f 72 45 61 63 68 28 28 65 3d }),e.forEach((e= 00039de0: 3e 7b 65 2e 72 65 6a 65 63 74 28 6e 29 7d 29 29 >{e.reject(n)})) 00039df0: 7d 29 29 7d 29 2c 31 30 29 29 2c 6f 7d 7d 63 6f }))}),10)),o}}co 00039e00: 6e 73 74 20 66 6c 3d 6e 65 77 20 79 28 41 61 29 nst fl=new y(Aa) 00039e10: 3b 63 6c 61 73 73 20 68 6c 20 65 78 74 65 6e 64 ;class hl extend 00039e20: 73 20 54 73 7b 73 74 61 74 69 63 20 67 65 74 41 s Ts{static getA 00039e30: 70 69 4b 65 79 28 65 29 7b 72 65 74 75 72 6e 20 piKey(e){return 00039e40: 65 26 26 22 73 74 72 69 6e 67 22 21 3d 74 79 70 e&&"string"!=typ 00039e50: 65 6f 66 20 65 26 26 66 6c 2e 74 68 72 6f 77 41 eof e&&fl.throwA 00039e60: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e rgumentError("in 00039e70: 76 61 6c 69 64 20 61 70 69 4b 65 79 22 2c 22 61 valid apiKey","a 00039e80: 70 69 4b 65 79 22 2c 65 29 2c 65 7c 7c 22 45 54 piKey",e),e||"ET 00039e90: 48 45 52 53 5f 4a 53 5f 53 48 41 52 45 44 22 7d HERS_JS_SHARED"} 00039ea0: 73 74 61 74 69 63 20 67 65 74 55 72 6c 28 65 2c static getUrl(e, 00039eb0: 74 29 7b 66 6c 2e 77 61 72 6e 28 22 4e 6f 64 65 t){fl.warn("Node 00039ec0: 53 6d 69 74 68 20 77 69 6c 6c 20 62 65 20 64 69 Smith will be di 00039ed0: 73 63 6f 6e 74 69 6e 75 65 64 20 6f 6e 20 32 30 scontinued on 20 00039ee0: 31 39 2d 31 32 2d 32 30 3b 20 70 6c 65 61 73 65 19-12-20; please 00039ef0: 20 6d 69 67 72 61 74 65 20 74 6f 20 61 6e 6f 74 migrate to anot 00039f00: 68 65 72 20 70 6c 61 74 66 6f 72 6d 2e 22 29 3b her platform."); 00039f10: 6c 65 74 20 6e 3d 6e 75 6c 6c 3b 73 77 69 74 63 let n=null;switc 00039f20: 68 28 65 2e 6e 61 6d 65 29 7b 63 61 73 65 22 68 h(e.name){case"h 00039f30: 6f 6d 65 73 74 65 61 64 22 3a 6e 3d 22 68 74 74 omestead":n="htt 00039f40: 70 73 3a 2f 2f 65 74 68 65 72 65 75 6d 2e 61 70 ps://ethereum.ap 00039f50: 69 2e 6e 6f 64 65 73 6d 69 74 68 2e 69 6f 2f 76 i.nodesmith.io/v 00039f60: 31 2f 6d 61 69 6e 6e 65 74 2f 6a 73 6f 6e 72 70 1/mainnet/jsonrp 00039f70: 63 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 72 6f c";break;case"ro 00039f80: 70 73 74 65 6e 22 3a 6e 3d 22 68 74 74 70 73 3a psten":n="https: 00039f90: 2f 2f 65 74 68 65 72 65 75 6d 2e 61 70 69 2e 6e //ethereum.api.n 00039fa0: 6f 64 65 73 6d 69 74 68 2e 69 6f 2f 76 31 2f 72 odesmith.io/v1/r 00039fb0: 6f 70 73 74 65 6e 2f 6a 73 6f 6e 72 70 63 22 3b opsten/jsonrpc"; 00039fc0: 62 72 65 61 6b 3b 63 61 73 65 22 72 69 6e 6b 65 break;case"rinke 00039fd0: 62 79 22 3a 6e 3d 22 68 74 74 70 73 3a 2f 2f 65 by":n="https://e 00039fe0: 74 68 65 72 65 75 6d 2e 61 70 69 2e 6e 6f 64 65 thereum.api.node 00039ff0: 73 6d 69 74 68 2e 69 6f 2f 76 31 2f 72 69 6e 6b smith.io/v1/rink 0003a000: 65 62 79 2f 6a 73 6f 6e 72 70 63 22 3b 62 72 65 eby/jsonrpc";bre 0003a010: 61 6b 3b 63 61 73 65 22 67 6f 65 72 6c 69 22 3a ak;case"goerli": 0003a020: 6e 3d 22 68 74 74 70 73 3a 2f 2f 65 74 68 65 72 n="https://ether 0003a030: 65 75 6d 2e 61 70 69 2e 6e 6f 64 65 73 6d 69 74 eum.api.nodesmit 0003a040: 68 2e 69 6f 2f 76 31 2f 67 6f 65 72 6c 69 2f 6a h.io/v1/goerli/j 0003a050: 73 6f 6e 72 70 63 22 3b 62 72 65 61 6b 3b 63 61 sonrpc";break;ca 0003a060: 73 65 22 6b 6f 76 61 6e 22 3a 6e 3d 22 68 74 74 se"kovan":n="htt 0003a070: 70 73 3a 2f 2f 65 74 68 65 72 65 75 6d 2e 61 70 ps://ethereum.ap 0003a080: 69 2e 6e 6f 64 65 73 6d 69 74 68 2e 69 6f 2f 76 i.nodesmith.io/v 0003a090: 31 2f 6b 6f 76 61 6e 2f 6a 73 6f 6e 72 70 63 22 1/kovan/jsonrpc" 0003a0a0: 3b 62 72 65 61 6b 3b 64 65 66 61 75 6c 74 3a 66 ;break;default:f 0003a0b0: 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 l.throwArgumentE 0003a0c0: 72 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 74 65 rror("unsupporte 0003a0d0: 64 20 6e 65 74 77 6f 72 6b 22 2c 22 6e 65 74 77 d network","netw 0003a0e0: 6f 72 6b 22 2c 61 72 67 75 6d 65 6e 74 73 5b 30 ork",arguments[0 0003a0f0: 5d 29 7d 72 65 74 75 72 6e 20 6e 2b 22 3f 61 70 ])}return n+"?ap 0003a100: 69 4b 65 79 3d 22 2b 74 7d 7d 63 6f 6e 73 74 20 iKey="+t}}const 0003a110: 6d 6c 3d 6e 65 77 20 79 28 41 61 29 2c 67 6c 3d ml=new y(Aa),gl= 0003a120: 22 36 32 65 31 61 64 35 31 62 33 37 62 38 65 30 "62e1ad51b37b8e0 0003a130: 30 33 39 34 62 64 61 33 62 22 3b 63 6c 61 73 73 0394bda3b";class 0003a140: 20 62 6c 20 65 78 74 65 6e 64 73 20 54 73 7b 73 bl extends Ts{s 0003a150: 74 61 74 69 63 20 67 65 74 41 70 69 4b 65 79 28 tatic getApiKey( 0003a160: 65 29 7b 63 6f 6e 73 74 20 74 3d 7b 61 70 70 6c e){const t={appl 0003a170: 69 63 61 74 69 6f 6e 49 64 3a 6e 75 6c 6c 2c 6c icationId:null,l 0003a180: 6f 61 64 42 61 6c 61 6e 63 65 72 3a 21 30 2c 61 oadBalancer:!0,a 0003a190: 70 70 6c 69 63 61 74 69 6f 6e 53 65 63 72 65 74 pplicationSecret 0003a1a0: 4b 65 79 3a 6e 75 6c 6c 7d 3b 72 65 74 75 72 6e Key:null};return 0003a1b0: 20 6e 75 6c 6c 3d 3d 65 3f 74 2e 61 70 70 6c 69 null==e?t.appli 0003a1c0: 63 61 74 69 6f 6e 49 64 3d 67 6c 3a 22 73 74 72 cationId=gl:"str 0003a1d0: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 74 ing"==typeof e?t 0003a1e0: 2e 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 3d 65 .applicationId=e 0003a1f0: 3a 6e 75 6c 6c 21 3d 65 2e 61 70 70 6c 69 63 61 :null!=e.applica 0003a200: 74 69 6f 6e 53 65 63 72 65 74 4b 65 79 3f 28 74 tionSecretKey?(t 0003a210: 2e 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 3d 65 .applicationId=e 0003a220: 2e 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 2c 74 .applicationId,t 0003a230: 2e 61 70 70 6c 69 63 61 74 69 6f 6e 53 65 63 72 .applicationSecr 0003a240: 65 74 4b 65 79 3d 65 2e 61 70 70 6c 69 63 61 74 etKey=e.applicat 0003a250: 69 6f 6e 53 65 63 72 65 74 4b 65 79 29 3a 65 2e ionSecretKey):e. 0003a260: 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 3f 74 2e applicationId?t. 0003a270: 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 3d 65 2e applicationId=e. 0003a280: 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 3a 6d 6c applicationId:ml 0003a290: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 0003a2a0: 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 74 65 64 ror("unsupported 0003a2b0: 20 50 6f 63 6b 65 74 50 72 6f 76 69 64 65 72 20 PocketProvider 0003a2c0: 61 70 69 4b 65 79 22 2c 22 61 70 69 4b 65 79 22 apiKey","apiKey" 0003a2d0: 2c 65 29 2c 74 7d 73 74 61 74 69 63 20 67 65 74 ,e),t}static get 0003a2e0: 55 72 6c 28 65 2c 74 29 7b 6c 65 74 20 6e 3d 6e Url(e,t){let n=n 0003a2f0: 75 6c 6c 3b 73 77 69 74 63 68 28 65 3f 65 2e 6e ull;switch(e?e.n 0003a300: 61 6d 65 3a 22 75 6e 6b 6e 6f 77 6e 22 29 7b 63 ame:"unknown"){c 0003a310: 61 73 65 22 67 6f 65 72 6c 69 22 3a 6e 3d 22 65 ase"goerli":n="e 0003a320: 74 68 2d 67 6f 65 72 6c 69 2e 67 61 74 65 77 61 th-goerli.gatewa 0003a330: 79 2e 70 6f 6b 74 2e 6e 65 74 77 6f 72 6b 22 3b y.pokt.network"; 0003a340: 62 72 65 61 6b 3b 63 61 73 65 22 68 6f 6d 65 73 break;case"homes 0003a350: 74 65 61 64 22 3a 6e 3d 22 65 74 68 2d 6d 61 69 tead":n="eth-mai 0003a360: 6e 6e 65 74 2e 67 61 74 65 77 61 79 2e 70 6f 6b nnet.gateway.pok 0003a370: 74 2e 6e 65 74 77 6f 72 6b 22 3b 62 72 65 61 6b t.network";break 0003a380: 3b 63 61 73 65 22 6b 6f 76 61 6e 22 3a 6e 3d 22 ;case"kovan":n=" 0003a390: 70 6f 61 2d 6b 6f 76 61 6e 2e 67 61 74 65 77 61 poa-kovan.gatewa 0003a3a0: 79 2e 70 6f 6b 74 2e 6e 65 74 77 6f 72 6b 22 3b y.pokt.network"; 0003a3b0: 62 72 65 61 6b 3b 63 61 73 65 22 6d 61 74 69 63 break;case"matic 0003a3c0: 22 3a 6e 3d 22 70 6f 6c 79 2d 6d 61 69 6e 6e 65 ":n="poly-mainne 0003a3d0: 74 2e 67 61 74 65 77 61 79 2e 70 6f 6b 74 2e 6e t.gateway.pokt.n 0003a3e0: 65 74 77 6f 72 6b 22 3b 62 72 65 61 6b 3b 63 61 etwork";break;ca 0003a3f0: 73 65 22 6d 61 74 69 63 6d 75 6d 22 3a 6e 3d 22 se"maticmum":n=" 0003a400: 70 6f 6c 79 67 6f 6e 2d 6d 75 6d 62 61 69 2d 72 polygon-mumbai-r 0003a410: 70 63 2e 67 61 74 65 77 61 79 2e 70 6f 6b 74 2e pc.gateway.pokt. 0003a420: 6e 65 74 77 6f 72 6b 22 3b 62 72 65 61 6b 3b 63 network";break;c 0003a430: 61 73 65 22 72 69 6e 6b 65 62 79 22 3a 6e 3d 22 ase"rinkeby":n=" 0003a440: 65 74 68 2d 72 69 6e 6b 65 62 79 2e 67 61 74 65 eth-rinkeby.gate 0003a450: 77 61 79 2e 70 6f 6b 74 2e 6e 65 74 77 6f 72 6b way.pokt.network 0003a460: 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 72 6f 70 ";break;case"rop 0003a470: 73 74 65 6e 22 3a 6e 3d 22 65 74 68 2d 72 6f 70 sten":n="eth-rop 0003a480: 73 74 65 6e 2e 67 61 74 65 77 61 79 2e 70 6f 6b sten.gateway.pok 0003a490: 74 2e 6e 65 74 77 6f 72 6b 22 3b 62 72 65 61 6b t.network";break 0003a4a0: 3b 64 65 66 61 75 6c 74 3a 6d 6c 2e 74 68 72 6f ;default:ml.thro 0003a4b0: 77 45 72 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 wError("unsuppor 0003a4c0: 74 65 64 20 6e 65 74 77 6f 72 6b 22 2c 79 2e 65 ted network",y.e 0003a4d0: 72 72 6f 72 73 2e 49 4e 56 41 4c 49 44 5f 41 52 rrors.INVALID_AR 0003a4e0: 47 55 4d 45 4e 54 2c 7b 61 72 67 75 6d 65 6e 74 GUMENT,{argument 0003a4f0: 3a 22 6e 65 74 77 6f 72 6b 22 2c 76 61 6c 75 65 :"network",value 0003a500: 3a 65 7d 29 7d 63 6f 6e 73 74 20 72 3d 7b 68 65 :e})}const r={he 0003a510: 61 64 65 72 73 3a 7b 7d 2c 75 72 6c 3a 60 68 74 aders:{},url:`ht 0003a520: 74 70 73 3a 2f 2f 24 7b 6e 7d 2f 76 31 2f 6c 62 tps://${n}/v1/lb 0003a530: 2f 24 7b 74 2e 61 70 70 6c 69 63 61 74 69 6f 6e /${t.application 0003a540: 49 64 7d 60 7d 3b 72 65 74 75 72 6e 20 6e 75 6c Id}`};return nul 0003a550: 6c 21 3d 74 2e 61 70 70 6c 69 63 61 74 69 6f 6e l!=t.application 0003a560: 53 65 63 72 65 74 4b 65 79 26 26 28 72 2e 75 73 SecretKey&&(r.us 0003a570: 65 72 3d 22 22 2c 72 2e 70 61 73 73 77 6f 72 64 er="",r.password 0003a580: 3d 74 2e 61 70 70 6c 69 63 61 74 69 6f 6e 53 65 =t.applicationSe 0003a590: 63 72 65 74 4b 65 79 29 2c 72 7d 69 73 43 6f 6d cretKey),r}isCom 0003a5a0: 6d 75 6e 69 74 79 52 65 73 6f 75 72 63 65 28 29 munityResource() 0003a5b0: 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 61 70 70 {return this.app 0003a5c0: 6c 69 63 61 74 69 6f 6e 49 64 3d 3d 3d 67 6c 7d licationId===gl} 0003a5d0: 7d 63 6f 6e 73 74 20 79 6c 3d 6e 65 77 20 79 28 }const yl=new y( 0003a5e0: 41 61 29 3b 6c 65 74 20 76 6c 3d 31 3b 66 75 6e Aa);let vl=1;fun 0003a5f0: 63 74 69 6f 6e 20 53 6c 28 65 2c 74 29 7b 63 6f ction Sl(e,t){co 0003a600: 6e 73 74 20 6e 3d 22 57 65 62 33 4c 65 67 61 63 nst n="Web3Legac 0003a610: 79 46 65 74 63 68 65 72 22 3b 72 65 74 75 72 6e yFetcher";return 0003a620: 20 66 75 6e 63 74 69 6f 6e 28 65 2c 72 29 7b 63 function(e,r){c 0003a630: 6f 6e 73 74 20 6f 3d 7b 6d 65 74 68 6f 64 3a 65 onst o={method:e 0003a640: 2c 70 61 72 61 6d 73 3a 72 2c 69 64 3a 76 6c 2b ,params:r,id:vl+ 0003a650: 2b 2c 6a 73 6f 6e 72 70 63 3a 22 32 2e 30 22 7d +,jsonrpc:"2.0"} 0003a660: 3b 72 65 74 75 72 6e 20 6e 65 77 20 50 72 6f 6d ;return new Prom 0003a670: 69 73 65 28 28 28 65 2c 72 29 3d 3e 7b 74 68 69 ise(((e,r)=>{thi 0003a680: 73 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b s.emit("debug",{ 0003a690: 61 63 74 69 6f 6e 3a 22 72 65 71 75 65 73 74 22 action:"request" 0003a6a0: 2c 66 65 74 63 68 65 72 3a 6e 2c 72 65 71 75 65 ,fetcher:n,reque 0003a6b0: 73 74 3a 63 65 28 6f 29 2c 70 72 6f 76 69 64 65 st:ce(o),provide 0003a6c0: 72 3a 74 68 69 73 7d 29 2c 74 28 6f 2c 28 28 74 r:this}),t(o,((t 0003a6d0: 2c 69 29 3d 3e 7b 69 66 28 74 29 72 65 74 75 72 ,i)=>{if(t)retur 0003a6e0: 6e 20 74 68 69 73 2e 65 6d 69 74 28 22 64 65 62 n this.emit("deb 0003a6f0: 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 73 ug",{action:"res 0003a700: 70 6f 6e 73 65 22 2c 66 65 74 63 68 65 72 3a 6e ponse",fetcher:n 0003a710: 2c 65 72 72 6f 72 3a 74 2c 72 65 71 75 65 73 74 ,error:t,request 0003a720: 3a 6f 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 :o,provider:this 0003a730: 7d 29 2c 72 28 74 29 3b 69 66 28 74 68 69 73 2e }),r(t);if(this. 0003a740: 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b 61 63 emit("debug",{ac 0003a750: 74 69 6f 6e 3a 22 72 65 73 70 6f 6e 73 65 22 2c tion:"response", 0003a760: 66 65 74 63 68 65 72 3a 6e 2c 72 65 71 75 65 73 fetcher:n,reques 0003a770: 74 3a 6f 2c 72 65 73 70 6f 6e 73 65 3a 69 2c 70 t:o,response:i,p 0003a780: 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 2c 69 rovider:this}),i 0003a790: 2e 65 72 72 6f 72 29 7b 63 6f 6e 73 74 20 65 3d .error){const e= 0003a7a0: 6e 65 77 20 45 72 72 6f 72 28 69 2e 65 72 72 6f new Error(i.erro 0003a7b0: 72 2e 6d 65 73 73 61 67 65 29 3b 72 65 74 75 72 r.message);retur 0003a7c0: 6e 20 65 2e 63 6f 64 65 3d 69 2e 65 72 72 6f 72 n e.code=i.error 0003a7d0: 2e 63 6f 64 65 2c 65 2e 64 61 74 61 3d 69 2e 65 .code,e.data=i.e 0003a7e0: 72 72 6f 72 2e 64 61 74 61 2c 72 28 65 29 7d 65 rror.data,r(e)}e 0003a7f0: 28 69 2e 72 65 73 75 6c 74 29 7d 29 29 7d 29 29 (i.result)}))})) 0003a800: 7d 7d 63 6c 61 73 73 20 45 6c 20 65 78 74 65 6e }}class El exten 0003a810: 64 73 20 67 73 7b 63 6f 6e 73 74 72 75 63 74 6f ds gs{constructo 0003a820: 72 28 65 2c 74 29 7b 6e 75 6c 6c 3d 3d 65 26 26 r(e,t){null==e&& 0003a830: 79 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 yl.throwArgument 0003a840: 45 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 20 70 Error("missing p 0003a850: 72 6f 76 69 64 65 72 22 2c 22 70 72 6f 76 69 64 rovider","provid 0003a860: 65 72 22 2c 65 29 3b 6c 65 74 20 6e 3d 6e 75 6c er",e);let n=nul 0003a870: 6c 2c 72 3d 6e 75 6c 6c 2c 6f 3d 6e 75 6c 6c 3b l,r=null,o=null; 0003a880: 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 65 "function"==type 0003a890: 6f 66 20 65 3f 28 6e 3d 22 75 6e 6b 6e 6f 77 6e of e?(n="unknown 0003a8a0: 3a 22 2c 72 3d 65 29 3a 28 6e 3d 65 2e 68 6f 73 :",r=e):(n=e.hos 0003a8b0: 74 7c 7c 65 2e 70 61 74 68 7c 7c 22 22 2c 21 6e t||e.path||"",!n 0003a8c0: 26 26 65 2e 69 73 4d 65 74 61 4d 61 73 6b 26 26 &&e.isMetaMask&& 0003a8d0: 28 6e 3d 22 6d 65 74 61 6d 61 73 6b 22 29 2c 6f (n="metamask"),o 0003a8e0: 3d 65 2c 65 2e 72 65 71 75 65 73 74 3f 28 22 22 =e,e.request?("" 0003a8f0: 3d 3d 3d 6e 26 26 28 6e 3d 22 65 69 70 2d 31 31 ===n&&(n="eip-11 0003a900: 39 33 3a 22 29 2c 72 3d 66 75 6e 63 74 69 6f 6e 93:"),r=function 0003a910: 28 65 29 7b 72 65 74 75 72 6e 20 66 75 6e 63 74 (e){return funct 0003a920: 69 6f 6e 28 74 2c 6e 29 7b 6e 75 6c 6c 3d 3d 6e ion(t,n){null==n 0003a930: 26 26 28 6e 3d 5b 5d 29 3b 63 6f 6e 73 74 20 72 &&(n=[]);const r 0003a940: 3d 7b 6d 65 74 68 6f 64 3a 74 2c 70 61 72 61 6d ={method:t,param 0003a950: 73 3a 6e 7d 3b 72 65 74 75 72 6e 20 74 68 69 73 s:n};return this 0003a960: 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b 61 .emit("debug",{a 0003a970: 63 74 69 6f 6e 3a 22 72 65 71 75 65 73 74 22 2c ction:"request", 0003a980: 66 65 74 63 68 65 72 3a 22 45 69 70 31 31 39 33 fetcher:"Eip1193 0003a990: 46 65 74 63 68 65 72 22 2c 72 65 71 75 65 73 74 Fetcher",request 0003a9a0: 3a 63 65 28 72 29 2c 70 72 6f 76 69 64 65 72 3a :ce(r),provider: 0003a9b0: 74 68 69 73 7d 29 2c 65 2e 72 65 71 75 65 73 74 this}),e.request 0003a9c0: 28 72 29 2e 74 68 65 6e 28 28 65 3d 3e 28 74 68 (r).then((e=>(th 0003a9d0: 69 73 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c is.emit("debug", 0003a9e0: 7b 61 63 74 69 6f 6e 3a 22 72 65 73 70 6f 6e 73 {action:"respons 0003a9f0: 65 22 2c 66 65 74 63 68 65 72 3a 22 45 69 70 31 e",fetcher:"Eip1 0003aa00: 31 39 33 46 65 74 63 68 65 72 22 2c 72 65 71 75 193Fetcher",requ 0003aa10: 65 73 74 3a 72 2c 72 65 73 70 6f 6e 73 65 3a 65 est:r,response:e 0003aa20: 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 ,provider:this}) 0003aa30: 2c 65 29 29 2c 28 65 3d 3e 7b 74 68 72 6f 77 20 ,e)),(e=>{throw 0003aa40: 74 68 69 73 2e 65 6d 69 74 28 22 64 65 62 75 67 this.emit("debug 0003aa50: 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 73 70 6f ",{action:"respo 0003aa60: 6e 73 65 22 2c 66 65 74 63 68 65 72 3a 22 45 69 nse",fetcher:"Ei 0003aa70: 70 31 31 39 33 46 65 74 63 68 65 72 22 2c 72 65 p1193Fetcher",re 0003aa80: 71 75 65 73 74 3a 72 2c 65 72 72 6f 72 3a 65 2c quest:r,error:e, 0003aa90: 70 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 2c provider:this}), 0003aaa0: 65 7d 29 29 7d 7d 28 65 29 29 3a 65 2e 73 65 6e e}))}}(e)):e.sen 0003aab0: 64 41 73 79 6e 63 3f 72 3d 53 6c 28 30 2c 65 2e dAsync?r=Sl(0,e. 0003aac0: 73 65 6e 64 41 73 79 6e 63 2e 62 69 6e 64 28 65 sendAsync.bind(e 0003aad0: 29 29 3a 65 2e 73 65 6e 64 3f 72 3d 53 6c 28 30 )):e.send?r=Sl(0 0003aae0: 2c 65 2e 73 65 6e 64 2e 62 69 6e 64 28 65 29 29 ,e.send.bind(e)) 0003aaf0: 3a 79 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e :yl.throwArgumen 0003ab00: 74 45 72 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 tError("unsuppor 0003ab10: 74 65 64 20 70 72 6f 76 69 64 65 72 22 2c 22 70 ted provider","p 0003ab20: 72 6f 76 69 64 65 72 22 2c 65 29 2c 6e 7c 7c 28 rovider",e),n||( 0003ab30: 6e 3d 22 75 6e 6b 6e 6f 77 6e 3a 22 29 29 2c 73 n="unknown:")),s 0003ab40: 75 70 65 72 28 6e 2c 74 29 2c 74 65 28 74 68 69 uper(n,t),te(thi 0003ab50: 73 2c 22 6a 73 6f 6e 52 70 63 46 65 74 63 68 46 s,"jsonRpcFetchF 0003ab60: 75 6e 63 22 2c 72 29 2c 74 65 28 74 68 69 73 2c unc",r),te(this, 0003ab70: 22 70 72 6f 76 69 64 65 72 22 2c 6f 29 7d 73 65 "provider",o)}se 0003ab80: 6e 64 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 74 nd(e,t){return t 0003ab90: 68 69 73 2e 6a 73 6f 6e 52 70 63 46 65 74 63 68 his.jsonRpcFetch 0003aba0: 46 75 6e 63 28 65 2c 74 29 7d 7d 63 6f 6e 73 74 Func(e,t)}}const 0003abb0: 20 5f 6c 3d 6e 65 77 20 79 28 41 61 29 3b 66 75 _l=new y(Aa);fu 0003abc0: 6e 63 74 69 6f 6e 20 77 6c 28 65 2c 74 29 7b 69 nction wl(e,t){i 0003abd0: 66 28 6e 75 6c 6c 3d 3d 65 26 26 28 65 3d 22 68 f(null==e&&(e="h 0003abe0: 6f 6d 65 73 74 65 61 64 22 29 2c 22 73 74 72 69 omestead"),"stri 0003abf0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 29 7b 63 ng"==typeof e){c 0003ac00: 6f 6e 73 74 20 74 3d 65 2e 6d 61 74 63 68 28 2f onst t=e.match(/ 0003ac10: 5e 28 77 73 7c 68 74 74 70 29 73 3f 3a 2f 69 29 ^(ws|http)s?:/i) 0003ac20: 3b 69 66 28 74 29 73 77 69 74 63 68 28 74 5b 31 ;if(t)switch(t[1 0003ac30: 5d 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 29 ].toLowerCase()) 0003ac40: 7b 63 61 73 65 22 68 74 74 70 22 3a 63 61 73 65 {case"http":case 0003ac50: 22 68 74 74 70 73 22 3a 72 65 74 75 72 6e 20 6e "https":return n 0003ac60: 65 77 20 67 73 28 65 29 3b 63 61 73 65 22 77 73 ew gs(e);case"ws 0003ac70: 22 3a 63 61 73 65 22 77 73 73 22 3a 72 65 74 75 ":case"wss":retu 0003ac80: 72 6e 20 6e 65 77 20 45 73 28 65 29 3b 64 65 66 rn new Es(e);def 0003ac90: 61 75 6c 74 3a 5f 6c 2e 74 68 72 6f 77 41 72 67 ault:_l.throwArg 0003aca0: 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 73 75 umentError("unsu 0003acb0: 70 70 6f 72 74 65 64 20 55 52 4c 20 73 63 68 65 pported URL sche 0003acc0: 6d 65 22 2c 22 6e 65 74 77 6f 72 6b 22 2c 65 29 me","network",e) 0003acd0: 7d 7d 63 6f 6e 73 74 20 6e 3d 42 69 28 65 29 3b }}const n=Bi(e); 0003ace0: 72 65 74 75 72 6e 20 6e 26 26 6e 2e 5f 64 65 66 return n&&n._def 0003acf0: 61 75 6c 74 50 72 6f 76 69 64 65 72 7c 7c 5f 6c aultProvider||_l 0003ad00: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 75 6e 73 .throwError("uns 0003ad10: 75 70 70 6f 72 74 65 64 20 67 65 74 44 65 66 61 upported getDefa 0003ad20: 75 6c 74 50 72 6f 76 69 64 65 72 20 6e 65 74 77 ultProvider netw 0003ad30: 6f 72 6b 22 2c 79 2e 65 72 72 6f 72 73 2e 4e 45 ork",y.errors.NE 0003ad40: 54 57 4f 52 4b 5f 45 52 52 4f 52 2c 7b 6f 70 65 TWORK_ERROR,{ope 0003ad50: 72 61 74 69 6f 6e 3a 22 67 65 74 44 65 66 61 75 ration:"getDefau 0003ad60: 6c 74 50 72 6f 76 69 64 65 72 22 2c 6e 65 74 77 ltProvider",netw 0003ad70: 6f 72 6b 3a 65 7d 29 2c 6e 2e 5f 64 65 66 61 75 ork:e}),n._defau 0003ad80: 6c 74 50 72 6f 76 69 64 65 72 28 7b 46 61 6c 6c ltProvider({Fall 0003ad90: 62 61 63 6b 50 72 6f 76 69 64 65 72 3a 61 6c 2c backProvider:al, 0003ada0: 41 6c 63 68 65 6d 79 50 72 6f 76 69 64 65 72 3a AlchemyProvider: 0003adb0: 49 73 2c 41 6e 6b 72 50 72 6f 76 69 64 65 72 3a Is,AnkrProvider: 0003adc0: 50 73 2c 43 6c 6f 75 64 66 6c 61 72 65 50 72 6f Ps,CloudflarePro 0003add0: 76 69 64 65 72 3a 4c 73 2c 45 74 68 65 72 73 63 vider:Ls,Ethersc 0003ade0: 61 6e 50 72 6f 76 69 64 65 72 3a 56 73 2c 49 6e anProvider:Vs,In 0003adf0: 66 75 72 61 50 72 6f 76 69 64 65 72 3a 64 6c 2c furaProvider:dl, 0003ae00: 4a 73 6f 6e 52 70 63 50 72 6f 76 69 64 65 72 3a JsonRpcProvider: 0003ae10: 67 73 2c 4e 6f 64 65 73 6d 69 74 68 50 72 6f 76 gs,NodesmithProv 0003ae20: 69 64 65 72 3a 68 6c 2c 50 6f 63 6b 65 74 50 72 ider:hl,PocketPr 0003ae30: 6f 76 69 64 65 72 3a 62 6c 2c 57 65 62 33 50 72 ovider:bl,Web3Pr 0003ae40: 6f 76 69 64 65 72 3a 45 6c 2c 49 70 63 50 72 6f ovider:El,IpcPro 0003ae50: 76 69 64 65 72 3a 73 6c 7d 2c 74 29 7d 63 6f 6e vider:sl},t)}con 0003ae60: 73 74 20 78 6c 3d 6e 65 77 20 52 65 67 45 78 70 st xl=new RegExp 0003ae70: 28 22 5e 62 79 74 65 73 28 5b 30 2d 39 5d 2b 29 ("^bytes([0-9]+) 0003ae80: 24 22 29 2c 54 6c 3d 6e 65 77 20 52 65 67 45 78 $"),Tl=new RegEx 0003ae90: 70 28 22 5e 28 75 3f 69 6e 74 29 28 5b 30 2d 39 p("^(u?int)([0-9 0003aea0: 5d 2a 29 24 22 29 2c 43 6c 3d 6e 65 77 20 52 65 ]*)$"),Cl=new Re 0003aeb0: 67 45 78 70 28 22 5e 28 2e 2a 29 5c 5c 5b 28 5b gExp("^(.*)\\[([ 0003aec0: 30 2d 39 5d 2a 29 5c 5c 5d 24 22 29 2c 41 6c 3d 0-9]*)\\]$"),Al= 0003aed0: 22 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 "000000000000000 0003aee0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0003aef0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0003af00: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0003af10: 30 22 2c 6b 6c 3d 6e 65 77 20 79 28 22 73 6f 6c 0",kl=new y("sol 0003af20: 69 64 69 74 79 2f 35 2e 37 2e 30 22 29 3b 66 75 idity/5.7.0");fu 0003af30: 6e 63 74 69 6f 6e 20 49 6c 28 65 2c 74 2c 6e 29 nction Il(e,t,n) 0003af40: 7b 73 77 69 74 63 68 28 65 29 7b 63 61 73 65 22 {switch(e){case" 0003af50: 61 64 64 72 65 73 73 22 3a 72 65 74 75 72 6e 20 address":return 0003af60: 6e 3f 6b 28 74 2c 33 32 29 3a 54 28 74 29 3b 63 n?k(t,32):T(t);c 0003af70: 61 73 65 22 73 74 72 69 6e 67 22 3a 72 65 74 75 ase"string":retu 0003af80: 72 6e 20 71 65 28 74 29 3b 63 61 73 65 22 62 79 rn qe(t);case"by 0003af90: 74 65 73 22 3a 72 65 74 75 72 6e 20 54 28 74 29 tes":return T(t) 0003afa0: 3b 63 61 73 65 22 62 6f 6f 6c 22 3a 72 65 74 75 ;case"bool":retu 0003afb0: 72 6e 20 74 3d 74 3f 22 30 78 30 31 22 3a 22 30 rn t=t?"0x01":"0 0003afc0: 78 30 30 22 2c 6e 3f 6b 28 74 2c 33 32 29 3a 54 x00",n?k(t,32):T 0003afd0: 28 74 29 7d 6c 65 74 20 72 3d 65 2e 6d 61 74 63 (t)}let r=e.matc 0003afe0: 68 28 54 6c 29 3b 69 66 28 72 29 7b 6c 65 74 20 h(Tl);if(r){let 0003aff0: 6f 3d 70 61 72 73 65 49 6e 74 28 72 5b 32 5d 7c o=parseInt(r[2]| 0003b000: 7c 22 32 35 36 22 29 3b 72 65 74 75 72 6e 28 72 |"256");return(r 0003b010: 5b 32 5d 26 26 53 74 72 69 6e 67 28 6f 29 21 3d [2]&&String(o)!= 0003b020: 3d 72 5b 32 5d 7c 7c 6f 25 38 21 3d 30 7c 7c 30 =r[2]||o%8!=0||0 0003b030: 3d 3d 3d 6f 7c 7c 6f 3e 32 35 36 29 26 26 6b 6c ===o||o>256)&&kl 0003b040: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 0003b050: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 6e 75 6d ror("invalid num 0003b060: 62 65 72 20 74 79 70 65 22 2c 22 74 79 70 65 22 ber type","type" 0003b070: 2c 65 29 2c 6e 26 26 28 6f 3d 32 35 36 29 2c 6b ,e),n&&(o=256),k 0003b080: 28 74 3d 59 2e 66 72 6f 6d 28 74 29 2e 74 6f 54 (t=Y.from(t).toT 0003b090: 77 6f 73 28 6f 29 2c 6f 2f 38 29 7d 69 66 28 72 wos(o),o/8)}if(r 0003b0a0: 3d 65 2e 6d 61 74 63 68 28 78 6c 29 2c 72 29 7b =e.match(xl),r){ 0003b0b0: 63 6f 6e 73 74 20 6f 3d 70 61 72 73 65 49 6e 74 const o=parseInt 0003b0c0: 28 72 5b 31 5d 29 3b 72 65 74 75 72 6e 28 53 74 (r[1]);return(St 0003b0d0: 72 69 6e 67 28 6f 29 21 3d 3d 72 5b 31 5d 7c 7c ring(o)!==r[1]|| 0003b0e0: 30 3d 3d 3d 6f 7c 7c 6f 3e 33 32 29 26 26 6b 6c 0===o||o>32)&&kl 0003b0f0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 0003b100: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 62 79 74 ror("invalid byt 0003b110: 65 73 20 74 79 70 65 22 2c 22 74 79 70 65 22 2c es type","type", 0003b120: 65 29 2c 54 28 74 29 2e 62 79 74 65 4c 65 6e 67 e),T(t).byteLeng 0003b130: 74 68 21 3d 3d 6f 26 26 6b 6c 2e 74 68 72 6f 77 th!==o&&kl.throw 0003b140: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 60 69 ArgumentError(`i 0003b150: 6e 76 61 6c 69 64 20 76 61 6c 75 65 20 66 6f 72 nvalid value for 0003b160: 20 24 7b 65 7d 60 2c 22 76 61 6c 75 65 22 2c 74 ${e}`,"value",t 0003b170: 29 2c 6e 3f 54 28 28 74 2b 41 6c 29 2e 73 75 62 ),n?T((t+Al).sub 0003b180: 73 74 72 69 6e 67 28 30 2c 36 36 29 29 3a 74 7d string(0,66)):t} 0003b190: 69 66 28 72 3d 65 2e 6d 61 74 63 68 28 43 6c 29 if(r=e.match(Cl) 0003b1a0: 2c 72 26 26 41 72 72 61 79 2e 69 73 41 72 72 61 ,r&&Array.isArra 0003b1b0: 79 28 74 29 29 7b 63 6f 6e 73 74 20 6e 3d 72 5b y(t)){const n=r[ 0003b1c0: 31 5d 3b 70 61 72 73 65 49 6e 74 28 72 5b 32 5d 1];parseInt(r[2] 0003b1d0: 7c 7c 53 74 72 69 6e 67 28 74 2e 6c 65 6e 67 74 ||String(t.lengt 0003b1e0: 68 29 29 21 3d 74 2e 6c 65 6e 67 74 68 26 26 6b h))!=t.length&&k 0003b1f0: 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 l.throwArgumentE 0003b200: 72 72 6f 72 28 60 69 6e 76 61 6c 69 64 20 61 72 rror(`invalid ar 0003b210: 72 61 79 20 6c 65 6e 67 74 68 20 66 6f 72 20 24 ray length for $ 0003b220: 7b 65 7d 60 2c 22 76 61 6c 75 65 22 2c 74 29 3b {e}`,"value",t); 0003b230: 63 6f 6e 73 74 20 6f 3d 5b 5d 3b 72 65 74 75 72 const o=[];retur 0003b240: 6e 20 74 2e 66 6f 72 45 61 63 68 28 28 66 75 6e n t.forEach((fun 0003b250: 63 74 69 6f 6e 28 65 29 7b 6f 2e 70 75 73 68 28 ction(e){o.push( 0003b260: 49 6c 28 6e 2c 65 2c 21 30 29 29 7d 29 29 2c 43 Il(n,e,!0))})),C 0003b270: 28 6f 29 7d 72 65 74 75 72 6e 20 6b 6c 2e 74 68 (o)}return kl.th 0003b280: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 0003b290: 28 22 69 6e 76 61 6c 69 64 20 74 79 70 65 22 2c ("invalid type", 0003b2a0: 22 74 79 70 65 22 2c 65 29 7d 66 75 6e 63 74 69 "type",e)}functi 0003b2b0: 6f 6e 20 4f 6c 28 65 2c 74 29 7b 65 2e 6c 65 6e on Ol(e,t){e.len 0003b2c0: 67 74 68 21 3d 74 2e 6c 65 6e 67 74 68 26 26 6b gth!=t.length&&k 0003b2d0: 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 l.throwArgumentE 0003b2e0: 72 72 6f 72 28 22 77 72 6f 6e 67 20 6e 75 6d 62 rror("wrong numb 0003b2f0: 65 72 20 6f 66 20 76 61 6c 75 65 73 3b 20 65 78 er of values; ex 0003b300: 70 65 63 74 65 64 20 24 7b 20 74 79 70 65 73 2e pected ${ types. 0003b310: 6c 65 6e 67 74 68 20 7d 22 2c 22 76 61 6c 75 65 length }","value 0003b320: 73 22 2c 74 29 3b 63 6f 6e 73 74 20 6e 3d 5b 5d s",t);const n=[] 0003b330: 3b 72 65 74 75 72 6e 20 65 2e 66 6f 72 45 61 63 ;return e.forEac 0003b340: 68 28 28 66 75 6e 63 74 69 6f 6e 28 65 2c 72 29 h((function(e,r) 0003b350: 7b 6e 2e 70 75 73 68 28 49 6c 28 65 2c 74 5b 72 {n.push(Il(e,t[r 0003b360: 5d 29 29 7d 29 29 2c 52 28 43 28 6e 29 29 7d 66 ]))})),R(C(n))}f 0003b370: 75 6e 63 74 69 6f 6e 20 52 6c 28 65 2c 74 29 7b unction Rl(e,t){ 0003b380: 72 65 74 75 72 6e 20 76 65 28 4f 6c 28 65 2c 74 return ve(Ol(e,t 0003b390: 29 29 7d 66 75 6e 63 74 69 6f 6e 20 4e 6c 28 65 ))}function Nl(e 0003b3a0: 2c 74 29 7b 72 65 74 75 72 6e 20 45 6f 28 4f 6c ,t){return Eo(Ol 0003b3b0: 28 65 2c 74 29 29 7d 66 75 6e 63 74 69 6f 6e 20 (e,t))}function 0003b3c0: 50 6c 28 65 2c 74 29 7b 74 7c 7c 28 74 3d 66 75 Pl(e,t){t||(t=fu 0003b3d0: 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e nction(e){return 0003b3e0: 5b 70 61 72 73 65 49 6e 74 28 65 2c 31 36 29 5d [parseInt(e,16)] 0003b3f0: 7d 29 3b 6c 65 74 20 6e 3d 30 2c 72 3d 7b 7d 3b });let n=0,r={}; 0003b400: 72 65 74 75 72 6e 20 65 2e 73 70 6c 69 74 28 22 return e.split(" 0003b410: 2c 22 29 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e ,").forEach((e=> 0003b420: 7b 6c 65 74 20 6f 3d 65 2e 73 70 6c 69 74 28 22 {let o=e.split(" 0003b430: 3a 22 29 3b 6e 2b 3d 70 61 72 73 65 49 6e 74 28 :");n+=parseInt( 0003b440: 6f 5b 30 5d 2c 31 36 29 2c 72 5b 6e 5d 3d 74 28 o[0],16),r[n]=t( 0003b450: 6f 5b 31 5d 29 7d 29 29 2c 72 7d 66 75 6e 63 74 o[1])})),r}funct 0003b460: 69 6f 6e 20 4d 6c 28 65 29 7b 6c 65 74 20 74 3d ion Ml(e){let t= 0003b470: 30 3b 72 65 74 75 72 6e 20 65 2e 73 70 6c 69 74 0;return e.split 0003b480: 28 22 2c 22 29 2e 6d 61 70 28 28 65 3d 3e 7b 6c (",").map((e=>{l 0003b490: 65 74 20 6e 3d 65 2e 73 70 6c 69 74 28 22 2d 22 et n=e.split("-" 0003b4a0: 29 3b 31 3d 3d 3d 6e 2e 6c 65 6e 67 74 68 3f 6e );1===n.length?n 0003b4b0: 5b 31 5d 3d 22 30 22 3a 22 22 3d 3d 3d 6e 5b 31 [1]="0":""===n[1 0003b4c0: 5d 26 26 28 6e 5b 31 5d 3d 22 31 22 29 3b 6c 65 ]&&(n[1]="1");le 0003b4d0: 74 20 72 3d 74 2b 70 61 72 73 65 49 6e 74 28 6e t r=t+parseInt(n 0003b4e0: 5b 30 5d 2c 31 36 29 3b 72 65 74 75 72 6e 20 74 [0],16);return t 0003b4f0: 3d 70 61 72 73 65 49 6e 74 28 6e 5b 31 5d 2c 31 =parseInt(n[1],1 0003b500: 36 29 2c 7b 6c 3a 72 2c 68 3a 74 7d 7d 29 29 7d 6),{l:r,h:t}}))} 0003b510: 66 75 6e 63 74 69 6f 6e 20 44 6c 28 65 2c 74 29 function Dl(e,t) 0003b520: 7b 6c 65 74 20 6e 3d 30 3b 66 6f 72 28 6c 65 74 {let n=0;for(let 0003b530: 20 72 3d 30 3b 72 3c 74 2e 6c 65 6e 67 74 68 3b r=0;r<t.length; 0003b540: 72 2b 2b 29 7b 6c 65 74 20 6f 3d 74 5b 72 5d 3b r++){let o=t[r]; 0003b550: 69 66 28 6e 2b 3d 6f 2e 6c 2c 65 3e 3d 6e 26 26 if(n+=o.l,e>=n&& 0003b560: 65 3c 3d 6e 2b 6f 2e 68 26 26 28 65 2d 6e 29 25 e<=n+o.h&&(e-n)% 0003b570: 28 6f 2e 64 7c 7c 31 29 3d 3d 30 29 7b 69 66 28 (o.d||1)==0){if( 0003b580: 6f 2e 65 26 26 2d 31 21 3d 3d 6f 2e 65 2e 69 6e o.e&&-1!==o.e.in 0003b590: 64 65 78 4f 66 28 65 2d 6e 29 29 63 6f 6e 74 69 dexOf(e-n))conti 0003b5a0: 6e 75 65 3b 72 65 74 75 72 6e 20 6f 7d 7d 72 65 nue;return o}}re 0003b5b0: 74 75 72 6e 20 6e 75 6c 6c 7d 63 6f 6e 73 74 20 turn null}const 0003b5c0: 4c 6c 3d 4d 6c 28 22 32 32 31 2c 31 33 2d 31 62 Ll=Ml("221,13-1b 0003b5d0: 2c 35 66 2d 2c 34 30 2d 31 30 2c 35 31 2d 66 2c ,5f-,40-10,51-f, 0003b5e0: 31 31 2d 33 2c 33 2d 33 2c 32 2d 32 2c 32 2d 34 11-3,3-3,2-2,2-4 0003b5f0: 2c 38 2c 32 2c 31 35 2c 32 64 2c 32 38 2d 38 2c ,8,2,15,2d,28-8, 0003b600: 38 38 2c 34 38 2c 32 37 2d 2c 33 2d 35 2c 31 31 88,48,27-,3-5,11 0003b610: 2d 32 30 2c 32 37 2d 2c 38 2c 32 38 2c 33 2d 35 -20,27-,8,28,3-5 0003b620: 2c 31 32 2c 31 38 2c 62 2d 61 2c 31 63 2d 34 2c ,12,18,b-a,1c-4, 0003b630: 36 2d 31 36 2c 32 2d 64 2c 32 2d 32 2c 32 2c 31 6-16,2-d,2-2,2,1 0003b640: 62 2d 34 2c 31 37 2d 39 2c 38 66 2d 2c 31 30 2c b-4,17-9,8f-,10, 0003b650: 66 2c 31 66 2d 32 2c 31 63 2d 33 34 2c 33 33 2d f,1f-2,1c-34,33- 0003b660: 31 34 65 2c 34 2c 33 36 2d 2c 31 33 2d 2c 36 2d 14e,4,36-,13-,6- 0003b670: 32 2c 31 61 2d 66 2c 34 2c 39 2d 2c 33 2d 2c 31 2,1a-f,4,9-,3-,1 0003b680: 37 2c 38 2c 32 2d 32 2c 35 2d 2c 32 2c 38 2d 2c 7,8,2-2,5-,2,8-, 0003b690: 33 2d 2c 34 2d 38 2c 32 2d 33 2c 33 2c 36 2d 2c 3-,4-8,2-3,3,6-, 0003b6a0: 31 36 2d 36 2c 32 2d 2c 37 2d 33 2c 33 2d 2c 31 16-6,2-,7-3,3-,1 0003b6b0: 37 2c 38 2c 33 2c 33 2c 33 2d 2c 32 2c 36 2d 33 7,8,3,3,3-,2,6-3 0003b6c0: 2c 33 2d 2c 34 2d 61 2c 35 2c 32 2d 36 2c 31 30 ,3-,4-a,5,2-6,10 0003b6d0: 2d 62 2c 34 2c 38 2c 32 2c 34 2c 31 37 2c 38 2c -b,4,8,2,4,17,8, 0003b6e0: 33 2c 36 2d 2c 62 2c 34 2c 34 2d 2c 32 2d 65 2c 3,6-,b,4,4-,2-e, 0003b6f0: 32 2d 34 2c 62 2d 31 30 2c 34 2c 39 2d 2c 33 2d 2-4,b-10,4,9-,3- 0003b700: 2c 31 37 2c 38 2c 33 2d 2c 35 2d 2c 39 2d 32 2c ,17,8,3-,5-,9-2, 0003b710: 33 2d 2c 34 2d 37 2c 33 2d 33 2c 33 2c 34 2d 33 3-,4-7,3-3,3,4-3 0003b720: 2c 63 2d 31 30 2c 33 2c 37 2d 32 2c 34 2c 35 2d ,c-10,3,7-2,4,5- 0003b730: 32 2c 33 2c 32 2c 33 2d 32 2c 33 2d 32 2c 34 2d 2,3,2,3-2,3-2,4- 0003b740: 32 2c 39 2c 34 2d 33 2c 36 2d 32 2c 34 2c 35 2d 2,9,4-3,6-2,4,5- 0003b750: 38 2c 32 2d 65 2c 64 2d 64 2c 34 2c 39 2c 34 2c 8,2-e,d-d,4,9,4, 0003b760: 31 38 2c 62 2c 36 2d 33 2c 38 2c 34 2c 35 2d 36 18,b,6-3,8,4,5-6 0003b770: 2c 33 2d 38 2c 33 2d 33 2c 62 2d 31 31 2c 33 2c ,3-8,3-3,b-11,3, 0003b780: 39 2c 34 2c 31 38 2c 62 2c 36 2d 33 2c 38 2c 34 9,4,18,b,6-3,8,4 0003b790: 2c 35 2d 36 2c 33 2d 36 2c 32 2c 33 2d 33 2c 62 ,5-6,3-6,2,3-3,b 0003b7a0: 2d 31 31 2c 33 2c 39 2c 34 2c 31 38 2c 31 31 2d -11,3,9,4,18,11- 0003b7b0: 33 2c 37 2d 2c 34 2c 35 2d 38 2c 32 2d 37 2c 33 3,7-,4,5-8,2-7,3 0003b7c0: 2d 33 2c 62 2d 31 31 2c 33 2c 31 33 2d 32 2c 31 -3,b-11,3,13-2,1 0003b7d0: 39 2c 61 2c 32 2d 2c 38 2d 32 2c 32 2d 33 2c 37 9,a,2-,8-2,2-3,7 0003b7e0: 2c 32 2c 39 2d 31 31 2c 34 2d 62 2c 33 62 2d 33 ,2,9-11,4-b,3b-3 0003b7f0: 2c 31 65 2d 32 34 2c 33 2c 32 2d 2c 33 2c 32 2d ,1e-24,3,2-,3,2- 0003b800: 2c 32 2d 35 2c 35 2c 38 2c 34 2c 32 2c 32 2d 2c ,2-5,5,8,4,2,2-, 0003b810: 33 2c 65 2c 34 2d 2c 36 2c 32 2c 37 2d 2c 62 2d 3,e,4-,6,2,7-,b- 0003b820: 2c 33 2d 32 31 2c 34 39 2c 32 33 2d 35 2c 31 63 ,3-21,49,23-5,1c 0003b830: 2d 33 2c 39 2c 32 35 2c 31 30 2d 2c 32 2d 32 66 -3,9,25,10-,2-2f 0003b840: 2c 32 33 2c 36 2c 33 2c 38 2d 32 2c 35 2d 35 2c ,23,6,3,8-2,5-5, 0003b850: 31 62 2d 34 35 2c 32 37 2d 39 2c 32 61 2d 2c 32 1b-45,27-9,2a-,2 0003b860: 2d 33 2c 35 62 2d 34 2c 34 35 2d 34 2c 35 33 2d -3,5b-4,45-4,53- 0003b870: 35 2c 38 2c 34 30 2c 32 2c 35 2d 2c 38 2c 32 2c 5,8,40,2,5-,8,2, 0003b880: 35 2d 2c 32 38 2c 32 2c 35 2d 2c 32 30 2c 32 2c 5-,28,2,5-,20,2, 0003b890: 35 2d 2c 38 2c 32 2c 35 2d 2c 38 2c 38 2c 31 38 5-,8,2,5-,8,8,18 0003b8a0: 2c 32 30 2c 32 2c 35 2d 2c 38 2c 32 38 2c 31 34 ,20,2,5-,8,28,14 0003b8b0: 2d 35 2c 31 64 2d 32 32 2c 35 36 2d 62 2c 32 37 -5,1d-22,56-b,27 0003b8c0: 37 2d 38 2c 31 65 2d 32 2c 35 32 2d 65 2c 65 2c 7-8,1e-2,52-e,e, 0003b8d0: 38 2d 61 2c 31 38 2d 38 2c 31 35 2d 62 2c 65 2c 8-a,18-8,15-b,e, 0003b8e0: 34 2c 33 2d 62 2c 35 65 2d 32 2c 62 2d 31 35 2c 4,3-b,5e-2,b-15, 0003b8f0: 31 30 2c 62 2d 35 2c 35 39 2d 37 2c 32 62 2d 35 10,b-5,59-7,2b-5 0003b900: 35 35 2c 39 64 2d 33 2c 35 62 2d 35 2c 31 37 2d 55,9d-3,5b-5,17- 0003b910: 2c 37 2d 2c 32 37 2d 2c 37 2d 2c 39 2c 32 2c 32 ,7-,27-,7-,9,2,2 0003b920: 2c 32 2c 32 30 2d 2c 33 36 2c 31 30 2c 66 2d 2c ,2,20-,36,10,f-, 0003b930: 37 2c 31 34 2d 2c 34 2c 61 2c 35 34 2d 33 2c 32 7,14-,4,a,54-3,2 0003b940: 2d 36 2c 36 2d 35 2c 39 2d 2c 31 63 2d 31 30 2c -6,6-5,9-,1c-10, 0003b950: 31 33 2d 31 64 2c 31 63 2d 31 34 2c 33 63 2d 2c 13-1d,1c-14,3c-, 0003b960: 31 30 2d 36 2c 33 32 2d 62 2c 32 34 30 2d 33 30 10-6,32-b,240-30 0003b970: 2c 32 38 2d 31 38 2c 63 2d 31 34 2c 61 30 2c 31 ,28-18,c-14,a0,1 0003b980: 31 35 2d 2c 33 2c 36 36 2d 2c 62 2d 37 36 2c 35 15-,3,66-,b-76,5 0003b990: 2c 35 2d 2c 31 64 2c 32 34 2c 32 2c 35 2d 32 2c ,5-,1d,24,2,5-2, 0003b9a0: 32 2c 38 2d 2c 33 35 2d 32 2c 31 39 2c 66 2d 31 2,8-,35-2,19,f-1 0003b9b0: 30 2c 31 64 2d 33 2c 33 31 31 2d 33 37 66 2c 31 0,1d-3,311-37f,1 0003b9c0: 62 2c 35 61 2d 62 2c 64 37 2d 31 39 2c 64 2d 33 b,5a-b,d7-19,d-3 0003b9d0: 2c 34 31 2c 35 37 2d 2c 36 38 2d 34 2c 32 39 2d ,41,57-,68-4,29- 0003b9e0: 33 2c 35 66 2c 32 39 2d 33 37 2c 32 65 2d 32 2c 3,5f,29-37,2e-2, 0003b9f0: 32 35 2d 63 2c 32 63 2d 32 2c 34 65 2d 33 2c 33 25-c,2c-2,4e-3,3 0003ba00: 30 2c 37 38 2d 33 2c 36 34 2d 2c 32 30 2c 31 39 0,78-3,64-,20,19 0003ba10: 62 37 2d 34 39 2c 35 31 61 37 2d 35 39 2c 34 38 b7-49,51a7-59,48 0003ba20: 65 2d 32 2c 33 38 2d 37 33 38 2c 32 62 61 35 2d e-2,38-738,2ba5- 0003ba30: 35 62 2c 32 32 32 66 2d 2c 33 63 2d 39 34 2c 38 5b,222f-,3c-94,8 0003ba40: 2d 62 2c 36 2d 34 2c 31 62 2c 36 2c 32 2c 33 2c -b,6-4,1b,6,2,3, 0003ba50: 33 2c 36 64 2d 32 30 2c 31 36 65 2d 66 2c 34 31 3,6d-20,16e-f,41 0003ba60: 2d 2c 33 37 2d 37 2c 32 65 2d 32 2c 31 31 2d 66 -,37-7,2e-2,11-f 0003ba70: 2c 35 2d 62 2c 31 38 2d 2c 62 2c 31 34 2c 35 2d ,5-b,18-,b,14,5- 0003ba80: 33 2c 36 2c 38 38 2d 2c 32 2c 62 66 2d 32 2c 37 3,6,88-,2,bf-2,7 0003ba90: 2d 2c 37 2d 2c 37 2d 2c 34 2d 32 2c 38 2c 38 2d -,7-,7-,4-2,8,8- 0003baa0: 39 2c 38 2d 32 66 66 2c 32 30 2c 35 2d 62 2c 31 9,8-2ff,20,5-b,1 0003bab0: 63 2d 62 34 2c 32 37 2d 2c 32 37 2d 63 62 62 31 c-b4,27-,27-cbb1 0003bac0: 2c 66 37 2d 39 2c 32 38 2d 32 2c 62 35 2d 32 32 ,f7-9,28-2,b5-22 0003bad0: 31 2c 35 36 2c 34 38 2c 33 2d 2c 32 2d 2c 33 2d 1,56,48,3-,2-,3- 0003bae0: 2c 35 2c 64 2c 32 2c 35 2c 33 2c 34 32 2c 35 2d ,5,d,2,5,3,42,5- 0003baf0: 2c 39 2c 38 2c 31 64 2c 35 2c 36 2c 32 2d 32 2c ,9,8,1d,5,6,2-2, 0003bb00: 38 2c 31 35 33 2d 33 2c 31 32 33 2d 33 2c 33 33 8,153-3,123-3,33 0003bb10: 2d 32 37 66 64 2c 61 36 64 61 2d 35 31 32 38 2c -27fd,a6da-5128, 0003bb20: 32 31 66 2d 35 64 66 2c 33 2d 66 66 66 64 2c 33 21f-5df,3-fffd,3 0003bb30: 2d 66 66 66 64 2c 33 2d 66 66 66 64 2c 33 2d 66 -fffd,3-fffd,3-f 0003bb40: 66 66 64 2c 33 2d 66 66 66 64 2c 33 2d 66 66 66 ffd,3-fffd,3-fff 0003bb50: 64 2c 33 2d 66 66 66 64 2c 33 2d 66 66 66 64 2c d,3-fffd,3-fffd, 0003bb60: 33 2d 66 66 66 64 2c 33 2d 66 66 66 64 2c 33 2d 3-fffd,3-fffd,3- 0003bb70: 66 66 66 64 2c 33 2c 32 2d 31 64 2c 36 31 2d 66 fffd,3,2-1d,61-f 0003bb80: 66 37 64 22 29 2c 46 6c 3d 22 61 64 2c 33 34 66 f7d"),Fl="ad,34f 0003bb90: 2c 31 38 30 36 2c 31 38 30 62 2c 31 38 30 63 2c ,1806,180b,180c, 0003bba0: 31 38 30 64 2c 32 30 30 62 2c 32 30 30 63 2c 32 180d,200b,200c,2 0003bbb0: 30 30 64 2c 32 30 36 30 2c 66 65 66 66 22 2e 73 00d,2060,feff".s 0003bbc0: 70 6c 69 74 28 22 2c 22 29 2e 6d 61 70 28 28 65 plit(",").map((e 0003bbd0: 3d 3e 70 61 72 73 65 49 6e 74 28 65 2c 31 36 29 =>parseInt(e,16) 0003bbe0: 29 29 2c 55 6c 3d 5b 7b 68 3a 32 35 2c 73 3a 33 )),Ul=[{h:25,s:3 0003bbf0: 32 2c 6c 3a 36 35 7d 2c 7b 68 3a 33 30 2c 73 3a 2,l:65},{h:30,s: 0003bc00: 33 32 2c 65 3a 5b 32 33 5d 2c 6c 3a 31 32 37 7d 32,e:[23],l:127} 0003bc10: 2c 7b 68 3a 35 34 2c 73 3a 31 2c 65 3a 5b 34 38 ,{h:54,s:1,e:[48 0003bc20: 5d 2c 6c 3a 36 34 2c 64 3a 32 7d 2c 7b 68 3a 31 ],l:64,d:2},{h:1 0003bc30: 34 2c 73 3a 31 2c 6c 3a 35 37 2c 64 3a 32 7d 2c 4,s:1,l:57,d:2}, 0003bc40: 7b 68 3a 34 34 2c 73 3a 31 2c 6c 3a 31 37 2c 64 {h:44,s:1,l:17,d 0003bc50: 3a 32 7d 2c 7b 68 3a 31 30 2c 73 3a 31 2c 65 3a :2},{h:10,s:1,e: 0003bc60: 5b 32 2c 36 2c 38 5d 2c 6c 3a 36 31 2c 64 3a 32 [2,6,8],l:61,d:2 0003bc70: 7d 2c 7b 68 3a 31 36 2c 73 3a 31 2c 6c 3a 36 38 },{h:16,s:1,l:68 0003bc80: 2c 64 3a 32 7d 2c 7b 68 3a 38 34 2c 73 3a 31 2c ,d:2},{h:84,s:1, 0003bc90: 65 3a 5b 31 38 2c 32 34 2c 36 36 5d 2c 6c 3a 31 e:[18,24,66],l:1 0003bca0: 39 2c 64 3a 32 7d 2c 7b 68 3a 32 36 2c 73 3a 33 9,d:2},{h:26,s:3 0003bcb0: 32 2c 65 3a 5b 31 37 5d 2c 6c 3a 34 33 35 7d 2c 2,e:[17],l:435}, 0003bcc0: 7b 68 3a 32 32 2c 73 3a 31 2c 6c 3a 37 31 2c 64 {h:22,s:1,l:71,d 0003bcd0: 3a 32 7d 2c 7b 68 3a 31 35 2c 73 3a 38 30 2c 6c :2},{h:15,s:80,l 0003bce0: 3a 34 30 7d 2c 7b 68 3a 33 31 2c 73 3a 33 32 2c :40},{h:31,s:32, 0003bcf0: 6c 3a 31 36 7d 2c 7b 68 3a 33 32 2c 73 3a 31 2c l:16},{h:32,s:1, 0003bd00: 6c 3a 38 30 2c 64 3a 32 7d 2c 7b 68 3a 35 32 2c l:80,d:2},{h:52, 0003bd10: 73 3a 31 2c 6c 3a 34 32 2c 64 3a 32 7d 2c 7b 68 s:1,l:42,d:2},{h 0003bd20: 3a 31 32 2c 73 3a 31 2c 6c 3a 35 35 2c 64 3a 32 :12,s:1,l:55,d:2 0003bd30: 7d 2c 7b 68 3a 34 30 2c 73 3a 31 2c 65 3a 5b 33 },{h:40,s:1,e:[3 0003bd40: 38 5d 2c 6c 3a 31 35 2c 64 3a 32 7d 2c 7b 68 3a 8],l:15,d:2},{h: 0003bd50: 31 34 2c 73 3a 31 2c 6c 3a 34 38 2c 64 3a 32 7d 14,s:1,l:48,d:2} 0003bd60: 2c 7b 68 3a 33 37 2c 73 3a 34 38 2c 6c 3a 34 39 ,{h:37,s:48,l:49 0003bd70: 7d 2c 7b 68 3a 31 34 38 2c 73 3a 31 2c 6c 3a 36 },{h:148,s:1,l:6 0003bd80: 33 35 31 2c 64 3a 32 7d 2c 7b 68 3a 38 38 2c 73 351,d:2},{h:88,s 0003bd90: 3a 31 2c 6c 3a 31 36 30 2c 64 3a 32 7d 2c 7b 68 :1,l:160,d:2},{h 0003bda0: 3a 31 35 2c 73 3a 31 36 2c 6c 3a 37 30 34 7d 2c :15,s:16,l:704}, 0003bdb0: 7b 68 3a 32 35 2c 73 3a 32 36 2c 6c 3a 38 35 34 {h:25,s:26,l:854 0003bdc0: 7d 2c 7b 68 3a 32 35 2c 73 3a 33 32 2c 6c 3a 35 },{h:25,s:32,l:5 0003bdd0: 35 39 31 35 7d 2c 7b 68 3a 33 37 2c 73 3a 34 30 5915},{h:37,s:40 0003bde0: 2c 6c 3a 31 32 34 37 7d 2c 7b 68 3a 32 35 2c 73 ,l:1247},{h:25,s 0003bdf0: 3a 2d 31 31 39 37 31 31 2c 6c 3a 35 33 32 34 38 :-119711,l:53248 0003be00: 7d 2c 7b 68 3a 32 35 2c 73 3a 2d 31 31 39 37 36 },{h:25,s:-11976 0003be10: 33 2c 6c 3a 35 32 7d 2c 7b 68 3a 32 35 2c 73 3a 3,l:52},{h:25,s: 0003be20: 2d 31 31 39 38 31 35 2c 6c 3a 35 32 7d 2c 7b 68 -119815,l:52},{h 0003be30: 3a 32 35 2c 73 3a 2d 31 31 39 38 36 37 2c 65 3a :25,s:-119867,e: 0003be40: 5b 31 2c 34 2c 35 2c 37 2c 38 2c 31 31 2c 31 32 [1,4,5,7,8,11,12 0003be50: 2c 31 37 5d 2c 6c 3a 35 32 7d 2c 7b 68 3a 32 35 ,17],l:52},{h:25 0003be60: 2c 73 3a 2d 31 31 39 39 31 39 2c 6c 3a 35 32 7d ,s:-119919,l:52} 0003be70: 2c 7b 68 3a 32 34 2c 73 3a 2d 31 31 39 39 37 31 ,{h:24,s:-119971 0003be80: 2c 65 3a 5b 32 2c 37 2c 38 2c 31 37 5d 2c 6c 3a ,e:[2,7,8,17],l: 0003be90: 35 32 7d 2c 7b 68 3a 32 34 2c 73 3a 2d 31 32 30 52},{h:24,s:-120 0003bea0: 30 32 33 2c 65 3a 5b 32 2c 37 2c 31 33 2c 31 35 023,e:[2,7,13,15 0003beb0: 2c 31 36 2c 31 37 5d 2c 6c 3a 35 32 7d 2c 7b 68 ,16,17],l:52},{h 0003bec0: 3a 32 35 2c 73 3a 2d 31 32 30 30 37 35 2c 6c 3a :25,s:-120075,l: 0003bed0: 35 32 7d 2c 7b 68 3a 32 35 2c 73 3a 2d 31 32 30 52},{h:25,s:-120 0003bee0: 31 32 37 2c 6c 3a 35 32 7d 2c 7b 68 3a 32 35 2c 127,l:52},{h:25, 0003bef0: 73 3a 2d 31 32 30 31 37 39 2c 6c 3a 35 32 7d 2c s:-120179,l:52}, 0003bf00: 7b 68 3a 32 35 2c 73 3a 2d 31 32 30 32 33 31 2c {h:25,s:-120231, 0003bf10: 6c 3a 35 32 7d 2c 7b 68 3a 32 35 2c 73 3a 2d 31 l:52},{h:25,s:-1 0003bf20: 32 30 32 38 33 2c 6c 3a 35 32 7d 2c 7b 68 3a 32 20283,l:52},{h:2 0003bf30: 35 2c 73 3a 2d 31 32 30 33 33 35 2c 6c 3a 35 32 5,s:-120335,l:52 0003bf40: 7d 2c 7b 68 3a 32 34 2c 73 3a 2d 31 31 39 35 34 },{h:24,s:-11954 0003bf50: 33 2c 65 3a 5b 31 37 5d 2c 6c 3a 35 36 7d 2c 7b 3,e:[17],l:56},{ 0003bf60: 68 3a 32 34 2c 73 3a 2d 31 31 39 36 30 31 2c 65 h:24,s:-119601,e 0003bf70: 3a 5b 31 37 5d 2c 6c 3a 35 38 7d 2c 7b 68 3a 32 :[17],l:58},{h:2 0003bf80: 34 2c 73 3a 2d 31 31 39 36 35 39 2c 65 3a 5b 31 4,s:-119659,e:[1 0003bf90: 37 5d 2c 6c 3a 35 38 7d 2c 7b 68 3a 32 34 2c 73 7],l:58},{h:24,s 0003bfa0: 3a 2d 31 31 39 37 31 37 2c 65 3a 5b 31 37 5d 2c :-119717,e:[17], 0003bfb0: 6c 3a 35 38 7d 2c 7b 68 3a 32 34 2c 73 3a 2d 31 l:58},{h:24,s:-1 0003bfc0: 31 39 37 37 35 2c 65 3a 5b 31 37 5d 2c 6c 3a 35 19775,e:[17],l:5 0003bfd0: 38 7d 5d 2c 42 6c 3d 50 6c 28 22 62 35 3a 33 62 8}],Bl=Pl("b5:3b 0003bfe0: 63 2c 63 33 3a 66 66 2c 37 3a 37 33 2c 32 3a 32 c,c3:ff,7:73,2:2 0003bff0: 35 33 2c 35 3a 32 35 34 2c 33 3a 32 35 36 2c 31 53,5:254,3:256,1 0003c000: 3a 32 35 37 2c 35 3a 32 35 39 2c 31 3a 32 35 62 :257,5:259,1:25b 0003c010: 2c 33 3a 32 36 30 2c 31 3a 32 36 33 2c 32 3a 32 ,3:260,1:263,2:2 0003c020: 36 39 2c 31 3a 32 36 38 2c 35 3a 32 36 66 2c 31 69,1:268,5:26f,1 0003c030: 3a 32 37 32 2c 32 3a 32 37 35 2c 37 3a 32 38 30 :272,2:275,7:280 0003c040: 2c 33 3a 32 38 33 2c 35 3a 32 38 38 2c 33 3a 32 ,3:283,5:288,3:2 0003c050: 38 61 2c 31 3a 32 38 62 2c 35 3a 32 39 32 2c 33 8a,1:28b,5:292,3 0003c060: 66 3a 31 39 35 2c 31 3a 31 62 66 2c 32 39 3a 31 f:195,1:1bf,29:1 0003c070: 39 65 2c 31 32 35 3a 33 62 39 2c 38 62 3a 33 62 9e,125:3b9,8b:3b 0003c080: 32 2c 31 3a 33 62 38 2c 31 3a 33 63 35 2c 33 3a 2,1:3b8,1:3c5,3: 0003c090: 33 63 36 2c 31 3a 33 63 30 2c 31 61 3a 33 62 61 3c6,1:3c0,1a:3ba 0003c0a0: 2c 31 3a 33 63 31 2c 31 3a 33 63 33 2c 32 3a 33 ,1:3c1,1:3c3,2:3 0003c0b0: 62 38 2c 31 3a 33 62 35 2c 31 62 63 39 3a 33 62 b8,1:3b5,1bc9:3b 0003c0c0: 39 2c 31 63 3a 31 66 37 36 2c 31 3a 31 66 37 37 9,1c:1f76,1:1f77 0003c0d0: 2c 66 3a 31 66 37 61 2c 31 3a 31 66 37 62 2c 64 ,f:1f7a,1:1f7b,d 0003c0e0: 3a 31 66 37 38 2c 31 3a 31 66 37 39 2c 31 3a 31 :1f78,1:1f79,1:1 0003c0f0: 66 37 63 2c 31 3a 31 66 37 64 2c 31 30 37 3a 36 f7c,1:1f7d,107:6 0003c100: 33 2c 35 3a 32 35 62 2c 34 3a 36 38 2c 31 3a 36 3,5:25b,4:68,1:6 0003c110: 38 2c 31 3a 36 38 2c 33 3a 36 39 2c 31 3a 36 39 8,1:68,3:69,1:69 0003c120: 2c 31 3a 36 63 2c 33 3a 36 65 2c 34 3a 37 30 2c ,1:6c,3:6e,4:70, 0003c130: 31 3a 37 31 2c 31 3a 37 32 2c 31 3a 37 32 2c 31 1:71,1:72,1:72,1 0003c140: 3a 37 32 2c 37 3a 37 61 2c 32 3a 33 63 39 2c 32 :72,7:7a,2:3c9,2 0003c150: 3a 37 61 2c 32 3a 36 62 2c 31 3a 65 35 2c 31 3a :7a,2:6b,1:e5,1: 0003c160: 36 32 2c 31 3a 36 33 2c 33 3a 36 35 2c 31 3a 36 62,1:63,3:65,1:6 0003c170: 36 2c 32 3a 36 64 2c 62 3a 33 62 33 2c 31 3a 33 6,2:6d,b:3b3,1:3 0003c180: 63 30 2c 36 3a 36 34 2c 31 62 35 37 34 3a 33 62 c0,6:64,1b574:3b 0003c190: 38 2c 31 61 3a 33 63 33 2c 32 30 3a 33 62 38 2c 8,1a:3c3,20:3b8, 0003c1a0: 31 61 3a 33 63 33 2c 32 30 3a 33 62 38 2c 31 61 1a:3c3,20:3b8,1a 0003c1b0: 3a 33 63 33 2c 32 30 3a 33 62 38 2c 31 61 3a 33 :3c3,20:3b8,1a:3 0003c1c0: 63 33 2c 32 30 3a 33 62 38 2c 31 61 3a 33 63 33 c3,20:3b8,1a:3c3 0003c1d0: 22 29 2c 6a 6c 3d 50 6c 28 22 31 37 39 3a 31 2c "),jl=Pl("179:1, 0003c1e0: 32 3a 31 2c 32 3a 31 2c 35 3a 31 2c 32 3a 31 2c 2:1,2:1,5:1,2:1, 0003c1f0: 61 3a 34 66 2c 61 3a 31 2c 38 3a 31 2c 32 3a 31 a:4f,a:1,8:1,2:1 0003c200: 2c 32 3a 31 2c 33 3a 31 2c 35 3a 31 2c 33 3a 31 ,2:1,3:1,5:1,3:1 0003c210: 2c 34 3a 31 2c 32 3a 31 2c 33 3a 31 2c 34 3a 31 ,4:1,2:1,3:1,4:1 0003c220: 2c 38 3a 32 2c 31 3a 31 2c 32 3a 32 2c 31 3a 31 ,8:2,1:1,2:2,1:1 0003c230: 2c 32 3a 32 2c 32 37 3a 32 2c 31 39 35 3a 32 36 ,2:2,27:2,195:26 0003c240: 2c 32 3a 32 35 2c 31 3a 32 35 2c 31 3a 32 35 2c ,2:25,1:25,1:25, 0003c250: 32 3a 34 30 2c 32 3a 33 66 2c 31 3a 33 66 2c 33 2:40,2:3f,1:3f,3 0003c260: 33 3a 31 2c 31 31 3a 2d 36 2c 31 3a 2d 39 2c 31 3:1,11:-6,1:-9,1 0003c270: 61 63 37 3a 2d 33 61 2c 36 64 3a 2d 38 2c 31 3a ac7:-3a,6d:-8,1: 0003c280: 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d -8,1:-8,1:-8,1:- 0003c290: 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 8,1:-8,1:-8,1:-8 0003c2a0: 2c 39 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c ,9:-8,1:-8,1:-8, 0003c2b0: 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 62 1:-8,1:-8,1:-8,b 0003c2c0: 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a :-8,1:-8,1:-8,1: 0003c2d0: 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d -8,1:-8,1:-8,1:- 0003c2e0: 38 2c 31 3a 2d 38 2c 39 3a 2d 38 2c 31 3a 2d 38 8,1:-8,9:-8,1:-8 0003c2f0: 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c ,1:-8,1:-8,1:-8, 0003c300: 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 39 1:-8,1:-8,1:-8,9 0003c310: 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a :-8,1:-8,1:-8,1: 0003c320: 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 63 3a 2d -8,1:-8,1:-8,c:- 0003c330: 38 2c 32 3a 2d 38 2c 32 3a 2d 38 2c 32 3a 2d 38 8,2:-8,2:-8,2:-8 0003c340: 2c 39 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c ,9:-8,1:-8,1:-8, 0003c350: 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 1:-8,1:-8,1:-8,1 0003c360: 3a 2d 38 2c 31 3a 2d 38 2c 34 39 3a 2d 38 2c 31 :-8,1:-8,49:-8,1 0003c370: 3a 2d 38 2c 31 3a 2d 34 61 2c 31 3a 2d 34 61 2c :-8,1:-4a,1:-4a, 0003c380: 64 3a 2d 35 36 2c 31 3a 2d 35 36 2c 31 3a 2d 35 d:-56,1:-56,1:-5 0003c390: 36 2c 31 3a 2d 35 36 2c 64 3a 2d 38 2c 31 3a 2d 6,1:-56,d:-8,1:- 0003c3a0: 38 2c 66 3a 2d 38 2c 31 3a 2d 38 2c 33 3a 2d 37 8,f:-8,1:-8,3:-7 0003c3b0: 22 29 2c 7a 6c 3d 50 6c 28 22 64 66 3a 30 30 37 "),zl=Pl("df:007 0003c3c0: 33 30 30 37 33 2c 35 31 3a 30 30 36 39 30 33 30 30073,51:0069030 0003c3d0: 37 2c 31 39 3a 30 32 42 43 30 30 36 45 2c 61 37 7,19:02BC006E,a7 0003c3e0: 3a 30 30 36 41 30 33 30 43 2c 31 38 61 3a 30 30 :006A030C,18a:00 0003c3f0: 32 30 30 33 42 39 2c 31 36 3a 30 33 42 39 30 33 2003B9,16:03B903 0003c400: 30 38 30 33 30 31 2c 32 30 3a 30 33 43 35 30 33 080301,20:03C503 0003c410: 30 38 30 33 30 31 2c 31 64 37 3a 30 35 36 35 30 080301,1d7:05650 0003c420: 35 38 32 2c 31 39 30 66 3a 30 30 36 38 30 33 33 582,190f:0068033 0003c430: 31 2c 31 3a 30 30 37 34 30 33 30 38 2c 31 3a 30 1,1:00740308,1:0 0003c440: 30 37 37 30 33 30 41 2c 31 3a 30 30 37 39 30 33 077030A,1:007903 0003c450: 30 41 2c 31 3a 30 30 36 31 30 32 42 45 2c 62 36 0A,1:006102BE,b6 0003c460: 3a 30 33 43 35 30 33 31 33 2c 32 3a 30 33 43 35 :03C50313,2:03C5 0003c470: 30 33 31 33 30 33 30 30 2c 32 3a 30 33 43 35 30 03130300,2:03C50 0003c480: 33 31 33 30 33 30 31 2c 32 3a 30 33 43 35 30 33 3130301,2:03C503 0003c490: 31 33 30 33 34 32 2c 32 61 3a 31 46 30 30 30 33 130342,2a:1F0003 0003c4a0: 42 39 2c 31 3a 31 46 30 31 30 33 42 39 2c 31 3a B9,1:1F0103B9,1: 0003c4b0: 31 46 30 32 30 33 42 39 2c 31 3a 31 46 30 33 30 1F0203B9,1:1F030 0003c4c0: 33 42 39 2c 31 3a 31 46 30 34 30 33 42 39 2c 31 3B9,1:1F0403B9,1 0003c4d0: 3a 31 46 30 35 30 33 42 39 2c 31 3a 31 46 30 36 :1F0503B9,1:1F06 0003c4e0: 30 33 42 39 2c 31 3a 31 46 30 37 30 33 42 39 2c 03B9,1:1F0703B9, 0003c4f0: 31 3a 31 46 30 30 30 33 42 39 2c 31 3a 31 46 30 1:1F0003B9,1:1F0 0003c500: 31 30 33 42 39 2c 31 3a 31 46 30 32 30 33 42 39 103B9,1:1F0203B9 0003c510: 2c 31 3a 31 46 30 33 30 33 42 39 2c 31 3a 31 46 ,1:1F0303B9,1:1F 0003c520: 30 34 30 33 42 39 2c 31 3a 31 46 30 35 30 33 42 0403B9,1:1F0503B 0003c530: 39 2c 31 3a 31 46 30 36 30 33 42 39 2c 31 3a 31 9,1:1F0603B9,1:1 0003c540: 46 30 37 30 33 42 39 2c 31 3a 31 46 32 30 30 33 F0703B9,1:1F2003 0003c550: 42 39 2c 31 3a 31 46 32 31 30 33 42 39 2c 31 3a B9,1:1F2103B9,1: 0003c560: 31 46 32 32 30 33 42 39 2c 31 3a 31 46 32 33 30 1F2203B9,1:1F230 0003c570: 33 42 39 2c 31 3a 31 46 32 34 30 33 42 39 2c 31 3B9,1:1F2403B9,1 0003c580: 3a 31 46 32 35 30 33 42 39 2c 31 3a 31 46 32 36 :1F2503B9,1:1F26 0003c590: 30 33 42 39 2c 31 3a 31 46 32 37 30 33 42 39 2c 03B9,1:1F2703B9, 0003c5a0: 31 3a 31 46 32 30 30 33 42 39 2c 31 3a 31 46 32 1:1F2003B9,1:1F2 0003c5b0: 31 30 33 42 39 2c 31 3a 31 46 32 32 30 33 42 39 103B9,1:1F2203B9 0003c5c0: 2c 31 3a 31 46 32 33 30 33 42 39 2c 31 3a 31 46 ,1:1F2303B9,1:1F 0003c5d0: 32 34 30 33 42 39 2c 31 3a 31 46 32 35 30 33 42 2403B9,1:1F2503B 0003c5e0: 39 2c 31 3a 31 46 32 36 30 33 42 39 2c 31 3a 31 9,1:1F2603B9,1:1 0003c5f0: 46 32 37 30 33 42 39 2c 31 3a 31 46 36 30 30 33 F2703B9,1:1F6003 0003c600: 42 39 2c 31 3a 31 46 36 31 30 33 42 39 2c 31 3a B9,1:1F6103B9,1: 0003c610: 31 46 36 32 30 33 42 39 2c 31 3a 31 46 36 33 30 1F6203B9,1:1F630 0003c620: 33 42 39 2c 31 3a 31 46 36 34 30 33 42 39 2c 31 3B9,1:1F6403B9,1 0003c630: 3a 31 46 36 35 30 33 42 39 2c 31 3a 31 46 36 36 :1F6503B9,1:1F66 0003c640: 30 33 42 39 2c 31 3a 31 46 36 37 30 33 42 39 2c 03B9,1:1F6703B9, 0003c650: 31 3a 31 46 36 30 30 33 42 39 2c 31 3a 31 46 36 1:1F6003B9,1:1F6 0003c660: 31 30 33 42 39 2c 31 3a 31 46 36 32 30 33 42 39 103B9,1:1F6203B9 0003c670: 2c 31 3a 31 46 36 33 30 33 42 39 2c 31 3a 31 46 ,1:1F6303B9,1:1F 0003c680: 36 34 30 33 42 39 2c 31 3a 31 46 36 35 30 33 42 6403B9,1:1F6503B 0003c690: 39 2c 31 3a 31 46 36 36 30 33 42 39 2c 31 3a 31 9,1:1F6603B9,1:1 0003c6a0: 46 36 37 30 33 42 39 2c 33 3a 31 46 37 30 30 33 F6703B9,3:1F7003 0003c6b0: 42 39 2c 31 3a 30 33 42 31 30 33 42 39 2c 31 3a B9,1:03B103B9,1: 0003c6c0: 30 33 41 43 30 33 42 39 2c 32 3a 30 33 42 31 30 03AC03B9,2:03B10 0003c6d0: 33 34 32 2c 31 3a 30 33 42 31 30 33 34 32 30 33 342,1:03B1034203 0003c6e0: 42 39 2c 35 3a 30 33 42 31 30 33 42 39 2c 36 3a B9,5:03B103B9,6: 0003c6f0: 31 46 37 34 30 33 42 39 2c 31 3a 30 33 42 37 30 1F7403B9,1:03B70 0003c700: 33 42 39 2c 31 3a 30 33 41 45 30 33 42 39 2c 32 3B9,1:03AE03B9,2 0003c710: 3a 30 33 42 37 30 33 34 32 2c 31 3a 30 33 42 37 :03B70342,1:03B7 0003c720: 30 33 34 32 30 33 42 39 2c 35 3a 30 33 42 37 30 034203B9,5:03B70 0003c730: 33 42 39 2c 36 3a 30 33 42 39 30 33 30 38 30 33 3B9,6:03B9030803 0003c740: 30 30 2c 31 3a 30 33 42 39 30 33 30 38 30 33 30 00,1:03B90308030 0003c750: 31 2c 33 3a 30 33 42 39 30 33 34 32 2c 31 3a 30 1,3:03B90342,1:0 0003c760: 33 42 39 30 33 30 38 30 33 34 32 2c 62 3a 30 33 3B903080342,b:03 0003c770: 43 35 30 33 30 38 30 33 30 30 2c 31 3a 30 33 43 C503080300,1:03C 0003c780: 35 30 33 30 38 30 33 30 31 2c 31 3a 30 33 43 31 503080301,1:03C1 0003c790: 30 33 31 33 2c 32 3a 30 33 43 35 30 33 34 32 2c 0313,2:03C50342, 0003c7a0: 31 3a 30 33 43 35 30 33 30 38 30 33 34 32 2c 62 1:03C503080342,b 0003c7b0: 3a 31 46 37 43 30 33 42 39 2c 31 3a 30 33 43 39 :1F7C03B9,1:03C9 0003c7c0: 30 33 42 39 2c 31 3a 30 33 43 45 30 33 42 39 2c 03B9,1:03CE03B9, 0003c7d0: 32 3a 30 33 43 39 30 33 34 32 2c 31 3a 30 33 43 2:03C90342,1:03C 0003c7e0: 39 30 33 34 32 30 33 42 39 2c 35 3a 30 33 43 39 9034203B9,5:03C9 0003c7f0: 30 33 42 39 2c 61 63 3a 30 30 37 32 30 30 37 33 03B9,ac:00720073 0003c800: 2c 35 62 3a 30 30 42 30 30 30 36 33 2c 36 3a 30 ,5b:00B00063,6:0 0003c810: 30 42 30 30 30 36 36 2c 64 3a 30 30 36 45 30 30 0B00066,d:006E00 0003c820: 36 46 2c 61 3a 30 30 37 33 30 30 36 44 2c 31 3a 6F,a:0073006D,1: 0003c830: 30 30 37 34 30 30 36 35 30 30 36 43 2c 31 3a 30 00740065006C,1:0 0003c840: 30 37 34 30 30 36 44 2c 31 32 34 66 3a 30 30 36 074006D,124f:006 0003c850: 38 30 30 37 30 30 30 36 31 2c 32 3a 30 30 36 31 800700061,2:0061 0003c860: 30 30 37 35 2c 32 3a 30 30 36 46 30 30 37 36 2c 0075,2:006F0076, 0003c870: 62 3a 30 30 37 30 30 30 36 31 2c 31 3a 30 30 36 b:00700061,1:006 0003c880: 45 30 30 36 31 2c 31 3a 30 33 42 43 30 30 36 31 E0061,1:03BC0061 0003c890: 2c 31 3a 30 30 36 44 30 30 36 31 2c 31 3a 30 30 ,1:006D0061,1:00 0003c8a0: 36 42 30 30 36 31 2c 31 3a 30 30 36 42 30 30 36 6B0061,1:006B006 0003c8b0: 32 2c 31 3a 30 30 36 44 30 30 36 32 2c 31 3a 30 2,1:006D0062,1:0 0003c8c0: 30 36 37 30 30 36 32 2c 33 3a 30 30 37 30 30 30 0670062,3:007000 0003c8d0: 36 36 2c 31 3a 30 30 36 45 30 30 36 36 2c 31 3a 66,1:006E0066,1: 0003c8e0: 30 33 42 43 30 30 36 36 2c 34 3a 30 30 36 38 30 03BC0066,4:00680 0003c8f0: 30 37 41 2c 31 3a 30 30 36 42 30 30 36 38 30 30 07A,1:006B006800 0003c900: 37 41 2c 31 3a 30 30 36 44 30 30 36 38 30 30 37 7A,1:006D0068007 0003c910: 41 2c 31 3a 30 30 36 37 30 30 36 38 30 30 37 41 A,1:00670068007A 0003c920: 2c 31 3a 30 30 37 34 30 30 36 38 30 30 37 41 2c ,1:00740068007A, 0003c930: 31 35 3a 30 30 37 30 30 30 36 31 2c 31 3a 30 30 15:00700061,1:00 0003c940: 36 42 30 30 37 30 30 30 36 31 2c 31 3a 30 30 36 6B00700061,1:006 0003c950: 44 30 30 37 30 30 30 36 31 2c 31 3a 30 30 36 37 D00700061,1:0067 0003c960: 30 30 37 30 30 30 36 31 2c 38 3a 30 30 37 30 30 00700061,8:00700 0003c970: 30 37 36 2c 31 3a 30 30 36 45 30 30 37 36 2c 31 076,1:006E0076,1 0003c980: 3a 30 33 42 43 30 30 37 36 2c 31 3a 30 30 36 44 :03BC0076,1:006D 0003c990: 30 30 37 36 2c 31 3a 30 30 36 42 30 30 37 36 2c 0076,1:006B0076, 0003c9a0: 31 3a 30 30 36 44 30 30 37 36 2c 31 3a 30 30 37 1:006D0076,1:007 0003c9b0: 30 30 30 37 37 2c 31 3a 30 30 36 45 30 30 37 37 00077,1:006E0077 0003c9c0: 2c 31 3a 30 33 42 43 30 30 37 37 2c 31 3a 30 30 ,1:03BC0077,1:00 0003c9d0: 36 44 30 30 37 37 2c 31 3a 30 30 36 42 30 30 37 6D0077,1:006B007 0003c9e0: 37 2c 31 3a 30 30 36 44 30 30 37 37 2c 31 3a 30 7,1:006D0077,1:0 0003c9f0: 30 36 42 30 33 43 39 2c 31 3a 30 30 36 44 30 33 06B03C9,1:006D03 0003ca00: 43 39 2c 32 3a 30 30 36 32 30 30 37 31 2c 33 3a C9,2:00620071,3: 0003ca10: 30 30 36 33 32 32 31 35 30 30 36 42 30 30 36 37 00632215006B0067 0003ca20: 2c 31 3a 30 30 36 33 30 30 36 46 30 30 32 45 2c ,1:0063006F002E, 0003ca30: 31 3a 30 30 36 34 30 30 36 32 2c 31 3a 30 30 36 1:00640062,1:006 0003ca40: 37 30 30 37 39 2c 32 3a 30 30 36 38 30 30 37 30 70079,2:00680070 0003ca50: 2c 32 3a 30 30 36 42 30 30 36 42 2c 31 3a 30 30 ,2:006B006B,1:00 0003ca60: 36 42 30 30 36 44 2c 39 3a 30 30 37 30 30 30 36 6B006D,9:0070006 0003ca70: 38 2c 32 3a 30 30 37 30 30 30 37 30 30 30 36 44 8,2:00700070006D 0003ca80: 2c 31 3a 30 30 37 30 30 30 37 32 2c 32 3a 30 30 ,1:00700072,2:00 0003ca90: 37 33 30 30 37 36 2c 31 3a 30 30 37 37 30 30 36 730076,1:0077006 0003caa0: 32 2c 63 37 32 33 3a 30 30 36 36 30 30 36 36 2c 2,c723:00660066, 0003cab0: 31 3a 30 30 36 36 30 30 36 39 2c 31 3a 30 30 36 1:00660069,1:006 0003cac0: 36 30 30 36 43 2c 31 3a 30 30 36 36 30 30 36 36 6006C,1:00660066 0003cad0: 30 30 36 39 2c 31 3a 30 30 36 36 30 30 36 36 30 0069,1:006600660 0003cae0: 30 36 43 2c 31 3a 30 30 37 33 30 30 37 34 2c 31 06C,1:00730074,1 0003caf0: 3a 30 30 37 33 30 30 37 34 2c 64 3a 30 35 37 34 :00730074,d:0574 0003cb00: 30 35 37 36 2c 31 3a 30 35 37 34 30 35 36 35 2c 0576,1:05740565, 0003cb10: 31 3a 30 35 37 34 30 35 36 42 2c 31 3a 30 35 37 1:0574056B,1:057 0003cb20: 45 30 35 37 36 2c 31 3a 30 35 37 34 30 35 36 44 E0576,1:0574056D 0003cb30: 22 2c 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b 69 ",(function(e){i 0003cb40: 66 28 65 2e 6c 65 6e 67 74 68 25 34 21 3d 30 29 f(e.length%4!=0) 0003cb50: 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 throw new Error( 0003cb60: 22 62 61 64 20 64 61 74 61 22 29 3b 6c 65 74 20 "bad data");let 0003cb70: 74 3d 5b 5d 3b 66 6f 72 28 6c 65 74 20 6e 3d 30 t=[];for(let n=0 0003cb80: 3b 6e 3c 65 2e 6c 65 6e 67 74 68 3b 6e 2b 3d 34 ;n<e.length;n+=4 0003cb90: 29 74 2e 70 75 73 68 28 70 61 72 73 65 49 6e 74 )t.push(parseInt 0003cba0: 28 65 2e 73 75 62 73 74 72 69 6e 67 28 6e 2c 6e (e.substring(n,n 0003cbb0: 2b 34 29 2c 31 36 29 29 3b 72 65 74 75 72 6e 20 +4),16));return 0003cbc0: 74 7d 29 29 2c 47 6c 3d 4d 6c 28 22 38 30 2d 32 t})),Gl=Ml("80-2 0003cbd0: 30 2c 32 61 30 2d 2c 33 39 63 2c 33 32 2c 66 37 0,2a0-,39c,32,f7 0003cbe0: 31 2c 31 38 65 2c 37 66 32 2d 66 2c 31 39 2d 37 1,18e,7f2-f,19-7 0003cbf0: 2c 33 30 2d 34 2c 37 2d 35 2c 66 38 31 2d 62 2c ,30-4,7-5,f81-b, 0003cc00: 35 2c 61 38 30 30 2d 32 30 66 66 2c 34 64 31 2d 5,a800-20ff,4d1- 0003cc10: 31 66 2c 31 31 30 2c 66 61 2d 36 2c 64 31 37 34 1f,110,fa-6,d174 0003cc20: 2d 37 2c 32 65 38 34 2d 2c 66 66 66 66 2d 2c 66 -7,2e84-,ffff-,f 0003cc30: 66 66 66 2d 2c 66 66 66 66 2d 2c 66 66 66 66 2d fff-,ffff-,ffff- 0003cc40: 2c 66 66 66 66 2d 2c 66 66 66 66 2d 2c 66 66 66 ,ffff-,ffff-,fff 0003cc50: 66 2d 2c 66 66 66 66 2d 2c 66 66 66 66 2d 2c 66 f-,ffff-,ffff-,f 0003cc60: 66 66 66 2d 2c 66 66 66 66 2d 2c 66 66 66 66 2d fff-,ffff-,ffff- 0003cc70: 2c 32 2c 31 66 2d 35 66 2c 66 66 37 66 2d 32 30 ,2,1f-5f,ff7f-20 0003cc80: 30 30 31 22 29 3b 66 75 6e 63 74 69 6f 6e 20 48 001");function H 0003cc90: 6c 28 65 29 7b 69 66 28 65 2e 6d 61 74 63 68 28 l(e){if(e.match( 0003cca0: 2f 5e 5b 61 2d 7a 30 2d 39 2d 5d 2a 24 2f 69 29 /^[a-z0-9-]*$/i) 0003ccb0: 26 26 65 2e 6c 65 6e 67 74 68 3c 3d 35 39 29 72 &&e.length<=59)r 0003ccc0: 65 74 75 72 6e 20 65 2e 74 6f 4c 6f 77 65 72 43 eturn e.toLowerC 0003ccd0: 61 73 65 28 29 3b 6c 65 74 20 74 3d 5a 65 28 65 ase();let t=Ze(e 0003cce0: 29 3b 76 61 72 20 6e 3b 6e 3d 74 2e 6d 61 70 28 );var n;n=t.map( 0003ccf0: 28 65 3d 3e 7b 69 66 28 46 6c 2e 69 6e 64 65 78 (e=>{if(Fl.index 0003cd00: 4f 66 28 65 29 3e 3d 30 29 72 65 74 75 72 6e 5b Of(e)>=0)return[ 0003cd10: 5d 3b 69 66 28 65 3e 3d 36 35 30 32 34 26 26 65 ];if(e>=65024&&e 0003cd20: 3c 3d 36 35 30 33 39 29 72 65 74 75 72 6e 5b 5d <=65039)return[] 0003cd30: 3b 6c 65 74 20 74 3d 66 75 6e 63 74 69 6f 6e 28 ;let t=function( 0003cd40: 65 29 7b 6c 65 74 20 74 3d 44 6c 28 65 2c 55 6c e){let t=Dl(e,Ul 0003cd50: 29 3b 69 66 28 74 29 72 65 74 75 72 6e 5b 65 2b );if(t)return[e+ 0003cd60: 74 2e 73 5d 3b 6c 65 74 20 6e 3d 42 6c 5b 65 5d t.s];let n=Bl[e] 0003cd70: 3b 69 66 28 6e 29 72 65 74 75 72 6e 20 6e 3b 6c ;if(n)return n;l 0003cd80: 65 74 20 72 3d 6a 6c 5b 65 5d 3b 72 65 74 75 72 et r=jl[e];retur 0003cd90: 6e 20 72 3f 5b 65 2b 72 5b 30 5d 5d 3a 7a 6c 5b n r?[e+r[0]]:zl[ 0003cda0: 65 5d 7c 7c 6e 75 6c 6c 7d 28 65 29 3b 72 65 74 e]||null}(e);ret 0003cdb0: 75 72 6e 20 74 7c 7c 5b 65 5d 7d 29 29 2c 74 3d urn t||[e]})),t= 0003cdc0: 6e 2e 72 65 64 75 63 65 28 28 28 65 2c 74 29 3d n.reduce(((e,t)= 0003cdd0: 3e 28 74 2e 66 6f 72 45 61 63 68 28 28 74 3d 3e >(t.forEach((t=> 0003cde0: 7b 65 2e 70 75 73 68 28 74 29 7d 29 29 2c 65 29 {e.push(t)})),e) 0003cdf0: 29 2c 5b 5d 29 2c 74 3d 5a 65 28 59 65 28 74 29 ),[]),t=Ze(Ye(t) 0003ce00: 2c 6a 65 2e 4e 46 4b 43 29 2c 74 2e 66 6f 72 45 ,je.NFKC),t.forE 0003ce10: 61 63 68 28 28 65 3d 3e 7b 69 66 28 44 6c 28 65 ach((e=>{if(Dl(e 0003ce20: 2c 47 6c 29 29 74 68 72 6f 77 20 6e 65 77 20 45 ,Gl))throw new E 0003ce30: 72 72 6f 72 28 22 53 54 52 49 4e 47 50 52 45 50 rror("STRINGPREP 0003ce40: 5f 43 4f 4e 54 41 49 4e 53 5f 50 52 4f 48 49 42 _CONTAINS_PROHIB 0003ce50: 49 54 45 44 22 29 7d 29 29 2c 74 2e 66 6f 72 45 ITED")})),t.forE 0003ce60: 61 63 68 28 28 65 3d 3e 7b 69 66 28 44 6c 28 65 ach((e=>{if(Dl(e 0003ce70: 2c 4c 6c 29 29 74 68 72 6f 77 20 6e 65 77 20 45 ,Ll))throw new E 0003ce80: 72 72 6f 72 28 22 53 54 52 49 4e 47 50 52 45 50 rror("STRINGPREP 0003ce90: 5f 43 4f 4e 54 41 49 4e 53 5f 55 4e 41 53 53 49 _CONTAINS_UNASSI 0003cea0: 47 4e 45 44 22 29 7d 29 29 3b 6c 65 74 20 72 3d GNED")}));let r= 0003ceb0: 59 65 28 74 29 3b 69 66 28 22 2d 22 3d 3d 3d 72 Ye(t);if("-"===r 0003cec0: 2e 73 75 62 73 74 72 69 6e 67 28 30 2c 31 29 7c .substring(0,1)| 0003ced0: 7c 22 2d 2d 22 3d 3d 3d 72 2e 73 75 62 73 74 72 |"--"===r.substr 0003cee0: 69 6e 67 28 32 2c 34 29 7c 7c 22 2d 22 3d 3d 3d ing(2,4)||"-"=== 0003cef0: 72 2e 73 75 62 73 74 72 69 6e 67 28 72 2e 6c 65 r.substring(r.le 0003cf00: 6e 67 74 68 2d 31 29 29 74 68 72 6f 77 20 6e 65 ngth-1))throw ne 0003cf10: 77 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 w Error("invalid 0003cf20: 20 68 79 70 68 65 6e 22 29 3b 72 65 74 75 72 6e hyphen");return 0003cf30: 20 72 7d 66 75 6e 63 74 69 6f 6e 20 56 6c 28 65 r}function Vl(e 0003cf40: 29 7b 63 6f 6e 73 74 20 74 3d 71 65 28 65 29 3b ){const t=qe(e); 0003cf50: 69 66 28 74 2e 6c 65 6e 67 74 68 3e 33 31 29 74 if(t.length>31)t 0003cf60: 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 hrow new Error(" 0003cf70: 62 79 74 65 73 33 32 20 73 74 72 69 6e 67 20 6d bytes32 string m 0003cf80: 75 73 74 20 62 65 20 6c 65 73 73 20 74 68 61 6e ust be less than 0003cf90: 20 33 32 20 62 79 74 65 73 22 29 3b 72 65 74 75 32 bytes");retu 0003cfa0: 72 6e 20 52 28 43 28 5b 74 2c 4f 69 5d 29 2e 73 rn R(C([t,Oi]).s 0003cfb0: 6c 69 63 65 28 30 2c 33 32 29 29 7d 66 75 6e 63 lice(0,32))}func 0003cfc0: 74 69 6f 6e 20 71 6c 28 65 29 7b 63 6f 6e 73 74 tion ql(e){const 0003cfd0: 20 74 3d 54 28 65 29 3b 69 66 28 33 32 21 3d 3d t=T(e);if(32!== 0003cfe0: 74 2e 6c 65 6e 67 74 68 29 74 68 72 6f 77 20 6e t.length)throw n 0003cff0: 65 77 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 ew Error("invali 0003d000: 64 20 62 79 74 65 73 33 32 20 2d 20 6e 6f 74 20 d bytes32 - not 0003d010: 33 32 20 62 79 74 65 73 20 6c 6f 6e 67 22 29 3b 32 bytes long"); 0003d020: 69 66 28 30 21 3d 3d 74 5b 33 31 5d 29 74 68 72 if(0!==t[31])thr 0003d030: 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e ow new Error("in 0003d040: 76 61 6c 69 64 20 62 79 74 65 73 33 32 20 73 74 valid bytes32 st 0003d050: 72 69 6e 67 20 2d 20 6e 6f 20 6e 75 6c 6c 20 74 ring - no null t 0003d060: 65 72 6d 69 6e 61 74 6f 72 22 29 3b 6c 65 74 20 erminator");let 0003d070: 6e 3d 33 31 3b 66 6f 72 28 3b 30 3d 3d 3d 74 5b n=31;for(;0===t[ 0003d080: 6e 2d 31 5d 3b 29 6e 2d 2d 3b 72 65 74 75 72 6e n-1];)n--;return 0003d090: 20 58 65 28 74 2e 73 6c 69 63 65 28 30 2c 6e 29 Xe(t.slice(0,n) 0003d0a0: 29 7d 63 6f 6e 73 74 20 57 6c 3d 6e 65 77 20 79 )}const Wl=new y 0003d0b0: 28 22 75 6e 69 74 73 2f 35 2e 37 2e 30 22 29 2c ("units/5.7.0"), 0003d0c0: 4b 6c 3d 5b 22 77 65 69 22 2c 22 6b 77 65 69 22 Kl=["wei","kwei" 0003d0d0: 2c 22 6d 77 65 69 22 2c 22 67 77 65 69 22 2c 22 ,"mwei","gwei"," 0003d0e0: 73 7a 61 62 6f 22 2c 22 66 69 6e 6e 65 79 22 2c szabo","finney", 0003d0f0: 22 65 74 68 65 72 22 5d 3b 66 75 6e 63 74 69 6f "ether"];functio 0003d100: 6e 20 59 6c 28 65 29 7b 63 6f 6e 73 74 20 74 3d n Yl(e){const t= 0003d110: 53 74 72 69 6e 67 28 65 29 2e 73 70 6c 69 74 28 String(e).split( 0003d120: 22 2e 22 29 3b 28 74 2e 6c 65 6e 67 74 68 3e 32 ".");(t.length>2 0003d130: 7c 7c 21 74 5b 30 5d 2e 6d 61 74 63 68 28 2f 5e ||!t[0].match(/^ 0003d140: 2d 3f 5b 30 2d 39 5d 2a 24 2f 29 7c 7c 74 5b 31 -?[0-9]*$/)||t[1 0003d150: 5d 26 26 21 74 5b 31 5d 2e 6d 61 74 63 68 28 2f ]&&!t[1].match(/ 0003d160: 5e 5b 30 2d 39 5d 2a 24 2f 29 7c 7c 22 2e 22 3d ^[0-9]*$/)||"."= 0003d170: 3d 3d 65 7c 7c 22 2d 2e 22 3d 3d 3d 65 29 26 26 ==e||"-."===e)&& 0003d180: 57 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Wl.throwArgument 0003d190: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 76 Error("invalid v 0003d1a0: 61 6c 75 65 22 2c 22 76 61 6c 75 65 22 2c 65 29 alue","value",e) 0003d1b0: 3b 6c 65 74 20 6e 3d 74 5b 30 5d 2c 72 3d 22 22 ;let n=t[0],r="" 0003d1c0: 3b 66 6f 72 28 22 2d 22 3d 3d 3d 6e 2e 73 75 62 ;for("-"===n.sub 0003d1d0: 73 74 72 69 6e 67 28 30 2c 31 29 26 26 28 72 3d string(0,1)&&(r= 0003d1e0: 22 2d 22 2c 6e 3d 6e 2e 73 75 62 73 74 72 69 6e "-",n=n.substrin 0003d1f0: 67 28 31 29 29 3b 22 30 22 3d 3d 3d 6e 2e 73 75 g(1));"0"===n.su 0003d200: 62 73 74 72 69 6e 67 28 30 2c 31 29 3b 29 6e 3d bstring(0,1);)n= 0003d210: 6e 2e 73 75 62 73 74 72 69 6e 67 28 31 29 3b 22 n.substring(1);" 0003d220: 22 3d 3d 3d 6e 26 26 28 6e 3d 22 30 22 29 3b 6c "===n&&(n="0");l 0003d230: 65 74 20 6f 3d 22 22 3b 66 6f 72 28 32 3d 3d 3d et o="";for(2=== 0003d240: 74 2e 6c 65 6e 67 74 68 26 26 28 6f 3d 22 2e 22 t.length&&(o="." 0003d250: 2b 28 74 5b 31 5d 7c 7c 22 30 22 29 29 3b 6f 2e +(t[1]||"0"));o. 0003d260: 6c 65 6e 67 74 68 3e 32 26 26 22 30 22 3d 3d 3d length>2&&"0"=== 0003d270: 6f 5b 6f 2e 6c 65 6e 67 74 68 2d 31 5d 3b 29 6f o[o.length-1];)o 0003d280: 3d 6f 2e 73 75 62 73 74 72 69 6e 67 28 30 2c 6f =o.substring(0,o 0003d290: 2e 6c 65 6e 67 74 68 2d 31 29 3b 63 6f 6e 73 74 .length-1);const 0003d2a0: 20 69 3d 5b 5d 3b 66 6f 72 28 3b 6e 2e 6c 65 6e i=[];for(;n.len 0003d2b0: 67 74 68 3b 29 7b 69 66 28 6e 2e 6c 65 6e 67 74 gth;){if(n.lengt 0003d2c0: 68 3c 3d 33 29 7b 69 2e 75 6e 73 68 69 66 74 28 h<=3){i.unshift( 0003d2d0: 6e 29 3b 62 72 65 61 6b 7d 7b 63 6f 6e 73 74 20 n);break}{const 0003d2e0: 65 3d 6e 2e 6c 65 6e 67 74 68 2d 33 3b 69 2e 75 e=n.length-3;i.u 0003d2f0: 6e 73 68 69 66 74 28 6e 2e 73 75 62 73 74 72 69 nshift(n.substri 0003d300: 6e 67 28 65 29 29 2c 6e 3d 6e 2e 73 75 62 73 74 ng(e)),n=n.subst 0003d310: 72 69 6e 67 28 30 2c 65 29 7d 7d 72 65 74 75 72 ring(0,e)}}retur 0003d320: 6e 20 72 2b 69 2e 6a 6f 69 6e 28 22 2c 22 29 2b n r+i.join(",")+ 0003d330: 6f 7d 66 75 6e 63 74 69 6f 6e 20 58 6c 28 65 2c o}function Xl(e, 0003d340: 74 29 7b 69 66 28 22 73 74 72 69 6e 67 22 3d 3d t){if("string"== 0003d350: 74 79 70 65 6f 66 20 74 29 7b 63 6f 6e 73 74 20 typeof t){const 0003d360: 65 3d 4b 6c 2e 69 6e 64 65 78 4f 66 28 74 29 3b e=Kl.indexOf(t); 0003d370: 2d 31 21 3d 3d 65 26 26 28 74 3d 33 2a 65 29 7d -1!==e&&(t=3*e)} 0003d380: 72 65 74 75 72 6e 20 56 72 28 65 2c 6e 75 6c 6c return Vr(e,null 0003d390: 21 3d 74 3f 74 3a 31 38 29 7d 66 75 6e 63 74 69 !=t?t:18)}functi 0003d3a0: 6f 6e 20 5a 6c 28 65 2c 74 29 7b 69 66 28 22 73 on Zl(e,t){if("s 0003d3b0: 74 72 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 65 tring"!=typeof e 0003d3c0: 26 26 57 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 &&Wl.throwArgume 0003d3d0: 6e 74 45 72 72 6f 72 28 22 76 61 6c 75 65 20 6d ntError("value m 0003d3e0: 75 73 74 20 62 65 20 61 20 73 74 72 69 6e 67 22 ust be a string" 0003d3f0: 2c 22 76 61 6c 75 65 22 2c 65 29 2c 22 73 74 72 ,"value",e),"str 0003d400: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 74 29 7b ing"==typeof t){ 0003d410: 63 6f 6e 73 74 20 65 3d 4b 6c 2e 69 6e 64 65 78 const e=Kl.index 0003d420: 4f 66 28 74 29 3b 2d 31 21 3d 3d 65 26 26 28 74 Of(t);-1!==e&&(t 0003d430: 3d 33 2a 65 29 7d 72 65 74 75 72 6e 20 71 72 28 =3*e)}return qr( 0003d440: 65 2c 6e 75 6c 6c 21 3d 74 3f 74 3a 31 38 29 7d e,null!=t?t:18)} 0003d450: 66 75 6e 63 74 69 6f 6e 20 51 6c 28 65 29 7b 72 function Ql(e){r 0003d460: 65 74 75 72 6e 20 58 6c 28 65 2c 31 38 29 7d 66 eturn Xl(e,18)}f 0003d470: 75 6e 63 74 69 6f 6e 20 4a 6c 28 65 29 7b 72 65 unction Jl(e){re 0003d480: 74 75 72 6e 20 5a 6c 28 65 2c 31 38 29 7d 63 6f turn Zl(e,18)}co 0003d490: 6e 73 74 20 24 6c 3d 22 65 74 68 65 72 73 2f 35 nst $l="ethers/5 0003d4a0: 2e 37 2e 32 22 2c 65 63 3d 6e 65 77 20 79 28 24 .7.2",ec=new y($ 0003d4b0: 6c 29 3b 74 72 79 7b 63 6f 6e 73 74 20 65 3d 77 l);try{const e=w 0003d4c0: 69 6e 64 6f 77 3b 6e 75 6c 6c 3d 3d 65 2e 5f 65 indow;null==e._e 0003d4d0: 74 68 65 72 73 26 26 28 65 2e 5f 65 74 68 65 72 thers&&(e._ether 0003d4e0: 73 3d 6c 29 7d 63 61 74 63 68 28 65 29 7b 7d 7d s=l)}catch(e){}} 0003d4f0: 2c 32 36 37 32 39 3a 66 75 6e 63 74 69 6f 6e 28 ,26729:function( 0003d500: 65 29 7b 22 75 73 65 20 73 74 72 69 63 74 22 3b e){"use strict"; 0003d510: 76 61 72 20 74 3d 4f 62 6a 65 63 74 2e 70 72 6f var t=Object.pro 0003d520: 74 6f 74 79 70 65 2e 68 61 73 4f 77 6e 50 72 6f totype.hasOwnPro 0003d530: 70 65 72 74 79 2c 6e 3d 22 7e 22 3b 66 75 6e 63 perty,n="~";func 0003d540: 74 69 6f 6e 20 72 28 29 7b 7d 66 75 6e 63 74 69 tion r(){}functi 0003d550: 6f 6e 20 6f 28 65 2c 74 2c 6e 29 7b 74 68 69 73 on o(e,t,n){this 0003d560: 2e 66 6e 3d 65 2c 74 68 69 73 2e 63 6f 6e 74 65 .fn=e,this.conte 0003d570: 78 74 3d 74 2c 74 68 69 73 2e 6f 6e 63 65 3d 6e xt=t,this.once=n 0003d580: 7c 7c 21 31 7d 66 75 6e 63 74 69 6f 6e 20 69 28 ||!1}function i( 0003d590: 65 2c 74 2c 72 2c 69 2c 61 29 7b 69 66 28 22 66 e,t,r,i,a){if("f 0003d5a0: 75 6e 63 74 69 6f 6e 22 21 3d 74 79 70 65 6f 66 unction"!=typeof 0003d5b0: 20 72 29 74 68 72 6f 77 20 6e 65 77 20 54 79 70 r)throw new Typ 0003d5c0: 65 45 72 72 6f 72 28 22 54 68 65 20 6c 69 73 74 eError("The list 0003d5d0: 65 6e 65 72 20 6d 75 73 74 20 62 65 20 61 20 66 ener must be a f 0003d5e0: 75 6e 63 74 69 6f 6e 22 29 3b 76 61 72 20 73 3d unction");var s= 0003d5f0: 6e 65 77 20 6f 28 72 2c 69 7c 7c 65 2c 61 29 2c new o(r,i||e,a), 0003d600: 6c 3d 6e 3f 6e 2b 74 3a 74 3b 72 65 74 75 72 6e l=n?n+t:t;return 0003d610: 20 65 2e 5f 65 76 65 6e 74 73 5b 6c 5d 3f 65 2e e._events[l]?e. 0003d620: 5f 65 76 65 6e 74 73 5b 6c 5d 2e 66 6e 3f 65 2e _events[l].fn?e. 0003d630: 5f 65 76 65 6e 74 73 5b 6c 5d 3d 5b 65 2e 5f 65 _events[l]=[e._e 0003d640: 76 65 6e 74 73 5b 6c 5d 2c 73 5d 3a 65 2e 5f 65 vents[l],s]:e._e 0003d650: 76 65 6e 74 73 5b 6c 5d 2e 70 75 73 68 28 73 29 vents[l].push(s) 0003d660: 3a 28 65 2e 5f 65 76 65 6e 74 73 5b 6c 5d 3d 73 :(e._events[l]=s 0003d670: 2c 65 2e 5f 65 76 65 6e 74 73 43 6f 75 6e 74 2b ,e._eventsCount+ 0003d680: 2b 29 2c 65 7d 66 75 6e 63 74 69 6f 6e 20 61 28 +),e}function a( 0003d690: 65 2c 74 29 7b 30 3d 3d 2d 2d 65 2e 5f 65 76 65 e,t){0==--e._eve 0003d6a0: 6e 74 73 43 6f 75 6e 74 3f 65 2e 5f 65 76 65 6e ntsCount?e._even 0003d6b0: 74 73 3d 6e 65 77 20 72 3a 64 65 6c 65 74 65 20 ts=new r:delete 0003d6c0: 65 2e 5f 65 76 65 6e 74 73 5b 74 5d 7d 66 75 6e e._events[t]}fun 0003d6d0: 63 74 69 6f 6e 20 73 28 29 7b 74 68 69 73 2e 5f ction s(){this._ 0003d6e0: 65 76 65 6e 74 73 3d 6e 65 77 20 72 2c 74 68 69 events=new r,thi 0003d6f0: 73 2e 5f 65 76 65 6e 74 73 43 6f 75 6e 74 3d 30 s._eventsCount=0 0003d700: 7d 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 26 26 }Object.create&& 0003d710: 28 72 2e 70 72 6f 74 6f 74 79 70 65 3d 4f 62 6a (r.prototype=Obj 0003d720: 65 63 74 2e 63 72 65 61 74 65 28 6e 75 6c 6c 29 ect.create(null) 0003d730: 2c 28 6e 65 77 20 72 29 2e 5f 5f 70 72 6f 74 6f ,(new r).__proto 0003d740: 5f 5f 7c 7c 28 6e 3d 21 31 29 29 2c 73 2e 70 72 __||(n=!1)),s.pr 0003d750: 6f 74 6f 74 79 70 65 2e 65 76 65 6e 74 4e 61 6d ototype.eventNam 0003d760: 65 73 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 76 61 es=function(){va 0003d770: 72 20 65 2c 72 2c 6f 3d 5b 5d 3b 69 66 28 30 3d r e,r,o=[];if(0= 0003d780: 3d 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 43 6f ==this._eventsCo 0003d790: 75 6e 74 29 72 65 74 75 72 6e 20 6f 3b 66 6f 72 unt)return o;for 0003d7a0: 28 72 20 69 6e 20 65 3d 74 68 69 73 2e 5f 65 76 (r in e=this._ev 0003d7b0: 65 6e 74 73 29 74 2e 63 61 6c 6c 28 65 2c 72 29 ents)t.call(e,r) 0003d7c0: 26 26 6f 2e 70 75 73 68 28 6e 3f 72 2e 73 6c 69 &&o.push(n?r.sli 0003d7d0: 63 65 28 31 29 3a 72 29 3b 72 65 74 75 72 6e 20 ce(1):r);return 0003d7e0: 4f 62 6a 65 63 74 2e 67 65 74 4f 77 6e 50 72 6f Object.getOwnPro 0003d7f0: 70 65 72 74 79 53 79 6d 62 6f 6c 73 3f 6f 2e 63 pertySymbols?o.c 0003d800: 6f 6e 63 61 74 28 4f 62 6a 65 63 74 2e 67 65 74 oncat(Object.get 0003d810: 4f 77 6e 50 72 6f 70 65 72 74 79 53 79 6d 62 6f OwnPropertySymbo 0003d820: 6c 73 28 65 29 29 3a 6f 7d 2c 73 2e 70 72 6f 74 ls(e)):o},s.prot 0003d830: 6f 74 79 70 65 2e 6c 69 73 74 65 6e 65 72 73 3d otype.listeners= 0003d840: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 76 61 72 20 function(e){var 0003d850: 74 3d 6e 3f 6e 2b 65 3a 65 2c 72 3d 74 68 69 73 t=n?n+e:e,r=this 0003d860: 2e 5f 65 76 65 6e 74 73 5b 74 5d 3b 69 66 28 21 ._events[t];if(! 0003d870: 72 29 72 65 74 75 72 6e 5b 5d 3b 69 66 28 72 2e r)return[];if(r. 0003d880: 66 6e 29 72 65 74 75 72 6e 5b 72 2e 66 6e 5d 3b fn)return[r.fn]; 0003d890: 66 6f 72 28 76 61 72 20 6f 3d 30 2c 69 3d 72 2e for(var o=0,i=r. 0003d8a0: 6c 65 6e 67 74 68 2c 61 3d 6e 65 77 20 41 72 72 length,a=new Arr 0003d8b0: 61 79 28 69 29 3b 6f 3c 69 3b 6f 2b 2b 29 61 5b ay(i);o<i;o++)a[ 0003d8c0: 6f 5d 3d 72 5b 6f 5d 2e 66 6e 3b 72 65 74 75 72 o]=r[o].fn;retur 0003d8d0: 6e 20 61 7d 2c 73 2e 70 72 6f 74 6f 74 79 70 65 n a},s.prototype 0003d8e0: 2e 6c 69 73 74 65 6e 65 72 43 6f 75 6e 74 3d 66 .listenerCount=f 0003d8f0: 75 6e 63 74 69 6f 6e 28 65 29 7b 76 61 72 20 74 unction(e){var t 0003d900: 3d 6e 3f 6e 2b 65 3a 65 2c 72 3d 74 68 69 73 2e =n?n+e:e,r=this. 0003d910: 5f 65 76 65 6e 74 73 5b 74 5d 3b 72 65 74 75 72 _events[t];retur 0003d920: 6e 20 72 3f 72 2e 66 6e 3f 31 3a 72 2e 6c 65 6e n r?r.fn?1:r.len 0003d930: 67 74 68 3a 30 7d 2c 73 2e 70 72 6f 74 6f 74 79 gth:0},s.prototy 0003d940: 70 65 2e 65 6d 69 74 3d 66 75 6e 63 74 69 6f 6e pe.emit=function 0003d950: 28 65 2c 74 2c 72 2c 6f 2c 69 2c 61 29 7b 76 61 (e,t,r,o,i,a){va 0003d960: 72 20 73 3d 6e 3f 6e 2b 65 3a 65 3b 69 66 28 21 r s=n?n+e:e;if(! 0003d970: 74 68 69 73 2e 5f 65 76 65 6e 74 73 5b 73 5d 29 this._events[s]) 0003d980: 72 65 74 75 72 6e 21 31 3b 76 61 72 20 6c 2c 63 return!1;var l,c 0003d990: 2c 75 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 5b ,u=this._events[ 0003d9a0: 73 5d 2c 64 3d 61 72 67 75 6d 65 6e 74 73 2e 6c s],d=arguments.l 0003d9b0: 65 6e 67 74 68 3b 69 66 28 75 2e 66 6e 29 7b 73 ength;if(u.fn){s 0003d9c0: 77 69 74 63 68 28 75 2e 6f 6e 63 65 26 26 74 68 witch(u.once&&th 0003d9d0: 69 73 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 is.removeListene 0003d9e0: 72 28 65 2c 75 2e 66 6e 2c 76 6f 69 64 20 30 2c r(e,u.fn,void 0, 0003d9f0: 21 30 29 2c 64 29 7b 63 61 73 65 20 31 3a 72 65 !0),d){case 1:re 0003da00: 74 75 72 6e 20 75 2e 66 6e 2e 63 61 6c 6c 28 75 turn u.fn.call(u 0003da10: 2e 63 6f 6e 74 65 78 74 29 2c 21 30 3b 63 61 73 .context),!0;cas 0003da20: 65 20 32 3a 72 65 74 75 72 6e 20 75 2e 66 6e 2e e 2:return u.fn. 0003da30: 63 61 6c 6c 28 75 2e 63 6f 6e 74 65 78 74 2c 74 call(u.context,t 0003da40: 29 2c 21 30 3b 63 61 73 65 20 33 3a 72 65 74 75 ),!0;case 3:retu 0003da50: 72 6e 20 75 2e 66 6e 2e 63 61 6c 6c 28 75 2e 63 rn u.fn.call(u.c 0003da60: 6f 6e 74 65 78 74 2c 74 2c 72 29 2c 21 30 3b 63 ontext,t,r),!0;c 0003da70: 61 73 65 20 34 3a 72 65 74 75 72 6e 20 75 2e 66 ase 4:return u.f 0003da80: 6e 2e 63 61 6c 6c 28 75 2e 63 6f 6e 74 65 78 74 n.call(u.context 0003da90: 2c 74 2c 72 2c 6f 29 2c 21 30 3b 63 61 73 65 20 ,t,r,o),!0;case 0003daa0: 35 3a 72 65 74 75 72 6e 20 75 2e 66 6e 2e 63 61 5:return u.fn.ca 0003dab0: 6c 6c 28 75 2e 63 6f 6e 74 65 78 74 2c 74 2c 72 ll(u.context,t,r 0003dac0: 2c 6f 2c 69 29 2c 21 30 3b 63 61 73 65 20 36 3a ,o,i),!0;case 6: 0003dad0: 72 65 74 75 72 6e 20 75 2e 66 6e 2e 63 61 6c 6c return u.fn.call 0003dae0: 28 75 2e 63 6f 6e 74 65 78 74 2c 74 2c 72 2c 6f (u.context,t,r,o 0003daf0: 2c 69 2c 61 29 2c 21 30 7d 66 6f 72 28 63 3d 31 ,i,a),!0}for(c=1 0003db00: 2c 6c 3d 6e 65 77 20 41 72 72 61 79 28 64 2d 31 ,l=new Array(d-1 0003db10: 29 3b 63 3c 64 3b 63 2b 2b 29 6c 5b 63 2d 31 5d );c<d;c++)l[c-1] 0003db20: 3d 61 72 67 75 6d 65 6e 74 73 5b 63 5d 3b 75 2e =arguments[c];u. 0003db30: 66 6e 2e 61 70 70 6c 79 28 75 2e 63 6f 6e 74 65 fn.apply(u.conte 0003db40: 78 74 2c 6c 29 7d 65 6c 73 65 7b 76 61 72 20 70 xt,l)}else{var p 0003db50: 2c 66 3d 75 2e 6c 65 6e 67 74 68 3b 66 6f 72 28 ,f=u.length;for( 0003db60: 63 3d 30 3b 63 3c 66 3b 63 2b 2b 29 73 77 69 74 c=0;c<f;c++)swit 0003db70: 63 68 28 75 5b 63 5d 2e 6f 6e 63 65 26 26 74 68 ch(u[c].once&&th 0003db80: 69 73 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 is.removeListene 0003db90: 72 28 65 2c 75 5b 63 5d 2e 66 6e 2c 76 6f 69 64 r(e,u[c].fn,void 0003dba0: 20 30 2c 21 30 29 2c 64 29 7b 63 61 73 65 20 31 0,!0),d){case 1 0003dbb0: 3a 75 5b 63 5d 2e 66 6e 2e 63 61 6c 6c 28 75 5b :u[c].fn.call(u[ 0003dbc0: 63 5d 2e 63 6f 6e 74 65 78 74 29 3b 62 72 65 61 c].context);brea 0003dbd0: 6b 3b 63 61 73 65 20 32 3a 75 5b 63 5d 2e 66 6e k;case 2:u[c].fn 0003dbe0: 2e 63 61 6c 6c 28 75 5b 63 5d 2e 63 6f 6e 74 65 .call(u[c].conte 0003dbf0: 78 74 2c 74 29 3b 62 72 65 61 6b 3b 63 61 73 65 xt,t);break;case 0003dc00: 20 33 3a 75 5b 63 5d 2e 66 6e 2e 63 61 6c 6c 28 3:u[c].fn.call( 0003dc10: 75 5b 63 5d 2e 63 6f 6e 74 65 78 74 2c 74 2c 72 u[c].context,t,r 0003dc20: 29 3b 62 72 65 61 6b 3b 63 61 73 65 20 34 3a 75 );break;case 4:u 0003dc30: 5b 63 5d 2e 66 6e 2e 63 61 6c 6c 28 75 5b 63 5d [c].fn.call(u[c] 0003dc40: 2e 63 6f 6e 74 65 78 74 2c 74 2c 72 2c 6f 29 3b .context,t,r,o); 0003dc50: 62 72 65 61 6b 3b 64 65 66 61 75 6c 74 3a 69 66 break;default:if 0003dc60: 28 21 6c 29 66 6f 72 28 70 3d 31 2c 6c 3d 6e 65 (!l)for(p=1,l=ne 0003dc70: 77 20 41 72 72 61 79 28 64 2d 31 29 3b 70 3c 64 w Array(d-1);p<d 0003dc80: 3b 70 2b 2b 29 6c 5b 70 2d 31 5d 3d 61 72 67 75 ;p++)l[p-1]=argu 0003dc90: 6d 65 6e 74 73 5b 70 5d 3b 75 5b 63 5d 2e 66 6e ments[p];u[c].fn 0003dca0: 2e 61 70 70 6c 79 28 75 5b 63 5d 2e 63 6f 6e 74 .apply(u[c].cont 0003dcb0: 65 78 74 2c 6c 29 7d 7d 72 65 74 75 72 6e 21 30 ext,l)}}return!0 0003dcc0: 7d 2c 73 2e 70 72 6f 74 6f 74 79 70 65 2e 6f 6e },s.prototype.on 0003dcd0: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 =function(e,t,n) 0003dce0: 7b 72 65 74 75 72 6e 20 69 28 74 68 69 73 2c 65 {return i(this,e 0003dcf0: 2c 74 2c 6e 2c 21 31 29 7d 2c 73 2e 70 72 6f 74 ,t,n,!1)},s.prot 0003dd00: 6f 74 79 70 65 2e 6f 6e 63 65 3d 66 75 6e 63 74 otype.once=funct 0003dd10: 69 6f 6e 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 ion(e,t,n){retur 0003dd20: 6e 20 69 28 74 68 69 73 2c 65 2c 74 2c 6e 2c 21 n i(this,e,t,n,! 0003dd30: 30 29 7d 2c 73 2e 70 72 6f 74 6f 74 79 70 65 2e 0)},s.prototype. 0003dd40: 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 72 3d 66 removeListener=f 0003dd50: 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 72 2c 6f 29 unction(e,t,r,o) 0003dd60: 7b 76 61 72 20 69 3d 6e 3f 6e 2b 65 3a 65 3b 69 {var i=n?n+e:e;i 0003dd70: 66 28 21 74 68 69 73 2e 5f 65 76 65 6e 74 73 5b f(!this._events[ 0003dd80: 69 5d 29 72 65 74 75 72 6e 20 74 68 69 73 3b 69 i])return this;i 0003dd90: 66 28 21 74 29 72 65 74 75 72 6e 20 61 28 74 68 f(!t)return a(th 0003dda0: 69 73 2c 69 29 2c 74 68 69 73 3b 76 61 72 20 73 is,i),this;var s 0003ddb0: 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 5b 69 5d =this._events[i] 0003ddc0: 3b 69 66 28 73 2e 66 6e 29 73 2e 66 6e 21 3d 3d ;if(s.fn)s.fn!== 0003ddd0: 74 7c 7c 6f 26 26 21 73 2e 6f 6e 63 65 7c 7c 72 t||o&&!s.once||r 0003dde0: 26 26 73 2e 63 6f 6e 74 65 78 74 21 3d 3d 72 7c &&s.context!==r| 0003ddf0: 7c 61 28 74 68 69 73 2c 69 29 3b 65 6c 73 65 7b |a(this,i);else{ 0003de00: 66 6f 72 28 76 61 72 20 6c 3d 30 2c 63 3d 5b 5d for(var l=0,c=[] 0003de10: 2c 75 3d 73 2e 6c 65 6e 67 74 68 3b 6c 3c 75 3b ,u=s.length;l<u; 0003de20: 6c 2b 2b 29 28 73 5b 6c 5d 2e 66 6e 21 3d 3d 74 l++)(s[l].fn!==t 0003de30: 7c 7c 6f 26 26 21 73 5b 6c 5d 2e 6f 6e 63 65 7c ||o&&!s[l].once| 0003de40: 7c 72 26 26 73 5b 6c 5d 2e 63 6f 6e 74 65 78 74 |r&&s[l].context 0003de50: 21 3d 3d 72 29 26 26 63 2e 70 75 73 68 28 73 5b !==r)&&c.push(s[ 0003de60: 6c 5d 29 3b 63 2e 6c 65 6e 67 74 68 3f 74 68 69 l]);c.length?thi 0003de70: 73 2e 5f 65 76 65 6e 74 73 5b 69 5d 3d 31 3d 3d s._events[i]=1== 0003de80: 3d 63 2e 6c 65 6e 67 74 68 3f 63 5b 30 5d 3a 63 =c.length?c[0]:c 0003de90: 3a 61 28 74 68 69 73 2c 69 29 7d 72 65 74 75 72 :a(this,i)}retur 0003dea0: 6e 20 74 68 69 73 7d 2c 73 2e 70 72 6f 74 6f 74 n this},s.protot 0003deb0: 79 70 65 2e 72 65 6d 6f 76 65 41 6c 6c 4c 69 73 ype.removeAllLis 0003dec0: 74 65 6e 65 72 73 3d 66 75 6e 63 74 69 6f 6e 28 teners=function( 0003ded0: 65 29 7b 76 61 72 20 74 3b 72 65 74 75 72 6e 20 e){var t;return 0003dee0: 65 3f 28 74 3d 6e 3f 6e 2b 65 3a 65 2c 74 68 69 e?(t=n?n+e:e,thi 0003def0: 73 2e 5f 65 76 65 6e 74 73 5b 74 5d 26 26 61 28 s._events[t]&&a( 0003df00: 74 68 69 73 2c 74 29 29 3a 28 74 68 69 73 2e 5f this,t)):(this._ 0003df10: 65 76 65 6e 74 73 3d 6e 65 77 20 72 2c 74 68 69 events=new r,thi 0003df20: 73 2e 5f 65 76 65 6e 74 73 43 6f 75 6e 74 3d 30 s._eventsCount=0 0003df30: 29 2c 74 68 69 73 7d 2c 73 2e 70 72 6f 74 6f 74 ),this},s.protot 0003df40: 79 70 65 2e 6f 66 66 3d 73 2e 70 72 6f 74 6f 74 ype.off=s.protot 0003df50: 79 70 65 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e ype.removeListen 0003df60: 65 72 2c 73 2e 70 72 6f 74 6f 74 79 70 65 2e 61 er,s.prototype.a 0003df70: 64 64 4c 69 73 74 65 6e 65 72 3d 73 2e 70 72 6f ddListener=s.pro 0003df80: 74 6f 74 79 70 65 2e 6f 6e 2c 73 2e 70 72 65 66 totype.on,s.pref 0003df90: 69 78 65 64 3d 6e 2c 73 2e 45 76 65 6e 74 45 6d ixed=n,s.EventEm 0003dfa0: 69 74 74 65 72 3d 73 2c 65 2e 65 78 70 6f 72 74 itter=s,e.export 0003dfb0: 73 3d 73 7d 2c 31 37 31 38 37 3a 66 75 6e 63 74 s=s},17187:funct 0003dfc0: 69 6f 6e 28 65 29 7b 22 75 73 65 20 73 74 72 69 ion(e){"use stri 0003dfd0: 63 74 22 3b 76 61 72 20 74 2c 6e 3d 22 6f 62 6a ct";var t,n="obj 0003dfe0: 65 63 74 22 3d 3d 74 79 70 65 6f 66 20 52 65 66 ect"==typeof Ref 0003dff0: 6c 65 63 74 3f 52 65 66 6c 65 63 74 3a 6e 75 6c lect?Reflect:nul 0003e000: 6c 2c 72 3d 6e 26 26 22 66 75 6e 63 74 69 6f 6e l,r=n&&"function 0003e010: 22 3d 3d 74 79 70 65 6f 66 20 6e 2e 61 70 70 6c "==typeof n.appl 0003e020: 79 3f 6e 2e 61 70 70 6c 79 3a 66 75 6e 63 74 69 y?n.apply:functi 0003e030: 6f 6e 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e on(e,t,n){return 0003e040: 20 46 75 6e 63 74 69 6f 6e 2e 70 72 6f 74 6f 74 Function.protot 0003e050: 79 70 65 2e 61 70 70 6c 79 2e 63 61 6c 6c 28 65 ype.apply.call(e 0003e060: 2c 74 2c 6e 29 7d 3b 74 3d 6e 26 26 22 66 75 6e ,t,n)};t=n&&"fun 0003e070: 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 6e ction"==typeof n 0003e080: 2e 6f 77 6e 4b 65 79 73 3f 6e 2e 6f 77 6e 4b 65 .ownKeys?n.ownKe 0003e090: 79 73 3a 4f 62 6a 65 63 74 2e 67 65 74 4f 77 6e ys:Object.getOwn 0003e0a0: 50 72 6f 70 65 72 74 79 53 79 6d 62 6f 6c 73 3f PropertySymbols? 0003e0b0: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 function(e){retu 0003e0c0: 72 6e 20 4f 62 6a 65 63 74 2e 67 65 74 4f 77 6e rn Object.getOwn 0003e0d0: 50 72 6f 70 65 72 74 79 4e 61 6d 65 73 28 65 29 PropertyNames(e) 0003e0e0: 2e 63 6f 6e 63 61 74 28 4f 62 6a 65 63 74 2e 67 .concat(Object.g 0003e0f0: 65 74 4f 77 6e 50 72 6f 70 65 72 74 79 53 79 6d etOwnPropertySym 0003e100: 62 6f 6c 73 28 65 29 29 7d 3a 66 75 6e 63 74 69 bols(e))}:functi 0003e110: 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 4f 62 6a on(e){return Obj 0003e120: 65 63 74 2e 67 65 74 4f 77 6e 50 72 6f 70 65 72 ect.getOwnProper 0003e130: 74 79 4e 61 6d 65 73 28 65 29 7d 3b 76 61 72 20 tyNames(e)};var 0003e140: 6f 3d 4e 75 6d 62 65 72 2e 69 73 4e 61 4e 7c 7c o=Number.isNaN|| 0003e150: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 function(e){retu 0003e160: 72 6e 20 65 21 3d 65 7d 3b 66 75 6e 63 74 69 6f rn e!=e};functio 0003e170: 6e 20 69 28 29 7b 69 2e 69 6e 69 74 2e 63 61 6c n i(){i.init.cal 0003e180: 6c 28 74 68 69 73 29 7d 65 2e 65 78 70 6f 72 74 l(this)}e.export 0003e190: 73 3d 69 2c 65 2e 65 78 70 6f 72 74 73 2e 6f 6e s=i,e.exports.on 0003e1a0: 63 65 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 ce=function(e,t) 0003e1b0: 7b 72 65 74 75 72 6e 20 6e 65 77 20 50 72 6f 6d {return new Prom 0003e1c0: 69 73 65 28 28 66 75 6e 63 74 69 6f 6e 28 6e 2c ise((function(n, 0003e1d0: 72 29 7b 66 75 6e 63 74 69 6f 6e 20 6f 28 6e 29 r){function o(n) 0003e1e0: 7b 65 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 {e.removeListene 0003e1f0: 72 28 74 2c 69 29 2c 72 28 6e 29 7d 66 75 6e 63 r(t,i),r(n)}func 0003e200: 74 69 6f 6e 20 69 28 29 7b 22 66 75 6e 63 74 69 tion i(){"functi 0003e210: 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 65 2e 72 65 on"==typeof e.re 0003e220: 6d 6f 76 65 4c 69 73 74 65 6e 65 72 26 26 65 2e moveListener&&e. 0003e230: 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 72 28 22 removeListener(" 0003e240: 65 72 72 6f 72 22 2c 6f 29 2c 6e 28 5b 5d 2e 73 error",o),n([].s 0003e250: 6c 69 63 65 2e 63 61 6c 6c 28 61 72 67 75 6d 65 lice.call(argume 0003e260: 6e 74 73 29 29 7d 6d 28 65 2c 74 2c 69 2c 7b 6f nts))}m(e,t,i,{o 0003e270: 6e 63 65 3a 21 30 7d 29 2c 22 65 72 72 6f 72 22 nce:!0}),"error" 0003e280: 21 3d 3d 74 26 26 66 75 6e 63 74 69 6f 6e 28 65 !==t&&function(e 0003e290: 2c 74 2c 6e 29 7b 22 66 75 6e 63 74 69 6f 6e 22 ,t,n){"function" 0003e2a0: 3d 3d 74 79 70 65 6f 66 20 65 2e 6f 6e 26 26 6d ==typeof e.on&&m 0003e2b0: 28 65 2c 22 65 72 72 6f 72 22 2c 74 2c 6e 29 7d (e,"error",t,n)} 0003e2c0: 28 65 2c 6f 2c 7b 6f 6e 63 65 3a 21 30 7d 29 7d (e,o,{once:!0})} 0003e2d0: 29 29 7d 2c 69 2e 45 76 65 6e 74 45 6d 69 74 74 ))},i.EventEmitt 0003e2e0: 65 72 3d 69 2c 69 2e 70 72 6f 74 6f 74 79 70 65 er=i,i.prototype 0003e2f0: 2e 5f 65 76 65 6e 74 73 3d 76 6f 69 64 20 30 2c ._events=void 0, 0003e300: 69 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 65 76 65 i.prototype._eve 0003e310: 6e 74 73 43 6f 75 6e 74 3d 30 2c 69 2e 70 72 6f ntsCount=0,i.pro 0003e320: 74 6f 74 79 70 65 2e 5f 6d 61 78 4c 69 73 74 65 totype._maxListe 0003e330: 6e 65 72 73 3d 76 6f 69 64 20 30 3b 76 61 72 20 ners=void 0;var 0003e340: 61 3d 31 30 3b 66 75 6e 63 74 69 6f 6e 20 73 28 a=10;function s( 0003e350: 65 29 7b 69 66 28 22 66 75 6e 63 74 69 6f 6e 22 e){if("function" 0003e360: 21 3d 74 79 70 65 6f 66 20 65 29 74 68 72 6f 77 !=typeof e)throw 0003e370: 20 6e 65 77 20 54 79 70 65 45 72 72 6f 72 28 27 new TypeError(' 0003e380: 54 68 65 20 22 6c 69 73 74 65 6e 65 72 22 20 61 The "listener" a 0003e390: 72 67 75 6d 65 6e 74 20 6d 75 73 74 20 62 65 20 rgument must be 0003e3a0: 6f 66 20 74 79 70 65 20 46 75 6e 63 74 69 6f 6e of type Function 0003e3b0: 2e 20 52 65 63 65 69 76 65 64 20 74 79 70 65 20 . Received type 0003e3c0: 27 2b 74 79 70 65 6f 66 20 65 29 7d 66 75 6e 63 '+typeof e)}func 0003e3d0: 74 69 6f 6e 20 6c 28 65 29 7b 72 65 74 75 72 6e tion l(e){return 0003e3e0: 20 76 6f 69 64 20 30 3d 3d 3d 65 2e 5f 6d 61 78 void 0===e._max 0003e3f0: 4c 69 73 74 65 6e 65 72 73 3f 69 2e 64 65 66 61 Listeners?i.defa 0003e400: 75 6c 74 4d 61 78 4c 69 73 74 65 6e 65 72 73 3a ultMaxListeners: 0003e410: 65 2e 5f 6d 61 78 4c 69 73 74 65 6e 65 72 73 7d e._maxListeners} 0003e420: 66 75 6e 63 74 69 6f 6e 20 63 28 65 2c 74 2c 6e function c(e,t,n 0003e430: 2c 72 29 7b 76 61 72 20 6f 2c 69 2c 61 2c 63 3b ,r){var o,i,a,c; 0003e440: 69 66 28 73 28 6e 29 2c 76 6f 69 64 20 30 3d 3d if(s(n),void 0== 0003e450: 3d 28 69 3d 65 2e 5f 65 76 65 6e 74 73 29 3f 28 =(i=e._events)?( 0003e460: 69 3d 65 2e 5f 65 76 65 6e 74 73 3d 4f 62 6a 65 i=e._events=Obje 0003e470: 63 74 2e 63 72 65 61 74 65 28 6e 75 6c 6c 29 2c ct.create(null), 0003e480: 65 2e 5f 65 76 65 6e 74 73 43 6f 75 6e 74 3d 30 e._eventsCount=0 0003e490: 29 3a 28 76 6f 69 64 20 30 21 3d 3d 69 2e 6e 65 ):(void 0!==i.ne 0003e4a0: 77 4c 69 73 74 65 6e 65 72 26 26 28 65 2e 65 6d wListener&&(e.em 0003e4b0: 69 74 28 22 6e 65 77 4c 69 73 74 65 6e 65 72 22 it("newListener" 0003e4c0: 2c 74 2c 6e 2e 6c 69 73 74 65 6e 65 72 3f 6e 2e ,t,n.listener?n. 0003e4d0: 6c 69 73 74 65 6e 65 72 3a 6e 29 2c 69 3d 65 2e listener:n),i=e. 0003e4e0: 5f 65 76 65 6e 74 73 29 2c 61 3d 69 5b 74 5d 29 _events),a=i[t]) 0003e4f0: 2c 76 6f 69 64 20 30 3d 3d 3d 61 29 61 3d 69 5b ,void 0===a)a=i[ 0003e500: 74 5d 3d 6e 2c 2b 2b 65 2e 5f 65 76 65 6e 74 73 t]=n,++e._events 0003e510: 43 6f 75 6e 74 3b 65 6c 73 65 20 69 66 28 22 66 Count;else if("f 0003e520: 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 unction"==typeof 0003e530: 20 61 3f 61 3d 69 5b 74 5d 3d 72 3f 5b 6e 2c 61 a?a=i[t]=r?[n,a 0003e540: 5d 3a 5b 61 2c 6e 5d 3a 72 3f 61 2e 75 6e 73 68 ]:[a,n]:r?a.unsh 0003e550: 69 66 74 28 6e 29 3a 61 2e 70 75 73 68 28 6e 29 ift(n):a.push(n) 0003e560: 2c 28 6f 3d 6c 28 65 29 29 3e 30 26 26 61 2e 6c ,(o=l(e))>0&&a.l 0003e570: 65 6e 67 74 68 3e 6f 26 26 21 61 2e 77 61 72 6e ength>o&&!a.warn 0003e580: 65 64 29 7b 61 2e 77 61 72 6e 65 64 3d 21 30 3b ed){a.warned=!0; 0003e590: 76 61 72 20 75 3d 6e 65 77 20 45 72 72 6f 72 28 var u=new Error( 0003e5a0: 22 50 6f 73 73 69 62 6c 65 20 45 76 65 6e 74 45 "Possible EventE 0003e5b0: 6d 69 74 74 65 72 20 6d 65 6d 6f 72 79 20 6c 65 mitter memory le 0003e5c0: 61 6b 20 64 65 74 65 63 74 65 64 2e 20 22 2b 61 ak detected. "+a 0003e5d0: 2e 6c 65 6e 67 74 68 2b 22 20 22 2b 53 74 72 69 .length+" "+Stri 0003e5e0: 6e 67 28 74 29 2b 22 20 6c 69 73 74 65 6e 65 72 ng(t)+" listener 0003e5f0: 73 20 61 64 64 65 64 2e 20 55 73 65 20 65 6d 69 s added. Use emi 0003e600: 74 74 65 72 2e 73 65 74 4d 61 78 4c 69 73 74 65 tter.setMaxListe 0003e610: 6e 65 72 73 28 29 20 74 6f 20 69 6e 63 72 65 61 ners() to increa 0003e620: 73 65 20 6c 69 6d 69 74 22 29 3b 75 2e 6e 61 6d se limit");u.nam 0003e630: 65 3d 22 4d 61 78 4c 69 73 74 65 6e 65 72 73 45 e="MaxListenersE 0003e640: 78 63 65 65 64 65 64 57 61 72 6e 69 6e 67 22 2c xceededWarning", 0003e650: 75 2e 65 6d 69 74 74 65 72 3d 65 2c 75 2e 74 79 u.emitter=e,u.ty 0003e660: 70 65 3d 74 2c 75 2e 63 6f 75 6e 74 3d 61 2e 6c pe=t,u.count=a.l 0003e670: 65 6e 67 74 68 2c 63 3d 75 2c 63 6f 6e 73 6f 6c ength,c=u,consol 0003e680: 65 26 26 63 6f 6e 73 6f 6c 65 2e 77 61 72 6e 26 e&&console.warn& 0003e690: 26 63 6f 6e 73 6f 6c 65 2e 77 61 72 6e 28 63 29 &console.warn(c) 0003e6a0: 7d 72 65 74 75 72 6e 20 65 7d 66 75 6e 63 74 69 }return e}functi 0003e6b0: 6f 6e 20 75 28 29 7b 69 66 28 21 74 68 69 73 2e on u(){if(!this. 0003e6c0: 66 69 72 65 64 29 72 65 74 75 72 6e 20 74 68 69 fired)return thi 0003e6d0: 73 2e 74 61 72 67 65 74 2e 72 65 6d 6f 76 65 4c s.target.removeL 0003e6e0: 69 73 74 65 6e 65 72 28 74 68 69 73 2e 74 79 70 istener(this.typ 0003e6f0: 65 2c 74 68 69 73 2e 77 72 61 70 46 6e 29 2c 74 e,this.wrapFn),t 0003e700: 68 69 73 2e 66 69 72 65 64 3d 21 30 2c 30 3d 3d his.fired=!0,0== 0003e710: 3d 61 72 67 75 6d 65 6e 74 73 2e 6c 65 6e 67 74 =arguments.lengt 0003e720: 68 3f 74 68 69 73 2e 6c 69 73 74 65 6e 65 72 2e h?this.listener. 0003e730: 63 61 6c 6c 28 74 68 69 73 2e 74 61 72 67 65 74 call(this.target 0003e740: 29 3a 74 68 69 73 2e 6c 69 73 74 65 6e 65 72 2e ):this.listener. 0003e750: 61 70 70 6c 79 28 74 68 69 73 2e 74 61 72 67 65 apply(this.targe 0003e760: 74 2c 61 72 67 75 6d 65 6e 74 73 29 7d 66 75 6e t,arguments)}fun 0003e770: 63 74 69 6f 6e 20 64 28 65 2c 74 2c 6e 29 7b 76 ction d(e,t,n){v 0003e780: 61 72 20 72 3d 7b 66 69 72 65 64 3a 21 31 2c 77 ar r={fired:!1,w 0003e790: 72 61 70 46 6e 3a 76 6f 69 64 20 30 2c 74 61 72 rapFn:void 0,tar 0003e7a0: 67 65 74 3a 65 2c 74 79 70 65 3a 74 2c 6c 69 73 get:e,type:t,lis 0003e7b0: 74 65 6e 65 72 3a 6e 7d 2c 6f 3d 75 2e 62 69 6e tener:n},o=u.bin 0003e7c0: 64 28 72 29 3b 72 65 74 75 72 6e 20 6f 2e 6c 69 d(r);return o.li 0003e7d0: 73 74 65 6e 65 72 3d 6e 2c 72 2e 77 72 61 70 46 stener=n,r.wrapF 0003e7e0: 6e 3d 6f 2c 6f 7d 66 75 6e 63 74 69 6f 6e 20 70 n=o,o}function p 0003e7f0: 28 65 2c 74 2c 6e 29 7b 76 61 72 20 72 3d 65 2e (e,t,n){var r=e. 0003e800: 5f 65 76 65 6e 74 73 3b 69 66 28 76 6f 69 64 20 _events;if(void 0003e810: 30 3d 3d 3d 72 29 72 65 74 75 72 6e 5b 5d 3b 76 0===r)return[];v 0003e820: 61 72 20 6f 3d 72 5b 74 5d 3b 72 65 74 75 72 6e ar o=r[t];return 0003e830: 20 76 6f 69 64 20 30 3d 3d 3d 6f 3f 5b 5d 3a 22 void 0===o?[]:" 0003e840: 66 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f function"==typeo 0003e850: 66 20 6f 3f 6e 3f 5b 6f 2e 6c 69 73 74 65 6e 65 f o?n?[o.listene 0003e860: 72 7c 7c 6f 5d 3a 5b 6f 5d 3a 6e 3f 66 75 6e 63 r||o]:[o]:n?func 0003e870: 74 69 6f 6e 28 65 29 7b 66 6f 72 28 76 61 72 20 tion(e){for(var 0003e880: 74 3d 6e 65 77 20 41 72 72 61 79 28 65 2e 6c 65 t=new Array(e.le 0003e890: 6e 67 74 68 29 2c 6e 3d 30 3b 6e 3c 74 2e 6c 65 ngth),n=0;n<t.le 0003e8a0: 6e 67 74 68 3b 2b 2b 6e 29 74 5b 6e 5d 3d 65 5b ngth;++n)t[n]=e[ 0003e8b0: 6e 5d 2e 6c 69 73 74 65 6e 65 72 7c 7c 65 5b 6e n].listener||e[n 0003e8c0: 5d 3b 72 65 74 75 72 6e 20 74 7d 28 6f 29 3a 68 ];return t}(o):h 0003e8d0: 28 6f 2c 6f 2e 6c 65 6e 67 74 68 29 7d 66 75 6e (o,o.length)}fun 0003e8e0: 63 74 69 6f 6e 20 66 28 65 29 7b 76 61 72 20 74 ction f(e){var t 0003e8f0: 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 3b 69 66 =this._events;if 0003e900: 28 76 6f 69 64 20 30 21 3d 3d 74 29 7b 76 61 72 (void 0!==t){var 0003e910: 20 6e 3d 74 5b 65 5d 3b 69 66 28 22 66 75 6e 63 n=t[e];if("func 0003e920: 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 6e 29 tion"==typeof n) 0003e930: 72 65 74 75 72 6e 20 31 3b 69 66 28 76 6f 69 64 return 1;if(void 0003e940: 20 30 21 3d 3d 6e 29 72 65 74 75 72 6e 20 6e 2e 0!==n)return n. 0003e950: 6c 65 6e 67 74 68 7d 72 65 74 75 72 6e 20 30 7d length}return 0} 0003e960: 66 75 6e 63 74 69 6f 6e 20 68 28 65 2c 74 29 7b function h(e,t){ 0003e970: 66 6f 72 28 76 61 72 20 6e 3d 6e 65 77 20 41 72 for(var n=new Ar 0003e980: 72 61 79 28 74 29 2c 72 3d 30 3b 72 3c 74 3b 2b ray(t),r=0;r<t;+ 0003e990: 2b 72 29 6e 5b 72 5d 3d 65 5b 72 5d 3b 72 65 74 +r)n[r]=e[r];ret 0003e9a0: 75 72 6e 20 6e 7d 66 75 6e 63 74 69 6f 6e 20 6d urn n}function m 0003e9b0: 28 65 2c 74 2c 6e 2c 72 29 7b 69 66 28 22 66 75 (e,t,n,r){if("fu 0003e9c0: 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 nction"==typeof 0003e9d0: 65 2e 6f 6e 29 72 2e 6f 6e 63 65 3f 65 2e 6f 6e e.on)r.once?e.on 0003e9e0: 63 65 28 74 2c 6e 29 3a 65 2e 6f 6e 28 74 2c 6e ce(t,n):e.on(t,n 0003e9f0: 29 3b 65 6c 73 65 7b 69 66 28 22 66 75 6e 63 74 );else{if("funct 0003ea00: 69 6f 6e 22 21 3d 74 79 70 65 6f 66 20 65 2e 61 ion"!=typeof e.a 0003ea10: 64 64 45 76 65 6e 74 4c 69 73 74 65 6e 65 72 29 ddEventListener) 0003ea20: 74 68 72 6f 77 20 6e 65 77 20 54 79 70 65 45 72 throw new TypeEr 0003ea30: 72 6f 72 28 27 54 68 65 20 22 65 6d 69 74 74 65 ror('The "emitte 0003ea40: 72 22 20 61 72 67 75 6d 65 6e 74 20 6d 75 73 74 r" argument must 0003ea50: 20 62 65 20 6f 66 20 74 79 70 65 20 45 76 65 6e be of type Even 0003ea60: 74 45 6d 69 74 74 65 72 2e 20 52 65 63 65 69 76 tEmitter. Receiv 0003ea70: 65 64 20 74 79 70 65 20 27 2b 74 79 70 65 6f 66 ed type '+typeof 0003ea80: 20 65 29 3b 65 2e 61 64 64 45 76 65 6e 74 4c 69 e);e.addEventLi 0003ea90: 73 74 65 6e 65 72 28 74 2c 28 66 75 6e 63 74 69 stener(t,(functi 0003eaa0: 6f 6e 20 6f 28 69 29 7b 72 2e 6f 6e 63 65 26 26 on o(i){r.once&& 0003eab0: 65 2e 72 65 6d 6f 76 65 45 76 65 6e 74 4c 69 73 e.removeEventLis 0003eac0: 74 65 6e 65 72 28 74 2c 6f 29 2c 6e 28 69 29 7d tener(t,o),n(i)} 0003ead0: 29 29 7d 7d 4f 62 6a 65 63 74 2e 64 65 66 69 6e ))}}Object.defin 0003eae0: 65 50 72 6f 70 65 72 74 79 28 69 2c 22 64 65 66 eProperty(i,"def 0003eaf0: 61 75 6c 74 4d 61 78 4c 69 73 74 65 6e 65 72 73 aultMaxListeners 0003eb00: 22 2c 7b 65 6e 75 6d 65 72 61 62 6c 65 3a 21 30 ",{enumerable:!0 0003eb10: 2c 67 65 74 3a 66 75 6e 63 74 69 6f 6e 28 29 7b ,get:function(){ 0003eb20: 72 65 74 75 72 6e 20 61 7d 2c 73 65 74 3a 66 75 return a},set:fu 0003eb30: 6e 63 74 69 6f 6e 28 65 29 7b 69 66 28 22 6e 75 nction(e){if("nu 0003eb40: 6d 62 65 72 22 21 3d 74 79 70 65 6f 66 20 65 7c mber"!=typeof e| 0003eb50: 7c 65 3c 30 7c 7c 6f 28 65 29 29 74 68 72 6f 77 |e<0||o(e))throw 0003eb60: 20 6e 65 77 20 52 61 6e 67 65 45 72 72 6f 72 28 new RangeError( 0003eb70: 27 54 68 65 20 76 61 6c 75 65 20 6f 66 20 22 64 'The value of "d 0003eb80: 65 66 61 75 6c 74 4d 61 78 4c 69 73 74 65 6e 65 efaultMaxListene 0003eb90: 72 73 22 20 69 73 20 6f 75 74 20 6f 66 20 72 61 rs" is out of ra 0003eba0: 6e 67 65 2e 20 49 74 20 6d 75 73 74 20 62 65 20 nge. It must be 0003ebb0: 61 20 6e 6f 6e 2d 6e 65 67 61 74 69 76 65 20 6e a non-negative n 0003ebc0: 75 6d 62 65 72 2e 20 52 65 63 65 69 76 65 64 20 umber. Received 0003ebd0: 27 2b 65 2b 22 2e 22 29 3b 61 3d 65 7d 7d 29 2c '+e+".");a=e}}), 0003ebe0: 69 2e 69 6e 69 74 3d 66 75 6e 63 74 69 6f 6e 28 i.init=function( 0003ebf0: 29 7b 76 6f 69 64 20 30 21 3d 3d 74 68 69 73 2e ){void 0!==this. 0003ec00: 5f 65 76 65 6e 74 73 26 26 74 68 69 73 2e 5f 65 _events&&this._e 0003ec10: 76 65 6e 74 73 21 3d 3d 4f 62 6a 65 63 74 2e 67 vents!==Object.g 0003ec20: 65 74 50 72 6f 74 6f 74 79 70 65 4f 66 28 74 68 etPrototypeOf(th 0003ec30: 69 73 29 2e 5f 65 76 65 6e 74 73 7c 7c 28 74 68 is)._events||(th 0003ec40: 69 73 2e 5f 65 76 65 6e 74 73 3d 4f 62 6a 65 63 is._events=Objec 0003ec50: 74 2e 63 72 65 61 74 65 28 6e 75 6c 6c 29 2c 74 t.create(null),t 0003ec60: 68 69 73 2e 5f 65 76 65 6e 74 73 43 6f 75 6e 74 his._eventsCount 0003ec70: 3d 30 29 2c 74 68 69 73 2e 5f 6d 61 78 4c 69 73 =0),this._maxLis 0003ec80: 74 65 6e 65 72 73 3d 74 68 69 73 2e 5f 6d 61 78 teners=this._max 0003ec90: 4c 69 73 74 65 6e 65 72 73 7c 7c 76 6f 69 64 20 Listeners||void 0003eca0: 30 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 73 0},i.prototype.s 0003ecb0: 65 74 4d 61 78 4c 69 73 74 65 6e 65 72 73 3d 66 etMaxListeners=f 0003ecc0: 75 6e 63 74 69 6f 6e 28 65 29 7b 69 66 28 22 6e unction(e){if("n 0003ecd0: 75 6d 62 65 72 22 21 3d 74 79 70 65 6f 66 20 65 umber"!=typeof e 0003ece0: 7c 7c 65 3c 30 7c 7c 6f 28 65 29 29 74 68 72 6f ||e<0||o(e))thro 0003ecf0: 77 20 6e 65 77 20 52 61 6e 67 65 45 72 72 6f 72 w new RangeError 0003ed00: 28 27 54 68 65 20 76 61 6c 75 65 20 6f 66 20 22 ('The value of " 0003ed10: 6e 22 20 69 73 20 6f 75 74 20 6f 66 20 72 61 6e n" is out of ran 0003ed20: 67 65 2e 20 49 74 20 6d 75 73 74 20 62 65 20 61 ge. It must be a 0003ed30: 20 6e 6f 6e 2d 6e 65 67 61 74 69 76 65 20 6e 75 non-negative nu 0003ed40: 6d 62 65 72 2e 20 52 65 63 65 69 76 65 64 20 27 mber. Received ' 0003ed50: 2b 65 2b 22 2e 22 29 3b 72 65 74 75 72 6e 20 74 +e+".");return t 0003ed60: 68 69 73 2e 5f 6d 61 78 4c 69 73 74 65 6e 65 72 his._maxListener 0003ed70: 73 3d 65 2c 74 68 69 73 7d 2c 69 2e 70 72 6f 74 s=e,this},i.prot 0003ed80: 6f 74 79 70 65 2e 67 65 74 4d 61 78 4c 69 73 74 otype.getMaxList 0003ed90: 65 6e 65 72 73 3d 66 75 6e 63 74 69 6f 6e 28 29 eners=function() 0003eda0: 7b 72 65 74 75 72 6e 20 6c 28 74 68 69 73 29 7d {return l(this)} 0003edb0: 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 65 6d 69 ,i.prototype.emi 0003edc0: 74 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 66 6f t=function(e){fo 0003edd0: 72 28 76 61 72 20 74 3d 5b 5d 2c 6e 3d 31 3b 6e r(var t=[],n=1;n 0003ede0: 3c 61 72 67 75 6d 65 6e 74 73 2e 6c 65 6e 67 74 <arguments.lengt 0003edf0: 68 3b 6e 2b 2b 29 74 2e 70 75 73 68 28 61 72 67 h;n++)t.push(arg 0003ee00: 75 6d 65 6e 74 73 5b 6e 5d 29 3b 76 61 72 20 6f uments[n]);var o 0003ee10: 3d 22 65 72 72 6f 72 22 3d 3d 3d 65 2c 69 3d 74 ="error"===e,i=t 0003ee20: 68 69 73 2e 5f 65 76 65 6e 74 73 3b 69 66 28 76 his._events;if(v 0003ee30: 6f 69 64 20 30 21 3d 3d 69 29 6f 3d 6f 26 26 76 oid 0!==i)o=o&&v 0003ee40: 6f 69 64 20 30 3d 3d 3d 69 2e 65 72 72 6f 72 3b oid 0===i.error; 0003ee50: 65 6c 73 65 20 69 66 28 21 6f 29 72 65 74 75 72 else if(!o)retur 0003ee60: 6e 21 31 3b 69 66 28 6f 29 7b 76 61 72 20 61 3b n!1;if(o){var a; 0003ee70: 69 66 28 74 2e 6c 65 6e 67 74 68 3e 30 26 26 28 if(t.length>0&&( 0003ee80: 61 3d 74 5b 30 5d 29 2c 61 20 69 6e 73 74 61 6e a=t[0]),a instan 0003ee90: 63 65 6f 66 20 45 72 72 6f 72 29 74 68 72 6f 77 ceof Error)throw 0003eea0: 20 61 3b 76 61 72 20 73 3d 6e 65 77 20 45 72 72 a;var s=new Err 0003eeb0: 6f 72 28 22 55 6e 68 61 6e 64 6c 65 64 20 65 72 or("Unhandled er 0003eec0: 72 6f 72 2e 22 2b 28 61 3f 22 20 28 22 2b 61 2e ror."+(a?" ("+a. 0003eed0: 6d 65 73 73 61 67 65 2b 22 29 22 3a 22 22 29 29 message+")":"")) 0003eee0: 3b 74 68 72 6f 77 20 73 2e 63 6f 6e 74 65 78 74 ;throw s.context 0003eef0: 3d 61 2c 73 7d 76 61 72 20 6c 3d 69 5b 65 5d 3b =a,s}var l=i[e]; 0003ef00: 69 66 28 76 6f 69 64 20 30 3d 3d 3d 6c 29 72 65 if(void 0===l)re 0003ef10: 74 75 72 6e 21 31 3b 69 66 28 22 66 75 6e 63 74 turn!1;if("funct 0003ef20: 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 6c 29 72 ion"==typeof l)r 0003ef30: 28 6c 2c 74 68 69 73 2c 74 29 3b 65 6c 73 65 7b (l,this,t);else{ 0003ef40: 76 61 72 20 63 3d 6c 2e 6c 65 6e 67 74 68 2c 75 var c=l.length,u 0003ef50: 3d 68 28 6c 2c 63 29 3b 66 6f 72 28 6e 3d 30 3b =h(l,c);for(n=0; 0003ef60: 6e 3c 63 3b 2b 2b 6e 29 72 28 75 5b 6e 5d 2c 74 n<c;++n)r(u[n],t 0003ef70: 68 69 73 2c 74 29 7d 72 65 74 75 72 6e 21 30 7d his,t)}return!0} 0003ef80: 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 61 64 64 ,i.prototype.add 0003ef90: 4c 69 73 74 65 6e 65 72 3d 66 75 6e 63 74 69 6f Listener=functio 0003efa0: 6e 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 63 28 n(e,t){return c( 0003efb0: 74 68 69 73 2c 65 2c 74 2c 21 31 29 7d 2c 69 2e this,e,t,!1)},i. 0003efc0: 70 72 6f 74 6f 74 79 70 65 2e 6f 6e 3d 69 2e 70 prototype.on=i.p 0003efd0: 72 6f 74 6f 74 79 70 65 2e 61 64 64 4c 69 73 74 rototype.addList 0003efe0: 65 6e 65 72 2c 69 2e 70 72 6f 74 6f 74 79 70 65 ener,i.prototype 0003eff0: 2e 70 72 65 70 65 6e 64 4c 69 73 74 65 6e 65 72 .prependListener 0003f000: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 =function(e,t){r 0003f010: 65 74 75 72 6e 20 63 28 74 68 69 73 2c 65 2c 74 eturn c(this,e,t 0003f020: 2c 21 30 29 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 ,!0)},i.prototyp 0003f030: 65 2e 6f 6e 63 65 3d 66 75 6e 63 74 69 6f 6e 28 e.once=function( 0003f040: 65 2c 74 29 7b 72 65 74 75 72 6e 20 73 28 74 29 e,t){return s(t) 0003f050: 2c 74 68 69 73 2e 6f 6e 28 65 2c 64 28 74 68 69 ,this.on(e,d(thi 0003f060: 73 2c 65 2c 74 29 29 2c 74 68 69 73 7d 2c 69 2e s,e,t)),this},i. 0003f070: 70 72 6f 74 6f 74 79 70 65 2e 70 72 65 70 65 6e prototype.prepen 0003f080: 64 4f 6e 63 65 4c 69 73 74 65 6e 65 72 3d 66 75 dOnceListener=fu 0003f090: 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 74 75 nction(e,t){retu 0003f0a0: 72 6e 20 73 28 74 29 2c 74 68 69 73 2e 70 72 65 rn s(t),this.pre 0003f0b0: 70 65 6e 64 4c 69 73 74 65 6e 65 72 28 65 2c 64 pendListener(e,d 0003f0c0: 28 74 68 69 73 2c 65 2c 74 29 29 2c 74 68 69 73 (this,e,t)),this 0003f0d0: 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 72 65 },i.prototype.re 0003f0e0: 6d 6f 76 65 4c 69 73 74 65 6e 65 72 3d 66 75 6e moveListener=fun 0003f0f0: 63 74 69 6f 6e 28 65 2c 74 29 7b 76 61 72 20 6e ction(e,t){var n 0003f100: 2c 72 2c 6f 2c 69 2c 61 3b 69 66 28 73 28 74 29 ,r,o,i,a;if(s(t) 0003f110: 2c 76 6f 69 64 20 30 3d 3d 3d 28 72 3d 74 68 69 ,void 0===(r=thi 0003f120: 73 2e 5f 65 76 65 6e 74 73 29 29 72 65 74 75 72 s._events))retur 0003f130: 6e 20 74 68 69 73 3b 69 66 28 76 6f 69 64 20 30 n this;if(void 0 0003f140: 3d 3d 3d 28 6e 3d 72 5b 65 5d 29 29 72 65 74 75 ===(n=r[e]))retu 0003f150: 72 6e 20 74 68 69 73 3b 69 66 28 6e 3d 3d 3d 74 rn this;if(n===t 0003f160: 7c 7c 6e 2e 6c 69 73 74 65 6e 65 72 3d 3d 3d 74 ||n.listener===t 0003f170: 29 30 3d 3d 2d 2d 74 68 69 73 2e 5f 65 76 65 6e )0==--this._even 0003f180: 74 73 43 6f 75 6e 74 3f 74 68 69 73 2e 5f 65 76 tsCount?this._ev 0003f190: 65 6e 74 73 3d 4f 62 6a 65 63 74 2e 63 72 65 61 ents=Object.crea 0003f1a0: 74 65 28 6e 75 6c 6c 29 3a 28 64 65 6c 65 74 65 te(null):(delete 0003f1b0: 20 72 5b 65 5d 2c 72 2e 72 65 6d 6f 76 65 4c 69 r[e],r.removeLi 0003f1c0: 73 74 65 6e 65 72 26 26 74 68 69 73 2e 65 6d 69 stener&&this.emi 0003f1d0: 74 28 22 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 t("removeListene 0003f1e0: 72 22 2c 65 2c 6e 2e 6c 69 73 74 65 6e 65 72 7c r",e,n.listener| 0003f1f0: 7c 74 29 29 3b 65 6c 73 65 20 69 66 28 22 66 75 |t));else if("fu 0003f200: 6e 63 74 69 6f 6e 22 21 3d 74 79 70 65 6f 66 20 nction"!=typeof 0003f210: 6e 29 7b 66 6f 72 28 6f 3d 2d 31 2c 69 3d 6e 2e n){for(o=-1,i=n. 0003f220: 6c 65 6e 67 74 68 2d 31 3b 69 3e 3d 30 3b 69 2d length-1;i>=0;i- 0003f230: 2d 29 69 66 28 6e 5b 69 5d 3d 3d 3d 74 7c 7c 6e -)if(n[i]===t||n 0003f240: 5b 69 5d 2e 6c 69 73 74 65 6e 65 72 3d 3d 3d 74 [i].listener===t 0003f250: 29 7b 61 3d 6e 5b 69 5d 2e 6c 69 73 74 65 6e 65 ){a=n[i].listene 0003f260: 72 2c 6f 3d 69 3b 62 72 65 61 6b 7d 69 66 28 6f r,o=i;break}if(o 0003f270: 3c 30 29 72 65 74 75 72 6e 20 74 68 69 73 3b 30 <0)return this;0 0003f280: 3d 3d 3d 6f 3f 6e 2e 73 68 69 66 74 28 29 3a 66 ===o?n.shift():f 0003f290: 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 66 6f 72 unction(e,t){for 0003f2a0: 28 3b 74 2b 31 3c 65 2e 6c 65 6e 67 74 68 3b 74 (;t+1<e.length;t 0003f2b0: 2b 2b 29 65 5b 74 5d 3d 65 5b 74 2b 31 5d 3b 65 ++)e[t]=e[t+1];e 0003f2c0: 2e 70 6f 70 28 29 7d 28 6e 2c 6f 29 2c 31 3d 3d .pop()}(n,o),1== 0003f2d0: 3d 6e 2e 6c 65 6e 67 74 68 26 26 28 72 5b 65 5d =n.length&&(r[e] 0003f2e0: 3d 6e 5b 30 5d 29 2c 76 6f 69 64 20 30 21 3d 3d =n[0]),void 0!== 0003f2f0: 72 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 72 r.removeListener 0003f300: 26 26 74 68 69 73 2e 65 6d 69 74 28 22 72 65 6d &&this.emit("rem 0003f310: 6f 76 65 4c 69 73 74 65 6e 65 72 22 2c 65 2c 61 oveListener",e,a 0003f320: 7c 7c 74 29 7d 72 65 74 75 72 6e 20 74 68 69 73 ||t)}return this 0003f330: 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 6f 66 },i.prototype.of 0003f340: 66 3d 69 2e 70 72 6f 74 6f 74 79 70 65 2e 72 65 f=i.prototype.re 0003f350: 6d 6f 76 65 4c 69 73 74 65 6e 65 72 2c 69 2e 70 moveListener,i.p 0003f360: 72 6f 74 6f 74 79 70 65 2e 72 65 6d 6f 76 65 41 rototype.removeA 0003f370: 6c 6c 4c 69 73 74 65 6e 65 72 73 3d 66 75 6e 63 llListeners=func 0003f380: 74 69 6f 6e 28 65 29 7b 76 61 72 20 74 2c 6e 2c tion(e){var t,n, 0003f390: 72 3b 69 66 28 76 6f 69 64 20 30 3d 3d 3d 28 6e r;if(void 0===(n 0003f3a0: 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 29 29 72 =this._events))r 0003f3b0: 65 74 75 72 6e 20 74 68 69 73 3b 69 66 28 76 6f eturn this;if(vo 0003f3c0: 69 64 20 30 3d 3d 3d 6e 2e 72 65 6d 6f 76 65 4c id 0===n.removeL 0003f3d0: 69 73 74 65 6e 65 72 29 72 65 74 75 72 6e 20 30 istener)return 0 0003f3e0: 3d 3d 3d 61 72 67 75 6d 65 6e 74 73 2e 6c 65 6e ===arguments.len 0003f3f0: 67 74 68 3f 28 74 68 69 73 2e 5f 65 76 65 6e 74 gth?(this._event 0003f400: 73 3d 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 28 s=Object.create( 0003f410: 6e 75 6c 6c 29 2c 74 68 69 73 2e 5f 65 76 65 6e null),this._even 0003f420: 74 73 43 6f 75 6e 74 3d 30 29 3a 76 6f 69 64 20 tsCount=0):void 0003f430: 30 21 3d 3d 6e 5b 65 5d 26 26 28 30 3d 3d 2d 2d 0!==n[e]&&(0==-- 0003f440: 74 68 69 73 2e 5f 65 76 65 6e 74 73 43 6f 75 6e this._eventsCoun 0003f450: 74 3f 74 68 69 73 2e 5f 65 76 65 6e 74 73 3d 4f t?this._events=O 0003f460: 62 6a 65 63 74 2e 63 72 65 61 74 65 28 6e 75 6c bject.create(nul 0003f470: 6c 29 3a 64 65 6c 65 74 65 20 6e 5b 65 5d 29 2c l):delete n[e]), 0003f480: 74 68 69 73 3b 69 66 28 30 3d 3d 3d 61 72 67 75 this;if(0===argu 0003f490: 6d 65 6e 74 73 2e 6c 65 6e 67 74 68 29 7b 76 61 ments.length){va 0003f4a0: 72 20 6f 2c 69 3d 4f 62 6a 65 63 74 2e 6b 65 79 r o,i=Object.key 0003f4b0: 73 28 6e 29 3b 66 6f 72 28 72 3d 30 3b 72 3c 69 s(n);for(r=0;r<i 0003f4c0: 2e 6c 65 6e 67 74 68 3b 2b 2b 72 29 22 72 65 6d .length;++r)"rem 0003f4d0: 6f 76 65 4c 69 73 74 65 6e 65 72 22 21 3d 3d 28 oveListener"!==( 0003f4e0: 6f 3d 69 5b 72 5d 29 26 26 74 68 69 73 2e 72 65 o=i[r])&&this.re 0003f4f0: 6d 6f 76 65 41 6c 6c 4c 69 73 74 65 6e 65 72 73 moveAllListeners 0003f500: 28 6f 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e (o);return this. 0003f510: 72 65 6d 6f 76 65 41 6c 6c 4c 69 73 74 65 6e 65 removeAllListene 0003f520: 72 73 28 22 72 65 6d 6f 76 65 4c 69 73 74 65 6e rs("removeListen 0003f530: 65 72 22 29 2c 74 68 69 73 2e 5f 65 76 65 6e 74 er"),this._event 0003f540: 73 3d 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 28 s=Object.create( 0003f550: 6e 75 6c 6c 29 2c 74 68 69 73 2e 5f 65 76 65 6e null),this._even 0003f560: 74 73 43 6f 75 6e 74 3d 30 2c 74 68 69 73 7d 69 tsCount=0,this}i 0003f570: 66 28 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 f("function"==ty 0003f580: 70 65 6f 66 28 74 3d 6e 5b 65 5d 29 29 74 68 69 peof(t=n[e]))thi 0003f590: 73 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 72 s.removeListener 0003f5a0: 28 65 2c 74 29 3b 65 6c 73 65 20 69 66 28 76 6f (e,t);else if(vo 0003f5b0: 69 64 20 30 21 3d 3d 74 29 66 6f 72 28 72 3d 74 id 0!==t)for(r=t 0003f5c0: 2e 6c 65 6e 67 74 68 2d 31 3b 72 3e 3d 30 3b 72 .length-1;r>=0;r 0003f5d0: 2d 2d 29 74 68 69 73 2e 72 65 6d 6f 76 65 4c 69 --)this.removeLi 0003f5e0: 73 74 65 6e 65 72 28 65 2c 74 5b 72 5d 29 3b 72 stener(e,t[r]);r 0003f5f0: 65 74 75 72 6e 20 74 68 69 73 7d 2c 69 2e 70 72 eturn this},i.pr 0003f600: 6f 74 6f 74 79 70 65 2e 6c 69 73 74 65 6e 65 72 ototype.listener 0003f610: 73 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 s=function(e){re 0003f620: 74 75 72 6e 20 70 28 74 68 69 73 2c 65 2c 21 30 turn p(this,e,!0 0003f630: 29 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 72 )},i.prototype.r 0003f640: 61 77 4c 69 73 74 65 6e 65 72 73 3d 66 75 6e 63 awListeners=func 0003f650: 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 70 tion(e){return p 0003f660: 28 74 68 69 73 2c 65 2c 21 31 29 7d 2c 69 2e 6c (this,e,!1)},i.l 0003f670: 69 73 74 65 6e 65 72 43 6f 75 6e 74 3d 66 75 6e istenerCount=fun 0003f680: 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 74 75 72 ction(e,t){retur 0003f690: 6e 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 n"function"==typ 0003f6a0: 65 6f 66 20 65 2e 6c 69 73 74 65 6e 65 72 43 6f eof e.listenerCo 0003f6b0: 75 6e 74 3f 65 2e 6c 69 73 74 65 6e 65 72 43 6f unt?e.listenerCo 0003f6c0: 75 6e 74 28 74 29 3a 66 2e 63 61 6c 6c 28 65 2c unt(t):f.call(e, 0003f6d0: 74 29 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e t)},i.prototype. 0003f6e0: 6c 69 73 74 65 6e 65 72 43 6f 75 6e 74 3d 66 2c listenerCount=f, 0003f6f0: 69 2e 70 72 6f 74 6f 74 79 70 65 2e 65 76 65 6e i.prototype.even 0003f700: 74 4e 61 6d 65 73 3d 66 75 6e 63 74 69 6f 6e 28 tNames=function( 0003f710: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 65 ){return this._e 0003f720: 76 65 6e 74 73 43 6f 75 6e 74 3e 30 3f 74 28 74 ventsCount>0?t(t 0003f730: 68 69 73 2e 5f 65 76 65 6e 74 73 29 3a 5b 5d 7d his._events):[]} 0003f740: 7d 2c 39 34 34 37 30 3a 66 75 6e 63 74 69 6f 6e },94470:function 0003f750: 28 65 29 7b 22 75 73 65 20 73 74 72 69 63 74 22 (e){"use strict" 0003f760: 3b 76 61 72 20 74 3d 4f 62 6a 65 63 74 2e 70 72 ;var t=Object.pr 0003f770: 6f 74 6f 74 79 70 65 2e 68 61 73 4f 77 6e 50 72 ototype.hasOwnPr 0003f780: 6f 70 65 72 74 79 2c 6e 3d 4f 62 6a 65 63 74 2e operty,n=Object. 0003f790: 70 72 6f 74 6f 74 79 70 65 2e 74 6f 53 74 72 69 prototype.toStri 0003f7a0: 6e 67 2c 72 3d 4f 62 6a 65 63 74 2e 64 65 66 69 ng,r=Object.defi 0003f7b0: 6e 65 50 72 6f 70 65 72 74 79 2c 6f 3d 4f 62 6a neProperty,o=Obj 0003f7c0: 65 63 74 2e 67 65 74 4f 77 6e 50 72 6f 70 65 72 ect.getOwnProper 0003f7d0: 74 79 44 65 73 63 72 69 70 74 6f 72 2c 69 3d 66 tyDescriptor,i=f 0003f7e0: 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 unction(e){retur 0003f7f0: 6e 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 n"function"==typ 0003f800: 65 6f 66 20 41 72 72 61 79 2e 69 73 41 72 72 61 eof Array.isArra 0003f810: 79 3f 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 y?Array.isArray( 0003f820: 65 29 3a 22 5b 6f 62 6a 65 63 74 20 41 72 72 61 e):"[object Arra 0003f830: 79 5d 22 3d 3d 3d 6e 2e 63 61 6c 6c 28 65 29 7d y]"===n.call(e)} 0003f840: 2c 61 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 69 ,a=function(e){i 0003f850: 66 28 21 65 7c 7c 22 5b 6f 62 6a 65 63 74 20 4f f(!e||"[object O 0003f860: 62 6a 65 63 74 5d 22 21 3d 3d 6e 2e 63 61 6c 6c bject]"!==n.call 0003f870: 28 65 29 29 72 65 74 75 72 6e 21 31 3b 76 61 72 (e))return!1;var 0003f880: 20 72 2c 6f 3d 74 2e 63 61 6c 6c 28 65 2c 22 63 r,o=t.call(e,"c 0003f890: 6f 6e 73 74 72 75 63 74 6f 72 22 29 2c 69 3d 65 onstructor"),i=e 0003f8a0: 2e 63 6f 6e 73 74 72 75 63 74 6f 72 26 26 65 2e .constructor&&e. 0003f8b0: 63 6f 6e 73 74 72 75 63 74 6f 72 2e 70 72 6f 74 constructor.prot 0003f8c0: 6f 74 79 70 65 26 26 74 2e 63 61 6c 6c 28 65 2e otype&&t.call(e. 0003f8d0: 63 6f 6e 73 74 72 75 63 74 6f 72 2e 70 72 6f 74 constructor.prot 0003f8e0: 6f 74 79 70 65 2c 22 69 73 50 72 6f 74 6f 74 79 otype,"isPrototy 0003f8f0: 70 65 4f 66 22 29 3b 69 66 28 65 2e 63 6f 6e 73 peOf");if(e.cons 0003f900: 74 72 75 63 74 6f 72 26 26 21 6f 26 26 21 69 29 tructor&&!o&&!i) 0003f910: 72 65 74 75 72 6e 21 31 3b 66 6f 72 28 72 20 69 return!1;for(r i 0003f920: 6e 20 65 29 3b 72 65 74 75 72 6e 20 76 6f 69 64 n e);return void 0003f930: 20 30 3d 3d 3d 72 7c 7c 74 2e 63 61 6c 6c 28 65 0===r||t.call(e 0003f940: 2c 72 29 7d 2c 73 3d 66 75 6e 63 74 69 6f 6e 28 ,r)},s=function( 0003f950: 65 2c 74 29 7b 72 26 26 22 5f 5f 70 72 6f 74 6f e,t){r&&"__proto 0003f960: 5f 5f 22 3d 3d 3d 74 2e 6e 61 6d 65 3f 72 28 65 __"===t.name?r(e 0003f970: 2c 74 2e 6e 61 6d 65 2c 7b 65 6e 75 6d 65 72 61 ,t.name,{enumera 0003f980: 62 6c 65 3a 21 30 2c 63 6f 6e 66 69 67 75 72 61 ble:!0,configura 0003f990: 62 6c 65 3a 21 30 2c 76 61 6c 75 65 3a 74 2e 6e ble:!0,value:t.n 0003f9a0: 65 77 56 61 6c 75 65 2c 77 72 69 74 61 62 6c 65 ewValue,writable 0003f9b0: 3a 21 30 7d 29 3a 65 5b 74 2e 6e 61 6d 65 5d 3d :!0}):e[t.name]= 0003f9c0: 74 2e 6e 65 77 56 61 6c 75 65 7d 2c 6c 3d 66 75 t.newValue},l=fu 0003f9d0: 6e 63 74 69 6f 6e 28 65 2c 6e 29 7b 69 66 28 22 nction(e,n){if(" 0003f9e0: 5f 5f 70 72 6f 74 6f 5f 5f 22 3d 3d 3d 6e 29 7b __proto__"===n){ 0003f9f0: 69 66 28 21 74 2e 63 61 6c 6c 28 65 2c 6e 29 29 if(!t.call(e,n)) 0003fa00: 72 65 74 75 72 6e 3b 69 66 28 6f 29 72 65 74 75 return;if(o)retu 0003fa10: 72 6e 20 6f 28 65 2c 6e 29 2e 76 61 6c 75 65 7d rn o(e,n).value} 0003fa20: 72 65 74 75 72 6e 20 65 5b 6e 5d 7d 3b 65 2e 65 return e[n]};e.e 0003fa30: 78 70 6f 72 74 73 3d 66 75 6e 63 74 69 6f 6e 20 xports=function 0003fa40: 65 28 29 7b 76 61 72 20 74 2c 6e 2c 72 2c 6f 2c e(){var t,n,r,o, 0003fa50: 63 2c 75 2c 64 3d 61 72 67 75 6d 65 6e 74 73 5b c,u,d=arguments[ 0003fa60: 30 5d 2c 70 3d 31 2c 66 3d 61 72 67 75 6d 65 6e 0],p=1,f=argumen 0003fa70: 74 73 2e 6c 65 6e 67 74 68 2c 68 3d 21 31 3b 66 ts.length,h=!1;f 0003fa80: 6f 72 28 22 62 6f 6f 6c 65 61 6e 22 3d 3d 74 79 or("boolean"==ty 0003fa90: 70 65 6f 66 20 64 26 26 28 68 3d 64 2c 64 3d 61 peof d&&(h=d,d=a 0003faa0: 72 67 75 6d 65 6e 74 73 5b 31 5d 7c 7c 7b 7d 2c rguments[1]||{}, 0003fab0: 70 3d 32 29 2c 28 6e 75 6c 6c 3d 3d 64 7c 7c 22 p=2),(null==d||" 0003fac0: 6f 62 6a 65 63 74 22 21 3d 74 79 70 65 6f 66 20 object"!=typeof 0003fad0: 64 26 26 22 66 75 6e 63 74 69 6f 6e 22 21 3d 74 d&&"function"!=t 0003fae0: 79 70 65 6f 66 20 64 29 26 26 28 64 3d 7b 7d 29 ypeof d)&&(d={}) 0003faf0: 3b 70 3c 66 3b 2b 2b 70 29 69 66 28 6e 75 6c 6c ;p<f;++p)if(null 0003fb00: 21 3d 28 74 3d 61 72 67 75 6d 65 6e 74 73 5b 70 !=(t=arguments[p 0003fb10: 5d 29 29 66 6f 72 28 6e 20 69 6e 20 74 29 72 3d ]))for(n in t)r= 0003fb20: 6c 28 64 2c 6e 29 2c 64 21 3d 3d 28 6f 3d 6c 28 l(d,n),d!==(o=l( 0003fb30: 74 2c 6e 29 29 26 26 28 68 26 26 6f 26 26 28 61 t,n))&&(h&&o&&(a 0003fb40: 28 6f 29 7c 7c 28 63 3d 69 28 6f 29 29 29 3f 28 (o)||(c=i(o)))?( 0003fb50: 63 3f 28 63 3d 21 31 2c 75 3d 72 26 26 69 28 72 c?(c=!1,u=r&&i(r 0003fb60: 29 3f 72 3a 5b 5d 29 3a 75 3d 72 26 26 61 28 72 )?r:[]):u=r&&a(r 0003fb70: 29 3f 72 3a 7b 7d 2c 73 28 64 2c 7b 6e 61 6d 65 )?r:{},s(d,{name 0003fb80: 3a 6e 2c 6e 65 77 56 61 6c 75 65 3a 65 28 68 2c :n,newValue:e(h, 0003fb90: 75 2c 6f 29 7d 29 29 3a 76 6f 69 64 20 30 21 3d u,o)})):void 0!= 0003fba0: 3d 6f 26 26 73 28 64 2c 7b 6e 61 6d 65 3a 6e 2c =o&&s(d,{name:n, 0003fbb0: 6e 65 77 56 61 6c 75 65 3a 6f 7d 29 29 3b 72 65 newValue:o}));re 0003fbc0: 74 75 72 6e 20 64 7d 7d 2c 36 34 30 36 33 3a 66 turn d}},64063:f 0003fbd0: 75 6e 63 74 69 6f 6e 28 65 29 7b 22 75 73 65 20 unction(e){"use 0003fbe0: 73 74 72 69 63 74 22 3b 65 2e 65 78 70 6f 72 74 strict";e.export 0003fbf0: 73 3d 66 75 6e 63 74 69 6f 6e 20 65 28 74 2c 6e s=function e(t,n 0003fc00: 29 7b 69 66 28 74 3d 3d 3d 6e 29 72 65 74 75 72 ){if(t===n)retur 0003fc10: 6e 21 30 3b 69 66 28 74 26 26 6e 26 26 22 6f 62 n!0;if(t&&n&&"ob 0003fc20: 6a 65 63 74 22 3d 3d 74 79 70 65 6f 66 20 74 26 ject"==typeof t& 0003fc30: 26 22 6f 62 6a 65 63 74 22 3d 3d 74 79 70 65 6f &"object"==typeo 0003fc40: 66 20 6e 29 7b 69 66 28 74 2e 63 6f 6e 73 74 72 f n){if(t.constr 0003fc50: 75 63 74 6f 72 21 3d 3d 6e 2e 63 6f 6e 73 74 72 uctor!==n.constr 0003fc60: 75 63 74 6f 72 29 72 65 74 75 72 6e 21 31 3b 76 uctor)return!1;v 0003fc70: 61 72 20 72 2c 6f 2c 69 3b 69 66 28 41 72 72 61 ar r,o,i;if(Arra 0003fc80: 79 2e 69 73 41 72 72 61 79 28 74 29 29 7b 69 66 y.isArray(t)){if 0003fc90: 28 28 72 3d 74 2e 6c 65 6e 67 74 68 29 21 3d 6e ((r=t.length)!=n 0003fca0: 2e 6c 65 6e 67 74 68 29 72 65 74 75 72 6e 21 31 .length)return!1 0003fcb0: 3b 66 6f 72 28 6f 3d 72 3b 30 21 3d 6f 2d 2d 3b ;for(o=r;0!=o--; 0003fcc0: 29 69 66 28 21 65 28 74 5b 6f 5d 2c 6e 5b 6f 5d )if(!e(t[o],n[o] 0003fcd0: 29 29 72 65 74 75 72 6e 21 31 3b 72 65 74 75 72 ))return!1;retur 0003fce0: 6e 21 30 7d 69 66 28 74 2e 63 6f 6e 73 74 72 75 n!0}if(t.constru 0003fcf0: 63 74 6f 72 3d 3d 3d 52 65 67 45 78 70 29 72 65 ctor===RegExp)re 0003fd00: 74 75 72 6e 20 74 2e 73 6f 75 72 63 65 3d 3d 3d turn t.source=== 0003fd10: 6e 2e 73 6f 75 72 63 65 26 26 74 2e 66 6c 61 67 n.source&&t.flag 0003fd20: 73 3d 3d 3d 6e 2e 66 6c 61 67 73 3b 69 66 28 74 s===n.flags;if(t 0003fd30: 2e 76 61 6c 75 65 4f 66 21 3d 3d 4f 62 6a 65 63 .valueOf!==Objec 0003fd40: 74 2e 70 72 6f 74 6f 74 79 70 65 2e 76 61 6c 75 t.prototype.valu 0003fd50: 65 4f 66 29 72 65 74 75 72 6e 20 74 2e 76 61 6c eOf)return t.val 0003fd60: 75 65 4f 66 28 29 3d 3d 3d 6e 2e 76 61 6c 75 65 ueOf()===n.value 0003fd70: 4f 66 28 29 3b 69 66 28 74 2e 74 6f 53 74 72 69 Of();if(t.toStri 0003fd80: 6e 67 21 3d 3d 4f 62 6a 65 63 74 2e 70 72 6f 74 ng!==Object.prot 0003fd90: 6f 74 79 70 65 2e 74 6f 53 74 72 69 6e 67 29 72 otype.toString)r 0003fda0: 65 74 75 72 6e 20 74 2e 74 6f 53 74 72 69 6e 67 eturn t.toString 0003fdb0: 28 29 3d 3d 3d 6e 2e 74 6f 53 74 72 69 6e 67 28 ()===n.toString( 0003fdc0: 29 3b 69 66 28 28 72 3d 28 69 3d 4f 62 6a 65 63 );if((r=(i=Objec 0003fdd0: 74 2e 6b 65 79 73 28 74 29 29 2e 6c 65 6e 67 74 t.keys(t)).lengt 0003fde0: 68 29 21 3d 3d 4f 62 6a 65 63 74 2e 6b 65 79 73 h)!==Object.keys 0003fdf0: 28 6e 29 2e 6c 65 6e 67 74 68 29 72 65 74 75 72 (n).length)retur 0003fe00: 6e 21 31 3b 66 6f 72 28 6f 3d 72 3b 30 21 3d 6f n!1;for(o=r;0!=o 0003fe10: 2d 2d 3b 29 69 66 28 21 4f 62 6a 65 63 74 2e 70 --;)if(!Object.p 0003fe20: 72 6f 74 6f 74 79 70 65 2e 68 61 73 4f 77 6e 50 rototype.hasOwnP 0003fe30: 72 6f 70 65 72 74 79 2e 63 61 6c 6c 28 6e 2c 69 roperty.call(n,i 0003fe40: 5b 6f 5d 29 29 72 65 74 75 72 6e 21 31 3b 66 6f [o]))return!1;fo 0003fe50: 72 28 6f 3d 72 3b 30 21 3d 6f 2d 2d 3b 29 7b 76 r(o=r;0!=o--;){v 0003fe60: 61 72 20 61 3d 69 5b 6f 5d 3b 69 66 28 21 65 28 ar a=i[o];if(!e( 0003fe70: 74 5b 61 5d 2c 6e 5b 61 5d 29 29 72 65 74 75 72 t[a],n[a]))retur 0003fe80: 6e 21 31 7d 72 65 74 75 72 6e 21 30 7d 72 65 74 n!1}return!0}ret 0003fe90: 75 72 6e 20 74 21 3d 74 26 26 6e 21 3d 6e 7d 7d urn t!=t&&n!=n}} 0003fea0: 2c 32 31 31 30 32 3a 66 75 6e 63 74 69 6f 6e 28 ,21102:function( 0003feb0: 65 2c 74 2c 6e 29 7b 22 75 73 65 20 73 74 72 69 e,t,n){"use stri 0003fec0: 63 74 22 3b 76 61 72 20 72 3d 6e 28 34 36 32 39 ct";var r=n(4629 0003fed0: 31 29 2c 6f 3d 69 28 45 72 72 6f 72 29 3b 66 75 1),o=i(Error);fu 0003fee0: 6e 63 74 69 6f 6e 20 69 28 65 29 7b 72 65 74 75 nction i(e){retu 0003fef0: 72 6e 20 74 2e 64 69 73 70 6c 61 79 4e 61 6d 65 rn t.displayName 0003ff00: 3d 65 2e 64 69 73 70 6c 61 79 4e 61 6d 65 7c 7c =e.displayName|| 0003ff10: 65 2e 6e 61 6d 65 2c 74 3b 66 75 6e 63 74 69 6f e.name,t;functio 0003ff20: 6e 20 74 28 74 29 7b 72 65 74 75 72 6e 20 74 26 n t(t){return t& 0003ff30: 26 28 74 3d 72 2e 61 70 70 6c 79 28 6e 75 6c 6c &(t=r.apply(null 0003ff40: 2c 61 72 67 75 6d 65 6e 74 73 29 29 2c 6e 65 77 ,arguments)),new 0003ff50: 20 65 28 74 29 7d 7d 65 2e 65 78 70 6f 72 74 73 e(t)}}e.exports 0003ff60: 3d 6f 2c 6f 2e 65 76 61 6c 3d 69 28 45 76 61 6c =o,o.eval=i(Eval 0003ff70: 45 72 72 6f 72 29 2c 6f 2e 72 61 6e 67 65 3d 69 Error),o.range=i 0003ff80: 28 52 61 6e 67 65 45 72 72 6f 72 29 2c 6f 2e 72 (RangeError),o.r 0003ff90: 65 66 65 72 65 6e 63 65 3d 69 28 52 65 66 65 72 eference=i(Refer 0003ffa0: 65 6e 63 65 45 72 72 6f 72 29 2c 6f 2e 73 79 6e enceError),o.syn 0003ffb0: 74 61 78 3d 69 28 53 79 6e 74 61 78 45 72 72 6f tax=i(SyntaxErro 0003ffc0: 72 29 2c 6f 2e 74 79 70 65 3d 69 28 54 79 70 65 r),o.type=i(Type 0003ffd0: 45 72 72 6f 72 29 2c 6f 2e 75 72 69 3d 69 28 55 Error),o.uri=i(U 0003ffe0: 52 49 45 72 72 6f 72 29 2c 6f 2e 63 72 65 61 74 RIError),o.creat 0003fff0: 65 3d 69 7d 2c 39 34 30 32 39 3a 66 75 6e 63 74 e=i},94029:funct

Transaction Execution Plan

Convert Transaction To Receipt
Gas Burned:
3 Tgas
Tokens Burned:
0.0003 
Receipt:
Predecessor ID:
Receiver ID:
Gas Burned:
3 Tgas
Tokens Burned:
0.0003 
Called method: 'fs_store' in contract: web4.tldraw.near
Arguments:
00000000: 65 74 75 72 6e 20 6e 75 6c 6c 21 3d 74 26 26 74 eturn null!=t&&t 00000010: 68 69 73 2e 5f 74 68 72 6f 77 45 72 72 6f 72 28 his._throwError( 00000020: 22 6e 6f 74 20 6e 75 6c 6c 22 2c 74 29 2c 65 2e "not null",t),e. 00000030: 77 72 69 74 65 42 79 74 65 73 28 5b 5d 29 7d 64 writeBytes([])}d 00000040: 65 63 6f 64 65 28 65 29 7b 72 65 74 75 72 6e 20 ecode(e){return 00000050: 65 2e 72 65 61 64 42 79 74 65 73 28 30 29 2c 65 e.readBytes(0),e 00000060: 2e 63 6f 65 72 63 65 28 74 68 69 73 2e 6e 61 6d .coerce(this.nam 00000070: 65 2c 6e 75 6c 6c 29 7d 7d 63 6f 6e 73 74 20 63 e,null)}}const c 00000080: 74 3d 59 2e 66 72 6f 6d 28 2d 31 29 2c 75 74 3d t=Y.from(-1),ut= 00000090: 59 2e 66 72 6f 6d 28 30 29 2c 64 74 3d 59 2e 66 Y.from(0),dt=Y.f 000000a0: 72 6f 6d 28 31 29 2c 70 74 3d 59 2e 66 72 6f 6d rom(1),pt=Y.from 000000b0: 28 32 29 2c 66 74 3d 59 2e 66 72 6f 6d 28 22 31 (2),ft=Y.from("1 000000c0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 000000d0: 30 30 22 29 2c 68 74 3d 59 2e 66 72 6f 6d 28 22 00"),ht=Y.from(" 000000e0: 30 78 66 66 66 66 66 66 66 66 66 66 66 66 66 66 0xffffffffffffff 000000f0: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00000100: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00000110: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00000120: 66 66 22 29 2c 6d 74 3d 59 2e 66 72 6f 6d 28 22 ff"),mt=Y.from(" 00000130: 2d 30 78 38 30 30 30 30 30 30 30 30 30 30 30 30 -0x8000000000000 00000140: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00000150: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00000160: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00000170: 30 30 30 22 29 2c 67 74 3d 59 2e 66 72 6f 6d 28 000"),gt=Y.from( 00000180: 22 30 78 37 66 66 66 66 66 66 66 66 66 66 66 66 "0x7ffffffffffff 00000190: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 000001a0: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 000001b0: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 000001c0: 66 66 66 22 29 3b 63 6c 61 73 73 20 62 74 20 65 fff");class bt e 000001d0: 78 74 65 6e 64 73 20 68 65 7b 63 6f 6e 73 74 72 xtends he{constr 000001e0: 75 63 74 6f 72 28 65 2c 74 2c 6e 29 7b 63 6f 6e uctor(e,t,n){con 000001f0: 73 74 20 72 3d 28 74 3f 22 69 6e 74 22 3a 22 75 st r=(t?"int":"u 00000200: 69 6e 74 22 29 2b 38 2a 65 3b 73 75 70 65 72 28 int")+8*e;super( 00000210: 72 2c 72 2c 6e 2c 21 31 29 2c 74 68 69 73 2e 73 r,r,n,!1),this.s 00000220: 69 7a 65 3d 65 2c 74 68 69 73 2e 73 69 67 6e 65 ize=e,this.signe 00000230: 64 3d 74 7d 64 65 66 61 75 6c 74 56 61 6c 75 65 d=t}defaultValue 00000240: 28 29 7b 72 65 74 75 72 6e 20 30 7d 65 6e 63 6f (){return 0}enco 00000250: 64 65 28 65 2c 74 29 7b 6c 65 74 20 6e 3d 59 2e de(e,t){let n=Y. 00000260: 66 72 6f 6d 28 74 29 2c 72 3d 68 74 2e 6d 61 73 from(t),r=ht.mas 00000270: 6b 28 38 2a 65 2e 77 6f 72 64 53 69 7a 65 29 3b k(8*e.wordSize); 00000280: 69 66 28 74 68 69 73 2e 73 69 67 6e 65 64 29 7b if(this.signed){ 00000290: 6c 65 74 20 65 3d 72 2e 6d 61 73 6b 28 38 2a 74 let e=r.mask(8*t 000002a0: 68 69 73 2e 73 69 7a 65 2d 31 29 3b 28 6e 2e 67 his.size-1);(n.g 000002b0: 74 28 65 29 7c 7c 6e 2e 6c 74 28 65 2e 61 64 64 t(e)||n.lt(e.add 000002c0: 28 64 74 29 2e 6d 75 6c 28 63 74 29 29 29 26 26 (dt).mul(ct)))&& 000002d0: 74 68 69 73 2e 5f 74 68 72 6f 77 45 72 72 6f 72 this._throwError 000002e0: 28 22 76 61 6c 75 65 20 6f 75 74 2d 6f 66 2d 62 ("value out-of-b 000002f0: 6f 75 6e 64 73 22 2c 74 29 7d 65 6c 73 65 28 6e ounds",t)}else(n 00000300: 2e 6c 74 28 75 74 29 7c 7c 6e 2e 67 74 28 72 2e .lt(ut)||n.gt(r. 00000310: 6d 61 73 6b 28 38 2a 74 68 69 73 2e 73 69 7a 65 mask(8*this.size 00000320: 29 29 29 26 26 74 68 69 73 2e 5f 74 68 72 6f 77 )))&&this._throw 00000330: 45 72 72 6f 72 28 22 76 61 6c 75 65 20 6f 75 74 Error("value out 00000340: 2d 6f 66 2d 62 6f 75 6e 64 73 22 2c 74 29 3b 72 -of-bounds",t);r 00000350: 65 74 75 72 6e 20 6e 3d 6e 2e 74 6f 54 77 6f 73 eturn n=n.toTwos 00000360: 28 38 2a 74 68 69 73 2e 73 69 7a 65 29 2e 6d 61 (8*this.size).ma 00000370: 73 6b 28 38 2a 74 68 69 73 2e 73 69 7a 65 29 2c sk(8*this.size), 00000380: 74 68 69 73 2e 73 69 67 6e 65 64 26 26 28 6e 3d this.signed&&(n= 00000390: 6e 2e 66 72 6f 6d 54 77 6f 73 28 38 2a 74 68 69 n.fromTwos(8*thi 000003a0: 73 2e 73 69 7a 65 29 2e 74 6f 54 77 6f 73 28 38 s.size).toTwos(8 000003b0: 2a 65 2e 77 6f 72 64 53 69 7a 65 29 29 2c 65 2e *e.wordSize)),e. 000003c0: 77 72 69 74 65 56 61 6c 75 65 28 6e 29 7d 64 65 writeValue(n)}de 000003d0: 63 6f 64 65 28 65 29 7b 6c 65 74 20 74 3d 65 2e code(e){let t=e. 000003e0: 72 65 61 64 56 61 6c 75 65 28 29 2e 6d 61 73 6b readValue().mask 000003f0: 28 38 2a 74 68 69 73 2e 73 69 7a 65 29 3b 72 65 (8*this.size);re 00000400: 74 75 72 6e 20 74 68 69 73 2e 73 69 67 6e 65 64 turn this.signed 00000410: 26 26 28 74 3d 74 2e 66 72 6f 6d 54 77 6f 73 28 &&(t=t.fromTwos( 00000420: 38 2a 74 68 69 73 2e 73 69 7a 65 29 29 2c 65 2e 8*this.size)),e. 00000430: 63 6f 65 72 63 65 28 74 68 69 73 2e 6e 61 6d 65 coerce(this.name 00000440: 2c 74 29 7d 7d 63 6c 61 73 73 20 79 74 20 65 78 ,t)}}class yt ex 00000450: 74 65 6e 64 73 20 69 74 7b 63 6f 6e 73 74 72 75 tends it{constru 00000460: 63 74 6f 72 28 65 29 7b 73 75 70 65 72 28 22 73 ctor(e){super("s 00000470: 74 72 69 6e 67 22 2c 65 29 7d 64 65 66 61 75 6c tring",e)}defaul 00000480: 74 56 61 6c 75 65 28 29 7b 72 65 74 75 72 6e 22 tValue(){return" 00000490: 22 7d 65 6e 63 6f 64 65 28 65 2c 74 29 7b 72 65 "}encode(e,t){re 000004a0: 74 75 72 6e 20 73 75 70 65 72 2e 65 6e 63 6f 64 turn super.encod 000004b0: 65 28 65 2c 71 65 28 74 29 29 7d 64 65 63 6f 64 e(e,qe(t))}decod 000004c0: 65 28 65 29 7b 72 65 74 75 72 6e 20 58 65 28 73 e(e){return Xe(s 000004d0: 75 70 65 72 2e 64 65 63 6f 64 65 28 65 29 29 7d uper.decode(e))} 000004e0: 7d 63 6c 61 73 73 20 76 74 20 65 78 74 65 6e 64 }class vt extend 000004f0: 73 20 68 65 7b 63 6f 6e 73 74 72 75 63 74 6f 72 s he{constructor 00000500: 28 65 2c 74 29 7b 6c 65 74 20 6e 3d 21 31 3b 63 (e,t){let n=!1;c 00000510: 6f 6e 73 74 20 72 3d 5b 5d 3b 65 2e 66 6f 72 45 onst r=[];e.forE 00000520: 61 63 68 28 28 65 3d 3e 7b 65 2e 64 79 6e 61 6d ach((e=>{e.dynam 00000530: 69 63 26 26 28 6e 3d 21 30 29 2c 72 2e 70 75 73 ic&&(n=!0),r.pus 00000540: 68 28 65 2e 74 79 70 65 29 7d 29 29 3b 73 75 70 h(e.type)}));sup 00000550: 65 72 28 22 74 75 70 6c 65 22 2c 22 74 75 70 6c er("tuple","tupl 00000560: 65 28 22 2b 72 2e 6a 6f 69 6e 28 22 2c 22 29 2b e("+r.join(",")+ 00000570: 22 29 22 2c 74 2c 6e 29 2c 74 68 69 73 2e 63 6f ")",t,n),this.co 00000580: 64 65 72 73 3d 65 7d 64 65 66 61 75 6c 74 56 61 ders=e}defaultVa 00000590: 6c 75 65 28 29 7b 63 6f 6e 73 74 20 65 3d 5b 5d lue(){const e=[] 000005a0: 3b 74 68 69 73 2e 63 6f 64 65 72 73 2e 66 6f 72 ;this.coders.for 000005b0: 45 61 63 68 28 28 74 3d 3e 7b 65 2e 70 75 73 68 Each((t=>{e.push 000005c0: 28 74 2e 64 65 66 61 75 6c 74 56 61 6c 75 65 28 (t.defaultValue( 000005d0: 29 29 7d 29 29 3b 63 6f 6e 73 74 20 74 3d 74 68 ))}));const t=th 000005e0: 69 73 2e 63 6f 64 65 72 73 2e 72 65 64 75 63 65 is.coders.reduce 000005f0: 28 28 28 65 2c 74 29 3d 3e 7b 63 6f 6e 73 74 20 (((e,t)=>{const 00000600: 6e 3d 74 2e 6c 6f 63 61 6c 4e 61 6d 65 3b 72 65 n=t.localName;re 00000610: 74 75 72 6e 20 6e 26 26 28 65 5b 6e 5d 7c 7c 28 turn n&&(e[n]||( 00000620: 65 5b 6e 5d 3d 30 29 2c 65 5b 6e 5d 2b 2b 29 2c e[n]=0),e[n]++), 00000630: 65 7d 29 2c 7b 7d 29 3b 72 65 74 75 72 6e 20 74 e}),{});return t 00000640: 68 69 73 2e 63 6f 64 65 72 73 2e 66 6f 72 45 61 his.coders.forEa 00000650: 63 68 28 28 28 6e 2c 72 29 3d 3e 7b 6c 65 74 20 ch(((n,r)=>{let 00000660: 6f 3d 6e 2e 6c 6f 63 61 6c 4e 61 6d 65 3b 6f 26 o=n.localName;o& 00000670: 26 31 3d 3d 3d 74 5b 6f 5d 26 26 28 22 6c 65 6e &1===t[o]&&("len 00000680: 67 74 68 22 3d 3d 3d 6f 26 26 28 6f 3d 22 5f 6c gth"===o&&(o="_l 00000690: 65 6e 67 74 68 22 29 2c 6e 75 6c 6c 3d 3d 65 5b ength"),null==e[ 000006a0: 6f 5d 26 26 28 65 5b 6f 5d 3d 65 5b 72 5d 29 29 o]&&(e[o]=e[r])) 000006b0: 7d 29 29 2c 4f 62 6a 65 63 74 2e 66 72 65 65 7a })),Object.freez 000006c0: 65 28 65 29 7d 65 6e 63 6f 64 65 28 65 2c 74 29 e(e)}encode(e,t) 000006d0: 7b 72 65 74 75 72 6e 20 74 74 28 65 2c 74 68 69 {return tt(e,thi 000006e0: 73 2e 63 6f 64 65 72 73 2c 74 29 7d 64 65 63 6f s.coders,t)}deco 000006f0: 64 65 28 65 29 7b 72 65 74 75 72 6e 20 65 2e 63 de(e){return e.c 00000700: 6f 65 72 63 65 28 74 68 69 73 2e 6e 61 6d 65 2c oerce(this.name, 00000710: 6e 74 28 65 2c 74 68 69 73 2e 63 6f 64 65 72 73 nt(e,this.coders 00000720: 29 29 7d 7d 63 6f 6e 73 74 20 53 74 3d 6e 65 77 ))}}const St=new 00000730: 20 79 28 64 65 29 2c 45 74 3d 7b 7d 3b 6c 65 74 y(de),Et={};let 00000740: 20 5f 74 3d 7b 63 61 6c 6c 64 61 74 61 3a 21 30 _t={calldata:!0 00000750: 2c 6d 65 6d 6f 72 79 3a 21 30 2c 73 74 6f 72 61 ,memory:!0,stora 00000760: 67 65 3a 21 30 7d 2c 77 74 3d 7b 63 61 6c 6c 64 ge:!0},wt={calld 00000770: 61 74 61 3a 21 30 2c 6d 65 6d 6f 72 79 3a 21 30 ata:!0,memory:!0 00000780: 7d 3b 66 75 6e 63 74 69 6f 6e 20 78 74 28 65 2c };function xt(e, 00000790: 74 29 7b 69 66 28 22 62 79 74 65 73 22 3d 3d 3d t){if("bytes"=== 000007a0: 65 7c 7c 22 73 74 72 69 6e 67 22 3d 3d 3d 65 29 e||"string"===e) 000007b0: 7b 69 66 28 5f 74 5b 74 5d 29 72 65 74 75 72 6e {if(_t[t])return 000007c0: 21 30 7d 65 6c 73 65 20 69 66 28 22 61 64 64 72 !0}else if("addr 000007d0: 65 73 73 22 3d 3d 3d 65 29 7b 69 66 28 22 70 61 ess"===e){if("pa 000007e0: 79 61 62 6c 65 22 3d 3d 3d 74 29 72 65 74 75 72 yable"===t)retur 000007f0: 6e 21 30 7d 65 6c 73 65 20 69 66 28 28 65 2e 69 n!0}else if((e.i 00000800: 6e 64 65 78 4f 66 28 22 5b 22 29 3e 3d 30 7c 7c ndexOf("[")>=0|| 00000810: 22 74 75 70 6c 65 22 3d 3d 3d 65 29 26 26 77 74 "tuple"===e)&&wt 00000820: 5b 74 5d 29 72 65 74 75 72 6e 21 30 3b 72 65 74 [t])return!0;ret 00000830: 75 72 6e 28 5f 74 5b 74 5d 7c 7c 22 70 61 79 61 urn(_t[t]||"paya 00000840: 62 6c 65 22 3d 3d 3d 74 29 26 26 53 74 2e 74 68 ble"===t)&&St.th 00000850: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 00000860: 28 22 69 6e 76 61 6c 69 64 20 6d 6f 64 69 66 69 ("invalid modifi 00000870: 65 72 22 2c 22 6e 61 6d 65 22 2c 74 29 2c 21 31 er","name",t),!1 00000880: 7d 66 75 6e 63 74 69 6f 6e 20 54 74 28 65 2c 74 }function Tt(e,t 00000890: 29 7b 66 6f 72 28 6c 65 74 20 6e 20 69 6e 20 74 ){for(let n in t 000008a0: 29 74 65 28 65 2c 6e 2c 74 5b 6e 5d 29 7d 63 6f )te(e,n,t[n])}co 000008b0: 6e 73 74 20 43 74 3d 4f 62 6a 65 63 74 2e 66 72 nst Ct=Object.fr 000008c0: 65 65 7a 65 28 7b 73 69 67 68 61 73 68 3a 22 73 eeze({sighash:"s 000008d0: 69 67 68 61 73 68 22 2c 6d 69 6e 69 6d 61 6c 3a ighash",minimal: 000008e0: 22 6d 69 6e 69 6d 61 6c 22 2c 66 75 6c 6c 3a 22 "minimal",full:" 000008f0: 66 75 6c 6c 22 2c 6a 73 6f 6e 3a 22 6a 73 6f 6e full",json:"json 00000900: 22 7d 29 2c 41 74 3d 6e 65 77 20 52 65 67 45 78 "}),At=new RegEx 00000910: 70 28 2f 5e 28 2e 2a 29 5c 5b 28 5b 30 2d 39 5d p(/^(.*)\[([0-9] 00000920: 2a 29 5c 5d 24 2f 29 3b 63 6c 61 73 73 20 6b 74 *)\]$/);class kt 00000930: 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 {constructor(e,t 00000940: 29 7b 65 21 3d 3d 45 74 26 26 53 74 2e 74 68 72 ){e!==Et&&St.thr 00000950: 6f 77 45 72 72 6f 72 28 22 75 73 65 20 66 72 6f owError("use fro 00000960: 6d 53 74 72 69 6e 67 22 2c 79 2e 65 72 72 6f 72 mString",y.error 00000970: 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 s.UNSUPPORTED_OP 00000980: 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 ERATION,{operati 00000990: 6f 6e 3a 22 6e 65 77 20 50 61 72 61 6d 54 79 70 on:"new ParamTyp 000009a0: 65 28 29 22 7d 29 2c 54 74 28 74 68 69 73 2c 74 e()"}),Tt(this,t 000009b0: 29 3b 6c 65 74 20 6e 3d 74 68 69 73 2e 74 79 70 );let n=this.typ 000009c0: 65 2e 6d 61 74 63 68 28 41 74 29 3b 54 74 28 74 e.match(At);Tt(t 000009d0: 68 69 73 2c 6e 3f 7b 61 72 72 61 79 4c 65 6e 67 his,n?{arrayLeng 000009e0: 74 68 3a 70 61 72 73 65 49 6e 74 28 6e 5b 32 5d th:parseInt(n[2] 000009f0: 7c 7c 22 2d 31 22 29 2c 61 72 72 61 79 43 68 69 ||"-1"),arrayChi 00000a00: 6c 64 72 65 6e 3a 6b 74 2e 66 72 6f 6d 4f 62 6a ldren:kt.fromObj 00000a10: 65 63 74 28 7b 74 79 70 65 3a 6e 5b 31 5d 2c 63 ect({type:n[1],c 00000a20: 6f 6d 70 6f 6e 65 6e 74 73 3a 74 68 69 73 2e 63 omponents:this.c 00000a30: 6f 6d 70 6f 6e 65 6e 74 73 7d 29 2c 62 61 73 65 omponents}),base 00000a40: 54 79 70 65 3a 22 61 72 72 61 79 22 7d 3a 7b 61 Type:"array"}:{a 00000a50: 72 72 61 79 4c 65 6e 67 74 68 3a 6e 75 6c 6c 2c rrayLength:null, 00000a60: 61 72 72 61 79 43 68 69 6c 64 72 65 6e 3a 6e 75 arrayChildren:nu 00000a70: 6c 6c 2c 62 61 73 65 54 79 70 65 3a 6e 75 6c 6c ll,baseType:null 00000a80: 21 3d 74 68 69 73 2e 63 6f 6d 70 6f 6e 65 6e 74 !=this.component 00000a90: 73 3f 22 74 75 70 6c 65 22 3a 74 68 69 73 2e 74 s?"tuple":this.t 00000aa0: 79 70 65 7d 29 2c 74 68 69 73 2e 5f 69 73 50 61 ype}),this._isPa 00000ab0: 72 61 6d 54 79 70 65 3d 21 30 2c 4f 62 6a 65 63 ramType=!0,Objec 00000ac0: 74 2e 66 72 65 65 7a 65 28 74 68 69 73 29 7d 66 t.freeze(this)}f 00000ad0: 6f 72 6d 61 74 28 65 29 7b 69 66 28 65 7c 7c 28 ormat(e){if(e||( 00000ae0: 65 3d 43 74 2e 73 69 67 68 61 73 68 29 2c 43 74 e=Ct.sighash),Ct 00000af0: 5b 65 5d 7c 7c 53 74 2e 74 68 72 6f 77 41 72 67 [e]||St.throwArg 00000b00: 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 umentError("inva 00000b10: 6c 69 64 20 66 6f 72 6d 61 74 20 74 79 70 65 22 lid format type" 00000b20: 2c 22 66 6f 72 6d 61 74 22 2c 65 29 2c 65 3d 3d ,"format",e),e== 00000b30: 3d 43 74 2e 6a 73 6f 6e 29 7b 6c 65 74 20 74 3d =Ct.json){let t= 00000b40: 7b 74 79 70 65 3a 22 74 75 70 6c 65 22 3d 3d 3d {type:"tuple"=== 00000b50: 74 68 69 73 2e 62 61 73 65 54 79 70 65 3f 22 74 this.baseType?"t 00000b60: 75 70 6c 65 22 3a 74 68 69 73 2e 74 79 70 65 2c uple":this.type, 00000b70: 6e 61 6d 65 3a 74 68 69 73 2e 6e 61 6d 65 7c 7c name:this.name|| 00000b80: 76 6f 69 64 20 30 7d 3b 72 65 74 75 72 6e 22 62 void 0};return"b 00000b90: 6f 6f 6c 65 61 6e 22 3d 3d 74 79 70 65 6f 66 20 oolean"==typeof 00000ba0: 74 68 69 73 2e 69 6e 64 65 78 65 64 26 26 28 74 this.indexed&&(t 00000bb0: 2e 69 6e 64 65 78 65 64 3d 74 68 69 73 2e 69 6e .indexed=this.in 00000bc0: 64 65 78 65 64 29 2c 74 68 69 73 2e 63 6f 6d 70 dexed),this.comp 00000bd0: 6f 6e 65 6e 74 73 26 26 28 74 2e 63 6f 6d 70 6f onents&&(t.compo 00000be0: 6e 65 6e 74 73 3d 74 68 69 73 2e 63 6f 6d 70 6f nents=this.compo 00000bf0: 6e 65 6e 74 73 2e 6d 61 70 28 28 74 3d 3e 4a 53 nents.map((t=>JS 00000c00: 4f 4e 2e 70 61 72 73 65 28 74 2e 66 6f 72 6d 61 ON.parse(t.forma 00000c10: 74 28 65 29 29 29 29 29 2c 4a 53 4f 4e 2e 73 74 t(e))))),JSON.st 00000c20: 72 69 6e 67 69 66 79 28 74 29 7d 6c 65 74 20 74 ringify(t)}let t 00000c30: 3d 22 22 3b 72 65 74 75 72 6e 22 61 72 72 61 79 ="";return"array 00000c40: 22 3d 3d 3d 74 68 69 73 2e 62 61 73 65 54 79 70 "===this.baseTyp 00000c50: 65 3f 28 74 2b 3d 74 68 69 73 2e 61 72 72 61 79 e?(t+=this.array 00000c60: 43 68 69 6c 64 72 65 6e 2e 66 6f 72 6d 61 74 28 Children.format( 00000c70: 65 29 2c 74 2b 3d 22 5b 22 2b 28 74 68 69 73 2e e),t+="["+(this. 00000c80: 61 72 72 61 79 4c 65 6e 67 74 68 3c 30 3f 22 22 arrayLength<0?"" 00000c90: 3a 53 74 72 69 6e 67 28 74 68 69 73 2e 61 72 72 :String(this.arr 00000ca0: 61 79 4c 65 6e 67 74 68 29 29 2b 22 5d 22 29 3a ayLength))+"]"): 00000cb0: 22 74 75 70 6c 65 22 3d 3d 3d 74 68 69 73 2e 62 "tuple"===this.b 00000cc0: 61 73 65 54 79 70 65 3f 28 65 21 3d 3d 43 74 2e aseType?(e!==Ct. 00000cd0: 73 69 67 68 61 73 68 26 26 28 74 2b 3d 74 68 69 sighash&&(t+=thi 00000ce0: 73 2e 74 79 70 65 29 2c 74 2b 3d 22 28 22 2b 74 s.type),t+="("+t 00000cf0: 68 69 73 2e 63 6f 6d 70 6f 6e 65 6e 74 73 2e 6d his.components.m 00000d00: 61 70 28 28 74 3d 3e 74 2e 66 6f 72 6d 61 74 28 ap((t=>t.format( 00000d10: 65 29 29 29 2e 6a 6f 69 6e 28 65 3d 3d 3d 43 74 e))).join(e===Ct 00000d20: 2e 66 75 6c 6c 3f 22 2c 20 22 3a 22 2c 22 29 2b .full?", ":",")+ 00000d30: 22 29 22 29 3a 74 2b 3d 74 68 69 73 2e 74 79 70 ")"):t+=this.typ 00000d40: 65 2c 65 21 3d 3d 43 74 2e 73 69 67 68 61 73 68 e,e!==Ct.sighash 00000d50: 26 26 28 21 30 3d 3d 3d 74 68 69 73 2e 69 6e 64 &&(!0===this.ind 00000d60: 65 78 65 64 26 26 28 74 2b 3d 22 20 69 6e 64 65 exed&&(t+=" inde 00000d70: 78 65 64 22 29 2c 65 3d 3d 3d 43 74 2e 66 75 6c xed"),e===Ct.ful 00000d80: 6c 26 26 74 68 69 73 2e 6e 61 6d 65 26 26 28 74 l&&this.name&&(t 00000d90: 2b 3d 22 20 22 2b 74 68 69 73 2e 6e 61 6d 65 29 +=" "+this.name) 00000da0: 29 2c 74 7d 73 74 61 74 69 63 20 66 72 6f 6d 28 ),t}static from( 00000db0: 65 2c 74 29 7b 72 65 74 75 72 6e 22 73 74 72 69 e,t){return"stri 00000dc0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 6b 74 ng"==typeof e?kt 00000dd0: 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 2c 74 29 .fromString(e,t) 00000de0: 3a 6b 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 28 65 :kt.fromObject(e 00000df0: 29 7d 73 74 61 74 69 63 20 66 72 6f 6d 4f 62 6a )}static fromObj 00000e00: 65 63 74 28 65 29 7b 72 65 74 75 72 6e 20 6b 74 ect(e){return kt 00000e10: 2e 69 73 50 61 72 61 6d 54 79 70 65 28 65 29 3f .isParamType(e)? 00000e20: 65 3a 6e 65 77 20 6b 74 28 45 74 2c 7b 6e 61 6d e:new kt(Et,{nam 00000e30: 65 3a 65 2e 6e 61 6d 65 7c 7c 6e 75 6c 6c 2c 74 e:e.name||null,t 00000e40: 79 70 65 3a 42 74 28 65 2e 74 79 70 65 29 2c 69 ype:Bt(e.type),i 00000e50: 6e 64 65 78 65 64 3a 6e 75 6c 6c 3d 3d 65 2e 69 ndexed:null==e.i 00000e60: 6e 64 65 78 65 64 3f 6e 75 6c 6c 3a 21 21 65 2e ndexed?null:!!e. 00000e70: 69 6e 64 65 78 65 64 2c 63 6f 6d 70 6f 6e 65 6e indexed,componen 00000e80: 74 73 3a 65 2e 63 6f 6d 70 6f 6e 65 6e 74 73 3f ts:e.components? 00000e90: 65 2e 63 6f 6d 70 6f 6e 65 6e 74 73 2e 6d 61 70 e.components.map 00000ea0: 28 6b 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 29 3a (kt.fromObject): 00000eb0: 6e 75 6c 6c 7d 29 7d 73 74 61 74 69 63 20 66 72 null})}static fr 00000ec0: 6f 6d 53 74 72 69 6e 67 28 65 2c 74 29 7b 72 65 omString(e,t){re 00000ed0: 74 75 72 6e 20 6e 3d 66 75 6e 63 74 69 6f 6e 28 turn n=function( 00000ee0: 65 2c 74 29 7b 6c 65 74 20 6e 3d 65 3b 66 75 6e e,t){let n=e;fun 00000ef0: 63 74 69 6f 6e 20 72 28 74 29 7b 53 74 2e 74 68 ction r(t){St.th 00000f00: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 00000f10: 28 60 75 6e 65 78 70 65 63 74 65 64 20 63 68 61 (`unexpected cha 00000f20: 72 61 63 74 65 72 20 61 74 20 70 6f 73 69 74 69 racter at positi 00000f30: 6f 6e 20 24 7b 74 7d 60 2c 22 70 61 72 61 6d 22 on ${t}`,"param" 00000f40: 2c 65 29 7d 66 75 6e 63 74 69 6f 6e 20 6f 28 65 ,e)}function o(e 00000f50: 29 7b 6c 65 74 20 6e 3d 7b 74 79 70 65 3a 22 22 ){let n={type:"" 00000f60: 2c 6e 61 6d 65 3a 22 22 2c 70 61 72 65 6e 74 3a ,name:"",parent: 00000f70: 65 2c 73 74 61 74 65 3a 7b 61 6c 6c 6f 77 54 79 e,state:{allowTy 00000f80: 70 65 3a 21 30 7d 7d 3b 72 65 74 75 72 6e 20 74 pe:!0}};return t 00000f90: 26 26 28 6e 2e 69 6e 64 65 78 65 64 3d 21 31 29 &&(n.indexed=!1) 00000fa0: 2c 6e 7d 65 3d 65 2e 72 65 70 6c 61 63 65 28 2f ,n}e=e.replace(/ 00000fb0: 5c 73 2f 67 2c 22 20 22 29 3b 6c 65 74 20 69 3d \s/g," ");let i= 00000fc0: 7b 74 79 70 65 3a 22 22 2c 6e 61 6d 65 3a 22 22 {type:"",name:"" 00000fd0: 2c 73 74 61 74 65 3a 7b 61 6c 6c 6f 77 54 79 70 ,state:{allowTyp 00000fe0: 65 3a 21 30 7d 7d 2c 61 3d 69 3b 66 6f 72 28 6c e:!0}},a=i;for(l 00000ff0: 65 74 20 6e 3d 30 3b 6e 3c 65 2e 6c 65 6e 67 74 et n=0;n<e.lengt 00001000: 68 3b 6e 2b 2b 29 7b 6c 65 74 20 69 3d 65 5b 6e h;n++){let i=e[n 00001010: 5d 3b 73 77 69 74 63 68 28 69 29 7b 63 61 73 65 ];switch(i){case 00001020: 22 28 22 3a 61 2e 73 74 61 74 65 2e 61 6c 6c 6f "(":a.state.allo 00001030: 77 54 79 70 65 26 26 22 22 3d 3d 3d 61 2e 74 79 wType&&""===a.ty 00001040: 70 65 3f 61 2e 74 79 70 65 3d 22 74 75 70 6c 65 pe?a.type="tuple 00001050: 22 3a 61 2e 73 74 61 74 65 2e 61 6c 6c 6f 77 50 ":a.state.allowP 00001060: 61 72 61 6d 73 7c 7c 72 28 6e 29 2c 61 2e 73 74 arams||r(n),a.st 00001070: 61 74 65 2e 61 6c 6c 6f 77 54 79 70 65 3d 21 31 ate.allowType=!1 00001080: 2c 61 2e 74 79 70 65 3d 42 74 28 61 2e 74 79 70 ,a.type=Bt(a.typ 00001090: 65 29 2c 61 2e 63 6f 6d 70 6f 6e 65 6e 74 73 3d e),a.components= 000010a0: 5b 6f 28 61 29 5d 2c 61 3d 61 2e 63 6f 6d 70 6f [o(a)],a=a.compo 000010b0: 6e 65 6e 74 73 5b 30 5d 3b 62 72 65 61 6b 3b 63 nents[0];break;c 000010c0: 61 73 65 22 29 22 3a 64 65 6c 65 74 65 20 61 2e ase")":delete a. 000010d0: 73 74 61 74 65 2c 22 69 6e 64 65 78 65 64 22 3d state,"indexed"= 000010e0: 3d 3d 61 2e 6e 61 6d 65 26 26 28 74 7c 7c 72 28 ==a.name&&(t||r( 000010f0: 6e 29 2c 61 2e 69 6e 64 65 78 65 64 3d 21 30 2c n),a.indexed=!0, 00001100: 61 2e 6e 61 6d 65 3d 22 22 29 2c 78 74 28 61 2e a.name=""),xt(a. 00001110: 74 79 70 65 2c 61 2e 6e 61 6d 65 29 26 26 28 61 type,a.name)&&(a 00001120: 2e 6e 61 6d 65 3d 22 22 29 2c 61 2e 74 79 70 65 .name=""),a.type 00001130: 3d 42 74 28 61 2e 74 79 70 65 29 3b 6c 65 74 20 =Bt(a.type);let 00001140: 65 3d 61 3b 61 3d 61 2e 70 61 72 65 6e 74 2c 61 e=a;a=a.parent,a 00001150: 7c 7c 72 28 6e 29 2c 64 65 6c 65 74 65 20 65 2e ||r(n),delete e. 00001160: 70 61 72 65 6e 74 2c 61 2e 73 74 61 74 65 2e 61 parent,a.state.a 00001170: 6c 6c 6f 77 50 61 72 61 6d 73 3d 21 31 2c 61 2e llowParams=!1,a. 00001180: 73 74 61 74 65 2e 61 6c 6c 6f 77 4e 61 6d 65 3d state.allowName= 00001190: 21 30 2c 61 2e 73 74 61 74 65 2e 61 6c 6c 6f 77 !0,a.state.allow 000011a0: 41 72 72 61 79 3d 21 30 3b 62 72 65 61 6b 3b 63 Array=!0;break;c 000011b0: 61 73 65 22 2c 22 3a 64 65 6c 65 74 65 20 61 2e ase",":delete a. 000011c0: 73 74 61 74 65 2c 22 69 6e 64 65 78 65 64 22 3d state,"indexed"= 000011d0: 3d 3d 61 2e 6e 61 6d 65 26 26 28 74 7c 7c 72 28 ==a.name&&(t||r( 000011e0: 6e 29 2c 61 2e 69 6e 64 65 78 65 64 3d 21 30 2c n),a.indexed=!0, 000011f0: 61 2e 6e 61 6d 65 3d 22 22 29 2c 78 74 28 61 2e a.name=""),xt(a. 00001200: 74 79 70 65 2c 61 2e 6e 61 6d 65 29 26 26 28 61 type,a.name)&&(a 00001210: 2e 6e 61 6d 65 3d 22 22 29 2c 61 2e 74 79 70 65 .name=""),a.type 00001220: 3d 42 74 28 61 2e 74 79 70 65 29 3b 6c 65 74 20 =Bt(a.type);let 00001230: 73 3d 6f 28 61 2e 70 61 72 65 6e 74 29 3b 61 2e s=o(a.parent);a. 00001240: 70 61 72 65 6e 74 2e 63 6f 6d 70 6f 6e 65 6e 74 parent.component 00001250: 73 2e 70 75 73 68 28 73 29 2c 64 65 6c 65 74 65 s.push(s),delete 00001260: 20 61 2e 70 61 72 65 6e 74 2c 61 3d 73 3b 62 72 a.parent,a=s;br 00001270: 65 61 6b 3b 63 61 73 65 22 20 22 3a 61 2e 73 74 eak;case" ":a.st 00001280: 61 74 65 2e 61 6c 6c 6f 77 54 79 70 65 26 26 22 ate.allowType&&" 00001290: 22 21 3d 3d 61 2e 74 79 70 65 26 26 28 61 2e 74 "!==a.type&&(a.t 000012a0: 79 70 65 3d 42 74 28 61 2e 74 79 70 65 29 2c 64 ype=Bt(a.type),d 000012b0: 65 6c 65 74 65 20 61 2e 73 74 61 74 65 2e 61 6c elete a.state.al 000012c0: 6c 6f 77 54 79 70 65 2c 61 2e 73 74 61 74 65 2e lowType,a.state. 000012d0: 61 6c 6c 6f 77 4e 61 6d 65 3d 21 30 2c 61 2e 73 allowName=!0,a.s 000012e0: 74 61 74 65 2e 61 6c 6c 6f 77 50 61 72 61 6d 73 tate.allowParams 000012f0: 3d 21 30 29 2c 61 2e 73 74 61 74 65 2e 61 6c 6c =!0),a.state.all 00001300: 6f 77 4e 61 6d 65 26 26 22 22 21 3d 3d 61 2e 6e owName&&""!==a.n 00001310: 61 6d 65 26 26 28 22 69 6e 64 65 78 65 64 22 3d ame&&("indexed"= 00001320: 3d 3d 61 2e 6e 61 6d 65 3f 28 74 7c 7c 72 28 6e ==a.name?(t||r(n 00001330: 29 2c 61 2e 69 6e 64 65 78 65 64 26 26 72 28 6e ),a.indexed&&r(n 00001340: 29 2c 61 2e 69 6e 64 65 78 65 64 3d 21 30 2c 61 ),a.indexed=!0,a 00001350: 2e 6e 61 6d 65 3d 22 22 29 3a 78 74 28 61 2e 74 .name=""):xt(a.t 00001360: 79 70 65 2c 61 2e 6e 61 6d 65 29 3f 61 2e 6e 61 ype,a.name)?a.na 00001370: 6d 65 3d 22 22 3a 61 2e 73 74 61 74 65 2e 61 6c me="":a.state.al 00001380: 6c 6f 77 4e 61 6d 65 3d 21 31 29 3b 62 72 65 61 lowName=!1);brea 00001390: 6b 3b 63 61 73 65 22 5b 22 3a 61 2e 73 74 61 74 k;case"[":a.stat 000013a0: 65 2e 61 6c 6c 6f 77 41 72 72 61 79 7c 7c 72 28 e.allowArray||r( 000013b0: 6e 29 2c 61 2e 74 79 70 65 2b 3d 69 2c 61 2e 73 n),a.type+=i,a.s 000013c0: 74 61 74 65 2e 61 6c 6c 6f 77 41 72 72 61 79 3d tate.allowArray= 000013d0: 21 31 2c 61 2e 73 74 61 74 65 2e 61 6c 6c 6f 77 !1,a.state.allow 000013e0: 4e 61 6d 65 3d 21 31 2c 61 2e 73 74 61 74 65 2e Name=!1,a.state. 000013f0: 72 65 61 64 41 72 72 61 79 3d 21 30 3b 62 72 65 readArray=!0;bre 00001400: 61 6b 3b 63 61 73 65 22 5d 22 3a 61 2e 73 74 61 ak;case"]":a.sta 00001410: 74 65 2e 72 65 61 64 41 72 72 61 79 7c 7c 72 28 te.readArray||r( 00001420: 6e 29 2c 61 2e 74 79 70 65 2b 3d 69 2c 61 2e 73 n),a.type+=i,a.s 00001430: 74 61 74 65 2e 72 65 61 64 41 72 72 61 79 3d 21 tate.readArray=! 00001440: 31 2c 61 2e 73 74 61 74 65 2e 61 6c 6c 6f 77 41 1,a.state.allowA 00001450: 72 72 61 79 3d 21 30 2c 61 2e 73 74 61 74 65 2e rray=!0,a.state. 00001460: 61 6c 6c 6f 77 4e 61 6d 65 3d 21 30 3b 62 72 65 allowName=!0;bre 00001470: 61 6b 3b 64 65 66 61 75 6c 74 3a 61 2e 73 74 61 ak;default:a.sta 00001480: 74 65 2e 61 6c 6c 6f 77 54 79 70 65 3f 28 61 2e te.allowType?(a. 00001490: 74 79 70 65 2b 3d 69 2c 61 2e 73 74 61 74 65 2e type+=i,a.state. 000014a0: 61 6c 6c 6f 77 50 61 72 61 6d 73 3d 21 30 2c 61 allowParams=!0,a 000014b0: 2e 73 74 61 74 65 2e 61 6c 6c 6f 77 41 72 72 61 .state.allowArra 000014c0: 79 3d 21 30 29 3a 61 2e 73 74 61 74 65 2e 61 6c y=!0):a.state.al 000014d0: 6c 6f 77 4e 61 6d 65 3f 28 61 2e 6e 61 6d 65 2b lowName?(a.name+ 000014e0: 3d 69 2c 64 65 6c 65 74 65 20 61 2e 73 74 61 74 =i,delete a.stat 000014f0: 65 2e 61 6c 6c 6f 77 41 72 72 61 79 29 3a 61 2e e.allowArray):a. 00001500: 73 74 61 74 65 2e 72 65 61 64 41 72 72 61 79 3f state.readArray? 00001510: 61 2e 74 79 70 65 2b 3d 69 3a 72 28 6e 29 7d 7d a.type+=i:r(n)}} 00001520: 72 65 74 75 72 6e 20 61 2e 70 61 72 65 6e 74 26 return a.parent& 00001530: 26 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &St.throwArgumen 00001540: 74 45 72 72 6f 72 28 22 75 6e 65 78 70 65 63 74 tError("unexpect 00001550: 65 64 20 65 6f 66 22 2c 22 70 61 72 61 6d 22 2c ed eof","param", 00001560: 65 29 2c 64 65 6c 65 74 65 20 69 2e 73 74 61 74 e),delete i.stat 00001570: 65 2c 22 69 6e 64 65 78 65 64 22 3d 3d 3d 61 2e e,"indexed"===a. 00001580: 6e 61 6d 65 3f 28 74 7c 7c 72 28 6e 2e 6c 65 6e name?(t||r(n.len 00001590: 67 74 68 2d 37 29 2c 61 2e 69 6e 64 65 78 65 64 gth-7),a.indexed 000015a0: 26 26 72 28 6e 2e 6c 65 6e 67 74 68 2d 37 29 2c &&r(n.length-7), 000015b0: 61 2e 69 6e 64 65 78 65 64 3d 21 30 2c 61 2e 6e a.indexed=!0,a.n 000015c0: 61 6d 65 3d 22 22 29 3a 78 74 28 61 2e 74 79 70 ame=""):xt(a.typ 000015d0: 65 2c 61 2e 6e 61 6d 65 29 26 26 28 61 2e 6e 61 e,a.name)&&(a.na 000015e0: 6d 65 3d 22 22 29 2c 69 2e 74 79 70 65 3d 42 74 me=""),i.type=Bt 000015f0: 28 69 2e 74 79 70 65 29 2c 69 7d 28 65 2c 21 21 (i.type),i}(e,!! 00001600: 74 29 2c 6b 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 t),kt.fromObject 00001610: 28 7b 6e 61 6d 65 3a 6e 2e 6e 61 6d 65 2c 74 79 ({name:n.name,ty 00001620: 70 65 3a 6e 2e 74 79 70 65 2c 69 6e 64 65 78 65 pe:n.type,indexe 00001630: 64 3a 6e 2e 69 6e 64 65 78 65 64 2c 63 6f 6d 70 d:n.indexed,comp 00001640: 6f 6e 65 6e 74 73 3a 6e 2e 63 6f 6d 70 6f 6e 65 onents:n.compone 00001650: 6e 74 73 7d 29 3b 76 61 72 20 6e 7d 73 74 61 74 nts});var n}stat 00001660: 69 63 20 69 73 50 61 72 61 6d 54 79 70 65 28 65 ic isParamType(e 00001670: 29 7b 72 65 74 75 72 6e 21 28 6e 75 6c 6c 3d 3d ){return!(null== 00001680: 65 7c 7c 21 65 2e 5f 69 73 50 61 72 61 6d 54 79 e||!e._isParamTy 00001690: 70 65 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 49 74 pe)}}function It 000016a0: 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 66 75 6e (e,t){return fun 000016b0: 63 74 69 6f 6e 28 65 29 7b 65 3d 65 2e 74 72 69 ction(e){e=e.tri 000016c0: 6d 28 29 3b 6c 65 74 20 74 3d 5b 5d 2c 6e 3d 22 m();let t=[],n=" 000016d0: 22 2c 72 3d 30 3b 66 6f 72 28 6c 65 74 20 6f 3d ",r=0;for(let o= 000016e0: 30 3b 6f 3c 65 2e 6c 65 6e 67 74 68 3b 6f 2b 2b 0;o<e.length;o++ 000016f0: 29 7b 6c 65 74 20 69 3d 65 5b 6f 5d 3b 22 2c 22 ){let i=e[o];"," 00001700: 3d 3d 3d 69 26 26 30 3d 3d 3d 72 3f 28 74 2e 70 ===i&&0===r?(t.p 00001710: 75 73 68 28 6e 29 2c 6e 3d 22 22 29 3a 28 6e 2b ush(n),n=""):(n+ 00001720: 3d 69 2c 22 28 22 3d 3d 3d 69 3f 72 2b 2b 3a 22 =i,"("===i?r++:" 00001730: 29 22 3d 3d 3d 69 26 26 28 72 2d 2d 2c 2d 31 3d )"===i&&(r--,-1= 00001740: 3d 3d 72 26 26 53 74 2e 74 68 72 6f 77 41 72 67 ==r&&St.throwArg 00001750: 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 62 61 umentError("unba 00001760: 6c 61 6e 63 65 64 20 70 61 72 65 6e 74 68 65 73 lanced parenthes 00001770: 69 73 22 2c 22 76 61 6c 75 65 22 2c 65 29 29 29 is","value",e))) 00001780: 7d 6e 26 26 74 2e 70 75 73 68 28 6e 29 3b 72 65 }n&&t.push(n);re 00001790: 74 75 72 6e 20 74 7d 28 65 29 2e 6d 61 70 28 28 turn t}(e).map(( 000017a0: 65 3d 3e 6b 74 2e 66 72 6f 6d 53 74 72 69 6e 67 e=>kt.fromString 000017b0: 28 65 2c 74 29 29 29 7d 63 6c 61 73 73 20 4f 74 (e,t)))}class Ot 000017c0: 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 {constructor(e,t 000017d0: 29 7b 65 21 3d 3d 45 74 26 26 53 74 2e 74 68 72 ){e!==Et&&St.thr 000017e0: 6f 77 45 72 72 6f 72 28 22 75 73 65 20 61 20 73 owError("use a s 000017f0: 74 61 74 69 63 20 66 72 6f 6d 20 6d 65 74 68 6f tatic from metho 00001800: 64 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 d",y.errors.UNSU 00001810: 50 50 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f PPORTED_OPERATIO 00001820: 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a 22 6e 65 N,{operation:"ne 00001830: 77 20 46 72 61 67 6d 65 6e 74 28 29 22 7d 29 2c w Fragment()"}), 00001840: 54 74 28 74 68 69 73 2c 74 29 2c 74 68 69 73 2e Tt(this,t),this. 00001850: 5f 69 73 46 72 61 67 6d 65 6e 74 3d 21 30 2c 4f _isFragment=!0,O 00001860: 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 74 68 69 bject.freeze(thi 00001870: 73 29 7d 73 74 61 74 69 63 20 66 72 6f 6d 28 65 s)}static from(e 00001880: 29 7b 72 65 74 75 72 6e 20 4f 74 2e 69 73 46 72 ){return Ot.isFr 00001890: 61 67 6d 65 6e 74 28 65 29 3f 65 3a 22 73 74 72 agment(e)?e:"str 000018a0: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 4f ing"==typeof e?O 000018b0: 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 29 3a t.fromString(e): 000018c0: 4f 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 28 65 29 Ot.fromObject(e) 000018d0: 7d 73 74 61 74 69 63 20 66 72 6f 6d 4f 62 6a 65 }static fromObje 000018e0: 63 74 28 65 29 7b 69 66 28 4f 74 2e 69 73 46 72 ct(e){if(Ot.isFr 000018f0: 61 67 6d 65 6e 74 28 65 29 29 72 65 74 75 72 6e agment(e))return 00001900: 20 65 3b 73 77 69 74 63 68 28 65 2e 74 79 70 65 e;switch(e.type 00001910: 29 7b 63 61 73 65 22 66 75 6e 63 74 69 6f 6e 22 ){case"function" 00001920: 3a 72 65 74 75 72 6e 20 4c 74 2e 66 72 6f 6d 4f :return Lt.fromO 00001930: 62 6a 65 63 74 28 65 29 3b 63 61 73 65 22 65 76 bject(e);case"ev 00001940: 65 6e 74 22 3a 72 65 74 75 72 6e 20 52 74 2e 66 ent":return Rt.f 00001950: 72 6f 6d 4f 62 6a 65 63 74 28 65 29 3b 63 61 73 romObject(e);cas 00001960: 65 22 63 6f 6e 73 74 72 75 63 74 6f 72 22 3a 72 e"constructor":r 00001970: 65 74 75 72 6e 20 44 74 2e 66 72 6f 6d 4f 62 6a eturn Dt.fromObj 00001980: 65 63 74 28 65 29 3b 63 61 73 65 22 65 72 72 6f ect(e);case"erro 00001990: 72 22 3a 72 65 74 75 72 6e 20 55 74 2e 66 72 6f r":return Ut.fro 000019a0: 6d 4f 62 6a 65 63 74 28 65 29 3b 63 61 73 65 22 mObject(e);case" 000019b0: 66 61 6c 6c 62 61 63 6b 22 3a 63 61 73 65 22 72 fallback":case"r 000019c0: 65 63 65 69 76 65 22 3a 72 65 74 75 72 6e 20 6e eceive":return n 000019d0: 75 6c 6c 7d 72 65 74 75 72 6e 20 53 74 2e 74 68 ull}return St.th 000019e0: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 000019f0: 28 22 69 6e 76 61 6c 69 64 20 66 72 61 67 6d 65 ("invalid fragme 00001a00: 6e 74 20 6f 62 6a 65 63 74 22 2c 22 76 61 6c 75 nt object","valu 00001a10: 65 22 2c 65 29 7d 73 74 61 74 69 63 20 66 72 6f e",e)}static fro 00001a20: 6d 53 74 72 69 6e 67 28 65 29 7b 72 65 74 75 72 mString(e){retur 00001a30: 6e 22 65 76 65 6e 74 22 3d 3d 3d 28 65 3d 28 65 n"event"===(e=(e 00001a40: 3d 28 65 3d 65 2e 72 65 70 6c 61 63 65 28 2f 5c =(e=e.replace(/\ 00001a50: 73 2f 67 2c 22 20 22 29 29 2e 72 65 70 6c 61 63 s/g," ")).replac 00001a60: 65 28 2f 5c 28 2f 67 2c 22 20 28 22 29 2e 72 65 e(/\(/g," (").re 00001a70: 70 6c 61 63 65 28 2f 5c 29 2f 67 2c 22 29 20 22 place(/\)/g,") " 00001a80: 29 2e 72 65 70 6c 61 63 65 28 2f 5c 73 2b 2f 67 ).replace(/\s+/g 00001a90: 2c 22 20 22 29 29 2e 74 72 69 6d 28 29 29 2e 73 ," ")).trim()).s 00001aa0: 70 6c 69 74 28 22 20 22 29 5b 30 5d 3f 52 74 2e plit(" ")[0]?Rt. 00001ab0: 66 72 6f 6d 53 74 72 69 6e 67 28 65 2e 73 75 62 fromString(e.sub 00001ac0: 73 74 72 69 6e 67 28 35 29 2e 74 72 69 6d 28 29 string(5).trim() 00001ad0: 29 3a 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 3d 65 ):"function"===e 00001ae0: 2e 73 70 6c 69 74 28 22 20 22 29 5b 30 5d 3f 4c .split(" ")[0]?L 00001af0: 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 2e 73 t.fromString(e.s 00001b00: 75 62 73 74 72 69 6e 67 28 38 29 2e 74 72 69 6d ubstring(8).trim 00001b10: 28 29 29 3a 22 63 6f 6e 73 74 72 75 63 74 6f 72 ()):"constructor 00001b20: 22 3d 3d 3d 65 2e 73 70 6c 69 74 28 22 28 22 29 "===e.split("(") 00001b30: 5b 30 5d 2e 74 72 69 6d 28 29 3f 44 74 2e 66 72 [0].trim()?Dt.fr 00001b40: 6f 6d 53 74 72 69 6e 67 28 65 2e 74 72 69 6d 28 omString(e.trim( 00001b50: 29 29 3a 22 65 72 72 6f 72 22 3d 3d 3d 65 2e 73 )):"error"===e.s 00001b60: 70 6c 69 74 28 22 20 22 29 5b 30 5d 3f 55 74 2e plit(" ")[0]?Ut. 00001b70: 66 72 6f 6d 53 74 72 69 6e 67 28 65 2e 73 75 62 fromString(e.sub 00001b80: 73 74 72 69 6e 67 28 35 29 2e 74 72 69 6d 28 29 string(5).trim() 00001b90: 29 3a 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 ):St.throwArgume 00001ba0: 6e 74 45 72 72 6f 72 28 22 75 6e 73 75 70 70 6f ntError("unsuppo 00001bb0: 72 74 65 64 20 66 72 61 67 6d 65 6e 74 22 2c 22 rted fragment"," 00001bc0: 76 61 6c 75 65 22 2c 65 29 7d 73 74 61 74 69 63 value",e)}static 00001bd0: 20 69 73 46 72 61 67 6d 65 6e 74 28 65 29 7b 72 isFragment(e){r 00001be0: 65 74 75 72 6e 21 28 21 65 7c 7c 21 65 2e 5f 69 eturn!(!e||!e._i 00001bf0: 73 46 72 61 67 6d 65 6e 74 29 7d 7d 63 6c 61 73 sFragment)}}clas 00001c00: 73 20 52 74 20 65 78 74 65 6e 64 73 20 4f 74 7b s Rt extends Ot{ 00001c10: 66 6f 72 6d 61 74 28 65 29 7b 69 66 28 65 7c 7c format(e){if(e|| 00001c20: 28 65 3d 43 74 2e 73 69 67 68 61 73 68 29 2c 43 (e=Ct.sighash),C 00001c30: 74 5b 65 5d 7c 7c 53 74 2e 74 68 72 6f 77 41 72 t[e]||St.throwAr 00001c40: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 00001c50: 61 6c 69 64 20 66 6f 72 6d 61 74 20 74 79 70 65 alid format type 00001c60: 22 2c 22 66 6f 72 6d 61 74 22 2c 65 29 2c 65 3d ","format",e),e= 00001c70: 3d 3d 43 74 2e 6a 73 6f 6e 29 72 65 74 75 72 6e ==Ct.json)return 00001c80: 20 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 JSON.stringify( 00001c90: 7b 74 79 70 65 3a 22 65 76 65 6e 74 22 2c 61 6e {type:"event",an 00001ca0: 6f 6e 79 6d 6f 75 73 3a 74 68 69 73 2e 61 6e 6f onymous:this.ano 00001cb0: 6e 79 6d 6f 75 73 2c 6e 61 6d 65 3a 74 68 69 73 nymous,name:this 00001cc0: 2e 6e 61 6d 65 2c 69 6e 70 75 74 73 3a 74 68 69 .name,inputs:thi 00001cd0: 73 2e 69 6e 70 75 74 73 2e 6d 61 70 28 28 74 3d s.inputs.map((t= 00001ce0: 3e 4a 53 4f 4e 2e 70 61 72 73 65 28 74 2e 66 6f >JSON.parse(t.fo 00001cf0: 72 6d 61 74 28 65 29 29 29 29 7d 29 3b 6c 65 74 rmat(e))))});let 00001d00: 20 74 3d 22 22 3b 72 65 74 75 72 6e 20 65 21 3d t="";return e!= 00001d10: 3d 43 74 2e 73 69 67 68 61 73 68 26 26 28 74 2b =Ct.sighash&&(t+ 00001d20: 3d 22 65 76 65 6e 74 20 22 29 2c 74 2b 3d 74 68 ="event "),t+=th 00001d30: 69 73 2e 6e 61 6d 65 2b 22 28 22 2b 74 68 69 73 is.name+"("+this 00001d40: 2e 69 6e 70 75 74 73 2e 6d 61 70 28 28 74 3d 3e .inputs.map((t=> 00001d50: 74 2e 66 6f 72 6d 61 74 28 65 29 29 29 2e 6a 6f t.format(e))).jo 00001d60: 69 6e 28 65 3d 3d 3d 43 74 2e 66 75 6c 6c 3f 22 in(e===Ct.full?" 00001d70: 2c 20 22 3a 22 2c 22 29 2b 22 29 20 22 2c 65 21 , ":",")+") ",e! 00001d80: 3d 3d 43 74 2e 73 69 67 68 61 73 68 26 26 74 68 ==Ct.sighash&&th 00001d90: 69 73 2e 61 6e 6f 6e 79 6d 6f 75 73 26 26 28 74 is.anonymous&&(t 00001da0: 2b 3d 22 61 6e 6f 6e 79 6d 6f 75 73 20 22 29 2c +="anonymous "), 00001db0: 74 2e 74 72 69 6d 28 29 7d 73 74 61 74 69 63 20 t.trim()}static 00001dc0: 66 72 6f 6d 28 65 29 7b 72 65 74 75 72 6e 22 73 from(e){return"s 00001dd0: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 00001de0: 3f 52 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 ?Rt.fromString(e 00001df0: 29 3a 52 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 28 ):Rt.fromObject( 00001e00: 65 29 7d 73 74 61 74 69 63 20 66 72 6f 6d 4f 62 e)}static fromOb 00001e10: 6a 65 63 74 28 65 29 7b 69 66 28 52 74 2e 69 73 ject(e){if(Rt.is 00001e20: 45 76 65 6e 74 46 72 61 67 6d 65 6e 74 28 65 29 EventFragment(e) 00001e30: 29 72 65 74 75 72 6e 20 65 3b 22 65 76 65 6e 74 )return e;"event 00001e40: 22 21 3d 3d 65 2e 74 79 70 65 26 26 53 74 2e 74 "!==e.type&&St.t 00001e50: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00001e60: 72 28 22 69 6e 76 61 6c 69 64 20 65 76 65 6e 74 r("invalid event 00001e70: 20 6f 62 6a 65 63 74 22 2c 22 76 61 6c 75 65 22 object","value" 00001e80: 2c 65 29 3b 63 6f 6e 73 74 20 74 3d 7b 6e 61 6d ,e);const t={nam 00001e90: 65 3a 7a 74 28 65 2e 6e 61 6d 65 29 2c 61 6e 6f e:zt(e.name),ano 00001ea0: 6e 79 6d 6f 75 73 3a 65 2e 61 6e 6f 6e 79 6d 6f nymous:e.anonymo 00001eb0: 75 73 2c 69 6e 70 75 74 73 3a 65 2e 69 6e 70 75 us,inputs:e.inpu 00001ec0: 74 73 3f 65 2e 69 6e 70 75 74 73 2e 6d 61 70 28 ts?e.inputs.map( 00001ed0: 6b 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 29 3a 5b kt.fromObject):[ 00001ee0: 5d 2c 74 79 70 65 3a 22 65 76 65 6e 74 22 7d 3b ],type:"event"}; 00001ef0: 72 65 74 75 72 6e 20 6e 65 77 20 52 74 28 45 74 return new Rt(Et 00001f00: 2c 74 29 7d 73 74 61 74 69 63 20 66 72 6f 6d 53 ,t)}static fromS 00001f10: 74 72 69 6e 67 28 65 29 7b 6c 65 74 20 74 3d 65 tring(e){let t=e 00001f20: 2e 6d 61 74 63 68 28 47 74 29 3b 74 7c 7c 53 74 .match(Gt);t||St 00001f30: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00001f40: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 65 76 65 ror("invalid eve 00001f50: 6e 74 20 73 74 72 69 6e 67 22 2c 22 76 61 6c 75 nt string","valu 00001f60: 65 22 2c 65 29 3b 6c 65 74 20 6e 3d 21 31 3b 72 e",e);let n=!1;r 00001f70: 65 74 75 72 6e 20 74 5b 33 5d 2e 73 70 6c 69 74 eturn t[3].split 00001f80: 28 22 20 22 29 2e 66 6f 72 45 61 63 68 28 28 65 (" ").forEach((e 00001f90: 3d 3e 7b 73 77 69 74 63 68 28 65 2e 74 72 69 6d =>{switch(e.trim 00001fa0: 28 29 29 7b 63 61 73 65 22 61 6e 6f 6e 79 6d 6f ()){case"anonymo 00001fb0: 75 73 22 3a 6e 3d 21 30 3b 62 72 65 61 6b 3b 63 us":n=!0;break;c 00001fc0: 61 73 65 22 22 3a 62 72 65 61 6b 3b 64 65 66 61 ase"":break;defa 00001fd0: 75 6c 74 3a 53 74 2e 77 61 72 6e 28 22 75 6e 6b ult:St.warn("unk 00001fe0: 6e 6f 77 6e 20 6d 6f 64 69 66 69 65 72 3a 20 22 nown modifier: " 00001ff0: 2b 65 29 7d 7d 29 29 2c 52 74 2e 66 72 6f 6d 4f +e)}})),Rt.fromO 00002000: 62 6a 65 63 74 28 7b 6e 61 6d 65 3a 74 5b 31 5d bject({name:t[1] 00002010: 2e 74 72 69 6d 28 29 2c 61 6e 6f 6e 79 6d 6f 75 .trim(),anonymou 00002020: 73 3a 6e 2c 69 6e 70 75 74 73 3a 49 74 28 74 5b s:n,inputs:It(t[ 00002030: 32 5d 2c 21 30 29 2c 74 79 70 65 3a 22 65 76 65 2],!0),type:"eve 00002040: 6e 74 22 7d 29 7d 73 74 61 74 69 63 20 69 73 45 nt"})}static isE 00002050: 76 65 6e 74 46 72 61 67 6d 65 6e 74 28 65 29 7b ventFragment(e){ 00002060: 72 65 74 75 72 6e 20 65 26 26 65 2e 5f 69 73 46 return e&&e._isF 00002070: 72 61 67 6d 65 6e 74 26 26 22 65 76 65 6e 74 22 ragment&&"event" 00002080: 3d 3d 3d 65 2e 74 79 70 65 7d 7d 66 75 6e 63 74 ===e.type}}funct 00002090: 69 6f 6e 20 4e 74 28 65 2c 74 29 7b 74 2e 67 61 ion Nt(e,t){t.ga 000020a0: 73 3d 6e 75 6c 6c 3b 6c 65 74 20 6e 3d 65 2e 73 s=null;let n=e.s 000020b0: 70 6c 69 74 28 22 40 22 29 3b 72 65 74 75 72 6e plit("@");return 000020c0: 20 31 21 3d 3d 6e 2e 6c 65 6e 67 74 68 3f 28 6e 1!==n.length?(n 000020d0: 2e 6c 65 6e 67 74 68 3e 32 26 26 53 74 2e 74 68 .length>2&&St.th 000020e0: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 000020f0: 28 22 69 6e 76 61 6c 69 64 20 68 75 6d 61 6e 2d ("invalid human- 00002100: 72 65 61 64 61 62 6c 65 20 41 42 49 20 73 69 67 readable ABI sig 00002110: 6e 61 74 75 72 65 22 2c 22 76 61 6c 75 65 22 2c nature","value", 00002120: 65 29 2c 6e 5b 31 5d 2e 6d 61 74 63 68 28 2f 5e e),n[1].match(/^ 00002130: 5b 30 2d 39 5d 2b 24 2f 29 7c 7c 53 74 2e 74 68 [0-9]+$/)||St.th 00002140: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 00002150: 28 22 69 6e 76 61 6c 69 64 20 68 75 6d 61 6e 2d ("invalid human- 00002160: 72 65 61 64 61 62 6c 65 20 41 42 49 20 73 69 67 readable ABI sig 00002170: 6e 61 74 75 72 65 20 67 61 73 22 2c 22 76 61 6c nature gas","val 00002180: 75 65 22 2c 65 29 2c 74 2e 67 61 73 3d 59 2e 66 ue",e),t.gas=Y.f 00002190: 72 6f 6d 28 6e 5b 31 5d 29 2c 6e 5b 30 5d 29 3a rom(n[1]),n[0]): 000021a0: 65 7d 66 75 6e 63 74 69 6f 6e 20 50 74 28 65 2c e}function Pt(e, 000021b0: 74 29 7b 74 2e 63 6f 6e 73 74 61 6e 74 3d 21 31 t){t.constant=!1 000021c0: 2c 74 2e 70 61 79 61 62 6c 65 3d 21 31 2c 74 2e ,t.payable=!1,t. 000021d0: 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 3d stateMutability= 000021e0: 22 6e 6f 6e 70 61 79 61 62 6c 65 22 2c 65 2e 73 "nonpayable",e.s 000021f0: 70 6c 69 74 28 22 20 22 29 2e 66 6f 72 45 61 63 plit(" ").forEac 00002200: 68 28 28 65 3d 3e 7b 73 77 69 74 63 68 28 65 2e h((e=>{switch(e. 00002210: 74 72 69 6d 28 29 29 7b 63 61 73 65 22 63 6f 6e trim()){case"con 00002220: 73 74 61 6e 74 22 3a 74 2e 63 6f 6e 73 74 61 6e stant":t.constan 00002230: 74 3d 21 30 3b 62 72 65 61 6b 3b 63 61 73 65 22 t=!0;break;case" 00002240: 70 61 79 61 62 6c 65 22 3a 74 2e 70 61 79 61 62 payable":t.payab 00002250: 6c 65 3d 21 30 2c 74 2e 73 74 61 74 65 4d 75 74 le=!0,t.stateMut 00002260: 61 62 69 6c 69 74 79 3d 22 70 61 79 61 62 6c 65 ability="payable 00002270: 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 6e 6f 6e ";break;case"non 00002280: 70 61 79 61 62 6c 65 22 3a 74 2e 70 61 79 61 62 payable":t.payab 00002290: 6c 65 3d 21 31 2c 74 2e 73 74 61 74 65 4d 75 74 le=!1,t.stateMut 000022a0: 61 62 69 6c 69 74 79 3d 22 6e 6f 6e 70 61 79 61 ability="nonpaya 000022b0: 62 6c 65 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 ble";break;case" 000022c0: 70 75 72 65 22 3a 74 2e 63 6f 6e 73 74 61 6e 74 pure":t.constant 000022d0: 3d 21 30 2c 74 2e 73 74 61 74 65 4d 75 74 61 62 =!0,t.stateMutab 000022e0: 69 6c 69 74 79 3d 22 70 75 72 65 22 3b 62 72 65 ility="pure";bre 000022f0: 61 6b 3b 63 61 73 65 22 76 69 65 77 22 3a 74 2e ak;case"view":t. 00002300: 63 6f 6e 73 74 61 6e 74 3d 21 30 2c 74 2e 73 74 constant=!0,t.st 00002310: 61 74 65 4d 75 74 61 62 69 6c 69 74 79 3d 22 76 ateMutability="v 00002320: 69 65 77 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 iew";break;case" 00002330: 65 78 74 65 72 6e 61 6c 22 3a 63 61 73 65 22 70 external":case"p 00002340: 75 62 6c 69 63 22 3a 63 61 73 65 22 22 3a 62 72 ublic":case"":br 00002350: 65 61 6b 3b 64 65 66 61 75 6c 74 3a 63 6f 6e 73 eak;default:cons 00002360: 6f 6c 65 2e 6c 6f 67 28 22 75 6e 6b 6e 6f 77 6e ole.log("unknown 00002370: 20 6d 6f 64 69 66 69 65 72 3a 20 22 2b 65 29 7d modifier: "+e)} 00002380: 7d 29 29 7d 66 75 6e 63 74 69 6f 6e 20 4d 74 28 }))}function Mt( 00002390: 65 29 7b 6c 65 74 20 74 3d 7b 63 6f 6e 73 74 61 e){let t={consta 000023a0: 6e 74 3a 21 31 2c 70 61 79 61 62 6c 65 3a 21 30 nt:!1,payable:!0 000023b0: 2c 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 ,stateMutability 000023c0: 3a 22 70 61 79 61 62 6c 65 22 7d 3b 72 65 74 75 :"payable"};retu 000023d0: 72 6e 20 6e 75 6c 6c 21 3d 65 2e 73 74 61 74 65 rn null!=e.state 000023e0: 4d 75 74 61 62 69 6c 69 74 79 3f 28 74 2e 73 74 Mutability?(t.st 000023f0: 61 74 65 4d 75 74 61 62 69 6c 69 74 79 3d 65 2e ateMutability=e. 00002400: 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 2c stateMutability, 00002410: 74 2e 63 6f 6e 73 74 61 6e 74 3d 22 76 69 65 77 t.constant="view 00002420: 22 3d 3d 3d 74 2e 73 74 61 74 65 4d 75 74 61 62 "===t.stateMutab 00002430: 69 6c 69 74 79 7c 7c 22 70 75 72 65 22 3d 3d 3d ility||"pure"=== 00002440: 74 2e 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 t.stateMutabilit 00002450: 79 2c 6e 75 6c 6c 21 3d 65 2e 63 6f 6e 73 74 61 y,null!=e.consta 00002460: 6e 74 26 26 21 21 65 2e 63 6f 6e 73 74 61 6e 74 nt&&!!e.constant 00002470: 21 3d 3d 74 2e 63 6f 6e 73 74 61 6e 74 26 26 53 !==t.constant&&S 00002480: 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 t.throwArgumentE 00002490: 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 68 61 76 rror("cannot hav 000024a0: 65 20 63 6f 6e 73 74 61 6e 74 20 66 75 6e 63 74 e constant funct 000024b0: 69 6f 6e 20 77 69 74 68 20 6d 75 74 61 62 69 6c ion with mutabil 000024c0: 69 74 79 20 22 2b 74 2e 73 74 61 74 65 4d 75 74 ity "+t.stateMut 000024d0: 61 62 69 6c 69 74 79 2c 22 76 61 6c 75 65 22 2c ability,"value", 000024e0: 65 29 2c 74 2e 70 61 79 61 62 6c 65 3d 22 70 61 e),t.payable="pa 000024f0: 79 61 62 6c 65 22 3d 3d 3d 74 2e 73 74 61 74 65 yable"===t.state 00002500: 4d 75 74 61 62 69 6c 69 74 79 2c 6e 75 6c 6c 21 Mutability,null! 00002510: 3d 65 2e 70 61 79 61 62 6c 65 26 26 21 21 65 2e =e.payable&&!!e. 00002520: 70 61 79 61 62 6c 65 21 3d 3d 74 2e 70 61 79 61 payable!==t.paya 00002530: 62 6c 65 26 26 53 74 2e 74 68 72 6f 77 41 72 67 ble&&St.throwArg 00002540: 75 6d 65 6e 74 45 72 72 6f 72 28 22 63 61 6e 6e umentError("cann 00002550: 6f 74 20 68 61 76 65 20 70 61 79 61 62 6c 65 20 ot have payable 00002560: 66 75 6e 63 74 69 6f 6e 20 77 69 74 68 20 6d 75 function with mu 00002570: 74 61 62 69 6c 69 74 79 20 22 2b 74 2e 73 74 61 tability "+t.sta 00002580: 74 65 4d 75 74 61 62 69 6c 69 74 79 2c 22 76 61 teMutability,"va 00002590: 6c 75 65 22 2c 65 29 29 3a 6e 75 6c 6c 21 3d 65 lue",e)):null!=e 000025a0: 2e 70 61 79 61 62 6c 65 3f 28 74 2e 70 61 79 61 .payable?(t.paya 000025b0: 62 6c 65 3d 21 21 65 2e 70 61 79 61 62 6c 65 2c ble=!!e.payable, 000025c0: 6e 75 6c 6c 21 3d 65 2e 63 6f 6e 73 74 61 6e 74 null!=e.constant 000025d0: 7c 7c 74 2e 70 61 79 61 62 6c 65 7c 7c 22 63 6f ||t.payable||"co 000025e0: 6e 73 74 72 75 63 74 6f 72 22 3d 3d 3d 65 2e 74 nstructor"===e.t 000025f0: 79 70 65 7c 7c 53 74 2e 74 68 72 6f 77 41 72 67 ype||St.throwArg 00002600: 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 61 62 umentError("unab 00002610: 6c 65 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 20 le to determine 00002620: 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 22 stateMutability" 00002630: 2c 22 76 61 6c 75 65 22 2c 65 29 2c 74 2e 63 6f ,"value",e),t.co 00002640: 6e 73 74 61 6e 74 3d 21 21 65 2e 63 6f 6e 73 74 nstant=!!e.const 00002650: 61 6e 74 2c 74 2e 63 6f 6e 73 74 61 6e 74 3f 74 ant,t.constant?t 00002660: 2e 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 .stateMutability 00002670: 3d 22 76 69 65 77 22 3a 74 2e 73 74 61 74 65 4d ="view":t.stateM 00002680: 75 74 61 62 69 6c 69 74 79 3d 74 2e 70 61 79 61 utability=t.paya 00002690: 62 6c 65 3f 22 70 61 79 61 62 6c 65 22 3a 22 6e ble?"payable":"n 000026a0: 6f 6e 70 61 79 61 62 6c 65 22 2c 74 2e 70 61 79 onpayable",t.pay 000026b0: 61 62 6c 65 26 26 74 2e 63 6f 6e 73 74 61 6e 74 able&&t.constant 000026c0: 26 26 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 &&St.throwArgume 000026d0: 6e 74 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 ntError("cannot 000026e0: 68 61 76 65 20 63 6f 6e 73 74 61 6e 74 20 70 61 have constant pa 000026f0: 79 61 62 6c 65 20 66 75 6e 63 74 69 6f 6e 22 2c yable function", 00002700: 22 76 61 6c 75 65 22 2c 65 29 29 3a 6e 75 6c 6c "value",e)):null 00002710: 21 3d 65 2e 63 6f 6e 73 74 61 6e 74 3f 28 74 2e !=e.constant?(t. 00002720: 63 6f 6e 73 74 61 6e 74 3d 21 21 65 2e 63 6f 6e constant=!!e.con 00002730: 73 74 61 6e 74 2c 74 2e 70 61 79 61 62 6c 65 3d stant,t.payable= 00002740: 21 74 2e 63 6f 6e 73 74 61 6e 74 2c 74 2e 73 74 !t.constant,t.st 00002750: 61 74 65 4d 75 74 61 62 69 6c 69 74 79 3d 74 2e ateMutability=t. 00002760: 63 6f 6e 73 74 61 6e 74 3f 22 76 69 65 77 22 3a constant?"view": 00002770: 22 70 61 79 61 62 6c 65 22 29 3a 22 63 6f 6e 73 "payable"):"cons 00002780: 74 72 75 63 74 6f 72 22 21 3d 3d 65 2e 74 79 70 tructor"!==e.typ 00002790: 65 26 26 53 74 2e 74 68 72 6f 77 41 72 67 75 6d e&&St.throwArgum 000027a0: 65 6e 74 45 72 72 6f 72 28 22 75 6e 61 62 6c 65 entError("unable 000027b0: 20 74 6f 20 64 65 74 65 72 6d 69 6e 65 20 73 74 to determine st 000027c0: 61 74 65 4d 75 74 61 62 69 6c 69 74 79 22 2c 22 ateMutability"," 000027d0: 76 61 6c 75 65 22 2c 65 29 2c 74 7d 63 6c 61 73 value",e),t}clas 000027e0: 73 20 44 74 20 65 78 74 65 6e 64 73 20 4f 74 7b s Dt extends Ot{ 000027f0: 66 6f 72 6d 61 74 28 65 29 7b 69 66 28 65 7c 7c format(e){if(e|| 00002800: 28 65 3d 43 74 2e 73 69 67 68 61 73 68 29 2c 43 (e=Ct.sighash),C 00002810: 74 5b 65 5d 7c 7c 53 74 2e 74 68 72 6f 77 41 72 t[e]||St.throwAr 00002820: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 00002830: 61 6c 69 64 20 66 6f 72 6d 61 74 20 74 79 70 65 alid format type 00002840: 22 2c 22 66 6f 72 6d 61 74 22 2c 65 29 2c 65 3d ","format",e),e= 00002850: 3d 3d 43 74 2e 6a 73 6f 6e 29 72 65 74 75 72 6e ==Ct.json)return 00002860: 20 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 JSON.stringify( 00002870: 7b 74 79 70 65 3a 22 63 6f 6e 73 74 72 75 63 74 {type:"construct 00002880: 6f 72 22 2c 73 74 61 74 65 4d 75 74 61 62 69 6c or",stateMutabil 00002890: 69 74 79 3a 22 6e 6f 6e 70 61 79 61 62 6c 65 22 ity:"nonpayable" 000028a0: 21 3d 3d 74 68 69 73 2e 73 74 61 74 65 4d 75 74 !==this.stateMut 000028b0: 61 62 69 6c 69 74 79 3f 74 68 69 73 2e 73 74 61 ability?this.sta 000028c0: 74 65 4d 75 74 61 62 69 6c 69 74 79 3a 76 6f 69 teMutability:voi 000028d0: 64 20 30 2c 70 61 79 61 62 6c 65 3a 74 68 69 73 d 0,payable:this 000028e0: 2e 70 61 79 61 62 6c 65 2c 67 61 73 3a 74 68 69 .payable,gas:thi 000028f0: 73 2e 67 61 73 3f 74 68 69 73 2e 67 61 73 2e 74 s.gas?this.gas.t 00002900: 6f 4e 75 6d 62 65 72 28 29 3a 76 6f 69 64 20 30 oNumber():void 0 00002910: 2c 69 6e 70 75 74 73 3a 74 68 69 73 2e 69 6e 70 ,inputs:this.inp 00002920: 75 74 73 2e 6d 61 70 28 28 74 3d 3e 4a 53 4f 4e uts.map((t=>JSON 00002930: 2e 70 61 72 73 65 28 74 2e 66 6f 72 6d 61 74 28 .parse(t.format( 00002940: 65 29 29 29 29 7d 29 3b 65 3d 3d 3d 43 74 2e 73 e))))});e===Ct.s 00002950: 69 67 68 61 73 68 26 26 53 74 2e 74 68 72 6f 77 ighash&&St.throw 00002960: 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 66 6f Error("cannot fo 00002970: 72 6d 61 74 20 61 20 63 6f 6e 73 74 72 75 63 74 rmat a construct 00002980: 6f 72 20 66 6f 72 20 73 69 67 68 61 73 68 22 2c or for sighash", 00002990: 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f y.errors.UNSUPPO 000029a0: 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b RTED_OPERATION,{ 000029b0: 6f 70 65 72 61 74 69 6f 6e 3a 22 66 6f 72 6d 61 operation:"forma 000029c0: 74 28 73 69 67 68 61 73 68 29 22 7d 29 3b 6c 65 t(sighash)"});le 000029d0: 74 20 74 3d 22 63 6f 6e 73 74 72 75 63 74 6f 72 t t="constructor 000029e0: 28 22 2b 74 68 69 73 2e 69 6e 70 75 74 73 2e 6d ("+this.inputs.m 000029f0: 61 70 28 28 74 3d 3e 74 2e 66 6f 72 6d 61 74 28 ap((t=>t.format( 00002a00: 65 29 29 29 2e 6a 6f 69 6e 28 65 3d 3d 3d 43 74 e))).join(e===Ct 00002a10: 2e 66 75 6c 6c 3f 22 2c 20 22 3a 22 2c 22 29 2b .full?", ":",")+ 00002a20: 22 29 20 22 3b 72 65 74 75 72 6e 20 74 68 69 73 ") ";return this 00002a30: 2e 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 .stateMutability 00002a40: 26 26 22 6e 6f 6e 70 61 79 61 62 6c 65 22 21 3d &&"nonpayable"!= 00002a50: 3d 74 68 69 73 2e 73 74 61 74 65 4d 75 74 61 62 =this.stateMutab 00002a60: 69 6c 69 74 79 26 26 28 74 2b 3d 74 68 69 73 2e ility&&(t+=this. 00002a70: 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 2b stateMutability+ 00002a80: 22 20 22 29 2c 74 2e 74 72 69 6d 28 29 7d 73 74 " "),t.trim()}st 00002a90: 61 74 69 63 20 66 72 6f 6d 28 65 29 7b 72 65 74 atic from(e){ret 00002aa0: 75 72 6e 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 urn"string"==typ 00002ab0: 65 6f 66 20 65 3f 44 74 2e 66 72 6f 6d 53 74 72 eof e?Dt.fromStr 00002ac0: 69 6e 67 28 65 29 3a 44 74 2e 66 72 6f 6d 4f 62 ing(e):Dt.fromOb 00002ad0: 6a 65 63 74 28 65 29 7d 73 74 61 74 69 63 20 66 ject(e)}static f 00002ae0: 72 6f 6d 4f 62 6a 65 63 74 28 65 29 7b 69 66 28 romObject(e){if( 00002af0: 44 74 2e 69 73 43 6f 6e 73 74 72 75 63 74 6f 72 Dt.isConstructor 00002b00: 46 72 61 67 6d 65 6e 74 28 65 29 29 72 65 74 75 Fragment(e))retu 00002b10: 72 6e 20 65 3b 22 63 6f 6e 73 74 72 75 63 74 6f rn e;"constructo 00002b20: 72 22 21 3d 3d 65 2e 74 79 70 65 26 26 53 74 2e r"!==e.type&&St. 00002b30: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00002b40: 6f 72 28 22 69 6e 76 61 6c 69 64 20 63 6f 6e 73 or("invalid cons 00002b50: 74 72 75 63 74 6f 72 20 6f 62 6a 65 63 74 22 2c tructor object", 00002b60: 22 76 61 6c 75 65 22 2c 65 29 3b 6c 65 74 20 74 "value",e);let t 00002b70: 3d 4d 74 28 65 29 3b 74 2e 63 6f 6e 73 74 61 6e =Mt(e);t.constan 00002b80: 74 26 26 53 74 2e 74 68 72 6f 77 41 72 67 75 6d t&&St.throwArgum 00002b90: 65 6e 74 45 72 72 6f 72 28 22 63 6f 6e 73 74 72 entError("constr 00002ba0: 75 63 74 6f 72 20 63 61 6e 6e 6f 74 20 62 65 20 uctor cannot be 00002bb0: 63 6f 6e 73 74 61 6e 74 22 2c 22 76 61 6c 75 65 constant","value 00002bc0: 22 2c 65 29 3b 63 6f 6e 73 74 20 6e 3d 7b 6e 61 ",e);const n={na 00002bd0: 6d 65 3a 6e 75 6c 6c 2c 74 79 70 65 3a 65 2e 74 me:null,type:e.t 00002be0: 79 70 65 2c 69 6e 70 75 74 73 3a 65 2e 69 6e 70 ype,inputs:e.inp 00002bf0: 75 74 73 3f 65 2e 69 6e 70 75 74 73 2e 6d 61 70 uts?e.inputs.map 00002c00: 28 6b 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 29 3a (kt.fromObject): 00002c10: 5b 5d 2c 70 61 79 61 62 6c 65 3a 74 2e 70 61 79 [],payable:t.pay 00002c20: 61 62 6c 65 2c 73 74 61 74 65 4d 75 74 61 62 69 able,stateMutabi 00002c30: 6c 69 74 79 3a 74 2e 73 74 61 74 65 4d 75 74 61 lity:t.stateMuta 00002c40: 62 69 6c 69 74 79 2c 67 61 73 3a 65 2e 67 61 73 bility,gas:e.gas 00002c50: 3f 59 2e 66 72 6f 6d 28 65 2e 67 61 73 29 3a 6e ?Y.from(e.gas):n 00002c60: 75 6c 6c 7d 3b 72 65 74 75 72 6e 20 6e 65 77 20 ull};return new 00002c70: 44 74 28 45 74 2c 6e 29 7d 73 74 61 74 69 63 20 Dt(Et,n)}static 00002c80: 66 72 6f 6d 53 74 72 69 6e 67 28 65 29 7b 6c 65 fromString(e){le 00002c90: 74 20 74 3d 7b 74 79 70 65 3a 22 63 6f 6e 73 74 t t={type:"const 00002ca0: 72 75 63 74 6f 72 22 7d 2c 6e 3d 28 65 3d 4e 74 ructor"},n=(e=Nt 00002cb0: 28 65 2c 74 29 29 2e 6d 61 74 63 68 28 47 74 29 (e,t)).match(Gt) 00002cc0: 3b 72 65 74 75 72 6e 20 6e 26 26 22 63 6f 6e 73 ;return n&&"cons 00002cd0: 74 72 75 63 74 6f 72 22 3d 3d 3d 6e 5b 31 5d 2e tructor"===n[1]. 00002ce0: 74 72 69 6d 28 29 7c 7c 53 74 2e 74 68 72 6f 77 trim()||St.throw 00002cf0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 00002d00: 6e 76 61 6c 69 64 20 63 6f 6e 73 74 72 75 63 74 nvalid construct 00002d10: 6f 72 20 73 74 72 69 6e 67 22 2c 22 76 61 6c 75 or string","valu 00002d20: 65 22 2c 65 29 2c 74 2e 69 6e 70 75 74 73 3d 49 e",e),t.inputs=I 00002d30: 74 28 6e 5b 32 5d 2e 74 72 69 6d 28 29 2c 21 31 t(n[2].trim(),!1 00002d40: 29 2c 50 74 28 6e 5b 33 5d 2e 74 72 69 6d 28 29 ),Pt(n[3].trim() 00002d50: 2c 74 29 2c 44 74 2e 66 72 6f 6d 4f 62 6a 65 63 ,t),Dt.fromObjec 00002d60: 74 28 74 29 7d 73 74 61 74 69 63 20 69 73 43 6f t(t)}static isCo 00002d70: 6e 73 74 72 75 63 74 6f 72 46 72 61 67 6d 65 6e nstructorFragmen 00002d80: 74 28 65 29 7b 72 65 74 75 72 6e 20 65 26 26 65 t(e){return e&&e 00002d90: 2e 5f 69 73 46 72 61 67 6d 65 6e 74 26 26 22 63 ._isFragment&&"c 00002da0: 6f 6e 73 74 72 75 63 74 6f 72 22 3d 3d 3d 65 2e onstructor"===e. 00002db0: 74 79 70 65 7d 7d 63 6c 61 73 73 20 4c 74 20 65 type}}class Lt e 00002dc0: 78 74 65 6e 64 73 20 44 74 7b 66 6f 72 6d 61 74 xtends Dt{format 00002dd0: 28 65 29 7b 69 66 28 65 7c 7c 28 65 3d 43 74 2e (e){if(e||(e=Ct. 00002de0: 73 69 67 68 61 73 68 29 2c 43 74 5b 65 5d 7c 7c sighash),Ct[e]|| 00002df0: 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 St.throwArgument 00002e00: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 66 Error("invalid f 00002e10: 6f 72 6d 61 74 20 74 79 70 65 22 2c 22 66 6f 72 ormat type","for 00002e20: 6d 61 74 22 2c 65 29 2c 65 3d 3d 3d 43 74 2e 6a mat",e),e===Ct.j 00002e30: 73 6f 6e 29 72 65 74 75 72 6e 20 4a 53 4f 4e 2e son)return JSON. 00002e40: 73 74 72 69 6e 67 69 66 79 28 7b 74 79 70 65 3a stringify({type: 00002e50: 22 66 75 6e 63 74 69 6f 6e 22 2c 6e 61 6d 65 3a "function",name: 00002e60: 74 68 69 73 2e 6e 61 6d 65 2c 63 6f 6e 73 74 61 this.name,consta 00002e70: 6e 74 3a 74 68 69 73 2e 63 6f 6e 73 74 61 6e 74 nt:this.constant 00002e80: 2c 73 74 61 74 65 4d 75 74 61 62 69 6c 69 74 79 ,stateMutability 00002e90: 3a 22 6e 6f 6e 70 61 79 61 62 6c 65 22 21 3d 3d :"nonpayable"!== 00002ea0: 74 68 69 73 2e 73 74 61 74 65 4d 75 74 61 62 69 this.stateMutabi 00002eb0: 6c 69 74 79 3f 74 68 69 73 2e 73 74 61 74 65 4d lity?this.stateM 00002ec0: 75 74 61 62 69 6c 69 74 79 3a 76 6f 69 64 20 30 utability:void 0 00002ed0: 2c 70 61 79 61 62 6c 65 3a 74 68 69 73 2e 70 61 ,payable:this.pa 00002ee0: 79 61 62 6c 65 2c 67 61 73 3a 74 68 69 73 2e 67 yable,gas:this.g 00002ef0: 61 73 3f 74 68 69 73 2e 67 61 73 2e 74 6f 4e 75 as?this.gas.toNu 00002f00: 6d 62 65 72 28 29 3a 76 6f 69 64 20 30 2c 69 6e mber():void 0,in 00002f10: 70 75 74 73 3a 74 68 69 73 2e 69 6e 70 75 74 73 puts:this.inputs 00002f20: 2e 6d 61 70 28 28 74 3d 3e 4a 53 4f 4e 2e 70 61 .map((t=>JSON.pa 00002f30: 72 73 65 28 74 2e 66 6f 72 6d 61 74 28 65 29 29 rse(t.format(e)) 00002f40: 29 29 2c 6f 75 74 70 75 74 73 3a 74 68 69 73 2e )),outputs:this. 00002f50: 6f 75 74 70 75 74 73 2e 6d 61 70 28 28 74 3d 3e outputs.map((t=> 00002f60: 4a 53 4f 4e 2e 70 61 72 73 65 28 74 2e 66 6f 72 JSON.parse(t.for 00002f70: 6d 61 74 28 65 29 29 29 29 7d 29 3b 6c 65 74 20 mat(e))))});let 00002f80: 74 3d 22 22 3b 72 65 74 75 72 6e 20 65 21 3d 3d t="";return e!== 00002f90: 43 74 2e 73 69 67 68 61 73 68 26 26 28 74 2b 3d Ct.sighash&&(t+= 00002fa0: 22 66 75 6e 63 74 69 6f 6e 20 22 29 2c 74 2b 3d "function "),t+= 00002fb0: 74 68 69 73 2e 6e 61 6d 65 2b 22 28 22 2b 74 68 this.name+"("+th 00002fc0: 69 73 2e 69 6e 70 75 74 73 2e 6d 61 70 28 28 74 is.inputs.map((t 00002fd0: 3d 3e 74 2e 66 6f 72 6d 61 74 28 65 29 29 29 2e =>t.format(e))). 00002fe0: 6a 6f 69 6e 28 65 3d 3d 3d 43 74 2e 66 75 6c 6c join(e===Ct.full 00002ff0: 3f 22 2c 20 22 3a 22 2c 22 29 2b 22 29 20 22 2c ?", ":",")+") ", 00003000: 65 21 3d 3d 43 74 2e 73 69 67 68 61 73 68 26 26 e!==Ct.sighash&& 00003010: 28 74 68 69 73 2e 73 74 61 74 65 4d 75 74 61 62 (this.stateMutab 00003020: 69 6c 69 74 79 3f 22 6e 6f 6e 70 61 79 61 62 6c ility?"nonpayabl 00003030: 65 22 21 3d 3d 74 68 69 73 2e 73 74 61 74 65 4d e"!==this.stateM 00003040: 75 74 61 62 69 6c 69 74 79 26 26 28 74 2b 3d 74 utability&&(t+=t 00003050: 68 69 73 2e 73 74 61 74 65 4d 75 74 61 62 69 6c his.stateMutabil 00003060: 69 74 79 2b 22 20 22 29 3a 74 68 69 73 2e 63 6f ity+" "):this.co 00003070: 6e 73 74 61 6e 74 26 26 28 74 2b 3d 22 76 69 65 nstant&&(t+="vie 00003080: 77 20 22 29 2c 74 68 69 73 2e 6f 75 74 70 75 74 w "),this.output 00003090: 73 26 26 74 68 69 73 2e 6f 75 74 70 75 74 73 2e s&&this.outputs. 000030a0: 6c 65 6e 67 74 68 26 26 28 74 2b 3d 22 72 65 74 length&&(t+="ret 000030b0: 75 72 6e 73 20 28 22 2b 74 68 69 73 2e 6f 75 74 urns ("+this.out 000030c0: 70 75 74 73 2e 6d 61 70 28 28 74 3d 3e 74 2e 66 puts.map((t=>t.f 000030d0: 6f 72 6d 61 74 28 65 29 29 29 2e 6a 6f 69 6e 28 ormat(e))).join( 000030e0: 22 2c 20 22 29 2b 22 29 20 22 29 2c 6e 75 6c 6c ", ")+") "),null 000030f0: 21 3d 74 68 69 73 2e 67 61 73 26 26 28 74 2b 3d !=this.gas&&(t+= 00003100: 22 40 22 2b 74 68 69 73 2e 67 61 73 2e 74 6f 53 "@"+this.gas.toS 00003110: 74 72 69 6e 67 28 29 2b 22 20 22 29 29 2c 74 2e tring()+" ")),t. 00003120: 74 72 69 6d 28 29 7d 73 74 61 74 69 63 20 66 72 trim()}static fr 00003130: 6f 6d 28 65 29 7b 72 65 74 75 72 6e 22 73 74 72 om(e){return"str 00003140: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 4c ing"==typeof e?L 00003150: 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 29 3a t.fromString(e): 00003160: 4c 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 28 65 29 Lt.fromObject(e) 00003170: 7d 73 74 61 74 69 63 20 66 72 6f 6d 4f 62 6a 65 }static fromObje 00003180: 63 74 28 65 29 7b 69 66 28 4c 74 2e 69 73 46 75 ct(e){if(Lt.isFu 00003190: 6e 63 74 69 6f 6e 46 72 61 67 6d 65 6e 74 28 65 nctionFragment(e 000031a0: 29 29 72 65 74 75 72 6e 20 65 3b 22 66 75 6e 63 ))return e;"func 000031b0: 74 69 6f 6e 22 21 3d 3d 65 2e 74 79 70 65 26 26 tion"!==e.type&& 000031c0: 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 St.throwArgument 000031d0: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 66 Error("invalid f 000031e0: 75 6e 63 74 69 6f 6e 20 6f 62 6a 65 63 74 22 2c unction object", 000031f0: 22 76 61 6c 75 65 22 2c 65 29 3b 6c 65 74 20 74 "value",e);let t 00003200: 3d 4d 74 28 65 29 3b 63 6f 6e 73 74 20 6e 3d 7b =Mt(e);const n={ 00003210: 74 79 70 65 3a 65 2e 74 79 70 65 2c 6e 61 6d 65 type:e.type,name 00003220: 3a 7a 74 28 65 2e 6e 61 6d 65 29 2c 63 6f 6e 73 :zt(e.name),cons 00003230: 74 61 6e 74 3a 74 2e 63 6f 6e 73 74 61 6e 74 2c tant:t.constant, 00003240: 69 6e 70 75 74 73 3a 65 2e 69 6e 70 75 74 73 3f inputs:e.inputs? 00003250: 65 2e 69 6e 70 75 74 73 2e 6d 61 70 28 6b 74 2e e.inputs.map(kt. 00003260: 66 72 6f 6d 4f 62 6a 65 63 74 29 3a 5b 5d 2c 6f fromObject):[],o 00003270: 75 74 70 75 74 73 3a 65 2e 6f 75 74 70 75 74 73 utputs:e.outputs 00003280: 3f 65 2e 6f 75 74 70 75 74 73 2e 6d 61 70 28 6b ?e.outputs.map(k 00003290: 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 29 3a 5b 5d t.fromObject):[] 000032a0: 2c 70 61 79 61 62 6c 65 3a 74 2e 70 61 79 61 62 ,payable:t.payab 000032b0: 6c 65 2c 73 74 61 74 65 4d 75 74 61 62 69 6c 69 le,stateMutabili 000032c0: 74 79 3a 74 2e 73 74 61 74 65 4d 75 74 61 62 69 ty:t.stateMutabi 000032d0: 6c 69 74 79 2c 67 61 73 3a 65 2e 67 61 73 3f 59 lity,gas:e.gas?Y 000032e0: 2e 66 72 6f 6d 28 65 2e 67 61 73 29 3a 6e 75 6c .from(e.gas):nul 000032f0: 6c 7d 3b 72 65 74 75 72 6e 20 6e 65 77 20 4c 74 l};return new Lt 00003300: 28 45 74 2c 6e 29 7d 73 74 61 74 69 63 20 66 72 (Et,n)}static fr 00003310: 6f 6d 53 74 72 69 6e 67 28 65 29 7b 6c 65 74 20 omString(e){let 00003320: 74 3d 7b 74 79 70 65 3a 22 66 75 6e 63 74 69 6f t={type:"functio 00003330: 6e 22 7d 2c 6e 3d 28 65 3d 4e 74 28 65 2c 74 29 n"},n=(e=Nt(e,t) 00003340: 29 2e 73 70 6c 69 74 28 22 20 72 65 74 75 72 6e ).split(" return 00003350: 73 20 22 29 3b 6e 2e 6c 65 6e 67 74 68 3e 32 26 s ");n.length>2& 00003360: 26 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &St.throwArgumen 00003370: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 00003380: 66 75 6e 63 74 69 6f 6e 20 73 74 72 69 6e 67 22 function string" 00003390: 2c 22 76 61 6c 75 65 22 2c 65 29 3b 6c 65 74 20 ,"value",e);let 000033a0: 72 3d 6e 5b 30 5d 2e 6d 61 74 63 68 28 47 74 29 r=n[0].match(Gt) 000033b0: 3b 69 66 28 72 7c 7c 53 74 2e 74 68 72 6f 77 41 ;if(r||St.throwA 000033c0: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e rgumentError("in 000033d0: 76 61 6c 69 64 20 66 75 6e 63 74 69 6f 6e 20 73 valid function s 000033e0: 69 67 6e 61 74 75 72 65 22 2c 22 76 61 6c 75 65 ignature","value 000033f0: 22 2c 65 29 2c 74 2e 6e 61 6d 65 3d 72 5b 31 5d ",e),t.name=r[1] 00003400: 2e 74 72 69 6d 28 29 2c 74 2e 6e 61 6d 65 26 26 .trim(),t.name&& 00003410: 7a 74 28 74 2e 6e 61 6d 65 29 2c 74 2e 69 6e 70 zt(t.name),t.inp 00003420: 75 74 73 3d 49 74 28 72 5b 32 5d 2c 21 31 29 2c uts=It(r[2],!1), 00003430: 50 74 28 72 5b 33 5d 2e 74 72 69 6d 28 29 2c 74 Pt(r[3].trim(),t 00003440: 29 2c 6e 2e 6c 65 6e 67 74 68 3e 31 29 7b 6c 65 ),n.length>1){le 00003450: 74 20 72 3d 6e 5b 31 5d 2e 6d 61 74 63 68 28 47 t r=n[1].match(G 00003460: 74 29 3b 22 22 3d 3d 72 5b 31 5d 2e 74 72 69 6d t);""==r[1].trim 00003470: 28 29 26 26 22 22 3d 3d 72 5b 33 5d 2e 74 72 69 ()&&""==r[3].tri 00003480: 6d 28 29 7c 7c 53 74 2e 74 68 72 6f 77 41 72 67 m()||St.throwArg 00003490: 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 65 78 umentError("unex 000034a0: 70 65 63 74 65 64 20 74 6f 6b 65 6e 73 22 2c 22 pected tokens"," 000034b0: 76 61 6c 75 65 22 2c 65 29 2c 74 2e 6f 75 74 70 value",e),t.outp 000034c0: 75 74 73 3d 49 74 28 72 5b 32 5d 2c 21 31 29 7d uts=It(r[2],!1)} 000034d0: 65 6c 73 65 20 74 2e 6f 75 74 70 75 74 73 3d 5b else t.outputs=[ 000034e0: 5d 3b 72 65 74 75 72 6e 20 4c 74 2e 66 72 6f 6d ];return Lt.from 000034f0: 4f 62 6a 65 63 74 28 74 29 7d 73 74 61 74 69 63 Object(t)}static 00003500: 20 69 73 46 75 6e 63 74 69 6f 6e 46 72 61 67 6d isFunctionFragm 00003510: 65 6e 74 28 65 29 7b 72 65 74 75 72 6e 20 65 26 ent(e){return e& 00003520: 26 65 2e 5f 69 73 46 72 61 67 6d 65 6e 74 26 26 &e._isFragment&& 00003530: 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 3d 65 2e 74 "function"===e.t 00003540: 79 70 65 7d 7d 66 75 6e 63 74 69 6f 6e 20 46 74 ype}}function Ft 00003550: 28 65 29 7b 63 6f 6e 73 74 20 74 3d 65 2e 66 6f (e){const t=e.fo 00003560: 72 6d 61 74 28 29 3b 72 65 74 75 72 6e 22 45 72 rmat();return"Er 00003570: 72 6f 72 28 73 74 72 69 6e 67 29 22 21 3d 3d 74 ror(string)"!==t 00003580: 26 26 22 50 61 6e 69 63 28 75 69 6e 74 32 35 36 &&"Panic(uint256 00003590: 29 22 21 3d 3d 74 7c 7c 53 74 2e 74 68 72 6f 77 )"!==t||St.throw 000035a0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 60 63 ArgumentError(`c 000035b0: 61 6e 6e 6f 74 20 73 70 65 63 69 66 79 20 75 73 annot specify us 000035c0: 65 72 20 64 65 66 69 6e 65 64 20 24 7b 74 7d 20 er defined ${t} 000035d0: 65 72 72 6f 72 60 2c 22 66 72 61 67 6d 65 6e 74 error`,"fragment 000035e0: 22 2c 65 29 2c 65 7d 63 6c 61 73 73 20 55 74 20 ",e),e}class Ut 000035f0: 65 78 74 65 6e 64 73 20 4f 74 7b 66 6f 72 6d 61 extends Ot{forma 00003600: 74 28 65 29 7b 69 66 28 65 7c 7c 28 65 3d 43 74 t(e){if(e||(e=Ct 00003610: 2e 73 69 67 68 61 73 68 29 2c 43 74 5b 65 5d 7c .sighash),Ct[e]| 00003620: 7c 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e |St.throwArgumen 00003630: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 00003640: 66 6f 72 6d 61 74 20 74 79 70 65 22 2c 22 66 6f format type","fo 00003650: 72 6d 61 74 22 2c 65 29 2c 65 3d 3d 3d 43 74 2e rmat",e),e===Ct. 00003660: 6a 73 6f 6e 29 72 65 74 75 72 6e 20 4a 53 4f 4e json)return JSON 00003670: 2e 73 74 72 69 6e 67 69 66 79 28 7b 74 79 70 65 .stringify({type 00003680: 3a 22 65 72 72 6f 72 22 2c 6e 61 6d 65 3a 74 68 :"error",name:th 00003690: 69 73 2e 6e 61 6d 65 2c 69 6e 70 75 74 73 3a 74 is.name,inputs:t 000036a0: 68 69 73 2e 69 6e 70 75 74 73 2e 6d 61 70 28 28 his.inputs.map(( 000036b0: 74 3d 3e 4a 53 4f 4e 2e 70 61 72 73 65 28 74 2e t=>JSON.parse(t. 000036c0: 66 6f 72 6d 61 74 28 65 29 29 29 29 7d 29 3b 6c format(e))))});l 000036d0: 65 74 20 74 3d 22 22 3b 72 65 74 75 72 6e 20 65 et t="";return e 000036e0: 21 3d 3d 43 74 2e 73 69 67 68 61 73 68 26 26 28 !==Ct.sighash&&( 000036f0: 74 2b 3d 22 65 72 72 6f 72 20 22 29 2c 74 2b 3d t+="error "),t+= 00003700: 74 68 69 73 2e 6e 61 6d 65 2b 22 28 22 2b 74 68 this.name+"("+th 00003710: 69 73 2e 69 6e 70 75 74 73 2e 6d 61 70 28 28 74 is.inputs.map((t 00003720: 3d 3e 74 2e 66 6f 72 6d 61 74 28 65 29 29 29 2e =>t.format(e))). 00003730: 6a 6f 69 6e 28 65 3d 3d 3d 43 74 2e 66 75 6c 6c join(e===Ct.full 00003740: 3f 22 2c 20 22 3a 22 2c 22 29 2b 22 29 20 22 2c ?", ":",")+") ", 00003750: 74 2e 74 72 69 6d 28 29 7d 73 74 61 74 69 63 20 t.trim()}static 00003760: 66 72 6f 6d 28 65 29 7b 72 65 74 75 72 6e 22 73 from(e){return"s 00003770: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 00003780: 3f 55 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 ?Ut.fromString(e 00003790: 29 3a 55 74 2e 66 72 6f 6d 4f 62 6a 65 63 74 28 ):Ut.fromObject( 000037a0: 65 29 7d 73 74 61 74 69 63 20 66 72 6f 6d 4f 62 e)}static fromOb 000037b0: 6a 65 63 74 28 65 29 7b 69 66 28 55 74 2e 69 73 ject(e){if(Ut.is 000037c0: 45 72 72 6f 72 46 72 61 67 6d 65 6e 74 28 65 29 ErrorFragment(e) 000037d0: 29 72 65 74 75 72 6e 20 65 3b 22 65 72 72 6f 72 )return e;"error 000037e0: 22 21 3d 3d 65 2e 74 79 70 65 26 26 53 74 2e 74 "!==e.type&&St.t 000037f0: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00003800: 72 28 22 69 6e 76 61 6c 69 64 20 65 72 72 6f 72 r("invalid error 00003810: 20 6f 62 6a 65 63 74 22 2c 22 76 61 6c 75 65 22 object","value" 00003820: 2c 65 29 3b 63 6f 6e 73 74 20 74 3d 7b 74 79 70 ,e);const t={typ 00003830: 65 3a 65 2e 74 79 70 65 2c 6e 61 6d 65 3a 7a 74 e:e.type,name:zt 00003840: 28 65 2e 6e 61 6d 65 29 2c 69 6e 70 75 74 73 3a (e.name),inputs: 00003850: 65 2e 69 6e 70 75 74 73 3f 65 2e 69 6e 70 75 74 e.inputs?e.input 00003860: 73 2e 6d 61 70 28 6b 74 2e 66 72 6f 6d 4f 62 6a s.map(kt.fromObj 00003870: 65 63 74 29 3a 5b 5d 7d 3b 72 65 74 75 72 6e 20 ect):[]};return 00003880: 46 74 28 6e 65 77 20 55 74 28 45 74 2c 74 29 29 Ft(new Ut(Et,t)) 00003890: 7d 73 74 61 74 69 63 20 66 72 6f 6d 53 74 72 69 }static fromStri 000038a0: 6e 67 28 65 29 7b 6c 65 74 20 74 3d 7b 74 79 70 ng(e){let t={typ 000038b0: 65 3a 22 65 72 72 6f 72 22 7d 2c 6e 3d 65 2e 6d e:"error"},n=e.m 000038c0: 61 74 63 68 28 47 74 29 3b 72 65 74 75 72 6e 20 atch(Gt);return 000038d0: 6e 7c 7c 53 74 2e 74 68 72 6f 77 41 72 67 75 6d n||St.throwArgum 000038e0: 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 entError("invali 000038f0: 64 20 65 72 72 6f 72 20 73 69 67 6e 61 74 75 72 d error signatur 00003900: 65 22 2c 22 76 61 6c 75 65 22 2c 65 29 2c 74 2e e","value",e),t. 00003910: 6e 61 6d 65 3d 6e 5b 31 5d 2e 74 72 69 6d 28 29 name=n[1].trim() 00003920: 2c 74 2e 6e 61 6d 65 26 26 7a 74 28 74 2e 6e 61 ,t.name&&zt(t.na 00003930: 6d 65 29 2c 74 2e 69 6e 70 75 74 73 3d 49 74 28 me),t.inputs=It( 00003940: 6e 5b 32 5d 2c 21 31 29 2c 46 74 28 55 74 2e 66 n[2],!1),Ft(Ut.f 00003950: 72 6f 6d 4f 62 6a 65 63 74 28 74 29 29 7d 73 74 romObject(t))}st 00003960: 61 74 69 63 20 69 73 45 72 72 6f 72 46 72 61 67 atic isErrorFrag 00003970: 6d 65 6e 74 28 65 29 7b 72 65 74 75 72 6e 20 65 ment(e){return e 00003980: 26 26 65 2e 5f 69 73 46 72 61 67 6d 65 6e 74 26 &&e._isFragment& 00003990: 26 22 65 72 72 6f 72 22 3d 3d 3d 65 2e 74 79 70 &"error"===e.typ 000039a0: 65 7d 7d 66 75 6e 63 74 69 6f 6e 20 42 74 28 65 e}}function Bt(e 000039b0: 29 7b 72 65 74 75 72 6e 20 65 2e 6d 61 74 63 68 ){return e.match 000039c0: 28 2f 5e 75 69 6e 74 28 24 7c 5b 5e 31 2d 39 5d (/^uint($|[^1-9] 000039d0: 29 2f 29 3f 65 3d 22 75 69 6e 74 32 35 36 22 2b )/)?e="uint256"+ 000039e0: 65 2e 73 75 62 73 74 72 69 6e 67 28 34 29 3a 65 e.substring(4):e 000039f0: 2e 6d 61 74 63 68 28 2f 5e 69 6e 74 28 24 7c 5b .match(/^int($|[ 00003a00: 5e 31 2d 39 5d 29 2f 29 26 26 28 65 3d 22 69 6e ^1-9])/)&&(e="in 00003a10: 74 32 35 36 22 2b 65 2e 73 75 62 73 74 72 69 6e t256"+e.substrin 00003a20: 67 28 33 29 29 2c 65 7d 63 6f 6e 73 74 20 6a 74 g(3)),e}const jt 00003a30: 3d 6e 65 77 20 52 65 67 45 78 70 28 22 5e 5b 61 =new RegExp("^[a 00003a40: 2d 7a 41 2d 5a 24 5f 5d 5b 61 2d 7a 41 2d 5a 30 -zA-Z$_][a-zA-Z0 00003a50: 2d 39 24 5f 5d 2a 24 22 29 3b 66 75 6e 63 74 69 -9$_]*$");functi 00003a60: 6f 6e 20 7a 74 28 65 29 7b 72 65 74 75 72 6e 20 on zt(e){return 00003a70: 65 26 26 65 2e 6d 61 74 63 68 28 6a 74 29 7c 7c e&&e.match(jt)|| 00003a80: 53 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 St.throwArgument 00003a90: 45 72 72 6f 72 28 60 69 6e 76 61 6c 69 64 20 69 Error(`invalid i 00003aa0: 64 65 6e 74 69 66 69 65 72 20 22 24 7b 65 7d 22 dentifier "${e}" 00003ab0: 60 2c 22 76 61 6c 75 65 22 2c 65 29 2c 65 7d 63 `,"value",e),e}c 00003ac0: 6f 6e 73 74 20 47 74 3d 6e 65 77 20 52 65 67 45 onst Gt=new RegE 00003ad0: 78 70 28 22 5e 28 5b 5e 29 28 5d 2a 29 5c 5c 28 xp("^([^)(]*)\\( 00003ae0: 28 2e 2a 29 5c 5c 29 28 5b 5e 29 28 5d 2a 29 24 (.*)\\)([^)(]*)$ 00003af0: 22 29 3b 63 6f 6e 73 74 20 48 74 3d 6e 65 77 20 ");const Ht=new 00003b00: 79 28 64 65 29 2c 56 74 3d 6e 65 77 20 52 65 67 y(de),Vt=new Reg 00003b10: 45 78 70 28 2f 5e 62 79 74 65 73 28 5b 30 2d 39 Exp(/^bytes([0-9 00003b20: 5d 2a 29 24 2f 29 2c 71 74 3d 6e 65 77 20 52 65 ]*)$/),qt=new Re 00003b30: 67 45 78 70 28 2f 5e 28 75 3f 69 6e 74 29 28 5b gExp(/^(u?int)([ 00003b40: 30 2d 39 5d 2a 29 24 2f 29 3b 63 6c 61 73 73 20 0-9]*)$/);class 00003b50: 57 74 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 Wt{constructor(e 00003b60: 29 7b 74 65 28 74 68 69 73 2c 22 63 6f 65 72 63 ){te(this,"coerc 00003b70: 65 46 75 6e 63 22 2c 65 7c 7c 6e 75 6c 6c 29 7d eFunc",e||null)} 00003b80: 5f 67 65 74 43 6f 64 65 72 28 65 29 7b 73 77 69 _getCoder(e){swi 00003b90: 74 63 68 28 65 2e 62 61 73 65 54 79 70 65 29 7b tch(e.baseType){ 00003ba0: 63 61 73 65 22 61 64 64 72 65 73 73 22 3a 72 65 case"address":re 00003bb0: 74 75 72 6e 20 6e 65 77 20 4a 65 28 65 2e 6e 61 turn new Je(e.na 00003bc0: 6d 65 29 3b 63 61 73 65 22 62 6f 6f 6c 22 3a 72 me);case"bool":r 00003bd0: 65 74 75 72 6e 20 6e 65 77 20 6f 74 28 65 2e 6e eturn new ot(e.n 00003be0: 61 6d 65 29 3b 63 61 73 65 22 73 74 72 69 6e 67 ame);case"string 00003bf0: 22 3a 72 65 74 75 72 6e 20 6e 65 77 20 79 74 28 ":return new yt( 00003c00: 65 2e 6e 61 6d 65 29 3b 63 61 73 65 22 62 79 74 e.name);case"byt 00003c10: 65 73 22 3a 72 65 74 75 72 6e 20 6e 65 77 20 61 es":return new a 00003c20: 74 28 65 2e 6e 61 6d 65 29 3b 63 61 73 65 22 61 t(e.name);case"a 00003c30: 72 72 61 79 22 3a 72 65 74 75 72 6e 20 6e 65 77 rray":return new 00003c40: 20 72 74 28 74 68 69 73 2e 5f 67 65 74 43 6f 64 rt(this._getCod 00003c50: 65 72 28 65 2e 61 72 72 61 79 43 68 69 6c 64 72 er(e.arrayChildr 00003c60: 65 6e 29 2c 65 2e 61 72 72 61 79 4c 65 6e 67 74 en),e.arrayLengt 00003c70: 68 2c 65 2e 6e 61 6d 65 29 3b 63 61 73 65 22 74 h,e.name);case"t 00003c80: 75 70 6c 65 22 3a 72 65 74 75 72 6e 20 6e 65 77 uple":return new 00003c90: 20 76 74 28 28 65 2e 63 6f 6d 70 6f 6e 65 6e 74 vt((e.component 00003ca0: 73 7c 7c 5b 5d 29 2e 6d 61 70 28 28 65 3d 3e 74 s||[]).map((e=>t 00003cb0: 68 69 73 2e 5f 67 65 74 43 6f 64 65 72 28 65 29 his._getCoder(e) 00003cc0: 29 29 2c 65 2e 6e 61 6d 65 29 3b 63 61 73 65 22 )),e.name);case" 00003cd0: 22 3a 72 65 74 75 72 6e 20 6e 65 77 20 6c 74 28 ":return new lt( 00003ce0: 65 2e 6e 61 6d 65 29 7d 6c 65 74 20 74 3d 65 2e e.name)}let t=e. 00003cf0: 74 79 70 65 2e 6d 61 74 63 68 28 71 74 29 3b 69 type.match(qt);i 00003d00: 66 28 74 29 7b 6c 65 74 20 6e 3d 70 61 72 73 65 f(t){let n=parse 00003d10: 49 6e 74 28 74 5b 32 5d 7c 7c 22 32 35 36 22 29 Int(t[2]||"256") 00003d20: 3b 72 65 74 75 72 6e 28 30 3d 3d 3d 6e 7c 7c 6e ;return(0===n||n 00003d30: 3e 32 35 36 7c 7c 6e 25 38 21 3d 30 29 26 26 48 >256||n%8!=0)&&H 00003d40: 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 t.throwArgumentE 00003d50: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 22 2b rror("invalid "+ 00003d60: 74 5b 31 5d 2b 22 20 62 69 74 20 6c 65 6e 67 74 t[1]+" bit lengt 00003d70: 68 22 2c 22 70 61 72 61 6d 22 2c 65 29 2c 6e 65 h","param",e),ne 00003d80: 77 20 62 74 28 6e 2f 38 2c 22 69 6e 74 22 3d 3d w bt(n/8,"int"== 00003d90: 3d 74 5b 31 5d 2c 65 2e 6e 61 6d 65 29 7d 69 66 =t[1],e.name)}if 00003da0: 28 74 3d 65 2e 74 79 70 65 2e 6d 61 74 63 68 28 (t=e.type.match( 00003db0: 56 74 29 2c 74 29 7b 6c 65 74 20 6e 3d 70 61 72 Vt),t){let n=par 00003dc0: 73 65 49 6e 74 28 74 5b 31 5d 29 3b 72 65 74 75 seInt(t[1]);retu 00003dd0: 72 6e 28 30 3d 3d 3d 6e 7c 7c 6e 3e 33 32 29 26 rn(0===n||n>32)& 00003de0: 26 48 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &Ht.throwArgumen 00003df0: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 00003e00: 62 79 74 65 73 20 6c 65 6e 67 74 68 22 2c 22 70 bytes length","p 00003e10: 61 72 61 6d 22 2c 65 29 2c 6e 65 77 20 73 74 28 aram",e),new st( 00003e20: 6e 2c 65 2e 6e 61 6d 65 29 7d 72 65 74 75 72 6e n,e.name)}return 00003e30: 20 48 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e Ht.throwArgumen 00003e40: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 00003e50: 74 79 70 65 22 2c 22 74 79 70 65 22 2c 65 2e 74 type","type",e.t 00003e60: 79 70 65 29 7d 5f 67 65 74 57 6f 72 64 53 69 7a ype)}_getWordSiz 00003e70: 65 28 29 7b 72 65 74 75 72 6e 20 33 32 7d 5f 67 e(){return 32}_g 00003e80: 65 74 52 65 61 64 65 72 28 65 2c 74 29 7b 72 65 etReader(e,t){re 00003e90: 74 75 72 6e 20 6e 65 77 20 67 65 28 65 2c 74 68 turn new ge(e,th 00003ea0: 69 73 2e 5f 67 65 74 57 6f 72 64 53 69 7a 65 28 is._getWordSize( 00003eb0: 29 2c 74 68 69 73 2e 63 6f 65 72 63 65 46 75 6e ),this.coerceFun 00003ec0: 63 2c 74 29 7d 5f 67 65 74 57 72 69 74 65 72 28 c,t)}_getWriter( 00003ed0: 29 7b 72 65 74 75 72 6e 20 6e 65 77 20 6d 65 28 ){return new me( 00003ee0: 74 68 69 73 2e 5f 67 65 74 57 6f 72 64 53 69 7a this._getWordSiz 00003ef0: 65 28 29 29 7d 67 65 74 44 65 66 61 75 6c 74 56 e())}getDefaultV 00003f00: 61 6c 75 65 28 65 29 7b 63 6f 6e 73 74 20 74 3d alue(e){const t= 00003f10: 65 2e 6d 61 70 28 28 65 3d 3e 74 68 69 73 2e 5f e.map((e=>this._ 00003f20: 67 65 74 43 6f 64 65 72 28 6b 74 2e 66 72 6f 6d getCoder(kt.from 00003f30: 28 65 29 29 29 29 3b 72 65 74 75 72 6e 20 6e 65 (e))));return ne 00003f40: 77 20 76 74 28 74 2c 22 5f 22 29 2e 64 65 66 61 w vt(t,"_").defa 00003f50: 75 6c 74 56 61 6c 75 65 28 29 7d 65 6e 63 6f 64 ultValue()}encod 00003f60: 65 28 65 2c 74 29 7b 65 2e 6c 65 6e 67 74 68 21 e(e,t){e.length! 00003f70: 3d 3d 74 2e 6c 65 6e 67 74 68 26 26 48 74 2e 74 ==t.length&&Ht.t 00003f80: 68 72 6f 77 45 72 72 6f 72 28 22 74 79 70 65 73 hrowError("types 00003f90: 2f 76 61 6c 75 65 73 20 6c 65 6e 67 74 68 20 6d /values length m 00003fa0: 69 73 6d 61 74 63 68 22 2c 79 2e 65 72 72 6f 72 ismatch",y.error 00003fb0: 73 2e 49 4e 56 41 4c 49 44 5f 41 52 47 55 4d 45 s.INVALID_ARGUME 00003fc0: 4e 54 2c 7b 63 6f 75 6e 74 3a 7b 74 79 70 65 73 NT,{count:{types 00003fd0: 3a 65 2e 6c 65 6e 67 74 68 2c 76 61 6c 75 65 73 :e.length,values 00003fe0: 3a 74 2e 6c 65 6e 67 74 68 7d 2c 76 61 6c 75 65 :t.length},value 00003ff0: 3a 7b 74 79 70 65 73 3a 65 2c 76 61 6c 75 65 73 :{types:e,values 00004000: 3a 74 7d 7d 29 3b 63 6f 6e 73 74 20 6e 3d 65 2e :t}});const n=e. 00004010: 6d 61 70 28 28 65 3d 3e 74 68 69 73 2e 5f 67 65 map((e=>this._ge 00004020: 74 43 6f 64 65 72 28 6b 74 2e 66 72 6f 6d 28 65 tCoder(kt.from(e 00004030: 29 29 29 29 2c 72 3d 6e 65 77 20 76 74 28 6e 2c )))),r=new vt(n, 00004040: 22 5f 22 29 2c 6f 3d 74 68 69 73 2e 5f 67 65 74 "_"),o=this._get 00004050: 57 72 69 74 65 72 28 29 3b 72 65 74 75 72 6e 20 Writer();return 00004060: 72 2e 65 6e 63 6f 64 65 28 6f 2c 74 29 2c 6f 2e r.encode(o,t),o. 00004070: 64 61 74 61 7d 64 65 63 6f 64 65 28 65 2c 74 2c data}decode(e,t, 00004080: 6e 29 7b 63 6f 6e 73 74 20 72 3d 65 2e 6d 61 70 n){const r=e.map 00004090: 28 28 65 3d 3e 74 68 69 73 2e 5f 67 65 74 43 6f ((e=>this._getCo 000040a0: 64 65 72 28 6b 74 2e 66 72 6f 6d 28 65 29 29 29 der(kt.from(e))) 000040b0: 29 3b 72 65 74 75 72 6e 20 6e 65 77 20 76 74 28 );return new vt( 000040c0: 72 2c 22 5f 22 29 2e 64 65 63 6f 64 65 28 74 68 r,"_").decode(th 000040d0: 69 73 2e 5f 67 65 74 52 65 61 64 65 72 28 54 28 is._getReader(T( 000040e0: 74 29 2c 6e 29 29 7d 7d 63 6f 6e 73 74 20 4b 74 t),n))}}const Kt 000040f0: 3d 6e 65 77 20 57 74 2c 59 74 3d 6e 65 77 20 79 =new Wt,Yt=new y 00004100: 28 64 65 29 3b 63 6c 61 73 73 20 58 74 20 65 78 (de);class Xt ex 00004110: 74 65 6e 64 73 20 75 65 7b 7d 63 6c 61 73 73 20 tends ue{}class 00004120: 5a 74 20 65 78 74 65 6e 64 73 20 75 65 7b 7d 63 Zt extends ue{}c 00004130: 6c 61 73 73 20 51 74 20 65 78 74 65 6e 64 73 20 lass Qt extends 00004140: 75 65 7b 7d 63 6c 61 73 73 20 4a 74 20 65 78 74 ue{}class Jt ext 00004150: 65 6e 64 73 20 75 65 7b 73 74 61 74 69 63 20 69 ends ue{static i 00004160: 73 49 6e 64 65 78 65 64 28 65 29 7b 72 65 74 75 sIndexed(e){retu 00004170: 72 6e 21 28 21 65 7c 7c 21 65 2e 5f 69 73 49 6e rn!(!e||!e._isIn 00004180: 64 65 78 65 64 29 7d 7d 63 6f 6e 73 74 20 24 74 dexed)}}const $t 00004190: 3d 7b 22 30 78 30 38 63 33 37 39 61 30 22 3a 7b ={"0x08c379a0":{ 000041a0: 73 69 67 6e 61 74 75 72 65 3a 22 45 72 72 6f 72 signature:"Error 000041b0: 28 73 74 72 69 6e 67 29 22 2c 6e 61 6d 65 3a 22 (string)",name:" 000041c0: 45 72 72 6f 72 22 2c 69 6e 70 75 74 73 3a 5b 22 Error",inputs:[" 000041d0: 73 74 72 69 6e 67 22 5d 2c 72 65 61 73 6f 6e 3a string"],reason: 000041e0: 21 30 7d 2c 22 30 78 34 65 34 38 37 62 37 31 22 !0},"0x4e487b71" 000041f0: 3a 7b 73 69 67 6e 61 74 75 72 65 3a 22 50 61 6e :{signature:"Pan 00004200: 69 63 28 75 69 6e 74 32 35 36 29 22 2c 6e 61 6d ic(uint256)",nam 00004210: 65 3a 22 50 61 6e 69 63 22 2c 69 6e 70 75 74 73 e:"Panic",inputs 00004220: 3a 5b 22 75 69 6e 74 32 35 36 22 5d 7d 7d 3b 66 :["uint256"]}};f 00004230: 75 6e 63 74 69 6f 6e 20 65 6e 28 65 2c 74 29 7b unction en(e,t){ 00004240: 63 6f 6e 73 74 20 6e 3d 6e 65 77 20 45 72 72 6f const n=new Erro 00004250: 72 28 60 64 65 66 65 72 72 65 64 20 65 72 72 6f r(`deferred erro 00004260: 72 20 64 75 72 69 6e 67 20 41 42 49 20 64 65 63 r during ABI dec 00004270: 6f 64 69 6e 67 20 74 72 69 67 67 65 72 65 64 20 oding triggered 00004280: 61 63 63 65 73 73 69 6e 67 20 24 7b 65 7d 60 29 accessing ${e}`) 00004290: 3b 72 65 74 75 72 6e 20 6e 2e 65 72 72 6f 72 3d ;return n.error= 000042a0: 74 2c 6e 7d 63 6c 61 73 73 20 74 6e 7b 63 6f 6e t,n}class tn{con 000042b0: 73 74 72 75 63 74 6f 72 28 65 29 7b 6c 65 74 20 structor(e){let 000042c0: 74 3d 5b 5d 3b 74 3d 22 73 74 72 69 6e 67 22 3d t=[];t="string"= 000042d0: 3d 74 79 70 65 6f 66 20 65 3f 4a 53 4f 4e 2e 70 =typeof e?JSON.p 000042e0: 61 72 73 65 28 65 29 3a 65 2c 74 65 28 74 68 69 arse(e):e,te(thi 000042f0: 73 2c 22 66 72 61 67 6d 65 6e 74 73 22 2c 74 2e s,"fragments",t. 00004300: 6d 61 70 28 28 65 3d 3e 4f 74 2e 66 72 6f 6d 28 map((e=>Ot.from( 00004310: 65 29 29 29 2e 66 69 6c 74 65 72 28 28 65 3d 3e e))).filter((e=> 00004320: 6e 75 6c 6c 21 3d 65 29 29 29 2c 74 65 28 74 68 null!=e))),te(th 00004330: 69 73 2c 22 5f 61 62 69 43 6f 64 65 72 22 2c 6e is,"_abiCoder",n 00004340: 65 28 6e 65 77 2e 74 61 72 67 65 74 2c 22 67 65 e(new.target,"ge 00004350: 74 41 62 69 43 6f 64 65 72 22 29 28 29 29 2c 74 tAbiCoder")()),t 00004360: 65 28 74 68 69 73 2c 22 66 75 6e 63 74 69 6f 6e e(this,"function 00004370: 73 22 2c 7b 7d 29 2c 74 65 28 74 68 69 73 2c 22 s",{}),te(this," 00004380: 65 72 72 6f 72 73 22 2c 7b 7d 29 2c 74 65 28 74 errors",{}),te(t 00004390: 68 69 73 2c 22 65 76 65 6e 74 73 22 2c 7b 7d 29 his,"events",{}) 000043a0: 2c 74 65 28 74 68 69 73 2c 22 73 74 72 75 63 74 ,te(this,"struct 000043b0: 73 22 2c 7b 7d 29 2c 74 68 69 73 2e 66 72 61 67 s",{}),this.frag 000043c0: 6d 65 6e 74 73 2e 66 6f 72 45 61 63 68 28 28 65 ments.forEach((e 000043d0: 3d 3e 7b 6c 65 74 20 74 3d 6e 75 6c 6c 3b 73 77 =>{let t=null;sw 000043e0: 69 74 63 68 28 65 2e 74 79 70 65 29 7b 63 61 73 itch(e.type){cas 000043f0: 65 22 63 6f 6e 73 74 72 75 63 74 6f 72 22 3a 72 e"constructor":r 00004400: 65 74 75 72 6e 20 74 68 69 73 2e 64 65 70 6c 6f eturn this.deplo 00004410: 79 3f 76 6f 69 64 20 59 74 2e 77 61 72 6e 28 22 y?void Yt.warn(" 00004420: 64 75 70 6c 69 63 61 74 65 20 64 65 66 69 6e 69 duplicate defini 00004430: 74 69 6f 6e 20 2d 20 63 6f 6e 73 74 72 75 63 74 tion - construct 00004440: 6f 72 22 29 3a 76 6f 69 64 20 74 65 28 74 68 69 or"):void te(thi 00004450: 73 2c 22 64 65 70 6c 6f 79 22 2c 65 29 3b 63 61 s,"deploy",e);ca 00004460: 73 65 22 66 75 6e 63 74 69 6f 6e 22 3a 74 3d 74 se"function":t=t 00004470: 68 69 73 2e 66 75 6e 63 74 69 6f 6e 73 3b 62 72 his.functions;br 00004480: 65 61 6b 3b 63 61 73 65 22 65 76 65 6e 74 22 3a eak;case"event": 00004490: 74 3d 74 68 69 73 2e 65 76 65 6e 74 73 3b 62 72 t=this.events;br 000044a0: 65 61 6b 3b 63 61 73 65 22 65 72 72 6f 72 22 3a eak;case"error": 000044b0: 74 3d 74 68 69 73 2e 65 72 72 6f 72 73 3b 62 72 t=this.errors;br 000044c0: 65 61 6b 3b 64 65 66 61 75 6c 74 3a 72 65 74 75 eak;default:retu 000044d0: 72 6e 7d 6c 65 74 20 6e 3d 65 2e 66 6f 72 6d 61 rn}let n=e.forma 000044e0: 74 28 29 3b 74 5b 6e 5d 3f 59 74 2e 77 61 72 6e t();t[n]?Yt.warn 000044f0: 28 22 64 75 70 6c 69 63 61 74 65 20 64 65 66 69 ("duplicate defi 00004500: 6e 69 74 69 6f 6e 20 2d 20 22 2b 6e 29 3a 74 5b nition - "+n):t[ 00004510: 6e 5d 3d 65 7d 29 29 2c 74 68 69 73 2e 64 65 70 n]=e})),this.dep 00004520: 6c 6f 79 7c 7c 74 65 28 74 68 69 73 2c 22 64 65 loy||te(this,"de 00004530: 70 6c 6f 79 22 2c 44 74 2e 66 72 6f 6d 28 7b 70 ploy",Dt.from({p 00004540: 61 79 61 62 6c 65 3a 21 31 2c 74 79 70 65 3a 22 ayable:!1,type:" 00004550: 63 6f 6e 73 74 72 75 63 74 6f 72 22 7d 29 29 2c constructor"})), 00004560: 74 65 28 74 68 69 73 2c 22 5f 69 73 49 6e 74 65 te(this,"_isInte 00004570: 72 66 61 63 65 22 2c 21 30 29 7d 66 6f 72 6d 61 rface",!0)}forma 00004580: 74 28 65 29 7b 65 7c 7c 28 65 3d 43 74 2e 66 75 t(e){e||(e=Ct.fu 00004590: 6c 6c 29 2c 65 3d 3d 3d 43 74 2e 73 69 67 68 61 ll),e===Ct.sigha 000045a0: 73 68 26 26 59 74 2e 74 68 72 6f 77 41 72 67 75 sh&&Yt.throwArgu 000045b0: 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 74 65 72 mentError("inter 000045c0: 66 61 63 65 20 64 6f 65 73 20 6e 6f 74 20 73 75 face does not su 000045d0: 70 70 6f 72 74 20 66 6f 72 6d 61 74 74 69 6e 67 pport formatting 000045e0: 20 73 69 67 68 61 73 68 22 2c 22 66 6f 72 6d 61 sighash","forma 000045f0: 74 22 2c 65 29 3b 63 6f 6e 73 74 20 74 3d 74 68 t",e);const t=th 00004600: 69 73 2e 66 72 61 67 6d 65 6e 74 73 2e 6d 61 70 is.fragments.map 00004610: 28 28 74 3d 3e 74 2e 66 6f 72 6d 61 74 28 65 29 ((t=>t.format(e) 00004620: 29 29 3b 72 65 74 75 72 6e 20 65 3d 3d 3d 43 74 ));return e===Ct 00004630: 2e 6a 73 6f 6e 3f 4a 53 4f 4e 2e 73 74 72 69 6e .json?JSON.strin 00004640: 67 69 66 79 28 74 2e 6d 61 70 28 28 65 3d 3e 4a gify(t.map((e=>J 00004650: 53 4f 4e 2e 70 61 72 73 65 28 65 29 29 29 29 3a SON.parse(e)))): 00004660: 74 7d 73 74 61 74 69 63 20 67 65 74 41 62 69 43 t}static getAbiC 00004670: 6f 64 65 72 28 29 7b 72 65 74 75 72 6e 20 4b 74 oder(){return Kt 00004680: 7d 73 74 61 74 69 63 20 67 65 74 41 64 64 72 65 }static getAddre 00004690: 73 73 28 65 29 7b 72 65 74 75 72 6e 20 4d 65 28 ss(e){return Me( 000046a0: 65 29 7d 73 74 61 74 69 63 20 67 65 74 53 69 67 e)}static getSig 000046b0: 68 61 73 68 28 65 29 7b 72 65 74 75 72 6e 20 50 hash(e){return P 000046c0: 28 51 65 28 65 2e 66 6f 72 6d 61 74 28 29 29 2c (Qe(e.format()), 000046d0: 30 2c 34 29 7d 73 74 61 74 69 63 20 67 65 74 45 0,4)}static getE 000046e0: 76 65 6e 74 54 6f 70 69 63 28 65 29 7b 72 65 74 ventTopic(e){ret 000046f0: 75 72 6e 20 51 65 28 65 2e 66 6f 72 6d 61 74 28 urn Qe(e.format( 00004700: 29 29 7d 67 65 74 46 75 6e 63 74 69 6f 6e 28 65 ))}getFunction(e 00004710: 29 7b 69 66 28 49 28 65 29 29 7b 66 6f 72 28 63 ){if(I(e)){for(c 00004720: 6f 6e 73 74 20 74 20 69 6e 20 74 68 69 73 2e 66 onst t in this.f 00004730: 75 6e 63 74 69 6f 6e 73 29 69 66 28 65 3d 3d 3d unctions)if(e=== 00004740: 74 68 69 73 2e 67 65 74 53 69 67 68 61 73 68 28 this.getSighash( 00004750: 74 29 29 72 65 74 75 72 6e 20 74 68 69 73 2e 66 t))return this.f 00004760: 75 6e 63 74 69 6f 6e 73 5b 74 5d 3b 59 74 2e 74 unctions[t];Yt.t 00004770: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00004780: 72 28 22 6e 6f 20 6d 61 74 63 68 69 6e 67 20 66 r("no matching f 00004790: 75 6e 63 74 69 6f 6e 22 2c 22 73 69 67 68 61 73 unction","sighas 000047a0: 68 22 2c 65 29 7d 69 66 28 2d 31 3d 3d 3d 65 2e h",e)}if(-1===e. 000047b0: 69 6e 64 65 78 4f 66 28 22 28 22 29 29 7b 63 6f indexOf("(")){co 000047c0: 6e 73 74 20 74 3d 65 2e 74 72 69 6d 28 29 2c 6e nst t=e.trim(),n 000047d0: 3d 4f 62 6a 65 63 74 2e 6b 65 79 73 28 74 68 69 =Object.keys(thi 000047e0: 73 2e 66 75 6e 63 74 69 6f 6e 73 29 2e 66 69 6c s.functions).fil 000047f0: 74 65 72 28 28 65 3d 3e 65 2e 73 70 6c 69 74 28 ter((e=>e.split( 00004800: 22 28 22 29 5b 30 5d 3d 3d 3d 74 29 29 3b 72 65 "(")[0]===t));re 00004810: 74 75 72 6e 20 30 3d 3d 3d 6e 2e 6c 65 6e 67 74 turn 0===n.lengt 00004820: 68 3f 59 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 h?Yt.throwArgume 00004830: 6e 74 45 72 72 6f 72 28 22 6e 6f 20 6d 61 74 63 ntError("no matc 00004840: 68 69 6e 67 20 66 75 6e 63 74 69 6f 6e 22 2c 22 hing function"," 00004850: 6e 61 6d 65 22 2c 74 29 3a 6e 2e 6c 65 6e 67 74 name",t):n.lengt 00004860: 68 3e 31 26 26 59 74 2e 74 68 72 6f 77 41 72 67 h>1&&Yt.throwArg 00004870: 75 6d 65 6e 74 45 72 72 6f 72 28 22 6d 75 6c 74 umentError("mult 00004880: 69 70 6c 65 20 6d 61 74 63 68 69 6e 67 20 66 75 iple matching fu 00004890: 6e 63 74 69 6f 6e 73 22 2c 22 6e 61 6d 65 22 2c nctions","name", 000048a0: 74 29 2c 74 68 69 73 2e 66 75 6e 63 74 69 6f 6e t),this.function 000048b0: 73 5b 6e 5b 30 5d 5d 7d 63 6f 6e 73 74 20 74 3d s[n[0]]}const t= 000048c0: 74 68 69 73 2e 66 75 6e 63 74 69 6f 6e 73 5b 4c this.functions[L 000048d0: 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 29 2e t.fromString(e). 000048e0: 66 6f 72 6d 61 74 28 29 5d 3b 72 65 74 75 72 6e format()];return 000048f0: 20 74 7c 7c 59 74 2e 74 68 72 6f 77 41 72 67 75 t||Yt.throwArgu 00004900: 6d 65 6e 74 45 72 72 6f 72 28 22 6e 6f 20 6d 61 mentError("no ma 00004910: 74 63 68 69 6e 67 20 66 75 6e 63 74 69 6f 6e 22 tching function" 00004920: 2c 22 73 69 67 6e 61 74 75 72 65 22 2c 65 29 2c ,"signature",e), 00004930: 74 7d 67 65 74 45 76 65 6e 74 28 65 29 7b 69 66 t}getEvent(e){if 00004940: 28 49 28 65 29 29 7b 63 6f 6e 73 74 20 74 3d 65 (I(e)){const t=e 00004950: 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 3b 66 .toLowerCase();f 00004960: 6f 72 28 63 6f 6e 73 74 20 65 20 69 6e 20 74 68 or(const e in th 00004970: 69 73 2e 65 76 65 6e 74 73 29 69 66 28 74 3d 3d is.events)if(t== 00004980: 3d 74 68 69 73 2e 67 65 74 45 76 65 6e 74 54 6f =this.getEventTo 00004990: 70 69 63 28 65 29 29 72 65 74 75 72 6e 20 74 68 pic(e))return th 000049a0: 69 73 2e 65 76 65 6e 74 73 5b 65 5d 3b 59 74 2e is.events[e];Yt. 000049b0: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 000049c0: 6f 72 28 22 6e 6f 20 6d 61 74 63 68 69 6e 67 20 or("no matching 000049d0: 65 76 65 6e 74 22 2c 22 74 6f 70 69 63 68 61 73 event","topichas 000049e0: 68 22 2c 74 29 7d 69 66 28 2d 31 3d 3d 3d 65 2e h",t)}if(-1===e. 000049f0: 69 6e 64 65 78 4f 66 28 22 28 22 29 29 7b 63 6f indexOf("(")){co 00004a00: 6e 73 74 20 74 3d 65 2e 74 72 69 6d 28 29 2c 6e nst t=e.trim(),n 00004a10: 3d 4f 62 6a 65 63 74 2e 6b 65 79 73 28 74 68 69 =Object.keys(thi 00004a20: 73 2e 65 76 65 6e 74 73 29 2e 66 69 6c 74 65 72 s.events).filter 00004a30: 28 28 65 3d 3e 65 2e 73 70 6c 69 74 28 22 28 22 ((e=>e.split("(" 00004a40: 29 5b 30 5d 3d 3d 3d 74 29 29 3b 72 65 74 75 72 )[0]===t));retur 00004a50: 6e 20 30 3d 3d 3d 6e 2e 6c 65 6e 67 74 68 3f 59 n 0===n.length?Y 00004a60: 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 t.throwArgumentE 00004a70: 72 72 6f 72 28 22 6e 6f 20 6d 61 74 63 68 69 6e rror("no matchin 00004a80: 67 20 65 76 65 6e 74 22 2c 22 6e 61 6d 65 22 2c g event","name", 00004a90: 74 29 3a 6e 2e 6c 65 6e 67 74 68 3e 31 26 26 59 t):n.length>1&&Y 00004aa0: 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 t.throwArgumentE 00004ab0: 72 72 6f 72 28 22 6d 75 6c 74 69 70 6c 65 20 6d rror("multiple m 00004ac0: 61 74 63 68 69 6e 67 20 65 76 65 6e 74 73 22 2c atching events", 00004ad0: 22 6e 61 6d 65 22 2c 74 29 2c 74 68 69 73 2e 65 "name",t),this.e 00004ae0: 76 65 6e 74 73 5b 6e 5b 30 5d 5d 7d 63 6f 6e 73 vents[n[0]]}cons 00004af0: 74 20 74 3d 74 68 69 73 2e 65 76 65 6e 74 73 5b t t=this.events[ 00004b00: 52 74 2e 66 72 6f 6d 53 74 72 69 6e 67 28 65 29 Rt.fromString(e) 00004b10: 2e 66 6f 72 6d 61 74 28 29 5d 3b 72 65 74 75 72 .format()];retur 00004b20: 6e 20 74 7c 7c 59 74 2e 74 68 72 6f 77 41 72 67 n t||Yt.throwArg 00004b30: 75 6d 65 6e 74 45 72 72 6f 72 28 22 6e 6f 20 6d umentError("no m 00004b40: 61 74 63 68 69 6e 67 20 65 76 65 6e 74 22 2c 22 atching event"," 00004b50: 73 69 67 6e 61 74 75 72 65 22 2c 65 29 2c 74 7d signature",e),t} 00004b60: 67 65 74 45 72 72 6f 72 28 65 29 7b 69 66 28 49 getError(e){if(I 00004b70: 28 65 29 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 28 (e)){const t=ne( 00004b80: 74 68 69 73 2e 63 6f 6e 73 74 72 75 63 74 6f 72 this.constructor 00004b90: 2c 22 67 65 74 53 69 67 68 61 73 68 22 29 3b 66 ,"getSighash");f 00004ba0: 6f 72 28 63 6f 6e 73 74 20 6e 20 69 6e 20 74 68 or(const n in th 00004bb0: 69 73 2e 65 72 72 6f 72 73 29 7b 69 66 28 65 3d is.errors){if(e= 00004bc0: 3d 3d 74 28 74 68 69 73 2e 65 72 72 6f 72 73 5b ==t(this.errors[ 00004bd0: 6e 5d 29 29 72 65 74 75 72 6e 20 74 68 69 73 2e n]))return this. 00004be0: 65 72 72 6f 72 73 5b 6e 5d 7d 59 74 2e 74 68 72 errors[n]}Yt.thr 00004bf0: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 00004c00: 22 6e 6f 20 6d 61 74 63 68 69 6e 67 20 65 72 72 "no matching err 00004c10: 6f 72 22 2c 22 73 69 67 68 61 73 68 22 2c 65 29 or","sighash",e) 00004c20: 7d 69 66 28 2d 31 3d 3d 3d 65 2e 69 6e 64 65 78 }if(-1===e.index 00004c30: 4f 66 28 22 28 22 29 29 7b 63 6f 6e 73 74 20 74 Of("(")){const t 00004c40: 3d 65 2e 74 72 69 6d 28 29 2c 6e 3d 4f 62 6a 65 =e.trim(),n=Obje 00004c50: 63 74 2e 6b 65 79 73 28 74 68 69 73 2e 65 72 72 ct.keys(this.err 00004c60: 6f 72 73 29 2e 66 69 6c 74 65 72 28 28 65 3d 3e ors).filter((e=> 00004c70: 65 2e 73 70 6c 69 74 28 22 28 22 29 5b 30 5d 3d e.split("(")[0]= 00004c80: 3d 3d 74 29 29 3b 72 65 74 75 72 6e 20 30 3d 3d ==t));return 0== 00004c90: 3d 6e 2e 6c 65 6e 67 74 68 3f 59 74 2e 74 68 72 =n.length?Yt.thr 00004ca0: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 00004cb0: 22 6e 6f 20 6d 61 74 63 68 69 6e 67 20 65 72 72 "no matching err 00004cc0: 6f 72 22 2c 22 6e 61 6d 65 22 2c 74 29 3a 6e 2e or","name",t):n. 00004cd0: 6c 65 6e 67 74 68 3e 31 26 26 59 74 2e 74 68 72 length>1&&Yt.thr 00004ce0: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 00004cf0: 22 6d 75 6c 74 69 70 6c 65 20 6d 61 74 63 68 69 "multiple matchi 00004d00: 6e 67 20 65 72 72 6f 72 73 22 2c 22 6e 61 6d 65 ng errors","name 00004d10: 22 2c 74 29 2c 74 68 69 73 2e 65 72 72 6f 72 73 ",t),this.errors 00004d20: 5b 6e 5b 30 5d 5d 7d 63 6f 6e 73 74 20 74 3d 74 [n[0]]}const t=t 00004d30: 68 69 73 2e 65 72 72 6f 72 73 5b 4c 74 2e 66 72 his.errors[Lt.fr 00004d40: 6f 6d 53 74 72 69 6e 67 28 65 29 2e 66 6f 72 6d omString(e).form 00004d50: 61 74 28 29 5d 3b 72 65 74 75 72 6e 20 74 7c 7c at()];return t|| 00004d60: 59 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Yt.throwArgument 00004d70: 45 72 72 6f 72 28 22 6e 6f 20 6d 61 74 63 68 69 Error("no matchi 00004d80: 6e 67 20 65 72 72 6f 72 22 2c 22 73 69 67 6e 61 ng error","signa 00004d90: 74 75 72 65 22 2c 65 29 2c 74 7d 67 65 74 53 69 ture",e),t}getSi 00004da0: 67 68 61 73 68 28 65 29 7b 69 66 28 22 73 74 72 ghash(e){if("str 00004db0: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 29 74 ing"==typeof e)t 00004dc0: 72 79 7b 65 3d 74 68 69 73 2e 67 65 74 46 75 6e ry{e=this.getFun 00004dd0: 63 74 69 6f 6e 28 65 29 7d 63 61 74 63 68 28 74 ction(e)}catch(t 00004de0: 29 7b 74 72 79 7b 65 3d 74 68 69 73 2e 67 65 74 ){try{e=this.get 00004df0: 45 72 72 6f 72 28 65 29 7d 63 61 74 63 68 28 65 Error(e)}catch(e 00004e00: 29 7b 74 68 72 6f 77 20 74 7d 7d 72 65 74 75 72 ){throw t}}retur 00004e10: 6e 20 6e 65 28 74 68 69 73 2e 63 6f 6e 73 74 72 n ne(this.constr 00004e20: 75 63 74 6f 72 2c 22 67 65 74 53 69 67 68 61 73 uctor,"getSighas 00004e30: 68 22 29 28 65 29 7d 67 65 74 45 76 65 6e 74 54 h")(e)}getEventT 00004e40: 6f 70 69 63 28 65 29 7b 72 65 74 75 72 6e 22 73 opic(e){return"s 00004e50: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 00004e60: 26 26 28 65 3d 74 68 69 73 2e 67 65 74 45 76 65 &&(e=this.getEve 00004e70: 6e 74 28 65 29 29 2c 6e 65 28 74 68 69 73 2e 63 nt(e)),ne(this.c 00004e80: 6f 6e 73 74 72 75 63 74 6f 72 2c 22 67 65 74 45 onstructor,"getE 00004e90: 76 65 6e 74 54 6f 70 69 63 22 29 28 65 29 7d 5f ventTopic")(e)}_ 00004ea0: 64 65 63 6f 64 65 50 61 72 61 6d 73 28 65 2c 74 decodeParams(e,t 00004eb0: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 61 ){return this._a 00004ec0: 62 69 43 6f 64 65 72 2e 64 65 63 6f 64 65 28 65 biCoder.decode(e 00004ed0: 2c 74 29 7d 5f 65 6e 63 6f 64 65 50 61 72 61 6d ,t)}_encodeParam 00004ee0: 73 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 74 68 s(e,t){return th 00004ef0: 69 73 2e 5f 61 62 69 43 6f 64 65 72 2e 65 6e 63 is._abiCoder.enc 00004f00: 6f 64 65 28 65 2c 74 29 7d 65 6e 63 6f 64 65 44 ode(e,t)}encodeD 00004f10: 65 70 6c 6f 79 28 65 29 7b 72 65 74 75 72 6e 20 eploy(e){return 00004f20: 74 68 69 73 2e 5f 65 6e 63 6f 64 65 50 61 72 61 this._encodePara 00004f30: 6d 73 28 74 68 69 73 2e 64 65 70 6c 6f 79 2e 69 ms(this.deploy.i 00004f40: 6e 70 75 74 73 2c 65 7c 7c 5b 5d 29 7d 64 65 63 nputs,e||[])}dec 00004f50: 6f 64 65 45 72 72 6f 72 52 65 73 75 6c 74 28 65 odeErrorResult(e 00004f60: 2c 74 29 7b 22 73 74 72 69 6e 67 22 3d 3d 74 79 ,t){"string"==ty 00004f70: 70 65 6f 66 20 65 26 26 28 65 3d 74 68 69 73 2e peof e&&(e=this. 00004f80: 67 65 74 45 72 72 6f 72 28 65 29 29 3b 63 6f 6e getError(e));con 00004f90: 73 74 20 6e 3d 54 28 74 29 3b 72 65 74 75 72 6e st n=T(t);return 00004fa0: 20 52 28 6e 2e 73 6c 69 63 65 28 30 2c 34 29 29 R(n.slice(0,4)) 00004fb0: 21 3d 3d 74 68 69 73 2e 67 65 74 53 69 67 68 61 !==this.getSigha 00004fc0: 73 68 28 65 29 26 26 59 74 2e 74 68 72 6f 77 41 sh(e)&&Yt.throwA 00004fd0: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 60 64 61 rgumentError(`da 00004fe0: 74 61 20 73 69 67 6e 61 74 75 72 65 20 64 6f 65 ta signature doe 00004ff0: 73 20 6e 6f 74 20 6d 61 74 63 68 20 65 72 72 6f s not match erro 00005000: 72 20 24 7b 65 2e 6e 61 6d 65 7d 2e 60 2c 22 64 r ${e.name}.`,"d 00005010: 61 74 61 22 2c 52 28 6e 29 29 2c 74 68 69 73 2e ata",R(n)),this. 00005020: 5f 64 65 63 6f 64 65 50 61 72 61 6d 73 28 65 2e _decodeParams(e. 00005030: 69 6e 70 75 74 73 2c 6e 2e 73 6c 69 63 65 28 34 inputs,n.slice(4 00005040: 29 29 7d 65 6e 63 6f 64 65 45 72 72 6f 72 52 65 ))}encodeErrorRe 00005050: 73 75 6c 74 28 65 2c 74 29 7b 72 65 74 75 72 6e sult(e,t){return 00005060: 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 "string"==typeof 00005070: 20 65 26 26 28 65 3d 74 68 69 73 2e 67 65 74 45 e&&(e=this.getE 00005080: 72 72 6f 72 28 65 29 29 2c 52 28 43 28 5b 74 68 rror(e)),R(C([th 00005090: 69 73 2e 67 65 74 53 69 67 68 61 73 68 28 65 29 is.getSighash(e) 000050a0: 2c 74 68 69 73 2e 5f 65 6e 63 6f 64 65 50 61 72 ,this._encodePar 000050b0: 61 6d 73 28 65 2e 69 6e 70 75 74 73 2c 74 7c 7c ams(e.inputs,t|| 000050c0: 5b 5d 29 5d 29 29 7d 64 65 63 6f 64 65 46 75 6e [])]))}decodeFun 000050d0: 63 74 69 6f 6e 44 61 74 61 28 65 2c 74 29 7b 22 ctionData(e,t){" 000050e0: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 000050f0: 65 26 26 28 65 3d 74 68 69 73 2e 67 65 74 46 75 e&&(e=this.getFu 00005100: 6e 63 74 69 6f 6e 28 65 29 29 3b 63 6f 6e 73 74 nction(e));const 00005110: 20 6e 3d 54 28 74 29 3b 72 65 74 75 72 6e 20 52 n=T(t);return R 00005120: 28 6e 2e 73 6c 69 63 65 28 30 2c 34 29 29 21 3d (n.slice(0,4))!= 00005130: 3d 74 68 69 73 2e 67 65 74 53 69 67 68 61 73 68 =this.getSighash 00005140: 28 65 29 26 26 59 74 2e 74 68 72 6f 77 41 72 67 (e)&&Yt.throwArg 00005150: 75 6d 65 6e 74 45 72 72 6f 72 28 60 64 61 74 61 umentError(`data 00005160: 20 73 69 67 6e 61 74 75 72 65 20 64 6f 65 73 20 signature does 00005170: 6e 6f 74 20 6d 61 74 63 68 20 66 75 6e 63 74 69 not match functi 00005180: 6f 6e 20 24 7b 65 2e 6e 61 6d 65 7d 2e 60 2c 22 on ${e.name}.`," 00005190: 64 61 74 61 22 2c 52 28 6e 29 29 2c 74 68 69 73 data",R(n)),this 000051a0: 2e 5f 64 65 63 6f 64 65 50 61 72 61 6d 73 28 65 ._decodeParams(e 000051b0: 2e 69 6e 70 75 74 73 2c 6e 2e 73 6c 69 63 65 28 .inputs,n.slice( 000051c0: 34 29 29 7d 65 6e 63 6f 64 65 46 75 6e 63 74 69 4))}encodeFuncti 000051d0: 6f 6e 44 61 74 61 28 65 2c 74 29 7b 72 65 74 75 onData(e,t){retu 000051e0: 72 6e 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 rn"string"==type 000051f0: 6f 66 20 65 26 26 28 65 3d 74 68 69 73 2e 67 65 of e&&(e=this.ge 00005200: 74 46 75 6e 63 74 69 6f 6e 28 65 29 29 2c 52 28 tFunction(e)),R( 00005210: 43 28 5b 74 68 69 73 2e 67 65 74 53 69 67 68 61 C([this.getSigha 00005220: 73 68 28 65 29 2c 74 68 69 73 2e 5f 65 6e 63 6f sh(e),this._enco 00005230: 64 65 50 61 72 61 6d 73 28 65 2e 69 6e 70 75 74 deParams(e.input 00005240: 73 2c 74 7c 7c 5b 5d 29 5d 29 29 7d 64 65 63 6f s,t||[])]))}deco 00005250: 64 65 46 75 6e 63 74 69 6f 6e 52 65 73 75 6c 74 deFunctionResult 00005260: 28 65 2c 74 29 7b 22 73 74 72 69 6e 67 22 3d 3d (e,t){"string"== 00005270: 74 79 70 65 6f 66 20 65 26 26 28 65 3d 74 68 69 typeof e&&(e=thi 00005280: 73 2e 67 65 74 46 75 6e 63 74 69 6f 6e 28 65 29 s.getFunction(e) 00005290: 29 3b 6c 65 74 20 6e 3d 54 28 74 29 2c 72 3d 6e );let n=T(t),r=n 000052a0: 75 6c 6c 2c 6f 3d 22 22 2c 69 3d 6e 75 6c 6c 2c ull,o="",i=null, 000052b0: 61 3d 6e 75 6c 6c 2c 73 3d 6e 75 6c 6c 3b 73 77 a=null,s=null;sw 000052c0: 69 74 63 68 28 6e 2e 6c 65 6e 67 74 68 25 74 68 itch(n.length%th 000052d0: 69 73 2e 5f 61 62 69 43 6f 64 65 72 2e 5f 67 65 is._abiCoder._ge 000052e0: 74 57 6f 72 64 53 69 7a 65 28 29 29 7b 63 61 73 tWordSize()){cas 000052f0: 65 20 30 3a 74 72 79 7b 72 65 74 75 72 6e 20 74 e 0:try{return t 00005300: 68 69 73 2e 5f 61 62 69 43 6f 64 65 72 2e 64 65 his._abiCoder.de 00005310: 63 6f 64 65 28 65 2e 6f 75 74 70 75 74 73 2c 6e code(e.outputs,n 00005320: 29 7d 63 61 74 63 68 28 65 29 7b 7d 62 72 65 61 )}catch(e){}brea 00005330: 6b 3b 63 61 73 65 20 34 3a 7b 63 6f 6e 73 74 20 k;case 4:{const 00005340: 65 3d 52 28 6e 2e 73 6c 69 63 65 28 30 2c 34 29 e=R(n.slice(0,4) 00005350: 29 2c 74 3d 24 74 5b 65 5d 3b 69 66 28 74 29 69 ),t=$t[e];if(t)i 00005360: 3d 74 68 69 73 2e 5f 61 62 69 43 6f 64 65 72 2e =this._abiCoder. 00005370: 64 65 63 6f 64 65 28 74 2e 69 6e 70 75 74 73 2c decode(t.inputs, 00005380: 6e 2e 73 6c 69 63 65 28 34 29 29 2c 61 3d 74 2e n.slice(4)),a=t. 00005390: 6e 61 6d 65 2c 73 3d 74 2e 73 69 67 6e 61 74 75 name,s=t.signatu 000053a0: 72 65 2c 74 2e 72 65 61 73 6f 6e 26 26 28 72 3d re,t.reason&&(r= 000053b0: 69 5b 30 5d 29 2c 22 45 72 72 6f 72 22 3d 3d 3d i[0]),"Error"=== 000053c0: 61 3f 6f 3d 60 3b 20 56 4d 20 45 78 63 65 70 74 a?o=`; VM Except 000053d0: 69 6f 6e 20 77 68 69 6c 65 20 70 72 6f 63 65 73 ion while proces 000053e0: 73 69 6e 67 20 74 72 61 6e 73 61 63 74 69 6f 6e sing transaction 000053f0: 3a 20 72 65 76 65 72 74 65 64 20 77 69 74 68 20 : reverted with 00005400: 72 65 61 73 6f 6e 20 73 74 72 69 6e 67 20 24 7b reason string ${ 00005410: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 69 JSON.stringify(i 00005420: 5b 30 5d 29 7d 60 3a 22 50 61 6e 69 63 22 3d 3d [0])}`:"Panic"== 00005430: 3d 61 26 26 28 6f 3d 60 3b 20 56 4d 20 45 78 63 =a&&(o=`; VM Exc 00005440: 65 70 74 69 6f 6e 20 77 68 69 6c 65 20 70 72 6f eption while pro 00005450: 63 65 73 73 69 6e 67 20 74 72 61 6e 73 61 63 74 cessing transact 00005460: 69 6f 6e 3a 20 72 65 76 65 72 74 65 64 20 77 69 ion: reverted wi 00005470: 74 68 20 70 61 6e 69 63 20 63 6f 64 65 20 24 7b th panic code ${ 00005480: 69 5b 30 5d 7d 60 29 3b 65 6c 73 65 20 74 72 79 i[0]}`);else try 00005490: 7b 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 67 65 {const t=this.ge 000054a0: 74 45 72 72 6f 72 28 65 29 3b 69 3d 74 68 69 73 tError(e);i=this 000054b0: 2e 5f 61 62 69 43 6f 64 65 72 2e 64 65 63 6f 64 ._abiCoder.decod 000054c0: 65 28 74 2e 69 6e 70 75 74 73 2c 6e 2e 73 6c 69 e(t.inputs,n.sli 000054d0: 63 65 28 34 29 29 2c 61 3d 74 2e 6e 61 6d 65 2c ce(4)),a=t.name, 000054e0: 73 3d 74 2e 66 6f 72 6d 61 74 28 29 7d 63 61 74 s=t.format()}cat 000054f0: 63 68 28 65 29 7b 7d 62 72 65 61 6b 7d 7d 72 65 ch(e){}break}}re 00005500: 74 75 72 6e 20 59 74 2e 74 68 72 6f 77 45 72 72 turn Yt.throwErr 00005510: 6f 72 28 22 63 61 6c 6c 20 72 65 76 65 72 74 20 or("call revert 00005520: 65 78 63 65 70 74 69 6f 6e 22 2b 6f 2c 79 2e 65 exception"+o,y.e 00005530: 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 rrors.CALL_EXCEP 00005540: 54 49 4f 4e 2c 7b 6d 65 74 68 6f 64 3a 65 2e 66 TION,{method:e.f 00005550: 6f 72 6d 61 74 28 29 2c 64 61 74 61 3a 52 28 74 ormat(),data:R(t 00005560: 29 2c 65 72 72 6f 72 41 72 67 73 3a 69 2c 65 72 ),errorArgs:i,er 00005570: 72 6f 72 4e 61 6d 65 3a 61 2c 65 72 72 6f 72 53 rorName:a,errorS 00005580: 69 67 6e 61 74 75 72 65 3a 73 2c 72 65 61 73 6f ignature:s,reaso 00005590: 6e 3a 72 7d 29 7d 65 6e 63 6f 64 65 46 75 6e 63 n:r})}encodeFunc 000055a0: 74 69 6f 6e 52 65 73 75 6c 74 28 65 2c 74 29 7b tionResult(e,t){ 000055b0: 72 65 74 75 72 6e 22 73 74 72 69 6e 67 22 3d 3d return"string"== 000055c0: 74 79 70 65 6f 66 20 65 26 26 28 65 3d 74 68 69 typeof e&&(e=thi 000055d0: 73 2e 67 65 74 46 75 6e 63 74 69 6f 6e 28 65 29 s.getFunction(e) 000055e0: 29 2c 52 28 74 68 69 73 2e 5f 61 62 69 43 6f 64 ),R(this._abiCod 000055f0: 65 72 2e 65 6e 63 6f 64 65 28 65 2e 6f 75 74 70 er.encode(e.outp 00005600: 75 74 73 2c 74 7c 7c 5b 5d 29 29 7d 65 6e 63 6f uts,t||[]))}enco 00005610: 64 65 46 69 6c 74 65 72 54 6f 70 69 63 73 28 65 deFilterTopics(e 00005620: 2c 74 29 7b 22 73 74 72 69 6e 67 22 3d 3d 74 79 ,t){"string"==ty 00005630: 70 65 6f 66 20 65 26 26 28 65 3d 74 68 69 73 2e peof e&&(e=this. 00005640: 67 65 74 45 76 65 6e 74 28 65 29 29 2c 74 2e 6c getEvent(e)),t.l 00005650: 65 6e 67 74 68 3e 65 2e 69 6e 70 75 74 73 2e 6c ength>e.inputs.l 00005660: 65 6e 67 74 68 26 26 59 74 2e 74 68 72 6f 77 45 ength&&Yt.throwE 00005670: 72 72 6f 72 28 22 74 6f 6f 20 6d 61 6e 79 20 61 rror("too many a 00005680: 72 67 75 6d 65 6e 74 73 20 66 6f 72 20 22 2b 65 rguments for "+e 00005690: 2e 66 6f 72 6d 61 74 28 29 2c 79 2e 65 72 72 6f .format(),y.erro 000056a0: 72 73 2e 55 4e 45 58 50 45 43 54 45 44 5f 41 52 rs.UNEXPECTED_AR 000056b0: 47 55 4d 45 4e 54 2c 7b 61 72 67 75 6d 65 6e 74 GUMENT,{argument 000056c0: 3a 22 76 61 6c 75 65 73 22 2c 76 61 6c 75 65 3a :"values",value: 000056d0: 74 7d 29 3b 6c 65 74 20 6e 3d 5b 5d 3b 65 2e 61 t});let n=[];e.a 000056e0: 6e 6f 6e 79 6d 6f 75 73 7c 7c 6e 2e 70 75 73 68 nonymous||n.push 000056f0: 28 74 68 69 73 2e 67 65 74 45 76 65 6e 74 54 6f (this.getEventTo 00005700: 70 69 63 28 65 29 29 3b 63 6f 6e 73 74 20 72 3d pic(e));const r= 00005710: 28 65 2c 74 29 3d 3e 22 73 74 72 69 6e 67 22 3d (e,t)=>"string"= 00005720: 3d 3d 65 2e 74 79 70 65 3f 51 65 28 74 29 3a 22 ==e.type?Qe(t):" 00005730: 62 79 74 65 73 22 3d 3d 3d 65 2e 74 79 70 65 3f bytes"===e.type? 00005740: 76 65 28 52 28 74 29 29 3a 28 22 62 6f 6f 6c 22 ve(R(t)):("bool" 00005750: 3d 3d 3d 65 2e 74 79 70 65 26 26 22 62 6f 6f 6c ===e.type&&"bool 00005760: 65 61 6e 22 3d 3d 74 79 70 65 6f 66 20 74 26 26 ean"==typeof t&& 00005770: 28 74 3d 74 3f 22 30 78 30 31 22 3a 22 30 78 30 (t=t?"0x01":"0x0 00005780: 30 22 29 2c 65 2e 74 79 70 65 2e 6d 61 74 63 68 0"),e.type.match 00005790: 28 2f 5e 75 3f 69 6e 74 2f 29 26 26 28 74 3d 59 (/^u?int/)&&(t=Y 000057a0: 2e 66 72 6f 6d 28 74 29 2e 74 6f 48 65 78 53 74 .from(t).toHexSt 000057b0: 72 69 6e 67 28 29 29 2c 22 61 64 64 72 65 73 73 ring()),"address 000057c0: 22 3d 3d 3d 65 2e 74 79 70 65 26 26 74 68 69 73 "===e.type&&this 000057d0: 2e 5f 61 62 69 43 6f 64 65 72 2e 65 6e 63 6f 64 ._abiCoder.encod 000057e0: 65 28 5b 22 61 64 64 72 65 73 73 22 5d 2c 5b 74 e(["address"],[t 000057f0: 5d 29 2c 46 28 52 28 74 29 2c 33 32 29 29 3b 66 ]),F(R(t),32));f 00005800: 6f 72 28 74 2e 66 6f 72 45 61 63 68 28 28 28 74 or(t.forEach(((t 00005810: 2c 6f 29 3d 3e 7b 6c 65 74 20 69 3d 65 2e 69 6e ,o)=>{let i=e.in 00005820: 70 75 74 73 5b 6f 5d 3b 69 2e 69 6e 64 65 78 65 puts[o];i.indexe 00005830: 64 3f 6e 75 6c 6c 3d 3d 74 3f 6e 2e 70 75 73 68 d?null==t?n.push 00005840: 28 6e 75 6c 6c 29 3a 22 61 72 72 61 79 22 3d 3d (null):"array"== 00005850: 3d 69 2e 62 61 73 65 54 79 70 65 7c 7c 22 74 75 =i.baseType||"tu 00005860: 70 6c 65 22 3d 3d 3d 69 2e 62 61 73 65 54 79 70 ple"===i.baseTyp 00005870: 65 3f 59 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 e?Yt.throwArgume 00005880: 6e 74 45 72 72 6f 72 28 22 66 69 6c 74 65 72 69 ntError("filteri 00005890: 6e 67 20 77 69 74 68 20 74 75 70 6c 65 73 20 6f ng with tuples o 000058a0: 72 20 61 72 72 61 79 73 20 6e 6f 74 20 73 75 70 r arrays not sup 000058b0: 70 6f 72 74 65 64 22 2c 22 63 6f 6e 74 72 61 63 ported","contrac 000058c0: 74 2e 22 2b 69 2e 6e 61 6d 65 2c 74 29 3a 41 72 t."+i.name,t):Ar 000058d0: 72 61 79 2e 69 73 41 72 72 61 79 28 74 29 3f 6e ray.isArray(t)?n 000058e0: 2e 70 75 73 68 28 74 2e 6d 61 70 28 28 65 3d 3e .push(t.map((e=> 000058f0: 72 28 69 2c 65 29 29 29 29 3a 6e 2e 70 75 73 68 r(i,e)))):n.push 00005900: 28 72 28 69 2c 74 29 29 3a 6e 75 6c 6c 21 3d 74 (r(i,t)):null!=t 00005910: 26 26 59 74 2e 74 68 72 6f 77 41 72 67 75 6d 65 &&Yt.throwArgume 00005920: 6e 74 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 ntError("cannot 00005930: 66 69 6c 74 65 72 20 6e 6f 6e 2d 69 6e 64 65 78 filter non-index 00005940: 65 64 20 70 61 72 61 6d 65 74 65 72 73 3b 20 6d ed parameters; m 00005950: 75 73 74 20 62 65 20 6e 75 6c 6c 22 2c 22 63 6f ust be null","co 00005960: 6e 74 72 61 63 74 2e 22 2b 69 2e 6e 61 6d 65 2c ntract."+i.name, 00005970: 74 29 7d 29 29 3b 6e 2e 6c 65 6e 67 74 68 26 26 t)}));n.length&& 00005980: 6e 75 6c 6c 3d 3d 3d 6e 5b 6e 2e 6c 65 6e 67 74 null===n[n.lengt 00005990: 68 2d 31 5d 3b 29 6e 2e 70 6f 70 28 29 3b 72 65 h-1];)n.pop();re 000059a0: 74 75 72 6e 20 6e 7d 65 6e 63 6f 64 65 45 76 65 turn n}encodeEve 000059b0: 6e 74 4c 6f 67 28 65 2c 74 29 7b 22 73 74 72 69 ntLog(e,t){"stri 000059c0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 28 ng"==typeof e&&( 000059d0: 65 3d 74 68 69 73 2e 67 65 74 45 76 65 6e 74 28 e=this.getEvent( 000059e0: 65 29 29 3b 63 6f 6e 73 74 20 6e 3d 5b 5d 2c 72 e));const n=[],r 000059f0: 3d 5b 5d 2c 6f 3d 5b 5d 3b 72 65 74 75 72 6e 20 =[],o=[];return 00005a00: 65 2e 61 6e 6f 6e 79 6d 6f 75 73 7c 7c 6e 2e 70 e.anonymous||n.p 00005a10: 75 73 68 28 74 68 69 73 2e 67 65 74 45 76 65 6e ush(this.getEven 00005a20: 74 54 6f 70 69 63 28 65 29 29 2c 74 2e 6c 65 6e tTopic(e)),t.len 00005a30: 67 74 68 21 3d 3d 65 2e 69 6e 70 75 74 73 2e 6c gth!==e.inputs.l 00005a40: 65 6e 67 74 68 26 26 59 74 2e 74 68 72 6f 77 41 ength&&Yt.throwA 00005a50: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 65 76 rgumentError("ev 00005a60: 65 6e 74 20 61 72 67 75 6d 65 6e 74 73 2f 76 61 ent arguments/va 00005a70: 6c 75 65 73 20 6d 69 73 6d 61 74 63 68 22 2c 22 lues mismatch"," 00005a80: 76 61 6c 75 65 73 22 2c 74 29 2c 65 2e 69 6e 70 values",t),e.inp 00005a90: 75 74 73 2e 66 6f 72 45 61 63 68 28 28 28 65 2c uts.forEach(((e, 00005aa0: 69 29 3d 3e 7b 63 6f 6e 73 74 20 61 3d 74 5b 69 i)=>{const a=t[i 00005ab0: 5d 3b 69 66 28 65 2e 69 6e 64 65 78 65 64 29 69 ];if(e.indexed)i 00005ac0: 66 28 22 73 74 72 69 6e 67 22 3d 3d 3d 65 2e 74 f("string"===e.t 00005ad0: 79 70 65 29 6e 2e 70 75 73 68 28 51 65 28 61 29 ype)n.push(Qe(a) 00005ae0: 29 3b 65 6c 73 65 20 69 66 28 22 62 79 74 65 73 );else if("bytes 00005af0: 22 3d 3d 3d 65 2e 74 79 70 65 29 6e 2e 70 75 73 "===e.type)n.pus 00005b00: 68 28 76 65 28 61 29 29 3b 65 6c 73 65 7b 69 66 h(ve(a));else{if 00005b10: 28 22 74 75 70 6c 65 22 3d 3d 3d 65 2e 62 61 73 ("tuple"===e.bas 00005b20: 65 54 79 70 65 7c 7c 22 61 72 72 61 79 22 3d 3d eType||"array"== 00005b30: 3d 65 2e 62 61 73 65 54 79 70 65 29 74 68 72 6f =e.baseType)thro 00005b40: 77 20 6e 65 77 20 45 72 72 6f 72 28 22 6e 6f 74 w new Error("not 00005b50: 20 69 6d 70 6c 65 6d 65 6e 74 65 64 22 29 3b 6e implemented");n 00005b60: 2e 70 75 73 68 28 74 68 69 73 2e 5f 61 62 69 43 .push(this._abiC 00005b70: 6f 64 65 72 2e 65 6e 63 6f 64 65 28 5b 65 2e 74 oder.encode([e.t 00005b80: 79 70 65 5d 2c 5b 61 5d 29 29 7d 65 6c 73 65 20 ype],[a]))}else 00005b90: 72 2e 70 75 73 68 28 65 29 2c 6f 2e 70 75 73 68 r.push(e),o.push 00005ba0: 28 61 29 7d 29 29 2c 7b 64 61 74 61 3a 74 68 69 (a)})),{data:thi 00005bb0: 73 2e 5f 61 62 69 43 6f 64 65 72 2e 65 6e 63 6f s._abiCoder.enco 00005bc0: 64 65 28 72 2c 6f 29 2c 74 6f 70 69 63 73 3a 6e de(r,o),topics:n 00005bd0: 7d 7d 64 65 63 6f 64 65 45 76 65 6e 74 4c 6f 67 }}decodeEventLog 00005be0: 28 65 2c 74 2c 6e 29 7b 69 66 28 22 73 74 72 69 (e,t,n){if("stri 00005bf0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 28 ng"==typeof e&&( 00005c00: 65 3d 74 68 69 73 2e 67 65 74 45 76 65 6e 74 28 e=this.getEvent( 00005c10: 65 29 29 2c 6e 75 6c 6c 21 3d 6e 26 26 21 65 2e e)),null!=n&&!e. 00005c20: 61 6e 6f 6e 79 6d 6f 75 73 29 7b 6c 65 74 20 74 anonymous){let t 00005c30: 3d 74 68 69 73 2e 67 65 74 45 76 65 6e 74 54 6f =this.getEventTo 00005c40: 70 69 63 28 65 29 3b 49 28 6e 5b 30 5d 2c 33 32 pic(e);I(n[0],32 00005c50: 29 26 26 6e 5b 30 5d 2e 74 6f 4c 6f 77 65 72 43 )&&n[0].toLowerC 00005c60: 61 73 65 28 29 3d 3d 3d 74 7c 7c 59 74 2e 74 68 ase()===t||Yt.th 00005c70: 72 6f 77 45 72 72 6f 72 28 22 66 72 61 67 6d 65 rowError("fragme 00005c80: 6e 74 2f 74 6f 70 69 63 20 6d 69 73 6d 61 74 63 nt/topic mismatc 00005c90: 68 22 2c 79 2e 65 72 72 6f 72 73 2e 49 4e 56 41 h",y.errors.INVA 00005ca0: 4c 49 44 5f 41 52 47 55 4d 45 4e 54 2c 7b 61 72 LID_ARGUMENT,{ar 00005cb0: 67 75 6d 65 6e 74 3a 22 74 6f 70 69 63 73 5b 30 gument:"topics[0 00005cc0: 5d 22 2c 65 78 70 65 63 74 65 64 3a 74 2c 76 61 ]",expected:t,va 00005cd0: 6c 75 65 3a 6e 5b 30 5d 7d 29 2c 6e 3d 6e 2e 73 lue:n[0]}),n=n.s 00005ce0: 6c 69 63 65 28 31 29 7d 6c 65 74 20 72 3d 5b 5d lice(1)}let r=[] 00005cf0: 2c 6f 3d 5b 5d 2c 69 3d 5b 5d 3b 65 2e 69 6e 70 ,o=[],i=[];e.inp 00005d00: 75 74 73 2e 66 6f 72 45 61 63 68 28 28 28 65 2c uts.forEach(((e, 00005d10: 74 29 3d 3e 7b 65 2e 69 6e 64 65 78 65 64 3f 22 t)=>{e.indexed?" 00005d20: 73 74 72 69 6e 67 22 3d 3d 3d 65 2e 74 79 70 65 string"===e.type 00005d30: 7c 7c 22 62 79 74 65 73 22 3d 3d 3d 65 2e 74 79 ||"bytes"===e.ty 00005d40: 70 65 7c 7c 22 74 75 70 6c 65 22 3d 3d 3d 65 2e pe||"tuple"===e. 00005d50: 62 61 73 65 54 79 70 65 7c 7c 22 61 72 72 61 79 baseType||"array 00005d60: 22 3d 3d 3d 65 2e 62 61 73 65 54 79 70 65 3f 28 "===e.baseType?( 00005d70: 72 2e 70 75 73 68 28 6b 74 2e 66 72 6f 6d 4f 62 r.push(kt.fromOb 00005d80: 6a 65 63 74 28 7b 74 79 70 65 3a 22 62 79 74 65 ject({type:"byte 00005d90: 73 33 32 22 2c 6e 61 6d 65 3a 65 2e 6e 61 6d 65 s32",name:e.name 00005da0: 7d 29 29 2c 69 2e 70 75 73 68 28 21 30 29 29 3a })),i.push(!0)): 00005db0: 28 72 2e 70 75 73 68 28 65 29 2c 69 2e 70 75 73 (r.push(e),i.pus 00005dc0: 68 28 21 31 29 29 3a 28 6f 2e 70 75 73 68 28 65 h(!1)):(o.push(e 00005dd0: 29 2c 69 2e 70 75 73 68 28 21 31 29 29 7d 29 29 ),i.push(!1))})) 00005de0: 3b 6c 65 74 20 61 3d 6e 75 6c 6c 21 3d 6e 3f 74 ;let a=null!=n?t 00005df0: 68 69 73 2e 5f 61 62 69 43 6f 64 65 72 2e 64 65 his._abiCoder.de 00005e00: 63 6f 64 65 28 72 2c 43 28 6e 29 29 3a 6e 75 6c code(r,C(n)):nul 00005e10: 6c 2c 73 3d 74 68 69 73 2e 5f 61 62 69 43 6f 64 l,s=this._abiCod 00005e20: 65 72 2e 64 65 63 6f 64 65 28 6f 2c 74 2c 21 30 er.decode(o,t,!0 00005e30: 29 2c 6c 3d 5b 5d 2c 63 3d 30 2c 75 3d 30 3b 65 ),l=[],c=0,u=0;e 00005e40: 2e 69 6e 70 75 74 73 2e 66 6f 72 45 61 63 68 28 .inputs.forEach( 00005e50: 28 28 65 2c 74 29 3d 3e 7b 69 66 28 65 2e 69 6e ((e,t)=>{if(e.in 00005e60: 64 65 78 65 64 29 69 66 28 6e 75 6c 6c 3d 3d 61 dexed)if(null==a 00005e70: 29 6c 5b 74 5d 3d 6e 65 77 20 4a 74 28 7b 5f 69 )l[t]=new Jt({_i 00005e80: 73 49 6e 64 65 78 65 64 3a 21 30 2c 68 61 73 68 sIndexed:!0,hash 00005e90: 3a 6e 75 6c 6c 7d 29 3b 65 6c 73 65 20 69 66 28 :null});else if( 00005ea0: 69 5b 74 5d 29 6c 5b 74 5d 3d 6e 65 77 20 4a 74 i[t])l[t]=new Jt 00005eb0: 28 7b 5f 69 73 49 6e 64 65 78 65 64 3a 21 30 2c ({_isIndexed:!0, 00005ec0: 68 61 73 68 3a 61 5b 75 2b 2b 5d 7d 29 3b 65 6c hash:a[u++]});el 00005ed0: 73 65 20 74 72 79 7b 6c 5b 74 5d 3d 61 5b 75 2b se try{l[t]=a[u+ 00005ee0: 2b 5d 7d 63 61 74 63 68 28 65 29 7b 6c 5b 74 5d +]}catch(e){l[t] 00005ef0: 3d 65 7d 65 6c 73 65 20 74 72 79 7b 6c 5b 74 5d =e}else try{l[t] 00005f00: 3d 73 5b 63 2b 2b 5d 7d 63 61 74 63 68 28 65 29 =s[c++]}catch(e) 00005f10: 7b 6c 5b 74 5d 3d 65 7d 69 66 28 65 2e 6e 61 6d {l[t]=e}if(e.nam 00005f20: 65 26 26 6e 75 6c 6c 3d 3d 6c 5b 65 2e 6e 61 6d e&&null==l[e.nam 00005f30: 65 5d 29 7b 63 6f 6e 73 74 20 6e 3d 6c 5b 74 5d e]){const n=l[t] 00005f40: 3b 6e 20 69 6e 73 74 61 6e 63 65 6f 66 20 45 72 ;n instanceof Er 00005f50: 72 6f 72 3f 4f 62 6a 65 63 74 2e 64 65 66 69 6e ror?Object.defin 00005f60: 65 50 72 6f 70 65 72 74 79 28 6c 2c 65 2e 6e 61 eProperty(l,e.na 00005f70: 6d 65 2c 7b 65 6e 75 6d 65 72 61 62 6c 65 3a 21 me,{enumerable:! 00005f80: 30 2c 67 65 74 3a 28 29 3d 3e 7b 74 68 72 6f 77 0,get:()=>{throw 00005f90: 20 65 6e 28 60 70 72 6f 70 65 72 74 79 20 24 7b en(`property ${ 00005fa0: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 65 JSON.stringify(e 00005fb0: 2e 6e 61 6d 65 29 7d 60 2c 6e 29 7d 7d 29 3a 6c .name)}`,n)}}):l 00005fc0: 5b 65 2e 6e 61 6d 65 5d 3d 6e 7d 7d 29 29 3b 66 [e.name]=n}}));f 00005fd0: 6f 72 28 6c 65 74 20 65 3d 30 3b 65 3c 6c 2e 6c or(let e=0;e<l.l 00005fe0: 65 6e 67 74 68 3b 65 2b 2b 29 7b 63 6f 6e 73 74 ength;e++){const 00005ff0: 20 74 3d 6c 5b 65 5d 3b 74 20 69 6e 73 74 61 6e t=l[e];t instan 00006000: 63 65 6f 66 20 45 72 72 6f 72 26 26 4f 62 6a 65 ceof Error&&Obje 00006010: 63 74 2e 64 65 66 69 6e 65 50 72 6f 70 65 72 74 ct.definePropert 00006020: 79 28 6c 2c 65 2c 7b 65 6e 75 6d 65 72 61 62 6c y(l,e,{enumerabl 00006030: 65 3a 21 30 2c 67 65 74 3a 28 29 3d 3e 7b 74 68 e:!0,get:()=>{th 00006040: 72 6f 77 20 65 6e 28 60 69 6e 64 65 78 20 24 7b row en(`index ${ 00006050: 65 7d 60 2c 74 29 7d 7d 29 7d 72 65 74 75 72 6e e}`,t)}})}return 00006060: 20 4f 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 6c Object.freeze(l 00006070: 29 7d 70 61 72 73 65 54 72 61 6e 73 61 63 74 69 )}parseTransacti 00006080: 6f 6e 28 65 29 7b 6c 65 74 20 74 3d 74 68 69 73 on(e){let t=this 00006090: 2e 67 65 74 46 75 6e 63 74 69 6f 6e 28 65 2e 64 .getFunction(e.d 000060a0: 61 74 61 2e 73 75 62 73 74 72 69 6e 67 28 30 2c ata.substring(0, 000060b0: 31 30 29 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 10).toLowerCase( 000060c0: 29 29 3b 72 65 74 75 72 6e 20 74 3f 6e 65 77 20 ));return t?new 000060d0: 5a 74 28 7b 61 72 67 73 3a 74 68 69 73 2e 5f 61 Zt({args:this._a 000060e0: 62 69 43 6f 64 65 72 2e 64 65 63 6f 64 65 28 74 biCoder.decode(t 000060f0: 2e 69 6e 70 75 74 73 2c 22 30 78 22 2b 65 2e 64 .inputs,"0x"+e.d 00006100: 61 74 61 2e 73 75 62 73 74 72 69 6e 67 28 31 30 ata.substring(10 00006110: 29 29 2c 66 75 6e 63 74 69 6f 6e 46 72 61 67 6d )),functionFragm 00006120: 65 6e 74 3a 74 2c 6e 61 6d 65 3a 74 2e 6e 61 6d ent:t,name:t.nam 00006130: 65 2c 73 69 67 6e 61 74 75 72 65 3a 74 2e 66 6f e,signature:t.fo 00006140: 72 6d 61 74 28 29 2c 73 69 67 68 61 73 68 3a 74 rmat(),sighash:t 00006150: 68 69 73 2e 67 65 74 53 69 67 68 61 73 68 28 74 his.getSighash(t 00006160: 29 2c 76 61 6c 75 65 3a 59 2e 66 72 6f 6d 28 65 ),value:Y.from(e 00006170: 2e 76 61 6c 75 65 7c 7c 22 30 22 29 7d 29 3a 6e .value||"0")}):n 00006180: 75 6c 6c 7d 70 61 72 73 65 4c 6f 67 28 65 29 7b ull}parseLog(e){ 00006190: 6c 65 74 20 74 3d 74 68 69 73 2e 67 65 74 45 76 let t=this.getEv 000061a0: 65 6e 74 28 65 2e 74 6f 70 69 63 73 5b 30 5d 29 ent(e.topics[0]) 000061b0: 3b 72 65 74 75 72 6e 21 74 7c 7c 74 2e 61 6e 6f ;return!t||t.ano 000061c0: 6e 79 6d 6f 75 73 3f 6e 75 6c 6c 3a 6e 65 77 20 nymous?null:new 000061d0: 58 74 28 7b 65 76 65 6e 74 46 72 61 67 6d 65 6e Xt({eventFragmen 000061e0: 74 3a 74 2c 6e 61 6d 65 3a 74 2e 6e 61 6d 65 2c t:t,name:t.name, 000061f0: 73 69 67 6e 61 74 75 72 65 3a 74 2e 66 6f 72 6d signature:t.form 00006200: 61 74 28 29 2c 74 6f 70 69 63 3a 74 68 69 73 2e at(),topic:this. 00006210: 67 65 74 45 76 65 6e 74 54 6f 70 69 63 28 74 29 getEventTopic(t) 00006220: 2c 61 72 67 73 3a 74 68 69 73 2e 64 65 63 6f 64 ,args:this.decod 00006230: 65 45 76 65 6e 74 4c 6f 67 28 74 2c 65 2e 64 61 eEventLog(t,e.da 00006240: 74 61 2c 65 2e 74 6f 70 69 63 73 29 7d 29 7d 70 ta,e.topics)})}p 00006250: 61 72 73 65 45 72 72 6f 72 28 65 29 7b 63 6f 6e arseError(e){con 00006260: 73 74 20 74 3d 52 28 65 29 3b 6c 65 74 20 6e 3d st t=R(e);let n= 00006270: 74 68 69 73 2e 67 65 74 45 72 72 6f 72 28 74 2e this.getError(t. 00006280: 73 75 62 73 74 72 69 6e 67 28 30 2c 31 30 29 2e substring(0,10). 00006290: 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 29 3b 72 toLowerCase());r 000062a0: 65 74 75 72 6e 20 6e 3f 6e 65 77 20 51 74 28 7b eturn n?new Qt({ 000062b0: 61 72 67 73 3a 74 68 69 73 2e 5f 61 62 69 43 6f args:this._abiCo 000062c0: 64 65 72 2e 64 65 63 6f 64 65 28 6e 2e 69 6e 70 der.decode(n.inp 000062d0: 75 74 73 2c 22 30 78 22 2b 74 2e 73 75 62 73 74 uts,"0x"+t.subst 000062e0: 72 69 6e 67 28 31 30 29 29 2c 65 72 72 6f 72 46 ring(10)),errorF 000062f0: 72 61 67 6d 65 6e 74 3a 6e 2c 6e 61 6d 65 3a 6e ragment:n,name:n 00006300: 2e 6e 61 6d 65 2c 73 69 67 6e 61 74 75 72 65 3a .name,signature: 00006310: 6e 2e 66 6f 72 6d 61 74 28 29 2c 73 69 67 68 61 n.format(),sigha 00006320: 73 68 3a 74 68 69 73 2e 67 65 74 53 69 67 68 61 sh:this.getSigha 00006330: 73 68 28 6e 29 7d 29 3a 6e 75 6c 6c 7d 73 74 61 sh(n)}):null}sta 00006340: 74 69 63 20 69 73 49 6e 74 65 72 66 61 63 65 28 tic isInterface( 00006350: 65 29 7b 72 65 74 75 72 6e 21 28 21 65 7c 7c 21 e){return!(!e||! 00006360: 65 2e 5f 69 73 49 6e 74 65 72 66 61 63 65 29 7d e._isInterface)} 00006370: 7d 76 61 72 20 6e 6e 3d 66 75 6e 63 74 69 6f 6e }var nn=function 00006380: 28 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e (e,t,n,r){return 00006390: 20 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 new(n||(n=Promi 000063a0: 73 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f se))((function(o 000063b0: 2c 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 ,i){function a(e 000063c0: 29 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 ){try{l(r.next(e 000063d0: 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 ))}catch(e){i(e) 000063e0: 7d 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b }}function s(e){ 000063f0: 74 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 try{l(r.throw(e) 00006400: 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d )}catch(e){i(e)} 00006410: 7d 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 }function l(e){v 00006420: 61 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e ar t;e.done?o(e. 00006430: 76 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 value):(t=e.valu 00006440: 65 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e e,t instanceof n 00006450: 3f 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 ?t:new n((functi 00006460: 6f 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 on(e){e(t)}))).t 00006470: 68 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e hen(a,s)}l((r=r. 00006480: 61 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e apply(e,t||[])). 00006490: 6e 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 next())}))};cons 000064a0: 74 20 72 6e 3d 6e 65 77 20 79 28 22 61 62 73 74 t rn=new y("abst 000064b0: 72 61 63 74 2d 70 72 6f 76 69 64 65 72 2f 35 2e ract-provider/5. 000064c0: 37 2e 30 22 29 3b 63 6c 61 73 73 20 6f 6e 20 65 7.0");class on e 000064d0: 78 74 65 6e 64 73 20 75 65 7b 73 74 61 74 69 63 xtends ue{static 000064e0: 20 69 73 46 6f 72 6b 45 76 65 6e 74 28 65 29 7b isForkEvent(e){ 000064f0: 72 65 74 75 72 6e 21 28 21 65 7c 7c 21 65 2e 5f return!(!e||!e._ 00006500: 69 73 46 6f 72 6b 45 76 65 6e 74 29 7d 7d 63 6c isForkEvent)}}cl 00006510: 61 73 73 20 61 6e 7b 63 6f 6e 73 74 72 75 63 74 ass an{construct 00006520: 6f 72 28 29 7b 72 6e 2e 63 68 65 63 6b 41 62 73 or(){rn.checkAbs 00006530: 74 72 61 63 74 28 6e 65 77 2e 74 61 72 67 65 74 tract(new.target 00006540: 2c 61 6e 29 2c 74 65 28 74 68 69 73 2c 22 5f 69 ,an),te(this,"_i 00006550: 73 50 72 6f 76 69 64 65 72 22 2c 21 30 29 7d 67 sProvider",!0)}g 00006560: 65 74 46 65 65 44 61 74 61 28 29 7b 72 65 74 75 etFeeData(){retu 00006570: 72 6e 20 6e 6e 28 74 68 69 73 2c 76 6f 69 64 20 rn nn(this,void 00006580: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 00006590: 6f 6e 2a 28 29 7b 63 6f 6e 73 74 7b 62 6c 6f 63 on*(){const{bloc 000065a0: 6b 3a 65 2c 67 61 73 50 72 69 63 65 3a 74 7d 3d k:e,gasPrice:t}= 000065b0: 79 69 65 6c 64 20 72 65 28 7b 62 6c 6f 63 6b 3a yield re({block: 000065c0: 74 68 69 73 2e 67 65 74 42 6c 6f 63 6b 28 22 6c this.getBlock("l 000065d0: 61 74 65 73 74 22 29 2c 67 61 73 50 72 69 63 65 atest"),gasPrice 000065e0: 3a 74 68 69 73 2e 67 65 74 47 61 73 50 72 69 63 :this.getGasPric 000065f0: 65 28 29 2e 63 61 74 63 68 28 28 65 3d 3e 6e 75 e().catch((e=>nu 00006600: 6c 6c 29 29 7d 29 3b 6c 65 74 20 6e 3d 6e 75 6c ll))});let n=nul 00006610: 6c 2c 72 3d 6e 75 6c 6c 2c 6f 3d 6e 75 6c 6c 3b l,r=null,o=null; 00006620: 72 65 74 75 72 6e 20 65 26 26 65 2e 62 61 73 65 return e&&e.base 00006630: 46 65 65 50 65 72 47 61 73 26 26 28 6e 3d 65 2e FeePerGas&&(n=e. 00006640: 62 61 73 65 46 65 65 50 65 72 47 61 73 2c 6f 3d baseFeePerGas,o= 00006650: 59 2e 66 72 6f 6d 28 22 31 35 30 30 30 30 30 30 Y.from("15000000 00006660: 30 30 22 29 2c 72 3d 65 2e 62 61 73 65 46 65 65 00"),r=e.baseFee 00006670: 50 65 72 47 61 73 2e 6d 75 6c 28 32 29 2e 61 64 PerGas.mul(2).ad 00006680: 64 28 6f 29 29 2c 7b 6c 61 73 74 42 61 73 65 46 d(o)),{lastBaseF 00006690: 65 65 50 65 72 47 61 73 3a 6e 2c 6d 61 78 46 65 eePerGas:n,maxFe 000066a0: 65 50 65 72 47 61 73 3a 72 2c 6d 61 78 50 72 69 ePerGas:r,maxPri 000066b0: 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 3a 6f orityFeePerGas:o 000066c0: 2c 67 61 73 50 72 69 63 65 3a 74 7d 7d 29 29 7d ,gasPrice:t}}))} 000066d0: 61 64 64 4c 69 73 74 65 6e 65 72 28 65 2c 74 29 addListener(e,t) 000066e0: 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 6f 6e 28 {return this.on( 000066f0: 65 2c 74 29 7d 72 65 6d 6f 76 65 4c 69 73 74 65 e,t)}removeListe 00006700: 6e 65 72 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 ner(e,t){return 00006710: 74 68 69 73 2e 6f 66 66 28 65 2c 74 29 7d 73 74 this.off(e,t)}st 00006720: 61 74 69 63 20 69 73 50 72 6f 76 69 64 65 72 28 atic isProvider( 00006730: 65 29 7b 72 65 74 75 72 6e 21 28 21 65 7c 7c 21 e){return!(!e||! 00006740: 65 2e 5f 69 73 50 72 6f 76 69 64 65 72 29 7d 7d e._isProvider)}} 00006750: 76 61 72 20 73 6e 3d 66 75 6e 63 74 69 6f 6e 28 var sn=function( 00006760: 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 e,t,n,r){return 00006770: 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 new(n||(n=Promis 00006780: 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c e))((function(o, 00006790: 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 i){function a(e) 000067a0: 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 {try{l(r.next(e) 000067b0: 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d )}catch(e){i(e)} 000067c0: 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 }function s(e){t 000067d0: 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 ry{l(r.throw(e)) 000067e0: 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d }catch(e){i(e)}} 000067f0: 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 function l(e){va 00006800: 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 r t;e.done?o(e.v 00006810: 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 alue):(t=e.value 00006820: 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f ,t instanceof n? 00006830: 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 6f t:new n((functio 00006840: 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 n(e){e(t)}))).th 00006850: 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 en(a,s)}l((r=r.a 00006860: 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e pply(e,t||[])).n 00006870: 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 ext())}))};const 00006880: 20 6c 6e 3d 6e 65 77 20 79 28 22 61 62 73 74 72 ln=new y("abstr 00006890: 61 63 74 2d 73 69 67 6e 65 72 2f 35 2e 37 2e 30 act-signer/5.7.0 000068a0: 22 29 2c 63 6e 3d 5b 22 61 63 63 65 73 73 4c 69 "),cn=["accessLi 000068b0: 73 74 22 2c 22 63 63 69 70 52 65 61 64 45 6e 61 st","ccipReadEna 000068c0: 62 6c 65 64 22 2c 22 63 68 61 69 6e 49 64 22 2c bled","chainId", 000068d0: 22 63 75 73 74 6f 6d 44 61 74 61 22 2c 22 64 61 "customData","da 000068e0: 74 61 22 2c 22 66 72 6f 6d 22 2c 22 67 61 73 4c ta","from","gasL 000068f0: 69 6d 69 74 22 2c 22 67 61 73 50 72 69 63 65 22 imit","gasPrice" 00006900: 2c 22 6d 61 78 46 65 65 50 65 72 47 61 73 22 2c ,"maxFeePerGas", 00006910: 22 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 "maxPriorityFeeP 00006920: 65 72 47 61 73 22 2c 22 6e 6f 6e 63 65 22 2c 22 erGas","nonce"," 00006930: 74 6f 22 2c 22 74 79 70 65 22 2c 22 76 61 6c 75 to","type","valu 00006940: 65 22 5d 2c 75 6e 3d 5b 79 2e 65 72 72 6f 72 73 e"],un=[y.errors 00006950: 2e 49 4e 53 55 46 46 49 43 49 45 4e 54 5f 46 55 .INSUFFICIENT_FU 00006960: 4e 44 53 2c 79 2e 65 72 72 6f 72 73 2e 4e 4f 4e NDS,y.errors.NON 00006970: 43 45 5f 45 58 50 49 52 45 44 2c 79 2e 65 72 72 CE_EXPIRED,y.err 00006980: 6f 72 73 2e 52 45 50 4c 41 43 45 4d 45 4e 54 5f ors.REPLACEMENT_ 00006990: 55 4e 44 45 52 50 52 49 43 45 44 5d 3b 63 6c 61 UNDERPRICED];cla 000069a0: 73 73 20 64 6e 7b 63 6f 6e 73 74 72 75 63 74 6f ss dn{constructo 000069b0: 72 28 29 7b 6c 6e 2e 63 68 65 63 6b 41 62 73 74 r(){ln.checkAbst 000069c0: 72 61 63 74 28 6e 65 77 2e 74 61 72 67 65 74 2c ract(new.target, 000069d0: 64 6e 29 2c 74 65 28 74 68 69 73 2c 22 5f 69 73 dn),te(this,"_is 000069e0: 53 69 67 6e 65 72 22 2c 21 30 29 7d 67 65 74 42 Signer",!0)}getB 000069f0: 61 6c 61 6e 63 65 28 65 29 7b 72 65 74 75 72 6e alance(e){return 00006a00: 20 73 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 2c sn(this,void 0, 00006a10: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 00006a20: 2a 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e *(){return this. 00006a30: 5f 63 68 65 63 6b 50 72 6f 76 69 64 65 72 28 22 _checkProvider(" 00006a40: 67 65 74 42 61 6c 61 6e 63 65 22 29 2c 79 69 65 getBalance"),yie 00006a50: 6c 64 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 ld this.provider 00006a60: 2e 67 65 74 42 61 6c 61 6e 63 65 28 74 68 69 73 .getBalance(this 00006a70: 2e 67 65 74 41 64 64 72 65 73 73 28 29 2c 65 29 .getAddress(),e) 00006a80: 7d 29 29 7d 67 65 74 54 72 61 6e 73 61 63 74 69 }))}getTransacti 00006a90: 6f 6e 43 6f 75 6e 74 28 65 29 7b 72 65 74 75 72 onCount(e){retur 00006aa0: 6e 20 73 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 n sn(this,void 0 00006ab0: 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f ,void 0,(functio 00006ac0: 6e 2a 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 n*(){return this 00006ad0: 2e 5f 63 68 65 63 6b 50 72 6f 76 69 64 65 72 28 ._checkProvider( 00006ae0: 22 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 43 "getTransactionC 00006af0: 6f 75 6e 74 22 29 2c 79 69 65 6c 64 20 74 68 69 ount"),yield thi 00006b00: 73 2e 70 72 6f 76 69 64 65 72 2e 67 65 74 54 72 s.provider.getTr 00006b10: 61 6e 73 61 63 74 69 6f 6e 43 6f 75 6e 74 28 74 ansactionCount(t 00006b20: 68 69 73 2e 67 65 74 41 64 64 72 65 73 73 28 29 his.getAddress() 00006b30: 2c 65 29 7d 29 29 7d 65 73 74 69 6d 61 74 65 47 ,e)}))}estimateG 00006b40: 61 73 28 65 29 7b 72 65 74 75 72 6e 20 73 6e 28 as(e){return sn( 00006b50: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 00006b60: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 00006b70: 74 68 69 73 2e 5f 63 68 65 63 6b 50 72 6f 76 69 this._checkProvi 00006b80: 64 65 72 28 22 65 73 74 69 6d 61 74 65 47 61 73 der("estimateGas 00006b90: 22 29 3b 63 6f 6e 73 74 20 74 3d 79 69 65 6c 64 ");const t=yield 00006ba0: 20 72 65 28 74 68 69 73 2e 63 68 65 63 6b 54 72 re(this.checkTr 00006bb0: 61 6e 73 61 63 74 69 6f 6e 28 65 29 29 3b 72 65 ansaction(e));re 00006bc0: 74 75 72 6e 20 79 69 65 6c 64 20 74 68 69 73 2e turn yield this. 00006bd0: 70 72 6f 76 69 64 65 72 2e 65 73 74 69 6d 61 74 provider.estimat 00006be0: 65 47 61 73 28 74 29 7d 29 29 7d 63 61 6c 6c 28 eGas(t)}))}call( 00006bf0: 65 2c 74 29 7b 72 65 74 75 72 6e 20 73 6e 28 74 e,t){return sn(t 00006c00: 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 his,void 0,void 00006c10: 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 74 0,(function*(){t 00006c20: 68 69 73 2e 5f 63 68 65 63 6b 50 72 6f 76 69 64 his._checkProvid 00006c30: 65 72 28 22 63 61 6c 6c 22 29 3b 63 6f 6e 73 74 er("call");const 00006c40: 20 6e 3d 79 69 65 6c 64 20 72 65 28 74 68 69 73 n=yield re(this 00006c50: 2e 63 68 65 63 6b 54 72 61 6e 73 61 63 74 69 6f .checkTransactio 00006c60: 6e 28 65 29 29 3b 72 65 74 75 72 6e 20 79 69 65 n(e));return yie 00006c70: 6c 64 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 ld this.provider 00006c80: 2e 63 61 6c 6c 28 6e 2c 74 29 7d 29 29 7d 73 65 .call(n,t)}))}se 00006c90: 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 ndTransaction(e) 00006ca0: 7b 72 65 74 75 72 6e 20 73 6e 28 74 68 69 73 2c {return sn(this, 00006cb0: 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 void 0,void 0,(f 00006cc0: 75 6e 63 74 69 6f 6e 2a 28 29 7b 74 68 69 73 2e unction*(){this. 00006cd0: 5f 63 68 65 63 6b 50 72 6f 76 69 64 65 72 28 22 _checkProvider(" 00006ce0: 73 65 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 22 sendTransaction" 00006cf0: 29 3b 63 6f 6e 73 74 20 74 3d 79 69 65 6c 64 20 );const t=yield 00006d00: 74 68 69 73 2e 70 6f 70 75 6c 61 74 65 54 72 61 this.populateTra 00006d10: 6e 73 61 63 74 69 6f 6e 28 65 29 2c 6e 3d 79 69 nsaction(e),n=yi 00006d20: 65 6c 64 20 74 68 69 73 2e 73 69 67 6e 54 72 61 eld this.signTra 00006d30: 6e 73 61 63 74 69 6f 6e 28 74 29 3b 72 65 74 75 nsaction(t);retu 00006d40: 72 6e 20 79 69 65 6c 64 20 74 68 69 73 2e 70 72 rn yield this.pr 00006d50: 6f 76 69 64 65 72 2e 73 65 6e 64 54 72 61 6e 73 ovider.sendTrans 00006d60: 61 63 74 69 6f 6e 28 6e 29 7d 29 29 7d 67 65 74 action(n)}))}get 00006d70: 43 68 61 69 6e 49 64 28 29 7b 72 65 74 75 72 6e ChainId(){return 00006d80: 20 73 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 2c sn(this,void 0, 00006d90: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 00006da0: 2a 28 29 7b 74 68 69 73 2e 5f 63 68 65 63 6b 50 *(){this._checkP 00006db0: 72 6f 76 69 64 65 72 28 22 67 65 74 43 68 61 69 rovider("getChai 00006dc0: 6e 49 64 22 29 3b 72 65 74 75 72 6e 28 79 69 65 nId");return(yie 00006dd0: 6c 64 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 ld this.provider 00006de0: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 29 2e 63 .getNetwork()).c 00006df0: 68 61 69 6e 49 64 7d 29 29 7d 67 65 74 47 61 73 hainId}))}getGas 00006e00: 50 72 69 63 65 28 29 7b 72 65 74 75 72 6e 20 73 Price(){return s 00006e10: 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f n(this,void 0,vo 00006e20: 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 id 0,(function*( 00006e30: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 63 ){return this._c 00006e40: 68 65 63 6b 50 72 6f 76 69 64 65 72 28 22 67 65 heckProvider("ge 00006e50: 74 47 61 73 50 72 69 63 65 22 29 2c 79 69 65 6c tGasPrice"),yiel 00006e60: 64 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e d this.provider. 00006e70: 67 65 74 47 61 73 50 72 69 63 65 28 29 7d 29 29 getGasPrice()})) 00006e80: 7d 67 65 74 46 65 65 44 61 74 61 28 29 7b 72 65 }getFeeData(){re 00006e90: 74 75 72 6e 20 73 6e 28 74 68 69 73 2c 76 6f 69 turn sn(this,voi 00006ea0: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 00006eb0: 74 69 6f 6e 2a 28 29 7b 72 65 74 75 72 6e 20 74 tion*(){return t 00006ec0: 68 69 73 2e 5f 63 68 65 63 6b 50 72 6f 76 69 64 his._checkProvid 00006ed0: 65 72 28 22 67 65 74 46 65 65 44 61 74 61 22 29 er("getFeeData") 00006ee0: 2c 79 69 65 6c 64 20 74 68 69 73 2e 70 72 6f 76 ,yield this.prov 00006ef0: 69 64 65 72 2e 67 65 74 46 65 65 44 61 74 61 28 ider.getFeeData( 00006f00: 29 7d 29 29 7d 72 65 73 6f 6c 76 65 4e 61 6d 65 )}))}resolveName 00006f10: 28 65 29 7b 72 65 74 75 72 6e 20 73 6e 28 74 68 (e){return sn(th 00006f20: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 00006f30: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 ,(function*(){re 00006f40: 74 75 72 6e 20 74 68 69 73 2e 5f 63 68 65 63 6b turn this._check 00006f50: 50 72 6f 76 69 64 65 72 28 22 72 65 73 6f 6c 76 Provider("resolv 00006f60: 65 4e 61 6d 65 22 29 2c 79 69 65 6c 64 20 74 68 eName"),yield th 00006f70: 69 73 2e 70 72 6f 76 69 64 65 72 2e 72 65 73 6f is.provider.reso 00006f80: 6c 76 65 4e 61 6d 65 28 65 29 7d 29 29 7d 63 68 lveName(e)}))}ch 00006f90: 65 63 6b 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 eckTransaction(e 00006fa0: 29 7b 66 6f 72 28 63 6f 6e 73 74 20 74 20 69 6e ){for(const t in 00006fb0: 20 65 29 2d 31 3d 3d 3d 63 6e 2e 69 6e 64 65 78 e)-1===cn.index 00006fc0: 4f 66 28 74 29 26 26 6c 6e 2e 74 68 72 6f 77 41 Of(t)&&ln.throwA 00006fd0: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e rgumentError("in 00006fe0: 76 61 6c 69 64 20 74 72 61 6e 73 61 63 74 69 6f valid transactio 00006ff0: 6e 20 6b 65 79 3a 20 22 2b 74 2c 22 74 72 61 6e n key: "+t,"tran 00007000: 73 61 63 74 69 6f 6e 22 2c 65 29 3b 63 6f 6e 73 saction",e);cons 00007010: 74 20 74 3d 69 65 28 65 29 3b 72 65 74 75 72 6e t t=ie(e);return 00007020: 20 6e 75 6c 6c 3d 3d 74 2e 66 72 6f 6d 3f 74 2e null==t.from?t. 00007030: 66 72 6f 6d 3d 74 68 69 73 2e 67 65 74 41 64 64 from=this.getAdd 00007040: 72 65 73 73 28 29 3a 74 2e 66 72 6f 6d 3d 50 72 ress():t.from=Pr 00007050: 6f 6d 69 73 65 2e 61 6c 6c 28 5b 50 72 6f 6d 69 omise.all([Promi 00007060: 73 65 2e 72 65 73 6f 6c 76 65 28 74 2e 66 72 6f se.resolve(t.fro 00007070: 6d 29 2c 74 68 69 73 2e 67 65 74 41 64 64 72 65 m),this.getAddre 00007080: 73 73 28 29 5d 29 2e 74 68 65 6e 28 28 74 3d 3e ss()]).then((t=> 00007090: 28 74 5b 30 5d 2e 74 6f 4c 6f 77 65 72 43 61 73 (t[0].toLowerCas 000070a0: 65 28 29 21 3d 3d 74 5b 31 5d 2e 74 6f 4c 6f 77 e()!==t[1].toLow 000070b0: 65 72 43 61 73 65 28 29 26 26 6c 6e 2e 74 68 72 erCase()&&ln.thr 000070c0: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 000070d0: 22 66 72 6f 6d 20 61 64 64 72 65 73 73 20 6d 69 "from address mi 000070e0: 73 6d 61 74 63 68 22 2c 22 74 72 61 6e 73 61 63 smatch","transac 000070f0: 74 69 6f 6e 22 2c 65 29 2c 74 5b 30 5d 29 29 29 tion",e),t[0]))) 00007100: 2c 74 7d 70 6f 70 75 6c 61 74 65 54 72 61 6e 73 ,t}populateTrans 00007110: 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e action(e){return 00007120: 20 73 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 2c sn(this,void 0, 00007130: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 00007140: 2a 28 29 7b 63 6f 6e 73 74 20 74 3d 79 69 65 6c *(){const t=yiel 00007150: 64 20 72 65 28 74 68 69 73 2e 63 68 65 63 6b 54 d re(this.checkT 00007160: 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 29 3b 6e ransaction(e));n 00007170: 75 6c 6c 21 3d 74 2e 74 6f 26 26 28 74 2e 74 6f ull!=t.to&&(t.to 00007180: 3d 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 =Promise.resolve 00007190: 28 74 2e 74 6f 29 2e 74 68 65 6e 28 28 65 3d 3e (t.to).then((e=> 000071a0: 73 6e 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 sn(this,void 0,v 000071b0: 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a oid 0,(function* 000071c0: 28 29 7b 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 (){if(null==e)re 000071d0: 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f 6e 73 74 20 turn null;const 000071e0: 74 3d 79 69 65 6c 64 20 74 68 69 73 2e 72 65 73 t=yield this.res 000071f0: 6f 6c 76 65 4e 61 6d 65 28 65 29 3b 72 65 74 75 olveName(e);retu 00007200: 72 6e 20 6e 75 6c 6c 3d 3d 74 26 26 6c 6e 2e 74 rn null==t&&ln.t 00007210: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00007220: 72 28 22 70 72 6f 76 69 64 65 64 20 45 4e 53 20 r("provided ENS 00007230: 6e 61 6d 65 20 72 65 73 6f 6c 76 65 73 20 74 6f name resolves to 00007240: 20 6e 75 6c 6c 22 2c 22 74 78 2e 74 6f 22 2c 65 null","tx.to",e 00007250: 29 2c 74 7d 29 29 29 29 2c 74 2e 74 6f 2e 63 61 ),t})))),t.to.ca 00007260: 74 63 68 28 28 65 3d 3e 7b 7d 29 29 29 3b 63 6f tch((e=>{})));co 00007270: 6e 73 74 20 6e 3d 6e 75 6c 6c 21 3d 74 2e 6d 61 nst n=null!=t.ma 00007280: 78 46 65 65 50 65 72 47 61 73 7c 7c 6e 75 6c 6c xFeePerGas||null 00007290: 21 3d 74 2e 6d 61 78 50 72 69 6f 72 69 74 79 46 !=t.maxPriorityF 000072a0: 65 65 50 65 72 47 61 73 3b 69 66 28 6e 75 6c 6c eePerGas;if(null 000072b0: 3d 3d 74 2e 67 61 73 50 72 69 63 65 7c 7c 32 21 ==t.gasPrice||2! 000072c0: 3d 3d 74 2e 74 79 70 65 26 26 21 6e 3f 30 21 3d ==t.type&&!n?0!= 000072d0: 3d 74 2e 74 79 70 65 26 26 31 21 3d 3d 74 2e 74 =t.type&&1!==t.t 000072e0: 79 70 65 7c 7c 21 6e 7c 7c 6c 6e 2e 74 68 72 6f ype||!n||ln.thro 000072f0: 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 wArgumentError(" 00007300: 70 72 65 2d 65 69 70 2d 31 35 35 39 20 74 72 61 pre-eip-1559 tra 00007310: 6e 73 61 63 74 69 6f 6e 20 64 6f 20 6e 6f 74 20 nsaction do not 00007320: 73 75 70 70 6f 72 74 20 6d 61 78 46 65 65 50 65 support maxFeePe 00007330: 72 47 61 73 2f 6d 61 78 50 72 69 6f 72 69 74 79 rGas/maxPriority 00007340: 46 65 65 50 65 72 47 61 73 22 2c 22 74 72 61 6e FeePerGas","tran 00007350: 73 61 63 74 69 6f 6e 22 2c 65 29 3a 6c 6e 2e 74 saction",e):ln.t 00007360: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00007370: 72 28 22 65 69 70 2d 31 35 35 39 20 74 72 61 6e r("eip-1559 tran 00007380: 73 61 63 74 69 6f 6e 20 64 6f 20 6e 6f 74 20 73 saction do not s 00007390: 75 70 70 6f 72 74 20 67 61 73 50 72 69 63 65 22 upport gasPrice" 000073a0: 2c 22 74 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 ,"transaction",e 000073b0: 29 2c 32 21 3d 3d 74 2e 74 79 70 65 26 26 6e 75 ),2!==t.type&&nu 000073c0: 6c 6c 21 3d 74 2e 74 79 70 65 7c 7c 6e 75 6c 6c ll!=t.type||null 000073d0: 3d 3d 74 2e 6d 61 78 46 65 65 50 65 72 47 61 73 ==t.maxFeePerGas 000073e0: 7c 7c 6e 75 6c 6c 3d 3d 74 2e 6d 61 78 50 72 69 ||null==t.maxPri 000073f0: 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 29 69 orityFeePerGas)i 00007400: 66 28 30 3d 3d 3d 74 2e 74 79 70 65 7c 7c 31 3d f(0===t.type||1= 00007410: 3d 3d 74 2e 74 79 70 65 29 6e 75 6c 6c 3d 3d 74 ==t.type)null==t 00007420: 2e 67 61 73 50 72 69 63 65 26 26 28 74 2e 67 61 .gasPrice&&(t.ga 00007430: 73 50 72 69 63 65 3d 74 68 69 73 2e 67 65 74 47 sPrice=this.getG 00007440: 61 73 50 72 69 63 65 28 29 29 3b 65 6c 73 65 7b asPrice());else{ 00007450: 63 6f 6e 73 74 20 65 3d 79 69 65 6c 64 20 74 68 const e=yield th 00007460: 69 73 2e 67 65 74 46 65 65 44 61 74 61 28 29 3b is.getFeeData(); 00007470: 69 66 28 6e 75 6c 6c 3d 3d 74 2e 74 79 70 65 29 if(null==t.type) 00007480: 69 66 28 6e 75 6c 6c 21 3d 65 2e 6d 61 78 46 65 if(null!=e.maxFe 00007490: 65 50 65 72 47 61 73 26 26 6e 75 6c 6c 21 3d 65 ePerGas&&null!=e 000074a0: 2e 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 .maxPriorityFeeP 000074b0: 65 72 47 61 73 29 69 66 28 74 2e 74 79 70 65 3d erGas)if(t.type= 000074c0: 32 2c 6e 75 6c 6c 21 3d 74 2e 67 61 73 50 72 69 2,null!=t.gasPri 000074d0: 63 65 29 7b 63 6f 6e 73 74 20 65 3d 74 2e 67 61 ce){const e=t.ga 000074e0: 73 50 72 69 63 65 3b 64 65 6c 65 74 65 20 74 2e sPrice;delete t. 000074f0: 67 61 73 50 72 69 63 65 2c 74 2e 6d 61 78 46 65 gasPrice,t.maxFe 00007500: 65 50 65 72 47 61 73 3d 65 2c 74 2e 6d 61 78 50 ePerGas=e,t.maxP 00007510: 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 riorityFeePerGas 00007520: 3d 65 7d 65 6c 73 65 20 6e 75 6c 6c 3d 3d 74 2e =e}else null==t. 00007530: 6d 61 78 46 65 65 50 65 72 47 61 73 26 26 28 74 maxFeePerGas&&(t 00007540: 2e 6d 61 78 46 65 65 50 65 72 47 61 73 3d 65 2e .maxFeePerGas=e. 00007550: 6d 61 78 46 65 65 50 65 72 47 61 73 29 2c 6e 75 maxFeePerGas),nu 00007560: 6c 6c 3d 3d 74 2e 6d 61 78 50 72 69 6f 72 69 74 ll==t.maxPriorit 00007570: 79 46 65 65 50 65 72 47 61 73 26 26 28 74 2e 6d yFeePerGas&&(t.m 00007580: 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 axPriorityFeePer 00007590: 47 61 73 3d 65 2e 6d 61 78 50 72 69 6f 72 69 74 Gas=e.maxPriorit 000075a0: 79 46 65 65 50 65 72 47 61 73 29 3b 65 6c 73 65 yFeePerGas);else 000075b0: 20 6e 75 6c 6c 21 3d 65 2e 67 61 73 50 72 69 63 null!=e.gasPric 000075c0: 65 3f 28 6e 26 26 6c 6e 2e 74 68 72 6f 77 45 72 e?(n&&ln.throwEr 000075d0: 72 6f 72 28 22 6e 65 74 77 6f 72 6b 20 64 6f 65 ror("network doe 000075e0: 73 20 6e 6f 74 20 73 75 70 70 6f 72 74 20 45 49 s not support EI 000075f0: 50 2d 31 35 35 39 22 2c 79 2e 65 72 72 6f 72 73 P-1559",y.errors 00007600: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 00007610: 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f RATION,{operatio 00007620: 6e 3a 22 70 6f 70 75 6c 61 74 65 54 72 61 6e 73 n:"populateTrans 00007630: 61 63 74 69 6f 6e 22 7d 29 2c 6e 75 6c 6c 3d 3d action"}),null== 00007640: 74 2e 67 61 73 50 72 69 63 65 26 26 28 74 2e 67 t.gasPrice&&(t.g 00007650: 61 73 50 72 69 63 65 3d 65 2e 67 61 73 50 72 69 asPrice=e.gasPri 00007660: 63 65 29 2c 74 2e 74 79 70 65 3d 30 29 3a 6c 6e ce),t.type=0):ln 00007670: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 66 61 69 .throwError("fai 00007680: 6c 65 64 20 74 6f 20 67 65 74 20 63 6f 6e 73 69 led to get consi 00007690: 73 74 65 6e 74 20 66 65 65 20 64 61 74 61 22 2c stent fee data", 000076a0: 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f y.errors.UNSUPPO 000076b0: 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b RTED_OPERATION,{ 000076c0: 6f 70 65 72 61 74 69 6f 6e 3a 22 73 69 67 6e 65 operation:"signe 000076d0: 72 2e 67 65 74 46 65 65 44 61 74 61 22 7d 29 3b r.getFeeData"}); 000076e0: 65 6c 73 65 20 32 3d 3d 3d 74 2e 74 79 70 65 26 else 2===t.type& 000076f0: 26 28 6e 75 6c 6c 3d 3d 74 2e 6d 61 78 46 65 65 &(null==t.maxFee 00007700: 50 65 72 47 61 73 26 26 28 74 2e 6d 61 78 46 65 PerGas&&(t.maxFe 00007710: 65 50 65 72 47 61 73 3d 65 2e 6d 61 78 46 65 65 ePerGas=e.maxFee 00007720: 50 65 72 47 61 73 29 2c 6e 75 6c 6c 3d 3d 74 2e PerGas),null==t. 00007730: 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 maxPriorityFeePe 00007740: 72 47 61 73 26 26 28 74 2e 6d 61 78 50 72 69 6f rGas&&(t.maxPrio 00007750: 72 69 74 79 46 65 65 50 65 72 47 61 73 3d 65 2e rityFeePerGas=e. 00007760: 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 maxPriorityFeePe 00007770: 72 47 61 73 29 29 7d 65 6c 73 65 20 74 2e 74 79 rGas))}else t.ty 00007780: 70 65 3d 32 3b 72 65 74 75 72 6e 20 6e 75 6c 6c pe=2;return null 00007790: 3d 3d 74 2e 6e 6f 6e 63 65 26 26 28 74 2e 6e 6f ==t.nonce&&(t.no 000077a0: 6e 63 65 3d 74 68 69 73 2e 67 65 74 54 72 61 6e nce=this.getTran 000077b0: 73 61 63 74 69 6f 6e 43 6f 75 6e 74 28 22 70 65 sactionCount("pe 000077c0: 6e 64 69 6e 67 22 29 29 2c 6e 75 6c 6c 3d 3d 74 nding")),null==t 000077d0: 2e 67 61 73 4c 69 6d 69 74 26 26 28 74 2e 67 61 .gasLimit&&(t.ga 000077e0: 73 4c 69 6d 69 74 3d 74 68 69 73 2e 65 73 74 69 sLimit=this.esti 000077f0: 6d 61 74 65 47 61 73 28 74 29 2e 63 61 74 63 68 mateGas(t).catch 00007800: 28 28 65 3d 3e 7b 69 66 28 75 6e 2e 69 6e 64 65 ((e=>{if(un.inde 00007810: 78 4f 66 28 65 2e 63 6f 64 65 29 3e 3d 30 29 74 xOf(e.code)>=0)t 00007820: 68 72 6f 77 20 65 3b 72 65 74 75 72 6e 20 6c 6e hrow e;return ln 00007830: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 63 61 6e .throwError("can 00007840: 6e 6f 74 20 65 73 74 69 6d 61 74 65 20 67 61 73 not estimate gas 00007850: 3b 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 6d 61 ; transaction ma 00007860: 79 20 66 61 69 6c 20 6f 72 20 6d 61 79 20 72 65 y fail or may re 00007870: 71 75 69 72 65 20 6d 61 6e 75 61 6c 20 67 61 73 quire manual gas 00007880: 20 6c 69 6d 69 74 22 2c 79 2e 65 72 72 6f 72 73 limit",y.errors 00007890: 2e 55 4e 50 52 45 44 49 43 54 41 42 4c 45 5f 47 .UNPREDICTABLE_G 000078a0: 41 53 5f 4c 49 4d 49 54 2c 7b 65 72 72 6f 72 3a AS_LIMIT,{error: 000078b0: 65 2c 74 78 3a 74 7d 29 7d 29 29 29 2c 6e 75 6c e,tx:t})}))),nul 000078c0: 6c 3d 3d 74 2e 63 68 61 69 6e 49 64 3f 74 2e 63 l==t.chainId?t.c 000078d0: 68 61 69 6e 49 64 3d 74 68 69 73 2e 67 65 74 43 hainId=this.getC 000078e0: 68 61 69 6e 49 64 28 29 3a 74 2e 63 68 61 69 6e hainId():t.chain 000078f0: 49 64 3d 50 72 6f 6d 69 73 65 2e 61 6c 6c 28 5b Id=Promise.all([ 00007900: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 00007910: 74 2e 63 68 61 69 6e 49 64 29 2c 74 68 69 73 2e t.chainId),this. 00007920: 67 65 74 43 68 61 69 6e 49 64 28 29 5d 29 2e 74 getChainId()]).t 00007930: 68 65 6e 28 28 74 3d 3e 28 30 21 3d 3d 74 5b 31 hen((t=>(0!==t[1 00007940: 5d 26 26 74 5b 30 5d 21 3d 3d 74 5b 31 5d 26 26 ]&&t[0]!==t[1]&& 00007950: 6c 6e 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 ln.throwArgument 00007960: 45 72 72 6f 72 28 22 63 68 61 69 6e 49 64 20 61 Error("chainId a 00007970: 64 64 72 65 73 73 20 6d 69 73 6d 61 74 63 68 22 ddress mismatch" 00007980: 2c 22 74 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 ,"transaction",e 00007990: 29 2c 74 5b 30 5d 29 29 29 2c 79 69 65 6c 64 20 ),t[0]))),yield 000079a0: 72 65 28 74 29 7d 29 29 7d 5f 63 68 65 63 6b 50 re(t)}))}_checkP 000079b0: 72 6f 76 69 64 65 72 28 65 29 7b 74 68 69 73 2e rovider(e){this. 000079c0: 70 72 6f 76 69 64 65 72 7c 7c 6c 6e 2e 74 68 72 provider||ln.thr 000079d0: 6f 77 45 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 owError("missing 000079e0: 20 70 72 6f 76 69 64 65 72 22 2c 79 2e 65 72 72 provider",y.err 000079f0: 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f ors.UNSUPPORTED_ 00007a00: 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 OPERATION,{opera 00007a10: 74 69 6f 6e 3a 65 7c 7c 22 5f 63 68 65 63 6b 50 tion:e||"_checkP 00007a20: 72 6f 76 69 64 65 72 22 7d 29 7d 73 74 61 74 69 rovider"})}stati 00007a30: 63 20 69 73 53 69 67 6e 65 72 28 65 29 7b 72 65 c isSigner(e){re 00007a40: 74 75 72 6e 21 28 21 65 7c 7c 21 65 2e 5f 69 73 turn!(!e||!e._is 00007a50: 53 69 67 6e 65 72 29 7d 7d 63 6c 61 73 73 20 70 Signer)}}class p 00007a60: 6e 20 65 78 74 65 6e 64 73 20 64 6e 7b 63 6f 6e n extends dn{con 00007a70: 73 74 72 75 63 74 6f 72 28 65 2c 74 29 7b 73 75 structor(e,t){su 00007a80: 70 65 72 28 29 2c 74 65 28 74 68 69 73 2c 22 61 per(),te(this,"a 00007a90: 64 64 72 65 73 73 22 2c 65 29 2c 74 65 28 74 68 ddress",e),te(th 00007aa0: 69 73 2c 22 70 72 6f 76 69 64 65 72 22 2c 74 7c is,"provider",t| 00007ab0: 7c 6e 75 6c 6c 29 7d 67 65 74 41 64 64 72 65 73 |null)}getAddres 00007ac0: 73 28 29 7b 72 65 74 75 72 6e 20 50 72 6f 6d 69 s(){return Promi 00007ad0: 73 65 2e 72 65 73 6f 6c 76 65 28 74 68 69 73 2e se.resolve(this. 00007ae0: 61 64 64 72 65 73 73 29 7d 5f 66 61 69 6c 28 65 address)}_fail(e 00007af0: 2c 74 29 7b 72 65 74 75 72 6e 20 50 72 6f 6d 69 ,t){return Promi 00007b00: 73 65 2e 72 65 73 6f 6c 76 65 28 29 2e 74 68 65 se.resolve().the 00007b10: 6e 28 28 28 29 3d 3e 7b 6c 6e 2e 74 68 72 6f 77 n((()=>{ln.throw 00007b20: 45 72 72 6f 72 28 65 2c 79 2e 65 72 72 6f 72 73 Error(e,y.errors 00007b30: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 00007b40: 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f RATION,{operatio 00007b50: 6e 3a 74 7d 29 7d 29 29 7d 73 69 67 6e 4d 65 73 n:t})}))}signMes 00007b60: 73 61 67 65 28 65 29 7b 72 65 74 75 72 6e 20 74 sage(e){return t 00007b70: 68 69 73 2e 5f 66 61 69 6c 28 22 56 6f 69 64 53 his._fail("VoidS 00007b80: 69 67 6e 65 72 20 63 61 6e 6e 6f 74 20 73 69 67 igner cannot sig 00007b90: 6e 20 6d 65 73 73 61 67 65 73 22 2c 22 73 69 67 n messages","sig 00007ba0: 6e 4d 65 73 73 61 67 65 22 29 7d 73 69 67 6e 54 nMessage")}signT 00007bb0: 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 7b 72 65 ransaction(e){re 00007bc0: 74 75 72 6e 20 74 68 69 73 2e 5f 66 61 69 6c 28 turn this._fail( 00007bd0: 22 56 6f 69 64 53 69 67 6e 65 72 20 63 61 6e 6e "VoidSigner cann 00007be0: 6f 74 20 73 69 67 6e 20 74 72 61 6e 73 61 63 74 ot sign transact 00007bf0: 69 6f 6e 73 22 2c 22 73 69 67 6e 54 72 61 6e 73 ions","signTrans 00007c00: 61 63 74 69 6f 6e 22 29 7d 5f 73 69 67 6e 54 79 action")}_signTy 00007c10: 70 65 64 44 61 74 61 28 65 2c 74 2c 6e 29 7b 72 pedData(e,t,n){r 00007c20: 65 74 75 72 6e 20 74 68 69 73 2e 5f 66 61 69 6c eturn this._fail 00007c30: 28 22 56 6f 69 64 53 69 67 6e 65 72 20 63 61 6e ("VoidSigner can 00007c40: 6e 6f 74 20 73 69 67 6e 20 74 79 70 65 64 20 64 not sign typed d 00007c50: 61 74 61 22 2c 22 73 69 67 6e 54 79 70 65 64 44 ata","signTypedD 00007c60: 61 74 61 22 29 7d 63 6f 6e 6e 65 63 74 28 65 29 ata")}connect(e) 00007c70: 7b 72 65 74 75 72 6e 20 6e 65 77 20 70 6e 28 74 {return new pn(t 00007c80: 68 69 73 2e 61 64 64 72 65 73 73 2c 65 29 7d 7d his.address,e)}} 00007c90: 76 61 72 20 66 6e 3d 6e 28 33 33 37 31 35 29 2c var fn=n(33715), 00007ca0: 68 6e 3d 6e 2e 6e 28 66 6e 29 3b 22 75 6e 64 65 hn=n.n(fn);"unde 00007cb0: 66 69 6e 65 64 22 21 3d 74 79 70 65 6f 66 20 67 fined"!=typeof g 00007cc0: 6c 6f 62 61 6c 54 68 69 73 3f 67 6c 6f 62 61 6c lobalThis?global 00007cd0: 54 68 69 73 3a 22 75 6e 64 65 66 69 6e 65 64 22 This:"undefined" 00007ce0: 21 3d 74 79 70 65 6f 66 20 77 69 6e 64 6f 77 3f !=typeof window? 00007cf0: 77 69 6e 64 6f 77 3a 76 6f 69 64 20 30 21 3d 3d window:void 0!== 00007d00: 6e 2e 67 3f 6e 2e 67 3a 22 75 6e 64 65 66 69 6e n.g?n.g:"undefin 00007d10: 65 64 22 21 3d 74 79 70 65 6f 66 20 73 65 6c 66 ed"!=typeof self 00007d20: 26 26 73 65 6c 66 3b 66 75 6e 63 74 69 6f 6e 20 &&self;function 00007d30: 6d 6e 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e mn(e,t,n){return 00007d40: 20 6e 3d 7b 70 61 74 68 3a 74 2c 65 78 70 6f 72 n={path:t,expor 00007d50: 74 73 3a 7b 7d 2c 72 65 71 75 69 72 65 3a 66 75 ts:{},require:fu 00007d60: 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 74 75 nction(e,t){retu 00007d70: 72 6e 20 66 75 6e 63 74 69 6f 6e 28 29 7b 74 68 rn function(){th 00007d80: 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 44 row new Error("D 00007d90: 79 6e 61 6d 69 63 20 72 65 71 75 69 72 65 73 20 ynamic requires 00007da0: 61 72 65 20 6e 6f 74 20 63 75 72 72 65 6e 74 6c are not currentl 00007db0: 79 20 73 75 70 70 6f 72 74 65 64 20 62 79 20 40 y supported by @ 00007dc0: 72 6f 6c 6c 75 70 2f 70 6c 75 67 69 6e 2d 63 6f rollup/plugin-co 00007dd0: 6d 6d 6f 6e 6a 73 22 29 7d 28 6e 75 6c 6c 3d 3d mmonjs")}(null== 00007de0: 74 26 26 6e 2e 70 61 74 68 29 7d 7d 2c 65 28 6e t&&n.path)}},e(n 00007df0: 2c 6e 2e 65 78 70 6f 72 74 73 29 2c 6e 2e 65 78 ,n.exports),n.ex 00007e00: 70 6f 72 74 73 7d 76 61 72 20 67 6e 3d 62 6e 3b ports}var gn=bn; 00007e10: 66 75 6e 63 74 69 6f 6e 20 62 6e 28 65 2c 74 29 function bn(e,t) 00007e20: 7b 69 66 28 21 65 29 74 68 72 6f 77 20 6e 65 77 {if(!e)throw new 00007e30: 20 45 72 72 6f 72 28 74 7c 7c 22 41 73 73 65 72 Error(t||"Asser 00007e40: 74 69 6f 6e 20 66 61 69 6c 65 64 22 29 7d 62 6e tion failed")}bn 00007e50: 2e 65 71 75 61 6c 3d 66 75 6e 63 74 69 6f 6e 28 .equal=function( 00007e60: 65 2c 74 2c 6e 29 7b 69 66 28 65 21 3d 74 29 74 e,t,n){if(e!=t)t 00007e70: 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 6e hrow new Error(n 00007e80: 7c 7c 22 41 73 73 65 72 74 69 6f 6e 20 66 61 69 ||"Assertion fai 00007e90: 6c 65 64 3a 20 22 2b 65 2b 22 20 21 3d 20 22 2b led: "+e+" != "+ 00007ea0: 74 29 7d 3b 76 61 72 20 79 6e 3d 6d 6e 28 28 66 t)};var yn=mn((f 00007eb0: 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 76 61 72 unction(e,t){var 00007ec0: 20 6e 3d 74 3b 66 75 6e 63 74 69 6f 6e 20 72 28 n=t;function r( 00007ed0: 65 29 7b 72 65 74 75 72 6e 20 31 3d 3d 3d 65 2e e){return 1===e. 00007ee0: 6c 65 6e 67 74 68 3f 22 30 22 2b 65 3a 65 7d 66 length?"0"+e:e}f 00007ef0: 75 6e 63 74 69 6f 6e 20 6f 28 65 29 7b 66 6f 72 unction o(e){for 00007f00: 28 76 61 72 20 74 3d 22 22 2c 6e 3d 30 3b 6e 3c (var t="",n=0;n< 00007f10: 65 2e 6c 65 6e 67 74 68 3b 6e 2b 2b 29 74 2b 3d e.length;n++)t+= 00007f20: 72 28 65 5b 6e 5d 2e 74 6f 53 74 72 69 6e 67 28 r(e[n].toString( 00007f30: 31 36 29 29 3b 72 65 74 75 72 6e 20 74 7d 6e 2e 16));return t}n. 00007f40: 74 6f 41 72 72 61 79 3d 66 75 6e 63 74 69 6f 6e toArray=function 00007f50: 28 65 2c 74 29 7b 69 66 28 41 72 72 61 79 2e 69 (e,t){if(Array.i 00007f60: 73 41 72 72 61 79 28 65 29 29 72 65 74 75 72 6e sArray(e))return 00007f70: 20 65 2e 73 6c 69 63 65 28 29 3b 69 66 28 21 65 e.slice();if(!e 00007f80: 29 72 65 74 75 72 6e 5b 5d 3b 76 61 72 20 6e 3d )return[];var n= 00007f90: 5b 5d 3b 69 66 28 22 73 74 72 69 6e 67 22 21 3d [];if("string"!= 00007fa0: 74 79 70 65 6f 66 20 65 29 7b 66 6f 72 28 76 61 typeof e){for(va 00007fb0: 72 20 72 3d 30 3b 72 3c 65 2e 6c 65 6e 67 74 68 r r=0;r<e.length 00007fc0: 3b 72 2b 2b 29 6e 5b 72 5d 3d 30 7c 65 5b 72 5d ;r++)n[r]=0|e[r] 00007fd0: 3b 72 65 74 75 72 6e 20 6e 7d 69 66 28 22 68 65 ;return n}if("he 00007fe0: 78 22 3d 3d 3d 74 29 7b 28 65 3d 65 2e 72 65 70 x"===t){(e=e.rep 00007ff0: 6c 61 63 65 28 2f 5b 5e 61 2d 7a 30 2d 39 5d 2b lace(/[^a-z0-9]+ 00008000: 2f 67 69 2c 22 22 29 29 2e 6c 65 6e 67 74 68 25 /gi,"")).length% 00008010: 32 21 3d 30 26 26 28 65 3d 22 30 22 2b 65 29 3b 2!=0&&(e="0"+e); 00008020: 66 6f 72 28 72 3d 30 3b 72 3c 65 2e 6c 65 6e 67 for(r=0;r<e.leng 00008030: 74 68 3b 72 2b 3d 32 29 6e 2e 70 75 73 68 28 70 th;r+=2)n.push(p 00008040: 61 72 73 65 49 6e 74 28 65 5b 72 5d 2b 65 5b 72 arseInt(e[r]+e[r 00008050: 2b 31 5d 2c 31 36 29 29 7d 65 6c 73 65 20 66 6f +1],16))}else fo 00008060: 72 28 72 3d 30 3b 72 3c 65 2e 6c 65 6e 67 74 68 r(r=0;r<e.length 00008070: 3b 72 2b 2b 29 7b 76 61 72 20 6f 3d 65 2e 63 68 ;r++){var o=e.ch 00008080: 61 72 43 6f 64 65 41 74 28 72 29 2c 69 3d 6f 3e arCodeAt(r),i=o> 00008090: 3e 38 2c 61 3d 32 35 35 26 6f 3b 69 3f 6e 2e 70 >8,a=255&o;i?n.p 000080a0: 75 73 68 28 69 2c 61 29 3a 6e 2e 70 75 73 68 28 ush(i,a):n.push( 000080b0: 61 29 7d 72 65 74 75 72 6e 20 6e 7d 2c 6e 2e 7a a)}return n},n.z 000080c0: 65 72 6f 32 3d 72 2c 6e 2e 74 6f 48 65 78 3d 6f ero2=r,n.toHex=o 000080d0: 2c 6e 2e 65 6e 63 6f 64 65 3d 66 75 6e 63 74 69 ,n.encode=functi 000080e0: 6f 6e 28 65 2c 74 29 7b 72 65 74 75 72 6e 22 68 on(e,t){return"h 000080f0: 65 78 22 3d 3d 3d 74 3f 6f 28 65 29 3a 65 7d 7d ex"===t?o(e):e}} 00008100: 29 29 2c 76 6e 3d 6d 6e 28 28 66 75 6e 63 74 69 )),vn=mn((functi 00008110: 6f 6e 28 65 2c 74 29 7b 76 61 72 20 6e 3d 74 3b on(e,t){var n=t; 00008120: 6e 2e 61 73 73 65 72 74 3d 67 6e 2c 6e 2e 74 6f n.assert=gn,n.to 00008130: 41 72 72 61 79 3d 79 6e 2e 74 6f 41 72 72 61 79 Array=yn.toArray 00008140: 2c 6e 2e 7a 65 72 6f 32 3d 79 6e 2e 7a 65 72 6f ,n.zero2=yn.zero 00008150: 32 2c 6e 2e 74 6f 48 65 78 3d 79 6e 2e 74 6f 48 2,n.toHex=yn.toH 00008160: 65 78 2c 6e 2e 65 6e 63 6f 64 65 3d 79 6e 2e 65 ex,n.encode=yn.e 00008170: 6e 63 6f 64 65 2c 6e 2e 67 65 74 4e 41 46 3d 66 ncode,n.getNAF=f 00008180: 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 7b 76 unction(e,t,n){v 00008190: 61 72 20 72 3d 6e 65 77 20 41 72 72 61 79 28 4d ar r=new Array(M 000081a0: 61 74 68 2e 6d 61 78 28 65 2e 62 69 74 4c 65 6e ath.max(e.bitLen 000081b0: 67 74 68 28 29 2c 6e 29 2b 31 29 3b 72 2e 66 69 gth(),n)+1);r.fi 000081c0: 6c 6c 28 30 29 3b 66 6f 72 28 76 61 72 20 6f 3d ll(0);for(var o= 000081d0: 31 3c 3c 74 2b 31 2c 69 3d 65 2e 63 6c 6f 6e 65 1<<t+1,i=e.clone 000081e0: 28 29 2c 61 3d 30 3b 61 3c 72 2e 6c 65 6e 67 74 (),a=0;a<r.lengt 000081f0: 68 3b 61 2b 2b 29 7b 76 61 72 20 73 2c 6c 3d 69 h;a++){var s,l=i 00008200: 2e 61 6e 64 6c 6e 28 6f 2d 31 29 3b 69 2e 69 73 .andln(o-1);i.is 00008210: 4f 64 64 28 29 3f 28 73 3d 6c 3e 28 6f 3e 3e 31 Odd()?(s=l>(o>>1 00008220: 29 2d 31 3f 28 6f 3e 3e 31 29 2d 6c 3a 6c 2c 69 )-1?(o>>1)-l:l,i 00008230: 2e 69 73 75 62 6e 28 73 29 29 3a 73 3d 30 2c 72 .isubn(s)):s=0,r 00008240: 5b 61 5d 3d 73 2c 69 2e 69 75 73 68 72 6e 28 31 [a]=s,i.iushrn(1 00008250: 29 7d 72 65 74 75 72 6e 20 72 7d 2c 6e 2e 67 65 )}return r},n.ge 00008260: 74 4a 53 46 3d 66 75 6e 63 74 69 6f 6e 28 65 2c tJSF=function(e, 00008270: 74 29 7b 76 61 72 20 6e 3d 5b 5b 5d 2c 5b 5d 5d t){var n=[[],[]] 00008280: 3b 65 3d 65 2e 63 6c 6f 6e 65 28 29 2c 74 3d 74 ;e=e.clone(),t=t 00008290: 2e 63 6c 6f 6e 65 28 29 3b 66 6f 72 28 76 61 72 .clone();for(var 000082a0: 20 72 2c 6f 3d 30 2c 69 3d 30 3b 65 2e 63 6d 70 r,o=0,i=0;e.cmp 000082b0: 6e 28 2d 6f 29 3e 30 7c 7c 74 2e 63 6d 70 6e 28 n(-o)>0||t.cmpn( 000082c0: 2d 69 29 3e 30 3b 29 7b 76 61 72 20 61 2c 73 2c -i)>0;){var a,s, 000082d0: 6c 3d 65 2e 61 6e 64 6c 6e 28 33 29 2b 6f 26 33 l=e.andln(3)+o&3 000082e0: 2c 63 3d 74 2e 61 6e 64 6c 6e 28 33 29 2b 69 26 ,c=t.andln(3)+i& 000082f0: 33 3b 33 3d 3d 3d 6c 26 26 28 6c 3d 2d 31 29 2c 3;3===l&&(l=-1), 00008300: 33 3d 3d 3d 63 26 26 28 63 3d 2d 31 29 2c 61 3d 3===c&&(c=-1),a= 00008310: 30 3d 3d 28 31 26 6c 29 3f 30 3a 33 21 3d 3d 28 0==(1&l)?0:3!==( 00008320: 72 3d 65 2e 61 6e 64 6c 6e 28 37 29 2b 6f 26 37 r=e.andln(7)+o&7 00008330: 29 26 26 35 21 3d 3d 72 7c 7c 32 21 3d 3d 63 3f )&&5!==r||2!==c? 00008340: 6c 3a 2d 6c 2c 6e 5b 30 5d 2e 70 75 73 68 28 61 l:-l,n[0].push(a 00008350: 29 2c 73 3d 30 3d 3d 28 31 26 63 29 3f 30 3a 33 ),s=0==(1&c)?0:3 00008360: 21 3d 3d 28 72 3d 74 2e 61 6e 64 6c 6e 28 37 29 !==(r=t.andln(7) 00008370: 2b 69 26 37 29 26 26 35 21 3d 3d 72 7c 7c 32 21 +i&7)&&5!==r||2! 00008380: 3d 3d 6c 3f 63 3a 2d 63 2c 6e 5b 31 5d 2e 70 75 ==l?c:-c,n[1].pu 00008390: 73 68 28 73 29 2c 32 2a 6f 3d 3d 3d 61 2b 31 26 sh(s),2*o===a+1& 000083a0: 26 28 6f 3d 31 2d 6f 29 2c 32 2a 69 3d 3d 3d 73 &(o=1-o),2*i===s 000083b0: 2b 31 26 26 28 69 3d 31 2d 69 29 2c 65 2e 69 75 +1&&(i=1-i),e.iu 000083c0: 73 68 72 6e 28 31 29 2c 74 2e 69 75 73 68 72 6e shrn(1),t.iushrn 000083d0: 28 31 29 7d 72 65 74 75 72 6e 20 6e 7d 2c 6e 2e (1)}return n},n. 000083e0: 63 61 63 68 65 64 50 72 6f 70 65 72 74 79 3d 66 cachedProperty=f 000083f0: 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 7b 76 unction(e,t,n){v 00008400: 61 72 20 72 3d 22 5f 22 2b 74 3b 65 2e 70 72 6f ar r="_"+t;e.pro 00008410: 74 6f 74 79 70 65 5b 74 5d 3d 66 75 6e 63 74 69 totype[t]=functi 00008420: 6f 6e 28 29 7b 72 65 74 75 72 6e 20 76 6f 69 64 on(){return void 00008430: 20 30 21 3d 3d 74 68 69 73 5b 72 5d 3f 74 68 69 0!==this[r]?thi 00008440: 73 5b 72 5d 3a 74 68 69 73 5b 72 5d 3d 6e 2e 63 s[r]:this[r]=n.c 00008450: 61 6c 6c 28 74 68 69 73 29 7d 7d 2c 6e 2e 70 61 all(this)}},n.pa 00008460: 72 73 65 42 79 74 65 73 3d 66 75 6e 63 74 69 6f rseBytes=functio 00008470: 6e 28 65 29 7b 72 65 74 75 72 6e 22 73 74 72 69 n(e){return"stri 00008480: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 6e 2e ng"==typeof e?n. 00008490: 74 6f 41 72 72 61 79 28 65 2c 22 68 65 78 22 29 toArray(e,"hex") 000084a0: 3a 65 7d 2c 6e 2e 69 6e 74 46 72 6f 6d 4c 45 3d :e},n.intFromLE= 000084b0: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 function(e){retu 000084c0: 72 6e 20 6e 65 77 28 7a 28 29 29 28 65 2c 22 68 rn new(z())(e,"h 000084d0: 65 78 22 2c 22 6c 65 22 29 7d 7d 29 29 2c 53 6e ex","le")}})),Sn 000084e0: 3d 76 6e 2e 67 65 74 4e 41 46 2c 45 6e 3d 76 6e =vn.getNAF,En=vn 000084f0: 2e 67 65 74 4a 53 46 2c 5f 6e 3d 76 6e 2e 61 73 .getJSF,_n=vn.as 00008500: 73 65 72 74 3b 66 75 6e 63 74 69 6f 6e 20 77 6e sert;function wn 00008510: 28 65 2c 74 29 7b 74 68 69 73 2e 74 79 70 65 3d (e,t){this.type= 00008520: 65 2c 74 68 69 73 2e 70 3d 6e 65 77 28 7a 28 29 e,this.p=new(z() 00008530: 29 28 74 2e 70 2c 31 36 29 2c 74 68 69 73 2e 72 )(t.p,16),this.r 00008540: 65 64 3d 74 2e 70 72 69 6d 65 3f 7a 28 29 2e 72 ed=t.prime?z().r 00008550: 65 64 28 74 2e 70 72 69 6d 65 29 3a 7a 28 29 2e ed(t.prime):z(). 00008560: 6d 6f 6e 74 28 74 68 69 73 2e 70 29 2c 74 68 69 mont(this.p),thi 00008570: 73 2e 7a 65 72 6f 3d 6e 65 77 28 7a 28 29 29 28 s.zero=new(z())( 00008580: 30 29 2e 74 6f 52 65 64 28 74 68 69 73 2e 72 65 0).toRed(this.re 00008590: 64 29 2c 74 68 69 73 2e 6f 6e 65 3d 6e 65 77 28 d),this.one=new( 000085a0: 7a 28 29 29 28 31 29 2e 74 6f 52 65 64 28 74 68 z())(1).toRed(th 000085b0: 69 73 2e 72 65 64 29 2c 74 68 69 73 2e 74 77 6f is.red),this.two 000085c0: 3d 6e 65 77 28 7a 28 29 29 28 32 29 2e 74 6f 52 =new(z())(2).toR 000085d0: 65 64 28 74 68 69 73 2e 72 65 64 29 2c 74 68 69 ed(this.red),thi 000085e0: 73 2e 6e 3d 74 2e 6e 26 26 6e 65 77 28 7a 28 29 s.n=t.n&&new(z() 000085f0: 29 28 74 2e 6e 2c 31 36 29 2c 74 68 69 73 2e 67 )(t.n,16),this.g 00008600: 3d 74 2e 67 26 26 74 68 69 73 2e 70 6f 69 6e 74 =t.g&&this.point 00008610: 46 72 6f 6d 4a 53 4f 4e 28 74 2e 67 2c 74 2e 67 FromJSON(t.g,t.g 00008620: 52 65 64 29 2c 74 68 69 73 2e 5f 77 6e 61 66 54 Red),this._wnafT 00008630: 31 3d 6e 65 77 20 41 72 72 61 79 28 34 29 2c 74 1=new Array(4),t 00008640: 68 69 73 2e 5f 77 6e 61 66 54 32 3d 6e 65 77 20 his._wnafT2=new 00008650: 41 72 72 61 79 28 34 29 2c 74 68 69 73 2e 5f 77 Array(4),this._w 00008660: 6e 61 66 54 33 3d 6e 65 77 20 41 72 72 61 79 28 nafT3=new Array( 00008670: 34 29 2c 74 68 69 73 2e 5f 77 6e 61 66 54 34 3d 4),this._wnafT4= 00008680: 6e 65 77 20 41 72 72 61 79 28 34 29 2c 74 68 69 new Array(4),thi 00008690: 73 2e 5f 62 69 74 4c 65 6e 67 74 68 3d 74 68 69 s._bitLength=thi 000086a0: 73 2e 6e 3f 74 68 69 73 2e 6e 2e 62 69 74 4c 65 s.n?this.n.bitLe 000086b0: 6e 67 74 68 28 29 3a 30 3b 76 61 72 20 6e 3d 74 ngth():0;var n=t 000086c0: 68 69 73 2e 6e 26 26 74 68 69 73 2e 70 2e 64 69 his.n&&this.p.di 000086d0: 76 28 74 68 69 73 2e 6e 29 3b 21 6e 7c 7c 6e 2e v(this.n);!n||n. 000086e0: 63 6d 70 6e 28 31 30 30 29 3e 30 3f 74 68 69 73 cmpn(100)>0?this 000086f0: 2e 72 65 64 4e 3d 6e 75 6c 6c 3a 28 74 68 69 73 .redN=null:(this 00008700: 2e 5f 6d 61 78 77 65 6c 6c 54 72 69 63 6b 3d 21 ._maxwellTrick=! 00008710: 30 2c 74 68 69 73 2e 72 65 64 4e 3d 74 68 69 73 0,this.redN=this 00008720: 2e 6e 2e 74 6f 52 65 64 28 74 68 69 73 2e 72 65 .n.toRed(this.re 00008730: 64 29 29 7d 76 61 72 20 78 6e 3d 77 6e 3b 66 75 d))}var xn=wn;fu 00008740: 6e 63 74 69 6f 6e 20 54 6e 28 65 2c 74 29 7b 74 nction Tn(e,t){t 00008750: 68 69 73 2e 63 75 72 76 65 3d 65 2c 74 68 69 73 his.curve=e,this 00008760: 2e 74 79 70 65 3d 74 2c 74 68 69 73 2e 70 72 65 .type=t,this.pre 00008770: 63 6f 6d 70 75 74 65 64 3d 6e 75 6c 6c 7d 77 6e computed=null}wn 00008780: 2e 70 72 6f 74 6f 74 79 70 65 2e 70 6f 69 6e 74 .prototype.point 00008790: 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 74 68 72 6f =function(){thro 000087a0: 77 20 6e 65 77 20 45 72 72 6f 72 28 22 4e 6f 74 w new Error("Not 000087b0: 20 69 6d 70 6c 65 6d 65 6e 74 65 64 22 29 7d 2c implemented")}, 000087c0: 77 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 76 61 6c wn.prototype.val 000087d0: 69 64 61 74 65 3d 66 75 6e 63 74 69 6f 6e 28 29 idate=function() 000087e0: 7b 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 {throw new Error 000087f0: 28 22 4e 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 65 ("Not implemente 00008800: 64 22 29 7d 2c 77 6e 2e 70 72 6f 74 6f 74 79 70 d")},wn.prototyp 00008810: 65 2e 5f 66 69 78 65 64 4e 61 66 4d 75 6c 3d 66 e._fixedNafMul=f 00008820: 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 5f 6e 28 unction(e,t){_n( 00008830: 65 2e 70 72 65 63 6f 6d 70 75 74 65 64 29 3b 76 e.precomputed);v 00008840: 61 72 20 6e 3d 65 2e 5f 67 65 74 44 6f 75 62 6c ar n=e._getDoubl 00008850: 65 73 28 29 2c 72 3d 53 6e 28 74 2c 31 2c 74 68 es(),r=Sn(t,1,th 00008860: 69 73 2e 5f 62 69 74 4c 65 6e 67 74 68 29 2c 6f is._bitLength),o 00008870: 3d 28 31 3c 3c 6e 2e 73 74 65 70 2b 31 29 2d 28 =(1<<n.step+1)-( 00008880: 6e 2e 73 74 65 70 25 32 3d 3d 30 3f 32 3a 31 29 n.step%2==0?2:1) 00008890: 3b 6f 2f 3d 33 3b 76 61 72 20 69 2c 61 2c 73 3d ;o/=3;var i,a,s= 000088a0: 5b 5d 3b 66 6f 72 28 69 3d 30 3b 69 3c 72 2e 6c [];for(i=0;i<r.l 000088b0: 65 6e 67 74 68 3b 69 2b 3d 6e 2e 73 74 65 70 29 ength;i+=n.step) 000088c0: 7b 61 3d 30 3b 66 6f 72 28 76 61 72 20 6c 3d 69 {a=0;for(var l=i 000088d0: 2b 6e 2e 73 74 65 70 2d 31 3b 6c 3e 3d 69 3b 6c +n.step-1;l>=i;l 000088e0: 2d 2d 29 61 3d 28 61 3c 3c 31 29 2b 72 5b 6c 5d --)a=(a<<1)+r[l] 000088f0: 3b 73 2e 70 75 73 68 28 61 29 7d 66 6f 72 28 76 ;s.push(a)}for(v 00008900: 61 72 20 63 3d 74 68 69 73 2e 6a 70 6f 69 6e 74 ar c=this.jpoint 00008910: 28 6e 75 6c 6c 2c 6e 75 6c 6c 2c 6e 75 6c 6c 29 (null,null,null) 00008920: 2c 75 3d 74 68 69 73 2e 6a 70 6f 69 6e 74 28 6e ,u=this.jpoint(n 00008930: 75 6c 6c 2c 6e 75 6c 6c 2c 6e 75 6c 6c 29 2c 64 ull,null,null),d 00008940: 3d 6f 3b 64 3e 30 3b 64 2d 2d 29 7b 66 6f 72 28 =o;d>0;d--){for( 00008950: 69 3d 30 3b 69 3c 73 2e 6c 65 6e 67 74 68 3b 69 i=0;i<s.length;i 00008960: 2b 2b 29 28 61 3d 73 5b 69 5d 29 3d 3d 3d 64 3f ++)(a=s[i])===d? 00008970: 75 3d 75 2e 6d 69 78 65 64 41 64 64 28 6e 2e 70 u=u.mixedAdd(n.p 00008980: 6f 69 6e 74 73 5b 69 5d 29 3a 61 3d 3d 3d 2d 64 oints[i]):a===-d 00008990: 26 26 28 75 3d 75 2e 6d 69 78 65 64 41 64 64 28 &&(u=u.mixedAdd( 000089a0: 6e 2e 70 6f 69 6e 74 73 5b 69 5d 2e 6e 65 67 28 n.points[i].neg( 000089b0: 29 29 29 3b 63 3d 63 2e 61 64 64 28 75 29 7d 72 )));c=c.add(u)}r 000089c0: 65 74 75 72 6e 20 63 2e 74 6f 50 28 29 7d 2c 77 eturn c.toP()},w 000089d0: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 77 6e 61 n.prototype._wna 000089e0: 66 4d 75 6c 3d 66 75 6e 63 74 69 6f 6e 28 65 2c fMul=function(e, 000089f0: 74 29 7b 76 61 72 20 6e 3d 34 2c 72 3d 65 2e 5f t){var n=4,r=e._ 00008a00: 67 65 74 4e 41 46 50 6f 69 6e 74 73 28 6e 29 3b getNAFPoints(n); 00008a10: 6e 3d 72 2e 77 6e 64 3b 66 6f 72 28 76 61 72 20 n=r.wnd;for(var 00008a20: 6f 3d 72 2e 70 6f 69 6e 74 73 2c 69 3d 53 6e 28 o=r.points,i=Sn( 00008a30: 74 2c 6e 2c 74 68 69 73 2e 5f 62 69 74 4c 65 6e t,n,this._bitLen 00008a40: 67 74 68 29 2c 61 3d 74 68 69 73 2e 6a 70 6f 69 gth),a=this.jpoi 00008a50: 6e 74 28 6e 75 6c 6c 2c 6e 75 6c 6c 2c 6e 75 6c nt(null,null,nul 00008a60: 6c 29 2c 73 3d 69 2e 6c 65 6e 67 74 68 2d 31 3b l),s=i.length-1; 00008a70: 73 3e 3d 30 3b 73 2d 2d 29 7b 66 6f 72 28 76 61 s>=0;s--){for(va 00008a80: 72 20 6c 3d 30 3b 73 3e 3d 30 26 26 30 3d 3d 3d r l=0;s>=0&&0=== 00008a90: 69 5b 73 5d 3b 73 2d 2d 29 6c 2b 2b 3b 69 66 28 i[s];s--)l++;if( 00008aa0: 73 3e 3d 30 26 26 6c 2b 2b 2c 61 3d 61 2e 64 62 s>=0&&l++,a=a.db 00008ab0: 6c 70 28 6c 29 2c 73 3c 30 29 62 72 65 61 6b 3b lp(l),s<0)break; 00008ac0: 76 61 72 20 63 3d 69 5b 73 5d 3b 5f 6e 28 30 21 var c=i[s];_n(0! 00008ad0: 3d 3d 63 29 2c 61 3d 22 61 66 66 69 6e 65 22 3d ==c),a="affine"= 00008ae0: 3d 3d 65 2e 74 79 70 65 3f 63 3e 30 3f 61 2e 6d ==e.type?c>0?a.m 00008af0: 69 78 65 64 41 64 64 28 6f 5b 63 2d 31 3e 3e 31 ixedAdd(o[c-1>>1 00008b00: 5d 29 3a 61 2e 6d 69 78 65 64 41 64 64 28 6f 5b ]):a.mixedAdd(o[ 00008b10: 2d 63 2d 31 3e 3e 31 5d 2e 6e 65 67 28 29 29 3a -c-1>>1].neg()): 00008b20: 63 3e 30 3f 61 2e 61 64 64 28 6f 5b 63 2d 31 3e c>0?a.add(o[c-1> 00008b30: 3e 31 5d 29 3a 61 2e 61 64 64 28 6f 5b 2d 63 2d >1]):a.add(o[-c- 00008b40: 31 3e 3e 31 5d 2e 6e 65 67 28 29 29 7d 72 65 74 1>>1].neg())}ret 00008b50: 75 72 6e 22 61 66 66 69 6e 65 22 3d 3d 3d 65 2e urn"affine"===e. 00008b60: 74 79 70 65 3f 61 2e 74 6f 50 28 29 3a 61 7d 2c type?a.toP():a}, 00008b70: 77 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 77 6e wn.prototype._wn 00008b80: 61 66 4d 75 6c 41 64 64 3d 66 75 6e 63 74 69 6f afMulAdd=functio 00008b90: 6e 28 65 2c 74 2c 6e 2c 72 2c 6f 29 7b 76 61 72 n(e,t,n,r,o){var 00008ba0: 20 69 2c 61 2c 73 2c 6c 3d 74 68 69 73 2e 5f 77 i,a,s,l=this._w 00008bb0: 6e 61 66 54 31 2c 63 3d 74 68 69 73 2e 5f 77 6e nafT1,c=this._wn 00008bc0: 61 66 54 32 2c 75 3d 74 68 69 73 2e 5f 77 6e 61 afT2,u=this._wna 00008bd0: 66 54 33 2c 64 3d 30 3b 66 6f 72 28 69 3d 30 3b fT3,d=0;for(i=0; 00008be0: 69 3c 72 3b 69 2b 2b 29 7b 76 61 72 20 70 3d 28 i<r;i++){var p=( 00008bf0: 73 3d 74 5b 69 5d 29 2e 5f 67 65 74 4e 41 46 50 s=t[i])._getNAFP 00008c00: 6f 69 6e 74 73 28 65 29 3b 6c 5b 69 5d 3d 70 2e oints(e);l[i]=p. 00008c10: 77 6e 64 2c 63 5b 69 5d 3d 70 2e 70 6f 69 6e 74 wnd,c[i]=p.point 00008c20: 73 7d 66 6f 72 28 69 3d 72 2d 31 3b 69 3e 3d 31 s}for(i=r-1;i>=1 00008c30: 3b 69 2d 3d 32 29 7b 76 61 72 20 66 3d 69 2d 31 ;i-=2){var f=i-1 00008c40: 2c 68 3d 69 3b 69 66 28 31 3d 3d 3d 6c 5b 66 5d ,h=i;if(1===l[f] 00008c50: 26 26 31 3d 3d 3d 6c 5b 68 5d 29 7b 76 61 72 20 &&1===l[h]){var 00008c60: 6d 3d 5b 74 5b 66 5d 2c 6e 75 6c 6c 2c 6e 75 6c m=[t[f],null,nul 00008c70: 6c 2c 74 5b 68 5d 5d 3b 30 3d 3d 3d 74 5b 66 5d l,t[h]];0===t[f] 00008c80: 2e 79 2e 63 6d 70 28 74 5b 68 5d 2e 79 29 3f 28 .y.cmp(t[h].y)?( 00008c90: 6d 5b 31 5d 3d 74 5b 66 5d 2e 61 64 64 28 74 5b m[1]=t[f].add(t[ 00008ca0: 68 5d 29 2c 6d 5b 32 5d 3d 74 5b 66 5d 2e 74 6f h]),m[2]=t[f].to 00008cb0: 4a 28 29 2e 6d 69 78 65 64 41 64 64 28 74 5b 68 J().mixedAdd(t[h 00008cc0: 5d 2e 6e 65 67 28 29 29 29 3a 30 3d 3d 3d 74 5b ].neg())):0===t[ 00008cd0: 66 5d 2e 79 2e 63 6d 70 28 74 5b 68 5d 2e 79 2e f].y.cmp(t[h].y. 00008ce0: 72 65 64 4e 65 67 28 29 29 3f 28 6d 5b 31 5d 3d redNeg())?(m[1]= 00008cf0: 74 5b 66 5d 2e 74 6f 4a 28 29 2e 6d 69 78 65 64 t[f].toJ().mixed 00008d00: 41 64 64 28 74 5b 68 5d 29 2c 6d 5b 32 5d 3d 74 Add(t[h]),m[2]=t 00008d10: 5b 66 5d 2e 61 64 64 28 74 5b 68 5d 2e 6e 65 67 [f].add(t[h].neg 00008d20: 28 29 29 29 3a 28 6d 5b 31 5d 3d 74 5b 66 5d 2e ())):(m[1]=t[f]. 00008d30: 74 6f 4a 28 29 2e 6d 69 78 65 64 41 64 64 28 74 toJ().mixedAdd(t 00008d40: 5b 68 5d 29 2c 6d 5b 32 5d 3d 74 5b 66 5d 2e 74 [h]),m[2]=t[f].t 00008d50: 6f 4a 28 29 2e 6d 69 78 65 64 41 64 64 28 74 5b oJ().mixedAdd(t[ 00008d60: 68 5d 2e 6e 65 67 28 29 29 29 3b 76 61 72 20 67 h].neg()));var g 00008d70: 3d 5b 2d 33 2c 2d 31 2c 2d 35 2c 2d 37 2c 30 2c =[-3,-1,-5,-7,0, 00008d80: 37 2c 35 2c 31 2c 33 5d 2c 62 3d 45 6e 28 6e 5b 7,5,1,3],b=En(n[ 00008d90: 66 5d 2c 6e 5b 68 5d 29 3b 66 6f 72 28 64 3d 4d f],n[h]);for(d=M 00008da0: 61 74 68 2e 6d 61 78 28 62 5b 30 5d 2e 6c 65 6e ath.max(b[0].len 00008db0: 67 74 68 2c 64 29 2c 75 5b 66 5d 3d 6e 65 77 20 gth,d),u[f]=new 00008dc0: 41 72 72 61 79 28 64 29 2c 75 5b 68 5d 3d 6e 65 Array(d),u[h]=ne 00008dd0: 77 20 41 72 72 61 79 28 64 29 2c 61 3d 30 3b 61 w Array(d),a=0;a 00008de0: 3c 64 3b 61 2b 2b 29 7b 76 61 72 20 79 3d 30 7c <d;a++){var y=0| 00008df0: 62 5b 30 5d 5b 61 5d 2c 76 3d 30 7c 62 5b 31 5d b[0][a],v=0|b[1] 00008e00: 5b 61 5d 3b 75 5b 66 5d 5b 61 5d 3d 67 5b 33 2a [a];u[f][a]=g[3* 00008e10: 28 79 2b 31 29 2b 28 76 2b 31 29 5d 2c 75 5b 68 (y+1)+(v+1)],u[h 00008e20: 5d 5b 61 5d 3d 30 2c 63 5b 66 5d 3d 6d 7d 7d 65 ][a]=0,c[f]=m}}e 00008e30: 6c 73 65 20 75 5b 66 5d 3d 53 6e 28 6e 5b 66 5d lse u[f]=Sn(n[f] 00008e40: 2c 6c 5b 66 5d 2c 74 68 69 73 2e 5f 62 69 74 4c ,l[f],this._bitL 00008e50: 65 6e 67 74 68 29 2c 75 5b 68 5d 3d 53 6e 28 6e ength),u[h]=Sn(n 00008e60: 5b 68 5d 2c 6c 5b 68 5d 2c 74 68 69 73 2e 5f 62 [h],l[h],this._b 00008e70: 69 74 4c 65 6e 67 74 68 29 2c 64 3d 4d 61 74 68 itLength),d=Math 00008e80: 2e 6d 61 78 28 75 5b 66 5d 2e 6c 65 6e 67 74 68 .max(u[f].length 00008e90: 2c 64 29 2c 64 3d 4d 61 74 68 2e 6d 61 78 28 75 ,d),d=Math.max(u 00008ea0: 5b 68 5d 2e 6c 65 6e 67 74 68 2c 64 29 7d 76 61 [h].length,d)}va 00008eb0: 72 20 53 3d 74 68 69 73 2e 6a 70 6f 69 6e 74 28 r S=this.jpoint( 00008ec0: 6e 75 6c 6c 2c 6e 75 6c 6c 2c 6e 75 6c 6c 29 2c null,null,null), 00008ed0: 45 3d 74 68 69 73 2e 5f 77 6e 61 66 54 34 3b 66 E=this._wnafT4;f 00008ee0: 6f 72 28 69 3d 64 3b 69 3e 3d 30 3b 69 2d 2d 29 or(i=d;i>=0;i--) 00008ef0: 7b 66 6f 72 28 76 61 72 20 5f 3d 30 3b 69 3e 3d {for(var _=0;i>= 00008f00: 30 3b 29 7b 76 61 72 20 77 3d 21 30 3b 66 6f 72 0;){var w=!0;for 00008f10: 28 61 3d 30 3b 61 3c 72 3b 61 2b 2b 29 45 5b 61 (a=0;a<r;a++)E[a 00008f20: 5d 3d 30 7c 75 5b 61 5d 5b 69 5d 2c 30 21 3d 3d ]=0|u[a][i],0!== 00008f30: 45 5b 61 5d 26 26 28 77 3d 21 31 29 3b 69 66 28 E[a]&&(w=!1);if( 00008f40: 21 77 29 62 72 65 61 6b 3b 5f 2b 2b 2c 69 2d 2d !w)break;_++,i-- 00008f50: 7d 69 66 28 69 3e 3d 30 26 26 5f 2b 2b 2c 53 3d }if(i>=0&&_++,S= 00008f60: 53 2e 64 62 6c 70 28 5f 29 2c 69 3c 30 29 62 72 S.dblp(_),i<0)br 00008f70: 65 61 6b 3b 66 6f 72 28 61 3d 30 3b 61 3c 72 3b eak;for(a=0;a<r; 00008f80: 61 2b 2b 29 7b 76 61 72 20 78 3d 45 5b 61 5d 3b a++){var x=E[a]; 00008f90: 30 21 3d 3d 78 26 26 28 78 3e 30 3f 73 3d 63 5b 0!==x&&(x>0?s=c[ 00008fa0: 61 5d 5b 78 2d 31 3e 3e 31 5d 3a 78 3c 30 26 26 a][x-1>>1]:x<0&& 00008fb0: 28 73 3d 63 5b 61 5d 5b 2d 78 2d 31 3e 3e 31 5d (s=c[a][-x-1>>1] 00008fc0: 2e 6e 65 67 28 29 29 2c 53 3d 22 61 66 66 69 6e .neg()),S="affin 00008fd0: 65 22 3d 3d 3d 73 2e 74 79 70 65 3f 53 2e 6d 69 e"===s.type?S.mi 00008fe0: 78 65 64 41 64 64 28 73 29 3a 53 2e 61 64 64 28 xedAdd(s):S.add( 00008ff0: 73 29 29 7d 7d 66 6f 72 28 69 3d 30 3b 69 3c 72 s))}}for(i=0;i<r 00009000: 3b 69 2b 2b 29 63 5b 69 5d 3d 6e 75 6c 6c 3b 72 ;i++)c[i]=null;r 00009010: 65 74 75 72 6e 20 6f 3f 53 3a 53 2e 74 6f 50 28 eturn o?S:S.toP( 00009020: 29 7d 2c 77 6e 2e 42 61 73 65 50 6f 69 6e 74 3d )},wn.BasePoint= 00009030: 54 6e 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 65 2e Tn,Tn.prototype. 00009040: 65 71 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 74 68 eq=function(){th 00009050: 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 4e row new Error("N 00009060: 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 65 64 22 29 ot implemented") 00009070: 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 76 },Tn.prototype.v 00009080: 61 6c 69 64 61 74 65 3d 66 75 6e 63 74 69 6f 6e alidate=function 00009090: 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 63 (){return this.c 000090a0: 75 72 76 65 2e 76 61 6c 69 64 61 74 65 28 74 68 urve.validate(th 000090b0: 69 73 29 7d 2c 77 6e 2e 70 72 6f 74 6f 74 79 70 is)},wn.prototyp 000090c0: 65 2e 64 65 63 6f 64 65 50 6f 69 6e 74 3d 66 75 e.decodePoint=fu 000090d0: 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 65 3d 76 6e nction(e,t){e=vn 000090e0: 2e 74 6f 41 72 72 61 79 28 65 2c 74 29 3b 76 61 .toArray(e,t);va 000090f0: 72 20 6e 3d 74 68 69 73 2e 70 2e 62 79 74 65 4c r n=this.p.byteL 00009100: 65 6e 67 74 68 28 29 3b 69 66 28 28 34 3d 3d 3d ength();if((4=== 00009110: 65 5b 30 5d 7c 7c 36 3d 3d 3d 65 5b 30 5d 7c 7c e[0]||6===e[0]|| 00009120: 37 3d 3d 3d 65 5b 30 5d 29 26 26 65 2e 6c 65 6e 7===e[0])&&e.len 00009130: 67 74 68 2d 31 3d 3d 32 2a 6e 29 72 65 74 75 72 gth-1==2*n)retur 00009140: 6e 20 36 3d 3d 3d 65 5b 30 5d 3f 5f 6e 28 65 5b n 6===e[0]?_n(e[ 00009150: 65 2e 6c 65 6e 67 74 68 2d 31 5d 25 32 3d 3d 30 e.length-1]%2==0 00009160: 29 3a 37 3d 3d 3d 65 5b 30 5d 26 26 5f 6e 28 65 ):7===e[0]&&_n(e 00009170: 5b 65 2e 6c 65 6e 67 74 68 2d 31 5d 25 32 3d 3d [e.length-1]%2== 00009180: 31 29 2c 74 68 69 73 2e 70 6f 69 6e 74 28 65 2e 1),this.point(e. 00009190: 73 6c 69 63 65 28 31 2c 31 2b 6e 29 2c 65 2e 73 slice(1,1+n),e.s 000091a0: 6c 69 63 65 28 31 2b 6e 2c 31 2b 32 2a 6e 29 29 lice(1+n,1+2*n)) 000091b0: 3b 69 66 28 28 32 3d 3d 3d 65 5b 30 5d 7c 7c 33 ;if((2===e[0]||3 000091c0: 3d 3d 3d 65 5b 30 5d 29 26 26 65 2e 6c 65 6e 67 ===e[0])&&e.leng 000091d0: 74 68 2d 31 3d 3d 3d 6e 29 72 65 74 75 72 6e 20 th-1===n)return 000091e0: 74 68 69 73 2e 70 6f 69 6e 74 46 72 6f 6d 58 28 this.pointFromX( 000091f0: 65 2e 73 6c 69 63 65 28 31 2c 31 2b 6e 29 2c 33 e.slice(1,1+n),3 00009200: 3d 3d 3d 65 5b 30 5d 29 3b 74 68 72 6f 77 20 6e ===e[0]);throw n 00009210: 65 77 20 45 72 72 6f 72 28 22 55 6e 6b 6e 6f 77 ew Error("Unknow 00009220: 6e 20 70 6f 69 6e 74 20 66 6f 72 6d 61 74 22 29 n point format") 00009230: 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 65 },Tn.prototype.e 00009240: 6e 63 6f 64 65 43 6f 6d 70 72 65 73 73 65 64 3d ncodeCompressed= 00009250: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 function(e){retu 00009260: 72 6e 20 74 68 69 73 2e 65 6e 63 6f 64 65 28 65 rn this.encode(e 00009270: 2c 21 30 29 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 ,!0)},Tn.prototy 00009280: 70 65 2e 5f 65 6e 63 6f 64 65 3d 66 75 6e 63 74 pe._encode=funct 00009290: 69 6f 6e 28 65 29 7b 76 61 72 20 74 3d 74 68 69 ion(e){var t=thi 000092a0: 73 2e 63 75 72 76 65 2e 70 2e 62 79 74 65 4c 65 s.curve.p.byteLe 000092b0: 6e 67 74 68 28 29 2c 6e 3d 74 68 69 73 2e 67 65 ngth(),n=this.ge 000092c0: 74 58 28 29 2e 74 6f 41 72 72 61 79 28 22 62 65 tX().toArray("be 000092d0: 22 2c 74 29 3b 72 65 74 75 72 6e 20 65 3f 5b 74 ",t);return e?[t 000092e0: 68 69 73 2e 67 65 74 59 28 29 2e 69 73 45 76 65 his.getY().isEve 000092f0: 6e 28 29 3f 32 3a 33 5d 2e 63 6f 6e 63 61 74 28 n()?2:3].concat( 00009300: 6e 29 3a 5b 34 5d 2e 63 6f 6e 63 61 74 28 6e 2c n):[4].concat(n, 00009310: 74 68 69 73 2e 67 65 74 59 28 29 2e 74 6f 41 72 this.getY().toAr 00009320: 72 61 79 28 22 62 65 22 2c 74 29 29 7d 2c 54 6e ray("be",t))},Tn 00009330: 2e 70 72 6f 74 6f 74 79 70 65 2e 65 6e 63 6f 64 .prototype.encod 00009340: 65 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b e=function(e,t){ 00009350: 72 65 74 75 72 6e 20 76 6e 2e 65 6e 63 6f 64 65 return vn.encode 00009360: 28 74 68 69 73 2e 5f 65 6e 63 6f 64 65 28 74 29 (this._encode(t) 00009370: 2c 65 29 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 ,e)},Tn.prototyp 00009380: 65 2e 70 72 65 63 6f 6d 70 75 74 65 3d 66 75 6e e.precompute=fun 00009390: 63 74 69 6f 6e 28 65 29 7b 69 66 28 74 68 69 73 ction(e){if(this 000093a0: 2e 70 72 65 63 6f 6d 70 75 74 65 64 29 72 65 74 .precomputed)ret 000093b0: 75 72 6e 20 74 68 69 73 3b 76 61 72 20 74 3d 7b urn this;var t={ 000093c0: 64 6f 75 62 6c 65 73 3a 6e 75 6c 6c 2c 6e 61 66 doubles:null,naf 000093d0: 3a 6e 75 6c 6c 2c 62 65 74 61 3a 6e 75 6c 6c 7d :null,beta:null} 000093e0: 3b 72 65 74 75 72 6e 20 74 2e 6e 61 66 3d 74 68 ;return t.naf=th 000093f0: 69 73 2e 5f 67 65 74 4e 41 46 50 6f 69 6e 74 73 is._getNAFPoints 00009400: 28 38 29 2c 74 2e 64 6f 75 62 6c 65 73 3d 74 68 (8),t.doubles=th 00009410: 69 73 2e 5f 67 65 74 44 6f 75 62 6c 65 73 28 34 is._getDoubles(4 00009420: 2c 65 29 2c 74 2e 62 65 74 61 3d 74 68 69 73 2e ,e),t.beta=this. 00009430: 5f 67 65 74 42 65 74 61 28 29 2c 74 68 69 73 2e _getBeta(),this. 00009440: 70 72 65 63 6f 6d 70 75 74 65 64 3d 74 2c 74 68 precomputed=t,th 00009450: 69 73 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 65 is},Tn.prototype 00009460: 2e 5f 68 61 73 44 6f 75 62 6c 65 73 3d 66 75 6e ._hasDoubles=fun 00009470: 63 74 69 6f 6e 28 65 29 7b 69 66 28 21 74 68 69 ction(e){if(!thi 00009480: 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 29 72 65 s.precomputed)re 00009490: 74 75 72 6e 21 31 3b 76 61 72 20 74 3d 74 68 69 turn!1;var t=thi 000094a0: 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 2e 64 6f s.precomputed.do 000094b0: 75 62 6c 65 73 3b 72 65 74 75 72 6e 21 21 74 26 ubles;return!!t& 000094c0: 26 74 2e 70 6f 69 6e 74 73 2e 6c 65 6e 67 74 68 &t.points.length 000094d0: 3e 3d 4d 61 74 68 2e 63 65 69 6c 28 28 65 2e 62 >=Math.ceil((e.b 000094e0: 69 74 4c 65 6e 67 74 68 28 29 2b 31 29 2f 74 2e itLength()+1)/t. 000094f0: 73 74 65 70 29 7d 2c 54 6e 2e 70 72 6f 74 6f 74 step)},Tn.protot 00009500: 79 70 65 2e 5f 67 65 74 44 6f 75 62 6c 65 73 3d ype._getDoubles= 00009510: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 69 66 function(e,t){if 00009520: 28 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 (this.precompute 00009530: 64 26 26 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 d&&this.precompu 00009540: 74 65 64 2e 64 6f 75 62 6c 65 73 29 72 65 74 75 ted.doubles)retu 00009550: 72 6e 20 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 rn this.precompu 00009560: 74 65 64 2e 64 6f 75 62 6c 65 73 3b 66 6f 72 28 ted.doubles;for( 00009570: 76 61 72 20 6e 3d 5b 74 68 69 73 5d 2c 72 3d 74 var n=[this],r=t 00009580: 68 69 73 2c 6f 3d 30 3b 6f 3c 74 3b 6f 2b 3d 65 his,o=0;o<t;o+=e 00009590: 29 7b 66 6f 72 28 76 61 72 20 69 3d 30 3b 69 3c ){for(var i=0;i< 000095a0: 65 3b 69 2b 2b 29 72 3d 72 2e 64 62 6c 28 29 3b e;i++)r=r.dbl(); 000095b0: 6e 2e 70 75 73 68 28 72 29 7d 72 65 74 75 72 6e n.push(r)}return 000095c0: 7b 73 74 65 70 3a 65 2c 70 6f 69 6e 74 73 3a 6e {step:e,points:n 000095d0: 7d 7d 2c 54 6e 2e 70 72 6f 74 6f 74 79 70 65 2e }},Tn.prototype. 000095e0: 5f 67 65 74 4e 41 46 50 6f 69 6e 74 73 3d 66 75 _getNAFPoints=fu 000095f0: 6e 63 74 69 6f 6e 28 65 29 7b 69 66 28 74 68 69 nction(e){if(thi 00009600: 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 26 26 74 s.precomputed&&t 00009610: 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 2e his.precomputed. 00009620: 6e 61 66 29 72 65 74 75 72 6e 20 74 68 69 73 2e naf)return this. 00009630: 70 72 65 63 6f 6d 70 75 74 65 64 2e 6e 61 66 3b precomputed.naf; 00009640: 66 6f 72 28 76 61 72 20 74 3d 5b 74 68 69 73 5d for(var t=[this] 00009650: 2c 6e 3d 28 31 3c 3c 65 29 2d 31 2c 72 3d 31 3d ,n=(1<<e)-1,r=1= 00009660: 3d 3d 6e 3f 6e 75 6c 6c 3a 74 68 69 73 2e 64 62 ==n?null:this.db 00009670: 6c 28 29 2c 6f 3d 31 3b 6f 3c 6e 3b 6f 2b 2b 29 l(),o=1;o<n;o++) 00009680: 74 5b 6f 5d 3d 74 5b 6f 2d 31 5d 2e 61 64 64 28 t[o]=t[o-1].add( 00009690: 72 29 3b 72 65 74 75 72 6e 7b 77 6e 64 3a 65 2c r);return{wnd:e, 000096a0: 70 6f 69 6e 74 73 3a 74 7d 7d 2c 54 6e 2e 70 72 points:t}},Tn.pr 000096b0: 6f 74 6f 74 79 70 65 2e 5f 67 65 74 42 65 74 61 ototype._getBeta 000096c0: 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 65 74 75 =function(){retu 000096d0: 72 6e 20 6e 75 6c 6c 7d 2c 54 6e 2e 70 72 6f 74 rn null},Tn.prot 000096e0: 6f 74 79 70 65 2e 64 62 6c 70 3d 66 75 6e 63 74 otype.dblp=funct 000096f0: 69 6f 6e 28 65 29 7b 66 6f 72 28 76 61 72 20 74 ion(e){for(var t 00009700: 3d 74 68 69 73 2c 6e 3d 30 3b 6e 3c 65 3b 6e 2b =this,n=0;n<e;n+ 00009710: 2b 29 74 3d 74 2e 64 62 6c 28 29 3b 72 65 74 75 +)t=t.dbl();retu 00009720: 72 6e 20 74 7d 3b 76 61 72 20 43 6e 3d 6d 6e 28 rn t};var Cn=mn( 00009730: 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b 22 66 75 (function(e){"fu 00009740: 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 nction"==typeof 00009750: 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 3f 65 2e Object.create?e. 00009760: 65 78 70 6f 72 74 73 3d 66 75 6e 63 74 69 6f 6e exports=function 00009770: 28 65 2c 74 29 7b 74 26 26 28 65 2e 73 75 70 65 (e,t){t&&(e.supe 00009780: 72 5f 3d 74 2c 65 2e 70 72 6f 74 6f 74 79 70 65 r_=t,e.prototype 00009790: 3d 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 28 74 =Object.create(t 000097a0: 2e 70 72 6f 74 6f 74 79 70 65 2c 7b 63 6f 6e 73 .prototype,{cons 000097b0: 74 72 75 63 74 6f 72 3a 7b 76 61 6c 75 65 3a 65 tructor:{value:e 000097c0: 2c 65 6e 75 6d 65 72 61 62 6c 65 3a 21 31 2c 77 ,enumerable:!1,w 000097d0: 72 69 74 61 62 6c 65 3a 21 30 2c 63 6f 6e 66 69 ritable:!0,confi 000097e0: 67 75 72 61 62 6c 65 3a 21 30 7d 7d 29 29 7d 3a gurable:!0}}))}: 000097f0: 65 2e 65 78 70 6f 72 74 73 3d 66 75 6e 63 74 69 e.exports=functi 00009800: 6f 6e 28 65 2c 74 29 7b 69 66 28 74 29 7b 65 2e on(e,t){if(t){e. 00009810: 73 75 70 65 72 5f 3d 74 3b 76 61 72 20 6e 3d 66 super_=t;var n=f 00009820: 75 6e 63 74 69 6f 6e 28 29 7b 7d 3b 6e 2e 70 72 unction(){};n.pr 00009830: 6f 74 6f 74 79 70 65 3d 74 2e 70 72 6f 74 6f 74 ototype=t.protot 00009840: 79 70 65 2c 65 2e 70 72 6f 74 6f 74 79 70 65 3d ype,e.prototype= 00009850: 6e 65 77 20 6e 2c 65 2e 70 72 6f 74 6f 74 79 70 new n,e.prototyp 00009860: 65 2e 63 6f 6e 73 74 72 75 63 74 6f 72 3d 65 7d e.constructor=e} 00009870: 7d 7d 29 29 2c 41 6e 3d 76 6e 2e 61 73 73 65 72 }})),An=vn.asser 00009880: 74 3b 66 75 6e 63 74 69 6f 6e 20 6b 6e 28 65 29 t;function kn(e) 00009890: 7b 78 6e 2e 63 61 6c 6c 28 74 68 69 73 2c 22 73 {xn.call(this,"s 000098a0: 68 6f 72 74 22 2c 65 29 2c 74 68 69 73 2e 61 3d hort",e),this.a= 000098b0: 6e 65 77 28 7a 28 29 29 28 65 2e 61 2c 31 36 29 new(z())(e.a,16) 000098c0: 2e 74 6f 52 65 64 28 74 68 69 73 2e 72 65 64 29 .toRed(this.red) 000098d0: 2c 74 68 69 73 2e 62 3d 6e 65 77 28 7a 28 29 29 ,this.b=new(z()) 000098e0: 28 65 2e 62 2c 31 36 29 2e 74 6f 52 65 64 28 74 (e.b,16).toRed(t 000098f0: 68 69 73 2e 72 65 64 29 2c 74 68 69 73 2e 74 69 his.red),this.ti 00009900: 6e 76 3d 74 68 69 73 2e 74 77 6f 2e 72 65 64 49 nv=this.two.redI 00009910: 6e 76 6d 28 29 2c 74 68 69 73 2e 7a 65 72 6f 41 nvm(),this.zeroA 00009920: 3d 30 3d 3d 3d 74 68 69 73 2e 61 2e 66 72 6f 6d =0===this.a.from 00009930: 52 65 64 28 29 2e 63 6d 70 6e 28 30 29 2c 74 68 Red().cmpn(0),th 00009940: 69 73 2e 74 68 72 65 65 41 3d 30 3d 3d 3d 74 68 is.threeA=0===th 00009950: 69 73 2e 61 2e 66 72 6f 6d 52 65 64 28 29 2e 73 is.a.fromRed().s 00009960: 75 62 28 74 68 69 73 2e 70 29 2e 63 6d 70 6e 28 ub(this.p).cmpn( 00009970: 2d 33 29 2c 74 68 69 73 2e 65 6e 64 6f 3d 74 68 -3),this.endo=th 00009980: 69 73 2e 5f 67 65 74 45 6e 64 6f 6d 6f 72 70 68 is._getEndomorph 00009990: 69 73 6d 28 65 29 2c 74 68 69 73 2e 5f 65 6e 64 ism(e),this._end 000099a0: 6f 57 6e 61 66 54 31 3d 6e 65 77 20 41 72 72 61 oWnafT1=new Arra 000099b0: 79 28 34 29 2c 74 68 69 73 2e 5f 65 6e 64 6f 57 y(4),this._endoW 000099c0: 6e 61 66 54 32 3d 6e 65 77 20 41 72 72 61 79 28 nafT2=new Array( 000099d0: 34 29 7d 43 6e 28 6b 6e 2c 78 6e 29 3b 76 61 72 4)}Cn(kn,xn);var 000099e0: 20 49 6e 3d 6b 6e 3b 66 75 6e 63 74 69 6f 6e 20 In=kn;function 000099f0: 4f 6e 28 65 2c 74 2c 6e 2c 72 29 7b 78 6e 2e 42 On(e,t,n,r){xn.B 00009a00: 61 73 65 50 6f 69 6e 74 2e 63 61 6c 6c 28 74 68 asePoint.call(th 00009a10: 69 73 2c 65 2c 22 61 66 66 69 6e 65 22 29 2c 6e is,e,"affine"),n 00009a20: 75 6c 6c 3d 3d 3d 74 26 26 6e 75 6c 6c 3d 3d 3d ull===t&&null=== 00009a30: 6e 3f 28 74 68 69 73 2e 78 3d 6e 75 6c 6c 2c 74 n?(this.x=null,t 00009a40: 68 69 73 2e 79 3d 6e 75 6c 6c 2c 74 68 69 73 2e his.y=null,this. 00009a50: 69 6e 66 3d 21 30 29 3a 28 74 68 69 73 2e 78 3d inf=!0):(this.x= 00009a60: 6e 65 77 28 7a 28 29 29 28 74 2c 31 36 29 2c 74 new(z())(t,16),t 00009a70: 68 69 73 2e 79 3d 6e 65 77 28 7a 28 29 29 28 6e his.y=new(z())(n 00009a80: 2c 31 36 29 2c 72 26 26 28 74 68 69 73 2e 78 2e ,16),r&&(this.x. 00009a90: 66 6f 72 63 65 52 65 64 28 74 68 69 73 2e 63 75 forceRed(this.cu 00009aa0: 72 76 65 2e 72 65 64 29 2c 74 68 69 73 2e 79 2e rve.red),this.y. 00009ab0: 66 6f 72 63 65 52 65 64 28 74 68 69 73 2e 63 75 forceRed(this.cu 00009ac0: 72 76 65 2e 72 65 64 29 29 2c 74 68 69 73 2e 78 rve.red)),this.x 00009ad0: 2e 72 65 64 7c 7c 28 74 68 69 73 2e 78 3d 74 68 .red||(this.x=th 00009ae0: 69 73 2e 78 2e 74 6f 52 65 64 28 74 68 69 73 2e is.x.toRed(this. 00009af0: 63 75 72 76 65 2e 72 65 64 29 29 2c 74 68 69 73 curve.red)),this 00009b00: 2e 79 2e 72 65 64 7c 7c 28 74 68 69 73 2e 79 3d .y.red||(this.y= 00009b10: 74 68 69 73 2e 79 2e 74 6f 52 65 64 28 74 68 69 this.y.toRed(thi 00009b20: 73 2e 63 75 72 76 65 2e 72 65 64 29 29 2c 74 68 s.curve.red)),th 00009b30: 69 73 2e 69 6e 66 3d 21 31 29 7d 66 75 6e 63 74 is.inf=!1)}funct 00009b40: 69 6f 6e 20 52 6e 28 65 2c 74 2c 6e 2c 72 29 7b ion Rn(e,t,n,r){ 00009b50: 78 6e 2e 42 61 73 65 50 6f 69 6e 74 2e 63 61 6c xn.BasePoint.cal 00009b60: 6c 28 74 68 69 73 2c 65 2c 22 6a 61 63 6f 62 69 l(this,e,"jacobi 00009b70: 61 6e 22 29 2c 6e 75 6c 6c 3d 3d 3d 74 26 26 6e an"),null===t&&n 00009b80: 75 6c 6c 3d 3d 3d 6e 26 26 6e 75 6c 6c 3d 3d 3d ull===n&&null=== 00009b90: 72 3f 28 74 68 69 73 2e 78 3d 74 68 69 73 2e 63 r?(this.x=this.c 00009ba0: 75 72 76 65 2e 6f 6e 65 2c 74 68 69 73 2e 79 3d urve.one,this.y= 00009bb0: 74 68 69 73 2e 63 75 72 76 65 2e 6f 6e 65 2c 74 this.curve.one,t 00009bc0: 68 69 73 2e 7a 3d 6e 65 77 28 7a 28 29 29 28 30 his.z=new(z())(0 00009bd0: 29 29 3a 28 74 68 69 73 2e 78 3d 6e 65 77 28 7a )):(this.x=new(z 00009be0: 28 29 29 28 74 2c 31 36 29 2c 74 68 69 73 2e 79 ())(t,16),this.y 00009bf0: 3d 6e 65 77 28 7a 28 29 29 28 6e 2c 31 36 29 2c =new(z())(n,16), 00009c00: 74 68 69 73 2e 7a 3d 6e 65 77 28 7a 28 29 29 28 this.z=new(z())( 00009c10: 72 2c 31 36 29 29 2c 74 68 69 73 2e 78 2e 72 65 r,16)),this.x.re 00009c20: 64 7c 7c 28 74 68 69 73 2e 78 3d 74 68 69 73 2e d||(this.x=this. 00009c30: 78 2e 74 6f 52 65 64 28 74 68 69 73 2e 63 75 72 x.toRed(this.cur 00009c40: 76 65 2e 72 65 64 29 29 2c 74 68 69 73 2e 79 2e ve.red)),this.y. 00009c50: 72 65 64 7c 7c 28 74 68 69 73 2e 79 3d 74 68 69 red||(this.y=thi 00009c60: 73 2e 79 2e 74 6f 52 65 64 28 74 68 69 73 2e 63 s.y.toRed(this.c 00009c70: 75 72 76 65 2e 72 65 64 29 29 2c 74 68 69 73 2e urve.red)),this. 00009c80: 7a 2e 72 65 64 7c 7c 28 74 68 69 73 2e 7a 3d 74 z.red||(this.z=t 00009c90: 68 69 73 2e 7a 2e 74 6f 52 65 64 28 74 68 69 73 his.z.toRed(this 00009ca0: 2e 63 75 72 76 65 2e 72 65 64 29 29 2c 74 68 69 .curve.red)),thi 00009cb0: 73 2e 7a 4f 6e 65 3d 74 68 69 73 2e 7a 3d 3d 3d s.zOne=this.z=== 00009cc0: 74 68 69 73 2e 63 75 72 76 65 2e 6f 6e 65 7d 6b this.curve.one}k 00009cd0: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 67 65 74 n.prototype._get 00009ce0: 45 6e 64 6f 6d 6f 72 70 68 69 73 6d 3d 66 75 6e Endomorphism=fun 00009cf0: 63 74 69 6f 6e 28 65 29 7b 69 66 28 74 68 69 73 ction(e){if(this 00009d00: 2e 7a 65 72 6f 41 26 26 74 68 69 73 2e 67 26 26 .zeroA&&this.g&& 00009d10: 74 68 69 73 2e 6e 26 26 31 3d 3d 3d 74 68 69 73 this.n&&1===this 00009d20: 2e 70 2e 6d 6f 64 6e 28 33 29 29 7b 76 61 72 20 .p.modn(3)){var 00009d30: 74 2c 6e 3b 69 66 28 65 2e 62 65 74 61 29 74 3d t,n;if(e.beta)t= 00009d40: 6e 65 77 28 7a 28 29 29 28 65 2e 62 65 74 61 2c new(z())(e.beta, 00009d50: 31 36 29 2e 74 6f 52 65 64 28 74 68 69 73 2e 72 16).toRed(this.r 00009d60: 65 64 29 3b 65 6c 73 65 7b 76 61 72 20 72 3d 74 ed);else{var r=t 00009d70: 68 69 73 2e 5f 67 65 74 45 6e 64 6f 52 6f 6f 74 his._getEndoRoot 00009d80: 73 28 74 68 69 73 2e 70 29 3b 74 3d 28 74 3d 72 s(this.p);t=(t=r 00009d90: 5b 30 5d 2e 63 6d 70 28 72 5b 31 5d 29 3c 30 3f [0].cmp(r[1])<0? 00009da0: 72 5b 30 5d 3a 72 5b 31 5d 29 2e 74 6f 52 65 64 r[0]:r[1]).toRed 00009db0: 28 74 68 69 73 2e 72 65 64 29 7d 69 66 28 65 2e (this.red)}if(e. 00009dc0: 6c 61 6d 62 64 61 29 6e 3d 6e 65 77 28 7a 28 29 lambda)n=new(z() 00009dd0: 29 28 65 2e 6c 61 6d 62 64 61 2c 31 36 29 3b 65 )(e.lambda,16);e 00009de0: 6c 73 65 7b 76 61 72 20 6f 3d 74 68 69 73 2e 5f lse{var o=this._ 00009df0: 67 65 74 45 6e 64 6f 52 6f 6f 74 73 28 74 68 69 getEndoRoots(thi 00009e00: 73 2e 6e 29 3b 30 3d 3d 3d 74 68 69 73 2e 67 2e s.n);0===this.g. 00009e10: 6d 75 6c 28 6f 5b 30 5d 29 2e 78 2e 63 6d 70 28 mul(o[0]).x.cmp( 00009e20: 74 68 69 73 2e 67 2e 78 2e 72 65 64 4d 75 6c 28 this.g.x.redMul( 00009e30: 74 29 29 3f 6e 3d 6f 5b 30 5d 3a 28 6e 3d 6f 5b t))?n=o[0]:(n=o[ 00009e40: 31 5d 2c 41 6e 28 30 3d 3d 3d 74 68 69 73 2e 67 1],An(0===this.g 00009e50: 2e 6d 75 6c 28 6e 29 2e 78 2e 63 6d 70 28 74 68 .mul(n).x.cmp(th 00009e60: 69 73 2e 67 2e 78 2e 72 65 64 4d 75 6c 28 74 29 is.g.x.redMul(t) 00009e70: 29 29 29 7d 72 65 74 75 72 6e 7b 62 65 74 61 3a )))}return{beta: 00009e80: 74 2c 6c 61 6d 62 64 61 3a 6e 2c 62 61 73 69 73 t,lambda:n,basis 00009e90: 3a 65 2e 62 61 73 69 73 3f 65 2e 62 61 73 69 73 :e.basis?e.basis 00009ea0: 2e 6d 61 70 28 28 66 75 6e 63 74 69 6f 6e 28 65 .map((function(e 00009eb0: 29 7b 72 65 74 75 72 6e 7b 61 3a 6e 65 77 28 7a ){return{a:new(z 00009ec0: 28 29 29 28 65 2e 61 2c 31 36 29 2c 62 3a 6e 65 ())(e.a,16),b:ne 00009ed0: 77 28 7a 28 29 29 28 65 2e 62 2c 31 36 29 7d 7d w(z())(e.b,16)}} 00009ee0: 29 29 3a 74 68 69 73 2e 5f 67 65 74 45 6e 64 6f )):this._getEndo 00009ef0: 42 61 73 69 73 28 6e 29 7d 7d 7d 2c 6b 6e 2e 70 Basis(n)}}},kn.p 00009f00: 72 6f 74 6f 74 79 70 65 2e 5f 67 65 74 45 6e 64 rototype._getEnd 00009f10: 6f 52 6f 6f 74 73 3d 66 75 6e 63 74 69 6f 6e 28 oRoots=function( 00009f20: 65 29 7b 76 61 72 20 74 3d 65 3d 3d 3d 74 68 69 e){var t=e===thi 00009f30: 73 2e 70 3f 74 68 69 73 2e 72 65 64 3a 7a 28 29 s.p?this.red:z() 00009f40: 2e 6d 6f 6e 74 28 65 29 2c 6e 3d 6e 65 77 28 7a .mont(e),n=new(z 00009f50: 28 29 29 28 32 29 2e 74 6f 52 65 64 28 74 29 2e ())(2).toRed(t). 00009f60: 72 65 64 49 6e 76 6d 28 29 2c 72 3d 6e 2e 72 65 redInvm(),r=n.re 00009f70: 64 4e 65 67 28 29 2c 6f 3d 6e 65 77 28 7a 28 29 dNeg(),o=new(z() 00009f80: 29 28 33 29 2e 74 6f 52 65 64 28 74 29 2e 72 65 )(3).toRed(t).re 00009f90: 64 4e 65 67 28 29 2e 72 65 64 53 71 72 74 28 29 dNeg().redSqrt() 00009fa0: 2e 72 65 64 4d 75 6c 28 6e 29 3b 72 65 74 75 72 .redMul(n);retur 00009fb0: 6e 5b 72 2e 72 65 64 41 64 64 28 6f 29 2e 66 72 n[r.redAdd(o).fr 00009fc0: 6f 6d 52 65 64 28 29 2c 72 2e 72 65 64 53 75 62 omRed(),r.redSub 00009fd0: 28 6f 29 2e 66 72 6f 6d 52 65 64 28 29 5d 7d 2c (o).fromRed()]}, 00009fe0: 6b 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 67 65 kn.prototype._ge 00009ff0: 74 45 6e 64 6f 42 61 73 69 73 3d 66 75 6e 63 74 tEndoBasis=funct 0000a000: 69 6f 6e 28 65 29 7b 66 6f 72 28 76 61 72 20 74 ion(e){for(var t 0000a010: 2c 6e 2c 72 2c 6f 2c 69 2c 61 2c 73 2c 6c 2c 63 ,n,r,o,i,a,s,l,c 0000a020: 2c 75 3d 74 68 69 73 2e 6e 2e 75 73 68 72 6e 28 ,u=this.n.ushrn( 0000a030: 4d 61 74 68 2e 66 6c 6f 6f 72 28 74 68 69 73 2e Math.floor(this. 0000a040: 6e 2e 62 69 74 4c 65 6e 67 74 68 28 29 2f 32 29 n.bitLength()/2) 0000a050: 29 2c 64 3d 65 2c 70 3d 74 68 69 73 2e 6e 2e 63 ),d=e,p=this.n.c 0000a060: 6c 6f 6e 65 28 29 2c 66 3d 6e 65 77 28 7a 28 29 lone(),f=new(z() 0000a070: 29 28 31 29 2c 68 3d 6e 65 77 28 7a 28 29 29 28 )(1),h=new(z())( 0000a080: 30 29 2c 6d 3d 6e 65 77 28 7a 28 29 29 28 30 29 0),m=new(z())(0) 0000a090: 2c 67 3d 6e 65 77 28 7a 28 29 29 28 31 29 2c 62 ,g=new(z())(1),b 0000a0a0: 3d 30 3b 30 21 3d 3d 64 2e 63 6d 70 6e 28 30 29 =0;0!==d.cmpn(0) 0000a0b0: 3b 29 7b 76 61 72 20 79 3d 70 2e 64 69 76 28 64 ;){var y=p.div(d 0000a0c0: 29 3b 6c 3d 70 2e 73 75 62 28 79 2e 6d 75 6c 28 );l=p.sub(y.mul( 0000a0d0: 64 29 29 2c 63 3d 6d 2e 73 75 62 28 79 2e 6d 75 d)),c=m.sub(y.mu 0000a0e0: 6c 28 66 29 29 3b 76 61 72 20 76 3d 67 2e 73 75 l(f));var v=g.su 0000a0f0: 62 28 79 2e 6d 75 6c 28 68 29 29 3b 69 66 28 21 b(y.mul(h));if(! 0000a100: 72 26 26 6c 2e 63 6d 70 28 75 29 3c 30 29 74 3d r&&l.cmp(u)<0)t= 0000a110: 73 2e 6e 65 67 28 29 2c 6e 3d 66 2c 72 3d 6c 2e s.neg(),n=f,r=l. 0000a120: 6e 65 67 28 29 2c 6f 3d 63 3b 65 6c 73 65 20 69 neg(),o=c;else i 0000a130: 66 28 72 26 26 32 3d 3d 2b 2b 62 29 62 72 65 61 f(r&&2==++b)brea 0000a140: 6b 3b 73 3d 6c 2c 70 3d 64 2c 64 3d 6c 2c 6d 3d k;s=l,p=d,d=l,m= 0000a150: 66 2c 66 3d 63 2c 67 3d 68 2c 68 3d 76 7d 69 3d f,f=c,g=h,h=v}i= 0000a160: 6c 2e 6e 65 67 28 29 2c 61 3d 63 3b 76 61 72 20 l.neg(),a=c;var 0000a170: 53 3d 72 2e 73 71 72 28 29 2e 61 64 64 28 6f 2e S=r.sqr().add(o. 0000a180: 73 71 72 28 29 29 3b 72 65 74 75 72 6e 20 69 2e sqr());return i. 0000a190: 73 71 72 28 29 2e 61 64 64 28 61 2e 73 71 72 28 sqr().add(a.sqr( 0000a1a0: 29 29 2e 63 6d 70 28 53 29 3e 3d 30 26 26 28 69 )).cmp(S)>=0&&(i 0000a1b0: 3d 74 2c 61 3d 6e 29 2c 72 2e 6e 65 67 61 74 69 =t,a=n),r.negati 0000a1c0: 76 65 26 26 28 72 3d 72 2e 6e 65 67 28 29 2c 6f ve&&(r=r.neg(),o 0000a1d0: 3d 6f 2e 6e 65 67 28 29 29 2c 69 2e 6e 65 67 61 =o.neg()),i.nega 0000a1e0: 74 69 76 65 26 26 28 69 3d 69 2e 6e 65 67 28 29 tive&&(i=i.neg() 0000a1f0: 2c 61 3d 61 2e 6e 65 67 28 29 29 2c 5b 7b 61 3a ,a=a.neg()),[{a: 0000a200: 72 2c 62 3a 6f 7d 2c 7b 61 3a 69 2c 62 3a 61 7d r,b:o},{a:i,b:a} 0000a210: 5d 7d 2c 6b 6e 2e 70 72 6f 74 6f 74 79 70 65 2e ]},kn.prototype. 0000a220: 5f 65 6e 64 6f 53 70 6c 69 74 3d 66 75 6e 63 74 _endoSplit=funct 0000a230: 69 6f 6e 28 65 29 7b 76 61 72 20 74 3d 74 68 69 ion(e){var t=thi 0000a240: 73 2e 65 6e 64 6f 2e 62 61 73 69 73 2c 6e 3d 74 s.endo.basis,n=t 0000a250: 5b 30 5d 2c 72 3d 74 5b 31 5d 2c 6f 3d 72 2e 62 [0],r=t[1],o=r.b 0000a260: 2e 6d 75 6c 28 65 29 2e 64 69 76 52 6f 75 6e 64 .mul(e).divRound 0000a270: 28 74 68 69 73 2e 6e 29 2c 69 3d 6e 2e 62 2e 6e (this.n),i=n.b.n 0000a280: 65 67 28 29 2e 6d 75 6c 28 65 29 2e 64 69 76 52 eg().mul(e).divR 0000a290: 6f 75 6e 64 28 74 68 69 73 2e 6e 29 2c 61 3d 6f ound(this.n),a=o 0000a2a0: 2e 6d 75 6c 28 6e 2e 61 29 2c 73 3d 69 2e 6d 75 .mul(n.a),s=i.mu 0000a2b0: 6c 28 72 2e 61 29 2c 6c 3d 6f 2e 6d 75 6c 28 6e l(r.a),l=o.mul(n 0000a2c0: 2e 62 29 2c 63 3d 69 2e 6d 75 6c 28 72 2e 62 29 .b),c=i.mul(r.b) 0000a2d0: 3b 72 65 74 75 72 6e 7b 6b 31 3a 65 2e 73 75 62 ;return{k1:e.sub 0000a2e0: 28 61 29 2e 73 75 62 28 73 29 2c 6b 32 3a 6c 2e (a).sub(s),k2:l. 0000a2f0: 61 64 64 28 63 29 2e 6e 65 67 28 29 7d 7d 2c 6b add(c).neg()}},k 0000a300: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 70 6f 69 6e n.prototype.poin 0000a310: 74 46 72 6f 6d 58 3d 66 75 6e 63 74 69 6f 6e 28 tFromX=function( 0000a320: 65 2c 74 29 7b 28 65 3d 6e 65 77 28 7a 28 29 29 e,t){(e=new(z()) 0000a330: 28 65 2c 31 36 29 29 2e 72 65 64 7c 7c 28 65 3d (e,16)).red||(e= 0000a340: 65 2e 74 6f 52 65 64 28 74 68 69 73 2e 72 65 64 e.toRed(this.red 0000a350: 29 29 3b 76 61 72 20 6e 3d 65 2e 72 65 64 53 71 ));var n=e.redSq 0000a360: 72 28 29 2e 72 65 64 4d 75 6c 28 65 29 2e 72 65 r().redMul(e).re 0000a370: 64 49 41 64 64 28 65 2e 72 65 64 4d 75 6c 28 74 dIAdd(e.redMul(t 0000a380: 68 69 73 2e 61 29 29 2e 72 65 64 49 41 64 64 28 his.a)).redIAdd( 0000a390: 74 68 69 73 2e 62 29 2c 72 3d 6e 2e 72 65 64 53 this.b),r=n.redS 0000a3a0: 71 72 74 28 29 3b 69 66 28 30 21 3d 3d 72 2e 72 qrt();if(0!==r.r 0000a3b0: 65 64 53 71 72 28 29 2e 72 65 64 53 75 62 28 6e edSqr().redSub(n 0000a3c0: 29 2e 63 6d 70 28 74 68 69 73 2e 7a 65 72 6f 29 ).cmp(this.zero) 0000a3d0: 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 )throw new Error 0000a3e0: 28 22 69 6e 76 61 6c 69 64 20 70 6f 69 6e 74 22 ("invalid point" 0000a3f0: 29 3b 76 61 72 20 6f 3d 72 2e 66 72 6f 6d 52 65 );var o=r.fromRe 0000a400: 64 28 29 2e 69 73 4f 64 64 28 29 3b 72 65 74 75 d().isOdd();retu 0000a410: 72 6e 28 74 26 26 21 6f 7c 7c 21 74 26 26 6f 29 rn(t&&!o||!t&&o) 0000a420: 26 26 28 72 3d 72 2e 72 65 64 4e 65 67 28 29 29 &&(r=r.redNeg()) 0000a430: 2c 74 68 69 73 2e 70 6f 69 6e 74 28 65 2c 72 29 ,this.point(e,r) 0000a440: 7d 2c 6b 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 76 },kn.prototype.v 0000a450: 61 6c 69 64 61 74 65 3d 66 75 6e 63 74 69 6f 6e alidate=function 0000a460: 28 65 29 7b 69 66 28 65 2e 69 6e 66 29 72 65 74 (e){if(e.inf)ret 0000a470: 75 72 6e 21 30 3b 76 61 72 20 74 3d 65 2e 78 2c urn!0;var t=e.x, 0000a480: 6e 3d 65 2e 79 2c 72 3d 74 68 69 73 2e 61 2e 72 n=e.y,r=this.a.r 0000a490: 65 64 4d 75 6c 28 74 29 2c 6f 3d 74 2e 72 65 64 edMul(t),o=t.red 0000a4a0: 53 71 72 28 29 2e 72 65 64 4d 75 6c 28 74 29 2e Sqr().redMul(t). 0000a4b0: 72 65 64 49 41 64 64 28 72 29 2e 72 65 64 49 41 redIAdd(r).redIA 0000a4c0: 64 64 28 74 68 69 73 2e 62 29 3b 72 65 74 75 72 dd(this.b);retur 0000a4d0: 6e 20 30 3d 3d 3d 6e 2e 72 65 64 53 71 72 28 29 n 0===n.redSqr() 0000a4e0: 2e 72 65 64 49 53 75 62 28 6f 29 2e 63 6d 70 6e .redISub(o).cmpn 0000a4f0: 28 30 29 7d 2c 6b 6e 2e 70 72 6f 74 6f 74 79 70 (0)},kn.prototyp 0000a500: 65 2e 5f 65 6e 64 6f 57 6e 61 66 4d 75 6c 41 64 e._endoWnafMulAd 0000a510: 64 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e d=function(e,t,n 0000a520: 29 7b 66 6f 72 28 76 61 72 20 72 3d 74 68 69 73 ){for(var r=this 0000a530: 2e 5f 65 6e 64 6f 57 6e 61 66 54 31 2c 6f 3d 74 ._endoWnafT1,o=t 0000a540: 68 69 73 2e 5f 65 6e 64 6f 57 6e 61 66 54 32 2c his._endoWnafT2, 0000a550: 69 3d 30 3b 69 3c 65 2e 6c 65 6e 67 74 68 3b 69 i=0;i<e.length;i 0000a560: 2b 2b 29 7b 76 61 72 20 61 3d 74 68 69 73 2e 5f ++){var a=this._ 0000a570: 65 6e 64 6f 53 70 6c 69 74 28 74 5b 69 5d 29 2c endoSplit(t[i]), 0000a580: 73 3d 65 5b 69 5d 2c 6c 3d 73 2e 5f 67 65 74 42 s=e[i],l=s._getB 0000a590: 65 74 61 28 29 3b 61 2e 6b 31 2e 6e 65 67 61 74 eta();a.k1.negat 0000a5a0: 69 76 65 26 26 28 61 2e 6b 31 2e 69 6e 65 67 28 ive&&(a.k1.ineg( 0000a5b0: 29 2c 73 3d 73 2e 6e 65 67 28 21 30 29 29 2c 61 ),s=s.neg(!0)),a 0000a5c0: 2e 6b 32 2e 6e 65 67 61 74 69 76 65 26 26 28 61 .k2.negative&&(a 0000a5d0: 2e 6b 32 2e 69 6e 65 67 28 29 2c 6c 3d 6c 2e 6e .k2.ineg(),l=l.n 0000a5e0: 65 67 28 21 30 29 29 2c 72 5b 32 2a 69 5d 3d 73 eg(!0)),r[2*i]=s 0000a5f0: 2c 72 5b 32 2a 69 2b 31 5d 3d 6c 2c 6f 5b 32 2a ,r[2*i+1]=l,o[2* 0000a600: 69 5d 3d 61 2e 6b 31 2c 6f 5b 32 2a 69 2b 31 5d i]=a.k1,o[2*i+1] 0000a610: 3d 61 2e 6b 32 7d 66 6f 72 28 76 61 72 20 63 3d =a.k2}for(var c= 0000a620: 74 68 69 73 2e 5f 77 6e 61 66 4d 75 6c 41 64 64 this._wnafMulAdd 0000a630: 28 31 2c 72 2c 6f 2c 32 2a 69 2c 6e 29 2c 75 3d (1,r,o,2*i,n),u= 0000a640: 30 3b 75 3c 32 2a 69 3b 75 2b 2b 29 72 5b 75 5d 0;u<2*i;u++)r[u] 0000a650: 3d 6e 75 6c 6c 2c 6f 5b 75 5d 3d 6e 75 6c 6c 3b =null,o[u]=null; 0000a660: 72 65 74 75 72 6e 20 63 7d 2c 43 6e 28 4f 6e 2c return c},Cn(On, 0000a670: 78 6e 2e 42 61 73 65 50 6f 69 6e 74 29 2c 6b 6e xn.BasePoint),kn 0000a680: 2e 70 72 6f 74 6f 74 79 70 65 2e 70 6f 69 6e 74 .prototype.point 0000a690: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 =function(e,t,n) 0000a6a0: 7b 72 65 74 75 72 6e 20 6e 65 77 20 4f 6e 28 74 {return new On(t 0000a6b0: 68 69 73 2c 65 2c 74 2c 6e 29 7d 2c 6b 6e 2e 70 his,e,t,n)},kn.p 0000a6c0: 72 6f 74 6f 74 79 70 65 2e 70 6f 69 6e 74 46 72 rototype.pointFr 0000a6d0: 6f 6d 4a 53 4f 4e 3d 66 75 6e 63 74 69 6f 6e 28 omJSON=function( 0000a6e0: 65 2c 74 29 7b 72 65 74 75 72 6e 20 4f 6e 2e 66 e,t){return On.f 0000a6f0: 72 6f 6d 4a 53 4f 4e 28 74 68 69 73 2c 65 2c 74 romJSON(this,e,t 0000a700: 29 7d 2c 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},On.prototype. 0000a710: 5f 67 65 74 42 65 74 61 3d 66 75 6e 63 74 69 6f _getBeta=functio 0000a720: 6e 28 29 7b 69 66 28 74 68 69 73 2e 63 75 72 76 n(){if(this.curv 0000a730: 65 2e 65 6e 64 6f 29 7b 76 61 72 20 65 3d 74 68 e.endo){var e=th 0000a740: 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 3b 69 is.precomputed;i 0000a750: 66 28 65 26 26 65 2e 62 65 74 61 29 72 65 74 75 f(e&&e.beta)retu 0000a760: 72 6e 20 65 2e 62 65 74 61 3b 76 61 72 20 74 3d rn e.beta;var t= 0000a770: 74 68 69 73 2e 63 75 72 76 65 2e 70 6f 69 6e 74 this.curve.point 0000a780: 28 74 68 69 73 2e 78 2e 72 65 64 4d 75 6c 28 74 (this.x.redMul(t 0000a790: 68 69 73 2e 63 75 72 76 65 2e 65 6e 64 6f 2e 62 his.curve.endo.b 0000a7a0: 65 74 61 29 2c 74 68 69 73 2e 79 29 3b 69 66 28 eta),this.y);if( 0000a7b0: 65 29 7b 76 61 72 20 6e 3d 74 68 69 73 2e 63 75 e){var n=this.cu 0000a7c0: 72 76 65 2c 72 3d 66 75 6e 63 74 69 6f 6e 28 65 rve,r=function(e 0000a7d0: 29 7b 72 65 74 75 72 6e 20 6e 2e 70 6f 69 6e 74 ){return n.point 0000a7e0: 28 65 2e 78 2e 72 65 64 4d 75 6c 28 6e 2e 65 6e (e.x.redMul(n.en 0000a7f0: 64 6f 2e 62 65 74 61 29 2c 65 2e 79 29 7d 3b 65 do.beta),e.y)};e 0000a800: 2e 62 65 74 61 3d 74 2c 74 2e 70 72 65 63 6f 6d .beta=t,t.precom 0000a810: 70 75 74 65 64 3d 7b 62 65 74 61 3a 6e 75 6c 6c puted={beta:null 0000a820: 2c 6e 61 66 3a 65 2e 6e 61 66 26 26 7b 77 6e 64 ,naf:e.naf&&{wnd 0000a830: 3a 65 2e 6e 61 66 2e 77 6e 64 2c 70 6f 69 6e 74 :e.naf.wnd,point 0000a840: 73 3a 65 2e 6e 61 66 2e 70 6f 69 6e 74 73 2e 6d s:e.naf.points.m 0000a850: 61 70 28 72 29 7d 2c 64 6f 75 62 6c 65 73 3a 65 ap(r)},doubles:e 0000a860: 2e 64 6f 75 62 6c 65 73 26 26 7b 73 74 65 70 3a .doubles&&{step: 0000a870: 65 2e 64 6f 75 62 6c 65 73 2e 73 74 65 70 2c 70 e.doubles.step,p 0000a880: 6f 69 6e 74 73 3a 65 2e 64 6f 75 62 6c 65 73 2e oints:e.doubles. 0000a890: 70 6f 69 6e 74 73 2e 6d 61 70 28 72 29 7d 7d 7d points.map(r)}}} 0000a8a0: 72 65 74 75 72 6e 20 74 7d 7d 2c 4f 6e 2e 70 72 return t}},On.pr 0000a8b0: 6f 74 6f 74 79 70 65 2e 74 6f 4a 53 4f 4e 3d 66 ototype.toJSON=f 0000a8c0: 75 6e 63 74 69 6f 6e 28 29 7b 72 65 74 75 72 6e unction(){return 0000a8d0: 20 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 this.precompute 0000a8e0: 64 3f 5b 74 68 69 73 2e 78 2c 74 68 69 73 2e 79 d?[this.x,this.y 0000a8f0: 2c 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 ,this.precompute 0000a900: 64 26 26 7b 64 6f 75 62 6c 65 73 3a 74 68 69 73 d&&{doubles:this 0000a910: 2e 70 72 65 63 6f 6d 70 75 74 65 64 2e 64 6f 75 .precomputed.dou 0000a920: 62 6c 65 73 26 26 7b 73 74 65 70 3a 74 68 69 73 bles&&{step:this 0000a930: 2e 70 72 65 63 6f 6d 70 75 74 65 64 2e 64 6f 75 .precomputed.dou 0000a940: 62 6c 65 73 2e 73 74 65 70 2c 70 6f 69 6e 74 73 bles.step,points 0000a950: 3a 74 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 :this.precompute 0000a960: 64 2e 64 6f 75 62 6c 65 73 2e 70 6f 69 6e 74 73 d.doubles.points 0000a970: 2e 73 6c 69 63 65 28 31 29 7d 2c 6e 61 66 3a 74 .slice(1)},naf:t 0000a980: 68 69 73 2e 70 72 65 63 6f 6d 70 75 74 65 64 2e his.precomputed. 0000a990: 6e 61 66 26 26 7b 77 6e 64 3a 74 68 69 73 2e 70 naf&&{wnd:this.p 0000a9a0: 72 65 63 6f 6d 70 75 74 65 64 2e 6e 61 66 2e 77 recomputed.naf.w 0000a9b0: 6e 64 2c 70 6f 69 6e 74 73 3a 74 68 69 73 2e 70 nd,points:this.p 0000a9c0: 72 65 63 6f 6d 70 75 74 65 64 2e 6e 61 66 2e 70 recomputed.naf.p 0000a9d0: 6f 69 6e 74 73 2e 73 6c 69 63 65 28 31 29 7d 7d oints.slice(1)}} 0000a9e0: 5d 3a 5b 74 68 69 73 2e 78 2c 74 68 69 73 2e 79 ]:[this.x,this.y 0000a9f0: 5d 7d 2c 4f 6e 2e 66 72 6f 6d 4a 53 4f 4e 3d 66 ]},On.fromJSON=f 0000aa00: 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 7b 22 unction(e,t,n){" 0000aa10: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 0000aa20: 74 26 26 28 74 3d 4a 53 4f 4e 2e 70 61 72 73 65 t&&(t=JSON.parse 0000aa30: 28 74 29 29 3b 76 61 72 20 72 3d 65 2e 70 6f 69 (t));var r=e.poi 0000aa40: 6e 74 28 74 5b 30 5d 2c 74 5b 31 5d 2c 6e 29 3b nt(t[0],t[1],n); 0000aa50: 69 66 28 21 74 5b 32 5d 29 72 65 74 75 72 6e 20 if(!t[2])return 0000aa60: 72 3b 66 75 6e 63 74 69 6f 6e 20 6f 28 74 29 7b r;function o(t){ 0000aa70: 72 65 74 75 72 6e 20 65 2e 70 6f 69 6e 74 28 74 return e.point(t 0000aa80: 5b 30 5d 2c 74 5b 31 5d 2c 6e 29 7d 76 61 72 20 [0],t[1],n)}var 0000aa90: 69 3d 74 5b 32 5d 3b 72 65 74 75 72 6e 20 72 2e i=t[2];return r. 0000aaa0: 70 72 65 63 6f 6d 70 75 74 65 64 3d 7b 62 65 74 precomputed={bet 0000aab0: 61 3a 6e 75 6c 6c 2c 64 6f 75 62 6c 65 73 3a 69 a:null,doubles:i 0000aac0: 2e 64 6f 75 62 6c 65 73 26 26 7b 73 74 65 70 3a .doubles&&{step: 0000aad0: 69 2e 64 6f 75 62 6c 65 73 2e 73 74 65 70 2c 70 i.doubles.step,p 0000aae0: 6f 69 6e 74 73 3a 5b 72 5d 2e 63 6f 6e 63 61 74 oints:[r].concat 0000aaf0: 28 69 2e 64 6f 75 62 6c 65 73 2e 70 6f 69 6e 74 (i.doubles.point 0000ab00: 73 2e 6d 61 70 28 6f 29 29 7d 2c 6e 61 66 3a 69 s.map(o))},naf:i 0000ab10: 2e 6e 61 66 26 26 7b 77 6e 64 3a 69 2e 6e 61 66 .naf&&{wnd:i.naf 0000ab20: 2e 77 6e 64 2c 70 6f 69 6e 74 73 3a 5b 72 5d 2e .wnd,points:[r]. 0000ab30: 63 6f 6e 63 61 74 28 69 2e 6e 61 66 2e 70 6f 69 concat(i.naf.poi 0000ab40: 6e 74 73 2e 6d 61 70 28 6f 29 29 7d 7d 2c 72 7d nts.map(o))}},r} 0000ab50: 2c 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 69 6e ,On.prototype.in 0000ab60: 73 70 65 63 74 3d 66 75 6e 63 74 69 6f 6e 28 29 spect=function() 0000ab70: 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 69 73 49 {return this.isI 0000ab80: 6e 66 69 6e 69 74 79 28 29 3f 22 3c 45 43 20 50 nfinity()?"<EC P 0000ab90: 6f 69 6e 74 20 49 6e 66 69 6e 69 74 79 3e 22 3a oint Infinity>": 0000aba0: 22 3c 45 43 20 50 6f 69 6e 74 20 78 3a 20 22 2b "<EC Point x: "+ 0000abb0: 74 68 69 73 2e 78 2e 66 72 6f 6d 52 65 64 28 29 this.x.fromRed() 0000abc0: 2e 74 6f 53 74 72 69 6e 67 28 31 36 2c 32 29 2b .toString(16,2)+ 0000abd0: 22 20 79 3a 20 22 2b 74 68 69 73 2e 79 2e 66 72 " y: "+this.y.fr 0000abe0: 6f 6d 52 65 64 28 29 2e 74 6f 53 74 72 69 6e 67 omRed().toString 0000abf0: 28 31 36 2c 32 29 2b 22 3e 22 7d 2c 4f 6e 2e 70 (16,2)+">"},On.p 0000ac00: 72 6f 74 6f 74 79 70 65 2e 69 73 49 6e 66 69 6e rototype.isInfin 0000ac10: 69 74 79 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 ity=function(){r 0000ac20: 65 74 75 72 6e 20 74 68 69 73 2e 69 6e 66 7d 2c eturn this.inf}, 0000ac30: 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 61 64 64 On.prototype.add 0000ac40: 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 69 66 28 =function(e){if( 0000ac50: 74 68 69 73 2e 69 6e 66 29 72 65 74 75 72 6e 20 this.inf)return 0000ac60: 65 3b 69 66 28 65 2e 69 6e 66 29 72 65 74 75 72 e;if(e.inf)retur 0000ac70: 6e 20 74 68 69 73 3b 69 66 28 74 68 69 73 2e 65 n this;if(this.e 0000ac80: 71 28 65 29 29 72 65 74 75 72 6e 20 74 68 69 73 q(e))return this 0000ac90: 2e 64 62 6c 28 29 3b 69 66 28 74 68 69 73 2e 6e .dbl();if(this.n 0000aca0: 65 67 28 29 2e 65 71 28 65 29 29 72 65 74 75 72 eg().eq(e))retur 0000acb0: 6e 20 74 68 69 73 2e 63 75 72 76 65 2e 70 6f 69 n this.curve.poi 0000acc0: 6e 74 28 6e 75 6c 6c 2c 6e 75 6c 6c 29 3b 69 66 nt(null,null);if 0000acd0: 28 30 3d 3d 3d 74 68 69 73 2e 78 2e 63 6d 70 28 (0===this.x.cmp( 0000ace0: 65 2e 78 29 29 72 65 74 75 72 6e 20 74 68 69 73 e.x))return this 0000acf0: 2e 63 75 72 76 65 2e 70 6f 69 6e 74 28 6e 75 6c .curve.point(nul 0000ad00: 6c 2c 6e 75 6c 6c 29 3b 76 61 72 20 74 3d 74 68 l,null);var t=th 0000ad10: 69 73 2e 79 2e 72 65 64 53 75 62 28 65 2e 79 29 is.y.redSub(e.y) 0000ad20: 3b 30 21 3d 3d 74 2e 63 6d 70 6e 28 30 29 26 26 ;0!==t.cmpn(0)&& 0000ad30: 28 74 3d 74 2e 72 65 64 4d 75 6c 28 74 68 69 73 (t=t.redMul(this 0000ad40: 2e 78 2e 72 65 64 53 75 62 28 65 2e 78 29 2e 72 .x.redSub(e.x).r 0000ad50: 65 64 49 6e 76 6d 28 29 29 29 3b 76 61 72 20 6e edInvm()));var n 0000ad60: 3d 74 2e 72 65 64 53 71 72 28 29 2e 72 65 64 49 =t.redSqr().redI 0000ad70: 53 75 62 28 74 68 69 73 2e 78 29 2e 72 65 64 49 Sub(this.x).redI 0000ad80: 53 75 62 28 65 2e 78 29 2c 72 3d 74 2e 72 65 64 Sub(e.x),r=t.red 0000ad90: 4d 75 6c 28 74 68 69 73 2e 78 2e 72 65 64 53 75 Mul(this.x.redSu 0000ada0: 62 28 6e 29 29 2e 72 65 64 49 53 75 62 28 74 68 b(n)).redISub(th 0000adb0: 69 73 2e 79 29 3b 72 65 74 75 72 6e 20 74 68 69 is.y);return thi 0000adc0: 73 2e 63 75 72 76 65 2e 70 6f 69 6e 74 28 6e 2c s.curve.point(n, 0000add0: 72 29 7d 2c 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 r)},On.prototype 0000ade0: 2e 64 62 6c 3d 66 75 6e 63 74 69 6f 6e 28 29 7b .dbl=function(){ 0000adf0: 69 66 28 74 68 69 73 2e 69 6e 66 29 72 65 74 75 if(this.inf)retu 0000ae00: 72 6e 20 74 68 69 73 3b 76 61 72 20 65 3d 74 68 rn this;var e=th 0000ae10: 69 73 2e 79 2e 72 65 64 41 64 64 28 74 68 69 73 is.y.redAdd(this 0000ae20: 2e 79 29 3b 69 66 28 30 3d 3d 3d 65 2e 63 6d 70 .y);if(0===e.cmp 0000ae30: 6e 28 30 29 29 72 65 74 75 72 6e 20 74 68 69 73 n(0))return this 0000ae40: 2e 63 75 72 76 65 2e 70 6f 69 6e 74 28 6e 75 6c .curve.point(nul 0000ae50: 6c 2c 6e 75 6c 6c 29 3b 76 61 72 20 74 3d 74 68 l,null);var t=th 0000ae60: 69 73 2e 63 75 72 76 65 2e 61 2c 6e 3d 74 68 69 is.curve.a,n=thi 0000ae70: 73 2e 78 2e 72 65 64 53 71 72 28 29 2c 72 3d 65 s.x.redSqr(),r=e 0000ae80: 2e 72 65 64 49 6e 76 6d 28 29 2c 6f 3d 6e 2e 72 .redInvm(),o=n.r 0000ae90: 65 64 41 64 64 28 6e 29 2e 72 65 64 49 41 64 64 edAdd(n).redIAdd 0000aea0: 28 6e 29 2e 72 65 64 49 41 64 64 28 74 29 2e 72 (n).redIAdd(t).r 0000aeb0: 65 64 4d 75 6c 28 72 29 2c 69 3d 6f 2e 72 65 64 edMul(r),i=o.red 0000aec0: 53 71 72 28 29 2e 72 65 64 49 53 75 62 28 74 68 Sqr().redISub(th 0000aed0: 69 73 2e 78 2e 72 65 64 41 64 64 28 74 68 69 73 is.x.redAdd(this 0000aee0: 2e 78 29 29 2c 61 3d 6f 2e 72 65 64 4d 75 6c 28 .x)),a=o.redMul( 0000aef0: 74 68 69 73 2e 78 2e 72 65 64 53 75 62 28 69 29 this.x.redSub(i) 0000af00: 29 2e 72 65 64 49 53 75 62 28 74 68 69 73 2e 79 ).redISub(this.y 0000af10: 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e 63 75 );return this.cu 0000af20: 72 76 65 2e 70 6f 69 6e 74 28 69 2c 61 29 7d 2c rve.point(i,a)}, 0000af30: 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 67 65 74 On.prototype.get 0000af40: 58 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 65 74 X=function(){ret 0000af50: 75 72 6e 20 74 68 69 73 2e 78 2e 66 72 6f 6d 52 urn this.x.fromR 0000af60: 65 64 28 29 7d 2c 4f 6e 2e 70 72 6f 74 6f 74 79 ed()},On.prototy 0000af70: 70 65 2e 67 65 74 59 3d 66 75 6e 63 74 69 6f 6e pe.getY=function 0000af80: 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 79 (){return this.y 0000af90: 2e 66 72 6f 6d 52 65 64 28 29 7d 2c 4f 6e 2e 70 .fromRed()},On.p 0000afa0: 72 6f 74 6f 74 79 70 65 2e 6d 75 6c 3d 66 75 6e rototype.mul=fun 0000afb0: 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 ction(e){return 0000afc0: 65 3d 6e 65 77 28 7a 28 29 29 28 65 2c 31 36 29 e=new(z())(e,16) 0000afd0: 2c 74 68 69 73 2e 69 73 49 6e 66 69 6e 69 74 79 ,this.isInfinity 0000afe0: 28 29 3f 74 68 69 73 3a 74 68 69 73 2e 5f 68 61 ()?this:this._ha 0000aff0: 73 44 6f 75 62 6c 65 73 28 65 29 3f 74 68 69 73 sDoubles(e)?this 0000b000: 2e 63 75 72 76 65 2e 5f 66 69 78 65 64 4e 61 66 .curve._fixedNaf 0000b010: 4d 75 6c 28 74 68 69 73 2c 65 29 3a 74 68 69 73 Mul(this,e):this 0000b020: 2e 63 75 72 76 65 2e 65 6e 64 6f 3f 74 68 69 73 .curve.endo?this 0000b030: 2e 63 75 72 76 65 2e 5f 65 6e 64 6f 57 6e 61 66 .curve._endoWnaf 0000b040: 4d 75 6c 41 64 64 28 5b 74 68 69 73 5d 2c 5b 65 MulAdd([this],[e 0000b050: 5d 29 3a 74 68 69 73 2e 63 75 72 76 65 2e 5f 77 ]):this.curve._w 0000b060: 6e 61 66 4d 75 6c 28 74 68 69 73 2c 65 29 7d 2c nafMul(this,e)}, 0000b070: 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 6d 75 6c On.prototype.mul 0000b080: 41 64 64 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 Add=function(e,t 0000b090: 2c 6e 29 7b 76 61 72 20 72 3d 5b 74 68 69 73 2c ,n){var r=[this, 0000b0a0: 74 5d 2c 6f 3d 5b 65 2c 6e 5d 3b 72 65 74 75 72 t],o=[e,n];retur 0000b0b0: 6e 20 74 68 69 73 2e 63 75 72 76 65 2e 65 6e 64 n this.curve.end 0000b0c0: 6f 3f 74 68 69 73 2e 63 75 72 76 65 2e 5f 65 6e o?this.curve._en 0000b0d0: 64 6f 57 6e 61 66 4d 75 6c 41 64 64 28 72 2c 6f doWnafMulAdd(r,o 0000b0e0: 29 3a 74 68 69 73 2e 63 75 72 76 65 2e 5f 77 6e ):this.curve._wn 0000b0f0: 61 66 4d 75 6c 41 64 64 28 31 2c 72 2c 6f 2c 32 afMulAdd(1,r,o,2 0000b100: 29 7d 2c 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},On.prototype. 0000b110: 6a 6d 75 6c 41 64 64 3d 66 75 6e 63 74 69 6f 6e jmulAdd=function 0000b120: 28 65 2c 74 2c 6e 29 7b 76 61 72 20 72 3d 5b 74 (e,t,n){var r=[t 0000b130: 68 69 73 2c 74 5d 2c 6f 3d 5b 65 2c 6e 5d 3b 72 his,t],o=[e,n];r 0000b140: 65 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 eturn this.curve 0000b150: 2e 65 6e 64 6f 3f 74 68 69 73 2e 63 75 72 76 65 .endo?this.curve 0000b160: 2e 5f 65 6e 64 6f 57 6e 61 66 4d 75 6c 41 64 64 ._endoWnafMulAdd 0000b170: 28 72 2c 6f 2c 21 30 29 3a 74 68 69 73 2e 63 75 (r,o,!0):this.cu 0000b180: 72 76 65 2e 5f 77 6e 61 66 4d 75 6c 41 64 64 28 rve._wnafMulAdd( 0000b190: 31 2c 72 2c 6f 2c 32 2c 21 30 29 7d 2c 4f 6e 2e 1,r,o,2,!0)},On. 0000b1a0: 70 72 6f 74 6f 74 79 70 65 2e 65 71 3d 66 75 6e prototype.eq=fun 0000b1b0: 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 ction(e){return 0000b1c0: 74 68 69 73 3d 3d 3d 65 7c 7c 74 68 69 73 2e 69 this===e||this.i 0000b1d0: 6e 66 3d 3d 3d 65 2e 69 6e 66 26 26 28 74 68 69 nf===e.inf&&(thi 0000b1e0: 73 2e 69 6e 66 7c 7c 30 3d 3d 3d 74 68 69 73 2e s.inf||0===this. 0000b1f0: 78 2e 63 6d 70 28 65 2e 78 29 26 26 30 3d 3d 3d x.cmp(e.x)&&0=== 0000b200: 74 68 69 73 2e 79 2e 63 6d 70 28 65 2e 79 29 29 this.y.cmp(e.y)) 0000b210: 7d 2c 4f 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 6e },On.prototype.n 0000b220: 65 67 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 69 eg=function(e){i 0000b230: 66 28 74 68 69 73 2e 69 6e 66 29 72 65 74 75 72 f(this.inf)retur 0000b240: 6e 20 74 68 69 73 3b 76 61 72 20 74 3d 74 68 69 n this;var t=thi 0000b250: 73 2e 63 75 72 76 65 2e 70 6f 69 6e 74 28 74 68 s.curve.point(th 0000b260: 69 73 2e 78 2c 74 68 69 73 2e 79 2e 72 65 64 4e is.x,this.y.redN 0000b270: 65 67 28 29 29 3b 69 66 28 65 26 26 74 68 69 73 eg());if(e&&this 0000b280: 2e 70 72 65 63 6f 6d 70 75 74 65 64 29 7b 76 61 .precomputed){va 0000b290: 72 20 6e 3d 74 68 69 73 2e 70 72 65 63 6f 6d 70 r n=this.precomp 0000b2a0: 75 74 65 64 2c 72 3d 66 75 6e 63 74 69 6f 6e 28 uted,r=function( 0000b2b0: 65 29 7b 72 65 74 75 72 6e 20 65 2e 6e 65 67 28 e){return e.neg( 0000b2c0: 29 7d 3b 74 2e 70 72 65 63 6f 6d 70 75 74 65 64 )};t.precomputed 0000b2d0: 3d 7b 6e 61 66 3a 6e 2e 6e 61 66 26 26 7b 77 6e ={naf:n.naf&&{wn 0000b2e0: 64 3a 6e 2e 6e 61 66 2e 77 6e 64 2c 70 6f 69 6e d:n.naf.wnd,poin 0000b2f0: 74 73 3a 6e 2e 6e 61 66 2e 70 6f 69 6e 74 73 2e ts:n.naf.points. 0000b300: 6d 61 70 28 72 29 7d 2c 64 6f 75 62 6c 65 73 3a map(r)},doubles: 0000b310: 6e 2e 64 6f 75 62 6c 65 73 26 26 7b 73 74 65 70 n.doubles&&{step 0000b320: 3a 6e 2e 64 6f 75 62 6c 65 73 2e 73 74 65 70 2c :n.doubles.step, 0000b330: 70 6f 69 6e 74 73 3a 6e 2e 64 6f 75 62 6c 65 73 points:n.doubles 0000b340: 2e 70 6f 69 6e 74 73 2e 6d 61 70 28 72 29 7d 7d .points.map(r)}} 0000b350: 7d 72 65 74 75 72 6e 20 74 7d 2c 4f 6e 2e 70 72 }return t},On.pr 0000b360: 6f 74 6f 74 79 70 65 2e 74 6f 4a 3d 66 75 6e 63 ototype.toJ=func 0000b370: 74 69 6f 6e 28 29 7b 72 65 74 75 72 6e 20 74 68 tion(){return th 0000b380: 69 73 2e 69 6e 66 3f 74 68 69 73 2e 63 75 72 76 is.inf?this.curv 0000b390: 65 2e 6a 70 6f 69 6e 74 28 6e 75 6c 6c 2c 6e 75 e.jpoint(null,nu 0000b3a0: 6c 6c 2c 6e 75 6c 6c 29 3a 74 68 69 73 2e 63 75 ll,null):this.cu 0000b3b0: 72 76 65 2e 6a 70 6f 69 6e 74 28 74 68 69 73 2e rve.jpoint(this. 0000b3c0: 78 2c 74 68 69 73 2e 79 2c 74 68 69 73 2e 63 75 x,this.y,this.cu 0000b3d0: 72 76 65 2e 6f 6e 65 29 7d 2c 43 6e 28 52 6e 2c rve.one)},Cn(Rn, 0000b3e0: 78 6e 2e 42 61 73 65 50 6f 69 6e 74 29 2c 6b 6e xn.BasePoint),kn 0000b3f0: 2e 70 72 6f 74 6f 74 79 70 65 2e 6a 70 6f 69 6e .prototype.jpoin 0000b400: 74 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e t=function(e,t,n 0000b410: 29 7b 72 65 74 75 72 6e 20 6e 65 77 20 52 6e 28 ){return new Rn( 0000b420: 74 68 69 73 2c 65 2c 74 2c 6e 29 7d 2c 52 6e 2e this,e,t,n)},Rn. 0000b430: 70 72 6f 74 6f 74 79 70 65 2e 74 6f 50 3d 66 75 prototype.toP=fu 0000b440: 6e 63 74 69 6f 6e 28 29 7b 69 66 28 74 68 69 73 nction(){if(this 0000b450: 2e 69 73 49 6e 66 69 6e 69 74 79 28 29 29 72 65 .isInfinity())re 0000b460: 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 2e turn this.curve. 0000b470: 70 6f 69 6e 74 28 6e 75 6c 6c 2c 6e 75 6c 6c 29 point(null,null) 0000b480: 3b 76 61 72 20 65 3d 74 68 69 73 2e 7a 2e 72 65 ;var e=this.z.re 0000b490: 64 49 6e 76 6d 28 29 2c 74 3d 65 2e 72 65 64 53 dInvm(),t=e.redS 0000b4a0: 71 72 28 29 2c 6e 3d 74 68 69 73 2e 78 2e 72 65 qr(),n=this.x.re 0000b4b0: 64 4d 75 6c 28 74 29 2c 72 3d 74 68 69 73 2e 79 dMul(t),r=this.y 0000b4c0: 2e 72 65 64 4d 75 6c 28 74 29 2e 72 65 64 4d 75 .redMul(t).redMu 0000b4d0: 6c 28 65 29 3b 72 65 74 75 72 6e 20 74 68 69 73 l(e);return this 0000b4e0: 2e 63 75 72 76 65 2e 70 6f 69 6e 74 28 6e 2c 72 .curve.point(n,r 0000b4f0: 29 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},Rn.prototype. 0000b500: 6e 65 67 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 neg=function(){r 0000b510: 65 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 eturn this.curve 0000b520: 2e 6a 70 6f 69 6e 74 28 74 68 69 73 2e 78 2c 74 .jpoint(this.x,t 0000b530: 68 69 73 2e 79 2e 72 65 64 4e 65 67 28 29 2c 74 his.y.redNeg(),t 0000b540: 68 69 73 2e 7a 29 7d 2c 52 6e 2e 70 72 6f 74 6f his.z)},Rn.proto 0000b550: 74 79 70 65 2e 61 64 64 3d 66 75 6e 63 74 69 6f type.add=functio 0000b560: 6e 28 65 29 7b 69 66 28 74 68 69 73 2e 69 73 49 n(e){if(this.isI 0000b570: 6e 66 69 6e 69 74 79 28 29 29 72 65 74 75 72 6e nfinity())return 0000b580: 20 65 3b 69 66 28 65 2e 69 73 49 6e 66 69 6e 69 e;if(e.isInfini 0000b590: 74 79 28 29 29 72 65 74 75 72 6e 20 74 68 69 73 ty())return this 0000b5a0: 3b 76 61 72 20 74 3d 65 2e 7a 2e 72 65 64 53 71 ;var t=e.z.redSq 0000b5b0: 72 28 29 2c 6e 3d 74 68 69 73 2e 7a 2e 72 65 64 r(),n=this.z.red 0000b5c0: 53 71 72 28 29 2c 72 3d 74 68 69 73 2e 78 2e 72 Sqr(),r=this.x.r 0000b5d0: 65 64 4d 75 6c 28 74 29 2c 6f 3d 65 2e 78 2e 72 edMul(t),o=e.x.r 0000b5e0: 65 64 4d 75 6c 28 6e 29 2c 69 3d 74 68 69 73 2e edMul(n),i=this. 0000b5f0: 79 2e 72 65 64 4d 75 6c 28 74 2e 72 65 64 4d 75 y.redMul(t.redMu 0000b600: 6c 28 65 2e 7a 29 29 2c 61 3d 65 2e 79 2e 72 65 l(e.z)),a=e.y.re 0000b610: 64 4d 75 6c 28 6e 2e 72 65 64 4d 75 6c 28 74 68 dMul(n.redMul(th 0000b620: 69 73 2e 7a 29 29 2c 73 3d 72 2e 72 65 64 53 75 is.z)),s=r.redSu 0000b630: 62 28 6f 29 2c 6c 3d 69 2e 72 65 64 53 75 62 28 b(o),l=i.redSub( 0000b640: 61 29 3b 69 66 28 30 3d 3d 3d 73 2e 63 6d 70 6e a);if(0===s.cmpn 0000b650: 28 30 29 29 72 65 74 75 72 6e 20 30 21 3d 3d 6c (0))return 0!==l 0000b660: 2e 63 6d 70 6e 28 30 29 3f 74 68 69 73 2e 63 75 .cmpn(0)?this.cu 0000b670: 72 76 65 2e 6a 70 6f 69 6e 74 28 6e 75 6c 6c 2c rve.jpoint(null, 0000b680: 6e 75 6c 6c 2c 6e 75 6c 6c 29 3a 74 68 69 73 2e null,null):this. 0000b690: 64 62 6c 28 29 3b 76 61 72 20 63 3d 73 2e 72 65 dbl();var c=s.re 0000b6a0: 64 53 71 72 28 29 2c 75 3d 63 2e 72 65 64 4d 75 dSqr(),u=c.redMu 0000b6b0: 6c 28 73 29 2c 64 3d 72 2e 72 65 64 4d 75 6c 28 l(s),d=r.redMul( 0000b6c0: 63 29 2c 70 3d 6c 2e 72 65 64 53 71 72 28 29 2e c),p=l.redSqr(). 0000b6d0: 72 65 64 49 41 64 64 28 75 29 2e 72 65 64 49 53 redIAdd(u).redIS 0000b6e0: 75 62 28 64 29 2e 72 65 64 49 53 75 62 28 64 29 ub(d).redISub(d) 0000b6f0: 2c 66 3d 6c 2e 72 65 64 4d 75 6c 28 64 2e 72 65 ,f=l.redMul(d.re 0000b700: 64 49 53 75 62 28 70 29 29 2e 72 65 64 49 53 75 dISub(p)).redISu 0000b710: 62 28 69 2e 72 65 64 4d 75 6c 28 75 29 29 2c 68 b(i.redMul(u)),h 0000b720: 3d 74 68 69 73 2e 7a 2e 72 65 64 4d 75 6c 28 65 =this.z.redMul(e 0000b730: 2e 7a 29 2e 72 65 64 4d 75 6c 28 73 29 3b 72 65 .z).redMul(s);re 0000b740: 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 2e turn this.curve. 0000b750: 6a 70 6f 69 6e 74 28 70 2c 66 2c 68 29 7d 2c 52 jpoint(p,f,h)},R 0000b760: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 6d 69 78 65 n.prototype.mixe 0000b770: 64 41 64 64 3d 66 75 6e 63 74 69 6f 6e 28 65 29 dAdd=function(e) 0000b780: 7b 69 66 28 74 68 69 73 2e 69 73 49 6e 66 69 6e {if(this.isInfin 0000b790: 69 74 79 28 29 29 72 65 74 75 72 6e 20 65 2e 74 ity())return e.t 0000b7a0: 6f 4a 28 29 3b 69 66 28 65 2e 69 73 49 6e 66 69 oJ();if(e.isInfi 0000b7b0: 6e 69 74 79 28 29 29 72 65 74 75 72 6e 20 74 68 nity())return th 0000b7c0: 69 73 3b 76 61 72 20 74 3d 74 68 69 73 2e 7a 2e is;var t=this.z. 0000b7d0: 72 65 64 53 71 72 28 29 2c 6e 3d 74 68 69 73 2e redSqr(),n=this. 0000b7e0: 78 2c 72 3d 65 2e 78 2e 72 65 64 4d 75 6c 28 74 x,r=e.x.redMul(t 0000b7f0: 29 2c 6f 3d 74 68 69 73 2e 79 2c 69 3d 65 2e 79 ),o=this.y,i=e.y 0000b800: 2e 72 65 64 4d 75 6c 28 74 29 2e 72 65 64 4d 75 .redMul(t).redMu 0000b810: 6c 28 74 68 69 73 2e 7a 29 2c 61 3d 6e 2e 72 65 l(this.z),a=n.re 0000b820: 64 53 75 62 28 72 29 2c 73 3d 6f 2e 72 65 64 53 dSub(r),s=o.redS 0000b830: 75 62 28 69 29 3b 69 66 28 30 3d 3d 3d 61 2e 63 ub(i);if(0===a.c 0000b840: 6d 70 6e 28 30 29 29 72 65 74 75 72 6e 20 30 21 mpn(0))return 0! 0000b850: 3d 3d 73 2e 63 6d 70 6e 28 30 29 3f 74 68 69 73 ==s.cmpn(0)?this 0000b860: 2e 63 75 72 76 65 2e 6a 70 6f 69 6e 74 28 6e 75 .curve.jpoint(nu 0000b870: 6c 6c 2c 6e 75 6c 6c 2c 6e 75 6c 6c 29 3a 74 68 ll,null,null):th 0000b880: 69 73 2e 64 62 6c 28 29 3b 76 61 72 20 6c 3d 61 is.dbl();var l=a 0000b890: 2e 72 65 64 53 71 72 28 29 2c 63 3d 6c 2e 72 65 .redSqr(),c=l.re 0000b8a0: 64 4d 75 6c 28 61 29 2c 75 3d 6e 2e 72 65 64 4d dMul(a),u=n.redM 0000b8b0: 75 6c 28 6c 29 2c 64 3d 73 2e 72 65 64 53 71 72 ul(l),d=s.redSqr 0000b8c0: 28 29 2e 72 65 64 49 41 64 64 28 63 29 2e 72 65 ().redIAdd(c).re 0000b8d0: 64 49 53 75 62 28 75 29 2e 72 65 64 49 53 75 62 dISub(u).redISub 0000b8e0: 28 75 29 2c 70 3d 73 2e 72 65 64 4d 75 6c 28 75 (u),p=s.redMul(u 0000b8f0: 2e 72 65 64 49 53 75 62 28 64 29 29 2e 72 65 64 .redISub(d)).red 0000b900: 49 53 75 62 28 6f 2e 72 65 64 4d 75 6c 28 63 29 ISub(o.redMul(c) 0000b910: 29 2c 66 3d 74 68 69 73 2e 7a 2e 72 65 64 4d 75 ),f=this.z.redMu 0000b920: 6c 28 61 29 3b 72 65 74 75 72 6e 20 74 68 69 73 l(a);return this 0000b930: 2e 63 75 72 76 65 2e 6a 70 6f 69 6e 74 28 64 2c .curve.jpoint(d, 0000b940: 70 2c 66 29 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 p,f)},Rn.prototy 0000b950: 70 65 2e 64 62 6c 70 3d 66 75 6e 63 74 69 6f 6e pe.dblp=function 0000b960: 28 65 29 7b 69 66 28 30 3d 3d 3d 65 29 72 65 74 (e){if(0===e)ret 0000b970: 75 72 6e 20 74 68 69 73 3b 69 66 28 74 68 69 73 urn this;if(this 0000b980: 2e 69 73 49 6e 66 69 6e 69 74 79 28 29 29 72 65 .isInfinity())re 0000b990: 74 75 72 6e 20 74 68 69 73 3b 69 66 28 21 65 29 turn this;if(!e) 0000b9a0: 72 65 74 75 72 6e 20 74 68 69 73 2e 64 62 6c 28 return this.dbl( 0000b9b0: 29 3b 76 61 72 20 74 3b 69 66 28 74 68 69 73 2e );var t;if(this. 0000b9c0: 63 75 72 76 65 2e 7a 65 72 6f 41 7c 7c 74 68 69 curve.zeroA||thi 0000b9d0: 73 2e 63 75 72 76 65 2e 74 68 72 65 65 41 29 7b s.curve.threeA){ 0000b9e0: 76 61 72 20 6e 3d 74 68 69 73 3b 66 6f 72 28 74 var n=this;for(t 0000b9f0: 3d 30 3b 74 3c 65 3b 74 2b 2b 29 6e 3d 6e 2e 64 =0;t<e;t++)n=n.d 0000ba00: 62 6c 28 29 3b 72 65 74 75 72 6e 20 6e 7d 76 61 bl();return n}va 0000ba10: 72 20 72 3d 74 68 69 73 2e 63 75 72 76 65 2e 61 r r=this.curve.a 0000ba20: 2c 6f 3d 74 68 69 73 2e 63 75 72 76 65 2e 74 69 ,o=this.curve.ti 0000ba30: 6e 76 2c 69 3d 74 68 69 73 2e 78 2c 61 3d 74 68 nv,i=this.x,a=th 0000ba40: 69 73 2e 79 2c 73 3d 74 68 69 73 2e 7a 2c 6c 3d is.y,s=this.z,l= 0000ba50: 73 2e 72 65 64 53 71 72 28 29 2e 72 65 64 53 71 s.redSqr().redSq 0000ba60: 72 28 29 2c 63 3d 61 2e 72 65 64 41 64 64 28 61 r(),c=a.redAdd(a 0000ba70: 29 3b 66 6f 72 28 74 3d 30 3b 74 3c 65 3b 74 2b );for(t=0;t<e;t+ 0000ba80: 2b 29 7b 76 61 72 20 75 3d 69 2e 72 65 64 53 71 +){var u=i.redSq 0000ba90: 72 28 29 2c 64 3d 63 2e 72 65 64 53 71 72 28 29 r(),d=c.redSqr() 0000baa0: 2c 70 3d 64 2e 72 65 64 53 71 72 28 29 2c 66 3d ,p=d.redSqr(),f= 0000bab0: 75 2e 72 65 64 41 64 64 28 75 29 2e 72 65 64 49 u.redAdd(u).redI 0000bac0: 41 64 64 28 75 29 2e 72 65 64 49 41 64 64 28 72 Add(u).redIAdd(r 0000bad0: 2e 72 65 64 4d 75 6c 28 6c 29 29 2c 68 3d 69 2e .redMul(l)),h=i. 0000bae0: 72 65 64 4d 75 6c 28 64 29 2c 6d 3d 66 2e 72 65 redMul(d),m=f.re 0000baf0: 64 53 71 72 28 29 2e 72 65 64 49 53 75 62 28 68 dSqr().redISub(h 0000bb00: 2e 72 65 64 41 64 64 28 68 29 29 2c 67 3d 68 2e .redAdd(h)),g=h. 0000bb10: 72 65 64 49 53 75 62 28 6d 29 2c 62 3d 66 2e 72 redISub(m),b=f.r 0000bb20: 65 64 4d 75 6c 28 67 29 3b 62 3d 62 2e 72 65 64 edMul(g);b=b.red 0000bb30: 49 41 64 64 28 62 29 2e 72 65 64 49 53 75 62 28 IAdd(b).redISub( 0000bb40: 70 29 3b 76 61 72 20 79 3d 63 2e 72 65 64 4d 75 p);var y=c.redMu 0000bb50: 6c 28 73 29 3b 74 2b 31 3c 65 26 26 28 6c 3d 6c l(s);t+1<e&&(l=l 0000bb60: 2e 72 65 64 4d 75 6c 28 70 29 29 2c 69 3d 6d 2c .redMul(p)),i=m, 0000bb70: 73 3d 79 2c 63 3d 62 7d 72 65 74 75 72 6e 20 74 s=y,c=b}return t 0000bb80: 68 69 73 2e 63 75 72 76 65 2e 6a 70 6f 69 6e 74 his.curve.jpoint 0000bb90: 28 69 2c 63 2e 72 65 64 4d 75 6c 28 6f 29 2c 73 (i,c.redMul(o),s 0000bba0: 29 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},Rn.prototype. 0000bbb0: 64 62 6c 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 dbl=function(){r 0000bbc0: 65 74 75 72 6e 20 74 68 69 73 2e 69 73 49 6e 66 eturn this.isInf 0000bbd0: 69 6e 69 74 79 28 29 3f 74 68 69 73 3a 74 68 69 inity()?this:thi 0000bbe0: 73 2e 63 75 72 76 65 2e 7a 65 72 6f 41 3f 74 68 s.curve.zeroA?th 0000bbf0: 69 73 2e 5f 7a 65 72 6f 44 62 6c 28 29 3a 74 68 is._zeroDbl():th 0000bc00: 69 73 2e 63 75 72 76 65 2e 74 68 72 65 65 41 3f is.curve.threeA? 0000bc10: 74 68 69 73 2e 5f 74 68 72 65 65 44 62 6c 28 29 this._threeDbl() 0000bc20: 3a 74 68 69 73 2e 5f 64 62 6c 28 29 7d 2c 52 6e :this._dbl()},Rn 0000bc30: 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 7a 65 72 6f .prototype._zero 0000bc40: 44 62 6c 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 76 Dbl=function(){v 0000bc50: 61 72 20 65 2c 74 2c 6e 3b 69 66 28 74 68 69 73 ar e,t,n;if(this 0000bc60: 2e 7a 4f 6e 65 29 7b 76 61 72 20 72 3d 74 68 69 .zOne){var r=thi 0000bc70: 73 2e 78 2e 72 65 64 53 71 72 28 29 2c 6f 3d 74 s.x.redSqr(),o=t 0000bc80: 68 69 73 2e 79 2e 72 65 64 53 71 72 28 29 2c 69 his.y.redSqr(),i 0000bc90: 3d 6f 2e 72 65 64 53 71 72 28 29 2c 61 3d 74 68 =o.redSqr(),a=th 0000bca0: 69 73 2e 78 2e 72 65 64 41 64 64 28 6f 29 2e 72 is.x.redAdd(o).r 0000bcb0: 65 64 53 71 72 28 29 2e 72 65 64 49 53 75 62 28 edSqr().redISub( 0000bcc0: 72 29 2e 72 65 64 49 53 75 62 28 69 29 3b 61 3d r).redISub(i);a= 0000bcd0: 61 2e 72 65 64 49 41 64 64 28 61 29 3b 76 61 72 a.redIAdd(a);var 0000bce0: 20 73 3d 72 2e 72 65 64 41 64 64 28 72 29 2e 72 s=r.redAdd(r).r 0000bcf0: 65 64 49 41 64 64 28 72 29 2c 6c 3d 73 2e 72 65 edIAdd(r),l=s.re 0000bd00: 64 53 71 72 28 29 2e 72 65 64 49 53 75 62 28 61 dSqr().redISub(a 0000bd10: 29 2e 72 65 64 49 53 75 62 28 61 29 2c 63 3d 69 ).redISub(a),c=i 0000bd20: 2e 72 65 64 49 41 64 64 28 69 29 3b 63 3d 28 63 .redIAdd(i);c=(c 0000bd30: 3d 63 2e 72 65 64 49 41 64 64 28 63 29 29 2e 72 =c.redIAdd(c)).r 0000bd40: 65 64 49 41 64 64 28 63 29 2c 65 3d 6c 2c 74 3d edIAdd(c),e=l,t= 0000bd50: 73 2e 72 65 64 4d 75 6c 28 61 2e 72 65 64 49 53 s.redMul(a.redIS 0000bd60: 75 62 28 6c 29 29 2e 72 65 64 49 53 75 62 28 63 ub(l)).redISub(c 0000bd70: 29 2c 6e 3d 74 68 69 73 2e 79 2e 72 65 64 41 64 ),n=this.y.redAd 0000bd80: 64 28 74 68 69 73 2e 79 29 7d 65 6c 73 65 7b 76 d(this.y)}else{v 0000bd90: 61 72 20 75 3d 74 68 69 73 2e 78 2e 72 65 64 53 ar u=this.x.redS 0000bda0: 71 72 28 29 2c 64 3d 74 68 69 73 2e 79 2e 72 65 qr(),d=this.y.re 0000bdb0: 64 53 71 72 28 29 2c 70 3d 64 2e 72 65 64 53 71 dSqr(),p=d.redSq 0000bdc0: 72 28 29 2c 66 3d 74 68 69 73 2e 78 2e 72 65 64 r(),f=this.x.red 0000bdd0: 41 64 64 28 64 29 2e 72 65 64 53 71 72 28 29 2e Add(d).redSqr(). 0000bde0: 72 65 64 49 53 75 62 28 75 29 2e 72 65 64 49 53 redISub(u).redIS 0000bdf0: 75 62 28 70 29 3b 66 3d 66 2e 72 65 64 49 41 64 ub(p);f=f.redIAd 0000be00: 64 28 66 29 3b 76 61 72 20 68 3d 75 2e 72 65 64 d(f);var h=u.red 0000be10: 41 64 64 28 75 29 2e 72 65 64 49 41 64 64 28 75 Add(u).redIAdd(u 0000be20: 29 2c 6d 3d 68 2e 72 65 64 53 71 72 28 29 2c 67 ),m=h.redSqr(),g 0000be30: 3d 70 2e 72 65 64 49 41 64 64 28 70 29 3b 67 3d =p.redIAdd(p);g= 0000be40: 28 67 3d 67 2e 72 65 64 49 41 64 64 28 67 29 29 (g=g.redIAdd(g)) 0000be50: 2e 72 65 64 49 41 64 64 28 67 29 2c 65 3d 6d 2e .redIAdd(g),e=m. 0000be60: 72 65 64 49 53 75 62 28 66 29 2e 72 65 64 49 53 redISub(f).redIS 0000be70: 75 62 28 66 29 2c 74 3d 68 2e 72 65 64 4d 75 6c ub(f),t=h.redMul 0000be80: 28 66 2e 72 65 64 49 53 75 62 28 65 29 29 2e 72 (f.redISub(e)).r 0000be90: 65 64 49 53 75 62 28 67 29 2c 6e 3d 28 6e 3d 74 edISub(g),n=(n=t 0000bea0: 68 69 73 2e 79 2e 72 65 64 4d 75 6c 28 74 68 69 his.y.redMul(thi 0000beb0: 73 2e 7a 29 29 2e 72 65 64 49 41 64 64 28 6e 29 s.z)).redIAdd(n) 0000bec0: 7d 72 65 74 75 72 6e 20 74 68 69 73 2e 63 75 72 }return this.cur 0000bed0: 76 65 2e 6a 70 6f 69 6e 74 28 65 2c 74 2c 6e 29 ve.jpoint(e,t,n) 0000bee0: 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f },Rn.prototype._ 0000bef0: 74 68 72 65 65 44 62 6c 3d 66 75 6e 63 74 69 6f threeDbl=functio 0000bf00: 6e 28 29 7b 76 61 72 20 65 2c 74 2c 6e 3b 69 66 n(){var e,t,n;if 0000bf10: 28 74 68 69 73 2e 7a 4f 6e 65 29 7b 76 61 72 20 (this.zOne){var 0000bf20: 72 3d 74 68 69 73 2e 78 2e 72 65 64 53 71 72 28 r=this.x.redSqr( 0000bf30: 29 2c 6f 3d 74 68 69 73 2e 79 2e 72 65 64 53 71 ),o=this.y.redSq 0000bf40: 72 28 29 2c 69 3d 6f 2e 72 65 64 53 71 72 28 29 r(),i=o.redSqr() 0000bf50: 2c 61 3d 74 68 69 73 2e 78 2e 72 65 64 41 64 64 ,a=this.x.redAdd 0000bf60: 28 6f 29 2e 72 65 64 53 71 72 28 29 2e 72 65 64 (o).redSqr().red 0000bf70: 49 53 75 62 28 72 29 2e 72 65 64 49 53 75 62 28 ISub(r).redISub( 0000bf80: 69 29 3b 61 3d 61 2e 72 65 64 49 41 64 64 28 61 i);a=a.redIAdd(a 0000bf90: 29 3b 76 61 72 20 73 3d 72 2e 72 65 64 41 64 64 );var s=r.redAdd 0000bfa0: 28 72 29 2e 72 65 64 49 41 64 64 28 72 29 2e 72 (r).redIAdd(r).r 0000bfb0: 65 64 49 41 64 64 28 74 68 69 73 2e 63 75 72 76 edIAdd(this.curv 0000bfc0: 65 2e 61 29 2c 6c 3d 73 2e 72 65 64 53 71 72 28 e.a),l=s.redSqr( 0000bfd0: 29 2e 72 65 64 49 53 75 62 28 61 29 2e 72 65 64 ).redISub(a).red 0000bfe0: 49 53 75 62 28 61 29 3b 65 3d 6c 3b 76 61 72 20 ISub(a);e=l;var 0000bff0: 63 3d 69 2e 72 65 64 49 41 64 64 28 69 29 3b 63 c=i.redIAdd(i);c 0000c000: 3d 28 63 3d 63 2e 72 65 64 49 41 64 64 28 63 29 =(c=c.redIAdd(c) 0000c010: 29 2e 72 65 64 49 41 64 64 28 63 29 2c 74 3d 73 ).redIAdd(c),t=s 0000c020: 2e 72 65 64 4d 75 6c 28 61 2e 72 65 64 49 53 75 .redMul(a.redISu 0000c030: 62 28 6c 29 29 2e 72 65 64 49 53 75 62 28 63 29 b(l)).redISub(c) 0000c040: 2c 6e 3d 74 68 69 73 2e 79 2e 72 65 64 41 64 64 ,n=this.y.redAdd 0000c050: 28 74 68 69 73 2e 79 29 7d 65 6c 73 65 7b 76 61 (this.y)}else{va 0000c060: 72 20 75 3d 74 68 69 73 2e 7a 2e 72 65 64 53 71 r u=this.z.redSq 0000c070: 72 28 29 2c 64 3d 74 68 69 73 2e 79 2e 72 65 64 r(),d=this.y.red 0000c080: 53 71 72 28 29 2c 70 3d 74 68 69 73 2e 78 2e 72 Sqr(),p=this.x.r 0000c090: 65 64 4d 75 6c 28 64 29 2c 66 3d 74 68 69 73 2e edMul(d),f=this. 0000c0a0: 78 2e 72 65 64 53 75 62 28 75 29 2e 72 65 64 4d x.redSub(u).redM 0000c0b0: 75 6c 28 74 68 69 73 2e 78 2e 72 65 64 41 64 64 ul(this.x.redAdd 0000c0c0: 28 75 29 29 3b 66 3d 66 2e 72 65 64 41 64 64 28 (u));f=f.redAdd( 0000c0d0: 66 29 2e 72 65 64 49 41 64 64 28 66 29 3b 76 61 f).redIAdd(f);va 0000c0e0: 72 20 68 3d 70 2e 72 65 64 49 41 64 64 28 70 29 r h=p.redIAdd(p) 0000c0f0: 2c 6d 3d 28 68 3d 68 2e 72 65 64 49 41 64 64 28 ,m=(h=h.redIAdd( 0000c100: 68 29 29 2e 72 65 64 41 64 64 28 68 29 3b 65 3d h)).redAdd(h);e= 0000c110: 66 2e 72 65 64 53 71 72 28 29 2e 72 65 64 49 53 f.redSqr().redIS 0000c120: 75 62 28 6d 29 2c 6e 3d 74 68 69 73 2e 79 2e 72 ub(m),n=this.y.r 0000c130: 65 64 41 64 64 28 74 68 69 73 2e 7a 29 2e 72 65 edAdd(this.z).re 0000c140: 64 53 71 72 28 29 2e 72 65 64 49 53 75 62 28 64 dSqr().redISub(d 0000c150: 29 2e 72 65 64 49 53 75 62 28 75 29 3b 76 61 72 ).redISub(u);var 0000c160: 20 67 3d 64 2e 72 65 64 53 71 72 28 29 3b 67 3d g=d.redSqr();g= 0000c170: 28 67 3d 28 67 3d 67 2e 72 65 64 49 41 64 64 28 (g=(g=g.redIAdd( 0000c180: 67 29 29 2e 72 65 64 49 41 64 64 28 67 29 29 2e g)).redIAdd(g)). 0000c190: 72 65 64 49 41 64 64 28 67 29 2c 74 3d 66 2e 72 redIAdd(g),t=f.r 0000c1a0: 65 64 4d 75 6c 28 68 2e 72 65 64 49 53 75 62 28 edMul(h.redISub( 0000c1b0: 65 29 29 2e 72 65 64 49 53 75 62 28 67 29 7d 72 e)).redISub(g)}r 0000c1c0: 65 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 eturn this.curve 0000c1d0: 2e 6a 70 6f 69 6e 74 28 65 2c 74 2c 6e 29 7d 2c .jpoint(e,t,n)}, 0000c1e0: 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 64 62 Rn.prototype._db 0000c1f0: 6c 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 76 61 72 l=function(){var 0000c200: 20 65 3d 74 68 69 73 2e 63 75 72 76 65 2e 61 2c e=this.curve.a, 0000c210: 74 3d 74 68 69 73 2e 78 2c 6e 3d 74 68 69 73 2e t=this.x,n=this. 0000c220: 79 2c 72 3d 74 68 69 73 2e 7a 2c 6f 3d 72 2e 72 y,r=this.z,o=r.r 0000c230: 65 64 53 71 72 28 29 2e 72 65 64 53 71 72 28 29 edSqr().redSqr() 0000c240: 2c 69 3d 74 2e 72 65 64 53 71 72 28 29 2c 61 3d ,i=t.redSqr(),a= 0000c250: 6e 2e 72 65 64 53 71 72 28 29 2c 73 3d 69 2e 72 n.redSqr(),s=i.r 0000c260: 65 64 41 64 64 28 69 29 2e 72 65 64 49 41 64 64 edAdd(i).redIAdd 0000c270: 28 69 29 2e 72 65 64 49 41 64 64 28 65 2e 72 65 (i).redIAdd(e.re 0000c280: 64 4d 75 6c 28 6f 29 29 2c 6c 3d 74 2e 72 65 64 dMul(o)),l=t.red 0000c290: 41 64 64 28 74 29 2c 63 3d 28 6c 3d 6c 2e 72 65 Add(t),c=(l=l.re 0000c2a0: 64 49 41 64 64 28 6c 29 29 2e 72 65 64 4d 75 6c dIAdd(l)).redMul 0000c2b0: 28 61 29 2c 75 3d 73 2e 72 65 64 53 71 72 28 29 (a),u=s.redSqr() 0000c2c0: 2e 72 65 64 49 53 75 62 28 63 2e 72 65 64 41 64 .redISub(c.redAd 0000c2d0: 64 28 63 29 29 2c 64 3d 63 2e 72 65 64 49 53 75 d(c)),d=c.redISu 0000c2e0: 62 28 75 29 2c 70 3d 61 2e 72 65 64 53 71 72 28 b(u),p=a.redSqr( 0000c2f0: 29 3b 70 3d 28 70 3d 28 70 3d 70 2e 72 65 64 49 );p=(p=(p=p.redI 0000c300: 41 64 64 28 70 29 29 2e 72 65 64 49 41 64 64 28 Add(p)).redIAdd( 0000c310: 70 29 29 2e 72 65 64 49 41 64 64 28 70 29 3b 76 p)).redIAdd(p);v 0000c320: 61 72 20 66 3d 73 2e 72 65 64 4d 75 6c 28 64 29 ar f=s.redMul(d) 0000c330: 2e 72 65 64 49 53 75 62 28 70 29 2c 68 3d 6e 2e .redISub(p),h=n. 0000c340: 72 65 64 41 64 64 28 6e 29 2e 72 65 64 4d 75 6c redAdd(n).redMul 0000c350: 28 72 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e (r);return this. 0000c360: 63 75 72 76 65 2e 6a 70 6f 69 6e 74 28 75 2c 66 curve.jpoint(u,f 0000c370: 2c 68 29 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 70 ,h)},Rn.prototyp 0000c380: 65 2e 74 72 70 6c 3d 66 75 6e 63 74 69 6f 6e 28 e.trpl=function( 0000c390: 29 7b 69 66 28 21 74 68 69 73 2e 63 75 72 76 65 ){if(!this.curve 0000c3a0: 2e 7a 65 72 6f 41 29 72 65 74 75 72 6e 20 74 68 .zeroA)return th 0000c3b0: 69 73 2e 64 62 6c 28 29 2e 61 64 64 28 74 68 69 is.dbl().add(thi 0000c3c0: 73 29 3b 76 61 72 20 65 3d 74 68 69 73 2e 78 2e s);var e=this.x. 0000c3d0: 72 65 64 53 71 72 28 29 2c 74 3d 74 68 69 73 2e redSqr(),t=this. 0000c3e0: 79 2e 72 65 64 53 71 72 28 29 2c 6e 3d 74 68 69 y.redSqr(),n=thi 0000c3f0: 73 2e 7a 2e 72 65 64 53 71 72 28 29 2c 72 3d 74 s.z.redSqr(),r=t 0000c400: 2e 72 65 64 53 71 72 28 29 2c 6f 3d 65 2e 72 65 .redSqr(),o=e.re 0000c410: 64 41 64 64 28 65 29 2e 72 65 64 49 41 64 64 28 dAdd(e).redIAdd( 0000c420: 65 29 2c 69 3d 6f 2e 72 65 64 53 71 72 28 29 2c e),i=o.redSqr(), 0000c430: 61 3d 74 68 69 73 2e 78 2e 72 65 64 41 64 64 28 a=this.x.redAdd( 0000c440: 74 29 2e 72 65 64 53 71 72 28 29 2e 72 65 64 49 t).redSqr().redI 0000c450: 53 75 62 28 65 29 2e 72 65 64 49 53 75 62 28 72 Sub(e).redISub(r 0000c460: 29 2c 73 3d 28 61 3d 28 61 3d 28 61 3d 61 2e 72 ),s=(a=(a=(a=a.r 0000c470: 65 64 49 41 64 64 28 61 29 29 2e 72 65 64 41 64 edIAdd(a)).redAd 0000c480: 64 28 61 29 2e 72 65 64 49 41 64 64 28 61 29 29 d(a).redIAdd(a)) 0000c490: 2e 72 65 64 49 53 75 62 28 69 29 29 2e 72 65 64 .redISub(i)).red 0000c4a0: 53 71 72 28 29 2c 6c 3d 72 2e 72 65 64 49 41 64 Sqr(),l=r.redIAd 0000c4b0: 64 28 72 29 3b 6c 3d 28 6c 3d 28 6c 3d 6c 2e 72 d(r);l=(l=(l=l.r 0000c4c0: 65 64 49 41 64 64 28 6c 29 29 2e 72 65 64 49 41 edIAdd(l)).redIA 0000c4d0: 64 64 28 6c 29 29 2e 72 65 64 49 41 64 64 28 6c dd(l)).redIAdd(l 0000c4e0: 29 3b 76 61 72 20 63 3d 6f 2e 72 65 64 49 41 64 );var c=o.redIAd 0000c4f0: 64 28 61 29 2e 72 65 64 53 71 72 28 29 2e 72 65 d(a).redSqr().re 0000c500: 64 49 53 75 62 28 69 29 2e 72 65 64 49 53 75 62 dISub(i).redISub 0000c510: 28 73 29 2e 72 65 64 49 53 75 62 28 6c 29 2c 75 (s).redISub(l),u 0000c520: 3d 74 2e 72 65 64 4d 75 6c 28 63 29 3b 75 3d 28 =t.redMul(c);u=( 0000c530: 75 3d 75 2e 72 65 64 49 41 64 64 28 75 29 29 2e u=u.redIAdd(u)). 0000c540: 72 65 64 49 41 64 64 28 75 29 3b 76 61 72 20 64 redIAdd(u);var d 0000c550: 3d 74 68 69 73 2e 78 2e 72 65 64 4d 75 6c 28 73 =this.x.redMul(s 0000c560: 29 2e 72 65 64 49 53 75 62 28 75 29 3b 64 3d 28 ).redISub(u);d=( 0000c570: 64 3d 64 2e 72 65 64 49 41 64 64 28 64 29 29 2e d=d.redIAdd(d)). 0000c580: 72 65 64 49 41 64 64 28 64 29 3b 76 61 72 20 70 redIAdd(d);var p 0000c590: 3d 74 68 69 73 2e 79 2e 72 65 64 4d 75 6c 28 63 =this.y.redMul(c 0000c5a0: 2e 72 65 64 4d 75 6c 28 6c 2e 72 65 64 49 53 75 .redMul(l.redISu 0000c5b0: 62 28 63 29 29 2e 72 65 64 49 53 75 62 28 61 2e b(c)).redISub(a. 0000c5c0: 72 65 64 4d 75 6c 28 73 29 29 29 3b 70 3d 28 70 redMul(s)));p=(p 0000c5d0: 3d 28 70 3d 70 2e 72 65 64 49 41 64 64 28 70 29 =(p=p.redIAdd(p) 0000c5e0: 29 2e 72 65 64 49 41 64 64 28 70 29 29 2e 72 65 ).redIAdd(p)).re 0000c5f0: 64 49 41 64 64 28 70 29 3b 76 61 72 20 66 3d 74 dIAdd(p);var f=t 0000c600: 68 69 73 2e 7a 2e 72 65 64 41 64 64 28 61 29 2e his.z.redAdd(a). 0000c610: 72 65 64 53 71 72 28 29 2e 72 65 64 49 53 75 62 redSqr().redISub 0000c620: 28 6e 29 2e 72 65 64 49 53 75 62 28 73 29 3b 72 (n).redISub(s);r 0000c630: 65 74 75 72 6e 20 74 68 69 73 2e 63 75 72 76 65 eturn this.curve 0000c640: 2e 6a 70 6f 69 6e 74 28 64 2c 70 2c 66 29 7d 2c .jpoint(d,p,f)}, 0000c650: 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 6d 75 6c Rn.prototype.mul 0000c660: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 =function(e,t){r 0000c670: 65 74 75 72 6e 20 65 3d 6e 65 77 28 7a 28 29 29 eturn e=new(z()) 0000c680: 28 65 2c 74 29 2c 74 68 69 73 2e 63 75 72 76 65 (e,t),this.curve 0000c690: 2e 5f 77 6e 61 66 4d 75 6c 28 74 68 69 73 2c 65 ._wnafMul(this,e 0000c6a0: 29 7d 2c 52 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},Rn.prototype. 0000c6b0: 65 71 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 69 eq=function(e){i 0000c6c0: 66 28 22 61 66 66 69 6e 65 22 3d 3d 3d 65 2e 74 f("affine"===e.t 0000c6d0: 79 70 65 29 72 65 74 75 72 6e 20 74 68 69 73 2e ype)return this. 0000c6e0: 65 71 28 65 2e 74 6f 4a 28 29 29 3b 69 66 28 74 eq(e.toJ());if(t 0000c6f0: 68 69 73 3d 3d 3d 65 29 72 65 74 75 72 6e 21 30 his===e)return!0 0000c700: 3b 76 61 72 20 74 3d 74 68 69 73 2e 7a 2e 72 65 ;var t=this.z.re 0000c710: 64 53 71 72 28 29 2c 6e 3d 65 2e 7a 2e 72 65 64 dSqr(),n=e.z.red 0000c720: 53 71 72 28 29 3b 69 66 28 30 21 3d 3d 74 68 69 Sqr();if(0!==thi 0000c730: 73 2e 78 2e 72 65 64 4d 75 6c 28 6e 29 2e 72 65 s.x.redMul(n).re 0000c740: 64 49 53 75 62 28 65 2e 78 2e 72 65 64 4d 75 6c dISub(e.x.redMul 0000c750: 28 74 29 29 2e 63 6d 70 6e 28 30 29 29 72 65 74 (t)).cmpn(0))ret 0000c760: 75 72 6e 21 31 3b 76 61 72 20 72 3d 74 2e 72 65 urn!1;var r=t.re 0000c770: 64 4d 75 6c 28 74 68 69 73 2e 7a 29 2c 6f 3d 6e dMul(this.z),o=n 0000c780: 2e 72 65 64 4d 75 6c 28 65 2e 7a 29 3b 72 65 74 .redMul(e.z);ret 0000c790: 75 72 6e 20 30 3d 3d 3d 74 68 69 73 2e 79 2e 72 urn 0===this.y.r 0000c7a0: 65 64 4d 75 6c 28 6f 29 2e 72 65 64 49 53 75 62 edMul(o).redISub 0000c7b0: 28 65 2e 79 2e 72 65 64 4d 75 6c 28 72 29 29 2e (e.y.redMul(r)). 0000c7c0: 63 6d 70 6e 28 30 29 7d 2c 52 6e 2e 70 72 6f 74 cmpn(0)},Rn.prot 0000c7d0: 6f 74 79 70 65 2e 65 71 58 54 6f 50 3d 66 75 6e otype.eqXToP=fun 0000c7e0: 63 74 69 6f 6e 28 65 29 7b 76 61 72 20 74 3d 74 ction(e){var t=t 0000c7f0: 68 69 73 2e 7a 2e 72 65 64 53 71 72 28 29 2c 6e his.z.redSqr(),n 0000c800: 3d 65 2e 74 6f 52 65 64 28 74 68 69 73 2e 63 75 =e.toRed(this.cu 0000c810: 72 76 65 2e 72 65 64 29 2e 72 65 64 4d 75 6c 28 rve.red).redMul( 0000c820: 74 29 3b 69 66 28 30 3d 3d 3d 74 68 69 73 2e 78 t);if(0===this.x 0000c830: 2e 63 6d 70 28 6e 29 29 72 65 74 75 72 6e 21 30 .cmp(n))return!0 0000c840: 3b 66 6f 72 28 76 61 72 20 72 3d 65 2e 63 6c 6f ;for(var r=e.clo 0000c850: 6e 65 28 29 2c 6f 3d 74 68 69 73 2e 63 75 72 76 ne(),o=this.curv 0000c860: 65 2e 72 65 64 4e 2e 72 65 64 4d 75 6c 28 74 29 e.redN.redMul(t) 0000c870: 3b 3b 29 7b 69 66 28 72 2e 69 61 64 64 28 74 68 ;;){if(r.iadd(th 0000c880: 69 73 2e 63 75 72 76 65 2e 6e 29 2c 72 2e 63 6d is.curve.n),r.cm 0000c890: 70 28 74 68 69 73 2e 63 75 72 76 65 2e 70 29 3e p(this.curve.p)> 0000c8a0: 3d 30 29 72 65 74 75 72 6e 21 31 3b 69 66 28 6e =0)return!1;if(n 0000c8b0: 2e 72 65 64 49 41 64 64 28 6f 29 2c 30 3d 3d 3d .redIAdd(o),0=== 0000c8c0: 74 68 69 73 2e 78 2e 63 6d 70 28 6e 29 29 72 65 this.x.cmp(n))re 0000c8d0: 74 75 72 6e 21 30 7d 7d 2c 52 6e 2e 70 72 6f 74 turn!0}},Rn.prot 0000c8e0: 6f 74 79 70 65 2e 69 6e 73 70 65 63 74 3d 66 75 otype.inspect=fu 0000c8f0: 6e 63 74 69 6f 6e 28 29 7b 72 65 74 75 72 6e 20 nction(){return 0000c900: 74 68 69 73 2e 69 73 49 6e 66 69 6e 69 74 79 28 this.isInfinity( 0000c910: 29 3f 22 3c 45 43 20 4a 50 6f 69 6e 74 20 49 6e )?"<EC JPoint In 0000c920: 66 69 6e 69 74 79 3e 22 3a 22 3c 45 43 20 4a 50 finity>":"<EC JP 0000c930: 6f 69 6e 74 20 78 3a 20 22 2b 74 68 69 73 2e 78 oint x: "+this.x 0000c940: 2e 74 6f 53 74 72 69 6e 67 28 31 36 2c 32 29 2b .toString(16,2)+ 0000c950: 22 20 79 3a 20 22 2b 74 68 69 73 2e 79 2e 74 6f " y: "+this.y.to 0000c960: 53 74 72 69 6e 67 28 31 36 2c 32 29 2b 22 20 7a String(16,2)+" z 0000c970: 3a 20 22 2b 74 68 69 73 2e 7a 2e 74 6f 53 74 72 : "+this.z.toStr 0000c980: 69 6e 67 28 31 36 2c 32 29 2b 22 3e 22 7d 2c 52 ing(16,2)+">"},R 0000c990: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 69 73 49 6e n.prototype.isIn 0000c9a0: 66 69 6e 69 74 79 3d 66 75 6e 63 74 69 6f 6e 28 finity=function( 0000c9b0: 29 7b 72 65 74 75 72 6e 20 30 3d 3d 3d 74 68 69 ){return 0===thi 0000c9c0: 73 2e 7a 2e 63 6d 70 6e 28 30 29 7d 3b 76 61 72 s.z.cmpn(0)};var 0000c9d0: 20 4e 6e 3d 6d 6e 28 28 66 75 6e 63 74 69 6f 6e Nn=mn((function 0000c9e0: 28 65 2c 74 29 7b 76 61 72 20 6e 3d 74 3b 6e 2e (e,t){var n=t;n. 0000c9f0: 62 61 73 65 3d 78 6e 2c 6e 2e 73 68 6f 72 74 3d base=xn,n.short= 0000ca00: 49 6e 2c 6e 2e 6d 6f 6e 74 3d 6e 75 6c 6c 2c 6e In,n.mont=null,n 0000ca10: 2e 65 64 77 61 72 64 73 3d 6e 75 6c 6c 7d 29 29 .edwards=null})) 0000ca20: 2c 50 6e 3d 6d 6e 28 28 66 75 6e 63 74 69 6f 6e ,Pn=mn((function 0000ca30: 28 65 2c 74 29 7b 76 61 72 20 6e 2c 72 3d 74 2c (e,t){var n,r=t, 0000ca40: 6f 3d 76 6e 2e 61 73 73 65 72 74 3b 66 75 6e 63 o=vn.assert;func 0000ca50: 74 69 6f 6e 20 69 28 65 29 7b 22 73 68 6f 72 74 tion i(e){"short 0000ca60: 22 3d 3d 3d 65 2e 74 79 70 65 3f 74 68 69 73 2e "===e.type?this. 0000ca70: 63 75 72 76 65 3d 6e 65 77 20 4e 6e 2e 73 68 6f curve=new Nn.sho 0000ca80: 72 74 28 65 29 3a 22 65 64 77 61 72 64 73 22 3d rt(e):"edwards"= 0000ca90: 3d 3d 65 2e 74 79 70 65 3f 74 68 69 73 2e 63 75 ==e.type?this.cu 0000caa0: 72 76 65 3d 6e 65 77 20 4e 6e 2e 65 64 77 61 72 rve=new Nn.edwar 0000cab0: 64 73 28 65 29 3a 74 68 69 73 2e 63 75 72 76 65 ds(e):this.curve 0000cac0: 3d 6e 65 77 20 4e 6e 2e 6d 6f 6e 74 28 65 29 2c =new Nn.mont(e), 0000cad0: 74 68 69 73 2e 67 3d 74 68 69 73 2e 63 75 72 76 this.g=this.curv 0000cae0: 65 2e 67 2c 74 68 69 73 2e 6e 3d 74 68 69 73 2e e.g,this.n=this. 0000caf0: 63 75 72 76 65 2e 6e 2c 74 68 69 73 2e 68 61 73 curve.n,this.has 0000cb00: 68 3d 65 2e 68 61 73 68 2c 6f 28 74 68 69 73 2e h=e.hash,o(this. 0000cb10: 67 2e 76 61 6c 69 64 61 74 65 28 29 2c 22 49 6e g.validate(),"In 0000cb20: 76 61 6c 69 64 20 63 75 72 76 65 22 29 2c 6f 28 valid curve"),o( 0000cb30: 74 68 69 73 2e 67 2e 6d 75 6c 28 74 68 69 73 2e this.g.mul(this. 0000cb40: 6e 29 2e 69 73 49 6e 66 69 6e 69 74 79 28 29 2c n).isInfinity(), 0000cb50: 22 49 6e 76 61 6c 69 64 20 63 75 72 76 65 2c 20 "Invalid curve, 0000cb60: 47 2a 4e 20 21 3d 20 4f 22 29 7d 66 75 6e 63 74 G*N != O")}funct 0000cb70: 69 6f 6e 20 61 28 65 2c 74 29 7b 4f 62 6a 65 63 ion a(e,t){Objec 0000cb80: 74 2e 64 65 66 69 6e 65 50 72 6f 70 65 72 74 79 t.defineProperty 0000cb90: 28 72 2c 65 2c 7b 63 6f 6e 66 69 67 75 72 61 62 (r,e,{configurab 0000cba0: 6c 65 3a 21 30 2c 65 6e 75 6d 65 72 61 62 6c 65 le:!0,enumerable 0000cbb0: 3a 21 30 2c 67 65 74 3a 66 75 6e 63 74 69 6f 6e :!0,get:function 0000cbc0: 28 29 7b 76 61 72 20 6e 3d 6e 65 77 20 69 28 74 (){var n=new i(t 0000cbd0: 29 3b 72 65 74 75 72 6e 20 4f 62 6a 65 63 74 2e );return Object. 0000cbe0: 64 65 66 69 6e 65 50 72 6f 70 65 72 74 79 28 72 defineProperty(r 0000cbf0: 2c 65 2c 7b 63 6f 6e 66 69 67 75 72 61 62 6c 65 ,e,{configurable 0000cc00: 3a 21 30 2c 65 6e 75 6d 65 72 61 62 6c 65 3a 21 :!0,enumerable:! 0000cc10: 30 2c 76 61 6c 75 65 3a 6e 7d 29 2c 6e 7d 7d 29 0,value:n}),n}}) 0000cc20: 7d 72 2e 50 72 65 73 65 74 43 75 72 76 65 3d 69 }r.PresetCurve=i 0000cc30: 2c 61 28 22 70 31 39 32 22 2c 7b 74 79 70 65 3a ,a("p192",{type: 0000cc40: 22 73 68 6f 72 74 22 2c 70 72 69 6d 65 3a 22 70 "short",prime:"p 0000cc50: 31 39 32 22 2c 70 3a 22 66 66 66 66 66 66 66 66 192",p:"ffffffff 0000cc60: 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 ffffffff ffffff 0000cc70: 66 66 20 66 66 66 66 66 66 66 65 20 66 66 66 66 ff fffffffe ffff 0000cc80: 66 66 66 66 20 66 66 66 66 66 66 66 66 22 2c 61 ffff ffffffff",a 0000cc90: 3a 22 66 66 66 66 66 66 66 66 20 66 66 66 66 66 :"ffffffff fffff 0000cca0: 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 fff ffffffff fff 0000ccb0: 66 66 66 66 65 20 66 66 66 66 66 66 66 66 20 66 ffffe ffffffff f 0000ccc0: 66 66 66 66 66 66 63 22 2c 62 3a 22 36 34 32 31 ffffffc",b:"6421 0000ccd0: 30 35 31 39 20 65 35 39 63 38 30 65 37 20 30 66 0519 e59c80e7 0f 0000cce0: 61 37 65 39 61 62 20 37 32 32 34 33 30 34 39 20 a7e9ab 72243049 0000ccf0: 66 65 62 38 64 65 65 63 20 63 31 34 36 62 39 62 feb8deec c146b9b 0000cd00: 31 22 2c 6e 3a 22 66 66 66 66 66 66 66 66 20 66 1",n:"ffffffff f 0000cd10: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000cd20: 20 39 39 64 65 66 38 33 36 20 31 34 36 62 63 39 99def836 146bc9 0000cd30: 62 31 20 62 34 64 32 32 38 33 31 22 2c 68 61 73 b1 b4d22831",has 0000cd40: 68 3a 68 6e 28 29 2e 73 68 61 32 35 36 2c 67 52 h:hn().sha256,gR 0000cd50: 65 64 3a 21 31 2c 67 3a 5b 22 31 38 38 64 61 38 ed:!1,g:["188da8 0000cd60: 30 65 20 62 30 33 30 39 30 66 36 20 37 63 62 66 0e b03090f6 7cbf 0000cd70: 32 30 65 62 20 34 33 61 31 38 38 30 30 20 66 34 20eb 43a18800 f4 0000cd80: 66 66 30 61 66 64 20 38 32 66 66 31 30 31 32 22 ff0afd 82ff1012" 0000cd90: 2c 22 30 37 31 39 32 62 39 35 20 66 66 63 38 64 ,"07192b95 ffc8d 0000cda0: 61 37 38 20 36 33 31 30 31 31 65 64 20 36 62 32 a78 631011ed 6b2 0000cdb0: 34 63 64 64 35 20 37 33 66 39 37 37 61 31 20 31 4cdd5 73f977a1 1 0000cdc0: 65 37 39 34 38 31 31 22 5d 7d 29 2c 61 28 22 70 e794811"]}),a("p 0000cdd0: 32 32 34 22 2c 7b 74 79 70 65 3a 22 73 68 6f 72 224",{type:"shor 0000cde0: 74 22 2c 70 72 69 6d 65 3a 22 70 32 32 34 22 2c t",prime:"p224", 0000cdf0: 70 3a 22 66 66 66 66 66 66 66 66 20 66 66 66 66 p:"ffffffff ffff 0000ce00: 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 ffff ffffffff ff 0000ce10: 66 66 66 66 66 66 20 30 30 30 30 30 30 30 30 20 ffffff 00000000 0000ce20: 30 30 30 30 30 30 30 30 20 30 30 30 30 30 30 30 00000000 0000000 0000ce30: 31 22 2c 61 3a 22 66 66 66 66 66 66 66 66 20 66 1",a:"ffffffff f 0000ce40: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000ce50: 20 66 66 66 66 66 66 66 65 20 66 66 66 66 66 66 fffffffe ffffff 0000ce60: 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 ff ffffffff ffff 0000ce70: 66 66 66 65 22 2c 62 3a 22 62 34 30 35 30 61 38 fffe",b:"b4050a8 0000ce80: 35 20 30 63 30 34 62 33 61 62 20 66 35 34 31 33 5 0c04b3ab f5413 0000ce90: 32 35 36 20 35 30 34 34 62 30 62 37 20 64 37 62 256 5044b0b7 d7b 0000cea0: 66 64 38 62 61 20 32 37 30 62 33 39 34 33 20 32 fd8ba 270b3943 2 0000ceb0: 33 35 35 66 66 62 34 22 2c 6e 3a 22 66 66 66 66 355ffb4",n:"ffff 0000cec0: 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 ffff ffffffff ff 0000ced0: 66 66 66 66 66 66 20 66 66 66 66 31 36 61 32 20 ffffff ffff16a2 0000cee0: 65 30 62 38 66 30 33 65 20 31 33 64 64 32 39 34 e0b8f03e 13dd294 0000cef0: 35 20 35 63 35 63 32 61 33 64 22 2c 68 61 73 68 5 5c5c2a3d",hash 0000cf00: 3a 68 6e 28 29 2e 73 68 61 32 35 36 2c 67 52 65 :hn().sha256,gRe 0000cf10: 64 3a 21 31 2c 67 3a 5b 22 62 37 30 65 30 63 62 d:!1,g:["b70e0cb 0000cf20: 64 20 36 62 62 34 62 66 37 66 20 33 32 31 33 39 d 6bb4bf7f 32139 0000cf30: 30 62 39 20 34 61 30 33 63 31 64 33 20 35 36 63 0b9 4a03c1d3 56c 0000cf40: 32 31 31 32 32 20 33 34 33 32 38 30 64 36 20 31 21122 343280d6 1 0000cf50: 31 35 63 31 64 32 31 22 2c 22 62 64 33 37 36 33 15c1d21","bd3763 0000cf60: 38 38 20 62 35 66 37 32 33 66 62 20 34 63 32 32 88 b5f723fb 4c22 0000cf70: 64 66 65 36 20 63 64 34 33 37 35 61 30 20 35 61 dfe6 cd4375a0 5a 0000cf80: 30 37 34 37 36 34 20 34 34 64 35 38 31 39 39 20 074764 44d58199 0000cf90: 38 35 30 30 37 65 33 34 22 5d 7d 29 2c 61 28 22 85007e34"]}),a(" 0000cfa0: 70 32 35 36 22 2c 7b 74 79 70 65 3a 22 73 68 6f p256",{type:"sho 0000cfb0: 72 74 22 2c 70 72 69 6d 65 3a 6e 75 6c 6c 2c 70 rt",prime:null,p 0000cfc0: 3a 22 66 66 66 66 66 66 66 66 20 30 30 30 30 30 :"ffffffff 00000 0000cfd0: 30 30 31 20 30 30 30 30 30 30 30 30 20 30 30 30 001 00000000 000 0000cfe0: 30 30 30 30 30 20 30 30 30 30 30 30 30 30 20 66 00000 00000000 f 0000cff0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000d000: 20 66 66 66 66 66 66 66 66 22 2c 61 3a 22 66 66 ffffffff",a:"ff 0000d010: 66 66 66 66 66 66 20 30 30 30 30 30 30 30 31 20 ffffff 00000001 0000d020: 30 30 30 30 30 30 30 30 20 30 30 30 30 30 30 30 00000000 0000000 0000d030: 30 20 30 30 30 30 30 30 30 30 20 66 66 66 66 66 0 00000000 fffff 0000d040: 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 fff ffffffff fff 0000d050: 66 66 66 66 63 22 2c 62 3a 22 35 61 63 36 33 35 ffffc",b:"5ac635 0000d060: 64 38 20 61 61 33 61 39 33 65 37 20 62 33 65 62 d8 aa3a93e7 b3eb 0000d070: 62 64 35 35 20 37 36 39 38 38 36 62 63 20 36 35 bd55 769886bc 65 0000d080: 31 64 30 36 62 30 20 63 63 35 33 62 30 66 36 20 1d06b0 cc53b0f6 0000d090: 33 62 63 65 33 63 33 65 20 32 37 64 32 36 30 34 3bce3c3e 27d2604 0000d0a0: 62 22 2c 6e 3a 22 66 66 66 66 66 66 66 66 20 30 b",n:"ffffffff 0 0000d0b0: 30 30 30 30 30 30 30 20 66 66 66 66 66 66 66 66 0000000 ffffffff 0000d0c0: 20 66 66 66 66 66 66 66 66 20 62 63 65 36 66 61 ffffffff bce6fa 0000d0d0: 61 64 20 61 37 31 37 39 65 38 34 20 66 33 62 39 ad a7179e84 f3b9 0000d0e0: 63 61 63 32 20 66 63 36 33 32 35 35 31 22 2c 68 cac2 fc632551",h 0000d0f0: 61 73 68 3a 68 6e 28 29 2e 73 68 61 32 35 36 2c ash:hn().sha256, 0000d100: 67 52 65 64 3a 21 31 2c 67 3a 5b 22 36 62 31 37 gRed:!1,g:["6b17 0000d110: 64 31 66 32 20 65 31 32 63 34 32 34 37 20 66 38 d1f2 e12c4247 f8 0000d120: 62 63 65 36 65 35 20 36 33 61 34 34 30 66 32 20 bce6e5 63a440f2 0000d130: 37 37 30 33 37 64 38 31 20 32 64 65 62 33 33 61 77037d81 2deb33a 0000d140: 30 20 66 34 61 31 33 39 34 35 20 64 38 39 38 63 0 f4a13945 d898c 0000d150: 32 39 36 22 2c 22 34 66 65 33 34 32 65 32 20 66 296","4fe342e2 f 0000d160: 65 31 61 37 66 39 62 20 38 65 65 37 65 62 34 61 e1a7f9b 8ee7eb4a 0000d170: 20 37 63 30 66 39 65 31 36 20 32 62 63 65 33 33 7c0f9e16 2bce33 0000d180: 35 37 20 36 62 33 31 35 65 63 65 20 63 62 62 36 57 6b315ece cbb6 0000d190: 34 30 36 38 20 33 37 62 66 35 31 66 35 22 5d 7d 4068 37bf51f5"]} 0000d1a0: 29 2c 61 28 22 70 33 38 34 22 2c 7b 74 79 70 65 ),a("p384",{type 0000d1b0: 3a 22 73 68 6f 72 74 22 2c 70 72 69 6d 65 3a 6e :"short",prime:n 0000d1c0: 75 6c 6c 2c 70 3a 22 66 66 66 66 66 66 66 66 20 ull,p:"ffffffff 0000d1d0: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d1e0: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000d1f0: 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 fff ffffffff fff 0000d200: 66 66 66 66 66 20 66 66 66 66 66 66 66 65 20 66 fffff fffffffe f 0000d210: 66 66 66 66 66 66 66 20 30 30 30 30 30 30 30 30 fffffff 00000000 0000d220: 20 30 30 30 30 30 30 30 30 20 66 66 66 66 66 66 00000000 ffffff 0000d230: 66 66 22 2c 61 3a 22 66 66 66 66 66 66 66 66 20 ff",a:"ffffffff 0000d240: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d250: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000d260: 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 fff ffffffff fff 0000d270: 66 66 66 66 66 20 66 66 66 66 66 66 66 65 20 66 fffff fffffffe f 0000d280: 66 66 66 66 66 66 66 20 30 30 30 30 30 30 30 30 fffffff 00000000 0000d290: 20 30 30 30 30 30 30 30 30 20 66 66 66 66 66 66 00000000 ffffff 0000d2a0: 66 63 22 2c 62 3a 22 62 33 33 31 32 66 61 37 20 fc",b:"b3312fa7 0000d2b0: 65 32 33 65 65 37 65 34 20 39 38 38 65 30 35 36 e23ee7e4 988e056 0000d2c0: 62 20 65 33 66 38 32 64 31 39 20 31 38 31 64 39 b e3f82d19 181d9 0000d2d0: 63 36 65 20 66 65 38 31 34 31 31 32 20 30 33 31 c6e fe814112 031 0000d2e0: 34 30 38 38 66 20 35 30 31 33 38 37 35 61 20 63 4088f 5013875a c 0000d2f0: 36 35 36 33 39 38 64 20 38 61 32 65 64 31 39 64 656398d 8a2ed19d 0000d300: 20 32 61 38 35 63 38 65 64 20 64 33 65 63 32 61 2a85c8ed d3ec2a 0000d310: 65 66 22 2c 6e 3a 22 66 66 66 66 66 66 66 66 20 ef",n:"ffffffff 0000d320: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d330: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000d340: 66 66 66 20 66 66 66 66 66 66 66 66 20 63 37 36 fff ffffffff c76 0000d350: 33 34 64 38 31 20 66 34 33 37 32 64 64 66 20 35 34d81 f4372ddf 5 0000d360: 38 31 61 30 64 62 32 20 34 38 62 30 61 37 37 61 81a0db2 48b0a77a 0000d370: 20 65 63 65 63 31 39 36 61 20 63 63 63 35 32 39 ecec196a ccc529 0000d380: 37 33 22 2c 68 61 73 68 3a 68 6e 28 29 2e 73 68 73",hash:hn().sh 0000d390: 61 33 38 34 2c 67 52 65 64 3a 21 31 2c 67 3a 5b a384,gRed:!1,g:[ 0000d3a0: 22 61 61 38 37 63 61 32 32 20 62 65 38 62 30 35 "aa87ca22 be8b05 0000d3b0: 33 37 20 38 65 62 31 63 37 31 65 20 66 33 32 30 37 8eb1c71e f320 0000d3c0: 61 64 37 34 20 36 65 31 64 33 62 36 32 20 38 62 ad74 6e1d3b62 8b 0000d3d0: 61 37 39 62 39 38 20 35 39 66 37 34 31 65 30 20 a79b98 59f741e0 0000d3e0: 38 32 35 34 32 61 33 38 20 35 35 30 32 66 32 35 82542a38 5502f25 0000d3f0: 64 20 62 66 35 35 32 39 36 63 20 33 61 35 34 35 d bf55296c 3a545 0000d400: 65 33 38 20 37 32 37 36 30 61 62 37 22 2c 22 33 e38 72760ab7","3 0000d410: 36 31 37 64 65 34 61 20 39 36 32 36 32 63 36 66 617de4a 96262c6f 0000d420: 20 35 64 39 65 39 38 62 66 20 39 32 39 32 64 63 5d9e98bf 9292dc 0000d430: 32 39 20 66 38 66 34 31 64 62 64 20 32 38 39 61 29 f8f41dbd 289a 0000d440: 31 34 37 63 20 65 39 64 61 33 31 31 33 20 62 35 147c e9da3113 b5 0000d450: 66 30 62 38 63 30 20 30 61 36 30 62 31 63 65 20 f0b8c0 0a60b1ce 0000d460: 31 64 37 65 38 31 39 64 20 37 61 34 33 31 64 37 1d7e819d 7a431d7 0000d470: 63 20 39 30 65 61 30 65 35 66 22 5d 7d 29 2c 61 c 90ea0e5f"]}),a 0000d480: 28 22 70 35 32 31 22 2c 7b 74 79 70 65 3a 22 73 ("p521",{type:"s 0000d490: 68 6f 72 74 22 2c 70 72 69 6d 65 3a 6e 75 6c 6c hort",prime:null 0000d4a0: 2c 70 3a 22 30 30 30 30 30 31 66 66 20 66 66 66 ,p:"000001ff fff 0000d4b0: 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 fffff ffffffff f 0000d4c0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000d4d0: 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 ffffffff ffffff 0000d4e0: 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 ff ffffffff ffff 0000d4f0: 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 ffff ffffffff ff 0000d500: 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 ffffff ffffffff 0000d510: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d520: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000d530: 66 66 66 20 66 66 66 66 66 66 66 66 22 2c 61 3a fff ffffffff",a: 0000d540: 22 30 30 30 30 30 31 66 66 20 66 66 66 66 66 66 "000001ff ffffff 0000d550: 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 ff ffffffff ffff 0000d560: 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 ffff ffffffff ff 0000d570: 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 ffffff ffffffff 0000d580: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d590: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000d5a0: 66 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 fff ffffffff fff 0000d5b0: 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 fffff ffffffff f 0000d5c0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000d5d0: 20 66 66 66 66 66 66 66 63 22 2c 62 3a 22 30 30 fffffffc",b:"00 0000d5e0: 30 30 30 30 35 31 20 39 35 33 65 62 39 36 31 20 000051 953eb961 0000d5f0: 38 65 31 63 39 61 31 66 20 39 32 39 61 32 31 61 8e1c9a1f 929a21a 0000d600: 30 20 62 36 38 35 34 30 65 65 20 61 32 64 61 37 0 b68540ee a2da7 0000d610: 32 35 62 20 39 39 62 33 31 35 66 33 20 62 38 62 25b 99b315f3 b8b 0000d620: 34 38 39 39 31 20 38 65 66 31 30 39 65 31 20 35 48991 8ef109e1 5 0000d630: 36 31 39 33 39 35 31 20 65 63 37 65 39 33 37 62 6193951 ec7e937b 0000d640: 20 31 36 35 32 63 30 62 64 20 33 62 62 31 62 66 1652c0bd 3bb1bf 0000d650: 30 37 20 33 35 37 33 64 66 38 38 20 33 64 32 63 07 3573df88 3d2c 0000d660: 33 34 66 31 20 65 66 34 35 31 66 64 34 20 36 62 34f1 ef451fd4 6b 0000d670: 35 30 33 66 30 30 22 2c 6e 3a 22 30 30 30 30 30 503f00",n:"00000 0000d680: 31 66 66 20 66 66 66 66 66 66 66 66 20 66 66 66 1ff ffffffff fff 0000d690: 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 66 fffff ffffffff f 0000d6a0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000d6b0: 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 ffffffff ffffff 0000d6c0: 66 66 20 66 66 66 66 66 66 66 61 20 35 31 38 36 ff fffffffa 5186 0000d6d0: 38 37 38 33 20 62 66 32 66 39 36 36 62 20 37 66 8783 bf2f966b 7f 0000d6e0: 63 63 30 31 34 38 20 66 37 30 39 61 35 64 30 20 cc0148 f709a5d0 0000d6f0: 33 62 62 35 63 39 62 38 20 38 39 39 63 34 37 61 3bb5c9b8 899c47a 0000d700: 65 20 62 62 36 66 62 37 31 65 20 39 31 33 38 36 e bb6fb71e 91386 0000d710: 34 30 39 22 2c 68 61 73 68 3a 68 6e 28 29 2e 73 409",hash:hn().s 0000d720: 68 61 35 31 32 2c 67 52 65 64 3a 21 31 2c 67 3a ha512,gRed:!1,g: 0000d730: 5b 22 30 30 30 30 30 30 63 36 20 38 35 38 65 30 ["000000c6 858e0 0000d740: 36 62 37 20 30 34 30 34 65 39 63 64 20 39 65 33 6b7 0404e9cd 9e3 0000d750: 65 63 62 36 36 20 32 33 39 35 62 34 34 32 20 39 ecb66 2395b442 9 0000d760: 63 36 34 38 31 33 39 20 30 35 33 66 62 35 32 31 c648139 053fb521 0000d770: 20 66 38 32 38 61 66 36 30 20 36 62 34 64 33 64 f828af60 6b4d3d 0000d780: 62 61 20 61 31 34 62 35 65 37 37 20 65 66 65 37 ba a14b5e77 efe7 0000d790: 35 39 32 38 20 66 65 31 64 63 31 32 37 20 61 32 5928 fe1dc127 a2 0000d7a0: 66 66 61 38 64 65 20 33 33 34 38 62 33 63 31 20 ffa8de 3348b3c1 0000d7b0: 38 35 36 61 34 32 39 62 20 66 39 37 65 37 65 33 856a429b f97e7e3 0000d7c0: 31 20 63 32 65 35 62 64 36 36 22 2c 22 30 30 30 1 c2e5bd66","000 0000d7d0: 30 30 31 31 38 20 33 39 32 39 36 61 37 38 20 39 00118 39296a78 9 0000d7e0: 61 33 62 63 30 30 34 20 35 63 38 61 35 66 62 34 a3bc004 5c8a5fb4 0000d7f0: 20 32 63 37 64 31 62 64 39 20 39 38 66 35 34 34 2c7d1bd9 98f544 0000d800: 34 39 20 35 37 39 62 34 34 36 38 20 31 37 61 66 49 579b4468 17af 0000d810: 62 64 31 37 20 32 37 33 65 36 36 32 63 20 39 37 bd17 273e662c 97 0000d820: 65 65 37 32 39 39 20 35 65 66 34 32 36 34 30 20 ee7299 5ef42640 0000d830: 63 35 35 30 62 39 30 31 20 33 66 61 64 30 37 36 c550b901 3fad076 0000d840: 31 20 33 35 33 63 37 30 38 36 20 61 32 37 32 63 1 353c7086 a272c 0000d850: 32 34 30 20 38 38 62 65 39 34 37 36 20 39 66 64 240 88be9476 9fd 0000d860: 31 36 36 35 30 22 5d 7d 29 2c 61 28 22 63 75 72 16650"]}),a("cur 0000d870: 76 65 32 35 35 31 39 22 2c 7b 74 79 70 65 3a 22 ve25519",{type:" 0000d880: 6d 6f 6e 74 22 2c 70 72 69 6d 65 3a 22 70 32 35 mont",prime:"p25 0000d890: 35 31 39 22 2c 70 3a 22 37 66 66 66 66 66 66 66 519",p:"7fffffff 0000d8a0: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d8b0: 66 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 fffffffff ffffff 0000d8c0: 66 66 66 66 66 66 66 66 66 66 20 66 66 66 66 66 ffffffffff fffff 0000d8d0: 66 66 66 66 66 66 66 66 66 65 64 22 2c 61 3a 22 fffffffffed",a:" 0000d8e0: 37 36 64 30 36 22 2c 62 3a 22 31 22 2c 6e 3a 22 76d06",b:"1",n:" 0000d8f0: 31 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 1000000000000000 0000d900: 20 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 000000000000000 0000d910: 30 20 31 34 64 65 66 39 64 65 61 32 66 37 39 63 0 14def9dea2f79c 0000d920: 64 36 20 35 38 31 32 36 33 31 61 35 63 66 35 64 d6 5812631a5cf5d 0000d930: 33 65 64 22 2c 68 61 73 68 3a 68 6e 28 29 2e 73 3ed",hash:hn().s 0000d940: 68 61 32 35 36 2c 67 52 65 64 3a 21 31 2c 67 3a ha256,gRed:!1,g: 0000d950: 5b 22 39 22 5d 7d 29 2c 61 28 22 65 64 32 35 35 ["9"]}),a("ed255 0000d960: 31 39 22 2c 7b 74 79 70 65 3a 22 65 64 77 61 72 19",{type:"edwar 0000d970: 64 73 22 2c 70 72 69 6d 65 3a 22 70 32 35 35 31 ds",prime:"p2551 0000d980: 39 22 2c 70 3a 22 37 66 66 66 66 66 66 66 66 66 9",p:"7fffffffff 0000d990: 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 66 ffffff fffffffff 0000d9a0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000d9b0: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000d9c0: 66 66 66 66 66 66 66 65 64 22 2c 61 3a 22 2d 31 fffffffed",a:"-1 0000d9d0: 22 2c 63 3a 22 31 22 2c 64 3a 22 35 32 30 33 36 ",c:"1",d:"52036 0000d9e0: 63 65 65 32 62 36 66 66 65 37 33 20 38 63 63 37 cee2b6ffe73 8cc7 0000d9f0: 34 30 37 39 37 37 37 39 65 38 39 38 20 30 30 37 40797779e898 007 0000da00: 30 30 61 34 64 34 31 34 31 64 38 61 62 20 37 35 00a4d4141d8ab 75 0000da10: 65 62 34 64 63 61 31 33 35 39 37 38 61 33 22 2c eb4dca135978a3", 0000da20: 6e 3a 22 31 30 30 30 30 30 30 30 30 30 30 30 30 n:"1000000000000 0000da30: 30 30 30 20 30 30 30 30 30 30 30 30 30 30 30 30 000 000000000000 0000da40: 30 30 30 30 20 31 34 64 65 66 39 64 65 61 32 66 0000 14def9dea2f 0000da50: 37 39 63 64 36 20 35 38 31 32 36 33 31 61 35 63 79cd6 5812631a5c 0000da60: 66 35 64 33 65 64 22 2c 68 61 73 68 3a 68 6e 28 f5d3ed",hash:hn( 0000da70: 29 2e 73 68 61 32 35 36 2c 67 52 65 64 3a 21 31 ).sha256,gRed:!1 0000da80: 2c 67 3a 5b 22 32 31 36 39 33 36 64 33 63 64 36 ,g:["216936d3cd6 0000da90: 65 35 33 66 65 63 30 61 34 65 32 33 31 66 64 64 e53fec0a4e231fdd 0000daa0: 36 64 63 35 63 36 39 32 63 63 37 36 30 39 35 32 6dc5c692cc760952 0000dab0: 35 61 37 62 32 63 39 35 36 32 64 36 30 38 66 32 5a7b2c9562d608f2 0000dac0: 35 64 35 31 61 22 2c 22 36 36 36 36 36 36 36 36 5d51a","66666666 0000dad0: 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 6666666666666666 0000dae0: 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 6666666666666666 0000daf0: 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 36 6666666666666666 0000db00: 36 36 36 36 36 36 35 38 22 5d 7d 29 3b 74 72 79 66666658"]});try 0000db10: 7b 6e 3d 6e 75 6c 6c 2e 63 72 61 73 68 28 29 7d {n=null.crash()} 0000db20: 63 61 74 63 68 28 65 29 7b 6e 3d 76 6f 69 64 20 catch(e){n=void 0000db30: 30 7d 61 28 22 73 65 63 70 32 35 36 6b 31 22 2c 0}a("secp256k1", 0000db40: 7b 74 79 70 65 3a 22 73 68 6f 72 74 22 2c 70 72 {type:"short",pr 0000db50: 69 6d 65 3a 22 6b 32 35 36 22 2c 70 3a 22 66 66 ime:"k256",p:"ff 0000db60: 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 20 ffffff ffffffff 0000db70: 66 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 ffffffff fffffff 0000db80: 66 20 66 66 66 66 66 66 66 66 20 66 66 66 66 66 f ffffffff fffff 0000db90: 66 66 66 20 66 66 66 66 66 66 66 65 20 66 66 66 fff fffffffe fff 0000dba0: 66 66 63 32 66 22 2c 61 3a 22 30 22 2c 62 3a 22 ffc2f",a:"0",b:" 0000dbb0: 37 22 2c 6e 3a 22 66 66 66 66 66 66 66 66 20 66 7",n:"ffffffff f 0000dbc0: 66 66 66 66 66 66 66 20 66 66 66 66 66 66 66 66 fffffff ffffffff 0000dbd0: 20 66 66 66 66 66 66 66 65 20 62 61 61 65 64 63 fffffffe baaedc 0000dbe0: 65 36 20 61 66 34 38 61 30 33 62 20 62 66 64 32 e6 af48a03b bfd2 0000dbf0: 35 65 38 63 20 64 30 33 36 34 31 34 31 22 2c 68 5e8c d0364141",h 0000dc00: 3a 22 31 22 2c 68 61 73 68 3a 68 6e 28 29 2e 73 :"1",hash:hn().s 0000dc10: 68 61 32 35 36 2c 62 65 74 61 3a 22 37 61 65 39 ha256,beta:"7ae9 0000dc20: 36 61 32 62 36 35 37 63 30 37 31 30 36 65 36 34 6a2b657c07106e64 0000dc30: 34 37 39 65 61 63 33 34 33 34 65 39 39 63 66 30 479eac3434e99cf0 0000dc40: 34 39 37 35 31 32 66 35 38 39 39 35 63 31 33 39 497512f58995c139 0000dc50: 36 63 32 38 37 31 39 35 30 31 65 65 22 2c 6c 61 6c28719501ee",la 0000dc60: 6d 62 64 61 3a 22 35 33 36 33 61 64 34 63 63 30 mbda:"5363ad4cc0 0000dc70: 35 63 33 30 65 30 61 35 32 36 31 63 30 32 38 38 5c30e0a5261c0288 0000dc80: 31 32 36 34 35 61 31 32 32 65 32 32 65 61 32 30 12645a122e22ea20 0000dc90: 38 31 36 36 37 38 64 66 30 32 39 36 37 63 31 62 816678df02967c1b 0000dca0: 32 33 62 64 37 32 22 2c 62 61 73 69 73 3a 5b 7b 23bd72",basis:[{ 0000dcb0: 61 3a 22 33 30 38 36 64 32 32 31 61 37 64 34 36 a:"3086d221a7d46 0000dcc0: 62 63 64 65 38 36 63 39 30 65 34 39 32 38 34 65 bcde86c90e49284e 0000dcd0: 62 31 35 22 2c 62 3a 22 2d 65 34 34 33 37 65 64 b15",b:"-e4437ed 0000dce0: 36 30 31 30 65 38 38 32 38 36 66 35 34 37 66 61 6010e88286f547fa 0000dcf0: 39 30 61 62 66 65 34 63 33 22 7d 2c 7b 61 3a 22 90abfe4c3"},{a:" 0000dd00: 31 31 34 63 61 35 30 66 37 61 38 65 32 66 33 66 114ca50f7a8e2f3f 0000dd10: 36 35 37 63 31 31 30 38 64 39 64 34 34 63 66 64 657c1108d9d44cfd 0000dd20: 38 22 2c 62 3a 22 33 30 38 36 64 32 32 31 61 37 8",b:"3086d221a7 0000dd30: 64 34 36 62 63 64 65 38 36 63 39 30 65 34 39 32 d46bcde86c90e492 0000dd40: 38 34 65 62 31 35 22 7d 5d 2c 67 52 65 64 3a 21 84eb15"}],gRed:! 0000dd50: 31 2c 67 3a 5b 22 37 39 62 65 36 36 37 65 66 39 1,g:["79be667ef9 0000dd60: 64 63 62 62 61 63 35 35 61 30 36 32 39 35 63 65 dcbbac55a06295ce 0000dd70: 38 37 30 62 30 37 30 32 39 62 66 63 64 62 32 64 870b07029bfcdb2d 0000dd80: 63 65 32 38 64 39 35 39 66 32 38 31 35 62 31 36 ce28d959f2815b16 0000dd90: 66 38 31 37 39 38 22 2c 22 34 38 33 61 64 61 37 f81798","483ada7 0000dda0: 37 32 36 61 33 63 34 36 35 35 64 61 34 66 62 66 726a3c4655da4fbf 0000ddb0: 63 30 65 31 31 30 38 61 38 66 64 31 37 62 34 34 c0e1108a8fd17b44 0000ddc0: 38 61 36 38 35 35 34 31 39 39 63 34 37 64 30 38 8a68554199c47d08 0000ddd0: 66 66 62 31 30 64 34 62 38 22 2c 6e 5d 7d 29 7d ffb10d4b8",n]})} 0000dde0: 29 29 3b 66 75 6e 63 74 69 6f 6e 20 4d 6e 28 65 ));function Mn(e 0000ddf0: 29 7b 69 66 28 21 28 74 68 69 73 20 69 6e 73 74 ){if(!(this inst 0000de00: 61 6e 63 65 6f 66 20 4d 6e 29 29 72 65 74 75 72 anceof Mn))retur 0000de10: 6e 20 6e 65 77 20 4d 6e 28 65 29 3b 74 68 69 73 n new Mn(e);this 0000de20: 2e 68 61 73 68 3d 65 2e 68 61 73 68 2c 74 68 69 .hash=e.hash,thi 0000de30: 73 2e 70 72 65 64 52 65 73 69 73 74 3d 21 21 65 s.predResist=!!e 0000de40: 2e 70 72 65 64 52 65 73 69 73 74 2c 74 68 69 73 .predResist,this 0000de50: 2e 6f 75 74 4c 65 6e 3d 74 68 69 73 2e 68 61 73 .outLen=this.has 0000de60: 68 2e 6f 75 74 53 69 7a 65 2c 74 68 69 73 2e 6d h.outSize,this.m 0000de70: 69 6e 45 6e 74 72 6f 70 79 3d 65 2e 6d 69 6e 45 inEntropy=e.minE 0000de80: 6e 74 72 6f 70 79 7c 7c 74 68 69 73 2e 68 61 73 ntropy||this.has 0000de90: 68 2e 68 6d 61 63 53 74 72 65 6e 67 74 68 2c 74 h.hmacStrength,t 0000dea0: 68 69 73 2e 5f 72 65 73 65 65 64 3d 6e 75 6c 6c his._reseed=null 0000deb0: 2c 74 68 69 73 2e 72 65 73 65 65 64 49 6e 74 65 ,this.reseedInte 0000dec0: 72 76 61 6c 3d 6e 75 6c 6c 2c 74 68 69 73 2e 4b rval=null,this.K 0000ded0: 3d 6e 75 6c 6c 2c 74 68 69 73 2e 56 3d 6e 75 6c =null,this.V=nul 0000dee0: 6c 3b 76 61 72 20 74 3d 79 6e 2e 74 6f 41 72 72 l;var t=yn.toArr 0000def0: 61 79 28 65 2e 65 6e 74 72 6f 70 79 2c 65 2e 65 ay(e.entropy,e.e 0000df00: 6e 74 72 6f 70 79 45 6e 63 7c 7c 22 68 65 78 22 ntropyEnc||"hex" 0000df10: 29 2c 6e 3d 79 6e 2e 74 6f 41 72 72 61 79 28 65 ),n=yn.toArray(e 0000df20: 2e 6e 6f 6e 63 65 2c 65 2e 6e 6f 6e 63 65 45 6e .nonce,e.nonceEn 0000df30: 63 7c 7c 22 68 65 78 22 29 2c 72 3d 79 6e 2e 74 c||"hex"),r=yn.t 0000df40: 6f 41 72 72 61 79 28 65 2e 70 65 72 73 2c 65 2e oArray(e.pers,e. 0000df50: 70 65 72 73 45 6e 63 7c 7c 22 68 65 78 22 29 3b persEnc||"hex"); 0000df60: 67 6e 28 74 2e 6c 65 6e 67 74 68 3e 3d 74 68 69 gn(t.length>=thi 0000df70: 73 2e 6d 69 6e 45 6e 74 72 6f 70 79 2f 38 2c 22 s.minEntropy/8," 0000df80: 4e 6f 74 20 65 6e 6f 75 67 68 20 65 6e 74 72 6f Not enough entro 0000df90: 70 79 2e 20 4d 69 6e 69 6d 75 6d 20 69 73 3a 20 py. Minimum is: 0000dfa0: 22 2b 74 68 69 73 2e 6d 69 6e 45 6e 74 72 6f 70 "+this.minEntrop 0000dfb0: 79 2b 22 20 62 69 74 73 22 29 2c 74 68 69 73 2e y+" bits"),this. 0000dfc0: 5f 69 6e 69 74 28 74 2c 6e 2c 72 29 7d 76 61 72 _init(t,n,r)}var 0000dfd0: 20 44 6e 3d 4d 6e 3b 4d 6e 2e 70 72 6f 74 6f 74 Dn=Mn;Mn.protot 0000dfe0: 79 70 65 2e 5f 69 6e 69 74 3d 66 75 6e 63 74 69 ype._init=functi 0000dff0: 6f 6e 28 65 2c 74 2c 6e 29 7b 76 61 72 20 72 3d on(e,t,n){var r= 0000e000: 65 2e 63 6f 6e 63 61 74 28 74 29 2e 63 6f 6e 63 e.concat(t).conc 0000e010: 61 74 28 6e 29 3b 74 68 69 73 2e 4b 3d 6e 65 77 at(n);this.K=new 0000e020: 20 41 72 72 61 79 28 74 68 69 73 2e 6f 75 74 4c Array(this.outL 0000e030: 65 6e 2f 38 29 2c 74 68 69 73 2e 56 3d 6e 65 77 en/8),this.V=new 0000e040: 20 41 72 72 61 79 28 74 68 69 73 2e 6f 75 74 4c Array(this.outL 0000e050: 65 6e 2f 38 29 3b 66 6f 72 28 76 61 72 20 6f 3d en/8);for(var o= 0000e060: 30 3b 6f 3c 74 68 69 73 2e 56 2e 6c 65 6e 67 74 0;o<this.V.lengt 0000e070: 68 3b 6f 2b 2b 29 74 68 69 73 2e 4b 5b 6f 5d 3d h;o++)this.K[o]= 0000e080: 30 2c 74 68 69 73 2e 56 5b 6f 5d 3d 31 3b 74 68 0,this.V[o]=1;th 0000e090: 69 73 2e 5f 75 70 64 61 74 65 28 72 29 2c 74 68 is._update(r),th 0000e0a0: 69 73 2e 5f 72 65 73 65 65 64 3d 31 2c 74 68 69 is._reseed=1,thi 0000e0b0: 73 2e 72 65 73 65 65 64 49 6e 74 65 72 76 61 6c s.reseedInterval 0000e0c0: 3d 32 38 31 34 37 34 39 37 36 37 31 30 36 35 36 =281474976710656 0000e0d0: 7d 2c 4d 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 5f },Mn.prototype._ 0000e0e0: 68 6d 61 63 3d 66 75 6e 63 74 69 6f 6e 28 29 7b hmac=function(){ 0000e0f0: 72 65 74 75 72 6e 20 6e 65 77 28 68 6e 28 29 2e return new(hn(). 0000e100: 68 6d 61 63 29 28 74 68 69 73 2e 68 61 73 68 2c hmac)(this.hash, 0000e110: 74 68 69 73 2e 4b 29 7d 2c 4d 6e 2e 70 72 6f 74 this.K)},Mn.prot 0000e120: 6f 74 79 70 65 2e 5f 75 70 64 61 74 65 3d 66 75 otype._update=fu 0000e130: 6e 63 74 69 6f 6e 28 65 29 7b 76 61 72 20 74 3d nction(e){var t= 0000e140: 74 68 69 73 2e 5f 68 6d 61 63 28 29 2e 75 70 64 this._hmac().upd 0000e150: 61 74 65 28 74 68 69 73 2e 56 29 2e 75 70 64 61 ate(this.V).upda 0000e160: 74 65 28 5b 30 5d 29 3b 65 26 26 28 74 3d 74 2e te([0]);e&&(t=t. 0000e170: 75 70 64 61 74 65 28 65 29 29 2c 74 68 69 73 2e update(e)),this. 0000e180: 4b 3d 74 2e 64 69 67 65 73 74 28 29 2c 74 68 69 K=t.digest(),thi 0000e190: 73 2e 56 3d 74 68 69 73 2e 5f 68 6d 61 63 28 29 s.V=this._hmac() 0000e1a0: 2e 75 70 64 61 74 65 28 74 68 69 73 2e 56 29 2e .update(this.V). 0000e1b0: 64 69 67 65 73 74 28 29 2c 65 26 26 28 74 68 69 digest(),e&&(thi 0000e1c0: 73 2e 4b 3d 74 68 69 73 2e 5f 68 6d 61 63 28 29 s.K=this._hmac() 0000e1d0: 2e 75 70 64 61 74 65 28 74 68 69 73 2e 56 29 2e .update(this.V). 0000e1e0: 75 70 64 61 74 65 28 5b 31 5d 29 2e 75 70 64 61 update([1]).upda 0000e1f0: 74 65 28 65 29 2e 64 69 67 65 73 74 28 29 2c 74 te(e).digest(),t 0000e200: 68 69 73 2e 56 3d 74 68 69 73 2e 5f 68 6d 61 63 his.V=this._hmac 0000e210: 28 29 2e 75 70 64 61 74 65 28 74 68 69 73 2e 56 ().update(this.V 0000e220: 29 2e 64 69 67 65 73 74 28 29 29 7d 2c 4d 6e 2e ).digest())},Mn. 0000e230: 70 72 6f 74 6f 74 79 70 65 2e 72 65 73 65 65 64 prototype.reseed 0000e240: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c =function(e,t,n, 0000e250: 72 29 7b 22 73 74 72 69 6e 67 22 21 3d 74 79 70 r){"string"!=typ 0000e260: 65 6f 66 20 74 26 26 28 72 3d 6e 2c 6e 3d 74 2c eof t&&(r=n,n=t, 0000e270: 74 3d 6e 75 6c 6c 29 2c 65 3d 79 6e 2e 74 6f 41 t=null),e=yn.toA 0000e280: 72 72 61 79 28 65 2c 74 29 2c 6e 3d 79 6e 2e 74 rray(e,t),n=yn.t 0000e290: 6f 41 72 72 61 79 28 6e 2c 72 29 2c 67 6e 28 65 oArray(n,r),gn(e 0000e2a0: 2e 6c 65 6e 67 74 68 3e 3d 74 68 69 73 2e 6d 69 .length>=this.mi 0000e2b0: 6e 45 6e 74 72 6f 70 79 2f 38 2c 22 4e 6f 74 20 nEntropy/8,"Not 0000e2c0: 65 6e 6f 75 67 68 20 65 6e 74 72 6f 70 79 2e 20 enough entropy. 0000e2d0: 4d 69 6e 69 6d 75 6d 20 69 73 3a 20 22 2b 74 68 Minimum is: "+th 0000e2e0: 69 73 2e 6d 69 6e 45 6e 74 72 6f 70 79 2b 22 20 is.minEntropy+" 0000e2f0: 62 69 74 73 22 29 2c 74 68 69 73 2e 5f 75 70 64 bits"),this._upd 0000e300: 61 74 65 28 65 2e 63 6f 6e 63 61 74 28 6e 7c 7c ate(e.concat(n|| 0000e310: 5b 5d 29 29 2c 74 68 69 73 2e 5f 72 65 73 65 65 [])),this._resee 0000e320: 64 3d 31 7d 2c 4d 6e 2e 70 72 6f 74 6f 74 79 70 d=1},Mn.prototyp 0000e330: 65 2e 67 65 6e 65 72 61 74 65 3d 66 75 6e 63 74 e.generate=funct 0000e340: 69 6f 6e 28 65 2c 74 2c 6e 2c 72 29 7b 69 66 28 ion(e,t,n,r){if( 0000e350: 74 68 69 73 2e 5f 72 65 73 65 65 64 3e 74 68 69 this._reseed>thi 0000e360: 73 2e 72 65 73 65 65 64 49 6e 74 65 72 76 61 6c s.reseedInterval 0000e370: 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 )throw new Error 0000e380: 28 22 52 65 73 65 65 64 20 69 73 20 72 65 71 75 ("Reseed is requ 0000e390: 69 72 65 64 22 29 3b 22 73 74 72 69 6e 67 22 21 ired");"string"! 0000e3a0: 3d 74 79 70 65 6f 66 20 74 26 26 28 72 3d 6e 2c =typeof t&&(r=n, 0000e3b0: 6e 3d 74 2c 74 3d 6e 75 6c 6c 29 2c 6e 26 26 28 n=t,t=null),n&&( 0000e3c0: 6e 3d 79 6e 2e 74 6f 41 72 72 61 79 28 6e 2c 72 n=yn.toArray(n,r 0000e3d0: 7c 7c 22 68 65 78 22 29 2c 74 68 69 73 2e 5f 75 ||"hex"),this._u 0000e3e0: 70 64 61 74 65 28 6e 29 29 3b 66 6f 72 28 76 61 pdate(n));for(va 0000e3f0: 72 20 6f 3d 5b 5d 3b 6f 2e 6c 65 6e 67 74 68 3c r o=[];o.length< 0000e400: 65 3b 29 74 68 69 73 2e 56 3d 74 68 69 73 2e 5f e;)this.V=this._ 0000e410: 68 6d 61 63 28 29 2e 75 70 64 61 74 65 28 74 68 hmac().update(th 0000e420: 69 73 2e 56 29 2e 64 69 67 65 73 74 28 29 2c 6f is.V).digest(),o 0000e430: 3d 6f 2e 63 6f 6e 63 61 74 28 74 68 69 73 2e 56 =o.concat(this.V 0000e440: 29 3b 76 61 72 20 69 3d 6f 2e 73 6c 69 63 65 28 );var i=o.slice( 0000e450: 30 2c 65 29 3b 72 65 74 75 72 6e 20 74 68 69 73 0,e);return this 0000e460: 2e 5f 75 70 64 61 74 65 28 6e 29 2c 74 68 69 73 ._update(n),this 0000e470: 2e 5f 72 65 73 65 65 64 2b 2b 2c 79 6e 2e 65 6e ._reseed++,yn.en 0000e480: 63 6f 64 65 28 69 2c 74 29 7d 3b 76 61 72 20 4c code(i,t)};var L 0000e490: 6e 3d 76 6e 2e 61 73 73 65 72 74 3b 66 75 6e 63 n=vn.assert;func 0000e4a0: 74 69 6f 6e 20 46 6e 28 65 2c 74 29 7b 74 68 69 tion Fn(e,t){thi 0000e4b0: 73 2e 65 63 3d 65 2c 74 68 69 73 2e 70 72 69 76 s.ec=e,this.priv 0000e4c0: 3d 6e 75 6c 6c 2c 74 68 69 73 2e 70 75 62 3d 6e =null,this.pub=n 0000e4d0: 75 6c 6c 2c 74 2e 70 72 69 76 26 26 74 68 69 73 ull,t.priv&&this 0000e4e0: 2e 5f 69 6d 70 6f 72 74 50 72 69 76 61 74 65 28 ._importPrivate( 0000e4f0: 74 2e 70 72 69 76 2c 74 2e 70 72 69 76 45 6e 63 t.priv,t.privEnc 0000e500: 29 2c 74 2e 70 75 62 26 26 74 68 69 73 2e 5f 69 ),t.pub&&this._i 0000e510: 6d 70 6f 72 74 50 75 62 6c 69 63 28 74 2e 70 75 mportPublic(t.pu 0000e520: 62 2c 74 2e 70 75 62 45 6e 63 29 7d 76 61 72 20 b,t.pubEnc)}var 0000e530: 55 6e 3d 46 6e 3b 46 6e 2e 66 72 6f 6d 50 75 62 Un=Fn;Fn.fromPub 0000e540: 6c 69 63 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 lic=function(e,t 0000e550: 2c 6e 29 7b 72 65 74 75 72 6e 20 74 20 69 6e 73 ,n){return t ins 0000e560: 74 61 6e 63 65 6f 66 20 46 6e 3f 74 3a 6e 65 77 tanceof Fn?t:new 0000e570: 20 46 6e 28 65 2c 7b 70 75 62 3a 74 2c 70 75 62 Fn(e,{pub:t,pub 0000e580: 45 6e 63 3a 6e 7d 29 7d 2c 46 6e 2e 66 72 6f 6d Enc:n})},Fn.from 0000e590: 50 72 69 76 61 74 65 3d 66 75 6e 63 74 69 6f 6e Private=function 0000e5a0: 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e 20 74 (e,t,n){return t 0000e5b0: 20 69 6e 73 74 61 6e 63 65 6f 66 20 46 6e 3f 74 instanceof Fn?t 0000e5c0: 3a 6e 65 77 20 46 6e 28 65 2c 7b 70 72 69 76 3a :new Fn(e,{priv: 0000e5d0: 74 2c 70 72 69 76 45 6e 63 3a 6e 7d 29 7d 2c 46 t,privEnc:n})},F 0000e5e0: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 76 61 6c 69 n.prototype.vali 0000e5f0: 64 61 74 65 3d 66 75 6e 63 74 69 6f 6e 28 29 7b date=function(){ 0000e600: 76 61 72 20 65 3d 74 68 69 73 2e 67 65 74 50 75 var e=this.getPu 0000e610: 62 6c 69 63 28 29 3b 72 65 74 75 72 6e 20 65 2e blic();return e. 0000e620: 69 73 49 6e 66 69 6e 69 74 79 28 29 3f 7b 72 65 isInfinity()?{re 0000e630: 73 75 6c 74 3a 21 31 2c 72 65 61 73 6f 6e 3a 22 sult:!1,reason:" 0000e640: 49 6e 76 61 6c 69 64 20 70 75 62 6c 69 63 20 6b Invalid public k 0000e650: 65 79 22 7d 3a 65 2e 76 61 6c 69 64 61 74 65 28 ey"}:e.validate( 0000e660: 29 3f 65 2e 6d 75 6c 28 74 68 69 73 2e 65 63 2e )?e.mul(this.ec. 0000e670: 63 75 72 76 65 2e 6e 29 2e 69 73 49 6e 66 69 6e curve.n).isInfin 0000e680: 69 74 79 28 29 3f 7b 72 65 73 75 6c 74 3a 21 30 ity()?{result:!0 0000e690: 2c 72 65 61 73 6f 6e 3a 6e 75 6c 6c 7d 3a 7b 72 ,reason:null}:{r 0000e6a0: 65 73 75 6c 74 3a 21 31 2c 72 65 61 73 6f 6e 3a esult:!1,reason: 0000e6b0: 22 50 75 62 6c 69 63 20 6b 65 79 20 2a 20 4e 20 "Public key * N 0000e6c0: 21 3d 20 4f 22 7d 3a 7b 72 65 73 75 6c 74 3a 21 != O"}:{result:! 0000e6d0: 31 2c 72 65 61 73 6f 6e 3a 22 50 75 62 6c 69 63 1,reason:"Public 0000e6e0: 20 6b 65 79 20 69 73 20 6e 6f 74 20 61 20 70 6f key is not a po 0000e6f0: 69 6e 74 22 7d 7d 2c 46 6e 2e 70 72 6f 74 6f 74 int"}},Fn.protot 0000e700: 79 70 65 2e 67 65 74 50 75 62 6c 69 63 3d 66 75 ype.getPublic=fu 0000e710: 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 74 75 nction(e,t){retu 0000e720: 72 6e 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 rn"string"==type 0000e730: 6f 66 20 65 26 26 28 74 3d 65 2c 65 3d 6e 75 6c of e&&(t=e,e=nul 0000e740: 6c 29 2c 74 68 69 73 2e 70 75 62 7c 7c 28 74 68 l),this.pub||(th 0000e750: 69 73 2e 70 75 62 3d 74 68 69 73 2e 65 63 2e 67 is.pub=this.ec.g 0000e760: 2e 6d 75 6c 28 74 68 69 73 2e 70 72 69 76 29 29 .mul(this.priv)) 0000e770: 2c 74 3f 74 68 69 73 2e 70 75 62 2e 65 6e 63 6f ,t?this.pub.enco 0000e780: 64 65 28 74 2c 65 29 3a 74 68 69 73 2e 70 75 62 de(t,e):this.pub 0000e790: 7d 2c 46 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 67 },Fn.prototype.g 0000e7a0: 65 74 50 72 69 76 61 74 65 3d 66 75 6e 63 74 69 etPrivate=functi 0000e7b0: 6f 6e 28 65 29 7b 72 65 74 75 72 6e 22 68 65 78 on(e){return"hex 0000e7c0: 22 3d 3d 3d 65 3f 74 68 69 73 2e 70 72 69 76 2e "===e?this.priv. 0000e7d0: 74 6f 53 74 72 69 6e 67 28 31 36 2c 32 29 3a 74 toString(16,2):t 0000e7e0: 68 69 73 2e 70 72 69 76 7d 2c 46 6e 2e 70 72 6f his.priv},Fn.pro 0000e7f0: 74 6f 74 79 70 65 2e 5f 69 6d 70 6f 72 74 50 72 totype._importPr 0000e800: 69 76 61 74 65 3d 66 75 6e 63 74 69 6f 6e 28 65 ivate=function(e 0000e810: 2c 74 29 7b 74 68 69 73 2e 70 72 69 76 3d 6e 65 ,t){this.priv=ne 0000e820: 77 28 7a 28 29 29 28 65 2c 74 7c 7c 31 36 29 2c w(z())(e,t||16), 0000e830: 74 68 69 73 2e 70 72 69 76 3d 74 68 69 73 2e 70 this.priv=this.p 0000e840: 72 69 76 2e 75 6d 6f 64 28 74 68 69 73 2e 65 63 riv.umod(this.ec 0000e850: 2e 63 75 72 76 65 2e 6e 29 7d 2c 46 6e 2e 70 72 .curve.n)},Fn.pr 0000e860: 6f 74 6f 74 79 70 65 2e 5f 69 6d 70 6f 72 74 50 ototype._importP 0000e870: 75 62 6c 69 63 3d 66 75 6e 63 74 69 6f 6e 28 65 ublic=function(e 0000e880: 2c 74 29 7b 69 66 28 65 2e 78 7c 7c 65 2e 79 29 ,t){if(e.x||e.y) 0000e890: 72 65 74 75 72 6e 22 6d 6f 6e 74 22 3d 3d 3d 74 return"mont"===t 0000e8a0: 68 69 73 2e 65 63 2e 63 75 72 76 65 2e 74 79 70 his.ec.curve.typ 0000e8b0: 65 3f 4c 6e 28 65 2e 78 2c 22 4e 65 65 64 20 78 e?Ln(e.x,"Need x 0000e8c0: 20 63 6f 6f 72 64 69 6e 61 74 65 22 29 3a 22 73 coordinate"):"s 0000e8d0: 68 6f 72 74 22 21 3d 3d 74 68 69 73 2e 65 63 2e hort"!==this.ec. 0000e8e0: 63 75 72 76 65 2e 74 79 70 65 26 26 22 65 64 77 curve.type&&"edw 0000e8f0: 61 72 64 73 22 21 3d 3d 74 68 69 73 2e 65 63 2e ards"!==this.ec. 0000e900: 63 75 72 76 65 2e 74 79 70 65 7c 7c 4c 6e 28 65 curve.type||Ln(e 0000e910: 2e 78 26 26 65 2e 79 2c 22 4e 65 65 64 20 62 6f .x&&e.y,"Need bo 0000e920: 74 68 20 78 20 61 6e 64 20 79 20 63 6f 6f 72 64 th x and y coord 0000e930: 69 6e 61 74 65 22 29 2c 76 6f 69 64 28 74 68 69 inate"),void(thi 0000e940: 73 2e 70 75 62 3d 74 68 69 73 2e 65 63 2e 63 75 s.pub=this.ec.cu 0000e950: 72 76 65 2e 70 6f 69 6e 74 28 65 2e 78 2c 65 2e rve.point(e.x,e. 0000e960: 79 29 29 3b 74 68 69 73 2e 70 75 62 3d 74 68 69 y));this.pub=thi 0000e970: 73 2e 65 63 2e 63 75 72 76 65 2e 64 65 63 6f 64 s.ec.curve.decod 0000e980: 65 50 6f 69 6e 74 28 65 2c 74 29 7d 2c 46 6e 2e ePoint(e,t)},Fn. 0000e990: 70 72 6f 74 6f 74 79 70 65 2e 64 65 72 69 76 65 prototype.derive 0000e9a0: 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 =function(e){ret 0000e9b0: 75 72 6e 20 65 2e 76 61 6c 69 64 61 74 65 28 29 urn e.validate() 0000e9c0: 7c 7c 4c 6e 28 65 2e 76 61 6c 69 64 61 74 65 28 ||Ln(e.validate( 0000e9d0: 29 2c 22 70 75 62 6c 69 63 20 70 6f 69 6e 74 20 ),"public point 0000e9e0: 6e 6f 74 20 76 61 6c 69 64 61 74 65 64 22 29 2c not validated"), 0000e9f0: 65 2e 6d 75 6c 28 74 68 69 73 2e 70 72 69 76 29 e.mul(this.priv) 0000ea00: 2e 67 65 74 58 28 29 7d 2c 46 6e 2e 70 72 6f 74 .getX()},Fn.prot 0000ea10: 6f 74 79 70 65 2e 73 69 67 6e 3d 66 75 6e 63 74 otype.sign=funct 0000ea20: 69 6f 6e 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 ion(e,t,n){retur 0000ea30: 6e 20 74 68 69 73 2e 65 63 2e 73 69 67 6e 28 65 n this.ec.sign(e 0000ea40: 2c 74 68 69 73 2c 74 2c 6e 29 7d 2c 46 6e 2e 70 ,this,t,n)},Fn.p 0000ea50: 72 6f 74 6f 74 79 70 65 2e 76 65 72 69 66 79 3d rototype.verify= 0000ea60: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 function(e,t){re 0000ea70: 74 75 72 6e 20 74 68 69 73 2e 65 63 2e 76 65 72 turn this.ec.ver 0000ea80: 69 66 79 28 65 2c 74 2c 74 68 69 73 29 7d 2c 46 ify(e,t,this)},F 0000ea90: 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 69 6e 73 70 n.prototype.insp 0000eaa0: 65 63 74 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 ect=function(){r 0000eab0: 65 74 75 72 6e 22 3c 4b 65 79 20 70 72 69 76 3a eturn"<Key priv: 0000eac0: 20 22 2b 28 74 68 69 73 2e 70 72 69 76 26 26 74 "+(this.priv&&t 0000ead0: 68 69 73 2e 70 72 69 76 2e 74 6f 53 74 72 69 6e his.priv.toStrin 0000eae0: 67 28 31 36 2c 32 29 29 2b 22 20 70 75 62 3a 20 g(16,2))+" pub: 0000eaf0: 22 2b 28 74 68 69 73 2e 70 75 62 26 26 74 68 69 "+(this.pub&&thi 0000eb00: 73 2e 70 75 62 2e 69 6e 73 70 65 63 74 28 29 29 s.pub.inspect()) 0000eb10: 2b 22 20 3e 22 7d 3b 76 61 72 20 42 6e 3d 76 6e +" >"};var Bn=vn 0000eb20: 2e 61 73 73 65 72 74 3b 66 75 6e 63 74 69 6f 6e .assert;function 0000eb30: 20 6a 6e 28 65 2c 74 29 7b 69 66 28 65 20 69 6e jn(e,t){if(e in 0000eb40: 73 74 61 6e 63 65 6f 66 20 6a 6e 29 72 65 74 75 stanceof jn)retu 0000eb50: 72 6e 20 65 3b 74 68 69 73 2e 5f 69 6d 70 6f 72 rn e;this._impor 0000eb60: 74 44 45 52 28 65 2c 74 29 7c 7c 28 42 6e 28 65 tDER(e,t)||(Bn(e 0000eb70: 2e 72 26 26 65 2e 73 2c 22 53 69 67 6e 61 74 75 .r&&e.s,"Signatu 0000eb80: 72 65 20 77 69 74 68 6f 75 74 20 72 20 6f 72 20 re without r or 0000eb90: 73 22 29 2c 74 68 69 73 2e 72 3d 6e 65 77 28 7a s"),this.r=new(z 0000eba0: 28 29 29 28 65 2e 72 2c 31 36 29 2c 74 68 69 73 ())(e.r,16),this 0000ebb0: 2e 73 3d 6e 65 77 28 7a 28 29 29 28 65 2e 73 2c .s=new(z())(e.s, 0000ebc0: 31 36 29 2c 76 6f 69 64 20 30 3d 3d 3d 65 2e 72 16),void 0===e.r 0000ebd0: 65 63 6f 76 65 72 79 50 61 72 61 6d 3f 74 68 69 ecoveryParam?thi 0000ebe0: 73 2e 72 65 63 6f 76 65 72 79 50 61 72 61 6d 3d s.recoveryParam= 0000ebf0: 6e 75 6c 6c 3a 74 68 69 73 2e 72 65 63 6f 76 65 null:this.recove 0000ec00: 72 79 50 61 72 61 6d 3d 65 2e 72 65 63 6f 76 65 ryParam=e.recove 0000ec10: 72 79 50 61 72 61 6d 29 7d 76 61 72 20 7a 6e 3d ryParam)}var zn= 0000ec20: 6a 6e 3b 66 75 6e 63 74 69 6f 6e 20 47 6e 28 29 jn;function Gn() 0000ec30: 7b 74 68 69 73 2e 70 6c 61 63 65 3d 30 7d 66 75 {this.place=0}fu 0000ec40: 6e 63 74 69 6f 6e 20 48 6e 28 65 2c 74 29 7b 76 nction Hn(e,t){v 0000ec50: 61 72 20 6e 3d 65 5b 74 2e 70 6c 61 63 65 2b 2b ar n=e[t.place++ 0000ec60: 5d 3b 69 66 28 21 28 31 32 38 26 6e 29 29 72 65 ];if(!(128&n))re 0000ec70: 74 75 72 6e 20 6e 3b 76 61 72 20 72 3d 31 35 26 turn n;var r=15& 0000ec80: 6e 3b 69 66 28 30 3d 3d 3d 72 7c 7c 72 3e 34 29 n;if(0===r||r>4) 0000ec90: 72 65 74 75 72 6e 21 31 3b 66 6f 72 28 76 61 72 return!1;for(var 0000eca0: 20 6f 3d 30 2c 69 3d 30 2c 61 3d 74 2e 70 6c 61 o=0,i=0,a=t.pla 0000ecb0: 63 65 3b 69 3c 72 3b 69 2b 2b 2c 61 2b 2b 29 6f ce;i<r;i++,a++)o 0000ecc0: 3c 3c 3d 38 2c 6f 7c 3d 65 5b 61 5d 2c 6f 3e 3e <<=8,o|=e[a],o>> 0000ecd0: 3e 3d 30 3b 72 65 74 75 72 6e 21 28 6f 3c 3d 31 >=0;return!(o<=1 0000ece0: 32 37 29 26 26 28 74 2e 70 6c 61 63 65 3d 61 2c 27)&&(t.place=a, 0000ecf0: 6f 29 7d 66 75 6e 63 74 69 6f 6e 20 56 6e 28 65 o)}function Vn(e 0000ed00: 29 7b 66 6f 72 28 76 61 72 20 74 3d 30 2c 6e 3d ){for(var t=0,n= 0000ed10: 65 2e 6c 65 6e 67 74 68 2d 31 3b 21 65 5b 74 5d e.length-1;!e[t] 0000ed20: 26 26 21 28 31 32 38 26 65 5b 74 2b 31 5d 29 26 &&!(128&e[t+1])& 0000ed30: 26 74 3c 6e 3b 29 74 2b 2b 3b 72 65 74 75 72 6e &t<n;)t++;return 0000ed40: 20 30 3d 3d 3d 74 3f 65 3a 65 2e 73 6c 69 63 65 0===t?e:e.slice 0000ed50: 28 74 29 7d 66 75 6e 63 74 69 6f 6e 20 71 6e 28 (t)}function qn( 0000ed60: 65 2c 74 29 7b 69 66 28 74 3c 31 32 38 29 65 2e e,t){if(t<128)e. 0000ed70: 70 75 73 68 28 74 29 3b 65 6c 73 65 7b 76 61 72 push(t);else{var 0000ed80: 20 6e 3d 31 2b 28 4d 61 74 68 2e 6c 6f 67 28 74 n=1+(Math.log(t 0000ed90: 29 2f 4d 61 74 68 2e 4c 4e 32 3e 3e 3e 33 29 3b )/Math.LN2>>>3); 0000eda0: 66 6f 72 28 65 2e 70 75 73 68 28 31 32 38 7c 6e for(e.push(128|n 0000edb0: 29 3b 2d 2d 6e 3b 29 65 2e 70 75 73 68 28 74 3e );--n;)e.push(t> 0000edc0: 3e 3e 28 6e 3c 3c 33 29 26 32 35 35 29 3b 65 2e >>(n<<3)&255);e. 0000edd0: 70 75 73 68 28 74 29 7d 7d 6a 6e 2e 70 72 6f 74 push(t)}}jn.prot 0000ede0: 6f 74 79 70 65 2e 5f 69 6d 70 6f 72 74 44 45 52 otype._importDER 0000edf0: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 65 =function(e,t){e 0000ee00: 3d 76 6e 2e 74 6f 41 72 72 61 79 28 65 2c 74 29 =vn.toArray(e,t) 0000ee10: 3b 76 61 72 20 6e 3d 6e 65 77 20 47 6e 3b 69 66 ;var n=new Gn;if 0000ee20: 28 34 38 21 3d 3d 65 5b 6e 2e 70 6c 61 63 65 2b (48!==e[n.place+ 0000ee30: 2b 5d 29 72 65 74 75 72 6e 21 31 3b 76 61 72 20 +])return!1;var 0000ee40: 72 3d 48 6e 28 65 2c 6e 29 3b 69 66 28 21 31 3d r=Hn(e,n);if(!1= 0000ee50: 3d 3d 72 29 72 65 74 75 72 6e 21 31 3b 69 66 28 ==r)return!1;if( 0000ee60: 72 2b 6e 2e 70 6c 61 63 65 21 3d 3d 65 2e 6c 65 r+n.place!==e.le 0000ee70: 6e 67 74 68 29 72 65 74 75 72 6e 21 31 3b 69 66 ngth)return!1;if 0000ee80: 28 32 21 3d 3d 65 5b 6e 2e 70 6c 61 63 65 2b 2b (2!==e[n.place++ 0000ee90: 5d 29 72 65 74 75 72 6e 21 31 3b 76 61 72 20 6f ])return!1;var o 0000eea0: 3d 48 6e 28 65 2c 6e 29 3b 69 66 28 21 31 3d 3d =Hn(e,n);if(!1== 0000eeb0: 3d 6f 29 72 65 74 75 72 6e 21 31 3b 76 61 72 20 =o)return!1;var 0000eec0: 69 3d 65 2e 73 6c 69 63 65 28 6e 2e 70 6c 61 63 i=e.slice(n.plac 0000eed0: 65 2c 6f 2b 6e 2e 70 6c 61 63 65 29 3b 69 66 28 e,o+n.place);if( 0000eee0: 6e 2e 70 6c 61 63 65 2b 3d 6f 2c 32 21 3d 3d 65 n.place+=o,2!==e 0000eef0: 5b 6e 2e 70 6c 61 63 65 2b 2b 5d 29 72 65 74 75 [n.place++])retu 0000ef00: 72 6e 21 31 3b 76 61 72 20 61 3d 48 6e 28 65 2c rn!1;var a=Hn(e, 0000ef10: 6e 29 3b 69 66 28 21 31 3d 3d 3d 61 29 72 65 74 n);if(!1===a)ret 0000ef20: 75 72 6e 21 31 3b 69 66 28 65 2e 6c 65 6e 67 74 urn!1;if(e.lengt 0000ef30: 68 21 3d 3d 61 2b 6e 2e 70 6c 61 63 65 29 72 65 h!==a+n.place)re 0000ef40: 74 75 72 6e 21 31 3b 76 61 72 20 73 3d 65 2e 73 turn!1;var s=e.s 0000ef50: 6c 69 63 65 28 6e 2e 70 6c 61 63 65 2c 61 2b 6e lice(n.place,a+n 0000ef60: 2e 70 6c 61 63 65 29 3b 69 66 28 30 3d 3d 3d 69 .place);if(0===i 0000ef70: 5b 30 5d 29 7b 69 66 28 21 28 31 32 38 26 69 5b [0]){if(!(128&i[ 0000ef80: 31 5d 29 29 72 65 74 75 72 6e 21 31 3b 69 3d 69 1]))return!1;i=i 0000ef90: 2e 73 6c 69 63 65 28 31 29 7d 69 66 28 30 3d 3d .slice(1)}if(0== 0000efa0: 3d 73 5b 30 5d 29 7b 69 66 28 21 28 31 32 38 26 =s[0]){if(!(128& 0000efb0: 73 5b 31 5d 29 29 72 65 74 75 72 6e 21 31 3b 73 s[1]))return!1;s 0000efc0: 3d 73 2e 73 6c 69 63 65 28 31 29 7d 72 65 74 75 =s.slice(1)}retu 0000efd0: 72 6e 20 74 68 69 73 2e 72 3d 6e 65 77 28 7a 28 rn this.r=new(z( 0000efe0: 29 29 28 69 29 2c 74 68 69 73 2e 73 3d 6e 65 77 ))(i),this.s=new 0000eff0: 28 7a 28 29 29 28 73 29 2c 74 68 69 73 2e 72 65 (z())(s),this.re 0000f000: 63 6f 76 65 72 79 50 61 72 61 6d 3d 6e 75 6c 6c coveryParam=null 0000f010: 2c 21 30 7d 2c 6a 6e 2e 70 72 6f 74 6f 74 79 70 ,!0},jn.prototyp 0000f020: 65 2e 74 6f 44 45 52 3d 66 75 6e 63 74 69 6f 6e e.toDER=function 0000f030: 28 65 29 7b 76 61 72 20 74 3d 74 68 69 73 2e 72 (e){var t=this.r 0000f040: 2e 74 6f 41 72 72 61 79 28 29 2c 6e 3d 74 68 69 .toArray(),n=thi 0000f050: 73 2e 73 2e 74 6f 41 72 72 61 79 28 29 3b 66 6f s.s.toArray();fo 0000f060: 72 28 31 32 38 26 74 5b 30 5d 26 26 28 74 3d 5b r(128&t[0]&&(t=[ 0000f070: 30 5d 2e 63 6f 6e 63 61 74 28 74 29 29 2c 31 32 0].concat(t)),12 0000f080: 38 26 6e 5b 30 5d 26 26 28 6e 3d 5b 30 5d 2e 63 8&n[0]&&(n=[0].c 0000f090: 6f 6e 63 61 74 28 6e 29 29 2c 74 3d 56 6e 28 74 oncat(n)),t=Vn(t 0000f0a0: 29 2c 6e 3d 56 6e 28 6e 29 3b 21 28 6e 5b 30 5d ),n=Vn(n);!(n[0] 0000f0b0: 7c 7c 31 32 38 26 6e 5b 31 5d 29 3b 29 6e 3d 6e ||128&n[1]);)n=n 0000f0c0: 2e 73 6c 69 63 65 28 31 29 3b 76 61 72 20 72 3d .slice(1);var r= 0000f0d0: 5b 32 5d 3b 71 6e 28 72 2c 74 2e 6c 65 6e 67 74 [2];qn(r,t.lengt 0000f0e0: 68 29 2c 28 72 3d 72 2e 63 6f 6e 63 61 74 28 74 h),(r=r.concat(t 0000f0f0: 29 29 2e 70 75 73 68 28 32 29 2c 71 6e 28 72 2c )).push(2),qn(r, 0000f100: 6e 2e 6c 65 6e 67 74 68 29 3b 76 61 72 20 6f 3d n.length);var o= 0000f110: 72 2e 63 6f 6e 63 61 74 28 6e 29 2c 69 3d 5b 34 r.concat(n),i=[4 0000f120: 38 5d 3b 72 65 74 75 72 6e 20 71 6e 28 69 2c 6f 8];return qn(i,o 0000f130: 2e 6c 65 6e 67 74 68 29 2c 69 3d 69 2e 63 6f 6e .length),i=i.con 0000f140: 63 61 74 28 6f 29 2c 76 6e 2e 65 6e 63 6f 64 65 cat(o),vn.encode 0000f150: 28 69 2c 65 29 7d 3b 76 61 72 20 57 6e 3d 66 75 (i,e)};var Wn=fu 0000f160: 6e 63 74 69 6f 6e 28 29 7b 74 68 72 6f 77 20 6e nction(){throw n 0000f170: 65 77 20 45 72 72 6f 72 28 22 75 6e 73 75 70 70 ew Error("unsupp 0000f180: 6f 72 74 65 64 22 29 7d 2c 4b 6e 3d 76 6e 2e 61 orted")},Kn=vn.a 0000f190: 73 73 65 72 74 3b 66 75 6e 63 74 69 6f 6e 20 59 ssert;function Y 0000f1a0: 6e 28 65 29 7b 69 66 28 21 28 74 68 69 73 20 69 n(e){if(!(this i 0000f1b0: 6e 73 74 61 6e 63 65 6f 66 20 59 6e 29 29 72 65 nstanceof Yn))re 0000f1c0: 74 75 72 6e 20 6e 65 77 20 59 6e 28 65 29 3b 22 turn new Yn(e);" 0000f1d0: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 0000f1e0: 65 26 26 28 4b 6e 28 4f 62 6a 65 63 74 2e 70 72 e&&(Kn(Object.pr 0000f1f0: 6f 74 6f 74 79 70 65 2e 68 61 73 4f 77 6e 50 72 ototype.hasOwnPr 0000f200: 6f 70 65 72 74 79 2e 63 61 6c 6c 28 50 6e 2c 65 operty.call(Pn,e 0000f210: 29 2c 22 55 6e 6b 6e 6f 77 6e 20 63 75 72 76 65 ),"Unknown curve 0000f220: 20 22 2b 65 29 2c 65 3d 50 6e 5b 65 5d 29 2c 65 "+e),e=Pn[e]),e 0000f230: 20 69 6e 73 74 61 6e 63 65 6f 66 20 50 6e 2e 50 instanceof Pn.P 0000f240: 72 65 73 65 74 43 75 72 76 65 26 26 28 65 3d 7b resetCurve&&(e={ 0000f250: 63 75 72 76 65 3a 65 7d 29 2c 74 68 69 73 2e 63 curve:e}),this.c 0000f260: 75 72 76 65 3d 65 2e 63 75 72 76 65 2e 63 75 72 urve=e.curve.cur 0000f270: 76 65 2c 74 68 69 73 2e 6e 3d 74 68 69 73 2e 63 ve,this.n=this.c 0000f280: 75 72 76 65 2e 6e 2c 74 68 69 73 2e 6e 68 3d 74 urve.n,this.nh=t 0000f290: 68 69 73 2e 6e 2e 75 73 68 72 6e 28 31 29 2c 74 his.n.ushrn(1),t 0000f2a0: 68 69 73 2e 67 3d 74 68 69 73 2e 63 75 72 76 65 his.g=this.curve 0000f2b0: 2e 67 2c 74 68 69 73 2e 67 3d 65 2e 63 75 72 76 .g,this.g=e.curv 0000f2c0: 65 2e 67 2c 74 68 69 73 2e 67 2e 70 72 65 63 6f e.g,this.g.preco 0000f2d0: 6d 70 75 74 65 28 65 2e 63 75 72 76 65 2e 6e 2e mpute(e.curve.n. 0000f2e0: 62 69 74 4c 65 6e 67 74 68 28 29 2b 31 29 2c 74 bitLength()+1),t 0000f2f0: 68 69 73 2e 68 61 73 68 3d 65 2e 68 61 73 68 7c his.hash=e.hash| 0000f300: 7c 65 2e 63 75 72 76 65 2e 68 61 73 68 7d 76 61 |e.curve.hash}va 0000f310: 72 20 58 6e 3d 59 6e 3b 59 6e 2e 70 72 6f 74 6f r Xn=Yn;Yn.proto 0000f320: 74 79 70 65 2e 6b 65 79 50 61 69 72 3d 66 75 6e type.keyPair=fun 0000f330: 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 ction(e){return 0000f340: 6e 65 77 20 55 6e 28 74 68 69 73 2c 65 29 7d 2c new Un(this,e)}, 0000f350: 59 6e 2e 70 72 6f 74 6f 74 79 70 65 2e 6b 65 79 Yn.prototype.key 0000f360: 46 72 6f 6d 50 72 69 76 61 74 65 3d 66 75 6e 63 FromPrivate=func 0000f370: 74 69 6f 6e 28 65 2c 74 29 7b 72 65 74 75 72 6e tion(e,t){return 0000f380: 20 55 6e 2e 66 72 6f 6d 50 72 69 76 61 74 65 28 Un.fromPrivate( 0000f390: 74 68 69 73 2c 65 2c 74 29 7d 2c 59 6e 2e 70 72 this,e,t)},Yn.pr 0000f3a0: 6f 74 6f 74 79 70 65 2e 6b 65 79 46 72 6f 6d 50 ototype.keyFromP 0000f3b0: 75 62 6c 69 63 3d 66 75 6e 63 74 69 6f 6e 28 65 ublic=function(e 0000f3c0: 2c 74 29 7b 72 65 74 75 72 6e 20 55 6e 2e 66 72 ,t){return Un.fr 0000f3d0: 6f 6d 50 75 62 6c 69 63 28 74 68 69 73 2c 65 2c omPublic(this,e, 0000f3e0: 74 29 7d 2c 59 6e 2e 70 72 6f 74 6f 74 79 70 65 t)},Yn.prototype 0000f3f0: 2e 67 65 6e 4b 65 79 50 61 69 72 3d 66 75 6e 63 .genKeyPair=func 0000f400: 74 69 6f 6e 28 65 29 7b 65 7c 7c 28 65 3d 7b 7d tion(e){e||(e={} 0000f410: 29 3b 66 6f 72 28 76 61 72 20 74 3d 6e 65 77 20 );for(var t=new 0000f420: 44 6e 28 7b 68 61 73 68 3a 74 68 69 73 2e 68 61 Dn({hash:this.ha 0000f430: 73 68 2c 70 65 72 73 3a 65 2e 70 65 72 73 2c 70 sh,pers:e.pers,p 0000f440: 65 72 73 45 6e 63 3a 65 2e 70 65 72 73 45 6e 63 ersEnc:e.persEnc 0000f450: 7c 7c 22 75 74 66 38 22 2c 65 6e 74 72 6f 70 79 ||"utf8",entropy 0000f460: 3a 65 2e 65 6e 74 72 6f 70 79 7c 7c 57 6e 28 74 :e.entropy||Wn(t 0000f470: 68 69 73 2e 68 61 73 68 2e 68 6d 61 63 53 74 72 his.hash.hmacStr 0000f480: 65 6e 67 74 68 29 2c 65 6e 74 72 6f 70 79 45 6e ength),entropyEn 0000f490: 63 3a 65 2e 65 6e 74 72 6f 70 79 26 26 65 2e 65 c:e.entropy&&e.e 0000f4a0: 6e 74 72 6f 70 79 45 6e 63 7c 7c 22 75 74 66 38 ntropyEnc||"utf8 0000f4b0: 22 2c 6e 6f 6e 63 65 3a 74 68 69 73 2e 6e 2e 74 ",nonce:this.n.t 0000f4c0: 6f 41 72 72 61 79 28 29 7d 29 2c 6e 3d 74 68 69 oArray()}),n=thi 0000f4d0: 73 2e 6e 2e 62 79 74 65 4c 65 6e 67 74 68 28 29 s.n.byteLength() 0000f4e0: 2c 72 3d 74 68 69 73 2e 6e 2e 73 75 62 28 6e 65 ,r=this.n.sub(ne 0000f4f0: 77 28 7a 28 29 29 28 32 29 29 3b 3b 29 7b 76 61 w(z())(2));;){va 0000f500: 72 20 6f 3d 6e 65 77 28 7a 28 29 29 28 74 2e 67 r o=new(z())(t.g 0000f510: 65 6e 65 72 61 74 65 28 6e 29 29 3b 69 66 28 21 enerate(n));if(! 0000f520: 28 6f 2e 63 6d 70 28 72 29 3e 30 29 29 72 65 74 (o.cmp(r)>0))ret 0000f530: 75 72 6e 20 6f 2e 69 61 64 64 6e 28 31 29 2c 74 urn o.iaddn(1),t 0000f540: 68 69 73 2e 6b 65 79 46 72 6f 6d 50 72 69 76 61 his.keyFromPriva 0000f550: 74 65 28 6f 29 7d 7d 2c 59 6e 2e 70 72 6f 74 6f te(o)}},Yn.proto 0000f560: 74 79 70 65 2e 5f 74 72 75 6e 63 61 74 65 54 6f type._truncateTo 0000f570: 4e 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b N=function(e,t){ 0000f580: 76 61 72 20 6e 3d 38 2a 65 2e 62 79 74 65 4c 65 var n=8*e.byteLe 0000f590: 6e 67 74 68 28 29 2d 74 68 69 73 2e 6e 2e 62 69 ngth()-this.n.bi 0000f5a0: 74 4c 65 6e 67 74 68 28 29 3b 72 65 74 75 72 6e tLength();return 0000f5b0: 20 6e 3e 30 26 26 28 65 3d 65 2e 75 73 68 72 6e n>0&&(e=e.ushrn 0000f5c0: 28 6e 29 29 2c 21 74 26 26 65 2e 63 6d 70 28 74 (n)),!t&&e.cmp(t 0000f5d0: 68 69 73 2e 6e 29 3e 3d 30 3f 65 2e 73 75 62 28 his.n)>=0?e.sub( 0000f5e0: 74 68 69 73 2e 6e 29 3a 65 7d 2c 59 6e 2e 70 72 this.n):e},Yn.pr 0000f5f0: 6f 74 6f 74 79 70 65 2e 73 69 67 6e 3d 66 75 6e ototype.sign=fun 0000f600: 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c 72 29 7b 22 ction(e,t,n,r){" 0000f610: 6f 62 6a 65 63 74 22 3d 3d 74 79 70 65 6f 66 20 object"==typeof 0000f620: 6e 26 26 28 72 3d 6e 2c 6e 3d 6e 75 6c 6c 29 2c n&&(r=n,n=null), 0000f630: 72 7c 7c 28 72 3d 7b 7d 29 2c 74 3d 74 68 69 73 r||(r={}),t=this 0000f640: 2e 6b 65 79 46 72 6f 6d 50 72 69 76 61 74 65 28 .keyFromPrivate( 0000f650: 74 2c 6e 29 2c 65 3d 74 68 69 73 2e 5f 74 72 75 t,n),e=this._tru 0000f660: 6e 63 61 74 65 54 6f 4e 28 6e 65 77 28 7a 28 29 ncateToN(new(z() 0000f670: 29 28 65 2c 31 36 29 29 3b 66 6f 72 28 76 61 72 )(e,16));for(var 0000f680: 20 6f 3d 74 68 69 73 2e 6e 2e 62 79 74 65 4c 65 o=this.n.byteLe 0000f690: 6e 67 74 68 28 29 2c 69 3d 74 2e 67 65 74 50 72 ngth(),i=t.getPr 0000f6a0: 69 76 61 74 65 28 29 2e 74 6f 41 72 72 61 79 28 ivate().toArray( 0000f6b0: 22 62 65 22 2c 6f 29 2c 61 3d 65 2e 74 6f 41 72 "be",o),a=e.toAr 0000f6c0: 72 61 79 28 22 62 65 22 2c 6f 29 2c 73 3d 6e 65 ray("be",o),s=ne 0000f6d0: 77 20 44 6e 28 7b 68 61 73 68 3a 74 68 69 73 2e w Dn({hash:this. 0000f6e0: 68 61 73 68 2c 65 6e 74 72 6f 70 79 3a 69 2c 6e hash,entropy:i,n 0000f6f0: 6f 6e 63 65 3a 61 2c 70 65 72 73 3a 72 2e 70 65 once:a,pers:r.pe 0000f700: 72 73 2c 70 65 72 73 45 6e 63 3a 72 2e 70 65 72 rs,persEnc:r.per 0000f710: 73 45 6e 63 7c 7c 22 75 74 66 38 22 7d 29 2c 6c sEnc||"utf8"}),l 0000f720: 3d 74 68 69 73 2e 6e 2e 73 75 62 28 6e 65 77 28 =this.n.sub(new( 0000f730: 7a 28 29 29 28 31 29 29 2c 63 3d 30 3b 3b 63 2b z())(1)),c=0;;c+ 0000f740: 2b 29 7b 76 61 72 20 75 3d 72 2e 6b 3f 72 2e 6b +){var u=r.k?r.k 0000f750: 28 63 29 3a 6e 65 77 28 7a 28 29 29 28 73 2e 67 (c):new(z())(s.g 0000f760: 65 6e 65 72 61 74 65 28 74 68 69 73 2e 6e 2e 62 enerate(this.n.b 0000f770: 79 74 65 4c 65 6e 67 74 68 28 29 29 29 3b 69 66 yteLength()));if 0000f780: 28 21 28 28 75 3d 74 68 69 73 2e 5f 74 72 75 6e (!((u=this._trun 0000f790: 63 61 74 65 54 6f 4e 28 75 2c 21 30 29 29 2e 63 cateToN(u,!0)).c 0000f7a0: 6d 70 6e 28 31 29 3c 3d 30 7c 7c 75 2e 63 6d 70 mpn(1)<=0||u.cmp 0000f7b0: 28 6c 29 3e 3d 30 29 29 7b 76 61 72 20 64 3d 74 (l)>=0)){var d=t 0000f7c0: 68 69 73 2e 67 2e 6d 75 6c 28 75 29 3b 69 66 28 his.g.mul(u);if( 0000f7d0: 21 64 2e 69 73 49 6e 66 69 6e 69 74 79 28 29 29 !d.isInfinity()) 0000f7e0: 7b 76 61 72 20 70 3d 64 2e 67 65 74 58 28 29 2c {var p=d.getX(), 0000f7f0: 66 3d 70 2e 75 6d 6f 64 28 74 68 69 73 2e 6e 29 f=p.umod(this.n) 0000f800: 3b 69 66 28 30 21 3d 3d 66 2e 63 6d 70 6e 28 30 ;if(0!==f.cmpn(0 0000f810: 29 29 7b 76 61 72 20 68 3d 75 2e 69 6e 76 6d 28 )){var h=u.invm( 0000f820: 74 68 69 73 2e 6e 29 2e 6d 75 6c 28 66 2e 6d 75 this.n).mul(f.mu 0000f830: 6c 28 74 2e 67 65 74 50 72 69 76 61 74 65 28 29 l(t.getPrivate() 0000f840: 29 2e 69 61 64 64 28 65 29 29 3b 69 66 28 30 21 ).iadd(e));if(0! 0000f850: 3d 3d 28 68 3d 68 2e 75 6d 6f 64 28 74 68 69 73 ==(h=h.umod(this 0000f860: 2e 6e 29 29 2e 63 6d 70 6e 28 30 29 29 7b 76 61 .n)).cmpn(0)){va 0000f870: 72 20 6d 3d 28 64 2e 67 65 74 59 28 29 2e 69 73 r m=(d.getY().is 0000f880: 4f 64 64 28 29 3f 31 3a 30 29 7c 28 30 21 3d 3d Odd()?1:0)|(0!== 0000f890: 70 2e 63 6d 70 28 66 29 3f 32 3a 30 29 3b 72 65 p.cmp(f)?2:0);re 0000f8a0: 74 75 72 6e 20 72 2e 63 61 6e 6f 6e 69 63 61 6c turn r.canonical 0000f8b0: 26 26 68 2e 63 6d 70 28 74 68 69 73 2e 6e 68 29 &&h.cmp(this.nh) 0000f8c0: 3e 30 26 26 28 68 3d 74 68 69 73 2e 6e 2e 73 75 >0&&(h=this.n.su 0000f8d0: 62 28 68 29 2c 6d 5e 3d 31 29 2c 6e 65 77 20 7a b(h),m^=1),new z 0000f8e0: 6e 28 7b 72 3a 66 2c 73 3a 68 2c 72 65 63 6f 76 n({r:f,s:h,recov 0000f8f0: 65 72 79 50 61 72 61 6d 3a 6d 7d 29 7d 7d 7d 7d eryParam:m})}}}} 0000f900: 7d 7d 2c 59 6e 2e 70 72 6f 74 6f 74 79 70 65 2e }},Yn.prototype. 0000f910: 76 65 72 69 66 79 3d 66 75 6e 63 74 69 6f 6e 28 verify=function( 0000f920: 65 2c 74 2c 6e 2c 72 29 7b 65 3d 74 68 69 73 2e e,t,n,r){e=this. 0000f930: 5f 74 72 75 6e 63 61 74 65 54 6f 4e 28 6e 65 77 _truncateToN(new 0000f940: 28 7a 28 29 29 28 65 2c 31 36 29 29 2c 6e 3d 74 (z())(e,16)),n=t 0000f950: 68 69 73 2e 6b 65 79 46 72 6f 6d 50 75 62 6c 69 his.keyFromPubli 0000f960: 63 28 6e 2c 72 29 3b 76 61 72 20 6f 3d 28 74 3d c(n,r);var o=(t= 0000f970: 6e 65 77 20 7a 6e 28 74 2c 22 68 65 78 22 29 29 new zn(t,"hex")) 0000f980: 2e 72 2c 69 3d 74 2e 73 3b 69 66 28 6f 2e 63 6d .r,i=t.s;if(o.cm 0000f990: 70 6e 28 31 29 3c 30 7c 7c 6f 2e 63 6d 70 28 74 pn(1)<0||o.cmp(t 0000f9a0: 68 69 73 2e 6e 29 3e 3d 30 29 72 65 74 75 72 6e his.n)>=0)return 0000f9b0: 21 31 3b 69 66 28 69 2e 63 6d 70 6e 28 31 29 3c !1;if(i.cmpn(1)< 0000f9c0: 30 7c 7c 69 2e 63 6d 70 28 74 68 69 73 2e 6e 29 0||i.cmp(this.n) 0000f9d0: 3e 3d 30 29 72 65 74 75 72 6e 21 31 3b 76 61 72 >=0)return!1;var 0000f9e0: 20 61 2c 73 3d 69 2e 69 6e 76 6d 28 74 68 69 73 a,s=i.invm(this 0000f9f0: 2e 6e 29 2c 6c 3d 73 2e 6d 75 6c 28 65 29 2e 75 .n),l=s.mul(e).u 0000fa00: 6d 6f 64 28 74 68 69 73 2e 6e 29 2c 63 3d 73 2e mod(this.n),c=s. 0000fa10: 6d 75 6c 28 6f 29 2e 75 6d 6f 64 28 74 68 69 73 mul(o).umod(this 0000fa20: 2e 6e 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e .n);return this. 0000fa30: 63 75 72 76 65 2e 5f 6d 61 78 77 65 6c 6c 54 72 curve._maxwellTr 0000fa40: 69 63 6b 3f 21 28 61 3d 74 68 69 73 2e 67 2e 6a ick?!(a=this.g.j 0000fa50: 6d 75 6c 41 64 64 28 6c 2c 6e 2e 67 65 74 50 75 mulAdd(l,n.getPu 0000fa60: 62 6c 69 63 28 29 2c 63 29 29 2e 69 73 49 6e 66 blic(),c)).isInf 0000fa70: 69 6e 69 74 79 28 29 26 26 61 2e 65 71 58 54 6f inity()&&a.eqXTo 0000fa80: 50 28 6f 29 3a 21 28 61 3d 74 68 69 73 2e 67 2e P(o):!(a=this.g. 0000fa90: 6d 75 6c 41 64 64 28 6c 2c 6e 2e 67 65 74 50 75 mulAdd(l,n.getPu 0000faa0: 62 6c 69 63 28 29 2c 63 29 29 2e 69 73 49 6e 66 blic(),c)).isInf 0000fab0: 69 6e 69 74 79 28 29 26 26 30 3d 3d 3d 61 2e 67 inity()&&0===a.g 0000fac0: 65 74 58 28 29 2e 75 6d 6f 64 28 74 68 69 73 2e etX().umod(this. 0000fad0: 6e 29 2e 63 6d 70 28 6f 29 7d 2c 59 6e 2e 70 72 n).cmp(o)},Yn.pr 0000fae0: 6f 74 6f 74 79 70 65 2e 72 65 63 6f 76 65 72 50 ototype.recoverP 0000faf0: 75 62 4b 65 79 3d 66 75 6e 63 74 69 6f 6e 28 65 ubKey=function(e 0000fb00: 2c 74 2c 6e 2c 72 29 7b 4b 6e 28 28 33 26 6e 29 ,t,n,r){Kn((3&n) 0000fb10: 3d 3d 3d 6e 2c 22 54 68 65 20 72 65 63 6f 76 65 ===n,"The recove 0000fb20: 72 79 20 70 61 72 61 6d 20 69 73 20 6d 6f 72 65 ry param is more 0000fb30: 20 74 68 61 6e 20 74 77 6f 20 62 69 74 73 22 29 than two bits") 0000fb40: 2c 74 3d 6e 65 77 20 7a 6e 28 74 2c 72 29 3b 76 ,t=new zn(t,r);v 0000fb50: 61 72 20 6f 3d 74 68 69 73 2e 6e 2c 69 3d 6e 65 ar o=this.n,i=ne 0000fb60: 77 28 7a 28 29 29 28 65 29 2c 61 3d 74 2e 72 2c w(z())(e),a=t.r, 0000fb70: 73 3d 74 2e 73 2c 6c 3d 31 26 6e 2c 63 3d 6e 3e s=t.s,l=1&n,c=n> 0000fb80: 3e 31 3b 69 66 28 61 2e 63 6d 70 28 74 68 69 73 >1;if(a.cmp(this 0000fb90: 2e 63 75 72 76 65 2e 70 2e 75 6d 6f 64 28 74 68 .curve.p.umod(th 0000fba0: 69 73 2e 63 75 72 76 65 2e 6e 29 29 3e 3d 30 26 is.curve.n))>=0& 0000fbb0: 26 63 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 &c)throw new Err 0000fbc0: 6f 72 28 22 55 6e 61 62 6c 65 20 74 6f 20 66 69 or("Unable to fi 0000fbd0: 6e 64 20 73 65 6e 63 6f 6e 64 20 6b 65 79 20 63 nd sencond key c 0000fbe0: 61 6e 64 69 6e 61 74 65 22 29 3b 61 3d 63 3f 74 andinate");a=c?t 0000fbf0: 68 69 73 2e 63 75 72 76 65 2e 70 6f 69 6e 74 46 his.curve.pointF 0000fc00: 72 6f 6d 58 28 61 2e 61 64 64 28 74 68 69 73 2e romX(a.add(this. 0000fc10: 63 75 72 76 65 2e 6e 29 2c 6c 29 3a 74 68 69 73 curve.n),l):this 0000fc20: 2e 63 75 72 76 65 2e 70 6f 69 6e 74 46 72 6f 6d .curve.pointFrom 0000fc30: 58 28 61 2c 6c 29 3b 76 61 72 20 75 3d 74 2e 72 X(a,l);var u=t.r 0000fc40: 2e 69 6e 76 6d 28 6f 29 2c 64 3d 6f 2e 73 75 62 .invm(o),d=o.sub 0000fc50: 28 69 29 2e 6d 75 6c 28 75 29 2e 75 6d 6f 64 28 (i).mul(u).umod( 0000fc60: 6f 29 2c 70 3d 73 2e 6d 75 6c 28 75 29 2e 75 6d o),p=s.mul(u).um 0000fc70: 6f 64 28 6f 29 3b 72 65 74 75 72 6e 20 74 68 69 od(o);return thi 0000fc80: 73 2e 67 2e 6d 75 6c 41 64 64 28 64 2c 61 2c 70 s.g.mulAdd(d,a,p 0000fc90: 29 7d 2c 59 6e 2e 70 72 6f 74 6f 74 79 70 65 2e )},Yn.prototype. 0000fca0: 67 65 74 4b 65 79 52 65 63 6f 76 65 72 79 50 61 getKeyRecoveryPa 0000fcb0: 72 61 6d 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 ram=function(e,t 0000fcc0: 2c 6e 2c 72 29 7b 69 66 28 6e 75 6c 6c 21 3d 3d ,n,r){if(null!== 0000fcd0: 28 74 3d 6e 65 77 20 7a 6e 28 74 2c 72 29 29 2e (t=new zn(t,r)). 0000fce0: 72 65 63 6f 76 65 72 79 50 61 72 61 6d 29 72 65 recoveryParam)re 0000fcf0: 74 75 72 6e 20 74 2e 72 65 63 6f 76 65 72 79 50 turn t.recoveryP 0000fd00: 61 72 61 6d 3b 66 6f 72 28 76 61 72 20 6f 3d 30 aram;for(var o=0 0000fd10: 3b 6f 3c 34 3b 6f 2b 2b 29 7b 76 61 72 20 69 3b ;o<4;o++){var i; 0000fd20: 74 72 79 7b 69 3d 74 68 69 73 2e 72 65 63 6f 76 try{i=this.recov 0000fd30: 65 72 50 75 62 4b 65 79 28 65 2c 74 2c 6f 29 7d erPubKey(e,t,o)} 0000fd40: 63 61 74 63 68 28 65 29 7b 63 6f 6e 74 69 6e 75 catch(e){continu 0000fd50: 65 7d 69 66 28 69 2e 65 71 28 6e 29 29 72 65 74 e}if(i.eq(n))ret 0000fd60: 75 72 6e 20 6f 7d 74 68 72 6f 77 20 6e 65 77 20 urn o}throw new 0000fd70: 45 72 72 6f 72 28 22 55 6e 61 62 6c 65 20 74 6f Error("Unable to 0000fd80: 20 66 69 6e 64 20 76 61 6c 69 64 20 72 65 63 6f find valid reco 0000fd90: 76 65 72 79 20 66 61 63 74 6f 72 22 29 7d 3b 76 very factor")};v 0000fda0: 61 72 20 5a 6e 3d 6d 6e 28 28 66 75 6e 63 74 69 ar Zn=mn((functi 0000fdb0: 6f 6e 28 65 2c 74 29 7b 76 61 72 20 6e 3d 74 3b on(e,t){var n=t; 0000fdc0: 6e 2e 76 65 72 73 69 6f 6e 3d 22 36 2e 35 2e 34 n.version="6.5.4 0000fdd0: 22 2c 6e 2e 75 74 69 6c 73 3d 76 6e 2c 6e 2e 72 ",n.utils=vn,n.r 0000fde0: 61 6e 64 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 74 and=function(){t 0000fdf0: 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 hrow new Error(" 0000fe00: 75 6e 73 75 70 70 6f 72 74 65 64 22 29 7d 2c 6e unsupported")},n 0000fe10: 2e 63 75 72 76 65 3d 4e 6e 2c 6e 2e 63 75 72 76 .curve=Nn,n.curv 0000fe20: 65 73 3d 50 6e 2c 6e 2e 65 63 3d 58 6e 2c 6e 2e es=Pn,n.ec=Xn,n. 0000fe30: 65 64 64 73 61 3d 6e 75 6c 6c 7d 29 29 2e 65 63 eddsa=null})).ec 0000fe40: 3b 63 6f 6e 73 74 20 51 6e 3d 6e 65 77 20 79 28 ;const Qn=new y( 0000fe50: 22 73 69 67 6e 69 6e 67 2d 6b 65 79 2f 35 2e 37 "signing-key/5.7 0000fe60: 2e 30 22 29 3b 6c 65 74 20 4a 6e 3d 6e 75 6c 6c .0");let Jn=null 0000fe70: 3b 66 75 6e 63 74 69 6f 6e 20 24 6e 28 29 7b 72 ;function $n(){r 0000fe80: 65 74 75 72 6e 20 4a 6e 7c 7c 28 4a 6e 3d 6e 65 eturn Jn||(Jn=ne 0000fe90: 77 20 5a 6e 28 22 73 65 63 70 32 35 36 6b 31 22 w Zn("secp256k1" 0000fea0: 29 29 2c 4a 6e 7d 63 6c 61 73 73 20 65 72 7b 63 )),Jn}class er{c 0000feb0: 6f 6e 73 74 72 75 63 74 6f 72 28 65 29 7b 74 65 onstructor(e){te 0000fec0: 28 74 68 69 73 2c 22 63 75 72 76 65 22 2c 22 73 (this,"curve","s 0000fed0: 65 63 70 32 35 36 6b 31 22 29 2c 74 65 28 74 68 ecp256k1"),te(th 0000fee0: 69 73 2c 22 70 72 69 76 61 74 65 4b 65 79 22 2c is,"privateKey", 0000fef0: 52 28 65 29 29 2c 33 32 21 3d 3d 4e 28 74 68 69 R(e)),32!==N(thi 0000ff00: 73 2e 70 72 69 76 61 74 65 4b 65 79 29 26 26 51 s.privateKey)&&Q 0000ff10: 6e 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 n.throwArgumentE 0000ff20: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 70 72 rror("invalid pr 0000ff30: 69 76 61 74 65 20 6b 65 79 22 2c 22 70 72 69 76 ivate key","priv 0000ff40: 61 74 65 4b 65 79 22 2c 22 5b 5b 20 52 45 44 41 ateKey","[[ REDA 0000ff50: 43 54 45 44 20 5d 5d 22 29 3b 63 6f 6e 73 74 20 CTED ]]");const 0000ff60: 74 3d 24 6e 28 29 2e 6b 65 79 46 72 6f 6d 50 72 t=$n().keyFromPr 0000ff70: 69 76 61 74 65 28 54 28 74 68 69 73 2e 70 72 69 ivate(T(this.pri 0000ff80: 76 61 74 65 4b 65 79 29 29 3b 74 65 28 74 68 69 vateKey));te(thi 0000ff90: 73 2c 22 70 75 62 6c 69 63 4b 65 79 22 2c 22 30 s,"publicKey","0 0000ffa0: 78 22 2b 74 2e 67 65 74 50 75 62 6c 69 63 28 21 x"+t.getPublic(! 0000ffb0: 31 2c 22 68 65 78 22 29 29 2c 74 65 28 74 68 69 1,"hex")),te(thi 0000ffc0: 73 2c 22 63 6f 6d 70 72 65 73 73 65 64 50 75 62 s,"compressedPub 0000ffd0: 6c 69 63 4b 65 79 22 2c 22 30 78 22 2b 74 2e 67 licKey","0x"+t.g 0000ffe0: 65 74 50 75 62 6c 69 63 28 21 30 2c 22 68 65 78 etPublic(!0,"hex 0000fff0: 22 29 29 2c 74 65 28 74 68 69 73 2c 22 5f 69 73 ")),te(this,"_is 00010000: 53 69 67 6e 69 6e 67 4b 65 79 22 2c 21 30 29 7d SigningKey",!0)} 00010010: 5f 61 64 64 50 6f 69 6e 74 28 65 29 7b 63 6f 6e _addPoint(e){con 00010020: 73 74 20 74 3d 24 6e 28 29 2e 6b 65 79 46 72 6f st t=$n().keyFro 00010030: 6d 50 75 62 6c 69 63 28 54 28 74 68 69 73 2e 70 mPublic(T(this.p 00010040: 75 62 6c 69 63 4b 65 79 29 29 2c 6e 3d 24 6e 28 ublicKey)),n=$n( 00010050: 29 2e 6b 65 79 46 72 6f 6d 50 75 62 6c 69 63 28 ).keyFromPublic( 00010060: 54 28 65 29 29 3b 72 65 74 75 72 6e 22 30 78 22 T(e));return"0x" 00010070: 2b 74 2e 70 75 62 2e 61 64 64 28 6e 2e 70 75 62 +t.pub.add(n.pub 00010080: 29 2e 65 6e 63 6f 64 65 43 6f 6d 70 72 65 73 73 ).encodeCompress 00010090: 65 64 28 22 68 65 78 22 29 7d 73 69 67 6e 44 69 ed("hex")}signDi 000100a0: 67 65 73 74 28 65 29 7b 63 6f 6e 73 74 20 74 3d gest(e){const t= 000100b0: 24 6e 28 29 2e 6b 65 79 46 72 6f 6d 50 72 69 76 $n().keyFromPriv 000100c0: 61 74 65 28 54 28 74 68 69 73 2e 70 72 69 76 61 ate(T(this.priva 000100d0: 74 65 4b 65 79 29 29 2c 6e 3d 54 28 65 29 3b 33 teKey)),n=T(e);3 000100e0: 32 21 3d 3d 6e 2e 6c 65 6e 67 74 68 26 26 51 6e 2!==n.length&&Qn 000100f0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00010100: 72 6f 72 28 22 62 61 64 20 64 69 67 65 73 74 20 ror("bad digest 00010110: 6c 65 6e 67 74 68 22 2c 22 64 69 67 65 73 74 22 length","digest" 00010120: 2c 65 29 3b 63 6f 6e 73 74 20 72 3d 74 2e 73 69 ,e);const r=t.si 00010130: 67 6e 28 6e 2c 7b 63 61 6e 6f 6e 69 63 61 6c 3a gn(n,{canonical: 00010140: 21 30 7d 29 3b 72 65 74 75 72 6e 20 55 28 7b 72 !0});return U({r 00010150: 65 63 6f 76 65 72 79 50 61 72 61 6d 3a 72 2e 72 ecoveryParam:r.r 00010160: 65 63 6f 76 65 72 79 50 61 72 61 6d 2c 72 3a 46 ecoveryParam,r:F 00010170: 28 22 30 78 22 2b 72 2e 72 2e 74 6f 53 74 72 69 ("0x"+r.r.toStri 00010180: 6e 67 28 31 36 29 2c 33 32 29 2c 73 3a 46 28 22 ng(16),32),s:F(" 00010190: 30 78 22 2b 72 2e 73 2e 74 6f 53 74 72 69 6e 67 0x"+r.s.toString 000101a0: 28 31 36 29 2c 33 32 29 7d 29 7d 63 6f 6d 70 75 (16),32)})}compu 000101b0: 74 65 53 68 61 72 65 64 53 65 63 72 65 74 28 65 teSharedSecret(e 000101c0: 29 7b 63 6f 6e 73 74 20 74 3d 24 6e 28 29 2e 6b ){const t=$n().k 000101d0: 65 79 46 72 6f 6d 50 72 69 76 61 74 65 28 54 28 eyFromPrivate(T( 000101e0: 74 68 69 73 2e 70 72 69 76 61 74 65 4b 65 79 29 this.privateKey) 000101f0: 29 2c 6e 3d 24 6e 28 29 2e 6b 65 79 46 72 6f 6d ),n=$n().keyFrom 00010200: 50 75 62 6c 69 63 28 54 28 6e 72 28 65 29 29 29 Public(T(nr(e))) 00010210: 3b 72 65 74 75 72 6e 20 46 28 22 30 78 22 2b 74 ;return F("0x"+t 00010220: 2e 64 65 72 69 76 65 28 6e 2e 67 65 74 50 75 62 .derive(n.getPub 00010230: 6c 69 63 28 29 29 2e 74 6f 53 74 72 69 6e 67 28 lic()).toString( 00010240: 31 36 29 2c 33 32 29 7d 73 74 61 74 69 63 20 69 16),32)}static i 00010250: 73 53 69 67 6e 69 6e 67 4b 65 79 28 65 29 7b 72 sSigningKey(e){r 00010260: 65 74 75 72 6e 21 28 21 65 7c 7c 21 65 2e 5f 69 eturn!(!e||!e._i 00010270: 73 53 69 67 6e 69 6e 67 4b 65 79 29 7d 7d 66 75 sSigningKey)}}fu 00010280: 6e 63 74 69 6f 6e 20 74 72 28 65 2c 74 29 7b 63 nction tr(e,t){c 00010290: 6f 6e 73 74 20 6e 3d 55 28 74 29 2c 72 3d 7b 72 onst n=U(t),r={r 000102a0: 3a 54 28 6e 2e 72 29 2c 73 3a 54 28 6e 2e 73 29 :T(n.r),s:T(n.s) 000102b0: 7d 3b 72 65 74 75 72 6e 22 30 78 22 2b 24 6e 28 };return"0x"+$n( 000102c0: 29 2e 72 65 63 6f 76 65 72 50 75 62 4b 65 79 28 ).recoverPubKey( 000102d0: 54 28 65 29 2c 72 2c 6e 2e 72 65 63 6f 76 65 72 T(e),r,n.recover 000102e0: 79 50 61 72 61 6d 29 2e 65 6e 63 6f 64 65 28 22 yParam).encode(" 000102f0: 68 65 78 22 2c 21 31 29 7d 66 75 6e 63 74 69 6f hex",!1)}functio 00010300: 6e 20 6e 72 28 65 2c 74 29 7b 63 6f 6e 73 74 20 n nr(e,t){const 00010310: 6e 3d 54 28 65 29 3b 69 66 28 33 32 3d 3d 3d 6e n=T(e);if(32===n 00010320: 2e 6c 65 6e 67 74 68 29 7b 63 6f 6e 73 74 20 65 .length){const e 00010330: 3d 6e 65 77 20 65 72 28 6e 29 3b 72 65 74 75 72 =new er(n);retur 00010340: 6e 20 74 3f 22 30 78 22 2b 24 6e 28 29 2e 6b 65 n t?"0x"+$n().ke 00010350: 79 46 72 6f 6d 50 72 69 76 61 74 65 28 6e 29 2e yFromPrivate(n). 00010360: 67 65 74 50 75 62 6c 69 63 28 21 30 2c 22 68 65 getPublic(!0,"he 00010370: 78 22 29 3a 65 2e 70 75 62 6c 69 63 4b 65 79 7d x"):e.publicKey} 00010380: 72 65 74 75 72 6e 20 33 33 3d 3d 3d 6e 2e 6c 65 return 33===n.le 00010390: 6e 67 74 68 3f 74 3f 52 28 6e 29 3a 22 30 78 22 ngth?t?R(n):"0x" 000103a0: 2b 24 6e 28 29 2e 6b 65 79 46 72 6f 6d 50 75 62 +$n().keyFromPub 000103b0: 6c 69 63 28 6e 29 2e 67 65 74 50 75 62 6c 69 63 lic(n).getPublic 000103c0: 28 21 31 2c 22 68 65 78 22 29 3a 36 35 3d 3d 3d (!1,"hex"):65=== 000103d0: 6e 2e 6c 65 6e 67 74 68 3f 74 3f 22 30 78 22 2b n.length?t?"0x"+ 000103e0: 24 6e 28 29 2e 6b 65 79 46 72 6f 6d 50 75 62 6c $n().keyFromPubl 000103f0: 69 63 28 6e 29 2e 67 65 74 50 75 62 6c 69 63 28 ic(n).getPublic( 00010400: 21 30 2c 22 68 65 78 22 29 3a 52 28 6e 29 3a 51 !0,"hex"):R(n):Q 00010410: 6e 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 n.throwArgumentE 00010420: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 70 75 rror("invalid pu 00010430: 62 6c 69 63 20 6f 72 20 70 72 69 76 61 74 65 20 blic or private 00010440: 6b 65 79 22 2c 22 6b 65 79 22 2c 22 5b 52 45 44 key","key","[RED 00010450: 41 43 54 45 44 5d 22 29 7d 63 6f 6e 73 74 20 72 ACTED]")}const r 00010460: 72 3d 6e 65 77 20 79 28 22 74 72 61 6e 73 61 63 r=new y("transac 00010470: 74 69 6f 6e 73 2f 35 2e 37 2e 30 22 29 3b 76 61 tions/5.7.0");va 00010480: 72 20 6f 72 3b 66 75 6e 63 74 69 6f 6e 20 69 72 r or;function ir 00010490: 28 65 29 7b 72 65 74 75 72 6e 22 30 78 22 3d 3d (e){return"0x"== 000104a0: 3d 65 3f 6e 75 6c 6c 3a 4d 65 28 65 29 7d 66 75 =e?null:Me(e)}fu 000104b0: 6e 63 74 69 6f 6e 20 61 72 28 65 29 7b 72 65 74 nction ar(e){ret 000104c0: 75 72 6e 22 30 78 22 3d 3d 3d 65 3f 75 74 3a 59 urn"0x"===e?ut:Y 000104d0: 2e 66 72 6f 6d 28 65 29 7d 21 66 75 6e 63 74 69 .from(e)}!functi 000104e0: 6f 6e 28 65 29 7b 65 5b 65 2e 6c 65 67 61 63 79 on(e){e[e.legacy 000104f0: 3d 30 5d 3d 22 6c 65 67 61 63 79 22 2c 65 5b 65 =0]="legacy",e[e 00010500: 2e 65 69 70 32 39 33 30 3d 31 5d 3d 22 65 69 70 .eip2930=1]="eip 00010510: 32 39 33 30 22 2c 65 5b 65 2e 65 69 70 31 35 35 2930",e[e.eip155 00010520: 39 3d 32 5d 3d 22 65 69 70 31 35 35 39 22 7d 28 9=2]="eip1559"}( 00010530: 6f 72 7c 7c 28 6f 72 3d 7b 7d 29 29 3b 63 6f 6e or||(or={}));con 00010540: 73 74 20 73 72 3d 5b 7b 6e 61 6d 65 3a 22 6e 6f st sr=[{name:"no 00010550: 6e 63 65 22 2c 6d 61 78 4c 65 6e 67 74 68 3a 33 nce",maxLength:3 00010560: 32 2c 6e 75 6d 65 72 69 63 3a 21 30 7d 2c 7b 6e 2,numeric:!0},{n 00010570: 61 6d 65 3a 22 67 61 73 50 72 69 63 65 22 2c 6d ame:"gasPrice",m 00010580: 61 78 4c 65 6e 67 74 68 3a 33 32 2c 6e 75 6d 65 axLength:32,nume 00010590: 72 69 63 3a 21 30 7d 2c 7b 6e 61 6d 65 3a 22 67 ric:!0},{name:"g 000105a0: 61 73 4c 69 6d 69 74 22 2c 6d 61 78 4c 65 6e 67 asLimit",maxLeng 000105b0: 74 68 3a 33 32 2c 6e 75 6d 65 72 69 63 3a 21 30 th:32,numeric:!0 000105c0: 7d 2c 7b 6e 61 6d 65 3a 22 74 6f 22 2c 6c 65 6e },{name:"to",len 000105d0: 67 74 68 3a 32 30 7d 2c 7b 6e 61 6d 65 3a 22 76 gth:20},{name:"v 000105e0: 61 6c 75 65 22 2c 6d 61 78 4c 65 6e 67 74 68 3a alue",maxLength: 000105f0: 33 32 2c 6e 75 6d 65 72 69 63 3a 21 30 7d 2c 7b 32,numeric:!0},{ 00010600: 6e 61 6d 65 3a 22 64 61 74 61 22 7d 5d 2c 6c 72 name:"data"}],lr 00010610: 3d 7b 63 68 61 69 6e 49 64 3a 21 30 2c 64 61 74 ={chainId:!0,dat 00010620: 61 3a 21 30 2c 67 61 73 4c 69 6d 69 74 3a 21 30 a:!0,gasLimit:!0 00010630: 2c 67 61 73 50 72 69 63 65 3a 21 30 2c 6e 6f 6e ,gasPrice:!0,non 00010640: 63 65 3a 21 30 2c 74 6f 3a 21 30 2c 74 79 70 65 ce:!0,to:!0,type 00010650: 3a 21 30 2c 76 61 6c 75 65 3a 21 30 7d 3b 66 75 :!0,value:!0};fu 00010660: 6e 63 74 69 6f 6e 20 63 72 28 65 29 7b 72 65 74 nction cr(e){ret 00010670: 75 72 6e 20 4d 65 28 50 28 76 65 28 50 28 6e 72 urn Me(P(ve(P(nr 00010680: 28 65 29 2c 31 29 29 2c 31 32 29 29 7d 66 75 6e (e),1)),12))}fun 00010690: 63 74 69 6f 6e 20 75 72 28 65 2c 74 29 7b 72 65 ction ur(e,t){re 000106a0: 74 75 72 6e 20 63 72 28 74 72 28 54 28 65 29 2c turn cr(tr(T(e), 000106b0: 74 29 29 7d 66 75 6e 63 74 69 6f 6e 20 64 72 28 t))}function dr( 000106c0: 65 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 41 28 59 e,t){const n=A(Y 000106d0: 2e 66 72 6f 6d 28 65 29 2e 74 6f 48 65 78 53 74 .from(e).toHexSt 000106e0: 72 69 6e 67 28 29 29 3b 72 65 74 75 72 6e 20 6e ring());return n 000106f0: 2e 6c 65 6e 67 74 68 3e 33 32 26 26 72 72 2e 74 .length>32&&rr.t 00010700: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00010710: 72 28 22 69 6e 76 61 6c 69 64 20 6c 65 6e 67 74 r("invalid lengt 00010720: 68 20 66 6f 72 20 22 2b 74 2c 22 74 72 61 6e 73 h for "+t,"trans 00010730: 61 63 74 69 6f 6e 3a 22 2b 74 2c 65 29 2c 6e 7d action:"+t,e),n} 00010740: 66 75 6e 63 74 69 6f 6e 20 70 72 28 65 2c 74 29 function pr(e,t) 00010750: 7b 72 65 74 75 72 6e 7b 61 64 64 72 65 73 73 3a {return{address: 00010760: 4d 65 28 65 29 2c 73 74 6f 72 61 67 65 4b 65 79 Me(e),storageKey 00010770: 73 3a 28 74 7c 7c 5b 5d 29 2e 6d 61 70 28 28 28 s:(t||[]).map((( 00010780: 74 2c 6e 29 3d 3e 28 33 32 21 3d 3d 4e 28 74 29 t,n)=>(32!==N(t) 00010790: 26 26 72 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 &&rr.throwArgume 000107a0: 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 ntError("invalid 000107b0: 20 61 63 63 65 73 73 20 6c 69 73 74 20 73 74 6f access list sto 000107c0: 72 61 67 65 4b 65 79 22 2c 60 61 63 63 65 73 73 rageKey",`access 000107d0: 4c 69 73 74 5b 24 7b 65 7d 3a 24 7b 6e 7d 5d 60 List[${e}:${n}]` 000107e0: 2c 74 29 2c 74 2e 74 6f 4c 6f 77 65 72 43 61 73 ,t),t.toLowerCas 000107f0: 65 28 29 29 29 29 7d 7d 66 75 6e 63 74 69 6f 6e e())))}}function 00010800: 20 66 72 28 65 29 7b 69 66 28 41 72 72 61 79 2e fr(e){if(Array. 00010810: 69 73 41 72 72 61 79 28 65 29 29 72 65 74 75 72 isArray(e))retur 00010820: 6e 20 65 2e 6d 61 70 28 28 28 65 2c 74 29 3d 3e n e.map(((e,t)=> 00010830: 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 65 29 Array.isArray(e) 00010840: 3f 28 65 2e 6c 65 6e 67 74 68 3e 32 26 26 72 72 ?(e.length>2&&rr 00010850: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00010860: 72 6f 72 28 22 61 63 63 65 73 73 20 6c 69 73 74 ror("access list 00010870: 20 65 78 70 65 63 74 65 64 20 74 6f 20 62 65 20 expected to be 00010880: 5b 20 61 64 64 72 65 73 73 2c 20 73 74 6f 72 61 [ address, stora 00010890: 67 65 4b 65 79 73 5b 5d 20 5d 22 2c 60 76 61 6c geKeys[] ]",`val 000108a0: 75 65 5b 24 7b 74 7d 5d 60 2c 65 29 2c 70 72 28 ue[${t}]`,e),pr( 000108b0: 65 5b 30 5d 2c 65 5b 31 5d 29 29 3a 70 72 28 65 e[0],e[1])):pr(e 000108c0: 2e 61 64 64 72 65 73 73 2c 65 2e 73 74 6f 72 61 .address,e.stora 000108d0: 67 65 4b 65 79 73 29 29 29 3b 63 6f 6e 73 74 20 geKeys)));const 000108e0: 74 3d 4f 62 6a 65 63 74 2e 6b 65 79 73 28 65 29 t=Object.keys(e) 000108f0: 2e 6d 61 70 28 28 74 3d 3e 7b 63 6f 6e 73 74 20 .map((t=>{const 00010900: 6e 3d 65 5b 74 5d 2e 72 65 64 75 63 65 28 28 28 n=e[t].reduce((( 00010910: 65 2c 74 29 3d 3e 28 65 5b 74 5d 3d 21 30 2c 65 e,t)=>(e[t]=!0,e 00010920: 29 29 2c 7b 7d 29 3b 72 65 74 75 72 6e 20 70 72 )),{});return pr 00010930: 28 74 2c 4f 62 6a 65 63 74 2e 6b 65 79 73 28 6e (t,Object.keys(n 00010940: 29 2e 73 6f 72 74 28 29 29 7d 29 29 3b 72 65 74 ).sort())}));ret 00010950: 75 72 6e 20 74 2e 73 6f 72 74 28 28 28 65 2c 74 urn t.sort(((e,t 00010960: 29 3d 3e 65 2e 61 64 64 72 65 73 73 2e 6c 6f 63 )=>e.address.loc 00010970: 61 6c 65 43 6f 6d 70 61 72 65 28 74 2e 61 64 64 aleCompare(t.add 00010980: 72 65 73 73 29 29 29 2c 74 7d 66 75 6e 63 74 69 ress))),t}functi 00010990: 6f 6e 20 68 72 28 65 29 7b 72 65 74 75 72 6e 20 on hr(e){return 000109a0: 66 72 28 65 29 2e 6d 61 70 28 28 65 3d 3e 5b 65 fr(e).map((e=>[e 000109b0: 2e 61 64 64 72 65 73 73 2c 65 2e 73 74 6f 72 61 .address,e.stora 000109c0: 67 65 4b 65 79 73 5d 29 29 7d 66 75 6e 63 74 69 geKeys]))}functi 000109d0: 6f 6e 20 6d 72 28 65 2c 74 29 7b 69 66 28 6e 75 on mr(e,t){if(nu 000109e0: 6c 6c 21 3d 65 2e 67 61 73 50 72 69 63 65 29 7b ll!=e.gasPrice){ 000109f0: 63 6f 6e 73 74 20 74 3d 59 2e 66 72 6f 6d 28 65 const t=Y.from(e 00010a00: 2e 67 61 73 50 72 69 63 65 29 2c 6e 3d 59 2e 66 .gasPrice),n=Y.f 00010a10: 72 6f 6d 28 65 2e 6d 61 78 46 65 65 50 65 72 47 rom(e.maxFeePerG 00010a20: 61 73 7c 7c 30 29 3b 74 2e 65 71 28 6e 29 7c 7c as||0);t.eq(n)|| 00010a30: 72 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 rr.throwArgument 00010a40: 45 72 72 6f 72 28 22 6d 69 73 6d 61 74 63 68 20 Error("mismatch 00010a50: 45 49 50 2d 31 35 35 39 20 67 61 73 50 72 69 63 EIP-1559 gasPric 00010a60: 65 20 21 3d 20 6d 61 78 46 65 65 50 65 72 47 61 e != maxFeePerGa 00010a70: 73 22 2c 22 74 78 22 2c 7b 67 61 73 50 72 69 63 s","tx",{gasPric 00010a80: 65 3a 74 2c 6d 61 78 46 65 65 50 65 72 47 61 73 e:t,maxFeePerGas 00010a90: 3a 6e 7d 29 7d 63 6f 6e 73 74 20 6e 3d 5b 64 72 :n})}const n=[dr 00010aa0: 28 65 2e 63 68 61 69 6e 49 64 7c 7c 30 2c 22 63 (e.chainId||0,"c 00010ab0: 68 61 69 6e 49 64 22 29 2c 64 72 28 65 2e 6e 6f hainId"),dr(e.no 00010ac0: 6e 63 65 7c 7c 30 2c 22 6e 6f 6e 63 65 22 29 2c nce||0,"nonce"), 00010ad0: 64 72 28 65 2e 6d 61 78 50 72 69 6f 72 69 74 79 dr(e.maxPriority 00010ae0: 46 65 65 50 65 72 47 61 73 7c 7c 30 2c 22 6d 61 FeePerGas||0,"ma 00010af0: 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 xPriorityFeePerG 00010b00: 61 73 22 29 2c 64 72 28 65 2e 6d 61 78 46 65 65 as"),dr(e.maxFee 00010b10: 50 65 72 47 61 73 7c 7c 30 2c 22 6d 61 78 46 65 PerGas||0,"maxFe 00010b20: 65 50 65 72 47 61 73 22 29 2c 64 72 28 65 2e 67 ePerGas"),dr(e.g 00010b30: 61 73 4c 69 6d 69 74 7c 7c 30 2c 22 67 61 73 4c asLimit||0,"gasL 00010b40: 69 6d 69 74 22 29 2c 6e 75 6c 6c 21 3d 65 2e 74 imit"),null!=e.t 00010b50: 6f 3f 4d 65 28 65 2e 74 6f 29 3a 22 30 78 22 2c o?Me(e.to):"0x", 00010b60: 64 72 28 65 2e 76 61 6c 75 65 7c 7c 30 2c 22 76 dr(e.value||0,"v 00010b70: 61 6c 75 65 22 29 2c 65 2e 64 61 74 61 7c 7c 22 alue"),e.data||" 00010b80: 30 78 22 2c 68 72 28 65 2e 61 63 63 65 73 73 4c 0x",hr(e.accessL 00010b90: 69 73 74 7c 7c 5b 5d 29 5d 3b 69 66 28 74 29 7b ist||[])];if(t){ 00010ba0: 63 6f 6e 73 74 20 65 3d 55 28 74 29 3b 6e 2e 70 const e=U(t);n.p 00010bb0: 75 73 68 28 64 72 28 65 2e 72 65 63 6f 76 65 72 ush(dr(e.recover 00010bc0: 79 50 61 72 61 6d 2c 22 72 65 63 6f 76 65 72 79 yParam,"recovery 00010bd0: 50 61 72 61 6d 22 29 29 2c 6e 2e 70 75 73 68 28 Param")),n.push( 00010be0: 41 28 65 2e 72 29 29 2c 6e 2e 70 75 73 68 28 41 A(e.r)),n.push(A 00010bf0: 28 65 2e 73 29 29 7d 72 65 74 75 72 6e 20 4d 28 (e.s))}return M( 00010c00: 5b 22 30 78 30 32 22 2c 78 65 28 6e 29 5d 29 7d ["0x02",xe(n)])} 00010c10: 66 75 6e 63 74 69 6f 6e 20 67 72 28 65 2c 74 29 function gr(e,t) 00010c20: 7b 63 6f 6e 73 74 20 6e 3d 5b 64 72 28 65 2e 63 {const n=[dr(e.c 00010c30: 68 61 69 6e 49 64 7c 7c 30 2c 22 63 68 61 69 6e hainId||0,"chain 00010c40: 49 64 22 29 2c 64 72 28 65 2e 6e 6f 6e 63 65 7c Id"),dr(e.nonce| 00010c50: 7c 30 2c 22 6e 6f 6e 63 65 22 29 2c 64 72 28 65 |0,"nonce"),dr(e 00010c60: 2e 67 61 73 50 72 69 63 65 7c 7c 30 2c 22 67 61 .gasPrice||0,"ga 00010c70: 73 50 72 69 63 65 22 29 2c 64 72 28 65 2e 67 61 sPrice"),dr(e.ga 00010c80: 73 4c 69 6d 69 74 7c 7c 30 2c 22 67 61 73 4c 69 sLimit||0,"gasLi 00010c90: 6d 69 74 22 29 2c 6e 75 6c 6c 21 3d 65 2e 74 6f mit"),null!=e.to 00010ca0: 3f 4d 65 28 65 2e 74 6f 29 3a 22 30 78 22 2c 64 ?Me(e.to):"0x",d 00010cb0: 72 28 65 2e 76 61 6c 75 65 7c 7c 30 2c 22 76 61 r(e.value||0,"va 00010cc0: 6c 75 65 22 29 2c 65 2e 64 61 74 61 7c 7c 22 30 lue"),e.data||"0 00010cd0: 78 22 2c 68 72 28 65 2e 61 63 63 65 73 73 4c 69 x",hr(e.accessLi 00010ce0: 73 74 7c 7c 5b 5d 29 5d 3b 69 66 28 74 29 7b 63 st||[])];if(t){c 00010cf0: 6f 6e 73 74 20 65 3d 55 28 74 29 3b 6e 2e 70 75 onst e=U(t);n.pu 00010d00: 73 68 28 64 72 28 65 2e 72 65 63 6f 76 65 72 79 sh(dr(e.recovery 00010d10: 50 61 72 61 6d 2c 22 72 65 63 6f 76 65 72 79 50 Param,"recoveryP 00010d20: 61 72 61 6d 22 29 29 2c 6e 2e 70 75 73 68 28 41 aram")),n.push(A 00010d30: 28 65 2e 72 29 29 2c 6e 2e 70 75 73 68 28 41 28 (e.r)),n.push(A( 00010d40: 65 2e 73 29 29 7d 72 65 74 75 72 6e 20 4d 28 5b e.s))}return M([ 00010d50: 22 30 78 30 31 22 2c 78 65 28 6e 29 5d 29 7d 66 "0x01",xe(n)])}f 00010d60: 75 6e 63 74 69 6f 6e 20 62 72 28 65 2c 74 29 7b unction br(e,t){ 00010d70: 69 66 28 6e 75 6c 6c 3d 3d 65 2e 74 79 70 65 7c if(null==e.type| 00010d80: 7c 30 3d 3d 3d 65 2e 74 79 70 65 29 72 65 74 75 |0===e.type)retu 00010d90: 72 6e 20 6e 75 6c 6c 21 3d 65 2e 61 63 63 65 73 rn null!=e.acces 00010da0: 73 4c 69 73 74 26 26 72 72 2e 74 68 72 6f 77 41 sList&&rr.throwA 00010db0: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e rgumentError("un 00010dc0: 74 79 70 65 64 20 74 72 61 6e 73 61 63 74 69 6f typed transactio 00010dd0: 6e 73 20 64 6f 20 6e 6f 74 20 73 75 70 70 6f 72 ns do not suppor 00010de0: 74 20 61 63 63 65 73 73 4c 69 73 74 3b 20 69 6e t accessList; in 00010df0: 63 6c 75 64 65 20 74 79 70 65 3a 20 31 22 2c 22 clude type: 1"," 00010e00: 74 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 29 2c transaction",e), 00010e10: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 6f 65 function(e,t){oe 00010e20: 28 65 2c 6c 72 29 3b 63 6f 6e 73 74 20 6e 3d 5b (e,lr);const n=[ 00010e30: 5d 3b 73 72 2e 66 6f 72 45 61 63 68 28 28 66 75 ];sr.forEach((fu 00010e40: 6e 63 74 69 6f 6e 28 74 29 7b 6c 65 74 20 72 3d nction(t){let r= 00010e50: 65 5b 74 2e 6e 61 6d 65 5d 7c 7c 5b 5d 3b 63 6f e[t.name]||[];co 00010e60: 6e 73 74 20 6f 3d 7b 7d 3b 74 2e 6e 75 6d 65 72 nst o={};t.numer 00010e70: 69 63 26 26 28 6f 2e 68 65 78 50 61 64 3d 22 6c ic&&(o.hexPad="l 00010e80: 65 66 74 22 29 2c 72 3d 54 28 52 28 72 2c 6f 29 eft"),r=T(R(r,o) 00010e90: 29 2c 74 2e 6c 65 6e 67 74 68 26 26 72 2e 6c 65 ),t.length&&r.le 00010ea0: 6e 67 74 68 21 3d 3d 74 2e 6c 65 6e 67 74 68 26 ngth!==t.length& 00010eb0: 26 72 2e 6c 65 6e 67 74 68 3e 30 26 26 72 72 2e &r.length>0&&rr. 00010ec0: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00010ed0: 6f 72 28 22 69 6e 76 61 6c 69 64 20 6c 65 6e 67 or("invalid leng 00010ee0: 74 68 20 66 6f 72 20 22 2b 74 2e 6e 61 6d 65 2c th for "+t.name, 00010ef0: 22 74 72 61 6e 73 61 63 74 69 6f 6e 3a 22 2b 74 "transaction:"+t 00010f00: 2e 6e 61 6d 65 2c 72 29 2c 74 2e 6d 61 78 4c 65 .name,r),t.maxLe 00010f10: 6e 67 74 68 26 26 28 72 3d 41 28 72 29 2c 72 2e ngth&&(r=A(r),r. 00010f20: 6c 65 6e 67 74 68 3e 74 2e 6d 61 78 4c 65 6e 67 length>t.maxLeng 00010f30: 74 68 26 26 72 72 2e 74 68 72 6f 77 41 72 67 75 th&&rr.throwArgu 00010f40: 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c mentError("inval 00010f50: 69 64 20 6c 65 6e 67 74 68 20 66 6f 72 20 22 2b id length for "+ 00010f60: 74 2e 6e 61 6d 65 2c 22 74 72 61 6e 73 61 63 74 t.name,"transact 00010f70: 69 6f 6e 3a 22 2b 74 2e 6e 61 6d 65 2c 72 29 29 ion:"+t.name,r)) 00010f80: 2c 6e 2e 70 75 73 68 28 52 28 72 29 29 7d 29 29 ,n.push(R(r))})) 00010f90: 3b 6c 65 74 20 72 3d 30 3b 69 66 28 6e 75 6c 6c ;let r=0;if(null 00010fa0: 21 3d 65 2e 63 68 61 69 6e 49 64 3f 28 72 3d 65 !=e.chainId?(r=e 00010fb0: 2e 63 68 61 69 6e 49 64 2c 22 6e 75 6d 62 65 72 .chainId,"number 00010fc0: 22 21 3d 74 79 70 65 6f 66 20 72 26 26 72 72 2e "!=typeof r&&rr. 00010fd0: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00010fe0: 6f 72 28 22 69 6e 76 61 6c 69 64 20 74 72 61 6e or("invalid tran 00010ff0: 73 61 63 74 69 6f 6e 2e 63 68 61 69 6e 49 64 22 saction.chainId" 00011000: 2c 22 74 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 ,"transaction",e 00011010: 29 29 3a 74 26 26 21 5f 28 74 29 26 26 74 2e 76 )):t&&!_(t)&&t.v 00011020: 3e 32 38 26 26 28 72 3d 4d 61 74 68 2e 66 6c 6f >28&&(r=Math.flo 00011030: 6f 72 28 28 74 2e 76 2d 33 35 29 2f 32 29 29 2c or((t.v-35)/2)), 00011040: 30 21 3d 3d 72 26 26 28 6e 2e 70 75 73 68 28 52 0!==r&&(n.push(R 00011050: 28 72 29 29 2c 6e 2e 70 75 73 68 28 22 30 78 22 (r)),n.push("0x" 00011060: 29 2c 6e 2e 70 75 73 68 28 22 30 78 22 29 29 2c ),n.push("0x")), 00011070: 21 74 29 72 65 74 75 72 6e 20 78 65 28 6e 29 3b !t)return xe(n); 00011080: 63 6f 6e 73 74 20 6f 3d 55 28 74 29 3b 6c 65 74 const o=U(t);let 00011090: 20 69 3d 32 37 2b 6f 2e 72 65 63 6f 76 65 72 79 i=27+o.recovery 000110a0: 50 61 72 61 6d 3b 72 65 74 75 72 6e 20 30 21 3d Param;return 0!= 000110b0: 3d 72 3f 28 6e 2e 70 6f 70 28 29 2c 6e 2e 70 6f =r?(n.pop(),n.po 000110c0: 70 28 29 2c 6e 2e 70 6f 70 28 29 2c 69 2b 3d 32 p(),n.pop(),i+=2 000110d0: 2a 72 2b 38 2c 6f 2e 76 3e 32 38 26 26 6f 2e 76 *r+8,o.v>28&&o.v 000110e0: 21 3d 3d 69 26 26 72 72 2e 74 68 72 6f 77 41 72 !==i&&rr.throwAr 000110f0: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 74 72 61 gumentError("tra 00011100: 6e 73 61 63 74 69 6f 6e 2e 63 68 61 69 6e 49 64 nsaction.chainId 00011110: 2f 73 69 67 6e 61 74 75 72 65 2e 76 20 6d 69 73 /signature.v mis 00011120: 6d 61 74 63 68 22 2c 22 73 69 67 6e 61 74 75 72 match","signatur 00011130: 65 22 2c 74 29 29 3a 6f 2e 76 21 3d 3d 69 26 26 e",t)):o.v!==i&& 00011140: 72 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 rr.throwArgument 00011150: 45 72 72 6f 72 28 22 74 72 61 6e 73 61 63 74 69 Error("transacti 00011160: 6f 6e 2e 63 68 61 69 6e 49 64 2f 73 69 67 6e 61 on.chainId/signa 00011170: 74 75 72 65 2e 76 20 6d 69 73 6d 61 74 63 68 22 ture.v mismatch" 00011180: 2c 22 73 69 67 6e 61 74 75 72 65 22 2c 74 29 2c ,"signature",t), 00011190: 6e 2e 70 75 73 68 28 52 28 69 29 29 2c 6e 2e 70 n.push(R(i)),n.p 000111a0: 75 73 68 28 41 28 54 28 6f 2e 72 29 29 29 2c 6e ush(A(T(o.r))),n 000111b0: 2e 70 75 73 68 28 41 28 54 28 6f 2e 73 29 29 29 .push(A(T(o.s))) 000111c0: 2c 78 65 28 6e 29 7d 28 65 2c 74 29 3b 73 77 69 ,xe(n)}(e,t);swi 000111d0: 74 63 68 28 65 2e 74 79 70 65 29 7b 63 61 73 65 tch(e.type){case 000111e0: 20 31 3a 72 65 74 75 72 6e 20 67 72 28 65 2c 74 1:return gr(e,t 000111f0: 29 3b 63 61 73 65 20 32 3a 72 65 74 75 72 6e 20 );case 2:return 00011200: 6d 72 28 65 2c 74 29 7d 72 65 74 75 72 6e 20 72 mr(e,t)}return r 00011210: 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 60 75 6e r.throwError(`un 00011220: 73 75 70 70 6f 72 74 65 64 20 74 72 61 6e 73 61 supported transa 00011230: 63 74 69 6f 6e 20 74 79 70 65 3a 20 24 7b 65 2e ction type: ${e. 00011240: 74 79 70 65 7d 60 2c 79 2e 65 72 72 6f 72 73 2e type}`,y.errors. 00011250: 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 UNSUPPORTED_OPER 00011260: 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e ATION,{operation 00011270: 3a 22 73 65 72 69 61 6c 69 7a 65 54 72 61 6e 73 :"serializeTrans 00011280: 61 63 74 69 6f 6e 22 2c 74 72 61 6e 73 61 63 74 action",transact 00011290: 69 6f 6e 54 79 70 65 3a 65 2e 74 79 70 65 7d 29 ionType:e.type}) 000112a0: 7d 66 75 6e 63 74 69 6f 6e 20 79 72 28 65 2c 74 }function yr(e,t 000112b0: 2c 6e 29 7b 74 72 79 7b 63 6f 6e 73 74 20 6e 3d ,n){try{const n= 000112c0: 61 72 28 74 5b 30 5d 29 2e 74 6f 4e 75 6d 62 65 ar(t[0]).toNumbe 000112d0: 72 28 29 3b 69 66 28 30 21 3d 3d 6e 26 26 31 21 r();if(0!==n&&1! 000112e0: 3d 3d 6e 29 74 68 72 6f 77 20 6e 65 77 20 45 72 ==n)throw new Er 000112f0: 72 6f 72 28 22 62 61 64 20 72 65 63 69 64 22 29 ror("bad recid") 00011300: 3b 65 2e 76 3d 6e 7d 63 61 74 63 68 28 65 29 7b ;e.v=n}catch(e){ 00011310: 72 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 rr.throwArgument 00011320: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 76 Error("invalid v 00011330: 20 66 6f 72 20 74 72 61 6e 73 61 63 74 69 6f 6e for transaction 00011340: 20 74 79 70 65 3a 20 31 22 2c 22 76 22 2c 74 5b type: 1","v",t[ 00011350: 30 5d 29 7d 65 2e 72 3d 46 28 74 5b 31 5d 2c 33 0])}e.r=F(t[1],3 00011360: 32 29 2c 65 2e 73 3d 46 28 74 5b 32 5d 2c 33 32 2),e.s=F(t[2],32 00011370: 29 3b 74 72 79 7b 63 6f 6e 73 74 20 74 3d 76 65 );try{const t=ve 00011380: 28 6e 28 65 29 29 3b 65 2e 66 72 6f 6d 3d 75 72 (n(e));e.from=ur 00011390: 28 74 2c 7b 72 3a 65 2e 72 2c 73 3a 65 2e 73 2c (t,{r:e.r,s:e.s, 000113a0: 72 65 63 6f 76 65 72 79 50 61 72 61 6d 3a 65 2e recoveryParam:e. 000113b0: 76 7d 29 7d 63 61 74 63 68 28 65 29 7b 7d 7d 66 v})}catch(e){}}f 000113c0: 75 6e 63 74 69 6f 6e 20 76 72 28 65 29 7b 63 6f unction vr(e){co 000113d0: 6e 73 74 20 74 3d 54 28 65 29 3b 69 66 28 74 5b nst t=T(e);if(t[ 000113e0: 30 5d 3e 31 32 37 29 72 65 74 75 72 6e 20 66 75 0]>127)return fu 000113f0: 6e 63 74 69 6f 6e 28 65 29 7b 63 6f 6e 73 74 20 nction(e){const 00011400: 74 3d 41 65 28 65 29 3b 39 21 3d 3d 74 2e 6c 65 t=Ae(e);9!==t.le 00011410: 6e 67 74 68 26 26 36 21 3d 3d 74 2e 6c 65 6e 67 ngth&&6!==t.leng 00011420: 74 68 26 26 72 72 2e 74 68 72 6f 77 41 72 67 75 th&&rr.throwArgu 00011430: 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c mentError("inval 00011440: 69 64 20 72 61 77 20 74 72 61 6e 73 61 63 74 69 id raw transacti 00011450: 6f 6e 22 2c 22 72 61 77 54 72 61 6e 73 61 63 74 on","rawTransact 00011460: 69 6f 6e 22 2c 65 29 3b 63 6f 6e 73 74 20 6e 3d ion",e);const n= 00011470: 7b 6e 6f 6e 63 65 3a 61 72 28 74 5b 30 5d 29 2e {nonce:ar(t[0]). 00011480: 74 6f 4e 75 6d 62 65 72 28 29 2c 67 61 73 50 72 toNumber(),gasPr 00011490: 69 63 65 3a 61 72 28 74 5b 31 5d 29 2c 67 61 73 ice:ar(t[1]),gas 000114a0: 4c 69 6d 69 74 3a 61 72 28 74 5b 32 5d 29 2c 74 Limit:ar(t[2]),t 000114b0: 6f 3a 69 72 28 74 5b 33 5d 29 2c 76 61 6c 75 65 o:ir(t[3]),value 000114c0: 3a 61 72 28 74 5b 34 5d 29 2c 64 61 74 61 3a 74 :ar(t[4]),data:t 000114d0: 5b 35 5d 2c 63 68 61 69 6e 49 64 3a 30 7d 3b 69 [5],chainId:0};i 000114e0: 66 28 36 3d 3d 3d 74 2e 6c 65 6e 67 74 68 29 72 f(6===t.length)r 000114f0: 65 74 75 72 6e 20 6e 3b 74 72 79 7b 6e 2e 76 3d eturn n;try{n.v= 00011500: 59 2e 66 72 6f 6d 28 74 5b 36 5d 29 2e 74 6f 4e Y.from(t[6]).toN 00011510: 75 6d 62 65 72 28 29 7d 63 61 74 63 68 28 65 29 umber()}catch(e) 00011520: 7b 72 65 74 75 72 6e 20 6e 7d 69 66 28 6e 2e 72 {return n}if(n.r 00011530: 3d 46 28 74 5b 37 5d 2c 33 32 29 2c 6e 2e 73 3d =F(t[7],32),n.s= 00011540: 46 28 74 5b 38 5d 2c 33 32 29 2c 59 2e 66 72 6f F(t[8],32),Y.fro 00011550: 6d 28 6e 2e 72 29 2e 69 73 5a 65 72 6f 28 29 26 m(n.r).isZero()& 00011560: 26 59 2e 66 72 6f 6d 28 6e 2e 73 29 2e 69 73 5a &Y.from(n.s).isZ 00011570: 65 72 6f 28 29 29 6e 2e 63 68 61 69 6e 49 64 3d ero())n.chainId= 00011580: 6e 2e 76 2c 6e 2e 76 3d 30 3b 65 6c 73 65 7b 6e n.v,n.v=0;else{n 00011590: 2e 63 68 61 69 6e 49 64 3d 4d 61 74 68 2e 66 6c .chainId=Math.fl 000115a0: 6f 6f 72 28 28 6e 2e 76 2d 33 35 29 2f 32 29 2c oor((n.v-35)/2), 000115b0: 6e 2e 63 68 61 69 6e 49 64 3c 30 26 26 28 6e 2e n.chainId<0&&(n. 000115c0: 63 68 61 69 6e 49 64 3d 30 29 3b 6c 65 74 20 72 chainId=0);let r 000115d0: 3d 6e 2e 76 2d 32 37 3b 63 6f 6e 73 74 20 6f 3d =n.v-27;const o= 000115e0: 74 2e 73 6c 69 63 65 28 30 2c 36 29 3b 30 21 3d t.slice(0,6);0!= 000115f0: 3d 6e 2e 63 68 61 69 6e 49 64 26 26 28 6f 2e 70 =n.chainId&&(o.p 00011600: 75 73 68 28 52 28 6e 2e 63 68 61 69 6e 49 64 29 ush(R(n.chainId) 00011610: 29 2c 6f 2e 70 75 73 68 28 22 30 78 22 29 2c 6f ),o.push("0x"),o 00011620: 2e 70 75 73 68 28 22 30 78 22 29 2c 72 2d 3d 32 .push("0x"),r-=2 00011630: 2a 6e 2e 63 68 61 69 6e 49 64 2b 38 29 3b 63 6f *n.chainId+8);co 00011640: 6e 73 74 20 69 3d 76 65 28 78 65 28 6f 29 29 3b nst i=ve(xe(o)); 00011650: 74 72 79 7b 6e 2e 66 72 6f 6d 3d 75 72 28 69 2c try{n.from=ur(i, 00011660: 7b 72 3a 52 28 6e 2e 72 29 2c 73 3a 52 28 6e 2e {r:R(n.r),s:R(n. 00011670: 73 29 2c 72 65 63 6f 76 65 72 79 50 61 72 61 6d s),recoveryParam 00011680: 3a 72 7d 29 7d 63 61 74 63 68 28 65 29 7b 7d 6e :r})}catch(e){}n 00011690: 2e 68 61 73 68 3d 76 65 28 65 29 7d 72 65 74 75 .hash=ve(e)}retu 000116a0: 72 6e 20 6e 2e 74 79 70 65 3d 6e 75 6c 6c 2c 6e rn n.type=null,n 000116b0: 7d 28 74 29 3b 73 77 69 74 63 68 28 74 5b 30 5d }(t);switch(t[0] 000116c0: 29 7b 63 61 73 65 20 31 3a 72 65 74 75 72 6e 20 ){case 1:return 000116d0: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 63 6f 6e 73 function(e){cons 000116e0: 74 20 74 3d 41 65 28 65 2e 73 6c 69 63 65 28 31 t t=Ae(e.slice(1 000116f0: 29 29 3b 38 21 3d 3d 74 2e 6c 65 6e 67 74 68 26 ));8!==t.length& 00011700: 26 31 31 21 3d 3d 74 2e 6c 65 6e 67 74 68 26 26 &11!==t.length&& 00011710: 72 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 rr.throwArgument 00011720: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 63 Error("invalid c 00011730: 6f 6d 70 6f 6e 65 6e 74 20 63 6f 75 6e 74 20 66 omponent count f 00011740: 6f 72 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 74 or transaction t 00011750: 79 70 65 3a 20 31 22 2c 22 70 61 79 6c 6f 61 64 ype: 1","payload 00011760: 22 2c 52 28 65 29 29 3b 63 6f 6e 73 74 20 6e 3d ",R(e));const n= 00011770: 7b 74 79 70 65 3a 31 2c 63 68 61 69 6e 49 64 3a {type:1,chainId: 00011780: 61 72 28 74 5b 30 5d 29 2e 74 6f 4e 75 6d 62 65 ar(t[0]).toNumbe 00011790: 72 28 29 2c 6e 6f 6e 63 65 3a 61 72 28 74 5b 31 r(),nonce:ar(t[1 000117a0: 5d 29 2e 74 6f 4e 75 6d 62 65 72 28 29 2c 67 61 ]).toNumber(),ga 000117b0: 73 50 72 69 63 65 3a 61 72 28 74 5b 32 5d 29 2c sPrice:ar(t[2]), 000117c0: 67 61 73 4c 69 6d 69 74 3a 61 72 28 74 5b 33 5d gasLimit:ar(t[3] 000117d0: 29 2c 74 6f 3a 69 72 28 74 5b 34 5d 29 2c 76 61 ),to:ir(t[4]),va 000117e0: 6c 75 65 3a 61 72 28 74 5b 35 5d 29 2c 64 61 74 lue:ar(t[5]),dat 000117f0: 61 3a 74 5b 36 5d 2c 61 63 63 65 73 73 4c 69 73 a:t[6],accessLis 00011800: 74 3a 66 72 28 74 5b 37 5d 29 7d 3b 72 65 74 75 t:fr(t[7])};retu 00011810: 72 6e 20 38 3d 3d 3d 74 2e 6c 65 6e 67 74 68 7c rn 8===t.length| 00011820: 7c 28 6e 2e 68 61 73 68 3d 76 65 28 65 29 2c 79 |(n.hash=ve(e),y 00011830: 72 28 6e 2c 74 2e 73 6c 69 63 65 28 38 29 2c 67 r(n,t.slice(8),g 00011840: 72 29 29 2c 6e 7d 28 74 29 3b 63 61 73 65 20 32 r)),n}(t);case 2 00011850: 3a 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e :return function 00011860: 28 65 29 7b 63 6f 6e 73 74 20 74 3d 41 65 28 65 (e){const t=Ae(e 00011870: 2e 73 6c 69 63 65 28 31 29 29 3b 39 21 3d 3d 74 .slice(1));9!==t 00011880: 2e 6c 65 6e 67 74 68 26 26 31 32 21 3d 3d 74 2e .length&&12!==t. 00011890: 6c 65 6e 67 74 68 26 26 72 72 2e 74 68 72 6f 77 length&&rr.throw 000118a0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 000118b0: 6e 76 61 6c 69 64 20 63 6f 6d 70 6f 6e 65 6e 74 nvalid component 000118c0: 20 63 6f 75 6e 74 20 66 6f 72 20 74 72 61 6e 73 count for trans 000118d0: 61 63 74 69 6f 6e 20 74 79 70 65 3a 20 32 22 2c action type: 2", 000118e0: 22 70 61 79 6c 6f 61 64 22 2c 52 28 65 29 29 3b "payload",R(e)); 000118f0: 63 6f 6e 73 74 20 6e 3d 61 72 28 74 5b 32 5d 29 const n=ar(t[2]) 00011900: 2c 72 3d 61 72 28 74 5b 33 5d 29 2c 6f 3d 7b 74 ,r=ar(t[3]),o={t 00011910: 79 70 65 3a 32 2c 63 68 61 69 6e 49 64 3a 61 72 ype:2,chainId:ar 00011920: 28 74 5b 30 5d 29 2e 74 6f 4e 75 6d 62 65 72 28 (t[0]).toNumber( 00011930: 29 2c 6e 6f 6e 63 65 3a 61 72 28 74 5b 31 5d 29 ),nonce:ar(t[1]) 00011940: 2e 74 6f 4e 75 6d 62 65 72 28 29 2c 6d 61 78 50 .toNumber(),maxP 00011950: 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 riorityFeePerGas 00011960: 3a 6e 2c 6d 61 78 46 65 65 50 65 72 47 61 73 3a :n,maxFeePerGas: 00011970: 72 2c 67 61 73 50 72 69 63 65 3a 6e 75 6c 6c 2c r,gasPrice:null, 00011980: 67 61 73 4c 69 6d 69 74 3a 61 72 28 74 5b 34 5d gasLimit:ar(t[4] 00011990: 29 2c 74 6f 3a 69 72 28 74 5b 35 5d 29 2c 76 61 ),to:ir(t[5]),va 000119a0: 6c 75 65 3a 61 72 28 74 5b 36 5d 29 2c 64 61 74 lue:ar(t[6]),dat 000119b0: 61 3a 74 5b 37 5d 2c 61 63 63 65 73 73 4c 69 73 a:t[7],accessLis 000119c0: 74 3a 66 72 28 74 5b 38 5d 29 7d 3b 72 65 74 75 t:fr(t[8])};retu 000119d0: 72 6e 20 39 3d 3d 3d 74 2e 6c 65 6e 67 74 68 7c rn 9===t.length| 000119e0: 7c 28 6f 2e 68 61 73 68 3d 76 65 28 65 29 2c 79 |(o.hash=ve(e),y 000119f0: 72 28 6f 2c 74 2e 73 6c 69 63 65 28 39 29 2c 6d r(o,t.slice(9),m 00011a00: 72 29 29 2c 6f 7d 28 74 29 7d 72 65 74 75 72 6e r)),o}(t)}return 00011a10: 20 72 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 60 rr.throwError(` 00011a20: 75 6e 73 75 70 70 6f 72 74 65 64 20 74 72 61 6e unsupported tran 00011a30: 73 61 63 74 69 6f 6e 20 74 79 70 65 3a 20 24 7b saction type: ${ 00011a40: 74 5b 30 5d 7d 60 2c 79 2e 65 72 72 6f 72 73 2e t[0]}`,y.errors. 00011a50: 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 UNSUPPORTED_OPER 00011a60: 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e ATION,{operation 00011a70: 3a 22 70 61 72 73 65 54 72 61 6e 73 61 63 74 69 :"parseTransacti 00011a80: 6f 6e 22 2c 74 72 61 6e 73 61 63 74 69 6f 6e 54 on",transactionT 00011a90: 79 70 65 3a 74 5b 30 5d 7d 29 7d 76 61 72 20 53 ype:t[0]})}var S 00011aa0: 72 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e r=function(e,t,n 00011ab0: 2c 72 29 7b 72 65 74 75 72 6e 20 6e 65 77 28 6e ,r){return new(n 00011ac0: 7c 7c 28 6e 3d 50 72 6f 6d 69 73 65 29 29 28 28 ||(n=Promise))(( 00011ad0: 66 75 6e 63 74 69 6f 6e 28 6f 2c 69 29 7b 66 75 function(o,i){fu 00011ae0: 6e 63 74 69 6f 6e 20 61 28 65 29 7b 74 72 79 7b nction a(e){try{ 00011af0: 6c 28 72 2e 6e 65 78 74 28 65 29 29 7d 63 61 74 l(r.next(e))}cat 00011b00: 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 ch(e){i(e)}}func 00011b10: 74 69 6f 6e 20 73 28 65 29 7b 74 72 79 7b 6c 28 tion s(e){try{l( 00011b20: 72 2e 74 68 72 6f 77 28 65 29 29 7d 63 61 74 63 r.throw(e))}catc 00011b30: 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 h(e){i(e)}}funct 00011b40: 69 6f 6e 20 6c 28 65 29 7b 76 61 72 20 74 3b 65 ion l(e){var t;e 00011b50: 2e 64 6f 6e 65 3f 6f 28 65 2e 76 61 6c 75 65 29 .done?o(e.value) 00011b60: 3a 28 74 3d 65 2e 76 61 6c 75 65 2c 74 20 69 6e :(t=e.value,t in 00011b70: 73 74 61 6e 63 65 6f 66 20 6e 3f 74 3a 6e 65 77 stanceof n?t:new 00011b80: 20 6e 28 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b n((function(e){ 00011b90: 65 28 74 29 7d 29 29 29 2e 74 68 65 6e 28 61 2c e(t)}))).then(a, 00011ba0: 73 29 7d 6c 28 28 72 3d 72 2e 61 70 70 6c 79 28 s)}l((r=r.apply( 00011bb0: 65 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 78 74 28 29 e,t||[])).next() 00011bc0: 29 7d 29 29 7d 3b 63 6f 6e 73 74 20 45 72 3d 6e )}))};const Er=n 00011bd0: 65 77 20 79 28 22 63 6f 6e 74 72 61 63 74 73 2f ew y("contracts/ 00011be0: 35 2e 37 2e 30 22 29 2c 5f 72 3d 7b 63 68 61 69 5.7.0"),_r={chai 00011bf0: 6e 49 64 3a 21 30 2c 64 61 74 61 3a 21 30 2c 66 nId:!0,data:!0,f 00011c00: 72 6f 6d 3a 21 30 2c 67 61 73 4c 69 6d 69 74 3a rom:!0,gasLimit: 00011c10: 21 30 2c 67 61 73 50 72 69 63 65 3a 21 30 2c 6e !0,gasPrice:!0,n 00011c20: 6f 6e 63 65 3a 21 30 2c 74 6f 3a 21 30 2c 76 61 once:!0,to:!0,va 00011c30: 6c 75 65 3a 21 30 2c 74 79 70 65 3a 21 30 2c 61 lue:!0,type:!0,a 00011c40: 63 63 65 73 73 4c 69 73 74 3a 21 30 2c 6d 61 78 ccessList:!0,max 00011c50: 46 65 65 50 65 72 47 61 73 3a 21 30 2c 6d 61 78 FeePerGas:!0,max 00011c60: 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 61 PriorityFeePerGa 00011c70: 73 3a 21 30 2c 63 75 73 74 6f 6d 44 61 74 61 3a s:!0,customData: 00011c80: 21 30 2c 63 63 69 70 52 65 61 64 45 6e 61 62 6c !0,ccipReadEnabl 00011c90: 65 64 3a 21 30 7d 3b 66 75 6e 63 74 69 6f 6e 20 ed:!0};function 00011ca0: 77 72 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 53 wr(e,t){return S 00011cb0: 72 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f r(this,void 0,vo 00011cc0: 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 id 0,(function*( 00011cd0: 29 7b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c 64 20 ){const n=yield 00011ce0: 74 3b 22 73 74 72 69 6e 67 22 21 3d 74 79 70 65 t;"string"!=type 00011cf0: 6f 66 20 6e 26 26 45 72 2e 74 68 72 6f 77 41 72 of n&&Er.throwAr 00011d00: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 00011d10: 61 6c 69 64 20 61 64 64 72 65 73 73 20 6f 72 20 alid address or 00011d20: 45 4e 53 20 6e 61 6d 65 22 2c 22 6e 61 6d 65 22 ENS name","name" 00011d30: 2c 6e 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 4d ,n);try{return M 00011d40: 65 28 6e 29 7d 63 61 74 63 68 28 65 29 7b 7d 65 e(n)}catch(e){}e 00011d50: 7c 7c 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 ||Er.throwError( 00011d60: 22 61 20 70 72 6f 76 69 64 65 72 20 6f 72 20 73 "a provider or s 00011d70: 69 67 6e 65 72 20 69 73 20 6e 65 65 64 65 64 20 igner is needed 00011d80: 74 6f 20 72 65 73 6f 6c 76 65 20 45 4e 53 20 6e to resolve ENS n 00011d90: 61 6d 65 73 22 2c 79 2e 65 72 72 6f 72 73 2e 55 ames",y.errors.U 00011da0: 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 41 NSUPPORTED_OPERA 00011db0: 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a TION,{operation: 00011dc0: 22 72 65 73 6f 6c 76 65 4e 61 6d 65 22 7d 29 3b "resolveName"}); 00011dd0: 63 6f 6e 73 74 20 72 3d 79 69 65 6c 64 20 65 2e const r=yield e. 00011de0: 72 65 73 6f 6c 76 65 4e 61 6d 65 28 6e 29 3b 72 resolveName(n);r 00011df0: 65 74 75 72 6e 20 6e 75 6c 6c 3d 3d 72 26 26 45 eturn null==r&&E 00011e00: 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 r.throwArgumentE 00011e10: 72 72 6f 72 28 22 72 65 73 6f 6c 76 65 72 20 6f rror("resolver o 00011e20: 72 20 61 64 64 72 20 69 73 20 6e 6f 74 20 63 6f r addr is not co 00011e30: 6e 66 69 67 75 72 65 64 20 66 6f 72 20 45 4e 53 nfigured for ENS 00011e40: 20 6e 61 6d 65 22 2c 22 6e 61 6d 65 22 2c 6e 29 name","name",n) 00011e50: 2c 72 7d 29 29 7d 66 75 6e 63 74 69 6f 6e 20 78 ,r}))}function x 00011e60: 72 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e 20 r(e,t,n){return 00011e70: 53 72 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 Sr(this,void 0,v 00011e80: 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a oid 0,(function* 00011e90: 28 29 7b 72 65 74 75 72 6e 20 41 72 72 61 79 2e (){return Array. 00011ea0: 69 73 41 72 72 61 79 28 6e 29 3f 79 69 65 6c 64 isArray(n)?yield 00011eb0: 20 50 72 6f 6d 69 73 65 2e 61 6c 6c 28 6e 2e 6d Promise.all(n.m 00011ec0: 61 70 28 28 28 6e 2c 72 29 3d 3e 78 72 28 65 2c ap(((n,r)=>xr(e, 00011ed0: 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 74 29 Array.isArray(t) 00011ee0: 3f 74 5b 72 5d 3a 74 5b 6e 2e 6e 61 6d 65 5d 2c ?t[r]:t[n.name], 00011ef0: 6e 29 29 29 29 3a 22 61 64 64 72 65 73 73 22 3d n)))):"address"= 00011f00: 3d 3d 6e 2e 74 79 70 65 3f 79 69 65 6c 64 20 77 ==n.type?yield w 00011f10: 72 28 65 2c 74 29 3a 22 74 75 70 6c 65 22 3d 3d r(e,t):"tuple"== 00011f20: 3d 6e 2e 74 79 70 65 3f 79 69 65 6c 64 20 78 72 =n.type?yield xr 00011f30: 28 65 2c 74 2c 6e 2e 63 6f 6d 70 6f 6e 65 6e 74 (e,t,n.component 00011f40: 73 29 3a 22 61 72 72 61 79 22 3d 3d 3d 6e 2e 62 s):"array"===n.b 00011f50: 61 73 65 54 79 70 65 3f 41 72 72 61 79 2e 69 73 aseType?Array.is 00011f60: 41 72 72 61 79 28 74 29 3f 79 69 65 6c 64 20 50 Array(t)?yield P 00011f70: 72 6f 6d 69 73 65 2e 61 6c 6c 28 74 2e 6d 61 70 romise.all(t.map 00011f80: 28 28 74 3d 3e 78 72 28 65 2c 74 2c 6e 2e 61 72 ((t=>xr(e,t,n.ar 00011f90: 72 61 79 43 68 69 6c 64 72 65 6e 29 29 29 29 3a rayChildren)))): 00011fa0: 50 72 6f 6d 69 73 65 2e 72 65 6a 65 63 74 28 45 Promise.reject(E 00011fb0: 72 2e 6d 61 6b 65 45 72 72 6f 72 28 22 69 6e 76 r.makeError("inv 00011fc0: 61 6c 69 64 20 76 61 6c 75 65 20 66 6f 72 20 61 alid value for a 00011fd0: 72 72 61 79 22 2c 79 2e 65 72 72 6f 72 73 2e 49 rray",y.errors.I 00011fe0: 4e 56 41 4c 49 44 5f 41 52 47 55 4d 45 4e 54 2c NVALID_ARGUMENT, 00011ff0: 7b 61 72 67 75 6d 65 6e 74 3a 22 76 61 6c 75 65 {argument:"value 00012000: 22 2c 76 61 6c 75 65 3a 74 7d 29 29 3a 74 7d 29 ",value:t})):t}) 00012010: 29 7d 66 75 6e 63 74 69 6f 6e 20 54 72 28 65 2c )}function Tr(e, 00012020: 74 2c 6e 29 7b 72 65 74 75 72 6e 20 53 72 28 74 t,n){return Sr(t 00012030: 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 his,void 0,void 00012040: 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6c 0,(function*(){l 00012050: 65 74 20 72 3d 7b 7d 3b 6e 2e 6c 65 6e 67 74 68 et r={};n.length 00012060: 3d 3d 3d 74 2e 69 6e 70 75 74 73 2e 6c 65 6e 67 ===t.inputs.leng 00012070: 74 68 2b 31 26 26 22 6f 62 6a 65 63 74 22 3d 3d th+1&&"object"== 00012080: 74 79 70 65 6f 66 20 6e 5b 6e 2e 6c 65 6e 67 74 typeof n[n.lengt 00012090: 68 2d 31 5d 26 26 28 72 3d 69 65 28 6e 2e 70 6f h-1]&&(r=ie(n.po 000120a0: 70 28 29 29 29 2c 45 72 2e 63 68 65 63 6b 41 72 p())),Er.checkAr 000120b0: 67 75 6d 65 6e 74 43 6f 75 6e 74 28 6e 2e 6c 65 gumentCount(n.le 000120c0: 6e 67 74 68 2c 74 2e 69 6e 70 75 74 73 2e 6c 65 ngth,t.inputs.le 000120d0: 6e 67 74 68 2c 22 70 61 73 73 65 64 20 74 6f 20 ngth,"passed to 000120e0: 63 6f 6e 74 72 61 63 74 22 29 2c 65 2e 73 69 67 contract"),e.sig 000120f0: 6e 65 72 3f 72 2e 66 72 6f 6d 3f 72 2e 66 72 6f ner?r.from?r.fro 00012100: 6d 3d 72 65 28 7b 6f 76 65 72 72 69 64 65 3a 77 m=re({override:w 00012110: 72 28 65 2e 73 69 67 6e 65 72 2c 72 2e 66 72 6f r(e.signer,r.fro 00012120: 6d 29 2c 73 69 67 6e 65 72 3a 65 2e 73 69 67 6e m),signer:e.sign 00012130: 65 72 2e 67 65 74 41 64 64 72 65 73 73 28 29 7d er.getAddress()} 00012140: 29 2e 74 68 65 6e 28 28 65 3d 3e 53 72 28 74 68 ).then((e=>Sr(th 00012150: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 00012160: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 ,(function*(){re 00012170: 74 75 72 6e 20 4d 65 28 65 2e 73 69 67 6e 65 72 turn Me(e.signer 00012180: 29 21 3d 3d 65 2e 6f 76 65 72 72 69 64 65 26 26 )!==e.override&& 00012190: 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 43 Er.throwError("C 000121a0: 6f 6e 74 72 61 63 74 20 77 69 74 68 20 61 20 53 ontract with a S 000121b0: 69 67 6e 65 72 20 63 61 6e 6e 6f 74 20 6f 76 65 igner cannot ove 000121c0: 72 72 69 64 65 20 66 72 6f 6d 22 2c 79 2e 65 72 rride from",y.er 000121d0: 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 rors.UNSUPPORTED 000121e0: 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 _OPERATION,{oper 000121f0: 61 74 69 6f 6e 3a 22 6f 76 65 72 72 69 64 65 73 ation:"overrides 00012200: 2e 66 72 6f 6d 22 7d 29 2c 65 2e 6f 76 65 72 72 .from"}),e.overr 00012210: 69 64 65 7d 29 29 29 29 3a 72 2e 66 72 6f 6d 3d ide})))):r.from= 00012220: 65 2e 73 69 67 6e 65 72 2e 67 65 74 41 64 64 72 e.signer.getAddr 00012230: 65 73 73 28 29 3a 72 2e 66 72 6f 6d 26 26 28 72 ess():r.from&&(r 00012240: 2e 66 72 6f 6d 3d 77 72 28 65 2e 70 72 6f 76 69 .from=wr(e.provi 00012250: 64 65 72 2c 72 2e 66 72 6f 6d 29 29 3b 63 6f 6e der,r.from));con 00012260: 73 74 20 6f 3d 79 69 65 6c 64 20 72 65 28 7b 61 st o=yield re({a 00012270: 72 67 73 3a 78 72 28 65 2e 73 69 67 6e 65 72 7c rgs:xr(e.signer| 00012280: 7c 65 2e 70 72 6f 76 69 64 65 72 2c 6e 2c 74 2e |e.provider,n,t. 00012290: 69 6e 70 75 74 73 29 2c 61 64 64 72 65 73 73 3a inputs),address: 000122a0: 65 2e 72 65 73 6f 6c 76 65 64 41 64 64 72 65 73 e.resolvedAddres 000122b0: 73 2c 6f 76 65 72 72 69 64 65 73 3a 72 65 28 72 s,overrides:re(r 000122c0: 29 7c 7c 7b 7d 7d 29 2c 69 3d 65 2e 69 6e 74 65 )||{}}),i=e.inte 000122d0: 72 66 61 63 65 2e 65 6e 63 6f 64 65 46 75 6e 63 rface.encodeFunc 000122e0: 74 69 6f 6e 44 61 74 61 28 74 2c 6f 2e 61 72 67 tionData(t,o.arg 000122f0: 73 29 2c 61 3d 7b 64 61 74 61 3a 69 2c 74 6f 3a s),a={data:i,to: 00012300: 6f 2e 61 64 64 72 65 73 73 7d 2c 73 3d 6f 2e 6f o.address},s=o.o 00012310: 76 65 72 72 69 64 65 73 3b 69 66 28 6e 75 6c 6c verrides;if(null 00012320: 21 3d 73 2e 6e 6f 6e 63 65 26 26 28 61 2e 6e 6f !=s.nonce&&(a.no 00012330: 6e 63 65 3d 59 2e 66 72 6f 6d 28 73 2e 6e 6f 6e nce=Y.from(s.non 00012340: 63 65 29 2e 74 6f 4e 75 6d 62 65 72 28 29 29 2c ce).toNumber()), 00012350: 6e 75 6c 6c 21 3d 73 2e 67 61 73 4c 69 6d 69 74 null!=s.gasLimit 00012360: 26 26 28 61 2e 67 61 73 4c 69 6d 69 74 3d 59 2e &&(a.gasLimit=Y. 00012370: 66 72 6f 6d 28 73 2e 67 61 73 4c 69 6d 69 74 29 from(s.gasLimit) 00012380: 29 2c 6e 75 6c 6c 21 3d 73 2e 67 61 73 50 72 69 ),null!=s.gasPri 00012390: 63 65 26 26 28 61 2e 67 61 73 50 72 69 63 65 3d ce&&(a.gasPrice= 000123a0: 59 2e 66 72 6f 6d 28 73 2e 67 61 73 50 72 69 63 Y.from(s.gasPric 000123b0: 65 29 29 2c 6e 75 6c 6c 21 3d 73 2e 6d 61 78 46 e)),null!=s.maxF 000123c0: 65 65 50 65 72 47 61 73 26 26 28 61 2e 6d 61 78 eePerGas&&(a.max 000123d0: 46 65 65 50 65 72 47 61 73 3d 59 2e 66 72 6f 6d FeePerGas=Y.from 000123e0: 28 73 2e 6d 61 78 46 65 65 50 65 72 47 61 73 29 (s.maxFeePerGas) 000123f0: 29 2c 6e 75 6c 6c 21 3d 73 2e 6d 61 78 50 72 69 ),null!=s.maxPri 00012400: 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 26 26 orityFeePerGas&& 00012410: 28 61 2e 6d 61 78 50 72 69 6f 72 69 74 79 46 65 (a.maxPriorityFe 00012420: 65 50 65 72 47 61 73 3d 59 2e 66 72 6f 6d 28 73 ePerGas=Y.from(s 00012430: 2e 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 .maxPriorityFeeP 00012440: 65 72 47 61 73 29 29 2c 6e 75 6c 6c 21 3d 73 2e erGas)),null!=s. 00012450: 66 72 6f 6d 26 26 28 61 2e 66 72 6f 6d 3d 73 2e from&&(a.from=s. 00012460: 66 72 6f 6d 29 2c 6e 75 6c 6c 21 3d 73 2e 74 79 from),null!=s.ty 00012470: 70 65 26 26 28 61 2e 74 79 70 65 3d 73 2e 74 79 pe&&(a.type=s.ty 00012480: 70 65 29 2c 6e 75 6c 6c 21 3d 73 2e 61 63 63 65 pe),null!=s.acce 00012490: 73 73 4c 69 73 74 26 26 28 61 2e 61 63 63 65 73 ssList&&(a.acces 000124a0: 73 4c 69 73 74 3d 66 72 28 73 2e 61 63 63 65 73 sList=fr(s.acces 000124b0: 73 4c 69 73 74 29 29 2c 6e 75 6c 6c 3d 3d 61 2e sList)),null==a. 000124c0: 67 61 73 4c 69 6d 69 74 26 26 6e 75 6c 6c 21 3d gasLimit&&null!= 000124d0: 74 2e 67 61 73 29 7b 6c 65 74 20 65 3d 32 31 65 t.gas){let e=21e 000124e0: 33 3b 63 6f 6e 73 74 20 6e 3d 54 28 69 29 3b 66 3;const n=T(i);f 000124f0: 6f 72 28 6c 65 74 20 74 3d 30 3b 74 3c 6e 2e 6c or(let t=0;t<n.l 00012500: 65 6e 67 74 68 3b 74 2b 2b 29 65 2b 3d 34 2c 6e ength;t++)e+=4,n 00012510: 5b 74 5d 26 26 28 65 2b 3d 36 34 29 3b 61 2e 67 [t]&&(e+=64);a.g 00012520: 61 73 4c 69 6d 69 74 3d 59 2e 66 72 6f 6d 28 74 asLimit=Y.from(t 00012530: 2e 67 61 73 29 2e 61 64 64 28 65 29 7d 69 66 28 .gas).add(e)}if( 00012540: 73 2e 76 61 6c 75 65 29 7b 63 6f 6e 73 74 20 65 s.value){const e 00012550: 3d 59 2e 66 72 6f 6d 28 73 2e 76 61 6c 75 65 29 =Y.from(s.value) 00012560: 3b 65 2e 69 73 5a 65 72 6f 28 29 7c 7c 74 2e 70 ;e.isZero()||t.p 00012570: 61 79 61 62 6c 65 7c 7c 45 72 2e 74 68 72 6f 77 ayable||Er.throw 00012580: 45 72 72 6f 72 28 22 6e 6f 6e 2d 70 61 79 61 62 Error("non-payab 00012590: 6c 65 20 6d 65 74 68 6f 64 20 63 61 6e 6e 6f 74 le method cannot 000125a0: 20 6f 76 65 72 72 69 64 65 20 76 61 6c 75 65 22 override value" 000125b0: 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 ,y.errors.UNSUPP 000125c0: 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c ORTED_OPERATION, 000125d0: 7b 6f 70 65 72 61 74 69 6f 6e 3a 22 6f 76 65 72 {operation:"over 000125e0: 72 69 64 65 73 2e 76 61 6c 75 65 22 2c 76 61 6c rides.value",val 000125f0: 75 65 3a 72 2e 76 61 6c 75 65 7d 29 2c 61 2e 76 ue:r.value}),a.v 00012600: 61 6c 75 65 3d 65 7d 73 2e 63 75 73 74 6f 6d 44 alue=e}s.customD 00012610: 61 74 61 26 26 28 61 2e 63 75 73 74 6f 6d 44 61 ata&&(a.customDa 00012620: 74 61 3d 69 65 28 73 2e 63 75 73 74 6f 6d 44 61 ta=ie(s.customDa 00012630: 74 61 29 29 2c 73 2e 63 63 69 70 52 65 61 64 45 ta)),s.ccipReadE 00012640: 6e 61 62 6c 65 64 26 26 28 61 2e 63 63 69 70 52 nabled&&(a.ccipR 00012650: 65 61 64 45 6e 61 62 6c 65 64 3d 21 21 73 2e 63 eadEnabled=!!s.c 00012660: 63 69 70 52 65 61 64 45 6e 61 62 6c 65 64 29 2c cipReadEnabled), 00012670: 64 65 6c 65 74 65 20 72 2e 6e 6f 6e 63 65 2c 64 delete r.nonce,d 00012680: 65 6c 65 74 65 20 72 2e 67 61 73 4c 69 6d 69 74 elete r.gasLimit 00012690: 2c 64 65 6c 65 74 65 20 72 2e 67 61 73 50 72 69 ,delete r.gasPri 000126a0: 63 65 2c 64 65 6c 65 74 65 20 72 2e 66 72 6f 6d ce,delete r.from 000126b0: 2c 64 65 6c 65 74 65 20 72 2e 76 61 6c 75 65 2c ,delete r.value, 000126c0: 64 65 6c 65 74 65 20 72 2e 74 79 70 65 2c 64 65 delete r.type,de 000126d0: 6c 65 74 65 20 72 2e 61 63 63 65 73 73 4c 69 73 lete r.accessLis 000126e0: 74 2c 64 65 6c 65 74 65 20 72 2e 6d 61 78 46 65 t,delete r.maxFe 000126f0: 65 50 65 72 47 61 73 2c 64 65 6c 65 74 65 20 72 ePerGas,delete r 00012700: 2e 6d 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 .maxPriorityFeeP 00012710: 65 72 47 61 73 2c 64 65 6c 65 74 65 20 72 2e 63 erGas,delete r.c 00012720: 75 73 74 6f 6d 44 61 74 61 2c 64 65 6c 65 74 65 ustomData,delete 00012730: 20 72 2e 63 63 69 70 52 65 61 64 45 6e 61 62 6c r.ccipReadEnabl 00012740: 65 64 3b 63 6f 6e 73 74 20 6c 3d 4f 62 6a 65 63 ed;const l=Objec 00012750: 74 2e 6b 65 79 73 28 72 29 2e 66 69 6c 74 65 72 t.keys(r).filter 00012760: 28 28 65 3d 3e 6e 75 6c 6c 21 3d 72 5b 65 5d 29 ((e=>null!=r[e]) 00012770: 29 3b 72 65 74 75 72 6e 20 6c 2e 6c 65 6e 67 74 );return l.lengt 00012780: 68 26 26 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 h&&Er.throwError 00012790: 28 60 63 61 6e 6e 6f 74 20 6f 76 65 72 72 69 64 (`cannot overrid 000127a0: 65 20 24 7b 6c 2e 6d 61 70 28 28 65 3d 3e 4a 53 e ${l.map((e=>JS 000127b0: 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 65 29 29 ON.stringify(e)) 000127c0: 29 2e 6a 6f 69 6e 28 22 2c 22 29 7d 60 2c 79 2e ).join(",")}`,y. 000127d0: 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 errors.UNSUPPORT 000127e0: 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 ED_OPERATION,{op 000127f0: 65 72 61 74 69 6f 6e 3a 22 6f 76 65 72 72 69 64 eration:"overrid 00012800: 65 73 22 2c 6f 76 65 72 72 69 64 65 73 3a 6c 7d es",overrides:l} 00012810: 29 2c 61 7d 29 29 7d 66 75 6e 63 74 69 6f 6e 20 ),a}))}function 00012820: 43 72 28 65 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d Cr(e,t){const n= 00012830: 74 2e 77 61 69 74 2e 62 69 6e 64 28 74 29 3b 74 t.wait.bind(t);t 00012840: 2e 77 61 69 74 3d 74 3d 3e 6e 28 74 29 2e 74 68 .wait=t=>n(t).th 00012850: 65 6e 28 28 74 3d 3e 28 74 2e 65 76 65 6e 74 73 en((t=>(t.events 00012860: 3d 74 2e 6c 6f 67 73 2e 6d 61 70 28 28 6e 3d 3e =t.logs.map((n=> 00012870: 7b 6c 65 74 20 72 3d 63 65 28 6e 29 2c 6f 3d 6e {let r=ce(n),o=n 00012880: 75 6c 6c 3b 74 72 79 7b 6f 3d 65 2e 69 6e 74 65 ull;try{o=e.inte 00012890: 72 66 61 63 65 2e 70 61 72 73 65 4c 6f 67 28 6e rface.parseLog(n 000128a0: 29 7d 63 61 74 63 68 28 65 29 7b 7d 72 65 74 75 )}catch(e){}retu 000128b0: 72 6e 20 6f 26 26 28 72 2e 61 72 67 73 3d 6f 2e rn o&&(r.args=o. 000128c0: 61 72 67 73 2c 72 2e 64 65 63 6f 64 65 3d 28 74 args,r.decode=(t 000128d0: 2c 6e 29 3d 3e 65 2e 69 6e 74 65 72 66 61 63 65 ,n)=>e.interface 000128e0: 2e 64 65 63 6f 64 65 45 76 65 6e 74 4c 6f 67 28 .decodeEventLog( 000128f0: 6f 2e 65 76 65 6e 74 46 72 61 67 6d 65 6e 74 2c o.eventFragment, 00012900: 74 2c 6e 29 2c 72 2e 65 76 65 6e 74 3d 6f 2e 6e t,n),r.event=o.n 00012910: 61 6d 65 2c 72 2e 65 76 65 6e 74 53 69 67 6e 61 ame,r.eventSigna 00012920: 74 75 72 65 3d 6f 2e 73 69 67 6e 61 74 75 72 65 ture=o.signature 00012930: 29 2c 72 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e ),r.removeListen 00012940: 65 72 3d 28 29 3d 3e 65 2e 70 72 6f 76 69 64 65 er=()=>e.provide 00012950: 72 2c 72 2e 67 65 74 42 6c 6f 63 6b 3d 28 29 3d r,r.getBlock=()= 00012960: 3e 65 2e 70 72 6f 76 69 64 65 72 2e 67 65 74 42 >e.provider.getB 00012970: 6c 6f 63 6b 28 74 2e 62 6c 6f 63 6b 48 61 73 68 lock(t.blockHash 00012980: 29 2c 72 2e 67 65 74 54 72 61 6e 73 61 63 74 69 ),r.getTransacti 00012990: 6f 6e 3d 28 29 3d 3e 65 2e 70 72 6f 76 69 64 65 on=()=>e.provide 000129a0: 72 2e 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e r.getTransaction 000129b0: 28 74 2e 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 (t.transactionHa 000129c0: 73 68 29 2c 72 2e 67 65 74 54 72 61 6e 73 61 63 sh),r.getTransac 000129d0: 74 69 6f 6e 52 65 63 65 69 70 74 3d 28 29 3d 3e tionReceipt=()=> 000129e0: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 000129f0: 74 29 2c 72 7d 29 29 2c 74 29 29 29 7d 66 75 6e t),r})),t)))}fun 00012a00: 63 74 69 6f 6e 20 41 72 28 65 2c 74 2c 6e 29 7b ction Ar(e,t,n){ 00012a10: 63 6f 6e 73 74 20 72 3d 65 2e 73 69 67 6e 65 72 const r=e.signer 00012a20: 7c 7c 65 2e 70 72 6f 76 69 64 65 72 3b 72 65 74 ||e.provider;ret 00012a30: 75 72 6e 20 66 75 6e 63 74 69 6f 6e 28 2e 2e 2e urn function(... 00012a40: 6f 29 7b 72 65 74 75 72 6e 20 53 72 28 74 68 69 o){return Sr(thi 00012a50: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 00012a60: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6c 65 74 (function*(){let 00012a70: 20 69 3b 69 66 28 6f 2e 6c 65 6e 67 74 68 3d 3d i;if(o.length== 00012a80: 3d 74 2e 69 6e 70 75 74 73 2e 6c 65 6e 67 74 68 =t.inputs.length 00012a90: 2b 31 26 26 22 6f 62 6a 65 63 74 22 3d 3d 74 79 +1&&"object"==ty 00012aa0: 70 65 6f 66 20 6f 5b 6f 2e 6c 65 6e 67 74 68 2d peof o[o.length- 00012ab0: 31 5d 29 7b 63 6f 6e 73 74 20 65 3d 69 65 28 6f 1]){const e=ie(o 00012ac0: 2e 70 6f 70 28 29 29 3b 6e 75 6c 6c 21 3d 65 2e .pop());null!=e. 00012ad0: 62 6c 6f 63 6b 54 61 67 26 26 28 69 3d 79 69 65 blockTag&&(i=yie 00012ae0: 6c 64 20 65 2e 62 6c 6f 63 6b 54 61 67 29 2c 64 ld e.blockTag),d 00012af0: 65 6c 65 74 65 20 65 2e 62 6c 6f 63 6b 54 61 67 elete e.blockTag 00012b00: 2c 6f 2e 70 75 73 68 28 65 29 7d 6e 75 6c 6c 21 ,o.push(e)}null! 00012b10: 3d 65 2e 64 65 70 6c 6f 79 54 72 61 6e 73 61 63 =e.deployTransac 00012b20: 74 69 6f 6e 26 26 28 79 69 65 6c 64 20 65 2e 5f tion&&(yield e._ 00012b30: 64 65 70 6c 6f 79 65 64 28 69 29 29 3b 63 6f 6e deployed(i));con 00012b40: 73 74 20 61 3d 79 69 65 6c 64 20 54 72 28 65 2c st a=yield Tr(e, 00012b50: 74 2c 6f 29 2c 73 3d 79 69 65 6c 64 20 72 2e 63 t,o),s=yield r.c 00012b60: 61 6c 6c 28 61 2c 69 29 3b 74 72 79 7b 6c 65 74 all(a,i);try{let 00012b70: 20 72 3d 65 2e 69 6e 74 65 72 66 61 63 65 2e 64 r=e.interface.d 00012b80: 65 63 6f 64 65 46 75 6e 63 74 69 6f 6e 52 65 73 ecodeFunctionRes 00012b90: 75 6c 74 28 74 2c 73 29 3b 72 65 74 75 72 6e 20 ult(t,s);return 00012ba0: 6e 26 26 31 3d 3d 3d 74 2e 6f 75 74 70 75 74 73 n&&1===t.outputs 00012bb0: 2e 6c 65 6e 67 74 68 26 26 28 72 3d 72 5b 30 5d .length&&(r=r[0] 00012bc0: 29 2c 72 7d 63 61 74 63 68 28 74 29 7b 74 68 72 ),r}catch(t){thr 00012bd0: 6f 77 20 74 2e 63 6f 64 65 3d 3d 3d 79 2e 65 72 ow t.code===y.er 00012be0: 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 54 rors.CALL_EXCEPT 00012bf0: 49 4f 4e 26 26 28 74 2e 61 64 64 72 65 73 73 3d ION&&(t.address= 00012c00: 65 2e 61 64 64 72 65 73 73 2c 74 2e 61 72 67 73 e.address,t.args 00012c10: 3d 6f 2c 74 2e 74 72 61 6e 73 61 63 74 69 6f 6e =o,t.transaction 00012c20: 3d 61 29 2c 74 7d 7d 29 29 7d 7d 66 75 6e 63 74 =a),t}}))}}funct 00012c30: 69 6f 6e 20 6b 72 28 65 2c 74 2c 6e 29 7b 72 65 ion kr(e,t,n){re 00012c40: 74 75 72 6e 20 74 2e 63 6f 6e 73 74 61 6e 74 3f turn t.constant? 00012c50: 41 72 28 65 2c 74 2c 6e 29 3a 66 75 6e 63 74 69 Ar(e,t,n):functi 00012c60: 6f 6e 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 66 on(e,t){return f 00012c70: 75 6e 63 74 69 6f 6e 28 2e 2e 2e 6e 29 7b 72 65 unction(...n){re 00012c80: 74 75 72 6e 20 53 72 28 74 68 69 73 2c 76 6f 69 turn Sr(this,voi 00012c90: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 00012ca0: 74 69 6f 6e 2a 28 29 7b 65 2e 73 69 67 6e 65 72 tion*(){e.signer 00012cb0: 7c 7c 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 ||Er.throwError( 00012cc0: 22 73 65 6e 64 69 6e 67 20 61 20 74 72 61 6e 73 "sending a trans 00012cd0: 61 63 74 69 6f 6e 20 72 65 71 75 69 72 65 73 20 action requires 00012ce0: 61 20 73 69 67 6e 65 72 22 2c 79 2e 65 72 72 6f a signer",y.erro 00012cf0: 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f rs.UNSUPPORTED_O 00012d00: 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 PERATION,{operat 00012d10: 69 6f 6e 3a 22 73 65 6e 64 54 72 61 6e 73 61 63 ion:"sendTransac 00012d20: 74 69 6f 6e 22 7d 29 2c 6e 75 6c 6c 21 3d 65 2e tion"}),null!=e. 00012d30: 64 65 70 6c 6f 79 54 72 61 6e 73 61 63 74 69 6f deployTransactio 00012d40: 6e 26 26 28 79 69 65 6c 64 20 65 2e 5f 64 65 70 n&&(yield e._dep 00012d50: 6c 6f 79 65 64 28 29 29 3b 63 6f 6e 73 74 20 72 loyed());const r 00012d60: 3d 79 69 65 6c 64 20 54 72 28 65 2c 74 2c 6e 29 =yield Tr(e,t,n) 00012d70: 2c 6f 3d 79 69 65 6c 64 20 65 2e 73 69 67 6e 65 ,o=yield e.signe 00012d80: 72 2e 73 65 6e 64 54 72 61 6e 73 61 63 74 69 6f r.sendTransactio 00012d90: 6e 28 72 29 3b 72 65 74 75 72 6e 20 43 72 28 65 n(r);return Cr(e 00012da0: 2c 6f 29 2c 6f 7d 29 29 7d 7d 28 65 2c 74 29 7d ,o),o}))}}(e,t)} 00012db0: 66 75 6e 63 74 69 6f 6e 20 49 72 28 65 29 7b 72 function Ir(e){r 00012dc0: 65 74 75 72 6e 21 65 2e 61 64 64 72 65 73 73 7c eturn!e.address| 00012dd0: 7c 6e 75 6c 6c 21 3d 65 2e 74 6f 70 69 63 73 26 |null!=e.topics& 00012de0: 26 30 21 3d 3d 65 2e 74 6f 70 69 63 73 2e 6c 65 &0!==e.topics.le 00012df0: 6e 67 74 68 3f 28 65 2e 61 64 64 72 65 73 73 7c ngth?(e.address| 00012e00: 7c 22 2a 22 29 2b 22 40 22 2b 28 65 2e 74 6f 70 |"*")+"@"+(e.top 00012e10: 69 63 73 3f 65 2e 74 6f 70 69 63 73 2e 6d 61 70 ics?e.topics.map 00012e20: 28 28 65 3d 3e 41 72 72 61 79 2e 69 73 41 72 72 ((e=>Array.isArr 00012e30: 61 79 28 65 29 3f 65 2e 6a 6f 69 6e 28 22 7c 22 ay(e)?e.join("|" 00012e40: 29 3a 65 29 29 2e 6a 6f 69 6e 28 22 3a 22 29 3a ):e)).join(":"): 00012e50: 22 22 29 3a 22 2a 22 7d 63 6c 61 73 73 20 4f 72 ""):"*"}class Or 00012e60: 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 {constructor(e,t 00012e70: 29 7b 74 65 28 74 68 69 73 2c 22 74 61 67 22 2c ){te(this,"tag", 00012e80: 65 29 2c 74 65 28 74 68 69 73 2c 22 66 69 6c 74 e),te(this,"filt 00012e90: 65 72 22 2c 74 29 2c 74 68 69 73 2e 5f 6c 69 73 er",t),this._lis 00012ea0: 74 65 6e 65 72 73 3d 5b 5d 7d 61 64 64 4c 69 73 teners=[]}addLis 00012eb0: 74 65 6e 65 72 28 65 2c 74 29 7b 74 68 69 73 2e tener(e,t){this. 00012ec0: 5f 6c 69 73 74 65 6e 65 72 73 2e 70 75 73 68 28 _listeners.push( 00012ed0: 7b 6c 69 73 74 65 6e 65 72 3a 65 2c 6f 6e 63 65 {listener:e,once 00012ee0: 3a 74 7d 29 7d 72 65 6d 6f 76 65 4c 69 73 74 65 :t})}removeListe 00012ef0: 6e 65 72 28 65 29 7b 6c 65 74 20 74 3d 21 31 3b ner(e){let t=!1; 00012f00: 74 68 69 73 2e 5f 6c 69 73 74 65 6e 65 72 73 3d this._listeners= 00012f10: 74 68 69 73 2e 5f 6c 69 73 74 65 6e 65 72 73 2e this._listeners. 00012f20: 66 69 6c 74 65 72 28 28 6e 3d 3e 21 28 21 74 26 filter((n=>!(!t& 00012f30: 26 6e 2e 6c 69 73 74 65 6e 65 72 3d 3d 3d 65 29 &n.listener===e) 00012f40: 7c 7c 28 74 3d 21 30 2c 21 31 29 29 29 7d 72 65 ||(t=!0,!1)))}re 00012f50: 6d 6f 76 65 41 6c 6c 4c 69 73 74 65 6e 65 72 73 moveAllListeners 00012f60: 28 29 7b 74 68 69 73 2e 5f 6c 69 73 74 65 6e 65 (){this._listene 00012f70: 72 73 3d 5b 5d 7d 6c 69 73 74 65 6e 65 72 73 28 rs=[]}listeners( 00012f80: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 6c ){return this._l 00012f90: 69 73 74 65 6e 65 72 73 2e 6d 61 70 28 28 65 3d isteners.map((e= 00012fa0: 3e 65 2e 6c 69 73 74 65 6e 65 72 29 29 7d 6c 69 >e.listener))}li 00012fb0: 73 74 65 6e 65 72 43 6f 75 6e 74 28 29 7b 72 65 stenerCount(){re 00012fc0: 74 75 72 6e 20 74 68 69 73 2e 5f 6c 69 73 74 65 turn this._liste 00012fd0: 6e 65 72 73 2e 6c 65 6e 67 74 68 7d 72 75 6e 28 ners.length}run( 00012fe0: 65 29 7b 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e e){const t=this. 00012ff0: 6c 69 73 74 65 6e 65 72 43 6f 75 6e 74 28 29 3b listenerCount(); 00013000: 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 6c 69 73 return this._lis 00013010: 74 65 6e 65 72 73 3d 74 68 69 73 2e 5f 6c 69 73 teners=this._lis 00013020: 74 65 6e 65 72 73 2e 66 69 6c 74 65 72 28 28 74 teners.filter((t 00013030: 3d 3e 7b 63 6f 6e 73 74 20 6e 3d 65 2e 73 6c 69 =>{const n=e.sli 00013040: 63 65 28 29 3b 72 65 74 75 72 6e 20 73 65 74 54 ce();return setT 00013050: 69 6d 65 6f 75 74 28 28 28 29 3d 3e 7b 74 2e 6c imeout((()=>{t.l 00013060: 69 73 74 65 6e 65 72 2e 61 70 70 6c 79 28 74 68 istener.apply(th 00013070: 69 73 2c 6e 29 7d 29 2c 30 29 2c 21 74 2e 6f 6e is,n)}),0),!t.on 00013080: 63 65 7d 29 29 2c 74 7d 70 72 65 70 61 72 65 45 ce})),t}prepareE 00013090: 76 65 6e 74 28 65 29 7b 7d 67 65 74 45 6d 69 74 vent(e){}getEmit 000130a0: 28 65 29 7b 72 65 74 75 72 6e 5b 65 5d 7d 7d 63 (e){return[e]}}c 000130b0: 6c 61 73 73 20 52 72 20 65 78 74 65 6e 64 73 20 lass Rr extends 000130c0: 4f 72 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 29 Or{constructor() 000130d0: 7b 73 75 70 65 72 28 22 65 72 72 6f 72 22 2c 6e {super("error",n 000130e0: 75 6c 6c 29 7d 7d 63 6c 61 73 73 20 4e 72 20 65 ull)}}class Nr e 000130f0: 78 74 65 6e 64 73 20 4f 72 7b 63 6f 6e 73 74 72 xtends Or{constr 00013100: 75 63 74 6f 72 28 65 2c 74 2c 6e 2c 72 29 7b 63 uctor(e,t,n,r){c 00013110: 6f 6e 73 74 20 6f 3d 7b 61 64 64 72 65 73 73 3a onst o={address: 00013120: 65 7d 3b 6c 65 74 20 69 3d 74 2e 67 65 74 45 76 e};let i=t.getEv 00013130: 65 6e 74 54 6f 70 69 63 28 6e 29 3b 72 3f 28 69 entTopic(n);r?(i 00013140: 21 3d 3d 72 5b 30 5d 26 26 45 72 2e 74 68 72 6f !==r[0]&&Er.thro 00013150: 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 wArgumentError(" 00013160: 74 6f 70 69 63 20 6d 69 73 6d 61 74 63 68 22 2c topic mismatch", 00013170: 22 74 6f 70 69 63 73 22 2c 72 29 2c 6f 2e 74 6f "topics",r),o.to 00013180: 70 69 63 73 3d 72 2e 73 6c 69 63 65 28 29 29 3a pics=r.slice()): 00013190: 6f 2e 74 6f 70 69 63 73 3d 5b 69 5d 2c 73 75 70 o.topics=[i],sup 000131a0: 65 72 28 49 72 28 6f 29 2c 6f 29 2c 74 65 28 74 er(Ir(o),o),te(t 000131b0: 68 69 73 2c 22 61 64 64 72 65 73 73 22 2c 65 29 his,"address",e) 000131c0: 2c 74 65 28 74 68 69 73 2c 22 69 6e 74 65 72 66 ,te(this,"interf 000131d0: 61 63 65 22 2c 74 29 2c 74 65 28 74 68 69 73 2c ace",t),te(this, 000131e0: 22 66 72 61 67 6d 65 6e 74 22 2c 6e 29 7d 70 72 "fragment",n)}pr 000131f0: 65 70 61 72 65 45 76 65 6e 74 28 65 29 7b 73 75 epareEvent(e){su 00013200: 70 65 72 2e 70 72 65 70 61 72 65 45 76 65 6e 74 per.prepareEvent 00013210: 28 65 29 2c 65 2e 65 76 65 6e 74 3d 74 68 69 73 (e),e.event=this 00013220: 2e 66 72 61 67 6d 65 6e 74 2e 6e 61 6d 65 2c 65 .fragment.name,e 00013230: 2e 65 76 65 6e 74 53 69 67 6e 61 74 75 72 65 3d .eventSignature= 00013240: 74 68 69 73 2e 66 72 61 67 6d 65 6e 74 2e 66 6f this.fragment.fo 00013250: 72 6d 61 74 28 29 2c 65 2e 64 65 63 6f 64 65 3d rmat(),e.decode= 00013260: 28 65 2c 74 29 3d 3e 74 68 69 73 2e 69 6e 74 65 (e,t)=>this.inte 00013270: 72 66 61 63 65 2e 64 65 63 6f 64 65 45 76 65 6e rface.decodeEven 00013280: 74 4c 6f 67 28 74 68 69 73 2e 66 72 61 67 6d 65 tLog(this.fragme 00013290: 6e 74 2c 65 2c 74 29 3b 74 72 79 7b 65 2e 61 72 nt,e,t);try{e.ar 000132a0: 67 73 3d 74 68 69 73 2e 69 6e 74 65 72 66 61 63 gs=this.interfac 000132b0: 65 2e 64 65 63 6f 64 65 45 76 65 6e 74 4c 6f 67 e.decodeEventLog 000132c0: 28 74 68 69 73 2e 66 72 61 67 6d 65 6e 74 2c 65 (this.fragment,e 000132d0: 2e 64 61 74 61 2c 65 2e 74 6f 70 69 63 73 29 7d .data,e.topics)} 000132e0: 63 61 74 63 68 28 74 29 7b 65 2e 61 72 67 73 3d catch(t){e.args= 000132f0: 6e 75 6c 6c 2c 65 2e 64 65 63 6f 64 65 45 72 72 null,e.decodeErr 00013300: 6f 72 3d 74 7d 7d 67 65 74 45 6d 69 74 28 65 29 or=t}}getEmit(e) 00013310: 7b 63 6f 6e 73 74 20 74 3d 66 65 28 65 2e 61 72 {const t=fe(e.ar 00013320: 67 73 29 3b 69 66 28 74 2e 6c 65 6e 67 74 68 29 gs);if(t.length) 00013330: 74 68 72 6f 77 20 74 5b 30 5d 2e 65 72 72 6f 72 throw t[0].error 00013340: 3b 63 6f 6e 73 74 20 6e 3d 28 65 2e 61 72 67 73 ;const n=(e.args 00013350: 7c 7c 5b 5d 29 2e 73 6c 69 63 65 28 29 3b 72 65 ||[]).slice();re 00013360: 74 75 72 6e 20 6e 2e 70 75 73 68 28 65 29 2c 6e turn n.push(e),n 00013370: 7d 7d 63 6c 61 73 73 20 50 72 20 65 78 74 65 6e }}class Pr exten 00013380: 64 73 20 4f 72 7b 63 6f 6e 73 74 72 75 63 74 6f ds Or{constructo 00013390: 72 28 65 2c 74 29 7b 73 75 70 65 72 28 22 2a 22 r(e,t){super("*" 000133a0: 2c 7b 61 64 64 72 65 73 73 3a 65 7d 29 2c 74 65 ,{address:e}),te 000133b0: 28 74 68 69 73 2c 22 61 64 64 72 65 73 73 22 2c (this,"address", 000133c0: 65 29 2c 74 65 28 74 68 69 73 2c 22 69 6e 74 65 e),te(this,"inte 000133d0: 72 66 61 63 65 22 2c 74 29 7d 70 72 65 70 61 72 rface",t)}prepar 000133e0: 65 45 76 65 6e 74 28 65 29 7b 73 75 70 65 72 2e eEvent(e){super. 000133f0: 70 72 65 70 61 72 65 45 76 65 6e 74 28 65 29 3b prepareEvent(e); 00013400: 74 72 79 7b 63 6f 6e 73 74 20 74 3d 74 68 69 73 try{const t=this 00013410: 2e 69 6e 74 65 72 66 61 63 65 2e 70 61 72 73 65 .interface.parse 00013420: 4c 6f 67 28 65 29 3b 65 2e 65 76 65 6e 74 3d 74 Log(e);e.event=t 00013430: 2e 6e 61 6d 65 2c 65 2e 65 76 65 6e 74 53 69 67 .name,e.eventSig 00013440: 6e 61 74 75 72 65 3d 74 2e 73 69 67 6e 61 74 75 nature=t.signatu 00013450: 72 65 2c 65 2e 64 65 63 6f 64 65 3d 28 65 2c 6e re,e.decode=(e,n 00013460: 29 3d 3e 74 68 69 73 2e 69 6e 74 65 72 66 61 63 )=>this.interfac 00013470: 65 2e 64 65 63 6f 64 65 45 76 65 6e 74 4c 6f 67 e.decodeEventLog 00013480: 28 74 2e 65 76 65 6e 74 46 72 61 67 6d 65 6e 74 (t.eventFragment 00013490: 2c 65 2c 6e 29 2c 65 2e 61 72 67 73 3d 74 2e 61 ,e,n),e.args=t.a 000134a0: 72 67 73 7d 63 61 74 63 68 28 65 29 7b 7d 7d 7d rgs}catch(e){}}} 000134b0: 63 6c 61 73 73 20 4d 72 7b 63 6f 6e 73 74 72 75 class Mr{constru 000134c0: 63 74 6f 72 28 65 2c 74 2c 6e 29 7b 74 65 28 74 ctor(e,t,n){te(t 000134d0: 68 69 73 2c 22 69 6e 74 65 72 66 61 63 65 22 2c his,"interface", 000134e0: 6e 65 28 6e 65 77 2e 74 61 72 67 65 74 2c 22 67 ne(new.target,"g 000134f0: 65 74 49 6e 74 65 72 66 61 63 65 22 29 28 74 29 etInterface")(t) 00013500: 29 2c 6e 75 6c 6c 3d 3d 6e 3f 28 74 65 28 74 68 ),null==n?(te(th 00013510: 69 73 2c 22 70 72 6f 76 69 64 65 72 22 2c 6e 75 is,"provider",nu 00013520: 6c 6c 29 2c 74 65 28 74 68 69 73 2c 22 73 69 67 ll),te(this,"sig 00013530: 6e 65 72 22 2c 6e 75 6c 6c 29 29 3a 64 6e 2e 69 ner",null)):dn.i 00013540: 73 53 69 67 6e 65 72 28 6e 29 3f 28 74 65 28 74 sSigner(n)?(te(t 00013550: 68 69 73 2c 22 70 72 6f 76 69 64 65 72 22 2c 6e his,"provider",n 00013560: 2e 70 72 6f 76 69 64 65 72 7c 7c 6e 75 6c 6c 29 .provider||null) 00013570: 2c 74 65 28 74 68 69 73 2c 22 73 69 67 6e 65 72 ,te(this,"signer 00013580: 22 2c 6e 29 29 3a 61 6e 2e 69 73 50 72 6f 76 69 ",n)):an.isProvi 00013590: 64 65 72 28 6e 29 3f 28 74 65 28 74 68 69 73 2c der(n)?(te(this, 000135a0: 22 70 72 6f 76 69 64 65 72 22 2c 6e 29 2c 74 65 "provider",n),te 000135b0: 28 74 68 69 73 2c 22 73 69 67 6e 65 72 22 2c 6e (this,"signer",n 000135c0: 75 6c 6c 29 29 3a 45 72 2e 74 68 72 6f 77 41 72 ull)):Er.throwAr 000135d0: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 000135e0: 61 6c 69 64 20 73 69 67 6e 65 72 20 6f 72 20 70 alid signer or p 000135f0: 72 6f 76 69 64 65 72 22 2c 22 73 69 67 6e 65 72 rovider","signer 00013600: 4f 72 50 72 6f 76 69 64 65 72 22 2c 6e 29 2c 74 OrProvider",n),t 00013610: 65 28 74 68 69 73 2c 22 63 61 6c 6c 53 74 61 74 e(this,"callStat 00013620: 69 63 22 2c 7b 7d 29 2c 74 65 28 74 68 69 73 2c ic",{}),te(this, 00013630: 22 65 73 74 69 6d 61 74 65 47 61 73 22 2c 7b 7d "estimateGas",{} 00013640: 29 2c 74 65 28 74 68 69 73 2c 22 66 75 6e 63 74 ),te(this,"funct 00013650: 69 6f 6e 73 22 2c 7b 7d 29 2c 74 65 28 74 68 69 ions",{}),te(thi 00013660: 73 2c 22 70 6f 70 75 6c 61 74 65 54 72 61 6e 73 s,"populateTrans 00013670: 61 63 74 69 6f 6e 22 2c 7b 7d 29 2c 74 65 28 74 action",{}),te(t 00013680: 68 69 73 2c 22 66 69 6c 74 65 72 73 22 2c 7b 7d his,"filters",{} 00013690: 29 3b 7b 63 6f 6e 73 74 20 65 3d 7b 7d 3b 4f 62 );{const e={};Ob 000136a0: 6a 65 63 74 2e 6b 65 79 73 28 74 68 69 73 2e 69 ject.keys(this.i 000136b0: 6e 74 65 72 66 61 63 65 2e 65 76 65 6e 74 73 29 nterface.events) 000136c0: 2e 66 6f 72 45 61 63 68 28 28 74 3d 3e 7b 63 6f .forEach((t=>{co 000136d0: 6e 73 74 20 6e 3d 74 68 69 73 2e 69 6e 74 65 72 nst n=this.inter 000136e0: 66 61 63 65 2e 65 76 65 6e 74 73 5b 74 5d 3b 74 face.events[t];t 000136f0: 65 28 74 68 69 73 2e 66 69 6c 74 65 72 73 2c 74 e(this.filters,t 00013700: 2c 28 28 2e 2e 2e 65 29 3d 3e 28 7b 61 64 64 72 ,((...e)=>({addr 00013710: 65 73 73 3a 74 68 69 73 2e 61 64 64 72 65 73 73 ess:this.address 00013720: 2c 74 6f 70 69 63 73 3a 74 68 69 73 2e 69 6e 74 ,topics:this.int 00013730: 65 72 66 61 63 65 2e 65 6e 63 6f 64 65 46 69 6c erface.encodeFil 00013740: 74 65 72 54 6f 70 69 63 73 28 6e 2c 65 29 7d 29 terTopics(n,e)}) 00013750: 29 29 2c 65 5b 6e 2e 6e 61 6d 65 5d 7c 7c 28 65 )),e[n.name]||(e 00013760: 5b 6e 2e 6e 61 6d 65 5d 3d 5b 5d 29 2c 65 5b 6e [n.name]=[]),e[n 00013770: 2e 6e 61 6d 65 5d 2e 70 75 73 68 28 74 29 7d 29 .name].push(t)}) 00013780: 29 2c 4f 62 6a 65 63 74 2e 6b 65 79 73 28 65 29 ),Object.keys(e) 00013790: 2e 66 6f 72 45 61 63 68 28 28 74 3d 3e 7b 63 6f .forEach((t=>{co 000137a0: 6e 73 74 20 6e 3d 65 5b 74 5d 3b 31 3d 3d 3d 6e nst n=e[t];1===n 000137b0: 2e 6c 65 6e 67 74 68 3f 74 65 28 74 68 69 73 2e .length?te(this. 000137c0: 66 69 6c 74 65 72 73 2c 74 2c 74 68 69 73 2e 66 filters,t,this.f 000137d0: 69 6c 74 65 72 73 5b 6e 5b 30 5d 5d 29 3a 45 72 ilters[n[0]]):Er 000137e0: 2e 77 61 72 6e 28 60 44 75 70 6c 69 63 61 74 65 .warn(`Duplicate 000137f0: 20 64 65 66 69 6e 69 74 69 6f 6e 20 6f 66 20 24 definition of $ 00013800: 7b 74 7d 20 28 24 7b 6e 2e 6a 6f 69 6e 28 22 2c {t} (${n.join(", 00013810: 20 22 29 7d 29 60 29 7d 29 29 7d 69 66 28 74 65 ")})`)}))}if(te 00013820: 28 74 68 69 73 2c 22 5f 72 75 6e 6e 69 6e 67 45 (this,"_runningE 00013830: 76 65 6e 74 73 22 2c 7b 7d 29 2c 74 65 28 74 68 vents",{}),te(th 00013840: 69 73 2c 22 5f 77 72 61 70 70 65 64 45 6d 69 74 is,"_wrappedEmit 00013850: 73 22 2c 7b 7d 29 2c 6e 75 6c 6c 3d 3d 65 26 26 s",{}),null==e&& 00013860: 45 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Er.throwArgument 00013870: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 63 Error("invalid c 00013880: 6f 6e 74 72 61 63 74 20 61 64 64 72 65 73 73 20 ontract address 00013890: 6f 72 20 45 4e 53 20 6e 61 6d 65 22 2c 22 61 64 or ENS name","ad 000138a0: 64 72 65 73 73 4f 72 4e 61 6d 65 22 2c 65 29 2c dressOrName",e), 000138b0: 74 65 28 74 68 69 73 2c 22 61 64 64 72 65 73 73 te(this,"address 000138c0: 22 2c 65 29 2c 74 68 69 73 2e 70 72 6f 76 69 64 ",e),this.provid 000138d0: 65 72 29 74 65 28 74 68 69 73 2c 22 72 65 73 6f er)te(this,"reso 000138e0: 6c 76 65 64 41 64 64 72 65 73 73 22 2c 77 72 28 lvedAddress",wr( 000138f0: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2c 65 29 this.provider,e) 00013900: 29 3b 65 6c 73 65 20 74 72 79 7b 74 65 28 74 68 );else try{te(th 00013910: 69 73 2c 22 72 65 73 6f 6c 76 65 64 41 64 64 72 is,"resolvedAddr 00013920: 65 73 73 22 2c 50 72 6f 6d 69 73 65 2e 72 65 73 ess",Promise.res 00013930: 6f 6c 76 65 28 4d 65 28 65 29 29 29 7d 63 61 74 olve(Me(e)))}cat 00013940: 63 68 28 65 29 7b 45 72 2e 74 68 72 6f 77 45 72 ch(e){Er.throwEr 00013950: 72 6f 72 28 22 70 72 6f 76 69 64 65 72 20 69 73 ror("provider is 00013960: 20 72 65 71 75 69 72 65 64 20 74 6f 20 75 73 65 required to use 00013970: 20 45 4e 53 20 6e 61 6d 65 20 61 73 20 63 6f 6e ENS name as con 00013980: 74 72 61 63 74 20 61 64 64 72 65 73 73 22 2c 79 tract address",y 00013990: 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 .errors.UNSUPPOR 000139a0: 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f TED_OPERATION,{o 000139b0: 70 65 72 61 74 69 6f 6e 3a 22 6e 65 77 20 43 6f peration:"new Co 000139c0: 6e 74 72 61 63 74 22 7d 29 7d 74 68 69 73 2e 72 ntract"})}this.r 000139d0: 65 73 6f 6c 76 65 64 41 64 64 72 65 73 73 2e 63 esolvedAddress.c 000139e0: 61 74 63 68 28 28 65 3d 3e 7b 7d 29 29 3b 63 6f atch((e=>{}));co 000139f0: 6e 73 74 20 72 3d 7b 7d 2c 6f 3d 7b 7d 3b 4f 62 nst r={},o={};Ob 00013a00: 6a 65 63 74 2e 6b 65 79 73 28 74 68 69 73 2e 69 ject.keys(this.i 00013a10: 6e 74 65 72 66 61 63 65 2e 66 75 6e 63 74 69 6f nterface.functio 00013a20: 6e 73 29 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e ns).forEach((e=> 00013a30: 7b 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 69 6e {const t=this.in 00013a40: 74 65 72 66 61 63 65 2e 66 75 6e 63 74 69 6f 6e terface.function 00013a50: 73 5b 65 5d 3b 69 66 28 6f 5b 65 5d 29 45 72 2e s[e];if(o[e])Er. 00013a60: 77 61 72 6e 28 60 44 75 70 6c 69 63 61 74 65 20 warn(`Duplicate 00013a70: 41 42 49 20 65 6e 74 72 79 20 66 6f 72 20 24 7b ABI entry for ${ 00013a80: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 65 JSON.stringify(e 00013a90: 29 7d 60 29 3b 65 6c 73 65 7b 6f 5b 65 5d 3d 21 )}`);else{o[e]=! 00013aa0: 30 3b 7b 63 6f 6e 73 74 20 6e 3d 74 2e 6e 61 6d 0;{const n=t.nam 00013ab0: 65 3b 72 5b 60 25 24 7b 6e 7d 60 5d 7c 7c 28 72 e;r[`%${n}`]||(r 00013ac0: 5b 60 25 24 7b 6e 7d 60 5d 3d 5b 5d 29 2c 72 5b [`%${n}`]=[]),r[ 00013ad0: 60 25 24 7b 6e 7d 60 5d 2e 70 75 73 68 28 65 29 `%${n}`].push(e) 00013ae0: 7d 6e 75 6c 6c 3d 3d 74 68 69 73 5b 65 5d 26 26 }null==this[e]&& 00013af0: 74 65 28 74 68 69 73 2c 65 2c 6b 72 28 74 68 69 te(this,e,kr(thi 00013b00: 73 2c 74 2c 21 30 29 29 2c 6e 75 6c 6c 3d 3d 74 s,t,!0)),null==t 00013b10: 68 69 73 2e 66 75 6e 63 74 69 6f 6e 73 5b 65 5d his.functions[e] 00013b20: 26 26 74 65 28 74 68 69 73 2e 66 75 6e 63 74 69 &&te(this.functi 00013b30: 6f 6e 73 2c 65 2c 6b 72 28 74 68 69 73 2c 74 2c ons,e,kr(this,t, 00013b40: 21 31 29 29 2c 6e 75 6c 6c 3d 3d 74 68 69 73 2e !1)),null==this. 00013b50: 63 61 6c 6c 53 74 61 74 69 63 5b 65 5d 26 26 74 callStatic[e]&&t 00013b60: 65 28 74 68 69 73 2e 63 61 6c 6c 53 74 61 74 69 e(this.callStati 00013b70: 63 2c 65 2c 41 72 28 74 68 69 73 2c 74 2c 21 30 c,e,Ar(this,t,!0 00013b80: 29 29 2c 6e 75 6c 6c 3d 3d 74 68 69 73 2e 70 6f )),null==this.po 00013b90: 70 75 6c 61 74 65 54 72 61 6e 73 61 63 74 69 6f pulateTransactio 00013ba0: 6e 5b 65 5d 26 26 74 65 28 74 68 69 73 2e 70 6f n[e]&&te(this.po 00013bb0: 70 75 6c 61 74 65 54 72 61 6e 73 61 63 74 69 6f pulateTransactio 00013bc0: 6e 2c 65 2c 66 75 6e 63 74 69 6f 6e 28 65 2c 74 n,e,function(e,t 00013bd0: 29 7b 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f ){return functio 00013be0: 6e 28 2e 2e 2e 6e 29 7b 72 65 74 75 72 6e 20 54 n(...n){return T 00013bf0: 72 28 65 2c 74 2c 6e 29 7d 7d 28 74 68 69 73 2c r(e,t,n)}}(this, 00013c00: 74 29 29 2c 6e 75 6c 6c 3d 3d 74 68 69 73 2e 65 t)),null==this.e 00013c10: 73 74 69 6d 61 74 65 47 61 73 5b 65 5d 26 26 74 stimateGas[e]&&t 00013c20: 65 28 74 68 69 73 2e 65 73 74 69 6d 61 74 65 47 e(this.estimateG 00013c30: 61 73 2c 65 2c 66 75 6e 63 74 69 6f 6e 28 65 2c as,e,function(e, 00013c40: 74 29 7b 63 6f 6e 73 74 20 6e 3d 65 2e 73 69 67 t){const n=e.sig 00013c50: 6e 65 72 7c 7c 65 2e 70 72 6f 76 69 64 65 72 3b ner||e.provider; 00013c60: 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e 28 return function( 00013c70: 2e 2e 2e 72 29 7b 72 65 74 75 72 6e 20 53 72 28 ...r){return Sr( 00013c80: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 00013c90: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 00013ca0: 6e 7c 7c 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 n||Er.throwError 00013cb0: 28 22 65 73 74 69 6d 61 74 65 20 72 65 71 75 69 ("estimate requi 00013cc0: 72 65 20 61 20 70 72 6f 76 69 64 65 72 20 6f 72 re a provider or 00013cd0: 20 73 69 67 6e 65 72 22 2c 79 2e 65 72 72 6f 72 signer",y.error 00013ce0: 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 s.UNSUPPORTED_OP 00013cf0: 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 ERATION,{operati 00013d00: 6f 6e 3a 22 65 73 74 69 6d 61 74 65 47 61 73 22 on:"estimateGas" 00013d10: 7d 29 3b 63 6f 6e 73 74 20 6f 3d 79 69 65 6c 64 });const o=yield 00013d20: 20 54 72 28 65 2c 74 2c 72 29 3b 72 65 74 75 72 Tr(e,t,r);retur 00013d30: 6e 20 79 69 65 6c 64 20 6e 2e 65 73 74 69 6d 61 n yield n.estima 00013d40: 74 65 47 61 73 28 6f 29 7d 29 29 7d 7d 28 74 68 teGas(o)}))}}(th 00013d50: 69 73 2c 74 29 29 7d 7d 29 29 2c 4f 62 6a 65 63 is,t))}})),Objec 00013d60: 74 2e 6b 65 79 73 28 72 29 2e 66 6f 72 45 61 63 t.keys(r).forEac 00013d70: 68 28 28 65 3d 3e 7b 63 6f 6e 73 74 20 74 3d 72 h((e=>{const t=r 00013d80: 5b 65 5d 3b 69 66 28 74 2e 6c 65 6e 67 74 68 3e [e];if(t.length> 00013d90: 31 29 72 65 74 75 72 6e 3b 65 3d 65 2e 73 75 62 1)return;e=e.sub 00013da0: 73 74 72 69 6e 67 28 31 29 3b 63 6f 6e 73 74 20 string(1);const 00013db0: 6e 3d 74 5b 30 5d 3b 74 72 79 7b 6e 75 6c 6c 3d n=t[0];try{null= 00013dc0: 3d 74 68 69 73 5b 65 5d 26 26 74 65 28 74 68 69 =this[e]&&te(thi 00013dd0: 73 2c 65 2c 74 68 69 73 5b 6e 5d 29 7d 63 61 74 s,e,this[n])}cat 00013de0: 63 68 28 65 29 7b 7d 6e 75 6c 6c 3d 3d 74 68 69 ch(e){}null==thi 00013df0: 73 2e 66 75 6e 63 74 69 6f 6e 73 5b 65 5d 26 26 s.functions[e]&& 00013e00: 74 65 28 74 68 69 73 2e 66 75 6e 63 74 69 6f 6e te(this.function 00013e10: 73 2c 65 2c 74 68 69 73 2e 66 75 6e 63 74 69 6f s,e,this.functio 00013e20: 6e 73 5b 6e 5d 29 2c 6e 75 6c 6c 3d 3d 74 68 69 ns[n]),null==thi 00013e30: 73 2e 63 61 6c 6c 53 74 61 74 69 63 5b 65 5d 26 s.callStatic[e]& 00013e40: 26 74 65 28 74 68 69 73 2e 63 61 6c 6c 53 74 61 &te(this.callSta 00013e50: 74 69 63 2c 65 2c 74 68 69 73 2e 63 61 6c 6c 53 tic,e,this.callS 00013e60: 74 61 74 69 63 5b 6e 5d 29 2c 6e 75 6c 6c 3d 3d tatic[n]),null== 00013e70: 74 68 69 73 2e 70 6f 70 75 6c 61 74 65 54 72 61 this.populateTra 00013e80: 6e 73 61 63 74 69 6f 6e 5b 65 5d 26 26 74 65 28 nsaction[e]&&te( 00013e90: 74 68 69 73 2e 70 6f 70 75 6c 61 74 65 54 72 61 this.populateTra 00013ea0: 6e 73 61 63 74 69 6f 6e 2c 65 2c 74 68 69 73 2e nsaction,e,this. 00013eb0: 70 6f 70 75 6c 61 74 65 54 72 61 6e 73 61 63 74 populateTransact 00013ec0: 69 6f 6e 5b 6e 5d 29 2c 6e 75 6c 6c 3d 3d 74 68 ion[n]),null==th 00013ed0: 69 73 2e 65 73 74 69 6d 61 74 65 47 61 73 5b 65 is.estimateGas[e 00013ee0: 5d 26 26 74 65 28 74 68 69 73 2e 65 73 74 69 6d ]&&te(this.estim 00013ef0: 61 74 65 47 61 73 2c 65 2c 74 68 69 73 2e 65 73 ateGas,e,this.es 00013f00: 74 69 6d 61 74 65 47 61 73 5b 6e 5d 29 7d 29 29 timateGas[n])})) 00013f10: 7d 73 74 61 74 69 63 20 67 65 74 43 6f 6e 74 72 }static getContr 00013f20: 61 63 74 41 64 64 72 65 73 73 28 65 29 7b 72 65 actAddress(e){re 00013f30: 74 75 72 6e 20 46 65 28 65 29 7d 73 74 61 74 69 turn Fe(e)}stati 00013f40: 63 20 67 65 74 49 6e 74 65 72 66 61 63 65 28 65 c getInterface(e 00013f50: 29 7b 72 65 74 75 72 6e 20 74 6e 2e 69 73 49 6e ){return tn.isIn 00013f60: 74 65 72 66 61 63 65 28 65 29 3f 65 3a 6e 65 77 terface(e)?e:new 00013f70: 20 74 6e 28 65 29 7d 64 65 70 6c 6f 79 65 64 28 tn(e)}deployed( 00013f80: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 64 ){return this._d 00013f90: 65 70 6c 6f 79 65 64 28 29 7d 5f 64 65 70 6c 6f eployed()}_deplo 00013fa0: 79 65 64 28 65 29 7b 72 65 74 75 72 6e 20 74 68 yed(e){return th 00013fb0: 69 73 2e 5f 64 65 70 6c 6f 79 65 64 50 72 6f 6d is._deployedProm 00013fc0: 69 73 65 7c 7c 28 74 68 69 73 2e 64 65 70 6c 6f ise||(this.deplo 00013fd0: 79 54 72 61 6e 73 61 63 74 69 6f 6e 3f 74 68 69 yTransaction?thi 00013fe0: 73 2e 5f 64 65 70 6c 6f 79 65 64 50 72 6f 6d 69 s._deployedPromi 00013ff0: 73 65 3d 74 68 69 73 2e 64 65 70 6c 6f 79 54 72 se=this.deployTr 00014000: 61 6e 73 61 63 74 69 6f 6e 2e 77 61 69 74 28 29 ansaction.wait() 00014010: 2e 74 68 65 6e 28 28 28 29 3d 3e 74 68 69 73 29 .then((()=>this) 00014020: 29 3a 74 68 69 73 2e 5f 64 65 70 6c 6f 79 65 64 ):this._deployed 00014030: 50 72 6f 6d 69 73 65 3d 74 68 69 73 2e 70 72 6f Promise=this.pro 00014040: 76 69 64 65 72 2e 67 65 74 43 6f 64 65 28 74 68 vider.getCode(th 00014050: 69 73 2e 61 64 64 72 65 73 73 2c 65 29 2e 74 68 is.address,e).th 00014060: 65 6e 28 28 65 3d 3e 28 22 30 78 22 3d 3d 3d 65 en((e=>("0x"===e 00014070: 26 26 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 &&Er.throwError( 00014080: 22 63 6f 6e 74 72 61 63 74 20 6e 6f 74 20 64 65 "contract not de 00014090: 70 6c 6f 79 65 64 22 2c 79 2e 65 72 72 6f 72 73 ployed",y.errors 000140a0: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 000140b0: 52 41 54 49 4f 4e 2c 7b 63 6f 6e 74 72 61 63 74 RATION,{contract 000140c0: 41 64 64 72 65 73 73 3a 74 68 69 73 2e 61 64 64 Address:this.add 000140d0: 72 65 73 73 2c 6f 70 65 72 61 74 69 6f 6e 3a 22 ress,operation:" 000140e0: 67 65 74 44 65 70 6c 6f 79 65 64 22 7d 29 2c 74 getDeployed"}),t 000140f0: 68 69 73 29 29 29 29 2c 74 68 69 73 2e 5f 64 65 his)))),this._de 00014100: 70 6c 6f 79 65 64 50 72 6f 6d 69 73 65 7d 66 61 ployedPromise}fa 00014110: 6c 6c 62 61 63 6b 28 65 29 7b 74 68 69 73 2e 73 llback(e){this.s 00014120: 69 67 6e 65 72 7c 7c 45 72 2e 74 68 72 6f 77 45 igner||Er.throwE 00014130: 72 72 6f 72 28 22 73 65 6e 64 69 6e 67 20 61 20 rror("sending a 00014140: 74 72 61 6e 73 61 63 74 69 6f 6e 73 20 72 65 71 transactions req 00014150: 75 69 72 65 20 61 20 73 69 67 6e 65 72 22 2c 79 uire a signer",y 00014160: 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 .errors.UNSUPPOR 00014170: 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f TED_OPERATION,{o 00014180: 70 65 72 61 74 69 6f 6e 3a 22 73 65 6e 64 54 72 peration:"sendTr 00014190: 61 6e 73 61 63 74 69 6f 6e 28 66 61 6c 6c 62 61 ansaction(fallba 000141a0: 63 6b 29 22 7d 29 3b 63 6f 6e 73 74 20 74 3d 69 ck)"});const t=i 000141b0: 65 28 65 7c 7c 7b 7d 29 3b 72 65 74 75 72 6e 5b e(e||{});return[ 000141c0: 22 66 72 6f 6d 22 2c 22 74 6f 22 5d 2e 66 6f 72 "from","to"].for 000141d0: 45 61 63 68 28 28 66 75 6e 63 74 69 6f 6e 28 65 Each((function(e 000141e0: 29 7b 6e 75 6c 6c 21 3d 74 5b 65 5d 26 26 45 72 ){null!=t[e]&&Er 000141f0: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 63 61 6e .throwError("can 00014200: 6e 6f 74 20 6f 76 65 72 72 69 64 65 20 22 2b 65 not override "+e 00014210: 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 ,y.errors.UNSUPP 00014220: 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c ORTED_OPERATION, 00014230: 7b 6f 70 65 72 61 74 69 6f 6e 3a 65 7d 29 7d 29 {operation:e})}) 00014240: 29 2c 74 2e 74 6f 3d 74 68 69 73 2e 72 65 73 6f ),t.to=this.reso 00014250: 6c 76 65 64 41 64 64 72 65 73 73 2c 74 68 69 73 lvedAddress,this 00014260: 2e 64 65 70 6c 6f 79 65 64 28 29 2e 74 68 65 6e .deployed().then 00014270: 28 28 28 29 3d 3e 74 68 69 73 2e 73 69 67 6e 65 ((()=>this.signe 00014280: 72 2e 73 65 6e 64 54 72 61 6e 73 61 63 74 69 6f r.sendTransactio 00014290: 6e 28 74 29 29 29 7d 63 6f 6e 6e 65 63 74 28 65 n(t)))}connect(e 000142a0: 29 7b 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 ){"string"==type 000142b0: 6f 66 20 65 26 26 28 65 3d 6e 65 77 20 70 6e 28 of e&&(e=new pn( 000142c0: 65 2c 74 68 69 73 2e 70 72 6f 76 69 64 65 72 29 e,this.provider) 000142d0: 29 3b 63 6f 6e 73 74 20 74 3d 6e 65 77 20 74 68 );const t=new th 000142e0: 69 73 2e 63 6f 6e 73 74 72 75 63 74 6f 72 28 74 is.constructor(t 000142f0: 68 69 73 2e 61 64 64 72 65 73 73 2c 74 68 69 73 his.address,this 00014300: 2e 69 6e 74 65 72 66 61 63 65 2c 65 29 3b 72 65 .interface,e);re 00014310: 74 75 72 6e 20 74 68 69 73 2e 64 65 70 6c 6f 79 turn this.deploy 00014320: 54 72 61 6e 73 61 63 74 69 6f 6e 26 26 74 65 28 Transaction&&te( 00014330: 74 2c 22 64 65 70 6c 6f 79 54 72 61 6e 73 61 63 t,"deployTransac 00014340: 74 69 6f 6e 22 2c 74 68 69 73 2e 64 65 70 6c 6f tion",this.deplo 00014350: 79 54 72 61 6e 73 61 63 74 69 6f 6e 29 2c 74 7d yTransaction),t} 00014360: 61 74 74 61 63 68 28 65 29 7b 72 65 74 75 72 6e attach(e){return 00014370: 20 6e 65 77 20 74 68 69 73 2e 63 6f 6e 73 74 72 new this.constr 00014380: 75 63 74 6f 72 28 65 2c 74 68 69 73 2e 69 6e 74 uctor(e,this.int 00014390: 65 72 66 61 63 65 2c 74 68 69 73 2e 73 69 67 6e erface,this.sign 000143a0: 65 72 7c 7c 74 68 69 73 2e 70 72 6f 76 69 64 65 er||this.provide 000143b0: 72 29 7d 73 74 61 74 69 63 20 69 73 49 6e 64 65 r)}static isInde 000143c0: 78 65 64 28 65 29 7b 72 65 74 75 72 6e 20 4a 74 xed(e){return Jt 000143d0: 2e 69 73 49 6e 64 65 78 65 64 28 65 29 7d 5f 6e .isIndexed(e)}_n 000143e0: 6f 72 6d 61 6c 69 7a 65 52 75 6e 6e 69 6e 67 45 ormalizeRunningE 000143f0: 76 65 6e 74 28 65 29 7b 72 65 74 75 72 6e 20 74 vent(e){return t 00014400: 68 69 73 2e 5f 72 75 6e 6e 69 6e 67 45 76 65 6e his._runningEven 00014410: 74 73 5b 65 2e 74 61 67 5d 3f 74 68 69 73 2e 5f ts[e.tag]?this._ 00014420: 72 75 6e 6e 69 6e 67 45 76 65 6e 74 73 5b 65 2e runningEvents[e. 00014430: 74 61 67 5d 3a 65 7d 5f 67 65 74 52 75 6e 6e 69 tag]:e}_getRunni 00014440: 6e 67 45 76 65 6e 74 28 65 29 7b 69 66 28 22 73 ngEvent(e){if("s 00014450: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 00014460: 29 7b 69 66 28 22 65 72 72 6f 72 22 3d 3d 3d 65 ){if("error"===e 00014470: 29 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 6e 6f )return this._no 00014480: 72 6d 61 6c 69 7a 65 52 75 6e 6e 69 6e 67 45 76 rmalizeRunningEv 00014490: 65 6e 74 28 6e 65 77 20 52 72 29 3b 69 66 28 22 ent(new Rr);if(" 000144a0: 65 76 65 6e 74 22 3d 3d 3d 65 29 72 65 74 75 72 event"===e)retur 000144b0: 6e 20 74 68 69 73 2e 5f 6e 6f 72 6d 61 6c 69 7a n this._normaliz 000144c0: 65 52 75 6e 6e 69 6e 67 45 76 65 6e 74 28 6e 65 eRunningEvent(ne 000144d0: 77 20 4f 72 28 22 65 76 65 6e 74 22 2c 6e 75 6c w Or("event",nul 000144e0: 6c 29 29 3b 69 66 28 22 2a 22 3d 3d 3d 65 29 72 l));if("*"===e)r 000144f0: 65 74 75 72 6e 20 74 68 69 73 2e 5f 6e 6f 72 6d eturn this._norm 00014500: 61 6c 69 7a 65 52 75 6e 6e 69 6e 67 45 76 65 6e alizeRunningEven 00014510: 74 28 6e 65 77 20 50 72 28 74 68 69 73 2e 61 64 t(new Pr(this.ad 00014520: 64 72 65 73 73 2c 74 68 69 73 2e 69 6e 74 65 72 dress,this.inter 00014530: 66 61 63 65 29 29 3b 63 6f 6e 73 74 20 74 3d 74 face));const t=t 00014540: 68 69 73 2e 69 6e 74 65 72 66 61 63 65 2e 67 65 his.interface.ge 00014550: 74 45 76 65 6e 74 28 65 29 3b 72 65 74 75 72 6e tEvent(e);return 00014560: 20 74 68 69 73 2e 5f 6e 6f 72 6d 61 6c 69 7a 65 this._normalize 00014570: 52 75 6e 6e 69 6e 67 45 76 65 6e 74 28 6e 65 77 RunningEvent(new 00014580: 20 4e 72 28 74 68 69 73 2e 61 64 64 72 65 73 73 Nr(this.address 00014590: 2c 74 68 69 73 2e 69 6e 74 65 72 66 61 63 65 2c ,this.interface, 000145a0: 74 29 29 7d 69 66 28 65 2e 74 6f 70 69 63 73 26 t))}if(e.topics& 000145b0: 26 65 2e 74 6f 70 69 63 73 2e 6c 65 6e 67 74 68 &e.topics.length 000145c0: 3e 30 29 7b 74 72 79 7b 63 6f 6e 73 74 20 74 3d >0){try{const t= 000145d0: 65 2e 74 6f 70 69 63 73 5b 30 5d 3b 69 66 28 22 e.topics[0];if(" 000145e0: 73 74 72 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 string"!=typeof 000145f0: 74 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f t)throw new Erro 00014600: 72 28 22 69 6e 76 61 6c 69 64 20 74 6f 70 69 63 r("invalid topic 00014610: 22 29 3b 63 6f 6e 73 74 20 6e 3d 74 68 69 73 2e ");const n=this. 00014620: 69 6e 74 65 72 66 61 63 65 2e 67 65 74 45 76 65 interface.getEve 00014630: 6e 74 28 74 29 3b 72 65 74 75 72 6e 20 74 68 69 nt(t);return thi 00014640: 73 2e 5f 6e 6f 72 6d 61 6c 69 7a 65 52 75 6e 6e s._normalizeRunn 00014650: 69 6e 67 45 76 65 6e 74 28 6e 65 77 20 4e 72 28 ingEvent(new Nr( 00014660: 74 68 69 73 2e 61 64 64 72 65 73 73 2c 74 68 69 this.address,thi 00014670: 73 2e 69 6e 74 65 72 66 61 63 65 2c 6e 2c 65 2e s.interface,n,e. 00014680: 74 6f 70 69 63 73 29 29 7d 63 61 74 63 68 28 65 topics))}catch(e 00014690: 29 7b 7d 63 6f 6e 73 74 20 74 3d 7b 61 64 64 72 ){}const t={addr 000146a0: 65 73 73 3a 74 68 69 73 2e 61 64 64 72 65 73 73 ess:this.address 000146b0: 2c 74 6f 70 69 63 73 3a 65 2e 74 6f 70 69 63 73 ,topics:e.topics 000146c0: 7d 3b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 6e };return this._n 000146d0: 6f 72 6d 61 6c 69 7a 65 52 75 6e 6e 69 6e 67 45 ormalizeRunningE 000146e0: 76 65 6e 74 28 6e 65 77 20 4f 72 28 49 72 28 74 vent(new Or(Ir(t 000146f0: 29 2c 74 29 29 7d 72 65 74 75 72 6e 20 74 68 69 ),t))}return thi 00014700: 73 2e 5f 6e 6f 72 6d 61 6c 69 7a 65 52 75 6e 6e s._normalizeRunn 00014710: 69 6e 67 45 76 65 6e 74 28 6e 65 77 20 50 72 28 ingEvent(new Pr( 00014720: 74 68 69 73 2e 61 64 64 72 65 73 73 2c 74 68 69 this.address,thi 00014730: 73 2e 69 6e 74 65 72 66 61 63 65 29 29 7d 5f 63 s.interface))}_c 00014740: 68 65 63 6b 52 75 6e 6e 69 6e 67 45 76 65 6e 74 heckRunningEvent 00014750: 73 28 65 29 7b 69 66 28 30 3d 3d 3d 65 2e 6c 69 s(e){if(0===e.li 00014760: 73 74 65 6e 65 72 43 6f 75 6e 74 28 29 29 7b 64 stenerCount()){d 00014770: 65 6c 65 74 65 20 74 68 69 73 2e 5f 72 75 6e 6e elete this._runn 00014780: 69 6e 67 45 76 65 6e 74 73 5b 65 2e 74 61 67 5d ingEvents[e.tag] 00014790: 3b 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 5f 77 ;const t=this._w 000147a0: 72 61 70 70 65 64 45 6d 69 74 73 5b 65 2e 74 61 rappedEmits[e.ta 000147b0: 67 5d 3b 74 26 26 65 2e 66 69 6c 74 65 72 26 26 g];t&&e.filter&& 000147c0: 28 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 6f (this.provider.o 000147d0: 66 66 28 65 2e 66 69 6c 74 65 72 2c 74 29 2c 64 ff(e.filter,t),d 000147e0: 65 6c 65 74 65 20 74 68 69 73 2e 5f 77 72 61 70 elete this._wrap 000147f0: 70 65 64 45 6d 69 74 73 5b 65 2e 74 61 67 5d 29 pedEmits[e.tag]) 00014800: 7d 7d 5f 77 72 61 70 45 76 65 6e 74 28 65 2c 74 }}_wrapEvent(e,t 00014810: 2c 6e 29 7b 63 6f 6e 73 74 20 72 3d 63 65 28 74 ,n){const r=ce(t 00014820: 29 3b 72 65 74 75 72 6e 20 72 2e 72 65 6d 6f 76 );return r.remov 00014830: 65 4c 69 73 74 65 6e 65 72 3d 28 29 3d 3e 7b 6e eListener=()=>{n 00014840: 26 26 28 65 2e 72 65 6d 6f 76 65 4c 69 73 74 65 &&(e.removeListe 00014850: 6e 65 72 28 6e 29 2c 74 68 69 73 2e 5f 63 68 65 ner(n),this._che 00014860: 63 6b 52 75 6e 6e 69 6e 67 45 76 65 6e 74 73 28 ckRunningEvents( 00014870: 65 29 29 7d 2c 72 2e 67 65 74 42 6c 6f 63 6b 3d e))},r.getBlock= 00014880: 28 29 3d 3e 74 68 69 73 2e 70 72 6f 76 69 64 65 ()=>this.provide 00014890: 72 2e 67 65 74 42 6c 6f 63 6b 28 74 2e 62 6c 6f r.getBlock(t.blo 000148a0: 63 6b 48 61 73 68 29 2c 72 2e 67 65 74 54 72 61 ckHash),r.getTra 000148b0: 6e 73 61 63 74 69 6f 6e 3d 28 29 3d 3e 74 68 69 nsaction=()=>thi 000148c0: 73 2e 70 72 6f 76 69 64 65 72 2e 67 65 74 54 72 s.provider.getTr 000148d0: 61 6e 73 61 63 74 69 6f 6e 28 74 2e 74 72 61 6e ansaction(t.tran 000148e0: 73 61 63 74 69 6f 6e 48 61 73 68 29 2c 72 2e 67 sactionHash),r.g 000148f0: 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 etTransactionRec 00014900: 65 69 70 74 3d 28 29 3d 3e 74 68 69 73 2e 70 72 eipt=()=>this.pr 00014910: 6f 76 69 64 65 72 2e 67 65 74 54 72 61 6e 73 61 ovider.getTransa 00014920: 63 74 69 6f 6e 52 65 63 65 69 70 74 28 74 2e 74 ctionReceipt(t.t 00014930: 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 68 29 2c ransactionHash), 00014940: 65 2e 70 72 65 70 61 72 65 45 76 65 6e 74 28 72 e.prepareEvent(r 00014950: 29 2c 72 7d 5f 61 64 64 45 76 65 6e 74 4c 69 73 ),r}_addEventLis 00014960: 74 65 6e 65 72 28 65 2c 74 2c 6e 29 7b 69 66 28 tener(e,t,n){if( 00014970: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 7c 7c 45 this.provider||E 00014980: 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 65 76 r.throwError("ev 00014990: 65 6e 74 73 20 72 65 71 75 69 72 65 20 61 20 70 ents require a p 000149a0: 72 6f 76 69 64 65 72 20 6f 72 20 61 20 73 69 67 rovider or a sig 000149b0: 6e 65 72 20 77 69 74 68 20 61 20 70 72 6f 76 69 ner with a provi 000149c0: 64 65 72 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e der",y.errors.UN 000149d0: 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 41 54 SUPPORTED_OPERAT 000149e0: 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a 22 ION,{operation:" 000149f0: 6f 6e 63 65 22 7d 29 2c 65 2e 61 64 64 4c 69 73 once"}),e.addLis 00014a00: 74 65 6e 65 72 28 74 2c 6e 29 2c 74 68 69 73 2e tener(t,n),this. 00014a10: 5f 72 75 6e 6e 69 6e 67 45 76 65 6e 74 73 5b 65 _runningEvents[e 00014a20: 2e 74 61 67 5d 3d 65 2c 21 74 68 69 73 2e 5f 77 .tag]=e,!this._w 00014a30: 72 61 70 70 65 64 45 6d 69 74 73 5b 65 2e 74 61 rappedEmits[e.ta 00014a40: 67 5d 29 7b 63 6f 6e 73 74 20 6e 3d 6e 3d 3e 7b g]){const n=n=>{ 00014a50: 6c 65 74 20 72 3d 74 68 69 73 2e 5f 77 72 61 70 let r=this._wrap 00014a60: 45 76 65 6e 74 28 65 2c 6e 2c 74 29 3b 69 66 28 Event(e,n,t);if( 00014a70: 6e 75 6c 6c 3d 3d 72 2e 64 65 63 6f 64 65 45 72 null==r.decodeEr 00014a80: 72 6f 72 29 74 72 79 7b 63 6f 6e 73 74 20 74 3d ror)try{const t= 00014a90: 65 2e 67 65 74 45 6d 69 74 28 72 29 3b 74 68 69 e.getEmit(r);thi 00014aa0: 73 2e 65 6d 69 74 28 65 2e 66 69 6c 74 65 72 2c s.emit(e.filter, 00014ab0: 2e 2e 2e 74 29 7d 63 61 74 63 68 28 65 29 7b 72 ...t)}catch(e){r 00014ac0: 2e 64 65 63 6f 64 65 45 72 72 6f 72 3d 65 2e 65 .decodeError=e.e 00014ad0: 72 72 6f 72 7d 6e 75 6c 6c 21 3d 65 2e 66 69 6c rror}null!=e.fil 00014ae0: 74 65 72 26 26 74 68 69 73 2e 65 6d 69 74 28 22 ter&&this.emit(" 00014af0: 65 76 65 6e 74 22 2c 72 29 2c 6e 75 6c 6c 21 3d event",r),null!= 00014b00: 72 2e 64 65 63 6f 64 65 45 72 72 6f 72 26 26 74 r.decodeError&&t 00014b10: 68 69 73 2e 65 6d 69 74 28 22 65 72 72 6f 72 22 his.emit("error" 00014b20: 2c 72 2e 64 65 63 6f 64 65 45 72 72 6f 72 2c 72 ,r.decodeError,r 00014b30: 29 7d 3b 74 68 69 73 2e 5f 77 72 61 70 70 65 64 )};this._wrapped 00014b40: 45 6d 69 74 73 5b 65 2e 74 61 67 5d 3d 6e 2c 6e Emits[e.tag]=n,n 00014b50: 75 6c 6c 21 3d 65 2e 66 69 6c 74 65 72 26 26 74 ull!=e.filter&&t 00014b60: 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 6f 6e 28 his.provider.on( 00014b70: 65 2e 66 69 6c 74 65 72 2c 6e 29 7d 7d 71 75 65 e.filter,n)}}que 00014b80: 72 79 46 69 6c 74 65 72 28 65 2c 74 2c 6e 29 7b ryFilter(e,t,n){ 00014b90: 63 6f 6e 73 74 20 72 3d 74 68 69 73 2e 5f 67 65 const r=this._ge 00014ba0: 74 52 75 6e 6e 69 6e 67 45 76 65 6e 74 28 65 29 tRunningEvent(e) 00014bb0: 2c 6f 3d 69 65 28 72 2e 66 69 6c 74 65 72 29 3b ,o=ie(r.filter); 00014bc0: 72 65 74 75 72 6e 22 73 74 72 69 6e 67 22 3d 3d return"string"== 00014bd0: 74 79 70 65 6f 66 20 74 26 26 49 28 74 2c 33 32 typeof t&&I(t,32 00014be0: 29 3f 28 6e 75 6c 6c 21 3d 6e 26 26 45 72 2e 74 )?(null!=n&&Er.t 00014bf0: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00014c00: 72 28 22 63 61 6e 6e 6f 74 20 73 70 65 63 69 66 r("cannot specif 00014c10: 79 20 74 6f 42 6c 6f 63 6b 20 77 69 74 68 20 62 y toBlock with b 00014c20: 6c 6f 63 6b 68 61 73 68 22 2c 22 74 6f 42 6c 6f lockhash","toBlo 00014c30: 63 6b 22 2c 6e 29 2c 6f 2e 62 6c 6f 63 6b 48 61 ck",n),o.blockHa 00014c40: 73 68 3d 74 29 3a 28 6f 2e 66 72 6f 6d 42 6c 6f sh=t):(o.fromBlo 00014c50: 63 6b 3d 6e 75 6c 6c 21 3d 74 3f 74 3a 30 2c 6f ck=null!=t?t:0,o 00014c60: 2e 74 6f 42 6c 6f 63 6b 3d 6e 75 6c 6c 21 3d 6e .toBlock=null!=n 00014c70: 3f 6e 3a 22 6c 61 74 65 73 74 22 29 2c 74 68 69 ?n:"latest"),thi 00014c80: 73 2e 70 72 6f 76 69 64 65 72 2e 67 65 74 4c 6f s.provider.getLo 00014c90: 67 73 28 6f 29 2e 74 68 65 6e 28 28 65 3d 3e 65 gs(o).then((e=>e 00014ca0: 2e 6d 61 70 28 28 65 3d 3e 74 68 69 73 2e 5f 77 .map((e=>this._w 00014cb0: 72 61 70 45 76 65 6e 74 28 72 2c 65 2c 6e 75 6c rapEvent(r,e,nul 00014cc0: 6c 29 29 29 29 29 7d 6f 6e 28 65 2c 74 29 7b 72 l)))))}on(e,t){r 00014cd0: 65 74 75 72 6e 20 74 68 69 73 2e 5f 61 64 64 45 eturn this._addE 00014ce0: 76 65 6e 74 4c 69 73 74 65 6e 65 72 28 74 68 69 ventListener(thi 00014cf0: 73 2e 5f 67 65 74 52 75 6e 6e 69 6e 67 45 76 65 s._getRunningEve 00014d00: 6e 74 28 65 29 2c 74 2c 21 31 29 2c 74 68 69 73 nt(e),t,!1),this 00014d10: 7d 6f 6e 63 65 28 65 2c 74 29 7b 72 65 74 75 72 }once(e,t){retur 00014d20: 6e 20 74 68 69 73 2e 5f 61 64 64 45 76 65 6e 74 n this._addEvent 00014d30: 4c 69 73 74 65 6e 65 72 28 74 68 69 73 2e 5f 67 Listener(this._g 00014d40: 65 74 52 75 6e 6e 69 6e 67 45 76 65 6e 74 28 65 etRunningEvent(e 00014d50: 29 2c 74 2c 21 30 29 2c 74 68 69 73 7d 65 6d 69 ),t,!0),this}emi 00014d60: 74 28 65 2c 2e 2e 2e 74 29 7b 69 66 28 21 74 68 t(e,...t){if(!th 00014d70: 69 73 2e 70 72 6f 76 69 64 65 72 29 72 65 74 75 is.provider)retu 00014d80: 72 6e 21 31 3b 63 6f 6e 73 74 20 6e 3d 74 68 69 rn!1;const n=thi 00014d90: 73 2e 5f 67 65 74 52 75 6e 6e 69 6e 67 45 76 65 s._getRunningEve 00014da0: 6e 74 28 65 29 2c 72 3d 6e 2e 72 75 6e 28 74 29 nt(e),r=n.run(t) 00014db0: 3e 30 3b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f >0;return this._ 00014dc0: 63 68 65 63 6b 52 75 6e 6e 69 6e 67 45 76 65 6e checkRunningEven 00014dd0: 74 73 28 6e 29 2c 72 7d 6c 69 73 74 65 6e 65 72 ts(n),r}listener 00014de0: 43 6f 75 6e 74 28 65 29 7b 72 65 74 75 72 6e 20 Count(e){return 00014df0: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 3f 6e 75 this.provider?nu 00014e00: 6c 6c 3d 3d 65 3f 4f 62 6a 65 63 74 2e 6b 65 79 ll==e?Object.key 00014e10: 73 28 74 68 69 73 2e 5f 72 75 6e 6e 69 6e 67 45 s(this._runningE 00014e20: 76 65 6e 74 73 29 2e 72 65 64 75 63 65 28 28 28 vents).reduce((( 00014e30: 65 2c 74 29 3d 3e 65 2b 74 68 69 73 2e 5f 72 75 e,t)=>e+this._ru 00014e40: 6e 6e 69 6e 67 45 76 65 6e 74 73 5b 74 5d 2e 6c nningEvents[t].l 00014e50: 69 73 74 65 6e 65 72 43 6f 75 6e 74 28 29 29 2c istenerCount()), 00014e60: 30 29 3a 74 68 69 73 2e 5f 67 65 74 52 75 6e 6e 0):this._getRunn 00014e70: 69 6e 67 45 76 65 6e 74 28 65 29 2e 6c 69 73 74 ingEvent(e).list 00014e80: 65 6e 65 72 43 6f 75 6e 74 28 29 3a 30 7d 6c 69 enerCount():0}li 00014e90: 73 74 65 6e 65 72 73 28 65 29 7b 69 66 28 21 74 steners(e){if(!t 00014ea0: 68 69 73 2e 70 72 6f 76 69 64 65 72 29 72 65 74 his.provider)ret 00014eb0: 75 72 6e 5b 5d 3b 69 66 28 6e 75 6c 6c 3d 3d 65 urn[];if(null==e 00014ec0: 29 7b 63 6f 6e 73 74 20 65 3d 5b 5d 3b 66 6f 72 ){const e=[];for 00014ed0: 28 6c 65 74 20 74 20 69 6e 20 74 68 69 73 2e 5f (let t in this._ 00014ee0: 72 75 6e 6e 69 6e 67 45 76 65 6e 74 73 29 74 68 runningEvents)th 00014ef0: 69 73 2e 5f 72 75 6e 6e 69 6e 67 45 76 65 6e 74 is._runningEvent 00014f00: 73 5b 74 5d 2e 6c 69 73 74 65 6e 65 72 73 28 29 s[t].listeners() 00014f10: 2e 66 6f 72 45 61 63 68 28 28 74 3d 3e 7b 65 2e .forEach((t=>{e. 00014f20: 70 75 73 68 28 74 29 7d 29 29 3b 72 65 74 75 72 push(t)}));retur 00014f30: 6e 20 65 7d 72 65 74 75 72 6e 20 74 68 69 73 2e n e}return this. 00014f40: 5f 67 65 74 52 75 6e 6e 69 6e 67 45 76 65 6e 74 _getRunningEvent 00014f50: 28 65 29 2e 6c 69 73 74 65 6e 65 72 73 28 29 7d (e).listeners()} 00014f60: 72 65 6d 6f 76 65 41 6c 6c 4c 69 73 74 65 6e 65 removeAllListene 00014f70: 72 73 28 65 29 7b 69 66 28 21 74 68 69 73 2e 70 rs(e){if(!this.p 00014f80: 72 6f 76 69 64 65 72 29 72 65 74 75 72 6e 20 74 rovider)return t 00014f90: 68 69 73 3b 69 66 28 6e 75 6c 6c 3d 3d 65 29 7b his;if(null==e){ 00014fa0: 66 6f 72 28 63 6f 6e 73 74 20 65 20 69 6e 20 74 for(const e in t 00014fb0: 68 69 73 2e 5f 72 75 6e 6e 69 6e 67 45 76 65 6e his._runningEven 00014fc0: 74 73 29 7b 63 6f 6e 73 74 20 74 3d 74 68 69 73 ts){const t=this 00014fd0: 2e 5f 72 75 6e 6e 69 6e 67 45 76 65 6e 74 73 5b ._runningEvents[ 00014fe0: 65 5d 3b 74 2e 72 65 6d 6f 76 65 41 6c 6c 4c 69 e];t.removeAllLi 00014ff0: 73 74 65 6e 65 72 73 28 29 2c 74 68 69 73 2e 5f steners(),this._ 00015000: 63 68 65 63 6b 52 75 6e 6e 69 6e 67 45 76 65 6e checkRunningEven 00015010: 74 73 28 74 29 7d 72 65 74 75 72 6e 20 74 68 69 ts(t)}return thi 00015020: 73 7d 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 5f s}const t=this._ 00015030: 67 65 74 52 75 6e 6e 69 6e 67 45 76 65 6e 74 28 getRunningEvent( 00015040: 65 29 3b 72 65 74 75 72 6e 20 74 2e 72 65 6d 6f e);return t.remo 00015050: 76 65 41 6c 6c 4c 69 73 74 65 6e 65 72 73 28 29 veAllListeners() 00015060: 2c 74 68 69 73 2e 5f 63 68 65 63 6b 52 75 6e 6e ,this._checkRunn 00015070: 69 6e 67 45 76 65 6e 74 73 28 74 29 2c 74 68 69 ingEvents(t),thi 00015080: 73 7d 6f 66 66 28 65 2c 74 29 7b 69 66 28 21 74 s}off(e,t){if(!t 00015090: 68 69 73 2e 70 72 6f 76 69 64 65 72 29 72 65 74 his.provider)ret 000150a0: 75 72 6e 20 74 68 69 73 3b 63 6f 6e 73 74 20 6e urn this;const n 000150b0: 3d 74 68 69 73 2e 5f 67 65 74 52 75 6e 6e 69 6e =this._getRunnin 000150c0: 67 45 76 65 6e 74 28 65 29 3b 72 65 74 75 72 6e gEvent(e);return 000150d0: 20 6e 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 n.removeListene 000150e0: 72 28 74 29 2c 74 68 69 73 2e 5f 63 68 65 63 6b r(t),this._check 000150f0: 52 75 6e 6e 69 6e 67 45 76 65 6e 74 73 28 6e 29 RunningEvents(n) 00015100: 2c 74 68 69 73 7d 72 65 6d 6f 76 65 4c 69 73 74 ,this}removeList 00015110: 65 6e 65 72 28 65 2c 74 29 7b 72 65 74 75 72 6e ener(e,t){return 00015120: 20 74 68 69 73 2e 6f 66 66 28 65 2c 74 29 7d 7d this.off(e,t)}} 00015130: 63 6c 61 73 73 20 44 72 20 65 78 74 65 6e 64 73 class Dr extends 00015140: 20 4d 72 7b 7d 63 6c 61 73 73 20 4c 72 7b 63 6f Mr{}class Lr{co 00015150: 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 2c 6e 29 nstructor(e,t,n) 00015160: 7b 6c 65 74 20 72 3d 6e 75 6c 6c 3b 72 3d 22 73 {let r=null;r="s 00015170: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 74 tring"==typeof t 00015180: 3f 74 3a 78 28 74 29 3f 52 28 74 29 3a 74 26 26 ?t:x(t)?R(t):t&& 00015190: 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 "string"==typeof 000151a0: 20 74 2e 6f 62 6a 65 63 74 3f 74 2e 6f 62 6a 65 t.object?t.obje 000151b0: 63 74 3a 22 21 22 2c 22 30 78 22 21 3d 3d 72 2e ct:"!","0x"!==r. 000151c0: 73 75 62 73 74 72 69 6e 67 28 30 2c 32 29 26 26 substring(0,2)&& 000151d0: 28 72 3d 22 30 78 22 2b 72 29 2c 28 21 49 28 72 (r="0x"+r),(!I(r 000151e0: 29 7c 7c 72 2e 6c 65 6e 67 74 68 25 32 29 26 26 )||r.length%2)&& 000151f0: 45 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Er.throwArgument 00015200: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 62 Error("invalid b 00015210: 79 74 65 63 6f 64 65 22 2c 22 62 79 74 65 63 6f ytecode","byteco 00015220: 64 65 22 2c 74 29 2c 6e 26 26 21 64 6e 2e 69 73 de",t),n&&!dn.is 00015230: 53 69 67 6e 65 72 28 6e 29 26 26 45 72 2e 74 68 Signer(n)&&Er.th 00015240: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 00015250: 28 22 69 6e 76 61 6c 69 64 20 73 69 67 6e 65 72 ("invalid signer 00015260: 22 2c 22 73 69 67 6e 65 72 22 2c 6e 29 2c 74 65 ","signer",n),te 00015270: 28 74 68 69 73 2c 22 62 79 74 65 63 6f 64 65 22 (this,"bytecode" 00015280: 2c 72 29 2c 74 65 28 74 68 69 73 2c 22 69 6e 74 ,r),te(this,"int 00015290: 65 72 66 61 63 65 22 2c 6e 65 28 6e 65 77 2e 74 erface",ne(new.t 000152a0: 61 72 67 65 74 2c 22 67 65 74 49 6e 74 65 72 66 arget,"getInterf 000152b0: 61 63 65 22 29 28 65 29 29 2c 74 65 28 74 68 69 ace")(e)),te(thi 000152c0: 73 2c 22 73 69 67 6e 65 72 22 2c 6e 7c 7c 6e 75 s,"signer",n||nu 000152d0: 6c 6c 29 7d 67 65 74 44 65 70 6c 6f 79 54 72 61 ll)}getDeployTra 000152e0: 6e 73 61 63 74 69 6f 6e 28 2e 2e 2e 65 29 7b 6c nsaction(...e){l 000152f0: 65 74 20 74 3d 7b 7d 3b 69 66 28 65 2e 6c 65 6e et t={};if(e.len 00015300: 67 74 68 3d 3d 3d 74 68 69 73 2e 69 6e 74 65 72 gth===this.inter 00015310: 66 61 63 65 2e 64 65 70 6c 6f 79 2e 69 6e 70 75 face.deploy.inpu 00015320: 74 73 2e 6c 65 6e 67 74 68 2b 31 26 26 22 6f 62 ts.length+1&&"ob 00015330: 6a 65 63 74 22 3d 3d 74 79 70 65 6f 66 20 65 5b ject"==typeof e[ 00015340: 65 2e 6c 65 6e 67 74 68 2d 31 5d 29 7b 74 3d 69 e.length-1]){t=i 00015350: 65 28 65 2e 70 6f 70 28 29 29 3b 66 6f 72 28 63 e(e.pop());for(c 00015360: 6f 6e 73 74 20 65 20 69 6e 20 74 29 69 66 28 21 onst e in t)if(! 00015370: 5f 72 5b 65 5d 29 74 68 72 6f 77 20 6e 65 77 20 _r[e])throw new 00015380: 45 72 72 6f 72 28 22 75 6e 6b 6e 6f 77 6e 20 74 Error("unknown t 00015390: 72 61 6e 73 61 63 74 69 6f 6e 20 6f 76 65 72 72 ransaction overr 000153a0: 69 64 65 20 22 2b 65 29 7d 69 66 28 5b 22 64 61 ide "+e)}if(["da 000153b0: 74 61 22 2c 22 66 72 6f 6d 22 2c 22 74 6f 22 5d ta","from","to"] 000153c0: 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 6e 75 .forEach((e=>{nu 000153d0: 6c 6c 21 3d 74 5b 65 5d 26 26 45 72 2e 74 68 72 ll!=t[e]&&Er.thr 000153e0: 6f 77 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 owError("cannot 000153f0: 6f 76 65 72 72 69 64 65 20 22 2b 65 2c 79 2e 65 override "+e,y.e 00015400: 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 rrors.UNSUPPORTE 00015410: 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 D_OPERATION,{ope 00015420: 72 61 74 69 6f 6e 3a 65 7d 29 7d 29 29 2c 74 2e ration:e})})),t. 00015430: 76 61 6c 75 65 29 7b 59 2e 66 72 6f 6d 28 74 2e value){Y.from(t. 00015440: 76 61 6c 75 65 29 2e 69 73 5a 65 72 6f 28 29 7c value).isZero()| 00015450: 7c 74 68 69 73 2e 69 6e 74 65 72 66 61 63 65 2e |this.interface. 00015460: 64 65 70 6c 6f 79 2e 70 61 79 61 62 6c 65 7c 7c deploy.payable|| 00015470: 45 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 6e Er.throwError("n 00015480: 6f 6e 2d 70 61 79 61 62 6c 65 20 63 6f 6e 73 74 on-payable const 00015490: 72 75 63 74 6f 72 20 63 61 6e 6e 6f 74 20 6f 76 ructor cannot ov 000154a0: 65 72 72 69 64 65 20 76 61 6c 75 65 22 2c 79 2e erride value",y. 000154b0: 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 errors.UNSUPPORT 000154c0: 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 ED_OPERATION,{op 000154d0: 65 72 61 74 69 6f 6e 3a 22 6f 76 65 72 72 69 64 eration:"overrid 000154e0: 65 73 2e 76 61 6c 75 65 22 2c 76 61 6c 75 65 3a es.value",value: 000154f0: 74 2e 76 61 6c 75 65 7d 29 7d 72 65 74 75 72 6e t.value})}return 00015500: 20 45 72 2e 63 68 65 63 6b 41 72 67 75 6d 65 6e Er.checkArgumen 00015510: 74 43 6f 75 6e 74 28 65 2e 6c 65 6e 67 74 68 2c tCount(e.length, 00015520: 74 68 69 73 2e 69 6e 74 65 72 66 61 63 65 2e 64 this.interface.d 00015530: 65 70 6c 6f 79 2e 69 6e 70 75 74 73 2e 6c 65 6e eploy.inputs.len 00015540: 67 74 68 2c 22 20 69 6e 20 43 6f 6e 74 72 61 63 gth," in Contrac 00015550: 74 20 63 6f 6e 73 74 72 75 63 74 6f 72 22 29 2c t constructor"), 00015560: 74 2e 64 61 74 61 3d 52 28 43 28 5b 74 68 69 73 t.data=R(C([this 00015570: 2e 62 79 74 65 63 6f 64 65 2c 74 68 69 73 2e 69 .bytecode,this.i 00015580: 6e 74 65 72 66 61 63 65 2e 65 6e 63 6f 64 65 44 nterface.encodeD 00015590: 65 70 6c 6f 79 28 65 29 5d 29 29 2c 74 7d 64 65 eploy(e)])),t}de 000155a0: 70 6c 6f 79 28 2e 2e 2e 65 29 7b 72 65 74 75 72 ploy(...e){retur 000155b0: 6e 20 53 72 28 74 68 69 73 2c 76 6f 69 64 20 30 n Sr(this,void 0 000155c0: 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f ,void 0,(functio 000155d0: 6e 2a 28 29 7b 6c 65 74 20 74 3d 7b 7d 3b 65 2e n*(){let t={};e. 000155e0: 6c 65 6e 67 74 68 3d 3d 3d 74 68 69 73 2e 69 6e length===this.in 000155f0: 74 65 72 66 61 63 65 2e 64 65 70 6c 6f 79 2e 69 terface.deploy.i 00015600: 6e 70 75 74 73 2e 6c 65 6e 67 74 68 2b 31 26 26 nputs.length+1&& 00015610: 28 74 3d 65 2e 70 6f 70 28 29 29 2c 45 72 2e 63 (t=e.pop()),Er.c 00015620: 68 65 63 6b 41 72 67 75 6d 65 6e 74 43 6f 75 6e heckArgumentCoun 00015630: 74 28 65 2e 6c 65 6e 67 74 68 2c 74 68 69 73 2e t(e.length,this. 00015640: 69 6e 74 65 72 66 61 63 65 2e 64 65 70 6c 6f 79 interface.deploy 00015650: 2e 69 6e 70 75 74 73 2e 6c 65 6e 67 74 68 2c 22 .inputs.length," 00015660: 20 69 6e 20 43 6f 6e 74 72 61 63 74 20 63 6f 6e in Contract con 00015670: 73 74 72 75 63 74 6f 72 22 29 3b 63 6f 6e 73 74 structor");const 00015680: 20 6e 3d 79 69 65 6c 64 20 78 72 28 74 68 69 73 n=yield xr(this 00015690: 2e 73 69 67 6e 65 72 2c 65 2c 74 68 69 73 2e 69 .signer,e,this.i 000156a0: 6e 74 65 72 66 61 63 65 2e 64 65 70 6c 6f 79 2e nterface.deploy. 000156b0: 69 6e 70 75 74 73 29 3b 6e 2e 70 75 73 68 28 74 inputs);n.push(t 000156c0: 29 3b 63 6f 6e 73 74 20 72 3d 74 68 69 73 2e 67 );const r=this.g 000156d0: 65 74 44 65 70 6c 6f 79 54 72 61 6e 73 61 63 74 etDeployTransact 000156e0: 69 6f 6e 28 2e 2e 2e 6e 29 2c 6f 3d 79 69 65 6c ion(...n),o=yiel 000156f0: 64 20 74 68 69 73 2e 73 69 67 6e 65 72 2e 73 65 d this.signer.se 00015700: 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 28 72 29 ndTransaction(r) 00015710: 2c 69 3d 6e 65 28 74 68 69 73 2e 63 6f 6e 73 74 ,i=ne(this.const 00015720: 72 75 63 74 6f 72 2c 22 67 65 74 43 6f 6e 74 72 ructor,"getContr 00015730: 61 63 74 41 64 64 72 65 73 73 22 29 28 6f 29 2c actAddress")(o), 00015740: 61 3d 6e 65 28 74 68 69 73 2e 63 6f 6e 73 74 72 a=ne(this.constr 00015750: 75 63 74 6f 72 2c 22 67 65 74 43 6f 6e 74 72 61 uctor,"getContra 00015760: 63 74 22 29 28 69 2c 74 68 69 73 2e 69 6e 74 65 ct")(i,this.inte 00015770: 72 66 61 63 65 2c 74 68 69 73 2e 73 69 67 6e 65 rface,this.signe 00015780: 72 29 3b 72 65 74 75 72 6e 20 43 72 28 61 2c 6f r);return Cr(a,o 00015790: 29 2c 74 65 28 61 2c 22 64 65 70 6c 6f 79 54 72 ),te(a,"deployTr 000157a0: 61 6e 73 61 63 74 69 6f 6e 22 2c 6f 29 2c 61 7d ansaction",o),a} 000157b0: 29 29 7d 61 74 74 61 63 68 28 65 29 7b 72 65 74 ))}attach(e){ret 000157c0: 75 72 6e 20 74 68 69 73 2e 63 6f 6e 73 74 72 75 urn this.constru 000157d0: 63 74 6f 72 2e 67 65 74 43 6f 6e 74 72 61 63 74 ctor.getContract 000157e0: 28 65 2c 74 68 69 73 2e 69 6e 74 65 72 66 61 63 (e,this.interfac 000157f0: 65 2c 74 68 69 73 2e 73 69 67 6e 65 72 29 7d 63 e,this.signer)}c 00015800: 6f 6e 6e 65 63 74 28 65 29 7b 72 65 74 75 72 6e onnect(e){return 00015810: 20 6e 65 77 20 74 68 69 73 2e 63 6f 6e 73 74 72 new this.constr 00015820: 75 63 74 6f 72 28 74 68 69 73 2e 69 6e 74 65 72 uctor(this.inter 00015830: 66 61 63 65 2c 74 68 69 73 2e 62 79 74 65 63 6f face,this.byteco 00015840: 64 65 2c 65 29 7d 73 74 61 74 69 63 20 66 72 6f de,e)}static fro 00015850: 6d 53 6f 6c 69 64 69 74 79 28 65 2c 74 29 7b 6e mSolidity(e,t){n 00015860: 75 6c 6c 3d 3d 65 26 26 45 72 2e 74 68 72 6f 77 ull==e&&Er.throw 00015870: 45 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 20 63 Error("missing c 00015880: 6f 6d 70 69 6c 65 72 20 6f 75 74 70 75 74 22 2c ompiler output", 00015890: 79 2e 65 72 72 6f 72 73 2e 4d 49 53 53 49 4e 47 y.errors.MISSING 000158a0: 5f 41 52 47 55 4d 45 4e 54 2c 7b 61 72 67 75 6d _ARGUMENT,{argum 000158b0: 65 6e 74 3a 22 63 6f 6d 70 69 6c 65 72 4f 75 74 ent:"compilerOut 000158c0: 70 75 74 22 7d 29 2c 22 73 74 72 69 6e 67 22 3d put"}),"string"= 000158d0: 3d 74 79 70 65 6f 66 20 65 26 26 28 65 3d 4a 53 =typeof e&&(e=JS 000158e0: 4f 4e 2e 70 61 72 73 65 28 65 29 29 3b 63 6f 6e ON.parse(e));con 000158f0: 73 74 20 6e 3d 65 2e 61 62 69 3b 6c 65 74 20 72 st n=e.abi;let r 00015900: 3d 6e 75 6c 6c 3b 72 65 74 75 72 6e 20 65 2e 62 =null;return e.b 00015910: 79 74 65 63 6f 64 65 3f 72 3d 65 2e 62 79 74 65 ytecode?r=e.byte 00015920: 63 6f 64 65 3a 65 2e 65 76 6d 26 26 65 2e 65 76 code:e.evm&&e.ev 00015930: 6d 2e 62 79 74 65 63 6f 64 65 26 26 28 72 3d 65 m.bytecode&&(r=e 00015940: 2e 65 76 6d 2e 62 79 74 65 63 6f 64 65 29 2c 6e .evm.bytecode),n 00015950: 65 77 20 74 68 69 73 28 6e 2c 72 2c 74 29 7d 73 ew this(n,r,t)}s 00015960: 74 61 74 69 63 20 67 65 74 49 6e 74 65 72 66 61 tatic getInterfa 00015970: 63 65 28 65 29 7b 72 65 74 75 72 6e 20 44 72 2e ce(e){return Dr. 00015980: 67 65 74 49 6e 74 65 72 66 61 63 65 28 65 29 7d getInterface(e)} 00015990: 73 74 61 74 69 63 20 67 65 74 43 6f 6e 74 72 61 static getContra 000159a0: 63 74 41 64 64 72 65 73 73 28 65 29 7b 72 65 74 ctAddress(e){ret 000159b0: 75 72 6e 20 46 65 28 65 29 7d 73 74 61 74 69 63 urn Fe(e)}static 000159c0: 20 67 65 74 43 6f 6e 74 72 61 63 74 28 65 2c 74 getContract(e,t 000159d0: 2c 6e 29 7b 72 65 74 75 72 6e 20 6e 65 77 20 44 ,n){return new D 000159e0: 72 28 65 2c 74 2c 6e 29 7d 7d 63 6f 6e 73 74 20 r(e,t,n)}}const 000159f0: 46 72 3d 6e 65 77 20 79 28 47 29 2c 55 72 3d 7b Fr=new y(G),Ur={ 00015a00: 7d 2c 42 72 3d 59 2e 66 72 6f 6d 28 30 29 2c 6a },Br=Y.from(0),j 00015a10: 72 3d 59 2e 66 72 6f 6d 28 2d 31 29 3b 66 75 6e r=Y.from(-1);fun 00015a20: 63 74 69 6f 6e 20 7a 72 28 65 2c 74 2c 6e 2c 72 ction zr(e,t,n,r 00015a30: 29 7b 63 6f 6e 73 74 20 6f 3d 7b 66 61 75 6c 74 ){const o={fault 00015a40: 3a 74 2c 6f 70 65 72 61 74 69 6f 6e 3a 6e 7d 3b :t,operation:n}; 00015a50: 72 65 74 75 72 6e 20 76 6f 69 64 20 30 21 3d 3d return void 0!== 00015a60: 72 26 26 28 6f 2e 76 61 6c 75 65 3d 72 29 2c 46 r&&(o.value=r),F 00015a70: 72 2e 74 68 72 6f 77 45 72 72 6f 72 28 65 2c 79 r.throwError(e,y 00015a80: 2e 65 72 72 6f 72 73 2e 4e 55 4d 45 52 49 43 5f .errors.NUMERIC_ 00015a90: 46 41 55 4c 54 2c 6f 29 7d 6c 65 74 20 47 72 3d FAULT,o)}let Gr= 00015aa0: 22 30 22 3b 66 6f 72 28 3b 47 72 2e 6c 65 6e 67 "0";for(;Gr.leng 00015ab0: 74 68 3c 32 35 36 3b 29 47 72 2b 3d 47 72 3b 66 th<256;)Gr+=Gr;f 00015ac0: 75 6e 63 74 69 6f 6e 20 48 72 28 65 29 7b 69 66 unction Hr(e){if 00015ad0: 28 22 6e 75 6d 62 65 72 22 21 3d 74 79 70 65 6f ("number"!=typeo 00015ae0: 66 20 65 29 74 72 79 7b 65 3d 59 2e 66 72 6f 6d f e)try{e=Y.from 00015af0: 28 65 29 2e 74 6f 4e 75 6d 62 65 72 28 29 7d 63 (e).toNumber()}c 00015b00: 61 74 63 68 28 65 29 7b 7d 72 65 74 75 72 6e 22 atch(e){}return" 00015b10: 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f 66 20 number"==typeof 00015b20: 65 26 26 65 3e 3d 30 26 26 65 3c 3d 32 35 36 26 e&&e>=0&&e<=256& 00015b30: 26 21 28 65 25 31 29 3f 22 31 22 2b 47 72 2e 73 &!(e%1)?"1"+Gr.s 00015b40: 75 62 73 74 72 69 6e 67 28 30 2c 65 29 3a 46 72 ubstring(0,e):Fr 00015b50: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00015b60: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 64 65 63 ror("invalid dec 00015b70: 69 6d 61 6c 20 73 69 7a 65 22 2c 22 64 65 63 69 imal size","deci 00015b80: 6d 61 6c 73 22 2c 65 29 7d 66 75 6e 63 74 69 6f mals",e)}functio 00015b90: 6e 20 56 72 28 65 2c 74 29 7b 6e 75 6c 6c 3d 3d n Vr(e,t){null== 00015ba0: 74 26 26 28 74 3d 30 29 3b 63 6f 6e 73 74 20 6e t&&(t=0);const n 00015bb0: 3d 48 72 28 74 29 2c 72 3d 28 65 3d 59 2e 66 72 =Hr(t),r=(e=Y.fr 00015bc0: 6f 6d 28 65 29 29 2e 6c 74 28 42 72 29 3b 72 26 om(e)).lt(Br);r& 00015bd0: 26 28 65 3d 65 2e 6d 75 6c 28 6a 72 29 29 3b 6c &(e=e.mul(jr));l 00015be0: 65 74 20 6f 3d 65 2e 6d 6f 64 28 6e 29 2e 74 6f et o=e.mod(n).to 00015bf0: 53 74 72 69 6e 67 28 29 3b 66 6f 72 28 3b 6f 2e String();for(;o. 00015c00: 6c 65 6e 67 74 68 3c 6e 2e 6c 65 6e 67 74 68 2d length<n.length- 00015c10: 31 3b 29 6f 3d 22 30 22 2b 6f 3b 6f 3d 6f 2e 6d 1;)o="0"+o;o=o.m 00015c20: 61 74 63 68 28 2f 5e 28 5b 30 2d 39 5d 2a 5b 31 atch(/^([0-9]*[1 00015c30: 2d 39 5d 7c 30 29 28 30 2a 29 2f 29 5b 31 5d 3b -9]|0)(0*)/)[1]; 00015c40: 63 6f 6e 73 74 20 69 3d 65 2e 64 69 76 28 6e 29 const i=e.div(n) 00015c50: 2e 74 6f 53 74 72 69 6e 67 28 29 3b 72 65 74 75 .toString();retu 00015c60: 72 6e 20 65 3d 31 3d 3d 3d 6e 2e 6c 65 6e 67 74 rn e=1===n.lengt 00015c70: 68 3f 69 3a 69 2b 22 2e 22 2b 6f 2c 72 26 26 28 h?i:i+"."+o,r&&( 00015c80: 65 3d 22 2d 22 2b 65 29 2c 65 7d 66 75 6e 63 74 e="-"+e),e}funct 00015c90: 69 6f 6e 20 71 72 28 65 2c 74 29 7b 6e 75 6c 6c ion qr(e,t){null 00015ca0: 3d 3d 74 26 26 28 74 3d 30 29 3b 63 6f 6e 73 74 ==t&&(t=0);const 00015cb0: 20 6e 3d 48 72 28 74 29 3b 22 73 74 72 69 6e 67 n=Hr(t);"string 00015cc0: 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 65 2e 6d "==typeof e&&e.m 00015cd0: 61 74 63 68 28 2f 5e 2d 3f 5b 30 2d 39 2e 5d 2b atch(/^-?[0-9.]+ 00015ce0: 24 2f 29 7c 7c 46 72 2e 74 68 72 6f 77 41 72 67 $/)||Fr.throwArg 00015cf0: 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 umentError("inva 00015d00: 6c 69 64 20 64 65 63 69 6d 61 6c 20 76 61 6c 75 lid decimal valu 00015d10: 65 22 2c 22 76 61 6c 75 65 22 2c 65 29 3b 63 6f e","value",e);co 00015d20: 6e 73 74 20 72 3d 22 2d 22 3d 3d 3d 65 2e 73 75 nst r="-"===e.su 00015d30: 62 73 74 72 69 6e 67 28 30 2c 31 29 3b 72 26 26 bstring(0,1);r&& 00015d40: 28 65 3d 65 2e 73 75 62 73 74 72 69 6e 67 28 31 (e=e.substring(1 00015d50: 29 29 2c 22 2e 22 3d 3d 3d 65 26 26 46 72 2e 74 )),"."===e&&Fr.t 00015d60: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00015d70: 72 28 22 6d 69 73 73 69 6e 67 20 76 61 6c 75 65 r("missing value 00015d80: 22 2c 22 76 61 6c 75 65 22 2c 65 29 3b 63 6f 6e ","value",e);con 00015d90: 73 74 20 6f 3d 65 2e 73 70 6c 69 74 28 22 2e 22 st o=e.split("." 00015da0: 29 3b 6f 2e 6c 65 6e 67 74 68 3e 32 26 26 46 72 );o.length>2&&Fr 00015db0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00015dc0: 72 6f 72 28 22 74 6f 6f 20 6d 61 6e 79 20 64 65 ror("too many de 00015dd0: 63 69 6d 61 6c 20 70 6f 69 6e 74 73 22 2c 22 76 cimal points","v 00015de0: 61 6c 75 65 22 2c 65 29 3b 6c 65 74 20 69 3d 6f alue",e);let i=o 00015df0: 5b 30 5d 2c 61 3d 6f 5b 31 5d 3b 66 6f 72 28 69 [0],a=o[1];for(i 00015e00: 7c 7c 28 69 3d 22 30 22 29 2c 61 7c 7c 28 61 3d ||(i="0"),a||(a= 00015e10: 22 30 22 29 3b 22 30 22 3d 3d 3d 61 5b 61 2e 6c "0");"0"===a[a.l 00015e20: 65 6e 67 74 68 2d 31 5d 3b 29 61 3d 61 2e 73 75 ength-1];)a=a.su 00015e30: 62 73 74 72 69 6e 67 28 30 2c 61 2e 6c 65 6e 67 bstring(0,a.leng 00015e40: 74 68 2d 31 29 3b 66 6f 72 28 61 2e 6c 65 6e 67 th-1);for(a.leng 00015e50: 74 68 3e 6e 2e 6c 65 6e 67 74 68 2d 31 26 26 7a th>n.length-1&&z 00015e60: 72 28 22 66 72 61 63 74 69 6f 6e 61 6c 20 63 6f r("fractional co 00015e70: 6d 70 6f 6e 65 6e 74 20 65 78 63 65 65 64 73 20 mponent exceeds 00015e80: 64 65 63 69 6d 61 6c 73 22 2c 22 75 6e 64 65 72 decimals","under 00015e90: 66 6c 6f 77 22 2c 22 70 61 72 73 65 46 69 78 65 flow","parseFixe 00015ea0: 64 22 29 2c 22 22 3d 3d 3d 61 26 26 28 61 3d 22 d"),""===a&&(a=" 00015eb0: 30 22 29 3b 61 2e 6c 65 6e 67 74 68 3c 6e 2e 6c 0");a.length<n.l 00015ec0: 65 6e 67 74 68 2d 31 3b 29 61 2b 3d 22 30 22 3b ength-1;)a+="0"; 00015ed0: 63 6f 6e 73 74 20 73 3d 59 2e 66 72 6f 6d 28 69 const s=Y.from(i 00015ee0: 29 2c 6c 3d 59 2e 66 72 6f 6d 28 61 29 3b 6c 65 ),l=Y.from(a);le 00015ef0: 74 20 63 3d 73 2e 6d 75 6c 28 6e 29 2e 61 64 64 t c=s.mul(n).add 00015f00: 28 6c 29 3b 72 65 74 75 72 6e 20 72 26 26 28 63 (l);return r&&(c 00015f10: 3d 63 2e 6d 75 6c 28 6a 72 29 29 2c 63 7d 63 6c =c.mul(jr)),c}cl 00015f20: 61 73 73 20 57 72 7b 63 6f 6e 73 74 72 75 63 74 ass Wr{construct 00015f30: 6f 72 28 65 2c 74 2c 6e 2c 72 29 7b 65 21 3d 3d or(e,t,n,r){e!== 00015f40: 55 72 26 26 46 72 2e 74 68 72 6f 77 45 72 72 6f Ur&&Fr.throwErro 00015f50: 72 28 22 63 61 6e 6e 6f 74 20 75 73 65 20 46 69 r("cannot use Fi 00015f60: 78 65 64 46 6f 72 6d 61 74 20 63 6f 6e 73 74 72 xedFormat constr 00015f70: 75 63 74 6f 72 3b 20 75 73 65 20 46 69 78 65 64 uctor; use Fixed 00015f80: 46 6f 72 6d 61 74 2e 66 72 6f 6d 22 2c 79 2e 65 Format.from",y.e 00015f90: 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 rrors.UNSUPPORTE 00015fa0: 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 D_OPERATION,{ope 00015fb0: 72 61 74 69 6f 6e 3a 22 6e 65 77 20 46 69 78 65 ration:"new Fixe 00015fc0: 64 46 6f 72 6d 61 74 22 7d 29 2c 74 68 69 73 2e dFormat"}),this. 00015fd0: 73 69 67 6e 65 64 3d 74 2c 74 68 69 73 2e 77 69 signed=t,this.wi 00015fe0: 64 74 68 3d 6e 2c 74 68 69 73 2e 64 65 63 69 6d dth=n,this.decim 00015ff0: 61 6c 73 3d 72 2c 74 68 69 73 2e 6e 61 6d 65 3d als=r,this.name= 00016000: 28 74 3f 22 22 3a 22 75 22 29 2b 22 66 69 78 65 (t?"":"u")+"fixe 00016010: 64 22 2b 53 74 72 69 6e 67 28 6e 29 2b 22 78 22 d"+String(n)+"x" 00016020: 2b 53 74 72 69 6e 67 28 72 29 2c 74 68 69 73 2e +String(r),this. 00016030: 5f 6d 75 6c 74 69 70 6c 69 65 72 3d 48 72 28 72 _multiplier=Hr(r 00016040: 29 2c 4f 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 ),Object.freeze( 00016050: 74 68 69 73 29 7d 73 74 61 74 69 63 20 66 72 6f this)}static fro 00016060: 6d 28 65 29 7b 69 66 28 65 20 69 6e 73 74 61 6e m(e){if(e instan 00016070: 63 65 6f 66 20 57 72 29 72 65 74 75 72 6e 20 65 ceof Wr)return e 00016080: 3b 22 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f ;"number"==typeo 00016090: 66 20 65 26 26 28 65 3d 60 66 69 78 65 64 31 32 f e&&(e=`fixed12 000160a0: 38 78 24 7b 65 7d 60 29 3b 6c 65 74 20 74 3d 21 8x${e}`);let t=! 000160b0: 30 2c 6e 3d 31 32 38 2c 72 3d 31 38 3b 69 66 28 0,n=128,r=18;if( 000160c0: 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 "string"==typeof 000160d0: 20 65 29 69 66 28 22 66 69 78 65 64 22 3d 3d 3d e)if("fixed"=== 000160e0: 65 29 3b 65 6c 73 65 20 69 66 28 22 75 66 69 78 e);else if("ufix 000160f0: 65 64 22 3d 3d 3d 65 29 74 3d 21 31 3b 65 6c 73 ed"===e)t=!1;els 00016100: 65 7b 63 6f 6e 73 74 20 6f 3d 65 2e 6d 61 74 63 e{const o=e.matc 00016110: 68 28 2f 5e 28 75 3f 29 66 69 78 65 64 28 5b 30 h(/^(u?)fixed([0 00016120: 2d 39 5d 2b 29 78 28 5b 30 2d 39 5d 2b 29 24 2f -9]+)x([0-9]+)$/ 00016130: 29 3b 6f 7c 7c 46 72 2e 74 68 72 6f 77 41 72 67 );o||Fr.throwArg 00016140: 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 umentError("inva 00016150: 6c 69 64 20 66 69 78 65 64 20 66 6f 72 6d 61 74 lid fixed format 00016160: 22 2c 22 66 6f 72 6d 61 74 22 2c 65 29 2c 74 3d ","format",e),t= 00016170: 22 75 22 21 3d 3d 6f 5b 31 5d 2c 6e 3d 70 61 72 "u"!==o[1],n=par 00016180: 73 65 49 6e 74 28 6f 5b 32 5d 29 2c 72 3d 70 61 seInt(o[2]),r=pa 00016190: 72 73 65 49 6e 74 28 6f 5b 33 5d 29 7d 65 6c 73 rseInt(o[3])}els 000161a0: 65 20 69 66 28 65 29 7b 63 6f 6e 73 74 20 6f 3d e if(e){const o= 000161b0: 28 74 2c 6e 2c 72 29 3d 3e 6e 75 6c 6c 3d 3d 65 (t,n,r)=>null==e 000161c0: 5b 74 5d 3f 72 3a 28 74 79 70 65 6f 66 20 65 5b [t]?r:(typeof e[ 000161d0: 74 5d 21 3d 3d 6e 26 26 46 72 2e 74 68 72 6f 77 t]!==n&&Fr.throw 000161e0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 000161f0: 6e 76 61 6c 69 64 20 66 69 78 65 64 20 66 6f 72 nvalid fixed for 00016200: 6d 61 74 20 28 22 2b 74 2b 22 20 6e 6f 74 20 22 mat ("+t+" not " 00016210: 2b 6e 2b 22 29 22 2c 22 66 6f 72 6d 61 74 2e 22 +n+")","format." 00016220: 2b 74 2c 65 5b 74 5d 29 2c 65 5b 74 5d 29 3b 74 +t,e[t]),e[t]);t 00016230: 3d 6f 28 22 73 69 67 6e 65 64 22 2c 22 62 6f 6f =o("signed","boo 00016240: 6c 65 61 6e 22 2c 74 29 2c 6e 3d 6f 28 22 77 69 lean",t),n=o("wi 00016250: 64 74 68 22 2c 22 6e 75 6d 62 65 72 22 2c 6e 29 dth","number",n) 00016260: 2c 72 3d 6f 28 22 64 65 63 69 6d 61 6c 73 22 2c ,r=o("decimals", 00016270: 22 6e 75 6d 62 65 72 22 2c 72 29 7d 72 65 74 75 "number",r)}retu 00016280: 72 6e 20 6e 25 38 26 26 46 72 2e 74 68 72 6f 77 rn n%8&&Fr.throw 00016290: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 000162a0: 6e 76 61 6c 69 64 20 66 69 78 65 64 20 66 6f 72 nvalid fixed for 000162b0: 6d 61 74 20 77 69 64 74 68 20 28 6e 6f 74 20 62 mat width (not b 000162c0: 79 74 65 20 61 6c 69 67 6e 65 64 29 22 2c 22 66 yte aligned)","f 000162d0: 6f 72 6d 61 74 2e 77 69 64 74 68 22 2c 6e 29 2c ormat.width",n), 000162e0: 72 3e 38 30 26 26 46 72 2e 74 68 72 6f 77 41 72 r>80&&Fr.throwAr 000162f0: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 00016300: 61 6c 69 64 20 66 69 78 65 64 20 66 6f 72 6d 61 alid fixed forma 00016310: 74 20 28 64 65 63 69 6d 61 6c 73 20 74 6f 6f 20 t (decimals too 00016320: 6c 61 72 67 65 29 22 2c 22 66 6f 72 6d 61 74 2e large)","format. 00016330: 64 65 63 69 6d 61 6c 73 22 2c 72 29 2c 6e 65 77 decimals",r),new 00016340: 20 57 72 28 55 72 2c 74 2c 6e 2c 72 29 7d 7d 63 Wr(Ur,t,n,r)}}c 00016350: 6c 61 73 73 20 4b 72 7b 63 6f 6e 73 74 72 75 63 lass Kr{construc 00016360: 74 6f 72 28 65 2c 74 2c 6e 2c 72 29 7b 65 21 3d tor(e,t,n,r){e!= 00016370: 3d 55 72 26 26 46 72 2e 74 68 72 6f 77 45 72 72 =Ur&&Fr.throwErr 00016380: 6f 72 28 22 63 61 6e 6e 6f 74 20 75 73 65 20 46 or("cannot use F 00016390: 69 78 65 64 4e 75 6d 62 65 72 20 63 6f 6e 73 74 ixedNumber const 000163a0: 72 75 63 74 6f 72 3b 20 75 73 65 20 46 69 78 65 ructor; use Fixe 000163b0: 64 4e 75 6d 62 65 72 2e 66 72 6f 6d 22 2c 79 2e dNumber.from",y. 000163c0: 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 errors.UNSUPPORT 000163d0: 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 ED_OPERATION,{op 000163e0: 65 72 61 74 69 6f 6e 3a 22 6e 65 77 20 46 69 78 eration:"new Fix 000163f0: 65 64 46 6f 72 6d 61 74 22 7d 29 2c 74 68 69 73 edFormat"}),this 00016400: 2e 66 6f 72 6d 61 74 3d 72 2c 74 68 69 73 2e 5f .format=r,this._ 00016410: 68 65 78 3d 74 2c 74 68 69 73 2e 5f 76 61 6c 75 hex=t,this._valu 00016420: 65 3d 6e 2c 74 68 69 73 2e 5f 69 73 46 69 78 65 e=n,this._isFixe 00016430: 64 4e 75 6d 62 65 72 3d 21 30 2c 4f 62 6a 65 63 dNumber=!0,Objec 00016440: 74 2e 66 72 65 65 7a 65 28 74 68 69 73 29 7d 5f t.freeze(this)}_ 00016450: 63 68 65 63 6b 46 6f 72 6d 61 74 28 65 29 7b 74 checkFormat(e){t 00016460: 68 69 73 2e 66 6f 72 6d 61 74 2e 6e 61 6d 65 21 his.format.name! 00016470: 3d 3d 65 2e 66 6f 72 6d 61 74 2e 6e 61 6d 65 26 ==e.format.name& 00016480: 26 46 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &Fr.throwArgumen 00016490: 74 45 72 72 6f 72 28 22 69 6e 63 6f 6d 70 61 74 tError("incompat 000164a0: 69 62 6c 65 20 66 6f 72 6d 61 74 3b 20 75 73 65 ible format; use 000164b0: 20 66 69 78 65 64 4e 75 6d 62 65 72 2e 74 6f 46 fixedNumber.toF 000164c0: 6f 72 6d 61 74 22 2c 22 6f 74 68 65 72 22 2c 65 ormat","other",e 000164d0: 29 7d 61 64 64 55 6e 73 61 66 65 28 65 29 7b 74 )}addUnsafe(e){t 000164e0: 68 69 73 2e 5f 63 68 65 63 6b 46 6f 72 6d 61 74 his._checkFormat 000164f0: 28 65 29 3b 63 6f 6e 73 74 20 74 3d 71 72 28 74 (e);const t=qr(t 00016500: 68 69 73 2e 5f 76 61 6c 75 65 2c 74 68 69 73 2e his._value,this. 00016510: 66 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 29 format.decimals) 00016520: 2c 6e 3d 71 72 28 65 2e 5f 76 61 6c 75 65 2c 65 ,n=qr(e._value,e 00016530: 2e 66 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 .format.decimals 00016540: 29 3b 72 65 74 75 72 6e 20 4b 72 2e 66 72 6f 6d );return Kr.from 00016550: 56 61 6c 75 65 28 74 2e 61 64 64 28 6e 29 2c 74 Value(t.add(n),t 00016560: 68 69 73 2e 66 6f 72 6d 61 74 2e 64 65 63 69 6d his.format.decim 00016570: 61 6c 73 2c 74 68 69 73 2e 66 6f 72 6d 61 74 29 als,this.format) 00016580: 7d 73 75 62 55 6e 73 61 66 65 28 65 29 7b 74 68 }subUnsafe(e){th 00016590: 69 73 2e 5f 63 68 65 63 6b 46 6f 72 6d 61 74 28 is._checkFormat( 000165a0: 65 29 3b 63 6f 6e 73 74 20 74 3d 71 72 28 74 68 e);const t=qr(th 000165b0: 69 73 2e 5f 76 61 6c 75 65 2c 74 68 69 73 2e 66 is._value,this.f 000165c0: 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 29 2c ormat.decimals), 000165d0: 6e 3d 71 72 28 65 2e 5f 76 61 6c 75 65 2c 65 2e n=qr(e._value,e. 000165e0: 66 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 29 format.decimals) 000165f0: 3b 72 65 74 75 72 6e 20 4b 72 2e 66 72 6f 6d 56 ;return Kr.fromV 00016600: 61 6c 75 65 28 74 2e 73 75 62 28 6e 29 2c 74 68 alue(t.sub(n),th 00016610: 69 73 2e 66 6f 72 6d 61 74 2e 64 65 63 69 6d 61 is.format.decima 00016620: 6c 73 2c 74 68 69 73 2e 66 6f 72 6d 61 74 29 7d ls,this.format)} 00016630: 6d 75 6c 55 6e 73 61 66 65 28 65 29 7b 74 68 69 mulUnsafe(e){thi 00016640: 73 2e 5f 63 68 65 63 6b 46 6f 72 6d 61 74 28 65 s._checkFormat(e 00016650: 29 3b 63 6f 6e 73 74 20 74 3d 71 72 28 74 68 69 );const t=qr(thi 00016660: 73 2e 5f 76 61 6c 75 65 2c 74 68 69 73 2e 66 6f s._value,this.fo 00016670: 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 29 2c 6e rmat.decimals),n 00016680: 3d 71 72 28 65 2e 5f 76 61 6c 75 65 2c 65 2e 66 =qr(e._value,e.f 00016690: 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 29 3b ormat.decimals); 000166a0: 72 65 74 75 72 6e 20 4b 72 2e 66 72 6f 6d 56 61 return Kr.fromVa 000166b0: 6c 75 65 28 74 2e 6d 75 6c 28 6e 29 2e 64 69 76 lue(t.mul(n).div 000166c0: 28 74 68 69 73 2e 66 6f 72 6d 61 74 2e 5f 6d 75 (this.format._mu 000166d0: 6c 74 69 70 6c 69 65 72 29 2c 74 68 69 73 2e 66 ltiplier),this.f 000166e0: 6f 72 6d 61 74 2e 64 65 63 69 6d 61 6c 73 2c 74 ormat.decimals,t 000166f0: 68 69 73 2e 66 6f 72 6d 61 74 29 7d 64 69 76 55 his.format)}divU 00016700: 6e 73 61 66 65 28 65 29 7b 74 68 69 73 2e 5f 63 nsafe(e){this._c 00016710: 68 65 63 6b 46 6f 72 6d 61 74 28 65 29 3b 63 6f heckFormat(e);co 00016720: 6e 73 74 20 74 3d 71 72 28 74 68 69 73 2e 5f 76 nst t=qr(this._v 00016730: 61 6c 75 65 2c 74 68 69 73 2e 66 6f 72 6d 61 74 alue,this.format 00016740: 2e 64 65 63 69 6d 61 6c 73 29 2c 6e 3d 71 72 28 .decimals),n=qr( 00016750: 65 2e 5f 76 61 6c 75 65 2c 65 2e 66 6f 72 6d 61 e._value,e.forma 00016760: 74 2e 64 65 63 69 6d 61 6c 73 29 3b 72 65 74 75 t.decimals);retu 00016770: 72 6e 20 4b 72 2e 66 72 6f 6d 56 61 6c 75 65 28 rn Kr.fromValue( 00016780: 74 2e 6d 75 6c 28 74 68 69 73 2e 66 6f 72 6d 61 t.mul(this.forma 00016790: 74 2e 5f 6d 75 6c 74 69 70 6c 69 65 72 29 2e 64 t._multiplier).d 000167a0: 69 76 28 6e 29 2c 74 68 69 73 2e 66 6f 72 6d 61 iv(n),this.forma 000167b0: 74 2e 64 65 63 69 6d 61 6c 73 2c 74 68 69 73 2e t.decimals,this. 000167c0: 66 6f 72 6d 61 74 29 7d 66 6c 6f 6f 72 28 29 7b format)}floor(){ 000167d0: 63 6f 6e 73 74 20 65 3d 74 68 69 73 2e 74 6f 53 const e=this.toS 000167e0: 74 72 69 6e 67 28 29 2e 73 70 6c 69 74 28 22 2e tring().split(". 000167f0: 22 29 3b 31 3d 3d 3d 65 2e 6c 65 6e 67 74 68 26 ");1===e.length& 00016800: 26 65 2e 70 75 73 68 28 22 30 22 29 3b 6c 65 74 &e.push("0");let 00016810: 20 74 3d 4b 72 2e 66 72 6f 6d 28 65 5b 30 5d 2c t=Kr.from(e[0], 00016820: 74 68 69 73 2e 66 6f 72 6d 61 74 29 3b 63 6f 6e this.format);con 00016830: 73 74 20 6e 3d 21 65 5b 31 5d 2e 6d 61 74 63 68 st n=!e[1].match 00016840: 28 2f 5e 28 30 2a 29 24 2f 29 3b 72 65 74 75 72 (/^(0*)$/);retur 00016850: 6e 20 74 68 69 73 2e 69 73 4e 65 67 61 74 69 76 n this.isNegativ 00016860: 65 28 29 26 26 6e 26 26 28 74 3d 74 2e 73 75 62 e()&&n&&(t=t.sub 00016870: 55 6e 73 61 66 65 28 59 72 2e 74 6f 46 6f 72 6d Unsafe(Yr.toForm 00016880: 61 74 28 74 2e 66 6f 72 6d 61 74 29 29 29 2c 74 at(t.format))),t 00016890: 7d 63 65 69 6c 69 6e 67 28 29 7b 63 6f 6e 73 74 }ceiling(){const 000168a0: 20 65 3d 74 68 69 73 2e 74 6f 53 74 72 69 6e 67 e=this.toString 000168b0: 28 29 2e 73 70 6c 69 74 28 22 2e 22 29 3b 31 3d ().split(".");1= 000168c0: 3d 3d 65 2e 6c 65 6e 67 74 68 26 26 65 2e 70 75 ==e.length&&e.pu 000168d0: 73 68 28 22 30 22 29 3b 6c 65 74 20 74 3d 4b 72 sh("0");let t=Kr 000168e0: 2e 66 72 6f 6d 28 65 5b 30 5d 2c 74 68 69 73 2e .from(e[0],this. 000168f0: 66 6f 72 6d 61 74 29 3b 63 6f 6e 73 74 20 6e 3d format);const n= 00016900: 21 65 5b 31 5d 2e 6d 61 74 63 68 28 2f 5e 28 30 !e[1].match(/^(0 00016910: 2a 29 24 2f 29 3b 72 65 74 75 72 6e 21 74 68 69 *)$/);return!thi 00016920: 73 2e 69 73 4e 65 67 61 74 69 76 65 28 29 26 26 s.isNegative()&& 00016930: 6e 26 26 28 74 3d 74 2e 61 64 64 55 6e 73 61 66 n&&(t=t.addUnsaf 00016940: 65 28 59 72 2e 74 6f 46 6f 72 6d 61 74 28 74 2e e(Yr.toFormat(t. 00016950: 66 6f 72 6d 61 74 29 29 29 2c 74 7d 72 6f 75 6e format))),t}roun 00016960: 64 28 65 29 7b 6e 75 6c 6c 3d 3d 65 26 26 28 65 d(e){null==e&&(e 00016970: 3d 30 29 3b 63 6f 6e 73 74 20 74 3d 74 68 69 73 =0);const t=this 00016980: 2e 74 6f 53 74 72 69 6e 67 28 29 2e 73 70 6c 69 .toString().spli 00016990: 74 28 22 2e 22 29 3b 69 66 28 31 3d 3d 3d 74 2e t(".");if(1===t. 000169a0: 6c 65 6e 67 74 68 26 26 74 2e 70 75 73 68 28 22 length&&t.push(" 000169b0: 30 22 29 2c 28 65 3c 30 7c 7c 65 3e 38 30 7c 7c 0"),(e<0||e>80|| 000169c0: 65 25 31 29 26 26 46 72 2e 74 68 72 6f 77 41 72 e%1)&&Fr.throwAr 000169d0: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 000169e0: 61 6c 69 64 20 64 65 63 69 6d 61 6c 20 63 6f 75 alid decimal cou 000169f0: 6e 74 22 2c 22 64 65 63 69 6d 61 6c 73 22 2c 65 nt","decimals",e 00016a00: 29 2c 74 5b 31 5d 2e 6c 65 6e 67 74 68 3c 3d 65 ),t[1].length<=e 00016a10: 29 72 65 74 75 72 6e 20 74 68 69 73 3b 63 6f 6e )return this;con 00016a20: 73 74 20 6e 3d 4b 72 2e 66 72 6f 6d 28 22 31 22 st n=Kr.from("1" 00016a30: 2b 47 72 2e 73 75 62 73 74 72 69 6e 67 28 30 2c +Gr.substring(0, 00016a40: 65 29 2c 74 68 69 73 2e 66 6f 72 6d 61 74 29 2c e),this.format), 00016a50: 72 3d 58 72 2e 74 6f 46 6f 72 6d 61 74 28 74 68 r=Xr.toFormat(th 00016a60: 69 73 2e 66 6f 72 6d 61 74 29 3b 72 65 74 75 72 is.format);retur 00016a70: 6e 20 74 68 69 73 2e 6d 75 6c 55 6e 73 61 66 65 n this.mulUnsafe 00016a80: 28 6e 29 2e 61 64 64 55 6e 73 61 66 65 28 72 29 (n).addUnsafe(r) 00016a90: 2e 66 6c 6f 6f 72 28 29 2e 64 69 76 55 6e 73 61 .floor().divUnsa 00016aa0: 66 65 28 6e 29 7d 69 73 5a 65 72 6f 28 29 7b 72 fe(n)}isZero(){r 00016ab0: 65 74 75 72 6e 22 30 2e 30 22 3d 3d 3d 74 68 69 eturn"0.0"===thi 00016ac0: 73 2e 5f 76 61 6c 75 65 7c 7c 22 30 22 3d 3d 3d s._value||"0"=== 00016ad0: 74 68 69 73 2e 5f 76 61 6c 75 65 7d 69 73 4e 65 this._value}isNe 00016ae0: 67 61 74 69 76 65 28 29 7b 72 65 74 75 72 6e 22 gative(){return" 00016af0: 2d 22 3d 3d 3d 74 68 69 73 2e 5f 76 61 6c 75 65 -"===this._value 00016b00: 5b 30 5d 7d 74 6f 53 74 72 69 6e 67 28 29 7b 72 [0]}toString(){r 00016b10: 65 74 75 72 6e 20 74 68 69 73 2e 5f 76 61 6c 75 eturn this._valu 00016b20: 65 7d 74 6f 48 65 78 53 74 72 69 6e 67 28 65 29 e}toHexString(e) 00016b30: 7b 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 74 75 {if(null==e)retu 00016b40: 72 6e 20 74 68 69 73 2e 5f 68 65 78 3b 65 25 38 rn this._hex;e%8 00016b50: 26 26 46 72 2e 74 68 72 6f 77 41 72 67 75 6d 65 &&Fr.throwArgume 00016b60: 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 ntError("invalid 00016b70: 20 62 79 74 65 20 77 69 64 74 68 22 2c 22 77 69 byte width","wi 00016b80: 64 74 68 22 2c 65 29 3b 72 65 74 75 72 6e 20 46 dth",e);return F 00016b90: 28 59 2e 66 72 6f 6d 28 74 68 69 73 2e 5f 68 65 (Y.from(this._he 00016ba0: 78 29 2e 66 72 6f 6d 54 77 6f 73 28 74 68 69 73 x).fromTwos(this 00016bb0: 2e 66 6f 72 6d 61 74 2e 77 69 64 74 68 29 2e 74 .format.width).t 00016bc0: 6f 54 77 6f 73 28 65 29 2e 74 6f 48 65 78 53 74 oTwos(e).toHexSt 00016bd0: 72 69 6e 67 28 29 2c 65 2f 38 29 7d 74 6f 55 6e ring(),e/8)}toUn 00016be0: 73 61 66 65 46 6c 6f 61 74 28 29 7b 72 65 74 75 safeFloat(){retu 00016bf0: 72 6e 20 70 61 72 73 65 46 6c 6f 61 74 28 74 68 rn parseFloat(th 00016c00: 69 73 2e 74 6f 53 74 72 69 6e 67 28 29 29 7d 74 is.toString())}t 00016c10: 6f 46 6f 72 6d 61 74 28 65 29 7b 72 65 74 75 72 oFormat(e){retur 00016c20: 6e 20 4b 72 2e 66 72 6f 6d 53 74 72 69 6e 67 28 n Kr.fromString( 00016c30: 74 68 69 73 2e 5f 76 61 6c 75 65 2c 65 29 7d 73 this._value,e)}s 00016c40: 74 61 74 69 63 20 66 72 6f 6d 56 61 6c 75 65 28 tatic fromValue( 00016c50: 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e 20 6e 75 e,t,n){return nu 00016c60: 6c 6c 21 3d 6e 7c 7c 6e 75 6c 6c 3d 3d 74 7c 7c ll!=n||null==t|| 00016c70: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 function(e){retu 00016c80: 72 6e 20 6e 75 6c 6c 21 3d 65 26 26 28 59 2e 69 rn null!=e&&(Y.i 00016c90: 73 42 69 67 4e 75 6d 62 65 72 28 65 29 7c 7c 22 sBigNumber(e)||" 00016ca0: 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f 66 20 number"==typeof 00016cb0: 65 26 26 65 25 31 3d 3d 30 7c 7c 22 73 74 72 69 e&&e%1==0||"stri 00016cc0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 21 ng"==typeof e&&! 00016cd0: 21 65 2e 6d 61 74 63 68 28 2f 5e 2d 3f 5b 30 2d !e.match(/^-?[0- 00016ce0: 39 5d 2b 24 2f 29 7c 7c 49 28 65 29 7c 7c 22 62 9]+$/)||I(e)||"b 00016cf0: 69 67 69 6e 74 22 3d 3d 74 79 70 65 6f 66 20 65 igint"==typeof e 00016d00: 7c 7c 78 28 65 29 29 7d 28 74 29 7c 7c 28 6e 3d ||x(e))}(t)||(n= 00016d10: 74 2c 74 3d 6e 75 6c 6c 29 2c 6e 75 6c 6c 3d 3d t,t=null),null== 00016d20: 74 26 26 28 74 3d 30 29 2c 6e 75 6c 6c 3d 3d 6e t&&(t=0),null==n 00016d30: 26 26 28 6e 3d 22 66 69 78 65 64 22 29 2c 4b 72 &&(n="fixed"),Kr 00016d40: 2e 66 72 6f 6d 53 74 72 69 6e 67 28 56 72 28 65 .fromString(Vr(e 00016d50: 2c 74 29 2c 57 72 2e 66 72 6f 6d 28 6e 29 29 7d ,t),Wr.from(n))} 00016d60: 73 74 61 74 69 63 20 66 72 6f 6d 53 74 72 69 6e static fromStrin 00016d70: 67 28 65 2c 74 29 7b 6e 75 6c 6c 3d 3d 74 26 26 g(e,t){null==t&& 00016d80: 28 74 3d 22 66 69 78 65 64 22 29 3b 63 6f 6e 73 (t="fixed");cons 00016d90: 74 20 6e 3d 57 72 2e 66 72 6f 6d 28 74 29 2c 72 t n=Wr.from(t),r 00016da0: 3d 71 72 28 65 2c 6e 2e 64 65 63 69 6d 61 6c 73 =qr(e,n.decimals 00016db0: 29 3b 21 6e 2e 73 69 67 6e 65 64 26 26 72 2e 6c );!n.signed&&r.l 00016dc0: 74 28 42 72 29 26 26 7a 72 28 22 75 6e 73 69 67 t(Br)&&zr("unsig 00016dd0: 6e 65 64 20 76 61 6c 75 65 20 63 61 6e 6e 6f 74 ned value cannot 00016de0: 20 62 65 20 6e 65 67 61 74 69 76 65 22 2c 22 6f be negative","o 00016df0: 76 65 72 66 6c 6f 77 22 2c 22 76 61 6c 75 65 22 verflow","value" 00016e00: 2c 65 29 3b 6c 65 74 20 6f 3d 6e 75 6c 6c 3b 6e ,e);let o=null;n 00016e10: 2e 73 69 67 6e 65 64 3f 6f 3d 72 2e 74 6f 54 77 .signed?o=r.toTw 00016e20: 6f 73 28 6e 2e 77 69 64 74 68 29 2e 74 6f 48 65 os(n.width).toHe 00016e30: 78 53 74 72 69 6e 67 28 29 3a 28 6f 3d 72 2e 74 xString():(o=r.t 00016e40: 6f 48 65 78 53 74 72 69 6e 67 28 29 2c 6f 3d 46 oHexString(),o=F 00016e50: 28 6f 2c 6e 2e 77 69 64 74 68 2f 38 29 29 3b 63 (o,n.width/8));c 00016e60: 6f 6e 73 74 20 69 3d 56 72 28 72 2c 6e 2e 64 65 onst i=Vr(r,n.de 00016e70: 63 69 6d 61 6c 73 29 3b 72 65 74 75 72 6e 20 6e cimals);return n 00016e80: 65 77 20 4b 72 28 55 72 2c 6f 2c 69 2c 6e 29 7d ew Kr(Ur,o,i,n)} 00016e90: 73 74 61 74 69 63 20 66 72 6f 6d 42 79 74 65 73 static fromBytes 00016ea0: 28 65 2c 74 29 7b 6e 75 6c 6c 3d 3d 74 26 26 28 (e,t){null==t&&( 00016eb0: 74 3d 22 66 69 78 65 64 22 29 3b 63 6f 6e 73 74 t="fixed");const 00016ec0: 20 6e 3d 57 72 2e 66 72 6f 6d 28 74 29 3b 69 66 n=Wr.from(t);if 00016ed0: 28 54 28 65 29 2e 6c 65 6e 67 74 68 3e 6e 2e 77 (T(e).length>n.w 00016ee0: 69 64 74 68 2f 38 29 74 68 72 6f 77 20 6e 65 77 idth/8)throw new 00016ef0: 20 45 72 72 6f 72 28 22 6f 76 65 72 66 6c 6f 77 Error("overflow 00016f00: 22 29 3b 6c 65 74 20 72 3d 59 2e 66 72 6f 6d 28 ");let r=Y.from( 00016f10: 65 29 3b 6e 2e 73 69 67 6e 65 64 26 26 28 72 3d e);n.signed&&(r= 00016f20: 72 2e 66 72 6f 6d 54 77 6f 73 28 6e 2e 77 69 64 r.fromTwos(n.wid 00016f30: 74 68 29 29 3b 63 6f 6e 73 74 20 6f 3d 72 2e 74 th));const o=r.t 00016f40: 6f 54 77 6f 73 28 28 6e 2e 73 69 67 6e 65 64 3f oTwos((n.signed? 00016f50: 30 3a 31 29 2b 6e 2e 77 69 64 74 68 29 2e 74 6f 0:1)+n.width).to 00016f60: 48 65 78 53 74 72 69 6e 67 28 29 2c 69 3d 56 72 HexString(),i=Vr 00016f70: 28 72 2c 6e 2e 64 65 63 69 6d 61 6c 73 29 3b 72 (r,n.decimals);r 00016f80: 65 74 75 72 6e 20 6e 65 77 20 4b 72 28 55 72 2c eturn new Kr(Ur, 00016f90: 6f 2c 69 2c 6e 29 7d 73 74 61 74 69 63 20 66 72 o,i,n)}static fr 00016fa0: 6f 6d 28 65 2c 74 29 7b 69 66 28 22 73 74 72 69 om(e,t){if("stri 00016fb0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 29 72 65 ng"==typeof e)re 00016fc0: 74 75 72 6e 20 4b 72 2e 66 72 6f 6d 53 74 72 69 turn Kr.fromStri 00016fd0: 6e 67 28 65 2c 74 29 3b 69 66 28 78 28 65 29 29 ng(e,t);if(x(e)) 00016fe0: 72 65 74 75 72 6e 20 4b 72 2e 66 72 6f 6d 42 79 return Kr.fromBy 00016ff0: 74 65 73 28 65 2c 74 29 3b 74 72 79 7b 72 65 74 tes(e,t);try{ret 00017000: 75 72 6e 20 4b 72 2e 66 72 6f 6d 56 61 6c 75 65 urn Kr.fromValue 00017010: 28 65 2c 30 2c 74 29 7d 63 61 74 63 68 28 65 29 (e,0,t)}catch(e) 00017020: 7b 69 66 28 65 2e 63 6f 64 65 21 3d 3d 79 2e 65 {if(e.code!==y.e 00017030: 72 72 6f 72 73 2e 49 4e 56 41 4c 49 44 5f 41 52 rrors.INVALID_AR 00017040: 47 55 4d 45 4e 54 29 74 68 72 6f 77 20 65 7d 72 GUMENT)throw e}r 00017050: 65 74 75 72 6e 20 46 72 2e 74 68 72 6f 77 41 72 eturn Fr.throwAr 00017060: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 00017070: 61 6c 69 64 20 46 69 78 65 64 4e 75 6d 62 65 72 alid FixedNumber 00017080: 20 76 61 6c 75 65 22 2c 22 76 61 6c 75 65 22 2c value","value", 00017090: 65 29 7d 73 74 61 74 69 63 20 69 73 46 69 78 65 e)}static isFixe 000170a0: 64 4e 75 6d 62 65 72 28 65 29 7b 72 65 74 75 72 dNumber(e){retur 000170b0: 6e 21 28 21 65 7c 7c 21 65 2e 5f 69 73 46 69 78 n!(!e||!e._isFix 000170c0: 65 64 4e 75 6d 62 65 72 29 7d 7d 63 6f 6e 73 74 edNumber)}}const 000170d0: 20 59 72 3d 4b 72 2e 66 72 6f 6d 28 31 29 2c 58 Yr=Kr.from(1),X 000170e0: 72 3d 4b 72 2e 66 72 6f 6d 28 22 30 2e 35 22 29 r=Kr.from("0.5") 000170f0: 2c 5a 72 3d 22 19 45 74 68 65 72 65 75 6d 20 53 ,Zr=".Ethereum S 00017100: 69 67 6e 65 64 20 4d 65 73 73 61 67 65 3a 5c 6e igned Message:\n 00017110: 22 3b 66 75 6e 63 74 69 6f 6e 20 51 72 28 65 29 ";function Qr(e) 00017120: 7b 72 65 74 75 72 6e 22 73 74 72 69 6e 67 22 3d {return"string"= 00017130: 3d 74 79 70 65 6f 66 20 65 26 26 28 65 3d 71 65 =typeof e&&(e=qe 00017140: 28 65 29 29 2c 76 65 28 43 28 5b 71 65 28 5a 72 (e)),ve(C([qe(Zr 00017150: 29 2c 71 65 28 53 74 72 69 6e 67 28 65 2e 6c 65 ),qe(String(e.le 00017160: 6e 67 74 68 29 29 2c 65 5d 29 29 7d 63 6f 6e 73 ngth)),e]))}cons 00017170: 74 20 4a 72 3d 22 68 61 73 68 2f 35 2e 37 2e 30 t Jr="hash/5.7.0 00017180: 22 3b 76 61 72 20 24 72 3d 66 75 6e 63 74 69 6f ";var $r=functio 00017190: 6e 28 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 n(e,t,n,r){retur 000171a0: 6e 20 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d n new(n||(n=Prom 000171b0: 69 73 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 ise))((function( 000171c0: 6f 2c 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 o,i){function a( 000171d0: 65 29 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 e){try{l(r.next( 000171e0: 65 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 e))}catch(e){i(e 000171f0: 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 )}}function s(e) 00017200: 7b 74 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 {try{l(r.throw(e 00017210: 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 ))}catch(e){i(e) 00017220: 7d 7d 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b }}function l(e){ 00017230: 76 61 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 var t;e.done?o(e 00017240: 2e 76 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c .value):(t=e.val 00017250: 75 65 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 ue,t instanceof 00017260: 6e 3f 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 n?t:new n((funct 00017270: 69 6f 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e ion(e){e(t)}))). 00017280: 74 68 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 then(a,s)}l((r=r 00017290: 2e 61 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 .apply(e,t||[])) 000172a0: 2e 6e 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e .next())}))};con 000172b0: 73 74 20 65 6f 3d 6e 65 77 20 79 28 4a 72 29 2c st eo=new y(Jr), 000172c0: 74 6f 3d 6e 65 77 20 55 69 6e 74 38 41 72 72 61 to=new Uint8Arra 000172d0: 79 28 33 32 29 3b 74 6f 2e 66 69 6c 6c 28 30 29 y(32);to.fill(0) 000172e0: 3b 63 6f 6e 73 74 20 6e 6f 3d 59 2e 66 72 6f 6d ;const no=Y.from 000172f0: 28 2d 31 29 2c 72 6f 3d 59 2e 66 72 6f 6d 28 30 (-1),ro=Y.from(0 00017300: 29 2c 6f 6f 3d 59 2e 66 72 6f 6d 28 31 29 2c 69 ),oo=Y.from(1),i 00017310: 6f 3d 59 2e 66 72 6f 6d 28 22 30 78 66 66 66 66 o=Y.from("0xffff 00017320: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00017330: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00017340: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 00017350: 66 66 66 66 66 66 66 66 66 66 66 66 22 29 3b 63 ffffffffffff");c 00017360: 6f 6e 73 74 20 61 6f 3d 46 28 6f 6f 2e 74 6f 48 onst ao=F(oo.toH 00017370: 65 78 53 74 72 69 6e 67 28 29 2c 33 32 29 2c 73 exString(),32),s 00017380: 6f 3d 46 28 72 6f 2e 74 6f 48 65 78 53 74 72 69 o=F(ro.toHexStri 00017390: 6e 67 28 29 2c 33 32 29 2c 6c 6f 3d 7b 6e 61 6d ng(),32),lo={nam 000173a0: 65 3a 22 73 74 72 69 6e 67 22 2c 76 65 72 73 69 e:"string",versi 000173b0: 6f 6e 3a 22 73 74 72 69 6e 67 22 2c 63 68 61 69 on:"string",chai 000173c0: 6e 49 64 3a 22 75 69 6e 74 32 35 36 22 2c 76 65 nId:"uint256",ve 000173d0: 72 69 66 79 69 6e 67 43 6f 6e 74 72 61 63 74 3a rifyingContract: 000173e0: 22 61 64 64 72 65 73 73 22 2c 73 61 6c 74 3a 22 "address",salt:" 000173f0: 62 79 74 65 73 33 32 22 7d 2c 63 6f 3d 5b 22 6e bytes32"},co=["n 00017400: 61 6d 65 22 2c 22 76 65 72 73 69 6f 6e 22 2c 22 ame","version"," 00017410: 63 68 61 69 6e 49 64 22 2c 22 76 65 72 69 66 79 chainId","verify 00017420: 69 6e 67 43 6f 6e 74 72 61 63 74 22 2c 22 73 61 ingContract","sa 00017430: 6c 74 22 5d 3b 66 75 6e 63 74 69 6f 6e 20 75 6f lt"];function uo 00017440: 28 65 29 7b 72 65 74 75 72 6e 20 66 75 6e 63 74 (e){return funct 00017450: 69 6f 6e 28 74 29 7b 72 65 74 75 72 6e 22 73 74 ion(t){return"st 00017460: 72 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 74 26 ring"!=typeof t& 00017470: 26 65 6f 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &eo.throwArgumen 00017480: 74 45 72 72 6f 72 28 60 69 6e 76 61 6c 69 64 20 tError(`invalid 00017490: 64 6f 6d 61 69 6e 20 76 61 6c 75 65 20 66 6f 72 domain value for 000174a0: 20 24 7b 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 ${JSON.stringif 000174b0: 79 28 65 29 7d 60 2c 60 64 6f 6d 61 69 6e 2e 24 y(e)}`,`domain.$ 000174c0: 7b 65 7d 60 2c 74 29 2c 74 7d 7d 63 6f 6e 73 74 {e}`,t),t}}const 000174d0: 20 70 6f 3d 7b 6e 61 6d 65 3a 75 6f 28 22 6e 61 po={name:uo("na 000174e0: 6d 65 22 29 2c 76 65 72 73 69 6f 6e 3a 75 6f 28 me"),version:uo( 000174f0: 22 76 65 72 73 69 6f 6e 22 29 2c 63 68 61 69 6e "version"),chain 00017500: 49 64 3a 66 75 6e 63 74 69 6f 6e 28 65 29 7b 74 Id:function(e){t 00017510: 72 79 7b 72 65 74 75 72 6e 20 59 2e 66 72 6f 6d ry{return Y.from 00017520: 28 65 29 2e 74 6f 53 74 72 69 6e 67 28 29 7d 63 (e).toString()}c 00017530: 61 74 63 68 28 65 29 7b 7d 72 65 74 75 72 6e 20 atch(e){}return 00017540: 65 6f 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 eo.throwArgument 00017550: 45 72 72 6f 72 28 27 69 6e 76 61 6c 69 64 20 64 Error('invalid d 00017560: 6f 6d 61 69 6e 20 76 61 6c 75 65 20 66 6f 72 20 omain value for 00017570: 22 63 68 61 69 6e 49 64 22 27 2c 22 64 6f 6d 61 "chainId"',"doma 00017580: 69 6e 2e 63 68 61 69 6e 49 64 22 2c 65 29 7d 2c in.chainId",e)}, 00017590: 76 65 72 69 66 79 69 6e 67 43 6f 6e 74 72 61 63 verifyingContrac 000175a0: 74 3a 66 75 6e 63 74 69 6f 6e 28 65 29 7b 74 72 t:function(e){tr 000175b0: 79 7b 72 65 74 75 72 6e 20 4d 65 28 65 29 2e 74 y{return Me(e).t 000175c0: 6f 4c 6f 77 65 72 43 61 73 65 28 29 7d 63 61 74 oLowerCase()}cat 000175d0: 63 68 28 65 29 7b 7d 72 65 74 75 72 6e 20 65 6f ch(e){}return eo 000175e0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 000175f0: 72 6f 72 28 27 69 6e 76 61 6c 69 64 20 64 6f 6d ror('invalid dom 00017600: 61 69 6e 20 76 61 6c 75 65 20 22 76 65 72 69 66 ain value "verif 00017610: 79 69 6e 67 43 6f 6e 74 72 61 63 74 22 27 2c 22 yingContract"'," 00017620: 64 6f 6d 61 69 6e 2e 76 65 72 69 66 79 69 6e 67 domain.verifying 00017630: 43 6f 6e 74 72 61 63 74 22 2c 65 29 7d 2c 73 61 Contract",e)},sa 00017640: 6c 74 3a 66 75 6e 63 74 69 6f 6e 28 65 29 7b 74 lt:function(e){t 00017650: 72 79 7b 63 6f 6e 73 74 20 74 3d 54 28 65 29 3b ry{const t=T(e); 00017660: 69 66 28 33 32 21 3d 3d 74 2e 6c 65 6e 67 74 68 if(32!==t.length 00017670: 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 )throw new Error 00017680: 28 22 62 61 64 20 6c 65 6e 67 74 68 22 29 3b 72 ("bad length");r 00017690: 65 74 75 72 6e 20 52 28 74 29 7d 63 61 74 63 68 eturn R(t)}catch 000176a0: 28 65 29 7b 7d 72 65 74 75 72 6e 20 65 6f 2e 74 (e){}return eo.t 000176b0: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 000176c0: 72 28 27 69 6e 76 61 6c 69 64 20 64 6f 6d 61 69 r('invalid domai 000176d0: 6e 20 76 61 6c 75 65 20 22 73 61 6c 74 22 27 2c n value "salt"', 000176e0: 22 64 6f 6d 61 69 6e 2e 73 61 6c 74 22 2c 65 29 "domain.salt",e) 000176f0: 7d 7d 3b 66 75 6e 63 74 69 6f 6e 20 66 6f 28 65 }};function fo(e 00017700: 29 7b 7b 63 6f 6e 73 74 20 74 3d 65 2e 6d 61 74 ){{const t=e.mat 00017710: 63 68 28 2f 5e 28 75 3f 29 69 6e 74 28 5c 64 2a ch(/^(u?)int(\d* 00017720: 29 24 2f 29 3b 69 66 28 74 29 7b 63 6f 6e 73 74 )$/);if(t){const 00017730: 20 6e 3d 22 22 3d 3d 3d 74 5b 31 5d 2c 72 3d 70 n=""===t[1],r=p 00017740: 61 72 73 65 49 6e 74 28 74 5b 32 5d 7c 7c 22 32 arseInt(t[2]||"2 00017750: 35 36 22 29 3b 28 72 25 38 21 3d 30 7c 7c 72 3e 56");(r%8!=0||r> 00017760: 32 35 36 7c 7c 74 5b 32 5d 26 26 74 5b 32 5d 21 256||t[2]&&t[2]! 00017770: 3d 3d 53 74 72 69 6e 67 28 72 29 29 26 26 65 6f ==String(r))&&eo 00017780: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00017790: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 6e 75 6d ror("invalid num 000177a0: 65 72 69 63 20 77 69 64 74 68 22 2c 22 74 79 70 eric width","typ 000177b0: 65 22 2c 65 29 3b 63 6f 6e 73 74 20 6f 3d 69 6f e",e);const o=io 000177c0: 2e 6d 61 73 6b 28 6e 3f 72 2d 31 3a 72 29 2c 69 .mask(n?r-1:r),i 000177d0: 3d 6e 3f 6f 2e 61 64 64 28 6f 6f 29 2e 6d 75 6c =n?o.add(oo).mul 000177e0: 28 6e 6f 29 3a 72 6f 3b 72 65 74 75 72 6e 20 66 (no):ro;return f 000177f0: 75 6e 63 74 69 6f 6e 28 74 29 7b 63 6f 6e 73 74 unction(t){const 00017800: 20 6e 3d 59 2e 66 72 6f 6d 28 74 29 3b 72 65 74 n=Y.from(t);ret 00017810: 75 72 6e 28 6e 2e 6c 74 28 69 29 7c 7c 6e 2e 67 urn(n.lt(i)||n.g 00017820: 74 28 6f 29 29 26 26 65 6f 2e 74 68 72 6f 77 41 t(o))&&eo.throwA 00017830: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 60 76 61 rgumentError(`va 00017840: 6c 75 65 20 6f 75 74 2d 6f 66 2d 62 6f 75 6e 64 lue out-of-bound 00017850: 73 20 66 6f 72 20 24 7b 65 7d 60 2c 22 76 61 6c s for ${e}`,"val 00017860: 75 65 22 2c 74 29 2c 46 28 6e 2e 74 6f 54 77 6f ue",t),F(n.toTwo 00017870: 73 28 32 35 36 29 2e 74 6f 48 65 78 53 74 72 69 s(256).toHexStri 00017880: 6e 67 28 29 2c 33 32 29 7d 7d 7d 7b 63 6f 6e 73 ng(),32)}}}{cons 00017890: 74 20 74 3d 65 2e 6d 61 74 63 68 28 2f 5e 62 79 t t=e.match(/^by 000178a0: 74 65 73 28 5c 64 2b 29 24 2f 29 3b 69 66 28 74 tes(\d+)$/);if(t 000178b0: 29 7b 63 6f 6e 73 74 20 6e 3d 70 61 72 73 65 49 ){const n=parseI 000178c0: 6e 74 28 74 5b 31 5d 29 3b 72 65 74 75 72 6e 28 nt(t[1]);return( 000178d0: 30 3d 3d 3d 6e 7c 7c 6e 3e 33 32 7c 7c 74 5b 31 0===n||n>32||t[1 000178e0: 5d 21 3d 3d 53 74 72 69 6e 67 28 6e 29 29 26 26 ]!==String(n))&& 000178f0: 65 6f 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 eo.throwArgument 00017900: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 62 Error("invalid b 00017910: 79 74 65 73 20 77 69 64 74 68 22 2c 22 74 79 70 ytes width","typ 00017920: 65 22 2c 65 29 2c 66 75 6e 63 74 69 6f 6e 28 74 e",e),function(t 00017930: 29 7b 72 65 74 75 72 6e 20 54 28 74 29 2e 6c 65 ){return T(t).le 00017940: 6e 67 74 68 21 3d 3d 6e 26 26 65 6f 2e 74 68 72 ngth!==n&&eo.thr 00017950: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 00017960: 60 69 6e 76 61 6c 69 64 20 6c 65 6e 67 74 68 20 `invalid length 00017970: 66 6f 72 20 24 7b 65 7d 60 2c 22 76 61 6c 75 65 for ${e}`,"value 00017980: 22 2c 74 29 2c 66 75 6e 63 74 69 6f 6e 28 65 29 ",t),function(e) 00017990: 7b 63 6f 6e 73 74 20 74 3d 54 28 65 29 2c 6e 3d {const t=T(e),n= 000179a0: 74 2e 6c 65 6e 67 74 68 25 33 32 3b 72 65 74 75 t.length%32;retu 000179b0: 72 6e 20 6e 3f 4d 28 5b 74 2c 74 6f 2e 73 6c 69 rn n?M([t,to.sli 000179c0: 63 65 28 6e 29 5d 29 3a 52 28 74 29 7d 28 74 29 ce(n)]):R(t)}(t) 000179d0: 7d 7d 7d 73 77 69 74 63 68 28 65 29 7b 63 61 73 }}}switch(e){cas 000179e0: 65 22 61 64 64 72 65 73 73 22 3a 72 65 74 75 72 e"address":retur 000179f0: 6e 20 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 n function(e){re 00017a00: 74 75 72 6e 20 46 28 4d 65 28 65 29 2c 33 32 29 turn F(Me(e),32) 00017a10: 7d 3b 63 61 73 65 22 62 6f 6f 6c 22 3a 72 65 74 };case"bool":ret 00017a20: 75 72 6e 20 66 75 6e 63 74 69 6f 6e 28 65 29 7b urn function(e){ 00017a30: 72 65 74 75 72 6e 20 65 3f 61 6f 3a 73 6f 7d 3b return e?ao:so}; 00017a40: 63 61 73 65 22 62 79 74 65 73 22 3a 72 65 74 75 case"bytes":retu 00017a50: 72 6e 20 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 rn function(e){r 00017a60: 65 74 75 72 6e 20 76 65 28 65 29 7d 3b 63 61 73 eturn ve(e)};cas 00017a70: 65 22 73 74 72 69 6e 67 22 3a 72 65 74 75 72 6e e"string":return 00017a80: 20 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 function(e){ret 00017a90: 75 72 6e 20 51 65 28 65 29 7d 7d 72 65 74 75 72 urn Qe(e)}}retur 00017aa0: 6e 20 6e 75 6c 6c 7d 66 75 6e 63 74 69 6f 6e 20 n null}function 00017ab0: 68 6f 28 65 2c 74 29 7b 72 65 74 75 72 6e 60 24 ho(e,t){return`$ 00017ac0: 7b 65 7d 28 24 7b 74 2e 6d 61 70 28 28 28 7b 6e {e}(${t.map((({n 00017ad0: 61 6d 65 3a 65 2c 74 79 70 65 3a 74 7d 29 3d 3e ame:e,type:t})=> 00017ae0: 74 2b 22 20 22 2b 65 29 29 2e 6a 6f 69 6e 28 22 t+" "+e)).join(" 00017af0: 2c 22 29 7d 29 60 7d 63 6c 61 73 73 20 6d 6f 7b ,")})`}class mo{ 00017b00: 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 29 7b 74 constructor(e){t 00017b10: 65 28 74 68 69 73 2c 22 74 79 70 65 73 22 2c 4f e(this,"types",O 00017b20: 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 63 65 28 bject.freeze(ce( 00017b30: 65 29 29 29 2c 74 65 28 74 68 69 73 2c 22 5f 65 e))),te(this,"_e 00017b40: 6e 63 6f 64 65 72 43 61 63 68 65 22 2c 7b 7d 29 ncoderCache",{}) 00017b50: 2c 74 65 28 74 68 69 73 2c 22 5f 74 79 70 65 73 ,te(this,"_types 00017b60: 22 2c 7b 7d 29 3b 63 6f 6e 73 74 20 74 3d 7b 7d ",{});const t={} 00017b70: 2c 6e 3d 7b 7d 2c 72 3d 7b 7d 3b 4f 62 6a 65 63 ,n={},r={};Objec 00017b80: 74 2e 6b 65 79 73 28 65 29 2e 66 6f 72 45 61 63 t.keys(e).forEac 00017b90: 68 28 28 65 3d 3e 7b 74 5b 65 5d 3d 7b 7d 2c 6e h((e=>{t[e]={},n 00017ba0: 5b 65 5d 3d 5b 5d 2c 72 5b 65 5d 3d 7b 7d 7d 29 [e]=[],r[e]={}}) 00017bb0: 29 3b 66 6f 72 28 63 6f 6e 73 74 20 72 20 69 6e );for(const r in 00017bc0: 20 65 29 7b 63 6f 6e 73 74 20 6f 3d 7b 7d 3b 65 e){const o={};e 00017bd0: 5b 72 5d 2e 66 6f 72 45 61 63 68 28 28 69 3d 3e [r].forEach((i=> 00017be0: 7b 6f 5b 69 2e 6e 61 6d 65 5d 26 26 65 6f 2e 74 {o[i.name]&&eo.t 00017bf0: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00017c00: 72 28 60 64 75 70 6c 69 63 61 74 65 20 76 61 72 r(`duplicate var 00017c10: 69 61 62 6c 65 20 6e 61 6d 65 20 24 7b 4a 53 4f iable name ${JSO 00017c20: 4e 2e 73 74 72 69 6e 67 69 66 79 28 69 2e 6e 61 N.stringify(i.na 00017c30: 6d 65 29 7d 20 69 6e 20 24 7b 4a 53 4f 4e 2e 73 me)} in ${JSON.s 00017c40: 74 72 69 6e 67 69 66 79 28 72 29 7d 60 2c 22 74 tringify(r)}`,"t 00017c50: 79 70 65 73 22 2c 65 29 2c 6f 5b 69 2e 6e 61 6d ypes",e),o[i.nam 00017c60: 65 5d 3d 21 30 3b 63 6f 6e 73 74 20 61 3d 69 2e e]=!0;const a=i. 00017c70: 74 79 70 65 2e 6d 61 74 63 68 28 2f 5e 28 5b 5e type.match(/^([^ 00017c80: 5c 78 35 62 5d 2a 29 28 5c 78 35 62 7c 24 29 2f \x5b]*)(\x5b|$)/ 00017c90: 29 5b 31 5d 3b 61 3d 3d 3d 72 26 26 65 6f 2e 74 )[1];a===r&&eo.t 00017ca0: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00017cb0: 72 28 60 63 69 72 63 75 6c 61 72 20 74 79 70 65 r(`circular type 00017cc0: 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 24 7b reference to ${ 00017cd0: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 61 JSON.stringify(a 00017ce0: 29 7d 60 2c 22 74 79 70 65 73 22 2c 65 29 3b 66 )}`,"types",e);f 00017cf0: 6f 28 61 29 7c 7c 28 6e 5b 61 5d 7c 7c 65 6f 2e o(a)||(n[a]||eo. 00017d00: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00017d10: 6f 72 28 60 75 6e 6b 6e 6f 77 6e 20 74 79 70 65 or(`unknown type 00017d20: 20 24 7b 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 ${JSON.stringif 00017d30: 79 28 61 29 7d 60 2c 22 74 79 70 65 73 22 2c 65 y(a)}`,"types",e 00017d40: 29 2c 6e 5b 61 5d 2e 70 75 73 68 28 72 29 2c 74 ),n[a].push(r),t 00017d50: 5b 72 5d 5b 61 5d 3d 21 30 29 7d 29 29 7d 63 6f [r][a]=!0)}))}co 00017d60: 6e 73 74 20 6f 3d 4f 62 6a 65 63 74 2e 6b 65 79 nst o=Object.key 00017d70: 73 28 6e 29 2e 66 69 6c 74 65 72 28 28 65 3d 3e s(n).filter((e=> 00017d80: 30 3d 3d 3d 6e 5b 65 5d 2e 6c 65 6e 67 74 68 29 0===n[e].length) 00017d90: 29 3b 30 3d 3d 3d 6f 2e 6c 65 6e 67 74 68 3f 65 );0===o.length?e 00017da0: 6f 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 o.throwArgumentE 00017db0: 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 20 70 72 rror("missing pr 00017dc0: 69 6d 61 72 79 20 74 79 70 65 22 2c 22 74 79 70 imary type","typ 00017dd0: 65 73 22 2c 65 29 3a 6f 2e 6c 65 6e 67 74 68 3e es",e):o.length> 00017de0: 31 26 26 65 6f 2e 74 68 72 6f 77 41 72 67 75 6d 1&&eo.throwArgum 00017df0: 65 6e 74 45 72 72 6f 72 28 60 61 6d 62 69 67 75 entError(`ambigu 00017e00: 6f 75 73 20 70 72 69 6d 61 72 79 20 74 79 70 65 ous primary type 00017e10: 73 20 6f 72 20 75 6e 75 73 65 64 20 74 79 70 65 s or unused type 00017e20: 73 3a 20 24 7b 6f 2e 6d 61 70 28 28 65 3d 3e 4a s: ${o.map((e=>J 00017e30: 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 65 29 SON.stringify(e) 00017e40: 29 29 2e 6a 6f 69 6e 28 22 2c 20 22 29 7d 60 2c )).join(", ")}`, 00017e50: 22 74 79 70 65 73 22 2c 65 29 2c 74 65 28 74 68 "types",e),te(th 00017e60: 69 73 2c 22 70 72 69 6d 61 72 79 54 79 70 65 22 is,"primaryType" 00017e70: 2c 6f 5b 30 5d 29 2c 66 75 6e 63 74 69 6f 6e 20 ,o[0]),function 00017e80: 6f 28 69 2c 61 29 7b 61 5b 69 5d 26 26 65 6f 2e o(i,a){a[i]&&eo. 00017e90: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00017ea0: 6f 72 28 60 63 69 72 63 75 6c 61 72 20 74 79 70 or(`circular typ 00017eb0: 65 20 72 65 66 65 72 65 6e 63 65 20 74 6f 20 24 e reference to $ 00017ec0: 7b 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 {JSON.stringify( 00017ed0: 69 29 7d 60 2c 22 74 79 70 65 73 22 2c 65 29 2c i)}`,"types",e), 00017ee0: 61 5b 69 5d 3d 21 30 2c 4f 62 6a 65 63 74 2e 6b a[i]=!0,Object.k 00017ef0: 65 79 73 28 74 5b 69 5d 29 2e 66 6f 72 45 61 63 eys(t[i]).forEac 00017f00: 68 28 28 65 3d 3e 7b 6e 5b 65 5d 26 26 28 6f 28 h((e=>{n[e]&&(o( 00017f10: 65 2c 61 29 2c 4f 62 6a 65 63 74 2e 6b 65 79 73 e,a),Object.keys 00017f20: 28 61 29 2e 66 6f 72 45 61 63 68 28 28 74 3d 3e (a).forEach((t=> 00017f30: 7b 72 5b 74 5d 5b 65 5d 3d 21 30 7d 29 29 29 7d {r[t][e]=!0})))} 00017f40: 29 29 2c 64 65 6c 65 74 65 20 61 5b 69 5d 7d 28 )),delete a[i]}( 00017f50: 74 68 69 73 2e 70 72 69 6d 61 72 79 54 79 70 65 this.primaryType 00017f60: 2c 7b 7d 29 3b 66 6f 72 28 63 6f 6e 73 74 20 74 ,{});for(const t 00017f70: 20 69 6e 20 72 29 7b 63 6f 6e 73 74 20 6e 3d 4f in r){const n=O 00017f80: 62 6a 65 63 74 2e 6b 65 79 73 28 72 5b 74 5d 29 bject.keys(r[t]) 00017f90: 3b 6e 2e 73 6f 72 74 28 29 2c 74 68 69 73 2e 5f ;n.sort(),this._ 00017fa0: 74 79 70 65 73 5b 74 5d 3d 68 6f 28 74 2c 65 5b types[t]=ho(t,e[ 00017fb0: 74 5d 29 2b 6e 2e 6d 61 70 28 28 74 3d 3e 68 6f t])+n.map((t=>ho 00017fc0: 28 74 2c 65 5b 74 5d 29 29 29 2e 6a 6f 69 6e 28 (t,e[t]))).join( 00017fd0: 22 22 29 7d 7d 67 65 74 45 6e 63 6f 64 65 72 28 "")}}getEncoder( 00017fe0: 65 29 7b 6c 65 74 20 74 3d 74 68 69 73 2e 5f 65 e){let t=this._e 00017ff0: 6e 63 6f 64 65 72 43 61 63 68 65 5b 65 5d 3b 72 ncoderCache[e];r 00018000: 65 74 75 72 6e 20 74 7c 7c 28 74 3d 74 68 69 73 eturn t||(t=this 00018010: 2e 5f 65 6e 63 6f 64 65 72 43 61 63 68 65 5b 65 ._encoderCache[e 00018020: 5d 3d 74 68 69 73 2e 5f 67 65 74 45 6e 63 6f 64 ]=this._getEncod 00018030: 65 72 28 65 29 29 2c 74 7d 5f 67 65 74 45 6e 63 er(e)),t}_getEnc 00018040: 6f 64 65 72 28 65 29 7b 7b 63 6f 6e 73 74 20 74 oder(e){{const t 00018050: 3d 66 6f 28 65 29 3b 69 66 28 74 29 72 65 74 75 =fo(e);if(t)retu 00018060: 72 6e 20 74 7d 63 6f 6e 73 74 20 74 3d 65 2e 6d rn t}const t=e.m 00018070: 61 74 63 68 28 2f 5e 28 2e 2a 29 28 5c 78 35 62 atch(/^(.*)(\x5b 00018080: 28 5c 64 2a 29 5c 78 35 64 29 24 2f 29 3b 69 66 (\d*)\x5d)$/);if 00018090: 28 74 29 7b 63 6f 6e 73 74 20 65 3d 74 5b 31 5d (t){const e=t[1] 000180a0: 2c 6e 3d 74 68 69 73 2e 67 65 74 45 6e 63 6f 64 ,n=this.getEncod 000180b0: 65 72 28 65 29 2c 72 3d 70 61 72 73 65 49 6e 74 er(e),r=parseInt 000180c0: 28 74 5b 33 5d 29 3b 72 65 74 75 72 6e 20 74 3d (t[3]);return t= 000180d0: 3e 7b 72 3e 3d 30 26 26 74 2e 6c 65 6e 67 74 68 >{r>=0&&t.length 000180e0: 21 3d 3d 72 26 26 65 6f 2e 74 68 72 6f 77 41 72 !==r&&eo.throwAr 000180f0: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 61 72 72 gumentError("arr 00018100: 61 79 20 6c 65 6e 67 74 68 20 6d 69 73 6d 61 74 ay length mismat 00018110: 63 68 3b 20 65 78 70 65 63 74 65 64 20 6c 65 6e ch; expected len 00018120: 67 74 68 20 24 7b 20 61 72 72 61 79 4c 65 6e 67 gth ${ arrayLeng 00018130: 74 68 20 7d 22 2c 22 76 61 6c 75 65 22 2c 74 29 th }","value",t) 00018140: 3b 6c 65 74 20 6f 3d 74 2e 6d 61 70 28 6e 29 3b ;let o=t.map(n); 00018150: 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 74 79 70 return this._typ 00018160: 65 73 5b 65 5d 26 26 28 6f 3d 6f 2e 6d 61 70 28 es[e]&&(o=o.map( 00018170: 76 65 29 29 2c 76 65 28 4d 28 6f 29 29 7d 7d 63 ve)),ve(M(o))}}c 00018180: 6f 6e 73 74 20 6e 3d 74 68 69 73 2e 74 79 70 65 onst n=this.type 00018190: 73 5b 65 5d 3b 69 66 28 6e 29 7b 63 6f 6e 73 74 s[e];if(n){const 000181a0: 20 74 3d 51 65 28 74 68 69 73 2e 5f 74 79 70 65 t=Qe(this._type 000181b0: 73 5b 65 5d 29 3b 72 65 74 75 72 6e 20 65 3d 3e s[e]);return e=> 000181c0: 7b 63 6f 6e 73 74 20 72 3d 6e 2e 6d 61 70 28 28 {const r=n.map(( 000181d0: 28 7b 6e 61 6d 65 3a 74 2c 74 79 70 65 3a 6e 7d ({name:t,type:n} 000181e0: 29 3d 3e 7b 63 6f 6e 73 74 20 72 3d 74 68 69 73 )=>{const r=this 000181f0: 2e 67 65 74 45 6e 63 6f 64 65 72 28 6e 29 28 65 .getEncoder(n)(e 00018200: 5b 74 5d 29 3b 72 65 74 75 72 6e 20 74 68 69 73 [t]);return this 00018210: 2e 5f 74 79 70 65 73 5b 6e 5d 3f 76 65 28 72 29 ._types[n]?ve(r) 00018220: 3a 72 7d 29 29 3b 72 65 74 75 72 6e 20 72 2e 75 :r}));return r.u 00018230: 6e 73 68 69 66 74 28 74 29 2c 4d 28 72 29 7d 7d nshift(t),M(r)}} 00018240: 72 65 74 75 72 6e 20 65 6f 2e 74 68 72 6f 77 41 return eo.throwA 00018250: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 60 75 6e rgumentError(`un 00018260: 6b 6e 6f 77 6e 20 74 79 70 65 3a 20 24 7b 65 7d known type: ${e} 00018270: 60 2c 22 74 79 70 65 22 2c 65 29 7d 65 6e 63 6f `,"type",e)}enco 00018280: 64 65 54 79 70 65 28 65 29 7b 63 6f 6e 73 74 20 deType(e){const 00018290: 74 3d 74 68 69 73 2e 5f 74 79 70 65 73 5b 65 5d t=this._types[e] 000182a0: 3b 72 65 74 75 72 6e 20 74 7c 7c 65 6f 2e 74 68 ;return t||eo.th 000182b0: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 000182c0: 28 60 75 6e 6b 6e 6f 77 6e 20 74 79 70 65 3a 20 (`unknown type: 000182d0: 24 7b 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 ${JSON.stringify 000182e0: 28 65 29 7d 60 2c 22 6e 61 6d 65 22 2c 65 29 2c (e)}`,"name",e), 000182f0: 74 7d 65 6e 63 6f 64 65 44 61 74 61 28 65 2c 74 t}encodeData(e,t 00018300: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 67 65 ){return this.ge 00018310: 74 45 6e 63 6f 64 65 72 28 65 29 28 74 29 7d 68 tEncoder(e)(t)}h 00018320: 61 73 68 53 74 72 75 63 74 28 65 2c 74 29 7b 72 ashStruct(e,t){r 00018330: 65 74 75 72 6e 20 76 65 28 74 68 69 73 2e 65 6e eturn ve(this.en 00018340: 63 6f 64 65 44 61 74 61 28 65 2c 74 29 29 7d 65 codeData(e,t))}e 00018350: 6e 63 6f 64 65 28 65 29 7b 72 65 74 75 72 6e 20 ncode(e){return 00018360: 74 68 69 73 2e 65 6e 63 6f 64 65 44 61 74 61 28 this.encodeData( 00018370: 74 68 69 73 2e 70 72 69 6d 61 72 79 54 79 70 65 this.primaryType 00018380: 2c 65 29 7d 68 61 73 68 28 65 29 7b 72 65 74 75 ,e)}hash(e){retu 00018390: 72 6e 20 74 68 69 73 2e 68 61 73 68 53 74 72 75 rn this.hashStru 000183a0: 63 74 28 74 68 69 73 2e 70 72 69 6d 61 72 79 54 ct(this.primaryT 000183b0: 79 70 65 2c 65 29 7d 5f 76 69 73 69 74 28 65 2c ype,e)}_visit(e, 000183c0: 74 2c 6e 29 7b 69 66 28 66 6f 28 65 29 29 72 65 t,n){if(fo(e))re 000183d0: 74 75 72 6e 20 6e 28 65 2c 74 29 3b 63 6f 6e 73 turn n(e,t);cons 000183e0: 74 20 72 3d 65 2e 6d 61 74 63 68 28 2f 5e 28 2e t r=e.match(/^(. 000183f0: 2a 29 28 5c 78 35 62 28 5c 64 2a 29 5c 78 35 64 *)(\x5b(\d*)\x5d 00018400: 29 24 2f 29 3b 69 66 28 72 29 7b 63 6f 6e 73 74 )$/);if(r){const 00018410: 20 65 3d 72 5b 31 5d 2c 6f 3d 70 61 72 73 65 49 e=r[1],o=parseI 00018420: 6e 74 28 72 5b 33 5d 29 3b 72 65 74 75 72 6e 20 nt(r[3]);return 00018430: 6f 3e 3d 30 26 26 74 2e 6c 65 6e 67 74 68 21 3d o>=0&&t.length!= 00018440: 3d 6f 26 26 65 6f 2e 74 68 72 6f 77 41 72 67 75 =o&&eo.throwArgu 00018450: 6d 65 6e 74 45 72 72 6f 72 28 22 61 72 72 61 79 mentError("array 00018460: 20 6c 65 6e 67 74 68 20 6d 69 73 6d 61 74 63 68 length mismatch 00018470: 3b 20 65 78 70 65 63 74 65 64 20 6c 65 6e 67 74 ; expected lengt 00018480: 68 20 24 7b 20 61 72 72 61 79 4c 65 6e 67 74 68 h ${ arrayLength 00018490: 20 7d 22 2c 22 76 61 6c 75 65 22 2c 74 29 2c 74 }","value",t),t 000184a0: 2e 6d 61 70 28 28 74 3d 3e 74 68 69 73 2e 5f 76 .map((t=>this._v 000184b0: 69 73 69 74 28 65 2c 74 2c 6e 29 29 29 7d 63 6f isit(e,t,n)))}co 000184c0: 6e 73 74 20 6f 3d 74 68 69 73 2e 74 79 70 65 73 nst o=this.types 000184d0: 5b 65 5d 3b 72 65 74 75 72 6e 20 6f 3f 6f 2e 72 [e];return o?o.r 000184e0: 65 64 75 63 65 28 28 28 65 2c 7b 6e 61 6d 65 3a educe(((e,{name: 000184f0: 72 2c 74 79 70 65 3a 6f 7d 29 3d 3e 28 65 5b 72 r,type:o})=>(e[r 00018500: 5d 3d 74 68 69 73 2e 5f 76 69 73 69 74 28 6f 2c ]=this._visit(o, 00018510: 74 5b 72 5d 2c 6e 29 2c 65 29 29 2c 7b 7d 29 3a t[r],n),e)),{}): 00018520: 65 6f 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 eo.throwArgument 00018530: 45 72 72 6f 72 28 60 75 6e 6b 6e 6f 77 6e 20 74 Error(`unknown t 00018540: 79 70 65 3a 20 24 7b 65 7d 60 2c 22 74 79 70 65 ype: ${e}`,"type 00018550: 22 2c 65 29 7d 76 69 73 69 74 28 65 2c 74 29 7b ",e)}visit(e,t){ 00018560: 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 76 69 73 return this._vis 00018570: 69 74 28 74 68 69 73 2e 70 72 69 6d 61 72 79 54 it(this.primaryT 00018580: 79 70 65 2c 65 2c 74 29 7d 73 74 61 74 69 63 20 ype,e,t)}static 00018590: 66 72 6f 6d 28 65 29 7b 72 65 74 75 72 6e 20 6e from(e){return n 000185a0: 65 77 20 6d 6f 28 65 29 7d 73 74 61 74 69 63 20 ew mo(e)}static 000185b0: 67 65 74 50 72 69 6d 61 72 79 54 79 70 65 28 65 getPrimaryType(e 000185c0: 29 7b 72 65 74 75 72 6e 20 6d 6f 2e 66 72 6f 6d ){return mo.from 000185d0: 28 65 29 2e 70 72 69 6d 61 72 79 54 79 70 65 7d (e).primaryType} 000185e0: 73 74 61 74 69 63 20 68 61 73 68 53 74 72 75 63 static hashStruc 000185f0: 74 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e 20 t(e,t,n){return 00018600: 6d 6f 2e 66 72 6f 6d 28 74 29 2e 68 61 73 68 53 mo.from(t).hashS 00018610: 74 72 75 63 74 28 65 2c 6e 29 7d 73 74 61 74 69 truct(e,n)}stati 00018620: 63 20 68 61 73 68 44 6f 6d 61 69 6e 28 65 29 7b c hashDomain(e){ 00018630: 63 6f 6e 73 74 20 74 3d 5b 5d 3b 66 6f 72 28 63 const t=[];for(c 00018640: 6f 6e 73 74 20 6e 20 69 6e 20 65 29 7b 63 6f 6e onst n in e){con 00018650: 73 74 20 72 3d 6c 6f 5b 6e 5d 3b 72 7c 7c 65 6f st r=lo[n];r||eo 00018660: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00018670: 72 6f 72 28 60 69 6e 76 61 6c 69 64 20 74 79 70 ror(`invalid typ 00018680: 65 64 2d 64 61 74 61 20 64 6f 6d 61 69 6e 20 6b ed-data domain k 00018690: 65 79 3a 20 24 7b 4a 53 4f 4e 2e 73 74 72 69 6e ey: ${JSON.strin 000186a0: 67 69 66 79 28 6e 29 7d 60 2c 22 64 6f 6d 61 69 gify(n)}`,"domai 000186b0: 6e 22 2c 65 29 2c 74 2e 70 75 73 68 28 7b 6e 61 n",e),t.push({na 000186c0: 6d 65 3a 6e 2c 74 79 70 65 3a 72 7d 29 7d 72 65 me:n,type:r})}re 000186d0: 74 75 72 6e 20 74 2e 73 6f 72 74 28 28 28 65 2c turn t.sort(((e, 000186e0: 74 29 3d 3e 63 6f 2e 69 6e 64 65 78 4f 66 28 65 t)=>co.indexOf(e 000186f0: 2e 6e 61 6d 65 29 2d 63 6f 2e 69 6e 64 65 78 4f .name)-co.indexO 00018700: 66 28 74 2e 6e 61 6d 65 29 29 29 2c 6d 6f 2e 68 f(t.name))),mo.h 00018710: 61 73 68 53 74 72 75 63 74 28 22 45 49 50 37 31 ashStruct("EIP71 00018720: 32 44 6f 6d 61 69 6e 22 2c 7b 45 49 50 37 31 32 2Domain",{EIP712 00018730: 44 6f 6d 61 69 6e 3a 74 7d 2c 65 29 7d 73 74 61 Domain:t},e)}sta 00018740: 74 69 63 20 65 6e 63 6f 64 65 28 65 2c 74 2c 6e tic encode(e,t,n 00018750: 29 7b 72 65 74 75 72 6e 20 4d 28 5b 22 30 78 31 ){return M(["0x1 00018760: 39 30 31 22 2c 6d 6f 2e 68 61 73 68 44 6f 6d 61 901",mo.hashDoma 00018770: 69 6e 28 65 29 2c 6d 6f 2e 66 72 6f 6d 28 74 29 in(e),mo.from(t) 00018780: 2e 68 61 73 68 28 6e 29 5d 29 7d 73 74 61 74 69 .hash(n)])}stati 00018790: 63 20 68 61 73 68 28 65 2c 74 2c 6e 29 7b 72 65 c hash(e,t,n){re 000187a0: 74 75 72 6e 20 76 65 28 6d 6f 2e 65 6e 63 6f 64 turn ve(mo.encod 000187b0: 65 28 65 2c 74 2c 6e 29 29 7d 73 74 61 74 69 63 e(e,t,n))}static 000187c0: 20 72 65 73 6f 6c 76 65 4e 61 6d 65 73 28 65 2c resolveNames(e, 000187d0: 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 24 72 t,n,r){return $r 000187e0: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 000187f0: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 00018800: 7b 65 3d 69 65 28 65 29 3b 63 6f 6e 73 74 20 6f {e=ie(e);const o 00018810: 3d 7b 7d 3b 65 2e 76 65 72 69 66 79 69 6e 67 43 ={};e.verifyingC 00018820: 6f 6e 74 72 61 63 74 26 26 21 49 28 65 2e 76 65 ontract&&!I(e.ve 00018830: 72 69 66 79 69 6e 67 43 6f 6e 74 72 61 63 74 2c rifyingContract, 00018840: 32 30 29 26 26 28 6f 5b 65 2e 76 65 72 69 66 79 20)&&(o[e.verify 00018850: 69 6e 67 43 6f 6e 74 72 61 63 74 5d 3d 22 30 78 ingContract]="0x 00018860: 22 29 3b 63 6f 6e 73 74 20 69 3d 6d 6f 2e 66 72 ");const i=mo.fr 00018870: 6f 6d 28 74 29 3b 69 2e 76 69 73 69 74 28 6e 2c om(t);i.visit(n, 00018880: 28 28 65 2c 74 29 3d 3e 28 22 61 64 64 72 65 73 ((e,t)=>("addres 00018890: 73 22 21 3d 3d 65 7c 7c 49 28 74 2c 32 30 29 7c s"!==e||I(t,20)| 000188a0: 7c 28 6f 5b 74 5d 3d 22 30 78 22 29 2c 74 29 29 |(o[t]="0x"),t)) 000188b0: 29 3b 66 6f 72 28 63 6f 6e 73 74 20 65 20 69 6e );for(const e in 000188c0: 20 6f 29 6f 5b 65 5d 3d 79 69 65 6c 64 20 72 28 o)o[e]=yield r( 000188d0: 65 29 3b 72 65 74 75 72 6e 20 65 2e 76 65 72 69 e);return e.veri 000188e0: 66 79 69 6e 67 43 6f 6e 74 72 61 63 74 26 26 6f fyingContract&&o 000188f0: 5b 65 2e 76 65 72 69 66 79 69 6e 67 43 6f 6e 74 [e.verifyingCont 00018900: 72 61 63 74 5d 26 26 28 65 2e 76 65 72 69 66 79 ract]&&(e.verify 00018910: 69 6e 67 43 6f 6e 74 72 61 63 74 3d 6f 5b 65 2e ingContract=o[e. 00018920: 76 65 72 69 66 79 69 6e 67 43 6f 6e 74 72 61 63 verifyingContrac 00018930: 74 5d 29 2c 6e 3d 69 2e 76 69 73 69 74 28 6e 2c t]),n=i.visit(n, 00018940: 28 28 65 2c 74 29 3d 3e 22 61 64 64 72 65 73 73 ((e,t)=>"address 00018950: 22 3d 3d 3d 65 26 26 6f 5b 74 5d 3f 6f 5b 74 5d "===e&&o[t]?o[t] 00018960: 3a 74 29 29 2c 7b 64 6f 6d 61 69 6e 3a 65 2c 76 :t)),{domain:e,v 00018970: 61 6c 75 65 3a 6e 7d 7d 29 29 7d 73 74 61 74 69 alue:n}}))}stati 00018980: 63 20 67 65 74 50 61 79 6c 6f 61 64 28 65 2c 74 c getPayload(e,t 00018990: 2c 6e 29 7b 6d 6f 2e 68 61 73 68 44 6f 6d 61 69 ,n){mo.hashDomai 000189a0: 6e 28 65 29 3b 63 6f 6e 73 74 20 72 3d 7b 7d 2c n(e);const r={}, 000189b0: 6f 3d 5b 5d 3b 63 6f 2e 66 6f 72 45 61 63 68 28 o=[];co.forEach( 000189c0: 28 74 3d 3e 7b 63 6f 6e 73 74 20 6e 3d 65 5b 74 (t=>{const n=e[t 000189d0: 5d 3b 6e 75 6c 6c 21 3d 6e 26 26 28 72 5b 74 5d ];null!=n&&(r[t] 000189e0: 3d 70 6f 5b 74 5d 28 6e 29 2c 6f 2e 70 75 73 68 =po[t](n),o.push 000189f0: 28 7b 6e 61 6d 65 3a 74 2c 74 79 70 65 3a 6c 6f ({name:t,type:lo 00018a00: 5b 74 5d 7d 29 29 7d 29 29 3b 63 6f 6e 73 74 20 [t]}))}));const 00018a10: 69 3d 6d 6f 2e 66 72 6f 6d 28 74 29 2c 61 3d 69 i=mo.from(t),a=i 00018a20: 65 28 74 29 3b 72 65 74 75 72 6e 20 61 2e 45 49 e(t);return a.EI 00018a30: 50 37 31 32 44 6f 6d 61 69 6e 3f 65 6f 2e 74 68 P712Domain?eo.th 00018a40: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 00018a50: 28 22 74 79 70 65 73 20 6d 75 73 74 20 6e 6f 74 ("types must not 00018a60: 20 63 6f 6e 74 61 69 6e 20 45 49 50 37 31 32 44 contain EIP712D 00018a70: 6f 6d 61 69 6e 20 74 79 70 65 22 2c 22 74 79 70 omain type","typ 00018a80: 65 73 2e 45 49 50 37 31 32 44 6f 6d 61 69 6e 22 es.EIP712Domain" 00018a90: 2c 74 29 3a 61 2e 45 49 50 37 31 32 44 6f 6d 61 ,t):a.EIP712Doma 00018aa0: 69 6e 3d 6f 2c 69 2e 65 6e 63 6f 64 65 28 6e 29 in=o,i.encode(n) 00018ab0: 2c 7b 74 79 70 65 73 3a 61 2c 64 6f 6d 61 69 6e ,{types:a,domain 00018ac0: 3a 72 2c 70 72 69 6d 61 72 79 54 79 70 65 3a 69 :r,primaryType:i 00018ad0: 2e 70 72 69 6d 61 72 79 54 79 70 65 2c 6d 65 73 .primaryType,mes 00018ae0: 73 61 67 65 3a 69 2e 76 69 73 69 74 28 6e 2c 28 sage:i.visit(n,( 00018af0: 28 65 2c 74 29 3d 3e 7b 69 66 28 65 2e 6d 61 74 (e,t)=>{if(e.mat 00018b00: 63 68 28 2f 5e 62 79 74 65 73 28 5c 64 2a 29 2f ch(/^bytes(\d*)/ 00018b10: 29 29 72 65 74 75 72 6e 20 52 28 54 28 74 29 29 ))return R(T(t)) 00018b20: 3b 69 66 28 65 2e 6d 61 74 63 68 28 2f 5e 75 3f ;if(e.match(/^u? 00018b30: 69 6e 74 2f 29 29 72 65 74 75 72 6e 20 59 2e 66 int/))return Y.f 00018b40: 72 6f 6d 28 74 29 2e 74 6f 53 74 72 69 6e 67 28 rom(t).toString( 00018b50: 29 3b 73 77 69 74 63 68 28 65 29 7b 63 61 73 65 );switch(e){case 00018b60: 22 61 64 64 72 65 73 73 22 3a 72 65 74 75 72 6e "address":return 00018b70: 20 74 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 t.toLowerCase() 00018b80: 3b 63 61 73 65 22 62 6f 6f 6c 22 3a 72 65 74 75 ;case"bool":retu 00018b90: 72 6e 21 21 74 3b 63 61 73 65 22 73 74 72 69 6e rn!!t;case"strin 00018ba0: 67 22 3a 72 65 74 75 72 6e 22 73 74 72 69 6e 67 g":return"string 00018bb0: 22 21 3d 74 79 70 65 6f 66 20 74 26 26 65 6f 2e "!=typeof t&&eo. 00018bc0: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 00018bd0: 6f 72 28 22 69 6e 76 61 6c 69 64 20 73 74 72 69 or("invalid stri 00018be0: 6e 67 22 2c 22 76 61 6c 75 65 22 2c 74 29 2c 74 ng","value",t),t 00018bf0: 7d 72 65 74 75 72 6e 20 65 6f 2e 74 68 72 6f 77 }return eo.throw 00018c00: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 ArgumentError("u 00018c10: 6e 73 75 70 70 6f 72 74 65 64 20 74 79 70 65 22 nsupported type" 00018c20: 2c 22 74 79 70 65 22 2c 65 29 7d 29 29 7d 7d 7d ,"type",e)}))}}} 00018c30: 63 6c 61 73 73 20 67 6f 7b 63 6f 6e 73 74 72 75 class go{constru 00018c40: 63 74 6f 72 28 65 29 7b 74 65 28 74 68 69 73 2c ctor(e){te(this, 00018c50: 22 61 6c 70 68 61 62 65 74 22 2c 65 29 2c 74 65 "alphabet",e),te 00018c60: 28 74 68 69 73 2c 22 62 61 73 65 22 2c 65 2e 6c (this,"base",e.l 00018c70: 65 6e 67 74 68 29 2c 74 65 28 74 68 69 73 2c 22 ength),te(this," 00018c80: 5f 61 6c 70 68 61 62 65 74 4d 61 70 22 2c 7b 7d _alphabetMap",{} 00018c90: 29 2c 74 65 28 74 68 69 73 2c 22 5f 6c 65 61 64 ),te(this,"_lead 00018ca0: 65 72 22 2c 65 2e 63 68 61 72 41 74 28 30 29 29 er",e.charAt(0)) 00018cb0: 3b 66 6f 72 28 6c 65 74 20 74 3d 30 3b 74 3c 65 ;for(let t=0;t<e 00018cc0: 2e 6c 65 6e 67 74 68 3b 74 2b 2b 29 74 68 69 73 .length;t++)this 00018cd0: 2e 5f 61 6c 70 68 61 62 65 74 4d 61 70 5b 65 2e ._alphabetMap[e. 00018ce0: 63 68 61 72 41 74 28 74 29 5d 3d 74 7d 65 6e 63 charAt(t)]=t}enc 00018cf0: 6f 64 65 28 65 29 7b 6c 65 74 20 74 3d 54 28 65 ode(e){let t=T(e 00018d00: 29 3b 69 66 28 30 3d 3d 3d 74 2e 6c 65 6e 67 74 );if(0===t.lengt 00018d10: 68 29 72 65 74 75 72 6e 22 22 3b 6c 65 74 20 6e h)return"";let n 00018d20: 3d 5b 30 5d 3b 66 6f 72 28 6c 65 74 20 65 3d 30 =[0];for(let e=0 00018d30: 3b 65 3c 74 2e 6c 65 6e 67 74 68 3b 2b 2b 65 29 ;e<t.length;++e) 00018d40: 7b 6c 65 74 20 72 3d 74 5b 65 5d 3b 66 6f 72 28 {let r=t[e];for( 00018d50: 6c 65 74 20 65 3d 30 3b 65 3c 6e 2e 6c 65 6e 67 let e=0;e<n.leng 00018d60: 74 68 3b 2b 2b 65 29 72 2b 3d 6e 5b 65 5d 3c 3c th;++e)r+=n[e]<< 00018d70: 38 2c 6e 5b 65 5d 3d 72 25 74 68 69 73 2e 62 61 8,n[e]=r%this.ba 00018d80: 73 65 2c 72 3d 72 2f 74 68 69 73 2e 62 61 73 65 se,r=r/this.base 00018d90: 7c 30 3b 66 6f 72 28 3b 72 3e 30 3b 29 6e 2e 70 |0;for(;r>0;)n.p 00018da0: 75 73 68 28 72 25 74 68 69 73 2e 62 61 73 65 29 ush(r%this.base) 00018db0: 2c 72 3d 72 2f 74 68 69 73 2e 62 61 73 65 7c 30 ,r=r/this.base|0 00018dc0: 7d 6c 65 74 20 72 3d 22 22 3b 66 6f 72 28 6c 65 }let r="";for(le 00018dd0: 74 20 65 3d 30 3b 30 3d 3d 3d 74 5b 65 5d 26 26 t e=0;0===t[e]&& 00018de0: 65 3c 74 2e 6c 65 6e 67 74 68 2d 31 3b 2b 2b 65 e<t.length-1;++e 00018df0: 29 72 2b 3d 74 68 69 73 2e 5f 6c 65 61 64 65 72 )r+=this._leader 00018e00: 3b 66 6f 72 28 6c 65 74 20 65 3d 6e 2e 6c 65 6e ;for(let e=n.len 00018e10: 67 74 68 2d 31 3b 65 3e 3d 30 3b 2d 2d 65 29 72 gth-1;e>=0;--e)r 00018e20: 2b 3d 74 68 69 73 2e 61 6c 70 68 61 62 65 74 5b +=this.alphabet[ 00018e30: 6e 5b 65 5d 5d 3b 72 65 74 75 72 6e 20 72 7d 64 n[e]];return r}d 00018e40: 65 63 6f 64 65 28 65 29 7b 69 66 28 22 73 74 72 ecode(e){if("str 00018e50: 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 65 29 74 ing"!=typeof e)t 00018e60: 68 72 6f 77 20 6e 65 77 20 54 79 70 65 45 72 72 hrow new TypeErr 00018e70: 6f 72 28 22 45 78 70 65 63 74 65 64 20 53 74 72 or("Expected Str 00018e80: 69 6e 67 22 29 3b 6c 65 74 20 74 3d 5b 5d 3b 69 ing");let t=[];i 00018e90: 66 28 30 3d 3d 3d 65 2e 6c 65 6e 67 74 68 29 72 f(0===e.length)r 00018ea0: 65 74 75 72 6e 20 6e 65 77 20 55 69 6e 74 38 41 eturn new Uint8A 00018eb0: 72 72 61 79 28 74 29 3b 74 2e 70 75 73 68 28 30 rray(t);t.push(0 00018ec0: 29 3b 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 6e 3c );for(let n=0;n< 00018ed0: 65 2e 6c 65 6e 67 74 68 3b 6e 2b 2b 29 7b 6c 65 e.length;n++){le 00018ee0: 74 20 72 3d 74 68 69 73 2e 5f 61 6c 70 68 61 62 t r=this._alphab 00018ef0: 65 74 4d 61 70 5b 65 5b 6e 5d 5d 3b 69 66 28 76 etMap[e[n]];if(v 00018f00: 6f 69 64 20 30 3d 3d 3d 72 29 74 68 72 6f 77 20 oid 0===r)throw 00018f10: 6e 65 77 20 45 72 72 6f 72 28 22 4e 6f 6e 2d 62 new Error("Non-b 00018f20: 61 73 65 22 2b 74 68 69 73 2e 62 61 73 65 2b 22 ase"+this.base+" 00018f30: 20 63 68 61 72 61 63 74 65 72 22 29 3b 6c 65 74 character");let 00018f40: 20 6f 3d 72 3b 66 6f 72 28 6c 65 74 20 65 3d 30 o=r;for(let e=0 00018f50: 3b 65 3c 74 2e 6c 65 6e 67 74 68 3b 2b 2b 65 29 ;e<t.length;++e) 00018f60: 6f 2b 3d 74 5b 65 5d 2a 74 68 69 73 2e 62 61 73 o+=t[e]*this.bas 00018f70: 65 2c 74 5b 65 5d 3d 32 35 35 26 6f 2c 6f 3e 3e e,t[e]=255&o,o>> 00018f80: 3d 38 3b 66 6f 72 28 3b 6f 3e 30 3b 29 74 2e 70 =8;for(;o>0;)t.p 00018f90: 75 73 68 28 32 35 35 26 6f 29 2c 6f 3e 3e 3d 38 ush(255&o),o>>=8 00018fa0: 7d 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 65 5b 6e }for(let n=0;e[n 00018fb0: 5d 3d 3d 3d 74 68 69 73 2e 5f 6c 65 61 64 65 72 ]===this._leader 00018fc0: 26 26 6e 3c 65 2e 6c 65 6e 67 74 68 2d 31 3b 2b &&n<e.length-1;+ 00018fd0: 2b 6e 29 74 2e 70 75 73 68 28 30 29 3b 72 65 74 +n)t.push(0);ret 00018fe0: 75 72 6e 20 54 28 6e 65 77 20 55 69 6e 74 38 41 urn T(new Uint8A 00018ff0: 72 72 61 79 28 74 2e 72 65 76 65 72 73 65 28 29 rray(t.reverse() 00019000: 29 29 7d 7d 6e 65 77 20 67 6f 28 22 61 62 63 64 ))}}new go("abcd 00019010: 65 66 67 68 69 6a 6b 6c 6d 6e 6f 70 71 72 73 74 efghijklmnopqrst 00019020: 75 76 77 78 79 7a 32 33 34 35 36 37 22 29 3b 63 uvwxyz234567");c 00019030: 6f 6e 73 74 20 62 6f 3d 6e 65 77 20 67 6f 28 22 onst bo=new go(" 00019040: 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 47 123456789ABCDEFG 00019050: 48 4a 4b 4c 4d 4e 50 51 52 53 54 55 56 57 58 59 HJKLMNPQRSTUVWXY 00019060: 5a 61 62 63 64 65 66 67 68 69 6a 6b 6d 6e 6f 70 Zabcdefghijkmnop 00019070: 71 72 73 74 75 76 77 78 79 7a 22 29 3b 76 61 72 qrstuvwxyz");var 00019080: 20 79 6f 3b 21 66 75 6e 63 74 69 6f 6e 28 65 29 yo;!function(e) 00019090: 7b 65 2e 73 68 61 32 35 36 3d 22 73 68 61 32 35 {e.sha256="sha25 000190a0: 36 22 2c 65 2e 73 68 61 35 31 32 3d 22 73 68 61 6",e.sha512="sha 000190b0: 35 31 32 22 7d 28 79 6f 7c 7c 28 79 6f 3d 7b 7d 512"}(yo||(yo={} 000190c0: 29 29 3b 63 6f 6e 73 74 20 76 6f 3d 6e 65 77 20 ));const vo=new 000190d0: 79 28 22 73 68 61 32 2f 35 2e 37 2e 30 22 29 3b y("sha2/5.7.0"); 000190e0: 66 75 6e 63 74 69 6f 6e 20 53 6f 28 65 29 7b 72 function So(e){r 000190f0: 65 74 75 72 6e 22 30 78 22 2b 68 6e 28 29 2e 72 eturn"0x"+hn().r 00019100: 69 70 65 6d 64 31 36 30 28 29 2e 75 70 64 61 74 ipemd160().updat 00019110: 65 28 54 28 65 29 29 2e 64 69 67 65 73 74 28 22 e(T(e)).digest(" 00019120: 68 65 78 22 29 7d 66 75 6e 63 74 69 6f 6e 20 45 hex")}function E 00019130: 6f 28 65 29 7b 72 65 74 75 72 6e 22 30 78 22 2b o(e){return"0x"+ 00019140: 68 6e 28 29 2e 73 68 61 32 35 36 28 29 2e 75 70 hn().sha256().up 00019150: 64 61 74 65 28 54 28 65 29 29 2e 64 69 67 65 73 date(T(e)).diges 00019160: 74 28 22 68 65 78 22 29 7d 66 75 6e 63 74 69 6f t("hex")}functio 00019170: 6e 20 5f 6f 28 65 29 7b 72 65 74 75 72 6e 22 30 n _o(e){return"0 00019180: 78 22 2b 68 6e 28 29 2e 73 68 61 35 31 32 28 29 x"+hn().sha512() 00019190: 2e 75 70 64 61 74 65 28 54 28 65 29 29 2e 64 69 .update(T(e)).di 000191a0: 67 65 73 74 28 22 68 65 78 22 29 7d 66 75 6e 63 gest("hex")}func 000191b0: 74 69 6f 6e 20 77 6f 28 65 2c 74 2c 6e 29 7b 72 tion wo(e,t,n){r 000191c0: 65 74 75 72 6e 20 79 6f 5b 65 5d 7c 7c 76 6f 2e eturn yo[e]||vo. 000191d0: 74 68 72 6f 77 45 72 72 6f 72 28 22 75 6e 73 75 throwError("unsu 000191e0: 70 70 6f 72 74 65 64 20 61 6c 67 6f 72 69 74 68 pported algorith 000191f0: 6d 20 22 2b 65 2c 79 2e 65 72 72 6f 72 73 2e 55 m "+e,y.errors.U 00019200: 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 41 NSUPPORTED_OPERA 00019210: 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a TION,{operation: 00019220: 22 68 6d 61 63 22 2c 61 6c 67 6f 72 69 74 68 6d "hmac",algorithm 00019230: 3a 65 7d 29 2c 22 30 78 22 2b 68 6e 28 29 2e 68 :e}),"0x"+hn().h 00019240: 6d 61 63 28 68 6e 28 29 5b 65 5d 2c 54 28 74 29 mac(hn()[e],T(t) 00019250: 29 2e 75 70 64 61 74 65 28 54 28 6e 29 29 2e 64 ).update(T(n)).d 00019260: 69 67 65 73 74 28 22 68 65 78 22 29 7d 66 75 6e igest("hex")}fun 00019270: 63 74 69 6f 6e 20 78 6f 28 65 2c 74 2c 6e 2c 72 ction xo(e,t,n,r 00019280: 2c 6f 29 7b 6c 65 74 20 69 3b 65 3d 54 28 65 29 ,o){let i;e=T(e) 00019290: 2c 74 3d 54 28 74 29 3b 6c 65 74 20 61 3d 31 3b ,t=T(t);let a=1; 000192a0: 63 6f 6e 73 74 20 73 3d 6e 65 77 20 55 69 6e 74 const s=new Uint 000192b0: 38 41 72 72 61 79 28 72 29 2c 6c 3d 6e 65 77 20 8Array(r),l=new 000192c0: 55 69 6e 74 38 41 72 72 61 79 28 74 2e 6c 65 6e Uint8Array(t.len 000192d0: 67 74 68 2b 34 29 3b 6c 65 74 20 63 2c 75 3b 6c gth+4);let c,u;l 000192e0: 2e 73 65 74 28 74 29 3b 66 6f 72 28 6c 65 74 20 .set(t);for(let 000192f0: 64 3d 31 3b 64 3c 3d 61 3b 64 2b 2b 29 7b 6c 5b d=1;d<=a;d++){l[ 00019300: 74 2e 6c 65 6e 67 74 68 5d 3d 64 3e 3e 32 34 26 t.length]=d>>24& 00019310: 32 35 35 2c 6c 5b 74 2e 6c 65 6e 67 74 68 2b 31 255,l[t.length+1 00019320: 5d 3d 64 3e 3e 31 36 26 32 35 35 2c 6c 5b 74 2e ]=d>>16&255,l[t. 00019330: 6c 65 6e 67 74 68 2b 32 5d 3d 64 3e 3e 38 26 32 length+2]=d>>8&2 00019340: 35 35 2c 6c 5b 74 2e 6c 65 6e 67 74 68 2b 33 5d 55,l[t.length+3] 00019350: 3d 32 35 35 26 64 3b 6c 65 74 20 70 3d 54 28 77 =255&d;let p=T(w 00019360: 6f 28 6f 2c 65 2c 6c 29 29 3b 69 7c 7c 28 69 3d o(o,e,l));i||(i= 00019370: 70 2e 6c 65 6e 67 74 68 2c 75 3d 6e 65 77 20 55 p.length,u=new U 00019380: 69 6e 74 38 41 72 72 61 79 28 69 29 2c 61 3d 4d int8Array(i),a=M 00019390: 61 74 68 2e 63 65 69 6c 28 72 2f 69 29 2c 63 3d ath.ceil(r/i),c= 000193a0: 72 2d 28 61 2d 31 29 2a 69 29 2c 75 2e 73 65 74 r-(a-1)*i),u.set 000193b0: 28 70 29 3b 66 6f 72 28 6c 65 74 20 74 3d 31 3b (p);for(let t=1; 000193c0: 74 3c 6e 3b 74 2b 2b 29 7b 70 3d 54 28 77 6f 28 t<n;t++){p=T(wo( 000193d0: 6f 2c 65 2c 70 29 29 3b 66 6f 72 28 6c 65 74 20 o,e,p));for(let 000193e0: 65 3d 30 3b 65 3c 69 3b 65 2b 2b 29 75 5b 65 5d e=0;e<i;e++)u[e] 000193f0: 5e 3d 70 5b 65 5d 7d 63 6f 6e 73 74 20 66 3d 28 ^=p[e]}const f=( 00019400: 64 2d 31 29 2a 69 2c 68 3d 64 3d 3d 3d 61 3f 63 d-1)*i,h=d===a?c 00019410: 3a 69 3b 73 2e 73 65 74 28 54 28 75 29 2e 73 6c :i;s.set(T(u).sl 00019420: 69 63 65 28 30 2c 68 29 2c 66 29 7d 72 65 74 75 ice(0,h),f)}retu 00019430: 72 6e 20 52 28 73 29 7d 63 6f 6e 73 74 20 54 6f rn R(s)}const To 00019440: 3d 6e 65 77 20 79 28 22 77 6f 72 64 6c 69 73 74 =new y("wordlist 00019450: 73 2f 35 2e 37 2e 30 22 29 3b 63 6c 61 73 73 20 s/5.7.0");class 00019460: 43 6f 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 Co{constructor(e 00019470: 29 7b 54 6f 2e 63 68 65 63 6b 41 62 73 74 72 61 ){To.checkAbstra 00019480: 63 74 28 6e 65 77 2e 74 61 72 67 65 74 2c 43 6f ct(new.target,Co 00019490: 29 2c 74 65 28 74 68 69 73 2c 22 6c 6f 63 61 6c ),te(this,"local 000194a0: 65 22 2c 65 29 7d 73 70 6c 69 74 28 65 29 7b 72 e",e)}split(e){r 000194b0: 65 74 75 72 6e 20 65 2e 74 6f 4c 6f 77 65 72 43 eturn e.toLowerC 000194c0: 61 73 65 28 29 2e 73 70 6c 69 74 28 2f 20 2b 2f ase().split(/ +/ 000194d0: 67 29 7d 6a 6f 69 6e 28 65 29 7b 72 65 74 75 72 g)}join(e){retur 000194e0: 6e 20 65 2e 6a 6f 69 6e 28 22 20 22 29 7d 73 74 n e.join(" ")}st 000194f0: 61 74 69 63 20 63 68 65 63 6b 28 65 29 7b 63 6f atic check(e){co 00019500: 6e 73 74 20 74 3d 5b 5d 3b 66 6f 72 28 6c 65 74 nst t=[];for(let 00019510: 20 6e 3d 30 3b 6e 3c 32 30 34 38 3b 6e 2b 2b 29 n=0;n<2048;n++) 00019520: 7b 63 6f 6e 73 74 20 72 3d 65 2e 67 65 74 57 6f {const r=e.getWo 00019530: 72 64 28 6e 29 3b 69 66 28 6e 21 3d 3d 65 2e 67 rd(n);if(n!==e.g 00019540: 65 74 57 6f 72 64 49 6e 64 65 78 28 72 29 29 72 etWordIndex(r))r 00019550: 65 74 75 72 6e 22 30 78 22 3b 74 2e 70 75 73 68 eturn"0x";t.push 00019560: 28 72 29 7d 72 65 74 75 72 6e 20 51 65 28 74 2e (r)}return Qe(t. 00019570: 6a 6f 69 6e 28 22 5c 6e 22 29 2b 22 5c 6e 22 29 join("\n")+"\n") 00019580: 7d 73 74 61 74 69 63 20 72 65 67 69 73 74 65 72 }static register 00019590: 28 65 2c 74 29 7b 74 7c 7c 28 74 3d 65 2e 6c 6f (e,t){t||(t=e.lo 000195a0: 63 61 6c 65 29 7d 7d 63 6f 6e 73 74 20 41 6f 3d cale)}}const Ao= 000195b0: 22 41 62 61 6e 64 6f 6e 41 62 69 6c 69 74 79 41 "AbandonAbilityA 000195c0: 62 6c 65 41 62 6f 75 74 41 62 6f 76 65 41 62 73 bleAboutAboveAbs 000195d0: 65 6e 74 41 62 73 6f 72 62 41 62 73 74 72 61 63 entAbsorbAbstrac 000195e0: 74 41 62 73 75 72 64 41 62 75 73 65 41 63 63 65 tAbsurdAbuseAcce 000195f0: 73 73 41 63 63 69 64 65 6e 74 41 63 63 6f 75 6e ssAccidentAccoun 00019600: 74 41 63 63 75 73 65 41 63 68 69 65 76 65 41 63 tAccuseAchieveAc 00019610: 69 64 41 63 6f 75 73 74 69 63 41 63 71 75 69 72 idAcousticAcquir 00019620: 65 41 63 72 6f 73 73 41 63 74 41 63 74 69 6f 6e eAcrossActAction 00019630: 41 63 74 6f 72 41 63 74 72 65 73 73 41 63 74 75 ActorActressActu 00019640: 61 6c 41 64 61 70 74 41 64 64 41 64 64 69 63 74 alAdaptAddAddict 00019650: 41 64 64 72 65 73 73 41 64 6a 75 73 74 41 64 6d AddressAdjustAdm 00019660: 69 74 41 64 75 6c 74 41 64 76 61 6e 63 65 41 64 itAdultAdvanceAd 00019670: 76 69 63 65 41 65 72 6f 62 69 63 41 66 66 61 69 viceAerobicAffai 00019680: 72 41 66 66 6f 72 64 41 66 72 61 69 64 41 67 61 rAffordAfraidAga 00019690: 69 6e 41 67 65 41 67 65 6e 74 41 67 72 65 65 41 inAgeAgentAgreeA 000196a0: 68 65 61 64 41 69 6d 41 69 72 41 69 72 70 6f 72 headAimAirAirpor 000196b0: 74 41 69 73 6c 65 41 6c 61 72 6d 41 6c 62 75 6d tAisleAlarmAlbum 000196c0: 41 6c 63 6f 68 6f 6c 41 6c 65 72 74 41 6c 69 65 AlcoholAlertAlie 000196d0: 6e 41 6c 6c 41 6c 6c 65 79 41 6c 6c 6f 77 41 6c nAllAlleyAllowAl 000196e0: 6d 6f 73 74 41 6c 6f 6e 65 41 6c 70 68 61 41 6c mostAloneAlphaAl 000196f0: 72 65 61 64 79 41 6c 73 6f 41 6c 74 65 72 41 6c readyAlsoAlterAl 00019700: 77 61 79 73 41 6d 61 74 65 75 72 41 6d 61 7a 69 waysAmateurAmazi 00019710: 6e 67 41 6d 6f 6e 67 41 6d 6f 75 6e 74 41 6d 75 ngAmongAmountAmu 00019720: 73 65 64 41 6e 61 6c 79 73 74 41 6e 63 68 6f 72 sedAnalystAnchor 00019730: 41 6e 63 69 65 6e 74 41 6e 67 65 72 41 6e 67 6c AncientAngerAngl 00019740: 65 41 6e 67 72 79 41 6e 69 6d 61 6c 41 6e 6b 6c eAngryAnimalAnkl 00019750: 65 41 6e 6e 6f 75 6e 63 65 41 6e 6e 75 61 6c 41 eAnnounceAnnualA 00019760: 6e 6f 74 68 65 72 41 6e 73 77 65 72 41 6e 74 65 notherAnswerAnte 00019770: 6e 6e 61 41 6e 74 69 71 75 65 41 6e 78 69 65 74 nnaAntiqueAnxiet 00019780: 79 41 6e 79 41 70 61 72 74 41 70 6f 6c 6f 67 79 yAnyApartApology 00019790: 41 70 70 65 61 72 41 70 70 6c 65 41 70 70 72 6f AppearAppleAppro 000197a0: 76 65 41 70 72 69 6c 41 72 63 68 41 72 63 74 69 veAprilArchArcti 000197b0: 63 41 72 65 61 41 72 65 6e 61 41 72 67 75 65 41 cAreaArenaArgueA 000197c0: 72 6d 41 72 6d 65 64 41 72 6d 6f 72 41 72 6d 79 rmArmedArmorArmy 000197d0: 41 72 6f 75 6e 64 41 72 72 61 6e 67 65 41 72 72 AroundArrangeArr 000197e0: 65 73 74 41 72 72 69 76 65 41 72 72 6f 77 41 72 estArriveArrowAr 000197f0: 74 41 72 74 65 66 61 63 74 41 72 74 69 73 74 41 tArtefactArtistA 00019800: 72 74 77 6f 72 6b 41 73 6b 41 73 70 65 63 74 41 rtworkAskAspectA 00019810: 73 73 61 75 6c 74 41 73 73 65 74 41 73 73 69 73 ssaultAssetAssis 00019820: 74 41 73 73 75 6d 65 41 73 74 68 6d 61 41 74 68 tAssumeAsthmaAth 00019830: 6c 65 74 65 41 74 6f 6d 41 74 74 61 63 6b 41 74 leteAtomAttackAt 00019840: 74 65 6e 64 41 74 74 69 74 75 64 65 41 74 74 72 tendAttitudeAttr 00019850: 61 63 74 41 75 63 74 69 6f 6e 41 75 64 69 74 41 actAuctionAuditA 00019860: 75 67 75 73 74 41 75 6e 74 41 75 74 68 6f 72 41 ugustAuntAuthorA 00019870: 75 74 6f 41 75 74 75 6d 6e 41 76 65 72 61 67 65 utoAutumnAverage 00019880: 41 76 6f 63 61 64 6f 41 76 6f 69 64 41 77 61 6b AvocadoAvoidAwak 00019890: 65 41 77 61 72 65 41 77 61 79 41 77 65 73 6f 6d eAwareAwayAwesom 000198a0: 65 41 77 66 75 6c 41 77 6b 77 61 72 64 41 78 69 eAwfulAwkwardAxi 000198b0: 73 42 61 62 79 42 61 63 68 65 6c 6f 72 42 61 63 sBabyBachelorBac 000198c0: 6f 6e 42 61 64 67 65 42 61 67 42 61 6c 61 6e 63 onBadgeBagBalanc 000198d0: 65 42 61 6c 63 6f 6e 79 42 61 6c 6c 42 61 6d 62 eBalconyBallBamb 000198e0: 6f 6f 42 61 6e 61 6e 61 42 61 6e 6e 65 72 42 61 ooBananaBannerBa 000198f0: 72 42 61 72 65 6c 79 42 61 72 67 61 69 6e 42 61 rBarelyBargainBa 00019900: 72 72 65 6c 42 61 73 65 42 61 73 69 63 42 61 73 rrelBaseBasicBas 00019910: 6b 65 74 42 61 74 74 6c 65 42 65 61 63 68 42 65 ketBattleBeachBe 00019920: 61 6e 42 65 61 75 74 79 42 65 63 61 75 73 65 42 anBeautyBecauseB 00019930: 65 63 6f 6d 65 42 65 65 66 42 65 66 6f 72 65 42 ecomeBeefBeforeB 00019940: 65 67 69 6e 42 65 68 61 76 65 42 65 68 69 6e 64 eginBehaveBehind 00019950: 42 65 6c 69 65 76 65 42 65 6c 6f 77 42 65 6c 74 BelieveBelowBelt 00019960: 42 65 6e 63 68 42 65 6e 65 66 69 74 42 65 73 74 BenchBenefitBest 00019970: 42 65 74 72 61 79 42 65 74 74 65 72 42 65 74 77 BetrayBetterBetw 00019980: 65 65 6e 42 65 79 6f 6e 64 42 69 63 79 63 6c 65 eenBeyondBicycle 00019990: 42 69 64 42 69 6b 65 42 69 6e 64 42 69 6f 6c 6f BidBikeBindBiolo 000199a0: 67 79 42 69 72 64 42 69 72 74 68 42 69 74 74 65 gyBirdBirthBitte 000199b0: 72 42 6c 61 63 6b 42 6c 61 64 65 42 6c 61 6d 65 rBlackBladeBlame 000199c0: 42 6c 61 6e 6b 65 74 42 6c 61 73 74 42 6c 65 61 BlanketBlastBlea 000199d0: 6b 42 6c 65 73 73 42 6c 69 6e 64 42 6c 6f 6f 64 kBlessBlindBlood 000199e0: 42 6c 6f 73 73 6f 6d 42 6c 6f 75 73 65 42 6c 75 BlossomBlouseBlu 000199f0: 65 42 6c 75 72 42 6c 75 73 68 42 6f 61 72 64 42 eBlurBlushBoardB 00019a00: 6f 61 74 42 6f 64 79 42 6f 69 6c 42 6f 6d 62 42 oatBodyBoilBombB 00019a10: 6f 6e 65 42 6f 6e 75 73 42 6f 6f 6b 42 6f 6f 73 oneBonusBookBoos 00019a20: 74 42 6f 72 64 65 72 42 6f 72 69 6e 67 42 6f 72 tBorderBoringBor 00019a30: 72 6f 77 42 6f 73 73 42 6f 74 74 6f 6d 42 6f 75 rowBossBottomBou 00019a40: 6e 63 65 42 6f 78 42 6f 79 42 72 61 63 6b 65 74 nceBoxBoyBracket 00019a50: 42 72 61 69 6e 42 72 61 6e 64 42 72 61 73 73 42 BrainBrandBrassB 00019a60: 72 61 76 65 42 72 65 61 64 42 72 65 65 7a 65 42 raveBreadBreezeB 00019a70: 72 69 63 6b 42 72 69 64 67 65 42 72 69 65 66 42 rickBridgeBriefB 00019a80: 72 69 67 68 74 42 72 69 6e 67 42 72 69 73 6b 42 rightBringBriskB 00019a90: 72 6f 63 63 6f 6c 69 42 72 6f 6b 65 6e 42 72 6f roccoliBrokenBro 00019aa0: 6e 7a 65 42 72 6f 6f 6d 42 72 6f 74 68 65 72 42 nzeBroomBrotherB 00019ab0: 72 6f 77 6e 42 72 75 73 68 42 75 62 62 6c 65 42 rownBrushBubbleB 00019ac0: 75 64 64 79 42 75 64 67 65 74 42 75 66 66 61 6c uddyBudgetBuffal 00019ad0: 6f 42 75 69 6c 64 42 75 6c 62 42 75 6c 6b 42 75 oBuildBulbBulkBu 00019ae0: 6c 6c 65 74 42 75 6e 64 6c 65 42 75 6e 6b 65 72 lletBundleBunker 00019af0: 42 75 72 64 65 6e 42 75 72 67 65 72 42 75 72 73 BurdenBurgerBurs 00019b00: 74 42 75 73 42 75 73 69 6e 65 73 73 42 75 73 79 tBusBusinessBusy 00019b10: 42 75 74 74 65 72 42 75 79 65 72 42 75 7a 7a 43 ButterBuyerBuzzC 00019b20: 61 62 62 61 67 65 43 61 62 69 6e 43 61 62 6c 65 abbageCabinCable 00019b30: 43 61 63 74 75 73 43 61 67 65 43 61 6b 65 43 61 CactusCageCakeCa 00019b40: 6c 6c 43 61 6c 6d 43 61 6d 65 72 61 43 61 6d 70 llCalmCameraCamp 00019b50: 43 61 6e 43 61 6e 61 6c 43 61 6e 63 65 6c 43 61 CanCanalCancelCa 00019b60: 6e 64 79 43 61 6e 6e 6f 6e 43 61 6e 6f 65 43 61 ndyCannonCanoeCa 00019b70: 6e 76 61 73 43 61 6e 79 6f 6e 43 61 70 61 62 6c nvasCanyonCapabl 00019b80: 65 43 61 70 69 74 61 6c 43 61 70 74 61 69 6e 43 eCapitalCaptainC 00019b90: 61 72 43 61 72 62 6f 6e 43 61 72 64 43 61 72 67 arCarbonCardCarg 00019ba0: 6f 43 61 72 70 65 74 43 61 72 72 79 43 61 72 74 oCarpetCarryCart 00019bb0: 43 61 73 65 43 61 73 68 43 61 73 69 6e 6f 43 61 CaseCashCasinoCa 00019bc0: 73 74 6c 65 43 61 73 75 61 6c 43 61 74 43 61 74 stleCasualCatCat 00019bd0: 61 6c 6f 67 43 61 74 63 68 43 61 74 65 67 6f 72 alogCatchCategor 00019be0: 79 43 61 74 74 6c 65 43 61 75 67 68 74 43 61 75 yCattleCaughtCau 00019bf0: 73 65 43 61 75 74 69 6f 6e 43 61 76 65 43 65 69 seCautionCaveCei 00019c00: 6c 69 6e 67 43 65 6c 65 72 79 43 65 6d 65 6e 74 lingCeleryCement 00019c10: 43 65 6e 73 75 73 43 65 6e 74 75 72 79 43 65 72 CensusCenturyCer 00019c20: 65 61 6c 43 65 72 74 61 69 6e 43 68 61 69 72 43 ealCertainChairC 00019c30: 68 61 6c 6b 43 68 61 6d 70 69 6f 6e 43 68 61 6e halkChampionChan 00019c40: 67 65 43 68 61 6f 73 43 68 61 70 74 65 72 43 68 geChaosChapterCh 00019c50: 61 72 67 65 43 68 61 73 65 43 68 61 74 43 68 65 argeChaseChatChe 00019c60: 61 70 43 68 65 63 6b 43 68 65 65 73 65 43 68 65 apCheckCheeseChe 00019c70: 66 43 68 65 72 72 79 43 68 65 73 74 43 68 69 63 fCherryChestChic 00019c80: 6b 65 6e 43 68 69 65 66 43 68 69 6c 64 43 68 69 kenChiefChildChi 00019c90: 6d 6e 65 79 43 68 6f 69 63 65 43 68 6f 6f 73 65 mneyChoiceChoose 00019ca0: 43 68 72 6f 6e 69 63 43 68 75 63 6b 6c 65 43 68 ChronicChuckleCh 00019cb0: 75 6e 6b 43 68 75 72 6e 43 69 67 61 72 43 69 6e unkChurnCigarCin 00019cc0: 6e 61 6d 6f 6e 43 69 72 63 6c 65 43 69 74 69 7a namonCircleCitiz 00019cd0: 65 6e 43 69 74 79 43 69 76 69 6c 43 6c 61 69 6d enCityCivilClaim 00019ce0: 43 6c 61 70 43 6c 61 72 69 66 79 43 6c 61 77 43 ClapClarifyClawC 00019cf0: 6c 61 79 43 6c 65 61 6e 43 6c 65 72 6b 43 6c 65 layCleanClerkCle 00019d00: 76 65 72 43 6c 69 63 6b 43 6c 69 65 6e 74 43 6c verClickClientCl 00019d10: 69 66 66 43 6c 69 6d 62 43 6c 69 6e 69 63 43 6c iffClimbClinicCl 00019d20: 69 70 43 6c 6f 63 6b 43 6c 6f 67 43 6c 6f 73 65 ipClockClogClose 00019d30: 43 6c 6f 74 68 43 6c 6f 75 64 43 6c 6f 77 6e 43 ClothCloudClownC 00019d40: 6c 75 62 43 6c 75 6d 70 43 6c 75 73 74 65 72 43 lubClumpClusterC 00019d50: 6c 75 74 63 68 43 6f 61 63 68 43 6f 61 73 74 43 lutchCoachCoastC 00019d60: 6f 63 6f 6e 75 74 43 6f 64 65 43 6f 66 66 65 65 oconutCodeCoffee 00019d70: 43 6f 69 6c 43 6f 69 6e 43 6f 6c 6c 65 63 74 43 CoilCoinCollectC 00019d80: 6f 6c 6f 72 43 6f 6c 75 6d 6e 43 6f 6d 62 69 6e olorColumnCombin 00019d90: 65 43 6f 6d 65 43 6f 6d 66 6f 72 74 43 6f 6d 69 eComeComfortComi 00019da0: 63 43 6f 6d 6d 6f 6e 43 6f 6d 70 61 6e 79 43 6f cCommonCompanyCo 00019db0: 6e 63 65 72 74 43 6f 6e 64 75 63 74 43 6f 6e 66 ncertConductConf 00019dc0: 69 72 6d 43 6f 6e 67 72 65 73 73 43 6f 6e 6e 65 irmCongressConne 00019dd0: 63 74 43 6f 6e 73 69 64 65 72 43 6f 6e 74 72 6f ctConsiderContro 00019de0: 6c 43 6f 6e 76 69 6e 63 65 43 6f 6f 6b 43 6f 6f lConvinceCookCoo 00019df0: 6c 43 6f 70 70 65 72 43 6f 70 79 43 6f 72 61 6c lCopperCopyCoral 00019e00: 43 6f 72 65 43 6f 72 6e 43 6f 72 72 65 63 74 43 CoreCornCorrectC 00019e10: 6f 73 74 43 6f 74 74 6f 6e 43 6f 75 63 68 43 6f ostCottonCouchCo 00019e20: 75 6e 74 72 79 43 6f 75 70 6c 65 43 6f 75 72 73 untryCoupleCours 00019e30: 65 43 6f 75 73 69 6e 43 6f 76 65 72 43 6f 79 6f eCousinCoverCoyo 00019e40: 74 65 43 72 61 63 6b 43 72 61 64 6c 65 43 72 61 teCrackCradleCra 00019e50: 66 74 43 72 61 6d 43 72 61 6e 65 43 72 61 73 68 ftCramCraneCrash 00019e60: 43 72 61 74 65 72 43 72 61 77 6c 43 72 61 7a 79 CraterCrawlCrazy 00019e70: 43 72 65 61 6d 43 72 65 64 69 74 43 72 65 65 6b CreamCreditCreek 00019e80: 43 72 65 77 43 72 69 63 6b 65 74 43 72 69 6d 65 CrewCricketCrime 00019e90: 43 72 69 73 70 43 72 69 74 69 63 43 72 6f 70 43 CrispCriticCropC 00019ea0: 72 6f 73 73 43 72 6f 75 63 68 43 72 6f 77 64 43 rossCrouchCrowdC 00019eb0: 72 75 63 69 61 6c 43 72 75 65 6c 43 72 75 69 73 rucialCruelCruis 00019ec0: 65 43 72 75 6d 62 6c 65 43 72 75 6e 63 68 43 72 eCrumbleCrunchCr 00019ed0: 75 73 68 43 72 79 43 72 79 73 74 61 6c 43 75 62 ushCryCrystalCub 00019ee0: 65 43 75 6c 74 75 72 65 43 75 70 43 75 70 62 6f eCultureCupCupbo 00019ef0: 61 72 64 43 75 72 69 6f 75 73 43 75 72 72 65 6e ardCuriousCurren 00019f00: 74 43 75 72 74 61 69 6e 43 75 72 76 65 43 75 73 tCurtainCurveCus 00019f10: 68 69 6f 6e 43 75 73 74 6f 6d 43 75 74 65 43 79 hionCustomCuteCy 00019f20: 63 6c 65 44 61 64 44 61 6d 61 67 65 44 61 6d 70 cleDadDamageDamp 00019f30: 44 61 6e 63 65 44 61 6e 67 65 72 44 61 72 69 6e DanceDangerDarin 00019f40: 67 44 61 73 68 44 61 75 67 68 74 65 72 44 61 77 gDashDaughterDaw 00019f50: 6e 44 61 79 44 65 61 6c 44 65 62 61 74 65 44 65 nDayDealDebateDe 00019f60: 62 72 69 73 44 65 63 61 64 65 44 65 63 65 6d 62 brisDecadeDecemb 00019f70: 65 72 44 65 63 69 64 65 44 65 63 6c 69 6e 65 44 erDecideDeclineD 00019f80: 65 63 6f 72 61 74 65 44 65 63 72 65 61 73 65 44 ecorateDecreaseD 00019f90: 65 65 72 44 65 66 65 6e 73 65 44 65 66 69 6e 65 eerDefenseDefine 00019fa0: 44 65 66 79 44 65 67 72 65 65 44 65 6c 61 79 44 DefyDegreeDelayD 00019fb0: 65 6c 69 76 65 72 44 65 6d 61 6e 64 44 65 6d 69 eliverDemandDemi 00019fc0: 73 65 44 65 6e 69 61 6c 44 65 6e 74 69 73 74 44 seDenialDentistD 00019fd0: 65 6e 79 44 65 70 61 72 74 44 65 70 65 6e 64 44 enyDepartDependD 00019fe0: 65 70 6f 73 69 74 44 65 70 74 68 44 65 70 75 74 epositDepthDeput 00019ff0: 79 44 65 72 69 76 65 44 65 73 63 72 69 62 65 44 yDeriveDescribeD 0001a000: 65 73 65 72 74 44 65 73 69 67 6e 44 65 73 6b 44 esertDesignDeskD 0001a010: 65 73 70 61 69 72 44 65 73 74 72 6f 79 44 65 74 espairDestroyDet 0001a020: 61 69 6c 44 65 74 65 63 74 44 65 76 65 6c 6f 70 ailDetectDevelop 0001a030: 44 65 76 69 63 65 44 65 76 6f 74 65 44 69 61 67 DeviceDevoteDiag 0001a040: 72 61 6d 44 69 61 6c 44 69 61 6d 6f 6e 64 44 69 ramDialDiamondDi 0001a050: 61 72 79 44 69 63 65 44 69 65 73 65 6c 44 69 65 aryDiceDieselDie 0001a060: 74 44 69 66 66 65 72 44 69 67 69 74 61 6c 44 69 tDifferDigitalDi 0001a070: 67 6e 69 74 79 44 69 6c 65 6d 6d 61 44 69 6e 6e gnityDilemmaDinn 0001a080: 65 72 44 69 6e 6f 73 61 75 72 44 69 72 65 63 74 erDinosaurDirect 0001a090: 44 69 72 74 44 69 73 61 67 72 65 65 44 69 73 63 DirtDisagreeDisc 0001a0a0: 6f 76 65 72 44 69 73 65 61 73 65 44 69 73 68 44 overDiseaseDishD 0001a0b0: 69 73 6d 69 73 73 44 69 73 6f 72 64 65 72 44 69 ismissDisorderDi 0001a0c0: 73 70 6c 61 79 44 69 73 74 61 6e 63 65 44 69 76 splayDistanceDiv 0001a0d0: 65 72 74 44 69 76 69 64 65 44 69 76 6f 72 63 65 ertDivideDivorce 0001a0e0: 44 69 7a 7a 79 44 6f 63 74 6f 72 44 6f 63 75 6d DizzyDoctorDocum 0001a0f0: 65 6e 74 44 6f 67 44 6f 6c 6c 44 6f 6c 70 68 69 entDogDollDolphi 0001a100: 6e 44 6f 6d 61 69 6e 44 6f 6e 61 74 65 44 6f 6e nDomainDonateDon 0001a110: 6b 65 79 44 6f 6e 6f 72 44 6f 6f 72 44 6f 73 65 keyDonorDoorDose 0001a120: 44 6f 75 62 6c 65 44 6f 76 65 44 72 61 66 74 44 DoubleDoveDraftD 0001a130: 72 61 67 6f 6e 44 72 61 6d 61 44 72 61 73 74 69 ragonDramaDrasti 0001a140: 63 44 72 61 77 44 72 65 61 6d 44 72 65 73 73 44 cDrawDreamDressD 0001a150: 72 69 66 74 44 72 69 6c 6c 44 72 69 6e 6b 44 72 riftDrillDrinkDr 0001a160: 69 70 44 72 69 76 65 44 72 6f 70 44 72 75 6d 44 ipDriveDropDrumD 0001a170: 72 79 44 75 63 6b 44 75 6d 62 44 75 6e 65 44 75 ryDuckDumbDuneDu 0001a180: 72 69 6e 67 44 75 73 74 44 75 74 63 68 44 75 74 ringDustDutchDut 0001a190: 79 44 77 61 72 66 44 79 6e 61 6d 69 63 45 61 67 yDwarfDynamicEag 0001a1a0: 65 72 45 61 67 6c 65 45 61 72 6c 79 45 61 72 6e erEagleEarlyEarn 0001a1b0: 45 61 72 74 68 45 61 73 69 6c 79 45 61 73 74 45 EarthEasilyEastE 0001a1c0: 61 73 79 45 63 68 6f 45 63 6f 6c 6f 67 79 45 63 asyEchoEcologyEc 0001a1d0: 6f 6e 6f 6d 79 45 64 67 65 45 64 69 74 45 64 75 onomyEdgeEditEdu 0001a1e0: 63 61 74 65 45 66 66 6f 72 74 45 67 67 45 69 67 cateEffortEggEig 0001a1f0: 68 74 45 69 74 68 65 72 45 6c 62 6f 77 45 6c 64 htEitherElbowEld 0001a200: 65 72 45 6c 65 63 74 72 69 63 45 6c 65 67 61 6e erElectricElegan 0001a210: 74 45 6c 65 6d 65 6e 74 45 6c 65 70 68 61 6e 74 tElementElephant 0001a220: 45 6c 65 76 61 74 6f 72 45 6c 69 74 65 45 6c 73 ElevatorEliteEls 0001a230: 65 45 6d 62 61 72 6b 45 6d 62 6f 64 79 45 6d 62 eEmbarkEmbodyEmb 0001a240: 72 61 63 65 45 6d 65 72 67 65 45 6d 6f 74 69 6f raceEmergeEmotio 0001a250: 6e 45 6d 70 6c 6f 79 45 6d 70 6f 77 65 72 45 6d nEmployEmpowerEm 0001a260: 70 74 79 45 6e 61 62 6c 65 45 6e 61 63 74 45 6e ptyEnableEnactEn 0001a270: 64 45 6e 64 6c 65 73 73 45 6e 64 6f 72 73 65 45 dEndlessEndorseE 0001a280: 6e 65 6d 79 45 6e 65 72 67 79 45 6e 66 6f 72 63 nemyEnergyEnforc 0001a290: 65 45 6e 67 61 67 65 45 6e 67 69 6e 65 45 6e 68 eEngageEngineEnh 0001a2a0: 61 6e 63 65 45 6e 6a 6f 79 45 6e 6c 69 73 74 45 anceEnjoyEnlistE 0001a2b0: 6e 6f 75 67 68 45 6e 72 69 63 68 45 6e 72 6f 6c noughEnrichEnrol 0001a2c0: 6c 45 6e 73 75 72 65 45 6e 74 65 72 45 6e 74 69 lEnsureEnterEnti 0001a2d0: 72 65 45 6e 74 72 79 45 6e 76 65 6c 6f 70 65 45 reEntryEnvelopeE 0001a2e0: 70 69 73 6f 64 65 45 71 75 61 6c 45 71 75 69 70 pisodeEqualEquip 0001a2f0: 45 72 61 45 72 61 73 65 45 72 6f 64 65 45 72 6f EraEraseErodeEro 0001a300: 73 69 6f 6e 45 72 72 6f 72 45 72 75 70 74 45 73 sionErrorEruptEs 0001a310: 63 61 70 65 45 73 73 61 79 45 73 73 65 6e 63 65 capeEssayEssence 0001a320: 45 73 74 61 74 65 45 74 65 72 6e 61 6c 45 74 68 EstateEternalEth 0001a330: 69 63 73 45 76 69 64 65 6e 63 65 45 76 69 6c 45 icsEvidenceEvilE 0001a340: 76 6f 6b 65 45 76 6f 6c 76 65 45 78 61 63 74 45 vokeEvolveExactE 0001a350: 78 61 6d 70 6c 65 45 78 63 65 73 73 45 78 63 68 xampleExcessExch 0001a360: 61 6e 67 65 45 78 63 69 74 65 45 78 63 6c 75 64 angeExciteExclud 0001a370: 65 45 78 63 75 73 65 45 78 65 63 75 74 65 45 78 eExcuseExecuteEx 0001a380: 65 72 63 69 73 65 45 78 68 61 75 73 74 45 78 68 erciseExhaustExh 0001a390: 69 62 69 74 45 78 69 6c 65 45 78 69 73 74 45 78 ibitExileExistEx 0001a3a0: 69 74 45 78 6f 74 69 63 45 78 70 61 6e 64 45 78 itExoticExpandEx 0001a3b0: 70 65 63 74 45 78 70 69 72 65 45 78 70 6c 61 69 pectExpireExplai 0001a3c0: 6e 45 78 70 6f 73 65 45 78 70 72 65 73 73 45 78 nExposeExpressEx 0001a3d0: 74 65 6e 64 45 78 74 72 61 45 79 65 45 79 65 62 tendExtraEyeEyeb 0001a3e0: 72 6f 77 46 61 62 72 69 63 46 61 63 65 46 61 63 rowFabricFaceFac 0001a3f0: 75 6c 74 79 46 61 64 65 46 61 69 6e 74 46 61 69 ultyFadeFaintFai 0001a400: 74 68 46 61 6c 6c 46 61 6c 73 65 46 61 6d 65 46 thFallFalseFameF 0001a410: 61 6d 69 6c 79 46 61 6d 6f 75 73 46 61 6e 46 61 amilyFamousFanFa 0001a420: 6e 63 79 46 61 6e 74 61 73 79 46 61 72 6d 46 61 ncyFantasyFarmFa 0001a430: 73 68 69 6f 6e 46 61 74 46 61 74 61 6c 46 61 74 shionFatFatalFat 0001a440: 68 65 72 46 61 74 69 67 75 65 46 61 75 6c 74 46 herFatigueFaultF 0001a450: 61 76 6f 72 69 74 65 46 65 61 74 75 72 65 46 65 avoriteFeatureFe 0001a460: 62 72 75 61 72 79 46 65 64 65 72 61 6c 46 65 65 bruaryFederalFee 0001a470: 46 65 65 64 46 65 65 6c 46 65 6d 61 6c 65 46 65 FeedFeelFemaleFe 0001a480: 6e 63 65 46 65 73 74 69 76 61 6c 46 65 74 63 68 nceFestivalFetch 0001a490: 46 65 76 65 72 46 65 77 46 69 62 65 72 46 69 63 FeverFewFiberFic 0001a4a0: 74 69 6f 6e 46 69 65 6c 64 46 69 67 75 72 65 46 tionFieldFigureF 0001a4b0: 69 6c 65 46 69 6c 6d 46 69 6c 74 65 72 46 69 6e ileFilmFilterFin 0001a4c0: 61 6c 46 69 6e 64 46 69 6e 65 46 69 6e 67 65 72 alFindFineFinger 0001a4d0: 46 69 6e 69 73 68 46 69 72 65 46 69 72 6d 46 69 FinishFireFirmFi 0001a4e0: 72 73 74 46 69 73 63 61 6c 46 69 73 68 46 69 74 rstFiscalFishFit 0001a4f0: 46 69 74 6e 65 73 73 46 69 78 46 6c 61 67 46 6c FitnessFixFlagFl 0001a500: 61 6d 65 46 6c 61 73 68 46 6c 61 74 46 6c 61 76 ameFlashFlatFlav 0001a510: 6f 72 46 6c 65 65 46 6c 69 67 68 74 46 6c 69 70 orFleeFlightFlip 0001a520: 46 6c 6f 61 74 46 6c 6f 63 6b 46 6c 6f 6f 72 46 FloatFlockFloorF 0001a530: 6c 6f 77 65 72 46 6c 75 69 64 46 6c 75 73 68 46 lowerFluidFlushF 0001a540: 6c 79 46 6f 61 6d 46 6f 63 75 73 46 6f 67 46 6f lyFoamFocusFogFo 0001a550: 69 6c 46 6f 6c 64 46 6f 6c 6c 6f 77 46 6f 6f 64 ilFoldFollowFood 0001a560: 46 6f 6f 74 46 6f 72 63 65 46 6f 72 65 73 74 46 FootForceForestF 0001a570: 6f 72 67 65 74 46 6f 72 6b 46 6f 72 74 75 6e 65 orgetForkFortune 0001a580: 46 6f 72 75 6d 46 6f 72 77 61 72 64 46 6f 73 73 ForumForwardFoss 0001a590: 69 6c 46 6f 73 74 65 72 46 6f 75 6e 64 46 6f 78 ilFosterFoundFox 0001a5a0: 46 72 61 67 69 6c 65 46 72 61 6d 65 46 72 65 71 FragileFrameFreq 0001a5b0: 75 65 6e 74 46 72 65 73 68 46 72 69 65 6e 64 46 uentFreshFriendF 0001a5c0: 72 69 6e 67 65 46 72 6f 67 46 72 6f 6e 74 46 72 ringeFrogFrontFr 0001a5d0: 6f 73 74 46 72 6f 77 6e 46 72 6f 7a 65 6e 46 72 ostFrownFrozenFr 0001a5e0: 75 69 74 46 75 65 6c 46 75 6e 46 75 6e 6e 79 46 uitFuelFunFunnyF 0001a5f0: 75 72 6e 61 63 65 46 75 72 79 46 75 74 75 72 65 urnaceFuryFuture 0001a600: 47 61 64 67 65 74 47 61 69 6e 47 61 6c 61 78 79 GadgetGainGalaxy 0001a610: 47 61 6c 6c 65 72 79 47 61 6d 65 47 61 70 47 61 GalleryGameGapGa 0001a620: 72 61 67 65 47 61 72 62 61 67 65 47 61 72 64 65 rageGarbageGarde 0001a630: 6e 47 61 72 6c 69 63 47 61 72 6d 65 6e 74 47 61 nGarlicGarmentGa 0001a640: 73 47 61 73 70 47 61 74 65 47 61 74 68 65 72 47 sGaspGateGatherG 0001a650: 61 75 67 65 47 61 7a 65 47 65 6e 65 72 61 6c 47 augeGazeGeneralG 0001a660: 65 6e 69 75 73 47 65 6e 72 65 47 65 6e 74 6c 65 eniusGenreGentle 0001a670: 47 65 6e 75 69 6e 65 47 65 73 74 75 72 65 47 68 GenuineGestureGh 0001a680: 6f 73 74 47 69 61 6e 74 47 69 66 74 47 69 67 67 ostGiantGiftGigg 0001a690: 6c 65 47 69 6e 67 65 72 47 69 72 61 66 66 65 47 leGingerGiraffeG 0001a6a0: 69 72 6c 47 69 76 65 47 6c 61 64 47 6c 61 6e 63 irlGiveGladGlanc 0001a6b0: 65 47 6c 61 72 65 47 6c 61 73 73 47 6c 69 64 65 eGlareGlassGlide 0001a6c0: 47 6c 69 6d 70 73 65 47 6c 6f 62 65 47 6c 6f 6f GlimpseGlobeGloo 0001a6d0: 6d 47 6c 6f 72 79 47 6c 6f 76 65 47 6c 6f 77 47 mGloryGloveGlowG 0001a6e0: 6c 75 65 47 6f 61 74 47 6f 64 64 65 73 73 47 6f lueGoatGoddessGo 0001a6f0: 6c 64 47 6f 6f 64 47 6f 6f 73 65 47 6f 72 69 6c ldGoodGooseGoril 0001a700: 6c 61 47 6f 73 70 65 6c 47 6f 73 73 69 70 47 6f laGospelGossipGo 0001a710: 76 65 72 6e 47 6f 77 6e 47 72 61 62 47 72 61 63 vernGownGrabGrac 0001a720: 65 47 72 61 69 6e 47 72 61 6e 74 47 72 61 70 65 eGrainGrantGrape 0001a730: 47 72 61 73 73 47 72 61 76 69 74 79 47 72 65 61 GrassGravityGrea 0001a740: 74 47 72 65 65 6e 47 72 69 64 47 72 69 65 66 47 tGreenGridGriefG 0001a750: 72 69 74 47 72 6f 63 65 72 79 47 72 6f 75 70 47 ritGroceryGroupG 0001a760: 72 6f 77 47 72 75 6e 74 47 75 61 72 64 47 75 65 rowGruntGuardGue 0001a770: 73 73 47 75 69 64 65 47 75 69 6c 74 47 75 69 74 ssGuideGuiltGuit 0001a780: 61 72 47 75 6e 47 79 6d 48 61 62 69 74 48 61 69 arGunGymHabitHai 0001a790: 72 48 61 6c 66 48 61 6d 6d 65 72 48 61 6d 73 74 rHalfHammerHamst 0001a7a0: 65 72 48 61 6e 64 48 61 70 70 79 48 61 72 62 6f erHandHappyHarbo 0001a7b0: 72 48 61 72 64 48 61 72 73 68 48 61 72 76 65 73 rHardHarshHarves 0001a7c0: 74 48 61 74 48 61 76 65 48 61 77 6b 48 61 7a 61 tHatHaveHawkHaza 0001a7d0: 72 64 48 65 61 64 48 65 61 6c 74 68 48 65 61 72 rdHeadHealthHear 0001a7e0: 74 48 65 61 76 79 48 65 64 67 65 68 6f 67 48 65 tHeavyHedgehogHe 0001a7f0: 69 67 68 74 48 65 6c 6c 6f 48 65 6c 6d 65 74 48 ightHelloHelmetH 0001a800: 65 6c 70 48 65 6e 48 65 72 6f 48 69 64 64 65 6e elpHenHeroHidden 0001a810: 48 69 67 68 48 69 6c 6c 48 69 6e 74 48 69 70 48 HighHillHintHipH 0001a820: 69 72 65 48 69 73 74 6f 72 79 48 6f 62 62 79 48 ireHistoryHobbyH 0001a830: 6f 63 6b 65 79 48 6f 6c 64 48 6f 6c 65 48 6f 6c ockeyHoldHoleHol 0001a840: 69 64 61 79 48 6f 6c 6c 6f 77 48 6f 6d 65 48 6f idayHollowHomeHo 0001a850: 6e 65 79 48 6f 6f 64 48 6f 70 65 48 6f 72 6e 48 neyHoodHopeHornH 0001a860: 6f 72 72 6f 72 48 6f 72 73 65 48 6f 73 70 69 74 orrorHorseHospit 0001a870: 61 6c 48 6f 73 74 48 6f 74 65 6c 48 6f 75 72 48 alHostHotelHourH 0001a880: 6f 76 65 72 48 75 62 48 75 67 65 48 75 6d 61 6e overHubHugeHuman 0001a890: 48 75 6d 62 6c 65 48 75 6d 6f 72 48 75 6e 64 72 HumbleHumorHundr 0001a8a0: 65 64 48 75 6e 67 72 79 48 75 6e 74 48 75 72 64 edHungryHuntHurd 0001a8b0: 6c 65 48 75 72 72 79 48 75 72 74 48 75 73 62 61 leHurryHurtHusba 0001a8c0: 6e 64 48 79 62 72 69 64 49 63 65 49 63 6f 6e 49 ndHybridIceIconI 0001a8d0: 64 65 61 49 64 65 6e 74 69 66 79 49 64 6c 65 49 deaIdentifyIdleI 0001a8e0: 67 6e 6f 72 65 49 6c 6c 49 6c 6c 65 67 61 6c 49 gnoreIllIllegalI 0001a8f0: 6c 6c 6e 65 73 73 49 6d 61 67 65 49 6d 69 74 61 llnessImageImita 0001a900: 74 65 49 6d 6d 65 6e 73 65 49 6d 6d 75 6e 65 49 teImmenseImmuneI 0001a910: 6d 70 61 63 74 49 6d 70 6f 73 65 49 6d 70 72 6f mpactImposeImpro 0001a920: 76 65 49 6d 70 75 6c 73 65 49 6e 63 68 49 6e 63 veImpulseInchInc 0001a930: 6c 75 64 65 49 6e 63 6f 6d 65 49 6e 63 72 65 61 ludeIncomeIncrea 0001a940: 73 65 49 6e 64 65 78 49 6e 64 69 63 61 74 65 49 seIndexIndicateI 0001a950: 6e 64 6f 6f 72 49 6e 64 75 73 74 72 79 49 6e 66 ndoorIndustryInf 0001a960: 61 6e 74 49 6e 66 6c 69 63 74 49 6e 66 6f 72 6d antInflictInform 0001a970: 49 6e 68 61 6c 65 49 6e 68 65 72 69 74 49 6e 69 InhaleInheritIni 0001a980: 74 69 61 6c 49 6e 6a 65 63 74 49 6e 6a 75 72 79 tialInjectInjury 0001a990: 49 6e 6d 61 74 65 49 6e 6e 65 72 49 6e 6e 6f 63 InmateInnerInnoc 0001a9a0: 65 6e 74 49 6e 70 75 74 49 6e 71 75 69 72 79 49 entInputInquiryI 0001a9b0: 6e 73 61 6e 65 49 6e 73 65 63 74 49 6e 73 69 64 nsaneInsectInsid 0001a9c0: 65 49 6e 73 70 69 72 65 49 6e 73 74 61 6c 6c 49 eInspireInstallI 0001a9d0: 6e 74 61 63 74 49 6e 74 65 72 65 73 74 49 6e 74 ntactInterestInt 0001a9e0: 6f 49 6e 76 65 73 74 49 6e 76 69 74 65 49 6e 76 oInvestInviteInv 0001a9f0: 6f 6c 76 65 49 72 6f 6e 49 73 6c 61 6e 64 49 73 olveIronIslandIs 0001aa00: 6f 6c 61 74 65 49 73 73 75 65 49 74 65 6d 49 76 olateIssueItemIv 0001aa10: 6f 72 79 4a 61 63 6b 65 74 4a 61 67 75 61 72 4a oryJacketJaguarJ 0001aa20: 61 72 4a 61 7a 7a 4a 65 61 6c 6f 75 73 4a 65 61 arJazzJealousJea 0001aa30: 6e 73 4a 65 6c 6c 79 4a 65 77 65 6c 4a 6f 62 4a nsJellyJewelJobJ 0001aa40: 6f 69 6e 4a 6f 6b 65 4a 6f 75 72 6e 65 79 4a 6f oinJokeJourneyJo 0001aa50: 79 4a 75 64 67 65 4a 75 69 63 65 4a 75 6d 70 4a yJudgeJuiceJumpJ 0001aa60: 75 6e 67 6c 65 4a 75 6e 69 6f 72 4a 75 6e 6b 4a ungleJuniorJunkJ 0001aa70: 75 73 74 4b 61 6e 67 61 72 6f 6f 4b 65 65 6e 4b ustKangarooKeenK 0001aa80: 65 65 70 4b 65 74 63 68 75 70 4b 65 79 4b 69 63 eepKetchupKeyKic 0001aa90: 6b 4b 69 64 4b 69 64 6e 65 79 4b 69 6e 64 4b 69 kKidKidneyKindKi 0001aaa0: 6e 67 64 6f 6d 4b 69 73 73 4b 69 74 4b 69 74 63 ngdomKissKitKitc 0001aab0: 68 65 6e 4b 69 74 65 4b 69 74 74 65 6e 4b 69 77 henKiteKittenKiw 0001aac0: 69 4b 6e 65 65 4b 6e 69 66 65 4b 6e 6f 63 6b 4b iKneeKnifeKnockK 0001aad0: 6e 6f 77 4c 61 62 4c 61 62 65 6c 4c 61 62 6f 72 nowLabLabelLabor 0001aae0: 4c 61 64 64 65 72 4c 61 64 79 4c 61 6b 65 4c 61 LadderLadyLakeLa 0001aaf0: 6d 70 4c 61 6e 67 75 61 67 65 4c 61 70 74 6f 70 mpLanguageLaptop 0001ab00: 4c 61 72 67 65 4c 61 74 65 72 4c 61 74 69 6e 4c LargeLaterLatinL 0001ab10: 61 75 67 68 4c 61 75 6e 64 72 79 4c 61 76 61 4c aughLaundryLavaL 0001ab20: 61 77 4c 61 77 6e 4c 61 77 73 75 69 74 4c 61 79 awLawnLawsuitLay 0001ab30: 65 72 4c 61 7a 79 4c 65 61 64 65 72 4c 65 61 66 erLazyLeaderLeaf 0001ab40: 4c 65 61 72 6e 4c 65 61 76 65 4c 65 63 74 75 72 LearnLeaveLectur 0001ab50: 65 4c 65 66 74 4c 65 67 4c 65 67 61 6c 4c 65 67 eLeftLegLegalLeg 0001ab60: 65 6e 64 4c 65 69 73 75 72 65 4c 65 6d 6f 6e 4c endLeisureLemonL 0001ab70: 65 6e 64 4c 65 6e 67 74 68 4c 65 6e 73 4c 65 6f endLengthLensLeo 0001ab80: 70 61 72 64 4c 65 73 73 6f 6e 4c 65 74 74 65 72 pardLessonLetter 0001ab90: 4c 65 76 65 6c 4c 69 61 72 4c 69 62 65 72 74 79 LevelLiarLiberty 0001aba0: 4c 69 62 72 61 72 79 4c 69 63 65 6e 73 65 4c 69 LibraryLicenseLi 0001abb0: 66 65 4c 69 66 74 4c 69 67 68 74 4c 69 6b 65 4c feLiftLightLikeL 0001abc0: 69 6d 62 4c 69 6d 69 74 4c 69 6e 6b 4c 69 6f 6e imbLimitLinkLion 0001abd0: 4c 69 71 75 69 64 4c 69 73 74 4c 69 74 74 6c 65 LiquidListLittle 0001abe0: 4c 69 76 65 4c 69 7a 61 72 64 4c 6f 61 64 4c 6f LiveLizardLoadLo 0001abf0: 61 6e 4c 6f 62 73 74 65 72 4c 6f 63 61 6c 4c 6f anLobsterLocalLo 0001ac00: 63 6b 4c 6f 67 69 63 4c 6f 6e 65 6c 79 4c 6f 6e ckLogicLonelyLon 0001ac10: 67 4c 6f 6f 70 4c 6f 74 74 65 72 79 4c 6f 75 64 gLoopLotteryLoud 0001ac20: 4c 6f 75 6e 67 65 4c 6f 76 65 4c 6f 79 61 6c 4c LoungeLoveLoyalL 0001ac30: 75 63 6b 79 4c 75 67 67 61 67 65 4c 75 6d 62 65 uckyLuggageLumbe 0001ac40: 72 4c 75 6e 61 72 4c 75 6e 63 68 4c 75 78 75 72 rLunarLunchLuxur 0001ac50: 79 4c 79 72 69 63 73 4d 61 63 68 69 6e 65 4d 61 yLyricsMachineMa 0001ac60: 64 4d 61 67 69 63 4d 61 67 6e 65 74 4d 61 69 64 dMagicMagnetMaid 0001ac70: 4d 61 69 6c 4d 61 69 6e 4d 61 6a 6f 72 4d 61 6b MailMainMajorMak 0001ac80: 65 4d 61 6d 6d 61 6c 4d 61 6e 4d 61 6e 61 67 65 eMammalManManage 0001ac90: 4d 61 6e 64 61 74 65 4d 61 6e 67 6f 4d 61 6e 73 MandateMangoMans 0001aca0: 69 6f 6e 4d 61 6e 75 61 6c 4d 61 70 6c 65 4d 61 ionManualMapleMa 0001acb0: 72 62 6c 65 4d 61 72 63 68 4d 61 72 67 69 6e 4d rbleMarchMarginM 0001acc0: 61 72 69 6e 65 4d 61 72 6b 65 74 4d 61 72 72 69 arineMarketMarri 0001acd0: 61 67 65 4d 61 73 6b 4d 61 73 73 4d 61 73 74 65 ageMaskMassMaste 0001ace0: 72 4d 61 74 63 68 4d 61 74 65 72 69 61 6c 4d 61 rMatchMaterialMa 0001acf0: 74 68 4d 61 74 72 69 78 4d 61 74 74 65 72 4d 61 thMatrixMatterMa 0001ad00: 78 69 6d 75 6d 4d 61 7a 65 4d 65 61 64 6f 77 4d ximumMazeMeadowM 0001ad10: 65 61 6e 4d 65 61 73 75 72 65 4d 65 61 74 4d 65 eanMeasureMeatMe 0001ad20: 63 68 61 6e 69 63 4d 65 64 61 6c 4d 65 64 69 61 chanicMedalMedia 0001ad30: 4d 65 6c 6f 64 79 4d 65 6c 74 4d 65 6d 62 65 72 MelodyMeltMember 0001ad40: 4d 65 6d 6f 72 79 4d 65 6e 74 69 6f 6e 4d 65 6e MemoryMentionMen 0001ad50: 75 4d 65 72 63 79 4d 65 72 67 65 4d 65 72 69 74 uMercyMergeMerit 0001ad60: 4d 65 72 72 79 4d 65 73 68 4d 65 73 73 61 67 65 MerryMeshMessage 0001ad70: 4d 65 74 61 6c 4d 65 74 68 6f 64 4d 69 64 64 6c MetalMethodMiddl 0001ad80: 65 4d 69 64 6e 69 67 68 74 4d 69 6c 6b 4d 69 6c eMidnightMilkMil 0001ad90: 6c 69 6f 6e 4d 69 6d 69 63 4d 69 6e 64 4d 69 6e lionMimicMindMin 0001ada0: 69 6d 75 6d 4d 69 6e 6f 72 4d 69 6e 75 74 65 4d imumMinorMinuteM 0001adb0: 69 72 61 63 6c 65 4d 69 72 72 6f 72 4d 69 73 65 iracleMirrorMise 0001adc0: 72 79 4d 69 73 73 4d 69 73 74 61 6b 65 4d 69 78 ryMissMistakeMix 0001add0: 4d 69 78 65 64 4d 69 78 74 75 72 65 4d 6f 62 69 MixedMixtureMobi 0001ade0: 6c 65 4d 6f 64 65 6c 4d 6f 64 69 66 79 4d 6f 6d leModelModifyMom 0001adf0: 4d 6f 6d 65 6e 74 4d 6f 6e 69 74 6f 72 4d 6f 6e MomentMonitorMon 0001ae00: 6b 65 79 4d 6f 6e 73 74 65 72 4d 6f 6e 74 68 4d keyMonsterMonthM 0001ae10: 6f 6f 6e 4d 6f 72 61 6c 4d 6f 72 65 4d 6f 72 6e oonMoralMoreMorn 0001ae20: 69 6e 67 4d 6f 73 71 75 69 74 6f 4d 6f 74 68 65 ingMosquitoMothe 0001ae30: 72 4d 6f 74 69 6f 6e 4d 6f 74 6f 72 4d 6f 75 6e rMotionMotorMoun 0001ae40: 74 61 69 6e 4d 6f 75 73 65 4d 6f 76 65 4d 6f 76 tainMouseMoveMov 0001ae50: 69 65 4d 75 63 68 4d 75 66 66 69 6e 4d 75 6c 65 ieMuchMuffinMule 0001ae60: 4d 75 6c 74 69 70 6c 79 4d 75 73 63 6c 65 4d 75 MultiplyMuscleMu 0001ae70: 73 65 75 6d 4d 75 73 68 72 6f 6f 6d 4d 75 73 69 seumMushroomMusi 0001ae80: 63 4d 75 73 74 4d 75 74 75 61 6c 4d 79 73 65 6c cMustMutualMysel 0001ae90: 66 4d 79 73 74 65 72 79 4d 79 74 68 4e 61 69 76 fMysteryMythNaiv 0001aea0: 65 4e 61 6d 65 4e 61 70 6b 69 6e 4e 61 72 72 6f eNameNapkinNarro 0001aeb0: 77 4e 61 73 74 79 4e 61 74 69 6f 6e 4e 61 74 75 wNastyNationNatu 0001aec0: 72 65 4e 65 61 72 4e 65 63 6b 4e 65 65 64 4e 65 reNearNeckNeedNe 0001aed0: 67 61 74 69 76 65 4e 65 67 6c 65 63 74 4e 65 69 gativeNeglectNei 0001aee0: 74 68 65 72 4e 65 70 68 65 77 4e 65 72 76 65 4e therNephewNerveN 0001aef0: 65 73 74 4e 65 74 4e 65 74 77 6f 72 6b 4e 65 75 estNetNetworkNeu 0001af00: 74 72 61 6c 4e 65 76 65 72 4e 65 77 73 4e 65 78 tralNeverNewsNex 0001af10: 74 4e 69 63 65 4e 69 67 68 74 4e 6f 62 6c 65 4e tNiceNightNobleN 0001af20: 6f 69 73 65 4e 6f 6d 69 6e 65 65 4e 6f 6f 64 6c oiseNomineeNoodl 0001af30: 65 4e 6f 72 6d 61 6c 4e 6f 72 74 68 4e 6f 73 65 eNormalNorthNose 0001af40: 4e 6f 74 61 62 6c 65 4e 6f 74 65 4e 6f 74 68 69 NotableNoteNothi 0001af50: 6e 67 4e 6f 74 69 63 65 4e 6f 76 65 6c 4e 6f 77 ngNoticeNovelNow 0001af60: 4e 75 63 6c 65 61 72 4e 75 6d 62 65 72 4e 75 72 NuclearNumberNur 0001af70: 73 65 4e 75 74 4f 61 6b 4f 62 65 79 4f 62 6a 65 seNutOakObeyObje 0001af80: 63 74 4f 62 6c 69 67 65 4f 62 73 63 75 72 65 4f ctObligeObscureO 0001af90: 62 73 65 72 76 65 4f 62 74 61 69 6e 4f 62 76 69 bserveObtainObvi 0001afa0: 6f 75 73 4f 63 63 75 72 4f 63 65 61 6e 4f 63 74 ousOccurOceanOct 0001afb0: 6f 62 65 72 4f 64 6f 72 4f 66 66 4f 66 66 65 72 oberOdorOffOffer 0001afc0: 4f 66 66 69 63 65 4f 66 74 65 6e 4f 69 6c 4f 6b OfficeOftenOilOk 0001afd0: 61 79 4f 6c 64 4f 6c 69 76 65 4f 6c 79 6d 70 69 ayOldOliveOlympi 0001afe0: 63 4f 6d 69 74 4f 6e 63 65 4f 6e 65 4f 6e 69 6f cOmitOnceOneOnio 0001aff0: 6e 4f 6e 6c 69 6e 65 4f 6e 6c 79 4f 70 65 6e 4f nOnlineOnlyOpenO 0001b000: 70 65 72 61 4f 70 69 6e 69 6f 6e 4f 70 70 6f 73 peraOpinionOppos 0001b010: 65 4f 70 74 69 6f 6e 4f 72 61 6e 67 65 4f 72 62 eOptionOrangeOrb 0001b020: 69 74 4f 72 63 68 61 72 64 4f 72 64 65 72 4f 72 itOrchardOrderOr 0001b030: 64 69 6e 61 72 79 4f 72 67 61 6e 4f 72 69 65 6e dinaryOrganOrien 0001b040: 74 4f 72 69 67 69 6e 61 6c 4f 72 70 68 61 6e 4f tOriginalOrphanO 0001b050: 73 74 72 69 63 68 4f 74 68 65 72 4f 75 74 64 6f strichOtherOutdo 0001b060: 6f 72 4f 75 74 65 72 4f 75 74 70 75 74 4f 75 74 orOuterOutputOut 0001b070: 73 69 64 65 4f 76 61 6c 4f 76 65 6e 4f 76 65 72 sideOvalOvenOver 0001b080: 4f 77 6e 4f 77 6e 65 72 4f 78 79 67 65 6e 4f 79 OwnOwnerOxygenOy 0001b090: 73 74 65 72 4f 7a 6f 6e 65 50 61 63 74 50 61 64 sterOzonePactPad 0001b0a0: 64 6c 65 50 61 67 65 50 61 69 72 50 61 6c 61 63 dlePagePairPalac 0001b0b0: 65 50 61 6c 6d 50 61 6e 64 61 50 61 6e 65 6c 50 ePalmPandaPanelP 0001b0c0: 61 6e 69 63 50 61 6e 74 68 65 72 50 61 70 65 72 anicPantherPaper 0001b0d0: 50 61 72 61 64 65 50 61 72 65 6e 74 50 61 72 6b ParadeParentPark 0001b0e0: 50 61 72 72 6f 74 50 61 72 74 79 50 61 73 73 50 ParrotPartyPassP 0001b0f0: 61 74 63 68 50 61 74 68 50 61 74 69 65 6e 74 50 atchPathPatientP 0001b100: 61 74 72 6f 6c 50 61 74 74 65 72 6e 50 61 75 73 atrolPatternPaus 0001b110: 65 50 61 76 65 50 61 79 6d 65 6e 74 50 65 61 63 ePavePaymentPeac 0001b120: 65 50 65 61 6e 75 74 50 65 61 72 50 65 61 73 61 ePeanutPearPeasa 0001b130: 6e 74 50 65 6c 69 63 61 6e 50 65 6e 50 65 6e 61 ntPelicanPenPena 0001b140: 6c 74 79 50 65 6e 63 69 6c 50 65 6f 70 6c 65 50 ltyPencilPeopleP 0001b150: 65 70 70 65 72 50 65 72 66 65 63 74 50 65 72 6d epperPerfectPerm 0001b160: 69 74 50 65 72 73 6f 6e 50 65 74 50 68 6f 6e 65 itPersonPetPhone 0001b170: 50 68 6f 74 6f 50 68 72 61 73 65 50 68 79 73 69 PhotoPhrasePhysi 0001b180: 63 61 6c 50 69 61 6e 6f 50 69 63 6e 69 63 50 69 calPianoPicnicPi 0001b190: 63 74 75 72 65 50 69 65 63 65 50 69 67 50 69 67 cturePiecePigPig 0001b1a0: 65 6f 6e 50 69 6c 6c 50 69 6c 6f 74 50 69 6e 6b eonPillPilotPink 0001b1b0: 50 69 6f 6e 65 65 72 50 69 70 65 50 69 73 74 6f PioneerPipePisto 0001b1c0: 6c 50 69 74 63 68 50 69 7a 7a 61 50 6c 61 63 65 lPitchPizzaPlace 0001b1d0: 50 6c 61 6e 65 74 50 6c 61 73 74 69 63 50 6c 61 PlanetPlasticPla 0001b1e0: 74 65 50 6c 61 79 50 6c 65 61 73 65 50 6c 65 64 tePlayPleasePled 0001b1f0: 67 65 50 6c 75 63 6b 50 6c 75 67 50 6c 75 6e 67 gePluckPlugPlung 0001b200: 65 50 6f 65 6d 50 6f 65 74 50 6f 69 6e 74 50 6f ePoemPoetPointPo 0001b210: 6c 61 72 50 6f 6c 65 50 6f 6c 69 63 65 50 6f 6e larPolePolicePon 0001b220: 64 50 6f 6e 79 50 6f 6f 6c 50 6f 70 75 6c 61 72 dPonyPoolPopular 0001b230: 50 6f 72 74 69 6f 6e 50 6f 73 69 74 69 6f 6e 50 PortionPositionP 0001b240: 6f 73 73 69 62 6c 65 50 6f 73 74 50 6f 74 61 74 ossiblePostPotat 0001b250: 6f 50 6f 74 74 65 72 79 50 6f 76 65 72 74 79 50 oPotteryPovertyP 0001b260: 6f 77 64 65 72 50 6f 77 65 72 50 72 61 63 74 69 owderPowerPracti 0001b270: 63 65 50 72 61 69 73 65 50 72 65 64 69 63 74 50 cePraisePredictP 0001b280: 72 65 66 65 72 50 72 65 70 61 72 65 50 72 65 73 referPreparePres 0001b290: 65 6e 74 50 72 65 74 74 79 50 72 65 76 65 6e 74 entPrettyPrevent 0001b2a0: 50 72 69 63 65 50 72 69 64 65 50 72 69 6d 61 72 PricePridePrimar 0001b2b0: 79 50 72 69 6e 74 50 72 69 6f 72 69 74 79 50 72 yPrintPriorityPr 0001b2c0: 69 73 6f 6e 50 72 69 76 61 74 65 50 72 69 7a 65 isonPrivatePrize 0001b2d0: 50 72 6f 62 6c 65 6d 50 72 6f 63 65 73 73 50 72 ProblemProcessPr 0001b2e0: 6f 64 75 63 65 50 72 6f 66 69 74 50 72 6f 67 72 oduceProfitProgr 0001b2f0: 61 6d 50 72 6f 6a 65 63 74 50 72 6f 6d 6f 74 65 amProjectPromote 0001b300: 50 72 6f 6f 66 50 72 6f 70 65 72 74 79 50 72 6f ProofPropertyPro 0001b310: 73 70 65 72 50 72 6f 74 65 63 74 50 72 6f 75 64 sperProtectProud 0001b320: 50 72 6f 76 69 64 65 50 75 62 6c 69 63 50 75 64 ProvidePublicPud 0001b330: 64 69 6e 67 50 75 6c 6c 50 75 6c 70 50 75 6c 73 dingPullPulpPuls 0001b340: 65 50 75 6d 70 6b 69 6e 50 75 6e 63 68 50 75 70 ePumpkinPunchPup 0001b350: 69 6c 50 75 70 70 79 50 75 72 63 68 61 73 65 50 ilPuppyPurchaseP 0001b360: 75 72 69 74 79 50 75 72 70 6f 73 65 50 75 72 73 urityPurposePurs 0001b370: 65 50 75 73 68 50 75 74 50 75 7a 7a 6c 65 50 79 ePushPutPuzzlePy 0001b380: 72 61 6d 69 64 51 75 61 6c 69 74 79 51 75 61 6e ramidQualityQuan 0001b390: 74 75 6d 51 75 61 72 74 65 72 51 75 65 73 74 69 tumQuarterQuesti 0001b3a0: 6f 6e 51 75 69 63 6b 51 75 69 74 51 75 69 7a 51 onQuickQuitQuizQ 0001b3b0: 75 6f 74 65 52 61 62 62 69 74 52 61 63 63 6f 6f uoteRabbitRaccoo 0001b3c0: 6e 52 61 63 65 52 61 63 6b 52 61 64 61 72 52 61 nRaceRackRadarRa 0001b3d0: 64 69 6f 52 61 69 6c 52 61 69 6e 52 61 69 73 65 dioRailRainRaise 0001b3e0: 52 61 6c 6c 79 52 61 6d 70 52 61 6e 63 68 52 61 RallyRampRanchRa 0001b3f0: 6e 64 6f 6d 52 61 6e 67 65 52 61 70 69 64 52 61 ndomRangeRapidRa 0001b400: 72 65 52 61 74 65 52 61 74 68 65 72 52 61 76 65 reRateRatherRave 0001b410: 6e 52 61 77 52 61 7a 6f 72 52 65 61 64 79 52 65 nRawRazorReadyRe 0001b420: 61 6c 52 65 61 73 6f 6e 52 65 62 65 6c 52 65 62 alReasonRebelReb 0001b430: 75 69 6c 64 52 65 63 61 6c 6c 52 65 63 65 69 76 uildRecallReceiv 0001b440: 65 52 65 63 69 70 65 52 65 63 6f 72 64 52 65 63 eRecipeRecordRec 0001b450: 79 63 6c 65 52 65 64 75 63 65 52 65 66 6c 65 63 ycleReduceReflec 0001b460: 74 52 65 66 6f 72 6d 52 65 66 75 73 65 52 65 67 tReformRefuseReg 0001b470: 69 6f 6e 52 65 67 72 65 74 52 65 67 75 6c 61 72 ionRegretRegular 0001b480: 52 65 6a 65 63 74 52 65 6c 61 78 52 65 6c 65 61 RejectRelaxRelea 0001b490: 73 65 52 65 6c 69 65 66 52 65 6c 79 52 65 6d 61 seReliefRelyRema 0001b4a0: 69 6e 52 65 6d 65 6d 62 65 72 52 65 6d 69 6e 64 inRememberRemind 0001b4b0: 52 65 6d 6f 76 65 52 65 6e 64 65 72 52 65 6e 65 RemoveRenderRene 0001b4c0: 77 52 65 6e 74 52 65 6f 70 65 6e 52 65 70 61 69 wRentReopenRepai 0001b4d0: 72 52 65 70 65 61 74 52 65 70 6c 61 63 65 52 65 rRepeatReplaceRe 0001b4e0: 70 6f 72 74 52 65 71 75 69 72 65 52 65 73 63 75 portRequireRescu 0001b4f0: 65 52 65 73 65 6d 62 6c 65 52 65 73 69 73 74 52 eResembleResistR 0001b500: 65 73 6f 75 72 63 65 52 65 73 70 6f 6e 73 65 52 esourceResponseR 0001b510: 65 73 75 6c 74 52 65 74 69 72 65 52 65 74 72 65 esultRetireRetre 0001b520: 61 74 52 65 74 75 72 6e 52 65 75 6e 69 6f 6e 52 atReturnReunionR 0001b530: 65 76 65 61 6c 52 65 76 69 65 77 52 65 77 61 72 evealReviewRewar 0001b540: 64 52 68 79 74 68 6d 52 69 62 52 69 62 62 6f 6e dRhythmRibRibbon 0001b550: 52 69 63 65 52 69 63 68 52 69 64 65 52 69 64 67 RiceRichRideRidg 0001b560: 65 52 69 66 6c 65 52 69 67 68 74 52 69 67 69 64 eRifleRightRigid 0001b570: 52 69 6e 67 52 69 6f 74 52 69 70 70 6c 65 52 69 RingRiotRippleRi 0001b580: 73 6b 52 69 74 75 61 6c 52 69 76 61 6c 52 69 76 skRitualRivalRiv 0001b590: 65 72 52 6f 61 64 52 6f 61 73 74 52 6f 62 6f 74 erRoadRoastRobot 0001b5a0: 52 6f 62 75 73 74 52 6f 63 6b 65 74 52 6f 6d 61 RobustRocketRoma 0001b5b0: 6e 63 65 52 6f 6f 66 52 6f 6f 6b 69 65 52 6f 6f nceRoofRookieRoo 0001b5c0: 6d 52 6f 73 65 52 6f 74 61 74 65 52 6f 75 67 68 mRoseRotateRough 0001b5d0: 52 6f 75 6e 64 52 6f 75 74 65 52 6f 79 61 6c 52 RoundRouteRoyalR 0001b5e0: 75 62 62 65 72 52 75 64 65 52 75 67 52 75 6c 65 ubberRudeRugRule 0001b5f0: 52 75 6e 52 75 6e 77 61 79 52 75 72 61 6c 53 61 RunRunwayRuralSa 0001b600: 64 53 61 64 64 6c 65 53 61 64 6e 65 73 73 53 61 dSaddleSadnessSa 0001b610: 66 65 53 61 69 6c 53 61 6c 61 64 53 61 6c 6d 6f feSailSaladSalmo 0001b620: 6e 53 61 6c 6f 6e 53 61 6c 74 53 61 6c 75 74 65 nSalonSaltSalute 0001b630: 53 61 6d 65 53 61 6d 70 6c 65 53 61 6e 64 53 61 SameSampleSandSa 0001b640: 74 69 73 66 79 53 61 74 6f 73 68 69 53 61 75 63 tisfySatoshiSauc 0001b650: 65 53 61 75 73 61 67 65 53 61 76 65 53 61 79 53 eSausageSaveSayS 0001b660: 63 61 6c 65 53 63 61 6e 53 63 61 72 65 53 63 61 caleScanScareSca 0001b670: 74 74 65 72 53 63 65 6e 65 53 63 68 65 6d 65 53 tterSceneSchemeS 0001b680: 63 68 6f 6f 6c 53 63 69 65 6e 63 65 53 63 69 73 choolScienceScis 0001b690: 73 6f 72 73 53 63 6f 72 70 69 6f 6e 53 63 6f 75 sorsScorpionScou 0001b6a0: 74 53 63 72 61 70 53 63 72 65 65 6e 53 63 72 69 tScrapScreenScri 0001b6b0: 70 74 53 63 72 75 62 53 65 61 53 65 61 72 63 68 ptScrubSeaSearch 0001b6c0: 53 65 61 73 6f 6e 53 65 61 74 53 65 63 6f 6e 64 SeasonSeatSecond 0001b6d0: 53 65 63 72 65 74 53 65 63 74 69 6f 6e 53 65 63 SecretSectionSec 0001b6e0: 75 72 69 74 79 53 65 65 64 53 65 65 6b 53 65 67 uritySeedSeekSeg 0001b6f0: 6d 65 6e 74 53 65 6c 65 63 74 53 65 6c 6c 53 65 mentSelectSellSe 0001b700: 6d 69 6e 61 72 53 65 6e 69 6f 72 53 65 6e 73 65 minarSeniorSense 0001b710: 53 65 6e 74 65 6e 63 65 53 65 72 69 65 73 53 65 SentenceSeriesSe 0001b720: 72 76 69 63 65 53 65 73 73 69 6f 6e 53 65 74 74 rviceSessionSett 0001b730: 6c 65 53 65 74 75 70 53 65 76 65 6e 53 68 61 64 leSetupSevenShad 0001b740: 6f 77 53 68 61 66 74 53 68 61 6c 6c 6f 77 53 68 owShaftShallowSh 0001b750: 61 72 65 53 68 65 64 53 68 65 6c 6c 53 68 65 72 areShedShellSher 0001b760: 69 66 66 53 68 69 65 6c 64 53 68 69 66 74 53 68 iffShieldShiftSh 0001b770: 69 6e 65 53 68 69 70 53 68 69 76 65 72 53 68 6f ineShipShiverSho 0001b780: 63 6b 53 68 6f 65 53 68 6f 6f 74 53 68 6f 70 53 ckShoeShootShopS 0001b790: 68 6f 72 74 53 68 6f 75 6c 64 65 72 53 68 6f 76 hortShoulderShov 0001b7a0: 65 53 68 72 69 6d 70 53 68 72 75 67 53 68 75 66 eShrimpShrugShuf 0001b7b0: 66 6c 65 53 68 79 53 69 62 6c 69 6e 67 53 69 63 fleShySiblingSic 0001b7c0: 6b 53 69 64 65 53 69 65 67 65 53 69 67 68 74 53 kSideSiegeSightS 0001b7d0: 69 67 6e 53 69 6c 65 6e 74 53 69 6c 6b 53 69 6c ignSilentSilkSil 0001b7e0: 6c 79 53 69 6c 76 65 72 53 69 6d 69 6c 61 72 53 lySilverSimilarS 0001b7f0: 69 6d 70 6c 65 53 69 6e 63 65 53 69 6e 67 53 69 impleSinceSingSi 0001b800: 72 65 6e 53 69 73 74 65 72 53 69 74 75 61 74 65 renSisterSituate 0001b810: 53 69 78 53 69 7a 65 53 6b 61 74 65 53 6b 65 74 SixSizeSkateSket 0001b820: 63 68 53 6b 69 53 6b 69 6c 6c 53 6b 69 6e 53 6b chSkiSkillSkinSk 0001b830: 69 72 74 53 6b 75 6c 6c 53 6c 61 62 53 6c 61 6d irtSkullSlabSlam 0001b840: 53 6c 65 65 70 53 6c 65 6e 64 65 72 53 6c 69 63 SleepSlenderSlic 0001b850: 65 53 6c 69 64 65 53 6c 69 67 68 74 53 6c 69 6d eSlideSlightSlim 0001b860: 53 6c 6f 67 61 6e 53 6c 6f 74 53 6c 6f 77 53 6c SloganSlotSlowSl 0001b870: 75 73 68 53 6d 61 6c 6c 53 6d 61 72 74 53 6d 69 ushSmallSmartSmi 0001b880: 6c 65 53 6d 6f 6b 65 53 6d 6f 6f 74 68 53 6e 61 leSmokeSmoothSna 0001b890: 63 6b 53 6e 61 6b 65 53 6e 61 70 53 6e 69 66 66 ckSnakeSnapSniff 0001b8a0: 53 6e 6f 77 53 6f 61 70 53 6f 63 63 65 72 53 6f SnowSoapSoccerSo 0001b8b0: 63 69 61 6c 53 6f 63 6b 53 6f 64 61 53 6f 66 74 cialSockSodaSoft 0001b8c0: 53 6f 6c 61 72 53 6f 6c 64 69 65 72 53 6f 6c 69 SolarSoldierSoli 0001b8d0: 64 53 6f 6c 75 74 69 6f 6e 53 6f 6c 76 65 53 6f dSolutionSolveSo 0001b8e0: 6d 65 6f 6e 65 53 6f 6e 67 53 6f 6f 6e 53 6f 72 meoneSongSoonSor 0001b8f0: 72 79 53 6f 72 74 53 6f 75 6c 53 6f 75 6e 64 53 rySortSoulSoundS 0001b900: 6f 75 70 53 6f 75 72 63 65 53 6f 75 74 68 53 70 oupSourceSouthSp 0001b910: 61 63 65 53 70 61 72 65 53 70 61 74 69 61 6c 53 aceSpareSpatialS 0001b920: 70 61 77 6e 53 70 65 61 6b 53 70 65 63 69 61 6c pawnSpeakSpecial 0001b930: 53 70 65 65 64 53 70 65 6c 6c 53 70 65 6e 64 53 SpeedSpellSpendS 0001b940: 70 68 65 72 65 53 70 69 63 65 53 70 69 64 65 72 phereSpiceSpider 0001b950: 53 70 69 6b 65 53 70 69 6e 53 70 69 72 69 74 53 SpikeSpinSpiritS 0001b960: 70 6c 69 74 53 70 6f 69 6c 53 70 6f 6e 73 6f 72 plitSpoilSponsor 0001b970: 53 70 6f 6f 6e 53 70 6f 72 74 53 70 6f 74 53 70 SpoonSportSpotSp 0001b980: 72 61 79 53 70 72 65 61 64 53 70 72 69 6e 67 53 raySpreadSpringS 0001b990: 70 79 53 71 75 61 72 65 53 71 75 65 65 7a 65 53 pySquareSqueezeS 0001b9a0: 71 75 69 72 72 65 6c 53 74 61 62 6c 65 53 74 61 quirrelStableSta 0001b9b0: 64 69 75 6d 53 74 61 66 66 53 74 61 67 65 53 74 diumStaffStageSt 0001b9c0: 61 69 72 73 53 74 61 6d 70 53 74 61 6e 64 53 74 airsStampStandSt 0001b9d0: 61 72 74 53 74 61 74 65 53 74 61 79 53 74 65 61 artStateStayStea 0001b9e0: 6b 53 74 65 65 6c 53 74 65 6d 53 74 65 70 53 74 kSteelStemStepSt 0001b9f0: 65 72 65 6f 53 74 69 63 6b 53 74 69 6c 6c 53 74 ereoStickStillSt 0001ba00: 69 6e 67 53 74 6f 63 6b 53 74 6f 6d 61 63 68 53 ingStockStomachS 0001ba10: 74 6f 6e 65 53 74 6f 6f 6c 53 74 6f 72 79 53 74 toneStoolStorySt 0001ba20: 6f 76 65 53 74 72 61 74 65 67 79 53 74 72 65 65 oveStrategyStree 0001ba30: 74 53 74 72 69 6b 65 53 74 72 6f 6e 67 53 74 72 tStrikeStrongStr 0001ba40: 75 67 67 6c 65 53 74 75 64 65 6e 74 53 74 75 66 uggleStudentStuf 0001ba50: 66 53 74 75 6d 62 6c 65 53 74 79 6c 65 53 75 62 fStumbleStyleSub 0001ba60: 6a 65 63 74 53 75 62 6d 69 74 53 75 62 77 61 79 jectSubmitSubway 0001ba70: 53 75 63 63 65 73 73 53 75 63 68 53 75 64 64 65 SuccessSuchSudde 0001ba80: 6e 53 75 66 66 65 72 53 75 67 61 72 53 75 67 67 nSufferSugarSugg 0001ba90: 65 73 74 53 75 69 74 53 75 6d 6d 65 72 53 75 6e estSuitSummerSun 0001baa0: 53 75 6e 6e 79 53 75 6e 73 65 74 53 75 70 65 72 SunnySunsetSuper 0001bab0: 53 75 70 70 6c 79 53 75 70 72 65 6d 65 53 75 72 SupplySupremeSur 0001bac0: 65 53 75 72 66 61 63 65 53 75 72 67 65 53 75 72 eSurfaceSurgeSur 0001bad0: 70 72 69 73 65 53 75 72 72 6f 75 6e 64 53 75 72 priseSurroundSur 0001bae0: 76 65 79 53 75 73 70 65 63 74 53 75 73 74 61 69 veySuspectSustai 0001baf0: 6e 53 77 61 6c 6c 6f 77 53 77 61 6d 70 53 77 61 nSwallowSwampSwa 0001bb00: 70 53 77 61 72 6d 53 77 65 61 72 53 77 65 65 74 pSwarmSwearSweet 0001bb10: 53 77 69 66 74 53 77 69 6d 53 77 69 6e 67 53 77 SwiftSwimSwingSw 0001bb20: 69 74 63 68 53 77 6f 72 64 53 79 6d 62 6f 6c 53 itchSwordSymbolS 0001bb30: 79 6d 70 74 6f 6d 53 79 72 75 70 53 79 73 74 65 ymptomSyrupSyste 0001bb40: 6d 54 61 62 6c 65 54 61 63 6b 6c 65 54 61 67 54 mTableTackleTagT 0001bb50: 61 69 6c 54 61 6c 65 6e 74 54 61 6c 6b 54 61 6e ailTalentTalkTan 0001bb60: 6b 54 61 70 65 54 61 72 67 65 74 54 61 73 6b 54 kTapeTargetTaskT 0001bb70: 61 73 74 65 54 61 74 74 6f 6f 54 61 78 69 54 65 asteTattooTaxiTe 0001bb80: 61 63 68 54 65 61 6d 54 65 6c 6c 54 65 6e 54 65 achTeamTellTenTe 0001bb90: 6e 61 6e 74 54 65 6e 6e 69 73 54 65 6e 74 54 65 nantTennisTentTe 0001bba0: 72 6d 54 65 73 74 54 65 78 74 54 68 61 6e 6b 54 rmTestTextThankT 0001bbb0: 68 61 74 54 68 65 6d 65 54 68 65 6e 54 68 65 6f hatThemeThenTheo 0001bbc0: 72 79 54 68 65 72 65 54 68 65 79 54 68 69 6e 67 ryThereTheyThing 0001bbd0: 54 68 69 73 54 68 6f 75 67 68 74 54 68 72 65 65 ThisThoughtThree 0001bbe0: 54 68 72 69 76 65 54 68 72 6f 77 54 68 75 6d 62 ThriveThrowThumb 0001bbf0: 54 68 75 6e 64 65 72 54 69 63 6b 65 74 54 69 64 ThunderTicketTid 0001bc00: 65 54 69 67 65 72 54 69 6c 74 54 69 6d 62 65 72 eTigerTiltTimber 0001bc10: 54 69 6d 65 54 69 6e 79 54 69 70 54 69 72 65 64 TimeTinyTipTired 0001bc20: 54 69 73 73 75 65 54 69 74 6c 65 54 6f 61 73 74 TissueTitleToast 0001bc30: 54 6f 62 61 63 63 6f 54 6f 64 61 79 54 6f 64 64 TobaccoTodayTodd 0001bc40: 6c 65 72 54 6f 65 54 6f 67 65 74 68 65 72 54 6f lerToeTogetherTo 0001bc50: 69 6c 65 74 54 6f 6b 65 6e 54 6f 6d 61 74 6f 54 iletTokenTomatoT 0001bc60: 6f 6d 6f 72 72 6f 77 54 6f 6e 65 54 6f 6e 67 75 omorrowToneTongu 0001bc70: 65 54 6f 6e 69 67 68 74 54 6f 6f 6c 54 6f 6f 74 eTonightToolToot 0001bc80: 68 54 6f 70 54 6f 70 69 63 54 6f 70 70 6c 65 54 hTopTopicToppleT 0001bc90: 6f 72 63 68 54 6f 72 6e 61 64 6f 54 6f 72 74 6f orchTornadoTorto 0001bca0: 69 73 65 54 6f 73 73 54 6f 74 61 6c 54 6f 75 72 iseTossTotalTour 0001bcb0: 69 73 74 54 6f 77 61 72 64 54 6f 77 65 72 54 6f istTowardTowerTo 0001bcc0: 77 6e 54 6f 79 54 72 61 63 6b 54 72 61 64 65 54 wnToyTrackTradeT 0001bcd0: 72 61 66 66 69 63 54 72 61 67 69 63 54 72 61 69 rafficTragicTrai 0001bce0: 6e 54 72 61 6e 73 66 65 72 54 72 61 70 54 72 61 nTransferTrapTra 0001bcf0: 73 68 54 72 61 76 65 6c 54 72 61 79 54 72 65 61 shTravelTrayTrea 0001bd00: 74 54 72 65 65 54 72 65 6e 64 54 72 69 61 6c 54 tTreeTrendTrialT 0001bd10: 72 69 62 65 54 72 69 63 6b 54 72 69 67 67 65 72 ribeTrickTrigger 0001bd20: 54 72 69 6d 54 72 69 70 54 72 6f 70 68 79 54 72 TrimTripTrophyTr 0001bd30: 6f 75 62 6c 65 54 72 75 63 6b 54 72 75 65 54 72 oubleTruckTrueTr 0001bd40: 75 6c 79 54 72 75 6d 70 65 74 54 72 75 73 74 54 ulyTrumpetTrustT 0001bd50: 72 75 74 68 54 72 79 54 75 62 65 54 75 69 74 69 ruthTryTubeTuiti 0001bd60: 6f 6e 54 75 6d 62 6c 65 54 75 6e 61 54 75 6e 6e onTumbleTunaTunn 0001bd70: 65 6c 54 75 72 6b 65 79 54 75 72 6e 54 75 72 74 elTurkeyTurnTurt 0001bd80: 6c 65 54 77 65 6c 76 65 54 77 65 6e 74 79 54 77 leTwelveTwentyTw 0001bd90: 69 63 65 54 77 69 6e 54 77 69 73 74 54 77 6f 54 iceTwinTwistTwoT 0001bda0: 79 70 65 54 79 70 69 63 61 6c 55 67 6c 79 55 6d ypeTypicalUglyUm 0001bdb0: 62 72 65 6c 6c 61 55 6e 61 62 6c 65 55 6e 61 77 brellaUnableUnaw 0001bdc0: 61 72 65 55 6e 63 6c 65 55 6e 63 6f 76 65 72 55 areUncleUncoverU 0001bdd0: 6e 64 65 72 55 6e 64 6f 55 6e 66 61 69 72 55 6e nderUndoUnfairUn 0001bde0: 66 6f 6c 64 55 6e 68 61 70 70 79 55 6e 69 66 6f foldUnhappyUnifo 0001bdf0: 72 6d 55 6e 69 71 75 65 55 6e 69 74 55 6e 69 76 rmUniqueUnitUniv 0001be00: 65 72 73 65 55 6e 6b 6e 6f 77 6e 55 6e 6c 6f 63 erseUnknownUnloc 0001be10: 6b 55 6e 74 69 6c 55 6e 75 73 75 61 6c 55 6e 76 kUntilUnusualUnv 0001be20: 65 69 6c 55 70 64 61 74 65 55 70 67 72 61 64 65 eilUpdateUpgrade 0001be30: 55 70 68 6f 6c 64 55 70 6f 6e 55 70 70 65 72 55 UpholdUponUpperU 0001be40: 70 73 65 74 55 72 62 61 6e 55 72 67 65 55 73 61 psetUrbanUrgeUsa 0001be50: 67 65 55 73 65 55 73 65 64 55 73 65 66 75 6c 55 geUseUsedUsefulU 0001be60: 73 65 6c 65 73 73 55 73 75 61 6c 55 74 69 6c 69 selessUsualUtili 0001be70: 74 79 56 61 63 61 6e 74 56 61 63 75 75 6d 56 61 tyVacantVacuumVa 0001be80: 67 75 65 56 61 6c 69 64 56 61 6c 6c 65 79 56 61 gueValidValleyVa 0001be90: 6c 76 65 56 61 6e 56 61 6e 69 73 68 56 61 70 6f lveVanVanishVapo 0001bea0: 72 56 61 72 69 6f 75 73 56 61 73 74 56 61 75 6c rVariousVastVaul 0001beb0: 74 56 65 68 69 63 6c 65 56 65 6c 76 65 74 56 65 tVehicleVelvetVe 0001bec0: 6e 64 6f 72 56 65 6e 74 75 72 65 56 65 6e 75 65 ndorVentureVenue 0001bed0: 56 65 72 62 56 65 72 69 66 79 56 65 72 73 69 6f VerbVerifyVersio 0001bee0: 6e 56 65 72 79 56 65 73 73 65 6c 56 65 74 65 72 nVeryVesselVeter 0001bef0: 61 6e 56 69 61 62 6c 65 56 69 62 72 61 6e 74 56 anViableVibrantV 0001bf00: 69 63 69 6f 75 73 56 69 63 74 6f 72 79 56 69 64 iciousVictoryVid 0001bf10: 65 6f 56 69 65 77 56 69 6c 6c 61 67 65 56 69 6e eoViewVillageVin 0001bf20: 74 61 67 65 56 69 6f 6c 69 6e 56 69 72 74 75 61 tageViolinVirtua 0001bf30: 6c 56 69 72 75 73 56 69 73 61 56 69 73 69 74 56 lVirusVisaVisitV 0001bf40: 69 73 75 61 6c 56 69 74 61 6c 56 69 76 69 64 56 isualVitalVividV 0001bf50: 6f 63 61 6c 56 6f 69 63 65 56 6f 69 64 56 6f 6c ocalVoiceVoidVol 0001bf60: 63 61 6e 6f 56 6f 6c 75 6d 65 56 6f 74 65 56 6f canoVolumeVoteVo 0001bf70: 79 61 67 65 57 61 67 65 57 61 67 6f 6e 57 61 69 yageWageWagonWai 0001bf80: 74 57 61 6c 6b 57 61 6c 6c 57 61 6c 6e 75 74 57 tWalkWallWalnutW 0001bf90: 61 6e 74 57 61 72 66 61 72 65 57 61 72 6d 57 61 antWarfareWarmWa 0001bfa0: 72 72 69 6f 72 57 61 73 68 57 61 73 70 57 61 73 rriorWashWaspWas 0001bfb0: 74 65 57 61 74 65 72 57 61 76 65 57 61 79 57 65 teWaterWaveWayWe 0001bfc0: 61 6c 74 68 57 65 61 70 6f 6e 57 65 61 72 57 65 althWeaponWearWe 0001bfd0: 61 73 65 6c 57 65 61 74 68 65 72 57 65 62 57 65 aselWeatherWebWe 0001bfe0: 64 64 69 6e 67 57 65 65 6b 65 6e 64 57 65 69 72 ddingWeekendWeir 0001bff0: 64 57 65 6c 63 6f 6d 65 57 65 73 74 57 65 74 57 dWelcomeWestWetW 0001c000: 68 61 6c 65 57 68 61 74 57 68 65 61 74 57 68 65 haleWhatWheatWhe 0001c010: 65 6c 57 68 65 6e 57 68 65 72 65 57 68 69 70 57 elWhenWhereWhipW 0001c020: 68 69 73 70 65 72 57 69 64 65 57 69 64 74 68 57 hisperWideWidthW 0001c030: 69 66 65 57 69 6c 64 57 69 6c 6c 57 69 6e 57 69 ifeWildWillWinWi 0001c040: 6e 64 6f 77 57 69 6e 65 57 69 6e 67 57 69 6e 6b ndowWineWingWink 0001c050: 57 69 6e 6e 65 72 57 69 6e 74 65 72 57 69 72 65 WinnerWinterWire 0001c060: 57 69 73 64 6f 6d 57 69 73 65 57 69 73 68 57 69 WisdomWiseWishWi 0001c070: 74 6e 65 73 73 57 6f 6c 66 57 6f 6d 61 6e 57 6f tnessWolfWomanWo 0001c080: 6e 64 65 72 57 6f 6f 64 57 6f 6f 6c 57 6f 72 64 nderWoodWoolWord 0001c090: 57 6f 72 6b 57 6f 72 6c 64 57 6f 72 72 79 57 6f WorkWorldWorryWo 0001c0a0: 72 74 68 57 72 61 70 57 72 65 63 6b 57 72 65 73 rthWrapWreckWres 0001c0b0: 74 6c 65 57 72 69 73 74 57 72 69 74 65 57 72 6f tleWristWriteWro 0001c0c0: 6e 67 59 61 72 64 59 65 61 72 59 65 6c 6c 6f 77 ngYardYearYellow 0001c0d0: 59 6f 75 59 6f 75 6e 67 59 6f 75 74 68 5a 65 62 YouYoungYouthZeb 0001c0e0: 72 61 5a 65 72 6f 5a 6f 6e 65 5a 6f 6f 22 3b 6c raZeroZoneZoo";l 0001c0f0: 65 74 20 6b 6f 3d 6e 75 6c 6c 3b 66 75 6e 63 74 et ko=null;funct 0001c100: 69 6f 6e 20 49 6f 28 65 29 7b 69 66 28 6e 75 6c ion Io(e){if(nul 0001c110: 6c 3d 3d 6b 6f 26 26 28 6b 6f 3d 41 6f 2e 72 65 l==ko&&(ko=Ao.re 0001c120: 70 6c 61 63 65 28 2f 28 5b 41 2d 5a 5d 29 2f 67 place(/([A-Z])/g 0001c130: 2c 22 20 24 31 22 29 2e 74 6f 4c 6f 77 65 72 43 ," $1").toLowerC 0001c140: 61 73 65 28 29 2e 73 75 62 73 74 72 69 6e 67 28 ase().substring( 0001c150: 31 29 2e 73 70 6c 69 74 28 22 20 22 29 2c 22 30 1).split(" "),"0 0001c160: 78 33 63 38 61 63 63 31 65 37 62 30 38 64 38 65 x3c8acc1e7b08d8e 0001c170: 37 36 66 39 66 64 61 30 31 35 65 66 34 38 64 63 76f9fda015ef48dc 0001c180: 38 63 37 31 30 61 37 33 63 62 37 65 30 66 37 37 8c710a73cb7e0f77 0001c190: 62 32 63 31 38 61 39 62 35 61 37 61 64 64 65 36 b2c18a9b5a7adde6 0001c1a0: 30 22 21 3d 3d 43 6f 2e 63 68 65 63 6b 28 65 29 0"!==Co.check(e) 0001c1b0: 29 29 74 68 72 6f 77 20 6b 6f 3d 6e 75 6c 6c 2c ))throw ko=null, 0001c1c0: 6e 65 77 20 45 72 72 6f 72 28 22 42 49 50 33 39 new Error("BIP39 0001c1d0: 20 57 6f 72 64 6c 69 73 74 20 66 6f 72 20 65 6e Wordlist for en 0001c1e0: 20 28 45 6e 67 6c 69 73 68 29 20 46 41 49 4c 45 (English) FAILE 0001c1f0: 44 22 29 7d 63 6f 6e 73 74 20 4f 6f 3d 6e 65 77 D")}const Oo=new 0001c200: 20 63 6c 61 73 73 20 65 78 74 65 6e 64 73 20 43 class extends C 0001c210: 6f 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 29 7b o{constructor(){ 0001c220: 73 75 70 65 72 28 22 65 6e 22 29 7d 67 65 74 57 super("en")}getW 0001c230: 6f 72 64 28 65 29 7b 72 65 74 75 72 6e 20 49 6f ord(e){return Io 0001c240: 28 74 68 69 73 29 2c 6b 6f 5b 65 5d 7d 67 65 74 (this),ko[e]}get 0001c250: 57 6f 72 64 49 6e 64 65 78 28 65 29 7b 72 65 74 WordIndex(e){ret 0001c260: 75 72 6e 20 49 6f 28 74 68 69 73 29 2c 6b 6f 2e urn Io(this),ko. 0001c270: 69 6e 64 65 78 4f 66 28 65 29 7d 7d 3b 43 6f 2e indexOf(e)}};Co. 0001c280: 72 65 67 69 73 74 65 72 28 4f 6f 29 3b 63 6f 6e register(Oo);con 0001c290: 73 74 20 52 6f 3d 7b 65 6e 3a 4f 6f 7d 2c 4e 6f st Ro={en:Oo},No 0001c2a0: 3d 6e 65 77 20 79 28 22 68 64 6e 6f 64 65 2f 35 =new y("hdnode/5 0001c2b0: 2e 37 2e 30 22 29 2c 50 6f 3d 59 2e 66 72 6f 6d .7.0"),Po=Y.from 0001c2c0: 28 22 30 78 66 66 66 66 66 66 66 66 66 66 66 66 ("0xffffffffffff 0001c2d0: 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 66 ffffffffffffffff 0001c2e0: 66 66 66 65 62 61 61 65 64 63 65 36 61 66 34 38 fffebaaedce6af48 0001c2f0: 61 30 33 62 62 66 64 32 35 65 38 63 64 30 33 36 a03bbfd25e8cd036 0001c300: 34 31 34 31 22 29 2c 4d 6f 3d 71 65 28 22 42 69 4141"),Mo=qe("Bi 0001c310: 74 63 6f 69 6e 20 73 65 65 64 22 29 2c 44 6f 3d tcoin seed"),Do= 0001c320: 32 31 34 37 34 38 33 36 34 38 3b 66 75 6e 63 74 2147483648;funct 0001c330: 69 6f 6e 20 4c 6f 28 65 29 7b 72 65 74 75 72 6e ion Lo(e){return 0001c340: 28 31 3c 3c 65 29 2d 31 3c 3c 38 2d 65 7d 66 75 (1<<e)-1<<8-e}fu 0001c350: 6e 63 74 69 6f 6e 20 46 6f 28 65 29 7b 72 65 74 nction Fo(e){ret 0001c360: 75 72 6e 20 46 28 52 28 65 29 2c 33 32 29 7d 66 urn F(R(e),32)}f 0001c370: 75 6e 63 74 69 6f 6e 20 55 6f 28 65 29 7b 72 65 unction Uo(e){re 0001c380: 74 75 72 6e 20 62 6f 2e 65 6e 63 6f 64 65 28 43 turn bo.encode(C 0001c390: 28 5b 65 2c 50 28 45 6f 28 45 6f 28 65 29 29 2c ([e,P(Eo(Eo(e)), 0001c3a0: 30 2c 34 29 5d 29 29 7d 66 75 6e 63 74 69 6f 6e 0,4)]))}function 0001c3b0: 20 42 6f 28 65 29 7b 69 66 28 6e 75 6c 6c 3d 3d Bo(e){if(null== 0001c3c0: 65 29 72 65 74 75 72 6e 20 52 6f 2e 65 6e 3b 69 e)return Ro.en;i 0001c3d0: 66 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 f("string"==type 0001c3e0: 6f 66 20 65 29 7b 63 6f 6e 73 74 20 74 3d 52 6f of e){const t=Ro 0001c3f0: 5b 65 5d 3b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d [e];return null= 0001c400: 3d 74 26 26 4e 6f 2e 74 68 72 6f 77 41 72 67 75 =t&&No.throwArgu 0001c410: 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 6b 6e 6f mentError("unkno 0001c420: 77 6e 20 6c 6f 63 61 6c 65 22 2c 22 77 6f 72 64 wn locale","word 0001c430: 6c 69 73 74 22 2c 65 29 2c 74 7d 72 65 74 75 72 list",e),t}retur 0001c440: 6e 20 65 7d 63 6f 6e 73 74 20 6a 6f 3d 7b 7d 2c n e}const jo={}, 0001c450: 7a 6f 3d 22 6d 2f 34 34 27 2f 36 30 27 2f 30 27 zo="m/44'/60'/0' 0001c460: 2f 30 2f 30 22 3b 63 6c 61 73 73 20 47 6f 7b 63 /0/0";class Go{c 0001c470: 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 2c 6e onstructor(e,t,n 0001c480: 2c 72 2c 6f 2c 69 2c 61 2c 73 29 7b 69 66 28 65 ,r,o,i,a,s){if(e 0001c490: 21 3d 3d 6a 6f 29 74 68 72 6f 77 20 6e 65 77 20 !==jo)throw new 0001c4a0: 45 72 72 6f 72 28 22 48 44 4e 6f 64 65 20 63 6f Error("HDNode co 0001c4b0: 6e 73 74 72 75 63 74 6f 72 20 63 61 6e 6e 6f 74 nstructor cannot 0001c4c0: 20 62 65 20 63 61 6c 6c 65 64 20 64 69 72 65 63 be called direc 0001c4d0: 74 6c 79 22 29 3b 69 66 28 74 29 7b 63 6f 6e 73 tly");if(t){cons 0001c4e0: 74 20 65 3d 6e 65 77 20 65 72 28 74 29 3b 74 65 t e=new er(t);te 0001c4f0: 28 74 68 69 73 2c 22 70 72 69 76 61 74 65 4b 65 (this,"privateKe 0001c500: 79 22 2c 65 2e 70 72 69 76 61 74 65 4b 65 79 29 y",e.privateKey) 0001c510: 2c 74 65 28 74 68 69 73 2c 22 70 75 62 6c 69 63 ,te(this,"public 0001c520: 4b 65 79 22 2c 65 2e 63 6f 6d 70 72 65 73 73 65 Key",e.compresse 0001c530: 64 50 75 62 6c 69 63 4b 65 79 29 7d 65 6c 73 65 dPublicKey)}else 0001c540: 20 74 65 28 74 68 69 73 2c 22 70 72 69 76 61 74 te(this,"privat 0001c550: 65 4b 65 79 22 2c 6e 75 6c 6c 29 2c 74 65 28 74 eKey",null),te(t 0001c560: 68 69 73 2c 22 70 75 62 6c 69 63 4b 65 79 22 2c his,"publicKey", 0001c570: 52 28 6e 29 29 3b 74 65 28 74 68 69 73 2c 22 70 R(n));te(this,"p 0001c580: 61 72 65 6e 74 46 69 6e 67 65 72 70 72 69 6e 74 arentFingerprint 0001c590: 22 2c 72 29 2c 74 65 28 74 68 69 73 2c 22 66 69 ",r),te(this,"fi 0001c5a0: 6e 67 65 72 70 72 69 6e 74 22 2c 50 28 53 6f 28 ngerprint",P(So( 0001c5b0: 45 6f 28 74 68 69 73 2e 70 75 62 6c 69 63 4b 65 Eo(this.publicKe 0001c5c0: 79 29 29 2c 30 2c 34 29 29 2c 74 65 28 74 68 69 y)),0,4)),te(thi 0001c5d0: 73 2c 22 61 64 64 72 65 73 73 22 2c 63 72 28 74 s,"address",cr(t 0001c5e0: 68 69 73 2e 70 75 62 6c 69 63 4b 65 79 29 29 2c his.publicKey)), 0001c5f0: 74 65 28 74 68 69 73 2c 22 63 68 61 69 6e 43 6f te(this,"chainCo 0001c600: 64 65 22 2c 6f 29 2c 74 65 28 74 68 69 73 2c 22 de",o),te(this," 0001c610: 69 6e 64 65 78 22 2c 69 29 2c 74 65 28 74 68 69 index",i),te(thi 0001c620: 73 2c 22 64 65 70 74 68 22 2c 61 29 2c 6e 75 6c s,"depth",a),nul 0001c630: 6c 3d 3d 73 3f 28 74 65 28 74 68 69 73 2c 22 6d l==s?(te(this,"m 0001c640: 6e 65 6d 6f 6e 69 63 22 2c 6e 75 6c 6c 29 2c 74 nemonic",null),t 0001c650: 65 28 74 68 69 73 2c 22 70 61 74 68 22 2c 6e 75 e(this,"path",nu 0001c660: 6c 6c 29 29 3a 22 73 74 72 69 6e 67 22 3d 3d 74 ll)):"string"==t 0001c670: 79 70 65 6f 66 20 73 3f 28 74 65 28 74 68 69 73 ypeof s?(te(this 0001c680: 2c 22 6d 6e 65 6d 6f 6e 69 63 22 2c 6e 75 6c 6c ,"mnemonic",null 0001c690: 29 2c 74 65 28 74 68 69 73 2c 22 70 61 74 68 22 ),te(this,"path" 0001c6a0: 2c 73 29 29 3a 28 74 65 28 74 68 69 73 2c 22 6d ,s)):(te(this,"m 0001c6b0: 6e 65 6d 6f 6e 69 63 22 2c 73 29 2c 74 65 28 74 nemonic",s),te(t 0001c6c0: 68 69 73 2c 22 70 61 74 68 22 2c 73 2e 70 61 74 his,"path",s.pat 0001c6d0: 68 29 29 7d 67 65 74 20 65 78 74 65 6e 64 65 64 h))}get extended 0001c6e0: 4b 65 79 28 29 7b 69 66 28 74 68 69 73 2e 64 65 Key(){if(this.de 0001c6f0: 70 74 68 3e 3d 32 35 36 29 74 68 72 6f 77 20 6e pth>=256)throw n 0001c700: 65 77 20 45 72 72 6f 72 28 22 44 65 70 74 68 20 ew Error("Depth 0001c710: 74 6f 6f 20 6c 61 72 67 65 21 22 29 3b 72 65 74 too large!");ret 0001c720: 75 72 6e 20 55 6f 28 43 28 5b 6e 75 6c 6c 21 3d urn Uo(C([null!= 0001c730: 74 68 69 73 2e 70 72 69 76 61 74 65 4b 65 79 3f this.privateKey? 0001c740: 22 30 78 30 34 38 38 41 44 45 34 22 3a 22 30 78 "0x0488ADE4":"0x 0001c750: 30 34 38 38 42 32 31 45 22 2c 52 28 74 68 69 73 0488B21E",R(this 0001c760: 2e 64 65 70 74 68 29 2c 74 68 69 73 2e 70 61 72 .depth),this.par 0001c770: 65 6e 74 46 69 6e 67 65 72 70 72 69 6e 74 2c 46 entFingerprint,F 0001c780: 28 52 28 74 68 69 73 2e 69 6e 64 65 78 29 2c 34 (R(this.index),4 0001c790: 29 2c 74 68 69 73 2e 63 68 61 69 6e 43 6f 64 65 ),this.chainCode 0001c7a0: 2c 6e 75 6c 6c 21 3d 74 68 69 73 2e 70 72 69 76 ,null!=this.priv 0001c7b0: 61 74 65 4b 65 79 3f 43 28 5b 22 30 78 30 30 22 ateKey?C(["0x00" 0001c7c0: 2c 74 68 69 73 2e 70 72 69 76 61 74 65 4b 65 79 ,this.privateKey 0001c7d0: 5d 29 3a 74 68 69 73 2e 70 75 62 6c 69 63 4b 65 ]):this.publicKe 0001c7e0: 79 5d 29 29 7d 6e 65 75 74 65 72 28 29 7b 72 65 y]))}neuter(){re 0001c7f0: 74 75 72 6e 20 6e 65 77 20 47 6f 28 6a 6f 2c 6e turn new Go(jo,n 0001c800: 75 6c 6c 2c 74 68 69 73 2e 70 75 62 6c 69 63 4b ull,this.publicK 0001c810: 65 79 2c 74 68 69 73 2e 70 61 72 65 6e 74 46 69 ey,this.parentFi 0001c820: 6e 67 65 72 70 72 69 6e 74 2c 74 68 69 73 2e 63 ngerprint,this.c 0001c830: 68 61 69 6e 43 6f 64 65 2c 74 68 69 73 2e 69 6e hainCode,this.in 0001c840: 64 65 78 2c 74 68 69 73 2e 64 65 70 74 68 2c 74 dex,this.depth,t 0001c850: 68 69 73 2e 70 61 74 68 29 7d 5f 64 65 72 69 76 his.path)}_deriv 0001c860: 65 28 65 29 7b 69 66 28 65 3e 34 32 39 34 39 36 e(e){if(e>429496 0001c870: 37 32 39 35 29 74 68 72 6f 77 20 6e 65 77 20 45 7295)throw new E 0001c880: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 69 6e rror("invalid in 0001c890: 64 65 78 20 2d 20 22 2b 53 74 72 69 6e 67 28 65 dex - "+String(e 0001c8a0: 29 29 3b 6c 65 74 20 74 3d 74 68 69 73 2e 70 61 ));let t=this.pa 0001c8b0: 74 68 3b 74 26 26 28 74 2b 3d 22 2f 22 2b 28 65 th;t&&(t+="/"+(e 0001c8c0: 26 7e 44 6f 29 29 3b 63 6f 6e 73 74 20 6e 3d 6e &~Do));const n=n 0001c8d0: 65 77 20 55 69 6e 74 38 41 72 72 61 79 28 33 37 ew Uint8Array(37 0001c8e0: 29 3b 69 66 28 65 26 44 6f 29 7b 69 66 28 21 74 );if(e&Do){if(!t 0001c8f0: 68 69 73 2e 70 72 69 76 61 74 65 4b 65 79 29 74 his.privateKey)t 0001c900: 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 hrow new Error(" 0001c910: 63 61 6e 6e 6f 74 20 64 65 72 69 76 65 20 63 68 cannot derive ch 0001c920: 69 6c 64 20 6f 66 20 6e 65 75 74 65 72 65 64 20 ild of neutered 0001c930: 6e 6f 64 65 22 29 3b 6e 2e 73 65 74 28 54 28 74 node");n.set(T(t 0001c940: 68 69 73 2e 70 72 69 76 61 74 65 4b 65 79 29 2c his.privateKey), 0001c950: 31 29 2c 74 26 26 28 74 2b 3d 22 27 22 29 7d 65 1),t&&(t+="'")}e 0001c960: 6c 73 65 20 6e 2e 73 65 74 28 54 28 74 68 69 73 lse n.set(T(this 0001c970: 2e 70 75 62 6c 69 63 4b 65 79 29 29 3b 66 6f 72 .publicKey));for 0001c980: 28 6c 65 74 20 74 3d 32 34 3b 74 3e 3d 30 3b 74 (let t=24;t>=0;t 0001c990: 2d 3d 38 29 6e 5b 33 33 2b 28 74 3e 3e 33 29 5d -=8)n[33+(t>>3)] 0001c9a0: 3d 65 3e 3e 32 34 2d 74 26 32 35 35 3b 63 6f 6e =e>>24-t&255;con 0001c9b0: 73 74 20 72 3d 54 28 77 6f 28 79 6f 2e 73 68 61 st r=T(wo(yo.sha 0001c9c0: 35 31 32 2c 74 68 69 73 2e 63 68 61 69 6e 43 6f 512,this.chainCo 0001c9d0: 64 65 2c 6e 29 29 2c 6f 3d 72 2e 73 6c 69 63 65 de,n)),o=r.slice 0001c9e0: 28 30 2c 33 32 29 2c 69 3d 72 2e 73 6c 69 63 65 (0,32),i=r.slice 0001c9f0: 28 33 32 29 3b 6c 65 74 20 61 3d 6e 75 6c 6c 2c (32);let a=null, 0001ca00: 73 3d 6e 75 6c 6c 3b 69 66 28 74 68 69 73 2e 70 s=null;if(this.p 0001ca10: 72 69 76 61 74 65 4b 65 79 29 61 3d 46 6f 28 59 rivateKey)a=Fo(Y 0001ca20: 2e 66 72 6f 6d 28 6f 29 2e 61 64 64 28 74 68 69 .from(o).add(thi 0001ca30: 73 2e 70 72 69 76 61 74 65 4b 65 79 29 2e 6d 6f s.privateKey).mo 0001ca40: 64 28 50 6f 29 29 3b 65 6c 73 65 7b 73 3d 6e 65 d(Po));else{s=ne 0001ca50: 77 20 65 72 28 52 28 6f 29 29 2e 5f 61 64 64 50 w er(R(o))._addP 0001ca60: 6f 69 6e 74 28 74 68 69 73 2e 70 75 62 6c 69 63 oint(this.public 0001ca70: 4b 65 79 29 7d 6c 65 74 20 6c 3d 74 3b 63 6f 6e Key)}let l=t;con 0001ca80: 73 74 20 63 3d 74 68 69 73 2e 6d 6e 65 6d 6f 6e st c=this.mnemon 0001ca90: 69 63 3b 72 65 74 75 72 6e 20 63 26 26 28 6c 3d ic;return c&&(l= 0001caa0: 4f 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 7b 70 Object.freeze({p 0001cab0: 68 72 61 73 65 3a 63 2e 70 68 72 61 73 65 2c 70 hrase:c.phrase,p 0001cac0: 61 74 68 3a 74 2c 6c 6f 63 61 6c 65 3a 63 2e 6c ath:t,locale:c.l 0001cad0: 6f 63 61 6c 65 7c 7c 22 65 6e 22 7d 29 29 2c 6e ocale||"en"})),n 0001cae0: 65 77 20 47 6f 28 6a 6f 2c 61 2c 73 2c 74 68 69 ew Go(jo,a,s,thi 0001caf0: 73 2e 66 69 6e 67 65 72 70 72 69 6e 74 2c 46 6f s.fingerprint,Fo 0001cb00: 28 69 29 2c 65 2c 74 68 69 73 2e 64 65 70 74 68 (i),e,this.depth 0001cb10: 2b 31 2c 6c 29 7d 64 65 72 69 76 65 50 61 74 68 +1,l)}derivePath 0001cb20: 28 65 29 7b 63 6f 6e 73 74 20 74 3d 65 2e 73 70 (e){const t=e.sp 0001cb30: 6c 69 74 28 22 2f 22 29 3b 69 66 28 30 3d 3d 3d lit("/");if(0=== 0001cb40: 74 2e 6c 65 6e 67 74 68 7c 7c 22 6d 22 3d 3d 3d t.length||"m"=== 0001cb50: 74 5b 30 5d 26 26 30 21 3d 3d 74 68 69 73 2e 64 t[0]&&0!==this.d 0001cb60: 65 70 74 68 29 74 68 72 6f 77 20 6e 65 77 20 45 epth)throw new E 0001cb70: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 70 61 rror("invalid pa 0001cb80: 74 68 20 2d 20 22 2b 65 29 3b 22 6d 22 3d 3d 3d th - "+e);"m"=== 0001cb90: 74 5b 30 5d 26 26 74 2e 73 68 69 66 74 28 29 3b t[0]&&t.shift(); 0001cba0: 6c 65 74 20 6e 3d 74 68 69 73 3b 66 6f 72 28 6c let n=this;for(l 0001cbb0: 65 74 20 65 3d 30 3b 65 3c 74 2e 6c 65 6e 67 74 et e=0;e<t.lengt 0001cbc0: 68 3b 65 2b 2b 29 7b 63 6f 6e 73 74 20 72 3d 74 h;e++){const r=t 0001cbd0: 5b 65 5d 3b 69 66 28 72 2e 6d 61 74 63 68 28 2f [e];if(r.match(/ 0001cbe0: 5e 5b 30 2d 39 5d 2b 27 24 2f 29 29 7b 63 6f 6e ^[0-9]+'$/)){con 0001cbf0: 73 74 20 65 3d 70 61 72 73 65 49 6e 74 28 72 2e st e=parseInt(r. 0001cc00: 73 75 62 73 74 72 69 6e 67 28 30 2c 72 2e 6c 65 substring(0,r.le 0001cc10: 6e 67 74 68 2d 31 29 29 3b 69 66 28 65 3e 3d 44 ngth-1));if(e>=D 0001cc20: 6f 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f o)throw new Erro 0001cc30: 72 28 22 69 6e 76 61 6c 69 64 20 70 61 74 68 20 r("invalid path 0001cc40: 69 6e 64 65 78 20 2d 20 22 2b 72 29 3b 6e 3d 6e index - "+r);n=n 0001cc50: 2e 5f 64 65 72 69 76 65 28 44 6f 2b 65 29 7d 65 ._derive(Do+e)}e 0001cc60: 6c 73 65 7b 69 66 28 21 72 2e 6d 61 74 63 68 28 lse{if(!r.match( 0001cc70: 2f 5e 5b 30 2d 39 5d 2b 24 2f 29 29 74 68 72 6f /^[0-9]+$/))thro 0001cc80: 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 76 w new Error("inv 0001cc90: 61 6c 69 64 20 70 61 74 68 20 63 6f 6d 70 6f 6e alid path compon 0001cca0: 65 6e 74 20 2d 20 22 2b 72 29 3b 7b 63 6f 6e 73 ent - "+r);{cons 0001ccb0: 74 20 65 3d 70 61 72 73 65 49 6e 74 28 72 29 3b t e=parseInt(r); 0001ccc0: 69 66 28 65 3e 3d 44 6f 29 74 68 72 6f 77 20 6e if(e>=Do)throw n 0001ccd0: 65 77 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 ew Error("invali 0001cce0: 64 20 70 61 74 68 20 69 6e 64 65 78 20 2d 20 22 d path index - " 0001ccf0: 2b 72 29 3b 6e 3d 6e 2e 5f 64 65 72 69 76 65 28 +r);n=n._derive( 0001cd00: 65 29 7d 7d 7d 72 65 74 75 72 6e 20 6e 7d 73 74 e)}}}return n}st 0001cd10: 61 74 69 63 20 5f 66 72 6f 6d 53 65 65 64 28 65 atic _fromSeed(e 0001cd20: 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 54 28 65 29 ,t){const n=T(e) 0001cd30: 3b 69 66 28 6e 2e 6c 65 6e 67 74 68 3c 31 36 7c ;if(n.length<16| 0001cd40: 7c 6e 2e 6c 65 6e 67 74 68 3e 36 34 29 74 68 72 |n.length>64)thr 0001cd50: 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e ow new Error("in 0001cd60: 76 61 6c 69 64 20 73 65 65 64 22 29 3b 63 6f 6e valid seed");con 0001cd70: 73 74 20 72 3d 54 28 77 6f 28 79 6f 2e 73 68 61 st r=T(wo(yo.sha 0001cd80: 35 31 32 2c 4d 6f 2c 6e 29 29 3b 72 65 74 75 72 512,Mo,n));retur 0001cd90: 6e 20 6e 65 77 20 47 6f 28 6a 6f 2c 46 6f 28 72 n new Go(jo,Fo(r 0001cda0: 2e 73 6c 69 63 65 28 30 2c 33 32 29 29 2c 6e 75 .slice(0,32)),nu 0001cdb0: 6c 6c 2c 22 30 78 30 30 30 30 30 30 30 30 22 2c ll,"0x00000000", 0001cdc0: 46 6f 28 72 2e 73 6c 69 63 65 28 33 32 29 29 2c Fo(r.slice(32)), 0001cdd0: 30 2c 30 2c 74 29 7d 73 74 61 74 69 63 20 66 72 0,0,t)}static fr 0001cde0: 6f 6d 4d 6e 65 6d 6f 6e 69 63 28 65 2c 74 2c 6e omMnemonic(e,t,n 0001cdf0: 29 7b 72 65 74 75 72 6e 20 65 3d 71 6f 28 56 6f ){return e=qo(Vo 0001ce00: 28 65 2c 6e 3d 42 6f 28 6e 29 29 2c 6e 29 2c 47 (e,n=Bo(n)),n),G 0001ce10: 6f 2e 5f 66 72 6f 6d 53 65 65 64 28 48 6f 28 65 o._fromSeed(Ho(e 0001ce20: 2c 74 29 2c 7b 70 68 72 61 73 65 3a 65 2c 70 61 ,t),{phrase:e,pa 0001ce30: 74 68 3a 22 6d 22 2c 6c 6f 63 61 6c 65 3a 6e 2e th:"m",locale:n. 0001ce40: 6c 6f 63 61 6c 65 7d 29 7d 73 74 61 74 69 63 20 locale})}static 0001ce50: 66 72 6f 6d 53 65 65 64 28 65 29 7b 72 65 74 75 fromSeed(e){retu 0001ce60: 72 6e 20 47 6f 2e 5f 66 72 6f 6d 53 65 65 64 28 rn Go._fromSeed( 0001ce70: 65 2c 6e 75 6c 6c 29 7d 73 74 61 74 69 63 20 66 e,null)}static f 0001ce80: 72 6f 6d 45 78 74 65 6e 64 65 64 4b 65 79 28 65 romExtendedKey(e 0001ce90: 29 7b 63 6f 6e 73 74 20 74 3d 62 6f 2e 64 65 63 ){const t=bo.dec 0001cea0: 6f 64 65 28 65 29 3b 38 32 3d 3d 3d 74 2e 6c 65 ode(e);82===t.le 0001ceb0: 6e 67 74 68 26 26 55 6f 28 74 2e 73 6c 69 63 65 ngth&&Uo(t.slice 0001cec0: 28 30 2c 37 38 29 29 3d 3d 3d 65 7c 7c 4e 6f 2e (0,78))===e||No. 0001ced0: 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 throwArgumentErr 0001cee0: 6f 72 28 22 69 6e 76 61 6c 69 64 20 65 78 74 65 or("invalid exte 0001cef0: 6e 64 65 64 20 6b 65 79 22 2c 22 65 78 74 65 6e nded key","exten 0001cf00: 64 65 64 4b 65 79 22 2c 22 5b 52 45 44 41 43 54 dedKey","[REDACT 0001cf10: 45 44 5d 22 29 3b 63 6f 6e 73 74 20 6e 3d 74 5b ED]");const n=t[ 0001cf20: 34 5d 2c 72 3d 52 28 74 2e 73 6c 69 63 65 28 35 4],r=R(t.slice(5 0001cf30: 2c 39 29 29 2c 6f 3d 70 61 72 73 65 49 6e 74 28 ,9)),o=parseInt( 0001cf40: 52 28 74 2e 73 6c 69 63 65 28 39 2c 31 33 29 29 R(t.slice(9,13)) 0001cf50: 2e 73 75 62 73 74 72 69 6e 67 28 32 29 2c 31 36 .substring(2),16 0001cf60: 29 2c 69 3d 52 28 74 2e 73 6c 69 63 65 28 31 33 ),i=R(t.slice(13 0001cf70: 2c 34 35 29 29 2c 61 3d 74 2e 73 6c 69 63 65 28 ,45)),a=t.slice( 0001cf80: 34 35 2c 37 38 29 3b 73 77 69 74 63 68 28 52 28 45,78);switch(R( 0001cf90: 74 2e 73 6c 69 63 65 28 30 2c 34 29 29 29 7b 63 t.slice(0,4))){c 0001cfa0: 61 73 65 22 30 78 30 34 38 38 62 32 31 65 22 3a ase"0x0488b21e": 0001cfb0: 63 61 73 65 22 30 78 30 34 33 35 38 37 63 66 22 case"0x043587cf" 0001cfc0: 3a 72 65 74 75 72 6e 20 6e 65 77 20 47 6f 28 6a :return new Go(j 0001cfd0: 6f 2c 6e 75 6c 6c 2c 52 28 61 29 2c 72 2c 69 2c o,null,R(a),r,i, 0001cfe0: 6f 2c 6e 2c 6e 75 6c 6c 29 3b 63 61 73 65 22 30 o,n,null);case"0 0001cff0: 78 30 34 38 38 61 64 65 34 22 3a 63 61 73 65 22 x0488ade4":case" 0001d000: 30 78 30 34 33 35 38 33 39 34 20 22 3a 69 66 28 0x04358394 ":if( 0001d010: 30 21 3d 3d 61 5b 30 5d 29 62 72 65 61 6b 3b 72 0!==a[0])break;r 0001d020: 65 74 75 72 6e 20 6e 65 77 20 47 6f 28 6a 6f 2c eturn new Go(jo, 0001d030: 52 28 61 2e 73 6c 69 63 65 28 31 29 29 2c 6e 75 R(a.slice(1)),nu 0001d040: 6c 6c 2c 72 2c 69 2c 6f 2c 6e 2c 6e 75 6c 6c 29 ll,r,i,o,n,null) 0001d050: 7d 72 65 74 75 72 6e 20 4e 6f 2e 74 68 72 6f 77 }return No.throw 0001d060: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 0001d070: 6e 76 61 6c 69 64 20 65 78 74 65 6e 64 65 64 20 nvalid extended 0001d080: 6b 65 79 22 2c 22 65 78 74 65 6e 64 65 64 4b 65 key","extendedKe 0001d090: 79 22 2c 22 5b 52 45 44 41 43 54 45 44 5d 22 29 y","[REDACTED]") 0001d0a0: 7d 7d 66 75 6e 63 74 69 6f 6e 20 48 6f 28 65 2c }}function Ho(e, 0001d0b0: 74 29 7b 74 7c 7c 28 74 3d 22 22 29 3b 63 6f 6e t){t||(t="");con 0001d0c0: 73 74 20 6e 3d 71 65 28 22 6d 6e 65 6d 6f 6e 69 st n=qe("mnemoni 0001d0d0: 63 22 2b 74 2c 6a 65 2e 4e 46 4b 44 29 3b 72 65 c"+t,je.NFKD);re 0001d0e0: 74 75 72 6e 20 78 6f 28 71 65 28 65 2c 6a 65 2e turn xo(qe(e,je. 0001d0f0: 4e 46 4b 44 29 2c 6e 2c 32 30 34 38 2c 36 34 2c NFKD),n,2048,64, 0001d100: 22 73 68 61 35 31 32 22 29 7d 66 75 6e 63 74 69 "sha512")}functi 0001d110: 6f 6e 20 56 6f 28 65 2c 74 29 7b 74 3d 42 6f 28 on Vo(e,t){t=Bo( 0001d120: 74 29 2c 4e 6f 2e 63 68 65 63 6b 4e 6f 72 6d 61 t),No.checkNorma 0001d130: 6c 69 7a 65 28 29 3b 63 6f 6e 73 74 20 6e 3d 74 lize();const n=t 0001d140: 2e 73 70 6c 69 74 28 65 29 3b 69 66 28 6e 2e 6c .split(e);if(n.l 0001d150: 65 6e 67 74 68 25 33 21 3d 30 29 74 68 72 6f 77 ength%3!=0)throw 0001d160: 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 76 61 new Error("inva 0001d170: 6c 69 64 20 6d 6e 65 6d 6f 6e 69 63 22 29 3b 63 lid mnemonic");c 0001d180: 6f 6e 73 74 20 72 3d 54 28 6e 65 77 20 55 69 6e onst r=T(new Uin 0001d190: 74 38 41 72 72 61 79 28 4d 61 74 68 2e 63 65 69 t8Array(Math.cei 0001d1a0: 6c 28 31 31 2a 6e 2e 6c 65 6e 67 74 68 2f 38 29 l(11*n.length/8) 0001d1b0: 29 29 3b 6c 65 74 20 6f 3d 30 3b 66 6f 72 28 6c ));let o=0;for(l 0001d1c0: 65 74 20 65 3d 30 3b 65 3c 6e 2e 6c 65 6e 67 74 et e=0;e<n.lengt 0001d1d0: 68 3b 65 2b 2b 29 7b 6c 65 74 20 69 3d 74 2e 67 h;e++){let i=t.g 0001d1e0: 65 74 57 6f 72 64 49 6e 64 65 78 28 6e 5b 65 5d etWordIndex(n[e] 0001d1f0: 2e 6e 6f 72 6d 61 6c 69 7a 65 28 22 4e 46 4b 44 .normalize("NFKD 0001d200: 22 29 29 3b 69 66 28 2d 31 3d 3d 3d 69 29 74 68 "));if(-1===i)th 0001d210: 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 row new Error("i 0001d220: 6e 76 61 6c 69 64 20 6d 6e 65 6d 6f 6e 69 63 22 nvalid mnemonic" 0001d230: 29 3b 66 6f 72 28 6c 65 74 20 65 3d 30 3b 65 3c );for(let e=0;e< 0001d240: 31 31 3b 65 2b 2b 29 69 26 31 3c 3c 31 30 2d 65 11;e++)i&1<<10-e 0001d250: 26 26 28 72 5b 6f 3e 3e 33 5d 7c 3d 31 3c 3c 37 &&(r[o>>3]|=1<<7 0001d260: 2d 6f 25 38 29 2c 6f 2b 2b 7d 63 6f 6e 73 74 20 -o%8),o++}const 0001d270: 69 3d 33 32 2a 6e 2e 6c 65 6e 67 74 68 2f 33 2c i=32*n.length/3, 0001d280: 61 3d 4c 6f 28 6e 2e 6c 65 6e 67 74 68 2f 33 29 a=Lo(n.length/3) 0001d290: 3b 69 66 28 28 54 28 45 6f 28 72 2e 73 6c 69 63 ;if((T(Eo(r.slic 0001d2a0: 65 28 30 2c 69 2f 38 29 29 29 5b 30 5d 26 61 29 e(0,i/8)))[0]&a) 0001d2b0: 21 3d 3d 28 72 5b 72 2e 6c 65 6e 67 74 68 2d 31 !==(r[r.length-1 0001d2c0: 5d 26 61 29 29 74 68 72 6f 77 20 6e 65 77 20 45 ]&a))throw new E 0001d2d0: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 63 68 rror("invalid ch 0001d2e0: 65 63 6b 73 75 6d 22 29 3b 72 65 74 75 72 6e 20 ecksum");return 0001d2f0: 52 28 72 2e 73 6c 69 63 65 28 30 2c 69 2f 38 29 R(r.slice(0,i/8) 0001d300: 29 7d 66 75 6e 63 74 69 6f 6e 20 71 6f 28 65 2c )}function qo(e, 0001d310: 74 29 7b 69 66 28 74 3d 42 6f 28 74 29 2c 28 65 t){if(t=Bo(t),(e 0001d320: 3d 54 28 65 29 29 2e 6c 65 6e 67 74 68 25 34 21 =T(e)).length%4! 0001d330: 3d 30 7c 7c 65 2e 6c 65 6e 67 74 68 3c 31 36 7c =0||e.length<16| 0001d340: 7c 65 2e 6c 65 6e 67 74 68 3e 33 32 29 74 68 72 |e.length>32)thr 0001d350: 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e ow new Error("in 0001d360: 76 61 6c 69 64 20 65 6e 74 72 6f 70 79 22 29 3b valid entropy"); 0001d370: 63 6f 6e 73 74 20 6e 3d 5b 30 5d 3b 6c 65 74 20 const n=[0];let 0001d380: 72 3d 31 31 3b 66 6f 72 28 6c 65 74 20 74 3d 30 r=11;for(let t=0 0001d390: 3b 74 3c 65 2e 6c 65 6e 67 74 68 3b 74 2b 2b 29 ;t<e.length;t++) 0001d3a0: 72 3e 38 3f 28 6e 5b 6e 2e 6c 65 6e 67 74 68 2d r>8?(n[n.length- 0001d3b0: 31 5d 3c 3c 3d 38 2c 6e 5b 6e 2e 6c 65 6e 67 74 1]<<=8,n[n.lengt 0001d3c0: 68 2d 31 5d 7c 3d 65 5b 74 5d 2c 72 2d 3d 38 29 h-1]|=e[t],r-=8) 0001d3d0: 3a 28 6e 5b 6e 2e 6c 65 6e 67 74 68 2d 31 5d 3c :(n[n.length-1]< 0001d3e0: 3c 3d 72 2c 6e 5b 6e 2e 6c 65 6e 67 74 68 2d 31 <=r,n[n.length-1 0001d3f0: 5d 7c 3d 65 5b 74 5d 3e 3e 38 2d 72 2c 6e 2e 70 ]|=e[t]>>8-r,n.p 0001d400: 75 73 68 28 65 5b 74 5d 26 28 31 3c 3c 38 2d 72 ush(e[t]&(1<<8-r 0001d410: 29 2d 31 29 2c 72 2b 3d 33 29 3b 63 6f 6e 73 74 )-1),r+=3);const 0001d420: 20 6f 3d 65 2e 6c 65 6e 67 74 68 2f 34 2c 69 3d o=e.length/4,i= 0001d430: 54 28 45 6f 28 65 29 29 5b 30 5d 26 4c 6f 28 6f T(Eo(e))[0]&Lo(o 0001d440: 29 3b 72 65 74 75 72 6e 20 6e 5b 6e 2e 6c 65 6e );return n[n.len 0001d450: 67 74 68 2d 31 5d 3c 3c 3d 6f 2c 6e 5b 6e 2e 6c gth-1]<<=o,n[n.l 0001d460: 65 6e 67 74 68 2d 31 5d 7c 3d 69 3e 3e 38 2d 6f ength-1]|=i>>8-o 0001d470: 2c 74 2e 6a 6f 69 6e 28 6e 2e 6d 61 70 28 28 65 ,t.join(n.map((e 0001d480: 3d 3e 74 2e 67 65 74 57 6f 72 64 28 65 29 29 29 =>t.getWord(e))) 0001d490: 29 7d 66 75 6e 63 74 69 6f 6e 20 57 6f 28 65 2c )}function Wo(e, 0001d4a0: 74 29 7b 74 72 79 7b 72 65 74 75 72 6e 20 56 6f t){try{return Vo 0001d4b0: 28 65 2c 74 29 2c 21 30 7d 63 61 74 63 68 28 65 (e,t),!0}catch(e 0001d4c0: 29 7b 7d 72 65 74 75 72 6e 21 31 7d 66 75 6e 63 ){}return!1}func 0001d4d0: 74 69 6f 6e 20 4b 6f 28 65 29 7b 72 65 74 75 72 tion Ko(e){retur 0001d4e0: 6e 28 22 6e 75 6d 62 65 72 22 21 3d 74 79 70 65 n("number"!=type 0001d4f0: 6f 66 20 65 7c 7c 65 3c 30 7c 7c 65 3e 3d 44 6f of e||e<0||e>=Do 0001d500: 7c 7c 65 25 31 29 26 26 4e 6f 2e 74 68 72 6f 77 ||e%1)&&No.throw 0001d510: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 0001d520: 6e 76 61 6c 69 64 20 61 63 63 6f 75 6e 74 20 69 nvalid account i 0001d530: 6e 64 65 78 22 2c 22 69 6e 64 65 78 22 2c 65 29 ndex","index",e) 0001d540: 2c 60 6d 2f 34 34 27 2f 36 30 27 2f 24 7b 65 7d ,`m/44'/60'/${e} 0001d550: 27 2f 30 2f 30 60 7d 63 6f 6e 73 74 20 59 6f 3d '/0/0`}const Yo= 0001d560: 6e 65 77 20 79 28 22 72 61 6e 64 6f 6d 2f 35 2e new y("random/5. 0001d570: 37 2e 30 22 29 3b 63 6f 6e 73 74 20 58 6f 3d 66 7.0");const Xo=f 0001d580: 75 6e 63 74 69 6f 6e 28 29 7b 69 66 28 22 75 6e unction(){if("un 0001d590: 64 65 66 69 6e 65 64 22 21 3d 74 79 70 65 6f 66 defined"!=typeof 0001d5a0: 20 73 65 6c 66 29 72 65 74 75 72 6e 20 73 65 6c self)return sel 0001d5b0: 66 3b 69 66 28 22 75 6e 64 65 66 69 6e 65 64 22 f;if("undefined" 0001d5c0: 21 3d 74 79 70 65 6f 66 20 77 69 6e 64 6f 77 29 !=typeof window) 0001d5d0: 72 65 74 75 72 6e 20 77 69 6e 64 6f 77 3b 69 66 return window;if 0001d5e0: 28 76 6f 69 64 20 30 21 3d 3d 6e 2e 67 29 72 65 (void 0!==n.g)re 0001d5f0: 74 75 72 6e 20 6e 2e 67 3b 74 68 72 6f 77 20 6e turn n.g;throw n 0001d600: 65 77 20 45 72 72 6f 72 28 22 75 6e 61 62 6c 65 ew Error("unable 0001d610: 20 74 6f 20 6c 6f 63 61 74 65 20 67 6c 6f 62 61 to locate globa 0001d620: 6c 20 6f 62 6a 65 63 74 22 29 7d 28 29 3b 6c 65 l object")}();le 0001d630: 74 20 5a 6f 3d 58 6f 2e 63 72 79 70 74 6f 7c 7c t Zo=Xo.crypto|| 0001d640: 58 6f 2e 6d 73 43 72 79 70 74 6f 3b 66 75 6e 63 Xo.msCrypto;func 0001d650: 74 69 6f 6e 20 51 6f 28 65 29 7b 28 65 3c 3d 30 tion Qo(e){(e<=0 0001d660: 7c 7c 65 3e 31 30 32 34 7c 7c 65 25 31 7c 7c 65 ||e>1024||e%1||e 0001d670: 21 3d 65 29 26 26 59 6f 2e 74 68 72 6f 77 41 72 !=e)&&Yo.throwAr 0001d680: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 gumentError("inv 0001d690: 61 6c 69 64 20 6c 65 6e 67 74 68 22 2c 22 6c 65 alid length","le 0001d6a0: 6e 67 74 68 22 2c 65 29 3b 63 6f 6e 73 74 20 74 ngth",e);const t 0001d6b0: 3d 6e 65 77 20 55 69 6e 74 38 41 72 72 61 79 28 =new Uint8Array( 0001d6c0: 65 29 3b 72 65 74 75 72 6e 20 5a 6f 2e 67 65 74 e);return Zo.get 0001d6d0: 52 61 6e 64 6f 6d 56 61 6c 75 65 73 28 74 29 2c RandomValues(t), 0001d6e0: 54 28 74 29 7d 5a 6f 26 26 5a 6f 2e 67 65 74 52 T(t)}Zo&&Zo.getR 0001d6f0: 61 6e 64 6f 6d 56 61 6c 75 65 73 7c 7c 28 59 6f andomValues||(Yo 0001d700: 2e 77 61 72 6e 28 22 57 41 52 4e 49 4e 47 3a 20 .warn("WARNING: 0001d710: 4d 69 73 73 69 6e 67 20 73 74 72 6f 6e 67 20 72 Missing strong r 0001d720: 61 6e 64 6f 6d 20 6e 75 6d 62 65 72 20 73 6f 75 andom number sou 0001d730: 72 63 65 22 29 2c 5a 6f 3d 7b 67 65 74 52 61 6e rce"),Zo={getRan 0001d740: 64 6f 6d 56 61 6c 75 65 73 3a 66 75 6e 63 74 69 domValues:functi 0001d750: 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 59 6f 2e on(e){return Yo. 0001d760: 74 68 72 6f 77 45 72 72 6f 72 28 22 6e 6f 20 73 throwError("no s 0001d770: 65 63 75 72 65 20 72 61 6e 64 6f 6d 20 73 6f 75 ecure random sou 0001d780: 72 63 65 20 61 76 61 69 61 6c 62 6c 65 22 2c 79 rce avaialble",y 0001d790: 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 .errors.UNSUPPOR 0001d7a0: 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f TED_OPERATION,{o 0001d7b0: 70 65 72 61 74 69 6f 6e 3a 22 63 72 79 70 74 6f peration:"crypto 0001d7c0: 2e 67 65 74 52 61 6e 64 6f 6d 56 61 6c 75 65 73 .getRandomValues 0001d7d0: 22 7d 29 7d 7d 29 3b 76 61 72 20 4a 6f 3d 6e 28 "})}});var Jo=n( 0001d7e0: 37 38 38 32 36 29 2c 24 6f 3d 6e 2e 6e 28 4a 6f 78826),$o=n.n(Jo 0001d7f0: 29 2c 65 69 3d 6e 28 31 37 36 33 35 29 2c 74 69 ),ei=n(17635),ti 0001d800: 3d 6e 2e 6e 28 65 69 29 3b 66 75 6e 63 74 69 6f =n.n(ei);functio 0001d810: 6e 20 6e 69 28 65 29 7b 72 65 74 75 72 6e 22 73 n ni(e){return"s 0001d820: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 0001d830: 26 26 22 30 78 22 21 3d 3d 65 2e 73 75 62 73 74 &&"0x"!==e.subst 0001d840: 72 69 6e 67 28 30 2c 32 29 26 26 28 65 3d 22 30 ring(0,2)&&(e="0 0001d850: 78 22 2b 65 29 2c 54 28 65 29 7d 66 75 6e 63 74 x"+e),T(e)}funct 0001d860: 69 6f 6e 20 72 69 28 65 2c 74 29 7b 66 6f 72 28 ion ri(e,t){for( 0001d870: 65 3d 53 74 72 69 6e 67 28 65 29 3b 65 2e 6c 65 e=String(e);e.le 0001d880: 6e 67 74 68 3c 74 3b 29 65 3d 22 30 22 2b 65 3b ngth<t;)e="0"+e; 0001d890: 72 65 74 75 72 6e 20 65 7d 66 75 6e 63 74 69 6f return e}functio 0001d8a0: 6e 20 6f 69 28 65 29 7b 72 65 74 75 72 6e 22 73 n oi(e){return"s 0001d8b0: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 0001d8c0: 3f 71 65 28 65 2c 6a 65 2e 4e 46 4b 43 29 3a 54 ?qe(e,je.NFKC):T 0001d8d0: 28 65 29 7d 66 75 6e 63 74 69 6f 6e 20 69 69 28 (e)}function ii( 0001d8e0: 65 2c 74 29 7b 6c 65 74 20 6e 3d 65 3b 63 6f 6e e,t){let n=e;con 0001d8f0: 73 74 20 72 3d 74 2e 74 6f 4c 6f 77 65 72 43 61 st r=t.toLowerCa 0001d900: 73 65 28 29 2e 73 70 6c 69 74 28 22 2f 22 29 3b se().split("/"); 0001d910: 66 6f 72 28 6c 65 74 20 65 3d 30 3b 65 3c 72 2e for(let e=0;e<r. 0001d920: 6c 65 6e 67 74 68 3b 65 2b 2b 29 7b 6c 65 74 20 length;e++){let 0001d930: 74 3d 6e 75 6c 6c 3b 66 6f 72 28 63 6f 6e 73 74 t=null;for(const 0001d940: 20 6f 20 69 6e 20 6e 29 69 66 28 6f 2e 74 6f 4c o in n)if(o.toL 0001d950: 6f 77 65 72 43 61 73 65 28 29 3d 3d 3d 72 5b 65 owerCase()===r[e 0001d960: 5d 29 7b 74 3d 6e 5b 6f 5d 3b 62 72 65 61 6b 7d ]){t=n[o];break} 0001d970: 69 66 28 6e 75 6c 6c 3d 3d 3d 74 29 72 65 74 75 if(null===t)retu 0001d980: 72 6e 20 6e 75 6c 6c 3b 6e 3d 74 7d 72 65 74 75 rn null;n=t}retu 0001d990: 72 6e 20 6e 7d 66 75 6e 63 74 69 6f 6e 20 61 69 rn n}function ai 0001d9a0: 28 65 29 7b 63 6f 6e 73 74 20 74 3d 54 28 65 29 (e){const t=T(e) 0001d9b0: 3b 74 5b 36 5d 3d 31 35 26 74 5b 36 5d 7c 36 34 ;t[6]=15&t[6]|64 0001d9c0: 2c 74 5b 38 5d 3d 36 33 26 74 5b 38 5d 7c 31 32 ,t[8]=63&t[8]|12 0001d9d0: 38 3b 63 6f 6e 73 74 20 6e 3d 52 28 74 29 3b 72 8;const n=R(t);r 0001d9e0: 65 74 75 72 6e 5b 6e 2e 73 75 62 73 74 72 69 6e eturn[n.substrin 0001d9f0: 67 28 32 2c 31 30 29 2c 6e 2e 73 75 62 73 74 72 g(2,10),n.substr 0001da00: 69 6e 67 28 31 30 2c 31 34 29 2c 6e 2e 73 75 62 ing(10,14),n.sub 0001da10: 73 74 72 69 6e 67 28 31 34 2c 31 38 29 2c 6e 2e string(14,18),n. 0001da20: 73 75 62 73 74 72 69 6e 67 28 31 38 2c 32 32 29 substring(18,22) 0001da30: 2c 6e 2e 73 75 62 73 74 72 69 6e 67 28 32 32 2c ,n.substring(22, 0001da40: 33 34 29 5d 2e 6a 6f 69 6e 28 22 2d 22 29 7d 63 34)].join("-")}c 0001da50: 6f 6e 73 74 20 73 69 3d 22 6a 73 6f 6e 2d 77 61 onst si="json-wa 0001da60: 6c 6c 65 74 73 2f 35 2e 37 2e 30 22 3b 76 61 72 llets/5.7.0";var 0001da70: 20 6c 69 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 li=function(e,t 0001da80: 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 6e 65 77 ,n,r){return new 0001da90: 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 65 29 29 (n||(n=Promise)) 0001daa0: 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c 69 29 7b ((function(o,i){ 0001dab0: 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 7b 74 72 function a(e){tr 0001dac0: 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 29 7d 63 y{l(r.next(e))}c 0001dad0: 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 atch(e){i(e)}}fu 0001dae0: 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 72 79 7b nction s(e){try{ 0001daf0: 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 7d 63 61 l(r.throw(e))}ca 0001db00: 74 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e tch(e){i(e)}}fun 0001db10: 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 72 20 74 ction l(e){var t 0001db20: 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 61 6c 75 ;e.done?o(e.valu 0001db30: 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 2c 74 20 e):(t=e.value,t 0001db40: 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f 74 3a 6e instanceof n?t:n 0001db50: 65 77 20 6e 28 28 66 75 6e 63 74 69 6f 6e 28 65 ew n((function(e 0001db60: 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 65 6e 28 ){e(t)}))).then( 0001db70: 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 70 70 6c a,s)}l((r=r.appl 0001db80: 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 78 74 y(e,t||[])).next 0001db90: 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 20 63 69 ())}))};const ci 0001dba0: 3d 6e 65 77 20 79 28 73 69 29 3b 66 75 6e 63 74 =new y(si);funct 0001dbb0: 69 6f 6e 20 75 69 28 65 29 7b 72 65 74 75 72 6e ion ui(e){return 0001dbc0: 20 6e 75 6c 6c 21 3d 65 26 26 65 2e 6d 6e 65 6d null!=e&&e.mnem 0001dbd0: 6f 6e 69 63 26 26 65 2e 6d 6e 65 6d 6f 6e 69 63 onic&&e.mnemonic 0001dbe0: 2e 70 68 72 61 73 65 7d 63 6c 61 73 73 20 64 69 .phrase}class di 0001dbf0: 20 65 78 74 65 6e 64 73 20 75 65 7b 69 73 4b 65 extends ue{isKe 0001dc00: 79 73 74 6f 72 65 41 63 63 6f 75 6e 74 28 65 29 ystoreAccount(e) 0001dc10: 7b 72 65 74 75 72 6e 21 28 21 65 7c 7c 21 65 2e {return!(!e||!e. 0001dc20: 5f 69 73 4b 65 79 73 74 6f 72 65 41 63 63 6f 75 _isKeystoreAccou 0001dc30: 6e 74 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 70 69 nt)}}function pi 0001dc40: 28 65 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 6e 69 (e,t){const n=ni 0001dc50: 28 69 69 28 65 2c 22 63 72 79 70 74 6f 2f 63 69 (ii(e,"crypto/ci 0001dc60: 70 68 65 72 74 65 78 74 22 29 29 3b 69 66 28 52 phertext"));if(R 0001dc70: 28 76 65 28 43 28 5b 74 2e 73 6c 69 63 65 28 31 (ve(C([t.slice(1 0001dc80: 36 2c 33 32 29 2c 6e 5d 29 29 29 2e 73 75 62 73 6,32),n]))).subs 0001dc90: 74 72 69 6e 67 28 32 29 21 3d 3d 69 69 28 65 2c tring(2)!==ii(e, 0001dca0: 22 63 72 79 70 74 6f 2f 6d 61 63 22 29 2e 74 6f "crypto/mac").to 0001dcb0: 4c 6f 77 65 72 43 61 73 65 28 29 29 74 68 72 6f LowerCase())thro 0001dcc0: 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 76 w new Error("inv 0001dcd0: 61 6c 69 64 20 70 61 73 73 77 6f 72 64 22 29 3b alid password"); 0001dce0: 63 6f 6e 73 74 20 72 3d 66 75 6e 63 74 69 6f 6e const r=function 0001dcf0: 28 65 2c 74 2c 6e 29 7b 69 66 28 22 61 65 73 2d (e,t,n){if("aes- 0001dd00: 31 32 38 2d 63 74 72 22 3d 3d 3d 69 69 28 65 2c 128-ctr"===ii(e, 0001dd10: 22 63 72 79 70 74 6f 2f 63 69 70 68 65 72 22 29 "crypto/cipher") 0001dd20: 29 7b 63 6f 6e 73 74 20 72 3d 6e 69 28 69 69 28 ){const r=ni(ii( 0001dd30: 65 2c 22 63 72 79 70 74 6f 2f 63 69 70 68 65 72 e,"crypto/cipher 0001dd40: 70 61 72 61 6d 73 2f 69 76 22 29 29 2c 6f 3d 6e params/iv")),o=n 0001dd50: 65 77 28 24 6f 28 29 2e 43 6f 75 6e 74 65 72 29 ew($o().Counter) 0001dd60: 28 72 29 3b 72 65 74 75 72 6e 20 54 28 6e 65 77 (r);return T(new 0001dd70: 28 24 6f 28 29 2e 4d 6f 64 65 4f 66 4f 70 65 72 ($o().ModeOfOper 0001dd80: 61 74 69 6f 6e 2e 63 74 72 29 28 74 2c 6f 29 2e ation.ctr)(t,o). 0001dd90: 64 65 63 72 79 70 74 28 6e 29 29 7d 72 65 74 75 decrypt(n))}retu 0001dda0: 72 6e 20 6e 75 6c 6c 7d 28 65 2c 74 2e 73 6c 69 rn null}(e,t.sli 0001ddb0: 63 65 28 30 2c 31 36 29 2c 6e 29 3b 72 7c 7c 63 ce(0,16),n);r||c 0001ddc0: 69 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 75 6e i.throwError("un 0001ddd0: 73 75 70 70 6f 72 74 65 64 20 63 69 70 68 65 72 supported cipher 0001dde0: 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 ",y.errors.UNSUP 0001ddf0: 50 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e PORTED_OPERATION 0001de00: 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a 22 64 65 63 ,{operation:"dec 0001de10: 72 79 70 74 22 7d 29 3b 63 6f 6e 73 74 20 6f 3d rypt"});const o= 0001de20: 74 2e 73 6c 69 63 65 28 33 32 2c 36 34 29 2c 69 t.slice(32,64),i 0001de30: 3d 63 72 28 72 29 3b 69 66 28 65 2e 61 64 64 72 =cr(r);if(e.addr 0001de40: 65 73 73 29 7b 6c 65 74 20 74 3d 65 2e 61 64 64 ess){let t=e.add 0001de50: 72 65 73 73 2e 74 6f 4c 6f 77 65 72 43 61 73 65 ress.toLowerCase 0001de60: 28 29 3b 69 66 28 22 30 78 22 21 3d 3d 74 2e 73 ();if("0x"!==t.s 0001de70: 75 62 73 74 72 69 6e 67 28 30 2c 32 29 26 26 28 ubstring(0,2)&&( 0001de80: 74 3d 22 30 78 22 2b 74 29 2c 4d 65 28 74 29 21 t="0x"+t),Me(t)! 0001de90: 3d 3d 69 29 74 68 72 6f 77 20 6e 65 77 20 45 72 ==i)throw new Er 0001dea0: 72 6f 72 28 22 61 64 64 72 65 73 73 20 6d 69 73 ror("address mis 0001deb0: 6d 61 74 63 68 22 29 7d 63 6f 6e 73 74 20 61 3d match")}const a= 0001dec0: 7b 5f 69 73 4b 65 79 73 74 6f 72 65 41 63 63 6f {_isKeystoreAcco 0001ded0: 75 6e 74 3a 21 30 2c 61 64 64 72 65 73 73 3a 69 unt:!0,address:i 0001dee0: 2c 70 72 69 76 61 74 65 4b 65 79 3a 52 28 72 29 ,privateKey:R(r) 0001def0: 7d 3b 69 66 28 22 30 2e 31 22 3d 3d 3d 69 69 28 };if("0.1"===ii( 0001df00: 65 2c 22 78 2d 65 74 68 65 72 73 2f 76 65 72 73 e,"x-ethers/vers 0001df10: 69 6f 6e 22 29 29 7b 63 6f 6e 73 74 20 74 3d 6e ion")){const t=n 0001df20: 69 28 69 69 28 65 2c 22 78 2d 65 74 68 65 72 73 i(ii(e,"x-ethers 0001df30: 2f 6d 6e 65 6d 6f 6e 69 63 43 69 70 68 65 72 74 /mnemonicCiphert 0001df40: 65 78 74 22 29 29 2c 6e 3d 6e 69 28 69 69 28 65 ext")),n=ni(ii(e 0001df50: 2c 22 78 2d 65 74 68 65 72 73 2f 6d 6e 65 6d 6f ,"x-ethers/mnemo 0001df60: 6e 69 63 43 6f 75 6e 74 65 72 22 29 29 2c 72 3d nicCounter")),r= 0001df70: 6e 65 77 28 24 6f 28 29 2e 43 6f 75 6e 74 65 72 new($o().Counter 0001df80: 29 28 6e 29 2c 69 3d 6e 65 77 28 24 6f 28 29 2e )(n),i=new($o(). 0001df90: 4d 6f 64 65 4f 66 4f 70 65 72 61 74 69 6f 6e 2e ModeOfOperation. 0001dfa0: 63 74 72 29 28 6f 2c 72 29 2c 73 3d 69 69 28 65 ctr)(o,r),s=ii(e 0001dfb0: 2c 22 78 2d 65 74 68 65 72 73 2f 70 61 74 68 22 ,"x-ethers/path" 0001dfc0: 29 7c 7c 7a 6f 2c 6c 3d 69 69 28 65 2c 22 78 2d )||zo,l=ii(e,"x- 0001dfd0: 65 74 68 65 72 73 2f 6c 6f 63 61 6c 65 22 29 7c ethers/locale")| 0001dfe0: 7c 22 65 6e 22 2c 63 3d 54 28 69 2e 64 65 63 72 |"en",c=T(i.decr 0001dff0: 79 70 74 28 74 29 29 3b 74 72 79 7b 63 6f 6e 73 ypt(t));try{cons 0001e000: 74 20 65 3d 71 6f 28 63 2c 6c 29 2c 74 3d 47 6f t e=qo(c,l),t=Go 0001e010: 2e 66 72 6f 6d 4d 6e 65 6d 6f 6e 69 63 28 65 2c .fromMnemonic(e, 0001e020: 6e 75 6c 6c 2c 6c 29 2e 64 65 72 69 76 65 50 61 null,l).derivePa 0001e030: 74 68 28 73 29 3b 69 66 28 74 2e 70 72 69 76 61 th(s);if(t.priva 0001e040: 74 65 4b 65 79 21 3d 61 2e 70 72 69 76 61 74 65 teKey!=a.private 0001e050: 4b 65 79 29 74 68 72 6f 77 20 6e 65 77 20 45 72 Key)throw new Er 0001e060: 72 6f 72 28 22 6d 6e 65 6d 6f 6e 69 63 20 6d 69 ror("mnemonic mi 0001e070: 73 6d 61 74 63 68 22 29 3b 61 2e 6d 6e 65 6d 6f smatch");a.mnemo 0001e080: 6e 69 63 3d 74 2e 6d 6e 65 6d 6f 6e 69 63 7d 63 nic=t.mnemonic}c 0001e090: 61 74 63 68 28 65 29 7b 69 66 28 65 2e 63 6f 64 atch(e){if(e.cod 0001e0a0: 65 21 3d 3d 79 2e 65 72 72 6f 72 73 2e 49 4e 56 e!==y.errors.INV 0001e0b0: 41 4c 49 44 5f 41 52 47 55 4d 45 4e 54 7c 7c 22 ALID_ARGUMENT||" 0001e0c0: 77 6f 72 64 6c 69 73 74 22 21 3d 3d 65 2e 61 72 wordlist"!==e.ar 0001e0d0: 67 75 6d 65 6e 74 29 74 68 72 6f 77 20 65 7d 7d gument)throw e}} 0001e0e0: 72 65 74 75 72 6e 20 6e 65 77 20 64 69 28 61 29 return new di(a) 0001e0f0: 7d 66 75 6e 63 74 69 6f 6e 20 66 69 28 65 2c 74 }function fi(e,t 0001e100: 2c 6e 2c 72 2c 6f 29 7b 72 65 74 75 72 6e 20 54 ,n,r,o){return T 0001e110: 28 78 6f 28 65 2c 74 2c 6e 2c 72 2c 6f 29 29 7d (xo(e,t,n,r,o))} 0001e120: 66 75 6e 63 74 69 6f 6e 20 68 69 28 65 2c 74 2c function hi(e,t, 0001e130: 6e 2c 72 2c 6f 29 7b 72 65 74 75 72 6e 20 50 72 n,r,o){return Pr 0001e140: 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 66 69 omise.resolve(fi 0001e150: 28 65 2c 74 2c 6e 2c 72 2c 6f 29 29 7d 66 75 6e (e,t,n,r,o))}fun 0001e160: 63 74 69 6f 6e 20 6d 69 28 65 2c 74 2c 6e 2c 72 ction mi(e,t,n,r 0001e170: 2c 6f 29 7b 63 6f 6e 73 74 20 69 3d 6f 69 28 74 ,o){const i=oi(t 0001e180: 29 2c 61 3d 69 69 28 65 2c 22 63 72 79 70 74 6f ),a=ii(e,"crypto 0001e190: 2f 6b 64 66 22 29 3b 69 66 28 61 26 26 22 73 74 /kdf");if(a&&"st 0001e1a0: 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 61 29 ring"==typeof a) 0001e1b0: 7b 63 6f 6e 73 74 20 74 3d 66 75 6e 63 74 69 6f {const t=functio 0001e1c0: 6e 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 63 69 n(e,t){return ci 0001e1d0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 0001e1e0: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 6b 65 79 ror("invalid key 0001e1f0: 2d 64 65 72 69 76 61 74 69 6f 6e 20 66 75 6e 63 -derivation func 0001e200: 74 69 6f 6e 20 70 61 72 61 6d 65 74 65 72 73 22 tion parameters" 0001e210: 2c 65 2c 74 29 7d 3b 69 66 28 22 73 63 72 79 70 ,e,t)};if("scryp 0001e220: 74 22 3d 3d 3d 61 2e 74 6f 4c 6f 77 65 72 43 61 t"===a.toLowerCa 0001e230: 73 65 28 29 29 7b 63 6f 6e 73 74 20 6e 3d 6e 69 se()){const n=ni 0001e240: 28 69 69 28 65 2c 22 63 72 79 70 74 6f 2f 6b 64 (ii(e,"crypto/kd 0001e250: 66 70 61 72 61 6d 73 2f 73 61 6c 74 22 29 29 2c fparams/salt")), 0001e260: 73 3d 70 61 72 73 65 49 6e 74 28 69 69 28 65 2c s=parseInt(ii(e, 0001e270: 22 63 72 79 70 74 6f 2f 6b 64 66 70 61 72 61 6d "crypto/kdfparam 0001e280: 73 2f 6e 22 29 29 2c 6c 3d 70 61 72 73 65 49 6e s/n")),l=parseIn 0001e290: 74 28 69 69 28 65 2c 22 63 72 79 70 74 6f 2f 6b t(ii(e,"crypto/k 0001e2a0: 64 66 70 61 72 61 6d 73 2f 72 22 29 29 2c 63 3d dfparams/r")),c= 0001e2b0: 70 61 72 73 65 49 6e 74 28 69 69 28 65 2c 22 63 parseInt(ii(e,"c 0001e2c0: 72 79 70 74 6f 2f 6b 64 66 70 61 72 61 6d 73 2f rypto/kdfparams/ 0001e2d0: 70 22 29 29 3b 73 26 26 6c 26 26 63 7c 7c 74 28 p"));s&&l&&c||t( 0001e2e0: 22 6b 64 66 22 2c 61 29 2c 30 21 3d 28 73 26 73 "kdf",a),0!=(s&s 0001e2f0: 2d 31 29 26 26 74 28 22 4e 22 2c 73 29 3b 63 6f -1)&&t("N",s);co 0001e300: 6e 73 74 20 75 3d 70 61 72 73 65 49 6e 74 28 69 nst u=parseInt(i 0001e310: 69 28 65 2c 22 63 72 79 70 74 6f 2f 6b 64 66 70 i(e,"crypto/kdfp 0001e320: 61 72 61 6d 73 2f 64 6b 6c 65 6e 22 29 29 3b 72 arams/dklen"));r 0001e330: 65 74 75 72 6e 20 33 32 21 3d 3d 75 26 26 74 28 eturn 32!==u&&t( 0001e340: 22 64 6b 6c 65 6e 22 2c 75 29 2c 72 28 69 2c 6e "dklen",u),r(i,n 0001e350: 2c 73 2c 6c 2c 63 2c 36 34 2c 6f 29 7d 69 66 28 ,s,l,c,64,o)}if( 0001e360: 22 70 62 6b 64 66 32 22 3d 3d 3d 61 2e 74 6f 4c "pbkdf2"===a.toL 0001e370: 6f 77 65 72 43 61 73 65 28 29 29 7b 63 6f 6e 73 owerCase()){cons 0001e380: 74 20 72 3d 6e 69 28 69 69 28 65 2c 22 63 72 79 t r=ni(ii(e,"cry 0001e390: 70 74 6f 2f 6b 64 66 70 61 72 61 6d 73 2f 73 61 pto/kdfparams/sa 0001e3a0: 6c 74 22 29 29 3b 6c 65 74 20 6f 3d 6e 75 6c 6c lt"));let o=null 0001e3b0: 3b 63 6f 6e 73 74 20 61 3d 69 69 28 65 2c 22 63 ;const a=ii(e,"c 0001e3c0: 72 79 70 74 6f 2f 6b 64 66 70 61 72 61 6d 73 2f rypto/kdfparams/ 0001e3d0: 70 72 66 22 29 3b 22 68 6d 61 63 2d 73 68 61 32 prf");"hmac-sha2 0001e3e0: 35 36 22 3d 3d 3d 61 3f 6f 3d 22 73 68 61 32 35 56"===a?o="sha25 0001e3f0: 36 22 3a 22 68 6d 61 63 2d 73 68 61 35 31 32 22 6":"hmac-sha512" 0001e400: 3d 3d 3d 61 3f 6f 3d 22 73 68 61 35 31 32 22 3a ===a?o="sha512": 0001e410: 74 28 22 70 72 66 22 2c 61 29 3b 63 6f 6e 73 74 t("prf",a);const 0001e420: 20 73 3d 70 61 72 73 65 49 6e 74 28 69 69 28 65 s=parseInt(ii(e 0001e430: 2c 22 63 72 79 70 74 6f 2f 6b 64 66 70 61 72 61 ,"crypto/kdfpara 0001e440: 6d 73 2f 63 22 29 29 2c 6c 3d 70 61 72 73 65 49 ms/c")),l=parseI 0001e450: 6e 74 28 69 69 28 65 2c 22 63 72 79 70 74 6f 2f nt(ii(e,"crypto/ 0001e460: 6b 64 66 70 61 72 61 6d 73 2f 64 6b 6c 65 6e 22 kdfparams/dklen" 0001e470: 29 29 3b 72 65 74 75 72 6e 20 33 32 21 3d 3d 6c ));return 32!==l 0001e480: 26 26 74 28 22 64 6b 6c 65 6e 22 2c 6c 29 2c 6e &&t("dklen",l),n 0001e490: 28 69 2c 72 2c 73 2c 6c 2c 6f 29 7d 7d 72 65 74 (i,r,s,l,o)}}ret 0001e4a0: 75 72 6e 20 63 69 2e 74 68 72 6f 77 41 72 67 75 urn ci.throwArgu 0001e4b0: 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 73 75 70 mentError("unsup 0001e4c0: 70 6f 72 74 65 64 20 6b 65 79 2d 64 65 72 69 76 ported key-deriv 0001e4d0: 61 74 69 6f 6e 20 66 75 6e 63 74 69 6f 6e 22 2c ation function", 0001e4e0: 22 6b 64 66 22 2c 61 29 7d 63 6f 6e 73 74 20 67 "kdf",a)}const g 0001e4f0: 69 3d 6e 65 77 20 79 28 73 69 29 3b 63 6c 61 73 i=new y(si);clas 0001e500: 73 20 62 69 20 65 78 74 65 6e 64 73 20 75 65 7b s bi extends ue{ 0001e510: 69 73 43 72 6f 77 64 73 61 6c 65 41 63 63 6f 75 isCrowdsaleAccou 0001e520: 6e 74 28 65 29 7b 72 65 74 75 72 6e 21 28 21 65 nt(e){return!(!e 0001e530: 7c 7c 21 65 2e 5f 69 73 43 72 6f 77 64 73 61 6c ||!e._isCrowdsal 0001e540: 65 41 63 63 6f 75 6e 74 29 7d 7d 66 75 6e 63 74 eAccount)}}funct 0001e550: 69 6f 6e 20 79 69 28 65 2c 74 29 7b 63 6f 6e 73 ion yi(e,t){cons 0001e560: 74 20 6e 3d 4a 53 4f 4e 2e 70 61 72 73 65 28 65 t n=JSON.parse(e 0001e570: 29 3b 74 3d 6f 69 28 74 29 3b 63 6f 6e 73 74 20 );t=oi(t);const 0001e580: 72 3d 4d 65 28 69 69 28 6e 2c 22 65 74 68 61 64 r=Me(ii(n,"ethad 0001e590: 64 72 22 29 29 2c 6f 3d 6e 69 28 69 69 28 6e 2c dr")),o=ni(ii(n, 0001e5a0: 22 65 6e 63 73 65 65 64 22 29 29 3b 6f 26 26 6f "encseed"));o&&o 0001e5b0: 2e 6c 65 6e 67 74 68 25 31 36 3d 3d 30 7c 7c 67 .length%16==0||g 0001e5c0: 69 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 i.throwArgumentE 0001e5d0: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 65 6e rror("invalid en 0001e5e0: 63 73 65 65 64 22 2c 22 6a 73 6f 6e 22 2c 65 29 cseed","json",e) 0001e5f0: 3b 63 6f 6e 73 74 20 69 3d 54 28 78 6f 28 74 2c ;const i=T(xo(t, 0001e600: 74 2c 32 65 33 2c 33 32 2c 22 73 68 61 32 35 36 t,2e3,32,"sha256 0001e610: 22 29 29 2e 73 6c 69 63 65 28 30 2c 31 36 29 2c ")).slice(0,16), 0001e620: 61 3d 6f 2e 73 6c 69 63 65 28 30 2c 31 36 29 2c a=o.slice(0,16), 0001e630: 73 3d 6f 2e 73 6c 69 63 65 28 31 36 29 2c 6c 3d s=o.slice(16),l= 0001e640: 6e 65 77 28 24 6f 28 29 2e 4d 6f 64 65 4f 66 4f new($o().ModeOfO 0001e650: 70 65 72 61 74 69 6f 6e 2e 63 62 63 29 28 69 2c peration.cbc)(i, 0001e660: 61 29 2c 63 3d 24 6f 28 29 2e 70 61 64 64 69 6e a),c=$o().paddin 0001e670: 67 2e 70 6b 63 73 37 2e 73 74 72 69 70 28 54 28 g.pkcs7.strip(T( 0001e680: 6c 2e 64 65 63 72 79 70 74 28 73 29 29 29 3b 6c l.decrypt(s)));l 0001e690: 65 74 20 75 3d 22 22 3b 66 6f 72 28 6c 65 74 20 et u="";for(let 0001e6a0: 65 3d 30 3b 65 3c 63 2e 6c 65 6e 67 74 68 3b 65 e=0;e<c.length;e 0001e6b0: 2b 2b 29 75 2b 3d 53 74 72 69 6e 67 2e 66 72 6f ++)u+=String.fro 0001e6c0: 6d 43 68 61 72 43 6f 64 65 28 63 5b 65 5d 29 3b mCharCode(c[e]); 0001e6d0: 63 6f 6e 73 74 20 64 3d 76 65 28 71 65 28 75 29 const d=ve(qe(u) 0001e6e0: 29 3b 72 65 74 75 72 6e 20 6e 65 77 20 62 69 28 );return new bi( 0001e6f0: 7b 5f 69 73 43 72 6f 77 64 73 61 6c 65 41 63 63 {_isCrowdsaleAcc 0001e700: 6f 75 6e 74 3a 21 30 2c 61 64 64 72 65 73 73 3a ount:!0,address: 0001e710: 72 2c 70 72 69 76 61 74 65 4b 65 79 3a 64 7d 29 r,privateKey:d}) 0001e720: 7d 66 75 6e 63 74 69 6f 6e 20 76 69 28 65 29 7b }function vi(e){ 0001e730: 6c 65 74 20 74 3d 6e 75 6c 6c 3b 74 72 79 7b 74 let t=null;try{t 0001e740: 3d 4a 53 4f 4e 2e 70 61 72 73 65 28 65 29 7d 63 =JSON.parse(e)}c 0001e750: 61 74 63 68 28 65 29 7b 72 65 74 75 72 6e 21 31 atch(e){return!1 0001e760: 7d 72 65 74 75 72 6e 20 74 2e 65 6e 63 73 65 65 }return t.encsee 0001e770: 64 26 26 74 2e 65 74 68 61 64 64 72 7d 66 75 6e d&&t.ethaddr}fun 0001e780: 63 74 69 6f 6e 20 53 69 28 65 29 7b 6c 65 74 20 ction Si(e){let 0001e790: 74 3d 6e 75 6c 6c 3b 74 72 79 7b 74 3d 4a 53 4f t=null;try{t=JSO 0001e7a0: 4e 2e 70 61 72 73 65 28 65 29 7d 63 61 74 63 68 N.parse(e)}catch 0001e7b0: 28 65 29 7b 72 65 74 75 72 6e 21 31 7d 72 65 74 (e){return!1}ret 0001e7c0: 75 72 6e 21 28 21 74 2e 76 65 72 73 69 6f 6e 7c urn!(!t.version| 0001e7d0: 7c 70 61 72 73 65 49 6e 74 28 74 2e 76 65 72 73 |parseInt(t.vers 0001e7e0: 69 6f 6e 29 21 3d 3d 74 2e 76 65 72 73 69 6f 6e ion)!==t.version 0001e7f0: 7c 7c 33 21 3d 3d 70 61 72 73 65 49 6e 74 28 74 ||3!==parseInt(t 0001e800: 2e 76 65 72 73 69 6f 6e 29 29 7d 66 75 6e 63 74 .version))}funct 0001e810: 69 6f 6e 20 45 69 28 65 29 7b 69 66 28 76 69 28 ion Ei(e){if(vi( 0001e820: 65 29 29 74 72 79 7b 72 65 74 75 72 6e 20 4d 65 e))try{return Me 0001e830: 28 4a 53 4f 4e 2e 70 61 72 73 65 28 65 29 2e 65 (JSON.parse(e).e 0001e840: 74 68 61 64 64 72 29 7d 63 61 74 63 68 28 65 29 thaddr)}catch(e) 0001e850: 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 7d 69 66 28 {return null}if( 0001e860: 53 69 28 65 29 29 74 72 79 7b 72 65 74 75 72 6e Si(e))try{return 0001e870: 20 4d 65 28 4a 53 4f 4e 2e 70 61 72 73 65 28 65 Me(JSON.parse(e 0001e880: 29 2e 61 64 64 72 65 73 73 29 7d 63 61 74 63 68 ).address)}catch 0001e890: 28 65 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 7d (e){return null} 0001e8a0: 72 65 74 75 72 6e 20 6e 75 6c 6c 7d 66 75 6e 63 return null}func 0001e8b0: 74 69 6f 6e 20 5f 69 28 65 2c 74 2c 6e 29 7b 69 tion _i(e,t,n){i 0001e8c0: 66 28 76 69 28 65 29 29 7b 6e 26 26 6e 28 30 29 f(vi(e)){n&&n(0) 0001e8d0: 3b 63 6f 6e 73 74 20 72 3d 79 69 28 65 2c 74 29 ;const r=yi(e,t) 0001e8e0: 3b 72 65 74 75 72 6e 20 6e 26 26 6e 28 31 29 2c ;return n&&n(1), 0001e8f0: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 0001e900: 72 29 7d 72 65 74 75 72 6e 20 53 69 28 65 29 3f r)}return Si(e)? 0001e910: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 7b function(e,t,n){ 0001e920: 72 65 74 75 72 6e 20 6c 69 28 74 68 69 73 2c 76 return li(this,v 0001e930: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 0001e940: 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 nction*(){const 0001e950: 72 3d 4a 53 4f 4e 2e 70 61 72 73 65 28 65 29 3b r=JSON.parse(e); 0001e960: 72 65 74 75 72 6e 20 70 69 28 72 2c 79 69 65 6c return pi(r,yiel 0001e970: 64 20 6d 69 28 72 2c 74 2c 68 69 2c 74 69 28 29 d mi(r,t,hi,ti() 0001e980: 2e 73 63 72 79 70 74 2c 6e 29 29 7d 29 29 7d 28 .scrypt,n))}))}( 0001e990: 65 2c 74 2c 6e 29 3a 50 72 6f 6d 69 73 65 2e 72 e,t,n):Promise.r 0001e9a0: 65 6a 65 63 74 28 6e 65 77 20 45 72 72 6f 72 28 eject(new Error( 0001e9b0: 22 69 6e 76 61 6c 69 64 20 4a 53 4f 4e 20 77 61 "invalid JSON wa 0001e9c0: 6c 6c 65 74 22 29 29 7d 66 75 6e 63 74 69 6f 6e llet"))}function 0001e9d0: 20 77 69 28 65 2c 74 29 7b 69 66 28 76 69 28 65 wi(e,t){if(vi(e 0001e9e0: 29 29 72 65 74 75 72 6e 20 79 69 28 65 2c 74 29 ))return yi(e,t) 0001e9f0: 3b 69 66 28 53 69 28 65 29 29 72 65 74 75 72 6e ;if(Si(e))return 0001ea00: 20 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 63 function(e,t){c 0001ea10: 6f 6e 73 74 20 6e 3d 4a 53 4f 4e 2e 70 61 72 73 onst n=JSON.pars 0001ea20: 65 28 65 29 3b 72 65 74 75 72 6e 20 70 69 28 6e e(e);return pi(n 0001ea30: 2c 6d 69 28 6e 2c 74 2c 66 69 2c 74 69 28 29 2e ,mi(n,t,fi,ti(). 0001ea40: 73 79 6e 63 53 63 72 79 70 74 29 29 7d 28 65 2c syncScrypt))}(e, 0001ea50: 74 29 3b 74 68 72 6f 77 20 6e 65 77 20 45 72 72 t);throw new Err 0001ea60: 6f 72 28 22 69 6e 76 61 6c 69 64 20 4a 53 4f 4e or("invalid JSON 0001ea70: 20 77 61 6c 6c 65 74 22 29 7d 76 61 72 20 78 69 wallet")}var xi 0001ea80: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c =function(e,t,n, 0001ea90: 72 29 7b 72 65 74 75 72 6e 20 6e 65 77 28 6e 7c r){return new(n| 0001eaa0: 7c 28 6e 3d 50 72 6f 6d 69 73 65 29 29 28 28 66 |(n=Promise))((f 0001eab0: 75 6e 63 74 69 6f 6e 28 6f 2c 69 29 7b 66 75 6e unction(o,i){fun 0001eac0: 63 74 69 6f 6e 20 61 28 65 29 7b 74 72 79 7b 6c ction a(e){try{l 0001ead0: 28 72 2e 6e 65 78 74 28 65 29 29 7d 63 61 74 63 (r.next(e))}catc 0001eae0: 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 h(e){i(e)}}funct 0001eaf0: 69 6f 6e 20 73 28 65 29 7b 74 72 79 7b 6c 28 72 ion s(e){try{l(r 0001eb00: 2e 74 68 72 6f 77 28 65 29 29 7d 63 61 74 63 68 .throw(e))}catch 0001eb10: 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 69 (e){i(e)}}functi 0001eb20: 6f 6e 20 6c 28 65 29 7b 76 61 72 20 74 3b 65 2e on l(e){var t;e. 0001eb30: 64 6f 6e 65 3f 6f 28 65 2e 76 61 6c 75 65 29 3a done?o(e.value): 0001eb40: 28 74 3d 65 2e 76 61 6c 75 65 2c 74 20 69 6e 73 (t=e.value,t ins 0001eb50: 74 61 6e 63 65 6f 66 20 6e 3f 74 3a 6e 65 77 20 tanceof n?t:new 0001eb60: 6e 28 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b 65 n((function(e){e 0001eb70: 28 74 29 7d 29 29 29 2e 74 68 65 6e 28 61 2c 73 (t)}))).then(a,s 0001eb80: 29 7d 6c 28 28 72 3d 72 2e 61 70 70 6c 79 28 65 )}l((r=r.apply(e 0001eb90: 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 78 74 28 29 29 ,t||[])).next()) 0001eba0: 7d 29 29 7d 3b 63 6f 6e 73 74 20 54 69 3d 6e 65 }))};const Ti=ne 0001ebb0: 77 20 79 28 22 77 61 6c 6c 65 74 2f 35 2e 37 2e w y("wallet/5.7. 0001ebc0: 30 22 29 3b 63 6c 61 73 73 20 43 69 20 65 78 74 0");class Ci ext 0001ebd0: 65 6e 64 73 20 64 6e 7b 63 6f 6e 73 74 72 75 63 ends dn{construc 0001ebe0: 74 6f 72 28 65 2c 74 29 7b 69 66 28 73 75 70 65 tor(e,t){if(supe 0001ebf0: 72 28 29 2c 6e 75 6c 6c 21 3d 28 6e 3d 65 29 26 r(),null!=(n=e)& 0001ec00: 26 49 28 6e 2e 70 72 69 76 61 74 65 4b 65 79 2c &I(n.privateKey, 0001ec10: 33 32 29 26 26 6e 75 6c 6c 21 3d 6e 2e 61 64 64 32)&&null!=n.add 0001ec20: 72 65 73 73 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 ress){const t=ne 0001ec30: 77 20 65 72 28 65 2e 70 72 69 76 61 74 65 4b 65 w er(e.privateKe 0001ec40: 79 29 3b 69 66 28 74 65 28 74 68 69 73 2c 22 5f y);if(te(this,"_ 0001ec50: 73 69 67 6e 69 6e 67 4b 65 79 22 2c 28 28 29 3d signingKey",(()= 0001ec60: 3e 74 29 29 2c 74 65 28 74 68 69 73 2c 22 61 64 >t)),te(this,"ad 0001ec70: 64 72 65 73 73 22 2c 63 72 28 74 68 69 73 2e 70 dress",cr(this.p 0001ec80: 75 62 6c 69 63 4b 65 79 29 29 2c 74 68 69 73 2e ublicKey)),this. 0001ec90: 61 64 64 72 65 73 73 21 3d 3d 4d 65 28 65 2e 61 address!==Me(e.a 0001eca0: 64 64 72 65 73 73 29 26 26 54 69 2e 74 68 72 6f ddress)&&Ti.thro 0001ecb0: 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 wArgumentError(" 0001ecc0: 70 72 69 76 61 74 65 4b 65 79 2f 61 64 64 72 65 privateKey/addre 0001ecd0: 73 73 20 6d 69 73 6d 61 74 63 68 22 2c 22 70 72 ss mismatch","pr 0001ece0: 69 76 61 74 65 4b 65 79 22 2c 22 5b 52 45 44 41 ivateKey","[REDA 0001ecf0: 43 54 45 44 5d 22 29 2c 66 75 6e 63 74 69 6f 6e CTED]"),function 0001ed00: 28 65 29 7b 63 6f 6e 73 74 20 74 3d 65 2e 6d 6e (e){const t=e.mn 0001ed10: 65 6d 6f 6e 69 63 3b 72 65 74 75 72 6e 20 74 26 emonic;return t& 0001ed20: 26 74 2e 70 68 72 61 73 65 7d 28 65 29 29 7b 63 &t.phrase}(e)){c 0001ed30: 6f 6e 73 74 20 74 3d 65 2e 6d 6e 65 6d 6f 6e 69 onst t=e.mnemoni 0001ed40: 63 3b 74 65 28 74 68 69 73 2c 22 5f 6d 6e 65 6d c;te(this,"_mnem 0001ed50: 6f 6e 69 63 22 2c 28 28 29 3d 3e 28 7b 70 68 72 onic",(()=>({phr 0001ed60: 61 73 65 3a 74 2e 70 68 72 61 73 65 2c 70 61 74 ase:t.phrase,pat 0001ed70: 68 3a 74 2e 70 61 74 68 7c 7c 7a 6f 2c 6c 6f 63 h:t.path||zo,loc 0001ed80: 61 6c 65 3a 74 2e 6c 6f 63 61 6c 65 7c 7c 22 65 ale:t.locale||"e 0001ed90: 6e 22 7d 29 29 29 3b 63 6f 6e 73 74 20 6e 3d 74 n"})));const n=t 0001eda0: 68 69 73 2e 6d 6e 65 6d 6f 6e 69 63 3b 63 72 28 his.mnemonic;cr( 0001edb0: 47 6f 2e 66 72 6f 6d 4d 6e 65 6d 6f 6e 69 63 28 Go.fromMnemonic( 0001edc0: 6e 2e 70 68 72 61 73 65 2c 6e 75 6c 6c 2c 6e 2e n.phrase,null,n. 0001edd0: 6c 6f 63 61 6c 65 29 2e 64 65 72 69 76 65 50 61 locale).derivePa 0001ede0: 74 68 28 6e 2e 70 61 74 68 29 2e 70 72 69 76 61 th(n.path).priva 0001edf0: 74 65 4b 65 79 29 21 3d 3d 74 68 69 73 2e 61 64 teKey)!==this.ad 0001ee00: 64 72 65 73 73 26 26 54 69 2e 74 68 72 6f 77 41 dress&&Ti.throwA 0001ee10: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 6d 6e rgumentError("mn 0001ee20: 65 6d 6f 6e 69 63 2f 61 64 64 72 65 73 73 20 6d emonic/address m 0001ee30: 69 73 6d 61 74 63 68 22 2c 22 70 72 69 76 61 74 ismatch","privat 0001ee40: 65 4b 65 79 22 2c 22 5b 52 45 44 41 43 54 45 44 eKey","[REDACTED 0001ee50: 5d 22 29 7d 65 6c 73 65 20 74 65 28 74 68 69 73 ]")}else te(this 0001ee60: 2c 22 5f 6d 6e 65 6d 6f 6e 69 63 22 2c 28 28 29 ,"_mnemonic",(() 0001ee70: 3d 3e 6e 75 6c 6c 29 29 7d 65 6c 73 65 7b 69 66 =>null))}else{if 0001ee80: 28 65 72 2e 69 73 53 69 67 6e 69 6e 67 4b 65 79 (er.isSigningKey 0001ee90: 28 65 29 29 22 73 65 63 70 32 35 36 6b 31 22 21 (e))"secp256k1"! 0001eea0: 3d 3d 65 2e 63 75 72 76 65 26 26 54 69 2e 74 68 ==e.curve&&Ti.th 0001eeb0: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 0001eec0: 28 22 75 6e 73 75 70 70 6f 72 74 65 64 20 63 75 ("unsupported cu 0001eed0: 72 76 65 3b 20 6d 75 73 74 20 62 65 20 73 65 63 rve; must be sec 0001eee0: 70 32 35 36 6b 31 22 2c 22 70 72 69 76 61 74 65 p256k1","private 0001eef0: 4b 65 79 22 2c 22 5b 52 45 44 41 43 54 45 44 5d Key","[REDACTED] 0001ef00: 22 29 2c 74 65 28 74 68 69 73 2c 22 5f 73 69 67 "),te(this,"_sig 0001ef10: 6e 69 6e 67 4b 65 79 22 2c 28 28 29 3d 3e 65 29 ningKey",(()=>e) 0001ef20: 29 3b 65 6c 73 65 7b 22 73 74 72 69 6e 67 22 3d );else{"string"= 0001ef30: 3d 74 79 70 65 6f 66 20 65 26 26 65 2e 6d 61 74 =typeof e&&e.mat 0001ef40: 63 68 28 2f 5e 5b 30 2d 39 61 2d 66 5d 2a 24 2f ch(/^[0-9a-f]*$/ 0001ef50: 69 29 26 26 36 34 3d 3d 3d 65 2e 6c 65 6e 67 74 i)&&64===e.lengt 0001ef60: 68 26 26 28 65 3d 22 30 78 22 2b 65 29 3b 63 6f h&&(e="0x"+e);co 0001ef70: 6e 73 74 20 74 3d 6e 65 77 20 65 72 28 65 29 3b nst t=new er(e); 0001ef80: 74 65 28 74 68 69 73 2c 22 5f 73 69 67 6e 69 6e te(this,"_signin 0001ef90: 67 4b 65 79 22 2c 28 28 29 3d 3e 74 29 29 7d 74 gKey",(()=>t))}t 0001efa0: 65 28 74 68 69 73 2c 22 5f 6d 6e 65 6d 6f 6e 69 e(this,"_mnemoni 0001efb0: 63 22 2c 28 28 29 3d 3e 6e 75 6c 6c 29 29 2c 74 c",(()=>null)),t 0001efc0: 65 28 74 68 69 73 2c 22 61 64 64 72 65 73 73 22 e(this,"address" 0001efd0: 2c 63 72 28 74 68 69 73 2e 70 75 62 6c 69 63 4b ,cr(this.publicK 0001efe0: 65 79 29 29 7d 76 61 72 20 6e 3b 74 26 26 21 61 ey))}var n;t&&!a 0001eff0: 6e 2e 69 73 50 72 6f 76 69 64 65 72 28 74 29 26 n.isProvider(t)& 0001f000: 26 54 69 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e &Ti.throwArgumen 0001f010: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 0001f020: 70 72 6f 76 69 64 65 72 22 2c 22 70 72 6f 76 69 provider","provi 0001f030: 64 65 72 22 2c 74 29 2c 74 65 28 74 68 69 73 2c der",t),te(this, 0001f040: 22 70 72 6f 76 69 64 65 72 22 2c 74 7c 7c 6e 75 "provider",t||nu 0001f050: 6c 6c 29 7d 67 65 74 20 6d 6e 65 6d 6f 6e 69 63 ll)}get mnemonic 0001f060: 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f (){return this._ 0001f070: 6d 6e 65 6d 6f 6e 69 63 28 29 7d 67 65 74 20 70 mnemonic()}get p 0001f080: 72 69 76 61 74 65 4b 65 79 28 29 7b 72 65 74 75 rivateKey(){retu 0001f090: 72 6e 20 74 68 69 73 2e 5f 73 69 67 6e 69 6e 67 rn this._signing 0001f0a0: 4b 65 79 28 29 2e 70 72 69 76 61 74 65 4b 65 79 Key().privateKey 0001f0b0: 7d 67 65 74 20 70 75 62 6c 69 63 4b 65 79 28 29 }get publicKey() 0001f0c0: 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 73 69 {return this._si 0001f0d0: 67 6e 69 6e 67 4b 65 79 28 29 2e 70 75 62 6c 69 gningKey().publi 0001f0e0: 63 4b 65 79 7d 67 65 74 41 64 64 72 65 73 73 28 cKey}getAddress( 0001f0f0: 29 7b 72 65 74 75 72 6e 20 50 72 6f 6d 69 73 65 ){return Promise 0001f100: 2e 72 65 73 6f 6c 76 65 28 74 68 69 73 2e 61 64 .resolve(this.ad 0001f110: 64 72 65 73 73 29 7d 63 6f 6e 6e 65 63 74 28 65 dress)}connect(e 0001f120: 29 7b 72 65 74 75 72 6e 20 6e 65 77 20 43 69 28 ){return new Ci( 0001f130: 74 68 69 73 2c 65 29 7d 73 69 67 6e 54 72 61 6e this,e)}signTran 0001f140: 73 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 saction(e){retur 0001f150: 6e 20 72 65 28 65 29 2e 74 68 65 6e 28 28 74 3d n re(e).then((t= 0001f160: 3e 7b 6e 75 6c 6c 21 3d 74 2e 66 72 6f 6d 26 26 >{null!=t.from&& 0001f170: 28 4d 65 28 74 2e 66 72 6f 6d 29 21 3d 3d 74 68 (Me(t.from)!==th 0001f180: 69 73 2e 61 64 64 72 65 73 73 26 26 54 69 2e 74 is.address&&Ti.t 0001f190: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 0001f1a0: 72 28 22 74 72 61 6e 73 61 63 74 69 6f 6e 20 66 r("transaction f 0001f1b0: 72 6f 6d 20 61 64 64 72 65 73 73 20 6d 69 73 6d rom address mism 0001f1c0: 61 74 63 68 22 2c 22 74 72 61 6e 73 61 63 74 69 atch","transacti 0001f1d0: 6f 6e 2e 66 72 6f 6d 22 2c 65 2e 66 72 6f 6d 29 on.from",e.from) 0001f1e0: 2c 64 65 6c 65 74 65 20 74 2e 66 72 6f 6d 29 3b ,delete t.from); 0001f1f0: 63 6f 6e 73 74 20 6e 3d 74 68 69 73 2e 5f 73 69 const n=this._si 0001f200: 67 6e 69 6e 67 4b 65 79 28 29 2e 73 69 67 6e 44 gningKey().signD 0001f210: 69 67 65 73 74 28 76 65 28 62 72 28 74 29 29 29 igest(ve(br(t))) 0001f220: 3b 72 65 74 75 72 6e 20 62 72 28 74 2c 6e 29 7d ;return br(t,n)} 0001f230: 29 29 7d 73 69 67 6e 4d 65 73 73 61 67 65 28 65 ))}signMessage(e 0001f240: 29 7b 72 65 74 75 72 6e 20 78 69 28 74 68 69 73 ){return xi(this 0001f250: 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 ,void 0,void 0,( 0001f260: 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 74 75 function*(){retu 0001f270: 72 6e 20 42 28 74 68 69 73 2e 5f 73 69 67 6e 69 rn B(this._signi 0001f280: 6e 67 4b 65 79 28 29 2e 73 69 67 6e 44 69 67 65 ngKey().signDige 0001f290: 73 74 28 51 72 28 65 29 29 29 7d 29 29 7d 5f 73 st(Qr(e)))}))}_s 0001f2a0: 69 67 6e 54 79 70 65 64 44 61 74 61 28 65 2c 74 ignTypedData(e,t 0001f2b0: 2c 6e 29 7b 72 65 74 75 72 6e 20 78 69 28 74 68 ,n){return xi(th 0001f2c0: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 0001f2d0: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f ,(function*(){co 0001f2e0: 6e 73 74 20 72 3d 79 69 65 6c 64 20 6d 6f 2e 72 nst r=yield mo.r 0001f2f0: 65 73 6f 6c 76 65 4e 61 6d 65 73 28 65 2c 74 2c esolveNames(e,t, 0001f300: 6e 2c 28 65 3d 3e 28 6e 75 6c 6c 3d 3d 74 68 69 n,(e=>(null==thi 0001f310: 73 2e 70 72 6f 76 69 64 65 72 26 26 54 69 2e 74 s.provider&&Ti.t 0001f320: 68 72 6f 77 45 72 72 6f 72 28 22 63 61 6e 6e 6f hrowError("canno 0001f330: 74 20 72 65 73 6f 6c 76 65 20 45 4e 53 20 6e 61 t resolve ENS na 0001f340: 6d 65 73 20 77 69 74 68 6f 75 74 20 61 20 70 72 mes without a pr 0001f350: 6f 76 69 64 65 72 22 2c 79 2e 65 72 72 6f 72 73 ovider",y.errors 0001f360: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 0001f370: 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f RATION,{operatio 0001f380: 6e 3a 22 72 65 73 6f 6c 76 65 4e 61 6d 65 22 2c n:"resolveName", 0001f390: 76 61 6c 75 65 3a 65 7d 29 2c 74 68 69 73 2e 70 value:e}),this.p 0001f3a0: 72 6f 76 69 64 65 72 2e 72 65 73 6f 6c 76 65 4e rovider.resolveN 0001f3b0: 61 6d 65 28 65 29 29 29 29 3b 72 65 74 75 72 6e ame(e))));return 0001f3c0: 20 42 28 74 68 69 73 2e 5f 73 69 67 6e 69 6e 67 B(this._signing 0001f3d0: 4b 65 79 28 29 2e 73 69 67 6e 44 69 67 65 73 74 Key().signDigest 0001f3e0: 28 6d 6f 2e 68 61 73 68 28 72 2e 64 6f 6d 61 69 (mo.hash(r.domai 0001f3f0: 6e 2c 74 2c 72 2e 76 61 6c 75 65 29 29 29 7d 29 n,t,r.value)))}) 0001f400: 29 7d 65 6e 63 72 79 70 74 28 65 2c 74 2c 6e 29 )}encrypt(e,t,n) 0001f410: 7b 69 66 28 22 66 75 6e 63 74 69 6f 6e 22 21 3d {if("function"!= 0001f420: 74 79 70 65 6f 66 20 74 7c 7c 6e 7c 7c 28 6e 3d typeof t||n||(n= 0001f430: 74 2c 74 3d 7b 7d 29 2c 6e 26 26 22 66 75 6e 63 t,t={}),n&&"func 0001f440: 74 69 6f 6e 22 21 3d 74 79 70 65 6f 66 20 6e 29 tion"!=typeof n) 0001f450: 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 throw new Error( 0001f460: 22 69 6e 76 61 6c 69 64 20 63 61 6c 6c 62 61 63 "invalid callbac 0001f470: 6b 22 29 3b 72 65 74 75 72 6e 20 74 7c 7c 28 74 k");return t||(t 0001f480: 3d 7b 7d 29 2c 66 75 6e 63 74 69 6f 6e 28 65 2c ={}),function(e, 0001f490: 74 2c 6e 2c 72 29 7b 74 72 79 7b 69 66 28 4d 65 t,n,r){try{if(Me 0001f4a0: 28 65 2e 61 64 64 72 65 73 73 29 21 3d 3d 63 72 (e.address)!==cr 0001f4b0: 28 65 2e 70 72 69 76 61 74 65 4b 65 79 29 29 74 (e.privateKey))t 0001f4c0: 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 hrow new Error(" 0001f4d0: 61 64 64 72 65 73 73 2f 70 72 69 76 61 74 65 4b address/privateK 0001f4e0: 65 79 20 6d 69 73 6d 61 74 63 68 22 29 3b 69 66 ey mismatch");if 0001f4f0: 28 75 69 28 65 29 29 7b 63 6f 6e 73 74 20 74 3d (ui(e)){const t= 0001f500: 65 2e 6d 6e 65 6d 6f 6e 69 63 3b 69 66 28 47 6f e.mnemonic;if(Go 0001f510: 2e 66 72 6f 6d 4d 6e 65 6d 6f 6e 69 63 28 74 2e .fromMnemonic(t. 0001f520: 70 68 72 61 73 65 2c 6e 75 6c 6c 2c 74 2e 6c 6f phrase,null,t.lo 0001f530: 63 61 6c 65 29 2e 64 65 72 69 76 65 50 61 74 68 cale).derivePath 0001f540: 28 74 2e 70 61 74 68 7c 7c 7a 6f 29 2e 70 72 69 (t.path||zo).pri 0001f550: 76 61 74 65 4b 65 79 21 3d 65 2e 70 72 69 76 61 vateKey!=e.priva 0001f560: 74 65 4b 65 79 29 74 68 72 6f 77 20 6e 65 77 20 teKey)throw new 0001f570: 45 72 72 6f 72 28 22 6d 6e 65 6d 6f 6e 69 63 20 Error("mnemonic 0001f580: 6d 69 73 6d 61 74 63 68 22 29 7d 7d 63 61 74 63 mismatch")}}catc 0001f590: 68 28 65 29 7b 72 65 74 75 72 6e 20 50 72 6f 6d h(e){return Prom 0001f5a0: 69 73 65 2e 72 65 6a 65 63 74 28 65 29 7d 22 66 ise.reject(e)}"f 0001f5b0: 75 6e 63 74 69 6f 6e 22 21 3d 74 79 70 65 6f 66 unction"!=typeof 0001f5c0: 20 6e 7c 7c 72 7c 7c 28 72 3d 6e 2c 6e 3d 7b 7d n||r||(r=n,n={} 0001f5d0: 29 2c 6e 7c 7c 28 6e 3d 7b 7d 29 3b 63 6f 6e 73 ),n||(n={});cons 0001f5e0: 74 20 6f 3d 54 28 65 2e 70 72 69 76 61 74 65 4b t o=T(e.privateK 0001f5f0: 65 79 29 2c 69 3d 6f 69 28 74 29 3b 6c 65 74 20 ey),i=oi(t);let 0001f600: 61 3d 6e 75 6c 6c 2c 73 3d 6e 75 6c 6c 2c 6c 3d a=null,s=null,l= 0001f610: 6e 75 6c 6c 3b 69 66 28 75 69 28 65 29 29 7b 63 null;if(ui(e)){c 0001f620: 6f 6e 73 74 20 74 3d 65 2e 6d 6e 65 6d 6f 6e 69 onst t=e.mnemoni 0001f630: 63 3b 61 3d 54 28 56 6f 28 74 2e 70 68 72 61 73 c;a=T(Vo(t.phras 0001f640: 65 2c 74 2e 6c 6f 63 61 6c 65 7c 7c 22 65 6e 22 e,t.locale||"en" 0001f650: 29 29 2c 73 3d 74 2e 70 61 74 68 7c 7c 7a 6f 2c )),s=t.path||zo, 0001f660: 6c 3d 74 2e 6c 6f 63 61 6c 65 7c 7c 22 65 6e 22 l=t.locale||"en" 0001f670: 7d 6c 65 74 20 63 3d 6e 2e 63 6c 69 65 6e 74 3b }let c=n.client; 0001f680: 63 7c 7c 28 63 3d 22 65 74 68 65 72 73 2e 6a 73 c||(c="ethers.js 0001f690: 22 29 3b 6c 65 74 20 75 3d 6e 75 6c 6c 3b 75 3d ");let u=null;u= 0001f6a0: 6e 2e 73 61 6c 74 3f 54 28 6e 2e 73 61 6c 74 29 n.salt?T(n.salt) 0001f6b0: 3a 51 6f 28 33 32 29 3b 6c 65 74 20 64 3d 6e 75 :Qo(32);let d=nu 0001f6c0: 6c 6c 3b 69 66 28 6e 2e 69 76 29 7b 69 66 28 64 ll;if(n.iv){if(d 0001f6d0: 3d 54 28 6e 2e 69 76 29 2c 31 36 21 3d 3d 64 2e =T(n.iv),16!==d. 0001f6e0: 6c 65 6e 67 74 68 29 74 68 72 6f 77 20 6e 65 77 length)throw new 0001f6f0: 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 Error("invalid 0001f700: 69 76 22 29 7d 65 6c 73 65 20 64 3d 51 6f 28 31 iv")}else d=Qo(1 0001f710: 36 29 3b 6c 65 74 20 70 3d 6e 75 6c 6c 3b 69 66 6);let p=null;if 0001f720: 28 6e 2e 75 75 69 64 29 7b 69 66 28 70 3d 54 28 (n.uuid){if(p=T( 0001f730: 6e 2e 75 75 69 64 29 2c 31 36 21 3d 3d 70 2e 6c n.uuid),16!==p.l 0001f740: 65 6e 67 74 68 29 74 68 72 6f 77 20 6e 65 77 20 ength)throw new 0001f750: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 75 Error("invalid u 0001f760: 75 69 64 22 29 7d 65 6c 73 65 20 70 3d 51 6f 28 uid")}else p=Qo( 0001f770: 31 36 29 3b 6c 65 74 20 66 3d 31 3c 3c 31 37 2c 16);let f=1<<17, 0001f780: 68 3d 38 2c 6d 3d 31 3b 72 65 74 75 72 6e 20 6e h=8,m=1;return n 0001f790: 2e 73 63 72 79 70 74 26 26 28 6e 2e 73 63 72 79 .scrypt&&(n.scry 0001f7a0: 70 74 2e 4e 26 26 28 66 3d 6e 2e 73 63 72 79 70 pt.N&&(f=n.scryp 0001f7b0: 74 2e 4e 29 2c 6e 2e 73 63 72 79 70 74 2e 72 26 t.N),n.scrypt.r& 0001f7c0: 26 28 68 3d 6e 2e 73 63 72 79 70 74 2e 72 29 2c &(h=n.scrypt.r), 0001f7d0: 6e 2e 73 63 72 79 70 74 2e 70 26 26 28 6d 3d 6e n.scrypt.p&&(m=n 0001f7e0: 2e 73 63 72 79 70 74 2e 70 29 29 2c 74 69 28 29 .scrypt.p)),ti() 0001f7f0: 2e 73 63 72 79 70 74 28 69 2c 75 2c 66 2c 68 2c .scrypt(i,u,f,h, 0001f800: 6d 2c 36 34 2c 72 29 2e 74 68 65 6e 28 28 74 3d m,64,r).then((t= 0001f810: 3e 7b 63 6f 6e 73 74 20 6e 3d 28 74 3d 54 28 74 >{const n=(t=T(t 0001f820: 29 29 2e 73 6c 69 63 65 28 30 2c 31 36 29 2c 72 )).slice(0,16),r 0001f830: 3d 74 2e 73 6c 69 63 65 28 31 36 2c 33 32 29 2c =t.slice(16,32), 0001f840: 69 3d 74 2e 73 6c 69 63 65 28 33 32 2c 36 34 29 i=t.slice(32,64) 0001f850: 2c 67 3d 6e 65 77 28 24 6f 28 29 2e 43 6f 75 6e ,g=new($o().Coun 0001f860: 74 65 72 29 28 64 29 2c 62 3d 54 28 6e 65 77 28 ter)(d),b=T(new( 0001f870: 24 6f 28 29 2e 4d 6f 64 65 4f 66 4f 70 65 72 61 $o().ModeOfOpera 0001f880: 74 69 6f 6e 2e 63 74 72 29 28 6e 2c 67 29 2e 65 tion.ctr)(n,g).e 0001f890: 6e 63 72 79 70 74 28 6f 29 29 2c 79 3d 76 65 28 ncrypt(o)),y=ve( 0001f8a0: 43 28 5b 72 2c 62 5d 29 29 2c 76 3d 7b 61 64 64 C([r,b])),v={add 0001f8b0: 72 65 73 73 3a 65 2e 61 64 64 72 65 73 73 2e 73 ress:e.address.s 0001f8c0: 75 62 73 74 72 69 6e 67 28 32 29 2e 74 6f 4c 6f ubstring(2).toLo 0001f8d0: 77 65 72 43 61 73 65 28 29 2c 69 64 3a 61 69 28 werCase(),id:ai( 0001f8e0: 70 29 2c 76 65 72 73 69 6f 6e 3a 33 2c 63 72 79 p),version:3,cry 0001f8f0: 70 74 6f 3a 7b 63 69 70 68 65 72 3a 22 61 65 73 pto:{cipher:"aes 0001f900: 2d 31 32 38 2d 63 74 72 22 2c 63 69 70 68 65 72 -128-ctr",cipher 0001f910: 70 61 72 61 6d 73 3a 7b 69 76 3a 52 28 64 29 2e params:{iv:R(d). 0001f920: 73 75 62 73 74 72 69 6e 67 28 32 29 7d 2c 63 69 substring(2)},ci 0001f930: 70 68 65 72 74 65 78 74 3a 52 28 62 29 2e 73 75 phertext:R(b).su 0001f940: 62 73 74 72 69 6e 67 28 32 29 2c 6b 64 66 3a 22 bstring(2),kdf:" 0001f950: 73 63 72 79 70 74 22 2c 6b 64 66 70 61 72 61 6d scrypt",kdfparam 0001f960: 73 3a 7b 73 61 6c 74 3a 52 28 75 29 2e 73 75 62 s:{salt:R(u).sub 0001f970: 73 74 72 69 6e 67 28 32 29 2c 6e 3a 66 2c 64 6b string(2),n:f,dk 0001f980: 6c 65 6e 3a 33 32 2c 70 3a 6d 2c 72 3a 68 7d 2c len:32,p:m,r:h}, 0001f990: 6d 61 63 3a 79 2e 73 75 62 73 74 72 69 6e 67 28 mac:y.substring( 0001f9a0: 32 29 7d 7d 3b 69 66 28 61 29 7b 63 6f 6e 73 74 2)}};if(a){const 0001f9b0: 20 65 3d 51 6f 28 31 36 29 2c 74 3d 6e 65 77 28 e=Qo(16),t=new( 0001f9c0: 24 6f 28 29 2e 43 6f 75 6e 74 65 72 29 28 65 29 $o().Counter)(e) 0001f9d0: 2c 6e 3d 54 28 6e 65 77 28 24 6f 28 29 2e 4d 6f ,n=T(new($o().Mo 0001f9e0: 64 65 4f 66 4f 70 65 72 61 74 69 6f 6e 2e 63 74 deOfOperation.ct 0001f9f0: 72 29 28 69 2c 74 29 2e 65 6e 63 72 79 70 74 28 r)(i,t).encrypt( 0001fa00: 61 29 29 2c 72 3d 6e 65 77 20 44 61 74 65 2c 6f a)),r=new Date,o 0001fa10: 3d 72 2e 67 65 74 55 54 43 46 75 6c 6c 59 65 61 =r.getUTCFullYea 0001fa20: 72 28 29 2b 22 2d 22 2b 72 69 28 72 2e 67 65 74 r()+"-"+ri(r.get 0001fa30: 55 54 43 4d 6f 6e 74 68 28 29 2b 31 2c 32 29 2b UTCMonth()+1,2)+ 0001fa40: 22 2d 22 2b 72 69 28 72 2e 67 65 74 55 54 43 44 "-"+ri(r.getUTCD 0001fa50: 61 74 65 28 29 2c 32 29 2b 22 54 22 2b 72 69 28 ate(),2)+"T"+ri( 0001fa60: 72 2e 67 65 74 55 54 43 48 6f 75 72 73 28 29 2c r.getUTCHours(), 0001fa70: 32 29 2b 22 2d 22 2b 72 69 28 72 2e 67 65 74 55 2)+"-"+ri(r.getU 0001fa80: 54 43 4d 69 6e 75 74 65 73 28 29 2c 32 29 2b 22 TCMinutes(),2)+" 0001fa90: 2d 22 2b 72 69 28 72 2e 67 65 74 55 54 43 53 65 -"+ri(r.getUTCSe 0001faa0: 63 6f 6e 64 73 28 29 2c 32 29 2b 22 2e 30 5a 22 conds(),2)+".0Z" 0001fab0: 3b 76 5b 22 78 2d 65 74 68 65 72 73 22 5d 3d 7b ;v["x-ethers"]={ 0001fac0: 63 6c 69 65 6e 74 3a 63 2c 67 65 74 68 46 69 6c client:c,gethFil 0001fad0: 65 6e 61 6d 65 3a 22 55 54 43 2d 2d 22 2b 6f 2b ename:"UTC--"+o+ 0001fae0: 22 2d 2d 22 2b 76 2e 61 64 64 72 65 73 73 2c 6d "--"+v.address,m 0001faf0: 6e 65 6d 6f 6e 69 63 43 6f 75 6e 74 65 72 3a 52 nemonicCounter:R 0001fb00: 28 65 29 2e 73 75 62 73 74 72 69 6e 67 28 32 29 (e).substring(2) 0001fb10: 2c 6d 6e 65 6d 6f 6e 69 63 43 69 70 68 65 72 74 ,mnemonicCiphert 0001fb20: 65 78 74 3a 52 28 6e 29 2e 73 75 62 73 74 72 69 ext:R(n).substri 0001fb30: 6e 67 28 32 29 2c 70 61 74 68 3a 73 2c 6c 6f 63 ng(2),path:s,loc 0001fb40: 61 6c 65 3a 6c 2c 76 65 72 73 69 6f 6e 3a 22 30 ale:l,version:"0 0001fb50: 2e 31 22 7d 7d 72 65 74 75 72 6e 20 4a 53 4f 4e .1"}}return JSON 0001fb60: 2e 73 74 72 69 6e 67 69 66 79 28 76 29 7d 29 29 .stringify(v)})) 0001fb70: 7d 28 74 68 69 73 2c 65 2c 74 2c 6e 29 7d 73 74 }(this,e,t,n)}st 0001fb80: 61 74 69 63 20 63 72 65 61 74 65 52 61 6e 64 6f atic createRando 0001fb90: 6d 28 65 29 7b 6c 65 74 20 74 3d 51 6f 28 31 36 m(e){let t=Qo(16 0001fba0: 29 3b 65 7c 7c 28 65 3d 7b 7d 29 2c 65 2e 65 78 );e||(e={}),e.ex 0001fbb0: 74 72 61 45 6e 74 72 6f 70 79 26 26 28 74 3d 54 traEntropy&&(t=T 0001fbc0: 28 50 28 76 65 28 43 28 5b 74 2c 65 2e 65 78 74 (P(ve(C([t,e.ext 0001fbd0: 72 61 45 6e 74 72 6f 70 79 5d 29 29 2c 30 2c 31 raEntropy])),0,1 0001fbe0: 36 29 29 29 3b 63 6f 6e 73 74 20 6e 3d 71 6f 28 6)));const n=qo( 0001fbf0: 74 2c 65 2e 6c 6f 63 61 6c 65 29 3b 72 65 74 75 t,e.locale);retu 0001fc00: 72 6e 20 43 69 2e 66 72 6f 6d 4d 6e 65 6d 6f 6e rn Ci.fromMnemon 0001fc10: 69 63 28 6e 2c 65 2e 70 61 74 68 2c 65 2e 6c 6f ic(n,e.path,e.lo 0001fc20: 63 61 6c 65 29 7d 73 74 61 74 69 63 20 66 72 6f cale)}static fro 0001fc30: 6d 45 6e 63 72 79 70 74 65 64 4a 73 6f 6e 28 65 mEncryptedJson(e 0001fc40: 2c 74 2c 6e 29 7b 72 65 74 75 72 6e 20 5f 69 28 ,t,n){return _i( 0001fc50: 65 2c 74 2c 6e 29 2e 74 68 65 6e 28 28 65 3d 3e e,t,n).then((e=> 0001fc60: 6e 65 77 20 43 69 28 65 29 29 29 7d 73 74 61 74 new Ci(e)))}stat 0001fc70: 69 63 20 66 72 6f 6d 45 6e 63 72 79 70 74 65 64 ic fromEncrypted 0001fc80: 4a 73 6f 6e 53 79 6e 63 28 65 2c 74 29 7b 72 65 JsonSync(e,t){re 0001fc90: 74 75 72 6e 20 6e 65 77 20 43 69 28 77 69 28 65 turn new Ci(wi(e 0001fca0: 2c 74 29 29 7d 73 74 61 74 69 63 20 66 72 6f 6d ,t))}static from 0001fcb0: 4d 6e 65 6d 6f 6e 69 63 28 65 2c 74 2c 6e 29 7b Mnemonic(e,t,n){ 0001fcc0: 72 65 74 75 72 6e 20 74 7c 7c 28 74 3d 7a 6f 29 return t||(t=zo) 0001fcd0: 2c 6e 65 77 20 43 69 28 47 6f 2e 66 72 6f 6d 4d ,new Ci(Go.fromM 0001fce0: 6e 65 6d 6f 6e 69 63 28 65 2c 6e 75 6c 6c 2c 6e nemonic(e,null,n 0001fcf0: 29 2e 64 65 72 69 76 65 50 61 74 68 28 74 29 29 ).derivePath(t)) 0001fd00: 7d 7d 66 75 6e 63 74 69 6f 6e 20 41 69 28 65 2c }}function Ai(e, 0001fd10: 74 29 7b 72 65 74 75 72 6e 20 75 72 28 51 72 28 t){return ur(Qr( 0001fd20: 65 29 2c 74 29 7d 66 75 6e 63 74 69 6f 6e 20 6b e),t)}function k 0001fd30: 69 28 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 i(e,t,n,r){retur 0001fd40: 6e 20 75 72 28 6d 6f 2e 68 61 73 68 28 65 2c 74 n ur(mo.hash(e,t 0001fd50: 2c 6e 29 2c 72 29 7d 63 6f 6e 73 74 20 49 69 3d ,n),r)}const Ii= 0001fd60: 22 30 78 30 30 30 30 30 30 30 30 30 30 30 30 30 "0x0000000000000 0001fd70: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0001fd80: 30 30 30 30 30 30 30 30 30 30 30 22 2c 4f 69 3d 00000000000",Oi= 0001fd90: 22 30 78 30 30 30 30 30 30 30 30 30 30 30 30 30 "0x0000000000000 0001fda0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0001fdb0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0001fdc0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0001fdd0: 30 30 30 22 2c 52 69 3d 22 ce 9e 22 2c 4e 69 3d 000",Ri="..",Ni= 0001fde0: 6e 65 77 20 79 28 22 6e 65 74 77 6f 72 6b 73 2f new y("networks/ 0001fdf0: 35 2e 37 2e 31 22 29 3b 66 75 6e 63 74 69 6f 6e 5.7.1");function 0001fe00: 20 50 69 28 65 29 7b 63 6f 6e 73 74 20 74 3d 66 Pi(e){const t=f 0001fe10: 75 6e 63 74 69 6f 6e 28 74 2c 6e 29 7b 6e 75 6c unction(t,n){nul 0001fe20: 6c 3d 3d 6e 26 26 28 6e 3d 7b 7d 29 3b 63 6f 6e l==n&&(n={});con 0001fe30: 73 74 20 72 3d 5b 5d 3b 69 66 28 74 2e 49 6e 66 st r=[];if(t.Inf 0001fe40: 75 72 61 50 72 6f 76 69 64 65 72 26 26 22 2d 22 uraProvider&&"-" 0001fe50: 21 3d 3d 6e 2e 69 6e 66 75 72 61 29 74 72 79 7b !==n.infura)try{ 0001fe60: 72 2e 70 75 73 68 28 6e 65 77 20 74 2e 49 6e 66 r.push(new t.Inf 0001fe70: 75 72 61 50 72 6f 76 69 64 65 72 28 65 2c 6e 2e uraProvider(e,n. 0001fe80: 69 6e 66 75 72 61 29 29 7d 63 61 74 63 68 28 65 infura))}catch(e 0001fe90: 29 7b 7d 69 66 28 74 2e 45 74 68 65 72 73 63 61 ){}if(t.Ethersca 0001fea0: 6e 50 72 6f 76 69 64 65 72 26 26 22 2d 22 21 3d nProvider&&"-"!= 0001feb0: 3d 6e 2e 65 74 68 65 72 73 63 61 6e 29 74 72 79 =n.etherscan)try 0001fec0: 7b 72 2e 70 75 73 68 28 6e 65 77 20 74 2e 45 74 {r.push(new t.Et 0001fed0: 68 65 72 73 63 61 6e 50 72 6f 76 69 64 65 72 28 herscanProvider( 0001fee0: 65 2c 6e 2e 65 74 68 65 72 73 63 61 6e 29 29 7d e,n.etherscan))} 0001fef0: 63 61 74 63 68 28 65 29 7b 7d 69 66 28 74 2e 41 catch(e){}if(t.A 0001ff00: 6c 63 68 65 6d 79 50 72 6f 76 69 64 65 72 26 26 lchemyProvider&& 0001ff10: 22 2d 22 21 3d 3d 6e 2e 61 6c 63 68 65 6d 79 29 "-"!==n.alchemy) 0001ff20: 74 72 79 7b 72 2e 70 75 73 68 28 6e 65 77 20 74 try{r.push(new t 0001ff30: 2e 41 6c 63 68 65 6d 79 50 72 6f 76 69 64 65 72 .AlchemyProvider 0001ff40: 28 65 2c 6e 2e 61 6c 63 68 65 6d 79 29 29 7d 63 (e,n.alchemy))}c 0001ff50: 61 74 63 68 28 65 29 7b 7d 69 66 28 74 2e 50 6f atch(e){}if(t.Po 0001ff60: 63 6b 65 74 50 72 6f 76 69 64 65 72 26 26 22 2d cketProvider&&"- 0001ff70: 22 21 3d 3d 6e 2e 70 6f 63 6b 65 74 29 7b 63 6f "!==n.pocket){co 0001ff80: 6e 73 74 20 6f 3d 5b 22 67 6f 65 72 6c 69 22 2c nst o=["goerli", 0001ff90: 22 72 6f 70 73 74 65 6e 22 2c 22 72 69 6e 6b 65 "ropsten","rinke 0001ffa0: 62 79 22 2c 22 73 65 70 6f 6c 69 61 22 5d 3b 74 by","sepolia"];t 0001ffb0: 72 79 7b 63 6f 6e 73 74 20 69 3d 6e 65 77 20 74 ry{const i=new t 0001ffc0: 2e 50 6f 63 6b 65 74 50 72 6f 76 69 64 65 72 28 .PocketProvider( 0001ffd0: 65 2c 6e 2e 70 6f 63 6b 65 74 29 3b 69 2e 6e 65 e,n.pocket);i.ne 0001ffe0: 74 77 6f 72 6b 26 26 2d 31 3d 3d 3d 6f 2e 69 6e twork&&-1===o.in 0001fff0: 64 65 78 4f 66 28 69 2e 6e 65 74 77 6f 72 6b 2e dexOf(i.network. 00020000: 6e 61 6d 65 29 26 26 72 2e 70 75 73 68 28 69 29 name)&&r.push(i) 00020010: 7d 63 61 74 63 68 28 65 29 7b 7d 7d 69 66 28 74 }catch(e){}}if(t 00020020: 2e 43 6c 6f 75 64 66 6c 61 72 65 50 72 6f 76 69 .CloudflareProvi 00020030: 64 65 72 26 26 22 2d 22 21 3d 3d 6e 2e 63 6c 6f der&&"-"!==n.clo 00020040: 75 64 66 6c 61 72 65 29 74 72 79 7b 72 2e 70 75 udflare)try{r.pu 00020050: 73 68 28 6e 65 77 20 74 2e 43 6c 6f 75 64 66 6c sh(new t.Cloudfl 00020060: 61 72 65 50 72 6f 76 69 64 65 72 28 65 29 29 7d areProvider(e))} 00020070: 63 61 74 63 68 28 65 29 7b 7d 69 66 28 74 2e 41 catch(e){}if(t.A 00020080: 6e 6b 72 50 72 6f 76 69 64 65 72 26 26 22 2d 22 nkrProvider&&"-" 00020090: 21 3d 3d 6e 2e 61 6e 6b 72 29 74 72 79 7b 63 6f !==n.ankr)try{co 000200a0: 6e 73 74 20 6f 3d 5b 22 72 6f 70 73 74 65 6e 22 nst o=["ropsten" 000200b0: 5d 2c 69 3d 6e 65 77 20 74 2e 41 6e 6b 72 50 72 ],i=new t.AnkrPr 000200c0: 6f 76 69 64 65 72 28 65 2c 6e 2e 61 6e 6b 72 29 ovider(e,n.ankr) 000200d0: 3b 69 2e 6e 65 74 77 6f 72 6b 26 26 2d 31 3d 3d ;i.network&&-1== 000200e0: 3d 6f 2e 69 6e 64 65 78 4f 66 28 69 2e 6e 65 74 =o.indexOf(i.net 000200f0: 77 6f 72 6b 2e 6e 61 6d 65 29 26 26 72 2e 70 75 work.name)&&r.pu 00020100: 73 68 28 69 29 7d 63 61 74 63 68 28 65 29 7b 7d sh(i)}catch(e){} 00020110: 69 66 28 30 3d 3d 3d 72 2e 6c 65 6e 67 74 68 29 if(0===r.length) 00020120: 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 69 66 28 74 return null;if(t 00020130: 2e 46 61 6c 6c 62 61 63 6b 50 72 6f 76 69 64 65 .FallbackProvide 00020140: 72 29 7b 6c 65 74 20 6f 3d 31 3b 72 65 74 75 72 r){let o=1;retur 00020150: 6e 20 6e 75 6c 6c 21 3d 6e 2e 71 75 6f 72 75 6d n null!=n.quorum 00020160: 3f 6f 3d 6e 2e 71 75 6f 72 75 6d 3a 22 68 6f 6d ?o=n.quorum:"hom 00020170: 65 73 74 65 61 64 22 3d 3d 3d 65 26 26 28 6f 3d estead"===e&&(o= 00020180: 32 29 2c 6e 65 77 20 74 2e 46 61 6c 6c 62 61 63 2),new t.Fallbac 00020190: 6b 50 72 6f 76 69 64 65 72 28 72 2c 6f 29 7d 72 kProvider(r,o)}r 000201a0: 65 74 75 72 6e 20 72 5b 30 5d 7d 3b 72 65 74 75 eturn r[0]};retu 000201b0: 72 6e 20 74 2e 72 65 6e 65 74 77 6f 72 6b 3d 66 rn t.renetwork=f 000201c0: 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 unction(e){retur 000201d0: 6e 20 50 69 28 65 29 7d 2c 74 7d 66 75 6e 63 74 n Pi(e)},t}funct 000201e0: 69 6f 6e 20 4d 69 28 65 2c 74 29 7b 63 6f 6e 73 ion Mi(e,t){cons 000201f0: 74 20 6e 3d 66 75 6e 63 74 69 6f 6e 28 6e 2c 72 t n=function(n,r 00020200: 29 7b 72 65 74 75 72 6e 20 6e 2e 4a 73 6f 6e 52 ){return n.JsonR 00020210: 70 63 50 72 6f 76 69 64 65 72 3f 6e 65 77 20 6e pcProvider?new n 00020220: 2e 4a 73 6f 6e 52 70 63 50 72 6f 76 69 64 65 72 .JsonRpcProvider 00020230: 28 65 2c 74 29 3a 6e 75 6c 6c 7d 3b 72 65 74 75 (e,t):null};retu 00020240: 72 6e 20 6e 2e 72 65 6e 65 74 77 6f 72 6b 3d 66 rn n.renetwork=f 00020250: 75 6e 63 74 69 6f 6e 28 74 29 7b 72 65 74 75 72 unction(t){retur 00020260: 6e 20 4d 69 28 65 2c 74 29 7d 2c 6e 7d 63 6f 6e n Mi(e,t)},n}con 00020270: 73 74 20 44 69 3d 7b 63 68 61 69 6e 49 64 3a 31 st Di={chainId:1 00020280: 2c 65 6e 73 41 64 64 72 65 73 73 3a 22 30 78 30 ,ensAddress:"0x0 00020290: 30 30 30 30 30 30 30 30 30 30 43 32 45 30 37 34 0000000000C2E074 000202a0: 65 43 36 39 41 30 64 46 62 32 39 39 37 42 41 36 eC69A0dFb2997BA6 000202b0: 43 37 64 32 65 31 65 22 2c 6e 61 6d 65 3a 22 68 C7d2e1e",name:"h 000202c0: 6f 6d 65 73 74 65 61 64 22 2c 5f 64 65 66 61 75 omestead",_defau 000202d0: 6c 74 50 72 6f 76 69 64 65 72 3a 50 69 28 22 68 ltProvider:Pi("h 000202e0: 6f 6d 65 73 74 65 61 64 22 29 7d 2c 4c 69 3d 7b omestead")},Li={ 000202f0: 63 68 61 69 6e 49 64 3a 33 2c 65 6e 73 41 64 64 chainId:3,ensAdd 00020300: 72 65 73 73 3a 22 30 78 30 30 30 30 30 30 30 30 ress:"0x00000000 00020310: 30 30 30 43 32 45 30 37 34 65 43 36 39 41 30 64 000C2E074eC69A0d 00020320: 46 62 32 39 39 37 42 41 36 43 37 64 32 65 31 65 Fb2997BA6C7d2e1e 00020330: 22 2c 6e 61 6d 65 3a 22 72 6f 70 73 74 65 6e 22 ",name:"ropsten" 00020340: 2c 5f 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 ,_defaultProvide 00020350: 72 3a 50 69 28 22 72 6f 70 73 74 65 6e 22 29 7d r:Pi("ropsten")} 00020360: 2c 46 69 3d 7b 63 68 61 69 6e 49 64 3a 36 33 2c ,Fi={chainId:63, 00020370: 6e 61 6d 65 3a 22 63 6c 61 73 73 69 63 4d 6f 72 name:"classicMor 00020380: 64 6f 72 22 2c 5f 64 65 66 61 75 6c 74 50 72 6f dor",_defaultPro 00020390: 76 69 64 65 72 3a 4d 69 28 22 68 74 74 70 73 3a vider:Mi("https: 000203a0: 2f 2f 77 77 77 2e 65 74 68 65 72 63 6c 75 73 74 //www.etherclust 000203b0: 65 72 2e 63 6f 6d 2f 6d 6f 72 64 6f 72 22 2c 22 er.com/mordor"," 000203c0: 63 6c 61 73 73 69 63 4d 6f 72 64 6f 72 22 29 7d classicMordor")} 000203d0: 2c 55 69 3d 7b 75 6e 73 70 65 63 69 66 69 65 64 ,Ui={unspecified 000203e0: 3a 7b 63 68 61 69 6e 49 64 3a 30 2c 6e 61 6d 65 :{chainId:0,name 000203f0: 3a 22 75 6e 73 70 65 63 69 66 69 65 64 22 7d 2c :"unspecified"}, 00020400: 68 6f 6d 65 73 74 65 61 64 3a 44 69 2c 6d 61 69 homestead:Di,mai 00020410: 6e 6e 65 74 3a 44 69 2c 6d 6f 72 64 65 6e 3a 7b nnet:Di,morden:{ 00020420: 63 68 61 69 6e 49 64 3a 32 2c 6e 61 6d 65 3a 22 chainId:2,name:" 00020430: 6d 6f 72 64 65 6e 22 7d 2c 72 6f 70 73 74 65 6e morden"},ropsten 00020440: 3a 4c 69 2c 74 65 73 74 6e 65 74 3a 4c 69 2c 72 :Li,testnet:Li,r 00020450: 69 6e 6b 65 62 79 3a 7b 63 68 61 69 6e 49 64 3a inkeby:{chainId: 00020460: 34 2c 65 6e 73 41 64 64 72 65 73 73 3a 22 30 78 4,ensAddress:"0x 00020470: 30 30 30 30 30 30 30 30 30 30 30 43 32 45 30 37 00000000000C2E07 00020480: 34 65 43 36 39 41 30 64 46 62 32 39 39 37 42 41 4eC69A0dFb2997BA 00020490: 36 43 37 64 32 65 31 65 22 2c 6e 61 6d 65 3a 22 6C7d2e1e",name:" 000204a0: 72 69 6e 6b 65 62 79 22 2c 5f 64 65 66 61 75 6c rinkeby",_defaul 000204b0: 74 50 72 6f 76 69 64 65 72 3a 50 69 28 22 72 69 tProvider:Pi("ri 000204c0: 6e 6b 65 62 79 22 29 7d 2c 6b 6f 76 61 6e 3a 7b nkeby")},kovan:{ 000204d0: 63 68 61 69 6e 49 64 3a 34 32 2c 6e 61 6d 65 3a chainId:42,name: 000204e0: 22 6b 6f 76 61 6e 22 2c 5f 64 65 66 61 75 6c 74 "kovan",_default 000204f0: 50 72 6f 76 69 64 65 72 3a 50 69 28 22 6b 6f 76 Provider:Pi("kov 00020500: 61 6e 22 29 7d 2c 67 6f 65 72 6c 69 3a 7b 63 68 an")},goerli:{ch 00020510: 61 69 6e 49 64 3a 35 2c 65 6e 73 41 64 64 72 65 ainId:5,ensAddre 00020520: 73 73 3a 22 30 78 30 30 30 30 30 30 30 30 30 30 ss:"0x0000000000 00020530: 30 43 32 45 30 37 34 65 43 36 39 41 30 64 46 62 0C2E074eC69A0dFb 00020540: 32 39 39 37 42 41 36 43 37 64 32 65 31 65 22 2c 2997BA6C7d2e1e", 00020550: 6e 61 6d 65 3a 22 67 6f 65 72 6c 69 22 2c 5f 64 name:"goerli",_d 00020560: 65 66 61 75 6c 74 50 72 6f 76 69 64 65 72 3a 50 efaultProvider:P 00020570: 69 28 22 67 6f 65 72 6c 69 22 29 7d 2c 6b 69 6e i("goerli")},kin 00020580: 74 73 75 67 69 3a 7b 63 68 61 69 6e 49 64 3a 31 tsugi:{chainId:1 00020590: 33 33 37 37 30 32 2c 6e 61 6d 65 3a 22 6b 69 6e 337702,name:"kin 000205a0: 74 73 75 67 69 22 7d 2c 73 65 70 6f 6c 69 61 3a tsugi"},sepolia: 000205b0: 7b 63 68 61 69 6e 49 64 3a 31 31 31 35 35 31 31 {chainId:1115511 000205c0: 31 2c 6e 61 6d 65 3a 22 73 65 70 6f 6c 69 61 22 1,name:"sepolia" 000205d0: 2c 5f 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 ,_defaultProvide 000205e0: 72 3a 50 69 28 22 73 65 70 6f 6c 69 61 22 29 7d r:Pi("sepolia")} 000205f0: 2c 63 6c 61 73 73 69 63 3a 7b 63 68 61 69 6e 49 ,classic:{chainI 00020600: 64 3a 36 31 2c 6e 61 6d 65 3a 22 63 6c 61 73 73 d:61,name:"class 00020610: 69 63 22 2c 5f 64 65 66 61 75 6c 74 50 72 6f 76 ic",_defaultProv 00020620: 69 64 65 72 3a 4d 69 28 22 68 74 74 70 73 3a 2f ider:Mi("https:/ 00020630: 2f 77 77 77 2e 65 74 68 65 72 63 6c 75 73 74 65 /www.ethercluste 00020640: 72 2e 63 6f 6d 2f 65 74 63 22 2c 22 63 6c 61 73 r.com/etc","clas 00020650: 73 69 63 22 29 7d 2c 63 6c 61 73 73 69 63 4d 6f sic")},classicMo 00020660: 72 64 65 6e 3a 7b 63 68 61 69 6e 49 64 3a 36 32 rden:{chainId:62 00020670: 2c 6e 61 6d 65 3a 22 63 6c 61 73 73 69 63 4d 6f ,name:"classicMo 00020680: 72 64 65 6e 22 7d 2c 63 6c 61 73 73 69 63 4d 6f rden"},classicMo 00020690: 72 64 6f 72 3a 46 69 2c 63 6c 61 73 73 69 63 54 rdor:Fi,classicT 000206a0: 65 73 74 6e 65 74 3a 46 69 2c 63 6c 61 73 73 69 estnet:Fi,classi 000206b0: 63 4b 6f 74 74 69 3a 7b 63 68 61 69 6e 49 64 3a cKotti:{chainId: 000206c0: 36 2c 6e 61 6d 65 3a 22 63 6c 61 73 73 69 63 4b 6,name:"classicK 000206d0: 6f 74 74 69 22 2c 5f 64 65 66 61 75 6c 74 50 72 otti",_defaultPr 000206e0: 6f 76 69 64 65 72 3a 4d 69 28 22 68 74 74 70 73 ovider:Mi("https 000206f0: 3a 2f 2f 77 77 77 2e 65 74 68 65 72 63 6c 75 73 ://www.etherclus 00020700: 74 65 72 2e 63 6f 6d 2f 6b 6f 74 74 69 22 2c 22 ter.com/kotti"," 00020710: 63 6c 61 73 73 69 63 4b 6f 74 74 69 22 29 7d 2c classicKotti")}, 00020720: 78 64 61 69 3a 7b 63 68 61 69 6e 49 64 3a 31 30 xdai:{chainId:10 00020730: 30 2c 6e 61 6d 65 3a 22 78 64 61 69 22 7d 2c 6d 0,name:"xdai"},m 00020740: 61 74 69 63 3a 7b 63 68 61 69 6e 49 64 3a 31 33 atic:{chainId:13 00020750: 37 2c 6e 61 6d 65 3a 22 6d 61 74 69 63 22 2c 5f 7,name:"matic",_ 00020760: 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 72 3a defaultProvider: 00020770: 50 69 28 22 6d 61 74 69 63 22 29 7d 2c 6d 61 74 Pi("matic")},mat 00020780: 69 63 6d 75 6d 3a 7b 63 68 61 69 6e 49 64 3a 38 icmum:{chainId:8 00020790: 30 30 30 31 2c 6e 61 6d 65 3a 22 6d 61 74 69 63 0001,name:"matic 000207a0: 6d 75 6d 22 7d 2c 6f 70 74 69 6d 69 73 6d 3a 7b mum"},optimism:{ 000207b0: 63 68 61 69 6e 49 64 3a 31 30 2c 6e 61 6d 65 3a chainId:10,name: 000207c0: 22 6f 70 74 69 6d 69 73 6d 22 2c 5f 64 65 66 61 "optimism",_defa 000207d0: 75 6c 74 50 72 6f 76 69 64 65 72 3a 50 69 28 22 ultProvider:Pi(" 000207e0: 6f 70 74 69 6d 69 73 6d 22 29 7d 2c 22 6f 70 74 optimism")},"opt 000207f0: 69 6d 69 73 6d 2d 6b 6f 76 61 6e 22 3a 7b 63 68 imism-kovan":{ch 00020800: 61 69 6e 49 64 3a 36 39 2c 6e 61 6d 65 3a 22 6f ainId:69,name:"o 00020810: 70 74 69 6d 69 73 6d 2d 6b 6f 76 61 6e 22 7d 2c ptimism-kovan"}, 00020820: 22 6f 70 74 69 6d 69 73 6d 2d 67 6f 65 72 6c 69 "optimism-goerli 00020830: 22 3a 7b 63 68 61 69 6e 49 64 3a 34 32 30 2c 6e ":{chainId:420,n 00020840: 61 6d 65 3a 22 6f 70 74 69 6d 69 73 6d 2d 67 6f ame:"optimism-go 00020850: 65 72 6c 69 22 7d 2c 61 72 62 69 74 72 75 6d 3a erli"},arbitrum: 00020860: 7b 63 68 61 69 6e 49 64 3a 34 32 31 36 31 2c 6e {chainId:42161,n 00020870: 61 6d 65 3a 22 61 72 62 69 74 72 75 6d 22 7d 2c ame:"arbitrum"}, 00020880: 22 61 72 62 69 74 72 75 6d 2d 72 69 6e 6b 65 62 "arbitrum-rinkeb 00020890: 79 22 3a 7b 63 68 61 69 6e 49 64 3a 34 32 31 36 y":{chainId:4216 000208a0: 31 31 2c 6e 61 6d 65 3a 22 61 72 62 69 74 72 75 11,name:"arbitru 000208b0: 6d 2d 72 69 6e 6b 65 62 79 22 7d 2c 22 61 72 62 m-rinkeby"},"arb 000208c0: 69 74 72 75 6d 2d 67 6f 65 72 6c 69 22 3a 7b 63 itrum-goerli":{c 000208d0: 68 61 69 6e 49 64 3a 34 32 31 36 31 33 2c 6e 61 hainId:421613,na 000208e0: 6d 65 3a 22 61 72 62 69 74 72 75 6d 2d 67 6f 65 me:"arbitrum-goe 000208f0: 72 6c 69 22 7d 2c 62 6e 62 3a 7b 63 68 61 69 6e rli"},bnb:{chain 00020900: 49 64 3a 35 36 2c 6e 61 6d 65 3a 22 62 6e 62 22 Id:56,name:"bnb" 00020910: 7d 2c 62 6e 62 74 3a 7b 63 68 61 69 6e 49 64 3a },bnbt:{chainId: 00020920: 39 37 2c 6e 61 6d 65 3a 22 62 6e 62 74 22 7d 7d 97,name:"bnbt"}} 00020930: 3b 66 75 6e 63 74 69 6f 6e 20 42 69 28 65 29 7b ;function Bi(e){ 00020940: 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 74 75 72 if(null==e)retur 00020950: 6e 20 6e 75 6c 6c 3b 69 66 28 22 6e 75 6d 62 65 n null;if("numbe 00020960: 72 22 3d 3d 74 79 70 65 6f 66 20 65 29 7b 66 6f r"==typeof e){fo 00020970: 72 28 63 6f 6e 73 74 20 74 20 69 6e 20 55 69 29 r(const t in Ui) 00020980: 7b 63 6f 6e 73 74 20 6e 3d 55 69 5b 74 5d 3b 69 {const n=Ui[t];i 00020990: 66 28 6e 2e 63 68 61 69 6e 49 64 3d 3d 3d 65 29 f(n.chainId===e) 000209a0: 72 65 74 75 72 6e 7b 6e 61 6d 65 3a 6e 2e 6e 61 return{name:n.na 000209b0: 6d 65 2c 63 68 61 69 6e 49 64 3a 6e 2e 63 68 61 me,chainId:n.cha 000209c0: 69 6e 49 64 2c 65 6e 73 41 64 64 72 65 73 73 3a inId,ensAddress: 000209d0: 6e 2e 65 6e 73 41 64 64 72 65 73 73 7c 7c 6e 75 n.ensAddress||nu 000209e0: 6c 6c 2c 5f 64 65 66 61 75 6c 74 50 72 6f 76 69 ll,_defaultProvi 000209f0: 64 65 72 3a 6e 2e 5f 64 65 66 61 75 6c 74 50 72 der:n._defaultPr 00020a00: 6f 76 69 64 65 72 7c 7c 6e 75 6c 6c 7d 7d 72 65 ovider||null}}re 00020a10: 74 75 72 6e 7b 63 68 61 69 6e 49 64 3a 65 2c 6e turn{chainId:e,n 00020a20: 61 6d 65 3a 22 75 6e 6b 6e 6f 77 6e 22 7d 7d 69 ame:"unknown"}}i 00020a30: 66 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 f("string"==type 00020a40: 6f 66 20 65 29 7b 63 6f 6e 73 74 20 74 3d 55 69 of e){const t=Ui 00020a50: 5b 65 5d 3b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d [e];return null= 00020a60: 3d 74 3f 6e 75 6c 6c 3a 7b 6e 61 6d 65 3a 74 2e =t?null:{name:t. 00020a70: 6e 61 6d 65 2c 63 68 61 69 6e 49 64 3a 74 2e 63 name,chainId:t.c 00020a80: 68 61 69 6e 49 64 2c 65 6e 73 41 64 64 72 65 73 hainId,ensAddres 00020a90: 73 3a 74 2e 65 6e 73 41 64 64 72 65 73 73 2c 5f s:t.ensAddress,_ 00020aa0: 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 72 3a defaultProvider: 00020ab0: 74 2e 5f 64 65 66 61 75 6c 74 50 72 6f 76 69 64 t._defaultProvid 00020ac0: 65 72 7c 7c 6e 75 6c 6c 7d 7d 63 6f 6e 73 74 20 er||null}}const 00020ad0: 74 3d 55 69 5b 65 2e 6e 61 6d 65 5d 3b 69 66 28 t=Ui[e.name];if( 00020ae0: 21 74 29 72 65 74 75 72 6e 22 6e 75 6d 62 65 72 !t)return"number 00020af0: 22 21 3d 74 79 70 65 6f 66 20 65 2e 63 68 61 69 "!=typeof e.chai 00020b00: 6e 49 64 26 26 4e 69 2e 74 68 72 6f 77 41 72 67 nId&&Ni.throwArg 00020b10: 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 umentError("inva 00020b20: 6c 69 64 20 6e 65 74 77 6f 72 6b 20 63 68 61 69 lid network chai 00020b30: 6e 49 64 22 2c 22 6e 65 74 77 6f 72 6b 22 2c 65 nId","network",e 00020b40: 29 2c 65 3b 30 21 3d 3d 65 2e 63 68 61 69 6e 49 ),e;0!==e.chainI 00020b50: 64 26 26 65 2e 63 68 61 69 6e 49 64 21 3d 3d 74 d&&e.chainId!==t 00020b60: 2e 63 68 61 69 6e 49 64 26 26 4e 69 2e 74 68 72 .chainId&&Ni.thr 00020b70: 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 owArgumentError( 00020b80: 22 6e 65 74 77 6f 72 6b 20 63 68 61 69 6e 49 64 "network chainId 00020b90: 20 6d 69 73 6d 61 74 63 68 22 2c 22 6e 65 74 77 mismatch","netw 00020ba0: 6f 72 6b 22 2c 65 29 3b 6c 65 74 20 6e 3d 65 2e ork",e);let n=e. 00020bb0: 5f 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 72 _defaultProvider 00020bc0: 7c 7c 6e 75 6c 6c 3b 76 61 72 20 72 3b 72 65 74 ||null;var r;ret 00020bd0: 75 72 6e 20 6e 75 6c 6c 3d 3d 6e 26 26 74 2e 5f urn null==n&&t._ 00020be0: 64 65 66 61 75 6c 74 50 72 6f 76 69 64 65 72 26 defaultProvider& 00020bf0: 26 28 6e 3d 28 72 3d 74 2e 5f 64 65 66 61 75 6c &(n=(r=t._defaul 00020c00: 74 50 72 6f 76 69 64 65 72 29 26 26 22 66 75 6e tProvider)&&"fun 00020c10: 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 72 ction"==typeof r 00020c20: 2e 72 65 6e 65 74 77 6f 72 6b 3f 74 2e 5f 64 65 .renetwork?t._de 00020c30: 66 61 75 6c 74 50 72 6f 76 69 64 65 72 2e 72 65 faultProvider.re 00020c40: 6e 65 74 77 6f 72 6b 28 65 29 3a 74 2e 5f 64 65 network(e):t._de 00020c50: 66 61 75 6c 74 50 72 6f 76 69 64 65 72 29 2c 7b faultProvider),{ 00020c60: 6e 61 6d 65 3a 65 2e 6e 61 6d 65 2c 63 68 61 69 name:e.name,chai 00020c70: 6e 49 64 3a 74 2e 63 68 61 69 6e 49 64 2c 65 6e nId:t.chainId,en 00020c80: 73 41 64 64 72 65 73 73 3a 65 2e 65 6e 73 41 64 sAddress:e.ensAd 00020c90: 64 72 65 73 73 7c 7c 74 2e 65 6e 73 41 64 64 72 dress||t.ensAddr 00020ca0: 65 73 73 7c 7c 6e 75 6c 6c 2c 5f 64 65 66 61 75 ess||null,_defau 00020cb0: 6c 74 50 72 6f 76 69 64 65 72 3a 6e 7d 7d 66 75 ltProvider:n}}fu 00020cc0: 6e 63 74 69 6f 6e 20 6a 69 28 65 29 7b 65 3d 61 nction ji(e){e=a 00020cd0: 74 6f 62 28 65 29 3b 63 6f 6e 73 74 20 74 3d 5b tob(e);const t=[ 00020ce0: 5d 3b 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 6e 3c ];for(let n=0;n< 00020cf0: 65 2e 6c 65 6e 67 74 68 3b 6e 2b 2b 29 74 2e 70 e.length;n++)t.p 00020d00: 75 73 68 28 65 2e 63 68 61 72 43 6f 64 65 41 74 ush(e.charCodeAt 00020d10: 28 6e 29 29 3b 72 65 74 75 72 6e 20 54 28 74 29 (n));return T(t) 00020d20: 7d 66 75 6e 63 74 69 6f 6e 20 7a 69 28 65 29 7b }function zi(e){ 00020d30: 65 3d 54 28 65 29 3b 6c 65 74 20 74 3d 22 22 3b e=T(e);let t=""; 00020d40: 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 6e 3c 65 2e for(let n=0;n<e. 00020d50: 6c 65 6e 67 74 68 3b 6e 2b 2b 29 74 2b 3d 53 74 length;n++)t+=St 00020d60: 72 69 6e 67 2e 66 72 6f 6d 43 68 61 72 43 6f 64 ring.fromCharCod 00020d70: 65 28 65 5b 6e 5d 29 3b 72 65 74 75 72 6e 20 62 e(e[n]);return b 00020d80: 74 6f 61 28 74 29 7d 66 75 6e 63 74 69 6f 6e 20 toa(t)}function 00020d90: 47 69 28 65 2c 74 29 7b 6e 75 6c 6c 3d 3d 74 26 Gi(e,t){null==t& 00020da0: 26 28 74 3d 31 29 3b 63 6f 6e 73 74 20 6e 3d 5b &(t=1);const n=[ 00020db0: 5d 2c 72 3d 6e 2e 66 6f 72 45 61 63 68 2c 6f 3d ],r=n.forEach,o= 00020dc0: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 2e function(e,t){r. 00020dd0: 63 61 6c 6c 28 65 2c 28 66 75 6e 63 74 69 6f 6e call(e,(function 00020de0: 28 65 29 7b 74 3e 30 26 26 41 72 72 61 79 2e 69 (e){t>0&&Array.i 00020df0: 73 41 72 72 61 79 28 65 29 3f 6f 28 65 2c 74 2d sArray(e)?o(e,t- 00020e00: 31 29 3a 6e 2e 70 75 73 68 28 65 29 7d 29 29 7d 1):n.push(e)}))} 00020e10: 3b 72 65 74 75 72 6e 20 6f 28 65 2c 74 29 2c 6e ;return o(e,t),n 00020e20: 7d 66 75 6e 63 74 69 6f 6e 20 48 69 28 65 29 7b }function Hi(e){ 00020e30: 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e 28 return function( 00020e40: 65 29 7b 6c 65 74 20 74 3d 30 3b 72 65 74 75 72 e){let t=0;retur 00020e50: 6e 28 29 3d 3e 65 5b 74 2b 2b 5d 7d 28 66 75 6e n()=>e[t++]}(fun 00020e60: 63 74 69 6f 6e 28 65 29 7b 6c 65 74 20 74 3d 30 ction(e){let t=0 00020e70: 3b 66 75 6e 63 74 69 6f 6e 20 6e 28 29 7b 72 65 ;function n(){re 00020e80: 74 75 72 6e 20 65 5b 74 2b 2b 5d 3c 3c 38 7c 65 turn e[t++]<<8|e 00020e90: 5b 74 2b 2b 5d 7d 6c 65 74 20 72 3d 6e 28 29 2c [t++]}let r=n(), 00020ea0: 6f 3d 31 2c 69 3d 5b 30 2c 31 5d 3b 66 6f 72 28 o=1,i=[0,1];for( 00020eb0: 6c 65 74 20 65 3d 31 3b 65 3c 72 3b 65 2b 2b 29 let e=1;e<r;e++) 00020ec0: 69 2e 70 75 73 68 28 6f 2b 3d 6e 28 29 29 3b 6c i.push(o+=n());l 00020ed0: 65 74 20 61 3d 6e 28 29 2c 73 3d 74 3b 74 2b 3d et a=n(),s=t;t+= 00020ee0: 61 3b 6c 65 74 20 6c 3d 30 2c 63 3d 30 3b 66 75 a;let l=0,c=0;fu 00020ef0: 6e 63 74 69 6f 6e 20 75 28 29 7b 72 65 74 75 72 nction u(){retur 00020f00: 6e 20 30 3d 3d 6c 26 26 28 63 3d 63 3c 3c 38 7c n 0==l&&(c=c<<8| 00020f10: 65 5b 74 2b 2b 5d 2c 6c 3d 38 29 2c 63 3e 3e 2d e[t++],l=8),c>>- 00020f20: 2d 6c 26 31 7d 63 6f 6e 73 74 20 64 3d 4d 61 74 -l&1}const d=Mat 00020f30: 68 2e 70 6f 77 28 32 2c 33 31 29 2c 70 3d 64 3e h.pow(2,31),p=d> 00020f40: 3e 3e 31 2c 66 3d 70 3e 3e 31 2c 68 3d 64 2d 31 >>1,f=p>>1,h=d-1 00020f50: 3b 6c 65 74 20 6d 3d 30 3b 66 6f 72 28 6c 65 74 ;let m=0;for(let 00020f60: 20 65 3d 30 3b 65 3c 33 31 3b 65 2b 2b 29 6d 3d e=0;e<31;e++)m= 00020f70: 6d 3c 3c 31 7c 75 28 29 3b 6c 65 74 20 67 3d 5b m<<1|u();let g=[ 00020f80: 5d 2c 62 3d 30 2c 79 3d 64 3b 66 6f 72 28 3b 3b ],b=0,y=d;for(;; 00020f90: 29 7b 6c 65 74 20 65 3d 4d 61 74 68 2e 66 6c 6f ){let e=Math.flo 00020fa0: 6f 72 28 28 28 6d 2d 62 2b 31 29 2a 6f 2d 31 29 or(((m-b+1)*o-1) 00020fb0: 2f 79 29 2c 74 3d 30 2c 6e 3d 72 3b 66 6f 72 28 /y),t=0,n=r;for( 00020fc0: 3b 6e 2d 74 3e 31 3b 29 7b 6c 65 74 20 72 3d 74 ;n-t>1;){let r=t 00020fd0: 2b 6e 3e 3e 3e 31 3b 65 3c 69 5b 72 5d 3f 6e 3d +n>>>1;e<i[r]?n= 00020fe0: 72 3a 74 3d 72 7d 69 66 28 30 3d 3d 74 29 62 72 r:t=r}if(0==t)br 00020ff0: 65 61 6b 3b 67 2e 70 75 73 68 28 74 29 3b 6c 65 eak;g.push(t);le 00021000: 74 20 61 3d 62 2b 4d 61 74 68 2e 66 6c 6f 6f 72 t a=b+Math.floor 00021010: 28 79 2a 69 5b 74 5d 2f 6f 29 2c 73 3d 62 2b 4d (y*i[t]/o),s=b+M 00021020: 61 74 68 2e 66 6c 6f 6f 72 28 79 2a 69 5b 74 2b ath.floor(y*i[t+ 00021030: 31 5d 2f 6f 29 2d 31 3b 66 6f 72 28 3b 30 3d 3d 1]/o)-1;for(;0== 00021040: 28 28 61 5e 73 29 26 70 29 3b 29 6d 3d 6d 3c 3c ((a^s)&p);)m=m<< 00021050: 31 26 68 7c 75 28 29 2c 61 3d 61 3c 3c 31 26 68 1&h|u(),a=a<<1&h 00021060: 2c 73 3d 73 3c 3c 31 26 68 7c 31 3b 66 6f 72 28 ,s=s<<1&h|1;for( 00021070: 3b 61 26 7e 73 26 66 3b 29 6d 3d 6d 26 70 7c 6d ;a&~s&f;)m=m&p|m 00021080: 3c 3c 31 26 68 3e 3e 3e 31 7c 75 28 29 2c 61 3d <<1&h>>>1|u(),a= 00021090: 61 3c 3c 31 5e 70 2c 73 3d 28 73 5e 70 29 3c 3c a<<1^p,s=(s^p)<< 000210a0: 31 7c 70 7c 31 3b 62 3d 61 2c 79 3d 31 2b 73 2d 1|p|1;b=a,y=1+s- 000210b0: 61 7d 6c 65 74 20 76 3d 72 2d 34 3b 72 65 74 75 a}let v=r-4;retu 000210c0: 72 6e 20 67 2e 6d 61 70 28 28 74 3d 3e 7b 73 77 rn g.map((t=>{sw 000210d0: 69 74 63 68 28 74 2d 76 29 7b 63 61 73 65 20 33 itch(t-v){case 3 000210e0: 3a 72 65 74 75 72 6e 20 76 2b 36 35 37 39 32 2b :return v+65792+ 000210f0: 28 65 5b 73 2b 2b 5d 3c 3c 31 36 7c 65 5b 73 2b (e[s++]<<16|e[s+ 00021100: 2b 5d 3c 3c 38 7c 65 5b 73 2b 2b 5d 29 3b 63 61 +]<<8|e[s++]);ca 00021110: 73 65 20 32 3a 72 65 74 75 72 6e 20 76 2b 32 35 se 2:return v+25 00021120: 36 2b 28 65 5b 73 2b 2b 5d 3c 3c 38 7c 65 5b 73 6+(e[s++]<<8|e[s 00021130: 2b 2b 5d 29 3b 63 61 73 65 20 31 3a 72 65 74 75 ++]);case 1:retu 00021140: 72 6e 20 76 2b 65 5b 73 2b 2b 5d 3b 64 65 66 61 rn v+e[s++];defa 00021150: 75 6c 74 3a 72 65 74 75 72 6e 20 74 2d 31 7d 7d ult:return t-1}} 00021160: 29 29 7d 28 65 29 29 7d 66 75 6e 63 74 69 6f 6e ))}(e))}function 00021170: 20 56 69 28 65 29 7b 72 65 74 75 72 6e 20 31 26 Vi(e){return 1& 00021180: 65 3f 7e 65 3e 3e 31 3a 65 3e 3e 31 7d 66 75 6e e?~e>>1:e>>1}fun 00021190: 63 74 69 6f 6e 20 71 69 28 65 2c 74 29 7b 6c 65 ction qi(e,t){le 000211a0: 74 20 6e 3d 41 72 72 61 79 28 65 29 3b 66 6f 72 t n=Array(e);for 000211b0: 28 6c 65 74 20 72 3d 30 2c 6f 3d 2d 31 3b 72 3c (let r=0,o=-1;r< 000211c0: 65 3b 72 2b 2b 29 6e 5b 72 5d 3d 6f 2b 3d 31 2b e;r++)n[r]=o+=1+ 000211d0: 74 28 29 3b 72 65 74 75 72 6e 20 6e 7d 66 75 6e t();return n}fun 000211e0: 63 74 69 6f 6e 20 57 69 28 65 2c 74 29 7b 6c 65 ction Wi(e,t){le 000211f0: 74 20 6e 3d 41 72 72 61 79 28 65 29 3b 66 6f 72 t n=Array(e);for 00021200: 28 6c 65 74 20 72 3d 30 2c 6f 3d 30 3b 72 3c 65 (let r=0,o=0;r<e 00021210: 3b 72 2b 2b 29 6e 5b 72 5d 3d 6f 2b 3d 56 69 28 ;r++)n[r]=o+=Vi( 00021220: 74 28 29 29 3b 72 65 74 75 72 6e 20 6e 7d 66 75 t());return n}fu 00021230: 6e 63 74 69 6f 6e 20 4b 69 28 65 2c 74 29 7b 6c nction Ki(e,t){l 00021240: 65 74 20 6e 3d 71 69 28 65 28 29 2c 65 29 2c 72 et n=qi(e(),e),r 00021250: 3d 65 28 29 2c 6f 3d 71 69 28 72 2c 65 29 2c 69 =e(),o=qi(r,e),i 00021260: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 6c =function(e,t){l 00021270: 65 74 20 6e 3d 41 72 72 61 79 28 65 29 3b 66 6f et n=Array(e);fo 00021280: 72 28 6c 65 74 20 72 3d 30 3b 72 3c 65 3b 72 2b r(let r=0;r<e;r+ 00021290: 2b 29 6e 5b 72 5d 3d 31 2b 74 28 29 3b 72 65 74 +)n[r]=1+t();ret 000212a0: 75 72 6e 20 6e 7d 28 72 2c 65 29 3b 66 6f 72 28 urn n}(r,e);for( 000212b0: 6c 65 74 20 65 3d 30 3b 65 3c 72 3b 65 2b 2b 29 let e=0;e<r;e++) 000212c0: 66 6f 72 28 6c 65 74 20 74 3d 30 3b 74 3c 69 5b for(let t=0;t<i[ 000212d0: 65 5d 3b 74 2b 2b 29 6e 2e 70 75 73 68 28 6f 5b e];t++)n.push(o[ 000212e0: 65 5d 2b 74 29 3b 72 65 74 75 72 6e 20 74 3f 6e e]+t);return t?n 000212f0: 2e 6d 61 70 28 28 65 3d 3e 74 5b 65 5d 29 29 3a .map((e=>t[e])): 00021300: 6e 7d 66 75 6e 63 74 69 6f 6e 20 59 69 28 65 2c n}function Yi(e, 00021310: 74 2c 6e 29 7b 6c 65 74 20 72 3d 41 72 72 61 79 t,n){let r=Array 00021320: 28 65 29 2e 66 69 6c 6c 28 76 6f 69 64 20 30 29 (e).fill(void 0) 00021330: 2e 6d 61 70 28 28 28 29 3d 3e 5b 5d 29 29 3b 66 .map((()=>[]));f 00021340: 6f 72 28 6c 65 74 20 6f 3d 30 3b 6f 3c 74 3b 6f or(let o=0;o<t;o 00021350: 2b 2b 29 57 69 28 65 2c 6e 29 2e 66 6f 72 45 61 ++)Wi(e,n).forEa 00021360: 63 68 28 28 28 65 2c 74 29 3d 3e 72 5b 74 5d 2e ch(((e,t)=>r[t]. 00021370: 70 75 73 68 28 65 29 29 29 3b 72 65 74 75 72 6e push(e)));return 00021380: 20 72 7d 66 75 6e 63 74 69 6f 6e 20 58 69 28 65 r}function Xi(e 00021390: 2c 74 29 7b 6c 65 74 20 6e 3d 31 2b 74 28 29 2c ,t){let n=1+t(), 000213a0: 72 3d 74 28 29 2c 6f 3d 66 75 6e 63 74 69 6f 6e r=t(),o=function 000213b0: 28 65 29 7b 6c 65 74 20 74 3d 5b 5d 3b 66 6f 72 (e){let t=[];for 000213c0: 28 3b 3b 29 7b 6c 65 74 20 6e 3d 65 28 29 3b 69 (;;){let n=e();i 000213d0: 66 28 30 3d 3d 6e 29 62 72 65 61 6b 3b 74 2e 70 f(0==n)break;t.p 000213e0: 75 73 68 28 6e 29 7d 72 65 74 75 72 6e 20 74 7d ush(n)}return t} 000213f0: 28 74 29 3b 72 65 74 75 72 6e 20 47 69 28 59 69 (t);return Gi(Yi 00021400: 28 6f 2e 6c 65 6e 67 74 68 2c 31 2b 65 2c 74 29 (o.length,1+e,t) 00021410: 2e 6d 61 70 28 28 28 65 2c 74 29 3d 3e 7b 63 6f .map(((e,t)=>{co 00021420: 6e 73 74 20 69 3d 65 5b 30 5d 2c 61 3d 65 2e 73 nst i=e[0],a=e.s 00021430: 6c 69 63 65 28 31 29 3b 72 65 74 75 72 6e 20 41 lice(1);return A 00021440: 72 72 61 79 28 6f 5b 74 5d 29 2e 66 69 6c 6c 28 rray(o[t]).fill( 00021450: 76 6f 69 64 20 30 29 2e 6d 61 70 28 28 28 65 2c void 0).map(((e, 00021460: 74 29 3d 3e 7b 6c 65 74 20 6f 3d 74 2a 72 3b 72 t)=>{let o=t*r;r 00021470: 65 74 75 72 6e 5b 69 2b 74 2a 6e 2c 61 2e 6d 61 eturn[i+t*n,a.ma 00021480: 70 28 28 65 3d 3e 65 2b 6f 29 29 5d 7d 29 29 7d p((e=>e+o))]}))} 00021490: 29 29 29 7d 66 75 6e 63 74 69 6f 6e 20 5a 69 28 )))}function Zi( 000214a0: 65 2c 74 29 7b 72 65 74 75 72 6e 20 59 69 28 31 e,t){return Yi(1 000214b0: 2b 74 28 29 2c 31 2b 65 2c 74 29 2e 6d 61 70 28 +t(),1+e,t).map( 000214c0: 28 65 3d 3e 5b 65 5b 30 5d 2c 65 2e 73 6c 69 63 (e=>[e[0],e.slic 000214d0: 65 28 31 29 5d 29 29 7d 63 6f 6e 73 74 20 51 69 e(1)]))}const Qi 000214e0: 3d 48 69 28 6a 69 28 22 41 45 51 46 32 41 4f 32 =Hi(ji("AEQF2AO2 000214f0: 44 45 73 41 32 77 49 72 41 47 73 42 52 41 42 78 DEsA2wIrAGsBRABx 00021500: 41 4e 38 41 5a 77 43 63 41 45 77 41 71 67 41 30 AN8AZwCcAEwAqgA0 00021510: 41 47 77 41 55 67 42 79 41 44 63 41 54 41 41 56 AGwAUgByADcATAAV 00021520: 41 46 59 41 49 51 41 79 41 43 45 41 4b 41 41 59 AFYAIQAyACEAKAAY 00021530: 41 46 67 41 47 77 41 6a 41 42 51 41 4d 41 41 6d AFgAGwAjABQAMAAm 00021540: 41 44 49 41 46 41 41 66 41 42 51 41 4b 77 41 54 ADIAFAAfABQAKwAT 00021550: 41 43 6f 41 44 67 41 62 41 41 38 41 48 51 41 59 ACoADgAbAA8AHQAY 00021560: 41 42 6f 41 47 51 41 78 41 44 67 41 4c 41 41 6f ABoAGQAxADgALAAo 00021570: 41 44 77 41 45 77 41 39 41 42 4d 41 47 67 41 52 ADwAEwA9ABMAGgAR 00021580: 41 41 34 41 44 77 41 57 41 42 4d 41 46 67 41 49 AA4ADwAWABMAFgAI 00021590: 41 41 38 41 48 67 51 58 42 59 4d 41 35 42 48 4a AA8AHgQXBYMA5BHJ 000215a0: 41 53 38 4a 74 41 59 6f 41 65 34 41 45 78 6f 7a AS8JtAYoAe4AExoz 000215b0: 69 30 55 41 48 32 31 74 41 61 4d 6e 42 54 38 43 i0UAH21tAaMnBT8C 000215c0: 72 6e 49 79 68 72 4d 44 68 52 67 44 79 67 49 42 rnIyhrMDhRgDygIB 000215d0: 55 41 45 48 63 6f 46 48 55 50 65 38 41 58 42 6a UAEHcoFHUPe8AXBj 000215e0: 41 65 77 43 6a 67 44 51 52 38 49 49 43 49 63 45 AewCjgDQR8IICIcE 000215f0: 63 51 4c 77 41 54 58 43 44 67 7a 76 48 77 42 6d cQLwATXCDgzvHwBm 00021600: 42 6f 48 4e 41 71 73 42 64 42 63 55 41 79 6b 67 BoHNAqsBdBcUAykg 00021610: 44 68 41 4d 53 68 73 6b 4d 67 6f 38 41 59 38 6a DhAMShskMgo8AY8j 00021620: 71 41 51 66 41 55 41 66 48 77 38 42 44 77 38 37 qAQfAUAfHw8BDw87 00021630: 4d 69 6f 47 6c 43 49 50 42 77 5a 43 61 34 45 4c MioGlCIPBwZCa4EL 00021640: 61 74 4d 41 41 4d 73 70 4a 56 67 73 44 6c 38 41 atMAAMspJVgsDl8A 00021650: 49 68 63 6b 53 67 38 58 41 48 64 76 54 77 42 63 IhckSg8XAHdvTwBc 00021660: 49 51 45 69 44 54 34 4f 50 68 55 71 62 79 45 43 IQEiDT4OPhUqbyEC 00021670: 41 45 6f 41 53 33 34 41 65 6a 38 59 62 78 38 33 AEoAS34Aej8Ybx83 00021680: 4a 67 54 2f 58 77 38 67 48 78 5a 2f 37 77 38 52 JgT/Xw8gHxZ/7w8R 00021690: 49 43 78 50 48 41 39 76 42 77 2b 50 66 77 38 50 ICxPHA9vBw+Pfw8P 000216a0: 48 77 41 50 46 76 2b 66 41 73 41 76 43 63 38 76 HwAPFv+fAsAvCc8v 000216b0: 45 72 38 69 76 77 44 2f 45 51 38 42 6f 6c 38 4f Er8ivwD/EQ8Bol8O 000216c0: 45 42 61 2f 41 37 38 68 72 77 41 50 43 55 38 76 EBa/A78hrwAPCU8v 000216d0: 45 53 4e 76 76 77 57 66 48 77 4e 66 41 56 6f 44 ESNvvwWfHwNfAVoD 000216e0: 48 72 2b 5a 41 41 45 44 33 34 59 61 41 64 4a 50 Hr+ZAAED34YaAdJP 000216f0: 41 4b 37 50 4c 77 53 45 67 44 4c 48 41 47 6f 31 AK7PLwSEgDLHAGo1 00021700: 50 7a 38 50 76 78 39 66 55 77 4d 72 70 62 38 4f Pz8Pvx9fUwMrpb8O 00021710: 2f 35 38 56 54 7a 41 50 49 42 6f 58 49 79 51 4a /58VTzAPIBoXIyQJ 00021720: 4e 46 38 68 70 77 49 56 41 54 38 59 47 41 55 41 NF8hpwIVAT8YGAUA 00021730: 44 44 4e 42 61 58 33 52 41 4d 6f 6d 4a 43 67 39 DDNBaX3RAMomJCg9 00021740: 45 68 55 65 41 32 39 4d 41 42 73 5a 42 54 4d 4e EhUeA29MABsZBTMN 00021750: 4a 69 70 6a 4f 68 63 31 39 67 63 49 44 52 38 62 JipjOhc19gcIDR8b 00021760: 42 77 51 48 45 67 67 43 57 69 36 44 49 67 4c 75 BwQHEggCWi6DIgLu 00021770: 41 51 59 41 2b 42 41 46 43 68 61 33 41 35 58 69 AQYA+BAFCha3A5Xi 00021780: 41 45 73 71 4d 37 55 46 46 67 46 4c 68 41 4d 6a AEsqM7UFFgFLhAMj 00021790: 46 54 4d 59 45 31 4b 6c 6e 77 37 34 6e 52 56 42 FTMYE1Klnw74nRVB 000217a0: 47 2f 41 53 43 6d 30 42 59 52 4e 2f 42 72 73 55 G/ASCm0BYRN/BrsU 000217b0: 33 56 6f 57 79 2b 53 30 76 56 38 4c 51 78 2b 76 3VoWy+S0vV8LQx+v 000217c0: 4e 38 67 46 32 41 43 32 41 4b 35 45 41 57 77 41 N8gF2AC2AK5EAWwA 000217d0: 70 67 59 44 4b 6d 41 41 72 6f 51 30 4e 44 51 30 pgYDKmAAroQ0NDQ0 000217e0: 41 54 2b 4f 43 67 37 77 41 41 49 48 52 41 62 70 AT+OCg7wAAIHRAbp 000217f0: 4e 67 56 63 42 56 30 41 50 54 41 35 42 66 62 50 NgVcBV0APTA5BfbP 00021800: 46 67 4d 4c 7a 63 59 4c 2f 51 71 71 41 38 32 65 FgMLzcYL/QqqA82e 00021810: 42 41 4c 4b 43 6a 51 43 6a 71 59 43 68 74 30 2f BALKCjQCjqYCht0/ 00021820: 6b 32 2b 4f 41 73 58 51 41 6f 50 33 41 53 54 4b k2+OAsXQAoP3ASTK 00021830: 44 67 44 77 36 41 43 4b 41 55 59 43 4d 70 49 4b DgDw6ACKAUYCMpIK 00021840: 4a 70 52 61 41 45 34 41 35 77 6f 6d 41 42 7a 5a JpRaAE4A5womABzZ 00021850: 76 73 30 52 45 45 4b 69 41 43 49 51 41 64 35 51 vs0REEKiACIQAd5Q 00021860: 64 41 45 43 41 6a 34 59 77 67 2f 77 47 71 59 32 dAECAj4Ywg/wGqY2 00021870: 41 56 67 41 59 41 44 59 76 41 6f 43 47 41 45 75 AVgAYADYvAoCGAEu 00021880: 62 41 30 67 76 41 59 32 41 4c 41 41 62 70 62 76 bA0gvAY2ALAAbpbv 00021890: 71 70 79 45 41 47 41 45 70 67 51 41 4a 67 41 47 qpyEAGAEpgQAJgAG 000218a0: 37 67 41 67 41 45 41 43 6d 67 68 55 46 77 43 71 7gAgAEACmghUFwCq 000218b0: 41 4d 70 41 49 4e 51 49 77 43 34 44 74 68 52 41 AMpAINQIwC4DthRA 000218c0: 41 50 63 79 63 4b 67 41 70 6f 49 64 41 42 77 42 APcycKgApoIdABwB 000218d0: 66 43 69 73 41 42 6f 41 54 77 42 71 41 53 49 41 fCisABoATwBqASIA 000218e0: 76 68 6e 53 42 50 38 61 48 2f 45 43 65 41 4b 58 vhnSBP8aH/ECeAKX 000218f0: 41 71 34 30 4e 6a 67 44 42 54 77 46 59 51 55 36 Aq40NjgDBTwFYQU6 00021900: 41 58 73 33 6f 41 42 67 41 44 34 58 4e 67 6d 63 AXs3oABgAD4XNgmc 00021910: 43 59 31 65 43 6c 35 74 49 46 5a 65 55 71 47 67 CY1eCl5tIFZeUqGg 00021920: 79 6f 4e 48 41 42 67 41 45 51 41 61 41 42 4e 77 yoNHABgAEQAaABNw 00021930: 57 51 41 6d 41 42 4d 41 54 50 4d 61 33 54 33 34 WQAmABMATPMa3T34 00021940: 41 44 6c 64 79 70 72 6d 4d 31 4d 32 58 6f 63 69 ADldyprmM1M2Xoci 00021950: 55 51 67 4c 7a 76 77 41 58 54 33 78 41 42 67 41 UQgLzvwAXT3xABgA 00021960: 45 51 41 61 41 42 4e 77 49 47 46 41 6e 41 44 44 EQAaABNwIGFAnADD 00021970: 38 41 41 67 41 44 34 42 42 4a 57 7a 61 43 63 49 8AAgAD4BBJWzaCcI 00021980: 41 49 45 42 46 4d 41 57 77 4b 6f 41 41 64 71 39 AIEBFMAWwKoAAdq9 00021990: 42 57 41 46 35 77 4c 51 70 41 4c 45 74 51 41 4b BWAF5wLQpALEtQAK 000219a0: 55 53 47 6b 61 68 52 34 47 6e 4a 4d 2b 67 73 41 USGkahR4GnJM+gsA 000219b0: 77 43 67 65 46 41 69 55 41 45 43 51 30 42 51 75 wCgeFAiUAECQ0BQu 000219c0: 4c 38 41 41 49 41 41 41 41 44 4b 65 49 68 65 63 L8AAIAAAADKeIhec 000219d0: 6c 76 46 71 51 41 41 45 54 72 34 69 41 4d 78 49 lvFqQAAETr4iAMxI 000219e0: 41 52 4d 67 41 4d 49 6f 48 68 51 49 41 6e 30 45 ARMgAMIoHhQIAn0E 000219f0: 30 70 44 51 46 43 34 48 68 7a 6e 6f 41 41 41 41 0pDQFC4HhznoAAAA 00021a00: 49 41 49 32 43 30 2f 34 6c 76 46 71 51 41 41 45 IAI2C0/4lvFqQAAE 00021a10: 54 67 42 4a 4a 77 59 43 41 79 34 41 42 67 59 41 TgBJJwYCAy4ABgYA 00021a20: 46 41 41 38 4d 42 4b 59 45 48 34 65 52 68 54 6b FAA8MBKYEH4eRhTk 00021a30: 41 6a 59 65 46 63 67 41 43 41 59 41 65 41 42 73 AjYeFcgACAYAeABs 00021a40: 4f 71 79 51 35 67 52 77 44 61 79 71 75 67 45 67 OqyQ5gRwDayqugEg 00021a50: 61 49 49 41 74 67 6f 41 43 67 44 6d 45 41 42 6d aIIAtgoACgDmEABm 00021a60: 42 41 57 47 6d 65 35 4f 42 4a 4a 41 32 6d 34 63 BAWGme5OBJJA2m4c 00021a70: 44 65 6f 41 6d 49 54 57 41 58 77 72 4d 67 4f 67 DeoAmITWAXwrMgOg 00021a80: 41 47 77 42 43 68 36 43 42 58 59 46 31 54 7a 67 AGwBCh6CBXYF1Tzg 00021a90: 31 77 4b 41 41 46 64 69 75 41 42 52 41 46 77 41 1wKAAFdiuABRAFwA 00021aa0: 58 51 42 73 41 47 38 41 64 67 42 72 41 48 59 41 XQBsAG8AdgBrAHYA 00021ab0: 62 77 43 45 41 48 45 77 66 78 51 42 56 45 35 54 bwCEAHEwfxQBVE5T 00021ac0: 45 51 41 44 56 46 68 54 42 77 42 44 41 4e 49 4c EQADVFhTBwBDANIL 00021ad0: 41 71 63 43 7a 67 4c 54 41 70 51 43 72 51 4c 36 AqcCzgLTApQCrQL6 00021ae0: 76 41 41 4d 41 4c 38 41 50 4c 68 4e 42 4b 6b 45 vAAMAL8APLhNBKkE 00021af0: 36 67 6c 47 4b 54 41 55 34 44 72 34 4e 32 45 59 6glGKTAU4Dr4N2EY 00021b00: 45 77 42 43 6b 41 42 4b 6b 38 72 48 41 62 59 42 EwBCkABKk8rHAbYB 00021b10: 6d 77 49 6f 41 69 55 34 41 6a 66 2f 41 71 34 43 mwIoAiU4Ajf/Aq4C 00021b20: 6f 77 43 41 41 4e 49 43 68 7a 67 61 4e 42 73 43 owCAANIChzgaNBsC 00021b30: 73 54 67 65 4f 44 63 46 58 72 67 43 6c 51 4b 64 sTgeODcFXrgClQKd 00021b40: 41 71 51 42 69 51 47 59 41 71 73 43 73 6a 54 73 AqQBiQGYAqsCsjTs 00021b50: 4e 48 73 66 4e 50 41 30 69 78 73 41 57 54 57 69 NHsfNPA0ixsAWTWi 00021b60: 4f 41 4d 46 50 44 51 53 4e 43 6b 32 42 44 5a 48 OAMFPDQSNCk2BDZH 00021b70: 4e 6f 77 32 54 54 5a 55 4e 68 6b 32 38 4a 6b 39 Now2TTZUNhk28Jk9 00021b80: 56 7a 49 33 51 6b 45 6f 41 6f 49 43 6f 51 4b 77 VzI3QkEoAoICoQKw 00021b90: 41 71 63 41 51 41 41 78 42 56 34 46 58 62 53 39 AqcAQAAxBV4FXbS9 00021ba0: 42 57 34 37 59 6b 49 58 50 31 63 69 55 71 73 30 BW47YkIXP1ciUqs0 00021bb0: 35 44 53 2f 46 77 41 42 55 77 4a 57 31 31 65 36 5DS/FwABUwJW11e6 00021bc0: 6e 48 75 59 5a 6d 53 68 2f 52 41 59 41 38 6f 4d nHuYZmSh/RAYA8oM 00021bd0: 4b 76 5a 38 4b 41 53 6f 55 41 4a 59 57 41 4a 36 KvZ8KASoUAJYWAJ6 00021be0: 49 4c 41 73 41 5a 53 6f 71 6a 70 67 41 30 6f 63 ILAsAZSoqjpgA0oc 00021bf0: 42 49 68 6d 44 67 44 57 41 41 61 77 52 44 51 6f BIhmDgDWAAawRDQo 00021c00: 41 41 63 75 41 6a 35 69 41 48 41 42 5a 69 52 32 AAcuAj5iAHABZiR2 00021c10: 41 49 67 69 48 67 43 61 41 55 36 38 41 43 78 75 AIgiHgCaAU68ACxu 00021c20: 48 41 47 30 79 67 4d 38 4d 69 5a 49 41 6c 67 42 HAG0ygM8MiZIAlgB 00021c30: 64 46 34 47 61 67 4a 71 41 50 5a 4f 48 41 4d 75 dF4GagJqAPZOHAMu 00021c40: 42 67 6f 41 54 6b 59 41 73 41 42 69 41 48 67 41 BgoATkYAsABiAHgA 00021c50: 4d 4c 6f 47 44 50 6a 30 48 70 4b 45 42 41 41 4f MLoGDPj0HpKEBAAO 00021c60: 4a 67 41 75 41 4c 67 67 54 41 48 57 41 65 41 4d JgAuALggTAHWAeAM 00021c70: 45 44 62 64 32 30 55 65 67 65 30 41 44 77 41 57 EDbd20Uege0ADwAW 00021c80: 41 44 6b 41 51 67 41 39 4f 48 64 2b 32 4d 55 51 ADkAQgA9OHd+2MUQ 00021c90: 5a 42 42 68 42 67 4e 4e 44 6b 78 78 50 78 55 51 ZBBhBgNNDkxxPxUQ 00021ca0: 41 72 45 50 71 77 76 71 45 52 6f 4d 31 69 72 51 ArEPqwvqERoM1irQ 00021cb0: 30 39 30 41 4e 4b 34 48 38 41 4e 59 42 2f 41 44 090ANK4H8ANYB/AD 00021cc0: 57 41 4e 59 42 2f 41 48 38 41 4e 59 42 2f 41 44 WANYB/AH8ANYB/AD 00021cd0: 57 41 4e 59 41 31 67 44 57 42 77 50 38 42 2f 59 WANYA1gDWBwP8B/Y 00021ce0: 78 52 42 6b 44 30 30 45 63 67 57 54 42 5a 41 45 xRBkD00EcgWTBZAE 00021cf0: 32 77 69 49 4a 6b 34 52 68 67 63 74 43 4e 64 55 2wiIJk4RhgctCNdU 00021d00: 45 6e 51 6a 48 45 77 44 53 67 45 42 49 79 70 4a EnQjHEwDSgEBIypJ 00021d10: 49 54 75 59 4d 78 41 6c 52 30 77 52 54 51 67 49 ITuYMxAlR0wRTQgI 00021d20: 41 54 5a 48 62 4b 78 39 50 51 4e 4d 4d 62 42 55 ATZHbKx9PQNMMbBU 00021d30: 2b 70 43 6e 41 39 41 79 56 44 6c 78 42 67 4d 65 +pCnA9AyVDlxBgMe 00021d40: 64 68 4b 6c 41 43 38 50 65 43 45 31 75 6b 36 44 dhKlAC8PeCE1uk6D 00021d50: 65 6b 78 78 70 51 70 51 54 37 4e 58 39 77 42 46 ekxxpQpQT7NX9wBF 00021d60: 42 67 41 53 71 77 41 53 35 67 42 4a 44 53 67 41 BgASqwAS5gBJDSgA 00021d70: 55 43 77 47 50 51 42 49 34 7a 54 59 41 42 4e 47 UCwGPQBI4zTYABNG 00021d80: 41 45 32 62 41 45 33 4b 41 45 78 64 47 41 42 4b AE2bAE3KAExdGABK 00021d90: 61 41 62 67 41 46 42 58 41 46 43 4f 41 46 42 4a aAbgAFBXAFCOAFBJ 00021da0: 41 42 49 32 53 57 64 4f 62 41 4c 44 4f 71 30 2f ABI2SWdObALDOq0/ 00021db0: 2f 51 6f 6d 43 5a 68 76 77 48 64 54 42 6b 49 51 /QomCZhvwHdTBkIQ 00021dc0: 48 43 65 6d 45 50 67 4d 4e 41 47 32 41 54 77 4e HCemEPgMNAG2ATwN 00021dd0: 37 6b 76 5a 42 50 49 47 50 41 54 4b 48 33 34 5a 7kvZBPIGPATKH34Z 00021de0: 47 67 2f 4f 6c 5a 30 49 70 69 33 65 44 4f 34 6d Gg/OlZ0Ipi3eDO4m 00021df0: 35 43 36 69 67 46 73 6a 39 69 71 45 42 65 35 4c 5C6igFsj9iqEBe5L 00021e00: 39 54 7a 65 43 30 35 52 61 51 39 61 43 32 59 4a 9TzeC05RaQ9aC2YJ 00021e10: 35 44 70 6b 67 55 38 44 49 67 45 4f 49 6f 77 4b 5DpkgU8DIgEOIowK 00021e20: 33 67 30 36 43 47 34 51 39 41 72 4b 62 41 33 6d 3g06CG4Q9ArKbA3m 00021e30: 45 55 59 48 4f 67 50 57 53 5a 73 41 70 67 63 43 EUYHOgPWSZsApgcC 00021e40: 43 78 49 64 4e 68 57 32 4a 68 46 69 72 51 73 4b CxIdNhW2JhFirQsK 00021e50: 4f 58 67 47 2f 42 72 33 43 35 41 6d 73 42 4d 71 OXgG/Br3C5AmsBMq 00021e60: 65 76 30 46 31 42 6f 69 42 6b 34 42 4b 68 73 41 ev0F1BoiBk4BKhsA 00021e70: 41 4e 41 75 36 49 57 78 57 6a 4a 63 48 55 39 67 ANAu6IWxWjJcHU9g 00021e80: 42 67 51 4c 4a 69 50 49 46 4b 6c 51 49 51 30 6d BgQLJiPIFKlQIQ0m 00021e90: 51 4c 68 34 53 52 6f 63 42 78 59 6c 71 67 4b 53 QLh4SRocBxYlqgKS 00021ea0: 51 33 46 4b 69 46 45 33 48 70 51 68 39 7a 77 2b Q3FKiFE3HpQh9zw+ 00021eb0: 44 57 63 75 46 46 46 39 42 2f 59 38 42 68 6c 51 DWcuFFF9B/Y8BhlQ 00021ec0: 43 34 49 38 6e 30 61 73 52 51 38 52 30 7a 36 4f C4I8n0asRQ8R0z6O 00021ed0: 50 55 6b 69 53 6b 77 74 42 44 61 41 4c 44 41 6e PUkiSkwtBDaALDAn 00021ee0: 6a 41 6e 51 44 34 59 4d 75 6e 78 7a 41 56 6f 4a jAnQD4YMunxzAVoJ 00021ef0: 49 67 6d 79 44 48 49 54 4d 68 45 59 4e 38 59 49 IgmyDHITMhEYN8YI 00021f00: 4f 67 63 61 4c 70 63 6c 4a 78 59 49 49 6b 61 57 OgcaLpclJxYIIkaW 00021f10: 59 4a 73 45 2b 4b 41 44 39 42 50 53 41 77 77 46 YJsE+KAD9BPSAwwF 00021f20: 51 41 6c 43 42 78 51 44 74 68 77 75 45 79 38 56 QAlCBxQDthwuEy8V 00021f30: 4b 67 55 4f 67 53 58 59 41 76 51 32 31 69 36 30 KgUOgSXYAvQ21i60 00021f40: 41 70 42 57 67 51 45 59 42 63 77 50 4a 68 2f 67 ApBWgQEYBcwPJh/g 00021f50: 45 46 46 48 34 51 37 71 43 4a 77 43 5a 67 4f 45 EFFH4Q7qCJwCZgOE 00021f60: 4a 65 77 41 4c 68 55 69 41 42 67 69 6e 41 68 45 JewALhUiABginAhE 00021f70: 5a 41 42 67 6a 39 6c 54 42 69 37 4d 43 4d 68 71 ZABgj9lTBi7MCMhq 00021f80: 62 53 4e 31 41 32 67 55 36 47 49 52 64 41 65 53 bSN1A2gU6GIRdAeS 00021f90: 44 6c 67 48 71 42 77 30 46 63 41 63 34 6e 44 4a DlgHqBw0FcAc4nDJ 00021fa0: 58 67 79 47 43 53 69 6b 73 41 6c 63 41 58 59 4a XgyGCSiksAlcAXYJ 00021fb0: 6d 67 46 67 42 4f 51 49 43 6a 56 63 6a 4b 45 67 mgFgBOQICjVcjKEg 00021fc0: 51 6d 64 55 69 31 6b 59 6e 43 42 69 51 55 42 64 QmdUi1kYnCBiQUBd 00021fd0: 2f 51 49 79 44 47 59 56 6f 45 53 2b 68 33 6b 43 /QIyDGYVoES+h3kC 00021fe0: 6a 41 39 73 45 68 77 42 4e 67 46 30 42 7a 6f 4e jA9sEhwBNgF0BzoN 00021ff0: 41 67 4a 34 45 65 34 52 62 42 43 57 43 4f 79 47 AgJ4Ee4RbBCWCOyG 00022000: 42 54 57 32 4d 2f 6b 36 4a 67 52 51 49 59 51 67 BTW2M/k6JgRQIYQg 00022010: 45 67 6f 6f 41 31 42 73 7a 77 73 6f 4a 76 6f 4d EgooA1BszwsoJvoM 00022020: 2b 57 6f 42 70 42 4a 6a 41 77 30 30 50 6e 66 76 +WoBpBJjAw00Pnfv 00022030: 5a 36 78 67 74 79 55 58 2f 67 63 61 4d 73 5a 42 Z6xgtyUX/gcaMsZB 00022040: 59 53 48 79 43 35 4e 50 7a 67 79 64 47 73 49 59 YSHyC5NPzgydGsIY 00022050: 51 31 51 76 47 65 55 48 77 41 50 30 47 76 51 6e Q1QvGeUHwAP0GvQn 00022060: 36 30 46 59 42 67 41 44 70 41 51 55 4f 6b 34 7a 60FYBgADpAQUOk4z 00022070: 37 77 53 2b 43 32 6f 49 6a 41 6c 41 41 45 6f 4f 7wS+C2oIjAlAAEoO 00022080: 70 42 67 48 32 42 68 72 43 6e 4b 4d 30 51 45 79 pBgH2BhrCnKM0QEy 00022090: 6a 41 47 34 6d 67 4e 59 6b 6f 51 43 63 4a 41 47 jAG4mgNYkoQCcJAG 000220a0: 4f 41 63 4d 41 47 67 4d 69 41 56 36 35 67 41 65 OAcMAGgMiAV65gAe 000220b0: 41 71 67 49 70 41 41 47 41 4e 41 44 57 41 41 36 AqgIpAAGANADWAA6 000220c0: 41 71 34 48 6e 67 41 61 41 49 5a 43 41 54 34 44 Aq4HngAaAIZCAT4D 000220d0: 4b 44 41 42 49 75 59 43 6b 41 4f 55 43 44 4c 4d KDABIuYCkAOUCDLM 000220e0: 41 5a 59 77 41 66 51 71 42 42 7a 45 44 42 59 41 AZYwAfQqBBzEDBYA 000220f0: 2b 44 68 75 53 77 4c 44 73 67 4b 41 61 32 61 6a +DhuSwLDsgKAa2aj 00022100: 42 64 35 5a 41 6f 38 43 53 6a 59 42 54 69 59 45 Bd5ZAo8CSjYBTiYE 00022110: 42 6b 39 49 55 67 4f 77 63 75 49 41 33 41 42 4d Bk9IUgOwcuIA3ABM 00022120: 42 68 54 67 53 41 45 57 72 45 76 4d 47 2b 52 45 BhTgSAEWrEvMG+RE 00022130: 41 65 42 77 4c 41 44 49 41 50 77 41 42 6a 59 48 AeBwLADIAPwABjYH 00022140: 42 6b 49 42 7a 67 48 30 62 67 43 34 41 57 41 4c BkIBzgH0bgC4AWAL 00022150: 4d 67 6d 6a 74 4c 59 42 54 75 6f 71 41 49 51 41 MgmjtLYBTuoqAIQA 00022160: 46 6d 77 42 32 41 4b 4b 41 4e 34 41 4e 67 43 41 FmwB2AKKAN4ANgCA 00022170: 38 67 46 55 41 45 34 46 57 76 6f 46 31 41 4a 51 8gFUAE4FWvoF1AJQ 00022180: 53 67 45 53 4d 68 6b 73 57 47 49 42 76 41 4d 67 SgESMhksWGIBvAMg 00022190: 41 54 51 42 44 67 42 36 42 73 79 4f 70 73 6f 49 ATQBDgB6BsyOpsoI 000221a0: 49 41 52 75 42 39 51 43 45 42 77 56 34 67 4c 76 IARuB9QCEBwV4gLv 000221b0: 4c 77 65 32 41 67 4d 69 34 42 50 4f 51 73 59 43 Lwe2AgMi4BPOQsYC 000221c0: 76 64 39 57 41 44 49 58 55 75 35 65 5a 77 71 6f vd9WADIXUu5eZwqo 000221d0: 43 71 64 65 61 41 43 30 59 54 51 48 4d 6e 4d 39 CqdeaAC0YTQHMnM9 000221e0: 55 51 41 50 48 36 6b 2b 79 41 64 79 2f 42 5a 49 UQAPH6k+yAdy/BZI 000221f0: 69 51 49 6d 53 77 42 51 35 67 42 51 51 7a 53 61 iQImSwBQ5gBQQzSa 00022200: 4e 54 46 57 53 54 59 42 70 77 47 71 4b 51 4b 33 NTFWSTYBpwGqKQK3 00022210: 38 41 46 74 71 77 42 49 2f 77 4b 33 37 67 4b 33 8AFtqwBI/wK37gK3 00022220: 72 51 4b 33 73 41 4b 36 32 38 30 43 30 67 4b 33 rQK3sAK6280C0gK3 00022230: 33 41 4b 33 7a 78 41 41 55 45 49 41 55 44 39 53 3AK3zxAAUEIAUD9S 00022240: 6b 6c 4b 44 41 72 65 6b 41 72 77 35 41 45 51 41 klKDArekArw5AEQA 00022250: 7a 41 48 43 4f 31 34 37 57 54 74 65 4f 31 6b 37 zAHCO147WTteO1k7 00022260: 58 6a 74 5a 4f 31 34 37 57 54 74 65 4f 31 6b 44 XjtZO147WTteO1kD 00022270: 6d 43 68 59 49 30 33 41 56 55 30 6f 4a 71 6b 4b mChYI03AVU0oJqkK 00022280: 62 56 39 47 59 65 77 4d 70 77 33 56 52 4d 6b 36 bV9GYewMpw3VRMk6 00022290: 53 68 50 63 59 46 4a 67 4d 78 50 4a 4c 62 67 55 ShPcYFJgMxPJLbgU 000222a0: 77 68 58 50 4a 56 63 5a 50 68 71 39 4a 77 59 6c whXPJVcZPhq9JwYl 000222b0: 35 56 55 4b 44 77 55 74 31 47 59 78 43 43 30 30 5VUKDwUt1GYxCC00 000222c0: 64 68 65 39 41 45 41 70 61 59 4e 43 59 34 63 65 dhe9AEApaYNCY4ce 000222d0: 4d 51 70 4d 48 4f 68 54 6b 6c 54 35 4c 52 77 41 MQpMHOhTklT5LRwA 000222e0: 73 6b 75 6a 4d 37 41 4e 72 52 73 57 52 45 45 46 skujM7ANrRsWREEF 000222f0: 53 48 58 75 59 69 73 57 44 77 6f 6a 41 6d 53 43 SHXuYisWDwojAmSC 00022300: 41 6d 4a 44 58 45 36 77 58 44 63 68 41 71 48 34 AmJDXE6wXDchAqH4 00022310: 41 6d 69 5a 41 6d 59 4b 41 70 2b 46 4f 42 77 4d AmiZAmYKAp+FOBwM 00022320: 41 6d 59 38 41 6d 59 6e 42 47 38 45 67 41 4e 2f AmY8AmYnBG8EgAN/ 00022330: 46 41 4e 2b 6b 7a 6b 48 4f 58 67 59 4f 59 4d 36 FAN+kzkHOXgYOYM6 00022340: 4a 43 51 43 62 42 34 43 4d 6a 63 34 43 77 4a 74 JCQCbB4CMjc4CwJt 00022350: 79 41 4a 74 72 2f 43 4c 41 44 52 6f 52 69 77 42 yAJtr/CLADRoRiwB 00022360: 61 41 44 66 41 4f 49 41 53 77 59 48 6d 51 79 4f aADfAOIASwYHmQyO 00022370: 41 50 38 4d 77 77 41 4f 74 67 4a 33 4d 41 4a 32 AP8MwwAOtgJ3MAJ2 00022380: 6f 30 41 43 65 55 78 45 41 6e 69 37 48 6c 33 63 o0ACeUxEAni7Hl3c 00022390: 52 61 39 47 39 41 4a 38 51 41 4a 36 79 51 4a 39 Ra9G9AJ8QAJ6yQJ9 000223a0: 43 67 4a 38 38 55 67 42 53 48 35 6b 4a 51 41 73 CgJ88UgBSH5kJQAs 000223b0: 46 6b 6c 5a 53 6c 77 57 47 45 72 4e 41 74 45 43 FklZSlwWGErNAtEC 000223c0: 41 74 44 4e 53 79 67 44 69 46 41 44 68 2b 64 45 AtDNSygDiFADh+dE 000223d0: 78 70 45 7a 41 76 4b 69 58 51 51 44 41 36 39 4c xpEzAvKiXQQDA69L 000223e0: 7a 30 77 75 4a 67 54 51 54 55 31 4e 73 41 4b 4c z0wuJgTQTU1NsAKL 000223f0: 51 41 4b 4b 32 63 49 63 43 42 35 45 61 41 61 34 QAKK2cIcCB5EaAa4 00022400: 41 6f 34 34 41 6f 35 64 51 5a 69 43 41 6f 37 61 Ao44Ao5dQZiCAo7a 00022410: 41 6f 35 64 65 56 47 31 55 7a 59 4c 55 74 56 55 Ao5deVG1UzYLUtVU 00022420: 68 67 4b 54 2f 41 4b 54 44 51 44 71 41 42 31 56 hgKT/AKTDQDqAB1V 00022430: 48 31 57 77 56 64 45 48 4c 42 77 70 6c 6f 63 79 H1WwVdEHLBwplocy 00022440: 34 6e 68 6e 52 54 77 36 41 70 65 67 41 75 2b 7a 4nhnRTw6ApegAu+z 00022450: 57 43 4b 70 41 46 6f 6d 41 70 61 51 41 70 5a 39 WCKpAFomApaQApZ9 00022460: 6e 51 43 71 57 61 31 61 43 6f 4a 4f 41 44 77 43 nQCqWa1aCoJOADwC 00022470: 6c 72 59 43 6c 6b 39 63 52 56 7a 53 41 70 6e 4d lrYClk9cRVzSApnM 00022480: 41 70 6c 6c 58 4d 74 64 43 42 6f 43 6e 4a 77 35 ApllXMtdCBoCnJw5 00022490: 77 7a 71 65 41 70 77 58 41 70 2b 63 41 70 36 35 wzqeApwXAp+cAp65 000224a0: 69 77 41 65 45 44 49 72 45 41 4b 64 38 67 4b 65 iwAeEDIrEAKd8gKe 000224b0: 6b 77 43 32 50 6d 45 31 59 66 41 43 6e 74 51 43 kwC2PmE1YfACntQC 000224c0: 6f 47 38 42 71 67 4b 65 6f 43 41 43 6e 6b 2b 6d oG8BqgKeoCACnk+m 000224d0: 59 38 6c 6b 4b 43 59 73 41 69 65 77 41 69 5a 2f Y8lkKCYsAiewAiZ/ 000224e0: 41 71 44 38 41 71 42 4e 32 41 4b 6d 4d 41 4b 6c AqD8AqBN2AKmMAKl 000224f0: 7a 77 4b 6f 41 41 42 2b 41 71 66 7a 61 48 31 6f zwKoAAB+AqfzaH1o 00022500: 73 67 41 45 53 6d 6f 64 61 74 49 43 72 4f 51 43 sgAESmodatICrOQC 00022510: 72 4b 38 43 72 57 67 43 72 51 4d 43 56 78 34 43 rK8CrWgCrQMCVx4C 00022520: 56 64 30 43 73 65 4c 59 41 78 39 50 62 4a 67 43 Vd0CseLYAx9PbJgC 00022530: 73 72 34 4f 41 72 4c 70 47 47 7a 68 62 57 52 74 sr4OArLpGGzhbWRt 00022540: 53 57 41 44 4a 63 34 43 74 6c 30 38 51 47 36 52 SWADJc4Ctl08QG6R 00022550: 41 79 6c 47 41 72 68 66 41 72 6c 49 46 67 4b 35 AylGArhfArlIFgK5 00022560: 4b 33 68 77 4e 33 44 69 41 72 30 61 41 79 32 7a K3hwN3DiAr0aAy2z 00022570: 41 7a 49 53 41 72 36 4a 63 67 4d 44 4d 33 49 43 AzISAr6JcgMDM3IC 00022580: 76 68 74 7a 49 33 4e 51 41 73 50 4d 41 73 4d 46 vhtzI3NQAsPMAsMF 00022590: 63 34 4e 30 54 44 5a 47 64 4f 45 44 50 4b 67 44 c4N0TDZGdOEDPKgD 000225a0: 50 4a 73 44 50 63 41 43 78 58 30 43 78 6b 67 43 PJsDPcACxX0CxkgC 000225b0: 78 68 47 4b 41 73 68 71 55 67 4c 49 52 51 4c 4a xhGKAshqUgLIRQLJ 000225c0: 55 41 4c 4a 4c 77 4a 6b 6e 67 4c 64 30 33 68 36 UALJLwJkngLd03h6 000225d0: 59 6e 69 76 65 53 5a 4c 30 51 4d 59 70 47 63 44 YniveSZL0QMYpGcD 000225e0: 41 6d 48 31 47 66 53 56 4a 58 73 4d 58 70 4e 65 AmH1GfSVJXsMXpNe 000225f0: 76 42 49 43 7a 32 77 43 7a 32 30 77 54 46 54 54 vBICz2wCz20wTFTT 00022600: 39 42 53 67 41 4d 65 75 41 73 39 30 41 53 72 72 9BSgAMeuAs90ASrr 00022610: 41 30 34 54 66 6b 77 47 41 74 77 6f 41 74 75 4c A04TfkwGAtwoAtuL 00022620: 41 74 4a 51 41 31 4a 64 41 31 4e 67 41 51 49 44 AtJQA1JdA1NgAQID 00022630: 56 59 32 41 69 6b 41 42 7a 42 66 75 59 55 5a 32 VY2AikABzBfuYUZ2 00022640: 41 49 4c 50 67 34 34 43 32 73 67 43 32 64 2b 45 AILPg44C2sgC2d+E 00022650: 45 59 52 4b 70 7a 30 44 68 71 59 41 4d 41 4e 6b EYRKpz0DhqYAMANk 00022660: 44 34 5a 79 57 76 6f 41 56 67 4c 66 5a 67 4c 65 D4ZyWvoAVgLfZgLe 00022670: 75 58 52 34 41 75 49 77 37 52 55 42 38 7a 45 6f uXR4AuIw7RUB8zEo 00022680: 41 66 53 63 41 66 4c 54 69 41 4c 72 39 41 4c 70 AfScAfLTiALr9ALp 00022690: 63 58 6f 41 41 75 72 36 41 75 72 6c 41 50 70 49 cXoAAur6AurlAPpI 000226a0: 41 62 6f 43 37 6f 6f 43 36 35 32 57 71 35 63 45 AboC7ooC652Wq5cE 000226b0: 41 75 35 41 41 34 58 68 6d 48 70 77 34 58 47 69 Au5AA4XhmHpw4XGi 000226c0: 41 76 4d 45 41 47 6f 44 6a 68 65 5a 6c 41 4c 33 AvMEAGoDjheZlAL3 000226d0: 46 41 4f 52 62 77 4f 53 69 41 4c 33 6d 51 4c 35 FAORbwOSiAL3mQL5 000226e0: 32 67 4c 34 5a 35 6f 64 6d 71 79 38 4f 4a 73 66 2gL4Z5odmqy8OJsf 000226f0: 41 35 32 45 41 76 37 37 41 52 77 41 4f 70 38 64 A52EAv77ARwAOp8d 00022700: 6e 37 51 44 42 59 34 44 70 6d 73 44 70 74 6f 41 n7QDBY4DpmsDptoA 00022710: 30 73 59 44 42 6d 75 68 69 61 49 47 43 67 4d 4d 0sYDBmuhiaIGCgMM 00022720: 53 67 46 67 41 53 41 43 74 67 4e 47 41 4a 77 45 SgFgASACtgNGAJwE 00022730: 67 4c 70 6f 42 67 43 38 42 47 7a 41 45 6f 77 63 gLpoBgC8BGzAEowc 00022740: 67 67 43 45 44 43 36 6b 64 6a 6f 41 4a 41 4d 30 ggCEDC6kdjoAJAM0 00022750: 43 35 49 4b 52 6f 41 42 5a 43 67 69 41 49 7a 77 C5IKRoABZCgiAIzw 00022760: 33 41 59 42 4c 41 43 6b 66 6e 67 39 6f 67 69 67 3AYBLACkfng9ogig 00022770: 6b 67 4e 6d 57 41 4e 36 41 45 51 43 76 72 6b 45 kgNmWAN6AEQCvrkE 00022780: 56 71 54 47 41 77 43 73 42 52 62 41 41 2b 34 69 VqTGAwCsBRbAA+4i 00022790: 51 6b 4d 43 48 52 30 37 32 6a 49 32 50 54 62 55 QkMCHR072jI2PTbU 000227a0: 4e 73 6b 32 52 6a 59 35 4e 76 41 32 33 54 5a 4b Nsk2RjY5NvA23TZK 000227b0: 4e 69 55 33 45 44 63 5a 4e 35 49 2b 52 54 78 44 NiU3EDcZN5I+RTxD 000227c0: 52 54 42 43 4a 6b 4b 35 56 42 59 4b 46 68 5a 66 RTBCJkK5VBYKFhZf 000227d0: 77 51 43 57 79 67 55 33 41 4a 42 52 48 70 75 2b wQCWygU3AJBRHpu+ 000227e0: 4f 79 74 67 4e 78 61 36 31 41 34 30 47 4d 73 59 OytgNxa61A40GMsY 000227f0: 6a 73 6e 37 42 56 77 46 58 51 56 63 42 56 30 46 jsn7BVwFXQVcBV0F 00022800: 61 41 56 64 42 56 77 46 58 51 56 63 42 56 30 46 aAVdBVwFXQVcBV0F 00022810: 58 41 56 64 42 56 77 46 58 55 73 61 43 4e 79 4b XAVdBVwFXUsaCNyK 00022820: 41 4b 34 41 41 51 55 48 42 77 4b 55 37 6f 49 43 AK4AAQUHBwKU7oIC 00022830: 6f 57 31 65 37 6a 41 45 7a 67 50 78 41 2b 59 44 oW1e7jAEzgPxA+YD 00022840: 77 67 43 6b 42 46 44 41 77 41 44 41 42 4b 7a 41 wgCkBFDAwADABKzA 00022850: 41 4f 78 46 4c 68 69 74 41 31 55 46 54 44 65 79 AOxFLhitA1UFTDey 00022860: 50 6b 4d 2b 62 6a 35 31 51 6b 52 43 75 77 54 51 PkM+bj51QkRCuwTQ 00022870: 57 57 51 38 58 2b 30 41 57 42 59 7a 73 41 43 4e WWQ8X+0AWBYzsACN 00022880: 41 38 78 77 7a 41 47 6d 37 45 5a 2f 51 69 73 6f A8xwzAGm7EZ/Qiso 00022890: 43 54 41 62 4c 44 73 36 66 6e 4c 66 62 38 48 32 CTAbLDs6fnLfb8H2 000228a0: 47 63 63 73 62 67 46 77 31 33 4d 31 48 41 56 6b GccsbgFw13M1HAVk 000228b0: 42 57 2f 4a 78 73 6d 39 43 4e 52 4f 38 45 38 46 BW/Jxsm9CNRO8E8F 000228c0: 44 44 30 46 42 51 77 39 46 6b 63 43 6c 4f 59 43 DD0FBQw9FkcClOYC 000228d0: 6f 4d 46 65 67 70 44 66 41 44 67 63 4d 69 41 32 oMFegpDfADgcMiA2 000228e0: 41 4a 51 41 43 42 38 41 73 69 67 4b 41 49 7a 49 AJQACB8AsigKAIzI 000228f0: 45 41 4a 4b 65 42 49 41 70 59 35 79 50 5a 51 49 EAJKeBIApY5yPZQI 00022900: 41 4b 51 69 48 62 34 66 76 6a 35 42 4b 53 52 50 AKQiHb4fvj5BKSRP 00022910: 51 72 5a 43 4f 7a 30 6f 58 79 78 67 4f 79 77 66 QrZCOz0oXyxgOywf 00022920: 4b 41 6e 47 62 67 4d 43 6c 51 61 43 41 6b 49 4c KAnGbgMClQaCAkIL 00022930: 58 67 64 65 43 44 39 49 49 47 55 67 51 6a 35 66 XgdeCD9IIGUgQj5f 00022940: 50 6f 59 2b 64 54 35 32 41 6f 35 43 4d 30 64 41 PoY+dT52Ao5CM0dA 00022950: 58 39 42 54 56 47 39 53 44 7a 46 77 57 54 51 41 X9BTVG9SDzFwWTQA 00022960: 62 78 42 7a 4a 46 2f 6c 4f 45 49 51 51 67 6c 43 bxBzJF/lOEIQQglC 00022970: 43 6b 4b 4a 49 41 6c 73 35 41 63 43 6c 51 49 43 CkKJIAls5AcClQIC 00022980: 6f 4b 50 4d 4f 44 45 46 78 68 69 36 4b 53 41 62 oKPMODEFxhi6KSAb 00022990: 69 79 66 49 52 72 4d 6a 74 43 67 64 57 43 41 6b iyfIRrMjtCgdWCAk 000229a0: 50 6c 46 42 49 69 74 43 73 45 4a 52 7a 41 62 4d PlFBIitCsEJRzAbM 000229b0: 41 56 2f 4f 45 79 51 7a 44 67 30 4f 41 51 51 45 AV/OEyQzDg0OAQQE 000229c0: 4a 33 36 69 33 32 38 2f 4d 6b 39 41 79 62 44 4a J36i328/Mk9AybDJ 000229d0: 73 51 6c 71 33 74 44 52 41 70 55 4b 41 6b 46 7a sQlq3tDRApUKAkFz 000229e0: 58 66 31 64 2f 6a 39 75 41 4c 59 50 36 68 43 6f Xf1d/j9uALYP6hCo 000229f0: 46 67 43 54 47 44 38 6b 50 73 46 4b 51 69 6f 62 FgCTGD8kPsFKQiob 00022a00: 72 6d 30 2b 7a 6a 30 4b 53 44 38 6b 50 6e 56 43 rm0+zj0KSD8kPnVC 00022a10: 52 42 77 4d 44 79 4a 52 54 48 46 67 4d 54 4a 61 RBwMDyJRTHFgMTJa 00022a20: 35 72 77 58 51 69 51 32 59 66 49 2f 4a 44 37 42 5rwXQiQ2YfI/JD7B 00022a30: 4d 45 4a 45 48 47 49 4e 54 77 34 54 4f 46 6c 49 MEJEHGINTw4TOFlI 00022a40: 52 7a 77 4a 4f 30 69 63 4d 51 70 79 50 79 51 2b RzwJO0icMQpyPyQ+ 00022a50: 77 7a 4a 43 52 42 76 36 44 56 67 6e 4b 42 30 31 wzJCRBv6DVgnKB01 00022a60: 4e 67 55 4b 6a 32 62 77 59 7a 4d 71 43 6f 42 6b NgUKj2bwYzMqCoBk 00022a70: 7a 6e 42 67 45 46 2b 7a 59 44 49 6f 63 77 52 49 znBgEF+zYDIocwRI 00022a80: 58 2b 4e 67 48 6a 34 48 49 43 4e 66 68 32 43 34 X+NgHj4HICNfh2C4 00022a90: 43 77 64 77 46 57 70 54 47 2f 6c 67 55 68 59 47 CwdwFWpTG/lgUhYG 00022aa0: 41 77 52 66 76 32 54 73 38 6d 41 61 58 7a 56 67 AwRfv2Ts8mAaXzVg 00022ab0: 6d 6c 2f 58 59 49 4a 66 75 57 43 34 48 49 31 67 ml/XYIJfuWC4HI1g 00022ac0: 55 46 39 70 59 4a 5a 67 4d 52 36 69 6c 51 48 4d UF9pYJZgMR6ilQHM 00022ad0: 41 4f 77 4c 41 6c 44 52 65 66 43 30 69 6e 34 41 AOwLAlDRefC0in4A 00022ae0: 58 41 45 4a 41 36 50 6a 43 77 63 30 49 61 6d 4f XAEJA6PjCwc0IamO 00022af0: 41 4e 4d 4d 43 41 45 43 52 51 44 46 4e 52 54 5a ANMMCAECRQDFNRTZ 00022b00: 42 67 64 2b 43 77 51 6c 52 41 2b 72 36 2b 67 4c Bgd+CwQlRA+r6+gL 00022b10: 42 44 45 46 42 6e 77 55 42 58 67 4b 41 54 49 41 BDEFBnwUBXgKATIA 00022b20: 72 77 41 47 52 41 41 48 41 33 63 44 64 41 4e 32 rwAGRAAHA3cDdAN2 00022b30: 41 33 6b 44 64 77 4e 39 41 33 6f 44 64 51 4e 37 A3kDdwN9A3oDdQN7 00022b40: 41 33 30 44 66 41 4e 34 41 33 6f 44 66 51 41 59 A30DfAN4A3oDfQAY 00022b50: 45 41 41 6c 41 74 59 41 53 77 4d 41 55 41 46 73 EAAlAtYASwMAUAFs 00022b60: 41 48 63 4b 41 48 63 41 6d 67 42 33 41 48 55 41 AHcKAHcAmgB3AHUA 00022b70: 64 51 42 32 41 48 56 75 38 55 67 41 79 67 44 41 dQB2AHVu8UgAygDA 00022b80: 41 48 63 41 64 51 42 31 41 48 59 41 64 51 41 4c AHcAdQB1AHYAdQAL 00022b90: 43 67 42 33 41 41 73 41 6d 67 42 33 41 41 73 43 CgB3AAsAmgB3AAsC 00022ba0: 4f 77 42 33 41 41 74 75 38 55 67 41 79 67 44 41 OwB3AAtu8UgAygDA 00022bb0: 41 48 67 4b 41 4a 6f 41 64 77 42 33 41 48 55 41 AHgKAJoAdwB3AHUA 00022bc0: 64 51 42 32 41 48 55 41 65 41 42 31 41 48 55 41 dQB2AHUAeAB1AHUA 00022bd0: 64 67 42 31 62 76 46 49 41 4d 6f 41 77 41 41 4c dgB1bvFIAMoAwAAL 00022be0: 43 67 43 61 41 48 63 41 43 77 42 33 41 41 73 43 CgCaAHcACwB3AAsC 00022bf0: 4f 77 42 33 41 41 74 75 38 55 67 41 79 67 44 41 OwB3AAtu8UgAygDA 00022c00: 41 48 34 41 43 77 47 67 41 4c 63 42 70 77 43 36 AH4ACwGgALcBpwC6 00022c10: 41 61 68 64 41 75 30 43 4f 77 4c 74 62 76 46 49 AahdAu0COwLtbvFI 00022c20: 41 4d 6f 41 77 41 41 4c 43 67 43 61 41 75 30 41 AMoAwAALCgCaAu0A 00022c30: 43 77 4c 74 41 41 73 43 4f 77 4c 74 41 41 74 75 CwLtAAsCOwLtAAtu 00022c40: 38 55 67 41 79 67 44 41 41 32 34 41 43 77 4e 76 8UgAygDAA24ACwNv 00022c50: 41 41 75 30 56 73 51 41 41 7a 73 41 41 42 43 6b AAu0VsQAAzsAABCk 00022c60: 6a 55 49 70 41 41 73 41 55 49 75 73 4f 67 67 57 jUIpAAsAUIusOggW 00022c70: 63 67 4d 65 42 78 56 73 47 77 4c 36 37 55 2f 32 cgMeBxVsGwL67U/2 00022c80: 48 6c 7a 6d 57 4f 45 65 4f 67 41 4c 41 53 76 75 HlzmWOEeOgALASvu 00022c90: 41 41 73 65 41 66 70 4b 55 70 6e 70 47 67 59 4a AAseAfpKUpnpGgYJ 00022ca0: 44 43 49 5a 4d 36 59 79 41 52 55 45 39 54 68 71 DCIZM6YyARUE9Thq 00022cb0: 41 44 35 69 58 51 67 6e 41 4a 59 4a 50 6e 4f 7a AD5iXQgnAJYJPnOz 00022cc0: 77 30 5a 41 45 5a 78 45 4b 73 49 41 6b 41 34 44 w0ZAEZxEKsIAkA4D 00022cd0: 68 41 48 6e 54 41 49 44 78 78 55 44 4b 30 6c 78 hAHnTAIDxxUDK0lx 00022ce0: 43 51 6c 50 59 67 49 76 49 51 56 59 4a 51 42 56 CQlPYgIvIQVYJQBV 00022cf0: 71 45 31 47 61 6b 55 41 4b 47 59 69 44 54 6f 53 qE1GakUAKGYiDToS 00022d00: 42 41 31 45 74 41 59 41 58 51 4a 59 41 49 46 38 BA1EtAYAXQJYAIF8 00022d10: 47 67 4d 48 52 79 41 41 49 41 6a 4f 65 39 59 6e GgMHRyAAIAjOe9Yn 00022d20: 63 65 6b 52 41 41 30 4b 41 43 55 72 6a 77 45 37 cekRAA0KACUrjwE7 00022d30: 41 79 63 36 41 41 59 57 41 71 61 69 4b 47 34 4d Ayc6AAYWAqaiKG4M 00022d40: 63 45 63 71 41 4e 6f 4e 33 2b 4d 67 39 54 77 43 cEcqANoN3+Mg9TwC 00022d50: 42 68 49 6b 75 43 6e 79 2b 4a 77 55 51 32 39 4c BhIkuCny+JwUQ29L 00022d60: 30 30 38 4a 6c 75 52 78 75 33 4b 2b 6f 41 64 71 008JluRxu3K+oAdq 00022d70: 69 48 4f 71 46 48 30 41 47 35 53 55 49 66 55 4a iHOqFH0AG5SUIfUJ 00022d80: 35 53 78 43 47 66 78 64 69 70 52 7a 71 54 6d 54 5SxCGfxdipRzqTmT 00022d90: 34 56 35 5a 62 2b 72 31 55 6f 34 56 6d 2b 4e 71 4V5Zb+r1Uo4Vm+Nq 00022da0: 53 53 45 6c 32 6d 4e 76 52 32 4a 68 49 61 38 53 SSEl2mNvR2JhIa8S 00022db0: 70 59 4f 36 6e 74 64 77 46 58 48 43 57 54 43 4b pYO6ntdwFXHCWTCK 00022dc0: 38 66 32 2b 48 78 6f 37 75 69 47 33 64 72 44 79 8f2+Hxo7uiG3drDy 00022dd0: 63 41 75 4b 49 4d 50 35 62 68 69 30 36 41 43 6e cAuKIMP5bhi06ACn 00022de0: 71 41 72 48 31 72 7a 34 52 71 67 2f 2f 6c 6d 36 qArH1rz4Rqg//lm6 00022df0: 53 67 4a 47 45 56 62 46 39 78 4a 48 49 53 61 52 SgJGEVbF9xJHISaR 00022e00: 36 48 78 71 78 53 6e 6b 77 36 73 68 44 6e 65 6c 6HxqxSnkw6shDnel 00022e10: 48 4b 4e 45 66 47 55 58 53 4a 52 4a 31 47 63 73 HKNEfGUXSJRJ1Gcs 00022e20: 6d 74 4a 77 32 35 78 72 5a 4d 44 4b 39 67 58 53 mtJw25xrZMDK9gXS 00022e30: 6d 31 2f 59 4d 6b 64 58 34 2f 36 4e 4b 59 4f 64 m1/YMkdX4/6NKYOd 00022e40: 74 6b 2f 4e 51 33 2f 4e 6e 44 41 53 6a 54 63 33 tk/NQ3/NnDASjTc3 00022e50: 66 50 6a 49 6a 57 2f 35 73 56 66 56 4f 62 58 32 fPjIjW/5sVfVObX2 00022e60: 6f 54 44 57 6b 72 31 64 46 39 66 33 6b 78 42 73 oTDWkr1dF9f3kxBs 00022e70: 44 33 2f 33 61 51 4f 38 68 50 66 52 7a 2b 65 30 D3/3aQO8hPfRz+e0 00022e80: 75 45 69 4a 71 74 31 31 36 31 67 72 69 75 37 67 uEiJqt1161griu7g 00022e90: 7a 38 68 44 44 77 74 70 79 2b 46 2b 42 57 74 65 z8hDDwtpy+F+BWte 00022ea0: 66 6e 4b 48 5a 50 41 78 63 5a 6f 57 62 6e 7a 6e fnKHZPAxcZoWbnzn 00022eb0: 68 4a 70 79 30 65 38 34 32 6a 33 36 62 63 4e 7a hJpy0e842j36bcNz 00022ec0: 47 6e 49 45 75 73 67 47 58 30 61 38 5a 78 73 6e GnIEusgGX0a8Zxsn 00022ed0: 6a 63 53 73 50 44 5a 30 39 79 5a 33 36 66 43 51 jcSsPDZ09yZ36fCQ 00022ee0: 62 72 69 48 65 51 37 32 4a 52 4d 49 4c 4e 6c 36 briHeQ72JRMILNl6 00022ef0: 65 50 50 66 32 48 57 6f 56 77 67 57 41 6d 31 66 ePPf2HWoVwgWAm1f 00022f00: 62 33 56 32 73 41 59 30 2b 42 36 72 41 58 71 53 b3V2sAY0+B6rAXqS 00022f10: 77 50 42 67 73 65 56 6d 6f 71 73 42 54 53 72 6d wPBgseVmoqsBTSrm 00022f20: 39 31 2b 58 61 73 4d 59 59 79 53 49 38 65 65 52 91+XasMYYySI8eeR 00022f30: 78 48 33 5a 76 48 6b 4d 7a 33 42 51 35 61 4a 33 xH3ZvHkMz3BQ5aJ3 00022f40: 69 55 56 62 59 50 4e 4d 33 2f 37 65 6d 52 74 6a iUVbYPNM3/7emRtj 00022f50: 6c 73 4d 67 76 2f 39 56 79 54 73 79 74 2f 6d 4b lsMgv/9VyTsyt/mK 00022f60: 2b 38 66 67 57 65 54 36 53 6f 46 61 63 6c 58 71 +8fgWeT6SoFaclXq 00022f70: 6e 34 32 64 41 49 73 76 41 61 72 46 35 76 4e 4e n42dAIsvAarF5vNN 00022f80: 57 48 7a 4b 53 6b 4b 51 2f 38 48 66 6b 35 5a 57 WHzKSkKQ/8Hfk5ZW 00022f90: 4b 37 72 39 79 6c 69 4f 73 6f 6f 79 42 6a 52 68 K7r9yliOsooyBjRh 00022fa0: 66 6b 48 50 34 51 32 44 6b 57 58 51 69 36 46 47 fkHP4Q2DkWXQi6FG 00022fb0: 2f 39 72 2f 49 77 62 6d 6b 56 35 54 37 4a 53 6f /9r/IwbmkV5T7JSo 00022fc0: 70 48 4b 6e 31 70 4a 77 6d 39 74 62 35 4f 74 30 pHKn1pJwm9tb5Ot0 00022fd0: 6f 79 4e 31 5a 32 6d 50 70 4b 58 48 54 78 78 32 oyN1Z2mPpKXHTxx2 00022fe0: 6e 6c 4b 30 38 66 4b 6b 31 68 45 59 41 38 57 67 nlK08fKk1hEYA8Wg 00022ff0: 56 56 57 4c 35 6c 67 78 30 69 54 76 2b 4b 64 6f VVWL5lgx0iTv+Kdo 00023000: 6a 4a 65 55 32 33 5a 44 6a 6d 69 75 62 58 4f 78 jJeU23ZDjmiubXOx 00023010: 56 58 4a 4b 4b 69 32 57 6a 75 68 32 48 4c 5a 4f VXJKKi2Wjuh2HLZO 00023020: 46 4c 69 53 43 37 54 6c 73 35 53 4d 68 34 66 2b FLiSC7Tls5SMh4f+ 00023030: 50 6a 36 78 55 53 72 4e 6a 46 71 4c 47 65 68 52 Pj6xUSrNjFqLGehR 00023040: 4e 42 38 6c 43 30 51 53 4c 4e 6d 6b 4a 4a 78 2f NB8lC0QSLNmkJJx/ 00023050: 77 53 47 33 4d 6e 6a 45 39 54 31 43 6b 50 77 4a wSG3MnjE9T1CkPwJ 00023060: 49 30 77 48 32 6c 66 7a 77 45 54 49 69 56 71 55 I0wH2lfzwETIiVqU 00023070: 78 67 30 64 66 75 35 71 33 39 47 74 2b 68 77 64 xg0dfu5q39Gt+hwd 00023080: 63 78 6b 68 68 4e 76 51 34 54 79 72 42 63 65 6f cxkhhNvQ4TyrBceo 00023090: 66 33 4d 68 73 2f 49 78 46 63 69 31 48 6d 48 72 f3Mhs/IxFci1HmHr 000230a0: 34 46 4d 5a 67 58 45 45 63 7a 50 69 47 43 78 30 4FMZgXEEczPiGCx0 000230b0: 48 52 77 7a 41 71 44 71 32 6a 39 41 56 6d 31 6b HRwzAqDq2j9AVm1k 000230c0: 77 4e 30 6d 52 56 4c 57 4c 79 6c 67 74 6f 50 4e wN0mRVLWLylgtoPN 000230d0: 61 70 46 35 63 59 34 59 31 77 4a 68 2f 65 30 42 apF5cY4Y1wJh/e0B 000230e0: 42 77 5a 6a 34 34 59 67 5a 72 44 4e 71 76 44 2f BwZj44YgZrDNqvD/ 000230f0: 39 48 76 37 47 46 59 64 55 51 65 44 4a 75 51 33 9Hv7GFYdUQeDJuQ3 00023100: 45 57 49 34 48 61 4b 71 61 76 55 31 58 6a 43 2f EWI4HaKqavU1XjC/ 00023110: 6e 34 31 6b 54 34 4c 37 39 6b 71 47 71 30 6b 4c n41kT4L79kqGq0kL 00023120: 68 64 54 5a 76 67 50 33 54 41 33 66 53 30 6f 7a hdTZvgP3TA3fS0oz 00023130: 56 7a 2b 35 70 69 5a 73 6f 4f 74 49 76 42 55 46 Vz+5piZsoOtIvBUF 00023140: 6f 4d 4b 62 4e 63 6d 42 4c 36 59 78 78 61 55 41 oMKbNcmBL6YxxaUA 00023150: 75 73 48 42 33 38 58 72 53 38 64 51 4d 6e 51 77 usHB38XrS8dQMnQw 00023160: 4a 66 55 55 6b 70 52 6f 47 72 35 41 55 65 57 69 JfUUkpRoGr5AUeWi 00023170: 63 76 42 54 7a 79 4b 39 67 37 37 2b 79 43 6b 66 cvBTzyK9g77+yCkf 00023180: 35 50 41 79 73 4c 37 72 2f 4a 6a 63 5a 67 72 62 5PAysL7r/JjcZgrb 00023190: 76 52 70 4d 57 39 69 79 61 78 5a 76 4b 4f 36 63 vRpMW9iyaxZvKO6c 000231a0: 65 5a 4e 32 45 77 49 78 4b 77 56 46 50 75 76 46 eZN2EwIxKwVFPuvF 000231b0: 75 69 45 50 47 43 6f 61 67 62 4d 6f 2b 53 70 79 uiEPGCoagbMo+Spy 000231c0: 64 4c 72 58 71 42 7a 4e 43 44 47 46 43 72 4f 2f dLrXqBzNCDGFCrO/ 000231d0: 72 6b 63 77 61 32 78 68 6f 6b 51 5a 35 43 64 5a rkcwa2xhokQZ5CdZ 000231e0: 30 41 73 55 33 4a 66 53 71 4a 36 6e 35 49 31 34 0AsU3JfSqJ6n5I14 000231f0: 59 41 2b 50 2f 75 41 67 66 68 50 55 38 34 54 6c YA+P/uAgfhPU84Tl 00023200: 77 37 63 45 46 66 70 37 41 45 45 38 65 79 34 73 w7cEFfp7AEE8ey4s 00023210: 50 31 32 50 54 74 34 43 6f 64 73 31 47 52 67 44 P12PTt4Cods1GRgD 00023220: 4f 42 35 78 76 79 69 52 35 6d 2b 42 78 38 4f 35 OB5xvyiR5m+Bx8O5 00023230: 6e 42 43 4e 63 74 55 38 42 65 76 66 56 35 41 30 nBCNctU8BevfV5A0 00023240: 38 78 36 52 48 64 35 6a 63 77 50 54 4d 44 53 5a 8x6RHd5jcwPTMDSZ 00023250: 4a 4f 65 64 49 5a 31 63 47 51 37 30 34 6c 78 62 JOedIZ1cGQ704lxb 00023260: 41 7a 71 5a 4f 50 30 35 5a 78 61 4f 67 68 7a 53 AzqZOP05ZxaOghzS 00023270: 64 76 46 42 48 59 71 6f 6d 41 54 41 52 79 41 41 dvFBHYqomATARyAA 00023280: 44 4b 34 65 6c 50 38 4c 79 33 49 72 55 5a 4b 66 DK4elP8Ly3IrUZKf 00023290: 57 68 32 33 58 79 32 30 75 42 55 6d 4c 53 34 50 Wh23Xy20uBUmLS4P 000232a0: 66 61 67 75 39 2b 6f 79 56 61 32 69 50 67 71 52 fagu9+oyVa2iPgqR 000232b0: 50 33 46 32 43 54 55 73 76 4a 37 2b 52 59 6e 4e P3F2CTUsvJ7+RYnN 000232c0: 38 66 46 5a 62 55 2f 48 56 76 78 76 63 46 46 44 8fFZbU/HVvxvcFFD 000232d0: 4b 6b 69 54 71 56 35 55 42 5a 33 47 7a 35 34 4a KkiTqV5UBZ3Gz54J 000232e0: 41 4b 42 79 69 39 68 6b 4b 4d 5a 4a 76 75 47 67 AKByi9hkKMZJvuGg 000232f0: 63 53 59 58 46 6d 77 30 38 55 79 6f 51 79 56 64 cSYXFmw08UyoQyVd 00023300: 66 54 44 31 2f 64 4d 6b 43 48 58 63 54 47 41 4b fTD1/dMkCHXcTGAK 00023310: 65 52 4f 67 41 72 73 76 6d 52 72 51 54 4c 55 4f eROgArsvmRrQTLUO 00023320: 58 69 6f 4f 48 47 4b 32 51 6b 6a 48 75 6f 59 46 XioOHGK2QkjHuoYF 00023330: 67 58 63 69 5a 6f 54 4a 64 36 46 73 35 71 31 51 gXciZoTJd6Fs5q1Q 00023340: 58 31 47 2b 70 2f 65 32 36 68 59 73 45 66 37 51 X1G+p/e26hYsEf7Q 00023350: 5a 44 31 6e 6e 49 79 6c 2f 53 46 6b 4e 74 59 59 ZD1nnIyl/SFkNtYY 00023360: 6d 6d 42 68 70 42 72 78 6c 39 57 62 59 30 59 70 mmBhpBrxl9WbY0Yp 00023370: 48 57 52 75 77 32 4c 6c 2f 74 6a 39 6d 44 38 50 HWRuw2Ll/tj9mD8P 00023380: 34 73 6e 56 7a 4a 6c 34 46 39 4a 2b 31 61 72 56 4snVzJl4F9J+1arV 00023390: 65 54 62 39 45 35 72 32 49 4c 48 30 34 71 53 74 eTb9E5r2ILH04qSt 000233a0: 6a 78 51 4e 77 6e 33 6d 34 59 4e 71 78 6d 61 4e jxQNwn3m4YNqxmaN 000233b0: 62 4c 41 71 57 32 54 4e 36 4c 69 64 77 75 4a 52 bLAqW2TN6LidwuJR 000233c0: 71 53 2b 4e 58 62 74 71 78 6f 65 44 58 70 78 65 qS+NXbtqxoeDXpxe 000233d0: 47 57 6d 78 7a 53 6b 57 78 6a 6b 79 43 6b 58 34 GWmxzSkWxjkyCkX4 000233e0: 4e 51 52 6d 65 36 71 35 53 41 63 43 2b 4d 37 2b NQRme6q5SAcC+M7+ 000233f0: 39 45 54 66 41 2f 45 77 72 7a 51 61 6a 4b 61 6b 9ETfA/EwrzQajKak 00023400: 43 77 59 79 65 75 6e 50 36 5a 46 6c 78 55 32 6f CwYyeunP6ZFlxU2o 00023410: 4d 45 6e 31 50 7a 33 31 7a 65 53 74 57 37 34 47 MEn1Pz31zeStW74G 00023420: 34 30 36 5a 4a 46 43 6c 31 77 41 58 49 6f 55 4b 406ZJFCl1wAXIoUK 00023430: 6b 57 6f 74 59 45 70 4f 75 58 42 31 75 56 4e 78 kWotYEpOuXB1uVNx 00023440: 4a 36 33 64 70 4a 45 71 66 78 42 65 70 74 77 49 J63dpJEqfxBeptwI 00023450: 48 4e 72 50 7a 38 42 6c 6c 5a 6f 49 63 42 6f 58 HNrPz8BllZoIcBoX 00023460: 77 67 66 4a 2b 38 56 41 55 6e 56 50 76 52 76 65 wgfJ+8VAUnVPvRve 00023470: 78 6e 77 30 4d 61 2f 57 69 47 59 75 4a 4f 35 79 xnw0Ma/WiGYuJO5y 00023480: 38 51 54 76 45 59 42 69 67 46 6d 68 55 78 59 35 8QTvEYBigFmhUxY5 00023490: 52 71 7a 45 38 4f 63 79 77 4e 2f 38 6d 34 55 59 RqzE8OcywN/8m4UY 000234a0: 72 6c 61 6e 69 4a 4f 37 35 58 51 36 4b 53 6f 39 rlaniJO75XQ6KSo9 000234b0: 2b 74 57 48 6c 75 2b 68 4d 69 30 55 56 64 69 4b +tWHlu+hMi0UVdiK 000234c0: 51 70 37 4e 65 6c 6e 6f 5a 55 7a 4e 61 49 79 42 Qp7NelnoZUzNaIyB 000234d0: 50 56 65 4f 77 4b 36 47 4e 70 2b 46 66 48 75 50 PVeOwK6GNp+FfHuP 000234e0: 4f 6f 79 68 61 57 75 4e 76 54 59 46 6b 76 78 73 OoyhaWuNvTYFkvxs 000234f0: 63 4d 51 57 44 68 2b 7a 65 46 43 46 6b 67 77 62 cMQWDh+zeFCFkgwb 00023500: 58 66 74 69 56 32 33 79 77 4a 34 2b 75 77 52 71 XftiV23ywJ4+uwRq 00023510: 6d 67 39 6b 33 4b 7a 77 49 51 70 7a 70 70 74 38 mg9k3KzwIQpzppt8 00023520: 44 42 42 4f 4d 62 72 71 77 51 4d 35 47 62 30 35 DBBOMbrqwQM5Gb05 00023530: 73 45 77 64 4b 7a 4d 69 41 71 4f 6c 6f 61 41 2f sEwdKzMiAqOloaA/ 00023540: 6c 72 30 4b 41 2b 31 70 72 30 2f 2b 48 69 57 6f lr0KA+1pr0/+HiWo 00023550: 69 49 6a 48 41 2f 77 69 72 32 6e 49 75 53 33 50 iIjHA/wir2nIuS3P 00023560: 65 55 2f 6a 69 33 4f 36 5a 77 6f 78 63 52 31 53 eU/ji3O6ZwoxcR1S 00023570: 5a 39 46 68 74 4c 43 35 53 30 46 49 7a 46 68 62 Z9FhtLC5S0FIzFhb 00023580: 42 57 63 47 56 50 2f 4b 70 78 4f 50 53 69 55 6f BWcGVP/KpxOPSiUo 00023590: 41 64 57 55 70 71 4b 48 2b 2b 36 53 63 7a 35 30 AdWUpqKH++6Scz50 000235a0: 37 69 43 63 78 59 49 36 72 64 4d 42 49 43 50 4a 7iCcxYI6rdMBICPJ 000235b0: 5a 65 61 37 4f 63 6d 65 46 77 35 6d 4f 62 4a 53 Zea7OcmeFw5mObJS 000235c0: 69 71 70 6a 67 32 55 6f 57 4e 49 73 2b 63 46 68 iqpjg2UoWNIs+cFh 000235d0: 79 44 53 74 36 67 65 56 35 71 67 69 33 46 75 6e yDSt6geV5qgi3Fun 000235e0: 6d 77 77 44 6f 47 53 4d 67 65 72 46 4f 5a 47 58 mwwDoGSMgerFOZGX 000235f0: 31 6d 30 64 4d 43 59 6f 35 58 4f 72 75 78 4f 30 1m0dMCYo5XOruxO0 00023600: 36 33 64 77 45 4e 4b 39 44 62 6e 56 4d 39 77 59 63dwENK9DbnVM9wY 00023610: 46 52 45 7a 68 34 76 79 55 31 57 59 59 4a 2f 4c FREzh4vyU1WYYJ/L 00023620: 52 52 70 36 6f 78 67 6a 71 50 2f 58 35 61 38 2f RRp6oxgjqP/X5a8/ 00023630: 34 41 66 36 70 36 4e 57 6b 51 66 65 72 7a 42 6d 4Af6p6NWkQferzBm 00023640: 58 6d 65 30 7a 59 2f 34 6e 77 4d 4a 6d 2f 77 64 Xme0zY/4nwMJm/wd 00023650: 31 74 49 71 53 77 47 7a 2b 45 33 78 50 45 41 4f 1tIqSwGz+E3xPEAO 00023660: 6f 5a 6c 4a 69 74 33 58 64 64 44 37 2f 42 54 31 oZlJit3XddD7/BT1 00023670: 70 6c 6c 7a 4f 78 2b 38 62 6d 51 74 41 4e 51 2f pllzOx+8bmQtANQ/ 00023680: 53 36 66 5a 65 78 63 36 71 69 33 57 2b 51 32 78 S6fZexc6qi3W+Q2x 00023690: 63 6d 58 54 55 68 75 53 35 6d 70 48 51 52 76 63 cmXTUhuS5mpHQRvc 000236a0: 78 5a 55 4e 30 53 35 2b 50 4c 39 6c 58 57 55 41 xZUN0S5+PL9lXWUA 000236b0: 61 52 5a 68 45 48 38 68 54 64 41 63 75 4e 4d 4d aRZhEH8hTdAcuNMM 000236c0: 43 75 56 4e 4b 54 45 47 74 53 55 4b 4e 69 33 4f CuVNKTEGtSUKNi3O 000236d0: 36 4b 68 53 61 54 7a 63 6b 38 63 73 5a 32 76 57 6KhSaTzck8csZ2vW 000236e0: 52 5a 2b 64 37 6d 57 38 63 34 49 4b 77 58 49 59 RZ+d7mW8c4IKwXIY 000236f0: 64 32 35 53 2f 7a 49 66 74 50 6b 77 50 7a 75 66 d25S/zIftPkwPzuf 00023700: 6a 45 76 4f 48 57 56 44 31 6d 2b 46 6a 70 44 56 jEvOHWVD1m+FjpDV 00023710: 55 54 56 30 44 47 44 75 48 6a 36 51 6e 61 45 77 UTV0DGDuHj6QnaEw 00023720: 4c 75 2f 64 45 67 64 4c 51 4f 67 39 45 31 53 72 Lu/dEgdLQOg9E1Sr 00023730: 6f 39 58 48 4a 38 79 6b 4c 41 77 74 50 75 2b 70 o9XHJ8ykLAwtPu+p 00023740: 78 71 4b 44 75 46 65 78 71 4f 4e 31 73 4b 51 6d xqKDuFexqON1sKQm 00023750: 37 72 77 62 45 31 45 36 38 55 43 66 41 2f 65 72 7rwbE1E68UCfA/er 00023760: 6f 76 72 54 43 47 2b 44 42 53 4e 67 30 6c 34 67 ovrTCG+DBSNg0l4g 00023770: 6f 44 51 76 5a 4e 36 75 4e 6c 62 79 4c 70 63 5a oDQvZN6uNlbyLpcZ 00023780: 41 77 6a 32 55 63 6c 79 63 76 4c 70 49 5a 4d 67 Awj2UclycvLpIZMg 00023790: 76 34 79 52 6c 70 62 33 59 75 4d 66 74 6f 7a 6f v4yRlpb3YuMftozo 000237a0: 72 62 63 47 56 48 74 2f 56 65 44 56 33 2b 46 64 rbcGVHt/VeDV3+Fd 000237b0: 66 31 54 50 30 69 75 61 43 73 50 69 32 47 34 58 f1TP0iuaCsPi2G4X 000237c0: 65 47 68 73 79 46 31 75 62 56 44 78 6b 6f 4a 68 eGhsyF1ubVDxkoJh 000237d0: 6d 6e 69 51 30 2f 6a 53 67 2f 65 59 4d 4c 39 4b mniQ0/jSg/eYML9K 000237e0: 4c 66 6e 43 46 67 49 53 57 6b 70 39 31 65 61 75 LfnCFgISWkp91eau 000237f0: 52 33 49 51 76 45 44 30 6e 41 50 58 4b 2b 36 68 R3IQvED0nAPXK+6h 00023800: 50 43 59 73 2b 6e 33 2b 68 43 5a 62 69 73 6b 6d PCYs+n3+hCZbiskm 00023810: 56 4d 47 32 64 61 2b 30 45 73 5a 50 6f 6e 55 65 VMG2da+0EsZPonUe 00023820: 49 59 38 45 62 66 75 73 51 58 6a 73 4b 2f 65 46 IY8EbfusQXjsK/eF 00023830: 44 61 6f 73 62 50 6a 45 66 51 53 30 52 4b 47 37 DaosbPjEfQS0RKG7 00023840: 79 6a 35 47 47 36 39 4d 37 4d 65 4f 31 48 6d 69 yj5GG69M7MeO1Hmi 00023850: 55 59 6f 63 67 79 67 4a 48 4c 36 4d 31 71 7a 55 UYocgygJHL6M1qzU 00023860: 44 44 77 55 53 6d 72 39 39 56 37 53 64 72 32 46 DDwUSmr99V7Sdr2F 00023870: 33 4a 6a 51 41 4a 59 2b 46 30 79 48 33 33 49 76 3JjQAJY+F0yH33Iv 00023880: 33 2b 43 39 4d 33 38 65 4d 4c 37 67 54 67 6d 4e 3+C9M38eML7gTgmN 00023890: 75 2f 72 32 62 55 4d 69 50 76 70 59 62 5a 36 76 u/r2bUMiPvpYbZ6v 000238a0: 31 2f 49 61 45 53 69 72 42 48 4e 61 37 6d 50 4b 1/IaESirBHNa7mPK 000238b0: 6e 34 64 45 6d 59 67 37 76 2f 2b 48 51 67 50 4e n4dEmYg7v/+HQgPN 000238c0: 31 47 37 39 6a 42 51 31 2b 73 6f 79 64 66 44 43 1G79jBQ1+soydfDC 000238d0: 32 72 2b 68 32 42 6c 2f 4b 49 63 35 4b 6a 4d 4b 2r+h2Bl/KIc5KjMK 000238e0: 37 4f 48 36 6e 62 31 6a 4c 73 4e 66 30 45 48 56 7OH6nb1jLsNf0EHV 000238f0: 65 32 4b 42 69 45 35 31 6f 78 36 33 36 75 79 47 e2KBiE51ox636uyG 00023900: 36 4c 68 6f 30 74 33 4a 33 34 4c 35 51 59 2f 69 6Lho0t3J34L5QY/i 00023910: 6c 45 33 6d 69 6b 61 46 34 48 4b 58 47 31 6d 47 lE3mikaF4HKXG1mG 00023920: 31 72 43 65 76 54 31 56 76 36 47 61 76 6c 74 78 1rCevT1Vv6Gavltx 00023930: 6f 51 65 2f 62 4d 72 70 5a 76 52 67 67 6e 42 78 oQe/bMrpZvRggnBx 00023940: 53 45 50 45 65 45 7a 6b 45 64 4f 78 54 6e 50 58 SEPEeEzkEdOxTnPX 00023950: 48 56 6a 55 59 64 77 38 4a 59 76 6a 42 2f 6f 37 HVjUYdw8JYvjB/o7 00023960: 45 65 67 63 33 4d 61 2b 4e 55 78 4c 4c 6e 73 4b Eegc3Ma+NUxLLnsK 00023970: 30 6b 4a 6c 69 6e 50 6d 55 48 7a 48 47 74 72 6b 0kJlinPmUHzHGtrk 00023980: 35 2b 43 41 62 56 7a 46 4f 42 71 70 79 79 33 51 5+CAbVzFOBqpyy3Q 00023990: 56 55 6e 7a 54 44 66 43 2f 30 58 44 39 34 2f 6f VUnzTDfC/0XD94/o 000239a0: 6b 48 2b 4f 42 2b 69 37 67 39 6c 6f 6c 68 57 49 kH+OB+i7g9lolhWI 000239b0: 6a 53 6e 66 49 62 2b 45 71 34 33 5a 58 4f 57 6d jSnfIb+Eq43ZXOWm 000239c0: 77 76 6a 79 56 2f 71 71 44 2b 74 30 65 2b 37 6d wvjyV/qqD+t0e+7m 000239d0: 54 45 4d 37 34 71 50 2f 4f 7a 74 38 6e 6d 43 37 TEM74qP/Ozt8nmC7 000239e0: 6d 52 70 79 75 36 33 4f 42 34 4b 6e 55 7a 46 63 mRpyu63OB4KnUzFc 000239f0: 30 37 34 53 71 6f 79 50 55 41 67 4d 2b 2f 54 4a 074SqoyPUAgM+/TJ 00023a00: 47 46 6f 36 54 34 34 45 48 6e 51 55 34 58 34 7a GFo6T44EHnQU4X4z 00023a10: 36 71 61 6e 6e 56 71 67 77 2f 55 37 7a 43 70 77 6qannVqgw/U7zCpw 00023a20: 63 6d 58 56 31 41 75 62 49 72 76 4f 6d 6b 4b 48 cmXV1AubIrvOmkKH 00023a30: 61 7a 4a 41 52 35 35 65 50 6a 70 35 74 4c 42 73 azJAR55ePjp5tLBs 00023a40: 4e 38 76 41 71 73 33 4e 41 48 64 63 45 48 4f 52 N8vAqs3NAHdcEHOR 00023a50: 32 78 51 30 6c 73 4e 41 46 7a 53 55 75 78 46 51 2xQ0lsNAFzSUuxFQ 00023a60: 43 46 59 76 58 4c 5a 4a 64 4f 6a 39 70 34 66 4e CFYvXLZJdOj9p4fN 00023a70: 71 36 70 30 48 42 47 55 69 6b 32 59 7a 61 49 34 q6p0HBGUik2YzaI4 00023a80: 78 79 53 79 39 31 4b 7a 68 51 30 2b 71 31 68 6a xySy91KzhQ0+q1hj 00023a90: 78 76 49 6d 52 77 50 52 66 37 36 74 43 68 6c 52 xvImRwPRf76tChlR 00023aa0: 6b 68 52 43 69 37 34 4e 58 5a 39 71 55 4e 65 49 khRCi74NXZ9qUNeI 00023ab0: 77 50 2b 73 35 70 2b 33 6d 35 6e 77 50 64 4e 4f wP+s5p+3m5nwPdNO 00023ac0: 48 67 53 4c 44 37 39 6e 37 4f 39 6d 31 6e 31 75 HgSLD79n7O9m1n1u 00023ad0: 44 48 69 4d 6e 74 71 34 6e 6b 59 77 56 35 4f 5a DHiMntq4nkYwV5OZ 00023ae0: 31 45 4e 62 58 78 46 64 34 50 67 72 6c 76 61 76 1ENbXxFd4Pgrlvav 00023af0: 5a 73 79 55 4f 34 4d 71 59 6c 71 71 6e 31 4f 38 ZsyUO4MqYlqqn1O8 00023b00: 57 2f 49 31 64 45 5a 71 35 64 58 68 72 62 45 54 W/I1dEZq5dXhrbET 00023b10: 4c 61 5a 49 62 43 32 4b 6a 2f 41 61 2f 51 4d 2b LaZIbC2Kj/Aa/QM+ 00023b20: 66 71 55 4f 48 64 66 30 74 58 41 51 31 68 75 5a fqUOHdf0tXAQ1huZ 00023b30: 33 63 6d 57 45 43 57 53 58 79 2f 34 33 6a 33 35 3cmWECWSXy/43j35 00023b40: 2b 4d 76 71 39 78 77 73 37 4a 4b 73 65 72 69 5a +Mvq9xws7JKseriZ 00023b50: 31 70 45 57 4b 63 38 71 6c 7a 4e 72 47 50 55 47 1pEWKc8qlzNrGPUG 00023b60: 63 56 67 4f 61 39 63 50 4a 59 49 4a 73 47 6e 4a cVgOa9cPJYIJsGnJ 00023b70: 54 41 55 73 45 63 44 4f 45 56 55 4c 4f 35 78 30 TAUsEcDOEVULO5x0 00023b80: 72 58 42 69 6a 63 31 6c 67 58 45 7a 51 51 4b 68 rXBijc1lgXEzQQKh 00023b90: 52 4f 66 38 7a 49 56 38 32 77 38 65 73 77 63 37 ROf8zIV82w8eswc7 00023ba0: 38 59 58 31 31 4b 59 4c 57 51 52 63 67 48 4e 4a 8YX11KYLWQRcgHNJ 00023bb0: 45 6c 42 78 66 58 72 37 32 6c 53 32 52 42 53 6c ElBxfXr72lS2RBSl 00023bc0: 30 37 71 54 4b 6f 72 4f 32 75 55 44 5a 72 33 73 07qTKorO2uUDZr3s 00023bd0: 46 68 59 73 76 6e 68 4c 5a 6e 30 41 39 34 4b 52 FhYsvnhLZn0A94KR 00023be0: 7a 4a 2f 37 44 45 47 49 41 68 57 35 5a 57 46 70 zJ/7DEGIAhW5ZWFp 00023bf0: 4c 38 67 45 77 75 31 61 4c 41 39 4d 75 57 5a 7a L8gEwu1aLA9MuWZz 00023c00: 4e 77 6c 38 4f 7a 65 39 59 2b 62 58 2b 76 39 67 Nwl8Oze9Y+bX+v9g 00023c10: 79 77 52 56 6e 6f 42 35 49 2f 38 6b 58 54 58 55 ywRVnoB5I/8kXTXU 00023c20: 33 31 34 31 79 52 4c 59 72 49 4f 4f 7a 36 53 4f 3141yRLYrIOOz6SO 00023c30: 6e 79 48 4e 79 34 53 69 65 71 7a 6b 42 58 68 61 nyHNy4SieqzkBXha 00023c40: 72 6a 66 6a 71 71 31 71 36 74 6b 6c 61 45 62 41 rjfjqq1q6tklaEbA 00023c50: 38 51 66 6d 32 44 61 49 50 73 37 4f 54 71 2f 6e 8Qfm2DaIPs7OTq/n 00023c60: 76 4a 42 6a 4b 66 4f 32 48 39 62 48 32 63 43 4d vJBjKfO2H9bH2cCM 00023c70: 68 31 2b 35 67 73 70 66 79 63 75 38 66 2f 63 75 h1+5gspfycu8f/cu 00023c80: 75 52 6d 74 44 6a 79 71 5a 37 75 43 49 4d 79 6a uRmtDjyqZ7uCIMyj 00023c90: 64 56 33 61 2b 70 33 66 71 6d 58 73 52 78 34 43 dV3a+p3fqmXsRx4C 00023ca0: 38 6c 75 6a 65 7a 49 46 48 6e 51 69 56 54 58 4c 8lujezIFHnQiVTXL 00023cb0: 58 75 49 31 58 72 77 4e 33 2b 73 69 59 59 6a 32 XuI1XrwN3+siYYj2 00023cc0: 48 48 54 76 45 53 55 78 38 44 6c 4f 54 58 70 61 HHTvESUx8DlOTXpa 00023cd0: 6b 39 71 46 52 4b 2b 4c 33 6d 67 4a 31 57 73 44 k9qFRK+L3mgJ1WsD 00023ce0: 37 46 34 63 75 31 61 4a 6f 46 6f 59 51 6e 75 2b 7F4cu1aJoFoYQnu+ 00023cf0: 77 47 44 4d 4f 6a 4a 4d 33 6b 69 42 51 57 48 43 wGDMOjJM3kiBQWHC 00023d00: 63 76 68 4a 2f 48 52 64 78 6f 64 4f 51 70 34 35 cvhJ/HRdxodOQp45 00023d10: 59 5a 61 4f 54 41 32 32 4e 62 34 58 4b 43 56 78 YZaOTA22Nb4XKCVx 00023d20: 71 6b 62 77 4d 59 46 68 7a 59 51 59 49 41 6e 43 qkbwMYFhzYQYIAnC 00023d30: 57 38 46 57 31 34 75 66 39 38 6a 68 55 47 32 7a W8FW14uf98jhUG2z 00023d40: 72 4b 68 51 51 30 71 30 43 45 71 30 74 35 6e 58 rKhQQ0q0CEq0t5nX 00023d50: 79 76 55 79 76 52 38 44 76 44 36 39 4c 55 2b 67 yvUyvR8DvD69LU+g 00023d60: 33 69 2b 48 46 57 51 4d 51 38 50 71 5a 75 48 44 3i+HFWQMQ8PqZuHD 00023d70: 2b 73 4e 4b 41 56 30 2b 4d 36 45 4a 43 30 73 7a +sNKAV0+M6EJC0sz 00023d80: 71 37 72 45 72 37 42 35 62 51 38 42 63 4e 48 7a q7rEr7B5bQ8BcNHz 00023d90: 76 44 4d 63 39 65 71 42 35 5a 43 51 64 54 66 38 vDMc9eqB5ZCQdTf8 00023da0: 30 4f 62 6e 34 75 7a 6a 77 70 59 55 37 53 49 53 0Obn4uzjwpYU7SIS 00023db0: 64 74 56 30 51 47 61 39 44 33 57 72 68 32 42 44 dtV0QGa9D3Wrh2BD 00023dc0: 51 74 70 42 4b 78 61 4e 46 56 2b 2f 43 79 32 50 QtpBKxaNFV+/Cy2P 00023dd0: 2f 53 76 2b 38 73 37 55 64 30 46 64 37 34 58 34 /Sv+8s7Ud0Fd74X4 00023de0: 2b 6f 2f 54 4e 7a 74 57 67 45 54 55 61 70 79 2b +o/TNztWgETUapy+ 00023df0: 6d 61 6a 4e 51 36 38 4c 71 33 65 65 30 5a 4f 34 majNQ68Lq3ee0ZO4 00023e00: 38 56 45 62 54 5a 59 69 48 31 43 6f 34 4f 6c 66 8VEbTZYiH1Co4Olf 00023e10: 57 65 66 38 32 52 57 65 79 55 58 6f 37 77 6f 4d Wef82RWeyUXo7woM 00023e20: 30 33 50 79 61 70 47 66 69 6b 54 6e 51 69 6e 6f 03PyapGfikTnQino 00023e30: 4e 71 35 7a 35 76 65 4c 70 65 4d 56 33 48 43 41 Nq5z5veLpeMV3HCA 00023e40: 4d 54 61 5a 6d 41 31 6f 47 4c 41 6e 37 58 53 33 MTaZmA1oGLAn7XS3 00023e50: 58 59 73 7a 2b 58 4b 37 56 4d 51 73 63 34 58 4b XYsz+XK7VMQsc4XK 00023e60: 72 6d 44 58 4f 4c 55 2f 70 53 58 56 4e 55 71 38 rmDXOLU/pSXVNUq8 00023e70: 64 49 71 54 62 61 2f 2f 2f 33 78 36 4c 69 4c 53 dIqTba///3x6LiLS 00023e80: 36 78 73 31 78 75 43 41 59 53 66 63 51 33 2b 72 6xs1xuCAYSfcQ3+r 00023e90: 51 67 6d 75 37 75 76 66 33 54 48 4b 74 35 4f 6f Qgmu7uvf3THKt5Oo 00023ea0: 6f 39 37 54 71 63 62 52 71 78 78 37 45 41 53 69 o97TqcbRqxx7EASi 00023eb0: 7a 61 51 43 42 51 6c 6c 47 2f 72 59 78 56 61 70 zaQCBQllG/rYxVap 00023ec0: 4d 4c 67 74 4c 62 5a 53 36 34 77 31 4d 44 42 4d MLgtLbZS64w1MDBM 00023ed0: 58 58 2b 50 51 70 42 4b 4e 77 71 55 4b 4f 66 32 XX+PQpBKNwqUKOf2 00023ee0: 44 44 52 44 55 58 51 66 39 45 68 4f 53 30 51 6a DDRDUXQf9EhOS0Qj 00023ef0: 34 6e 54 6d 6c 41 38 64 7a 53 4c 7a 2f 47 31 64 4nTmlA8dzSLz/G1d 00023f00: 2b 55 64 38 4d 54 79 2f 36 67 68 68 64 69 4c 70 +Ud8MTy/6ghhdiLp 00023f10: 65 65 72 47 59 2f 55 6c 44 4f 66 69 75 71 46 73 eerGY/UlDOfiuqFs 00023f20: 4d 55 55 35 2f 55 59 6c 50 2b 42 41 6d 67 52 4c MUU5/UYlP+BAmgRL 00023f30: 75 4e 70 76 72 55 61 4c 6c 56 6b 72 71 44 69 65 uNpvrUaLlVkrqDie 00023f40: 76 4e 56 45 41 77 46 2b 34 43 6f 4d 31 4d 5a 54 vNVEAwF+4CoM1MZT 00023f50: 6d 6a 78 6a 4a 4d 73 4b 4a 71 2b 75 38 5a 64 37 mjxjJMsKJq+u8Zd7 00023f60: 74 4e 43 55 46 79 36 4c 69 79 59 58 52 4a 51 34 tNCUFy6LiyYXRJQ4 00023f70: 56 79 76 45 51 46 46 61 43 47 4b 73 78 49 77 51 VyvEQFFaCGKsxIwQ 00023f80: 6b 6b 37 45 7a 5a 36 4c 54 4a 71 32 68 55 75 50 kk7EzZ6LTJq2hUuP 00023f90: 68 76 41 57 2b 67 51 6e 53 47 36 4a 2b 4d 73 7a hvAW+gQnSG6J+Msz 00023fa0: 43 2b 37 51 43 52 48 63 6e 71 44 64 79 4e 52 4a C+7QCRHcnqDdyNRJ 00023fb0: 36 54 39 78 79 53 38 37 41 36 4d 44 75 74 62 7a 6T9xyS87A6MDutbz 00023fc0: 4b 47 76 47 6b 74 70 62 58 71 74 7a 57 74 58 62 KGvGktpbXqtzWtXb 00023fd0: 39 48 73 66 4b 32 63 42 4d 6f 6d 6a 4e 39 61 34 9HsfK2cBMomjN9a4 00023fe0: 79 2b 54 61 4a 4c 6e 58 78 41 65 58 2f 48 57 7a y+TaJLnXxAeX/HWz 00023ff0: 6d 66 34 63 52 34 76 41 4c 74 2f 50 34 77 34 71 mf4cR4vALt/P4w4q 00024000: 67 4b 59 30 34 6d 6c 34 5a 64 4c 4f 69 6e 46 59 gKY04ml4ZdLOinFY 00024010: 53 36 63 75 70 33 47 2f 31 69 65 34 2b 74 31 65 S6cup3G/1ie4+t1e 00024020: 4f 6e 70 42 4e 6c 71 47 71 73 37 35 69 6c 7a 6b OnpBNlqGqs75ilzk 00024030: 54 34 2b 44 73 5a 51 78 4e 76 61 53 4b 4a 2f 2f T4+DsZQxNvaSKJ// 00024040: 36 7a 49 62 62 6b 2f 4d 37 4c 4f 68 46 6d 52 63 6zIbbk/M7LOhFmRc 00024050: 2f 31 52 2b 6b 42 74 7a 37 4a 46 47 64 5a 6d 2f /1R+kBtz7JFGdZm/ 00024060: 43 4f 6f 74 49 64 76 51 6f 58 70 54 71 50 2f 31 COotIdvQoXpTqP/1 00024070: 75 71 45 55 6d 43 62 2f 51 57 6f 47 4c 4d 77 4f uqEUmCb/QWoGLMwO 00024080: 35 41 4e 63 48 7a 78 64 59 34 38 49 47 50 35 2b 5ANcHzxdY48IGP5+ 00024090: 4a 2b 7a 4b 4f 54 42 46 5a 34 50 69 64 2b 47 54 J+zKOTBFZ4Pid+GT 000240a0: 4d 2b 57 71 31 32 4d 56 2f 48 38 36 78 45 4a 70 M+Wq12MV/H86xEJp 000240b0: 74 42 61 36 54 2b 70 33 6b 67 70 77 4c 65 64 4d tBa6T+p3kgpwLedM 000240c0: 61 6e 42 48 43 32 47 67 4e 72 46 70 6f 4e 32 78 anBHC2GgNrFpoN2x 000240d0: 6e 72 4d 7a 39 57 46 57 58 2f 38 2f 79 67 53 42 nrMz9WFWX/8/ygSB 000240e0: 6b 61 76 71 32 55 76 37 46 64 43 73 4c 45 59 4c kavq2Uv7FdCsLEYL 000240f0: 75 39 4c 4c 49 76 41 55 30 62 4e 52 44 74 7a 59 u9LLIvAU0bNRDtzY 00024100: 6c 2b 2f 76 58 6d 6a 70 49 76 75 4a 46 59 6a 6d l+/vXmjpIvuJFYjm 00024110: 49 30 69 6d 36 51 45 59 71 6e 49 65 4d 73 4e 6a I0im6QEYqnIeMsNj 00024120: 58 47 34 76 49 75 74 49 47 48 69 6a 65 41 47 2f XG4vIutIGHijeAG/ 00024130: 39 45 44 42 6f 7a 4b 56 35 63 6c 64 6b 48 62 4c 9EDBozKV5cldkHbL 00024140: 78 48 68 32 35 76 54 2b 5a 45 7a 62 68 58 6c 71 xHh25vT+ZEzbhXlq 00024150: 76 70 7a 4b 4a 77 63 45 67 66 4e 77 4c 41 4b 46 vpzKJwcEgfNwLAKF 00024160: 65 6f 30 2f 70 76 45 45 31 30 58 44 42 2b 45 58 eo0/pvEE10XDB+EX 00024170: 52 54 58 74 53 7a 4a 6f 7a 51 4b 46 46 41 4a 68 RTXtSzJozQKFFAJh 00024180: 4d 78 59 6b 56 61 43 57 2b 45 39 41 4c 37 74 4d MxYkVaCW+E9AL7tM 00024190: 65 55 38 61 63 78 69 64 48 71 7a 62 36 6c 58 34 eU8acxidHqzb6lX4 000241a0: 36 39 31 55 73 44 70 79 2f 4c 4c 52 6d 54 2b 65 691UsDpy/LLRmT+e 000241b0: 70 67 57 35 36 2b 35 43 77 38 74 42 34 6b 4d 55 pgW56+5Cw8tB4kMU 000241c0: 76 36 73 39 6c 68 33 65 52 4b 62 79 47 73 2b 48 v6s9lh3eRKbyGs+H 000241d0: 2f 34 6d 51 4d 61 59 7a 50 54 66 32 4f 4f 64 6f /4mQMaYzPTf2OOdo 000241e0: 6b 45 6e 2b 7a 7a 67 76 6f 44 33 46 71 4e 4b 6b kEn+zzgvoD3FqNKk 000241f0: 38 51 71 47 41 58 56 73 71 63 47 64 58 72 54 36 8QqGAXVsqcGdXrT6 00024200: 32 66 53 50 6b 52 32 76 52 4f 46 69 36 38 41 36 2fSPkR2vROFi68A6 00024210: 73 65 38 36 55 78 52 55 6b 34 63 61 6a 66 50 79 se86UxRUk4cajfPy 00024220: 43 43 34 47 35 77 44 68 44 2b 7a 4e 71 34 6a 6f CC4G5wDhD+zNq4jo 00024230: 64 51 34 75 34 6e 2f 6d 33 37 4c 72 33 36 6e 34 dQ4u4n/m37Lr36n4 00024240: 4c 49 41 41 73 56 72 30 32 64 46 69 39 41 69 77 LIAAsVr02dFi9Aiw 00024250: 41 38 31 4d 59 73 32 72 6d 34 65 44 6c 44 4e 6d A81MYs2rm4eDlDNm 00024260: 64 4d 52 76 45 4b 52 48 66 42 77 57 35 44 64 4d dMRvEKRHfBwW5DdM 00024270: 4e 70 30 6a 50 46 5a 4d 65 41 52 71 46 2f 77 4c Np0jPFZMeARqF/wL 00024280: 34 58 42 66 64 2b 45 4d 4c 42 66 4d 7a 70 48 35 4XBfd+EMLBfMzpH5 00024290: 47 48 36 4e 61 57 2b 31 76 72 76 4d 64 67 2b 56 GH6NaW+1vrvMdg+V 000242a0: 78 44 7a 61 74 6b 33 4d 58 67 4f 33 72 6f 33 50 xDzatk3MXgO3ro3P 000242b0: 2f 44 70 63 43 36 2b 4d 6f 34 4d 79 53 4a 68 4b /DpcC6+Mo4MySJhK 000242c0: 4a 68 53 52 30 31 53 47 47 47 70 35 68 50 57 6d JhSR01SGGGp5hPWm 000242d0: 72 72 55 67 72 76 33 6c 44 6e 50 2b 48 68 63 49 rrUgrv3lDnP+HhcI 000242e0: 33 6e 74 33 59 71 42 6f 56 41 56 54 42 41 51 54 3nt3YqBoVAVTBAQT 000242f0: 35 69 75 68 54 67 38 6e 76 50 74 64 38 5a 65 59 5iuhTg8nvPtd8ZeY 00024300: 6a 36 77 31 78 36 52 71 47 55 42 72 53 6b 75 37 j6w1x6RqGUBrSku7 00024310: 2b 4e 31 2b 42 61 61 73 5a 76 6a 54 6b 36 34 52 +N1+BaasZvjTk64R 00024320: 6f 49 44 6c 4c 38 62 72 70 45 63 4a 78 33 4f 6d oIDlL8brpEcJx3Om 00024330: 59 37 6a 4c 6f 5a 73 73 77 64 74 6d 68 66 43 2f Y7jLoZsswdtmhfC/ 00024340: 47 32 31 6c 6c 58 68 49 54 4f 77 6d 76 52 44 44 G21llXhITOwmvRDD 00024350: 65 54 54 50 62 79 41 53 4f 61 31 36 63 46 35 2f eTTPbyASOa16cF5/ 00024360: 41 31 66 5a 41 69 64 4a 70 71 6a 75 33 77 59 41 A1fZAidJpqju3wYA 00024370: 79 39 61 76 50 52 31 79 61 36 65 4e 70 39 4b 38 y9avPR1ya6eNp9K8 00024380: 58 59 72 72 74 75 78 6c 71 69 2b 62 44 4b 77 6c XYrrtuxlqi+bDKwl 00024390: 66 72 59 64 52 30 52 52 69 4b 52 56 54 4c 4f 48 frYdR0RRiKRVTLOH 000243a0: 38 35 2b 5a 59 37 58 53 6d 7a 52 70 66 5a 42 4a 85+ZY7XSmzRpfZBJ 000243b0: 6a 61 54 61 38 31 56 44 63 4a 48 70 5a 6e 5a 6e jaTa81VDcJHpZnZn 000243c0: 53 51 4c 41 53 47 59 57 39 6c 35 31 5a 56 2f 68 SQLASGYW9l51ZV/h 000243d0: 37 65 56 7a 54 69 33 48 76 36 68 55 73 67 63 2f 7eVzTi3Hv6hUsgc/ 000243e0: 35 31 41 71 4a 52 54 6b 70 62 46 56 4c 58 58 73 51AqJRTkpbFVLXXs 000243f0: 7a 6f 42 4c 38 6e 42 58 30 75 2f 30 6a 42 4c 54 zoBL8nBX0u/0jBLT 00024400: 38 6e 48 2b 66 4a 65 50 62 72 77 55 52 54 35 38 8nH+fJePbrwURT58 00024410: 4f 59 2b 55 69 65 52 6a 64 31 76 73 30 34 77 30 OY+UieRjd1vs04w0 00024420: 56 47 35 56 4e 32 55 36 4d 6f 47 5a 6b 51 7a 4b VG5VN2U6MoGZkQzK 00024430: 4e 2f 70 74 7a 30 51 33 36 36 64 78 6f 54 47 6d N/ptz0Q366dxoTGm 00024440: 6a 37 69 31 4e 51 47 48 69 39 47 67 6e 71 75 58 j7i1NQGHi9GgnquX 00024450: 46 59 64 72 43 66 5a 42 6d 65 62 37 73 30 54 36 FYdrCfZBmeb7s0T6 00024460: 79 72 64 6c 5a 48 35 63 5a 75 77 48 46 79 49 4a yrdlZH5cZuwHFyIJ 00024470: 2f 6b 41 74 47 73 54 67 30 78 48 35 74 61 41 41 /kAtGsTg0xH5taAA 00024480: 71 34 34 42 41 6b 31 43 50 6b 39 4b 56 56 62 71 q44BAk1CPk9KVVbq 00024490: 51 7a 72 43 55 69 46 64 46 2f 36 67 74 6c 50 51 QzrCUiFdF/6gtlPQ 000244a0: 38 62 48 48 63 31 47 31 57 39 32 4d 58 47 5a 35 8bHHc1G1W92MXGZ5 000244b0: 48 45 48 66 74 79 4c 59 73 38 6d 62 44 2f 39 78 HEHftyLYs8mbD/9x 000244c0: 59 52 55 57 6b 48 6d 6c 4d 30 7a 43 32 69 6c 4a YRUWkHmlM0zC2ilJ 000244d0: 6c 6e 4e 67 56 34 62 66 41 4c 70 51 67 68 78 4f lnNgV4bfALpQghxO 000244e0: 55 6f 5a 4c 37 56 54 71 74 43 48 49 61 51 53 58 UoZL7VTqtCHIaQSX 000244f0: 6d 2b 59 55 4d 6e 70 6b 58 79 62 6e 56 2b 41 36 m+YUMnpkXybnV+A6 00024500: 78 6c 6d 32 43 56 79 38 66 6e 30 58 6c 6d 32 58 xlm2CVy8fn0Xlm2X 00024510: 52 61 30 2b 7a 7a 4f 61 32 31 4a 57 57 6d 69 78 Ra0+zzOa21JWWmix 00024520: 66 69 50 4d 53 43 5a 37 71 41 34 72 53 39 33 56 fiPMSCZ7qA4rS93V 00024530: 4e 33 70 6b 70 46 31 73 35 54 6f 6e 51 6a 69 73 N3pkpF1s5TonQjis 00024540: 48 66 37 69 55 39 5a 47 76 55 50 4f 41 4b 5a 63 Hf7iU9ZGvUPOAKZc 00024550: 52 31 70 62 65 56 66 2f 55 6c 37 4f 68 65 70 47 R1pbeVf/Ul7OhepG 00024560: 43 61 49 64 39 77 4f 74 71 6f 37 70 4a 37 79 4c CaId9wOtqo7pJ7yL 00024570: 63 42 5a 30 70 46 6b 4f 46 32 38 79 34 7a 45 49 cBZ0pFkOF28y4zEI 00024580: 2f 6b 63 55 4e 6d 75 74 42 48 61 51 70 42 64 4e /kcUNmutBHaQpBdN 00024590: 4d 38 76 6a 43 53 36 48 5a 52 6f 6b 6b 65 6f 38 M8vjCS6HZRokkeo8 000245a0: 38 54 42 41 6a 47 79 47 37 53 52 2b 36 76 55 67 8TBAjGyG7SR+6vUg 000245b0: 54 63 79 4b 39 49 6d 61 6c 6a 30 6b 75 78 7a 30 TcyK9Imalj0kuxz0 000245c0: 77 6d 4b 2b 62 79 51 55 31 31 41 69 4a 46 6b 2f wmK+byQU11AiJFk/ 000245d0: 79 61 35 64 4e 64 75 52 43 6c 63 6e 55 36 34 79 ya5dNduRClcnU64y 000245e0: 47 75 2f 69 65 57 53 65 4f 6f 73 31 74 33 65 70 Gu/ieWSeOos1t3ep 000245f0: 2b 52 50 49 57 51 32 70 79 54 59 56 62 5a 6c 74 +RPIWQ2pyTYVbZlt 00024600: 54 62 73 62 37 4e 69 77 53 69 33 41 56 2b 38 4b Tbsb7NiwSi3AV+8K 00024610: 4c 57 6b 37 4c 78 43 6e 66 5a 55 65 74 45 4d 38 LWk7LxCnfZUetEM8 00024620: 54 68 6e 73 53 6f 47 48 33 38 2f 6e 79 41 77 46 ThnsSoGH38/nyAwF 00024630: 67 75 4a 70 38 46 6a 76 6c 48 74 63 57 5a 75 55 guJp8FjvlHtcWZuU 00024640: 34 68 50 76 61 30 72 48 66 72 30 55 68 4f 4f 4a 4hPva0rHfr0UhOOJ 00024650: 2f 46 36 76 53 36 32 46 57 37 4b 7a 6b 6d 52 6c /F6vS62FW7KzkmRl 00024660: 6c 32 48 45 63 37 6f 55 71 34 66 79 69 35 54 37 l2HEc7oUq4fyi5T7 00024670: 30 56 6c 37 59 56 49 66 73 50 48 55 43 64 48 65 0Vl7YVIfsPHUCdHe 00024680: 73 66 39 4c 6b 37 57 4e 56 57 4f 37 35 4a 44 6b sf9Lk7WNVWO75JDk 00024690: 59 62 4d 49 38 54 4f 57 38 4a 4b 56 74 4c 59 39 YbMI8TOW8JKVtLY9 000246a0: 64 36 55 4a 52 49 54 4f 38 6f 4b 6f 30 78 53 2b d6UJRITO8oKo0xS+ 000246b0: 6f 39 39 59 79 30 34 69 6e 69 47 48 41 61 47 6a o99Yy04iniGHAaGj 000246c0: 38 38 6b 45 57 67 77 76 30 4f 72 48 64 59 2f 6e 88kEWgwv0OrHdY/n 000246d0: 72 37 36 44 4f 47 4e 53 35 39 68 58 43 47 58 7a r76DOGNS59hXCGXz 000246e0: 54 4b 55 76 44 6c 39 69 4b 70 4c 53 57 59 4e 31 TKUvDl9iKpLSWYN1 000246f0: 6c 78 49 65 79 79 77 64 4e 70 54 6b 68 61 79 37 lxIeyywdNpTkhay7 00024700: 34 77 32 6a 46 54 36 4e 53 38 71 6b 6a 6f 35 43 4w2jFT6NS8qkjo5C 00024710: 78 41 31 79 66 53 59 77 70 36 41 4a 49 5a 4e 4b xA1yfSYwp6AJIZNK 00024720: 49 65 45 4b 35 50 4a 41 57 37 4f 52 67 57 67 77 IeEK5PJAW7ORgWgw 00024730: 70 30 56 67 7a 59 70 71 6f 76 4d 72 57 78 62 75 p0VgzYpqovMrWxbu 00024740: 2b 44 47 5a 36 4c 68 69 65 31 52 41 71 70 7a 6d +DGZ6Lhie1RAqpzm 00024750: 38 56 55 7a 4b 4a 4f 48 33 6d 43 7a 57 75 54 4f 8VUzKJOH3mCzWuTO 00024760: 4c 73 4e 33 56 54 2f 64 76 32 65 65 59 65 39 55 LsN3VT/dv2eeYe9U 00024770: 6a 62 52 38 59 54 42 73 4c 7a 37 71 36 30 56 4e jbR8YTBsLz7q60VN 00024780: 31 73 55 35 31 6b 2b 75 6d 31 66 38 4a 78 44 35 1sU51k+um1f8JxD5 00024790: 70 50 68 62 68 53 43 38 72 52 61 42 34 35 34 74 pPhbhSC8rRaB454t 000247a0: 6d 68 36 59 55 57 72 4a 49 33 2b 47 57 59 30 71 mh6YUWrJI3+GWY0q 000247b0: 65 57 69 6f 6a 2f 74 62 6b 59 49 54 4f 6b 4a 61 eWioj/tbkYITOkJa 000247c0: 65 75 47 74 34 4a 72 4a 76 48 41 2b 6c 30 47 75 euGt4JrJvHA+l0Gu 000247d0: 37 6b 59 37 58 4f 61 61 30 35 61 6c 4d 6e 52 57 7kY7XOaa05alMnRW 000247e0: 56 43 58 71 46 67 4c 49 77 53 59 34 75 46 35 39 VCXqFgLIwSY4uF59 000247f0: 55 65 35 53 55 34 51 4b 75 63 2f 48 61 6d 44 78 Ue5SU4QKuc/HamDx 00024800: 62 72 30 78 36 63 73 43 65 74 58 47 6f 50 37 51 br0x6csCetXGoP7Q 00024810: 6e 31 42 6b 2f 4a 39 44 73 79 6e 4f 2f 55 44 36 n1Bk/J9DsynO/UD6 00024820: 69 5a 31 48 79 72 7a 2b 6a 69 74 30 68 44 43 77 iZ1Hyrz+jit0hDCw 00024830: 69 2f 45 39 4f 6a 67 4b 54 62 42 33 5a 51 4b 51 i/E9OjgKTbB3ZQKQ 00024840: 2f 30 5a 4f 76 65 76 66 4e 48 47 30 4e 4b 34 41 /0ZOvevfNHG0NK4A 00024850: 6a 33 43 70 37 4e 70 52 6b 30 37 52 54 31 69 2f j3Cp7NpRk07RT1i/ 00024860: 53 30 45 4c 39 33 41 67 38 47 52 67 4b 49 39 43 S0EL93Ag8GRgKI9C 00024870: 66 70 61 6a 4b 79 4b 36 2b 4a 6a 2f 50 49 31 4b fpajKyK6+Jj/PI1K 00024880: 4f 35 2f 38 35 56 41 77 7a 32 41 77 7a 50 38 46 O5/85VAwz2AwzP8F 00024890: 54 42 62 30 37 35 49 78 43 58 76 36 54 39 52 56 TBb075IxCXv6T9RV 000248a0: 76 57 54 32 74 55 61 71 78 44 53 39 32 7a 72 47 vWT2tUaqxDS92zrG 000248b0: 55 62 57 7a 55 59 6b 39 6d 53 73 38 32 70 45 43 UbWzUYk9mSs82pEC 000248c0: 48 2b 66 6b 71 73 44 74 39 33 56 57 2b 2b 34 59 H+fkqsDt93VW++4Y 000248d0: 73 52 2f 64 48 43 59 63 51 53 59 54 4f 2f 4b 61 sR/dHCYcQSYTO/Ka 000248e0: 42 4d 44 6a 39 4c 53 44 2f 4a 2f 2b 7a 32 30 4b BMDj9LSD/J/+z20K 000248f0: 71 38 58 76 5a 55 41 49 48 74 6d 39 68 52 50 50 q8XvZUAIHtm9hRPP 00024900: 33 49 74 62 75 41 75 32 48 6d 35 6c 6b 50 73 39 3ItbuAu2Hm5lkPs9 00024910: 32 70 64 37 6b 43 78 67 52 73 30 78 4f 56 42 6e 2pd7kCxgRs0xOVBn 00024920: 5a 31 33 63 63 64 41 30 61 75 6e 72 77 76 39 53 Z13ccdA0aunrwv9S 00024930: 64 71 45 6c 4a 52 43 33 67 2b 6f 43 75 2b 6e 58 dqElJRC3g+oCu+nX 00024940: 79 43 67 6d 58 55 73 39 79 4d 6a 54 4d 41 49 48 yCgmXUs9yMjTMAIH 00024950: 66 78 5a 56 2b 61 50 4b 63 5a 65 55 42 57 74 30 fxZV+aPKcZeUBWt0 00024960: 35 37 58 6f 38 35 4b 73 31 49 72 35 67 7a 45 48 57Xo85Ks1Ir5gzEH 00024970: 43 57 71 5a 45 68 72 4c 5a 4d 75 46 31 31 7a 69 CWqZEhrLZMuF11zi 00024980: 47 74 46 51 55 64 73 2f 45 45 53 61 6a 68 61 67 GtFQUds/EESajhag 00024990: 7a 63 4b 73 78 61 6d 63 53 5a 78 47 74 68 34 55 zcKsxamcSZxGth4U 000249a0: 49 49 2b 61 64 50 68 51 6b 55 6e 78 32 57 79 4e II+adPhQkUnx2WyN 000249b0: 2b 34 59 57 52 2b 72 33 66 38 4d 6e 6b 79 47 46 +4YWR+r3f8MnkyGF 000249c0: 75 52 34 7a 6a 7a 78 4a 53 38 57 73 51 59 52 35 uR4zjzxJS8WsQYR5 000249d0: 50 54 79 52 61 44 39 69 78 61 36 4d 68 37 34 31 PTyRaD9ixa6Mh741 000249e0: 6e 42 48 62 7a 66 6a 58 48 73 6b 47 44 71 31 37 nBHbzfjXHskGDq17 000249f0: 39 78 61 52 4e 72 43 49 42 31 7a 31 78 52 66 57 9xaRNrCIB1z1xRfW 00024a00: 66 6a 71 77 32 70 48 63 31 7a 6b 39 78 6c 50 70 fjqw2pHc1zk9xlPp 00024a10: 4c 38 73 51 57 41 49 75 45 54 5a 5a 68 62 6e 6d L8sQWAIuETZZhbnm 00024a20: 4c 35 34 72 63 65 58 56 4e 52 76 55 69 4b 72 72 L54rceXVNRvUiKrr 00024a30: 71 49 6b 65 6f 67 73 6c 30 58 58 62 31 37 79 6c qIkeogsl0XXb17yl 00024a40: 4e 62 30 66 34 47 41 39 57 64 34 34 76 66 66 45 Nb0f4GA9Wd44vffE 00024a50: 47 38 46 53 5a 47 48 45 4c 32 66 62 61 54 47 52 G8FSZGHEL2fbaTGR 00024a60: 63 53 69 43 65 41 38 50 6d 41 2f 66 36 48 7a 38 cSiCeA8PmA/f6Hz8 00024a70: 48 43 53 37 36 66 58 55 48 77 67 77 6b 7a 53 77 HCS76fXUHwgwkzSw 00024a80: 6c 49 37 31 65 6b 5a 37 46 61 70 6d 6c 6b 2f 4b lI71ekZ7Fapmlk/K 00024a90: 43 2b 48 73 38 68 55 63 77 33 4e 32 4c 4e 35 4c C+Hs8hUcw3N2LN5L 00024aa0: 68 6b 56 59 79 69 7a 59 46 6c 2f 75 50 65 56 50 hkVYyizYFl/uPeVP 00024ab0: 35 6c 73 6f 4a 48 68 68 66 57 76 76 53 57 72 75 5lsoJHhhfWvvSWru 00024ac0: 43 55 57 31 5a 63 4a 4f 65 75 54 62 72 44 67 79 CUW1ZcJOeuTbrDgy 00024ad0: 77 4a 2f 71 47 30 37 67 5a 4a 70 6c 6e 54 76 4c wJ/qG07gZJplnTvL 00024ae0: 63 59 64 4e 61 48 30 4b 4d 59 4f 59 4d 47 58 2b cYdNaH0KMYOYMGX+ 00024af0: 72 42 34 4e 47 50 46 6d 51 73 4e 61 49 77 6c 57 rB4NGPFmQsNaIwlW 00024b00: 72 66 43 65 7a 78 72 65 38 7a 58 42 72 73 4d 54 rfCezxre8zXBrsMT 00024b10: 2b 65 64 56 4c 62 4c 71 4e 31 42 71 42 37 36 4a +edVLbLqN1BqB76J 00024b20: 48 34 42 76 5a 54 71 55 49 4d 66 47 77 50 47 45 H4BvZTqUIMfGwPGE 00024b30: 6e 2b 45 6e 6d 54 56 38 36 66 50 42 61 59 62 46 n+EnmTV86fPBaYbF 00024b40: 4c 33 44 46 45 68 6a 42 34 35 43 65 77 6b 58 45 L3DFEhjB45CewkXE 00024b50: 41 74 4a 78 6b 34 2f 4d 73 32 70 50 58 6e 61 52 AtJxk4/Ms2pPXnaR 00024b60: 71 64 6b 79 30 48 4f 59 64 63 55 63 45 32 7a 63 qdky0HOYdcUcE2zc 00024b70: 58 71 34 76 61 49 76 57 32 2f 76 30 6e 48 46 4a Xq4vaIvW2/v0nHFJ 00024b80: 48 32 58 58 65 32 32 75 65 44 6d 71 2f 31 38 58 H2XXe22ueDmq/18X 00024b90: 47 74 45 4c 53 71 38 35 6a 39 58 38 71 30 74 63 GtELSq85j9X8q0tc 00024ba0: 4e 53 53 4b 4a 49 58 38 46 54 75 4a 46 2f 50 66 NSSKJIX8FTuJF/Pf 00024bb0: 38 6a 35 50 68 71 47 32 75 2b 6f 73 76 73 4c 78 8j5PhqG2u+osvsLx 00024bc0: 59 72 76 76 66 65 56 4a 4c 2b 34 74 6b 63 58 63 YrvvfeVJL+4tkcXc 00024bd0: 72 39 4a 56 37 76 30 45 52 6d 6a 2f 58 36 66 4d r9JV7v0ERmj/X6fM 00024be0: 33 4e 43 34 6a 36 64 53 31 2b 39 55 6d 72 32 6f 3NC4j6dS1+9Umr2o 00024bf0: 50 61 76 71 69 41 79 64 54 5a 50 4c 4d 4e 52 47 PavqiAydTZPLMNRG 00024c00: 59 32 33 4c 4f 39 7a 41 56 44 6c 79 37 6a 44 2b Y23LO9zAVDly7jD+ 00024c10: 37 30 47 35 54 50 50 4c 64 68 52 49 6c 34 57 78 70G5TPPLdhRIl4Wx 00024c20: 63 59 6a 4c 6e 4d 2b 53 4e 63 4a 32 36 46 4f 72 cYjLnM+SNcJ26FOr 00024c30: 6b 72 49 53 55 74 50 4f 62 49 7a 35 5a 62 33 41 krISUtPObIz5Zb3A 00024c40: 47 36 31 32 6b 72 6e 70 79 31 35 52 4d 57 2b 31 G612krnpy15RMW+1 00024c50: 63 51 6a 6c 6e 57 46 49 36 35 33 38 71 6b 79 39 cQjlnWFI6538qky9 00024c60: 61 78 64 32 6f 4a 6d 48 49 48 50 30 38 4b 79 50 axd2oJmHIHP08KyP 00024c70: 30 75 62 47 4f 2b 54 51 4e 4f 59 75 76 32 75 68 0ubGO+TQNOYuv2uh 00024c80: 31 37 79 43 49 76 52 38 56 63 53 74 77 37 6f 31 17yCIvR8VcStw7o1 00024c90: 67 30 4e 4d 36 30 73 6b 2b 38 54 71 37 59 66 49 g0NM60sk+8Tq7YfI 00024ca0: 42 4a 72 74 70 35 33 47 6b 76 7a 58 48 37 4f 41 BJrtp53GkvzXH7OA 00024cb0: 30 70 38 2f 6e 2f 75 31 73 61 74 66 2f 56 4a 68 0p8/n/u1satf/VJh 00024cc0: 74 52 31 6c 38 57 61 36 47 6d 61 75 67 37 68 61 tR1l8Wa6Gmaug7ha 00024cd0: 53 70 61 43 61 59 51 61 78 36 74 61 30 6d 6b 75 SpaCaYQax6ta0mku 00024ce0: 74 6c 62 2b 65 41 4f 53 47 31 61 6f 62 4d 38 31 tlb+eAOSG1aobM81 00024cf0: 44 39 41 34 69 53 31 52 52 6c 7a 42 42 6f 56 58 D9A4iS1RRlzBBoVX 00024d00: 36 74 55 31 53 36 57 45 32 4e 39 4f 52 59 36 44 6tU1S6WE2N9ORY6D 00024d10: 66 65 4c 52 43 34 6c 39 52 76 72 35 68 39 35 58 feLRC4l9Rvr5h95X 00024d20: 44 57 42 32 6d 52 31 64 34 57 46 75 64 70 73 67 DWB2mR1d4WFudpsg 00024d30: 56 59 77 69 54 77 54 33 31 6c 6a 73 6b 44 38 5a VYwiTwT31ljskD8Z 00024d40: 79 44 4f 6c 6d 35 44 6b 47 68 39 4e 2f 55 42 2f yDOlm5DkGh9N/UB/ 00024d50: 30 41 49 35 58 76 62 38 5a 42 6d 61 69 32 68 51 0AI5Xvb8ZBmai2hQ 00024d60: 34 42 57 4d 71 46 77 59 6e 7a 78 77 42 32 36 59 4BWMqFwYnzxwB26Y 00024d70: 48 53 4f 76 39 57 67 59 33 4a 58 6e 76 6f 4e 2b HSOv9WgY3JXnvoN+ 00024d80: 32 52 34 72 71 47 56 68 2f 4c 4c 44 4d 74 70 46 2R4rqGVh/LLDMtpF 00024d90: 50 2b 53 70 4d 47 4a 4e 57 76 62 49 6c 35 53 4f P+SpMGJNWvbIl5SO 00024da0: 6f 64 62 43 63 7a 57 32 52 4b 6c 65 6b 73 50 6f odbCczW2RKleksPo 00024db0: 55 65 47 45 7a 72 6a 74 4b 48 56 64 74 5a 41 2b UeGEzrjtKHVdtZA+ 00024dc0: 6b 66 71 4f 2b 72 56 78 2f 69 63 6c 43 71 77 6f kfqO+rVx/iclCqwo 00024dd0: 6f 70 65 70 76 4a 70 53 54 44 6a 54 2b 62 39 47 opepvJpSTDjT+b9G 00024de0: 57 79 6c 47 52 46 38 45 44 62 47 6c 77 36 65 55 WylGRF8EDbGlw6eU 00024df0: 7a 6d 4a 4d 39 35 4f 76 6f 7a 2b 6b 77 4c 58 33 zmJM95Ovoz+kwLX3 00024e00: 63 32 66 54 6a 46 65 59 45 73 45 37 76 55 5a 6d c2fTjFeYEsE7vUZm 00024e10: 33 6d 71 64 47 4a 75 4b 68 32 77 39 2f 51 47 53 3mqdGJuKh2w9/QGS 00024e20: 61 71 52 48 73 39 39 61 53 63 47 4f 64 44 71 6b aqRHs99aScGOdDqk 00024e30: 46 63 41 43 6f 71 64 62 42 6f 51 71 71 6a 61 6d FcACoqdbBoQqqjam 00024e40: 68 48 36 51 39 6e 67 33 39 4a 43 67 33 6c 72 47 hH6Q9ng39JCg3lrG 00024e50: 4a 77 64 35 30 51 6b 39 6f 76 6e 71 42 54 72 38 Jwd50Qk9ovnqBTr8 00024e60: 4d 4d 45 37 50 73 32 77 69 56 66 79 67 55 6d 50 MME7Ps2wiVfygUmP 00024e70: 6f 55 42 4a 4a 66 4a 57 58 35 4e 64 61 30 6e 75 oUBJJfJWX5Nda0nu 00024e80: 6e 63 62 46 6b 41 3d 3d 22 29 29 2c 4a 69 3d 6e ncbFkA==")),Ji=n 00024e90: 65 77 20 53 65 74 28 4b 69 28 51 69 29 29 2c 24 ew Set(Ki(Qi)),$ 00024ea0: 69 3d 6e 65 77 20 53 65 74 28 4b 69 28 51 69 29 i=new Set(Ki(Qi) 00024eb0: 29 2c 65 61 3d 66 75 6e 63 74 69 6f 6e 28 65 29 ),ea=function(e) 00024ec0: 7b 6c 65 74 20 74 3d 5b 5d 3b 66 6f 72 28 3b 3b {let t=[];for(;; 00024ed0: 29 7b 6c 65 74 20 6e 3d 65 28 29 3b 69 66 28 30 ){let n=e();if(0 00024ee0: 3d 3d 6e 29 62 72 65 61 6b 3b 74 2e 70 75 73 68 ==n)break;t.push 00024ef0: 28 58 69 28 6e 2c 65 29 29 7d 66 6f 72 28 3b 3b (Xi(n,e))}for(;; 00024f00: 29 7b 6c 65 74 20 6e 3d 65 28 29 2d 31 3b 69 66 ){let n=e()-1;if 00024f10: 28 6e 3c 30 29 62 72 65 61 6b 3b 74 2e 70 75 73 (n<0)break;t.pus 00024f20: 68 28 5a 69 28 6e 2c 65 29 29 7d 72 65 74 75 72 h(Zi(n,e))}retur 00024f30: 6e 20 66 75 6e 63 74 69 6f 6e 28 65 29 7b 63 6f n function(e){co 00024f40: 6e 73 74 20 74 3d 7b 7d 3b 66 6f 72 28 6c 65 74 nst t={};for(let 00024f50: 20 6e 3d 30 3b 6e 3c 65 2e 6c 65 6e 67 74 68 3b n=0;n<e.length; 00024f60: 6e 2b 2b 29 7b 63 6f 6e 73 74 20 72 3d 65 5b 6e n++){const r=e[n 00024f70: 5d 3b 74 5b 72 5b 30 5d 5d 3d 72 5b 31 5d 7d 72 ];t[r[0]]=r[1]}r 00024f80: 65 74 75 72 6e 20 74 7d 28 47 69 28 74 29 29 7d eturn t}(Gi(t))} 00024f90: 28 51 69 29 2c 74 61 3d 66 75 6e 63 74 69 6f 6e (Qi),ta=function 00024fa0: 28 65 29 7b 6c 65 74 20 74 3d 4b 69 28 65 29 2e (e){let t=Ki(e). 00024fb0: 73 6f 72 74 28 28 28 65 2c 74 29 3d 3e 65 2d 74 sort(((e,t)=>e-t 00024fc0: 29 29 3b 72 65 74 75 72 6e 20 66 75 6e 63 74 69 ));return functi 00024fd0: 6f 6e 20 6e 28 29 7b 6c 65 74 20 72 3d 5b 5d 3b on n(){let r=[]; 00024fe0: 66 6f 72 28 3b 3b 29 7b 6c 65 74 20 6f 3d 4b 69 for(;;){let o=Ki 00024ff0: 28 65 2c 74 29 3b 69 66 28 30 3d 3d 6f 2e 6c 65 (e,t);if(0==o.le 00025000: 6e 67 74 68 29 62 72 65 61 6b 3b 72 2e 70 75 73 ngth)break;r.pus 00025010: 68 28 7b 73 65 74 3a 6e 65 77 20 53 65 74 28 6f h({set:new Set(o 00025020: 29 2c 6e 6f 64 65 3a 6e 28 29 7d 29 7d 72 2e 73 ),node:n()})}r.s 00025030: 6f 72 74 28 28 28 65 2c 74 29 3d 3e 74 2e 73 65 ort(((e,t)=>t.se 00025040: 74 2e 73 69 7a 65 2d 65 2e 73 65 74 2e 73 69 7a t.size-e.set.siz 00025050: 65 29 29 3b 6c 65 74 20 6f 3d 65 28 29 2c 69 3d e));let o=e(),i= 00025060: 6f 25 33 3b 6f 3d 6f 2f 33 7c 30 3b 6c 65 74 20 o%3;o=o/3|0;let 00025070: 61 3d 21 21 28 31 26 6f 29 3b 72 65 74 75 72 6e a=!!(1&o);return 00025080: 20 6f 3e 3e 3d 31 2c 7b 62 72 61 6e 63 68 65 73 o>>=1,{branches 00025090: 3a 72 2c 76 61 6c 69 64 3a 69 2c 66 65 30 66 3a :r,valid:i,fe0f: 000250a0: 61 2c 73 61 76 65 3a 31 3d 3d 6f 2c 63 68 65 63 a,save:1==o,chec 000250b0: 6b 3a 32 3d 3d 6f 7d 7d 28 29 7d 28 51 69 29 2c k:2==o}}()}(Qi), 000250c0: 6e 61 3d 34 35 2c 72 61 3d 39 35 3b 66 75 6e 63 na=45,ra=95;func 000250d0: 74 69 6f 6e 20 6f 61 28 65 29 7b 72 65 74 75 72 tion oa(e){retur 000250e0: 6e 20 5a 65 28 65 29 7d 66 75 6e 63 74 69 6f 6e n Ze(e)}function 000250f0: 20 69 61 28 65 29 7b 72 65 74 75 72 6e 20 65 2e ia(e){return e. 00025100: 66 69 6c 74 65 72 28 28 65 3d 3e 36 35 30 33 39 filter((e=>65039 00025110: 21 3d 65 29 29 7d 66 75 6e 63 74 69 6f 6e 20 61 !=e))}function a 00025120: 61 28 65 29 7b 66 6f 72 28 6c 65 74 20 74 20 6f a(e){for(let t o 00025130: 66 20 65 2e 73 70 6c 69 74 28 22 2e 22 29 29 7b f e.split(".")){ 00025140: 6c 65 74 20 65 3d 6f 61 28 74 29 3b 74 72 79 7b let e=oa(t);try{ 00025150: 66 6f 72 28 6c 65 74 20 74 3d 65 2e 6c 61 73 74 for(let t=e.last 00025160: 49 6e 64 65 78 4f 66 28 72 61 29 2d 31 3b 74 3e IndexOf(ra)-1;t> 00025170: 3d 30 3b 74 2d 2d 29 69 66 28 65 5b 74 5d 21 3d =0;t--)if(e[t]!= 00025180: 3d 72 61 29 74 68 72 6f 77 20 6e 65 77 20 45 72 =ra)throw new Er 00025190: 72 6f 72 28 22 75 6e 64 65 72 73 63 6f 72 65 20 ror("underscore 000251a0: 6f 6e 6c 79 20 61 6c 6c 6f 77 65 64 20 61 74 20 only allowed at 000251b0: 73 74 61 72 74 22 29 3b 69 66 28 65 2e 6c 65 6e start");if(e.len 000251c0: 67 74 68 3e 3d 34 26 26 65 2e 65 76 65 72 79 28 gth>=4&&e.every( 000251d0: 28 65 3d 3e 65 3c 31 32 38 29 29 26 26 65 5b 32 (e=>e<128))&&e[2 000251e0: 5d 3d 3d 3d 6e 61 26 26 65 5b 33 5d 3d 3d 3d 6e ]===na&&e[3]===n 000251f0: 61 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f a)throw new Erro 00025200: 72 28 22 69 6e 76 61 6c 69 64 20 6c 61 62 65 6c r("invalid label 00025210: 20 65 78 74 65 6e 73 69 6f 6e 22 29 7d 63 61 74 extension")}cat 00025220: 63 68 28 65 29 7b 74 68 72 6f 77 20 6e 65 77 20 ch(e){throw new 00025230: 45 72 72 6f 72 28 60 49 6e 76 61 6c 69 64 20 6c Error(`Invalid l 00025240: 61 62 65 6c 20 22 24 7b 74 7d 22 3a 20 24 7b 65 abel "${t}": ${e 00025250: 2e 6d 65 73 73 61 67 65 7d 60 29 7d 7d 72 65 74 .message}`)}}ret 00025260: 75 72 6e 20 65 7d 66 75 6e 63 74 69 6f 6e 20 73 urn e}function s 00025270: 61 28 65 29 7b 72 65 74 75 72 6e 20 61 61 28 66 a(e){return aa(f 00025280: 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 6c 65 74 unction(e,t){let 00025290: 20 6e 3d 6f 61 28 65 29 2e 72 65 76 65 72 73 65 n=oa(e).reverse 000252a0: 28 29 2c 72 3d 5b 5d 3b 66 6f 72 28 3b 6e 2e 6c (),r=[];for(;n.l 000252b0: 65 6e 67 74 68 3b 29 7b 6c 65 74 20 65 3d 6c 61 ength;){let e=la 000252c0: 28 6e 29 3b 69 66 28 65 29 7b 72 2e 70 75 73 68 (n);if(e){r.push 000252d0: 28 2e 2e 2e 74 28 65 29 29 3b 63 6f 6e 74 69 6e (...t(e));contin 000252e0: 75 65 7d 6c 65 74 20 6f 3d 6e 2e 70 6f 70 28 29 ue}let o=n.pop() 000252f0: 3b 69 66 28 4a 69 2e 68 61 73 28 6f 29 29 7b 72 ;if(Ji.has(o)){r 00025300: 2e 70 75 73 68 28 6f 29 3b 63 6f 6e 74 69 6e 75 .push(o);continu 00025310: 65 7d 69 66 28 24 69 2e 68 61 73 28 6f 29 29 63 e}if($i.has(o))c 00025320: 6f 6e 74 69 6e 75 65 3b 6c 65 74 20 69 3d 65 61 ontinue;let i=ea 00025330: 5b 6f 5d 3b 69 66 28 21 69 29 74 68 72 6f 77 20 [o];if(!i)throw 00025340: 6e 65 77 20 45 72 72 6f 72 28 60 44 69 73 61 6c new Error(`Disal 00025350: 6c 6f 77 65 64 20 63 6f 64 65 70 6f 69 6e 74 3a lowed codepoint: 00025360: 20 30 78 24 7b 6f 2e 74 6f 53 74 72 69 6e 67 28 0x${o.toString( 00025370: 31 36 29 2e 74 6f 55 70 70 65 72 43 61 73 65 28 16).toUpperCase( 00025380: 29 7d 60 29 3b 72 2e 70 75 73 68 28 2e 2e 2e 69 )}`);r.push(...i 00025390: 29 7d 72 65 74 75 72 6e 20 61 61 28 28 6f 3d 53 )}return aa((o=S 000253a0: 74 72 69 6e 67 2e 66 72 6f 6d 43 6f 64 65 50 6f tring.fromCodePo 000253b0: 69 6e 74 28 2e 2e 2e 72 29 2c 6f 2e 6e 6f 72 6d int(...r),o.norm 000253c0: 61 6c 69 7a 65 28 22 4e 46 43 22 29 29 29 3b 76 alize("NFC")));v 000253d0: 61 72 20 6f 7d 28 65 2c 69 61 29 29 7d 66 75 6e ar o}(e,ia))}fun 000253e0: 63 74 69 6f 6e 20 6c 61 28 65 2c 74 29 7b 76 61 ction la(e,t){va 000253f0: 72 20 6e 3b 6c 65 74 20 72 2c 6f 2c 69 3d 74 61 r n;let r,o,i=ta 00025400: 2c 61 3d 5b 5d 2c 73 3d 65 2e 6c 65 6e 67 74 68 ,a=[],s=e.length 00025410: 3b 66 6f 72 28 74 26 26 28 74 2e 6c 65 6e 67 74 ;for(t&&(t.lengt 00025420: 68 3d 30 29 3b 73 3b 29 7b 6c 65 74 20 6c 3d 65 h=0);s;){let l=e 00025430: 5b 2d 2d 73 5d 3b 69 66 28 69 3d 6e 75 6c 6c 3d [--s];if(i=null= 00025440: 3d 3d 28 6e 3d 69 2e 62 72 61 6e 63 68 65 73 2e ==(n=i.branches. 00025450: 66 69 6e 64 28 28 65 3d 3e 65 2e 73 65 74 2e 68 find((e=>e.set.h 00025460: 61 73 28 6c 29 29 29 29 7c 7c 76 6f 69 64 20 30 as(l))))||void 0 00025470: 3d 3d 3d 6e 3f 76 6f 69 64 20 30 3a 6e 2e 6e 6f ===n?void 0:n.no 00025480: 64 65 2c 21 69 29 62 72 65 61 6b 3b 69 66 28 69 de,!i)break;if(i 00025490: 2e 73 61 76 65 29 6f 3d 6c 3b 65 6c 73 65 20 69 .save)o=l;else i 000254a0: 66 28 69 2e 63 68 65 63 6b 26 26 6c 3d 3d 3d 6f f(i.check&&l===o 000254b0: 29 62 72 65 61 6b 3b 61 2e 70 75 73 68 28 6c 29 )break;a.push(l) 000254c0: 2c 69 2e 66 65 30 66 26 26 28 61 2e 70 75 73 68 ,i.fe0f&&(a.push 000254d0: 28 36 35 30 33 39 29 2c 73 3e 30 26 26 36 35 30 (65039),s>0&&650 000254e0: 33 39 3d 3d 65 5b 73 2d 31 5d 26 26 73 2d 2d 29 39==e[s-1]&&s--) 000254f0: 2c 69 2e 76 61 6c 69 64 26 26 28 72 3d 61 2e 73 ,i.valid&&(r=a.s 00025500: 6c 69 63 65 28 29 2c 32 3d 3d 69 2e 76 61 6c 69 lice(),2==i.vali 00025510: 64 26 26 72 2e 73 70 6c 69 63 65 28 31 2c 31 29 d&&r.splice(1,1) 00025520: 2c 74 26 26 74 2e 70 75 73 68 28 2e 2e 2e 65 2e ,t&&t.push(...e. 00025530: 73 6c 69 63 65 28 73 29 2e 72 65 76 65 72 73 65 slice(s).reverse 00025540: 28 29 29 2c 65 2e 6c 65 6e 67 74 68 3d 73 29 7d ()),e.length=s)} 00025550: 72 65 74 75 72 6e 20 72 7d 63 6f 6e 73 74 20 63 return r}const c 00025560: 61 3d 6e 65 77 20 79 28 4a 72 29 2c 75 61 3d 6e a=new y(Jr),ua=n 00025570: 65 77 20 55 69 6e 74 38 41 72 72 61 79 28 33 32 ew Uint8Array(32 00025580: 29 3b 66 75 6e 63 74 69 6f 6e 20 64 61 28 65 29 );function da(e) 00025590: 7b 69 66 28 30 3d 3d 3d 65 2e 6c 65 6e 67 74 68 {if(0===e.length 000255a0: 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 )throw new Error 000255b0: 28 22 69 6e 76 61 6c 69 64 20 45 4e 53 20 6e 61 ("invalid ENS na 000255c0: 6d 65 3b 20 65 6d 70 74 79 20 63 6f 6d 70 6f 6e me; empty compon 000255d0: 65 6e 74 22 29 3b 72 65 74 75 72 6e 20 65 7d 66 ent");return e}f 000255e0: 75 6e 63 74 69 6f 6e 20 70 61 28 65 29 7b 63 6f unction pa(e){co 000255f0: 6e 73 74 20 74 3d 71 65 28 73 61 28 65 29 29 2c nst t=qe(sa(e)), 00025600: 6e 3d 5b 5d 3b 69 66 28 30 3d 3d 3d 65 2e 6c 65 n=[];if(0===e.le 00025610: 6e 67 74 68 29 72 65 74 75 72 6e 20 6e 3b 6c 65 ngth)return n;le 00025620: 74 20 72 3d 30 3b 66 6f 72 28 6c 65 74 20 65 3d t r=0;for(let e= 00025630: 30 3b 65 3c 74 2e 6c 65 6e 67 74 68 3b 65 2b 2b 0;e<t.length;e++ 00025640: 29 7b 34 36 3d 3d 3d 74 5b 65 5d 26 26 28 6e 2e ){46===t[e]&&(n. 00025650: 70 75 73 68 28 64 61 28 74 2e 73 6c 69 63 65 28 push(da(t.slice( 00025660: 72 2c 65 29 29 29 2c 72 3d 65 2b 31 29 7d 69 66 r,e))),r=e+1)}if 00025670: 28 72 3e 3d 74 2e 6c 65 6e 67 74 68 29 74 68 72 (r>=t.length)thr 00025680: 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e ow new Error("in 00025690: 76 61 6c 69 64 20 45 4e 53 20 6e 61 6d 65 3b 20 valid ENS name; 000256a0: 65 6d 70 74 79 20 63 6f 6d 70 6f 6e 65 6e 74 22 empty component" 000256b0: 29 3b 72 65 74 75 72 6e 20 6e 2e 70 75 73 68 28 );return n.push( 000256c0: 64 61 28 74 2e 73 6c 69 63 65 28 72 29 29 29 2c da(t.slice(r))), 000256d0: 6e 7d 66 75 6e 63 74 69 6f 6e 20 66 61 28 65 29 n}function fa(e) 000256e0: 7b 74 72 79 7b 72 65 74 75 72 6e 20 30 21 3d 3d {try{return 0!== 000256f0: 70 61 28 65 29 2e 6c 65 6e 67 74 68 7d 63 61 74 pa(e).length}cat 00025700: 63 68 28 65 29 7b 7d 72 65 74 75 72 6e 21 31 7d ch(e){}return!1} 00025710: 66 75 6e 63 74 69 6f 6e 20 68 61 28 65 29 7b 22 function ha(e){" 00025720: 73 74 72 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 string"!=typeof 00025730: 65 26 26 63 61 2e 74 68 72 6f 77 41 72 67 75 6d e&&ca.throwArgum 00025740: 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 entError("invali 00025750: 64 20 45 4e 53 20 6e 61 6d 65 3b 20 6e 6f 74 20 d ENS name; not 00025760: 61 20 73 74 72 69 6e 67 22 2c 22 6e 61 6d 65 22 a string","name" 00025770: 2c 65 29 3b 6c 65 74 20 74 3d 75 61 3b 63 6f 6e ,e);let t=ua;con 00025780: 73 74 20 6e 3d 70 61 28 65 29 3b 66 6f 72 28 3b st n=pa(e);for(; 00025790: 6e 2e 6c 65 6e 67 74 68 3b 29 74 3d 76 65 28 43 n.length;)t=ve(C 000257a0: 28 5b 74 2c 76 65 28 6e 2e 70 6f 70 28 29 29 5d ([t,ve(n.pop())] 000257b0: 29 29 3b 72 65 74 75 72 6e 20 52 28 74 29 7d 66 ));return R(t)}f 000257c0: 75 6e 63 74 69 6f 6e 20 6d 61 28 65 29 7b 72 65 unction ma(e){re 000257d0: 74 75 72 6e 20 52 28 43 28 70 61 28 65 29 2e 6d turn R(C(pa(e).m 000257e0: 61 70 28 28 65 3d 3e 7b 69 66 28 65 2e 6c 65 6e ap((e=>{if(e.len 000257f0: 67 74 68 3e 36 33 29 74 68 72 6f 77 20 6e 65 77 gth>63)throw new 00025800: 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 Error("invalid 00025810: 44 4e 53 20 65 6e 63 6f 64 65 64 20 65 6e 74 72 DNS encoded entr 00025820: 79 3b 20 6c 65 6e 67 74 68 20 65 78 63 65 65 64 y; length exceed 00025830: 73 20 36 33 20 62 79 74 65 73 22 29 3b 63 6f 6e s 63 bytes");con 00025840: 73 74 20 74 3d 6e 65 77 20 55 69 6e 74 38 41 72 st t=new Uint8Ar 00025850: 72 61 79 28 65 2e 6c 65 6e 67 74 68 2b 31 29 3b ray(e.length+1); 00025860: 72 65 74 75 72 6e 20 74 2e 73 65 74 28 65 2c 31 return t.set(e,1 00025870: 29 2c 74 5b 30 5d 3d 74 2e 6c 65 6e 67 74 68 2d ),t[0]=t.length- 00025880: 31 2c 74 7d 29 29 29 29 2b 22 30 30 22 7d 75 61 1,t}))))+"00"}ua 00025890: 2e 66 69 6c 6c 28 30 29 3b 76 61 72 20 67 61 3d .fill(0);var ga= 000258a0: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c 72 function(e,t,n,r 000258b0: 29 7b 72 65 74 75 72 6e 20 6e 65 77 28 6e 7c 7c ){return new(n|| 000258c0: 28 6e 3d 50 72 6f 6d 69 73 65 29 29 28 28 66 75 (n=Promise))((fu 000258d0: 6e 63 74 69 6f 6e 28 6f 2c 69 29 7b 66 75 6e 63 nction(o,i){func 000258e0: 74 69 6f 6e 20 61 28 65 29 7b 74 72 79 7b 6c 28 tion a(e){try{l( 000258f0: 72 2e 6e 65 78 74 28 65 29 29 7d 63 61 74 63 68 r.next(e))}catch 00025900: 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 69 (e){i(e)}}functi 00025910: 6f 6e 20 73 28 65 29 7b 74 72 79 7b 6c 28 72 2e on s(e){try{l(r. 00025920: 74 68 72 6f 77 28 65 29 29 7d 63 61 74 63 68 28 throw(e))}catch( 00025930: 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 69 6f e){i(e)}}functio 00025940: 6e 20 6c 28 65 29 7b 76 61 72 20 74 3b 65 2e 64 n l(e){var t;e.d 00025950: 6f 6e 65 3f 6f 28 65 2e 76 61 6c 75 65 29 3a 28 one?o(e.value):( 00025960: 74 3d 65 2e 76 61 6c 75 65 2c 74 20 69 6e 73 74 t=e.value,t inst 00025970: 61 6e 63 65 6f 66 20 6e 3f 74 3a 6e 65 77 20 6e anceof n?t:new n 00025980: 28 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b 65 28 ((function(e){e( 00025990: 74 29 7d 29 29 29 2e 74 68 65 6e 28 61 2c 73 29 t)}))).then(a,s) 000259a0: 7d 6c 28 28 72 3d 72 2e 61 70 70 6c 79 28 65 2c }l((r=r.apply(e, 000259b0: 74 7c 7c 5b 5d 29 29 2e 6e 65 78 74 28 29 29 7d t||[])).next())} 000259c0: 29 29 7d 3b 66 75 6e 63 74 69 6f 6e 20 62 61 28 ))};function ba( 000259d0: 65 2c 74 29 7b 72 65 74 75 72 6e 20 67 61 28 74 e,t){return ga(t 000259e0: 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 his,void 0,void 000259f0: 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6e 0,(function*(){n 00025a00: 75 6c 6c 3d 3d 74 26 26 28 74 3d 7b 7d 29 3b 63 ull==t&&(t={});c 00025a10: 6f 6e 73 74 20 6e 3d 7b 6d 65 74 68 6f 64 3a 74 onst n={method:t 00025a20: 2e 6d 65 74 68 6f 64 7c 7c 22 47 45 54 22 2c 68 .method||"GET",h 00025a30: 65 61 64 65 72 73 3a 74 2e 68 65 61 64 65 72 73 eaders:t.headers 00025a40: 7c 7c 7b 7d 2c 62 6f 64 79 3a 74 2e 62 6f 64 79 ||{},body:t.body 00025a50: 7c 7c 76 6f 69 64 20 30 7d 3b 69 66 28 21 30 21 ||void 0};if(!0! 00025a60: 3d 3d 74 2e 73 6b 69 70 46 65 74 63 68 53 65 74 ==t.skipFetchSet 00025a70: 75 70 26 26 28 6e 2e 6d 6f 64 65 3d 22 63 6f 72 up&&(n.mode="cor 00025a80: 73 22 2c 6e 2e 63 61 63 68 65 3d 22 6e 6f 2d 63 s",n.cache="no-c 00025a90: 61 63 68 65 22 2c 6e 2e 63 72 65 64 65 6e 74 69 ache",n.credenti 00025aa0: 61 6c 73 3d 22 73 61 6d 65 2d 6f 72 69 67 69 6e als="same-origin 00025ab0: 22 2c 6e 2e 72 65 64 69 72 65 63 74 3d 22 66 6f ",n.redirect="fo 00025ac0: 6c 6c 6f 77 22 2c 6e 2e 72 65 66 65 72 72 65 72 llow",n.referrer 00025ad0: 3d 22 63 6c 69 65 6e 74 22 29 2c 6e 75 6c 6c 21 ="client"),null! 00025ae0: 3d 74 2e 66 65 74 63 68 4f 70 74 69 6f 6e 73 29 =t.fetchOptions) 00025af0: 7b 63 6f 6e 73 74 20 65 3d 74 2e 66 65 74 63 68 {const e=t.fetch 00025b00: 4f 70 74 69 6f 6e 73 3b 65 2e 6d 6f 64 65 26 26 Options;e.mode&& 00025b10: 28 6e 2e 6d 6f 64 65 3d 65 2e 6d 6f 64 65 29 2c (n.mode=e.mode), 00025b20: 65 2e 63 61 63 68 65 26 26 28 6e 2e 63 61 63 68 e.cache&&(n.cach 00025b30: 65 3d 65 2e 63 61 63 68 65 29 2c 65 2e 63 72 65 e=e.cache),e.cre 00025b40: 64 65 6e 74 69 61 6c 73 26 26 28 6e 2e 63 72 65 dentials&&(n.cre 00025b50: 64 65 6e 74 69 61 6c 73 3d 65 2e 63 72 65 64 65 dentials=e.crede 00025b60: 6e 74 69 61 6c 73 29 2c 65 2e 72 65 64 69 72 65 ntials),e.redire 00025b70: 63 74 26 26 28 6e 2e 72 65 64 69 72 65 63 74 3d ct&&(n.redirect= 00025b80: 65 2e 72 65 64 69 72 65 63 74 29 2c 65 2e 72 65 e.redirect),e.re 00025b90: 66 65 72 72 65 72 26 26 28 6e 2e 72 65 66 65 72 ferrer&&(n.refer 00025ba0: 72 65 72 3d 65 2e 72 65 66 65 72 72 65 72 29 7d rer=e.referrer)} 00025bb0: 63 6f 6e 73 74 20 72 3d 79 69 65 6c 64 20 66 65 const r=yield fe 00025bc0: 74 63 68 28 65 2c 6e 29 2c 6f 3d 79 69 65 6c 64 tch(e,n),o=yield 00025bd0: 20 72 2e 61 72 72 61 79 42 75 66 66 65 72 28 29 r.arrayBuffer() 00025be0: 2c 69 3d 7b 7d 3b 72 65 74 75 72 6e 20 72 2e 68 ,i={};return r.h 00025bf0: 65 61 64 65 72 73 2e 66 6f 72 45 61 63 68 3f 72 eaders.forEach?r 00025c00: 2e 68 65 61 64 65 72 73 2e 66 6f 72 45 61 63 68 .headers.forEach 00025c10: 28 28 28 65 2c 74 29 3d 3e 7b 69 5b 74 2e 74 6f (((e,t)=>{i[t.to 00025c20: 4c 6f 77 65 72 43 61 73 65 28 29 5d 3d 65 7d 29 LowerCase()]=e}) 00025c30: 29 3a 72 2e 68 65 61 64 65 72 73 2e 6b 65 79 73 ):r.headers.keys 00025c40: 28 29 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b ().forEach((e=>{ 00025c50: 69 5b 65 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 i[e.toLowerCase( 00025c60: 29 5d 3d 72 2e 68 65 61 64 65 72 73 2e 67 65 74 )]=r.headers.get 00025c70: 28 65 29 7d 29 29 2c 7b 68 65 61 64 65 72 73 3a (e)})),{headers: 00025c80: 69 2c 73 74 61 74 75 73 43 6f 64 65 3a 72 2e 73 i,statusCode:r.s 00025c90: 74 61 74 75 73 2c 73 74 61 74 75 73 4d 65 73 73 tatus,statusMess 00025ca0: 61 67 65 3a 72 2e 73 74 61 74 75 73 54 65 78 74 age:r.statusText 00025cb0: 2c 62 6f 64 79 3a 54 28 6e 65 77 20 55 69 6e 74 ,body:T(new Uint 00025cc0: 38 41 72 72 61 79 28 6f 29 29 7d 7d 29 29 7d 76 8Array(o))}}))}v 00025cd0: 61 72 20 79 61 3d 66 75 6e 63 74 69 6f 6e 28 65 ar ya=function(e 00025ce0: 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 6e ,t,n,r){return n 00025cf0: 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 65 ew(n||(n=Promise 00025d00: 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c 69 ))((function(o,i 00025d10: 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 7b ){function a(e){ 00025d20: 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 29 try{l(r.next(e)) 00025d30: 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d }catch(e){i(e)}} 00025d40: 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 72 function s(e){tr 00025d50: 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 7d y{l(r.throw(e))} 00025d60: 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 catch(e){i(e)}}f 00025d70: 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 72 unction l(e){var 00025d80: 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 61 t;e.done?o(e.va 00025d90: 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 2c lue):(t=e.value, 00025da0: 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f 74 t instanceof n?t 00025db0: 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 6f 6e :new n((function 00025dc0: 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 65 (e){e(t)}))).the 00025dd0: 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 70 n(a,s)}l((r=r.ap 00025de0: 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 ply(e,t||[])).ne 00025df0: 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 20 xt())}))};const 00025e00: 76 61 3d 6e 65 77 20 79 28 22 77 65 62 2f 35 2e va=new y("web/5. 00025e10: 37 2e 31 22 29 3b 66 75 6e 63 74 69 6f 6e 20 53 7.1");function S 00025e20: 61 28 65 29 7b 72 65 74 75 72 6e 20 6e 65 77 20 a(e){return new 00025e30: 50 72 6f 6d 69 73 65 28 28 74 3d 3e 7b 73 65 74 Promise((t=>{set 00025e40: 54 69 6d 65 6f 75 74 28 74 2c 65 29 7d 29 29 7d Timeout(t,e)}))} 00025e50: 66 75 6e 63 74 69 6f 6e 20 45 61 28 65 2c 74 29 function Ea(e,t) 00025e60: 7b 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 74 75 {if(null==e)retu 00025e70: 72 6e 20 6e 75 6c 6c 3b 69 66 28 22 73 74 72 69 rn null;if("stri 00025e80: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 29 72 65 ng"==typeof e)re 00025e90: 74 75 72 6e 20 65 3b 69 66 28 5f 28 65 29 29 7b turn e;if(_(e)){ 00025ea0: 69 66 28 74 26 26 28 22 74 65 78 74 22 3d 3d 3d if(t&&("text"=== 00025eb0: 74 2e 73 70 6c 69 74 28 22 2f 22 29 5b 30 5d 7c t.split("/")[0]| 00025ec0: 7c 22 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6a 73 |"application/js 00025ed0: 6f 6e 22 3d 3d 3d 74 2e 73 70 6c 69 74 28 22 3b on"===t.split("; 00025ee0: 22 29 5b 30 5d 2e 74 72 69 6d 28 29 29 29 74 72 ")[0].trim()))tr 00025ef0: 79 7b 72 65 74 75 72 6e 20 58 65 28 65 29 7d 63 y{return Xe(e)}c 00025f00: 61 74 63 68 28 65 29 7b 7d 72 65 74 75 72 6e 20 atch(e){}return 00025f10: 52 28 65 29 7d 72 65 74 75 72 6e 20 65 7d 66 75 R(e)}return e}fu 00025f20: 6e 63 74 69 6f 6e 20 5f 61 28 65 2c 74 2c 6e 29 nction _a(e,t,n) 00025f30: 7b 63 6f 6e 73 74 20 72 3d 22 6f 62 6a 65 63 74 {const r="object 00025f40: 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 6e 75 6c "==typeof e&&nul 00025f50: 6c 21 3d 65 2e 74 68 72 6f 74 74 6c 65 4c 69 6d l!=e.throttleLim 00025f60: 69 74 3f 65 2e 74 68 72 6f 74 74 6c 65 4c 69 6d it?e.throttleLim 00025f70: 69 74 3a 31 32 3b 76 61 2e 61 73 73 65 72 74 41 it:12;va.assertA 00025f80: 72 67 75 6d 65 6e 74 28 72 3e 30 26 26 72 25 31 rgument(r>0&&r%1 00025f90: 3d 3d 30 2c 22 69 6e 76 61 6c 69 64 20 63 6f 6e ==0,"invalid con 00025fa0: 6e 65 63 74 69 6f 6e 20 74 68 72 6f 74 74 6c 65 nection throttle 00025fb0: 20 6c 69 6d 69 74 22 2c 22 63 6f 6e 6e 65 63 74 limit","connect 00025fc0: 69 6f 6e 2e 74 68 72 6f 74 74 6c 65 4c 69 6d 69 ion.throttleLimi 00025fd0: 74 22 2c 72 29 3b 63 6f 6e 73 74 20 6f 3d 22 6f t",r);const o="o 00025fe0: 62 6a 65 63 74 22 3d 3d 74 79 70 65 6f 66 20 65 bject"==typeof e 00025ff0: 3f 65 2e 74 68 72 6f 74 74 6c 65 43 61 6c 6c 62 ?e.throttleCallb 00026000: 61 63 6b 3a 6e 75 6c 6c 2c 69 3d 22 6f 62 6a 65 ack:null,i="obje 00026010: 63 74 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 22 ct"==typeof e&&" 00026020: 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f 66 20 number"==typeof 00026030: 65 2e 74 68 72 6f 74 74 6c 65 53 6c 6f 74 49 6e e.throttleSlotIn 00026040: 74 65 72 76 61 6c 3f 65 2e 74 68 72 6f 74 74 6c terval?e.throttl 00026050: 65 53 6c 6f 74 49 6e 74 65 72 76 61 6c 3a 31 30 eSlotInterval:10 00026060: 30 3b 76 61 2e 61 73 73 65 72 74 41 72 67 75 6d 0;va.assertArgum 00026070: 65 6e 74 28 69 3e 30 26 26 69 25 31 3d 3d 30 2c ent(i>0&&i%1==0, 00026080: 22 69 6e 76 61 6c 69 64 20 63 6f 6e 6e 65 63 74 "invalid connect 00026090: 69 6f 6e 20 74 68 72 6f 74 74 6c 65 20 73 6c 6f ion throttle slo 000260a0: 74 20 69 6e 74 65 72 76 61 6c 22 2c 22 63 6f 6e t interval","con 000260b0: 6e 65 63 74 69 6f 6e 2e 74 68 72 6f 74 74 6c 65 nection.throttle 000260c0: 53 6c 6f 74 49 6e 74 65 72 76 61 6c 22 2c 69 29 SlotInterval",i) 000260d0: 3b 63 6f 6e 73 74 20 61 3d 22 6f 62 6a 65 63 74 ;const a="object 000260e0: 22 3d 3d 74 79 70 65 6f 66 20 65 26 26 21 21 65 "==typeof e&&!!e 000260f0: 2e 65 72 72 6f 72 50 61 73 73 54 68 72 6f 75 67 .errorPassThroug 00026100: 68 2c 73 3d 7b 7d 3b 6c 65 74 20 6c 3d 6e 75 6c h,s={};let l=nul 00026110: 6c 3b 63 6f 6e 73 74 20 63 3d 7b 6d 65 74 68 6f l;const c={metho 00026120: 64 3a 22 47 45 54 22 7d 3b 6c 65 74 20 75 3d 21 d:"GET"};let u=! 00026130: 31 2c 64 3d 31 32 65 34 3b 69 66 28 22 73 74 72 1,d=12e4;if("str 00026140: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 29 6c ing"==typeof e)l 00026150: 3d 65 3b 65 6c 73 65 20 69 66 28 22 6f 62 6a 65 =e;else if("obje 00026160: 63 74 22 3d 3d 74 79 70 65 6f 66 20 65 29 7b 69 ct"==typeof e){i 00026170: 66 28 6e 75 6c 6c 21 3d 65 26 26 6e 75 6c 6c 21 f(null!=e&&null! 00026180: 3d 65 2e 75 72 6c 7c 7c 76 61 2e 74 68 72 6f 77 =e.url||va.throw 00026190: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 6d ArgumentError("m 000261a0: 69 73 73 69 6e 67 20 55 52 4c 22 2c 22 63 6f 6e issing URL","con 000261b0: 6e 65 63 74 69 6f 6e 2e 75 72 6c 22 2c 65 29 2c nection.url",e), 000261c0: 6c 3d 65 2e 75 72 6c 2c 22 6e 75 6d 62 65 72 22 l=e.url,"number" 000261d0: 3d 3d 74 79 70 65 6f 66 20 65 2e 74 69 6d 65 6f ==typeof e.timeo 000261e0: 75 74 26 26 65 2e 74 69 6d 65 6f 75 74 3e 30 26 ut&&e.timeout>0& 000261f0: 26 28 64 3d 65 2e 74 69 6d 65 6f 75 74 29 2c 65 &(d=e.timeout),e 00026200: 2e 68 65 61 64 65 72 73 29 66 6f 72 28 63 6f 6e .headers)for(con 00026210: 73 74 20 74 20 69 6e 20 65 2e 68 65 61 64 65 72 st t in e.header 00026220: 73 29 73 5b 74 2e 74 6f 4c 6f 77 65 72 43 61 73 s)s[t.toLowerCas 00026230: 65 28 29 5d 3d 7b 6b 65 79 3a 74 2c 76 61 6c 75 e()]={key:t,valu 00026240: 65 3a 53 74 72 69 6e 67 28 65 2e 68 65 61 64 65 e:String(e.heade 00026250: 72 73 5b 74 5d 29 7d 2c 5b 22 69 66 2d 6e 6f 6e rs[t])},["if-non 00026260: 65 2d 6d 61 74 63 68 22 2c 22 69 66 2d 6d 6f 64 e-match","if-mod 00026270: 69 66 69 65 64 2d 73 69 6e 63 65 22 5d 2e 69 6e ified-since"].in 00026280: 64 65 78 4f 66 28 74 2e 74 6f 4c 6f 77 65 72 43 dexOf(t.toLowerC 00026290: 61 73 65 28 29 29 3e 3d 30 26 26 28 75 3d 21 30 ase())>=0&&(u=!0 000262a0: 29 3b 69 66 28 63 2e 61 6c 6c 6f 77 47 7a 69 70 );if(c.allowGzip 000262b0: 3d 21 21 65 2e 61 6c 6c 6f 77 47 7a 69 70 2c 6e =!!e.allowGzip,n 000262c0: 75 6c 6c 21 3d 65 2e 75 73 65 72 26 26 6e 75 6c ull!=e.user&&nul 000262d0: 6c 21 3d 65 2e 70 61 73 73 77 6f 72 64 29 7b 22 l!=e.password){" 000262e0: 68 74 74 70 73 3a 22 21 3d 3d 6c 2e 73 75 62 73 https:"!==l.subs 000262f0: 74 72 69 6e 67 28 30 2c 36 29 26 26 21 30 21 3d tring(0,6)&&!0!= 00026300: 3d 65 2e 61 6c 6c 6f 77 49 6e 73 65 63 75 72 65 =e.allowInsecure 00026310: 41 75 74 68 65 6e 74 69 63 61 74 69 6f 6e 26 26 Authentication&& 00026320: 76 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 62 va.throwError("b 00026330: 61 73 69 63 20 61 75 74 68 65 6e 74 69 63 61 74 asic authenticat 00026340: 69 6f 6e 20 72 65 71 75 69 72 65 73 20 61 20 73 ion requires a s 00026350: 65 63 75 72 65 20 68 74 74 70 73 20 75 72 6c 22 ecure https url" 00026360: 2c 79 2e 65 72 72 6f 72 73 2e 49 4e 56 41 4c 49 ,y.errors.INVALI 00026370: 44 5f 41 52 47 55 4d 45 4e 54 2c 7b 61 72 67 75 D_ARGUMENT,{argu 00026380: 6d 65 6e 74 3a 22 75 72 6c 22 2c 75 72 6c 3a 6c ment:"url",url:l 00026390: 2c 75 73 65 72 3a 65 2e 75 73 65 72 2c 70 61 73 ,user:e.user,pas 000263a0: 73 77 6f 72 64 3a 22 5b 52 45 44 41 43 54 45 44 sword:"[REDACTED 000263b0: 5d 22 7d 29 3b 63 6f 6e 73 74 20 74 3d 65 2e 75 ]"});const t=e.u 000263c0: 73 65 72 2b 22 3a 22 2b 65 2e 70 61 73 73 77 6f ser+":"+e.passwo 000263d0: 72 64 3b 73 2e 61 75 74 68 6f 72 69 7a 61 74 69 rd;s.authorizati 000263e0: 6f 6e 3d 7b 6b 65 79 3a 22 41 75 74 68 6f 72 69 on={key:"Authori 000263f0: 7a 61 74 69 6f 6e 22 2c 76 61 6c 75 65 3a 22 42 zation",value:"B 00026400: 61 73 69 63 20 22 2b 7a 69 28 71 65 28 74 29 29 asic "+zi(qe(t)) 00026410: 7d 7d 6e 75 6c 6c 21 3d 65 2e 73 6b 69 70 46 65 }}null!=e.skipFe 00026420: 74 63 68 53 65 74 75 70 26 26 28 63 2e 73 6b 69 tchSetup&&(c.ski 00026430: 70 46 65 74 63 68 53 65 74 75 70 3d 21 21 65 2e pFetchSetup=!!e. 00026440: 73 6b 69 70 46 65 74 63 68 53 65 74 75 70 29 2c skipFetchSetup), 00026450: 6e 75 6c 6c 21 3d 65 2e 66 65 74 63 68 4f 70 74 null!=e.fetchOpt 00026460: 69 6f 6e 73 26 26 28 63 2e 66 65 74 63 68 4f 70 ions&&(c.fetchOp 00026470: 74 69 6f 6e 73 3d 69 65 28 65 2e 66 65 74 63 68 tions=ie(e.fetch 00026480: 4f 70 74 69 6f 6e 73 29 29 7d 63 6f 6e 73 74 20 Options))}const 00026490: 70 3d 6e 65 77 20 52 65 67 45 78 70 28 22 5e 64 p=new RegExp("^d 000264a0: 61 74 61 3a 28 5b 5e 3b 3a 5d 2a 29 3f 28 3b 62 ata:([^;:]*)?(;b 000264b0: 61 73 65 36 34 29 3f 2c 28 2e 2a 29 24 22 2c 22 ase64)?,(.*)$"," 000264c0: 69 22 29 2c 66 3d 6c 3f 6c 2e 6d 61 74 63 68 28 i"),f=l?l.match( 000264d0: 70 29 3a 6e 75 6c 6c 3b 69 66 28 66 29 74 72 79 p):null;if(f)try 000264e0: 7b 63 6f 6e 73 74 20 65 3d 7b 73 74 61 74 75 73 {const e={status 000264f0: 43 6f 64 65 3a 32 30 30 2c 73 74 61 74 75 73 4d Code:200,statusM 00026500: 65 73 73 61 67 65 3a 22 4f 4b 22 2c 68 65 61 64 essage:"OK",head 00026510: 65 72 73 3a 7b 22 63 6f 6e 74 65 6e 74 2d 74 79 ers:{"content-ty 00026520: 70 65 22 3a 66 5b 31 5d 7c 7c 22 74 65 78 74 2f pe":f[1]||"text/ 00026530: 70 6c 61 69 6e 22 7d 2c 62 6f 64 79 3a 66 5b 32 plain"},body:f[2 00026540: 5d 3f 6a 69 28 66 5b 33 5d 29 3a 28 68 3d 66 5b ]?ji(f[3]):(h=f[ 00026550: 33 5d 2c 71 65 28 68 2e 72 65 70 6c 61 63 65 28 3],qe(h.replace( 00026560: 2f 25 28 5b 30 2d 39 61 2d 66 5d 5b 30 2d 39 61 /%([0-9a-f][0-9a 00026570: 2d 66 5d 29 2f 67 69 2c 28 28 65 2c 74 29 3d 3e -f])/gi,((e,t)=> 00026580: 53 74 72 69 6e 67 2e 66 72 6f 6d 43 68 61 72 43 String.fromCharC 00026590: 6f 64 65 28 70 61 72 73 65 49 6e 74 28 74 2c 31 ode(parseInt(t,1 000265a0: 36 29 29 29 29 29 29 7d 3b 6c 65 74 20 74 3d 65 6))))))};let t=e 000265b0: 2e 62 6f 64 79 3b 72 65 74 75 72 6e 20 6e 26 26 .body;return n&& 000265c0: 28 74 3d 6e 28 65 2e 62 6f 64 79 2c 65 29 29 2c (t=n(e.body,e)), 000265d0: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 000265e0: 74 29 7d 63 61 74 63 68 28 65 29 7b 76 61 2e 74 t)}catch(e){va.t 000265f0: 68 72 6f 77 45 72 72 6f 72 28 22 70 72 6f 63 65 hrowError("proce 00026600: 73 73 69 6e 67 20 72 65 73 70 6f 6e 73 65 20 65 ssing response e 00026610: 72 72 6f 72 22 2c 79 2e 65 72 72 6f 72 73 2e 53 rror",y.errors.S 00026620: 45 52 56 45 52 5f 45 52 52 4f 52 2c 7b 62 6f 64 ERVER_ERROR,{bod 00026630: 79 3a 45 61 28 66 5b 31 5d 2c 66 5b 32 5d 29 2c y:Ea(f[1],f[2]), 00026640: 65 72 72 6f 72 3a 65 2c 72 65 71 75 65 73 74 42 error:e,requestB 00026650: 6f 64 79 3a 6e 75 6c 6c 2c 72 65 71 75 65 73 74 ody:null,request 00026660: 4d 65 74 68 6f 64 3a 22 47 45 54 22 2c 75 72 6c Method:"GET",url 00026670: 3a 6c 7d 29 7d 76 61 72 20 68 3b 74 26 26 28 63 :l})}var h;t&&(c 00026680: 2e 6d 65 74 68 6f 64 3d 22 50 4f 53 54 22 2c 63 .method="POST",c 00026690: 2e 62 6f 64 79 3d 74 2c 6e 75 6c 6c 3d 3d 73 5b .body=t,null==s[ 000266a0: 22 63 6f 6e 74 65 6e 74 2d 74 79 70 65 22 5d 26 "content-type"]& 000266b0: 26 28 73 5b 22 63 6f 6e 74 65 6e 74 2d 74 79 70 &(s["content-typ 000266c0: 65 22 5d 3d 7b 6b 65 79 3a 22 43 6f 6e 74 65 6e e"]={key:"Conten 000266d0: 74 2d 54 79 70 65 22 2c 76 61 6c 75 65 3a 22 61 t-Type",value:"a 000266e0: 70 70 6c 69 63 61 74 69 6f 6e 2f 6f 63 74 65 74 pplication/octet 000266f0: 2d 73 74 72 65 61 6d 22 7d 29 2c 6e 75 6c 6c 3d -stream"}),null= 00026700: 3d 73 5b 22 63 6f 6e 74 65 6e 74 2d 6c 65 6e 67 =s["content-leng 00026710: 74 68 22 5d 26 26 28 73 5b 22 63 6f 6e 74 65 6e th"]&&(s["conten 00026720: 74 2d 6c 65 6e 67 74 68 22 5d 3d 7b 6b 65 79 3a t-length"]={key: 00026730: 22 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 22 "Content-Length" 00026740: 2c 76 61 6c 75 65 3a 53 74 72 69 6e 67 28 74 2e ,value:String(t. 00026750: 6c 65 6e 67 74 68 29 7d 29 29 3b 63 6f 6e 73 74 length)}));const 00026760: 20 6d 3d 7b 7d 3b 4f 62 6a 65 63 74 2e 6b 65 79 m={};Object.key 00026770: 73 28 73 29 2e 66 6f 72 45 61 63 68 28 28 65 3d s(s).forEach((e= 00026780: 3e 7b 63 6f 6e 73 74 20 74 3d 73 5b 65 5d 3b 6d >{const t=s[e];m 00026790: 5b 74 2e 6b 65 79 5d 3d 74 2e 76 61 6c 75 65 7d [t.key]=t.value} 000267a0: 29 29 2c 63 2e 68 65 61 64 65 72 73 3d 6d 3b 63 )),c.headers=m;c 000267b0: 6f 6e 73 74 20 67 3d 66 75 6e 63 74 69 6f 6e 28 onst g=function( 000267c0: 29 7b 6c 65 74 20 65 3d 6e 75 6c 6c 3b 72 65 74 ){let e=null;ret 000267d0: 75 72 6e 7b 70 72 6f 6d 69 73 65 3a 6e 65 77 20 urn{promise:new 000267e0: 50 72 6f 6d 69 73 65 28 28 66 75 6e 63 74 69 6f Promise((functio 000267f0: 6e 28 74 2c 6e 29 7b 64 26 26 28 65 3d 73 65 74 n(t,n){d&&(e=set 00026800: 54 69 6d 65 6f 75 74 28 28 28 29 3d 3e 7b 6e 75 Timeout((()=>{nu 00026810: 6c 6c 21 3d 65 26 26 28 65 3d 6e 75 6c 6c 2c 6e ll!=e&&(e=null,n 00026820: 28 76 61 2e 6d 61 6b 65 45 72 72 6f 72 28 22 74 (va.makeError("t 00026830: 69 6d 65 6f 75 74 22 2c 79 2e 65 72 72 6f 72 73 imeout",y.errors 00026840: 2e 54 49 4d 45 4f 55 54 2c 7b 72 65 71 75 65 73 .TIMEOUT,{reques 00026850: 74 42 6f 64 79 3a 45 61 28 63 2e 62 6f 64 79 2c tBody:Ea(c.body, 00026860: 6d 5b 22 63 6f 6e 74 65 6e 74 2d 74 79 70 65 22 m["content-type" 00026870: 5d 29 2c 72 65 71 75 65 73 74 4d 65 74 68 6f 64 ]),requestMethod 00026880: 3a 63 2e 6d 65 74 68 6f 64 2c 74 69 6d 65 6f 75 :c.method,timeou 00026890: 74 3a 64 2c 75 72 6c 3a 6c 7d 29 29 29 7d 29 2c t:d,url:l})))}), 000268a0: 64 29 29 7d 29 29 2c 63 61 6e 63 65 6c 3a 66 75 d))})),cancel:fu 000268b0: 6e 63 74 69 6f 6e 28 29 7b 6e 75 6c 6c 21 3d 65 nction(){null!=e 000268c0: 26 26 28 63 6c 65 61 72 54 69 6d 65 6f 75 74 28 &&(clearTimeout( 000268d0: 65 29 2c 65 3d 6e 75 6c 6c 29 7d 7d 7d 28 29 2c e),e=null)}}}(), 000268e0: 62 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 72 65 74 b=function(){ret 000268f0: 75 72 6e 20 79 61 28 74 68 69 73 2c 76 6f 69 64 urn ya(this,void 00026900: 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 0,void 0,(funct 00026910: 69 6f 6e 2a 28 29 7b 66 6f 72 28 6c 65 74 20 65 ion*(){for(let e 00026920: 3d 30 3b 65 3c 72 3b 65 2b 2b 29 7b 6c 65 74 20 =0;e<r;e++){let 00026930: 74 3d 6e 75 6c 6c 3b 74 72 79 7b 69 66 28 74 3d t=null;try{if(t= 00026940: 79 69 65 6c 64 20 62 61 28 6c 2c 63 29 2c 65 3c yield ba(l,c),e< 00026950: 72 29 69 66 28 33 30 31 3d 3d 3d 74 2e 73 74 61 r)if(301===t.sta 00026960: 74 75 73 43 6f 64 65 7c 7c 33 30 32 3d 3d 3d 74 tusCode||302===t 00026970: 2e 73 74 61 74 75 73 43 6f 64 65 29 7b 63 6f 6e .statusCode){con 00026980: 73 74 20 65 3d 74 2e 68 65 61 64 65 72 73 2e 6c st e=t.headers.l 00026990: 6f 63 61 74 69 6f 6e 7c 7c 22 22 3b 69 66 28 22 ocation||"";if(" 000269a0: 47 45 54 22 3d 3d 3d 63 2e 6d 65 74 68 6f 64 26 GET"===c.method& 000269b0: 26 65 2e 6d 61 74 63 68 28 2f 5e 68 74 74 70 73 &e.match(/^https 000269c0: 3a 2f 29 29 7b 6c 3d 74 2e 68 65 61 64 65 72 73 :/)){l=t.headers 000269d0: 2e 6c 6f 63 61 74 69 6f 6e 3b 63 6f 6e 74 69 6e .location;contin 000269e0: 75 65 7d 7d 65 6c 73 65 20 69 66 28 34 32 39 3d ue}}else if(429= 000269f0: 3d 3d 74 2e 73 74 61 74 75 73 43 6f 64 65 29 7b ==t.statusCode){ 00026a00: 6c 65 74 20 6e 3d 21 30 3b 69 66 28 6f 26 26 28 let n=!0;if(o&&( 00026a10: 6e 3d 79 69 65 6c 64 20 6f 28 65 2c 6c 29 29 2c n=yield o(e,l)), 00026a20: 6e 29 7b 6c 65 74 20 6e 3d 30 3b 63 6f 6e 73 74 n){let n=0;const 00026a30: 20 72 3d 74 2e 68 65 61 64 65 72 73 5b 22 72 65 r=t.headers["re 00026a40: 74 72 79 2d 61 66 74 65 72 22 5d 3b 6e 3d 22 73 try-after"];n="s 00026a50: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 72 tring"==typeof r 00026a60: 26 26 72 2e 6d 61 74 63 68 28 2f 5e 5b 31 2d 39 &&r.match(/^[1-9 00026a70: 5d 5b 30 2d 39 5d 2a 24 2f 29 3f 31 65 33 2a 70 ][0-9]*$/)?1e3*p 00026a80: 61 72 73 65 49 6e 74 28 72 29 3a 69 2a 70 61 72 arseInt(r):i*par 00026a90: 73 65 49 6e 74 28 53 74 72 69 6e 67 28 4d 61 74 seInt(String(Mat 00026aa0: 68 2e 72 61 6e 64 6f 6d 28 29 2a 4d 61 74 68 2e h.random()*Math. 00026ab0: 70 6f 77 28 32 2c 65 29 29 29 2c 79 69 65 6c 64 pow(2,e))),yield 00026ac0: 20 53 61 28 6e 29 3b 63 6f 6e 74 69 6e 75 65 7d Sa(n);continue} 00026ad0: 7d 7d 63 61 74 63 68 28 65 29 7b 74 3d 65 2e 72 }}catch(e){t=e.r 00026ae0: 65 73 70 6f 6e 73 65 2c 6e 75 6c 6c 3d 3d 74 26 esponse,null==t& 00026af0: 26 28 67 2e 63 61 6e 63 65 6c 28 29 2c 76 61 2e &(g.cancel(),va. 00026b00: 74 68 72 6f 77 45 72 72 6f 72 28 22 6d 69 73 73 throwError("miss 00026b10: 69 6e 67 20 72 65 73 70 6f 6e 73 65 22 2c 79 2e ing response",y. 00026b20: 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 errors.SERVER_ER 00026b30: 52 4f 52 2c 7b 72 65 71 75 65 73 74 42 6f 64 79 ROR,{requestBody 00026b40: 3a 45 61 28 63 2e 62 6f 64 79 2c 6d 5b 22 63 6f :Ea(c.body,m["co 00026b50: 6e 74 65 6e 74 2d 74 79 70 65 22 5d 29 2c 72 65 ntent-type"]),re 00026b60: 71 75 65 73 74 4d 65 74 68 6f 64 3a 63 2e 6d 65 questMethod:c.me 00026b70: 74 68 6f 64 2c 73 65 72 76 65 72 45 72 72 6f 72 thod,serverError 00026b80: 3a 65 2c 75 72 6c 3a 6c 7d 29 29 7d 6c 65 74 20 :e,url:l}))}let 00026b90: 73 3d 74 2e 62 6f 64 79 3b 69 66 28 75 26 26 33 s=t.body;if(u&&3 00026ba0: 30 34 3d 3d 3d 74 2e 73 74 61 74 75 73 43 6f 64 04===t.statusCod 00026bb0: 65 3f 73 3d 6e 75 6c 6c 3a 21 61 26 26 28 74 2e e?s=null:!a&&(t. 00026bc0: 73 74 61 74 75 73 43 6f 64 65 3c 32 30 30 7c 7c statusCode<200|| 00026bd0: 74 2e 73 74 61 74 75 73 43 6f 64 65 3e 3d 33 30 t.statusCode>=30 00026be0: 30 29 26 26 28 67 2e 63 61 6e 63 65 6c 28 29 2c 0)&&(g.cancel(), 00026bf0: 76 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 62 va.throwError("b 00026c00: 61 64 20 72 65 73 70 6f 6e 73 65 22 2c 79 2e 65 ad response",y.e 00026c10: 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 52 rrors.SERVER_ERR 00026c20: 4f 52 2c 7b 73 74 61 74 75 73 3a 74 2e 73 74 61 OR,{status:t.sta 00026c30: 74 75 73 43 6f 64 65 2c 68 65 61 64 65 72 73 3a tusCode,headers: 00026c40: 74 2e 68 65 61 64 65 72 73 2c 62 6f 64 79 3a 45 t.headers,body:E 00026c50: 61 28 73 2c 74 2e 68 65 61 64 65 72 73 3f 74 2e a(s,t.headers?t. 00026c60: 68 65 61 64 65 72 73 5b 22 63 6f 6e 74 65 6e 74 headers["content 00026c70: 2d 74 79 70 65 22 5d 3a 6e 75 6c 6c 29 2c 72 65 -type"]:null),re 00026c80: 71 75 65 73 74 42 6f 64 79 3a 45 61 28 63 2e 62 questBody:Ea(c.b 00026c90: 6f 64 79 2c 6d 5b 22 63 6f 6e 74 65 6e 74 2d 74 ody,m["content-t 00026ca0: 79 70 65 22 5d 29 2c 72 65 71 75 65 73 74 4d 65 ype"]),requestMe 00026cb0: 74 68 6f 64 3a 63 2e 6d 65 74 68 6f 64 2c 75 72 thod:c.method,ur 00026cc0: 6c 3a 6c 7d 29 29 2c 6e 29 74 72 79 7b 63 6f 6e l:l})),n)try{con 00026cd0: 73 74 20 65 3d 79 69 65 6c 64 20 6e 28 73 2c 74 st e=yield n(s,t 00026ce0: 29 3b 72 65 74 75 72 6e 20 67 2e 63 61 6e 63 65 );return g.cance 00026cf0: 6c 28 29 2c 65 7d 63 61 74 63 68 28 6e 29 7b 69 l(),e}catch(n){i 00026d00: 66 28 6e 2e 74 68 72 6f 74 74 6c 65 52 65 74 72 f(n.throttleRetr 00026d10: 79 26 26 65 3c 72 29 7b 6c 65 74 20 74 3d 21 30 y&&e<r){let t=!0 00026d20: 3b 69 66 28 6f 26 26 28 74 3d 79 69 65 6c 64 20 ;if(o&&(t=yield 00026d30: 6f 28 65 2c 6c 29 29 2c 74 29 7b 63 6f 6e 73 74 o(e,l)),t){const 00026d40: 20 74 3d 69 2a 70 61 72 73 65 49 6e 74 28 53 74 t=i*parseInt(St 00026d50: 72 69 6e 67 28 4d 61 74 68 2e 72 61 6e 64 6f 6d ring(Math.random 00026d60: 28 29 2a 4d 61 74 68 2e 70 6f 77 28 32 2c 65 29 ()*Math.pow(2,e) 00026d70: 29 29 3b 79 69 65 6c 64 20 53 61 28 74 29 3b 63 ));yield Sa(t);c 00026d80: 6f 6e 74 69 6e 75 65 7d 7d 67 2e 63 61 6e 63 65 ontinue}}g.cance 00026d90: 6c 28 29 2c 76 61 2e 74 68 72 6f 77 45 72 72 6f l(),va.throwErro 00026da0: 72 28 22 70 72 6f 63 65 73 73 69 6e 67 20 72 65 r("processing re 00026db0: 73 70 6f 6e 73 65 20 65 72 72 6f 72 22 2c 79 2e sponse error",y. 00026dc0: 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 errors.SERVER_ER 00026dd0: 52 4f 52 2c 7b 62 6f 64 79 3a 45 61 28 73 2c 74 ROR,{body:Ea(s,t 00026de0: 2e 68 65 61 64 65 72 73 3f 74 2e 68 65 61 64 65 .headers?t.heade 00026df0: 72 73 5b 22 63 6f 6e 74 65 6e 74 2d 74 79 70 65 rs["content-type 00026e00: 22 5d 3a 6e 75 6c 6c 29 2c 65 72 72 6f 72 3a 6e "]:null),error:n 00026e10: 2c 72 65 71 75 65 73 74 42 6f 64 79 3a 45 61 28 ,requestBody:Ea( 00026e20: 63 2e 62 6f 64 79 2c 6d 5b 22 63 6f 6e 74 65 6e c.body,m["conten 00026e30: 74 2d 74 79 70 65 22 5d 29 2c 72 65 71 75 65 73 t-type"]),reques 00026e40: 74 4d 65 74 68 6f 64 3a 63 2e 6d 65 74 68 6f 64 tMethod:c.method 00026e50: 2c 75 72 6c 3a 6c 7d 29 7d 72 65 74 75 72 6e 20 ,url:l})}return 00026e60: 67 2e 63 61 6e 63 65 6c 28 29 2c 73 7d 72 65 74 g.cancel(),s}ret 00026e70: 75 72 6e 20 76 61 2e 74 68 72 6f 77 45 72 72 6f urn va.throwErro 00026e80: 72 28 22 66 61 69 6c 65 64 20 72 65 73 70 6f 6e r("failed respon 00026e90: 73 65 22 2c 79 2e 65 72 72 6f 72 73 2e 53 45 52 se",y.errors.SER 00026ea0: 56 45 52 5f 45 52 52 4f 52 2c 7b 72 65 71 75 65 VER_ERROR,{reque 00026eb0: 73 74 42 6f 64 79 3a 45 61 28 63 2e 62 6f 64 79 stBody:Ea(c.body 00026ec0: 2c 6d 5b 22 63 6f 6e 74 65 6e 74 2d 74 79 70 65 ,m["content-type 00026ed0: 22 5d 29 2c 72 65 71 75 65 73 74 4d 65 74 68 6f "]),requestMetho 00026ee0: 64 3a 63 2e 6d 65 74 68 6f 64 2c 75 72 6c 3a 6c d:c.method,url:l 00026ef0: 7d 29 7d 29 29 7d 28 29 3b 72 65 74 75 72 6e 20 })}))}();return 00026f00: 50 72 6f 6d 69 73 65 2e 72 61 63 65 28 5b 67 2e Promise.race([g. 00026f10: 70 72 6f 6d 69 73 65 2c 62 5d 29 7d 66 75 6e 63 promise,b])}func 00026f20: 74 69 6f 6e 20 77 61 28 65 2c 74 2c 6e 29 7b 6c tion wa(e,t,n){l 00026f30: 65 74 20 72 3d 6e 75 6c 6c 3b 69 66 28 6e 75 6c et r=null;if(nul 00026f40: 6c 21 3d 74 29 7b 72 3d 71 65 28 74 29 3b 63 6f l!=t){r=qe(t);co 00026f50: 6e 73 74 20 6e 3d 22 73 74 72 69 6e 67 22 3d 3d nst n="string"== 00026f60: 74 79 70 65 6f 66 20 65 3f 7b 75 72 6c 3a 65 7d typeof e?{url:e} 00026f70: 3a 69 65 28 65 29 3b 69 66 28 6e 2e 68 65 61 64 :ie(e);if(n.head 00026f80: 65 72 73 29 7b 30 21 3d 3d 4f 62 6a 65 63 74 2e ers){0!==Object. 00026f90: 6b 65 79 73 28 6e 2e 68 65 61 64 65 72 73 29 2e keys(n.headers). 00026fa0: 66 69 6c 74 65 72 28 28 65 3d 3e 22 63 6f 6e 74 filter((e=>"cont 00026fb0: 65 6e 74 2d 74 79 70 65 22 3d 3d 3d 65 2e 74 6f ent-type"===e.to 00026fc0: 4c 6f 77 65 72 43 61 73 65 28 29 29 29 2e 6c 65 LowerCase())).le 00026fd0: 6e 67 74 68 7c 7c 28 6e 2e 68 65 61 64 65 72 73 ngth||(n.headers 00026fe0: 3d 69 65 28 6e 2e 68 65 61 64 65 72 73 29 2c 6e =ie(n.headers),n 00026ff0: 2e 68 65 61 64 65 72 73 5b 22 63 6f 6e 74 65 6e .headers["conten 00027000: 74 2d 74 79 70 65 22 5d 3d 22 61 70 70 6c 69 63 t-type"]="applic 00027010: 61 74 69 6f 6e 2f 6a 73 6f 6e 22 29 7d 65 6c 73 ation/json")}els 00027020: 65 20 6e 2e 68 65 61 64 65 72 73 3d 7b 22 63 6f e n.headers={"co 00027030: 6e 74 65 6e 74 2d 74 79 70 65 22 3a 22 61 70 70 ntent-type":"app 00027040: 6c 69 63 61 74 69 6f 6e 2f 6a 73 6f 6e 22 7d 3b lication/json"}; 00027050: 65 3d 6e 7d 72 65 74 75 72 6e 20 5f 61 28 65 2c e=n}return _a(e, 00027060: 72 2c 28 28 65 2c 74 29 3d 3e 7b 6c 65 74 20 72 r,((e,t)=>{let r 00027070: 3d 6e 75 6c 6c 3b 69 66 28 6e 75 6c 6c 21 3d 65 =null;if(null!=e 00027080: 29 74 72 79 7b 72 3d 4a 53 4f 4e 2e 70 61 72 73 )try{r=JSON.pars 00027090: 65 28 58 65 28 65 29 29 7d 63 61 74 63 68 28 74 e(Xe(e))}catch(t 000270a0: 29 7b 76 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 ){va.throwError( 000270b0: 22 69 6e 76 61 6c 69 64 20 4a 53 4f 4e 22 2c 79 "invalid JSON",y 000270c0: 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 .errors.SERVER_E 000270d0: 52 52 4f 52 2c 7b 62 6f 64 79 3a 65 2c 65 72 72 RROR,{body:e,err 000270e0: 6f 72 3a 74 7d 29 7d 72 65 74 75 72 6e 20 6e 26 or:t})}return n& 000270f0: 26 28 72 3d 6e 28 72 2c 74 29 29 2c 72 7d 29 29 &(r=n(r,t)),r})) 00027100: 7d 66 75 6e 63 74 69 6f 6e 20 78 61 28 65 2c 74 }function xa(e,t 00027110: 29 7b 72 65 74 75 72 6e 20 74 7c 7c 28 74 3d 7b ){return t||(t={ 00027120: 7d 29 2c 6e 75 6c 6c 3d 3d 28 74 3d 69 65 28 74 }),null==(t=ie(t 00027130: 29 29 2e 66 6c 6f 6f 72 26 26 28 74 2e 66 6c 6f )).floor&&(t.flo 00027140: 6f 72 3d 30 29 2c 6e 75 6c 6c 3d 3d 74 2e 63 65 or=0),null==t.ce 00027150: 69 6c 69 6e 67 26 26 28 74 2e 63 65 69 6c 69 6e iling&&(t.ceilin 00027160: 67 3d 31 65 34 29 2c 6e 75 6c 6c 3d 3d 74 2e 69 g=1e4),null==t.i 00027170: 6e 74 65 72 76 61 6c 26 26 28 74 2e 69 6e 74 65 nterval&&(t.inte 00027180: 72 76 61 6c 3d 32 35 30 29 2c 6e 65 77 20 50 72 rval=250),new Pr 00027190: 6f 6d 69 73 65 28 28 66 75 6e 63 74 69 6f 6e 28 omise((function( 000271a0: 6e 2c 72 29 7b 6c 65 74 20 6f 3d 6e 75 6c 6c 2c n,r){let o=null, 000271b0: 69 3d 21 31 3b 63 6f 6e 73 74 20 61 3d 28 29 3d i=!1;const a=()= 000271c0: 3e 21 69 26 26 28 69 3d 21 30 2c 6f 26 26 63 6c >!i&&(i=!0,o&&cl 000271d0: 65 61 72 54 69 6d 65 6f 75 74 28 6f 29 2c 21 30 earTimeout(o),!0 000271e0: 29 3b 74 2e 74 69 6d 65 6f 75 74 26 26 28 6f 3d );t.timeout&&(o= 000271f0: 73 65 74 54 69 6d 65 6f 75 74 28 28 28 29 3d 3e setTimeout((()=> 00027200: 7b 61 28 29 26 26 72 28 6e 65 77 20 45 72 72 6f {a()&&r(new Erro 00027210: 72 28 22 74 69 6d 65 6f 75 74 22 29 29 7d 29 2c r("timeout"))}), 00027220: 74 2e 74 69 6d 65 6f 75 74 29 29 3b 63 6f 6e 73 t.timeout));cons 00027230: 74 20 73 3d 74 2e 72 65 74 72 79 4c 69 6d 69 74 t s=t.retryLimit 00027240: 3b 6c 65 74 20 6c 3d 30 3b 21 66 75 6e 63 74 69 ;let l=0;!functi 00027250: 6f 6e 20 6f 28 29 7b 72 65 74 75 72 6e 20 65 28 on o(){return e( 00027260: 29 2e 74 68 65 6e 28 28 66 75 6e 63 74 69 6f 6e ).then((function 00027270: 28 65 29 7b 69 66 28 76 6f 69 64 20 30 21 3d 3d (e){if(void 0!== 00027280: 65 29 61 28 29 26 26 6e 28 65 29 3b 65 6c 73 65 e)a()&&n(e);else 00027290: 20 69 66 28 74 2e 6f 6e 63 65 50 6f 6c 6c 29 74 if(t.oncePoll)t 000272a0: 2e 6f 6e 63 65 50 6f 6c 6c 2e 6f 6e 63 65 28 22 .oncePoll.once(" 000272b0: 70 6f 6c 6c 22 2c 6f 29 3b 65 6c 73 65 20 69 66 poll",o);else if 000272c0: 28 74 2e 6f 6e 63 65 42 6c 6f 63 6b 29 74 2e 6f (t.onceBlock)t.o 000272d0: 6e 63 65 42 6c 6f 63 6b 2e 6f 6e 63 65 28 22 62 nceBlock.once("b 000272e0: 6c 6f 63 6b 22 2c 6f 29 3b 65 6c 73 65 20 69 66 lock",o);else if 000272f0: 28 21 69 29 7b 69 66 28 6c 2b 2b 2c 6c 3e 73 29 (!i){if(l++,l>s) 00027300: 72 65 74 75 72 6e 20 76 6f 69 64 28 61 28 29 26 return void(a()& 00027310: 26 72 28 6e 65 77 20 45 72 72 6f 72 28 22 72 65 &r(new Error("re 00027320: 74 72 79 20 6c 69 6d 69 74 20 72 65 61 63 68 65 try limit reache 00027330: 64 22 29 29 29 3b 6c 65 74 20 65 3d 74 2e 69 6e d")));let e=t.in 00027340: 74 65 72 76 61 6c 2a 70 61 72 73 65 49 6e 74 28 terval*parseInt( 00027350: 53 74 72 69 6e 67 28 4d 61 74 68 2e 72 61 6e 64 String(Math.rand 00027360: 6f 6d 28 29 2a 4d 61 74 68 2e 70 6f 77 28 32 2c om()*Math.pow(2, 00027370: 6c 29 29 29 3b 65 3c 74 2e 66 6c 6f 6f 72 26 26 l)));e<t.floor&& 00027380: 28 65 3d 74 2e 66 6c 6f 6f 72 29 2c 65 3e 74 2e (e=t.floor),e>t. 00027390: 63 65 69 6c 69 6e 67 26 26 28 65 3d 74 2e 63 65 ceiling&&(e=t.ce 000273a0: 69 6c 69 6e 67 29 2c 73 65 74 54 69 6d 65 6f 75 iling),setTimeou 000273b0: 74 28 6f 2c 65 29 7d 72 65 74 75 72 6e 20 6e 75 t(o,e)}return nu 000273c0: 6c 6c 7d 29 2c 28 66 75 6e 63 74 69 6f 6e 28 65 ll}),(function(e 000273d0: 29 7b 61 28 29 26 26 72 28 65 29 7d 29 29 7d 28 ){a()&&r(e)}))}( 000273e0: 29 7d 29 29 7d 76 61 72 20 54 61 3d 6e 28 39 32 )}))}var Ta=n(92 000273f0: 38 38 32 29 2c 43 61 3d 6e 2e 6e 28 54 61 29 3b 882),Ca=n.n(Ta); 00027400: 63 6f 6e 73 74 20 41 61 3d 22 70 72 6f 76 69 64 const Aa="provid 00027410: 65 72 73 2f 35 2e 37 2e 32 22 2c 6b 61 3d 6e 65 ers/5.7.2",ka=ne 00027420: 77 20 79 28 41 61 29 3b 63 6c 61 73 73 20 49 61 w y(Aa);class Ia 00027430: 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 29 7b 74 {constructor(){t 00027440: 68 69 73 2e 66 6f 72 6d 61 74 73 3d 74 68 69 73 his.formats=this 00027450: 2e 67 65 74 44 65 66 61 75 6c 74 46 6f 72 6d 61 .getDefaultForma 00027460: 74 73 28 29 7d 67 65 74 44 65 66 61 75 6c 74 46 ts()}getDefaultF 00027470: 6f 72 6d 61 74 73 28 29 7b 63 6f 6e 73 74 20 65 ormats(){const e 00027480: 3d 7b 7d 2c 74 3d 74 68 69 73 2e 61 64 64 72 65 ={},t=this.addre 00027490: 73 73 2e 62 69 6e 64 28 74 68 69 73 29 2c 6e 3d ss.bind(this),n= 000274a0: 74 68 69 73 2e 62 69 67 4e 75 6d 62 65 72 2e 62 this.bigNumber.b 000274b0: 69 6e 64 28 74 68 69 73 29 2c 72 3d 74 68 69 73 ind(this),r=this 000274c0: 2e 62 6c 6f 63 6b 54 61 67 2e 62 69 6e 64 28 74 .blockTag.bind(t 000274d0: 68 69 73 29 2c 6f 3d 74 68 69 73 2e 64 61 74 61 his),o=this.data 000274e0: 2e 62 69 6e 64 28 74 68 69 73 29 2c 69 3d 74 68 .bind(this),i=th 000274f0: 69 73 2e 68 61 73 68 2e 62 69 6e 64 28 74 68 69 is.hash.bind(thi 00027500: 73 29 2c 61 3d 74 68 69 73 2e 68 65 78 2e 62 69 s),a=this.hex.bi 00027510: 6e 64 28 74 68 69 73 29 2c 73 3d 74 68 69 73 2e nd(this),s=this. 00027520: 6e 75 6d 62 65 72 2e 62 69 6e 64 28 74 68 69 73 number.bind(this 00027530: 29 2c 6c 3d 74 68 69 73 2e 74 79 70 65 2e 62 69 ),l=this.type.bi 00027540: 6e 64 28 74 68 69 73 29 3b 72 65 74 75 72 6e 20 nd(this);return 00027550: 65 2e 74 72 61 6e 73 61 63 74 69 6f 6e 3d 7b 68 e.transaction={h 00027560: 61 73 68 3a 69 2c 74 79 70 65 3a 6c 2c 61 63 63 ash:i,type:l,acc 00027570: 65 73 73 4c 69 73 74 3a 49 61 2e 61 6c 6c 6f 77 essList:Ia.allow 00027580: 4e 75 6c 6c 28 74 68 69 73 2e 61 63 63 65 73 73 Null(this.access 00027590: 4c 69 73 74 2e 62 69 6e 64 28 74 68 69 73 29 2c List.bind(this), 000275a0: 6e 75 6c 6c 29 2c 62 6c 6f 63 6b 48 61 73 68 3a null),blockHash: 000275b0: 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 69 2c 6e Ia.allowNull(i,n 000275c0: 75 6c 6c 29 2c 62 6c 6f 63 6b 4e 75 6d 62 65 72 ull),blockNumber 000275d0: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 73 2c :Ia.allowNull(s, 000275e0: 6e 75 6c 6c 29 2c 74 72 61 6e 73 61 63 74 69 6f null),transactio 000275f0: 6e 49 6e 64 65 78 3a 49 61 2e 61 6c 6c 6f 77 4e nIndex:Ia.allowN 00027600: 75 6c 6c 28 73 2c 6e 75 6c 6c 29 2c 63 6f 6e 66 ull(s,null),conf 00027610: 69 72 6d 61 74 69 6f 6e 73 3a 49 61 2e 61 6c 6c irmations:Ia.all 00027620: 6f 77 4e 75 6c 6c 28 73 2c 6e 75 6c 6c 29 2c 66 owNull(s,null),f 00027630: 72 6f 6d 3a 74 2c 67 61 73 50 72 69 63 65 3a 49 rom:t,gasPrice:I 00027640: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6e 29 2c 6d a.allowNull(n),m 00027650: 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 axPriorityFeePer 00027660: 47 61 73 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c Gas:Ia.allowNull 00027670: 28 6e 29 2c 6d 61 78 46 65 65 50 65 72 47 61 73 (n),maxFeePerGas 00027680: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6e 29 :Ia.allowNull(n) 00027690: 2c 67 61 73 4c 69 6d 69 74 3a 6e 2c 74 6f 3a 49 ,gasLimit:n,to:I 000276a0: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 2c 6e 75 a.allowNull(t,nu 000276b0: 6c 6c 29 2c 76 61 6c 75 65 3a 6e 2c 6e 6f 6e 63 ll),value:n,nonc 000276c0: 65 3a 73 2c 64 61 74 61 3a 6f 2c 72 3a 49 61 2e e:s,data:o,r:Ia. 000276d0: 61 6c 6c 6f 77 4e 75 6c 6c 28 74 68 69 73 2e 75 allowNull(this.u 000276e0: 69 6e 74 32 35 36 29 2c 73 3a 49 61 2e 61 6c 6c int256),s:Ia.all 000276f0: 6f 77 4e 75 6c 6c 28 74 68 69 73 2e 75 69 6e 74 owNull(this.uint 00027700: 32 35 36 29 2c 76 3a 49 61 2e 61 6c 6c 6f 77 4e 256),v:Ia.allowN 00027710: 75 6c 6c 28 73 29 2c 63 72 65 61 74 65 73 3a 49 ull(s),creates:I 00027720: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 2c 6e 75 a.allowNull(t,nu 00027730: 6c 6c 29 2c 72 61 77 3a 49 61 2e 61 6c 6c 6f 77 ll),raw:Ia.allow 00027740: 4e 75 6c 6c 28 6f 29 7d 2c 65 2e 74 72 61 6e 73 Null(o)},e.trans 00027750: 61 63 74 69 6f 6e 52 65 71 75 65 73 74 3d 7b 66 actionRequest={f 00027760: 72 6f 6d 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c rom:Ia.allowNull 00027770: 28 74 29 2c 6e 6f 6e 63 65 3a 49 61 2e 61 6c 6c (t),nonce:Ia.all 00027780: 6f 77 4e 75 6c 6c 28 73 29 2c 67 61 73 4c 69 6d owNull(s),gasLim 00027790: 69 74 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 it:Ia.allowNull( 000277a0: 6e 29 2c 67 61 73 50 72 69 63 65 3a 49 61 2e 61 n),gasPrice:Ia.a 000277b0: 6c 6c 6f 77 4e 75 6c 6c 28 6e 29 2c 6d 61 78 50 llowNull(n),maxP 000277c0: 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 riorityFeePerGas 000277d0: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6e 29 :Ia.allowNull(n) 000277e0: 2c 6d 61 78 46 65 65 50 65 72 47 61 73 3a 49 61 ,maxFeePerGas:Ia 000277f0: 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6e 29 2c 74 6f .allowNull(n),to 00027800: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 29 :Ia.allowNull(t) 00027810: 2c 76 61 6c 75 65 3a 49 61 2e 61 6c 6c 6f 77 4e ,value:Ia.allowN 00027820: 75 6c 6c 28 6e 29 2c 64 61 74 61 3a 49 61 2e 61 ull(n),data:Ia.a 00027830: 6c 6c 6f 77 4e 75 6c 6c 28 28 65 3d 3e 74 68 69 llowNull((e=>thi 00027840: 73 2e 64 61 74 61 28 65 2c 21 30 29 29 29 2c 74 s.data(e,!0))),t 00027850: 79 70 65 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c ype:Ia.allowNull 00027860: 28 73 29 2c 61 63 63 65 73 73 4c 69 73 74 3a 49 (s),accessList:I 00027870: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 68 69 73 a.allowNull(this 00027880: 2e 61 63 63 65 73 73 4c 69 73 74 2e 62 69 6e 64 .accessList.bind 00027890: 28 74 68 69 73 29 2c 6e 75 6c 6c 29 7d 2c 65 2e (this),null)},e. 000278a0: 72 65 63 65 69 70 74 4c 6f 67 3d 7b 74 72 61 6e receiptLog={tran 000278b0: 73 61 63 74 69 6f 6e 49 6e 64 65 78 3a 73 2c 62 sactionIndex:s,b 000278c0: 6c 6f 63 6b 4e 75 6d 62 65 72 3a 73 2c 74 72 61 lockNumber:s,tra 000278d0: 6e 73 61 63 74 69 6f 6e 48 61 73 68 3a 69 2c 61 nsactionHash:i,a 000278e0: 64 64 72 65 73 73 3a 74 2c 74 6f 70 69 63 73 3a ddress:t,topics: 000278f0: 49 61 2e 61 72 72 61 79 4f 66 28 69 29 2c 64 61 Ia.arrayOf(i),da 00027900: 74 61 3a 6f 2c 6c 6f 67 49 6e 64 65 78 3a 73 2c ta:o,logIndex:s, 00027910: 62 6c 6f 63 6b 48 61 73 68 3a 69 7d 2c 65 2e 72 blockHash:i},e.r 00027920: 65 63 65 69 70 74 3d 7b 74 6f 3a 49 61 2e 61 6c eceipt={to:Ia.al 00027930: 6c 6f 77 4e 75 6c 6c 28 74 68 69 73 2e 61 64 64 lowNull(this.add 00027940: 72 65 73 73 2c 6e 75 6c 6c 29 2c 66 72 6f 6d 3a ress,null),from: 00027950: 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 68 69 Ia.allowNull(thi 00027960: 73 2e 61 64 64 72 65 73 73 2c 6e 75 6c 6c 29 2c s.address,null), 00027970: 63 6f 6e 74 72 61 63 74 41 64 64 72 65 73 73 3a contractAddress: 00027980: 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 2c 6e Ia.allowNull(t,n 00027990: 75 6c 6c 29 2c 74 72 61 6e 73 61 63 74 69 6f 6e ull),transaction 000279a0: 49 6e 64 65 78 3a 73 2c 72 6f 6f 74 3a 49 61 2e Index:s,root:Ia. 000279b0: 61 6c 6c 6f 77 4e 75 6c 6c 28 61 29 2c 67 61 73 allowNull(a),gas 000279c0: 55 73 65 64 3a 6e 2c 6c 6f 67 73 42 6c 6f 6f 6d Used:n,logsBloom 000279d0: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6f 29 :Ia.allowNull(o) 000279e0: 2c 62 6c 6f 63 6b 48 61 73 68 3a 69 2c 74 72 61 ,blockHash:i,tra 000279f0: 6e 73 61 63 74 69 6f 6e 48 61 73 68 3a 69 2c 6c nsactionHash:i,l 00027a00: 6f 67 73 3a 49 61 2e 61 72 72 61 79 4f 66 28 74 ogs:Ia.arrayOf(t 00027a10: 68 69 73 2e 72 65 63 65 69 70 74 4c 6f 67 2e 62 his.receiptLog.b 00027a20: 69 6e 64 28 74 68 69 73 29 29 2c 62 6c 6f 63 6b ind(this)),block 00027a30: 4e 75 6d 62 65 72 3a 73 2c 63 6f 6e 66 69 72 6d Number:s,confirm 00027a40: 61 74 69 6f 6e 73 3a 49 61 2e 61 6c 6c 6f 77 4e ations:Ia.allowN 00027a50: 75 6c 6c 28 73 2c 6e 75 6c 6c 29 2c 63 75 6d 75 ull(s,null),cumu 00027a60: 6c 61 74 69 76 65 47 61 73 55 73 65 64 3a 6e 2c lativeGasUsed:n, 00027a70: 65 66 66 65 63 74 69 76 65 47 61 73 50 72 69 63 effectiveGasPric 00027a80: 65 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 6e e:Ia.allowNull(n 00027a90: 29 2c 73 74 61 74 75 73 3a 49 61 2e 61 6c 6c 6f ),status:Ia.allo 00027aa0: 77 4e 75 6c 6c 28 73 29 2c 74 79 70 65 3a 6c 7d wNull(s),type:l} 00027ab0: 2c 65 2e 62 6c 6f 63 6b 3d 7b 68 61 73 68 3a 49 ,e.block={hash:I 00027ac0: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 69 29 2c 70 a.allowNull(i),p 00027ad0: 61 72 65 6e 74 48 61 73 68 3a 69 2c 6e 75 6d 62 arentHash:i,numb 00027ae0: 65 72 3a 73 2c 74 69 6d 65 73 74 61 6d 70 3a 73 er:s,timestamp:s 00027af0: 2c 6e 6f 6e 63 65 3a 49 61 2e 61 6c 6c 6f 77 4e ,nonce:Ia.allowN 00027b00: 75 6c 6c 28 61 29 2c 64 69 66 66 69 63 75 6c 74 ull(a),difficult 00027b10: 79 3a 74 68 69 73 2e 64 69 66 66 69 63 75 6c 74 y:this.difficult 00027b20: 79 2e 62 69 6e 64 28 74 68 69 73 29 2c 67 61 73 y.bind(this),gas 00027b30: 4c 69 6d 69 74 3a 6e 2c 67 61 73 55 73 65 64 3a Limit:n,gasUsed: 00027b40: 6e 2c 6d 69 6e 65 72 3a 49 61 2e 61 6c 6c 6f 77 n,miner:Ia.allow 00027b50: 4e 75 6c 6c 28 74 29 2c 65 78 74 72 61 44 61 74 Null(t),extraDat 00027b60: 61 3a 6f 2c 74 72 61 6e 73 61 63 74 69 6f 6e 73 a:o,transactions 00027b70: 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 49 61 :Ia.allowNull(Ia 00027b80: 2e 61 72 72 61 79 4f 66 28 69 29 29 2c 62 61 73 .arrayOf(i)),bas 00027b90: 65 46 65 65 50 65 72 47 61 73 3a 49 61 2e 61 6c eFeePerGas:Ia.al 00027ba0: 6c 6f 77 4e 75 6c 6c 28 6e 29 7d 2c 65 2e 62 6c lowNull(n)},e.bl 00027bb0: 6f 63 6b 57 69 74 68 54 72 61 6e 73 61 63 74 69 ockWithTransacti 00027bc0: 6f 6e 73 3d 69 65 28 65 2e 62 6c 6f 63 6b 29 2c ons=ie(e.block), 00027bd0: 65 2e 62 6c 6f 63 6b 57 69 74 68 54 72 61 6e 73 e.blockWithTrans 00027be0: 61 63 74 69 6f 6e 73 2e 74 72 61 6e 73 61 63 74 actions.transact 00027bf0: 69 6f 6e 73 3d 49 61 2e 61 6c 6c 6f 77 4e 75 6c ions=Ia.allowNul 00027c00: 6c 28 49 61 2e 61 72 72 61 79 4f 66 28 74 68 69 l(Ia.arrayOf(thi 00027c10: 73 2e 74 72 61 6e 73 61 63 74 69 6f 6e 52 65 73 s.transactionRes 00027c20: 70 6f 6e 73 65 2e 62 69 6e 64 28 74 68 69 73 29 ponse.bind(this) 00027c30: 29 29 2c 65 2e 66 69 6c 74 65 72 3d 7b 66 72 6f )),e.filter={fro 00027c40: 6d 42 6c 6f 63 6b 3a 49 61 2e 61 6c 6c 6f 77 4e mBlock:Ia.allowN 00027c50: 75 6c 6c 28 72 2c 76 6f 69 64 20 30 29 2c 74 6f ull(r,void 0),to 00027c60: 42 6c 6f 63 6b 3a 49 61 2e 61 6c 6c 6f 77 4e 75 Block:Ia.allowNu 00027c70: 6c 6c 28 72 2c 76 6f 69 64 20 30 29 2c 62 6c 6f ll(r,void 0),blo 00027c80: 63 6b 48 61 73 68 3a 49 61 2e 61 6c 6c 6f 77 4e ckHash:Ia.allowN 00027c90: 75 6c 6c 28 69 2c 76 6f 69 64 20 30 29 2c 61 64 ull(i,void 0),ad 00027ca0: 64 72 65 73 73 3a 49 61 2e 61 6c 6c 6f 77 4e 75 dress:Ia.allowNu 00027cb0: 6c 6c 28 74 2c 76 6f 69 64 20 30 29 2c 74 6f 70 ll(t,void 0),top 00027cc0: 69 63 73 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c ics:Ia.allowNull 00027cd0: 28 74 68 69 73 2e 74 6f 70 69 63 73 2e 62 69 6e (this.topics.bin 00027ce0: 64 28 74 68 69 73 29 2c 76 6f 69 64 20 30 29 7d d(this),void 0)} 00027cf0: 2c 65 2e 66 69 6c 74 65 72 4c 6f 67 3d 7b 62 6c ,e.filterLog={bl 00027d00: 6f 63 6b 4e 75 6d 62 65 72 3a 49 61 2e 61 6c 6c ockNumber:Ia.all 00027d10: 6f 77 4e 75 6c 6c 28 73 29 2c 62 6c 6f 63 6b 48 owNull(s),blockH 00027d20: 61 73 68 3a 49 61 2e 61 6c 6c 6f 77 4e 75 6c 6c ash:Ia.allowNull 00027d30: 28 69 29 2c 74 72 61 6e 73 61 63 74 69 6f 6e 49 (i),transactionI 00027d40: 6e 64 65 78 3a 73 2c 72 65 6d 6f 76 65 64 3a 49 ndex:s,removed:I 00027d50: 61 2e 61 6c 6c 6f 77 4e 75 6c 6c 28 74 68 69 73 a.allowNull(this 00027d60: 2e 62 6f 6f 6c 65 61 6e 2e 62 69 6e 64 28 74 68 .boolean.bind(th 00027d70: 69 73 29 29 2c 61 64 64 72 65 73 73 3a 74 2c 64 is)),address:t,d 00027d80: 61 74 61 3a 49 61 2e 61 6c 6c 6f 77 46 61 6c 73 ata:Ia.allowFals 00027d90: 69 73 68 28 6f 2c 22 30 78 22 29 2c 74 6f 70 69 ish(o,"0x"),topi 00027da0: 63 73 3a 49 61 2e 61 72 72 61 79 4f 66 28 69 29 cs:Ia.arrayOf(i) 00027db0: 2c 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 68 ,transactionHash 00027dc0: 3a 69 2c 6c 6f 67 49 6e 64 65 78 3a 73 7d 2c 65 :i,logIndex:s},e 00027dd0: 7d 61 63 63 65 73 73 4c 69 73 74 28 65 29 7b 72 }accessList(e){r 00027de0: 65 74 75 72 6e 20 66 72 28 65 7c 7c 5b 5d 29 7d eturn fr(e||[])} 00027df0: 6e 75 6d 62 65 72 28 65 29 7b 72 65 74 75 72 6e number(e){return 00027e00: 22 30 78 22 3d 3d 3d 65 3f 30 3a 59 2e 66 72 6f "0x"===e?0:Y.fro 00027e10: 6d 28 65 29 2e 74 6f 4e 75 6d 62 65 72 28 29 7d m(e).toNumber()} 00027e20: 74 79 70 65 28 65 29 7b 72 65 74 75 72 6e 22 30 type(e){return"0 00027e30: 78 22 3d 3d 3d 65 7c 7c 6e 75 6c 6c 3d 3d 65 3f x"===e||null==e? 00027e40: 30 3a 59 2e 66 72 6f 6d 28 65 29 2e 74 6f 4e 75 0:Y.from(e).toNu 00027e50: 6d 62 65 72 28 29 7d 62 69 67 4e 75 6d 62 65 72 mber()}bigNumber 00027e60: 28 65 29 7b 72 65 74 75 72 6e 20 59 2e 66 72 6f (e){return Y.fro 00027e70: 6d 28 65 29 7d 62 6f 6f 6c 65 61 6e 28 65 29 7b m(e)}boolean(e){ 00027e80: 69 66 28 22 62 6f 6f 6c 65 61 6e 22 3d 3d 74 79 if("boolean"==ty 00027e90: 70 65 6f 66 20 65 29 72 65 74 75 72 6e 20 65 3b peof e)return e; 00027ea0: 69 66 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 if("string"==typ 00027eb0: 65 6f 66 20 65 29 7b 69 66 28 22 74 72 75 65 22 eof e){if("true" 00027ec0: 3d 3d 3d 28 65 3d 65 2e 74 6f 4c 6f 77 65 72 43 ===(e=e.toLowerC 00027ed0: 61 73 65 28 29 29 29 72 65 74 75 72 6e 21 30 3b ase()))return!0; 00027ee0: 69 66 28 22 66 61 6c 73 65 22 3d 3d 3d 65 29 72 if("false"===e)r 00027ef0: 65 74 75 72 6e 21 31 7d 74 68 72 6f 77 20 6e 65 eturn!1}throw ne 00027f00: 77 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 w Error("invalid 00027f10: 20 62 6f 6f 6c 65 61 6e 20 2d 20 22 2b 65 29 7d boolean - "+e)} 00027f20: 68 65 78 28 65 2c 74 29 7b 72 65 74 75 72 6e 22 hex(e,t){return" 00027f30: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 00027f40: 65 26 26 28 74 7c 7c 22 30 78 22 3d 3d 3d 65 2e e&&(t||"0x"===e. 00027f50: 73 75 62 73 74 72 69 6e 67 28 30 2c 32 29 7c 7c substring(0,2)|| 00027f60: 28 65 3d 22 30 78 22 2b 65 29 2c 49 28 65 29 29 (e="0x"+e),I(e)) 00027f70: 3f 65 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 ?e.toLowerCase() 00027f80: 3a 6b 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e :ka.throwArgumen 00027f90: 74 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 tError("invalid 00027fa0: 68 61 73 68 22 2c 22 76 61 6c 75 65 22 2c 65 29 hash","value",e) 00027fb0: 7d 64 61 74 61 28 65 2c 74 29 7b 63 6f 6e 73 74 }data(e,t){const 00027fc0: 20 6e 3d 74 68 69 73 2e 68 65 78 28 65 2c 74 29 n=this.hex(e,t) 00027fd0: 3b 69 66 28 6e 2e 6c 65 6e 67 74 68 25 32 21 3d ;if(n.length%2!= 00027fe0: 30 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 0)throw new Erro 00027ff0: 72 28 22 69 6e 76 61 6c 69 64 20 64 61 74 61 3b r("invalid data; 00028000: 20 6f 64 64 2d 6c 65 6e 67 74 68 20 2d 20 22 2b odd-length - "+ 00028010: 65 29 3b 72 65 74 75 72 6e 20 6e 7d 61 64 64 72 e);return n}addr 00028020: 65 73 73 28 65 29 7b 72 65 74 75 72 6e 20 4d 65 ess(e){return Me 00028030: 28 65 29 7d 63 61 6c 6c 41 64 64 72 65 73 73 28 (e)}callAddress( 00028040: 65 29 7b 69 66 28 21 49 28 65 2c 33 32 29 29 72 e){if(!I(e,32))r 00028050: 65 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f 6e 73 74 eturn null;const 00028060: 20 74 3d 4d 65 28 50 28 65 2c 31 32 29 29 3b 72 t=Me(P(e,12));r 00028070: 65 74 75 72 6e 20 74 3d 3d 3d 49 69 3f 6e 75 6c eturn t===Ii?nul 00028080: 6c 3a 74 7d 63 6f 6e 74 72 61 63 74 41 64 64 72 l:t}contractAddr 00028090: 65 73 73 28 65 29 7b 72 65 74 75 72 6e 20 46 65 ess(e){return Fe 000280a0: 28 65 29 7d 62 6c 6f 63 6b 54 61 67 28 65 29 7b (e)}blockTag(e){ 000280b0: 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 74 75 72 if(null==e)retur 000280c0: 6e 22 6c 61 74 65 73 74 22 3b 69 66 28 22 65 61 n"latest";if("ea 000280d0: 72 6c 69 65 73 74 22 3d 3d 3d 65 29 72 65 74 75 rliest"===e)retu 000280e0: 72 6e 22 30 78 30 22 3b 73 77 69 74 63 68 28 65 rn"0x0";switch(e 000280f0: 29 7b 63 61 73 65 22 65 61 72 6c 69 65 73 74 22 ){case"earliest" 00028100: 3a 72 65 74 75 72 6e 22 30 78 30 22 3b 63 61 73 :return"0x0";cas 00028110: 65 22 6c 61 74 65 73 74 22 3a 63 61 73 65 22 70 e"latest":case"p 00028120: 65 6e 64 69 6e 67 22 3a 63 61 73 65 22 73 61 66 ending":case"saf 00028130: 65 22 3a 63 61 73 65 22 66 69 6e 61 6c 69 7a 65 e":case"finalize 00028140: 64 22 3a 72 65 74 75 72 6e 20 65 7d 69 66 28 22 d":return e}if(" 00028150: 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f 66 20 number"==typeof 00028160: 65 7c 7c 49 28 65 29 29 72 65 74 75 72 6e 20 44 e||I(e))return D 00028170: 28 65 29 3b 74 68 72 6f 77 20 6e 65 77 20 45 72 (e);throw new Er 00028180: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 62 6c 6f ror("invalid blo 00028190: 63 6b 54 61 67 22 29 7d 68 61 73 68 28 65 2c 74 ckTag")}hash(e,t 000281a0: 29 7b 63 6f 6e 73 74 20 6e 3d 74 68 69 73 2e 68 ){const n=this.h 000281b0: 65 78 28 65 2c 74 29 3b 72 65 74 75 72 6e 20 33 ex(e,t);return 3 000281c0: 32 21 3d 3d 4e 28 6e 29 3f 6b 61 2e 74 68 72 6f 2!==N(n)?ka.thro 000281d0: 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 wArgumentError(" 000281e0: 69 6e 76 61 6c 69 64 20 68 61 73 68 22 2c 22 76 invalid hash","v 000281f0: 61 6c 75 65 22 2c 65 29 3a 6e 7d 64 69 66 66 69 alue",e):n}diffi 00028200: 63 75 6c 74 79 28 65 29 7b 69 66 28 6e 75 6c 6c culty(e){if(null 00028210: 3d 3d 65 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b ==e)return null; 00028220: 63 6f 6e 73 74 20 74 3d 59 2e 66 72 6f 6d 28 65 const t=Y.from(e 00028230: 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 74 2e 74 );try{return t.t 00028240: 6f 4e 75 6d 62 65 72 28 29 7d 63 61 74 63 68 28 oNumber()}catch( 00028250: 65 29 7b 7d 72 65 74 75 72 6e 20 6e 75 6c 6c 7d e){}return null} 00028260: 75 69 6e 74 32 35 36 28 65 29 7b 69 66 28 21 49 uint256(e){if(!I 00028270: 28 65 29 29 74 68 72 6f 77 20 6e 65 77 20 45 72 (e))throw new Er 00028280: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 75 69 6e ror("invalid uin 00028290: 74 32 35 36 22 29 3b 72 65 74 75 72 6e 20 46 28 t256");return F( 000282a0: 65 2c 33 32 29 7d 5f 62 6c 6f 63 6b 28 65 2c 74 e,32)}_block(e,t 000282b0: 29 7b 6e 75 6c 6c 21 3d 65 2e 61 75 74 68 6f 72 ){null!=e.author 000282c0: 26 26 6e 75 6c 6c 3d 3d 65 2e 6d 69 6e 65 72 26 &&null==e.miner& 000282d0: 26 28 65 2e 6d 69 6e 65 72 3d 65 2e 61 75 74 68 &(e.miner=e.auth 000282e0: 6f 72 29 3b 63 6f 6e 73 74 20 6e 3d 6e 75 6c 6c or);const n=null 000282f0: 21 3d 65 2e 5f 64 69 66 66 69 63 75 6c 74 79 3f !=e._difficulty? 00028300: 65 2e 5f 64 69 66 66 69 63 75 6c 74 79 3a 65 2e e._difficulty:e. 00028310: 64 69 66 66 69 63 75 6c 74 79 2c 72 3d 49 61 2e difficulty,r=Ia. 00028320: 63 68 65 63 6b 28 74 2c 65 29 3b 72 65 74 75 72 check(t,e);retur 00028330: 6e 20 72 2e 5f 64 69 66 66 69 63 75 6c 74 79 3d n r._difficulty= 00028340: 6e 75 6c 6c 3d 3d 6e 3f 6e 75 6c 6c 3a 59 2e 66 null==n?null:Y.f 00028350: 72 6f 6d 28 6e 29 2c 72 7d 62 6c 6f 63 6b 28 65 rom(n),r}block(e 00028360: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 62 ){return this._b 00028370: 6c 6f 63 6b 28 65 2c 74 68 69 73 2e 66 6f 72 6d lock(e,this.form 00028380: 61 74 73 2e 62 6c 6f 63 6b 29 7d 62 6c 6f 63 6b ats.block)}block 00028390: 57 69 74 68 54 72 61 6e 73 61 63 74 69 6f 6e 73 WithTransactions 000283a0: 28 65 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e (e){return this. 000283b0: 5f 62 6c 6f 63 6b 28 65 2c 74 68 69 73 2e 66 6f _block(e,this.fo 000283c0: 72 6d 61 74 73 2e 62 6c 6f 63 6b 57 69 74 68 54 rmats.blockWithT 000283d0: 72 61 6e 73 61 63 74 69 6f 6e 73 29 7d 74 72 61 ransactions)}tra 000283e0: 6e 73 61 63 74 69 6f 6e 52 65 71 75 65 73 74 28 nsactionRequest( 000283f0: 65 29 7b 72 65 74 75 72 6e 20 49 61 2e 63 68 65 e){return Ia.che 00028400: 63 6b 28 74 68 69 73 2e 66 6f 72 6d 61 74 73 2e ck(this.formats. 00028410: 74 72 61 6e 73 61 63 74 69 6f 6e 52 65 71 75 65 transactionReque 00028420: 73 74 2c 65 29 7d 74 72 61 6e 73 61 63 74 69 6f st,e)}transactio 00028430: 6e 52 65 73 70 6f 6e 73 65 28 65 29 7b 6e 75 6c nResponse(e){nul 00028440: 6c 21 3d 65 2e 67 61 73 26 26 6e 75 6c 6c 3d 3d l!=e.gas&&null== 00028450: 65 2e 67 61 73 4c 69 6d 69 74 26 26 28 65 2e 67 e.gasLimit&&(e.g 00028460: 61 73 4c 69 6d 69 74 3d 65 2e 67 61 73 29 2c 65 asLimit=e.gas),e 00028470: 2e 74 6f 26 26 59 2e 66 72 6f 6d 28 65 2e 74 6f .to&&Y.from(e.to 00028480: 29 2e 69 73 5a 65 72 6f 28 29 26 26 28 65 2e 74 ).isZero()&&(e.t 00028490: 6f 3d 22 30 78 30 30 30 30 30 30 30 30 30 30 30 o="0x00000000000 000284a0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 000284b0: 30 30 30 30 30 30 30 30 30 30 30 30 30 22 29 2c 0000000000000"), 000284c0: 6e 75 6c 6c 21 3d 65 2e 69 6e 70 75 74 26 26 6e null!=e.input&&n 000284d0: 75 6c 6c 3d 3d 65 2e 64 61 74 61 26 26 28 65 2e ull==e.data&&(e. 000284e0: 64 61 74 61 3d 65 2e 69 6e 70 75 74 29 2c 6e 75 data=e.input),nu 000284f0: 6c 6c 3d 3d 65 2e 74 6f 26 26 6e 75 6c 6c 3d 3d ll==e.to&&null== 00028500: 65 2e 63 72 65 61 74 65 73 26 26 28 65 2e 63 72 e.creates&&(e.cr 00028510: 65 61 74 65 73 3d 74 68 69 73 2e 63 6f 6e 74 72 eates=this.contr 00028520: 61 63 74 41 64 64 72 65 73 73 28 65 29 29 2c 31 actAddress(e)),1 00028530: 21 3d 3d 65 2e 74 79 70 65 26 26 32 21 3d 3d 65 !==e.type&&2!==e 00028540: 2e 74 79 70 65 7c 7c 6e 75 6c 6c 21 3d 65 2e 61 .type||null!=e.a 00028550: 63 63 65 73 73 4c 69 73 74 7c 7c 28 65 2e 61 63 ccessList||(e.ac 00028560: 63 65 73 73 4c 69 73 74 3d 5b 5d 29 3b 63 6f 6e cessList=[]);con 00028570: 73 74 20 74 3d 49 61 2e 63 68 65 63 6b 28 74 68 st t=Ia.check(th 00028580: 69 73 2e 66 6f 72 6d 61 74 73 2e 74 72 61 6e 73 is.formats.trans 00028590: 61 63 74 69 6f 6e 2c 65 29 3b 69 66 28 6e 75 6c action,e);if(nul 000285a0: 6c 21 3d 65 2e 63 68 61 69 6e 49 64 29 7b 6c 65 l!=e.chainId){le 000285b0: 74 20 6e 3d 65 2e 63 68 61 69 6e 49 64 3b 49 28 t n=e.chainId;I( 000285c0: 6e 29 26 26 28 6e 3d 59 2e 66 72 6f 6d 28 6e 29 n)&&(n=Y.from(n) 000285d0: 2e 74 6f 4e 75 6d 62 65 72 28 29 29 2c 74 2e 63 .toNumber()),t.c 000285e0: 68 61 69 6e 49 64 3d 6e 7d 65 6c 73 65 7b 6c 65 hainId=n}else{le 000285f0: 74 20 6e 3d 65 2e 6e 65 74 77 6f 72 6b 49 64 3b t n=e.networkId; 00028600: 6e 75 6c 6c 3d 3d 6e 26 26 6e 75 6c 6c 3d 3d 74 null==n&&null==t 00028610: 2e 76 26 26 28 6e 3d 65 2e 63 68 61 69 6e 49 64 .v&&(n=e.chainId 00028620: 29 2c 49 28 6e 29 26 26 28 6e 3d 59 2e 66 72 6f ),I(n)&&(n=Y.fro 00028630: 6d 28 6e 29 2e 74 6f 4e 75 6d 62 65 72 28 29 29 m(n).toNumber()) 00028640: 2c 22 6e 75 6d 62 65 72 22 21 3d 74 79 70 65 6f ,"number"!=typeo 00028650: 66 20 6e 26 26 6e 75 6c 6c 21 3d 74 2e 76 26 26 f n&&null!=t.v&& 00028660: 28 6e 3d 28 74 2e 76 2d 33 35 29 2f 32 2c 6e 3c (n=(t.v-35)/2,n< 00028670: 30 26 26 28 6e 3d 30 29 2c 6e 3d 70 61 72 73 65 0&&(n=0),n=parse 00028680: 49 6e 74 28 6e 29 29 2c 22 6e 75 6d 62 65 72 22 Int(n)),"number" 00028690: 21 3d 74 79 70 65 6f 66 20 6e 26 26 28 6e 3d 30 !=typeof n&&(n=0 000286a0: 29 2c 74 2e 63 68 61 69 6e 49 64 3d 6e 7d 72 65 ),t.chainId=n}re 000286b0: 74 75 72 6e 20 74 2e 62 6c 6f 63 6b 48 61 73 68 turn t.blockHash 000286c0: 26 26 22 78 22 3d 3d 3d 74 2e 62 6c 6f 63 6b 48 &&"x"===t.blockH 000286d0: 61 73 68 2e 72 65 70 6c 61 63 65 28 2f 30 2f 67 ash.replace(/0/g 000286e0: 2c 22 22 29 26 26 28 74 2e 62 6c 6f 63 6b 48 61 ,"")&&(t.blockHa 000286f0: 73 68 3d 6e 75 6c 6c 29 2c 74 7d 74 72 61 6e 73 sh=null),t}trans 00028700: 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e action(e){return 00028710: 20 76 72 28 65 29 7d 72 65 63 65 69 70 74 4c 6f vr(e)}receiptLo 00028720: 67 28 65 29 7b 72 65 74 75 72 6e 20 49 61 2e 63 g(e){return Ia.c 00028730: 68 65 63 6b 28 74 68 69 73 2e 66 6f 72 6d 61 74 heck(this.format 00028740: 73 2e 72 65 63 65 69 70 74 4c 6f 67 2c 65 29 7d s.receiptLog,e)} 00028750: 72 65 63 65 69 70 74 28 65 29 7b 63 6f 6e 73 74 receipt(e){const 00028760: 20 74 3d 49 61 2e 63 68 65 63 6b 28 74 68 69 73 t=Ia.check(this 00028770: 2e 66 6f 72 6d 61 74 73 2e 72 65 63 65 69 70 74 .formats.receipt 00028780: 2c 65 29 3b 69 66 28 6e 75 6c 6c 21 3d 74 2e 72 ,e);if(null!=t.r 00028790: 6f 6f 74 29 69 66 28 74 2e 72 6f 6f 74 2e 6c 65 oot)if(t.root.le 000287a0: 6e 67 74 68 3c 3d 34 29 7b 63 6f 6e 73 74 20 65 ngth<=4){const e 000287b0: 3d 59 2e 66 72 6f 6d 28 74 2e 72 6f 6f 74 29 2e =Y.from(t.root). 000287c0: 74 6f 4e 75 6d 62 65 72 28 29 3b 30 3d 3d 3d 65 toNumber();0===e 000287d0: 7c 7c 31 3d 3d 3d 65 3f 28 6e 75 6c 6c 21 3d 74 ||1===e?(null!=t 000287e0: 2e 73 74 61 74 75 73 26 26 74 2e 73 74 61 74 75 .status&&t.statu 000287f0: 73 21 3d 3d 65 26 26 6b 61 2e 74 68 72 6f 77 41 s!==e&&ka.throwA 00028800: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 61 6c rgumentError("al 00028810: 74 2d 72 6f 6f 74 2d 73 74 61 74 75 73 2f 73 74 t-root-status/st 00028820: 61 74 75 73 20 6d 69 73 6d 61 74 63 68 22 2c 22 atus mismatch"," 00028830: 76 61 6c 75 65 22 2c 7b 72 6f 6f 74 3a 74 2e 72 value",{root:t.r 00028840: 6f 6f 74 2c 73 74 61 74 75 73 3a 74 2e 73 74 61 oot,status:t.sta 00028850: 74 75 73 7d 29 2c 74 2e 73 74 61 74 75 73 3d 65 tus}),t.status=e 00028860: 2c 64 65 6c 65 74 65 20 74 2e 72 6f 6f 74 29 3a ,delete t.root): 00028870: 6b 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 ka.throwArgument 00028880: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 61 Error("invalid a 00028890: 6c 74 2d 72 6f 6f 74 2d 73 74 61 74 75 73 22 2c lt-root-status", 000288a0: 22 76 61 6c 75 65 2e 72 6f 6f 74 22 2c 74 2e 72 "value.root",t.r 000288b0: 6f 6f 74 29 7d 65 6c 73 65 20 36 36 21 3d 3d 74 oot)}else 66!==t 000288c0: 2e 72 6f 6f 74 2e 6c 65 6e 67 74 68 26 26 6b 61 .root.length&&ka 000288d0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 000288e0: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 72 6f 6f ror("invalid roo 000288f0: 74 20 68 61 73 68 22 2c 22 76 61 6c 75 65 2e 72 t hash","value.r 00028900: 6f 6f 74 22 2c 74 2e 72 6f 6f 74 29 3b 72 65 74 oot",t.root);ret 00028910: 75 72 6e 20 6e 75 6c 6c 21 3d 74 2e 73 74 61 74 urn null!=t.stat 00028920: 75 73 26 26 28 74 2e 62 79 7a 61 6e 74 69 75 6d us&&(t.byzantium 00028930: 3d 21 30 29 2c 74 7d 74 6f 70 69 63 73 28 65 29 =!0),t}topics(e) 00028940: 7b 72 65 74 75 72 6e 20 41 72 72 61 79 2e 69 73 {return Array.is 00028950: 41 72 72 61 79 28 65 29 3f 65 2e 6d 61 70 28 28 Array(e)?e.map(( 00028960: 65 3d 3e 74 68 69 73 2e 74 6f 70 69 63 73 28 65 e=>this.topics(e 00028970: 29 29 29 3a 6e 75 6c 6c 21 3d 65 3f 74 68 69 73 ))):null!=e?this 00028980: 2e 68 61 73 68 28 65 2c 21 30 29 3a 6e 75 6c 6c .hash(e,!0):null 00028990: 7d 66 69 6c 74 65 72 28 65 29 7b 72 65 74 75 72 }filter(e){retur 000289a0: 6e 20 49 61 2e 63 68 65 63 6b 28 74 68 69 73 2e n Ia.check(this. 000289b0: 66 6f 72 6d 61 74 73 2e 66 69 6c 74 65 72 2c 65 formats.filter,e 000289c0: 29 7d 66 69 6c 74 65 72 4c 6f 67 28 65 29 7b 72 )}filterLog(e){r 000289d0: 65 74 75 72 6e 20 49 61 2e 63 68 65 63 6b 28 74 eturn Ia.check(t 000289e0: 68 69 73 2e 66 6f 72 6d 61 74 73 2e 66 69 6c 74 his.formats.filt 000289f0: 65 72 4c 6f 67 2c 65 29 7d 73 74 61 74 69 63 20 erLog,e)}static 00028a00: 63 68 65 63 6b 28 65 2c 74 29 7b 63 6f 6e 73 74 check(e,t){const 00028a10: 20 6e 3d 7b 7d 3b 66 6f 72 28 63 6f 6e 73 74 20 n={};for(const 00028a20: 72 20 69 6e 20 65 29 74 72 79 7b 63 6f 6e 73 74 r in e)try{const 00028a30: 20 6f 3d 65 5b 72 5d 28 74 5b 72 5d 29 3b 76 6f o=e[r](t[r]);vo 00028a40: 69 64 20 30 21 3d 3d 6f 26 26 28 6e 5b 72 5d 3d id 0!==o&&(n[r]= 00028a50: 6f 29 7d 63 61 74 63 68 28 65 29 7b 74 68 72 6f o)}catch(e){thro 00028a60: 77 20 65 2e 63 68 65 63 6b 4b 65 79 3d 72 2c 65 w e.checkKey=r,e 00028a70: 2e 63 68 65 63 6b 56 61 6c 75 65 3d 74 5b 72 5d .checkValue=t[r] 00028a80: 2c 65 7d 72 65 74 75 72 6e 20 6e 7d 73 74 61 74 ,e}return n}stat 00028a90: 69 63 20 61 6c 6c 6f 77 4e 75 6c 6c 28 65 2c 74 ic allowNull(e,t 00028aa0: 29 7b 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f ){return functio 00028ab0: 6e 28 6e 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c n(n){return null 00028ac0: 3d 3d 6e 3f 74 3a 65 28 6e 29 7d 7d 73 74 61 74 ==n?t:e(n)}}stat 00028ad0: 69 63 20 61 6c 6c 6f 77 46 61 6c 73 69 73 68 28 ic allowFalsish( 00028ae0: 65 2c 74 29 7b 72 65 74 75 72 6e 20 66 75 6e 63 e,t){return func 00028af0: 74 69 6f 6e 28 6e 29 7b 72 65 74 75 72 6e 20 6e tion(n){return n 00028b00: 3f 65 28 6e 29 3a 74 7d 7d 73 74 61 74 69 63 20 ?e(n):t}}static 00028b10: 61 72 72 61 79 4f 66 28 65 29 7b 72 65 74 75 72 arrayOf(e){retur 00028b20: 6e 20 66 75 6e 63 74 69 6f 6e 28 74 29 7b 69 66 n function(t){if 00028b30: 28 21 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 (!Array.isArray( 00028b40: 74 29 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 t))throw new Err 00028b50: 6f 72 28 22 6e 6f 74 20 61 6e 20 61 72 72 61 79 or("not an array 00028b60: 22 29 3b 63 6f 6e 73 74 20 6e 3d 5b 5d 3b 72 65 ");const n=[];re 00028b70: 74 75 72 6e 20 74 2e 66 6f 72 45 61 63 68 28 28 turn t.forEach(( 00028b80: 66 75 6e 63 74 69 6f 6e 28 74 29 7b 6e 2e 70 75 function(t){n.pu 00028b90: 73 68 28 65 28 74 29 29 7d 29 29 2c 6e 7d 7d 7d sh(e(t))})),n}}} 00028ba0: 66 75 6e 63 74 69 6f 6e 20 4f 61 28 65 29 7b 72 function Oa(e){r 00028bb0: 65 74 75 72 6e 20 65 26 26 22 66 75 6e 63 74 69 eturn e&&"functi 00028bc0: 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 65 2e 69 73 on"==typeof e.is 00028bd0: 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f 75 72 63 CommunityResourc 00028be0: 65 7d 66 75 6e 63 74 69 6f 6e 20 52 61 28 65 29 e}function Ra(e) 00028bf0: 7b 72 65 74 75 72 6e 20 4f 61 28 65 29 26 26 65 {return Oa(e)&&e 00028c00: 2e 69 73 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f .isCommunityReso 00028c10: 75 72 63 65 28 29 7d 6c 65 74 20 4e 61 3d 21 31 urce()}let Na=!1 00028c20: 3b 66 75 6e 63 74 69 6f 6e 20 50 61 28 29 7b 4e ;function Pa(){N 00028c30: 61 7c 7c 28 4e 61 3d 21 30 2c 63 6f 6e 73 6f 6c a||(Na=!0,consol 00028c40: 65 2e 6c 6f 67 28 22 3d 3d 3d 3d 3d 3d 3d 3d 3d e.log("========= 00028c50: 20 4e 4f 54 49 43 45 20 3d 3d 3d 3d 3d 3d 3d 3d NOTICE ======== 00028c60: 3d 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 ="),console.log( 00028c70: 22 52 65 71 75 65 73 74 2d 52 61 74 65 20 45 78 "Request-Rate Ex 00028c80: 63 65 65 64 65 64 20 20 28 74 68 69 73 20 6d 65 ceeded (this me 00028c90: 73 73 61 67 65 20 77 69 6c 6c 20 6e 6f 74 20 62 ssage will not b 00028ca0: 65 20 72 65 70 65 61 74 65 64 29 22 29 2c 63 6f e repeated)"),co 00028cb0: 6e 73 6f 6c 65 2e 6c 6f 67 28 22 22 29 2c 63 6f nsole.log(""),co 00028cc0: 6e 73 6f 6c 65 2e 6c 6f 67 28 22 54 68 65 20 64 nsole.log("The d 00028cd0: 65 66 61 75 6c 74 20 41 50 49 20 6b 65 79 73 20 efault API keys 00028ce0: 66 6f 72 20 65 61 63 68 20 73 65 72 76 69 63 65 for each service 00028cf0: 20 61 72 65 20 70 72 6f 76 69 64 65 64 20 61 73 are provided as 00028d00: 20 61 20 68 69 67 68 6c 79 2d 74 68 72 6f 74 74 a highly-thrott 00028d10: 6c 65 64 2c 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c led,"),console.l 00028d20: 6f 67 28 22 63 6f 6d 6d 75 6e 69 74 79 20 72 65 og("community re 00028d30: 73 6f 75 72 63 65 20 66 6f 72 20 6c 6f 77 2d 74 source for low-t 00028d40: 72 61 66 66 69 63 20 70 72 6f 6a 65 63 74 73 20 raffic projects 00028d50: 61 6e 64 20 65 61 72 6c 79 20 70 72 6f 74 6f 74 and early protot 00028d60: 79 70 69 6e 67 2e 22 29 2c 63 6f 6e 73 6f 6c 65 yping."),console 00028d70: 2e 6c 6f 67 28 22 22 29 2c 63 6f 6e 73 6f 6c 65 .log(""),console 00028d80: 2e 6c 6f 67 28 22 57 68 69 6c 65 20 79 6f 75 72 .log("While your 00028d90: 20 61 70 70 6c 69 63 61 74 69 6f 6e 20 77 69 6c application wil 00028da0: 6c 20 63 6f 6e 74 69 6e 75 65 20 74 6f 20 66 75 l continue to fu 00028db0: 6e 63 74 69 6f 6e 2c 20 77 65 20 68 69 67 68 6c nction, we highl 00028dc0: 79 20 72 65 63 6f 6d 6d 65 6e 64 65 64 22 29 2c y recommended"), 00028dd0: 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 22 73 69 67 console.log("sig 00028de0: 6e 69 6e 67 20 75 70 20 66 6f 72 20 79 6f 75 72 ning up for your 00028df0: 20 6f 77 6e 20 41 50 49 20 6b 65 79 73 20 74 6f own API keys to 00028e00: 20 69 6d 70 72 6f 76 65 20 70 65 72 66 6f 72 6d improve perform 00028e10: 61 6e 63 65 2c 20 69 6e 63 72 65 61 73 65 20 79 ance, increase y 00028e20: 6f 75 72 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c 6f our"),console.lo 00028e30: 67 28 22 72 65 71 75 65 73 74 20 72 61 74 65 2f g("request rate/ 00028e40: 6c 69 6d 69 74 20 61 6e 64 20 65 6e 61 62 6c 65 limit and enable 00028e50: 20 6f 74 68 65 72 20 70 65 72 6b 73 2c 20 73 75 other perks, su 00028e60: 63 68 20 61 73 20 6d 65 74 72 69 63 73 20 61 6e ch as metrics an 00028e70: 64 20 61 64 76 61 6e 63 65 64 20 41 50 49 73 2e d advanced APIs. 00028e80: 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 22 "),console.log(" 00028e90: 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 28 22 "),console.log(" 00028ea0: 46 6f 72 20 6d 6f 72 65 20 64 65 74 61 69 6c 73 For more details 00028eb0: 3a 20 68 74 74 70 73 3a 2f 2f 64 6f 63 73 2e 65 : https://docs.e 00028ec0: 74 68 65 72 73 2e 69 6f 2f 61 70 69 2d 6b 65 79 thers.io/api-key 00028ed0: 73 2f 22 29 2c 63 6f 6e 73 6f 6c 65 2e 6c 6f 67 s/"),console.log 00028ee0: 28 22 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d ("============== 00028ef0: 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 22 29 29 7d ============"))} 00028f00: 76 61 72 20 4d 61 3d 66 75 6e 63 74 69 6f 6e 28 var Ma=function( 00028f10: 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 e,t,n,r){return 00028f20: 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 new(n||(n=Promis 00028f30: 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c e))((function(o, 00028f40: 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 i){function a(e) 00028f50: 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 {try{l(r.next(e) 00028f60: 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d )}catch(e){i(e)} 00028f70: 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 }function s(e){t 00028f80: 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 ry{l(r.throw(e)) 00028f90: 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d }catch(e){i(e)}} 00028fa0: 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 function l(e){va 00028fb0: 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 r t;e.done?o(e.v 00028fc0: 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 alue):(t=e.value 00028fd0: 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f ,t instanceof n? 00028fe0: 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 6f t:new n((functio 00028ff0: 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 n(e){e(t)}))).th 00029000: 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 en(a,s)}l((r=r.a 00029010: 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e pply(e,t||[])).n 00029020: 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 ext())}))};const 00029030: 20 44 61 3d 6e 65 77 20 79 28 41 61 29 3b 66 75 Da=new y(Aa);fu 00029040: 6e 63 74 69 6f 6e 20 4c 61 28 65 29 7b 72 65 74 nction La(e){ret 00029050: 75 72 6e 20 6e 75 6c 6c 3d 3d 65 3f 22 6e 75 6c urn null==e?"nul 00029060: 6c 22 3a 28 33 32 21 3d 3d 4e 28 65 29 26 26 44 l":(32!==N(e)&&D 00029070: 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 a.throwArgumentE 00029080: 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 74 6f rror("invalid to 00029090: 70 69 63 22 2c 22 74 6f 70 69 63 22 2c 65 29 2c pic","topic",e), 000290a0: 65 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 29 e.toLowerCase()) 000290b0: 7d 66 75 6e 63 74 69 6f 6e 20 46 61 28 65 29 7b }function Fa(e){ 000290c0: 66 6f 72 28 65 3d 65 2e 73 6c 69 63 65 28 29 3b for(e=e.slice(); 000290d0: 65 2e 6c 65 6e 67 74 68 3e 30 26 26 6e 75 6c 6c e.length>0&&null 000290e0: 3d 3d 65 5b 65 2e 6c 65 6e 67 74 68 2d 31 5d 3b ==e[e.length-1]; 000290f0: 29 65 2e 70 6f 70 28 29 3b 72 65 74 75 72 6e 20 )e.pop();return 00029100: 65 2e 6d 61 70 28 28 65 3d 3e 7b 69 66 28 41 72 e.map((e=>{if(Ar 00029110: 72 61 79 2e 69 73 41 72 72 61 79 28 65 29 29 7b ray.isArray(e)){ 00029120: 63 6f 6e 73 74 20 74 3d 7b 7d 3b 65 2e 66 6f 72 const t={};e.for 00029130: 45 61 63 68 28 28 65 3d 3e 7b 74 5b 4c 61 28 65 Each((e=>{t[La(e 00029140: 29 5d 3d 21 30 7d 29 29 3b 63 6f 6e 73 74 20 6e )]=!0}));const n 00029150: 3d 4f 62 6a 65 63 74 2e 6b 65 79 73 28 74 29 3b =Object.keys(t); 00029160: 72 65 74 75 72 6e 20 6e 2e 73 6f 72 74 28 29 2c return n.sort(), 00029170: 6e 2e 6a 6f 69 6e 28 22 7c 22 29 7d 72 65 74 75 n.join("|")}retu 00029180: 72 6e 20 4c 61 28 65 29 7d 29 29 2e 6a 6f 69 6e rn La(e)})).join 00029190: 28 22 26 22 29 7d 66 75 6e 63 74 69 6f 6e 20 55 ("&")}function U 000291a0: 61 28 65 29 7b 69 66 28 22 73 74 72 69 6e 67 22 a(e){if("string" 000291b0: 3d 3d 74 79 70 65 6f 66 20 65 29 7b 69 66 28 33 ==typeof e){if(3 000291c0: 32 3d 3d 3d 4e 28 65 3d 65 2e 74 6f 4c 6f 77 65 2===N(e=e.toLowe 000291d0: 72 43 61 73 65 28 29 29 29 72 65 74 75 72 6e 22 rCase()))return" 000291e0: 74 78 3a 22 2b 65 3b 69 66 28 2d 31 3d 3d 3d 65 tx:"+e;if(-1===e 000291f0: 2e 69 6e 64 65 78 4f 66 28 22 3a 22 29 29 72 65 .indexOf(":"))re 00029200: 74 75 72 6e 20 65 7d 65 6c 73 65 7b 69 66 28 41 turn e}else{if(A 00029210: 72 72 61 79 2e 69 73 41 72 72 61 79 28 65 29 29 rray.isArray(e)) 00029220: 72 65 74 75 72 6e 22 66 69 6c 74 65 72 3a 2a 3a return"filter:*: 00029230: 22 2b 46 61 28 65 29 3b 69 66 28 6f 6e 2e 69 73 "+Fa(e);if(on.is 00029240: 46 6f 72 6b 45 76 65 6e 74 28 65 29 29 74 68 72 ForkEvent(e))thr 00029250: 6f 77 20 44 61 2e 77 61 72 6e 28 22 6e 6f 74 20 ow Da.warn("not 00029260: 69 6d 70 6c 65 6d 65 6e 74 65 64 22 29 2c 6e 65 implemented"),ne 00029270: 77 20 45 72 72 6f 72 28 22 6e 6f 74 20 69 6d 70 w Error("not imp 00029280: 6c 65 6d 65 6e 74 65 64 22 29 3b 69 66 28 65 26 lemented");if(e& 00029290: 26 22 6f 62 6a 65 63 74 22 3d 3d 74 79 70 65 6f &"object"==typeo 000292a0: 66 20 65 29 72 65 74 75 72 6e 22 66 69 6c 74 65 f e)return"filte 000292b0: 72 3a 22 2b 28 65 2e 61 64 64 72 65 73 73 7c 7c r:"+(e.address|| 000292c0: 22 2a 22 29 2b 22 3a 22 2b 46 61 28 65 2e 74 6f "*")+":"+Fa(e.to 000292d0: 70 69 63 73 7c 7c 5b 5d 29 7d 74 68 72 6f 77 20 pics||[])}throw 000292e0: 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 76 61 6c new Error("inval 000292f0: 69 64 20 65 76 65 6e 74 20 2d 20 22 2b 65 29 7d id event - "+e)} 00029300: 66 75 6e 63 74 69 6f 6e 20 42 61 28 29 7b 72 65 function Ba(){re 00029310: 74 75 72 6e 28 6e 65 77 20 44 61 74 65 29 2e 67 turn(new Date).g 00029320: 65 74 54 69 6d 65 28 29 7d 66 75 6e 63 74 69 6f etTime()}functio 00029330: 6e 20 6a 61 28 65 29 7b 72 65 74 75 72 6e 20 6e n ja(e){return n 00029340: 65 77 20 50 72 6f 6d 69 73 65 28 28 74 3d 3e 7b ew Promise((t=>{ 00029350: 73 65 74 54 69 6d 65 6f 75 74 28 74 2c 65 29 7d setTimeout(t,e)} 00029360: 29 29 7d 63 6f 6e 73 74 20 7a 61 3d 5b 22 62 6c ))}const za=["bl 00029370: 6f 63 6b 22 2c 22 6e 65 74 77 6f 72 6b 22 2c 22 ock","network"," 00029380: 70 65 6e 64 69 6e 67 22 2c 22 70 6f 6c 6c 22 5d pending","poll"] 00029390: 3b 63 6c 61 73 73 20 47 61 7b 63 6f 6e 73 74 72 ;class Ga{constr 000293a0: 75 63 74 6f 72 28 65 2c 74 2c 6e 29 7b 74 65 28 uctor(e,t,n){te( 000293b0: 74 68 69 73 2c 22 74 61 67 22 2c 65 29 2c 74 65 this,"tag",e),te 000293c0: 28 74 68 69 73 2c 22 6c 69 73 74 65 6e 65 72 22 (this,"listener" 000293d0: 2c 74 29 2c 74 65 28 74 68 69 73 2c 22 6f 6e 63 ,t),te(this,"onc 000293e0: 65 22 2c 6e 29 2c 74 68 69 73 2e 5f 6c 61 73 74 e",n),this._last 000293f0: 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 2d 32 2c 74 BlockNumber=-2,t 00029400: 68 69 73 2e 5f 69 6e 66 6c 69 67 68 74 3d 21 31 his._inflight=!1 00029410: 7d 67 65 74 20 65 76 65 6e 74 28 29 7b 73 77 69 }get event(){swi 00029420: 74 63 68 28 74 68 69 73 2e 74 79 70 65 29 7b 63 tch(this.type){c 00029430: 61 73 65 22 74 78 22 3a 72 65 74 75 72 6e 20 74 ase"tx":return t 00029440: 68 69 73 2e 68 61 73 68 3b 63 61 73 65 22 66 69 his.hash;case"fi 00029450: 6c 74 65 72 22 3a 72 65 74 75 72 6e 20 74 68 69 lter":return thi 00029460: 73 2e 66 69 6c 74 65 72 7d 72 65 74 75 72 6e 20 s.filter}return 00029470: 74 68 69 73 2e 74 61 67 7d 67 65 74 20 74 79 70 this.tag}get typ 00029480: 65 28 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e e(){return this. 00029490: 74 61 67 2e 73 70 6c 69 74 28 22 3a 22 29 5b 30 tag.split(":")[0 000294a0: 5d 7d 67 65 74 20 68 61 73 68 28 29 7b 63 6f 6e ]}get hash(){con 000294b0: 73 74 20 65 3d 74 68 69 73 2e 74 61 67 2e 73 70 st e=this.tag.sp 000294c0: 6c 69 74 28 22 3a 22 29 3b 72 65 74 75 72 6e 22 lit(":");return" 000294d0: 74 78 22 21 3d 3d 65 5b 30 5d 3f 6e 75 6c 6c 3a tx"!==e[0]?null: 000294e0: 65 5b 31 5d 7d 67 65 74 20 66 69 6c 74 65 72 28 e[1]}get filter( 000294f0: 29 7b 63 6f 6e 73 74 20 65 3d 74 68 69 73 2e 74 ){const e=this.t 00029500: 61 67 2e 73 70 6c 69 74 28 22 3a 22 29 3b 69 66 ag.split(":");if 00029510: 28 22 66 69 6c 74 65 72 22 21 3d 3d 65 5b 30 5d ("filter"!==e[0] 00029520: 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f 6e )return null;con 00029530: 73 74 20 74 3d 65 5b 31 5d 2c 6e 3d 22 22 3d 3d st t=e[1],n=""== 00029540: 3d 28 72 3d 65 5b 32 5d 29 3f 5b 5d 3a 72 2e 73 =(r=e[2])?[]:r.s 00029550: 70 6c 69 74 28 2f 26 2f 67 29 2e 6d 61 70 28 28 plit(/&/g).map(( 00029560: 65 3d 3e 7b 69 66 28 22 22 3d 3d 3d 65 29 72 65 e=>{if(""===e)re 00029570: 74 75 72 6e 5b 5d 3b 63 6f 6e 73 74 20 74 3d 65 turn[];const t=e 00029580: 2e 73 70 6c 69 74 28 22 7c 22 29 2e 6d 61 70 28 .split("|").map( 00029590: 28 65 3d 3e 22 6e 75 6c 6c 22 3d 3d 3d 65 3f 6e (e=>"null"===e?n 000295a0: 75 6c 6c 3a 65 29 29 3b 72 65 74 75 72 6e 20 31 ull:e));return 1 000295b0: 3d 3d 3d 74 2e 6c 65 6e 67 74 68 3f 74 5b 30 5d ===t.length?t[0] 000295c0: 3a 74 7d 29 29 3b 76 61 72 20 72 3b 63 6f 6e 73 :t}));var r;cons 000295d0: 74 20 6f 3d 7b 7d 3b 72 65 74 75 72 6e 20 6e 2e t o={};return n. 000295e0: 6c 65 6e 67 74 68 3e 30 26 26 28 6f 2e 74 6f 70 length>0&&(o.top 000295f0: 69 63 73 3d 6e 29 2c 74 26 26 22 2a 22 21 3d 3d ics=n),t&&"*"!== 00029600: 74 26 26 28 6f 2e 61 64 64 72 65 73 73 3d 74 29 t&&(o.address=t) 00029610: 2c 6f 7d 70 6f 6c 6c 61 62 6c 65 28 29 7b 72 65 ,o}pollable(){re 00029620: 74 75 72 6e 20 74 68 69 73 2e 74 61 67 2e 69 6e turn this.tag.in 00029630: 64 65 78 4f 66 28 22 3a 22 29 3e 3d 30 7c 7c 7a dexOf(":")>=0||z 00029640: 61 2e 69 6e 64 65 78 4f 66 28 74 68 69 73 2e 74 a.indexOf(this.t 00029650: 61 67 29 3e 3d 30 7d 7d 63 6f 6e 73 74 20 48 61 ag)>=0}}const Ha 00029660: 3d 7b 30 3a 7b 73 79 6d 62 6f 6c 3a 22 62 74 63 ={0:{symbol:"btc 00029670: 22 2c 70 32 70 6b 68 3a 30 2c 70 32 73 68 3a 35 ",p2pkh:0,p2sh:5 00029680: 2c 70 72 65 66 69 78 3a 22 62 63 22 7d 2c 32 3a ,prefix:"bc"},2: 00029690: 7b 73 79 6d 62 6f 6c 3a 22 6c 74 63 22 2c 70 32 {symbol:"ltc",p2 000296a0: 70 6b 68 3a 34 38 2c 70 32 73 68 3a 35 30 2c 70 pkh:48,p2sh:50,p 000296b0: 72 65 66 69 78 3a 22 6c 74 63 22 7d 2c 33 3a 7b refix:"ltc"},3:{ 000296c0: 73 79 6d 62 6f 6c 3a 22 64 6f 67 65 22 2c 70 32 symbol:"doge",p2 000296d0: 70 6b 68 3a 33 30 2c 70 32 73 68 3a 32 32 7d 2c pkh:30,p2sh:22}, 000296e0: 36 30 3a 7b 73 79 6d 62 6f 6c 3a 22 65 74 68 22 60:{symbol:"eth" 000296f0: 2c 69 6c 6b 3a 22 65 74 68 22 7d 2c 36 31 3a 7b ,ilk:"eth"},61:{ 00029700: 73 79 6d 62 6f 6c 3a 22 65 74 63 22 2c 69 6c 6b symbol:"etc",ilk 00029710: 3a 22 65 74 68 22 7d 2c 37 30 30 3a 7b 73 79 6d :"eth"},700:{sym 00029720: 62 6f 6c 3a 22 78 64 61 69 22 2c 69 6c 6b 3a 22 bol:"xdai",ilk:" 00029730: 65 74 68 22 7d 7d 3b 66 75 6e 63 74 69 6f 6e 20 eth"}};function 00029740: 56 61 28 65 29 7b 72 65 74 75 72 6e 20 46 28 59 Va(e){return F(Y 00029750: 2e 66 72 6f 6d 28 65 29 2e 74 6f 48 65 78 53 74 .from(e).toHexSt 00029760: 72 69 6e 67 28 29 2c 33 32 29 7d 66 75 6e 63 74 ring(),32)}funct 00029770: 69 6f 6e 20 71 61 28 65 29 7b 72 65 74 75 72 6e ion qa(e){return 00029780: 20 62 6f 2e 65 6e 63 6f 64 65 28 43 28 5b 65 2c bo.encode(C([e, 00029790: 50 28 45 6f 28 45 6f 28 65 29 29 2c 30 2c 34 29 P(Eo(Eo(e)),0,4) 000297a0: 5d 29 29 7d 63 6f 6e 73 74 20 57 61 3d 6e 65 77 ]))}const Wa=new 000297b0: 20 52 65 67 45 78 70 28 22 5e 28 69 70 66 73 29 RegExp("^(ipfs) 000297c0: 3a 2f 2f 28 2e 2a 29 24 22 2c 22 69 22 29 2c 4b ://(.*)$","i"),K 000297d0: 61 3d 5b 6e 65 77 20 52 65 67 45 78 70 28 22 5e a=[new RegExp("^ 000297e0: 28 68 74 74 70 73 29 3a 2f 2f 28 2e 2a 29 24 22 (https)://(.*)$" 000297f0: 2c 22 69 22 29 2c 6e 65 77 20 52 65 67 45 78 70 ,"i"),new RegExp 00029800: 28 22 5e 28 64 61 74 61 29 3a 28 2e 2a 29 24 22 ("^(data):(.*)$" 00029810: 2c 22 69 22 29 2c 57 61 2c 6e 65 77 20 52 65 67 ,"i"),Wa,new Reg 00029820: 45 78 70 28 22 5e 65 69 70 31 35 35 3a 5b 30 2d Exp("^eip155:[0- 00029830: 39 5d 2b 2f 28 65 72 63 5b 30 2d 39 5d 2b 29 3a 9]+/(erc[0-9]+): 00029840: 28 2e 2a 29 24 22 2c 22 69 22 29 5d 3b 66 75 6e (.*)$","i")];fun 00029850: 63 74 69 6f 6e 20 59 61 28 65 2c 74 29 7b 74 72 ction Ya(e,t){tr 00029860: 79 7b 72 65 74 75 72 6e 20 58 65 28 58 61 28 65 y{return Xe(Xa(e 00029870: 2c 74 29 29 7d 63 61 74 63 68 28 65 29 7b 7d 72 ,t))}catch(e){}r 00029880: 65 74 75 72 6e 20 6e 75 6c 6c 7d 66 75 6e 63 74 eturn null}funct 00029890: 69 6f 6e 20 58 61 28 65 2c 74 29 7b 69 66 28 22 ion Xa(e,t){if(" 000298a0: 30 78 22 3d 3d 3d 65 29 72 65 74 75 72 6e 20 6e 0x"===e)return n 000298b0: 75 6c 6c 3b 63 6f 6e 73 74 20 6e 3d 59 2e 66 72 ull;const n=Y.fr 000298c0: 6f 6d 28 50 28 65 2c 74 2c 74 2b 33 32 29 29 2e om(P(e,t,t+32)). 000298d0: 74 6f 4e 75 6d 62 65 72 28 29 2c 72 3d 59 2e 66 toNumber(),r=Y.f 000298e0: 72 6f 6d 28 50 28 65 2c 6e 2c 6e 2b 33 32 29 29 rom(P(e,n,n+32)) 000298f0: 2e 74 6f 4e 75 6d 62 65 72 28 29 3b 72 65 74 75 .toNumber();retu 00029900: 72 6e 20 50 28 65 2c 6e 2b 33 32 2c 6e 2b 33 32 rn P(e,n+32,n+32 00029910: 2b 72 29 7d 66 75 6e 63 74 69 6f 6e 20 5a 61 28 +r)}function Za( 00029920: 65 29 7b 72 65 74 75 72 6e 20 65 2e 6d 61 74 63 e){return e.matc 00029930: 68 28 2f 5e 69 70 66 73 3a 5c 2f 5c 2f 69 70 66 h(/^ipfs:\/\/ipf 00029940: 73 5c 2f 2f 69 29 3f 65 3d 65 2e 73 75 62 73 74 s\//i)?e=e.subst 00029950: 72 69 6e 67 28 31 32 29 3a 65 2e 6d 61 74 63 68 ring(12):e.match 00029960: 28 2f 5e 69 70 66 73 3a 5c 2f 5c 2f 2f 69 29 3f (/^ipfs:\/\//i)? 00029970: 65 3d 65 2e 73 75 62 73 74 72 69 6e 67 28 37 29 e=e.substring(7) 00029980: 3a 44 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e :Da.throwArgumen 00029990: 74 45 72 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 tError("unsuppor 000299a0: 74 65 64 20 49 50 46 53 20 66 6f 72 6d 61 74 22 ted IPFS format" 000299b0: 2c 22 6c 69 6e 6b 22 2c 65 29 2c 60 68 74 74 70 ,"link",e),`http 000299c0: 73 3a 2f 2f 67 61 74 65 77 61 79 2e 69 70 66 73 s://gateway.ipfs 000299d0: 2e 69 6f 2f 69 70 66 73 2f 24 7b 65 7d 60 7d 66 .io/ipfs/${e}`}f 000299e0: 75 6e 63 74 69 6f 6e 20 51 61 28 65 29 7b 63 6f unction Qa(e){co 000299f0: 6e 73 74 20 74 3d 54 28 65 29 3b 69 66 28 74 2e nst t=T(e);if(t. 00029a00: 6c 65 6e 67 74 68 3e 33 32 29 74 68 72 6f 77 20 length>32)throw 00029a10: 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 74 65 72 new Error("inter 00029a20: 6e 61 6c 3b 20 73 68 6f 75 6c 64 20 6e 6f 74 20 nal; should not 00029a30: 68 61 70 70 65 6e 22 29 3b 63 6f 6e 73 74 20 6e happen");const n 00029a40: 3d 6e 65 77 20 55 69 6e 74 38 41 72 72 61 79 28 =new Uint8Array( 00029a50: 33 32 29 3b 72 65 74 75 72 6e 20 6e 2e 73 65 74 32);return n.set 00029a60: 28 74 2c 33 32 2d 74 2e 6c 65 6e 67 74 68 29 2c (t,32-t.length), 00029a70: 6e 7d 66 75 6e 63 74 69 6f 6e 20 4a 61 28 65 29 n}function Ja(e) 00029a80: 7b 69 66 28 65 2e 6c 65 6e 67 74 68 25 33 32 3d {if(e.length%32= 00029a90: 3d 30 29 72 65 74 75 72 6e 20 65 3b 63 6f 6e 73 =0)return e;cons 00029aa0: 74 20 74 3d 6e 65 77 20 55 69 6e 74 38 41 72 72 t t=new Uint8Arr 00029ab0: 61 79 28 33 32 2a 4d 61 74 68 2e 63 65 69 6c 28 ay(32*Math.ceil( 00029ac0: 65 2e 6c 65 6e 67 74 68 2f 33 32 29 29 3b 72 65 e.length/32));re 00029ad0: 74 75 72 6e 20 74 2e 73 65 74 28 65 29 2c 74 7d turn t.set(e),t} 00029ae0: 66 75 6e 63 74 69 6f 6e 20 24 61 28 65 29 7b 63 function $a(e){c 00029af0: 6f 6e 73 74 20 74 3d 5b 5d 3b 6c 65 74 20 6e 3d onst t=[];let n= 00029b00: 30 3b 66 6f 72 28 6c 65 74 20 72 3d 30 3b 72 3c 0;for(let r=0;r< 00029b10: 65 2e 6c 65 6e 67 74 68 3b 72 2b 2b 29 74 2e 70 e.length;r++)t.p 00029b20: 75 73 68 28 6e 75 6c 6c 29 2c 6e 2b 3d 33 32 3b ush(null),n+=32; 00029b30: 66 6f 72 28 6c 65 74 20 72 3d 30 3b 72 3c 65 2e for(let r=0;r<e. 00029b40: 6c 65 6e 67 74 68 3b 72 2b 2b 29 7b 63 6f 6e 73 length;r++){cons 00029b50: 74 20 6f 3d 54 28 65 5b 72 5d 29 3b 74 5b 72 5d t o=T(e[r]);t[r] 00029b60: 3d 51 61 28 6e 29 2c 74 2e 70 75 73 68 28 51 61 =Qa(n),t.push(Qa 00029b70: 28 6f 2e 6c 65 6e 67 74 68 29 29 2c 74 2e 70 75 (o.length)),t.pu 00029b80: 73 68 28 4a 61 28 6f 29 29 2c 6e 2b 3d 33 32 2b sh(Ja(o)),n+=32+ 00029b90: 33 32 2a 4d 61 74 68 2e 63 65 69 6c 28 6f 2e 6c 32*Math.ceil(o.l 00029ba0: 65 6e 67 74 68 2f 33 32 29 7d 72 65 74 75 72 6e ength/32)}return 00029bb0: 20 4d 28 74 29 7d 63 6c 61 73 73 20 65 73 7b 63 M(t)}class es{c 00029bc0: 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 2c 6e onstructor(e,t,n 00029bd0: 2c 72 29 7b 74 65 28 74 68 69 73 2c 22 70 72 6f ,r){te(this,"pro 00029be0: 76 69 64 65 72 22 2c 65 29 2c 74 65 28 74 68 69 vider",e),te(thi 00029bf0: 73 2c 22 6e 61 6d 65 22 2c 6e 29 2c 74 65 28 74 s,"name",n),te(t 00029c00: 68 69 73 2c 22 61 64 64 72 65 73 73 22 2c 65 2e his,"address",e. 00029c10: 66 6f 72 6d 61 74 74 65 72 2e 61 64 64 72 65 73 formatter.addres 00029c20: 73 28 74 29 29 2c 74 65 28 74 68 69 73 2c 22 5f s(t)),te(this,"_ 00029c30: 72 65 73 6f 6c 76 65 64 41 64 64 72 65 73 73 22 resolvedAddress" 00029c40: 2c 72 29 7d 73 75 70 70 6f 72 74 73 57 69 6c 64 ,r)}supportsWild 00029c50: 63 61 72 64 28 29 7b 72 65 74 75 72 6e 20 74 68 card(){return th 00029c60: 69 73 2e 5f 73 75 70 70 6f 72 74 73 45 69 70 32 is._supportsEip2 00029c70: 35 34 34 7c 7c 28 74 68 69 73 2e 5f 73 75 70 70 544||(this._supp 00029c80: 6f 72 74 73 45 69 70 32 35 34 34 3d 74 68 69 73 ortsEip2544=this 00029c90: 2e 70 72 6f 76 69 64 65 72 2e 63 61 6c 6c 28 7b .provider.call({ 00029ca0: 74 6f 3a 74 68 69 73 2e 61 64 64 72 65 73 73 2c to:this.address, 00029cb0: 64 61 74 61 3a 22 30 78 30 31 66 66 63 39 61 37 data:"0x01ffc9a7 00029cc0: 39 30 36 31 62 39 32 33 30 30 30 30 30 30 30 30 9061b92300000000 00029cd0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00029ce0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00029cf0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 00029d00: 22 7d 29 2e 74 68 65 6e 28 28 65 3d 3e 59 2e 66 "}).then((e=>Y.f 00029d10: 72 6f 6d 28 65 29 2e 65 71 28 31 29 29 29 2e 63 rom(e).eq(1))).c 00029d20: 61 74 63 68 28 28 65 3d 3e 7b 69 66 28 65 2e 63 atch((e=>{if(e.c 00029d30: 6f 64 65 3d 3d 3d 79 2e 65 72 72 6f 72 73 2e 43 ode===y.errors.C 00029d40: 41 4c 4c 5f 45 58 43 45 50 54 49 4f 4e 29 72 65 ALL_EXCEPTION)re 00029d50: 74 75 72 6e 21 31 3b 74 68 72 6f 77 20 74 68 69 turn!1;throw thi 00029d60: 73 2e 5f 73 75 70 70 6f 72 74 73 45 69 70 32 35 s._supportsEip25 00029d70: 34 34 3d 6e 75 6c 6c 2c 65 7d 29 29 29 2c 74 68 44=null,e}))),th 00029d80: 69 73 2e 5f 73 75 70 70 6f 72 74 73 45 69 70 32 is._supportsEip2 00029d90: 35 34 34 7d 5f 66 65 74 63 68 28 65 2c 74 29 7b 544}_fetch(e,t){ 00029da0: 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 return Ma(this,v 00029db0: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 00029dc0: 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 nction*(){const 00029dd0: 6e 3d 7b 74 6f 3a 74 68 69 73 2e 61 64 64 72 65 n={to:this.addre 00029de0: 73 73 2c 63 63 69 70 52 65 61 64 45 6e 61 62 6c ss,ccipReadEnabl 00029df0: 65 64 3a 21 30 2c 64 61 74 61 3a 4d 28 5b 65 2c ed:!0,data:M([e, 00029e00: 68 61 28 74 68 69 73 2e 6e 61 6d 65 29 2c 74 7c ha(this.name),t| 00029e10: 7c 22 30 78 22 5d 29 7d 3b 6c 65 74 20 72 3d 21 |"0x"])};let r=! 00029e20: 31 3b 28 79 69 65 6c 64 20 74 68 69 73 2e 73 75 1;(yield this.su 00029e30: 70 70 6f 72 74 73 57 69 6c 64 63 61 72 64 28 29 pportsWildcard() 00029e40: 29 26 26 28 72 3d 21 30 2c 6e 2e 64 61 74 61 3d )&&(r=!0,n.data= 00029e50: 4d 28 5b 22 30 78 39 30 36 31 62 39 32 33 22 2c M(["0x9061b923", 00029e60: 24 61 28 5b 6d 61 28 74 68 69 73 2e 6e 61 6d 65 $a([ma(this.name 00029e70: 29 2c 6e 2e 64 61 74 61 5d 29 5d 29 29 3b 74 72 ),n.data])]));tr 00029e80: 79 7b 6c 65 74 20 65 3d 79 69 65 6c 64 20 74 68 y{let e=yield th 00029e90: 69 73 2e 70 72 6f 76 69 64 65 72 2e 63 61 6c 6c is.provider.call 00029ea0: 28 6e 29 3b 72 65 74 75 72 6e 20 54 28 65 29 2e (n);return T(e). 00029eb0: 6c 65 6e 67 74 68 25 33 32 3d 3d 34 26 26 44 61 length%32==4&&Da 00029ec0: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 72 65 73 .throwError("res 00029ed0: 6f 6c 76 65 72 20 74 68 72 65 77 20 65 72 72 6f olver threw erro 00029ee0: 72 22 2c 79 2e 65 72 72 6f 72 73 2e 43 41 4c 4c r",y.errors.CALL 00029ef0: 5f 45 58 43 45 50 54 49 4f 4e 2c 7b 74 72 61 6e _EXCEPTION,{tran 00029f00: 73 61 63 74 69 6f 6e 3a 6e 2c 64 61 74 61 3a 65 saction:n,data:e 00029f10: 7d 29 2c 72 26 26 28 65 3d 58 61 28 65 2c 30 29 }),r&&(e=Xa(e,0) 00029f20: 29 2c 65 7d 63 61 74 63 68 28 65 29 7b 69 66 28 ),e}catch(e){if( 00029f30: 65 2e 63 6f 64 65 3d 3d 3d 79 2e 65 72 72 6f 72 e.code===y.error 00029f40: 73 2e 43 41 4c 4c 5f 45 58 43 45 50 54 49 4f 4e s.CALL_EXCEPTION 00029f50: 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 74 68 72 )return null;thr 00029f60: 6f 77 20 65 7d 7d 29 29 7d 5f 66 65 74 63 68 42 ow e}}))}_fetchB 00029f70: 79 74 65 73 28 65 2c 74 29 7b 72 65 74 75 72 6e ytes(e,t){return 00029f80: 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c Ma(this,void 0, 00029f90: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 00029fa0: 2a 28 29 7b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c *(){const n=yiel 00029fb0: 64 20 74 68 69 73 2e 5f 66 65 74 63 68 28 65 2c d this._fetch(e, 00029fc0: 74 29 3b 72 65 74 75 72 6e 20 6e 75 6c 6c 21 3d t);return null!= 00029fd0: 6e 3f 58 61 28 6e 2c 30 29 3a 6e 75 6c 6c 7d 29 n?Xa(n,0):null}) 00029fe0: 29 7d 5f 67 65 74 41 64 64 72 65 73 73 28 65 2c )}_getAddress(e, 00029ff0: 74 29 7b 63 6f 6e 73 74 20 6e 3d 48 61 5b 53 74 t){const n=Ha[St 0002a000: 72 69 6e 67 28 65 29 5d 3b 69 66 28 6e 75 6c 6c ring(e)];if(null 0002a010: 3d 3d 6e 26 26 44 61 2e 74 68 72 6f 77 45 72 72 ==n&&Da.throwErr 0002a020: 6f 72 28 60 75 6e 73 75 70 70 6f 72 74 65 64 20 or(`unsupported 0002a030: 63 6f 69 6e 20 74 79 70 65 3a 20 24 7b 65 7d 60 coin type: ${e}` 0002a040: 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 ,y.errors.UNSUPP 0002a050: 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c ORTED_OPERATION, 0002a060: 7b 6f 70 65 72 61 74 69 6f 6e 3a 60 67 65 74 41 {operation:`getA 0002a070: 64 64 72 65 73 73 28 24 7b 65 7d 29 60 7d 29 2c ddress(${e})`}), 0002a080: 22 65 74 68 22 3d 3d 3d 6e 2e 69 6c 6b 29 72 65 "eth"===n.ilk)re 0002a090: 74 75 72 6e 20 74 68 69 73 2e 70 72 6f 76 69 64 turn this.provid 0002a0a0: 65 72 2e 66 6f 72 6d 61 74 74 65 72 2e 61 64 64 er.formatter.add 0002a0b0: 72 65 73 73 28 74 29 3b 63 6f 6e 73 74 20 72 3d ress(t);const r= 0002a0c0: 54 28 74 29 3b 69 66 28 6e 75 6c 6c 21 3d 6e 2e T(t);if(null!=n. 0002a0d0: 70 32 70 6b 68 29 7b 63 6f 6e 73 74 20 65 3d 74 p2pkh){const e=t 0002a0e0: 2e 6d 61 74 63 68 28 2f 5e 30 78 37 36 61 39 28 .match(/^0x76a9( 0002a0f0: 5b 30 2d 39 61 2d 66 5d 5b 30 2d 39 61 2d 66 5d [0-9a-f][0-9a-f] 0002a100: 29 28 5b 30 2d 39 61 2d 66 5d 2a 29 38 38 61 63 )([0-9a-f]*)88ac 0002a110: 24 2f 29 3b 69 66 28 65 29 7b 63 6f 6e 73 74 20 $/);if(e){const 0002a120: 74 3d 70 61 72 73 65 49 6e 74 28 65 5b 31 5d 2c t=parseInt(e[1], 0002a130: 31 36 29 3b 69 66 28 65 5b 32 5d 2e 6c 65 6e 67 16);if(e[2].leng 0002a140: 74 68 3d 3d 3d 32 2a 74 26 26 74 3e 3d 31 26 26 th===2*t&&t>=1&& 0002a150: 74 3c 3d 37 35 29 72 65 74 75 72 6e 20 71 61 28 t<=75)return qa( 0002a160: 43 28 5b 5b 6e 2e 70 32 70 6b 68 5d 2c 22 30 78 C([[n.p2pkh],"0x 0002a170: 22 2b 65 5b 32 5d 5d 29 29 7d 7d 69 66 28 6e 75 "+e[2]]))}}if(nu 0002a180: 6c 6c 21 3d 6e 2e 70 32 73 68 29 7b 63 6f 6e 73 ll!=n.p2sh){cons 0002a190: 74 20 65 3d 74 2e 6d 61 74 63 68 28 2f 5e 30 78 t e=t.match(/^0x 0002a1a0: 61 39 28 5b 30 2d 39 61 2d 66 5d 5b 30 2d 39 61 a9([0-9a-f][0-9a 0002a1b0: 2d 66 5d 29 28 5b 30 2d 39 61 2d 66 5d 2a 29 38 -f])([0-9a-f]*)8 0002a1c0: 37 24 2f 29 3b 69 66 28 65 29 7b 63 6f 6e 73 74 7$/);if(e){const 0002a1d0: 20 74 3d 70 61 72 73 65 49 6e 74 28 65 5b 31 5d t=parseInt(e[1] 0002a1e0: 2c 31 36 29 3b 69 66 28 65 5b 32 5d 2e 6c 65 6e ,16);if(e[2].len 0002a1f0: 67 74 68 3d 3d 3d 32 2a 74 26 26 74 3e 3d 31 26 gth===2*t&&t>=1& 0002a200: 26 74 3c 3d 37 35 29 72 65 74 75 72 6e 20 71 61 &t<=75)return qa 0002a210: 28 43 28 5b 5b 6e 2e 70 32 73 68 5d 2c 22 30 78 (C([[n.p2sh],"0x 0002a220: 22 2b 65 5b 32 5d 5d 29 29 7d 7d 69 66 28 6e 75 "+e[2]]))}}if(nu 0002a230: 6c 6c 21 3d 6e 2e 70 72 65 66 69 78 29 7b 63 6f ll!=n.prefix){co 0002a240: 6e 73 74 20 65 3d 72 5b 31 5d 3b 6c 65 74 20 74 nst e=r[1];let t 0002a250: 3d 72 5b 30 5d 3b 69 66 28 30 3d 3d 3d 74 3f 32 =r[0];if(0===t?2 0002a260: 30 21 3d 3d 65 26 26 33 32 21 3d 3d 65 26 26 28 0!==e&&32!==e&&( 0002a270: 74 3d 2d 31 29 3a 74 3d 2d 31 2c 74 3e 3d 30 26 t=-1):t=-1,t>=0& 0002a280: 26 72 2e 6c 65 6e 67 74 68 3d 3d 3d 32 2b 65 26 &r.length===2+e& 0002a290: 26 65 3e 3d 31 26 26 65 3c 3d 37 35 29 7b 63 6f &e>=1&&e<=75){co 0002a2a0: 6e 73 74 20 65 3d 43 61 28 29 2e 74 6f 57 6f 72 nst e=Ca().toWor 0002a2b0: 64 73 28 72 2e 73 6c 69 63 65 28 32 29 29 3b 72 ds(r.slice(2));r 0002a2c0: 65 74 75 72 6e 20 65 2e 75 6e 73 68 69 66 74 28 eturn e.unshift( 0002a2d0: 74 29 2c 43 61 28 29 2e 65 6e 63 6f 64 65 28 6e t),Ca().encode(n 0002a2e0: 2e 70 72 65 66 69 78 2c 65 29 7d 7d 72 65 74 75 .prefix,e)}}retu 0002a2f0: 72 6e 20 6e 75 6c 6c 7d 67 65 74 41 64 64 72 65 rn null}getAddre 0002a300: 73 73 28 65 29 7b 72 65 74 75 72 6e 20 4d 61 28 ss(e){return Ma( 0002a310: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 0002a320: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 0002a330: 69 66 28 6e 75 6c 6c 3d 3d 65 26 26 28 65 3d 36 if(null==e&&(e=6 0002a340: 30 29 2c 36 30 3d 3d 3d 65 29 74 72 79 7b 63 6f 0),60===e)try{co 0002a350: 6e 73 74 20 65 3d 79 69 65 6c 64 20 74 68 69 73 nst e=yield this 0002a360: 2e 5f 66 65 74 63 68 28 22 30 78 33 62 33 62 35 ._fetch("0x3b3b5 0002a370: 37 64 65 22 29 3b 72 65 74 75 72 6e 22 30 78 22 7de");return"0x" 0002a380: 3d 3d 3d 65 7c 7c 65 3d 3d 3d 4f 69 3f 6e 75 6c ===e||e===Oi?nul 0002a390: 6c 3a 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e l:this.provider. 0002a3a0: 66 6f 72 6d 61 74 74 65 72 2e 63 61 6c 6c 41 64 formatter.callAd 0002a3b0: 64 72 65 73 73 28 65 29 7d 63 61 74 63 68 28 65 dress(e)}catch(e 0002a3c0: 29 7b 69 66 28 65 2e 63 6f 64 65 3d 3d 3d 79 2e ){if(e.code===y. 0002a3d0: 65 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 errors.CALL_EXCE 0002a3e0: 50 54 49 4f 4e 29 72 65 74 75 72 6e 20 6e 75 6c PTION)return nul 0002a3f0: 6c 3b 74 68 72 6f 77 20 65 7d 63 6f 6e 73 74 20 l;throw e}const 0002a400: 74 3d 79 69 65 6c 64 20 74 68 69 73 2e 5f 66 65 t=yield this._fe 0002a410: 74 63 68 42 79 74 65 73 28 22 30 78 66 31 63 62 tchBytes("0xf1cb 0002a420: 37 65 30 36 22 2c 56 61 28 65 29 29 3b 69 66 28 7e06",Va(e));if( 0002a430: 6e 75 6c 6c 3d 3d 74 7c 7c 22 30 78 22 3d 3d 3d null==t||"0x"=== 0002a440: 74 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f t)return null;co 0002a450: 6e 73 74 20 6e 3d 74 68 69 73 2e 5f 67 65 74 41 nst n=this._getA 0002a460: 64 64 72 65 73 73 28 65 2c 74 29 3b 72 65 74 75 ddress(e,t);retu 0002a470: 72 6e 20 6e 75 6c 6c 3d 3d 6e 26 26 44 61 2e 74 rn null==n&&Da.t 0002a480: 68 72 6f 77 45 72 72 6f 72 28 22 69 6e 76 61 6c hrowError("inval 0002a490: 69 64 20 6f 72 20 75 6e 73 75 70 70 6f 72 74 65 id or unsupporte 0002a4a0: 64 20 63 6f 69 6e 20 64 61 74 61 22 2c 79 2e 65 d coin data",y.e 0002a4b0: 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 rrors.UNSUPPORTE 0002a4c0: 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 D_OPERATION,{ope 0002a4d0: 72 61 74 69 6f 6e 3a 60 67 65 74 41 64 64 72 65 ration:`getAddre 0002a4e0: 73 73 28 24 7b 65 7d 29 60 2c 63 6f 69 6e 54 79 ss(${e})`,coinTy 0002a4f0: 70 65 3a 65 2c 64 61 74 61 3a 74 7d 29 2c 6e 7d pe:e,data:t}),n} 0002a500: 29 29 7d 67 65 74 41 76 61 74 61 72 28 29 7b 72 ))}getAvatar(){r 0002a510: 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f eturn Ma(this,vo 0002a520: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 0002a530: 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 65 ction*(){const e 0002a540: 3d 5b 7b 74 79 70 65 3a 22 6e 61 6d 65 22 2c 63 =[{type:"name",c 0002a550: 6f 6e 74 65 6e 74 3a 74 68 69 73 2e 6e 61 6d 65 ontent:this.name 0002a560: 7d 5d 3b 74 72 79 7b 63 6f 6e 73 74 20 74 3d 79 }];try{const t=y 0002a570: 69 65 6c 64 20 74 68 69 73 2e 67 65 74 54 65 78 ield this.getTex 0002a580: 74 28 22 61 76 61 74 61 72 22 29 3b 69 66 28 6e t("avatar");if(n 0002a590: 75 6c 6c 3d 3d 74 29 72 65 74 75 72 6e 20 6e 75 ull==t)return nu 0002a5a0: 6c 6c 3b 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 6e ll;for(let n=0;n 0002a5b0: 3c 4b 61 2e 6c 65 6e 67 74 68 3b 6e 2b 2b 29 7b <Ka.length;n++){ 0002a5c0: 63 6f 6e 73 74 20 72 3d 74 2e 6d 61 74 63 68 28 const r=t.match( 0002a5d0: 4b 61 5b 6e 5d 29 3b 69 66 28 6e 75 6c 6c 3d 3d Ka[n]);if(null== 0002a5e0: 72 29 63 6f 6e 74 69 6e 75 65 3b 63 6f 6e 73 74 r)continue;const 0002a5f0: 20 6f 3d 72 5b 31 5d 2e 74 6f 4c 6f 77 65 72 43 o=r[1].toLowerC 0002a600: 61 73 65 28 29 3b 73 77 69 74 63 68 28 6f 29 7b ase();switch(o){ 0002a610: 63 61 73 65 22 68 74 74 70 73 22 3a 72 65 74 75 case"https":retu 0002a620: 72 6e 20 65 2e 70 75 73 68 28 7b 74 79 70 65 3a rn e.push({type: 0002a630: 22 75 72 6c 22 2c 63 6f 6e 74 65 6e 74 3a 74 7d "url",content:t} 0002a640: 29 2c 7b 6c 69 6e 6b 61 67 65 3a 65 2c 75 72 6c ),{linkage:e,url 0002a650: 3a 74 7d 3b 63 61 73 65 22 64 61 74 61 22 3a 72 :t};case"data":r 0002a660: 65 74 75 72 6e 20 65 2e 70 75 73 68 28 7b 74 79 eturn e.push({ty 0002a670: 70 65 3a 22 64 61 74 61 22 2c 63 6f 6e 74 65 6e pe:"data",conten 0002a680: 74 3a 74 7d 29 2c 7b 6c 69 6e 6b 61 67 65 3a 65 t:t}),{linkage:e 0002a690: 2c 75 72 6c 3a 74 7d 3b 63 61 73 65 22 69 70 66 ,url:t};case"ipf 0002a6a0: 73 22 3a 72 65 74 75 72 6e 20 65 2e 70 75 73 68 s":return e.push 0002a6b0: 28 7b 74 79 70 65 3a 22 69 70 66 73 22 2c 63 6f ({type:"ipfs",co 0002a6c0: 6e 74 65 6e 74 3a 74 7d 29 2c 7b 6c 69 6e 6b 61 ntent:t}),{linka 0002a6d0: 67 65 3a 65 2c 75 72 6c 3a 5a 61 28 74 29 7d 3b ge:e,url:Za(t)}; 0002a6e0: 63 61 73 65 22 65 72 63 37 32 31 22 3a 63 61 73 case"erc721":cas 0002a6f0: 65 22 65 72 63 31 31 35 35 22 3a 7b 63 6f 6e 73 e"erc1155":{cons 0002a700: 74 20 6e 3d 22 65 72 63 37 32 31 22 3d 3d 3d 6f t n="erc721"===o 0002a710: 3f 22 30 78 63 38 37 62 35 36 64 64 22 3a 22 30 ?"0xc87b56dd":"0 0002a720: 78 30 65 38 39 33 34 31 63 22 3b 65 2e 70 75 73 x0e89341c";e.pus 0002a730: 68 28 7b 74 79 70 65 3a 6f 2c 63 6f 6e 74 65 6e h({type:o,conten 0002a740: 74 3a 74 7d 29 3b 63 6f 6e 73 74 20 69 3d 74 68 t:t});const i=th 0002a750: 69 73 2e 5f 72 65 73 6f 6c 76 65 64 41 64 64 72 is._resolvedAddr 0002a760: 65 73 73 7c 7c 28 79 69 65 6c 64 20 74 68 69 73 ess||(yield this 0002a770: 2e 67 65 74 41 64 64 72 65 73 73 28 29 29 2c 61 .getAddress()),a 0002a780: 3d 28 72 5b 32 5d 7c 7c 22 22 29 2e 73 70 6c 69 =(r[2]||"").spli 0002a790: 74 28 22 2f 22 29 3b 69 66 28 32 21 3d 3d 61 2e t("/");if(2!==a. 0002a7a0: 6c 65 6e 67 74 68 29 72 65 74 75 72 6e 20 6e 75 length)return nu 0002a7b0: 6c 6c 3b 63 6f 6e 73 74 20 73 3d 79 69 65 6c 64 ll;const s=yield 0002a7c0: 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 66 this.provider.f 0002a7d0: 6f 72 6d 61 74 74 65 72 2e 61 64 64 72 65 73 73 ormatter.address 0002a7e0: 28 61 5b 30 5d 29 2c 6c 3d 46 28 59 2e 66 72 6f (a[0]),l=F(Y.fro 0002a7f0: 6d 28 61 5b 31 5d 29 2e 74 6f 48 65 78 53 74 72 m(a[1]).toHexStr 0002a800: 69 6e 67 28 29 2c 33 32 29 3b 69 66 28 22 65 72 ing(),32);if("er 0002a810: 63 37 32 31 22 3d 3d 3d 6f 29 7b 63 6f 6e 73 74 c721"===o){const 0002a820: 20 74 3d 74 68 69 73 2e 70 72 6f 76 69 64 65 72 t=this.provider 0002a830: 2e 66 6f 72 6d 61 74 74 65 72 2e 63 61 6c 6c 41 .formatter.callA 0002a840: 64 64 72 65 73 73 28 79 69 65 6c 64 20 74 68 69 ddress(yield thi 0002a850: 73 2e 70 72 6f 76 69 64 65 72 2e 63 61 6c 6c 28 s.provider.call( 0002a860: 7b 74 6f 3a 73 2c 64 61 74 61 3a 4d 28 5b 22 30 {to:s,data:M(["0 0002a870: 78 36 33 35 32 32 31 31 65 22 2c 6c 5d 29 7d 29 x6352211e",l])}) 0002a880: 29 3b 69 66 28 69 21 3d 3d 74 29 72 65 74 75 72 );if(i!==t)retur 0002a890: 6e 20 6e 75 6c 6c 3b 65 2e 70 75 73 68 28 7b 74 n null;e.push({t 0002a8a0: 79 70 65 3a 22 6f 77 6e 65 72 22 2c 63 6f 6e 74 ype:"owner",cont 0002a8b0: 65 6e 74 3a 74 7d 29 7d 65 6c 73 65 20 69 66 28 ent:t})}else if( 0002a8c0: 22 65 72 63 31 31 35 35 22 3d 3d 3d 6f 29 7b 63 "erc1155"===o){c 0002a8d0: 6f 6e 73 74 20 74 3d 59 2e 66 72 6f 6d 28 79 69 onst t=Y.from(yi 0002a8e0: 65 6c 64 20 74 68 69 73 2e 70 72 6f 76 69 64 65 eld this.provide 0002a8f0: 72 2e 63 61 6c 6c 28 7b 74 6f 3a 73 2c 64 61 74 r.call({to:s,dat 0002a900: 61 3a 4d 28 5b 22 30 78 30 30 66 64 64 35 38 65 a:M(["0x00fdd58e 0002a910: 22 2c 46 28 69 2c 33 32 29 2c 6c 5d 29 7d 29 29 ",F(i,32),l])})) 0002a920: 3b 69 66 28 74 2e 69 73 5a 65 72 6f 28 29 29 72 ;if(t.isZero())r 0002a930: 65 74 75 72 6e 20 6e 75 6c 6c 3b 65 2e 70 75 73 eturn null;e.pus 0002a940: 68 28 7b 74 79 70 65 3a 22 62 61 6c 61 6e 63 65 h({type:"balance 0002a950: 22 2c 63 6f 6e 74 65 6e 74 3a 74 2e 74 6f 53 74 ",content:t.toSt 0002a960: 72 69 6e 67 28 29 7d 29 7d 63 6f 6e 73 74 20 63 ring()})}const c 0002a970: 3d 7b 74 6f 3a 74 68 69 73 2e 70 72 6f 76 69 64 ={to:this.provid 0002a980: 65 72 2e 66 6f 72 6d 61 74 74 65 72 2e 61 64 64 er.formatter.add 0002a990: 72 65 73 73 28 61 5b 30 5d 29 2c 64 61 74 61 3a ress(a[0]),data: 0002a9a0: 4d 28 5b 6e 2c 6c 5d 29 7d 3b 6c 65 74 20 75 3d M([n,l])};let u= 0002a9b0: 59 61 28 79 69 65 6c 64 20 74 68 69 73 2e 70 72 Ya(yield this.pr 0002a9c0: 6f 76 69 64 65 72 2e 63 61 6c 6c 28 63 29 2c 30 ovider.call(c),0 0002a9d0: 29 3b 69 66 28 6e 75 6c 6c 3d 3d 75 29 72 65 74 );if(null==u)ret 0002a9e0: 75 72 6e 20 6e 75 6c 6c 3b 65 2e 70 75 73 68 28 urn null;e.push( 0002a9f0: 7b 74 79 70 65 3a 22 6d 65 74 61 64 61 74 61 2d {type:"metadata- 0002aa00: 75 72 6c 2d 62 61 73 65 22 2c 63 6f 6e 74 65 6e url-base",conten 0002aa10: 74 3a 75 7d 29 2c 22 65 72 63 31 31 35 35 22 3d t:u}),"erc1155"= 0002aa20: 3d 3d 6f 26 26 28 75 3d 75 2e 72 65 70 6c 61 63 ==o&&(u=u.replac 0002aa30: 65 28 22 7b 69 64 7d 22 2c 6c 2e 73 75 62 73 74 e("{id}",l.subst 0002aa40: 72 69 6e 67 28 32 29 29 2c 65 2e 70 75 73 68 28 ring(2)),e.push( 0002aa50: 7b 74 79 70 65 3a 22 6d 65 74 61 64 61 74 61 2d {type:"metadata- 0002aa60: 75 72 6c 2d 65 78 70 61 6e 64 65 64 22 2c 63 6f url-expanded",co 0002aa70: 6e 74 65 6e 74 3a 75 7d 29 29 2c 75 2e 6d 61 74 ntent:u})),u.mat 0002aa80: 63 68 28 2f 5e 69 70 66 73 3a 2f 69 29 26 26 28 ch(/^ipfs:/i)&&( 0002aa90: 75 3d 5a 61 28 75 29 29 2c 65 2e 70 75 73 68 28 u=Za(u)),e.push( 0002aaa0: 7b 74 79 70 65 3a 22 6d 65 74 61 64 61 74 61 2d {type:"metadata- 0002aab0: 75 72 6c 22 2c 63 6f 6e 74 65 6e 74 3a 75 7d 29 url",content:u}) 0002aac0: 3b 63 6f 6e 73 74 20 64 3d 79 69 65 6c 64 20 77 ;const d=yield w 0002aad0: 61 28 75 29 3b 69 66 28 21 64 29 72 65 74 75 72 a(u);if(!d)retur 0002aae0: 6e 20 6e 75 6c 6c 3b 65 2e 70 75 73 68 28 7b 74 n null;e.push({t 0002aaf0: 79 70 65 3a 22 6d 65 74 61 64 61 74 61 22 2c 63 ype:"metadata",c 0002ab00: 6f 6e 74 65 6e 74 3a 4a 53 4f 4e 2e 73 74 72 69 ontent:JSON.stri 0002ab10: 6e 67 69 66 79 28 64 29 7d 29 3b 6c 65 74 20 70 ngify(d)});let p 0002ab20: 3d 64 2e 69 6d 61 67 65 3b 69 66 28 22 73 74 72 =d.image;if("str 0002ab30: 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 70 29 72 ing"!=typeof p)r 0002ab40: 65 74 75 72 6e 20 6e 75 6c 6c 3b 69 66 28 70 2e eturn null;if(p. 0002ab50: 6d 61 74 63 68 28 2f 5e 28 68 74 74 70 73 3a 5c match(/^(https:\ 0002ab60: 2f 5c 2f 7c 64 61 74 61 3a 29 2f 69 29 29 3b 65 /\/|data:)/i));e 0002ab70: 6c 73 65 7b 69 66 28 6e 75 6c 6c 3d 3d 70 2e 6d lse{if(null==p.m 0002ab80: 61 74 63 68 28 57 61 29 29 72 65 74 75 72 6e 20 atch(Wa))return 0002ab90: 6e 75 6c 6c 3b 65 2e 70 75 73 68 28 7b 74 79 70 null;e.push({typ 0002aba0: 65 3a 22 75 72 6c 2d 69 70 66 73 22 2c 63 6f 6e e:"url-ipfs",con 0002abb0: 74 65 6e 74 3a 70 7d 29 2c 70 3d 5a 61 28 70 29 tent:p}),p=Za(p) 0002abc0: 7d 72 65 74 75 72 6e 20 65 2e 70 75 73 68 28 7b }return e.push({ 0002abd0: 74 79 70 65 3a 22 75 72 6c 22 2c 63 6f 6e 74 65 type:"url",conte 0002abe0: 6e 74 3a 70 7d 29 2c 7b 6c 69 6e 6b 61 67 65 3a nt:p}),{linkage: 0002abf0: 65 2c 75 72 6c 3a 70 7d 7d 7d 7d 7d 63 61 74 63 e,url:p}}}}}catc 0002ac00: 68 28 65 29 7b 7d 72 65 74 75 72 6e 20 6e 75 6c h(e){}return nul 0002ac10: 6c 7d 29 29 7d 67 65 74 43 6f 6e 74 65 6e 74 48 l}))}getContentH 0002ac20: 61 73 68 28 29 7b 72 65 74 75 72 6e 20 4d 61 28 ash(){return Ma( 0002ac30: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 0002ac40: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 0002ac50: 63 6f 6e 73 74 20 65 3d 79 69 65 6c 64 20 74 68 const e=yield th 0002ac60: 69 73 2e 5f 66 65 74 63 68 42 79 74 65 73 28 22 is._fetchBytes(" 0002ac70: 30 78 62 63 31 63 35 38 64 31 22 29 3b 69 66 28 0xbc1c58d1");if( 0002ac80: 6e 75 6c 6c 3d 3d 65 7c 7c 22 30 78 22 3d 3d 3d null==e||"0x"=== 0002ac90: 65 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f e)return null;co 0002aca0: 6e 73 74 20 74 3d 65 2e 6d 61 74 63 68 28 2f 5e nst t=e.match(/^ 0002acb0: 30 78 65 33 30 31 30 31 37 30 28 28 5b 30 2d 39 0xe3010170(([0-9 0002acc0: 61 2d 66 5d 5b 30 2d 39 61 2d 66 5d 29 28 5b 30 a-f][0-9a-f])([0 0002acd0: 2d 39 61 2d 66 5d 5b 30 2d 39 61 2d 66 5d 29 28 -9a-f][0-9a-f])( 0002ace0: 5b 30 2d 39 61 2d 66 5d 2a 29 29 24 2f 29 3b 69 [0-9a-f]*))$/);i 0002acf0: 66 28 74 29 7b 63 6f 6e 73 74 20 65 3d 70 61 72 f(t){const e=par 0002ad00: 73 65 49 6e 74 28 74 5b 33 5d 2c 31 36 29 3b 69 seInt(t[3],16);i 0002ad10: 66 28 74 5b 34 5d 2e 6c 65 6e 67 74 68 3d 3d 3d f(t[4].length=== 0002ad20: 32 2a 65 29 72 65 74 75 72 6e 22 69 70 66 73 3a 2*e)return"ipfs: 0002ad30: 2f 2f 22 2b 62 6f 2e 65 6e 63 6f 64 65 28 22 30 //"+bo.encode("0 0002ad40: 78 22 2b 74 5b 31 5d 29 7d 63 6f 6e 73 74 20 6e x"+t[1])}const n 0002ad50: 3d 65 2e 6d 61 74 63 68 28 2f 5e 30 78 65 35 30 =e.match(/^0xe50 0002ad60: 31 30 31 37 32 28 28 5b 30 2d 39 61 2d 66 5d 5b 10172(([0-9a-f][ 0002ad70: 30 2d 39 61 2d 66 5d 29 28 5b 30 2d 39 61 2d 66 0-9a-f])([0-9a-f 0002ad80: 5d 5b 30 2d 39 61 2d 66 5d 29 28 5b 30 2d 39 61 ][0-9a-f])([0-9a 0002ad90: 2d 66 5d 2a 29 29 24 2f 29 3b 69 66 28 6e 29 7b -f]*))$/);if(n){ 0002ada0: 63 6f 6e 73 74 20 65 3d 70 61 72 73 65 49 6e 74 const e=parseInt 0002adb0: 28 6e 5b 33 5d 2c 31 36 29 3b 69 66 28 6e 5b 34 (n[3],16);if(n[4 0002adc0: 5d 2e 6c 65 6e 67 74 68 3d 3d 3d 32 2a 65 29 72 ].length===2*e)r 0002add0: 65 74 75 72 6e 22 69 70 6e 73 3a 2f 2f 22 2b 62 eturn"ipns://"+b 0002ade0: 6f 2e 65 6e 63 6f 64 65 28 22 30 78 22 2b 6e 5b o.encode("0x"+n[ 0002adf0: 31 5d 29 7d 63 6f 6e 73 74 20 72 3d 65 2e 6d 61 1])}const r=e.ma 0002ae00: 74 63 68 28 2f 5e 30 78 65 34 30 31 30 31 66 61 tch(/^0xe40101fa 0002ae10: 30 31 31 62 32 30 28 5b 30 2d 39 61 2d 66 5d 2a 011b20([0-9a-f]* 0002ae20: 29 24 2f 29 3b 69 66 28 72 26 26 36 34 3d 3d 3d )$/);if(r&&64=== 0002ae30: 72 5b 31 5d 2e 6c 65 6e 67 74 68 29 72 65 74 75 r[1].length)retu 0002ae40: 72 6e 22 62 7a 7a 3a 2f 2f 22 2b 72 5b 31 5d 3b rn"bzz://"+r[1]; 0002ae50: 63 6f 6e 73 74 20 6f 3d 65 2e 6d 61 74 63 68 28 const o=e.match( 0002ae60: 2f 5e 30 78 39 30 62 32 63 36 30 35 28 5b 30 2d /^0x90b2c605([0- 0002ae70: 39 61 2d 66 5d 2a 29 24 2f 29 3b 69 66 28 6f 26 9a-f]*)$/);if(o& 0002ae80: 26 36 38 3d 3d 3d 6f 5b 31 5d 2e 6c 65 6e 67 74 &68===o[1].lengt 0002ae90: 68 29 7b 63 6f 6e 73 74 20 65 3d 7b 22 3d 22 3a h){const e={"=": 0002aea0: 22 22 2c 22 2b 22 3a 22 2d 22 2c 22 2f 22 3a 22 "","+":"-","/":" 0002aeb0: 5f 22 7d 3b 72 65 74 75 72 6e 22 73 69 61 3a 2f _"};return"sia:/ 0002aec0: 2f 22 2b 7a 69 28 22 30 78 22 2b 6f 5b 31 5d 29 /"+zi("0x"+o[1]) 0002aed0: 2e 72 65 70 6c 61 63 65 28 2f 5b 3d 2b 5c 2f 5d .replace(/[=+\/] 0002aee0: 2f 67 2c 28 74 3d 3e 65 5b 74 5d 29 29 7d 72 65 /g,(t=>e[t]))}re 0002aef0: 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 45 72 72 turn Da.throwErr 0002af00: 6f 72 28 22 69 6e 76 61 6c 69 64 20 6f 72 20 75 or("invalid or u 0002af10: 6e 73 75 70 70 6f 72 74 65 64 20 63 6f 6e 74 65 nsupported conte 0002af20: 6e 74 20 68 61 73 68 20 64 61 74 61 22 2c 79 2e nt hash data",y. 0002af30: 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 errors.UNSUPPORT 0002af40: 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 ED_OPERATION,{op 0002af50: 65 72 61 74 69 6f 6e 3a 22 67 65 74 43 6f 6e 74 eration:"getCont 0002af60: 65 6e 74 48 61 73 68 28 29 22 2c 64 61 74 61 3a entHash()",data: 0002af70: 65 7d 29 7d 29 29 7d 67 65 74 54 65 78 74 28 65 e})}))}getText(e 0002af80: 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 ){return Ma(this 0002af90: 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 ,void 0,void 0,( 0002afa0: 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6c 65 74 20 function*(){let 0002afb0: 74 3d 71 65 28 65 29 3b 74 3d 43 28 5b 56 61 28 t=qe(e);t=C([Va( 0002afc0: 36 34 29 2c 56 61 28 74 2e 6c 65 6e 67 74 68 29 64),Va(t.length) 0002afd0: 2c 74 5d 29 2c 74 2e 6c 65 6e 67 74 68 25 33 32 ,t]),t.length%32 0002afe0: 21 3d 30 26 26 28 74 3d 43 28 5b 74 2c 46 28 22 !=0&&(t=C([t,F(" 0002aff0: 30 78 22 2c 33 32 2d 65 2e 6c 65 6e 67 74 68 25 0x",32-e.length% 0002b000: 33 32 29 5d 29 29 3b 63 6f 6e 73 74 20 6e 3d 79 32)]));const n=y 0002b010: 69 65 6c 64 20 74 68 69 73 2e 5f 66 65 74 63 68 ield this._fetch 0002b020: 42 79 74 65 73 28 22 30 78 35 39 64 31 64 34 33 Bytes("0x59d1d43 0002b030: 63 22 2c 52 28 74 29 29 3b 72 65 74 75 72 6e 20 c",R(t));return 0002b040: 6e 75 6c 6c 3d 3d 6e 7c 7c 22 30 78 22 3d 3d 3d null==n||"0x"=== 0002b050: 6e 3f 6e 75 6c 6c 3a 58 65 28 6e 29 7d 29 29 7d n?null:Xe(n)}))} 0002b060: 7d 6c 65 74 20 74 73 3d 6e 75 6c 6c 2c 6e 73 3d }let ts=null,ns= 0002b070: 31 3b 63 6c 61 73 73 20 72 73 20 65 78 74 65 6e 1;class rs exten 0002b080: 64 73 20 61 6e 7b 63 6f 6e 73 74 72 75 63 74 6f ds an{constructo 0002b090: 72 28 65 29 7b 69 66 28 73 75 70 65 72 28 29 2c r(e){if(super(), 0002b0a0: 74 68 69 73 2e 5f 65 76 65 6e 74 73 3d 5b 5d 2c this._events=[], 0002b0b0: 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 3d 7b 62 this._emitted={b 0002b0c0: 6c 6f 63 6b 3a 2d 32 7d 2c 74 68 69 73 2e 64 69 lock:-2},this.di 0002b0d0: 73 61 62 6c 65 43 63 69 70 52 65 61 64 3d 21 31 sableCcipRead=!1 0002b0e0: 2c 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 3d ,this.formatter= 0002b0f0: 6e 65 77 2e 74 61 72 67 65 74 2e 67 65 74 46 6f new.target.getFo 0002b100: 72 6d 61 74 74 65 72 28 29 2c 74 65 28 74 68 69 rmatter(),te(thi 0002b110: 73 2c 22 61 6e 79 4e 65 74 77 6f 72 6b 22 2c 22 s,"anyNetwork"," 0002b120: 61 6e 79 22 3d 3d 3d 65 29 2c 74 68 69 73 2e 61 any"===e),this.a 0002b130: 6e 79 4e 65 74 77 6f 72 6b 26 26 28 65 3d 74 68 nyNetwork&&(e=th 0002b140: 69 73 2e 64 65 74 65 63 74 4e 65 74 77 6f 72 6b is.detectNetwork 0002b150: 28 29 29 2c 65 20 69 6e 73 74 61 6e 63 65 6f 66 ()),e instanceof 0002b160: 20 50 72 6f 6d 69 73 65 29 74 68 69 73 2e 5f 6e Promise)this._n 0002b170: 65 74 77 6f 72 6b 50 72 6f 6d 69 73 65 3d 65 2c etworkPromise=e, 0002b180: 65 2e 63 61 74 63 68 28 28 65 3d 3e 7b 7d 29 29 e.catch((e=>{})) 0002b190: 2c 74 68 69 73 2e 5f 72 65 61 64 79 28 29 2e 63 ,this._ready().c 0002b1a0: 61 74 63 68 28 28 65 3d 3e 7b 7d 29 29 3b 65 6c atch((e=>{}));el 0002b1b0: 73 65 7b 63 6f 6e 73 74 20 74 3d 6e 65 28 6e 65 se{const t=ne(ne 0002b1c0: 77 2e 74 61 72 67 65 74 2c 22 67 65 74 4e 65 74 w.target,"getNet 0002b1d0: 77 6f 72 6b 22 29 28 65 29 3b 74 3f 28 74 65 28 work")(e);t?(te( 0002b1e0: 74 68 69 73 2c 22 5f 6e 65 74 77 6f 72 6b 22 2c this,"_network", 0002b1f0: 74 29 2c 74 68 69 73 2e 65 6d 69 74 28 22 6e 65 t),this.emit("ne 0002b200: 74 77 6f 72 6b 22 2c 74 2c 6e 75 6c 6c 29 29 3a twork",t,null)): 0002b210: 44 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Da.throwArgument 0002b220: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 6e Error("invalid n 0002b230: 65 74 77 6f 72 6b 22 2c 22 6e 65 74 77 6f 72 6b etwork","network 0002b240: 22 2c 65 29 7d 74 68 69 73 2e 5f 6d 61 78 49 6e ",e)}this._maxIn 0002b250: 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 6d 62 65 ternalBlockNumbe 0002b260: 72 3d 2d 31 30 32 34 2c 74 68 69 73 2e 5f 6c 61 r=-1024,this._la 0002b270: 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 2d 32 stBlockNumber=-2 0002b280: 2c 74 68 69 73 2e 5f 6d 61 78 46 69 6c 74 65 72 ,this._maxFilter 0002b290: 42 6c 6f 63 6b 52 61 6e 67 65 3d 31 30 2c 74 68 BlockRange=10,th 0002b2a0: 69 73 2e 5f 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 is._pollingInter 0002b2b0: 76 61 6c 3d 34 65 33 2c 74 68 69 73 2e 5f 66 61 val=4e3,this._fa 0002b2c0: 73 74 51 75 65 72 79 44 61 74 65 3d 30 7d 5f 72 stQueryDate=0}_r 0002b2d0: 65 61 64 79 28 29 7b 72 65 74 75 72 6e 20 4d 61 eady(){return Ma 0002b2e0: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 0002b2f0: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 0002b300: 7b 69 66 28 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f {if(null==this._ 0002b310: 6e 65 74 77 6f 72 6b 29 7b 6c 65 74 20 65 3d 6e network){let e=n 0002b320: 75 6c 6c 3b 69 66 28 74 68 69 73 2e 5f 6e 65 74 ull;if(this._net 0002b330: 77 6f 72 6b 50 72 6f 6d 69 73 65 29 74 72 79 7b workPromise)try{ 0002b340: 65 3d 79 69 65 6c 64 20 74 68 69 73 2e 5f 6e 65 e=yield this._ne 0002b350: 74 77 6f 72 6b 50 72 6f 6d 69 73 65 7d 63 61 74 tworkPromise}cat 0002b360: 63 68 28 65 29 7b 7d 6e 75 6c 6c 3d 3d 65 26 26 ch(e){}null==e&& 0002b370: 28 65 3d 79 69 65 6c 64 20 74 68 69 73 2e 64 65 (e=yield this.de 0002b380: 74 65 63 74 4e 65 74 77 6f 72 6b 28 29 29 2c 65 tectNetwork()),e 0002b390: 7c 7c 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 ||Da.throwError( 0002b3a0: 22 6e 6f 20 6e 65 74 77 6f 72 6b 20 64 65 74 65 "no network dete 0002b3b0: 63 74 65 64 22 2c 79 2e 65 72 72 6f 72 73 2e 55 cted",y.errors.U 0002b3c0: 4e 4b 4e 4f 57 4e 5f 45 52 52 4f 52 2c 7b 7d 29 NKNOWN_ERROR,{}) 0002b3d0: 2c 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f 6e 65 74 ,null==this._net 0002b3e0: 77 6f 72 6b 26 26 28 74 68 69 73 2e 61 6e 79 4e work&&(this.anyN 0002b3f0: 65 74 77 6f 72 6b 3f 74 68 69 73 2e 5f 6e 65 74 etwork?this._net 0002b400: 77 6f 72 6b 3d 65 3a 74 65 28 74 68 69 73 2c 22 work=e:te(this," 0002b410: 5f 6e 65 74 77 6f 72 6b 22 2c 65 29 2c 74 68 69 _network",e),thi 0002b420: 73 2e 65 6d 69 74 28 22 6e 65 74 77 6f 72 6b 22 s.emit("network" 0002b430: 2c 65 2c 6e 75 6c 6c 29 29 7d 72 65 74 75 72 6e ,e,null))}return 0002b440: 20 74 68 69 73 2e 5f 6e 65 74 77 6f 72 6b 7d 29 this._network}) 0002b450: 29 7d 67 65 74 20 72 65 61 64 79 28 29 7b 72 65 )}get ready(){re 0002b460: 74 75 72 6e 20 78 61 28 28 28 29 3d 3e 74 68 69 turn xa((()=>thi 0002b470: 73 2e 5f 72 65 61 64 79 28 29 2e 74 68 65 6e 28 s._ready().then( 0002b480: 28 65 3d 3e 65 29 2c 28 65 3d 3e 7b 69 66 28 65 (e=>e),(e=>{if(e 0002b490: 2e 63 6f 64 65 21 3d 3d 79 2e 65 72 72 6f 72 73 .code!==y.errors 0002b4a0: 2e 4e 45 54 57 4f 52 4b 5f 45 52 52 4f 52 7c 7c .NETWORK_ERROR|| 0002b4b0: 22 6e 6f 4e 65 74 77 6f 72 6b 22 21 3d 3d 65 2e "noNetwork"!==e. 0002b4c0: 65 76 65 6e 74 29 74 68 72 6f 77 20 65 7d 29 29 event)throw e})) 0002b4d0: 29 29 7d 73 74 61 74 69 63 20 67 65 74 46 6f 72 ))}static getFor 0002b4e0: 6d 61 74 74 65 72 28 29 7b 72 65 74 75 72 6e 20 matter(){return 0002b4f0: 6e 75 6c 6c 3d 3d 74 73 26 26 28 74 73 3d 6e 65 null==ts&&(ts=ne 0002b500: 77 20 49 61 29 2c 74 73 7d 73 74 61 74 69 63 20 w Ia),ts}static 0002b510: 67 65 74 4e 65 74 77 6f 72 6b 28 65 29 7b 72 65 getNetwork(e){re 0002b520: 74 75 72 6e 20 42 69 28 6e 75 6c 6c 3d 3d 65 3f turn Bi(null==e? 0002b530: 22 68 6f 6d 65 73 74 65 61 64 22 3a 65 29 7d 63 "homestead":e)}c 0002b540: 63 69 70 52 65 61 64 46 65 74 63 68 28 65 2c 74 cipReadFetch(e,t 0002b550: 2c 6e 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 ,n){return Ma(th 0002b560: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 0002b570: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 69 66 ,(function*(){if 0002b580: 28 74 68 69 73 2e 64 69 73 61 62 6c 65 43 63 69 (this.disableCci 0002b590: 70 52 65 61 64 7c 7c 30 3d 3d 3d 6e 2e 6c 65 6e pRead||0===n.len 0002b5a0: 67 74 68 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b gth)return null; 0002b5b0: 63 6f 6e 73 74 20 72 3d 65 2e 74 6f 2e 74 6f 4c const r=e.to.toL 0002b5c0: 6f 77 65 72 43 61 73 65 28 29 2c 6f 3d 74 2e 74 owerCase(),o=t.t 0002b5d0: 6f 4c 6f 77 65 72 43 61 73 65 28 29 2c 69 3d 5b oLowerCase(),i=[ 0002b5e0: 5d 3b 66 6f 72 28 6c 65 74 20 65 3d 30 3b 65 3c ];for(let e=0;e< 0002b5f0: 6e 2e 6c 65 6e 67 74 68 3b 65 2b 2b 29 7b 63 6f n.length;e++){co 0002b600: 6e 73 74 20 74 3d 6e 5b 65 5d 2c 61 3d 74 2e 72 nst t=n[e],a=t.r 0002b610: 65 70 6c 61 63 65 28 22 7b 73 65 6e 64 65 72 7d eplace("{sender} 0002b620: 22 2c 72 29 2e 72 65 70 6c 61 63 65 28 22 7b 64 ",r).replace("{d 0002b630: 61 74 61 7d 22 2c 6f 29 2c 73 3d 74 2e 69 6e 64 ata}",o),s=t.ind 0002b640: 65 78 4f 66 28 22 7b 64 61 74 61 7d 22 29 3e 3d exOf("{data}")>= 0002b650: 30 3f 6e 75 6c 6c 3a 4a 53 4f 4e 2e 73 74 72 69 0?null:JSON.stri 0002b660: 6e 67 69 66 79 28 7b 64 61 74 61 3a 6f 2c 73 65 ngify({data:o,se 0002b670: 6e 64 65 72 3a 72 7d 29 2c 6c 3d 79 69 65 6c 64 nder:r}),l=yield 0002b680: 20 77 61 28 7b 75 72 6c 3a 61 2c 65 72 72 6f 72 wa({url:a,error 0002b690: 50 61 73 73 54 68 72 6f 75 67 68 3a 21 30 7d 2c PassThrough:!0}, 0002b6a0: 73 2c 28 28 65 2c 74 29 3d 3e 28 65 2e 73 74 61 s,((e,t)=>(e.sta 0002b6b0: 74 75 73 3d 74 2e 73 74 61 74 75 73 43 6f 64 65 tus=t.statusCode 0002b6c0: 2c 65 29 29 29 3b 69 66 28 6c 2e 64 61 74 61 29 ,e)));if(l.data) 0002b6d0: 72 65 74 75 72 6e 20 6c 2e 64 61 74 61 3b 63 6f return l.data;co 0002b6e0: 6e 73 74 20 63 3d 6c 2e 6d 65 73 73 61 67 65 7c nst c=l.message| 0002b6f0: 7c 22 75 6e 6b 6e 6f 77 6e 20 65 72 72 6f 72 22 |"unknown error" 0002b700: 3b 69 66 28 6c 2e 73 74 61 74 75 73 3e 3d 34 30 ;if(l.status>=40 0002b710: 30 26 26 6c 2e 73 74 61 74 75 73 3c 35 30 30 29 0&&l.status<500) 0002b720: 72 65 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 45 return Da.throwE 0002b730: 72 72 6f 72 28 60 72 65 73 70 6f 6e 73 65 20 6e rror(`response n 0002b740: 6f 74 20 66 6f 75 6e 64 20 64 75 72 69 6e 67 20 ot found during 0002b750: 43 43 49 50 20 66 65 74 63 68 3a 20 24 7b 63 7d CCIP fetch: ${c} 0002b760: 60 2c 79 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 `,y.errors.SERVE 0002b770: 52 5f 45 52 52 4f 52 2c 7b 75 72 6c 3a 74 2c 65 R_ERROR,{url:t,e 0002b780: 72 72 6f 72 4d 65 73 73 61 67 65 3a 63 7d 29 3b rrorMessage:c}); 0002b790: 69 2e 70 75 73 68 28 63 29 7d 72 65 74 75 72 6e i.push(c)}return 0002b7a0: 20 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 60 Da.throwError(` 0002b7b0: 65 72 72 6f 72 20 65 6e 63 6f 75 6e 74 65 72 65 error encountere 0002b7c0: 64 20 64 75 72 69 6e 67 20 43 43 49 50 20 66 65 d during CCIP fe 0002b7d0: 74 63 68 3a 20 24 7b 69 2e 6d 61 70 28 28 65 3d tch: ${i.map((e= 0002b7e0: 3e 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 >JSON.stringify( 0002b7f0: 65 29 29 29 2e 6a 6f 69 6e 28 22 2c 20 22 29 7d e))).join(", ")} 0002b800: 60 2c 79 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 `,y.errors.SERVE 0002b810: 52 5f 45 52 52 4f 52 2c 7b 75 72 6c 73 3a 6e 2c R_ERROR,{urls:n, 0002b820: 65 72 72 6f 72 4d 65 73 73 61 67 65 73 3a 69 7d errorMessages:i} 0002b830: 29 7d 29 29 7d 5f 67 65 74 49 6e 74 65 72 6e 61 )}))}_getInterna 0002b840: 6c 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 65 29 7b lBlockNumber(e){ 0002b850: 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 return Ma(this,v 0002b860: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 0002b870: 6e 63 74 69 6f 6e 2a 28 29 7b 69 66 28 79 69 65 nction*(){if(yie 0002b880: 6c 64 20 74 68 69 73 2e 5f 72 65 61 64 79 28 29 ld this._ready() 0002b890: 2c 65 3e 30 29 66 6f 72 28 3b 74 68 69 73 2e 5f ,e>0)for(;this._ 0002b8a0: 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 6d internalBlockNum 0002b8b0: 62 65 72 3b 29 7b 63 6f 6e 73 74 20 74 3d 74 68 ber;){const t=th 0002b8c0: 69 73 2e 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 is._internalBloc 0002b8d0: 6b 4e 75 6d 62 65 72 3b 74 72 79 7b 63 6f 6e 73 kNumber;try{cons 0002b8e0: 74 20 6e 3d 79 69 65 6c 64 20 74 3b 69 66 28 42 t n=yield t;if(B 0002b8f0: 61 28 29 2d 6e 2e 72 65 73 70 54 69 6d 65 3c 3d a()-n.respTime<= 0002b900: 65 29 72 65 74 75 72 6e 20 6e 2e 62 6c 6f 63 6b e)return n.block 0002b910: 4e 75 6d 62 65 72 3b 62 72 65 61 6b 7d 63 61 74 Number;break}cat 0002b920: 63 68 28 65 29 7b 69 66 28 74 68 69 73 2e 5f 69 ch(e){if(this._i 0002b930: 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 6d 62 nternalBlockNumb 0002b940: 65 72 3d 3d 3d 74 29 62 72 65 61 6b 7d 7d 63 6f er===t)break}}co 0002b950: 6e 73 74 20 74 3d 42 61 28 29 2c 6e 3d 72 65 28 nst t=Ba(),n=re( 0002b960: 7b 62 6c 6f 63 6b 4e 75 6d 62 65 72 3a 74 68 69 {blockNumber:thi 0002b970: 73 2e 70 65 72 66 6f 72 6d 28 22 67 65 74 42 6c s.perform("getBl 0002b980: 6f 63 6b 4e 75 6d 62 65 72 22 2c 7b 7d 29 2c 6e ockNumber",{}),n 0002b990: 65 74 77 6f 72 6b 45 72 72 6f 72 3a 74 68 69 73 etworkError:this 0002b9a0: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 2e 74 68 .getNetwork().th 0002b9b0: 65 6e 28 28 65 3d 3e 6e 75 6c 6c 29 2c 28 65 3d en((e=>null),(e= 0002b9c0: 3e 65 29 29 7d 29 2e 74 68 65 6e 28 28 28 7b 62 >e))}).then((({b 0002b9d0: 6c 6f 63 6b 4e 75 6d 62 65 72 3a 65 2c 6e 65 74 lockNumber:e,net 0002b9e0: 77 6f 72 6b 45 72 72 6f 72 3a 72 7d 29 3d 3e 7b workError:r})=>{ 0002b9f0: 69 66 28 72 29 74 68 72 6f 77 20 74 68 69 73 2e if(r)throw this. 0002ba00: 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 _internalBlockNu 0002ba10: 6d 62 65 72 3d 3d 3d 6e 26 26 28 74 68 69 73 2e mber===n&&(this. 0002ba20: 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 _internalBlockNu 0002ba30: 6d 62 65 72 3d 6e 75 6c 6c 29 2c 72 3b 63 6f 6e mber=null),r;con 0002ba40: 73 74 20 6f 3d 42 61 28 29 3b 72 65 74 75 72 6e st o=Ba();return 0002ba50: 28 65 3d 59 2e 66 72 6f 6d 28 65 29 2e 74 6f 4e (e=Y.from(e).toN 0002ba60: 75 6d 62 65 72 28 29 29 3c 74 68 69 73 2e 5f 6d umber())<this._m 0002ba70: 61 78 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e axInternalBlockN 0002ba80: 75 6d 62 65 72 26 26 28 65 3d 74 68 69 73 2e 5f umber&&(e=this._ 0002ba90: 6d 61 78 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b maxInternalBlock 0002baa0: 4e 75 6d 62 65 72 29 2c 74 68 69 73 2e 5f 6d 61 Number),this._ma 0002bab0: 78 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 xInternalBlockNu 0002bac0: 6d 62 65 72 3d 65 2c 74 68 69 73 2e 5f 73 65 74 mber=e,this._set 0002bad0: 46 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 FastBlockNumber( 0002bae0: 65 29 2c 7b 62 6c 6f 63 6b 4e 75 6d 62 65 72 3a e),{blockNumber: 0002baf0: 65 2c 72 65 71 54 69 6d 65 3a 74 2c 72 65 73 70 e,reqTime:t,resp 0002bb00: 54 69 6d 65 3a 6f 7d 7d 29 29 3b 72 65 74 75 72 Time:o}}));retur 0002bb10: 6e 20 74 68 69 73 2e 5f 69 6e 74 65 72 6e 61 6c n this._internal 0002bb20: 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 6e 2c 6e 2e BlockNumber=n,n. 0002bb30: 63 61 74 63 68 28 28 65 3d 3e 7b 74 68 69 73 2e catch((e=>{this. 0002bb40: 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 _internalBlockNu 0002bb50: 6d 62 65 72 3d 3d 3d 6e 26 26 28 74 68 69 73 2e mber===n&&(this. 0002bb60: 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 _internalBlockNu 0002bb70: 6d 62 65 72 3d 6e 75 6c 6c 29 7d 29 29 2c 28 79 mber=null)})),(y 0002bb80: 69 65 6c 64 20 6e 29 2e 62 6c 6f 63 6b 4e 75 6d ield n).blockNum 0002bb90: 62 65 72 7d 29 29 7d 70 6f 6c 6c 28 29 7b 72 65 ber}))}poll(){re 0002bba0: 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 turn Ma(this,voi 0002bbb0: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 0002bbc0: 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 65 3d tion*(){const e= 0002bbd0: 6e 73 2b 2b 2c 74 3d 5b 5d 3b 6c 65 74 20 6e 3d ns++,t=[];let n= 0002bbe0: 6e 75 6c 6c 3b 74 72 79 7b 6e 3d 79 69 65 6c 64 null;try{n=yield 0002bbf0: 20 74 68 69 73 2e 5f 67 65 74 49 6e 74 65 72 6e this._getIntern 0002bc00: 61 6c 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 31 30 alBlockNumber(10 0002bc10: 30 2b 74 68 69 73 2e 70 6f 6c 6c 69 6e 67 49 6e 0+this.pollingIn 0002bc20: 74 65 72 76 61 6c 2f 32 29 7d 63 61 74 63 68 28 terval/2)}catch( 0002bc30: 65 29 7b 72 65 74 75 72 6e 20 76 6f 69 64 20 74 e){return void t 0002bc40: 68 69 73 2e 65 6d 69 74 28 22 65 72 72 6f 72 22 his.emit("error" 0002bc50: 2c 65 29 7d 69 66 28 74 68 69 73 2e 5f 73 65 74 ,e)}if(this._set 0002bc60: 46 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 FastBlockNumber( 0002bc70: 6e 29 2c 74 68 69 73 2e 65 6d 69 74 28 22 70 6f n),this.emit("po 0002bc80: 6c 6c 22 2c 65 2c 6e 29 2c 6e 21 3d 3d 74 68 69 ll",e,n),n!==thi 0002bc90: 73 2e 5f 6c 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 s._lastBlockNumb 0002bca0: 65 72 29 7b 69 66 28 2d 32 3d 3d 3d 74 68 69 73 er){if(-2===this 0002bcb0: 2e 5f 65 6d 69 74 74 65 64 2e 62 6c 6f 63 6b 26 ._emitted.block& 0002bcc0: 26 28 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 2e &(this._emitted. 0002bcd0: 62 6c 6f 63 6b 3d 6e 2d 31 29 2c 4d 61 74 68 2e block=n-1),Math. 0002bce0: 61 62 73 28 74 68 69 73 2e 5f 65 6d 69 74 74 65 abs(this._emitte 0002bcf0: 64 2e 62 6c 6f 63 6b 2d 6e 29 3e 31 65 33 29 44 d.block-n)>1e3)D 0002bd00: 61 2e 77 61 72 6e 28 60 6e 65 74 77 6f 72 6b 20 a.warn(`network 0002bd10: 62 6c 6f 63 6b 20 73 6b 65 77 20 64 65 74 65 63 block skew detec 0002bd20: 74 65 64 3b 20 73 6b 69 70 70 69 6e 67 20 62 6c ted; skipping bl 0002bd30: 6f 63 6b 20 65 76 65 6e 74 73 20 28 65 6d 69 74 ock events (emit 0002bd40: 74 65 64 3d 24 7b 74 68 69 73 2e 5f 65 6d 69 74 ted=${this._emit 0002bd50: 74 65 64 2e 62 6c 6f 63 6b 7d 20 62 6c 6f 63 6b ted.block} block 0002bd60: 4e 75 6d 62 65 72 24 7b 6e 7d 29 60 29 2c 74 68 Number${n})`),th 0002bd70: 69 73 2e 65 6d 69 74 28 22 65 72 72 6f 72 22 2c is.emit("error", 0002bd80: 44 61 2e 6d 61 6b 65 45 72 72 6f 72 28 22 6e 65 Da.makeError("ne 0002bd90: 74 77 6f 72 6b 20 62 6c 6f 63 6b 20 73 6b 65 77 twork block skew 0002bda0: 20 64 65 74 65 63 74 65 64 22 2c 79 2e 65 72 72 detected",y.err 0002bdb0: 6f 72 73 2e 4e 45 54 57 4f 52 4b 5f 45 52 52 4f ors.NETWORK_ERRO 0002bdc0: 52 2c 7b 62 6c 6f 63 6b 4e 75 6d 62 65 72 3a 6e R,{blockNumber:n 0002bdd0: 2c 65 76 65 6e 74 3a 22 62 6c 6f 63 6b 53 6b 65 ,event:"blockSke 0002bde0: 77 22 2c 70 72 65 76 69 6f 75 73 42 6c 6f 63 6b w",previousBlock 0002bdf0: 4e 75 6d 62 65 72 3a 74 68 69 73 2e 5f 65 6d 69 Number:this._emi 0002be00: 74 74 65 64 2e 62 6c 6f 63 6b 7d 29 29 2c 74 68 tted.block})),th 0002be10: 69 73 2e 65 6d 69 74 28 22 62 6c 6f 63 6b 22 2c is.emit("block", 0002be20: 6e 29 3b 65 6c 73 65 20 66 6f 72 28 6c 65 74 20 n);else for(let 0002be30: 65 3d 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 2e e=this._emitted. 0002be40: 62 6c 6f 63 6b 2b 31 3b 65 3c 3d 6e 3b 65 2b 2b block+1;e<=n;e++ 0002be50: 29 74 68 69 73 2e 65 6d 69 74 28 22 62 6c 6f 63 )this.emit("bloc 0002be60: 6b 22 2c 65 29 3b 74 68 69 73 2e 5f 65 6d 69 74 k",e);this._emit 0002be70: 74 65 64 2e 62 6c 6f 63 6b 21 3d 3d 6e 26 26 28 ted.block!==n&&( 0002be80: 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 2e 62 6c this._emitted.bl 0002be90: 6f 63 6b 3d 6e 2c 4f 62 6a 65 63 74 2e 6b 65 79 ock=n,Object.key 0002bea0: 73 28 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 29 s(this._emitted) 0002beb0: 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 69 66 .forEach((e=>{if 0002bec0: 28 22 62 6c 6f 63 6b 22 3d 3d 3d 65 29 72 65 74 ("block"===e)ret 0002bed0: 75 72 6e 3b 63 6f 6e 73 74 20 74 3d 74 68 69 73 urn;const t=this 0002bee0: 2e 5f 65 6d 69 74 74 65 64 5b 65 5d 3b 22 70 65 ._emitted[e];"pe 0002bef0: 6e 64 69 6e 67 22 21 3d 3d 74 26 26 6e 2d 74 3e nding"!==t&&n-t> 0002bf00: 31 32 26 26 64 65 6c 65 74 65 20 74 68 69 73 2e 12&&delete this. 0002bf10: 5f 65 6d 69 74 74 65 64 5b 65 5d 7d 29 29 29 2c _emitted[e]}))), 0002bf20: 2d 32 3d 3d 3d 74 68 69 73 2e 5f 6c 61 73 74 42 -2===this._lastB 0002bf30: 6c 6f 63 6b 4e 75 6d 62 65 72 26 26 28 74 68 69 lockNumber&&(thi 0002bf40: 73 2e 5f 6c 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 s._lastBlockNumb 0002bf50: 65 72 3d 6e 2d 31 29 2c 74 68 69 73 2e 5f 65 76 er=n-1),this._ev 0002bf60: 65 6e 74 73 2e 66 6f 72 45 61 63 68 28 28 65 3d ents.forEach((e= 0002bf70: 3e 7b 73 77 69 74 63 68 28 65 2e 74 79 70 65 29 >{switch(e.type) 0002bf80: 7b 63 61 73 65 22 74 78 22 3a 7b 63 6f 6e 73 74 {case"tx":{const 0002bf90: 20 6e 3d 65 2e 68 61 73 68 3b 6c 65 74 20 72 3d n=e.hash;let r= 0002bfa0: 74 68 69 73 2e 67 65 74 54 72 61 6e 73 61 63 74 this.getTransact 0002bfb0: 69 6f 6e 52 65 63 65 69 70 74 28 6e 29 2e 74 68 ionReceipt(n).th 0002bfc0: 65 6e 28 28 65 3d 3e 65 26 26 6e 75 6c 6c 21 3d en((e=>e&&null!= 0002bfd0: 65 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 3f 28 74 e.blockNumber?(t 0002bfe0: 68 69 73 2e 5f 65 6d 69 74 74 65 64 5b 22 74 3a his._emitted["t: 0002bff0: 22 2b 6e 5d 3d 65 2e 62 6c 6f 63 6b 4e 75 6d 62 "+n]=e.blockNumb 0002c000: 65 72 2c 74 68 69 73 2e 65 6d 69 74 28 6e 2c 65 er,this.emit(n,e 0002c010: 29 2c 6e 75 6c 6c 29 3a 6e 75 6c 6c 29 29 2e 63 ),null):null)).c 0002c020: 61 74 63 68 28 28 65 3d 3e 7b 74 68 69 73 2e 65 atch((e=>{this.e 0002c030: 6d 69 74 28 22 65 72 72 6f 72 22 2c 65 29 7d 29 mit("error",e)}) 0002c040: 29 3b 74 2e 70 75 73 68 28 72 29 3b 62 72 65 61 );t.push(r);brea 0002c050: 6b 7d 63 61 73 65 22 66 69 6c 74 65 72 22 3a 69 k}case"filter":i 0002c060: 66 28 21 65 2e 5f 69 6e 66 6c 69 67 68 74 29 7b f(!e._inflight){ 0002c070: 65 2e 5f 69 6e 66 6c 69 67 68 74 3d 21 30 2c 2d e._inflight=!0,- 0002c080: 32 3d 3d 3d 65 2e 5f 6c 61 73 74 42 6c 6f 63 6b 2===e._lastBlock 0002c090: 4e 75 6d 62 65 72 26 26 28 65 2e 5f 6c 61 73 74 Number&&(e._last 0002c0a0: 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 6e 2d 31 29 BlockNumber=n-1) 0002c0b0: 3b 63 6f 6e 73 74 20 72 3d 65 2e 66 69 6c 74 65 ;const r=e.filte 0002c0c0: 72 3b 72 2e 66 72 6f 6d 42 6c 6f 63 6b 3d 65 2e r;r.fromBlock=e. 0002c0d0: 5f 6c 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 _lastBlockNumber 0002c0e0: 2b 31 2c 72 2e 74 6f 42 6c 6f 63 6b 3d 6e 3b 63 +1,r.toBlock=n;c 0002c0f0: 6f 6e 73 74 20 6f 3d 72 2e 74 6f 42 6c 6f 63 6b onst o=r.toBlock 0002c100: 2d 74 68 69 73 2e 5f 6d 61 78 46 69 6c 74 65 72 -this._maxFilter 0002c110: 42 6c 6f 63 6b 52 61 6e 67 65 3b 6f 3e 72 2e 66 BlockRange;o>r.f 0002c120: 72 6f 6d 42 6c 6f 63 6b 26 26 28 72 2e 66 72 6f romBlock&&(r.fro 0002c130: 6d 42 6c 6f 63 6b 3d 6f 29 2c 72 2e 66 72 6f 6d mBlock=o),r.from 0002c140: 42 6c 6f 63 6b 3c 30 26 26 28 72 2e 66 72 6f 6d Block<0&&(r.from 0002c150: 42 6c 6f 63 6b 3d 30 29 3b 63 6f 6e 73 74 20 69 Block=0);const i 0002c160: 3d 74 68 69 73 2e 67 65 74 4c 6f 67 73 28 72 29 =this.getLogs(r) 0002c170: 2e 74 68 65 6e 28 28 74 3d 3e 7b 65 2e 5f 69 6e .then((t=>{e._in 0002c180: 66 6c 69 67 68 74 3d 21 31 2c 30 21 3d 3d 74 2e flight=!1,0!==t. 0002c190: 6c 65 6e 67 74 68 26 26 74 2e 66 6f 72 45 61 63 length&&t.forEac 0002c1a0: 68 28 28 74 3d 3e 7b 74 2e 62 6c 6f 63 6b 4e 75 h((t=>{t.blockNu 0002c1b0: 6d 62 65 72 3e 65 2e 5f 6c 61 73 74 42 6c 6f 63 mber>e._lastBloc 0002c1c0: 6b 4e 75 6d 62 65 72 26 26 28 65 2e 5f 6c 61 73 kNumber&&(e._las 0002c1d0: 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 74 2e 62 tBlockNumber=t.b 0002c1e0: 6c 6f 63 6b 4e 75 6d 62 65 72 29 2c 74 68 69 73 lockNumber),this 0002c1f0: 2e 5f 65 6d 69 74 74 65 64 5b 22 62 3a 22 2b 74 ._emitted["b:"+t 0002c200: 2e 62 6c 6f 63 6b 48 61 73 68 5d 3d 74 2e 62 6c .blockHash]=t.bl 0002c210: 6f 63 6b 4e 75 6d 62 65 72 2c 74 68 69 73 2e 5f ockNumber,this._ 0002c220: 65 6d 69 74 74 65 64 5b 22 74 3a 22 2b 74 2e 74 emitted["t:"+t.t 0002c230: 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 68 5d 3d ransactionHash]= 0002c240: 74 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 2c 74 68 t.blockNumber,th 0002c250: 69 73 2e 65 6d 69 74 28 72 2c 74 29 7d 29 29 7d is.emit(r,t)}))} 0002c260: 29 29 2e 63 61 74 63 68 28 28 74 3d 3e 7b 74 68 )).catch((t=>{th 0002c270: 69 73 2e 65 6d 69 74 28 22 65 72 72 6f 72 22 2c is.emit("error", 0002c280: 74 29 2c 65 2e 5f 69 6e 66 6c 69 67 68 74 3d 21 t),e._inflight=! 0002c290: 31 7d 29 29 3b 74 2e 70 75 73 68 28 69 29 7d 7d 1}));t.push(i)}} 0002c2a0: 7d 29 29 2c 74 68 69 73 2e 5f 6c 61 73 74 42 6c })),this._lastBl 0002c2b0: 6f 63 6b 4e 75 6d 62 65 72 3d 6e 2c 50 72 6f 6d ockNumber=n,Prom 0002c2c0: 69 73 65 2e 61 6c 6c 28 74 29 2e 74 68 65 6e 28 ise.all(t).then( 0002c2d0: 28 28 29 3d 3e 7b 74 68 69 73 2e 65 6d 69 74 28 (()=>{this.emit( 0002c2e0: 22 64 69 64 50 6f 6c 6c 22 2c 65 29 7d 29 29 2e "didPoll",e)})). 0002c2f0: 63 61 74 63 68 28 28 65 3d 3e 7b 74 68 69 73 2e catch((e=>{this. 0002c300: 65 6d 69 74 28 22 65 72 72 6f 72 22 2c 65 29 7d emit("error",e)} 0002c310: 29 29 7d 65 6c 73 65 20 74 68 69 73 2e 65 6d 69 ))}else this.emi 0002c320: 74 28 22 64 69 64 50 6f 6c 6c 22 2c 65 29 7d 29 t("didPoll",e)}) 0002c330: 29 7d 72 65 73 65 74 45 76 65 6e 74 73 42 6c 6f )}resetEventsBlo 0002c340: 63 6b 28 65 29 7b 74 68 69 73 2e 5f 6c 61 73 74 ck(e){this._last 0002c350: 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 65 2d 31 2c BlockNumber=e-1, 0002c360: 74 68 69 73 2e 70 6f 6c 6c 69 6e 67 26 26 74 68 this.polling&&th 0002c370: 69 73 2e 70 6f 6c 6c 28 29 7d 67 65 74 20 6e 65 is.poll()}get ne 0002c380: 74 77 6f 72 6b 28 29 7b 72 65 74 75 72 6e 20 74 twork(){return t 0002c390: 68 69 73 2e 5f 6e 65 74 77 6f 72 6b 7d 64 65 74 his._network}det 0002c3a0: 65 63 74 4e 65 74 77 6f 72 6b 28 29 7b 72 65 74 ectNetwork(){ret 0002c3b0: 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 urn Ma(this,void 0002c3c0: 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 0,void 0,(funct 0002c3d0: 69 6f 6e 2a 28 29 7b 72 65 74 75 72 6e 20 44 61 ion*(){return Da 0002c3e0: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 70 72 6f .throwError("pro 0002c3f0: 76 69 64 65 72 20 64 6f 65 73 20 6e 6f 74 20 73 vider does not s 0002c400: 75 70 70 6f 72 74 20 6e 65 74 77 6f 72 6b 20 64 upport network d 0002c410: 65 74 65 63 74 69 6f 6e 22 2c 79 2e 65 72 72 6f etection",y.erro 0002c420: 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f rs.UNSUPPORTED_O 0002c430: 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 PERATION,{operat 0002c440: 69 6f 6e 3a 22 70 72 6f 76 69 64 65 72 2e 64 65 ion:"provider.de 0002c450: 74 65 63 74 4e 65 74 77 6f 72 6b 22 7d 29 7d 29 tectNetwork"})}) 0002c460: 29 7d 67 65 74 4e 65 74 77 6f 72 6b 28 29 7b 72 )}getNetwork(){r 0002c470: 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f eturn Ma(this,vo 0002c480: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 0002c490: 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 65 ction*(){const e 0002c4a0: 3d 79 69 65 6c 64 20 74 68 69 73 2e 5f 72 65 61 =yield this._rea 0002c4b0: 64 79 28 29 2c 74 3d 79 69 65 6c 64 20 74 68 69 dy(),t=yield thi 0002c4c0: 73 2e 64 65 74 65 63 74 4e 65 74 77 6f 72 6b 28 s.detectNetwork( 0002c4d0: 29 3b 69 66 28 65 2e 63 68 61 69 6e 49 64 21 3d );if(e.chainId!= 0002c4e0: 3d 74 2e 63 68 61 69 6e 49 64 29 7b 69 66 28 74 =t.chainId){if(t 0002c4f0: 68 69 73 2e 61 6e 79 4e 65 74 77 6f 72 6b 29 72 his.anyNetwork)r 0002c500: 65 74 75 72 6e 20 74 68 69 73 2e 5f 6e 65 74 77 eturn this._netw 0002c510: 6f 72 6b 3d 74 2c 74 68 69 73 2e 5f 6c 61 73 74 ork=t,this._last 0002c520: 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d 2d 32 2c 74 BlockNumber=-2,t 0002c530: 68 69 73 2e 5f 66 61 73 74 42 6c 6f 63 6b 4e 75 his._fastBlockNu 0002c540: 6d 62 65 72 3d 6e 75 6c 6c 2c 74 68 69 73 2e 5f mber=null,this._ 0002c550: 66 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 50 fastBlockNumberP 0002c560: 72 6f 6d 69 73 65 3d 6e 75 6c 6c 2c 74 68 69 73 romise=null,this 0002c570: 2e 5f 66 61 73 74 51 75 65 72 79 44 61 74 65 3d ._fastQueryDate= 0002c580: 30 2c 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 2e 0,this._emitted. 0002c590: 62 6c 6f 63 6b 3d 2d 32 2c 74 68 69 73 2e 5f 6d block=-2,this._m 0002c5a0: 61 78 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e axInternalBlockN 0002c5b0: 75 6d 62 65 72 3d 2d 31 30 32 34 2c 74 68 69 73 umber=-1024,this 0002c5c0: 2e 5f 69 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e ._internalBlockN 0002c5d0: 75 6d 62 65 72 3d 6e 75 6c 6c 2c 74 68 69 73 2e umber=null,this. 0002c5e0: 65 6d 69 74 28 22 6e 65 74 77 6f 72 6b 22 2c 74 emit("network",t 0002c5f0: 2c 65 29 2c 79 69 65 6c 64 20 6a 61 28 30 29 2c ,e),yield ja(0), 0002c600: 74 68 69 73 2e 5f 6e 65 74 77 6f 72 6b 3b 63 6f this._network;co 0002c610: 6e 73 74 20 6e 3d 44 61 2e 6d 61 6b 65 45 72 72 nst n=Da.makeErr 0002c620: 6f 72 28 22 75 6e 64 65 72 6c 79 69 6e 67 20 6e or("underlying n 0002c630: 65 74 77 6f 72 6b 20 63 68 61 6e 67 65 64 22 2c etwork changed", 0002c640: 79 2e 65 72 72 6f 72 73 2e 4e 45 54 57 4f 52 4b y.errors.NETWORK 0002c650: 5f 45 52 52 4f 52 2c 7b 65 76 65 6e 74 3a 22 63 _ERROR,{event:"c 0002c660: 68 61 6e 67 65 64 22 2c 6e 65 74 77 6f 72 6b 3a hanged",network: 0002c670: 65 2c 64 65 74 65 63 74 65 64 4e 65 74 77 6f 72 e,detectedNetwor 0002c680: 6b 3a 74 7d 29 3b 74 68 72 6f 77 20 74 68 69 73 k:t});throw this 0002c690: 2e 65 6d 69 74 28 22 65 72 72 6f 72 22 2c 6e 29 .emit("error",n) 0002c6a0: 2c 6e 7d 72 65 74 75 72 6e 20 65 7d 29 29 7d 67 ,n}return e}))}g 0002c6b0: 65 74 20 62 6c 6f 63 6b 4e 75 6d 62 65 72 28 29 et blockNumber() 0002c6c0: 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 67 65 {return this._ge 0002c6d0: 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 tInternalBlockNu 0002c6e0: 6d 62 65 72 28 31 30 30 2b 74 68 69 73 2e 70 6f mber(100+this.po 0002c6f0: 6c 6c 69 6e 67 49 6e 74 65 72 76 61 6c 2f 32 29 llingInterval/2) 0002c700: 2e 74 68 65 6e 28 28 65 3d 3e 7b 74 68 69 73 2e .then((e=>{this. 0002c710: 5f 73 65 74 46 61 73 74 42 6c 6f 63 6b 4e 75 6d _setFastBlockNum 0002c720: 62 65 72 28 65 29 7d 29 2c 28 65 3d 3e 7b 7d 29 ber(e)}),(e=>{}) 0002c730: 29 2c 6e 75 6c 6c 21 3d 74 68 69 73 2e 5f 66 61 ),null!=this._fa 0002c740: 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 3f 74 68 stBlockNumber?th 0002c750: 69 73 2e 5f 66 61 73 74 42 6c 6f 63 6b 4e 75 6d is._fastBlockNum 0002c760: 62 65 72 3a 2d 31 7d 67 65 74 20 70 6f 6c 6c 69 ber:-1}get polli 0002c770: 6e 67 28 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c ng(){return null 0002c780: 21 3d 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 7d 73 !=this._poller}s 0002c790: 65 74 20 70 6f 6c 6c 69 6e 67 28 65 29 7b 65 26 et polling(e){e& 0002c7a0: 26 21 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 3f 28 &!this._poller?( 0002c7b0: 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 3d 73 65 74 this._poller=set 0002c7c0: 49 6e 74 65 72 76 61 6c 28 28 28 29 3d 3e 7b 74 Interval((()=>{t 0002c7d0: 68 69 73 2e 70 6f 6c 6c 28 29 7d 29 2c 74 68 69 his.poll()}),thi 0002c7e0: 73 2e 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 s.pollingInterva 0002c7f0: 6c 29 2c 74 68 69 73 2e 5f 62 6f 6f 74 73 74 72 l),this._bootstr 0002c800: 61 70 50 6f 6c 6c 7c 7c 28 74 68 69 73 2e 5f 62 apPoll||(this._b 0002c810: 6f 6f 74 73 74 72 61 70 50 6f 6c 6c 3d 73 65 74 ootstrapPoll=set 0002c820: 54 69 6d 65 6f 75 74 28 28 28 29 3d 3e 7b 74 68 Timeout((()=>{th 0002c830: 69 73 2e 70 6f 6c 6c 28 29 2c 74 68 69 73 2e 5f is.poll(),this._ 0002c840: 62 6f 6f 74 73 74 72 61 70 50 6f 6c 6c 3d 73 65 bootstrapPoll=se 0002c850: 74 54 69 6d 65 6f 75 74 28 28 28 29 3d 3e 7b 74 tTimeout((()=>{t 0002c860: 68 69 73 2e 5f 70 6f 6c 6c 65 72 7c 7c 74 68 69 his._poller||thi 0002c870: 73 2e 70 6f 6c 6c 28 29 2c 74 68 69 73 2e 5f 62 s.poll(),this._b 0002c880: 6f 6f 74 73 74 72 61 70 50 6f 6c 6c 3d 6e 75 6c ootstrapPoll=nul 0002c890: 6c 7d 29 2c 74 68 69 73 2e 70 6f 6c 6c 69 6e 67 l}),this.polling 0002c8a0: 49 6e 74 65 72 76 61 6c 29 7d 29 2c 30 29 29 29 Interval)}),0))) 0002c8b0: 3a 21 65 26 26 74 68 69 73 2e 5f 70 6f 6c 6c 65 :!e&&this._polle 0002c8c0: 72 26 26 28 63 6c 65 61 72 49 6e 74 65 72 76 61 r&&(clearInterva 0002c8d0: 6c 28 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 29 2c l(this._poller), 0002c8e0: 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 3d 6e 75 6c this._poller=nul 0002c8f0: 6c 29 7d 67 65 74 20 70 6f 6c 6c 69 6e 67 49 6e l)}get pollingIn 0002c900: 74 65 72 76 61 6c 28 29 7b 72 65 74 75 72 6e 20 terval(){return 0002c910: 74 68 69 73 2e 5f 70 6f 6c 6c 69 6e 67 49 6e 74 this._pollingInt 0002c920: 65 72 76 61 6c 7d 73 65 74 20 70 6f 6c 6c 69 6e erval}set pollin 0002c930: 67 49 6e 74 65 72 76 61 6c 28 65 29 7b 69 66 28 gInterval(e){if( 0002c940: 22 6e 75 6d 62 65 72 22 21 3d 74 79 70 65 6f 66 "number"!=typeof 0002c950: 20 65 7c 7c 65 3c 3d 30 7c 7c 70 61 72 73 65 49 e||e<=0||parseI 0002c960: 6e 74 28 53 74 72 69 6e 67 28 65 29 29 21 3d 65 nt(String(e))!=e 0002c970: 29 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 )throw new Error 0002c980: 28 22 69 6e 76 61 6c 69 64 20 70 6f 6c 6c 69 6e ("invalid pollin 0002c990: 67 20 69 6e 74 65 72 76 61 6c 22 29 3b 74 68 69 g interval");thi 0002c9a0: 73 2e 5f 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 s._pollingInterv 0002c9b0: 61 6c 3d 65 2c 74 68 69 73 2e 5f 70 6f 6c 6c 65 al=e,this._polle 0002c9c0: 72 26 26 28 63 6c 65 61 72 49 6e 74 65 72 76 61 r&&(clearInterva 0002c9d0: 6c 28 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 29 2c l(this._poller), 0002c9e0: 74 68 69 73 2e 5f 70 6f 6c 6c 65 72 3d 73 65 74 this._poller=set 0002c9f0: 49 6e 74 65 72 76 61 6c 28 28 28 29 3d 3e 7b 74 Interval((()=>{t 0002ca00: 68 69 73 2e 70 6f 6c 6c 28 29 7d 29 2c 74 68 69 his.poll()}),thi 0002ca10: 73 2e 5f 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 s._pollingInterv 0002ca20: 61 6c 29 29 7d 5f 67 65 74 46 61 73 74 42 6c 6f al))}_getFastBlo 0002ca30: 63 6b 4e 75 6d 62 65 72 28 29 7b 63 6f 6e 73 74 ckNumber(){const 0002ca40: 20 65 3d 42 61 28 29 3b 72 65 74 75 72 6e 20 65 e=Ba();return e 0002ca50: 2d 74 68 69 73 2e 5f 66 61 73 74 51 75 65 72 79 -this._fastQuery 0002ca60: 44 61 74 65 3e 32 2a 74 68 69 73 2e 5f 70 6f 6c Date>2*this._pol 0002ca70: 6c 69 6e 67 49 6e 74 65 72 76 61 6c 26 26 28 74 lingInterval&&(t 0002ca80: 68 69 73 2e 5f 66 61 73 74 51 75 65 72 79 44 61 his._fastQueryDa 0002ca90: 74 65 3d 65 2c 74 68 69 73 2e 5f 66 61 73 74 42 te=e,this._fastB 0002caa0: 6c 6f 63 6b 4e 75 6d 62 65 72 50 72 6f 6d 69 73 lockNumberPromis 0002cab0: 65 3d 74 68 69 73 2e 67 65 74 42 6c 6f 63 6b 4e e=this.getBlockN 0002cac0: 75 6d 62 65 72 28 29 2e 74 68 65 6e 28 28 65 3d umber().then((e= 0002cad0: 3e 28 28 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f 66 >((null==this._f 0002cae0: 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 7c 7c astBlockNumber|| 0002caf0: 65 3e 74 68 69 73 2e 5f 66 61 73 74 42 6c 6f 63 e>this._fastBloc 0002cb00: 6b 4e 75 6d 62 65 72 29 26 26 28 74 68 69 73 2e kNumber)&&(this. 0002cb10: 5f 66 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 _fastBlockNumber 0002cb20: 3d 65 29 2c 74 68 69 73 2e 5f 66 61 73 74 42 6c =e),this._fastBl 0002cb30: 6f 63 6b 4e 75 6d 62 65 72 29 29 29 29 2c 74 68 ockNumber)))),th 0002cb40: 69 73 2e 5f 66 61 73 74 42 6c 6f 63 6b 4e 75 6d is._fastBlockNum 0002cb50: 62 65 72 50 72 6f 6d 69 73 65 7d 5f 73 65 74 46 berPromise}_setF 0002cb60: 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 65 astBlockNumber(e 0002cb70: 29 7b 6e 75 6c 6c 21 3d 74 68 69 73 2e 5f 66 61 ){null!=this._fa 0002cb80: 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 26 26 65 stBlockNumber&&e 0002cb90: 3c 74 68 69 73 2e 5f 66 61 73 74 42 6c 6f 63 6b <this._fastBlock 0002cba0: 4e 75 6d 62 65 72 7c 7c 28 74 68 69 73 2e 5f 66 Number||(this._f 0002cbb0: 61 73 74 51 75 65 72 79 44 61 74 65 3d 42 61 28 astQueryDate=Ba( 0002cbc0: 29 2c 28 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f 66 ),(null==this._f 0002cbd0: 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 7c 7c astBlockNumber|| 0002cbe0: 65 3e 74 68 69 73 2e 5f 66 61 73 74 42 6c 6f 63 e>this._fastBloc 0002cbf0: 6b 4e 75 6d 62 65 72 29 26 26 28 74 68 69 73 2e kNumber)&&(this. 0002cc00: 5f 66 61 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 _fastBlockNumber 0002cc10: 3d 65 2c 74 68 69 73 2e 5f 66 61 73 74 42 6c 6f =e,this._fastBlo 0002cc20: 63 6b 4e 75 6d 62 65 72 50 72 6f 6d 69 73 65 3d ckNumberPromise= 0002cc30: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 0002cc40: 65 29 29 29 7d 77 61 69 74 46 6f 72 54 72 61 6e e)))}waitForTran 0002cc50: 73 61 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 7b 72 saction(e,t,n){r 0002cc60: 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f eturn Ma(this,vo 0002cc70: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 0002cc80: 63 74 69 6f 6e 2a 28 29 7b 72 65 74 75 72 6e 20 ction*(){return 0002cc90: 74 68 69 73 2e 5f 77 61 69 74 46 6f 72 54 72 61 this._waitForTra 0002cca0: 6e 73 61 63 74 69 6f 6e 28 65 2c 6e 75 6c 6c 3d nsaction(e,null= 0002ccb0: 3d 74 3f 31 3a 74 2c 6e 7c 7c 30 2c 6e 75 6c 6c =t?1:t,n||0,null 0002ccc0: 29 7d 29 29 7d 5f 77 61 69 74 46 6f 72 54 72 61 )}))}_waitForTra 0002ccd0: 6e 73 61 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c 72 nsaction(e,t,n,r 0002cce0: 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 ){return Ma(this 0002ccf0: 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 ,void 0,void 0,( 0002cd00: 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 function*(){cons 0002cd10: 74 20 6f 3d 79 69 65 6c 64 20 74 68 69 73 2e 67 t o=yield this.g 0002cd20: 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 etTransactionRec 0002cd30: 65 69 70 74 28 65 29 3b 72 65 74 75 72 6e 28 6f eipt(e);return(o 0002cd40: 3f 6f 2e 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 ?o.confirmations 0002cd50: 3a 30 29 3e 3d 74 3f 6f 3a 6e 65 77 20 50 72 6f :0)>=t?o:new Pro 0002cd60: 6d 69 73 65 28 28 28 6f 2c 69 29 3d 3e 7b 63 6f mise(((o,i)=>{co 0002cd70: 6e 73 74 20 61 3d 5b 5d 3b 6c 65 74 20 73 3d 21 nst a=[];let s=! 0002cd80: 31 3b 63 6f 6e 73 74 20 6c 3d 66 75 6e 63 74 69 1;const l=functi 0002cd90: 6f 6e 28 29 7b 72 65 74 75 72 6e 21 21 73 7c 7c on(){return!!s|| 0002cda0: 28 73 3d 21 30 2c 61 2e 66 6f 72 45 61 63 68 28 (s=!0,a.forEach( 0002cdb0: 28 65 3d 3e 7b 65 28 29 7d 29 29 2c 21 31 29 7d (e=>{e()})),!1)} 0002cdc0: 2c 63 3d 65 3d 3e 7b 65 2e 63 6f 6e 66 69 72 6d ,c=e=>{e.confirm 0002cdd0: 61 74 69 6f 6e 73 3c 74 7c 7c 6c 28 29 7c 7c 6f ations<t||l()||o 0002cde0: 28 65 29 7d 3b 69 66 28 74 68 69 73 2e 6f 6e 28 (e)};if(this.on( 0002cdf0: 65 2c 63 29 2c 61 2e 70 75 73 68 28 28 28 29 3d e,c),a.push((()= 0002ce00: 3e 7b 74 68 69 73 2e 72 65 6d 6f 76 65 4c 69 73 >{this.removeLis 0002ce10: 74 65 6e 65 72 28 65 2c 63 29 7d 29 29 2c 72 29 tener(e,c)})),r) 0002ce20: 7b 6c 65 74 20 6e 3d 72 2e 73 74 61 72 74 42 6c {let n=r.startBl 0002ce30: 6f 63 6b 2c 6f 3d 6e 75 6c 6c 3b 63 6f 6e 73 74 ock,o=null;const 0002ce40: 20 63 3d 61 3d 3e 4d 61 28 74 68 69 73 2c 76 6f c=a=>Ma(this,vo 0002ce50: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 0002ce60: 63 74 69 6f 6e 2a 28 29 7b 73 7c 7c 28 79 69 65 ction*(){s||(yie 0002ce70: 6c 64 20 6a 61 28 31 65 33 29 2c 74 68 69 73 2e ld ja(1e3),this. 0002ce80: 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 43 6f getTransactionCo 0002ce90: 75 6e 74 28 72 2e 66 72 6f 6d 29 2e 74 68 65 6e unt(r.from).then 0002cea0: 28 28 75 3d 3e 4d 61 28 74 68 69 73 2c 76 6f 69 ((u=>Ma(this,voi 0002ceb0: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 0002cec0: 74 69 6f 6e 2a 28 29 7b 69 66 28 21 73 29 7b 69 tion*(){if(!s){i 0002ced0: 66 28 75 3c 3d 72 2e 6e 6f 6e 63 65 29 6e 3d 61 f(u<=r.nonce)n=a 0002cee0: 3b 65 6c 73 65 7b 7b 63 6f 6e 73 74 20 74 3d 79 ;else{{const t=y 0002cef0: 69 65 6c 64 20 74 68 69 73 2e 67 65 74 54 72 61 ield this.getTra 0002cf00: 6e 73 61 63 74 69 6f 6e 28 65 29 3b 69 66 28 74 nsaction(e);if(t 0002cf10: 26 26 6e 75 6c 6c 21 3d 74 2e 62 6c 6f 63 6b 4e &&null!=t.blockN 0002cf20: 75 6d 62 65 72 29 72 65 74 75 72 6e 7d 66 6f 72 umber)return}for 0002cf30: 28 6e 75 6c 6c 3d 3d 6f 26 26 28 6f 3d 6e 2d 33 (null==o&&(o=n-3 0002cf40: 2c 6f 3c 72 2e 73 74 61 72 74 42 6c 6f 63 6b 26 ,o<r.startBlock& 0002cf50: 26 28 6f 3d 72 2e 73 74 61 72 74 42 6c 6f 63 6b &(o=r.startBlock 0002cf60: 29 29 3b 6f 3c 3d 61 3b 29 7b 69 66 28 73 29 72 ));o<=a;){if(s)r 0002cf70: 65 74 75 72 6e 3b 63 6f 6e 73 74 20 6e 3d 79 69 eturn;const n=yi 0002cf80: 65 6c 64 20 74 68 69 73 2e 67 65 74 42 6c 6f 63 eld this.getBloc 0002cf90: 6b 57 69 74 68 54 72 61 6e 73 61 63 74 69 6f 6e kWithTransaction 0002cfa0: 73 28 6f 29 3b 66 6f 72 28 6c 65 74 20 6f 3d 30 s(o);for(let o=0 0002cfb0: 3b 6f 3c 6e 2e 74 72 61 6e 73 61 63 74 69 6f 6e ;o<n.transaction 0002cfc0: 73 2e 6c 65 6e 67 74 68 3b 6f 2b 2b 29 7b 63 6f s.length;o++){co 0002cfd0: 6e 73 74 20 61 3d 6e 2e 74 72 61 6e 73 61 63 74 nst a=n.transact 0002cfe0: 69 6f 6e 73 5b 6f 5d 3b 69 66 28 61 2e 68 61 73 ions[o];if(a.has 0002cff0: 68 3d 3d 3d 65 29 72 65 74 75 72 6e 3b 69 66 28 h===e)return;if( 0002d000: 61 2e 66 72 6f 6d 3d 3d 3d 72 2e 66 72 6f 6d 26 a.from===r.from& 0002d010: 26 61 2e 6e 6f 6e 63 65 3d 3d 3d 72 2e 6e 6f 6e &a.nonce===r.non 0002d020: 63 65 29 7b 69 66 28 73 29 72 65 74 75 72 6e 3b ce){if(s)return; 0002d030: 63 6f 6e 73 74 20 6e 3d 79 69 65 6c 64 20 74 68 const n=yield th 0002d040: 69 73 2e 77 61 69 74 46 6f 72 54 72 61 6e 73 61 is.waitForTransa 0002d050: 63 74 69 6f 6e 28 61 2e 68 61 73 68 2c 74 29 3b ction(a.hash,t); 0002d060: 69 66 28 6c 28 29 29 72 65 74 75 72 6e 3b 6c 65 if(l())return;le 0002d070: 74 20 6f 3d 22 72 65 70 6c 61 63 65 64 22 3b 72 t o="replaced";r 0002d080: 65 74 75 72 6e 20 61 2e 64 61 74 61 3d 3d 3d 72 eturn a.data===r 0002d090: 2e 64 61 74 61 26 26 61 2e 74 6f 3d 3d 3d 72 2e .data&&a.to===r. 0002d0a0: 74 6f 26 26 61 2e 76 61 6c 75 65 2e 65 71 28 72 to&&a.value.eq(r 0002d0b0: 2e 76 61 6c 75 65 29 3f 6f 3d 22 72 65 70 72 69 .value)?o="repri 0002d0c0: 63 65 64 22 3a 22 30 78 22 3d 3d 3d 61 2e 64 61 ced":"0x"===a.da 0002d0d0: 74 61 26 26 61 2e 66 72 6f 6d 3d 3d 3d 61 2e 74 ta&&a.from===a.t 0002d0e0: 6f 26 26 61 2e 76 61 6c 75 65 2e 69 73 5a 65 72 o&&a.value.isZer 0002d0f0: 6f 28 29 26 26 28 6f 3d 22 63 61 6e 63 65 6c 6c o()&&(o="cancell 0002d100: 65 64 22 29 2c 76 6f 69 64 20 69 28 44 61 2e 6d ed"),void i(Da.m 0002d110: 61 6b 65 45 72 72 6f 72 28 22 74 72 61 6e 73 61 akeError("transa 0002d120: 63 74 69 6f 6e 20 77 61 73 20 72 65 70 6c 61 63 ction was replac 0002d130: 65 64 22 2c 79 2e 65 72 72 6f 72 73 2e 54 52 41 ed",y.errors.TRA 0002d140: 4e 53 41 43 54 49 4f 4e 5f 52 45 50 4c 41 43 45 NSACTION_REPLACE 0002d150: 44 2c 7b 63 61 6e 63 65 6c 6c 65 64 3a 22 72 65 D,{cancelled:"re 0002d160: 70 6c 61 63 65 64 22 3d 3d 3d 6f 7c 7c 22 63 61 placed"===o||"ca 0002d170: 6e 63 65 6c 6c 65 64 22 3d 3d 3d 6f 2c 72 65 61 ncelled"===o,rea 0002d180: 73 6f 6e 3a 6f 2c 72 65 70 6c 61 63 65 6d 65 6e son:o,replacemen 0002d190: 74 3a 74 68 69 73 2e 5f 77 72 61 70 54 72 61 6e t:this._wrapTran 0002d1a0: 73 61 63 74 69 6f 6e 28 61 29 2c 68 61 73 68 3a saction(a),hash: 0002d1b0: 65 2c 72 65 63 65 69 70 74 3a 6e 7d 29 29 7d 7d e,receipt:n}))}} 0002d1c0: 6f 2b 2b 7d 7d 73 7c 7c 74 68 69 73 2e 6f 6e 63 o++}}s||this.onc 0002d1d0: 65 28 22 62 6c 6f 63 6b 22 2c 63 29 7d 7d 29 29 e("block",c)}})) 0002d1e0: 29 2c 28 65 3d 3e 7b 73 7c 7c 74 68 69 73 2e 6f ),(e=>{s||this.o 0002d1f0: 6e 63 65 28 22 62 6c 6f 63 6b 22 2c 63 29 7d 29 nce("block",c)}) 0002d200: 29 29 7d 29 29 3b 69 66 28 73 29 72 65 74 75 72 ))}));if(s)retur 0002d210: 6e 3b 74 68 69 73 2e 6f 6e 63 65 28 22 62 6c 6f n;this.once("blo 0002d220: 63 6b 22 2c 63 29 2c 61 2e 70 75 73 68 28 28 28 ck",c),a.push((( 0002d230: 29 3d 3e 7b 74 68 69 73 2e 72 65 6d 6f 76 65 4c )=>{this.removeL 0002d240: 69 73 74 65 6e 65 72 28 22 62 6c 6f 63 6b 22 2c istener("block", 0002d250: 63 29 7d 29 29 7d 69 66 28 22 6e 75 6d 62 65 72 c)}))}if("number 0002d260: 22 3d 3d 74 79 70 65 6f 66 20 6e 26 26 6e 3e 30 "==typeof n&&n>0 0002d270: 29 7b 63 6f 6e 73 74 20 65 3d 73 65 74 54 69 6d ){const e=setTim 0002d280: 65 6f 75 74 28 28 28 29 3d 3e 7b 6c 28 29 7c 7c eout((()=>{l()|| 0002d290: 69 28 44 61 2e 6d 61 6b 65 45 72 72 6f 72 28 22 i(Da.makeError(" 0002d2a0: 74 69 6d 65 6f 75 74 20 65 78 63 65 65 64 65 64 timeout exceeded 0002d2b0: 22 2c 79 2e 65 72 72 6f 72 73 2e 54 49 4d 45 4f ",y.errors.TIMEO 0002d2c0: 55 54 2c 7b 74 69 6d 65 6f 75 74 3a 6e 7d 29 29 UT,{timeout:n})) 0002d2d0: 7d 29 2c 6e 29 3b 65 2e 75 6e 72 65 66 26 26 65 }),n);e.unref&&e 0002d2e0: 2e 75 6e 72 65 66 28 29 2c 61 2e 70 75 73 68 28 .unref(),a.push( 0002d2f0: 28 28 29 3d 3e 7b 63 6c 65 61 72 54 69 6d 65 6f (()=>{clearTimeo 0002d300: 75 74 28 65 29 7d 29 29 7d 7d 29 29 7d 29 29 7d ut(e)}))}}))}))} 0002d310: 67 65 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 29 getBlockNumber() 0002d320: 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c {return Ma(this, 0002d330: 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 void 0,void 0,(f 0002d340: 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 74 75 72 unction*(){retur 0002d350: 6e 20 74 68 69 73 2e 5f 67 65 74 49 6e 74 65 72 n this._getInter 0002d360: 6e 61 6c 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 30 nalBlockNumber(0 0002d370: 29 7d 29 29 7d 67 65 74 47 61 73 50 72 69 63 65 )}))}getGasPrice 0002d380: 28 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 (){return Ma(thi 0002d390: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 0002d3a0: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 (function*(){yie 0002d3b0: 6c 64 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f ld this.getNetwo 0002d3c0: 72 6b 28 29 3b 63 6f 6e 73 74 20 65 3d 79 69 65 rk();const e=yie 0002d3d0: 6c 64 20 74 68 69 73 2e 70 65 72 66 6f 72 6d 28 ld this.perform( 0002d3e0: 22 67 65 74 47 61 73 50 72 69 63 65 22 2c 7b 7d "getGasPrice",{} 0002d3f0: 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 59 2e 66 );try{return Y.f 0002d400: 72 6f 6d 28 65 29 7d 63 61 74 63 68 28 74 29 7b rom(e)}catch(t){ 0002d410: 72 65 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 45 return Da.throwE 0002d420: 72 72 6f 72 28 22 62 61 64 20 72 65 73 75 6c 74 rror("bad result 0002d430: 20 66 72 6f 6d 20 62 61 63 6b 65 6e 64 22 2c 79 from backend",y 0002d440: 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 .errors.SERVER_E 0002d450: 52 52 4f 52 2c 7b 6d 65 74 68 6f 64 3a 22 67 65 RROR,{method:"ge 0002d460: 74 47 61 73 50 72 69 63 65 22 2c 72 65 73 75 6c tGasPrice",resul 0002d470: 74 3a 65 2c 65 72 72 6f 72 3a 74 7d 29 7d 7d 29 t:e,error:t})}}) 0002d480: 29 7d 67 65 74 42 61 6c 61 6e 63 65 28 65 2c 74 )}getBalance(e,t 0002d490: 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 ){return Ma(this 0002d4a0: 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 ,void 0,void 0,( 0002d4b0: 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 6c function*(){yiel 0002d4c0: 64 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f 72 d this.getNetwor 0002d4d0: 6b 28 29 3b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c k();const n=yiel 0002d4e0: 64 20 72 65 28 7b 61 64 64 72 65 73 73 3a 74 68 d re({address:th 0002d4f0: 69 73 2e 5f 67 65 74 41 64 64 72 65 73 73 28 65 is._getAddress(e 0002d500: 29 2c 62 6c 6f 63 6b 54 61 67 3a 74 68 69 73 2e ),blockTag:this. 0002d510: 5f 67 65 74 42 6c 6f 63 6b 54 61 67 28 74 29 7d _getBlockTag(t)} 0002d520: 29 2c 72 3d 79 69 65 6c 64 20 74 68 69 73 2e 70 ),r=yield this.p 0002d530: 65 72 66 6f 72 6d 28 22 67 65 74 42 61 6c 61 6e erform("getBalan 0002d540: 63 65 22 2c 6e 29 3b 74 72 79 7b 72 65 74 75 72 ce",n);try{retur 0002d550: 6e 20 59 2e 66 72 6f 6d 28 72 29 7d 63 61 74 63 n Y.from(r)}catc 0002d560: 68 28 65 29 7b 72 65 74 75 72 6e 20 44 61 2e 74 h(e){return Da.t 0002d570: 68 72 6f 77 45 72 72 6f 72 28 22 62 61 64 20 72 hrowError("bad r 0002d580: 65 73 75 6c 74 20 66 72 6f 6d 20 62 61 63 6b 65 esult from backe 0002d590: 6e 64 22 2c 79 2e 65 72 72 6f 72 73 2e 53 45 52 nd",y.errors.SER 0002d5a0: 56 45 52 5f 45 52 52 4f 52 2c 7b 6d 65 74 68 6f VER_ERROR,{metho 0002d5b0: 64 3a 22 67 65 74 42 61 6c 61 6e 63 65 22 2c 70 d:"getBalance",p 0002d5c0: 61 72 61 6d 73 3a 6e 2c 72 65 73 75 6c 74 3a 72 arams:n,result:r 0002d5d0: 2c 65 72 72 6f 72 3a 65 7d 29 7d 7d 29 29 7d 67 ,error:e})}}))}g 0002d5e0: 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 43 6f 75 etTransactionCou 0002d5f0: 6e 74 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 4d nt(e,t){return M 0002d600: 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f a(this,void 0,vo 0002d610: 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 id 0,(function*( 0002d620: 29 7b 79 69 65 6c 64 20 74 68 69 73 2e 67 65 74 ){yield this.get 0002d630: 4e 65 74 77 6f 72 6b 28 29 3b 63 6f 6e 73 74 20 Network();const 0002d640: 6e 3d 79 69 65 6c 64 20 72 65 28 7b 61 64 64 72 n=yield re({addr 0002d650: 65 73 73 3a 74 68 69 73 2e 5f 67 65 74 41 64 64 ess:this._getAdd 0002d660: 72 65 73 73 28 65 29 2c 62 6c 6f 63 6b 54 61 67 ress(e),blockTag 0002d670: 3a 74 68 69 73 2e 5f 67 65 74 42 6c 6f 63 6b 54 :this._getBlockT 0002d680: 61 67 28 74 29 7d 29 2c 72 3d 79 69 65 6c 64 20 ag(t)}),r=yield 0002d690: 74 68 69 73 2e 70 65 72 66 6f 72 6d 28 22 67 65 this.perform("ge 0002d6a0: 74 54 72 61 6e 73 61 63 74 69 6f 6e 43 6f 75 6e tTransactionCoun 0002d6b0: 74 22 2c 6e 29 3b 74 72 79 7b 72 65 74 75 72 6e t",n);try{return 0002d6c0: 20 59 2e 66 72 6f 6d 28 72 29 2e 74 6f 4e 75 6d Y.from(r).toNum 0002d6d0: 62 65 72 28 29 7d 63 61 74 63 68 28 65 29 7b 72 ber()}catch(e){r 0002d6e0: 65 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 45 72 eturn Da.throwEr 0002d6f0: 72 6f 72 28 22 62 61 64 20 72 65 73 75 6c 74 20 ror("bad result 0002d700: 66 72 6f 6d 20 62 61 63 6b 65 6e 64 22 2c 79 2e from backend",y. 0002d710: 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 errors.SERVER_ER 0002d720: 52 4f 52 2c 7b 6d 65 74 68 6f 64 3a 22 67 65 74 ROR,{method:"get 0002d730: 54 72 61 6e 73 61 63 74 69 6f 6e 43 6f 75 6e 74 TransactionCount 0002d740: 22 2c 70 61 72 61 6d 73 3a 6e 2c 72 65 73 75 6c ",params:n,resul 0002d750: 74 3a 72 2c 65 72 72 6f 72 3a 65 7d 29 7d 7d 29 t:r,error:e})}}) 0002d760: 29 7d 67 65 74 43 6f 64 65 28 65 2c 74 29 7b 72 )}getCode(e,t){r 0002d770: 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f eturn Ma(this,vo 0002d780: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 0002d790: 63 74 69 6f 6e 2a 28 29 7b 79 69 65 6c 64 20 74 ction*(){yield t 0002d7a0: 68 69 73 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 his.getNetwork() 0002d7b0: 3b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c 64 20 72 ;const n=yield r 0002d7c0: 65 28 7b 61 64 64 72 65 73 73 3a 74 68 69 73 2e e({address:this. 0002d7d0: 5f 67 65 74 41 64 64 72 65 73 73 28 65 29 2c 62 _getAddress(e),b 0002d7e0: 6c 6f 63 6b 54 61 67 3a 74 68 69 73 2e 5f 67 65 lockTag:this._ge 0002d7f0: 74 42 6c 6f 63 6b 54 61 67 28 74 29 7d 29 2c 72 tBlockTag(t)}),r 0002d800: 3d 79 69 65 6c 64 20 74 68 69 73 2e 70 65 72 66 =yield this.perf 0002d810: 6f 72 6d 28 22 67 65 74 43 6f 64 65 22 2c 6e 29 orm("getCode",n) 0002d820: 3b 74 72 79 7b 72 65 74 75 72 6e 20 52 28 72 29 ;try{return R(r) 0002d830: 7d 63 61 74 63 68 28 65 29 7b 72 65 74 75 72 6e }catch(e){return 0002d840: 20 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 Da.throwError(" 0002d850: 62 61 64 20 72 65 73 75 6c 74 20 66 72 6f 6d 20 bad result from 0002d860: 62 61 63 6b 65 6e 64 22 2c 79 2e 65 72 72 6f 72 backend",y.error 0002d870: 73 2e 53 45 52 56 45 52 5f 45 52 52 4f 52 2c 7b s.SERVER_ERROR,{ 0002d880: 6d 65 74 68 6f 64 3a 22 67 65 74 43 6f 64 65 22 method:"getCode" 0002d890: 2c 70 61 72 61 6d 73 3a 6e 2c 72 65 73 75 6c 74 ,params:n,result 0002d8a0: 3a 72 2c 65 72 72 6f 72 3a 65 7d 29 7d 7d 29 29 :r,error:e})}})) 0002d8b0: 7d 67 65 74 53 74 6f 72 61 67 65 41 74 28 65 2c }getStorageAt(e, 0002d8c0: 74 2c 6e 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 t,n){return Ma(t 0002d8d0: 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 his,void 0,void 0002d8e0: 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 0,(function*(){y 0002d8f0: 69 65 6c 64 20 74 68 69 73 2e 67 65 74 4e 65 74 ield this.getNet 0002d900: 77 6f 72 6b 28 29 3b 63 6f 6e 73 74 20 72 3d 79 work();const r=y 0002d910: 69 65 6c 64 20 72 65 28 7b 61 64 64 72 65 73 73 ield re({address 0002d920: 3a 74 68 69 73 2e 5f 67 65 74 41 64 64 72 65 73 :this._getAddres 0002d930: 73 28 65 29 2c 62 6c 6f 63 6b 54 61 67 3a 74 68 s(e),blockTag:th 0002d940: 69 73 2e 5f 67 65 74 42 6c 6f 63 6b 54 61 67 28 is._getBlockTag( 0002d950: 6e 29 2c 70 6f 73 69 74 69 6f 6e 3a 50 72 6f 6d n),position:Prom 0002d960: 69 73 65 2e 72 65 73 6f 6c 76 65 28 74 29 2e 74 ise.resolve(t).t 0002d970: 68 65 6e 28 28 65 3d 3e 44 28 65 29 29 29 7d 29 hen((e=>D(e)))}) 0002d980: 2c 6f 3d 79 69 65 6c 64 20 74 68 69 73 2e 70 65 ,o=yield this.pe 0002d990: 72 66 6f 72 6d 28 22 67 65 74 53 74 6f 72 61 67 rform("getStorag 0002d9a0: 65 41 74 22 2c 72 29 3b 74 72 79 7b 72 65 74 75 eAt",r);try{retu 0002d9b0: 72 6e 20 52 28 6f 29 7d 63 61 74 63 68 28 65 29 rn R(o)}catch(e) 0002d9c0: 7b 72 65 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 {return Da.throw 0002d9d0: 45 72 72 6f 72 28 22 62 61 64 20 72 65 73 75 6c Error("bad resul 0002d9e0: 74 20 66 72 6f 6d 20 62 61 63 6b 65 6e 64 22 2c t from backend", 0002d9f0: 79 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f y.errors.SERVER_ 0002da00: 45 52 52 4f 52 2c 7b 6d 65 74 68 6f 64 3a 22 67 ERROR,{method:"g 0002da10: 65 74 53 74 6f 72 61 67 65 41 74 22 2c 70 61 72 etStorageAt",par 0002da20: 61 6d 73 3a 72 2c 72 65 73 75 6c 74 3a 6f 2c 65 ams:r,result:o,e 0002da30: 72 72 6f 72 3a 65 7d 29 7d 7d 29 29 7d 5f 77 72 rror:e})}}))}_wr 0002da40: 61 70 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 2c apTransaction(e, 0002da50: 74 2c 6e 29 7b 69 66 28 6e 75 6c 6c 21 3d 74 26 t,n){if(null!=t& 0002da60: 26 33 32 21 3d 3d 4e 28 74 29 29 74 68 72 6f 77 &32!==N(t))throw 0002da70: 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e 76 61 new Error("inva 0002da80: 6c 69 64 20 72 65 73 70 6f 6e 73 65 20 2d 20 73 lid response - s 0002da90: 65 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 22 29 endTransaction") 0002daa0: 3b 63 6f 6e 73 74 20 72 3d 65 3b 72 65 74 75 72 ;const r=e;retur 0002dab0: 6e 20 6e 75 6c 6c 21 3d 74 26 26 65 2e 68 61 73 n null!=t&&e.has 0002dac0: 68 21 3d 3d 74 26 26 44 61 2e 74 68 72 6f 77 45 h!==t&&Da.throwE 0002dad0: 72 72 6f 72 28 22 54 72 61 6e 73 61 63 74 69 6f rror("Transactio 0002dae0: 6e 20 68 61 73 68 20 6d 69 73 6d 61 74 63 68 20 n hash mismatch 0002daf0: 66 72 6f 6d 20 50 72 6f 76 69 64 65 72 2e 73 65 from Provider.se 0002db00: 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 2e 22 2c ndTransaction.", 0002db10: 79 2e 65 72 72 6f 72 73 2e 55 4e 4b 4e 4f 57 4e y.errors.UNKNOWN 0002db20: 5f 45 52 52 4f 52 2c 7b 65 78 70 65 63 74 65 64 _ERROR,{expected 0002db30: 48 61 73 68 3a 65 2e 68 61 73 68 2c 72 65 74 75 Hash:e.hash,retu 0002db40: 72 6e 65 64 48 61 73 68 3a 74 7d 29 2c 72 2e 77 rnedHash:t}),r.w 0002db50: 61 69 74 3d 28 74 2c 72 29 3d 3e 4d 61 28 74 68 ait=(t,r)=>Ma(th 0002db60: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 0002db70: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6c 65 ,(function*(){le 0002db80: 74 20 6f 3b 6e 75 6c 6c 3d 3d 74 26 26 28 74 3d t o;null==t&&(t= 0002db90: 31 29 2c 6e 75 6c 6c 3d 3d 72 26 26 28 72 3d 30 1),null==r&&(r=0 0002dba0: 29 2c 30 21 3d 3d 74 26 26 6e 75 6c 6c 21 3d 6e ),0!==t&&null!=n 0002dbb0: 26 26 28 6f 3d 7b 64 61 74 61 3a 65 2e 64 61 74 &&(o={data:e.dat 0002dbc0: 61 2c 66 72 6f 6d 3a 65 2e 66 72 6f 6d 2c 6e 6f a,from:e.from,no 0002dbd0: 6e 63 65 3a 65 2e 6e 6f 6e 63 65 2c 74 6f 3a 65 nce:e.nonce,to:e 0002dbe0: 2e 74 6f 2c 76 61 6c 75 65 3a 65 2e 76 61 6c 75 .to,value:e.valu 0002dbf0: 65 2c 73 74 61 72 74 42 6c 6f 63 6b 3a 6e 7d 29 e,startBlock:n}) 0002dc00: 3b 63 6f 6e 73 74 20 69 3d 79 69 65 6c 64 20 74 ;const i=yield t 0002dc10: 68 69 73 2e 5f 77 61 69 74 46 6f 72 54 72 61 6e his._waitForTran 0002dc20: 73 61 63 74 69 6f 6e 28 65 2e 68 61 73 68 2c 74 saction(e.hash,t 0002dc30: 2c 72 2c 6f 29 3b 72 65 74 75 72 6e 20 6e 75 6c ,r,o);return nul 0002dc40: 6c 3d 3d 69 26 26 30 3d 3d 3d 74 3f 6e 75 6c 6c l==i&&0===t?null 0002dc50: 3a 28 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 5b :(this._emitted[ 0002dc60: 22 74 3a 22 2b 65 2e 68 61 73 68 5d 3d 69 2e 62 "t:"+e.hash]=i.b 0002dc70: 6c 6f 63 6b 4e 75 6d 62 65 72 2c 30 3d 3d 3d 69 lockNumber,0===i 0002dc80: 2e 73 74 61 74 75 73 26 26 44 61 2e 74 68 72 6f .status&&Da.thro 0002dc90: 77 45 72 72 6f 72 28 22 74 72 61 6e 73 61 63 74 wError("transact 0002dca0: 69 6f 6e 20 66 61 69 6c 65 64 22 2c 79 2e 65 72 ion failed",y.er 0002dcb0: 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 54 rors.CALL_EXCEPT 0002dcc0: 49 4f 4e 2c 7b 74 72 61 6e 73 61 63 74 69 6f 6e ION,{transaction 0002dcd0: 48 61 73 68 3a 65 2e 68 61 73 68 2c 74 72 61 6e Hash:e.hash,tran 0002dce0: 73 61 63 74 69 6f 6e 3a 65 2c 72 65 63 65 69 70 saction:e,receip 0002dcf0: 74 3a 69 7d 29 2c 69 29 7d 29 29 2c 72 7d 73 65 t:i}),i)})),r}se 0002dd00: 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 ndTransaction(e) 0002dd10: 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c {return Ma(this, 0002dd20: 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 void 0,void 0,(f 0002dd30: 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 6c 64 unction*(){yield 0002dd40: 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f 72 6b this.getNetwork 0002dd50: 28 29 3b 63 6f 6e 73 74 20 74 3d 79 69 65 6c 64 ();const t=yield 0002dd60: 20 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 Promise.resolve 0002dd70: 28 65 29 2e 74 68 65 6e 28 28 65 3d 3e 52 28 65 (e).then((e=>R(e 0002dd80: 29 29 29 2c 6e 3d 74 68 69 73 2e 66 6f 72 6d 61 ))),n=this.forma 0002dd90: 74 74 65 72 2e 74 72 61 6e 73 61 63 74 69 6f 6e tter.transaction 0002dda0: 28 65 29 3b 6e 75 6c 6c 3d 3d 6e 2e 63 6f 6e 66 (e);null==n.conf 0002ddb0: 69 72 6d 61 74 69 6f 6e 73 26 26 28 6e 2e 63 6f irmations&&(n.co 0002ddc0: 6e 66 69 72 6d 61 74 69 6f 6e 73 3d 30 29 3b 63 nfirmations=0);c 0002ddd0: 6f 6e 73 74 20 72 3d 79 69 65 6c 64 20 74 68 69 onst r=yield thi 0002dde0: 73 2e 5f 67 65 74 49 6e 74 65 72 6e 61 6c 42 6c s._getInternalBl 0002ddf0: 6f 63 6b 4e 75 6d 62 65 72 28 31 30 30 2b 32 2a ockNumber(100+2* 0002de00: 74 68 69 73 2e 70 6f 6c 6c 69 6e 67 49 6e 74 65 this.pollingInte 0002de10: 72 76 61 6c 29 3b 74 72 79 7b 63 6f 6e 73 74 20 rval);try{const 0002de20: 65 3d 79 69 65 6c 64 20 74 68 69 73 2e 70 65 72 e=yield this.per 0002de30: 66 6f 72 6d 28 22 73 65 6e 64 54 72 61 6e 73 61 form("sendTransa 0002de40: 63 74 69 6f 6e 22 2c 7b 73 69 67 6e 65 64 54 72 ction",{signedTr 0002de50: 61 6e 73 61 63 74 69 6f 6e 3a 74 7d 29 3b 72 65 ansaction:t});re 0002de60: 74 75 72 6e 20 74 68 69 73 2e 5f 77 72 61 70 54 turn this._wrapT 0002de70: 72 61 6e 73 61 63 74 69 6f 6e 28 6e 2c 65 2c 72 ransaction(n,e,r 0002de80: 29 7d 63 61 74 63 68 28 65 29 7b 74 68 72 6f 77 )}catch(e){throw 0002de90: 20 65 2e 74 72 61 6e 73 61 63 74 69 6f 6e 3d 6e e.transaction=n 0002dea0: 2c 65 2e 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 ,e.transactionHa 0002deb0: 73 68 3d 6e 2e 68 61 73 68 2c 65 7d 7d 29 29 7d sh=n.hash,e}}))} 0002dec0: 5f 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 _getTransactionR 0002ded0: 65 71 75 65 73 74 28 65 29 7b 72 65 74 75 72 6e equest(e){return 0002dee0: 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c Ma(this,void 0, 0002def0: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 0002df00: 2a 28 29 7b 63 6f 6e 73 74 20 74 3d 79 69 65 6c *(){const t=yiel 0002df10: 64 20 65 2c 6e 3d 7b 7d 3b 72 65 74 75 72 6e 5b d e,n={};return[ 0002df20: 22 66 72 6f 6d 22 2c 22 74 6f 22 5d 2e 66 6f 72 "from","to"].for 0002df30: 45 61 63 68 28 28 65 3d 3e 7b 6e 75 6c 6c 21 3d Each((e=>{null!= 0002df40: 74 5b 65 5d 26 26 28 6e 5b 65 5d 3d 50 72 6f 6d t[e]&&(n[e]=Prom 0002df50: 69 73 65 2e 72 65 73 6f 6c 76 65 28 74 5b 65 5d ise.resolve(t[e] 0002df60: 29 2e 74 68 65 6e 28 28 65 3d 3e 65 3f 74 68 69 ).then((e=>e?thi 0002df70: 73 2e 5f 67 65 74 41 64 64 72 65 73 73 28 65 29 s._getAddress(e) 0002df80: 3a 6e 75 6c 6c 29 29 29 7d 29 29 2c 5b 22 67 61 :null)))})),["ga 0002df90: 73 4c 69 6d 69 74 22 2c 22 67 61 73 50 72 69 63 sLimit","gasPric 0002dfa0: 65 22 2c 22 6d 61 78 46 65 65 50 65 72 47 61 73 e","maxFeePerGas 0002dfb0: 22 2c 22 6d 61 78 50 72 69 6f 72 69 74 79 46 65 ","maxPriorityFe 0002dfc0: 65 50 65 72 47 61 73 22 2c 22 76 61 6c 75 65 22 ePerGas","value" 0002dfd0: 5d 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 6e ].forEach((e=>{n 0002dfe0: 75 6c 6c 21 3d 74 5b 65 5d 26 26 28 6e 5b 65 5d ull!=t[e]&&(n[e] 0002dff0: 3d 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 =Promise.resolve 0002e000: 28 74 5b 65 5d 29 2e 74 68 65 6e 28 28 65 3d 3e (t[e]).then((e=> 0002e010: 65 3f 59 2e 66 72 6f 6d 28 65 29 3a 6e 75 6c 6c e?Y.from(e):null 0002e020: 29 29 29 7d 29 29 2c 5b 22 74 79 70 65 22 5d 2e )))})),["type"]. 0002e030: 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 6e 75 6c forEach((e=>{nul 0002e040: 6c 21 3d 74 5b 65 5d 26 26 28 6e 5b 65 5d 3d 50 l!=t[e]&&(n[e]=P 0002e050: 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 74 romise.resolve(t 0002e060: 5b 65 5d 29 2e 74 68 65 6e 28 28 65 3d 3e 6e 75 [e]).then((e=>nu 0002e070: 6c 6c 21 3d 65 3f 65 3a 6e 75 6c 6c 29 29 29 7d ll!=e?e:null)))} 0002e080: 29 29 2c 74 2e 61 63 63 65 73 73 4c 69 73 74 26 )),t.accessList& 0002e090: 26 28 6e 2e 61 63 63 65 73 73 4c 69 73 74 3d 74 &(n.accessList=t 0002e0a0: 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e 61 63 his.formatter.ac 0002e0b0: 63 65 73 73 4c 69 73 74 28 74 2e 61 63 63 65 73 cessList(t.acces 0002e0c0: 73 4c 69 73 74 29 29 2c 5b 22 64 61 74 61 22 5d sList)),["data"] 0002e0d0: 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 6e 75 .forEach((e=>{nu 0002e0e0: 6c 6c 21 3d 74 5b 65 5d 26 26 28 6e 5b 65 5d 3d ll!=t[e]&&(n[e]= 0002e0f0: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 0002e100: 74 5b 65 5d 29 2e 74 68 65 6e 28 28 65 3d 3e 65 t[e]).then((e=>e 0002e110: 3f 52 28 65 29 3a 6e 75 6c 6c 29 29 29 7d 29 29 ?R(e):null)))})) 0002e120: 2c 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e ,this.formatter. 0002e130: 74 72 61 6e 73 61 63 74 69 6f 6e 52 65 71 75 65 transactionReque 0002e140: 73 74 28 79 69 65 6c 64 20 72 65 28 6e 29 29 7d st(yield re(n))} 0002e150: 29 29 7d 5f 67 65 74 46 69 6c 74 65 72 28 65 29 ))}_getFilter(e) 0002e160: 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c {return Ma(this, 0002e170: 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 void 0,void 0,(f 0002e180: 75 6e 63 74 69 6f 6e 2a 28 29 7b 65 3d 79 69 65 unction*(){e=yie 0002e190: 6c 64 20 65 3b 63 6f 6e 73 74 20 74 3d 7b 7d 3b ld e;const t={}; 0002e1a0: 72 65 74 75 72 6e 20 6e 75 6c 6c 21 3d 65 2e 61 return null!=e.a 0002e1b0: 64 64 72 65 73 73 26 26 28 74 2e 61 64 64 72 65 ddress&&(t.addre 0002e1c0: 73 73 3d 74 68 69 73 2e 5f 67 65 74 41 64 64 72 ss=this._getAddr 0002e1d0: 65 73 73 28 65 2e 61 64 64 72 65 73 73 29 29 2c ess(e.address)), 0002e1e0: 5b 22 62 6c 6f 63 6b 48 61 73 68 22 2c 22 74 6f ["blockHash","to 0002e1f0: 70 69 63 73 22 5d 2e 66 6f 72 45 61 63 68 28 28 pics"].forEach(( 0002e200: 6e 3d 3e 7b 6e 75 6c 6c 21 3d 65 5b 6e 5d 26 26 n=>{null!=e[n]&& 0002e210: 28 74 5b 6e 5d 3d 65 5b 6e 5d 29 7d 29 29 2c 5b (t[n]=e[n])})),[ 0002e220: 22 66 72 6f 6d 42 6c 6f 63 6b 22 2c 22 74 6f 42 "fromBlock","toB 0002e230: 6c 6f 63 6b 22 5d 2e 66 6f 72 45 61 63 68 28 28 lock"].forEach(( 0002e240: 6e 3d 3e 7b 6e 75 6c 6c 21 3d 65 5b 6e 5d 26 26 n=>{null!=e[n]&& 0002e250: 28 74 5b 6e 5d 3d 74 68 69 73 2e 5f 67 65 74 42 (t[n]=this._getB 0002e260: 6c 6f 63 6b 54 61 67 28 65 5b 6e 5d 29 29 7d 29 lockTag(e[n]))}) 0002e270: 29 2c 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 ),this.formatter 0002e280: 2e 66 69 6c 74 65 72 28 79 69 65 6c 64 20 72 65 .filter(yield re 0002e290: 28 74 29 29 7d 29 29 7d 5f 63 61 6c 6c 28 65 2c (t))}))}_call(e, 0002e2a0: 74 2c 6e 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 t,n){return Ma(t 0002e2b0: 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 his,void 0,void 0002e2c0: 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 6e 0,(function*(){n 0002e2d0: 3e 3d 31 30 26 26 44 61 2e 74 68 72 6f 77 45 72 >=10&&Da.throwEr 0002e2e0: 72 6f 72 28 22 43 43 49 50 20 72 65 61 64 20 65 ror("CCIP read e 0002e2f0: 78 63 65 65 64 65 64 20 6d 61 78 69 6d 75 6d 20 xceeded maximum 0002e300: 72 65 64 69 72 65 63 74 69 6f 6e 73 22 2c 79 2e redirections",y. 0002e310: 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 errors.SERVER_ER 0002e320: 52 4f 52 2c 7b 72 65 64 69 72 65 63 74 73 3a 6e ROR,{redirects:n 0002e330: 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 65 7d 29 ,transaction:e}) 0002e340: 3b 63 6f 6e 73 74 20 72 3d 65 2e 74 6f 2c 6f 3d ;const r=e.to,o= 0002e350: 79 69 65 6c 64 20 74 68 69 73 2e 70 65 72 66 6f yield this.perfo 0002e360: 72 6d 28 22 63 61 6c 6c 22 2c 7b 74 72 61 6e 73 rm("call",{trans 0002e370: 61 63 74 69 6f 6e 3a 65 2c 62 6c 6f 63 6b 54 61 action:e,blockTa 0002e380: 67 3a 74 7d 29 3b 69 66 28 6e 3e 3d 30 26 26 22 g:t});if(n>=0&&" 0002e390: 6c 61 74 65 73 74 22 3d 3d 3d 74 26 26 6e 75 6c latest"===t&&nul 0002e3a0: 6c 21 3d 72 26 26 22 30 78 35 35 36 66 31 38 33 l!=r&&"0x556f183 0002e3b0: 30 22 3d 3d 3d 6f 2e 73 75 62 73 74 72 69 6e 67 0"===o.substring 0002e3c0: 28 30 2c 31 30 29 26 26 4e 28 6f 29 25 33 32 3d (0,10)&&N(o)%32= 0002e3d0: 3d 34 29 74 72 79 7b 63 6f 6e 73 74 20 69 3d 50 =4)try{const i=P 0002e3e0: 28 6f 2c 34 29 2c 61 3d 50 28 69 2c 30 2c 33 32 (o,4),a=P(i,0,32 0002e3f0: 29 3b 59 2e 66 72 6f 6d 28 61 29 2e 65 71 28 72 );Y.from(a).eq(r 0002e400: 29 7c 7c 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 )||Da.throwError 0002e410: 28 22 43 43 49 50 20 52 65 61 64 20 73 65 6e 64 ("CCIP Read send 0002e420: 65 72 20 64 69 64 20 6e 6f 74 20 6d 61 74 63 68 er did not match 0002e430: 22 2c 79 2e 65 72 72 6f 72 73 2e 43 41 4c 4c 5f ",y.errors.CALL_ 0002e440: 45 58 43 45 50 54 49 4f 4e 2c 7b 6e 61 6d 65 3a EXCEPTION,{name: 0002e450: 22 4f 66 66 63 68 61 69 6e 4c 6f 6f 6b 75 70 22 "OffchainLookup" 0002e460: 2c 73 69 67 6e 61 74 75 72 65 3a 22 4f 66 66 63 ,signature:"Offc 0002e470: 68 61 69 6e 4c 6f 6f 6b 75 70 28 61 64 64 72 65 hainLookup(addre 0002e480: 73 73 2c 73 74 72 69 6e 67 5b 5d 2c 62 79 74 65 ss,string[],byte 0002e490: 73 2c 62 79 74 65 73 34 2c 62 79 74 65 73 29 22 s,bytes4,bytes)" 0002e4a0: 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 65 2c 64 ,transaction:e,d 0002e4b0: 61 74 61 3a 6f 7d 29 3b 63 6f 6e 73 74 20 73 3d ata:o});const s= 0002e4c0: 5b 5d 2c 6c 3d 59 2e 66 72 6f 6d 28 50 28 69 2c [],l=Y.from(P(i, 0002e4d0: 33 32 2c 36 34 29 29 2e 74 6f 4e 75 6d 62 65 72 32,64)).toNumber 0002e4e0: 28 29 2c 63 3d 59 2e 66 72 6f 6d 28 50 28 69 2c (),c=Y.from(P(i, 0002e4f0: 6c 2c 6c 2b 33 32 29 29 2e 74 6f 4e 75 6d 62 65 l,l+32)).toNumbe 0002e500: 72 28 29 2c 75 3d 50 28 69 2c 6c 2b 33 32 29 3b r(),u=P(i,l+32); 0002e510: 66 6f 72 28 6c 65 74 20 74 3d 30 3b 74 3c 63 3b for(let t=0;t<c; 0002e520: 74 2b 2b 29 7b 63 6f 6e 73 74 20 6e 3d 59 61 28 t++){const n=Ya( 0002e530: 75 2c 33 32 2a 74 29 3b 6e 75 6c 6c 3d 3d 6e 26 u,32*t);null==n& 0002e540: 26 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 &Da.throwError(" 0002e550: 43 43 49 50 20 52 65 61 64 20 63 6f 6e 74 61 69 CCIP Read contai 0002e560: 6e 65 64 20 63 6f 72 72 75 70 74 20 55 52 4c 20 ned corrupt URL 0002e570: 73 74 72 69 6e 67 22 2c 79 2e 65 72 72 6f 72 73 string",y.errors 0002e580: 2e 43 41 4c 4c 5f 45 58 43 45 50 54 49 4f 4e 2c .CALL_EXCEPTION, 0002e590: 7b 6e 61 6d 65 3a 22 4f 66 66 63 68 61 69 6e 4c {name:"OffchainL 0002e5a0: 6f 6f 6b 75 70 22 2c 73 69 67 6e 61 74 75 72 65 ookup",signature 0002e5b0: 3a 22 4f 66 66 63 68 61 69 6e 4c 6f 6f 6b 75 70 :"OffchainLookup 0002e5c0: 28 61 64 64 72 65 73 73 2c 73 74 72 69 6e 67 5b (address,string[ 0002e5d0: 5d 2c 62 79 74 65 73 2c 62 79 74 65 73 34 2c 62 ],bytes,bytes4,b 0002e5e0: 79 74 65 73 29 22 2c 74 72 61 6e 73 61 63 74 69 ytes)",transacti 0002e5f0: 6f 6e 3a 65 2c 64 61 74 61 3a 6f 7d 29 2c 73 2e on:e,data:o}),s. 0002e600: 70 75 73 68 28 6e 29 7d 63 6f 6e 73 74 20 64 3d push(n)}const d= 0002e610: 58 61 28 69 2c 36 34 29 3b 59 2e 66 72 6f 6d 28 Xa(i,64);Y.from( 0002e620: 50 28 69 2c 31 30 30 2c 31 32 38 29 29 2e 69 73 P(i,100,128)).is 0002e630: 5a 65 72 6f 28 29 7c 7c 44 61 2e 74 68 72 6f 77 Zero()||Da.throw 0002e640: 45 72 72 6f 72 28 22 43 43 49 50 20 52 65 61 64 Error("CCIP Read 0002e650: 20 63 61 6c 6c 62 61 63 6b 20 73 65 6c 65 63 74 callback select 0002e660: 6f 72 20 69 6e 63 6c 75 64 65 64 20 6a 75 6e 6b or included junk 0002e670: 22 2c 79 2e 65 72 72 6f 72 73 2e 43 41 4c 4c 5f ",y.errors.CALL_ 0002e680: 45 58 43 45 50 54 49 4f 4e 2c 7b 6e 61 6d 65 3a EXCEPTION,{name: 0002e690: 22 4f 66 66 63 68 61 69 6e 4c 6f 6f 6b 75 70 22 "OffchainLookup" 0002e6a0: 2c 73 69 67 6e 61 74 75 72 65 3a 22 4f 66 66 63 ,signature:"Offc 0002e6b0: 68 61 69 6e 4c 6f 6f 6b 75 70 28 61 64 64 72 65 hainLookup(addre 0002e6c0: 73 73 2c 73 74 72 69 6e 67 5b 5d 2c 62 79 74 65 ss,string[],byte 0002e6d0: 73 2c 62 79 74 65 73 34 2c 62 79 74 65 73 29 22 s,bytes4,bytes)" 0002e6e0: 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 65 2c 64 ,transaction:e,d 0002e6f0: 61 74 61 3a 6f 7d 29 3b 63 6f 6e 73 74 20 70 3d ata:o});const p= 0002e700: 50 28 69 2c 39 36 2c 31 30 30 29 2c 66 3d 58 61 P(i,96,100),f=Xa 0002e710: 28 69 2c 31 32 38 29 2c 68 3d 79 69 65 6c 64 20 (i,128),h=yield 0002e720: 74 68 69 73 2e 63 63 69 70 52 65 61 64 46 65 74 this.ccipReadFet 0002e730: 63 68 28 65 2c 64 2c 73 29 3b 6e 75 6c 6c 3d 3d ch(e,d,s);null== 0002e740: 68 26 26 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 h&&Da.throwError 0002e750: 28 22 43 43 49 50 20 52 65 61 64 20 64 69 73 61 ("CCIP Read disa 0002e760: 62 6c 65 64 20 6f 72 20 70 72 6f 76 69 64 65 64 bled or provided 0002e770: 20 6e 6f 20 55 52 4c 73 22 2c 79 2e 65 72 72 6f no URLs",y.erro 0002e780: 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 54 49 4f rs.CALL_EXCEPTIO 0002e790: 4e 2c 7b 6e 61 6d 65 3a 22 4f 66 66 63 68 61 69 N,{name:"Offchai 0002e7a0: 6e 4c 6f 6f 6b 75 70 22 2c 73 69 67 6e 61 74 75 nLookup",signatu 0002e7b0: 72 65 3a 22 4f 66 66 63 68 61 69 6e 4c 6f 6f 6b re:"OffchainLook 0002e7c0: 75 70 28 61 64 64 72 65 73 73 2c 73 74 72 69 6e up(address,strin 0002e7d0: 67 5b 5d 2c 62 79 74 65 73 2c 62 79 74 65 73 34 g[],bytes,bytes4 0002e7e0: 2c 62 79 74 65 73 29 22 2c 74 72 61 6e 73 61 63 ,bytes)",transac 0002e7f0: 74 69 6f 6e 3a 65 2c 64 61 74 61 3a 6f 7d 29 3b tion:e,data:o}); 0002e800: 63 6f 6e 73 74 20 6d 3d 7b 74 6f 3a 72 2c 64 61 const m={to:r,da 0002e810: 74 61 3a 4d 28 5b 70 2c 24 61 28 5b 68 2c 66 5d ta:M([p,$a([h,f] 0002e820: 29 5d 29 7d 3b 72 65 74 75 72 6e 20 74 68 69 73 )])};return this 0002e830: 2e 5f 63 61 6c 6c 28 6d 2c 74 2c 6e 2b 31 29 7d ._call(m,t,n+1)} 0002e840: 63 61 74 63 68 28 65 29 7b 69 66 28 65 2e 63 6f catch(e){if(e.co 0002e850: 64 65 3d 3d 3d 79 2e 65 72 72 6f 72 73 2e 53 45 de===y.errors.SE 0002e860: 52 56 45 52 5f 45 52 52 4f 52 29 74 68 72 6f 77 RVER_ERROR)throw 0002e870: 20 65 7d 74 72 79 7b 72 65 74 75 72 6e 20 52 28 e}try{return R( 0002e880: 6f 29 7d 63 61 74 63 68 28 6e 29 7b 72 65 74 75 o)}catch(n){retu 0002e890: 72 6e 20 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 rn Da.throwError 0002e8a0: 28 22 62 61 64 20 72 65 73 75 6c 74 20 66 72 6f ("bad result fro 0002e8b0: 6d 20 62 61 63 6b 65 6e 64 22 2c 79 2e 65 72 72 m backend",y.err 0002e8c0: 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 52 4f 52 ors.SERVER_ERROR 0002e8d0: 2c 7b 6d 65 74 68 6f 64 3a 22 63 61 6c 6c 22 2c ,{method:"call", 0002e8e0: 70 61 72 61 6d 73 3a 7b 74 72 61 6e 73 61 63 74 params:{transact 0002e8f0: 69 6f 6e 3a 65 2c 62 6c 6f 63 6b 54 61 67 3a 74 ion:e,blockTag:t 0002e900: 7d 2c 72 65 73 75 6c 74 3a 6f 2c 65 72 72 6f 72 },result:o,error 0002e910: 3a 6e 7d 29 7d 7d 29 29 7d 63 61 6c 6c 28 65 2c :n})}}))}call(e, 0002e920: 74 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 t){return Ma(thi 0002e930: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 0002e940: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 (function*(){yie 0002e950: 6c 64 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f ld this.getNetwo 0002e960: 72 6b 28 29 3b 63 6f 6e 73 74 20 6e 3d 79 69 65 rk();const n=yie 0002e970: 6c 64 20 72 65 28 7b 74 72 61 6e 73 61 63 74 69 ld re({transacti 0002e980: 6f 6e 3a 74 68 69 73 2e 5f 67 65 74 54 72 61 6e on:this._getTran 0002e990: 73 61 63 74 69 6f 6e 52 65 71 75 65 73 74 28 65 sactionRequest(e 0002e9a0: 29 2c 62 6c 6f 63 6b 54 61 67 3a 74 68 69 73 2e ),blockTag:this. 0002e9b0: 5f 67 65 74 42 6c 6f 63 6b 54 61 67 28 74 29 2c _getBlockTag(t), 0002e9c0: 63 63 69 70 52 65 61 64 45 6e 61 62 6c 65 64 3a ccipReadEnabled: 0002e9d0: 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 65 28 Promise.resolve( 0002e9e0: 65 2e 63 63 69 70 52 65 61 64 45 6e 61 62 6c 65 e.ccipReadEnable 0002e9f0: 64 29 7d 29 3b 72 65 74 75 72 6e 20 74 68 69 73 d)});return this 0002ea00: 2e 5f 63 61 6c 6c 28 6e 2e 74 72 61 6e 73 61 63 ._call(n.transac 0002ea10: 74 69 6f 6e 2c 6e 2e 62 6c 6f 63 6b 54 61 67 2c tion,n.blockTag, 0002ea20: 6e 2e 63 63 69 70 52 65 61 64 45 6e 61 62 6c 65 n.ccipReadEnable 0002ea30: 64 3f 30 3a 2d 31 29 7d 29 29 7d 65 73 74 69 6d d?0:-1)}))}estim 0002ea40: 61 74 65 47 61 73 28 65 29 7b 72 65 74 75 72 6e ateGas(e){return 0002ea50: 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c Ma(this,void 0, 0002ea60: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 0002ea70: 2a 28 29 7b 79 69 65 6c 64 20 74 68 69 73 2e 67 *(){yield this.g 0002ea80: 65 74 4e 65 74 77 6f 72 6b 28 29 3b 63 6f 6e 73 etNetwork();cons 0002ea90: 74 20 74 3d 79 69 65 6c 64 20 72 65 28 7b 74 72 t t=yield re({tr 0002eaa0: 61 6e 73 61 63 74 69 6f 6e 3a 74 68 69 73 2e 5f ansaction:this._ 0002eab0: 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 65 getTransactionRe 0002eac0: 71 75 65 73 74 28 65 29 7d 29 2c 6e 3d 79 69 65 quest(e)}),n=yie 0002ead0: 6c 64 20 74 68 69 73 2e 70 65 72 66 6f 72 6d 28 ld this.perform( 0002eae0: 22 65 73 74 69 6d 61 74 65 47 61 73 22 2c 74 29 "estimateGas",t) 0002eaf0: 3b 74 72 79 7b 72 65 74 75 72 6e 20 59 2e 66 72 ;try{return Y.fr 0002eb00: 6f 6d 28 6e 29 7d 63 61 74 63 68 28 65 29 7b 72 om(n)}catch(e){r 0002eb10: 65 74 75 72 6e 20 44 61 2e 74 68 72 6f 77 45 72 eturn Da.throwEr 0002eb20: 72 6f 72 28 22 62 61 64 20 72 65 73 75 6c 74 20 ror("bad result 0002eb30: 66 72 6f 6d 20 62 61 63 6b 65 6e 64 22 2c 79 2e from backend",y. 0002eb40: 65 72 72 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 errors.SERVER_ER 0002eb50: 52 4f 52 2c 7b 6d 65 74 68 6f 64 3a 22 65 73 74 ROR,{method:"est 0002eb60: 69 6d 61 74 65 47 61 73 22 2c 70 61 72 61 6d 73 imateGas",params 0002eb70: 3a 74 2c 72 65 73 75 6c 74 3a 6e 2c 65 72 72 6f :t,result:n,erro 0002eb80: 72 3a 65 7d 29 7d 7d 29 29 7d 5f 67 65 74 41 64 r:e})}}))}_getAd 0002eb90: 64 72 65 73 73 28 65 29 7b 72 65 74 75 72 6e 20 dress(e){return 0002eba0: 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 Ma(this,void 0,v 0002ebb0: 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a oid 0,(function* 0002ebc0: 28 29 7b 22 73 74 72 69 6e 67 22 21 3d 74 79 70 (){"string"!=typ 0002ebd0: 65 6f 66 28 65 3d 79 69 65 6c 64 20 65 29 26 26 eof(e=yield e)&& 0002ebe0: 44 61 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Da.throwArgument 0002ebf0: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 61 Error("invalid a 0002ec00: 64 64 72 65 73 73 20 6f 72 20 45 4e 53 20 6e 61 ddress or ENS na 0002ec10: 6d 65 22 2c 22 6e 61 6d 65 22 2c 65 29 3b 63 6f me","name",e);co 0002ec20: 6e 73 74 20 74 3d 79 69 65 6c 64 20 74 68 69 73 nst t=yield this 0002ec30: 2e 72 65 73 6f 6c 76 65 4e 61 6d 65 28 65 29 3b .resolveName(e); 0002ec40: 72 65 74 75 72 6e 20 6e 75 6c 6c 3d 3d 74 26 26 return null==t&& 0002ec50: 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 45 Da.throwError("E 0002ec60: 4e 53 20 6e 61 6d 65 20 6e 6f 74 20 63 6f 6e 66 NS name not conf 0002ec70: 69 67 75 72 65 64 22 2c 79 2e 65 72 72 6f 72 73 igured",y.errors 0002ec80: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 0002ec90: 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f RATION,{operatio 0002eca0: 6e 3a 60 72 65 73 6f 6c 76 65 4e 61 6d 65 28 24 n:`resolveName($ 0002ecb0: 7b 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 {JSON.stringify( 0002ecc0: 65 29 7d 29 60 7d 29 2c 74 7d 29 29 7d 5f 67 65 e)})`}),t}))}_ge 0002ecd0: 74 42 6c 6f 63 6b 28 65 2c 74 29 7b 72 65 74 75 tBlock(e,t){retu 0002ece0: 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 rn Ma(this,void 0002ecf0: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 0002ed00: 6f 6e 2a 28 29 7b 79 69 65 6c 64 20 74 68 69 73 on*(){yield this 0002ed10: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 2c 65 3d .getNetwork(),e= 0002ed20: 79 69 65 6c 64 20 65 3b 6c 65 74 20 6e 3d 2d 31 yield e;let n=-1 0002ed30: 32 38 3b 63 6f 6e 73 74 20 72 3d 7b 69 6e 63 6c 28;const r={incl 0002ed40: 75 64 65 54 72 61 6e 73 61 63 74 69 6f 6e 73 3a udeTransactions: 0002ed50: 21 21 74 7d 3b 69 66 28 49 28 65 2c 33 32 29 29 !!t};if(I(e,32)) 0002ed60: 72 2e 62 6c 6f 63 6b 48 61 73 68 3d 65 3b 65 6c r.blockHash=e;el 0002ed70: 73 65 20 74 72 79 7b 72 2e 62 6c 6f 63 6b 54 61 se try{r.blockTa 0002ed80: 67 3d 79 69 65 6c 64 20 74 68 69 73 2e 5f 67 65 g=yield this._ge 0002ed90: 74 42 6c 6f 63 6b 54 61 67 28 65 29 2c 49 28 72 tBlockTag(e),I(r 0002eda0: 2e 62 6c 6f 63 6b 54 61 67 29 26 26 28 6e 3d 70 .blockTag)&&(n=p 0002edb0: 61 72 73 65 49 6e 74 28 72 2e 62 6c 6f 63 6b 54 arseInt(r.blockT 0002edc0: 61 67 2e 73 75 62 73 74 72 69 6e 67 28 32 29 2c ag.substring(2), 0002edd0: 31 36 29 29 7d 63 61 74 63 68 28 74 29 7b 44 61 16))}catch(t){Da 0002ede0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 0002edf0: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 62 6c 6f ror("invalid blo 0002ee00: 63 6b 20 68 61 73 68 20 6f 72 20 62 6c 6f 63 6b ck hash or block 0002ee10: 20 74 61 67 22 2c 22 62 6c 6f 63 6b 48 61 73 68 tag","blockHash 0002ee20: 4f 72 42 6c 6f 63 6b 54 61 67 22 2c 65 29 7d 72 OrBlockTag",e)}r 0002ee30: 65 74 75 72 6e 20 78 61 28 28 28 29 3d 3e 4d 61 eturn xa((()=>Ma 0002ee40: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 0002ee50: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 0002ee60: 7b 63 6f 6e 73 74 20 65 3d 79 69 65 6c 64 20 74 {const e=yield t 0002ee70: 68 69 73 2e 70 65 72 66 6f 72 6d 28 22 67 65 74 his.perform("get 0002ee80: 42 6c 6f 63 6b 22 2c 72 29 3b 69 66 28 6e 75 6c Block",r);if(nul 0002ee90: 6c 3d 3d 65 29 72 65 74 75 72 6e 20 6e 75 6c 6c l==e)return null 0002eea0: 21 3d 72 2e 62 6c 6f 63 6b 48 61 73 68 26 26 6e !=r.blockHash&&n 0002eeb0: 75 6c 6c 3d 3d 74 68 69 73 2e 5f 65 6d 69 74 74 ull==this._emitt 0002eec0: 65 64 5b 22 62 3a 22 2b 72 2e 62 6c 6f 63 6b 48 ed["b:"+r.blockH 0002eed0: 61 73 68 5d 7c 7c 6e 75 6c 6c 21 3d 72 2e 62 6c ash]||null!=r.bl 0002eee0: 6f 63 6b 54 61 67 26 26 6e 3e 74 68 69 73 2e 5f ockTag&&n>this._ 0002eef0: 65 6d 69 74 74 65 64 2e 62 6c 6f 63 6b 3f 6e 75 emitted.block?nu 0002ef00: 6c 6c 3a 76 6f 69 64 20 30 3b 69 66 28 74 29 7b ll:void 0;if(t){ 0002ef10: 6c 65 74 20 74 3d 6e 75 6c 6c 3b 66 6f 72 28 6c let t=null;for(l 0002ef20: 65 74 20 6e 3d 30 3b 6e 3c 65 2e 74 72 61 6e 73 et n=0;n<e.trans 0002ef30: 61 63 74 69 6f 6e 73 2e 6c 65 6e 67 74 68 3b 6e actions.length;n 0002ef40: 2b 2b 29 7b 63 6f 6e 73 74 20 72 3d 65 2e 74 72 ++){const r=e.tr 0002ef50: 61 6e 73 61 63 74 69 6f 6e 73 5b 6e 5d 3b 69 66 ansactions[n];if 0002ef60: 28 6e 75 6c 6c 3d 3d 72 2e 62 6c 6f 63 6b 4e 75 (null==r.blockNu 0002ef70: 6d 62 65 72 29 72 2e 63 6f 6e 66 69 72 6d 61 74 mber)r.confirmat 0002ef80: 69 6f 6e 73 3d 30 3b 65 6c 73 65 20 69 66 28 6e ions=0;else if(n 0002ef90: 75 6c 6c 3d 3d 72 2e 63 6f 6e 66 69 72 6d 61 74 ull==r.confirmat 0002efa0: 69 6f 6e 73 29 7b 6e 75 6c 6c 3d 3d 74 26 26 28 ions){null==t&&( 0002efb0: 74 3d 79 69 65 6c 64 20 74 68 69 73 2e 5f 67 65 t=yield this._ge 0002efc0: 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 tInternalBlockNu 0002efd0: 6d 62 65 72 28 31 30 30 2b 32 2a 74 68 69 73 2e mber(100+2*this. 0002efe0: 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 6c 29 pollingInterval) 0002eff0: 29 3b 6c 65 74 20 65 3d 74 2d 72 2e 62 6c 6f 63 );let e=t-r.bloc 0002f000: 6b 4e 75 6d 62 65 72 2b 31 3b 65 3c 3d 30 26 26 kNumber+1;e<=0&& 0002f010: 28 65 3d 31 29 2c 72 2e 63 6f 6e 66 69 72 6d 61 (e=1),r.confirma 0002f020: 74 69 6f 6e 73 3d 65 7d 7d 63 6f 6e 73 74 20 6e tions=e}}const n 0002f030: 3d 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e =this.formatter. 0002f040: 62 6c 6f 63 6b 57 69 74 68 54 72 61 6e 73 61 63 blockWithTransac 0002f050: 74 69 6f 6e 73 28 65 29 3b 72 65 74 75 72 6e 20 tions(e);return 0002f060: 6e 2e 74 72 61 6e 73 61 63 74 69 6f 6e 73 3d 6e n.transactions=n 0002f070: 2e 74 72 61 6e 73 61 63 74 69 6f 6e 73 2e 6d 61 .transactions.ma 0002f080: 70 28 28 65 3d 3e 74 68 69 73 2e 5f 77 72 61 70 p((e=>this._wrap 0002f090: 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 29 29 Transaction(e))) 0002f0a0: 2c 6e 7d 72 65 74 75 72 6e 20 74 68 69 73 2e 66 ,n}return this.f 0002f0b0: 6f 72 6d 61 74 74 65 72 2e 62 6c 6f 63 6b 28 65 ormatter.block(e 0002f0c0: 29 7d 29 29 29 2c 7b 6f 6e 63 65 50 6f 6c 6c 3a )}))),{oncePoll: 0002f0d0: 74 68 69 73 7d 29 7d 29 29 7d 67 65 74 42 6c 6f this})}))}getBlo 0002f0e0: 63 6b 28 65 29 7b 72 65 74 75 72 6e 20 74 68 69 ck(e){return thi 0002f0f0: 73 2e 5f 67 65 74 42 6c 6f 63 6b 28 65 2c 21 31 s._getBlock(e,!1 0002f100: 29 7d 67 65 74 42 6c 6f 63 6b 57 69 74 68 54 72 )}getBlockWithTr 0002f110: 61 6e 73 61 63 74 69 6f 6e 73 28 65 29 7b 72 65 ansactions(e){re 0002f120: 74 75 72 6e 20 74 68 69 73 2e 5f 67 65 74 42 6c turn this._getBl 0002f130: 6f 63 6b 28 65 2c 21 30 29 7d 67 65 74 54 72 61 ock(e,!0)}getTra 0002f140: 6e 73 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 nsaction(e){retu 0002f150: 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 rn Ma(this,void 0002f160: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 0002f170: 6f 6e 2a 28 29 7b 79 69 65 6c 64 20 74 68 69 73 on*(){yield this 0002f180: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 2c 65 3d .getNetwork(),e= 0002f190: 79 69 65 6c 64 20 65 3b 63 6f 6e 73 74 20 74 3d yield e;const t= 0002f1a0: 7b 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 68 {transactionHash 0002f1b0: 3a 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e :this.formatter. 0002f1c0: 68 61 73 68 28 65 2c 21 30 29 7d 3b 72 65 74 75 hash(e,!0)};retu 0002f1d0: 72 6e 20 78 61 28 28 28 29 3d 3e 4d 61 28 74 68 rn xa((()=>Ma(th 0002f1e0: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 0002f1f0: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f ,(function*(){co 0002f200: 6e 73 74 20 6e 3d 79 69 65 6c 64 20 74 68 69 73 nst n=yield this 0002f210: 2e 70 65 72 66 6f 72 6d 28 22 67 65 74 54 72 61 .perform("getTra 0002f220: 6e 73 61 63 74 69 6f 6e 22 2c 74 29 3b 69 66 28 nsaction",t);if( 0002f230: 6e 75 6c 6c 3d 3d 6e 29 72 65 74 75 72 6e 20 6e null==n)return n 0002f240: 75 6c 6c 3d 3d 74 68 69 73 2e 5f 65 6d 69 74 74 ull==this._emitt 0002f250: 65 64 5b 22 74 3a 22 2b 65 5d 3f 6e 75 6c 6c 3a ed["t:"+e]?null: 0002f260: 76 6f 69 64 20 30 3b 63 6f 6e 73 74 20 72 3d 74 void 0;const r=t 0002f270: 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e 74 72 his.formatter.tr 0002f280: 61 6e 73 61 63 74 69 6f 6e 52 65 73 70 6f 6e 73 ansactionRespons 0002f290: 65 28 6e 29 3b 69 66 28 6e 75 6c 6c 3d 3d 72 2e e(n);if(null==r. 0002f2a0: 62 6c 6f 63 6b 4e 75 6d 62 65 72 29 72 2e 63 6f blockNumber)r.co 0002f2b0: 6e 66 69 72 6d 61 74 69 6f 6e 73 3d 30 3b 65 6c nfirmations=0;el 0002f2c0: 73 65 20 69 66 28 6e 75 6c 6c 3d 3d 72 2e 63 6f se if(null==r.co 0002f2d0: 6e 66 69 72 6d 61 74 69 6f 6e 73 29 7b 6c 65 74 nfirmations){let 0002f2e0: 20 65 3d 28 79 69 65 6c 64 20 74 68 69 73 2e 5f e=(yield this._ 0002f2f0: 67 65 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b getInternalBlock 0002f300: 4e 75 6d 62 65 72 28 31 30 30 2b 32 2a 74 68 69 Number(100+2*thi 0002f310: 73 2e 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 s.pollingInterva 0002f320: 6c 29 29 2d 72 2e 62 6c 6f 63 6b 4e 75 6d 62 65 l))-r.blockNumbe 0002f330: 72 2b 31 3b 65 3c 3d 30 26 26 28 65 3d 31 29 2c r+1;e<=0&&(e=1), 0002f340: 72 2e 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 3d r.confirmations= 0002f350: 65 7d 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 77 e}return this._w 0002f360: 72 61 70 54 72 61 6e 73 61 63 74 69 6f 6e 28 72 rapTransaction(r 0002f370: 29 7d 29 29 29 2c 7b 6f 6e 63 65 50 6f 6c 6c 3a )}))),{oncePoll: 0002f380: 74 68 69 73 7d 29 7d 29 29 7d 67 65 74 54 72 61 this})}))}getTra 0002f390: 6e 73 61 63 74 69 6f 6e 52 65 63 65 69 70 74 28 nsactionReceipt( 0002f3a0: 65 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 69 e){return Ma(thi 0002f3b0: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 0002f3c0: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 (function*(){yie 0002f3d0: 6c 64 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f ld this.getNetwo 0002f3e0: 72 6b 28 29 2c 65 3d 79 69 65 6c 64 20 65 3b 63 rk(),e=yield e;c 0002f3f0: 6f 6e 73 74 20 74 3d 7b 74 72 61 6e 73 61 63 74 onst t={transact 0002f400: 69 6f 6e 48 61 73 68 3a 74 68 69 73 2e 66 6f 72 ionHash:this.for 0002f410: 6d 61 74 74 65 72 2e 68 61 73 68 28 65 2c 21 30 matter.hash(e,!0 0002f420: 29 7d 3b 72 65 74 75 72 6e 20 78 61 28 28 28 29 )};return xa((() 0002f430: 3d 3e 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 =>Ma(this,void 0 0002f440: 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f ,void 0,(functio 0002f450: 6e 2a 28 29 7b 63 6f 6e 73 74 20 6e 3d 79 69 65 n*(){const n=yie 0002f460: 6c 64 20 74 68 69 73 2e 70 65 72 66 6f 72 6d 28 ld this.perform( 0002f470: 22 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 "getTransactionR 0002f480: 65 63 65 69 70 74 22 2c 74 29 3b 69 66 28 6e 75 eceipt",t);if(nu 0002f490: 6c 6c 3d 3d 6e 29 72 65 74 75 72 6e 20 6e 75 6c ll==n)return nul 0002f4a0: 6c 3d 3d 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 l==this._emitted 0002f4b0: 5b 22 74 3a 22 2b 65 5d 3f 6e 75 6c 6c 3a 76 6f ["t:"+e]?null:vo 0002f4c0: 69 64 20 30 3b 69 66 28 6e 75 6c 6c 3d 3d 6e 2e id 0;if(null==n. 0002f4d0: 62 6c 6f 63 6b 48 61 73 68 29 72 65 74 75 72 6e blockHash)return 0002f4e0: 3b 63 6f 6e 73 74 20 72 3d 74 68 69 73 2e 66 6f ;const r=this.fo 0002f4f0: 72 6d 61 74 74 65 72 2e 72 65 63 65 69 70 74 28 rmatter.receipt( 0002f500: 6e 29 3b 69 66 28 6e 75 6c 6c 3d 3d 72 2e 62 6c n);if(null==r.bl 0002f510: 6f 63 6b 4e 75 6d 62 65 72 29 72 2e 63 6f 6e 66 ockNumber)r.conf 0002f520: 69 72 6d 61 74 69 6f 6e 73 3d 30 3b 65 6c 73 65 irmations=0;else 0002f530: 20 69 66 28 6e 75 6c 6c 3d 3d 72 2e 63 6f 6e 66 if(null==r.conf 0002f540: 69 72 6d 61 74 69 6f 6e 73 29 7b 6c 65 74 20 65 irmations){let e 0002f550: 3d 28 79 69 65 6c 64 20 74 68 69 73 2e 5f 67 65 =(yield this._ge 0002f560: 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e 75 tInternalBlockNu 0002f570: 6d 62 65 72 28 31 30 30 2b 32 2a 74 68 69 73 2e mber(100+2*this. 0002f580: 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 6c 29 pollingInterval) 0002f590: 29 2d 72 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 2b )-r.blockNumber+ 0002f5a0: 31 3b 65 3c 3d 30 26 26 28 65 3d 31 29 2c 72 2e 1;e<=0&&(e=1),r. 0002f5b0: 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 3d 65 7d confirmations=e} 0002f5c0: 72 65 74 75 72 6e 20 72 7d 29 29 29 2c 7b 6f 6e return r}))),{on 0002f5d0: 63 65 50 6f 6c 6c 3a 74 68 69 73 7d 29 7d 29 29 cePoll:this})})) 0002f5e0: 7d 67 65 74 4c 6f 67 73 28 65 29 7b 72 65 74 75 }getLogs(e){retu 0002f5f0: 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 rn Ma(this,void 0002f600: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 0002f610: 6f 6e 2a 28 29 7b 79 69 65 6c 64 20 74 68 69 73 on*(){yield this 0002f620: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 3b 63 6f .getNetwork();co 0002f630: 6e 73 74 20 74 3d 79 69 65 6c 64 20 72 65 28 7b nst t=yield re({ 0002f640: 66 69 6c 74 65 72 3a 74 68 69 73 2e 5f 67 65 74 filter:this._get 0002f650: 46 69 6c 74 65 72 28 65 29 7d 29 2c 6e 3d 79 69 Filter(e)}),n=yi 0002f660: 65 6c 64 20 74 68 69 73 2e 70 65 72 66 6f 72 6d eld this.perform 0002f670: 28 22 67 65 74 4c 6f 67 73 22 2c 74 29 3b 72 65 ("getLogs",t);re 0002f680: 74 75 72 6e 20 6e 2e 66 6f 72 45 61 63 68 28 28 turn n.forEach(( 0002f690: 65 3d 3e 7b 6e 75 6c 6c 3d 3d 65 2e 72 65 6d 6f e=>{null==e.remo 0002f6a0: 76 65 64 26 26 28 65 2e 72 65 6d 6f 76 65 64 3d ved&&(e.removed= 0002f6b0: 21 31 29 7d 29 29 2c 49 61 2e 61 72 72 61 79 4f !1)})),Ia.arrayO 0002f6c0: 66 28 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 f(this.formatter 0002f6d0: 2e 66 69 6c 74 65 72 4c 6f 67 2e 62 69 6e 64 28 .filterLog.bind( 0002f6e0: 74 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 29 29 this.formatter)) 0002f6f0: 28 6e 29 7d 29 29 7d 67 65 74 45 74 68 65 72 50 (n)}))}getEtherP 0002f700: 72 69 63 65 28 29 7b 72 65 74 75 72 6e 20 4d 61 rice(){return Ma 0002f710: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 0002f720: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 0002f730: 7b 72 65 74 75 72 6e 20 79 69 65 6c 64 20 74 68 {return yield th 0002f740: 69 73 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 2c is.getNetwork(), 0002f750: 74 68 69 73 2e 70 65 72 66 6f 72 6d 28 22 67 65 this.perform("ge 0002f760: 74 45 74 68 65 72 50 72 69 63 65 22 2c 7b 7d 29 tEtherPrice",{}) 0002f770: 7d 29 29 7d 5f 67 65 74 42 6c 6f 63 6b 54 61 67 }))}_getBlockTag 0002f780: 28 65 29 7b 72 65 74 75 72 6e 20 4d 61 28 74 68 (e){return Ma(th 0002f790: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 0002f7a0: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 69 66 ,(function*(){if 0002f7b0: 28 22 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 6f ("number"==typeo 0002f7c0: 66 28 65 3d 79 69 65 6c 64 20 65 29 26 26 65 3c f(e=yield e)&&e< 0002f7d0: 30 29 7b 65 25 31 26 26 44 61 2e 74 68 72 6f 77 0){e%1&&Da.throw 0002f7e0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 0002f7f0: 6e 76 61 6c 69 64 20 42 6c 6f 63 6b 54 61 67 22 nvalid BlockTag" 0002f800: 2c 22 62 6c 6f 63 6b 54 61 67 22 2c 65 29 3b 6c ,"blockTag",e);l 0002f810: 65 74 20 74 3d 79 69 65 6c 64 20 74 68 69 73 2e et t=yield this. 0002f820: 5f 67 65 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 _getInternalBloc 0002f830: 6b 4e 75 6d 62 65 72 28 31 30 30 2b 32 2a 74 68 kNumber(100+2*th 0002f840: 69 73 2e 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 is.pollingInterv 0002f850: 61 6c 29 3b 72 65 74 75 72 6e 20 74 2b 3d 65 2c al);return t+=e, 0002f860: 74 3c 30 26 26 28 74 3d 30 29 2c 74 68 69 73 2e t<0&&(t=0),this. 0002f870: 66 6f 72 6d 61 74 74 65 72 2e 62 6c 6f 63 6b 54 formatter.blockT 0002f880: 61 67 28 74 29 7d 72 65 74 75 72 6e 20 74 68 69 ag(t)}return thi 0002f890: 73 2e 66 6f 72 6d 61 74 74 65 72 2e 62 6c 6f 63 s.formatter.bloc 0002f8a0: 6b 54 61 67 28 65 29 7d 29 29 7d 67 65 74 52 65 kTag(e)}))}getRe 0002f8b0: 73 6f 6c 76 65 72 28 65 29 7b 72 65 74 75 72 6e solver(e){return 0002f8c0: 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 20 30 2c Ma(this,void 0, 0002f8d0: 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e void 0,(function 0002f8e0: 2a 28 29 7b 6c 65 74 20 74 3d 65 3b 66 6f 72 28 *(){let t=e;for( 0002f8f0: 3b 3b 29 7b 69 66 28 22 22 3d 3d 3d 74 7c 7c 22 ;;){if(""===t||" 0002f900: 2e 22 3d 3d 3d 74 29 72 65 74 75 72 6e 20 6e 75 ."===t)return nu 0002f910: 6c 6c 3b 69 66 28 22 65 74 68 22 21 3d 3d 65 26 ll;if("eth"!==e& 0002f920: 26 22 65 74 68 22 3d 3d 3d 74 29 72 65 74 75 72 &"eth"===t)retur 0002f930: 6e 20 6e 75 6c 6c 3b 63 6f 6e 73 74 20 6e 3d 79 n null;const n=y 0002f940: 69 65 6c 64 20 74 68 69 73 2e 5f 67 65 74 52 65 ield this._getRe 0002f950: 73 6f 6c 76 65 72 28 74 2c 22 67 65 74 52 65 73 solver(t,"getRes 0002f960: 6f 6c 76 65 72 22 29 3b 69 66 28 6e 75 6c 6c 21 olver");if(null! 0002f970: 3d 6e 29 7b 63 6f 6e 73 74 20 72 3d 6e 65 77 20 =n){const r=new 0002f980: 65 73 28 74 68 69 73 2c 6e 2c 65 29 3b 72 65 74 es(this,n,e);ret 0002f990: 75 72 6e 20 74 3d 3d 3d 65 7c 7c 28 79 69 65 6c urn t===e||(yiel 0002f9a0: 64 20 72 2e 73 75 70 70 6f 72 74 73 57 69 6c 64 d r.supportsWild 0002f9b0: 63 61 72 64 28 29 29 3f 72 3a 6e 75 6c 6c 7d 74 card())?r:null}t 0002f9c0: 3d 74 2e 73 70 6c 69 74 28 22 2e 22 29 2e 73 6c =t.split(".").sl 0002f9d0: 69 63 65 28 31 29 2e 6a 6f 69 6e 28 22 2e 22 29 ice(1).join(".") 0002f9e0: 7d 7d 29 29 7d 5f 67 65 74 52 65 73 6f 6c 76 65 }}))}_getResolve 0002f9f0: 72 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 4d 61 r(e,t){return Ma 0002fa00: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 0002fa10: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 0002fa20: 7b 6e 75 6c 6c 3d 3d 74 26 26 28 74 3d 22 45 4e {null==t&&(t="EN 0002fa30: 53 22 29 3b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c S");const n=yiel 0002fa40: 64 20 74 68 69 73 2e 67 65 74 4e 65 74 77 6f 72 d this.getNetwor 0002fa50: 6b 28 29 3b 6e 2e 65 6e 73 41 64 64 72 65 73 73 k();n.ensAddress 0002fa60: 7c 7c 44 61 2e 74 68 72 6f 77 45 72 72 6f 72 28 ||Da.throwError( 0002fa70: 22 6e 65 74 77 6f 72 6b 20 64 6f 65 73 20 6e 6f "network does no 0002fa80: 74 20 73 75 70 70 6f 72 74 20 45 4e 53 22 2c 79 t support ENS",y 0002fa90: 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 .errors.UNSUPPOR 0002faa0: 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f TED_OPERATION,{o 0002fab0: 70 65 72 61 74 69 6f 6e 3a 74 2c 6e 65 74 77 6f peration:t,netwo 0002fac0: 72 6b 3a 6e 2e 6e 61 6d 65 7d 29 3b 74 72 79 7b rk:n.name});try{ 0002fad0: 63 6f 6e 73 74 20 74 3d 79 69 65 6c 64 20 74 68 const t=yield th 0002fae0: 69 73 2e 63 61 6c 6c 28 7b 74 6f 3a 6e 2e 65 6e is.call({to:n.en 0002faf0: 73 41 64 64 72 65 73 73 2c 64 61 74 61 3a 22 30 sAddress,data:"0 0002fb00: 78 30 31 37 38 62 38 62 66 22 2b 68 61 28 65 29 x0178b8bf"+ha(e) 0002fb10: 2e 73 75 62 73 74 72 69 6e 67 28 32 29 7d 29 3b .substring(2)}); 0002fb20: 72 65 74 75 72 6e 20 74 68 69 73 2e 66 6f 72 6d return this.form 0002fb30: 61 74 74 65 72 2e 63 61 6c 6c 41 64 64 72 65 73 atter.callAddres 0002fb40: 73 28 74 29 7d 63 61 74 63 68 28 65 29 7b 7d 72 s(t)}catch(e){}r 0002fb50: 65 74 75 72 6e 20 6e 75 6c 6c 7d 29 29 7d 72 65 eturn null}))}re 0002fb60: 73 6f 6c 76 65 4e 61 6d 65 28 65 29 7b 72 65 74 solveName(e){ret 0002fb70: 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 6f 69 64 urn Ma(this,void 0002fb80: 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 0,void 0,(funct 0002fb90: 69 6f 6e 2a 28 29 7b 65 3d 79 69 65 6c 64 20 65 ion*(){e=yield e 0002fba0: 3b 74 72 79 7b 72 65 74 75 72 6e 20 50 72 6f 6d ;try{return Prom 0002fbb0: 69 73 65 2e 72 65 73 6f 6c 76 65 28 74 68 69 73 ise.resolve(this 0002fbc0: 2e 66 6f 72 6d 61 74 74 65 72 2e 61 64 64 72 65 .formatter.addre 0002fbd0: 73 73 28 65 29 29 7d 63 61 74 63 68 28 74 29 7b ss(e))}catch(t){ 0002fbe0: 69 66 28 49 28 65 29 29 74 68 72 6f 77 20 74 7d if(I(e))throw t} 0002fbf0: 22 73 74 72 69 6e 67 22 21 3d 74 79 70 65 6f 66 "string"!=typeof 0002fc00: 20 65 26 26 44 61 2e 74 68 72 6f 77 41 72 67 75 e&&Da.throwArgu 0002fc10: 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e 76 61 6c mentError("inval 0002fc20: 69 64 20 45 4e 53 20 6e 61 6d 65 22 2c 22 6e 61 id ENS name","na 0002fc30: 6d 65 22 2c 65 29 3b 63 6f 6e 73 74 20 74 3d 79 me",e);const t=y 0002fc40: 69 65 6c 64 20 74 68 69 73 2e 67 65 74 52 65 73 ield this.getRes 0002fc50: 6f 6c 76 65 72 28 65 29 3b 72 65 74 75 72 6e 20 olver(e);return 0002fc60: 74 3f 79 69 65 6c 64 20 74 2e 67 65 74 41 64 64 t?yield t.getAdd 0002fc70: 72 65 73 73 28 29 3a 6e 75 6c 6c 7d 29 29 7d 6c ress():null}))}l 0002fc80: 6f 6f 6b 75 70 41 64 64 72 65 73 73 28 65 29 7b ookupAddress(e){ 0002fc90: 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 return Ma(this,v 0002fca0: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 0002fcb0: 6e 63 74 69 6f 6e 2a 28 29 7b 65 3d 79 69 65 6c nction*(){e=yiel 0002fcc0: 64 20 65 3b 63 6f 6e 73 74 20 74 3d 28 65 3d 74 d e;const t=(e=t 0002fcd0: 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e 61 64 his.formatter.ad 0002fce0: 64 72 65 73 73 28 65 29 29 2e 73 75 62 73 74 72 dress(e)).substr 0002fcf0: 69 6e 67 28 32 29 2e 74 6f 4c 6f 77 65 72 43 61 ing(2).toLowerCa 0002fd00: 73 65 28 29 2b 22 2e 61 64 64 72 2e 72 65 76 65 se()+".addr.reve 0002fd10: 72 73 65 22 2c 6e 3d 79 69 65 6c 64 20 74 68 69 rse",n=yield thi 0002fd20: 73 2e 5f 67 65 74 52 65 73 6f 6c 76 65 72 28 74 s._getResolver(t 0002fd30: 2c 22 6c 6f 6f 6b 75 70 41 64 64 72 65 73 73 22 ,"lookupAddress" 0002fd40: 29 3b 69 66 28 6e 75 6c 6c 3d 3d 6e 29 72 65 74 );if(null==n)ret 0002fd50: 75 72 6e 20 6e 75 6c 6c 3b 63 6f 6e 73 74 20 72 urn null;const r 0002fd60: 3d 59 61 28 79 69 65 6c 64 20 74 68 69 73 2e 63 =Ya(yield this.c 0002fd70: 61 6c 6c 28 7b 74 6f 3a 6e 2c 64 61 74 61 3a 22 all({to:n,data:" 0002fd80: 30 78 36 39 31 66 33 34 33 31 22 2b 68 61 28 74 0x691f3431"+ha(t 0002fd90: 29 2e 73 75 62 73 74 72 69 6e 67 28 32 29 7d 29 ).substring(2)}) 0002fda0: 2c 30 29 3b 72 65 74 75 72 6e 28 79 69 65 6c 64 ,0);return(yield 0002fdb0: 20 74 68 69 73 2e 72 65 73 6f 6c 76 65 4e 61 6d this.resolveNam 0002fdc0: 65 28 72 29 29 21 3d 65 3f 6e 75 6c 6c 3a 72 7d e(r))!=e?null:r} 0002fdd0: 29 29 7d 67 65 74 41 76 61 74 61 72 28 65 29 7b ))}getAvatar(e){ 0002fde0: 72 65 74 75 72 6e 20 4d 61 28 74 68 69 73 2c 76 return Ma(this,v 0002fdf0: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 0002fe00: 6e 63 74 69 6f 6e 2a 28 29 7b 6c 65 74 20 74 3d nction*(){let t= 0002fe10: 6e 75 6c 6c 3b 69 66 28 49 28 65 29 29 7b 63 6f null;if(I(e)){co 0002fe20: 6e 73 74 20 6e 3d 74 68 69 73 2e 66 6f 72 6d 61 nst n=this.forma 0002fe30: 74 74 65 72 2e 61 64 64 72 65 73 73 28 65 29 2e tter.address(e). 0002fe40: 73 75 62 73 74 72 69 6e 67 28 32 29 2e 74 6f 4c substring(2).toL 0002fe50: 6f 77 65 72 43 61 73 65 28 29 2b 22 2e 61 64 64 owerCase()+".add 0002fe60: 72 2e 72 65 76 65 72 73 65 22 2c 72 3d 79 69 65 r.reverse",r=yie 0002fe70: 6c 64 20 74 68 69 73 2e 5f 67 65 74 52 65 73 6f ld this._getReso 0002fe80: 6c 76 65 72 28 6e 2c 22 67 65 74 41 76 61 74 61 lver(n,"getAvata 0002fe90: 72 22 29 3b 69 66 28 21 72 29 72 65 74 75 72 6e r");if(!r)return 0002fea0: 20 6e 75 6c 6c 3b 74 3d 6e 65 77 20 65 73 28 74 null;t=new es(t 0002feb0: 68 69 73 2c 72 2c 6e 29 3b 74 72 79 7b 63 6f 6e his,r,n);try{con 0002fec0: 73 74 20 65 3d 79 69 65 6c 64 20 74 2e 67 65 74 st e=yield t.get 0002fed0: 41 76 61 74 61 72 28 29 3b 69 66 28 65 29 72 65 Avatar();if(e)re 0002fee0: 74 75 72 6e 20 65 2e 75 72 6c 7d 63 61 74 63 68 turn e.url}catch 0002fef0: 28 65 29 7b 69 66 28 65 2e 63 6f 64 65 21 3d 3d (e){if(e.code!== 0002ff00: 79 2e 65 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 y.errors.CALL_EX 0002ff10: 43 45 50 54 49 4f 4e 29 74 68 72 6f 77 20 65 7d CEPTION)throw e} 0002ff20: 74 72 79 7b 63 6f 6e 73 74 20 65 3d 59 61 28 79 try{const e=Ya(y 0002ff30: 69 65 6c 64 20 74 68 69 73 2e 63 61 6c 6c 28 7b ield this.call({ 0002ff40: 74 6f 3a 72 2c 64 61 74 61 3a 22 30 78 36 39 31 to:r,data:"0x691 0002ff50: 66 33 34 33 31 22 2b 68 61 28 6e 29 2e 73 75 62 f3431"+ha(n).sub 0002ff60: 73 74 72 69 6e 67 28 32 29 7d 29 2c 30 29 3b 74 string(2)}),0);t 0002ff70: 3d 79 69 65 6c 64 20 74 68 69 73 2e 67 65 74 52 =yield this.getR 0002ff80: 65 73 6f 6c 76 65 72 28 65 29 7d 63 61 74 63 68 esolver(e)}catch 0002ff90: 28 65 29 7b 69 66 28 65 2e 63 6f 64 65 21 3d 3d (e){if(e.code!== 0002ffa0: 79 2e 65 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 y.errors.CALL_EX 0002ffb0: 43 45 50 54 49 4f 4e 29 74 68 72 6f 77 20 65 3b CEPTION)throw e; 0002ffc0: 72 65 74 75 72 6e 20 6e 75 6c 6c 7d 7d 65 6c 73 return null}}els 0002ffd0: 65 20 69 66 28 74 3d 79 69 65 6c 64 20 74 68 69 e if(t=yield thi 0002ffe0: 73 2e 67 65 74 52 65 73 6f 6c 76 65 72 28 65 29 s.getResolver(e) 0002fff0: 2c 21 74 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b ,!t)return null; 00030000: 63 6f 6e 73 74 20 6e 3d 79 69 65 6c 64 20 74 2e const n=yield t. 00030010: 67 65 74 41 76 61 74 61 72 28 29 3b 72 65 74 75 getAvatar();retu 00030020: 72 6e 20 6e 75 6c 6c 3d 3d 6e 3f 6e 75 6c 6c 3a rn null==n?null: 00030030: 6e 2e 75 72 6c 7d 29 29 7d 70 65 72 66 6f 72 6d n.url}))}perform 00030040: 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 44 61 2e (e,t){return Da. 00030050: 74 68 72 6f 77 45 72 72 6f 72 28 65 2b 22 20 6e throwError(e+" n 00030060: 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 65 64 22 2c ot implemented", 00030070: 79 2e 65 72 72 6f 72 73 2e 4e 4f 54 5f 49 4d 50 y.errors.NOT_IMP 00030080: 4c 45 4d 45 4e 54 45 44 2c 7b 6f 70 65 72 61 74 LEMENTED,{operat 00030090: 69 6f 6e 3a 65 7d 29 7d 5f 73 74 61 72 74 45 76 ion:e})}_startEv 000300a0: 65 6e 74 28 65 29 7b 74 68 69 73 2e 70 6f 6c 6c ent(e){this.poll 000300b0: 69 6e 67 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 ing=this._events 000300c0: 2e 66 69 6c 74 65 72 28 28 65 3d 3e 65 2e 70 6f .filter((e=>e.po 000300d0: 6c 6c 61 62 6c 65 28 29 29 29 2e 6c 65 6e 67 74 llable())).lengt 000300e0: 68 3e 30 7d 5f 73 74 6f 70 45 76 65 6e 74 28 65 h>0}_stopEvent(e 000300f0: 29 7b 74 68 69 73 2e 70 6f 6c 6c 69 6e 67 3d 74 ){this.polling=t 00030100: 68 69 73 2e 5f 65 76 65 6e 74 73 2e 66 69 6c 74 his._events.filt 00030110: 65 72 28 28 65 3d 3e 65 2e 70 6f 6c 6c 61 62 6c er((e=>e.pollabl 00030120: 65 28 29 29 29 2e 6c 65 6e 67 74 68 3e 30 7d 5f e())).length>0}_ 00030130: 61 64 64 45 76 65 6e 74 4c 69 73 74 65 6e 65 72 addEventListener 00030140: 28 65 2c 74 2c 6e 29 7b 63 6f 6e 73 74 20 72 3d (e,t,n){const r= 00030150: 6e 65 77 20 47 61 28 55 61 28 65 29 2c 74 2c 6e new Ga(Ua(e),t,n 00030160: 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 65 );return this._e 00030170: 76 65 6e 74 73 2e 70 75 73 68 28 72 29 2c 74 68 vents.push(r),th 00030180: 69 73 2e 5f 73 74 61 72 74 45 76 65 6e 74 28 72 is._startEvent(r 00030190: 29 2c 74 68 69 73 7d 6f 6e 28 65 2c 74 29 7b 72 ),this}on(e,t){r 000301a0: 65 74 75 72 6e 20 74 68 69 73 2e 5f 61 64 64 45 eturn this._addE 000301b0: 76 65 6e 74 4c 69 73 74 65 6e 65 72 28 65 2c 74 ventListener(e,t 000301c0: 2c 21 31 29 7d 6f 6e 63 65 28 65 2c 74 29 7b 72 ,!1)}once(e,t){r 000301d0: 65 74 75 72 6e 20 74 68 69 73 2e 5f 61 64 64 45 eturn this._addE 000301e0: 76 65 6e 74 4c 69 73 74 65 6e 65 72 28 65 2c 74 ventListener(e,t 000301f0: 2c 21 30 29 7d 65 6d 69 74 28 65 2c 2e 2e 2e 74 ,!0)}emit(e,...t 00030200: 29 7b 6c 65 74 20 6e 3d 21 31 2c 72 3d 5b 5d 2c ){let n=!1,r=[], 00030210: 6f 3d 55 61 28 65 29 3b 72 65 74 75 72 6e 20 74 o=Ua(e);return t 00030220: 68 69 73 2e 5f 65 76 65 6e 74 73 3d 74 68 69 73 his._events=this 00030230: 2e 5f 65 76 65 6e 74 73 2e 66 69 6c 74 65 72 28 ._events.filter( 00030240: 28 65 3d 3e 65 2e 74 61 67 21 3d 3d 6f 7c 7c 28 (e=>e.tag!==o||( 00030250: 73 65 74 54 69 6d 65 6f 75 74 28 28 28 29 3d 3e setTimeout((()=> 00030260: 7b 65 2e 6c 69 73 74 65 6e 65 72 2e 61 70 70 6c {e.listener.appl 00030270: 79 28 74 68 69 73 2c 74 29 7d 29 2c 30 29 2c 6e y(this,t)}),0),n 00030280: 3d 21 30 2c 21 65 2e 6f 6e 63 65 7c 7c 28 72 2e =!0,!e.once||(r. 00030290: 70 75 73 68 28 65 29 2c 21 31 29 29 29 29 2c 72 push(e),!1)))),r 000302a0: 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e 7b 74 68 .forEach((e=>{th 000302b0: 69 73 2e 5f 73 74 6f 70 45 76 65 6e 74 28 65 29 is._stopEvent(e) 000302c0: 7d 29 29 2c 6e 7d 6c 69 73 74 65 6e 65 72 43 6f })),n}listenerCo 000302d0: 75 6e 74 28 65 29 7b 69 66 28 21 65 29 72 65 74 unt(e){if(!e)ret 000302e0: 75 72 6e 20 74 68 69 73 2e 5f 65 76 65 6e 74 73 urn this._events 000302f0: 2e 6c 65 6e 67 74 68 3b 6c 65 74 20 74 3d 55 61 .length;let t=Ua 00030300: 28 65 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e (e);return this. 00030310: 5f 65 76 65 6e 74 73 2e 66 69 6c 74 65 72 28 28 _events.filter(( 00030320: 65 3d 3e 65 2e 74 61 67 3d 3d 3d 74 29 29 2e 6c e=>e.tag===t)).l 00030330: 65 6e 67 74 68 7d 6c 69 73 74 65 6e 65 72 73 28 ength}listeners( 00030340: 65 29 7b 69 66 28 6e 75 6c 6c 3d 3d 65 29 72 65 e){if(null==e)re 00030350: 74 75 72 6e 20 74 68 69 73 2e 5f 65 76 65 6e 74 turn this._event 00030360: 73 2e 6d 61 70 28 28 65 3d 3e 65 2e 6c 69 73 74 s.map((e=>e.list 00030370: 65 6e 65 72 29 29 3b 6c 65 74 20 74 3d 55 61 28 ener));let t=Ua( 00030380: 65 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f e);return this._ 00030390: 65 76 65 6e 74 73 2e 66 69 6c 74 65 72 28 28 65 events.filter((e 000303a0: 3d 3e 65 2e 74 61 67 3d 3d 3d 74 29 29 2e 6d 61 =>e.tag===t)).ma 000303b0: 70 28 28 65 3d 3e 65 2e 6c 69 73 74 65 6e 65 72 p((e=>e.listener 000303c0: 29 29 7d 6f 66 66 28 65 2c 74 29 7b 69 66 28 6e ))}off(e,t){if(n 000303d0: 75 6c 6c 3d 3d 74 29 72 65 74 75 72 6e 20 74 68 ull==t)return th 000303e0: 69 73 2e 72 65 6d 6f 76 65 41 6c 6c 4c 69 73 74 is.removeAllList 000303f0: 65 6e 65 72 73 28 65 29 3b 63 6f 6e 73 74 20 6e eners(e);const n 00030400: 3d 5b 5d 3b 6c 65 74 20 72 3d 21 31 2c 6f 3d 55 =[];let r=!1,o=U 00030410: 61 28 65 29 3b 72 65 74 75 72 6e 20 74 68 69 73 a(e);return this 00030420: 2e 5f 65 76 65 6e 74 73 3d 74 68 69 73 2e 5f 65 ._events=this._e 00030430: 76 65 6e 74 73 2e 66 69 6c 74 65 72 28 28 65 3d vents.filter((e= 00030440: 3e 65 2e 74 61 67 21 3d 3d 6f 7c 7c 65 2e 6c 69 >e.tag!==o||e.li 00030450: 73 74 65 6e 65 72 21 3d 74 7c 7c 28 21 21 72 7c stener!=t||(!!r| 00030460: 7c 28 72 3d 21 30 2c 6e 2e 70 75 73 68 28 65 29 |(r=!0,n.push(e) 00030470: 2c 21 31 29 29 29 29 2c 6e 2e 66 6f 72 45 61 63 ,!1)))),n.forEac 00030480: 68 28 28 65 3d 3e 7b 74 68 69 73 2e 5f 73 74 6f h((e=>{this._sto 00030490: 70 45 76 65 6e 74 28 65 29 7d 29 29 2c 74 68 69 pEvent(e)})),thi 000304a0: 73 7d 72 65 6d 6f 76 65 41 6c 6c 4c 69 73 74 65 s}removeAllListe 000304b0: 6e 65 72 73 28 65 29 7b 6c 65 74 20 74 3d 5b 5d ners(e){let t=[] 000304c0: 3b 69 66 28 6e 75 6c 6c 3d 3d 65 29 74 3d 74 68 ;if(null==e)t=th 000304d0: 69 73 2e 5f 65 76 65 6e 74 73 2c 74 68 69 73 2e is._events,this. 000304e0: 5f 65 76 65 6e 74 73 3d 5b 5d 3b 65 6c 73 65 7b _events=[];else{ 000304f0: 63 6f 6e 73 74 20 6e 3d 55 61 28 65 29 3b 74 68 const n=Ua(e);th 00030500: 69 73 2e 5f 65 76 65 6e 74 73 3d 74 68 69 73 2e is._events=this. 00030510: 5f 65 76 65 6e 74 73 2e 66 69 6c 74 65 72 28 28 _events.filter(( 00030520: 65 3d 3e 65 2e 74 61 67 21 3d 3d 6e 7c 7c 28 74 e=>e.tag!==n||(t 00030530: 2e 70 75 73 68 28 65 29 2c 21 31 29 29 29 7d 72 .push(e),!1)))}r 00030540: 65 74 75 72 6e 20 74 2e 66 6f 72 45 61 63 68 28 eturn t.forEach( 00030550: 28 65 3d 3e 7b 74 68 69 73 2e 5f 73 74 6f 70 45 (e=>{this._stopE 00030560: 76 65 6e 74 28 65 29 7d 29 29 2c 74 68 69 73 7d vent(e)})),this} 00030570: 7d 76 61 72 20 6f 73 3d 66 75 6e 63 74 69 6f 6e }var os=function 00030580: 28 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e (e,t,n,r){return 00030590: 20 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 new(n||(n=Promi 000305a0: 73 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f se))((function(o 000305b0: 2c 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 ,i){function a(e 000305c0: 29 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 ){try{l(r.next(e 000305d0: 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 ))}catch(e){i(e) 000305e0: 7d 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b }}function s(e){ 000305f0: 74 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 try{l(r.throw(e) 00030600: 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d )}catch(e){i(e)} 00030610: 7d 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 }function l(e){v 00030620: 61 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e ar t;e.done?o(e. 00030630: 76 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 value):(t=e.valu 00030640: 65 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e e,t instanceof n 00030650: 3f 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 ?t:new n((functi 00030660: 6f 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 on(e){e(t)}))).t 00030670: 68 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e hen(a,s)}l((r=r. 00030680: 61 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e apply(e,t||[])). 00030690: 6e 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 next())}))};cons 000306a0: 74 20 69 73 3d 6e 65 77 20 79 28 41 61 29 2c 61 t is=new y(Aa),a 000306b0: 73 3d 5b 22 63 61 6c 6c 22 2c 22 65 73 74 69 6d s=["call","estim 000306c0: 61 74 65 47 61 73 22 5d 3b 66 75 6e 63 74 69 6f ateGas"];functio 000306d0: 6e 20 73 73 28 65 2c 74 29 7b 69 66 28 6e 75 6c n ss(e,t){if(nul 000306e0: 6c 3d 3d 65 29 72 65 74 75 72 6e 20 6e 75 6c 6c l==e)return null 000306f0: 3b 69 66 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 ;if("string"==ty 00030700: 70 65 6f 66 20 65 2e 6d 65 73 73 61 67 65 26 26 peof e.message&& 00030710: 65 2e 6d 65 73 73 61 67 65 2e 6d 61 74 63 68 28 e.message.match( 00030720: 22 72 65 76 65 72 74 65 64 22 29 29 7b 63 6f 6e "reverted")){con 00030730: 73 74 20 6e 3d 49 28 65 2e 64 61 74 61 29 3f 65 st n=I(e.data)?e 00030740: 2e 64 61 74 61 3a 6e 75 6c 6c 3b 69 66 28 21 74 .data:null;if(!t 00030750: 7c 7c 6e 29 72 65 74 75 72 6e 7b 6d 65 73 73 61 ||n)return{messa 00030760: 67 65 3a 65 2e 6d 65 73 73 61 67 65 2c 64 61 74 ge:e.message,dat 00030770: 61 3a 6e 7d 7d 69 66 28 22 6f 62 6a 65 63 74 22 a:n}}if("object" 00030780: 3d 3d 74 79 70 65 6f 66 20 65 29 7b 66 6f 72 28 ==typeof e){for( 00030790: 63 6f 6e 73 74 20 6e 20 69 6e 20 65 29 7b 63 6f const n in e){co 000307a0: 6e 73 74 20 72 3d 73 73 28 65 5b 6e 5d 2c 74 29 nst r=ss(e[n],t) 000307b0: 3b 69 66 28 72 29 72 65 74 75 72 6e 20 72 7d 72 ;if(r)return r}r 000307c0: 65 74 75 72 6e 20 6e 75 6c 6c 7d 69 66 28 22 73 eturn null}if("s 000307d0: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 tring"==typeof e 000307e0: 29 74 72 79 7b 72 65 74 75 72 6e 20 73 73 28 4a )try{return ss(J 000307f0: 53 4f 4e 2e 70 61 72 73 65 28 65 29 2c 74 29 7d SON.parse(e),t)} 00030800: 63 61 74 63 68 28 65 29 7b 7d 72 65 74 75 72 6e catch(e){}return 00030810: 20 6e 75 6c 6c 7d 66 75 6e 63 74 69 6f 6e 20 6c null}function l 00030820: 73 28 65 2c 74 2c 6e 29 7b 63 6f 6e 73 74 20 72 s(e,t,n){const r 00030830: 3d 6e 2e 74 72 61 6e 73 61 63 74 69 6f 6e 7c 7c =n.transaction|| 00030840: 6e 2e 73 69 67 6e 65 64 54 72 61 6e 73 61 63 74 n.signedTransact 00030850: 69 6f 6e 3b 69 66 28 22 63 61 6c 6c 22 3d 3d 3d ion;if("call"=== 00030860: 65 29 7b 63 6f 6e 73 74 20 65 3d 73 73 28 74 2c e){const e=ss(t, 00030870: 21 30 29 3b 69 66 28 65 29 72 65 74 75 72 6e 20 !0);if(e)return 00030880: 65 2e 64 61 74 61 3b 69 73 2e 74 68 72 6f 77 45 e.data;is.throwE 00030890: 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 20 72 65 rror("missing re 000308a0: 76 65 72 74 20 64 61 74 61 20 69 6e 20 63 61 6c vert data in cal 000308b0: 6c 20 65 78 63 65 70 74 69 6f 6e 3b 20 54 72 61 l exception; Tra 000308c0: 6e 73 61 63 74 69 6f 6e 20 72 65 76 65 72 74 65 nsaction reverte 000308d0: 64 20 77 69 74 68 6f 75 74 20 61 20 72 65 61 73 d without a reas 000308e0: 6f 6e 20 73 74 72 69 6e 67 22 2c 79 2e 65 72 72 on string",y.err 000308f0: 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 54 49 ors.CALL_EXCEPTI 00030900: 4f 4e 2c 7b 64 61 74 61 3a 22 30 78 22 2c 74 72 ON,{data:"0x",tr 00030910: 61 6e 73 61 63 74 69 6f 6e 3a 72 2c 65 72 72 6f ansaction:r,erro 00030920: 72 3a 74 7d 29 7d 69 66 28 22 65 73 74 69 6d 61 r:t})}if("estima 00030930: 74 65 47 61 73 22 3d 3d 3d 65 29 7b 6c 65 74 20 teGas"===e){let 00030940: 6e 3d 73 73 28 74 2e 62 6f 64 79 2c 21 31 29 3b n=ss(t.body,!1); 00030950: 6e 75 6c 6c 3d 3d 6e 26 26 28 6e 3d 73 73 28 74 null==n&&(n=ss(t 00030960: 2c 21 31 29 29 2c 6e 26 26 69 73 2e 74 68 72 6f ,!1)),n&&is.thro 00030970: 77 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 65 wError("cannot e 00030980: 73 74 69 6d 61 74 65 20 67 61 73 3b 20 74 72 61 stimate gas; tra 00030990: 6e 73 61 63 74 69 6f 6e 20 6d 61 79 20 66 61 69 nsaction may fai 000309a0: 6c 20 6f 72 20 6d 61 79 20 72 65 71 75 69 72 65 l or may require 000309b0: 20 6d 61 6e 75 61 6c 20 67 61 73 20 6c 69 6d 69 manual gas limi 000309c0: 74 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 50 52 t",y.errors.UNPR 000309d0: 45 44 49 43 54 41 42 4c 45 5f 47 41 53 5f 4c 49 EDICTABLE_GAS_LI 000309e0: 4d 49 54 2c 7b 72 65 61 73 6f 6e 3a 6e 2e 6d 65 MIT,{reason:n.me 000309f0: 73 73 61 67 65 2c 6d 65 74 68 6f 64 3a 65 2c 74 ssage,method:e,t 00030a00: 72 61 6e 73 61 63 74 69 6f 6e 3a 72 2c 65 72 72 ransaction:r,err 00030a10: 6f 72 3a 74 7d 29 7d 6c 65 74 20 6f 3d 74 2e 6d or:t})}let o=t.m 00030a20: 65 73 73 61 67 65 3b 74 68 72 6f 77 20 74 2e 63 essage;throw t.c 00030a30: 6f 64 65 3d 3d 3d 79 2e 65 72 72 6f 72 73 2e 53 ode===y.errors.S 00030a40: 45 52 56 45 52 5f 45 52 52 4f 52 26 26 74 2e 65 ERVER_ERROR&&t.e 00030a50: 72 72 6f 72 26 26 22 73 74 72 69 6e 67 22 3d 3d rror&&"string"== 00030a60: 74 79 70 65 6f 66 20 74 2e 65 72 72 6f 72 2e 6d typeof t.error.m 00030a70: 65 73 73 61 67 65 3f 6f 3d 74 2e 65 72 72 6f 72 essage?o=t.error 00030a80: 2e 6d 65 73 73 61 67 65 3a 22 73 74 72 69 6e 67 .message:"string 00030a90: 22 3d 3d 74 79 70 65 6f 66 20 74 2e 62 6f 64 79 "==typeof t.body 00030aa0: 3f 6f 3d 74 2e 62 6f 64 79 3a 22 73 74 72 69 6e ?o=t.body:"strin 00030ab0: 67 22 3d 3d 74 79 70 65 6f 66 20 74 2e 72 65 73 g"==typeof t.res 00030ac0: 70 6f 6e 73 65 54 65 78 74 26 26 28 6f 3d 74 2e ponseText&&(o=t. 00030ad0: 72 65 73 70 6f 6e 73 65 54 65 78 74 29 2c 6f 3d responseText),o= 00030ae0: 28 6f 7c 7c 22 22 29 2e 74 6f 4c 6f 77 65 72 43 (o||"").toLowerC 00030af0: 61 73 65 28 29 2c 6f 2e 6d 61 74 63 68 28 2f 69 ase(),o.match(/i 00030b00: 6e 73 75 66 66 69 63 69 65 6e 74 20 66 75 6e 64 nsufficient fund 00030b10: 73 7c 62 61 73 65 20 66 65 65 20 65 78 63 65 65 s|base fee excee 00030b20: 64 73 20 67 61 73 20 6c 69 6d 69 74 7c 49 6e 73 ds gas limit|Ins 00030b30: 75 66 66 69 63 69 65 6e 74 46 75 6e 64 73 2f 69 ufficientFunds/i 00030b40: 29 26 26 69 73 2e 74 68 72 6f 77 45 72 72 6f 72 )&&is.throwError 00030b50: 28 22 69 6e 73 75 66 66 69 63 69 65 6e 74 20 66 ("insufficient f 00030b60: 75 6e 64 73 20 66 6f 72 20 69 6e 74 72 69 6e 73 unds for intrins 00030b70: 69 63 20 74 72 61 6e 73 61 63 74 69 6f 6e 20 63 ic transaction c 00030b80: 6f 73 74 22 2c 79 2e 65 72 72 6f 72 73 2e 49 4e ost",y.errors.IN 00030b90: 53 55 46 46 49 43 49 45 4e 54 5f 46 55 4e 44 53 SUFFICIENT_FUNDS 00030ba0: 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 68 6f 64 ,{error:t,method 00030bb0: 3a 65 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 72 :e,transaction:r 00030bc0: 7d 29 2c 6f 2e 6d 61 74 63 68 28 2f 6e 6f 6e 63 }),o.match(/nonc 00030bd0: 65 20 28 69 73 20 29 3f 74 6f 6f 20 6c 6f 77 2f e (is )?too low/ 00030be0: 69 29 26 26 69 73 2e 74 68 72 6f 77 45 72 72 6f i)&&is.throwErro 00030bf0: 72 28 22 6e 6f 6e 63 65 20 68 61 73 20 61 6c 72 r("nonce has alr 00030c00: 65 61 64 79 20 62 65 65 6e 20 75 73 65 64 22 2c eady been used", 00030c10: 79 2e 65 72 72 6f 72 73 2e 4e 4f 4e 43 45 5f 45 y.errors.NONCE_E 00030c20: 58 50 49 52 45 44 2c 7b 65 72 72 6f 72 3a 74 2c XPIRED,{error:t, 00030c30: 6d 65 74 68 6f 64 3a 65 2c 74 72 61 6e 73 61 63 method:e,transac 00030c40: 74 69 6f 6e 3a 72 7d 29 2c 6f 2e 6d 61 74 63 68 tion:r}),o.match 00030c50: 28 2f 72 65 70 6c 61 63 65 6d 65 6e 74 20 74 72 (/replacement tr 00030c60: 61 6e 73 61 63 74 69 6f 6e 20 75 6e 64 65 72 70 ansaction underp 00030c70: 72 69 63 65 64 7c 74 72 61 6e 73 61 63 74 69 6f riced|transactio 00030c80: 6e 20 67 61 73 20 70 72 69 63 65 2e 2a 74 6f 6f n gas price.*too 00030c90: 20 6c 6f 77 2f 69 29 26 26 69 73 2e 74 68 72 6f low/i)&&is.thro 00030ca0: 77 45 72 72 6f 72 28 22 72 65 70 6c 61 63 65 6d wError("replacem 00030cb0: 65 6e 74 20 66 65 65 20 74 6f 6f 20 6c 6f 77 22 ent fee too low" 00030cc0: 2c 79 2e 65 72 72 6f 72 73 2e 52 45 50 4c 41 43 ,y.errors.REPLAC 00030cd0: 45 4d 45 4e 54 5f 55 4e 44 45 52 50 52 49 43 45 EMENT_UNDERPRICE 00030ce0: 44 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 68 6f D,{error:t,metho 00030cf0: 64 3a 65 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a d:e,transaction: 00030d00: 72 7d 29 2c 6f 2e 6d 61 74 63 68 28 2f 6f 6e 6c r}),o.match(/onl 00030d10: 79 20 72 65 70 6c 61 79 2d 70 72 6f 74 65 63 74 y replay-protect 00030d20: 65 64 2f 69 29 26 26 69 73 2e 74 68 72 6f 77 45 ed/i)&&is.throwE 00030d30: 72 72 6f 72 28 22 6c 65 67 61 63 79 20 70 72 65 rror("legacy pre 00030d40: 2d 65 69 70 2d 31 35 35 20 74 72 61 6e 73 61 63 -eip-155 transac 00030d50: 74 69 6f 6e 73 20 6e 6f 74 20 73 75 70 70 6f 72 tions not suppor 00030d60: 74 65 64 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e ted",y.errors.UN 00030d70: 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 41 54 SUPPORTED_OPERAT 00030d80: 49 4f 4e 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 ION,{error:t,met 00030d90: 68 6f 64 3a 65 2c 74 72 61 6e 73 61 63 74 69 6f hod:e,transactio 00030da0: 6e 3a 72 7d 29 2c 61 73 2e 69 6e 64 65 78 4f 66 n:r}),as.indexOf 00030db0: 28 65 29 3e 3d 30 26 26 6f 2e 6d 61 74 63 68 28 (e)>=0&&o.match( 00030dc0: 2f 67 61 73 20 72 65 71 75 69 72 65 64 20 65 78 /gas required ex 00030dd0: 63 65 65 64 73 20 61 6c 6c 6f 77 61 6e 63 65 7c ceeds allowance| 00030de0: 61 6c 77 61 79 73 20 66 61 69 6c 69 6e 67 20 74 always failing t 00030df0: 72 61 6e 73 61 63 74 69 6f 6e 7c 65 78 65 63 75 ransaction|execu 00030e00: 74 69 6f 6e 20 72 65 76 65 72 74 65 64 7c 72 65 tion reverted|re 00030e10: 76 65 72 74 2f 29 26 26 69 73 2e 74 68 72 6f 77 vert/)&&is.throw 00030e20: 45 72 72 6f 72 28 22 63 61 6e 6e 6f 74 20 65 73 Error("cannot es 00030e30: 74 69 6d 61 74 65 20 67 61 73 3b 20 74 72 61 6e timate gas; tran 00030e40: 73 61 63 74 69 6f 6e 20 6d 61 79 20 66 61 69 6c saction may fail 00030e50: 20 6f 72 20 6d 61 79 20 72 65 71 75 69 72 65 20 or may require 00030e60: 6d 61 6e 75 61 6c 20 67 61 73 20 6c 69 6d 69 74 manual gas limit 00030e70: 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 50 52 45 ",y.errors.UNPRE 00030e80: 44 49 43 54 41 42 4c 45 5f 47 41 53 5f 4c 49 4d DICTABLE_GAS_LIM 00030e90: 49 54 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 68 IT,{error:t,meth 00030ea0: 6f 64 3a 65 2c 74 72 61 6e 73 61 63 74 69 6f 6e od:e,transaction 00030eb0: 3a 72 7d 29 2c 74 7d 66 75 6e 63 74 69 6f 6e 20 :r}),t}function 00030ec0: 63 73 28 65 29 7b 72 65 74 75 72 6e 20 6e 65 77 cs(e){return new 00030ed0: 20 50 72 6f 6d 69 73 65 28 28 66 75 6e 63 74 69 Promise((functi 00030ee0: 6f 6e 28 74 29 7b 73 65 74 54 69 6d 65 6f 75 74 on(t){setTimeout 00030ef0: 28 74 2c 65 29 7d 29 29 7d 66 75 6e 63 74 69 6f (t,e)}))}functio 00030f00: 6e 20 75 73 28 65 29 7b 69 66 28 65 2e 65 72 72 n us(e){if(e.err 00030f10: 6f 72 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 77 20 or){const t=new 00030f20: 45 72 72 6f 72 28 65 2e 65 72 72 6f 72 2e 6d 65 Error(e.error.me 00030f30: 73 73 61 67 65 29 3b 74 68 72 6f 77 20 74 2e 63 ssage);throw t.c 00030f40: 6f 64 65 3d 65 2e 65 72 72 6f 72 2e 63 6f 64 65 ode=e.error.code 00030f50: 2c 74 2e 64 61 74 61 3d 65 2e 65 72 72 6f 72 2e ,t.data=e.error. 00030f60: 64 61 74 61 2c 74 7d 72 65 74 75 72 6e 20 65 2e data,t}return e. 00030f70: 72 65 73 75 6c 74 7d 66 75 6e 63 74 69 6f 6e 20 result}function 00030f80: 64 73 28 65 29 7b 72 65 74 75 72 6e 20 65 3f 65 ds(e){return e?e 00030f90: 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 3a 65 .toLowerCase():e 00030fa0: 7d 63 6f 6e 73 74 20 70 73 3d 7b 7d 3b 63 6c 61 }const ps={};cla 00030fb0: 73 73 20 66 73 20 65 78 74 65 6e 64 73 20 64 6e ss fs extends dn 00030fc0: 7b 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 {constructor(e,t 00030fd0: 2c 6e 29 7b 69 66 28 73 75 70 65 72 28 29 2c 65 ,n){if(super(),e 00030fe0: 21 3d 3d 70 73 29 74 68 72 6f 77 20 6e 65 77 20 !==ps)throw new 00030ff0: 45 72 72 6f 72 28 22 64 6f 20 6e 6f 74 20 63 61 Error("do not ca 00031000: 6c 6c 20 74 68 65 20 4a 73 6f 6e 52 70 63 53 69 ll the JsonRpcSi 00031010: 67 6e 65 72 20 63 6f 6e 73 74 72 75 63 74 6f 72 gner constructor 00031020: 20 64 69 72 65 63 74 6c 79 3b 20 75 73 65 20 70 directly; use p 00031030: 72 6f 76 69 64 65 72 2e 67 65 74 53 69 67 6e 65 rovider.getSigne 00031040: 72 22 29 3b 74 65 28 74 68 69 73 2c 22 70 72 6f r");te(this,"pro 00031050: 76 69 64 65 72 22 2c 74 29 2c 6e 75 6c 6c 3d 3d vider",t),null== 00031060: 6e 26 26 28 6e 3d 30 29 2c 22 73 74 72 69 6e 67 n&&(n=0),"string 00031070: 22 3d 3d 74 79 70 65 6f 66 20 6e 3f 28 74 65 28 "==typeof n?(te( 00031080: 74 68 69 73 2c 22 5f 61 64 64 72 65 73 73 22 2c this,"_address", 00031090: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 66 6f this.provider.fo 000310a0: 72 6d 61 74 74 65 72 2e 61 64 64 72 65 73 73 28 rmatter.address( 000310b0: 6e 29 29 2c 74 65 28 74 68 69 73 2c 22 5f 69 6e n)),te(this,"_in 000310c0: 64 65 78 22 2c 6e 75 6c 6c 29 29 3a 22 6e 75 6d dex",null)):"num 000310d0: 62 65 72 22 3d 3d 74 79 70 65 6f 66 20 6e 3f 28 ber"==typeof n?( 000310e0: 74 65 28 74 68 69 73 2c 22 5f 69 6e 64 65 78 22 te(this,"_index" 000310f0: 2c 6e 29 2c 74 65 28 74 68 69 73 2c 22 5f 61 64 ,n),te(this,"_ad 00031100: 64 72 65 73 73 22 2c 6e 75 6c 6c 29 29 3a 69 73 dress",null)):is 00031110: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00031120: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 61 64 64 ror("invalid add 00031130: 72 65 73 73 20 6f 72 20 69 6e 64 65 78 22 2c 22 ress or index"," 00031140: 61 64 64 72 65 73 73 4f 72 49 6e 64 65 78 22 2c addressOrIndex", 00031150: 6e 29 7d 63 6f 6e 6e 65 63 74 28 65 29 7b 72 65 n)}connect(e){re 00031160: 74 75 72 6e 20 69 73 2e 74 68 72 6f 77 45 72 72 turn is.throwErr 00031170: 6f 72 28 22 63 61 6e 6e 6f 74 20 61 6c 74 65 72 or("cannot alter 00031180: 20 4a 53 4f 4e 2d 52 50 43 20 53 69 67 6e 65 72 JSON-RPC Signer 00031190: 20 63 6f 6e 6e 65 63 74 69 6f 6e 22 2c 79 2e 65 connection",y.e 000311a0: 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 rrors.UNSUPPORTE 000311b0: 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 D_OPERATION,{ope 000311c0: 72 61 74 69 6f 6e 3a 22 63 6f 6e 6e 65 63 74 22 ration:"connect" 000311d0: 7d 29 7d 63 6f 6e 6e 65 63 74 55 6e 63 68 65 63 })}connectUnchec 000311e0: 6b 65 64 28 29 7b 72 65 74 75 72 6e 20 6e 65 77 ked(){return new 000311f0: 20 68 73 28 70 73 2c 74 68 69 73 2e 70 72 6f 76 hs(ps,this.prov 00031200: 69 64 65 72 2c 74 68 69 73 2e 5f 61 64 64 72 65 ider,this._addre 00031210: 73 73 7c 7c 74 68 69 73 2e 5f 69 6e 64 65 78 29 ss||this._index) 00031220: 7d 67 65 74 41 64 64 72 65 73 73 28 29 7b 72 65 }getAddress(){re 00031230: 74 75 72 6e 20 74 68 69 73 2e 5f 61 64 64 72 65 turn this._addre 00031240: 73 73 3f 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c ss?Promise.resol 00031250: 76 65 28 74 68 69 73 2e 5f 61 64 64 72 65 73 73 ve(this._address 00031260: 29 3a 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e ):this.provider. 00031270: 73 65 6e 64 28 22 65 74 68 5f 61 63 63 6f 75 6e send("eth_accoun 00031280: 74 73 22 2c 5b 5d 29 2e 74 68 65 6e 28 28 65 3d ts",[]).then((e= 00031290: 3e 28 65 2e 6c 65 6e 67 74 68 3c 3d 74 68 69 73 >(e.length<=this 000312a0: 2e 5f 69 6e 64 65 78 26 26 69 73 2e 74 68 72 6f ._index&&is.thro 000312b0: 77 45 72 72 6f 72 28 22 75 6e 6b 6e 6f 77 6e 20 wError("unknown 000312c0: 61 63 63 6f 75 6e 74 20 23 22 2b 74 68 69 73 2e account #"+this. 000312d0: 5f 69 6e 64 65 78 2c 79 2e 65 72 72 6f 72 73 2e _index,y.errors. 000312e0: 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 UNSUPPORTED_OPER 000312f0: 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e ATION,{operation 00031300: 3a 22 67 65 74 41 64 64 72 65 73 73 22 7d 29 2c :"getAddress"}), 00031310: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 66 6f this.provider.fo 00031320: 72 6d 61 74 74 65 72 2e 61 64 64 72 65 73 73 28 rmatter.address( 00031330: 65 5b 74 68 69 73 2e 5f 69 6e 64 65 78 5d 29 29 e[this._index])) 00031340: 29 29 7d 73 65 6e 64 55 6e 63 68 65 63 6b 65 64 ))}sendUnchecked 00031350: 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 29 7b 65 Transaction(e){e 00031360: 3d 69 65 28 65 29 3b 63 6f 6e 73 74 20 74 3d 74 =ie(e);const t=t 00031370: 68 69 73 2e 67 65 74 41 64 64 72 65 73 73 28 29 his.getAddress() 00031380: 2e 74 68 65 6e 28 28 65 3d 3e 28 65 26 26 28 65 .then((e=>(e&&(e 00031390: 3d 65 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 =e.toLowerCase() 000313a0: 29 2c 65 29 29 29 3b 69 66 28 6e 75 6c 6c 3d 3d ),e)));if(null== 000313b0: 65 2e 67 61 73 4c 69 6d 69 74 29 7b 63 6f 6e 73 e.gasLimit){cons 000313c0: 74 20 6e 3d 69 65 28 65 29 3b 6e 2e 66 72 6f 6d t n=ie(e);n.from 000313d0: 3d 74 2c 65 2e 67 61 73 4c 69 6d 69 74 3d 74 68 =t,e.gasLimit=th 000313e0: 69 73 2e 70 72 6f 76 69 64 65 72 2e 65 73 74 69 is.provider.esti 000313f0: 6d 61 74 65 47 61 73 28 6e 29 7d 72 65 74 75 72 mateGas(n)}retur 00031400: 6e 20 6e 75 6c 6c 21 3d 65 2e 74 6f 26 26 28 65 n null!=e.to&&(e 00031410: 2e 74 6f 3d 50 72 6f 6d 69 73 65 2e 72 65 73 6f .to=Promise.reso 00031420: 6c 76 65 28 65 2e 74 6f 29 2e 74 68 65 6e 28 28 lve(e.to).then(( 00031430: 65 3d 3e 6f 73 28 74 68 69 73 2c 76 6f 69 64 20 e=>os(this,void 00031440: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 00031450: 6f 6e 2a 28 29 7b 69 66 28 6e 75 6c 6c 3d 3d 65 on*(){if(null==e 00031460: 29 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 63 6f 6e )return null;con 00031470: 73 74 20 74 3d 79 69 65 6c 64 20 74 68 69 73 2e st t=yield this. 00031480: 70 72 6f 76 69 64 65 72 2e 72 65 73 6f 6c 76 65 provider.resolve 00031490: 4e 61 6d 65 28 65 29 3b 72 65 74 75 72 6e 20 6e Name(e);return n 000314a0: 75 6c 6c 3d 3d 74 26 26 69 73 2e 74 68 72 6f 77 ull==t&&is.throw 000314b0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 70 ArgumentError("p 000314c0: 72 6f 76 69 64 65 64 20 45 4e 53 20 6e 61 6d 65 rovided ENS name 000314d0: 20 72 65 73 6f 6c 76 65 73 20 74 6f 20 6e 75 6c resolves to nul 000314e0: 6c 22 2c 22 74 78 2e 74 6f 22 2c 65 29 2c 74 7d l","tx.to",e),t} 000314f0: 29 29 29 29 29 2c 72 65 28 7b 74 78 3a 72 65 28 ))))),re({tx:re( 00031500: 65 29 2c 73 65 6e 64 65 72 3a 74 7d 29 2e 74 68 e),sender:t}).th 00031510: 65 6e 28 28 28 7b 74 78 3a 74 2c 73 65 6e 64 65 en((({tx:t,sende 00031520: 72 3a 6e 7d 29 3d 3e 7b 6e 75 6c 6c 21 3d 74 2e r:n})=>{null!=t. 00031530: 66 72 6f 6d 3f 74 2e 66 72 6f 6d 2e 74 6f 4c 6f from?t.from.toLo 00031540: 77 65 72 43 61 73 65 28 29 21 3d 3d 6e 26 26 69 werCase()!==n&&i 00031550: 73 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 s.throwArgumentE 00031560: 72 72 6f 72 28 22 66 72 6f 6d 20 61 64 64 72 65 rror("from addre 00031570: 73 73 20 6d 69 73 6d 61 74 63 68 22 2c 22 74 72 ss mismatch","tr 00031580: 61 6e 73 61 63 74 69 6f 6e 22 2c 65 29 3a 74 2e ansaction",e):t. 00031590: 66 72 6f 6d 3d 6e 3b 63 6f 6e 73 74 20 72 3d 74 from=n;const r=t 000315a0: 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 63 6f 6e his.provider.con 000315b0: 73 74 72 75 63 74 6f 72 2e 68 65 78 6c 69 66 79 structor.hexlify 000315c0: 54 72 61 6e 73 61 63 74 69 6f 6e 28 74 2c 7b 66 Transaction(t,{f 000315d0: 72 6f 6d 3a 21 30 7d 29 3b 72 65 74 75 72 6e 20 rom:!0});return 000315e0: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 73 65 this.provider.se 000315f0: 6e 64 28 22 65 74 68 5f 73 65 6e 64 54 72 61 6e nd("eth_sendTran 00031600: 73 61 63 74 69 6f 6e 22 2c 5b 72 5d 29 2e 74 68 saction",[r]).th 00031610: 65 6e 28 28 65 3d 3e 65 29 2c 28 65 3d 3e 28 22 en((e=>e),(e=>(" 00031620: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 00031630: 65 2e 6d 65 73 73 61 67 65 26 26 65 2e 6d 65 73 e.message&&e.mes 00031640: 73 61 67 65 2e 6d 61 74 63 68 28 2f 75 73 65 72 sage.match(/user 00031650: 20 64 65 6e 69 65 64 2f 69 29 26 26 69 73 2e 74 denied/i)&&is.t 00031660: 68 72 6f 77 45 72 72 6f 72 28 22 75 73 65 72 20 hrowError("user 00031670: 72 65 6a 65 63 74 65 64 20 74 72 61 6e 73 61 63 rejected transac 00031680: 74 69 6f 6e 22 2c 79 2e 65 72 72 6f 72 73 2e 41 tion",y.errors.A 00031690: 43 54 49 4f 4e 5f 52 45 4a 45 43 54 45 44 2c 7b CTION_REJECTED,{ 000316a0: 61 63 74 69 6f 6e 3a 22 73 65 6e 64 54 72 61 6e action:"sendTran 000316b0: 73 61 63 74 69 6f 6e 22 2c 74 72 61 6e 73 61 63 saction",transac 000316c0: 74 69 6f 6e 3a 74 7d 29 2c 6c 73 28 22 73 65 6e tion:t}),ls("sen 000316d0: 64 54 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 2c dTransaction",e, 000316e0: 72 29 29 29 29 7d 29 29 7d 73 69 67 6e 54 72 61 r))))}))}signTra 000316f0: 6e 73 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 nsaction(e){retu 00031700: 72 6e 20 69 73 2e 74 68 72 6f 77 45 72 72 6f 72 rn is.throwError 00031710: 28 22 73 69 67 6e 69 6e 67 20 74 72 61 6e 73 61 ("signing transa 00031720: 63 74 69 6f 6e 73 20 69 73 20 75 6e 73 75 70 70 ctions is unsupp 00031730: 6f 72 74 65 64 22 2c 79 2e 65 72 72 6f 72 73 2e orted",y.errors. 00031740: 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 UNSUPPORTED_OPER 00031750: 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e ATION,{operation 00031760: 3a 22 73 69 67 6e 54 72 61 6e 73 61 63 74 69 6f :"signTransactio 00031770: 6e 22 7d 29 7d 73 65 6e 64 54 72 61 6e 73 61 63 n"})}sendTransac 00031780: 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 6f tion(e){return o 00031790: 73 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f s(this,void 0,vo 000317a0: 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 id 0,(function*( 000317b0: 29 7b 63 6f 6e 73 74 20 74 3d 79 69 65 6c 64 20 ){const t=yield 000317c0: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 5f 67 this.provider._g 000317d0: 65 74 49 6e 74 65 72 6e 61 6c 42 6c 6f 63 6b 4e etInternalBlockN 000317e0: 75 6d 62 65 72 28 31 30 30 2b 32 2a 74 68 69 73 umber(100+2*this 000317f0: 2e 70 72 6f 76 69 64 65 72 2e 70 6f 6c 6c 69 6e .provider.pollin 00031800: 67 49 6e 74 65 72 76 61 6c 29 2c 6e 3d 79 69 65 gInterval),n=yie 00031810: 6c 64 20 74 68 69 73 2e 73 65 6e 64 55 6e 63 68 ld this.sendUnch 00031820: 65 63 6b 65 64 54 72 61 6e 73 61 63 74 69 6f 6e eckedTransaction 00031830: 28 65 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 79 (e);try{return y 00031840: 69 65 6c 64 20 78 61 28 28 28 29 3d 3e 6f 73 28 ield xa((()=>os( 00031850: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 00031860: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 00031870: 63 6f 6e 73 74 20 65 3d 79 69 65 6c 64 20 74 68 const e=yield th 00031880: 69 73 2e 70 72 6f 76 69 64 65 72 2e 67 65 74 54 is.provider.getT 00031890: 72 61 6e 73 61 63 74 69 6f 6e 28 6e 29 3b 69 66 ransaction(n);if 000318a0: 28 6e 75 6c 6c 21 3d 3d 65 29 72 65 74 75 72 6e (null!==e)return 000318b0: 20 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 5f this.provider._ 000318c0: 77 72 61 70 54 72 61 6e 73 61 63 74 69 6f 6e 28 wrapTransaction( 000318d0: 65 2c 6e 2c 74 29 7d 29 29 29 2c 7b 6f 6e 63 65 e,n,t)}))),{once 000318e0: 50 6f 6c 6c 3a 74 68 69 73 2e 70 72 6f 76 69 64 Poll:this.provid 000318f0: 65 72 7d 29 7d 63 61 74 63 68 28 65 29 7b 74 68 er})}catch(e){th 00031900: 72 6f 77 20 65 2e 74 72 61 6e 73 61 63 74 69 6f row e.transactio 00031910: 6e 48 61 73 68 3d 6e 2c 65 7d 7d 29 29 7d 73 69 nHash=n,e}}))}si 00031920: 67 6e 4d 65 73 73 61 67 65 28 65 29 7b 72 65 74 gnMessage(e){ret 00031930: 75 72 6e 20 6f 73 28 74 68 69 73 2c 76 6f 69 64 urn os(this,void 00031940: 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 0,void 0,(funct 00031950: 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 74 3d 22 ion*(){const t=" 00031960: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 00031970: 65 3f 71 65 28 65 29 3a 65 2c 6e 3d 79 69 65 6c e?qe(e):e,n=yiel 00031980: 64 20 74 68 69 73 2e 67 65 74 41 64 64 72 65 73 d this.getAddres 00031990: 73 28 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 79 s();try{return y 000319a0: 69 65 6c 64 20 74 68 69 73 2e 70 72 6f 76 69 64 ield this.provid 000319b0: 65 72 2e 73 65 6e 64 28 22 70 65 72 73 6f 6e 61 er.send("persona 000319c0: 6c 5f 73 69 67 6e 22 2c 5b 52 28 74 29 2c 6e 2e l_sign",[R(t),n. 000319d0: 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 5d 29 7d toLowerCase()])} 000319e0: 63 61 74 63 68 28 74 29 7b 74 68 72 6f 77 22 73 catch(t){throw"s 000319f0: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 74 tring"==typeof t 00031a00: 2e 6d 65 73 73 61 67 65 26 26 74 2e 6d 65 73 73 .message&&t.mess 00031a10: 61 67 65 2e 6d 61 74 63 68 28 2f 75 73 65 72 20 age.match(/user 00031a20: 64 65 6e 69 65 64 2f 69 29 26 26 69 73 2e 74 68 denied/i)&&is.th 00031a30: 72 6f 77 45 72 72 6f 72 28 22 75 73 65 72 20 72 rowError("user r 00031a40: 65 6a 65 63 74 65 64 20 73 69 67 6e 69 6e 67 22 ejected signing" 00031a50: 2c 79 2e 65 72 72 6f 72 73 2e 41 43 54 49 4f 4e ,y.errors.ACTION 00031a60: 5f 52 45 4a 45 43 54 45 44 2c 7b 61 63 74 69 6f _REJECTED,{actio 00031a70: 6e 3a 22 73 69 67 6e 4d 65 73 73 61 67 65 22 2c n:"signMessage", 00031a80: 66 72 6f 6d 3a 6e 2c 6d 65 73 73 61 67 65 44 61 from:n,messageDa 00031a90: 74 61 3a 65 7d 29 2c 74 7d 7d 29 29 7d 5f 6c 65 ta:e}),t}}))}_le 00031aa0: 67 61 63 79 53 69 67 6e 4d 65 73 73 61 67 65 28 gacySignMessage( 00031ab0: 65 29 7b 72 65 74 75 72 6e 20 6f 73 28 74 68 69 e){return os(thi 00031ac0: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 00031ad0: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 63 6f 6e (function*(){con 00031ae0: 73 74 20 74 3d 22 73 74 72 69 6e 67 22 3d 3d 74 st t="string"==t 00031af0: 79 70 65 6f 66 20 65 3f 71 65 28 65 29 3a 65 2c ypeof e?qe(e):e, 00031b00: 6e 3d 79 69 65 6c 64 20 74 68 69 73 2e 67 65 74 n=yield this.get 00031b10: 41 64 64 72 65 73 73 28 29 3b 74 72 79 7b 72 65 Address();try{re 00031b20: 74 75 72 6e 20 79 69 65 6c 64 20 74 68 69 73 2e turn yield this. 00031b30: 70 72 6f 76 69 64 65 72 2e 73 65 6e 64 28 22 65 provider.send("e 00031b40: 74 68 5f 73 69 67 6e 22 2c 5b 6e 2e 74 6f 4c 6f th_sign",[n.toLo 00031b50: 77 65 72 43 61 73 65 28 29 2c 52 28 74 29 5d 29 werCase(),R(t)]) 00031b60: 7d 63 61 74 63 68 28 74 29 7b 74 68 72 6f 77 22 }catch(t){throw" 00031b70: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 00031b80: 74 2e 6d 65 73 73 61 67 65 26 26 74 2e 6d 65 73 t.message&&t.mes 00031b90: 73 61 67 65 2e 6d 61 74 63 68 28 2f 75 73 65 72 sage.match(/user 00031ba0: 20 64 65 6e 69 65 64 2f 69 29 26 26 69 73 2e 74 denied/i)&&is.t 00031bb0: 68 72 6f 77 45 72 72 6f 72 28 22 75 73 65 72 20 hrowError("user 00031bc0: 72 65 6a 65 63 74 65 64 20 73 69 67 6e 69 6e 67 rejected signing 00031bd0: 22 2c 79 2e 65 72 72 6f 72 73 2e 41 43 54 49 4f ",y.errors.ACTIO 00031be0: 4e 5f 52 45 4a 45 43 54 45 44 2c 7b 61 63 74 69 N_REJECTED,{acti 00031bf0: 6f 6e 3a 22 5f 6c 65 67 61 63 79 53 69 67 6e 4d on:"_legacySignM 00031c00: 65 73 73 61 67 65 22 2c 66 72 6f 6d 3a 6e 2c 6d essage",from:n,m 00031c10: 65 73 73 61 67 65 44 61 74 61 3a 65 7d 29 2c 74 essageData:e}),t 00031c20: 7d 7d 29 29 7d 5f 73 69 67 6e 54 79 70 65 64 44 }}))}_signTypedD 00031c30: 61 74 61 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 ata(e,t,n){retur 00031c40: 6e 20 6f 73 28 74 68 69 73 2c 76 6f 69 64 20 30 n os(this,void 0 00031c50: 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f ,void 0,(functio 00031c60: 6e 2a 28 29 7b 63 6f 6e 73 74 20 72 3d 79 69 65 n*(){const r=yie 00031c70: 6c 64 20 6d 6f 2e 72 65 73 6f 6c 76 65 4e 61 6d ld mo.resolveNam 00031c80: 65 73 28 65 2c 74 2c 6e 2c 28 65 3d 3e 74 68 69 es(e,t,n,(e=>thi 00031c90: 73 2e 70 72 6f 76 69 64 65 72 2e 72 65 73 6f 6c s.provider.resol 00031ca0: 76 65 4e 61 6d 65 28 65 29 29 29 2c 6f 3d 79 69 veName(e))),o=yi 00031cb0: 65 6c 64 20 74 68 69 73 2e 67 65 74 41 64 64 72 eld this.getAddr 00031cc0: 65 73 73 28 29 3b 74 72 79 7b 72 65 74 75 72 6e ess();try{return 00031cd0: 20 79 69 65 6c 64 20 74 68 69 73 2e 70 72 6f 76 yield this.prov 00031ce0: 69 64 65 72 2e 73 65 6e 64 28 22 65 74 68 5f 73 ider.send("eth_s 00031cf0: 69 67 6e 54 79 70 65 64 44 61 74 61 5f 76 34 22 ignTypedData_v4" 00031d00: 2c 5b 6f 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 ,[o.toLowerCase( 00031d10: 29 2c 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 ),JSON.stringify 00031d20: 28 6d 6f 2e 67 65 74 50 61 79 6c 6f 61 64 28 72 (mo.getPayload(r 00031d30: 2e 64 6f 6d 61 69 6e 2c 74 2c 72 2e 76 61 6c 75 .domain,t,r.valu 00031d40: 65 29 29 5d 29 7d 63 61 74 63 68 28 65 29 7b 74 e))])}catch(e){t 00031d50: 68 72 6f 77 22 73 74 72 69 6e 67 22 3d 3d 74 79 hrow"string"==ty 00031d60: 70 65 6f 66 20 65 2e 6d 65 73 73 61 67 65 26 26 peof e.message&& 00031d70: 65 2e 6d 65 73 73 61 67 65 2e 6d 61 74 63 68 28 e.message.match( 00031d80: 2f 75 73 65 72 20 64 65 6e 69 65 64 2f 69 29 26 /user denied/i)& 00031d90: 26 69 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 &is.throwError(" 00031da0: 75 73 65 72 20 72 65 6a 65 63 74 65 64 20 73 69 user rejected si 00031db0: 67 6e 69 6e 67 22 2c 79 2e 65 72 72 6f 72 73 2e gning",y.errors. 00031dc0: 41 43 54 49 4f 4e 5f 52 45 4a 45 43 54 45 44 2c ACTION_REJECTED, 00031dd0: 7b 61 63 74 69 6f 6e 3a 22 5f 73 69 67 6e 54 79 {action:"_signTy 00031de0: 70 65 64 44 61 74 61 22 2c 66 72 6f 6d 3a 6f 2c pedData",from:o, 00031df0: 6d 65 73 73 61 67 65 44 61 74 61 3a 7b 64 6f 6d messageData:{dom 00031e00: 61 69 6e 3a 72 2e 64 6f 6d 61 69 6e 2c 74 79 70 ain:r.domain,typ 00031e10: 65 73 3a 74 2c 76 61 6c 75 65 3a 72 2e 76 61 6c es:t,value:r.val 00031e20: 75 65 7d 7d 29 2c 65 7d 7d 29 29 7d 75 6e 6c 6f ue}}),e}}))}unlo 00031e30: 63 6b 28 65 29 7b 72 65 74 75 72 6e 20 6f 73 28 ck(e){return os( 00031e40: 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 this,void 0,void 00031e50: 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 0,(function*(){ 00031e60: 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 70 72 6f const t=this.pro 00031e70: 76 69 64 65 72 2c 6e 3d 79 69 65 6c 64 20 74 68 vider,n=yield th 00031e80: 69 73 2e 67 65 74 41 64 64 72 65 73 73 28 29 3b is.getAddress(); 00031e90: 72 65 74 75 72 6e 20 74 2e 73 65 6e 64 28 22 70 return t.send("p 00031ea0: 65 72 73 6f 6e 61 6c 5f 75 6e 6c 6f 63 6b 41 63 ersonal_unlockAc 00031eb0: 63 6f 75 6e 74 22 2c 5b 6e 2e 74 6f 4c 6f 77 65 count",[n.toLowe 00031ec0: 72 43 61 73 65 28 29 2c 65 2c 6e 75 6c 6c 5d 29 rCase(),e,null]) 00031ed0: 7d 29 29 7d 7d 63 6c 61 73 73 20 68 73 20 65 78 }))}}class hs ex 00031ee0: 74 65 6e 64 73 20 66 73 7b 73 65 6e 64 54 72 61 tends fs{sendTra 00031ef0: 6e 73 61 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 nsaction(e){retu 00031f00: 72 6e 20 74 68 69 73 2e 73 65 6e 64 55 6e 63 68 rn this.sendUnch 00031f10: 65 63 6b 65 64 54 72 61 6e 73 61 63 74 69 6f 6e eckedTransaction 00031f20: 28 65 29 2e 74 68 65 6e 28 28 65 3d 3e 28 7b 68 (e).then((e=>({h 00031f30: 61 73 68 3a 65 2c 6e 6f 6e 63 65 3a 6e 75 6c 6c ash:e,nonce:null 00031f40: 2c 67 61 73 4c 69 6d 69 74 3a 6e 75 6c 6c 2c 67 ,gasLimit:null,g 00031f50: 61 73 50 72 69 63 65 3a 6e 75 6c 6c 2c 64 61 74 asPrice:null,dat 00031f60: 61 3a 6e 75 6c 6c 2c 76 61 6c 75 65 3a 6e 75 6c a:null,value:nul 00031f70: 6c 2c 63 68 61 69 6e 49 64 3a 6e 75 6c 6c 2c 63 l,chainId:null,c 00031f80: 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 3a 30 2c 66 onfirmations:0,f 00031f90: 72 6f 6d 3a 6e 75 6c 6c 2c 77 61 69 74 3a 74 3d rom:null,wait:t= 00031fa0: 3e 74 68 69 73 2e 70 72 6f 76 69 64 65 72 2e 77 >this.provider.w 00031fb0: 61 69 74 46 6f 72 54 72 61 6e 73 61 63 74 69 6f aitForTransactio 00031fc0: 6e 28 65 2c 74 29 7d 29 29 29 7d 7d 63 6f 6e 73 n(e,t)})))}}cons 00031fd0: 74 20 6d 73 3d 7b 63 68 61 69 6e 49 64 3a 21 30 t ms={chainId:!0 00031fe0: 2c 64 61 74 61 3a 21 30 2c 67 61 73 4c 69 6d 69 ,data:!0,gasLimi 00031ff0: 74 3a 21 30 2c 67 61 73 50 72 69 63 65 3a 21 30 t:!0,gasPrice:!0 00032000: 2c 6e 6f 6e 63 65 3a 21 30 2c 74 6f 3a 21 30 2c ,nonce:!0,to:!0, 00032010: 76 61 6c 75 65 3a 21 30 2c 74 79 70 65 3a 21 30 value:!0,type:!0 00032020: 2c 61 63 63 65 73 73 4c 69 73 74 3a 21 30 2c 6d ,accessList:!0,m 00032030: 61 78 46 65 65 50 65 72 47 61 73 3a 21 30 2c 6d axFeePerGas:!0,m 00032040: 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 axPriorityFeePer 00032050: 47 61 73 3a 21 30 7d 3b 63 6c 61 73 73 20 67 73 Gas:!0};class gs 00032060: 20 65 78 74 65 6e 64 73 20 72 73 7b 63 6f 6e 73 extends rs{cons 00032070: 74 72 75 63 74 6f 72 28 65 2c 74 29 7b 6c 65 74 tructor(e,t){let 00032080: 20 6e 3d 74 3b 6e 75 6c 6c 3d 3d 6e 26 26 28 6e n=t;null==n&&(n 00032090: 3d 6e 65 77 20 50 72 6f 6d 69 73 65 28 28 28 65 =new Promise(((e 000320a0: 2c 74 29 3d 3e 7b 73 65 74 54 69 6d 65 6f 75 74 ,t)=>{setTimeout 000320b0: 28 28 28 29 3d 3e 7b 74 68 69 73 2e 64 65 74 65 ((()=>{this.dete 000320c0: 63 74 4e 65 74 77 6f 72 6b 28 29 2e 74 68 65 6e ctNetwork().then 000320d0: 28 28 74 3d 3e 7b 65 28 74 29 7d 29 2c 28 65 3d ((t=>{e(t)}),(e= 000320e0: 3e 7b 74 28 65 29 7d 29 29 7d 29 2c 30 29 7d 29 >{t(e)}))}),0)}) 000320f0: 29 29 2c 73 75 70 65 72 28 6e 29 2c 65 7c 7c 28 )),super(n),e||( 00032100: 65 3d 6e 65 28 74 68 69 73 2e 63 6f 6e 73 74 72 e=ne(this.constr 00032110: 75 63 74 6f 72 2c 22 64 65 66 61 75 6c 74 55 72 uctor,"defaultUr 00032120: 6c 22 29 28 29 29 2c 74 65 28 74 68 69 73 2c 22 l")()),te(this," 00032130: 63 6f 6e 6e 65 63 74 69 6f 6e 22 2c 22 73 74 72 connection","str 00032140: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 4f ing"==typeof e?O 00032150: 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 7b 75 72 bject.freeze({ur 00032160: 6c 3a 65 7d 29 3a 4f 62 6a 65 63 74 2e 66 72 65 l:e}):Object.fre 00032170: 65 7a 65 28 69 65 28 65 29 29 29 2c 74 68 69 73 eze(ie(e))),this 00032180: 2e 5f 6e 65 78 74 49 64 3d 34 32 7d 67 65 74 20 ._nextId=42}get 00032190: 5f 63 61 63 68 65 28 29 7b 72 65 74 75 72 6e 20 _cache(){return 000321a0: 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f 65 76 65 6e null==this._even 000321b0: 74 4c 6f 6f 70 43 61 63 68 65 26 26 28 74 68 69 tLoopCache&&(thi 000321c0: 73 2e 5f 65 76 65 6e 74 4c 6f 6f 70 43 61 63 68 s._eventLoopCach 000321d0: 65 3d 7b 7d 29 2c 74 68 69 73 2e 5f 65 76 65 6e e={}),this._even 000321e0: 74 4c 6f 6f 70 43 61 63 68 65 7d 73 74 61 74 69 tLoopCache}stati 000321f0: 63 20 64 65 66 61 75 6c 74 55 72 6c 28 29 7b 72 c defaultUrl(){r 00032200: 65 74 75 72 6e 22 68 74 74 70 3a 2f 2f 6c 6f 63 eturn"http://loc 00032210: 61 6c 68 6f 73 74 3a 38 35 34 35 22 7d 64 65 74 alhost:8545"}det 00032220: 65 63 74 4e 65 74 77 6f 72 6b 28 29 7b 72 65 74 ectNetwork(){ret 00032230: 75 72 6e 20 74 68 69 73 2e 5f 63 61 63 68 65 2e urn this._cache. 00032240: 64 65 74 65 63 74 4e 65 74 77 6f 72 6b 7c 7c 28 detectNetwork||( 00032250: 74 68 69 73 2e 5f 63 61 63 68 65 2e 64 65 74 65 this._cache.dete 00032260: 63 74 4e 65 74 77 6f 72 6b 3d 74 68 69 73 2e 5f ctNetwork=this._ 00032270: 75 6e 63 61 63 68 65 64 44 65 74 65 63 74 4e 65 uncachedDetectNe 00032280: 74 77 6f 72 6b 28 29 2c 73 65 74 54 69 6d 65 6f twork(),setTimeo 00032290: 75 74 28 28 28 29 3d 3e 7b 74 68 69 73 2e 5f 63 ut((()=>{this._c 000322a0: 61 63 68 65 2e 64 65 74 65 63 74 4e 65 74 77 6f ache.detectNetwo 000322b0: 72 6b 3d 6e 75 6c 6c 7d 29 2c 30 29 29 2c 74 68 rk=null}),0)),th 000322c0: 69 73 2e 5f 63 61 63 68 65 2e 64 65 74 65 63 74 is._cache.detect 000322d0: 4e 65 74 77 6f 72 6b 7d 5f 75 6e 63 61 63 68 65 Network}_uncache 000322e0: 64 44 65 74 65 63 74 4e 65 74 77 6f 72 6b 28 29 dDetectNetwork() 000322f0: 7b 72 65 74 75 72 6e 20 6f 73 28 74 68 69 73 2c {return os(this, 00032300: 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 void 0,void 0,(f 00032310: 75 6e 63 74 69 6f 6e 2a 28 29 7b 79 69 65 6c 64 unction*(){yield 00032320: 20 63 73 28 30 29 3b 6c 65 74 20 65 3d 6e 75 6c cs(0);let e=nul 00032330: 6c 3b 74 72 79 7b 65 3d 79 69 65 6c 64 20 74 68 l;try{e=yield th 00032340: 69 73 2e 73 65 6e 64 28 22 65 74 68 5f 63 68 61 is.send("eth_cha 00032350: 69 6e 49 64 22 2c 5b 5d 29 7d 63 61 74 63 68 28 inId",[])}catch( 00032360: 74 29 7b 74 72 79 7b 65 3d 79 69 65 6c 64 20 74 t){try{e=yield t 00032370: 68 69 73 2e 73 65 6e 64 28 22 6e 65 74 5f 76 65 his.send("net_ve 00032380: 72 73 69 6f 6e 22 2c 5b 5d 29 7d 63 61 74 63 68 rsion",[])}catch 00032390: 28 65 29 7b 7d 7d 69 66 28 6e 75 6c 6c 21 3d 65 (e){}}if(null!=e 000323a0: 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 28 74 68 69 ){const t=ne(thi 000323b0: 73 2e 63 6f 6e 73 74 72 75 63 74 6f 72 2c 22 67 s.constructor,"g 000323c0: 65 74 4e 65 74 77 6f 72 6b 22 29 3b 74 72 79 7b etNetwork");try{ 000323d0: 72 65 74 75 72 6e 20 74 28 59 2e 66 72 6f 6d 28 return t(Y.from( 000323e0: 65 29 2e 74 6f 4e 75 6d 62 65 72 28 29 29 7d 63 e).toNumber())}c 000323f0: 61 74 63 68 28 74 29 7b 72 65 74 75 72 6e 20 69 atch(t){return i 00032400: 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 63 6f s.throwError("co 00032410: 75 6c 64 20 6e 6f 74 20 64 65 74 65 63 74 20 6e uld not detect n 00032420: 65 74 77 6f 72 6b 22 2c 79 2e 65 72 72 6f 72 73 etwork",y.errors 00032430: 2e 4e 45 54 57 4f 52 4b 5f 45 52 52 4f 52 2c 7b .NETWORK_ERROR,{ 00032440: 63 68 61 69 6e 49 64 3a 65 2c 65 76 65 6e 74 3a chainId:e,event: 00032450: 22 69 6e 76 61 6c 69 64 4e 65 74 77 6f 72 6b 22 "invalidNetwork" 00032460: 2c 73 65 72 76 65 72 45 72 72 6f 72 3a 74 7d 29 ,serverError:t}) 00032470: 7d 7d 72 65 74 75 72 6e 20 69 73 2e 74 68 72 6f }}return is.thro 00032480: 77 45 72 72 6f 72 28 22 63 6f 75 6c 64 20 6e 6f wError("could no 00032490: 74 20 64 65 74 65 63 74 20 6e 65 74 77 6f 72 6b t detect network 000324a0: 22 2c 79 2e 65 72 72 6f 72 73 2e 4e 45 54 57 4f ",y.errors.NETWO 000324b0: 52 4b 5f 45 52 52 4f 52 2c 7b 65 76 65 6e 74 3a RK_ERROR,{event: 000324c0: 22 6e 6f 4e 65 74 77 6f 72 6b 22 7d 29 7d 29 29 "noNetwork"})})) 000324d0: 7d 67 65 74 53 69 67 6e 65 72 28 65 29 7b 72 65 }getSigner(e){re 000324e0: 74 75 72 6e 20 6e 65 77 20 66 73 28 70 73 2c 74 turn new fs(ps,t 000324f0: 68 69 73 2c 65 29 7d 67 65 74 55 6e 63 68 65 63 his,e)}getUnchec 00032500: 6b 65 64 53 69 67 6e 65 72 28 65 29 7b 72 65 74 kedSigner(e){ret 00032510: 75 72 6e 20 74 68 69 73 2e 67 65 74 53 69 67 6e urn this.getSign 00032520: 65 72 28 65 29 2e 63 6f 6e 6e 65 63 74 55 6e 63 er(e).connectUnc 00032530: 68 65 63 6b 65 64 28 29 7d 6c 69 73 74 41 63 63 hecked()}listAcc 00032540: 6f 75 6e 74 73 28 29 7b 72 65 74 75 72 6e 20 74 ounts(){return t 00032550: 68 69 73 2e 73 65 6e 64 28 22 65 74 68 5f 61 63 his.send("eth_ac 00032560: 63 6f 75 6e 74 73 22 2c 5b 5d 29 2e 74 68 65 6e counts",[]).then 00032570: 28 28 65 3d 3e 65 2e 6d 61 70 28 28 65 3d 3e 74 ((e=>e.map((e=>t 00032580: 68 69 73 2e 66 6f 72 6d 61 74 74 65 72 2e 61 64 his.formatter.ad 00032590: 64 72 65 73 73 28 65 29 29 29 29 29 7d 73 65 6e dress(e)))))}sen 000325a0: 64 28 65 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 7b d(e,t){const n={ 000325b0: 6d 65 74 68 6f 64 3a 65 2c 70 61 72 61 6d 73 3a method:e,params: 000325c0: 74 2c 69 64 3a 74 68 69 73 2e 5f 6e 65 78 74 49 t,id:this._nextI 000325d0: 64 2b 2b 2c 6a 73 6f 6e 72 70 63 3a 22 32 2e 30 d++,jsonrpc:"2.0 000325e0: 22 7d 3b 74 68 69 73 2e 65 6d 69 74 28 22 64 65 "};this.emit("de 000325f0: 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 bug",{action:"re 00032600: 71 75 65 73 74 22 2c 72 65 71 75 65 73 74 3a 63 quest",request:c 00032610: 65 28 6e 29 2c 70 72 6f 76 69 64 65 72 3a 74 68 e(n),provider:th 00032620: 69 73 7d 29 3b 63 6f 6e 73 74 20 72 3d 5b 22 65 is});const r=["e 00032630: 74 68 5f 63 68 61 69 6e 49 64 22 2c 22 65 74 68 th_chainId","eth 00032640: 5f 62 6c 6f 63 6b 4e 75 6d 62 65 72 22 5d 2e 69 _blockNumber"].i 00032650: 6e 64 65 78 4f 66 28 65 29 3e 3d 30 3b 69 66 28 ndexOf(e)>=0;if( 00032660: 72 26 26 74 68 69 73 2e 5f 63 61 63 68 65 5b 65 r&&this._cache[e 00032670: 5d 29 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 63 ])return this._c 00032680: 61 63 68 65 5b 65 5d 3b 63 6f 6e 73 74 20 6f 3d ache[e];const o= 00032690: 77 61 28 74 68 69 73 2e 63 6f 6e 6e 65 63 74 69 wa(this.connecti 000326a0: 6f 6e 2c 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 on,JSON.stringif 000326b0: 79 28 6e 29 2c 75 73 29 2e 74 68 65 6e 28 28 65 y(n),us).then((e 000326c0: 3d 3e 28 74 68 69 73 2e 65 6d 69 74 28 22 64 65 =>(this.emit("de 000326d0: 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 bug",{action:"re 000326e0: 73 70 6f 6e 73 65 22 2c 72 65 71 75 65 73 74 3a sponse",request: 000326f0: 6e 2c 72 65 73 70 6f 6e 73 65 3a 65 2c 70 72 6f n,response:e,pro 00032700: 76 69 64 65 72 3a 74 68 69 73 7d 29 2c 65 29 29 vider:this}),e)) 00032710: 2c 28 65 3d 3e 7b 74 68 72 6f 77 20 74 68 69 73 ,(e=>{throw this 00032720: 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b 61 .emit("debug",{a 00032730: 63 74 69 6f 6e 3a 22 72 65 73 70 6f 6e 73 65 22 ction:"response" 00032740: 2c 65 72 72 6f 72 3a 65 2c 72 65 71 75 65 73 74 ,error:e,request 00032750: 3a 6e 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 :n,provider:this 00032760: 7d 29 2c 65 7d 29 29 3b 72 65 74 75 72 6e 20 72 }),e}));return r 00032770: 26 26 28 74 68 69 73 2e 5f 63 61 63 68 65 5b 65 &&(this._cache[e 00032780: 5d 3d 6f 2c 73 65 74 54 69 6d 65 6f 75 74 28 28 ]=o,setTimeout(( 00032790: 28 29 3d 3e 7b 74 68 69 73 2e 5f 63 61 63 68 65 ()=>{this._cache 000327a0: 5b 65 5d 3d 6e 75 6c 6c 7d 29 2c 30 29 29 2c 6f [e]=null}),0)),o 000327b0: 7d 70 72 65 70 61 72 65 52 65 71 75 65 73 74 28 }prepareRequest( 000327c0: 65 2c 74 29 7b 73 77 69 74 63 68 28 65 29 7b 63 e,t){switch(e){c 000327d0: 61 73 65 22 67 65 74 42 6c 6f 63 6b 4e 75 6d 62 ase"getBlockNumb 000327e0: 65 72 22 3a 72 65 74 75 72 6e 5b 22 65 74 68 5f er":return["eth_ 000327f0: 62 6c 6f 63 6b 4e 75 6d 62 65 72 22 2c 5b 5d 5d blockNumber",[]] 00032800: 3b 63 61 73 65 22 67 65 74 47 61 73 50 72 69 63 ;case"getGasPric 00032810: 65 22 3a 72 65 74 75 72 6e 5b 22 65 74 68 5f 67 e":return["eth_g 00032820: 61 73 50 72 69 63 65 22 2c 5b 5d 5d 3b 63 61 73 asPrice",[]];cas 00032830: 65 22 67 65 74 42 61 6c 61 6e 63 65 22 3a 72 65 e"getBalance":re 00032840: 74 75 72 6e 5b 22 65 74 68 5f 67 65 74 42 61 6c turn["eth_getBal 00032850: 61 6e 63 65 22 2c 5b 64 73 28 74 2e 61 64 64 72 ance",[ds(t.addr 00032860: 65 73 73 29 2c 74 2e 62 6c 6f 63 6b 54 61 67 5d ess),t.blockTag] 00032870: 5d 3b 63 61 73 65 22 67 65 74 54 72 61 6e 73 61 ];case"getTransa 00032880: 63 74 69 6f 6e 43 6f 75 6e 74 22 3a 72 65 74 75 ctionCount":retu 00032890: 72 6e 5b 22 65 74 68 5f 67 65 74 54 72 61 6e 73 rn["eth_getTrans 000328a0: 61 63 74 69 6f 6e 43 6f 75 6e 74 22 2c 5b 64 73 actionCount",[ds 000328b0: 28 74 2e 61 64 64 72 65 73 73 29 2c 74 2e 62 6c (t.address),t.bl 000328c0: 6f 63 6b 54 61 67 5d 5d 3b 63 61 73 65 22 67 65 ockTag]];case"ge 000328d0: 74 43 6f 64 65 22 3a 72 65 74 75 72 6e 5b 22 65 tCode":return["e 000328e0: 74 68 5f 67 65 74 43 6f 64 65 22 2c 5b 64 73 28 th_getCode",[ds( 000328f0: 74 2e 61 64 64 72 65 73 73 29 2c 74 2e 62 6c 6f t.address),t.blo 00032900: 63 6b 54 61 67 5d 5d 3b 63 61 73 65 22 67 65 74 ckTag]];case"get 00032910: 53 74 6f 72 61 67 65 41 74 22 3a 72 65 74 75 72 StorageAt":retur 00032920: 6e 5b 22 65 74 68 5f 67 65 74 53 74 6f 72 61 67 n["eth_getStorag 00032930: 65 41 74 22 2c 5b 64 73 28 74 2e 61 64 64 72 65 eAt",[ds(t.addre 00032940: 73 73 29 2c 46 28 74 2e 70 6f 73 69 74 69 6f 6e ss),F(t.position 00032950: 2c 33 32 29 2c 74 2e 62 6c 6f 63 6b 54 61 67 5d ,32),t.blockTag] 00032960: 5d 3b 63 61 73 65 22 73 65 6e 64 54 72 61 6e 73 ];case"sendTrans 00032970: 61 63 74 69 6f 6e 22 3a 72 65 74 75 72 6e 5b 22 action":return[" 00032980: 65 74 68 5f 73 65 6e 64 52 61 77 54 72 61 6e 73 eth_sendRawTrans 00032990: 61 63 74 69 6f 6e 22 2c 5b 74 2e 73 69 67 6e 65 action",[t.signe 000329a0: 64 54 72 61 6e 73 61 63 74 69 6f 6e 5d 5d 3b 63 dTransaction]];c 000329b0: 61 73 65 22 67 65 74 42 6c 6f 63 6b 22 3a 72 65 ase"getBlock":re 000329c0: 74 75 72 6e 20 74 2e 62 6c 6f 63 6b 54 61 67 3f turn t.blockTag? 000329d0: 5b 22 65 74 68 5f 67 65 74 42 6c 6f 63 6b 42 79 ["eth_getBlockBy 000329e0: 4e 75 6d 62 65 72 22 2c 5b 74 2e 62 6c 6f 63 6b Number",[t.block 000329f0: 54 61 67 2c 21 21 74 2e 69 6e 63 6c 75 64 65 54 Tag,!!t.includeT 00032a00: 72 61 6e 73 61 63 74 69 6f 6e 73 5d 5d 3a 74 2e ransactions]]:t. 00032a10: 62 6c 6f 63 6b 48 61 73 68 3f 5b 22 65 74 68 5f blockHash?["eth_ 00032a20: 67 65 74 42 6c 6f 63 6b 42 79 48 61 73 68 22 2c getBlockByHash", 00032a30: 5b 74 2e 62 6c 6f 63 6b 48 61 73 68 2c 21 21 74 [t.blockHash,!!t 00032a40: 2e 69 6e 63 6c 75 64 65 54 72 61 6e 73 61 63 74 .includeTransact 00032a50: 69 6f 6e 73 5d 5d 3a 6e 75 6c 6c 3b 63 61 73 65 ions]]:null;case 00032a60: 22 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 22 "getTransaction" 00032a70: 3a 72 65 74 75 72 6e 5b 22 65 74 68 5f 67 65 74 :return["eth_get 00032a80: 54 72 61 6e 73 61 63 74 69 6f 6e 42 79 48 61 73 TransactionByHas 00032a90: 68 22 2c 5b 74 2e 74 72 61 6e 73 61 63 74 69 6f h",[t.transactio 00032aa0: 6e 48 61 73 68 5d 5d 3b 63 61 73 65 22 67 65 74 nHash]];case"get 00032ab0: 54 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 65 69 TransactionRecei 00032ac0: 70 74 22 3a 72 65 74 75 72 6e 5b 22 65 74 68 5f pt":return["eth_ 00032ad0: 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 52 65 getTransactionRe 00032ae0: 63 65 69 70 74 22 2c 5b 74 2e 74 72 61 6e 73 61 ceipt",[t.transa 00032af0: 63 74 69 6f 6e 48 61 73 68 5d 5d 3b 63 61 73 65 ctionHash]];case 00032b00: 22 63 61 6c 6c 22 3a 72 65 74 75 72 6e 5b 22 65 "call":return["e 00032b10: 74 68 5f 63 61 6c 6c 22 2c 5b 6e 65 28 74 68 69 th_call",[ne(thi 00032b20: 73 2e 63 6f 6e 73 74 72 75 63 74 6f 72 2c 22 68 s.constructor,"h 00032b30: 65 78 6c 69 66 79 54 72 61 6e 73 61 63 74 69 6f exlifyTransactio 00032b40: 6e 22 29 28 74 2e 74 72 61 6e 73 61 63 74 69 6f n")(t.transactio 00032b50: 6e 2c 7b 66 72 6f 6d 3a 21 30 7d 29 2c 74 2e 62 n,{from:!0}),t.b 00032b60: 6c 6f 63 6b 54 61 67 5d 5d 3b 63 61 73 65 22 65 lockTag]];case"e 00032b70: 73 74 69 6d 61 74 65 47 61 73 22 3a 72 65 74 75 stimateGas":retu 00032b80: 72 6e 5b 22 65 74 68 5f 65 73 74 69 6d 61 74 65 rn["eth_estimate 00032b90: 47 61 73 22 2c 5b 6e 65 28 74 68 69 73 2e 63 6f Gas",[ne(this.co 00032ba0: 6e 73 74 72 75 63 74 6f 72 2c 22 68 65 78 6c 69 nstructor,"hexli 00032bb0: 66 79 54 72 61 6e 73 61 63 74 69 6f 6e 22 29 28 fyTransaction")( 00032bc0: 74 2e 74 72 61 6e 73 61 63 74 69 6f 6e 2c 7b 66 t.transaction,{f 00032bd0: 72 6f 6d 3a 21 30 7d 29 5d 5d 3b 63 61 73 65 22 rom:!0})]];case" 00032be0: 67 65 74 4c 6f 67 73 22 3a 72 65 74 75 72 6e 20 getLogs":return 00032bf0: 74 2e 66 69 6c 74 65 72 26 26 6e 75 6c 6c 21 3d t.filter&&null!= 00032c00: 74 2e 66 69 6c 74 65 72 2e 61 64 64 72 65 73 73 t.filter.address 00032c10: 26 26 28 74 2e 66 69 6c 74 65 72 2e 61 64 64 72 &&(t.filter.addr 00032c20: 65 73 73 3d 64 73 28 74 2e 66 69 6c 74 65 72 2e ess=ds(t.filter. 00032c30: 61 64 64 72 65 73 73 29 29 2c 5b 22 65 74 68 5f address)),["eth_ 00032c40: 67 65 74 4c 6f 67 73 22 2c 5b 74 2e 66 69 6c 74 getLogs",[t.filt 00032c50: 65 72 5d 5d 7d 72 65 74 75 72 6e 20 6e 75 6c 6c er]]}return null 00032c60: 7d 70 65 72 66 6f 72 6d 28 65 2c 74 29 7b 72 65 }perform(e,t){re 00032c70: 74 75 72 6e 20 6f 73 28 74 68 69 73 2c 76 6f 69 turn os(this,voi 00032c80: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 00032c90: 74 69 6f 6e 2a 28 29 7b 69 66 28 22 63 61 6c 6c tion*(){if("call 00032ca0: 22 3d 3d 3d 65 7c 7c 22 65 73 74 69 6d 61 74 65 "===e||"estimate 00032cb0: 47 61 73 22 3d 3d 3d 65 29 7b 63 6f 6e 73 74 20 Gas"===e){const 00032cc0: 65 3d 74 2e 74 72 61 6e 73 61 63 74 69 6f 6e 3b e=t.transaction; 00032cd0: 69 66 28 65 26 26 6e 75 6c 6c 21 3d 65 2e 74 79 if(e&&null!=e.ty 00032ce0: 70 65 26 26 59 2e 66 72 6f 6d 28 65 2e 74 79 70 pe&&Y.from(e.typ 00032cf0: 65 29 2e 69 73 5a 65 72 6f 28 29 26 26 6e 75 6c e).isZero()&&nul 00032d00: 6c 3d 3d 65 2e 6d 61 78 46 65 65 50 65 72 47 61 l==e.maxFeePerGa 00032d10: 73 26 26 6e 75 6c 6c 3d 3d 65 2e 6d 61 78 50 72 s&&null==e.maxPr 00032d20: 69 6f 72 69 74 79 46 65 65 50 65 72 47 61 73 29 iorityFeePerGas) 00032d30: 7b 63 6f 6e 73 74 20 6e 3d 79 69 65 6c 64 20 74 {const n=yield t 00032d40: 68 69 73 2e 67 65 74 46 65 65 44 61 74 61 28 29 his.getFeeData() 00032d50: 3b 6e 75 6c 6c 3d 3d 6e 2e 6d 61 78 46 65 65 50 ;null==n.maxFeeP 00032d60: 65 72 47 61 73 26 26 6e 75 6c 6c 3d 3d 6e 2e 6d erGas&&null==n.m 00032d70: 61 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 axPriorityFeePer 00032d80: 47 61 73 26 26 28 28 74 3d 69 65 28 74 29 29 2e Gas&&((t=ie(t)). 00032d90: 74 72 61 6e 73 61 63 74 69 6f 6e 3d 69 65 28 65 transaction=ie(e 00032da0: 29 2c 64 65 6c 65 74 65 20 74 2e 74 72 61 6e 73 ),delete t.trans 00032db0: 61 63 74 69 6f 6e 2e 74 79 70 65 29 7d 7d 63 6f action.type)}}co 00032dc0: 6e 73 74 20 6e 3d 74 68 69 73 2e 70 72 65 70 61 nst n=this.prepa 00032dd0: 72 65 52 65 71 75 65 73 74 28 65 2c 74 29 3b 6e reRequest(e,t);n 00032de0: 75 6c 6c 3d 3d 6e 26 26 69 73 2e 74 68 72 6f 77 ull==n&&is.throw 00032df0: 45 72 72 6f 72 28 65 2b 22 20 6e 6f 74 20 69 6d Error(e+" not im 00032e00: 70 6c 65 6d 65 6e 74 65 64 22 2c 79 2e 65 72 72 plemented",y.err 00032e10: 6f 72 73 2e 4e 4f 54 5f 49 4d 50 4c 45 4d 45 4e ors.NOT_IMPLEMEN 00032e20: 54 45 44 2c 7b 6f 70 65 72 61 74 69 6f 6e 3a 65 TED,{operation:e 00032e30: 7d 29 3b 74 72 79 7b 72 65 74 75 72 6e 20 79 69 });try{return yi 00032e40: 65 6c 64 20 74 68 69 73 2e 73 65 6e 64 28 6e 5b eld this.send(n[ 00032e50: 30 5d 2c 6e 5b 31 5d 29 7d 63 61 74 63 68 28 6e 0],n[1])}catch(n 00032e60: 29 7b 72 65 74 75 72 6e 20 6c 73 28 65 2c 6e 2c ){return ls(e,n, 00032e70: 74 29 7d 7d 29 29 7d 5f 73 74 61 72 74 45 76 65 t)}}))}_startEve 00032e80: 6e 74 28 65 29 7b 22 70 65 6e 64 69 6e 67 22 3d nt(e){"pending"= 00032e90: 3d 3d 65 2e 74 61 67 26 26 74 68 69 73 2e 5f 73 ==e.tag&&this._s 00032ea0: 74 61 72 74 50 65 6e 64 69 6e 67 28 29 2c 73 75 tartPending(),su 00032eb0: 70 65 72 2e 5f 73 74 61 72 74 45 76 65 6e 74 28 per._startEvent( 00032ec0: 65 29 7d 5f 73 74 61 72 74 50 65 6e 64 69 6e 67 e)}_startPending 00032ed0: 28 29 7b 69 66 28 6e 75 6c 6c 21 3d 74 68 69 73 (){if(null!=this 00032ee0: 2e 5f 70 65 6e 64 69 6e 67 46 69 6c 74 65 72 29 ._pendingFilter) 00032ef0: 72 65 74 75 72 6e 3b 63 6f 6e 73 74 20 65 3d 74 return;const e=t 00032f00: 68 69 73 2c 74 3d 74 68 69 73 2e 73 65 6e 64 28 his,t=this.send( 00032f10: 22 65 74 68 5f 6e 65 77 50 65 6e 64 69 6e 67 54 "eth_newPendingT 00032f20: 72 61 6e 73 61 63 74 69 6f 6e 46 69 6c 74 65 72 ransactionFilter 00032f30: 22 2c 5b 5d 29 3b 74 68 69 73 2e 5f 70 65 6e 64 ",[]);this._pend 00032f40: 69 6e 67 46 69 6c 74 65 72 3d 74 2c 74 2e 74 68 ingFilter=t,t.th 00032f50: 65 6e 28 28 66 75 6e 63 74 69 6f 6e 28 6e 29 7b en((function(n){ 00032f60: 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e 20 return function 00032f70: 72 28 29 7b 65 2e 73 65 6e 64 28 22 65 74 68 5f r(){e.send("eth_ 00032f80: 67 65 74 46 69 6c 74 65 72 43 68 61 6e 67 65 73 getFilterChanges 00032f90: 22 2c 5b 6e 5d 29 2e 74 68 65 6e 28 28 66 75 6e ",[n]).then((fun 00032fa0: 63 74 69 6f 6e 28 6e 29 7b 69 66 28 65 2e 5f 70 ction(n){if(e._p 00032fb0: 65 6e 64 69 6e 67 46 69 6c 74 65 72 21 3d 74 29 endingFilter!=t) 00032fc0: 72 65 74 75 72 6e 20 6e 75 6c 6c 3b 6c 65 74 20 return null;let 00032fd0: 72 3d 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c 76 r=Promise.resolv 00032fe0: 65 28 29 3b 72 65 74 75 72 6e 20 6e 2e 66 6f 72 e();return n.for 00032ff0: 45 61 63 68 28 28 66 75 6e 63 74 69 6f 6e 28 74 Each((function(t 00033000: 29 7b 65 2e 5f 65 6d 69 74 74 65 64 5b 22 74 3a ){e._emitted["t: 00033010: 22 2b 74 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 "+t.toLowerCase( 00033020: 29 5d 3d 22 70 65 6e 64 69 6e 67 22 2c 72 3d 72 )]="pending",r=r 00033030: 2e 74 68 65 6e 28 28 66 75 6e 63 74 69 6f 6e 28 .then((function( 00033040: 29 7b 72 65 74 75 72 6e 20 65 2e 67 65 74 54 72 ){return e.getTr 00033050: 61 6e 73 61 63 74 69 6f 6e 28 74 29 2e 74 68 65 ansaction(t).the 00033060: 6e 28 28 66 75 6e 63 74 69 6f 6e 28 74 29 7b 72 n((function(t){r 00033070: 65 74 75 72 6e 20 65 2e 65 6d 69 74 28 22 70 65 eturn e.emit("pe 00033080: 6e 64 69 6e 67 22 2c 74 29 2c 6e 75 6c 6c 7d 29 nding",t),null}) 00033090: 29 7d 29 29 7d 29 29 2c 72 2e 74 68 65 6e 28 28 )}))})),r.then(( 000330a0: 66 75 6e 63 74 69 6f 6e 28 29 7b 72 65 74 75 72 function(){retur 000330b0: 6e 20 63 73 28 31 65 33 29 7d 29 29 7d 29 29 2e n cs(1e3)}))})). 000330c0: 74 68 65 6e 28 28 66 75 6e 63 74 69 6f 6e 28 29 then((function() 000330d0: 7b 69 66 28 65 2e 5f 70 65 6e 64 69 6e 67 46 69 {if(e._pendingFi 000330e0: 6c 74 65 72 3d 3d 74 29 72 65 74 75 72 6e 20 73 lter==t)return s 000330f0: 65 74 54 69 6d 65 6f 75 74 28 28 66 75 6e 63 74 etTimeout((funct 00033100: 69 6f 6e 28 29 7b 72 28 29 7d 29 2c 30 29 2c 6e ion(){r()}),0),n 00033110: 75 6c 6c 3b 65 2e 73 65 6e 64 28 22 65 74 68 5f ull;e.send("eth_ 00033120: 75 6e 69 6e 73 74 61 6c 6c 46 69 6c 74 65 72 22 uninstallFilter" 00033130: 2c 5b 6e 5d 29 7d 29 29 2e 63 61 74 63 68 28 28 ,[n])})).catch(( 00033140: 65 3d 3e 7b 7d 29 29 7d 28 29 2c 6e 7d 29 29 2e e=>{}))}(),n})). 00033150: 63 61 74 63 68 28 28 65 3d 3e 7b 7d 29 29 7d 5f catch((e=>{}))}_ 00033160: 73 74 6f 70 45 76 65 6e 74 28 65 29 7b 22 70 65 stopEvent(e){"pe 00033170: 6e 64 69 6e 67 22 3d 3d 3d 65 2e 74 61 67 26 26 nding"===e.tag&& 00033180: 30 3d 3d 3d 74 68 69 73 2e 6c 69 73 74 65 6e 65 0===this.listene 00033190: 72 43 6f 75 6e 74 28 22 70 65 6e 64 69 6e 67 22 rCount("pending" 000331a0: 29 26 26 28 74 68 69 73 2e 5f 70 65 6e 64 69 6e )&&(this._pendin 000331b0: 67 46 69 6c 74 65 72 3d 6e 75 6c 6c 29 2c 73 75 gFilter=null),su 000331c0: 70 65 72 2e 5f 73 74 6f 70 45 76 65 6e 74 28 65 per._stopEvent(e 000331d0: 29 7d 73 74 61 74 69 63 20 68 65 78 6c 69 66 79 )}static hexlify 000331e0: 54 72 61 6e 73 61 63 74 69 6f 6e 28 65 2c 74 29 Transaction(e,t) 000331f0: 7b 63 6f 6e 73 74 20 6e 3d 69 65 28 6d 73 29 3b {const n=ie(ms); 00033200: 69 66 28 74 29 66 6f 72 28 63 6f 6e 73 74 20 65 if(t)for(const e 00033210: 20 69 6e 20 74 29 74 5b 65 5d 26 26 28 6e 5b 65 in t)t[e]&&(n[e 00033220: 5d 3d 21 30 29 3b 6f 65 28 65 2c 6e 29 3b 63 6f ]=!0);oe(e,n);co 00033230: 6e 73 74 20 72 3d 7b 7d 3b 72 65 74 75 72 6e 5b nst r={};return[ 00033240: 22 63 68 61 69 6e 49 64 22 2c 22 67 61 73 4c 69 "chainId","gasLi 00033250: 6d 69 74 22 2c 22 67 61 73 50 72 69 63 65 22 2c mit","gasPrice", 00033260: 22 74 79 70 65 22 2c 22 6d 61 78 46 65 65 50 65 "type","maxFeePe 00033270: 72 47 61 73 22 2c 22 6d 61 78 50 72 69 6f 72 69 rGas","maxPriori 00033280: 74 79 46 65 65 50 65 72 47 61 73 22 2c 22 6e 6f tyFeePerGas","no 00033290: 6e 63 65 22 2c 22 76 61 6c 75 65 22 5d 2e 66 6f nce","value"].fo 000332a0: 72 45 61 63 68 28 28 66 75 6e 63 74 69 6f 6e 28 rEach((function( 000332b0: 74 29 7b 69 66 28 6e 75 6c 6c 3d 3d 65 5b 74 5d t){if(null==e[t] 000332c0: 29 72 65 74 75 72 6e 3b 63 6f 6e 73 74 20 6e 3d )return;const n= 000332d0: 44 28 59 2e 66 72 6f 6d 28 65 5b 74 5d 29 29 3b D(Y.from(e[t])); 000332e0: 22 67 61 73 4c 69 6d 69 74 22 3d 3d 3d 74 26 26 "gasLimit"===t&& 000332f0: 28 74 3d 22 67 61 73 22 29 2c 72 5b 74 5d 3d 6e (t="gas"),r[t]=n 00033300: 7d 29 29 2c 5b 22 66 72 6f 6d 22 2c 22 74 6f 22 })),["from","to" 00033310: 2c 22 64 61 74 61 22 5d 2e 66 6f 72 45 61 63 68 ,"data"].forEach 00033320: 28 28 66 75 6e 63 74 69 6f 6e 28 74 29 7b 6e 75 ((function(t){nu 00033330: 6c 6c 21 3d 65 5b 74 5d 26 26 28 72 5b 74 5d 3d ll!=e[t]&&(r[t]= 00033340: 52 28 65 5b 74 5d 29 29 7d 29 29 2c 65 2e 61 63 R(e[t]))})),e.ac 00033350: 63 65 73 73 4c 69 73 74 26 26 28 72 2e 61 63 63 cessList&&(r.acc 00033360: 65 73 73 4c 69 73 74 3d 66 72 28 65 2e 61 63 63 essList=fr(e.acc 00033370: 65 73 73 4c 69 73 74 29 29 2c 72 7d 7d 6c 65 74 essList)),r}}let 00033380: 20 62 73 3d 6e 75 6c 6c 3b 74 72 79 7b 69 66 28 bs=null;try{if( 00033390: 62 73 3d 57 65 62 53 6f 63 6b 65 74 2c 6e 75 6c bs=WebSocket,nul 000333a0: 6c 3d 3d 62 73 29 74 68 72 6f 77 20 6e 65 77 20 l==bs)throw new 000333b0: 45 72 72 6f 72 28 22 69 6e 6a 65 63 74 20 70 6c Error("inject pl 000333c0: 65 61 73 65 22 29 7d 63 61 74 63 68 28 65 29 7b ease")}catch(e){ 000333d0: 63 6f 6e 73 74 20 74 3d 6e 65 77 20 79 28 41 61 const t=new y(Aa 000333e0: 29 3b 62 73 3d 66 75 6e 63 74 69 6f 6e 28 29 7b );bs=function(){ 000333f0: 74 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 57 65 t.throwError("We 00033400: 62 53 6f 63 6b 65 74 73 20 6e 6f 74 20 73 75 70 bSockets not sup 00033410: 70 6f 72 74 65 64 20 69 6e 20 74 68 69 73 20 65 ported in this e 00033420: 6e 76 69 72 6f 6e 6d 65 6e 74 22 2c 79 2e 65 72 nvironment",y.er 00033430: 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 rors.UNSUPPORTED 00033440: 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 _OPERATION,{oper 00033450: 61 74 69 6f 6e 3a 22 6e 65 77 20 57 65 62 53 6f ation:"new WebSo 00033460: 63 6b 65 74 28 29 22 7d 29 7d 7d 76 61 72 20 79 cket()"})}}var y 00033470: 73 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e s=function(e,t,n 00033480: 2c 72 29 7b 72 65 74 75 72 6e 20 6e 65 77 28 6e ,r){return new(n 00033490: 7c 7c 28 6e 3d 50 72 6f 6d 69 73 65 29 29 28 28 ||(n=Promise))(( 000334a0: 66 75 6e 63 74 69 6f 6e 28 6f 2c 69 29 7b 66 75 function(o,i){fu 000334b0: 6e 63 74 69 6f 6e 20 61 28 65 29 7b 74 72 79 7b nction a(e){try{ 000334c0: 6c 28 72 2e 6e 65 78 74 28 65 29 29 7d 63 61 74 l(r.next(e))}cat 000334d0: 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 ch(e){i(e)}}func 000334e0: 74 69 6f 6e 20 73 28 65 29 7b 74 72 79 7b 6c 28 tion s(e){try{l( 000334f0: 72 2e 74 68 72 6f 77 28 65 29 29 7d 63 61 74 63 r.throw(e))}catc 00033500: 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 h(e){i(e)}}funct 00033510: 69 6f 6e 20 6c 28 65 29 7b 76 61 72 20 74 3b 65 ion l(e){var t;e 00033520: 2e 64 6f 6e 65 3f 6f 28 65 2e 76 61 6c 75 65 29 .done?o(e.value) 00033530: 3a 28 74 3d 65 2e 76 61 6c 75 65 2c 74 20 69 6e :(t=e.value,t in 00033540: 73 74 61 6e 63 65 6f 66 20 6e 3f 74 3a 6e 65 77 stanceof n?t:new 00033550: 20 6e 28 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b n((function(e){ 00033560: 65 28 74 29 7d 29 29 29 2e 74 68 65 6e 28 61 2c e(t)}))).then(a, 00033570: 73 29 7d 6c 28 28 72 3d 72 2e 61 70 70 6c 79 28 s)}l((r=r.apply( 00033580: 65 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 78 74 28 29 e,t||[])).next() 00033590: 29 7d 29 29 7d 3b 63 6f 6e 73 74 20 76 73 3d 6e )}))};const vs=n 000335a0: 65 77 20 79 28 41 61 29 3b 6c 65 74 20 53 73 3d ew y(Aa);let Ss= 000335b0: 31 3b 63 6c 61 73 73 20 45 73 20 65 78 74 65 6e 1;class Es exten 000335c0: 64 73 20 67 73 7b 63 6f 6e 73 74 72 75 63 74 6f ds gs{constructo 000335d0: 72 28 65 2c 74 29 7b 22 61 6e 79 22 3d 3d 3d 74 r(e,t){"any"===t 000335e0: 26 26 76 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 &&vs.throwError( 000335f0: 22 57 65 62 53 6f 63 6b 65 74 50 72 6f 76 69 64 "WebSocketProvid 00033600: 65 72 20 64 6f 65 73 20 6e 6f 74 20 73 75 70 70 er does not supp 00033610: 6f 72 74 20 27 61 6e 79 27 20 6e 65 74 77 6f 72 ort 'any' networ 00033620: 6b 20 79 65 74 22 2c 79 2e 65 72 72 6f 72 73 2e k yet",y.errors. 00033630: 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 52 UNSUPPORTED_OPER 00033640: 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f 6e ATION,{operation 00033650: 3a 22 6e 65 74 77 6f 72 6b 3a 61 6e 79 22 7d 29 :"network:any"}) 00033660: 2c 73 75 70 65 72 28 22 73 74 72 69 6e 67 22 3d ,super("string"= 00033670: 3d 74 79 70 65 6f 66 20 65 3f 65 3a 22 5f 77 65 =typeof e?e:"_we 00033680: 62 73 6f 63 6b 65 74 22 2c 74 29 2c 74 68 69 73 bsocket",t),this 00033690: 2e 5f 70 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 ._pollingInterva 000336a0: 6c 3d 2d 31 2c 74 68 69 73 2e 5f 77 73 52 65 61 l=-1,this._wsRea 000336b0: 64 79 3d 21 31 2c 74 65 28 74 68 69 73 2c 22 5f dy=!1,te(this,"_ 000336c0: 77 65 62 73 6f 63 6b 65 74 22 2c 22 73 74 72 69 websocket","stri 000336d0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 6e 65 ng"==typeof e?ne 000336e0: 77 20 62 73 28 74 68 69 73 2e 63 6f 6e 6e 65 63 w bs(this.connec 000336f0: 74 69 6f 6e 2e 75 72 6c 29 3a 65 29 2c 74 65 28 tion.url):e),te( 00033700: 74 68 69 73 2c 22 5f 72 65 71 75 65 73 74 73 22 this,"_requests" 00033710: 2c 7b 7d 29 2c 74 65 28 74 68 69 73 2c 22 5f 73 ,{}),te(this,"_s 00033720: 75 62 73 22 2c 7b 7d 29 2c 74 65 28 74 68 69 73 ubs",{}),te(this 00033730: 2c 22 5f 73 75 62 49 64 73 22 2c 7b 7d 29 2c 74 ,"_subIds",{}),t 00033740: 65 28 74 68 69 73 2c 22 5f 64 65 74 65 63 74 4e e(this,"_detectN 00033750: 65 74 77 6f 72 6b 22 2c 73 75 70 65 72 2e 64 65 etwork",super.de 00033760: 74 65 63 74 4e 65 74 77 6f 72 6b 28 29 29 2c 74 tectNetwork()),t 00033770: 68 69 73 2e 77 65 62 73 6f 63 6b 65 74 2e 6f 6e his.websocket.on 00033780: 6f 70 65 6e 3d 28 29 3d 3e 7b 74 68 69 73 2e 5f open=()=>{this._ 00033790: 77 73 52 65 61 64 79 3d 21 30 2c 4f 62 6a 65 63 wsReady=!0,Objec 000337a0: 74 2e 6b 65 79 73 28 74 68 69 73 2e 5f 72 65 71 t.keys(this._req 000337b0: 75 65 73 74 73 29 2e 66 6f 72 45 61 63 68 28 28 uests).forEach(( 000337c0: 65 3d 3e 7b 74 68 69 73 2e 77 65 62 73 6f 63 6b e=>{this.websock 000337d0: 65 74 2e 73 65 6e 64 28 74 68 69 73 2e 5f 72 65 et.send(this._re 000337e0: 71 75 65 73 74 73 5b 65 5d 2e 70 61 79 6c 6f 61 quests[e].payloa 000337f0: 64 29 7d 29 29 7d 2c 74 68 69 73 2e 77 65 62 73 d)}))},this.webs 00033800: 6f 63 6b 65 74 2e 6f 6e 6d 65 73 73 61 67 65 3d ocket.onmessage= 00033810: 65 3d 3e 7b 63 6f 6e 73 74 20 74 3d 65 2e 64 61 e=>{const t=e.da 00033820: 74 61 2c 6e 3d 4a 53 4f 4e 2e 70 61 72 73 65 28 ta,n=JSON.parse( 00033830: 74 29 3b 69 66 28 6e 75 6c 6c 21 3d 6e 2e 69 64 t);if(null!=n.id 00033840: 29 7b 63 6f 6e 73 74 20 65 3d 53 74 72 69 6e 67 ){const e=String 00033850: 28 6e 2e 69 64 29 2c 72 3d 74 68 69 73 2e 5f 72 (n.id),r=this._r 00033860: 65 71 75 65 73 74 73 5b 65 5d 3b 69 66 28 64 65 equests[e];if(de 00033870: 6c 65 74 65 20 74 68 69 73 2e 5f 72 65 71 75 65 lete this._reque 00033880: 73 74 73 5b 65 5d 2c 76 6f 69 64 20 30 21 3d 3d sts[e],void 0!== 00033890: 6e 2e 72 65 73 75 6c 74 29 72 2e 63 61 6c 6c 62 n.result)r.callb 000338a0: 61 63 6b 28 6e 75 6c 6c 2c 6e 2e 72 65 73 75 6c ack(null,n.resul 000338b0: 74 29 2c 74 68 69 73 2e 65 6d 69 74 28 22 64 65 t),this.emit("de 000338c0: 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 bug",{action:"re 000338d0: 73 70 6f 6e 73 65 22 2c 72 65 71 75 65 73 74 3a sponse",request: 000338e0: 4a 53 4f 4e 2e 70 61 72 73 65 28 72 2e 70 61 79 JSON.parse(r.pay 000338f0: 6c 6f 61 64 29 2c 72 65 73 70 6f 6e 73 65 3a 6e load),response:n 00033900: 2e 72 65 73 75 6c 74 2c 70 72 6f 76 69 64 65 72 .result,provider 00033910: 3a 74 68 69 73 7d 29 3b 65 6c 73 65 7b 6c 65 74 :this});else{let 00033920: 20 65 3d 6e 75 6c 6c 3b 6e 2e 65 72 72 6f 72 3f e=null;n.error? 00033930: 28 65 3d 6e 65 77 20 45 72 72 6f 72 28 6e 2e 65 (e=new Error(n.e 00033940: 72 72 6f 72 2e 6d 65 73 73 61 67 65 7c 7c 22 75 rror.message||"u 00033950: 6e 6b 6e 6f 77 6e 20 65 72 72 6f 72 22 29 2c 74 nknown error"),t 00033960: 65 28 65 2c 22 63 6f 64 65 22 2c 6e 2e 65 72 72 e(e,"code",n.err 00033970: 6f 72 2e 63 6f 64 65 7c 7c 6e 75 6c 6c 29 2c 74 or.code||null),t 00033980: 65 28 65 2c 22 72 65 73 70 6f 6e 73 65 22 2c 74 e(e,"response",t 00033990: 29 29 3a 65 3d 6e 65 77 20 45 72 72 6f 72 28 22 )):e=new Error(" 000339a0: 75 6e 6b 6e 6f 77 6e 20 65 72 72 6f 72 22 29 2c unknown error"), 000339b0: 72 2e 63 61 6c 6c 62 61 63 6b 28 65 2c 76 6f 69 r.callback(e,voi 000339c0: 64 20 30 29 2c 74 68 69 73 2e 65 6d 69 74 28 22 d 0),this.emit(" 000339d0: 64 65 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 debug",{action:" 000339e0: 72 65 73 70 6f 6e 73 65 22 2c 65 72 72 6f 72 3a response",error: 000339f0: 65 2c 72 65 71 75 65 73 74 3a 4a 53 4f 4e 2e 70 e,request:JSON.p 00033a00: 61 72 73 65 28 72 2e 70 61 79 6c 6f 61 64 29 2c arse(r.payload), 00033a10: 70 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 7d provider:this})} 00033a20: 7d 65 6c 73 65 20 69 66 28 22 65 74 68 5f 73 75 }else if("eth_su 00033a30: 62 73 63 72 69 70 74 69 6f 6e 22 3d 3d 3d 6e 2e bscription"===n. 00033a40: 6d 65 74 68 6f 64 29 7b 63 6f 6e 73 74 20 65 3d method){const e= 00033a50: 74 68 69 73 2e 5f 73 75 62 73 5b 6e 2e 70 61 72 this._subs[n.par 00033a60: 61 6d 73 2e 73 75 62 73 63 72 69 70 74 69 6f 6e ams.subscription 00033a70: 5d 3b 65 26 26 65 2e 70 72 6f 63 65 73 73 46 75 ];e&&e.processFu 00033a80: 6e 63 28 6e 2e 70 61 72 61 6d 73 2e 72 65 73 75 nc(n.params.resu 00033a90: 6c 74 29 7d 65 6c 73 65 20 63 6f 6e 73 6f 6c 65 lt)}else console 00033aa0: 2e 77 61 72 6e 28 22 74 68 69 73 20 73 68 6f 75 .warn("this shou 00033ab0: 6c 64 20 6e 6f 74 20 68 61 70 70 65 6e 22 29 7d ld not happen")} 00033ac0: 3b 63 6f 6e 73 74 20 6e 3d 73 65 74 49 6e 74 65 ;const n=setInte 00033ad0: 72 76 61 6c 28 28 28 29 3d 3e 7b 74 68 69 73 2e rval((()=>{this. 00033ae0: 65 6d 69 74 28 22 70 6f 6c 6c 22 29 7d 29 2c 31 emit("poll")}),1 00033af0: 65 33 29 3b 6e 2e 75 6e 72 65 66 26 26 6e 2e 75 e3);n.unref&&n.u 00033b00: 6e 72 65 66 28 29 7d 67 65 74 20 77 65 62 73 6f nref()}get webso 00033b10: 63 6b 65 74 28 29 7b 72 65 74 75 72 6e 20 74 68 cket(){return th 00033b20: 69 73 2e 5f 77 65 62 73 6f 63 6b 65 74 7d 64 65 is._websocket}de 00033b30: 74 65 63 74 4e 65 74 77 6f 72 6b 28 29 7b 72 65 tectNetwork(){re 00033b40: 74 75 72 6e 20 74 68 69 73 2e 5f 64 65 74 65 63 turn this._detec 00033b50: 74 4e 65 74 77 6f 72 6b 7d 67 65 74 20 70 6f 6c tNetwork}get pol 00033b60: 6c 69 6e 67 49 6e 74 65 72 76 61 6c 28 29 7b 72 lingInterval(){r 00033b70: 65 74 75 72 6e 20 30 7d 72 65 73 65 74 45 76 65 eturn 0}resetEve 00033b80: 6e 74 73 42 6c 6f 63 6b 28 65 29 7b 76 73 2e 74 ntsBlock(e){vs.t 00033b90: 68 72 6f 77 45 72 72 6f 72 28 22 63 61 6e 6e 6f hrowError("canno 00033ba0: 74 20 72 65 73 65 74 20 65 76 65 6e 74 73 20 62 t reset events b 00033bb0: 6c 6f 63 6b 20 6f 6e 20 57 65 62 53 6f 63 6b 65 lock on WebSocke 00033bc0: 74 50 72 6f 76 69 64 65 72 22 2c 79 2e 65 72 72 tProvider",y.err 00033bd0: 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f ors.UNSUPPORTED_ 00033be0: 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 OPERATION,{opera 00033bf0: 74 69 6f 6e 3a 22 72 65 73 65 74 45 76 65 6e 74 tion:"resetEvent 00033c00: 42 6c 6f 63 6b 22 7d 29 7d 73 65 74 20 70 6f 6c Block"})}set pol 00033c10: 6c 69 6e 67 49 6e 74 65 72 76 61 6c 28 65 29 7b lingInterval(e){ 00033c20: 76 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 63 vs.throwError("c 00033c30: 61 6e 6e 6f 74 20 73 65 74 20 70 6f 6c 6c 69 6e annot set pollin 00033c40: 67 20 69 6e 74 65 72 76 61 6c 20 6f 6e 20 57 65 g interval on We 00033c50: 62 53 6f 63 6b 65 74 50 72 6f 76 69 64 65 72 22 bSocketProvider" 00033c60: 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 ,y.errors.UNSUPP 00033c70: 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c ORTED_OPERATION, 00033c80: 7b 6f 70 65 72 61 74 69 6f 6e 3a 22 73 65 74 50 {operation:"setP 00033c90: 6f 6c 6c 69 6e 67 49 6e 74 65 72 76 61 6c 22 7d ollingInterval"} 00033ca0: 29 7d 70 6f 6c 6c 28 29 7b 72 65 74 75 72 6e 20 )}poll(){return 00033cb0: 79 73 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 ys(this,void 0,v 00033cc0: 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a oid 0,(function* 00033cd0: 28 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 7d 29 (){return null}) 00033ce0: 29 7d 73 65 74 20 70 6f 6c 6c 69 6e 67 28 65 29 )}set polling(e) 00033cf0: 7b 65 26 26 76 73 2e 74 68 72 6f 77 45 72 72 6f {e&&vs.throwErro 00033d00: 72 28 22 63 61 6e 6e 6f 74 20 73 65 74 20 70 6f r("cannot set po 00033d10: 6c 6c 69 6e 67 20 6f 6e 20 57 65 62 53 6f 63 6b lling on WebSock 00033d20: 65 74 50 72 6f 76 69 64 65 72 22 2c 79 2e 65 72 etProvider",y.er 00033d30: 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 rors.UNSUPPORTED 00033d40: 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 _OPERATION,{oper 00033d50: 61 74 69 6f 6e 3a 22 73 65 74 50 6f 6c 6c 69 6e ation:"setPollin 00033d60: 67 22 7d 29 7d 73 65 6e 64 28 65 2c 74 29 7b 63 g"})}send(e,t){c 00033d70: 6f 6e 73 74 20 6e 3d 53 73 2b 2b 3b 72 65 74 75 onst n=Ss++;retu 00033d80: 72 6e 20 6e 65 77 20 50 72 6f 6d 69 73 65 28 28 rn new Promise(( 00033d90: 28 72 2c 6f 29 3d 3e 7b 63 6f 6e 73 74 20 69 3d (r,o)=>{const i= 00033da0: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 7b JSON.stringify({ 00033db0: 6d 65 74 68 6f 64 3a 65 2c 70 61 72 61 6d 73 3a method:e,params: 00033dc0: 74 2c 69 64 3a 6e 2c 6a 73 6f 6e 72 70 63 3a 22 t,id:n,jsonrpc:" 00033dd0: 32 2e 30 22 7d 29 3b 74 68 69 73 2e 65 6d 69 74 2.0"});this.emit 00033de0: 28 22 64 65 62 75 67 22 2c 7b 61 63 74 69 6f 6e ("debug",{action 00033df0: 3a 22 72 65 71 75 65 73 74 22 2c 72 65 71 75 65 :"request",reque 00033e00: 73 74 3a 4a 53 4f 4e 2e 70 61 72 73 65 28 69 29 st:JSON.parse(i) 00033e10: 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 ,provider:this}) 00033e20: 2c 74 68 69 73 2e 5f 72 65 71 75 65 73 74 73 5b ,this._requests[ 00033e30: 53 74 72 69 6e 67 28 6e 29 5d 3d 7b 63 61 6c 6c String(n)]={call 00033e40: 62 61 63 6b 3a 66 75 6e 63 74 69 6f 6e 28 65 2c back:function(e, 00033e50: 74 29 7b 72 65 74 75 72 6e 20 65 3f 6f 28 65 29 t){return e?o(e) 00033e60: 3a 72 28 74 29 7d 2c 70 61 79 6c 6f 61 64 3a 69 :r(t)},payload:i 00033e70: 7d 2c 74 68 69 73 2e 5f 77 73 52 65 61 64 79 26 },this._wsReady& 00033e80: 26 74 68 69 73 2e 77 65 62 73 6f 63 6b 65 74 2e &this.websocket. 00033e90: 73 65 6e 64 28 69 29 7d 29 29 7d 73 74 61 74 69 send(i)}))}stati 00033ea0: 63 20 64 65 66 61 75 6c 74 55 72 6c 28 29 7b 72 c defaultUrl(){r 00033eb0: 65 74 75 72 6e 22 77 73 3a 2f 2f 6c 6f 63 61 6c eturn"ws://local 00033ec0: 68 6f 73 74 3a 38 35 34 36 22 7d 5f 73 75 62 73 host:8546"}_subs 00033ed0: 63 72 69 62 65 28 65 2c 74 2c 6e 29 7b 72 65 74 cribe(e,t,n){ret 00033ee0: 75 72 6e 20 79 73 28 74 68 69 73 2c 76 6f 69 64 urn ys(this,void 00033ef0: 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 0,void 0,(funct 00033f00: 69 6f 6e 2a 28 29 7b 6c 65 74 20 72 3d 74 68 69 ion*(){let r=thi 00033f10: 73 2e 5f 73 75 62 49 64 73 5b 65 5d 3b 6e 75 6c s._subIds[e];nul 00033f20: 6c 3d 3d 72 26 26 28 72 3d 50 72 6f 6d 69 73 65 l==r&&(r=Promise 00033f30: 2e 61 6c 6c 28 74 29 2e 74 68 65 6e 28 28 65 3d .all(t).then((e= 00033f40: 3e 74 68 69 73 2e 73 65 6e 64 28 22 65 74 68 5f >this.send("eth_ 00033f50: 73 75 62 73 63 72 69 62 65 22 2c 65 29 29 29 2c subscribe",e))), 00033f60: 74 68 69 73 2e 5f 73 75 62 49 64 73 5b 65 5d 3d this._subIds[e]= 00033f70: 72 29 3b 63 6f 6e 73 74 20 6f 3d 79 69 65 6c 64 r);const o=yield 00033f80: 20 72 3b 74 68 69 73 2e 5f 73 75 62 73 5b 6f 5d r;this._subs[o] 00033f90: 3d 7b 74 61 67 3a 65 2c 70 72 6f 63 65 73 73 46 ={tag:e,processF 00033fa0: 75 6e 63 3a 6e 7d 7d 29 29 7d 5f 73 74 61 72 74 unc:n}}))}_start 00033fb0: 45 76 65 6e 74 28 65 29 7b 73 77 69 74 63 68 28 Event(e){switch( 00033fc0: 65 2e 74 79 70 65 29 7b 63 61 73 65 22 62 6c 6f e.type){case"blo 00033fd0: 63 6b 22 3a 74 68 69 73 2e 5f 73 75 62 73 63 72 ck":this._subscr 00033fe0: 69 62 65 28 22 62 6c 6f 63 6b 22 2c 5b 22 6e 65 ibe("block",["ne 00033ff0: 77 48 65 61 64 73 22 5d 2c 28 65 3d 3e 7b 63 6f wHeads"],(e=>{co 00034000: 6e 73 74 20 74 3d 59 2e 66 72 6f 6d 28 65 2e 6e nst t=Y.from(e.n 00034010: 75 6d 62 65 72 29 2e 74 6f 4e 75 6d 62 65 72 28 umber).toNumber( 00034020: 29 3b 74 68 69 73 2e 5f 65 6d 69 74 74 65 64 2e );this._emitted. 00034030: 62 6c 6f 63 6b 3d 74 2c 74 68 69 73 2e 65 6d 69 block=t,this.emi 00034040: 74 28 22 62 6c 6f 63 6b 22 2c 74 29 7d 29 29 3b t("block",t)})); 00034050: 62 72 65 61 6b 3b 63 61 73 65 22 70 65 6e 64 69 break;case"pendi 00034060: 6e 67 22 3a 74 68 69 73 2e 5f 73 75 62 73 63 72 ng":this._subscr 00034070: 69 62 65 28 22 70 65 6e 64 69 6e 67 22 2c 5b 22 ibe("pending",[" 00034080: 6e 65 77 50 65 6e 64 69 6e 67 54 72 61 6e 73 61 newPendingTransa 00034090: 63 74 69 6f 6e 73 22 5d 2c 28 65 3d 3e 7b 74 68 ctions"],(e=>{th 000340a0: 69 73 2e 65 6d 69 74 28 22 70 65 6e 64 69 6e 67 is.emit("pending 000340b0: 22 2c 65 29 7d 29 29 3b 62 72 65 61 6b 3b 63 61 ",e)}));break;ca 000340c0: 73 65 22 66 69 6c 74 65 72 22 3a 74 68 69 73 2e se"filter":this. 000340d0: 5f 73 75 62 73 63 72 69 62 65 28 65 2e 74 61 67 _subscribe(e.tag 000340e0: 2c 5b 22 6c 6f 67 73 22 2c 74 68 69 73 2e 5f 67 ,["logs",this._g 000340f0: 65 74 46 69 6c 74 65 72 28 65 2e 66 69 6c 74 65 etFilter(e.filte 00034100: 72 29 5d 2c 28 74 3d 3e 7b 6e 75 6c 6c 3d 3d 74 r)],(t=>{null==t 00034110: 2e 72 65 6d 6f 76 65 64 26 26 28 74 2e 72 65 6d .removed&&(t.rem 00034120: 6f 76 65 64 3d 21 31 29 2c 74 68 69 73 2e 65 6d oved=!1),this.em 00034130: 69 74 28 65 2e 66 69 6c 74 65 72 2c 74 68 69 73 it(e.filter,this 00034140: 2e 66 6f 72 6d 61 74 74 65 72 2e 66 69 6c 74 65 .formatter.filte 00034150: 72 4c 6f 67 28 74 29 29 7d 29 29 3b 62 72 65 61 rLog(t))}));brea 00034160: 6b 3b 63 61 73 65 22 74 78 22 3a 7b 63 6f 6e 73 k;case"tx":{cons 00034170: 74 20 74 3d 65 3d 3e 7b 63 6f 6e 73 74 20 74 3d t t=e=>{const t= 00034180: 65 2e 68 61 73 68 3b 74 68 69 73 2e 67 65 74 54 e.hash;this.getT 00034190: 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 65 69 70 ransactionReceip 000341a0: 74 28 74 29 2e 74 68 65 6e 28 28 65 3d 3e 7b 65 t(t).then((e=>{e 000341b0: 26 26 74 68 69 73 2e 65 6d 69 74 28 74 2c 65 29 &&this.emit(t,e) 000341c0: 7d 29 29 7d 3b 74 28 65 29 2c 74 68 69 73 2e 5f }))};t(e),this._ 000341d0: 73 75 62 73 63 72 69 62 65 28 22 74 78 22 2c 5b subscribe("tx",[ 000341e0: 22 6e 65 77 48 65 61 64 73 22 5d 2c 28 65 3d 3e "newHeads"],(e=> 000341f0: 7b 74 68 69 73 2e 5f 65 76 65 6e 74 73 2e 66 69 {this._events.fi 00034200: 6c 74 65 72 28 28 65 3d 3e 22 74 78 22 3d 3d 3d lter((e=>"tx"=== 00034210: 65 2e 74 79 70 65 29 29 2e 66 6f 72 45 61 63 68 e.type)).forEach 00034220: 28 74 29 7d 29 29 3b 62 72 65 61 6b 7d 63 61 73 (t)}));break}cas 00034230: 65 22 64 65 62 75 67 22 3a 63 61 73 65 22 70 6f e"debug":case"po 00034240: 6c 6c 22 3a 63 61 73 65 22 77 69 6c 6c 50 6f 6c ll":case"willPol 00034250: 6c 22 3a 63 61 73 65 22 64 69 64 50 6f 6c 6c 22 l":case"didPoll" 00034260: 3a 63 61 73 65 22 65 72 72 6f 72 22 3a 62 72 65 :case"error":bre 00034270: 61 6b 3b 64 65 66 61 75 6c 74 3a 63 6f 6e 73 6f ak;default:conso 00034280: 6c 65 2e 6c 6f 67 28 22 75 6e 68 61 6e 64 6c 65 le.log("unhandle 00034290: 64 3a 22 2c 65 29 7d 7d 5f 73 74 6f 70 45 76 65 d:",e)}}_stopEve 000342a0: 6e 74 28 65 29 7b 6c 65 74 20 74 3d 65 2e 74 61 nt(e){let t=e.ta 000342b0: 67 3b 69 66 28 22 74 78 22 3d 3d 3d 65 2e 74 79 g;if("tx"===e.ty 000342c0: 70 65 29 7b 69 66 28 74 68 69 73 2e 5f 65 76 65 pe){if(this._eve 000342d0: 6e 74 73 2e 66 69 6c 74 65 72 28 28 65 3d 3e 22 nts.filter((e=>" 000342e0: 74 78 22 3d 3d 3d 65 2e 74 79 70 65 29 29 2e 6c tx"===e.type)).l 000342f0: 65 6e 67 74 68 29 72 65 74 75 72 6e 3b 74 3d 22 ength)return;t=" 00034300: 74 78 22 7d 65 6c 73 65 20 69 66 28 74 68 69 73 tx"}else if(this 00034310: 2e 6c 69 73 74 65 6e 65 72 43 6f 75 6e 74 28 65 .listenerCount(e 00034320: 2e 65 76 65 6e 74 29 29 72 65 74 75 72 6e 3b 63 .event))return;c 00034330: 6f 6e 73 74 20 6e 3d 74 68 69 73 2e 5f 73 75 62 onst n=this._sub 00034340: 49 64 73 5b 74 5d 3b 6e 26 26 28 64 65 6c 65 74 Ids[t];n&&(delet 00034350: 65 20 74 68 69 73 2e 5f 73 75 62 49 64 73 5b 74 e this._subIds[t 00034360: 5d 2c 6e 2e 74 68 65 6e 28 28 65 3d 3e 7b 74 68 ],n.then((e=>{th 00034370: 69 73 2e 5f 73 75 62 73 5b 65 5d 26 26 28 64 65 is._subs[e]&&(de 00034380: 6c 65 74 65 20 74 68 69 73 2e 5f 73 75 62 73 5b lete this._subs[ 00034390: 65 5d 2c 74 68 69 73 2e 73 65 6e 64 28 22 65 74 e],this.send("et 000343a0: 68 5f 75 6e 73 75 62 73 63 72 69 62 65 22 2c 5b h_unsubscribe",[ 000343b0: 65 5d 29 29 7d 29 29 29 7d 64 65 73 74 72 6f 79 e]))})))}destroy 000343c0: 28 29 7b 72 65 74 75 72 6e 20 79 73 28 74 68 69 (){return ys(thi 000343d0: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 000343e0: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 74 68 69 (function*(){thi 000343f0: 73 2e 77 65 62 73 6f 63 6b 65 74 2e 72 65 61 64 s.websocket.read 00034400: 79 53 74 61 74 65 3d 3d 3d 62 73 2e 43 4f 4e 4e yState===bs.CONN 00034410: 45 43 54 49 4e 47 26 26 28 79 69 65 6c 64 20 6e ECTING&&(yield n 00034420: 65 77 20 50 72 6f 6d 69 73 65 28 28 65 3d 3e 7b ew Promise((e=>{ 00034430: 74 68 69 73 2e 77 65 62 73 6f 63 6b 65 74 2e 6f this.websocket.o 00034440: 6e 6f 70 65 6e 3d 66 75 6e 63 74 69 6f 6e 28 29 nopen=function() 00034450: 7b 65 28 21 30 29 7d 2c 74 68 69 73 2e 77 65 62 {e(!0)},this.web 00034460: 73 6f 63 6b 65 74 2e 6f 6e 65 72 72 6f 72 3d 66 socket.onerror=f 00034470: 75 6e 63 74 69 6f 6e 28 29 7b 65 28 21 31 29 7d unction(){e(!1)} 00034480: 7d 29 29 29 2c 74 68 69 73 2e 77 65 62 73 6f 63 }))),this.websoc 00034490: 6b 65 74 2e 63 6c 6f 73 65 28 31 65 33 29 7d 29 ket.close(1e3)}) 000344a0: 29 7d 7d 76 61 72 20 5f 73 3d 66 75 6e 63 74 69 )}}var _s=functi 000344b0: 6f 6e 28 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 on(e,t,n,r){retu 000344c0: 72 6e 20 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f rn new(n||(n=Pro 000344d0: 6d 69 73 65 29 29 28 28 66 75 6e 63 74 69 6f 6e mise))((function 000344e0: 28 6f 2c 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 (o,i){function a 000344f0: 28 65 29 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 (e){try{l(r.next 00034500: 28 65 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 (e))}catch(e){i( 00034510: 65 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 e)}}function s(e 00034520: 29 7b 74 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 ){try{l(r.throw( 00034530: 65 29 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 e))}catch(e){i(e 00034540: 29 7d 7d 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 )}}function l(e) 00034550: 7b 76 61 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 {var t;e.done?o( 00034560: 65 2e 76 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 e.value):(t=e.va 00034570: 6c 75 65 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 lue,t instanceof 00034580: 20 6e 3f 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 n?t:new n((func 00034590: 74 69 6f 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 tion(e){e(t)}))) 000345a0: 2e 74 68 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d .then(a,s)}l((r= 000345b0: 72 2e 61 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 r.apply(e,t||[]) 000345c0: 29 2e 6e 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f ).next())}))};co 000345d0: 6e 73 74 20 77 73 3d 6e 65 77 20 79 28 41 61 29 nst ws=new y(Aa) 000345e0: 3b 63 6c 61 73 73 20 78 73 20 65 78 74 65 6e 64 ;class xs extend 000345f0: 73 20 67 73 7b 64 65 74 65 63 74 4e 65 74 77 6f s gs{detectNetwo 00034600: 72 6b 28 29 7b 63 6f 6e 73 74 20 65 3d 4f 62 6a rk(){const e=Obj 00034610: 65 63 74 2e 63 72 65 61 74 65 28 6e 75 6c 6c 2c ect.create(null, 00034620: 7b 64 65 74 65 63 74 4e 65 74 77 6f 72 6b 3a 7b {detectNetwork:{ 00034630: 67 65 74 3a 28 29 3d 3e 73 75 70 65 72 2e 64 65 get:()=>super.de 00034640: 74 65 63 74 4e 65 74 77 6f 72 6b 7d 7d 29 3b 72 tectNetwork}});r 00034650: 65 74 75 72 6e 20 5f 73 28 74 68 69 73 2c 76 6f eturn _s(this,vo 00034660: 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e id 0,void 0,(fun 00034670: 63 74 69 6f 6e 2a 28 29 7b 6c 65 74 20 74 3d 74 ction*(){let t=t 00034680: 68 69 73 2e 6e 65 74 77 6f 72 6b 3b 72 65 74 75 his.network;retu 00034690: 72 6e 20 6e 75 6c 6c 3d 3d 74 26 26 28 74 3d 79 rn null==t&&(t=y 000346a0: 69 65 6c 64 20 65 2e 64 65 74 65 63 74 4e 65 74 ield e.detectNet 000346b0: 77 6f 72 6b 2e 63 61 6c 6c 28 74 68 69 73 29 2c work.call(this), 000346c0: 74 7c 7c 77 73 2e 74 68 72 6f 77 45 72 72 6f 72 t||ws.throwError 000346d0: 28 22 6e 6f 20 6e 65 74 77 6f 72 6b 20 64 65 74 ("no network det 000346e0: 65 63 74 65 64 22 2c 79 2e 65 72 72 6f 72 73 2e ected",y.errors. 000346f0: 55 4e 4b 4e 4f 57 4e 5f 45 52 52 4f 52 2c 7b 7d UNKNOWN_ERROR,{} 00034700: 29 2c 6e 75 6c 6c 3d 3d 74 68 69 73 2e 5f 6e 65 ),null==this._ne 00034710: 74 77 6f 72 6b 26 26 28 74 65 28 74 68 69 73 2c twork&&(te(this, 00034720: 22 5f 6e 65 74 77 6f 72 6b 22 2c 74 29 2c 74 68 "_network",t),th 00034730: 69 73 2e 65 6d 69 74 28 22 6e 65 74 77 6f 72 6b is.emit("network 00034740: 22 2c 74 2c 6e 75 6c 6c 29 29 29 2c 74 7d 29 29 ",t,null))),t})) 00034750: 7d 7d 63 6c 61 73 73 20 54 73 20 65 78 74 65 6e }}class Ts exten 00034760: 64 73 20 78 73 7b 63 6f 6e 73 74 72 75 63 74 6f ds xs{constructo 00034770: 72 28 65 2c 74 29 7b 77 73 2e 63 68 65 63 6b 41 r(e,t){ws.checkA 00034780: 62 73 74 72 61 63 74 28 6e 65 77 2e 74 61 72 67 bstract(new.targ 00034790: 65 74 2c 54 73 29 2c 65 3d 6e 65 28 6e 65 77 2e et,Ts),e=ne(new. 000347a0: 74 61 72 67 65 74 2c 22 67 65 74 4e 65 74 77 6f target,"getNetwo 000347b0: 72 6b 22 29 28 65 29 2c 74 3d 6e 65 28 6e 65 77 rk")(e),t=ne(new 000347c0: 2e 74 61 72 67 65 74 2c 22 67 65 74 41 70 69 4b .target,"getApiK 000347d0: 65 79 22 29 28 74 29 3b 73 75 70 65 72 28 6e 65 ey")(t);super(ne 000347e0: 28 6e 65 77 2e 74 61 72 67 65 74 2c 22 67 65 74 (new.target,"get 000347f0: 55 72 6c 22 29 28 65 2c 74 29 2c 65 29 2c 22 73 Url")(e,t),e),"s 00034800: 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 74 tring"==typeof t 00034810: 3f 74 65 28 74 68 69 73 2c 22 61 70 69 4b 65 79 ?te(this,"apiKey 00034820: 22 2c 74 29 3a 6e 75 6c 6c 21 3d 74 26 26 4f 62 ",t):null!=t&&Ob 00034830: 6a 65 63 74 2e 6b 65 79 73 28 74 29 2e 66 6f 72 ject.keys(t).for 00034840: 45 61 63 68 28 28 65 3d 3e 7b 74 65 28 74 68 69 Each((e=>{te(thi 00034850: 73 2c 65 2c 74 5b 65 5d 29 7d 29 29 7d 5f 73 74 s,e,t[e])}))}_st 00034860: 61 72 74 50 65 6e 64 69 6e 67 28 29 7b 77 73 2e artPending(){ws. 00034870: 77 61 72 6e 28 22 57 41 52 4e 49 4e 47 3a 20 41 warn("WARNING: A 00034880: 50 49 20 70 72 6f 76 69 64 65 72 20 64 6f 65 73 PI provider does 00034890: 20 6e 6f 74 20 73 75 70 70 6f 72 74 20 70 65 6e not support pen 000348a0: 64 69 6e 67 20 66 69 6c 74 65 72 73 22 29 7d 69 ding filters")}i 000348b0: 73 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f 75 72 sCommunityResour 000348c0: 63 65 28 29 7b 72 65 74 75 72 6e 21 31 7d 67 65 ce(){return!1}ge 000348d0: 74 53 69 67 6e 65 72 28 65 29 7b 72 65 74 75 72 tSigner(e){retur 000348e0: 6e 20 77 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 n ws.throwError( 000348f0: 22 41 50 49 20 70 72 6f 76 69 64 65 72 20 64 6f "API provider do 00034900: 65 73 20 6e 6f 74 20 73 75 70 70 6f 72 74 20 73 es not support s 00034910: 69 67 6e 69 6e 67 22 2c 79 2e 65 72 72 6f 72 73 igning",y.errors 00034920: 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f 4f 50 45 .UNSUPPORTED_OPE 00034930: 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 74 69 6f RATION,{operatio 00034940: 6e 3a 22 67 65 74 53 69 67 6e 65 72 22 7d 29 7d n:"getSigner"})} 00034950: 6c 69 73 74 41 63 63 6f 75 6e 74 73 28 29 7b 72 listAccounts(){r 00034960: 65 74 75 72 6e 20 50 72 6f 6d 69 73 65 2e 72 65 eturn Promise.re 00034970: 73 6f 6c 76 65 28 5b 5d 29 7d 73 74 61 74 69 63 solve([])}static 00034980: 20 67 65 74 41 70 69 4b 65 79 28 65 29 7b 72 65 getApiKey(e){re 00034990: 74 75 72 6e 20 65 7d 73 74 61 74 69 63 20 67 65 turn e}static ge 000349a0: 74 55 72 6c 28 65 2c 74 29 7b 72 65 74 75 72 6e tUrl(e,t){return 000349b0: 20 77 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 ws.throwError(" 000349c0: 6e 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 65 64 3b not implemented; 000349d0: 20 73 75 62 2d 63 6c 61 73 73 65 73 20 6d 75 73 sub-classes mus 000349e0: 74 20 6f 76 65 72 72 69 64 65 20 67 65 74 55 72 t override getUr 000349f0: 6c 22 2c 79 2e 65 72 72 6f 72 73 2e 4e 4f 54 5f l",y.errors.NOT_ 00034a00: 49 4d 50 4c 45 4d 45 4e 54 45 44 2c 7b 6f 70 65 IMPLEMENTED,{ope 00034a10: 72 61 74 69 6f 6e 3a 22 67 65 74 55 72 6c 22 7d ration:"getUrl"} 00034a20: 29 7d 7d 63 6f 6e 73 74 20 43 73 3d 6e 65 77 20 )}}const Cs=new 00034a30: 79 28 41 61 29 2c 41 73 3d 22 5f 67 67 37 77 53 y(Aa),As="_gg7wS 00034a40: 53 69 30 4b 4d 42 73 64 4b 6e 47 56 66 48 44 75 Si0KMBsdKnGVfHDu 00034a50: 65 71 36 78 4d 42 39 45 6b 43 22 3b 63 6c 61 73 eq6xMB9EkC";clas 00034a60: 73 20 6b 73 20 65 78 74 65 6e 64 73 20 45 73 7b s ks extends Es{ 00034a70: 63 6f 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 29 constructor(e,t) 00034a80: 7b 63 6f 6e 73 74 20 6e 3d 6e 65 77 20 49 73 28 {const n=new Is( 00034a90: 65 2c 74 29 3b 73 75 70 65 72 28 6e 2e 63 6f 6e e,t);super(n.con 00034aa0: 6e 65 63 74 69 6f 6e 2e 75 72 6c 2e 72 65 70 6c nection.url.repl 00034ab0: 61 63 65 28 2f 5e 68 74 74 70 2f 69 2c 22 77 73 ace(/^http/i,"ws 00034ac0: 22 29 2e 72 65 70 6c 61 63 65 28 22 2e 61 6c 63 ").replace(".alc 00034ad0: 68 65 6d 79 61 70 69 2e 22 2c 22 2e 77 73 2e 61 hemyapi.",".ws.a 00034ae0: 6c 63 68 65 6d 79 61 70 69 2e 22 29 2c 6e 2e 6e lchemyapi."),n.n 00034af0: 65 74 77 6f 72 6b 29 2c 74 65 28 74 68 69 73 2c etwork),te(this, 00034b00: 22 61 70 69 4b 65 79 22 2c 6e 2e 61 70 69 4b 65 "apiKey",n.apiKe 00034b10: 79 29 7d 69 73 43 6f 6d 6d 75 6e 69 74 79 52 65 y)}isCommunityRe 00034b20: 73 6f 75 72 63 65 28 29 7b 72 65 74 75 72 6e 20 source(){return 00034b30: 74 68 69 73 2e 61 70 69 4b 65 79 3d 3d 3d 41 73 this.apiKey===As 00034b40: 7d 7d 63 6c 61 73 73 20 49 73 20 65 78 74 65 6e }}class Is exten 00034b50: 64 73 20 54 73 7b 73 74 61 74 69 63 20 67 65 74 ds Ts{static get 00034b60: 57 65 62 53 6f 63 6b 65 74 50 72 6f 76 69 64 65 WebSocketProvide 00034b70: 72 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 6e 65 r(e,t){return ne 00034b80: 77 20 6b 73 28 65 2c 74 29 7d 73 74 61 74 69 63 w ks(e,t)}static 00034b90: 20 67 65 74 41 70 69 4b 65 79 28 65 29 7b 72 65 getApiKey(e){re 00034ba0: 74 75 72 6e 20 6e 75 6c 6c 3d 3d 65 3f 41 73 3a turn null==e?As: 00034bb0: 28 65 26 26 22 73 74 72 69 6e 67 22 21 3d 74 79 (e&&"string"!=ty 00034bc0: 70 65 6f 66 20 65 26 26 43 73 2e 74 68 72 6f 77 peof e&&Cs.throw 00034bd0: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 ArgumentError("i 00034be0: 6e 76 61 6c 69 64 20 61 70 69 4b 65 79 22 2c 22 nvalid apiKey"," 00034bf0: 61 70 69 4b 65 79 22 2c 65 29 2c 65 29 7d 73 74 apiKey",e),e)}st 00034c00: 61 74 69 63 20 67 65 74 55 72 6c 28 65 2c 74 29 atic getUrl(e,t) 00034c10: 7b 6c 65 74 20 6e 3d 6e 75 6c 6c 3b 73 77 69 74 {let n=null;swit 00034c20: 63 68 28 65 2e 6e 61 6d 65 29 7b 63 61 73 65 22 ch(e.name){case" 00034c30: 68 6f 6d 65 73 74 65 61 64 22 3a 6e 3d 22 65 74 homestead":n="et 00034c40: 68 2d 6d 61 69 6e 6e 65 74 2e 61 6c 63 68 65 6d h-mainnet.alchem 00034c50: 79 61 70 69 2e 69 6f 2f 76 32 2f 22 3b 62 72 65 yapi.io/v2/";bre 00034c60: 61 6b 3b 63 61 73 65 22 67 6f 65 72 6c 69 22 3a ak;case"goerli": 00034c70: 6e 3d 22 65 74 68 2d 67 6f 65 72 6c 69 2e 67 2e n="eth-goerli.g. 00034c80: 61 6c 63 68 65 6d 79 2e 63 6f 6d 2f 76 32 2f 22 alchemy.com/v2/" 00034c90: 3b 62 72 65 61 6b 3b 63 61 73 65 22 6d 61 74 69 ;break;case"mati 00034ca0: 63 22 3a 6e 3d 22 70 6f 6c 79 67 6f 6e 2d 6d 61 c":n="polygon-ma 00034cb0: 69 6e 6e 65 74 2e 67 2e 61 6c 63 68 65 6d 79 2e innet.g.alchemy. 00034cc0: 63 6f 6d 2f 76 32 2f 22 3b 62 72 65 61 6b 3b 63 com/v2/";break;c 00034cd0: 61 73 65 22 6d 61 74 69 63 6d 75 6d 22 3a 6e 3d ase"maticmum":n= 00034ce0: 22 70 6f 6c 79 67 6f 6e 2d 6d 75 6d 62 61 69 2e "polygon-mumbai. 00034cf0: 67 2e 61 6c 63 68 65 6d 79 2e 63 6f 6d 2f 76 32 g.alchemy.com/v2 00034d00: 2f 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 61 72 /";break;case"ar 00034d10: 62 69 74 72 75 6d 22 3a 6e 3d 22 61 72 62 2d 6d bitrum":n="arb-m 00034d20: 61 69 6e 6e 65 74 2e 67 2e 61 6c 63 68 65 6d 79 ainnet.g.alchemy 00034d30: 2e 63 6f 6d 2f 76 32 2f 22 3b 62 72 65 61 6b 3b .com/v2/";break; 00034d40: 63 61 73 65 22 61 72 62 69 74 72 75 6d 2d 67 6f case"arbitrum-go 00034d50: 65 72 6c 69 22 3a 6e 3d 22 61 72 62 2d 67 6f 65 erli":n="arb-goe 00034d60: 72 6c 69 2e 67 2e 61 6c 63 68 65 6d 79 2e 63 6f rli.g.alchemy.co 00034d70: 6d 2f 76 32 2f 22 3b 62 72 65 61 6b 3b 63 61 73 m/v2/";break;cas 00034d80: 65 22 6f 70 74 69 6d 69 73 6d 22 3a 6e 3d 22 6f e"optimism":n="o 00034d90: 70 74 2d 6d 61 69 6e 6e 65 74 2e 67 2e 61 6c 63 pt-mainnet.g.alc 00034da0: 68 65 6d 79 2e 63 6f 6d 2f 76 32 2f 22 3b 62 72 hemy.com/v2/";br 00034db0: 65 61 6b 3b 63 61 73 65 22 6f 70 74 69 6d 69 73 eak;case"optimis 00034dc0: 6d 2d 67 6f 65 72 6c 69 22 3a 6e 3d 22 6f 70 74 m-goerli":n="opt 00034dd0: 2d 67 6f 65 72 6c 69 2e 67 2e 61 6c 63 68 65 6d -goerli.g.alchem 00034de0: 79 2e 63 6f 6d 2f 76 32 2f 22 3b 62 72 65 61 6b y.com/v2/";break 00034df0: 3b 64 65 66 61 75 6c 74 3a 43 73 2e 74 68 72 6f ;default:Cs.thro 00034e00: 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 wArgumentError(" 00034e10: 75 6e 73 75 70 70 6f 72 74 65 64 20 6e 65 74 77 unsupported netw 00034e20: 6f 72 6b 22 2c 22 6e 65 74 77 6f 72 6b 22 2c 61 ork","network",a 00034e30: 72 67 75 6d 65 6e 74 73 5b 30 5d 29 7d 72 65 74 rguments[0])}ret 00034e40: 75 72 6e 7b 61 6c 6c 6f 77 47 7a 69 70 3a 21 30 urn{allowGzip:!0 00034e50: 2c 75 72 6c 3a 22 68 74 74 70 73 3a 2f 2f 22 2b ,url:"https://"+ 00034e60: 6e 2b 74 2c 74 68 72 6f 74 74 6c 65 43 61 6c 6c n+t,throttleCall 00034e70: 62 61 63 6b 3a 28 65 2c 6e 29 3d 3e 28 74 3d 3d back:(e,n)=>(t== 00034e80: 3d 41 73 26 26 50 61 28 29 2c 50 72 6f 6d 69 73 =As&&Pa(),Promis 00034e90: 65 2e 72 65 73 6f 6c 76 65 28 21 30 29 29 7d 7d e.resolve(!0))}} 00034ea0: 69 73 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f 75 isCommunityResou 00034eb0: 72 63 65 28 29 7b 72 65 74 75 72 6e 20 74 68 69 rce(){return thi 00034ec0: 73 2e 61 70 69 4b 65 79 3d 3d 3d 41 73 7d 7d 63 s.apiKey===As}}c 00034ed0: 6f 6e 73 74 20 4f 73 3d 6e 65 77 20 79 28 41 61 onst Os=new y(Aa 00034ee0: 29 2c 52 73 3d 22 39 66 37 64 39 32 39 62 30 31 ),Rs="9f7d929b01 00034ef0: 38 63 64 66 66 62 33 33 38 35 31 37 65 66 61 30 8cdffb338517efa0 00034f00: 36 66 35 38 33 35 39 65 38 36 66 66 31 66 66 64 6f58359e86ff1ffd 00034f10: 33 35 30 62 63 38 38 39 37 33 38 35 32 33 36 35 350bc88973852365 00034f20: 39 65 37 39 37 32 22 3b 66 75 6e 63 74 69 6f 6e 9e7972";function 00034f30: 20 4e 73 28 65 29 7b 73 77 69 74 63 68 28 65 29 Ns(e){switch(e) 00034f40: 7b 63 61 73 65 22 68 6f 6d 65 73 74 65 61 64 22 {case"homestead" 00034f50: 3a 72 65 74 75 72 6e 22 72 70 63 2e 61 6e 6b 72 :return"rpc.ankr 00034f60: 2e 63 6f 6d 2f 65 74 68 2f 22 3b 63 61 73 65 22 .com/eth/";case" 00034f70: 72 6f 70 73 74 65 6e 22 3a 72 65 74 75 72 6e 22 ropsten":return" 00034f80: 72 70 63 2e 61 6e 6b 72 2e 63 6f 6d 2f 65 74 68 rpc.ankr.com/eth 00034f90: 5f 72 6f 70 73 74 65 6e 2f 22 3b 63 61 73 65 22 _ropsten/";case" 00034fa0: 72 69 6e 6b 65 62 79 22 3a 72 65 74 75 72 6e 22 rinkeby":return" 00034fb0: 72 70 63 2e 61 6e 6b 72 2e 63 6f 6d 2f 65 74 68 rpc.ankr.com/eth 00034fc0: 5f 72 69 6e 6b 65 62 79 2f 22 3b 63 61 73 65 22 _rinkeby/";case" 00034fd0: 67 6f 65 72 6c 69 22 3a 72 65 74 75 72 6e 22 72 goerli":return"r 00034fe0: 70 63 2e 61 6e 6b 72 2e 63 6f 6d 2f 65 74 68 5f pc.ankr.com/eth_ 00034ff0: 67 6f 65 72 6c 69 2f 22 3b 63 61 73 65 22 6d 61 goerli/";case"ma 00035000: 74 69 63 22 3a 72 65 74 75 72 6e 22 72 70 63 2e tic":return"rpc. 00035010: 61 6e 6b 72 2e 63 6f 6d 2f 70 6f 6c 79 67 6f 6e ankr.com/polygon 00035020: 2f 22 3b 63 61 73 65 22 61 72 62 69 74 72 75 6d /";case"arbitrum 00035030: 22 3a 72 65 74 75 72 6e 22 72 70 63 2e 61 6e 6b ":return"rpc.ank 00035040: 72 2e 63 6f 6d 2f 61 72 62 69 74 72 75 6d 2f 22 r.com/arbitrum/" 00035050: 7d 72 65 74 75 72 6e 20 4f 73 2e 74 68 72 6f 77 }return Os.throw 00035060: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 ArgumentError("u 00035070: 6e 73 75 70 70 6f 72 74 65 64 20 6e 65 74 77 6f nsupported netwo 00035080: 72 6b 22 2c 22 6e 61 6d 65 22 2c 65 29 7d 63 6c rk","name",e)}cl 00035090: 61 73 73 20 50 73 20 65 78 74 65 6e 64 73 20 54 ass Ps extends T 000350a0: 73 7b 69 73 43 6f 6d 6d 75 6e 69 74 79 52 65 73 s{isCommunityRes 000350b0: 6f 75 72 63 65 28 29 7b 72 65 74 75 72 6e 20 74 ource(){return t 000350c0: 68 69 73 2e 61 70 69 4b 65 79 3d 3d 3d 52 73 7d his.apiKey===Rs} 000350d0: 73 74 61 74 69 63 20 67 65 74 41 70 69 4b 65 79 static getApiKey 000350e0: 28 65 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d (e){return null= 000350f0: 3d 65 3f 52 73 3a 65 7d 73 74 61 74 69 63 20 67 =e?Rs:e}static g 00035100: 65 74 55 72 6c 28 65 2c 74 29 7b 6e 75 6c 6c 3d etUrl(e,t){null= 00035110: 3d 74 26 26 28 74 3d 52 73 29 3b 63 6f 6e 73 74 =t&&(t=Rs);const 00035120: 20 6e 3d 7b 61 6c 6c 6f 77 47 7a 69 70 3a 21 30 n={allowGzip:!0 00035130: 2c 75 72 6c 3a 22 68 74 74 70 73 3a 2f 2f 22 2b ,url:"https://"+ 00035140: 4e 73 28 65 2e 6e 61 6d 65 29 2b 74 2c 74 68 72 Ns(e.name)+t,thr 00035150: 6f 74 74 6c 65 43 61 6c 6c 62 61 63 6b 3a 28 65 ottleCallback:(e 00035160: 2c 6e 29 3d 3e 28 74 2e 61 70 69 4b 65 79 3d 3d ,n)=>(t.apiKey== 00035170: 3d 52 73 26 26 50 61 28 29 2c 50 72 6f 6d 69 73 =Rs&&Pa(),Promis 00035180: 65 2e 72 65 73 6f 6c 76 65 28 21 30 29 29 7d 3b e.resolve(!0))}; 00035190: 72 65 74 75 72 6e 20 6e 75 6c 6c 21 3d 74 2e 70 return null!=t.p 000351a0: 72 6f 6a 65 63 74 53 65 63 72 65 74 26 26 28 6e rojectSecret&&(n 000351b0: 2e 75 73 65 72 3d 22 22 2c 6e 2e 70 61 73 73 77 .user="",n.passw 000351c0: 6f 72 64 3d 74 2e 70 72 6f 6a 65 63 74 53 65 63 ord=t.projectSec 000351d0: 72 65 74 29 2c 6e 7d 7d 76 61 72 20 4d 73 3d 66 ret),n}}var Ms=f 000351e0: 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 2c 72 29 unction(e,t,n,r) 000351f0: 7b 72 65 74 75 72 6e 20 6e 65 77 28 6e 7c 7c 28 {return new(n||( 00035200: 6e 3d 50 72 6f 6d 69 73 65 29 29 28 28 66 75 6e n=Promise))((fun 00035210: 63 74 69 6f 6e 28 6f 2c 69 29 7b 66 75 6e 63 74 ction(o,i){funct 00035220: 69 6f 6e 20 61 28 65 29 7b 74 72 79 7b 6c 28 72 ion a(e){try{l(r 00035230: 2e 6e 65 78 74 28 65 29 29 7d 63 61 74 63 68 28 .next(e))}catch( 00035240: 65 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 69 6f e){i(e)}}functio 00035250: 6e 20 73 28 65 29 7b 74 72 79 7b 6c 28 72 2e 74 n s(e){try{l(r.t 00035260: 68 72 6f 77 28 65 29 29 7d 63 61 74 63 68 28 65 hrow(e))}catch(e 00035270: 29 7b 69 28 65 29 7d 7d 66 75 6e 63 74 69 6f 6e ){i(e)}}function 00035280: 20 6c 28 65 29 7b 76 61 72 20 74 3b 65 2e 64 6f l(e){var t;e.do 00035290: 6e 65 3f 6f 28 65 2e 76 61 6c 75 65 29 3a 28 74 ne?o(e.value):(t 000352a0: 3d 65 2e 76 61 6c 75 65 2c 74 20 69 6e 73 74 61 =e.value,t insta 000352b0: 6e 63 65 6f 66 20 6e 3f 74 3a 6e 65 77 20 6e 28 nceof n?t:new n( 000352c0: 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b 65 28 74 (function(e){e(t 000352d0: 29 7d 29 29 29 2e 74 68 65 6e 28 61 2c 73 29 7d )}))).then(a,s)} 000352e0: 6c 28 28 72 3d 72 2e 61 70 70 6c 79 28 65 2c 74 l((r=r.apply(e,t 000352f0: 7c 7c 5b 5d 29 29 2e 6e 65 78 74 28 29 29 7d 29 ||[])).next())}) 00035300: 29 7d 3b 63 6f 6e 73 74 20 44 73 3d 6e 65 77 20 )};const Ds=new 00035310: 79 28 41 61 29 3b 63 6c 61 73 73 20 4c 73 20 65 y(Aa);class Ls e 00035320: 78 74 65 6e 64 73 20 54 73 7b 73 74 61 74 69 63 xtends Ts{static 00035330: 20 67 65 74 41 70 69 4b 65 79 28 65 29 7b 72 65 getApiKey(e){re 00035340: 74 75 72 6e 20 6e 75 6c 6c 21 3d 65 26 26 44 73 turn null!=e&&Ds 00035350: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 00035360: 72 6f 72 28 22 61 70 69 4b 65 79 20 6e 6f 74 20 ror("apiKey not 00035370: 73 75 70 70 6f 72 74 65 64 20 66 6f 72 20 63 6c supported for cl 00035380: 6f 75 64 66 6c 61 72 65 22 2c 22 61 70 69 4b 65 oudflare","apiKe 00035390: 79 22 2c 65 29 2c 6e 75 6c 6c 7d 73 74 61 74 69 y",e),null}stati 000353a0: 63 20 67 65 74 55 72 6c 28 65 2c 74 29 7b 6c 65 c getUrl(e,t){le 000353b0: 74 20 6e 3d 6e 75 6c 6c 3b 69 66 28 22 68 6f 6d t n=null;if("hom 000353c0: 65 73 74 65 61 64 22 3d 3d 3d 65 2e 6e 61 6d 65 estead"===e.name 000353d0: 29 6e 3d 22 68 74 74 70 73 3a 2f 2f 63 6c 6f 75 )n="https://clou 000353e0: 64 66 6c 61 72 65 2d 65 74 68 2e 63 6f 6d 2f 22 dflare-eth.com/" 000353f0: 3b 65 6c 73 65 20 44 73 2e 74 68 72 6f 77 41 72 ;else Ds.throwAr 00035400: 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 73 gumentError("uns 00035410: 75 70 70 6f 72 74 65 64 20 6e 65 74 77 6f 72 6b upported network 00035420: 22 2c 22 6e 65 74 77 6f 72 6b 22 2c 61 72 67 75 ","network",argu 00035430: 6d 65 6e 74 73 5b 30 5d 29 3b 72 65 74 75 72 6e ments[0]);return 00035440: 20 6e 7d 70 65 72 66 6f 72 6d 28 65 2c 74 29 7b n}perform(e,t){ 00035450: 63 6f 6e 73 74 20 6e 3d 4f 62 6a 65 63 74 2e 63 const n=Object.c 00035460: 72 65 61 74 65 28 6e 75 6c 6c 2c 7b 70 65 72 66 reate(null,{perf 00035470: 6f 72 6d 3a 7b 67 65 74 3a 28 29 3d 3e 73 75 70 orm:{get:()=>sup 00035480: 65 72 2e 70 65 72 66 6f 72 6d 7d 7d 29 3b 72 65 er.perform}});re 00035490: 74 75 72 6e 20 4d 73 28 74 68 69 73 2c 76 6f 69 turn Ms(this,voi 000354a0: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 000354b0: 74 69 6f 6e 2a 28 29 7b 69 66 28 22 67 65 74 42 tion*(){if("getB 000354c0: 6c 6f 63 6b 4e 75 6d 62 65 72 22 3d 3d 3d 65 29 lockNumber"===e) 000354d0: 7b 72 65 74 75 72 6e 28 79 69 65 6c 64 20 6e 2e {return(yield n. 000354e0: 70 65 72 66 6f 72 6d 2e 63 61 6c 6c 28 74 68 69 perform.call(thi 000354f0: 73 2c 22 67 65 74 42 6c 6f 63 6b 22 2c 7b 62 6c s,"getBlock",{bl 00035500: 6f 63 6b 54 61 67 3a 22 6c 61 74 65 73 74 22 7d ockTag:"latest"} 00035510: 29 29 2e 6e 75 6d 62 65 72 7d 72 65 74 75 72 6e )).number}return 00035520: 20 6e 2e 70 65 72 66 6f 72 6d 2e 63 61 6c 6c 28 n.perform.call( 00035530: 74 68 69 73 2c 65 2c 74 29 7d 29 29 7d 7d 76 61 this,e,t)}))}}va 00035540: 72 20 46 73 3d 66 75 6e 63 74 69 6f 6e 28 65 2c r Fs=function(e, 00035550: 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 6e 65 t,n,r){return ne 00035560: 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 65 29 w(n||(n=Promise) 00035570: 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c 69 29 )((function(o,i) 00035580: 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 7b 74 {function a(e){t 00035590: 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 29 7d ry{l(r.next(e))} 000355a0: 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 catch(e){i(e)}}f 000355b0: 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 72 79 unction s(e){try 000355c0: 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 7d 63 {l(r.throw(e))}c 000355d0: 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d 66 75 atch(e){i(e)}}fu 000355e0: 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 72 20 nction l(e){var 000355f0: 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 61 6c t;e.done?o(e.val 00035600: 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 2c 74 ue):(t=e.value,t 00035610: 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f 74 3a instanceof n?t: 00035620: 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 6f 6e 28 new n((function( 00035630: 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 65 6e e){e(t)}))).then 00035640: 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 70 70 (a,s)}l((r=r.app 00035650: 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e 65 78 ly(e,t||[])).nex 00035660: 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 20 55 t())}))};const U 00035670: 73 3d 6e 65 77 20 79 28 41 61 29 3b 66 75 6e 63 s=new y(Aa);func 00035680: 74 69 6f 6e 20 42 73 28 65 29 7b 63 6f 6e 73 74 tion Bs(e){const 00035690: 20 74 3d 7b 7d 3b 66 6f 72 28 6c 65 74 20 6e 20 t={};for(let n 000356a0: 69 6e 20 65 29 7b 69 66 28 6e 75 6c 6c 3d 3d 65 in e){if(null==e 000356b0: 5b 6e 5d 29 63 6f 6e 74 69 6e 75 65 3b 6c 65 74 [n])continue;let 000356c0: 20 72 3d 65 5b 6e 5d 3b 22 74 79 70 65 22 3d 3d r=e[n];"type"== 000356d0: 3d 6e 26 26 30 3d 3d 3d 72 7c 7c 28 72 3d 7b 74 =n&&0===r||(r={t 000356e0: 79 70 65 3a 21 30 2c 67 61 73 4c 69 6d 69 74 3a ype:!0,gasLimit: 000356f0: 21 30 2c 67 61 73 50 72 69 63 65 3a 21 30 2c 6d !0,gasPrice:!0,m 00035700: 61 78 46 65 65 50 65 72 47 73 3a 21 30 2c 6d 61 axFeePerGs:!0,ma 00035710: 78 50 72 69 6f 72 69 74 79 46 65 65 50 65 72 47 xPriorityFeePerG 00035720: 61 73 3a 21 30 2c 6e 6f 6e 63 65 3a 21 30 2c 76 as:!0,nonce:!0,v 00035730: 61 6c 75 65 3a 21 30 7d 5b 6e 5d 3f 44 28 52 28 alue:!0}[n]?D(R( 00035740: 72 29 29 3a 22 61 63 63 65 73 73 4c 69 73 74 22 r)):"accessList" 00035750: 3d 3d 3d 6e 3f 22 5b 22 2b 66 72 28 72 29 2e 6d ===n?"["+fr(r).m 00035760: 61 70 28 28 65 3d 3e 60 7b 61 64 64 72 65 73 73 ap((e=>`{address 00035770: 3a 22 24 7b 65 2e 61 64 64 72 65 73 73 7d 22 2c :"${e.address}", 00035780: 73 74 6f 72 61 67 65 4b 65 79 73 3a 5b 22 24 7b storageKeys:["${ 00035790: 65 2e 73 74 6f 72 61 67 65 4b 65 79 73 2e 6a 6f e.storageKeys.jo 000357a0: 69 6e 28 27 22 2c 22 27 29 7d 22 5d 7d 60 29 29 in('","')}"]}`)) 000357b0: 2e 6a 6f 69 6e 28 22 2c 22 29 2b 22 5d 22 3a 52 .join(",")+"]":R 000357c0: 28 72 29 2c 74 5b 6e 5d 3d 72 29 7d 72 65 74 75 (r),t[n]=r)}retu 000357d0: 72 6e 20 74 7d 66 75 6e 63 74 69 6f 6e 20 6a 73 rn t}function js 000357e0: 28 65 29 7b 69 66 28 30 3d 3d 65 2e 73 74 61 74 (e){if(0==e.stat 000357f0: 75 73 26 26 28 22 4e 6f 20 72 65 63 6f 72 64 73 us&&("No records 00035800: 20 66 6f 75 6e 64 22 3d 3d 3d 65 2e 6d 65 73 73 found"===e.mess 00035810: 61 67 65 7c 7c 22 4e 6f 20 74 72 61 6e 73 61 63 age||"No transac 00035820: 74 69 6f 6e 73 20 66 6f 75 6e 64 22 3d 3d 3d 65 tions found"===e 00035830: 2e 6d 65 73 73 61 67 65 29 29 72 65 74 75 72 6e .message))return 00035840: 20 65 2e 72 65 73 75 6c 74 3b 69 66 28 31 21 3d e.result;if(1!= 00035850: 65 2e 73 74 61 74 75 73 7c 7c 22 73 74 72 69 6e e.status||"strin 00035860: 67 22 21 3d 74 79 70 65 6f 66 20 65 2e 6d 65 73 g"!=typeof e.mes 00035870: 73 61 67 65 7c 7c 21 65 2e 6d 65 73 73 61 67 65 sage||!e.message 00035880: 2e 6d 61 74 63 68 28 2f 5e 4f 4b 2f 29 29 7b 63 .match(/^OK/)){c 00035890: 6f 6e 73 74 20 74 3d 6e 65 77 20 45 72 72 6f 72 onst t=new Error 000358a0: 28 22 69 6e 76 61 6c 69 64 20 72 65 73 70 6f 6e ("invalid respon 000358b0: 73 65 22 29 3b 74 68 72 6f 77 20 74 2e 72 65 73 se");throw t.res 000358c0: 75 6c 74 3d 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 ult=JSON.stringi 000358d0: 66 79 28 65 29 2c 28 65 2e 72 65 73 75 6c 74 7c fy(e),(e.result| 000358e0: 7c 22 22 29 2e 74 6f 4c 6f 77 65 72 43 61 73 65 |"").toLowerCase 000358f0: 28 29 2e 69 6e 64 65 78 4f 66 28 22 72 61 74 65 ().indexOf("rate 00035900: 20 6c 69 6d 69 74 22 29 3e 3d 30 26 26 28 74 2e limit")>=0&&(t. 00035910: 74 68 72 6f 74 74 6c 65 52 65 74 72 79 3d 21 30 throttleRetry=!0 00035920: 29 2c 74 7d 72 65 74 75 72 6e 20 65 2e 72 65 73 ),t}return e.res 00035930: 75 6c 74 7d 66 75 6e 63 74 69 6f 6e 20 7a 73 28 ult}function zs( 00035940: 65 29 7b 69 66 28 65 26 26 30 3d 3d 65 2e 73 74 e){if(e&&0==e.st 00035950: 61 74 75 73 26 26 22 4e 4f 54 4f 4b 22 3d 3d 65 atus&&"NOTOK"==e 00035960: 2e 6d 65 73 73 61 67 65 26 26 28 65 2e 72 65 73 .message&&(e.res 00035970: 75 6c 74 7c 7c 22 22 29 2e 74 6f 4c 6f 77 65 72 ult||"").toLower 00035980: 43 61 73 65 28 29 2e 69 6e 64 65 78 4f 66 28 22 Case().indexOf(" 00035990: 72 61 74 65 20 6c 69 6d 69 74 22 29 3e 3d 30 29 rate limit")>=0) 000359a0: 7b 63 6f 6e 73 74 20 74 3d 6e 65 77 20 45 72 72 {const t=new Err 000359b0: 6f 72 28 22 74 68 72 6f 74 74 6c 65 64 20 72 65 or("throttled re 000359c0: 73 70 6f 6e 73 65 22 29 3b 74 68 72 6f 77 20 74 sponse");throw t 000359d0: 2e 72 65 73 75 6c 74 3d 4a 53 4f 4e 2e 73 74 72 .result=JSON.str 000359e0: 69 6e 67 69 66 79 28 65 29 2c 74 2e 74 68 72 6f ingify(e),t.thro 000359f0: 74 74 6c 65 52 65 74 72 79 3d 21 30 2c 74 7d 69 ttleRetry=!0,t}i 00035a00: 66 28 22 32 2e 30 22 21 3d 65 2e 6a 73 6f 6e 72 f("2.0"!=e.jsonr 00035a10: 70 63 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 77 20 pc){const t=new 00035a20: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 72 Error("invalid r 00035a30: 65 73 70 6f 6e 73 65 22 29 3b 74 68 72 6f 77 20 esponse");throw 00035a40: 74 2e 72 65 73 75 6c 74 3d 4a 53 4f 4e 2e 73 74 t.result=JSON.st 00035a50: 72 69 6e 67 69 66 79 28 65 29 2c 74 7d 69 66 28 ringify(e),t}if( 00035a60: 65 2e 65 72 72 6f 72 29 7b 63 6f 6e 73 74 20 74 e.error){const t 00035a70: 3d 6e 65 77 20 45 72 72 6f 72 28 65 2e 65 72 72 =new Error(e.err 00035a80: 6f 72 2e 6d 65 73 73 61 67 65 7c 7c 22 75 6e 6b or.message||"unk 00035a90: 6e 6f 77 6e 20 65 72 72 6f 72 22 29 3b 74 68 72 nown error");thr 00035aa0: 6f 77 20 65 2e 65 72 72 6f 72 2e 63 6f 64 65 26 ow e.error.code& 00035ab0: 26 28 74 2e 63 6f 64 65 3d 65 2e 65 72 72 6f 72 &(t.code=e.error 00035ac0: 2e 63 6f 64 65 29 2c 65 2e 65 72 72 6f 72 2e 64 .code),e.error.d 00035ad0: 61 74 61 26 26 28 74 2e 64 61 74 61 3d 65 2e 65 ata&&(t.data=e.e 00035ae0: 72 72 6f 72 2e 64 61 74 61 29 2c 74 7d 72 65 74 rror.data),t}ret 00035af0: 75 72 6e 20 65 2e 72 65 73 75 6c 74 7d 66 75 6e urn e.result}fun 00035b00: 63 74 69 6f 6e 20 47 73 28 65 29 7b 69 66 28 22 ction Gs(e){if(" 00035b10: 70 65 6e 64 69 6e 67 22 3d 3d 3d 65 29 74 68 72 pending"===e)thr 00035b20: 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 70 65 ow new Error("pe 00035b30: 6e 64 69 6e 67 20 6e 6f 74 20 73 75 70 70 6f 72 nding not suppor 00035b40: 74 65 64 22 29 3b 72 65 74 75 72 6e 22 6c 61 74 ted");return"lat 00035b50: 65 73 74 22 3d 3d 3d 65 3f 65 3a 70 61 72 73 65 est"===e?e:parse 00035b60: 49 6e 74 28 65 2e 73 75 62 73 74 72 69 6e 67 28 Int(e.substring( 00035b70: 32 29 2c 31 36 29 7d 66 75 6e 63 74 69 6f 6e 20 2),16)}function 00035b80: 48 73 28 65 2c 74 2c 6e 29 7b 69 66 28 22 63 61 Hs(e,t,n){if("ca 00035b90: 6c 6c 22 3d 3d 3d 65 26 26 74 2e 63 6f 64 65 3d ll"===e&&t.code= 00035ba0: 3d 3d 79 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 ==y.errors.SERVE 00035bb0: 52 5f 45 52 52 4f 52 29 7b 63 6f 6e 73 74 20 65 R_ERROR){const e 00035bc0: 3d 74 2e 65 72 72 6f 72 3b 69 66 28 65 26 26 28 =t.error;if(e&&( 00035bd0: 65 2e 6d 65 73 73 61 67 65 2e 6d 61 74 63 68 28 e.message.match( 00035be0: 2f 72 65 76 65 72 74 65 64 2f 69 29 7c 7c 65 2e /reverted/i)||e. 00035bf0: 6d 65 73 73 61 67 65 2e 6d 61 74 63 68 28 2f 56 message.match(/V 00035c00: 4d 20 65 78 65 63 75 74 69 6f 6e 20 65 72 72 6f M execution erro 00035c10: 72 2f 69 29 29 29 7b 6c 65 74 20 6e 3d 65 2e 64 r/i))){let n=e.d 00035c20: 61 74 61 3b 69 66 28 6e 26 26 28 6e 3d 22 30 78 ata;if(n&&(n="0x 00035c30: 22 2b 6e 2e 72 65 70 6c 61 63 65 28 2f 5e 2e 2a "+n.replace(/^.* 00035c40: 30 78 2f 69 2c 22 22 29 29 2c 49 28 6e 29 29 72 0x/i,"")),I(n))r 00035c50: 65 74 75 72 6e 20 6e 3b 55 73 2e 74 68 72 6f 77 eturn n;Us.throw 00035c60: 45 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 20 72 Error("missing r 00035c70: 65 76 65 72 74 20 64 61 74 61 20 69 6e 20 63 61 evert data in ca 00035c80: 6c 6c 20 65 78 63 65 70 74 69 6f 6e 22 2c 79 2e ll exception",y. 00035c90: 65 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 errors.CALL_EXCE 00035ca0: 50 54 49 4f 4e 2c 7b 65 72 72 6f 72 3a 74 2c 64 PTION,{error:t,d 00035cb0: 61 74 61 3a 22 30 78 22 7d 29 7d 7d 6c 65 74 20 ata:"0x"})}}let 00035cc0: 72 3d 74 2e 6d 65 73 73 61 67 65 3b 74 68 72 6f r=t.message;thro 00035cd0: 77 20 74 2e 63 6f 64 65 3d 3d 3d 79 2e 65 72 72 w t.code===y.err 00035ce0: 6f 72 73 2e 53 45 52 56 45 52 5f 45 52 52 4f 52 ors.SERVER_ERROR 00035cf0: 26 26 28 74 2e 65 72 72 6f 72 26 26 22 73 74 72 &&(t.error&&"str 00035d00: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 74 2e 65 ing"==typeof t.e 00035d10: 72 72 6f 72 2e 6d 65 73 73 61 67 65 3f 72 3d 74 rror.message?r=t 00035d20: 2e 65 72 72 6f 72 2e 6d 65 73 73 61 67 65 3a 22 .error.message:" 00035d30: 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 string"==typeof 00035d40: 74 2e 62 6f 64 79 3f 72 3d 74 2e 62 6f 64 79 3a t.body?r=t.body: 00035d50: 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f 66 "string"==typeof 00035d60: 20 74 2e 72 65 73 70 6f 6e 73 65 54 65 78 74 26 t.responseText& 00035d70: 26 28 72 3d 74 2e 72 65 73 70 6f 6e 73 65 54 65 &(r=t.responseTe 00035d80: 78 74 29 29 2c 72 3d 28 72 7c 7c 22 22 29 2e 74 xt)),r=(r||"").t 00035d90: 6f 4c 6f 77 65 72 43 61 73 65 28 29 2c 72 2e 6d oLowerCase(),r.m 00035da0: 61 74 63 68 28 2f 69 6e 73 75 66 66 69 63 69 65 atch(/insufficie 00035db0: 6e 74 20 66 75 6e 64 73 2f 29 26 26 55 73 2e 74 nt funds/)&&Us.t 00035dc0: 68 72 6f 77 45 72 72 6f 72 28 22 69 6e 73 75 66 hrowError("insuf 00035dd0: 66 69 63 69 65 6e 74 20 66 75 6e 64 73 20 66 6f ficient funds fo 00035de0: 72 20 69 6e 74 72 69 6e 73 69 63 20 74 72 61 6e r intrinsic tran 00035df0: 73 61 63 74 69 6f 6e 20 63 6f 73 74 22 2c 79 2e saction cost",y. 00035e00: 65 72 72 6f 72 73 2e 49 4e 53 55 46 46 49 43 49 errors.INSUFFICI 00035e10: 45 4e 54 5f 46 55 4e 44 53 2c 7b 65 72 72 6f 72 ENT_FUNDS,{error 00035e20: 3a 74 2c 6d 65 74 68 6f 64 3a 65 2c 74 72 61 6e :t,method:e,tran 00035e30: 73 61 63 74 69 6f 6e 3a 6e 7d 29 2c 72 2e 6d 61 saction:n}),r.ma 00035e40: 74 63 68 28 2f 73 61 6d 65 20 68 61 73 68 20 77 tch(/same hash w 00035e50: 61 73 20 61 6c 72 65 61 64 79 20 69 6d 70 6f 72 as already impor 00035e60: 74 65 64 7c 74 72 61 6e 73 61 63 74 69 6f 6e 20 ted|transaction 00035e70: 6e 6f 6e 63 65 20 69 73 20 74 6f 6f 20 6c 6f 77 nonce is too low 00035e80: 7c 6e 6f 6e 63 65 20 74 6f 6f 20 6c 6f 77 2f 29 |nonce too low/) 00035e90: 26 26 55 73 2e 74 68 72 6f 77 45 72 72 6f 72 28 &&Us.throwError( 00035ea0: 22 6e 6f 6e 63 65 20 68 61 73 20 61 6c 72 65 61 "nonce has alrea 00035eb0: 64 79 20 62 65 65 6e 20 75 73 65 64 22 2c 79 2e dy been used",y. 00035ec0: 65 72 72 6f 72 73 2e 4e 4f 4e 43 45 5f 45 58 50 errors.NONCE_EXP 00035ed0: 49 52 45 44 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 IRED,{error:t,me 00035ee0: 74 68 6f 64 3a 65 2c 74 72 61 6e 73 61 63 74 69 thod:e,transacti 00035ef0: 6f 6e 3a 6e 7d 29 2c 72 2e 6d 61 74 63 68 28 2f on:n}),r.match(/ 00035f00: 61 6e 6f 74 68 65 72 20 74 72 61 6e 73 61 63 74 another transact 00035f10: 69 6f 6e 20 77 69 74 68 20 73 61 6d 65 20 6e 6f ion with same no 00035f20: 6e 63 65 2f 29 26 26 55 73 2e 74 68 72 6f 77 45 nce/)&&Us.throwE 00035f30: 72 72 6f 72 28 22 72 65 70 6c 61 63 65 6d 65 6e rror("replacemen 00035f40: 74 20 66 65 65 20 74 6f 6f 20 6c 6f 77 22 2c 79 t fee too low",y 00035f50: 2e 65 72 72 6f 72 73 2e 52 45 50 4c 41 43 45 4d .errors.REPLACEM 00035f60: 45 4e 54 5f 55 4e 44 45 52 50 52 49 43 45 44 2c ENT_UNDERPRICED, 00035f70: 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 68 6f 64 3a {error:t,method: 00035f80: 65 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 6e 7d e,transaction:n} 00035f90: 29 2c 72 2e 6d 61 74 63 68 28 2f 65 78 65 63 75 ),r.match(/execu 00035fa0: 74 69 6f 6e 20 66 61 69 6c 65 64 20 64 75 65 20 tion failed due 00035fb0: 74 6f 20 61 6e 20 65 78 63 65 70 74 69 6f 6e 7c to an exception| 00035fc0: 65 78 65 63 75 74 69 6f 6e 20 72 65 76 65 72 74 execution revert 00035fd0: 65 64 2f 29 26 26 55 73 2e 74 68 72 6f 77 45 72 ed/)&&Us.throwEr 00035fe0: 72 6f 72 28 22 63 61 6e 6e 6f 74 20 65 73 74 69 ror("cannot esti 00035ff0: 6d 61 74 65 20 67 61 73 3b 20 74 72 61 6e 73 61 mate gas; transa 00036000: 63 74 69 6f 6e 20 6d 61 79 20 66 61 69 6c 20 6f ction may fail o 00036010: 72 20 6d 61 79 20 72 65 71 75 69 72 65 20 6d 61 r may require ma 00036020: 6e 75 61 6c 20 67 61 73 20 6c 69 6d 69 74 22 2c nual gas limit", 00036030: 79 2e 65 72 72 6f 72 73 2e 55 4e 50 52 45 44 49 y.errors.UNPREDI 00036040: 43 54 41 42 4c 45 5f 47 41 53 5f 4c 49 4d 49 54 CTABLE_GAS_LIMIT 00036050: 2c 7b 65 72 72 6f 72 3a 74 2c 6d 65 74 68 6f 64 ,{error:t,method 00036060: 3a 65 2c 74 72 61 6e 73 61 63 74 69 6f 6e 3a 6e :e,transaction:n 00036070: 7d 29 2c 74 7d 63 6c 61 73 73 20 56 73 20 65 78 }),t}class Vs ex 00036080: 74 65 6e 64 73 20 72 73 7b 63 6f 6e 73 74 72 75 tends rs{constru 00036090: 63 74 6f 72 28 65 2c 74 29 7b 73 75 70 65 72 28 ctor(e,t){super( 000360a0: 65 29 2c 74 65 28 74 68 69 73 2c 22 62 61 73 65 e),te(this,"base 000360b0: 55 72 6c 22 2c 74 68 69 73 2e 67 65 74 42 61 73 Url",this.getBas 000360c0: 65 55 72 6c 28 29 29 2c 74 65 28 74 68 69 73 2c eUrl()),te(this, 000360d0: 22 61 70 69 4b 65 79 22 2c 74 7c 7c 6e 75 6c 6c "apiKey",t||null 000360e0: 29 7d 67 65 74 42 61 73 65 55 72 6c 28 29 7b 73 )}getBaseUrl(){s 000360f0: 77 69 74 63 68 28 74 68 69 73 2e 6e 65 74 77 6f witch(this.netwo 00036100: 72 6b 3f 74 68 69 73 2e 6e 65 74 77 6f 72 6b 2e rk?this.network. 00036110: 6e 61 6d 65 3a 22 69 6e 76 61 6c 69 64 22 29 7b name:"invalid"){ 00036120: 63 61 73 65 22 68 6f 6d 65 73 74 65 61 64 22 3a case"homestead": 00036130: 72 65 74 75 72 6e 22 68 74 74 70 73 3a 2f 2f 61 return"https://a 00036140: 70 69 2e 65 74 68 65 72 73 63 61 6e 2e 69 6f 22 pi.etherscan.io" 00036150: 3b 63 61 73 65 22 67 6f 65 72 6c 69 22 3a 72 65 ;case"goerli":re 00036160: 74 75 72 6e 22 68 74 74 70 73 3a 2f 2f 61 70 69 turn"https://api 00036170: 2d 67 6f 65 72 6c 69 2e 65 74 68 65 72 73 63 61 -goerli.ethersca 00036180: 6e 2e 69 6f 22 3b 63 61 73 65 22 73 65 70 6f 6c n.io";case"sepol 00036190: 69 61 22 3a 72 65 74 75 72 6e 22 68 74 74 70 73 ia":return"https 000361a0: 3a 2f 2f 61 70 69 2d 73 65 70 6f 6c 69 61 2e 65 ://api-sepolia.e 000361b0: 74 68 65 72 73 63 61 6e 2e 69 6f 22 3b 63 61 73 therscan.io";cas 000361c0: 65 22 6d 61 74 69 63 22 3a 72 65 74 75 72 6e 22 e"matic":return" 000361d0: 68 74 74 70 73 3a 2f 2f 61 70 69 2e 70 6f 6c 79 https://api.poly 000361e0: 67 6f 6e 73 63 61 6e 2e 63 6f 6d 22 3b 63 61 73 gonscan.com";cas 000361f0: 65 22 6d 61 74 69 63 6d 75 6d 22 3a 72 65 74 75 e"maticmum":retu 00036200: 72 6e 22 68 74 74 70 73 3a 2f 2f 61 70 69 2d 74 rn"https://api-t 00036210: 65 73 74 6e 65 74 2e 70 6f 6c 79 67 6f 6e 73 63 estnet.polygonsc 00036220: 61 6e 2e 63 6f 6d 22 3b 63 61 73 65 22 61 72 62 an.com";case"arb 00036230: 69 74 72 75 6d 22 3a 72 65 74 75 72 6e 22 68 74 itrum":return"ht 00036240: 74 70 73 3a 2f 2f 61 70 69 2e 61 72 62 69 73 63 tps://api.arbisc 00036250: 61 6e 2e 69 6f 22 3b 63 61 73 65 22 61 72 62 69 an.io";case"arbi 00036260: 74 72 75 6d 2d 67 6f 65 72 6c 69 22 3a 72 65 74 trum-goerli":ret 00036270: 75 72 6e 22 68 74 74 70 73 3a 2f 2f 61 70 69 2d urn"https://api- 00036280: 67 6f 65 72 6c 69 2e 61 72 62 69 73 63 61 6e 2e goerli.arbiscan. 00036290: 69 6f 22 3b 63 61 73 65 22 6f 70 74 69 6d 69 73 io";case"optimis 000362a0: 6d 22 3a 72 65 74 75 72 6e 22 68 74 74 70 73 3a m":return"https: 000362b0: 2f 2f 61 70 69 2d 6f 70 74 69 6d 69 73 74 69 63 //api-optimistic 000362c0: 2e 65 74 68 65 72 73 63 61 6e 2e 69 6f 22 3b 63 .etherscan.io";c 000362d0: 61 73 65 22 6f 70 74 69 6d 69 73 6d 2d 67 6f 65 ase"optimism-goe 000362e0: 72 6c 69 22 3a 72 65 74 75 72 6e 22 68 74 74 70 rli":return"http 000362f0: 73 3a 2f 2f 61 70 69 2d 67 6f 65 72 6c 69 2d 6f s://api-goerli-o 00036300: 70 74 69 6d 69 73 74 69 63 2e 65 74 68 65 72 73 ptimistic.ethers 00036310: 63 61 6e 2e 69 6f 22 7d 72 65 74 75 72 6e 20 55 can.io"}return U 00036320: 73 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 s.throwArgumentE 00036330: 72 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 74 65 rror("unsupporte 00036340: 64 20 6e 65 74 77 6f 72 6b 22 2c 22 6e 65 74 77 d network","netw 00036350: 6f 72 6b 22 2c 74 68 69 73 2e 6e 65 74 77 6f 72 ork",this.networ 00036360: 6b 2e 6e 61 6d 65 29 7d 67 65 74 55 72 6c 28 65 k.name)}getUrl(e 00036370: 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 4f 62 6a 65 ,t){const n=Obje 00036380: 63 74 2e 6b 65 79 73 28 74 29 2e 72 65 64 75 63 ct.keys(t).reduc 00036390: 65 28 28 28 65 2c 6e 29 3d 3e 7b 63 6f 6e 73 74 e(((e,n)=>{const 000363a0: 20 72 3d 74 5b 6e 5d 3b 72 65 74 75 72 6e 20 6e r=t[n];return n 000363b0: 75 6c 6c 21 3d 72 26 26 28 65 2b 3d 60 26 24 7b ull!=r&&(e+=`&${ 000363c0: 6e 7d 3d 24 7b 72 7d 60 29 2c 65 7d 29 2c 22 22 n}=${r}`),e}),"" 000363d0: 29 2c 72 3d 74 68 69 73 2e 61 70 69 4b 65 79 3f ),r=this.apiKey? 000363e0: 60 26 61 70 69 6b 65 79 3d 24 7b 74 68 69 73 2e `&apikey=${this. 000363f0: 61 70 69 4b 65 79 7d 60 3a 22 22 3b 72 65 74 75 apiKey}`:"";retu 00036400: 72 6e 60 24 7b 74 68 69 73 2e 62 61 73 65 55 72 rn`${this.baseUr 00036410: 6c 7d 2f 61 70 69 3f 6d 6f 64 75 6c 65 3d 24 7b l}/api?module=${ 00036420: 65 7d 24 7b 6e 7d 24 7b 72 7d 60 7d 67 65 74 50 e}${n}${r}`}getP 00036430: 6f 73 74 55 72 6c 28 29 7b 72 65 74 75 72 6e 60 ostUrl(){return` 00036440: 24 7b 74 68 69 73 2e 62 61 73 65 55 72 6c 7d 2f ${this.baseUrl}/ 00036450: 61 70 69 60 7d 67 65 74 50 6f 73 74 44 61 74 61 api`}getPostData 00036460: 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 74 2e 6d (e,t){return t.m 00036470: 6f 64 75 6c 65 3d 65 2c 74 2e 61 70 69 6b 65 79 odule=e,t.apikey 00036480: 3d 74 68 69 73 2e 61 70 69 4b 65 79 2c 74 7d 66 =this.apiKey,t}f 00036490: 65 74 63 68 28 65 2c 74 2c 6e 29 7b 72 65 74 75 etch(e,t,n){retu 000364a0: 72 6e 20 46 73 28 74 68 69 73 2c 76 6f 69 64 20 rn Fs(this,void 000364b0: 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 0,void 0,(functi 000364c0: 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 72 3d 6e 3f on*(){const r=n? 000364d0: 74 68 69 73 2e 67 65 74 50 6f 73 74 55 72 6c 28 this.getPostUrl( 000364e0: 29 3a 74 68 69 73 2e 67 65 74 55 72 6c 28 65 2c ):this.getUrl(e, 000364f0: 74 29 2c 6f 3d 6e 3f 74 68 69 73 2e 67 65 74 50 t),o=n?this.getP 00036500: 6f 73 74 44 61 74 61 28 65 2c 74 29 3a 6e 75 6c ostData(e,t):nul 00036510: 6c 2c 69 3d 22 70 72 6f 78 79 22 3d 3d 3d 65 3f l,i="proxy"===e? 00036520: 7a 73 3a 6a 73 3b 74 68 69 73 2e 65 6d 69 74 28 zs:js;this.emit( 00036530: 22 64 65 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a "debug",{action: 00036540: 22 72 65 71 75 65 73 74 22 2c 72 65 71 75 65 73 "request",reques 00036550: 74 3a 72 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 t:r,provider:thi 00036560: 73 7d 29 3b 63 6f 6e 73 74 20 61 3d 7b 75 72 6c s});const a={url 00036570: 3a 72 2c 74 68 72 6f 74 74 6c 65 53 6c 6f 74 49 :r,throttleSlotI 00036580: 6e 74 65 72 76 61 6c 3a 31 65 33 2c 74 68 72 6f nterval:1e3,thro 00036590: 74 74 6c 65 43 61 6c 6c 62 61 63 6b 3a 28 65 2c ttleCallback:(e, 000365a0: 74 29 3d 3e 28 74 68 69 73 2e 69 73 43 6f 6d 6d t)=>(this.isComm 000365b0: 75 6e 69 74 79 52 65 73 6f 75 72 63 65 28 29 26 unityResource()& 000365c0: 26 50 61 28 29 2c 50 72 6f 6d 69 73 65 2e 72 65 &Pa(),Promise.re 000365d0: 73 6f 6c 76 65 28 21 30 29 29 7d 3b 6c 65 74 20 solve(!0))};let 000365e0: 73 3d 6e 75 6c 6c 3b 6f 26 26 28 61 2e 68 65 61 s=null;o&&(a.hea 000365f0: 64 65 72 73 3d 7b 22 63 6f 6e 74 65 6e 74 2d 74 ders={"content-t 00036600: 79 70 65 22 3a 22 61 70 70 6c 69 63 61 74 69 6f ype":"applicatio 00036610: 6e 2f 78 2d 77 77 77 2d 66 6f 72 6d 2d 75 72 6c n/x-www-form-url 00036620: 65 6e 63 6f 64 65 64 3b 20 63 68 61 72 73 65 74 encoded; charset 00036630: 3d 55 54 46 2d 38 22 7d 2c 73 3d 4f 62 6a 65 63 =UTF-8"},s=Objec 00036640: 74 2e 6b 65 79 73 28 6f 29 2e 6d 61 70 28 28 65 t.keys(o).map((e 00036650: 3d 3e 60 24 7b 65 7d 3d 24 7b 6f 5b 65 5d 7d 60 =>`${e}=${o[e]}` 00036660: 29 29 2e 6a 6f 69 6e 28 22 26 22 29 29 3b 63 6f )).join("&"));co 00036670: 6e 73 74 20 6c 3d 79 69 65 6c 64 20 77 61 28 61 nst l=yield wa(a 00036680: 2c 73 2c 69 7c 7c 7a 73 29 3b 72 65 74 75 72 6e ,s,i||zs);return 00036690: 20 74 68 69 73 2e 65 6d 69 74 28 22 64 65 62 75 this.emit("debu 000366a0: 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 73 70 g",{action:"resp 000366b0: 6f 6e 73 65 22 2c 72 65 71 75 65 73 74 3a 72 2c onse",request:r, 000366c0: 72 65 73 70 6f 6e 73 65 3a 63 65 28 6c 29 2c 70 response:ce(l),p 000366d0: 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 2c 6c rovider:this}),l 000366e0: 7d 29 29 7d 64 65 74 65 63 74 4e 65 74 77 6f 72 }))}detectNetwor 000366f0: 6b 28 29 7b 72 65 74 75 72 6e 20 46 73 28 74 68 k(){return Fs(th 00036700: 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 is,void 0,void 0 00036710: 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 ,(function*(){re 00036720: 74 75 72 6e 20 74 68 69 73 2e 6e 65 74 77 6f 72 turn this.networ 00036730: 6b 7d 29 29 7d 70 65 72 66 6f 72 6d 28 65 2c 74 k}))}perform(e,t 00036740: 29 7b 63 6f 6e 73 74 20 6e 3d 4f 62 6a 65 63 74 ){const n=Object 00036750: 2e 63 72 65 61 74 65 28 6e 75 6c 6c 2c 7b 70 65 .create(null,{pe 00036760: 72 66 6f 72 6d 3a 7b 67 65 74 3a 28 29 3d 3e 73 rform:{get:()=>s 00036770: 75 70 65 72 2e 70 65 72 66 6f 72 6d 7d 7d 29 3b uper.perform}}); 00036780: 72 65 74 75 72 6e 20 46 73 28 74 68 69 73 2c 76 return Fs(this,v 00036790: 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 oid 0,void 0,(fu 000367a0: 6e 63 74 69 6f 6e 2a 28 29 7b 73 77 69 74 63 68 nction*(){switch 000367b0: 28 65 29 7b 63 61 73 65 22 67 65 74 42 6c 6f 63 (e){case"getBloc 000367c0: 6b 4e 75 6d 62 65 72 22 3a 72 65 74 75 72 6e 20 kNumber":return 000367d0: 74 68 69 73 2e 66 65 74 63 68 28 22 70 72 6f 78 this.fetch("prox 000367e0: 79 22 2c 7b 61 63 74 69 6f 6e 3a 22 65 74 68 5f y",{action:"eth_ 000367f0: 62 6c 6f 63 6b 4e 75 6d 62 65 72 22 7d 29 3b 63 blockNumber"});c 00036800: 61 73 65 22 67 65 74 47 61 73 50 72 69 63 65 22 ase"getGasPrice" 00036810: 3a 72 65 74 75 72 6e 20 74 68 69 73 2e 66 65 74 :return this.fet 00036820: 63 68 28 22 70 72 6f 78 79 22 2c 7b 61 63 74 69 ch("proxy",{acti 00036830: 6f 6e 3a 22 65 74 68 5f 67 61 73 50 72 69 63 65 on:"eth_gasPrice 00036840: 22 7d 29 3b 63 61 73 65 22 67 65 74 42 61 6c 61 "});case"getBala 00036850: 6e 63 65 22 3a 72 65 74 75 72 6e 20 74 68 69 73 nce":return this 00036860: 2e 66 65 74 63 68 28 22 61 63 63 6f 75 6e 74 22 .fetch("account" 00036870: 2c 7b 61 63 74 69 6f 6e 3a 22 62 61 6c 61 6e 63 ,{action:"balanc 00036880: 65 22 2c 61 64 64 72 65 73 73 3a 74 2e 61 64 64 e",address:t.add 00036890: 72 65 73 73 2c 74 61 67 3a 74 2e 62 6c 6f 63 6b ress,tag:t.block 000368a0: 54 61 67 7d 29 3b 63 61 73 65 22 67 65 74 54 72 Tag});case"getTr 000368b0: 61 6e 73 61 63 74 69 6f 6e 43 6f 75 6e 74 22 3a ansactionCount": 000368c0: 72 65 74 75 72 6e 20 74 68 69 73 2e 66 65 74 63 return this.fetc 000368d0: 68 28 22 70 72 6f 78 79 22 2c 7b 61 63 74 69 6f h("proxy",{actio 000368e0: 6e 3a 22 65 74 68 5f 67 65 74 54 72 61 6e 73 61 n:"eth_getTransa 000368f0: 63 74 69 6f 6e 43 6f 75 6e 74 22 2c 61 64 64 72 ctionCount",addr 00036900: 65 73 73 3a 74 2e 61 64 64 72 65 73 73 2c 74 61 ess:t.address,ta 00036910: 67 3a 74 2e 62 6c 6f 63 6b 54 61 67 7d 29 3b 63 g:t.blockTag});c 00036920: 61 73 65 22 67 65 74 43 6f 64 65 22 3a 72 65 74 ase"getCode":ret 00036930: 75 72 6e 20 74 68 69 73 2e 66 65 74 63 68 28 22 urn this.fetch(" 00036940: 70 72 6f 78 79 22 2c 7b 61 63 74 69 6f 6e 3a 22 proxy",{action:" 00036950: 65 74 68 5f 67 65 74 43 6f 64 65 22 2c 61 64 64 eth_getCode",add 00036960: 72 65 73 73 3a 74 2e 61 64 64 72 65 73 73 2c 74 ress:t.address,t 00036970: 61 67 3a 74 2e 62 6c 6f 63 6b 54 61 67 7d 29 3b ag:t.blockTag}); 00036980: 63 61 73 65 22 67 65 74 53 74 6f 72 61 67 65 41 case"getStorageA 00036990: 74 22 3a 72 65 74 75 72 6e 20 74 68 69 73 2e 66 t":return this.f 000369a0: 65 74 63 68 28 22 70 72 6f 78 79 22 2c 7b 61 63 etch("proxy",{ac 000369b0: 74 69 6f 6e 3a 22 65 74 68 5f 67 65 74 53 74 6f tion:"eth_getSto 000369c0: 72 61 67 65 41 74 22 2c 61 64 64 72 65 73 73 3a rageAt",address: 000369d0: 74 2e 61 64 64 72 65 73 73 2c 70 6f 73 69 74 69 t.address,positi 000369e0: 6f 6e 3a 74 2e 70 6f 73 69 74 69 6f 6e 2c 74 61 on:t.position,ta 000369f0: 67 3a 74 2e 62 6c 6f 63 6b 54 61 67 7d 29 3b 63 g:t.blockTag});c 00036a00: 61 73 65 22 73 65 6e 64 54 72 61 6e 73 61 63 74 ase"sendTransact 00036a10: 69 6f 6e 22 3a 72 65 74 75 72 6e 20 74 68 69 73 ion":return this 00036a20: 2e 66 65 74 63 68 28 22 70 72 6f 78 79 22 2c 7b .fetch("proxy",{ 00036a30: 61 63 74 69 6f 6e 3a 22 65 74 68 5f 73 65 6e 64 action:"eth_send 00036a40: 52 61 77 54 72 61 6e 73 61 63 74 69 6f 6e 22 2c RawTransaction", 00036a50: 68 65 78 3a 74 2e 73 69 67 6e 65 64 54 72 61 6e hex:t.signedTran 00036a60: 73 61 63 74 69 6f 6e 7d 2c 21 30 29 2e 63 61 74 saction},!0).cat 00036a70: 63 68 28 28 65 3d 3e 48 73 28 22 73 65 6e 64 54 ch((e=>Hs("sendT 00036a80: 72 61 6e 73 61 63 74 69 6f 6e 22 2c 65 2c 74 2e ransaction",e,t. 00036a90: 73 69 67 6e 65 64 54 72 61 6e 73 61 63 74 69 6f signedTransactio 00036aa0: 6e 29 29 29 3b 63 61 73 65 22 67 65 74 42 6c 6f n)));case"getBlo 00036ab0: 63 6b 22 3a 69 66 28 74 2e 62 6c 6f 63 6b 54 61 ck":if(t.blockTa 00036ac0: 67 29 72 65 74 75 72 6e 20 74 68 69 73 2e 66 65 g)return this.fe 00036ad0: 74 63 68 28 22 70 72 6f 78 79 22 2c 7b 61 63 74 tch("proxy",{act 00036ae0: 69 6f 6e 3a 22 65 74 68 5f 67 65 74 42 6c 6f 63 ion:"eth_getBloc 00036af0: 6b 42 79 4e 75 6d 62 65 72 22 2c 74 61 67 3a 74 kByNumber",tag:t 00036b00: 2e 62 6c 6f 63 6b 54 61 67 2c 62 6f 6f 6c 65 61 .blockTag,boolea 00036b10: 6e 3a 74 2e 69 6e 63 6c 75 64 65 54 72 61 6e 73 n:t.includeTrans 00036b20: 61 63 74 69 6f 6e 73 3f 22 74 72 75 65 22 3a 22 actions?"true":" 00036b30: 66 61 6c 73 65 22 7d 29 3b 74 68 72 6f 77 20 6e false"});throw n 00036b40: 65 77 20 45 72 72 6f 72 28 22 67 65 74 42 6c 6f ew Error("getBlo 00036b50: 63 6b 20 62 79 20 62 6c 6f 63 6b 48 61 73 68 20 ck by blockHash 00036b60: 6e 6f 74 20 69 6d 70 6c 65 6d 65 6e 74 65 64 22 not implemented" 00036b70: 29 3b 63 61 73 65 22 67 65 74 54 72 61 6e 73 61 );case"getTransa 00036b80: 63 74 69 6f 6e 22 3a 72 65 74 75 72 6e 20 74 68 ction":return th 00036b90: 69 73 2e 66 65 74 63 68 28 22 70 72 6f 78 79 22 is.fetch("proxy" 00036ba0: 2c 7b 61 63 74 69 6f 6e 3a 22 65 74 68 5f 67 65 ,{action:"eth_ge 00036bb0: 74 54 72 61 6e 73 61 63 74 69 6f 6e 42 79 48 61 tTransactionByHa 00036bc0: 73 68 22 2c 74 78 68 61 73 68 3a 74 2e 74 72 61 sh",txhash:t.tra 00036bd0: 6e 73 61 63 74 69 6f 6e 48 61 73 68 7d 29 3b 63 nsactionHash});c 00036be0: 61 73 65 22 67 65 74 54 72 61 6e 73 61 63 74 69 ase"getTransacti 00036bf0: 6f 6e 52 65 63 65 69 70 74 22 3a 72 65 74 75 72 onReceipt":retur 00036c00: 6e 20 74 68 69 73 2e 66 65 74 63 68 28 22 70 72 n this.fetch("pr 00036c10: 6f 78 79 22 2c 7b 61 63 74 69 6f 6e 3a 22 65 74 oxy",{action:"et 00036c20: 68 5f 67 65 74 54 72 61 6e 73 61 63 74 69 6f 6e h_getTransaction 00036c30: 52 65 63 65 69 70 74 22 2c 74 78 68 61 73 68 3a Receipt",txhash: 00036c40: 74 2e 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 t.transactionHas 00036c50: 68 7d 29 3b 63 61 73 65 22 63 61 6c 6c 22 3a 7b h});case"call":{ 00036c60: 69 66 28 22 6c 61 74 65 73 74 22 21 3d 3d 74 2e if("latest"!==t. 00036c70: 62 6c 6f 63 6b 54 61 67 29 74 68 72 6f 77 20 6e blockTag)throw n 00036c80: 65 77 20 45 72 72 6f 72 28 22 45 74 68 65 72 73 ew Error("Ethers 00036c90: 63 61 6e 50 72 6f 76 69 64 65 72 20 64 6f 65 73 canProvider does 00036ca0: 20 6e 6f 74 20 73 75 70 70 6f 72 74 20 62 6c 6f not support blo 00036cb0: 63 6b 54 61 67 20 66 6f 72 20 63 61 6c 6c 22 29 ckTag for call") 00036cc0: 3b 63 6f 6e 73 74 20 65 3d 42 73 28 74 2e 74 72 ;const e=Bs(t.tr 00036cd0: 61 6e 73 61 63 74 69 6f 6e 29 3b 65 2e 6d 6f 64 ansaction);e.mod 00036ce0: 75 6c 65 3d 22 70 72 6f 78 79 22 2c 65 2e 61 63 ule="proxy",e.ac 00036cf0: 74 69 6f 6e 3d 22 65 74 68 5f 63 61 6c 6c 22 3b tion="eth_call"; 00036d00: 74 72 79 7b 72 65 74 75 72 6e 20 79 69 65 6c 64 try{return yield 00036d10: 20 74 68 69 73 2e 66 65 74 63 68 28 22 70 72 6f this.fetch("pro 00036d20: 78 79 22 2c 65 2c 21 30 29 7d 63 61 74 63 68 28 xy",e,!0)}catch( 00036d30: 65 29 7b 72 65 74 75 72 6e 20 48 73 28 22 63 61 e){return Hs("ca 00036d40: 6c 6c 22 2c 65 2c 74 2e 74 72 61 6e 73 61 63 74 ll",e,t.transact 00036d50: 69 6f 6e 29 7d 7d 63 61 73 65 22 65 73 74 69 6d ion)}}case"estim 00036d60: 61 74 65 47 61 73 22 3a 7b 63 6f 6e 73 74 20 65 ateGas":{const e 00036d70: 3d 42 73 28 74 2e 74 72 61 6e 73 61 63 74 69 6f =Bs(t.transactio 00036d80: 6e 29 3b 65 2e 6d 6f 64 75 6c 65 3d 22 70 72 6f n);e.module="pro 00036d90: 78 79 22 2c 65 2e 61 63 74 69 6f 6e 3d 22 65 74 xy",e.action="et 00036da0: 68 5f 65 73 74 69 6d 61 74 65 47 61 73 22 3b 74 h_estimateGas";t 00036db0: 72 79 7b 72 65 74 75 72 6e 20 79 69 65 6c 64 20 ry{return yield 00036dc0: 74 68 69 73 2e 66 65 74 63 68 28 22 70 72 6f 78 this.fetch("prox 00036dd0: 79 22 2c 65 2c 21 30 29 7d 63 61 74 63 68 28 65 y",e,!0)}catch(e 00036de0: 29 7b 72 65 74 75 72 6e 20 48 73 28 22 65 73 74 ){return Hs("est 00036df0: 69 6d 61 74 65 47 61 73 22 2c 65 2c 74 2e 74 72 imateGas",e,t.tr 00036e00: 61 6e 73 61 63 74 69 6f 6e 29 7d 7d 63 61 73 65 ansaction)}}case 00036e10: 22 67 65 74 4c 6f 67 73 22 3a 7b 63 6f 6e 73 74 "getLogs":{const 00036e20: 20 65 3d 7b 61 63 74 69 6f 6e 3a 22 67 65 74 4c e={action:"getL 00036e30: 6f 67 73 22 7d 3b 69 66 28 74 2e 66 69 6c 74 65 ogs"};if(t.filte 00036e40: 72 2e 66 72 6f 6d 42 6c 6f 63 6b 26 26 28 65 2e r.fromBlock&&(e. 00036e50: 66 72 6f 6d 42 6c 6f 63 6b 3d 47 73 28 74 2e 66 fromBlock=Gs(t.f 00036e60: 69 6c 74 65 72 2e 66 72 6f 6d 42 6c 6f 63 6b 29 ilter.fromBlock) 00036e70: 29 2c 74 2e 66 69 6c 74 65 72 2e 74 6f 42 6c 6f ),t.filter.toBlo 00036e80: 63 6b 26 26 28 65 2e 74 6f 42 6c 6f 63 6b 3d 47 ck&&(e.toBlock=G 00036e90: 73 28 74 2e 66 69 6c 74 65 72 2e 74 6f 42 6c 6f s(t.filter.toBlo 00036ea0: 63 6b 29 29 2c 74 2e 66 69 6c 74 65 72 2e 61 64 ck)),t.filter.ad 00036eb0: 64 72 65 73 73 26 26 28 65 2e 61 64 64 72 65 73 dress&&(e.addres 00036ec0: 73 3d 74 2e 66 69 6c 74 65 72 2e 61 64 64 72 65 s=t.filter.addre 00036ed0: 73 73 29 2c 74 2e 66 69 6c 74 65 72 2e 74 6f 70 ss),t.filter.top 00036ee0: 69 63 73 26 26 74 2e 66 69 6c 74 65 72 2e 74 6f ics&&t.filter.to 00036ef0: 70 69 63 73 2e 6c 65 6e 67 74 68 3e 30 26 26 28 pics.length>0&&( 00036f00: 74 2e 66 69 6c 74 65 72 2e 74 6f 70 69 63 73 2e t.filter.topics. 00036f10: 6c 65 6e 67 74 68 3e 31 26 26 55 73 2e 74 68 72 length>1&&Us.thr 00036f20: 6f 77 45 72 72 6f 72 28 22 75 6e 73 75 70 70 6f owError("unsuppo 00036f30: 72 74 65 64 20 74 6f 70 69 63 20 63 6f 75 6e 74 rted topic count 00036f40: 22 2c 79 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 ",y.errors.UNSUP 00036f50: 50 4f 52 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e PORTED_OPERATION 00036f60: 2c 7b 74 6f 70 69 63 73 3a 74 2e 66 69 6c 74 65 ,{topics:t.filte 00036f70: 72 2e 74 6f 70 69 63 73 7d 29 2c 31 3d 3d 3d 74 r.topics}),1===t 00036f80: 2e 66 69 6c 74 65 72 2e 74 6f 70 69 63 73 2e 6c .filter.topics.l 00036f90: 65 6e 67 74 68 29 29 7b 63 6f 6e 73 74 20 6e 3d ength)){const n= 00036fa0: 74 2e 66 69 6c 74 65 72 2e 74 6f 70 69 63 73 5b t.filter.topics[ 00036fb0: 30 5d 3b 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 0];"string"==typ 00036fc0: 65 6f 66 20 6e 26 26 36 36 3d 3d 3d 6e 2e 6c 65 eof n&&66===n.le 00036fd0: 6e 67 74 68 7c 7c 55 73 2e 74 68 72 6f 77 45 72 ngth||Us.throwEr 00036fe0: 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 74 65 64 ror("unsupported 00036ff0: 20 74 6f 70 69 63 20 66 6f 72 6d 61 74 22 2c 79 topic format",y 00037000: 2e 65 72 72 6f 72 73 2e 55 4e 53 55 50 50 4f 52 .errors.UNSUPPOR 00037010: 54 45 44 5f 4f 50 45 52 41 54 49 4f 4e 2c 7b 74 TED_OPERATION,{t 00037020: 6f 70 69 63 30 3a 6e 7d 29 2c 65 2e 74 6f 70 69 opic0:n}),e.topi 00037030: 63 30 3d 6e 7d 63 6f 6e 73 74 20 6e 3d 79 69 65 c0=n}const n=yie 00037040: 6c 64 20 74 68 69 73 2e 66 65 74 63 68 28 22 6c ld this.fetch("l 00037050: 6f 67 73 22 2c 65 29 3b 6c 65 74 20 72 3d 7b 7d ogs",e);let r={} 00037060: 3b 66 6f 72 28 6c 65 74 20 65 3d 30 3b 65 3c 6e ;for(let e=0;e<n 00037070: 2e 6c 65 6e 67 74 68 3b 65 2b 2b 29 7b 63 6f 6e .length;e++){con 00037080: 73 74 20 74 3d 6e 5b 65 5d 3b 69 66 28 6e 75 6c st t=n[e];if(nul 00037090: 6c 3d 3d 74 2e 62 6c 6f 63 6b 48 61 73 68 29 7b l==t.blockHash){ 000370a0: 69 66 28 6e 75 6c 6c 3d 3d 72 5b 74 2e 62 6c 6f if(null==r[t.blo 000370b0: 63 6b 4e 75 6d 62 65 72 5d 29 7b 63 6f 6e 73 74 ckNumber]){const 000370c0: 20 65 3d 79 69 65 6c 64 20 74 68 69 73 2e 67 65 e=yield this.ge 000370d0: 74 42 6c 6f 63 6b 28 74 2e 62 6c 6f 63 6b 4e 75 tBlock(t.blockNu 000370e0: 6d 62 65 72 29 3b 65 26 26 28 72 5b 74 2e 62 6c mber);e&&(r[t.bl 000370f0: 6f 63 6b 4e 75 6d 62 65 72 5d 3d 65 2e 68 61 73 ockNumber]=e.has 00037100: 68 29 7d 74 2e 62 6c 6f 63 6b 48 61 73 68 3d 72 h)}t.blockHash=r 00037110: 5b 74 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 5d 7d [t.blockNumber]} 00037120: 7d 72 65 74 75 72 6e 20 6e 7d 63 61 73 65 22 67 }return n}case"g 00037130: 65 74 45 74 68 65 72 50 72 69 63 65 22 3a 72 65 etEtherPrice":re 00037140: 74 75 72 6e 22 68 6f 6d 65 73 74 65 61 64 22 21 turn"homestead"! 00037150: 3d 3d 74 68 69 73 2e 6e 65 74 77 6f 72 6b 2e 6e ==this.network.n 00037160: 61 6d 65 3f 30 3a 70 61 72 73 65 46 6c 6f 61 74 ame?0:parseFloat 00037170: 28 28 79 69 65 6c 64 20 74 68 69 73 2e 66 65 74 ((yield this.fet 00037180: 63 68 28 22 73 74 61 74 73 22 2c 7b 61 63 74 69 ch("stats",{acti 00037190: 6f 6e 3a 22 65 74 68 70 72 69 63 65 22 7d 29 29 on:"ethprice"})) 000371a0: 2e 65 74 68 75 73 64 29 7d 72 65 74 75 72 6e 20 .ethusd)}return 000371b0: 6e 2e 70 65 72 66 6f 72 6d 2e 63 61 6c 6c 28 74 n.perform.call(t 000371c0: 68 69 73 2c 65 2c 74 29 7d 29 29 7d 67 65 74 48 his,e,t)}))}getH 000371d0: 69 73 74 6f 72 79 28 65 2c 74 2c 6e 29 7b 72 65 istory(e,t,n){re 000371e0: 74 75 72 6e 20 46 73 28 74 68 69 73 2c 76 6f 69 turn Fs(this,voi 000371f0: 64 20 30 2c 76 6f 69 64 20 30 2c 28 66 75 6e 63 d 0,void 0,(func 00037200: 74 69 6f 6e 2a 28 29 7b 63 6f 6e 73 74 20 72 3d tion*(){const r= 00037210: 7b 61 63 74 69 6f 6e 3a 22 74 78 6c 69 73 74 22 {action:"txlist" 00037220: 2c 61 64 64 72 65 73 73 3a 79 69 65 6c 64 20 74 ,address:yield t 00037230: 68 69 73 2e 72 65 73 6f 6c 76 65 4e 61 6d 65 28 his.resolveName( 00037240: 65 29 2c 73 74 61 72 74 62 6c 6f 63 6b 3a 6e 75 e),startblock:nu 00037250: 6c 6c 3d 3d 74 3f 30 3a 74 2c 65 6e 64 62 6c 6f ll==t?0:t,endblo 00037260: 63 6b 3a 6e 75 6c 6c 3d 3d 6e 3f 39 39 39 39 39 ck:null==n?99999 00037270: 39 39 39 3a 6e 2c 73 6f 72 74 3a 22 61 73 63 22 999:n,sort:"asc" 00037280: 7d 3b 72 65 74 75 72 6e 28 79 69 65 6c 64 20 74 };return(yield t 00037290: 68 69 73 2e 66 65 74 63 68 28 22 61 63 63 6f 75 his.fetch("accou 000372a0: 6e 74 22 2c 72 29 29 2e 6d 61 70 28 28 65 3d 3e nt",r)).map((e=> 000372b0: 7b 5b 22 63 6f 6e 74 72 61 63 74 41 64 64 72 65 {["contractAddre 000372c0: 73 73 22 2c 22 74 6f 22 5d 2e 66 6f 72 45 61 63 ss","to"].forEac 000372d0: 68 28 28 66 75 6e 63 74 69 6f 6e 28 74 29 7b 22 h((function(t){" 000372e0: 22 3d 3d 65 5b 74 5d 26 26 64 65 6c 65 74 65 20 "==e[t]&&delete 000372f0: 65 5b 74 5d 7d 29 29 2c 6e 75 6c 6c 3d 3d 65 2e e[t]})),null==e. 00037300: 63 72 65 61 74 65 73 26 26 6e 75 6c 6c 21 3d 65 creates&&null!=e 00037310: 2e 63 6f 6e 74 72 61 63 74 41 64 64 72 65 73 73 .contractAddress 00037320: 26 26 28 65 2e 63 72 65 61 74 65 73 3d 65 2e 63 &&(e.creates=e.c 00037330: 6f 6e 74 72 61 63 74 41 64 64 72 65 73 73 29 3b ontractAddress); 00037340: 63 6f 6e 73 74 20 74 3d 74 68 69 73 2e 66 6f 72 const t=this.for 00037350: 6d 61 74 74 65 72 2e 74 72 61 6e 73 61 63 74 69 matter.transacti 00037360: 6f 6e 52 65 73 70 6f 6e 73 65 28 65 29 3b 72 65 onResponse(e);re 00037370: 74 75 72 6e 20 65 2e 74 69 6d 65 53 74 61 6d 70 turn e.timeStamp 00037380: 26 26 28 74 2e 74 69 6d 65 73 74 61 6d 70 3d 70 &&(t.timestamp=p 00037390: 61 72 73 65 49 6e 74 28 65 2e 74 69 6d 65 53 74 arseInt(e.timeSt 000373a0: 61 6d 70 29 29 2c 74 7d 29 29 7d 29 29 7d 69 73 amp)),t}))}))}is 000373b0: 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f 75 72 63 CommunityResourc 000373c0: 65 28 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d e(){return null= 000373d0: 3d 74 68 69 73 2e 61 70 69 4b 65 79 7d 7d 66 75 =this.apiKey}}fu 000373e0: 6e 63 74 69 6f 6e 20 71 73 28 65 29 7b 66 6f 72 nction qs(e){for 000373f0: 28 6c 65 74 20 74 3d 28 65 3d 65 2e 73 6c 69 63 (let t=(e=e.slic 00037400: 65 28 29 29 2e 6c 65 6e 67 74 68 2d 31 3b 74 3e e()).length-1;t> 00037410: 30 3b 74 2d 2d 29 7b 63 6f 6e 73 74 20 6e 3d 4d 0;t--){const n=M 00037420: 61 74 68 2e 66 6c 6f 6f 72 28 4d 61 74 68 2e 72 ath.floor(Math.r 00037430: 61 6e 64 6f 6d 28 29 2a 28 74 2b 31 29 29 2c 72 andom()*(t+1)),r 00037440: 3d 65 5b 74 5d 3b 65 5b 74 5d 3d 65 5b 6e 5d 2c =e[t];e[t]=e[n], 00037450: 65 5b 6e 5d 3d 72 7d 72 65 74 75 72 6e 20 65 7d e[n]=r}return e} 00037460: 76 61 72 20 57 73 3d 66 75 6e 63 74 69 6f 6e 28 var Ws=function( 00037470: 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 e,t,n,r){return 00037480: 6e 65 77 28 6e 7c 7c 28 6e 3d 50 72 6f 6d 69 73 new(n||(n=Promis 00037490: 65 29 29 28 28 66 75 6e 63 74 69 6f 6e 28 6f 2c e))((function(o, 000374a0: 69 29 7b 66 75 6e 63 74 69 6f 6e 20 61 28 65 29 i){function a(e) 000374b0: 7b 74 72 79 7b 6c 28 72 2e 6e 65 78 74 28 65 29 {try{l(r.next(e) 000374c0: 29 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d )}catch(e){i(e)} 000374d0: 7d 66 75 6e 63 74 69 6f 6e 20 73 28 65 29 7b 74 }function s(e){t 000374e0: 72 79 7b 6c 28 72 2e 74 68 72 6f 77 28 65 29 29 ry{l(r.throw(e)) 000374f0: 7d 63 61 74 63 68 28 65 29 7b 69 28 65 29 7d 7d }catch(e){i(e)}} 00037500: 66 75 6e 63 74 69 6f 6e 20 6c 28 65 29 7b 76 61 function l(e){va 00037510: 72 20 74 3b 65 2e 64 6f 6e 65 3f 6f 28 65 2e 76 r t;e.done?o(e.v 00037520: 61 6c 75 65 29 3a 28 74 3d 65 2e 76 61 6c 75 65 alue):(t=e.value 00037530: 2c 74 20 69 6e 73 74 61 6e 63 65 6f 66 20 6e 3f ,t instanceof n? 00037540: 74 3a 6e 65 77 20 6e 28 28 66 75 6e 63 74 69 6f t:new n((functio 00037550: 6e 28 65 29 7b 65 28 74 29 7d 29 29 29 2e 74 68 n(e){e(t)}))).th 00037560: 65 6e 28 61 2c 73 29 7d 6c 28 28 72 3d 72 2e 61 en(a,s)}l((r=r.a 00037570: 70 70 6c 79 28 65 2c 74 7c 7c 5b 5d 29 29 2e 6e pply(e,t||[])).n 00037580: 65 78 74 28 29 29 7d 29 29 7d 3b 63 6f 6e 73 74 ext())}))};const 00037590: 20 4b 73 3d 6e 65 77 20 79 28 41 61 29 3b 66 75 Ks=new y(Aa);fu 000375a0: 6e 63 74 69 6f 6e 20 59 73 28 29 7b 72 65 74 75 nction Ys(){retu 000375b0: 72 6e 28 6e 65 77 20 44 61 74 65 29 2e 67 65 74 rn(new Date).get 000375c0: 54 69 6d 65 28 29 7d 66 75 6e 63 74 69 6f 6e 20 Time()}function 000375d0: 58 73 28 65 29 7b 6c 65 74 20 74 3d 6e 75 6c 6c Xs(e){let t=null 000375e0: 3b 66 6f 72 28 6c 65 74 20 6e 3d 30 3b 6e 3c 65 ;for(let n=0;n<e 000375f0: 2e 6c 65 6e 67 74 68 3b 6e 2b 2b 29 7b 63 6f 6e .length;n++){con 00037600: 73 74 20 72 3d 65 5b 6e 5d 3b 69 66 28 6e 75 6c st r=e[n];if(nul 00037610: 6c 3d 3d 72 29 72 65 74 75 72 6e 20 6e 75 6c 6c l==r)return null 00037620: 3b 74 3f 74 2e 6e 61 6d 65 3d 3d 3d 72 2e 6e 61 ;t?t.name===r.na 00037630: 6d 65 26 26 74 2e 63 68 61 69 6e 49 64 3d 3d 3d me&&t.chainId=== 00037640: 72 2e 63 68 61 69 6e 49 64 26 26 28 74 2e 65 6e r.chainId&&(t.en 00037650: 73 41 64 64 72 65 73 73 3d 3d 3d 72 2e 65 6e 73 sAddress===r.ens 00037660: 41 64 64 72 65 73 73 7c 7c 6e 75 6c 6c 3d 3d 74 Address||null==t 00037670: 2e 65 6e 73 41 64 64 72 65 73 73 26 26 6e 75 6c .ensAddress&&nul 00037680: 6c 3d 3d 72 2e 65 6e 73 41 64 64 72 65 73 73 29 l==r.ensAddress) 00037690: 7c 7c 4b 73 2e 74 68 72 6f 77 41 72 67 75 6d 65 ||Ks.throwArgume 000376a0: 6e 74 45 72 72 6f 72 28 22 70 72 6f 76 69 64 65 ntError("provide 000376b0: 72 20 6d 69 73 6d 61 74 63 68 22 2c 22 6e 65 74 r mismatch","net 000376c0: 77 6f 72 6b 73 22 2c 65 29 3a 74 3d 72 7d 72 65 works",e):t=r}re 000376d0: 74 75 72 6e 20 74 7d 66 75 6e 63 74 69 6f 6e 20 turn t}function 000376e0: 5a 73 28 65 2c 74 29 7b 65 3d 65 2e 73 6c 69 63 Zs(e,t){e=e.slic 000376f0: 65 28 29 2e 73 6f 72 74 28 29 3b 63 6f 6e 73 74 e().sort();const 00037700: 20 6e 3d 4d 61 74 68 2e 66 6c 6f 6f 72 28 65 2e n=Math.floor(e. 00037710: 6c 65 6e 67 74 68 2f 32 29 3b 69 66 28 65 2e 6c length/2);if(e.l 00037720: 65 6e 67 74 68 25 32 29 72 65 74 75 72 6e 20 65 ength%2)return e 00037730: 5b 6e 5d 3b 63 6f 6e 73 74 20 72 3d 65 5b 6e 2d [n];const r=e[n- 00037740: 31 5d 2c 6f 3d 65 5b 6e 5d 3b 72 65 74 75 72 6e 1],o=e[n];return 00037750: 20 6e 75 6c 6c 21 3d 74 26 26 4d 61 74 68 2e 61 null!=t&&Math.a 00037760: 62 73 28 72 2d 6f 29 3e 74 3f 6e 75 6c 6c 3a 28 bs(r-o)>t?null:( 00037770: 72 2b 6f 29 2f 32 7d 66 75 6e 63 74 69 6f 6e 20 r+o)/2}function 00037780: 51 73 28 65 29 7b 69 66 28 6e 75 6c 6c 3d 3d 3d Qs(e){if(null=== 00037790: 65 29 72 65 74 75 72 6e 22 6e 75 6c 6c 22 3b 69 e)return"null";i 000377a0: 66 28 22 6e 75 6d 62 65 72 22 3d 3d 74 79 70 65 f("number"==type 000377b0: 6f 66 20 65 7c 7c 22 62 6f 6f 6c 65 61 6e 22 3d of e||"boolean"= 000377c0: 3d 74 79 70 65 6f 66 20 65 29 72 65 74 75 72 6e =typeof e)return 000377d0: 20 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 JSON.stringify( 000377e0: 65 29 3b 69 66 28 22 73 74 72 69 6e 67 22 3d 3d e);if("string"== 000377f0: 74 79 70 65 6f 66 20 65 29 72 65 74 75 72 6e 20 typeof e)return 00037800: 65 3b 69 66 28 59 2e 69 73 42 69 67 4e 75 6d 62 e;if(Y.isBigNumb 00037810: 65 72 28 65 29 29 72 65 74 75 72 6e 20 65 2e 74 er(e))return e.t 00037820: 6f 53 74 72 69 6e 67 28 29 3b 69 66 28 41 72 72 oString();if(Arr 00037830: 61 79 2e 69 73 41 72 72 61 79 28 65 29 29 72 65 ay.isArray(e))re 00037840: 74 75 72 6e 20 4a 53 4f 4e 2e 73 74 72 69 6e 67 turn JSON.string 00037850: 69 66 79 28 65 2e 6d 61 70 28 28 65 3d 3e 51 73 ify(e.map((e=>Qs 00037860: 28 65 29 29 29 29 3b 69 66 28 22 6f 62 6a 65 63 (e))));if("objec 00037870: 74 22 3d 3d 74 79 70 65 6f 66 20 65 29 7b 63 6f t"==typeof e){co 00037880: 6e 73 74 20 74 3d 4f 62 6a 65 63 74 2e 6b 65 79 nst t=Object.key 00037890: 73 28 65 29 3b 72 65 74 75 72 6e 20 74 2e 73 6f s(e);return t.so 000378a0: 72 74 28 29 2c 22 7b 22 2b 74 2e 6d 61 70 28 28 rt(),"{"+t.map(( 000378b0: 74 3d 3e 7b 6c 65 74 20 6e 3d 65 5b 74 5d 3b 72 t=>{let n=e[t];r 000378c0: 65 74 75 72 6e 20 6e 3d 22 66 75 6e 63 74 69 6f eturn n="functio 000378d0: 6e 22 3d 3d 74 79 70 65 6f 66 20 6e 3f 22 5b 66 n"==typeof n?"[f 000378e0: 75 6e 63 74 69 6f 6e 5d 22 3a 51 73 28 6e 29 2c unction]":Qs(n), 000378f0: 4a 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 74 JSON.stringify(t 00037900: 29 2b 22 3a 22 2b 6e 7d 29 29 2e 6a 6f 69 6e 28 )+":"+n})).join( 00037910: 22 2c 22 29 2b 22 7d 22 7d 74 68 72 6f 77 20 6e ",")+"}"}throw n 00037920: 65 77 20 45 72 72 6f 72 28 22 75 6e 6b 6e 6f 77 ew Error("unknow 00037930: 6e 20 76 61 6c 75 65 20 74 79 70 65 3a 20 22 2b n value type: "+ 00037940: 74 79 70 65 6f 66 20 65 29 7d 6c 65 74 20 4a 73 typeof e)}let Js 00037950: 3d 31 3b 66 75 6e 63 74 69 6f 6e 20 24 73 28 65 =1;function $s(e 00037960: 29 7b 6c 65 74 20 74 3d 6e 75 6c 6c 2c 6e 3d 6e ){let t=null,n=n 00037970: 75 6c 6c 2c 72 3d 6e 65 77 20 50 72 6f 6d 69 73 ull,r=new Promis 00037980: 65 28 28 72 3d 3e 7b 74 3d 66 75 6e 63 74 69 6f e((r=>{t=functio 00037990: 6e 28 29 7b 6e 26 26 28 63 6c 65 61 72 54 69 6d n(){n&&(clearTim 000379a0: 65 6f 75 74 28 6e 29 2c 6e 3d 6e 75 6c 6c 29 2c eout(n),n=null), 000379b0: 72 28 29 7d 2c 6e 3d 73 65 74 54 69 6d 65 6f 75 r()},n=setTimeou 000379c0: 74 28 74 2c 65 29 7d 29 29 3b 72 65 74 75 72 6e t(t,e)}));return 000379d0: 7b 63 61 6e 63 65 6c 3a 74 2c 67 65 74 50 72 6f {cancel:t,getPro 000379e0: 6d 69 73 65 3a 66 75 6e 63 74 69 6f 6e 28 29 7b mise:function(){ 000379f0: 72 65 74 75 72 6e 20 72 7d 2c 77 61 69 74 3a 65 return r},wait:e 00037a00: 3d 3e 28 72 3d 72 2e 74 68 65 6e 28 65 29 2c 72 =>(r=r.then(e),r 00037a10: 29 7d 7d 63 6f 6e 73 74 20 65 6c 3d 5b 79 2e 65 )}}const el=[y.e 00037a20: 72 72 6f 72 73 2e 43 41 4c 4c 5f 45 58 43 45 50 rrors.CALL_EXCEP 00037a30: 54 49 4f 4e 2c 79 2e 65 72 72 6f 72 73 2e 49 4e TION,y.errors.IN 00037a40: 53 55 46 46 49 43 49 45 4e 54 5f 46 55 4e 44 53 SUFFICIENT_FUNDS 00037a50: 2c 79 2e 65 72 72 6f 72 73 2e 4e 4f 4e 43 45 5f ,y.errors.NONCE_ 00037a60: 45 58 50 49 52 45 44 2c 79 2e 65 72 72 6f 72 73 EXPIRED,y.errors 00037a70: 2e 52 45 50 4c 41 43 45 4d 45 4e 54 5f 55 4e 44 .REPLACEMENT_UND 00037a80: 45 52 50 52 49 43 45 44 2c 79 2e 65 72 72 6f 72 ERPRICED,y.error 00037a90: 73 2e 55 4e 50 52 45 44 49 43 54 41 42 4c 45 5f s.UNPREDICTABLE_ 00037aa0: 47 41 53 5f 4c 49 4d 49 54 5d 2c 74 6c 3d 5b 22 GAS_LIMIT],tl=[" 00037ab0: 61 64 64 72 65 73 73 22 2c 22 61 72 67 73 22 2c address","args", 00037ac0: 22 65 72 72 6f 72 41 72 67 73 22 2c 22 65 72 72 "errorArgs","err 00037ad0: 6f 72 53 69 67 6e 61 74 75 72 65 22 2c 22 6d 65 orSignature","me 00037ae0: 74 68 6f 64 22 2c 22 74 72 61 6e 73 61 63 74 69 thod","transacti 00037af0: 6f 6e 22 5d 3b 66 75 6e 63 74 69 6f 6e 20 6e 6c on"];function nl 00037b00: 28 65 2c 74 29 7b 63 6f 6e 73 74 20 6e 3d 7b 77 (e,t){const n={w 00037b10: 65 69 67 68 74 3a 65 2e 77 65 69 67 68 74 7d 3b eight:e.weight}; 00037b20: 72 65 74 75 72 6e 20 4f 62 6a 65 63 74 2e 64 65 return Object.de 00037b30: 66 69 6e 65 50 72 6f 70 65 72 74 79 28 6e 2c 22 fineProperty(n," 00037b40: 70 72 6f 76 69 64 65 72 22 2c 7b 67 65 74 3a 28 provider",{get:( 00037b50: 29 3d 3e 65 2e 70 72 6f 76 69 64 65 72 7d 29 2c )=>e.provider}), 00037b60: 65 2e 73 74 61 72 74 26 26 28 6e 2e 73 74 61 72 e.start&&(n.star 00037b70: 74 3d 65 2e 73 74 61 72 74 29 2c 74 26 26 28 6e t=e.start),t&&(n 00037b80: 2e 64 75 72 61 74 69 6f 6e 3d 74 2d 65 2e 73 74 .duration=t-e.st 00037b90: 61 72 74 29 2c 65 2e 64 6f 6e 65 26 26 28 65 2e art),e.done&&(e. 00037ba0: 65 72 72 6f 72 3f 6e 2e 65 72 72 6f 72 3d 65 2e error?n.error=e. 00037bb0: 65 72 72 6f 72 3a 6e 2e 72 65 73 75 6c 74 3d 65 error:n.result=e 00037bc0: 2e 72 65 73 75 6c 74 7c 7c 6e 75 6c 6c 29 2c 6e .result||null),n 00037bd0: 7d 66 75 6e 63 74 69 6f 6e 20 72 6c 28 65 2c 74 }function rl(e,t 00037be0: 2c 6e 29 7b 6c 65 74 20 72 3d 51 73 3b 73 77 69 ,n){let r=Qs;swi 00037bf0: 74 63 68 28 74 29 7b 63 61 73 65 22 67 65 74 42 tch(t){case"getB 00037c00: 6c 6f 63 6b 4e 75 6d 62 65 72 22 3a 72 65 74 75 lockNumber":retu 00037c10: 72 6e 20 66 75 6e 63 74 69 6f 6e 28 74 29 7b 63 rn function(t){c 00037c20: 6f 6e 73 74 20 6e 3d 74 2e 6d 61 70 28 28 65 3d onst n=t.map((e= 00037c30: 3e 65 2e 72 65 73 75 6c 74 29 29 3b 6c 65 74 20 >e.result));let 00037c40: 72 3d 5a 73 28 74 2e 6d 61 70 28 28 65 3d 3e 65 r=Zs(t.map((e=>e 00037c50: 2e 72 65 73 75 6c 74 29 29 2c 32 29 3b 69 66 28 .result)),2);if( 00037c60: 6e 75 6c 6c 21 3d 72 29 72 65 74 75 72 6e 20 72 null!=r)return r 00037c70: 3d 4d 61 74 68 2e 63 65 69 6c 28 72 29 2c 6e 2e =Math.ceil(r),n. 00037c80: 69 6e 64 65 78 4f 66 28 72 2b 31 29 3e 3d 30 26 indexOf(r+1)>=0& 00037c90: 26 72 2b 2b 2c 72 3e 3d 65 2e 5f 68 69 67 68 65 &r++,r>=e._highe 00037ca0: 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 26 26 28 stBlockNumber&&( 00037cb0: 65 2e 5f 68 69 67 68 65 73 74 42 6c 6f 63 6b 4e e._highestBlockN 00037cc0: 75 6d 62 65 72 3d 72 29 2c 65 2e 5f 68 69 67 68 umber=r),e._high 00037cd0: 65 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 7d 3b estBlockNumber}; 00037ce0: 63 61 73 65 22 67 65 74 47 61 73 50 72 69 63 65 case"getGasPrice 00037cf0: 22 3a 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f ":return functio 00037d00: 6e 28 65 29 7b 63 6f 6e 73 74 20 74 3d 65 2e 6d n(e){const t=e.m 00037d10: 61 70 28 28 65 3d 3e 65 2e 72 65 73 75 6c 74 29 ap((e=>e.result) 00037d20: 29 3b 72 65 74 75 72 6e 20 74 2e 73 6f 72 74 28 );return t.sort( 00037d30: 29 2c 74 5b 4d 61 74 68 2e 66 6c 6f 6f 72 28 74 ),t[Math.floor(t 00037d40: 2e 6c 65 6e 67 74 68 2f 32 29 5d 7d 3b 63 61 73 .length/2)]};cas 00037d50: 65 22 67 65 74 45 74 68 65 72 50 72 69 63 65 22 e"getEtherPrice" 00037d60: 3a 72 65 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e :return function 00037d70: 28 65 29 7b 72 65 74 75 72 6e 20 5a 73 28 65 2e (e){return Zs(e. 00037d80: 6d 61 70 28 28 65 3d 3e 65 2e 72 65 73 75 6c 74 map((e=>e.result 00037d90: 29 29 29 7d 3b 63 61 73 65 22 67 65 74 42 61 6c )))};case"getBal 00037da0: 61 6e 63 65 22 3a 63 61 73 65 22 67 65 74 54 72 ance":case"getTr 00037db0: 61 6e 73 61 63 74 69 6f 6e 43 6f 75 6e 74 22 3a ansactionCount": 00037dc0: 63 61 73 65 22 67 65 74 43 6f 64 65 22 3a 63 61 case"getCode":ca 00037dd0: 73 65 22 67 65 74 53 74 6f 72 61 67 65 41 74 22 se"getStorageAt" 00037de0: 3a 63 61 73 65 22 63 61 6c 6c 22 3a 63 61 73 65 :case"call":case 00037df0: 22 65 73 74 69 6d 61 74 65 47 61 73 22 3a 63 61 "estimateGas":ca 00037e00: 73 65 22 67 65 74 4c 6f 67 73 22 3a 62 72 65 61 se"getLogs":brea 00037e10: 6b 3b 63 61 73 65 22 67 65 74 54 72 61 6e 73 61 k;case"getTransa 00037e20: 63 74 69 6f 6e 22 3a 63 61 73 65 22 67 65 74 54 ction":case"getT 00037e30: 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 65 69 70 ransactionReceip 00037e40: 74 22 3a 72 3d 66 75 6e 63 74 69 6f 6e 28 65 29 t":r=function(e) 00037e50: 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d 3d 65 3f {return null==e? 00037e60: 6e 75 6c 6c 3a 28 28 65 3d 69 65 28 65 29 29 2e null:((e=ie(e)). 00037e70: 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 3d 2d 31 confirmations=-1 00037e80: 2c 51 73 28 65 29 29 7d 3b 62 72 65 61 6b 3b 63 ,Qs(e))};break;c 00037e90: 61 73 65 22 67 65 74 42 6c 6f 63 6b 22 3a 72 3d ase"getBlock":r= 00037ea0: 6e 2e 69 6e 63 6c 75 64 65 54 72 61 6e 73 61 63 n.includeTransac 00037eb0: 74 69 6f 6e 73 3f 66 75 6e 63 74 69 6f 6e 28 65 tions?function(e 00037ec0: 29 7b 72 65 74 75 72 6e 20 6e 75 6c 6c 3d 3d 65 ){return null==e 00037ed0: 3f 6e 75 6c 6c 3a 28 28 65 3d 69 65 28 65 29 29 ?null:((e=ie(e)) 00037ee0: 2e 74 72 61 6e 73 61 63 74 69 6f 6e 73 3d 65 2e .transactions=e. 00037ef0: 74 72 61 6e 73 61 63 74 69 6f 6e 73 2e 6d 61 70 transactions.map 00037f00: 28 28 65 3d 3e 28 28 65 3d 69 65 28 65 29 29 2e ((e=>((e=ie(e)). 00037f10: 63 6f 6e 66 69 72 6d 61 74 69 6f 6e 73 3d 2d 31 confirmations=-1 00037f20: 2c 65 29 29 29 2c 51 73 28 65 29 29 7d 3a 66 75 ,e))),Qs(e))}:fu 00037f30: 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e nction(e){return 00037f40: 20 6e 75 6c 6c 3d 3d 65 3f 6e 75 6c 6c 3a 51 73 null==e?null:Qs 00037f50: 28 65 29 7d 3b 62 72 65 61 6b 3b 64 65 66 61 75 (e)};break;defau 00037f60: 6c 74 3a 74 68 72 6f 77 20 6e 65 77 20 45 72 72 lt:throw new Err 00037f70: 6f 72 28 22 75 6e 6b 6e 6f 77 6e 20 6d 65 74 68 or("unknown meth 00037f80: 6f 64 3a 20 22 2b 74 29 7d 72 65 74 75 72 6e 20 od: "+t)}return 00037f90: 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 function(e,t){re 00037fa0: 74 75 72 6e 20 66 75 6e 63 74 69 6f 6e 28 6e 29 turn function(n) 00037fb0: 7b 63 6f 6e 73 74 20 72 3d 7b 7d 3b 6e 2e 66 6f {const r={};n.fo 00037fc0: 72 45 61 63 68 28 28 74 3d 3e 7b 63 6f 6e 73 74 rEach((t=>{const 00037fd0: 20 6e 3d 65 28 74 2e 72 65 73 75 6c 74 29 3b 72 n=e(t.result);r 00037fe0: 5b 6e 5d 7c 7c 28 72 5b 6e 5d 3d 7b 63 6f 75 6e [n]||(r[n]={coun 00037ff0: 74 3a 30 2c 72 65 73 75 6c 74 3a 74 2e 72 65 73 t:0,result:t.res 00038000: 75 6c 74 7d 29 2c 72 5b 6e 5d 2e 63 6f 75 6e 74 ult}),r[n].count 00038010: 2b 2b 7d 29 29 3b 63 6f 6e 73 74 20 6f 3d 4f 62 ++}));const o=Ob 00038020: 6a 65 63 74 2e 6b 65 79 73 28 72 29 3b 66 6f 72 ject.keys(r);for 00038030: 28 6c 65 74 20 65 3d 30 3b 65 3c 6f 2e 6c 65 6e (let e=0;e<o.len 00038040: 67 74 68 3b 65 2b 2b 29 7b 63 6f 6e 73 74 20 6e gth;e++){const n 00038050: 3d 72 5b 6f 5b 65 5d 5d 3b 69 66 28 6e 2e 63 6f =r[o[e]];if(n.co 00038060: 75 6e 74 3e 3d 74 29 72 65 74 75 72 6e 20 6e 2e unt>=t)return n. 00038070: 72 65 73 75 6c 74 7d 7d 7d 28 72 2c 65 2e 71 75 result}}}(r,e.qu 00038080: 6f 72 75 6d 29 7d 66 75 6e 63 74 69 6f 6e 20 6f orum)}function o 00038090: 6c 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 57 73 l(e,t){return Ws 000380a0: 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 6f 69 (this,void 0,voi 000380b0: 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a 28 29 d 0,(function*() 000380c0: 7b 63 6f 6e 73 74 20 6e 3d 65 2e 70 72 6f 76 69 {const n=e.provi 000380d0: 64 65 72 3b 72 65 74 75 72 6e 20 6e 75 6c 6c 21 der;return null! 000380e0: 3d 6e 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 26 26 =n.blockNumber&& 000380f0: 6e 2e 62 6c 6f 63 6b 4e 75 6d 62 65 72 3e 3d 74 n.blockNumber>=t 00038100: 7c 7c 2d 31 3d 3d 3d 74 3f 6e 3a 78 61 28 28 28 ||-1===t?n:xa((( 00038110: 29 3d 3e 6e 65 77 20 50 72 6f 6d 69 73 65 28 28 )=>new Promise(( 00038120: 28 72 2c 6f 29 3d 3e 7b 73 65 74 54 69 6d 65 6f (r,o)=>{setTimeo 00038130: 75 74 28 28 66 75 6e 63 74 69 6f 6e 28 29 7b 72 ut((function(){r 00038140: 65 74 75 72 6e 20 6e 2e 62 6c 6f 63 6b 4e 75 6d eturn n.blockNum 00038150: 62 65 72 3e 3d 74 3f 72 28 6e 29 3a 65 2e 63 61 ber>=t?r(n):e.ca 00038160: 6e 63 65 6c 6c 65 64 3f 72 28 6e 75 6c 6c 29 3a ncelled?r(null): 00038170: 72 28 76 6f 69 64 20 30 29 7d 29 2c 30 29 7d 29 r(void 0)}),0)}) 00038180: 29 29 2c 7b 6f 6e 63 65 50 6f 6c 6c 3a 6e 7d 29 )),{oncePoll:n}) 00038190: 7d 29 29 7d 66 75 6e 63 74 69 6f 6e 20 69 6c 28 }))}function il( 000381a0: 65 2c 74 2c 6e 2c 72 29 7b 72 65 74 75 72 6e 20 e,t,n,r){return 000381b0: 57 73 28 74 68 69 73 2c 76 6f 69 64 20 30 2c 76 Ws(this,void 0,v 000381c0: 6f 69 64 20 30 2c 28 66 75 6e 63 74 69 6f 6e 2a oid 0,(function* 000381d0: 28 29 7b 6c 65 74 20 6f 3d 65 2e 70 72 6f 76 69 (){let o=e.provi 000381e0: 64 65 72 3b 73 77 69 74 63 68 28 6e 29 7b 63 61 der;switch(n){ca 000381f0: 73 65 22 67 65 74 42 6c 6f 63 6b 4e 75 6d 62 65 se"getBlockNumbe 00038200: 72 22 3a 63 61 73 65 22 67 65 74 47 61 73 50 72 r":case"getGasPr 00038210: 69 63 65 22 3a 72 65 74 75 72 6e 20 6f 5b 6e 5d ice":return o[n] 00038220: 28 29 3b 63 61 73 65 22 67 65 74 45 74 68 65 72 ();case"getEther 00038230: 50 72 69 63 65 22 3a 69 66 28 6f 2e 67 65 74 45 Price":if(o.getE 00038240: 74 68 65 72 50 72 69 63 65 29 72 65 74 75 72 6e therPrice)return 00038250: 20 6f 2e 67 65 74 45 74 68 65 72 50 72 69 63 65 o.getEtherPrice 00038260: 28 29 3b 62 72 65 61 6b 3b 63 61 73 65 22 67 65 ();break;case"ge 00038270: 74 42 61 6c 61 6e 63 65 22 3a 63 61 73 65 22 67 tBalance":case"g 00038280: 65 74 54 72 61 6e 73 61 63 74 69 6f 6e 43 6f 75 etTransactionCou 00038290: 6e 74 22 3a 63 61 73 65 22 67 65 74 43 6f 64 65 nt":case"getCode 000382a0: 22 3a 72 65 74 75 72 6e 20 72 2e 62 6c 6f 63 6b ":return r.block 000382b0: 54 61 67 26 26 49 28 72 2e 62 6c 6f 63 6b 54 61 Tag&&I(r.blockTa 000382c0: 67 29 26 26 28 6f 3d 79 69 65 6c 64 20 6f 6c 28 g)&&(o=yield ol( 000382d0: 65 2c 74 29 29 2c 6f 5b 6e 5d 28 72 2e 61 64 64 e,t)),o[n](r.add 000382e0: 72 65 73 73 2c 72 2e 62 6c 6f 63 6b 54 61 67 7c ress,r.blockTag| 000382f0: 7c 22 6c 61 74 65 73 74 22 29 3b 63 61 73 65 22 |"latest");case" 00038300: 67 65 74 53 74 6f 72 61 67 65 41 74 22 3a 72 65 getStorageAt":re 00038310: 74 75 72 6e 20 72 2e 62 6c 6f 63 6b 54 61 67 26 turn r.blockTag& 00038320: 26 49 28 72 2e 62 6c 6f 63 6b 54 61 67 29 26 26 &I(r.blockTag)&& 00038330: 28 6f 3d 79 69 65 6c 64 20 6f 6c 28 65 2c 74 29 (o=yield ol(e,t) 00038340: 29 2c 6f 2e 67 65 74 53 74 6f 72 61 67 65 41 74 ),o.getStorageAt 00038350: 28 72 2e 61 64 64 72 65 73 73 2c 72 2e 70 6f 73 (r.address,r.pos 00038360: 69 74 69 6f 6e 2c 72 2e 62 6c 6f 63 6b 54 61 67 ition,r.blockTag 00038370: 7c 7c 22 6c 61 74 65 73 74 22 29 3b 63 61 73 65 ||"latest");case 00038380: 22 67 65 74 42 6c 6f 63 6b 22 3a 72 65 74 75 72 "getBlock":retur 00038390: 6e 20 72 2e 62 6c 6f 63 6b 54 61 67 26 26 49 28 n r.blockTag&&I( 000383a0: 72 2e 62 6c 6f 63 6b 54 61 67 29 26 26 28 6f 3d r.blockTag)&&(o= 000383b0: 79 69 65 6c 64 20 6f 6c 28 65 2c 74 29 29 2c 6f yield ol(e,t)),o 000383c0: 5b 72 2e 69 6e 63 6c 75 64 65 54 72 61 6e 73 61 [r.includeTransa 000383d0: 63 74 69 6f 6e 73 3f 22 67 65 74 42 6c 6f 63 6b ctions?"getBlock 000383e0: 57 69 74 68 54 72 61 6e 73 61 63 74 69 6f 6e 73 WithTransactions 000383f0: 22 3a 22 67 65 74 42 6c 6f 63 6b 22 5d 28 72 2e ":"getBlock"](r. 00038400: 62 6c 6f 63 6b 54 61 67 7c 7c 72 2e 62 6c 6f 63 blockTag||r.bloc 00038410: 6b 48 61 73 68 29 3b 63 61 73 65 22 63 61 6c 6c kHash);case"call 00038420: 22 3a 63 61 73 65 22 65 73 74 69 6d 61 74 65 47 ":case"estimateG 00038430: 61 73 22 3a 72 65 74 75 72 6e 20 72 2e 62 6c 6f as":return r.blo 00038440: 63 6b 54 61 67 26 26 49 28 72 2e 62 6c 6f 63 6b ckTag&&I(r.block 00038450: 54 61 67 29 26 26 28 6f 3d 79 69 65 6c 64 20 6f Tag)&&(o=yield o 00038460: 6c 28 65 2c 74 29 29 2c 22 63 61 6c 6c 22 3d 3d l(e,t)),"call"== 00038470: 3d 6e 26 26 72 2e 62 6c 6f 63 6b 54 61 67 3f 6f =n&&r.blockTag?o 00038480: 5b 6e 5d 28 72 2e 74 72 61 6e 73 61 63 74 69 6f [n](r.transactio 00038490: 6e 2c 72 2e 62 6c 6f 63 6b 54 61 67 29 3a 6f 5b n,r.blockTag):o[ 000384a0: 6e 5d 28 72 2e 74 72 61 6e 73 61 63 74 69 6f 6e n](r.transaction 000384b0: 29 3b 63 61 73 65 22 67 65 74 54 72 61 6e 73 61 );case"getTransa 000384c0: 63 74 69 6f 6e 22 3a 63 61 73 65 22 67 65 74 54 ction":case"getT 000384d0: 72 61 6e 73 61 63 74 69 6f 6e 52 65 63 65 69 70 ransactionReceip 000384e0: 74 22 3a 72 65 74 75 72 6e 20 6f 5b 6e 5d 28 72 t":return o[n](r 000384f0: 2e 74 72 61 6e 73 61 63 74 69 6f 6e 48 61 73 68 .transactionHash 00038500: 29 3b 63 61 73 65 22 67 65 74 4c 6f 67 73 22 3a );case"getLogs": 00038510: 7b 6c 65 74 20 6e 3d 72 2e 66 69 6c 74 65 72 3b {let n=r.filter; 00038520: 72 65 74 75 72 6e 28 6e 2e 66 72 6f 6d 42 6c 6f return(n.fromBlo 00038530: 63 6b 26 26 49 28 6e 2e 66 72 6f 6d 42 6c 6f 63 ck&&I(n.fromBloc 00038540: 6b 29 7c 7c 6e 2e 74 6f 42 6c 6f 63 6b 26 26 49 k)||n.toBlock&&I 00038550: 28 6e 2e 74 6f 42 6c 6f 63 6b 29 29 26 26 28 6f (n.toBlock))&&(o 00038560: 3d 79 69 65 6c 64 20 6f 6c 28 65 2c 74 29 29 2c =yield ol(e,t)), 00038570: 6f 2e 67 65 74 4c 6f 67 73 28 6e 29 7d 7d 72 65 o.getLogs(n)}}re 00038580: 74 75 72 6e 20 4b 73 2e 74 68 72 6f 77 45 72 72 turn Ks.throwErr 00038590: 6f 72 28 22 75 6e 6b 6e 6f 77 6e 20 6d 65 74 68 or("unknown meth 000385a0: 6f 64 20 65 72 72 6f 72 22 2c 79 2e 65 72 72 6f od error",y.erro 000385b0: 72 73 2e 55 4e 4b 4e 4f 57 4e 5f 45 52 52 4f 52 rs.UNKNOWN_ERROR 000385c0: 2c 7b 6d 65 74 68 6f 64 3a 6e 2c 70 61 72 61 6d ,{method:n,param 000385d0: 73 3a 72 7d 29 7d 29 29 7d 63 6c 61 73 73 20 61 s:r})}))}class a 000385e0: 6c 20 65 78 74 65 6e 64 73 20 72 73 7b 63 6f 6e l extends rs{con 000385f0: 73 74 72 75 63 74 6f 72 28 65 2c 74 29 7b 30 3d structor(e,t){0= 00038600: 3d 3d 65 2e 6c 65 6e 67 74 68 26 26 4b 73 2e 74 ==e.length&&Ks.t 00038610: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00038620: 72 28 22 6d 69 73 73 69 6e 67 20 70 72 6f 76 69 r("missing provi 00038630: 64 65 72 73 22 2c 22 70 72 6f 76 69 64 65 72 73 ders","providers 00038640: 22 2c 65 29 3b 63 6f 6e 73 74 20 6e 3d 65 2e 6d ",e);const n=e.m 00038650: 61 70 28 28 28 65 2c 74 29 3d 3e 7b 69 66 28 61 ap(((e,t)=>{if(a 00038660: 6e 2e 69 73 50 72 6f 76 69 64 65 72 28 65 29 29 n.isProvider(e)) 00038670: 7b 63 6f 6e 73 74 20 74 3d 52 61 28 65 29 3f 32 {const t=Ra(e)?2 00038680: 65 33 3a 37 35 30 2c 6e 3d 31 3b 72 65 74 75 72 e3:750,n=1;retur 00038690: 6e 20 4f 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 n Object.freeze( 000386a0: 7b 70 72 6f 76 69 64 65 72 3a 65 2c 77 65 69 67 {provider:e,weig 000386b0: 68 74 3a 31 2c 73 74 61 6c 6c 54 69 6d 65 6f 75 ht:1,stallTimeou 000386c0: 74 3a 74 2c 70 72 69 6f 72 69 74 79 3a 6e 7d 29 t:t,priority:n}) 000386d0: 7d 63 6f 6e 73 74 20 6e 3d 69 65 28 65 29 3b 6e }const n=ie(e);n 000386e0: 75 6c 6c 3d 3d 6e 2e 70 72 69 6f 72 69 74 79 26 ull==n.priority& 000386f0: 26 28 6e 2e 70 72 69 6f 72 69 74 79 3d 31 29 2c &(n.priority=1), 00038700: 6e 75 6c 6c 3d 3d 6e 2e 73 74 61 6c 6c 54 69 6d null==n.stallTim 00038710: 65 6f 75 74 26 26 28 6e 2e 73 74 61 6c 6c 54 69 eout&&(n.stallTi 00038720: 6d 65 6f 75 74 3d 52 61 28 65 29 3f 32 65 33 3a meout=Ra(e)?2e3: 00038730: 37 35 30 29 2c 6e 75 6c 6c 3d 3d 6e 2e 77 65 69 750),null==n.wei 00038740: 67 68 74 26 26 28 6e 2e 77 65 69 67 68 74 3d 31 ght&&(n.weight=1 00038750: 29 3b 63 6f 6e 73 74 20 72 3d 6e 2e 77 65 69 67 );const r=n.weig 00038760: 68 74 3b 72 65 74 75 72 6e 28 72 25 31 7c 7c 72 ht;return(r%1||r 00038770: 3e 35 31 32 7c 7c 72 3c 31 29 26 26 4b 73 2e 74 >512||r<1)&&Ks.t 00038780: 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f hrowArgumentErro 00038790: 72 28 22 69 6e 76 61 6c 69 64 20 77 65 69 67 68 r("invalid weigh 000387a0: 74 3b 20 6d 75 73 74 20 62 65 20 69 6e 74 65 67 t; must be integ 000387b0: 65 72 20 69 6e 20 5b 31 2c 20 35 31 32 5d 22 2c er in [1, 512]", 000387c0: 60 70 72 6f 76 69 64 65 72 73 5b 24 7b 74 7d 5d `providers[${t}] 000387d0: 2e 77 65 69 67 68 74 60 2c 72 29 2c 4f 62 6a 65 .weight`,r),Obje 000387e0: 63 74 2e 66 72 65 65 7a 65 28 6e 29 7d 29 29 2c ct.freeze(n)})), 000387f0: 72 3d 6e 2e 72 65 64 75 63 65 28 28 28 65 2c 74 r=n.reduce(((e,t 00038800: 29 3d 3e 65 2b 74 2e 77 65 69 67 68 74 29 2c 30 )=>e+t.weight),0 00038810: 29 3b 6e 75 6c 6c 3d 3d 74 3f 74 3d 72 2f 32 3a );null==t?t=r/2: 00038820: 74 3e 72 26 26 4b 73 2e 74 68 72 6f 77 41 72 67 t>r&&Ks.throwArg 00038830: 75 6d 65 6e 74 45 72 72 6f 72 28 22 71 75 6f 72 umentError("quor 00038840: 75 6d 20 77 69 6c 6c 20 61 6c 77 61 79 73 20 66 um will always f 00038850: 61 69 6c 3b 20 6c 61 72 67 65 72 20 74 68 61 6e ail; larger than 00038860: 20 74 6f 74 61 6c 20 77 65 69 67 68 74 22 2c 22 total weight"," 00038870: 71 75 6f 72 75 6d 22 2c 74 29 3b 6c 65 74 20 6f quorum",t);let o 00038880: 3d 58 73 28 6e 2e 6d 61 70 28 28 65 3d 3e 65 2e =Xs(n.map((e=>e. 00038890: 70 72 6f 76 69 64 65 72 2e 6e 65 74 77 6f 72 6b provider.network 000388a0: 29 29 29 3b 6e 75 6c 6c 3d 3d 6f 26 26 28 6f 3d )));null==o&&(o= 000388b0: 6e 65 77 20 50 72 6f 6d 69 73 65 28 28 28 65 2c new Promise(((e, 000388c0: 74 29 3d 3e 7b 73 65 74 54 69 6d 65 6f 75 74 28 t)=>{setTimeout( 000388d0: 28 28 29 3d 3e 7b 74 68 69 73 2e 64 65 74 65 63 (()=>{this.detec 000388e0: 74 4e 65 74 77 6f 72 6b 28 29 2e 74 68 65 6e 28 tNetwork().then( 000388f0: 65 2c 74 29 7d 29 2c 30 29 7d 29 29 29 2c 73 75 e,t)}),0)}))),su 00038900: 70 65 72 28 6f 29 2c 74 65 28 74 68 69 73 2c 22 per(o),te(this," 00038910: 70 72 6f 76 69 64 65 72 43 6f 6e 66 69 67 73 22 providerConfigs" 00038920: 2c 4f 62 6a 65 63 74 2e 66 72 65 65 7a 65 28 6e ,Object.freeze(n 00038930: 29 29 2c 74 65 28 74 68 69 73 2c 22 71 75 6f 72 )),te(this,"quor 00038940: 75 6d 22 2c 74 29 2c 74 68 69 73 2e 5f 68 69 67 um",t),this._hig 00038950: 68 65 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 3d hestBlockNumber= 00038960: 2d 31 7d 64 65 74 65 63 74 4e 65 74 77 6f 72 6b -1}detectNetwork 00038970: 28 29 7b 72 65 74 75 72 6e 20 57 73 28 74 68 69 (){return Ws(thi 00038980: 73 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c s,void 0,void 0, 00038990: 28 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 72 65 74 (function*(){ret 000389a0: 75 72 6e 20 58 73 28 79 69 65 6c 64 20 50 72 6f urn Xs(yield Pro 000389b0: 6d 69 73 65 2e 61 6c 6c 28 74 68 69 73 2e 70 72 mise.all(this.pr 000389c0: 6f 76 69 64 65 72 43 6f 6e 66 69 67 73 2e 6d 61 oviderConfigs.ma 000389d0: 70 28 28 65 3d 3e 65 2e 70 72 6f 76 69 64 65 72 p((e=>e.provider 000389e0: 2e 67 65 74 4e 65 74 77 6f 72 6b 28 29 29 29 29 .getNetwork()))) 000389f0: 29 7d 29 29 7d 70 65 72 66 6f 72 6d 28 65 2c 74 )}))}perform(e,t 00038a00: 29 7b 72 65 74 75 72 6e 20 57 73 28 74 68 69 73 ){return Ws(this 00038a10: 2c 76 6f 69 64 20 30 2c 76 6f 69 64 20 30 2c 28 ,void 0,void 0,( 00038a20: 66 75 6e 63 74 69 6f 6e 2a 28 29 7b 69 66 28 22 function*(){if(" 00038a30: 73 65 6e 64 54 72 61 6e 73 61 63 74 69 6f 6e 22 sendTransaction" 00038a40: 3d 3d 3d 65 29 7b 63 6f 6e 73 74 20 65 3d 79 69 ===e){const e=yi 00038a50: 65 6c 64 20 50 72 6f 6d 69 73 65 2e 61 6c 6c 28 eld Promise.all( 00038a60: 74 68 69 73 2e 70 72 6f 76 69 64 65 72 43 6f 6e this.providerCon 00038a70: 66 69 67 73 2e 6d 61 70 28 28 65 3d 3e 65 2e 70 figs.map((e=>e.p 00038a80: 72 6f 76 69 64 65 72 2e 73 65 6e 64 54 72 61 6e rovider.sendTran 00038a90: 73 61 63 74 69 6f 6e 28 74 2e 73 69 67 6e 65 64 saction(t.signed 00038aa0: 54 72 61 6e 73 61 63 74 69 6f 6e 29 2e 74 68 65 Transaction).the 00038ab0: 6e 28 28 65 3d 3e 65 2e 68 61 73 68 29 2c 28 65 n((e=>e.hash),(e 00038ac0: 3d 3e 65 29 29 29 29 29 3b 66 6f 72 28 6c 65 74 =>e)))));for(let 00038ad0: 20 74 3d 30 3b 74 3c 65 2e 6c 65 6e 67 74 68 3b t=0;t<e.length; 00038ae0: 74 2b 2b 29 7b 63 6f 6e 73 74 20 6e 3d 65 5b 74 t++){const n=e[t 00038af0: 5d 3b 69 66 28 22 73 74 72 69 6e 67 22 3d 3d 74 ];if("string"==t 00038b00: 79 70 65 6f 66 20 6e 29 72 65 74 75 72 6e 20 6e ypeof n)return n 00038b10: 7d 74 68 72 6f 77 20 65 5b 30 5d 7d 2d 31 3d 3d }throw e[0]}-1== 00038b20: 3d 74 68 69 73 2e 5f 68 69 67 68 65 73 74 42 6c =this._highestBl 00038b30: 6f 63 6b 4e 75 6d 62 65 72 26 26 22 67 65 74 42 ockNumber&&"getB 00038b40: 6c 6f 63 6b 4e 75 6d 62 65 72 22 21 3d 3d 65 26 lockNumber"!==e& 00038b50: 26 28 79 69 65 6c 64 20 74 68 69 73 2e 67 65 74 &(yield this.get 00038b60: 42 6c 6f 63 6b 4e 75 6d 62 65 72 28 29 29 3b 63 BlockNumber());c 00038b70: 6f 6e 73 74 20 6e 3d 72 6c 28 74 68 69 73 2c 65 onst n=rl(this,e 00038b80: 2c 74 29 2c 72 3d 71 73 28 74 68 69 73 2e 70 72 ,t),r=qs(this.pr 00038b90: 6f 76 69 64 65 72 43 6f 6e 66 69 67 73 2e 6d 61 oviderConfigs.ma 00038ba0: 70 28 69 65 29 29 3b 72 2e 73 6f 72 74 28 28 28 p(ie));r.sort((( 00038bb0: 65 2c 74 29 3d 3e 65 2e 70 72 69 6f 72 69 74 79 e,t)=>e.priority 00038bc0: 2d 74 2e 70 72 69 6f 72 69 74 79 29 29 3b 63 6f -t.priority));co 00038bd0: 6e 73 74 20 6f 3d 74 68 69 73 2e 5f 68 69 67 68 nst o=this._high 00038be0: 65 73 74 42 6c 6f 63 6b 4e 75 6d 62 65 72 3b 6c estBlockNumber;l 00038bf0: 65 74 20 69 3d 30 2c 61 3d 21 30 3b 66 6f 72 28 et i=0,a=!0;for( 00038c00: 3b 3b 29 7b 63 6f 6e 73 74 20 73 3d 59 73 28 29 ;;){const s=Ys() 00038c10: 3b 6c 65 74 20 6c 3d 72 2e 66 69 6c 74 65 72 28 ;let l=r.filter( 00038c20: 28 65 3d 3e 65 2e 72 75 6e 6e 65 72 26 26 73 2d (e=>e.runner&&s- 00038c30: 65 2e 73 74 61 72 74 3c 65 2e 73 74 61 6c 6c 54 e.start<e.stallT 00038c40: 69 6d 65 6f 75 74 29 29 2e 72 65 64 75 63 65 28 imeout)).reduce( 00038c50: 28 28 65 2c 74 29 3d 3e 65 2b 74 2e 77 65 69 67 ((e,t)=>e+t.weig 00038c60: 68 74 29 2c 30 29 3b 66 6f 72 28 3b 6c 3c 74 68 ht),0);for(;l<th 00038c70: 69 73 2e 71 75 6f 72 75 6d 26 26 69 3c 72 2e 6c is.quorum&&i<r.l 00038c80: 65 6e 67 74 68 3b 29 7b 63 6f 6e 73 74 20 6e 3d ength;){const n= 00038c90: 72 5b 69 2b 2b 5d 2c 61 3d 4a 73 2b 2b 3b 6e 2e r[i++],a=Js++;n. 00038ca0: 73 74 61 72 74 3d 59 73 28 29 2c 6e 2e 73 74 61 start=Ys(),n.sta 00038cb0: 6c 6c 65 72 3d 24 73 28 6e 2e 73 74 61 6c 6c 54 ller=$s(n.stallT 00038cc0: 69 6d 65 6f 75 74 29 2c 6e 2e 73 74 61 6c 6c 65 imeout),n.stalle 00038cd0: 72 2e 77 61 69 74 28 28 28 29 3d 3e 7b 6e 2e 73 r.wait((()=>{n.s 00038ce0: 74 61 6c 6c 65 72 3d 6e 75 6c 6c 7d 29 29 2c 6e taller=null})),n 00038cf0: 2e 72 75 6e 6e 65 72 3d 69 6c 28 6e 2c 6f 2c 65 .runner=il(n,o,e 00038d00: 2c 74 29 2e 74 68 65 6e 28 28 72 3d 3e 7b 6e 2e ,t).then((r=>{n. 00038d10: 64 6f 6e 65 3d 21 30 2c 6e 2e 72 65 73 75 6c 74 done=!0,n.result 00038d20: 3d 72 2c 74 68 69 73 2e 6c 69 73 74 65 6e 65 72 =r,this.listener 00038d30: 43 6f 75 6e 74 28 22 64 65 62 75 67 22 29 26 26 Count("debug")&& 00038d40: 74 68 69 73 2e 65 6d 69 74 28 22 64 65 62 75 67 this.emit("debug 00038d50: 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 71 75 65 ",{action:"reque 00038d60: 73 74 22 2c 72 69 64 3a 61 2c 62 61 63 6b 65 6e st",rid:a,backen 00038d70: 64 3a 6e 6c 28 6e 2c 59 73 28 29 29 2c 72 65 71 d:nl(n,Ys()),req 00038d80: 75 65 73 74 3a 7b 6d 65 74 68 6f 64 3a 65 2c 70 uest:{method:e,p 00038d90: 61 72 61 6d 73 3a 63 65 28 74 29 7d 2c 70 72 6f arams:ce(t)},pro 00038da0: 76 69 64 65 72 3a 74 68 69 73 7d 29 7d 29 2c 28 vider:this})}),( 00038db0: 72 3d 3e 7b 6e 2e 64 6f 6e 65 3d 21 30 2c 6e 2e r=>{n.done=!0,n. 00038dc0: 65 72 72 6f 72 3d 72 2c 74 68 69 73 2e 6c 69 73 error=r,this.lis 00038dd0: 74 65 6e 65 72 43 6f 75 6e 74 28 22 64 65 62 75 tenerCount("debu 00038de0: 67 22 29 26 26 74 68 69 73 2e 65 6d 69 74 28 22 g")&&this.emit(" 00038df0: 64 65 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 debug",{action:" 00038e00: 72 65 71 75 65 73 74 22 2c 72 69 64 3a 61 2c 62 request",rid:a,b 00038e10: 61 63 6b 65 6e 64 3a 6e 6c 28 6e 2c 59 73 28 29 ackend:nl(n,Ys() 00038e20: 29 2c 72 65 71 75 65 73 74 3a 7b 6d 65 74 68 6f ),request:{metho 00038e30: 64 3a 65 2c 70 61 72 61 6d 73 3a 63 65 28 74 29 d:e,params:ce(t) 00038e40: 7d 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 7d },provider:this} 00038e50: 29 7d 29 29 2c 74 68 69 73 2e 6c 69 73 74 65 6e )})),this.listen 00038e60: 65 72 43 6f 75 6e 74 28 22 64 65 62 75 67 22 29 erCount("debug") 00038e70: 26 26 74 68 69 73 2e 65 6d 69 74 28 22 64 65 62 &&this.emit("deb 00038e80: 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 71 ug",{action:"req 00038e90: 75 65 73 74 22 2c 72 69 64 3a 61 2c 62 61 63 6b uest",rid:a,back 00038ea0: 65 6e 64 3a 6e 6c 28 6e 2c 6e 75 6c 6c 29 2c 72 end:nl(n,null),r 00038eb0: 65 71 75 65 73 74 3a 7b 6d 65 74 68 6f 64 3a 65 equest:{method:e 00038ec0: 2c 70 61 72 61 6d 73 3a 63 65 28 74 29 7d 2c 70 ,params:ce(t)},p 00038ed0: 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 2c 6c rovider:this}),l 00038ee0: 2b 3d 6e 2e 77 65 69 67 68 74 7d 63 6f 6e 73 74 +=n.weight}const 00038ef0: 20 63 3d 5b 5d 3b 72 2e 66 6f 72 45 61 63 68 28 c=[];r.forEach( 00038f00: 28 65 3d 3e 7b 21 65 2e 64 6f 6e 65 26 26 65 2e (e=>{!e.done&&e. 00038f10: 72 75 6e 6e 65 72 26 26 28 63 2e 70 75 73 68 28 runner&&(c.push( 00038f20: 65 2e 72 75 6e 6e 65 72 29 2c 65 2e 73 74 61 6c e.runner),e.stal 00038f30: 6c 65 72 26 26 63 2e 70 75 73 68 28 65 2e 73 74 ler&&c.push(e.st 00038f40: 61 6c 6c 65 72 2e 67 65 74 50 72 6f 6d 69 73 65 aller.getPromise 00038f50: 28 29 29 29 7d 29 29 2c 63 2e 6c 65 6e 67 74 68 ()))})),c.length 00038f60: 26 26 28 79 69 65 6c 64 20 50 72 6f 6d 69 73 65 &&(yield Promise 00038f70: 2e 72 61 63 65 28 63 29 29 3b 63 6f 6e 73 74 20 .race(c));const 00038f80: 75 3d 72 2e 66 69 6c 74 65 72 28 28 65 3d 3e 65 u=r.filter((e=>e 00038f90: 2e 64 6f 6e 65 26 26 6e 75 6c 6c 3d 3d 65 2e 65 .done&&null==e.e 00038fa0: 72 72 6f 72 29 29 3b 69 66 28 75 2e 6c 65 6e 67 rror));if(u.leng 00038fb0: 74 68 3e 3d 74 68 69 73 2e 71 75 6f 72 75 6d 29 th>=this.quorum) 00038fc0: 7b 63 6f 6e 73 74 20 65 3d 6e 28 75 29 3b 69 66 {const e=n(u);if 00038fd0: 28 76 6f 69 64 20 30 21 3d 3d 65 29 72 65 74 75 (void 0!==e)retu 00038fe0: 72 6e 20 72 2e 66 6f 72 45 61 63 68 28 28 65 3d rn r.forEach((e= 00038ff0: 3e 7b 65 2e 73 74 61 6c 6c 65 72 26 26 65 2e 73 >{e.staller&&e.s 00039000: 74 61 6c 6c 65 72 2e 63 61 6e 63 65 6c 28 29 2c taller.cancel(), 00039010: 65 2e 63 61 6e 63 65 6c 6c 65 64 3d 21 30 7d 29 e.cancelled=!0}) 00039020: 29 2c 65 3b 61 7c 7c 28 79 69 65 6c 64 20 24 73 ),e;a||(yield $s 00039030: 28 31 30 30 29 2e 67 65 74 50 72 6f 6d 69 73 65 (100).getPromise 00039040: 28 29 29 2c 61 3d 21 31 7d 63 6f 6e 73 74 20 64 ()),a=!1}const d 00039050: 3d 72 2e 72 65 64 75 63 65 28 28 28 65 2c 74 29 =r.reduce(((e,t) 00039060: 3d 3e 7b 69 66 28 21 74 2e 64 6f 6e 65 7c 7c 6e =>{if(!t.done||n 00039070: 75 6c 6c 3d 3d 74 2e 65 72 72 6f 72 29 72 65 74 ull==t.error)ret 00039080: 75 72 6e 20 65 3b 63 6f 6e 73 74 20 6e 3d 74 2e urn e;const n=t. 00039090: 65 72 72 6f 72 2e 63 6f 64 65 3b 72 65 74 75 72 error.code;retur 000390a0: 6e 20 65 6c 2e 69 6e 64 65 78 4f 66 28 6e 29 3e n el.indexOf(n)> 000390b0: 3d 30 26 26 28 65 5b 6e 5d 7c 7c 28 65 5b 6e 5d =0&&(e[n]||(e[n] 000390c0: 3d 7b 65 72 72 6f 72 3a 74 2e 65 72 72 6f 72 2c ={error:t.error, 000390d0: 77 65 69 67 68 74 3a 30 7d 29 2c 65 5b 6e 5d 2e weight:0}),e[n]. 000390e0: 77 65 69 67 68 74 2b 3d 74 2e 77 65 69 67 68 74 weight+=t.weight 000390f0: 29 2c 65 7d 29 2c 7b 7d 29 3b 69 66 28 4f 62 6a ),e}),{});if(Obj 00039100: 65 63 74 2e 6b 65 79 73 28 64 29 2e 66 6f 72 45 ect.keys(d).forE 00039110: 61 63 68 28 28 65 3d 3e 7b 63 6f 6e 73 74 20 74 ach((e=>{const t 00039120: 3d 64 5b 65 5d 3b 69 66 28 74 2e 77 65 69 67 68 =d[e];if(t.weigh 00039130: 74 3c 74 68 69 73 2e 71 75 6f 72 75 6d 29 72 65 t<this.quorum)re 00039140: 74 75 72 6e 3b 72 2e 66 6f 72 45 61 63 68 28 28 turn;r.forEach(( 00039150: 65 3d 3e 7b 65 2e 73 74 61 6c 6c 65 72 26 26 65 e=>{e.staller&&e 00039160: 2e 73 74 61 6c 6c 65 72 2e 63 61 6e 63 65 6c 28 .staller.cancel( 00039170: 29 2c 65 2e 63 61 6e 63 65 6c 6c 65 64 3d 21 30 ),e.cancelled=!0 00039180: 7d 29 29 3b 63 6f 6e 73 74 20 6e 3d 74 2e 65 72 }));const n=t.er 00039190: 72 6f 72 2c 6f 3d 7b 7d 3b 74 6c 2e 66 6f 72 45 ror,o={};tl.forE 000391a0: 61 63 68 28 28 65 3d 3e 7b 6e 75 6c 6c 21 3d 6e ach((e=>{null!=n 000391b0: 5b 65 5d 26 26 28 6f 5b 65 5d 3d 6e 5b 65 5d 29 [e]&&(o[e]=n[e]) 000391c0: 7d 29 29 2c 4b 73 2e 74 68 72 6f 77 45 72 72 6f })),Ks.throwErro 000391d0: 72 28 6e 2e 72 65 61 73 6f 6e 7c 7c 6e 2e 6d 65 r(n.reason||n.me 000391e0: 73 73 61 67 65 2c 65 2c 6f 29 7d 29 29 2c 30 3d ssage,e,o)})),0= 000391f0: 3d 3d 72 2e 66 69 6c 74 65 72 28 28 65 3d 3e 21 ==r.filter((e=>! 00039200: 65 2e 64 6f 6e 65 29 29 2e 6c 65 6e 67 74 68 29 e.done)).length) 00039210: 62 72 65 61 6b 7d 72 65 74 75 72 6e 20 72 2e 66 break}return r.f 00039220: 6f 72 45 61 63 68 28 28 65 3d 3e 7b 65 2e 73 74 orEach((e=>{e.st 00039230: 61 6c 6c 65 72 26 26 65 2e 73 74 61 6c 6c 65 72 aller&&e.staller 00039240: 2e 63 61 6e 63 65 6c 28 29 2c 65 2e 63 61 6e 63 .cancel(),e.canc 00039250: 65 6c 6c 65 64 3d 21 30 7d 29 29 2c 4b 73 2e 74 elled=!0})),Ks.t 00039260: 68 72 6f 77 45 72 72 6f 72 28 22 66 61 69 6c 65 hrowError("faile 00039270: 64 20 74 6f 20 6d 65 65 74 20 71 75 6f 72 75 6d d to meet quorum 00039280: 22 2c 79 2e 65 72 72 6f 72 73 2e 53 45 52 56 45 ",y.errors.SERVE 00039290: 52 5f 45 52 52 4f 52 2c 7b 6d 65 74 68 6f 64 3a R_ERROR,{method: 000392a0: 65 2c 70 61 72 61 6d 73 3a 74 2c 72 65 73 75 6c e,params:t,resul 000392b0: 74 73 3a 72 2e 6d 61 70 28 28 65 3d 3e 6e 6c 28 ts:r.map((e=>nl( 000392c0: 65 29 29 29 2c 70 72 6f 76 69 64 65 72 3a 74 68 e))),provider:th 000392d0: 69 73 7d 29 7d 29 29 7d 7d 63 6f 6e 73 74 20 73 is})}))}}const s 000392e0: 6c 3d 6e 75 6c 6c 2c 6c 6c 3d 6e 65 77 20 79 28 l=null,ll=new y( 000392f0: 41 61 29 2c 63 6c 3d 22 38 34 38 34 32 30 37 38 Aa),cl="84842078 00039300: 62 30 39 39 34 36 36 33 38 63 30 33 31 35 37 66 b09946638c03157f 00039310: 38 33 34 30 35 32 31 33 22 3b 63 6c 61 73 73 20 83405213";class 00039320: 75 6c 20 65 78 74 65 6e 64 73 20 45 73 7b 63 6f ul extends Es{co 00039330: 6e 73 74 72 75 63 74 6f 72 28 65 2c 74 29 7b 63 nstructor(e,t){c 00039340: 6f 6e 73 74 20 6e 3d 6e 65 77 20 64 6c 28 65 2c onst n=new dl(e, 00039350: 74 29 2c 72 3d 6e 2e 63 6f 6e 6e 65 63 74 69 6f t),r=n.connectio 00039360: 6e 3b 72 2e 70 61 73 73 77 6f 72 64 26 26 6c 6c n;r.password&&ll 00039370: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 49 4e 46 .throwError("INF 00039380: 55 52 41 20 57 65 62 53 6f 63 6b 65 74 20 70 72 URA WebSocket pr 00039390: 6f 6a 65 63 74 20 73 65 63 72 65 74 73 20 75 6e oject secrets un 000393a0: 73 75 70 70 6f 72 74 65 64 22 2c 79 2e 65 72 72 supported",y.err 000393b0: 6f 72 73 2e 55 4e 53 55 50 50 4f 52 54 45 44 5f ors.UNSUPPORTED_ 000393c0: 4f 50 45 52 41 54 49 4f 4e 2c 7b 6f 70 65 72 61 OPERATION,{opera 000393d0: 74 69 6f 6e 3a 22 49 6e 66 75 72 61 50 72 6f 76 tion:"InfuraProv 000393e0: 69 64 65 72 2e 67 65 74 57 65 62 53 6f 63 6b 65 ider.getWebSocke 000393f0: 74 50 72 6f 76 69 64 65 72 28 29 22 7d 29 3b 73 tProvider()"});s 00039400: 75 70 65 72 28 72 2e 75 72 6c 2e 72 65 70 6c 61 uper(r.url.repla 00039410: 63 65 28 2f 5e 68 74 74 70 2f 69 2c 22 77 73 22 ce(/^http/i,"ws" 00039420: 29 2e 72 65 70 6c 61 63 65 28 22 2f 76 33 2f 22 ).replace("/v3/" 00039430: 2c 22 2f 77 73 2f 76 33 2f 22 29 2c 65 29 2c 74 ,"/ws/v3/"),e),t 00039440: 65 28 74 68 69 73 2c 22 61 70 69 4b 65 79 22 2c e(this,"apiKey", 00039450: 6e 2e 70 72 6f 6a 65 63 74 49 64 29 2c 74 65 28 n.projectId),te( 00039460: 74 68 69 73 2c 22 70 72 6f 6a 65 63 74 49 64 22 this,"projectId" 00039470: 2c 6e 2e 70 72 6f 6a 65 63 74 49 64 29 2c 74 65 ,n.projectId),te 00039480: 28 74 68 69 73 2c 22 70 72 6f 6a 65 63 74 53 65 (this,"projectSe 00039490: 63 72 65 74 22 2c 6e 2e 70 72 6f 6a 65 63 74 53 cret",n.projectS 000394a0: 65 63 72 65 74 29 7d 69 73 43 6f 6d 6d 75 6e 69 ecret)}isCommuni 000394b0: 74 79 52 65 73 6f 75 72 63 65 28 29 7b 72 65 74 tyResource(){ret 000394c0: 75 72 6e 20 74 68 69 73 2e 70 72 6f 6a 65 63 74 urn this.project 000394d0: 49 64 3d 3d 3d 63 6c 7d 7d 63 6c 61 73 73 20 64 Id===cl}}class d 000394e0: 6c 20 65 78 74 65 6e 64 73 20 54 73 7b 73 74 61 l extends Ts{sta 000394f0: 74 69 63 20 67 65 74 57 65 62 53 6f 63 6b 65 74 tic getWebSocket 00039500: 50 72 6f 76 69 64 65 72 28 65 2c 74 29 7b 72 65 Provider(e,t){re 00039510: 74 75 72 6e 20 6e 65 77 20 75 6c 28 65 2c 74 29 turn new ul(e,t) 00039520: 7d 73 74 61 74 69 63 20 67 65 74 41 70 69 4b 65 }static getApiKe 00039530: 79 28 65 29 7b 63 6f 6e 73 74 20 74 3d 7b 61 70 y(e){const t={ap 00039540: 69 4b 65 79 3a 63 6c 2c 70 72 6f 6a 65 63 74 49 iKey:cl,projectI 00039550: 64 3a 63 6c 2c 70 72 6f 6a 65 63 74 53 65 63 72 d:cl,projectSecr 00039560: 65 74 3a 6e 75 6c 6c 7d 3b 72 65 74 75 72 6e 20 et:null};return 00039570: 6e 75 6c 6c 3d 3d 65 7c 7c 28 22 73 74 72 69 6e null==e||("strin 00039580: 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 74 2e 70 g"==typeof e?t.p 00039590: 72 6f 6a 65 63 74 49 64 3d 65 3a 6e 75 6c 6c 21 rojectId=e:null! 000395a0: 3d 65 2e 70 72 6f 6a 65 63 74 53 65 63 72 65 74 =e.projectSecret 000395b0: 3f 28 6c 6c 2e 61 73 73 65 72 74 41 72 67 75 6d ?(ll.assertArgum 000395c0: 65 6e 74 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 ent("string"==ty 000395d0: 70 65 6f 66 20 65 2e 70 72 6f 6a 65 63 74 49 64 peof e.projectId 000395e0: 2c 22 70 72 6f 6a 65 63 74 53 65 63 72 65 74 20 ,"projectSecret 000395f0: 72 65 71 75 69 72 65 73 20 61 20 70 72 6f 6a 65 requires a proje 00039600: 63 74 49 64 22 2c 22 70 72 6f 6a 65 63 74 49 64 ctId","projectId 00039610: 22 2c 65 2e 70 72 6f 6a 65 63 74 49 64 29 2c 6c ",e.projectId),l 00039620: 6c 2e 61 73 73 65 72 74 41 72 67 75 6d 65 6e 74 l.assertArgument 00039630: 28 22 73 74 72 69 6e 67 22 3d 3d 74 79 70 65 6f ("string"==typeo 00039640: 66 20 65 2e 70 72 6f 6a 65 63 74 53 65 63 72 65 f e.projectSecre 00039650: 74 2c 22 69 6e 76 61 6c 69 64 20 70 72 6f 6a 65 t,"invalid proje 00039660: 63 74 53 65 63 72 65 74 22 2c 22 70 72 6f 6a 65 ctSecret","proje 00039670: 63 74 53 65 63 72 65 74 22 2c 22 5b 52 45 44 41 ctSecret","[REDA 00039680: 43 54 45 44 5d 22 29 2c 74 2e 70 72 6f 6a 65 63 CTED]"),t.projec 00039690: 74 49 64 3d 65 2e 70 72 6f 6a 65 63 74 49 64 2c tId=e.projectId, 000396a0: 74 2e 70 72 6f 6a 65 63 74 53 65 63 72 65 74 3d t.projectSecret= 000396b0: 65 2e 70 72 6f 6a 65 63 74 53 65 63 72 65 74 29 e.projectSecret) 000396c0: 3a 65 2e 70 72 6f 6a 65 63 74 49 64 26 26 28 74 :e.projectId&&(t 000396d0: 2e 70 72 6f 6a 65 63 74 49 64 3d 65 2e 70 72 6f .projectId=e.pro 000396e0: 6a 65 63 74 49 64 29 2c 74 2e 61 70 69 4b 65 79 jectId),t.apiKey 000396f0: 3d 74 2e 70 72 6f 6a 65 63 74 49 64 29 2c 74 7d =t.projectId),t} 00039700: 73 74 61 74 69 63 20 67 65 74 55 72 6c 28 65 2c static getUrl(e, 00039710: 74 29 7b 6c 65 74 20 6e 3d 6e 75 6c 6c 3b 73 77 t){let n=null;sw 00039720: 69 74 63 68 28 65 3f 65 2e 6e 61 6d 65 3a 22 75 itch(e?e.name:"u 00039730: 6e 6b 6e 6f 77 6e 22 29 7b 63 61 73 65 22 68 6f nknown"){case"ho 00039740: 6d 65 73 74 65 61 64 22 3a 6e 3d 22 6d 61 69 6e mestead":n="main 00039750: 6e 65 74 2e 69 6e 66 75 72 61 2e 69 6f 22 3b 62 net.infura.io";b 00039760: 72 65 61 6b 3b 63 61 73 65 22 67 6f 65 72 6c 69 reak;case"goerli 00039770: 22 3a 6e 3d 22 67 6f 65 72 6c 69 2e 69 6e 66 75 ":n="goerli.infu 00039780: 72 61 2e 69 6f 22 3b 62 72 65 61 6b 3b 63 61 73 ra.io";break;cas 00039790: 65 22 73 65 70 6f 6c 69 61 22 3a 6e 3d 22 73 65 e"sepolia":n="se 000397a0: 70 6f 6c 69 61 2e 69 6e 66 75 72 61 2e 69 6f 22 polia.infura.io" 000397b0: 3b 62 72 65 61 6b 3b 63 61 73 65 22 6d 61 74 69 ;break;case"mati 000397c0: 63 22 3a 6e 3d 22 70 6f 6c 79 67 6f 6e 2d 6d 61 c":n="polygon-ma 000397d0: 69 6e 6e 65 74 2e 69 6e 66 75 72 61 2e 69 6f 22 innet.infura.io" 000397e0: 3b 62 72 65 61 6b 3b 63 61 73 65 22 6d 61 74 69 ;break;case"mati 000397f0: 63 6d 75 6d 22 3a 6e 3d 22 70 6f 6c 79 67 6f 6e cmum":n="polygon 00039800: 2d 6d 75 6d 62 61 69 2e 69 6e 66 75 72 61 2e 69 -mumbai.infura.i 00039810: 6f 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 6f 70 o";break;case"op 00039820: 74 69 6d 69 73 6d 22 3a 6e 3d 22 6f 70 74 69 6d timism":n="optim 00039830: 69 73 6d 2d 6d 61 69 6e 6e 65 74 2e 69 6e 66 75 ism-mainnet.infu 00039840: 72 61 2e 69 6f 22 3b 62 72 65 61 6b 3b 63 61 73 ra.io";break;cas 00039850: 65 22 6f 70 74 69 6d 69 73 6d 2d 67 6f 65 72 6c e"optimism-goerl 00039860: 69 22 3a 6e 3d 22 6f 70 74 69 6d 69 73 6d 2d 67 i":n="optimism-g 00039870: 6f 65 72 6c 69 2e 69 6e 66 75 72 61 2e 69 6f 22 oerli.infura.io" 00039880: 3b 62 72 65 61 6b 3b 63 61 73 65 22 61 72 62 69 ;break;case"arbi 00039890: 74 72 75 6d 22 3a 6e 3d 22 61 72 62 69 74 72 75 trum":n="arbitru 000398a0: 6d 2d 6d 61 69 6e 6e 65 74 2e 69 6e 66 75 72 61 m-mainnet.infura 000398b0: 2e 69 6f 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 .io";break;case" 000398c0: 61 72 62 69 74 72 75 6d 2d 67 6f 65 72 6c 69 22 arbitrum-goerli" 000398d0: 3a 6e 3d 22 61 72 62 69 74 72 75 6d 2d 67 6f 65 :n="arbitrum-goe 000398e0: 72 6c 69 2e 69 6e 66 75 72 61 2e 69 6f 22 3b 62 rli.infura.io";b 000398f0: 72 65 61 6b 3b 64 65 66 61 75 6c 74 3a 6c 6c 2e reak;default:ll. 00039900: 74 68 72 6f 77 45 72 72 6f 72 28 22 75 6e 73 75 throwError("unsu 00039910: 70 70 6f 72 74 65 64 20 6e 65 74 77 6f 72 6b 22 pported network" 00039920: 2c 79 2e 65 72 72 6f 72 73 2e 49 4e 56 41 4c 49 ,y.errors.INVALI 00039930: 44 5f 41 52 47 55 4d 45 4e 54 2c 7b 61 72 67 75 D_ARGUMENT,{argu 00039940: 6d 65 6e 74 3a 22 6e 65 74 77 6f 72 6b 22 2c 76 ment:"network",v 00039950: 61 6c 75 65 3a 65 7d 29 7d 63 6f 6e 73 74 20 72 alue:e})}const r 00039960: 3d 7b 61 6c 6c 6f 77 47 7a 69 70 3a 21 30 2c 75 ={allowGzip:!0,u 00039970: 72 6c 3a 22 68 74 74 70 73 3a 2f 2f 22 2b 6e 2b rl:"https://"+n+ 00039980: 22 2f 76 33 2f 22 2b 74 2e 70 72 6f 6a 65 63 74 "/v3/"+t.project 00039990: 49 64 2c 74 68 72 6f 74 74 6c 65 43 61 6c 6c 62 Id,throttleCallb 000399a0: 61 63 6b 3a 28 65 2c 6e 29 3d 3e 28 74 2e 70 72 ack:(e,n)=>(t.pr 000399b0: 6f 6a 65 63 74 49 64 3d 3d 3d 63 6c 26 26 50 61 ojectId===cl&&Pa 000399c0: 28 29 2c 50 72 6f 6d 69 73 65 2e 72 65 73 6f 6c (),Promise.resol 000399d0: 76 65 28 21 30 29 29 7d 3b 72 65 74 75 72 6e 20 ve(!0))};return 000399e0: 6e 75 6c 6c 21 3d 74 2e 70 72 6f 6a 65 63 74 53 null!=t.projectS 000399f0: 65 63 72 65 74 26 26 28 72 2e 75 73 65 72 3d 22 ecret&&(r.user=" 00039a00: 22 2c 72 2e 70 61 73 73 77 6f 72 64 3d 74 2e 70 ",r.password=t.p 00039a10: 72 6f 6a 65 63 74 53 65 63 72 65 74 29 2c 72 7d rojectSecret),r} 00039a20: 69 73 43 6f 6d 6d 75 6e 69 74 79 52 65 73 6f 75 isCommunityResou 00039a30: 72 63 65 28 29 7b 72 65 74 75 72 6e 20 74 68 69 rce(){return thi 00039a40: 73 2e 70 72 6f 6a 65 63 74 49 64 3d 3d 3d 63 6c s.projectId===cl 00039a50: 7d 7d 63 6c 61 73 73 20 70 6c 20 65 78 74 65 6e }}class pl exten 00039a60: 64 73 20 67 73 7b 73 65 6e 64 28 65 2c 74 29 7b ds gs{send(e,t){ 00039a70: 63 6f 6e 73 74 20 6e 3d 7b 6d 65 74 68 6f 64 3a const n={method: 00039a80: 65 2c 70 61 72 61 6d 73 3a 74 2c 69 64 3a 74 68 e,params:t,id:th 00039a90: 69 73 2e 5f 6e 65 78 74 49 64 2b 2b 2c 6a 73 6f is._nextId++,jso 00039aa0: 6e 72 70 63 3a 22 32 2e 30 22 7d 3b 6e 75 6c 6c nrpc:"2.0"};null 00039ab0: 3d 3d 74 68 69 73 2e 5f 70 65 6e 64 69 6e 67 42 ==this._pendingB 00039ac0: 61 74 63 68 26 26 28 74 68 69 73 2e 5f 70 65 6e atch&&(this._pen 00039ad0: 64 69 6e 67 42 61 74 63 68 3d 5b 5d 29 3b 63 6f dingBatch=[]);co 00039ae0: 6e 73 74 20 72 3d 7b 72 65 71 75 65 73 74 3a 6e nst r={request:n 00039af0: 2c 72 65 73 6f 6c 76 65 3a 6e 75 6c 6c 2c 72 65 ,resolve:null,re 00039b00: 6a 65 63 74 3a 6e 75 6c 6c 7d 2c 6f 3d 6e 65 77 ject:null},o=new 00039b10: 20 50 72 6f 6d 69 73 65 28 28 28 65 2c 74 29 3d Promise(((e,t)= 00039b20: 3e 7b 72 2e 72 65 73 6f 6c 76 65 3d 65 2c 72 2e >{r.resolve=e,r. 00039b30: 72 65 6a 65 63 74 3d 74 7d 29 29 3b 72 65 74 75 reject=t}));retu 00039b40: 72 6e 20 74 68 69 73 2e 5f 70 65 6e 64 69 6e 67 rn this._pending 00039b50: 42 61 74 63 68 2e 70 75 73 68 28 72 29 2c 74 68 Batch.push(r),th 00039b60: 69 73 2e 5f 70 65 6e 64 69 6e 67 42 61 74 63 68 is._pendingBatch 00039b70: 41 67 67 72 65 67 61 74 6f 72 7c 7c 28 74 68 69 Aggregator||(thi 00039b80: 73 2e 5f 70 65 6e 64 69 6e 67 42 61 74 63 68 41 s._pendingBatchA 00039b90: 67 67 72 65 67 61 74 6f 72 3d 73 65 74 54 69 6d ggregator=setTim 00039ba0: 65 6f 75 74 28 28 28 29 3d 3e 7b 63 6f 6e 73 74 eout((()=>{const 00039bb0: 20 65 3d 74 68 69 73 2e 5f 70 65 6e 64 69 6e 67 e=this._pending 00039bc0: 42 61 74 63 68 3b 74 68 69 73 2e 5f 70 65 6e 64 Batch;this._pend 00039bd0: 69 6e 67 42 61 74 63 68 3d 6e 75 6c 6c 2c 74 68 ingBatch=null,th 00039be0: 69 73 2e 5f 70 65 6e 64 69 6e 67 42 61 74 63 68 is._pendingBatch 00039bf0: 41 67 67 72 65 67 61 74 6f 72 3d 6e 75 6c 6c 3b Aggregator=null; 00039c00: 63 6f 6e 73 74 20 74 3d 65 2e 6d 61 70 28 28 65 const t=e.map((e 00039c10: 3d 3e 65 2e 72 65 71 75 65 73 74 29 29 3b 72 65 =>e.request));re 00039c20: 74 75 72 6e 20 74 68 69 73 2e 65 6d 69 74 28 22 turn this.emit(" 00039c30: 64 65 62 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 debug",{action:" 00039c40: 72 65 71 75 65 73 74 42 61 74 63 68 22 2c 72 65 requestBatch",re 00039c50: 71 75 65 73 74 3a 63 65 28 74 29 2c 70 72 6f 76 quest:ce(t),prov 00039c60: 69 64 65 72 3a 74 68 69 73 7d 29 2c 77 61 28 74 ider:this}),wa(t 00039c70: 68 69 73 2e 63 6f 6e 6e 65 63 74 69 6f 6e 2c 4a his.connection,J 00039c80: 53 4f 4e 2e 73 74 72 69 6e 67 69 66 79 28 74 29 SON.stringify(t) 00039c90: 29 2e 74 68 65 6e 28 28 6e 3d 3e 7b 74 68 69 73 ).then((n=>{this 00039ca0: 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b 61 .emit("debug",{a 00039cb0: 63 74 69 6f 6e 3a 22 72 65 73 70 6f 6e 73 65 22 ction:"response" 00039cc0: 2c 72 65 71 75 65 73 74 3a 74 2c 72 65 73 70 6f ,request:t,respo 00039cd0: 6e 73 65 3a 6e 2c 70 72 6f 76 69 64 65 72 3a 74 nse:n,provider:t 00039ce0: 68 69 73 7d 29 2c 65 2e 66 6f 72 45 61 63 68 28 his}),e.forEach( 00039cf0: 28 28 65 2c 74 29 3d 3e 7b 63 6f 6e 73 74 20 72 ((e,t)=>{const r 00039d00: 3d 6e 5b 74 5d 3b 69 66 28 72 2e 65 72 72 6f 72 =n[t];if(r.error 00039d10: 29 7b 63 6f 6e 73 74 20 74 3d 6e 65 77 20 45 72 ){const t=new Er 00039d20: 72 6f 72 28 72 2e 65 72 72 6f 72 2e 6d 65 73 73 ror(r.error.mess 00039d30: 61 67 65 29 3b 74 2e 63 6f 64 65 3d 72 2e 65 72 age);t.code=r.er 00039d40: 72 6f 72 2e 63 6f 64 65 2c 74 2e 64 61 74 61 3d ror.code,t.data= 00039d50: 72 2e 65 72 72 6f 72 2e 64 61 74 61 2c 65 2e 72 r.error.data,e.r 00039d60: 65 6a 65 63 74 28 74 29 7d 65 6c 73 65 20 65 2e eject(t)}else e. 00039d70: 72 65 73 6f 6c 76 65 28 72 2e 72 65 73 75 6c 74 resolve(r.result 00039d80: 29 7d 29 29 7d 29 2c 28 6e 3d 3e 7b 74 68 69 73 )}))}),(n=>{this 00039d90: 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b 61 .emit("debug",{a 00039da0: 63 74 69 6f 6e 3a 22 72 65 73 70 6f 6e 73 65 22 ction:"response" 00039db0: 2c 65 72 72 6f 72 3a 6e 2c 72 65 71 75 65 73 74 ,error:n,request 00039dc0: 3a 74 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 :t,provider:this 00039dd0: 7d 29 2c 65 2e 66 6f 72 45 61 63 68 28 28 65 3d }),e.forEach((e= 00039de0: 3e 7b 65 2e 72 65 6a 65 63 74 28 6e 29 7d 29 29 >{e.reject(n)})) 00039df0: 7d 29 29 7d 29 2c 31 30 29 29 2c 6f 7d 7d 63 6f }))}),10)),o}}co 00039e00: 6e 73 74 20 66 6c 3d 6e 65 77 20 79 28 41 61 29 nst fl=new y(Aa) 00039e10: 3b 63 6c 61 73 73 20 68 6c 20 65 78 74 65 6e 64 ;class hl extend 00039e20: 73 20 54 73 7b 73 74 61 74 69 63 20 67 65 74 41 s Ts{static getA 00039e30: 70 69 4b 65 79 28 65 29 7b 72 65 74 75 72 6e 20 piKey(e){return 00039e40: 65 26 26 22 73 74 72 69 6e 67 22 21 3d 74 79 70 e&&"string"!=typ 00039e50: 65 6f 66 20 65 26 26 66 6c 2e 74 68 72 6f 77 41 eof e&&fl.throwA 00039e60: 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 22 69 6e rgumentError("in 00039e70: 76 61 6c 69 64 20 61 70 69 4b 65 79 22 2c 22 61 valid apiKey","a 00039e80: 70 69 4b 65 79 22 2c 65 29 2c 65 7c 7c 22 45 54 piKey",e),e||"ET 00039e90: 48 45 52 53 5f 4a 53 5f 53 48 41 52 45 44 22 7d HERS_JS_SHARED"} 00039ea0: 73 74 61 74 69 63 20 67 65 74 55 72 6c 28 65 2c static getUrl(e, 00039eb0: 74 29 7b 66 6c 2e 77 61 72 6e 28 22 4e 6f 64 65 t){fl.warn("Node 00039ec0: 53 6d 69 74 68 20 77 69 6c 6c 20 62 65 20 64 69 Smith will be di 00039ed0: 73 63 6f 6e 74 69 6e 75 65 64 20 6f 6e 20 32 30 scontinued on 20 00039ee0: 31 39 2d 31 32 2d 32 30 3b 20 70 6c 65 61 73 65 19-12-20; please 00039ef0: 20 6d 69 67 72 61 74 65 20 74 6f 20 61 6e 6f 74 migrate to anot 00039f00: 68 65 72 20 70 6c 61 74 66 6f 72 6d 2e 22 29 3b her platform."); 00039f10: 6c 65 74 20 6e 3d 6e 75 6c 6c 3b 73 77 69 74 63 let n=null;switc 00039f20: 68 28 65 2e 6e 61 6d 65 29 7b 63 61 73 65 22 68 h(e.name){case"h 00039f30: 6f 6d 65 73 74 65 61 64 22 3a 6e 3d 22 68 74 74 omestead":n="htt 00039f40: 70 73 3a 2f 2f 65 74 68 65 72 65 75 6d 2e 61 70 ps://ethereum.ap 00039f50: 69 2e 6e 6f 64 65 73 6d 69 74 68 2e 69 6f 2f 76 i.nodesmith.io/v 00039f60: 31 2f 6d 61 69 6e 6e 65 74 2f 6a 73 6f 6e 72 70 1/mainnet/jsonrp 00039f70: 63 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 72 6f c";break;case"ro 00039f80: 70 73 74 65 6e 22 3a 6e 3d 22 68 74 74 70 73 3a psten":n="https: 00039f90: 2f 2f 65 74 68 65 72 65 75 6d 2e 61 70 69 2e 6e //ethereum.api.n 00039fa0: 6f 64 65 73 6d 69 74 68 2e 69 6f 2f 76 31 2f 72 odesmith.io/v1/r 00039fb0: 6f 70 73 74 65 6e 2f 6a 73 6f 6e 72 70 63 22 3b opsten/jsonrpc"; 00039fc0: 62 72 65 61 6b 3b 63 61 73 65 22 72 69 6e 6b 65 break;case"rinke 00039fd0: 62 79 22 3a 6e 3d 22 68 74 74 70 73 3a 2f 2f 65 by":n="https://e 00039fe0: 74 68 65 72 65 75 6d 2e 61 70 69 2e 6e 6f 64 65 thereum.api.node 00039ff0: 73 6d 69 74 68 2e 69 6f 2f 76 31 2f 72 69 6e 6b smith.io/v1/rink 0003a000: 65 62 79 2f 6a 73 6f 6e 72 70 63 22 3b 62 72 65 eby/jsonrpc";bre 0003a010: 61 6b 3b 63 61 73 65 22 67 6f 65 72 6c 69 22 3a ak;case"goerli": 0003a020: 6e 3d 22 68 74 74 70 73 3a 2f 2f 65 74 68 65 72 n="https://ether 0003a030: 65 75 6d 2e 61 70 69 2e 6e 6f 64 65 73 6d 69 74 eum.api.nodesmit 0003a040: 68 2e 69 6f 2f 76 31 2f 67 6f 65 72 6c 69 2f 6a h.io/v1/goerli/j 0003a050: 73 6f 6e 72 70 63 22 3b 62 72 65 61 6b 3b 63 61 sonrpc";break;ca 0003a060: 73 65 22 6b 6f 76 61 6e 22 3a 6e 3d 22 68 74 74 se"kovan":n="htt 0003a070: 70 73 3a 2f 2f 65 74 68 65 72 65 75 6d 2e 61 70 ps://ethereum.ap 0003a080: 69 2e 6e 6f 64 65 73 6d 69 74 68 2e 69 6f 2f 76 i.nodesmith.io/v 0003a090: 31 2f 6b 6f 76 61 6e 2f 6a 73 6f 6e 72 70 63 22 1/kovan/jsonrpc" 0003a0a0: 3b 62 72 65 61 6b 3b 64 65 66 61 75 6c 74 3a 66 ;break;default:f 0003a0b0: 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 l.throwArgumentE 0003a0c0: 72 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 74 65 rror("unsupporte 0003a0d0: 64 20 6e 65 74 77 6f 72 6b 22 2c 22 6e 65 74 77 d network","netw 0003a0e0: 6f 72 6b 22 2c 61 72 67 75 6d 65 6e 74 73 5b 30 ork",arguments[0 0003a0f0: 5d 29 7d 72 65 74 75 72 6e 20 6e 2b 22 3f 61 70 ])}return n+"?ap 0003a100: 69 4b 65 79 3d 22 2b 74 7d 7d 63 6f 6e 73 74 20 iKey="+t}}const 0003a110: 6d 6c 3d 6e 65 77 20 79 28 41 61 29 2c 67 6c 3d ml=new y(Aa),gl= 0003a120: 22 36 32 65 31 61 64 35 31 62 33 37 62 38 65 30 "62e1ad51b37b8e0 0003a130: 30 33 39 34 62 64 61 33 62 22 3b 63 6c 61 73 73 0394bda3b";class 0003a140: 20 62 6c 20 65 78 74 65 6e 64 73 20 54 73 7b 73 bl extends Ts{s 0003a150: 74 61 74 69 63 20 67 65 74 41 70 69 4b 65 79 28 tatic getApiKey( 0003a160: 65 29 7b 63 6f 6e 73 74 20 74 3d 7b 61 70 70 6c e){const t={appl 0003a170: 69 63 61 74 69 6f 6e 49 64 3a 6e 75 6c 6c 2c 6c icationId:null,l 0003a180: 6f 61 64 42 61 6c 61 6e 63 65 72 3a 21 30 2c 61 oadBalancer:!0,a 0003a190: 70 70 6c 69 63 61 74 69 6f 6e 53 65 63 72 65 74 pplicationSecret 0003a1a0: 4b 65 79 3a 6e 75 6c 6c 7d 3b 72 65 74 75 72 6e Key:null};return 0003a1b0: 20 6e 75 6c 6c 3d 3d 65 3f 74 2e 61 70 70 6c 69 null==e?t.appli 0003a1c0: 63 61 74 69 6f 6e 49 64 3d 67 6c 3a 22 73 74 72 cationId=gl:"str 0003a1d0: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 3f 74 ing"==typeof e?t 0003a1e0: 2e 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 3d 65 .applicationId=e 0003a1f0: 3a 6e 75 6c 6c 21 3d 65 2e 61 70 70 6c 69 63 61 :null!=e.applica 0003a200: 74 69 6f 6e 53 65 63 72 65 74 4b 65 79 3f 28 74 tionSecretKey?(t 0003a210: 2e 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 3d 65 .applicationId=e 0003a220: 2e 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 2c 74 .applicationId,t 0003a230: 2e 61 70 70 6c 69 63 61 74 69 6f 6e 53 65 63 72 .applicationSecr 0003a240: 65 74 4b 65 79 3d 65 2e 61 70 70 6c 69 63 61 74 etKey=e.applicat 0003a250: 69 6f 6e 53 65 63 72 65 74 4b 65 79 29 3a 65 2e ionSecretKey):e. 0003a260: 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 3f 74 2e applicationId?t. 0003a270: 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 3d 65 2e applicationId=e. 0003a280: 61 70 70 6c 69 63 61 74 69 6f 6e 49 64 3a 6d 6c applicationId:ml 0003a290: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 0003a2a0: 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 74 65 64 ror("unsupported 0003a2b0: 20 50 6f 63 6b 65 74 50 72 6f 76 69 64 65 72 20 PocketProvider 0003a2c0: 61 70 69 4b 65 79 22 2c 22 61 70 69 4b 65 79 22 apiKey","apiKey" 0003a2d0: 2c 65 29 2c 74 7d 73 74 61 74 69 63 20 67 65 74 ,e),t}static get 0003a2e0: 55 72 6c 28 65 2c 74 29 7b 6c 65 74 20 6e 3d 6e Url(e,t){let n=n 0003a2f0: 75 6c 6c 3b 73 77 69 74 63 68 28 65 3f 65 2e 6e ull;switch(e?e.n 0003a300: 61 6d 65 3a 22 75 6e 6b 6e 6f 77 6e 22 29 7b 63 ame:"unknown"){c 0003a310: 61 73 65 22 67 6f 65 72 6c 69 22 3a 6e 3d 22 65 ase"goerli":n="e 0003a320: 74 68 2d 67 6f 65 72 6c 69 2e 67 61 74 65 77 61 th-goerli.gatewa 0003a330: 79 2e 70 6f 6b 74 2e 6e 65 74 77 6f 72 6b 22 3b y.pokt.network"; 0003a340: 62 72 65 61 6b 3b 63 61 73 65 22 68 6f 6d 65 73 break;case"homes 0003a350: 74 65 61 64 22 3a 6e 3d 22 65 74 68 2d 6d 61 69 tead":n="eth-mai 0003a360: 6e 6e 65 74 2e 67 61 74 65 77 61 79 2e 70 6f 6b nnet.gateway.pok 0003a370: 74 2e 6e 65 74 77 6f 72 6b 22 3b 62 72 65 61 6b t.network";break 0003a380: 3b 63 61 73 65 22 6b 6f 76 61 6e 22 3a 6e 3d 22 ;case"kovan":n=" 0003a390: 70 6f 61 2d 6b 6f 76 61 6e 2e 67 61 74 65 77 61 poa-kovan.gatewa 0003a3a0: 79 2e 70 6f 6b 74 2e 6e 65 74 77 6f 72 6b 22 3b y.pokt.network"; 0003a3b0: 62 72 65 61 6b 3b 63 61 73 65 22 6d 61 74 69 63 break;case"matic 0003a3c0: 22 3a 6e 3d 22 70 6f 6c 79 2d 6d 61 69 6e 6e 65 ":n="poly-mainne 0003a3d0: 74 2e 67 61 74 65 77 61 79 2e 70 6f 6b 74 2e 6e t.gateway.pokt.n 0003a3e0: 65 74 77 6f 72 6b 22 3b 62 72 65 61 6b 3b 63 61 etwork";break;ca 0003a3f0: 73 65 22 6d 61 74 69 63 6d 75 6d 22 3a 6e 3d 22 se"maticmum":n=" 0003a400: 70 6f 6c 79 67 6f 6e 2d 6d 75 6d 62 61 69 2d 72 polygon-mumbai-r 0003a410: 70 63 2e 67 61 74 65 77 61 79 2e 70 6f 6b 74 2e pc.gateway.pokt. 0003a420: 6e 65 74 77 6f 72 6b 22 3b 62 72 65 61 6b 3b 63 network";break;c 0003a430: 61 73 65 22 72 69 6e 6b 65 62 79 22 3a 6e 3d 22 ase"rinkeby":n=" 0003a440: 65 74 68 2d 72 69 6e 6b 65 62 79 2e 67 61 74 65 eth-rinkeby.gate 0003a450: 77 61 79 2e 70 6f 6b 74 2e 6e 65 74 77 6f 72 6b way.pokt.network 0003a460: 22 3b 62 72 65 61 6b 3b 63 61 73 65 22 72 6f 70 ";break;case"rop 0003a470: 73 74 65 6e 22 3a 6e 3d 22 65 74 68 2d 72 6f 70 sten":n="eth-rop 0003a480: 73 74 65 6e 2e 67 61 74 65 77 61 79 2e 70 6f 6b sten.gateway.pok 0003a490: 74 2e 6e 65 74 77 6f 72 6b 22 3b 62 72 65 61 6b t.network";break 0003a4a0: 3b 64 65 66 61 75 6c 74 3a 6d 6c 2e 74 68 72 6f ;default:ml.thro 0003a4b0: 77 45 72 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 wError("unsuppor 0003a4c0: 74 65 64 20 6e 65 74 77 6f 72 6b 22 2c 79 2e 65 ted network",y.e 0003a4d0: 72 72 6f 72 73 2e 49 4e 56 41 4c 49 44 5f 41 52 rrors.INVALID_AR 0003a4e0: 47 55 4d 45 4e 54 2c 7b 61 72 67 75 6d 65 6e 74 GUMENT,{argument 0003a4f0: 3a 22 6e 65 74 77 6f 72 6b 22 2c 76 61 6c 75 65 :"network",value 0003a500: 3a 65 7d 29 7d 63 6f 6e 73 74 20 72 3d 7b 68 65 :e})}const r={he 0003a510: 61 64 65 72 73 3a 7b 7d 2c 75 72 6c 3a 60 68 74 aders:{},url:`ht 0003a520: 74 70 73 3a 2f 2f 24 7b 6e 7d 2f 76 31 2f 6c 62 tps://${n}/v1/lb 0003a530: 2f 24 7b 74 2e 61 70 70 6c 69 63 61 74 69 6f 6e /${t.application 0003a540: 49 64 7d 60 7d 3b 72 65 74 75 72 6e 20 6e 75 6c Id}`};return nul 0003a550: 6c 21 3d 74 2e 61 70 70 6c 69 63 61 74 69 6f 6e l!=t.application 0003a560: 53 65 63 72 65 74 4b 65 79 26 26 28 72 2e 75 73 SecretKey&&(r.us 0003a570: 65 72 3d 22 22 2c 72 2e 70 61 73 73 77 6f 72 64 er="",r.password 0003a580: 3d 74 2e 61 70 70 6c 69 63 61 74 69 6f 6e 53 65 =t.applicationSe 0003a590: 63 72 65 74 4b 65 79 29 2c 72 7d 69 73 43 6f 6d cretKey),r}isCom 0003a5a0: 6d 75 6e 69 74 79 52 65 73 6f 75 72 63 65 28 29 munityResource() 0003a5b0: 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 61 70 70 {return this.app 0003a5c0: 6c 69 63 61 74 69 6f 6e 49 64 3d 3d 3d 67 6c 7d licationId===gl} 0003a5d0: 7d 63 6f 6e 73 74 20 79 6c 3d 6e 65 77 20 79 28 }const yl=new y( 0003a5e0: 41 61 29 3b 6c 65 74 20 76 6c 3d 31 3b 66 75 6e Aa);let vl=1;fun 0003a5f0: 63 74 69 6f 6e 20 53 6c 28 65 2c 74 29 7b 63 6f ction Sl(e,t){co 0003a600: 6e 73 74 20 6e 3d 22 57 65 62 33 4c 65 67 61 63 nst n="Web3Legac 0003a610: 79 46 65 74 63 68 65 72 22 3b 72 65 74 75 72 6e yFetcher";return 0003a620: 20 66 75 6e 63 74 69 6f 6e 28 65 2c 72 29 7b 63 function(e,r){c 0003a630: 6f 6e 73 74 20 6f 3d 7b 6d 65 74 68 6f 64 3a 65 onst o={method:e 0003a640: 2c 70 61 72 61 6d 73 3a 72 2c 69 64 3a 76 6c 2b ,params:r,id:vl+ 0003a650: 2b 2c 6a 73 6f 6e 72 70 63 3a 22 32 2e 30 22 7d +,jsonrpc:"2.0"} 0003a660: 3b 72 65 74 75 72 6e 20 6e 65 77 20 50 72 6f 6d ;return new Prom 0003a670: 69 73 65 28 28 28 65 2c 72 29 3d 3e 7b 74 68 69 ise(((e,r)=>{thi 0003a680: 73 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b s.emit("debug",{ 0003a690: 61 63 74 69 6f 6e 3a 22 72 65 71 75 65 73 74 22 action:"request" 0003a6a0: 2c 66 65 74 63 68 65 72 3a 6e 2c 72 65 71 75 65 ,fetcher:n,reque 0003a6b0: 73 74 3a 63 65 28 6f 29 2c 70 72 6f 76 69 64 65 st:ce(o),provide 0003a6c0: 72 3a 74 68 69 73 7d 29 2c 74 28 6f 2c 28 28 74 r:this}),t(o,((t 0003a6d0: 2c 69 29 3d 3e 7b 69 66 28 74 29 72 65 74 75 72 ,i)=>{if(t)retur 0003a6e0: 6e 20 74 68 69 73 2e 65 6d 69 74 28 22 64 65 62 n this.emit("deb 0003a6f0: 75 67 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 73 ug",{action:"res 0003a700: 70 6f 6e 73 65 22 2c 66 65 74 63 68 65 72 3a 6e ponse",fetcher:n 0003a710: 2c 65 72 72 6f 72 3a 74 2c 72 65 71 75 65 73 74 ,error:t,request 0003a720: 3a 6f 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 :o,provider:this 0003a730: 7d 29 2c 72 28 74 29 3b 69 66 28 74 68 69 73 2e }),r(t);if(this. 0003a740: 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b 61 63 emit("debug",{ac 0003a750: 74 69 6f 6e 3a 22 72 65 73 70 6f 6e 73 65 22 2c tion:"response", 0003a760: 66 65 74 63 68 65 72 3a 6e 2c 72 65 71 75 65 73 fetcher:n,reques 0003a770: 74 3a 6f 2c 72 65 73 70 6f 6e 73 65 3a 69 2c 70 t:o,response:i,p 0003a780: 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 2c 69 rovider:this}),i 0003a790: 2e 65 72 72 6f 72 29 7b 63 6f 6e 73 74 20 65 3d .error){const e= 0003a7a0: 6e 65 77 20 45 72 72 6f 72 28 69 2e 65 72 72 6f new Error(i.erro 0003a7b0: 72 2e 6d 65 73 73 61 67 65 29 3b 72 65 74 75 72 r.message);retur 0003a7c0: 6e 20 65 2e 63 6f 64 65 3d 69 2e 65 72 72 6f 72 n e.code=i.error 0003a7d0: 2e 63 6f 64 65 2c 65 2e 64 61 74 61 3d 69 2e 65 .code,e.data=i.e 0003a7e0: 72 72 6f 72 2e 64 61 74 61 2c 72 28 65 29 7d 65 rror.data,r(e)}e 0003a7f0: 28 69 2e 72 65 73 75 6c 74 29 7d 29 29 7d 29 29 (i.result)}))})) 0003a800: 7d 7d 63 6c 61 73 73 20 45 6c 20 65 78 74 65 6e }}class El exten 0003a810: 64 73 20 67 73 7b 63 6f 6e 73 74 72 75 63 74 6f ds gs{constructo 0003a820: 72 28 65 2c 74 29 7b 6e 75 6c 6c 3d 3d 65 26 26 r(e,t){null==e&& 0003a830: 79 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 yl.throwArgument 0003a840: 45 72 72 6f 72 28 22 6d 69 73 73 69 6e 67 20 70 Error("missing p 0003a850: 72 6f 76 69 64 65 72 22 2c 22 70 72 6f 76 69 64 rovider","provid 0003a860: 65 72 22 2c 65 29 3b 6c 65 74 20 6e 3d 6e 75 6c er",e);let n=nul 0003a870: 6c 2c 72 3d 6e 75 6c 6c 2c 6f 3d 6e 75 6c 6c 3b l,r=null,o=null; 0003a880: 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 65 "function"==type 0003a890: 6f 66 20 65 3f 28 6e 3d 22 75 6e 6b 6e 6f 77 6e of e?(n="unknown 0003a8a0: 3a 22 2c 72 3d 65 29 3a 28 6e 3d 65 2e 68 6f 73 :",r=e):(n=e.hos 0003a8b0: 74 7c 7c 65 2e 70 61 74 68 7c 7c 22 22 2c 21 6e t||e.path||"",!n 0003a8c0: 26 26 65 2e 69 73 4d 65 74 61 4d 61 73 6b 26 26 &&e.isMetaMask&& 0003a8d0: 28 6e 3d 22 6d 65 74 61 6d 61 73 6b 22 29 2c 6f (n="metamask"),o 0003a8e0: 3d 65 2c 65 2e 72 65 71 75 65 73 74 3f 28 22 22 =e,e.request?("" 0003a8f0: 3d 3d 3d 6e 26 26 28 6e 3d 22 65 69 70 2d 31 31 ===n&&(n="eip-11 0003a900: 39 33 3a 22 29 2c 72 3d 66 75 6e 63 74 69 6f 6e 93:"),r=function 0003a910: 28 65 29 7b 72 65 74 75 72 6e 20 66 75 6e 63 74 (e){return funct 0003a920: 69 6f 6e 28 74 2c 6e 29 7b 6e 75 6c 6c 3d 3d 6e ion(t,n){null==n 0003a930: 26 26 28 6e 3d 5b 5d 29 3b 63 6f 6e 73 74 20 72 &&(n=[]);const r 0003a940: 3d 7b 6d 65 74 68 6f 64 3a 74 2c 70 61 72 61 6d ={method:t,param 0003a950: 73 3a 6e 7d 3b 72 65 74 75 72 6e 20 74 68 69 73 s:n};return this 0003a960: 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c 7b 61 .emit("debug",{a 0003a970: 63 74 69 6f 6e 3a 22 72 65 71 75 65 73 74 22 2c ction:"request", 0003a980: 66 65 74 63 68 65 72 3a 22 45 69 70 31 31 39 33 fetcher:"Eip1193 0003a990: 46 65 74 63 68 65 72 22 2c 72 65 71 75 65 73 74 Fetcher",request 0003a9a0: 3a 63 65 28 72 29 2c 70 72 6f 76 69 64 65 72 3a :ce(r),provider: 0003a9b0: 74 68 69 73 7d 29 2c 65 2e 72 65 71 75 65 73 74 this}),e.request 0003a9c0: 28 72 29 2e 74 68 65 6e 28 28 65 3d 3e 28 74 68 (r).then((e=>(th 0003a9d0: 69 73 2e 65 6d 69 74 28 22 64 65 62 75 67 22 2c is.emit("debug", 0003a9e0: 7b 61 63 74 69 6f 6e 3a 22 72 65 73 70 6f 6e 73 {action:"respons 0003a9f0: 65 22 2c 66 65 74 63 68 65 72 3a 22 45 69 70 31 e",fetcher:"Eip1 0003aa00: 31 39 33 46 65 74 63 68 65 72 22 2c 72 65 71 75 193Fetcher",requ 0003aa10: 65 73 74 3a 72 2c 72 65 73 70 6f 6e 73 65 3a 65 est:r,response:e 0003aa20: 2c 70 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 ,provider:this}) 0003aa30: 2c 65 29 29 2c 28 65 3d 3e 7b 74 68 72 6f 77 20 ,e)),(e=>{throw 0003aa40: 74 68 69 73 2e 65 6d 69 74 28 22 64 65 62 75 67 this.emit("debug 0003aa50: 22 2c 7b 61 63 74 69 6f 6e 3a 22 72 65 73 70 6f ",{action:"respo 0003aa60: 6e 73 65 22 2c 66 65 74 63 68 65 72 3a 22 45 69 nse",fetcher:"Ei 0003aa70: 70 31 31 39 33 46 65 74 63 68 65 72 22 2c 72 65 p1193Fetcher",re 0003aa80: 71 75 65 73 74 3a 72 2c 65 72 72 6f 72 3a 65 2c quest:r,error:e, 0003aa90: 70 72 6f 76 69 64 65 72 3a 74 68 69 73 7d 29 2c provider:this}), 0003aaa0: 65 7d 29 29 7d 7d 28 65 29 29 3a 65 2e 73 65 6e e}))}}(e)):e.sen 0003aab0: 64 41 73 79 6e 63 3f 72 3d 53 6c 28 30 2c 65 2e dAsync?r=Sl(0,e. 0003aac0: 73 65 6e 64 41 73 79 6e 63 2e 62 69 6e 64 28 65 sendAsync.bind(e 0003aad0: 29 29 3a 65 2e 73 65 6e 64 3f 72 3d 53 6c 28 30 )):e.send?r=Sl(0 0003aae0: 2c 65 2e 73 65 6e 64 2e 62 69 6e 64 28 65 29 29 ,e.send.bind(e)) 0003aaf0: 3a 79 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e :yl.throwArgumen 0003ab00: 74 45 72 72 6f 72 28 22 75 6e 73 75 70 70 6f 72 tError("unsuppor 0003ab10: 74 65 64 20 70 72 6f 76 69 64 65 72 22 2c 22 70 ted provider","p 0003ab20: 72 6f 76 69 64 65 72 22 2c 65 29 2c 6e 7c 7c 28 rovider",e),n||( 0003ab30: 6e 3d 22 75 6e 6b 6e 6f 77 6e 3a 22 29 29 2c 73 n="unknown:")),s 0003ab40: 75 70 65 72 28 6e 2c 74 29 2c 74 65 28 74 68 69 uper(n,t),te(thi 0003ab50: 73 2c 22 6a 73 6f 6e 52 70 63 46 65 74 63 68 46 s,"jsonRpcFetchF 0003ab60: 75 6e 63 22 2c 72 29 2c 74 65 28 74 68 69 73 2c unc",r),te(this, 0003ab70: 22 70 72 6f 76 69 64 65 72 22 2c 6f 29 7d 73 65 "provider",o)}se 0003ab80: 6e 64 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 74 nd(e,t){return t 0003ab90: 68 69 73 2e 6a 73 6f 6e 52 70 63 46 65 74 63 68 his.jsonRpcFetch 0003aba0: 46 75 6e 63 28 65 2c 74 29 7d 7d 63 6f 6e 73 74 Func(e,t)}}const 0003abb0: 20 5f 6c 3d 6e 65 77 20 79 28 41 61 29 3b 66 75 _l=new y(Aa);fu 0003abc0: 6e 63 74 69 6f 6e 20 77 6c 28 65 2c 74 29 7b 69 nction wl(e,t){i 0003abd0: 66 28 6e 75 6c 6c 3d 3d 65 26 26 28 65 3d 22 68 f(null==e&&(e="h 0003abe0: 6f 6d 65 73 74 65 61 64 22 29 2c 22 73 74 72 69 omestead"),"stri 0003abf0: 6e 67 22 3d 3d 74 79 70 65 6f 66 20 65 29 7b 63 ng"==typeof e){c 0003ac00: 6f 6e 73 74 20 74 3d 65 2e 6d 61 74 63 68 28 2f onst t=e.match(/ 0003ac10: 5e 28 77 73 7c 68 74 74 70 29 73 3f 3a 2f 69 29 ^(ws|http)s?:/i) 0003ac20: 3b 69 66 28 74 29 73 77 69 74 63 68 28 74 5b 31 ;if(t)switch(t[1 0003ac30: 5d 2e 74 6f 4c 6f 77 65 72 43 61 73 65 28 29 29 ].toLowerCase()) 0003ac40: 7b 63 61 73 65 22 68 74 74 70 22 3a 63 61 73 65 {case"http":case 0003ac50: 22 68 74 74 70 73 22 3a 72 65 74 75 72 6e 20 6e "https":return n 0003ac60: 65 77 20 67 73 28 65 29 3b 63 61 73 65 22 77 73 ew gs(e);case"ws 0003ac70: 22 3a 63 61 73 65 22 77 73 73 22 3a 72 65 74 75 ":case"wss":retu 0003ac80: 72 6e 20 6e 65 77 20 45 73 28 65 29 3b 64 65 66 rn new Es(e);def 0003ac90: 61 75 6c 74 3a 5f 6c 2e 74 68 72 6f 77 41 72 67 ault:_l.throwArg 0003aca0: 75 6d 65 6e 74 45 72 72 6f 72 28 22 75 6e 73 75 umentError("unsu 0003acb0: 70 70 6f 72 74 65 64 20 55 52 4c 20 73 63 68 65 pported URL sche 0003acc0: 6d 65 22 2c 22 6e 65 74 77 6f 72 6b 22 2c 65 29 me","network",e) 0003acd0: 7d 7d 63 6f 6e 73 74 20 6e 3d 42 69 28 65 29 3b }}const n=Bi(e); 0003ace0: 72 65 74 75 72 6e 20 6e 26 26 6e 2e 5f 64 65 66 return n&&n._def 0003acf0: 61 75 6c 74 50 72 6f 76 69 64 65 72 7c 7c 5f 6c aultProvider||_l 0003ad00: 2e 74 68 72 6f 77 45 72 72 6f 72 28 22 75 6e 73 .throwError("uns 0003ad10: 75 70 70 6f 72 74 65 64 20 67 65 74 44 65 66 61 upported getDefa 0003ad20: 75 6c 74 50 72 6f 76 69 64 65 72 20 6e 65 74 77 ultProvider netw 0003ad30: 6f 72 6b 22 2c 79 2e 65 72 72 6f 72 73 2e 4e 45 ork",y.errors.NE 0003ad40: 54 57 4f 52 4b 5f 45 52 52 4f 52 2c 7b 6f 70 65 TWORK_ERROR,{ope 0003ad50: 72 61 74 69 6f 6e 3a 22 67 65 74 44 65 66 61 75 ration:"getDefau 0003ad60: 6c 74 50 72 6f 76 69 64 65 72 22 2c 6e 65 74 77 ltProvider",netw 0003ad70: 6f 72 6b 3a 65 7d 29 2c 6e 2e 5f 64 65 66 61 75 ork:e}),n._defau 0003ad80: 6c 74 50 72 6f 76 69 64 65 72 28 7b 46 61 6c 6c ltProvider({Fall 0003ad90: 62 61 63 6b 50 72 6f 76 69 64 65 72 3a 61 6c 2c backProvider:al, 0003ada0: 41 6c 63 68 65 6d 79 50 72 6f 76 69 64 65 72 3a AlchemyProvider: 0003adb0: 49 73 2c 41 6e 6b 72 50 72 6f 76 69 64 65 72 3a Is,AnkrProvider: 0003adc0: 50 73 2c 43 6c 6f 75 64 66 6c 61 72 65 50 72 6f Ps,CloudflarePro 0003add0: 76 69 64 65 72 3a 4c 73 2c 45 74 68 65 72 73 63 vider:Ls,Ethersc 0003ade0: 61 6e 50 72 6f 76 69 64 65 72 3a 56 73 2c 49 6e anProvider:Vs,In 0003adf0: 66 75 72 61 50 72 6f 76 69 64 65 72 3a 64 6c 2c furaProvider:dl, 0003ae00: 4a 73 6f 6e 52 70 63 50 72 6f 76 69 64 65 72 3a JsonRpcProvider: 0003ae10: 67 73 2c 4e 6f 64 65 73 6d 69 74 68 50 72 6f 76 gs,NodesmithProv 0003ae20: 69 64 65 72 3a 68 6c 2c 50 6f 63 6b 65 74 50 72 ider:hl,PocketPr 0003ae30: 6f 76 69 64 65 72 3a 62 6c 2c 57 65 62 33 50 72 ovider:bl,Web3Pr 0003ae40: 6f 76 69 64 65 72 3a 45 6c 2c 49 70 63 50 72 6f ovider:El,IpcPro 0003ae50: 76 69 64 65 72 3a 73 6c 7d 2c 74 29 7d 63 6f 6e vider:sl},t)}con 0003ae60: 73 74 20 78 6c 3d 6e 65 77 20 52 65 67 45 78 70 st xl=new RegExp 0003ae70: 28 22 5e 62 79 74 65 73 28 5b 30 2d 39 5d 2b 29 ("^bytes([0-9]+) 0003ae80: 24 22 29 2c 54 6c 3d 6e 65 77 20 52 65 67 45 78 $"),Tl=new RegEx 0003ae90: 70 28 22 5e 28 75 3f 69 6e 74 29 28 5b 30 2d 39 p("^(u?int)([0-9 0003aea0: 5d 2a 29 24 22 29 2c 43 6c 3d 6e 65 77 20 52 65 ]*)$"),Cl=new Re 0003aeb0: 67 45 78 70 28 22 5e 28 2e 2a 29 5c 5c 5b 28 5b gExp("^(.*)\\[([ 0003aec0: 30 2d 39 5d 2a 29 5c 5c 5d 24 22 29 2c 41 6c 3d 0-9]*)\\]$"),Al= 0003aed0: 22 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 "000000000000000 0003aee0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0003aef0: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0003af00: 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 0000000000000000 0003af10: 30 22 2c 6b 6c 3d 6e 65 77 20 79 28 22 73 6f 6c 0",kl=new y("sol 0003af20: 69 64 69 74 79 2f 35 2e 37 2e 30 22 29 3b 66 75 idity/5.7.0");fu 0003af30: 6e 63 74 69 6f 6e 20 49 6c 28 65 2c 74 2c 6e 29 nction Il(e,t,n) 0003af40: 7b 73 77 69 74 63 68 28 65 29 7b 63 61 73 65 22 {switch(e){case" 0003af50: 61 64 64 72 65 73 73 22 3a 72 65 74 75 72 6e 20 address":return 0003af60: 6e 3f 6b 28 74 2c 33 32 29 3a 54 28 74 29 3b 63 n?k(t,32):T(t);c 0003af70: 61 73 65 22 73 74 72 69 6e 67 22 3a 72 65 74 75 ase"string":retu 0003af80: 72 6e 20 71 65 28 74 29 3b 63 61 73 65 22 62 79 rn qe(t);case"by 0003af90: 74 65 73 22 3a 72 65 74 75 72 6e 20 54 28 74 29 tes":return T(t) 0003afa0: 3b 63 61 73 65 22 62 6f 6f 6c 22 3a 72 65 74 75 ;case"bool":retu 0003afb0: 72 6e 20 74 3d 74 3f 22 30 78 30 31 22 3a 22 30 rn t=t?"0x01":"0 0003afc0: 78 30 30 22 2c 6e 3f 6b 28 74 2c 33 32 29 3a 54 x00",n?k(t,32):T 0003afd0: 28 74 29 7d 6c 65 74 20 72 3d 65 2e 6d 61 74 63 (t)}let r=e.matc 0003afe0: 68 28 54 6c 29 3b 69 66 28 72 29 7b 6c 65 74 20 h(Tl);if(r){let 0003aff0: 6f 3d 70 61 72 73 65 49 6e 74 28 72 5b 32 5d 7c o=parseInt(r[2]| 0003b000: 7c 22 32 35 36 22 29 3b 72 65 74 75 72 6e 28 72 |"256");return(r 0003b010: 5b 32 5d 26 26 53 74 72 69 6e 67 28 6f 29 21 3d [2]&&String(o)!= 0003b020: 3d 72 5b 32 5d 7c 7c 6f 25 38 21 3d 30 7c 7c 30 =r[2]||o%8!=0||0 0003b030: 3d 3d 3d 6f 7c 7c 6f 3e 32 35 36 29 26 26 6b 6c ===o||o>256)&&kl 0003b040: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 0003b050: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 6e 75 6d ror("invalid num 0003b060: 62 65 72 20 74 79 70 65 22 2c 22 74 79 70 65 22 ber type","type" 0003b070: 2c 65 29 2c 6e 26 26 28 6f 3d 32 35 36 29 2c 6b ,e),n&&(o=256),k 0003b080: 28 74 3d 59 2e 66 72 6f 6d 28 74 29 2e 74 6f 54 (t=Y.from(t).toT 0003b090: 77 6f 73 28 6f 29 2c 6f 2f 38 29 7d 69 66 28 72 wos(o),o/8)}if(r 0003b0a0: 3d 65 2e 6d 61 74 63 68 28 78 6c 29 2c 72 29 7b =e.match(xl),r){ 0003b0b0: 63 6f 6e 73 74 20 6f 3d 70 61 72 73 65 49 6e 74 const o=parseInt 0003b0c0: 28 72 5b 31 5d 29 3b 72 65 74 75 72 6e 28 53 74 (r[1]);return(St 0003b0d0: 72 69 6e 67 28 6f 29 21 3d 3d 72 5b 31 5d 7c 7c ring(o)!==r[1]|| 0003b0e0: 30 3d 3d 3d 6f 7c 7c 6f 3e 33 32 29 26 26 6b 6c 0===o||o>32)&&kl 0003b0f0: 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 .throwArgumentEr 0003b100: 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 62 79 74 ror("invalid byt 0003b110: 65 73 20 74 79 70 65 22 2c 22 74 79 70 65 22 2c es type","type", 0003b120: 65 29 2c 54 28 74 29 2e 62 79 74 65 4c 65 6e 67 e),T(t).byteLeng 0003b130: 74 68 21 3d 3d 6f 26 26 6b 6c 2e 74 68 72 6f 77 th!==o&&kl.throw 0003b140: 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 28 60 69 ArgumentError(`i 0003b150: 6e 76 61 6c 69 64 20 76 61 6c 75 65 20 66 6f 72 nvalid value for 0003b160: 20 24 7b 65 7d 60 2c 22 76 61 6c 75 65 22 2c 74 ${e}`,"value",t 0003b170: 29 2c 6e 3f 54 28 28 74 2b 41 6c 29 2e 73 75 62 ),n?T((t+Al).sub 0003b180: 73 74 72 69 6e 67 28 30 2c 36 36 29 29 3a 74 7d string(0,66)):t} 0003b190: 69 66 28 72 3d 65 2e 6d 61 74 63 68 28 43 6c 29 if(r=e.match(Cl) 0003b1a0: 2c 72 26 26 41 72 72 61 79 2e 69 73 41 72 72 61 ,r&&Array.isArra 0003b1b0: 79 28 74 29 29 7b 63 6f 6e 73 74 20 6e 3d 72 5b y(t)){const n=r[ 0003b1c0: 31 5d 3b 70 61 72 73 65 49 6e 74 28 72 5b 32 5d 1];parseInt(r[2] 0003b1d0: 7c 7c 53 74 72 69 6e 67 28 74 2e 6c 65 6e 67 74 ||String(t.lengt 0003b1e0: 68 29 29 21 3d 74 2e 6c 65 6e 67 74 68 26 26 6b h))!=t.length&&k 0003b1f0: 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 l.throwArgumentE 0003b200: 72 72 6f 72 28 60 69 6e 76 61 6c 69 64 20 61 72 rror(`invalid ar 0003b210: 72 61 79 20 6c 65 6e 67 74 68 20 66 6f 72 20 24 ray length for $ 0003b220: 7b 65 7d 60 2c 22 76 61 6c 75 65 22 2c 74 29 3b {e}`,"value",t); 0003b230: 63 6f 6e 73 74 20 6f 3d 5b 5d 3b 72 65 74 75 72 const o=[];retur 0003b240: 6e 20 74 2e 66 6f 72 45 61 63 68 28 28 66 75 6e n t.forEach((fun 0003b250: 63 74 69 6f 6e 28 65 29 7b 6f 2e 70 75 73 68 28 ction(e){o.push( 0003b260: 49 6c 28 6e 2c 65 2c 21 30 29 29 7d 29 29 2c 43 Il(n,e,!0))})),C 0003b270: 28 6f 29 7d 72 65 74 75 72 6e 20 6b 6c 2e 74 68 (o)}return kl.th 0003b280: 72 6f 77 41 72 67 75 6d 65 6e 74 45 72 72 6f 72 rowArgumentError 0003b290: 28 22 69 6e 76 61 6c 69 64 20 74 79 70 65 22 2c ("invalid type", 0003b2a0: 22 74 79 70 65 22 2c 65 29 7d 66 75 6e 63 74 69 "type",e)}functi 0003b2b0: 6f 6e 20 4f 6c 28 65 2c 74 29 7b 65 2e 6c 65 6e on Ol(e,t){e.len 0003b2c0: 67 74 68 21 3d 74 2e 6c 65 6e 67 74 68 26 26 6b gth!=t.length&&k 0003b2d0: 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 45 l.throwArgumentE 0003b2e0: 72 72 6f 72 28 22 77 72 6f 6e 67 20 6e 75 6d 62 rror("wrong numb 0003b2f0: 65 72 20 6f 66 20 76 61 6c 75 65 73 3b 20 65 78 er of values; ex 0003b300: 70 65 63 74 65 64 20 24 7b 20 74 79 70 65 73 2e pected ${ types. 0003b310: 6c 65 6e 67 74 68 20 7d 22 2c 22 76 61 6c 75 65 length }","value 0003b320: 73 22 2c 74 29 3b 63 6f 6e 73 74 20 6e 3d 5b 5d s",t);const n=[] 0003b330: 3b 72 65 74 75 72 6e 20 65 2e 66 6f 72 45 61 63 ;return e.forEac 0003b340: 68 28 28 66 75 6e 63 74 69 6f 6e 28 65 2c 72 29 h((function(e,r) 0003b350: 7b 6e 2e 70 75 73 68 28 49 6c 28 65 2c 74 5b 72 {n.push(Il(e,t[r 0003b360: 5d 29 29 7d 29 29 2c 52 28 43 28 6e 29 29 7d 66 ]))})),R(C(n))}f 0003b370: 75 6e 63 74 69 6f 6e 20 52 6c 28 65 2c 74 29 7b unction Rl(e,t){ 0003b380: 72 65 74 75 72 6e 20 76 65 28 4f 6c 28 65 2c 74 return ve(Ol(e,t 0003b390: 29 29 7d 66 75 6e 63 74 69 6f 6e 20 4e 6c 28 65 ))}function Nl(e 0003b3a0: 2c 74 29 7b 72 65 74 75 72 6e 20 45 6f 28 4f 6c ,t){return Eo(Ol 0003b3b0: 28 65 2c 74 29 29 7d 66 75 6e 63 74 69 6f 6e 20 (e,t))}function 0003b3c0: 50 6c 28 65 2c 74 29 7b 74 7c 7c 28 74 3d 66 75 Pl(e,t){t||(t=fu 0003b3d0: 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e nction(e){return 0003b3e0: 5b 70 61 72 73 65 49 6e 74 28 65 2c 31 36 29 5d [parseInt(e,16)] 0003b3f0: 7d 29 3b 6c 65 74 20 6e 3d 30 2c 72 3d 7b 7d 3b });let n=0,r={}; 0003b400: 72 65 74 75 72 6e 20 65 2e 73 70 6c 69 74 28 22 return e.split(" 0003b410: 2c 22 29 2e 66 6f 72 45 61 63 68 28 28 65 3d 3e ,").forEach((e=> 0003b420: 7b 6c 65 74 20 6f 3d 65 2e 73 70 6c 69 74 28 22 {let o=e.split(" 0003b430: 3a 22 29 3b 6e 2b 3d 70 61 72 73 65 49 6e 74 28 :");n+=parseInt( 0003b440: 6f 5b 30 5d 2c 31 36 29 2c 72 5b 6e 5d 3d 74 28 o[0],16),r[n]=t( 0003b450: 6f 5b 31 5d 29 7d 29 29 2c 72 7d 66 75 6e 63 74 o[1])})),r}funct 0003b460: 69 6f 6e 20 4d 6c 28 65 29 7b 6c 65 74 20 74 3d ion Ml(e){let t= 0003b470: 30 3b 72 65 74 75 72 6e 20 65 2e 73 70 6c 69 74 0;return e.split 0003b480: 28 22 2c 22 29 2e 6d 61 70 28 28 65 3d 3e 7b 6c (",").map((e=>{l 0003b490: 65 74 20 6e 3d 65 2e 73 70 6c 69 74 28 22 2d 22 et n=e.split("-" 0003b4a0: 29 3b 31 3d 3d 3d 6e 2e 6c 65 6e 67 74 68 3f 6e );1===n.length?n 0003b4b0: 5b 31 5d 3d 22 30 22 3a 22 22 3d 3d 3d 6e 5b 31 [1]="0":""===n[1 0003b4c0: 5d 26 26 28 6e 5b 31 5d 3d 22 31 22 29 3b 6c 65 ]&&(n[1]="1");le 0003b4d0: 74 20 72 3d 74 2b 70 61 72 73 65 49 6e 74 28 6e t r=t+parseInt(n 0003b4e0: 5b 30 5d 2c 31 36 29 3b 72 65 74 75 72 6e 20 74 [0],16);return t 0003b4f0: 3d 70 61 72 73 65 49 6e 74 28 6e 5b 31 5d 2c 31 =parseInt(n[1],1 0003b500: 36 29 2c 7b 6c 3a 72 2c 68 3a 74 7d 7d 29 29 7d 6),{l:r,h:t}}))} 0003b510: 66 75 6e 63 74 69 6f 6e 20 44 6c 28 65 2c 74 29 function Dl(e,t) 0003b520: 7b 6c 65 74 20 6e 3d 30 3b 66 6f 72 28 6c 65 74 {let n=0;for(let 0003b530: 20 72 3d 30 3b 72 3c 74 2e 6c 65 6e 67 74 68 3b r=0;r<t.length; 0003b540: 72 2b 2b 29 7b 6c 65 74 20 6f 3d 74 5b 72 5d 3b r++){let o=t[r]; 0003b550: 69 66 28 6e 2b 3d 6f 2e 6c 2c 65 3e 3d 6e 26 26 if(n+=o.l,e>=n&& 0003b560: 65 3c 3d 6e 2b 6f 2e 68 26 26 28 65 2d 6e 29 25 e<=n+o.h&&(e-n)% 0003b570: 28 6f 2e 64 7c 7c 31 29 3d 3d 30 29 7b 69 66 28 (o.d||1)==0){if( 0003b580: 6f 2e 65 26 26 2d 31 21 3d 3d 6f 2e 65 2e 69 6e o.e&&-1!==o.e.in 0003b590: 64 65 78 4f 66 28 65 2d 6e 29 29 63 6f 6e 74 69 dexOf(e-n))conti 0003b5a0: 6e 75 65 3b 72 65 74 75 72 6e 20 6f 7d 7d 72 65 nue;return o}}re 0003b5b0: 74 75 72 6e 20 6e 75 6c 6c 7d 63 6f 6e 73 74 20 turn null}const 0003b5c0: 4c 6c 3d 4d 6c 28 22 32 32 31 2c 31 33 2d 31 62 Ll=Ml("221,13-1b 0003b5d0: 2c 35 66 2d 2c 34 30 2d 31 30 2c 35 31 2d 66 2c ,5f-,40-10,51-f, 0003b5e0: 31 31 2d 33 2c 33 2d 33 2c 32 2d 32 2c 32 2d 34 11-3,3-3,2-2,2-4 0003b5f0: 2c 38 2c 32 2c 31 35 2c 32 64 2c 32 38 2d 38 2c ,8,2,15,2d,28-8, 0003b600: 38 38 2c 34 38 2c 32 37 2d 2c 33 2d 35 2c 31 31 88,48,27-,3-5,11 0003b610: 2d 32 30 2c 32 37 2d 2c 38 2c 32 38 2c 33 2d 35 -20,27-,8,28,3-5 0003b620: 2c 31 32 2c 31 38 2c 62 2d 61 2c 31 63 2d 34 2c ,12,18,b-a,1c-4, 0003b630: 36 2d 31 36 2c 32 2d 64 2c 32 2d 32 2c 32 2c 31 6-16,2-d,2-2,2,1 0003b640: 62 2d 34 2c 31 37 2d 39 2c 38 66 2d 2c 31 30 2c b-4,17-9,8f-,10, 0003b650: 66 2c 31 66 2d 32 2c 31 63 2d 33 34 2c 33 33 2d f,1f-2,1c-34,33- 0003b660: 31 34 65 2c 34 2c 33 36 2d 2c 31 33 2d 2c 36 2d 14e,4,36-,13-,6- 0003b670: 32 2c 31 61 2d 66 2c 34 2c 39 2d 2c 33 2d 2c 31 2,1a-f,4,9-,3-,1 0003b680: 37 2c 38 2c 32 2d 32 2c 35 2d 2c 32 2c 38 2d 2c 7,8,2-2,5-,2,8-, 0003b690: 33 2d 2c 34 2d 38 2c 32 2d 33 2c 33 2c 36 2d 2c 3-,4-8,2-3,3,6-, 0003b6a0: 31 36 2d 36 2c 32 2d 2c 37 2d 33 2c 33 2d 2c 31 16-6,2-,7-3,3-,1 0003b6b0: 37 2c 38 2c 33 2c 33 2c 33 2d 2c 32 2c 36 2d 33 7,8,3,3,3-,2,6-3 0003b6c0: 2c 33 2d 2c 34 2d 61 2c 35 2c 32 2d 36 2c 31 30 ,3-,4-a,5,2-6,10 0003b6d0: 2d 62 2c 34 2c 38 2c 32 2c 34 2c 31 37 2c 38 2c -b,4,8,2,4,17,8, 0003b6e0: 33 2c 36 2d 2c 62 2c 34 2c 34 2d 2c 32 2d 65 2c 3,6-,b,4,4-,2-e, 0003b6f0: 32 2d 34 2c 62 2d 31 30 2c 34 2c 39 2d 2c 33 2d 2-4,b-10,4,9-,3- 0003b700: 2c 31 37 2c 38 2c 33 2d 2c 35 2d 2c 39 2d 32 2c ,17,8,3-,5-,9-2, 0003b710: 33 2d 2c 34 2d 37 2c 33 2d 33 2c 33 2c 34 2d 33 3-,4-7,3-3,3,4-3 0003b720: 2c 63 2d 31 30 2c 33 2c 37 2d 32 2c 34 2c 35 2d ,c-10,3,7-2,4,5- 0003b730: 32 2c 33 2c 32 2c 33 2d 32 2c 33 2d 32 2c 34 2d 2,3,2,3-2,3-2,4- 0003b740: 32 2c 39 2c 34 2d 33 2c 36 2d 32 2c 34 2c 35 2d 2,9,4-3,6-2,4,5- 0003b750: 38 2c 32 2d 65 2c 64 2d 64 2c 34 2c 39 2c 34 2c 8,2-e,d-d,4,9,4, 0003b760: 31 38 2c 62 2c 36 2d 33 2c 38 2c 34 2c 35 2d 36 18,b,6-3,8,4,5-6 0003b770: 2c 33 2d 38 2c 33 2d 33 2c 62 2d 31 31 2c 33 2c ,3-8,3-3,b-11,3, 0003b780: 39 2c 34 2c 31 38 2c 62 2c 36 2d 33 2c 38 2c 34 9,4,18,b,6-3,8,4 0003b790: 2c 35 2d 36 2c 33 2d 36 2c 32 2c 33 2d 33 2c 62 ,5-6,3-6,2,3-3,b 0003b7a0: 2d 31 31 2c 33 2c 39 2c 34 2c 31 38 2c 31 31 2d -11,3,9,4,18,11- 0003b7b0: 33 2c 37 2d 2c 34 2c 35 2d 38 2c 32 2d 37 2c 33 3,7-,4,5-8,2-7,3 0003b7c0: 2d 33 2c 62 2d 31 31 2c 33 2c 31 33 2d 32 2c 31 -3,b-11,3,13-2,1 0003b7d0: 39 2c 61 2c 32 2d 2c 38 2d 32 2c 32 2d 33 2c 37 9,a,2-,8-2,2-3,7 0003b7e0: 2c 32 2c 39 2d 31 31 2c 34 2d 62 2c 33 62 2d 33 ,2,9-11,4-b,3b-3 0003b7f0: 2c 31 65 2d 32 34 2c 33 2c 32 2d 2c 33 2c 32 2d ,1e-24,3,2-,3,2- 0003b800: 2c 32 2d 35 2c 35 2c 38 2c 34 2c 32 2c 32 2d 2c ,2-5,5,8,4,2,2-, 0003b810: 33 2c 65 2c 34 2d 2c 36 2c 32 2c 37 2d 2c 62 2d 3,e,4-,6,2,7-,b- 0003b820: 2c 33 2d 32 31 2c 34 39 2c 32 33 2d 35 2c 31 63 ,3-21,49,23-5,1c 0003b830: 2d 33 2c 39 2c 32 35 2c 31 30 2d 2c 32 2d 32 66 -3,9,25,10-,2-2f 0003b840: 2c 32 33 2c 36 2c 33 2c 38 2d 32 2c 35 2d 35 2c ,23,6,3,8-2,5-5, 0003b850: 31 62 2d 34 35 2c 32 37 2d 39 2c 32 61 2d 2c 32 1b-45,27-9,2a-,2 0003b860: 2d 33 2c 35 62 2d 34 2c 34 35 2d 34 2c 35 33 2d -3,5b-4,45-4,53- 0003b870: 35 2c 38 2c 34 30 2c 32 2c 35 2d 2c 38 2c 32 2c 5,8,40,2,5-,8,2, 0003b880: 35 2d 2c 32 38 2c 32 2c 35 2d 2c 32 30 2c 32 2c 5-,28,2,5-,20,2, 0003b890: 35 2d 2c 38 2c 32 2c 35 2d 2c 38 2c 38 2c 31 38 5-,8,2,5-,8,8,18 0003b8a0: 2c 32 30 2c 32 2c 35 2d 2c 38 2c 32 38 2c 31 34 ,20,2,5-,8,28,14 0003b8b0: 2d 35 2c 31 64 2d 32 32 2c 35 36 2d 62 2c 32 37 -5,1d-22,56-b,27 0003b8c0: 37 2d 38 2c 31 65 2d 32 2c 35 32 2d 65 2c 65 2c 7-8,1e-2,52-e,e, 0003b8d0: 38 2d 61 2c 31 38 2d 38 2c 31 35 2d 62 2c 65 2c 8-a,18-8,15-b,e, 0003b8e0: 34 2c 33 2d 62 2c 35 65 2d 32 2c 62 2d 31 35 2c 4,3-b,5e-2,b-15, 0003b8f0: 31 30 2c 62 2d 35 2c 35 39 2d 37 2c 32 62 2d 35 10,b-5,59-7,2b-5 0003b900: 35 35 2c 39 64 2d 33 2c 35 62 2d 35 2c 31 37 2d 55,9d-3,5b-5,17- 0003b910: 2c 37 2d 2c 32 37 2d 2c 37 2d 2c 39 2c 32 2c 32 ,7-,27-,7-,9,2,2 0003b920: 2c 32 2c 32 30 2d 2c 33 36 2c 31 30 2c 66 2d 2c ,2,20-,36,10,f-, 0003b930: 37 2c 31 34 2d 2c 34 2c 61 2c 35 34 2d 33 2c 32 7,14-,4,a,54-3,2 0003b940: 2d 36 2c 36 2d 35 2c 39 2d 2c 31 63 2d 31 30 2c -6,6-5,9-,1c-10, 0003b950: 31 33 2d 31 64 2c 31 63 2d 31 34 2c 33 63 2d 2c 13-1d,1c-14,3c-, 0003b960: 31 30 2d 36 2c 33 32 2d 62 2c 32 34 30 2d 33 30 10-6,32-b,240-30 0003b970: 2c 32 38 2d 31 38 2c 63 2d 31 34 2c 61 30 2c 31 ,28-18,c-14,a0,1 0003b980: 31 35 2d 2c 33 2c 36 36 2d 2c 62 2d 37 36 2c 35 15-,3,66-,b-76,5 0003b990: 2c 35 2d 2c 31 64 2c 32 34 2c 32 2c 35 2d 32 2c ,5-,1d,24,2,5-2, 0003b9a0: 32 2c 38 2d 2c 33 35 2d 32 2c 31 39 2c 66 2d 31 2,8-,35-2,19,f-1 0003b9b0: 30 2c 31 64 2d 33 2c 33 31 31 2d 33 37 66 2c 31 0,1d-3,311-37f,1 0003b9c0: 62 2c 35 61 2d 62 2c 64 37 2d 31 39 2c 64 2d 33 b,5a-b,d7-19,d-3 0003b9d0: 2c 34 31 2c 35 37 2d 2c 36 38 2d 34 2c 32 39 2d ,41,57-,68-4,29- 0003b9e0: 33 2c 35 66 2c 32 39 2d 33 37 2c 32 65 2d 32 2c 3,5f,29-37,2e-2, 0003b9f0: 32 35 2d 63 2c 32 63 2d 32 2c 34 65 2d 33 2c 33 25-c,2c-2,4e-3,3 0003ba00: 30 2c 37 38 2d 33 2c 36 34 2d 2c 32 30 2c 31 39 0,78-3,64-,20,19 0003ba10: 62 37 2d 34 39 2c 35 31 61 37 2d 35 39 2c 34 38 b7-49,51a7-59,48 0003ba20: 65 2d 32 2c 33 38 2d 37 33 38 2c 32 62 61 35 2d e-2,38-738,2ba5- 0003ba30: 35 62 2c 32 32 32 66 2d 2c 33 63 2d 39 34 2c 38 5b,222f-,3c-94,8 0003ba40: 2d 62 2c 36 2d 34 2c 31 62 2c 36 2c 32 2c 33 2c -b,6-4,1b,6,2,3, 0003ba50: 33 2c 36 64 2d 32 30 2c 31 36 65 2d 66 2c 34 31 3,6d-20,16e-f,41 0003ba60: 2d 2c 33 37 2d 37 2c 32 65 2d 32 2c 31 31 2d 66 -,37-7,2e-2,11-f 0003ba70: 2c 35 2d 62 2c 31 38 2d 2c 62 2c 31 34 2c 35 2d ,5-b,18-,b,14,5- 0003ba80: 33 2c 36 2c 38 38 2d 2c 32 2c 62 66 2d 32 2c 37 3,6,88-,2,bf-2,7 0003ba90: 2d 2c 37 2d 2c 37 2d 2c 34 2d 32 2c 38 2c 38 2d -,7-,7-,4-2,8,8- 0003baa0: 39 2c 38 2d 32 66 66 2c 32 30 2c 35 2d 62 2c 31 9,8-2ff,20,5-b,1 0003bab0: 63 2d 62 34 2c 32 37 2d 2c 32 37 2d 63 62 62 31 c-b4,27-,27-cbb1 0003bac0: 2c 66 37 2d 39 2c 32 38 2d 32 2c 62 35 2d 32 32 ,f7-9,28-2,b5-22 0003bad0: 31 2c 35 36 2c 34 38 2c 33 2d 2c 32 2d 2c 33 2d 1,56,48,3-,2-,3- 0003bae0: 2c 35 2c 64 2c 32 2c 35 2c 33 2c 34 32 2c 35 2d ,5,d,2,5,3,42,5- 0003baf0: 2c 39 2c 38 2c 31 64 2c 35 2c 36 2c 32 2d 32 2c ,9,8,1d,5,6,2-2, 0003bb00: 38 2c 31 35 33 2d 33 2c 31 32 33 2d 33 2c 33 33 8,153-3,123-3,33 0003bb10: 2d 32 37 66 64 2c 61 36 64 61 2d 35 31 32 38 2c -27fd,a6da-5128, 0003bb20: 32 31 66 2d 35 64 66 2c 33 2d 66 66 66 64 2c 33 21f-5df,3-fffd,3 0003bb30: 2d 66 66 66 64 2c 33 2d 66 66 66 64 2c 33 2d 66 -fffd,3-fffd,3-f 0003bb40: 66 66 64 2c 33 2d 66 66 66 64 2c 33 2d 66 66 66 ffd,3-fffd,3-fff 0003bb50: 64 2c 33 2d 66 66 66 64 2c 33 2d 66 66 66 64 2c d,3-fffd,3-fffd, 0003bb60: 33 2d 66 66 66 64 2c 33 2d 66 66 66 64 2c 33 2d 3-fffd,3-fffd,3- 0003bb70: 66 66 66 64 2c 33 2c 32 2d 31 64 2c 36 31 2d 66 fffd,3,2-1d,61-f 0003bb80: 66 37 64 22 29 2c 46 6c 3d 22 61 64 2c 33 34 66 f7d"),Fl="ad,34f 0003bb90: 2c 31 38 30 36 2c 31 38 30 62 2c 31 38 30 63 2c ,1806,180b,180c, 0003bba0: 31 38 30 64 2c 32 30 30 62 2c 32 30 30 63 2c 32 180d,200b,200c,2 0003bbb0: 30 30 64 2c 32 30 36 30 2c 66 65 66 66 22 2e 73 00d,2060,feff".s 0003bbc0: 70 6c 69 74 28 22 2c 22 29 2e 6d 61 70 28 28 65 plit(",").map((e 0003bbd0: 3d 3e 70 61 72 73 65 49 6e 74 28 65 2c 31 36 29 =>parseInt(e,16) 0003bbe0: 29 29 2c 55 6c 3d 5b 7b 68 3a 32 35 2c 73 3a 33 )),Ul=[{h:25,s:3 0003bbf0: 32 2c 6c 3a 36 35 7d 2c 7b 68 3a 33 30 2c 73 3a 2,l:65},{h:30,s: 0003bc00: 33 32 2c 65 3a 5b 32 33 5d 2c 6c 3a 31 32 37 7d 32,e:[23],l:127} 0003bc10: 2c 7b 68 3a 35 34 2c 73 3a 31 2c 65 3a 5b 34 38 ,{h:54,s:1,e:[48 0003bc20: 5d 2c 6c 3a 36 34 2c 64 3a 32 7d 2c 7b 68 3a 31 ],l:64,d:2},{h:1 0003bc30: 34 2c 73 3a 31 2c 6c 3a 35 37 2c 64 3a 32 7d 2c 4,s:1,l:57,d:2}, 0003bc40: 7b 68 3a 34 34 2c 73 3a 31 2c 6c 3a 31 37 2c 64 {h:44,s:1,l:17,d 0003bc50: 3a 32 7d 2c 7b 68 3a 31 30 2c 73 3a 31 2c 65 3a :2},{h:10,s:1,e: 0003bc60: 5b 32 2c 36 2c 38 5d 2c 6c 3a 36 31 2c 64 3a 32 [2,6,8],l:61,d:2 0003bc70: 7d 2c 7b 68 3a 31 36 2c 73 3a 31 2c 6c 3a 36 38 },{h:16,s:1,l:68 0003bc80: 2c 64 3a 32 7d 2c 7b 68 3a 38 34 2c 73 3a 31 2c ,d:2},{h:84,s:1, 0003bc90: 65 3a 5b 31 38 2c 32 34 2c 36 36 5d 2c 6c 3a 31 e:[18,24,66],l:1 0003bca0: 39 2c 64 3a 32 7d 2c 7b 68 3a 32 36 2c 73 3a 33 9,d:2},{h:26,s:3 0003bcb0: 32 2c 65 3a 5b 31 37 5d 2c 6c 3a 34 33 35 7d 2c 2,e:[17],l:435}, 0003bcc0: 7b 68 3a 32 32 2c 73 3a 31 2c 6c 3a 37 31 2c 64 {h:22,s:1,l:71,d 0003bcd0: 3a 32 7d 2c 7b 68 3a 31 35 2c 73 3a 38 30 2c 6c :2},{h:15,s:80,l 0003bce0: 3a 34 30 7d 2c 7b 68 3a 33 31 2c 73 3a 33 32 2c :40},{h:31,s:32, 0003bcf0: 6c 3a 31 36 7d 2c 7b 68 3a 33 32 2c 73 3a 31 2c l:16},{h:32,s:1, 0003bd00: 6c 3a 38 30 2c 64 3a 32 7d 2c 7b 68 3a 35 32 2c l:80,d:2},{h:52, 0003bd10: 73 3a 31 2c 6c 3a 34 32 2c 64 3a 32 7d 2c 7b 68 s:1,l:42,d:2},{h 0003bd20: 3a 31 32 2c 73 3a 31 2c 6c 3a 35 35 2c 64 3a 32 :12,s:1,l:55,d:2 0003bd30: 7d 2c 7b 68 3a 34 30 2c 73 3a 31 2c 65 3a 5b 33 },{h:40,s:1,e:[3 0003bd40: 38 5d 2c 6c 3a 31 35 2c 64 3a 32 7d 2c 7b 68 3a 8],l:15,d:2},{h: 0003bd50: 31 34 2c 73 3a 31 2c 6c 3a 34 38 2c 64 3a 32 7d 14,s:1,l:48,d:2} 0003bd60: 2c 7b 68 3a 33 37 2c 73 3a 34 38 2c 6c 3a 34 39 ,{h:37,s:48,l:49 0003bd70: 7d 2c 7b 68 3a 31 34 38 2c 73 3a 31 2c 6c 3a 36 },{h:148,s:1,l:6 0003bd80: 33 35 31 2c 64 3a 32 7d 2c 7b 68 3a 38 38 2c 73 351,d:2},{h:88,s 0003bd90: 3a 31 2c 6c 3a 31 36 30 2c 64 3a 32 7d 2c 7b 68 :1,l:160,d:2},{h 0003bda0: 3a 31 35 2c 73 3a 31 36 2c 6c 3a 37 30 34 7d 2c :15,s:16,l:704}, 0003bdb0: 7b 68 3a 32 35 2c 73 3a 32 36 2c 6c 3a 38 35 34 {h:25,s:26,l:854 0003bdc0: 7d 2c 7b 68 3a 32 35 2c 73 3a 33 32 2c 6c 3a 35 },{h:25,s:32,l:5 0003bdd0: 35 39 31 35 7d 2c 7b 68 3a 33 37 2c 73 3a 34 30 5915},{h:37,s:40 0003bde0: 2c 6c 3a 31 32 34 37 7d 2c 7b 68 3a 32 35 2c 73 ,l:1247},{h:25,s 0003bdf0: 3a 2d 31 31 39 37 31 31 2c 6c 3a 35 33 32 34 38 :-119711,l:53248 0003be00: 7d 2c 7b 68 3a 32 35 2c 73 3a 2d 31 31 39 37 36 },{h:25,s:-11976 0003be10: 33 2c 6c 3a 35 32 7d 2c 7b 68 3a 32 35 2c 73 3a 3,l:52},{h:25,s: 0003be20: 2d 31 31 39 38 31 35 2c 6c 3a 35 32 7d 2c 7b 68 -119815,l:52},{h 0003be30: 3a 32 35 2c 73 3a 2d 31 31 39 38 36 37 2c 65 3a :25,s:-119867,e: 0003be40: 5b 31 2c 34 2c 35 2c 37 2c 38 2c 31 31 2c 31 32 [1,4,5,7,8,11,12 0003be50: 2c 31 37 5d 2c 6c 3a 35 32 7d 2c 7b 68 3a 32 35 ,17],l:52},{h:25 0003be60: 2c 73 3a 2d 31 31 39 39 31 39 2c 6c 3a 35 32 7d ,s:-119919,l:52} 0003be70: 2c 7b 68 3a 32 34 2c 73 3a 2d 31 31 39 39 37 31 ,{h:24,s:-119971 0003be80: 2c 65 3a 5b 32 2c 37 2c 38 2c 31 37 5d 2c 6c 3a ,e:[2,7,8,17],l: 0003be90: 35 32 7d 2c 7b 68 3a 32 34 2c 73 3a 2d 31 32 30 52},{h:24,s:-120 0003bea0: 30 32 33 2c 65 3a 5b 32 2c 37 2c 31 33 2c 31 35 023,e:[2,7,13,15 0003beb0: 2c 31 36 2c 31 37 5d 2c 6c 3a 35 32 7d 2c 7b 68 ,16,17],l:52},{h 0003bec0: 3a 32 35 2c 73 3a 2d 31 32 30 30 37 35 2c 6c 3a :25,s:-120075,l: 0003bed0: 35 32 7d 2c 7b 68 3a 32 35 2c 73 3a 2d 31 32 30 52},{h:25,s:-120 0003bee0: 31 32 37 2c 6c 3a 35 32 7d 2c 7b 68 3a 32 35 2c 127,l:52},{h:25, 0003bef0: 73 3a 2d 31 32 30 31 37 39 2c 6c 3a 35 32 7d 2c s:-120179,l:52}, 0003bf00: 7b 68 3a 32 35 2c 73 3a 2d 31 32 30 32 33 31 2c {h:25,s:-120231, 0003bf10: 6c 3a 35 32 7d 2c 7b 68 3a 32 35 2c 73 3a 2d 31 l:52},{h:25,s:-1 0003bf20: 32 30 32 38 33 2c 6c 3a 35 32 7d 2c 7b 68 3a 32 20283,l:52},{h:2 0003bf30: 35 2c 73 3a 2d 31 32 30 33 33 35 2c 6c 3a 35 32 5,s:-120335,l:52 0003bf40: 7d 2c 7b 68 3a 32 34 2c 73 3a 2d 31 31 39 35 34 },{h:24,s:-11954 0003bf50: 33 2c 65 3a 5b 31 37 5d 2c 6c 3a 35 36 7d 2c 7b 3,e:[17],l:56},{ 0003bf60: 68 3a 32 34 2c 73 3a 2d 31 31 39 36 30 31 2c 65 h:24,s:-119601,e 0003bf70: 3a 5b 31 37 5d 2c 6c 3a 35 38 7d 2c 7b 68 3a 32 :[17],l:58},{h:2 0003bf80: 34 2c 73 3a 2d 31 31 39 36 35 39 2c 65 3a 5b 31 4,s:-119659,e:[1 0003bf90: 37 5d 2c 6c 3a 35 38 7d 2c 7b 68 3a 32 34 2c 73 7],l:58},{h:24,s 0003bfa0: 3a 2d 31 31 39 37 31 37 2c 65 3a 5b 31 37 5d 2c :-119717,e:[17], 0003bfb0: 6c 3a 35 38 7d 2c 7b 68 3a 32 34 2c 73 3a 2d 31 l:58},{h:24,s:-1 0003bfc0: 31 39 37 37 35 2c 65 3a 5b 31 37 5d 2c 6c 3a 35 19775,e:[17],l:5 0003bfd0: 38 7d 5d 2c 42 6c 3d 50 6c 28 22 62 35 3a 33 62 8}],Bl=Pl("b5:3b 0003bfe0: 63 2c 63 33 3a 66 66 2c 37 3a 37 33 2c 32 3a 32 c,c3:ff,7:73,2:2 0003bff0: 35 33 2c 35 3a 32 35 34 2c 33 3a 32 35 36 2c 31 53,5:254,3:256,1 0003c000: 3a 32 35 37 2c 35 3a 32 35 39 2c 31 3a 32 35 62 :257,5:259,1:25b 0003c010: 2c 33 3a 32 36 30 2c 31 3a 32 36 33 2c 32 3a 32 ,3:260,1:263,2:2 0003c020: 36 39 2c 31 3a 32 36 38 2c 35 3a 32 36 66 2c 31 69,1:268,5:26f,1 0003c030: 3a 32 37 32 2c 32 3a 32 37 35 2c 37 3a 32 38 30 :272,2:275,7:280 0003c040: 2c 33 3a 32 38 33 2c 35 3a 32 38 38 2c 33 3a 32 ,3:283,5:288,3:2 0003c050: 38 61 2c 31 3a 32 38 62 2c 35 3a 32 39 32 2c 33 8a,1:28b,5:292,3 0003c060: 66 3a 31 39 35 2c 31 3a 31 62 66 2c 32 39 3a 31 f:195,1:1bf,29:1 0003c070: 39 65 2c 31 32 35 3a 33 62 39 2c 38 62 3a 33 62 9e,125:3b9,8b:3b 0003c080: 32 2c 31 3a 33 62 38 2c 31 3a 33 63 35 2c 33 3a 2,1:3b8,1:3c5,3: 0003c090: 33 63 36 2c 31 3a 33 63 30 2c 31 61 3a 33 62 61 3c6,1:3c0,1a:3ba 0003c0a0: 2c 31 3a 33 63 31 2c 31 3a 33 63 33 2c 32 3a 33 ,1:3c1,1:3c3,2:3 0003c0b0: 62 38 2c 31 3a 33 62 35 2c 31 62 63 39 3a 33 62 b8,1:3b5,1bc9:3b 0003c0c0: 39 2c 31 63 3a 31 66 37 36 2c 31 3a 31 66 37 37 9,1c:1f76,1:1f77 0003c0d0: 2c 66 3a 31 66 37 61 2c 31 3a 31 66 37 62 2c 64 ,f:1f7a,1:1f7b,d 0003c0e0: 3a 31 66 37 38 2c 31 3a 31 66 37 39 2c 31 3a 31 :1f78,1:1f79,1:1 0003c0f0: 66 37 63 2c 31 3a 31 66 37 64 2c 31 30 37 3a 36 f7c,1:1f7d,107:6 0003c100: 33 2c 35 3a 32 35 62 2c 34 3a 36 38 2c 31 3a 36 3,5:25b,4:68,1:6 0003c110: 38 2c 31 3a 36 38 2c 33 3a 36 39 2c 31 3a 36 39 8,1:68,3:69,1:69 0003c120: 2c 31 3a 36 63 2c 33 3a 36 65 2c 34 3a 37 30 2c ,1:6c,3:6e,4:70, 0003c130: 31 3a 37 31 2c 31 3a 37 32 2c 31 3a 37 32 2c 31 1:71,1:72,1:72,1 0003c140: 3a 37 32 2c 37 3a 37 61 2c 32 3a 33 63 39 2c 32 :72,7:7a,2:3c9,2 0003c150: 3a 37 61 2c 32 3a 36 62 2c 31 3a 65 35 2c 31 3a :7a,2:6b,1:e5,1: 0003c160: 36 32 2c 31 3a 36 33 2c 33 3a 36 35 2c 31 3a 36 62,1:63,3:65,1:6 0003c170: 36 2c 32 3a 36 64 2c 62 3a 33 62 33 2c 31 3a 33 6,2:6d,b:3b3,1:3 0003c180: 63 30 2c 36 3a 36 34 2c 31 62 35 37 34 3a 33 62 c0,6:64,1b574:3b 0003c190: 38 2c 31 61 3a 33 63 33 2c 32 30 3a 33 62 38 2c 8,1a:3c3,20:3b8, 0003c1a0: 31 61 3a 33 63 33 2c 32 30 3a 33 62 38 2c 31 61 1a:3c3,20:3b8,1a 0003c1b0: 3a 33 63 33 2c 32 30 3a 33 62 38 2c 31 61 3a 33 :3c3,20:3b8,1a:3 0003c1c0: 63 33 2c 32 30 3a 33 62 38 2c 31 61 3a 33 63 33 c3,20:3b8,1a:3c3 0003c1d0: 22 29 2c 6a 6c 3d 50 6c 28 22 31 37 39 3a 31 2c "),jl=Pl("179:1, 0003c1e0: 32 3a 31 2c 32 3a 31 2c 35 3a 31 2c 32 3a 31 2c 2:1,2:1,5:1,2:1, 0003c1f0: 61 3a 34 66 2c 61 3a 31 2c 38 3a 31 2c 32 3a 31 a:4f,a:1,8:1,2:1 0003c200: 2c 32 3a 31 2c 33 3a 31 2c 35 3a 31 2c 33 3a 31 ,2:1,3:1,5:1,3:1 0003c210: 2c 34 3a 31 2c 32 3a 31 2c 33 3a 31 2c 34 3a 31 ,4:1,2:1,3:1,4:1 0003c220: 2c 38 3a 32 2c 31 3a 31 2c 32 3a 32 2c 31 3a 31 ,8:2,1:1,2:2,1:1 0003c230: 2c 32 3a 32 2c 32 37 3a 32 2c 31 39 35 3a 32 36 ,2:2,27:2,195:26 0003c240: 2c 32 3a 32 35 2c 31 3a 32 35 2c 31 3a 32 35 2c ,2:25,1:25,1:25, 0003c250: 32 3a 34 30 2c 32 3a 33 66 2c 31 3a 33 66 2c 33 2:40,2:3f,1:3f,3 0003c260: 33 3a 31 2c 31 31 3a 2d 36 2c 31 3a 2d 39 2c 31 3:1,11:-6,1:-9,1 0003c270: 61 63 37 3a 2d 33 61 2c 36 64 3a 2d 38 2c 31 3a ac7:-3a,6d:-8,1: 0003c280: 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d -8,1:-8,1:-8,1:- 0003c290: 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 8,1:-8,1:-8,1:-8 0003c2a0: 2c 39 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c ,9:-8,1:-8,1:-8, 0003c2b0: 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 62 1:-8,1:-8,1:-8,b 0003c2c0: 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a :-8,1:-8,1:-8,1: 0003c2d0: 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d -8,1:-8,1:-8,1:- 0003c2e0: 38 2c 31 3a 2d 38 2c 39 3a 2d 38 2c 31 3a 2d 38 8,1:-8,9:-8,1:-8 0003c2f0: 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c ,1:-8,1:-8,1:-8, 0003c300: 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 39 1:-8,1:-8,1:-8,9 0003c310: 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a :-8,1:-8,1:-8,1: 0003c320: 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 63 3a 2d -8,1:-8,1:-8,c:- 0003c330: 38 2c 32 3a 2d 38 2c 32 3a 2d 38 2c 32 3a 2d 38 8,2:-8,2:-8,2:-8 0003c340: 2c 39 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c ,9:-8,1:-8,1:-8, 0003c350: 31 3a 2d 38 2c 31 3a 2d 38 2c 31 3a 2d 38 2c 31 1:-8,1:-8,1:-8,1 0003c360: 3a 2d 38 2c 31 3a 2d 38 2c 34 39 3a 2d 38 2c 31 :-8,1:-8,49:-8,1 0003c370: 3a 2d 38 2c 31 3a 2d 34 61 2c 31 3a 2d 34 61 2c :-8,1:-4a,1:-4a, 0003c380: 64 3a 2d 35 36 2c 31 3a 2d 35 36 2c 31 3a 2d 35 d:-56,1:-56,1:-5 0003c390: 36 2c 31 3a 2d 35 36 2c 64 3a 2d 38 2c 31 3a 2d 6,1:-56,d:-8,1:- 0003c3a0: 38 2c 66 3a 2d 38 2c 31 3a 2d 38 2c 33 3a 2d 37 8,f:-8,1:-8,3:-7 0003c3b0: 22 29 2c 7a 6c 3d 50 6c 28 22 64 66 3a 30 30 37 "),zl=Pl("df:007 0003c3c0: 33 30 30 37 33 2c 35 31 3a 30 30 36 39 30 33 30 30073,51:0069030 0003c3d0: 37 2c 31 39 3a 30 32 42 43 30 30 36 45 2c 61 37 7,19:02BC006E,a7 0003c3e0: 3a 30 30 36 41 30 33 30 43 2c 31 38 61 3a 30 30 :006A030C,18a:00 0003c3f0: 32 30 30 33 42 39 2c 31 36 3a 30 33 42 39 30 33 2003B9,16:03B903 0003c400: 30 38 30 33 30 31 2c 32 30 3a 30 33 43 35 30 33 080301,20:03C503 0003c410: 30 38 30 33 30 31 2c 31 64 37 3a 30 35 36 35 30 080301,1d7:05650 0003c420: 35 38 32 2c 31 39 30 66 3a 30 30 36 38 30 33 33 582,190f:0068033 0003c430: 31 2c 31 3a 30 30 37 34 30 33 30 38 2c 31 3a 30 1,1:00740308,1:0 0003c440: 30 37 37 30 33 30 41 2c 31 3a 30 30 37 39 30 33 077030A,1:007903 0003c450: 30 41 2c 31 3a 30 30 36 31 30 32 42 45 2c 62 36 0A,1:006102BE,b6 0003c460: 3a 30 33 43 35 30 33 31 33 2c 32 3a 30 33 43 35 :03C50313,2:03C5 0003c470: 30 33 31 33 30 33 30 30 2c 32 3a 30 33 43 35 30 03130300,2:03C50 0003c480: 33 31 33 30 33 30 31 2c 32 3a 30 33 43 35 30 33 3130301,2:03C503 0003c490: 31 33 30 33 34 32 2c 32 61 3a 31 46 30 30 30 33 130342,2a:1F0003 0003c4a0: 42 39 2c 31 3a 31 46 30 31 30 33 42 39 2c 31 3a B9,1:1F0103B9,1: 0003c4b0: 31 46 30 32 30 33 42 39 2c 31 3a 31 46 30 33 30 1F0203B9,1:1F030 0003c4c0: 33 42 39 2c 31 3a 31 46 30 34 30 33 42 39 2c 31 3B9,1:1F0403B9,1 0003c4d0: 3a 31 46 30 35 30 33 42 39 2c 31 3a 31 46 30 36 :1F0503B9,1:1F06 0003c4e0: 30 33 42 39 2c 31 3a 31 46 30 37 30 33 42 39 2c 03B9,1:1F0703B9, 0003c4f0: 31 3a 31 46 30 30 30 33 42 39 2c 31 3a 31 46 30 1:1F0003B9,1:1F0 0003c500: 31 30 33 42 39 2c 31 3a 31 46 30 32 30 33 42 39 103B9,1:1F0203B9 0003c510: 2c 31 3a 31 46 30 33 30 33 42 39 2c 31 3a 31 46 ,1:1F0303B9,1:1F 0003c520: 30 34 30 33 42 39 2c 31 3a 31 46 30 35 30 33 42 0403B9,1:1F0503B 0003c530: 39 2c 31 3a 31 46 30 36 30 33 42 39 2c 31 3a 31 9,1:1F0603B9,1:1 0003c540: 46 30 37 30 33 42 39 2c 31 3a 31 46 32 30 30 33 F0703B9,1:1F2003 0003c550: 42 39 2c 31 3a 31 46 32 31 30 33 42 39 2c 31 3a B9,1:1F2103B9,1: 0003c560: 31 46 32 32 30 33 42 39 2c 31 3a 31 46 32 33 30 1F2203B9,1:1F230 0003c570: 33 42 39 2c 31 3a 31 46 32 34 30 33 42 39 2c 31 3B9,1:1F2403B9,1 0003c580: 3a 31 46 32 35 30 33 42 39 2c 31 3a 31 46 32 36 :1F2503B9,1:1F26 0003c590: 30 33 42 39 2c 31 3a 31 46 32 37 30 33 42 39 2c 03B9,1:1F2703B9, 0003c5a0: 31 3a 31 46 32 30 30 33 42 39 2c 31 3a 31 46 32 1:1F2003B9,1:1F2 0003c5b0: 31 30 33 42 39 2c 31 3a 31 46 32 32 30 33 42 39 103B9,1:1F2203B9 0003c5c0: 2c 31 3a 31 46 32 33 30 33 42 39 2c 31 3a 31 46 ,1:1F2303B9,1:1F 0003c5d0: 32 34 30 33 42 39 2c 31 3a 31 46 32 35 30 33 42 2403B9,1:1F2503B 0003c5e0: 39 2c 31 3a 31 46 32 36 30 33 42 39 2c 31 3a 31 9,1:1F2603B9,1:1 0003c5f0: 46 32 37 30 33 42 39 2c 31 3a 31 46 36 30 30 33 F2703B9,1:1F6003 0003c600: 42 39 2c 31 3a 31 46 36 31 30 33 42 39 2c 31 3a B9,1:1F6103B9,1: 0003c610: 31 46 36 32 30 33 42 39 2c 31 3a 31 46 36 33 30 1F6203B9,1:1F630 0003c620: 33 42 39 2c 31 3a 31 46 36 34 30 33 42 39 2c 31 3B9,1:1F6403B9,1 0003c630: 3a 31 46 36 35 30 33 42 39 2c 31 3a 31 46 36 36 :1F6503B9,1:1F66 0003c640: 30 33 42 39 2c 31 3a 31 46 36 37 30 33 42 39 2c 03B9,1:1F6703B9, 0003c650: 31 3a 31 46 36 30 30 33 42 39 2c 31 3a 31 46 36 1:1F6003B9,1:1F6 0003c660: 31 30 33 42 39 2c 31 3a 31 46 36 32 30 33 42 39 103B9,1:1F6203B9 0003c670: 2c 31 3a 31 46 36 33 30 33 42 39 2c 31 3a 31 46 ,1:1F6303B9,1:1F 0003c680: 36 34 30 33 42 39 2c 31 3a 31 46 36 35 30 33 42 6403B9,1:1F6503B 0003c690: 39 2c 31 3a 31 46 36 36 30 33 42 39 2c 31 3a 31 9,1:1F6603B9,1:1 0003c6a0: 46 36 37 30 33 42 39 2c 33 3a 31 46 37 30 30 33 F6703B9,3:1F7003 0003c6b0: 42 39 2c 31 3a 30 33 42 31 30 33 42 39 2c 31 3a B9,1:03B103B9,1: 0003c6c0: 30 33 41 43 30 33 42 39 2c 32 3a 30 33 42 31 30 03AC03B9,2:03B10 0003c6d0: 33 34 32 2c 31 3a 30 33 42 31 30 33 34 32 30 33 342,1:03B1034203 0003c6e0: 42 39 2c 35 3a 30 33 42 31 30 33 42 39 2c 36 3a B9,5:03B103B9,6: 0003c6f0: 31 46 37 34 30 33 42 39 2c 31 3a 30 33 42 37 30 1F7403B9,1:03B70 0003c700: 33 42 39 2c 31 3a 30 33 41 45 30 33 42 39 2c 32 3B9,1:03AE03B9,2 0003c710: 3a 30 33 42 37 30 33 34 32 2c 31 3a 30 33 42 37 :03B70342,1:03B7 0003c720: 30 33 34 32 30 33 42 39 2c 35 3a 30 33 42 37 30 034203B9,5:03B70 0003c730: 33 42 39 2c 36 3a 30 33 42 39 30 33 30 38 30 33 3B9,6:03B9030803 0003c740: 30 30 2c 31 3a 30 33 42 39 30 33 30 38 30 33 30 00,1:03B90308030 0003c750: 31 2c 33 3a 30 33 42 39 30 33 34 32 2c 31 3a 30 1,3:03B90342,1:0 0003c760: 33 42 39 30 33 30 38 30 33 34 32 2c 62 3a 30 33 3B903080342,b:03 0003c770: 43 35 30 33 30 38 30 33 30 30 2c 31 3a 30 33 43 C503080300,1:03C 0003c780: 35 30 33 30 38 30 33 30 31 2c 31 3a 30 33 43 31 503080301,1:03C1 0003c790: 30 33 31 33 2c 32 3a 30 33 43 35 30 33 34 32 2c 0313,2:03C50342, 0003c7a0: 31 3a 30 33 43 35 30 33 30 38 30 33 34 32 2c 62 1:03C503080342,b 0003c7b0: 3a 31 46 37 43 30 33 42 39 2c 31 3a 30 33 43 39 :1F7C03B9,1:03C9 0003c7c0: 30 33 42 39 2c 31 3a 30 33 43 45 30 33 42 39 2c 03B9,1:03CE03B9, 0003c7d0: 32 3a 30 33 43 39 30 33 34 32 2c 31 3a 30 33 43 2:03C90342,1:03C 0003c7e0: 39 30 33 34 32 30 33 42 39 2c 35 3a 30 33 43 39 9034203B9,5:03C9 0003c7f0: 30 33 42 39 2c 61 63 3a 30 30 37 32 30 30 37 33 03B9,ac:00720073 0003c800: 2c 35 62 3a 30 30 42 30 30 30 36 33 2c 36 3a 30 ,5b:00B00063,6:0 0003c810: 30 42 30 30 30 36 36 2c 64 3a 30 30 36 45 30 30 0B00066,d:006E00 0003c820: 36 46 2c 61 3a 30 30 37 33 30 30 36 44 2c 31 3a 6F,a:0073006D,1: 0003c830: 30 30 37 34 30 30 36 35 30 30 36 43 2c 31 3a 30 00740065006C,1:0 0003c840: 30 37 34 30 30 36 44 2c 31 32 34 66 3a 30 30 36 074006D,124f:006 0003c850: 38 30 30 37 30 30 30 36 31 2c 32 3a 30 30 36 31 800700061,2:0061 0003c860: 30 30 37 35 2c 32 3a 30 30 36 46 30 30 37 36 2c 0075,2:006F0076, 0003c870: 62 3a 30 30 37 30 30 30 36 31 2c 31 3a 30 30 36 b:00700061,1:006 0003c880: 45 30 30 36 31 2c 31 3a 30 33 42 43 30 30 36 31 E0061,1:03BC0061 0003c890: 2c 31 3a 30 30 36 44 30 30 36 31 2c 31 3a 30 30 ,1:006D0061,1:00 0003c8a0: 36 42 30 30 36 31 2c 31 3a 30 30 36 42 30 30 36 6B0061,1:006B006 0003c8b0: 32 2c 31 3a 30 30 36 44 30 30 36 32 2c 31 3a 30 2,1:006D0062,1:0 0003c8c0: 30 36 37 30 30 36 32 2c 33 3a 30 30 37 30 30 30 0670062,3:007000 0003c8d0: 36 36 2c 31 3a 30 30 36 45 30 30 36 36 2c 31 3a 66,1:006E0066,1: 0003c8e0: 30 33 42 43 30 30 36 36 2c 34 3a 30 30 36 38 30 03BC0066,4:00680 0003c8f0: 30 37 41 2c 31 3a 30 30 36 42 30 30 36 38 30 30 07A,1:006B006800 0003c900: 37 41 2c 31 3a 30 30 36 44 30 30 36 38 30 30 37 7A,1:006D0068007 0003c910: 41 2c 31 3a 30 30 36 37 30 30 36 38 30 30 37 41 A,1:00670068007A 0003c920: 2c 31 3a 30 30 37 34 30 30 36 38 30 30 37 41 2c ,1:00740068007A, 0003c930: 31 35 3a 30 30 37 30 30 30 36 31 2c 31 3a 30 30 15:00700061,1:00 0003c940: 36 42 30 30 37 30 30 30 36 31 2c 31 3a 30 30 36 6B00700061,1:006 0003c950: 44 30 30 37 30 30 30 36 31 2c 31 3a 30 30 36 37 D00700061,1:0067 0003c960: 30 30 37 30 30 30 36 31 2c 38 3a 30 30 37 30 30 00700061,8:00700 0003c970: 30 37 36 2c 31 3a 30 30 36 45 30 30 37 36 2c 31 076,1:006E0076,1 0003c980: 3a 30 33 42 43 30 30 37 36 2c 31 3a 30 30 36 44 :03BC0076,1:006D 0003c990: 30 30 37 36 2c 31 3a 30 30 36 42 30 30 37 36 2c 0076,1:006B0076, 0003c9a0: 31 3a 30 30 36 44 30 30 37 36 2c 31 3a 30 30 37 1:006D0076,1:007 0003c9b0: 30 30 30 37 37 2c 31 3a 30 30 36 45 30 30 37 37 00077,1:006E0077 0003c9c0: 2c 31 3a 30 33 42 43 30 30 37 37 2c 31 3a 30 30 ,1:03BC0077,1:00 0003c9d0: 36 44 30 30 37 37 2c 31 3a 30 30 36 42 30 30 37 6D0077,1:006B007 0003c9e0: 37 2c 31 3a 30 30 36 44 30 30 37 37 2c 31 3a 30 7,1:006D0077,1:0 0003c9f0: 30 36 42 30 33 43 39 2c 31 3a 30 30 36 44 30 33 06B03C9,1:006D03 0003ca00: 43 39 2c 32 3a 30 30 36 32 30 30 37 31 2c 33 3a C9,2:00620071,3: 0003ca10: 30 30 36 33 32 32 31 35 30 30 36 42 30 30 36 37 00632215006B0067 0003ca20: 2c 31 3a 30 30 36 33 30 30 36 46 30 30 32 45 2c ,1:0063006F002E, 0003ca30: 31 3a 30 30 36 34 30 30 36 32 2c 31 3a 30 30 36 1:00640062,1:006 0003ca40: 37 30 30 37 39 2c 32 3a 30 30 36 38 30 30 37 30 70079,2:00680070 0003ca50: 2c 32 3a 30 30 36 42 30 30 36 42 2c 31 3a 30 30 ,2:006B006B,1:00 0003ca60: 36 42 30 30 36 44 2c 39 3a 30 30 37 30 30 30 36 6B006D,9:0070006 0003ca70: 38 2c 32 3a 30 30 37 30 30 30 37 30 30 30 36 44 8,2:00700070006D 0003ca80: 2c 31 3a 30 30 37 30 30 30 37 32 2c 32 3a 30 30 ,1:00700072,2:00 0003ca90: 37 33 30 30 37 36 2c 31 3a 30 30 37 37 30 30 36 730076,1:0077006 0003caa0: 32 2c 63 37 32 33 3a 30 30 36 36 30 30 36 36 2c 2,c723:00660066, 0003cab0: 31 3a 30 30 36 36 30 30 36 39 2c 31 3a 30 30 36 1:00660069,1:006 0003cac0: 36 30 30 36 43 2c 31 3a 30 30 36 36 30 30 36 36 6006C,1:00660066 0003cad0: 30 30 36 39 2c 31 3a 30 30 36 36 30 30 36 36 30 0069,1:006600660 0003cae0: 30 36 43 2c 31 3a 30 30 37 33 30 30 37 34 2c 31 06C,1:00730074,1 0003caf0: 3a 30 30 37 33 30 30 37 34 2c 64 3a 30 35 37 34 :00730074,d:0574 0003cb00: 30 35 37 36 2c 31 3a 30 35 37 34 30 35 36 35 2c 0576,1:05740565, 0003cb10: 31 3a 30 35 37 34 30 35 36 42 2c 31 3a 30 35 37 1:0574056B,1:057 0003cb20: 45 30 35 37 36 2c 31 3a 30 35 37 34 30 35 36 44 E0576,1:0574056D 0003cb30: 22 2c 28 66 75 6e 63 74 69 6f 6e 28 65 29 7b 69 ",(function(e){i 0003cb40: 66 28 65 2e 6c 65 6e 67 74 68 25 34 21 3d 30 29 f(e.length%4!=0) 0003cb50: 74 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 throw new Error( 0003cb60: 22 62 61 64 20 64 61 74 61 22 29 3b 6c 65 74 20 "bad data");let 0003cb70: 74 3d 5b 5d 3b 66 6f 72 28 6c 65 74 20 6e 3d 30 t=[];for(let n=0 0003cb80: 3b 6e 3c 65 2e 6c 65 6e 67 74 68 3b 6e 2b 3d 34 ;n<e.length;n+=4 0003cb90: 29 74 2e 70 75 73 68 28 70 61 72 73 65 49 6e 74 )t.push(parseInt 0003cba0: 28 65 2e 73 75 62 73 74 72 69 6e 67 28 6e 2c 6e (e.substring(n,n 0003cbb0: 2b 34 29 2c 31 36 29 29 3b 72 65 74 75 72 6e 20 +4),16));return 0003cbc0: 74 7d 29 29 2c 47 6c 3d 4d 6c 28 22 38 30 2d 32 t})),Gl=Ml("80-2 0003cbd0: 30 2c 32 61 30 2d 2c 33 39 63 2c 33 32 2c 66 37 0,2a0-,39c,32,f7 0003cbe0: 31 2c 31 38 65 2c 37 66 32 2d 66 2c 31 39 2d 37 1,18e,7f2-f,19-7 0003cbf0: 2c 33 30 2d 34 2c 37 2d 35 2c 66 38 31 2d 62 2c ,30-4,7-5,f81-b, 0003cc00: 35 2c 61 38 30 30 2d 32 30 66 66 2c 34 64 31 2d 5,a800-20ff,4d1- 0003cc10: 31 66 2c 31 31 30 2c 66 61 2d 36 2c 64 31 37 34 1f,110,fa-6,d174 0003cc20: 2d 37 2c 32 65 38 34 2d 2c 66 66 66 66 2d 2c 66 -7,2e84-,ffff-,f 0003cc30: 66 66 66 2d 2c 66 66 66 66 2d 2c 66 66 66 66 2d fff-,ffff-,ffff- 0003cc40: 2c 66 66 66 66 2d 2c 66 66 66 66 2d 2c 66 66 66 ,ffff-,ffff-,fff 0003cc50: 66 2d 2c 66 66 66 66 2d 2c 66 66 66 66 2d 2c 66 f-,ffff-,ffff-,f 0003cc60: 66 66 66 2d 2c 66 66 66 66 2d 2c 66 66 66 66 2d fff-,ffff-,ffff- 0003cc70: 2c 32 2c 31 66 2d 35 66 2c 66 66 37 66 2d 32 30 ,2,1f-5f,ff7f-20 0003cc80: 30 30 31 22 29 3b 66 75 6e 63 74 69 6f 6e 20 48 001");function H 0003cc90: 6c 28 65 29 7b 69 66 28 65 2e 6d 61 74 63 68 28 l(e){if(e.match( 0003cca0: 2f 5e 5b 61 2d 7a 30 2d 39 2d 5d 2a 24 2f 69 29 /^[a-z0-9-]*$/i) 0003ccb0: 26 26 65 2e 6c 65 6e 67 74 68 3c 3d 35 39 29 72 &&e.length<=59)r 0003ccc0: 65 74 75 72 6e 20 65 2e 74 6f 4c 6f 77 65 72 43 eturn e.toLowerC 0003ccd0: 61 73 65 28 29 3b 6c 65 74 20 74 3d 5a 65 28 65 ase();let t=Ze(e 0003cce0: 29 3b 76 61 72 20 6e 3b 6e 3d 74 2e 6d 61 70 28 );var n;n=t.map( 0003ccf0: 28 65 3d 3e 7b 69 66 28 46 6c 2e 69 6e 64 65 78 (e=>{if(Fl.index 0003cd00: 4f 66 28 65 29 3e 3d 30 29 72 65 74 75 72 6e 5b Of(e)>=0)return[ 0003cd10: 5d 3b 69 66 28 65 3e 3d 36 35 30 32 34 26 26 65 ];if(e>=65024&&e 0003cd20: 3c 3d 36 35 30 33 39 29 72 65 74 75 72 6e 5b 5d <=65039)return[] 0003cd30: 3b 6c 65 74 20 74 3d 66 75 6e 63 74 69 6f 6e 28 ;let t=function( 0003cd40: 65 29 7b 6c 65 74 20 74 3d 44 6c 28 65 2c 55 6c e){let t=Dl(e,Ul 0003cd50: 29 3b 69 66 28 74 29 72 65 74 75 72 6e 5b 65 2b );if(t)return[e+ 0003cd60: 74 2e 73 5d 3b 6c 65 74 20 6e 3d 42 6c 5b 65 5d t.s];let n=Bl[e] 0003cd70: 3b 69 66 28 6e 29 72 65 74 75 72 6e 20 6e 3b 6c ;if(n)return n;l 0003cd80: 65 74 20 72 3d 6a 6c 5b 65 5d 3b 72 65 74 75 72 et r=jl[e];retur 0003cd90: 6e 20 72 3f 5b 65 2b 72 5b 30 5d 5d 3a 7a 6c 5b n r?[e+r[0]]:zl[ 0003cda0: 65 5d 7c 7c 6e 75 6c 6c 7d 28 65 29 3b 72 65 74 e]||null}(e);ret 0003cdb0: 75 72 6e 20 74 7c 7c 5b 65 5d 7d 29 29 2c 74 3d urn t||[e]})),t= 0003cdc0: 6e 2e 72 65 64 75 63 65 28 28 28 65 2c 74 29 3d n.reduce(((e,t)= 0003cdd0: 3e 28 74 2e 66 6f 72 45 61 63 68 28 28 74 3d 3e >(t.forEach((t=> 0003cde0: 7b 65 2e 70 75 73 68 28 74 29 7d 29 29 2c 65 29 {e.push(t)})),e) 0003cdf0: 29 2c 5b 5d 29 2c 74 3d 5a 65 28 59 65 28 74 29 ),[]),t=Ze(Ye(t) 0003ce00: 2c 6a 65 2e 4e 46 4b 43 29 2c 74 2e 66 6f 72 45 ,je.NFKC),t.forE 0003ce10: 61 63 68 28 28 65 3d 3e 7b 69 66 28 44 6c 28 65 ach((e=>{if(Dl(e 0003ce20: 2c 47 6c 29 29 74 68 72 6f 77 20 6e 65 77 20 45 ,Gl))throw new E 0003ce30: 72 72 6f 72 28 22 53 54 52 49 4e 47 50 52 45 50 rror("STRINGPREP 0003ce40: 5f 43 4f 4e 54 41 49 4e 53 5f 50 52 4f 48 49 42 _CONTAINS_PROHIB 0003ce50: 49 54 45 44 22 29 7d 29 29 2c 74 2e 66 6f 72 45 ITED")})),t.forE 0003ce60: 61 63 68 28 28 65 3d 3e 7b 69 66 28 44 6c 28 65 ach((e=>{if(Dl(e 0003ce70: 2c 4c 6c 29 29 74 68 72 6f 77 20 6e 65 77 20 45 ,Ll))throw new E 0003ce80: 72 72 6f 72 28 22 53 54 52 49 4e 47 50 52 45 50 rror("STRINGPREP 0003ce90: 5f 43 4f 4e 54 41 49 4e 53 5f 55 4e 41 53 53 49 _CONTAINS_UNASSI 0003cea0: 47 4e 45 44 22 29 7d 29 29 3b 6c 65 74 20 72 3d GNED")}));let r= 0003ceb0: 59 65 28 74 29 3b 69 66 28 22 2d 22 3d 3d 3d 72 Ye(t);if("-"===r 0003cec0: 2e 73 75 62 73 74 72 69 6e 67 28 30 2c 31 29 7c .substring(0,1)| 0003ced0: 7c 22 2d 2d 22 3d 3d 3d 72 2e 73 75 62 73 74 72 |"--"===r.substr 0003cee0: 69 6e 67 28 32 2c 34 29 7c 7c 22 2d 22 3d 3d 3d ing(2,4)||"-"=== 0003cef0: 72 2e 73 75 62 73 74 72 69 6e 67 28 72 2e 6c 65 r.substring(r.le 0003cf00: 6e 67 74 68 2d 31 29 29 74 68 72 6f 77 20 6e 65 ngth-1))throw ne 0003cf10: 77 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 w Error("invalid 0003cf20: 20 68 79 70 68 65 6e 22 29 3b 72 65 74 75 72 6e hyphen");return 0003cf30: 20 72 7d 66 75 6e 63 74 69 6f 6e 20 56 6c 28 65 r}function Vl(e 0003cf40: 29 7b 63 6f 6e 73 74 20 74 3d 71 65 28 65 29 3b ){const t=qe(e); 0003cf50: 69 66 28 74 2e 6c 65 6e 67 74 68 3e 33 31 29 74 if(t.length>31)t 0003cf60: 68 72 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 hrow new Error(" 0003cf70: 62 79 74 65 73 33 32 20 73 74 72 69 6e 67 20 6d bytes32 string m 0003cf80: 75 73 74 20 62 65 20 6c 65 73 73 20 74 68 61 6e ust be less than 0003cf90: 20 33 32 20 62 79 74 65 73 22 29 3b 72 65 74 75 32 bytes");retu 0003cfa0: 72 6e 20 52 28 43 28 5b 74 2c 4f 69 5d 29 2e 73 rn R(C([t,Oi]).s 0003cfb0: 6c 69 63 65 28 30 2c 33 32 29 29 7d 66 75 6e 63 lice(0,32))}func 0003cfc0: 74 69 6f 6e 20 71 6c 28 65 29 7b 63 6f 6e 73 74 tion ql(e){const 0003cfd0: 20 74 3d 54 28 65 29 3b 69 66 28 33 32 21 3d 3d t=T(e);if(32!== 0003cfe0: 74 2e 6c 65 6e 67 74 68 29 74 68 72 6f 77 20 6e t.length)throw n 0003cff0: 65 77 20 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 ew Error("invali 0003d000: 64 20 62 79 74 65 73 33 32 20 2d 20 6e 6f 74 20 d bytes32 - not 0003d010: 33 32 20 62 79 74 65 73 20 6c 6f 6e 67 22 29 3b 32 bytes long"); 0003d020: 69 66 28 30 21 3d 3d 74 5b 33 31 5d 29 74 68 72 if(0!==t[31])thr 0003d030: 6f 77 20 6e 65 77 20 45 72 72 6f 72 28 22 69 6e ow new Error("in 0003d040: 76 61 6c 69 64 20 62 79 74 65 73 33 32 20 73 74 valid bytes32 st 0003d050: 72 69 6e 67 20 2d 20 6e 6f 20 6e 75 6c 6c 20 74 ring - no null t 0003d060: 65 72 6d 69 6e 61 74 6f 72 22 29 3b 6c 65 74 20 erminator");let 0003d070: 6e 3d 33 31 3b 66 6f 72 28 3b 30 3d 3d 3d 74 5b n=31;for(;0===t[ 0003d080: 6e 2d 31 5d 3b 29 6e 2d 2d 3b 72 65 74 75 72 6e n-1];)n--;return 0003d090: 20 58 65 28 74 2e 73 6c 69 63 65 28 30 2c 6e 29 Xe(t.slice(0,n) 0003d0a0: 29 7d 63 6f 6e 73 74 20 57 6c 3d 6e 65 77 20 79 )}const Wl=new y 0003d0b0: 28 22 75 6e 69 74 73 2f 35 2e 37 2e 30 22 29 2c ("units/5.7.0"), 0003d0c0: 4b 6c 3d 5b 22 77 65 69 22 2c 22 6b 77 65 69 22 Kl=["wei","kwei" 0003d0d0: 2c 22 6d 77 65 69 22 2c 22 67 77 65 69 22 2c 22 ,"mwei","gwei"," 0003d0e0: 73 7a 61 62 6f 22 2c 22 66 69 6e 6e 65 79 22 2c szabo","finney", 0003d0f0: 22 65 74 68 65 72 22 5d 3b 66 75 6e 63 74 69 6f "ether"];functio 0003d100: 6e 20 59 6c 28 65 29 7b 63 6f 6e 73 74 20 74 3d n Yl(e){const t= 0003d110: 53 74 72 69 6e 67 28 65 29 2e 73 70 6c 69 74 28 String(e).split( 0003d120: 22 2e 22 29 3b 28 74 2e 6c 65 6e 67 74 68 3e 32 ".");(t.length>2 0003d130: 7c 7c 21 74 5b 30 5d 2e 6d 61 74 63 68 28 2f 5e ||!t[0].match(/^ 0003d140: 2d 3f 5b 30 2d 39 5d 2a 24 2f 29 7c 7c 74 5b 31 -?[0-9]*$/)||t[1 0003d150: 5d 26 26 21 74 5b 31 5d 2e 6d 61 74 63 68 28 2f ]&&!t[1].match(/ 0003d160: 5e 5b 30 2d 39 5d 2a 24 2f 29 7c 7c 22 2e 22 3d ^[0-9]*$/)||"."= 0003d170: 3d 3d 65 7c 7c 22 2d 2e 22 3d 3d 3d 65 29 26 26 ==e||"-."===e)&& 0003d180: 57 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 6e 74 Wl.throwArgument 0003d190: 45 72 72 6f 72 28 22 69 6e 76 61 6c 69 64 20 76 Error("invalid v 0003d1a0: 61 6c 75 65 22 2c 22 76 61 6c 75 65 22 2c 65 29 alue","value",e) 0003d1b0: 3b 6c 65 74 20 6e 3d 74 5b 30 5d 2c 72 3d 22 22 ;let n=t[0],r="" 0003d1c0: 3b 66 6f 72 28 22 2d 22 3d 3d 3d 6e 2e 73 75 62 ;for("-"===n.sub 0003d1d0: 73 74 72 69 6e 67 28 30 2c 31 29 26 26 28 72 3d string(0,1)&&(r= 0003d1e0: 22 2d 22 2c 6e 3d 6e 2e 73 75 62 73 74 72 69 6e "-",n=n.substrin 0003d1f0: 67 28 31 29 29 3b 22 30 22 3d 3d 3d 6e 2e 73 75 g(1));"0"===n.su 0003d200: 62 73 74 72 69 6e 67 28 30 2c 31 29 3b 29 6e 3d bstring(0,1);)n= 0003d210: 6e 2e 73 75 62 73 74 72 69 6e 67 28 31 29 3b 22 n.substring(1);" 0003d220: 22 3d 3d 3d 6e 26 26 28 6e 3d 22 30 22 29 3b 6c "===n&&(n="0");l 0003d230: 65 74 20 6f 3d 22 22 3b 66 6f 72 28 32 3d 3d 3d et o="";for(2=== 0003d240: 74 2e 6c 65 6e 67 74 68 26 26 28 6f 3d 22 2e 22 t.length&&(o="." 0003d250: 2b 28 74 5b 31 5d 7c 7c 22 30 22 29 29 3b 6f 2e +(t[1]||"0"));o. 0003d260: 6c 65 6e 67 74 68 3e 32 26 26 22 30 22 3d 3d 3d length>2&&"0"=== 0003d270: 6f 5b 6f 2e 6c 65 6e 67 74 68 2d 31 5d 3b 29 6f o[o.length-1];)o 0003d280: 3d 6f 2e 73 75 62 73 74 72 69 6e 67 28 30 2c 6f =o.substring(0,o 0003d290: 2e 6c 65 6e 67 74 68 2d 31 29 3b 63 6f 6e 73 74 .length-1);const 0003d2a0: 20 69 3d 5b 5d 3b 66 6f 72 28 3b 6e 2e 6c 65 6e i=[];for(;n.len 0003d2b0: 67 74 68 3b 29 7b 69 66 28 6e 2e 6c 65 6e 67 74 gth;){if(n.lengt 0003d2c0: 68 3c 3d 33 29 7b 69 2e 75 6e 73 68 69 66 74 28 h<=3){i.unshift( 0003d2d0: 6e 29 3b 62 72 65 61 6b 7d 7b 63 6f 6e 73 74 20 n);break}{const 0003d2e0: 65 3d 6e 2e 6c 65 6e 67 74 68 2d 33 3b 69 2e 75 e=n.length-3;i.u 0003d2f0: 6e 73 68 69 66 74 28 6e 2e 73 75 62 73 74 72 69 nshift(n.substri 0003d300: 6e 67 28 65 29 29 2c 6e 3d 6e 2e 73 75 62 73 74 ng(e)),n=n.subst 0003d310: 72 69 6e 67 28 30 2c 65 29 7d 7d 72 65 74 75 72 ring(0,e)}}retur 0003d320: 6e 20 72 2b 69 2e 6a 6f 69 6e 28 22 2c 22 29 2b n r+i.join(",")+ 0003d330: 6f 7d 66 75 6e 63 74 69 6f 6e 20 58 6c 28 65 2c o}function Xl(e, 0003d340: 74 29 7b 69 66 28 22 73 74 72 69 6e 67 22 3d 3d t){if("string"== 0003d350: 74 79 70 65 6f 66 20 74 29 7b 63 6f 6e 73 74 20 typeof t){const 0003d360: 65 3d 4b 6c 2e 69 6e 64 65 78 4f 66 28 74 29 3b e=Kl.indexOf(t); 0003d370: 2d 31 21 3d 3d 65 26 26 28 74 3d 33 2a 65 29 7d -1!==e&&(t=3*e)} 0003d380: 72 65 74 75 72 6e 20 56 72 28 65 2c 6e 75 6c 6c return Vr(e,null 0003d390: 21 3d 74 3f 74 3a 31 38 29 7d 66 75 6e 63 74 69 !=t?t:18)}functi 0003d3a0: 6f 6e 20 5a 6c 28 65 2c 74 29 7b 69 66 28 22 73 on Zl(e,t){if("s 0003d3b0: 74 72 69 6e 67 22 21 3d 74 79 70 65 6f 66 20 65 tring"!=typeof e 0003d3c0: 26 26 57 6c 2e 74 68 72 6f 77 41 72 67 75 6d 65 &&Wl.throwArgume 0003d3d0: 6e 74 45 72 72 6f 72 28 22 76 61 6c 75 65 20 6d ntError("value m 0003d3e0: 75 73 74 20 62 65 20 61 20 73 74 72 69 6e 67 22 ust be a string" 0003d3f0: 2c 22 76 61 6c 75 65 22 2c 65 29 2c 22 73 74 72 ,"value",e),"str 0003d400: 69 6e 67 22 3d 3d 74 79 70 65 6f 66 20 74 29 7b ing"==typeof t){ 0003d410: 63 6f 6e 73 74 20 65 3d 4b 6c 2e 69 6e 64 65 78 const e=Kl.index 0003d420: 4f 66 28 74 29 3b 2d 31 21 3d 3d 65 26 26 28 74 Of(t);-1!==e&&(t 0003d430: 3d 33 2a 65 29 7d 72 65 74 75 72 6e 20 71 72 28 =3*e)}return qr( 0003d440: 65 2c 6e 75 6c 6c 21 3d 74 3f 74 3a 31 38 29 7d e,null!=t?t:18)} 0003d450: 66 75 6e 63 74 69 6f 6e 20 51 6c 28 65 29 7b 72 function Ql(e){r 0003d460: 65 74 75 72 6e 20 58 6c 28 65 2c 31 38 29 7d 66 eturn Xl(e,18)}f 0003d470: 75 6e 63 74 69 6f 6e 20 4a 6c 28 65 29 7b 72 65 unction Jl(e){re 0003d480: 74 75 72 6e 20 5a 6c 28 65 2c 31 38 29 7d 63 6f turn Zl(e,18)}co 0003d490: 6e 73 74 20 24 6c 3d 22 65 74 68 65 72 73 2f 35 nst $l="ethers/5 0003d4a0: 2e 37 2e 32 22 2c 65 63 3d 6e 65 77 20 79 28 24 .7.2",ec=new y($ 0003d4b0: 6c 29 3b 74 72 79 7b 63 6f 6e 73 74 20 65 3d 77 l);try{const e=w 0003d4c0: 69 6e 64 6f 77 3b 6e 75 6c 6c 3d 3d 65 2e 5f 65 indow;null==e._e 0003d4d0: 74 68 65 72 73 26 26 28 65 2e 5f 65 74 68 65 72 thers&&(e._ether 0003d4e0: 73 3d 6c 29 7d 63 61 74 63 68 28 65 29 7b 7d 7d s=l)}catch(e){}} 0003d4f0: 2c 32 36 37 32 39 3a 66 75 6e 63 74 69 6f 6e 28 ,26729:function( 0003d500: 65 29 7b 22 75 73 65 20 73 74 72 69 63 74 22 3b e){"use strict"; 0003d510: 76 61 72 20 74 3d 4f 62 6a 65 63 74 2e 70 72 6f var t=Object.pro 0003d520: 74 6f 74 79 70 65 2e 68 61 73 4f 77 6e 50 72 6f totype.hasOwnPro 0003d530: 70 65 72 74 79 2c 6e 3d 22 7e 22 3b 66 75 6e 63 perty,n="~";func 0003d540: 74 69 6f 6e 20 72 28 29 7b 7d 66 75 6e 63 74 69 tion r(){}functi 0003d550: 6f 6e 20 6f 28 65 2c 74 2c 6e 29 7b 74 68 69 73 on o(e,t,n){this 0003d560: 2e 66 6e 3d 65 2c 74 68 69 73 2e 63 6f 6e 74 65 .fn=e,this.conte 0003d570: 78 74 3d 74 2c 74 68 69 73 2e 6f 6e 63 65 3d 6e xt=t,this.once=n 0003d580: 7c 7c 21 31 7d 66 75 6e 63 74 69 6f 6e 20 69 28 ||!1}function i( 0003d590: 65 2c 74 2c 72 2c 69 2c 61 29 7b 69 66 28 22 66 e,t,r,i,a){if("f 0003d5a0: 75 6e 63 74 69 6f 6e 22 21 3d 74 79 70 65 6f 66 unction"!=typeof 0003d5b0: 20 72 29 74 68 72 6f 77 20 6e 65 77 20 54 79 70 r)throw new Typ 0003d5c0: 65 45 72 72 6f 72 28 22 54 68 65 20 6c 69 73 74 eError("The list 0003d5d0: 65 6e 65 72 20 6d 75 73 74 20 62 65 20 61 20 66 ener must be a f 0003d5e0: 75 6e 63 74 69 6f 6e 22 29 3b 76 61 72 20 73 3d unction");var s= 0003d5f0: 6e 65 77 20 6f 28 72 2c 69 7c 7c 65 2c 61 29 2c new o(r,i||e,a), 0003d600: 6c 3d 6e 3f 6e 2b 74 3a 74 3b 72 65 74 75 72 6e l=n?n+t:t;return 0003d610: 20 65 2e 5f 65 76 65 6e 74 73 5b 6c 5d 3f 65 2e e._events[l]?e. 0003d620: 5f 65 76 65 6e 74 73 5b 6c 5d 2e 66 6e 3f 65 2e _events[l].fn?e. 0003d630: 5f 65 76 65 6e 74 73 5b 6c 5d 3d 5b 65 2e 5f 65 _events[l]=[e._e 0003d640: 76 65 6e 74 73 5b 6c 5d 2c 73 5d 3a 65 2e 5f 65 vents[l],s]:e._e 0003d650: 76 65 6e 74 73 5b 6c 5d 2e 70 75 73 68 28 73 29 vents[l].push(s) 0003d660: 3a 28 65 2e 5f 65 76 65 6e 74 73 5b 6c 5d 3d 73 :(e._events[l]=s 0003d670: 2c 65 2e 5f 65 76 65 6e 74 73 43 6f 75 6e 74 2b ,e._eventsCount+ 0003d680: 2b 29 2c 65 7d 66 75 6e 63 74 69 6f 6e 20 61 28 +),e}function a( 0003d690: 65 2c 74 29 7b 30 3d 3d 2d 2d 65 2e 5f 65 76 65 e,t){0==--e._eve 0003d6a0: 6e 74 73 43 6f 75 6e 74 3f 65 2e 5f 65 76 65 6e ntsCount?e._even 0003d6b0: 74 73 3d 6e 65 77 20 72 3a 64 65 6c 65 74 65 20 ts=new r:delete 0003d6c0: 65 2e 5f 65 76 65 6e 74 73 5b 74 5d 7d 66 75 6e e._events[t]}fun 0003d6d0: 63 74 69 6f 6e 20 73 28 29 7b 74 68 69 73 2e 5f ction s(){this._ 0003d6e0: 65 76 65 6e 74 73 3d 6e 65 77 20 72 2c 74 68 69 events=new r,thi 0003d6f0: 73 2e 5f 65 76 65 6e 74 73 43 6f 75 6e 74 3d 30 s._eventsCount=0 0003d700: 7d 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 26 26 }Object.create&& 0003d710: 28 72 2e 70 72 6f 74 6f 74 79 70 65 3d 4f 62 6a (r.prototype=Obj 0003d720: 65 63 74 2e 63 72 65 61 74 65 28 6e 75 6c 6c 29 ect.create(null) 0003d730: 2c 28 6e 65 77 20 72 29 2e 5f 5f 70 72 6f 74 6f ,(new r).__proto 0003d740: 5f 5f 7c 7c 28 6e 3d 21 31 29 29 2c 73 2e 70 72 __||(n=!1)),s.pr 0003d750: 6f 74 6f 74 79 70 65 2e 65 76 65 6e 74 4e 61 6d ototype.eventNam 0003d760: 65 73 3d 66 75 6e 63 74 69 6f 6e 28 29 7b 76 61 es=function(){va 0003d770: 72 20 65 2c 72 2c 6f 3d 5b 5d 3b 69 66 28 30 3d r e,r,o=[];if(0= 0003d780: 3d 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 43 6f ==this._eventsCo 0003d790: 75 6e 74 29 72 65 74 75 72 6e 20 6f 3b 66 6f 72 unt)return o;for 0003d7a0: 28 72 20 69 6e 20 65 3d 74 68 69 73 2e 5f 65 76 (r in e=this._ev 0003d7b0: 65 6e 74 73 29 74 2e 63 61 6c 6c 28 65 2c 72 29 ents)t.call(e,r) 0003d7c0: 26 26 6f 2e 70 75 73 68 28 6e 3f 72 2e 73 6c 69 &&o.push(n?r.sli 0003d7d0: 63 65 28 31 29 3a 72 29 3b 72 65 74 75 72 6e 20 ce(1):r);return 0003d7e0: 4f 62 6a 65 63 74 2e 67 65 74 4f 77 6e 50 72 6f Object.getOwnPro 0003d7f0: 70 65 72 74 79 53 79 6d 62 6f 6c 73 3f 6f 2e 63 pertySymbols?o.c 0003d800: 6f 6e 63 61 74 28 4f 62 6a 65 63 74 2e 67 65 74 oncat(Object.get 0003d810: 4f 77 6e 50 72 6f 70 65 72 74 79 53 79 6d 62 6f OwnPropertySymbo 0003d820: 6c 73 28 65 29 29 3a 6f 7d 2c 73 2e 70 72 6f 74 ls(e)):o},s.prot 0003d830: 6f 74 79 70 65 2e 6c 69 73 74 65 6e 65 72 73 3d otype.listeners= 0003d840: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 76 61 72 20 function(e){var 0003d850: 74 3d 6e 3f 6e 2b 65 3a 65 2c 72 3d 74 68 69 73 t=n?n+e:e,r=this 0003d860: 2e 5f 65 76 65 6e 74 73 5b 74 5d 3b 69 66 28 21 ._events[t];if(! 0003d870: 72 29 72 65 74 75 72 6e 5b 5d 3b 69 66 28 72 2e r)return[];if(r. 0003d880: 66 6e 29 72 65 74 75 72 6e 5b 72 2e 66 6e 5d 3b fn)return[r.fn]; 0003d890: 66 6f 72 28 76 61 72 20 6f 3d 30 2c 69 3d 72 2e for(var o=0,i=r. 0003d8a0: 6c 65 6e 67 74 68 2c 61 3d 6e 65 77 20 41 72 72 length,a=new Arr 0003d8b0: 61 79 28 69 29 3b 6f 3c 69 3b 6f 2b 2b 29 61 5b ay(i);o<i;o++)a[ 0003d8c0: 6f 5d 3d 72 5b 6f 5d 2e 66 6e 3b 72 65 74 75 72 o]=r[o].fn;retur 0003d8d0: 6e 20 61 7d 2c 73 2e 70 72 6f 74 6f 74 79 70 65 n a},s.prototype 0003d8e0: 2e 6c 69 73 74 65 6e 65 72 43 6f 75 6e 74 3d 66 .listenerCount=f 0003d8f0: 75 6e 63 74 69 6f 6e 28 65 29 7b 76 61 72 20 74 unction(e){var t 0003d900: 3d 6e 3f 6e 2b 65 3a 65 2c 72 3d 74 68 69 73 2e =n?n+e:e,r=this. 0003d910: 5f 65 76 65 6e 74 73 5b 74 5d 3b 72 65 74 75 72 _events[t];retur 0003d920: 6e 20 72 3f 72 2e 66 6e 3f 31 3a 72 2e 6c 65 6e n r?r.fn?1:r.len 0003d930: 67 74 68 3a 30 7d 2c 73 2e 70 72 6f 74 6f 74 79 gth:0},s.prototy 0003d940: 70 65 2e 65 6d 69 74 3d 66 75 6e 63 74 69 6f 6e pe.emit=function 0003d950: 28 65 2c 74 2c 72 2c 6f 2c 69 2c 61 29 7b 76 61 (e,t,r,o,i,a){va 0003d960: 72 20 73 3d 6e 3f 6e 2b 65 3a 65 3b 69 66 28 21 r s=n?n+e:e;if(! 0003d970: 74 68 69 73 2e 5f 65 76 65 6e 74 73 5b 73 5d 29 this._events[s]) 0003d980: 72 65 74 75 72 6e 21 31 3b 76 61 72 20 6c 2c 63 return!1;var l,c 0003d990: 2c 75 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 5b ,u=this._events[ 0003d9a0: 73 5d 2c 64 3d 61 72 67 75 6d 65 6e 74 73 2e 6c s],d=arguments.l 0003d9b0: 65 6e 67 74 68 3b 69 66 28 75 2e 66 6e 29 7b 73 ength;if(u.fn){s 0003d9c0: 77 69 74 63 68 28 75 2e 6f 6e 63 65 26 26 74 68 witch(u.once&&th 0003d9d0: 69 73 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 is.removeListene 0003d9e0: 72 28 65 2c 75 2e 66 6e 2c 76 6f 69 64 20 30 2c r(e,u.fn,void 0, 0003d9f0: 21 30 29 2c 64 29 7b 63 61 73 65 20 31 3a 72 65 !0),d){case 1:re 0003da00: 74 75 72 6e 20 75 2e 66 6e 2e 63 61 6c 6c 28 75 turn u.fn.call(u 0003da10: 2e 63 6f 6e 74 65 78 74 29 2c 21 30 3b 63 61 73 .context),!0;cas 0003da20: 65 20 32 3a 72 65 74 75 72 6e 20 75 2e 66 6e 2e e 2:return u.fn. 0003da30: 63 61 6c 6c 28 75 2e 63 6f 6e 74 65 78 74 2c 74 call(u.context,t 0003da40: 29 2c 21 30 3b 63 61 73 65 20 33 3a 72 65 74 75 ),!0;case 3:retu 0003da50: 72 6e 20 75 2e 66 6e 2e 63 61 6c 6c 28 75 2e 63 rn u.fn.call(u.c 0003da60: 6f 6e 74 65 78 74 2c 74 2c 72 29 2c 21 30 3b 63 ontext,t,r),!0;c 0003da70: 61 73 65 20 34 3a 72 65 74 75 72 6e 20 75 2e 66 ase 4:return u.f 0003da80: 6e 2e 63 61 6c 6c 28 75 2e 63 6f 6e 74 65 78 74 n.call(u.context 0003da90: 2c 74 2c 72 2c 6f 29 2c 21 30 3b 63 61 73 65 20 ,t,r,o),!0;case 0003daa0: 35 3a 72 65 74 75 72 6e 20 75 2e 66 6e 2e 63 61 5:return u.fn.ca 0003dab0: 6c 6c 28 75 2e 63 6f 6e 74 65 78 74 2c 74 2c 72 ll(u.context,t,r 0003dac0: 2c 6f 2c 69 29 2c 21 30 3b 63 61 73 65 20 36 3a ,o,i),!0;case 6: 0003dad0: 72 65 74 75 72 6e 20 75 2e 66 6e 2e 63 61 6c 6c return u.fn.call 0003dae0: 28 75 2e 63 6f 6e 74 65 78 74 2c 74 2c 72 2c 6f (u.context,t,r,o 0003daf0: 2c 69 2c 61 29 2c 21 30 7d 66 6f 72 28 63 3d 31 ,i,a),!0}for(c=1 0003db00: 2c 6c 3d 6e 65 77 20 41 72 72 61 79 28 64 2d 31 ,l=new Array(d-1 0003db10: 29 3b 63 3c 64 3b 63 2b 2b 29 6c 5b 63 2d 31 5d );c<d;c++)l[c-1] 0003db20: 3d 61 72 67 75 6d 65 6e 74 73 5b 63 5d 3b 75 2e =arguments[c];u. 0003db30: 66 6e 2e 61 70 70 6c 79 28 75 2e 63 6f 6e 74 65 fn.apply(u.conte 0003db40: 78 74 2c 6c 29 7d 65 6c 73 65 7b 76 61 72 20 70 xt,l)}else{var p 0003db50: 2c 66 3d 75 2e 6c 65 6e 67 74 68 3b 66 6f 72 28 ,f=u.length;for( 0003db60: 63 3d 30 3b 63 3c 66 3b 63 2b 2b 29 73 77 69 74 c=0;c<f;c++)swit 0003db70: 63 68 28 75 5b 63 5d 2e 6f 6e 63 65 26 26 74 68 ch(u[c].once&&th 0003db80: 69 73 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 is.removeListene 0003db90: 72 28 65 2c 75 5b 63 5d 2e 66 6e 2c 76 6f 69 64 r(e,u[c].fn,void 0003dba0: 20 30 2c 21 30 29 2c 64 29 7b 63 61 73 65 20 31 0,!0),d){case 1 0003dbb0: 3a 75 5b 63 5d 2e 66 6e 2e 63 61 6c 6c 28 75 5b :u[c].fn.call(u[ 0003dbc0: 63 5d 2e 63 6f 6e 74 65 78 74 29 3b 62 72 65 61 c].context);brea 0003dbd0: 6b 3b 63 61 73 65 20 32 3a 75 5b 63 5d 2e 66 6e k;case 2:u[c].fn 0003dbe0: 2e 63 61 6c 6c 28 75 5b 63 5d 2e 63 6f 6e 74 65 .call(u[c].conte 0003dbf0: 78 74 2c 74 29 3b 62 72 65 61 6b 3b 63 61 73 65 xt,t);break;case 0003dc00: 20 33 3a 75 5b 63 5d 2e 66 6e 2e 63 61 6c 6c 28 3:u[c].fn.call( 0003dc10: 75 5b 63 5d 2e 63 6f 6e 74 65 78 74 2c 74 2c 72 u[c].context,t,r 0003dc20: 29 3b 62 72 65 61 6b 3b 63 61 73 65 20 34 3a 75 );break;case 4:u 0003dc30: 5b 63 5d 2e 66 6e 2e 63 61 6c 6c 28 75 5b 63 5d [c].fn.call(u[c] 0003dc40: 2e 63 6f 6e 74 65 78 74 2c 74 2c 72 2c 6f 29 3b .context,t,r,o); 0003dc50: 62 72 65 61 6b 3b 64 65 66 61 75 6c 74 3a 69 66 break;default:if 0003dc60: 28 21 6c 29 66 6f 72 28 70 3d 31 2c 6c 3d 6e 65 (!l)for(p=1,l=ne 0003dc70: 77 20 41 72 72 61 79 28 64 2d 31 29 3b 70 3c 64 w Array(d-1);p<d 0003dc80: 3b 70 2b 2b 29 6c 5b 70 2d 31 5d 3d 61 72 67 75 ;p++)l[p-1]=argu 0003dc90: 6d 65 6e 74 73 5b 70 5d 3b 75 5b 63 5d 2e 66 6e ments[p];u[c].fn 0003dca0: 2e 61 70 70 6c 79 28 75 5b 63 5d 2e 63 6f 6e 74 .apply(u[c].cont 0003dcb0: 65 78 74 2c 6c 29 7d 7d 72 65 74 75 72 6e 21 30 ext,l)}}return!0 0003dcc0: 7d 2c 73 2e 70 72 6f 74 6f 74 79 70 65 2e 6f 6e },s.prototype.on 0003dcd0: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 6e 29 =function(e,t,n) 0003dce0: 7b 72 65 74 75 72 6e 20 69 28 74 68 69 73 2c 65 {return i(this,e 0003dcf0: 2c 74 2c 6e 2c 21 31 29 7d 2c 73 2e 70 72 6f 74 ,t,n,!1)},s.prot 0003dd00: 6f 74 79 70 65 2e 6f 6e 63 65 3d 66 75 6e 63 74 otype.once=funct 0003dd10: 69 6f 6e 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 ion(e,t,n){retur 0003dd20: 6e 20 69 28 74 68 69 73 2c 65 2c 74 2c 6e 2c 21 n i(this,e,t,n,! 0003dd30: 30 29 7d 2c 73 2e 70 72 6f 74 6f 74 79 70 65 2e 0)},s.prototype. 0003dd40: 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 72 3d 66 removeListener=f 0003dd50: 75 6e 63 74 69 6f 6e 28 65 2c 74 2c 72 2c 6f 29 unction(e,t,r,o) 0003dd60: 7b 76 61 72 20 69 3d 6e 3f 6e 2b 65 3a 65 3b 69 {var i=n?n+e:e;i 0003dd70: 66 28 21 74 68 69 73 2e 5f 65 76 65 6e 74 73 5b f(!this._events[ 0003dd80: 69 5d 29 72 65 74 75 72 6e 20 74 68 69 73 3b 69 i])return this;i 0003dd90: 66 28 21 74 29 72 65 74 75 72 6e 20 61 28 74 68 f(!t)return a(th 0003dda0: 69 73 2c 69 29 2c 74 68 69 73 3b 76 61 72 20 73 is,i),this;var s 0003ddb0: 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 5b 69 5d =this._events[i] 0003ddc0: 3b 69 66 28 73 2e 66 6e 29 73 2e 66 6e 21 3d 3d ;if(s.fn)s.fn!== 0003ddd0: 74 7c 7c 6f 26 26 21 73 2e 6f 6e 63 65 7c 7c 72 t||o&&!s.once||r 0003dde0: 26 26 73 2e 63 6f 6e 74 65 78 74 21 3d 3d 72 7c &&s.context!==r| 0003ddf0: 7c 61 28 74 68 69 73 2c 69 29 3b 65 6c 73 65 7b |a(this,i);else{ 0003de00: 66 6f 72 28 76 61 72 20 6c 3d 30 2c 63 3d 5b 5d for(var l=0,c=[] 0003de10: 2c 75 3d 73 2e 6c 65 6e 67 74 68 3b 6c 3c 75 3b ,u=s.length;l<u; 0003de20: 6c 2b 2b 29 28 73 5b 6c 5d 2e 66 6e 21 3d 3d 74 l++)(s[l].fn!==t 0003de30: 7c 7c 6f 26 26 21 73 5b 6c 5d 2e 6f 6e 63 65 7c ||o&&!s[l].once| 0003de40: 7c 72 26 26 73 5b 6c 5d 2e 63 6f 6e 74 65 78 74 |r&&s[l].context 0003de50: 21 3d 3d 72 29 26 26 63 2e 70 75 73 68 28 73 5b !==r)&&c.push(s[ 0003de60: 6c 5d 29 3b 63 2e 6c 65 6e 67 74 68 3f 74 68 69 l]);c.length?thi 0003de70: 73 2e 5f 65 76 65 6e 74 73 5b 69 5d 3d 31 3d 3d s._events[i]=1== 0003de80: 3d 63 2e 6c 65 6e 67 74 68 3f 63 5b 30 5d 3a 63 =c.length?c[0]:c 0003de90: 3a 61 28 74 68 69 73 2c 69 29 7d 72 65 74 75 72 :a(this,i)}retur 0003dea0: 6e 20 74 68 69 73 7d 2c 73 2e 70 72 6f 74 6f 74 n this},s.protot 0003deb0: 79 70 65 2e 72 65 6d 6f 76 65 41 6c 6c 4c 69 73 ype.removeAllLis 0003dec0: 74 65 6e 65 72 73 3d 66 75 6e 63 74 69 6f 6e 28 teners=function( 0003ded0: 65 29 7b 76 61 72 20 74 3b 72 65 74 75 72 6e 20 e){var t;return 0003dee0: 65 3f 28 74 3d 6e 3f 6e 2b 65 3a 65 2c 74 68 69 e?(t=n?n+e:e,thi 0003def0: 73 2e 5f 65 76 65 6e 74 73 5b 74 5d 26 26 61 28 s._events[t]&&a( 0003df00: 74 68 69 73 2c 74 29 29 3a 28 74 68 69 73 2e 5f this,t)):(this._ 0003df10: 65 76 65 6e 74 73 3d 6e 65 77 20 72 2c 74 68 69 events=new r,thi 0003df20: 73 2e 5f 65 76 65 6e 74 73 43 6f 75 6e 74 3d 30 s._eventsCount=0 0003df30: 29 2c 74 68 69 73 7d 2c 73 2e 70 72 6f 74 6f 74 ),this},s.protot 0003df40: 79 70 65 2e 6f 66 66 3d 73 2e 70 72 6f 74 6f 74 ype.off=s.protot 0003df50: 79 70 65 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e ype.removeListen 0003df60: 65 72 2c 73 2e 70 72 6f 74 6f 74 79 70 65 2e 61 er,s.prototype.a 0003df70: 64 64 4c 69 73 74 65 6e 65 72 3d 73 2e 70 72 6f ddListener=s.pro 0003df80: 74 6f 74 79 70 65 2e 6f 6e 2c 73 2e 70 72 65 66 totype.on,s.pref 0003df90: 69 78 65 64 3d 6e 2c 73 2e 45 76 65 6e 74 45 6d ixed=n,s.EventEm 0003dfa0: 69 74 74 65 72 3d 73 2c 65 2e 65 78 70 6f 72 74 itter=s,e.export 0003dfb0: 73 3d 73 7d 2c 31 37 31 38 37 3a 66 75 6e 63 74 s=s},17187:funct 0003dfc0: 69 6f 6e 28 65 29 7b 22 75 73 65 20 73 74 72 69 ion(e){"use stri 0003dfd0: 63 74 22 3b 76 61 72 20 74 2c 6e 3d 22 6f 62 6a ct";var t,n="obj 0003dfe0: 65 63 74 22 3d 3d 74 79 70 65 6f 66 20 52 65 66 ect"==typeof Ref 0003dff0: 6c 65 63 74 3f 52 65 66 6c 65 63 74 3a 6e 75 6c lect?Reflect:nul 0003e000: 6c 2c 72 3d 6e 26 26 22 66 75 6e 63 74 69 6f 6e l,r=n&&"function 0003e010: 22 3d 3d 74 79 70 65 6f 66 20 6e 2e 61 70 70 6c "==typeof n.appl 0003e020: 79 3f 6e 2e 61 70 70 6c 79 3a 66 75 6e 63 74 69 y?n.apply:functi 0003e030: 6f 6e 28 65 2c 74 2c 6e 29 7b 72 65 74 75 72 6e on(e,t,n){return 0003e040: 20 46 75 6e 63 74 69 6f 6e 2e 70 72 6f 74 6f 74 Function.protot 0003e050: 79 70 65 2e 61 70 70 6c 79 2e 63 61 6c 6c 28 65 ype.apply.call(e 0003e060: 2c 74 2c 6e 29 7d 3b 74 3d 6e 26 26 22 66 75 6e ,t,n)};t=n&&"fun 0003e070: 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 6e ction"==typeof n 0003e080: 2e 6f 77 6e 4b 65 79 73 3f 6e 2e 6f 77 6e 4b 65 .ownKeys?n.ownKe 0003e090: 79 73 3a 4f 62 6a 65 63 74 2e 67 65 74 4f 77 6e ys:Object.getOwn 0003e0a0: 50 72 6f 70 65 72 74 79 53 79 6d 62 6f 6c 73 3f PropertySymbols? 0003e0b0: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 function(e){retu 0003e0c0: 72 6e 20 4f 62 6a 65 63 74 2e 67 65 74 4f 77 6e rn Object.getOwn 0003e0d0: 50 72 6f 70 65 72 74 79 4e 61 6d 65 73 28 65 29 PropertyNames(e) 0003e0e0: 2e 63 6f 6e 63 61 74 28 4f 62 6a 65 63 74 2e 67 .concat(Object.g 0003e0f0: 65 74 4f 77 6e 50 72 6f 70 65 72 74 79 53 79 6d etOwnPropertySym 0003e100: 62 6f 6c 73 28 65 29 29 7d 3a 66 75 6e 63 74 69 bols(e))}:functi 0003e110: 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 4f 62 6a on(e){return Obj 0003e120: 65 63 74 2e 67 65 74 4f 77 6e 50 72 6f 70 65 72 ect.getOwnProper 0003e130: 74 79 4e 61 6d 65 73 28 65 29 7d 3b 76 61 72 20 tyNames(e)};var 0003e140: 6f 3d 4e 75 6d 62 65 72 2e 69 73 4e 61 4e 7c 7c o=Number.isNaN|| 0003e150: 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 function(e){retu 0003e160: 72 6e 20 65 21 3d 65 7d 3b 66 75 6e 63 74 69 6f rn e!=e};functio 0003e170: 6e 20 69 28 29 7b 69 2e 69 6e 69 74 2e 63 61 6c n i(){i.init.cal 0003e180: 6c 28 74 68 69 73 29 7d 65 2e 65 78 70 6f 72 74 l(this)}e.export 0003e190: 73 3d 69 2c 65 2e 65 78 70 6f 72 74 73 2e 6f 6e s=i,e.exports.on 0003e1a0: 63 65 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 ce=function(e,t) 0003e1b0: 7b 72 65 74 75 72 6e 20 6e 65 77 20 50 72 6f 6d {return new Prom 0003e1c0: 69 73 65 28 28 66 75 6e 63 74 69 6f 6e 28 6e 2c ise((function(n, 0003e1d0: 72 29 7b 66 75 6e 63 74 69 6f 6e 20 6f 28 6e 29 r){function o(n) 0003e1e0: 7b 65 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 {e.removeListene 0003e1f0: 72 28 74 2c 69 29 2c 72 28 6e 29 7d 66 75 6e 63 r(t,i),r(n)}func 0003e200: 74 69 6f 6e 20 69 28 29 7b 22 66 75 6e 63 74 69 tion i(){"functi 0003e210: 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 65 2e 72 65 on"==typeof e.re 0003e220: 6d 6f 76 65 4c 69 73 74 65 6e 65 72 26 26 65 2e moveListener&&e. 0003e230: 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 72 28 22 removeListener(" 0003e240: 65 72 72 6f 72 22 2c 6f 29 2c 6e 28 5b 5d 2e 73 error",o),n([].s 0003e250: 6c 69 63 65 2e 63 61 6c 6c 28 61 72 67 75 6d 65 lice.call(argume 0003e260: 6e 74 73 29 29 7d 6d 28 65 2c 74 2c 69 2c 7b 6f nts))}m(e,t,i,{o 0003e270: 6e 63 65 3a 21 30 7d 29 2c 22 65 72 72 6f 72 22 nce:!0}),"error" 0003e280: 21 3d 3d 74 26 26 66 75 6e 63 74 69 6f 6e 28 65 !==t&&function(e 0003e290: 2c 74 2c 6e 29 7b 22 66 75 6e 63 74 69 6f 6e 22 ,t,n){"function" 0003e2a0: 3d 3d 74 79 70 65 6f 66 20 65 2e 6f 6e 26 26 6d ==typeof e.on&&m 0003e2b0: 28 65 2c 22 65 72 72 6f 72 22 2c 74 2c 6e 29 7d (e,"error",t,n)} 0003e2c0: 28 65 2c 6f 2c 7b 6f 6e 63 65 3a 21 30 7d 29 7d (e,o,{once:!0})} 0003e2d0: 29 29 7d 2c 69 2e 45 76 65 6e 74 45 6d 69 74 74 ))},i.EventEmitt 0003e2e0: 65 72 3d 69 2c 69 2e 70 72 6f 74 6f 74 79 70 65 er=i,i.prototype 0003e2f0: 2e 5f 65 76 65 6e 74 73 3d 76 6f 69 64 20 30 2c ._events=void 0, 0003e300: 69 2e 70 72 6f 74 6f 74 79 70 65 2e 5f 65 76 65 i.prototype._eve 0003e310: 6e 74 73 43 6f 75 6e 74 3d 30 2c 69 2e 70 72 6f ntsCount=0,i.pro 0003e320: 74 6f 74 79 70 65 2e 5f 6d 61 78 4c 69 73 74 65 totype._maxListe 0003e330: 6e 65 72 73 3d 76 6f 69 64 20 30 3b 76 61 72 20 ners=void 0;var 0003e340: 61 3d 31 30 3b 66 75 6e 63 74 69 6f 6e 20 73 28 a=10;function s( 0003e350: 65 29 7b 69 66 28 22 66 75 6e 63 74 69 6f 6e 22 e){if("function" 0003e360: 21 3d 74 79 70 65 6f 66 20 65 29 74 68 72 6f 77 !=typeof e)throw 0003e370: 20 6e 65 77 20 54 79 70 65 45 72 72 6f 72 28 27 new TypeError(' 0003e380: 54 68 65 20 22 6c 69 73 74 65 6e 65 72 22 20 61 The "listener" a 0003e390: 72 67 75 6d 65 6e 74 20 6d 75 73 74 20 62 65 20 rgument must be 0003e3a0: 6f 66 20 74 79 70 65 20 46 75 6e 63 74 69 6f 6e of type Function 0003e3b0: 2e 20 52 65 63 65 69 76 65 64 20 74 79 70 65 20 . Received type 0003e3c0: 27 2b 74 79 70 65 6f 66 20 65 29 7d 66 75 6e 63 '+typeof e)}func 0003e3d0: 74 69 6f 6e 20 6c 28 65 29 7b 72 65 74 75 72 6e tion l(e){return 0003e3e0: 20 76 6f 69 64 20 30 3d 3d 3d 65 2e 5f 6d 61 78 void 0===e._max 0003e3f0: 4c 69 73 74 65 6e 65 72 73 3f 69 2e 64 65 66 61 Listeners?i.defa 0003e400: 75 6c 74 4d 61 78 4c 69 73 74 65 6e 65 72 73 3a ultMaxListeners: 0003e410: 65 2e 5f 6d 61 78 4c 69 73 74 65 6e 65 72 73 7d e._maxListeners} 0003e420: 66 75 6e 63 74 69 6f 6e 20 63 28 65 2c 74 2c 6e function c(e,t,n 0003e430: 2c 72 29 7b 76 61 72 20 6f 2c 69 2c 61 2c 63 3b ,r){var o,i,a,c; 0003e440: 69 66 28 73 28 6e 29 2c 76 6f 69 64 20 30 3d 3d if(s(n),void 0== 0003e450: 3d 28 69 3d 65 2e 5f 65 76 65 6e 74 73 29 3f 28 =(i=e._events)?( 0003e460: 69 3d 65 2e 5f 65 76 65 6e 74 73 3d 4f 62 6a 65 i=e._events=Obje 0003e470: 63 74 2e 63 72 65 61 74 65 28 6e 75 6c 6c 29 2c ct.create(null), 0003e480: 65 2e 5f 65 76 65 6e 74 73 43 6f 75 6e 74 3d 30 e._eventsCount=0 0003e490: 29 3a 28 76 6f 69 64 20 30 21 3d 3d 69 2e 6e 65 ):(void 0!==i.ne 0003e4a0: 77 4c 69 73 74 65 6e 65 72 26 26 28 65 2e 65 6d wListener&&(e.em 0003e4b0: 69 74 28 22 6e 65 77 4c 69 73 74 65 6e 65 72 22 it("newListener" 0003e4c0: 2c 74 2c 6e 2e 6c 69 73 74 65 6e 65 72 3f 6e 2e ,t,n.listener?n. 0003e4d0: 6c 69 73 74 65 6e 65 72 3a 6e 29 2c 69 3d 65 2e listener:n),i=e. 0003e4e0: 5f 65 76 65 6e 74 73 29 2c 61 3d 69 5b 74 5d 29 _events),a=i[t]) 0003e4f0: 2c 76 6f 69 64 20 30 3d 3d 3d 61 29 61 3d 69 5b ,void 0===a)a=i[ 0003e500: 74 5d 3d 6e 2c 2b 2b 65 2e 5f 65 76 65 6e 74 73 t]=n,++e._events 0003e510: 43 6f 75 6e 74 3b 65 6c 73 65 20 69 66 28 22 66 Count;else if("f 0003e520: 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 unction"==typeof 0003e530: 20 61 3f 61 3d 69 5b 74 5d 3d 72 3f 5b 6e 2c 61 a?a=i[t]=r?[n,a 0003e540: 5d 3a 5b 61 2c 6e 5d 3a 72 3f 61 2e 75 6e 73 68 ]:[a,n]:r?a.unsh 0003e550: 69 66 74 28 6e 29 3a 61 2e 70 75 73 68 28 6e 29 ift(n):a.push(n) 0003e560: 2c 28 6f 3d 6c 28 65 29 29 3e 30 26 26 61 2e 6c ,(o=l(e))>0&&a.l 0003e570: 65 6e 67 74 68 3e 6f 26 26 21 61 2e 77 61 72 6e ength>o&&!a.warn 0003e580: 65 64 29 7b 61 2e 77 61 72 6e 65 64 3d 21 30 3b ed){a.warned=!0; 0003e590: 76 61 72 20 75 3d 6e 65 77 20 45 72 72 6f 72 28 var u=new Error( 0003e5a0: 22 50 6f 73 73 69 62 6c 65 20 45 76 65 6e 74 45 "Possible EventE 0003e5b0: 6d 69 74 74 65 72 20 6d 65 6d 6f 72 79 20 6c 65 mitter memory le 0003e5c0: 61 6b 20 64 65 74 65 63 74 65 64 2e 20 22 2b 61 ak detected. "+a 0003e5d0: 2e 6c 65 6e 67 74 68 2b 22 20 22 2b 53 74 72 69 .length+" "+Stri 0003e5e0: 6e 67 28 74 29 2b 22 20 6c 69 73 74 65 6e 65 72 ng(t)+" listener 0003e5f0: 73 20 61 64 64 65 64 2e 20 55 73 65 20 65 6d 69 s added. Use emi 0003e600: 74 74 65 72 2e 73 65 74 4d 61 78 4c 69 73 74 65 tter.setMaxListe 0003e610: 6e 65 72 73 28 29 20 74 6f 20 69 6e 63 72 65 61 ners() to increa 0003e620: 73 65 20 6c 69 6d 69 74 22 29 3b 75 2e 6e 61 6d se limit");u.nam 0003e630: 65 3d 22 4d 61 78 4c 69 73 74 65 6e 65 72 73 45 e="MaxListenersE 0003e640: 78 63 65 65 64 65 64 57 61 72 6e 69 6e 67 22 2c xceededWarning", 0003e650: 75 2e 65 6d 69 74 74 65 72 3d 65 2c 75 2e 74 79 u.emitter=e,u.ty 0003e660: 70 65 3d 74 2c 75 2e 63 6f 75 6e 74 3d 61 2e 6c pe=t,u.count=a.l 0003e670: 65 6e 67 74 68 2c 63 3d 75 2c 63 6f 6e 73 6f 6c ength,c=u,consol 0003e680: 65 26 26 63 6f 6e 73 6f 6c 65 2e 77 61 72 6e 26 e&&console.warn& 0003e690: 26 63 6f 6e 73 6f 6c 65 2e 77 61 72 6e 28 63 29 &console.warn(c) 0003e6a0: 7d 72 65 74 75 72 6e 20 65 7d 66 75 6e 63 74 69 }return e}functi 0003e6b0: 6f 6e 20 75 28 29 7b 69 66 28 21 74 68 69 73 2e on u(){if(!this. 0003e6c0: 66 69 72 65 64 29 72 65 74 75 72 6e 20 74 68 69 fired)return thi 0003e6d0: 73 2e 74 61 72 67 65 74 2e 72 65 6d 6f 76 65 4c s.target.removeL 0003e6e0: 69 73 74 65 6e 65 72 28 74 68 69 73 2e 74 79 70 istener(this.typ 0003e6f0: 65 2c 74 68 69 73 2e 77 72 61 70 46 6e 29 2c 74 e,this.wrapFn),t 0003e700: 68 69 73 2e 66 69 72 65 64 3d 21 30 2c 30 3d 3d his.fired=!0,0== 0003e710: 3d 61 72 67 75 6d 65 6e 74 73 2e 6c 65 6e 67 74 =arguments.lengt 0003e720: 68 3f 74 68 69 73 2e 6c 69 73 74 65 6e 65 72 2e h?this.listener. 0003e730: 63 61 6c 6c 28 74 68 69 73 2e 74 61 72 67 65 74 call(this.target 0003e740: 29 3a 74 68 69 73 2e 6c 69 73 74 65 6e 65 72 2e ):this.listener. 0003e750: 61 70 70 6c 79 28 74 68 69 73 2e 74 61 72 67 65 apply(this.targe 0003e760: 74 2c 61 72 67 75 6d 65 6e 74 73 29 7d 66 75 6e t,arguments)}fun 0003e770: 63 74 69 6f 6e 20 64 28 65 2c 74 2c 6e 29 7b 76 ction d(e,t,n){v 0003e780: 61 72 20 72 3d 7b 66 69 72 65 64 3a 21 31 2c 77 ar r={fired:!1,w 0003e790: 72 61 70 46 6e 3a 76 6f 69 64 20 30 2c 74 61 72 rapFn:void 0,tar 0003e7a0: 67 65 74 3a 65 2c 74 79 70 65 3a 74 2c 6c 69 73 get:e,type:t,lis 0003e7b0: 74 65 6e 65 72 3a 6e 7d 2c 6f 3d 75 2e 62 69 6e tener:n},o=u.bin 0003e7c0: 64 28 72 29 3b 72 65 74 75 72 6e 20 6f 2e 6c 69 d(r);return o.li 0003e7d0: 73 74 65 6e 65 72 3d 6e 2c 72 2e 77 72 61 70 46 stener=n,r.wrapF 0003e7e0: 6e 3d 6f 2c 6f 7d 66 75 6e 63 74 69 6f 6e 20 70 n=o,o}function p 0003e7f0: 28 65 2c 74 2c 6e 29 7b 76 61 72 20 72 3d 65 2e (e,t,n){var r=e. 0003e800: 5f 65 76 65 6e 74 73 3b 69 66 28 76 6f 69 64 20 _events;if(void 0003e810: 30 3d 3d 3d 72 29 72 65 74 75 72 6e 5b 5d 3b 76 0===r)return[];v 0003e820: 61 72 20 6f 3d 72 5b 74 5d 3b 72 65 74 75 72 6e ar o=r[t];return 0003e830: 20 76 6f 69 64 20 30 3d 3d 3d 6f 3f 5b 5d 3a 22 void 0===o?[]:" 0003e840: 66 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f function"==typeo 0003e850: 66 20 6f 3f 6e 3f 5b 6f 2e 6c 69 73 74 65 6e 65 f o?n?[o.listene 0003e860: 72 7c 7c 6f 5d 3a 5b 6f 5d 3a 6e 3f 66 75 6e 63 r||o]:[o]:n?func 0003e870: 74 69 6f 6e 28 65 29 7b 66 6f 72 28 76 61 72 20 tion(e){for(var 0003e880: 74 3d 6e 65 77 20 41 72 72 61 79 28 65 2e 6c 65 t=new Array(e.le 0003e890: 6e 67 74 68 29 2c 6e 3d 30 3b 6e 3c 74 2e 6c 65 ngth),n=0;n<t.le 0003e8a0: 6e 67 74 68 3b 2b 2b 6e 29 74 5b 6e 5d 3d 65 5b ngth;++n)t[n]=e[ 0003e8b0: 6e 5d 2e 6c 69 73 74 65 6e 65 72 7c 7c 65 5b 6e n].listener||e[n 0003e8c0: 5d 3b 72 65 74 75 72 6e 20 74 7d 28 6f 29 3a 68 ];return t}(o):h 0003e8d0: 28 6f 2c 6f 2e 6c 65 6e 67 74 68 29 7d 66 75 6e (o,o.length)}fun 0003e8e0: 63 74 69 6f 6e 20 66 28 65 29 7b 76 61 72 20 74 ction f(e){var t 0003e8f0: 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 3b 69 66 =this._events;if 0003e900: 28 76 6f 69 64 20 30 21 3d 3d 74 29 7b 76 61 72 (void 0!==t){var 0003e910: 20 6e 3d 74 5b 65 5d 3b 69 66 28 22 66 75 6e 63 n=t[e];if("func 0003e920: 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 6e 29 tion"==typeof n) 0003e930: 72 65 74 75 72 6e 20 31 3b 69 66 28 76 6f 69 64 return 1;if(void 0003e940: 20 30 21 3d 3d 6e 29 72 65 74 75 72 6e 20 6e 2e 0!==n)return n. 0003e950: 6c 65 6e 67 74 68 7d 72 65 74 75 72 6e 20 30 7d length}return 0} 0003e960: 66 75 6e 63 74 69 6f 6e 20 68 28 65 2c 74 29 7b function h(e,t){ 0003e970: 66 6f 72 28 76 61 72 20 6e 3d 6e 65 77 20 41 72 for(var n=new Ar 0003e980: 72 61 79 28 74 29 2c 72 3d 30 3b 72 3c 74 3b 2b ray(t),r=0;r<t;+ 0003e990: 2b 72 29 6e 5b 72 5d 3d 65 5b 72 5d 3b 72 65 74 +r)n[r]=e[r];ret 0003e9a0: 75 72 6e 20 6e 7d 66 75 6e 63 74 69 6f 6e 20 6d urn n}function m 0003e9b0: 28 65 2c 74 2c 6e 2c 72 29 7b 69 66 28 22 66 75 (e,t,n,r){if("fu 0003e9c0: 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 nction"==typeof 0003e9d0: 65 2e 6f 6e 29 72 2e 6f 6e 63 65 3f 65 2e 6f 6e e.on)r.once?e.on 0003e9e0: 63 65 28 74 2c 6e 29 3a 65 2e 6f 6e 28 74 2c 6e ce(t,n):e.on(t,n 0003e9f0: 29 3b 65 6c 73 65 7b 69 66 28 22 66 75 6e 63 74 );else{if("funct 0003ea00: 69 6f 6e 22 21 3d 74 79 70 65 6f 66 20 65 2e 61 ion"!=typeof e.a 0003ea10: 64 64 45 76 65 6e 74 4c 69 73 74 65 6e 65 72 29 ddEventListener) 0003ea20: 74 68 72 6f 77 20 6e 65 77 20 54 79 70 65 45 72 throw new TypeEr 0003ea30: 72 6f 72 28 27 54 68 65 20 22 65 6d 69 74 74 65 ror('The "emitte 0003ea40: 72 22 20 61 72 67 75 6d 65 6e 74 20 6d 75 73 74 r" argument must 0003ea50: 20 62 65 20 6f 66 20 74 79 70 65 20 45 76 65 6e be of type Even 0003ea60: 74 45 6d 69 74 74 65 72 2e 20 52 65 63 65 69 76 tEmitter. Receiv 0003ea70: 65 64 20 74 79 70 65 20 27 2b 74 79 70 65 6f 66 ed type '+typeof 0003ea80: 20 65 29 3b 65 2e 61 64 64 45 76 65 6e 74 4c 69 e);e.addEventLi 0003ea90: 73 74 65 6e 65 72 28 74 2c 28 66 75 6e 63 74 69 stener(t,(functi 0003eaa0: 6f 6e 20 6f 28 69 29 7b 72 2e 6f 6e 63 65 26 26 on o(i){r.once&& 0003eab0: 65 2e 72 65 6d 6f 76 65 45 76 65 6e 74 4c 69 73 e.removeEventLis 0003eac0: 74 65 6e 65 72 28 74 2c 6f 29 2c 6e 28 69 29 7d tener(t,o),n(i)} 0003ead0: 29 29 7d 7d 4f 62 6a 65 63 74 2e 64 65 66 69 6e ))}}Object.defin 0003eae0: 65 50 72 6f 70 65 72 74 79 28 69 2c 22 64 65 66 eProperty(i,"def 0003eaf0: 61 75 6c 74 4d 61 78 4c 69 73 74 65 6e 65 72 73 aultMaxListeners 0003eb00: 22 2c 7b 65 6e 75 6d 65 72 61 62 6c 65 3a 21 30 ",{enumerable:!0 0003eb10: 2c 67 65 74 3a 66 75 6e 63 74 69 6f 6e 28 29 7b ,get:function(){ 0003eb20: 72 65 74 75 72 6e 20 61 7d 2c 73 65 74 3a 66 75 return a},set:fu 0003eb30: 6e 63 74 69 6f 6e 28 65 29 7b 69 66 28 22 6e 75 nction(e){if("nu 0003eb40: 6d 62 65 72 22 21 3d 74 79 70 65 6f 66 20 65 7c mber"!=typeof e| 0003eb50: 7c 65 3c 30 7c 7c 6f 28 65 29 29 74 68 72 6f 77 |e<0||o(e))throw 0003eb60: 20 6e 65 77 20 52 61 6e 67 65 45 72 72 6f 72 28 new RangeError( 0003eb70: 27 54 68 65 20 76 61 6c 75 65 20 6f 66 20 22 64 'The value of "d 0003eb80: 65 66 61 75 6c 74 4d 61 78 4c 69 73 74 65 6e 65 efaultMaxListene 0003eb90: 72 73 22 20 69 73 20 6f 75 74 20 6f 66 20 72 61 rs" is out of ra 0003eba0: 6e 67 65 2e 20 49 74 20 6d 75 73 74 20 62 65 20 nge. It must be 0003ebb0: 61 20 6e 6f 6e 2d 6e 65 67 61 74 69 76 65 20 6e a non-negative n 0003ebc0: 75 6d 62 65 72 2e 20 52 65 63 65 69 76 65 64 20 umber. Received 0003ebd0: 27 2b 65 2b 22 2e 22 29 3b 61 3d 65 7d 7d 29 2c '+e+".");a=e}}), 0003ebe0: 69 2e 69 6e 69 74 3d 66 75 6e 63 74 69 6f 6e 28 i.init=function( 0003ebf0: 29 7b 76 6f 69 64 20 30 21 3d 3d 74 68 69 73 2e ){void 0!==this. 0003ec00: 5f 65 76 65 6e 74 73 26 26 74 68 69 73 2e 5f 65 _events&&this._e 0003ec10: 76 65 6e 74 73 21 3d 3d 4f 62 6a 65 63 74 2e 67 vents!==Object.g 0003ec20: 65 74 50 72 6f 74 6f 74 79 70 65 4f 66 28 74 68 etPrototypeOf(th 0003ec30: 69 73 29 2e 5f 65 76 65 6e 74 73 7c 7c 28 74 68 is)._events||(th 0003ec40: 69 73 2e 5f 65 76 65 6e 74 73 3d 4f 62 6a 65 63 is._events=Objec 0003ec50: 74 2e 63 72 65 61 74 65 28 6e 75 6c 6c 29 2c 74 t.create(null),t 0003ec60: 68 69 73 2e 5f 65 76 65 6e 74 73 43 6f 75 6e 74 his._eventsCount 0003ec70: 3d 30 29 2c 74 68 69 73 2e 5f 6d 61 78 4c 69 73 =0),this._maxLis 0003ec80: 74 65 6e 65 72 73 3d 74 68 69 73 2e 5f 6d 61 78 teners=this._max 0003ec90: 4c 69 73 74 65 6e 65 72 73 7c 7c 76 6f 69 64 20 Listeners||void 0003eca0: 30 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 73 0},i.prototype.s 0003ecb0: 65 74 4d 61 78 4c 69 73 74 65 6e 65 72 73 3d 66 etMaxListeners=f 0003ecc0: 75 6e 63 74 69 6f 6e 28 65 29 7b 69 66 28 22 6e unction(e){if("n 0003ecd0: 75 6d 62 65 72 22 21 3d 74 79 70 65 6f 66 20 65 umber"!=typeof e 0003ece0: 7c 7c 65 3c 30 7c 7c 6f 28 65 29 29 74 68 72 6f ||e<0||o(e))thro 0003ecf0: 77 20 6e 65 77 20 52 61 6e 67 65 45 72 72 6f 72 w new RangeError 0003ed00: 28 27 54 68 65 20 76 61 6c 75 65 20 6f 66 20 22 ('The value of " 0003ed10: 6e 22 20 69 73 20 6f 75 74 20 6f 66 20 72 61 6e n" is out of ran 0003ed20: 67 65 2e 20 49 74 20 6d 75 73 74 20 62 65 20 61 ge. It must be a 0003ed30: 20 6e 6f 6e 2d 6e 65 67 61 74 69 76 65 20 6e 75 non-negative nu 0003ed40: 6d 62 65 72 2e 20 52 65 63 65 69 76 65 64 20 27 mber. Received ' 0003ed50: 2b 65 2b 22 2e 22 29 3b 72 65 74 75 72 6e 20 74 +e+".");return t 0003ed60: 68 69 73 2e 5f 6d 61 78 4c 69 73 74 65 6e 65 72 his._maxListener 0003ed70: 73 3d 65 2c 74 68 69 73 7d 2c 69 2e 70 72 6f 74 s=e,this},i.prot 0003ed80: 6f 74 79 70 65 2e 67 65 74 4d 61 78 4c 69 73 74 otype.getMaxList 0003ed90: 65 6e 65 72 73 3d 66 75 6e 63 74 69 6f 6e 28 29 eners=function() 0003eda0: 7b 72 65 74 75 72 6e 20 6c 28 74 68 69 73 29 7d {return l(this)} 0003edb0: 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 65 6d 69 ,i.prototype.emi 0003edc0: 74 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 66 6f t=function(e){fo 0003edd0: 72 28 76 61 72 20 74 3d 5b 5d 2c 6e 3d 31 3b 6e r(var t=[],n=1;n 0003ede0: 3c 61 72 67 75 6d 65 6e 74 73 2e 6c 65 6e 67 74 <arguments.lengt 0003edf0: 68 3b 6e 2b 2b 29 74 2e 70 75 73 68 28 61 72 67 h;n++)t.push(arg 0003ee00: 75 6d 65 6e 74 73 5b 6e 5d 29 3b 76 61 72 20 6f uments[n]);var o 0003ee10: 3d 22 65 72 72 6f 72 22 3d 3d 3d 65 2c 69 3d 74 ="error"===e,i=t 0003ee20: 68 69 73 2e 5f 65 76 65 6e 74 73 3b 69 66 28 76 his._events;if(v 0003ee30: 6f 69 64 20 30 21 3d 3d 69 29 6f 3d 6f 26 26 76 oid 0!==i)o=o&&v 0003ee40: 6f 69 64 20 30 3d 3d 3d 69 2e 65 72 72 6f 72 3b oid 0===i.error; 0003ee50: 65 6c 73 65 20 69 66 28 21 6f 29 72 65 74 75 72 else if(!o)retur 0003ee60: 6e 21 31 3b 69 66 28 6f 29 7b 76 61 72 20 61 3b n!1;if(o){var a; 0003ee70: 69 66 28 74 2e 6c 65 6e 67 74 68 3e 30 26 26 28 if(t.length>0&&( 0003ee80: 61 3d 74 5b 30 5d 29 2c 61 20 69 6e 73 74 61 6e a=t[0]),a instan 0003ee90: 63 65 6f 66 20 45 72 72 6f 72 29 74 68 72 6f 77 ceof Error)throw 0003eea0: 20 61 3b 76 61 72 20 73 3d 6e 65 77 20 45 72 72 a;var s=new Err 0003eeb0: 6f 72 28 22 55 6e 68 61 6e 64 6c 65 64 20 65 72 or("Unhandled er 0003eec0: 72 6f 72 2e 22 2b 28 61 3f 22 20 28 22 2b 61 2e ror."+(a?" ("+a. 0003eed0: 6d 65 73 73 61 67 65 2b 22 29 22 3a 22 22 29 29 message+")":"")) 0003eee0: 3b 74 68 72 6f 77 20 73 2e 63 6f 6e 74 65 78 74 ;throw s.context 0003eef0: 3d 61 2c 73 7d 76 61 72 20 6c 3d 69 5b 65 5d 3b =a,s}var l=i[e]; 0003ef00: 69 66 28 76 6f 69 64 20 30 3d 3d 3d 6c 29 72 65 if(void 0===l)re 0003ef10: 74 75 72 6e 21 31 3b 69 66 28 22 66 75 6e 63 74 turn!1;if("funct 0003ef20: 69 6f 6e 22 3d 3d 74 79 70 65 6f 66 20 6c 29 72 ion"==typeof l)r 0003ef30: 28 6c 2c 74 68 69 73 2c 74 29 3b 65 6c 73 65 7b (l,this,t);else{ 0003ef40: 76 61 72 20 63 3d 6c 2e 6c 65 6e 67 74 68 2c 75 var c=l.length,u 0003ef50: 3d 68 28 6c 2c 63 29 3b 66 6f 72 28 6e 3d 30 3b =h(l,c);for(n=0; 0003ef60: 6e 3c 63 3b 2b 2b 6e 29 72 28 75 5b 6e 5d 2c 74 n<c;++n)r(u[n],t 0003ef70: 68 69 73 2c 74 29 7d 72 65 74 75 72 6e 21 30 7d his,t)}return!0} 0003ef80: 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 61 64 64 ,i.prototype.add 0003ef90: 4c 69 73 74 65 6e 65 72 3d 66 75 6e 63 74 69 6f Listener=functio 0003efa0: 6e 28 65 2c 74 29 7b 72 65 74 75 72 6e 20 63 28 n(e,t){return c( 0003efb0: 74 68 69 73 2c 65 2c 74 2c 21 31 29 7d 2c 69 2e this,e,t,!1)},i. 0003efc0: 70 72 6f 74 6f 74 79 70 65 2e 6f 6e 3d 69 2e 70 prototype.on=i.p 0003efd0: 72 6f 74 6f 74 79 70 65 2e 61 64 64 4c 69 73 74 rototype.addList 0003efe0: 65 6e 65 72 2c 69 2e 70 72 6f 74 6f 74 79 70 65 ener,i.prototype 0003eff0: 2e 70 72 65 70 65 6e 64 4c 69 73 74 65 6e 65 72 .prependListener 0003f000: 3d 66 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 =function(e,t){r 0003f010: 65 74 75 72 6e 20 63 28 74 68 69 73 2c 65 2c 74 eturn c(this,e,t 0003f020: 2c 21 30 29 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 ,!0)},i.prototyp 0003f030: 65 2e 6f 6e 63 65 3d 66 75 6e 63 74 69 6f 6e 28 e.once=function( 0003f040: 65 2c 74 29 7b 72 65 74 75 72 6e 20 73 28 74 29 e,t){return s(t) 0003f050: 2c 74 68 69 73 2e 6f 6e 28 65 2c 64 28 74 68 69 ,this.on(e,d(thi 0003f060: 73 2c 65 2c 74 29 29 2c 74 68 69 73 7d 2c 69 2e s,e,t)),this},i. 0003f070: 70 72 6f 74 6f 74 79 70 65 2e 70 72 65 70 65 6e prototype.prepen 0003f080: 64 4f 6e 63 65 4c 69 73 74 65 6e 65 72 3d 66 75 dOnceListener=fu 0003f090: 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 74 75 nction(e,t){retu 0003f0a0: 72 6e 20 73 28 74 29 2c 74 68 69 73 2e 70 72 65 rn s(t),this.pre 0003f0b0: 70 65 6e 64 4c 69 73 74 65 6e 65 72 28 65 2c 64 pendListener(e,d 0003f0c0: 28 74 68 69 73 2c 65 2c 74 29 29 2c 74 68 69 73 (this,e,t)),this 0003f0d0: 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 72 65 },i.prototype.re 0003f0e0: 6d 6f 76 65 4c 69 73 74 65 6e 65 72 3d 66 75 6e moveListener=fun 0003f0f0: 63 74 69 6f 6e 28 65 2c 74 29 7b 76 61 72 20 6e ction(e,t){var n 0003f100: 2c 72 2c 6f 2c 69 2c 61 3b 69 66 28 73 28 74 29 ,r,o,i,a;if(s(t) 0003f110: 2c 76 6f 69 64 20 30 3d 3d 3d 28 72 3d 74 68 69 ,void 0===(r=thi 0003f120: 73 2e 5f 65 76 65 6e 74 73 29 29 72 65 74 75 72 s._events))retur 0003f130: 6e 20 74 68 69 73 3b 69 66 28 76 6f 69 64 20 30 n this;if(void 0 0003f140: 3d 3d 3d 28 6e 3d 72 5b 65 5d 29 29 72 65 74 75 ===(n=r[e]))retu 0003f150: 72 6e 20 74 68 69 73 3b 69 66 28 6e 3d 3d 3d 74 rn this;if(n===t 0003f160: 7c 7c 6e 2e 6c 69 73 74 65 6e 65 72 3d 3d 3d 74 ||n.listener===t 0003f170: 29 30 3d 3d 2d 2d 74 68 69 73 2e 5f 65 76 65 6e )0==--this._even 0003f180: 74 73 43 6f 75 6e 74 3f 74 68 69 73 2e 5f 65 76 tsCount?this._ev 0003f190: 65 6e 74 73 3d 4f 62 6a 65 63 74 2e 63 72 65 61 ents=Object.crea 0003f1a0: 74 65 28 6e 75 6c 6c 29 3a 28 64 65 6c 65 74 65 te(null):(delete 0003f1b0: 20 72 5b 65 5d 2c 72 2e 72 65 6d 6f 76 65 4c 69 r[e],r.removeLi 0003f1c0: 73 74 65 6e 65 72 26 26 74 68 69 73 2e 65 6d 69 stener&&this.emi 0003f1d0: 74 28 22 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 t("removeListene 0003f1e0: 72 22 2c 65 2c 6e 2e 6c 69 73 74 65 6e 65 72 7c r",e,n.listener| 0003f1f0: 7c 74 29 29 3b 65 6c 73 65 20 69 66 28 22 66 75 |t));else if("fu 0003f200: 6e 63 74 69 6f 6e 22 21 3d 74 79 70 65 6f 66 20 nction"!=typeof 0003f210: 6e 29 7b 66 6f 72 28 6f 3d 2d 31 2c 69 3d 6e 2e n){for(o=-1,i=n. 0003f220: 6c 65 6e 67 74 68 2d 31 3b 69 3e 3d 30 3b 69 2d length-1;i>=0;i- 0003f230: 2d 29 69 66 28 6e 5b 69 5d 3d 3d 3d 74 7c 7c 6e -)if(n[i]===t||n 0003f240: 5b 69 5d 2e 6c 69 73 74 65 6e 65 72 3d 3d 3d 74 [i].listener===t 0003f250: 29 7b 61 3d 6e 5b 69 5d 2e 6c 69 73 74 65 6e 65 ){a=n[i].listene 0003f260: 72 2c 6f 3d 69 3b 62 72 65 61 6b 7d 69 66 28 6f r,o=i;break}if(o 0003f270: 3c 30 29 72 65 74 75 72 6e 20 74 68 69 73 3b 30 <0)return this;0 0003f280: 3d 3d 3d 6f 3f 6e 2e 73 68 69 66 74 28 29 3a 66 ===o?n.shift():f 0003f290: 75 6e 63 74 69 6f 6e 28 65 2c 74 29 7b 66 6f 72 unction(e,t){for 0003f2a0: 28 3b 74 2b 31 3c 65 2e 6c 65 6e 67 74 68 3b 74 (;t+1<e.length;t 0003f2b0: 2b 2b 29 65 5b 74 5d 3d 65 5b 74 2b 31 5d 3b 65 ++)e[t]=e[t+1];e 0003f2c0: 2e 70 6f 70 28 29 7d 28 6e 2c 6f 29 2c 31 3d 3d .pop()}(n,o),1== 0003f2d0: 3d 6e 2e 6c 65 6e 67 74 68 26 26 28 72 5b 65 5d =n.length&&(r[e] 0003f2e0: 3d 6e 5b 30 5d 29 2c 76 6f 69 64 20 30 21 3d 3d =n[0]),void 0!== 0003f2f0: 72 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 72 r.removeListener 0003f300: 26 26 74 68 69 73 2e 65 6d 69 74 28 22 72 65 6d &&this.emit("rem 0003f310: 6f 76 65 4c 69 73 74 65 6e 65 72 22 2c 65 2c 61 oveListener",e,a 0003f320: 7c 7c 74 29 7d 72 65 74 75 72 6e 20 74 68 69 73 ||t)}return this 0003f330: 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 6f 66 },i.prototype.of 0003f340: 66 3d 69 2e 70 72 6f 74 6f 74 79 70 65 2e 72 65 f=i.prototype.re 0003f350: 6d 6f 76 65 4c 69 73 74 65 6e 65 72 2c 69 2e 70 moveListener,i.p 0003f360: 72 6f 74 6f 74 79 70 65 2e 72 65 6d 6f 76 65 41 rototype.removeA 0003f370: 6c 6c 4c 69 73 74 65 6e 65 72 73 3d 66 75 6e 63 llListeners=func 0003f380: 74 69 6f 6e 28 65 29 7b 76 61 72 20 74 2c 6e 2c tion(e){var t,n, 0003f390: 72 3b 69 66 28 76 6f 69 64 20 30 3d 3d 3d 28 6e r;if(void 0===(n 0003f3a0: 3d 74 68 69 73 2e 5f 65 76 65 6e 74 73 29 29 72 =this._events))r 0003f3b0: 65 74 75 72 6e 20 74 68 69 73 3b 69 66 28 76 6f eturn this;if(vo 0003f3c0: 69 64 20 30 3d 3d 3d 6e 2e 72 65 6d 6f 76 65 4c id 0===n.removeL 0003f3d0: 69 73 74 65 6e 65 72 29 72 65 74 75 72 6e 20 30 istener)return 0 0003f3e0: 3d 3d 3d 61 72 67 75 6d 65 6e 74 73 2e 6c 65 6e ===arguments.len 0003f3f0: 67 74 68 3f 28 74 68 69 73 2e 5f 65 76 65 6e 74 gth?(this._event 0003f400: 73 3d 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 28 s=Object.create( 0003f410: 6e 75 6c 6c 29 2c 74 68 69 73 2e 5f 65 76 65 6e null),this._even 0003f420: 74 73 43 6f 75 6e 74 3d 30 29 3a 76 6f 69 64 20 tsCount=0):void 0003f430: 30 21 3d 3d 6e 5b 65 5d 26 26 28 30 3d 3d 2d 2d 0!==n[e]&&(0==-- 0003f440: 74 68 69 73 2e 5f 65 76 65 6e 74 73 43 6f 75 6e this._eventsCoun 0003f450: 74 3f 74 68 69 73 2e 5f 65 76 65 6e 74 73 3d 4f t?this._events=O 0003f460: 62 6a 65 63 74 2e 63 72 65 61 74 65 28 6e 75 6c bject.create(nul 0003f470: 6c 29 3a 64 65 6c 65 74 65 20 6e 5b 65 5d 29 2c l):delete n[e]), 0003f480: 74 68 69 73 3b 69 66 28 30 3d 3d 3d 61 72 67 75 this;if(0===argu 0003f490: 6d 65 6e 74 73 2e 6c 65 6e 67 74 68 29 7b 76 61 ments.length){va 0003f4a0: 72 20 6f 2c 69 3d 4f 62 6a 65 63 74 2e 6b 65 79 r o,i=Object.key 0003f4b0: 73 28 6e 29 3b 66 6f 72 28 72 3d 30 3b 72 3c 69 s(n);for(r=0;r<i 0003f4c0: 2e 6c 65 6e 67 74 68 3b 2b 2b 72 29 22 72 65 6d .length;++r)"rem 0003f4d0: 6f 76 65 4c 69 73 74 65 6e 65 72 22 21 3d 3d 28 oveListener"!==( 0003f4e0: 6f 3d 69 5b 72 5d 29 26 26 74 68 69 73 2e 72 65 o=i[r])&&this.re 0003f4f0: 6d 6f 76 65 41 6c 6c 4c 69 73 74 65 6e 65 72 73 moveAllListeners 0003f500: 28 6f 29 3b 72 65 74 75 72 6e 20 74 68 69 73 2e (o);return this. 0003f510: 72 65 6d 6f 76 65 41 6c 6c 4c 69 73 74 65 6e 65 removeAllListene 0003f520: 72 73 28 22 72 65 6d 6f 76 65 4c 69 73 74 65 6e rs("removeListen 0003f530: 65 72 22 29 2c 74 68 69 73 2e 5f 65 76 65 6e 74 er"),this._event 0003f540: 73 3d 4f 62 6a 65 63 74 2e 63 72 65 61 74 65 28 s=Object.create( 0003f550: 6e 75 6c 6c 29 2c 74 68 69 73 2e 5f 65 76 65 6e null),this._even 0003f560: 74 73 43 6f 75 6e 74 3d 30 2c 74 68 69 73 7d 69 tsCount=0,this}i 0003f570: 66 28 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 f("function"==ty 0003f580: 70 65 6f 66 28 74 3d 6e 5b 65 5d 29 29 74 68 69 peof(t=n[e]))thi 0003f590: 73 2e 72 65 6d 6f 76 65 4c 69 73 74 65 6e 65 72 s.removeListener 0003f5a0: 28 65 2c 74 29 3b 65 6c 73 65 20 69 66 28 76 6f (e,t);else if(vo 0003f5b0: 69 64 20 30 21 3d 3d 74 29 66 6f 72 28 72 3d 74 id 0!==t)for(r=t 0003f5c0: 2e 6c 65 6e 67 74 68 2d 31 3b 72 3e 3d 30 3b 72 .length-1;r>=0;r 0003f5d0: 2d 2d 29 74 68 69 73 2e 72 65 6d 6f 76 65 4c 69 --)this.removeLi 0003f5e0: 73 74 65 6e 65 72 28 65 2c 74 5b 72 5d 29 3b 72 stener(e,t[r]);r 0003f5f0: 65 74 75 72 6e 20 74 68 69 73 7d 2c 69 2e 70 72 eturn this},i.pr 0003f600: 6f 74 6f 74 79 70 65 2e 6c 69 73 74 65 6e 65 72 ototype.listener 0003f610: 73 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 s=function(e){re 0003f620: 74 75 72 6e 20 70 28 74 68 69 73 2c 65 2c 21 30 turn p(this,e,!0 0003f630: 29 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e 72 )},i.prototype.r 0003f640: 61 77 4c 69 73 74 65 6e 65 72 73 3d 66 75 6e 63 awListeners=func 0003f650: 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 6e 20 70 tion(e){return p 0003f660: 28 74 68 69 73 2c 65 2c 21 31 29 7d 2c 69 2e 6c (this,e,!1)},i.l 0003f670: 69 73 74 65 6e 65 72 43 6f 75 6e 74 3d 66 75 6e istenerCount=fun 0003f680: 63 74 69 6f 6e 28 65 2c 74 29 7b 72 65 74 75 72 ction(e,t){retur 0003f690: 6e 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 n"function"==typ 0003f6a0: 65 6f 66 20 65 2e 6c 69 73 74 65 6e 65 72 43 6f eof e.listenerCo 0003f6b0: 75 6e 74 3f 65 2e 6c 69 73 74 65 6e 65 72 43 6f unt?e.listenerCo 0003f6c0: 75 6e 74 28 74 29 3a 66 2e 63 61 6c 6c 28 65 2c unt(t):f.call(e, 0003f6d0: 74 29 7d 2c 69 2e 70 72 6f 74 6f 74 79 70 65 2e t)},i.prototype. 0003f6e0: 6c 69 73 74 65 6e 65 72 43 6f 75 6e 74 3d 66 2c listenerCount=f, 0003f6f0: 69 2e 70 72 6f 74 6f 74 79 70 65 2e 65 76 65 6e i.prototype.even 0003f700: 74 4e 61 6d 65 73 3d 66 75 6e 63 74 69 6f 6e 28 tNames=function( 0003f710: 29 7b 72 65 74 75 72 6e 20 74 68 69 73 2e 5f 65 ){return this._e 0003f720: 76 65 6e 74 73 43 6f 75 6e 74 3e 30 3f 74 28 74 ventsCount>0?t(t 0003f730: 68 69 73 2e 5f 65 76 65 6e 74 73 29 3a 5b 5d 7d his._events):[]} 0003f740: 7d 2c 39 34 34 37 30 3a 66 75 6e 63 74 69 6f 6e },94470:function 0003f750: 28 65 29 7b 22 75 73 65 20 73 74 72 69 63 74 22 (e){"use strict" 0003f760: 3b 76 61 72 20 74 3d 4f 62 6a 65 63 74 2e 70 72 ;var t=Object.pr 0003f770: 6f 74 6f 74 79 70 65 2e 68 61 73 4f 77 6e 50 72 ototype.hasOwnPr 0003f780: 6f 70 65 72 74 79 2c 6e 3d 4f 62 6a 65 63 74 2e operty,n=Object. 0003f790: 70 72 6f 74 6f 74 79 70 65 2e 74 6f 53 74 72 69 prototype.toStri 0003f7a0: 6e 67 2c 72 3d 4f 62 6a 65 63 74 2e 64 65 66 69 ng,r=Object.defi 0003f7b0: 6e 65 50 72 6f 70 65 72 74 79 2c 6f 3d 4f 62 6a neProperty,o=Obj 0003f7c0: 65 63 74 2e 67 65 74 4f 77 6e 50 72 6f 70 65 72 ect.getOwnProper 0003f7d0: 74 79 44 65 73 63 72 69 70 74 6f 72 2c 69 3d 66 tyDescriptor,i=f 0003f7e0: 75 6e 63 74 69 6f 6e 28 65 29 7b 72 65 74 75 72 unction(e){retur 0003f7f0: 6e 22 66 75 6e 63 74 69 6f 6e 22 3d 3d 74 79 70 n"function"==typ 0003f800: 65 6f 66 20 41 72 72 61 79 2e 69 73 41 72 72 61 eof Array.isArra 0003f810: 79 3f 41 72 72 61 79 2e 69 73 41 72 72 61 79 28 y?Array.isArray( 0003f820: 65 29 3a 22 5b 6f 62 6a 65 63 74 20 41 72 72 61 e):"[object Arra 0003f830: 79 5d 22 3d 3d 3d 6e 2e 63 61 6c 6c 28 65 29 7d y]"===n.call(e)} 0003f840: 2c 61 3d 66 75 6e 63 74 69 6f 6e 28 65 29 7b 69 ,a=function(e){i 0003f850: 66 28 21 65 7c 7c 22 5b 6f 62 6a 65 63 74 20 4f f(!e||"[object O 0003f860: 62 6a 65 63 74 5d 22 21 3d 3d 6e 2e 63 61 6c 6c bject]"!==n.call 0003f870: 28 65 29 29 72 65 74 75 72 6e 21 31 3b 76 61 72 (e))return!1;var 0003f880: 20 72 2c 6f 3d 74 2e 63 61 6c 6c 28 65 2c 22 63 r,o=t.call(e,"c 0003f890: 6f 6e 73 74 72 75 63 74 6f 72 22 29 2c 69 3d 65 onstructor"),i=e 0003f8a0: 2e 63 6f 6e 73 74 72 75 63 74 6f 72 26 26 65 2e .constructor&&e. 0003f8b0: 63 6f 6e 73 74 72 75 63 74 6f 72 2e 70 72 6f 74 constructor.prot 0003f8c0: 6f 74 79 70 65 26 26 74 2e 63 61 6c 6c 28 65 2e otype&&t.call(e. 0003f8d0: 63 6f 6e 73 74 72 75 63 74 6f 72 2e 70 72 6f 74 constructor.prot 0003f8e0: 6f 74 79 70 65 2c 22 69 73 50 72 6f 74 6f 74 79 otype,"isPrototy 0003f8f0: 70 65 4f 66 22 29 3b 69 66 28 65 2e 63 6f 6e 73 peOf");if(e.cons 0003f900: 74 72 75 63 74 6f 72 26 26 21 6f 26 26 21 69 29 tructor&&!o&&!i) 0003f910: 72 65 74 75 72 6e 21 31 3b 66 6f 72 28 72 20 69 return!1;for(r i 0003f920: 6e 20 65 29 3b 72 65 74 75 72 6e 20 76 6f 69 64 n e);return void 0003f930: 20 30 3d 3d 3d 72 7c 7c 74 2e 63 61 6c 6c 28 65 0===r||t.call(e 0003f940: 2c 72 29 7d 2c 73 3d 66 75 6e 63 74 69 6f 6e 28 ,r)},s=function( 0003f950: 65 2c 74 29 7b 72 26 26 22 5f 5f 70 72 6f 74 6f e,t){r&&"__proto 0003f960: 5f 5f 22 3d 3d 3d 74 2e 6e 61 6d 65 3f 72 28 65 __"===t.name?r(e 0003f970: 2c 74 2e 6e 61 6d 65 2c 7b 65 6e 75 6d 65 72 61 ,t.name,{enumera 0003f980: 62 6c 65 3a 21 30 2c 63 6f 6e 66 69 67 75 72 61 ble:!0,configura 0003f990: 62 6c 65 3a 21 30 2c 76 61 6c 75 65 3a 74 2e 6e ble:!0,value:t.n 0003f9a0: 65 77 56 61 6c 75 65 2c 77 72 69 74 61 62 6c 65 ewValue,writable 0003f9b0: 3a 21 30 7d 29 3a 65 5b 74 2e 6e 61 6d 65 5d 3d :!0}):e[t.name]= 0003f9c0: 74 2e 6e 65 77 56 61 6c 75 65 7d 2c 6c 3d 66 75 t.newValue},l=fu 0003f9d0: 6e 63 74 69 6f 6e 28 65 2c 6e 29 7b 69 66 28 22 nction(e,n){if(" 0003f9e0: 5f 5f 70 72 6f 74 6f 5f 5f 22 3d 3d 3d 6e 29 7b __proto__"===n){ 0003f9f0: 69 66 28 21 74 2e 63 61 6c 6c 28 65 2c 6e 29 29 if(!t.call(e,n)) 0003fa00: 72 65 74 75 72 6e 3b 69 66 28 6f 29 72 65 74 75 return;if(o)retu 0003fa10: 72 6e 20 6f 28 65 2c 6e 29 2e 76 61 6c 75 65 7d rn o(e,n).value} 0003fa20: 72 65 74 75 72 6e 20 65 5b 6e 5d 7d 3b 65 2e 65 return e[n]};e.e 0003fa30: 78 70 6f 72 74 73 3d 66 75 6e 63 74 69 6f 6e 20 xports=function 0003fa40: 65 28 29 7b 76 61 72 20 74 2c 6e 2c 72 2c 6f 2c e(){var t,n,r,o, 0003fa50: 63 2c 75 2c 64 3d 61 72 67 75 6d 65 6e 74 73 5b c,u,d=arguments[ 0003fa60: 30 5d 2c 70 3d 31 2c 66 3d 61 72 67 75 6d 65 6e 0],p=1,f=argumen 0003fa70: 74 73 2e 6c 65 6e 67 74 68 2c 68 3d 21 31 3b 66 ts.length,h=!1;f 0003fa80: 6f 72 28 22 62 6f 6f 6c 65 61 6e 22 3d 3d 74 79 or("boolean"==ty 0003fa90: 70 65 6f 66 20 64 26 26 28 68 3d 64 2c 64 3d 61 peof d&&(h=d,d=a 0003faa0: 72 67 75 6d 65 6e 74 73 5b 31 5d 7c 7c 7b 7d 2c rguments[1]||{}, 0003fab0: 70 3d 32 29 2c 28 6e 75 6c 6c 3d 3d 64 7c 7c 22 p=2),(null==d||" 0003fac0: 6f 62 6a 65 63 74 22 21 3d 74 79 70 65 6f 66 20 object"!=typeof 0003fad0: 64 26 26 22 66 75 6e 63 74 69 6f 6e 22 21 3d 74 d&&"function"!=t 0003fae0: 79 70 65 6f 66 20 64 29 26 26 28 64 3d 7b 7d 29 ypeof d)&&(d={}) 0003faf0: 3b 70 3c 66 3b 2b 2b 70 29 69 66 28 6e 75 6c 6c ;p<f;++p)if(null 0003fb00: 21 3d 28 74 3d 61 72 67 75 6d 65 6e 74 73 5b 70 !=(t=arguments[p 0003fb10: 5d 29 29 66 6f 72 28 6e 20 69 6e 20 74 29 72 3d ]))for(n in t)r= 0003fb20: 6c 28 64 2c 6e 29 2c 64 21 3d 3d 28 6f 3d 6c 28 l(d,n),d!==(o=l( 0003fb30: 74 2c 6e 29 29 26 26 28 68 26 26 6f 26 26 28 61 t,n))&&(h&&o&&(a 0003fb40: 28 6f 29 7c 7c 28 63 3d 69 28 6f 29 29 29 3f 28 (o)||(c=i(o)))?( 0003fb50: 63 3f 28 63 3d 21 31 2c 75 3d 72 26 26 69 28 72 c?(c=!1,u=r&&i(r 0003fb60: 29 3f 72 3a 5b 5d 29 3a 75 3d 72 26 26 61 28 72 )?r:[]):u=r&&a(r 0003fb70: 29 3f 72 3a 7b 7d 2c 73 28 64 2c 7b 6e 61 6d 65 )?r:{},s(d,{name 0003fb80: 3a 6e 2c 6e 65 77 56 61 6c 75 65 3a 65 28 68 2c :n,newValue:e(h, 0003fb90: 75 2c 6f 29 7d 29 29 3a 76 6f 69 64 20 30 21 3d u,o)})):void 0!= 0003fba0: 3d 6f 26 26 73 28 64 2c 7b 6e 61 6d 65 3a 6e 2c =o&&s(d,{name:n, 0003fbb0: 6e 65 77 56 61 6c 75 65 3a 6f 7d 29 29 3b 72 65 newValue:o}));re 0003fbc0: 74 75 72 6e 20 64 7d 7d 2c 36 34 30 36 33 3a 66 turn d}},64063:f 0003fbd0: 75 6e 63 74 69 6f 6e 28 65 29 7b 22 75 73 65 20 unction(e){"use 0003fbe0: 73 74 72 69 63 74 22 3b 65 2e 65 78 70 6f 72 74 strict";e.export 0003fbf0: 73 3d 66 75 6e 63 74 69 6f 6e 20 65 28 74 2c 6e s=function e(t,n 0003fc00: 29 7b 69 66 28 74 3d 3d 3d 6e 29 72 65 74 75 72 ){if(t===n)retur 0003fc10: 6e 21 30 3b 69 66 28 74 26 26 6e 26 26 22 6f 62 n!0;if(t&&n&&"ob 0003fc20: 6a 65 63 74 22 3d 3d 74 79 70 65 6f 66 20 74 26 ject"==typeof t& 0003fc30: 26 22 6f 62 6a 65 63 74 22 3d 3d 74 79 70 65 6f &"object"==typeo 0003fc40: 66 20 6e 29 7b 69 66 28 74 2e 63 6f 6e 73 74 72 f n){if(t.constr 0003fc50: 75 63 74 6f 72 21 3d 3d 6e 2e 63 6f 6e 73 74 72 uctor!==n.constr 0003fc60: 75 63 74 6f 72 29 72 65 74 75 72 6e 21 31 3b 76 uctor)return!1;v 0003fc70: 61 72 20 72 2c 6f 2c 69 3b 69 66 28 41 72 72 61 ar r,o,i;if(Arra 0003fc80: 79 2e 69 73 41 72 72 61 79 28 74 29 29 7b 69 66 y.isArray(t)){if 0003fc90: 28 28 72 3d 74 2e 6c 65 6e 67 74 68 29 21 3d 6e ((r=t.length)!=n 0003fca0: 2e 6c 65 6e 67 74 68 29 72 65 74 75 72 6e 21 31 .length)return!1 0003fcb0: 3b 66 6f 72 28 6f 3d 72 3b 30 21 3d 6f 2d 2d 3b ;for(o=r;0!=o--; 0003fcc0: 29 69 66 28 21 65 28 74 5b 6f 5d 2c 6e 5b 6f 5d )if(!e(t[o],n[o] 0003fcd0: 29 29 72 65 74 75 72 6e 21 31 3b 72 65 74 75 72 ))return!1;retur 0003fce0: 6e 21 30 7d 69 66 28 74 2e 63 6f 6e 73 74 72 75 n!0}if(t.constru 0003fcf0: 63 74 6f 72 3d 3d 3d 52 65 67 45 78 70 29 72 65 ctor===RegExp)re 0003fd00: 74 75 72 6e 20 74 2e 73 6f 75 72 63 65 3d 3d 3d turn t.source=== 0003fd10: 6e 2e 73 6f 75 72 63 65 26 26 74 2e 66 6c 61 67 n.source&&t.flag 0003fd20: 73 3d 3d 3d 6e 2e 66 6c 61 67 73 3b 69 66 28 74 s===n.flags;if(t 0003fd30: 2e 76 61 6c 75 65 4f 66 21 3d 3d 4f 62 6a 65 63 .valueOf!==Objec 0003fd40: 74 2e 70 72 6f 74 6f 74 79 70 65 2e 76 61 6c 75 t.prototype.valu 0003fd50: 65 4f 66 29 72 65 74 75 72 6e 20 74 2e 76 61 6c eOf)return t.val 0003fd60: 75 65 4f 66 28 29 3d 3d 3d 6e 2e 76 61 6c 75 65 ueOf()===n.value 0003fd70: 4f 66 28 29 3b 69 66 28 74 2e 74 6f 53 74 72 69 Of();if(t.toStri 0003fd80: 6e 67 21 3d 3d 4f 62 6a 65 63 74 2e 70 72 6f 74 ng!==Object.prot 0003fd90: 6f 74 79 70 65 2e 74 6f 53 74 72 69 6e 67 29 72 otype.toString)r 0003fda0: 65 74 75 72 6e 20 74 2e 74 6f 53 74 72 69 6e 67 eturn t.toString 0003fdb0: 28 29 3d 3d 3d 6e 2e 74 6f 53 74 72 69 6e 67 28 ()===n.toString( 0003fdc0: 29 3b 69 66 28 28 72 3d 28 69 3d 4f 62 6a 65 63 );if((r=(i=Objec 0003fdd0: 74 2e 6b 65 79 73 28 74 29 29 2e 6c 65 6e 67 74 t.keys(t)).lengt 0003fde0: 68 29 21 3d 3d 4f 62 6a 65 63 74 2e 6b 65 79 73 h)!==Object.keys 0003fdf0: 28 6e 29 2e 6c 65 6e 67 74 68 29 72 65 74 75 72 (n).length)retur 0003fe00: 6e 21 31 3b 66 6f 72 28 6f 3d 72 3b 30 21 3d 6f n!1;for(o=r;0!=o 0003fe10: 2d 2d 3b 29 69 66 28 21 4f 62 6a 65 63 74 2e 70 --;)if(!Object.p 0003fe20: 72 6f 74 6f 74 79 70 65 2e 68 61 73 4f 77 6e 50 rototype.hasOwnP 0003fe30: 72 6f 70 65 72 74 79 2e 63 61 6c 6c 28 6e 2c 69 roperty.call(n,i 0003fe40: 5b 6f 5d 29 29 72 65 74 75 72 6e 21 31 3b 66 6f [o]))return!1;fo 0003fe50: 72 28 6f 3d 72 3b 30 21 3d 6f 2d 2d 3b 29 7b 76 r(o=r;0!=o--;){v 0003fe60: 61 72 20 61 3d 69 5b 6f 5d 3b 69 66 28 21 65 28 ar a=i[o];if(!e( 0003fe70: 74 5b 61 5d 2c 6e 5b 61 5d 29 29 72 65 74 75 72 t[a],n[a]))retur 0003fe80: 6e 21 31 7d 72 65 74 75 72 6e 21 30 7d 72 65 74 n!1}return!0}ret 0003fe90: 75 72 6e 20 74 21 3d 74 26 26 6e 21 3d 6e 7d 7d urn t!=t&&n!=n}} 0003fea0: 2c 32 31 31 30 32 3a 66 75 6e 63 74 69 6f 6e 28 ,21102:function( 0003feb0: 65 2c 74 2c 6e 29 7b 22 75 73 65 20 73 74 72 69 e,t,n){"use stri 0003fec0: 63 74 22 3b 76 61 72 20 72 3d 6e 28 34 36 32 39 ct";var r=n(4629 0003fed0: 31 29 2c 6f 3d 69 28 45 72 72 6f 72 29 3b 66 75 1),o=i(Error);fu 0003fee0: 6e 63 74 69 6f 6e 20 69 28 65 29 7b 72 65 74 75 nction i(e){retu 0003fef0: 72 6e 20 74 2e 64 69 73 70 6c 61 79 4e 61 6d 65 rn t.displayName 0003ff00: 3d 65 2e 64 69 73 70 6c 61 79 4e 61 6d 65 7c 7c =e.displayName|| 0003ff10: 65 2e 6e 61 6d 65 2c 74 3b 66 75 6e 63 74 69 6f e.name,t;functio 0003ff20: 6e 20 74 28 74 29 7b 72 65 74 75 72 6e 20 74 26 n t(t){return t& 0003ff30: 26 28 74 3d 72 2e 61 70 70 6c 79 28 6e 75 6c 6c &(t=r.apply(null 0003ff40: 2c 61 72 67 75 6d 65 6e 74 73 29 29 2c 6e 65 77 ,arguments)),new 0003ff50: 20 65 28 74 29 7d 7d 65 2e 65 78 70 6f 72 74 73 e(t)}}e.exports 0003ff60: 3d 6f 2c 6f 2e 65 76 61 6c 3d 69 28 45 76 61 6c =o,o.eval=i(Eval 0003ff70: 45 72 72 6f 72 29 2c 6f 2e 72 61 6e 67 65 3d 69 Error),o.range=i 0003ff80: 28 52 61 6e 67 65 45 72 72 6f 72 29 2c 6f 2e 72 (RangeError),o.r 0003ff90: 65 66 65 72 65 6e 63 65 3d 69 28 52 65 66 65 72 eference=i(Refer 0003ffa0: 65 6e 63 65 45 72 72 6f 72 29 2c 6f 2e 73 79 6e enceError),o.syn 0003ffb0: 74 61 78 3d 69 28 53 79 6e 74 61 78 45 72 72 6f tax=i(SyntaxErro 0003ffc0: 72 29 2c 6f 2e 74 79 70 65 3d 69 28 54 79 70 65 r),o.type=i(Type 0003ffd0: 45 72 72 6f 72 29 2c 6f 2e 75 72 69 3d 69 28 55 Error),o.uri=i(U 0003ffe0: 52 49 45 72 72 6f 72 29 2c 6f 2e 63 72 65 61 74 RIError),o.creat 0003fff0: 65 3d 69 7d 2c 39 34 30 32 39 3a 66 75 6e 63 74 e=i},94029:funct
Failure:
{
  "type": "action",
  "error": {
    "type": "functionCallError",
    "error": {
      "type": "methodResolveError"
    }
  }
}
No logs
Receipt:
Predecessor ID:
Receiver ID:
Gas Burned:
223 Ggas
Tokens Burned:
0 
Transferred 0.00364  to web4.tldraw.near
Empty result
No logs