1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[335],{5135:function(t,e,r){r(2957);var n,i,o,s,a,R,_,O,u,c=r(4024),N=r(4373),l=r.n(N),E=r(9147),d=r.n(E);r(4561);var T=r(677);r(9272),r(3425),r(7625);var h=r(2957).Buffer;let A=t=>"version"in t;function f(t){return d().encode(t)}T.struct([T.publicKey("authority"),T.vecU8("data")]);class p extends TypeError{constructor(t,e){let r;let{message:n,...i}=t,{path:o}=t;super(0===o.length?n:"At path: "+o.join(".")+" -- "+n),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>{var n;return null!=(n=r)?n:r=[t,...e()]}}}function y(t){return"object"==typeof t&&null!=t}function I(t){return"string"==typeof t?JSON.stringify(t):""+t}function*C(t,e,r,n){var i;for(let o of(y(i=t)&&"function"==typeof i[Symbol.iterator]||(t=[t]),t)){let t=function(t,e,r,n){if(!0===t)return;!1===t?t={}:"string"==typeof t&&(t={message:t});let{path:i,branch:o}=e,{type:s}=r,{refinement:a,message:R="Expected a value of type `"+s+"`"+(a?" with refinement `"+a+"`":"")+", but received: `"+I(n)+"`"}=t;return{value:n,type:s,refinement:a,key:i[i.length-1],path:i,branch:o,...t,message:R}}(o,e,r,n);t&&(yield t)}}function*S(t,e,r){void 0===r&&(r={});let{path:n=[],branch:i=[t],coerce:o=!1,mask:s=!1}=r,a={path:n,branch:i};if(o&&(t=e.coercer(t,a),s&&"type"!==e.type&&y(e.schema)&&y(t)&&!Array.isArray(t)))for(let r in t)void 0===e.schema[r]&&delete t[r];let R=!0;for(let r of e.validator(t,a))R=!1,yield[r,void 0];for(let[r,_,O]of e.entries(t,a))for(let e of S(_,O,{path:void 0===r?n:[...n,r],branch:void 0===r?i:[...i,_],coerce:o,mask:s}))e[0]?(R=!1,yield[e[0],void 0]):o&&(_=e[1],void 0===r?t=_:t instanceof Map?t.set(r,_):t instanceof Set?t.add(_):y(t)&&(t[r]=_));if(R)for(let r of e.refiner(t,a))R=!1,yield[r,void 0];R&&(yield[void 0,t])}class m{constructor(t){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;let{type:e,schema:r,validator:n,refiner:i,coercer:o=t=>t,entries:s=function*(){}}=t;this.type=e,this.schema=r,this.entries=s,this.coercer=o,n?this.validator=(t,e)=>C(n(t,e),e,this,t):this.validator=()=>[],i?this.refiner=(t,e)=>C(i(t,e),e,this,t):this.refiner=()=>[]}assert(t){return function(t,e){let r=b(t,e);if(r[0])throw r[0]}(t,this)}create(t){return v(t,this)}is(t){return!b(t,this)[0]}mask(t){return function(t,e){let r=b(t,e,{coerce:!0,mask:!0});if(!r[0])return r[1];throw r[0]}(t,this)}validate(t,e){return void 0===e&&(e={}),b(t,this,e)}}function v(t,e){let r=b(t,e,{coerce:!0});if(!r[0])return r[1];throw r[0]}function b(t,e,r){void 0===r&&(r={});let n=S(t,e,r),i=function(t){let{done:e,value:r}=t.next();return e?void 0:r}(n);return i[0]?[new p(i[0],function*(){for(let t of n)t[0]&&(yield t[0])}),void 0]:[void 0,i[1]]}function g(t,e){return new m({type:t,schema:null,validator:e})}function w(t){return new m({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(let[r,n]of e.entries())yield[r,n,t]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||"Expected an array value, but received: "+I(t)})}function H(t){let e=I(t),r=typeof t;return new m({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?t:null,validator:r=>r===t||"Expected the literal `"+e+"`, but received: "+I(r)})}function D(t){return new m({...t,validator:(e,r)=>null===e||t.validator(e,r),refiner:(e,r)=>null===e||t.refiner(e,r)})}function U(){return g("number",t=>"number"==typeof t&&!isNaN(t)||"Expected a number, but received: "+I(t))}function M(t){return new m({...t,validator:(e,r)=>void 0===e||t.validator(e,r),refiner:(e,r)=>void 0===e||t.refiner(e,r)})}function P(){return g("string",t=>"string"==typeof t||"Expected a string, but received: "+I(t))}function L(t){let e=Object.keys(t);return new m({type:"type",schema:t,*entries(r){if(y(r))for(let n of e)yield[n,r[n],t[n]]},validator:t=>y(t)||"Expected an object, but received: "+I(t)})}function x(t){let e=t.map(t=>t.type).join(" | ");return new m({type:"union",schema:null,coercer:(e,r)=>(t.find(t=>{let[r]=t.validate(e,{coerce:!0});return!r})||B()).coercer(e,r),validator(r,n){let i=[];for(let e of t){let[...t]=S(r,e,n),[o]=t;if(!o[0])return[];for(let[e]of t)e&&i.push(e)}return["Expected the value to satisfy a union of `"+e+"`, but received: "+I(r),...i]}})}function B(){return g("unknown",()=>!0)}async function G(t,e,r){let n=null!=r?r:t.commitment,{value:i,context:o}=await t.getMultipleAccountsInfoAndContext(e,n);return i.map((t,r)=>null===t?null:{publicKey:e[r],account:t,context:o})}async function V(t,e,r,n,i){var o;r&&r.length>0&&e.sign(...r);let s=e._compile(),a=s.serialize(),R=e._serialize(a).toString("base64"),_={encoding:"base64",commitment:null!=n?n:t.commitment};if(i){let t=(Array.isArray(i)?i:s.nonProgramIds()).map(t=>
1t.toBase58());_.accounts={encoding:"base64",addresses:t}}r&&r.length>0&&(_.sigVerify=!0);let O=v(await t._rpcRequest("simulateTransaction",[R,_]),j);if("error"in O){let t;if("data"in O.error&&(t=null===(o=O.error.data)||void 0===o?void 0:o.logs)&&Array.isArray(t)){let e="\n ",r=e+t.join(e);console.error(O.error.message,r)}throw new c.SendTransactionError("failed to simulate transaction: "+O.error.message,t)}return O.result}let K=X(B());function X(t){return x([L({jsonrpc:H("2.0"),id:P(),result:t}),L({jsonrpc:H("2.0"),id:P(),error:L({code:B(),message:P(),data:M(g("any",()=>!0))})})])}let j=(n=L({err:D(x([L({}),P()])),logs:D(w(P())),accounts:M(D(w(D(L({executable:g("boolean",t=>"boolean"==typeof t),owner:P(),lamports:U(),data:w(P()),rentEpoch:M(U())}))))),unitsConsumed:M(U())}),o=X(i=L({context:L({slot:U()}),value:n})),s=t=>"error"in t?t:{...t,result:v(t.result,i)},new m({...o,coercer:(t,e)=>b(t,K)[0]?o.coercer(t,e):o.coercer(s(t,e),e)}));class k{constructor(t,e,r=k.defaultOptions()){this.connection=t,this.wallet=e,this.opts=r,this.publicKey=null==e?void 0:e.publicKey}static defaultOptions(){return{preflightCommitment:"processed",commitment:"processed"}}static local(t,e=k.defaultOptions()){throw Error("Provider local is not available on browser.")}static env(){throw Error("Provider env is not available on browser.")}async sendAndConfirm(t,e,r){var n,i,o,s;if(void 0===r&&(r=this.opts),A(t))e&&t.sign(e);else if(t.feePayer=null!==(n=t.feePayer)&&void 0!==n?n:this.wallet.publicKey,t.recentBlockhash=(await this.connection.getLatestBlockhash(r.preflightCommitment)).blockhash,e)for(let r of e)t.partialSign(r);let a=(t=await this.wallet.signTransaction(t)).serialize();try{return await F(this.connection,a,r)}catch(e){if(e instanceof Q){let r=f(A(t)?(null===(i=t.signatures)||void 0===i?void 0:i[0])||new Uint8Array:null!==(o=t.signature)&&void 0!==o?o:new Uint8Array),n=A(t)?0:void 0,a=await this.connection.getTransaction(r,{commitment:"confirmed",maxSupportedTransactionVersion:n});if(a){let t=null===(s=a.meta)||void 0===s?void 0:s.logMessages;throw t?new c.SendTransactionError(e.message,t):e}}throw e}}async sendAll(t,e){var r,n,i;void 0===e&&(e=this.opts);let o=(await this.connection.getLatestBlockhash(e.preflightCommitment)).blockhash,s=t.map(t=>{var e,r;if(A(t.tx)){let e=t.tx;return t.signers&&e.sign(t.signers),e}{let n=t.tx,i=null!==(e=t.signers)&&void 0!==e?e:[];return n.feePayer=null!==(r=n.feePayer)&&void 0!==r?r:this.wallet.publicKey,n.recentBlockhash=o,i.forEach(t=>{n.partialSign(t)}),n}}),a=await this.wallet.signAllTransactions(s),R=[];for(let t=0;t<s.length;t+=1){let o=a[t],s=o.serialize();try{R.push(await F(this.connection,s,e))}catch(t){if(t instanceof Q){let e=f(A(o)?(null===(r=o.signatures)||void 0===r?void 0:r[0])||new Uint8Array:null!==(n=o.signature)&&void 0!==n?n:new Uint8Array),s=A(o)?0:void 0,a=await this.connection.getTransaction(e,{commitment:"confirmed",maxSupportedTransactionVersion:s});if(a){let e=null===(i=a.meta)||void 0===i?void 0:i.logMessages;throw e?new c.SendTransactionError(t.message,e):t}}throw t}}return R}async simulate(t,e,r,n){let i,o=(await this.connection.getLatestBlockhash(null!=r?r:this.connection.commitment)).blockhash;if(A(t)?(e&&e.length>0&&(t.sign(e),t=await this.wallet.signTransaction(t)),i=await this.connection.simulateTransaction(t,{commitment:r})):(t.feePayer=t.feePayer||this.wallet.publicKey,t.recentBlockhash=o,e&&e.length>0&&(t=await this.wallet.signTransaction(t)),i=await V(this.connection,t,e,r,n)),i.value.err)throw new Y(i.value);return i.value}}class Y extends Error{constructor(t,e){super(e),this.simulationResponse=t}}async function F(t,e,r){let n=r&&{skipPreflight:r.skipPreflight,preflightCommitment:r.preflightCommitment||r.commitment},i=await t.sendRawTransaction(e,n),o=(await t.confirmTransaction(i,r&&r.commitment)).value;if(o.err)throw new Q(`Raw transaction ${i} failed (${JSON.stringify(o)})`);return i}class Q extends Error{constructor(t){super(t)}}var W="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},z={};
1Object.defineProperty(z,"__esModule",{value:!0});var Z=z.ANCHOR_ERROR__REQUIRE_EQ_VIOLATED=z.ANCHOR_ERROR__REQUIRE_VIOLATED=z.ANCHOR_ERROR__CONSTRAINT_MINT_TRANSFER_HOOK_EXTENSION_PROGRAM_ID=z.ANCHOR_ERROR__CONSTRAINT_MINT_TRANSFER_HOOK_EXTENSION_AUTHORITY=z.ANCHOR_ERROR__CONSTRAINT_MINT_TRANSFER_HOOK_EXTENSION=z.ANCHOR_ERROR__CONSTRAINT_MINT_PERMANENT_DELEGATE_EXTENSION_DELEGATE=z.ANCHOR_ERROR__CONSTRAINT_MINT_PERMANENT_DELEGATE_EXTENSION=z.ANCHOR_ERROR__CONSTRAINT_MINT_CLOSE_AUTHORITY_EXTENSION_AUTHORITY=z.ANCHOR_ERROR__CONSTRAINT_MINT_CLOSE_AUTHORITY_EXTENSION=z.ANCHOR_ERROR__CONSTRAINT_MINT_METADATA_POINTER_EXTENSION_METADATA_ADDRESS=z.ANCHOR_ERROR__CONSTRAINT_MINT_METADATA_POINTER_EXTENSION_AUTHORITY=z.ANCHOR_ERROR__CONSTRAINT_MINT_METADATA_POINTER_EXTENSION=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_MEMBER_POINTER_EXTENSION_MEMBER_ADDRESS=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_MEMBER_POINTER_EXTENSION_AUTHORITY=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_MEMBER_POINTER_EXTENSION=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_POINTER_EXTENSION_GROUP_ADDRESS=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_POINTER_EXTENSION_AUTHORITY=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_POINTER_EXTENSION=z.ANCHOR_ERROR__CONSTRAINT_ASSOCIATED_TOKEN_TOKEN_PROGRAM=z.ANCHOR_ERROR__CONSTRAINT_MINT_TOKEN_PROGRAM=z.ANCHOR_ERROR__CONSTRAINT_TOKEN_TOKEN_PROGRAM=z.ANCHOR_ERROR__CONSTRAINT_ACCOUNT_IS_NONE=z.ANCHOR_ERROR__CONSTRAINT_SPACE=z.ANCHOR_ERROR__CONSTRAINT_MINT_DECIMALS=z.ANCHOR_ERROR__CONSTRAINT_MINT_FREEZE_AUTHORITY=z.ANCHOR_ERROR__CONSTRAINT_MINT_MINT_AUTHORITY=z.ANCHOR_ERROR__CONSTRAINT_TOKEN_OWNER=z.ANCHOR_ERROR__CONSTRAINT_TOKEN_MINT=z.ANCHOR_ERROR__CONSTRAINT_ZERO=z.ANCHOR_ERROR__CONSTRAINT_ADDRESS=z.ANCHOR_ERROR__CONSTRAINT_CLOSE=z.ANCHOR_ERROR__CONSTRAINT_ASSOCIATED_INIT=z.ANCHOR_ERROR__CONSTRAINT_ASSOCIATED=z.ANCHOR_ERROR__CONSTRAINT_STATE=z.ANCHOR_ERROR__CONSTRAINT_EXECUTABLE=z.ANCHOR_ERROR__CONSTRAINT_SEEDS=z.ANCHOR_ERROR__CONSTRAINT_RENT_EXEMPT=z.ANCHOR_ERROR__CONSTRAINT_OWNER=z.ANCHOR_ERROR__CONSTRAINT_RAW=z.ANCHOR_ERROR__CONSTRAINT_SIGNER=z.ANCHOR_ERROR__CONSTRAINT_HAS_ONE=z.ANCHOR_ERROR__CONSTRAINT_MUT=z.ANCHOR_ERROR__EVENT_INSTRUCTION_STUB=z.ANCHOR_ERROR__IDL_ACCOUNT_NOT_EMPTY=z.ANCHOR_ERROR__IDL_INSTRUCTION_INVALID_PROGRAM=z.ANCHOR_ERROR__IDL_INSTRUCTION_STUB=z.ANCHOR_ERROR__INSTRUCTION_DID_NOT_SERIALIZE=z.ANCHOR_ERROR__INSTRUCTION_DID_NOT_DESERIALIZE=z.ANCHOR_ERROR__INSTRUCTION_FALLBACK_NOT_FOUND=z.ANCHOR_ERROR__INSTRUCTION_MISSING=void 0,q=z.ANCHOR_ERROR__DEPRECATED=z.ANCHOR_ERROR__INVALID_NUMERIC_CONVERSION=z.ANCHOR_ERROR__TRYING_TO_INIT_PAYER_AS_PROGRAM_ACCOUNT=z.ANCHOR_ERROR__DECLARED_PROGRAM_ID_MISMATCH=z.ANCHOR_ERROR__ACCOUNT_DUPLICATE_REALLOCS=z.ANCHOR_ERROR__ACCOUNT_REALLOC_EXCEEDS_LIMIT=z.ANCHOR_ERROR__ACCOUNT_SYSVAR_MISMATCH=z.ANCHOR_ERROR__ACCOUNT_NOT_ASSOCIATED_TOKEN_ACCOUNT=z.ANCHOR_ERROR__ACCOUNT_NOT_PROGRAM_DATA=z.ANCHOR_ERROR__ACCOUNT_NOT_INITIALIZED=z.ANCHOR_ERROR__ACCOUNT_NOT_SYSTEM_OWNED=z.ANCHOR_ERROR__ACCOUNT_NOT_SIGNER=z.ANCHOR_ERROR__INVALID_PROGRAM_EXECUTABLE=z.ANCHOR_ERROR__INVALID_PROGRAM_ID=z.ANCHOR_ERROR__ACCOUNT_OWNED_BY_WRONG_PROGRAM=z.ANCHOR_ERROR__ACCOUNT_NOT_MUTABLE=z.ANCHOR_ERROR__ACCOUNT_NOT_ENOUGH_KEYS=z.ANCHOR_ERROR__ACCOUNT_DID_NOT_SERIALIZE=z.ANCHOR_ERROR__ACCOUNT_DID_NOT_DESERIALIZE=z.ANCHOR_ERROR__ACCOUNT_DISCRIMINATOR_MISMATCH=z.ANCHOR_ERROR__ACCOUNT_DISCRIMINATOR_NOT_FOUND=z.ANCHOR_ERROR__ACCOUNT_DISCRIMINATOR_ALREADY_SET=z.ANCHOR_ERROR__REQUIRE_GTE_VIOLATED=z.ANCHOR_ERROR__REQUIRE_GT_VIOLATED=z.ANCHOR_ERROR__REQUIRE_KEYS_NEQ_VIOLATED=z.ANCHOR_ERROR__REQUIRE_NEQ_VIOLATED=z.ANCHOR_ERROR__REQUIRE_KEYS_EQ_VIOLATED=void 0,J=z.ANCHOR_ERROR__INSTRUCTION_MISSING=100,$=z.ANCHOR_ERROR__INSTRUCTION_FALLBACK_NOT_FOUND=101,tt=z.ANCHOR_ERROR__INSTRUCTION_DID_NOT_DESERIALIZE=102,te=z.ANCHOR_ERROR__INSTRUCTION_DID_NOT_SERIALIZE=103,tr=z.ANCHOR_ERROR__IDL_INSTRUCTION_STUB=1e3,tn=z.ANCHOR_ERROR__IDL_INSTRUCTION_INVALID_PROGRAM=1001,ti=z.ANCHOR_ERROR__IDL_ACCOUNT_NOT_EMPTY=1002,to=z.ANCHOR_ERROR__EVENT_INSTRUCTION_STUB=1500,ts=z.ANCHOR_ERROR__CONSTRAINT_MUT=2e3,ta=z.ANCHOR_ERROR__CONSTRAINT_HAS_ONE=2001,tR=z.ANCHOR_ERROR__CONSTRAINT_SIGNER=2002,t_=z.ANCHOR_ERROR__CONSTRAINT_RAW
1=2003,tO=z.ANCHOR_ERROR__CONSTRAINT_OWNER=2004,tu=z.ANCHOR_ERROR__CONSTRAINT_RENT_EXEMPT=2005,tc=z.ANCHOR_ERROR__CONSTRAINT_SEEDS=2006,tN=z.ANCHOR_ERROR__CONSTRAINT_EXECUTABLE=2007,tl=z.ANCHOR_ERROR__CONSTRAINT_STATE=2008,tE=z.ANCHOR_ERROR__CONSTRAINT_ASSOCIATED=2009,td=z.ANCHOR_ERROR__CONSTRAINT_ASSOCIATED_INIT=2010,tT=z.ANCHOR_ERROR__CONSTRAINT_CLOSE=2011,th=z.ANCHOR_ERROR__CONSTRAINT_ADDRESS=2012,tA=z.ANCHOR_ERROR__CONSTRAINT_ZERO=2013,tf=z.ANCHOR_ERROR__CONSTRAINT_TOKEN_MINT=2014,tp=z.ANCHOR_ERROR__CONSTRAINT_TOKEN_OWNER=2015,ty=z.ANCHOR_ERROR__CONSTRAINT_MINT_MINT_AUTHORITY=2016,tI=z.ANCHOR_ERROR__CONSTRAINT_MINT_FREEZE_AUTHORITY=2017,tC=z.ANCHOR_ERROR__CONSTRAINT_MINT_DECIMALS=2018,tS=z.ANCHOR_ERROR__CONSTRAINT_SPACE=2019,tm=z.ANCHOR_ERROR__CONSTRAINT_ACCOUNT_IS_NONE=2020,tv=z.ANCHOR_ERROR__CONSTRAINT_TOKEN_TOKEN_PROGRAM=2021,tb=z.ANCHOR_ERROR__CONSTRAINT_MINT_TOKEN_PROGRAM=2022,tg=z.ANCHOR_ERROR__CONSTRAINT_ASSOCIATED_TOKEN_TOKEN_PROGRAM=2023,tw=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_POINTER_EXTENSION=2024,tH=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_POINTER_EXTENSION_AUTHORITY=2025,tD=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_POINTER_EXTENSION_GROUP_ADDRESS=2026,tU=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_MEMBER_POINTER_EXTENSION=2027,tM=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_MEMBER_POINTER_EXTENSION_AUTHORITY=2028,tP=z.ANCHOR_ERROR__CONSTRAINT_MINT_GROUP_MEMBER_POINTER_EXTENSION_MEMBER_ADDRESS=2029,tL=z.ANCHOR_ERROR__CONSTRAINT_MINT_METADATA_POINTER_EXTENSION=2030,tx=z.ANCHOR_ERROR__CONSTRAINT_MINT_METADATA_POINTER_EXTENSION_AUTHORITY=2031,tB=z.ANCHOR_ERROR__CONSTRAINT_MINT_METADATA_POINTER_EXTENSION_METADATA_ADDRESS=2032,tG=z.ANCHOR_ERROR__CONSTRAINT_MINT_CLOSE_AUTHORITY_EXTENSION=2033,tV=z.ANCHOR_ERROR__CONSTRAINT_MINT_CLOSE_AUTHORITY_EXTENSION_AUTHORITY=2034,tK=z.ANCHOR_ERROR__CONSTRAINT_MINT_PERMANENT_DELEGATE_EXTENSION=2035,tX=z.ANCHOR_ERROR__CONSTRAINT_MINT_PERMANENT_DELEGATE_EXTENSION_DELEGATE=2036,tj=z.ANCHOR_ERROR__CONSTRAINT_MINT_TRANSFER_HOOK_EXTENSION=2037,tk=z.ANCHOR_ERROR__CONSTRAINT_MINT_TRANSFER_HOOK_EXTENSION_AUTHORITY=2038,tY=z.ANCHOR_ERROR__CONSTRAINT_MINT_TRANSFER_HOOK_EXTENSION_PROGRAM_ID=2039,tF=z.ANCHOR_ERROR__REQUIRE_VIOLATED=2500;z.ANCHOR_ERROR__REQUIRE_EQ_VIOLATED=2501;var tQ=z.ANCHOR_ERROR__REQUIRE_KEYS_EQ_VIOLATED=2502,tW=z.ANCHOR_ERROR__REQUIRE_NEQ_VIOLATED=2503,tz=z.ANCHOR_ERROR__REQUIRE_KEYS_NEQ_VIOLATED=2504,tZ=z.ANCHOR_ERROR__REQUIRE_GT_VIOLATED=2505,tq=z.ANCHOR_ERROR__REQUIRE_GTE_VIOLATED=2506,tJ=z.ANCHOR_ERROR__ACCOUNT_DISCRIMINATOR_ALREADY_SET=3e3,t$=z.ANCHOR_ERROR__ACCOUNT_DISCRIMINATOR_NOT_FOUND=3001,t0=z.ANCHOR_ERROR__ACCOUNT_DISCRIMINATOR_MISMATCH=3002,t1=z.ANCHOR_ERROR__ACCOUNT_DID_NOT_DESERIALIZE=3003,t2=z.ANCHOR_ERROR__ACCOUNT_DID_NOT_SERIALIZE=3004,t3=z.ANCHOR_ERROR__ACCOUNT_NOT_ENOUGH_KEYS=3005,t4=z.ANCHOR_ERROR__ACCOUNT_NOT_MUTABLE=3006,t8=z.ANCHOR_ERROR__ACCOUNT_OWNED_BY_WRONG_PROGRAM=3007,t6=z.ANCHOR_ERROR__INVALID_PROGRAM_ID=3008,t5=z.ANCHOR_ERROR__INVALID_PROGRAM_EXECUTABLE=3009,t9=z.ANCHOR_ERROR__ACCOUNT_NOT_SIGNER=3010,t7=z.ANCHOR_ERROR__ACCOUNT_NOT_SYSTEM_OWNED=3011,et=z.ANCHOR_ERROR__ACCOUNT_NOT_INITIALIZED=3012,ee=z.ANCHOR_ERROR__ACCOUNT_NOT_PROGRAM_DATA=3013,er=z.ANCHOR_ERROR__ACCOUNT_NOT_ASSOCIATED_TOKEN_ACCOUNT=3014,en=z.ANCHOR_ERROR__ACCOUNT_SYSVAR_MISMATCH=3015,ei=z.ANCHOR_ERROR__ACCOUNT_REALLOC_EXCEEDS_LIMIT=3016,eo=z.ANCHOR_ERROR__ACCOUNT_DUPLICATE_REALLOCS=3017,es=z.ANCHOR_ERROR__DECLARED_PROGRAM_ID_MISMATCH=4100,ea=z.ANCHOR_ERROR__TRYING_TO_INIT_PAYER_AS_PROGRAM_ACCOUNT=4101,eR=z.ANCHOR_ERROR__INVALID_NUMERIC_CONVERSION=4102;z.ANCHOR_ERROR__DEPRECATED=5e3;class e_{constructor(t,e){if(!Number.isInteger(t))throw TypeError("span must be an integer");this.span=t,this.property=e}makeDestinationObject(){return{}}decode(t,e){throw Error("Layout is abstract")}encode(t,e,r){throw Error("Layout is abstract")}getSpan(t,e){if(0>this.span)throw RangeError("indeterminate span");return this.span}replicate(t){let e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}fromArray(t){}}var eO=e_;class eu extends e_{isCount(){throw Error("ExternalLayout is abstract")}}class ec extends eu{constructor(t,e,r){if(!(t instanceof e_))throw TypeError("layout must be a Layout");if(void 0===e)e=0;else if(!Number.isInteger(e))throw TypeError("offset must be integer or undefined");super(t.span,r||t.property),this.layout=t,this.offset=e}isCount(){return this.layout instanceof eN||this.layout instanceof el}decode(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)}encode(t,e,r){return void 0===r&&(r=0),this.layout.encode(t,e,r+this.offset)}}class eN extends e_{constructor(t,e){if(super(t,e),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readUIntLE(e,this.span)}encode(t,e,r){return void 0===r&&(r=0),e.writeUIntLE(t,r,this.span),this.span}}class el extends e_{constructor(t,e){if(super(t,e),6<this.span)throw RangeError("span must not exceed 6 bytes")}decode(t,e){return void 0===e&&(e=0),t.readUIntBE(e,this.span)}encode(t,e,r){return void 0===r&&(r=0),e.writeUIntBE(t,r,this.span),this.span}}function eE(t){let e=Math.floor(t/4294967296);return{hi32:e,lo32:t-4294967296*e}}
1function ed(t,e){return 4294967296*t+e}class eT extends e_{constructor(t){super(8,t)}decode(t,e){void 0===e&&(e=0);let r=t.readUInt32LE(e);return ed(t.readUInt32LE(e+4),r)}encode(t,e,r){void 0===r&&(r=0);let n=eE(t);return e.writeUInt32LE(n.lo32,r),e.writeUInt32LE(n.hi32,r+4),8}}class eh extends e_{constructor(t){super(8,t)}decode(t,e){void 0===e&&(e=0);let r=t.readUInt32LE(e);return ed(t.readInt32LE(e+4),r)}encode(t,e,r){void 0===r&&(r=0);let n=eE(t);return e.writeUInt32LE(n.lo32,r),e.writeInt32LE(n.hi32,r+4),8}}class eA extends e_{constructor(t,e,r){if(!(Array.isArray(t)&&t.reduce((t,e)=>t&&e instanceof e_,!0)))throw TypeError("fields must be array of Layout instances");for(let n of("boolean"==typeof e&&void 0===r&&(r=e,e=void 0),t))if(0>n.span&&void 0===n.property)throw Error("fields cannot contain unnamed variable-length layout");let n=-1;try{n=t.reduce((t,e)=>t+e.getSpan(),0)}catch(t){}super(n,e),this.fields=t,this.decodePrefixes=!!r}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let r=0;try{r=this.fields.reduce((r,n)=>{let i=n.getSpan(t,e);return e+=i,r+i},0)}catch(t){throw RangeError("indeterminate span")}return r}decode(t,e){void 0===e&&(e=0);let r=this.makeDestinationObject();for(let n of this.fields)if(void 0!==n.property&&(r[n.property]=n.decode(t,e)),e+=n.getSpan(t,e),this.decodePrefixes&&t.length===e)break;return r}encode(t,e,r){void 0===r&&(r=0);let n=r,i=0,o=0;for(let n of this.fields){let s=n.span;if(o=0<s?s:0,void 0!==n.property){let i=t[n.property];void 0!==i&&(o=n.encode(i,e,r),0>s&&(s=n.getSpan(e,r)))}i=r,r+=s}return i+o-n}fromArray(t){let e=this.makeDestinationObject();for(let r of this.fields)void 0!==r.property&&0<t.length&&(e[r.property]=t.shift());return e}layoutFor(t){if("string"!=typeof t)throw TypeError("property must be string");for(let e of this.fields)if(e.property===t)return e}offsetOf(t){if("string"!=typeof t)throw TypeError("property must be string");let e=0;for(let r of this.fields){if(r.property===t)return e;0>r.span?e=-1:0<=e&&(e+=r.span)}}}class ef{constructor(t){this.property=t}decode(){throw Error("UnionDiscriminator is abstract")}encode(){throw Error("UnionDiscriminator is abstract")}}class ep extends ef{constructor(t,e){if(!(t instanceof eu&&t.isCount()))throw TypeError("layout must be an unsigned integer ExternalLayout");super(e||t.property||"variant"),this.layout=t}decode(t,e){return this.layout.decode(t,e)}encode(t,e,r){return this.layout.encode(t,e,r)}}class ey extends e_{constructor(t,e,r){let n=t instanceof eN||t instanceof el;if(n)t=new ep(new ec(t));else if(t instanceof eu&&t.isCount())t=new ep(t);else if(!(t instanceof ef))throw TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===e&&(e=null),!(null===e||e instanceof e_))throw TypeError("defaultLayout must be null or a Layout");if(null!==e){if(0>e.span)throw Error("defaultLayout must have constant span");void 0===e.property&&(e=e.replicate("content"))}let i=-1;e&&0<=(i=e.span)&&n&&(i+=t.layout.span),super(i,r),this.discriminator=t,this.usesPrefixDiscriminator=n,this.defaultLayout=e,this.registry={};let o=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(t){return o(t)},this.configGetSourceVariant=function(t){o=t.bind(this)}}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let r=this.getVariant(t,e);if(!r)throw Error("unable to determine span for unrecognized variant");return r.getSpan(t,e)}defaultGetSourceVariant(t){if(t.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&t.hasOwnProperty(this.defaultLayout.property))return;let e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||t.hasOwnProperty(e.property)))return e}else for(let e in this.registry){let r=this.registry[e];if(t.hasOwnProperty(r.property))return r}throw Error("unable to infer src variant")}decode(t,e){let r;void 0===e&&(e=0);let n=this.discriminator,i=n.decode(t,e),o=this.registry[i];if(void 0===o){let s=0;o=this.defaultLayout,this.usesPrefixDiscriminator&&(s=n.layout.span),(r=this.makeDestinationObject())[n.property]=i,r[o.property]=this.defaultLayout.decode(t,e+s)}else r=o.decode(t,e);return r}encode(t,e,r){void 0===r&&(r=0);let n=this.getSourceVariant(t);if(void 0===n){let n=this.discriminator,i=this.defaultLayout,o=0;return this.usesPrefixDiscriminator&&(o=n.layout.span),n.encode(t[n.property],e,r),o+i.encode(t[i.property],e,r+o)}return n.encode(t,e,r)}addVariant(t,e,r){let n=new eI(this,t,e,r);return this.registry[t]=n,n}getVariant(t,e){let r=t;return h.isBuffer(t)&&(void 0===e&&(e=0),r=this.discriminator.decode(t,e)),this.registry[r]}}class eI extends e_{constructor(t,e,r,n){if(!(t instanceof ey))throw TypeError("union must be a Union");if(!Number.isInteger(e)||0>e)throw TypeError("variant must be a (non-negative) integer");if("string"==typeof r&&void 0===n&&(n=r,r=null),r){if(!(r instanceof e_))throw TypeError("layout must be a Layout");
1if(null!==t.defaultLayout&&0<=r.span&&r.span>t.defaultLayout.span)throw Error("variant span exceeds span of containing union");if("string"!=typeof n)throw TypeError("variant must have a String property")}let i=t.span;0>t.span&&0<=(i=r?r.span:0)&&t.usesPrefixDiscriminator&&(i+=t.discriminator.layout.span),super(i,n),this.union=t,this.variant=e,this.layout=r||null}getSpan(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),r+this.layout.getSpan(t,e+r)}decode(t,e){let r=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw Error("variant mismatch");let n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout?r[this.property]=this.layout.decode(t,e+n):this.property?r[this.property]=!0:this.union.usesPrefixDiscriminator&&(r[this.union.discriminator.property]=this.variant),r}encode(t,e,r){void 0===r&&(r=0);let n=0;if(this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),this.layout&&!t.hasOwnProperty(this.property))throw TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,r);let i=n;if(this.layout&&(this.layout.encode(t[this.property],e,r+n),i+=this.layout.getSpan(e,r+n),0<=this.union.span&&i>this.union.span))throw Error("encoded variant overruns containing union");return i}fromArray(t){if(this.layout)return this.layout.fromArray(t)}}class eC extends e_{constructor(t,e){if(!(t instanceof eu&&t.isCount()||Number.isInteger(t)&&0<=t))throw TypeError("length must be positive integer or an unsigned integer ExternalLayout");let r=-1;t instanceof eu||(r=t),super(r,e),this.length=t}getSpan(t,e){let r=this.span;return 0>r&&(r=this.length.decode(t,e)),r}decode(t,e){void 0===e&&(e=0);let r=this.span;return 0>r&&(r=this.length.decode(t,e)),t.slice(e,e+r)}encode(t,e,r){let n=this.length;if(this.length instanceof eu&&(n=t.length),!(h.isBuffer(t)&&n===t.length)){var i;throw TypeError((i="Blob.encode",(this.property?i+"["+this.property+"]":i)+" requires (length "+n+") Buffer as src"))}if(r+n>e.length)throw RangeError("encoding overruns Buffer");return e.write(t.toString("hex"),r,n,"hex"),this.length instanceof eu&&this.length.encode(n,e,r),n}}var eS=(t,e,r)=>new ec(t,e,r),em=t=>new eN(1,t),ev=t=>new eN(4,t),eb=t=>new eh(t),eg=(t,e,r)=>new eA(t,e,r),ew=(t,e,r)=>new ey(t,e,r),eH=(t,e)=>new eC(t,e);class eD extends eO{constructor(t){super(-1,t),this.property=t,this.layout=eg([ev("length"),ev("lengthPadding"),eH(eS(ev(),-8),"chars")],this.property)}encode(t,e,r=0){if(null==t)return this.layout.span;let n={chars:h.from(t,"utf8")};return this.layout.encode(n,e,r)}decode(t,e=0){return this.layout.decode(t,e).chars.toString()}getSpan(t,e=0){return ev().span+ev().span+new(l())(new Uint8Array(t).slice(e,e+4),10,"le").toNumber()}}function eU(t){return new eD(t)}function eM(t){return eH(32,t)}let eP=ew(ev("instruction"));eP.addVariant(0,eg([eb("lamports"),eb("space"),eM("owner")]),"createAccount"),eP.addVariant(1,eg([eM("owner")]),"assign"),eP.addVariant(2,eg([eb("lamports")]),"transfer"),eP.addVariant(3,eg([eM("base"),eU("seed"),eb("lamports"),eb("space"),eM("owner")]),"createAccountWithSeed"),eP.addVariant(4,eg([eM("authorized")]),"advanceNonceAccount"),eP.addVariant(5,eg([eb("lamports")]),"withdrawNonceAccount"),eP.addVariant(6,eg([eM("authorized")]),"initializeNonceAccount"),eP.addVariant(7,eg([eM("authorized")]),"authorizeNonceAccount"),eP.addVariant(8,eg([eb("space")]),"allocate"),eP.addVariant(9,eg([eM("base"),eU("seed"),eb("space"),eM("owner")]),"allocateWithSeed"),eP.addVariant(10,eg([eM("base"),eU("seed"),eM("owner")]),"assignWithSeed"),eP.addVariant(11,eg([eb("lamports"),eU("seed"),eM("owner")]),"transferWithSeed"),Object.values(eP.registry).map(t=>t.span);class eL extends eO{constructor(t,e,r,n){super(t.span,n),this.layout=t,this.decoder=e,this.encoder=r}decode(t,e){return this.decoder(this.layout.decode(t,e))}encode(t,e,r){return this.layout.encode(this.encoder(t),e,r)}getSpan(t,e){return this.layout.getSpan(t,e)}}function ex(t){return new eL(eH(32),t=>new c.PublicKey(t),t=>t.toBuffer(),t)}eg([ev("version"),ev("state"),ex("authorizedPubkey"),ex("nonce"),eg([new eT("lamportsPerSignature")
1],"feeCalculator")]),new c.PublicKey("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"),new c.PublicKey("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL");var eB={exports:{}};a=eB.exports,R="undefined"!=typeof self?self:W,O=_=function(){function t(){this.fetch=!1,this.DOMException=R.DOMException}return t.prototype=R,new t}(),function(t){var e={searchParams:"URLSearchParams"in O,iterable:"Symbol"in O&&"iterator"in Symbol,blob:"FileReader"in O&&"Blob"in O&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in O,arrayBuffer:"ArrayBuffer"in O};if(e.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],n=ArrayBuffer.isView||function(t){return t&&r.indexOf(Object.prototype.toString.call(t))>-1};function i(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw TypeError("Invalid character in header field name");return t.toLowerCase()}function o(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var r={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return e.iterable&&(r[Symbol.iterator]=function(){return r}),r}function a(t){this.map={},t instanceof a?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function R(t){if(t.bodyUsed)return Promise.reject(TypeError("Already read"));t.bodyUsed=!0}function _(t){return new Promise(function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}})}function u(t){var e=new FileReader,r=_(e);return e.readAsArrayBuffer(t),r}function c(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function N(){return this.bodyUsed=!1,this._initBody=function(t){if(this._bodyInit=t,t){if("string"==typeof t)this._bodyText=t;else if(e.blob&&Blob.prototype.isPrototypeOf(t))this._bodyBlob=t;else if(e.formData&&FormData.prototype.isPrototypeOf(t))this._bodyFormData=t;else if(e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t))this._bodyText=t.toString();else{var r;e.arrayBuffer&&e.blob&&(r=t)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=c(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):e.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||n(t))?this._bodyArrayBuffer=c(t):this._bodyText=t=Object.prototype.toString.call(t)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},e.blob&&(this.blob=function(){var t=R(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?R(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(u)}),this.text=function(){var t,e,r,n=R(this);if(n)return n;if(this._bodyBlob)return t=this._bodyBlob,r=_(e=new FileReader),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},e.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}a.prototype.append=function(t,e){t=i(t),e=o(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},a.prototype.delete=function(t){delete this.map[i(t)]},a.prototype.get=function(t){return t=i(t),this.has(t)?this.map[t]:null},a.prototype.has=function(t){return this.map.hasOwnProperty(i(t))},a.prototype.set=function(t,e){this.map[i(t)]=o(e)},a.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},a.prototype.keys=function(){var t=[];return this.forEach(function(e,r){t.push(r)}),s(t)},a.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),s(t)},a.prototype.entries=function(){var t=[];return this.forEach(function(e,r){t.push([r,e])}),s(t)},e.iterable&&(a.prototype[Symbol.iterator]=a.prototype.entries);var l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(t,e){var r,n,i=(e=e||{}).body;if(t instanceof E){if(t.bodyUsed)throw TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new a(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,i||null==t._bodyInit||(i=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",(e.headers||!this.headers)&&(this.headers=new a(e.headers)),this.method=(n=(r=e.method||this.method||"GET").toUpperCase(),l.indexOf(n)>-1?n:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function d(t){var e=new FormData;return t.trim().split("&").forEach(function(t){if(t){var r=t.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function T(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new a(e.headers),this.url=e.url||"",this._initBody(t)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})},N.call(E.prototype),N.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new a(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:0,statusText:""});return t.type="error",t};var h=[301,302,303,307,308];T.redirect=function(t,e){if(-1===h.indexOf(e))throw RangeError("Invalid status code");return new T(null,{status:e,headers:{location:t}})},t.DOMException=O.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function A(r,n){return new Promise(function(i,o){var s=new E(r,n);if(s.signal&&s.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var R=new XMLHttpRequest;function _(){R.abort()}R.onload=function(){var t,e,r={status:R.status,statusText:R.statusText,headers:(t=R.getAllResponseHeaders()||"",e=new a,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEac
1h(function(t){var r=t.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();e.append(n,i)}}),e)};r.url="responseURL"in R?R.responseURL:r.headers.get("X-Request-URL"),i(new T("response"in R?R.response:R.responseText,r))},R.onerror=function(){o(TypeError("Network request failed"))},R.ontimeout=function(){o(TypeError("Network request failed"))},R.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},R.open(s.method,s.url,!0),"include"===s.credentials?R.withCredentials=!0:"omit"===s.credentials&&(R.withCredentials=!1),"responseType"in R&&e.blob&&(R.responseType="blob"),s.headers.forEach(function(t,e){R.setRequestHeader(e,t)}),s.signal&&(s.signal.addEventListener("abort",_),R.onreadystatechange=function(){4===R.readyState&&s.signal.removeEventListener("abort",_)}),R.send(void 0===s._bodyInit?null:s._bodyInit)})}A.polyfill=!0,O.fetch||(O.fetch=A,O.Headers=a,O.Request=E,O.Response=T),t.Headers=a,t.Request=E,t.Response=T,t.fetch=A,Object.defineProperty(t,"__esModule",{value:!0})}({}),_.fetch.ponyfill=!0,delete _.fetch.polyfill,(a=_.fetch).default=_.fetch,a.fetch=_.fetch,a.Headers=_.Headers,a.Request=_.Request,a.Response=_.Response,eB.exports=a,(u=eB.exports)&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")&&u.default;let eG=T.rustEnum([T.struct([],"uninitialized"),T.struct([T.option(T.publicKey(),"authorityAddress")],"buffer"),T.struct([T.publicKey("programdataAddress")],"program"),T.struct([T.u64("slot"),T.option(T.publicKey(),"upgradeAuthorityAddress")],"programData")],void 0,T.u32());function eV(t){return new eX(eH(8),t=>ek.fromBuffer(t),t=>t.toBuffer(),t)}function eK(t){return new eX(eH(32),t=>new c.PublicKey(t),t=>t.toBuffer(),t)}class eX extends eO{constructor(t,e,r,n){super(t.span,n),this.layout=t,this.decoder=e,this.encoder=r}decode(t,e){return this.decoder(this.layout.decode(t,e))}encode(t,e,r){return this.layout.encode(this.encoder(t),e,r)}getSpan(t,e){return this.layout.getSpan(t,e)}}class ej extends eO{constructor(t,e){super(-1,e),this.layout=t,this.discriminator=ev()}encode(t,e,r=0){return null==t?this.layout.span+this.discriminator.encode(0,e,r):(this.discriminator.encode(1,e,r),this.layout.encode(t,e,r+4)+4)}decode(t,e=0){let r=this.discriminator.decode(t,e);if(0===r)return null;if(1===r)return this.layout.decode(t,e+4);throw Error("Invalid coption "+this.layout.property)}getSpan(t,e=0){return this.layout.getSpan(t,e+4)+4}}class ek extends l(){toBuffer(){let t=super.toArray().reverse(),e=h.from(t);if(8===e.length)return e;if(e.length>=8)throw Error("u64 too large");let r=h.alloc(8);return e.copy(r),r}static fromBuffer(t){if(8!==t.length)throw Error(`Invalid buffer length: ${t.length}`);return new ek([...t].reverse().map(t=>`00${t.toString(16)}`.slice(-2)).join(""),16)}}eg([eK("mint"),eK("owner"),eV("amount"),new ej(eK(),"delegate"),(t=>{let e=ew(em("discriminator"),null,t);return e.addVariant(0,eg([]),"uninitialized"),e.addVariant(1,eg([]),"initialized"),e.addVariant(2,eg([]),"frozen"),e})("state"),new ej(eV(),"isNative"),eV("delegatedAmount"),new ej(eK(),"closeAuthority")]),new c.PublicKey("11111111111111111111111111111111")}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.