-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path405.browser.js
More file actions
1 lines (1 loc) · 134 KB
/
Copy path405.browser.js
File metadata and controls
1 lines (1 loc) · 134 KB
1
(this.webpackChunkweb3_cardano_token=this.webpackChunkweb3_cardano_token||[]).push([[405],{405:(t,r,_)=>{let e,a={};a.__wbindgen_placeholder__=t.exports;const{TextDecoder:n,TextEncoder:s}=_(264)(String.raw`util`),i=new Array(32).fill(void 0);function o(t){return i[t]}i.push(void 0,null,!0,!1);let p=i.length;function c(t){const r=o(t);return function(t){t<36||(i[t]=p,p=t)}(t),r}let d=new n("utf-8",{ignoreBOM:!0,fatal:!0});d.decode();let w=null;function l(){return null!==w&&w.buffer===e.memory.buffer||(w=new Uint8Array(e.memory.buffer)),w}function b(t,r){return d.decode(l().subarray(t,t+r))}function u(t){p===i.length&&i.push(i.length+1);const r=p;return p=i[r],i[r]=t,r}let y=0,h=new s("utf-8");const g="function"==typeof h.encodeInto?function(t,r){return h.encodeInto(t,r)}:function(t,r){const _=h.encode(t);return r.set(_),{read:t.length,written:_.length}};function v(t,r,_){if(void 0===_){const _=h.encode(t),e=r(_.length);return l().subarray(e,e+_.length).set(_),y=_.length,e}let e=t.length,a=r(e);const n=l();let s=0;for(;s<e;s++){const r=t.charCodeAt(s);if(r>127)break;n[a+s]=r}if(s!==e){0!==s&&(t=t.slice(s)),a=_(a,e,e=s+3*t.length);const r=l().subarray(a+s,a+e);s+=g(t,r).written}return y=s,a}function f(t){return null==t}let m=null;function k(){return null!==m&&m.buffer===e.memory.buffer||(m=new Int32Array(e.memory.buffer)),m}function x(t){const r=typeof t;if("number"==r||"boolean"==r||null==t)return`${t}`;if("string"==r)return`"${t}"`;if("symbol"==r){const r=t.description;return null==r?"Symbol":`Symbol(${r})`}if("function"==r){const r=t.name;return"string"==typeof r&&r.length>0?`Function(${r})`:"Function"}if(Array.isArray(t)){const r=t.length;let _="[";r>0&&(_+=x(t[0]));for(let e=1;e<r;e++)_+=", "+x(t[e]);return _+="]",_}const _=/\[object ([^\]]+)\]/.exec(toString.call(t));let e;if(!(_.length>1))return toString.call(t);if(e=_[1],"Object"==e)try{return"Object("+JSON.stringify(t)+")"}catch(t){return"Object"}return t instanceof Error?`${t.name}: ${t.message}\n${t.stack}`:e}function O(t,r){return l().subarray(t/1,t/1+r)}function j(t,r){const _=r(1*t.length);return l().set(t,_/1),y=t.length,_}function S(t,r){if(!(t instanceof r))throw new Error(`expected instance of ${r.name}`);return t.ptr}let P=null;function R(){return null!==P&&P.buffer===e.memory.buffer||(P=new Uint32Array(e.memory.buffer)),P}function z(t,r){return R().subarray(t/4,t/4+r)}t.exports.encode_arbitrary_bytes_as_metadatum=function(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.encode_arbitrary_bytes_as_metadatum(r,_);return Cr.__wrap(a)},t.exports.decode_arbitrary_bytes_from_metadatum=function(t){try{const n=e.__wbindgen_add_to_stack_pointer(-16);S(t,Cr),e.decode_arbitrary_bytes_from_metadatum(n,t.ptr);var r=k()[n/4+0],_=k()[n/4+1],a=O(r,_).slice();return e.__wbindgen_free(r,1*_),a}finally{e.__wbindgen_add_to_stack_pointer(16)}},t.exports.encode_json_str_to_metadatum=function(t,r){var _=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),a=y,n=e.encode_json_str_to_metadatum(_,a,r);return Cr.__wrap(n)},t.exports.decode_metadatum_to_json_str=function(t,r){try{const n=e.__wbindgen_add_to_stack_pointer(-16);S(t,Cr),e.decode_metadatum_to_json_str(n,t.ptr,r);var _=k()[n/4+0],a=k()[n/4+1];return b(_,a)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(_,a)}},t.exports.encrypt_with_password=function(t,r,_,a){try{const h=e.__wbindgen_add_to_stack_pointer(-16);var n=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),s=y,i=v(r,e.__wbindgen_malloc,e.__wbindgen_realloc),o=y,p=v(_,e.__wbindgen_malloc,e.__wbindgen_realloc),c=y,d=v(a,e.__wbindgen_malloc,e.__wbindgen_realloc),w=y;e.encrypt_with_password(h,n,s,i,o,p,c,d,w);var l=k()[h/4+0],u=k()[h/4+1];return b(l,u)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(l,u)}},t.exports.decrypt_with_password=function(t,r){try{const p=e.__wbindgen_add_to_stack_pointer(-16);var _=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),a=y,n=v(r,e.__wbindgen_malloc,e.__wbindgen_realloc),s=y;e.decrypt_with_password(p,_,a,n,s);var i=k()[p/4+0],o=k()[p/4+1];return b(i,o)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(i,o)}},t.exports.min_fee=function(t,r){S(t,Pr),S(r,kt);var _=e.min_fee(t.ptr,r.ptr);return B.__wrap(_)},t.exports.make_daedalus_bootstrap_witness=function(t,r,_){S(t,Ar),S(r,$),S(_,mt);var a=e.make_daedalus_bootstrap_witness(t.ptr,r.ptr,_.ptr);return F.__wrap(a)},t.exports.make_icarus_bootstrap_witness=function(t,r,_){S(t,Ar),S(r,$),S(_,V);var a=e.make_icarus_bootstrap_witness(t.ptr,r.ptr,_.ptr);return F.__wrap(a)},t.exports.make_vkey_witness=function(t,r){S(t,Ar),S(r,Qt);var _=e.make_vkey_witness(t.ptr,r.ptr);return Qr.__wrap(_)},t.exports.hash_auxiliary_data=function(t){S(t,C);var r=e.hash_auxiliary_data(t.ptr);return N.__wrap(r)},t.exports.hash_transaction=function(t){S(t,zr);var r=e.hash_transaction(t.ptr);return Ar.__wrap(r)},t.exports.hash_plutus_data=function(t){S(t,It);var r=e.hash_plutus_data(t.ptr);return tt.__wrap(r)},t.exports.hash_script_data=function(t,r,_){S(t,nr),S(r,X);let a=0;f(_)||(S(_,Bt),a=_.ptr,_.ptr=0);var n=e.hash_script_data(t.ptr,r.ptr,a);return wr.__wrap(n)},t.exports.get_implicit_input=function(t,r,_){S(t,zr),S(r,B),S(_,B);var a=e.get_implicit_input(t.ptr,r.ptr,_.ptr);return Gr.__wrap(a)},t.exports.get_deposit=function(t,r,_){S(t,zr),S(r,B),S(_,B);var a=e.get_deposit(t.ptr,r.ptr,_.ptr);return B.__wrap(a)},t.exports.min_ada_required=function(t,r){S(t,Gr),S(r,B);var _=e.min_ada_required(t.ptr,r.ptr);return B.__wrap(_)},t.exports.CertificateKind=Object.freeze({StakeRegistration:0,0:"StakeRegistration",StakeDeregistration:1,1:"StakeDeregistration",StakeDelegation:2,2:"StakeDelegation",PoolRegistration:3,3:"PoolRegistration",PoolRetirement:4,4:"PoolRetirement",GenesisKeyDelegation:5,5:"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,6:"MoveInstantaneousRewardsCert"}),t.exports.MIRPot=Object.freeze({Reserves:0,0:"Reserves",Treasury:1,1:"Treasury"}),t.exports.MIRKind=Object.freeze({ToOtherPot:0,0:"ToOtherPot",ToStakeCredentials:1,1:"ToStakeCredentials"}),t.exports.RelayKind=Object.freeze({SingleHostAddr:0,0:"SingleHostAddr",SingleHostName:1,1:"SingleHostName",MultiHostName:2,2:"MultiHostName"}),t.exports.NativeScriptKind=Object.freeze({ScriptPubkey:0,0:"ScriptPubkey",ScriptAll:1,1:"ScriptAll",ScriptAny:2,2:"ScriptAny",ScriptNOfK:3,3:"ScriptNOfK",TimelockStart:4,4:"TimelockStart",TimelockExpiry:5,5:"TimelockExpiry"}),t.exports.ScriptHashNamespace=Object.freeze({NativeScript:0,0:"NativeScript"}),t.exports.NetworkIdKind=Object.freeze({Testnet:0,0:"Testnet",Mainnet:1,1:"Mainnet"}),t.exports.TransactionMetadatumKind=Object.freeze({MetadataMap:0,0:"MetadataMap",MetadataList:1,1:"MetadataList",Int:2,2:"Int",Bytes:3,3:"Bytes",Text:4,4:"Text"}),t.exports.MetadataJsonSchema=Object.freeze({NoConversions:0,0:"NoConversions",BasicConversions:1,1:"BasicConversions",DetailedSchema:2,2:"DetailedSchema"}),t.exports.LanguageKind=Object.freeze({PlutusV1:0,0:"PlutusV1"}),t.exports.PlutusDataKind=Object.freeze({ConstrPlutusData:0,0:"ConstrPlutusData",Map:1,1:"Map",List:2,2:"List",Integer:3,3:"Integer",Bytes:4,4:"Bytes"}),t.exports.RedeemerTagKind=Object.freeze({Spend:0,0:"Spend",Mint:1,1:"Mint",Cert:2,2:"Cert",Reward:3,3:"Reward"});class M{static __wrap(t){const r=Object.create(M.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_address_free(t)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.address_from_bytes(r,_);return M.__wrap(a)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.address_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=f(t)?0:v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.address_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.address_from_bech32(r,_);return M.__wrap(a)}network_id(){return e.address_network_id(this.ptr)}}t.exports.Address=M;class A{static __wrap(t){const r=Object.create(A.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_assetname_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.assetname_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.assetname_from_bytes(r,_);return A.__wrap(a)}static new(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.assetname_new(r,_);return A.__wrap(a)}name(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.assetname_name(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.AssetName=A;class T{static __wrap(t){const r=Object.create(T.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_assetnames_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.assetnames_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.assetnames_from_bytes(r,_);return T.__wrap(a)}static new(){var t=e.assetnames_new();return T.__wrap(t)}len(){return e.assetnames_len(this.ptr)>>>0}get(t){var r=e.assetnames_get(this.ptr,t);return A.__wrap(r)}add(t){S(t,A),e.assetnames_add(this.ptr,t.ptr)}}t.exports.AssetNames=T;class K{static __wrap(t){const r=Object.create(K.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_assets_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.assets_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.assets_from_bytes(r,_);return K.__wrap(a)}static new(){var t=e.assets_new();return K.__wrap(t)}len(){return e.assets_len(this.ptr)>>>0}insert(t,r){S(t,A),S(r,B);var _=e.assets_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:B.__wrap(_)}get(t){S(t,A);var r=e.assets_get(this.ptr,t.ptr);return 0===r?void 0:B.__wrap(r)}keys(){var t=e.assets_keys(this.ptr);return T.__wrap(t)}}t.exports.Assets=K;class C{static __wrap(t){const r=Object.create(C.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_auxiliarydata_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.auxiliarydata_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.auxiliarydata_from_bytes(r,_);return C.__wrap(a)}static new(){var t=e.auxiliarydata_new();return C.__wrap(t)}metadata(){var t=e.auxiliarydata_metadata(this.ptr);return 0===t?void 0:it.__wrap(t)}set_metadata(t){S(t,it),e.auxiliarydata_set_metadata(this.ptr,t.ptr)}native_scripts(){var t=e.auxiliarydata_native_scripts(this.ptr);return 0===t?void 0:Kt.__wrap(t)}set_native_scripts(t){S(t,Kt),e.auxiliarydata_set_native_scripts(this.ptr,t.ptr)}plutus_scripts(){var t=e.auxiliarydata_plutus_scripts(this.ptr);return 0===t?void 0:Lt.__wrap(t)}set_plutus_scripts(t){S(t,Lt),e.auxiliarydata_set_plutus_scripts(this.ptr,t.ptr)}}t.exports.AuxiliaryData=C;class N{static __wrap(t){const r=Object.create(N.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_auxiliarydatahash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.auxiliarydatahash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.auxiliarydatahash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.auxiliarydatahash_from_bech32(r,_);return N.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.auxiliarydatahash_from_bytes(r,_);return N.__wrap(a)}}t.exports.AuxiliaryDataHash=N;class D{static __wrap(t){const r=Object.create(D.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_auxiliarydataset_free(t)}static new(){var t=e.auxiliarydataset_new();return D.__wrap(t)}len(){return e.auxiliarydataset_len(this.ptr)>>>0}insert(t,r){S(r,C);var _=e.auxiliarydataset_insert(this.ptr,t,r.ptr);return 0===_?void 0:C.__wrap(_)}get(t){var r=e.auxiliarydataset_get(this.ptr,t);return 0===r?void 0:C.__wrap(r)}indices(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.auxiliarydataset_indices(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=z(t,r).slice();return e.__wbindgen_free(t,4*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.AuxiliaryDataSet=D;class H{static __wrap(t){const r=Object.create(H.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_baseaddress_free(t)}static new(t,r,_){S(r,vr),S(_,vr);var a=e.baseaddress_new(t,r.ptr,_.ptr);return H.__wrap(a)}payment_cred(){var t=e.baseaddress_payment_cred(this.ptr);return vr.__wrap(t)}stake_cred(){var t=e.baseaddress_stake_cred(this.ptr);return vr.__wrap(t)}to_address(){var t=e.baseaddress_to_address(this.ptr);return M.__wrap(t)}static from_address(t){S(t,M);var r=e.baseaddress_from_address(t.ptr);return 0===r?void 0:H.__wrap(r)}}t.exports.BaseAddress=H;class I{static __wrap(t){const r=Object.create(I.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bigint_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bigint_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.bigint_from_bytes(r,_);return I.__wrap(a)}as_u64(){var t=e.bigint_as_u64(this.ptr);return 0===t?void 0:B.__wrap(t)}static from_str(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.bigint_from_str(r,_);return I.__wrap(a)}to_str(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.bigint_to_str(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}}t.exports.BigInt=I;class B{static __wrap(t){const r=Object.create(B.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bignum_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bignum_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.bignum_from_bytes(r,_);return B.__wrap(a)}static from_str(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.bignum_from_str(r,_);return B.__wrap(a)}to_str(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.bignum_to_str(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}static zero(){var t=e.bignum_zero();return B.__wrap(t)}checked_mul(t){S(t,B);var r=e.bignum_checked_mul(this.ptr,t.ptr);return B.__wrap(r)}checked_add(t){S(t,B);var r=e.bignum_checked_add(this.ptr,t.ptr);return B.__wrap(r)}checked_sub(t){S(t,B);var r=e.bignum_checked_sub(this.ptr,t.ptr);return B.__wrap(r)}clamped_sub(t){S(t,B);var r=e.bignum_clamped_sub(this.ptr,t.ptr);return B.__wrap(r)}compare(t){return S(t,B),e.bignum_compare(this.ptr,t.ptr)}}t.exports.BigNum=B;class V{static __wrap(t){const r=Object.create(V.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bip32privatekey_free(t)}derive(t){var r=e.bip32privatekey_derive(this.ptr,t);return V.__wrap(r)}static from_128_xprv(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.bip32privatekey_from_128_xprv(r,_);return V.__wrap(a)}to_128_xprv(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bip32privatekey_to_128_xprv(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519_bip32(){var t=e.bip32privatekey_generate_ed25519_bip32();return V.__wrap(t)}to_raw_key(){var t=e.bip32privatekey_to_raw_key(this.ptr);return Qt.__wrap(t)}to_public(){var t=e.bip32privatekey_to_public(this.ptr);return E.__wrap(t)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.bip32privatekey_from_bytes(r,_);return V.__wrap(a)}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bip32privatekey_as_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.bip32privatekey_from_bech32(r,_);return V.__wrap(a)}to_bech32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.bip32privatekey_to_bech32(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}static from_bip39_entropy(t,r){var _=j(t,e.__wbindgen_malloc),a=y,n=j(r,e.__wbindgen_malloc),s=y,i=e.bip32privatekey_from_bip39_entropy(_,a,n,s);return V.__wrap(i)}chaincode(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bip32privatekey_chaincode(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.Bip32PrivateKey=V;class E{static __wrap(t){const r=Object.create(E.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bip32publickey_free(t)}derive(t){var r=e.bip32publickey_derive(this.ptr,t);return E.__wrap(r)}to_raw_key(){var t=e.bip32publickey_to_raw_key(this.ptr);return rr.__wrap(t)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.bip32publickey_from_bytes(r,_);return E.__wrap(a)}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bip32publickey_as_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.bip32publickey_from_bech32(r,_);return E.__wrap(a)}to_bech32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.bip32publickey_to_bech32(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}chaincode(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bip32publickey_chaincode(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.Bip32PublicKey=E;class L{static __wrap(t){const r=Object.create(L.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_block_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.block_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.block_from_bytes(r,_);return L.__wrap(a)}header(){var t=e.block_header(this.ptr);return wt.__wrap(t)}transaction_bodies(){var t=e.block_transaction_bodies(this.ptr);return Rr.__wrap(t)}transaction_witness_sets(){var t=e.block_transaction_witness_sets(this.ptr);return Vr.__wrap(t)}auxiliary_data_set(){var t=e.block_auxiliary_data_set(this.ptr);return D.__wrap(t)}invalid_transactions(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.block_invalid_transactions(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=z(t,r).slice();return e.__wbindgen_free(t,4*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static new(t,r,_,a,n){S(t,wt),S(r,Rr),S(_,Vr),S(a,D);var s=function(t,r){const _=r(4*t.length);return R().set(t,_/4),y=t.length,_}(n,e.__wbindgen_malloc),i=y,o=e.block_new(t.ptr,r.ptr,_.ptr,a.ptr,s,i);return L.__wrap(o)}}t.exports.Block=L;class q{static __wrap(t){const r=Object.create(q.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_blockhash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.blockhash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.blockhash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.blockhash_from_bech32(r,_);return q.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.blockhash_from_bytes(r,_);return q.__wrap(a)}}t.exports.BlockHash=q;class F{static __wrap(t){const r=Object.create(F.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bootstrapwitness_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bootstrapwitness_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.bootstrapwitness_from_bytes(r,_);return F.__wrap(a)}vkey(){var t=e.bootstrapwitness_vkey(this.ptr);return Wr.__wrap(t)}signature(){var t=e.bootstrapwitness_signature(this.ptr);return et.__wrap(t)}chain_code(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bootstrapwitness_chain_code(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}attributes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.bootstrapwitness_attributes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static new(t,r,_,a){S(t,Wr),S(r,et);var n=j(_,e.__wbindgen_malloc),s=y,i=j(a,e.__wbindgen_malloc),o=y,p=e.bootstrapwitness_new(t.ptr,r.ptr,n,s,i,o);return F.__wrap(p)}}t.exports.BootstrapWitness=F;class U{static __wrap(t){const r=Object.create(U.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_bootstrapwitnesses_free(t)}static new(){var t=e.bootstrapwitnesses_new();return U.__wrap(t)}len(){return e.bootstrapwitnesses_len(this.ptr)>>>0}get(t){var r=e.bootstrapwitnesses_get(this.ptr,t);return F.__wrap(r)}add(t){S(t,F),e.bootstrapwitnesses_add(this.ptr,t.ptr)}}t.exports.BootstrapWitnesses=U;class ${static __wrap(t){const r=Object.create($.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_byronaddress_free(t)}to_base58(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.byronaddress_to_base58(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.byronaddress_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.byronaddress_from_bytes(r,_);return $.__wrap(a)}byron_protocol_magic(){return e.byronaddress_byron_protocol_magic(this.ptr)>>>0}attributes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.byronaddress_attributes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}network_id(){return e.byronaddress_network_id(this.ptr)}static from_base58(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.byronaddress_from_base58(r,_);return $.__wrap(a)}static icarus_from_key(t,r){S(t,E);var _=e.byronaddress_icarus_from_key(t.ptr,r);return $.__wrap(_)}static is_valid(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;return 0!==e.byronaddress_is_valid(r,_)}to_address(){var t=e.byronaddress_to_address(this.ptr);return M.__wrap(t)}static from_address(t){S(t,M);var r=e.byronaddress_from_address(t.ptr);return 0===r?void 0:$.__wrap(r)}}t.exports.ByronAddress=$;class G{static __wrap(t){const r=Object.create(G.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_certificate_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.certificate_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.certificate_from_bytes(r,_);return G.__wrap(a)}static new_stake_registration(t){S(t,xr);var r=e.certificate_new_stake_registration(t.ptr);return G.__wrap(r)}static new_stake_deregistration(t){S(t,kr);var r=e.certificate_new_stake_deregistration(t.ptr);return G.__wrap(r)}static new_stake_delegation(t){S(t,mr);var r=e.certificate_new_stake_delegation(t.ptr);return G.__wrap(r)}static new_pool_registration(t){S(t,Wt);var r=e.certificate_new_pool_registration(t.ptr);return G.__wrap(r)}static new_pool_retirement(t){S(t,Jt);var r=e.certificate_new_pool_retirement(t.ptr);return G.__wrap(r)}static new_genesis_key_delegation(t){S(t,dt);var r=e.certificate_new_genesis_key_delegation(t.ptr);return G.__wrap(r)}static new_move_instantaneous_rewards_cert(t){S(t,zt);var r=e.certificate_new_move_instantaneous_rewards_cert(t.ptr);return G.__wrap(r)}kind(){return e.certificate_kind(this.ptr)>>>0}as_stake_registration(){var t=e.certificate_as_stake_registration(this.ptr);return 0===t?void 0:xr.__wrap(t)}as_stake_deregistration(){var t=e.certificate_as_stake_deregistration(this.ptr);return 0===t?void 0:kr.__wrap(t)}as_stake_delegation(){var t=e.certificate_as_stake_delegation(this.ptr);return 0===t?void 0:mr.__wrap(t)}as_pool_registration(){var t=e.certificate_as_pool_registration(this.ptr);return 0===t?void 0:Wt.__wrap(t)}as_pool_retirement(){var t=e.certificate_as_pool_retirement(this.ptr);return 0===t?void 0:Jt.__wrap(t)}as_genesis_key_delegation(){var t=e.certificate_as_genesis_key_delegation(this.ptr);return 0===t?void 0:dt.__wrap(t)}as_move_instantaneous_rewards_cert(){var t=e.certificate_as_move_instantaneous_rewards_cert(this.ptr);return 0===t?void 0:zt.__wrap(t)}}t.exports.Certificate=G;class W{static __wrap(t){const r=Object.create(W.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_certificates_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.certificates_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.certificates_from_bytes(r,_);return W.__wrap(a)}static new(){var t=e.certificates_new();return W.__wrap(t)}len(){return e.certificates_len(this.ptr)>>>0}get(t){var r=e.certificates_get(this.ptr,t);return G.__wrap(r)}add(t){S(t,G),e.certificates_add(this.ptr,t.ptr)}}t.exports.Certificates=W;class J{static __wrap(t){const r=Object.create(J.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_constrplutusdata_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.constrplutusdata_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.constrplutusdata_from_bytes(r,_);return J.__wrap(a)}tag(){var t=e.constrplutusdata_tag(this.ptr);return bt.__wrap(t)}data(){var t=e.constrplutusdata_data(this.ptr);return Bt.__wrap(t)}static new(t,r){S(t,bt);var _=t.ptr;t.ptr=0,S(r,Bt);var a=e.constrplutusdata_new(_,r.ptr);return J.__wrap(a)}}t.exports.ConstrPlutusData=J;class Q{static __wrap(t){const r=Object.create(Q.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_costmodel_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.costmodel_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.costmodel_from_bytes(r,_);return Q.__wrap(a)}static new(){var t=e.costmodel_new();return Q.__wrap(t)}set(t,r){S(r,bt);var _=e.costmodel_set(this.ptr,t,r.ptr);return bt.__wrap(_)}get(t){var r=e.costmodel_get(this.ptr,t);return bt.__wrap(r)}}t.exports.CostModel=Q;class X{static __wrap(t){const r=Object.create(X.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_costmdls_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.costmdls_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.costmdls_from_bytes(r,_);return X.__wrap(a)}static new(){var t=e.costmdls_new();return X.__wrap(t)}len(){return e.costmdls_len(this.ptr)>>>0}insert(t,r){S(t,vt),S(r,Q);var _=e.costmdls_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:Q.__wrap(_)}get(t){S(t,vt);var r=e.costmdls_get(this.ptr,t.ptr);return 0===r?void 0:Q.__wrap(r)}keys(){var t=e.costmdls_keys(this.ptr);return ft.__wrap(t)}}t.exports.Costmdls=X;class Y{static __wrap(t){const r=Object.create(Y.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_dnsrecordaoraaaa_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.dnsrecordaoraaaa_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.dnsrecordaoraaaa_from_bytes(r,_);return Y.__wrap(a)}static new(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.dnsrecordaoraaaa_new(r,_);return Y.__wrap(a)}record(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.dnsrecordaoraaaa_record(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}}t.exports.DNSRecordAorAAAA=Y;class Z{static __wrap(t){const r=Object.create(Z.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_dnsrecordsrv_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.dnsrecordsrv_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.dnsrecordsrv_from_bytes(r,_);return Z.__wrap(a)}static new(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.dnsrecordsrv_new(r,_);return Z.__wrap(a)}record(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.dnsrecordsrv_record(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}}t.exports.DNSRecordSRV=Z;class tt{static __wrap(t){const r=Object.create(tt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_datahash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.datahash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.datahash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.datahash_from_bech32(r,_);return tt.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.datahash_from_bytes(r,_);return tt.__wrap(a)}}t.exports.DataHash=tt;class rt{static __wrap(t){const r=Object.create(rt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_ed25519keyhash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ed25519keyhash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.ed25519keyhash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.ed25519keyhash_from_bech32(r,_);return rt.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.ed25519keyhash_from_bytes(r,_);return rt.__wrap(a)}}t.exports.Ed25519KeyHash=rt;class _t{static __wrap(t){const r=Object.create(_t.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_ed25519keyhashes_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ed25519keyhashes_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.ed25519keyhashes_from_bytes(r,_);return _t.__wrap(a)}static new(){var t=e.ed25519keyhashes_new();return _t.__wrap(t)}len(){return e.ed25519keyhashes_len(this.ptr)>>>0}get(t){var r=e.ed25519keyhashes_get(this.ptr,t);return rt.__wrap(r)}add(t){S(t,rt),e.ed25519keyhashes_add(this.ptr,t.ptr)}}t.exports.Ed25519KeyHashes=_t;class et{static __wrap(t){const r=Object.create(et.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_ed25519signature_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ed25519signature_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.ed25519signature_to_bech32(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}to_hex(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.ed25519signature_to_hex(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.ed25519signature_from_bech32(r,_);return et.__wrap(a)}static from_hex(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.ed25519signature_from_hex(r,_);return et.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.ed25519signature_from_bytes(r,_);return et.__wrap(a)}}t.exports.Ed25519Signature=et;class at{static __wrap(t){const r=Object.create(at.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_enterpriseaddress_free(t)}static new(t,r){S(r,vr);var _=e.enterpriseaddress_new(t,r.ptr);return at.__wrap(_)}payment_cred(){var t=e.enterpriseaddress_payment_cred(this.ptr);return vr.__wrap(t)}to_address(){var t=e.enterpriseaddress_to_address(this.ptr);return M.__wrap(t)}static from_address(t){S(t,M);var r=e.enterpriseaddress_from_address(t.ptr);return 0===r?void 0:at.__wrap(r)}}t.exports.EnterpriseAddress=at;class nt{static __wrap(t){const r=Object.create(nt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_exunitprices_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.exunitprices_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.exunitprices_from_bytes(r,_);return nt.__wrap(a)}mem_price(){var t=e.exunitprices_mem_price(this.ptr);return Lr.__wrap(t)}step_price(){var t=e.exunitprices_step_price(this.ptr);return Lr.__wrap(t)}static new(t,r){S(t,Lr),S(r,Lr);var _=e.exunitprices_new(t.ptr,r.ptr);return nt.__wrap(_)}}t.exports.ExUnitPrices=nt;class st{static __wrap(t){const r=Object.create(st.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_exunits_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.exunits_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.exunits_from_bytes(r,_);return st.__wrap(a)}mem(){var t=e.exunits_mem(this.ptr);return B.__wrap(t)}steps(){var t=e.exunits_steps(this.ptr);return B.__wrap(t)}static new(t,r){S(t,B),S(r,B);var _=e.exunits_new(t.ptr,r.ptr);return st.__wrap(_)}}t.exports.ExUnits=st;class it{static __wrap(t){const r=Object.create(it.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_generaltransactionmetadata_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.generaltransactionmetadata_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.generaltransactionmetadata_from_bytes(r,_);return it.__wrap(a)}static new(){var t=e.generaltransactionmetadata_new();return it.__wrap(t)}len(){return e.generaltransactionmetadata_len(this.ptr)>>>0}insert(t,r){S(t,B),S(r,Cr);var _=e.generaltransactionmetadata_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:Cr.__wrap(_)}get(t){S(t,B);var r=e.generaltransactionmetadata_get(this.ptr,t.ptr);return 0===r?void 0:Cr.__wrap(r)}keys(){var t=e.generaltransactionmetadata_keys(this.ptr);return Nr.__wrap(t)}}t.exports.GeneralTransactionMetadata=it;class ot{static __wrap(t){const r=Object.create(ot.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_genesisdelegatehash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.genesisdelegatehash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.genesisdelegatehash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.genesisdelegatehash_from_bech32(r,_);return ot.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.genesisdelegatehash_from_bytes(r,_);return ot.__wrap(a)}}t.exports.GenesisDelegateHash=ot;class pt{static __wrap(t){const r=Object.create(pt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_genesishash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.genesishash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.genesishash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.genesishash_from_bech32(r,_);return pt.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.genesishash_from_bytes(r,_);return pt.__wrap(a)}}t.exports.GenesisHash=pt;class ct{static __wrap(t){const r=Object.create(ct.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_genesishashes_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.genesishashes_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.genesishashes_from_bytes(r,_);return ct.__wrap(a)}static new(){var t=e.genesishashes_new();return ct.__wrap(t)}len(){return e.genesishashes_len(this.ptr)>>>0}get(t){var r=e.genesishashes_get(this.ptr,t);return pt.__wrap(r)}add(t){S(t,pt),e.genesishashes_add(this.ptr,t.ptr)}}t.exports.GenesisHashes=ct;class dt{static __wrap(t){const r=Object.create(dt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_genesiskeydelegation_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.genesiskeydelegation_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.genesiskeydelegation_from_bytes(r,_);return dt.__wrap(a)}genesishash(){var t=e.genesiskeydelegation_genesishash(this.ptr);return pt.__wrap(t)}genesis_delegate_hash(){var t=e.genesiskeydelegation_genesis_delegate_hash(this.ptr);return ot.__wrap(t)}vrf_keyhash(){var t=e.genesiskeydelegation_vrf_keyhash(this.ptr);return Ur.__wrap(t)}static new(t,r,_){S(t,pt),S(r,ot),S(_,Ur);var a=e.genesiskeydelegation_new(t.ptr,r.ptr,_.ptr);return dt.__wrap(a)}}t.exports.GenesisKeyDelegation=dt;class wt{static __wrap(t){const r=Object.create(wt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_header_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.header_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.header_from_bytes(r,_);return wt.__wrap(a)}header_body(){var t=e.header_header_body(this.ptr);return lt.__wrap(t)}body_signature(){var t=e.header_body_signature(this.ptr);return ht.__wrap(t)}static new(t,r){S(t,lt),S(r,ht);var _=e.header_new(t.ptr,r.ptr);return wt.__wrap(_)}}t.exports.Header=wt;class lt{static __wrap(t){const r=Object.create(lt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_headerbody_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.headerbody_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.headerbody_from_bytes(r,_);return lt.__wrap(a)}block_number(){return e.headerbody_block_number(this.ptr)>>>0}slot(){return e.headerbody_slot(this.ptr)>>>0}prev_hash(){var t=e.headerbody_prev_hash(this.ptr);return 0===t?void 0:q.__wrap(t)}issuer_vkey(){var t=e.headerbody_issuer_vkey(this.ptr);return Wr.__wrap(t)}vrf_vkey(){var t=e.headerbody_vrf_vkey(this.ptr);return $r.__wrap(t)}nonce_vrf(){var t=e.headerbody_nonce_vrf(this.ptr);return Fr.__wrap(t)}leader_vrf(){var t=e.headerbody_leader_vrf(this.ptr);return Fr.__wrap(t)}block_body_size(){return e.headerbody_block_body_size(this.ptr)>>>0}block_body_hash(){var t=e.headerbody_block_body_hash(this.ptr);return q.__wrap(t)}operational_cert(){var t=e.headerbody_operational_cert(this.ptr);return Ht.__wrap(t)}protocol_version(){var t=e.headerbody_protocol_version(this.ptr);return Zt.__wrap(t)}static new(t,r,_,a,n,s,i,o,p,c,d){let w=0;f(_)||(S(_,q),w=_.ptr,_.ptr=0),S(a,Wr),S(n,$r),S(s,Fr),S(i,Fr),S(p,q),S(c,Ht),S(d,Zt);var l=e.headerbody_new(t,r,w,a.ptr,n.ptr,s.ptr,i.ptr,o,p.ptr,c.ptr,d.ptr);return lt.__wrap(l)}}t.exports.HeaderBody=lt;class bt{static __wrap(t){const r=Object.create(bt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_int_free(t)}static new(t){S(t,B);var r=e.int_new(t.ptr);return bt.__wrap(r)}static new_negative(t){S(t,B);var r=e.int_new_negative(t.ptr);return bt.__wrap(r)}static new_i32(t){var r=e.int_new_i32(t);return bt.__wrap(r)}is_positive(){return 0!==e.int_is_positive(this.ptr)}as_positive(){var t=e.int_as_positive(this.ptr);return 0===t?void 0:B.__wrap(t)}as_negative(){var t=e.int_as_negative(this.ptr);return 0===t?void 0:B.__wrap(t)}as_i32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.int_as_i32(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return 0===t?void 0:r}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.Int=bt;class ut{static __wrap(t){const r=Object.create(ut.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_ipv4_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ipv4_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.ipv4_from_bytes(r,_);return ut.__wrap(a)}static new(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.ipv4_new(r,_);return ut.__wrap(a)}ip(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ipv4_ip(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.Ipv4=ut;class yt{static __wrap(t){const r=Object.create(yt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_ipv6_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ipv6_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.ipv6_from_bytes(r,_);return yt.__wrap(a)}static new(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.ipv6_new(r,_);return yt.__wrap(a)}ip(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.ipv6_ip(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.Ipv6=yt;class ht{static __wrap(t){const r=Object.create(ht.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_kessignature_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.kessignature_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.kessignature_from_bytes(r,_);return ht.__wrap(a)}}t.exports.KESSignature=ht;class gt{static __wrap(t){const r=Object.create(gt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_kesvkey_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.kesvkey_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.kesvkey_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.kesvkey_from_bech32(r,_);return gt.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.kesvkey_from_bytes(r,_);return gt.__wrap(a)}}t.exports.KESVKey=gt;class vt{static __wrap(t){const r=Object.create(vt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_language_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.language_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.language_from_bytes(r,_);return vt.__wrap(a)}static new_plutus_v1(){var t=e.language_new_plutus_v1();return vt.__wrap(t)}kind(){return e.language_kind(this.ptr)>>>0}}t.exports.Language=vt;class ft{static __wrap(t){const r=Object.create(ft.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_languages_free(t)}static new(){var t=e.languages_new();return ft.__wrap(t)}len(){return e.languages_len(this.ptr)>>>0}get(t){var r=e.languages_get(this.ptr,t);return vt.__wrap(r)}add(t){S(t,vt);var r=t.ptr;t.ptr=0,e.languages_add(this.ptr,r)}}t.exports.Languages=ft;class mt{static __wrap(t){const r=Object.create(mt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_legacydaedalusprivatekey_free(t)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.legacydaedalusprivatekey_from_bytes(r,_);return mt.__wrap(a)}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.legacydaedalusprivatekey_as_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}chaincode(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.legacydaedalusprivatekey_chaincode(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.LegacyDaedalusPrivateKey=mt;class kt{static __wrap(t){const r=Object.create(kt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_linearfee_free(t)}constant(){var t=e.linearfee_constant(this.ptr);return B.__wrap(t)}coefficient(){var t=e.linearfee_coefficient(this.ptr);return B.__wrap(t)}static new(t,r){S(t,B),S(r,B);var _=e.linearfee_new(t.ptr,r.ptr);return kt.__wrap(_)}}t.exports.LinearFee=kt;class xt{static __wrap(t){const r=Object.create(xt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_mirtostakecredentials_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.mirtostakecredentials_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.mirtostakecredentials_from_bytes(r,_);return xt.__wrap(a)}static new(){var t=e.mirtostakecredentials_new();return xt.__wrap(t)}len(){return e.mirtostakecredentials_len(this.ptr)>>>0}insert(t,r){S(t,vr),S(r,bt);var _=e.mirtostakecredentials_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:bt.__wrap(_)}get(t){S(t,vr);var r=e.mirtostakecredentials_get(this.ptr,t.ptr);return 0===r?void 0:bt.__wrap(r)}keys(){var t=e.mirtostakecredentials_keys(this.ptr);return fr.__wrap(t)}}t.exports.MIRToStakeCredentials=xt;class Ot{static __wrap(t){const r=Object.create(Ot.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_metadatalist_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.metadatalist_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.metadatalist_from_bytes(r,_);return Ot.__wrap(a)}static new(){var t=e.metadatalist_new();return Ot.__wrap(t)}len(){return e.metadatalist_len(this.ptr)>>>0}get(t){var r=e.metadatalist_get(this.ptr,t);return Cr.__wrap(r)}add(t){S(t,Cr),e.metadatalist_add(this.ptr,t.ptr)}}t.exports.MetadataList=Ot;class jt{static __wrap(t){const r=Object.create(jt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_metadatamap_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.metadatamap_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.metadatamap_from_bytes(r,_);return jt.__wrap(a)}static new(){var t=e.metadatamap_new();return jt.__wrap(t)}len(){return e.metadatamap_len(this.ptr)>>>0}insert(t,r){S(t,Cr),S(r,Cr);var _=e.metadatamap_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:Cr.__wrap(_)}insert_str(t,r){var _=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),a=y;S(r,Cr);var n=e.metadatamap_insert_str(this.ptr,_,a,r.ptr);return 0===n?void 0:Cr.__wrap(n)}insert_i32(t,r){S(r,Cr);var _=e.metadatamap_insert_i32(this.ptr,t,r.ptr);return 0===_?void 0:Cr.__wrap(_)}get(t){S(t,Cr);var r=e.metadatamap_get(this.ptr,t.ptr);return Cr.__wrap(r)}get_str(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.metadatamap_get_str(this.ptr,r,_);return Cr.__wrap(a)}get_i32(t){var r=e.metadatamap_get_i32(this.ptr,t);return Cr.__wrap(r)}has(t){return S(t,Cr),0!==e.metadatamap_has(this.ptr,t.ptr)}keys(){var t=e.metadatamap_keys(this.ptr);return Ot.__wrap(t)}}t.exports.MetadataMap=jt;class St{static __wrap(t){const r=Object.create(St.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_mint_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.mint_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.mint_from_bytes(r,_);return St.__wrap(a)}static new(){var t=e.mint_new();return St.__wrap(t)}len(){return e.mint_len(this.ptr)>>>0}insert(t,r){S(t,lr),S(r,Pt);var _=e.mint_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:Pt.__wrap(_)}get(t){S(t,lr);var r=e.mint_get(this.ptr,t.ptr);return 0===r?void 0:Pt.__wrap(r)}keys(){var t=e.mint_keys(this.ptr);return br.__wrap(t)}}t.exports.Mint=St;class Pt{static __wrap(t){const r=Object.create(Pt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_mintassets_free(t)}static new(){var t=e.mintassets_new();return Pt.__wrap(t)}len(){return e.mintassets_len(this.ptr)>>>0}insert(t,r){S(t,A),S(r,bt);var _=r.ptr;r.ptr=0;var a=e.mintassets_insert(this.ptr,t.ptr,_);return 0===a?void 0:bt.__wrap(a)}get(t){S(t,A);var r=e.mintassets_get(this.ptr,t.ptr);return 0===r?void 0:bt.__wrap(r)}keys(){var t=e.mintassets_keys(this.ptr);return T.__wrap(t)}}t.exports.MintAssets=Pt;class Rt{static __wrap(t){const r=Object.create(Rt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_moveinstantaneousreward_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.moveinstantaneousreward_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.moveinstantaneousreward_from_bytes(r,_);return Rt.__wrap(a)}static new_to_other_pot(t,r){S(r,B);var _=e.moveinstantaneousreward_new_to_other_pot(t,r.ptr);return Rt.__wrap(_)}static new_to_stake_creds(t,r){S(r,xt);var _=e.moveinstantaneousreward_new_to_stake_creds(t,r.ptr);return Rt.__wrap(_)}pot(){return e.moveinstantaneousreward_pot(this.ptr)>>>0}kind(){return e.moveinstantaneousreward_kind(this.ptr)>>>0}as_to_other_pot(){var t=e.moveinstantaneousreward_as_to_other_pot(this.ptr);return 0===t?void 0:B.__wrap(t)}as_to_stake_creds(){var t=e.moveinstantaneousreward_as_to_stake_creds(this.ptr);return 0===t?void 0:xt.__wrap(t)}}t.exports.MoveInstantaneousReward=Rt;class zt{static __wrap(t){const r=Object.create(zt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_moveinstantaneousrewardscert_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.moveinstantaneousrewardscert_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.moveinstantaneousrewardscert_from_bytes(r,_);return zt.__wrap(a)}move_instantaneous_reward(){var t=e.moveinstantaneousrewardscert_move_instantaneous_reward(this.ptr);return Rt.__wrap(t)}static new(t){S(t,Rt);var r=e.moveinstantaneousrewardscert_new(t.ptr);return zt.__wrap(r)}}t.exports.MoveInstantaneousRewardsCert=zt;class Mt{static __wrap(t){const r=Object.create(Mt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_multiasset_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.multiasset_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.multiasset_from_bytes(r,_);return Mt.__wrap(a)}static new(){var t=e.multiasset_new();return Mt.__wrap(t)}len(){return e.multiasset_len(this.ptr)>>>0}insert(t,r){S(t,lr),S(r,K);var _=e.multiasset_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:K.__wrap(_)}get(t){S(t,lr);var r=e.multiasset_get(this.ptr,t.ptr);return 0===r?void 0:K.__wrap(r)}keys(){var t=e.multiasset_keys(this.ptr);return br.__wrap(t)}sub(t){S(t,Mt);var r=e.multiasset_sub(this.ptr,t.ptr);return Mt.__wrap(r)}}t.exports.MultiAsset=Mt;class At{static __wrap(t){const r=Object.create(At.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_multihostname_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.multihostname_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.multihostname_from_bytes(r,_);return At.__wrap(a)}dns_name(){var t=e.multihostname_dns_name(this.ptr);return Z.__wrap(t)}static new(t){S(t,Z);var r=e.multihostname_new(t.ptr);return At.__wrap(r)}}t.exports.MultiHostName=At;class Tt{static __wrap(t){const r=Object.create(Tt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_nativescript_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.nativescript_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.nativescript_from_bytes(r,_);return Tt.__wrap(a)}hash(t){var r=e.nativescript_hash(this.ptr,t);return rt.__wrap(r)}static new_script_pubkey(t){S(t,yr);var r=e.nativescript_new_script_pubkey(t.ptr);return Tt.__wrap(r)}static new_script_all(t){S(t,cr);var r=e.nativescript_new_script_all(t.ptr);return Tt.__wrap(r)}static new_script_any(t){S(t,dr);var r=e.nativescript_new_script_any(t.ptr);return Tt.__wrap(r)}static new_script_n_of_k(t){S(t,ur);var r=e.nativescript_new_script_n_of_k(t.ptr);return Tt.__wrap(r)}static new_timelock_start(t){S(t,Sr);var r=e.nativescript_new_timelock_start(t.ptr);return Tt.__wrap(r)}static new_timelock_expiry(t){S(t,jr);var r=e.nativescript_new_timelock_expiry(t.ptr);return Tt.__wrap(r)}kind(){return e.nativescript_kind(this.ptr)>>>0}as_script_pubkey(){var t=e.nativescript_as_script_pubkey(this.ptr);return 0===t?void 0:yr.__wrap(t)}as_script_all(){var t=e.nativescript_as_script_all(this.ptr);return 0===t?void 0:cr.__wrap(t)}as_script_any(){var t=e.nativescript_as_script_any(this.ptr);return 0===t?void 0:dr.__wrap(t)}as_script_n_of_k(){var t=e.nativescript_as_script_n_of_k(this.ptr);return 0===t?void 0:ur.__wrap(t)}as_timelock_start(){var t=e.nativescript_as_timelock_start(this.ptr);return 0===t?void 0:Sr.__wrap(t)}as_timelock_expiry(){var t=e.nativescript_as_timelock_expiry(this.ptr);return 0===t?void 0:jr.__wrap(t)}}t.exports.NativeScript=Tt;class Kt{static __wrap(t){const r=Object.create(Kt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_nativescripts_free(t)}static new(){var t=e.nativescripts_new();return Kt.__wrap(t)}len(){return e.nativescripts_len(this.ptr)>>>0}get(t){var r=e.nativescripts_get(this.ptr,t);return Tt.__wrap(r)}add(t){S(t,Tt),e.nativescripts_add(this.ptr,t.ptr)}}t.exports.NativeScripts=Kt;class Ct{static __wrap(t){const r=Object.create(Ct.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_networkid_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.networkid_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.networkid_from_bytes(r,_);return Ct.__wrap(a)}static testnet(){var t=e.networkid_testnet();return Ct.__wrap(t)}static mainnet(){var t=e.networkid_mainnet();return Ct.__wrap(t)}kind(){return e.networkid_kind(this.ptr)>>>0}}t.exports.NetworkId=Ct;class Nt{static __wrap(t){const r=Object.create(Nt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_networkinfo_free(t)}static new(t,r){var _=e.networkinfo_new(t,r);return Nt.__wrap(_)}network_id(){return e.networkinfo_network_id(this.ptr)}protocol_magic(){return e.networkinfo_protocol_magic(this.ptr)>>>0}static testnet(){var t=e.networkinfo_testnet();return Nt.__wrap(t)}static mainnet(){var t=e.networkinfo_mainnet();return Nt.__wrap(t)}}t.exports.NetworkInfo=Nt;class Dt{static __wrap(t){const r=Object.create(Dt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_nonce_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.nonce_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.nonce_from_bytes(r,_);return Dt.__wrap(a)}static new_identity(){var t=e.nonce_new_identity();return Dt.__wrap(t)}static new_from_hash(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.nonce_new_from_hash(r,_);return Dt.__wrap(a)}get_hash(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.nonce_get_hash(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];let a;return 0!==t&&(a=O(t,r).slice(),e.__wbindgen_free(t,1*r)),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.Nonce=Dt;class Ht{static __wrap(t){const r=Object.create(Ht.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_operationalcert_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.operationalcert_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.operationalcert_from_bytes(r,_);return Ht.__wrap(a)}hot_vkey(){var t=e.operationalcert_hot_vkey(this.ptr);return gt.__wrap(t)}sequence_number(){return e.operationalcert_sequence_number(this.ptr)>>>0}kes_period(){return e.operationalcert_kes_period(this.ptr)>>>0}sigma(){var t=e.operationalcert_sigma(this.ptr);return et.__wrap(t)}static new(t,r,_,a){S(t,gt),S(a,et);var n=e.operationalcert_new(t.ptr,r,_,a.ptr);return Ht.__wrap(n)}}t.exports.OperationalCert=Ht;class It{static __wrap(t){const r=Object.create(It.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_plutusdata_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutusdata_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.plutusdata_from_bytes(r,_);return It.__wrap(a)}static new_constr_plutus_data(t){S(t,J);var r=e.plutusdata_new_constr_plutus_data(t.ptr);return It.__wrap(r)}static new_map(t){S(t,Vt);var r=e.plutusdata_new_map(t.ptr);return It.__wrap(r)}static new_list(t){S(t,Bt);var r=e.plutusdata_new_list(t.ptr);return It.__wrap(r)}static new_integer(t){S(t,I);var r=e.plutusdata_new_integer(t.ptr);return It.__wrap(r)}static new_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.plutusdata_new_bytes(r,_);return It.__wrap(a)}kind(){return e.plutusdata_kind(this.ptr)>>>0}as_constr_plutus_data(){var t=e.plutusdata_as_constr_plutus_data(this.ptr);return 0===t?void 0:J.__wrap(t)}as_map(){var t=e.plutusdata_as_map(this.ptr);return 0===t?void 0:Vt.__wrap(t)}as_list(){var t=e.plutusdata_as_list(this.ptr);return 0===t?void 0:Bt.__wrap(t)}as_integer(){var t=e.plutusdata_as_integer(this.ptr);return 0===t?void 0:I.__wrap(t)}as_bytes(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.plutusdata_as_bytes(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];let a;return 0!==t&&(a=O(t,r).slice(),e.__wbindgen_free(t,1*r)),a}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.PlutusData=It;class Bt{static __wrap(t){const r=Object.create(Bt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_plutuslist_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutuslist_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.plutuslist_from_bytes(r,_);return Bt.__wrap(a)}static new(){var t=e.plutuslist_new();return Bt.__wrap(t)}len(){return e.plutuslist_len(this.ptr)>>>0}get(t){var r=e.plutuslist_get(this.ptr,t);return It.__wrap(r)}add(t){S(t,It),e.plutuslist_add(this.ptr,t.ptr)}}t.exports.PlutusList=Bt;class Vt{static __wrap(t){const r=Object.create(Vt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_plutusmap_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutusmap_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.plutusmap_from_bytes(r,_);return Vt.__wrap(a)}static new(){var t=e.plutusmap_new();return Vt.__wrap(t)}len(){return e.plutusmap_len(this.ptr)>>>0}insert(t,r){S(t,It),S(r,It);var _=e.plutusmap_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:It.__wrap(_)}get(t){S(t,It);var r=e.plutusmap_get(this.ptr,t.ptr);return 0===r?void 0:It.__wrap(r)}keys(){var t=e.plutusmap_keys(this.ptr);return Bt.__wrap(t)}}t.exports.PlutusMap=Vt;class Et{static __wrap(t){const r=Object.create(Et.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_plutusscript_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutusscript_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.plutusscript_from_bytes(r,_);return Et.__wrap(a)}static new(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.plutusscript_new(r,_);return Et.__wrap(a)}bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutusscript_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}}t.exports.PlutusScript=Et;class Lt{static __wrap(t){const r=Object.create(Lt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_plutusscripts_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.plutusscripts_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.plutusscripts_from_bytes(r,_);return Lt.__wrap(a)}static new(){var t=e.plutusscripts_new();return Lt.__wrap(t)}len(){return e.plutusscripts_len(this.ptr)>>>0}get(t){var r=e.plutusscripts_get(this.ptr,t);return Et.__wrap(r)}add(t){S(t,Et),e.plutusscripts_add(this.ptr,t.ptr)}}t.exports.PlutusScripts=Lt;class qt{static __wrap(t){const r=Object.create(qt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_pointer_free(t)}static new(t,r,_){var a=e.pointer_new(t,r,_);return qt.__wrap(a)}slot(){return e.pointer_slot(this.ptr)>>>0}tx_index(){return e.pointer_tx_index(this.ptr)>>>0}cert_index(){return e.pointer_cert_index(this.ptr)>>>0}}t.exports.Pointer=qt;class Ft{static __wrap(t){const r=Object.create(Ft.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_pointeraddress_free(t)}static new(t,r,_){S(r,vr),S(_,qt);var a=e.pointeraddress_new(t,r.ptr,_.ptr);return Ft.__wrap(a)}payment_cred(){var t=e.pointeraddress_payment_cred(this.ptr);return vr.__wrap(t)}stake_pointer(){var t=e.pointeraddress_stake_pointer(this.ptr);return qt.__wrap(t)}to_address(){var t=e.pointeraddress_to_address(this.ptr);return M.__wrap(t)}static from_address(t){S(t,M);var r=e.pointeraddress_from_address(t.ptr);return 0===r?void 0:Ft.__wrap(r)}}t.exports.PointerAddress=Ft;class Ut{static __wrap(t){const r=Object.create(Ut.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_poolmetadata_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.poolmetadata_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.poolmetadata_from_bytes(r,_);return Ut.__wrap(a)}url(){var t=e.poolmetadata_url(this.ptr);return Er.__wrap(t)}pool_metadata_hash(){var t=e.poolmetadata_pool_metadata_hash(this.ptr);return $t.__wrap(t)}static new(t,r){S(t,Er),S(r,$t);var _=e.poolmetadata_new(t.ptr,r.ptr);return Ut.__wrap(_)}}t.exports.PoolMetadata=Ut;class $t{static __wrap(t){const r=Object.create($t.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_poolmetadatahash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.poolmetadatahash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.poolmetadatahash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.poolmetadatahash_from_bech32(r,_);return $t.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.poolmetadatahash_from_bytes(r,_);return $t.__wrap(a)}}t.exports.PoolMetadataHash=$t;class Gt{static __wrap(t){const r=Object.create(Gt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_poolparams_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.poolparams_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.poolparams_from_bytes(r,_);return Gt.__wrap(a)}operator(){var t=e.poolparams_operator(this.ptr);return rt.__wrap(t)}vrf_keyhash(){var t=e.poolparams_vrf_keyhash(this.ptr);return Ur.__wrap(t)}pledge(){var t=e.poolparams_pledge(this.ptr);return B.__wrap(t)}cost(){var t=e.poolparams_cost(this.ptr);return B.__wrap(t)}margin(){var t=e.poolparams_margin(this.ptr);return Lr.__wrap(t)}reward_account(){var t=e.poolparams_reward_account(this.ptr);return or.__wrap(t)}pool_owners(){var t=e.poolparams_pool_owners(this.ptr);return _t.__wrap(t)}relays(){var t=e.poolparams_relays(this.ptr);return ir.__wrap(t)}pool_metadata(){var t=e.poolparams_pool_metadata(this.ptr);return 0===t?void 0:Ut.__wrap(t)}static new(t,r,_,a,n,s,i,o,p){S(t,rt),S(r,Ur),S(_,B),S(a,B),S(n,Lr),S(s,or),S(i,_t),S(o,ir);let c=0;f(p)||(S(p,Ut),c=p.ptr,p.ptr=0);var d=e.poolparams_new(t.ptr,r.ptr,_.ptr,a.ptr,n.ptr,s.ptr,i.ptr,o.ptr,c);return Gt.__wrap(d)}}t.exports.PoolParams=Gt;class Wt{static __wrap(t){const r=Object.create(Wt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_poolregistration_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.poolregistration_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.poolregistration_from_bytes(r,_);return Wt.__wrap(a)}pool_params(){var t=e.poolregistration_pool_params(this.ptr);return Gt.__wrap(t)}static new(t){S(t,Gt);var r=e.poolregistration_new(t.ptr);return Wt.__wrap(r)}}t.exports.PoolRegistration=Wt;class Jt{static __wrap(t){const r=Object.create(Jt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_poolretirement_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.poolretirement_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.poolretirement_from_bytes(r,_);return Jt.__wrap(a)}pool_keyhash(){var t=e.poolretirement_pool_keyhash(this.ptr);return rt.__wrap(t)}epoch(){return e.poolretirement_epoch(this.ptr)>>>0}static new(t,r){S(t,rt);var _=e.poolretirement_new(t.ptr,r);return Jt.__wrap(_)}}t.exports.PoolRetirement=Jt;class Qt{static __wrap(t){const r=Object.create(Qt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_privatekey_free(t)}to_public(){var t=e.privatekey_to_public(this.ptr);return rr.__wrap(t)}static generate_ed25519(){var t=e.privatekey_generate_ed25519();return Qt.__wrap(t)}static generate_ed25519extended(){var t=e.privatekey_generate_ed25519extended();return Qt.__wrap(t)}to_bech32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.privatekey_to_bech32(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.privatekey_as_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_extended_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.privatekey_from_extended_bytes(r,_);return Qt.__wrap(a)}static from_normal_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.privatekey_from_normal_bytes(r,_);return Qt.__wrap(a)}sign(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.privatekey_sign(this.ptr,r,_);return et.__wrap(a)}}t.exports.PrivateKey=Qt;class Xt{static __wrap(t){const r=Object.create(Xt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_proposedprotocolparameterupdates_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.proposedprotocolparameterupdates_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.proposedprotocolparameterupdates_from_bytes(r,_);return Xt.__wrap(a)}static new(){var t=e.proposedprotocolparameterupdates_new();return Xt.__wrap(t)}len(){return e.proposedprotocolparameterupdates_len(this.ptr)>>>0}insert(t,r){S(t,pt),S(r,Yt);var _=e.proposedprotocolparameterupdates_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:Yt.__wrap(_)}get(t){S(t,pt);var r=e.proposedprotocolparameterupdates_get(this.ptr,t.ptr);return 0===r?void 0:Yt.__wrap(r)}keys(){var t=e.proposedprotocolparameterupdates_keys(this.ptr);return ct.__wrap(t)}}t.exports.ProposedProtocolParameterUpdates=Xt;class Yt{static __wrap(t){const r=Object.create(Yt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_protocolparamupdate_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.protocolparamupdate_from_bytes(r,_);return Yt.__wrap(a)}set_minfee_a(t){S(t,B),e.protocolparamupdate_set_minfee_a(this.ptr,t.ptr)}minfee_a(){var t=e.protocolparamupdate_minfee_a(this.ptr);return 0===t?void 0:B.__wrap(t)}set_minfee_b(t){S(t,B),e.protocolparamupdate_set_minfee_b(this.ptr,t.ptr)}minfee_b(){var t=e.protocolparamupdate_minfee_b(this.ptr);return 0===t?void 0:B.__wrap(t)}set_max_block_body_size(t){e.protocolparamupdate_set_max_block_body_size(this.ptr,t)}max_block_body_size(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_max_block_body_size(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_max_tx_size(t){e.protocolparamupdate_set_max_tx_size(this.ptr,t)}max_tx_size(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_max_tx_size(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_max_block_header_size(t){e.protocolparamupdate_set_max_block_header_size(this.ptr,t)}max_block_header_size(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_max_block_header_size(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_key_deposit(t){S(t,B),e.protocolparamupdate_set_key_deposit(this.ptr,t.ptr)}key_deposit(){var t=e.protocolparamupdate_key_deposit(this.ptr);return 0===t?void 0:B.__wrap(t)}set_pool_deposit(t){S(t,B),e.protocolparamupdate_set_pool_deposit(this.ptr,t.ptr)}pool_deposit(){var t=e.protocolparamupdate_pool_deposit(this.ptr);return 0===t?void 0:B.__wrap(t)}set_max_epoch(t){e.protocolparamupdate_set_max_epoch(this.ptr,t)}max_epoch(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_max_epoch(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_n_opt(t){e.protocolparamupdate_set_n_opt(this.ptr,t)}n_opt(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_n_opt(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_pool_pledge_influence(t){S(t,Lr),e.protocolparamupdate_set_pool_pledge_influence(this.ptr,t.ptr)}pool_pledge_influence(){var t=e.protocolparamupdate_pool_pledge_influence(this.ptr);return 0===t?void 0:Lr.__wrap(t)}set_expansion_rate(t){S(t,Lr),e.protocolparamupdate_set_expansion_rate(this.ptr,t.ptr)}expansion_rate(){var t=e.protocolparamupdate_expansion_rate(this.ptr);return 0===t?void 0:Lr.__wrap(t)}set_treasury_growth_rate(t){S(t,Lr),e.protocolparamupdate_set_treasury_growth_rate(this.ptr,t.ptr)}treasury_growth_rate(){var t=e.protocolparamupdate_treasury_growth_rate(this.ptr);return 0===t?void 0:Lr.__wrap(t)}set_d(t){S(t,Lr),e.protocolparamupdate_set_d(this.ptr,t.ptr)}d(){var t=e.protocolparamupdate_d(this.ptr);return 0===t?void 0:Lr.__wrap(t)}set_extra_entropy(t){S(t,Dt),e.protocolparamupdate_set_extra_entropy(this.ptr,t.ptr)}extra_entropy(){var t=e.protocolparamupdate_extra_entropy(this.ptr);return 0===t?void 0:Dt.__wrap(t)}set_protocol_version(t){S(t,tr),e.protocolparamupdate_set_protocol_version(this.ptr,t.ptr)}protocol_version(){var t=e.protocolparamupdate_protocol_version(this.ptr);return 0===t?void 0:tr.__wrap(t)}set_min_pool_cost(t){S(t,B),e.protocolparamupdate_set_min_pool_cost(this.ptr,t.ptr)}min_pool_cost(){var t=e.protocolparamupdate_min_pool_cost(this.ptr);return 0===t?void 0:B.__wrap(t)}set_ada_per_utxo_byte(t){S(t,B),e.protocolparamupdate_set_ada_per_utxo_byte(this.ptr,t.ptr)}ada_per_utxo_byte(){var t=e.protocolparamupdate_ada_per_utxo_byte(this.ptr);return 0===t?void 0:B.__wrap(t)}set_cost_models(t){S(t,X),e.protocolparamupdate_set_cost_models(this.ptr,t.ptr)}cost_models(){var t=e.protocolparamupdate_cost_models(this.ptr);return 0===t?void 0:X.__wrap(t)}set_execution_costs(t){S(t,nt),e.protocolparamupdate_set_execution_costs(this.ptr,t.ptr)}execution_costs(){var t=e.protocolparamupdate_execution_costs(this.ptr);return 0===t?void 0:nt.__wrap(t)}set_max_tx_ex_units(t){S(t,st),e.protocolparamupdate_set_max_tx_ex_units(this.ptr,t.ptr)}max_tx_ex_units(){var t=e.protocolparamupdate_max_tx_ex_units(this.ptr);return 0===t?void 0:st.__wrap(t)}set_max_block_ex_units(t){S(t,st),e.protocolparamupdate_set_max_block_ex_units(this.ptr,t.ptr)}max_block_ex_units(){var t=e.protocolparamupdate_max_block_ex_units(this.ptr);return 0===t?void 0:st.__wrap(t)}set_max_value_size(t){e.protocolparamupdate_set_max_value_size(this.ptr,t)}max_value_size(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.protocolparamupdate_max_value_size(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}static new(){var t=e.protocolparamupdate_new();return Yt.__wrap(t)}}t.exports.ProtocolParamUpdate=Yt;class Zt{static __wrap(t){const r=Object.create(Zt.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_protocolversion_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.protocolversion_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.protocolversion_from_bytes(r,_);return Zt.__wrap(a)}major(){return e.protocolversion_major(this.ptr)>>>0}minor(){return e.protocolversion_minor(this.ptr)>>>0}static new(t,r){var _=e.protocolversion_new(t,r);return Zt.__wrap(_)}}t.exports.ProtocolVersion=Zt;class tr{static __wrap(t){const r=Object.create(tr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_protocolversions_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.protocolversions_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.protocolversions_from_bytes(r,_);return tr.__wrap(a)}static new(){var t=e.protocolversions_new();return tr.__wrap(t)}len(){return e.protocolversions_len(this.ptr)>>>0}get(t){var r=e.protocolversions_get(this.ptr,t);return Zt.__wrap(r)}add(t){S(t,Zt),e.protocolversions_add(this.ptr,t.ptr)}}t.exports.ProtocolVersions=tr;class rr{static __wrap(t){const r=Object.create(rr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_publickey_free(t)}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.publickey_from_bech32(r,_);return rr.__wrap(a)}to_bech32(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.publickey_to_bech32(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.publickey_as_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.publickey_from_bytes(r,_);return rr.__wrap(a)}verify(t,r){var _=j(t,e.__wbindgen_malloc),a=y;return S(r,et),0!==e.publickey_verify(this.ptr,_,a,r.ptr)}hash(){var t=e.publickey_hash(this.ptr);return rt.__wrap(t)}}t.exports.PublicKey=rr;class _r{static __wrap(t){const r=Object.create(_r.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_publickeys_free(t)}constructor(){var t=e.publickeys_new();return _r.__wrap(t)}size(){return e.publickeys_size(this.ptr)>>>0}get(t){var r=e.publickeys_get(this.ptr,t);return rr.__wrap(r)}add(t){S(t,rr),e.publickeys_add(this.ptr,t.ptr)}}t.exports.PublicKeys=_r;class er{static __wrap(t){const r=Object.create(er.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_redeemer_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.redeemer_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.redeemer_from_bytes(r,_);return er.__wrap(a)}tag(){var t=e.redeemer_tag(this.ptr);return ar.__wrap(t)}index(){var t=e.redeemer_index(this.ptr);return B.__wrap(t)}data(){var t=e.redeemer_data(this.ptr);return It.__wrap(t)}ex_units(){var t=e.redeemer_ex_units(this.ptr);return st.__wrap(t)}static new(t,r,_,a){S(t,ar),S(r,B),S(_,It),S(a,st);var n=e.redeemer_new(t.ptr,r.ptr,_.ptr,a.ptr);return er.__wrap(n)}}t.exports.Redeemer=er;class ar{static __wrap(t){const r=Object.create(ar.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_redeemertag_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.redeemertag_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.redeemertag_from_bytes(r,_);return ar.__wrap(a)}static new_spend(){var t=e.redeemertag_new_spend();return ar.__wrap(t)}static new_mint(){var t=e.redeemertag_new_mint();return ar.__wrap(t)}static new_cert(){var t=e.redeemertag_new_cert();return ar.__wrap(t)}static new_reward(){var t=e.redeemertag_new_reward();return ar.__wrap(t)}kind(){return e.redeemertag_kind(this.ptr)>>>0}}t.exports.RedeemerTag=ar;class nr{static __wrap(t){const r=Object.create(nr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_redeemers_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.redeemers_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.redeemers_from_bytes(r,_);return nr.__wrap(a)}static new(){var t=e.redeemers_new();return nr.__wrap(t)}len(){return e.redeemers_len(this.ptr)>>>0}get(t){var r=e.redeemers_get(this.ptr,t);return er.__wrap(r)}add(t){S(t,er),e.redeemers_add(this.ptr,t.ptr)}}t.exports.Redeemers=nr;class sr{static __wrap(t){const r=Object.create(sr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_relay_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.relay_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.relay_from_bytes(r,_);return sr.__wrap(a)}static new_single_host_addr(t){S(t,hr);var r=e.relay_new_single_host_addr(t.ptr);return sr.__wrap(r)}static new_single_host_name(t){S(t,gr);var r=e.relay_new_single_host_name(t.ptr);return sr.__wrap(r)}static new_multi_host_name(t){S(t,At);var r=e.relay_new_multi_host_name(t.ptr);return sr.__wrap(r)}kind(){return e.relay_kind(this.ptr)>>>0}as_single_host_addr(){var t=e.relay_as_single_host_addr(this.ptr);return 0===t?void 0:hr.__wrap(t)}as_single_host_name(){var t=e.relay_as_single_host_name(this.ptr);return 0===t?void 0:gr.__wrap(t)}as_multi_host_name(){var t=e.relay_as_multi_host_name(this.ptr);return 0===t?void 0:At.__wrap(t)}}t.exports.Relay=sr;class ir{static __wrap(t){const r=Object.create(ir.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_relays_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.relays_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.relays_from_bytes(r,_);return ir.__wrap(a)}static new(){var t=e.relays_new();return ir.__wrap(t)}len(){return e.relays_len(this.ptr)>>>0}get(t){var r=e.relays_get(this.ptr,t);return sr.__wrap(r)}add(t){S(t,sr),e.relays_add(this.ptr,t.ptr)}}t.exports.Relays=ir;class or{static __wrap(t){const r=Object.create(or.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_rewardaddress_free(t)}static new(t,r){S(r,vr);var _=e.rewardaddress_new(t,r.ptr);return or.__wrap(_)}payment_cred(){var t=e.rewardaddress_payment_cred(this.ptr);return vr.__wrap(t)}to_address(){var t=e.rewardaddress_to_address(this.ptr);return M.__wrap(t)}static from_address(t){S(t,M);var r=e.rewardaddress_from_address(t.ptr);return 0===r?void 0:or.__wrap(r)}}t.exports.RewardAddress=or;class pr{static __wrap(t){const r=Object.create(pr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_rewardaddresses_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.rewardaddresses_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.rewardaddresses_from_bytes(r,_);return pr.__wrap(a)}static new(){var t=e.rewardaddresses_new();return pr.__wrap(t)}len(){return e.rewardaddresses_len(this.ptr)>>>0}get(t){var r=e.rewardaddresses_get(this.ptr,t);return or.__wrap(r)}add(t){S(t,or),e.rewardaddresses_add(this.ptr,t.ptr)}}t.exports.RewardAddresses=pr;class cr{static __wrap(t){const r=Object.create(cr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scriptall_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scriptall_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.scriptall_from_bytes(r,_);return cr.__wrap(a)}native_scripts(){var t=e.scriptall_native_scripts(this.ptr);return Kt.__wrap(t)}static new(t){S(t,Kt);var r=e.scriptall_new(t.ptr);return cr.__wrap(r)}}t.exports.ScriptAll=cr;class dr{static __wrap(t){const r=Object.create(dr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scriptany_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scriptany_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.scriptany_from_bytes(r,_);return dr.__wrap(a)}native_scripts(){var t=e.scriptany_native_scripts(this.ptr);return Kt.__wrap(t)}static new(t){S(t,Kt);var r=e.scriptany_new(t.ptr);return dr.__wrap(r)}}t.exports.ScriptAny=dr;class wr{static __wrap(t){const r=Object.create(wr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scriptdatahash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scriptdatahash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.scriptdatahash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.scriptdatahash_from_bech32(r,_);return wr.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.scriptdatahash_from_bytes(r,_);return wr.__wrap(a)}}t.exports.ScriptDataHash=wr;class lr{static __wrap(t){const r=Object.create(lr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scripthash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scripthash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.scripthash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.scripthash_from_bech32(r,_);return lr.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.scripthash_from_bytes(r,_);return lr.__wrap(a)}}t.exports.ScriptHash=lr;class br{static __wrap(t){const r=Object.create(br.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scripthashes_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scripthashes_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.scripthashes_from_bytes(r,_);return br.__wrap(a)}static new(){var t=e.scripthashes_new();return br.__wrap(t)}len(){return e.scripthashes_len(this.ptr)>>>0}get(t){var r=e.scripthashes_get(this.ptr,t);return lr.__wrap(r)}add(t){S(t,lr),e.scripthashes_add(this.ptr,t.ptr)}}t.exports.ScriptHashes=br;class ur{static __wrap(t){const r=Object.create(ur.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scriptnofk_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scriptnofk_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.scriptnofk_from_bytes(r,_);return ur.__wrap(a)}n(){return e.scriptnofk_n(this.ptr)>>>0}native_scripts(){var t=e.scriptnofk_native_scripts(this.ptr);return Kt.__wrap(t)}static new(t,r){S(r,Kt);var _=e.scriptnofk_new(t,r.ptr);return ur.__wrap(_)}}t.exports.ScriptNOfK=ur;class yr{static __wrap(t){const r=Object.create(yr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_scriptpubkey_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.scriptpubkey_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.scriptpubkey_from_bytes(r,_);return yr.__wrap(a)}addr_keyhash(){var t=e.scriptpubkey_addr_keyhash(this.ptr);return rt.__wrap(t)}static new(t){S(t,rt);var r=e.scriptpubkey_new(t.ptr);return yr.__wrap(r)}}t.exports.ScriptPubkey=yr;class hr{static __wrap(t){const r=Object.create(hr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_singlehostaddr_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.singlehostaddr_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.singlehostaddr_from_bytes(r,_);return hr.__wrap(a)}port(){var t=e.singlehostaddr_port(this.ptr);return 16777215===t?void 0:t}ipv4(){var t=e.singlehostaddr_ipv4(this.ptr);return 0===t?void 0:ut.__wrap(t)}ipv6(){var t=e.singlehostaddr_ipv6(this.ptr);return 0===t?void 0:yt.__wrap(t)}static new(t,r,_){let a=0;f(r)||(S(r,ut),a=r.ptr,r.ptr=0);let n=0;f(_)||(S(_,yt),n=_.ptr,_.ptr=0);var s=e.singlehostaddr_new(f(t)?16777215:t,a,n);return hr.__wrap(s)}}t.exports.SingleHostAddr=hr;class gr{static __wrap(t){const r=Object.create(gr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_singlehostname_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.singlehostname_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.singlehostname_from_bytes(r,_);return gr.__wrap(a)}port(){var t=e.singlehostname_port(this.ptr);return 16777215===t?void 0:t}dns_name(){var t=e.singlehostname_dns_name(this.ptr);return Y.__wrap(t)}static new(t,r){S(r,Y);var _=e.singlehostname_new(f(t)?16777215:t,r.ptr);return gr.__wrap(_)}}t.exports.SingleHostName=gr;class vr{static __wrap(t){const r=Object.create(vr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_stakecredential_free(t)}static from_keyhash(t){S(t,rt);var r=e.stakecredential_from_keyhash(t.ptr);return vr.__wrap(r)}static from_scripthash(t){S(t,lr);var r=e.stakecredential_from_scripthash(t.ptr);return vr.__wrap(r)}to_keyhash(){var t=e.stakecredential_to_keyhash(this.ptr);return 0===t?void 0:rt.__wrap(t)}to_scripthash(){var t=e.stakecredential_to_scripthash(this.ptr);return 0===t?void 0:lr.__wrap(t)}kind(){return e.stakecredential_kind(this.ptr)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.stakecredential_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.stakecredential_from_bytes(r,_);return vr.__wrap(a)}}t.exports.StakeCredential=vr;class fr{static __wrap(t){const r=Object.create(fr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_stakecredentials_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.stakecredentials_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.stakecredentials_from_bytes(r,_);return fr.__wrap(a)}static new(){var t=e.stakecredentials_new();return fr.__wrap(t)}len(){return e.stakecredentials_len(this.ptr)>>>0}get(t){var r=e.stakecredentials_get(this.ptr,t);return vr.__wrap(r)}add(t){S(t,vr),e.stakecredentials_add(this.ptr,t.ptr)}}t.exports.StakeCredentials=fr;class mr{static __wrap(t){const r=Object.create(mr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_stakedelegation_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.stakedelegation_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.stakedelegation_from_bytes(r,_);return mr.__wrap(a)}stake_credential(){var t=e.stakedelegation_stake_credential(this.ptr);return vr.__wrap(t)}pool_keyhash(){var t=e.stakedelegation_pool_keyhash(this.ptr);return rt.__wrap(t)}static new(t,r){S(t,vr),S(r,rt);var _=e.stakedelegation_new(t.ptr,r.ptr);return mr.__wrap(_)}}t.exports.StakeDelegation=mr;class kr{static __wrap(t){const r=Object.create(kr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_stakederegistration_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.stakederegistration_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.stakederegistration_from_bytes(r,_);return kr.__wrap(a)}stake_credential(){var t=e.stakederegistration_stake_credential(this.ptr);return vr.__wrap(t)}static new(t){S(t,vr);var r=e.stakederegistration_new(t.ptr);return kr.__wrap(r)}}t.exports.StakeDeregistration=kr;class xr{static __wrap(t){const r=Object.create(xr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_stakeregistration_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.stakeregistration_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.stakeregistration_from_bytes(r,_);return xr.__wrap(a)}stake_credential(){var t=e.stakeregistration_stake_credential(this.ptr);return vr.__wrap(t)}static new(t){S(t,vr);var r=e.stakeregistration_new(t.ptr);return xr.__wrap(r)}}t.exports.StakeRegistration=xr;class Or{static __wrap(t){const r=Object.create(Or.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_strings_free(t)}static new(){var t=e.strings_new();return Or.__wrap(t)}len(){return e.strings_len(this.ptr)>>>0}get(t){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.strings_get(a,this.ptr,t);var r=k()[a/4+0],_=k()[a/4+1];return b(r,_)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(r,_)}}add(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.strings_add(this.ptr,r,_)}}t.exports.Strings=Or;class jr{static __wrap(t){const r=Object.create(jr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_timelockexpiry_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.timelockexpiry_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.timelockexpiry_from_bytes(r,_);return jr.__wrap(a)}slot(){return e.timelockexpiry_slot(this.ptr)>>>0}static new(t){var r=e.timelockexpiry_new(t);return jr.__wrap(r)}}t.exports.TimelockExpiry=jr;class Sr{static __wrap(t){const r=Object.create(Sr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_timelockstart_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.timelockstart_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.timelockstart_from_bytes(r,_);return Sr.__wrap(a)}slot(){return e.timelockstart_slot(this.ptr)>>>0}static new(t){var r=e.timelockstart_new(t);return Sr.__wrap(r)}}t.exports.TimelockStart=Sr;class Pr{static __wrap(t){const r=Object.create(Pr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transaction_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transaction_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transaction_from_bytes(r,_);return Pr.__wrap(a)}body(){var t=e.transaction_body(this.ptr);return zr.__wrap(t)}witness_set(){var t=e.transaction_witness_set(this.ptr);return Br.__wrap(t)}is_valid(){return 0!==e.transaction_is_valid(this.ptr)}auxiliary_data(){var t=e.transaction_auxiliary_data(this.ptr);return 0===t?void 0:C.__wrap(t)}set_is_valid(t){e.transaction_set_is_valid(this.ptr,t)}static new(t,r,_){S(t,zr),S(r,Br);let a=0;f(_)||(S(_,C),a=_.ptr,_.ptr=0);var n=e.transaction_new(t.ptr,r.ptr,a);return Pr.__wrap(n)}}t.exports.Transaction=Pr;class Rr{static __wrap(t){const r=Object.create(Rr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionbodies_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionbodies_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionbodies_from_bytes(r,_);return Rr.__wrap(a)}static new(){var t=e.transactionbodies_new();return Rr.__wrap(t)}len(){return e.transactionbodies_len(this.ptr)>>>0}get(t){var r=e.transactionbodies_get(this.ptr,t);return zr.__wrap(r)}add(t){S(t,zr),e.transactionbodies_add(this.ptr,t.ptr)}}t.exports.TransactionBodies=Rr;class zr{static __wrap(t){const r=Object.create(zr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionbody_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionbody_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionbody_from_bytes(r,_);return zr.__wrap(a)}inputs(){var t=e.transactionbody_inputs(this.ptr);return Kr.__wrap(t)}outputs(){var t=e.transactionbody_outputs(this.ptr);return Hr.__wrap(t)}fee(){var t=e.transactionbody_fee(this.ptr);return B.__wrap(t)}ttl(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.transactionbody_ttl(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_certs(t){S(t,W),e.transactionbody_set_certs(this.ptr,t.ptr)}certs(){var t=e.transactionbody_certs(this.ptr);return 0===t?void 0:W.__wrap(t)}set_withdrawals(t){S(t,Yr),e.transactionbody_set_withdrawals(this.ptr,t.ptr)}withdrawals(){var t=e.transactionbody_withdrawals(this.ptr);return 0===t?void 0:Yr.__wrap(t)}set_update(t){S(t,qr),e.transactionbody_set_update(this.ptr,t.ptr)}update(){var t=e.transactionbody_update(this.ptr);return 0===t?void 0:qr.__wrap(t)}set_auxiliary_data_hash(t){S(t,N),e.transactionbody_set_auxiliary_data_hash(this.ptr,t.ptr)}auxiliary_data_hash(){var t=e.transactionbody_auxiliary_data_hash(this.ptr);return 0===t?void 0:N.__wrap(t)}set_validity_start_interval(t){e.transactionbody_set_validity_start_interval(this.ptr,t)}validity_start_interval(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.transactionbody_validity_start_interval(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return 0===t?void 0:r>>>0}finally{e.__wbindgen_add_to_stack_pointer(16)}}set_mint(t){S(t,St),e.transactionbody_set_mint(this.ptr,t.ptr)}multiassets(){var t=e.transactionbody_multiassets(this.ptr);return 0===t?void 0:St.__wrap(t)}set_script_data_hash(t){S(t,wr),e.transactionbody_set_script_data_hash(this.ptr,t.ptr)}script_data_hash(){var t=e.transactionbody_script_data_hash(this.ptr);return 0===t?void 0:wr.__wrap(t)}set_collateral(t){S(t,Kr),e.transactionbody_set_collateral(this.ptr,t.ptr)}collateral(){var t=e.transactionbody_collateral(this.ptr);return 0===t?void 0:Kr.__wrap(t)}set_required_signers(t){S(t,_t),e.transactionbody_set_required_signers(this.ptr,t.ptr)}required_signers(){var t=e.transactionbody_required_signers(this.ptr);return 0===t?void 0:_t.__wrap(t)}set_network_id(t){S(t,Ct),e.transactionbody_set_network_id(this.ptr,t.ptr)}network_id(){var t=e.transactionbody_network_id(this.ptr);return 0===t?void 0:Ct.__wrap(t)}static new(t,r,_,a){S(t,Kr),S(r,Hr),S(_,B);var n=e.transactionbody_new(t.ptr,r.ptr,_.ptr,!f(a),f(a)?0:a);return zr.__wrap(n)}}t.exports.TransactionBody=zr;class Mr{static __wrap(t){const r=Object.create(Mr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionbuilder_free(t)}add_key_input(t,r,_){S(t,rt),S(r,Tr),S(_,Gr),e.transactionbuilder_add_key_input(this.ptr,t.ptr,r.ptr,_.ptr)}add_script_input(t,r,_){S(t,lr),S(r,Tr),S(_,Gr),e.transactionbuilder_add_script_input(this.ptr,t.ptr,r.ptr,_.ptr)}add_bootstrap_input(t,r,_){S(t,$),S(r,Tr),S(_,Gr),e.transactionbuilder_add_bootstrap_input(this.ptr,t.ptr,r.ptr,_.ptr)}add_input(t,r,_){S(t,M),S(r,Tr),S(_,Gr),e.transactionbuilder_add_input(this.ptr,t.ptr,r.ptr,_.ptr)}fee_for_input(t,r,_){S(t,M),S(r,Tr),S(_,Gr);var a=e.transactionbuilder_fee_for_input(this.ptr,t.ptr,r.ptr,_.ptr);return B.__wrap(a)}add_output(t){S(t,Dr),e.transactionbuilder_add_output(this.ptr,t.ptr)}fee_for_output(t){S(t,Dr);var r=e.transactionbuilder_fee_for_output(this.ptr,t.ptr);return B.__wrap(r)}set_fee(t){S(t,B),e.transactionbuilder_set_fee(this.ptr,t.ptr)}set_ttl(t){e.transactionbuilder_set_ttl(this.ptr,t)}set_validity_start_interval(t){e.transactionbuilder_set_validity_start_interval(this.ptr,t)}set_certs(t){S(t,W),e.transactionbuilder_set_certs(this.ptr,t.ptr)}set_withdrawals(t){S(t,Yr),e.transactionbuilder_set_withdrawals(this.ptr,t.ptr)}set_auxiliary_data(t){S(t,C),e.transactionbuilder_set_auxiliary_data(this.ptr,t.ptr)}static new(t,r,_,a,n,s){S(t,kt),S(r,B),S(_,B),S(a,B);var i=e.transactionbuilder_new(t.ptr,r.ptr,_.ptr,a.ptr,n,s);return Mr.__wrap(i)}get_explicit_input(){var t=e.transactionbuilder_get_explicit_input(this.ptr);return Gr.__wrap(t)}get_implicit_input(){var t=e.transactionbuilder_get_implicit_input(this.ptr);return Gr.__wrap(t)}get_explicit_output(){var t=e.transactionbuilder_get_explicit_output(this.ptr);return Gr.__wrap(t)}get_deposit(){var t=e.transactionbuilder_get_deposit(this.ptr);return B.__wrap(t)}get_fee_if_set(){var t=e.transactionbuilder_get_fee_if_set(this.ptr);return 0===t?void 0:B.__wrap(t)}add_change_if_needed(t){return S(t,M),0!==e.transactionbuilder_add_change_if_needed(this.ptr,t.ptr)}full_size(){return e.transactionbuilder_full_size(this.ptr)>>>0}output_sizes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionbuilder_output_sizes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=z(t,r).slice();return e.__wbindgen_free(t,4*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}build(){var t=e.transactionbuilder_build(this.ptr);return zr.__wrap(t)}min_fee(){var t=e.transactionbuilder_min_fee(this.ptr);return B.__wrap(t)}}t.exports.TransactionBuilder=Mr;class Ar{static __wrap(t){const r=Object.create(Ar.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionhash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionhash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.transactionhash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.transactionhash_from_bech32(r,_);return Ar.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionhash_from_bytes(r,_);return Ar.__wrap(a)}}t.exports.TransactionHash=Ar;class Tr{static __wrap(t){const r=Object.create(Tr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactioninput_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactioninput_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactioninput_from_bytes(r,_);return Tr.__wrap(a)}transaction_id(){var t=e.transactioninput_transaction_id(this.ptr);return Ar.__wrap(t)}index(){return e.transactioninput_index(this.ptr)>>>0}static new(t,r){S(t,Ar);var _=e.transactioninput_new(t.ptr,r);return Tr.__wrap(_)}}t.exports.TransactionInput=Tr;class Kr{static __wrap(t){const r=Object.create(Kr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactioninputs_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactioninputs_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactioninputs_from_bytes(r,_);return Kr.__wrap(a)}static new(){var t=e.transactioninputs_new();return Kr.__wrap(t)}len(){return e.transactioninputs_len(this.ptr)>>>0}get(t){var r=e.transactioninputs_get(this.ptr,t);return Tr.__wrap(r)}add(t){S(t,Tr),e.transactioninputs_add(this.ptr,t.ptr)}}t.exports.TransactionInputs=Kr;class Cr{static __wrap(t){const r=Object.create(Cr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionmetadatum_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionmetadatum_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionmetadatum_from_bytes(r,_);return Cr.__wrap(a)}static new_map(t){S(t,jt);var r=e.transactionmetadatum_new_map(t.ptr);return Cr.__wrap(r)}static new_list(t){S(t,Ot);var r=e.transactionmetadatum_new_list(t.ptr);return Cr.__wrap(r)}static new_int(t){S(t,bt);var r=e.transactionmetadatum_new_int(t.ptr);return Cr.__wrap(r)}static new_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionmetadatum_new_bytes(r,_);return Cr.__wrap(a)}static new_text(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.transactionmetadatum_new_text(r,_);return Cr.__wrap(a)}kind(){return e.transactionmetadatum_kind(this.ptr)>>>0}as_map(){var t=e.transactionmetadatum_as_map(this.ptr);return jt.__wrap(t)}as_list(){var t=e.transactionmetadatum_as_list(this.ptr);return Ot.__wrap(t)}as_int(){var t=e.transactionmetadatum_as_int(this.ptr);return bt.__wrap(t)}as_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionmetadatum_as_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}as_text(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.transactionmetadatum_as_text(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}}t.exports.TransactionMetadatum=Cr;class Nr{static __wrap(t){const r=Object.create(Nr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionmetadatumlabels_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionmetadatumlabels_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionmetadatumlabels_from_bytes(r,_);return Nr.__wrap(a)}static new(){var t=e.transactionmetadatumlabels_new();return Nr.__wrap(t)}len(){return e.transactionmetadatumlabels_len(this.ptr)>>>0}get(t){var r=e.transactionmetadatumlabels_get(this.ptr,t);return B.__wrap(r)}add(t){S(t,B),e.transactionmetadatumlabels_add(this.ptr,t.ptr)}}t.exports.TransactionMetadatumLabels=Nr;class Dr{static __wrap(t){const r=Object.create(Dr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionoutput_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionoutput_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionoutput_from_bytes(r,_);return Dr.__wrap(a)}address(){var t=e.transactionoutput_address(this.ptr);return M.__wrap(t)}amount(){var t=e.transactionoutput_amount(this.ptr);return Gr.__wrap(t)}data_hash(){var t=e.transactionoutput_data_hash(this.ptr);return 0===t?void 0:tt.__wrap(t)}set_data_hash(t){S(t,tt),e.transactionoutput_set_data_hash(this.ptr,t.ptr)}static new(t,r){S(t,M),S(r,Gr);var _=e.transactionoutput_new(t.ptr,r.ptr);return Dr.__wrap(_)}}t.exports.TransactionOutput=Dr;class Hr{static __wrap(t){const r=Object.create(Hr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionoutputs_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionoutputs_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionoutputs_from_bytes(r,_);return Hr.__wrap(a)}static new(){var t=e.transactionoutputs_new();return Hr.__wrap(t)}len(){return e.transactionoutputs_len(this.ptr)>>>0}get(t){var r=e.transactionoutputs_get(this.ptr,t);return Dr.__wrap(r)}add(t){S(t,Dr),e.transactionoutputs_add(this.ptr,t.ptr)}}t.exports.TransactionOutputs=Hr;class Ir{static __wrap(t){const r=Object.create(Ir.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionunspentoutput_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionunspentoutput_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionunspentoutput_from_bytes(r,_);return Ir.__wrap(a)}static new(t,r){S(t,Tr),S(r,Dr);var _=e.transactionunspentoutput_new(t.ptr,r.ptr);return Ir.__wrap(_)}input(){var t=e.transactionunspentoutput_input(this.ptr);return Tr.__wrap(t)}output(){var t=e.transactionunspentoutput_output(this.ptr);return Dr.__wrap(t)}}t.exports.TransactionUnspentOutput=Ir;class Br{static __wrap(t){const r=Object.create(Br.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionwitnessset_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionwitnessset_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionwitnessset_from_bytes(r,_);return Br.__wrap(a)}set_vkeys(t){S(t,Xr),e.transactionwitnessset_set_vkeys(this.ptr,t.ptr)}vkeys(){var t=e.transactionwitnessset_vkeys(this.ptr);return 0===t?void 0:Xr.__wrap(t)}set_native_scripts(t){S(t,Kt),e.transactionwitnessset_set_native_scripts(this.ptr,t.ptr)}native_scripts(){var t=e.transactionwitnessset_native_scripts(this.ptr);return 0===t?void 0:Kt.__wrap(t)}set_bootstraps(t){S(t,U),e.transactionwitnessset_set_bootstraps(this.ptr,t.ptr)}bootstraps(){var t=e.transactionwitnessset_bootstraps(this.ptr);return 0===t?void 0:U.__wrap(t)}set_plutus_scripts(t){S(t,Lt),e.transactionwitnessset_set_plutus_scripts(this.ptr,t.ptr)}plutus_scripts(){var t=e.transactionwitnessset_plutus_scripts(this.ptr);return 0===t?void 0:Lt.__wrap(t)}set_plutus_data(t){S(t,Bt),e.transactionwitnessset_set_plutus_data(this.ptr,t.ptr)}plutus_data(){var t=e.transactionwitnessset_plutus_data(this.ptr);return 0===t?void 0:Bt.__wrap(t)}set_redeemers(t){S(t,nr),e.transactionwitnessset_set_redeemers(this.ptr,t.ptr)}redeemers(){var t=e.transactionwitnessset_redeemers(this.ptr);return 0===t?void 0:nr.__wrap(t)}static new(){var t=e.transactionwitnessset_new();return Br.__wrap(t)}}t.exports.TransactionWitnessSet=Br;class Vr{static __wrap(t){const r=Object.create(Vr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_transactionwitnesssets_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.transactionwitnesssets_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.transactionwitnesssets_from_bytes(r,_);return Vr.__wrap(a)}static new(){var t=e.transactionwitnesssets_new();return Vr.__wrap(t)}len(){return e.transactionwitnesssets_len(this.ptr)>>>0}get(t){var r=e.transactionwitnesssets_get(this.ptr,t);return Br.__wrap(r)}add(t){S(t,Br),e.transactionwitnesssets_add(this.ptr,t.ptr)}}t.exports.TransactionWitnessSets=Vr;class Er{static __wrap(t){const r=Object.create(Er.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_url_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.url_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.url_from_bytes(r,_);return Er.__wrap(a)}static new(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.url_new(r,_);return Er.__wrap(a)}url(){try{const _=e.__wbindgen_add_to_stack_pointer(-16);e.url_url(_,this.ptr);var t=k()[_/4+0],r=k()[_/4+1];return b(t,r)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(t,r)}}}t.exports.URL=Er;class Lr{static __wrap(t){const r=Object.create(Lr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_unitinterval_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.unitinterval_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.unitinterval_from_bytes(r,_);return Lr.__wrap(a)}numerator(){var t=e.unitinterval_numerator(this.ptr);return B.__wrap(t)}denominator(){var t=e.unitinterval_denominator(this.ptr);return B.__wrap(t)}static new(t,r){S(t,B),S(r,B);var _=e.unitinterval_new(t.ptr,r.ptr);return Lr.__wrap(_)}}t.exports.UnitInterval=Lr;class qr{static __wrap(t){const r=Object.create(qr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_update_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.update_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.update_from_bytes(r,_);return qr.__wrap(a)}proposed_protocol_parameter_updates(){var t=e.update_proposed_protocol_parameter_updates(this.ptr);return Xt.__wrap(t)}epoch(){return e.update_epoch(this.ptr)>>>0}static new(t,r){S(t,Xt);var _=e.update_new(t.ptr,r);return qr.__wrap(_)}}t.exports.Update=qr;class Fr{static __wrap(t){const r=Object.create(Fr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vrfcert_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vrfcert_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.vrfcert_from_bytes(r,_);return Fr.__wrap(a)}output(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vrfcert_output(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}proof(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vrfcert_proof(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static new(t,r){var _=j(t,e.__wbindgen_malloc),a=y,n=j(r,e.__wbindgen_malloc),s=y,i=e.vrfcert_new(_,a,n,s);return Fr.__wrap(i)}}t.exports.VRFCert=Fr;class Ur{static __wrap(t){const r=Object.create(Ur.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vrfkeyhash_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vrfkeyhash_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.vrfkeyhash_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.vrfkeyhash_from_bech32(r,_);return Ur.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.vrfkeyhash_from_bytes(r,_);return Ur.__wrap(a)}}t.exports.VRFKeyHash=Ur;class $r{static __wrap(t){const r=Object.create($r.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vrfvkey_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vrfvkey_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const s=e.__wbindgen_add_to_stack_pointer(-16);var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y;e.vrfvkey_to_bech32(s,this.ptr,r,_);var a=k()[s/4+0],n=k()[s/4+1];return b(a,n)}finally{e.__wbindgen_add_to_stack_pointer(16),e.__wbindgen_free(a,n)}}static from_bech32(t){var r=v(t,e.__wbindgen_malloc,e.__wbindgen_realloc),_=y,a=e.vrfvkey_from_bech32(r,_);return $r.__wrap(a)}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.vrfvkey_from_bytes(r,_);return $r.__wrap(a)}}t.exports.VRFVKey=$r;class Gr{static __wrap(t){const r=Object.create(Gr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_value_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.value_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.value_from_bytes(r,_);return Gr.__wrap(a)}static new(t){S(t,B);var r=e.value_new(t.ptr);return Gr.__wrap(r)}coin(){var t=e.value_coin(this.ptr);return B.__wrap(t)}set_coin(t){S(t,B),e.value_set_coin(this.ptr,t.ptr)}multiasset(){var t=e.value_multiasset(this.ptr);return 0===t?void 0:Mt.__wrap(t)}set_multiasset(t){S(t,Mt),e.value_set_multiasset(this.ptr,t.ptr)}checked_add(t){S(t,Gr);var r=e.value_checked_add(this.ptr,t.ptr);return Gr.__wrap(r)}checked_sub(t){S(t,Gr);var r=e.value_checked_sub(this.ptr,t.ptr);return Gr.__wrap(r)}clamped_sub(t){S(t,Gr);var r=e.value_clamped_sub(this.ptr,t.ptr);return Gr.__wrap(r)}compare(t){S(t,Gr);var r=e.value_compare(this.ptr,t.ptr);return 16777215===r?void 0:r}}t.exports.Value=Gr;class Wr{static __wrap(t){const r=Object.create(Wr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vkey_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vkey_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.vkey_from_bytes(r,_);return Wr.__wrap(a)}static new(t){S(t,rr);var r=e.vkey_new(t.ptr);return Wr.__wrap(r)}public_key(){var t=e.vkey_public_key(this.ptr);return rr.__wrap(t)}}t.exports.Vkey=Wr;class Jr{static __wrap(t){const r=Object.create(Jr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vkeys_free(t)}static new(){var t=e.vkeys_new();return Jr.__wrap(t)}len(){return e.vkeys_len(this.ptr)>>>0}get(t){var r=e.vkeys_get(this.ptr,t);return Wr.__wrap(r)}add(t){S(t,Wr),e.vkeys_add(this.ptr,t.ptr)}}t.exports.Vkeys=Jr;class Qr{static __wrap(t){const r=Object.create(Qr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vkeywitness_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.vkeywitness_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.vkeywitness_from_bytes(r,_);return Qr.__wrap(a)}static new(t,r){S(t,Wr),S(r,et);var _=e.vkeywitness_new(t.ptr,r.ptr);return Qr.__wrap(_)}vkey(){var t=e.vkeywitness_vkey(this.ptr);return Wr.__wrap(t)}signature(){var t=e.vkeywitness_signature(this.ptr);return et.__wrap(t)}}t.exports.Vkeywitness=Qr;class Xr{static __wrap(t){const r=Object.create(Xr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_vkeywitnesses_free(t)}static new(){var t=e.vkeywitnesses_new();return Xr.__wrap(t)}len(){return e.vkeywitnesses_len(this.ptr)>>>0}get(t){var r=e.vkeywitnesses_get(this.ptr,t);return Qr.__wrap(r)}add(t){S(t,Qr),e.vkeywitnesses_add(this.ptr,t.ptr)}}t.exports.Vkeywitnesses=Xr;class Yr{static __wrap(t){const r=Object.create(Yr.prototype);return r.ptr=t,r}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t}free(){const t=this.__destroy_into_raw();e.__wbg_withdrawals_free(t)}to_bytes(){try{const a=e.__wbindgen_add_to_stack_pointer(-16);e.withdrawals_to_bytes(a,this.ptr);var t=k()[a/4+0],r=k()[a/4+1],_=O(t,r).slice();return e.__wbindgen_free(t,1*r),_}finally{e.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){var r=j(t,e.__wbindgen_malloc),_=y,a=e.withdrawals_from_bytes(r,_);return Yr.__wrap(a)}static new(){var t=e.withdrawals_new();return Yr.__wrap(t)}len(){return e.withdrawals_len(this.ptr)>>>0}insert(t,r){S(t,or),S(r,B);var _=e.withdrawals_insert(this.ptr,t.ptr,r.ptr);return 0===_?void 0:B.__wrap(_)}get(t){S(t,or);var r=e.withdrawals_get(this.ptr,t.ptr);return 0===r?void 0:B.__wrap(r)}keys(){var t=e.withdrawals_keys(this.ptr);return pr.__wrap(t)}}t.exports.Withdrawals=Yr,t.exports.__wbindgen_object_drop_ref=function(t){c(t)},t.exports.__wbindgen_string_new=function(t,r){return u(b(t,r))},t.exports.__wbg_new_3a746f2619705add=function(t,r){return u(new Function(b(t,r)))},t.exports.__wbg_call_f54d3a6dadb199ca=function(t,r){return u(o(t).call(o(r)))},t.exports.__wbindgen_jsval_eq=function(t,r){return o(t)===o(r)},t.exports.__wbg_self_ac379e780a0d8b94=function(t){return u(o(t).self)},t.exports.__wbg_crypto_1e4302b85d4f64a2=function(t){return u(o(t).crypto)},t.exports.__wbindgen_is_undefined=function(t){return void 0===o(t)},t.exports.__wbg_getRandomValues_1b4ba144162a5c9e=function(t){return u(o(t).getRandomValues)},t.exports.__wbg_require_6461b1e9a0d7c34a=function(t,r){return u(_(472)(b(t,r)))},t.exports.__wbg_randomFillSync_1b52c8482374c55b=function(t,r,_){o(t).randomFillSync(O(r,_))},t.exports.__wbg_getRandomValues_1ef11e888e5228e9=function(t,r,_){o(t).getRandomValues(O(r,_))},t.exports.__wbindgen_string_get=function(t,r){const _=o(r);var a="string"==typeof _?_:void 0,n=f(a)?0:v(a,e.__wbindgen_malloc,e.__wbindgen_realloc),s=y;k()[t/4+1]=s,k()[t/4+0]=n},t.exports.__wbindgen_debug_string=function(t,r){var _=v(x(o(r)),e.__wbindgen_malloc,e.__wbindgen_realloc),a=y;k()[t/4+1]=a,k()[t/4+0]=_},t.exports.__wbindgen_throw=function(t,r){throw new Error(b(t,r))},t.exports.__wbindgen_rethrow=function(t){throw c(t)};const Zr=_(921).join("/","cardano_serialization_lib_bg.wasm"),t_=_(412).readFileSync(Zr),r_=new WebAssembly.Module(t_),__=new WebAssembly.Instance(r_,a);e=__.exports,t.exports.__wasm=e}}]);