@ghostspeak/sdk 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (102) hide show
  1. package/LICENSE +21 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/GhostSpeakClient-CyeZ6Tyb.d.ts +2061 -0
  4. package/dist/client.d.ts +4 -3
  5. package/dist/crypto.d.ts +2 -2
  6. package/dist/{feature-flags-CEaxXgQQ.d.ts → feature-flags-3POmoO_Z.d.ts} +833 -1190
  7. package/dist/index.d.ts +206 -4543
  8. package/dist/ipfs-types-KJcvy9Qk.d.ts +553 -0
  9. package/dist/minimal/core-minimal.d.ts +2037 -82
  10. package/dist/utils.d.ts +4 -4
  11. package/package.json +5 -29
  12. package/dist/EscrowInstructions-4P3H6ETO.js +0 -2
  13. package/dist/EscrowInstructions-4P3H6ETO.js.map +0 -1
  14. package/dist/GhostSpeakClient-4SROinEf.d.ts +0 -503
  15. package/dist/accounts-IUZMPYVE.js +0 -2
  16. package/dist/accounts-IUZMPYVE.js.map +0 -1
  17. package/dist/agent-GZ2OES75.js +0 -2
  18. package/dist/agent-GZ2OES75.js.map +0 -1
  19. package/dist/auctionMarketplace-W4YM7HKU.js +0 -2
  20. package/dist/auctionMarketplace-W4YM7HKU.js.map +0 -1
  21. package/dist/chunk-2KOOI5BX.js +0 -2
  22. package/dist/chunk-2KOOI5BX.js.map +0 -1
  23. package/dist/chunk-32GWTXRJ.js +0 -3
  24. package/dist/chunk-32GWTXRJ.js.map +0 -1
  25. package/dist/chunk-B4WUFVLE.js +0 -2
  26. package/dist/chunk-B4WUFVLE.js.map +0 -1
  27. package/dist/chunk-C2OTQ5YS.js +0 -2
  28. package/dist/chunk-C2OTQ5YS.js.map +0 -1
  29. package/dist/chunk-CTC4ZJ26.js +0 -5
  30. package/dist/chunk-CTC4ZJ26.js.map +0 -1
  31. package/dist/chunk-DF7LLAMH.js +0 -2
  32. package/dist/chunk-DF7LLAMH.js.map +0 -1
  33. package/dist/chunk-DJ356OUX.js +0 -2
  34. package/dist/chunk-DJ356OUX.js.map +0 -1
  35. package/dist/chunk-DK5YDBXR.js +0 -2
  36. package/dist/chunk-DK5YDBXR.js.map +0 -1
  37. package/dist/chunk-DOTF5ECA.js +0 -4
  38. package/dist/chunk-DOTF5ECA.js.map +0 -1
  39. package/dist/chunk-FKEUXXZS.js +0 -30
  40. package/dist/chunk-FKEUXXZS.js.map +0 -1
  41. package/dist/chunk-GSHXEKBW.js +0 -2
  42. package/dist/chunk-GSHXEKBW.js.map +0 -1
  43. package/dist/chunk-IZDAEOLH.js +0 -2
  44. package/dist/chunk-IZDAEOLH.js.map +0 -1
  45. package/dist/chunk-JY554RGE.js +0 -3
  46. package/dist/chunk-JY554RGE.js.map +0 -1
  47. package/dist/chunk-KK3HV2RD.js +0 -3
  48. package/dist/chunk-KK3HV2RD.js.map +0 -1
  49. package/dist/chunk-PPOCDM6G.js +0 -2
  50. package/dist/chunk-PPOCDM6G.js.map +0 -1
  51. package/dist/chunk-PUI35LBF.js +0 -2
  52. package/dist/chunk-PUI35LBF.js.map +0 -1
  53. package/dist/chunk-Q34J6YDA.js +0 -11
  54. package/dist/chunk-Q34J6YDA.js.map +0 -1
  55. package/dist/chunk-QATBFZMM.js +0 -3
  56. package/dist/chunk-QATBFZMM.js.map +0 -1
  57. package/dist/chunk-QTKN3VZV.js +0 -2
  58. package/dist/chunk-QTKN3VZV.js.map +0 -1
  59. package/dist/chunk-RFBYMTTN.js +0 -2
  60. package/dist/chunk-RFBYMTTN.js.map +0 -1
  61. package/dist/chunk-RJJPOLCK.js +0 -22
  62. package/dist/chunk-RJJPOLCK.js.map +0 -1
  63. package/dist/chunk-RTWJTEND.js +0 -2
  64. package/dist/chunk-RTWJTEND.js.map +0 -1
  65. package/dist/chunk-SR3ZJCME.js +0 -2
  66. package/dist/chunk-SR3ZJCME.js.map +0 -1
  67. package/dist/chunk-TAWXH7KX.js +0 -2
  68. package/dist/chunk-TAWXH7KX.js.map +0 -1
  69. package/dist/client.js +0 -2
  70. package/dist/client.js.map +0 -1
  71. package/dist/confidential-transfer-manager-CGS3T5DG.js +0 -2
  72. package/dist/confidential-transfer-manager-CGS3T5DG.js.map +0 -1
  73. package/dist/crypto.js +0 -2
  74. package/dist/crypto.js.map +0 -1
  75. package/dist/elgamal-3ABOJSHC.js +0 -2
  76. package/dist/elgamal-3ABOJSHC.js.map +0 -1
  77. package/dist/enhanced-client-errors-W22U3LNH.js +0 -2
  78. package/dist/enhanced-client-errors-W22U3LNH.js.map +0 -1
  79. package/dist/errors.js +0 -2
  80. package/dist/errors.js.map +0 -1
  81. package/dist/generated-U3L4KUE4.js +0 -2
  82. package/dist/generated-U3L4KUE4.js.map +0 -1
  83. package/dist/ghostspeak_wasm-3KPNJTSS.js +0 -2
  84. package/dist/ghostspeak_wasm-3KPNJTSS.js.map +0 -1
  85. package/dist/index.js +0 -97
  86. package/dist/index.js.map +0 -1
  87. package/dist/ipfs-types-BlxtJ3q2.d.ts +0 -194
  88. package/dist/metafile-esm.json +0 -1
  89. package/dist/minimal/core-minimal.js +0 -12
  90. package/dist/minimal/core-minimal.js.map +0 -1
  91. package/dist/pda-2GUWRQ5G.js +0 -2
  92. package/dist/pda-2GUWRQ5G.js.map +0 -1
  93. package/dist/registerAgentCompressed-L6ACXD2Z.js +0 -2
  94. package/dist/registerAgentCompressed-L6ACXD2Z.js.map +0 -1
  95. package/dist/token-2022-rpc-SRHRFN5Y.js +0 -2
  96. package/dist/token-2022-rpc-SRHRFN5Y.js.map +0 -1
  97. package/dist/types.js +0 -2
  98. package/dist/types.js.map +0 -1
  99. package/dist/utils.js +0 -2
  100. package/dist/utils.js.map +0 -1
  101. package/dist/zk-proof-builder-GXZ42QZA.js +0 -2
  102. package/dist/zk-proof-builder-GXZ42QZA.js.map +0 -1
@@ -1,12 +0,0 @@
1
- import {isProgramError,containsBytes,fixEncoderSize,getBytesEncoder,getEnumEncoder,getEnumDecoder,combineCodec,transformEncoder,getStructEncoder,getAddressEncoder,addEncoderSizePrefix,getArrayEncoder,getU64Encoder,getI64Encoder,getOptionEncoder,getU8Encoder,getUtf8Encoder,getU32Encoder,getStructDecoder,fixDecoderSize,getAddressDecoder,addDecoderSizePrefix,getArrayDecoder,getU64Decoder,getI64Decoder,getOptionDecoder,getU8Decoder,getBytesDecoder,getUtf8Decoder,getU32Decoder,getBooleanEncoder,getBooleanDecoder,getProgramDerivedAddress,getU16Encoder,getU16Decoder,getI32Encoder,getI32Decoder,getF64Encoder,getF64Decoder,getI16Encoder,getI16Decoder,getF32Encoder,getF32Decoder,getDiscriminatedUnionEncoder,getUnitEncoder,getTupleEncoder,getDiscriminatedUnionDecoder,getUnitDecoder,getTupleDecoder,assertAccountExists,fetchEncodedAccount,assertAccountsExist,fetchEncodedAccounts,decodeAccount,AccountRole,upgradeRoleToSigner,isTransactionSigner,pipe,createTransactionMessage,setTransactionMessageFeePayerSigner,setTransactionMessageLifetimeUsingBlockhash,appendTransactionMessageInstructions,signTransactionMessageWithSigners,setTransactionMessageFeePayer,compileTransactionMessage,getBase64EncodedWireTransaction,createSolanaRpc,createSolanaRpcSubscriptions,lamports}from'@solana/kit';var b5=Object.defineProperty;var i=(e,n)=>()=>(e&&(n=e(e=0)),n);var M5=(e,n)=>{for(var r in n)b5(e,r,{get:n[r],enumerable:true});};function q5(){return fixEncoderSize(getBytesEncoder(),8).encode(UA)}function rC(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["messageId",getU64Encoder()],["session",getAddressEncoder()],["sender",getAddressEncoder()],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["sentAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:UA}))}function wA(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["messageId",getU64Decoder()],["session",getAddressDecoder()],["sender",getAddressDecoder()],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["sentAt",getI64Decoder()],["bump",getU8Decoder()]])}function J5(){return combineCodec(rC(),wA())}function FA(e){return decodeAccount(e,wA())}async function Q5(e,n,r){let c=await nC(e,n,r);return assertAccountExists(c),c}async function nC(e,n,r){let c=await fetchEncodedAccount(e,n,r);return FA(c)}async function j5(e,n,r){let c=await oC(e,n,r);return assertAccountsExist(c),c}async function oC(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>FA(t))}var UA,cC=i(()=>{UA=new Uint8Array([174,118,140,42,3,207,16,145]);});function p9(){return fixEncoderSize(getBytesEncoder(),8).encode(NA)}function EC(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["sessionId",getU64Encoder()],["initiator",getAddressEncoder()],["responder",getAddressEncoder()],["sessionType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:NA}))}function GA(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["sessionId",getU64Decoder()],["initiator",getAddressDecoder()],["responder",getAddressDecoder()],["sessionType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["bump",getU8Decoder()]])}function l9(){return combineCodec(EC(),GA())}function zA(e){return decodeAccount(e,GA())}async function m9(e,n,r){let c=await SC(e,n,r);return assertAccountExists(c),c}async function SC(e,n,r){let c=await fetchEncodedAccount(e,n,r);return zA(c)}async function y9(e,n,r){let c=await xC(e,n,r);return assertAccountsExist(c),c}async function xC(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>zA(t))}var NA,PC=i(()=>{NA=new Uint8Array([35,65,251,143,132,134,104,33]);});function G9(){return fixEncoderSize(getBytesEncoder(),8).encode(LA)}function vC(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["status",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["availability",getBooleanEncoder()],["lastUpdated",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:LA}))}function WA(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["status",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["availability",getBooleanDecoder()],["lastUpdated",getI64Decoder()],["bump",getU8Decoder()]])}function z9(){return combineCodec(vC(),WA())}function KA(e){return decodeAccount(e,WA())}async function L9(e,n,r){let c=await _C(e,n,r);return assertAccountExists(c),c}async function _C(e,n,r){let c=await fetchEncodedAccount(e,n,r);return KA(c)}async function W9(e,n,r){let c=await kC(e,n,r);return assertAccountsExist(c),c}async function kC(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>KA(t))}var LA,OC=i(()=>{LA=new Uint8Array([253,113,10,35,24,155,227,28]);});function FC(){return getStructEncoder([["messageId",getU64Encoder()],["sessionId",getU64Encoder()],["sender",getAddressEncoder()],["timestamp",getI64Encoder()]])}function NC(){return getStructDecoder([["messageId",getU64Decoder()],["sessionId",getU64Decoder()],["sender",getAddressDecoder()],["timestamp",getI64Decoder()]])}function j9(){return combineCodec(FC(),NC())}var GC=i(()=>{});function WC(){return getStructEncoder([["sessionId",getU64Encoder()],["initiator",getAddressEncoder()],["responder",getAddressEncoder()],["timestamp",getI64Encoder()]])}function KC(){return getStructDecoder([["sessionId",getU64Decoder()],["initiator",getAddressDecoder()],["responder",getAddressDecoder()],["timestamp",getI64Decoder()]])}function n7(){return combineCodec(WC(),KC())}var BC=i(()=>{});function HC(){return getStructEncoder([["agent",getAddressEncoder()],["status",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["availability",getBooleanEncoder()],["timestamp",getI64Encoder()]])}function VC(){return getStructDecoder([["agent",getAddressDecoder()],["status",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["availability",getBooleanDecoder()],["timestamp",getI64Decoder()]])}function S7(){return combineCodec(HC(),VC())}var qC=i(()=>{});function Gr(){return getStructEncoder([["auditEnabled",getBooleanEncoder()],["realTimeMonitoring",getBooleanEncoder()],["retentionPeriod",getI64Encoder()]])}function zr(){return getStructDecoder([["auditEnabled",getBooleanDecoder()],["realTimeMonitoring",getBooleanDecoder()],["retentionPeriod",getI64Decoder()]])}function D7(){return combineCodec(Gr(),zr())}var jC=i(()=>{});function Lr(){return getStructEncoder([["policyId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["policyType",$r()],["rules",getArrayEncoder(Hr())],["scope",qr()],["priority",getU8Encoder()],["status",Qr()],["effectiveDate",getI64Encoder()],["expirationDate",getOptionEncoder(getI64Encoder())],["metadata",Kr()]])}function Wr(){return getStructDecoder([["policyId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["policyType",Xr()],["rules",getArrayDecoder(Vr())],["scope",Jr()],["priority",getU8Decoder()],["status",jr()],["effectiveDate",getI64Decoder()],["expirationDate",getOptionDecoder(getI64Decoder())],["metadata",Br()]])}function w7(){return combineCodec(Lr(),Wr())}var YC=i(()=>{y();});function Yr(){return getStructEncoder([["maxFailedAttempts",getU8Encoder()],["lockoutDuration",getI64Encoder()],["progressiveLockout",getBooleanEncoder()],["unlockMethods",getArrayEncoder(en())],["notificationRequirements",getArrayEncoder(De())]])}function Zr(){return getStructDecoder([["maxFailedAttempts",getU8Decoder()],["lockoutDuration",getI64Decoder()],["progressiveLockout",getBooleanDecoder()],["unlockMethods",getArrayDecoder(tn())],["notificationRequirements",getArrayDecoder(Ie())]])}function V7(){return combineCodec(Yr(),Zr())}var tD=i(()=>{y();});function be(){return getEnumEncoder(rn)}function Me(){return getEnumDecoder(rn)}function j7(){return combineCodec(be(),Me())}var rn,rD=i(()=>{rn=(c=>(c[c.Uninitialized=0]="Uninitialized",c[c.Initialized=1]="Initialized",c[c.Frozen=2]="Frozen",c))(rn||{});});function he(){return getStructEncoder([])}function ve(){return getStructDecoder([])}function cD(){return getStructEncoder([["data",he()]])}function sD(){return getStructDecoder([["data",ve()]])}function X7(){return combineCodec(cD(),sD())}var iD=i(()=>{});function nn(){return getStructEncoder([["requirementType",cn()],["approvers",getArrayEncoder(getAddressEncoder())],["minApprovals",getU8Encoder()],["approvalTimeout",getI64Encoder()],["evidenceRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function on(){return getStructDecoder([["requirementType",sn()],["approvers",getArrayDecoder(getAddressDecoder())],["minApprovals",getU8Decoder()],["approvalTimeout",getI64Decoder()],["evidenceRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function pq(){return combineCodec(nn(),on())}var uD=i(()=>{y();});function cn(){return getEnumEncoder(an)}function sn(){return getEnumDecoder(an)}function Tq(){return combineCodec(cn(),sn())}var an,AD=i(()=>{an=(A=>(A[A.ManagerApproval=0]="ManagerApproval",A[A.PeerReview=1]="PeerReview",A[A.SecurityClearance=2]="SecurityClearance",A[A.BackgroundCheck=3]="BackgroundCheck",A[A.TrainingCompletion=4]="TrainingCompletion",A[A.CertificationRequired=5]="CertificationRequired",A[A.BusinessJustification=6]="BusinessJustification",A[A.TechnicalAssessment=7]="TechnicalAssessment",A))(an||{});});function lD(){return getStructEncoder([["agent",getAddressEncoder()],["operation",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["revenue",getU64Encoder()],["transactionCount",getU32Encoder()],["successRate",getU32Encoder()],["averageRating",getU32Encoder()],["responseTime",getU64Encoder()],["timestamp",getI64Encoder()]])}function mD(){return getStructDecoder([["agent",getAddressDecoder()],["operation",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["revenue",getU64Decoder()],["transactionCount",getU32Decoder()],["successRate",getU32Decoder()],["averageRating",getU32Decoder()],["responseTime",getU64Decoder()],["timestamp",getI64Decoder()]])}function hq(){return combineCodec(lD(),mD())}var yD=i(()=>{});function _e(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["additionalCapabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["pricingModel",Oe()],["isReplicable",getBooleanEncoder()],["replicationFee",getOptionEncoder(getU64Encoder())]])}function ke(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["additionalCapabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["pricingModel",Ue()],["isReplicable",getBooleanDecoder()],["replicationFee",getOptionDecoder(getU64Decoder())]])}function zq(){return combineCodec(_e(),ke())}var SD=i(()=>{y();});function xD(){return getStructEncoder([["resale",getAddressEncoder()],["agent",getAddressEncoder()],["seller",getAddressEncoder()],["listingPrice",getU64Encoder()]])}function PD(){return getStructDecoder([["resale",getAddressDecoder()],["agent",getAddressDecoder()],["seller",getAddressDecoder()],["listingPrice",getU64Decoder()]])}function Vq(){return combineCodec(xD(),PD())}var RD=i(()=>{});function An(){return getStructEncoder([["agent",getAddressEncoder()],["revenue",getU64Encoder()],["transactionCount",getU32Encoder()],["successRate",getU32Encoder()],["averageRating",getU32Encoder()],["responseTime",getU64Encoder()],["lastUpdated",getI64Encoder()]])}function gn(){return getStructDecoder([["agent",getAddressDecoder()],["revenue",getU64Decoder()],["transactionCount",getU32Decoder()],["successRate",getU32Decoder()],["averageRating",getU32Decoder()],["responseTime",getU64Decoder()],["lastUpdated",getI64Decoder()]])}function Zq(){return combineCodec(An(),gn())}var DD=i(()=>{});function vD(){return getStructEncoder([["dashboard",getAddressEncoder()],["agent",getAddressEncoder()],["revenue",getU64Encoder()],["transactionCount",getU32Encoder()],["successRate",getU32Encoder()],["averageRating",getU32Encoder()],["responseTime",getU64Encoder()],["timestamp",getI64Encoder()]])}function _D(){return getStructDecoder([["dashboard",getAddressDecoder()],["agent",getAddressDecoder()],["revenue",getU64Decoder()],["transactionCount",getU32Decoder()],["successRate",getU32Decoder()],["averageRating",getU32Decoder()],["responseTime",getU64Decoder()],["timestamp",getI64Decoder()]])}function cJ(){return combineCodec(vD(),_D())}var kD=i(()=>{});function wD(){return getStructEncoder([["agent",getAddressEncoder()],["revenue",getU64Encoder()],["successRate",getU32Encoder()],["responseTime",getU64Encoder()],["timestamp",getI64Encoder()]])}function FD(){return getStructDecoder([["agent",getAddressDecoder()],["revenue",getU64Decoder()],["successRate",getU32Decoder()],["responseTime",getU64Decoder()],["timestamp",getI64Decoder()]])}function mJ(){return combineCodec(wD(),FD())}var ND=i(()=>{});function LD(){return getStructEncoder([["agent",getAddressEncoder()],["owner",getAddressEncoder()],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function WD(){return getStructDecoder([["agent",getAddressDecoder()],["owner",getAddressDecoder()],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function bJ(){return combineCodec(LD(),WD())}var KD=i(()=>{});function BD(){return getStructEncoder([["originalAgent",getAddressEncoder()],["replicatedAgent",getAddressEncoder()],["replicator",getAddressEncoder()],["feePaid",getU64Encoder()],["timestamp",getI64Encoder()]])}function HD(){return getStructDecoder([["originalAgent",getAddressDecoder()],["replicatedAgent",getAddressDecoder()],["replicator",getAddressDecoder()],["feePaid",getU64Decoder()],["timestamp",getI64Decoder()]])}function wJ(){return combineCodec(BD(),HD())}var VD=i(()=>{});function QD(){return getStructEncoder([["agent",getAddressEncoder()],["owner",getAddressEncoder()],["timestamp",getI64Encoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()]])}function jD(){return getStructDecoder([["agent",getAddressDecoder()],["owner",getAddressDecoder()],["timestamp",getI64Decoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()]])}function jJ(){return combineCodec(QD(),jD())}var $D=i(()=>{});function tI(){return getStructEncoder([["agent",getAddressEncoder()],["previousStatus",getBooleanEncoder()],["newStatus",getBooleanEncoder()],["timestamp",getI64Encoder()],["authority",getAddressEncoder()]])}function rI(){return getStructDecoder([["agent",getAddressDecoder()],["previousStatus",getBooleanDecoder()],["newStatus",getBooleanDecoder()],["timestamp",getI64Decoder()],["authority",getAddressDecoder()]])}function tQ(){return combineCodec(tI(),rI())}var nI=i(()=>{});function sI(){return getStructEncoder([["agent",getAddressEncoder()],["owner",getAddressEncoder()],["timestamp",getI64Encoder()]])}function iI(){return getStructDecoder([["agent",getAddressDecoder()],["owner",getAddressDecoder()],["timestamp",getI64Decoder()]])}function iQ(){return combineCodec(sI(),iI())}var aI=i(()=>{});function pn(){return getStructEncoder([["agentPubkey",getAddressEncoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["supportedCapabilities",getArrayEncoder(getU64Encoder())],["verifiedAt",getI64Encoder()]])}function ln(){return getStructDecoder([["agentPubkey",getAddressDecoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["supportedCapabilities",getArrayDecoder(getU64Decoder())],["verifiedAt",getI64Decoder()]])}function DQ(){return combineCodec(pn(),ln())}var dI=i(()=>{});function mn(){return getStructEncoder([["biometricType",we()],["maxAge",getI64Encoder()],["refreshRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["degradationHandling",Tn()]])}function yn(){return getStructDecoder([["biometricType",Fe()],["maxAge",getI64Decoder()],["refreshRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["degradationHandling",En()]])}function zQ(){return combineCodec(mn(),yn())}var uI=i(()=>{y();});function pI(){return getStructEncoder([["dashboard",getAddressEncoder()],["owner",getAddressEncoder()],["dashboardId",getU64Encoder()],["timestamp",getI64Encoder()]])}function lI(){return getStructDecoder([["dashboard",getAddressDecoder()],["owner",getAddressDecoder()],["dashboardId",getU64Decoder()],["timestamp",getI64Decoder()]])}function JQ(){return combineCodec(pI(),lI())}var mI=i(()=>{});function EI(){return getStructEncoder([["dashboard",getAddressEncoder()],["owner",getAddressEncoder()],["timestamp",getI64Encoder()]])}function SI(){return getStructDecoder([["dashboard",getAddressDecoder()],["owner",getAddressDecoder()],["timestamp",getI64Decoder()]])}function ZQ(){return combineCodec(EI(),SI())}var xI=i(()=>{});function PI(){return getStructEncoder([["dashboard",getAddressEncoder()],["retentionDays",getU16Encoder()],["timestamp",getI64Encoder()]])}function RI(){return getStructDecoder([["dashboard",getAddressDecoder()],["retentionDays",getU16Decoder()],["timestamp",getI64Decoder()]])}function dj(){return combineCodec(PI(),RI())}var fI=i(()=>{});function xn(){return getEnumEncoder(Sn)}function Pn(){return getEnumDecoder(Sn)}function pj(){return combineCodec(xn(),Pn())}var Sn,CI=i(()=>{Sn=(t=>(t[t.Submitted=0]="Submitted",t[t.Accepted=1]="Accepted",t[t.Rejected=2]="Rejected",t[t.Withdrawn=3]="Withdrawn",t))(Sn||{});});function Rn(){return getStructEncoder([["actionType",Ne()],["requiredApprovers",getArrayEncoder(getAddressEncoder())],["minApprovals",getU8Encoder()],["approvalTimeout",getI64Encoder()]])}function fn(){return getStructDecoder([["actionType",Ge()],["requiredApprovers",getArrayDecoder(getAddressDecoder())],["minApprovals",getU8Decoder()],["approvalTimeout",getI64Decoder()]])}function Dj(){return combineCodec(Rn(),fn())}var DI=i(()=>{y();});function II(){return getStructEncoder([["dispute",getAddressEncoder()],["arbitrator",getAddressEncoder()],["assignedBy",getAddressEncoder()],["timestamp",getI64Encoder()]])}function bI(){return getStructDecoder([["dispute",getAddressDecoder()],["arbitrator",getAddressDecoder()],["assignedBy",getAddressDecoder()],["timestamp",getI64Decoder()]])}function _j(){return combineCodec(II(),bI())}var MI=i(()=>{});function Cn(){return getStructEncoder([["fileType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["fileSize",getU64Encoder()],["fileHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["storageUrl",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Dn(){return getStructDecoder([["fileType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["fileSize",getU64Decoder()],["fileHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["storageUrl",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Nj(){return combineCodec(Cn(),Dn())}var hI=i(()=>{});function In(){return getStructEncoder([["bidder",getAddressEncoder()],["amount",getU64Encoder()],["timestamp",getI64Encoder()],["isWinning",getBooleanEncoder()]])}function bn(){return getStructDecoder([["bidder",getAddressDecoder()],["amount",getU64Decoder()],["timestamp",getI64Decoder()],["isWinning",getBooleanDecoder()]])}function jj(){return combineCodec(In(),bn())}var vI=i(()=>{});function OI(){return getStructEncoder([["auction",getAddressEncoder()],["bidder",getAddressEncoder()],["bidAmount",getU64Encoder()],["totalBids",getU32Encoder()]])}function UI(){return getStructDecoder([["auction",getAddressDecoder()],["bidder",getAddressDecoder()],["bidAmount",getU64Decoder()],["totalBids",getU32Decoder()]])}function n$(){return combineCodec(OI(),UI())}var wI=i(()=>{});function FI(){return getStructEncoder([["auction",getAddressEncoder()],["extensionCount",getU8Encoder()],["newEndTime",getI64Encoder()],["reserveShortfall",getU64Encoder()],["isReserveHidden",getBooleanEncoder()]])}function NI(){return getStructDecoder([["auction",getAddressDecoder()],["extensionCount",getU8Decoder()],["newEndTime",getI64Decoder()],["reserveShortfall",getU64Decoder()],["isReserveHidden",getBooleanDecoder()]])}function T$(){return combineCodec(FI(),NI())}var GI=i(()=>{});function zI(){return getStructEncoder([["auction",getAddressEncoder()],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function LI(){return getStructDecoder([["auction",getAddressDecoder()],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function h$(){return combineCodec(zI(),LI())}var WI=i(()=>{});function HI(){return getStructEncoder([["auction",getAddressEncoder()],["winner",getAddressEncoder()],["winningBid",getU64Encoder()]])}function VI(){return getStructDecoder([["auction",getAddressDecoder()],["winner",getAddressDecoder()],["winningBid",getU64Decoder()]])}function w$(){return combineCodec(HI(),VI())}var qI=i(()=>{});function JI(){return getStructEncoder([["auction",getAddressEncoder()],["oldReservePrice",getU64Encoder()],["newReservePrice",getU64Encoder()],["reserveRevealed",getBooleanEncoder()],["currentHighestBid",getU64Encoder()]])}function QI(){return getStructDecoder([["auction",getAddressDecoder()],["oldReservePrice",getU64Decoder()],["newReservePrice",getU64Decoder()],["reserveRevealed",getBooleanDecoder()],["currentHighestBid",getU64Decoder()]])}function B$(){return combineCodec(JI(),QI())}var jI=i(()=>{});function hn(){return getEnumEncoder(Mn)}function vn(){return getEnumDecoder(Mn)}function J$(){return combineCodec(hn(),vn())}var Mn,$I=i(()=>{Mn=(t=>(t[t.Active=0]="Active",t[t.Ended=1]="Ended",t[t.Cancelled=2]="Cancelled",t[t.Settled=3]="Settled",t))(Mn||{});});function L(){return getEnumEncoder(_n)}function W(){return getEnumDecoder(_n)}function X$(){return combineCodec(L(),W())}var _n,XI=i(()=>{_n=(t=>(t[t.English=0]="English",t[t.Dutch=1]="Dutch",t[t.SealedBid=2]="SealedBid",t[t.Vickrey=3]="Vickrey",t))(_n||{});});function Ne(){return getEnumEncoder(kn)}function Ge(){return getEnumDecoder(kn)}function tX(){return combineCodec(Ne(),Ge())}var kn,YI=i(()=>{kn=(R=>(R[R.AgentRegistered=0]="AgentRegistered",R[R.AgentUpdated=1]="AgentUpdated",R[R.AgentDeactivated=2]="AgentDeactivated",R[R.AgentVerified=3]="AgentVerified",R[R.PaymentProcessed=4]="PaymentProcessed",R[R.EscrowCreated=5]="EscrowCreated",R[R.EscrowReleased=6]="EscrowReleased",R[R.FundsWithdrawn=7]="FundsWithdrawn",R[R.ProposalCreated=8]="ProposalCreated",R[R.VoteCast=9]="VoteCast",R[R.ProposalExecuted=10]="ProposalExecuted",R[R.GovernanceUpdated=11]="GovernanceUpdated",R[R.AccessGranted=12]="AccessGranted",R[R.AccessRevoked=13]="AccessRevoked",R[R.SecurityPolicyUpdated=14]="SecurityPolicyUpdated",R[R.SuspiciousActivity=15]="SuspiciousActivity",R[R.ComplianceReportGenerated=16]="ComplianceReportGenerated",R[R.RegulatorySubmission=17]="RegulatorySubmission",R[R.AuditRequested=18]="AuditRequested",R[R.ViolationDetected=19]="ViolationDetected",R[R.SystemConfigUpdated=20]="SystemConfigUpdated",R[R.EmergencyAction=21]="EmergencyAction",R[R.MaintenancePerformed=22]="MaintenancePerformed",R[R.WorkOrderCreated=23]="WorkOrderCreated",R[R.WorkOrderCompleted=24]="WorkOrderCompleted",R[R.DisputeRaised=25]="DisputeRaised",R[R.DisputeResolved=26]="DisputeResolved",R[R.MultisigCreated=27]="MultisigCreated",R[R.MultisigSigned=28]="MultisigSigned",R[R.MultisigExecuted=29]="MultisigExecuted",R[R.RiskAssessmentPerformed=30]="RiskAssessmentPerformed",R[R.RiskThresholdExceeded=31]="RiskThresholdExceeded",R[R.RiskMitigationApplied=32]="RiskMitigationApplied",R))(kn||{});});function ze(){return getStructEncoder([["maxEntries",getU32Encoder()],["retentionPeriod",getI64Encoder()],["autoArchive",getBooleanEncoder()],["reportingFrequency",wn()],["approvalLevels",getArrayEncoder(Rn())],["encryptionRequired",getBooleanEncoder()],["backupFrequency",On()]])}function Le(){return getStructDecoder([["maxEntries",getU32Decoder()],["retentionPeriod",getI64Decoder()],["autoArchive",getBooleanDecoder()],["reportingFrequency",Fn()],["approvalLevels",getArrayDecoder(fn())],["encryptionRequired",getBooleanDecoder()],["backupFrequency",Un()]])}function AX(){return combineCodec(ze(),Le())}var tb=i(()=>{y();});function We(){return getStructEncoder([])}function Ke(){return getStructDecoder([])}function ob(){return getStructEncoder([["data",We()]])}function cb(){return getStructDecoder([["data",Ke()]])}function pX(){return combineCodec(ob(),cb())}var sb=i(()=>{});function Nn(){return getStructEncoder([["entryId",getU64Encoder()],["timestamp",getI64Encoder()],["action",Ne()],["actor",getAddressEncoder()],["target",getOptionEncoder(getAddressEncoder())],["context",We()],["complianceFlags",zn()],["previousHash",fixEncoderSize(getBytesEncoder(),32)],["entryHash",fixEncoderSize(getBytesEncoder(),32)],["signature",getOptionEncoder(fixEncoderSize(getBytesEncoder(),64))]])}function Gn(){return getStructDecoder([["entryId",getU64Decoder()],["timestamp",getI64Decoder()],["action",Ge()],["actor",getAddressDecoder()],["target",getOptionDecoder(getAddressDecoder())],["context",Ke()],["complianceFlags",Ln()],["previousHash",fixDecoderSize(getBytesDecoder(),32)],["entryHash",fixDecoderSize(getBytesDecoder(),32)],["signature",getOptionDecoder(fixDecoderSize(getBytesDecoder(),64))]])}function PX(){return combineCodec(Nn(),Gn())}var Ab=i(()=>{y();});function gb(){return getStructEncoder([["entity",getAddressEncoder()],["entityType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function pb(){return getStructDecoder([["entity",getAddressDecoder()],["entityType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function wX(){return combineCodec(gb(),pb())}var lb=i(()=>{});function Kn(){return getEnumEncoder(Wn)}function Bn(){return getEnumDecoder(Wn)}function zX(){return combineCodec(Kn(),Bn())}var Wn,mb=i(()=>{Wn=(t=>(t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High",t[t.VeryHigh=3]="VeryHigh",t))(Wn||{});});function Vn(){return getEnumEncoder(Hn)}function qn(){return getEnumDecoder(Hn)}function BX(){return combineCodec(Vn(),qn())}var Hn,yb=i(()=>{Hn=(f=>(f[f.Password=0]="Password",f[f.DigitalSignature=1]="DigitalSignature",f[f.Biometric=2]="Biometric",f[f.Token=3]="Token",f[f.Certificate=4]="Certificate",f[f.Sms=5]="Sms",f[f.Email=6]="Email",f[f.App=7]="App",f[f.Hardware=8]="Hardware",f))(Hn||{});});function Jn(){return getStructEncoder([["mfaRequired",getBooleanEncoder()],["supportedMethods",getArrayEncoder(Vn())],["strengthRequirements",jn()],["lockoutPolicies",Yr()],["biometricPolicies",getOptionEncoder(Xn())]])}function Qn(){return getStructDecoder([["mfaRequired",getBooleanDecoder()],["supportedMethods",getArrayDecoder(qn())],["strengthRequirements",$n()],["lockoutPolicies",Zr()],["biometricPolicies",getOptionDecoder(Yn())]])}function ZX(){return combineCodec(Jn(),Qn())}var Tb=i(()=>{y();});function jn(){return getStructEncoder([["minimumLevel",Kn()],["riskBased",getBooleanEncoder()],["adaptive",getBooleanEncoder()],["stepUpTriggers",getArrayEncoder(Zn())]])}function $n(){return getStructDecoder([["minimumLevel",Bn()],["riskBased",getBooleanDecoder()],["adaptive",getBooleanDecoder()],["stepUpTriggers",getArrayDecoder(eo())]])}function cY(){return combineCodec(jn(),$n())}var xb=i(()=>{y();});function to(){return getStructEncoder([["defaultDeny",getBooleanEncoder()],["explicitPermissionsRequired",getBooleanEncoder()]])}function ro(){return getStructDecoder([["defaultDeny",getBooleanDecoder()],["explicitPermissionsRequired",getBooleanDecoder()]])}function dY(){return combineCodec(to(),ro())}var fb=i(()=>{});function On(){return getEnumEncoder(no)}function Un(){return getEnumDecoder(no)}function pY(){return combineCodec(On(),Un())}var no,Cb=i(()=>{no=(t=>(t[t.Hourly=0]="Hourly",t[t.Daily=1]="Daily",t[t.Weekly=2]="Weekly",t[t.Monthly=3]="Monthly",t))(no||{});});function bb(){return getStructEncoder([["auction",getAddressEncoder()],["bidder",getAddressEncoder()],["commitmentHash",fixEncoderSize(getBytesEncoder(),32)],["timestamp",getI64Encoder()]])}function Mb(){return getStructDecoder([["auction",getAddressDecoder()],["bidder",getAddressDecoder()],["commitmentHash",fixDecoderSize(getBytesDecoder(),32)],["timestamp",getI64Decoder()]])}function fY(){return combineCodec(bb(),Mb())}var hb=i(()=>{});function kb(){return getStructEncoder([["auction",getAddressEncoder()],["bidder",getAddressEncoder()],["amount",getU64Encoder()],["timestamp",getI64Encoder()]])}function Ob(){return getStructDecoder([["auction",getAddressDecoder()],["bidder",getAddressDecoder()],["amount",getU64Decoder()],["timestamp",getI64Decoder()]])}function _Y(){return combineCodec(kb(),Ob())}var Ub=i(()=>{});function Xn(){return getStructEncoder([["supportedTypes",getArrayEncoder(we())],["qualityRequirements",Be()],["livenessDetection",getBooleanEncoder()],["templateProtection",oo()]])}function Yn(){return getStructDecoder([["supportedTypes",getArrayDecoder(Fe())],["qualityRequirements",He()],["livenessDetection",getBooleanDecoder()],["templateProtection",co()]])}function zY(){return combineCodec(Xn(),Yn())}var wb=i(()=>{y();});function oo(){return getStructEncoder([["encryptionRequired",getBooleanEncoder()],["storageMethod",so()],["revocationSupport",getBooleanEncoder()],["agingPolicies",getArrayEncoder(mn())]])}function co(){return getStructDecoder([["encryptionRequired",getBooleanDecoder()],["storageMethod",io()],["revocationSupport",getBooleanDecoder()],["agingPolicies",getArrayDecoder(yn())]])}function VY(){return combineCodec(oo(),co())}var Gb=i(()=>{y();});function Be(){return getEnumEncoder(ao)}function He(){return getEnumDecoder(ao)}function zb(){return getStructEncoder([["data",Be()]])}function Lb(){return getStructDecoder([["data",He()]])}function XY(){return combineCodec(zb(),Lb())}var ao,Wb=i(()=>{ao=(c=>(c[c.Low=0]="Low",c[c.Medium=1]="Medium",c[c.High=2]="High",c))(ao||{});});function so(){return getEnumEncoder(uo)}function io(){return getEnumDecoder(uo)}function tZ(){return combineCodec(so(),io())}var uo,Kb=i(()=>{uo=(s=>(s[s.OnDevice=0]="OnDevice",s[s.Encrypted=1]="Encrypted",s[s.Hashed=2]="Hashed",s[s.Distributed=3]="Distributed",s[s.None=4]="None",s))(uo||{});});function we(){return getEnumEncoder(Ao)}function Fe(){return getEnumDecoder(Ao)}function cZ(){return combineCodec(we(),Fe())}var Ao,Bb=i(()=>{Ao=(a=>(a[a.Fingerprint=0]="Fingerprint",a[a.FaceRecognition=1]="FaceRecognition",a[a.IrisRecognition=2]="IrisRecognition",a[a.VoiceRecognition=3]="VoiceRecognition",a[a.Signature=4]="Signature",a[a.Gait=5]="Gait",a[a.Behavioral=6]="Behavioral",a))(Ao||{});});function Qb(){return getStructEncoder([["deal",getAddressEncoder()],["executor",getAddressEncoder()],["batchSize",getU32Encoder()],["totalExecuted",getU32Encoder()],["timestamp",getI64Encoder()]])}function jb(){return getStructDecoder([["deal",getAddressDecoder()],["executor",getAddressDecoder()],["batchSize",getU32Decoder()],["totalExecuted",getU32Decoder()],["timestamp",getI64Decoder()]])}function AZ(){return combineCodec(Qb(),jb())}var $b=i(()=>{});function Xb(){return getStructEncoder([["deal",getAddressEncoder()],["agent",getAddressEncoder()],["customer",getAddressEncoder()],["dealType",K()],["totalValue",getU64Encoder()]])}function Yb(){return getStructDecoder([["deal",getAddressDecoder()],["agent",getAddressDecoder()],["customer",getAddressDecoder()],["dealType",B()],["totalValue",getU64Decoder()]])}function TZ(){return combineCodec(Xb(),Yb())}var Zb=i(()=>{y();});function rM(){return getStructEncoder([["channel",getAddressEncoder()],["creator",getAddressEncoder()],["channelType",_()]])}function nM(){return getStructDecoder([["channel",getAddressDecoder()],["creator",getAddressDecoder()],["channelType",k()]])}function PZ(){return combineCodec(rM(),nM())}var oM=i(()=>{y();});function H(){return getStructEncoder([["name",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["description",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["avatarUrl",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["tags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["settings",Eo()]])}function V(){return getStructDecoder([["name",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["description",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["avatarUrl",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["tags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["settings",So()]])}function bZ(){return combineCodec(H(),V())}var cM=i(()=>{y();});function Eo(){return getStructEncoder([["allowFileSharing",getBooleanEncoder()],["allowExternalInvites",getBooleanEncoder()],["messageRetentionDays",getU32Encoder()],["maxMessageSize",getU32Encoder()],["requireEncryption",getBooleanEncoder()],["autoArchiveAfterDays",getU32Encoder()]])}function So(){return getStructDecoder([["allowFileSharing",getBooleanDecoder()],["allowExternalInvites",getBooleanDecoder()],["messageRetentionDays",getU32Decoder()],["maxMessageSize",getU32Decoder()],["requireEncryption",getBooleanDecoder()],["autoArchiveAfterDays",getU32Decoder()]])}function _Z(){return combineCodec(Eo(),So())}var sM=i(()=>{});function dM(){return getStructEncoder([["channel",getAddressEncoder()],["updatedBy",getAddressEncoder()],["updatedAt",getI64Encoder()]])}function uM(){return getStructDecoder([["channel",getAddressDecoder()],["updatedBy",getAddressDecoder()],["updatedAt",getI64Decoder()]])}function NZ(){return combineCodec(dM(),uM())}var AM=i(()=>{});function _(){return getEnumEncoder(Yt)}function k(){return getEnumDecoder(Yt)}function WZ(){return combineCodec(_(),k())}var Yt,_g=i(()=>{Yt=(t=>(t[t.Direct=0]="Direct",t[t.Group=1]="Group",t[t.Public=2]="Public",t[t.Private=3]="Private",t))(Yt||{});});function zn(){return getStructEncoder([["requiresReporting",getBooleanEncoder()],["highRisk",getBooleanEncoder()],["sensitiveData",getBooleanEncoder()],["crossBorder",getBooleanEncoder()],["largeAmount",getBooleanEncoder()],["suspicious",getBooleanEncoder()],["manualReview",getBooleanEncoder()],["jurisdiction",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Ln(){return getStructDecoder([["requiresReporting",getBooleanDecoder()],["highRisk",getBooleanDecoder()],["sensitiveData",getBooleanDecoder()],["crossBorder",getBooleanDecoder()],["largeAmount",getBooleanDecoder()],["suspicious",getBooleanDecoder()],["manualReview",getBooleanDecoder()],["jurisdiction",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function ZZ(){return combineCodec(zn(),Ln())}var gM=i(()=>{});function xo(){return getStructEncoder([["complianceScore",getU8Encoder()],["policyAdherenceRate",getU8Encoder()],["avgIncidentResponseTime",getU64Encoder()],["falsePositiveRate",getU8Encoder()],["coveragePercentage",getU8Encoder()],["auditReadinessScore",getU8Encoder()]])}function Po(){return getStructDecoder([["complianceScore",getU8Decoder()],["policyAdherenceRate",getU8Decoder()],["avgIncidentResponseTime",getU64Decoder()],["falsePositiveRate",getU8Decoder()],["coveragePercentage",getU8Decoder()],["auditReadinessScore",getU8Decoder()]])}function cee(){return combineCodec(xo(),Po())}var pM=i(()=>{});function Ro(){return getStructEncoder([["frameworks",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["auditRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["reportingRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function fo(){return getStructDecoder([["frameworks",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["auditRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["reportingRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function dee(){return combineCodec(Ro(),fo())}var lM=i(()=>{});function TM(){return getStructEncoder([["report",getAddressEncoder()],["reportId",getU64Encoder()],["reportType",q()],["complianceRate",getU64Encoder()]])}function EM(){return getStructDecoder([["report",getAddressDecoder()],["reportId",getU64Decoder()],["reportType",J()],["complianceRate",getU64Decoder()]])}function mee(){return combineCodec(TM(),EM())}var SM=i(()=>{y();});function Ve(){return getEnumEncoder(Co)}function qe(){return getEnumDecoder(Co)}function xM(){return getStructEncoder([["data",Ve()]])}function PM(){return getStructDecoder([["data",qe()]])}function Pee(){return combineCodec(xM(),PM())}var Co,RM=i(()=>{Co=(t=>(t[t.Pending=0]="Pending",t[t.Approved=1]="Approved",t[t.Rejected=2]="Rejected",t[t.UnderReview=3]="UnderReview",t))(Co||{});});function hM(){return getStructEncoder([["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["owner",getAddressEncoder()],["treeAuthority",getAddressEncoder()],["merkleTree",getAddressEncoder()],["dataHash",fixEncoderSize(getBytesEncoder(),32)],["index",getU64Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["createdAt",getI64Encoder()]])}function vM(){return getStructDecoder([["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["owner",getAddressDecoder()],["treeAuthority",getAddressDecoder()],["merkleTree",getAddressDecoder()],["dataHash",fixDecoderSize(getBytesDecoder(),32)],["index",getU64Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["createdAt",getI64Decoder()]])}function Oee(){return combineCodec(hM(),vM())}var _M=i(()=>{});function Io(){return getEnumEncoder(Do)}function bo(){return getEnumDecoder(Do)}function Nee(){return combineCodec(Io(),bo())}var Do,kM=i(()=>{Do=(o=>(o[o.TimeDelay=0]="TimeDelay",o[o.TokenBalance=1]="TokenBalance",o[o.PriceThreshold=2]="PriceThreshold",o[o.VoteCount=3]="VoteCount",o[o.ExternalOracle=4]="ExternalOracle",o[o.CustomLogic=5]="CustomLogic",o))(Do||{});});function NM(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["autoApproveNewAccounts",getBooleanEncoder()],["auditorConfigured",getBooleanEncoder()],["timestamp",getI64Encoder()]])}function GM(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["autoApproveNewAccounts",getBooleanDecoder()],["auditorConfigured",getBooleanDecoder()],["timestamp",getI64Decoder()]])}function Bee(){return combineCodec(NM(),GM())}var zM=i(()=>{});function Mo(){return getStructEncoder([["attribute",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["operator",vo()],["value",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["valueType",ko()]])}function ho(){return getStructDecoder([["attribute",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["operator",_o()],["value",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["valueType",Oo()]])}function Jee(){return combineCodec(Mo(),ho())}var qM=i(()=>{y();});function vo(){return getEnumEncoder(Uo)}function _o(){return getEnumDecoder(Uo)}function Xee(){return combineCodec(vo(),_o())}var Uo,JM=i(()=>{Uo=(P=>(P[P.Equals=0]="Equals",P[P.NotEquals=1]="NotEquals",P[P.GreaterThan=2]="GreaterThan",P[P.LessThan=3]="LessThan",P[P.GreaterThanOrEqual=4]="GreaterThanOrEqual",P[P.LessThanOrEqual=5]="LessThanOrEqual",P[P.Contains=6]="Contains",P[P.NotContains=7]="NotContains",P[P.In=8]="In",P[P.NotIn=9]="NotIn",P[P.Matches=10]="Matches",P[P.NotMatches=11]="NotMatches",P))(Uo||{});});function Fo(){return getEnumEncoder(wo)}function No(){return getEnumDecoder(wo)}function tte(){return combineCodec(Fo(),No())}var wo,QM=i(()=>{wo=(t=>(t[t.Active=0]="Active",t[t.Completed=1]="Completed",t[t.Cancelled=2]="Cancelled",t[t.Disputed=3]="Disputed",t))(wo||{});});function XM(){return getStructEncoder([["negotiation",getAddressEncoder()],["sender",getAddressEncoder()],["counterOffer",getU64Encoder()],["message",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["autoAccepted",getBooleanEncoder()]])}function YM(){return getStructDecoder([["negotiation",getAddressDecoder()],["sender",getAddressDecoder()],["counterOffer",getU64Decoder()],["message",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["autoAccepted",getBooleanDecoder()]])}function mte(){return combineCodec(XM(),YM())}var ZM=i(()=>{});function zo(){return getEnumEncoder(Go)}function Lo(){return getEnumDecoder(Go)}function Ste(){return combineCodec(zo(),Lo())}var Go,eh=i(()=>{Go=(s=>(s[s.Public=0]="Public",s[s.Internal=1]="Internal",s[s.Confidential=2]="Confidential",s[s.Restricted=3]="Restricted",s[s.TopSecret=4]="TopSecret",s))(Go||{});});function Wo(){return getStructEncoder([["encryptionRequired",getBooleanEncoder()],["classificationRequired",getBooleanEncoder()],["dlpEnabled",getBooleanEncoder()]])}function Ko(){return getStructDecoder([["encryptionRequired",getBooleanDecoder()],["classificationRequired",getBooleanDecoder()],["dlpEnabled",getBooleanDecoder()]])}function fte(){return combineCodec(Wo(),Ko())}var th=i(()=>{});function K(){return getEnumEncoder(Bo)}function B(){return getEnumDecoder(Bo)}function bte(){return combineCodec(K(),B())}var Bo,rh=i(()=>{Bo=(t=>(t[t.VolumeDiscount=0]="VolumeDiscount",t[t.BundleOffer=1]="BundleOffer",t[t.GroupPurchase=2]="GroupPurchase",t[t.Wholesale=3]="Wholesale",t))(Bo||{});});function ch(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["defaultState",be()],["timestamp",getI64Encoder()]])}function sh(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["defaultState",Me()],["timestamp",getI64Decoder()]])}function Ote(){return combineCodec(ch(),sh())}var ih=i(()=>{y();});function Tn(){return getEnumEncoder(Ho)}function En(){return getEnumDecoder(Ho)}function Nte(){return combineCodec(Tn(),En())}var Ho,ah=i(()=>{Ho=(t=>(t[t.RequireRefresh=0]="RequireRefresh",t[t.GradualDegradation=1]="GradualDegradation",t[t.ImmediateExpiry=2]="ImmediateExpiry",t[t.AdaptiveThreshold=3]="AdaptiveThreshold",t))(Ho||{});});function Vo(){return getStructEncoder([["delegator",getAddressEncoder()],["delegatedAt",getI64Encoder()],["scope",Q()],["expiresAt",getOptionEncoder(getI64Encoder())]])}function qo(){return getStructDecoder([["delegator",getAddressDecoder()],["delegatedAt",getI64Decoder()],["scope",j()],["expiresAt",getOptionDecoder(getI64Decoder())]])}function Vte(){return combineCodec(Vo(),qo())}var Ah=i(()=>{y();});function Q(){return getDiscriminatedUnionEncoder([["All",getUnitEncoder()],["ProposalType",getStructEncoder([["fields",getTupleEncoder([$()])]])],["SingleProposal",getUnitEncoder()],["Limited",getUnitEncoder()]])}function j(){return getDiscriminatedUnionDecoder([["All",getUnitDecoder()],["ProposalType",getStructDecoder([["fields",getTupleDecoder([X()])]])],["SingleProposal",getUnitDecoder()],["Limited",getUnitDecoder()]])}function Zte(){return combineCodec(Q(),j())}function ere(e,n){return Array.isArray(n)?{__kind:e,fields:n}:{__kind:e,...n??{}}}function tre(e,n){return n.__kind===e}var gh=i(()=>{y();});function Je(){return getEnumEncoder(Jo)}function Qe(){return getEnumDecoder(Jo)}function cre(){return combineCodec(Je(),Qe())}var Jo,ph=i(()=>{Jo=(s=>(s[s.Code=0]="Code",s[s.Document=1]="Document",s[s.Design=2]="Design",s[s.Analysis=3]="Analysis",s[s.Other=4]="Other",s))(Jo||{});});function Qo(){return getStructEncoder([["submitter",getAddressEncoder()],["evidenceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["evidenceData",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()],["isVerified",getBooleanEncoder()]])}function jo(){return getStructDecoder([["submitter",getAddressDecoder()],["evidenceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["evidenceData",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()],["isVerified",getBooleanDecoder()]])}function mre(){return combineCodec(Qo(),jo())}var xh=i(()=>{});function Dh(){return getStructEncoder([["dispute",getAddressEncoder()],["submitter",getAddressEncoder()],["batchSize",getU32Encoder()],["totalEvidenceCount",getU32Encoder()]])}function Ih(){return getStructDecoder([["dispute",getAddressDecoder()],["submitter",getAddressDecoder()],["batchSize",getU32Decoder()],["totalEvidenceCount",getU32Decoder()]])}function Sre(){return combineCodec(Dh(),Ih())}var bh=i(()=>{});function vh(){return getStructEncoder([["dispute",getAddressEncoder()],["submitter",getAddressEncoder()],["evidenceCount",getU32Encoder()]])}function _h(){return getStructDecoder([["dispute",getAddressDecoder()],["submitter",getAddressDecoder()],["evidenceCount",getU32Decoder()]])}function Dre(){return combineCodec(vh(),_h())}var kh=i(()=>{});function Oh(){return getStructEncoder([["dispute",getAddressEncoder()],["complainant",getAddressEncoder()],["respondent",getAddressEncoder()],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Uh(){return getStructDecoder([["dispute",getAddressDecoder()],["complainant",getAddressDecoder()],["respondent",getAddressDecoder()],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function wre(){return combineCodec(Oh(),Uh())}var wh=i(()=>{});function Gh(){return getStructEncoder([["dispute",getAddressEncoder()],["arbitrator",getAddressEncoder()],["awardToComplainant",getBooleanEncoder()],["resolution",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function zh(){return getStructDecoder([["dispute",getAddressDecoder()],["arbitrator",getAddressDecoder()],["awardToComplainant",getBooleanDecoder()],["resolution",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function jre(){return combineCodec(Gh(),zh())}var Lh=i(()=>{});function Xo(){return getEnumEncoder($o)}function Yo(){return getEnumDecoder($o)}function Zre(){return combineCodec(Xo(),Yo())}var $o,Wh=i(()=>{$o=(o=>(o[o.Filed=0]="Filed",o[o.UnderReview=1]="UnderReview",o[o.EvidenceSubmitted=2]="EvidenceSubmitted",o[o.Resolved=3]="Resolved",o[o.Escalated=4]="Escalated",o[o.Closed=5]="Closed",o))($o||{});});function je(){return getStructEncoder([["decayType",Zo()],["priceStepCount",getU32Encoder()],["stepDuration",getI64Encoder()],["decayRateBasisPoints",getU16Encoder()]])}function $e(){return getStructDecoder([["decayType",ec()],["priceStepCount",getU32Decoder()],["stepDuration",getI64Decoder()],["decayRateBasisPoints",getU16Decoder()]])}function dne(){return combineCodec(je(),$e())}var Kh=i(()=>{y();});function Zo(){return getEnumEncoder(tc)}function ec(){return getEnumDecoder(tc)}function pne(){return combineCodec(Zo(),ec())}var tc,Bh=i(()=>{tc=(c=>(c[c.Linear=0]="Linear",c[c.Exponential=1]="Exponential",c[c.Stepped=2]="Stepped",c))(tc||{});});function qh(){return getStructEncoder([["auction",getAddressEncoder()],["winner",getAddressEncoder()],["finalPrice",getU64Encoder()],["startingPrice",getU64Encoder()],["reservePrice",getU64Encoder()],["timeElapsed",getI64Encoder()]])}function Jh(){return getStructDecoder([["auction",getAddressDecoder()],["winner",getAddressDecoder()],["finalPrice",getU64Decoder()],["startingPrice",getU64Decoder()],["reservePrice",getU64Decoder()],["timeElapsed",getI64Decoder()]])}function Sne(){return combineCodec(qh(),Jh())}var Qh=i(()=>{});function Y(){return getStructEncoder([])}function Z(){return getStructDecoder([])}function Xh(){return getStructEncoder([["data",Y()]])}function Yh(){return getStructDecoder([["data",Z()]])}function Pne(){return combineCodec(Xh(),Yh())}var Zh=i(()=>{});function ev(){return getStructEncoder([["engine",getAddressEncoder()],["agent",getAddressEncoder()],["owner",getAddressEncoder()],["algorithm",Xe()],["basePrice",getU64Encoder()]])}function tv(){return getStructDecoder([["engine",getAddressDecoder()],["agent",getAddressDecoder()],["owner",getAddressDecoder()],["algorithm",Ye()],["basePrice",getU64Decoder()]])}function bne(){return combineCodec(ev(),tv())}var rv=i(()=>{y();});function cv(){return getStructEncoder([["engine",getAddressEncoder()],["agent",getAddressEncoder()],["owner",getAddressEncoder()],["newPrice",getU64Encoder()],["demandMultiplier",getF64Encoder()],["supplyMultiplier",getF64Encoder()]])}function sv(){return getStructDecoder([["engine",getAddressDecoder()],["agent",getAddressDecoder()],["owner",getAddressDecoder()],["newPrice",getU64Decoder()],["demandMultiplier",getF64Decoder()],["supplyMultiplier",getF64Decoder()]])}function One(){return combineCodec(cv(),sv())}var iv=i(()=>{});function rc(){return getStructEncoder([["totalValueLocked",getU64Encoder()],["dailyVolume",getU64Encoder()],["totalFeeRevenue",getU64Encoder()],["uniqueActiveUsers",getU32Encoder()],["averageTransactionSize",getU64Encoder()],["tokenCirculation",getU64Encoder()],["lastUpdated",getI64Encoder()]])}function nc(){return getStructDecoder([["totalValueLocked",getU64Decoder()],["dailyVolume",getU64Decoder()],["totalFeeRevenue",getU64Decoder()],["uniqueActiveUsers",getU32Decoder()],["averageTransactionSize",getU64Decoder()],["tokenCirculation",getU64Decoder()],["lastUpdated",getI64Decoder()]])}function Wne(){return combineCodec(rc(),nc())}var av=i(()=>{});function dv(){return getStructEncoder([["dashboard",getAddressEncoder()],["totalValueLocked",getU64Encoder()],["dailyVolume",getU64Encoder()],["feeRevenue",getU64Encoder()],["uniqueUsers",getU32Encoder()],["timestamp",getI64Encoder()]])}function uv(){return getStructDecoder([["dashboard",getAddressDecoder()],["totalValueLocked",getU64Decoder()],["dailyVolume",getU64Decoder()],["feeRevenue",getU64Decoder()],["uniqueUsers",getU32Decoder()],["timestamp",getI64Decoder()]])}function Xne(){return combineCodec(dv(),uv())}var Av=i(()=>{});function gv(){return getStructEncoder([["totalValueLocked",getU64Encoder()],["dailyVolume",getU64Encoder()],["feeRevenue",getU64Encoder()],["uniqueUsers",getU32Encoder()],["timestamp",getI64Encoder()]])}function pv(){return getStructDecoder([["totalValueLocked",getU64Decoder()],["dailyVolume",getU64Decoder()],["feeRevenue",getU64Decoder()],["uniqueUsers",getU32Decoder()],["timestamp",getI64Decoder()]])}function coe(){return combineCodec(gv(),pv())}var lv=i(()=>{});function oc(){return getStructEncoder([["breakGlassEnabled",getBooleanEncoder()],["emergencyContacts",getArrayEncoder(getAddressEncoder())],["approvalRequired",getBooleanEncoder()]])}function cc(){return getStructDecoder([["breakGlassEnabled",getBooleanDecoder()],["emergencyContacts",getArrayDecoder(getAddressDecoder())],["approvalRequired",getBooleanDecoder()]])}function poe(){return combineCodec(oc(),cc())}var Tv=i(()=>{});function sc(){return getStructEncoder([["emergencyContacts",getArrayEncoder(getAddressEncoder())],["emergencyThreshold",getU8Encoder()],["emergencyTimeout",getI64Encoder()],["emergencyTransactionTypes",getArrayEncoder(Ze())],["freezeEnabled",getBooleanEncoder()],["frozen",getBooleanEncoder()],["frozenAt",getOptionEncoder(getI64Encoder())],["autoUnfreezeDuration",getOptionEncoder(getI64Encoder())]])}function ic(){return getStructDecoder([["emergencyContacts",getArrayDecoder(getAddressDecoder())],["emergencyThreshold",getU8Decoder()],["emergencyTimeout",getI64Decoder()],["emergencyTransactionTypes",getArrayDecoder(et())],["freezeEnabled",getBooleanDecoder()],["frozen",getBooleanDecoder()],["frozenAt",getOptionDecoder(getI64Decoder())],["autoUnfreezeDuration",getOptionDecoder(getI64Decoder())]])}function Poe(){return combineCodec(sc(),ic())}var Cv=i(()=>{y();});function tt(){return getEnumEncoder(ac)}function rt(){return getEnumDecoder(ac)}function Doe(){return combineCodec(tt(),rt())}var ac,Dv=i(()=>{ac=(t=>(t[t.Hard=0]="Hard",t[t.Soft=1]="Soft",t[t.Advisory=2]="Advisory",t[t.ExceptionBased=3]="ExceptionBased",t))(ac||{});});function Mv(){return getStructEncoder([["channel",getAddressEncoder()],["creator",getAddressEncoder()],["channelType",_()],["metadata",H()],["participantCount",getU32Encoder()],["createdAt",getI64Encoder()]])}function hv(){return getStructDecoder([["channel",getAddressDecoder()],["creator",getAddressDecoder()],["channelType",k()],["metadata",V()],["participantCount",getU32Decoder()],["createdAt",getI64Decoder()]])}function Ooe(){return combineCodec(Mv(),hv())}var vv=i(()=>{y();});function Nv(){return getStructEncoder([["message",getAddressEncoder()],["channel",getAddressEncoder()],["sender",getAddressEncoder()],["messageType",O()],["metadata",nt()],["contentPreview",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()],["mentions",getArrayEncoder(getAddressEncoder())],["threadId",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Gv(){return getStructDecoder([["message",getAddressDecoder()],["channel",getAddressDecoder()],["sender",getAddressDecoder()],["messageType",U()],["metadata",ot()],["contentPreview",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()],["mentions",getArrayDecoder(getAddressDecoder())],["threadId",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Boe(){return combineCodec(Nv(),Gv())}var zv=i(()=>{y();});function Lv(){return getStructEncoder([["escrow",getAddressEncoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["amountRefunded",getU64Encoder()],["cancellationReason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function Wv(){return getStructDecoder([["escrow",getAddressDecoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["amountRefunded",getU64Decoder()],["cancellationReason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function nce(){return combineCodec(Lv(),Wv())}var Kv=i(()=>{});function Bv(){return getStructEncoder([["escrow",getAddressEncoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["amount",getU64Encoder()],["resolutionNotes",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["timestamp",getI64Encoder()]])}function Hv(){return getStructDecoder([["escrow",getAddressDecoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["amount",getU64Decoder()],["resolutionNotes",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["timestamp",getI64Decoder()]])}function Sce(){return combineCodec(Bv(),Hv())}var Vv=i(()=>{});function Qv(){return getStructEncoder([["escrow",getAddressEncoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["amount",getU64Encoder()],["taskId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["expiresAt",getI64Encoder()],["timestamp",getI64Encoder()]])}function jv(){return getStructDecoder([["escrow",getAddressDecoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["amount",getU64Decoder()],["taskId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["expiresAt",getI64Decoder()],["timestamp",getI64Decoder()]])}function _ce(){return combineCodec(Qv(),jv())}var $v=i(()=>{});function Zv(){return getStructEncoder([["escrow",getAddressEncoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["amountRefunded",getU64Encoder()],["expiredAt",getI64Encoder()],["refundedAt",getI64Encoder()]])}function e_(){return getStructDecoder([["escrow",getAddressDecoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["amountRefunded",getU64Decoder()],["expiredAt",getI64Decoder()],["refundedAt",getI64Decoder()]])}function Nce(){return combineCodec(Zv(),e_())}var t_=i(()=>{});function o_(){return getStructEncoder([["escrow",getAddressEncoder()],["client",getAddressEncoder()],["agent",getAddressEncoder()],["clientRefund",getU64Encoder()],["agentPayment",getU64Encoder()],["refundPercentage",getU8Encoder()],["timestamp",getI64Encoder()]])}function c_(){return getStructDecoder([["escrow",getAddressDecoder()],["client",getAddressDecoder()],["agent",getAddressDecoder()],["clientRefund",getU64Decoder()],["agentPayment",getU64Decoder()],["refundPercentage",getU8Decoder()],["timestamp",getI64Decoder()]])}function Vce(){return combineCodec(o_(),c_())}var s_=i(()=>{});function gc(){return getEnumEncoder(Ac)}function pc(){return getEnumDecoder(Ac)}function jce(){return combineCodec(gc(),pc())}var Ac,i_=i(()=>{Ac=(s=>(s[s.Active=0]="Active",s[s.Completed=1]="Completed",s[s.Disputed=2]="Disputed",s[s.Resolved=3]="Resolved",s[s.Cancelled=4]="Cancelled",s))(Ac||{});});function lc(){return getStructEncoder([["evidenceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["evidenceData",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function mc(){return getStructDecoder([["evidenceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["evidenceData",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Zce(){return combineCodec(lc(),mc())}var l_=i(()=>{});function ee(){return getStructEncoder([["conditionType",Io()],["targetValue",getU64Encoder()],["currentValue",getU64Encoder()],["met",getBooleanEncoder()],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function te(){return getStructDecoder([["conditionType",bo()],["targetValue",getU64Decoder()],["currentValue",getU64Decoder()],["met",getBooleanDecoder()],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Ase(){return combineCodec(ee(),te())}var T_=i(()=>{y();});function ct(){return getStructEncoder([["instructions",getArrayEncoder(yc())],["executionDelay",getI64Encoder()],["executionConditions",getArrayEncoder(ee())],["cancellable",getBooleanEncoder()],["autoExecute",getBooleanEncoder()],["executionAuthority",getAddressEncoder()]])}function st(){return getStructDecoder([["instructions",getArrayDecoder(Tc())],["executionDelay",getI64Decoder()],["executionConditions",getArrayDecoder(te())],["cancellable",getBooleanDecoder()],["autoExecute",getBooleanDecoder()],["executionAuthority",getAddressDecoder()]])}function Sse(){return combineCodec(ct(),st())}var R_=i(()=>{y();});function f_(){return getStructEncoder([["extension",getAddressEncoder()],["developer",getAddressEncoder()],["authority",getAddressEncoder()],["timestamp",getI64Encoder()]])}function C_(){return getStructDecoder([["extension",getAddressDecoder()],["developer",getAddressDecoder()],["authority",getAddressDecoder()],["timestamp",getI64Decoder()]])}function Dse(){return combineCodec(f_(),C_())}var D_=i(()=>{});function it(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["version",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["author",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["repository",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["license",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["dependencies",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["extensionType",re()]])}function at(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["version",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["author",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["repository",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["license",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["dependencies",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["extensionType",ne()]])}function _se(){return combineCodec(it(),at())}var I_=i(()=>{y();});function h_(){return getStructEncoder([["extension",getAddressEncoder()],["developer",getAddressEncoder()],["extensionType",re()]])}function v_(){return getStructDecoder([["extension",getAddressDecoder()],["developer",getAddressDecoder()],["extensionType",ne()]])}function wse(){return combineCodec(h_(),v_())}var __=i(()=>{y();});function Sc(){return getEnumEncoder(Ec)}function xc(){return getEnumDecoder(Ec)}function zse(){return combineCodec(Sc(),xc())}var Ec,k_=i(()=>{Ec=(s=>(s[s.Pending=0]="Pending",s[s.Approved=1]="Approved",s[s.Rejected=2]="Rejected",s[s.Active=3]="Active",s[s.Suspended=4]="Suspended",s))(Ec||{});});function re(){return getEnumEncoder(Pc)}function ne(){return getEnumDecoder(Pc)}function Bse(){return combineCodec(re(),ne())}var Pc,O_=i(()=>{Pc=(o=>(o[o.PricingModel=0]="PricingModel",o[o.AgentCapability=1]="AgentCapability",o[o.Integration=2]="Integration",o[o.Analytics=3]="Analytics",o[o.Security=4]="Security",o[o.Custom=5]="Custom",o))(Pc||{});});function Rc(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["latitudeRange",Cc()],["longitudeRange",Ic()],["radius",getOptionEncoder(getU32Encoder())]])}function fc(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["latitudeRange",Dc()],["longitudeRange",bc()],["radius",getOptionDecoder(getU32Decoder())]])}function Zse(){return combineCodec(Rc(),fc())}var F_=i(()=>{y();});function z_(){return getStructEncoder([["proposal",getAddressEncoder()],["proposalId",getU64Encoder()],["proposer",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function L_(){return getStructDecoder([["proposal",getAddressDecoder()],["proposalId",getU64Decoder()],["proposer",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Aie(){return combineCodec(z_(),L_())}var W_=i(()=>{});function Mc(){return getStructEncoder([["level",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["value",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["includeDescendants",getBooleanEncoder()]])}function hc(){return getStructDecoder([["level",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["value",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["includeDescendants",getBooleanDecoder()]])}function Tie(){return combineCodec(Mc(),hc())}var Q_=i(()=>{});function dt(){return getStructEncoder([["referralBonus",getF64Encoder()],["performanceBonus",getF64Encoder()],["loyaltyMultiplier",getF64Encoder()],["earlyBirdDiscount",getF64Encoder()]])}function ut(){return getStructDecoder([["referralBonus",getF64Decoder()],["performanceBonus",getF64Decoder()],["loyaltyMultiplier",getF64Decoder()],["earlyBirdDiscount",getF64Decoder()]])}function Pie(){return combineCodec(dt(),ut())}var j_=i(()=>{});function Y_(){return getStructEncoder([["program",getAddressEncoder()],["agent",getAddressEncoder()],["incentiveType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()]])}function Z_(){return getStructDecoder([["program",getAddressDecoder()],["agent",getAddressDecoder()],["incentiveType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()]])}function Oie(){return combineCodec(Y_(),Z_())}var ek=i(()=>{});function nk(){return getStructEncoder([["program",getAddressEncoder()],["referralBonus",getF64Encoder()],["performanceBonus",getF64Encoder()]])}function ok(){return getStructDecoder([["program",getAddressDecoder()],["referralBonus",getF64Decoder()],["performanceBonus",getF64Decoder()]])}function zie(){return combineCodec(nk(),ok())}var ck=i(()=>{});function kc(){return getStructEncoder([["responseTeam",getArrayEncoder(getAddressEncoder())],["escalationProcedures",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["notificationRequirements",getArrayEncoder(De())]])}function Oc(){return getStructDecoder([["responseTeam",getArrayDecoder(getAddressDecoder())],["escalationProcedures",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["notificationRequirements",getArrayDecoder(Ie())]])}function Xie(){return combineCodec(kc(),Oc())}var sk=i(()=>{y();});function ik(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["rateAuthority",getAddressEncoder()],["rate",getI16Encoder()],["timestamp",getI64Encoder()]])}function ak(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["rateAuthority",getAddressDecoder()],["rate",getI16Decoder()],["timestamp",getI64Decoder()]])}function cae(){return combineCodec(ik(),ak())}var dk=i(()=>{});function uk(){return getStructEncoder([["application",getAddressEncoder()],["jobPosting",getAddressEncoder()],["agent",getAddressEncoder()],["employer",getAddressEncoder()],["timestamp",getI64Encoder()]])}function Ak(){return getStructDecoder([["application",getAddressDecoder()],["jobPosting",getAddressDecoder()],["agent",getAddressDecoder()],["employer",getAddressDecoder()],["timestamp",getI64Decoder()]])}function Aae(){return combineCodec(uk(),Ak())}var gk=i(()=>{});function pk(){return getStructEncoder([["application",getAddressEncoder()],["jobPosting",getAddressEncoder()],["agent",getAddressEncoder()],["proposedRate",getU64Encoder()],["timestamp",getI64Encoder()]])}function lk(){return getStructDecoder([["application",getAddressDecoder()],["jobPosting",getAddressDecoder()],["agent",getAddressDecoder()],["proposedRate",getU64Decoder()],["timestamp",getI64Decoder()]])}function Sae(){return combineCodec(pk(),lk())}var mk=i(()=>{});function Ek(){return getStructEncoder([["job",getAddressEncoder()],["creator",getAddressEncoder()],["timestamp",getI64Encoder()]])}function Sk(){return getStructDecoder([["job",getAddressDecoder()],["creator",getAddressDecoder()],["timestamp",getI64Decoder()]])}function Dae(){return combineCodec(Ek(),Sk())}var xk=i(()=>{});function Cc(){return getStructEncoder([["min",getF64Encoder()],["max",getF64Encoder()]])}function Dc(){return getStructDecoder([["min",getF64Decoder()],["max",getF64Decoder()]])}function hae(){return combineCodec(Cc(),Dc())}var fk=i(()=>{});function Kc(){return getStructEncoder([["allowedCountries",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["blockedCountries",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["allowedIpRanges",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["blockedIpRanges",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["geofencingEnabled",getBooleanEncoder()],["allowedRegions",getArrayEncoder(Rc())]])}function Bc(){return getStructDecoder([["allowedCountries",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["blockedCountries",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["allowedIpRanges",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["blockedIpRanges",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["geofencingEnabled",getBooleanDecoder()],["allowedRegions",getArrayDecoder(fc())]])}function wae(){return combineCodec(Kc(),Bc())}var Ck=i(()=>{y();});function Ic(){return getStructEncoder([["min",getF64Encoder()],["max",getF64Encoder()]])}function bc(){return getStructDecoder([["min",getF64Decoder()],["max",getF64Decoder()]])}function zae(){return combineCodec(Ic(),bc())}var bk=i(()=>{});function Mk(){return getStructEncoder([["marketAnalytics",getAddressEncoder()],["periodStart",getI64Encoder()],["periodEnd",getI64Encoder()],["timestamp",getI64Encoder()]])}function hk(){return getStructDecoder([["marketAnalytics",getAddressDecoder()],["periodStart",getI64Decoder()],["periodEnd",getI64Decoder()],["timestamp",getI64Decoder()]])}function Vae(){return combineCodec(Mk(),hk())}var vk=i(()=>{});function Ok(){return getStructEncoder([["marketAnalytics",getAddressEncoder()],["volume",getU64Encoder()],["price",getU64Encoder()],["timestamp",getI64Encoder()]])}function Uk(){return getStructDecoder([["marketAnalytics",getAddressDecoder()],["volume",getU64Decoder()],["price",getU64Decoder()],["timestamp",getI64Decoder()]])}function Zae(){return combineCodec(Ok(),Uk())}var wk=i(()=>{});function Gk(){return getStructEncoder([["activityType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agent",getAddressEncoder()],["service",getOptionEncoder(getAddressEncoder())],["value",getU64Encoder()],["timestamp",getI64Encoder()]])}function zk(){return getStructDecoder([["activityType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agent",getAddressDecoder()],["service",getOptionDecoder(getAddressDecoder())],["value",getU64Decoder()],["timestamp",getI64Decoder()]])}function mde(){return combineCodec(Gk(),zk())}var Lk=i(()=>{});function Hc(){return getStructEncoder([["totalListings",getU32Encoder()],["activeListings",getU32Encoder()],["totalSales",getU64Encoder()],["dailyVolume",getU64Encoder()],["averageSalePrice",getU64Encoder()],["topCategories",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["lastUpdated",getI64Encoder()]])}function Vc(){return getStructDecoder([["totalListings",getU32Decoder()],["activeListings",getU32Decoder()],["totalSales",getU64Decoder()],["dailyVolume",getU64Decoder()],["averageSalePrice",getU64Decoder()],["topCategories",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["lastUpdated",getI64Decoder()]])}function bde(){return combineCodec(Hc(),Vc())}var Wk=i(()=>{});function qk(){return getStructEncoder([["dashboard",getAddressEncoder()],["totalListings",getU32Encoder()],["activeListings",getU32Encoder()],["dailyVolume",getU64Encoder()],["averagePrice",getU64Encoder()],["timestamp",getI64Encoder()]])}function Jk(){return getStructDecoder([["dashboard",getAddressDecoder()],["totalListings",getU32Decoder()],["activeListings",getU32Decoder()],["dailyVolume",getU64Decoder()],["averagePrice",getU64Decoder()],["timestamp",getI64Decoder()]])}function wde(){return combineCodec(qk(),Jk())}var Qk=i(()=>{});function jk(){return getStructEncoder([["volume",getU64Encoder()],["transactionType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function $k(){return getStructDecoder([["volume",getU64Decoder()],["transactionType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function jde(){return combineCodec(jk(),$k())}var Xk=i(()=>{});function nt(){return getStructEncoder([["replyTo",getOptionEncoder(getAddressEncoder())],["threadId",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["attachments",getArrayEncoder(Cn())],["mentions",getArrayEncoder(getAddressEncoder())],["reactions",getArrayEncoder(qc())]])}function ot(){return getStructDecoder([["replyTo",getOptionDecoder(getAddressDecoder())],["threadId",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["attachments",getArrayDecoder(Dn())],["mentions",getArrayDecoder(getAddressDecoder())],["reactions",getArrayDecoder(Jc())]])}function cue(){return combineCodec(nt(),ot())}var rO=i(()=>{y();});function qc(){return getStructEncoder([["emoji",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["users",getArrayEncoder(getAddressEncoder())]])}function Jc(){return getStructDecoder([["emoji",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["users",getArrayDecoder(getAddressDecoder())]])}function Sue(){return combineCodec(qc(),Jc())}var nO=i(()=>{});function oO(){return getStructEncoder([["message",getAddressEncoder()],["channel",getAddressEncoder()],["user",getAddressEncoder()],["reaction",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["addedAt",getI64Encoder()]])}function cO(){return getStructDecoder([["message",getAddressDecoder()],["channel",getAddressDecoder()],["user",getAddressDecoder()],["reaction",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["addedAt",getI64Decoder()]])}function _ue(){return combineCodec(oO(),cO())}var sO=i(()=>{});function iO(){return getStructEncoder([["message",getAddressEncoder()],["channel",getAddressEncoder()],["sender",getAddressEncoder()],["messageType",O()]])}function aO(){return getStructDecoder([["message",getAddressDecoder()],["channel",getAddressDecoder()],["sender",getAddressDecoder()],["messageType",U()]])}function wue(){return combineCodec(iO(),aO())}var dO=i(()=>{y();});function O(){return getEnumEncoder(cr)}function U(){return getEnumDecoder(cr)}function zue(){return combineCodec(O(),U())}var cr,uO=i(()=>{cr=(s=>(s[s.Text=0]="Text",s[s.File=1]="File",s[s.Image=2]="Image",s[s.Audio=3]="Audio",s[s.System=4]="System",s))(cr||{});});function Qc(){return getStructEncoder([["timestamp",getI64Encoder()],["value",getU64Encoder()],["metricType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function jc(){return getStructDecoder([["timestamp",getI64Decoder()],["value",getU64Decoder()],["metricType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Zue(){return combineCodec(Qc(),jc())}var AO=i(()=>{});function gO(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["closeAuthority",getAddressEncoder()],["timestamp",getI64Encoder()]])}function pO(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["closeAuthority",getAddressDecoder()],["timestamp",getI64Decoder()]])}function cAe(){return combineCodec(gO(),pO())}var lO=i(()=>{});function oe(){return getStructEncoder([["requireSequentialSigning",getBooleanEncoder()],["allowOwnerOffCurve",getBooleanEncoder()]])}function ce(){return getStructDecoder([["requireSequentialSigning",getBooleanDecoder()],["allowOwnerOffCurve",getBooleanDecoder()]])}function SO(){return getStructEncoder([["data",oe()]])}function xO(){return getStructDecoder([["data",ce()]])}function iAe(){return combineCodec(SO(),xO())}var PO=i(()=>{});function IO(){return getStructEncoder([["multisig",getAddressEncoder()],["multisigId",getU64Encoder()],["owner",getAddressEncoder()],["threshold",getU8Encoder()],["signersCount",getU8Encoder()]])}function bO(){return getStructDecoder([["multisig",getAddressDecoder()],["multisigId",getU64Decoder()],["owner",getAddressDecoder()],["threshold",getU8Decoder()],["signersCount",getU8Decoder()]])}function pAe(){return combineCodec(IO(),bO())}var MO=i(()=>{});function $c(){return getStructEncoder([["signer",getAddressEncoder()],["signature",fixEncoderSize(getBytesEncoder(),64)],["signedAt",getI64Encoder()],["signatureMethod",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["verificationData",getOptionEncoder(addEncoderSizePrefix(getBytesEncoder(),getU32Encoder()))]])}function Xc(){return getStructDecoder([["signer",getAddressDecoder()],["signature",fixDecoderSize(getBytesDecoder(),64)],["signedAt",getI64Decoder()],["signatureMethod",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["verificationData",getOptionDecoder(addDecoderSizePrefix(getBytesDecoder(),getU32Decoder()))]])}function bAe(){return combineCodec($c(),Xc())}var wO=i(()=>{});function FO(){return getStructEncoder([["negotiation",getAddressEncoder()],["initiator",getAddressEncoder()],["counterparty",getAddressEncoder()],["initialOffer",getU64Encoder()]])}function NO(){return getStructDecoder([["negotiation",getAddressDecoder()],["initiator",getAddressDecoder()],["counterparty",getAddressDecoder()],["initialOffer",getU64Decoder()]])}function OAe(){return combineCodec(FO(),NO())}var GO=i(()=>{});function Zc(){return getEnumEncoder(Yc)}function es(){return getEnumDecoder(Yc)}function NAe(){return combineCodec(Zc(),es())}var Yc,zO=i(()=>{Yc=(o=>(o[o.InitialOffer=0]="InitialOffer",o[o.CounterOffer=1]="CounterOffer",o[o.Accepted=2]="Accepted",o[o.Rejected=3]="Rejected",o[o.Expired=4]="Expired",o[o.AutoAccepted=5]="AutoAccepted",o))(Yc||{});});function HO(){return getStructEncoder([["activeAgents",getU32Encoder()],["transactionThroughput",getU64Encoder()],["averageLatency",getU64Encoder()],["errorRate",getU32Encoder()],["timestamp",getI64Encoder()]])}function VO(){return getStructDecoder([["activeAgents",getU32Decoder()],["transactionThroughput",getU64Decoder()],["averageLatency",getU64Decoder()],["errorRate",getU32Decoder()],["timestamp",getI64Decoder()]])}function BAe(){return combineCodec(HO(),VO())}var qO=i(()=>{});function ts(){return getStructEncoder([["activeAgents",getU32Encoder()],["totalTransactions",getU64Encoder()],["transactionThroughput",getU64Encoder()],["averageLatency",getU64Encoder()],["errorRate",getU32Encoder()],["successRate",getU32Encoder()],["lastUpdated",getI64Encoder()]])}function rs(){return getStructDecoder([["activeAgents",getU32Decoder()],["totalTransactions",getU64Decoder()],["transactionThroughput",getU64Decoder()],["averageLatency",getU64Decoder()],["errorRate",getU32Decoder()],["successRate",getU32Decoder()],["lastUpdated",getI64Decoder()]])}function jAe(){return combineCodec(ts(),rs())}var JO=i(()=>{});function YO(){return getStructEncoder([["dashboard",getAddressEncoder()],["activeAgents",getU32Encoder()],["transactionThroughput",getU64Encoder()],["averageLatency",getU64Encoder()],["errorRate",getU32Encoder()],["timestamp",getI64Encoder()]])}function ZO(){return getStructDecoder([["dashboard",getAddressDecoder()],["activeAgents",getU32Decoder()],["transactionThroughput",getU64Decoder()],["averageLatency",getU64Decoder()],["errorRate",getU32Decoder()],["timestamp",getI64Decoder()]])}function nge(){return combineCodec(YO(),ZO())}var eU=i(()=>{});function ns(){return getStructEncoder([["firewallRequired",getBooleanEncoder()],["intrusionDetection",getBooleanEncoder()],["trafficMonitoring",getBooleanEncoder()]])}function os(){return getStructDecoder([["firewallRequired",getBooleanDecoder()],["intrusionDetection",getBooleanDecoder()],["trafficMonitoring",getBooleanDecoder()]])}function ige(){return combineCodec(ns(),os())}var tU=i(()=>{});function ss(){return getEnumEncoder(cs)}function is(){return getEnumDecoder(cs)}function Age(){return combineCodec(ss(),is())}var cs,rU=i(()=>{cs=(o=>(o[o.OnChain=0]="OnChain",o[o.Email=1]="Email",o[o.Sms=2]="Sms",o[o.Push=3]="Push",o[o.InApp=4]="InApp",o[o.All=5]="All",o))(cs||{});});function ds(){return getEnumEncoder(as)}function us(){return getEnumDecoder(as)}function mge(){return combineCodec(ds(),us())}var as,nU=i(()=>{as=(s=>(s[s.Low=0]="Low",s[s.Medium=1]="Medium",s[s.High=2]="High",s[s.Critical=3]="Critical",s[s.Emergency=4]="Emergency",s))(as||{});});function De(){return getStructEncoder([["eventType",ms()],["targets",getArrayEncoder(As())],["method",ss()],["timing",ps()]])}function Ie(){return getStructDecoder([["eventType",ys()],["targets",getArrayDecoder(gs())],["method",is()],["timing",ls()]])}function Pge(){return combineCodec(De(),Ie())}var oU=i(()=>{y();});function As(){return getStructEncoder([["targetType",Ts()],["targetId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["priority",ds()]])}function gs(){return getStructDecoder([["targetType",Es()],["targetId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["priority",us()]])}function _ge(){return combineCodec(As(),gs())}var cU=i(()=>{y();});function Ts(){return getEnumEncoder(Ss)}function Es(){return getEnumDecoder(Ss)}function wge(){return combineCodec(Ts(),Es())}var Ss,sU=i(()=>{Ss=(a=>(a[a.User=0]="User",a[a.Administrator=1]="Administrator",a[a.SecurityTeam=2]="SecurityTeam",a[a.ComplianceTeam=3]="ComplianceTeam",a[a.Manager=4]="Manager",a[a.AuditTeam=5]="AuditTeam",a[a.ExternalSystem=6]="ExternalSystem",a))(Ss||{});});function ps(){return getEnumEncoder(xs)}function ls(){return getEnumDecoder(xs)}function zge(){return combineCodec(ps(),ls())}var xs,iU=i(()=>{xs=(t=>(t[t.Immediate=0]="Immediate",t[t.Delayed=1]="Delayed",t[t.Batched=2]="Batched",t[t.Scheduled=3]="Scheduled",t))(xs||{});});function Ps(){return getStructEncoder([["minimumLength",getU8Encoder()],["complexityRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["historyCount",getU8Encoder()],["maxAge",getI64Encoder()]])}function Rs(){return getStructDecoder([["minimumLength",getU8Decoder()],["complexityRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["historyCount",getU8Decoder()],["maxAge",getI64Decoder()]])}function Zge(){return combineCodec(Ps(),Rs())}var uU=i(()=>{});function AU(){return getStructEncoder([["workOrder",getAddressEncoder()],["from",getAddressEncoder()],["to",getAddressEncoder()],["amount",getU64Encoder()],["timestamp",getI64Encoder()]])}function gU(){return getStructDecoder([["workOrder",getAddressDecoder()],["from",getAddressDecoder()],["to",getAddressDecoder()],["amount",getU64Decoder()],["timestamp",getI64Decoder()]])}function ipe(){return combineCodec(AU(),gU())}var pU=i(()=>{});function fs(){return getStructEncoder([["transactionId",getU64Encoder()],["transactionType",Ze()],["target",getAddressEncoder()],["data",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["requiredSignatures",getU8Encoder()],["signatures",getArrayEncoder($c())],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["priority",bs()],["executionConditions",getArrayEncoder(ee())],["status",hs()],["timeLock",getOptionEncoder(Ds())]])}function Cs(){return getStructDecoder([["transactionId",getU64Decoder()],["transactionType",et()],["target",getAddressDecoder()],["data",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["requiredSignatures",getU8Decoder()],["signatures",getArrayDecoder(Xc())],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["priority",Ms()],["executionConditions",getArrayDecoder(te())],["status",vs()],["timeLock",getOptionDecoder(Is())]])}function Dpe(){return combineCodec(fs(),Cs())}var EU=i(()=>{y();});function Ns(){return getStructEncoder([["permissionId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["resourceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["actions",getArrayEncoder(he())],["scope",Bs()],["constraints",getArrayEncoder(zs())],["metadata",Ws()]])}function Gs(){return getStructDecoder([["permissionId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["resourceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["actions",getArrayDecoder(ve())],["scope",Hs()],["constraints",getArrayDecoder(Ls())],["metadata",Ks()]])}function hpe(){return combineCodec(Ns(),Gs())}var PU=i(()=>{y();});function zs(){return getStructEncoder([["constraintType",Vs()],["conditions",getArrayEncoder(Mo())],["enforcement",tt()]])}function Ls(){return getStructDecoder([["constraintType",qs()],["conditions",getArrayDecoder(ho())],["enforcement",rt()]])}function wpe(){return combineCodec(zs(),Ls())}var RU=i(()=>{y();});function Vs(){return getEnumEncoder(Js)}function qs(){return getEnumDecoder(Js)}function zpe(){return combineCodec(Vs(),qs())}var Js,fU=i(()=>{Js=(o=>(o[o.Temporal=0]="Temporal",o[o.Contextual=1]="Contextual",o[o.Conditional=2]="Conditional",o[o.ResourceBased=3]="ResourceBased",o[o.AttributeBased=4]="AttributeBased",o[o.RiskBased=5]="RiskBased",o))(Js||{});});function Ws(){return getStructEncoder([["businessJustification",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["riskAssessment",Qs()],["complianceMapping",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["relatedPermissions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["owner",getOptionEncoder(getAddressEncoder())],["lastReview",getOptionEncoder(getI64Encoder())],["reviewFrequency",getI64Encoder()]])}function Ks(){return getStructDecoder([["businessJustification",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["riskAssessment",js()],["complianceMapping",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["relatedPermissions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["owner",getOptionDecoder(getAddressDecoder())],["lastReview",getOptionDecoder(getI64Decoder())],["reviewFrequency",getI64Decoder()]])}function Vpe(){return combineCodec(Ws(),Ks())}var vU=i(()=>{y();});function Bs(){return getStructEncoder([["scopeType",Ys()],["boundaries",$s()],["hierarchical",getBooleanEncoder()],["inherited",getBooleanEncoder()]])}function Hs(){return getStructDecoder([["scopeType",Zs()],["boundaries",Xs()],["hierarchical",getBooleanDecoder()],["inherited",getBooleanDecoder()]])}function jpe(){return combineCodec(Bs(),Hs())}var OU=i(()=>{y();});function Kr(){return getStructEncoder([["author",getOptionEncoder(getAddressEncoder())],["approver",getOptionEncoder(getAddressEncoder())],["approvalDate",getOptionEncoder(getI64Encoder())],["businessJustification",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["complianceReferences",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["riskAssessment",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["reviewSchedule",ri()]])}function Br(){return getStructDecoder([["author",getOptionDecoder(getAddressDecoder())],["approver",getOptionDecoder(getAddressDecoder())],["approvalDate",getOptionDecoder(getI64Decoder())],["businessJustification",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["complianceReferences",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["riskAssessment",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["reviewSchedule",ni()]])}function nle(){return combineCodec(Kr(),Br())}var FU=i(()=>{y();});function Hr(){return getStructEncoder([["ruleId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["conditions",getArrayEncoder(At())],["effect",oi()],["priority",getU8Encoder()],["enabled",getBooleanEncoder()]])}function Vr(){return getStructDecoder([["ruleId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["conditions",getArrayDecoder(gt())],["effect",ci()],["priority",getU8Decoder()],["enabled",getBooleanDecoder()]])}function Sle(){return combineCodec(Hr(),Vr())}var NU=i(()=>{y();});function qr(){return getStructEncoder([["subjects",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["resources",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["actions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["inheritance",si()]])}function Jr(){return getStructDecoder([["subjects",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["resources",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["actions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["inheritance",ii()]])}function fle(){return combineCodec(qr(),Jr())}var GU=i(()=>{y();});function Qr(){return getEnumEncoder(ai)}function jr(){return getEnumDecoder(ai)}function ble(){return combineCodec(Qr(),jr())}var ai,zU=i(()=>{ai=(o=>(o[o.Active=0]="Active",o[o.Inactive=1]="Inactive",o[o.Draft=2]="Draft",o[o.UnderReview=3]="UnderReview",o[o.Deprecated=4]="Deprecated",o[o.Suspended=5]="Suspended",o))(ai||{});});function $r(){return getEnumEncoder(di)}function Xr(){return getEnumDecoder(di)}function _le(){return combineCodec($r(),Xr())}var di,LU=i(()=>{di=(o=>(o[o.Allow=0]="Allow",o[o.Deny=1]="Deny",o[o.Conditional=2]="Conditional",o[o.Delegated=3]="Delegated",o[o.Temporary=4]="Temporary",o[o.Emergency=5]="Emergency",o))(di||{});});function Xe(){return getEnumEncoder(ui)}function Ye(){return getEnumDecoder(ui)}function wle(){return combineCodec(Xe(),Ye())}var ui,WU=i(()=>{ui=(P=>(P[P.Linear=0]="Linear",P[P.Exponential=1]="Exponential",P[P.Logarithmic=2]="Logarithmic",P[P.Sigmoid=3]="Sigmoid",P[P.MarketBased=4]="MarketBased",P[P.MLOptimized=5]="MLOptimized",P[P.DemandBased=6]="DemandBased",P[P.ReputationBased=7]="ReputationBased",P[P.SurgePricing=8]="SurgePricing",P[P.MarketAverage=9]="MarketAverage",P[P.PerformanceBased=10]="PerformanceBased",P[P.Seasonal=11]="Seasonal",P))(ui||{});});function Oe(){return getEnumEncoder(Ai)}function Ue(){return getEnumDecoder(Ai)}function zle(){return combineCodec(Oe(),Ue())}var Ai,KU=i(()=>{Ai=(A=>(A[A.Fixed=0]="Fixed",A[A.Hourly=1]="Hourly",A[A.PerTask=2]="PerTask",A[A.Subscription=3]="Subscription",A[A.Auction=4]="Auction",A[A.Dynamic=5]="Dynamic",A[A.RevenueShare=6]="RevenueShare",A[A.Tiered=7]="Tiered",A))(Ai||{});});function gi(){return getStructEncoder([["pubkey",getAddressEncoder()],["isSigner",getBooleanEncoder()],["isWritable",getBooleanEncoder()],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function pi(){return getStructDecoder([["pubkey",getAddressDecoder()],["isSigner",getBooleanDecoder()],["isWritable",getBooleanDecoder()],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Xle(){return combineCodec(gi(),pi())}var VU=i(()=>{});function QU(){return getStructEncoder([["proposal",getAddressEncoder()],["proposalId",getU64Encoder()],["executor",getAddressEncoder()],["timestamp",getI64Encoder()]])}function jU(){return getStructDecoder([["proposal",getAddressDecoder()],["proposalId",getU64Decoder()],["executor",getAddressDecoder()],["timestamp",getI64Decoder()]])}function cme(){return combineCodec(QU(),jU())}var $U=i(()=>{});function yc(){return getStructEncoder([["programId",getAddressEncoder()],["accounts",getArrayEncoder(gi())],["data",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]])}function Tc(){return getStructDecoder([["programId",getAddressDecoder()],["accounts",getArrayDecoder(pi())],["data",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Tme(){return combineCodec(yc(),Tc())}var tw=i(()=>{y();});function yi(){return getStructEncoder([["ipfsHash",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["externalReferences",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["tags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["riskAssessment",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["impactAnalysis",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["implementationTimeline",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Ti(){return getStructDecoder([["ipfsHash",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["externalReferences",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["tags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["riskAssessment",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["impactAnalysis",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["implementationTimeline",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Pme(){return combineCodec(yi(),Ti())}var ow=i(()=>{});function St(){return getEnumEncoder(Ei)}function xt(){return getEnumDecoder(Ei)}function Dme(){return combineCodec(St(),xt())}var Ei,cw=i(()=>{Ei=(A=>(A[A.Draft=0]="Draft",A[A.Active=1]="Active",A[A.Passed=2]="Passed",A[A.Failed=3]="Failed",A[A.Executed=4]="Executed",A[A.Cancelled=5]="Cancelled",A[A.Expired=6]="Expired",A[A.Queued=7]="Queued",A))(Ei||{});});function $(){return getEnumEncoder(Si)}function X(){return getEnumDecoder(Si)}function hme(){return combineCodec($(),X())}var Si,sw=i(()=>{Si=(A=>(A[A.ParameterUpdate=0]="ParameterUpdate",A[A.ProtocolUpgrade=1]="ProtocolUpgrade",A[A.TreasuryOperation=2]="TreasuryOperation",A[A.FeeUpdate=3]="FeeUpdate",A[A.SecurityUpdate=4]="SecurityUpdate",A[A.GovernanceUpdate=5]="GovernanceUpdate",A[A.EmergencyAction=6]="EmergencyAction",A[A.Custom=7]="Custom",A))(Si||{});});function Pi(){return getEnumEncoder(xi)}function Ri(){return getEnumDecoder(xi)}function Ome(){return combineCodec(Pi(),Ri())}var xi,iw=i(()=>{xi=(s=>(s[s.Pending=0]="Pending",s[s.Confirmed=1]="Confirmed",s[s.Completed=2]="Completed",s[s.Cancelled=3]="Cancelled",s[s.Paid=4]="Paid",s))(xi||{});});function Ci(){return getEnumEncoder(fi)}function Di(){return getEnumDecoder(fi)}function Nme(){return combineCodec(Ci(),Di())}var fi,aw=i(()=>{fi=(t=>(t[t.Absolute=0]="Absolute",t[t.Relative=1]="Relative",t[t.Weighted=2]="Weighted",t[t.Dynamic=3]="Dynamic",t))(fi||{});});function Ii(){return getStructEncoder([["minimumParticipation",getU8Encoder()],["approvalThreshold",getU8Encoder()],["superMajorityRequired",getBooleanEncoder()],["minimumVotingPower",getU64Encoder()],["quorumMethod",Ci()]])}function bi(){return getStructDecoder([["minimumParticipation",getU8Decoder()],["approvalThreshold",getU8Decoder()],["superMajorityRequired",getBooleanDecoder()],["minimumVotingPower",getU64Decoder()],["quorumMethod",Di()]])}function Vme(){return combineCodec(Ii(),bi())}var Aw=i(()=>{y();});function lw(){return getStructEncoder([["rbacConfig",getAddressEncoder()],["authority",getAddressEncoder()],["rolesCount",getU32Encoder()]])}function mw(){return getStructDecoder([["rbacConfig",getAddressDecoder()],["authority",getAddressDecoder()],["rolesCount",getU32Decoder()]])}function Xme(){return combineCodec(lw(),mw())}var yw=i(()=>{});function hi(){return getEnumEncoder(Mi)}function vi(){return getEnumDecoder(Mi)}function tye(){return combineCodec(hi(),vi())}var Mi,Tw=i(()=>{Mi=(r=>(r[r.Unlocked=0]="Unlocked",r[r.Locked=1]="Locked",r))(Mi||{});});function Ew(){return getStructEncoder([["template",getAddressEncoder()],["agent",getAddressEncoder()],["owner",getAddressEncoder()],["fee",getU64Encoder()],["timestamp",getI64Encoder()]])}function Sw(){return getStructDecoder([["template",getAddressDecoder()],["agent",getAddressDecoder()],["owner",getAddressDecoder()],["fee",getU64Decoder()],["timestamp",getI64Decoder()]])}function dye(){return combineCodec(Ew(),Sw())}var xw=i(()=>{});function _i(){return getStructEncoder([["summary",Oi()],["entries",getArrayEncoder(Pt())],["complianceMetrics",xo()],["riskIndicators",getArrayEncoder(wi())],["recommendations",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function ki(){return getStructDecoder([["summary",Ui()],["entries",getArrayDecoder(Rt())],["complianceMetrics",Po()],["riskIndicators",getArrayDecoder(Fi())],["recommendations",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function Sye(){return combineCodec(_i(),ki())}var Pw=i(()=>{y();});function Pt(){return getStructEncoder([])}function Rt(){return getStructDecoder([])}function Cw(){return getStructEncoder([["data",Pt()]])}function Dw(){return getStructDecoder([["data",Rt()]])}function Pye(){return combineCodec(Cw(),Dw())}var Iw=i(()=>{});function wn(){return getEnumEncoder(Ni)}function Fn(){return getEnumDecoder(Ni)}function Dye(){return combineCodec(wn(),Fn())}var Ni,bw=i(()=>{Ni=(o=>(o[o.Daily=0]="Daily",o[o.Weekly=1]="Weekly",o[o.Monthly=2]="Monthly",o[o.Quarterly=3]="Quarterly",o[o.Annually=4]="Annually",o[o.OnDemand=5]="OnDemand",o))(Ni||{});});function zi(){return getEnumEncoder(Gi)}function Li(){return getEnumDecoder(Gi)}function hye(){return combineCodec(zi(),Li())}var Gi,Mw=i(()=>{Gi=(a=>(a[a.Draft=0]="Draft",a[a.Generated=1]="Generated",a[a.Reviewed=2]="Reviewed",a[a.Approved=3]="Approved",a[a.Submitted=4]="Submitted",a[a.Acknowledged=5]="Acknowledged",a[a.Rejected=6]="Rejected",a))(Gi||{});});function Oi(){return getStructEncoder([["totalTransactions",getU64Encoder()],["totalVolume",getU64Encoder()],["highRiskTransactions",getU64Encoder()],["complianceViolations",getU64Encoder()],["securityIncidents",getU64Encoder()],["averageRiskScore",getU8Encoder()]])}function Ui(){return getStructDecoder([["totalTransactions",getU64Decoder()],["totalVolume",getU64Decoder()],["highRiskTransactions",getU64Decoder()],["complianceViolations",getU64Decoder()],["securityIncidents",getU64Decoder()],["averageRiskScore",getU8Decoder()]])}function wye(){return combineCodec(Oi(),Ui())}var hw=i(()=>{});function q(){return getEnumEncoder(Wi)}function J(){return getEnumDecoder(Wi)}function zye(){return combineCodec(q(),J())}var Wi,vw=i(()=>{Wi=(A=>(A[A.FinancialTransactions=0]="FinancialTransactions",A[A.SuspiciousActivity=1]="SuspiciousActivity",A[A.RegulatoryCompliance=2]="RegulatoryCompliance",A[A.SecurityIncidents=3]="SecurityIncidents",A[A.AuditSummary=4]="AuditSummary",A[A.RiskAssessment=5]="RiskAssessment",A[A.GovernanceActivity=6]="GovernanceActivity",A[A.DataPrivacyCompliance=7]="DataPrivacyCompliance",A))(Wi||{});});function ft(){return getStructEncoder([])}function Ct(){return getStructDecoder([])}function Ow(){return getStructEncoder([["data",ft()]])}function Uw(){return getStructDecoder([["data",Ct()]])}function Wye(){return combineCodec(Ow(),Uw())}var ww=i(()=>{});function ri(){return getStructEncoder([["frequency",getI64Encoder()],["lastReview",getOptionEncoder(getI64Encoder())],["nextReview",getI64Encoder()],["reviewOwners",getArrayEncoder(getAddressEncoder())],["reviewCriteria",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function ni(){return getStructDecoder([["frequency",getI64Decoder()],["lastReview",getOptionDecoder(getI64Decoder())],["nextReview",getI64Decoder()],["reviewOwners",getArrayDecoder(getAddressDecoder())],["reviewCriteria",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function t1e(){return combineCodec(ri(),ni())}var Gw=i(()=>{});function Hi(){return getStructEncoder([["accepted",getBooleanEncoder()],["acceptingAuthority",getOptionEncoder(getAddressEncoder())],["acceptanceDate",getOptionEncoder(getI64Encoder())],["reasoning",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["reviewDate",getOptionEncoder(getI64Encoder())]])}function Vi(){return getStructDecoder([["accepted",getBooleanDecoder()],["acceptingAuthority",getOptionDecoder(getAddressDecoder())],["acceptanceDate",getOptionDecoder(getI64Decoder())],["reasoning",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["reviewDate",getOptionDecoder(getI64Decoder())]])}function m1e(){return combineCodec(Hi(),Vi())}var Ww=i(()=>{});function Qs(){return getStructEncoder([["riskScore",getU8Encoder()],["riskFactors",getArrayEncoder(qi())],["mitigationMeasures",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["riskAcceptance",Hi()]])}function js(){return getStructDecoder([["riskScore",getU8Decoder()],["riskFactors",getArrayDecoder(Ji())],["mitigationMeasures",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["riskAcceptance",Vi()]])}function b1e(){return combineCodec(Qs(),js())}var Hw=i(()=>{y();});function ji(){return getEnumEncoder(Qi)}function $i(){return getEnumDecoder(Qi)}function _1e(){return combineCodec(ji(),$i())}var Qi,Vw=i(()=>{Qi=(a=>(a[a.Operational=0]="Operational",a[a.Financial=1]="Financial",a[a.Compliance=2]="Compliance",a[a.Security=3]="Security",a[a.Reputational=4]="Reputational",a[a.Technical=5]="Technical",a[a.Legal=6]="Legal",a))(Qi||{});});function qi(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["category",ji()],["impact",getU8Encoder()],["likelihood",getU8Encoder()],["riskScore",getU8Encoder()]])}function Ji(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["category",$i()],["impact",getU8Decoder()],["likelihood",getU8Decoder()],["riskScore",getU8Decoder()]])}function W1e(){return combineCodec(qi(),Ji())}var qw=i(()=>{y();});function wi(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["currentValue",getU64Encoder()],["thresholdValue",getU64Encoder()],["trend",Xi()],["severity",Zi()],["recommendedActions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Fi(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["currentValue",getU64Decoder()],["thresholdValue",getU64Decoder()],["trend",Yi()],["severity",ea()],["recommendedActions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function J1e(){return combineCodec(wi(),Fi())}var tF=i(()=>{y();});function ra(){return getEnumEncoder(ta)}function na(){return getEnumDecoder(ta)}function X1e(){return combineCodec(ra(),na())}var ta,rF=i(()=>{ta=(t=>(t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High",t[t.Critical=3]="Critical",t))(ta||{});});function Dt(){return getStructEncoder([["roleId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["roleType",ua()],["permissions",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["constraints",oa()],["inheritsFrom",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["metadata",sa()],["status",aa()],["createdAt",getI64Encoder()],["modifiedAt",getI64Encoder()]])}function It(){return getStructDecoder([["roleId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["roleType",Aa()],["permissions",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["constraints",ca()],["inheritsFrom",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["metadata",ia()],["status",da()],["createdAt",getI64Decoder()],["modifiedAt",getI64Decoder()]])}function tTe(){return combineCodec(Dt(),It())}var iF=i(()=>{y();});function oa(){return getStructEncoder([["timeConstraints",getOptionEncoder(ya())],["locationConstraints",getOptionEncoder(Kc())],["resourceConstraints",getOptionEncoder(ft())],["sessionConstraints",getOptionEncoder(ga())],["sodConstraints",getArrayEncoder(la())],["maxConcurrentSessions",getOptionEncoder(getU32Encoder())],["activationRequirements",getArrayEncoder(nn())]])}function ca(){return getStructDecoder([["timeConstraints",getOptionDecoder(Ta())],["locationConstraints",getOptionDecoder(Bc())],["resourceConstraints",getOptionDecoder(Ct())],["sessionConstraints",getOptionDecoder(pa())],["sodConstraints",getArrayDecoder(ma())],["maxConcurrentSessions",getOptionDecoder(getU32Decoder())],["activationRequirements",getArrayDecoder(on())]])}function iTe(){return combineCodec(oa(),ca())}var uF=i(()=>{y();});function sa(){return getStructEncoder([["businessPurpose",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["riskLevel",ra()],["dataAccessLevel",zo()],["complianceRequirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["roleOwner",getOptionEncoder(getAddressEncoder())],["roleCustodian",getOptionEncoder(getAddressEncoder())],["reviewFrequency",getI64Encoder()],["lastReview",getOptionEncoder(getI64Encoder())],["nextReview",getOptionEncoder(getI64Encoder())]])}function ia(){return getStructDecoder([["businessPurpose",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["riskLevel",na()],["dataAccessLevel",Lo()],["complianceRequirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["roleOwner",getOptionDecoder(getAddressDecoder())],["roleCustodian",getOptionDecoder(getAddressDecoder())],["reviewFrequency",getI64Decoder()],["lastReview",getOptionDecoder(getI64Decoder())],["nextReview",getOptionDecoder(getI64Decoder())]])}function pTe(){return combineCodec(sa(),ia())}var SF=i(()=>{y();});function aa(){return getEnumEncoder(xa)}function da(){return getEnumDecoder(xa)}function TTe(){return combineCodec(aa(),da())}var xa,xF=i(()=>{xa=(s=>(s[s.Active=0]="Active",s[s.Inactive=1]="Inactive",s[s.Deprecated=2]="Deprecated",s[s.UnderReview=3]="UnderReview",s[s.Suspended=4]="Suspended",s))(xa||{});});function ua(){return getEnumEncoder(Pa)}function Aa(){return getEnumDecoder(Pa)}function PTe(){return combineCodec(ua(),Aa())}var Pa,PF=i(()=>{Pa=(A=>(A[A.Administrative=0]="Administrative",A[A.Operational=1]="Operational",A[A.ReadOnly=2]="ReadOnly",A[A.Compliance=3]="Compliance",A[A.Emergency=4]="Emergency",A[A.Custom=5]="Custom",A[A.Service=6]="Service",A[A.Guest=7]="Guest",A))(Pa||{});});function bt(){return getStructEncoder([["percentage",getU32Encoder()],["minAmount",getU64Encoder()],["maxAmount",getU64Encoder()]])}function Mt(){return getStructDecoder([["percentage",getU32Decoder()],["minAmount",getU64Decoder()],["maxAmount",getU64Decoder()]])}function bTe(){return combineCodec(bt(),Mt())}var CF=i(()=>{});function DF(){return getStructEncoder([["stream",getAddressEncoder()],["agent",getAddressEncoder()],["creator",getAddressEncoder()],["percentage",getU32Encoder()]])}function IF(){return getStructDecoder([["stream",getAddressDecoder()],["agent",getAddressDecoder()],["creator",getAddressDecoder()],["percentage",getU32Decoder()]])}function OTe(){return combineCodec(DF(),IF())}var bF=i(()=>{});function At(){return getStructEncoder([])}function gt(){return getStructDecoder([])}function vF(){return getStructEncoder([["data",At()]])}function _F(){return getStructDecoder([["data",gt()]])}function wTe(){return combineCodec(vF(),_F())}var kF=i(()=>{});function oi(){return getEnumEncoder(Ra)}function ci(){return getEnumDecoder(Ra)}function zTe(){return combineCodec(oi(),ci())}var Ra,OF=i(()=>{Ra=(o=>(o[o.Allow=0]="Allow",o[o.Deny=1]="Deny",o[o.AuditOnly=2]="AuditOnly",o[o.RequireApproval=3]="RequireApproval",o[o.RequireMfa=4]="RequireMfa",o[o.RequireJustification=5]="RequireJustification",o))(Ra||{});});function $s(){return getStructEncoder([["includedResources",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["excludedResources",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["resourcePatterns",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["hierarchicalBoundaries",getArrayEncoder(Mc())]])}function Xs(){return getStructDecoder([["includedResources",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["excludedResources",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["resourcePatterns",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["hierarchicalBoundaries",getArrayDecoder(hc())]])}function BTe(){return combineCodec($s(),Xs())}var UF=i(()=>{y();});function si(){return getEnumEncoder(Da)}function ii(){return getEnumDecoder(Da)}function JTe(){return combineCodec(si(),ii())}var Da,wF=i(()=>{Da=(t=>(t[t.None=0]="None",t[t.Hierarchical=1]="Hierarchical",t[t.Delegated=2]="Delegated",t[t.Inherited=3]="Inherited",t))(Da||{});});function Ys(){return getEnumEncoder(Ia)}function Zs(){return getEnumDecoder(Ia)}function XTe(){return combineCodec(Ys(),Zs())}var Ia,FF=i(()=>{Ia=(o=>(o[o.Global=0]="Global",o[o.Organization=1]="Organization",o[o.Department=2]="Department",o[o.Project=3]="Project",o[o.Resource=4]="Resource",o[o.Individual=5]="Individual",o))(Ia||{});});function ms(){return getEnumEncoder(ba)}function ys(){return getEnumDecoder(ba)}function tEe(){return combineCodec(ms(),ys())}var ba,NF=i(()=>{ba=(A=>(A[A.AccountLockout=0]="AccountLockout",A[A.PasswordChange=1]="PasswordChange",A[A.PrivilegeEscalation=2]="PrivilegeEscalation",A[A.SuspiciousActivity=3]="SuspiciousActivity",A[A.PolicyViolation=4]="PolicyViolation",A[A.AccessDenied=5]="AccessDenied",A[A.DataBreach=6]="DataBreach",A[A.SystemCompromise=7]="SystemCompromise",A))(ba||{});});function Ma(){return getStructEncoder([["authentication",Jn()],["authorization",to()],["password",Ps()],["session",va()],["dataProtection",Wo()],["networkSecurity",ns()],["incidentResponse",kc()],["compliance",Ro()]])}function ha(){return getStructDecoder([["authentication",Qn()],["authorization",ro()],["password",Rs()],["session",_a()],["dataProtection",Ko()],["networkSecurity",os()],["incidentResponse",Oc()],["compliance",fo()]])}function cEe(){return combineCodec(Ma(),ha())}var GF=i(()=>{y();});function zF(){return getStructEncoder([["auction",getAddressEncoder()],["agent",getAddressEncoder()],["creator",getAddressEncoder()],["startingPrice",getU64Encoder()],["auctionType",L()]])}function LF(){return getStructDecoder([["auction",getAddressDecoder()],["agent",getAddressDecoder()],["creator",getAddressDecoder()],["startingPrice",getU64Decoder()],["auctionType",W()]])}function AEe(){return combineCodec(zF(),LF())}var WF=i(()=>{y();});function HF(){return getStructEncoder([["listing",getAddressEncoder()],["creator",getAddressEncoder()],["price",getU64Encoder()],["timestamp",getI64Encoder()]])}function VF(){return getStructDecoder([["listing",getAddressDecoder()],["creator",getAddressDecoder()],["price",getU64Decoder()],["timestamp",getI64Decoder()]])}function SEe(){return combineCodec(HF(),VF())}var qF=i(()=>{});function jF(){return getStructEncoder([["service",getAddressEncoder()],["provider",getAddressEncoder()],["executionTime",getU64Encoder()],["success",getBooleanEncoder()],["qualityScore",getOptionEncoder(getU32Encoder())],["timestamp",getI64Encoder()]])}function $F(){return getStructDecoder([["service",getAddressDecoder()],["provider",getAddressDecoder()],["executionTime",getU64Decoder()],["success",getBooleanDecoder()],["qualityScore",getOptionDecoder(getU32Decoder())],["timestamp",getI64Decoder()]])}function OEe(){return combineCodec(jF(),$F())}var XF=i(()=>{});function rN(){return getStructEncoder([["service",getAddressEncoder()],["buyer",getAddressEncoder()],["quantity",getU64Encoder()],["price",getU64Encoder()],["timestamp",getI64Encoder()]])}function nN(){return getStructDecoder([["service",getAddressDecoder()],["buyer",getAddressDecoder()],["quantity",getU64Decoder()],["price",getU64Decoder()],["timestamp",getI64Decoder()]])}function zEe(){return combineCodec(rN(),nN())}var oN=i(()=>{});function ga(){return getStructEncoder([["maxSessionDuration",getI64Encoder()],["idleTimeout",getI64Encoder()],["reauthInterval",getI64Encoder()],["mfaRequired",getBooleanEncoder()],["deviceFingerprinting",getBooleanEncoder()],["sessionEncryption",getBooleanEncoder()]])}function pa(){return getStructDecoder([["maxSessionDuration",getI64Decoder()],["idleTimeout",getI64Decoder()],["reauthInterval",getI64Decoder()],["mfaRequired",getBooleanDecoder()],["deviceFingerprinting",getBooleanDecoder()],["sessionEncryption",getBooleanDecoder()]])}function BEe(){return combineCodec(ga(),pa())}var cN=i(()=>{});function va(){return getStructEncoder([["maxSessionDuration",getI64Encoder()],["idleTimeout",getI64Encoder()],["concurrentSessions",getU8Encoder()]])}function _a(){return getStructDecoder([["maxSessionDuration",getI64Decoder()],["idleTimeout",getI64Decoder()],["concurrentSessions",getU8Decoder()]])}function jEe(){return combineCodec(va(),_a())}var aN=i(()=>{});function la(){return getStructEncoder([["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["conflictingRoles",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["constraintType",ka()],["enforcementLevel",tt()],["exceptionProcedures",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function ma(){return getStructDecoder([["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["conflictingRoles",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["constraintType",Oa()],["enforcementLevel",rt()],["exceptionProcedures",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function ZEe(){return combineCodec(la(),ma())}var AN=i(()=>{y();});function ka(){return getEnumEncoder(Ua)}function Oa(){return getEnumDecoder(Ua)}function nSe(){return combineCodec(ka(),Oa())}var Ua,gN=i(()=>{Ua=(t=>(t[t.Static=0]="Static",t[t.Dynamic=1]="Dynamic",t[t.Temporal=2]="Temporal",t[t.Contextual=3]="Contextual",t))(Ua||{});});function Zn(){return getEnumEncoder(wa)}function eo(){return getEnumDecoder(wa)}function iSe(){return combineCodec(Zn(),eo())}var wa,pN=i(()=>{wa=(a=>(a[a.HighRiskAction=0]="HighRiskAction",a[a.SensitiveData=1]="SensitiveData",a[a.LargeTransaction=2]="LargeTransaction",a[a.NewDevice=3]="NewDevice",a[a.UnusualLocation=4]="UnusualLocation",a[a.TimeBasedRisk=5]="TimeBasedRisk",a[a.BehaviorAnomaly=6]="BehaviorAnomaly",a))(wa||{});});function Fa(){return getStructEncoder([["submittedAt",getI64Encoder()],["regulatoryBody",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["submissionReference",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["acknowledged",getBooleanEncoder()],["acknowledgedAt",getOptionEncoder(getI64Encoder())],["regulatoryResponse",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]])}function Na(){return getStructDecoder([["submittedAt",getI64Decoder()],["regulatoryBody",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["submissionReference",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["acknowledged",getBooleanDecoder()],["acknowledgedAt",getOptionDecoder(getI64Decoder())],["regulatoryResponse",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function pSe(){return combineCodec(Fa(),Na())}var EN=i(()=>{});function ya(){return getStructEncoder([["allowedHours",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["allowedDays",addEncoderSizePrefix(getBytesEncoder(),getU32Encoder())],["timezone",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["maxSessionDuration",getOptionEncoder(getI64Encoder())],["expiresAt",getOptionEncoder(getI64Encoder())],["reactivationPeriod",getOptionEncoder(getI64Encoder())]])}function Ta(){return getStructDecoder([["allowedHours",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["allowedDays",addDecoderSizePrefix(getBytesDecoder(),getU32Decoder())],["timezone",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["maxSessionDuration",getOptionDecoder(getI64Decoder())],["expiresAt",getOptionDecoder(getI64Decoder())],["reactivationPeriod",getOptionDecoder(getI64Decoder())]])}function SSe(){return combineCodec(ya(),Ta())}var PN=i(()=>{});function Ds(){return getStructEncoder([["duration",getI64Encoder()],["lockedAt",getI64Encoder()],["unlocksAt",getI64Encoder()],["earlyUnlockConditions",getArrayEncoder(ee())],["lockType",Ga()],["cancellable",getBooleanEncoder()]])}function Is(){return getStructDecoder([["duration",getI64Decoder()],["lockedAt",getI64Decoder()],["unlocksAt",getI64Decoder()],["earlyUnlockConditions",getArrayDecoder(te())],["lockType",za()],["cancellable",getBooleanDecoder()]])}function bSe(){return combineCodec(Ds(),Is())}var RN=i(()=>{y();});function Ga(){return getEnumEncoder(La)}function za(){return getEnumDecoder(La)}function _Se(){return combineCodec(Ga(),za())}var La,fN=i(()=>{La=(t=>(t[t.Standard=0]="Standard",t[t.Vesting=1]="Vesting",t[t.Emergency=2]="Emergency",t[t.Governance=3]="Governance",t))(La||{});});function Wa(){return getStructEncoder([["transferFee",getBooleanEncoder()],["confidentialTransfers",getBooleanEncoder()],["interestBearing",getBooleanEncoder()]])}function Ka(){return getStructDecoder([["transferFee",getBooleanDecoder()],["confidentialTransfers",getBooleanDecoder()],["interestBearing",getBooleanDecoder()]])}function wSe(){return combineCodec(Wa(),Ka())}var CN=i(()=>{});function DN(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["agent",getAddressEncoder()],["decimals",getU8Encoder()],["extensionsEnabled",Wa()],["timestamp",getI64Encoder()]])}function IN(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["agent",getAddressDecoder()],["decimals",getU8Decoder()],["extensionsEnabled",Ka()],["timestamp",getI64Decoder()]])}function BSe(){return combineCodec(DN(),IN())}var bN=i(()=>{y();});function vN(){return getStructEncoder([["marketAnalytics",getAddressEncoder()],["agent",getAddressEncoder()],["timestamp",getI64Encoder()]])}function _N(){return getStructDecoder([["marketAnalytics",getAddressDecoder()],["agent",getAddressDecoder()],["timestamp",getI64Decoder()]])}function jSe(){return combineCodec(vN(),_N())}var kN=i(()=>{});function BN(){return getStructEncoder([["transactionType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["from",getAddressEncoder()],["to",getAddressEncoder()],["status",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()],["blockHeight",getU64Encoder()]])}function HN(){return getStructDecoder([["transactionType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["from",getAddressDecoder()],["to",getAddressDecoder()],["status",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()],["blockHeight",getU64Decoder()]])}function txe(){return combineCodec(BN(),HN())}var VN=i(()=>{});function bs(){return getEnumEncoder(Ba)}function Ms(){return getEnumDecoder(Ba)}function cxe(){return combineCodec(bs(),Ms())}var Ba,qN=i(()=>{Ba=(s=>(s[s.Low=0]="Low",s[s.Normal=1]="Normal",s[s.High=2]="High",s[s.Critical=3]="Critical",s[s.Emergency=4]="Emergency",s))(Ba||{});});function hs(){return getEnumEncoder(Ha)}function vs(){return getEnumDecoder(Ha)}function dxe(){return combineCodec(hs(),vs())}var Ha,JN=i(()=>{Ha=(a=>(a[a.Pending=0]="Pending",a[a.PartiallyApproved=1]="PartiallyApproved",a[a.FullyApproved=2]="FullyApproved",a[a.Executed=3]="Executed",a[a.Cancelled=4]="Cancelled",a[a.Expired=5]="Expired",a[a.Failed=6]="Failed",a))(Ha||{});});function Ze(){return getEnumEncoder(Va)}function et(){return getEnumDecoder(Va)}function pxe(){return combineCodec(Ze(),et())}var Va,QN=i(()=>{Va=(C=>(C[C.Transfer=0]="Transfer",C[C.Withdrawal=1]="Withdrawal",C[C.EscrowRelease=2]="EscrowRelease",C[C.ProposalCreation=3]="ProposalCreation",C[C.VoteExecution=4]="VoteExecution",C[C.ParameterUpdate=5]="ParameterUpdate",C[C.SignerAddition=6]="SignerAddition",C[C.SignerRemoval=7]="SignerRemoval",C[C.ThresholdUpdate=8]="ThresholdUpdate",C[C.ConfigUpdate=9]="ConfigUpdate",C[C.EmergencyFreeze=10]="EmergencyFreeze",C[C.EmergencyUnfreeze=11]="EmergencyUnfreeze",C[C.SecurityPolicyUpdate=12]="SecurityPolicyUpdate",C[C.ProtocolUpgrade=13]="ProtocolUpgrade",C[C.FeatureToggle=14]="FeatureToggle",C[C.RiskParameterUpdate=15]="RiskParameterUpdate",C[C.CustomInstruction=16]="CustomInstruction",C))(Va||{});});function XN(){return getStructEncoder([["mint",getAddressEncoder()],["authority",getAddressEncoder()],["transferFeeBasisPoints",getU16Encoder()],["maximumFee",getU64Encoder()],["transferFeeAuthority",getOptionEncoder(getAddressEncoder())],["withdrawWithheldAuthority",getOptionEncoder(getAddressEncoder())],["timestamp",getI64Encoder()]])}function YN(){return getStructDecoder([["mint",getAddressDecoder()],["authority",getAddressDecoder()],["transferFeeBasisPoints",getU16Decoder()],["maximumFee",getU64Decoder()],["transferFeeAuthority",getOptionDecoder(getAddressDecoder())],["withdrawWithheldAuthority",getOptionDecoder(getAddressDecoder())],["timestamp",getI64Decoder()]])}function fxe(){return combineCodec(XN(),YN())}var ZN=i(()=>{});function Xi(){return getEnumEncoder(Qa)}function Yi(){return getEnumDecoder(Qa)}function bxe(){return combineCodec(Xi(),Yi())}var Qa,eG=i(()=>{Qa=(t=>(t[t.Increasing=0]="Increasing",t[t.Decreasing=1]="Decreasing",t[t.Stable=2]="Stable",t[t.Unknown=3]="Unknown",t))(Qa||{});});function nG(){return getStructEncoder([["channel",getAddressEncoder()],["user",getAddressEncoder()],["isTyping",getBooleanEncoder()],["timestamp",getI64Encoder()]])}function oG(){return getStructDecoder([["channel",getAddressDecoder()],["user",getAddressDecoder()],["isTyping",getBooleanDecoder()],["timestamp",getI64Decoder()]])}function wxe(){return combineCodec(nG(),oG())}var cG=i(()=>{});function en(){return getEnumEncoder(ja)}function tn(){return getEnumDecoder(ja)}function zxe(){return combineCodec(en(),tn())}var ja,sG=i(()=>{ja=(s=>(s[s.TimeBasedAutoUnlock=0]="TimeBasedAutoUnlock",s[s.AdminUnlock=1]="AdminUnlock",s[s.SelfServiceUnlock=2]="SelfServiceUnlock",s[s.MultiFactorUnlock=3]="MultiFactorUnlock",s[s.SupervisorUnlock=4]="SupervisorUnlock",s))(ja||{});});function dG(){return getStructEncoder([["user",getAddressEncoder()],["action",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["sessionDuration",getOptionEncoder(getU64Encoder())],["interactionCount",getU32Encoder()],["timestamp",getI64Encoder()]])}function uG(){return getStructDecoder([["user",getAddressDecoder()],["action",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["sessionDuration",getOptionDecoder(getU64Decoder())],["interactionCount",getU32Decoder()],["timestamp",getI64Decoder()]])}function tPe(){return combineCodec(dG(),uG())}var AG=i(()=>{});function lG(){return getStructEncoder([["channel",getAddressEncoder()],["user",getAddressEncoder()],["joinedAt",getI64Encoder()]])}function mG(){return getStructDecoder([["channel",getAddressDecoder()],["user",getAddressDecoder()],["joinedAt",getI64Decoder()]])}function iPe(){return combineCodec(lG(),mG())}var yG=i(()=>{});function SG(){return getStructEncoder([["channel",getAddressEncoder()],["user",getAddressEncoder()],["leftAt",getI64Encoder()]])}function xG(){return getStructDecoder([["channel",getAddressDecoder()],["user",getAddressDecoder()],["leftAt",getI64Decoder()]])}function pPe(){return combineCodec(SG(),xG())}var PG=i(()=>{});function ko(){return getEnumEncoder($a)}function Oo(){return getEnumDecoder($a)}function TPe(){return combineCodec(ko(),Oo())}var $a,RG=i(()=>{$a=(A=>(A[A.String=0]="String",A[A.Number=1]="Number",A[A.Boolean=2]="Boolean",A[A.Date=3]="Date",A[A.Time=4]="Time",A[A.Duration=5]="Duration",A[A.List=6]="List",A[A.Object=7]="Object",A))($a||{});});function Zi(){return getEnumEncoder(Xa)}function ea(){return getEnumDecoder(Xa)}function PPe(){return combineCodec(Zi(),ea())}var Xa,fG=i(()=>{Xa=(t=>(t[t.Low=0]="Low",t[t.Medium=1]="Medium",t[t.High=2]="High",t[t.Critical=3]="Critical",t))(Xa||{});});function ht(){return getStructEncoder([["minQuantity",getU32Encoder()],["maxQuantity",getU32Encoder()],["discountPercentage",getU32Encoder()]])}function vt(){return getStructDecoder([["minQuantity",getU32Decoder()],["maxQuantity",getU32Decoder()],["discountPercentage",getU32Decoder()]])}function DPe(){return combineCodec(ht(),vt())}var CG=i(()=>{});function Ya(){return getStructEncoder([["voter",getAddressEncoder()],["choice",se()],["votingPower",getU64Encoder()],["votedAt",getI64Encoder()],["reasoning",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["delegationInfo",getOptionEncoder(Vo())]])}function Za(){return getStructDecoder([["voter",getAddressDecoder()],["choice",ie()],["votingPower",getU64Decoder()],["votedAt",getI64Decoder()],["reasoning",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["delegationInfo",getOptionDecoder(qo())]])}function WPe(){return combineCodec(Ya(),Za())}var bG=i(()=>{y();});function vG(){return getStructEncoder([["proposal",getAddressEncoder()],["voter",getAddressEncoder()],["voteChoice",se()],["votingPower",getU64Encoder()],["timestamp",getI64Encoder()]])}function _G(){return getStructDecoder([["proposal",getAddressDecoder()],["voter",getAddressDecoder()],["voteChoice",ie()],["votingPower",getU64Decoder()],["timestamp",getI64Decoder()]])}function jPe(){return combineCodec(vG(),_G())}var kG=i(()=>{y();});function se(){return getEnumEncoder(ed)}function ie(){return getEnumDecoder(ed)}function ZPe(){return combineCodec(se(),ie())}var ed,OG=i(()=>{ed=(c=>(c[c.For=0]="For",c[c.Against=1]="Against",c[c.Abstain=2]="Abstain",c))(ed||{});});function LG(){return getStructEncoder([["delegator",getAddressEncoder()],["delegate",getAddressEncoder()],["proposalId",getU64Encoder()],["scope",Q()],["votingPower",getU64Encoder()],["expiresAt",getOptionEncoder(getI64Encoder())],["timestamp",getI64Encoder()]])}function WG(){return getStructDecoder([["delegator",getAddressDecoder()],["delegate",getAddressDecoder()],["proposalId",getU64Decoder()],["scope",j()],["votingPower",getU64Decoder()],["expiresAt",getOptionDecoder(getI64Decoder())],["timestamp",getI64Decoder()]])}function cRe(){return combineCodec(LG(),WG())}var KG=i(()=>{y();});function BG(){return getStructEncoder([["proposal",getAddressEncoder()],["proposalId",getU64Encoder()],["status",St()],["votesFor",getU64Encoder()],["votesAgainst",getU64Encoder()],["votesAbstain",getU64Encoder()],["participationRate",getU8Encoder()],["timestamp",getI64Encoder()]])}function HG(){return getStructDecoder([["proposal",getAddressDecoder()],["proposalId",getU64Decoder()],["status",xt()],["votesFor",getU64Decoder()],["votesAgainst",getU64Decoder()],["votesAbstain",getU64Decoder()],["participationRate",getU8Decoder()],["timestamp",getI64Decoder()]])}function mRe(){return combineCodec(BG(),HG())}var VG=i(()=>{y();});function cd(){return getStructEncoder([["votesFor",getU64Encoder()],["votesAgainst",getU64Encoder()],["votesAbstain",getU64Encoder()],["totalVotingPower",getU64Encoder()],["participationRate",getU8Encoder()],["individualVotes",getArrayEncoder(Ya())],["weightedVoting",getBooleanEncoder()],["quorumReached",getBooleanEncoder()],["approvalThresholdMet",getBooleanEncoder()]])}function sd(){return getStructDecoder([["votesFor",getU64Decoder()],["votesAgainst",getU64Decoder()],["votesAbstain",getU64Decoder()],["totalVotingPower",getU64Decoder()],["participationRate",getU8Decoder()],["individualVotes",getArrayDecoder(Za())],["weightedVoting",getBooleanDecoder()],["quorumReached",getBooleanDecoder()],["approvalThresholdMet",getBooleanDecoder()]])}function fRe(){return combineCodec(cd(),sd())}var qG=i(()=>{y();});function ZG(){return getStructEncoder([["workOrder",getAddressEncoder()],["client",getAddressEncoder()],["provider",getAddressEncoder()],["rejectionReason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requestedChanges",getOptionEncoder(getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())))],["timestamp",getI64Encoder()]])}function ez(){return getStructDecoder([["workOrder",getAddressDecoder()],["client",getAddressDecoder()],["provider",getAddressDecoder()],["rejectionReason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requestedChanges",getOptionDecoder(getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())))],["timestamp",getI64Decoder()]])}function ORe(){return combineCodec(ZG(),ez())}var tz=i(()=>{});function oz(){return getStructEncoder([["workOrder",getAddressEncoder()],["provider",getAddressEncoder()],["ipfsHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]])}function cz(){return getStructDecoder([["workOrder",getAddressDecoder()],["provider",getAddressDecoder()],["ipfsHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function VRe(){return combineCodec(oz(),cz())}var sz=i(()=>{});function iz(){return getStructEncoder([["workOrder",getAddressEncoder()],["client",getAddressEncoder()],["provider",getAddressEncoder()],["verificationNotes",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["timestamp",getI64Encoder()]])}function az(){return getStructDecoder([["workOrder",getAddressDecoder()],["client",getAddressDecoder()],["provider",getAddressDecoder()],["verificationNotes",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["timestamp",getI64Decoder()]])}function cfe(){return combineCodec(iz(),az())}var dz=i(()=>{});function uz(){return getStructEncoder([["workOrder",getAddressEncoder()],["client",getAddressEncoder()],["provider",getAddressEncoder()],["amount",getU64Encoder()],["timestamp",getI64Encoder()]])}function Az(){return getStructDecoder([["workOrder",getAddressDecoder()],["client",getAddressDecoder()],["provider",getAddressDecoder()],["amount",getU64Decoder()],["timestamp",getI64Decoder()]])}function pfe(){return combineCodec(uz(),Az())}var gz=i(()=>{});function ad(){return getEnumEncoder(id)}function dd(){return getEnumDecoder(id)}function Tfe(){return combineCodec(ad(),dd())}var id,pz=i(()=>{id=(a=>(a[a.Created=0]="Created",a[a.Open=1]="Open",a[a.Submitted=2]="Submitted",a[a.InProgress=3]="InProgress",a[a.Approved=4]="Approved",a[a.Completed=5]="Completed",a[a.Cancelled=6]="Cancelled",a))(id||{});});var y=i(()=>{GC();BC();qC();jC();YC();tD();rD();iD();uD();AD();yD();SD();RD();DD();kD();ND();KD();VD();$D();nI();aI();dI();uI();mI();xI();fI();CI();DI();MI();hI();vI();wI();GI();WI();qI();jI();$I();XI();YI();tb();sb();Ab();lb();mb();yb();Tb();xb();fb();Cb();hb();Ub();wb();Gb();Wb();Kb();Bb();$b();Zb();oM();cM();sM();AM();_g();gM();pM();lM();SM();RM();_M();kM();zM();qM();JM();QM();ZM();eh();th();rh();ih();ah();Ah();gh();ph();xh();bh();kh();wh();Lh();Wh();Kh();Bh();Qh();Zh();rv();iv();av();Av();lv();Tv();Cv();Dv();vv();zv();Kv();Vv();$v();t_();s_();i_();l_();T_();R_();D_();I_();__();k_();O_();F_();W_();Q_();j_();ek();ck();sk();dk();gk();mk();xk();fk();Ck();bk();vk();wk();Lk();Wk();Qk();Xk();rO();nO();sO();dO();uO();AO();lO();PO();MO();wO();GO();zO();qO();JO();eU();tU();rU();nU();oU();cU();sU();iU();uU();pU();EU();PU();RU();fU();vU();OU();FU();NU();GU();zU();LU();WU();KU();VU();$U();tw();ow();cw();sw();iw();aw();Aw();yw();Tw();xw();Pw();Iw();bw();Mw();hw();vw();ww();Gw();Ww();Hw();Vw();qw();tF();rF();iF();uF();SF();xF();PF();CF();bF();kF();OF();UF();wF();FF();NF();GF();WF();qF();XF();oN();cN();aN();AN();gN();pN();EN();PN();RN();fN();CN();bN();kN();VN();qN();JN();QN();ZN();eG();cG();sG();AG();yG();PG();RG();fG();CG();bG();kG();OG();KG();VG();qG();tz();sz();dz();gz();pz();});function _fe(){return fixEncoderSize(getBytesEncoder(),8).encode(Cm)}function Ez(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["owner",getAddressEncoder()],["name",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["pricingModel",Oe()],["reputationScore",getU32Encoder()],["totalJobsCompleted",getU32Encoder()],["totalEarnings",getU64Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["originalPrice",getU64Encoder()],["genomeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isReplicable",getBooleanEncoder()],["replicationFee",getU64Encoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isVerified",getBooleanEncoder()],["verificationTimestamp",getI64Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["frameworkOrigin",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["supportedTokens",getArrayEncoder(getAddressEncoder())],["cnftMint",getOptionEncoder(getAddressEncoder())],["merkleTree",getOptionEncoder(getAddressEncoder())],["supportsA2a",getBooleanEncoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["parentAgent",getOptionEncoder(getAddressEncoder())],["generation",getU32Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Cm}))}function Dm(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["owner",getAddressDecoder()],["name",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["pricingModel",Ue()],["reputationScore",getU32Decoder()],["totalJobsCompleted",getU32Decoder()],["totalEarnings",getU64Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["originalPrice",getU64Decoder()],["genomeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isReplicable",getBooleanDecoder()],["replicationFee",getU64Decoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isVerified",getBooleanDecoder()],["verificationTimestamp",getI64Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["frameworkOrigin",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["supportedTokens",getArrayDecoder(getAddressDecoder())],["cnftMint",getOptionDecoder(getAddressDecoder())],["merkleTree",getOptionDecoder(getAddressDecoder())],["supportsA2a",getBooleanDecoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["parentAgent",getOptionDecoder(getAddressDecoder())],["generation",getU32Decoder()],["bump",getU8Decoder()]])}function kfe(){return combineCodec(Ez(),Dm())}function Im(e){return decodeAccount(e,Dm())}async function Ofe(e,n,r){let c=await Sz(e,n,r);return assertAccountExists(c),c}async function Sz(e,n,r){let c=await fetchEncodedAccount(e,n,r);return Im(c)}async function Ufe(e,n,r){let c=await xz(e,n,r);return assertAccountsExist(c),c}async function xz(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>Im(t))}var Cm,Pz=i(()=>{y();Cm=new Uint8Array([47,166,112,147,155,197,86,7]);});function rCe(){return fixEncoderSize(getBytesEncoder(),8).encode(bm)}function Cz(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["referralsCount",getU32Encoder()],["referralEarnings",getU64Encoder()],["performanceScore",getF64Encoder()],["performanceEarnings",getU64Encoder()],["loyaltyPoints",getU64Encoder()],["totalEarnings",getU64Encoder()],["lastActivity",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:bm}))}function Mm(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["referralsCount",getU32Decoder()],["referralEarnings",getU64Decoder()],["performanceScore",getF64Decoder()],["performanceEarnings",getU64Decoder()],["loyaltyPoints",getU64Decoder()],["totalEarnings",getU64Decoder()],["lastActivity",getI64Decoder()],["bump",getU8Decoder()]])}function nCe(){return combineCodec(Cz(),Mm())}function hm(e){return decodeAccount(e,Mm())}async function oCe(e,n,r){let c=await Dz(e,n,r);return assertAccountExists(c),c}async function Dz(e,n,r){let c=await fetchEncodedAccount(e,n,r);return hm(c)}async function cCe(e,n,r){let c=await Iz(e,n,r);return assertAccountsExist(c),c}async function Iz(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>hm(t))}function sCe(){return 93}var bm,bz=i(()=>{bm=new Uint8Array([167,87,249,0,146,197,209,158]);});function RCe(){return fixEncoderSize(getBytesEncoder(),8).encode(vm)}function kz(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["treeCreator",getAddressEncoder()],["treeDelegate",getAddressEncoder()],["numMinted",getU64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:vm}))}function _m(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["treeCreator",getAddressDecoder()],["treeDelegate",getAddressDecoder()],["numMinted",getU64Decoder()],["bump",getU8Decoder()]])}function fCe(){return combineCodec(kz(),_m())}function km(e){return decodeAccount(e,_m())}async function CCe(e,n,r){let c=await Oz(e,n,r);return assertAccountExists(c),c}async function Oz(e,n,r){let c=await fetchEncodedAccount(e,n,r);return km(c)}async function DCe(e,n,r){let c=await Uz(e,n,r);return assertAccountsExist(c),c}async function Uz(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>km(t))}function ICe(){return 81}var vm,wz=i(()=>{vm=new Uint8Array([145,145,156,0,197,232,130,245]);});function KCe(){return fixEncoderSize(getBytesEncoder(),8).encode(Om)}function Kz(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["verifier",getAddressEncoder()],["verificationData",pn()],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["isActive",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Om}))}function Um(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["verifier",getAddressDecoder()],["verificationData",ln()],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["isActive",getBooleanDecoder()],["bump",getU8Decoder()]])}function BCe(){return combineCodec(Kz(),Um())}function wm(e){return decodeAccount(e,Um())}async function HCe(e,n,r){let c=await Bz(e,n,r);return assertAccountExists(c),c}async function Bz(e,n,r){let c=await fetchEncodedAccount(e,n,r);return wm(c)}async function VCe(e,n,r){let c=await Hz(e,n,r);return assertAccountsExist(c),c}async function Hz(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>wm(t))}var Om,Vz=i(()=>{y();Om=new Uint8Array([128,155,95,241,66,207,166,59]);});function pDe(){return fixEncoderSize(getBytesEncoder(),8).encode(Gm)}function Yz(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["dashboardId",getU64Encoder()],["owner",getAddressEncoder()],["authority",getAddressEncoder()],["programId",getAddressEncoder()],["metrics",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["networkMetrics",ts()],["marketplaceMetrics",Hc()],["economicMetrics",rc()],["metricSamples",getArrayEncoder(Qc())],["agentPerformance",getArrayEncoder(An())],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Gm}))}function zm(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["dashboardId",getU64Decoder()],["owner",getAddressDecoder()],["authority",getAddressDecoder()],["programId",getAddressDecoder()],["metrics",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["networkMetrics",rs()],["marketplaceMetrics",Vc()],["economicMetrics",nc()],["metricSamples",getArrayDecoder(jc())],["agentPerformance",getArrayDecoder(gn())],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function lDe(){return combineCodec(Yz(),zm())}function Lm(e){return decodeAccount(e,zm())}async function mDe(e,n,r){let c=await Zz(e,n,r);return assertAccountExists(c),c}async function Zz(e,n,r){let c=await fetchEncodedAccount(e,n,r);return Lm(c)}async function yDe(e,n,r){let c=await e8(e,n,r);return assertAccountsExist(c),c}async function e8(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>Lm(t))}var Gm,t8=i(()=>{y();Gm=new Uint8Array([50,162,197,10,93,40,12,147]);});function kDe(){return fixEncoderSize(getBytesEncoder(),8).encode(Wm)}function a8(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["authorizedArbitrators",getArrayEncoder(getAddressEncoder())],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Wm}))}function Km(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["authorizedArbitrators",getArrayDecoder(getAddressDecoder())],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function ODe(){return combineCodec(a8(),Km())}function Bm(e){return decodeAccount(e,Km())}async function UDe(e,n,r){let c=await d8(e,n,r);return assertAccountExists(c),c}async function d8(e,n,r){let c=await fetchEncodedAccount(e,n,r);return Bm(c)}async function wDe(e,n,r){let c=await u8(e,n,r);return assertAccountsExist(c),c}async function u8(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>Bm(t))}var Wm,A8=i(()=>{Wm=new Uint8Array([252,241,152,150,74,0,119,175]);});function ZDe(){return fixEncoderSize(getBytesEncoder(),8).encode(Hm)}function E8(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["auction",getAddressEncoder()],["agent",getAddressEncoder()],["creator",getAddressEncoder()],["auctionType",L()],["startingPrice",getU64Encoder()],["reservePrice",getU64Encoder()],["isReserveHidden",getBooleanEncoder()],["reserveMet",getBooleanEncoder()],["currentPrice",getU64Encoder()],["currentWinner",getOptionEncoder(getAddressEncoder())],["winner",getOptionEncoder(getAddressEncoder())],["auctionEndTime",getI64Encoder()],["minimumBidIncrement",getU64Encoder()],["totalBids",getU32Encoder()],["status",hn()],["bids",getArrayEncoder(In())],["createdAt",getI64Encoder()],["endedAt",getOptionEncoder(getI64Encoder())],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["dutchConfig",getOptionEncoder(je())],["extensionCount",getU8Encoder()],["originalEndTime",getI64Encoder()],["reservePriceLocked",getBooleanEncoder()],["reserveShortfallNotified",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Hm}))}function Vm(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["auction",getAddressDecoder()],["agent",getAddressDecoder()],["creator",getAddressDecoder()],["auctionType",W()],["startingPrice",getU64Decoder()],["reservePrice",getU64Decoder()],["isReserveHidden",getBooleanDecoder()],["reserveMet",getBooleanDecoder()],["currentPrice",getU64Decoder()],["currentWinner",getOptionDecoder(getAddressDecoder())],["winner",getOptionDecoder(getAddressDecoder())],["auctionEndTime",getI64Decoder()],["minimumBidIncrement",getU64Decoder()],["totalBids",getU32Decoder()],["status",vn()],["bids",getArrayDecoder(bn())],["createdAt",getI64Decoder()],["endedAt",getOptionDecoder(getI64Decoder())],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["dutchConfig",getOptionDecoder($e())],["extensionCount",getU8Decoder()],["originalEndTime",getI64Decoder()],["reservePriceLocked",getBooleanDecoder()],["reserveShortfallNotified",getBooleanDecoder()],["bump",getU8Decoder()]])}function eIe(){return combineCodec(E8(),Vm())}function qm(e){return decodeAccount(e,Vm())}async function tIe(e,n,r){let c=await S8(e,n,r);return assertAccountExists(c),c}async function S8(e,n,r){let c=await fetchEncodedAccount(e,n,r);return qm(c)}async function rIe(e,n,r){let c=await x8(e,n,r);return assertAccountsExist(c),c}async function x8(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>qm(t))}var Hm,P8=i(()=>{y();Hm=new Uint8Array([163,174,175,5,237,55,21,230]);});function EIe(){return fixEncoderSize(getBytesEncoder(),8).encode(jm)}function I8(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["trailId",getU64Encoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["version",getU8Encoder()],["entries",getArrayEncoder(Nn())],["config",ze()],["complianceStatus",Ve()],["hashChain",getArrayEncoder(fixEncoderSize(getBytesEncoder(),32))],["reserved",fixEncoderSize(getBytesEncoder(),128)]]),e=>({...e,discriminator:jm}))}function $m(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["trailId",getU64Decoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["version",getU8Decoder()],["entries",getArrayDecoder(Gn())],["config",Le()],["complianceStatus",qe()],["hashChain",getArrayDecoder(fixDecoderSize(getBytesDecoder(),32))],["reserved",fixDecoderSize(getBytesDecoder(),128)]])}function SIe(){return combineCodec(I8(),$m())}function Xm(e){return decodeAccount(e,$m())}async function xIe(e,n,r){let c=await b8(e,n,r);return assertAccountExists(c),c}async function b8(e,n,r){let c=await fetchEncodedAccount(e,n,r);return Xm(c)}async function PIe(e,n,r){let c=await M8(e,n,r);return assertAccountsExist(c),c}async function M8(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>Xm(t))}var jm,h8=i(()=>{y();jm=new Uint8Array([171,223,253,181,134,88,66,26]);});function VIe(){return fixEncoderSize(getBytesEncoder(),8).encode(ey)}function F8(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["dealId",getU64Encoder()],["agent",getAddressEncoder()],["customer",getAddressEncoder()],["dealType",K()],["totalVolume",getU32Encoder()],["totalValue",getU64Encoder()],["discountPercentage",getF64Encoder()],["volumeTiers",getArrayEncoder(ht())],["slaTerms",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["contractDuration",getI64Encoder()],["startDate",getI64Encoder()],["endDate",getI64Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["executedVolume",getU32Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:ey}))}function ty(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["dealId",getU64Decoder()],["agent",getAddressDecoder()],["customer",getAddressDecoder()],["dealType",B()],["totalVolume",getU32Decoder()],["totalValue",getU64Decoder()],["discountPercentage",getF64Decoder()],["volumeTiers",getArrayDecoder(vt())],["slaTerms",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["contractDuration",getI64Decoder()],["startDate",getI64Decoder()],["endDate",getI64Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["executedVolume",getU32Decoder()],["bump",getU8Decoder()]])}function qIe(){return combineCodec(F8(),ty())}function ry(e){return decodeAccount(e,ty())}async function JIe(e,n,r){let c=await N8(e,n,r);return assertAccountExists(c),c}async function N8(e,n,r){let c=await fetchEncodedAccount(e,n,r);return ry(c)}async function QIe(e,n,r){let c=await G8(e,n,r);return assertAccountsExist(c),c}async function G8(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>ry(t))}var ey,z8=i(()=>{y();ey=new Uint8Array([80,240,220,203,97,75,125,183]);});function gbe(){return fixEncoderSize(getBytesEncoder(),8).encode(ny)}function Q8(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["creator",getAddressEncoder()],["participants",getArrayEncoder(getAddressEncoder())],["channelType",_()],["isPrivate",getBooleanEncoder()],["messageCount",getU64Encoder()],["createdAt",getI64Encoder()],["lastActivity",getI64Encoder()],["isActive",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:ny}))}function oy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["creator",getAddressDecoder()],["participants",getArrayDecoder(getAddressDecoder())],["channelType",k()],["isPrivate",getBooleanDecoder()],["messageCount",getU64Decoder()],["createdAt",getI64Decoder()],["lastActivity",getI64Decoder()],["isActive",getBooleanDecoder()],["bump",getU8Decoder()]])}function pbe(){return combineCodec(Q8(),oy())}function cy(e){return decodeAccount(e,oy())}async function lbe(e,n,r){let c=await j8(e,n,r);return assertAccountExists(c),c}async function j8(e,n,r){let c=await fetchEncodedAccount(e,n,r);return cy(c)}async function mbe(e,n,r){let c=await $8(e,n,r);return assertAccountsExist(c),c}async function $8(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>cy(t))}var ny,X8=i(()=>{y();ny=new Uint8Array([49,159,99,106,220,87,219,88]);});function hbe(){return fixEncoderSize(getBytesEncoder(),8).encode(uy)}function Y8(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reportId",getU64Encoder()],["reportType",q()],["generatedAt",getI64Encoder()],["periodStart",getI64Encoder()],["periodEnd",getI64Encoder()],["reportData",_i()],["signature",fixEncoderSize(getBytesEncoder(),64)],["status",zi()],["submissionDetails",getOptionEncoder(Fa())],["reserved",fixEncoderSize(getBytesEncoder(),64)]]),e=>({...e,discriminator:uy}))}function Ay(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reportId",getU64Decoder()],["reportType",J()],["generatedAt",getI64Decoder()],["periodStart",getI64Decoder()],["periodEnd",getI64Decoder()],["reportData",ki()],["signature",fixDecoderSize(getBytesDecoder(),64)],["status",Li()],["submissionDetails",getOptionDecoder(Na())],["reserved",fixDecoderSize(getBytesDecoder(),64)]])}function vbe(){return combineCodec(Y8(),Ay())}function gy(e){return decodeAccount(e,Ay())}async function _be(e,n,r){let c=await Z8(e,n,r);return assertAccountExists(c),c}async function Z8(e,n,r){let c=await fetchEncodedAccount(e,n,r);return gy(c)}async function kbe(e,n,r){let c=await eL(e,n,r);return assertAccountsExist(c),c}async function eL(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>gy(t))}var uy,tL=i(()=>{y();uy=new Uint8Array([75,146,78,26,130,240,228,35]);});function Ybe(){return fixEncoderSize(getBytesEncoder(),8).encode(my)}function gL(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["transaction",getAddressEncoder()],["complainant",getAddressEncoder()],["respondent",getAddressEncoder()],["moderator",getOptionEncoder(getAddressEncoder())],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["status",Xo()],["evidence",getArrayEncoder(Qo())],["resolution",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["aiScore",getF32Encoder()],["humanReview",getBooleanEncoder()],["createdAt",getI64Encoder()],["resolvedAt",getOptionEncoder(getI64Encoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:my}))}function yy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["transaction",getAddressDecoder()],["complainant",getAddressDecoder()],["respondent",getAddressDecoder()],["moderator",getOptionDecoder(getAddressDecoder())],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["status",Yo()],["evidence",getArrayDecoder(jo())],["resolution",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["aiScore",getF32Decoder()],["humanReview",getBooleanDecoder()],["createdAt",getI64Decoder()],["resolvedAt",getOptionDecoder(getI64Decoder())],["bump",getU8Decoder()]])}function Zbe(){return combineCodec(gL(),yy())}function Ty(e){return decodeAccount(e,yy())}async function eMe(e,n,r){let c=await pL(e,n,r);return assertAccountExists(c),c}async function pL(e,n,r){let c=await fetchEncodedAccount(e,n,r);return Ty(c)}async function tMe(e,n,r){let c=await lL(e,n,r);return assertAccountsExist(c),c}async function lL(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>Ty(t))}var my,mL=i(()=>{y();my=new Uint8Array([164,200,54,239,94,76,51,130]);});function PMe(){return fixEncoderSize(getBytesEncoder(),8).encode(Ey)}function xL(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["engineId",getU64Encoder()],["agent",getAddressEncoder()],["algorithm",Xe()],["config",Y()],["currentPrice",getU64Encoder()],["lastUpdated",getI64Encoder()],["isActive",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Ey}))}function Sy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["engineId",getU64Decoder()],["agent",getAddressDecoder()],["algorithm",Ye()],["config",Z()],["currentPrice",getU64Decoder()],["lastUpdated",getI64Decoder()],["isActive",getBooleanDecoder()],["bump",getU8Decoder()]])}function RMe(){return combineCodec(xL(),Sy())}function xy(e){return decodeAccount(e,Sy())}async function fMe(e,n,r){let c=await PL(e,n,r);return assertAccountExists(c),c}async function PL(e,n,r){let c=await fetchEncodedAccount(e,n,r);return xy(c)}async function CMe(e,n,r){let c=await RL(e,n,r);return assertAccountsExist(c),c}async function RL(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>xy(t))}var Ey,fL=i(()=>{y();Ey=new Uint8Array([213,106,173,92,14,72,162,175]);});function KMe(){return fixEncoderSize(getBytesEncoder(),8).encode(hy)}function ML(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["client",getAddressEncoder()],["agent",getAddressEncoder()],["taskId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["status",gc()],["createdAt",getI64Encoder()],["expiresAt",getI64Encoder()],["disputeReason",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["resolutionNotes",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["paymentToken",getAddressEncoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["isConfidential",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:hy}))}function vy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["client",getAddressDecoder()],["agent",getAddressDecoder()],["taskId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["status",pc()],["createdAt",getI64Decoder()],["expiresAt",getI64Decoder()],["disputeReason",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["resolutionNotes",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["paymentToken",getAddressDecoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["isConfidential",getBooleanDecoder()],["bump",getU8Decoder()]])}function BMe(){return combineCodec(ML(),vy())}function _y(e){return decodeAccount(e,vy())}async function HMe(e,n,r){let c=await hL(e,n,r);return assertAccountExists(c),c}async function hL(e,n,r){let c=await fetchEncodedAccount(e,n,r);return _y(c)}async function VMe(e,n,r){let c=await vL(e,n,r);return assertAccountsExist(c),c}async function vL(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>_y(t))}var hy,_L=i(()=>{y();hy=new Uint8Array([31,213,123,187,186,22,218,155]);});function phe(){return fixEncoderSize(getBytesEncoder(),8).encode(ky)}function LL(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["extension",getAddressEncoder()],["developer",getAddressEncoder()],["extensionType",re()],["status",Sc()],["metadata",it()],["codeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["installCount",getU32Encoder()],["rating",getF64Encoder()],["revenueShare",getF64Encoder()],["totalEarnings",getU64Encoder()],["createdAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:ky}))}function Oy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["extension",getAddressDecoder()],["developer",getAddressDecoder()],["extensionType",ne()],["status",xc()],["metadata",at()],["codeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["installCount",getU32Decoder()],["rating",getF64Decoder()],["revenueShare",getF64Decoder()],["totalEarnings",getU64Decoder()],["createdAt",getI64Decoder()],["bump",getU8Decoder()]])}function lhe(){return combineCodec(LL(),Oy())}function Uy(e){return decodeAccount(e,Oy())}async function mhe(e,n,r){let c=await WL(e,n,r);return assertAccountExists(c),c}async function WL(e,n,r){let c=await fetchEncodedAccount(e,n,r);return Uy(c)}async function yhe(e,n,r){let c=await KL(e,n,r);return assertAccountsExist(c),c}async function KL(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>Uy(t))}var ky,BL=i(()=>{y();ky=new Uint8Array([141,183,126,42,23,237,11,5]);});function khe(){return fixEncoderSize(getBytesEncoder(),8).encode(Ny)}function YL(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["proposalId",getU64Encoder()],["proposer",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposalType",$()],["createdAt",getI64Encoder()],["votingStartsAt",getI64Encoder()],["votingEndsAt",getI64Encoder()],["executionTimestamp",getOptionEncoder(getI64Encoder())],["status",St()],["votingResults",cd()],["executionParams",ct()],["quorumRequirements",Ii()],["metadata",yi()],["reserved",fixEncoderSize(getBytesEncoder(),64)]]),e=>({...e,discriminator:Ny}))}function Gy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["proposalId",getU64Decoder()],["proposer",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposalType",X()],["createdAt",getI64Decoder()],["votingStartsAt",getI64Decoder()],["votingEndsAt",getI64Decoder()],["executionTimestamp",getOptionDecoder(getI64Decoder())],["status",xt()],["votingResults",sd()],["executionParams",st()],["quorumRequirements",bi()],["metadata",Ti()],["reserved",fixDecoderSize(getBytesDecoder(),64)]])}function Ohe(){return combineCodec(YL(),Gy())}function zy(e){return decodeAccount(e,Gy())}async function Uhe(e,n,r){let c=await ZL(e,n,r);return assertAccountExists(c),c}async function ZL(e,n,r){let c=await fetchEncodedAccount(e,n,r);return zy(c)}async function whe(e,n,r){let c=await eW(e,n,r);return assertAccountsExist(c),c}async function eW(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>zy(t))}var Ny,tW=i(()=>{y();Ny=new Uint8Array([53,107,240,190,43,73,65,143]);});function tve(){return fixEncoderSize(getBytesEncoder(),8).encode(Ly)}function sW(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["owner",getAddressEncoder()],["config",dt()],["totalRewardsDistributed",getU64Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Ly}))}function Wy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["owner",getAddressDecoder()],["config",ut()],["totalRewardsDistributed",getU64Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function rve(){return combineCodec(sW(),Wy())}function Ky(e){return decodeAccount(e,Wy())}async function nve(e,n,r){let c=await iW(e,n,r);return assertAccountExists(c),c}async function iW(e,n,r){let c=await fetchEncodedAccount(e,n,r);return Ky(c)}async function ove(e,n,r){let c=await aW(e,n,r);return assertAccountsExist(c),c}async function aW(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>Ky(t))}function cve(){return 98}var Ly,dW=i(()=>{y();Ly=new Uint8Array([148,35,75,198,179,216,77,84]);});function fve(){return fixEncoderSize(getBytesEncoder(),8).encode(Vy)}function xW(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["jobPosting",getAddressEncoder()],["agent",getAddressEncoder()],["agentOwner",getAddressEncoder()],["coverLetter",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposedRate",getU64Encoder()],["estimatedDelivery",getI64Encoder()],["portfolioItems",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["status",xn()],["appliedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:Vy}))}function qy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["jobPosting",getAddressDecoder()],["agent",getAddressDecoder()],["agentOwner",getAddressDecoder()],["coverLetter",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposedRate",getU64Decoder()],["estimatedDelivery",getI64Decoder()],["portfolioItems",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["status",Pn()],["appliedAt",getI64Decoder()],["bump",getU8Decoder()]])}function Cve(){return combineCodec(xW(),qy())}function Jy(e){return decodeAccount(e,qy())}async function Dve(e,n,r){let c=await PW(e,n,r);return assertAccountExists(c),c}async function PW(e,n,r){let c=await fetchEncodedAccount(e,n,r);return Jy(c)}async function Ive(e,n,r){let c=await RW(e,n,r);return assertAccountsExist(c),c}async function RW(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>Jy(t))}var Vy,fW=i(()=>{y();Vy=new Uint8Array([114,250,212,242,162,108,58,20]);});function Kve(){return fixEncoderSize(getBytesEncoder(),8).encode($y)}function IW(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["jobPosting",getAddressEncoder()],["application",getAddressEncoder()],["employer",getAddressEncoder()],["agent",getAddressEncoder()],["agreedRate",getU64Encoder()],["deadline",getI64Encoder()],["paymentToken",getAddressEncoder()],["status",Fo()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:$y}))}function Xy(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["jobPosting",getAddressDecoder()],["application",getAddressDecoder()],["employer",getAddressDecoder()],["agent",getAddressDecoder()],["agreedRate",getU64Decoder()],["deadline",getI64Decoder()],["paymentToken",getAddressDecoder()],["status",No()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function Bve(){return combineCodec(IW(),Xy())}function Yy(e){return decodeAccount(e,Xy())}async function Hve(e,n,r){let c=await bW(e,n,r);return assertAccountExists(c),c}async function bW(e,n,r){let c=await fetchEncodedAccount(e,n,r);return Yy(c)}async function Vve(e,n,r){let c=await MW(e,n,r);return assertAccountsExist(c),c}async function MW(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>Yy(t))}function qve(){return 202}var $y,hW=i(()=>{y();$y=new Uint8Array([147,204,137,108,97,90,113,28]);});function a_e(){return fixEncoderSize(getBytesEncoder(),8).encode(n1)}function FW(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["employer",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["budget",getU64Encoder()],["deadline",getI64Encoder()],["skillsNeeded",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["budgetMin",getU64Encoder()],["budgetMax",getU64Encoder()],["paymentToken",getAddressEncoder()],["jobType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["experienceLevel",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()],["applicationsCount",getU32Encoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:n1}))}function o1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["employer",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["budget",getU64Decoder()],["deadline",getI64Decoder()],["skillsNeeded",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["budgetMin",getU64Decoder()],["budgetMax",getU64Decoder()],["paymentToken",getAddressDecoder()],["jobType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["experienceLevel",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()],["applicationsCount",getU32Decoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["bump",getU8Decoder()]])}function d_e(){return combineCodec(FW(),o1())}function c1(e){return decodeAccount(e,o1())}async function u_e(e,n,r){let c=await NW(e,n,r);return assertAccountExists(c),c}async function NW(e,n,r){let c=await fetchEncodedAccount(e,n,r);return c1(c)}async function A_e(e,n,r){let c=await GW(e,n,r);return assertAccountsExist(c),c}async function GW(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>c1(t))}var n1,zW=i(()=>{n1=new Uint8Array([204,119,64,204,100,12,26,127]);});function h_e(){return fixEncoderSize(getBytesEncoder(),8).encode(s1)}function QW(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["periodStart",getI64Encoder()],["periodEnd",getI64Encoder()],["totalVolume",getU64Encoder()],["totalTransactions",getU64Encoder()],["averagePrice",getU64Encoder()],["activeAgents",getU32Encoder()],["priceVolatility",getU32Encoder()],["demandTrend",getI32Encoder()],["supplyTrend",getI32Encoder()],["marketCap",getU64Encoder()],["topAgents",getArrayEncoder(getAddressEncoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:s1}))}function i1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["periodStart",getI64Decoder()],["periodEnd",getI64Decoder()],["totalVolume",getU64Decoder()],["totalTransactions",getU64Decoder()],["averagePrice",getU64Decoder()],["activeAgents",getU32Decoder()],["priceVolatility",getU32Decoder()],["demandTrend",getI32Decoder()],["supplyTrend",getI32Decoder()],["marketCap",getU64Decoder()],["topAgents",getArrayDecoder(getAddressDecoder())],["bump",getU8Decoder()]])}function v_e(){return combineCodec(QW(),i1())}function a1(e){return decodeAccount(e,i1())}async function __e(e,n,r){let c=await jW(e,n,r);return assertAccountExists(c),c}async function jW(e,n,r){let c=await fetchEncodedAccount(e,n,r);return a1(c)}async function k_e(e,n,r){let c=await $W(e,n,r);return assertAccountsExist(c),c}async function $W(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>a1(t))}var s1,XW=i(()=>{s1=new Uint8Array([198,187,239,13,141,42,92,67]);});function rke(){return fixEncoderSize(getBytesEncoder(),8).encode(d1)}function rK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["channel",getAddressEncoder()],["sender",getAddressEncoder()],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",O()],["timestamp",getI64Encoder()],["isEncrypted",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:d1}))}function u1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["channel",getAddressDecoder()],["sender",getAddressDecoder()],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",U()],["timestamp",getI64Decoder()],["isEncrypted",getBooleanDecoder()],["bump",getU8Decoder()]])}function nke(){return combineCodec(rK(),u1())}function A1(e){return decodeAccount(e,u1())}async function oke(e,n,r){let c=await nK(e,n,r);return assertAccountExists(c),c}async function nK(e,n,r){let c=await fetchEncodedAccount(e,n,r);return A1(c)}async function cke(e,n,r){let c=await oK(e,n,r);return assertAccountsExist(c),c}async function oK(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>A1(t))}var d1,cK=i(()=>{y();d1=new Uint8Array([110,151,23,110,198,6,125,181]);});function Tke(){return fixEncoderSize(getBytesEncoder(),8).encode(l1)}function yK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["multisigId",getU64Encoder()],["threshold",getU8Encoder()],["signers",getArrayEncoder(getAddressEncoder())],["owner",getAddressEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["nonce",getU64Encoder()],["pendingTransactions",getArrayEncoder(fs())],["config",oe()],["emergencyConfig",sc()],["reserved",fixEncoderSize(getBytesEncoder(),128)]]),e=>({...e,discriminator:l1}))}function m1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["multisigId",getU64Decoder()],["threshold",getU8Decoder()],["signers",getArrayDecoder(getAddressDecoder())],["owner",getAddressDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["nonce",getU64Decoder()],["pendingTransactions",getArrayDecoder(Cs())],["config",ce()],["emergencyConfig",ic()],["reserved",fixDecoderSize(getBytesDecoder(),128)]])}function Eke(){return combineCodec(yK(),m1())}function y1(e){return decodeAccount(e,m1())}async function Ske(e,n,r){let c=await TK(e,n,r);return assertAccountExists(c),c}async function TK(e,n,r){let c=await fetchEncodedAccount(e,n,r);return y1(c)}async function xke(e,n,r){let c=await EK(e,n,r);return assertAccountsExist(c),c}async function EK(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>y1(t))}var l1,SK=i(()=>{y();l1=new Uint8Array([224,116,121,186,68,161,79,236]);});function Lke(){return fixEncoderSize(getBytesEncoder(),8).encode(S1)}function IK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["initiator",getAddressEncoder()],["counterparty",getAddressEncoder()],["initialOffer",getU64Encoder()],["currentOffer",getU64Encoder()],["status",Zc()],["negotiationDeadline",getI64Encoder()],["terms",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["counterOffers",getArrayEncoder(getU64Encoder())],["autoAcceptThreshold",getU64Encoder()],["createdAt",getI64Encoder()],["lastActivity",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:S1}))}function x1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["initiator",getAddressDecoder()],["counterparty",getAddressDecoder()],["initialOffer",getU64Decoder()],["currentOffer",getU64Decoder()],["status",es()],["negotiationDeadline",getI64Decoder()],["terms",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["counterOffers",getArrayDecoder(getU64Decoder())],["autoAcceptThreshold",getU64Decoder()],["createdAt",getI64Decoder()],["lastActivity",getI64Decoder()],["bump",getU8Decoder()]])}function Wke(){return combineCodec(IK(),x1())}function P1(e){return decodeAccount(e,x1())}async function Kke(e,n,r){let c=await bK(e,n,r);return assertAccountExists(c),c}async function bK(e,n,r){let c=await fetchEncodedAccount(e,n,r);return P1(c)}async function Bke(e,n,r){let c=await MK(e,n,r);return assertAccountsExist(c),c}async function MK(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>P1(t))}var S1,hK=i(()=>{y();S1=new Uint8Array([236,199,221,210,158,112,204,255]);});function dOe(){return fixEncoderSize(getBytesEncoder(),8).encode(R1)}function UK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["workOrder",getAddressEncoder()],["payer",getAddressEncoder()],["recipient",getAddressEncoder()],["amount",getU64Encoder()],["tokenMint",getAddressEncoder()],["isConfidential",getBooleanEncoder()],["paidAt",getI64Encoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["transferFeeApplied",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:R1}))}function f1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["workOrder",getAddressDecoder()],["payer",getAddressDecoder()],["recipient",getAddressDecoder()],["amount",getU64Decoder()],["tokenMint",getAddressDecoder()],["isConfidential",getBooleanDecoder()],["paidAt",getI64Decoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["transferFeeApplied",getBooleanDecoder()],["bump",getU8Decoder()]])}function uOe(){return combineCodec(UK(),f1())}function C1(e){return decodeAccount(e,f1())}async function AOe(e,n,r){let c=await wK(e,n,r);return assertAccountExists(c),c}async function wK(e,n,r){let c=await fetchEncodedAccount(e,n,r);return C1(c)}async function gOe(e,n,r){let c=await FK(e,n,r);return assertAccountsExist(c),c}async function FK(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>C1(t))}var R1,NK=i(()=>{R1=new Uint8Array([227,231,51,26,244,88,4,148]);});function IOe(){return fixEncoderSize(getBytesEncoder(),8).encode(h1)}function KK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["authority",getAddressEncoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["version",getU8Encoder()],["roles",getArrayEncoder(Dt())],["permissions",getArrayEncoder(Ns())],["accessPolicies",getArrayEncoder(Lr())],["securityPolicies",Ma()],["auditConfig",Gr()],["emergencyAccess",oc()],["reserved",fixEncoderSize(getBytesEncoder(),128)]]),e=>({...e,discriminator:h1}))}function v1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["authority",getAddressDecoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["version",getU8Decoder()],["roles",getArrayDecoder(It())],["permissions",getArrayDecoder(Gs())],["accessPolicies",getArrayDecoder(Wr())],["securityPolicies",ha()],["auditConfig",zr()],["emergencyAccess",cc()],["reserved",fixDecoderSize(getBytesDecoder(),128)]])}function bOe(){return combineCodec(KK(),v1())}function _1(e){return decodeAccount(e,v1())}async function MOe(e,n,r){let c=await BK(e,n,r);return assertAccountExists(c),c}async function BK(e,n,r){let c=await fetchEncodedAccount(e,n,r);return _1(c)}async function hOe(e,n,r){let c=await HK(e,n,r);return assertAccountsExist(c),c}async function HK(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>_1(t))}var h1,VK=i(()=>{y();h1=new Uint8Array([177,94,184,202,221,112,110,38]);});function jOe(){return fixEncoderSize(getBytesEncoder(),8).encode(k1)}function QK(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["state",hi()],["nonce",getU64Encoder()],["lastInteraction",getI64Encoder()],["authority",getAddressEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:k1}))}function O1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["state",vi()],["nonce",getU64Decoder()],["lastInteraction",getI64Decoder()],["authority",getAddressDecoder()],["bump",getU8Decoder()]])}function $Oe(){return combineCodec(QK(),O1())}function U1(e){return decodeAccount(e,O1())}async function XOe(e,n,r){let c=await jK(e,n,r);return assertAccountExists(c),c}async function jK(e,n,r){let c=await fetchEncodedAccount(e,n,r);return U1(c)}async function YOe(e,n,r){let c=await $K(e,n,r);return assertAccountsExist(c),c}async function $K(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>U1(t))}function ZOe(){return 58}var k1,XK=i(()=>{y();k1=new Uint8Array([207,227,141,11,194,21,193,32]);});function TUe(){return fixEncoderSize(getBytesEncoder(),8).encode(w1)}function r2(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["recordId",getU64Encoder()],["originalAgent",getAddressEncoder()],["replicatedAgent",getAddressEncoder()],["replicator",getAddressEncoder()],["feePaid",getU64Encoder()],["replicatedAt",getI64Encoder()],["cnftMint",getOptionEncoder(getAddressEncoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:w1}))}function F1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["recordId",getU64Decoder()],["originalAgent",getAddressDecoder()],["replicatedAgent",getAddressDecoder()],["replicator",getAddressDecoder()],["feePaid",getU64Decoder()],["replicatedAt",getI64Decoder()],["cnftMint",getOptionDecoder(getAddressDecoder())],["bump",getU8Decoder()]])}function EUe(){return combineCodec(r2(),F1())}function N1(e){return decodeAccount(e,F1())}async function SUe(e,n,r){let c=await n2(e,n,r);return assertAccountExists(c),c}async function n2(e,n,r){let c=await fetchEncodedAccount(e,n,r);return N1(c)}async function xUe(e,n,r){let c=await o2(e,n,r);return assertAccountsExist(c),c}async function o2(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>N1(t))}var w1,c2=i(()=>{w1=new Uint8Array([243,98,232,67,71,49,173,6]);});function KUe(){return fixEncoderSize(getBytesEncoder(),8).encode(K1)}function u2(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["sourceAgent",getAddressEncoder()],["creator",getAddressEncoder()],["genomeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["baseCapabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["replicationFee",getU64Encoder()],["maxReplications",getU32Encoder()],["currentReplications",getU32Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["cnftAssetId",getOptionEncoder(getAddressEncoder())],["merkleTree",getOptionEncoder(getAddressEncoder())],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:K1}))}function B1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["sourceAgent",getAddressDecoder()],["creator",getAddressDecoder()],["genomeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["baseCapabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["replicationFee",getU64Decoder()],["maxReplications",getU32Decoder()],["currentReplications",getU32Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["cnftAssetId",getOptionDecoder(getAddressDecoder())],["merkleTree",getOptionDecoder(getAddressDecoder())],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["bump",getU8Decoder()]])}function BUe(){return combineCodec(u2(),B1())}function H1(e){return decodeAccount(e,B1())}async function HUe(e,n,r){let c=await A2(e,n,r);return assertAccountExists(c),c}async function A2(e,n,r){let c=await fetchEncodedAccount(e,n,r);return H1(c)}async function VUe(e,n,r){let c=await g2(e,n,r);return assertAccountsExist(c),c}async function g2(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>H1(t))}var K1,p2=i(()=>{K1=new Uint8Array([219,78,120,167,202,67,57,204]);});function Awe(){return fixEncoderSize(getBytesEncoder(),8).encode(J1)}function x2(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["seller",getAddressEncoder()],["price",getU64Encoder()],["royaltyPercentage",getU32Encoder()],["isListed",getBooleanEncoder()],["createdAt",getI64Encoder()],["soldAt",getOptionEncoder(getI64Encoder())],["buyer",getOptionEncoder(getAddressEncoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:J1}))}function Q1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["seller",getAddressDecoder()],["price",getU64Decoder()],["royaltyPercentage",getU32Decoder()],["isListed",getBooleanDecoder()],["createdAt",getI64Decoder()],["soldAt",getOptionDecoder(getI64Decoder())],["buyer",getOptionDecoder(getAddressDecoder())],["bump",getU8Decoder()]])}function gwe(){return combineCodec(x2(),Q1())}function j1(e){return decodeAccount(e,Q1())}async function pwe(e,n,r){let c=await P2(e,n,r);return assertAccountExists(c),c}async function P2(e,n,r){let c=await fetchEncodedAccount(e,n,r);return j1(c)}async function lwe(e,n,r){let c=await R2(e,n,r);return assertAccountsExist(c),c}async function R2(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>j1(t))}var J1,f2=i(()=>{J1=new Uint8Array([33,30,12,55,106,90,225,166]);});function kwe(){return fixEncoderSize(getBytesEncoder(),8).encode($1)}function v2(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["originalCreator",getAddressEncoder()],["config",bt()],["totalPaid",getU64Encoder()],["lastPayment",getI64Encoder()],["isActive",getBooleanEncoder()],["createdAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:$1}))}function X1(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["originalCreator",getAddressDecoder()],["config",Mt()],["totalPaid",getU64Decoder()],["lastPayment",getI64Decoder()],["isActive",getBooleanDecoder()],["createdAt",getI64Decoder()],["bump",getU8Decoder()]])}function Owe(){return combineCodec(v2(),X1())}function Y1(e){return decodeAccount(e,X1())}async function Uwe(e,n,r){let c=await _2(e,n,r);return assertAccountExists(c),c}async function _2(e,n,r){let c=await fetchEncodedAccount(e,n,r);return Y1(c)}async function wwe(e,n,r){let c=await k2(e,n,r);return assertAccountsExist(c),c}async function k2(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>Y1(t))}function Fwe(){return 118}var $1,O2=i(()=>{y();$1=new Uint8Array([73,53,156,242,157,5,183,44]);});function sFe(){return fixEncoderSize(getBytesEncoder(),8).encode(tT)}function F2(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["owner",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["price",getU64Encoder()],["tokenMint",getAddressEncoder()],["serviceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["paymentToken",getAddressEncoder()],["estimatedDelivery",getI64Encoder()],["tags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["isActive",getBooleanEncoder()],["totalOrders",getU32Encoder()],["rating",getF64Encoder()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:tT}))}function rT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["owner",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["price",getU64Decoder()],["tokenMint",getAddressDecoder()],["serviceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["paymentToken",getAddressDecoder()],["estimatedDelivery",getI64Decoder()],["tags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["isActive",getBooleanDecoder()],["totalOrders",getU32Decoder()],["rating",getF64Decoder()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["bump",getU8Decoder()]])}function iFe(){return combineCodec(F2(),rT())}function nT(e){return decodeAccount(e,rT())}async function aFe(e,n,r){let c=await N2(e,n,r);return assertAccountExists(c),c}async function N2(e,n,r){let c=await fetchEncodedAccount(e,n,r);return nT(c)}async function dFe(e,n,r){let c=await G2(e,n,r);return assertAccountsExist(c),c}async function G2(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>nT(t))}var tT,z2=i(()=>{tT=new Uint8Array([117,173,54,52,146,147,124,211]);});function bFe(){return fixEncoderSize(getBytesEncoder(),8).encode(aT)}function Q2(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["customer",getAddressEncoder()],["agent",getAddressEncoder()],["listing",getAddressEncoder()],["listingId",getU64Encoder()],["quantity",getU32Encoder()],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["customInstructions",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["deadline",getI64Encoder()],["paymentAmount",getU64Encoder()],["paymentToken",getAddressEncoder()],["status",Pi()],["purchasedAt",getI64Encoder()],["updatedAt",getI64Encoder()],["transferHookApplied",getBooleanEncoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:aT}))}function dT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["customer",getAddressDecoder()],["agent",getAddressDecoder()],["listing",getAddressDecoder()],["listingId",getU64Decoder()],["quantity",getU32Decoder()],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["customInstructions",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["deadline",getI64Decoder()],["paymentAmount",getU64Decoder()],["paymentToken",getAddressDecoder()],["status",Ri()],["purchasedAt",getI64Decoder()],["updatedAt",getI64Decoder()],["transferHookApplied",getBooleanDecoder()],["bump",getU8Decoder()]])}function MFe(){return combineCodec(Q2(),dT())}function uT(e){return decodeAccount(e,dT())}async function hFe(e,n,r){let c=await j2(e,n,r);return assertAccountExists(c),c}async function j2(e,n,r){let c=await fetchEncodedAccount(e,n,r);return uT(c)}async function vFe(e,n,r){let c=await $2(e,n,r);return assertAccountsExist(c),c}async function $2(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>uT(t))}var aT,X2=i(()=>{y();aT=new Uint8Array([84,229,182,61,144,151,103,149]);});function $Fe(){return fixEncoderSize(getBytesEncoder(),8).encode(AT)}function eB(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["user",getAddressEncoder()],["agentCount",getU16Encoder()],["listingCount",getU16Encoder()],["workOrderCount",getU16Encoder()],["channelCount",getU16Encoder()],["totalVolumeTraded",getU64Encoder()],["lastActivity",getI64Encoder()],["createdAt",getI64Encoder()],["isRateLimited",getBooleanEncoder()],["rateLimitExpiry",getI64Encoder()],["lastExtensionRegistration",getI64Encoder()],["lastDisputeFiling",getI64Encoder()],["lastEvidenceSubmission",getI64Encoder()],["lastBatchExecution",getI64Encoder()],["lastDashboardUpdate",getI64Encoder()],["lastBulkDealCreation",getI64Encoder()],["lastDashboardCreation",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:AT}))}function gT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["user",getAddressDecoder()],["agentCount",getU16Decoder()],["listingCount",getU16Decoder()],["workOrderCount",getU16Decoder()],["channelCount",getU16Decoder()],["totalVolumeTraded",getU64Decoder()],["lastActivity",getI64Decoder()],["createdAt",getI64Decoder()],["isRateLimited",getBooleanDecoder()],["rateLimitExpiry",getI64Decoder()],["lastExtensionRegistration",getI64Decoder()],["lastDisputeFiling",getI64Decoder()],["lastEvidenceSubmission",getI64Decoder()],["lastBatchExecution",getI64Decoder()],["lastDashboardUpdate",getI64Decoder()],["lastBulkDealCreation",getI64Decoder()],["lastDashboardCreation",getI64Decoder()],["bump",getU8Decoder()]])}function XFe(){return combineCodec(eB(),gT())}function pT(e){return decodeAccount(e,gT())}async function YFe(e,n,r){let c=await tB(e,n,r);return assertAccountExists(c),c}async function tB(e,n,r){let c=await fetchEncodedAccount(e,n,r);return pT(c)}async function ZFe(e,n,r){let c=await rB(e,n,r);return assertAccountsExist(c),c}async function rB(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>pT(t))}function eNe(){return 138}var AT,nB=i(()=>{AT=new Uint8Array([37,84,98,14,130,63,210,138]);});function ENe(){return fixEncoderSize(getBytesEncoder(),8).encode(lT)}function lB(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["workOrder",getAddressEncoder()],["provider",getAddressEncoder()],["deliverables",getArrayEncoder(Je())],["ipfsHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["submittedAt",getI64Encoder()],["bump",getU8Encoder()]]),e=>({...e,discriminator:lT}))}function mT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["workOrder",getAddressDecoder()],["provider",getAddressDecoder()],["deliverables",getArrayDecoder(Qe())],["ipfsHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["submittedAt",getI64Decoder()],["bump",getU8Decoder()]])}function SNe(){return combineCodec(lB(),mT())}function yT(e){return decodeAccount(e,mT())}async function xNe(e,n,r){let c=await mB(e,n,r);return assertAccountExists(c),c}async function mB(e,n,r){let c=await fetchEncodedAccount(e,n,r);return yT(c)}async function PNe(e,n,r){let c=await yB(e,n,r);return assertAccountsExist(c),c}async function yB(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>yT(t))}var lT,TB=i(()=>{y();lT=new Uint8Array([135,198,137,54,172,172,212,84]);});function WNe(){return fixEncoderSize(getBytesEncoder(),8).encode(DT)}function xB(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["client",getAddressEncoder()],["provider",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["paymentAmount",getU64Encoder()],["paymentToken",getAddressEncoder()],["status",ad()],["createdAt",getI64Encoder()],["updatedAt",getI64Encoder()],["deadline",getI64Encoder()],["deliveredAt",getOptionEncoder(getI64Encoder())],["bump",getU8Encoder()]]),e=>({...e,discriminator:DT}))}function IT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["client",getAddressDecoder()],["provider",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["paymentAmount",getU64Decoder()],["paymentToken",getAddressDecoder()],["status",dd()],["createdAt",getI64Decoder()],["updatedAt",getI64Decoder()],["deadline",getI64Decoder()],["deliveredAt",getOptionDecoder(getI64Decoder())],["bump",getU8Decoder()]])}function KNe(){return combineCodec(xB(),IT())}function bT(e){return decodeAccount(e,IT())}async function BNe(e,n,r){let c=await PB(e,n,r);return assertAccountExists(c),c}async function PB(e,n,r){let c=await fetchEncodedAccount(e,n,r);return bT(c)}async function HNe(e,n,r){let c=await RB(e,n,r);return assertAccountsExist(c),c}async function RB(e,n,r){return (await fetchEncodedAccounts(e,n,r)).map(t=>bT(t))}var DT,fB=i(()=>{y();DT=new Uint8Array([67,109,86,157,94,117,205,9]);});var CB=i(()=>{cC();PC();OC();Pz();bz();wz();Vz();t8();A8();P8();h8();z8();X8();tL();mL();fL();_L();BL();tW();dW();fW();hW();zW();XW();cK();SK();hK();NK();VK();XK();c2();p2();f2();O2();z2();X2();nB();TB();fB();});function VNe(e){let n="data"in e?e.data:e;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([174,118,140,42,3,207,16,145])),0))return 0;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([35,65,251,143,132,134,104,33])),0))return 1;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([253,113,10,35,24,155,227,28])),0))return 2;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([47,166,112,147,155,197,86,7])),0))return 3;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([167,87,249,0,146,197,209,158])),0))return 4;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([145,145,156,0,197,232,130,245])),0))return 5;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([128,155,95,241,66,207,166,59])),0))return 6;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([50,162,197,10,93,40,12,147])),0))return 7;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([252,241,152,150,74,0,119,175])),0))return 8;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([163,174,175,5,237,55,21,230])),0))return 9;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([171,223,253,181,134,88,66,26])),0))return 10;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([80,240,220,203,97,75,125,183])),0))return 11;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([49,159,99,106,220,87,219,88])),0))return 12;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([75,146,78,26,130,240,228,35])),0))return 13;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([164,200,54,239,94,76,51,130])),0))return 14;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([213,106,173,92,14,72,162,175])),0))return 15;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([31,213,123,187,186,22,218,155])),0))return 16;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([141,183,126,42,23,237,11,5])),0))return 17;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([53,107,240,190,43,73,65,143])),0))return 18;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([148,35,75,198,179,216,77,84])),0))return 19;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([114,250,212,242,162,108,58,20])),0))return 20;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([147,204,137,108,97,90,113,28])),0))return 21;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([204,119,64,204,100,12,26,127])),0))return 22;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([198,187,239,13,141,42,92,67])),0))return 23;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([110,151,23,110,198,6,125,181])),0))return 24;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([224,116,121,186,68,161,79,236])),0))return 25;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([236,199,221,210,158,112,204,255])),0))return 26;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([227,231,51,26,244,88,4,148])),0))return 27;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([177,94,184,202,221,112,110,38])),0))return 28;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([207,227,141,11,194,21,193,32])),0))return 29;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([243,98,232,67,71,49,173,6])),0))return 30;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([219,78,120,167,202,67,57,204])),0))return 31;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([33,30,12,55,106,90,225,166])),0))return 32;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([73,53,156,242,157,5,183,44])),0))return 33;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([117,173,54,52,146,147,124,211])),0))return 34;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([84,229,182,61,144,151,103,149])),0))return 35;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([37,84,98,14,130,63,210,138])),0))return 36;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([135,198,137,54,172,172,212,84])),0))return 37;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([67,109,86,157,94,117,205,9])),0))return 38;throw new Error("The provided account could not be identified as a ghostspeakMarketplace account.")}function qNe(e){let n="data"in e?e.data:e;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([206,39,235,232,29,98,124,4])),0))return 0;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([146,64,145,33,190,17,82,70])),0))return 1;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([30,229,117,69,175,246,7,143])),0))return 2;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([25,78,239,255,21,9,170,98])),0))return 3;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([212,219,242,67,179,18,238,104])),0))return 4;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([100,100,216,86,42,163,37,64])),0))return 5;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([34,42,234,113,80,201,15,95])),0))return 6;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([250,43,164,121,205,210,124,127])),0))return 7;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([87,78,249,236,50,103,49,173])),0))return 8;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([191,161,93,207,225,58,71,16])),0))return 9;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([252,139,87,21,195,152,29,217])),0))return 10;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([82,29,134,149,255,74,248,210])),0))return 11;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([9,96,62,59,180,205,102,11])),0))return 12;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([0,252,167,244,145,90,227,29])),0))return 13;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([202,138,100,241,89,154,3,53])),0))return 14;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([227,183,153,251,4,55,13,56])),0))return 15;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([224,241,221,158,57,55,110,180])),0))return 16;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([156,203,54,179,38,72,33,21])),0))return 17;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([20,212,15,189,69,180,69,151])),0))return 18;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([158,211,102,36,244,24,103,163])),0))return 19;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([22,57,77,239,115,215,61,131])),0))return 20;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([160,237,52,23,118,243,100,75])),0))return 21;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([133,143,169,255,188,189,104,216])),0))return 22;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([37,105,253,99,87,46,223,20])),0))return 23;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([251,20,25,4,140,172,5,167])),0))return 24;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([28,188,236,214,244,184,198,219])),0))return 25;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([253,215,165,116,36,108,68,80])),0))return 26;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([115,222,207,231,169,56,125,153])),0))return 27;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([71,93,23,166,103,210,218,105])),0))return 28;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([72,76,122,193,232,239,106,81])),0))return 29;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([148,146,240,10,226,215,167,174])),0))return 30;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([58,37,131,238,116,165,200,193])),0))return 31;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([139,213,158,201,140,251,236,89])),0))return 32;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([236,178,59,67,226,82,27,209])),0))return 33;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([91,37,216,26,93,146,13,182])),0))return 34;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([4,45,127,74,240,104,83,178])),0))return 35;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([143,17,248,200,217,85,10,175])),0))return 36;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([205,171,239,225,82,126,96,166])),0))return 37;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([12,116,204,68,87,205,40,205])),0))return 38;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([198,174,139,70,87,79,181,139])),0))return 39;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([172,97,184,220,51,131,45,160])),0))return 40;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([236,222,159,76,52,79,235,109])),0))return 41;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([186,60,116,133,108,128,111,28])),0))return 42;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([99,201,28,182,134,0,55,181])),0))return 43;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([210,63,221,114,212,97,195,156])),0))return 44;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([220,209,175,193,57,132,241,168])),0))return 45;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([213,97,79,234,22,228,14,32])),0))return 46;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([145,182,236,249,212,17,175,161])),0))return 47;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([154,47,116,20,167,57,114,41])),0))return 48;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([175,89,119,112,150,203,202,198])),0))return 49;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([137,84,234,206,17,58,54,215])),0))return 50;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([59,39,17,210,123,130,101,67])),0))return 51;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([117,167,56,158,201,160,209,109])),0))return 52;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([215,68,129,228,237,165,0,240])),0))return 53;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([189,189,171,33,115,17,231,2])),0))return 54;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([170,46,176,41,191,255,104,205])),0))return 55;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([124,39,115,89,217,26,38,29])),0))return 56;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([104,0,75,134,95,80,68,186])),0))return 57;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([3,233,3,123,241,61,231,238])),0))return 58;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([74,8,96,55,146,85,200,152])),0))return 59;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([164,219,91,38,45,31,33,47])),0))return 60;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([38,170,233,87,52,65,23,128])),0))return 61;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([209,244,155,47,62,54,119,34])),0))return 62;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([99,206,125,26,181,158,189,238])),0))return 63;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([91,2,45,239,179,132,197,213])),0))return 64;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([189,81,30,198,139,186,115,23])),0))return 65;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([197,43,201,158,119,134,66,7])),0))return 66;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([40,9,115,148,140,7,157,160])),0))return 67;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([135,157,66,195,2,113,175,30])),0))return 68;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([15,6,94,55,65,80,123,248])),0))return 69;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([158,205,4,17,6,106,172,148])),0))return 70;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([123,7,32,171,41,109,58,250])),0))return 71;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([252,210,89,130,31,43,39,50])),0))return 72;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([231,6,202,6,96,103,12,230])),0))return 73;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([84,12,203,77,36,199,15,83])),0))return 74;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([157,174,222,205,233,240,244,136])),0))return 75;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([57,40,34,178,189,10,65,26])),0))return 76;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([177,174,100,125,106,213,241,22])),0))return 77;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([168,150,145,75,38,203,43,9])),0))return 78;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([151,198,209,252,41,69,106,93])),0))return 79;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([144,82,0,72,160,132,35,121])),0))return 80;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([10,122,84,103,225,186,125,183])),0))return 81;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([85,2,178,9,119,139,102,164])),0))return 82;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([80,227,92,245,231,37,99,180])),0))return 83;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([87,146,181,198,252,68,243,102])),0))return 84;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([184,35,106,114,27,86,233,32])),0))return 85;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([97,2,209,24,27,236,50,174])),0))return 86;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([149,67,63,108,132,122,95,128])),0))return 87;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([22,97,198,34,14,133,83,168])),0))return 88;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([156,13,81,78,11,3,54,178])),0))return 89;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([206,212,108,12,105,61,100,66])),0))return 90;if(containsBytes(n,fixEncoderSize(getBytesEncoder(),8).encode(new Uint8Array([51,21,40,11,225,15,184,230])),0))return 91;throw new Error("The provided instruction could not be identified as a ghostspeakMarketplace instruction.")}var d,DB,IB,bB=i(()=>{d="GssMyhkQPePLzByJsJadbQePZc6GtzGi22aQqW5opvUX",DB=(x=>(x[x.A2AMessage=0]="A2AMessage",x[x.A2ASession=1]="A2ASession",x[x.A2AStatus=2]="A2AStatus",x[x.Agent=3]="Agent",x[x.AgentIncentives=4]="AgentIncentives",x[x.AgentTreeConfig=5]="AgentTreeConfig",x[x.AgentVerification=6]="AgentVerification",x[x.AnalyticsDashboard=7]="AnalyticsDashboard",x[x.ArbitratorRegistry=8]="ArbitratorRegistry",x[x.AuctionMarketplace=9]="AuctionMarketplace",x[x.AuditTrail=10]="AuditTrail",x[x.BulkDeal=11]="BulkDeal",x[x.Channel=12]="Channel",x[x.ComplianceReport=13]="ComplianceReport",x[x.DisputeCase=14]="DisputeCase",x[x.DynamicPricingEngine=15]="DynamicPricingEngine",x[x.Escrow=16]="Escrow",x[x.Extension=17]="Extension",x[x.GovernanceProposal=18]="GovernanceProposal",x[x.IncentiveProgram=19]="IncentiveProgram",x[x.JobApplication=20]="JobApplication",x[x.JobContract=21]="JobContract",x[x.JobPosting=22]="JobPosting",x[x.MarketAnalytics=23]="MarketAnalytics",x[x.Message=24]="Message",x[x.Multisig=25]="Multisig",x[x.NegotiationChatbot=26]="NegotiationChatbot",x[x.Payment=27]="Payment",x[x.RbacConfig=28]="RbacConfig",x[x.ReentrancyGuard=29]="ReentrancyGuard",x[x.ReplicationRecord=30]="ReplicationRecord",x[x.ReplicationTemplate=31]="ReplicationTemplate",x[x.ResaleMarket=32]="ResaleMarket",x[x.RoyaltyStream=33]="RoyaltyStream",x[x.ServiceListing=34]="ServiceListing",x[x.ServicePurchase=35]="ServicePurchase",x[x.UserRegistry=36]="UserRegistry",x[x.WorkDelivery=37]="WorkDelivery",x[x.WorkOrder=38]="WorkOrder",x))(DB||{});IB=(g=>(g[g.ExportAction=0]="ExportAction",g[g.ExportAuditContext=1]="ExportAuditContext",g[g.ExportBiometricQuality=2]="ExportBiometricQuality",g[g.ExportComplianceStatus=3]="ExportComplianceStatus",g[g.ExportDynamicPricingConfig=4]="ExportDynamicPricingConfig",g[g.ExportMultisigConfig=5]="ExportMultisigConfig",g[g.ExportReportEntry=6]="ExportReportEntry",g[g.ExportResourceConstraints=7]="ExportResourceConstraints",g[g.ExportRuleCondition=8]="ExportRuleCondition",g[g.AcceptJobApplication=9]="AcceptJobApplication",g[g.ActivateAgent=10]="ActivateAgent",g[g.AddMessageReaction=11]="AddMessageReaction",g[g.AddTopAgent=12]="AddTopAgent",g[g.ApplyToJob=13]="ApplyToJob",g[g.ApproveExtension=14]="ApproveExtension",g[g.AssignArbitrator=15]="AssignArbitrator",g[g.BatchReplicateAgents=16]="BatchReplicateAgents",g[g.CancelEscrow=17]="CancelEscrow",g[g.CastVote=18]="CastVote",g[g.CompleteEscrow=19]="CompleteEscrow",g[g.CreateA2aSession=20]="CreateA2aSession",g[g.CreateAnalyticsDashboard=21]="CreateAnalyticsDashboard",g[g.CreateBulkDeal=22]="CreateBulkDeal",g[g.CreateChannel=23]="CreateChannel",g[g.CreateDynamicPricingEngine=24]="CreateDynamicPricingEngine",g[g.CreateEnhancedChannel=25]="CreateEnhancedChannel",g[g.CreateEscrow=26]="CreateEscrow",g[g.CreateIncentiveProgram=27]="CreateIncentiveProgram",g[g.CreateJobPosting=28]="CreateJobPosting",g[g.CreateMarketAnalytics=29]="CreateMarketAnalytics",g[g.CreateMultisig=30]="CreateMultisig",g[g.CreateReplicationTemplate=31]="CreateReplicationTemplate",g[g.CreateRoyaltyStream=32]="CreateRoyaltyStream",g[g.CreateServiceAuction=33]="CreateServiceAuction",g[g.CreateServiceListing=34]="CreateServiceListing",g[g.CreateToken2022Mint=35]="CreateToken2022Mint",g[g.CreateWorkOrder=36]="CreateWorkOrder",g[g.DeactivateAgent=37]="DeactivateAgent",g[g.DelegateVote=38]="DelegateVote",g[g.DisputeEscrow=39]="DisputeEscrow",g[g.DistributeIncentives=40]="DistributeIncentives",g[g.ExecuteBulkDealBatch=41]="ExecuteBulkDealBatch",g[g.ExecuteProposal=42]="ExecuteProposal",g[g.ExtendAuctionForReserve=43]="ExtendAuctionForReserve",g[g.FileDispute=44]="FileDispute",g[g.FinalizeAuction=45]="FinalizeAuction",g[g.GenerateComplianceReport=46]="GenerateComplianceReport",g[g.InitializeAuditTrail=47]="InitializeAuditTrail",g[g.InitializeConfidentialTransferMint=48]="InitializeConfidentialTransferMint",g[g.InitializeDefaultAccountState=49]="InitializeDefaultAccountState",g[g.InitializeGovernanceProposal=50]="InitializeGovernanceProposal",g[g.InitializeInterestBearingConfig=51]="InitializeInterestBearingConfig",g[g.InitializeMintCloseAuthority=52]="InitializeMintCloseAuthority",g[g.InitializeRbacConfig=53]="InitializeRbacConfig",g[g.InitializeTransferFeeConfig=54]="InitializeTransferFeeConfig",g[g.InitiateNegotiation=55]="InitiateNegotiation",g[g.JoinChannel=56]="JoinChannel",g[g.LeaveChannel=57]="LeaveChannel",g[g.ListAgentForResale=58]="ListAgentForResale",g[g.MakeCounterOffer=59]="MakeCounterOffer",g[g.ManageAgentStatus=60]="ManageAgentStatus",g[g.PlaceAuctionBid=61]="PlaceAuctionBid",g[g.PlaceDutchAuctionBid=62]="PlaceDutchAuctionBid",g[g.ProcessEscrowPayment=63]="ProcessEscrowPayment",g[g.ProcessPartialRefund=64]="ProcessPartialRefund",g[g.ProcessPayment=65]="ProcessPayment",g[g.PurchaseService=66]="PurchaseService",g[g.RefundExpiredEscrow=67]="RefundExpiredEscrow",g[g.RegisterAgent=68]="RegisterAgent",g[g.RegisterAgentCompressed=69]="RegisterAgentCompressed",g[g.RegisterExtension=70]="RegisterExtension",g[g.RejectWorkDelivery=71]="RejectWorkDelivery",g[g.ReplicateAgent=72]="ReplicateAgent",g[g.ResolveDispute=73]="ResolveDispute",g[g.SendA2aMessage=74]="SendA2aMessage",g[g.SendEnhancedMessage=75]="SendEnhancedMessage",g[g.SendMessage=76]="SendMessage",g[g.SubmitDisputeEvidence=77]="SubmitDisputeEvidence",g[g.SubmitEvidenceBatch=78]="SubmitEvidenceBatch",g[g.SubmitWorkDelivery=79]="SubmitWorkDelivery",g[g.TallyVotes=80]="TallyVotes",g[g.UpdateA2aStatus=81]="UpdateA2aStatus",g[g.UpdateAgent=82]="UpdateAgent",g[g.UpdateAgentReputation=83]="UpdateAgentReputation",g[g.UpdateAgentService=84]="UpdateAgentService",g[g.UpdateAnalyticsDashboard=85]="UpdateAnalyticsDashboard",g[g.UpdateAuctionReservePrice=86]="UpdateAuctionReservePrice",g[g.UpdateChannelSettings=87]="UpdateChannelSettings",g[g.UpdateDynamicPricing=88]="UpdateDynamicPricing",g[g.UpdateMarketAnalytics=89]="UpdateMarketAnalytics",g[g.VerifyAgent=90]="VerifyAgent",g[g.VerifyWorkDelivery=91]="VerifyWorkDelivery",g))(IB||{});});var E=i(()=>{bB();});function QNe(e){return process.env.NODE_ENV!=="production"?GB[e]:"Error message not available in production bundles."}function jNe(e,n,r){return isProgramError(e,n,d,r)}var MB,hB,vB,_B,kB,OB,UB,wB,FB,NB,GB,zB=i(()=>{E();MB=6e3,hB=6001,vB=6002,_B=6003,kB=6004,OB=6005,UB=6006,wB=6007,FB=6008,NB=6009;process.env.NODE_ENV!=="production"&&(GB={[hB]:"Default (null) public key cannot be used as admin",[MB]:"System program cannot be used as admin",[_B]:"Test address cannot be used on mainnet",[vB]:"Unauthorized admin - key does not match protocol admin",[kB]:"Admin validation failed",[OB]:"Insufficient Accounts",[UB]:"Invalid Instruction Data",[wB]:"Missing Required Account",[FB]:"Invalid Account",[NB]:"Instruction Parsing Failed"});});var LB=i(()=>{zB();});function I(e){if(e==null)throw new Error("Expected a value but received null or undefined.");return e}function T(e){if(!e)throw new Error("Expected a Address.");return typeof e=="object"&&"address"in e?e.address:Array.isArray(e)?e[0]:e}function u(e,n){return r=>{if(!r.value)return Object.freeze({address:e,role:AccountRole.READONLY});let c=r.isWritable?AccountRole.WRITABLE:AccountRole.READONLY;return Object.freeze({address:T(r.value),role:WB(r.value)?upgradeRoleToSigner(c):c,...WB(r.value)?{signer:r.value}:{}})}}function WB(e){return !!e&&typeof e=="object"&&"address"in e&&isTransactionSigner(e)}var S=i(()=>{});function cGe(){return fixEncoderSize(getBytesEncoder(),8).encode(vT)}function eu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:vT}))}function _T(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function sGe(){return combineCodec(eu(),_T())}async function iGe(e,n){let r=n?.programAddress??d,t={jobContract:{value:e.jobContract??null,isWritable:true},jobPosting:{value:e.jobPosting??null,isWritable:true},jobApplication:{value:e.jobApplication??null,isWritable:true},employer:{value:e.employer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}};t.jobContract.value||(t.jobContract.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([106,111,98,95,99,111,110,116,114,97,99,116])),getAddressEncoder().encode(T(t.jobPosting.value)),getAddressEncoder().encode(T(t.jobApplication.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let s=u(r);return {accounts:[s(t.jobContract),s(t.jobPosting),s(t.jobApplication),s(t.employer),s(t.systemProgram)],programAddress:r,data:eu().encode({})}}function aGe(e,n){let r=n?.programAddress??d,t={jobContract:{value:e.jobContract??null,isWritable:true},jobPosting:{value:e.jobPosting??null,isWritable:true},jobApplication:{value:e.jobApplication??null,isWritable:true},employer:{value:e.employer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let s=u(r);return {accounts:[s(t.jobContract),s(t.jobPosting),s(t.jobApplication),s(t.employer),s(t.systemProgram)],programAddress:r,data:eu().encode({})}}function dGe(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{jobContract:r(),jobPosting:r(),jobApplication:r(),employer:r(),systemProgram:r()},data:_T().decode(e.data)}}var vT,HB=i(()=>{E();S();vT=new Uint8Array([191,161,93,207,225,58,71,16]);});function PGe(){return fixEncoderSize(getBytesEncoder(),8).encode(OT)}function tu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:OT}))}function UT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function RGe(){return combineCodec(tu(),UT())}async function fGe(e,n){let r=n?.programAddress??d,t={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.agentAccount.value||(t.agentAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.signer.value)),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()).encode(I(s.agentId))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentAccount),o(t.signer),o(t.clock)],programAddress:r,data:tu().encode(s)}}function wT(e,n){let r=n?.programAddress??d,t={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentAccount),o(t.signer),o(t.clock)],programAddress:r,data:tu().encode(s)}}function CGe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{agentAccount:r(),signer:r(),clock:r()},data:UT().decode(e.data)}}var OT,jB=i(()=>{E();S();OT=new Uint8Array([252,139,87,21,195,152,29,217]);});function GGe(){return fixEncoderSize(getBytesEncoder(),8).encode(NT)}function ru(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reaction",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:NT}))}function GT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reaction",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function zGe(){return combineCodec(ru(),GT())}async function LGe(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},message:{value:e.message??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:false}},s={...e};t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let o=u(r);return {accounts:[o(t.channel),o(t.message),o(t.reentrancyGuard),o(t.user)],programAddress:r,data:ru().encode(s)}}function zT(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},message:{value:e.message??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:false}},s={...e},o=u(r);return {accounts:[o(t.channel),o(t.message),o(t.reentrancyGuard),o(t.user)],programAddress:r,data:ru().encode(s)}}function WGe(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{channel:r(),message:r(),reentrancyGuard:r(),user:r()},data:GT().decode(e.data)}}var NT,XB=i(()=>{E();S();NT=new Uint8Array([82,29,134,149,255,74,248,210]);});function $Ge(){return fixEncoderSize(getBytesEncoder(),8).encode(LT)}function WT(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()]]),e=>({...e,discriminator:LT}))}function KT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()]])}function XGe(){return combineCodec(WT(),KT())}function YGe(e,n){let r=n?.programAddress??d,t={marketAnalytics:{value:e.marketAnalytics??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.marketAnalytics),o(t.authority),o(t.clock)],programAddress:r,data:WT().encode(s)}}function ZGe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{marketAnalytics:r(),authority:r(),clock:r()},data:KT().decode(e.data)}}var LT,e0=i(()=>{E();S();LT=new Uint8Array([9,96,62,59,180,205,102,11]);});function Aze(){return fixEncoderSize(getBytesEncoder(),8).encode(qT)}function nu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["coverLetter",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposedPrice",getU64Encoder()],["estimatedDuration",getU32Encoder()],["proposedRate",getU64Encoder()],["estimatedDelivery",getI64Encoder()],["portfolioItems",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:qT}))}function JT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["coverLetter",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposedPrice",getU64Decoder()],["estimatedDuration",getU32Decoder()],["proposedRate",getU64Decoder()],["estimatedDelivery",getI64Decoder()],["portfolioItems",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function gze(){return combineCodec(nu(),JT())}async function pze(e,n){let r=n?.programAddress??d,t={jobApplication:{value:e.jobApplication??null,isWritable:true},jobPosting:{value:e.jobPosting??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},agentOwner:{value:e.agentOwner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.jobApplication.value||(t.jobApplication.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([106,111,98,95,97,112,112,108,105,99,97,116,105,111,110])),getAddressEncoder().encode(T(t.jobPosting.value)),getAddressEncoder().encode(T(t.agent.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.jobApplication),o(t.jobPosting),o(t.agent),o(t.agentOwner),o(t.systemProgram)],programAddress:r,data:nu().encode(s)}}function lze(e,n){let r=n?.programAddress??d,t={jobApplication:{value:e.jobApplication??null,isWritable:true},jobPosting:{value:e.jobPosting??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},agentOwner:{value:e.agentOwner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.jobApplication),o(t.jobPosting),o(t.agent),o(t.agentOwner),o(t.systemProgram)],programAddress:r,data:nu().encode(s)}}function mze(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{jobApplication:r(),jobPosting:r(),agent:r(),agentOwner:r(),systemProgram:r()},data:JT().decode(e.data)}}var qT,d0=i(()=>{E();S();qT=new Uint8Array([0,252,167,244,145,90,227,29]);});function Rze(){return fixEncoderSize(getBytesEncoder(),8).encode(QT)}function jT(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:QT}))}function $T(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function fze(){return combineCodec(jT(),$T())}function Cze(e,n){let r=n?.programAddress??d,t={extension:{value:e.extension??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let s=u(r);return {accounts:[s(t.extension),s(t.authority),s(t.clock)],programAddress:r,data:jT().encode({})}}function Dze(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{extension:r(),authority:r(),clock:r()},data:$T().decode(e.data)}}var QT,g0=i(()=>{E();S();QT=new Uint8Array([202,138,100,241,89,154,3,53]);});function wze(){return fixEncoderSize(getBytesEncoder(),8).encode(YT)}function ou(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["arbitrator",getAddressEncoder()]]),e=>({...e,discriminator:YT}))}function ZT(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["arbitrator",getAddressDecoder()]])}function Fze(){return combineCodec(ou(),ZT())}async function Nze(e,n){let r=n?.programAddress??d,t={dispute:{value:e.dispute??null,isWritable:true},arbitratorRegistry:{value:e.arbitratorRegistry??null,isWritable:false},authority:{value:e.authority??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.arbitratorRegistry.value||(t.arbitratorRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,114,98,105,116,114,97,116,111,114,95,114,101,103,105,115,116,114,121]))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dispute),o(t.arbitratorRegistry),o(t.authority),o(t.clock)],programAddress:r,data:ou().encode(s)}}function Gze(e,n){let r=n?.programAddress??d,t={dispute:{value:e.dispute??null,isWritable:true},arbitratorRegistry:{value:e.arbitratorRegistry??null,isWritable:false},authority:{value:e.authority??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dispute),o(t.arbitratorRegistry),o(t.authority),o(t.clock)],programAddress:r,data:ou().encode(s)}}function zze(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{dispute:r(),arbitratorRegistry:r(),authority:r(),clock:r()},data:ZT().decode(e.data)}}var YT,l0=i(()=>{E();S();YT=new Uint8Array([227,183,153,251,4,55,13,56]);});function $ze(){return fixEncoderSize(getBytesEncoder(),8).encode(eE)}function tE(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["customizations",getArrayEncoder(_e())],["royaltyPercentage",getU32Encoder()]]),e=>({...e,discriminator:eE}))}function rE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["customizations",getArrayDecoder(ke())],["royaltyPercentage",getU32Decoder()]])}function Xze(){return combineCodec(tE(),rE())}function Yze(e,n){let r=n?.programAddress??d,t={replicationTemplate:{value:e.replicationTemplate??null,isWritable:true},buyer:{value:e.buyer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.tokenProgram.value||(t.tokenProgram.value="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");let o=u(r);return {accounts:[o(t.replicationTemplate),o(t.buyer),o(t.systemProgram),o(t.tokenProgram)],programAddress:r,data:tE().encode(s)}}function Zze(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{replicationTemplate:r(),buyer:r(),systemProgram:r(),tokenProgram:r()},data:rE().decode(e.data)}}var eE,T0=i(()=>{E();S();y();eE=new Uint8Array([224,241,221,158,57,55,110,180]);});function p8e(){return fixEncoderSize(getBytesEncoder(),8).encode(oE)}function cu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["cancellationReason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:oE}))}function cE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["cancellationReason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function l8e(){return combineCodec(cu(),cE())}async function m8e(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.escrow),o(t.reentrancyGuard),o(t.escrowTokenAccount),o(t.clientRefundAccount),o(t.paymentToken),o(t.authority),o(t.tokenProgram)],programAddress:r,data:cu().encode(s)}}function sE(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.escrow),o(t.reentrancyGuard),o(t.escrowTokenAccount),o(t.clientRefundAccount),o(t.paymentToken),o(t.authority),o(t.tokenProgram)],programAddress:r,data:cu().encode(s)}}function y8e(e){if(e.accounts.length<7)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),escrowTokenAccount:r(),clientRefundAccount:r(),paymentToken:r(),authority:r(),tokenProgram:r()},data:cE().decode(e.data)}}var oE,S0=i(()=>{E();S();oE=new Uint8Array([156,203,54,179,38,72,33,21]);});function _8e(){return fixEncoderSize(getBytesEncoder(),8).encode(iE)}function aE(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["voteChoice",se()],["reasoning",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:iE}))}function dE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["voteChoice",ie()],["reasoning",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function k8e(){return combineCodec(aE(),dE())}function O8e(e,n){let r=n?.programAddress??d,t={proposal:{value:e.proposal??null,isWritable:true},voter:{value:e.voter??null,isWritable:true},voterTokenAccount:{value:e.voterTokenAccount??null,isWritable:false},delegateTokenAccount:{value:e.delegateTokenAccount??null,isWritable:false}},s={...e},o=u(r);return {accounts:[o(t.proposal),o(t.voter),o(t.voterTokenAccount),o(t.delegateTokenAccount)],programAddress:r,data:aE().encode(s)}}function U8e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},c=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{proposal:r(),voter:r(),voterTokenAccount:r(),delegateTokenAccount:c()},data:dE().decode(e.data)}}var iE,R0=i(()=>{E();S();y();iE=new Uint8Array([20,212,15,189,69,180,69,151]);});function $8e(){return fixEncoderSize(getBytesEncoder(),8).encode(AE)}function su(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["resolutionNotes",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:AE}))}function gE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["resolutionNotes",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function X8e(){return combineCodec(su(),gE())}async function Y8e(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},agent:{value:e.agent??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},agentTokenAccount:{value:e.agentTokenAccount??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.escrow),o(t.reentrancyGuard),o(t.agent),o(t.escrowTokenAccount),o(t.agentTokenAccount),o(t.authority),o(t.tokenProgram)],programAddress:r,data:su().encode(s)}}function pE(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},agent:{value:e.agent??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},agentTokenAccount:{value:e.agentTokenAccount??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.escrow),o(t.reentrancyGuard),o(t.agent),o(t.escrowTokenAccount),o(t.agentTokenAccount),o(t.authority),o(t.tokenProgram)],programAddress:r,data:su().encode(s)}}function Z8e(e){if(e.accounts.length<7)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),agent:r(),escrowTokenAccount:r(),agentTokenAccount:r(),authority:r(),tokenProgram:r()},data:gE().decode(e.data)}}var AE,C0=i(()=>{E();S();AE=new Uint8Array([158,211,102,36,244,24,103,163]);});function ALe(){return fixEncoderSize(getBytesEncoder(),8).encode(yE)}function iu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["sessionId",getU64Encoder()],["initiator",getAddressEncoder()],["responder",getAddressEncoder()],["sessionType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadata",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["expiresAt",getI64Encoder()]]),e=>({...e,discriminator:yE}))}function TE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["sessionId",getU64Decoder()],["initiator",getAddressDecoder()],["responder",getAddressDecoder()],["sessionType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadata",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["expiresAt",getI64Decoder()]])}function gLe(){return combineCodec(iu(),TE())}async function pLe(e,n){let r=n?.programAddress??d,t={session:{value:e.session??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.session.value||(t.session.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,50,97,95,115,101,115,115,105,111,110])),getAddressEncoder().encode(T(t.creator.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.session),o(t.creator),o(t.systemProgram)],programAddress:r,data:iu().encode(s)}}function lLe(e,n){let r=n?.programAddress??d,t={session:{value:e.session??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.session),o(t.creator),o(t.systemProgram)],programAddress:r,data:iu().encode(s)}}function mLe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{session:r(),creator:r(),systemProgram:r()},data:TE().decode(e.data)}}var yE,O0=i(()=>{E();S();yE=new Uint8Array([22,57,77,239,115,215,61,131]);});function hLe(){return fixEncoderSize(getBytesEncoder(),8).encode(EE)}function du(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["dashboardId",getU64Encoder()],["metrics",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:EE}))}function SE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["dashboardId",getU64Decoder()],["metrics",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function vLe(){return combineCodec(du(),SE())}async function _Le(e,n){let r=n?.programAddress??d,t={dashboard:{value:e.dashboard??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.dashboard.value||(t.dashboard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,110,97,108,121,116,105,99,115])),getAddressEncoder().encode(T(t.owner.value)),getU64Encoder().encode(I(s.dashboardId))]})),t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.owner.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dashboard),o(t.userRegistry),o(t.owner),o(t.systemProgram),o(t.clock)],programAddress:r,data:du().encode(s)}}function kLe(e,n){let r=n?.programAddress??d,t={dashboard:{value:e.dashboard??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dashboard),o(t.userRegistry),o(t.owner),o(t.systemProgram),o(t.clock)],programAddress:r,data:du().encode(s)}}function OLe(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{dashboard:r(),userRegistry:r(),owner:r(),systemProgram:r(),clock:r()},data:SE().decode(e.data)}}var EE,G0=i(()=>{E();S();EE=new Uint8Array([160,237,52,23,118,243,100,75]);});function $Le(){return fixEncoderSize(getBytesEncoder(),8).encode(PE)}function uu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["dealId",getU64Encoder()],["dealType",K()],["totalVolume",getU32Encoder()],["totalValue",getU64Encoder()],["discountPercentage",getF64Encoder()],["volumeTiers",getArrayEncoder(ht())],["slaTerms",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["contractDuration",getI64Encoder()],["endDate",getI64Encoder()]]),e=>({...e,discriminator:PE}))}function RE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["dealId",getU64Decoder()],["dealType",B()],["totalVolume",getU32Decoder()],["totalValue",getU64Decoder()],["discountPercentage",getF64Decoder()],["volumeTiers",getArrayDecoder(vt())],["slaTerms",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["contractDuration",getI64Decoder()],["endDate",getI64Decoder()]])}function XLe(){return combineCodec(uu(),RE())}async function YLe(e,n){let r=n?.programAddress??d,t={deal:{value:e.deal??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},customer:{value:e.customer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.customer.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.deal),o(t.agent),o(t.userRegistry),o(t.customer),o(t.systemProgram),o(t.clock)],programAddress:r,data:uu().encode(s)}}function ZLe(e,n){let r=n?.programAddress??d,t={deal:{value:e.deal??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},customer:{value:e.customer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.deal),o(t.agent),o(t.userRegistry),o(t.customer),o(t.systemProgram),o(t.clock)],programAddress:r,data:uu().encode(s)}}function eWe(e){if(e.accounts.length<6)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{deal:r(),agent:r(),userRegistry:r(),customer:r(),systemProgram:r(),clock:r()},data:RE().decode(e.data)}}var PE,q0=i(()=>{E();S();y();PE=new Uint8Array([133,143,169,255,188,189,104,216]);});function mWe(){return fixEncoderSize(getBytesEncoder(),8).encode(fE)}function CE(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["channelId",getU64Encoder()],["participants",getArrayEncoder(getAddressEncoder())],["channelType",_()],["isPrivate",getBooleanEncoder()]]),e=>({...e,discriminator:fE}))}function DE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["channelId",getU64Decoder()],["participants",getArrayDecoder(getAddressDecoder())],["channelType",k()],["isPrivate",getBooleanDecoder()]])}function yWe(){return combineCodec(CE(),DE())}function TWe(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.channel),o(t.creator),o(t.systemProgram)],programAddress:r,data:CE().encode(s)}}function EWe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{channel:r(),creator:r(),systemProgram:r()},data:DE().decode(e.data)}}var fE,j0=i(()=>{E();S();y();fE=new Uint8Array([37,105,253,99,87,46,223,20]);});function bWe(){return fixEncoderSize(getBytesEncoder(),8).encode(bE)}function Au(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["config",Y()]]),e=>({...e,discriminator:bE}))}function ME(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["config",Z()]])}function MWe(){return combineCodec(Au(),ME())}async function hWe(e,n){let r=n?.programAddress??d,t={engine:{value:e.engine??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.engine.value||(t.engine.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([100,121,110,97,109,105,99,95,112,114,105,99,105,110,103])),getAddressEncoder().encode(T(t.agent.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.engine),o(t.agent),o(t.owner),o(t.systemProgram)],programAddress:r,data:Au().encode(s)}}function vWe(e,n){let r=n?.programAddress??d,t={engine:{value:e.engine??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.engine),o(t.agent),o(t.owner),o(t.systemProgram)],programAddress:r,data:Au().encode(s)}}function _We(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{engine:r(),agent:r(),owner:r(),systemProgram:r()},data:ME().decode(e.data)}}var bE,X0=i(()=>{E();S();y();bE=new Uint8Array([251,20,25,4,140,172,5,167]);});function VWe(){return fixEncoderSize(getBytesEncoder(),8).encode(hE)}function pu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["channelId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["participants",getArrayEncoder(getAddressEncoder())],["channelType",_()],["metadata",H()]]),e=>({...e,discriminator:hE}))}function vE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["channelId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["participants",getArrayDecoder(getAddressDecoder())],["channelType",k()],["metadata",V()]])}function qWe(){return combineCodec(pu(),vE())}async function _E(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},creatorAgent:{value:e.creatorAgent??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.channel.value||(t.channel.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([99,104,97,110,110,101,108])),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()).encode(I(s.channelId))]})),t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.channel),o(t.reentrancyGuard),o(t.creator),o(t.creatorAgent),o(t.systemProgram)],programAddress:r,data:pu().encode(s)}}function JWe(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},creatorAgent:{value:e.creatorAgent??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.channel),o(t.reentrancyGuard),o(t.creator),o(t.creatorAgent),o(t.systemProgram)],programAddress:r,data:pu().encode(s)}}function QWe(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{channel:r(),reentrancyGuard:r(),creator:r(),creatorAgent:r(),systemProgram:r()},data:vE().decode(e.data)}}var hE,nH=i(()=>{E();S();y();hE=new Uint8Array([28,188,236,214,244,184,198,219]);});function pKe(){return fixEncoderSize(getBytesEncoder(),8).encode(kE)}function mu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["taskId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()],["expiresAt",getI64Encoder()],["transferHook",getOptionEncoder(getAddressEncoder())],["isConfidential",getBooleanEncoder()]]),e=>({...e,discriminator:kE}))}function OE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["taskId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()],["expiresAt",getI64Decoder()],["transferHook",getOptionDecoder(getAddressDecoder())],["isConfidential",getBooleanDecoder()]])}function lKe(){return combineCodec(mu(),OE())}async function UE(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},client:{value:e.client??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},clientTokenAccount:{value:e.clientTokenAccount??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false},associatedTokenProgram:{value:e.associatedTokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.escrow.value||(t.escrow.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([101,115,99,114,111,119])),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()).encode(I(s.taskId))]})),t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),t.clientTokenAccount.value||(t.clientTokenAccount.value=await getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[getAddressEncoder().encode(T(t.client.value)),getBytesEncoder().encode(new Uint8Array([6,221,246,225,215,101,161,147,217,203,225,70,206,235,121,172,28,180,133,237,95,91,55,145,58,140,245,133,126,255,0,169])),getAddressEncoder().encode(T(t.paymentToken.value))]})),t.escrowTokenAccount.value||(t.escrowTokenAccount.value=await getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[getAddressEncoder().encode(T(t.escrow.value)),getBytesEncoder().encode(new Uint8Array([6,221,246,225,215,101,161,147,217,203,225,70,206,235,121,172,28,180,133,237,95,91,55,145,58,140,245,133,126,255,0,169])),getAddressEncoder().encode(T(t.paymentToken.value))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),t.associatedTokenProgram.value||(t.associatedTokenProgram.value="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.escrow),o(t.reentrancyGuard),o(t.client),o(t.agent),o(t.clientTokenAccount),o(t.escrowTokenAccount),o(t.paymentToken),o(t.tokenProgram),o(t.associatedTokenProgram),o(t.systemProgram)],programAddress:r,data:mu().encode(s)}}function mKe(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},client:{value:e.client??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},clientTokenAccount:{value:e.clientTokenAccount??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false},associatedTokenProgram:{value:e.associatedTokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),t.associatedTokenProgram.value||(t.associatedTokenProgram.value="ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.escrow),o(t.reentrancyGuard),o(t.client),o(t.agent),o(t.clientTokenAccount),o(t.escrowTokenAccount),o(t.paymentToken),o(t.tokenProgram),o(t.associatedTokenProgram),o(t.systemProgram)],programAddress:r,data:mu().encode(s)}}function yKe(e){if(e.accounts.length<10)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),client:r(),agent:r(),clientTokenAccount:r(),escrowTokenAccount:r(),paymentToken:r(),tokenProgram:r(),associatedTokenProgram:r(),systemProgram:r()},data:OE().decode(e.data)}}var kE,aH=i(()=>{E();S();kE=new Uint8Array([253,215,165,116,36,108,68,80]);});function DKe(){return fixEncoderSize(getBytesEncoder(),8).encode(FE)}function yu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["config",dt()]]),e=>({...e,discriminator:FE}))}function NE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["config",ut()]])}function IKe(){return combineCodec(yu(),NE())}async function bKe(e,n){let r=n?.programAddress??d,t={program:{value:e.program??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.program.value||(t.program.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([105,110,99,101,110,116,105,118,101,95,112,114,111,103,114,97,109])),getAddressEncoder().encode(T(t.creator.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.program),o(t.creator),o(t.systemProgram)],programAddress:r,data:yu().encode(s)}}function MKe(e,n){let r=n?.programAddress??d,t={program:{value:e.program??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.program),o(t.creator),o(t.systemProgram)],programAddress:r,data:yu().encode(s)}}function hKe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{program:r(),creator:r(),systemProgram:r()},data:NE().decode(e.data)}}var FE,uH=i(()=>{E();S();y();FE=new Uint8Array([115,222,207,231,169,56,125,153]);});function LKe(){return fixEncoderSize(getBytesEncoder(),8).encode(WE)}function Tu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["budget",getU64Encoder()],["deadline",getI64Encoder()],["skillsNeeded",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["budgetMin",getU64Encoder()],["budgetMax",getU64Encoder()],["paymentToken",getAddressEncoder()],["jobType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["experienceLevel",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:WE}))}function KE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["budget",getU64Decoder()],["deadline",getI64Decoder()],["skillsNeeded",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["budgetMin",getU64Decoder()],["budgetMax",getU64Decoder()],["paymentToken",getAddressDecoder()],["jobType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["experienceLevel",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function WKe(){return combineCodec(Tu(),KE())}async function KKe(e,n){let r=n?.programAddress??d,t={jobPosting:{value:e.jobPosting??null,isWritable:true},employer:{value:e.employer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.jobPosting.value||(t.jobPosting.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([106,111,98,95,112,111,115,116,105,110,103])),getAddressEncoder().encode(T(t.employer.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.jobPosting),o(t.employer),o(t.systemProgram)],programAddress:r,data:Tu().encode(s)}}function BKe(e,n){let r=n?.programAddress??d,t={jobPosting:{value:e.jobPosting??null,isWritable:true},employer:{value:e.employer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.jobPosting),o(t.employer),o(t.systemProgram)],programAddress:r,data:Tu().encode(s)}}function HKe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{jobPosting:r(),employer:r(),systemProgram:r()},data:KE().decode(e.data)}}var WE,mH=i(()=>{E();S();WE=new Uint8Array([71,93,23,166,103,210,218,105]);});function YKe(){return fixEncoderSize(getBytesEncoder(),8).encode(HE)}function Su(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["periodStart",getI64Encoder()],["periodEnd",getI64Encoder()]]),e=>({...e,discriminator:HE}))}function VE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["periodStart",getI64Decoder()],["periodEnd",getI64Decoder()]])}function ZKe(){return combineCodec(Su(),VE())}async function e2e(e,n){let r=n?.programAddress??d,t={marketAnalytics:{value:e.marketAnalytics??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.marketAnalytics.value||(t.marketAnalytics.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([109,97,114,107,101,116,95,97,110,97,108,121,116,105,99,115])),getI64Encoder().encode(I(s.periodStart)),getI64Encoder().encode(I(s.periodEnd))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.marketAnalytics),o(t.authority),o(t.systemProgram),o(t.clock)],programAddress:r,data:Su().encode(s)}}function t2e(e,n){let r=n?.programAddress??d,t={marketAnalytics:{value:e.marketAnalytics??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.marketAnalytics),o(t.authority),o(t.systemProgram),o(t.clock)],programAddress:r,data:Su().encode(s)}}function r2e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{marketAnalytics:r(),authority:r(),systemProgram:r(),clock:r()},data:VE().decode(e.data)}}var HE,EH=i(()=>{E();S();HE=new Uint8Array([72,76,122,193,232,239,106,81]);});function y2e(){return fixEncoderSize(getBytesEncoder(),8).encode(JE)}function xu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["multisigId",getU64Encoder()],["threshold",getU8Encoder()],["signers",getArrayEncoder(getAddressEncoder())],["config",oe()]]),e=>({...e,discriminator:JE}))}function QE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["multisigId",getU64Decoder()],["threshold",getU8Decoder()],["signers",getArrayDecoder(getAddressDecoder())],["config",ce()]])}function T2e(){return combineCodec(xu(),QE())}async function E2e(e,n){let r=n?.programAddress??d,t={multisig:{value:e.multisig??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.multisig.value||(t.multisig.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([109,117,108,116,105,115,105,103])),getAddressEncoder().encode(T(t.owner.value)),getU64Encoder().encode(I(s.multisigId))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.multisig),o(t.owner),o(t.systemProgram)],programAddress:r,data:xu().encode(s)}}function S2e(e,n){let r=n?.programAddress??d,t={multisig:{value:e.multisig??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.multisig),o(t.owner),o(t.systemProgram)],programAddress:r,data:xu().encode(s)}}function x2e(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{multisig:r(),owner:r(),systemProgram:r()},data:QE().decode(e.data)}}var JE,RH=i(()=>{E();S();y();JE=new Uint8Array([148,146,240,10,226,215,167,174]);});function O2e(){return fixEncoderSize(getBytesEncoder(),8).encode(YE)}function Pu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["genomeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["baseCapabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["replicationFee",getU64Encoder()],["maxReplications",getU32Encoder()]]),e=>({...e,discriminator:YE}))}function ZE(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["genomeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["baseCapabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["replicationFee",getU64Decoder()],["maxReplications",getU32Decoder()]])}function U2e(){return combineCodec(Pu(),ZE())}async function w2e(e,n){let r=n?.programAddress??d,t={replicationTemplate:{value:e.replicationTemplate??null,isWritable:true},sourceAgent:{value:e.sourceAgent??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},clock:{value:e.clock??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.replicationTemplate.value||(t.replicationTemplate.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,108,105,99,97,116,105,111,110,95,116,101,109,112,108,97,116,101])),getAddressEncoder().encode(T(t.sourceAgent.value))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.replicationTemplate),o(t.sourceAgent),o(t.creator),o(t.clock),o(t.systemProgram)],programAddress:r,data:Pu().encode(s)}}function F2e(e,n){let r=n?.programAddress??d,t={replicationTemplate:{value:e.replicationTemplate??null,isWritable:true},sourceAgent:{value:e.sourceAgent??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},clock:{value:e.clock??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.replicationTemplate),o(t.sourceAgent),o(t.creator),o(t.clock),o(t.systemProgram)],programAddress:r,data:Pu().encode(s)}}function N2e(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{replicationTemplate:r(),sourceAgent:r(),creator:r(),clock:r(),systemProgram:r()},data:ZE().decode(e.data)}}var YE,MH=i(()=>{E();S();YE=new Uint8Array([58,37,131,238,116,165,200,193]);});function q2e(){return fixEncoderSize(getBytesEncoder(),8).encode(tS)}function Ru(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["config",bt()]]),e=>({...e,discriminator:tS}))}function rS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["config",Mt()]])}function J2e(){return combineCodec(Ru(),rS())}async function Q2e(e,n){let r=n?.programAddress??d,t={stream:{value:e.stream??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.stream.value||(t.stream.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,111,121,97,108,116,121,95,115,116,114,101,97,109])),getAddressEncoder().encode(T(t.agent.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.stream),o(t.agent),o(t.creator),o(t.systemProgram)],programAddress:r,data:Ru().encode(s)}}function j2e(e,n){let r=n?.programAddress??d,t={stream:{value:e.stream??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.stream),o(t.agent),o(t.creator),o(t.systemProgram)],programAddress:r,data:Ru().encode(s)}}function $2e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{stream:r(),agent:r(),creator:r(),systemProgram:r()},data:rS().decode(e.data)}}var tS,vH=i(()=>{E();S();y();tS=new Uint8Array([139,213,158,201,140,251,236,89]);});function ABe(){return fixEncoderSize(getBytesEncoder(),8).encode(cS)}function Du(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["auctionType",L()],["startingPrice",getU64Encoder()],["reservePrice",getU64Encoder()],["isReserveHidden",getBooleanEncoder()],["currentBid",getU64Encoder()],["currentBidder",getOptionEncoder(getAddressEncoder())],["auctionEndTime",getI64Encoder()],["minimumBidIncrement",getU64Encoder()],["totalBids",getU32Encoder()],["dutchConfig",getOptionEncoder(je())]]),e=>({...e,discriminator:cS}))}function sS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["auctionType",W()],["startingPrice",getU64Decoder()],["reservePrice",getU64Decoder()],["isReserveHidden",getBooleanDecoder()],["currentBid",getU64Decoder()],["currentBidder",getOptionDecoder(getAddressDecoder())],["auctionEndTime",getI64Decoder()],["minimumBidIncrement",getU64Decoder()],["totalBids",getU32Decoder()],["dutchConfig",getOptionDecoder($e())]])}function gBe(){return combineCodec(Du(),sS())}async function pBe(e,n){let r=n?.programAddress??d,t={auction:{value:e.auction??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.auction.value||(t.auction.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,117,99,116,105,111,110])),getAddressEncoder().encode(T(t.agent.value)),getAddressEncoder().encode(T(t.creator.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.auction),o(t.agent),o(t.userRegistry),o(t.creator),o(t.systemProgram),o(t.clock)],programAddress:r,data:Du().encode(s)}}function lBe(e,n){let r=n?.programAddress??d,t={auction:{value:e.auction??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:false},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.auction),o(t.agent),o(t.userRegistry),o(t.creator),o(t.systemProgram),o(t.clock)],programAddress:r,data:Du().encode(s)}}function mBe(e){if(e.accounts.length<6)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{auction:r(),agent:r(),userRegistry:r(),creator:r(),systemProgram:r(),clock:r()},data:sS().decode(e.data)}}var cS,UH=i(()=>{E();S();y();cS=new Uint8Array([236,178,59,67,226,82,27,209]);});function MBe(){return fixEncoderSize(getBytesEncoder(),8).encode(iS)}function Mu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["price",getU64Encoder()],["tokenMint",getAddressEncoder()],["serviceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["paymentToken",getAddressEncoder()],["estimatedDelivery",getI64Encoder()],["tags",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["listingId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:iS}))}function aS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["price",getU64Decoder()],["tokenMint",getAddressDecoder()],["serviceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["paymentToken",getAddressDecoder()],["estimatedDelivery",getI64Decoder()],["tags",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["listingId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function hBe(){return combineCodec(Mu(),aS())}async function vBe(e,n){let r=n?.programAddress??d,t={serviceListing:{value:e.serviceListing??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.serviceListing.value||(t.serviceListing.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,101,114,118,105,99,101,95,108,105,115,116,105,110,103])),getAddressEncoder().encode(T(t.creator.value)),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()).encode(I(s.listingId))]})),t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.creator.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.serviceListing),o(t.agent),o(t.userRegistry),o(t.creator),o(t.systemProgram),o(t.clock)],programAddress:r,data:Mu().encode(s)}}function _Be(e,n){let r=n?.programAddress??d,t={serviceListing:{value:e.serviceListing??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},creator:{value:e.creator??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.serviceListing),o(t.agent),o(t.userRegistry),o(t.creator),o(t.systemProgram),o(t.clock)],programAddress:r,data:Mu().encode(s)}}function kBe(e){if(e.accounts.length<6)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{serviceListing:r(),agent:r(),userRegistry:r(),creator:r(),systemProgram:r(),clock:r()},data:aS().decode(e.data)}}var iS,GH=i(()=>{E();S();iS=new Uint8Array([91,37,216,26,93,146,13,182]);});function VBe(){return fixEncoderSize(getBytesEncoder(),8).encode(gS)}function hu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["decimals",getU8Encoder()],["freezeAuthority",getOptionEncoder(getAddressEncoder())],["enableTransferFee",getBooleanEncoder()],["enableConfidentialTransfers",getBooleanEncoder()],["enableInterestBearing",getBooleanEncoder()]]),e=>({...e,discriminator:gS}))}function pS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["decimals",getU8Decoder()],["freezeAuthority",getOptionDecoder(getAddressDecoder())],["enableTransferFee",getBooleanDecoder()],["enableConfidentialTransfers",getBooleanDecoder()],["enableInterestBearing",getBooleanDecoder()]])}function qBe(){return combineCodec(hu(),pS())}async function JBe(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},mint:{value:e.mint??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},rent:{value:e.rent??null,isWritable:false}},s={...e};t.agent.value||(t.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.authority.value))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.rent.value||(t.rent.value="SysvarRent111111111111111111111111111111111");let o=u(r);return {accounts:[o(t.authority),o(t.agent),o(t.mint),o(t.tokenProgram),o(t.systemProgram),o(t.rent)],programAddress:r,data:hu().encode(s)}}function QBe(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},mint:{value:e.mint??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},rent:{value:e.rent??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.rent.value||(t.rent.value="SysvarRent111111111111111111111111111111111");let o=u(r);return {accounts:[o(t.authority),o(t.agent),o(t.mint),o(t.tokenProgram),o(t.systemProgram),o(t.rent)],programAddress:r,data:hu().encode(s)}}function jBe(e){if(e.accounts.length<6)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{authority:r(),agent:r(),mint:r(),tokenProgram:r(),systemProgram:r(),rent:r()},data:pS().decode(e.data)}}var gS,WH=i(()=>{E();S();gS=new Uint8Array([4,45,127,74,240,104,83,178]);});var KH=i(()=>{});var BH=i(()=>{KH();});function lS(e,n){console.error("\u{1F6A8} GhostSpeak SDK Error:",e.message),n&&(n.operation&&console.error("\u{1F527} Operation:",n.operation),n.instructionName&&console.error("\u{1F4CB} Instruction:",n.instructionName),n.accounts&&(console.error("\u{1F3E6} Accounts provided:",n.accounts.length),n.accounts.forEach((r,c)=>{if(typeof r=="string")console.error(` ${c+1}. ${r}`);else if(typeof r=="object"){let t="address"in r?r.address:r,s="name"in r?r.name:void 0;console.error(` ${c+1}. ${t}${s?` (${s})`:""}`);}else console.error(` ${c+1}. ${String(r)}`);})),n.params&&console.error("\u2699\uFE0F Parameters:",n.params)),console.error(`
2
- \u{1F4A1} Troubleshooting tips:`),console.error(" 1. Check that all required accounts are provided"),console.error(" 2. Verify account addresses are correct"),console.error(" 3. Ensure signers have sufficient SOL for transaction fees"),console.error(" 4. Confirm the program is deployed on the target network");}function mS(e,n,r,c){return {operation:e,instructionName:n,accounts:r,params:c}}function ae(e,n){let c={verify_work_delivery:t=>t<4?`Work delivery verification requires 4 accounts: workOrder, workDelivery, client, clock. Only ${t} provided.`:"Work delivery verification failed due to invalid account configuration.",submit_work_delivery:t=>t<5?`Work delivery submission requires 5 accounts: workDelivery, workOrder, provider, clock, systemProgram. Only ${t} provided.`:"Work delivery submission failed due to invalid account configuration.",reject_work_delivery:t=>t<4?`Work delivery rejection requires 4 accounts: workOrder, workDelivery, client, clock. Only ${t} provided.`:"Work delivery rejection failed due to invalid account configuration.",create_work_order:t=>t<3?`Work order creation requires at least 3 accounts: workOrder, client, systemProgram. Only ${t} provided.`:"Work order creation failed due to invalid account configuration."}[e];return c?c(n):`Instruction ${e} failed with ${n} accounts provided.`}var Jt=i(()=>{BH();});function s0e(){return fixEncoderSize(getBytesEncoder(),8).encode(RS)}function fS(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["orderId",getU64Encoder()],["provider",getAddressEncoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["paymentAmount",getU64Encoder()],["paymentToken",getAddressEncoder()],["deadline",getI64Encoder()]]),e=>({...e,discriminator:RS}))}function CS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["orderId",getU64Decoder()],["provider",getAddressDecoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["paymentAmount",getU64Decoder()],["paymentToken",getAddressDecoder()],["deadline",getI64Decoder()]])}function i0e(){return combineCodec(fS(),CS())}function a0e(e,n){let r=n?.programAddress??d,t={workOrder:{value:e.workOrder??null,isWritable:true},client:{value:e.client??null,isWritable:true},clock:{value:e.clock??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.workOrder),o(t.client),o(t.clock),o(t.systemProgram)],programAddress:r,data:fS().encode(s)}}function d0e(e){if(e.accounts.length<3)throw new Error(ae("create_work_order",e.accounts.length));let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{workOrder:r(),client:r(),clock:r(),systemProgram:r()},data:CS().decode(e.data)}}var RS,$H=i(()=>{E();S();Jt();RS=new Uint8Array([143,17,248,200,217,85,10,175]);});function P0e(){return fixEncoderSize(getBytesEncoder(),8).encode(IS)}function vu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:IS}))}function bS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function R0e(){return combineCodec(vu(),bS())}async function f0e(e,n){let r=n?.programAddress??d,t={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.agentAccount.value||(t.agentAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.signer.value)),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()).encode(I(s.agentId))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentAccount),o(t.signer),o(t.clock)],programAddress:r,data:vu().encode(s)}}function MS(e,n){let r=n?.programAddress??d,t={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentAccount),o(t.signer),o(t.clock)],programAddress:r,data:vu().encode(s)}}function C0e(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{agentAccount:r(),signer:r(),clock:r()},data:bS().decode(e.data)}}var IS,t4=i(()=>{E();S();IS=new Uint8Array([205,171,239,225,82,126,96,166]);});function N0e(){return fixEncoderSize(getBytesEncoder(),8).encode(vS)}function _u(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["proposalId",getU64Encoder()],["scope",Q()],["expiresAt",getOptionEncoder(getI64Encoder())]]),e=>({...e,discriminator:vS}))}function _S(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["proposalId",getU64Decoder()],["scope",j()],["expiresAt",getOptionDecoder(getI64Decoder())]])}function G0e(){return combineCodec(_u(),_S())}async function z0e(e,n){let r=n?.programAddress??d,t={proposal:{value:e.proposal??null,isWritable:true},delegator:{value:e.delegator??null,isWritable:true},delegate:{value:e.delegate??null,isWritable:false},delegatorTokenAccount:{value:e.delegatorTokenAccount??null,isWritable:false}},s={...e};t.proposal.value||(t.proposal.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([103,111,118,101,114,110,97,110,99,101,95,112,114,111,112,111,115,97,108])),getU64Encoder().encode(I(s.proposalId))]}));let o=u(r);return {accounts:[o(t.proposal),o(t.delegator),o(t.delegate),o(t.delegatorTokenAccount)],programAddress:r,data:_u().encode(s)}}function L0e(e,n){let r=n?.programAddress??d,t={proposal:{value:e.proposal??null,isWritable:true},delegator:{value:e.delegator??null,isWritable:true},delegate:{value:e.delegate??null,isWritable:false},delegatorTokenAccount:{value:e.delegatorTokenAccount??null,isWritable:false}},s={...e},o=u(r);return {accounts:[o(t.proposal),o(t.delegator),o(t.delegate),o(t.delegatorTokenAccount)],programAddress:r,data:_u().encode(s)}}function W0e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let t=e.accounts[n];return n+=1,t},c=()=>{let t=r();return t.address===d?void 0:t};return {programAddress:e.programAddress,accounts:{proposal:c(),delegator:r(),delegate:r(),delegatorTokenAccount:r()},data:_S().decode(e.data)}}var vS,o4=i(()=>{E();S();y();vS=new Uint8Array([12,116,204,68,87,205,40,205]);});function tHe(){return fixEncoderSize(getBytesEncoder(),8).encode(OS)}function ku(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["disputeReason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:OS}))}function US(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["disputeReason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function rHe(){return combineCodec(ku(),US())}async function nHe(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:false}},s={...e};t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let o=u(r);return {accounts:[o(t.escrow),o(t.reentrancyGuard),o(t.authority)],programAddress:r,data:ku().encode(s)}}function wS(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:false}},s={...e},o=u(r);return {accounts:[o(t.escrow),o(t.reentrancyGuard),o(t.authority)],programAddress:r,data:ku().encode(s)}}function oHe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),authority:r()},data:US().decode(e.data)}}var OS,s4=i(()=>{E();S();OS=new Uint8Array([198,174,139,70,87,79,181,139]);});function PHe(){return fixEncoderSize(getBytesEncoder(),8).encode(FS)}function NS(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agent",getAddressEncoder()],["incentiveType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["amount",getU64Encoder()]]),e=>({...e,discriminator:FS}))}function GS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agent",getAddressDecoder()],["incentiveType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["amount",getU64Decoder()]])}function RHe(){return combineCodec(NS(),GS())}function fHe(e,n){let r=n?.programAddress??d,t={program:{value:e.program??null,isWritable:true},incentives:{value:e.incentives??null,isWritable:true},distributor:{value:e.distributor??null,isWritable:false}},s={...e},o=u(r);return {accounts:[o(t.program),o(t.incentives),o(t.distributor)],programAddress:r,data:NS().encode(s)}}function CHe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{program:r(),incentives:r(),distributor:r()},data:GS().decode(e.data)}}var FS,d4=i(()=>{E();S();FS=new Uint8Array([172,97,184,220,51,131,45,160]);});function wHe(){return fixEncoderSize(getBytesEncoder(),8).encode(LS)}function Ou(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["batchSize",getU32Encoder()]]),e=>({...e,discriminator:LS}))}function WS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["batchSize",getU32Decoder()]])}function FHe(){return combineCodec(Ou(),WS())}async function NHe(e,n){let r=n?.programAddress??d,t={deal:{value:e.deal??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.authority.value))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.deal),o(t.userRegistry),o(t.authority),o(t.clock)],programAddress:r,data:Ou().encode(s)}}function GHe(e,n){let r=n?.programAddress??d,t={deal:{value:e.deal??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.deal),o(t.userRegistry),o(t.authority),o(t.clock)],programAddress:r,data:Ou().encode(s)}}function zHe(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{deal:r(),userRegistry:r(),authority:r(),clock:r()},data:WS().decode(e.data)}}var LS,A4=i(()=>{E();S();LS=new Uint8Array([236,222,159,76,52,79,235,109]);});function qHe(){return fixEncoderSize(getBytesEncoder(),8).encode(KS)}function BS(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:KS}))}function HS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function JHe(){return combineCodec(BS(),HS())}function QHe(e,n){let r=n?.programAddress??d,t={proposal:{value:e.proposal??null,isWritable:true},executor:{value:e.executor??null,isWritable:true},targetProgram:{value:e.targetProgram??null,isWritable:false}},s=u(r);return {accounts:[s(t.proposal),s(t.executor),s(t.targetProgram)],programAddress:r,data:BS().encode({})}}function jHe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{proposal:r(),executor:r(),targetProgram:r()},data:HS().decode(e.data)}}var KS,l4=i(()=>{E();S();KS=new Uint8Array([186,60,116,133,108,128,111,28]);});function r4e(){return fixEncoderSize(getBytesEncoder(),8).encode(VS)}function qS(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",he()]]),e=>({...e,discriminator:VS}))}function JS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",ve()]])}function n4e(){return combineCodec(qS(),JS())}function o4e(e,n){let r=n?.programAddress??d,t={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};return t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),{accounts:[u(r)(t.systemProgram)],programAddress:r,data:qS().encode(s)}}function c4e(e){if(e.accounts.length<1)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:JS().decode(e.data)}}var VS,T4=i(()=>{E();S();y();VS=new Uint8Array([206,39,235,232,29,98,124,4]);});function g4e(){return fixEncoderSize(getBytesEncoder(),8).encode(QS)}function jS(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",We()]]),e=>({...e,discriminator:QS}))}function $S(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",Ke()]])}function p4e(){return combineCodec(jS(),$S())}function l4e(e,n){let r=n?.programAddress??d,t={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};return t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),{accounts:[u(r)(t.systemProgram)],programAddress:r,data:jS().encode(s)}}function m4e(e){if(e.accounts.length<1)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:$S().decode(e.data)}}var QS,x4=i(()=>{E();S();y();QS=new Uint8Array([146,64,145,33,190,17,82,70]);});function R4e(){return fixEncoderSize(getBytesEncoder(),8).encode(XS)}function YS(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",Be()]]),e=>({...e,discriminator:XS}))}function ZS(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",He()]])}function f4e(){return combineCodec(YS(),ZS())}function C4e(e,n){let r=n?.programAddress??d,t={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};return t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),{accounts:[u(r)(t.systemProgram)],programAddress:r,data:YS().encode(s)}}function D4e(e){if(e.accounts.length<1)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:ZS().decode(e.data)}}var XS,f4=i(()=>{E();S();y();XS=new Uint8Array([30,229,117,69,175,246,7,143]);});function k4e(){return fixEncoderSize(getBytesEncoder(),8).encode(ex)}function tx(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",Ve()]]),e=>({...e,discriminator:ex}))}function rx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",qe()]])}function O4e(){return combineCodec(tx(),rx())}function U4e(e,n){let r=n?.programAddress??d,t={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};return t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),{accounts:[u(r)(t.systemProgram)],programAddress:r,data:tx().encode(s)}}function w4e(e){if(e.accounts.length<1)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:rx().decode(e.data)}}var ex,I4=i(()=>{E();S();y();ex=new Uint8Array([25,78,239,255,21,9,170,98]);});function K4e(){return fixEncoderSize(getBytesEncoder(),8).encode(nx)}function ox(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",Y()]]),e=>({...e,discriminator:nx}))}function cx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",Z()]])}function B4e(){return combineCodec(ox(),cx())}function H4e(e,n){let r=n?.programAddress??d,t={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};return t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),{accounts:[u(r)(t.systemProgram)],programAddress:r,data:ox().encode(s)}}function V4e(e){if(e.accounts.length<1)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:cx().decode(e.data)}}var nx,h4=i(()=>{E();S();y();nx=new Uint8Array([212,219,242,67,179,18,238,104]);});function Y4e(){return fixEncoderSize(getBytesEncoder(),8).encode(sx)}function ix(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",oe()]]),e=>({...e,discriminator:sx}))}function ax(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",ce()]])}function Z4e(){return combineCodec(ix(),ax())}function e6e(e,n){let r=n?.programAddress??d,t={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};return t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),{accounts:[u(r)(t.systemProgram)],programAddress:r,data:ix().encode(s)}}function t6e(e){if(e.accounts.length<1)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:ax().decode(e.data)}}var sx,k4=i(()=>{E();S();y();sx=new Uint8Array([100,100,216,86,42,163,37,64]);});function a6e(){return fixEncoderSize(getBytesEncoder(),8).encode(dx)}function ux(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",Pt()]]),e=>({...e,discriminator:dx}))}function Ax(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",Rt()]])}function d6e(){return combineCodec(ux(),Ax())}function u6e(e,n){let r=n?.programAddress??d,t={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};return t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),{accounts:[u(r)(t.systemProgram)],programAddress:r,data:ux().encode(s)}}function A6e(e){if(e.accounts.length<1)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:Ax().decode(e.data)}}var dx,w4=i(()=>{E();S();y();dx=new Uint8Array([34,42,234,113,80,201,15,95]);});function E6e(){return fixEncoderSize(getBytesEncoder(),8).encode(gx)}function px(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",ft()]]),e=>({...e,discriminator:gx}))}function lx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",Ct()]])}function S6e(){return combineCodec(px(),lx())}function x6e(e,n){let r=n?.programAddress??d,t={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};return t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),{accounts:[u(r)(t.systemProgram)],programAddress:r,data:px().encode(s)}}function P6e(e){if(e.accounts.length<1)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:lx().decode(e.data)}}var gx,G4=i(()=>{E();S();y();gx=new Uint8Array([250,43,164,121,205,210,124,127]);});function M6e(){return fixEncoderSize(getBytesEncoder(),8).encode(mx)}function yx(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["data",At()]]),e=>({...e,discriminator:mx}))}function Tx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["data",gt()]])}function h6e(){return combineCodec(yx(),Tx())}function v6e(e,n){let r=n?.programAddress??d,t={systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};return t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),{accounts:[u(r)(t.systemProgram)],programAddress:r,data:yx().encode(s)}}function _6e(e){if(e.accounts.length<1)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{systemProgram:r()},data:Tx().decode(e.data)}}var mx,W4=i(()=>{E();S();y();mx=new Uint8Array([87,78,249,236,50,103,49,173]);});function G6e(){return fixEncoderSize(getBytesEncoder(),8).encode(Ex)}function Sx(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:Ex}))}function xx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function z6e(){return combineCodec(Sx(),xx())}function L6e(e,n){let r=n?.programAddress??d,t={auction:{value:e.auction??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let s=u(r);return {accounts:[s(t.auction),s(t.authority),s(t.clock)],programAddress:r,data:Sx().encode({})}}function W6e(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{auction:r(),authority:r(),clock:r()},data:xx().decode(e.data)}}var Ex,H4=i(()=>{E();S();Ex=new Uint8Array([99,201,28,182,134,0,55,181]);});function X6e(){return fixEncoderSize(getBytesEncoder(),8).encode(Rx)}function wu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:Rx}))}function fx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function Y6e(){return combineCodec(wu(),fx())}async function Z6e(e,n){let r=n?.programAddress??d,t={dispute:{value:e.dispute??null,isWritable:true},transaction:{value:e.transaction??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},complainant:{value:e.complainant??null,isWritable:true},respondent:{value:e.respondent??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.dispute.value||(t.dispute.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([100,105,115,112,117,116,101])),getAddressEncoder().encode(T(t.transaction.value)),getAddressEncoder().encode(T(t.complainant.value)),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()).encode(I(s.reason))]})),t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.complainant.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dispute),o(t.transaction),o(t.userRegistry),o(t.complainant),o(t.respondent),o(t.systemProgram),o(t.clock)],programAddress:r,data:wu().encode(s)}}function e3e(e,n){let r=n?.programAddress??d,t={dispute:{value:e.dispute??null,isWritable:true},transaction:{value:e.transaction??null,isWritable:false},userRegistry:{value:e.userRegistry??null,isWritable:true},complainant:{value:e.complainant??null,isWritable:true},respondent:{value:e.respondent??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dispute),o(t.transaction),o(t.userRegistry),o(t.complainant),o(t.respondent),o(t.systemProgram),o(t.clock)],programAddress:r,data:wu().encode(s)}}function t3e(e){if(e.accounts.length<7)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{dispute:r(),transaction:r(),userRegistry:r(),complainant:r(),respondent:r(),systemProgram:r(),clock:r()},data:fx().decode(e.data)}}var Rx,$4=i(()=>{E();S();Rx=new Uint8Array([210,63,221,114,212,97,195,156]);});function a3e(){return fixEncoderSize(getBytesEncoder(),8).encode(Cx)}function Dx(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:Cx}))}function Ix(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function d3e(){return combineCodec(Dx(),Ix())}function u3e(e,n){let r=n?.programAddress??d,t={auction:{value:e.auction??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let s=u(r);return {accounts:[s(t.auction),s(t.authority),s(t.clock)],programAddress:r,data:Dx().encode({})}}function A3e(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{auction:r(),authority:r(),clock:r()},data:Ix().decode(e.data)}}var Cx,Z4=i(()=>{E();S();Cx=new Uint8Array([220,209,175,193,57,132,241,168]);});function x3e(){return fixEncoderSize(getBytesEncoder(),8).encode(Mx)}function Fu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["reportId",getU64Encoder()],["reportType",q()],["dateRangeStart",getI64Encoder()],["dateRangeEnd",getI64Encoder()]]),e=>({...e,discriminator:Mx}))}function hx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["reportId",getU64Decoder()],["reportType",J()],["dateRangeStart",getI64Decoder()],["dateRangeEnd",getI64Decoder()]])}function P3e(){return combineCodec(Fu(),hx())}async function R3e(e,n){let r=n?.programAddress??d,t={report:{value:e.report??null,isWritable:true},auditTrail:{value:e.auditTrail??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.report.value||(t.report.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([99,111,109,112,108,105,97,110,99,101,95,114,101,112,111,114,116])),getU64Encoder().encode(I(s.reportId))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.report),o(t.auditTrail),o(t.authority),o(t.systemProgram)],programAddress:r,data:Fu().encode(s)}}function f3e(e,n){let r=n?.programAddress??d,t={report:{value:e.report??null,isWritable:true},auditTrail:{value:e.auditTrail??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.report),o(t.auditTrail),o(t.authority),o(t.systemProgram)],programAddress:r,data:Fu().encode(s)}}function C3e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{report:r(),auditTrail:r(),authority:r(),systemProgram:r()},data:hx().decode(e.data)}}var Mx,o6=i(()=>{E();S();y();Mx=new Uint8Array([213,97,79,234,22,228,14,32]);});function z3e(){return fixEncoderSize(getBytesEncoder(),8).encode(_x)}function Nu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["entityType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["config",ze()]]),e=>({...e,discriminator:_x}))}function kx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["entityType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["config",Le()]])}function L3e(){return combineCodec(Nu(),kx())}async function W3e(e,n){let r=n?.programAddress??d,t={auditTrail:{value:e.auditTrail??null,isWritable:true},entity:{value:e.entity??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.auditTrail.value||(t.auditTrail.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,117,100,105,116,95,116,114,97,105,108])),getAddressEncoder().encode(T(t.entity.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.auditTrail),o(t.entity),o(t.authority),o(t.systemProgram)],programAddress:r,data:Nu().encode(s)}}function K3e(e,n){let r=n?.programAddress??d,t={auditTrail:{value:e.auditTrail??null,isWritable:true},entity:{value:e.entity??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.auditTrail),o(t.entity),o(t.authority),o(t.systemProgram)],programAddress:r,data:Nu().encode(s)}}function B3e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{auditTrail:r(),entity:r(),authority:r(),systemProgram:r()},data:kx().decode(e.data)}}var _x,s6=i(()=>{E();S();y();_x=new Uint8Array([145,182,236,249,212,17,175,161]);});function eVe(){return fixEncoderSize(getBytesEncoder(),8).encode(Ux)}function zu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["autoApproveNewAccounts",getBooleanEncoder()],["auditorElgamalPubkey",getOptionEncoder(fixEncoderSize(getBytesEncoder(),32))]]),e=>({...e,discriminator:Ux}))}function wx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["autoApproveNewAccounts",getBooleanDecoder()],["auditorElgamalPubkey",getOptionDecoder(fixDecoderSize(getBytesDecoder(),32))]])}function tVe(){return combineCodec(zu(),wx())}async function rVe(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.agent.value||(t.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.authority.value))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.authority),o(t.mint),o(t.agent),o(t.tokenProgram)],programAddress:r,data:zu().encode(s)}}function nVe(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.authority),o(t.mint),o(t.agent),o(t.tokenProgram)],programAddress:r,data:zu().encode(s)}}function oVe(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{authority:r(),mint:r(),agent:r(),tokenProgram:r()},data:wx().decode(e.data)}}var Ux,d6=i(()=>{E();S();Ux=new Uint8Array([154,47,116,20,167,57,114,41]);});function pVe(){return fixEncoderSize(getBytesEncoder(),8).encode(Nx)}function Lu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["state",be()]]),e=>({...e,discriminator:Nx}))}function Gx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["state",Me()]])}function lVe(){return combineCodec(Lu(),Gx())}async function mVe(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.agent.value||(t.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.authority.value))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.authority),o(t.mint),o(t.agent),o(t.tokenProgram)],programAddress:r,data:Lu().encode(s)}}function yVe(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.authority),o(t.mint),o(t.agent),o(t.tokenProgram)],programAddress:r,data:Lu().encode(s)}}function TVe(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{authority:r(),mint:r(),agent:r(),tokenProgram:r()},data:Gx().decode(e.data)}}var Nx,A6=i(()=>{E();S();y();Nx=new Uint8Array([175,89,119,112,150,203,202,198]);});function IVe(){return fixEncoderSize(getBytesEncoder(),8).encode(Lx)}function Wu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["proposalId",getU64Encoder()],["title",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["description",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["proposalType",$()],["executionParams",ct()]]),e=>({...e,discriminator:Lx}))}function Wx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["proposalId",getU64Decoder()],["title",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["description",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["proposalType",X()],["executionParams",st()]])}function bVe(){return combineCodec(Wu(),Wx())}async function MVe(e,n){let r=n?.programAddress??d,t={proposal:{value:e.proposal??null,isWritable:true},proposer:{value:e.proposer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.proposal.value||(t.proposal.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([103,111,118,101,114,110,97,110,99,101,95,112,114,111,112,111,115,97,108])),getU64Encoder().encode(I(s.proposalId))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.proposal),o(t.proposer),o(t.systemProgram)],programAddress:r,data:Wu().encode(s)}}function hVe(e,n){let r=n?.programAddress??d,t={proposal:{value:e.proposal??null,isWritable:true},proposer:{value:e.proposer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.proposal),o(t.proposer),o(t.systemProgram)],programAddress:r,data:Wu().encode(s)}}function vVe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{proposal:r(),proposer:r(),systemProgram:r()},data:Wx().decode(e.data)}}var Lx,x6=i(()=>{E();S();y();Lx=new Uint8Array([137,84,234,206,17,58,54,215]);});function WVe(){return fixEncoderSize(getBytesEncoder(),8).encode(Bx)}function Ku(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["rate",getI16Encoder()]]),e=>({...e,discriminator:Bx}))}function Hx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["rate",getI16Decoder()]])}function KVe(){return combineCodec(Ku(),Hx())}async function BVe(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},rateAuthority:{value:e.rateAuthority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.agent.value||(t.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.authority.value))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.authority),o(t.mint),o(t.agent),o(t.rateAuthority),o(t.tokenProgram)],programAddress:r,data:Ku().encode(s)}}function HVe(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},rateAuthority:{value:e.rateAuthority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.authority),o(t.mint),o(t.agent),o(t.rateAuthority),o(t.tokenProgram)],programAddress:r,data:Ku().encode(s)}}function VVe(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{authority:r(),mint:r(),agent:r(),rateAuthority:r(),tokenProgram:r()},data:Hx().decode(e.data)}}var Bx,R6=i(()=>{E();S();Bx=new Uint8Array([59,39,17,210,123,130,101,67]);});function e5e(){return fixEncoderSize(getBytesEncoder(),8).encode(qx)}function Bu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:qx}))}function Jx(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function t5e(){return combineCodec(Bu(),Jx())}async function r5e(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},closeAuthority:{value:e.closeAuthority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}};t.agent.value||(t.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.authority.value))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let s=u(r);return {accounts:[s(t.authority),s(t.mint),s(t.agent),s(t.closeAuthority),s(t.tokenProgram)],programAddress:r,data:Bu().encode({})}}function n5e(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},closeAuthority:{value:e.closeAuthority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let s=u(r);return {accounts:[s(t.authority),s(t.mint),s(t.agent),s(t.closeAuthority),s(t.tokenProgram)],programAddress:r,data:Bu().encode({})}}function o5e(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{authority:r(),mint:r(),agent:r(),closeAuthority:r(),tokenProgram:r()},data:Jx().decode(e.data)}}var qx,C6=i(()=>{E();S();qx=new Uint8Array([117,167,56,158,201,160,209,109]);});function m5e(){return fixEncoderSize(getBytesEncoder(),8).encode(jx)}function Hu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["initialRoles",getArrayEncoder(Dt())]]),e=>({...e,discriminator:jx}))}function $x(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["initialRoles",getArrayDecoder(It())]])}function y5e(){return combineCodec(Hu(),$x())}async function T5e(e,n){let r=n?.programAddress??d,t={rbacConfig:{value:e.rbacConfig??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.rbacConfig.value||(t.rbacConfig.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,98,97,99,95,99,111,110,102,105,103])),getAddressEncoder().encode(T(t.authority.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.rbacConfig),o(t.authority),o(t.systemProgram)],programAddress:r,data:Hu().encode(s)}}function E5e(e,n){let r=n?.programAddress??d,t={rbacConfig:{value:e.rbacConfig??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.rbacConfig),o(t.authority),o(t.systemProgram)],programAddress:r,data:Hu().encode(s)}}function S5e(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{rbacConfig:r(),authority:r(),systemProgram:r()},data:$x().decode(e.data)}}var jx,I6=i(()=>{E();S();y();jx=new Uint8Array([215,68,129,228,237,165,0,240]);});function _5e(){return fixEncoderSize(getBytesEncoder(),8).encode(Zx)}function Vu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["transferFeeBasisPoints",getU16Encoder()],["maximumFee",getU64Encoder()],["transferFeeAuthority",getOptionEncoder(getAddressEncoder())],["withdrawWithheldAuthority",getOptionEncoder(getAddressEncoder())]]),e=>({...e,discriminator:Zx}))}function eP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["transferFeeBasisPoints",getU16Decoder()],["maximumFee",getU64Decoder()],["transferFeeAuthority",getOptionDecoder(getAddressDecoder())],["withdrawWithheldAuthority",getOptionDecoder(getAddressDecoder())]])}function k5e(){return combineCodec(Vu(),eP())}async function O5e(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.agent.value||(t.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.authority.value))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.authority),o(t.mint),o(t.agent),o(t.tokenProgram)],programAddress:r,data:Vu().encode(s)}}function U5e(e,n){let r=n?.programAddress??d,t={authority:{value:e.authority??null,isWritable:true},mint:{value:e.mint??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.authority),o(t.mint),o(t.agent),o(t.tokenProgram)],programAddress:r,data:Vu().encode(s)}}function w5e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{authority:r(),mint:r(),agent:r(),tokenProgram:r()},data:eP().decode(e.data)}}var Zx,_6=i(()=>{E();S();Zx=new Uint8Array([189,189,171,33,115,17,231,2]);});function V5e(){return fixEncoderSize(getBytesEncoder(),8).encode(rP)}function qu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["initialOffer",getU64Encoder()],["autoAcceptThreshold",getU64Encoder()],["negotiationDeadline",getI64Encoder()]]),e=>({...e,discriminator:rP}))}function nP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["initialOffer",getU64Decoder()],["autoAcceptThreshold",getU64Decoder()],["negotiationDeadline",getI64Decoder()]])}function q5e(){return combineCodec(qu(),nP())}async function J5e(e,n){let r=n?.programAddress??d,t={negotiation:{value:e.negotiation??null,isWritable:true},initiator:{value:e.initiator??null,isWritable:true},counterparty:{value:e.counterparty??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.negotiation.value||(t.negotiation.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([110,101,103,111,116,105,97,116,105,111,110])),getAddressEncoder().encode(T(t.initiator.value)),getAddressEncoder().encode(T(t.counterparty.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.negotiation),o(t.initiator),o(t.counterparty),o(t.systemProgram)],programAddress:r,data:qu().encode(s)}}function Q5e(e,n){let r=n?.programAddress??d,t={negotiation:{value:e.negotiation??null,isWritable:true},initiator:{value:e.initiator??null,isWritable:true},counterparty:{value:e.counterparty??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.negotiation),o(t.initiator),o(t.counterparty),o(t.systemProgram)],programAddress:r,data:qu().encode(s)}}function j5e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{negotiation:r(),initiator:r(),counterparty:r(),systemProgram:r()},data:nP().decode(e.data)}}var rP,F6=i(()=>{E();S();rP=new Uint8Array([170,46,176,41,191,255,104,205]);});function n9e(){return fixEncoderSize(getBytesEncoder(),8).encode(cP)}function Ju(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:cP}))}function sP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function o9e(){return combineCodec(Ju(),sP())}async function c9e(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:true},userAgent:{value:e.userAgent??null,isWritable:false}};t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let s=u(r);return {accounts:[s(t.channel),s(t.reentrancyGuard),s(t.user),s(t.userAgent)],programAddress:r,data:Ju().encode({})}}function iP(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:true},userAgent:{value:e.userAgent??null,isWritable:false}},s=u(r);return {accounts:[s(t.channel),s(t.reentrancyGuard),s(t.user),s(t.userAgent)],programAddress:r,data:Ju().encode({})}}function s9e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{channel:r(),reentrancyGuard:r(),user:r(),userAgent:r()},data:sP().decode(e.data)}}var cP,G6=i(()=>{E();S();cP=new Uint8Array([124,39,115,89,217,26,38,29]);});function l9e(){return fixEncoderSize(getBytesEncoder(),8).encode(dP)}function Qu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:dP}))}function uP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function m9e(){return combineCodec(Qu(),uP())}async function y9e(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:true}};t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let s=u(r);return {accounts:[s(t.channel),s(t.reentrancyGuard),s(t.user)],programAddress:r,data:Qu().encode({})}}function AP(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},user:{value:e.user??null,isWritable:true}},s=u(r);return {accounts:[s(t.channel),s(t.reentrancyGuard),s(t.user)],programAddress:r,data:Qu().encode({})}}function T9e(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{channel:r(),reentrancyGuard:r(),user:r()},data:uP().decode(e.data)}}var dP,L6=i(()=>{E();S();dP=new Uint8Array([104,0,75,134,95,80,68,186]);});function b9e(){return fixEncoderSize(getBytesEncoder(),8).encode(pP)}function ju(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["listingPrice",getU64Encoder()]]),e=>({...e,discriminator:pP}))}function lP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["listingPrice",getU64Decoder()]])}function M9e(){return combineCodec(ju(),lP())}async function h9e(e,n){let r=n?.programAddress??d,t={resale:{value:e.resale??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},seller:{value:e.seller??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.resale.value||(t.resale.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,115,97,108,101])),getAddressEncoder().encode(T(t.agent.value)),getAddressEncoder().encode(T(t.seller.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.resale),o(t.agent),o(t.seller),o(t.systemProgram)],programAddress:r,data:ju().encode(s)}}function v9e(e,n){let r=n?.programAddress??d,t={resale:{value:e.resale??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},seller:{value:e.seller??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.resale),o(t.agent),o(t.seller),o(t.systemProgram)],programAddress:r,data:ju().encode(s)}}function _9e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{resale:r(),agent:r(),seller:r(),systemProgram:r()},data:lP().decode(e.data)}}var pP,B6=i(()=>{E();S();pP=new Uint8Array([3,233,3,123,241,61,231,238]);});function q9e(){return fixEncoderSize(getBytesEncoder(),8).encode(mP)}function yP(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["counterOffer",getU64Encoder()],["message",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:mP}))}function TP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["counterOffer",getU64Decoder()],["message",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function J9e(){return combineCodec(yP(),TP())}function Q9e(e,n){let r=n?.programAddress??d,t={negotiation:{value:e.negotiation??null,isWritable:true},sender:{value:e.sender??null,isWritable:false}},s={...e},o=u(r);return {accounts:[o(t.negotiation),o(t.sender)],programAddress:r,data:yP().encode(s)}}function j9e(e){if(e.accounts.length<2)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{negotiation:r(),sender:r()},data:TP().decode(e.data)}}var mP,q6=i(()=>{E();S();mP=new Uint8Array([74,8,96,55,146,85,200,152]);});function s7e(){return fixEncoderSize(getBytesEncoder(),8).encode(SP)}function $u(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["newStatus",getBooleanEncoder()]]),e=>({...e,discriminator:SP}))}function xP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["newStatus",getBooleanDecoder()]])}function i7e(){return combineCodec($u(),xP())}async function a7e(e,n){let r=n?.programAddress??d,t={agent:{value:e.agent??null,isWritable:true},owner:{value:e.owner??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.agent.value||(t.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.owner.value))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agent),o(t.owner),o(t.clock)],programAddress:r,data:$u().encode(s)}}function d7e(e,n){let r=n?.programAddress??d,t={agent:{value:e.agent??null,isWritable:true},owner:{value:e.owner??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agent),o(t.owner),o(t.clock)],programAddress:r,data:$u().encode(s)}}function u7e(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{agent:r(),owner:r(),clock:r()},data:xP().decode(e.data)}}var SP,Q6=i(()=>{E();S();SP=new Uint8Array([164,219,91,38,45,31,33,47]);});function S7e(){return fixEncoderSize(getBytesEncoder(),8).encode(PP)}function RP(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["bidAmount",getU64Encoder()]]),e=>({...e,discriminator:PP}))}function fP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["bidAmount",getU64Decoder()]])}function x7e(){return combineCodec(RP(),fP())}function P7e(e,n){let r=n?.programAddress??d,t={auction:{value:e.auction??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:false},bidder:{value:e.bidder??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.auction),o(t.userRegistry),o(t.bidder),o(t.systemProgram),o(t.clock)],programAddress:r,data:RP().encode(s)}}function R7e(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{auction:r(),userRegistry:r(),bidder:r(),systemProgram:r(),clock:r()},data:fP().decode(e.data)}}var PP,X6=i(()=>{E();S();PP=new Uint8Array([38,170,233,87,52,65,23,128]);});function h7e(){return fixEncoderSize(getBytesEncoder(),8).encode(CP)}function DP(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:CP}))}function IP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function v7e(){return combineCodec(DP(),IP())}function _7e(e,n){let r=n?.programAddress??d,t={auction:{value:e.auction??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:false},bidder:{value:e.bidder??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let s=u(r);return {accounts:[s(t.auction),s(t.userRegistry),s(t.bidder),s(t.systemProgram),s(t.clock)],programAddress:r,data:DP().encode({})}}function k7e(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{auction:r(),userRegistry:r(),bidder:r(),systemProgram:r(),clock:r()},data:IP().decode(e.data)}}var CP,e3=i(()=>{E();S();CP=new Uint8Array([209,244,155,47,62,54,119,34]);});function L7e(){return fixEncoderSize(getBytesEncoder(),8).encode(bP)}function Yu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["workOrder",getAddressEncoder()]]),e=>({...e,discriminator:bP}))}function MP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["workOrder",getAddressDecoder()]])}function W7e(){return combineCodec(Yu(),MP())}async function K7e(e,n){let r=n?.programAddress??d,t={payment:{value:e.payment??null,isWritable:true},escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},recipientTokenAccount:{value:e.recipientTokenAccount??null,isWritable:true},recipient:{value:e.recipient??null,isWritable:false},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.payment.value||(t.payment.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([112,97,121,109,101,110,116])),getAddressEncoder().encode(T(t.escrow.value))]})),t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),t.escrowTokenAccount.value||(t.escrowTokenAccount.value=await getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[getAddressEncoder().encode(T(t.escrow.value)),getBytesEncoder().encode(new Uint8Array([6,221,246,225,215,101,161,147,217,203,225,70,206,235,121,172,28,180,133,237,95,91,55,145,58,140,245,133,126,255,0,169])),getAddressEncoder().encode(T(t.paymentToken.value))]})),t.recipientTokenAccount.value||(t.recipientTokenAccount.value=await getProgramDerivedAddress({programAddress:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",seeds:[getAddressEncoder().encode(T(t.recipient.value)),getBytesEncoder().encode(new Uint8Array([6,221,246,225,215,101,161,147,217,203,225,70,206,235,121,172,28,180,133,237,95,91,55,145,58,140,245,133,126,255,0,169])),getAddressEncoder().encode(T(t.paymentToken.value))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.payment),o(t.escrow),o(t.reentrancyGuard),o(t.escrowTokenAccount),o(t.recipientTokenAccount),o(t.recipient),o(t.paymentToken),o(t.authority),o(t.tokenProgram),o(t.systemProgram)],programAddress:r,data:Yu().encode(s)}}function B7e(e,n){let r=n?.programAddress??d,t={payment:{value:e.payment??null,isWritable:true},escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},recipientTokenAccount:{value:e.recipientTokenAccount??null,isWritable:true},recipient:{value:e.recipient??null,isWritable:false},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.payment),o(t.escrow),o(t.reentrancyGuard),o(t.escrowTokenAccount),o(t.recipientTokenAccount),o(t.recipient),o(t.paymentToken),o(t.authority),o(t.tokenProgram),o(t.systemProgram)],programAddress:r,data:Yu().encode(s)}}function H7e(e){if(e.accounts.length<10)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{payment:r(),escrow:r(),reentrancyGuard:r(),escrowTokenAccount:r(),recipientTokenAccount:r(),recipient:r(),paymentToken:r(),authority:r(),tokenProgram:r(),systemProgram:r()},data:MP().decode(e.data)}}var bP,r3=i(()=>{E();S();bP=new Uint8Array([99,206,125,26,181,158,189,238]);});function eqe(){return fixEncoderSize(getBytesEncoder(),8).encode(vP)}function Zu(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["clientRefundPercentage",getU8Encoder()]]),e=>({...e,discriminator:vP}))}function _P(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["clientRefundPercentage",getU8Decoder()]])}function tqe(){return combineCodec(Zu(),_P())}async function rqe(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},agentPaymentAccount:{value:e.agentPaymentAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.escrow),o(t.reentrancyGuard),o(t.escrowTokenAccount),o(t.clientRefundAccount),o(t.agentPaymentAccount),o(t.paymentToken),o(t.authority),o(t.tokenProgram)],programAddress:r,data:Zu().encode(s)}}function kP(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},agentPaymentAccount:{value:e.agentPaymentAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},authority:{value:e.authority??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let o=u(r);return {accounts:[o(t.escrow),o(t.reentrancyGuard),o(t.escrowTokenAccount),o(t.clientRefundAccount),o(t.agentPaymentAccount),o(t.paymentToken),o(t.authority),o(t.tokenProgram)],programAddress:r,data:Zu().encode(s)}}function nqe(e){if(e.accounts.length<8)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),escrowTokenAccount:r(),clientRefundAccount:r(),agentPaymentAccount:r(),paymentToken:r(),authority:r(),tokenProgram:r()},data:_P().decode(e.data)}}var vP,o3=i(()=>{E();S();vP=new Uint8Array([91,2,45,239,179,132,197,213]);});function yqe(){return fixEncoderSize(getBytesEncoder(),8).encode(UP)}function eA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["amount",getU64Encoder()],["useConfidentialTransfer",getBooleanEncoder()]]),e=>({...e,discriminator:UP}))}function wP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["amount",getU64Decoder()],["useConfidentialTransfer",getBooleanDecoder()]])}function Tqe(){return combineCodec(eA(),wP())}async function Eqe(e,n){let r=n?.programAddress??d,t={payment:{value:e.payment??null,isWritable:true},workOrder:{value:e.workOrder??null,isWritable:true},providerAgent:{value:e.providerAgent??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},payerTokenAccount:{value:e.payerTokenAccount??null,isWritable:true},providerTokenAccount:{value:e.providerTokenAccount??null,isWritable:true},tokenMint:{value:e.tokenMint??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.payment.value||(t.payment.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([112,97,121,109,101,110,116])),getAddressEncoder().encode(T(t.workOrder.value))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.payment),o(t.workOrder),o(t.providerAgent),o(t.payer),o(t.payerTokenAccount),o(t.providerTokenAccount),o(t.tokenMint),o(t.tokenProgram),o(t.systemProgram)],programAddress:r,data:eA().encode(s)}}function Sqe(e,n){let r=n?.programAddress??d,t={payment:{value:e.payment??null,isWritable:true},workOrder:{value:e.workOrder??null,isWritable:true},providerAgent:{value:e.providerAgent??null,isWritable:true},payer:{value:e.payer??null,isWritable:true},payerTokenAccount:{value:e.payerTokenAccount??null,isWritable:true},providerTokenAccount:{value:e.providerTokenAccount??null,isWritable:true},tokenMint:{value:e.tokenMint??null,isWritable:false},tokenProgram:{value:e.tokenProgram??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.payment),o(t.workOrder),o(t.providerAgent),o(t.payer),o(t.payerTokenAccount),o(t.providerTokenAccount),o(t.tokenMint),o(t.tokenProgram),o(t.systemProgram)],programAddress:r,data:eA().encode(s)}}function xqe(e){if(e.accounts.length<9)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{payment:r(),workOrder:r(),providerAgent:r(),payer:r(),payerTokenAccount:r(),providerTokenAccount:r(),tokenMint:r(),tokenProgram:r(),systemProgram:r()},data:wP().decode(e.data)}}var UP,s3=i(()=>{E();S();UP=new Uint8Array([189,81,30,198,139,186,115,23]);});function Uqe(){return fixEncoderSize(getBytesEncoder(),8).encode(zP)}function tA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["listingId",getU64Encoder()],["quantity",getU32Encoder()],["requirements",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["customInstructions",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["deadline",getI64Encoder()]]),e=>({...e,discriminator:zP}))}function LP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["listingId",getU64Decoder()],["quantity",getU32Decoder()],["requirements",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["customInstructions",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["deadline",getI64Decoder()]])}function wqe(){return combineCodec(tA(),LP())}async function Fqe(e,n){let r=n?.programAddress??d,t={servicePurchase:{value:e.servicePurchase??null,isWritable:true},serviceListing:{value:e.serviceListing??null,isWritable:true},buyer:{value:e.buyer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.servicePurchase.value||(t.servicePurchase.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([115,101,114,118,105,99,101,95,112,117,114,99,104,97,115,101])),getAddressEncoder().encode(T(t.buyer.value)),getAddressEncoder().encode(T(t.serviceListing.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.servicePurchase),o(t.serviceListing),o(t.buyer),o(t.systemProgram)],programAddress:r,data:tA().encode(s)}}function Nqe(e,n){let r=n?.programAddress??d,t={servicePurchase:{value:e.servicePurchase??null,isWritable:true},serviceListing:{value:e.serviceListing??null,isWritable:true},buyer:{value:e.buyer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.servicePurchase),o(t.serviceListing),o(t.buyer),o(t.systemProgram)],programAddress:r,data:tA().encode(s)}}function Gqe(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{servicePurchase:r(),serviceListing:r(),buyer:r(),systemProgram:r()},data:LP().decode(e.data)}}var zP,p3=i(()=>{E();S();zP=new Uint8Array([197,43,201,158,119,134,66,7]);});function qqe(){return fixEncoderSize(getBytesEncoder(),8).encode(KP)}function rA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:KP}))}function BP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function Jqe(){return combineCodec(rA(),BP())}async function Qqe(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},caller:{value:e.caller??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}};t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let s=u(r);return {accounts:[s(t.escrow),s(t.reentrancyGuard),s(t.escrowTokenAccount),s(t.clientRefundAccount),s(t.paymentToken),s(t.caller),s(t.tokenProgram)],programAddress:r,data:rA().encode({})}}function jqe(e,n){let r=n?.programAddress??d,t={escrow:{value:e.escrow??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},escrowTokenAccount:{value:e.escrowTokenAccount??null,isWritable:true},clientRefundAccount:{value:e.clientRefundAccount??null,isWritable:true},paymentToken:{value:e.paymentToken??null,isWritable:false},caller:{value:e.caller??null,isWritable:true},tokenProgram:{value:e.tokenProgram??null,isWritable:false}};t.tokenProgram.value||(t.tokenProgram.value="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb");let s=u(r);return {accounts:[s(t.escrow),s(t.reentrancyGuard),s(t.escrowTokenAccount),s(t.clientRefundAccount),s(t.paymentToken),s(t.caller),s(t.tokenProgram)],programAddress:r,data:rA().encode({})}}function $qe(e){if(e.accounts.length<7)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{escrow:r(),reentrancyGuard:r(),escrowTokenAccount:r(),clientRefundAccount:r(),paymentToken:r(),caller:r(),tokenProgram:r()},data:BP().decode(e.data)}}var KP,m3=i(()=>{E();S();KP=new Uint8Array([40,9,115,148,140,7,157,160]);});function cJe(){return fixEncoderSize(getBytesEncoder(),8).encode(JP)}function oA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentType",getU8Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:JP}))}function QP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentType",getU8Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function sJe(){return combineCodec(oA(),QP())}async function jP(e,n){let r=n?.programAddress??d,t={agentAccount:{value:e.agentAccount??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.agentAccount.value||(t.agentAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.signer.value)),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()).encode(I(s.agentId))]})),t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.signer.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentAccount),o(t.userRegistry),o(t.signer),o(t.systemProgram),o(t.clock)],programAddress:r,data:oA().encode(s)}}function iJe(e,n){let r=n?.programAddress??d,t={agentAccount:{value:e.agentAccount??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentAccount),o(t.userRegistry),o(t.signer),o(t.systemProgram),o(t.clock)],programAddress:r,data:oA().encode(s)}}function aJe(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{agentAccount:r(),userRegistry:r(),signer:r(),systemProgram:r(),clock:r()},data:QP().decode(e.data)}}var JP,R3=i(()=>{E();S();JP=new Uint8Array([135,157,66,195,2,113,175,30]);});function TJe(){return fixEncoderSize(getBytesEncoder(),8).encode($P)}function sA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentType",getU8Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:$P}))}function XP(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentType",getU8Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function EJe(){return combineCodec(sA(),XP())}async function YP(e,n){let r=n?.programAddress??d,t={treeAuthority:{value:e.treeAuthority??null,isWritable:true},merkleTree:{value:e.merkleTree??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},compressionProgram:{value:e.compressionProgram??null,isWritable:false},logWrapper:{value:e.logWrapper??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.treeAuthority.value||(t.treeAuthority.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,116,114,101,101,95,99,111,110,102,105,103])),getAddressEncoder().encode(T(t.signer.value))]})),t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.signer.value))]})),t.compressionProgram.value||(t.compressionProgram.value="cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK"),t.logWrapper.value||(t.logWrapper.value="noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.treeAuthority),o(t.merkleTree),o(t.userRegistry),o(t.signer),o(t.compressionProgram),o(t.logWrapper),o(t.systemProgram),o(t.clock)],programAddress:r,data:sA().encode(s)}}function SJe(e,n){let r=n?.programAddress??d,t={treeAuthority:{value:e.treeAuthority??null,isWritable:true},merkleTree:{value:e.merkleTree??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},compressionProgram:{value:e.compressionProgram??null,isWritable:false},logWrapper:{value:e.logWrapper??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.compressionProgram.value||(t.compressionProgram.value="cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK"),t.logWrapper.value||(t.logWrapper.value="noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.treeAuthority),o(t.merkleTree),o(t.userRegistry),o(t.signer),o(t.compressionProgram),o(t.logWrapper),o(t.systemProgram),o(t.clock)],programAddress:r,data:sA().encode(s)}}function xJe(e){if(e.accounts.length<8)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{treeAuthority:r(),merkleTree:r(),userRegistry:r(),signer:r(),compressionProgram:r(),logWrapper:r(),systemProgram:r(),clock:r()},data:XP().decode(e.data)}}var $P,k3=i(()=>{E();S();$P=new Uint8Array([15,6,94,55,65,80,123,248]);});function NJe(){return fixEncoderSize(getBytesEncoder(),8).encode(eR)}function iA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["metadata",it()],["codeHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["revenueShare",getF64Encoder()]]),e=>({...e,discriminator:eR}))}function tR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["metadata",at()],["codeHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["revenueShare",getF64Decoder()]])}function GJe(){return combineCodec(iA(),tR())}async function zJe(e,n){let r=n?.programAddress??d,t={extension:{value:e.extension??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},developer:{value:e.developer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.developer.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.extension),o(t.userRegistry),o(t.developer),o(t.systemProgram),o(t.clock)],programAddress:r,data:iA().encode(s)}}function LJe(e,n){let r=n?.programAddress??d,t={extension:{value:e.extension??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},developer:{value:e.developer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.extension),o(t.userRegistry),o(t.developer),o(t.systemProgram),o(t.clock)],programAddress:r,data:iA().encode(s)}}function WJe(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{extension:r(),userRegistry:r(),developer:r(),systemProgram:r(),clock:r()},data:tR().decode(e.data)}}var eR,U3=i(()=>{E();S();y();eR=new Uint8Array([158,205,4,17,6,106,172,148]);});function YJe(){return fixEncoderSize(getBytesEncoder(),8).encode(rR)}function nR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["rejectionReason",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["requestedChanges",getOptionEncoder(getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())))]]),e=>({...e,discriminator:rR}))}function oR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["rejectionReason",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["requestedChanges",getOptionDecoder(getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())))]])}function ZJe(){return combineCodec(nR(),oR())}function eQe(e,n){let r=n?.programAddress??d,t={workOrder:{value:e.workOrder??null,isWritable:true},workDelivery:{value:e.workDelivery??null,isWritable:false},client:{value:e.client??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.workOrder),o(t.workDelivery),o(t.client),o(t.clock)],programAddress:r,data:nR().encode(s)}}function tQe(e){if(e.accounts.length<4)throw new Error(ae("reject_work_delivery",e.accounts.length));let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{workOrder:r(),workDelivery:r(),client:r(),clock:r()},data:oR().decode(e.data)}}var rR,B3=i(()=>{E();S();Jt();rR=new Uint8Array([123,7,32,171,41,109,58,250]);});function uQe(){return fixEncoderSize(getBytesEncoder(),8).encode(sR)}function dA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["customization",_e()],["royaltyPercentage",getU32Encoder()]]),e=>({...e,discriminator:sR}))}function iR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["customization",ke()],["royaltyPercentage",getU32Decoder()]])}function AQe(){return combineCodec(dA(),iR())}async function gQe(e,n){let r=n?.programAddress??d,t={replicationTemplate:{value:e.replicationTemplate??null,isWritable:true},newAgent:{value:e.newAgent??null,isWritable:true},replicationRecord:{value:e.replicationRecord??null,isWritable:true},royaltyStream:{value:e.royaltyStream??null,isWritable:true},buyer:{value:e.buyer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.newAgent.value||(t.newAgent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.buyer.value))]})),t.replicationRecord.value||(t.replicationRecord.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,112,108,105,99,97,116,105,111,110,95,114,101,99,111,114,100])),getAddressEncoder().encode(T(t.replicationTemplate.value)),getAddressEncoder().encode(T(t.buyer.value))]})),t.royaltyStream.value||(t.royaltyStream.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,111,121,97,108,116,121,95,115,116,114,101,97,109])),getAddressEncoder().encode(T(t.newAgent.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.replicationTemplate),o(t.newAgent),o(t.replicationRecord),o(t.royaltyStream),o(t.buyer),o(t.systemProgram)],programAddress:r,data:dA().encode(s)}}function pQe(e,n){let r=n?.programAddress??d,t={replicationTemplate:{value:e.replicationTemplate??null,isWritable:true},newAgent:{value:e.newAgent??null,isWritable:true},replicationRecord:{value:e.replicationRecord??null,isWritable:true},royaltyStream:{value:e.royaltyStream??null,isWritable:true},buyer:{value:e.buyer??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.replicationTemplate),o(t.newAgent),o(t.replicationRecord),o(t.royaltyStream),o(t.buyer),o(t.systemProgram)],programAddress:r,data:dA().encode(s)}}function lQe(e){if(e.accounts.length<6)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{replicationTemplate:r(),newAgent:r(),replicationRecord:r(),royaltyStream:r(),buyer:r(),systemProgram:r()},data:iR().decode(e.data)}}var sR,V3=i(()=>{E();S();y();sR=new Uint8Array([252,210,89,130,31,43,39,50]);});function vQe(){return fixEncoderSize(getBytesEncoder(),8).encode(dR)}function uA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["resolution",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["awardToComplainant",getBooleanEncoder()]]),e=>({...e,discriminator:dR}))}function uR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["resolution",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["awardToComplainant",getBooleanDecoder()]])}function _Qe(){return combineCodec(uA(),uR())}async function kQe(e,n){let r=n?.programAddress??d,t={dispute:{value:e.dispute??null,isWritable:true},arbitratorRegistry:{value:e.arbitratorRegistry??null,isWritable:false},arbitrator:{value:e.arbitrator??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.arbitratorRegistry.value||(t.arbitratorRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,114,98,105,116,114,97,116,111,114,95,114,101,103,105,115,116,114,121]))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dispute),o(t.arbitratorRegistry),o(t.arbitrator),o(t.clock)],programAddress:r,data:uA().encode(s)}}function OQe(e,n){let r=n?.programAddress??d,t={dispute:{value:e.dispute??null,isWritable:true},arbitratorRegistry:{value:e.arbitratorRegistry??null,isWritable:false},arbitrator:{value:e.arbitrator??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dispute),o(t.arbitratorRegistry),o(t.arbitrator),o(t.clock)],programAddress:r,data:uA().encode(s)}}function UQe(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{dispute:r(),arbitratorRegistry:r(),arbitrator:r(),clock:r()},data:uR().decode(e.data)}}var dR,J3=i(()=>{E();S();dR=new Uint8Array([231,6,202,6,96,103,12,230]);});function VQe(){return fixEncoderSize(getBytesEncoder(),8).encode(AR)}function gR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["messageId",getU64Encoder()],["sessionId",getU64Encoder()],["sender",getAddressEncoder()],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["timestamp",getI64Encoder()]]),e=>({...e,discriminator:AR}))}function pR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["messageId",getU64Decoder()],["sessionId",getU64Decoder()],["sender",getAddressDecoder()],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["timestamp",getI64Decoder()]])}function qQe(){return combineCodec(gR(),pR())}function JQe(e,n){let r=n?.programAddress??d,t={message:{value:e.message??null,isWritable:true},session:{value:e.session??null,isWritable:true},sender:{value:e.sender??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e,sender:e.senderArg};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.message),o(t.session),o(t.sender),o(t.systemProgram)],programAddress:r,data:gR().encode(s)}}function QQe(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{message:r(),session:r(),sender:r(),systemProgram:r()},data:pR().decode(e.data)}}var AR,oV=i(()=>{E();S();AR=new Uint8Array([84,12,203,77,36,199,15,83]);});function oje(){return fixEncoderSize(getBytesEncoder(),8).encode(TR)}function gA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["messageId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",O()],["metadata",nt()],["isEncrypted",getBooleanEncoder()]]),e=>({...e,discriminator:TR}))}function ER(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["messageId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",U()],["metadata",ot()],["isEncrypted",getBooleanDecoder()]])}function cje(){return combineCodec(gA(),ER())}async function SR(e,n){let r=n?.programAddress??d,t={message:{value:e.message??null,isWritable:true},channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},sender:{value:e.sender??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.message.value||(t.message.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([109,101,115,115,97,103,101])),getAddressEncoder().encode(T(t.channel.value)),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()).encode(I(s.messageId))]})),t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.message),o(t.channel),o(t.reentrancyGuard),o(t.sender),o(t.systemProgram)],programAddress:r,data:gA().encode(s)}}function sje(e,n){let r=n?.programAddress??d,t={message:{value:e.message??null,isWritable:true},channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},sender:{value:e.sender??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.message),o(t.channel),o(t.reentrancyGuard),o(t.sender),o(t.systemProgram)],programAddress:r,data:gA().encode(s)}}function ije(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{message:r(),channel:r(),reentrancyGuard:r(),sender:r(),systemProgram:r()},data:ER().decode(e.data)}}var TR,uV=i(()=>{E();S();y();TR=new Uint8Array([157,174,222,205,233,240,244,136]);});function Rje(){return fixEncoderSize(getBytesEncoder(),8).encode(xR)}function PR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["content",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["messageType",O()],["isEncrypted",getBooleanEncoder()]]),e=>({...e,discriminator:xR}))}function RR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["content",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["messageType",U()],["isEncrypted",getBooleanDecoder()]])}function fje(){return combineCodec(PR(),RR())}function Cje(e,n){let r=n?.programAddress??d,t={message:{value:e.message??null,isWritable:true},channel:{value:e.channel??null,isWritable:true},sender:{value:e.sender??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.message),o(t.channel),o(t.sender),o(t.systemProgram)],programAddress:r,data:PR().encode(s)}}function Dje(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{message:r(),channel:r(),sender:r(),systemProgram:r()},data:RR().decode(e.data)}}var xR,pV=i(()=>{E();S();y();xR=new Uint8Array([57,40,34,178,189,10,65,26]);});function Uje(){return fixEncoderSize(getBytesEncoder(),8).encode(CR)}function pA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["evidenceType",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["evidenceData",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:CR}))}function DR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["evidenceType",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["evidenceData",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function wje(){return combineCodec(pA(),DR())}async function Fje(e,n){let r=n?.programAddress??d,t={dispute:{value:e.dispute??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},submitter:{value:e.submitter??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.submitter.value))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dispute),o(t.userRegistry),o(t.submitter),o(t.clock)],programAddress:r,data:pA().encode(s)}}function Nje(e,n){let r=n?.programAddress??d,t={dispute:{value:e.dispute??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},submitter:{value:e.submitter??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dispute),o(t.userRegistry),o(t.submitter),o(t.clock)],programAddress:r,data:pA().encode(s)}}function Gje(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{dispute:r(),userRegistry:r(),submitter:r(),clock:r()},data:DR().decode(e.data)}}var CR,PV=i(()=>{E();S();CR=new Uint8Array([177,174,100,125,106,213,241,22]);});function jje(){return fixEncoderSize(getBytesEncoder(),8).encode(bR)}function lA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["evidenceBatch",getArrayEncoder(lc())]]),e=>({...e,discriminator:bR}))}function MR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["evidenceBatch",getArrayDecoder(mc())]])}function $je(){return combineCodec(lA(),MR())}async function Xje(e,n){let r=n?.programAddress??d,t={dispute:{value:e.dispute??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},submitter:{value:e.submitter??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.submitter.value))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dispute),o(t.userRegistry),o(t.submitter),o(t.clock)],programAddress:r,data:lA().encode(s)}}function Yje(e,n){let r=n?.programAddress??d,t={dispute:{value:e.dispute??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},submitter:{value:e.submitter??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dispute),o(t.userRegistry),o(t.submitter),o(t.clock)],programAddress:r,data:lA().encode(s)}}function Zje(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{dispute:r(),userRegistry:r(),submitter:r(),clock:r()},data:MR().decode(e.data)}}var bR,fV=i(()=>{E();S();y();bR=new Uint8Array([168,150,145,75,38,203,43,9]);});function u$e(){return fixEncoderSize(getBytesEncoder(),8).encode(vR)}function mA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["deliverables",getArrayEncoder(Je())],["ipfsHash",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:vR}))}function _R(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["deliverables",getArrayDecoder(Qe())],["ipfsHash",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function A$e(){return combineCodec(mA(),_R())}async function g$e(e,n){let r=n?.programAddress??d,t={workDelivery:{value:e.workDelivery??null,isWritable:true},workOrder:{value:e.workOrder??null,isWritable:true},provider:{value:e.provider??null,isWritable:true},clock:{value:e.clock??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.workDelivery.value||(t.workDelivery.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([119,111,114,107,95,100,101,108,105,118,101,114,121])),getAddressEncoder().encode(T(t.workOrder.value))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.workDelivery),o(t.workOrder),o(t.provider),o(t.clock),o(t.systemProgram)],programAddress:r,data:mA().encode(s)}}function p$e(e,n){let r=n?.programAddress??d,t={workDelivery:{value:e.workDelivery??null,isWritable:true},workOrder:{value:e.workOrder??null,isWritable:true},provider:{value:e.provider??null,isWritable:true},clock:{value:e.clock??null,isWritable:false},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111"),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.workDelivery),o(t.workOrder),o(t.provider),o(t.clock),o(t.systemProgram)],programAddress:r,data:mA().encode(s)}}function l$e(e){if(e.accounts.length<5)throw new Error(ae("submit_work_delivery",e.accounts.length));let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{workDelivery:r(),workOrder:r(),provider:r(),clock:r(),systemProgram:r()},data:_R().decode(e.data)}}var vR,_V=i(()=>{E();S();y();Jt();vR=new Uint8Array([151,198,209,252,41,69,106,93]);});function P$e(){return fixEncoderSize(getBytesEncoder(),8).encode(kR)}function OR(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)]]),e=>({...e,discriminator:kR}))}function UR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)]])}function R$e(){return combineCodec(OR(),UR())}function f$e(e,n){let r=n?.programAddress??d,t={proposal:{value:e.proposal??null,isWritable:true},authority:{value:e.authority??null,isWritable:true}},s=u(r);return {accounts:[s(t.proposal),s(t.authority)],programAddress:r,data:OR().encode({})}}function C$e(e){if(e.accounts.length<2)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{proposal:r(),authority:r()},data:UR().decode(e.data)}}var kR,UV=i(()=>{E();S();kR=new Uint8Array([144,82,0,72,160,132,35,121]);});function W$e(){return fixEncoderSize(getBytesEncoder(),8).encode(FR)}function yA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["statusId",getU64Encoder()],["agent",getAddressEncoder()],["status",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["availability",getBooleanEncoder()],["lastUpdated",getI64Encoder()]]),e=>({...e,discriminator:FR}))}function NR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["statusId",getU64Decoder()],["agent",getAddressDecoder()],["status",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["availability",getBooleanDecoder()],["lastUpdated",getI64Decoder()]])}function K$e(){return combineCodec(yA(),NR())}async function B$e(e,n){let r=n?.programAddress??d,t={status:{value:e.status??null,isWritable:true},session:{value:e.session??null,isWritable:false},updater:{value:e.updater??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e,status:e.statusArg};t.status.value||(t.status.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,50,97,95,115,116,97,116,117,115])),getAddressEncoder().encode(T(t.session.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.status),o(t.session),o(t.updater),o(t.systemProgram)],programAddress:r,data:yA().encode(s)}}function H$e(e,n){let r=n?.programAddress??d,t={status:{value:e.status??null,isWritable:true},session:{value:e.session??null,isWritable:false},updater:{value:e.updater??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e,status:e.statusArg};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.status),o(t.session),o(t.updater),o(t.systemProgram)],programAddress:r,data:yA().encode(s)}}function V$e(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{status:r(),session:r(),updater:r(),systemProgram:r()},data:NR().decode(e.data)}}var FR,BV=i(()=>{E();S();FR=new Uint8Array([10,122,84,103,225,186,125,183]);});function rXe(){return fixEncoderSize(getBytesEncoder(),8).encode(KR)}function TA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentType",getU8Encoder()],["metadataUri",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:KR}))}function BR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentType",getU8Decoder()],["metadataUri",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function nXe(){return combineCodec(TA(),BR())}async function oXe(e,n){let r=n?.programAddress??d,t={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.agentAccount.value||(t.agentAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.signer.value)),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()).encode(I(s.agentId))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentAccount),o(t.signer),o(t.clock)],programAddress:r,data:TA().encode(s)}}function HR(e,n){let r=n?.programAddress??d,t={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentAccount),o(t.signer),o(t.clock)],programAddress:r,data:TA().encode(s)}}function cXe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{agentAccount:r(),signer:r(),clock:r()},data:BR().decode(e.data)}}var KR,QV=i(()=>{E();S();KR=new Uint8Array([85,2,178,9,119,139,102,164]);});function SXe(){return fixEncoderSize(getBytesEncoder(),8).encode(qR)}function EA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentId",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["reputationScore",getU64Encoder()]]),e=>({...e,discriminator:qR}))}function JR(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentId",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["reputationScore",getU64Decoder()]])}function xXe(){return combineCodec(EA(),JR())}async function PXe(e,n){let r=n?.programAddress??d,t={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.agentAccount.value||(t.agentAccount.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.signer.value)),addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()).encode(I(s.agentId))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentAccount),o(t.signer),o(t.clock)],programAddress:r,data:EA().encode(s)}}function RXe(e,n){let r=n?.programAddress??d,t={agentAccount:{value:e.agentAccount??null,isWritable:true},signer:{value:e.signer??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentAccount),o(t.signer),o(t.clock)],programAddress:r,data:EA().encode(s)}}function fXe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{agentAccount:r(),signer:r(),clock:r()},data:JR().decode(e.data)}}var qR,ZV=i(()=>{E();S();qR=new Uint8Array([80,227,92,245,231,37,99,180]);});function LXe(){return fixEncoderSize(getBytesEncoder(),8).encode(tf)}function SA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentPubkey",getAddressEncoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["isActive",getBooleanEncoder()],["lastUpdated",getI64Encoder()],["metadataUri",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))],["capabilities",getArrayEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:tf}))}function rf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentPubkey",getAddressDecoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["isActive",getBooleanDecoder()],["lastUpdated",getI64Decoder()],["metadataUri",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))],["capabilities",getArrayDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function WXe(){return combineCodec(SA(),rf())}async function KXe(e,n){let r=n?.programAddress??d,t={agent:{value:e.agent??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.agent.value||(t.agent.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116])),getAddressEncoder().encode(T(t.owner.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agent),o(t.owner),o(t.systemProgram)],programAddress:r,data:SA().encode(s)}}function BXe(e,n){let r=n?.programAddress??d,t={agent:{value:e.agent??null,isWritable:true},owner:{value:e.owner??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agent),o(t.owner),o(t.systemProgram)],programAddress:r,data:SA().encode(s)}}function HXe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{agent:r(),owner:r(),systemProgram:r()},data:rf().decode(e.data)}}var tf,r5=i(()=>{E();S();tf=new Uint8Array([87,146,181,198,252,68,243,102]);});function cYe(){return fixEncoderSize(getBytesEncoder(),8).encode(of)}function xA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["newMetrics",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())]]),e=>({...e,discriminator:of}))}function cf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["newMetrics",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())]])}function sYe(){return combineCodec(xA(),cf())}async function iYe(e,n){let r=n?.programAddress??d,t={dashboard:{value:e.dashboard??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},owner:{value:e.owner??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.userRegistry.value||(t.userRegistry.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([117,115,101,114,95,114,101,103,105,115,116,114,121])),getAddressEncoder().encode(T(t.owner.value))]})),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dashboard),o(t.userRegistry),o(t.owner),o(t.clock)],programAddress:r,data:xA().encode(s)}}function aYe(e,n){let r=n?.programAddress??d,t={dashboard:{value:e.dashboard??null,isWritable:true},userRegistry:{value:e.userRegistry??null,isWritable:true},owner:{value:e.owner??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.dashboard),o(t.userRegistry),o(t.owner),o(t.clock)],programAddress:r,data:xA().encode(s)}}function dYe(e){if(e.accounts.length<4)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{dashboard:r(),userRegistry:r(),owner:r(),clock:r()},data:cf().decode(e.data)}}var of,o5=i(()=>{E();S();of=new Uint8Array([184,35,106,114,27,86,233,32]);});function xYe(){return fixEncoderSize(getBytesEncoder(),8).encode(sf)}function af(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["newReservePrice",getU64Encoder()],["revealHidden",getBooleanEncoder()]]),e=>({...e,discriminator:sf}))}function df(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["newReservePrice",getU64Decoder()],["revealHidden",getBooleanDecoder()]])}function PYe(){return combineCodec(af(),df())}function RYe(e,n){let r=n?.programAddress??d,t={auction:{value:e.auction??null,isWritable:true},authority:{value:e.authority??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.auction),o(t.authority),o(t.clock)],programAddress:r,data:af().encode(s)}}function fYe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{auction:r(),authority:r(),clock:r()},data:df().decode(e.data)}}var sf,i5=i(()=>{E();S();sf=new Uint8Array([97,2,209,24,27,236,50,174]);});function _Ye(){return fixEncoderSize(getBytesEncoder(),8).encode(Af)}function PA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["newMetadata",H()]]),e=>({...e,discriminator:Af}))}function gf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["newMetadata",V()]])}function kYe(){return combineCodec(PA(),gf())}async function OYe(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:false}},s={...e};t.reentrancyGuard.value||(t.reentrancyGuard.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([114,101,101,110,116,114,97,110,99,121,95,103,117,97,114,100]))]}));let o=u(r);return {accounts:[o(t.channel),o(t.reentrancyGuard),o(t.authority)],programAddress:r,data:PA().encode(s)}}function pf(e,n){let r=n?.programAddress??d,t={channel:{value:e.channel??null,isWritable:true},reentrancyGuard:{value:e.reentrancyGuard??null,isWritable:true},authority:{value:e.authority??null,isWritable:false}},s={...e},o=u(r);return {accounts:[o(t.channel),o(t.reentrancyGuard),o(t.authority)],programAddress:r,data:PA().encode(s)}}function UYe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{channel:r(),reentrancyGuard:r(),authority:r()},data:gf().decode(e.data)}}var Af,d5=i(()=>{E();S();y();Af=new Uint8Array([149,67,63,108,132,122,95,128]);});function JYe(){return fixEncoderSize(getBytesEncoder(),8).encode(yf)}function Tf(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["currentDemand",getU64Encoder()],["peakDemand",getU64Encoder()],["averageDemand",getU64Encoder()],["demandTrend",getI32Encoder()],["demandVolatility",getU32Encoder()],["lastUpdated",getI64Encoder()]]),e=>({...e,discriminator:yf}))}function Ef(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["currentDemand",getU64Decoder()],["peakDemand",getU64Decoder()],["averageDemand",getU64Decoder()],["demandTrend",getI32Decoder()],["demandVolatility",getU32Decoder()],["lastUpdated",getI64Decoder()]])}function QYe(){return combineCodec(Tf(),Ef())}function jYe(e,n){let r=n?.programAddress??d,t={engine:{value:e.engine??null,isWritable:true},updater:{value:e.updater??null,isWritable:false}},s={...e},o=u(r);return {accounts:[o(t.engine),o(t.updater)],programAddress:r,data:Tf().encode(s)}}function $Ye(e){if(e.accounts.length<2)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{engine:r(),updater:r()},data:Ef().decode(e.data)}}var yf,g5=i(()=>{E();S();yf=new Uint8Array([22,97,198,34,14,133,83,168]);});function nZe(){return fixEncoderSize(getBytesEncoder(),8).encode(Sf)}function xf(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["volume",getU64Encoder()],["price",getU64Encoder()]]),e=>({...e,discriminator:Sf}))}function Pf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["volume",getU64Decoder()],["price",getU64Decoder()]])}function oZe(){return combineCodec(xf(),Pf())}function cZe(e,n){let r=n?.programAddress??d,t={marketAnalytics:{value:e.marketAnalytics??null,isWritable:true},authority:{value:e.authority??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.marketAnalytics),o(t.authority),o(t.clock)],programAddress:r,data:xf().encode(s)}}function sZe(e){if(e.accounts.length<3)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{marketAnalytics:r(),authority:r(),clock:r()},data:Pf().decode(e.data)}}var Sf,T5=i(()=>{E();S();Sf=new Uint8Array([156,13,81,78,11,3,54,178]);});function bZe(){return fixEncoderSize(getBytesEncoder(),8).encode(Cf)}function RA(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["agentPubkey",getAddressEncoder()],["serviceEndpoint",addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder())],["supportedCapabilities",getArrayEncoder(getU64Encoder())],["verifiedAt",getI64Encoder()]]),e=>({...e,discriminator:Cf}))}function Df(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["agentPubkey",getAddressDecoder()],["serviceEndpoint",addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder())],["supportedCapabilities",getArrayDecoder(getU64Decoder())],["verifiedAt",getI64Decoder()]])}function MZe(){return combineCodec(RA(),Df())}async function If(e,n){let r=n?.programAddress??d,t={agentVerification:{value:e.agentVerification??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},verifier:{value:e.verifier??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.agentVerification.value||(t.agentVerification.value=await getProgramDerivedAddress({programAddress:r,seeds:[getBytesEncoder().encode(new Uint8Array([97,103,101,110,116,95,118,101,114,105,102,105,99,97,116,105,111,110])),getAddressEncoder().encode(T(t.agent.value)),getAddressEncoder().encode(T(t.verifier.value))]})),t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentVerification),o(t.agent),o(t.verifier),o(t.systemProgram),o(t.clock)],programAddress:r,data:RA().encode(s)}}function hZe(e,n){let r=n?.programAddress??d,t={agentVerification:{value:e.agentVerification??null,isWritable:true},agent:{value:e.agent??null,isWritable:false},verifier:{value:e.verifier??null,isWritable:true},systemProgram:{value:e.systemProgram??null,isWritable:false},clock:{value:e.clock??null,isWritable:false}},s={...e};t.systemProgram.value||(t.systemProgram.value="11111111111111111111111111111111"),t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.agentVerification),o(t.agent),o(t.verifier),o(t.systemProgram),o(t.clock)],programAddress:r,data:RA().encode(s)}}function vZe(e){if(e.accounts.length<5)throw new Error("[GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS] Not enough accounts");let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{agentVerification:r(),agent:r(),verifier:r(),systemProgram:r(),clock:r()},data:Df().decode(e.data)}}var Cf,S5=i(()=>{E();S();Cf=new Uint8Array([206,212,108,12,105,61,100,66]);});function VZe(){return fixEncoderSize(getBytesEncoder(),8).encode(bf)}function Mf(){return transformEncoder(getStructEncoder([["discriminator",fixEncoderSize(getBytesEncoder(),8)],["verificationNotes",getOptionEncoder(addEncoderSizePrefix(getUtf8Encoder(),getU32Encoder()))]]),e=>({...e,discriminator:bf}))}function hf(){return getStructDecoder([["discriminator",fixDecoderSize(getBytesDecoder(),8)],["verificationNotes",getOptionDecoder(addDecoderSizePrefix(getUtf8Decoder(),getU32Decoder()))]])}function qZe(){return combineCodec(Mf(),hf())}function JZe(e,n){let r=n?.programAddress??d,t={workOrder:{value:e.workOrder??null,isWritable:true},workDelivery:{value:e.workDelivery??null,isWritable:false},client:{value:e.client??null,isWritable:true},clock:{value:e.clock??null,isWritable:false}},s={...e};t.clock.value||(t.clock.value="SysvarC1ock11111111111111111111111111111111");let o=u(r);return {accounts:[o(t.workOrder),o(t.workDelivery),o(t.client),o(t.clock)],programAddress:r,data:Mf().encode(s)}}function QZe(e){if(e.accounts.length<4)throw new Error(ae("verify_work_delivery",e.accounts.length));let n=0,r=()=>{let c=e.accounts[n];return n+=1,c};return {programAddress:e.programAddress,accounts:{workOrder:r(),workDelivery:r(),client:r(),clock:r()},data:hf().decode(e.data)}}var bf,R5=i(()=>{E();S();Jt();bf=new Uint8Array([51,21,40,11,225,15,184,230]);});var f5=i(()=>{HB();jB();XB();e0();d0();g0();l0();T0();S0();R0();C0();O0();G0();q0();j0();X0();nH();aH();uH();mH();EH();RH();MH();vH();UH();GH();WH();$H();t4();o4();s4();d4();A4();l4();T4();x4();f4();I4();h4();k4();w4();G4();W4();H4();$4();Z4();o6();s6();d6();A6();x6();R6();C6();I6();_6();F6();G6();L6();B6();q6();Q6();X6();e3();r3();o3();s3();p3();m3();R3();k3();U3();B3();V3();J3();oV();uV();pV();PV();fV();_V();UV();BV();QV();ZV();r5();o5();i5();d5();g5();T5();S5();R5();});var fA={};M5(fA,{A2_A_MESSAGE_DISCRIMINATOR:()=>UA,A2_A_SESSION_DISCRIMINATOR:()=>NA,A2_A_STATUS_DISCRIMINATOR:()=>LA,ACCEPT_JOB_APPLICATION_DISCRIMINATOR:()=>vT,ACTIVATE_AGENT_DISCRIMINATOR:()=>OT,ADD_MESSAGE_REACTION_DISCRIMINATOR:()=>NT,ADD_TOP_AGENT_DISCRIMINATOR:()=>LT,AGENT_DISCRIMINATOR:()=>Cm,AGENT_INCENTIVES_DISCRIMINATOR:()=>bm,AGENT_TREE_CONFIG_DISCRIMINATOR:()=>vm,AGENT_VERIFICATION_DISCRIMINATOR:()=>Om,ANALYTICS_DASHBOARD_DISCRIMINATOR:()=>Gm,APPLY_TO_JOB_DISCRIMINATOR:()=>qT,APPROVE_EXTENSION_DISCRIMINATOR:()=>QT,ARBITRATOR_REGISTRY_DISCRIMINATOR:()=>Wm,ASSIGN_ARBITRATOR_DISCRIMINATOR:()=>YT,AUCTION_MARKETPLACE_DISCRIMINATOR:()=>Hm,AUDIT_TRAIL_DISCRIMINATOR:()=>jm,AccountState:()=>rn,ActivationRequirementType:()=>an,ApplicationStatus:()=>Sn,AuctionStatus:()=>Mn,AuctionType:()=>_n,AuditAction:()=>kn,AuthenticationLevel:()=>Wn,AuthenticationMethod:()=>Hn,BATCH_REPLICATE_AGENTS_DISCRIMINATOR:()=>eE,BULK_DEAL_DISCRIMINATOR:()=>ey,BackupFrequency:()=>no,BiometricQuality:()=>ao,BiometricStorageMethod:()=>uo,BiometricType:()=>Ao,CANCEL_ESCROW_DISCRIMINATOR:()=>oE,CAST_VOTE_DISCRIMINATOR:()=>iE,CHANNEL_DISCRIMINATOR:()=>ny,COMPLETE_ESCROW_DISCRIMINATOR:()=>AE,COMPLIANCE_REPORT_DISCRIMINATOR:()=>uy,CREATE_A2A_SESSION_DISCRIMINATOR:()=>yE,CREATE_ANALYTICS_DASHBOARD_DISCRIMINATOR:()=>EE,CREATE_BULK_DEAL_DISCRIMINATOR:()=>PE,CREATE_CHANNEL_DISCRIMINATOR:()=>fE,CREATE_DYNAMIC_PRICING_ENGINE_DISCRIMINATOR:()=>bE,CREATE_ENHANCED_CHANNEL_DISCRIMINATOR:()=>hE,CREATE_ESCROW_DISCRIMINATOR:()=>kE,CREATE_INCENTIVE_PROGRAM_DISCRIMINATOR:()=>FE,CREATE_JOB_POSTING_DISCRIMINATOR:()=>WE,CREATE_MARKET_ANALYTICS_DISCRIMINATOR:()=>HE,CREATE_MULTISIG_DISCRIMINATOR:()=>JE,CREATE_REPLICATION_TEMPLATE_DISCRIMINATOR:()=>YE,CREATE_ROYALTY_STREAM_DISCRIMINATOR:()=>tS,CREATE_SERVICE_AUCTION_DISCRIMINATOR:()=>cS,CREATE_SERVICE_LISTING_DISCRIMINATOR:()=>iS,CREATE_TOKEN2022_MINT_DISCRIMINATOR:()=>gS,CREATE_WORK_ORDER_DISCRIMINATOR:()=>RS,ChannelType:()=>Yt,ComplianceStatus:()=>Co,ConditionType:()=>Do,ConstraintOperator:()=>Uo,ContractStatus:()=>wo,DEACTIVATE_AGENT_DISCRIMINATOR:()=>IS,DELEGATE_VOTE_DISCRIMINATOR:()=>vS,DISPUTE_CASE_DISCRIMINATOR:()=>my,DISPUTE_ESCROW_DISCRIMINATOR:()=>OS,DISTRIBUTE_INCENTIVES_DISCRIMINATOR:()=>FS,DYNAMIC_PRICING_ENGINE_DISCRIMINATOR:()=>Ey,DataAccessLevel:()=>Go,DealType:()=>Bo,DegradationHandling:()=>Ho,Deliverable:()=>Jo,DisputeStatus:()=>$o,DutchAuctionDecayType:()=>tc,ESCROW_DISCRIMINATOR:()=>hy,EXECUTE_BULK_DEAL_BATCH_DISCRIMINATOR:()=>LS,EXECUTE_PROPOSAL_DISCRIMINATOR:()=>KS,EXPORT_ACTION_DISCRIMINATOR:()=>VS,EXPORT_AUDIT_CONTEXT_DISCRIMINATOR:()=>QS,EXPORT_BIOMETRIC_QUALITY_DISCRIMINATOR:()=>XS,EXPORT_COMPLIANCE_STATUS_DISCRIMINATOR:()=>ex,EXPORT_DYNAMIC_PRICING_CONFIG_DISCRIMINATOR:()=>nx,EXPORT_MULTISIG_CONFIG_DISCRIMINATOR:()=>sx,EXPORT_REPORT_ENTRY_DISCRIMINATOR:()=>dx,EXPORT_RESOURCE_CONSTRAINTS_DISCRIMINATOR:()=>gx,EXPORT_RULE_CONDITION_DISCRIMINATOR:()=>mx,EXTEND_AUCTION_FOR_RESERVE_DISCRIMINATOR:()=>Ex,EXTENSION_DISCRIMINATOR:()=>ky,EnforcementLevel:()=>ac,EscrowStatus:()=>Ac,ExtensionStatus:()=>Ec,ExtensionType:()=>Pc,FILE_DISPUTE_DISCRIMINATOR:()=>Rx,FINALIZE_AUCTION_DISCRIMINATOR:()=>Cx,GENERATE_COMPLIANCE_REPORT_DISCRIMINATOR:()=>Mx,GHOSTSPEAK_MARKETPLACE_ERROR__DEFAULT_KEY_AS_ADMIN:()=>hB,GHOSTSPEAK_MARKETPLACE_ERROR__INSTRUCTION_PARSING_FAILED:()=>NB,GHOSTSPEAK_MARKETPLACE_ERROR__INSUFFICIENT_ACCOUNTS:()=>OB,GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_ACCOUNT:()=>FB,GHOSTSPEAK_MARKETPLACE_ERROR__INVALID_INSTRUCTION_DATA:()=>UB,GHOSTSPEAK_MARKETPLACE_ERROR__MISSING_REQUIRED_ACCOUNT:()=>wB,GHOSTSPEAK_MARKETPLACE_ERROR__SYSTEM_PROGRAM_AS_ADMIN:()=>MB,GHOSTSPEAK_MARKETPLACE_ERROR__TEST_ADDRESS_ON_MAINNET:()=>_B,GHOSTSPEAK_MARKETPLACE_ERROR__UNAUTHORIZED_ADMIN:()=>vB,GHOSTSPEAK_MARKETPLACE_ERROR__VALIDATION_FAILED:()=>kB,GHOSTSPEAK_MARKETPLACE_PROGRAM_ADDRESS:()=>d,GOVERNANCE_PROPOSAL_DISCRIMINATOR:()=>Ny,GhostspeakMarketplaceAccount:()=>DB,GhostspeakMarketplaceInstruction:()=>IB,INCENTIVE_PROGRAM_DISCRIMINATOR:()=>Ly,INITIALIZE_AUDIT_TRAIL_DISCRIMINATOR:()=>_x,INITIALIZE_CONFIDENTIAL_TRANSFER_MINT_DISCRIMINATOR:()=>Ux,INITIALIZE_DEFAULT_ACCOUNT_STATE_DISCRIMINATOR:()=>Nx,INITIALIZE_GOVERNANCE_PROPOSAL_DISCRIMINATOR:()=>Lx,INITIALIZE_INTEREST_BEARING_CONFIG_DISCRIMINATOR:()=>Bx,INITIALIZE_MINT_CLOSE_AUTHORITY_DISCRIMINATOR:()=>qx,INITIALIZE_RBAC_CONFIG_DISCRIMINATOR:()=>jx,INITIALIZE_TRANSFER_FEE_CONFIG_DISCRIMINATOR:()=>Zx,INITIATE_NEGOTIATION_DISCRIMINATOR:()=>rP,JOB_APPLICATION_DISCRIMINATOR:()=>Vy,JOB_CONTRACT_DISCRIMINATOR:()=>$y,JOB_POSTING_DISCRIMINATOR:()=>n1,JOIN_CHANNEL_DISCRIMINATOR:()=>cP,LEAVE_CHANNEL_DISCRIMINATOR:()=>dP,LIST_AGENT_FOR_RESALE_DISCRIMINATOR:()=>pP,MAKE_COUNTER_OFFER_DISCRIMINATOR:()=>mP,MANAGE_AGENT_STATUS_DISCRIMINATOR:()=>SP,MARKET_ANALYTICS_DISCRIMINATOR:()=>s1,MESSAGE_DISCRIMINATOR:()=>d1,MULTISIG_DISCRIMINATOR:()=>l1,MessageType:()=>cr,NEGOTIATION_CHATBOT_DISCRIMINATOR:()=>S1,NegotiationStatus:()=>Yc,NotificationMethod:()=>cs,NotificationPriority:()=>as,NotificationTargetType:()=>Ss,NotificationTiming:()=>xs,PAYMENT_DISCRIMINATOR:()=>R1,PLACE_AUCTION_BID_DISCRIMINATOR:()=>PP,PLACE_DUTCH_AUCTION_BID_DISCRIMINATOR:()=>CP,PROCESS_ESCROW_PAYMENT_DISCRIMINATOR:()=>bP,PROCESS_PARTIAL_REFUND_DISCRIMINATOR:()=>vP,PROCESS_PAYMENT_DISCRIMINATOR:()=>UP,PURCHASE_SERVICE_DISCRIMINATOR:()=>zP,PermissionConstraintType:()=>Js,PolicyStatus:()=>ai,PolicyType:()=>di,PricingAlgorithm:()=>ui,PricingModel:()=>Ai,ProposalStatus:()=>Ei,ProposalType:()=>Si,PurchaseStatus:()=>xi,QuorumMethod:()=>fi,RBAC_CONFIG_DISCRIMINATOR:()=>h1,REENTRANCY_GUARD_DISCRIMINATOR:()=>k1,REFUND_EXPIRED_ESCROW_DISCRIMINATOR:()=>KP,REGISTER_AGENT_COMPRESSED_DISCRIMINATOR:()=>$P,REGISTER_AGENT_DISCRIMINATOR:()=>JP,REGISTER_EXTENSION_DISCRIMINATOR:()=>eR,REJECT_WORK_DELIVERY_DISCRIMINATOR:()=>rR,REPLICATE_AGENT_DISCRIMINATOR:()=>sR,REPLICATION_RECORD_DISCRIMINATOR:()=>w1,REPLICATION_TEMPLATE_DISCRIMINATOR:()=>K1,RESALE_MARKET_DISCRIMINATOR:()=>J1,RESOLVE_DISPUTE_DISCRIMINATOR:()=>dR,ROYALTY_STREAM_DISCRIMINATOR:()=>$1,ReentrancyState:()=>Mi,ReportStatus:()=>Gi,ReportType:()=>Wi,ReportingFrequency:()=>Ni,RiskCategory:()=>Qi,RiskLevel:()=>ta,RoleStatus:()=>xa,RoleType:()=>Pa,RuleEffect:()=>Ra,SEND_A2A_MESSAGE_DISCRIMINATOR:()=>AR,SEND_ENHANCED_MESSAGE_DISCRIMINATOR:()=>TR,SEND_MESSAGE_DISCRIMINATOR:()=>xR,SERVICE_LISTING_DISCRIMINATOR:()=>tT,SERVICE_PURCHASE_DISCRIMINATOR:()=>aT,SUBMIT_DISPUTE_EVIDENCE_DISCRIMINATOR:()=>CR,SUBMIT_EVIDENCE_BATCH_DISCRIMINATOR:()=>bR,SUBMIT_WORK_DELIVERY_DISCRIMINATOR:()=>vR,ScopeInheritance:()=>Da,ScopeType:()=>Ia,SecurityEventType:()=>ba,SodConstraintType:()=>Ua,StepUpTrigger:()=>wa,TALLY_VOTES_DISCRIMINATOR:()=>kR,TimeLockType:()=>La,TransactionPriority:()=>Ba,TransactionStatus:()=>Ha,TransactionType:()=>Va,TrendDirection:()=>Qa,UPDATE_A2A_STATUS_DISCRIMINATOR:()=>FR,UPDATE_AGENT_DISCRIMINATOR:()=>KR,UPDATE_AGENT_REPUTATION_DISCRIMINATOR:()=>qR,UPDATE_AGENT_SERVICE_DISCRIMINATOR:()=>tf,UPDATE_ANALYTICS_DASHBOARD_DISCRIMINATOR:()=>of,UPDATE_AUCTION_RESERVE_PRICE_DISCRIMINATOR:()=>sf,UPDATE_CHANNEL_SETTINGS_DISCRIMINATOR:()=>Af,UPDATE_DYNAMIC_PRICING_DISCRIMINATOR:()=>yf,UPDATE_MARKET_ANALYTICS_DISCRIMINATOR:()=>Sf,USER_REGISTRY_DISCRIMINATOR:()=>AT,UnlockMethod:()=>ja,VERIFY_AGENT_DISCRIMINATOR:()=>Cf,VERIFY_WORK_DELIVERY_DISCRIMINATOR:()=>bf,ValueType:()=>$a,ViolationSeverity:()=>Xa,VoteChoice:()=>ed,WORK_DELIVERY_DISCRIMINATOR:()=>lT,WORK_ORDER_DISCRIMINATOR:()=>DT,WorkOrderStatus:()=>id,decodeA2AMessage:()=>FA,decodeA2ASession:()=>zA,decodeA2AStatus:()=>KA,decodeAgent:()=>Im,decodeAgentIncentives:()=>hm,decodeAgentTreeConfig:()=>km,decodeAgentVerification:()=>wm,decodeAnalyticsDashboard:()=>Lm,decodeArbitratorRegistry:()=>Bm,decodeAuctionMarketplace:()=>qm,decodeAuditTrail:()=>Xm,decodeBulkDeal:()=>ry,decodeChannel:()=>cy,decodeComplianceReport:()=>gy,decodeDisputeCase:()=>Ty,decodeDynamicPricingEngine:()=>xy,decodeEscrow:()=>_y,decodeExtension:()=>Uy,decodeGovernanceProposal:()=>zy,decodeIncentiveProgram:()=>Ky,decodeJobApplication:()=>Jy,decodeJobContract:()=>Yy,decodeJobPosting:()=>c1,decodeMarketAnalytics:()=>a1,decodeMessage:()=>A1,decodeMultisig:()=>y1,decodeNegotiationChatbot:()=>P1,decodePayment:()=>C1,decodeRbacConfig:()=>_1,decodeReentrancyGuard:()=>U1,decodeReplicationRecord:()=>N1,decodeReplicationTemplate:()=>H1,decodeResaleMarket:()=>j1,decodeRoyaltyStream:()=>Y1,decodeServiceListing:()=>nT,decodeServicePurchase:()=>uT,decodeUserRegistry:()=>pT,decodeWorkDelivery:()=>yT,decodeWorkOrder:()=>bT,delegationScope:()=>ere,fetchA2AMessage:()=>Q5,fetchA2ASession:()=>m9,fetchA2AStatus:()=>L9,fetchAgent:()=>Ofe,fetchAgentIncentives:()=>oCe,fetchAgentTreeConfig:()=>CCe,fetchAgentVerification:()=>HCe,fetchAllA2AMessage:()=>j5,fetchAllA2ASession:()=>y9,fetchAllA2AStatus:()=>W9,fetchAllAgent:()=>Ufe,fetchAllAgentIncentives:()=>cCe,fetchAllAgentTreeConfig:()=>DCe,fetchAllAgentVerification:()=>VCe,fetchAllAnalyticsDashboard:()=>yDe,fetchAllArbitratorRegistry:()=>wDe,fetchAllAuctionMarketplace:()=>rIe,fetchAllAuditTrail:()=>PIe,fetchAllBulkDeal:()=>QIe,fetchAllChannel:()=>mbe,fetchAllComplianceReport:()=>kbe,fetchAllDisputeCase:()=>tMe,fetchAllDynamicPricingEngine:()=>CMe,fetchAllEscrow:()=>VMe,fetchAllExtension:()=>yhe,fetchAllGovernanceProposal:()=>whe,fetchAllIncentiveProgram:()=>ove,fetchAllJobApplication:()=>Ive,fetchAllJobContract:()=>Vve,fetchAllJobPosting:()=>A_e,fetchAllMarketAnalytics:()=>k_e,fetchAllMaybeA2AMessage:()=>oC,fetchAllMaybeA2ASession:()=>xC,fetchAllMaybeA2AStatus:()=>kC,fetchAllMaybeAgent:()=>xz,fetchAllMaybeAgentIncentives:()=>Iz,fetchAllMaybeAgentTreeConfig:()=>Uz,fetchAllMaybeAgentVerification:()=>Hz,fetchAllMaybeAnalyticsDashboard:()=>e8,fetchAllMaybeArbitratorRegistry:()=>u8,fetchAllMaybeAuctionMarketplace:()=>x8,fetchAllMaybeAuditTrail:()=>M8,fetchAllMaybeBulkDeal:()=>G8,fetchAllMaybeChannel:()=>$8,fetchAllMaybeComplianceReport:()=>eL,fetchAllMaybeDisputeCase:()=>lL,fetchAllMaybeDynamicPricingEngine:()=>RL,fetchAllMaybeEscrow:()=>vL,fetchAllMaybeExtension:()=>KL,fetchAllMaybeGovernanceProposal:()=>eW,fetchAllMaybeIncentiveProgram:()=>aW,fetchAllMaybeJobApplication:()=>RW,fetchAllMaybeJobContract:()=>MW,fetchAllMaybeJobPosting:()=>GW,fetchAllMaybeMarketAnalytics:()=>$W,fetchAllMaybeMessage:()=>oK,fetchAllMaybeMultisig:()=>EK,fetchAllMaybeNegotiationChatbot:()=>MK,fetchAllMaybePayment:()=>FK,fetchAllMaybeRbacConfig:()=>HK,fetchAllMaybeReentrancyGuard:()=>$K,fetchAllMaybeReplicationRecord:()=>o2,fetchAllMaybeReplicationTemplate:()=>g2,fetchAllMaybeResaleMarket:()=>R2,fetchAllMaybeRoyaltyStream:()=>k2,fetchAllMaybeServiceListing:()=>G2,fetchAllMaybeServicePurchase:()=>$2,fetchAllMaybeUserRegistry:()=>rB,fetchAllMaybeWorkDelivery:()=>yB,fetchAllMaybeWorkOrder:()=>RB,fetchAllMessage:()=>cke,fetchAllMultisig:()=>xke,fetchAllNegotiationChatbot:()=>Bke,fetchAllPayment:()=>gOe,fetchAllRbacConfig:()=>hOe,fetchAllReentrancyGuard:()=>YOe,fetchAllReplicationRecord:()=>xUe,fetchAllReplicationTemplate:()=>VUe,fetchAllResaleMarket:()=>lwe,fetchAllRoyaltyStream:()=>wwe,fetchAllServiceListing:()=>dFe,fetchAllServicePurchase:()=>vFe,fetchAllUserRegistry:()=>ZFe,fetchAllWorkDelivery:()=>PNe,fetchAllWorkOrder:()=>HNe,fetchAnalyticsDashboard:()=>mDe,fetchArbitratorRegistry:()=>UDe,fetchAuctionMarketplace:()=>tIe,fetchAuditTrail:()=>xIe,fetchBulkDeal:()=>JIe,fetchChannel:()=>lbe,fetchComplianceReport:()=>_be,fetchDisputeCase:()=>eMe,fetchDynamicPricingEngine:()=>fMe,fetchEscrow:()=>HMe,fetchExtension:()=>mhe,fetchGovernanceProposal:()=>Uhe,fetchIncentiveProgram:()=>nve,fetchJobApplication:()=>Dve,fetchJobContract:()=>Hve,fetchJobPosting:()=>u_e,fetchMarketAnalytics:()=>__e,fetchMaybeA2AMessage:()=>nC,fetchMaybeA2ASession:()=>SC,fetchMaybeA2AStatus:()=>_C,fetchMaybeAgent:()=>Sz,fetchMaybeAgentIncentives:()=>Dz,fetchMaybeAgentTreeConfig:()=>Oz,fetchMaybeAgentVerification:()=>Bz,fetchMaybeAnalyticsDashboard:()=>Zz,fetchMaybeArbitratorRegistry:()=>d8,fetchMaybeAuctionMarketplace:()=>S8,fetchMaybeAuditTrail:()=>b8,fetchMaybeBulkDeal:()=>N8,fetchMaybeChannel:()=>j8,fetchMaybeComplianceReport:()=>Z8,fetchMaybeDisputeCase:()=>pL,fetchMaybeDynamicPricingEngine:()=>PL,fetchMaybeEscrow:()=>hL,fetchMaybeExtension:()=>WL,fetchMaybeGovernanceProposal:()=>ZL,fetchMaybeIncentiveProgram:()=>iW,fetchMaybeJobApplication:()=>PW,fetchMaybeJobContract:()=>bW,fetchMaybeJobPosting:()=>NW,fetchMaybeMarketAnalytics:()=>jW,fetchMaybeMessage:()=>nK,fetchMaybeMultisig:()=>TK,fetchMaybeNegotiationChatbot:()=>bK,fetchMaybePayment:()=>wK,fetchMaybeRbacConfig:()=>BK,fetchMaybeReentrancyGuard:()=>jK,fetchMaybeReplicationRecord:()=>n2,fetchMaybeReplicationTemplate:()=>A2,fetchMaybeResaleMarket:()=>P2,fetchMaybeRoyaltyStream:()=>_2,fetchMaybeServiceListing:()=>N2,fetchMaybeServicePurchase:()=>j2,fetchMaybeUserRegistry:()=>tB,fetchMaybeWorkDelivery:()=>mB,fetchMaybeWorkOrder:()=>PB,fetchMessage:()=>oke,fetchMultisig:()=>Ske,fetchNegotiationChatbot:()=>Kke,fetchPayment:()=>AOe,fetchRbacConfig:()=>MOe,fetchReentrancyGuard:()=>XOe,fetchReplicationRecord:()=>SUe,fetchReplicationTemplate:()=>HUe,fetchResaleMarket:()=>pwe,fetchRoyaltyStream:()=>Uwe,fetchServiceListing:()=>aFe,fetchServicePurchase:()=>hFe,fetchUserRegistry:()=>YFe,fetchWorkDelivery:()=>xNe,fetchWorkOrder:()=>BNe,getA2AMessageCodec:()=>J5,getA2AMessageDecoder:()=>wA,getA2AMessageDiscriminatorBytes:()=>q5,getA2AMessageEncoder:()=>rC,getA2AMessageSentEventCodec:()=>j9,getA2AMessageSentEventDecoder:()=>NC,getA2AMessageSentEventEncoder:()=>FC,getA2ASessionCodec:()=>l9,getA2ASessionCreatedEventCodec:()=>n7,getA2ASessionCreatedEventDecoder:()=>KC,getA2ASessionCreatedEventEncoder:()=>WC,getA2ASessionDecoder:()=>GA,getA2ASessionDiscriminatorBytes:()=>p9,getA2ASessionEncoder:()=>EC,getA2AStatusCodec:()=>z9,getA2AStatusDecoder:()=>WA,getA2AStatusDiscriminatorBytes:()=>G9,getA2AStatusEncoder:()=>vC,getA2AStatusUpdatedEventCodec:()=>S7,getA2AStatusUpdatedEventDecoder:()=>VC,getA2AStatusUpdatedEventEncoder:()=>HC,getAcceptJobApplicationDiscriminatorBytes:()=>cGe,getAcceptJobApplicationInstruction:()=>aGe,getAcceptJobApplicationInstructionAsync:()=>iGe,getAcceptJobApplicationInstructionDataCodec:()=>sGe,getAcceptJobApplicationInstructionDataDecoder:()=>_T,getAcceptJobApplicationInstructionDataEncoder:()=>eu,getAccessAuditConfigCodec:()=>D7,getAccessAuditConfigDecoder:()=>zr,getAccessAuditConfigEncoder:()=>Gr,getAccessPolicyCodec:()=>w7,getAccessPolicyDecoder:()=>Wr,getAccessPolicyEncoder:()=>Lr,getAccountLockoutPoliciesCodec:()=>V7,getAccountLockoutPoliciesDecoder:()=>Zr,getAccountLockoutPoliciesEncoder:()=>Yr,getAccountStateCodec:()=>j7,getAccountStateDecoder:()=>Me,getAccountStateEncoder:()=>be,getActionDecoder:()=>ve,getActionEncoder:()=>he,getActionExportCodec:()=>X7,getActionExportDecoder:()=>sD,getActionExportEncoder:()=>cD,getActivateAgentDiscriminatorBytes:()=>PGe,getActivateAgentInstruction:()=>wT,getActivateAgentInstructionAsync:()=>fGe,getActivateAgentInstructionDataCodec:()=>RGe,getActivateAgentInstructionDataDecoder:()=>UT,getActivateAgentInstructionDataEncoder:()=>tu,getActivationRequirementCodec:()=>pq,getActivationRequirementDecoder:()=>on,getActivationRequirementEncoder:()=>nn,getActivationRequirementTypeCodec:()=>Tq,getActivationRequirementTypeDecoder:()=>sn,getActivationRequirementTypeEncoder:()=>cn,getAddMessageReactionDiscriminatorBytes:()=>GGe,getAddMessageReactionInstruction:()=>zT,getAddMessageReactionInstructionAsync:()=>LGe,getAddMessageReactionInstructionDataCodec:()=>zGe,getAddMessageReactionInstructionDataDecoder:()=>GT,getAddMessageReactionInstructionDataEncoder:()=>ru,getAddTopAgentDiscriminatorBytes:()=>$Ge,getAddTopAgentInstruction:()=>YGe,getAddTopAgentInstructionDataCodec:()=>XGe,getAddTopAgentInstructionDataDecoder:()=>KT,getAddTopAgentInstructionDataEncoder:()=>WT,getAgentAnalyticsEventCodec:()=>hq,getAgentAnalyticsEventDecoder:()=>mD,getAgentAnalyticsEventEncoder:()=>lD,getAgentCodec:()=>kfe,getAgentCustomizationCodec:()=>zq,getAgentCustomizationDecoder:()=>ke,getAgentCustomizationEncoder:()=>_e,getAgentDecoder:()=>Dm,getAgentDiscriminatorBytes:()=>_fe,getAgentEncoder:()=>Ez,getAgentIncentivesCodec:()=>nCe,getAgentIncentivesDecoder:()=>Mm,getAgentIncentivesDiscriminatorBytes:()=>rCe,getAgentIncentivesEncoder:()=>Cz,getAgentIncentivesSize:()=>sCe,getAgentListedForResaleEventCodec:()=>Vq,getAgentListedForResaleEventDecoder:()=>PD,getAgentListedForResaleEventEncoder:()=>xD,getAgentPerformanceEntryCodec:()=>Zq,getAgentPerformanceEntryDecoder:()=>gn,getAgentPerformanceEntryEncoder:()=>An,getAgentPerformanceUpdatedAnalyticsEventCodec:()=>cJ,getAgentPerformanceUpdatedAnalyticsEventDecoder:()=>_D,getAgentPerformanceUpdatedAnalyticsEventEncoder:()=>vD,getAgentPerformanceUpdatedEventCodec:()=>mJ,getAgentPerformanceUpdatedEventDecoder:()=>FD,getAgentPerformanceUpdatedEventEncoder:()=>wD,getAgentRegisteredEventCodec:()=>bJ,getAgentRegisteredEventDecoder:()=>WD,getAgentRegisteredEventEncoder:()=>LD,getAgentReplicatedEventCodec:()=>wJ,getAgentReplicatedEventDecoder:()=>HD,getAgentReplicatedEventEncoder:()=>BD,getAgentServiceUpdatedEventCodec:()=>jJ,getAgentServiceUpdatedEventDecoder:()=>jD,getAgentServiceUpdatedEventEncoder:()=>QD,getAgentStatusChangedEventCodec:()=>tQ,getAgentStatusChangedEventDecoder:()=>rI,getAgentStatusChangedEventEncoder:()=>tI,getAgentTreeConfigCodec:()=>fCe,getAgentTreeConfigDecoder:()=>_m,getAgentTreeConfigDiscriminatorBytes:()=>RCe,getAgentTreeConfigEncoder:()=>kz,getAgentTreeConfigSize:()=>ICe,getAgentUpdatedEventCodec:()=>iQ,getAgentUpdatedEventDecoder:()=>iI,getAgentUpdatedEventEncoder:()=>sI,getAgentVerificationCodec:()=>BCe,getAgentVerificationDataCodec:()=>DQ,getAgentVerificationDataDecoder:()=>ln,getAgentVerificationDataEncoder:()=>pn,getAgentVerificationDecoder:()=>Um,getAgentVerificationDiscriminatorBytes:()=>KCe,getAgentVerificationEncoder:()=>Kz,getAgingPolicyCodec:()=>zQ,getAgingPolicyDecoder:()=>yn,getAgingPolicyEncoder:()=>mn,getAnalyticsDashboardCodec:()=>lDe,getAnalyticsDashboardCreatedEventCodec:()=>JQ,getAnalyticsDashboardCreatedEventDecoder:()=>lI,getAnalyticsDashboardCreatedEventEncoder:()=>pI,getAnalyticsDashboardDecoder:()=>zm,getAnalyticsDashboardDiscriminatorBytes:()=>pDe,getAnalyticsDashboardEncoder:()=>Yz,getAnalyticsDashboardUpdatedEventCodec:()=>ZQ,getAnalyticsDashboardUpdatedEventDecoder:()=>SI,getAnalyticsDashboardUpdatedEventEncoder:()=>EI,getAnalyticsDataPrunedEventCodec:()=>dj,getAnalyticsDataPrunedEventDecoder:()=>RI,getAnalyticsDataPrunedEventEncoder:()=>PI,getApplicationStatusCodec:()=>pj,getApplicationStatusDecoder:()=>Pn,getApplicationStatusEncoder:()=>xn,getApplyToJobDiscriminatorBytes:()=>Aze,getApplyToJobInstruction:()=>lze,getApplyToJobInstructionAsync:()=>pze,getApplyToJobInstructionDataCodec:()=>gze,getApplyToJobInstructionDataDecoder:()=>JT,getApplyToJobInstructionDataEncoder:()=>nu,getApprovalLevelCodec:()=>Dj,getApprovalLevelDecoder:()=>fn,getApprovalLevelEncoder:()=>Rn,getApproveExtensionDiscriminatorBytes:()=>Rze,getApproveExtensionInstruction:()=>Cze,getApproveExtensionInstructionDataCodec:()=>fze,getApproveExtensionInstructionDataDecoder:()=>$T,getApproveExtensionInstructionDataEncoder:()=>jT,getArbitratorAssignedEventCodec:()=>_j,getArbitratorAssignedEventDecoder:()=>bI,getArbitratorAssignedEventEncoder:()=>II,getArbitratorRegistryCodec:()=>ODe,getArbitratorRegistryDecoder:()=>Km,getArbitratorRegistryDiscriminatorBytes:()=>kDe,getArbitratorRegistryEncoder:()=>a8,getAssignArbitratorDiscriminatorBytes:()=>wze,getAssignArbitratorInstruction:()=>Gze,getAssignArbitratorInstructionAsync:()=>Nze,getAssignArbitratorInstructionDataCodec:()=>Fze,getAssignArbitratorInstructionDataDecoder:()=>ZT,getAssignArbitratorInstructionDataEncoder:()=>ou,getAttachmentInfoCodec:()=>Nj,getAttachmentInfoDecoder:()=>Dn,getAttachmentInfoEncoder:()=>Cn,getAuctionBidCodec:()=>jj,getAuctionBidDecoder:()=>bn,getAuctionBidEncoder:()=>In,getAuctionBidPlacedEventCodec:()=>n$,getAuctionBidPlacedEventDecoder:()=>UI,getAuctionBidPlacedEventEncoder:()=>OI,getAuctionExtendedForReserveEventCodec:()=>T$,getAuctionExtendedForReserveEventDecoder:()=>NI,getAuctionExtendedForReserveEventEncoder:()=>FI,getAuctionFailedEventCodec:()=>h$,getAuctionFailedEventDecoder:()=>LI,getAuctionFailedEventEncoder:()=>zI,getAuctionFinalizedEventCodec:()=>w$,getAuctionFinalizedEventDecoder:()=>VI,getAuctionFinalizedEventEncoder:()=>HI,getAuctionMarketplaceCodec:()=>eIe,getAuctionMarketplaceDecoder:()=>Vm,getAuctionMarketplaceDiscriminatorBytes:()=>ZDe,getAuctionMarketplaceEncoder:()=>E8,getAuctionReservePriceUpdatedEventCodec:()=>B$,getAuctionReservePriceUpdatedEventDecoder:()=>QI,getAuctionReservePriceUpdatedEventEncoder:()=>JI,getAuctionStatusCodec:()=>J$,getAuctionStatusDecoder:()=>vn,getAuctionStatusEncoder:()=>hn,getAuctionTypeCodec:()=>X$,getAuctionTypeDecoder:()=>W,getAuctionTypeEncoder:()=>L,getAuditActionCodec:()=>tX,getAuditActionDecoder:()=>Ge,getAuditActionEncoder:()=>Ne,getAuditConfigCodec:()=>AX,getAuditConfigDecoder:()=>Le,getAuditConfigEncoder:()=>ze,getAuditContextDecoder:()=>Ke,getAuditContextEncoder:()=>We,getAuditContextExportCodec:()=>pX,getAuditContextExportDecoder:()=>cb,getAuditContextExportEncoder:()=>ob,getAuditEntryCodec:()=>PX,getAuditEntryDecoder:()=>Gn,getAuditEntryEncoder:()=>Nn,getAuditTrailCodec:()=>SIe,getAuditTrailDecoder:()=>$m,getAuditTrailDiscriminatorBytes:()=>EIe,getAuditTrailEncoder:()=>I8,getAuditTrailInitializedEventCodec:()=>wX,getAuditTrailInitializedEventDecoder:()=>pb,getAuditTrailInitializedEventEncoder:()=>gb,getAuthenticationLevelCodec:()=>zX,getAuthenticationLevelDecoder:()=>Bn,getAuthenticationLevelEncoder:()=>Kn,getAuthenticationMethodCodec:()=>BX,getAuthenticationMethodDecoder:()=>qn,getAuthenticationMethodEncoder:()=>Vn,getAuthenticationPoliciesCodec:()=>ZX,getAuthenticationPoliciesDecoder:()=>Qn,getAuthenticationPoliciesEncoder:()=>Jn,getAuthenticationStrengthCodec:()=>cY,getAuthenticationStrengthDecoder:()=>$n,getAuthenticationStrengthEncoder:()=>jn,getAuthorizationPoliciesCodec:()=>dY,getAuthorizationPoliciesDecoder:()=>ro,getAuthorizationPoliciesEncoder:()=>to,getBackupFrequencyCodec:()=>pY,getBackupFrequencyDecoder:()=>Un,getBackupFrequencyEncoder:()=>On,getBatchReplicateAgentsDiscriminatorBytes:()=>$ze,getBatchReplicateAgentsInstruction:()=>Yze,getBatchReplicateAgentsInstructionDataCodec:()=>Xze,getBatchReplicateAgentsInstructionDataDecoder:()=>rE,getBatchReplicateAgentsInstructionDataEncoder:()=>tE,getBidCommittedEventCodec:()=>fY,getBidCommittedEventDecoder:()=>Mb,getBidCommittedEventEncoder:()=>bb,getBidRevealedEventCodec:()=>_Y,getBidRevealedEventDecoder:()=>Ob,getBidRevealedEventEncoder:()=>kb,getBiometricPoliciesCodec:()=>zY,getBiometricPoliciesDecoder:()=>Yn,getBiometricPoliciesEncoder:()=>Xn,getBiometricProtectionCodec:()=>VY,getBiometricProtectionDecoder:()=>co,getBiometricProtectionEncoder:()=>oo,getBiometricQualityDecoder:()=>He,getBiometricQualityEncoder:()=>Be,getBiometricQualityExportCodec:()=>XY,getBiometricQualityExportDecoder:()=>Lb,getBiometricQualityExportEncoder:()=>zb,getBiometricStorageMethodCodec:()=>tZ,getBiometricStorageMethodDecoder:()=>io,getBiometricStorageMethodEncoder:()=>so,getBiometricTypeCodec:()=>cZ,getBiometricTypeDecoder:()=>Fe,getBiometricTypeEncoder:()=>we,getBulkDealBatchExecutedEventCodec:()=>AZ,getBulkDealBatchExecutedEventDecoder:()=>jb,getBulkDealBatchExecutedEventEncoder:()=>Qb,getBulkDealCodec:()=>qIe,getBulkDealCreatedEventCodec:()=>TZ,getBulkDealCreatedEventDecoder:()=>Yb,getBulkDealCreatedEventEncoder:()=>Xb,getBulkDealDecoder:()=>ty,getBulkDealDiscriminatorBytes:()=>VIe,getBulkDealEncoder:()=>F8,getCancelEscrowDiscriminatorBytes:()=>p8e,getCancelEscrowInstruction:()=>sE,getCancelEscrowInstructionAsync:()=>m8e,getCancelEscrowInstructionDataCodec:()=>l8e,getCancelEscrowInstructionDataDecoder:()=>cE,getCancelEscrowInstructionDataEncoder:()=>cu,getCastVoteDiscriminatorBytes:()=>_8e,getCastVoteInstruction:()=>O8e,getCastVoteInstructionDataCodec:()=>k8e,getCastVoteInstructionDataDecoder:()=>dE,getCastVoteInstructionDataEncoder:()=>aE,getChannelCodec:()=>pbe,getChannelCreatedEventCodec:()=>PZ,getChannelCreatedEventDecoder:()=>nM,getChannelCreatedEventEncoder:()=>rM,getChannelDecoder:()=>oy,getChannelDiscriminatorBytes:()=>gbe,getChannelEncoder:()=>Q8,getChannelMetadataCodec:()=>bZ,getChannelMetadataDecoder:()=>V,getChannelMetadataEncoder:()=>H,getChannelSettingsCodec:()=>_Z,getChannelSettingsDecoder:()=>So,getChannelSettingsEncoder:()=>Eo,getChannelSettingsUpdatedEventCodec:()=>NZ,getChannelSettingsUpdatedEventDecoder:()=>uM,getChannelSettingsUpdatedEventEncoder:()=>dM,getChannelTypeCodec:()=>WZ,getChannelTypeDecoder:()=>k,getChannelTypeEncoder:()=>_,getCompleteEscrowDiscriminatorBytes:()=>$8e,getCompleteEscrowInstruction:()=>pE,getCompleteEscrowInstructionAsync:()=>Y8e,getCompleteEscrowInstructionDataCodec:()=>X8e,getCompleteEscrowInstructionDataDecoder:()=>gE,getCompleteEscrowInstructionDataEncoder:()=>su,getComplianceFlagsCodec:()=>ZZ,getComplianceFlagsDecoder:()=>Ln,getComplianceFlagsEncoder:()=>zn,getComplianceMetricsCodec:()=>cee,getComplianceMetricsDecoder:()=>Po,getComplianceMetricsEncoder:()=>xo,getCompliancePoliciesCodec:()=>dee,getCompliancePoliciesDecoder:()=>fo,getCompliancePoliciesEncoder:()=>Ro,getComplianceReportCodec:()=>vbe,getComplianceReportDecoder:()=>Ay,getComplianceReportDiscriminatorBytes:()=>hbe,getComplianceReportEncoder:()=>Y8,getComplianceReportGeneratedEventCodec:()=>mee,getComplianceReportGeneratedEventDecoder:()=>EM,getComplianceReportGeneratedEventEncoder:()=>TM,getComplianceStatusDecoder:()=>qe,getComplianceStatusEncoder:()=>Ve,getComplianceStatusExportCodec:()=>Pee,getComplianceStatusExportDecoder:()=>PM,getComplianceStatusExportEncoder:()=>xM,getCompressedAgentCreatedEventCodec:()=>Oee,getCompressedAgentCreatedEventDecoder:()=>vM,getCompressedAgentCreatedEventEncoder:()=>hM,getConditionTypeCodec:()=>Nee,getConditionTypeDecoder:()=>bo,getConditionTypeEncoder:()=>Io,getConfidentialTransferInitializedEventCodec:()=>Bee,getConfidentialTransferInitializedEventDecoder:()=>GM,getConfidentialTransferInitializedEventEncoder:()=>NM,getConstraintConditionCodec:()=>Jee,getConstraintConditionDecoder:()=>ho,getConstraintConditionEncoder:()=>Mo,getConstraintOperatorCodec:()=>Xee,getConstraintOperatorDecoder:()=>_o,getConstraintOperatorEncoder:()=>vo,getContractStatusCodec:()=>tte,getContractStatusDecoder:()=>No,getContractStatusEncoder:()=>Fo,getCounterOfferMadeEventCodec:()=>mte,getCounterOfferMadeEventDecoder:()=>YM,getCounterOfferMadeEventEncoder:()=>XM,getCreateA2aSessionDiscriminatorBytes:()=>ALe,getCreateA2aSessionInstruction:()=>lLe,getCreateA2aSessionInstructionAsync:()=>pLe,getCreateA2aSessionInstructionDataCodec:()=>gLe,getCreateA2aSessionInstructionDataDecoder:()=>TE,getCreateA2aSessionInstructionDataEncoder:()=>iu,getCreateAnalyticsDashboardDiscriminatorBytes:()=>hLe,getCreateAnalyticsDashboardInstruction:()=>kLe,getCreateAnalyticsDashboardInstructionAsync:()=>_Le,getCreateAnalyticsDashboardInstructionDataCodec:()=>vLe,getCreateAnalyticsDashboardInstructionDataDecoder:()=>SE,getCreateAnalyticsDashboardInstructionDataEncoder:()=>du,getCreateBulkDealDiscriminatorBytes:()=>$Le,getCreateBulkDealInstruction:()=>ZLe,getCreateBulkDealInstructionAsync:()=>YLe,getCreateBulkDealInstructionDataCodec:()=>XLe,getCreateBulkDealInstructionDataDecoder:()=>RE,getCreateBulkDealInstructionDataEncoder:()=>uu,getCreateChannelDiscriminatorBytes:()=>mWe,getCreateChannelInstruction:()=>TWe,getCreateChannelInstructionDataCodec:()=>yWe,getCreateChannelInstructionDataDecoder:()=>DE,getCreateChannelInstructionDataEncoder:()=>CE,getCreateDynamicPricingEngineDiscriminatorBytes:()=>bWe,getCreateDynamicPricingEngineInstruction:()=>vWe,getCreateDynamicPricingEngineInstructionAsync:()=>hWe,getCreateDynamicPricingEngineInstructionDataCodec:()=>MWe,getCreateDynamicPricingEngineInstructionDataDecoder:()=>ME,getCreateDynamicPricingEngineInstructionDataEncoder:()=>Au,getCreateEnhancedChannelDiscriminatorBytes:()=>VWe,getCreateEnhancedChannelInstruction:()=>JWe,getCreateEnhancedChannelInstructionAsync:()=>_E,getCreateEnhancedChannelInstructionDataCodec:()=>qWe,getCreateEnhancedChannelInstructionDataDecoder:()=>vE,getCreateEnhancedChannelInstructionDataEncoder:()=>pu,getCreateEscrowDiscriminatorBytes:()=>pKe,getCreateEscrowInstruction:()=>mKe,getCreateEscrowInstructionAsync:()=>UE,getCreateEscrowInstructionDataCodec:()=>lKe,getCreateEscrowInstructionDataDecoder:()=>OE,getCreateEscrowInstructionDataEncoder:()=>mu,getCreateIncentiveProgramDiscriminatorBytes:()=>DKe,getCreateIncentiveProgramInstruction:()=>MKe,getCreateIncentiveProgramInstructionAsync:()=>bKe,getCreateIncentiveProgramInstructionDataCodec:()=>IKe,getCreateIncentiveProgramInstructionDataDecoder:()=>NE,getCreateIncentiveProgramInstructionDataEncoder:()=>yu,getCreateJobPostingDiscriminatorBytes:()=>LKe,getCreateJobPostingInstruction:()=>BKe,getCreateJobPostingInstructionAsync:()=>KKe,getCreateJobPostingInstructionDataCodec:()=>WKe,getCreateJobPostingInstructionDataDecoder:()=>KE,getCreateJobPostingInstructionDataEncoder:()=>Tu,getCreateMarketAnalyticsDiscriminatorBytes:()=>YKe,getCreateMarketAnalyticsInstruction:()=>t2e,getCreateMarketAnalyticsInstructionAsync:()=>e2e,getCreateMarketAnalyticsInstructionDataCodec:()=>ZKe,getCreateMarketAnalyticsInstructionDataDecoder:()=>VE,getCreateMarketAnalyticsInstructionDataEncoder:()=>Su,getCreateMultisigDiscriminatorBytes:()=>y2e,getCreateMultisigInstruction:()=>S2e,getCreateMultisigInstructionAsync:()=>E2e,getCreateMultisigInstructionDataCodec:()=>T2e,getCreateMultisigInstructionDataDecoder:()=>QE,getCreateMultisigInstructionDataEncoder:()=>xu,getCreateReplicationTemplateDiscriminatorBytes:()=>O2e,getCreateReplicationTemplateInstruction:()=>F2e,getCreateReplicationTemplateInstructionAsync:()=>w2e,getCreateReplicationTemplateInstructionDataCodec:()=>U2e,getCreateReplicationTemplateInstructionDataDecoder:()=>ZE,getCreateReplicationTemplateInstructionDataEncoder:()=>Pu,getCreateRoyaltyStreamDiscriminatorBytes:()=>q2e,getCreateRoyaltyStreamInstruction:()=>j2e,getCreateRoyaltyStreamInstructionAsync:()=>Q2e,getCreateRoyaltyStreamInstructionDataCodec:()=>J2e,getCreateRoyaltyStreamInstructionDataDecoder:()=>rS,getCreateRoyaltyStreamInstructionDataEncoder:()=>Ru,getCreateServiceAuctionDiscriminatorBytes:()=>ABe,getCreateServiceAuctionInstruction:()=>lBe,getCreateServiceAuctionInstructionAsync:()=>pBe,getCreateServiceAuctionInstructionDataCodec:()=>gBe,getCreateServiceAuctionInstructionDataDecoder:()=>sS,getCreateServiceAuctionInstructionDataEncoder:()=>Du,getCreateServiceListingDiscriminatorBytes:()=>MBe,getCreateServiceListingInstruction:()=>_Be,getCreateServiceListingInstructionAsync:()=>vBe,getCreateServiceListingInstructionDataCodec:()=>hBe,getCreateServiceListingInstructionDataDecoder:()=>aS,getCreateServiceListingInstructionDataEncoder:()=>Mu,getCreateToken2022MintDiscriminatorBytes:()=>VBe,getCreateToken2022MintInstruction:()=>QBe,getCreateToken2022MintInstructionAsync:()=>JBe,getCreateToken2022MintInstructionDataCodec:()=>qBe,getCreateToken2022MintInstructionDataDecoder:()=>pS,getCreateToken2022MintInstructionDataEncoder:()=>hu,getCreateWorkOrderDiscriminatorBytes:()=>s0e,getCreateWorkOrderInstruction:()=>a0e,getCreateWorkOrderInstructionDataCodec:()=>i0e,getCreateWorkOrderInstructionDataDecoder:()=>CS,getCreateWorkOrderInstructionDataEncoder:()=>fS,getDataAccessLevelCodec:()=>Ste,getDataAccessLevelDecoder:()=>Lo,getDataAccessLevelEncoder:()=>zo,getDataProtectionPoliciesCodec:()=>fte,getDataProtectionPoliciesDecoder:()=>Ko,getDataProtectionPoliciesEncoder:()=>Wo,getDeactivateAgentDiscriminatorBytes:()=>P0e,getDeactivateAgentInstruction:()=>MS,getDeactivateAgentInstructionAsync:()=>f0e,getDeactivateAgentInstructionDataCodec:()=>R0e,getDeactivateAgentInstructionDataDecoder:()=>bS,getDeactivateAgentInstructionDataEncoder:()=>vu,getDealTypeCodec:()=>bte,getDealTypeDecoder:()=>B,getDealTypeEncoder:()=>K,getDefaultAccountStateInitializedEventCodec:()=>Ote,getDefaultAccountStateInitializedEventDecoder:()=>sh,getDefaultAccountStateInitializedEventEncoder:()=>ch,getDegradationHandlingCodec:()=>Nte,getDegradationHandlingDecoder:()=>En,getDegradationHandlingEncoder:()=>Tn,getDelegateVoteDiscriminatorBytes:()=>N0e,getDelegateVoteInstruction:()=>L0e,getDelegateVoteInstructionAsync:()=>z0e,getDelegateVoteInstructionDataCodec:()=>G0e,getDelegateVoteInstructionDataDecoder:()=>_S,getDelegateVoteInstructionDataEncoder:()=>_u,getDelegationInfoCodec:()=>Vte,getDelegationInfoDecoder:()=>qo,getDelegationInfoEncoder:()=>Vo,getDelegationScopeCodec:()=>Zte,getDelegationScopeDecoder:()=>j,getDelegationScopeEncoder:()=>Q,getDeliverableCodec:()=>cre,getDeliverableDecoder:()=>Qe,getDeliverableEncoder:()=>Je,getDisputeCaseCodec:()=>Zbe,getDisputeCaseDecoder:()=>yy,getDisputeCaseDiscriminatorBytes:()=>Ybe,getDisputeCaseEncoder:()=>gL,getDisputeEscrowDiscriminatorBytes:()=>tHe,getDisputeEscrowInstruction:()=>wS,getDisputeEscrowInstructionAsync:()=>nHe,getDisputeEscrowInstructionDataCodec:()=>rHe,getDisputeEscrowInstructionDataDecoder:()=>US,getDisputeEscrowInstructionDataEncoder:()=>ku,getDisputeEvidenceBatchSubmittedEventCodec:()=>Sre,getDisputeEvidenceBatchSubmittedEventDecoder:()=>Ih,getDisputeEvidenceBatchSubmittedEventEncoder:()=>Dh,getDisputeEvidenceCodec:()=>mre,getDisputeEvidenceDecoder:()=>jo,getDisputeEvidenceEncoder:()=>Qo,getDisputeEvidenceSubmittedEventCodec:()=>Dre,getDisputeEvidenceSubmittedEventDecoder:()=>_h,getDisputeEvidenceSubmittedEventEncoder:()=>vh,getDisputeFiledEventCodec:()=>wre,getDisputeFiledEventDecoder:()=>Uh,getDisputeFiledEventEncoder:()=>Oh,getDisputeResolvedEventCodec:()=>jre,getDisputeResolvedEventDecoder:()=>zh,getDisputeResolvedEventEncoder:()=>Gh,getDisputeStatusCodec:()=>Zre,getDisputeStatusDecoder:()=>Yo,getDisputeStatusEncoder:()=>Xo,getDistributeIncentivesDiscriminatorBytes:()=>PHe,getDistributeIncentivesInstruction:()=>fHe,getDistributeIncentivesInstructionDataCodec:()=>RHe,getDistributeIncentivesInstructionDataDecoder:()=>GS,getDistributeIncentivesInstructionDataEncoder:()=>NS,getDutchAuctionConfigCodec:()=>dne,getDutchAuctionConfigDecoder:()=>$e,getDutchAuctionConfigEncoder:()=>je,getDutchAuctionDecayTypeCodec:()=>pne,getDutchAuctionDecayTypeDecoder:()=>ec,getDutchAuctionDecayTypeEncoder:()=>Zo,getDutchAuctionWonEventCodec:()=>Sne,getDutchAuctionWonEventDecoder:()=>Jh,getDutchAuctionWonEventEncoder:()=>qh,getDynamicPricingConfigDecoder:()=>Z,getDynamicPricingConfigEncoder:()=>Y,getDynamicPricingConfigExportCodec:()=>Pne,getDynamicPricingConfigExportDecoder:()=>Yh,getDynamicPricingConfigExportEncoder:()=>Xh,getDynamicPricingEngineCodec:()=>RMe,getDynamicPricingEngineCreatedEventCodec:()=>bne,getDynamicPricingEngineCreatedEventDecoder:()=>tv,getDynamicPricingEngineCreatedEventEncoder:()=>ev,getDynamicPricingEngineDecoder:()=>Sy,getDynamicPricingEngineDiscriminatorBytes:()=>PMe,getDynamicPricingEngineEncoder:()=>xL,getDynamicPricingUpdatedEventCodec:()=>One,getDynamicPricingUpdatedEventDecoder:()=>sv,getDynamicPricingUpdatedEventEncoder:()=>cv,getEconomicMetricsCodec:()=>Wne,getEconomicMetricsCollectedEventCodec:()=>Xne,getEconomicMetricsCollectedEventDecoder:()=>uv,getEconomicMetricsCollectedEventEncoder:()=>dv,getEconomicMetricsDecoder:()=>nc,getEconomicMetricsEncoder:()=>rc,getEconomicMetricsEventCodec:()=>coe,getEconomicMetricsEventDecoder:()=>pv,getEconomicMetricsEventEncoder:()=>gv,getEmergencyAccessConfigCodec:()=>poe,getEmergencyAccessConfigDecoder:()=>cc,getEmergencyAccessConfigEncoder:()=>oc,getEmergencyConfigCodec:()=>Poe,getEmergencyConfigDecoder:()=>ic,getEmergencyConfigEncoder:()=>sc,getEnforcementLevelCodec:()=>Doe,getEnforcementLevelDecoder:()=>rt,getEnforcementLevelEncoder:()=>tt,getEnhancedChannelCreatedEventCodec:()=>Ooe,getEnhancedChannelCreatedEventDecoder:()=>hv,getEnhancedChannelCreatedEventEncoder:()=>Mv,getEnhancedMessageSentEventCodec:()=>Boe,getEnhancedMessageSentEventDecoder:()=>Gv,getEnhancedMessageSentEventEncoder:()=>Nv,getEscrowCancelledEventCodec:()=>nce,getEscrowCancelledEventDecoder:()=>Wv,getEscrowCancelledEventEncoder:()=>Lv,getEscrowCodec:()=>BMe,getEscrowCompletedEventCodec:()=>Sce,getEscrowCompletedEventDecoder:()=>Hv,getEscrowCompletedEventEncoder:()=>Bv,getEscrowCreatedEventCodec:()=>_ce,getEscrowCreatedEventDecoder:()=>jv,getEscrowCreatedEventEncoder:()=>Qv,getEscrowDecoder:()=>vy,getEscrowDiscriminatorBytes:()=>KMe,getEscrowEncoder:()=>ML,getEscrowExpiredEventCodec:()=>Nce,getEscrowExpiredEventDecoder:()=>e_,getEscrowExpiredEventEncoder:()=>Zv,getEscrowPartialRefundEventCodec:()=>Vce,getEscrowPartialRefundEventDecoder:()=>c_,getEscrowPartialRefundEventEncoder:()=>o_,getEscrowStatusCodec:()=>jce,getEscrowStatusDecoder:()=>pc,getEscrowStatusEncoder:()=>gc,getEvidenceBatchItemCodec:()=>Zce,getEvidenceBatchItemDecoder:()=>mc,getEvidenceBatchItemEncoder:()=>lc,getExecuteBulkDealBatchDiscriminatorBytes:()=>wHe,getExecuteBulkDealBatchInstruction:()=>GHe,getExecuteBulkDealBatchInstructionAsync:()=>NHe,getExecuteBulkDealBatchInstructionDataCodec:()=>FHe,getExecuteBulkDealBatchInstructionDataDecoder:()=>WS,getExecuteBulkDealBatchInstructionDataEncoder:()=>Ou,getExecuteProposalDiscriminatorBytes:()=>qHe,getExecuteProposalInstruction:()=>QHe,getExecuteProposalInstructionDataCodec:()=>JHe,getExecuteProposalInstructionDataDecoder:()=>HS,getExecuteProposalInstructionDataEncoder:()=>BS,getExecutionConditionCodec:()=>Ase,getExecutionConditionDecoder:()=>te,getExecutionConditionEncoder:()=>ee,getExecutionParamsCodec:()=>Sse,getExecutionParamsDecoder:()=>st,getExecutionParamsEncoder:()=>ct,getExportActionDiscriminatorBytes:()=>r4e,getExportActionInstruction:()=>o4e,getExportActionInstructionDataCodec:()=>n4e,getExportActionInstructionDataDecoder:()=>JS,getExportActionInstructionDataEncoder:()=>qS,getExportAuditContextDiscriminatorBytes:()=>g4e,getExportAuditContextInstruction:()=>l4e,getExportAuditContextInstructionDataCodec:()=>p4e,getExportAuditContextInstructionDataDecoder:()=>$S,getExportAuditContextInstructionDataEncoder:()=>jS,getExportBiometricQualityDiscriminatorBytes:()=>R4e,getExportBiometricQualityInstruction:()=>C4e,getExportBiometricQualityInstructionDataCodec:()=>f4e,getExportBiometricQualityInstructionDataDecoder:()=>ZS,getExportBiometricQualityInstructionDataEncoder:()=>YS,getExportComplianceStatusDiscriminatorBytes:()=>k4e,getExportComplianceStatusInstruction:()=>U4e,getExportComplianceStatusInstructionDataCodec:()=>O4e,getExportComplianceStatusInstructionDataDecoder:()=>rx,getExportComplianceStatusInstructionDataEncoder:()=>tx,getExportDynamicPricingConfigDiscriminatorBytes:()=>K4e,getExportDynamicPricingConfigInstruction:()=>H4e,getExportDynamicPricingConfigInstructionDataCodec:()=>B4e,getExportDynamicPricingConfigInstructionDataDecoder:()=>cx,getExportDynamicPricingConfigInstructionDataEncoder:()=>ox,getExportMultisigConfigDiscriminatorBytes:()=>Y4e,getExportMultisigConfigInstruction:()=>e6e,getExportMultisigConfigInstructionDataCodec:()=>Z4e,getExportMultisigConfigInstructionDataDecoder:()=>ax,getExportMultisigConfigInstructionDataEncoder:()=>ix,getExportReportEntryDiscriminatorBytes:()=>a6e,getExportReportEntryInstruction:()=>u6e,getExportReportEntryInstructionDataCodec:()=>d6e,getExportReportEntryInstructionDataDecoder:()=>Ax,getExportReportEntryInstructionDataEncoder:()=>ux,getExportResourceConstraintsDiscriminatorBytes:()=>E6e,getExportResourceConstraintsInstruction:()=>x6e,getExportResourceConstraintsInstructionDataCodec:()=>S6e,getExportResourceConstraintsInstructionDataDecoder:()=>lx,getExportResourceConstraintsInstructionDataEncoder:()=>px,getExportRuleConditionDiscriminatorBytes:()=>M6e,getExportRuleConditionInstruction:()=>v6e,getExportRuleConditionInstructionDataCodec:()=>h6e,getExportRuleConditionInstructionDataDecoder:()=>Tx,getExportRuleConditionInstructionDataEncoder:()=>yx,getExtendAuctionForReserveDiscriminatorBytes:()=>G6e,getExtendAuctionForReserveInstruction:()=>L6e,getExtendAuctionForReserveInstructionDataCodec:()=>z6e,getExtendAuctionForReserveInstructionDataDecoder:()=>xx,getExtendAuctionForReserveInstructionDataEncoder:()=>Sx,getExtensionApprovedEventCodec:()=>Dse,getExtensionApprovedEventDecoder:()=>C_,getExtensionApprovedEventEncoder:()=>f_,getExtensionCodec:()=>lhe,getExtensionDecoder:()=>Oy,getExtensionDiscriminatorBytes:()=>phe,getExtensionEncoder:()=>LL,getExtensionMetadataCodec:()=>_se,getExtensionMetadataDecoder:()=>at,getExtensionMetadataEncoder:()=>it,getExtensionRegisteredEventCodec:()=>wse,getExtensionRegisteredEventDecoder:()=>v_,getExtensionRegisteredEventEncoder:()=>h_,getExtensionStatusCodec:()=>zse,getExtensionStatusDecoder:()=>xc,getExtensionStatusEncoder:()=>Sc,getExtensionTypeCodec:()=>Bse,getExtensionTypeDecoder:()=>ne,getExtensionTypeEncoder:()=>re,getFileDisputeDiscriminatorBytes:()=>X6e,getFileDisputeInstruction:()=>e3e,getFileDisputeInstructionAsync:()=>Z6e,getFileDisputeInstructionDataCodec:()=>Y6e,getFileDisputeInstructionDataDecoder:()=>fx,getFileDisputeInstructionDataEncoder:()=>wu,getFinalizeAuctionDiscriminatorBytes:()=>a3e,getFinalizeAuctionInstruction:()=>u3e,getFinalizeAuctionInstructionDataCodec:()=>d3e,getFinalizeAuctionInstructionDataDecoder:()=>Ix,getFinalizeAuctionInstructionDataEncoder:()=>Dx,getGenerateComplianceReportDiscriminatorBytes:()=>x3e,getGenerateComplianceReportInstruction:()=>f3e,getGenerateComplianceReportInstructionAsync:()=>R3e,getGenerateComplianceReportInstructionDataCodec:()=>P3e,getGenerateComplianceReportInstructionDataDecoder:()=>hx,getGenerateComplianceReportInstructionDataEncoder:()=>Fu,getGeographicRegionCodec:()=>Zse,getGeographicRegionDecoder:()=>fc,getGeographicRegionEncoder:()=>Rc,getGhostspeakMarketplaceErrorMessage:()=>QNe,getGovernanceProposalCodec:()=>Ohe,getGovernanceProposalCreatedEventCodec:()=>Aie,getGovernanceProposalCreatedEventDecoder:()=>L_,getGovernanceProposalCreatedEventEncoder:()=>z_,getGovernanceProposalDecoder:()=>Gy,getGovernanceProposalDiscriminatorBytes:()=>khe,getGovernanceProposalEncoder:()=>YL,getHierarchicalBoundaryCodec:()=>Tie,getHierarchicalBoundaryDecoder:()=>hc,getHierarchicalBoundaryEncoder:()=>Mc,getIncentiveConfigCodec:()=>Pie,getIncentiveConfigDecoder:()=>ut,getIncentiveConfigEncoder:()=>dt,getIncentiveDistributedEventCodec:()=>Oie,getIncentiveDistributedEventDecoder:()=>Z_,getIncentiveDistributedEventEncoder:()=>Y_,getIncentiveProgramCodec:()=>rve,getIncentiveProgramCreatedEventCodec:()=>zie,getIncentiveProgramCreatedEventDecoder:()=>ok,getIncentiveProgramCreatedEventEncoder:()=>nk,getIncentiveProgramDecoder:()=>Wy,getIncentiveProgramDiscriminatorBytes:()=>tve,getIncentiveProgramEncoder:()=>sW,getIncentiveProgramSize:()=>cve,getIncidentResponsePoliciesCodec:()=>Xie,getIncidentResponsePoliciesDecoder:()=>Oc,getIncidentResponsePoliciesEncoder:()=>kc,getInitializeAuditTrailDiscriminatorBytes:()=>z3e,getInitializeAuditTrailInstruction:()=>K3e,getInitializeAuditTrailInstructionAsync:()=>W3e,getInitializeAuditTrailInstructionDataCodec:()=>L3e,getInitializeAuditTrailInstructionDataDecoder:()=>kx,getInitializeAuditTrailInstructionDataEncoder:()=>Nu,getInitializeConfidentialTransferMintDiscriminatorBytes:()=>eVe,getInitializeConfidentialTransferMintInstruction:()=>nVe,getInitializeConfidentialTransferMintInstructionAsync:()=>rVe,getInitializeConfidentialTransferMintInstructionDataCodec:()=>tVe,getInitializeConfidentialTransferMintInstructionDataDecoder:()=>wx,getInitializeConfidentialTransferMintInstructionDataEncoder:()=>zu,getInitializeDefaultAccountStateDiscriminatorBytes:()=>pVe,getInitializeDefaultAccountStateInstruction:()=>yVe,getInitializeDefaultAccountStateInstructionAsync:()=>mVe,getInitializeDefaultAccountStateInstructionDataCodec:()=>lVe,getInitializeDefaultAccountStateInstructionDataDecoder:()=>Gx,getInitializeDefaultAccountStateInstructionDataEncoder:()=>Lu,getInitializeGovernanceProposalDiscriminatorBytes:()=>IVe,getInitializeGovernanceProposalInstruction:()=>hVe,getInitializeGovernanceProposalInstructionAsync:()=>MVe,getInitializeGovernanceProposalInstructionDataCodec:()=>bVe,getInitializeGovernanceProposalInstructionDataDecoder:()=>Wx,getInitializeGovernanceProposalInstructionDataEncoder:()=>Wu,getInitializeInterestBearingConfigDiscriminatorBytes:()=>WVe,getInitializeInterestBearingConfigInstruction:()=>HVe,getInitializeInterestBearingConfigInstructionAsync:()=>BVe,getInitializeInterestBearingConfigInstructionDataCodec:()=>KVe,getInitializeInterestBearingConfigInstructionDataDecoder:()=>Hx,getInitializeInterestBearingConfigInstructionDataEncoder:()=>Ku,getInitializeMintCloseAuthorityDiscriminatorBytes:()=>e5e,getInitializeMintCloseAuthorityInstruction:()=>n5e,getInitializeMintCloseAuthorityInstructionAsync:()=>r5e,getInitializeMintCloseAuthorityInstructionDataCodec:()=>t5e,getInitializeMintCloseAuthorityInstructionDataDecoder:()=>Jx,getInitializeMintCloseAuthorityInstructionDataEncoder:()=>Bu,getInitializeRbacConfigDiscriminatorBytes:()=>m5e,getInitializeRbacConfigInstruction:()=>E5e,getInitializeRbacConfigInstructionAsync:()=>T5e,getInitializeRbacConfigInstructionDataCodec:()=>y5e,getInitializeRbacConfigInstructionDataDecoder:()=>$x,getInitializeRbacConfigInstructionDataEncoder:()=>Hu,getInitializeTransferFeeConfigDiscriminatorBytes:()=>_5e,getInitializeTransferFeeConfigInstruction:()=>U5e,getInitializeTransferFeeConfigInstructionAsync:()=>O5e,getInitializeTransferFeeConfigInstructionDataCodec:()=>k5e,getInitializeTransferFeeConfigInstructionDataDecoder:()=>eP,getInitializeTransferFeeConfigInstructionDataEncoder:()=>Vu,getInitiateNegotiationDiscriminatorBytes:()=>V5e,getInitiateNegotiationInstruction:()=>Q5e,getInitiateNegotiationInstructionAsync:()=>J5e,getInitiateNegotiationInstructionDataCodec:()=>q5e,getInitiateNegotiationInstructionDataDecoder:()=>nP,getInitiateNegotiationInstructionDataEncoder:()=>qu,getInterestBearingInitializedEventCodec:()=>cae,getInterestBearingInitializedEventDecoder:()=>ak,getInterestBearingInitializedEventEncoder:()=>ik,getJobApplicationAcceptedEventCodec:()=>Aae,getJobApplicationAcceptedEventDecoder:()=>Ak,getJobApplicationAcceptedEventEncoder:()=>uk,getJobApplicationCodec:()=>Cve,getJobApplicationDecoder:()=>qy,getJobApplicationDiscriminatorBytes:()=>fve,getJobApplicationEncoder:()=>xW,getJobApplicationSubmittedEventCodec:()=>Sae,getJobApplicationSubmittedEventDecoder:()=>lk,getJobApplicationSubmittedEventEncoder:()=>pk,getJobContractCodec:()=>Bve,getJobContractDecoder:()=>Xy,getJobContractDiscriminatorBytes:()=>Kve,getJobContractEncoder:()=>IW,getJobContractSize:()=>qve,getJobPostingCodec:()=>d_e,getJobPostingCreatedEventCodec:()=>Dae,getJobPostingCreatedEventDecoder:()=>Sk,getJobPostingCreatedEventEncoder:()=>Ek,getJobPostingDecoder:()=>o1,getJobPostingDiscriminatorBytes:()=>a_e,getJobPostingEncoder:()=>FW,getJoinChannelDiscriminatorBytes:()=>n9e,getJoinChannelInstruction:()=>iP,getJoinChannelInstructionAsync:()=>c9e,getJoinChannelInstructionDataCodec:()=>o9e,getJoinChannelInstructionDataDecoder:()=>sP,getJoinChannelInstructionDataEncoder:()=>Ju,getLatitudeRangeCodec:()=>hae,getLatitudeRangeDecoder:()=>Dc,getLatitudeRangeEncoder:()=>Cc,getLeaveChannelDiscriminatorBytes:()=>l9e,getLeaveChannelInstruction:()=>AP,getLeaveChannelInstructionAsync:()=>y9e,getLeaveChannelInstructionDataCodec:()=>m9e,getLeaveChannelInstructionDataDecoder:()=>uP,getLeaveChannelInstructionDataEncoder:()=>Qu,getListAgentForResaleDiscriminatorBytes:()=>b9e,getListAgentForResaleInstruction:()=>v9e,getListAgentForResaleInstructionAsync:()=>h9e,getListAgentForResaleInstructionDataCodec:()=>M9e,getListAgentForResaleInstructionDataDecoder:()=>lP,getListAgentForResaleInstructionDataEncoder:()=>ju,getLocationConstraintsCodec:()=>wae,getLocationConstraintsDecoder:()=>Bc,getLocationConstraintsEncoder:()=>Kc,getLongitudeRangeCodec:()=>zae,getLongitudeRangeDecoder:()=>bc,getLongitudeRangeEncoder:()=>Ic,getMakeCounterOfferDiscriminatorBytes:()=>q9e,getMakeCounterOfferInstruction:()=>Q9e,getMakeCounterOfferInstructionDataCodec:()=>J9e,getMakeCounterOfferInstructionDataDecoder:()=>TP,getMakeCounterOfferInstructionDataEncoder:()=>yP,getManageAgentStatusDiscriminatorBytes:()=>s7e,getManageAgentStatusInstruction:()=>d7e,getManageAgentStatusInstructionAsync:()=>a7e,getManageAgentStatusInstructionDataCodec:()=>i7e,getManageAgentStatusInstructionDataDecoder:()=>xP,getManageAgentStatusInstructionDataEncoder:()=>$u,getMarketAnalyticsCodec:()=>v_e,getMarketAnalyticsCreatedEventCodec:()=>Vae,getMarketAnalyticsCreatedEventDecoder:()=>hk,getMarketAnalyticsCreatedEventEncoder:()=>Mk,getMarketAnalyticsDecoder:()=>i1,getMarketAnalyticsDiscriminatorBytes:()=>h_e,getMarketAnalyticsEncoder:()=>QW,getMarketAnalyticsUpdatedEventCodec:()=>Zae,getMarketAnalyticsUpdatedEventDecoder:()=>Uk,getMarketAnalyticsUpdatedEventEncoder:()=>Ok,getMarketVolumeUpdatedEventCodec:()=>jde,getMarketVolumeUpdatedEventDecoder:()=>$k,getMarketVolumeUpdatedEventEncoder:()=>jk,getMarketplaceActivityEventCodec:()=>mde,getMarketplaceActivityEventDecoder:()=>zk,getMarketplaceActivityEventEncoder:()=>Gk,getMarketplaceMetricsCodec:()=>bde,getMarketplaceMetricsCollectedEventCodec:()=>wde,getMarketplaceMetricsCollectedEventDecoder:()=>Jk,getMarketplaceMetricsCollectedEventEncoder:()=>qk,getMarketplaceMetricsDecoder:()=>Vc,getMarketplaceMetricsEncoder:()=>Hc,getMessageCodec:()=>nke,getMessageDecoder:()=>u1,getMessageDiscriminatorBytes:()=>rke,getMessageEncoder:()=>rK,getMessageMetadataCodec:()=>cue,getMessageMetadataDecoder:()=>ot,getMessageMetadataEncoder:()=>nt,getMessageReactionCodec:()=>Sue,getMessageReactionDecoder:()=>Jc,getMessageReactionEncoder:()=>qc,getMessageReactionEventCodec:()=>_ue,getMessageReactionEventDecoder:()=>cO,getMessageReactionEventEncoder:()=>oO,getMessageSentEventCodec:()=>wue,getMessageSentEventDecoder:()=>aO,getMessageSentEventEncoder:()=>iO,getMessageTypeCodec:()=>zue,getMessageTypeDecoder:()=>U,getMessageTypeEncoder:()=>O,getMetricSampleCodec:()=>Zue,getMetricSampleDecoder:()=>jc,getMetricSampleEncoder:()=>Qc,getMintCloseAuthorityInitializedEventCodec:()=>cAe,getMintCloseAuthorityInitializedEventDecoder:()=>pO,getMintCloseAuthorityInitializedEventEncoder:()=>gO,getMultisigCodec:()=>Eke,getMultisigConfigDecoder:()=>ce,getMultisigConfigEncoder:()=>oe,getMultisigConfigExportCodec:()=>iAe,getMultisigConfigExportDecoder:()=>xO,getMultisigConfigExportEncoder:()=>SO,getMultisigCreatedEventCodec:()=>pAe,getMultisigCreatedEventDecoder:()=>bO,getMultisigCreatedEventEncoder:()=>IO,getMultisigDecoder:()=>m1,getMultisigDiscriminatorBytes:()=>Tke,getMultisigEncoder:()=>yK,getMultisigSignatureCodec:()=>bAe,getMultisigSignatureDecoder:()=>Xc,getMultisigSignatureEncoder:()=>$c,getNegotiationChatbotCodec:()=>Wke,getNegotiationChatbotDecoder:()=>x1,getNegotiationChatbotDiscriminatorBytes:()=>Lke,getNegotiationChatbotEncoder:()=>IK,getNegotiationInitiatedEventCodec:()=>OAe,getNegotiationInitiatedEventDecoder:()=>NO,getNegotiationInitiatedEventEncoder:()=>FO,getNegotiationStatusCodec:()=>NAe,getNegotiationStatusDecoder:()=>es,getNegotiationStatusEncoder:()=>Zc,getNetworkHealthEventCodec:()=>BAe,getNetworkHealthEventDecoder:()=>VO,getNetworkHealthEventEncoder:()=>HO,getNetworkHealthMetricsCodec:()=>jAe,getNetworkHealthMetricsDecoder:()=>rs,getNetworkHealthMetricsEncoder:()=>ts,getNetworkMetricsCollectedEventCodec:()=>nge,getNetworkMetricsCollectedEventDecoder:()=>ZO,getNetworkMetricsCollectedEventEncoder:()=>YO,getNetworkSecurityPoliciesCodec:()=>ige,getNetworkSecurityPoliciesDecoder:()=>os,getNetworkSecurityPoliciesEncoder:()=>ns,getNotificationMethodCodec:()=>Age,getNotificationMethodDecoder:()=>is,getNotificationMethodEncoder:()=>ss,getNotificationPriorityCodec:()=>mge,getNotificationPriorityDecoder:()=>us,getNotificationPriorityEncoder:()=>ds,getNotificationRequirementCodec:()=>Pge,getNotificationRequirementDecoder:()=>Ie,getNotificationRequirementEncoder:()=>De,getNotificationTargetCodec:()=>_ge,getNotificationTargetDecoder:()=>gs,getNotificationTargetEncoder:()=>As,getNotificationTargetTypeCodec:()=>wge,getNotificationTargetTypeDecoder:()=>Es,getNotificationTargetTypeEncoder:()=>Ts,getNotificationTimingCodec:()=>zge,getNotificationTimingDecoder:()=>ls,getNotificationTimingEncoder:()=>ps,getPasswordPoliciesCodec:()=>Zge,getPasswordPoliciesDecoder:()=>Rs,getPasswordPoliciesEncoder:()=>Ps,getPaymentCodec:()=>uOe,getPaymentDecoder:()=>f1,getPaymentDiscriminatorBytes:()=>dOe,getPaymentEncoder:()=>UK,getPaymentProcessedEventCodec:()=>ipe,getPaymentProcessedEventDecoder:()=>gU,getPaymentProcessedEventEncoder:()=>AU,getPendingTransactionCodec:()=>Dpe,getPendingTransactionDecoder:()=>Cs,getPendingTransactionEncoder:()=>fs,getPermissionCodec:()=>hpe,getPermissionConstraintCodec:()=>wpe,getPermissionConstraintDecoder:()=>Ls,getPermissionConstraintEncoder:()=>zs,getPermissionConstraintTypeCodec:()=>zpe,getPermissionConstraintTypeDecoder:()=>qs,getPermissionConstraintTypeEncoder:()=>Vs,getPermissionDecoder:()=>Gs,getPermissionEncoder:()=>Ns,getPermissionMetadataCodec:()=>Vpe,getPermissionMetadataDecoder:()=>Ks,getPermissionMetadataEncoder:()=>Ws,getPermissionScopeCodec:()=>jpe,getPermissionScopeDecoder:()=>Hs,getPermissionScopeEncoder:()=>Bs,getPlaceAuctionBidDiscriminatorBytes:()=>S7e,getPlaceAuctionBidInstruction:()=>P7e,getPlaceAuctionBidInstructionDataCodec:()=>x7e,getPlaceAuctionBidInstructionDataDecoder:()=>fP,getPlaceAuctionBidInstructionDataEncoder:()=>RP,getPlaceDutchAuctionBidDiscriminatorBytes:()=>h7e,getPlaceDutchAuctionBidInstruction:()=>_7e,getPlaceDutchAuctionBidInstructionDataCodec:()=>v7e,getPlaceDutchAuctionBidInstructionDataDecoder:()=>IP,getPlaceDutchAuctionBidInstructionDataEncoder:()=>DP,getPolicyMetadataCodec:()=>nle,getPolicyMetadataDecoder:()=>Br,getPolicyMetadataEncoder:()=>Kr,getPolicyRuleCodec:()=>Sle,getPolicyRuleDecoder:()=>Vr,getPolicyRuleEncoder:()=>Hr,getPolicyScopeCodec:()=>fle,getPolicyScopeDecoder:()=>Jr,getPolicyScopeEncoder:()=>qr,getPolicyStatusCodec:()=>ble,getPolicyStatusDecoder:()=>jr,getPolicyStatusEncoder:()=>Qr,getPolicyTypeCodec:()=>_le,getPolicyTypeDecoder:()=>Xr,getPolicyTypeEncoder:()=>$r,getPricingAlgorithmCodec:()=>wle,getPricingAlgorithmDecoder:()=>Ye,getPricingAlgorithmEncoder:()=>Xe,getPricingModelCodec:()=>zle,getPricingModelDecoder:()=>Ue,getPricingModelEncoder:()=>Oe,getProcessEscrowPaymentDiscriminatorBytes:()=>L7e,getProcessEscrowPaymentInstruction:()=>B7e,getProcessEscrowPaymentInstructionAsync:()=>K7e,getProcessEscrowPaymentInstructionDataCodec:()=>W7e,getProcessEscrowPaymentInstructionDataDecoder:()=>MP,getProcessEscrowPaymentInstructionDataEncoder:()=>Yu,getProcessPartialRefundDiscriminatorBytes:()=>eqe,getProcessPartialRefundInstruction:()=>kP,getProcessPartialRefundInstructionAsync:()=>rqe,getProcessPartialRefundInstructionDataCodec:()=>tqe,getProcessPartialRefundInstructionDataDecoder:()=>_P,getProcessPartialRefundInstructionDataEncoder:()=>Zu,getProcessPaymentDiscriminatorBytes:()=>yqe,getProcessPaymentInstruction:()=>Sqe,getProcessPaymentInstructionAsync:()=>Eqe,getProcessPaymentInstructionDataCodec:()=>Tqe,getProcessPaymentInstructionDataDecoder:()=>wP,getProcessPaymentInstructionDataEncoder:()=>eA,getProposalAccountCodec:()=>Xle,getProposalAccountDecoder:()=>pi,getProposalAccountEncoder:()=>gi,getProposalExecutedEventCodec:()=>cme,getProposalExecutedEventDecoder:()=>jU,getProposalExecutedEventEncoder:()=>QU,getProposalInstructionCodec:()=>Tme,getProposalInstructionDecoder:()=>Tc,getProposalInstructionEncoder:()=>yc,getProposalMetadataCodec:()=>Pme,getProposalMetadataDecoder:()=>Ti,getProposalMetadataEncoder:()=>yi,getProposalStatusCodec:()=>Dme,getProposalStatusDecoder:()=>xt,getProposalStatusEncoder:()=>St,getProposalTypeCodec:()=>hme,getProposalTypeDecoder:()=>X,getProposalTypeEncoder:()=>$,getPurchaseServiceDiscriminatorBytes:()=>Uqe,getPurchaseServiceInstruction:()=>Nqe,getPurchaseServiceInstructionAsync:()=>Fqe,getPurchaseServiceInstructionDataCodec:()=>wqe,getPurchaseServiceInstructionDataDecoder:()=>LP,getPurchaseServiceInstructionDataEncoder:()=>tA,getPurchaseStatusCodec:()=>Ome,getPurchaseStatusDecoder:()=>Ri,getPurchaseStatusEncoder:()=>Pi,getQuorumMethodCodec:()=>Nme,getQuorumMethodDecoder:()=>Di,getQuorumMethodEncoder:()=>Ci,getQuorumRequirementsCodec:()=>Vme,getQuorumRequirementsDecoder:()=>bi,getQuorumRequirementsEncoder:()=>Ii,getRbacConfigCodec:()=>bOe,getRbacConfigDecoder:()=>v1,getRbacConfigDiscriminatorBytes:()=>IOe,getRbacConfigEncoder:()=>KK,getRbacConfigInitializedEventCodec:()=>Xme,getRbacConfigInitializedEventDecoder:()=>mw,getRbacConfigInitializedEventEncoder:()=>lw,getReentrancyGuardCodec:()=>$Oe,getReentrancyGuardDecoder:()=>O1,getReentrancyGuardDiscriminatorBytes:()=>jOe,getReentrancyGuardEncoder:()=>QK,getReentrancyGuardSize:()=>ZOe,getReentrancyStateCodec:()=>tye,getReentrancyStateDecoder:()=>vi,getReentrancyStateEncoder:()=>hi,getRefundExpiredEscrowDiscriminatorBytes:()=>qqe,getRefundExpiredEscrowInstruction:()=>jqe,getRefundExpiredEscrowInstructionAsync:()=>Qqe,getRefundExpiredEscrowInstructionDataCodec:()=>Jqe,getRefundExpiredEscrowInstructionDataDecoder:()=>BP,getRefundExpiredEscrowInstructionDataEncoder:()=>rA,getRegisterAgentCompressedDiscriminatorBytes:()=>TJe,getRegisterAgentCompressedInstruction:()=>SJe,getRegisterAgentCompressedInstructionAsync:()=>YP,getRegisterAgentCompressedInstructionDataCodec:()=>EJe,getRegisterAgentCompressedInstructionDataDecoder:()=>XP,getRegisterAgentCompressedInstructionDataEncoder:()=>sA,getRegisterAgentDiscriminatorBytes:()=>cJe,getRegisterAgentInstruction:()=>iJe,getRegisterAgentInstructionAsync:()=>jP,getRegisterAgentInstructionDataCodec:()=>sJe,getRegisterAgentInstructionDataDecoder:()=>QP,getRegisterAgentInstructionDataEncoder:()=>oA,getRegisterExtensionDiscriminatorBytes:()=>NJe,getRegisterExtensionInstruction:()=>LJe,getRegisterExtensionInstructionAsync:()=>zJe,getRegisterExtensionInstructionDataCodec:()=>GJe,getRegisterExtensionInstructionDataDecoder:()=>tR,getRegisterExtensionInstructionDataEncoder:()=>iA,getRejectWorkDeliveryDiscriminatorBytes:()=>YJe,getRejectWorkDeliveryInstruction:()=>eQe,getRejectWorkDeliveryInstructionDataCodec:()=>ZJe,getRejectWorkDeliveryInstructionDataDecoder:()=>oR,getRejectWorkDeliveryInstructionDataEncoder:()=>nR,getReplicateAgentDiscriminatorBytes:()=>uQe,getReplicateAgentInstruction:()=>pQe,getReplicateAgentInstructionAsync:()=>gQe,getReplicateAgentInstructionDataCodec:()=>AQe,getReplicateAgentInstructionDataDecoder:()=>iR,getReplicateAgentInstructionDataEncoder:()=>dA,getReplicationRecordCodec:()=>EUe,getReplicationRecordDecoder:()=>F1,getReplicationRecordDiscriminatorBytes:()=>TUe,getReplicationRecordEncoder:()=>r2,getReplicationTemplateCodec:()=>BUe,getReplicationTemplateCreatedEventCodec:()=>dye,getReplicationTemplateCreatedEventDecoder:()=>Sw,getReplicationTemplateCreatedEventEncoder:()=>Ew,getReplicationTemplateDecoder:()=>B1,getReplicationTemplateDiscriminatorBytes:()=>KUe,getReplicationTemplateEncoder:()=>u2,getReportDataCodec:()=>Sye,getReportDataDecoder:()=>ki,getReportDataEncoder:()=>_i,getReportEntryDecoder:()=>Rt,getReportEntryEncoder:()=>Pt,getReportEntryExportCodec:()=>Pye,getReportEntryExportDecoder:()=>Dw,getReportEntryExportEncoder:()=>Cw,getReportStatusCodec:()=>hye,getReportStatusDecoder:()=>Li,getReportStatusEncoder:()=>zi,getReportSummaryCodec:()=>wye,getReportSummaryDecoder:()=>Ui,getReportSummaryEncoder:()=>Oi,getReportTypeCodec:()=>zye,getReportTypeDecoder:()=>J,getReportTypeEncoder:()=>q,getReportingFrequencyCodec:()=>Dye,getReportingFrequencyDecoder:()=>Fn,getReportingFrequencyEncoder:()=>wn,getResaleMarketCodec:()=>gwe,getResaleMarketDecoder:()=>Q1,getResaleMarketDiscriminatorBytes:()=>Awe,getResaleMarketEncoder:()=>x2,getResolveDisputeDiscriminatorBytes:()=>vQe,getResolveDisputeInstruction:()=>OQe,getResolveDisputeInstructionAsync:()=>kQe,getResolveDisputeInstructionDataCodec:()=>_Qe,getResolveDisputeInstructionDataDecoder:()=>uR,getResolveDisputeInstructionDataEncoder:()=>uA,getResourceConstraintsDecoder:()=>Ct,getResourceConstraintsEncoder:()=>ft,getResourceConstraintsExportCodec:()=>Wye,getResourceConstraintsExportDecoder:()=>Uw,getResourceConstraintsExportEncoder:()=>Ow,getReviewScheduleCodec:()=>t1e,getReviewScheduleDecoder:()=>ni,getReviewScheduleEncoder:()=>ri,getRiskAcceptanceCodec:()=>m1e,getRiskAcceptanceDecoder:()=>Vi,getRiskAcceptanceEncoder:()=>Hi,getRiskAssessmentCodec:()=>b1e,getRiskAssessmentDecoder:()=>js,getRiskAssessmentEncoder:()=>Qs,getRiskCategoryCodec:()=>_1e,getRiskCategoryDecoder:()=>$i,getRiskCategoryEncoder:()=>ji,getRiskFactorCodec:()=>W1e,getRiskFactorDecoder:()=>Ji,getRiskFactorEncoder:()=>qi,getRiskIndicatorCodec:()=>J1e,getRiskIndicatorDecoder:()=>Fi,getRiskIndicatorEncoder:()=>wi,getRiskLevelCodec:()=>X1e,getRiskLevelDecoder:()=>na,getRiskLevelEncoder:()=>ra,getRoleCodec:()=>tTe,getRoleConstraintsCodec:()=>iTe,getRoleConstraintsDecoder:()=>ca,getRoleConstraintsEncoder:()=>oa,getRoleDecoder:()=>It,getRoleEncoder:()=>Dt,getRoleMetadataCodec:()=>pTe,getRoleMetadataDecoder:()=>ia,getRoleMetadataEncoder:()=>sa,getRoleStatusCodec:()=>TTe,getRoleStatusDecoder:()=>da,getRoleStatusEncoder:()=>aa,getRoleTypeCodec:()=>PTe,getRoleTypeDecoder:()=>Aa,getRoleTypeEncoder:()=>ua,getRoyaltyConfigCodec:()=>bTe,getRoyaltyConfigDecoder:()=>Mt,getRoyaltyConfigEncoder:()=>bt,getRoyaltyStreamCodec:()=>Owe,getRoyaltyStreamCreatedEventCodec:()=>OTe,getRoyaltyStreamCreatedEventDecoder:()=>IF,getRoyaltyStreamCreatedEventEncoder:()=>DF,getRoyaltyStreamDecoder:()=>X1,getRoyaltyStreamDiscriminatorBytes:()=>kwe,getRoyaltyStreamEncoder:()=>v2,getRoyaltyStreamSize:()=>Fwe,getRuleConditionDecoder:()=>gt,getRuleConditionEncoder:()=>At,getRuleConditionExportCodec:()=>wTe,getRuleConditionExportDecoder:()=>_F,getRuleConditionExportEncoder:()=>vF,getRuleEffectCodec:()=>zTe,getRuleEffectDecoder:()=>ci,getRuleEffectEncoder:()=>oi,getScopeBoundariesCodec:()=>BTe,getScopeBoundariesDecoder:()=>Xs,getScopeBoundariesEncoder:()=>$s,getScopeInheritanceCodec:()=>JTe,getScopeInheritanceDecoder:()=>ii,getScopeInheritanceEncoder:()=>si,getScopeTypeCodec:()=>XTe,getScopeTypeDecoder:()=>Zs,getScopeTypeEncoder:()=>Ys,getSecurityEventTypeCodec:()=>tEe,getSecurityEventTypeDecoder:()=>ys,getSecurityEventTypeEncoder:()=>ms,getSecurityPoliciesCodec:()=>cEe,getSecurityPoliciesDecoder:()=>ha,getSecurityPoliciesEncoder:()=>Ma,getSendA2aMessageDiscriminatorBytes:()=>VQe,getSendA2aMessageInstruction:()=>JQe,getSendA2aMessageInstructionDataCodec:()=>qQe,getSendA2aMessageInstructionDataDecoder:()=>pR,getSendA2aMessageInstructionDataEncoder:()=>gR,getSendEnhancedMessageDiscriminatorBytes:()=>oje,getSendEnhancedMessageInstruction:()=>sje,getSendEnhancedMessageInstructionAsync:()=>SR,getSendEnhancedMessageInstructionDataCodec:()=>cje,getSendEnhancedMessageInstructionDataDecoder:()=>ER,getSendEnhancedMessageInstructionDataEncoder:()=>gA,getSendMessageDiscriminatorBytes:()=>Rje,getSendMessageInstruction:()=>Cje,getSendMessageInstructionDataCodec:()=>fje,getSendMessageInstructionDataDecoder:()=>RR,getSendMessageInstructionDataEncoder:()=>PR,getServiceAuctionCreatedEventCodec:()=>AEe,getServiceAuctionCreatedEventDecoder:()=>LF,getServiceAuctionCreatedEventEncoder:()=>zF,getServiceListingCodec:()=>iFe,getServiceListingCreatedEventCodec:()=>SEe,getServiceListingCreatedEventDecoder:()=>VF,getServiceListingCreatedEventEncoder:()=>HF,getServiceListingDecoder:()=>rT,getServiceListingDiscriminatorBytes:()=>sFe,getServiceListingEncoder:()=>F2,getServicePerformanceEventCodec:()=>OEe,getServicePerformanceEventDecoder:()=>$F,getServicePerformanceEventEncoder:()=>jF,getServicePurchaseCodec:()=>MFe,getServicePurchaseDecoder:()=>dT,getServicePurchaseDiscriminatorBytes:()=>bFe,getServicePurchaseEncoder:()=>Q2,getServicePurchasedEventCodec:()=>zEe,getServicePurchasedEventDecoder:()=>nN,getServicePurchasedEventEncoder:()=>rN,getSessionConstraintsCodec:()=>BEe,getSessionConstraintsDecoder:()=>pa,getSessionConstraintsEncoder:()=>ga,getSessionPoliciesCodec:()=>jEe,getSessionPoliciesDecoder:()=>_a,getSessionPoliciesEncoder:()=>va,getSodConstraintCodec:()=>ZEe,getSodConstraintDecoder:()=>ma,getSodConstraintEncoder:()=>la,getSodConstraintTypeCodec:()=>nSe,getSodConstraintTypeDecoder:()=>Oa,getSodConstraintTypeEncoder:()=>ka,getStepUpTriggerCodec:()=>iSe,getStepUpTriggerDecoder:()=>eo,getStepUpTriggerEncoder:()=>Zn,getSubmissionDetailsCodec:()=>pSe,getSubmissionDetailsDecoder:()=>Na,getSubmissionDetailsEncoder:()=>Fa,getSubmitDisputeEvidenceDiscriminatorBytes:()=>Uje,getSubmitDisputeEvidenceInstruction:()=>Nje,getSubmitDisputeEvidenceInstructionAsync:()=>Fje,getSubmitDisputeEvidenceInstructionDataCodec:()=>wje,getSubmitDisputeEvidenceInstructionDataDecoder:()=>DR,getSubmitDisputeEvidenceInstructionDataEncoder:()=>pA,getSubmitEvidenceBatchDiscriminatorBytes:()=>jje,getSubmitEvidenceBatchInstruction:()=>Yje,getSubmitEvidenceBatchInstructionAsync:()=>Xje,getSubmitEvidenceBatchInstructionDataCodec:()=>$je,getSubmitEvidenceBatchInstructionDataDecoder:()=>MR,getSubmitEvidenceBatchInstructionDataEncoder:()=>lA,getSubmitWorkDeliveryDiscriminatorBytes:()=>u$e,getSubmitWorkDeliveryInstruction:()=>p$e,getSubmitWorkDeliveryInstructionAsync:()=>g$e,getSubmitWorkDeliveryInstructionDataCodec:()=>A$e,getSubmitWorkDeliveryInstructionDataDecoder:()=>_R,getSubmitWorkDeliveryInstructionDataEncoder:()=>mA,getTallyVotesDiscriminatorBytes:()=>P$e,getTallyVotesInstruction:()=>f$e,getTallyVotesInstructionDataCodec:()=>R$e,getTallyVotesInstructionDataDecoder:()=>UR,getTallyVotesInstructionDataEncoder:()=>OR,getTimeConstraintsCodec:()=>SSe,getTimeConstraintsDecoder:()=>Ta,getTimeConstraintsEncoder:()=>ya,getTimeLockCodec:()=>bSe,getTimeLockDecoder:()=>Is,getTimeLockEncoder:()=>Ds,getTimeLockTypeCodec:()=>_Se,getTimeLockTypeDecoder:()=>za,getTimeLockTypeEncoder:()=>Ga,getToken2022ExtensionsEnabledCodec:()=>wSe,getToken2022ExtensionsEnabledDecoder:()=>Ka,getToken2022ExtensionsEnabledEncoder:()=>Wa,getToken2022MintCreatedEventCodec:()=>BSe,getToken2022MintCreatedEventDecoder:()=>IN,getToken2022MintCreatedEventEncoder:()=>DN,getTopAgentAddedEventCodec:()=>jSe,getTopAgentAddedEventDecoder:()=>_N,getTopAgentAddedEventEncoder:()=>vN,getTransactionAnalyticsEventCodec:()=>txe,getTransactionAnalyticsEventDecoder:()=>HN,getTransactionAnalyticsEventEncoder:()=>BN,getTransactionPriorityCodec:()=>cxe,getTransactionPriorityDecoder:()=>Ms,getTransactionPriorityEncoder:()=>bs,getTransactionStatusCodec:()=>dxe,getTransactionStatusDecoder:()=>vs,getTransactionStatusEncoder:()=>hs,getTransactionTypeCodec:()=>pxe,getTransactionTypeDecoder:()=>et,getTransactionTypeEncoder:()=>Ze,getTransferFeeInitializedEventCodec:()=>fxe,getTransferFeeInitializedEventDecoder:()=>YN,getTransferFeeInitializedEventEncoder:()=>XN,getTrendDirectionCodec:()=>bxe,getTrendDirectionDecoder:()=>Yi,getTrendDirectionEncoder:()=>Xi,getTypingIndicatorEventCodec:()=>wxe,getTypingIndicatorEventDecoder:()=>oG,getTypingIndicatorEventEncoder:()=>nG,getUnlockMethodCodec:()=>zxe,getUnlockMethodDecoder:()=>tn,getUnlockMethodEncoder:()=>en,getUpdateA2aStatusDiscriminatorBytes:()=>W$e,getUpdateA2aStatusInstruction:()=>H$e,getUpdateA2aStatusInstructionAsync:()=>B$e,getUpdateA2aStatusInstructionDataCodec:()=>K$e,getUpdateA2aStatusInstructionDataDecoder:()=>NR,getUpdateA2aStatusInstructionDataEncoder:()=>yA,getUpdateAgentDiscriminatorBytes:()=>rXe,getUpdateAgentInstruction:()=>HR,getUpdateAgentInstructionAsync:()=>oXe,getUpdateAgentInstructionDataCodec:()=>nXe,getUpdateAgentInstructionDataDecoder:()=>BR,getUpdateAgentInstructionDataEncoder:()=>TA,getUpdateAgentReputationDiscriminatorBytes:()=>SXe,getUpdateAgentReputationInstruction:()=>RXe,getUpdateAgentReputationInstructionAsync:()=>PXe,getUpdateAgentReputationInstructionDataCodec:()=>xXe,getUpdateAgentReputationInstructionDataDecoder:()=>JR,getUpdateAgentReputationInstructionDataEncoder:()=>EA,getUpdateAgentServiceDiscriminatorBytes:()=>LXe,getUpdateAgentServiceInstruction:()=>BXe,getUpdateAgentServiceInstructionAsync:()=>KXe,getUpdateAgentServiceInstructionDataCodec:()=>WXe,getUpdateAgentServiceInstructionDataDecoder:()=>rf,getUpdateAgentServiceInstructionDataEncoder:()=>SA,getUpdateAnalyticsDashboardDiscriminatorBytes:()=>cYe,getUpdateAnalyticsDashboardInstruction:()=>aYe,getUpdateAnalyticsDashboardInstructionAsync:()=>iYe,getUpdateAnalyticsDashboardInstructionDataCodec:()=>sYe,getUpdateAnalyticsDashboardInstructionDataDecoder:()=>cf,getUpdateAnalyticsDashboardInstructionDataEncoder:()=>xA,getUpdateAuctionReservePriceDiscriminatorBytes:()=>xYe,getUpdateAuctionReservePriceInstruction:()=>RYe,getUpdateAuctionReservePriceInstructionDataCodec:()=>PYe,getUpdateAuctionReservePriceInstructionDataDecoder:()=>df,getUpdateAuctionReservePriceInstructionDataEncoder:()=>af,getUpdateChannelSettingsDiscriminatorBytes:()=>_Ye,getUpdateChannelSettingsInstruction:()=>pf,getUpdateChannelSettingsInstructionAsync:()=>OYe,getUpdateChannelSettingsInstructionDataCodec:()=>kYe,getUpdateChannelSettingsInstructionDataDecoder:()=>gf,getUpdateChannelSettingsInstructionDataEncoder:()=>PA,getUpdateDynamicPricingDiscriminatorBytes:()=>JYe,getUpdateDynamicPricingInstruction:()=>jYe,getUpdateDynamicPricingInstructionDataCodec:()=>QYe,getUpdateDynamicPricingInstructionDataDecoder:()=>Ef,getUpdateDynamicPricingInstructionDataEncoder:()=>Tf,getUpdateMarketAnalyticsDiscriminatorBytes:()=>nZe,getUpdateMarketAnalyticsInstruction:()=>cZe,getUpdateMarketAnalyticsInstructionDataCodec:()=>oZe,getUpdateMarketAnalyticsInstructionDataDecoder:()=>Pf,getUpdateMarketAnalyticsInstructionDataEncoder:()=>xf,getUserEngagementEventCodec:()=>tPe,getUserEngagementEventDecoder:()=>uG,getUserEngagementEventEncoder:()=>dG,getUserJoinedChannelEventCodec:()=>iPe,getUserJoinedChannelEventDecoder:()=>mG,getUserJoinedChannelEventEncoder:()=>lG,getUserLeftChannelEventCodec:()=>pPe,getUserLeftChannelEventDecoder:()=>xG,getUserLeftChannelEventEncoder:()=>SG,getUserRegistryCodec:()=>XFe,getUserRegistryDecoder:()=>gT,getUserRegistryDiscriminatorBytes:()=>$Fe,getUserRegistryEncoder:()=>eB,getUserRegistrySize:()=>eNe,getValueTypeCodec:()=>TPe,getValueTypeDecoder:()=>Oo,getValueTypeEncoder:()=>ko,getVerifyAgentDiscriminatorBytes:()=>bZe,getVerifyAgentInstruction:()=>hZe,getVerifyAgentInstructionAsync:()=>If,getVerifyAgentInstructionDataCodec:()=>MZe,getVerifyAgentInstructionDataDecoder:()=>Df,getVerifyAgentInstructionDataEncoder:()=>RA,getVerifyWorkDeliveryDiscriminatorBytes:()=>VZe,getVerifyWorkDeliveryInstruction:()=>JZe,getVerifyWorkDeliveryInstructionDataCodec:()=>qZe,getVerifyWorkDeliveryInstructionDataDecoder:()=>hf,getVerifyWorkDeliveryInstructionDataEncoder:()=>Mf,getViolationSeverityCodec:()=>PPe,getViolationSeverityDecoder:()=>ea,getViolationSeverityEncoder:()=>Zi,getVolumeTierCodec:()=>DPe,getVolumeTierDecoder:()=>vt,getVolumeTierEncoder:()=>ht,getVoteCastEventCodec:()=>jPe,getVoteCastEventDecoder:()=>_G,getVoteCastEventEncoder:()=>vG,getVoteChoiceCodec:()=>ZPe,getVoteChoiceDecoder:()=>ie,getVoteChoiceEncoder:()=>se,getVoteCodec:()=>WPe,getVoteDecoder:()=>Za,getVoteDelegatedEventCodec:()=>cRe,getVoteDelegatedEventDecoder:()=>WG,getVoteDelegatedEventEncoder:()=>LG,getVoteEncoder:()=>Ya,getVotesTalliedEventCodec:()=>mRe,getVotesTalliedEventDecoder:()=>HG,getVotesTalliedEventEncoder:()=>BG,getVotingResultsCodec:()=>fRe,getVotingResultsDecoder:()=>sd,getVotingResultsEncoder:()=>cd,getWorkDeliveryCodec:()=>SNe,getWorkDeliveryDecoder:()=>mT,getWorkDeliveryDiscriminatorBytes:()=>ENe,getWorkDeliveryEncoder:()=>lB,getWorkDeliveryRejectedEventCodec:()=>ORe,getWorkDeliveryRejectedEventDecoder:()=>ez,getWorkDeliveryRejectedEventEncoder:()=>ZG,getWorkDeliverySubmittedEventCodec:()=>VRe,getWorkDeliverySubmittedEventDecoder:()=>cz,getWorkDeliverySubmittedEventEncoder:()=>oz,getWorkDeliveryVerifiedEventCodec:()=>cfe,getWorkDeliveryVerifiedEventDecoder:()=>az,getWorkDeliveryVerifiedEventEncoder:()=>iz,getWorkOrderCodec:()=>KNe,getWorkOrderCreatedEventCodec:()=>pfe,getWorkOrderCreatedEventDecoder:()=>Az,getWorkOrderCreatedEventEncoder:()=>uz,getWorkOrderDecoder:()=>IT,getWorkOrderDiscriminatorBytes:()=>WNe,getWorkOrderEncoder:()=>xB,getWorkOrderStatusCodec:()=>Tfe,getWorkOrderStatusDecoder:()=>dd,getWorkOrderStatusEncoder:()=>ad,identifyGhostspeakMarketplaceAccount:()=>VNe,identifyGhostspeakMarketplaceInstruction:()=>qNe,isDelegationScope:()=>tre,isGhostspeakMarketplaceError:()=>jNe,parseAcceptJobApplicationInstruction:()=>dGe,parseActivateAgentInstruction:()=>CGe,parseAddMessageReactionInstruction:()=>WGe,parseAddTopAgentInstruction:()=>ZGe,parseApplyToJobInstruction:()=>mze,parseApproveExtensionInstruction:()=>Dze,parseAssignArbitratorInstruction:()=>zze,parseBatchReplicateAgentsInstruction:()=>Zze,parseCancelEscrowInstruction:()=>y8e,parseCastVoteInstruction:()=>U8e,parseCompleteEscrowInstruction:()=>Z8e,parseCreateA2aSessionInstruction:()=>mLe,parseCreateAnalyticsDashboardInstruction:()=>OLe,parseCreateBulkDealInstruction:()=>eWe,parseCreateChannelInstruction:()=>EWe,parseCreateDynamicPricingEngineInstruction:()=>_We,parseCreateEnhancedChannelInstruction:()=>QWe,parseCreateEscrowInstruction:()=>yKe,parseCreateIncentiveProgramInstruction:()=>hKe,parseCreateJobPostingInstruction:()=>HKe,parseCreateMarketAnalyticsInstruction:()=>r2e,parseCreateMultisigInstruction:()=>x2e,parseCreateReplicationTemplateInstruction:()=>N2e,parseCreateRoyaltyStreamInstruction:()=>$2e,parseCreateServiceAuctionInstruction:()=>mBe,parseCreateServiceListingInstruction:()=>kBe,parseCreateToken2022MintInstruction:()=>jBe,parseCreateWorkOrderInstruction:()=>d0e,parseDeactivateAgentInstruction:()=>C0e,parseDelegateVoteInstruction:()=>W0e,parseDisputeEscrowInstruction:()=>oHe,parseDistributeIncentivesInstruction:()=>CHe,parseExecuteBulkDealBatchInstruction:()=>zHe,parseExecuteProposalInstruction:()=>jHe,parseExportActionInstruction:()=>c4e,parseExportAuditContextInstruction:()=>m4e,parseExportBiometricQualityInstruction:()=>D4e,parseExportComplianceStatusInstruction:()=>w4e,parseExportDynamicPricingConfigInstruction:()=>V4e,parseExportMultisigConfigInstruction:()=>t6e,parseExportReportEntryInstruction:()=>A6e,parseExportResourceConstraintsInstruction:()=>P6e,parseExportRuleConditionInstruction:()=>_6e,parseExtendAuctionForReserveInstruction:()=>W6e,parseFileDisputeInstruction:()=>t3e,parseFinalizeAuctionInstruction:()=>A3e,parseGenerateComplianceReportInstruction:()=>C3e,parseInitializeAuditTrailInstruction:()=>B3e,parseInitializeConfidentialTransferMintInstruction:()=>oVe,parseInitializeDefaultAccountStateInstruction:()=>TVe,parseInitializeGovernanceProposalInstruction:()=>vVe,parseInitializeInterestBearingConfigInstruction:()=>VVe,parseInitializeMintCloseAuthorityInstruction:()=>o5e,parseInitializeRbacConfigInstruction:()=>S5e,parseInitializeTransferFeeConfigInstruction:()=>w5e,parseInitiateNegotiationInstruction:()=>j5e,parseJoinChannelInstruction:()=>s9e,parseLeaveChannelInstruction:()=>T9e,parseListAgentForResaleInstruction:()=>_9e,parseMakeCounterOfferInstruction:()=>j9e,parseManageAgentStatusInstruction:()=>u7e,parsePlaceAuctionBidInstruction:()=>R7e,parsePlaceDutchAuctionBidInstruction:()=>k7e,parseProcessEscrowPaymentInstruction:()=>H7e,parseProcessPartialRefundInstruction:()=>nqe,parseProcessPaymentInstruction:()=>xqe,parsePurchaseServiceInstruction:()=>Gqe,parseRefundExpiredEscrowInstruction:()=>$qe,parseRegisterAgentCompressedInstruction:()=>xJe,parseRegisterAgentInstruction:()=>aJe,parseRegisterExtensionInstruction:()=>WJe,parseRejectWorkDeliveryInstruction:()=>tQe,parseReplicateAgentInstruction:()=>lQe,parseResolveDisputeInstruction:()=>UQe,parseSendA2aMessageInstruction:()=>QQe,parseSendEnhancedMessageInstruction:()=>ije,parseSendMessageInstruction:()=>Dje,parseSubmitDisputeEvidenceInstruction:()=>Gje,parseSubmitEvidenceBatchInstruction:()=>Zje,parseSubmitWorkDeliveryInstruction:()=>l$e,parseTallyVotesInstruction:()=>C$e,parseUpdateA2aStatusInstruction:()=>V$e,parseUpdateAgentInstruction:()=>cXe,parseUpdateAgentReputationInstruction:()=>fXe,parseUpdateAgentServiceInstruction:()=>HXe,parseUpdateAnalyticsDashboardInstruction:()=>dYe,parseUpdateAuctionReservePriceInstruction:()=>fYe,parseUpdateChannelSettingsInstruction:()=>UYe,parseUpdateDynamicPricingInstruction:()=>$Ye,parseUpdateMarketAnalyticsInstruction:()=>sZe,parseVerifyAgentInstruction:()=>vZe,parseVerifyWorkDeliveryInstruction:()=>QZe});var de=i(()=>{CB();LB();f5();E();y();});de();E();function C5(e){return typeof e!="object"||e===null?false:typeof e.IpfsHash=="string"}var $t=class{rpc;rpcSubscriptions;commitment;endpoint;maxRetries;retryDelay;timeout;constructor(n){this.endpoint=n.endpoint,this.rpc=createSolanaRpc(n.endpoint),this.commitment=n.commitment??"confirmed",this.maxRetries=n.maxRetries??3,this.retryDelay=n.retryDelay??1e3,this.timeout=n.timeout??6e4,n.wsEndpoint&&(this.rpcSubscriptions=createSolanaRpcSubscriptions(n.wsEndpoint));}async getAccountInfo(n,r){return this.withRetry(async()=>{let c=await this.rpc.getAccountInfo(n,{commitment:r?.commitment??this.commitment,encoding:"base64"}).send();return c.value?this.parseAccountInfo(c.value):null})}async getMultipleAccounts(n,r){return this.withRetry(async()=>(await this.rpc.getMultipleAccounts(n,{commitment:r?.commitment??this.commitment,encoding:"base64"}).send()).value.map(t=>t?this.parseAccountInfo(t):null))}async getProgramAccounts(n,r){return this.withRetry(async()=>(await this.rpc.getProgramAccounts(n,{commitment:r?.commitment??this.commitment,encoding:"base64",filters:r?.filters}).send()).map(t=>{let s=t;return {pubkey:s.pubkey,account:this.parseAccountInfo(s.account)}}))}blockhashCache=null;async getLatestBlockhash(){let n=Date.now();if(this.blockhashCache&&n-this.blockhashCache.timestamp<1e3)return this.blockhashCache.value;let r=await this.withRetry(async()=>{let c=await this.rpc.getLatestBlockhash({commitment:this.commitment}).send();return {blockhash:c.value.blockhash,lastValidBlockHeight:BigInt(c.value.lastValidBlockHeight)}});return this.blockhashCache={value:r,timestamp:n},r}async sendTransaction(n,r){return this.withRetry(async()=>await this.rpc.sendTransaction(n,{encoding:"base64",skipPreflight:r?.skipPreflight??false,preflightCommitment:r?.preflightCommitment??this.commitment,maxRetries:r?.maxRetries?BigInt(r.maxRetries):void 0}).send())}async getSignatureStatuses(n){return this.withRetry(async()=>(await this.rpc.getSignatureStatuses(n).send()).value.map(c=>{if(!c)return null;let t=c;return {slot:t.slot,confirmations:t.confirmations,err:t.err,confirmationStatus:t.confirmationStatus}}))}async simulateTransaction(n,r){return this.withRetry(async()=>{let c=await this.rpc.simulateTransaction(n,{encoding:"base64",commitment:r?.commitment??this.commitment,replaceRecentBlockhash:r?.replaceRecentBlockhash??false}).send();return {err:c.value.err,logs:c.value.logs??[],unitsConsumed:c.value.unitsConsumed?BigInt(c.value.unitsConsumed):void 0,returnData:c.value.returnData}})}async getFeeForMessage(n){return this.withRetry(async()=>{let r=await this.rpc.getFeeForMessage(n,{commitment:this.commitment}).send();return r.value?BigInt(r.value):null})}async isHealthy(){try{return await this.rpc.getHealth().send(),!0}catch{return false}}async getVersion(){return await this.rpc.getVersion().send()}async subscribeToAccount(n,r){if(!this.rpcSubscriptions)throw new Error("WebSocket endpoint not configured");console.warn("Account subscription is not fully implemented in this version");let c=setInterval(async()=>{try{let t=await this.getAccountInfo(n);r(t);}catch(t){console.error("Subscription polling error:",t);}},5e3);return ()=>{clearInterval(c);}}async withRetry(n,r=this.maxRetries){let c;for(let t=0;t<=r;t++)try{return await n()}catch(s){c=s,t<r&&await new Promise(o=>setTimeout(o,this.retryDelay*Math.pow(2,t)));}throw c}parseAccountInfo(n){let r=n,c=r.data,t=Array.isArray(c)?c[0]:c;return {executable:r.executable,lamports:typeof r.lamports=="number"?lamports(BigInt(r.lamports)):r.lamports,owner:r.owner,rentEpoch:r.rentEpoch!==void 0?typeof r.rentEpoch=="number"?BigInt(r.rentEpoch):r.rentEpoch:0n,data:Buffer.from(t,"base64"),space:r.space?typeof r.space=="number"?BigInt(r.space):r.space:void 0}}};function YZe(e,n="mainnet-beta"){let r="https://explorer.solana.com/tx";switch(n){case "devnet":return `${r}/${e}?cluster=devnet`;case "testnet":return `${r}/${e}?cluster=testnet`;case "localnet":return `${r}/${e}?cluster=custom&customUrl=http://localhost:8899`;default:return `${r}/${e}`}}function ZZe(e,n="mainnet-beta"){let r="https://solscan.io/tx";switch(n){case "devnet":return `${r}/${e}?cluster=devnet`;case "testnet":return `${r}/${e}?cluster=testnet`;case "localnet":return `Local transaction: ${e} (not viewable on Solscan)`;default:return `${r}/${e}`}}function eet(e,n="mainnet-beta"){let r="https://solana.fm/tx";switch(n){case "devnet":return `${r}/${e}?cluster=devnet-solana`;case "testnet":return `${r}/${e}?cluster=testnet-solana`;case "localnet":return `Local transaction: ${e} (not viewable on SolanaFM)`;default:return `${r}/${e}`}}function tet(e,n="mainnet-beta"){let r="https://xray.helius.xyz/tx";switch(n){case "devnet":return `${r}/${e}?network=devnet`;case "testnet":return `${r}/${e}?network=testnet`;case "localnet":return `Local transaction: ${e} (not viewable on XRAY)`;default:return `${r}/${e}`}}function ret(e,n="mainnet-beta"){return {solanaExplorer:YZe(e,n),solscan:ZZe(e,n),solanaFM:eet(e,n),xray:tet(e,n)}}function vf(e,n,r="confirmed"){return {signature:e,cluster:n,urls:ret(e,n),commitment:r,timestamp:Date.now()}}Jt();var CA=class e{static instance=null;rpcClient;config;isDevelopment;logs=[];timings=new Map;constructor(n){this.config=n,this.rpcClient=new $t({endpoint:n.rpcEndpoint??"https://api.devnet.solana.com",commitment:n.commitment}),this.isDevelopment=process.env.NODE_ENV==="development"||n.cluster==="localnet"||false;}static getInstance(n){if(!e.instance&&n&&(e.instance=new e(n)),!e.instance)throw new Error("DevTools not initialized. Call with config first.");return e.instance}enableDevMode(){this.isDevelopment=true,console.log("\u{1F6E0}\uFE0F GhostSpeak Development Mode Enabled"),console.log(" - Transaction simulation before sending"),console.log(" - Cost estimates for all operations"),console.log(" - Enhanced error messages"),console.log(" - Performance timing");}isDevMode(){return this.isDevelopment}analyzeTransaction(n){let r=new Set,c=new Set,t=new Set,s=[],o=64,a=n.map((b,h)=>{o+=32,o+=(b.accounts?.length??0)*32,o+=b.data?.length??0;let P=(b.accounts??[]).map(D=>{let v=D.role.toString().includes("writable"),w=D.role.toString().includes("signer");return v?r.add(D.address):c.add(D.address),w&&t.add(D.address),{address:D.address,isWritable:v,isSigner:w,role:D.role}}),M=this.getInstructionDescription(b,h);return {index:h,programId:b.programAddress,accountCount:P.length,dataSize:b.data?.length??0,humanReadable:M,accounts:P}}),A=this.estimateComputeUnits(n),f=this.estimateFee(A,n.length);return o>1232&&s.push(`Transaction size (${o} bytes) exceeds limit (1232 bytes)`),t.size===0&&s.push("No signers found in transaction"),A>1400000n&&s.push(`High compute usage: ${A} units`),{instructions:a,totalAccounts:r.size+c.size,signerCount:t.size,writableAccounts:Array.from(r),readonlyAccounts:Array.from(c),estimatedSize:o,estimatedComputeUnits:A,estimatedFee:f,warnings:s}}getInstructionDescription(n,r){let c=n.programAddress;return c===this.config.programId?this.decodeGhostSpeakInstruction(n):c==="11111111111111111111111111111111"?"System Program: Transfer or Create Account":c==="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"?"Token Program: Token Operation":c==="TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"?"Token-2022 Program: Advanced Token Operation":"Unknown Instruction"}decodeGhostSpeakInstruction(n){if(!n.data||n.data.length<8)return "GhostSpeak: Unknown Instruction";let r=Array.from(n.data.slice(0,8)).map(t=>t.toString(16).padStart(2,"0")).join("");return `GhostSpeak: ${{a8c5e109d3d1b8d5:"Register Agent",b7f3c8e0a2d4e9f1:"Create Escrow",c4d2f7a9b8e1c3f5:"Send Message",d9e8f2b5c1a7e4f8:"Create Channel"}[r]??"Custom Instruction"}`}estimateComputeUnits(n){let r=0n;for(let c of n)r+=200n,r+=BigInt((c.accounts?.length??0)*150),r+=BigInt((c.data?.length??0)*10),c.programAddress===this.config.programId&&(r+=5000n);return r}estimateFee(n,r){let c=5000n,t=n*5n/1000000n,s=BigInt(r*1e3);return c+t+s}log(n,r){if(!this.isDevelopment)return;let t=`[${new Date().toISOString()}] ${n}`;this.logs.push(t),console.log(`\u{1F50D} ${t}`),r&&console.log(" Data:",r);}startTiming(n){if(!this.isDevelopment)return;let r=typeof performance<"u"?performance.now():Date.now();this.timings.set(n,r);}endTiming(n){if(!this.isDevelopment)return;let r=this.timings.get(n);if(!r)return;let t=(typeof performance<"u"?performance.now():Date.now())-r;this.log(`${n} took ${t.toFixed(2)}ms`),this.timings.delete(n);}formatTransaction(n){let r=["\u{1F4CB} Transaction Analysis","\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550",`Instructions: ${n.instructions.length}`,`Total Accounts: ${n.totalAccounts}`,`Signers: ${n.signerCount}`,`Estimated Size: ${n.estimatedSize} bytes`,`Estimated Compute Units: ${n.estimatedComputeUnits.toLocaleString()}`,`Estimated Fee: ${(Number(n.estimatedFee)/1e9).toFixed(6)} SOL`,""];r.push("Instructions:");for(let c of n.instructions)r.push(` ${c.index+1}. ${c.humanReadable}`),r.push(` Program: ${c.programId.slice(0,8)}...`),r.push(` Accounts: ${c.accountCount}, Data: ${c.dataSize} bytes`);if(n.warnings.length>0){r.push(""),r.push("\u26A0\uFE0F Warnings:");for(let c of n.warnings)r.push(` - ${c}`);}return r.push("\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550"),r.join(`
3
- `)}exportLogs(){return [...this.logs]}clearLogs(){this.logs=[],this.timings.clear();}};function bA(e){if(!e.programAddress)throw new Error("Invalid instruction format")}var MA=class{rpcClient;config;devTools;debugMode=false;constructor(n){this.config=n,this.rpcClient=new $t({endpoint:n.rpcEndpoint??"https://api.devnet.solana.com",wsEndpoint:n.wsEndpoint,commitment:n.commitment??"confirmed"}),this.devTools=CA.getInstance(n);}async execute(n,r,c,t){let s=mS("execute",n,c.map(o=>({address:o.address,name:"signer"})),{programId:this.config.programId});try{this.devTools.isDevMode()&&this.devTools.startTiming(n);let o=await Promise.resolve(r());if(bA(o),this.debugMode||this.devTools.isDevMode()){let M=this.devTools.analyzeTransaction([o]);console.log(this.devTools.formatTransaction(M)),this.debugMode=!1;}if(t?.simulate)return await this.simulateInstruction(o,c);let a=await this.rpcClient.getLatestBlockhash(),A={blockhash:a.blockhash,lastValidBlockHeight:a.lastValidBlockHeight},f=pipe(createTransactionMessage({version:0}),M=>setTransactionMessageFeePayerSigner(c[0],M),M=>setTransactionMessageLifetimeUsingBlockhash(A,M),M=>appendTransactionMessageInstructions([o],M)),b=await signTransactionMessageWithSigners(f),h=await this.sendAndConfirm(b,t?.skipPreflight??!1,t?.maxRetries??30);if(typeof h!="string")throw new Error("Transaction signature is not a string");let P=h;if(t?.returnDetails){let M=this.config.cluster??"devnet",D=vf(P,M,this.config.commitment??"confirmed");return this.devTools.isDevMode()&&this.devTools.endTiming(n),D}return this.devTools.isDevMode()&&this.devTools.endTiming(n),P}catch(o){throw lS(o,s),o}}async executeBatch(n,r,c,t){let s=mS("executeBatch",n,c.map(o=>({address:o.address,name:"signer"})),{programId:this.config.programId,instructionCount:r.length});try{let o=await Promise.all(r.map(async(D,v)=>{let w=await Promise.resolve(D());try{return bA(w),w}catch(C){throw new Error(`Instruction ${v} in ${n}: ${C.message}`)}})),a=this.estimateTransactionSize(o);if(a>1232)throw new Error(`Transaction too large: ${a} bytes (max: 1232)`);if(t?.simulate)return await this.simulateBatch(o,c);let A=await this.rpcClient.getLatestBlockhash(),f={blockhash:A.blockhash,lastValidBlockHeight:A.lastValidBlockHeight},b=pipe(createTransactionMessage({version:0}),D=>setTransactionMessageFeePayerSigner(c[0],D),D=>setTransactionMessageLifetimeUsingBlockhash(f,D),D=>appendTransactionMessageInstructions(o,D)),h=await signTransactionMessageWithSigners(b),P=await this.sendAndConfirm(h,t?.skipPreflight??!1);if(typeof P!="string")throw new Error("Transaction signature is not a string");let M=P;if(t?.returnDetails){let D=this.config.cluster??"devnet",v=vf(M,D,this.config.commitment??"confirmed");return this.devTools.isDevMode()&&this.devTools.endTiming(n),v}return this.devTools.isDevMode()&&this.devTools.endTiming(n),M}catch(o){throw lS(o,s),o}}async getAccount(n,r){try{let c=await this.rpcClient.getAccountInfo(n,{commitment:this.config.commitment});if(!c)return null;let s=(await Promise.resolve().then(()=>(de(),fA)))[r],o=s(),a=this.extractRawData(c.data);return o.decode(a)}catch(c){return console.warn(`Failed to fetch account ${n}:`,c),null}}async getAccounts(n,r){try{let c=await this.rpcClient.getMultipleAccounts(n,{commitment:this.config.commitment}),s=(await Promise.resolve().then(()=>(de(),fA)))[r],o=s();return c.map(a=>{if(!a)return null;try{let A=this.extractRawData(a.data);return o.decode(A)}catch{return null}})}catch(c){return console.warn("Failed to fetch multiple accounts:",c),n.map(()=>null)}}async getProgramAccounts(n,r){try{let c=r?.map(f=>"dataSize"in f?{dataSize:f.dataSize}:(f.memcmp.encoding??"base58")==="base64"?{memcmp:{offset:f.memcmp.offset,bytes:f.memcmp.bytes,encoding:"base64"}}:{memcmp:{offset:f.memcmp.offset,bytes:f.memcmp.bytes,encoding:"base58"}}),t=await this.rpcClient.getProgramAccounts(this.config.programId,{commitment:this.config.commitment,filters:c??[]}),o=(await Promise.resolve().then(()=>(de(),fA)))[n],a=o(),A=[];for(let{pubkey:f,account:b}of t)try{let h=this.extractRawData(b.data),P=a.decode(h);A.push({address:f,data:P});}catch{}return A}catch(c){return console.error("Failed to get program accounts:",c),[]}}enableDebug(){return this.debugMode=true,this}async debug(n,r){this.devTools.log(`Debugging ${n}`);let c=await Promise.all(r.map(async s=>{let o=await Promise.resolve(s());return bA(o),o})),t=this.devTools.analyzeTransaction(c);return console.log(this.devTools.formatTransaction(t)),t}async explain(n,r){let c=await this.debug(n,r),t=[`\u{1F50D} Transaction: ${n}`,"","This transaction will:",...c.instructions.map((s,o)=>` ${o+1}. ${s.humanReadable}`),"",`Cost: ~${(Number(c.estimatedFee)/1e9).toFixed(6)} SOL`,`Size: ${c.estimatedSize} bytes`,`Compute: ${c.estimatedComputeUnits.toLocaleString()} units`];return c.warnings.length>0&&(t.push("","\u26A0\uFE0F Warnings:"),t.push(...c.warnings.map(s=>` - ${s}`))),t.join(`
4
- `)}async estimateCost(n){try{let r=await Promise.all(n.map(async f=>{let b=await Promise.resolve(f());return bA(b),b})),c=await this.rpcClient.getLatestBlockhash(),t={blockhash:c.blockhash,lastValidBlockHeight:c.lastValidBlockHeight},s=pipe(createTransactionMessage({version:0}),f=>setTransactionMessageFeePayer(this.config.defaultFeePayer,f),f=>setTransactionMessageLifetimeUsingBlockhash(t,f),f=>appendTransactionMessageInstructions(r,f)),o=compileTransactionMessage(s),a=Buffer.from(o).toString("base64"),A=await this.rpcClient.getFeeForMessage(a);return BigInt(A??0)}catch{return 5000n+BigInt(n.length)*1000n}}async sendAndConfirm(n,r,c=30){let t=getBase64EncodedWireTransaction(n),s=await this.rpcClient.sendTransaction(t,{skipPreflight:r,preflightCommitment:this.config.commitment}),o=false,a=0,A=1e3;for(;!o&&a<c;)try{let f=await this.rpcClient.getSignatureStatuses([s]);if(f[0]){if(f[0].err)throw new Error(`Transaction failed: ${JSON.stringify(f[0].err)}`);let b=f[0].confirmationStatus;if(b===this.config.commitment||this.config.commitment==="confirmed"&&b==="finalized"){o=!0;break}}a++,await new Promise(b=>setTimeout(b,A)),A=Math.min(A*1.5,5e3);}catch(f){if(f instanceof Error&&f.message.includes("Transaction failed"))throw f;a++,await new Promise(b=>setTimeout(b,A*2));}if(!o)throw new Error(`Transaction timeout after ${c} attempts. Signature: ${s}`);return s}async simulateInstruction(n,r){let c=await this.rpcClient.getLatestBlockhash(),t={blockhash:c.blockhash,lastValidBlockHeight:c.lastValidBlockHeight},s=pipe(createTransactionMessage({version:0}),A=>setTransactionMessageFeePayerSigner(r[0],A),A=>setTransactionMessageLifetimeUsingBlockhash(t,A),A=>appendTransactionMessageInstructions([n],A)),o=await signTransactionMessageWithSigners(s),a=getBase64EncodedWireTransaction(o);return this.rpcClient.simulateTransaction(a,{commitment:this.config.commitment,replaceRecentBlockhash:true})}async simulateBatch(n,r){let c=await this.rpcClient.getLatestBlockhash(),t={blockhash:c.blockhash,lastValidBlockHeight:c.lastValidBlockHeight},s=pipe(createTransactionMessage({version:0}),A=>setTransactionMessageFeePayerSigner(r[0],A),A=>setTransactionMessageLifetimeUsingBlockhash(t,A),A=>appendTransactionMessageInstructions(n,A)),o=await signTransactionMessageWithSigners(s),a=getBase64EncodedWireTransaction(o);return this.rpcClient.simulateTransaction(a,{commitment:this.config.commitment,replaceRecentBlockhash:true})}estimateTransactionSize(n){let r=64;for(let c of n)r+=32,r+=(c.accounts?.length??0)*32,r+=c.data.length;return r}extractRawData(n){if(Buffer.isBuffer(n)||n instanceof Uint8Array)return new Uint8Array(n);if(typeof n=="object"&&n!==null&&"data"in n)return Buffer.from(n.data,"base64");if(typeof n=="string")return Buffer.from(n,"base64");throw new Error("Invalid account data format")}};var ue=class{builder;config;_debugMode=false;constructor(n){this.config=n,this.builder=new MA(n);}debug(){return this._debugMode=true,this.builder.enableDebug(),this}async execute(n,r,c){return this.builder.execute(n,r,c)}async executeWithDetails(n,r,c){return this.builder.execute(n,r,c,{returnDetails:true})}async executeBatch(n,r,c){return this.builder.executeBatch(n,r.map(t=>()=>Promise.resolve(t())),c)}async simulate(n,r,c){return this.builder.execute(n,()=>Promise.resolve(r()),c,{simulate:true})}async simulateInstruction(n,r,c){return this.simulate(n,r,c)}async estimateCost(n){return this.builder.estimateCost(n)}async getCost(n,r){return this.builder.estimateCost([r])}async explain(n,r){return this.builder.explain(n,[r])}async analyze(n,r){return this.builder.debug(n,[r])}async getAccount(n,r){return this.builder.getAccount(n,r)}async getAccounts(n,r){return this.builder.getAccounts(n,r)}async getProgramAccounts(n,r){return this.builder.getProgramAccounts(n,r)}get programId(){return this.config.programId}getProgramId(){return this.config.programId}get commitment(){return this.config.commitment??"confirmed"}getCommitment(){return this.config.commitment??"confirmed"}};if(typeof globalThis.TextEncoder>"u"&&typeof process<"u"&&process?.versions?.node)try{let util=eval("require")("util");globalThis.TextEncoder=util.TextEncoder,globalThis.TextDecoder=util.TextDecoder;}catch{}var D5=new Map,kf=0,hA=class{constructor(n){this.config=n;console.log("\u{1F9EA} Initialized TestIPFSProvider for local testing (shared storage)");}storage=D5;uploadCount=0;async upload(n,r){kf++;let c=typeof n=="string"?n:new TextDecoder().decode(n),t=`Qm${this.generateHash(c)}_test_${kf}`;this.storage.set(t,{content:n,pinned:r?.pin!==false});let s=typeof n=="string"?new TextEncoder().encode(n).length:n.length;return console.log(`\u{1F4E6} Test IPFS upload: ${t} (${s} bytes)`),{hash:t,uri:`ipfs://${t}`,size:s,timestamp:Date.now(),pinned:r?.pin!==false,gateways:[`http://localhost:8080/ipfs/${t}`,`https://test.ipfs.io/ipfs/${t}`]}}async retrieve(n){let r=this.storage.get(n);if(!r)throw new Error(`Test IPFS: Content not found for hash ${n}`);return console.log(`\u{1F4E5} Test IPFS retrieve: ${n}`),await new Promise(c=>setTimeout(c,100)),r.content}async pin(n){let r=this.storage.get(n);return r?(r.pinned=true,console.log(`\u{1F4CC} Test IPFS pin: ${n}`),{hash:n,success:true,status:"pinned"}):{hash:n,success:false,status:"failed",error:`Content not found: ${n}`}}async unpin(n){let r=this.storage.get(n);return r?(r.pinned=false,console.log(`\u{1F4CC} Test IPFS unpin: ${n}`),{hash:n,success:true,status:"pinned"}):{hash:n,success:false,status:"failed",error:`Content not found: ${n}`}}generateHash(n){let r=0;for(let o=0;o<n.length;o++){let a=n.charCodeAt(o);r=(r<<5)-r+a,r=r&r;}let c="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",t="",s=Math.abs(r);for(;s>0&&t.length<40;)t=c[s%c.length]+t,s=Math.floor(s/c.length);for(;t.length<40;)t=c[Math.floor(Math.random()*c.length)]+t;return t}getStats(){let n=0,r=0;for(let c of this.storage.values()){let t=typeof c.content=="string"?new TextEncoder().encode(c.content).length:c.content.length;n+=t,c.pinned&&r++;}return {count:this.storage.size,totalSize:n,pinned:r}}clear(){this.storage.clear(),kf=0,console.log("\u{1F9F9} Test IPFS storage cleared");}static getSharedStorage(){return D5}};var Of=class{constructor(n){this.config=n;}async upload(n,r){let c=this.config.endpoint??"https://api.pinata.cloud",t=new FormData,s=new Blob([n],{type:r?.contentType??"application/octet-stream"});t.append("file",s,r?.filename??"content"),r?.metadata&&t.append("pinataMetadata",JSON.stringify({name:r.filename??"ghostspeak-content",keyvalues:r.metadata}));let o=await fetch(`${c}/pinning/pinFileToIPFS`,{method:"POST",headers:{Authorization:`Bearer ${this.config.jwt??this.config.apiKey}`,...this.config.headers},body:t});if(!o.ok){let f=await o.text();throw new Error(`Pinata upload failed: ${o.status} ${f}`)}let a=await o.json(),A=typeof n=="string"?new TextEncoder().encode(n).length:n.length;if(!C5(a))throw new Error("Invalid IPFS upload response format");return {hash:a.IpfsHash,uri:`ipfs://${a.IpfsHash}`,size:A,timestamp:Date.now(),pinned:true,gateways:[`https://gateway.pinata.cloud/ipfs/${a.IpfsHash}`,`https://ipfs.io/ipfs/${a.IpfsHash}`]}}async retrieve(n,r){let t=`${r?.gateway??"https://gateway.pinata.cloud"}/ipfs/${n}`,s=await fetch(t,{signal:r?.timeout?AbortSignal.timeout(r.timeout):void 0});if(!s.ok)throw new Error(`Failed to retrieve from IPFS: ${s.status} ${s.statusText}`);let o=s.headers.get("content-type");return o?.startsWith("text/")||o?.includes("json")?s.text():new Uint8Array(await s.arrayBuffer())}async pin(n){let r=this.config.endpoint??"https://api.pinata.cloud",c=await fetch(`${r}/pinning/pinByHash`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.config.jwt??this.config.apiKey}`,...this.config.headers},body:JSON.stringify({hashToPin:n})}),t=c.ok;return {hash:n,success:t,status:t?"pinned":"failed",error:t?void 0:`Pin failed: ${c.status}`}}async unpin(n){let r=this.config.endpoint??"https://api.pinata.cloud",c=await fetch(`${r}/pinning/unpin/${n}`,{method:"DELETE",headers:{Authorization:`Bearer ${this.config.jwt??this.config.apiKey}`,...this.config.headers}}),t=c.ok;return {hash:n,success:t,status:t?"pinned":"failed",error:t?void 0:`Unpin failed: ${c.status}`}}},Uf=class{constructor(n){this.config=n;}async upload(n,r){let c=this.config.endpoint??"http://localhost:5001",t=new FormData,s=new Blob([n],{type:r?.contentType??"application/octet-stream"});t.append("file",s,r?.filename??"content");let o=await fetch(`${c}/api/v0/add`,{method:"POST",body:t});if(!o.ok)throw new Error(`IPFS HTTP upload failed: ${o.status}`);let a=await o.json(),A=typeof n=="string"?new TextEncoder().encode(n).length:n.length;if(typeof a!="object"||a===null)throw new Error("Invalid IPFS HTTP API response");let f=a;if(typeof f.Hash!="string")throw new Error("IPFS HTTP API response missing Hash field");let b=f.Hash;return {hash:b,uri:`ipfs://${b}`,size:A,timestamp:Date.now(),pinned:r?.pin!==false,gateways:[`${c}/ipfs/${b}`,`https://ipfs.io/ipfs/${b}`]}}async retrieve(n,r){let t=`${r?.gateway??this.config.endpoint?.replace("/api/v0","")??"https://ipfs.io"}/ipfs/${n}`,s=await fetch(t,{signal:r?.timeout?AbortSignal.timeout(r.timeout):void 0});if(!s.ok)throw new Error(`Failed to retrieve from IPFS: ${s.status}`);let o=s.headers.get("content-type");return o?.startsWith("text/")||o?.includes("json")?s.text():new Uint8Array(await s.arrayBuffer())}async pin(n){let r=this.config.endpoint??"http://localhost:5001",c=await fetch(`${r}/api/v0/pin/add?arg=${n}`,{method:"POST"}),t=c.ok;return {hash:n,success:t,status:t?"pinned":"failed",error:t?void 0:`Pin failed: ${c.status}`}}async unpin(n){let r=this.config.endpoint??"http://localhost:5001",c=await fetch(`${r}/api/v0/pin/rm?arg=${n}`,{method:"POST"}),t=c.ok;return {hash:n,success:t,status:t?"pinned":"failed",error:t?void 0:`Unpin failed: ${c.status}`}}},vA=class{constructor(n){this.config=n;this.initializeProviders();}providers=[];cache=new Map;initializeProviders(){if(this.providers.push(this.createProvider(this.config.provider)),this.config.fallbackProviders)for(let n of this.config.fallbackProviders)this.providers.push(this.createProvider(n));}createProvider(n){switch(n.name){case "pinata":return new Of(n);case "ipfs-http-client":case "custom":return new Uf(n);case "test":return new hA(n);default:throw new Error(`Unsupported IPFS provider: ${n.name}`)}}async upload(n,r){let c=Date.now(),t;for(let s=0;s<this.providers.length;s++){let o=this.providers[s];try{console.log(`\u{1F4E4} Attempting IPFS upload with provider ${s+1}/${this.providers.length}`);let a=await this.withRetry(()=>o.upload(n,r),this.config.maxRetries??3,this.config.retryDelay??1e3);return console.log(`\u2705 IPFS upload successful: ${a.hash}`),{success:!0,data:a,duration:Date.now()-c,provider:this.config.provider.name}}catch(a){console.warn(`\u274C Provider ${s+1} upload failed:`,a instanceof Error?a.message:String(a)),t=a instanceof Error?a:new Error(String(a));}}return {success:false,error:"UPLOAD_FAILED",message:`All providers failed. Last error: ${t?.message}`,duration:Date.now()-c}}async retrieve(n,r){let c=Date.now();if(this.config.enableCache&&r?.cache!==false){let o=this.cache.get(n);if(o&&Date.now()-o.timestamp<(this.config.cacheTTL??3e5))return {success:true,data:{content:o.content,size:(typeof o.content=="string",o.content.length),hash:n,gateway:"cache",fromCache:true},duration:Date.now()-c}}let t,s=r?.gateway?[r.gateway]:this.config.gateways??["https://ipfs.io"];for(let o of s)for(let a of this.providers)try{let A=await this.withRetry(()=>a.retrieve(n,{...r,gateway:o}),this.config.maxRetries??3,this.config.retryDelay??1e3);return this.config.enableCache&&this.cache.set(n,{content:A,timestamp:Date.now()}),{success:!0,data:{content:A,size:A.length,hash:n,gateway:o,fromCache:!1},duration:Date.now()-c}}catch(A){t=A instanceof Error?A:new Error(String(A));}return {success:false,error:"RETRIEVAL_FAILED",message:`Failed to retrieve from all gateways. Last error: ${t?.message}`,duration:Date.now()-c}}async pin(n){let r=Date.now();for(let c of this.providers)try{let t=await c.pin(n);return {success:t.success,data:t,duration:Date.now()-r}}catch(t){console.warn("Pin attempt failed:",t);}return {success:false,error:"PIN_FAILED",message:"All pin attempts failed",duration:Date.now()-r}}async storeContent(n,r,c){let t=new TextEncoder().encode(n).length,s=this.config.sizeThreshold??800;if(!(c?.forceIpfs??t>s))return {uri:`data:application/json;base64,${btoa(n)}`,useIpfs:false,size:t};let a=await this.upload(n,c);if(!a.success||!a.data)throw new Error(`IPFS upload failed: ${a.message}`);let A={type:r,originalSize:t,ipfsHash:a.data.hash,encoding:"utf8",compression:"none",mimeType:"application/json",uploadedAt:a.data.timestamp,pinned:a.data.pinned,checksum:await this.calculateChecksum(n)};return {uri:a.data.uri,useIpfs:true,ipfsMetadata:A,size:t}}async retrieveContent(n){if(n.startsWith("data:")){let r=n.split(",")[1];if(!r)throw new Error("Invalid data URI format");return atob(r)}if(n.startsWith("ipfs://")){let r=n.replace("ipfs://",""),c=await this.retrieve(r);if(!c.success||!c.data)throw new Error(`Failed to retrieve IPFS content: ${c.message}`);return typeof c.data.content=="string"?c.data.content:new TextDecoder().decode(c.data.content)}throw new Error(`Unsupported URI format: ${n}`)}async withRetry(n,r,c){let t;for(let s=0;s<=r;s++)try{return await n()}catch(o){t=o instanceof Error?o:new Error(String(o)),s<r&&(console.log(`\u23F3 Retrying in ${c}ms... (attempt ${s+1}/${r})`),await new Promise(a=>setTimeout(a,c)));}throw t}async calculateChecksum(n){let c=new TextEncoder().encode(n),t=await crypto.subtle.digest("SHA-256",c);return Array.from(new Uint8Array(t)).map(o=>o.toString(16).padStart(2,"0")).join("")}clearCache(){this.cache.clear();}getCacheStats(){return {size:this.cache.size,keys:Array.from(this.cache.keys())}}};var Nr={provider:{name:"pinata",endpoint:"https://api.pinata.cloud"},gateways:["https://gateway.pinata.cloud","https://ipfs.io","https://cloudflare-ipfs.com","https://gateway.ipfs.io"],autoPinning:true,sizeThreshold:800,maxRetries:3,retryDelay:1e3,enableCache:true,cacheTTL:3e5},wf=class{client;constructor(n){this.client=new vA(n);}async storeAgentMetadata(n,r){let c=JSON.stringify({...n,createdAt:new Date().toISOString(),version:"1.0.0"});return this.client.storeContent(c,"agent-metadata",{filename:`agent-${n.agentId??"metadata"}.json`,metadata:{type:"agent-metadata",agentId:n.agentId,name:n.name},contentType:"application/json",...r})}async storeChannelMessage(n,r){let c=JSON.stringify({...n,timestamp:new Date().toISOString(),version:"1.0.0"});return this.client.storeContent(c,"channel-message",{filename:`message-${Date.now()}.json`,metadata:{type:"channel-message",channelId:n.channelId,messageType:n.messageType??0},contentType:"application/json",...r})}async storeFileAttachment(n,r,c,t){let s=typeof n=="string"?n:new TextDecoder().decode(n);return this.client.storeContent(s,"file-attachment",{filename:r,contentType:c,metadata:{type:"file-attachment",originalFilename:r,mimeType:c},...t})}async retrieveAgentMetadata(n){let r=await this.client.retrieveContent(n),c=JSON.parse(r);if(typeof c!="object"||c===null)throw new Error("Retrieved agent metadata is not a valid object");return c}async retrieveChannelMessage(n){let r=await this.client.retrieveContent(n),c=JSON.parse(r);if(typeof c!="object"||c===null)throw new Error("Retrieved channel message is not a valid object");return c}async batchUpload(n){return (await Promise.allSettled(n.map(c=>this.client.storeContent(c.content,c.type,{filename:c.filename,...c.options})))).map(c=>c.status==="fulfilled"?{success:true,data:c.value}:{success:false,error:"UPLOAD_FAILED",message:c.reason instanceof Error?c.reason.message:String(c.reason)})}async pinContent(n){let r=await this.client.pin(n);return {...r,data:r.success}}isIPFSUri(n){return n.startsWith("ipfs://")}extractIPFSHash(n){return this.isIPFSUri(n)?n.replace("ipfs://",""):null}getGatewayUrls(n,r){return (r??Nr.gateways??[]).map(t=>`${t}/ipfs/${n}`)}isValidIPFSHash(n){return n.length<44?false:n.startsWith("Qm")&&n.length===46?/^Qm[A-Za-z0-9]{44}$/.test(n):n.length>46?/^[A-Za-z0-9]+$/.test(n):false}shouldUseIPFS(n,r){let c=new TextEncoder().encode(n).length,t=r??Nr.sizeThreshold??800;return c>t}async compressContent(n){try{if(typeof CompressionStream<"u"){let r=new CompressionStream("gzip"),c=r.writable.getWriter(),t=r.readable.getReader(),o=new TextEncoder().encode(n),a=c.write(o).then(()=>c.close()),A=[],f=async()=>{let D=await t.read(),{done:v,value:w}=D;!v&&w&&(A.push(w),await f());};await Promise.all([a,f()]);let b=A.reduce((D,v)=>D+v.length,0),h=new Uint8Array(b),P=0;for(let D of A)h.set(D,P),P+=D.length;return {compressed:Buffer.from(h).toString("base64"),algorithm:"gzip"}}else return console.warn("Compression not available in this environment, storing uncompressed"),{compressed:n,algorithm:"none"}}catch(r){return console.warn("Compression failed, falling back to uncompressed:",r),{compressed:n,algorithm:"none"}}}async decompressContent(n,r){if(r==="none")return n;try{if(r==="gzip")if(typeof DecompressionStream<"u"){let c=new DecompressionStream("gzip"),t=c.writable.getWriter(),s=c.readable.getReader(),o=Buffer.from(n,"base64"),a=t.write(o).then(()=>t.close()),A=[],f=async()=>{let D=await s.read(),{done:v,value:w}=D;!v&&w&&(A.push(w),await f());};await Promise.all([a,f()]);let b=A.reduce((D,v)=>D+v.length,0),h=new Uint8Array(b),P=0;for(let D of A)h.set(D,P),P+=D.length;return new TextDecoder().decode(h)}else return console.warn("Decompression not available in this environment, returning compressed data"),n;else return console.warn(`Unknown compression algorithm: ${r}`),n}catch(c){return console.error("Decompression failed, returning compressed data:",c),n}}getStats(){return {cacheStats:this.client.getCacheStats(),config:Nr}}clearCache(){this.client.clearCache();}};function I5(e){let n={...Nr,...e,provider:{...Nr.provider,...e?.provider}};return new wf(n)}de();var _A=class extends ue{ipfsUtils=null;constructor(n){super(n),n.ipfsConfig&&(this.ipfsUtils=I5(n.ipfsConfig));}async register(n,r){let c=()=>jP({agentAccount:this.deriveAgentPda(r.agentId),signer:n,systemProgram:this.systemProgramId,agentType:r.agentType,metadataUri:r.metadataUri,agentId:r.agentId});return this.execute("registerAgent",c,[n])}async registerCompressed(n,r){let c=()=>YP({merkleTree:r.merkleTree,signer:n,systemProgram:this.systemProgramId,compressionProgram:this.compressionProgramId,agentType:r.agentType,metadataUri:r.metadataUri,agentId:r.agentId});return this.execute("registerAgentCompressed",c,[n])}async update(n,r){let c=()=>HR({agentAccount:r.agentAddress,signer:n,metadataUri:r.metadataUri,agentType:r.agentType,agentId:r.agentId});return this.execute("updateAgent",c,[n])}async verify(n,r){let c=()=>If({agent:r.agentAddress,verifier:n,agentPubkey:r.agentPubkey,serviceEndpoint:r.serviceEndpoint,supportedCapabilities:r.supportedCapabilities,verifiedAt:r.verifiedAt});return this.execute("verifyAgent",c,[n])}async deactivate(n,r){let c=()=>MS({agentAccount:r.agentAddress,signer:n,agentId:r.agentId});return this.execute("deactivateAgent",c,[n])}async activate(n,r){let c=()=>wT({agentAccount:r.agentAddress,signer:n,agentId:r.agentId});return this.execute("activateAgent",c,[n])}async getAgentAccount(n){return super.getAccount(n,"getAgentDecoder")}async getAllAgents(){return this.getProgramAccounts("getAgentDecoder")}async getAgentsByType(n){let r=Buffer.alloc(1);r.writeUInt8(n,0);let c=[{memcmp:{offset:8n,bytes:r.toString("base64"),encoding:"base64"}}];return this.getProgramAccounts("getAgentDecoder",c)}async getUserAgents(n){let r=[{memcmp:{offset:9n,bytes:n,encoding:"base58"}}];return this.getProgramAccounts("getAgentDecoder",r)}deriveAgentPda(n){return "agent_pda_address"}get systemProgramId(){return "11111111111111111111111111111111"}get compressionProgramId(){return "cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK"}};de();var kA=class extends ue{async create(n){let r=this.deriveEscrowPda(n.buyer,n.seller,Date.now());return this.execute("createEscrow",()=>UE({escrow:r,reentrancyGuard:this.systemProgramId,client:n.signer,agent:n.seller,paymentToken:this.nativeMint,clientTokenAccount:this.deriveTokenAccount(n.buyer),escrowTokenAccount:this.deriveTokenAccount(r),tokenProgram:this.tokenProgramId,associatedTokenProgram:this.associatedTokenProgramId,systemProgram:this.systemProgramId,taskId:n.description,amount:n.amount,expiresAt:Date.now()+720*60*60*1e3,transferHook:null,isConfidential:false}),[n.signer])}async complete(n,r){return this.execute("completeEscrow",()=>pE({escrow:r,reentrancyGuard:this.systemProgramId,agent:n.address,escrowTokenAccount:this.deriveTokenAccount(r),agentTokenAccount:this.deriveTokenAccount(n.address),authority:n,tokenProgram:this.tokenProgramId,resolutionNotes:"Work completed successfully"}),[n])}async cancel(n,r,c){return this.execute("cancelEscrow",()=>sE({escrow:r,reentrancyGuard:this.systemProgramId,authority:n,clientRefundAccount:this.deriveTokenAccount(c.buyer),paymentToken:this.nativeMint,cancellationReason:"User cancelled",escrowTokenAccount:this.deriveTokenAccount(r),tokenProgram:this.tokenProgramId}),[n])}async dispute(n,r,c){return this.execute("disputeEscrow",()=>wS({escrow:r,reentrancyGuard:this.systemProgramId,authority:n,disputeReason:c}),[n])}async processPartialRefund(n,r,c,t){return this.execute("processPartialRefund",()=>kP({escrow:r,reentrancyGuard:this.systemProgramId,escrowTokenAccount:this.deriveTokenAccount(r),clientRefundAccount:this.deriveTokenAccount(r),agentPaymentAccount:this.deriveTokenAccount(n.address),paymentToken:this.nativeMint,authority:n,tokenProgram:this.tokenProgramId,clientRefundPercentage:Math.min(100,Math.max(0,Number((c*100n/t).toString())))}),[n])}async getEscrowAccount(n){return super.getAccount(n,"getEscrowDecoder")}async getAllEscrows(){return this.getProgramAccounts("getEscrowDecoder")}async getEscrowsByBuyer(n){let r=[{memcmp:{offset:8n,bytes:n,encoding:"base58"}}];return this.getProgramAccounts("getEscrowDecoder",r)}async getEscrowsBySeller(n){let r=[{memcmp:{offset:40n,bytes:n,encoding:"base58"}}];return this.getProgramAccounts("getEscrowDecoder",r)}async getEscrowsByStatus(n){return (await this.getAllEscrows()).filter(({data:c})=>c.status===n)}deriveEscrowPda(n,r,c){return `escrow_${n}_${r}_${c}`}deriveTokenAccount(n){return `token_${n}`}get nativeMint(){return "So11111111111111111111111111111111111111112"}get tokenProgramId(){return "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"}get associatedTokenProgramId(){return "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"}get systemProgramId(){return "11111111111111111111111111111111"}};de();var OA=class extends ue{async create(n){let r=this.deriveChannelPda(n.name);return this.execute("createEnhancedChannel",()=>_E({channel:r,reentrancyGuard:this.systemProgramId,creator:n.signer,creatorAgent:n.signer.address,systemProgram:this.systemProgramId,channelId:n.name,participants:[n.signer.address],channelType:n.channelType,metadata:{name:n.name,description:n.description,avatarUrl:null,tags:[],settings:{allowFileSharing:true,allowExternalInvites:!n.isPrivate,messageRetentionDays:30,maxMessageSize:4096,requireEncryption:n.isPrivate??false,autoArchiveAfterDays:365}}}),[n.signer])}async sendMessage(n){let r=this.deriveMessagePda(n.channelAddress,Date.now());return this.execute("sendEnhancedMessage",()=>SR({channel:n.channelAddress,message:r,reentrancyGuard:this.systemProgramId,sender:n.signer,systemProgram:this.systemProgramId,messageId:`msg_${Date.now()}`,content:n.content,messageType:n.messageType??0,metadata:{replyTo:n.replyTo??null,threadId:null,attachments:n.attachmentUri?[{fileType:"application/octet-stream",fileSize:0,fileHash:"",storageUrl:n.attachmentUri}]:[],mentions:[],reactions:[]},isEncrypted:false}),[n.signer])}async join(n,r){return this.execute("joinChannel",()=>iP({channel:r,reentrancyGuard:this.systemProgramId,user:n,userAgent:n.address}),[n])}async leave(n,r){return this.execute("leaveChannel",()=>AP({channel:r,reentrancyGuard:this.systemProgramId,user:n}),[n])}async updateSettings(n,r,c){return this.execute("updateChannelSettings",()=>pf({channel:r,reentrancyGuard:this.systemProgramId,authority:n,newMetadata:{name:c.name??null,description:c.description??null,avatarUrl:null,tags:[],settings:{allowFileSharing:true,allowExternalInvites:!c.isPrivate,messageRetentionDays:30,maxMessageSize:c.maxMembers?Number(c.maxMembers):4096,requireEncryption:c.isPrivate??false,autoArchiveAfterDays:365}}}),[n])}async addReaction(n,r,c){return this.execute("addMessageReaction",()=>zT({channel:this.deriveChannelFromMessage(r),message:r,reentrancyGuard:this.systemProgramId,user:n,reaction:c}),[n])}async getChannelAccount(n){return super.getAccount(n,"getChannelDecoder")}async getMessageAccount(n){return super.getAccount(n,"getMessageDecoder")}async getAllChannels(){return this.getProgramAccounts("getChannelDecoder")}async getPublicChannels(){return (await this.getAllChannels()).filter(({data:r})=>!r.isPrivate)}async getChannelsByCreator(n){let r=[{memcmp:{offset:8n,bytes:n,encoding:"base58"}}];return this.getProgramAccounts("getChannelDecoder",r)}async getChannelMessages(n){let r=[{memcmp:{offset:8n,bytes:n,encoding:"base58"}}];return this.getProgramAccounts("getMessageDecoder",r)}deriveChannelPda(n){return `channel_${n}`}deriveMessagePda(n,r){return `message_${n}_${r}`}deriveChannelFromMessage(n){return `channel_from_${n}`}get systemProgramId(){return "11111111111111111111111111111111"}};_g();var Ff=class{config;constructor(n){this.config={programId:d,commitment:"confirmed",cluster:"devnet",rpcEndpoint:n?.rpcEndpoint??this.getDefaultRpcEndpoint(n?.cluster??"devnet"),...n,rpc:n?.rpc??{}};}agent(){return new Nf(this.config)}escrow(){return new Gf(this.config)}channel(){return new zf(this.config)}marketplace(){return new Lf(this.config)}governance(){return new Wf(this.config)}token2022(){return new Kf(this.config)}enableDevMode(){return console.log("\u{1F6E0}\uFE0F Development mode enabled"),console.log(" - Transaction simulation before sending"),console.log(" - Cost estimates for all operations"),console.log(" - Enhanced error messages"),this.config={...this.config},this}useNetwork(n){return this.config.cluster=n,this.config.rpcEndpoint=this.getDefaultRpcEndpoint(n),this}useRpc(n,r){return this.config.rpcEndpoint=n,this.config.wsEndpoint=r,this}getDefaultRpcEndpoint(n){switch(n){case "mainnet-beta":return "https://api.mainnet-beta.solana.com";case "devnet":return "https://api.devnet.solana.com";case "testnet":return "https://api.testnet.solana.com";case "localnet":return "http://localhost:8899";default:return "https://api.devnet.solana.com"}}},Nf=class{module;params={};constructor(n){this.module=new _A(n);}create(n){return this.params={...this.params,agentType:0,metadataUri:JSON.stringify(n),agentId:n.name.toLowerCase().replace(/\s+/g,"-")},this}withType(n){return this.params.agentType=n,this}withIPFS(){return this.params.forceIPFS=true,this}compressed(){return this.params.compressed=true,this}debug(){return this.module.debug(),this}validateParams(){if(!this.params.signer)throw new Error("Agent builder requires a signer. Call with signer first.");if(!this.params.metadataUri)throw new Error("Agent builder requires metadata. Call create() first.");if(!this.params.agentId)throw new Error("Agent builder requires agent ID. Call create() first.");this.params.agentType??=0;}async getCost(){return this.validateParams(),this.module.getCost("registerAgent",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async simulate(){let n=()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array});return this.validateParams(),this.module.simulateInstruction("registerAgent",n,[this.params.signer])}async explain(){return this.validateParams(),this.module.explain("registerAgent",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async execute(){this.validateParams(),this.params.compressed&&console.log("Creating compressed agent (5000x cheaper)...");let n=await this.module.register(this.params.signer,{agentType:this.params.agentType,metadataUri:this.params.metadataUri,agentId:this.params.agentId});return {address:this.deriveAgentAddress(this.params.agentId),signature:n}}deriveAgentAddress(n){return `agent_${n}`}},Gf=class{module;params={};constructor(n){this.module=new kA(n);}between(n,r){return this.params.buyer=n,this.params.seller=r,this}amount(n){return this.params.amount=n,this}description(n){return this.params.description=n,this}withMilestones(n){return this.params.milestones=n,this}debug(){return this.module.debug(),this}validateParams(){if(!this.params.buyer)throw new Error("Escrow builder requires buyer address. Call between() first.");if(!this.params.seller)throw new Error("Escrow builder requires seller address. Call between() first.");if(!this.params.amount)throw new Error("Escrow builder requires amount. Call amount() first.");if(!this.params.signer)throw new Error("Escrow builder requires signer.")}async getCost(){return this.module.getCost("createEscrow",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async explain(){return this.module.explain("createEscrow",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async execute(){this.validateParams();let n=await this.module.create({signer:this.params.signer,amount:this.params.amount,buyer:this.params.buyer,seller:this.params.seller,description:this.params.description??"",milestones:this.params.milestones});return {address:this.deriveEscrowAddress(),signature:n}}deriveEscrowAddress(){return `escrow_${this.params.buyer}_${this.params.seller}`}},zf=class{module;params={};constructor(n){this.module=new OA(n);}create(n){return this.params.name=n,this.params.channelType=2,this}description(n){return this.params.description=n,this}private(){return this.params.isPrivate=true,this.params.channelType=3,this}maxMembers(n){return this.params.maxMembers=n,this}debug(){return this.module.debug(),this}validateParams(){if(!this.params.name)throw new Error("Channel builder requires name. Call create() first.");if(!this.params.signer)throw new Error("Channel builder requires signer.")}async getCost(){return this.module.getCost("createChannel",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async explain(){return this.module.explain("createChannel",()=>({programAddress:this.module.getProgramId(),accounts:[],data:new Uint8Array}))}async execute(){this.validateParams();let n=await this.module.create({signer:this.params.signer,name:this.params.name,description:this.params.description??"",channelType:this.params.channelType??2,isPrivate:this.params.isPrivate,maxMembers:this.params.maxMembers});return {address:this.deriveChannelAddress(),signature:n}}deriveChannelAddress(){return `channel_${this.params.name}`}},Lf=class{constructor(n){this.config=n;}},Wf=class{constructor(n){this.config=n;}},Kf=class{constructor(n){this.config=n;}};function cet(e){return BigInt(Math.round(e*1e9))}var Xt=class extends Error{code;context;solution;instruction;constructor(n,r,c={},t,s){super(r),this.name="GhostSpeakError",this.code=n,this.context=c,this.solution=t,this.instruction=s;}toString(){let n=`${this.name} [${this.code}]: ${this.message}`;return Object.keys(this.context).length>0&&(n+=`
5
- Context: ${JSON.stringify(this.context,null,2)}`),this.solution&&(n+=`
6
-
7
- \u{1F4A1} Solution: ${this.solution}`),this.instruction&&(n+=`
8
-
9
- \u{1F4D6} Learn more: ${this.instruction}`),n}toSDKError(){return {code:this.code,message:this.message,context:this.context,solution:this.solution,instruction:this.instruction}}},Bf=class extends Xt{constructor(n,r){super("NETWORK_ERROR",`Failed to connect to RPC endpoint: ${n}`,{endpoint:n,originalError:r?.message},"Check your internet connection and verify the RPC endpoint is correct. Try using a different RPC provider.");}},Hf=class extends Xt{constructor(n,r,c){let t=Number(n)/1e9,s=Number(r)/1e9,o=t-s;super("INSUFFICIENT_BALANCE",`Insufficient balance: need ${t} SOL but only have ${s} SOL`,{required:n.toString(),available:r.toString(),address:c,requiredSOL:t,availableSOL:s,neededSOL:o},`You need ${o.toFixed(4)} more SOL. Try:
10
- 1. Request devnet SOL: solana airdrop ${Math.ceil(o)} ${c}
11
- 2. Or use: await ghostspeak.fund("${c}", ${Math.ceil(o)})`);}};var Vf=class extends Xt{constructor(n,r={}){super("INVALID_INPUT",n,r,"Check input parameters and ensure they meet the required format and constraints"),this.name="ValidationError";}};export{Xt as GhostSpeakError,Hf as InsufficientBalanceError,Bf as NetworkError,Vf as ValidationError,Ff as default,cet as sol};//# sourceMappingURL=core-minimal.js.map
12
- //# sourceMappingURL=core-minimal.js.map