import { _ as K_ } from "./__vite-plugin-wasm-helper-D7K_KhUE.js";
let Us, h, D, $, k, Ks, u, Gs, N, q, Y, W, P, A, I, e_, r_, S, z, O, Ns, $s, n_, R, f, F, Ws, Ps, y, Es, x, H, v, B, Ms, U, E, Xs, M, W_, Q_, Y_, J_, L_;
let __tla = (async ()=>{
    const $_ = "/assets/cardano_message_signing_bg-CvS6lc7Q.wasm";
    let t;
    W_ = function(a) {
        t = a;
    };
    const j = new Array(128).fill(void 0);
    j.push(void 0, null, !0, !1);
    function U_(a) {
        return j[a];
    }
    let G = j.length;
    function P_(a) {
        a < 132 || (j[a] = G, G = a);
    }
    function l(a) {
        const _ = U_(a);
        return P_(a), _;
    }
    const M_ = typeof TextDecoder > "u" ? (0, module.require)("util").TextDecoder : TextDecoder;
    let E_ = new M_("utf-8", {
        ignoreBOM: !0,
        fatal: !0
    });
    E_.decode();
    let L = null;
    function K() {
        return (L === null || L.byteLength === 0) && (L = new Uint8Array(t.memory.buffer)), L;
    }
    function X(a, _) {
        return a = a >>> 0, E_.decode(K().subarray(a, a + _));
    }
    function X_(a) {
        G === j.length && j.push(j.length + 1);
        const _ = G;
        return G = j[_], j[_] = a, _;
    }
    function t_(a) {
        const _ = typeof a;
        if (_ == "number" || _ == "boolean" || a == null) return `${a}`;
        if (_ == "string") return `"${a}"`;
        if (_ == "symbol") {
            const r = a.description;
            return r == null ? "Symbol" : `Symbol(${r})`;
        }
        if (_ == "function") {
            const r = a.name;
            return typeof r == "string" && r.length > 0 ? `Function(${r})` : "Function";
        }
        if (Array.isArray(a)) {
            const r = a.length;
            let o = "[";
            r > 0 && (o += t_(a[0]));
            for(let c = 1; c < r; c++)o += ", " + t_(a[c]);
            return o += "]", o;
        }
        const e = /\[object ([^\]]+)\]/.exec(toString.call(a));
        let n;
        if (e.length > 1) n = e[1];
        else return toString.call(a);
        if (n == "Object") try {
            return "Object(" + JSON.stringify(a) + ")";
        } catch  {
            return "Object";
        }
        return a instanceof Error ? `${a.name}: ${a.message}
${a.stack}` : n;
    }
    let d = 0;
    const G_ = typeof TextEncoder > "u" ? (0, module.require)("util").TextEncoder : TextEncoder;
    let V = new G_("utf-8");
    const N_ = typeof V.encodeInto == "function" ? function(a, _) {
        return V.encodeInto(a, _);
    } : function(a, _) {
        const e = V.encode(a);
        return _.set(e), {
            read: a.length,
            written: e.length
        };
    };
    function J(a, _, e) {
        if (e === void 0) {
            const b = V.encode(a), m = _(b.length, 1) >>> 0;
            return K().subarray(m, m + b.length).set(b), d = b.length, m;
        }
        let n = a.length, r = _(n, 1) >>> 0;
        const o = K();
        let c = 0;
        for(; c < n; c++){
            const b = a.charCodeAt(c);
            if (b > 127) break;
            o[r + c] = b;
        }
        if (c !== n) {
            c !== 0 && (a = a.slice(c)), r = e(r, n, n = c + a.length * 3, 1) >>> 0;
            const b = K().subarray(r + c, r + n), m = N_(a, b);
            c += m.written, r = e(r, n, c, 1) >>> 0;
        }
        return d = c, r;
    }
    let Z = null;
    function i() {
        return (Z === null || Z.byteLength === 0) && (Z = new Int32Array(t.memory.buffer)), Z;
    }
    function w(a, _) {
        return a = a >>> 0, K().subarray(a / 1, a / 1 + _);
    }
    function p(a, _) {
        const e = _(a.length * 1, 1) >>> 0;
        return K().set(a, e / 1), d = a.length, e;
    }
    function g(a, _) {
        if (!(a instanceof _)) throw new Error(`expected instance of ${_.name}`);
        return a.ptr;
    }
    function T(a) {
        return a == null;
    }
    let C = null;
    function q_() {
        return (C === null || C.byteLength === 0) && (C = new Float64Array(t.memory.buffer)), C;
    }
    let s_;
    Us = Object.freeze({
        EdDSA: 0,
        0: "EdDSA",
        ChaCha20Poly1305: 1,
        1: "ChaCha20Poly1305"
    });
    Es = Object.freeze({
        Int: 0,
        0: "Int",
        Text: 1,
        1: "Text"
    });
    Ks = Object.freeze({
        Bool: 0,
        0: "Bool",
        Float: 1,
        1: "Float",
        Unassigned: 2,
        2: "Unassigned",
        Break: 3,
        3: "Break",
        Undefined: 4,
        4: "Undefined",
        Null: 5,
        5: "Null"
    });
    $s = Object.freeze({
        CRV: 0,
        0: "CRV",
        X: 1,
        1: "X",
        Y: 2,
        2: "Y",
        D: 3,
        3: "D"
    });
    Ws = Object.freeze({
        Sign: 0,
        0: "Sign",
        Verify: 1,
        1: "Verify",
        Encrypt: 2,
        2: "Encrypt",
        Decrypt: 3,
        3: "Decrypt",
        WrapKey: 4,
        4: "WrapKey",
        UnwrapKey: 5,
        5: "UnwrapKey",
        DeriveKey: 6,
        6: "DeriveKey",
        DeriveBits: 7,
        7: "DeriveBits"
    });
    Ps = Object.freeze({
        OKP: 0,
        0: "OKP",
        EC2: 1,
        1: "EC2",
        Symmetric: 2,
        2: "Symmetric"
    });
    Ms = Object.freeze({
        Signature: 0,
        0: "Signature",
        Signature1: 1,
        1: "Signature1",
        CounterSignature: 2,
        2: "CounterSignature"
    });
    Xs = Object.freeze({
        COSESIGN: 0,
        0: "COSESIGN",
        COSESIGN1: 1,
        1: "COSESIGN1"
    });
    Gs = Object.freeze({
        Int: 0,
        0: "Int",
        Bytes: 1,
        1: "Bytes",
        Text: 2,
        2: "Text",
        Array: 3,
        3: "Array",
        Object: 4,
        4: "Object",
        TaggedCBOR: 5,
        5: "TaggedCBOR",
        Special: 6,
        6: "Special"
    });
    Ns = Object.freeze({
        P256: 0,
        0: "P256",
        P384: 1,
        1: "P384",
        P521: 2,
        2: "P521",
        X25519: 3,
        3: "X25519",
        X448: 4,
        4: "X448",
        Ed25519: 5,
        5: "Ed25519",
        Ed448: 6,
        6: "Ed448"
    });
    s_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_bignum_free(a >>> 0));
    h = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(h.prototype);
            return e.__wbg_ptr = _, s_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, s_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_bignum_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.bignum_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.bignum_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return h.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_str(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = J(_, t.__wbindgen_malloc, t.__wbindgen_realloc), b = d;
                t.bignum_from_str(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return h.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_str() {
            let _, e;
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16);
                t.bignum_to_str(o, this.__wbg_ptr);
                var n = i()[o / 4 + 0], r = i()[o / 4 + 1];
                return _ = n, e = r, X(n, r);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16), t.__wbindgen_free(_, e, 1);
            }
        }
        checked_mul(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16);
                g(_, h), t.bignum_checked_mul(o, this.__wbg_ptr, _.__wbg_ptr);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return h.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        checked_add(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16);
                g(_, h), t.bignum_checked_add(o, this.__wbg_ptr, _.__wbg_ptr);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return h.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        checked_sub(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16);
                g(_, h), t.bignum_checked_sub(o, this.__wbg_ptr, _.__wbg_ptr);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return h.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
    };
    const o_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cborarray_free(a >>> 0));
    D = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(D.prototype);
            return e.__wbg_ptr = _, o_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, o_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cborarray_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cborarray_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.cborarray_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return D.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new() {
            const _ = t.cborarray_new();
            return D.__wrap(_);
        }
        len() {
            return t.cborarray_len(this.__wbg_ptr) >>> 0;
        }
        get(_) {
            const e = t.cborarray_get(this.__wbg_ptr, _);
            return u.__wrap(e);
        }
        add(_) {
            g(_, u), t.cborarray_add(this.__wbg_ptr, _.__wbg_ptr);
        }
        set_definite_encoding(_) {
            t.cborarray_set_definite_encoding(this.__wbg_ptr, _);
        }
        is_definite() {
            return t.cborarray_is_definite(this.__wbg_ptr) !== 0;
        }
    };
    const i_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cborobject_free(a >>> 0));
    $ = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create($.prototype);
            return e.__wbg_ptr = _, i_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, i_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cborobject_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cborobject_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.cborobject_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return $.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new() {
            const _ = t.cborobject_new();
            return $.__wrap(_);
        }
        len() {
            return t.cborobject_len(this.__wbg_ptr) >>> 0;
        }
        insert(_, e) {
            g(_, u), g(e, u);
            const n = t.cborobject_insert(this.__wbg_ptr, _.__wbg_ptr, e.__wbg_ptr);
            return n === 0 ? void 0 : u.__wrap(n);
        }
        get(_) {
            g(_, u);
            const e = t.cborobject_get(this.__wbg_ptr, _.__wbg_ptr);
            return e === 0 ? void 0 : u.__wrap(e);
        }
        keys() {
            const _ = t.cborobject_keys(this.__wbg_ptr);
            return D.__wrap(_);
        }
        set_definite_encoding(_) {
            t.cborobject_set_definite_encoding(this.__wbg_ptr, _);
        }
        is_definite() {
            return t.cborobject_is_definite(this.__wbg_ptr) !== 0;
        }
    };
    const a_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cborspecial_free(a >>> 0));
    k = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(k.prototype);
            return e.__wbg_ptr = _, a_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, a_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cborspecial_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cborspecial_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.cborspecial_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return k.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_bool(_) {
            const e = t.cborspecial_new_bool(_);
            return k.__wrap(e);
        }
        static new_unassigned(_) {
            const e = t.cborspecial_new_unassigned(_);
            return k.__wrap(e);
        }
        static new_break() {
            const _ = t.cborspecial_new_break();
            return k.__wrap(_);
        }
        static new_null() {
            const _ = t.cborspecial_new_null();
            return k.__wrap(_);
        }
        static new_undefined() {
            const _ = t.cborspecial_new_undefined();
            return k.__wrap(_);
        }
        kind() {
            return t.cborspecial_kind(this.__wbg_ptr);
        }
        as_bool() {
            const _ = t.cborspecial_as_bool(this.__wbg_ptr);
            return _ === 16777215 ? void 0 : _ !== 0;
        }
        as_float() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.cborspecial_as_float(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = q_()[n / 8 + 1];
                return _ === 0 ? void 0 : e;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        as_unassigned() {
            const _ = t.cborspecial_as_unassigned(this.__wbg_ptr);
            return _ === 16777215 ? void 0 : _;
        }
    };
    const c_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cborvalue_free(a >>> 0));
    u = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(u.prototype);
            return e.__wbg_ptr = _, c_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, c_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cborvalue_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cborvalue_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.cborvalue_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return u.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_int(_) {
            g(_, F);
            const e = t.cborvalue_new_int(_.__wbg_ptr);
            return u.__wrap(e);
        }
        static new_bytes(_) {
            const e = p(_, t.__wbindgen_malloc), n = d, r = t.cborvalue_new_bytes(e, n);
            return u.__wrap(r);
        }
        static new_text(_) {
            const e = J(_, t.__wbindgen_malloc, t.__wbindgen_realloc), n = d, r = t.cborvalue_new_text(e, n);
            return u.__wrap(r);
        }
        static new_array(_) {
            g(_, D);
            const e = t.cborvalue_new_array(_.__wbg_ptr);
            return u.__wrap(e);
        }
        static new_object(_) {
            g(_, $);
            const e = t.cborvalue_new_object(_.__wbg_ptr);
            return u.__wrap(e);
        }
        static new_tagged(_) {
            g(_, M);
            const e = t.cborvalue_new_tagged(_.__wbg_ptr);
            return u.__wrap(e);
        }
        static new_special(_) {
            g(_, k);
            const e = t.cborvalue_new_special(_.__wbg_ptr);
            return u.__wrap(e);
        }
        static from_label(_) {
            g(_, y);
            const e = t.cborvalue_from_label(_.__wbg_ptr);
            return u.__wrap(e);
        }
        kind() {
            return t.cborvalue_kind(this.__wbg_ptr);
        }
        as_int() {
            const _ = t.cborvalue_as_int(this.__wbg_ptr);
            return _ === 0 ? void 0 : F.__wrap(_);
        }
        as_bytes() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.cborvalue_as_bytes(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        as_text() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.cborvalue_as_text(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = X(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        as_array() {
            const _ = t.cborvalue_as_array(this.__wbg_ptr);
            return _ === 0 ? void 0 : D.__wrap(_);
        }
        as_object() {
            const _ = t.cborvalue_as_object(this.__wbg_ptr);
            return _ === 0 ? void 0 : $.__wrap(_);
        }
        as_tagged() {
            const _ = t.cborvalue_as_tagged(this.__wbg_ptr);
            return _ === 0 ? void 0 : M.__wrap(_);
        }
        as_special() {
            const _ = t.cborvalue_as_special(this.__wbg_ptr);
            return _ === 0 ? void 0 : k.__wrap(_);
        }
    };
    const b_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_coseencrypt_free(a >>> 0));
    N = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(N.prototype);
            return e.__wbg_ptr = _, b_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, b_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_coseencrypt_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.coseencrypt_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.coseencrypt_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return N.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        headers() {
            const _ = t.coseencrypt0_headers(this.__wbg_ptr);
            return f.__wrap(_);
        }
        ciphertext() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.coseencrypt_ciphertext(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        recipients() {
            const _ = t.coseencrypt_recipients(this.__wbg_ptr);
            return P.__wrap(_);
        }
        static new(_, e, n) {
            g(_, f);
            var r = T(e) ? 0 : p(e, t.__wbindgen_malloc), o = d;
            g(n, P);
            const c = t.coseencrypt_new(_.__wbg_ptr, r, o, n.__wbg_ptr);
            return N.__wrap(c);
        }
    };
    const g_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_coseencrypt0_free(a >>> 0));
    q = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(q.prototype);
            return e.__wbg_ptr = _, g_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, g_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_coseencrypt0_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.coseencrypt0_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.coseencrypt0_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return q.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        headers() {
            const _ = t.coseencrypt0_headers(this.__wbg_ptr);
            return f.__wrap(_);
        }
        ciphertext() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.coseencrypt0_ciphertext(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(_, e) {
            g(_, f);
            var n = T(e) ? 0 : p(e, t.__wbindgen_malloc), r = d;
            const o = t.coseencrypt0_new(_.__wbg_ptr, n, r);
            return q.__wrap(o);
        }
    };
    const d_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cosekey_free(a >>> 0));
    Y = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(Y.prototype);
            return e.__wbg_ptr = _, d_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, d_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cosekey_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cosekey_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.cosekey_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return Y.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_key_type(_) {
            g(_, y), t.cosekey_set_key_type(this.__wbg_ptr, _.__wbg_ptr);
        }
        key_type() {
            const _ = t.cosekey_key_type(this.__wbg_ptr);
            return y.__wrap(_);
        }
        set_key_id(_) {
            const e = p(_, t.__wbindgen_malloc), n = d;
            t.cosekey_set_key_id(this.__wbg_ptr, e, n);
        }
        key_id() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.cosekey_key_id(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_algorithm_id(_) {
            g(_, y), t.cosekey_set_algorithm_id(this.__wbg_ptr, _.__wbg_ptr);
        }
        algorithm_id() {
            const _ = t.cosekey_algorithm_id(this.__wbg_ptr);
            return _ === 0 ? void 0 : y.__wrap(_);
        }
        set_key_ops(_) {
            g(_, x), t.cosekey_set_key_ops(this.__wbg_ptr, _.__wbg_ptr);
        }
        key_ops() {
            const _ = t.cosekey_key_ops(this.__wbg_ptr);
            return _ === 0 ? void 0 : x.__wrap(_);
        }
        set_base_init_vector(_) {
            const e = p(_, t.__wbindgen_malloc), n = d;
            t.cosekey_set_base_init_vector(this.__wbg_ptr, e, n);
        }
        base_init_vector() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.cosekey_base_init_vector(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        header(_) {
            g(_, y);
            const e = t.cosekey_header(this.__wbg_ptr, _.__wbg_ptr);
            return e === 0 ? void 0 : u.__wrap(e);
        }
        set_header(_, e) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16);
                g(_, y), g(e, u), t.cosekey_set_header(o, this.__wbg_ptr, _.__wbg_ptr, e.__wbg_ptr);
                var n = i()[o / 4 + 0], r = i()[o / 4 + 1];
                if (r) throw l(n);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(_) {
            g(_, y);
            const e = t.cosekey_new(_.__wbg_ptr);
            return Y.__wrap(e);
        }
    };
    const p_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_coserecipient_free(a >>> 0));
    W = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(W.prototype);
            return e.__wbg_ptr = _, p_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, p_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_coserecipient_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.coserecipient_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.coserecipient_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return W.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        headers() {
            const _ = t.coseencrypt0_headers(this.__wbg_ptr);
            return f.__wrap(_);
        }
        ciphertext() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.coseencrypt0_ciphertext(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(_, e) {
            g(_, f);
            var n = T(e) ? 0 : p(e, t.__wbindgen_malloc), r = d;
            const o = t.coseencrypt0_new(_.__wbg_ptr, n, r);
            return W.__wrap(o);
        }
    };
    const w_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_coserecipients_free(a >>> 0));
    P = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(P.prototype);
            return e.__wbg_ptr = _, w_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, w_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_coserecipients_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.coserecipients_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.coserecipients_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return P.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new() {
            const _ = t.coserecipients_new();
            return P.__wrap(_);
        }
        len() {
            return t.coserecipients_len(this.__wbg_ptr) >>> 0;
        }
        get(_) {
            const e = t.coserecipients_get(this.__wbg_ptr, _);
            return W.__wrap(e);
        }
        add(_) {
            g(_, W), t.coserecipients_add(this.__wbg_ptr, _.__wbg_ptr);
        }
    };
    const l_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cosesign_free(a >>> 0));
    A = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(A.prototype);
            return e.__wbg_ptr = _, l_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, l_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cosesign_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cosesign_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.cosesign_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return A.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        headers() {
            const _ = t.coseencrypt0_headers(this.__wbg_ptr);
            return f.__wrap(_);
        }
        payload() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.coseencrypt_ciphertext(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        signatures() {
            const _ = t.cosesign_signatures(this.__wbg_ptr);
            return z.__wrap(_);
        }
        static new(_, e, n) {
            g(_, f);
            var r = T(e) ? 0 : p(e, t.__wbindgen_malloc), o = d;
            g(n, z);
            const c = t.cosesign_new(_.__wbg_ptr, r, o, n.__wbg_ptr);
            return A.__wrap(c);
        }
    };
    const y_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cosesign1_free(a >>> 0));
    I = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(I.prototype);
            return e.__wbg_ptr = _, y_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, y_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cosesign1_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cosesign1_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.cosesign1_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return I.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        headers() {
            const _ = t.coseencrypt0_headers(this.__wbg_ptr);
            return f.__wrap(_);
        }
        payload() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.coseencrypt_ciphertext(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        signature() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cosesign1_signature(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        signed_data(_, e) {
            try {
                const Q = t.__wbindgen_add_to_stack_pointer(-16);
                var n = T(_) ? 0 : p(_, t.__wbindgen_malloc), r = d, o = T(e) ? 0 : p(e, t.__wbindgen_malloc), c = d;
                t.cosesign1_signed_data(Q, this.__wbg_ptr, n, r, o, c);
                var b = i()[Q / 4 + 0], m = i()[Q / 4 + 1], __ = i()[Q / 4 + 2];
                if (__) throw l(m);
                return U.__wrap(b);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(_, e, n) {
            g(_, f);
            var r = T(e) ? 0 : p(e, t.__wbindgen_malloc), o = d;
            const c = p(n, t.__wbindgen_malloc), b = d, m = t.cosesign1_new(_.__wbg_ptr, r, o, c, b);
            return I.__wrap(m);
        }
    };
    const u_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cosesign1builder_free(a >>> 0));
    e_ = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(e_.prototype);
            return e.__wbg_ptr = _, u_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, u_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cosesign1builder_free(_);
        }
        static new(_, e, n) {
            g(_, f);
            const r = p(e, t.__wbindgen_malloc), o = d, c = t.cosesign1builder_new(_.__wbg_ptr, r, o, n);
            return e_.__wrap(c);
        }
        hash_payload() {
            t.cosesign1builder_hash_payload(this.__wbg_ptr);
        }
        set_external_aad(_) {
            const e = p(_, t.__wbindgen_malloc), n = d;
            t.cosesign1builder_set_external_aad(this.__wbg_ptr, e, n);
        }
        make_data_to_sign() {
            const _ = t.cosesign1builder_make_data_to_sign(this.__wbg_ptr);
            return U.__wrap(_);
        }
        build(_) {
            const e = p(_, t.__wbindgen_malloc), n = d, r = t.cosesign1builder_build(this.__wbg_ptr, e, n);
            return I.__wrap(r);
        }
    };
    const f_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cosesignbuilder_free(a >>> 0));
    r_ = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(r_.prototype);
            return e.__wbg_ptr = _, f_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, f_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cosesignbuilder_free(_);
        }
        static new(_, e, n) {
            g(_, f);
            const r = p(e, t.__wbindgen_malloc), o = d, c = t.cosesignbuilder_new(_.__wbg_ptr, r, o, n);
            return r_.__wrap(c);
        }
        hash_payload() {
            t.cosesignbuilder_hash_payload(this.__wbg_ptr);
        }
        set_external_aad(_) {
            const e = p(_, t.__wbindgen_malloc), n = d;
            t.cosesign1builder_set_external_aad(this.__wbg_ptr, e, n);
        }
        make_data_to_sign() {
            const _ = t.cosesignbuilder_make_data_to_sign(this.__wbg_ptr);
            return U.__wrap(_);
        }
        build(_) {
            g(_, z);
            const e = t.cosesignbuilder_build(this.__wbg_ptr, _.__wbg_ptr);
            return A.__wrap(e);
        }
    };
    const h_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cosesignature_free(a >>> 0));
    S = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(S.prototype);
            return e.__wbg_ptr = _, h_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, h_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cosesignature_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cosesignature_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.cosesignature_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return S.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        headers() {
            const _ = t.coseencrypt0_headers(this.__wbg_ptr);
            return f.__wrap(_);
        }
        signature() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cosesign1_signature(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(_, e) {
            g(_, f);
            const n = p(e, t.__wbindgen_malloc), r = d, o = t.cosesignature_new(_.__wbg_ptr, n, r);
            return S.__wrap(o);
        }
    };
    const m_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_cosesignatures_free(a >>> 0));
    z = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(z.prototype);
            return e.__wbg_ptr = _, m_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, m_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_cosesignatures_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.cosesignatures_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.cosesignatures_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return z.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new() {
            const _ = t.coserecipients_new();
            return z.__wrap(_);
        }
        len() {
            return t.coserecipients_len(this.__wbg_ptr) >>> 0;
        }
        get(_) {
            const e = t.cosesignatures_get(this.__wbg_ptr, _);
            return S.__wrap(e);
        }
        add(_) {
            g(_, S), t.cosesignatures_add(this.__wbg_ptr, _.__wbg_ptr);
        }
    };
    const v_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_countersignature_free(a >>> 0));
    O = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(O.prototype);
            return e.__wbg_ptr = _, v_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, v_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_countersignature_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.countersignature_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.countersignature_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return O.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_single(_) {
            g(_, S);
            const e = t.countersignature_new_single(_.__wbg_ptr);
            return O.__wrap(e);
        }
        static new_multi(_) {
            g(_, z);
            const e = t.countersignature_new_multi(_.__wbg_ptr);
            return O.__wrap(e);
        }
        signatures() {
            const _ = t.countersignature_new_multi(this.__wbg_ptr);
            return z.__wrap(_);
        }
    };
    const k_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_eddsa25519key_free(a >>> 0));
    n_ = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(n_.prototype);
            return e.__wbg_ptr = _, k_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, k_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_eddsa25519key_free(_);
        }
        static new(_) {
            const e = p(_, t.__wbindgen_malloc), n = d, r = t.eddsa25519key_new(e, n);
            return n_.__wrap(r);
        }
        set_private_key(_) {
            const e = p(_, t.__wbindgen_malloc), n = d;
            t.eddsa25519key_set_private_key(this.__wbg_ptr, e, n);
        }
        is_for_signing() {
            t.eddsa25519key_is_for_signing(this.__wbg_ptr);
        }
        is_for_verifying() {
            t.eddsa25519key_is_for_verifying(this.__wbg_ptr);
        }
        build() {
            const _ = t.eddsa25519key_build(this.__wbg_ptr);
            return Y.__wrap(_);
        }
    };
    const j_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_headermap_free(a >>> 0));
    R = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(R.prototype);
            return e.__wbg_ptr = _, j_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, j_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_headermap_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.headermap_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.headermap_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return R.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_algorithm_id(_) {
            g(_, y), t.headermap_set_algorithm_id(this.__wbg_ptr, _.__wbg_ptr);
        }
        algorithm_id() {
            const _ = t.headermap_algorithm_id(this.__wbg_ptr);
            return _ === 0 ? void 0 : y.__wrap(_);
        }
        set_criticality(_) {
            g(_, x), t.headermap_set_criticality(this.__wbg_ptr, _.__wbg_ptr);
        }
        criticality() {
            const _ = t.headermap_criticality(this.__wbg_ptr);
            return _ === 0 ? void 0 : x.__wrap(_);
        }
        set_content_type(_) {
            g(_, y), t.cosekey_set_algorithm_id(this.__wbg_ptr, _.__wbg_ptr);
        }
        content_type() {
            const _ = t.cosekey_algorithm_id(this.__wbg_ptr);
            return _ === 0 ? void 0 : y.__wrap(_);
        }
        set_key_id(_) {
            const e = p(_, t.__wbindgen_malloc), n = d;
            t.headermap_set_key_id(this.__wbg_ptr, e, n);
        }
        key_id() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.headermap_key_id(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_init_vector(_) {
            const e = p(_, t.__wbindgen_malloc), n = d;
            t.cosekey_set_base_init_vector(this.__wbg_ptr, e, n);
        }
        init_vector() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.cosekey_base_init_vector(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_partial_init_vector(_) {
            const e = p(_, t.__wbindgen_malloc), n = d;
            t.headermap_set_partial_init_vector(this.__wbg_ptr, e, n);
        }
        partial_init_vector() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.headermap_partial_init_vector(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = w(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_counter_signature(_) {
            g(_, O), t.headermap_set_counter_signature(this.__wbg_ptr, _.__wbg_ptr);
        }
        counter_signature() {
            const _ = t.headermap_counter_signature(this.__wbg_ptr);
            return _ === 0 ? void 0 : O.__wrap(_);
        }
        header(_) {
            g(_, y);
            const e = t.headermap_header(this.__wbg_ptr, _.__wbg_ptr);
            return e === 0 ? void 0 : u.__wrap(e);
        }
        set_header(_, e) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16);
                g(_, y), g(e, u), t.headermap_set_header(o, this.__wbg_ptr, _.__wbg_ptr, e.__wbg_ptr);
                var n = i()[o / 4 + 0], r = i()[o / 4 + 1];
                if (r) throw l(n);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        keys() {
            const _ = t.headermap_keys(this.__wbg_ptr);
            return x.__wrap(_);
        }
        static new() {
            const _ = t.headermap_new();
            return R.__wrap(_);
        }
    };
    const F_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_headers_free(a >>> 0));
    f = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(f.prototype);
            return e.__wbg_ptr = _, F_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, F_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_headers_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.headers_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.headers_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return f.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        protected() {
            const _ = t.headers_protected(this.__wbg_ptr);
            return v.__wrap(_);
        }
        unprotected() {
            const _ = t.headers_unprotected(this.__wbg_ptr);
            return R.__wrap(_);
        }
        static new(_, e) {
            g(_, v), g(e, R);
            const n = t.headers_new(_.__wbg_ptr, e.__wbg_ptr);
            return f.__wrap(n);
        }
    };
    const z_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_int_free(a >>> 0));
    F = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(F.prototype);
            return e.__wbg_ptr = _, z_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, z_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_int_free(_);
        }
        static new(_) {
            g(_, h);
            const e = t.int_new(_.__wbg_ptr);
            return F.__wrap(e);
        }
        static new_negative(_) {
            g(_, h);
            const e = t.int_new_negative(_.__wbg_ptr);
            return F.__wrap(e);
        }
        static new_i32(_) {
            const e = t.int_new_i32(_);
            return F.__wrap(e);
        }
        is_positive() {
            return t.int_is_positive(this.__wbg_ptr) !== 0;
        }
        as_positive() {
            const _ = t.int_as_positive(this.__wbg_ptr);
            return _ === 0 ? void 0 : h.__wrap(_);
        }
        as_negative() {
            const _ = t.int_as_negative(this.__wbg_ptr);
            return _ === 0 ? void 0 : h.__wrap(_);
        }
        as_i32() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.int_as_i32(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                return _ === 0 ? void 0 : e;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
    };
    const x_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_label_free(a >>> 0));
    y = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(y.prototype);
            return e.__wbg_ptr = _, x_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, x_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_label_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.label_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.label_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return y.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_int(_) {
            g(_, F);
            const e = t.label_new_int(_.__wbg_ptr);
            return y.__wrap(e);
        }
        static new_text(_) {
            const e = J(_, t.__wbindgen_malloc, t.__wbindgen_realloc), n = d, r = t.label_new_text(e, n);
            return y.__wrap(r);
        }
        kind() {
            return t.label_kind(this.__wbg_ptr);
        }
        as_int() {
            const _ = t.label_as_int(this.__wbg_ptr);
            return _ === 0 ? void 0 : F.__wrap(_);
        }
        as_text() {
            try {
                const n = t.__wbindgen_add_to_stack_pointer(-16);
                t.label_as_text(n, this.__wbg_ptr);
                var _ = i()[n / 4 + 0], e = i()[n / 4 + 1];
                let r;
                return _ !== 0 && (r = X(_, e).slice(), t.__wbindgen_free(_, e * 1, 1)), r;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_algorithm_id(_) {
            const e = t.label_from_algorithm_id(_);
            return y.__wrap(e);
        }
        static from_key_type(_) {
            const e = t.label_from_key_type(_);
            return y.__wrap(e);
        }
        static from_ec_key(_) {
            const e = t.label_from_ec_key(_);
            return y.__wrap(e);
        }
        static from_curve_type(_) {
            const e = t.label_from_curve_type(_);
            return y.__wrap(e);
        }
        static from_key_operation(_) {
            const e = t.label_from_key_operation(_);
            return y.__wrap(e);
        }
    };
    const R_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_labels_free(a >>> 0));
    x = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(x.prototype);
            return e.__wbg_ptr = _, R_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, R_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_labels_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.labels_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.labels_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return x.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new() {
            const _ = t.coserecipients_new();
            return x.__wrap(_);
        }
        len() {
            return t.coserecipients_len(this.__wbg_ptr) >>> 0;
        }
        get(_) {
            const e = t.labels_get(this.__wbg_ptr, _);
            return y.__wrap(e);
        }
        add(_) {
            g(_, y), t.labels_add(this.__wbg_ptr, _.__wbg_ptr);
        }
    };
    const O_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_passwordencryption_free(a >>> 0));
    H = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(H.prototype);
            return e.__wbg_ptr = _, O_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, O_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_passwordencryption_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.passwordencryption_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.passwordencryption_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return H.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(_) {
            g(_, q);
            const e = t.passwordencryption_new(_.__wbg_ptr);
            return H.__wrap(e);
        }
    };
    const T_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_protectedheadermap_free(a >>> 0));
    v = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(v.prototype);
            return e.__wbg_ptr = _, T_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, T_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_protectedheadermap_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.protectedheadermap_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.protectedheadermap_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return v.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_empty() {
            const _ = t.protectedheadermap_new_empty();
            return v.__wrap(_);
        }
        static new(_) {
            g(_, R);
            const e = t.protectedheadermap_new(_.__wbg_ptr);
            return v.__wrap(e);
        }
        deserialized_headers() {
            const _ = t.protectedheadermap_deserialized_headers(this.__wbg_ptr);
            return R.__wrap(_);
        }
    };
    const D_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_pubkeyencryption_free(a >>> 0));
    B = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(B.prototype);
            return e.__wbg_ptr = _, D_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, D_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_pubkeyencryption_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.pubkeyencryption_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.pubkeyencryption_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return B.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new(_) {
            g(_, N);
            const e = t.pubkeyencryption_new(_.__wbg_ptr);
            return B.__wrap(e);
        }
    };
    const A_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_sigstructure_free(a >>> 0));
    U = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(U.prototype);
            return e.__wbg_ptr = _, A_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, A_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_sigstructure_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.sigstructure_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.sigstructure_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return U.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        context() {
            return t.sigstructure_context(this.__wbg_ptr);
        }
        body_protected() {
            const _ = t.sigstructure_body_protected(this.__wbg_ptr);
            return v.__wrap(_);
        }
        sign_protected() {
            const _ = t.sigstructure_sign_protected(this.__wbg_ptr);
            return _ === 0 ? void 0 : v.__wrap(_);
        }
        external_aad() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.sigstructure_external_aad(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        payload() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.sigstructure_payload(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        set_sign_protected(_) {
            g(_, v), t.sigstructure_set_sign_protected(this.__wbg_ptr, _.__wbg_ptr);
        }
        static new(_, e, n, r) {
            g(e, v);
            const o = p(n, t.__wbindgen_malloc), c = d, b = p(r, t.__wbindgen_malloc), m = d, __ = t.sigstructure_new(_, e.__wbg_ptr, o, c, b, m);
            return U.__wrap(__);
        }
    };
    const I_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_signedmessage_free(a >>> 0));
    E = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(E.prototype);
            return e.__wbg_ptr = _, I_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, I_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_signedmessage_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.signedmessage_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.signedmessage_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return E.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static new_cose_sign(_) {
            g(_, A);
            const e = t.signedmessage_new_cose_sign(_.__wbg_ptr);
            return E.__wrap(e);
        }
        static new_cose_sign1(_) {
            g(_, I);
            const e = t.signedmessage_new_cose_sign1(_.__wbg_ptr);
            return E.__wrap(e);
        }
        static from_user_facing_encoding(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = J(_, t.__wbindgen_malloc, t.__wbindgen_realloc), b = d;
                t.signedmessage_from_user_facing_encoding(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return E.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        to_user_facing_encoding() {
            let _, e;
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16);
                t.signedmessage_to_user_facing_encoding(o, this.__wbg_ptr);
                var n = i()[o / 4 + 0], r = i()[o / 4 + 1];
                return _ = n, e = r, X(n, r);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16), t.__wbindgen_free(_, e, 1);
            }
        }
        kind() {
            return t.signedmessage_kind(this.__wbg_ptr);
        }
        as_cose_sign() {
            const _ = t.signedmessage_as_cose_sign(this.__wbg_ptr);
            return _ === 0 ? void 0 : A.__wrap(_);
        }
        as_cose_sign1() {
            const _ = t.signedmessage_as_cose_sign1(this.__wbg_ptr);
            return _ === 0 ? void 0 : I.__wrap(_);
        }
    };
    const S_ = typeof FinalizationRegistry > "u" ? {
        register: ()=>{},
        unregister: ()=>{}
    } : new FinalizationRegistry((a)=>t.__wbg_taggedcbor_free(a >>> 0));
    M = class {
        static __wrap(_) {
            _ = _ >>> 0;
            const e = Object.create(M.prototype);
            return e.__wbg_ptr = _, S_.register(e, e.__wbg_ptr, e), e;
        }
        __destroy_into_raw() {
            const _ = this.__wbg_ptr;
            return this.__wbg_ptr = 0, S_.unregister(this), _;
        }
        free() {
            const _ = this.__destroy_into_raw();
            t.__wbg_taggedcbor_free(_);
        }
        to_bytes() {
            try {
                const r = t.__wbindgen_add_to_stack_pointer(-16);
                t.taggedcbor_to_bytes(r, this.__wbg_ptr);
                var _ = i()[r / 4 + 0], e = i()[r / 4 + 1], n = w(_, e).slice();
                return t.__wbindgen_free(_, e * 1, 1), n;
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        static from_bytes(_) {
            try {
                const o = t.__wbindgen_add_to_stack_pointer(-16), c = p(_, t.__wbindgen_malloc), b = d;
                t.taggedcbor_from_bytes(o, c, b);
                var e = i()[o / 4 + 0], n = i()[o / 4 + 1], r = i()[o / 4 + 2];
                if (r) throw l(n);
                return M.__wrap(e);
            } finally{
                t.__wbindgen_add_to_stack_pointer(16);
            }
        }
        tag() {
            const _ = t.taggedcbor_tag(this.__wbg_ptr);
            return h.__wrap(_);
        }
        value() {
            const _ = t.taggedcbor_value(this.__wbg_ptr);
            return u.__wrap(_);
        }
        static new(_, e) {
            g(_, h), g(e, u);
            const n = t.taggedcbor_new(_.__wbg_ptr, e.__wbg_ptr);
            return M.__wrap(n);
        }
    };
    Y_ = function(a) {
        l(a);
    };
    J_ = function(a, _) {
        const e = X(a, _);
        return X_(e);
    };
    Q_ = function(a, _) {
        const e = t_(U_(_)), n = J(e, t.__wbindgen_malloc, t.__wbindgen_realloc), r = d;
        i()[a / 4 + 1] = r, i()[a / 4 + 0] = n;
    };
    L_ = function(a, _) {
        throw new Error(X(a, _));
    };
    URL = globalThis.URL;
    const s = await K_({
        "./cardano_message_signing_bg.js": {
            __wbindgen_object_drop_ref: Y_,
            __wbindgen_string_new: J_,
            __wbindgen_debug_string: Q_,
            __wbindgen_throw: L_
        }
    }, $_), Z_ = s.memory, C_ = s.__wbg_protectedheadermap_free, V_ = s.protectedheadermap_to_bytes, H_ = s.protectedheadermap_from_bytes, B_ = s.protectedheadermap_new_empty, _t = s.protectedheadermap_new, tt = s.protectedheadermap_deserialized_headers, et = s.__wbg_label_free, rt = s.label_to_bytes, nt = s.label_from_bytes, st = s.label_new_int, ot = s.label_new_text, it = s.label_kind, at = s.label_as_int, ct = s.label_as_text, bt = s.label_from_algorithm_id, gt = s.label_from_key_type, dt = s.label_from_ec_key, pt = s.label_from_curve_type, wt = s.label_from_key_operation, lt = s.__wbg_labels_free, yt = s.labels_to_bytes, ut = s.labels_from_bytes, ft = s.labels_get, ht = s.labels_add, mt = s.__wbg_cosesignatures_free, vt = s.cosesignatures_to_bytes, kt = s.cosesignatures_from_bytes, jt = s.cosesignatures_get, Ft = s.cosesignatures_add, zt = s.countersignature_to_bytes, xt = s.countersignature_from_bytes, Rt = s.countersignature_new_single, Ot = s.countersignature_new_multi, Tt = s.__wbg_headermap_free, Dt = s.headermap_to_bytes, At = s.headermap_from_bytes, It = s.headermap_set_algorithm_id, St = s.headermap_algorithm_id, Ut = s.headermap_set_criticality, Et = s.headermap_criticality, Kt = s.headermap_set_key_id, $t = s.headermap_key_id, Wt = s.headermap_set_partial_init_vector, Pt = s.headermap_partial_init_vector, Mt = s.headermap_set_counter_signature, Xt = s.headermap_counter_signature, Gt = s.headermap_header, Nt = s.headermap_set_header, qt = s.headermap_keys, Yt = s.headermap_new, Jt = s.__wbg_headers_free, Qt = s.headers_to_bytes, Lt = s.headers_from_bytes, Zt = s.headers_protected, Ct = s.headers_unprotected, Vt = s.headers_new, Ht = s.__wbg_cosesignature_free, Bt = s.cosesignature_to_bytes, _e = s.cosesignature_from_bytes, te = s.cosesignature_new, ee = s.__wbg_cosesign1_free, re = s.cosesign1_to_bytes, ne = s.cosesign1_from_bytes, se = s.cosesign1_signature, oe = s.cosesign1_signed_data, ie = s.cosesign1_new, ae = s.__wbg_cosesign_free, ce = s.cosesign_to_bytes, be = s.cosesign_from_bytes, ge = s.cosesign_signatures, de = s.cosesign_new, pe = s.__wbg_signedmessage_free, we = s.signedmessage_to_bytes, le = s.signedmessage_from_bytes, ye = s.signedmessage_new_cose_sign, ue = s.signedmessage_new_cose_sign1, fe = s.signedmessage_from_user_facing_encoding, he = s.signedmessage_to_user_facing_encoding, me = s.signedmessage_kind, ve = s.signedmessage_as_cose_sign, ke = s.signedmessage_as_cose_sign1, je = s.__wbg_sigstructure_free, Fe = s.sigstructure_to_bytes, ze = s.sigstructure_from_bytes, xe = s.sigstructure_context, Re = s.sigstructure_body_protected, Oe = s.sigstructure_sign_protected, Te = s.sigstructure_external_aad, De = s.sigstructure_payload, Ae = s.sigstructure_set_sign_protected, Ie = s.sigstructure_new, Se = s.__wbg_coseencrypt0_free, Ue = s.coseencrypt0_to_bytes, Ee = s.coseencrypt0_from_bytes, Ke = s.coseencrypt0_headers, $e = s.coseencrypt0_ciphertext, We = s.coseencrypt0_new, Pe = s.passwordencryption_to_bytes, Me = s.passwordencryption_from_bytes, Xe = s.passwordencryption_new, Ge = s.__wbg_coserecipients_free, Ne = s.coserecipients_to_bytes, qe = s.coserecipients_from_bytes, Ye = s.coserecipients_new, Je = s.coserecipients_len, Qe = s.coserecipients_get, Le = s.coserecipients_add, Ze = s.__wbg_coseencrypt_free, Ce = s.coseencrypt_to_bytes, Ve = s.coseencrypt_from_bytes, He = s.coseencrypt_ciphertext, Be = s.coseencrypt_recipients, _r = s.coseencrypt_new, tr = s.coserecipient_to_bytes, er = s.coserecipient_from_bytes, rr = s.pubkeyencryption_to_bytes, nr = s.pubkeyencryption_from_bytes, sr = s.pubkeyencryption_new, or = s.__wbg_cosekey_free, ir = s.cosekey_to_bytes, ar = s.cosekey_from_bytes, cr = s.cosekey_set_key_type, br = s.cosekey_key_type, gr = s.cosekey_set_key_id, dr = s.cosekey_key_id, pr = s.cosekey_set_algorithm_id, wr = s.cosekey_algorithm_id, lr = s.cosekey_set_key_ops, yr = s.cosekey_key_ops, ur = s.cosekey_set_base_init_vector, fr = s.cosekey_base_init_vector, hr = s.cosekey_header, mr = s.cosekey_set_header, vr = s.cosekey_new, kr = s.__wbg_passwordencryption_free, jr = s.__wbg_coserecipient_free, Fr = s.labels_len, zr = s.cosesignatures_len, xr = s.coserecipient_new, Rr = s.headermap_set_content_type, Or = s.cosesign_payload, Tr = s.cosesign1_payload, Dr = s.coserecipient_ciphertext, Ar = s.headermap_init_vector, Ir = s.labels_new, Sr = s.cosesignatures_new, Ur = s.__wbg_countersignature_free, Er = s.cosesignature_signature, Kr = s.countersignature_signatures, $r = s.headermap_set_init_vector, Wr = s.__wbg_pubkeyencryption_free, Pr = s.cosesignature_headers, Mr = s.cosesign_headers, Xr = s.cosesign1_headers, Gr = s.coseencrypt_headers, Nr = s.coserecipient_headers, qr = s.headermap_content_type, Yr = s.__wbg_taggedcbor_free, Jr = s.taggedcbor_to_bytes, Qr = s.taggedcbor_from_bytes, Lr = s.taggedcbor_tag, Zr = s.taggedcbor_value, Cr = s.taggedcbor_new, Vr = s.__wbg_cborarray_free, Hr = s.cborarray_to_bytes, Br = s.cborarray_from_bytes, _n = s.cborarray_new, tn = s.cborarray_len, en = s.cborarray_get, rn = s.cborarray_add, nn = s.cborarray_set_definite_encoding, sn = s.cborarray_is_definite, on = s.__wbg_cborobject_free, an = s.cborobject_to_bytes, cn = s.cborobject_from_bytes, bn = s.cborobject_new, gn = s.cborobject_len, dn = s.cborobject_insert, pn = s.cborobject_get, wn = s.cborobject_keys, ln = s.cborobject_set_definite_encoding, yn = s.cborobject_is_definite, un = s.__wbg_cborspecial_free, fn = s.cborspecial_to_bytes, hn = s.cborspecial_from_bytes, mn = s.cborspecial_new_bool, vn = s.cborspecial_new_unassigned, kn = s.cborspecial_new_break, jn = s.cborspecial_new_null, Fn = s.cborspecial_new_undefined, zn = s.cborspecial_kind, xn = s.cborspecial_as_bool, Rn = s.cborspecial_as_float, On = s.cborspecial_as_unassigned, Tn = s.__wbg_cborvalue_free, Dn = s.cborvalue_to_bytes, An = s.cborvalue_from_bytes, In = s.cborvalue_new_int, Sn = s.cborvalue_new_bytes, Un = s.cborvalue_new_text, En = s.cborvalue_new_array, Kn = s.cborvalue_new_object, $n = s.cborvalue_new_tagged, Wn = s.cborvalue_new_special, Pn = s.cborvalue_from_label, Mn = s.cborvalue_kind, Xn = s.cborvalue_as_int, Gn = s.cborvalue_as_bytes, Nn = s.cborvalue_as_text, qn = s.cborvalue_as_array, Yn = s.cborvalue_as_object, Jn = s.cborvalue_as_tagged, Qn = s.cborvalue_as_special, Ln = s.__wbg_bignum_free, Zn = s.bignum_to_bytes, Cn = s.bignum_from_bytes, Vn = s.bignum_from_str, Hn = s.bignum_to_str, Bn = s.bignum_checked_mul, _s = s.bignum_checked_add, ts = s.bignum_checked_sub, es = s.__wbg_int_free, rs = s.int_new, ns = s.int_new_negative, ss = s.int_new_i32, os = s.int_is_positive, is = s.int_as_positive, as = s.int_as_negative, cs = s.int_as_i32, bs = s.__wbg_cosesign1builder_free, gs = s.cosesign1builder_new, ds = s.cosesign1builder_hash_payload, ps = s.cosesign1builder_set_external_aad, ws = s.cosesign1builder_make_data_to_sign, ls = s.cosesign1builder_build, ys = s.cosesignbuilder_new, us = s.cosesignbuilder_hash_payload, fs = s.cosesignbuilder_make_data_to_sign, hs = s.cosesignbuilder_build, ms = s.__wbg_eddsa25519key_free, vs = s.eddsa25519key_new, ks = s.eddsa25519key_set_private_key, js = s.eddsa25519key_is_for_signing, Fs = s.eddsa25519key_is_for_verifying, zs = s.eddsa25519key_build, xs = s.__wbg_cosesignbuilder_free, Rs = s.cosesignbuilder_set_external_aad, Os = s.__wbindgen_malloc, Ts = s.__wbindgen_realloc, Ds = s.__wbindgen_add_to_stack_pointer, As = s.__wbindgen_free, Is = Object.freeze(Object.defineProperty({
        __proto__: null,
        __wbg_bignum_free: Ln,
        __wbg_cborarray_free: Vr,
        __wbg_cborobject_free: on,
        __wbg_cborspecial_free: un,
        __wbg_cborvalue_free: Tn,
        __wbg_coseencrypt0_free: Se,
        __wbg_coseencrypt_free: Ze,
        __wbg_cosekey_free: or,
        __wbg_coserecipient_free: jr,
        __wbg_coserecipients_free: Ge,
        __wbg_cosesign1_free: ee,
        __wbg_cosesign1builder_free: bs,
        __wbg_cosesign_free: ae,
        __wbg_cosesignature_free: Ht,
        __wbg_cosesignatures_free: mt,
        __wbg_cosesignbuilder_free: xs,
        __wbg_countersignature_free: Ur,
        __wbg_eddsa25519key_free: ms,
        __wbg_headermap_free: Tt,
        __wbg_headers_free: Jt,
        __wbg_int_free: es,
        __wbg_label_free: et,
        __wbg_labels_free: lt,
        __wbg_passwordencryption_free: kr,
        __wbg_protectedheadermap_free: C_,
        __wbg_pubkeyencryption_free: Wr,
        __wbg_signedmessage_free: pe,
        __wbg_sigstructure_free: je,
        __wbg_taggedcbor_free: Yr,
        __wbindgen_add_to_stack_pointer: Ds,
        __wbindgen_free: As,
        __wbindgen_malloc: Os,
        __wbindgen_realloc: Ts,
        bignum_checked_add: _s,
        bignum_checked_mul: Bn,
        bignum_checked_sub: ts,
        bignum_from_bytes: Cn,
        bignum_from_str: Vn,
        bignum_to_bytes: Zn,
        bignum_to_str: Hn,
        cborarray_add: rn,
        cborarray_from_bytes: Br,
        cborarray_get: en,
        cborarray_is_definite: sn,
        cborarray_len: tn,
        cborarray_new: _n,
        cborarray_set_definite_encoding: nn,
        cborarray_to_bytes: Hr,
        cborobject_from_bytes: cn,
        cborobject_get: pn,
        cborobject_insert: dn,
        cborobject_is_definite: yn,
        cborobject_keys: wn,
        cborobject_len: gn,
        cborobject_new: bn,
        cborobject_set_definite_encoding: ln,
        cborobject_to_bytes: an,
        cborspecial_as_bool: xn,
        cborspecial_as_float: Rn,
        cborspecial_as_unassigned: On,
        cborspecial_from_bytes: hn,
        cborspecial_kind: zn,
        cborspecial_new_bool: mn,
        cborspecial_new_break: kn,
        cborspecial_new_null: jn,
        cborspecial_new_unassigned: vn,
        cborspecial_new_undefined: Fn,
        cborspecial_to_bytes: fn,
        cborvalue_as_array: qn,
        cborvalue_as_bytes: Gn,
        cborvalue_as_int: Xn,
        cborvalue_as_object: Yn,
        cborvalue_as_special: Qn,
        cborvalue_as_tagged: Jn,
        cborvalue_as_text: Nn,
        cborvalue_from_bytes: An,
        cborvalue_from_label: Pn,
        cborvalue_kind: Mn,
        cborvalue_new_array: En,
        cborvalue_new_bytes: Sn,
        cborvalue_new_int: In,
        cborvalue_new_object: Kn,
        cborvalue_new_special: Wn,
        cborvalue_new_tagged: $n,
        cborvalue_new_text: Un,
        cborvalue_to_bytes: Dn,
        coseencrypt0_ciphertext: $e,
        coseencrypt0_from_bytes: Ee,
        coseencrypt0_headers: Ke,
        coseencrypt0_new: We,
        coseencrypt0_to_bytes: Ue,
        coseencrypt_ciphertext: He,
        coseencrypt_from_bytes: Ve,
        coseencrypt_headers: Gr,
        coseencrypt_new: _r,
        coseencrypt_recipients: Be,
        coseencrypt_to_bytes: Ce,
        cosekey_algorithm_id: wr,
        cosekey_base_init_vector: fr,
        cosekey_from_bytes: ar,
        cosekey_header: hr,
        cosekey_key_id: dr,
        cosekey_key_ops: yr,
        cosekey_key_type: br,
        cosekey_new: vr,
        cosekey_set_algorithm_id: pr,
        cosekey_set_base_init_vector: ur,
        cosekey_set_header: mr,
        cosekey_set_key_id: gr,
        cosekey_set_key_ops: lr,
        cosekey_set_key_type: cr,
        cosekey_to_bytes: ir,
        coserecipient_ciphertext: Dr,
        coserecipient_from_bytes: er,
        coserecipient_headers: Nr,
        coserecipient_new: xr,
        coserecipient_to_bytes: tr,
        coserecipients_add: Le,
        coserecipients_from_bytes: qe,
        coserecipients_get: Qe,
        coserecipients_len: Je,
        coserecipients_new: Ye,
        coserecipients_to_bytes: Ne,
        cosesign1_from_bytes: ne,
        cosesign1_headers: Xr,
        cosesign1_new: ie,
        cosesign1_payload: Tr,
        cosesign1_signature: se,
        cosesign1_signed_data: oe,
        cosesign1_to_bytes: re,
        cosesign1builder_build: ls,
        cosesign1builder_hash_payload: ds,
        cosesign1builder_make_data_to_sign: ws,
        cosesign1builder_new: gs,
        cosesign1builder_set_external_aad: ps,
        cosesign_from_bytes: be,
        cosesign_headers: Mr,
        cosesign_new: de,
        cosesign_payload: Or,
        cosesign_signatures: ge,
        cosesign_to_bytes: ce,
        cosesignature_from_bytes: _e,
        cosesignature_headers: Pr,
        cosesignature_new: te,
        cosesignature_signature: Er,
        cosesignature_to_bytes: Bt,
        cosesignatures_add: Ft,
        cosesignatures_from_bytes: kt,
        cosesignatures_get: jt,
        cosesignatures_len: zr,
        cosesignatures_new: Sr,
        cosesignatures_to_bytes: vt,
        cosesignbuilder_build: hs,
        cosesignbuilder_hash_payload: us,
        cosesignbuilder_make_data_to_sign: fs,
        cosesignbuilder_new: ys,
        cosesignbuilder_set_external_aad: Rs,
        countersignature_from_bytes: xt,
        countersignature_new_multi: Ot,
        countersignature_new_single: Rt,
        countersignature_signatures: Kr,
        countersignature_to_bytes: zt,
        eddsa25519key_build: zs,
        eddsa25519key_is_for_signing: js,
        eddsa25519key_is_for_verifying: Fs,
        eddsa25519key_new: vs,
        eddsa25519key_set_private_key: ks,
        headermap_algorithm_id: St,
        headermap_content_type: qr,
        headermap_counter_signature: Xt,
        headermap_criticality: Et,
        headermap_from_bytes: At,
        headermap_header: Gt,
        headermap_init_vector: Ar,
        headermap_key_id: $t,
        headermap_keys: qt,
        headermap_new: Yt,
        headermap_partial_init_vector: Pt,
        headermap_set_algorithm_id: It,
        headermap_set_content_type: Rr,
        headermap_set_counter_signature: Mt,
        headermap_set_criticality: Ut,
        headermap_set_header: Nt,
        headermap_set_init_vector: $r,
        headermap_set_key_id: Kt,
        headermap_set_partial_init_vector: Wt,
        headermap_to_bytes: Dt,
        headers_from_bytes: Lt,
        headers_new: Vt,
        headers_protected: Zt,
        headers_to_bytes: Qt,
        headers_unprotected: Ct,
        int_as_i32: cs,
        int_as_negative: as,
        int_as_positive: is,
        int_is_positive: os,
        int_new: rs,
        int_new_i32: ss,
        int_new_negative: ns,
        label_as_int: at,
        label_as_text: ct,
        label_from_algorithm_id: bt,
        label_from_bytes: nt,
        label_from_curve_type: pt,
        label_from_ec_key: dt,
        label_from_key_operation: wt,
        label_from_key_type: gt,
        label_kind: it,
        label_new_int: st,
        label_new_text: ot,
        label_to_bytes: rt,
        labels_add: ht,
        labels_from_bytes: ut,
        labels_get: ft,
        labels_len: Fr,
        labels_new: Ir,
        labels_to_bytes: yt,
        memory: Z_,
        passwordencryption_from_bytes: Me,
        passwordencryption_new: Xe,
        passwordencryption_to_bytes: Pe,
        protectedheadermap_deserialized_headers: tt,
        protectedheadermap_from_bytes: H_,
        protectedheadermap_new: _t,
        protectedheadermap_new_empty: B_,
        protectedheadermap_to_bytes: V_,
        pubkeyencryption_from_bytes: nr,
        pubkeyencryption_new: sr,
        pubkeyencryption_to_bytes: rr,
        signedmessage_as_cose_sign: ve,
        signedmessage_as_cose_sign1: ke,
        signedmessage_from_bytes: le,
        signedmessage_from_user_facing_encoding: fe,
        signedmessage_kind: me,
        signedmessage_new_cose_sign: ye,
        signedmessage_new_cose_sign1: ue,
        signedmessage_to_bytes: we,
        signedmessage_to_user_facing_encoding: he,
        sigstructure_body_protected: Re,
        sigstructure_context: xe,
        sigstructure_external_aad: Te,
        sigstructure_from_bytes: ze,
        sigstructure_new: Ie,
        sigstructure_payload: De,
        sigstructure_set_sign_protected: Ae,
        sigstructure_sign_protected: Oe,
        sigstructure_to_bytes: Fe,
        taggedcbor_from_bytes: Qr,
        taggedcbor_new: Cr,
        taggedcbor_tag: Lr,
        taggedcbor_to_bytes: Jr,
        taggedcbor_value: Zr
    }, Symbol.toStringTag, {
        value: "Module"
    }));
    W_(Is);
})();
export { Us as AlgorithmId, h as BigNum, D as CBORArray, $ as CBORObject, k as CBORSpecial, Ks as CBORSpecialType, u as CBORValue, Gs as CBORValueKind, N as COSEEncrypt, q as COSEEncrypt0, Y as COSEKey, W as COSERecipient, P as COSERecipients, A as COSESign, I as COSESign1, e_ as COSESign1Builder, r_ as COSESignBuilder, S as COSESignature, z as COSESignatures, O as CounterSignature, Ns as CurveType, $s as ECKey, n_ as EdDSA25519Key, R as HeaderMap, f as Headers, F as Int, Ws as KeyOperation, Ps as KeyType, y as Label, Es as LabelKind, x as Labels, H as PasswordEncryption, v as ProtectedHeaderMap, B as PubKeyEncryption, Ms as SigContext, U as SigStructure, E as SignedMessage, Xs as SignedMessageKind, M as TaggedCBOR, W_ as __wbg_set_wasm, Q_ as __wbindgen_debug_string, Y_ as __wbindgen_object_drop_ref, J_ as __wbindgen_string_new, L_ as __wbindgen_throw, __tla };
