From 141047dec6c87b151ef2beb69c1a47605afba0d7 Mon Sep 17 00:00:00 2001 From: Piefayth Date: Tue, 26 Mar 2024 00:32:21 +0000 Subject: [PATCH] deploy: dc5eb14496505f90d9fc93e6737391ff67e134c5 --- assets/index-BfBriVlx.css | 1 - assets/index-D5zrKYz6.css | 1 + assets/index-DEO0I1-m.js | 75 +++++++++++++++++++++++++++++++++++++++ assets/index-yzv6xz02.js | 75 --------------------------------------- index.html | 4 +-- 5 files changed, 78 insertions(+), 78 deletions(-) delete mode 100644 assets/index-BfBriVlx.css create mode 100644 assets/index-D5zrKYz6.css create mode 100644 assets/index-DEO0I1-m.js delete mode 100644 assets/index-yzv6xz02.js diff --git a/assets/index-BfBriVlx.css b/assets/index-BfBriVlx.css deleted file mode 100644 index 5cea145..0000000 --- a/assets/index-BfBriVlx.css +++ /dev/null @@ -1 +0,0 @@ -#root{margin:0 auto;text-align:center}body{overflow-y:hidden}.main-layout-container{display:flex;flex-direction:column;border:solid 1px black;overflow:hidden}.editor-and-management-view-container{display:flex;flex-direction:row;background-color:#161616;width:100%;max-width:100%}.editor-container{display:flex;flex-direction:column;width:100%;max-width:60vw;flex:1}.editor-content-container{display:flex;flex-direction:row}.editor-and-tabs-container{max-width:100%;min-width:50vw;max-height:94vh;display:flex;flex-direction:column}.management-panel-container{display:flex;flex-direction:column;width:100%;max-width:40vw;flex:1;word-wrap:break-word;border-left:1px solid black}.tooltip{background-color:#262626f2;border:solid 1px rgb(94,94,94);color:#fff;padding:8px 10px;z-index:999;border-radius:4px;box-shadow:0 2px 10px #00000080;position:absolute;white-space:nowrap;pointer-events:none}.context-menu{min-width:200px;background-color:#262626f2;border:solid 1px rgb(94,94,94);color:#fff;z-index:999;border-radius:3px;box-shadow:0 2px 10px #00000080;position:absolute;white-space:nowrap;display:flex;flex-direction:column;align-items:start;justify-content:center}.context-menu-item{display:flex;width:100%;padding:5px;box-sizing:border-box}.context-menu-item:hover{background-color:#464646}.hidden{display:none}.unselectable{-webkit-user-select:none;user-select:none}.disabled{opacity:.5}.disabled:hover{background-color:#0000;cursor:default}.copy-widget{margin-left:10px}.top-bar{display:flex;align-items:center;justify-content:left;border-bottom:solid 1px black;font-size:20px;height:4vh;max-height:4vh;overflow:hidden}.editor-top-bar{background-color:#68114b}.management-top-bar{background-color:#125cc34d}.top-bar-item{padding:5px;margin-top:none;margin-right:20px}.editor-top-bar-item{padding:5px;margin-top:none;margin-right:20px;transition:background-color .25s linear}.editor-top-bar-item:hover{cursor:pointer;background-color:#a05f7e;transition:background-color .25s linear}.no-last-build-notice{margin-left:10px}.build-results-content{display:flex;flex-direction:column;align-items:start;overflow-y:scroll;overflow-x:hidden;height:calc(94vh - 45px)}.build-results-heading{font-size:30px;padding:10px;margin-bottom:10px;width:100%;border-bottom:5px solid rgb(64,140,216);display:flex}.summary{display:flex;flex-direction:row;padding:0;margin:0}.summary-entry{margin:5px}.build-result-heading{font-size:24px}.warning-number{color:#f6f679}.error-number{color:#f15151}.test-number{color:#5189f1}.build-results-section{display:flex;flex-direction:column;align-items:start;padding:0 10px 10px;margin-left:15px;margin-top:15px}.tests{border-left:3px solid rgb(81,137,241)}.warnings{border-left:3px solid rgb(246,246,121)}.build-results-individual-result{padding:5px;background-color:#232324;margin:10px;display:flex;flex-direction:column;align-items:start;font-family:monospace;text-align:left}.warning-item{padding:5px 5px 5px 15px}.errors{border-left:3px solid rgb(241,81,81)}.error-item{padding:5px 5px 5px 15px}.build-result-container{display:flex;flex-direction:column;align-items:start;width:100%;margin:0 10px 10px}.build-result-filename{padding:5px;margin-left:10px;font-size:26px;display:flex;box-sizing:border-box}.management-tab-container{display:flex;flex-direction:row;align-items:center;justify-content:start;max-width:100%;overflow-x:scroll;overflow-y:hidden;scrollbar-width:thin;padding:0;scrollbar-color:rgba(18,92,195,.3) rgb(11,36,68,.7);scroll-padding:0px;scroll-margin:0px;height:45px;min-height:45px}.management-tab{background-color:#161616;min-width:100px;max-width:150px;height:100%;border-right:1px solid rgb(18,92,195,.3);display:flex;justify-content:center;align-items:center}.management-tab:hover{background-color:#4317e422;cursor:pointer}.highlight-focused-management-tab{background-color:#1e1e1e;border-bottom:1px solid rgb(64,140,216)}.transact-content{display:flex;flex-direction:column;align-items:start;overflow-y:scroll;overflow-x:hidden;height:calc(94vh - 45px)}.disabled{cursor:not-allowed!important;background-color:#ccc}.disabled:hover{cursor:not-allowed!important;background-color:#ccc!important}.contracts-container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:start;min-width:300px;padding:15px;width:100%;margin-top:10px}.contract-container{margin-left:20px;margin-bottom:20px;min-width:250px;display:flex;flex-direction:column;align-items:start;background-color:#0b0b19;border:solid 1px rgb(158,172,181)}.contract-header{background-color:#25244c;border:solid 1px rgb(158,172,181);width:100%;padding:5px 5px 5px 10px;margin-bottom:5px;display:flex;box-sizing:border-box}.delete-contract-button{font-size:16px;background-color:#163173;border:solid 1px rgb(158,172,181);padding:2px 5px;margin:10px}.delete-contract-button-container{display:flex;justify-content:end;width:100%}.delete-contract-button:hover{background-color:#205080;cursor:pointer}.delete-contract-button:active{background-color:#6794c1;cursor:pointer}.contract-name{font-weight:700;font-size:16px}.contract-version{padding:5px;width:100%;text-align:right;box-sizing:border-box;font-size:12px}.contract-data-holder{display:flex;flex-direction:row;width:100%}.contract-params{margin-left:10px;margin-bottom:20px;display:flex;flex-direction:column;align-items:start;width:100%}.contract-params-content{margin-left:5px;font-size:12px}.contract-params-label{font-weight:700}.contracts-heading{font-size:30px;padding:10px;margin-bottom:10px;width:100%;border-bottom:5px solid rgb(64,140,216);display:flex}.add-contract-container{display:flex;flex-direction:column;align-items:start;margin-left:15px;border-left:2px solid rgb(64,140,216);border-bottom:2px solid rgb(64,140,216);min-width:300px;padding:10px}.add-contract-header{font-size:18px;font-weight:700;margin-bottom:20px}.add-contract-selection-container{display:flex;flex-direction:row;justify-content:space-between;width:100%;margin-bottom:5px}.add-contract-input-label{margin-right:50px;padding-left:20px;font-size:16px}.add-contract-select{border-radius:0;border:1px solid rgb(158,172,181)}.add-contract-button{font-size:16px;background-color:#163173;border:solid 1px rgb(158,172,181);padding:2px 5px}.add-contract-button:hover{background-color:#205080;cursor:pointer}.add-contract-button:active{background-color:#6794c1;cursor:pointer}.add-contract-button-container{margin-top:20px}.contracts-content,.wallets-content{display:flex;flex-direction:column;align-items:start;overflow-y:scroll;overflow-x:hidden;height:calc(94vh - 45px)}.wallet-utxos-container{display:flex;flex-direction:column;align-items:start}.wallet-utxos-address{padding:5px 5px 5px 15px;width:100%;display:flex;align-items:center;font-size:22px}.wallet-utxos-address .copy-widget{font-size:16px}.utxo-container{display:flex;flex-direction:column;align-items:start;margin-left:30px;border:solid 1px rgb(158,172,181);background-color:#0b0b19}.wallet-utxos{min-width:325px}.asset-container{display:flex;flex-direction:row;margin-left:15px;justify-content:space-between}.asset-label{margin-right:5px}.asset-value{margin-right:15px}.txid{background-color:#25244c;width:100%;display:flex;padding-left:10px;padding-right:10px;box-sizing:border-box;justify-content:space-between}.asset-container-container{width:100%}.editor-tab-container{display:flex;flex-direction:row;align-items:center;justify-content:start;max-width:100%;overflow-x:scroll;overflow-y:hidden;scrollbar-width:thin;padding:0;scrollbar-color:rgb(175,13,126,.3) rgb(55,25,45,1);scroll-padding:0px;scroll-margin:0px;height:45px;min-height:45px}.editor-tab{background-color:#161616;min-width:200px;max-width:200px;height:100%;border-right:1px solid black;display:flex;justify-content:center;align-items:center}.highlight-open-focused-tab{background-color:#1e1e1e;border-bottom:1px solid rgb(164,28,148)}.editor-tab:hover{background-color:#e417c622;cursor:pointer}.editor-tab-label{max-width:100%;overflow:hidden;padding:15px;text-overflow:ellipsis;display:flex}.file-manager-container{display:flex;flex-direction:column;width:10vw;min-width:10vw;background-color:#1e1e1e}.file-manager-header{background-color:#3e3e3e;display:flex;padding-left:10px;padding-right:10px;border-right:1px solid rgb(67,67,67);justify-content:space-between}.file-manager-file-list{background-color:#1e1e1e;display:flex;flex-direction:column;align-items:start;padding:0;margin:0;width:100%;height:100%}.file-manager-file-entry{width:94%;border:1px solid transparent;border-image:linear-gradient(to left,#fff0,#a41c94) 1 stretch;display:flex;align-items:center;justify-content:start;padding-left:10px}.file-manager-file-entry:hover{background-color:#e417c622;cursor:pointer}.filename-start{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filename-end{flex-shrink:0;white-space:nowrap}.highlight-open-file{font-style:italic}.highlight-open-focused-file{border:1px solid transparent;border-image:linear-gradient(to left,#01dc2d95,#a41c94) 1 stretch}.add-file-icon{display:flex;align-items:center;justify-content:center}.add-file-icon:hover{color:#fff;cursor:pointer}.add-file-icon-plus{color:#75dd75}.file-rename-entry{border:solid 1px white;background-color:#490234}.file-rename-input{border:none;font-size:16px;background-color:#0000}.file-rename-input:hover{border:none}.file-rename-input:focus{border:none;outline:none}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} diff --git a/assets/index-D5zrKYz6.css b/assets/index-D5zrKYz6.css new file mode 100644 index 0000000..126044a --- /dev/null +++ b/assets/index-D5zrKYz6.css @@ -0,0 +1 @@ +#root{margin:0 auto;text-align:center}body{overflow-y:hidden}.main-layout-container{display:flex;flex-direction:column;border:solid 1px black;overflow:hidden}.editor-and-management-view-container{display:flex;flex-direction:row;background-color:#161616;width:100%;max-width:100%}.editor-container{display:flex;flex-direction:column;width:100%;max-width:60vw;flex:1}.editor-content-container{display:flex;flex-direction:row}.editor-and-tabs-container{max-width:100%;min-width:50vw;max-height:94vh;display:flex;flex-direction:column}.management-panel-container{display:flex;flex-direction:column;width:100%;max-width:40vw;flex:1;word-wrap:break-word;border-left:1px solid black}.tooltip{background-color:#262626f2;border:solid 1px rgb(94,94,94);color:#fff;padding:8px 10px;z-index:999;border-radius:4px;box-shadow:0 2px 10px #00000080;position:absolute;white-space:nowrap;pointer-events:none}.context-menu{min-width:200px;background-color:#262626f2;border:solid 1px rgb(94,94,94);color:#fff;z-index:999;border-radius:3px;box-shadow:0 2px 10px #00000080;position:absolute;white-space:nowrap;display:flex;flex-direction:column;align-items:start;justify-content:center}.context-menu-item{display:flex;width:100%;padding:5px;box-sizing:border-box}.context-menu-item:hover{background-color:#464646}.hidden{display:none}.unselectable{-webkit-user-select:none;user-select:none}.disabled{opacity:.5}.disabled:hover{background-color:#0000;cursor:default}.copy-widget{margin-left:10px}.input-label{font-size:12px;font-weight:700;margin-bottom:2px}.top-bar{display:flex;align-items:center;justify-content:left;border-bottom:solid 1px black;font-size:20px;height:4vh;max-height:4vh;overflow:hidden}.editor-top-bar{background-color:#68114b}.management-top-bar{background-color:#125cc34d}.top-bar-item{padding:5px;margin-top:none;margin-right:20px}.editor-top-bar-item{padding:5px;margin-top:none;margin-right:20px;transition:background-color .25s linear}.editor-top-bar-item:hover{cursor:pointer;background-color:#a05f7e;transition:background-color .25s linear}.no-last-build-notice{margin-left:10px}.build-results-content{display:flex;flex-direction:column;align-items:start;overflow-y:scroll;overflow-x:hidden;height:calc(94vh - 45px)}.management-section-heading{font-size:30px;padding:10px;margin-bottom:10px;width:100%;border-bottom:5px solid rgb(64,140,216);display:flex}.summary{display:flex;flex-direction:row;padding:0;margin:0}.summary-entry{margin:5px}.build-result-heading{font-size:24px}.warning-number{color:#f6f679}.error-number{color:#f15151}.test-number{color:#5189f1}.build-results-section{display:flex;flex-direction:column;align-items:start;padding:0 10px 10px;margin-left:15px;margin-top:15px}.tests{border-left:3px solid rgb(81,137,241)}.warnings{border-left:3px solid rgb(246,246,121)}.build-results-individual-result{padding:5px;background-color:#232324;margin:10px;display:flex;flex-direction:column;align-items:start;font-family:monospace;text-align:left}.warning-item{padding:5px 5px 5px 15px}.errors{border-left:3px solid rgb(241,81,81)}.error-item{padding:5px 5px 5px 15px}.build-result-container{display:flex;flex-direction:column;align-items:start;width:100%;margin:0 10px 10px}.build-result-filename{padding:5px;margin-left:10px;font-size:26px;display:flex;box-sizing:border-box}.management-tab-container{display:flex;flex-direction:row;align-items:center;justify-content:start;max-width:100%;overflow-x:scroll;overflow-y:hidden;scrollbar-width:thin;padding:0;scrollbar-color:rgba(18,92,195,.3) rgb(11,36,68,.7);scroll-padding:0px;scroll-margin:0px;height:45px;min-height:45px}.management-tab{background-color:#161616;min-width:100px;max-width:150px;height:100%;border-right:1px solid rgb(18,92,195,.3);display:flex;justify-content:center;align-items:center}.management-tab:hover{background-color:#4317e422;cursor:pointer}.highlight-focused-management-tab{background-color:#1e1e1e;border-bottom:1px solid rgb(64,140,216)}.transact-content{display:flex;flex-direction:column;align-items:start;overflow-y:scroll;overflow-x:hidden;height:calc(94vh - 45px)}.disabled{cursor:not-allowed!important;background-color:#ccc}.disabled:hover{cursor:not-allowed!important;background-color:#ccc!important}.contracts-container{display:flex;flex-direction:row;flex-wrap:wrap;align-items:start;min-width:300px;padding:15px;width:100%;margin-top:10px}.contract-container{margin-left:20px;margin-bottom:20px;min-width:250px;display:flex;flex-direction:column;align-items:start;background-color:#0b0b19;border:solid 1px rgb(158,172,181)}.contract-header{background-color:#25244c;border:solid 1px rgb(158,172,181);width:100%;padding:5px 5px 5px 10px;margin-bottom:5px;display:flex;box-sizing:border-box}.button{font-size:16px;background-color:#163173;border:solid 1px rgb(158,172,181);padding:2px}.button:hover{background-color:#205080;cursor:pointer}.button:active{background-color:#6794c1;cursor:pointer}.delete-contract-button{padding-left:5px;padding-right:5px;margin:10px}.delete-contract-button-container{display:flex;justify-content:end;width:100%}.contract-name{font-weight:700;font-size:16px}.contract-version{padding:5px;width:100%;text-align:right;box-sizing:border-box;font-size:12px}.contract-data-holder{display:flex;flex-direction:row;width:100%}.contract-params{margin-left:10px;margin-bottom:20px;display:flex;flex-direction:column;align-items:start;width:100%}.contract-params-content{margin-left:5px;font-size:12px}.contract-params-label{font-weight:700}.contracts-heading{font-size:30px;padding:10px;margin-bottom:10px;width:100%;border-bottom:5px solid rgb(64,140,216);display:flex}.add-contract-container{display:flex;flex-direction:column;align-items:start;margin-left:15px;border-left:2px solid rgb(64,140,216);border-bottom:2px solid rgb(64,140,216);min-width:200px;padding:10px}.add-contract-content{display:flex;flex-direction:row}.add-contract-header{font-size:18px;font-weight:700;margin-bottom:20px}.add-contract-selection-container{display:flex;flex-direction:column;justify-content:space-between;align-items:start;margin-right:10px}.add-contract-select{border-radius:0;border:1px solid rgb(158,172,181)}.add-contract-button{padding-left:5px;padding-right:5px}.add-contract-button:hover{background-color:#205080;cursor:pointer}.add-contract-button:active{background-color:#6794c1;cursor:pointer}.add-contract-button-container{margin-top:20px}.contracts-content,.wallets-content{display:flex;flex-direction:column;align-items:start;overflow-y:scroll;overflow-x:hidden;height:calc(94vh - 45px)}.wallet-utxos-container{display:flex;flex-direction:column;align-items:start}.wallet-utxos-address{padding:5px 5px 5px 15px;width:100%;display:flex;align-items:center;font-size:22px}.wallet-utxos-address .copy-widget{font-size:16px}.utxo-container{display:flex;flex-direction:column;align-items:start;border:solid 1px rgb(158,172,181);background-color:#0b0b19}.wallet-utxos{min-width:325px;margin-left:30px}.asset-container{display:flex;flex-direction:row;margin-left:15px;justify-content:space-between}.asset-label{margin-right:5px}.asset-value{margin-right:15px}.txid{background-color:#25244c;width:100%;display:flex;padding-left:10px;padding-right:10px;box-sizing:border-box;justify-content:space-between}.asset-container-container{width:100%}.utxo-selection-container{width:calc(100% - 40px);margin:20px;display:flex;flex-direction:column;justify-content:start}.utxo-utxo-selection-container{margin-top:20px;display:flex;width:5px;justify-content:space-between;width:100%;flex-wrap:wrap;gap:20px}.utxo-selection-container-options{display:flex}.utxo-source-selection-container{display:flex;flex-direction:column;align-items:start}.utxo-address-selection-container,.utxo-redeemer-selection-container{display:flex;flex-direction:column;align-items:start;padding-left:10px}.utxo-selection-submit-container{display:flex;flex-direction:column;justify-content:end;padding-left:10px}.utxo-source-select{border-radius:0;border:1px solid rgb(158,172,181)}.transact-spend-section{display:flex;flex-direction:column;align-items:start;border-left:solid 3px #408cd8;margin-left:20px;width:calc(100% - 40px)}.transact-spend-header{font-size:26px;margin-left:20px}.address-text-input{border:1px solid white;font-size:16px;background-color:#0000;height:17px}.address-text-input:hover{border:1px solid white}.address-text-input:focus{border:1px solid white;outline:none}.utxo-wrapper-with-checkbox{display:flex;flex-direction:row}.utxo-selection-checkbox{margin-right:10px}.selected-utxo-border{border:solid 1px rgb(145,239,145)}.selection-submit-button{font-size:12.5px}.transact-spends-container{margin-left:20px;display:flex;flex-direction:row;gap:20px;flex-wrap:wrap}.transact-no-spends-yet-message{font-size:14px}.transact-spend-container{font-size:14px;display:flex;flex-direction:column;align-items:start;border:1px solid rgb(158,172,181);background-color:#052707}.transact-spends-count-message{font-size:14px}.transact-spend-message-container{margin-left:20px;margin-bottom:10px}.transact-spend-address{padding-left:5px;padding-right:5px;margin-right:20px}.transact-spend-close{padding:2px;cursor:pointer;font-size:1px}.transact-spend-redeemer{padding-left:5px;padding-right:5px;margin-top:5px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:start}.transact-spend-redeemer-filename{margin-top:-5px;padding-left:10px}.transact-spend-utxos{padding-left:5px;padding-right:5px;margin-top:5px;width:100%;box-sizing:border-box;display:flex;flex-direction:column;align-items:start}.transact-spend-utxo-display{padding:5px;margin-top:-5px}.transact-spend-address-and-close{display:flex;background-color:#25244c;align-items:center}.editor-tab-container{display:flex;flex-direction:row;align-items:center;justify-content:start;max-width:100%;overflow-x:scroll;overflow-y:hidden;scrollbar-width:thin;padding:0;scrollbar-color:rgb(175,13,126,.3) rgb(55,25,45,1);scroll-padding:0px;scroll-margin:0px;height:45px;min-height:45px}.editor-tab{background-color:#161616;min-width:200px;max-width:200px;height:100%;border-right:1px solid black;display:flex;justify-content:center;align-items:center}.highlight-open-focused-tab{background-color:#1e1e1e;border-bottom:1px solid rgb(164,28,148)}.editor-tab:hover{background-color:#e417c622;cursor:pointer}.editor-tab-label{max-width:100%;overflow:hidden;padding:15px;text-overflow:ellipsis;display:flex}.file-manager-container{display:flex;flex-direction:column;width:10vw;min-width:10vw;background-color:#1e1e1e}.file-manager-header{background-color:#3e3e3e;display:flex;padding-left:10px;padding-right:10px;border-right:1px solid rgb(67,67,67);justify-content:space-between}.file-manager-file-list{background-color:#1e1e1e;display:flex;flex-direction:column;align-items:start;padding:0;margin:0;width:100%;height:100%}.file-manager-file-entry{width:94%;border:1px solid transparent;border-image:linear-gradient(to left,#fff0,#a41c94) 1 stretch;display:flex;align-items:center;justify-content:start;padding-left:10px}.file-manager-file-entry:hover{background-color:#e417c622;cursor:pointer}.filename-start{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filename-end{flex-shrink:0;white-space:nowrap}.highlight-open-file{font-style:italic}.highlight-open-focused-file{border:1px solid transparent;border-image:linear-gradient(to left,#01dc2d95,#a41c94) 1 stretch}.add-file-icon{display:flex;align-items:center;justify-content:center}.add-file-icon:hover{color:#fff;cursor:pointer}.add-file-icon-plus{color:#75dd75}.file-rename-entry{border:solid 1px white;background-color:#490234}.file-rename-input{border:none;font-size:16px;background-color:#0000}.file-rename-input:hover{border:none}.file-rename-input:focus{border:none;outline:none}:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale} diff --git a/assets/index-DEO0I1-m.js b/assets/index-DEO0I1-m.js new file mode 100644 index 0000000..539d011 --- /dev/null +++ b/assets/index-DEO0I1-m.js @@ -0,0 +1,75 @@ +(async()=>{function Ev(n,t){for(var e=0;e_[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const _ of document.querySelectorAll('link[rel="modulepreload"]'))e(_);new MutationObserver(_=>{for(const a of _)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&e(i)}).observe(document,{childList:!0,subtree:!0});function t(_){const a={};return _.integrity&&(a.integrity=_.integrity),_.referrerPolicy&&(a.referrerPolicy=_.referrerPolicy),_.crossOrigin==="use-credentials"?a.credentials="include":_.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function e(_){if(_.ep)return;_.ep=!0;const a=t(_);fetch(_.href,a)}})();function Ov(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Gp={exports:{}},dc={},Xp={exports:{}},bt={},qs=Symbol.for("react.element"),Nv=Symbol.for("react.portal"),zv=Symbol.for("react.fragment"),Rv=Symbol.for("react.strict_mode"),Pv=Symbol.for("react.profiler"),Iv=Symbol.for("react.provider"),Fv=Symbol.for("react.context"),Tv=Symbol.for("react.forward_ref"),Av=Symbol.for("react.suspense"),Mv=Symbol.for("react.memo"),Dv=Symbol.for("react.lazy"),Yp=Symbol.iterator;function Bv(n){return n===null||typeof n!="object"?null:(n=Yp&&n[Yp]||n["@@iterator"],typeof n=="function"?n:null)}var Zp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tf=Object.assign,ef={};function Hi(n,t,e){this.props=n,this.context=t,this.refs=ef,this.updater=e||Zp}Hi.prototype.isReactComponent={},Hi.prototype.setState=function(n,t){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,t,"setState")},Hi.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function nf(){}nf.prototype=Hi.prototype;function sd(n,t,e){this.props=n,this.context=t,this.refs=ef,this.updater=e||Zp}var od=sd.prototype=new nf;od.constructor=sd,tf(od,Hi.prototype),od.isPureReactComponent=!0;var rf=Array.isArray,af=Object.prototype.hasOwnProperty,cd={current:null},_f={key:!0,ref:!0,__self:!0,__source:!0};function sf(n,t,e){var _,a={},i=null,o=null;if(t!=null)for(_ in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)af.call(t,_)&&!_f.hasOwnProperty(_)&&(a[_]=t[_]);var c=arguments.length-2;if(c===1)a.children=e;else if(1>>1,M=$[I];if(0>>1;Ia(nt,ft))Ita(Be,nt)?($[I]=Be,$[It]=ft,I=It):($[I]=nt,$[V]=ft,I=V);else if(Ita(Be,ft))$[I]=Be,$[It]=ft,I=It;else break t}}return st}function a($,st){var ft=$.sortIndex-st.sortIndex;return ft!==0?ft:$.id-st.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,c=o.now();n.unstable_now=function(){return o.now()-c}}var d=[],f=[],h=1,v=null,y=3,x=!1,O=!1,z=!1,D=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g($){for(var st=e(f);st!==null;){if(st.callback===null)_(f);else if(st.startTime<=$)_(f),st.sortIndex=st.expirationTime,t(d,st);else break;st=e(f)}}function F($){if(z=!1,g($),!O)if(e(d)!==null)O=!0,xt(A);else{var st=e(f);st!==null&&De(F,st.startTime-$)}}function A($,st){O=!1,z&&(z=!1,m(U),U=-1),x=!0;var ft=y;try{for(g(st),v=e(d);v!==null&&(!(v.expirationTime>st)||$&&!Y());){var I=v.callback;if(typeof I=="function"){v.callback=null,y=v.priorityLevel;var M=I(v.expirationTime<=st);st=n.unstable_now(),typeof M=="function"?v.callback=M:v===e(d)&&_(d),g(st)}else _(d);v=e(d)}if(v!==null)var Q=!0;else{var V=e(f);V!==null&&De(F,V.startTime-st),Q=!1}return Q}finally{v=null,y=ft,x=!1}}var B=!1,T=null,U=-1,Z=5,P=-1;function Y(){return!(n.unstable_now()-P$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<$?Math.floor(1e3/$):5},n.unstable_getCurrentPriorityLevel=function(){return y},n.unstable_getFirstCallbackNode=function(){return e(d)},n.unstable_next=function($){switch(y){case 1:case 2:case 3:var st=3;break;default:st=y}var ft=y;y=st;try{return $()}finally{y=ft}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function($,st){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var ft=y;y=$;try{return st()}finally{y=ft}},n.unstable_scheduleCallback=function($,st,ft){var I=n.unstable_now();switch(typeof ft=="object"&&ft!==null?(ft=ft.delay,ft=typeof ft=="number"&&0I?($.sortIndex=ft,t(f,$),e(d)===null&&$===e(f)&&(z?(m(U),U=-1):z=!0,De(F,ft-I))):($.sortIndex=M,t(d,$),O||x||(O=!0,xt(A))),$},n.unstable_shouldYield=Y,n.unstable_wrapCallback=function($){var st=y;return function(){var ft=y;y=st;try{return $.apply(this,arguments)}finally{y=ft}}}})(pf),uf.exports=pf;var Gv=uf.exports,ff=q,en=Gv;function L(n){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+n,e=1;e"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pd=Object.prototype.hasOwnProperty,Xv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,gf={},hf={};function Yv(n){return pd.call(hf,n)?!0:pd.call(gf,n)?!1:Xv.test(n)?hf[n]=!0:(gf[n]=!0,!1)}function Zv(n,t,e,_){if(e!==null&&e.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return _?!1:e!==null?!e.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function tk(n,t,e,_){if(t===null||typeof t>"u"||Zv(n,t,e,_))return!0;if(_)return!1;if(e!==null)switch(e.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Oe(n,t,e,_,a,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=_,this.attributeNamespace=a,this.mustUseProperty=e,this.propertyName=n,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){le[n]=new Oe(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var t=n[0];le[t]=new Oe(t,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){le[n]=new Oe(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){le[n]=new Oe(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){le[n]=new Oe(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){le[n]=new Oe(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){le[n]=new Oe(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){le[n]=new Oe(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){le[n]=new Oe(n,5,!1,n.toLowerCase(),null,!1,!1)});var fd=/[\-:]([a-z])/g;function wd(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var t=n.replace(fd,wd);le[t]=new Oe(t,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var t=n.replace(fd,wd);le[t]=new Oe(t,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var t=n.replace(fd,wd);le[t]=new Oe(t,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){le[n]=new Oe(n,1,!1,n.toLowerCase(),null,!1,!1)}),le.xlinkHref=new Oe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){le[n]=new Oe(n,1,!1,n.toLowerCase(),null,!0,!0)});function gd(n,t,e,_){var a=le.hasOwnProperty(t)?le[t]:null;(a!==null?a.type!==0:_||!(2c||a[o]!==i[c]){var d=` +`+a[o].replace(" at new "," at ");return n.displayName&&d.includes("")&&(d=d.replace("",n.displayName)),d}while(1<=o&&0<=c);break}}}finally{jd=!1,Error.prepareStackTrace=e}return(n=n?n.displayName||n.name:"")?Ws(n):""}function ek(n){switch(n.tag){case 5:return Ws(n.type);case 16:return Ws("Lazy");case 13:return Ws("Suspense");case 19:return Ws("SuspenseList");case 0:case 2:case 15:return n=Sd(n.type,!1),n;case 11:return n=Sd(n.type.render,!1),n;case 1:return n=Sd(n.type,!0),n;default:return""}}function Cd(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Ji:return"Fragment";case Ki:return"Portal";case bd:return"Profiler";case hd:return"StrictMode";case md:return"Suspense";case vd:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case yf:return(n.displayName||"Context")+".Consumer";case bf:return(n._context.displayName||"Context")+".Provider";case yd:var t=n.render;return n=n.displayName,n||(n=t.displayName||t.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case kd:return t=n.displayName||null,t!==null?t:Cd(n.type)||"Memo";case i_:t=n._payload,n=n._init;try{return Cd(n(t))}catch{}}return null}function nk(n){var t=n.type;switch(n.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=t.render,n=n.displayName||n.name||"",t.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Cd(t);case 8:return t===hd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function s_(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function kf(n){var t=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function rk(n){var t=kf(n)?"checked":"value",e=Object.getOwnPropertyDescriptor(n.constructor.prototype,t),_=""+n[t];if(!n.hasOwnProperty(t)&&typeof e<"u"&&typeof e.get=="function"&&typeof e.set=="function"){var a=e.get,i=e.set;return Object.defineProperty(n,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){_=""+o,i.call(this,o)}}),Object.defineProperty(n,t,{enumerable:e.enumerable}),{getValue:function(){return _},setValue:function(o){_=""+o},stopTracking:function(){n._valueTracker=null,delete n[t]}}}}function gc(n){n._valueTracker||(n._valueTracker=rk(n))}function xf(n){if(!n)return!1;var t=n._valueTracker;if(!t)return!0;var e=t.getValue(),_="";return n&&(_=kf(n)?n.checked?"true":"false":n.value),n=_,n!==e?(t.setValue(n),!0):!1}function hc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Ed(n,t){var e=t.checked;return At({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:e??n._wrapperState.initialChecked})}function jf(n,t){var e=t.defaultValue==null?"":t.defaultValue,_=t.checked!=null?t.checked:t.defaultChecked;e=s_(t.value!=null?t.value:e),n._wrapperState={initialChecked:_,initialValue:e,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Sf(n,t){t=t.checked,t!=null&&gd(n,"checked",t,!1)}function Od(n,t){Sf(n,t);var e=s_(t.value),_=t.type;if(e!=null)_==="number"?(e===0&&n.value===""||n.value!=e)&&(n.value=""+e):n.value!==""+e&&(n.value=""+e);else if(_==="submit"||_==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Nd(n,t.type,e):t.hasOwnProperty("defaultValue")&&Nd(n,t.type,s_(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function Cf(n,t,e){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var _=t.type;if(!(_!=="submit"&&_!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+n._wrapperState.initialValue,e||t===n.value||(n.value=t),n.defaultValue=t}e=n.name,e!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,e!==""&&(n.name=e)}function Nd(n,t,e){(t!=="number"||hc(n.ownerDocument)!==n)&&(e==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+e&&(n.defaultValue=""+e))}var Ks=Array.isArray;function Qi(n,t,e,_){if(n=n.options,t){t={};for(var a=0;a"+t.valueOf().toString()+"",t=bc.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;t.firstChild;)n.appendChild(t.firstChild)}});function Js(n,t){if(t){var e=n.firstChild;if(e&&e===n.lastChild&&e.nodeType===3){e.nodeValue=t;return}}n.textContent=t}var Qs={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ak=["Webkit","ms","Moz","O"];Object.keys(Qs).forEach(function(n){ak.forEach(function(t){t=t+n.charAt(0).toUpperCase()+n.substring(1),Qs[t]=Qs[n]})});function Pf(n,t,e){return t==null||typeof t=="boolean"||t===""?"":e||typeof t!="number"||t===0||Qs.hasOwnProperty(n)&&Qs[n]?(""+t).trim():t+"px"}function If(n,t){n=n.style;for(var e in t)if(t.hasOwnProperty(e)){var _=e.indexOf("--")===0,a=Pf(e,t[e],_);e==="float"&&(e="cssFloat"),_?n.setProperty(e,a):n[e]=a}}var _k=At({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pd(n,t){if(t){if(_k[n]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,n));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Id(n,t){if(n.indexOf("-")===-1)return typeof t.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Fd=null;function Td(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Ad=null,Gi=null,Xi=null;function Ff(n){if(n=bo(n)){if(typeof Ad!="function")throw Error(L(280));var t=n.stateNode;t&&(t=Uc(t),Ad(n.stateNode,n.type,t))}}function Tf(n){Gi?Xi?Xi.push(n):Xi=[n]:Gi=n}function Af(){if(Gi){var n=Gi,t=Xi;if(Xi=Gi=null,Ff(n),t)for(n=0;n>>=0,n===0?32:31-(gk(n)/hk|0)|0}var xc=64,jc=4194304;function Zs(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Sc(n,t){var e=n.pendingLanes;if(e===0)return 0;var _=0,a=n.suspendedLanes,i=n.pingedLanes,o=e&268435455;if(o!==0){var c=o&~a;c!==0?_=Zs(c):(i&=o,i!==0&&(_=Zs(i)))}else o=e&~a,o!==0?_=Zs(o):i!==0&&(_=Zs(i));if(_===0)return 0;if(t!==0&&t!==_&&!(t&a)&&(a=_&-_,i=t&-t,a>=i||a===16&&(i&4194240)!==0))return t;if(_&4&&(_|=e&16),t=n.entangledLanes,t!==0)for(n=n.entanglements,t&=_;0e;e++)t.push(n);return t}function to(n,t,e){n.pendingLanes|=t,t!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,t=31-$n(t),n[t]=e}function vk(n,t){var e=n.pendingLanes&~t;n.pendingLanes=t,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=t,n.mutableReadLanes&=t,n.entangledLanes&=t,t=n.entanglements;var _=n.eventTimes;for(n=n.expirationTimes;0=oo),lw=" ",dw=!1;function uw(n,t){switch(n){case"keyup":return Qk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pw(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var ts=!1;function Xk(n,t){switch(n){case"compositionend":return pw(t);case"keypress":return t.which!==32?null:(dw=!0,lw);case"textInput":return n=t.data,n===lw&&dw?null:n;default:return null}}function Yk(n,t){if(ts)return n==="compositionend"||!tu&&uw(n,t)?(n=aw(),zc=Jd=u_=null,ts=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:e,offset:t-n};n=_}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=mw(e)}}function kw(n,t){return n&&t?n===t?!0:n&&n.nodeType===3?!1:t&&t.nodeType===3?kw(n,t.parentNode):"contains"in n?n.contains(t):n.compareDocumentPosition?!!(n.compareDocumentPosition(t)&16):!1:!1}function xw(){for(var n=window,t=hc();t instanceof n.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)n=t.contentWindow;else break;t=hc(n.document)}return t}function ru(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return t&&(t==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||t==="textarea"||n.contentEditable==="true")}function s4(n){var t=xw(),e=n.focusedElem,_=n.selectionRange;if(t!==e&&e&&e.ownerDocument&&kw(e.ownerDocument.documentElement,e)){if(_!==null&&ru(e)){if(t=_.start,n=_.end,n===void 0&&(n=t),"selectionStart"in e)e.selectionStart=t,e.selectionEnd=Math.min(n,e.value.length);else if(n=(t=e.ownerDocument||document)&&t.defaultView||window,n.getSelection){n=n.getSelection();var a=e.textContent.length,i=Math.min(_.start,a);_=_.end===void 0?i:Math.min(_.end,a),!n.extend&&i>_&&(a=_,_=i,i=a),a=vw(e,i);var o=vw(e,_);a&&o&&(n.rangeCount!==1||n.anchorNode!==a.node||n.anchorOffset!==a.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),n.removeAllRanges(),i>_?(n.addRange(t),n.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),n.addRange(t)))}}for(t=[],n=e;n=n.parentNode;)n.nodeType===1&&t.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof e.focus=="function"&&e.focus(),e=0;e=document.documentMode,es=null,au=null,po=null,_u=!1;function jw(n,t,e){var _=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;_u||es==null||es!==hc(_)||(_=es,"selectionStart"in _&&ru(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),po&&uo(po,_)||(po=_,_=Dc(au,"onSelect"),0<_.length&&(t=new Qd("onSelect","select",null,t,e),n.push({event:t,listeners:_}),t.target=es)))}function Tc(n,t){var e={};return e[n.toLowerCase()]=t.toLowerCase(),e["Webkit"+n]="webkit"+t,e["Moz"+n]="moz"+t,e}var ns={animationend:Tc("Animation","AnimationEnd"),animationiteration:Tc("Animation","AnimationIteration"),animationstart:Tc("Animation","AnimationStart"),transitionend:Tc("Transition","TransitionEnd")},iu={},Sw={};Yr&&(Sw=document.createElement("div").style,"AnimationEvent"in window||(delete ns.animationend.animation,delete ns.animationiteration.animation,delete ns.animationstart.animation),"TransitionEvent"in window||delete ns.transitionend.transition);function Ac(n){if(iu[n])return iu[n];if(!ns[n])return n;var t=ns[n],e;for(e in t)if(t.hasOwnProperty(e)&&e in Sw)return iu[n]=t[e];return n}var Cw=Ac("animationend"),Ew=Ac("animationiteration"),Ow=Ac("animationstart"),Nw=Ac("transitionend"),zw=new Map,Rw="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function p_(n,t){zw.set(n,t),ii(t,[n])}for(var su=0;suis||(n.current=hu[is],hu[is]=null,is--)}function Ot(n,t){is++,hu[is]=n.current,n.current=t}var g_={},be=w_(g_),Le=w_(!1),ci=g_;function ss(n,t){var e=n.type.contextTypes;if(!e)return g_;var _=n.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===t)return _.__reactInternalMemoizedMaskedChildContext;var a={},i;for(i in e)a[i]=t[i];return _&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=t,n.__reactInternalMemoizedMaskedChildContext=a),a}function Ue(n){return n=n.childContextTypes,n!=null}function Vc(){Rt(Le),Rt(be)}function Bw(n,t,e){if(be.current!==g_)throw Error(L(168));Ot(be,t),Ot(Le,e)}function Lw(n,t,e){var _=n.stateNode;if(t=t.childContextTypes,typeof _.getChildContext!="function")return e;_=_.getChildContext();for(var a in _)if(!(a in t))throw Error(L(108,nk(n)||"Unknown",a));return At({},e,_)}function qc(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||g_,ci=be.current,Ot(be,n),Ot(Le,Le.current),!0}function Uw(n,t,e){var _=n.stateNode;if(!_)throw Error(L(169));e?(n=Lw(n,t,ci),_.__reactInternalMemoizedMergedChildContext=n,Rt(Le),Rt(be),Ot(be,n)):Rt(Le),Ot(Le,e)}var ea=null,$c=!1,bu=!1;function Vw(n){ea===null?ea=[n]:ea.push(n)}function y4(n){$c=!0,Vw(n)}function h_(){if(!bu&&ea!==null){bu=!0;var n=0,t=jt;try{var e=ea;for(jt=1;n>=o,a-=o,na=1<<32-$n(t)+a|e<U?(Z=T,T=null):Z=T.sibling;var P=y(m,T,g[U],F);if(P===null){T===null&&(T=Z);break}n&&T&&P.alternate===null&&t(m,T),b=i(P,b,U),B===null?A=P:B.sibling=P,B=P,T=Z}if(U===g.length)return e(m,T),Ft&&di(m,U),A;if(T===null){for(;UU?(Z=T,T=null):Z=T.sibling;var Y=y(m,T,P.value,F);if(Y===null){T===null&&(T=Z);break}n&&T&&Y.alternate===null&&t(m,T),b=i(Y,b,U),B===null?A=Y:B.sibling=Y,B=Y,T=Z}if(P.done)return e(m,T),Ft&&di(m,U),A;if(T===null){for(;!P.done;U++,P=g.next())P=v(m,P.value,F),P!==null&&(b=i(P,b,U),B===null?A=P:B.sibling=P,B=P);return Ft&&di(m,U),A}for(T=_(m,T);!P.done;U++,P=g.next())P=x(T,m,U,P.value,F),P!==null&&(n&&P.alternate!==null&&T.delete(P.key===null?U:P.key),b=i(P,b,U),B===null?A=P:B.sibling=P,B=P);return n&&T.forEach(function(qt){return t(m,qt)}),Ft&&di(m,U),A}function D(m,b,g,F){if(typeof g=="object"&&g!==null&&g.type===Ji&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case wc:t:{for(var A=g.key,B=b;B!==null;){if(B.key===A){if(A=g.type,A===Ji){if(B.tag===7){e(m,B.sibling),b=a(B,g.props.children),b.return=m,m=b;break t}}else if(B.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===i_&&ng(A)===B.type){e(m,B.sibling),b=a(B,g.props),b.ref=yo(m,B,g),b.return=m,m=b;break t}e(m,B);break}else t(m,B);B=B.sibling}g.type===Ji?(b=yi(g.props.children,m.mode,F,g.key),b.return=m,m=b):(F=bl(g.type,g.key,g.props,null,m.mode,F),F.ref=yo(m,b,g),F.return=m,m=F)}return o(m);case Ki:t:{for(B=g.key;b!==null;){if(b.key===B)if(b.tag===4&&b.stateNode.containerInfo===g.containerInfo&&b.stateNode.implementation===g.implementation){e(m,b.sibling),b=a(b,g.children||[]),b.return=m,m=b;break t}else{e(m,b);break}else t(m,b);b=b.sibling}b=fp(g,m.mode,F),b.return=m,m=b}return o(m);case i_:return B=g._init,D(m,b,B(g._payload),F)}if(Ks(g))return O(m,b,g,F);if(Hs(g))return z(m,b,g,F);Zc(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,b!==null&&b.tag===6?(e(m,b.sibling),b=a(b,g),b.return=m,m=b):(e(m,b),b=pp(g,m.mode,F),b.return=m,m=b),o(m)):e(m,b)}return D}var ps=rg(!0),ag=rg(!1),mo={},wr=w_(mo),vo=w_(mo),ko=w_(mo);function pi(n){if(n===mo)throw Error(L(174));return n}function Pu(n,t){switch(Ot(ko,t),Ot(vo,n),Ot(wr,mo),n=t.nodeType,n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Rd(null,"");break;default:n=n===8?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=Rd(t,n)}Rt(wr),Ot(wr,t)}function ws(){Rt(wr),Rt(vo),Rt(ko)}function _g(n){pi(ko.current);var t=pi(wr.current),e=Rd(t,n.type);t!==e&&(Ot(vo,n),Ot(wr,e))}function Iu(n){vo.current===n&&(Rt(wr),Rt(vo))}var Mt=w_(0);function tl(n){for(var t=n;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||e.data==="$?"||e.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fu=[];function Tu(){for(var n=0;ne?e:4,n(!0);var _=Au.transition;Au.transition={};try{n(!1),t()}finally{jt=e,Au.transition=_}}function xg(){return Nn().memoizedState}function x4(n,t,e){var _=x_(n);if(e={lane:_,action:e,hasEagerState:!1,eagerState:null,next:null},jg(n))Sg(t,e);else if(e=Jw(n,t,e,_),e!==null){var a=ze();Gn(e,n,_,a),Cg(e,t,_)}}function j4(n,t,e){var _=x_(n),a={lane:_,action:e,hasEagerState:!1,eagerState:null,next:null};if(jg(n))Sg(t,a);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,c=i(o,e);if(a.hasEagerState=!0,a.eagerState=c,Hn(c,o)){var d=t.interleaved;d===null?(a.next=a,Ou(t)):(a.next=d.next,d.next=a),t.interleaved=a;return}}catch{}finally{}e=Jw(n,t,a,_),e!==null&&(a=ze(),Gn(e,n,_,a),Cg(e,t,_))}}function jg(n){var t=n.alternate;return n===Dt||t!==null&&t===Dt}function Sg(n,t){xo=nl=!0;var e=n.pending;e===null?t.next=t:(t.next=e.next,e.next=t),n.pending=t}function Cg(n,t,e){if(e&4194240){var _=t.lanes;_&=n.pendingLanes,e|=_,t.lanes=e,qd(n,e)}}var _l={readContext:On,useCallback:ye,useContext:ye,useEffect:ye,useImperativeHandle:ye,useInsertionEffect:ye,useLayoutEffect:ye,useMemo:ye,useReducer:ye,useRef:ye,useState:ye,useDebugValue:ye,useDeferredValue:ye,useTransition:ye,useMutableSource:ye,useSyncExternalStore:ye,useId:ye,unstable_isNewReconciler:!1},S4={readContext:On,useCallback:function(n,t){return gr().memoizedState=[n,t===void 0?null:t],n},useContext:On,useEffect:wg,useImperativeHandle:function(n,t,e){return e=e!=null?e.concat([n]):null,rl(4194308,4,bg.bind(null,t,n),e)},useLayoutEffect:function(n,t){return rl(4194308,4,n,t)},useInsertionEffect:function(n,t){return rl(4,2,n,t)},useMemo:function(n,t){var e=gr();return t=t===void 0?null:t,n=n(),e.memoizedState=[n,t],n},useReducer:function(n,t,e){var _=gr();return t=e!==void 0?e(t):t,_.memoizedState=_.baseState=t,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:t},_.queue=n,n=n.dispatch=x4.bind(null,Dt,n),[_.memoizedState,n]},useRef:function(n){var t=gr();return n={current:n},t.memoizedState=n},useState:pg,useDebugValue:qu,useDeferredValue:function(n){return gr().memoizedState=n},useTransition:function(){var n=pg(!1),t=n[0];return n=k4.bind(null,n[1]),gr().memoizedState=n,[t,n]},useMutableSource:function(){},useSyncExternalStore:function(n,t,e){var _=Dt,a=gr();if(Ft){if(e===void 0)throw Error(L(407));e=e()}else{if(e=t(),ee===null)throw Error(L(349));fi&30||og(_,t,e)}a.memoizedState=e;var i={value:e,getSnapshot:t};return a.queue=i,wg(lg.bind(null,_,i,n),[n]),_.flags|=2048,Co(9,cg.bind(null,_,i,e,t),void 0,null),e},useId:function(){var n=gr(),t=ee.identifierPrefix;if(Ft){var e=ra,_=na;e=(_&~(1<<32-$n(_)-1)).toString(32)+e,t=":"+t+"R"+e,e=jo++,0<\/script>",n=n.removeChild(n.firstChild)):typeof _.is=="string"?n=o.createElement(e,{is:_.is}):(n=o.createElement(e),e==="select"&&(o=n,_.multiple?o.multiple=!0:_.size&&(o.size=_.size))):n=o.createElementNS(n,e),n[fr]=t,n[ho]=_,qg(n,t,!1,!1),t.stateNode=n;t:{switch(o=Id(e,_),e){case"dialog":zt("cancel",n),zt("close",n),a=_;break;case"iframe":case"object":case"embed":zt("load",n),a=_;break;case"video":case"audio":for(a=0;ays&&(t.flags|=128,_=!0,Eo(i,!1),t.lanes=4194304)}else{if(!_)if(n=tl(o),n!==null){if(t.flags|=128,_=!0,e=n.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),Eo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!Ft)return me(t),null}else 2*$t()-i.renderingStartTime>ys&&e!==1073741824&&(t.flags|=128,_=!0,Eo(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=$t(),t.sibling=null,e=Mt.current,Ot(Mt,_?e&1|2:e&1),t):(me(t),null);case 22:case 23:return lp(),_=t.memoizedState!==null,n!==null&&n.memoizedState!==null!==_&&(t.flags|=8192),_&&t.mode&1?_n&1073741824&&(me(t),t.subtreeFlags&6&&(t.flags|=8192)):me(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function I4(n,t){switch(mu(t),t.tag){case 1:return Ue(t.type)&&Vc(),n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 3:return ws(),Rt(Le),Rt(be),Tu(),n=t.flags,n&65536&&!(n&128)?(t.flags=n&-65537|128,t):null;case 5:return Iu(t),null;case 13:if(Rt(Mt),n=t.memoizedState,n!==null&&n.dehydrated!==null){if(t.alternate===null)throw Error(L(340));ls()}return n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 19:return Rt(Mt),null;case 4:return ws(),null;case 10:return Cu(t.type._context),null;case 22:case 23:return lp(),null;case 24:return null;default:return null}}var ol=!1,ve=!1,F4=typeof WeakSet=="function"?WeakSet:Set,J=null;function hs(n,t){var e=n.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(_){Lt(n,t,_)}else e.current=null}function Wg(n,t,e){try{e()}catch(_){Lt(n,t,_)}}var Kg=!1;function T4(n,t){if(du=Oc,n=xw(),ru(n)){if("selectionStart"in n)var e={start:n.selectionStart,end:n.selectionEnd};else t:{e=(e=n.ownerDocument)&&e.defaultView||window;var _=e.getSelection&&e.getSelection();if(_&&_.rangeCount!==0){e=_.anchorNode;var a=_.anchorOffset,i=_.focusNode;_=_.focusOffset;try{e.nodeType,i.nodeType}catch{e=null;break t}var o=0,c=-1,d=-1,f=0,h=0,v=n,y=null;e:for(;;){for(var x;v!==e||a!==0&&v.nodeType!==3||(c=o+a),v!==i||_!==0&&v.nodeType!==3||(d=o+_),v.nodeType===3&&(o+=v.nodeValue.length),(x=v.firstChild)!==null;)y=v,v=x;for(;;){if(v===n)break e;if(y===e&&++f===a&&(c=o),y===i&&++h===_&&(d=o),(x=v.nextSibling)!==null)break;v=y,y=v.parentNode}v=x}e=c===-1||d===-1?null:{start:c,end:d}}else e=null}e=e||{start:0,end:0}}else e=null;for(uu={focusedElem:n,selectionRange:e},Oc=!1,J=t;J!==null;)if(t=J,n=t.child,(t.subtreeFlags&1028)!==0&&n!==null)n.return=t,J=n;else for(;J!==null;){t=J;try{var O=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var z=O.memoizedProps,D=O.memoizedState,m=t.stateNode,b=m.getSnapshotBeforeUpdate(t.elementType===t.type?z:Kn(t.type,z),D);m.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(F){Lt(t,t.return,F)}if(n=t.sibling,n!==null){n.return=t.return,J=n;break}J=t.return}return O=Kg,Kg=!1,O}function Oo(n,t,e){var _=t.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var a=_=_.next;do{if((a.tag&n)===n){var i=a.destroy;a.destroy=void 0,i!==void 0&&Wg(t,e,i)}a=a.next}while(a!==_)}}function cl(n,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var e=t=t.next;do{if((e.tag&n)===n){var _=e.create;e.destroy=_()}e=e.next}while(e!==t)}}function Zu(n){var t=n.ref;if(t!==null){var e=n.stateNode;switch(n.tag){case 5:n=e;break;default:n=e}typeof t=="function"?t(n):t.current=n}}function Jg(n){var t=n.alternate;t!==null&&(n.alternate=null,Jg(t)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(t=n.stateNode,t!==null&&(delete t[fr],delete t[ho],delete t[gu],delete t[h4],delete t[b4])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Qg(n){return n.tag===5||n.tag===3||n.tag===4}function Gg(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||Qg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function tp(n,t,e){var _=n.tag;if(_===5||_===6)n=n.stateNode,t?e.nodeType===8?e.parentNode.insertBefore(n,t):e.insertBefore(n,t):(e.nodeType===8?(t=e.parentNode,t.insertBefore(n,e)):(t=e,t.appendChild(n)),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=Lc));else if(_!==4&&(n=n.child,n!==null))for(tp(n,t,e),n=n.sibling;n!==null;)tp(n,t,e),n=n.sibling}function ep(n,t,e){var _=n.tag;if(_===5||_===6)n=n.stateNode,t?e.insertBefore(n,t):e.appendChild(n);else if(_!==4&&(n=n.child,n!==null))for(ep(n,t,e),n=n.sibling;n!==null;)ep(n,t,e),n=n.sibling}var de=null,Jn=!1;function m_(n,t,e){for(e=e.child;e!==null;)Xg(n,t,e),e=e.sibling}function Xg(n,t,e){if(pr&&typeof pr.onCommitFiberUnmount=="function")try{pr.onCommitFiberUnmount(kc,e)}catch{}switch(e.tag){case 5:ve||hs(e,t);case 6:var _=de,a=Jn;de=null,m_(n,t,e),de=_,Jn=a,de!==null&&(Jn?(n=de,e=e.stateNode,n.nodeType===8?n.parentNode.removeChild(e):n.removeChild(e)):de.removeChild(e.stateNode));break;case 18:de!==null&&(Jn?(n=de,e=e.stateNode,n.nodeType===8?wu(n.parentNode,e):n.nodeType===1&&wu(n,e),_o(n)):wu(de,e.stateNode));break;case 4:_=de,a=Jn,de=e.stateNode.containerInfo,Jn=!0,m_(n,t,e),de=_,Jn=a;break;case 0:case 11:case 14:case 15:if(!ve&&(_=e.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){a=_=_.next;do{var i=a,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Wg(e,t,o),a=a.next}while(a!==_)}m_(n,t,e);break;case 1:if(!ve&&(hs(e,t),_=e.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=e.memoizedProps,_.state=e.memoizedState,_.componentWillUnmount()}catch(c){Lt(e,t,c)}m_(n,t,e);break;case 21:m_(n,t,e);break;case 22:e.mode&1?(ve=(_=ve)||e.memoizedState!==null,m_(n,t,e),ve=_):m_(n,t,e);break;default:m_(n,t,e)}}function Yg(n){var t=n.updateQueue;if(t!==null){n.updateQueue=null;var e=n.stateNode;e===null&&(e=n.stateNode=new F4),t.forEach(function(_){var a=$4.bind(null,n,_);e.has(_)||(e.add(_),_.then(a,a))})}}function Qn(n,t){var e=t.deletions;if(e!==null)for(var _=0;_a&&(a=o),_&=~i}if(_=a,_=$t()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*M4(_/1960))-_,10<_){n.timeoutHandle=fu(bi.bind(null,n,qe,sa),_);break}bi(n,qe,sa);break;case 5:bi(n,qe,sa);break;default:throw Error(L(329))}}}return $e(n,$t()),n.callbackNode===e?ah.bind(null,n):null}function sp(n,t){var e=zo;return n.current.memoizedState.isDehydrated&&(hi(n,t).flags|=256),n=hl(n,t),n!==2&&(t=qe,qe=e,t!==null&&op(t)),n}function op(n){qe===null?qe=n:qe.push.apply(qe,n)}function D4(n){for(var t=n;;){if(t.flags&16384){var e=t.updateQueue;if(e!==null&&(e=e.stores,e!==null))for(var _=0;_n?16:n,k_===null)var _=!1;else{if(n=k_,k_=null,fl=0,mt&6)throw Error(L(331));var a=mt;for(mt|=4,J=n.current;J!==null;){var i=J,o=i.child;if(J.flags&16){var c=i.deletions;if(c!==null){for(var d=0;d$t()-ap?hi(n,0):rp|=e),$e(n,t)}function dh(n,t){t===0&&(n.mode&1?(t=jc,jc<<=1,!(jc&130023424)&&(jc=4194304)):t=1);var e=ze();n=aa(n,t),n!==null&&(to(n,t,e),$e(n,e))}function q4(n){var t=n.memoizedState,e=0;t!==null&&(e=t.retryLane),dh(n,e)}function $4(n,t){var e=0;switch(n.tag){case 13:var _=n.stateNode,a=n.memoizedState;a!==null&&(e=a.retryLane);break;case 19:_=n.stateNode;break;default:throw Error(L(314))}_!==null&&_.delete(t),dh(n,e)}var uh;uh=function(n,t,e){if(n!==null)if(n.memoizedProps!==t.pendingProps||Le.current)Ve=!0;else{if(!(n.lanes&e)&&!(t.flags&128))return Ve=!1,R4(n,t,e);Ve=!!(n.flags&131072)}else Ve=!1,Ft&&t.flags&1048576&&qw(t,Wc,t.index);switch(t.lanes=0,t.tag){case 2:var _=t.type;sl(n,t),n=t.pendingProps;var a=ss(t,be.current);us(t,e),a=Du(null,t,_,n,a,e);var i=Bu();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ue(_)?(i=!0,qc(t)):i=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Nu(t),a.updater=Yc,t.stateNode=a,a._reactInternals=t,Ru(t,_,n,e),t=Ku(null,t,_,!0,i,e)):(t.tag=0,Ft&&i&&yu(t),Ne(null,t,a,e),t=t.child),t;case 16:_=t.elementType;t:{switch(sl(n,t),n=t.pendingProps,a=_._init,_=a(_._payload),t.type=_,a=t.tag=W4(_),n=Kn(_,n),a){case 0:t=Wu(null,t,_,n,e);break t;case 1:t=Mg(null,t,_,n,e);break t;case 11:t=Pg(null,t,_,n,e);break t;case 14:t=Ig(null,t,_,Kn(_.type,n),e);break t}throw Error(L(306,_,""))}return t;case 0:return _=t.type,a=t.pendingProps,a=t.elementType===_?a:Kn(_,a),Wu(n,t,_,a,e);case 1:return _=t.type,a=t.pendingProps,a=t.elementType===_?a:Kn(_,a),Mg(n,t,_,a,e);case 3:t:{if(Dg(t),n===null)throw Error(L(387));_=t.pendingProps,i=t.memoizedState,a=i.element,Qw(n,t),Xc(t,_,null,e);var o=t.memoizedState;if(_=o.element,i.isDehydrated)if(i={element:_,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){a=gs(Error(L(423)),t),t=Bg(n,t,_,e,a);break t}else if(_!==a){a=gs(Error(L(424)),t),t=Bg(n,t,_,e,a);break t}else for(an=f_(t.stateNode.containerInfo.firstChild),rn=t,Ft=!0,Wn=null,e=ag(t,null,_,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling;else{if(ls(),_===a){t=ia(n,t,e);break t}Ne(n,t,_,e)}t=t.child}return t;case 5:return _g(t),n===null&&ku(t),_=t.type,a=t.pendingProps,i=n!==null?n.memoizedProps:null,o=a.children,pu(_,a)?o=null:i!==null&&pu(_,i)&&(t.flags|=32),Ag(n,t),Ne(n,t,o,e),t.child;case 6:return n===null&&ku(t),null;case 13:return Lg(n,t,e);case 4:return Pu(t,t.stateNode.containerInfo),_=t.pendingProps,n===null?t.child=ps(t,null,_,e):Ne(n,t,_,e),t.child;case 11:return _=t.type,a=t.pendingProps,a=t.elementType===_?a:Kn(_,a),Pg(n,t,_,a,e);case 7:return Ne(n,t,t.pendingProps,e),t.child;case 8:return Ne(n,t,t.pendingProps.children,e),t.child;case 12:return Ne(n,t,t.pendingProps.children,e),t.child;case 10:t:{if(_=t.type._context,a=t.pendingProps,i=t.memoizedProps,o=a.value,Ot(Jc,_._currentValue),_._currentValue=o,i!==null)if(Hn(i.value,o)){if(i.children===a.children&&!Le.current){t=ia(n,t,e);break t}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){o=i.child;for(var d=c.firstContext;d!==null;){if(d.context===_){if(i.tag===1){d=_a(-1,e&-e),d.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?d.next=d:(d.next=h.next,h.next=d),f.pending=d}}i.lanes|=e,d=i.alternate,d!==null&&(d.lanes|=e),Eu(i.return,e,t),c.lanes|=e;break}d=d.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(L(341));o.lanes|=e,c=o.alternate,c!==null&&(c.lanes|=e),Eu(o,e,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ne(n,t,a.children,e),t=t.child}return t;case 9:return a=t.type,_=t.pendingProps.children,us(t,e),a=On(a),_=_(a),t.flags|=1,Ne(n,t,_,e),t.child;case 14:return _=t.type,a=Kn(_,t.pendingProps),a=Kn(_.type,a),Ig(n,t,_,a,e);case 15:return Fg(n,t,t.type,t.pendingProps,e);case 17:return _=t.type,a=t.pendingProps,a=t.elementType===_?a:Kn(_,a),sl(n,t),t.tag=1,Ue(_)?(n=!0,qc(t)):n=!1,us(t,e),tg(t,_,a),Ru(t,_,a,e),Ku(null,t,_,!0,n,e);case 19:return Vg(n,t,e);case 22:return Tg(n,t,e)}throw Error(L(156,t.tag))};function ph(n,t){return $f(n,t)}function H4(n,t,e,_){this.tag=n,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(n,t,e,_){return new H4(n,t,e,_)}function up(n){return n=n.prototype,!(!n||!n.isReactComponent)}function W4(n){if(typeof n=="function")return up(n)?1:0;if(n!=null){if(n=n.$$typeof,n===yd)return 11;if(n===kd)return 14}return 2}function S_(n,t){var e=n.alternate;return e===null?(e=Rn(n.tag,t,n.key,n.mode),e.elementType=n.elementType,e.type=n.type,e.stateNode=n.stateNode,e.alternate=n,n.alternate=e):(e.pendingProps=t,e.type=n.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=n.flags&14680064,e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},e.sibling=n.sibling,e.index=n.index,e.ref=n.ref,e}function bl(n,t,e,_,a,i){var o=2;if(_=n,typeof n=="function")up(n)&&(o=1);else if(typeof n=="string")o=5;else t:switch(n){case Ji:return yi(e.children,a,i,t);case hd:o=8,a|=8;break;case bd:return n=Rn(12,e,t,a|2),n.elementType=bd,n.lanes=i,n;case md:return n=Rn(13,e,t,a),n.elementType=md,n.lanes=i,n;case vd:return n=Rn(19,e,t,a),n.elementType=vd,n.lanes=i,n;case mf:return yl(e,a,i,t);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case bf:o=10;break t;case yf:o=9;break t;case yd:o=11;break t;case kd:o=14;break t;case i_:o=16,_=null;break t}throw Error(L(130,n==null?n:typeof n,""))}return t=Rn(o,e,t,a),t.elementType=n,t.type=_,t.lanes=i,t}function yi(n,t,e,_){return n=Rn(7,n,_,t),n.lanes=e,n}function yl(n,t,e,_){return n=Rn(22,n,_,t),n.elementType=mf,n.lanes=e,n.stateNode={isHidden:!1},n}function pp(n,t,e){return n=Rn(6,n,null,t),n.lanes=e,n}function fp(n,t,e){return t=Rn(4,n.children!==null?n.children:[],n.key,t),t.lanes=e,t.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},t}function K4(n,t,e,_,a){this.tag=t,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vd(0),this.expirationTimes=Vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vd(0),this.identifierPrefix=_,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function wp(n,t,e,_,a,i,o,c,d){return n=new K4(n,t,e,c,d),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Rn(3,null,null,t),n.current=i,i.stateNode=n,i.memoizedState={element:_,isDehydrated:e,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nu(i),n}function J4(n,t,e){var _=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(yh)}catch(n){console.error(n)}}yh(),df.exports=tn;var Z4=df.exports,mh=Z4;ud.createRoot=mh.createRoot,ud.hydrateRoot=mh.hydrateRoot;var vh={exports:{}},kh={},Io=q;function t6(n,t){return n===t&&(n!==0||1/n===1/t)||n!==n&&t!==t}var e6=typeof Object.is=="function"?Object.is:t6,n6=Io.useSyncExternalStore,r6=Io.useRef,a6=Io.useEffect,_6=Io.useMemo,i6=Io.useDebugValue;kh.useSyncExternalStoreWithSelector=function(n,t,e,_,a){var i=r6(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=_6(function(){function d(x){if(!f){if(f=!0,h=x,x=_(x),a!==void 0&&o.hasValue){var O=o.value;if(a(O,x))return v=O}return v=x}if(O=v,e6(h,x))return O;var z=_(x);return a!==void 0&&a(O,z)?O:(h=x,v=z)}var f=!1,h,v,y=e===void 0?null:e;return[function(){return d(t())},y===null?void 0:function(){return d(y())}]},[t,e,_,a]);var c=n6(n,i[0],i[1]);return a6(function(){o.hasValue=!0,o.value=c},[c]),i6(c),c},vh.exports=kh;var s6=vh.exports,sn="default"in cf?Xr:cf,xh=Symbol.for("react-redux-context"),jh=typeof globalThis<"u"?globalThis:{};function o6(){if(!sn.createContext)return{};const n=jh[xh]??(jh[xh]=new Map);let t=n.get(sn.createContext);return t||(t=sn.createContext(null),n.set(sn.createContext,t)),t}var C_=o6(),c6=()=>{throw new Error("uSES not initialized!")};function yp(n=C_){return function(){return sn.useContext(n)}}var Sh=yp(),Ch=c6,l6=n=>{Ch=n},d6=(n,t)=>n===t;function u6(n=C_){const t=n===C_?Sh:yp(n),e=(_,a={})=>{const{equalityFn:i=d6,devModeChecks:o={}}=typeof a=="function"?{equalityFn:a}:a,{store:c,subscription:d,getServerState:f,stabilityCheck:h,identityFunctionCheck:v}=t();sn.useRef(!0);const y=sn.useCallback({[_.name](O){return _(O)}}[_.name],[_,h,o.stabilityCheck]),x=Ch(d.addNestedSub,c.getState,f||c.getState,y,i);return sn.useDebugValue(x),x};return Object.assign(e,{withTypes:()=>e}),e}var Bt=u6();function p6(n){n()}function f6(){let n=null,t=null;return{clear(){n=null,t=null},notify(){p6(()=>{let e=n;for(;e;)e.callback(),e=e.next})},get(){const e=[];let _=n;for(;_;)e.push(_),_=_.next;return e},subscribe(e){let _=!0;const a=t={callback:e,next:null,prev:t};return a.prev?a.prev.next=a:n=a,function(){!_||n===null||(_=!1,a.next?a.next.prev=a.prev:t=a.prev,a.prev?a.prev.next=a.next:n=a.next)}}}}var Eh={notify(){},get:()=>[]};function w6(n,t){let e,_=Eh,a=0,i=!1;function o(z){h();const D=_.subscribe(z);let m=!1;return()=>{m||(m=!0,D(),v())}}function c(){_.notify()}function d(){O.onStateChange&&O.onStateChange()}function f(){return i}function h(){a++,e||(e=t?t.addNestedSub(d):n.subscribe(d),_=f6())}function v(){a--,e&&a===0&&(e(),e=void 0,_.clear(),_=Eh)}function y(){i||(i=!0,h())}function x(){i&&(i=!1,v())}const O={addNestedSub:o,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:f,trySubscribe:y,tryUnsubscribe:x,getListeners:()=>_};return O}var g6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",h6=g6?sn.useLayoutEffect:sn.useEffect;function b6({store:n,context:t,children:e,serverState:_,stabilityCheck:a="once",identityFunctionCheck:i="once"}){const o=sn.useMemo(()=>{const f=w6(n);return{store:n,subscription:f,getServerState:_?()=>_:void 0,stabilityCheck:a,identityFunctionCheck:i}},[n,_,a,i]),c=sn.useMemo(()=>n.getState(),[n]);h6(()=>{const{subscription:f}=o;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),c!==n.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[o,c]);const d=t||C_;return sn.createElement(d.Provider,{value:o},e)}var y6=b6;function Oh(n=C_){const t=n===C_?Sh:yp(n),e=()=>{const{store:_}=t();return _};return Object.assign(e,{withTypes:()=>e}),e}var m6=Oh();function v6(n=C_){const t=n===C_?m6:Oh(n),e=()=>t().dispatch;return Object.assign(e,{withTypes:()=>e}),e}var Pn=v6();l6(s6.useSyncExternalStoreWithSelector);let Tt;const oa=new Array(128).fill(void 0);oa.push(void 0,null,!0,!1);function vs(n){return oa[n]}let Fo=oa.length;function k6(n){n<132||(oa[n]=Fo,Fo=n)}function E_(n){const t=vs(n);return k6(n),t}const Nh=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Nh.decode();let To=null;function Cl(){return(To===null||To.byteLength===0)&&(To=new Uint8Array(Tt.memory.buffer)),To}function mp(n,t){return n=n>>>0,Nh.decode(Cl().subarray(n,n+t))}function O_(n){Fo===oa.length&&oa.push(oa.length+1);const t=Fo;return Fo=oa[t],oa[t]=n,t}let Ao=0;const El=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},x6=typeof El.encodeInto=="function"?function(n,t){return El.encodeInto(n,t)}:function(n,t){const e=El.encode(n);return t.set(e),{read:n.length,written:e.length}};function vp(n,t,e){if(e===void 0){const c=El.encode(n),d=t(c.length,1)>>>0;return Cl().subarray(d,d+c.length).set(c),Ao=c.length,d}let _=n.length,a=t(_,1)>>>0;const i=Cl();let o=0;for(;o<_;o++){const c=n.charCodeAt(o);if(c>127)break;i[a+o]=c}if(o!==_){o!==0&&(n=n.slice(o)),a=e(a,_,_=o+n.length*3,1)>>>0;const c=Cl().subarray(a+o,a+_),d=x6(n,c);o+=d.written,a=e(a,_,o,1)>>>0}return Ao=o,a}let Mo=null;function N_(){return(Mo===null||Mo.byteLength===0)&&(Mo=new Int32Array(Tt.memory.buffer)),Mo}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>Tt.__wbg_buildresult_free(n>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>Tt.__wbg_formatresult_free(n>>>0));const j6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>Tt.__wbg_project_free(n>>>0));class S6{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,j6.unregister(this),t}free(){const t=this.__destroy_into_raw();Tt.__wbg_project_free(t)}constructor(){const t=Tt.project_new();return this.__wbg_ptr=t>>>0,this}build(t,e){try{const o=Tt.__wbindgen_add_to_stack_pointer(-16),c=vp(t,Tt.__wbindgen_malloc,Tt.__wbindgen_realloc),d=Ao;Tt.project_build(o,this.__wbg_ptr,c,d,e);var _=N_()[o/4+0],a=N_()[o/4+1],i=N_()[o/4+2];if(i)throw E_(a);return E_(_)}finally{Tt.__wbindgen_add_to_stack_pointer(16)}}format(t){try{const i=Tt.__wbindgen_add_to_stack_pointer(-16),o=vp(t,Tt.__wbindgen_malloc,Tt.__wbindgen_realloc),c=Ao;Tt.project_format(i,this.__wbg_ptr,o,c);var e=N_()[i/4+0],_=N_()[i/4+1],a=N_()[i/4+2];if(a)throw E_(_);return E_(e)}finally{Tt.__wbindgen_add_to_stack_pointer(16)}}setup_stdlib(){Tt.project_setup_stdlib(this.__wbg_ptr)}}async function C6(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(_){if(n.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",_);else throw _}const e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function E6(){const n={};return n.wbg={},n.wbg.__wbindgen_object_drop_ref=function(t){E_(t)},n.wbg.__wbindgen_string_new=function(t,e){const _=mp(t,e);return O_(_)},n.wbg.__wbindgen_object_clone_ref=function(t){const e=vs(t);return O_(e)},n.wbg.__wbindgen_error_new=function(t,e){const _=new Error(mp(t,e));return O_(_)},n.wbg.__wbg_String_b9412f8799faab3e=function(t,e){const _=String(vs(e)),a=vp(_,Tt.__wbindgen_malloc,Tt.__wbindgen_realloc),i=Ao;N_()[t/4+1]=i,N_()[t/4+0]=a},n.wbg.__wbindgen_number_new=function(t){return O_(t)},n.wbg.__wbindgen_bigint_from_i64=function(t){return O_(t)},n.wbg.__wbindgen_bigint_from_u64=function(t){const e=BigInt.asUintN(64,t);return O_(e)},n.wbg.__wbg_set_f975102236d3c502=function(t,e,_){vs(t)[E_(e)]=E_(_)},n.wbg.__wbg_log_5bb5f88f245d7762=function(t){console.log(vs(t))},n.wbg.__wbg_new_16b304a2cfa7ff4a=function(){const t=new Array;return O_(t)},n.wbg.__wbg_new_72fb9a18b5ae2624=function(){const t=new Object;return O_(t)},n.wbg.__wbg_set_d4638f722068f043=function(t,e,_){vs(t)[e>>>0]=E_(_)},n.wbg.__wbindgen_throw=function(t,e){throw new Error(mp(t,e))},n}function O6(n,t){return Tt=n.exports,zh.__wbindgen_wasm_module=t,Mo=null,To=null,Tt}async function zh(n){if(Tt!==void 0)return Tt;typeof n>"u"&&(n=new URL("/aiken-ide/assets/aiken_js_bindings_bg-C175zDaU.wasm",import.meta.url));const t=E6();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:_}=await C6(await n,t);return O6(e,_)}let ks;function Rh(){const[n,t]=q.useState(ks),[e,_]=q.useState(!1),[a,i]=q.useState(null);return q.useEffect(()=>{!ks&&!e?(_(!0),zh().then(()=>{ks=new S6,t(ks)}).catch(o=>{i(o)}).finally(()=>{_(!1)})):ks&&t(ks)},[]),{project:n,isLoading:e,error:a}}function N6(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Ph(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(n);t&&(_=_.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),e.push.apply(e,_)}return e}function Ih(n){for(var t=1;t=0)&&(e[a]=n[a]);return e}function R6(n,t){if(n==null)return{};var e=z6(n,t),_,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(n,_)&&(e[_]=n[_])}return e}function P6(n,t){return I6(n)||F6(n,t)||T6(n,t)||A6()}function I6(n){if(Array.isArray(n))return n}function F6(n,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var e=[],_=!0,a=!1,i=void 0;try{for(var o=n[Symbol.iterator](),c;!(_=(c=o.next()).done)&&(e.push(c.value),!(t&&e.length===t));_=!0);}catch(d){a=!0,i=d}finally{try{!_&&o.return!=null&&o.return()}finally{if(a)throw i}}return e}}function T6(n,t){if(n){if(typeof n=="string")return Fh(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Fh(n,t)}}function Fh(n,t){(t==null||t>n.length)&&(t=n.length);for(var e=0,_=new Array(t);e=n.length?n.apply(this,a):function(){for(var o=arguments.length,c=new Array(o),d=0;d1&&arguments[1]!==void 0?arguments[1]:{};Nl.initial(n),Nl.handler(t);var e={current:n},_=Do(G6)(e,t),a=Do(Q6)(e),i=Do(Nl.changes)(n),o=Do(J6)(e);function c(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return Nl.selector(f),f(e.current)}function d(f){D6(_,a,i,o)(f)}return[c,d]}function J6(n,t){return Bo(t)?t(n.current):t}function Q6(n,t){return n.current=Ah(Ah({},n.current),t),t}function G6(n,t,e){return Bo(t)?t(n.current):Object.keys(e).forEach(function(_){var a;return(a=t[_])===null||a===void 0?void 0:a.call(t,n.current[_])}),e}var X6={create:K6},Y6={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function Z6(n){return function t(){for(var e=this,_=arguments.length,a=new Array(_),i=0;i<_;i++)a[i]=arguments[i];return a.length>=n.length?n.apply(this,a):function(){for(var o=arguments.length,c=new Array(o),d=0;d{_.current=!1}:n,t)}var on=j2;function Uo(){}function xs(n,t,e,_){return S2(n,_)||C2(n,t,e,_)}function S2(n,t){return n.editor.getModel(qh(n,t))}function C2(n,t,e,_){return n.editor.createModel(t,e,_?qh(n,_):void 0)}function qh(n,t){return n.Uri.parse(t)}function E2({original:n,modified:t,language:e,originalLanguage:_,modifiedLanguage:a,originalModelPath:i,modifiedModelPath:o,keepCurrentOriginalModel:c=!1,keepCurrentModifiedModel:d=!1,theme:f="light",loading:h="Loading...",options:v={},height:y="100%",width:x="100%",className:O,wrapperProps:z={},beforeMount:D=Uo,onMount:m=Uo}){let[b,g]=q.useState(!1),[F,A]=q.useState(!0),B=q.useRef(null),T=q.useRef(null),U=q.useRef(null),Z=q.useRef(m),P=q.useRef(D),Y=q.useRef(!1);Sp(()=>{let ut=Rl.init();return ut.then(xt=>(T.current=xt)&&A(!1)).catch(xt=>(xt==null?void 0:xt.type)!=="cancelation"&&console.error("Monaco initialization: error:",xt)),()=>B.current?Sn():ut.cancel()}),on(()=>{if(B.current&&T.current){let ut=B.current.getOriginalEditor(),xt=xs(T.current,n||"",_||e||"text",i||"");xt!==ut.getModel()&&ut.setModel(xt)}},[i],b),on(()=>{if(B.current&&T.current){let ut=B.current.getModifiedEditor(),xt=xs(T.current,t||"",a||e||"text",o||"");xt!==ut.getModel()&&ut.setModel(xt)}},[o],b),on(()=>{let ut=B.current.getModifiedEditor();ut.getOption(T.current.editor.EditorOption.readOnly)?ut.setValue(t||""):t!==ut.getValue()&&(ut.executeEdits("",[{range:ut.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),ut.pushUndoStop())},[t],b),on(()=>{var ut,xt;(xt=(ut=B.current)==null?void 0:ut.getModel())==null||xt.original.setValue(n||"")},[n],b),on(()=>{let{original:ut,modified:xt}=B.current.getModel();T.current.editor.setModelLanguage(ut,_||e||"text"),T.current.editor.setModelLanguage(xt,a||e||"text")},[e,_,a],b),on(()=>{var ut;(ut=T.current)==null||ut.editor.setTheme(f)},[f],b),on(()=>{var ut;(ut=B.current)==null||ut.updateOptions(v)},[v],b);let qt=q.useCallback(()=>{var De;if(!T.current)return;P.current(T.current);let ut=xs(T.current,n||"",_||e||"text",i||""),xt=xs(T.current,t||"",a||e||"text",o||"");(De=B.current)==null||De.setModel({original:ut,modified:xt})},[e,t,a,n,_,i,o]),he=q.useCallback(()=>{var ut;!Y.current&&U.current&&(B.current=T.current.editor.createDiffEditor(U.current,{automaticLayout:!0,...v}),qt(),(ut=T.current)==null||ut.editor.setTheme(f),g(!0),Y.current=!0)},[v,f,qt]);q.useEffect(()=>{b&&Z.current(B.current,T.current)},[b]),q.useEffect(()=>{!F&&!b&&he()},[F,b,he]);function Sn(){var xt,De,$,st;let ut=(xt=B.current)==null?void 0:xt.getModel();c||((De=ut==null?void 0:ut.original)==null||De.dispose()),d||(($=ut==null?void 0:ut.modified)==null||$.dispose()),(st=B.current)==null||st.dispose()}return Xr.createElement(Vh,{width:x,height:y,isEditorReady:b,loading:h,_ref:U,className:O,wrapperProps:z})}var O2=E2;q.memo(O2);function N2(){let[n,t]=q.useState(Rl.__getMonacoInstance());return Sp(()=>{let e;return n||(e=Rl.init(),e.then(_=>{t(_)})),()=>e==null?void 0:e.cancel()}),n}var z2=N2;function R2(n){let t=q.useRef();return q.useEffect(()=>{t.current=n},[n]),t.current}var P2=R2,Pl=new Map;function I2({defaultValue:n,defaultLanguage:t,defaultPath:e,value:_,language:a,path:i,theme:o="light",line:c,loading:d="Loading...",options:f={},overrideServices:h={},saveViewState:v=!0,keepCurrentModel:y=!1,width:x="100%",height:O="100%",className:z,wrapperProps:D={},beforeMount:m=Uo,onMount:b=Uo,onChange:g,onValidate:F=Uo}){let[A,B]=q.useState(!1),[T,U]=q.useState(!0),Z=q.useRef(null),P=q.useRef(null),Y=q.useRef(null),qt=q.useRef(b),he=q.useRef(m),Sn=q.useRef(),ut=q.useRef(_),xt=P2(i),De=q.useRef(!1),$=q.useRef(!1);Sp(()=>{let I=Rl.init();return I.then(M=>(Z.current=M)&&U(!1)).catch(M=>(M==null?void 0:M.type)!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>P.current?ft():I.cancel()}),on(()=>{var M,Q,V,nt;let I=xs(Z.current,n||_||"",t||a||"",i||e||"");I!==((M=P.current)==null?void 0:M.getModel())&&(v&&Pl.set(xt,(Q=P.current)==null?void 0:Q.saveViewState()),(V=P.current)==null||V.setModel(I),v&&((nt=P.current)==null||nt.restoreViewState(Pl.get(i))))},[i],A),on(()=>{var I;(I=P.current)==null||I.updateOptions(f)},[f],A),on(()=>{!P.current||_===void 0||(P.current.getOption(Z.current.editor.EditorOption.readOnly)?P.current.setValue(_):_!==P.current.getValue()&&($.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:_,forceMoveMarkers:!0}]),P.current.pushUndoStop(),$.current=!1))},[_],A),on(()=>{var M,Q;let I=(M=P.current)==null?void 0:M.getModel();I&&a&&((Q=Z.current)==null||Q.editor.setModelLanguage(I,a))},[a],A),on(()=>{var I;c!==void 0&&((I=P.current)==null||I.revealLine(c))},[c],A),on(()=>{var I;(I=Z.current)==null||I.editor.setTheme(o)},[o],A);let st=q.useCallback(()=>{var I;if(!(!Y.current||!Z.current)&&!De.current){he.current(Z.current);let M=i||e,Q=xs(Z.current,_||n||"",t||a||"",M||"");P.current=(I=Z.current)==null?void 0:I.editor.create(Y.current,{model:Q,automaticLayout:!0,...f},h),v&&P.current.restoreViewState(Pl.get(M)),Z.current.editor.setTheme(o),c!==void 0&&P.current.revealLine(c),B(!0),De.current=!0}},[n,t,e,_,a,i,f,h,v,o,c]);q.useEffect(()=>{A&&qt.current(P.current,Z.current)},[A]),q.useEffect(()=>{!T&&!A&&st()},[T,A,st]),ut.current=_,q.useEffect(()=>{var I,M;A&&g&&((I=Sn.current)==null||I.dispose(),Sn.current=(M=P.current)==null?void 0:M.onDidChangeModelContent(Q=>{$.current||g(P.current.getValue(),Q)}))},[A,g]),q.useEffect(()=>{if(A){let I=Z.current.editor.onDidChangeMarkers(M=>{var V;let Q=(V=P.current.getModel())==null?void 0:V.uri;if(Q&&M.find(nt=>nt.path===Q.path)){let nt=Z.current.editor.getModelMarkers({resource:Q});F==null||F(nt)}});return()=>{I==null||I.dispose()}}return()=>{}},[A,F]);function ft(){var I,M;(I=Sn.current)==null||I.dispose(),y?v&&Pl.set(i,P.current.saveViewState()):(M=P.current.getModel())==null||M.dispose(),P.current.dispose()}return Xr.createElement(Vh,{width:x,height:O,isEditorReady:A,loading:d,_ref:Y,className:z,wrapperProps:D})}var F2=I2,T2=q.memo(F2),A2=T2;const Il={".ak":"aiken",".js":"javascript",".ts":"typescript",".json":"json",".txt":"plaintext"},$h=n=>{const t=n.slice(n.lastIndexOf("."));return Il[t]||"plaintext"},Hh=Object.keys(Il);function pe(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var M2=typeof Symbol=="function"&&Symbol.observable||"@@observable",Wh=M2,Cp=()=>Math.random().toString(36).substring(7).split("").join("."),D2={INIT:`@@redux/INIT${Cp()}`,REPLACE:`@@redux/REPLACE${Cp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cp()}`},Fl=D2;function Ep(n){if(typeof n!="object"||n===null)return!1;let t=n;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===t||Object.getPrototypeOf(n)===null}function Kh(n,t,e){if(typeof n!="function")throw new Error(pe(2));if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(pe(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(pe(1));return e(Kh)(n,t)}let _=n,a=t,i=new Map,o=i,c=0,d=!1;function f(){o===i&&(o=new Map,i.forEach((z,D)=>{o.set(D,z)}))}function h(){if(d)throw new Error(pe(3));return a}function v(z){if(typeof z!="function")throw new Error(pe(4));if(d)throw new Error(pe(5));let D=!0;f();const m=c++;return o.set(m,z),function(){if(D){if(d)throw new Error(pe(6));D=!1,f(),o.delete(m),i=null}}}function y(z){if(!Ep(z))throw new Error(pe(7));if(typeof z.type>"u")throw new Error(pe(8));if(typeof z.type!="string")throw new Error(pe(17));if(d)throw new Error(pe(9));try{d=!0,a=_(a,z)}finally{d=!1}return(i=o).forEach(D=>{D()}),z}function x(z){if(typeof z!="function")throw new Error(pe(10));_=z,y({type:Fl.REPLACE})}function O(){const z=v;return{subscribe(D){if(typeof D!="object"||D===null)throw new Error(pe(11));function m(){const b=D;b.next&&b.next(h())}return m(),{unsubscribe:z(m)}},[Wh](){return this}}}return y({type:Fl.INIT}),{dispatch:y,subscribe:v,getState:h,replaceReducer:x,[Wh]:O}}function B2(n){Object.keys(n).forEach(t=>{const e=n[t];if(typeof e(void 0,{type:Fl.INIT})>"u")throw new Error(pe(12));if(typeof e(void 0,{type:Fl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(pe(13))})}function L2(n){const t=Object.keys(n),e={};for(let i=0;i"u")throw o&&o.type,new Error(pe(14));d[h]=x,c=c||x!==y}return c=c||_.length!==Object.keys(i).length,c?d:i}}function Tl(...n){return n.length===0?t=>t:n.length===1?n[0]:n.reduce((t,e)=>(..._)=>t(e(..._)))}function U2(...n){return t=>(e,_)=>{const a=t(e,_);let i=()=>{throw new Error(pe(15))};const o={getState:a.getState,dispatch:(d,...f)=>i(d,...f)},c=n.map(d=>d(o));return i=Tl(...c)(a.dispatch),{...a,dispatch:i}}}function V2(n){return Ep(n)&&"type"in n&&typeof n.type=="string"}var Jh=Symbol.for("immer-nothing"),Qh=Symbol.for("immer-draftable"),cn=Symbol.for("immer-state");function Xn(n,...t){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var js=Object.getPrototypeOf;function R_(n){return!!n&&!!n[cn]}function ca(n){var t;return n?Gh(n)||Array.isArray(n)||!!n[Qh]||!!((t=n.constructor)!=null&&t[Qh])||Dl(n)||Bl(n):!1}var q2=Object.prototype.constructor.toString();function Gh(n){if(!n||typeof n!="object")return!1;const t=js(n);if(t===null)return!0;const e=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return e===Object?!0:typeof e=="function"&&Function.toString.call(e)===q2}function Al(n,t){Ml(n)===0?Reflect.ownKeys(n).forEach(e=>{t(e,n[e],n)}):n.forEach((e,_)=>t(_,e,n))}function Ml(n){const t=n[cn];return t?t.type_:Array.isArray(n)?1:Dl(n)?2:Bl(n)?3:0}function Op(n,t){return Ml(n)===2?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function Xh(n,t,e){const _=Ml(n);_===2?n.set(t,e):_===3?n.add(e):n[t]=e}function $2(n,t){return n===t?n!==0||1/n===1/t:n!==n&&t!==t}function Dl(n){return n instanceof Map}function Bl(n){return n instanceof Set}function mi(n){return n.copy_||n.base_}function Np(n,t){if(Dl(n))return new Map(n);if(Bl(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);if(!t&&Gh(n))return js(n)?{...n}:Object.assign(Object.create(null),n);const e=Object.getOwnPropertyDescriptors(n);delete e[cn];let _=Reflect.ownKeys(e);for(let a=0;a<_.length;a++){const i=_[a],o=e[i];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(e[i]={configurable:!0,writable:!0,enumerable:o.enumerable,value:n[i]})}return Object.create(js(n),e)}function zp(n,t=!1){return Ll(n)||R_(n)||!ca(n)||(Ml(n)>1&&(n.set=n.add=n.clear=n.delete=H2),Object.freeze(n),t&&Object.entries(n).forEach(([e,_])=>zp(_,!0))),n}function H2(){Xn(2)}function Ll(n){return Object.isFrozen(n)}var W2={};function vi(n){const t=W2[n];return t||Xn(0,n),t}var Vo;function Yh(){return Vo}function K2(n,t){return{drafts_:[],parent_:n,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Zh(n,t){t&&(vi("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=t)}function Rp(n){Pp(n),n.drafts_.forEach(J2),n.drafts_=null}function Pp(n){n===Vo&&(Vo=n.parent_)}function tb(n){return Vo=K2(Vo,n)}function J2(n){const t=n[cn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function eb(n,t){t.unfinalizedDrafts_=t.drafts_.length;const e=t.drafts_[0];return n!==void 0&&n!==e?(e[cn].modified_&&(Rp(t),Xn(4)),ca(n)&&(n=Ul(t,n),t.parent_||Vl(t,n)),t.patches_&&vi("Patches").generateReplacementPatches_(e[cn].base_,n,t.patches_,t.inversePatches_)):n=Ul(t,e,[]),Rp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),n!==Jh?n:void 0}function Ul(n,t,e){if(Ll(t))return t;const _=t[cn];if(!_)return Al(t,(a,i)=>nb(n,_,t,a,i,e)),t;if(_.scope_!==n)return t;if(!_.modified_)return Vl(n,_.base_,!0),_.base_;if(!_.finalized_){_.finalized_=!0,_.scope_.unfinalizedDrafts_--;const a=_.copy_;let i=a,o=!1;_.type_===3&&(i=new Set(a),a.clear(),o=!0),Al(i,(c,d)=>nb(n,_,a,c,d,e,o)),Vl(n,a,!1),e&&n.patches_&&vi("Patches").generatePatches_(_,e,n.patches_,n.inversePatches_)}return _.copy_}function nb(n,t,e,_,a,i,o){if(R_(a)){const c=i&&t&&t.type_!==3&&!Op(t.assigned_,_)?i.concat(_):void 0,d=Ul(n,a,c);if(Xh(e,_,d),R_(d))n.canAutoFreeze_=!1;else return}else o&&e.add(a);if(ca(a)&&!Ll(a)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;Ul(n,a),(!t||!t.scope_.parent_)&&typeof _!="symbol"&&Object.prototype.propertyIsEnumerable.call(e,_)&&Vl(n,a)}}function Vl(n,t,e=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&zp(t,e)}function Q2(n,t){const e=Array.isArray(n),_={type_:e?1:0,scope_:t?t.scope_:Yh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=_,i=Ip;e&&(a=[_],i=qo);const{revoke:o,proxy:c}=Proxy.revocable(a,i);return _.draft_=c,_.revoke_=o,c}var Ip={get(n,t){if(t===cn)return n;const e=mi(n);if(!Op(e,t))return G2(n,e,t);const _=e[t];return n.finalized_||!ca(_)?_:_===Fp(n.base_,t)?(Ap(n),n.copy_[t]=Mp(_,n)):_},has(n,t){return t in mi(n)},ownKeys(n){return Reflect.ownKeys(mi(n))},set(n,t,e){const _=rb(mi(n),t);if(_!=null&&_.set)return _.set.call(n.draft_,e),!0;if(!n.modified_){const a=Fp(mi(n),t),i=a==null?void 0:a[cn];if(i&&i.base_===e)return n.copy_[t]=e,n.assigned_[t]=!1,!0;if($2(e,a)&&(e!==void 0||Op(n.base_,t)))return!0;Ap(n),Tp(n)}return n.copy_[t]===e&&(e!==void 0||t in n.copy_)||Number.isNaN(e)&&Number.isNaN(n.copy_[t])||(n.copy_[t]=e,n.assigned_[t]=!0),!0},deleteProperty(n,t){return Fp(n.base_,t)!==void 0||t in n.base_?(n.assigned_[t]=!1,Ap(n),Tp(n)):delete n.assigned_[t],n.copy_&&delete n.copy_[t],!0},getOwnPropertyDescriptor(n,t){const e=mi(n),_=Reflect.getOwnPropertyDescriptor(e,t);return _&&{writable:!0,configurable:n.type_!==1||t!=="length",enumerable:_.enumerable,value:e[t]}},defineProperty(){Xn(11)},getPrototypeOf(n){return js(n.base_)},setPrototypeOf(){Xn(12)}},qo={};Al(Ip,(n,t)=>{qo[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),qo.deleteProperty=function(n,t){return qo.set.call(this,n,t,void 0)},qo.set=function(n,t,e){return Ip.set.call(this,n[0],t,e,n[0])};function Fp(n,t){const e=n[cn];return(e?mi(e):n)[t]}function G2(n,t,e){var a;const _=rb(t,e);return _?"value"in _?_.value:(a=_.get)==null?void 0:a.call(n.draft_):void 0}function rb(n,t){if(!(t in n))return;let e=js(n);for(;e;){const _=Object.getOwnPropertyDescriptor(e,t);if(_)return _;e=js(e)}}function Tp(n){n.modified_||(n.modified_=!0,n.parent_&&Tp(n.parent_))}function Ap(n){n.copy_||(n.copy_=Np(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var X2=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,_)=>{if(typeof t=="function"&&typeof e!="function"){const i=e;e=t;const o=this;return function(c=i,...d){return o.produce(c,f=>e.call(this,f,...d))}}typeof e!="function"&&Xn(6),_!==void 0&&typeof _!="function"&&Xn(7);let a;if(ca(t)){const i=tb(this),o=Mp(t,void 0);let c=!0;try{a=e(o),c=!1}finally{c?Rp(i):Pp(i)}return Zh(i,_),eb(a,i)}else if(!t||typeof t!="object"){if(a=e(t),a===void 0&&(a=t),a===Jh&&(a=void 0),this.autoFreeze_&&zp(a,!0),_){const i=[],o=[];vi("Patches").generateReplacementPatches_(t,a,i,o),_(i,o)}return a}else Xn(1,t)},this.produceWithPatches=(t,e)=>{if(typeof t=="function")return(i,...o)=>this.produceWithPatches(i,c=>t(c,...o));let _,a;return[this.produce(t,e,(i,o)=>{_=i,a=o}),_,a]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){ca(n)||Xn(8),R_(n)&&(n=ab(n));const t=tb(this),e=Mp(n,void 0);return e[cn].isManual_=!0,Pp(t),e}finishDraft(n,t){const e=n&&n[cn];(!e||!e.isManual_)&&Xn(9);const{scope_:_}=e;return Zh(_,t),eb(void 0,_)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,t){let e;for(e=t.length-1;e>=0;e--){const a=t[e];if(a.path.length===0&&a.op==="replace"){n=a.value;break}}e>-1&&(t=t.slice(e+1));const _=vi("Patches").applyPatches_;return R_(n)?_(n,t):this.produce(n,a=>_(a,t))}};function Mp(n,t){const e=Dl(n)?vi("MapSet").proxyMap_(n,t):Bl(n)?vi("MapSet").proxySet_(n,t):Q2(n,t);return(t?t.scope_:Yh()).drafts_.push(e),e}function ab(n){return R_(n)||Xn(10,n),_b(n)}function _b(n){if(!ca(n)||Ll(n))return n;const t=n[cn];let e;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,e=Np(n,t.scope_.immer_.useStrictShallowCopy_)}else e=Np(n,!0);return Al(e,(_,a)=>{Xh(e,_,_b(a))}),t&&(t.finalized_=!1),e}var ln=new X2,ib=ln.produce;ln.produceWithPatches.bind(ln),ln.setAutoFreeze.bind(ln),ln.setUseStrictShallowCopy.bind(ln),ln.applyPatches.bind(ln),ln.createDraft.bind(ln),ln.finishDraft.bind(ln);function Y2(n,t=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(t)}function Z2(n,t=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(t)}function tx(n,t="expected all items to be functions, instead received the following types: "){if(!n.every(e=>typeof e=="function")){const e=n.map(_=>typeof _=="function"?`function ${_.name||"unnamed"}()`:typeof _).join(", ");throw new TypeError(`${t}[${e}]`)}}var sb=n=>Array.isArray(n)?n:[n];function ex(n){const t=Array.isArray(n[0])?n[0]:n;return tx(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function nx(n,t){const e=[],{length:_}=n;for(let a=0;a<_;a++)e.push(n[a].apply(null,t));return e}var rx=class{constructor(n){this.value=n}deref(){return this.value}},ax=typeof WeakRef<"u"?WeakRef:rx,_x=0,ob=1;function ql(){return{s:_x,v:void 0,o:null,p:null}}function Dp(n,t={}){let e=ql();const{resultEqualityCheck:_}=t;let a,i=0;function o(){var v;let c=e;const{length:d}=arguments;for(let y=0,x=d;y{e=ql(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function cb(n,...t){const e=typeof n=="function"?{memoize:n,memoizeOptions:t}:n,_=(...a)=>{let i=0,o=0,c,d={},f=a.pop();typeof f=="object"&&(d=f,f=a.pop()),Y2(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const h={...e,...d},{memoize:v,memoizeOptions:y=[],argsMemoize:x=Dp,argsMemoizeOptions:O=[],devModeChecks:z={}}=h,D=sb(y),m=sb(O),b=ex(a),g=v(function(){return i++,f.apply(null,arguments)},...D),F=x(function(){o++;const A=nx(b,arguments);return c=g.apply(null,A),c},...m);return Object.assign(F,{resultFunc:f,memoizedResultFunc:g,dependencies:b,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>c,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:v,argsMemoize:x})};return Object.assign(_,{withTypes:()=>_}),_}var ix=cb(Dp),sx=Object.assign((n,t=ix)=>{Z2(n,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof n}`);const e=Object.keys(n),_=e.map(a=>n[a]);return t(_,(...a)=>a.reduce((i,o,c)=>(i[e[c]]=o,i),{}))},{withTypes:()=>sx});function lb(n){return({dispatch:t,getState:e})=>_=>a=>typeof a=="function"?a(t,e,n):_(a)}var ox=lb(),cx=lb,lx=(...n)=>{const t=cb(...n),e=Object.assign((..._)=>{const a=t(..._),i=(o,...c)=>a(R_(o)?ab(o):o,...c);return Object.assign(i,a),i},{withTypes:()=>e});return e};lx(Dp);var dx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Tl:Tl.apply(null,arguments)};function Ss(n,t){function e(..._){if(t){let a=t(..._);if(!a)throw new Error(He(0));return{type:n,payload:a.payload,..."meta"in a&&{meta:a.meta},..."error"in a&&{error:a.error}}}return{type:n,payload:_[0]}}return e.toString=()=>`${n}`,e.type=n,e.match=_=>V2(_)&&_.type===n,e}var db=class lc extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,lc.prototype)}static get[Symbol.species](){return lc}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new lc(...t[0].concat(this)):new lc(...t.concat(this))}};function ub(n){return ca(n)?ib(n,()=>{}):n}function pb(n,t,e){if(n.has(t)){let a=n.get(t);return e.update&&(a=e.update(a,t,n),n.set(t,a)),a}if(!e.insert)throw new Error(He(10));const _=e.insert(t,n);return n.set(t,_),_}function ux(n){return typeof n=="boolean"}var px=()=>function(n){const{thunk:t=!0,immutableCheck:e=!0,serializableCheck:_=!0,actionCreatorCheck:a=!0}=n??{};let i=new db;return t&&(ux(t)?i.push(ox):i.push(cx(t.extraArgument))),i},fx="RTK_autoBatch",fb=n=>t=>{setTimeout(t,n)},wx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:fb(10),gx=(n={type:"raf"})=>t=>(...e)=>{const _=t(...e);let a=!0,i=!1,o=!1;const c=new Set,d=n.type==="tick"?queueMicrotask:n.type==="raf"?wx:n.type==="callback"?n.queueNotification:fb(n.timeout),f=()=>{o=!1,i&&(i=!1,c.forEach(h=>h()))};return Object.assign({},_,{subscribe(h){const v=()=>a&&h(),y=_.subscribe(v);return c.add(h),()=>{y(),c.delete(h)}},dispatch(h){var v;try{return a=!((v=h==null?void 0:h.meta)!=null&&v[fx]),i=!a,i&&(o||(o=!0,d(f))),_.dispatch(h)}finally{a=!0}}})},hx=n=>function(t){const{autoBatch:e=!0}=t??{};let _=new db(n);return e&&_.push(gx(typeof e=="object"?e:void 0)),_},bx=!0;function yx(n){const t=px(),{reducer:e=void 0,middleware:_,devTools:a=!0,preloadedState:i=void 0,enhancers:o=void 0}=n||{};let c;if(typeof e=="function")c=e;else if(Ep(e))c=L2(e);else throw new Error(He(1));let d;typeof _=="function"?d=_(t):d=t();let f=Tl;a&&(f=dx({trace:!bx,...typeof a=="object"&&a}));const h=U2(...d),v=hx(h);let y=typeof o=="function"?o(v):v();const x=f(...y);return Kh(c,i,x)}function wb(n){const t={},e=[];let _;const a={addCase(i,o){const c=typeof i=="string"?i:i.type;if(!c)throw new Error(He(28));if(c in t)throw new Error(He(29));return t[c]=o,a},addMatcher(i,o){return e.push({matcher:i,reducer:o}),a},addDefaultCase(i){return _=i,a}};return n(a),[t,e,_]}function mx(n){return typeof n=="function"}function vx(n,t){let[e,_,a]=wb(t),i;if(mx(n))i=()=>ub(n());else{const c=ub(n);i=()=>c}function o(c=i(),d){let f=[e[d.type],..._.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return f.filter(h=>!!h).length===0&&(f=[a]),f.reduce((h,v)=>{if(v)if(R_(h)){const y=v(h,d);return y===void 0?h:y}else{if(ca(h))return ib(h,y=>v(y,d));{const y=v(h,d);if(y===void 0){if(h===null)return h;throw new Error(He(9))}return y}}return h},c)}return o.getInitialState=i,o}var kx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",xx=(n=21)=>{let t="",e=n;for(;e--;)t+=kx[Math.random()*64|0];return t},jx=Symbol.for("rtk-slice-createasyncthunk");function Sx(n,t){return`${n}/${t}`}function Cx({creators:n}={}){var e;const t=(e=n==null?void 0:n.asyncThunk)==null?void 0:e[jx];return function(_){const{name:a,reducerPath:i=a}=_;if(!a)throw new Error(He(11));typeof process<"u";const o=(typeof _.reducers=="function"?_.reducers(Ox()):_.reducers)||{},c=Object.keys(o),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(b,g){const F=typeof b=="string"?b:b.type;if(!F)throw new Error(He(12));if(F in d.sliceCaseReducersByType)throw new Error(He(13));return d.sliceCaseReducersByType[F]=g,f},addMatcher(b,g){return d.sliceMatchers.push({matcher:b,reducer:g}),f},exposeAction(b,g){return d.actionCreators[b]=g,f},exposeCaseReducer(b,g){return d.sliceCaseReducersByName[b]=g,f}};c.forEach(b=>{const g=o[b],F={reducerName:b,type:Sx(a,b),createNotation:typeof _.reducers=="function"};zx(g)?Px(F,g,f,t):Nx(F,g,f)});function h(){const[b={},g=[],F=void 0]=typeof _.extraReducers=="function"?wb(_.extraReducers):[_.extraReducers],A={...b,...d.sliceCaseReducersByType};return vx(_.initialState,B=>{for(let T in A)B.addCase(T,A[T]);for(let T of d.sliceMatchers)B.addMatcher(T.matcher,T.reducer);for(let T of g)B.addMatcher(T.matcher,T.reducer);F&&B.addDefaultCase(F)})}const v=b=>b,y=new Map;let x;function O(b,g){return x||(x=h()),x(b,g)}function z(){return x||(x=h()),x.getInitialState()}function D(b,g=!1){function F(B){let T=B[b];return typeof T>"u"&&g&&(T=z()),T}function A(B=v){const T=pb(y,g,{insert:()=>new WeakMap});return pb(T,B,{insert:()=>{const U={};for(const[Z,P]of Object.entries(_.selectors??{}))U[Z]=Ex(P,B,z,g);return U}})}return{reducerPath:b,getSelectors:A,get selectors(){return A(F)},selectSlice:F}}const m={name:a,reducer:O,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:z,...D(i),injectInto(b,{reducerPath:g,...F}={}){const A=g??i;return b.inject({reducerPath:A,reducer:O},F),{...m,...D(A,!0)}}};return m}}function Ex(n,t,e,_){function a(i,...o){let c=t(i);return typeof c>"u"&&_&&(c=e()),n(c,...o)}return a.unwrapped=n,a}var ki=Cx();function Ox(){function n(t,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...e}}return n.withTypes=()=>n,{reducer(t){return Object.assign({[t.name](...e){return t(...e)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,e){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:e}},asyncThunk:n}}function Nx({type:n,reducerName:t,createNotation:e},_,a){let i,o;if("reducer"in _){if(e&&!Rx(_))throw new Error(He(17));i=_.reducer,o=_.prepare}else i=_;a.addCase(n,i).exposeCaseReducer(t,i).exposeAction(t,o?Ss(n,o):Ss(n))}function zx(n){return n._reducerDefinitionType==="asyncThunk"}function Rx(n){return n._reducerDefinitionType==="reducerWithPrepare"}function Px({type:n,reducerName:t},e,_,a){if(!a)throw new Error(He(18));const{payloadCreator:i,fulfilled:o,pending:c,rejected:d,settled:f,options:h}=e,v=a(n,i,h);_.exposeAction(t,v),o&&_.addCase(v.fulfilled,o),c&&_.addCase(v.pending,c),d&&_.addCase(v.rejected,d),f&&_.addMatcher(v.settled,f),_.exposeCaseReducer(t,{fulfilled:o||$l,pending:c||$l,rejected:d||$l,settled:f||$l})}function $l(){}var Ix=(n,t)=>{if(typeof n!="function")throw new Error(He(32))},Bp="listenerMiddleware",Fx=n=>{let{type:t,actionCreator:e,matcher:_,predicate:a,effect:i}=n;if(t)a=Ss(t).match;else if(e)t=e.type,a=e.match;else if(_)a=_;else if(!a)throw new Error(He(21));return Ix(i),{predicate:a,type:t,effect:i}},Tx=Object.assign(n=>{const{type:t,predicate:e,effect:_}=Fx(n);return{id:xx(),effect:_,type:t,predicate:e,pending:new Set,unsubscribe:()=>{throw new Error(He(22))}}},{withTypes:()=>Tx}),Ax=Object.assign(Ss(`${Bp}/add`),{withTypes:()=>Ax});Ss(`${Bp}/removeAll`);var Mx=Object.assign(Ss(`${Bp}/remove`),{withTypes:()=>Mx});function He(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const Dx=`use aiken/list +use aiken/transaction.{ + ScriptContext +} + +type CoolTokenRedeemer { + guessed_word: ByteArray +} + +type FancyType { + code_word: ByteArray +} + +validator(fancy: FancyType) { + fn mint_my_cool_token(redeemer: CoolTokenRedeemer, _ctx: ScriptContext) -> Bool { + redeemer.guessed_word == fancy.code_word + } +} + +fn quicksort(xs: List) -> List { + when xs is { + [] -> + [] + [p, ..tail] -> { + let before = tail |> list.filter(fn(x) { x < p }) |> quicksort + let after = tail |> list.filter(fn(x) { x >= p }) |> quicksort + list.concat(before, [p, ..after]) + } + } +} + +test quicksort_0() { + quicksort([]) == [] +} + +test quicksort_1() { + quicksort([3, 2, 1, 4]) == [1, 2, 3, 4] +} + +test quicksort_2() { + quicksort([1, 2, 3, 4]) == [1, 2, 3, 4] +} +`,Bx={files:[{name:"example.ak",content:Dx,type:"aiken"},{name:"params.json",content:JSON.stringify([{constructor:0,fields:[{bytes:"7468697369736D79736563726574"}]}],null,2),type:"json"},{name:"nativeScript.json",content:JSON.stringify({type:"all",scripts:[{type:"before",slot:1},{type:"sig",keyHash:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}]},null,2),type:"json"}],currentFileFocusedInEditorIndex:0,openFileIndices:[0],pendingCloseFileIndex:-1,beingRenamedFileIndex:-1,renameFileError:void 0},gb=ki({name:"files",initialState:Bx,reducers:{selectFile(n,t){n.currentFileFocusedInEditorIndex=t.payload,n.openFileIndices.includes(t.payload)||n.openFileIndices.push(t.payload)},writeFileContents(n,t){n.files[t.payload.index].content=t.payload.content},closeFile(n,t){const e=t.payload;if(e!=n.pendingCloseFileIndex){n.pendingCloseFileIndex=-1;return}if(e==n.beingRenamedFileIndex){n.pendingCloseFileIndex=-1;return}const _=n.openFileIndices.indexOf(e),a=_>0?_-1:_+1,i=n.openFileIndices[a];n.openFileIndices.splice(_,1),n.currentFileFocusedInEditorIndex==e&&(n.currentFileFocusedInEditorIndex=i)},pendingCloseFile(n,t){n.pendingCloseFileIndex=t.payload},addFile(n){if(n.beingRenamedFileIndex!==-1)return;let t="newfile";for(let _=1;_<1/0;_++){const a=`${t}${_===1?"":_-1}.ak`;if(!n.files.find(i=>i.name===a)){t=a;break}}n.files.push({name:t,content:"",type:"aiken"});const e=n.files.length-1;n.beingRenamedFileIndex=e,n.currentFileFocusedInEditorIndex=e,n.openFileIndices.includes(e)||n.openFileIndices.push(e)},renameFile(n,t){n.beingRenamedFileIndex=t.payload},clearRenameFileError(n){n.renameFileError=void 0},confirmRenameFile(n,t){const e=t.payload,_=!n.files.find((o,c)=>o.name===e&&c!=n.beingRenamedFileIndex),a=Hh.find(o=>e.endsWith(o));let i="";_?a?(n.files[n.beingRenamedFileIndex].name=e,n.files[n.beingRenamedFileIndex].type=Il[a],n.beingRenamedFileIndex=-1,n.renameFileError=void 0):i=`Allowed extensions: ${Hh.join(" ")}`:i="Filenames must be unique.",n.renameFileError=i},cancelRenameFile(n){n.beingRenamedFileIndex=-1,n.renameFileError=void 0},removeFile(n,t){const e=t.payload,_=n.openFileIndices.indexOf(e);_!=-1&&n.openFileIndices.splice(_,1),n.files.splice(e,1),n.openFileIndices=n.openFileIndices.map(o=>o>e?o-1:o);const a=_>0?_-1:_+1,i=n.openFileIndices[a];if(n.currentFileFocusedInEditorIndex!=e){n.currentFileFocusedInEditorIndex>e&&(n.currentFileFocusedInEditorIndex-=1);return}n.currentFileFocusedInEditorIndex=i}}}),{selectFile:hb,writeFileContents:Lx,closeFile:Ux,pendingCloseFile:bb,addFile:yb,confirmRenameFile:mb,cancelRenameFile:Vx,removeFile:qx,renameFile:$x,clearRenameFileError:Hx}=gb.actions,Wx=gb.reducer;function Kx({onLoad:n}){const t=z2(),e=Bt(o=>o.files),_=Pn(),a=q.useRef(null);if(a.current&&t){const o=e.files[e.currentFileFocusedInEditorIndex],c=t.editor.getModels();if(o){const d=o.name.slice(o.name.lastIndexOf(".")),f=Il[d]||"plaintext";let h=c.find(v=>v.uri.path.includes(o.name));(!h||f!=h.getLanguageId())&&(h=t.editor.createModel(o.content,f,t.Uri.parse(o.name))),a.current.setModel(h)}else a.current.setModel(null);c.forEach(d=>{e.files.find(f=>d.uri.path.includes(f.name))||d.dispose()})}const i=o=>{a.current=o,n&&n(o)};return q.useEffect(()=>{if(t){t.languages.register({id:"aiken"});const o=["if","else","when","is","fn","use","let","pub","type","opaque","const","todo","expect","check","test","trace","fail","validator","and","or"];t.languages.setMonarchTokensProvider("aiken",{keywords:o,operators:["->","|>","..","<=",">=","==","!=","<",">","&&","||","|","+","-","/","*","%","="],digits:"\\d+(_+\\d+)*",octaldigits:"[0-7]+(_+[0-7]+)*",binarydigits:"[0-1]+(_+[0-1]+)*",hexdigits:"[0-9a-fA-F]+(_+[0-9a-fA-F]+)*",tokenizer:{root:[["[a-z_$][\\w$]*",{cases:{"@keywords":"keyword","@default":"identifier"}}],["//.*","comment"],["[A-Z][\\w\\$]*","type.identifier"],["[a-z][\\w\\$]*","identifier"],["0[xX](@hexdigits)","number.hex"],["0[oO]?(@octaldigits)","number.octal"],["0[bB](@binarydigits)","number.binary"],["(@digits)","number"]]}}),t.editor.defineTheme("aiken-theme",{base:"vs-dark",rules:[{token:"source",foreground:"#BBBBBB"}],inherit:!0,colors:{"scrollbar.shadow":"#ffffff00","editor.lineHighlightBackground":"#00000000","editor.lineHighlightBorder":"#00000000"}})}},[t]),t?k.jsx("div",{style:{width:"100%",height:"90vh"},onBlur:()=>{if(!t)return;const o=e.files[e.currentFileFocusedInEditorIndex];let c=t.editor.getModels().find(d=>d.uri.path.includes(o.name));if(!c){console.error("If this happened, there is a bug. :)");return}_(Lx({index:e.currentFileFocusedInEditorIndex,content:c.getValue()}))},children:k.jsx(A2,{height:"calc(94vh - 45px)",width:"100%",theme:"aiken-theme",defaultLanguage:"aiken",defaultValue:e.files[0].content,options:{minimap:{enabled:!1}},onMount:i})}):null}function vb(n,t){const e=n.split(/\r?\n/);let _=0;for(let a=0;a=t)return a+1;_+=i.length+1}return null}function kb(n){const t=n.lastIndexOf(".");return t===-1?{name:n,extension:""}:{name:n.substring(0,t),extension:n.substring(t)}}function xi(n,t=12,e=7){if(n.length>t+e){let _=n.substring(0,t),a=n.substring(n.length-e);return`${_}...${a}`}return n}const Jx={buildResults:[],builtFiles:[]},xb=ki({name:"aiken",initialState:Jx,reducers:{testProject:(n,t)=>{n.buildResults=t.payload.buildResults,n.builtFiles=t.payload.compiledFiles;for(let e=0;e{const a=vb(n.builtFiles[e].content,_.line)||-1;return{..._,line:a}}),n.buildResults[e].warnings=n.buildResults[e].warnings.map(_=>{const a=vb(n.builtFiles[e].content,_.line)||-1;return{..._,line:a}})}}}),{testProject:jb}=xb.actions,Qx=xb.reducer,Sb=q.createContext(null);function Gx(){return q.useContext(Sb)}function Xx(){const n=Rh(),t=Gx(),e=Bt(i=>i.files),_=Pn();let a="";return k.jsxs("div",{className:"top-bar editor-top-bar",children:[k.jsx("div",{className:`top-bar-item editor-top-bar-item ${a}`,onClick:()=>{let i=[],o=[];for(let c of e.files)if($h(c.name)==="aiken"){i.push(c);const d=n.project.build(c.content,!0);o.push(d)}_(jb({buildResults:o,compiledFiles:i}))},children:"\u25B6 Test"}),k.jsx("div",{className:`top-bar-item editor-top-bar-item ${a}`,onClick:()=>{let i=[],o=[];for(let c of e.files)$h(c.name)==="aiken"&&(i.push(c),o.push(n.project.build(c.content,!1)));_(jb({buildResults:o,compiledFiles:i}))},children:"\u{1F6E0} Build"}),k.jsx("div",{className:"top-bar-item editor-top-bar-item",onClick:()=>{const i=(t==null?void 0:t.getValue())||"",o=n.project.format(i);t==null||t.setValue(o.formatted_code||i)},children:"\u270E Format"}),k.jsx("div",{className:"top-bar-item editor-top-bar-item",children:"\u260E Share"})]})}function Yx(){const n=Bt(t=>t.lucid.network);return k.jsx("div",{className:"top-bar management-top-bar",children:k.jsxs("div",{className:"top-bar-item",children:[k.jsx("strong",{children:"Network"}),": ",n]})})}function Zx(){var e,_;const n=Bt(a=>a.project),t=(a,i)=>{const o=a==null?void 0:a.warnings.length,c=a==null?void 0:a.errors.length,d=a==null?void 0:a.test_results.length,f=(a==null?void 0:a.test_results.filter(x=>!x.success).length)||0,h=!o||o<=0?null:k.jsxs("div",{className:"build-results-section warnings",children:[k.jsx("span",{className:"build-result-heading",children:"Warnings"}),a==null?void 0:a.warnings.map((x,O)=>k.jsxs("div",{className:"build-results-individual-result",children:[k.jsxs("div",{className:"warning-item",children:["On line ",x.line,", ",x.message]}),k.jsx("div",{}),k.jsx("div",{className:"warning-item",children:x.help})]},O))]}),v=!c||c<=0?null:k.jsxs("div",{className:"build-results-section errors",children:[k.jsx("span",{className:"build-result-heading",children:"Errors"}),a==null?void 0:a.errors.map((x,O)=>k.jsxs("div",{className:"build-results-individual-result",children:[k.jsxs("div",{className:"error-item",children:["On line ",x.line,", ",x.message]}),k.jsx("div",{className:"error-item",children:x.help})]},O))]}),y=!d||d<=0?null:k.jsxs("div",{className:"build-results-section tests",children:[k.jsx("span",{className:"build-result-heading",children:"Tests"}),a==null?void 0:a.test_results.map(x=>k.jsx("div",{className:"build-results-individual-result",children:k.jsxs("div",{className:"test-item",children:[x.success?"\u2714\uFE0F ":"\u274C ",x.name," (CPU: ",x.spent_budget.cpu,", Mem: ",x.spent_budget.mem,")"]})},x.index))]});return k.jsxs("div",{className:"build-result-container",children:[k.jsx("div",{className:"build-result-filename",children:n.builtFiles[i].name}),k.jsxs("div",{className:"summary",children:[k.jsxs("span",{className:"summary-entry",children:["Errors: ",k.jsx("span",{className:"error-number",children:`${c||0}`})]}),k.jsxs("span",{className:"summary-entry",children:["Warnings: ",k.jsx("span",{className:"warning-number",children:`${o||0}`})]}),k.jsxs("span",{className:"summary-entry",children:["Tests: ",k.jsxs("span",{className:"test-number",children:[`${d||0} `,f>0?k.jsxs("span",{children:["(",k.jsx("span",{className:"error-number",children:f}),")"]}):null]})]})]}),y,h,v]},i)};return k.jsxs("div",{className:"build-results-content",children:[k.jsx("div",{className:"management-section-heading",children:k.jsx("strong",{children:"Build Results"})}),n.buildResults&&((e=n.buildResults)==null?void 0:e.length)>0?k.jsx(k.Fragment,{}):k.jsx("div",{className:"no-last-build-notice",children:' No last build to display. Click "Test" to compile.'}),(_=n.buildResults)==null?void 0:_.map((a,i)=>t(a,i))]})}let r;const Cb=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Cb.decode();let $o=null;function Cs(){return($o===null||$o.byteLength===0)&&($o=new Uint8Array(r.memory.buffer)),$o}function R(n,t){return Cb.decode(Cs().subarray(n,n+t))}const la=new Array(128).fill(void 0);la.push(void 0,null,!0,!1);let Ho=la.length;function pt(n){Ho===la.length&&la.push(la.length+1);const t=Ho;return Ho=la[t],la[t]=n,t}function rt(n){return la[n]}function tj(n){n<132||(la[n]=Ho,Ho=n)}function l(n){const t=rt(n);return tj(n),t}let w=0;const Eb=new TextEncoder("utf-8"),ej=function(n,t){return Eb.encodeInto(n,t)};function E(n,t,e){if(e===void 0){const c=Eb.encode(n),d=t(c.length);return Cs().subarray(d,d+c.length).set(c),w=c.length,d}let _=n.length,a=t(_);const i=Cs();let o=0;for(;o<_;o++){const c=n.charCodeAt(o);if(c>127)break;i[a+o]=c}if(o!==_){o!==0&&(n=n.slice(o)),a=e(a,_,_=o+n.length*3);const c=Cs().subarray(a+o,a+_),d=ej(n,c);o+=d.written}return w=o,a}let Wo=null;function s(){return(Wo===null||Wo.byteLength===0)&&(Wo=new Int32Array(r.memory.buffer)),Wo}function Pt(n){return n==null}function Lp(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const a=n.description;return a==null?"Symbol":`Symbol(${a})`}if(t=="function"){const a=n.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(n)){const a=n.length;let i="[";a>0&&(i+=Lp(n[0]));for(let o=1;o1)_=e[1];else return toString.call(n);if(_=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} +${n.stack}`:_}const Ob=new FinalizationRegistry(n=>{r.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function nj(n,t,e,_){const a={a:n,b:t,cnt:1,dtor:e},i=(...o)=>{a.cnt++;const c=a.a;a.a=0;try{return _(c,a.b,...o)}finally{--a.cnt===0?(r.__wbindgen_export_2.get(a.dtor)(c,a.b),Ob.unregister(a)):a.a=c}};return i.original=a,Ob.register(i,a,a),i}function rj(n,t,e){r._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9de9452916ac8cca(n,t,pt(e))}function p(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`);return n.ptr}function S(n,t){return Cs().subarray(n/1,n/1+t)}function N(n,t){const e=t(n.length*1);return Cs().set(n,e/1),w=n.length,e}function Nb(n,t,e,_){try{const h=r.__wbindgen_add_to_stack_pointer(-16),v=E(n,r.__wbindgen_malloc,r.__wbindgen_realloc),y=w,x=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),O=w,z=E(e,r.__wbindgen_malloc,r.__wbindgen_realloc),D=w,m=E(_,r.__wbindgen_malloc,r.__wbindgen_realloc),b=w;r.encrypt_with_password(h,v,y,x,O,z,D,m,b);var a=s()[h/4+0],i=s()[h/4+1],o=s()[h/4+2],c=s()[h/4+3],d=a,f=i;if(c)throw d=0,f=0,l(o);return R(d,f)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(d,f)}}function zb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(n,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w,v=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),y=w;r.decrypt_with_password(d,f,h,v,y);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}function Rb(n,t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(n,mn),p(t,I_),p(e,An),r.min_fee(o,n.ptr,t.ptr,e.ptr);var _=s()[o/4+0],a=s()[o/4+1],i=s()[o/4+2];if(i)throw l(a);return C.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Pb(n){const t=N(n,r.__wbindgen_malloc),e=w,_=r.encode_arbitrary_bytes_as_metadatum(t,e);return vt.__wrap(_)}function Ib(n){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(n,vt),r.decode_arbitrary_bytes_from_metadatum(o,n.ptr);var t=s()[o/4+0],e=s()[o/4+1],_=s()[o/4+2],a=s()[o/4+3];if(a)throw l(_);var i=S(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Fb(n,t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.encode_json_str_to_metadatum(i,o,c,t);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Tb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16);p(n,vt),r.decode_metadatum_to_json_str(d,n.ptr,t);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}function Ab(n,t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.encode_json_str_to_plutus_datum(i,o,c,t);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return at.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Mb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16);p(n,at),r.decode_plutus_datum_to_json_str(d,n.ptr,t);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}let Hl=null;function Db(){return(Hl===null||Hl.byteLength===0)&&(Hl=new Uint32Array(r.memory.buffer)),Hl}function aj(n,t){const e=t(n.length*4);return Db().set(n,e/4),w=n.length,e}function _j(n,t){return Db().subarray(n/4,n/4+t)}function Bb(n,t,e){p(n,we),p(t,Pe),p(e,zs);const _=r.make_daedalus_bootstrap_witness(n.ptr,t.ptr,e.ptr);return pn.__wrap(_)}function Lb(n,t,e){p(n,we),p(t,Pe),p(e,In);const _=r.make_icarus_bootstrap_witness(n.ptr,t.ptr,e.ptr);return pn.__wrap(_)}function Es(n,t){p(n,we),p(t,Ht);const e=r.make_vkey_witness(n.ptr,t.ptr);return Ln.__wrap(e)}function Ub(n){p(n,Re);const t=r.hash_auxiliary_data(n.ptr);return br.__wrap(t)}function da(n){p(n,Ge);const t=r.hash_transaction(n.ptr);return we.__wrap(t)}function Os(n){p(n,at);const t=r.hash_plutus_data(n.ptr);return re.__wrap(t)}function Up(n){try{const a=r.__wbindgen_add_to_stack_pointer(-16),i=N(n,r.__wbindgen_malloc),o=w;r.hash_blake2b256(a,i,o);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Vb(n){try{const a=r.__wbindgen_add_to_stack_pointer(-16),i=N(n,r.__wbindgen_malloc),o=w;r.hash_blake2b224(a,i,o);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}function qb(n,t,e){p(n,Pr),p(t,nr);let _=0;Pt(e)||(p(e,ie),_=e.__destroy_into_raw());const a=r.hash_script_data(n.ptr,t.ptr,_);return ar.__wrap(a)}function $b(n,t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(n,Ge),p(t,C),p(e,C),r.get_implicit_input(o,n.ptr,t.ptr,e.ptr);var _=s()[o/4+0],a=s()[o/4+1],i=s()[o/4+2];if(i)throw l(a);return Et.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Hb(n,t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(n,Ge),p(t,C),p(e,C),r.get_deposit(o,n.ptr,t.ptr,e.ptr);var _=s()[o/4+0],a=s()[o/4+1],i=s()[o/4+2];if(i)throw l(a);return C.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Wb(n,t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(n,Qt),p(t,C),r.min_ada_required(i,n.ptr,t.ptr);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return C.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Vp(n,t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16),c=E(n,r.__wbindgen_malloc,r.__wbindgen_realloc),d=w,f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.encode_json_str_to_native_script(o,c,d,f,h,e);var _=s()[o/4+0],a=s()[o/4+1],i=s()[o/4+2];if(i)throw l(a);return Ct.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function qp(n,t){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(n,ie),p(t,gt);var e=t.__destroy_into_raw();r.apply_params_to_plutus_script(o,n.ptr,e);var _=s()[o/4+0],a=s()[o/4+1],i=s()[o/4+2];if(i)throw l(a);return gt.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function dn(n,t){try{return n.apply(this,t)}catch(e){r.__wbindgen_exn_store(pt(e))}}function ij(n,t,e,_){r.wasm_bindgen__convert__closures__invoke2_mut__h36afefe016e25d40(n,t,pt(e),pt(_))}const sj=Object.freeze({Key:0,0:"Key",Script:1,1:"Script"}),oj=Object.freeze({ParameterChangeAction:0,0:"ParameterChangeAction",HardForkInitiationAction:1,1:"HardForkInitiationAction",TreasuryWithdrawalsAction:2,2:"TreasuryWithdrawalsAction",NoConfidence:3,3:"NoConfidence",NewCommittee:4,4:"NewCommittee",NewConstitution:5,5:"NewConstitution",InfoAction:6,6:"InfoAction"}),cj=Object.freeze({CommitteeHotKeyHash:0,0:"CommitteeHotKeyHash",CommitteeHotScriptHash:1,1:"CommitteeHotScriptHash",DrepKeyHash:2,2:"DrepKeyHash",DrepScriptHash:3,3:"DrepScriptHash",StakingPoolKeyHash:4,4:"StakingPoolKeyHash"}),lj=Object.freeze({No:0,0:"No",Yes:1,1:"Yes",Abstain:2,2:"Abstain"}),dj=Object.freeze({KeyHash:0,0:"KeyHash",ScriptHash:1,1:"ScriptHash",Abstain:2,2:"Abstain",NoConfidence:3,3:"NoConfidence"}),uj=Object.freeze({MetadataMap:0,0:"MetadataMap",MetadataList:1,1:"MetadataList",Int:2,2:"Int",Bytes:3,3:"Bytes",Text:4,4:"Text"}),Kb=Object.freeze({NoConversions:0,0:"NoConversions",BasicConversions:1,1:"BasicConversions",DetailedSchema:2,2:"DetailedSchema"}),pj=Object.freeze({PlutusV1:0,0:"PlutusV1",PlutusV2:1,1:"PlutusV2",PlutusV3:2,2:"PlutusV3"}),fj=Object.freeze({ConstrPlutusData:0,0:"ConstrPlutusData",Map:1,1:"Map",List:2,2:"List",Integer:3,3:"Integer",Bytes:4,4:"Bytes"}),wj=Object.freeze({Spend:0,0:"Spend",Mint:1,1:"Mint",Cert:2,2:"Cert",Reward:3,3:"Reward",Drep:4,4:"Drep"}),gj=Object.freeze({BasicConversions:0,0:"BasicConversions",DetailedSchema:1,1:"DetailedSchema"}),hj=Object.freeze({NativeScript:0,0:"NativeScript",PlutusScriptV1:1,1:"PlutusScriptV1",PlutusScriptV2:2,2:"PlutusScriptV2",PlutusScriptV3:3,3:"PlutusScriptV3"}),bj=Object.freeze({Hash:0,0:"Hash",Data:1,1:"Data"}),un=Object.freeze({NativeScript:0,0:"NativeScript",PlutusV1:1,1:"PlutusV1",PlutusV2:2,2:"PlutusV2"}),Jb=Object.freeze({Wallet:0,0:"Wallet",Node:1,1:"Node"}),yj=Object.freeze({NativeWitness:0,0:"NativeWitness",PlutusWitness:1,1:"PlutusWitness"}),mj=Object.freeze({StakeRegistration:0,0:"StakeRegistration",StakeDeregistration:1,1:"StakeDeregistration",StakeDelegation:2,2:"StakeDelegation",PoolRegistration:3,3:"PoolRegistration",PoolRetirement:4,4:"PoolRetirement",GenesisKeyDelegation:5,5:"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,6:"MoveInstantaneousRewardsCert",RegCert:7,7:"RegCert",UnregCert:8,8:"UnregCert",VoteDelegCert:9,9:"VoteDelegCert",StakeVoteDelegCert:10,10:"StakeVoteDelegCert",StakeRegDelegCert:11,11:"StakeRegDelegCert",VoteRegDelegCert:12,12:"VoteRegDelegCert",StakeVoteRegDelegCert:13,13:"StakeVoteRegDelegCert",RegCommitteeHotKeyCert:14,14:"RegCommitteeHotKeyCert",UnregCommitteeHotKeyCert:15,15:"UnregCommitteeHotKeyCert",RegDrepCert:16,16:"RegDrepCert",UnregDrepCert:17,17:"UnregDrepCert"}),vj=Object.freeze({Reserves:0,0:"Reserves",Treasury:1,1:"Treasury"}),kj=Object.freeze({ToOtherPot:0,0:"ToOtherPot",ToStakeCredentials:1,1:"ToStakeCredentials"}),xj=Object.freeze({SingleHostAddr:0,0:"SingleHostAddr",SingleHostName:1,1:"SingleHostName",MultiHostName:2,2:"MultiHostName"}),jj=Object.freeze({ScriptPubkey:0,0:"ScriptPubkey",ScriptAll:1,1:"ScriptAll",ScriptAny:2,2:"ScriptAny",ScriptNOfK:3,3:"ScriptNOfK",TimelockStart:4,4:"TimelockStart",TimelockExpiry:5,5:"TimelockExpiry"}),Sj=Object.freeze({Testnet:0,0:"Testnet",Mainnet:1,1:"Mainnet"}),Qb=new FinalizationRegistry(n=>r.__wbg_address_free(n));class kt{static __wrap(t){const e=Object.create(kt.prototype);return e.ptr=t,Qb.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Qb.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_address_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.address_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.address_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const h=r.__wbindgen_add_to_stack_pointer(-16);var e=Pt(t)?0:E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=w;r.address_to_bech32(h,this.ptr,e,_);var a=s()[h/4+0],i=s()[h/4+1],o=s()[h/4+2],c=s()[h/4+3],d=a,f=i;if(c)throw d=0,f=0,l(o);return R(d,f)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(d,f)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.address_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.address_network_id(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_byron(){const t=r.address_as_byron(this.ptr);return t===0?void 0:Pe.__wrap(t)}as_reward(){const t=r.address_as_reward(this.ptr);return t===0?void 0:Nt.__wrap(t)}as_pointer(){const t=r.address_as_pointer(this.ptr);return t===0?void 0:T_.__wrap(t)}as_enterprise(){const t=r.address_as_enterprise(this.ptr);return t===0?void 0:Tn.__wrap(t)}as_base(){const t=r.address_as_base(this.ptr);return t===0?void 0:tr.__wrap(t)}}const Gb=new FinalizationRegistry(n=>r.__wbg_anchor_free(n));class Yn{static __wrap(t){const e=Object.create(Yn.prototype);return e.ptr=t,Gb.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Gb.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_anchor_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.anchor_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.anchor_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}anchor_url(){const t=r.anchor_anchor_url(this.ptr);return ir.__wrap(t)}anchor_data_hash(){const t=r.anchor_anchor_data_hash(this.ptr);return re.__wrap(t)}static new(t,e){p(t,ir),p(e,re);const _=r.anchor_new(t.ptr,e.ptr);return Yn.__wrap(_)}}const Xb=new FinalizationRegistry(n=>r.__wbg_assetname_free(n));class ne{static __wrap(t){const e=Object.create(ne.prototype);return e.ptr=t,Xb.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Xb.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assetname_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.assetname_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ne.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.assetname_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ne.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.assetname_new(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ne.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}name(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Yb=new FinalizationRegistry(n=>r.__wbg_assetnames_free(n));class ua{static __wrap(t){const e=Object.create(ua.prototype);return e.ptr=t,Yb.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Yb.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assetnames_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.assetnames_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.assetnames_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return ua.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.assetnames_get(this.ptr,t);return ne.__wrap(e)}add(t){p(t,ne),r.assetnames_add(this.ptr,t.ptr)}}const Zb=new FinalizationRegistry(n=>r.__wbg_assets_free(n));class Zn{static __wrap(t){const e=Object.create(Zn.prototype);return e.ptr=t,Zb.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Zb.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assets_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.assets_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Zn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.assets_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Zn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return Zn.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,ne),p(e,C);const _=r.assets_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:C.__wrap(_)}get(t){p(t,ne);const e=r.assets_get(this.ptr,t.ptr);return e===0?void 0:C.__wrap(e)}keys(){const t=r.assets_keys(this.ptr);return ua.__wrap(t)}}const ty=new FinalizationRegistry(n=>r.__wbg_auxiliarydata_free(n));class Re{static __wrap(t){const e=Object.create(Re.prototype);return e.ptr=t,ty.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ty.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.auxiliarydata_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Re.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.auxiliarydata_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Re.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydata_new();return Re.__wrap(t)}metadata(){const t=r.auxiliarydata_metadata(this.ptr);return t===0?void 0:mr.__wrap(t)}set_metadata(t){p(t,mr),r.auxiliarydata_set_metadata(this.ptr,t.ptr)}native_scripts(){const t=r.auxiliarydata_native_scripts(this.ptr);return t===0?void 0:xe.__wrap(t)}set_native_scripts(t){p(t,xe),r.auxiliarydata_set_native_scripts(this.ptr,t.ptr)}plutus_scripts(){const t=r.auxiliarydata_plutus_scripts(this.ptr);return t===0?void 0:se.__wrap(t)}plutus_v2_scripts(){const t=r.auxiliarydata_plutus_v2_scripts(this.ptr);return t===0?void 0:se.__wrap(t)}plutus_v3_scripts(){const t=r.auxiliarydata_plutus_v3_scripts(this.ptr);return t===0?void 0:se.__wrap(t)}set_plutus_scripts(t){p(t,se),r.auxiliarydata_set_plutus_scripts(this.ptr,t.ptr)}set_plutus_v2_scripts(t){p(t,se),r.auxiliarydata_set_plutus_v2_scripts(this.ptr,t.ptr)}set_plutus_v3_scripts(t){p(t,se),r.auxiliarydata_set_plutus_v3_scripts(this.ptr,t.ptr)}}const ey=new FinalizationRegistry(n=>r.__wbg_auxiliarydatahash_free(n));class br{static __wrap(t){const e=Object.create(br.prototype);return e.ptr=t,ey.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ey.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydatahash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.auxiliarydatahash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.auxiliarydatahash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.auxiliarydatahash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const ny=new FinalizationRegistry(n=>r.__wbg_auxiliarydataset_free(n));class ji{static __wrap(t){const e=Object.create(ji.prototype);return e.ptr=t,ny.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ny.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydataset_free(t)}static new(){const t=r.auxiliarydataset_new();return ji.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,C),p(e,Re);const _=r.auxiliarydataset_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:Re.__wrap(_)}get(t){p(t,C);const e=r.auxiliarydataset_get(this.ptr,t.ptr);return e===0?void 0:Re.__wrap(e)}indices(){const t=r.auxiliarydataset_indices(this.ptr);return Ha.__wrap(t)}}const ry=new FinalizationRegistry(n=>r.__wbg_baseaddress_free(n));class tr{static __wrap(t){const e=Object.create(tr.prototype);return e.ptr=t,ry.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ry.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_baseaddress_free(t)}static new(t,e,_){p(e,H),p(_,H);const a=r.baseaddress_new(t,e.ptr,_.ptr);return tr.__wrap(a)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return H.__wrap(t)}stake_cred(){const t=r.baseaddress_stake_cred(this.ptr);return H.__wrap(t)}to_address(){const t=r.baseaddress_to_address(this.ptr);return kt.__wrap(t)}static from_address(t){p(t,kt);const e=r.address_as_base(t.ptr);return e===0?void 0:tr.__wrap(e)}}const ay=new FinalizationRegistry(n=>r.__wbg_bigint_free(n));let Ko=class id{static __wrap(t){const e=Object.create(id.prototype);return e.ptr=t,ay.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ay.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bigint_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bigint_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.bigint_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return id.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_u64(){const t=r.bigint_as_u64(this.ptr);return t===0?void 0:C.__wrap(t)}as_int(){const t=r.bigint_as_int(this.ptr);return t===0?void 0:_e.__wrap(t)}static from_str(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.bigint_from_str(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return id.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bigint_to_str(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}};const _y=new FinalizationRegistry(n=>r.__wbg_bignum_free(n));let C=class ce{static __wrap(t){const e=Object.create(ce.prototype);return e.ptr=t,_y.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_y.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bignum_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bignum_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.bignum_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ce.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_str(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.bignum_from_str(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ce.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bignum_to_str(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static zero(){const t=r.bignum_zero();return ce.__wrap(t)}is_zero(){return r.bignum_is_zero(this.ptr)!==0}checked_mul(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,ce),r.bignum_checked_mul(i,this.ptr,t.ptr);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ce.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_add(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,ce),r.bignum_checked_add(i,this.ptr,t.ptr);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ce.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,ce),r.bignum_checked_sub(i,this.ptr,t.ptr);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ce.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_div(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,ce),r.bignum_checked_div(i,this.ptr,t.ptr);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ce.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_div_ceil(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,ce),r.bignum_checked_div_ceil(i,this.ptr,t.ptr);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ce.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){p(t,ce);const e=r.bignum_clamped_sub(this.ptr,t.ptr);return ce.__wrap(e)}compare(t){return p(t,ce),r.bignum_compare(this.ptr,t.ptr)}};const iy=new FinalizationRegistry(n=>r.__wbg_bip32privatekey_free(n));class In{static __wrap(t){const e=Object.create(In.prototype);return e.ptr=t,iy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,iy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bip32privatekey_free(t)}derive(t){const e=r.bip32privatekey_derive(this.ptr,t);return In.__wrap(e)}static from_128_xprv(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.bip32privatekey_from_128_xprv(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return In.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_128_xprv(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_to_128_xprv(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519_bip32(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_generate_ed25519_bip32(a);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return In.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=r.bip32privatekey_to_raw_key(this.ptr);return Ht.__wrap(t)}to_public(){const t=r.bip32privatekey_to_public(this.ptr);return pa.__wrap(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.bip32privatekey_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return In.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_as_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.bip32privatekey_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return In.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_to_bech32(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_bip39_entropy(t,e){const _=N(t,r.__wbindgen_malloc),a=w,i=N(e,r.__wbindgen_malloc),o=w,c=r.bip32privatekey_from_bip39_entropy(_,a,i,o);return In.__wrap(c)}chaincode(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_chaincode(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const sy=new FinalizationRegistry(n=>r.__wbg_bip32publickey_free(n));class pa{static __wrap(t){const e=Object.create(pa.prototype);return e.ptr=t,sy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,sy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bip32publickey_free(t)}derive(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_derive(i,this.ptr,t);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=r.bip32publickey_to_raw_key(this.ptr);return yn.__wrap(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.bip32publickey_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_as_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.bip32publickey_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_to_bech32(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}chaincode(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_chaincode(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const oy=new FinalizationRegistry(n=>r.__wbg_block_free(n));class Si{static __wrap(t){const e=Object.create(Si.prototype);return e.ptr=t,oy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,oy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_block_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.block_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Si.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.block_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Si.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}header(){const t=r.block_header(this.ptr);return ka.__wrap(t)}transaction_bodies(){const t=r.block_transaction_bodies(this.ptr);return $a.__wrap(t)}transaction_witness_sets(){const t=r.block_transaction_witness_sets(this.ptr);return Ja.__wrap(t)}auxiliary_data_set(){const t=r.block_auxiliary_data_set(this.ptr);return ji.__wrap(t)}invalid_transactions(){const t=r.block_invalid_transactions(this.ptr);return Ha.__wrap(t)}static new(t,e,_,a,i){p(t,ka),p(e,$a),p(_,Ja),p(a,ji),p(i,Ha);const o=r.block_new(t.ptr,e.ptr,_.ptr,a.ptr,i.ptr);return Si.__wrap(o)}}const cy=new FinalizationRegistry(n=>r.__wbg_blockhash_free(n));class er{static __wrap(t){const e=Object.create(er.prototype);return e.ptr=t,cy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,cy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_blockhash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.blockhash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.blockhash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.blockhash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const ly=new FinalizationRegistry(n=>r.__wbg_blockfrost_free(n));class Ci{static __wrap(t){const e=Object.create(Ci.prototype);return e.ptr=t,ly.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ly.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_blockfrost_free(t)}static new(t,e){const _=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=w,i=E(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=w,c=r.blockfrost_new(_,a,i,o);return Ci.__wrap(c)}url(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}project_id(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_project_id(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const dy=new FinalizationRegistry(n=>r.__wbg_bootstrapwitness_free(n));class pn{static __wrap(t){const e=Object.create(pn.prototype);return e.ptr=t,dy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,dy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bootstrapwitness_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.bootstrapwitness_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return pn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.bootstrapwitness_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return pn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}vkey(){const t=r.bootstrapwitness_vkey(this.ptr);return Se.__wrap(t)}signature(){const t=r.bootstrapwitness_signature(this.ptr);return ke.__wrap(t)}chain_code(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}attributes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_attributes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e,_,a){p(t,Se),p(e,ke);const i=N(_,r.__wbindgen_malloc),o=w,c=N(a,r.__wbindgen_malloc),d=w,f=r.bootstrapwitness_new(t.ptr,e.ptr,i,o,c,d);return pn.__wrap(f)}}const uy=new FinalizationRegistry(n=>r.__wbg_bootstrapwitnesses_free(n));class Ei{static __wrap(t){const e=Object.create(Ei.prototype);return e.ptr=t,uy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,uy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bootstrapwitnesses_free(t)}static new(){const t=r.assetnames_new();return Ei.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.bootstrapwitnesses_get(this.ptr,t);return pn.__wrap(e)}add(t){p(t,pn),r.bootstrapwitnesses_add(this.ptr,t.ptr)}}const py=new FinalizationRegistry(n=>r.__wbg_byronaddress_free(n));class Pe{static __wrap(t){const e=Object.create(Pe.prototype);return e.ptr=t,py.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,py.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_byronaddress_free(t)}to_base58(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_to_base58(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.byronaddress_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}byron_protocol_magic(){return r.byronaddress_byron_protocol_magic(this.ptr)>>>0}attributes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_attributes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_network_id(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_base58(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.byronaddress_from_base58(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static icarus_from_key(t,e){p(t,pa);const _=r.byronaddress_icarus_from_key(t.ptr,e);return Pe.__wrap(_)}static is_valid(t){const e=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=w;return r.byronaddress_is_valid(e,_)!==0}to_address(){const t=r.byronaddress_to_address(this.ptr);return kt.__wrap(t)}static from_address(t){p(t,kt);const e=r.address_as_byron(t.ptr);return e===0?void 0:Pe.__wrap(e)}}const fy=new FinalizationRegistry(n=>r.__wbg_certificate_free(n));class Ut{static __wrap(t){const e=Object.create(Ut.prototype);return e.ptr=t,fy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,fy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_certificate_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.certificate_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ut.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.certificate_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ut.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_stake_registration(t){p(t,Dr);const e=r.certificate_new_stake_registration(t.ptr);return Ut.__wrap(e)}static new_stake_deregistration(t){p(t,Mr);const e=r.certificate_new_stake_deregistration(t.ptr);return Ut.__wrap(e)}static new_stake_delegation(t){p(t,Ar);const e=r.certificate_new_stake_delegation(t.ptr);return Ut.__wrap(e)}static new_pool_registration(t){p(t,Nr);const e=r.certificate_new_pool_registration(t.ptr);return Ut.__wrap(e)}static new_pool_retirement(t){p(t,zr);const e=r.certificate_new_pool_retirement(t.ptr);return Ut.__wrap(e)}static new_genesis_key_delegation(t){p(t,ya);const e=r.certificate_new_genesis_key_delegation(t.ptr);return Ut.__wrap(e)}static new_move_instantaneous_rewards_cert(t){p(t,Ea);const e=r.certificate_new_move_instantaneous_rewards_cert(t.ptr);return Ut.__wrap(e)}kind(){return r.certificate_kind(this.ptr)>>>0}as_stake_registration(){const t=r.certificate_as_stake_registration(this.ptr);return t===0?void 0:Dr.__wrap(t)}as_stake_deregistration(){const t=r.certificate_as_stake_deregistration(this.ptr);return t===0?void 0:Mr.__wrap(t)}as_stake_delegation(){const t=r.certificate_as_stake_delegation(this.ptr);return t===0?void 0:Ar.__wrap(t)}as_pool_registration(){const t=r.certificate_as_pool_registration(this.ptr);return t===0?void 0:Nr.__wrap(t)}as_pool_retirement(){const t=r.certificate_as_pool_retirement(this.ptr);return t===0?void 0:zr.__wrap(t)}as_genesis_key_delegation(){const t=r.certificate_as_genesis_key_delegation(this.ptr);return t===0?void 0:ya.__wrap(t)}as_move_instantaneous_rewards_cert(){const t=r.certificate_as_move_instantaneous_rewards_cert(this.ptr);return t===0?void 0:Ea.__wrap(t)}as_reg_cert(){const t=r.certificate_as_reg_cert(this.ptr);return t===0?void 0:M_.__wrap(t)}as_unreg_cert(){const t=r.certificate_as_unreg_cert(this.ptr);return t===0?void 0:H_.__wrap(t)}as_vote_deleg_cert(){const t=r.certificate_as_vote_deleg_cert(this.ptr);return t===0?void 0:J_.__wrap(t)}as_stake_vote_deleg_cert(){const t=r.certificate_as_stake_vote_deleg_cert(this.ptr);return t===0?void 0:q_.__wrap(t)}as_stake_reg_deleg_cert(){const t=r.certificate_as_stake_reg_deleg_cert(this.ptr);return t===0?void 0:V_.__wrap(t)}as_vote_reg_deleg_cert(){const t=r.certificate_as_vote_reg_deleg_cert(this.ptr);return t===0?void 0:Q_.__wrap(t)}as_stake_vote_reg_deleg_cert(){const t=r.certificate_as_stake_vote_reg_deleg_cert(this.ptr);return t===0?void 0:$_.__wrap(t)}as_reg_committee_hot_key_cert(){const t=r.certificate_as_reg_committee_hot_key_cert(this.ptr);return t===0?void 0:D_.__wrap(t)}as_unreg_committee_hot_key_cert(){const t=r.certificate_as_unreg_committee_hot_key_cert(this.ptr);return t===0?void 0:W_.__wrap(t)}as_reg_drep_cert(){const t=r.certificate_as_reg_drep_cert(this.ptr);return t===0?void 0:B_.__wrap(t)}as_unreg_drep_cert(){const t=r.certificate_as_unreg_drep_cert(this.ptr);return t===0?void 0:K_.__wrap(t)}}const wy=new FinalizationRegistry(n=>r.__wbg_certificates_free(n));class yr{static __wrap(t){const e=Object.create(yr.prototype);return e.ptr=t,wy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,wy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_certificates_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.certificates_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return yr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.certificates_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return yr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return yr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.certificates_get(this.ptr,t);return Ut.__wrap(e)}add(t){p(t,Ut),r.certificates_add(this.ptr,t.ptr)}}const gy=new FinalizationRegistry(n=>r.__wbg_constrplutusdata_free(n));class fa{static __wrap(t){const e=Object.create(fa.prototype);return e.ptr=t,gy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,gy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_constrplutusdata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.constrplutusdata_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.constrplutusdata_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return fa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}alternative(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}data(){const t=r.constrplutusdata_data(this.ptr);return ie.__wrap(t)}static new(t,e){p(t,C),p(e,ie);const _=r.constrplutusdata_new(t.ptr,e.ptr);return fa.__wrap(_)}}const hy=new FinalizationRegistry(n=>r.__wbg_costmodel_free(n));class fn{static __wrap(t){const e=Object.create(fn.prototype);return e.ptr=t,hy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,hy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_costmodel_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.costmodel_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.costmodel_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.costmodel_new();return fn.__wrap(t)}static new_plutus_v2(){const t=r.costmodel_new_plutus_v2();return fn.__wrap(t)}static new_plutus_v3(){const t=r.costmodel_new_plutus_v3();return fn.__wrap(t)}set(t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(e,_e),r.costmodel_set(o,this.ptr,t,e.ptr);var _=s()[o/4+0],a=s()[o/4+1],i=s()[o/4+2];if(i)throw l(a);return _e.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.costmodel_get(i,this.ptr,t);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return _e.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}len(){return r.assetnames_len(this.ptr)>>>0}}const by=new FinalizationRegistry(n=>r.__wbg_costmdls_free(n));class nr{static __wrap(t){const e=Object.create(nr.prototype);return e.ptr=t,by.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,by.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_costmdls_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.costmdls_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.costmdls_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return nr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,Ke),p(e,fn);const _=r.costmdls_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:fn.__wrap(_)}get(t){p(t,Ke);const e=r.costmdls_get(this.ptr,t.ptr);return e===0?void 0:fn.__wrap(e)}keys(){const t=r.costmdls_keys(this.ptr);return Ns.__wrap(t)}}const yy=new FinalizationRegistry(n=>r.__wbg_dnsrecordaoraaaa_free(n));class wa{static __wrap(t){const e=Object.create(wa.prototype);return e.ptr=t,yy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,yy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_dnsrecordaoraaaa_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.dnsrecordaoraaaa_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.dnsrecordaoraaaa_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.dnsrecordaoraaaa_new(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}record(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const my=new FinalizationRegistry(n=>r.__wbg_dnsrecordsrv_free(n));class ga{static __wrap(t){const e=Object.create(ga.prototype);return e.ptr=t,my.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,my.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_dnsrecordsrv_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.dnsrecordsrv_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.dnsrecordsrv_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.dnsrecordsrv_new(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}record(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const vy=new FinalizationRegistry(n=>r.__wbg_data_free(n));class Fn{static __wrap(t){const e=Object.create(Fn.prototype);return e.ptr=t,vy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,vy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_data_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.data_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.data_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,at);const e=r.data_new(t.ptr);return Fn.__wrap(e)}get(){const t=r.data_get(this.ptr);return at.__wrap(t)}}const ky=new FinalizationRegistry(n=>r.__wbg_datahash_free(n));class re{static __wrap(t){const e=Object.create(re.prototype);return e.ptr=t,ky.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ky.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_datahash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.datahash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return re.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.datahash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return re.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.datahash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return re.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const xy=new FinalizationRegistry(n=>r.__wbg_datum_free(n));class Jt{static __wrap(t){const e=Object.create(Jt.prototype);return e.ptr=t,xy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,xy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_datum_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.datum_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Jt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.datum_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Jt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_data_hash(t){p(t,re);const e=r.datum_new_data_hash(t.ptr);return Jt.__wrap(e)}static new_data(t){p(t,Fn);const e=r.datum_new_data(t.ptr);return Jt.__wrap(e)}kind(){return r.datum_kind(this.ptr)>>>0}as_data_hash(){const t=r.datum_as_data_hash(this.ptr);return t===0?void 0:re.__wrap(t)}as_data(){const t=r.datum_as_data(this.ptr);return t===0?void 0:Fn.__wrap(t)}}const jy=new FinalizationRegistry(n=>r.__wbg_drep_free(n));class ae{static __wrap(t){const e=Object.create(ae.prototype);return e.ptr=t,jy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,jy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_drep_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.drep_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ae.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.drep_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ae.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_keyhash(t){p(t,X);const e=r.drep_new_keyhash(t.ptr);return ae.__wrap(e)}static new_scripthash(t){p(t,lt);const e=r.drep_new_scripthash(t.ptr);return ae.__wrap(e)}static new_abstain(){const t=r.drep_new_abstain();return ae.__wrap(t)}static new_no_confidence(){const t=r.drep_new_no_confidence();return ae.__wrap(t)}kind(){return r.drep_kind(this.ptr)>>>0}as_keyhash(){const t=r.drep_as_keyhash(this.ptr);return t===0?void 0:X.__wrap(t)}as_scripthash(){const t=r.drep_as_scripthash(this.ptr);return t===0?void 0:lt.__wrap(t)}}const Sy=new FinalizationRegistry(n=>r.__wbg_drepvotingthresholds_free(n));class ha{static __wrap(t){const e=Object.create(ha.prototype);return e.ptr=t,Sy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Sy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_drepvotingthresholds_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.drepvotingthresholds_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.drepvotingthresholds_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}motion_no_confidence(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return _t.__wrap(t)}committee_normal(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return _t.__wrap(t)}committee_no_confidence(){const t=r.drepvotingthresholds_committee_no_confidence(this.ptr);return _t.__wrap(t)}update_constitution(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return _t.__wrap(t)}hard_fork_initiation(){const t=r.drepvotingthresholds_hard_fork_initiation(this.ptr);return _t.__wrap(t)}pp_network_group(){const t=r.drepvotingthresholds_pp_network_group(this.ptr);return _t.__wrap(t)}pp_economic_group(){const t=r.drepvotingthresholds_pp_economic_group(this.ptr);return _t.__wrap(t)}pp_technical_group(){const t=r.drepvotingthresholds_pp_technical_group(this.ptr);return _t.__wrap(t)}pp_governance_group(){const t=r.drepvotingthresholds_pp_governance_group(this.ptr);return _t.__wrap(t)}treasury_withdrawal(){const t=r.drepvotingthresholds_treasury_withdrawal(this.ptr);return _t.__wrap(t)}static new(t,e,_,a,i,o,c,d,f,h){p(t,_t),p(e,_t),p(_,_t),p(a,_t),p(i,_t),p(o,_t),p(c,_t),p(d,_t),p(f,_t),p(h,_t);const v=r.drepvotingthresholds_new(t.ptr,e.ptr,_.ptr,a.ptr,i.ptr,o.ptr,c.ptr,d.ptr,f.ptr,h.ptr);return ha.__wrap(v)}}const Cy=new FinalizationRegistry(n=>r.__wbg_ed25519keyhash_free(n));class X{static __wrap(t){const e=Object.create(X.prototype);return e.ptr=t,Cy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Cy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519keyhash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.ed25519keyhash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return X.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.ed25519keyhash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ed25519keyhash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return X.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ed25519keyhash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return X.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Ey=new FinalizationRegistry(n=>r.__wbg_ed25519keyhashes_free(n));class Yt{static __wrap(t){const e=Object.create(Yt.prototype);return e.ptr=t,Ey.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ey.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519keyhashes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.ed25519keyhashes_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Yt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ed25519keyhashes_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Yt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return Yt.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.ed25519keyhashes_get(this.ptr,t);return X.__wrap(e)}add(t){p(t,X),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const Oy=new FinalizationRegistry(n=>r.__wbg_ed25519signature_free(n));class ke{static __wrap(t){const e=Object.create(ke.prototype);return e.ptr=t,Oy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Oy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519signature_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_bech32(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ed25519signature_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ke.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ed25519signature_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ke.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.ed25519signature_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ke.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Ny=new FinalizationRegistry(n=>r.__wbg_enterpriseaddress_free(n));class Tn{static __wrap(t){const e=Object.create(Tn.prototype);return e.ptr=t,Ny.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ny.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_enterpriseaddress_free(t)}static new(t,e){p(e,H);const _=r.enterpriseaddress_new(t,e.ptr);return Tn.__wrap(_)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return H.__wrap(t)}to_address(){const t=r.enterpriseaddress_to_address(this.ptr);return kt.__wrap(t)}static from_address(t){p(t,kt);const e=r.address_as_enterprise(t.ptr);return e===0?void 0:Tn.__wrap(e)}}const zy=new FinalizationRegistry(n=>r.__wbg_exunitprices_free(n));class An{static __wrap(t){const e=Object.create(An.prototype);return e.ptr=t,zy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,zy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_exunitprices_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.exunitprices_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.exunitprices_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return An.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mem_price(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return _t.__wrap(t)}step_price(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return _t.__wrap(t)}static new(t,e){p(t,_t),p(e,_t);const _=r.exunitprices_new(t.ptr,e.ptr);return An.__wrap(_)}static from_float(t,e){const _=r.exunitprices_from_float(t,e);return An.__wrap(_)}}const Ry=new FinalizationRegistry(n=>r.__wbg_exunits_free(n));class We{static __wrap(t){const e=Object.create(We.prototype);return e.ptr=t,Ry.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ry.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_exunits_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.exunits_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.exunits_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return We.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mem(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}steps(){const t=r.exunits_steps(this.ptr);return C.__wrap(t)}static new(t,e){p(t,C),p(e,C);const _=r.exunits_new(t.ptr,e.ptr);return We.__wrap(_)}}const Py=new FinalizationRegistry(n=>r.__wbg_generaltransactionmetadata_free(n));class mr{static __wrap(t){const e=Object.create(mr.prototype);return e.ptr=t,Py.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Py.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_generaltransactionmetadata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.generaltransactionmetadata_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.generaltransactionmetadata_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return mr.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,C),p(e,vt);const _=r.generaltransactionmetadata_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:vt.__wrap(_)}get(t){p(t,C);const e=r.generaltransactionmetadata_get(this.ptr,t.ptr);return e===0?void 0:vt.__wrap(e)}keys(){const t=r.generaltransactionmetadata_keys(this.ptr);return Ri.__wrap(t)}}const Iy=new FinalizationRegistry(n=>r.__wbg_genesisdelegatehash_free(n));class ba{static __wrap(t){const e=Object.create(ba.prototype);return e.ptr=t,Iy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Iy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesisdelegatehash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.genesisdelegatehash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.ed25519keyhash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesisdelegatehash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesisdelegatehash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Fy=new FinalizationRegistry(n=>r.__wbg_genesishash_free(n));class wn{static __wrap(t){const e=Object.create(wn.prototype);return e.ptr=t,Fy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Fy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesishash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.genesishash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return wn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.ed25519keyhash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesishash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return wn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesishash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return wn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Ty=new FinalizationRegistry(n=>r.__wbg_genesishashes_free(n));class P_{static __wrap(t){const e=Object.create(P_.prototype);return e.ptr=t,Ty.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ty.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesishashes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.genesishashes_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.genesishashes_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return P_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesishashes_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return P_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return P_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.genesishashes_get(this.ptr,t);return wn.__wrap(e)}add(t){p(t,wn),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const Ay=new FinalizationRegistry(n=>r.__wbg_genesiskeydelegation_free(n));class ya{static __wrap(t){const e=Object.create(ya.prototype);return e.ptr=t,Ay.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ay.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesiskeydelegation_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.genesiskeydelegation_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesiskeydelegation_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}genesishash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return wn.__wrap(t)}genesis_delegate_hash(){const t=r.genesiskeydelegation_genesis_delegate_hash(this.ptr);return ba.__wrap(t)}vrf_keyhash(){const t=r.genesiskeydelegation_vrf_keyhash(this.ptr);return vn.__wrap(t)}static new(t,e,_){p(t,wn),p(e,ba),p(_,vn);const a=r.genesiskeydelegation_new(t.ptr,e.ptr,_.ptr);return ya.__wrap(a)}}const My=new FinalizationRegistry(n=>r.__wbg_governanceaction_free(n));class Ie{static __wrap(t){const e=Object.create(Ie.prototype);return e.ptr=t,My.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,My.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_governanceaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.governanceaction_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.governanceaction_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_parameter_change_action(t){p(t,Pa);const e=r.governanceaction_new_parameter_change_action(t.ptr);return Ie.__wrap(e)}static new_hard_fork_initiation_action(t){p(t,va);const e=r.governanceaction_new_hard_fork_initiation_action(t.ptr);return Ie.__wrap(e)}static new_treasury_withdrawals_action(t){p(t,Ga);const e=r.governanceaction_new_treasury_withdrawals_action(t.ptr);return Ie.__wrap(e)}static new_no_confidence(){const t=r.governanceaction_new_no_confidence();return Ie.__wrap(t)}static new_new_committee(t){p(t,Oa);const e=r.governanceaction_new_new_committee(t.ptr);return Ie.__wrap(e)}static new_new_constitution(t){p(t,Na);const e=r.governanceaction_new_new_constitution(t.ptr);return Ie.__wrap(e)}static new_info_action(){const t=r.governanceaction_new_info_action();return Ie.__wrap(t)}kind(){return r.governanceaction_kind(this.ptr)>>>0}as_parameter_change_action(){const t=r.governanceaction_as_parameter_change_action(this.ptr);return t===0?void 0:Pa.__wrap(t)}as_hard_fork_initiation_action(){const t=r.governanceaction_as_hard_fork_initiation_action(this.ptr);return t===0?void 0:va.__wrap(t)}as_treasury_withdrawals_action(){const t=r.governanceaction_as_treasury_withdrawals_action(this.ptr);return t===0?void 0:Ga.__wrap(t)}as_new_committee(){const t=r.governanceaction_as_new_committee(this.ptr);return t===0?void 0:Oa.__wrap(t)}as_new_constitution(){const t=r.governanceaction_as_new_constitution(this.ptr);return t===0?void 0:Na.__wrap(t)}}const Dy=new FinalizationRegistry(n=>r.__wbg_governanceactionid_free(n));class ma{static __wrap(t){const e=Object.create(ma.prototype);return e.ptr=t,Dy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Dy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_governanceactionid_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.governanceactionid_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.governanceactionid_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}transaction_id(){const t=r.governanceactionid_transaction_id(this.ptr);return we.__wrap(t)}governance_action_index(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t,e){p(t,we),p(e,C);const _=r.governanceactionid_new(t.ptr,e.ptr);return ma.__wrap(_)}}const By=new FinalizationRegistry(n=>r.__wbg_hardforkinitiationaction_free(n));class va{static __wrap(t){const e=Object.create(va.prototype);return e.ptr=t,By.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,By.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_hardforkinitiationaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.hardforkinitiationaction_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.hardforkinitiationaction_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}protocol_version(){const t=r.hardforkinitiationaction_new(this.ptr);return bn.__wrap(t)}static new(t){p(t,bn);const e=r.hardforkinitiationaction_new(t.ptr);return va.__wrap(e)}}const Ly=new FinalizationRegistry(n=>r.__wbg_header_free(n));class ka{static __wrap(t){const e=Object.create(ka.prototype);return e.ptr=t,Ly.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ly.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_header_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.header_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.header_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}header_body(){const t=r.header_header_body(this.ptr);return xa.__wrap(t)}body_signature(){const t=r.header_body_signature(this.ptr);return Oi.__wrap(t)}static new(t,e){p(t,xa),p(e,Oi);const _=r.header_new(t.ptr,e.ptr);return ka.__wrap(_)}}const Uy=new FinalizationRegistry(n=>r.__wbg_headerbody_free(n));class xa{static __wrap(t){const e=Object.create(xa.prototype);return e.ptr=t,Uy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Uy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_headerbody_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.headerbody_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.headerbody_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}block_number(){return r.headerbody_block_number(this.ptr)>>>0}slot(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}prev_hash(){const t=r.headerbody_prev_hash(this.ptr);return t===0?void 0:er.__wrap(t)}issuer_vkey(){const t=r.headerbody_issuer_vkey(this.ptr);return Se.__wrap(t)}vrf_vkey(){const t=r.headerbody_vrf_vkey(this.ptr);return Ii.__wrap(t)}nonce_vrf(){const t=r.headerbody_nonce_vrf(this.ptr);return sr.__wrap(t)}leader_vrf(){const t=r.headerbody_leader_vrf(this.ptr);return sr.__wrap(t)}block_body_size(){return r.headerbody_block_body_size(this.ptr)>>>0}block_body_hash(){const t=r.headerbody_block_body_hash(this.ptr);return er.__wrap(t)}operational_cert(){const t=r.headerbody_operational_cert(this.ptr);return Ra.__wrap(t)}protocol_version(){const t=r.headerbody_protocol_version(this.ptr);return bn.__wrap(t)}static new(t,e,_,a,i,o,c,d,f,h,v){p(e,C);let y=0;Pt(_)||(p(_,er),y=_.__destroy_into_raw()),p(a,Se),p(i,Ii),p(o,sr),p(c,sr),p(f,er),p(h,Ra),p(v,bn);const x=r.headerbody_new(t,e.ptr,y,a.ptr,i.ptr,o.ptr,c.ptr,d,f.ptr,h.ptr,v.ptr);return xa.__wrap(x)}}const Vy=new FinalizationRegistry(n=>r.__wbg_int_free(n));let _e=class $i{static __wrap(t){const e=Object.create($i.prototype);return e.ptr=t,Vy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Vy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_int_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.int_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.int_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return $i.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,C);const e=r.int_new(t.ptr);return $i.__wrap(e)}static new_negative(t){p(t,C);const e=r.int_new_negative(t.ptr);return $i.__wrap(e)}static new_i32(t){const e=r.int_new_i32(t);return $i.__wrap(e)}is_positive(){return r.int_is_positive(this.ptr)!==0}as_positive(){const t=r.int_as_positive(this.ptr);return t===0?void 0:C.__wrap(t)}as_negative(){const t=r.int_as_negative(this.ptr);return t===0?void 0:C.__wrap(t)}as_i32(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_nothing(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_fail(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32_or_fail(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.int_to_str(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_str(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.int_from_str(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return $i.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};const qy=new FinalizationRegistry(n=>r.__wbg_ipv4_free(n));class vr{static __wrap(t){const e=Object.create(vr.prototype);return e.ptr=t,qy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,qy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ipv4_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.ipv4_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ipv4_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.ipv4_new(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_ip(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const $y=new FinalizationRegistry(n=>r.__wbg_ipv6_free(n));class kr{static __wrap(t){const e=Object.create(kr.prototype);return e.ptr=t,$y.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$y.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ipv6_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.ipv6_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return kr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ipv6_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return kr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.ipv6_new(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return kr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_ip(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Hy=new FinalizationRegistry(n=>r.__wbg_kessignature_free(n));class Oi{static __wrap(t){const e=Object.create(Oi.prototype);return e.ptr=t,Hy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Hy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_kessignature_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.kessignature_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Oi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Wy=new FinalizationRegistry(n=>r.__wbg_kesvkey_free(n));class ja{static __wrap(t){const e=Object.create(ja.prototype);return e.ptr=t,Wy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Wy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_kesvkey_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.kesvkey_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.kesvkey_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.kesvkey_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Ky=new FinalizationRegistry(n=>r.__wbg_language_free(n));class Ke{static __wrap(t){const e=Object.create(Ke.prototype);return e.ptr=t,Ky.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ky.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_language_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.language_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.language_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ke.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_plutus_v1(){const t=r.language_new_plutus_v1();return Ke.__wrap(t)}static new_plutus_v2(){const t=r.language_new_plutus_v2();return Ke.__wrap(t)}static new_plutus_v3(){const t=r.language_new_plutus_v3();return Ke.__wrap(t)}kind(){return r.language_kind(this.ptr)>>>0}}const Jy=new FinalizationRegistry(n=>r.__wbg_languages_free(n));class Ns{static __wrap(t){const e=Object.create(Ns.prototype);return e.ptr=t,Jy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Jy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_languages_free(t)}static new(){const t=r.ed25519keyhashes_new();return Ns.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.languages_get(this.ptr,t);return Ke.__wrap(e)}add(t){p(t,Ke);var e=t.__destroy_into_raw();r.languages_add(this.ptr,e)}}const Qy=new FinalizationRegistry(n=>r.__wbg_legacydaedalusprivatekey_free(n));class zs{static __wrap(t){const e=Object.create(zs.prototype);return e.ptr=t,Qy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Qy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_legacydaedalusprivatekey_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.legacydaedalusprivatekey_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return zs.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.legacydaedalusprivatekey_as_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}chaincode(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.legacydaedalusprivatekey_chaincode(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Gy=new FinalizationRegistry(n=>r.__wbg_linearfee_free(n));class I_{static __wrap(t){const e=Object.create(I_.prototype);return e.ptr=t,Gy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Gy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_linearfee_free(t)}constant(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}coefficient(){const t=r.exunits_steps(this.ptr);return C.__wrap(t)}static new(t,e){p(t,C),p(e,C);const _=r.linearfee_new(t.ptr,e.ptr);return I_.__wrap(_)}}const Xy=new FinalizationRegistry(n=>r.__wbg_mirtostakecredentials_free(n));class Sa{static __wrap(t){const e=Object.create(Sa.prototype);return e.ptr=t,Xy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Xy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mirtostakecredentials_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.mirtostakecredentials_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Sa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.mirtostakecredentials_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Sa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return Sa.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,H),p(e,_e);const _=r.mirtostakecredentials_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:_e.__wrap(_)}get(t){p(t,H);const e=r.mirtostakecredentials_get(this.ptr,t.ptr);return e===0?void 0:_e.__wrap(e)}keys(){const t=r.mirtostakecredentials_keys(this.ptr);return U_.__wrap(t)}}const Yy=new FinalizationRegistry(n=>r.__wbg_metadatalist_free(n));class Ca{static __wrap(t){const e=Object.create(Ca.prototype);return e.ptr=t,Yy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Yy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_metadatalist_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.metadatalist_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.metadatalist_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ca.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Ca.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.metadatalist_get(this.ptr,t);return vt.__wrap(e)}add(t){p(t,vt),r.metadatalist_add(this.ptr,t.ptr)}}const Zy=new FinalizationRegistry(n=>r.__wbg_metadatamap_free(n));class F_{static __wrap(t){const e=Object.create(F_.prototype);return e.ptr=t,Zy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Zy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_metadatamap_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.metadatamap_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.metadatamap_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return F_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return F_.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,vt),p(e,vt);const _=r.metadatamap_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:vt.__wrap(_)}insert_str(t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16),c=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),d=w;p(e,vt),r.metadatamap_insert_str(o,this.ptr,c,d,e.ptr);var _=s()[o/4+0],a=s()[o/4+1],i=s()[o/4+2];if(i)throw l(a);return _===0?void 0:vt.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}insert_i32(t,e){p(e,vt);const _=r.metadatamap_insert_i32(this.ptr,t,e.ptr);return _===0?void 0:vt.__wrap(_)}get(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,vt),r.metadatamap_get(i,this.ptr,t.ptr);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_str(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.metadatamap_get_str(i,this.ptr,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_i32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.metadatamap_get_i32(i,this.ptr,t);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}has(t){return p(t,vt),r.metadatamap_has(this.ptr,t.ptr)!==0}keys(){const t=r.metadatamap_keys(this.ptr);return Ca.__wrap(t)}}const tm=new FinalizationRegistry(n=>r.__wbg_mint_free(n));class rr{static __wrap(t){const e=Object.create(rr.prototype);return e.ptr=t,tm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,tm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mint_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.mint_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.mint_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return rr.__wrap(t)}static new_from_entry(t,e){p(t,lt),p(e,Mn);const _=r.mint_new_from_entry(t.ptr,e.ptr);return rr.__wrap(_)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,lt),p(e,Mn);const _=r.mint_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:Mn.__wrap(_)}get(t){p(t,lt);const e=r.mint_get(this.ptr,t.ptr);return e===0?void 0:Mn.__wrap(e)}keys(){const t=r.mint_keys(this.ptr);return Ba.__wrap(t)}as_positive_multiasset(){const t=r.mint_as_positive_multiasset(this.ptr);return fe.__wrap(t)}as_negative_multiasset(){const t=r.mint_as_negative_multiasset(this.ptr);return fe.__wrap(t)}}const em=new FinalizationRegistry(n=>r.__wbg_mintassets_free(n));class Mn{static __wrap(t){const e=Object.create(Mn.prototype);return e.ptr=t,em.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,em.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mintassets_free(t)}static new(){const t=r.assets_new();return Mn.__wrap(t)}static new_from_entry(t,e){p(t,ne),p(e,_e);var _=e.__destroy_into_raw();const a=r.mintassets_new_from_entry(t.ptr,_);return Mn.__wrap(a)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,ne),p(e,_e);var _=e.__destroy_into_raw();const a=r.mintassets_insert(this.ptr,t.ptr,_);return a===0?void 0:_e.__wrap(a)}get(t){p(t,ne);const e=r.mintassets_get(this.ptr,t.ptr);return e===0?void 0:_e.__wrap(e)}keys(){const t=r.mintassets_keys(this.ptr);return ua.__wrap(t)}}const nm=new FinalizationRegistry(n=>r.__wbg_moveinstantaneousreward_free(n));class xr{static __wrap(t){const e=Object.create(xr.prototype);return e.ptr=t,nm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,nm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_moveinstantaneousreward_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.moveinstantaneousreward_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return xr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.moveinstantaneousreward_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return xr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_to_other_pot(t,e){p(e,C);const _=r.moveinstantaneousreward_new_to_other_pot(t,e.ptr);return xr.__wrap(_)}static new_to_stake_creds(t,e){p(e,Sa);const _=r.moveinstantaneousreward_new_to_stake_creds(t,e.ptr);return xr.__wrap(_)}pot(){return r.moveinstantaneousreward_pot(this.ptr)>>>0}kind(){return r.moveinstantaneousreward_kind(this.ptr)>>>0}as_to_other_pot(){const t=r.moveinstantaneousreward_as_to_other_pot(this.ptr);return t===0?void 0:C.__wrap(t)}as_to_stake_creds(){const t=r.moveinstantaneousreward_as_to_stake_creds(this.ptr);return t===0?void 0:Sa.__wrap(t)}}const rm=new FinalizationRegistry(n=>r.__wbg_moveinstantaneousrewardscert_free(n));class Ea{static __wrap(t){const e=Object.create(Ea.prototype);return e.ptr=t,rm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,rm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_moveinstantaneousrewardscert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.moveinstantaneousrewardscert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ea.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.moveinstantaneousrewardscert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ea.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}move_instantaneous_reward(){const t=r.moveinstantaneousrewardscert_move_instantaneous_reward(this.ptr);return xr.__wrap(t)}static new(t){p(t,xr);const e=r.moveinstantaneousrewardscert_new(t.ptr);return Ea.__wrap(e)}}const am=new FinalizationRegistry(n=>r.__wbg_multiasset_free(n));class fe{static __wrap(t){const e=Object.create(fe.prototype);return e.ptr=t,am.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,am.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_multiasset_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.multiasset_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.multiasset_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return fe.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,lt),p(e,Zn);const _=r.multiasset_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:Zn.__wrap(_)}get(t){p(t,lt);const e=r.multiasset_get(this.ptr,t.ptr);return e===0?void 0:Zn.__wrap(e)}set_asset(t,e,_){p(t,lt),p(e,ne),p(_,C);var a=_.__destroy_into_raw();const i=r.multiasset_set_asset(this.ptr,t.ptr,e.ptr,a);return i===0?void 0:C.__wrap(i)}get_asset(t,e){p(t,lt),p(e,ne);const _=r.multiasset_get_asset(this.ptr,t.ptr,e.ptr);return C.__wrap(_)}keys(){const t=r.mint_keys(this.ptr);return Ba.__wrap(t)}sub(t){p(t,fe);const e=r.multiasset_sub(this.ptr,t.ptr);return fe.__wrap(e)}}const _m=new FinalizationRegistry(n=>r.__wbg_multihostname_free(n));class jr{static __wrap(t){const e=Object.create(jr.prototype);return e.ptr=t,_m.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_m.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_multihostname_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.multihostname_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return jr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.multihostname_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return jr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}dns_name(){const t=r.anchor_anchor_url(this.ptr);return ga.__wrap(t)}static new(t){p(t,ga);const e=r.multihostname_new(t.ptr);return jr.__wrap(e)}}const im=new FinalizationRegistry(n=>r.__wbg_nativescript_free(n));class Ct{static __wrap(t){const e=Object.create(Ct.prototype);return e.ptr=t,im.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,im.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nativescript_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.nativescript_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ct.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.nativescript_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ct.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(t){const e=r.nativescript_hash(this.ptr,t);return lt.__wrap(e)}static new_script_pubkey(t){p(t,Ua);const e=r.nativescript_new_script_pubkey(t.ptr);return Ct.__wrap(e)}static new_script_all(t){p(t,Ma);const e=r.nativescript_new_script_all(t.ptr);return Ct.__wrap(e)}static new_script_any(t){p(t,Da);const e=r.nativescript_new_script_any(t.ptr);return Ct.__wrap(e)}static new_script_n_of_k(t){p(t,La);const e=r.nativescript_new_script_n_of_k(t.ptr);return Ct.__wrap(e)}static new_timelock_start(t){p(t,qa);const e=r.nativescript_new_timelock_start(t.ptr);return Ct.__wrap(e)}static new_timelock_expiry(t){p(t,Va);const e=r.nativescript_new_timelock_expiry(t.ptr);return Ct.__wrap(e)}kind(){return r.nativescript_kind(this.ptr)>>>0}as_script_pubkey(){const t=r.nativescript_as_script_pubkey(this.ptr);return t===0?void 0:Ua.__wrap(t)}as_script_all(){const t=r.nativescript_as_script_all(this.ptr);return t===0?void 0:Ma.__wrap(t)}as_script_any(){const t=r.nativescript_as_script_any(this.ptr);return t===0?void 0:Da.__wrap(t)}as_script_n_of_k(){const t=r.nativescript_as_script_n_of_k(this.ptr);return t===0?void 0:La.__wrap(t)}as_timelock_start(){const t=r.nativescript_as_timelock_start(this.ptr);return t===0?void 0:qa.__wrap(t)}as_timelock_expiry(){const t=r.nativescript_as_timelock_expiry(this.ptr);return t===0?void 0:Va.__wrap(t)}get_required_signers(){const t=r.nativescript_get_required_signers(this.ptr);return Yt.__wrap(t)}verify(t,e,_){let a=0;Pt(t)||(p(t,C),a=t.__destroy_into_raw());let i=0;return Pt(e)||(p(e,C),i=e.__destroy_into_raw()),p(_,Yt),r.nativescript_verify(this.ptr,a,i,_.ptr)!==0}}const sm=new FinalizationRegistry(n=>r.__wbg_nativescripts_free(n));class xe{static __wrap(t){const e=Object.create(xe.prototype);return e.ptr=t,sm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,sm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nativescripts_free(t)}static new(){const t=r.certificates_new();return xe.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.nativescripts_get(this.ptr,t);return Ct.__wrap(e)}add(t){p(t,Ct),r.nativescripts_add(this.ptr,t.ptr)}}const om=new FinalizationRegistry(n=>r.__wbg_networkid_free(n));class gn{static __wrap(t){const e=Object.create(gn.prototype);return e.ptr=t,om.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,om.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_networkid_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.networkid_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return gn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.networkid_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return gn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static testnet(){const t=r.networkid_testnet();return gn.__wrap(t)}static mainnet(){const t=r.networkid_mainnet();return gn.__wrap(t)}kind(){return r.networkid_kind(this.ptr)>>>0}}const cm=new FinalizationRegistry(n=>r.__wbg_networkinfo_free(n));class Sr{static __wrap(t){const e=Object.create(Sr.prototype);return e.ptr=t,cm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,cm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_networkinfo_free(t)}static new(t,e){const _=r.networkinfo_new(t,e);return Sr.__wrap(_)}network_id(){return r.networkinfo_network_id(this.ptr)}protocol_magic(){return r.networkinfo_protocol_magic(this.ptr)>>>0}static testnet(){const t=r.networkinfo_testnet();return Sr.__wrap(t)}static mainnet(){const t=r.networkinfo_mainnet();return Sr.__wrap(t)}}const lm=new FinalizationRegistry(n=>r.__wbg_newcommittee_free(n));class Oa{static __wrap(t){const e=Object.create(Oa.prototype);return e.ptr=t,lm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,lm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_newcommittee_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.newcommittee_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Oa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.newcommittee_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Oa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee(){const t=r.newcommittee_committee(this.ptr);return Yt.__wrap(t)}rational(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return _t.__wrap(t)}static new(t,e){p(t,Yt),p(e,_t);const _=r.newcommittee_new(t.ptr,e.ptr);return Oa.__wrap(_)}}const dm=new FinalizationRegistry(n=>r.__wbg_newconstitution_free(n));class Na{static __wrap(t){const e=Object.create(Na.prototype);return e.ptr=t,dm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,dm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_newconstitution_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.newconstitution_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Na.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.newconstitution_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Na.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=r.newconstitution_hash(this.ptr);return re.__wrap(t)}static new(t){p(t,re);const e=r.newconstitution_new(t.ptr);return Na.__wrap(e)}}const um=new FinalizationRegistry(n=>r.__wbg_nonce_free(n));class za{static __wrap(t){const e=Object.create(za.prototype);return e.ptr=t,um.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,um.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nonce_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.nonce_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.nonce_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_identity(){const t=r.nonce_new_identity();return za.__wrap(t)}static new_from_hash(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.nonce_new_from_hash(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_hash(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.nonce_get_hash(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];let a;return t!==0&&(a=S(t,e).slice(),r.__wbindgen_free(t,e*1)),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const pm=new FinalizationRegistry(n=>r.__wbg_operationalcert_free(n));class Ra{static __wrap(t){const e=Object.create(Ra.prototype);return e.ptr=t,pm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,pm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_operationalcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.operationalcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ra.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.operationalcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ra.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hot_vkey(){const t=r.operationalcert_hot_vkey(this.ptr);return ja.__wrap(t)}sequence_number(){return r.networkinfo_protocol_magic(this.ptr)>>>0}kes_period(){return r.operationalcert_kes_period(this.ptr)>>>0}sigma(){const t=r.operationalcert_sigma(this.ptr);return ke.__wrap(t)}static new(t,e,_,a){p(t,ja),p(a,ke);const i=r.operationalcert_new(t.ptr,e,_,a.ptr);return Ra.__wrap(i)}}const fm=new FinalizationRegistry(n=>r.__wbg_parameterchangeaction_free(n));class Pa{static __wrap(t){const e=Object.create(Pa.prototype);return e.ptr=t,fm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,fm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_parameterchangeaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.parameterchangeaction_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.parameterchangeaction_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}protocol_param_update(){const t=r.parameterchangeaction_protocol_param_update(this.ptr);return Dn.__wrap(t)}static new(t){p(t,Dn);const e=r.parameterchangeaction_new(t.ptr);return Pa.__wrap(e)}}const wm=new FinalizationRegistry(n=>r.__wbg_plutusdata_free(n));class at{static __wrap(t){const e=Object.create(at.prototype);return e.ptr=t,wm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,wm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusdata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusdata_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.plutusdata_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return at.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_constr_plutus_data(t){p(t,fa);const e=r.plutusdata_new_constr_plutus_data(t.ptr);return at.__wrap(e)}static new_map(t){p(t,Ia);const e=r.plutusdata_new_map(t.ptr);return at.__wrap(e)}static new_list(t){p(t,ie);const e=r.plutusdata_new_list(t.ptr);return at.__wrap(e)}static new_integer(t){p(t,Ko);const e=r.plutusdata_new_integer(t.ptr);return at.__wrap(e)}static new_bytes(t){const e=N(t,r.__wbindgen_malloc),_=w,a=r.plutusdata_new_bytes(e,_);return at.__wrap(a)}kind(){return r.plutusdata_kind(this.ptr)>>>0}as_constr_plutus_data(){const t=r.plutusdata_as_constr_plutus_data(this.ptr);return t===0?void 0:fa.__wrap(t)}as_map(){const t=r.plutusdata_as_map(this.ptr);return t===0?void 0:Ia.__wrap(t)}as_list(){const t=r.plutusdata_as_list(this.ptr);return t===0?void 0:ie.__wrap(t)}as_integer(){const t=r.plutusdata_as_integer(this.ptr);return t===0?void 0:Ko.__wrap(t)}as_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.plutusdata_as_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];let a;return t!==0&&(a=S(t,e).slice(),r.__wbindgen_free(t,e*1)),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const gm=new FinalizationRegistry(n=>r.__wbg_plutuslist_free(n));class ie{static __wrap(t){const e=Object.create(ie.prototype);return e.ptr=t,gm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,gm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutuslist_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutuslist_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.plutuslist_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.plutuslist_new();return ie.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.plutuslist_get(this.ptr,t);return at.__wrap(e)}add(t){p(t,at),r.plutuslist_add(this.ptr,t.ptr)}}const hm=new FinalizationRegistry(n=>r.__wbg_plutusmap_free(n));class Ia{static __wrap(t){const e=Object.create(Ia.prototype);return e.ptr=t,hm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,hm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusmap_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusmap_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.plutusmap_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ia.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Ia.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,at),p(e,at);const _=r.plutusmap_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:at.__wrap(_)}get(t){p(t,at);const e=r.plutusmap_get(this.ptr,t.ptr);return e===0?void 0:at.__wrap(e)}keys(){const t=r.plutusmap_keys(this.ptr);return ie.__wrap(t)}}const bm=new FinalizationRegistry(n=>r.__wbg_plutusscript_free(n));class gt{static __wrap(t){const e=Object.create(gt.prototype);return e.ptr=t,bm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,bm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusscript_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusscript_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.plutusscript_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return gt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(t){const e=r.plutusscript_hash(this.ptr,t);return lt.__wrap(e)}static new(t){const e=N(t,r.__wbindgen_malloc),_=w,a=r.plutusscript_new(e,_);return gt.__wrap(a)}bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const ym=new FinalizationRegistry(n=>r.__wbg_plutusscripts_free(n));class se{static __wrap(t){const e=Object.create(se.prototype);return e.ptr=t,ym.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ym.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusscripts_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusscripts_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.plutusscripts_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return se.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.plutusscripts_get(this.ptr,t);return gt.__wrap(e)}add(t){p(t,gt),r.assetnames_add(this.ptr,t.ptr)}}const mm=new FinalizationRegistry(n=>r.__wbg_plutuswitness_free(n));class hn{static __wrap(t){const e=Object.create(hn.prototype);return e.ptr=t,mm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,mm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutuswitness_free(t)}static new(t,e,_){p(t,at);let a=0;Pt(e)||(p(e,at),a=e.__destroy_into_raw());let i=0;Pt(_)||(p(_,gt),i=_.__destroy_into_raw());const o=r.plutuswitness_new(t.ptr,a,i);return hn.__wrap(o)}static new_plutus_v2(t,e,_){p(t,at);let a=0;Pt(e)||(p(e,at),a=e.__destroy_into_raw());let i=0;Pt(_)||(p(_,gt),i=_.__destroy_into_raw());const o=r.plutuswitness_new_plutus_v2(t.ptr,a,i);return hn.__wrap(o)}plutus_data(){const t=r.plutuswitness_plutus_data(this.ptr);return t===0?void 0:at.__wrap(t)}redeemer(){const t=r.data_get(this.ptr);return at.__wrap(t)}script(){const t=r.plutuswitness_script(this.ptr);return t===0?void 0:gt.__wrap(t)}version(){return r.plutuswitness_version(this.ptr)>>>0}}const vm=new FinalizationRegistry(n=>r.__wbg_pointer_free(n));class Ni{static __wrap(t){const e=Object.create(Ni.prototype);return e.ptr=t,vm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,vm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_pointer_free(t)}static new(t,e,_){p(t,C),p(e,C),p(_,C);const a=r.pointer_new(t.ptr,e.ptr,_.ptr);return Ni.__wrap(a)}slot(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}tx_index(){const t=r.exunits_steps(this.ptr);return C.__wrap(t)}cert_index(){const t=r.pointer_cert_index(this.ptr);return C.__wrap(t)}}const km=new FinalizationRegistry(n=>r.__wbg_pointeraddress_free(n));class T_{static __wrap(t){const e=Object.create(T_.prototype);return e.ptr=t,km.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,km.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_pointeraddress_free(t)}static new(t,e,_){p(e,H),p(_,Ni);const a=r.pointeraddress_new(t,e.ptr,_.ptr);return T_.__wrap(a)}payment_cred(){const t=r.pointeraddress_payment_cred(this.ptr);return H.__wrap(t)}stake_pointer(){const t=r.pointeraddress_stake_pointer(this.ptr);return Ni.__wrap(t)}to_address(){const t=r.pointeraddress_to_address(this.ptr);return kt.__wrap(t)}static from_address(t){p(t,kt);const e=r.address_as_pointer(t.ptr);return e===0?void 0:T_.__wrap(e)}}const xm=new FinalizationRegistry(n=>r.__wbg_poolmetadata_free(n));class Cr{static __wrap(t){const e=Object.create(Cr.prototype);return e.ptr=t,xm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,xm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolmetadata_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.poolmetadata_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Cr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolmetadata_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Cr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}url(){const t=r.anchor_anchor_url(this.ptr);return ir.__wrap(t)}pool_metadata_hash(){const t=r.anchor_anchor_data_hash(this.ptr);return Er.__wrap(t)}static new(t,e){p(t,ir),p(e,Er);const _=r.anchor_new(t.ptr,e.ptr);return Cr.__wrap(_)}}const jm=new FinalizationRegistry(n=>r.__wbg_poolmetadatahash_free(n));class Er{static __wrap(t){const e=Object.create(Er.prototype);return e.ptr=t,jm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,jm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolmetadatahash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.poolmetadatahash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolmetadatahash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolmetadatahash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Sm=new FinalizationRegistry(n=>r.__wbg_poolparams_free(n));class Or{static __wrap(t){const e=Object.create(Or.prototype);return e.ptr=t,Sm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Sm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolparams_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.poolparams_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolparams_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}operator(){const t=r.poolparams_operator(this.ptr);return X.__wrap(t)}vrf_keyhash(){const t=r.poolparams_vrf_keyhash(this.ptr);return vn.__wrap(t)}pledge(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}cost(){const t=r.exunits_steps(this.ptr);return C.__wrap(t)}margin(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return _t.__wrap(t)}reward_account(){const t=r.poolparams_reward_account(this.ptr);return Nt.__wrap(t)}pool_owners(){const t=r.poolparams_pool_owners(this.ptr);return Yt.__wrap(t)}relays(){const t=r.poolparams_relays(this.ptr);return Ir.__wrap(t)}pool_metadata(){const t=r.poolparams_pool_metadata(this.ptr);return t===0?void 0:Cr.__wrap(t)}static new(t,e,_,a,i,o,c,d,f){p(t,X),p(e,vn),p(_,C),p(a,C),p(i,_t),p(o,Nt),p(c,Yt),p(d,Ir);let h=0;Pt(f)||(p(f,Cr),h=f.__destroy_into_raw());const v=r.poolparams_new(t.ptr,e.ptr,_.ptr,a.ptr,i.ptr,o.ptr,c.ptr,d.ptr,h);return Or.__wrap(v)}}const Cm=new FinalizationRegistry(n=>r.__wbg_poolregistration_free(n));class Nr{static __wrap(t){const e=Object.create(Nr.prototype);return e.ptr=t,Cm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Cm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolregistration_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.poolregistration_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolregistration_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}pool_params(){const t=r.poolregistration_pool_params(this.ptr);return Or.__wrap(t)}static new(t){p(t,Or);const e=r.poolregistration_new(t.ptr);return Nr.__wrap(e)}set_is_update(t){r.poolregistration_set_is_update(this.ptr,t)}}const Em=new FinalizationRegistry(n=>r.__wbg_poolretirement_free(n));class zr{static __wrap(t){const e=Object.create(zr.prototype);return e.ptr=t,Em.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Em.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolretirement_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.poolretirement_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return zr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolretirement_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return zr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}pool_keyhash(){const t=r.poolretirement_pool_keyhash(this.ptr);return X.__wrap(t)}epoch(){return r.networkinfo_protocol_magic(this.ptr)>>>0}static new(t,e){p(t,X);const _=r.poolretirement_new(t.ptr,e);return zr.__wrap(_)}}const Om=new FinalizationRegistry(n=>r.__wbg_poolvotingthresholds_free(n));class Fa{static __wrap(t){const e=Object.create(Fa.prototype);return e.ptr=t,Om.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Om.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolvotingthresholds_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.poolvotingthresholds_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Fa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolvotingthresholds_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Fa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}motion_no_confidence(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return _t.__wrap(t)}committee_normal(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return _t.__wrap(t)}committee_no_confidence(){const t=r.drepvotingthresholds_committee_no_confidence(this.ptr);return _t.__wrap(t)}hard_fork_initiation(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return _t.__wrap(t)}static new(t,e,_,a){p(t,_t),p(e,_t),p(_,_t),p(a,_t);const i=r.poolvotingthresholds_new(t.ptr,e.ptr,_.ptr,a.ptr);return Fa.__wrap(i)}}const Nm=new FinalizationRegistry(n=>r.__wbg_privatekey_free(n));class Ht{static __wrap(t){const e=Object.create(Ht.prototype);return e.ptr=t,Nm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Nm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_privatekey_free(t)}to_public(){const t=r.privatekey_to_public(this.ptr);return yn.__wrap(t)}static generate_ed25519(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_generate_ed25519(a);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Ht.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519extended(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_generate_ed25519extended(a);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Ht.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.privatekey_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ht.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_to_bech32(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_as_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_extended_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.privatekey_from_extended_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ht.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_normal_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.privatekey_from_normal_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ht.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}sign(t){const e=N(t,r.__wbindgen_malloc),_=w,a=r.privatekey_sign(this.ptr,e,_);return ke.__wrap(a)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.privatekey_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ht.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const zm=new FinalizationRegistry(n=>r.__wbg_proposalprocedure_free(n));class Ta{static __wrap(t){const e=Object.create(Ta.prototype);return e.ptr=t,zm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,zm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposalprocedure_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.proposalprocedure_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ta.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.proposalprocedure_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ta.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}deposit(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}hash(){const t=r.proposalprocedure_hash(this.ptr);return lt.__wrap(t)}governance_action(){const t=r.proposalprocedure_governance_action(this.ptr);return Ie.__wrap(t)}anchor(){const t=r.proposalprocedure_anchor(this.ptr);return Yn.__wrap(t)}static new(t,e,_,a){p(t,C),p(e,lt),p(_,Ie),p(a,Yn);const i=r.proposalprocedure_new(t.ptr,e.ptr,_.ptr,a.ptr);return Ta.__wrap(i)}}const Rm=new FinalizationRegistry(n=>r.__wbg_proposalprocedures_free(n));class A_{static __wrap(t){const e=Object.create(A_.prototype);return e.ptr=t,Rm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Rm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposalprocedures_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedures_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.proposalprocedures_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return A_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return A_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.proposalprocedures_get(this.ptr,t);return Ta.__wrap(e)}add(t){p(t,Ta),r.proposalprocedures_add(this.ptr,t.ptr)}}const Pm=new FinalizationRegistry(n=>r.__wbg_proposedprotocolparameterupdates_free(n));class Aa{static __wrap(t){const e=Object.create(Aa.prototype);return e.ptr=t,Pm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Pm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposedprotocolparameterupdates_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.proposedprotocolparameterupdates_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Aa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.proposedprotocolparameterupdates_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Aa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return Aa.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,wn),p(e,Dn);const _=r.proposedprotocolparameterupdates_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:Dn.__wrap(_)}get(t){p(t,wn);const e=r.proposedprotocolparameterupdates_get(this.ptr,t.ptr);return e===0?void 0:Dn.__wrap(e)}keys(){const t=r.proposedprotocolparameterupdates_keys(this.ptr);return P_.__wrap(t)}}const Im=new FinalizationRegistry(n=>r.__wbg_protocolparamupdate_free(n));class Dn{static __wrap(t){const e=Object.create(Dn.prototype);return e.ptr=t,Im.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Im.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_protocolparamupdate_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.protocolparamupdate_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Dn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.protocolparamupdate_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Dn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_minfee_a(t){p(t,C),r.protocolparamupdate_set_minfee_a(this.ptr,t.ptr)}minfee_a(){const t=r.protocolparamupdate_minfee_a(this.ptr);return t===0?void 0:C.__wrap(t)}set_minfee_b(t){p(t,C),r.protocolparamupdate_set_minfee_b(this.ptr,t.ptr)}minfee_b(){const t=r.protocolparamupdate_minfee_b(this.ptr);return t===0?void 0:C.__wrap(t)}set_max_block_body_size(t){r.protocolparamupdate_set_max_block_body_size(this.ptr,t)}max_block_body_size(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_block_body_size(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_tx_size(t){r.protocolparamupdate_set_max_tx_size(this.ptr,t)}max_tx_size(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_tx_size(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_block_header_size(t){r.protocolparamupdate_set_max_block_header_size(this.ptr,t)}max_block_header_size(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_block_header_size(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_key_deposit(t){p(t,C),r.protocolparamupdate_set_key_deposit(this.ptr,t.ptr)}key_deposit(){const t=r.protocolparamupdate_key_deposit(this.ptr);return t===0?void 0:C.__wrap(t)}set_pool_deposit(t){p(t,C),r.protocolparamupdate_set_pool_deposit(this.ptr,t.ptr)}pool_deposit(){const t=r.protocolparamupdate_pool_deposit(this.ptr);return t===0?void 0:C.__wrap(t)}set_max_epoch(t){r.protocolparamupdate_set_max_epoch(this.ptr,t)}max_epoch(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_epoch(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_n_opt(t){r.protocolparamupdate_set_n_opt(this.ptr,t)}n_opt(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_n_opt(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_pool_pledge_influence(t){p(t,_t),r.protocolparamupdate_set_pool_pledge_influence(this.ptr,t.ptr)}pool_pledge_influence(){const t=r.protocolparamupdate_pool_pledge_influence(this.ptr);return t===0?void 0:_t.__wrap(t)}set_expansion_rate(t){p(t,_t),r.protocolparamupdate_set_expansion_rate(this.ptr,t.ptr)}expansion_rate(){const t=r.protocolparamupdate_expansion_rate(this.ptr);return t===0?void 0:_t.__wrap(t)}set_treasury_growth_rate(t){p(t,_t),r.protocolparamupdate_set_treasury_growth_rate(this.ptr,t.ptr)}treasury_growth_rate(){const t=r.protocolparamupdate_treasury_growth_rate(this.ptr);return t===0?void 0:_t.__wrap(t)}set_d(t){p(t,_t),r.protocolparamupdate_set_d(this.ptr,t.ptr)}d(){const t=r.protocolparamupdate_d(this.ptr);return t===0?void 0:_t.__wrap(t)}set_extra_entropy(t){p(t,za),r.protocolparamupdate_set_extra_entropy(this.ptr,t.ptr)}extra_entropy(){const t=r.protocolparamupdate_extra_entropy(this.ptr);return t===0?void 0:za.__wrap(t)}set_protocol_version(t){p(t,bn),r.protocolparamupdate_set_protocol_version(this.ptr,t.ptr)}protocol_version(){const t=r.protocolparamupdate_protocol_version(this.ptr);return t===0?void 0:bn.__wrap(t)}set_min_pool_cost(t){p(t,C),r.protocolparamupdate_set_min_pool_cost(this.ptr,t.ptr)}min_pool_cost(){const t=r.protocolparamupdate_min_pool_cost(this.ptr);return t===0?void 0:C.__wrap(t)}set_ada_per_utxo_byte(t){p(t,C),r.protocolparamupdate_set_ada_per_utxo_byte(this.ptr,t.ptr)}ada_per_utxo_byte(){const t=r.protocolparamupdate_ada_per_utxo_byte(this.ptr);return t===0?void 0:C.__wrap(t)}set_cost_models(t){p(t,nr),r.protocolparamupdate_set_cost_models(this.ptr,t.ptr)}cost_models(){const t=r.protocolparamupdate_cost_models(this.ptr);return t===0?void 0:nr.__wrap(t)}set_execution_costs(t){p(t,An),r.protocolparamupdate_set_execution_costs(this.ptr,t.ptr)}execution_costs(){const t=r.protocolparamupdate_execution_costs(this.ptr);return t===0?void 0:An.__wrap(t)}set_max_tx_ex_units(t){p(t,We),r.protocolparamupdate_set_max_tx_ex_units(this.ptr,t.ptr)}max_tx_ex_units(){const t=r.protocolparamupdate_max_tx_ex_units(this.ptr);return t===0?void 0:We.__wrap(t)}set_max_block_ex_units(t){p(t,We),r.protocolparamupdate_set_max_block_ex_units(this.ptr,t.ptr)}max_block_ex_units(){const t=r.protocolparamupdate_max_block_ex_units(this.ptr);return t===0?void 0:We.__wrap(t)}set_max_value_size(t){r.protocolparamupdate_set_max_value_size(this.ptr,t)}max_value_size(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_value_size(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_collateral_percentage(t){r.protocolparamupdate_set_collateral_percentage(this.ptr,t)}collateral_percentage(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_collateral_percentage(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_collateral_inputs(t){r.protocolparamupdate_set_max_collateral_inputs(this.ptr,t)}max_collateral_inputs(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_collateral_inputs(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_pool_voting_thresholds(t){p(t,Fa);var e=t.__destroy_into_raw();r.protocolparamupdate_set_pool_voting_thresholds(this.ptr,e)}pool_voting_thresholds(){const t=r.protocolparamupdate_pool_voting_thresholds(this.ptr);return t===0?void 0:Fa.__wrap(t)}set_drep_voting_thresholds(t){p(t,ha);var e=t.__destroy_into_raw();r.protocolparamupdate_set_drep_voting_thresholds(this.ptr,e)}drep_voting_thresholds(){const t=r.protocolparamupdate_drep_voting_thresholds(this.ptr);return t===0?void 0:ha.__wrap(t)}set_min_committee_size(t){p(t,C);var e=t.__destroy_into_raw();r.protocolparamupdate_set_min_committee_size(this.ptr,e)}min_committee_size(){const t=r.protocolparamupdate_min_committee_size(this.ptr);return t===0?void 0:C.__wrap(t)}set_committee_term_limit(t){p(t,C);var e=t.__destroy_into_raw();r.protocolparamupdate_set_committee_term_limit(this.ptr,e)}committee_term_limit(){const t=r.protocolparamupdate_committee_term_limit(this.ptr);return t===0?void 0:C.__wrap(t)}set_governance_action_expiration(t){p(t,C);var e=t.__destroy_into_raw();r.protocolparamupdate_set_governance_action_expiration(this.ptr,e)}governance_action_expiration(){const t=r.protocolparamupdate_governance_action_expiration(this.ptr);return t===0?void 0:C.__wrap(t)}set_governance_action_deposit(t){p(t,C);var e=t.__destroy_into_raw();r.protocolparamupdate_set_governance_action_deposit(this.ptr,e)}governance_action_deposit(){const t=r.protocolparamupdate_governance_action_deposit(this.ptr);return t===0?void 0:C.__wrap(t)}set_drep_deposit(t){p(t,C);var e=t.__destroy_into_raw();r.protocolparamupdate_set_drep_deposit(this.ptr,e)}drep_deposit(){const t=r.protocolparamupdate_drep_deposit(this.ptr);return t===0?void 0:C.__wrap(t)}set_drep_inactivity_period(t){r.protocolparamupdate_set_drep_inactivity_period(this.ptr,t)}drep_inactivity_period(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_drep_inactivity_period(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.protocolparamupdate_new();return Dn.__wrap(t)}}const Fm=new FinalizationRegistry(n=>r.__wbg_protocolversion_free(n));class bn{static __wrap(t){const e=Object.create(bn.prototype);return e.ptr=t,Fm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Fm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_protocolversion_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.protocolversion_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.protocolversion_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}major(){return r.networkinfo_protocol_magic(this.ptr)>>>0}minor(){return r.operationalcert_kes_period(this.ptr)>>>0}static new(t,e){const _=r.protocolversion_new(t,e);return bn.__wrap(_)}}const Tm=new FinalizationRegistry(n=>r.__wbg_publickey_free(n));class yn{static __wrap(t){const e=Object.create(yn.prototype);return e.ptr=t,Tm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Tm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_publickey_free(t)}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.publickey_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.publickey_to_bech32(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.publickey_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}verify(t,e){const _=N(t,r.__wbindgen_malloc),a=w;return p(e,ke),r.publickey_verify(this.ptr,_,a,e.ptr)!==0}hash(){const t=r.publickey_hash(this.ptr);return X.__wrap(t)}}const Am=new FinalizationRegistry(n=>r.__wbg_publickeys_free(n));class Jo{static __wrap(t){const e=Object.create(Jo.prototype);return e.ptr=t,Am.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Am.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_publickeys_free(t)}constructor(){const t=r.ed25519keyhashes_new();return Jo.__wrap(t)}size(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.publickeys_get(this.ptr,t);return yn.__wrap(e)}add(t){p(t,yn),r.publickeys_add(this.ptr,t.ptr)}}const Mm=new FinalizationRegistry(n=>r.__wbg_redeemer_free(n));class Rr{static __wrap(t){const e=Object.create(Rr.prototype);return e.ptr=t,Mm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Mm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemer_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.redeemer_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.redeemer_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}tag(){const t=r.redeemer_tag(this.ptr);return Je.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}data(){const t=r.redeemer_data(this.ptr);return at.__wrap(t)}ex_units(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return We.__wrap(t)}static new(t,e,_,a){p(t,Je),p(e,C),p(_,at),p(a,We);const i=r.redeemer_new(t.ptr,e.ptr,_.ptr,a.ptr);return Rr.__wrap(i)}}const Dm=new FinalizationRegistry(n=>r.__wbg_redeemertag_free(n));class Je{static __wrap(t){const e=Object.create(Je.prototype);return e.ptr=t,Dm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Dm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemertag_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.redeemertag_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.redeemertag_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Je.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_spend(){const t=r.language_new_plutus_v1();return Je.__wrap(t)}static new_mint(){const t=r.language_new_plutus_v2();return Je.__wrap(t)}static new_cert(){const t=r.language_new_plutus_v3();return Je.__wrap(t)}static new_reward(){const t=r.redeemertag_new_reward();return Je.__wrap(t)}static new_drep(){const t=r.redeemertag_new_drep();return Je.__wrap(t)}kind(){return r.redeemertag_kind(this.ptr)>>>0}}const Bm=new FinalizationRegistry(n=>r.__wbg_redeemerwitnesskey_free(n));class Rs{static __wrap(t){const e=Object.create(Rs.prototype);return e.ptr=t,Bm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Bm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemerwitnesskey_free(t)}tag(){const t=r.redeemerwitnesskey_tag(this.ptr);return Je.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t,e){p(t,Je),p(e,C);const _=r.redeemerwitnesskey_new(t.ptr,e.ptr);return Rs.__wrap(_)}}const Lm=new FinalizationRegistry(n=>r.__wbg_redeemers_free(n));class Pr{static __wrap(t){const e=Object.create(Pr.prototype);return e.ptr=t,Lm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Lm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemers_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.redeemers_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.redeemers_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Pr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Pr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.redeemers_get(this.ptr,t);return Rr.__wrap(e)}add(t){p(t,Rr),r.redeemers_add(this.ptr,t.ptr)}}const Um=new FinalizationRegistry(n=>r.__wbg_regcert_free(n));class M_{static __wrap(t){const e=Object.create(M_.prototype);return e.ptr=t,Um.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Um.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.regcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return M_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.regcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return M_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t,e){p(t,H),p(e,C);const _=r.regcert_new(t.ptr,e.ptr);return M_.__wrap(_)}}const Vm=new FinalizationRegistry(n=>r.__wbg_regcommitteehotkeycert_free(n));class D_{static __wrap(t){const e=Object.create(D_.prototype);return e.ptr=t,Vm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Vm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regcommitteehotkeycert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.regcommitteehotkeycert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return D_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.regcommitteehotkeycert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return D_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee_cold_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return X.__wrap(t)}committee_hot_keyhash(){const t=r.genesiskeydelegation_genesis_delegate_hash(this.ptr);return X.__wrap(t)}static new(t,e){p(t,X),p(e,X);const _=r.regcommitteehotkeycert_new(t.ptr,e.ptr);return D_.__wrap(_)}}const qm=new FinalizationRegistry(n=>r.__wbg_regdrepcert_free(n));class B_{static __wrap(t){const e=Object.create(B_.prototype);return e.ptr=t,qm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,qm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regdrepcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.regdrepcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return B_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.regdrepcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return B_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}voting_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t,e){p(t,H),p(e,C);const _=r.regcert_new(t.ptr,e.ptr);return B_.__wrap(_)}}const $m=new FinalizationRegistry(n=>r.__wbg_relay_free(n));class Qe{static __wrap(t){const e=Object.create(Qe.prototype);return e.ptr=t,$m.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$m.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_relay_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.relay_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Qe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.relay_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Qe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_single_host_addr(t){p(t,Fr);const e=r.relay_new_single_host_addr(t.ptr);return Qe.__wrap(e)}static new_single_host_name(t){p(t,Tr);const e=r.relay_new_single_host_name(t.ptr);return Qe.__wrap(e)}static new_multi_host_name(t){p(t,jr);const e=r.relay_new_multi_host_name(t.ptr);return Qe.__wrap(e)}kind(){return r.relay_kind(this.ptr)>>>0}as_single_host_addr(){const t=r.relay_as_single_host_addr(this.ptr);return t===0?void 0:Fr.__wrap(t)}as_single_host_name(){const t=r.relay_as_single_host_name(this.ptr);return t===0?void 0:Tr.__wrap(t)}as_multi_host_name(){const t=r.relay_as_multi_host_name(this.ptr);return t===0?void 0:jr.__wrap(t)}}const Hm=new FinalizationRegistry(n=>r.__wbg_relays_free(n));class Ir{static __wrap(t){const e=Object.create(Ir.prototype);return e.ptr=t,Hm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Hm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_relays_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.relays_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.relays_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return Ir.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.relays_get(this.ptr,t);return Qe.__wrap(e)}add(t){p(t,Qe),r.relays_add(this.ptr,t.ptr)}}const Wm=new FinalizationRegistry(n=>r.__wbg_requiredwitnessset_free(n));class zi{static __wrap(t){const e=Object.create(zi.prototype);return e.ptr=t,Wm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Wm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_requiredwitnessset_free(t)}add_vkey(t){p(t,Ln),r.requiredwitnessset_add_vkey(this.ptr,t.ptr)}add_vkey_key(t){p(t,Se),r.requiredwitnessset_add_vkey(this.ptr,t.ptr)}add_vkey_key_hash(t){p(t,X),r.requiredwitnessset_add_vkey_key_hash(this.ptr,t.ptr)}add_bootstrap(t){p(t,pn),r.requiredwitnessset_add_bootstrap(this.ptr,t.ptr)}add_bootstrap_key(t){p(t,Se),r.requiredwitnessset_add_bootstrap_key(this.ptr,t.ptr)}add_bootstrap_key_hash(t){p(t,X),r.requiredwitnessset_add_bootstrap_key_hash(this.ptr,t.ptr)}add_native_script(t){p(t,Ct),r.requiredwitnessset_add_native_script(this.ptr,t.ptr)}add_native_script_hash(t){p(t,lt),r.requiredwitnessset_add_native_script_hash(this.ptr,t.ptr)}add_plutus_script(t){p(t,gt),r.requiredwitnessset_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,gt),r.requiredwitnessset_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_hash(t){p(t,lt),r.requiredwitnessset_add_plutus_hash(this.ptr,t.ptr)}add_plutus_datum(t){p(t,at),r.requiredwitnessset_add_plutus_datum(this.ptr,t.ptr)}add_plutus_datum_hash(t){p(t,re),r.requiredwitnessset_add_plutus_datum_hash(this.ptr,t.ptr)}add_redeemer(t){p(t,Rr),r.requiredwitnessset_add_redeemer(this.ptr,t.ptr)}add_redeemer_tag(t){p(t,Rs),r.requiredwitnessset_add_redeemer_tag(this.ptr,t.ptr)}add_all(t){p(t,zi),r.requiredwitnessset_add_all(this.ptr,t.ptr)}static new(){const t=r.requiredwitnessset_new();return zi.__wrap(t)}}const Km=new FinalizationRegistry(n=>r.__wbg_rewardaddress_free(n));class Nt{static __wrap(t){const e=Object.create(Nt.prototype);return e.ptr=t,Km.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Km.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rewardaddress_free(t)}static new(t,e){p(e,H);const _=r.enterpriseaddress_new(t,e.ptr);return Nt.__wrap(_)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return H.__wrap(t)}to_address(){const t=r.rewardaddress_to_address(this.ptr);return kt.__wrap(t)}static from_address(t){p(t,kt);const e=r.address_as_reward(t.ptr);return e===0?void 0:Nt.__wrap(e)}}const Jm=new FinalizationRegistry(n=>r.__wbg_rewardaddresses_free(n));class L_{static __wrap(t){const e=Object.create(L_.prototype);return e.ptr=t,Jm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Jm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rewardaddresses_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.rewardaddresses_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return L_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.rewardaddresses_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return L_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return L_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.rewardaddresses_get(this.ptr,t);return Nt.__wrap(e)}add(t){p(t,Nt),r.rewardaddresses_add(this.ptr,t.ptr)}}const Qm=new FinalizationRegistry(n=>r.__wbg_script_free(n));class Fe{static __wrap(t){const e=Object.create(Fe.prototype);return e.ptr=t,Qm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Qm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_script_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.script_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.script_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_native(t){p(t,Ct);const e=r.script_new_native(t.ptr);return Fe.__wrap(e)}static new_plutus_v1(t){p(t,gt);const e=r.script_new_plutus_v1(t.ptr);return Fe.__wrap(e)}static new_plutus_v2(t){p(t,gt);const e=r.script_new_plutus_v2(t.ptr);return Fe.__wrap(e)}static new_plutus_v3(t){p(t,gt);const e=r.script_new_plutus_v3(t.ptr);return Fe.__wrap(e)}kind(){return r.script_kind(this.ptr)>>>0}as_native(){const t=r.script_as_native(this.ptr);return t===0?void 0:Ct.__wrap(t)}as_plutus_v1(){const t=r.script_as_plutus_v1(this.ptr);return t===0?void 0:gt.__wrap(t)}as_plutus_v2(){const t=r.script_as_plutus_v2(this.ptr);return t===0?void 0:gt.__wrap(t)}as_plutus_v3(){const t=r.script_as_plutus_v3(this.ptr);return t===0?void 0:gt.__wrap(t)}}const Gm=new FinalizationRegistry(n=>r.__wbg_scriptall_free(n));class Ma{static __wrap(t){const e=Object.create(Ma.prototype);return e.ptr=t,Gm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Gm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptall_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.scriptall_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptall_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=r.scriptall_native_scripts(this.ptr);return xe.__wrap(t)}static new(t){p(t,xe);const e=r.scriptall_new(t.ptr);return Ma.__wrap(e)}}const Xm=new FinalizationRegistry(n=>r.__wbg_scriptany_free(n));class Da{static __wrap(t){const e=Object.create(Da.prototype);return e.ptr=t,Xm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Xm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptany_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptany_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.scriptany_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Da.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptany_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Da.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=r.scriptall_native_scripts(this.ptr);return xe.__wrap(t)}static new(t){p(t,xe);const e=r.scriptall_new(t.ptr);return Da.__wrap(e)}}const Ym=new FinalizationRegistry(n=>r.__wbg_scriptdatahash_free(n));class ar{static __wrap(t){const e=Object.create(ar.prototype);return e.ptr=t,Ym.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ym.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptdatahash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.scriptdatahash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptdatahash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptdatahash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Zm=new FinalizationRegistry(n=>r.__wbg_scripthash_free(n));class lt{static __wrap(t){const e=Object.create(lt.prototype);return e.ptr=t,Zm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Zm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scripthash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.scripthash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return lt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.ed25519keyhash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scripthash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return lt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scripthash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return lt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const t1=new FinalizationRegistry(n=>r.__wbg_scripthashes_free(n));class Ba{static __wrap(t){const e=Object.create(Ba.prototype);return e.ptr=t,t1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scripthashes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scripthashes_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.scripthashes_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scripthashes_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return Ba.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.scripthashes_get(this.ptr,t);return lt.__wrap(e)}add(t){p(t,lt),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const e1=new FinalizationRegistry(n=>r.__wbg_scriptnofk_free(n));class La{static __wrap(t){const e=Object.create(La.prototype);return e.ptr=t,e1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,e1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptnofk_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.scriptnofk_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return La.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptnofk_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return La.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}n(){return r.networkinfo_protocol_magic(this.ptr)>>>0}native_scripts(){const t=r.scriptnofk_native_scripts(this.ptr);return xe.__wrap(t)}static new(t,e){p(e,xe);const _=r.scriptnofk_new(t,e.ptr);return La.__wrap(_)}}const n1=new FinalizationRegistry(n=>r.__wbg_scriptpubkey_free(n));class Ua{static __wrap(t){const e=Object.create(Ua.prototype);return e.ptr=t,n1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,n1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptpubkey_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.scriptpubkey_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptpubkey_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}addr_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return X.__wrap(t)}static new(t){p(t,X);const e=r.scriptpubkey_new(t.ptr);return Ua.__wrap(e)}}const r1=new FinalizationRegistry(n=>r.__wbg_scriptref_free(n));class Bn{static __wrap(t){const e=Object.create(Bn.prototype);return e.ptr=t,r1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,r1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptref_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptref_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.scriptref_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptref_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,Fe);const e=r.scriptref_new(t.ptr);return Bn.__wrap(e)}get(){const t=r.scriptref_get(this.ptr);return Fe.__wrap(t)}}const a1=new FinalizationRegistry(n=>r.__wbg_scriptwitness_free(n));class je{static __wrap(t){const e=Object.create(je.prototype);return e.ptr=t,a1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,a1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptwitness_free(t)}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptwitness_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.scriptwitness_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptwitness_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return je.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_native_witness(t){p(t,Ct);const e=r.scriptwitness_new_native_witness(t.ptr);return je.__wrap(e)}static new_plutus_witness(t){p(t,hn);const e=r.scriptwitness_new_plutus_witness(t.ptr);return je.__wrap(e)}kind(){return r.scriptwitness_kind(this.ptr)>>>0}as_native_witness(){const t=r.scriptwitness_as_native_witness(this.ptr);return t===0?void 0:Ct.__wrap(t)}as_plutus_witness(){const t=r.scriptwitness_as_plutus_witness(this.ptr);return t===0?void 0:hn.__wrap(t)}}const _1=new FinalizationRegistry(n=>r.__wbg_singlehostaddr_free(n));class Fr{static __wrap(t){const e=Object.create(Fr.prototype);return e.ptr=t,_1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_singlehostaddr_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.singlehostaddr_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Fr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.singlehostaddr_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Fr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}port(){const t=r.singlehostaddr_port(this.ptr);return t===16777215?void 0:t}ipv4(){const t=r.singlehostaddr_ipv4(this.ptr);return t===0?void 0:vr.__wrap(t)}ipv6(){const t=r.singlehostaddr_ipv6(this.ptr);return t===0?void 0:kr.__wrap(t)}static new(t,e,_){let a=0;Pt(e)||(p(e,vr),a=e.__destroy_into_raw());let i=0;Pt(_)||(p(_,kr),i=_.__destroy_into_raw());const o=r.singlehostaddr_new(Pt(t)?16777215:t,a,i);return Fr.__wrap(o)}}const i1=new FinalizationRegistry(n=>r.__wbg_singlehostname_free(n));class Tr{static __wrap(t){const e=Object.create(Tr.prototype);return e.ptr=t,i1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,i1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_singlehostname_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.singlehostname_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.singlehostname_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}port(){const t=r.singlehostname_port(this.ptr);return t===16777215?void 0:t}dns_name(){const t=r.anchor_anchor_url(this.ptr);return wa.__wrap(t)}static new(t,e){p(e,wa);const _=r.singlehostname_new(Pt(t)?16777215:t,e.ptr);return Tr.__wrap(_)}}const s1=new FinalizationRegistry(n=>r.__wbg_stakecredential_free(n));class H{static __wrap(t){const e=Object.create(H.prototype);return e.ptr=t,s1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,s1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakecredential_free(t)}static from_keyhash(t){p(t,X);const e=r.drep_new_keyhash(t.ptr);return H.__wrap(e)}static from_scripthash(t){p(t,lt);const e=r.drep_new_scripthash(t.ptr);return H.__wrap(e)}to_keyhash(){const t=r.stakecredential_to_keyhash(this.ptr);return t===0?void 0:X.__wrap(t)}to_scripthash(){const t=r.stakecredential_to_scripthash(this.ptr);return t===0?void 0:lt.__wrap(t)}kind(){return r.networkid_kind(this.ptr)>>>0}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.stakecredential_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return H.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakecredential_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return H.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const o1=new FinalizationRegistry(n=>r.__wbg_stakecredentials_free(n));class U_{static __wrap(t){const e=Object.create(U_.prototype);return e.ptr=t,o1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,o1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakecredentials_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.stakecredentials_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return U_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakecredentials_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return U_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return U_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.stakecredentials_get(this.ptr,t);return H.__wrap(e)}add(t){p(t,H),r.stakecredentials_add(this.ptr,t.ptr)}}const c1=new FinalizationRegistry(n=>r.__wbg_stakedelegation_free(n));class Ar{static __wrap(t){const e=Object.create(Ar.prototype);return e.ptr=t,c1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,c1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakedelegation_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.stakedelegation_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakedelegation_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return H.__wrap(t)}pool_keyhash(){const t=r.stakedelegation_pool_keyhash(this.ptr);return X.__wrap(t)}static new(t,e){p(t,H),p(e,X);const _=r.stakedelegation_new(t.ptr,e.ptr);return Ar.__wrap(_)}}const l1=new FinalizationRegistry(n=>r.__wbg_stakederegistration_free(n));class Mr{static __wrap(t){const e=Object.create(Mr.prototype);return e.ptr=t,l1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,l1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakederegistration_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.stakederegistration_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakederegistration_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return H.__wrap(t)}static new(t){p(t,H);const e=r.stakederegistration_new(t.ptr);return Mr.__wrap(e)}}const d1=new FinalizationRegistry(n=>r.__wbg_stakeregdelegcert_free(n));class V_{static __wrap(t){const e=Object.create(V_.prototype);return e.ptr=t,d1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,d1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakeregdelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.stakeregdelegcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return V_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakeregdelegcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return V_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}pool_keyhash(){const t=r.stakeregdelegcert_pool_keyhash(this.ptr);return X.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t,e,_){p(t,H),p(e,X),p(_,C);const a=r.stakeregdelegcert_new(t.ptr,e.ptr,_.ptr);return V_.__wrap(a)}}const u1=new FinalizationRegistry(n=>r.__wbg_stakeregistration_free(n));class Dr{static __wrap(t){const e=Object.create(Dr.prototype);return e.ptr=t,u1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,u1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakeregistration_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregistration_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.stakeregistration_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Dr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakeregistration_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Dr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return H.__wrap(t)}static new(t){p(t,H);const e=r.stakederegistration_new(t.ptr);return Dr.__wrap(e)}}const p1=new FinalizationRegistry(n=>r.__wbg_stakevotedelegcert_free(n));class q_{static __wrap(t){const e=Object.create(q_.prototype);return e.ptr=t,p1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,p1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakevotedelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.stakevotedelegcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return q_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakevotedelegcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return q_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return H.__wrap(t)}pool_keyhash(){const t=r.stakedelegation_pool_keyhash(this.ptr);return X.__wrap(t)}drep(){const t=r.stakevotedelegcert_drep(this.ptr);return ae.__wrap(t)}static new(t,e,_){p(t,H),p(e,X),p(_,ae);const a=r.stakevotedelegcert_new(t.ptr,e.ptr,_.ptr);return q_.__wrap(a)}}const f1=new FinalizationRegistry(n=>r.__wbg_stakevoteregdelegcert_free(n));class $_{static __wrap(t){const e=Object.create($_.prototype);return e.ptr=t,f1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,f1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakevoteregdelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.stakevoteregdelegcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return $_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakevoteregdelegcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return $_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}pool_keyhash(){const t=r.stakeregdelegcert_pool_keyhash(this.ptr);return X.__wrap(t)}drep(){const t=r.stakevoteregdelegcert_drep(this.ptr);return ae.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t,e,_,a){p(t,H),p(e,X),p(_,ae),p(a,C);const i=r.stakevoteregdelegcert_new(t.ptr,e.ptr,_.ptr,a.ptr);return $_.__wrap(i)}}const w1=new FinalizationRegistry(n=>r.__wbg_strings_free(n));class Qo{static __wrap(t){const e=Object.create(Qo.prototype);return e.ptr=t,w1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,w1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_strings_free(t)}static new(){const t=r.assetnames_new();return Qo.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.strings_get(a,this.ptr,t);var e=s()[a/4+0],_=s()[a/4+1];return R(e,_)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(e,_)}}add(t){const e=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=w;r.strings_add(this.ptr,e,_)}}const g1=new FinalizationRegistry(n=>r.__wbg_timelockexpiry_free(n));class Va{static __wrap(t){const e=Object.create(Va.prototype);return e.ptr=t,g1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,g1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_timelockexpiry_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.timelockexpiry_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.timelockexpiry_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}slot(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t){p(t,C);const e=r.constrplutusdata_alternative(t.ptr);return Va.__wrap(e)}}const h1=new FinalizationRegistry(n=>r.__wbg_timelockstart_free(n));class qa{static __wrap(t){const e=Object.create(qa.prototype);return e.ptr=t,h1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,h1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_timelockstart_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockstart_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.timelockstart_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.timelockstart_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}slot(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t){p(t,C);const e=r.constrplutusdata_alternative(t.ptr);return qa.__wrap(e)}}const b1=new FinalizationRegistry(n=>r.__wbg_transaction_free(n));class mn{static __wrap(t){const e=Object.create(mn.prototype);return e.ptr=t,b1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,b1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transaction_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return mn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transaction_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return mn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}body(){const t=r.transaction_body(this.ptr);return Ge.__wrap(t)}witness_set(){const t=r.transaction_witness_set(this.ptr);return Ae.__wrap(t)}is_valid(){return r.transaction_is_valid(this.ptr)!==0}auxiliary_data(){const t=r.transaction_auxiliary_data(this.ptr);return t===0?void 0:Re.__wrap(t)}set_is_valid(t){r.transaction_set_is_valid(this.ptr,t)}static new(t,e,_){p(t,Ge),p(e,Ae);let a=0;Pt(_)||(p(_,Re),a=_.__destroy_into_raw());const i=r.transaction_new(t.ptr,e.ptr,a);return mn.__wrap(i)}}const y1=new FinalizationRegistry(n=>r.__wbg_transactionbodies_free(n));class $a{static __wrap(t){const e=Object.create($a.prototype);return e.ptr=t,y1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,y1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbodies_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionbodies_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return $a.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionbodies_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return $a.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return $a.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionbodies_get(this.ptr,t);return Ge.__wrap(e)}add(t){p(t,Ge),r.transactionbodies_add(this.ptr,t.ptr)}}const m1=new FinalizationRegistry(n=>r.__wbg_transactionbody_free(n));class Ge{static __wrap(t){const e=Object.create(Ge.prototype);return e.ptr=t,m1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,m1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbody_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionbody_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ge.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionbody_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ge.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}inputs(){const t=r.transactionbody_inputs(this.ptr);return Ye.__wrap(t)}outputs(){const t=r.transactionbody_outputs(this.ptr);return Br.__wrap(t)}fee(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}ttl(){const t=r.transactionbody_ttl(this.ptr);return t===0?void 0:C.__wrap(t)}set_certs(t){p(t,yr),r.transactionbody_set_certs(this.ptr,t.ptr)}certs(){const t=r.transactionbody_certs(this.ptr);return t===0?void 0:yr.__wrap(t)}set_withdrawals(t){p(t,Ur),r.transactionbody_set_withdrawals(this.ptr,t.ptr)}withdrawals(){const t=r.transactionbody_withdrawals(this.ptr);return t===0?void 0:Ur.__wrap(t)}set_update(t){p(t,Xa),r.transactionbody_set_update(this.ptr,t.ptr)}update(){const t=r.transactionbody_update(this.ptr);return t===0?void 0:Xa.__wrap(t)}voting_procedures(){const t=r.transactionbody_voting_procedures(this.ptr);return t===0?void 0:G_.__wrap(t)}proposal_procedures(){const t=r.transactionbody_proposal_procedures(this.ptr);return t===0?void 0:A_.__wrap(t)}set_auxiliary_data_hash(t){p(t,br),r.transactionbody_set_auxiliary_data_hash(this.ptr,t.ptr)}auxiliary_data_hash(){const t=r.transactionbody_auxiliary_data_hash(this.ptr);return t===0?void 0:br.__wrap(t)}set_validity_start_interval(t){p(t,C),r.transactionbody_set_validity_start_interval(this.ptr,t.ptr)}validity_start_interval(){const t=r.transactionbody_validity_start_interval(this.ptr);return t===0?void 0:C.__wrap(t)}set_mint(t){p(t,rr),r.transactionbody_set_mint(this.ptr,t.ptr)}mint(){const t=r.transactionbody_mint(this.ptr);return t===0?void 0:rr.__wrap(t)}set_script_data_hash(t){p(t,ar),r.transactionbody_set_script_data_hash(this.ptr,t.ptr)}script_data_hash(){const t=r.transactionbody_script_data_hash(this.ptr);return t===0?void 0:ar.__wrap(t)}set_collateral(t){p(t,Ye),r.transactionbody_set_collateral(this.ptr,t.ptr)}collateral(){const t=r.transactionbody_collateral(this.ptr);return t===0?void 0:Ye.__wrap(t)}set_required_signers(t){p(t,Yt),r.transactionbody_set_required_signers(this.ptr,t.ptr)}required_signers(){const t=r.transactionbody_required_signers(this.ptr);return t===0?void 0:Yt.__wrap(t)}set_network_id(t){p(t,gn),r.transactionbody_set_network_id(this.ptr,t.ptr)}network_id(){const t=r.transactionbody_network_id(this.ptr);return t===0?void 0:gn.__wrap(t)}set_collateral_return(t){p(t,Qt),r.transactionbody_set_collateral_return(this.ptr,t.ptr)}collateral_return(){const t=r.transactionbody_collateral_return(this.ptr);return t===0?void 0:Qt.__wrap(t)}set_total_collateral(t){p(t,C),r.transactionbody_set_total_collateral(this.ptr,t.ptr)}total_collateral(){const t=r.transactionbody_total_collateral(this.ptr);return t===0?void 0:C.__wrap(t)}set_reference_inputs(t){p(t,Ye),r.transactionbody_set_reference_inputs(this.ptr,t.ptr)}reference_inputs(){const t=r.transactionbody_reference_inputs(this.ptr);return t===0?void 0:Ye.__wrap(t)}set_voting_procedures(t){p(t,G_),r.transactionbody_set_voting_procedures(this.ptr,t.ptr)}set_proposal_procedures(t){p(t,A_),r.transactionbody_set_proposal_procedures(this.ptr,t.ptr)}static new(t,e,_,a){p(t,Ye),p(e,Br),p(_,C);let i=0;Pt(a)||(p(a,C),i=a.__destroy_into_raw());const o=r.transactionbody_new(t.ptr,e.ptr,_.ptr,i);return Ge.__wrap(o)}raw(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_raw(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];let a;return t!==0&&(a=S(t,e).slice(),r.__wbindgen_free(t,e*1)),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const v1=new FinalizationRegistry(n=>r.__wbg_transactionbuilder_free(n));class Ps{static __wrap(t){const e=Object.create(Ps.prototype);return e.ptr=t,v1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,v1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilder_free(t)}add_inputs_from(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(t,_r),p(e,kt);const c=aj(_,r.__wbindgen_malloc),d=w;r.transactionbuilder_add_inputs_from(o,this.ptr,t.ptr,e.ptr,c,d);var a=s()[o/4+0],i=s()[o/4+1];if(i)throw l(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_input(t,e){p(t,Te);let _=0;Pt(e)||(p(e,je),_=e.__destroy_into_raw()),r.transactionbuilder_add_input(this.ptr,t.ptr,_)}add_reference_input(t){p(t,Te),r.transactionbuilder_add_reference_input(this.ptr,t.ptr)}fee_for_input(t,e,_){try{const c=r.__wbindgen_add_to_stack_pointer(-16);p(t,kt),p(e,Xe),p(_,Et),r.transactionbuilder_fee_for_input(c,this.ptr,t.ptr,e.ptr,_.ptr);var a=s()[c/4+0],i=s()[c/4+1],o=s()[c/4+2];if(o)throw l(i);return C.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_output(t){try{const a=r.__wbindgen_add_to_stack_pointer(-16);p(t,Qt),r.transactionbuilder_add_output(a,this.ptr,t.ptr);var e=s()[a/4+0],_=s()[a/4+1];if(_)throw l(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_plutus_script(t){p(t,gt),r.transactionbuilder_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,gt),r.transactionbuilder_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_data(t){p(t,at),r.transactionbuilder_add_plutus_data(this.ptr,t.ptr)}add_native_script(t){p(t,Ct),r.transactionbuilder_add_native_script(this.ptr,t.ptr)}add_certificate(t,e){p(t,Ut);let _=0;Pt(e)||(p(e,je),_=e.__destroy_into_raw()),r.transactionbuilder_add_certificate(this.ptr,t.ptr,_)}fee_for_output(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,Qt),r.transactionbuilder_fee_for_output(i,this.ptr,t.ptr);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return C.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_ttl(t){p(t,C),r.transactionbuilder_set_ttl(this.ptr,t.ptr)}set_validity_start_interval(t){p(t,C),r.transactionbuilder_set_validity_start_interval(this.ptr,t.ptr)}add_withdrawal(t,e,_){p(t,Nt),p(e,C);let a=0;Pt(_)||(p(_,je),a=_.__destroy_into_raw()),r.transactionbuilder_add_withdrawal(this.ptr,t.ptr,e.ptr,a)}auxiliary_data(){const t=r.transactionbuilder_auxiliary_data(this.ptr);return t===0?void 0:Re.__wrap(t)}set_auxiliary_data(t){p(t,Re),r.transactionbuilder_set_auxiliary_data(this.ptr,t.ptr)}set_metadata(t){p(t,mr),r.transactionbuilder_set_metadata(this.ptr,t.ptr)}add_metadatum(t,e){p(t,C),p(e,vt),r.transactionbuilder_add_metadatum(this.ptr,t.ptr,e.ptr)}add_json_metadatum(t,e){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,C);const o=E(e,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionbuilder_add_json_metadatum(i,this.ptr,t.ptr,o,c);var _=s()[i/4+0],a=s()[i/4+1];if(a)throw l(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_json_metadatum_with_schema(t,e,_){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(t,C);const c=E(e,r.__wbindgen_malloc,r.__wbindgen_realloc),d=w;r.transactionbuilder_add_json_metadatum_with_schema(o,this.ptr,t.ptr,c,d,_);var a=s()[o/4+0],i=s()[o/4+1];if(i)throw l(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mint(){const t=r.transactionbuilder_mint(this.ptr);return t===0?void 0:rr.__wrap(t)}certificates(){const t=r.transactionbuilder_certificates(this.ptr);return t===0?void 0:yr.__wrap(t)}withdrawals(){const t=r.transactionbuilder_withdrawals(this.ptr);return t===0?void 0:Ur.__wrap(t)}native_scripts(){const t=r.transactionbuilder_native_scripts(this.ptr);return t===0?void 0:xe.__wrap(t)}add_mint(t,e,_){p(t,lt),p(e,Mn);let a=0;Pt(_)||(p(_,je),a=_.__destroy_into_raw()),r.transactionbuilder_add_mint(this.ptr,t.ptr,e.ptr,a)}static new(t){p(t,Is);const e=r.transactionbuilder_new(t.ptr);return Ps.__wrap(e)}script_data_hash(){const t=r.transactionbuilder_script_data_hash(this.ptr);return t===0?void 0:ar.__wrap(t)}add_collateral(t){try{const a=r.__wbindgen_add_to_stack_pointer(-16);p(t,Te),r.transactionbuilder_add_collateral(a,this.ptr,t.ptr);var e=s()[a/4+0],_=s()[a/4+1];if(_)throw l(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_collateral(){const t=r.transactionbuilder_get_collateral(this.ptr);return t===0?void 0:Ye.__wrap(t)}add_required_signer(t){p(t,X),r.transactionbuilder_add_required_signer(this.ptr,t.ptr)}required_signers(){const t=r.transactionbuilder_required_signers(this.ptr);return t===0?void 0:Yt.__wrap(t)}set_network_id(t){p(t,gn);var e=t.__destroy_into_raw();r.transactionbuilder_set_network_id(this.ptr,e)}network_id(){const t=r.transactionbuilder_network_id(this.ptr);return t===0?void 0:gn.__wrap(t)}redeemers(){const t=r.transactionbuilder_redeemers(this.ptr);return t===0?void 0:Pr.__wrap(t)}get_explicit_input(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_explicit_input(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Et.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_implicit_input(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_implicit_input(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Et.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_total_input(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_total_input(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Et.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_total_output(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_total_output(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Et.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_explicit_output(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_explicit_output(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Et.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_deposit(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_deposit(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return C.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_fee_if_set(){const t=r.transactionbuilder_get_fee_if_set(this.ptr);return t===0?void 0:C.__wrap(t)}balance(t,e){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,kt);let o=0;Pt(e)||(p(e,Jt),o=e.__destroy_into_raw()),r.transactionbuilder_balance(i,this.ptr,t.ptr,o);var _=s()[i/4+0],a=s()[i/4+1];if(a)throw l(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_to_bytes(o,this.ptr);var t=s()[o/4+0],e=s()[o/4+1],_=s()[o/4+2],a=s()[o/4+3];if(a)throw l(_);var i=S(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}full_size(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_full_size(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return t>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}output_sizes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_output_sizes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=_j(t,e).slice();return r.__wbindgen_free(t,e*4),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}outputs(){const t=r.transactionbuilder_outputs(this.ptr);return Br.__wrap(t)}construct(t,e,_){const a=this.__destroy_into_raw();let i=0;Pt(t)||(p(t,_r),i=t.__destroy_into_raw());let o=0;Pt(e)||(p(e,kt),o=e.__destroy_into_raw());const c=r.transactionbuilder_construct(a,i,o,Pt(_)?16777215:_?1:0);return l(c)}build_tx(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_build_tx(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return mn.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}min_fee(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_min_fee(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return C.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const k1=new FinalizationRegistry(n=>r.__wbg_transactionbuilderconfig_free(n));class Is{static __wrap(t){const e=Object.create(Is.prototype);return e.ptr=t,k1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,k1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilderconfig_free(t)}}const x1=new FinalizationRegistry(n=>r.__wbg_transactionbuilderconfigbuilder_free(n));class Zt{static __wrap(t){const e=Object.create(Zt.prototype);return e.ptr=t,x1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,x1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilderconfigbuilder_free(t)}static new(){const t=r.transactionbuilderconfigbuilder_new();return Zt.__wrap(t)}fee_algo(t){p(t,I_);const e=r.transactionbuilderconfigbuilder_fee_algo(this.ptr,t.ptr);return Zt.__wrap(e)}coins_per_utxo_byte(t){p(t,C);const e=r.transactionbuilderconfigbuilder_coins_per_utxo_byte(this.ptr,t.ptr);return Zt.__wrap(e)}pool_deposit(t){p(t,C);const e=r.transactionbuilderconfigbuilder_pool_deposit(this.ptr,t.ptr);return Zt.__wrap(e)}key_deposit(t){p(t,C);const e=r.transactionbuilderconfigbuilder_key_deposit(this.ptr,t.ptr);return Zt.__wrap(e)}max_value_size(t){const e=r.transactionbuilderconfigbuilder_max_value_size(this.ptr,t);return Zt.__wrap(e)}max_tx_size(t){const e=r.transactionbuilderconfigbuilder_max_tx_size(this.ptr,t);return Zt.__wrap(e)}ex_unit_prices(t){p(t,An);const e=r.transactionbuilderconfigbuilder_ex_unit_prices(this.ptr,t.ptr);return Zt.__wrap(e)}max_tx_ex_units(t){p(t,We);const e=r.transactionbuilderconfigbuilder_max_tx_ex_units(this.ptr,t.ptr);return Zt.__wrap(e)}costmdls(t){p(t,nr);const e=r.transactionbuilderconfigbuilder_costmdls(this.ptr,t.ptr);return Zt.__wrap(e)}collateral_percentage(t){const e=r.transactionbuilderconfigbuilder_collateral_percentage(this.ptr,t);return Zt.__wrap(e)}max_collateral_inputs(t){const e=r.transactionbuilderconfigbuilder_max_collateral_inputs(this.ptr,t);return Zt.__wrap(e)}slot_config(t,e,_){p(t,C),p(e,C);const a=r.transactionbuilderconfigbuilder_slot_config(this.ptr,t.ptr,e.ptr,_);return Zt.__wrap(a)}blockfrost(t){p(t,Ci);const e=r.transactionbuilderconfigbuilder_blockfrost(this.ptr,t.ptr);return Zt.__wrap(e)}build(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilderconfigbuilder_build(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Is.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const j1=new FinalizationRegistry(n=>r.__wbg_transactionhash_free(n));class we{static __wrap(t){const e=Object.create(we.prototype);return e.ptr=t,j1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,j1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionhash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionhash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return we.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionhash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return we.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionhash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return we.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const S1=new FinalizationRegistry(n=>r.__wbg_transactionindexes_free(n));class Ha{static __wrap(t){const e=Object.create(Ha.prototype);return e.ptr=t,S1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,S1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionindexes_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionindexes_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionindexes_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Ha.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionindexes_get(this.ptr,t);return C.__wrap(e)}add(t){p(t,C),r.transactionindexes_add(this.ptr,t.ptr)}}const C1=new FinalizationRegistry(n=>r.__wbg_transactioninput_free(n));class Xe{static __wrap(t){const e=Object.create(Xe.prototype);return e.ptr=t,C1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,C1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactioninput_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactioninput_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Xe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactioninput_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Xe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}transaction_id(){const t=r.governanceactionid_transaction_id(this.ptr);return we.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t,e){p(t,we),p(e,C);const _=r.governanceactionid_new(t.ptr,e.ptr);return Xe.__wrap(_)}}const E1=new FinalizationRegistry(n=>r.__wbg_transactioninputs_free(n));class Ye{static __wrap(t){const e=Object.create(Ye.prototype);return e.ptr=t,E1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,E1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactioninputs_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactioninputs_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactioninputs_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ye.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Ye.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactioninputs_get(this.ptr,t);return Xe.__wrap(e)}add(t){p(t,Xe),r.transactioninputs_add(this.ptr,t.ptr)}sort(){r.transactioninputs_sort(this.ptr)}}const O1=new FinalizationRegistry(n=>r.__wbg_transactionmetadatum_free(n));class vt{static __wrap(t){const e=Object.create(vt.prototype);return e.ptr=t,O1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,O1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionmetadatum_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionmetadatum_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_map(t){p(t,F_);const e=r.transactionmetadatum_new_map(t.ptr);return vt.__wrap(e)}static new_list(t){p(t,Ca);const e=r.transactionmetadatum_new_list(t.ptr);return vt.__wrap(e)}static new_int(t){p(t,_e);const e=r.transactionmetadatum_new_int(t.ptr);return vt.__wrap(e)}static new_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionmetadatum_new_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_text(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionmetadatum_new_text(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}kind(){return r.transactionmetadatum_kind(this.ptr)>>>0}as_map(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_map(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return F_.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_list(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_list(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Ca.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_int(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_int(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return _e.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_bytes(o,this.ptr);var t=s()[o/4+0],e=s()[o/4+1],_=s()[o/4+2],a=s()[o/4+3];if(a)throw l(_);var i=S(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_text(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_text(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}}const N1=new FinalizationRegistry(n=>r.__wbg_transactionmetadatumlabels_free(n));class Ri{static __wrap(t){const e=Object.create(Ri.prototype);return e.ptr=t,N1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,N1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionmetadatumlabels_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatumlabels_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionmetadatumlabels_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ri.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Ri.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionmetadatumlabels_get(this.ptr,t);return C.__wrap(e)}add(t){p(t,C),r.transactionindexes_add(this.ptr,t.ptr)}}const z1=new FinalizationRegistry(n=>r.__wbg_transactionoutput_free(n));class Qt{static __wrap(t){const e=Object.create(Qt.prototype);return e.ptr=t,z1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,z1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutput_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionoutput_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Qt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionoutput_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Qt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}address(){const t=r.transactionoutput_address(this.ptr);return kt.__wrap(t)}amount(){const t=r.transactionoutput_amount(this.ptr);return Et.__wrap(t)}datum(){const t=r.transactionoutput_datum(this.ptr);return t===0?void 0:Jt.__wrap(t)}script_ref(){const t=r.transactionoutput_script_ref(this.ptr);return t===0?void 0:Bn.__wrap(t)}set_datum(t){p(t,Jt),r.transactionoutput_set_datum(this.ptr,t.ptr)}set_script_ref(t){p(t,Bn),r.transactionoutput_set_script_ref(this.ptr,t.ptr)}static new(t,e){p(t,kt),p(e,Et);const _=r.transactionoutput_new(t.ptr,e.ptr);return Qt.__wrap(_)}format(){return r.transactionoutput_format(this.ptr)}to_legacy_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_legacy_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const R1=new FinalizationRegistry(n=>r.__wbg_transactionoutputamountbuilder_free(n));class Wa{static __wrap(t){const e=Object.create(Wa.prototype);return e.ptr=t,R1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,R1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputamountbuilder_free(t)}with_value(t){p(t,Et);const e=r.transactionoutputamountbuilder_with_value(this.ptr,t.ptr);return Wa.__wrap(e)}with_coin(t){p(t,C);const e=r.transactionoutputamountbuilder_with_coin(this.ptr,t.ptr);return Wa.__wrap(e)}with_coin_and_asset(t,e){p(t,C),p(e,fe);const _=r.transactionoutputamountbuilder_with_coin_and_asset(this.ptr,t.ptr,e.ptr);return Wa.__wrap(_)}with_asset_and_min_required_coin(t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(t,fe),p(e,C),r.transactionoutputamountbuilder_with_asset_and_min_required_coin(o,this.ptr,t.ptr,e.ptr);var _=s()[o/4+0],a=s()[o/4+1],i=s()[o/4+2];if(i)throw l(a);return Wa.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}build(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputamountbuilder_build(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Qt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const P1=new FinalizationRegistry(n=>r.__wbg_transactionoutputbuilder_free(n));class Pi{static __wrap(t){const e=Object.create(Pi.prototype);return e.ptr=t,P1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,P1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputbuilder_free(t)}static new(){const t=r.transactionoutputbuilder_new();return Pi.__wrap(t)}with_address(t){p(t,kt);const e=r.transactionoutputbuilder_with_address(this.ptr,t.ptr);return Pi.__wrap(e)}with_datum(t){p(t,Jt);const e=r.transactionoutputbuilder_with_datum(this.ptr,t.ptr);return Pi.__wrap(e)}next(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputbuilder_next(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Wa.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const I1=new FinalizationRegistry(n=>r.__wbg_transactionoutputs_free(n));class Br{static __wrap(t){const e=Object.create(Br.prototype);return e.ptr=t,I1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,I1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputs_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionoutputs_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionoutputs_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Br.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionoutputs_get(this.ptr,t);return Qt.__wrap(e)}add(t){p(t,Qt),r.transactionoutputs_add(this.ptr,t.ptr)}}const F1=new FinalizationRegistry(n=>r.__wbg_transactionunspentoutput_free(n));class Te{static __wrap(t){const e=Object.create(Te.prototype);return e.ptr=t,F1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,F1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionunspentoutput_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionunspentoutput_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionunspentoutput_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Te.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){p(t,Xe),p(e,Qt);const _=r.transactionunspentoutput_new(t.ptr,e.ptr);return Te.__wrap(_)}input(){const t=r.transactionunspentoutput_input(this.ptr);return Xe.__wrap(t)}output(){const t=r.transactionunspentoutput_output(this.ptr);return Qt.__wrap(t)}to_legacy_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionunspentoutput_to_legacy_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const T1=new FinalizationRegistry(n=>r.__wbg_transactionunspentoutputs_free(n));class _r{static __wrap(t){const e=Object.create(_r.prototype);return e.ptr=t,T1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,T1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionunspentoutputs_free(t)}static new(){const t=r.certificates_new();return _r.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionunspentoutputs_get(this.ptr,t);return Te.__wrap(e)}add(t){p(t,Te),r.transactionunspentoutputs_add(this.ptr,t.ptr)}}const A1=new FinalizationRegistry(n=>r.__wbg_transactionwitnessset_free(n));class Ae{static __wrap(t){const e=Object.create(Ae.prototype);return e.ptr=t,A1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,A1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnessset_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionwitnessset_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ae.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionwitnessset_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ae.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_vkeys(t){p(t,Fi),r.transactionwitnessset_set_vkeys(this.ptr,t.ptr)}vkeys(){const t=r.transactionwitnessset_vkeys(this.ptr);return t===0?void 0:Fi.__wrap(t)}set_native_scripts(t){p(t,xe),r.transactionwitnessset_set_native_scripts(this.ptr,t.ptr)}native_scripts(){const t=r.transactionwitnessset_native_scripts(this.ptr);return t===0?void 0:xe.__wrap(t)}set_bootstraps(t){p(t,Ei),r.transactionwitnessset_set_bootstraps(this.ptr,t.ptr)}bootstraps(){const t=r.transactionwitnessset_bootstraps(this.ptr);return t===0?void 0:Ei.__wrap(t)}set_plutus_scripts(t){p(t,se),r.transactionwitnessset_set_plutus_scripts(this.ptr,t.ptr)}plutus_scripts(){const t=r.transactionwitnessset_plutus_scripts(this.ptr);return t===0?void 0:se.__wrap(t)}set_plutus_data(t){p(t,ie),r.transactionwitnessset_set_plutus_data(this.ptr,t.ptr)}plutus_data(){const t=r.transactionwitnessset_plutus_data(this.ptr);return t===0?void 0:ie.__wrap(t)}set_redeemers(t){p(t,Pr),r.transactionwitnessset_set_redeemers(this.ptr,t.ptr)}set_plutus_v2_scripts(t){p(t,se),r.transactionwitnessset_set_plutus_v2_scripts(this.ptr,t.ptr)}set_plutus_v3_scripts(t){p(t,se),r.transactionwitnessset_set_plutus_v3_scripts(this.ptr,t.ptr)}redeemers(){const t=r.transactionwitnessset_redeemers(this.ptr);return t===0?void 0:Pr.__wrap(t)}plutus_v2_scripts(){const t=r.transactionwitnessset_plutus_v2_scripts(this.ptr);return t===0?void 0:se.__wrap(t)}plutus_v3_scripts(){const t=r.transactionwitnessset_plutus_v3_scripts(this.ptr);return t===0?void 0:se.__wrap(t)}static new(){const t=r.transactionwitnessset_new();return Ae.__wrap(t)}}const M1=new FinalizationRegistry(n=>r.__wbg_transactionwitnesssetbuilder_free(n));class Ka{static __wrap(t){const e=Object.create(Ka.prototype);return e.ptr=t,M1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,M1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnesssetbuilder_free(t)}add_vkey(t){p(t,Ln),r.transactionwitnesssetbuilder_add_vkey(this.ptr,t.ptr)}add_bootstrap(t){p(t,pn),r.transactionwitnesssetbuilder_add_bootstrap(this.ptr,t.ptr)}add_native_script(t){p(t,Ct),r.transactionwitnesssetbuilder_add_native_script(this.ptr,t.ptr)}add_plutus_script(t){p(t,gt),r.transactionwitnesssetbuilder_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,gt),r.transactionwitnesssetbuilder_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_datum(t){p(t,at),r.transactionwitnesssetbuilder_add_plutus_datum(this.ptr,t.ptr)}add_redeemer(t){p(t,Rr),r.transactionwitnesssetbuilder_add_redeemer(this.ptr,t.ptr)}add_required_wits(t){p(t,zi),r.transactionwitnesssetbuilder_add_required_wits(this.ptr,t.ptr)}static new(){const t=r.transactionwitnesssetbuilder_new();return Ka.__wrap(t)}add_existing(t){p(t,Ae),r.transactionwitnesssetbuilder_add_existing(this.ptr,t.ptr)}build(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssetbuilder_build(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return Ae.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const D1=new FinalizationRegistry(n=>r.__wbg_transactionwitnesssets_free(n));class Ja{static __wrap(t){const e=Object.create(Ja.prototype);return e.ptr=t,D1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,D1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnesssets_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.transactionwitnesssets_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionwitnesssets_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return Ja.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionwitnesssets_get(this.ptr,t);return Ae.__wrap(e)}add(t){p(t,Ae),r.transactionwitnesssets_add(this.ptr,t.ptr)}}const B1=new FinalizationRegistry(n=>r.__wbg_treasurywithdrawals_free(n));class Qa{static __wrap(t){const e=Object.create(Qa.prototype);return e.ptr=t,B1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,B1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_treasurywithdrawals_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.treasurywithdrawals_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.treasurywithdrawals_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return Qa.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,X),p(e,C);const _=r.treasurywithdrawals_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:C.__wrap(_)}get(t){p(t,X);const e=r.treasurywithdrawals_get(this.ptr,t.ptr);return e===0?void 0:C.__wrap(e)}keys(){const t=r.treasurywithdrawals_keys(this.ptr);return Yt.__wrap(t)}}const L1=new FinalizationRegistry(n=>r.__wbg_treasurywithdrawalsaction_free(n));class Ga{static __wrap(t){const e=Object.create(Ga.prototype);return e.ptr=t,L1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,L1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_treasurywithdrawalsaction_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.treasurywithdrawalsaction_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.treasurywithdrawalsaction_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}withdrawals(){const t=r.treasurywithdrawalsaction_withdrawals(this.ptr);return Qa.__wrap(t)}static new(t){p(t,Qa);const e=r.treasurywithdrawalsaction_new(t.ptr);return Ga.__wrap(e)}}const U1=new FinalizationRegistry(n=>r.__wbg_unitinterval_free(n));class _t{static __wrap(t){const e=Object.create(_t.prototype);return e.ptr=t,U1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,U1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unitinterval_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.unitinterval_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return _t.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.unitinterval_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return _t.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}numerator(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}denominator(){const t=r.exunits_steps(this.ptr);return C.__wrap(t)}static new(t,e){p(t,C),p(e,C);const _=r.exunits_new(t.ptr,e.ptr);return _t.__wrap(_)}static from_float(t){const e=r.unitinterval_from_float(t);return _t.__wrap(e)}}const V1=new FinalizationRegistry(n=>r.__wbg_unregcert_free(n));class H_{static __wrap(t){const e=Object.create(H_.prototype);return e.ptr=t,V1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,V1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.unregcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return H_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.unregcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return H_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t,e){p(t,H),p(e,C);const _=r.regcert_new(t.ptr,e.ptr);return H_.__wrap(_)}}const q1=new FinalizationRegistry(n=>r.__wbg_unregcommitteehotkeycert_free(n));class W_{static __wrap(t){const e=Object.create(W_.prototype);return e.ptr=t,q1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,q1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregcommitteehotkeycert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.unregcommitteehotkeycert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return W_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.unregcommitteehotkeycert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return W_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee_cold_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return X.__wrap(t)}static new(t){p(t,X);const e=r.scriptpubkey_new(t.ptr);return W_.__wrap(e)}}const $1=new FinalizationRegistry(n=>r.__wbg_unregdrepcert_free(n));class K_{static __wrap(t){const e=Object.create(K_.prototype);return e.ptr=t,$1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregdrepcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.unregdrepcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.unregdrepcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return K_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.unregdrepcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return K_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}voting_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t,e){p(t,H),p(e,C);const _=r.regcert_new(t.ptr,e.ptr);return K_.__wrap(_)}}const H1=new FinalizationRegistry(n=>r.__wbg_update_free(n));class Xa{static __wrap(t){const e=Object.create(Xa.prototype);return e.ptr=t,H1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,H1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_update_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.update_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.update_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}proposed_protocol_parameter_updates(){const t=r.update_proposed_protocol_parameter_updates(this.ptr);return Aa.__wrap(t)}epoch(){return r.update_epoch(this.ptr)>>>0}static new(t,e){p(t,Aa);const _=r.update_new(t.ptr,e);return Xa.__wrap(_)}}const W1=new FinalizationRegistry(n=>r.__wbg_url_free(n));class ir{static __wrap(t){const e=Object.create(ir.prototype);return e.ptr=t,W1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,W1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_url_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.url_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.url_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.url_new(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}url(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const K1=new FinalizationRegistry(n=>r.__wbg_vrfcert_free(n));class sr{static __wrap(t){const e=Object.create(sr.prototype);return e.ptr=t,K1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,K1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.vrfcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return sr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.vrfcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return sr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}output(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}proof(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_attributes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16),c=N(t,r.__wbindgen_malloc),d=w,f=N(e,r.__wbindgen_malloc),h=w;r.vrfcert_new(o,c,d,f,h);var _=s()[o/4+0],a=s()[o/4+1],i=s()[o/4+2];if(i)throw l(a);return sr.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const J1=new FinalizationRegistry(n=>r.__wbg_vrfkeyhash_free(n));class vn{static __wrap(t){const e=Object.create(vn.prototype);return e.ptr=t,J1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,J1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfkeyhash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.vrfkeyhash_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],_=s()[d/4+1],a=s()[d/4+2],i=s()[d/4+3],o=e,c=_;if(i)throw o=0,c=0,l(a);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.vrfkeyhash_from_bech32(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.vrfkeyhash_from_hex(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return vn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Q1=new FinalizationRegistry(n=>r.__wbg_vrfvkey_free(n));class Ii{static __wrap(t){const e=Object.create(Ii.prototype);return e.ptr=t,Q1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Q1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfvkey_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vrfvkey_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.plutusscript_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ii.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=r.vrfvkey_hash(this.ptr);return vn.__wrap(t)}to_raw_key(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const G1=new FinalizationRegistry(n=>r.__wbg_value_free(n));class Et{static __wrap(t){const e=Object.create(Et.prototype);return e.ptr=t,G1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,G1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_value_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.value_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Et.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.value_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Et.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,C);const e=r.value_new(t.ptr);return Et.__wrap(e)}static new_from_assets(t){p(t,fe);const e=r.value_new_from_assets(t.ptr);return Et.__wrap(e)}static zero(){const t=r.value_zero();return Et.__wrap(t)}is_zero(){return r.value_is_zero(this.ptr)!==0}coin(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}set_coin(t){p(t,C),r.value_set_coin(this.ptr,t.ptr)}multiasset(){const t=r.value_multiasset(this.ptr);return t===0?void 0:fe.__wrap(t)}set_multiasset(t){p(t,fe),r.value_set_multiasset(this.ptr,t.ptr)}checked_add(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,Et),r.value_checked_add(i,this.ptr,t.ptr);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Et.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,Et),r.value_checked_sub(i,this.ptr,t.ptr);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Et.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){p(t,Et);const e=r.value_clamped_sub(this.ptr,t.ptr);return Et.__wrap(e)}compare(t){p(t,Et);const e=r.value_compare(this.ptr,t.ptr);return e===16777215?void 0:e}}const X1=new FinalizationRegistry(n=>r.__wbg_vkey_free(n));class Se{static __wrap(t){const e=Object.create(Se.prototype);return e.ptr=t,X1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,X1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkey_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vkey_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.vkey_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,yn);const e=r.vkey_new(t.ptr);return Se.__wrap(e)}public_key(){const t=r.vkey_public_key(this.ptr);return yn.__wrap(t)}}const Y1=new FinalizationRegistry(n=>r.__wbg_vkeys_free(n));class Go{static __wrap(t){const e=Object.create(Go.prototype);return e.ptr=t,Y1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Y1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeys_free(t)}static new(){const t=r.ed25519keyhashes_new();return Go.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.vkeys_get(this.ptr,t);return Se.__wrap(e)}add(t){p(t,Se),r.vkeys_add(this.ptr,t.ptr)}}const Z1=new FinalizationRegistry(n=>r.__wbg_vkeywitness_free(n));class Ln{static __wrap(t){const e=Object.create(Ln.prototype);return e.ptr=t,Z1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Z1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeywitness_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.vkeywitness_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ln.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.vkeywitness_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ln.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){p(t,Se),p(e,ke);const _=r.vkeywitness_new(t.ptr,e.ptr);return Ln.__wrap(_)}vkey(){const t=r.vkey_new(this.ptr);return Se.__wrap(t)}signature(){const t=r.vkeywitness_signature(this.ptr);return ke.__wrap(t)}}const t0=new FinalizationRegistry(n=>r.__wbg_vkeywitnesses_free(n));class Fi{static __wrap(t){const e=Object.create(Fi.prototype);return e.ptr=t,t0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeywitnesses_free(t)}static new(){const t=r.ed25519keyhashes_new();return Fi.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.vkeywitnesses_get(this.ptr,t);return Ln.__wrap(e)}add(t){p(t,Ln),r.vkeywitnesses_add(this.ptr,t.ptr)}}const e0=new FinalizationRegistry(n=>r.__wbg_vote_free(n));class Lr{static __wrap(t){const e=Object.create(Lr.prototype);return e.ptr=t,e0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,e0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vote_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.vote_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Lr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.vote_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Lr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_no(){const t=r.language_new_plutus_v1();return Lr.__wrap(t)}static new_yes(){const t=r.language_new_plutus_v2();return Lr.__wrap(t)}static new_abstain(){const t=r.language_new_plutus_v3();return Lr.__wrap(t)}kind(){return r.vote_kind(this.ptr)>>>0}}const n0=new FinalizationRegistry(n=>r.__wbg_votedelegcert_free(n));class J_{static __wrap(t){const e=Object.create(J_.prototype);return e.ptr=t,n0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,n0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votedelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.votedelegcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return J_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.votedelegcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return J_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return H.__wrap(t)}drep(){const t=r.votedelegcert_drep(this.ptr);return ae.__wrap(t)}static new(t,e){p(t,H),p(e,ae);const _=r.votedelegcert_new(t.ptr,e.ptr);return J_.__wrap(_)}}const r0=new FinalizationRegistry(n=>r.__wbg_voteregdelegcert_free(n));class Q_{static __wrap(t){const e=Object.create(Q_.prototype);return e.ptr=t,r0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,r0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_voteregdelegcert_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.voteregdelegcert_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Q_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.voteregdelegcert_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Q_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}drep(){const t=r.voteregdelegcert_drep(this.ptr);return ae.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return C.__wrap(t)}static new(t,e,_){p(t,H),p(e,ae),p(_,C);const a=r.voteregdelegcert_new(t.ptr,e.ptr,_.ptr);return Q_.__wrap(a)}}const a0=new FinalizationRegistry(n=>r.__wbg_voter_free(n));class kn{static __wrap(t){const e=Object.create(kn.prototype);return e.ptr=t,a0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,a0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_voter_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.voter_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return kn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.voter_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return kn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_committee_hot_keyhash(t){p(t,X);const e=r.drep_new_keyhash(t.ptr);return kn.__wrap(e)}static new_committee_hot_scripthash(t){p(t,lt);const e=r.drep_new_scripthash(t.ptr);return kn.__wrap(e)}static new_drep_keyhash(t){p(t,X);const e=r.voter_new_drep_keyhash(t.ptr);return kn.__wrap(e)}static new_drep_scripthash(t){p(t,lt);const e=r.voter_new_drep_scripthash(t.ptr);return kn.__wrap(e)}static new_staking_pool_keyhash(t){p(t,X);const e=r.voter_new_staking_pool_keyhash(t.ptr);return kn.__wrap(e)}kind(){return r.voter_kind(this.ptr)>>>0}as_committee_hot_keyhash(){const t=r.voter_as_committee_hot_keyhash(this.ptr);return t===0?void 0:X.__wrap(t)}as_committee_hot_scripthash(){const t=r.voter_as_committee_hot_scripthash(this.ptr);return t===0?void 0:lt.__wrap(t)}as_drep_keyhash(){const t=r.voter_as_drep_keyhash(this.ptr);return t===0?void 0:X.__wrap(t)}as_drep_scripthash(){const t=r.voter_as_drep_scripthash(this.ptr);return t===0?void 0:lt.__wrap(t)}as_staking_pool_keyhash(){const t=r.voter_as_staking_pool_keyhash(this.ptr);return t===0?void 0:X.__wrap(t)}}const _0=new FinalizationRegistry(n=>r.__wbg_votingprocedure_free(n));class Ya{static __wrap(t){const e=Object.create(Ya.prototype);return e.ptr=t,_0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votingprocedure_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.votingprocedure_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.votingprocedure_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}governance_action_id(){const t=r.transactionunspentoutput_input(this.ptr);return ma.__wrap(t)}voter(){const t=r.votingprocedure_voter(this.ptr);return kn.__wrap(t)}vote(){return r.votingprocedure_vote(this.ptr)>>>0}anchor(){const t=r.votingprocedure_anchor(this.ptr);return Yn.__wrap(t)}static new(t,e,_,a){p(t,ma),p(e,kn),p(_,Lr),p(a,Yn);const i=r.votingprocedure_new(t.ptr,e.ptr,_.ptr,a.ptr);return Ya.__wrap(i)}}const i0=new FinalizationRegistry(n=>r.__wbg_votingprocedures_free(n));class G_{static __wrap(t){const e=Object.create(G_.prototype);return e.ptr=t,i0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,i0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votingprocedures_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedures_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.votingprocedures_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return G_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return G_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.votingprocedures_get(this.ptr,t);return Ya.__wrap(e)}add(t){p(t,Ya),r.votingprocedures_add(this.ptr,t.ptr)}}const s0=new FinalizationRegistry(n=>r.__wbg_withdrawals_free(n));class Ur{static __wrap(t){const e=Object.create(Ur.prototype);return e.ptr=t,s0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,s0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_withdrawals_free(t)}to_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=S(t,e).slice();return r.__wbindgen_free(t,e*1),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=N(t,r.__wbindgen_malloc),c=w;r.withdrawals_from_bytes(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ur.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],_=s()[c/4+2],a=s()[c/4+3],i=t,o=e;if(a)throw i=0,o=0,l(_);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_js_value(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1],_=s()[a/4+2];if(_)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.withdrawals_from_json(i,o,c);var e=s()[i/4+0],_=s()[i/4+1],a=s()[i/4+2];if(a)throw l(_);return Ur.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return Ur.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,Nt),p(e,C);const _=r.withdrawals_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:C.__wrap(_)}get(t){p(t,Nt);const e=r.withdrawals_get(this.ptr,t.ptr);return e===0?void 0:C.__wrap(e)}keys(){const t=r.withdrawals_keys(this.ptr);return L_.__wrap(t)}}const Wl={__wbindgen_placeholder__:{__wbindgen_string_new:function(n,t){const e=R(n,t);return pt(e)},__wbindgen_object_drop_ref:function(n){l(n)},__wbindgen_json_parse:function(n,t){const e=JSON.parse(R(n,t));return pt(e)},__wbindgen_json_serialize:function(n,t){const e=rt(t),_=JSON.stringify(e===void 0?null:e),a=E(_,r.__wbindgen_malloc,r.__wbindgen_realloc),i=w;s()[n/4+1]=i,s()[n/4+0]=a},__wbg_transaction_new:function(n){const t=mn.__wrap(n);return pt(t)},__wbg_fetch_16f5dddfc5a913a4:function(n,t){const e=rt(n).fetch(rt(t));return pt(e)},__wbindgen_string_get:function(n,t){const e=rt(t),_=typeof e=="string"?e:void 0;var a=Pt(_)?0:E(_,r.__wbindgen_malloc,r.__wbindgen_realloc),i=w;s()[n/4+1]=i,s()[n/4+0]=a},__wbindgen_object_clone_ref:function(n){const t=rt(n);return pt(t)},__wbg_set_a5d34c36a1a4ebd1:function(){return dn(function(n,t,e,_,a){rt(n).set(R(t,e),R(_,a))},arguments)},__wbg_headers_ab5251d2727ac41e:function(n){const t=rt(n).headers;return pt(t)},__wbg_newwithstrandinit_c45f0dc6da26fd03:function(){return dn(function(n,t,e){const _=new Request(R(n,t),rt(e));return pt(_)},arguments)},__wbg_instanceof_Response_fb3a4df648c1859b:function(n){let t;try{t=rt(n)instanceof Response}catch{t=!1}return t},__wbg_json_b9414eb18cb751d0:function(){return dn(function(n){const t=rt(n).json();return pt(t)},arguments)},__wbindgen_cb_drop:function(n){const t=l(n).original;return t.cnt--==1?(t.a=0,!0):!1},__wbg_randomFillSync_2f6909f8132a175d:function(){return dn(function(n,t,e){rt(n).randomFillSync(S(t,e))},arguments)},__wbg_getRandomValues_11a236fbf9914290:function(){return dn(function(n,t){rt(n).getRandomValues(rt(t))},arguments)},__wbg_process_5615a087a47ba544:function(n){const t=rt(n).process;return pt(t)},__wbindgen_is_object:function(n){const t=rt(n);return typeof t=="object"&&t!==null},__wbg_versions_8404a8b21b9337ae:function(n){const t=rt(n).versions;return pt(t)},__wbg_node_8b504e170b6380b9:function(n){const t=rt(n).node;return pt(t)},__wbindgen_is_string:function(n){return typeof rt(n)=="string"},__wbg_require_0430b68b38d1a77e:function(){return dn(function(n,t,e){const _=rt(n).require(R(t,e));return pt(_)},arguments)},__wbg_crypto_ca5197b41df5e2bd:function(n){const t=rt(n).crypto;return pt(t)},__wbg_msCrypto_1088c21440b2d7e4:function(n){const t=rt(n).msCrypto;return pt(t)},__wbg_static_accessor_NODE_MODULE_06b864c18e8ae506:function(){const n=module;return pt(n)},__wbg_self_e7c1f827057f6584:function(){return dn(function(){const n=self.self;return pt(n)},arguments)},__wbg_window_a09ec664e14b1b81:function(){return dn(function(){const n=globalThis.window;return pt(n)},arguments)},__wbg_globalThis_87cbb8506fecf3a9:function(){return dn(function(){const n=globalThis.globalThis;return pt(n)},arguments)},__wbg_global_c85a9259e621f3db:function(){return dn(function(){const n=global.global;return pt(n)},arguments)},__wbindgen_is_undefined:function(n){return rt(n)===void 0},__wbg_newnoargs_2b8b6bd7753c76ba:function(n,t){const e=new Function(R(n,t));return pt(e)},__wbg_call_95d1ea488d03e4e8:function(){return dn(function(n,t){const e=rt(n).call(rt(t));return pt(e)},arguments)},__wbg_new_f9876326328f45ed:function(){const n=new Object;return pt(n)},__wbg_call_9495de66fdbe016b:function(){return dn(function(n,t,e){const _=rt(n).call(rt(t),rt(e));return pt(_)},arguments)},__wbg_set_6aa458a4ebdb65cb:function(){return dn(function(n,t,e){return Reflect.set(rt(n),rt(t),rt(e))},arguments)},__wbg_buffer_cf65c07de34b9a08:function(n){const t=rt(n).buffer;return pt(t)},__wbg_new_9d3a9ce4282a18a8:function(n,t){try{var e={a:n,b:t},_=(i,o)=>{const c=e.a;e.a=0;try{return ij(c,e.b,i,o)}finally{e.a=c}};const a=new Promise(_);return pt(a)}finally{e.a=e.b=0}},__wbg_resolve_fd40f858d9db1a04:function(n){const t=Promise.resolve(rt(n));return pt(t)},__wbg_then_ec5db6d509eb475f:function(n,t){const e=rt(n).then(rt(t));return pt(e)},__wbg_then_f753623316e2873a:function(n,t,e){const _=rt(n).then(rt(t),rt(e));return pt(_)},__wbg_new_537b7341ce90bb31:function(n){const t=new Uint8Array(rt(n));return pt(t)},__wbg_set_17499e8aa4003ebd:function(n,t,e){rt(n).set(rt(t),e>>>0)},__wbg_length_27a2afe8ab42b09f:function(n){return rt(n).length},__wbg_newwithlength_b56c882b57805732:function(n){const t=new Uint8Array(n>>>0);return pt(t)},__wbg_subarray_7526649b91a252a6:function(n,t,e){const _=rt(n).subarray(t>>>0,e>>>0);return pt(_)},__wbg_new_d87f272aec784ec0:function(n,t){const e=new Function(R(n,t));return pt(e)},__wbg_call_eae29933372a39be:function(n,t){const e=rt(n).call(rt(t));return pt(e)},__wbindgen_jsval_eq:function(n,t){return rt(n)===rt(t)},__wbg_self_e0b3266d2d9eba1a:function(n){const t=rt(n).self;return pt(t)},__wbg_crypto_e95a6e54c5c2e37f:function(n){const t=rt(n).crypto;return pt(t)},__wbg_getRandomValues_dc67302a7bd1aec5:function(n){const t=rt(n).getRandomValues;return pt(t)},__wbg_require_0993fe224bf8e202:function(n,t){const e=require(R(n,t));return pt(e)},__wbg_randomFillSync_dd2297de5917c74e:function(n,t,e){rt(n).randomFillSync(S(t,e))},__wbg_getRandomValues_02639197c8166a96:function(n,t,e){rt(n).getRandomValues(S(t,e))},__wbindgen_debug_string:function(n,t){const e=Lp(rt(t)),_=E(e,r.__wbindgen_malloc,r.__wbindgen_realloc),a=w;s()[n/4+1]=a,s()[n/4+0]=_},__wbindgen_throw:function(n,t){throw new Error(R(n,t))},__wbindgen_memory:function(){const n=r.memory;return pt(n)},__wbindgen_closure_wrapper7018:function(n,t,e){const _=nj(n,t,216,rj);return pt(_)}}};async function Cj(n){return(await o0(n)).exports}let Xo,Kl;function o0(n){return Xo!=null?Promise.resolve(Xo):(Kl==null&&(Kl=(async()=>{try{const t=(await Nj(n??{})).instance;return r=t.exports,Wo=new Int32Array(r.memory.buffer),$o=new Uint8Array(r.memory.buffer),Xo={instance:t,exports:Ej()},Xo}finally{Kl=null}})()),Kl)}function Ej(){return{encrypt_with_password:Nb,decrypt_with_password:zb,min_fee:Rb,encode_arbitrary_bytes_as_metadatum:Pb,decode_arbitrary_bytes_from_metadatum:Ib,encode_json_str_to_metadatum:Fb,decode_metadatum_to_json_str:Tb,encode_json_str_to_plutus_datum:Ab,decode_plutus_datum_to_json_str:Mb,make_daedalus_bootstrap_witness:Bb,make_icarus_bootstrap_witness:Lb,make_vkey_witness:Es,hash_auxiliary_data:Ub,hash_transaction:da,hash_plutus_data:Os,hash_blake2b256:Up,hash_blake2b224:Vb,hash_script_data:qb,get_implicit_input:$b,get_deposit:Hb,min_ada_required:Wb,encode_json_str_to_native_script:Vp,apply_params_to_plutus_script:qp,Address:kt,Anchor:Yn,AssetName:ne,AssetNames:ua,Assets:Zn,AuxiliaryData:Re,AuxiliaryDataHash:br,AuxiliaryDataSet:ji,BaseAddress:tr,BigInt:Ko,BigNum:C,Bip32PrivateKey:In,Bip32PublicKey:pa,Block:Si,BlockHash:er,Blockfrost:Ci,BootstrapWitness:pn,BootstrapWitnesses:Ei,ByronAddress:Pe,Certificate:Ut,Certificates:yr,ConstrPlutusData:fa,CostModel:fn,Costmdls:nr,DNSRecordAorAAAA:wa,DNSRecordSRV:ga,Data:Fn,DataHash:re,Datum:Jt,Drep:ae,DrepVotingThresholds:ha,Ed25519KeyHash:X,Ed25519KeyHashes:Yt,Ed25519Signature:ke,EnterpriseAddress:Tn,ExUnitPrices:An,ExUnits:We,GeneralTransactionMetadata:mr,GenesisDelegateHash:ba,GenesisHash:wn,GenesisHashes:P_,GenesisKeyDelegation:ya,GovernanceAction:Ie,GovernanceActionId:ma,HardForkInitiationAction:va,Header:ka,HeaderBody:xa,Int:_e,Ipv4:vr,Ipv6:kr,KESSignature:Oi,KESVKey:ja,Language:Ke,Languages:Ns,LegacyDaedalusPrivateKey:zs,LinearFee:I_,MIRToStakeCredentials:Sa,MetadataList:Ca,MetadataMap:F_,Mint:rr,MintAssets:Mn,MoveInstantaneousReward:xr,MoveInstantaneousRewardsCert:Ea,MultiAsset:fe,MultiHostName:jr,NativeScript:Ct,NativeScripts:xe,NetworkId:gn,NetworkInfo:Sr,NewCommittee:Oa,NewConstitution:Na,Nonce:za,OperationalCert:Ra,ParameterChangeAction:Pa,PlutusData:at,PlutusList:ie,PlutusMap:Ia,PlutusScript:gt,PlutusScripts:se,PlutusWitness:hn,Pointer:Ni,PointerAddress:T_,PoolMetadata:Cr,PoolMetadataHash:Er,PoolParams:Or,PoolRegistration:Nr,PoolRetirement:zr,PoolVotingThresholds:Fa,PrivateKey:Ht,ProposalProcedure:Ta,ProposalProcedures:A_,ProposedProtocolParameterUpdates:Aa,ProtocolParamUpdate:Dn,ProtocolVersion:bn,PublicKey:yn,PublicKeys:Jo,Redeemer:Rr,RedeemerTag:Je,RedeemerWitnessKey:Rs,Redeemers:Pr,RegCert:M_,RegCommitteeHotKeyCert:D_,RegDrepCert:B_,Relay:Qe,Relays:Ir,RequiredWitnessSet:zi,RewardAddress:Nt,RewardAddresses:L_,Script:Fe,ScriptAll:Ma,ScriptAny:Da,ScriptDataHash:ar,ScriptHash:lt,ScriptHashes:Ba,ScriptNOfK:La,ScriptPubkey:Ua,ScriptRef:Bn,ScriptWitness:je,SingleHostAddr:Fr,SingleHostName:Tr,StakeCredential:H,StakeCredentials:U_,StakeDelegation:Ar,StakeDeregistration:Mr,StakeRegDelegCert:V_,StakeRegistration:Dr,StakeVoteDelegCert:q_,StakeVoteRegDelegCert:$_,Strings:Qo,TimelockExpiry:Va,TimelockStart:qa,Transaction:mn,TransactionBodies:$a,TransactionBody:Ge,TransactionBuilder:Ps,TransactionBuilderConfig:Is,TransactionBuilderConfigBuilder:Zt,TransactionHash:we,TransactionIndexes:Ha,TransactionInput:Xe,TransactionInputs:Ye,TransactionMetadatum:vt,TransactionMetadatumLabels:Ri,TransactionOutput:Qt,TransactionOutputAmountBuilder:Wa,TransactionOutputBuilder:Pi,TransactionOutputs:Br,TransactionUnspentOutput:Te,TransactionUnspentOutputs:_r,TransactionWitnessSet:Ae,TransactionWitnessSetBuilder:Ka,TransactionWitnessSets:Ja,TreasuryWithdrawals:Qa,TreasuryWithdrawalsAction:Ga,UnitInterval:_t,UnregCert:H_,UnregCommitteeHotKeyCert:W_,UnregDrepCert:K_,Update:Xa,Url:ir,VRFCert:sr,VRFKeyHash:vn,VRFVKey:Ii,Value:Et,Vkey:Se,Vkeys:Go,Vkeywitness:Ln,Vkeywitnesses:Fi,Vote:Lr,VoteDelegCert:J_,VoteRegDelegCert:Q_,Voter:kn,VotingProcedure:Ya,VotingProcedures:G_,Withdrawals:Ur}}function Oj(){return Xo!=null}async function Nj(n){var a,i,o;const t=import.meta.url.includes("_frsh")?n.url:new URL("/aiken-ide/assets/cardano_multiplatform_lib_bg-1FNGSMI0.wasm",import.meta.url),e=n.decompress,_=t.protocol==="file:";if(((i=(a=globalThis.process)==null?void 0:a.versions)==null?void 0:i.node)!=null&&_){const c=fs.readFileSync(t);return WebAssembly.instantiate(e?e(c):c,Wl)}switch(t.protocol){case"":case"chrome-extension:":case"file:":case"https:":case"http:":{if(_){if(typeof Deno!="object")throw new Error("file urls are not supported in this environment");"permissions"in Deno&&await Deno.permissions.request({name:"read",path:t})}else typeof Deno=="object"&&"permissions"in Deno&&await Deno.permissions.request({name:"net",host:t.host});const c=await fetch(t);if(e){const d=new Uint8Array(await c.arrayBuffer());return WebAssembly.instantiate(e(d),Wl)}return _||(o=c.headers.get("content-type"))!=null&&o.toLowerCase().startsWith("application/wasm")?WebAssembly.instantiateStreaming(c,Wl):WebAssembly.instantiate(await c.arrayBuffer(),Wl)}default:throw new Error(`Unsupported protocol: ${t.protocol}`)}}const zj=Object.freeze(Object.defineProperty({__proto__:null,Address:kt,Anchor:Yn,AssetName:ne,AssetNames:ua,Assets:Zn,AuxiliaryData:Re,AuxiliaryDataHash:br,AuxiliaryDataSet:ji,BaseAddress:tr,BigInt:Ko,BigNum:C,Bip32PrivateKey:In,Bip32PublicKey:pa,Block:Si,BlockHash:er,Blockfrost:Ci,BootstrapWitness:pn,BootstrapWitnesses:Ei,ByronAddress:Pe,Certificate:Ut,CertificateKind:mj,Certificates:yr,ConstrPlutusData:fa,CostModel:fn,Costmdls:nr,DNSRecordAorAAAA:wa,DNSRecordSRV:ga,Data:Fn,DataHash:re,Datum:Jt,DatumKind:bj,Drep:ae,DrepKind:dj,DrepVotingThresholds:ha,Ed25519KeyHash:X,Ed25519KeyHashes:Yt,Ed25519Signature:ke,EnterpriseAddress:Tn,ExUnitPrices:An,ExUnits:We,GeneralTransactionMetadata:mr,GenesisDelegateHash:ba,GenesisHash:wn,GenesisHashes:P_,GenesisKeyDelegation:ya,GovernanceAction:Ie,GovernanceActionId:ma,GovernanceActionKind:oj,HardForkInitiationAction:va,Header:ka,HeaderBody:xa,Int:_e,Ipv4:vr,Ipv6:kr,KESSignature:Oi,KESVKey:ja,Language:Ke,LanguageKind:pj,Languages:Ns,LegacyDaedalusPrivateKey:zs,LinearFee:I_,MIRKind:kj,MIRPot:vj,MIRToStakeCredentials:Sa,MetadataJsonSchema:Kb,MetadataList:Ca,MetadataMap:F_,Mint:rr,MintAssets:Mn,MoveInstantaneousReward:xr,MoveInstantaneousRewardsCert:Ea,MultiAsset:fe,MultiHostName:jr,NativeScript:Ct,NativeScriptKind:jj,NativeScripts:xe,NetworkId:gn,NetworkIdKind:Sj,NetworkInfo:Sr,NewCommittee:Oa,NewConstitution:Na,Nonce:za,OperationalCert:Ra,ParameterChangeAction:Pa,PlutusData:at,PlutusDataKind:fj,PlutusDatumSchema:gj,PlutusList:ie,PlutusMap:Ia,PlutusScript:gt,PlutusScripts:se,PlutusWitness:hn,Pointer:Ni,PointerAddress:T_,PoolMetadata:Cr,PoolMetadataHash:Er,PoolParams:Or,PoolRegistration:Nr,PoolRetirement:zr,PoolVotingThresholds:Fa,PrivateKey:Ht,ProposalProcedure:Ta,ProposalProcedures:A_,ProposedProtocolParameterUpdates:Aa,ProtocolParamUpdate:Dn,ProtocolVersion:bn,PublicKey:yn,PublicKeys:Jo,Redeemer:Rr,RedeemerTag:Je,RedeemerTagKind:wj,RedeemerWitnessKey:Rs,Redeemers:Pr,RegCert:M_,RegCommitteeHotKeyCert:D_,RegDrepCert:B_,Relay:Qe,RelayKind:xj,Relays:Ir,RequiredWitnessSet:zi,RewardAddress:Nt,RewardAddresses:L_,Script:Fe,ScriptAll:Ma,ScriptAny:Da,ScriptDataHash:ar,ScriptHash:lt,ScriptHashNamespace:un,ScriptHashes:Ba,ScriptKind:hj,ScriptNOfK:La,ScriptPubkey:Ua,ScriptRef:Bn,ScriptSchema:Jb,ScriptWitness:je,ScriptWitnessKind:yj,SingleHostAddr:Fr,SingleHostName:Tr,StakeCredKind:sj,StakeCredential:H,StakeCredentials:U_,StakeDelegation:Ar,StakeDeregistration:Mr,StakeRegDelegCert:V_,StakeRegistration:Dr,StakeVoteDelegCert:q_,StakeVoteRegDelegCert:$_,Strings:Qo,TimelockExpiry:Va,TimelockStart:qa,Transaction:mn,TransactionBodies:$a,TransactionBody:Ge,TransactionBuilder:Ps,TransactionBuilderConfig:Is,TransactionBuilderConfigBuilder:Zt,TransactionHash:we,TransactionIndexes:Ha,TransactionInput:Xe,TransactionInputs:Ye,TransactionMetadatum:vt,TransactionMetadatumKind:uj,TransactionMetadatumLabels:Ri,TransactionOutput:Qt,TransactionOutputAmountBuilder:Wa,TransactionOutputBuilder:Pi,TransactionOutputs:Br,TransactionUnspentOutput:Te,TransactionUnspentOutputs:_r,TransactionWitnessSet:Ae,TransactionWitnessSetBuilder:Ka,TransactionWitnessSets:Ja,TreasuryWithdrawals:Qa,TreasuryWithdrawalsAction:Ga,UnitInterval:_t,UnregCert:H_,UnregCommitteeHotKeyCert:W_,UnregDrepCert:K_,Update:Xa,Url:ir,VRFCert:sr,VRFKeyHash:vn,VRFVKey:Ii,Value:Et,Vkey:Se,Vkeys:Go,Vkeywitness:Ln,Vkeywitnesses:Fi,Vote:Lr,VoteDelegCert:J_,VoteKind:lj,VoteRegDelegCert:Q_,Voter:kn,VoterKind:cj,VotingProcedure:Ya,VotingProcedures:G_,Withdrawals:Ur,apply_params_to_plutus_script:qp,decode_arbitrary_bytes_from_metadatum:Ib,decode_metadatum_to_json_str:Tb,decode_plutus_datum_to_json_str:Mb,decrypt_with_password:zb,encode_arbitrary_bytes_as_metadatum:Pb,encode_json_str_to_metadatum:Fb,encode_json_str_to_native_script:Vp,encode_json_str_to_plutus_datum:Ab,encrypt_with_password:Nb,get_deposit:Hb,get_implicit_input:$b,hash_auxiliary_data:Ub,hash_blake2b224:Vb,hash_blake2b256:Up,hash_plutus_data:Os,hash_script_data:qb,hash_transaction:da,instantiate:Cj,instantiateWithInstance:o0,isInstantiated:Oj,make_daedalus_bootstrap_witness:Bb,make_icarus_bootstrap_witness:Lb,make_vkey_witness:Es,min_ada_required:Wb,min_fee:Rb},Symbol.toStringTag,{value:"Module"}));let u;const Za=new Array(128).fill(void 0);Za.push(void 0,null,!0,!1);function c0(n){return Za[n]}let Yo=Za.length;function Rj(n){n<132||(Za[n]=Yo,Yo=n)}function yt(n){const t=c0(n);return Rj(n),t}const l0=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});l0.decode();let Zo=null;function Fs(){return(Zo===null||Zo.byteLength===0)&&(Zo=new Uint8Array(u.memory.buffer)),Zo}function Ts(n,t){return l0.decode(Fs().subarray(n,n+t))}function Pj(n){Yo===Za.length&&Za.push(Za.length+1);const t=Yo;return Yo=Za[t],Za[t]=n,t}function $p(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const a=n.description;return a==null?"Symbol":`Symbol(${a})`}if(t=="function"){const a=n.name;return typeof a=="string"&&a.length>0?`Function(${a})`:"Function"}if(Array.isArray(n)){const a=n.length;let i="[";a>0&&(i+=$p(n[0]));for(let o=1;o1)_=e[1];else return toString.call(n);if(_=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} +${n.stack}`:_}let tt=0;const d0=new TextEncoder("utf-8"),Ij=function(n,t){return d0.encodeInto(n,t)};function tc(n,t,e){if(e===void 0){const c=d0.encode(n),d=t(c.length);return Fs().subarray(d,d+c.length).set(c),tt=c.length,d}let _=n.length,a=t(_);const i=Fs();let o=0;for(;o<_;o++){const c=n.charCodeAt(o);if(c>127)break;i[a+o]=c}if(o!==_){o!==0&&(n=n.slice(o)),a=e(a,_,_=o+n.length*3);const c=Fs().subarray(a+o,a+_),d=Ij(n,c);o+=d.written}return tt=o,a}let ec=null;function j(){return(ec===null||ec.byteLength===0)&&(ec=new Int32Array(u.memory.buffer)),ec}function et(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`);return n.ptr}function ot(n,t){const e=t(n.length*1);return Fs().set(n,e/1),tt=n.length,e}function wt(n,t){return Fs().subarray(n/1,n/1+t)}let Jl=null;function Fj(){return(Jl===null||Jl.byteLength===0)&&(Jl=new Float64Array(u.memory.buffer)),Jl}function Ti(n){return n==null}const Ql=Object.freeze({EdDSA:0,0:"EdDSA",ChaCha20Poly1305:1,1:"ChaCha20Poly1305"}),u0=Object.freeze({OKP:0,0:"OKP",EC2:1,1:"EC2",Symmetric:2,2:"Symmetric"}),Tj=Object.freeze({CRV:0,0:"CRV",X:1,1:"X",Y:2,2:"Y",D:3,3:"D"}),Aj=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"}),Mj=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"}),Dj=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"}),Bj=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"}),Lj=Object.freeze({Int:0,0:"Int",Text:1,1:"Text"}),Uj=Object.freeze({COSESIGN:0,0:"COSESIGN",COSESIGN1:1,1:"COSESIGN1"}),Vj=Object.freeze({Signature:0,0:"Signature",Signature1:1,1:"Signature1",CounterSignature:2,2:"CounterSignature"}),p0=new FinalizationRegistry(n=>u.__wbg_bignum_free(n));class Vt{static __wrap(t){const e=Object.create(Vt.prototype);return e.ptr=t,p0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,p0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_bignum_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.bignum_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.bignum_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Vt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_str(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=tc(t,u.__wbindgen_malloc,u.__wbindgen_realloc),c=tt;u.bignum_from_str(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Vt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.bignum_to_str(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];return Ts(t,e)}finally{u.__wbindgen_add_to_stack_pointer(16),u.__wbindgen_free(t,e)}}checked_mul(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16);et(t,Vt),u.bignum_checked_mul(i,this.ptr,t.ptr);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Vt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}checked_add(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16);et(t,Vt),u.bignum_checked_add(i,this.ptr,t.ptr);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Vt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16);et(t,Vt),u.bignum_checked_sub(i,this.ptr,t.ptr);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Vt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}}const f0=new FinalizationRegistry(n=>u.__wbg_cborarray_free(n));class t_{static __wrap(t){const e=Object.create(t_.prototype);return e.ptr=t,f0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,f0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborarray_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborarray_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.cborarray_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return t_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.cborarray_new();return t_.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.cborarray_get(this.ptr,t);return St.__wrap(e)}add(t){et(t,St),u.cborarray_add(this.ptr,t.ptr)}set_definite_encoding(t){u.cborarray_set_definite_encoding(this.ptr,t)}is_definite(){return u.cborarray_is_definite(this.ptr)!==0}}const w0=new FinalizationRegistry(n=>u.__wbg_cborobject_free(n));class X_{static __wrap(t){const e=Object.create(X_.prototype);return e.ptr=t,w0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,w0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborobject_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborobject_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.cborobject_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return X_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.cborobject_new();return X_.__wrap(t)}len(){return u.cborobject_len(this.ptr)>>>0}insert(t,e){et(t,St),et(e,St);const _=u.cborobject_insert(this.ptr,t.ptr,e.ptr);return _===0?void 0:St.__wrap(_)}get(t){et(t,St);const e=u.cborobject_get(this.ptr,t.ptr);return e===0?void 0:St.__wrap(e)}keys(){const t=u.cborobject_keys(this.ptr);return t_.__wrap(t)}set_definite_encoding(t){u.cborobject_set_definite_encoding(this.ptr,t)}is_definite(){return u.cborobject_is_definite(this.ptr)!==0}}const g0=new FinalizationRegistry(n=>u.__wbg_cborspecial_free(n));class Un{static __wrap(t){const e=Object.create(Un.prototype);return e.ptr=t,g0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,g0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborspecial_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborspecial_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.cborspecial_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Un.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_bool(t){const e=u.cborspecial_new_bool(t);return Un.__wrap(e)}static new_unassigned(t){const e=u.cborspecial_new_unassigned(t);return Un.__wrap(e)}static new_break(){const t=u.cborspecial_new_break();return Un.__wrap(t)}static new_null(){const t=u.cborspecial_new_null();return Un.__wrap(t)}static new_undefined(){const t=u.cborspecial_new_undefined();return Un.__wrap(t)}kind(){return u.cborspecial_kind(this.ptr)>>>0}as_bool(){const t=u.cborspecial_as_bool(this.ptr);return t===16777215?void 0:t!==0}as_float(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cborspecial_as_float(_,this.ptr);var t=j()[_/4+0],e=Fj()[_/8+1];return t===0?void 0:e}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_unassigned(){const t=u.cborspecial_as_unassigned(this.ptr);return t===16777215?void 0:t}}const h0=new FinalizationRegistry(n=>u.__wbg_cborvalue_free(n));class St{static __wrap(t){const e=Object.create(St.prototype);return e.ptr=t,h0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,h0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborvalue_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.cborvalue_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return St.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_int(t){et(t,Ce);const e=u.cborvalue_new_int(t.ptr);return St.__wrap(e)}static new_bytes(t){const e=ot(t,u.__wbindgen_malloc),_=tt,a=u.cborvalue_new_bytes(e,_);return St.__wrap(a)}static new_text(t){const e=tc(t,u.__wbindgen_malloc,u.__wbindgen_realloc),_=tt,a=u.cborvalue_new_text(e,_);return St.__wrap(a)}static new_array(t){et(t,t_);const e=u.cborvalue_new_array(t.ptr);return St.__wrap(e)}static new_object(t){et(t,X_);const e=u.cborvalue_new_object(t.ptr);return St.__wrap(e)}static new_tagged(t){et(t,ei);const e=u.cborvalue_new_tagged(t.ptr);return St.__wrap(e)}static new_special(t){et(t,Un);const e=u.cborvalue_new_special(t.ptr);return St.__wrap(e)}static from_label(t){et(t,ht);const e=u.cborvalue_from_label(t.ptr);return St.__wrap(e)}kind(){return u.cborvalue_kind(this.ptr)>>>0}as_int(){const t=u.cborvalue_as_int(this.ptr);return t===0?void 0:Ce.__wrap(t)}as_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_as_bytes(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_text(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_as_text(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=Ts(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_array(){const t=u.cborvalue_as_array(this.ptr);return t===0?void 0:t_.__wrap(t)}as_object(){const t=u.cborvalue_as_object(this.ptr);return t===0?void 0:X_.__wrap(t)}as_tagged(){const t=u.cborvalue_as_tagged(this.ptr);return t===0?void 0:ei.__wrap(t)}as_special(){const t=u.cborvalue_as_special(this.ptr);return t===0?void 0:Un.__wrap(t)}}const b0=new FinalizationRegistry(n=>u.__wbg_coseencrypt_free(n));class Ai{static __wrap(t){const e=Object.create(Ai.prototype);return e.ptr=t,b0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,b0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coseencrypt_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.coseencrypt_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Ai.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Wt.__wrap(t)}ciphertext(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}recipients(){const t=u.coseencrypt_recipients(this.ptr);return Z_.__wrap(t)}static new(t,e,_){et(t,Wt);var a=Ti(e)?0:ot(e,u.__wbindgen_malloc),i=tt;et(_,Z_);const o=u.coseencrypt_new(t.ptr,a,i,_.ptr);return Ai.__wrap(o)}}const y0=new FinalizationRegistry(n=>u.__wbg_coseencrypt0_free(n));class Mi{static __wrap(t){const e=Object.create(Mi.prototype);return e.ptr=t,y0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,y0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coseencrypt0_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.coseencrypt0_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Mi.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Wt.__wrap(t)}ciphertext(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){et(t,Wt);var _=Ti(e)?0:ot(e,u.__wbindgen_malloc),a=tt;const i=u.coseencrypt0_new(t.ptr,_,a);return Mi.__wrap(i)}}const m0=new FinalizationRegistry(n=>u.__wbg_cosekey_free(n));class e_{static __wrap(t){const e=Object.create(e_.prototype);return e.ptr=t,m0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,m0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosekey_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.cosekey_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return e_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_key_type(t){et(t,ht),u.cosekey_set_key_type(this.ptr,t.ptr)}key_type(){const t=u.cosekey_key_type(this.ptr);return ht.__wrap(t)}set_key_id(t){const e=ot(t,u.__wbindgen_malloc),_=tt;u.cosekey_set_key_id(this.ptr,e,_)}key_id(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_key_id(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_algorithm_id(t){et(t,ht),u.cosekey_set_algorithm_id(this.ptr,t.ptr)}algorithm_id(){const t=u.cosekey_algorithm_id(this.ptr);return t===0?void 0:ht.__wrap(t)}set_key_ops(t){et(t,cr),u.cosekey_set_key_ops(this.ptr,t.ptr)}key_ops(){const t=u.cosekey_key_ops(this.ptr);return t===0?void 0:cr.__wrap(t)}set_base_init_vector(t){const e=ot(t,u.__wbindgen_malloc),_=tt;u.cosekey_set_base_init_vector(this.ptr,e,_)}base_init_vector(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_base_init_vector(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}header(t){et(t,ht);const e=u.cosekey_header(this.ptr,t.ptr);return e===0?void 0:St.__wrap(e)}set_header(t,e){try{const i=u.__wbindgen_add_to_stack_pointer(-16);et(t,ht),et(e,St),u.cosekey_set_header(i,this.ptr,t.ptr,e.ptr);var _=j()[i/4+0],a=j()[i/4+1];if(a)throw yt(_)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){et(t,ht);const e=u.cosekey_new(t.ptr);return e_.__wrap(e)}}const v0=new FinalizationRegistry(n=>u.__wbg_coserecipient_free(n));class Y_{static __wrap(t){const e=Object.create(Y_.prototype);return e.ptr=t,v0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,v0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coserecipient_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coserecipient_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.coserecipient_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Y_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Wt.__wrap(t)}ciphertext(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){et(t,Wt);var _=Ti(e)?0:ot(e,u.__wbindgen_malloc),a=tt;const i=u.coseencrypt0_new(t.ptr,_,a);return Y_.__wrap(i)}}const k0=new FinalizationRegistry(n=>u.__wbg_coserecipients_free(n));class Z_{static __wrap(t){const e=Object.create(Z_.prototype);return e.ptr=t,k0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,k0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coserecipients_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coserecipients_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.coserecipients_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Z_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return Z_.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.coserecipients_get(this.ptr,t);return Y_.__wrap(e)}add(t){et(t,Y_),u.coserecipients_add(this.ptr,t.ptr)}}const x0=new FinalizationRegistry(n=>u.__wbg_cosesign_free(n));class n_{static __wrap(t){const e=Object.create(n_.prototype);return e.ptr=t,x0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,x0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.cosesign_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return n_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Wt.__wrap(t)}payload(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}signatures(){const t=u.cosesign_signatures(this.ptr);return or.__wrap(t)}static new(t,e,_){et(t,Wt);var a=Ti(e)?0:ot(e,u.__wbindgen_malloc),i=tt;et(_,or);const o=u.cosesign_new(t.ptr,a,i,_.ptr);return n_.__wrap(o)}}const j0=new FinalizationRegistry(n=>u.__wbg_cosesign1_free(n));class Vr{static __wrap(t){const e=Object.create(Vr.prototype);return e.ptr=t,j0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,j0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign1_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign1_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.cosesign1_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Vr.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Wt.__wrap(t)}payload(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}signature(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign1_signature(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}signed_data(t,e){try{const h=u.__wbindgen_add_to_stack_pointer(-16);var _=Ti(t)?0:ot(t,u.__wbindgen_malloc),a=tt,i=Ti(e)?0:ot(e,u.__wbindgen_malloc),o=tt;u.cosesign1_signed_data(h,this.ptr,_,a,i,o);var c=j()[h/4+0],d=j()[h/4+1],f=j()[h/4+2];if(f)throw yt(d);return __.__wrap(c)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e,_){et(t,Wt);var a=Ti(e)?0:ot(e,u.__wbindgen_malloc),i=tt;const o=ot(_,u.__wbindgen_malloc),c=tt,d=u.cosesign1_new(t.ptr,a,i,o,c);return Vr.__wrap(d)}}const S0=new FinalizationRegistry(n=>u.__wbg_cosesign1builder_free(n));class As{static __wrap(t){const e=Object.create(As.prototype);return e.ptr=t,S0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,S0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign1builder_free(t)}static new(t,e,_){et(t,Wt);const a=ot(e,u.__wbindgen_malloc),i=tt,o=u.cosesign1builder_new(t.ptr,a,i,_);return As.__wrap(o)}hash_payload(){u.cosesign1builder_hash_payload(this.ptr)}set_external_aad(t){const e=ot(t,u.__wbindgen_malloc),_=tt;u.cosesign1builder_set_external_aad(this.ptr,e,_)}make_data_to_sign(){const t=u.cosesign1builder_make_data_to_sign(this.ptr);return __.__wrap(t)}build(t){const e=ot(t,u.__wbindgen_malloc),_=tt,a=u.cosesign1builder_build(this.ptr,e,_);return Vr.__wrap(a)}}const C0=new FinalizationRegistry(n=>u.__wbg_cosesignbuilder_free(n));class nc{static __wrap(t){const e=Object.create(nc.prototype);return e.ptr=t,C0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,C0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignbuilder_free(t)}static new(t,e,_){et(t,Wt);const a=ot(e,u.__wbindgen_malloc),i=tt,o=u.cosesignbuilder_new(t.ptr,a,i,_);return nc.__wrap(o)}hash_payload(){u.cosesign1builder_hash_payload(this.ptr)}set_external_aad(t){const e=ot(t,u.__wbindgen_malloc),_=tt;u.cosesign1builder_set_external_aad(this.ptr,e,_)}make_data_to_sign(){const t=u.cosesignbuilder_make_data_to_sign(this.ptr);return __.__wrap(t)}build(t){et(t,or);const e=u.cosesignbuilder_build(this.ptr,t.ptr);return n_.__wrap(e)}}const E0=new FinalizationRegistry(n=>u.__wbg_cosesignature_free(n));class r_{static __wrap(t){const e=Object.create(r_.prototype);return e.ptr=t,E0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,E0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignature_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignature_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.cosesignature_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return r_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Wt.__wrap(t)}signature(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignature_signature(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){et(t,Wt);const _=ot(e,u.__wbindgen_malloc),a=tt,i=u.cosesignature_new(t.ptr,_,a);return r_.__wrap(i)}}const O0=new FinalizationRegistry(n=>u.__wbg_cosesignatures_free(n));class or{static __wrap(t){const e=Object.create(or.prototype);return e.ptr=t,O0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,O0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignatures_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignatures_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.cosesignatures_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return or.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return or.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.cosesignatures_get(this.ptr,t);return r_.__wrap(e)}add(t){et(t,r_),u.cosesignatures_add(this.ptr,t.ptr)}}const N0=new FinalizationRegistry(n=>u.__wbg_countersignature_free(n));class a_{static __wrap(t){const e=Object.create(a_.prototype);return e.ptr=t,N0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,N0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_countersignature_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.countersignature_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.countersignature_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return a_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_single(t){et(t,r_);const e=u.countersignature_new_single(t.ptr);return a_.__wrap(e)}static new_multi(t){et(t,or);const e=u.countersignature_new_multi(t.ptr);return a_.__wrap(e)}signatures(){const t=u.countersignature_signatures(this.ptr);return or.__wrap(t)}}const z0=new FinalizationRegistry(n=>u.__wbg_eddsa25519key_free(n));class rc{static __wrap(t){const e=Object.create(rc.prototype);return e.ptr=t,z0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,z0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_eddsa25519key_free(t)}static new(t){const e=ot(t,u.__wbindgen_malloc),_=tt,a=u.eddsa25519key_new(e,_);return rc.__wrap(a)}set_private_key(t){const e=ot(t,u.__wbindgen_malloc),_=tt;u.eddsa25519key_set_private_key(this.ptr,e,_)}is_for_signing(){u.eddsa25519key_is_for_signing(this.ptr)}is_for_verifying(){u.eddsa25519key_is_for_verifying(this.ptr)}build(){const t=u.eddsa25519key_build(this.ptr);return e_.__wrap(t)}}const R0=new FinalizationRegistry(n=>u.__wbg_headermap_free(n));class Vn{static __wrap(t){const e=Object.create(Vn.prototype);return e.ptr=t,R0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,R0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_headermap_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.headermap_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Vn.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_algorithm_id(t){et(t,ht),u.headermap_set_algorithm_id(this.ptr,t.ptr)}algorithm_id(){const t=u.headermap_algorithm_id(this.ptr);return t===0?void 0:ht.__wrap(t)}set_criticality(t){et(t,cr),u.headermap_set_criticality(this.ptr,t.ptr)}criticality(){const t=u.headermap_criticality(this.ptr);return t===0?void 0:cr.__wrap(t)}set_content_type(t){et(t,ht),u.headermap_set_content_type(this.ptr,t.ptr)}content_type(){const t=u.headermap_content_type(this.ptr);return t===0?void 0:ht.__wrap(t)}set_key_id(t){const e=ot(t,u.__wbindgen_malloc),_=tt;u.headermap_set_key_id(this.ptr,e,_)}key_id(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_key_id(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_init_vector(t){const e=ot(t,u.__wbindgen_malloc),_=tt;u.cosekey_set_base_init_vector(this.ptr,e,_)}init_vector(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_base_init_vector(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_partial_init_vector(t){const e=ot(t,u.__wbindgen_malloc),_=tt;u.headermap_set_partial_init_vector(this.ptr,e,_)}partial_init_vector(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_partial_init_vector(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=wt(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_counter_signature(t){et(t,a_),u.headermap_set_counter_signature(this.ptr,t.ptr)}counter_signature(){const t=u.headermap_counter_signature(this.ptr);return t===0?void 0:a_.__wrap(t)}header(t){et(t,ht);const e=u.headermap_header(this.ptr,t.ptr);return e===0?void 0:St.__wrap(e)}set_header(t,e){try{const i=u.__wbindgen_add_to_stack_pointer(-16);et(t,ht),et(e,St),u.headermap_set_header(i,this.ptr,t.ptr,e.ptr);var _=j()[i/4+0],a=j()[i/4+1];if(a)throw yt(_)}finally{u.__wbindgen_add_to_stack_pointer(16)}}keys(){const t=u.headermap_keys(this.ptr);return cr.__wrap(t)}static new(){const t=u.headermap_new();return Vn.__wrap(t)}}const P0=new FinalizationRegistry(n=>u.__wbg_headers_free(n));class Wt{static __wrap(t){const e=Object.create(Wt.prototype);return e.ptr=t,P0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,P0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_headers_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.headers_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.headers_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Wt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}protected(){const t=u.headers_protected(this.ptr);return Ze.__wrap(t)}unprotected(){const t=u.headers_unprotected(this.ptr);return Vn.__wrap(t)}static new(t,e){et(t,Ze),et(e,Vn);const _=u.headers_new(t.ptr,e.ptr);return Wt.__wrap(_)}}const I0=new FinalizationRegistry(n=>u.__wbg_int_free(n));class Ce{static __wrap(t){const e=Object.create(Ce.prototype);return e.ptr=t,I0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,I0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_int_free(t)}static new(t){et(t,Vt);var e=t.__destroy_into_raw();const _=u.int_new(e);return Ce.__wrap(_)}static new_negative(t){et(t,Vt);var e=t.__destroy_into_raw();const _=u.int_new_negative(e);return Ce.__wrap(_)}static new_i32(t){const e=u.int_new_i32(t);return Ce.__wrap(e)}is_positive(){return u.int_is_positive(this.ptr)!==0}as_positive(){const t=u.int_as_positive(this.ptr);return t===0?void 0:Vt.__wrap(t)}as_negative(){const t=u.int_as_negative(this.ptr);return t===0?void 0:Vt.__wrap(t)}as_i32(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.int_as_i32(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];return t===0?void 0:e}finally{u.__wbindgen_add_to_stack_pointer(16)}}}const F0=new FinalizationRegistry(n=>u.__wbg_label_free(n));class ht{static __wrap(t){const e=Object.create(ht.prototype);return e.ptr=t,F0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,F0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_label_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.label_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.label_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return ht.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_int(t){et(t,Ce);const e=u.label_new_int(t.ptr);return ht.__wrap(e)}static new_text(t){const e=tc(t,u.__wbindgen_malloc,u.__wbindgen_realloc),_=tt,a=u.label_new_text(e,_);return ht.__wrap(a)}kind(){return u.label_kind(this.ptr)>>>0}as_int(){const t=u.label_as_int(this.ptr);return t===0?void 0:Ce.__wrap(t)}as_text(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.label_as_text(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];let a;return t!==0&&(a=Ts(t,e).slice(),u.__wbindgen_free(t,e*1)),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_algorithm_id(t){const e=u.label_from_algorithm_id(t);return ht.__wrap(e)}static from_key_type(t){const e=u.label_from_key_type(t);return ht.__wrap(e)}static from_ec_key(t){const e=u.label_from_ec_key(t);return ht.__wrap(e)}static from_curve_type(t){const e=u.label_from_curve_type(t);return ht.__wrap(e)}static from_key_operation(t){const e=u.label_from_key_operation(t);return ht.__wrap(e)}}const T0=new FinalizationRegistry(n=>u.__wbg_labels_free(n));class cr{static __wrap(t){const e=Object.create(cr.prototype);return e.ptr=t,T0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,T0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_labels_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.labels_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.labels_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return cr.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return cr.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.labels_get(this.ptr,t);return ht.__wrap(e)}add(t){et(t,ht),u.labels_add(this.ptr,t.ptr)}}const A0=new FinalizationRegistry(n=>u.__wbg_passwordencryption_free(n));class Ms{static __wrap(t){const e=Object.create(Ms.prototype);return e.ptr=t,A0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,A0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_passwordencryption_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.passwordencryption_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.passwordencryption_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Ms.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){et(t,Mi);const e=u.passwordencryption_new(t.ptr);return Ms.__wrap(e)}}const M0=new FinalizationRegistry(n=>u.__wbg_protectedheadermap_free(n));class Ze{static __wrap(t){const e=Object.create(Ze.prototype);return e.ptr=t,M0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,M0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_protectedheadermap_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.protectedheadermap_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.protectedheadermap_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Ze.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_empty(){const t=u.protectedheadermap_new_empty();return Ze.__wrap(t)}static new(t){et(t,Vn);const e=u.protectedheadermap_new(t.ptr);return Ze.__wrap(e)}deserialized_headers(){const t=u.protectedheadermap_deserialized_headers(this.ptr);return Vn.__wrap(t)}}const D0=new FinalizationRegistry(n=>u.__wbg_pubkeyencryption_free(n));class Ds{static __wrap(t){const e=Object.create(Ds.prototype);return e.ptr=t,D0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,D0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_pubkeyencryption_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.pubkeyencryption_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.pubkeyencryption_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return Ds.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){et(t,Ai);const e=u.pubkeyencryption_new(t.ptr);return Ds.__wrap(e)}}const B0=new FinalizationRegistry(n=>u.__wbg_sigstructure_free(n));class __{static __wrap(t){const e=Object.create(__.prototype);return e.ptr=t,B0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,B0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_sigstructure_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.sigstructure_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return __.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}context(){return u.sigstructure_context(this.ptr)>>>0}body_protected(){const t=u.sigstructure_body_protected(this.ptr);return Ze.__wrap(t)}sign_protected(){const t=u.sigstructure_sign_protected(this.ptr);return t===0?void 0:Ze.__wrap(t)}external_aad(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_external_aad(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}payload(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_payload(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_sign_protected(t){et(t,Ze),u.sigstructure_set_sign_protected(this.ptr,t.ptr)}static new(t,e,_,a){et(e,Ze);const i=ot(_,u.__wbindgen_malloc),o=tt,c=ot(a,u.__wbindgen_malloc),d=tt,f=u.sigstructure_new(t,e.ptr,i,o,c,d);return __.__wrap(f)}}const L0=new FinalizationRegistry(n=>u.__wbg_signedmessage_free(n));class ti{static __wrap(t){const e=Object.create(ti.prototype);return e.ptr=t,L0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,L0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_signedmessage_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.signedmessage_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.signedmessage_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return ti.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_cose_sign(t){et(t,n_);const e=u.signedmessage_new_cose_sign(t.ptr);return ti.__wrap(e)}static new_cose_sign1(t){et(t,Vr);const e=u.signedmessage_new_cose_sign1(t.ptr);return ti.__wrap(e)}static from_user_facing_encoding(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=tc(t,u.__wbindgen_malloc,u.__wbindgen_realloc),c=tt;u.signedmessage_from_user_facing_encoding(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return ti.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}to_user_facing_encoding(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.signedmessage_to_user_facing_encoding(_,this.ptr);var t=j()[_/4+0],e=j()[_/4+1];return Ts(t,e)}finally{u.__wbindgen_add_to_stack_pointer(16),u.__wbindgen_free(t,e)}}kind(){return u.signedmessage_kind(this.ptr)>>>0}as_cose_sign(){const t=u.signedmessage_as_cose_sign(this.ptr);return t===0?void 0:n_.__wrap(t)}as_cose_sign1(){const t=u.signedmessage_as_cose_sign1(this.ptr);return t===0?void 0:Vr.__wrap(t)}}const U0=new FinalizationRegistry(n=>u.__wbg_taggedcbor_free(n));class ei{static __wrap(t){const e=Object.create(ei.prototype);return e.ptr=t,U0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,U0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_taggedcbor_free(t)}to_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.taggedcbor_to_bytes(a,this.ptr);var t=j()[a/4+0],e=j()[a/4+1],_=wt(t,e).slice();return u.__wbindgen_free(t,e*1),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=ot(t,u.__wbindgen_malloc),c=tt;u.taggedcbor_from_bytes(i,o,c);var e=j()[i/4+0],_=j()[i/4+1],a=j()[i/4+2];if(a)throw yt(_);return ei.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}tag(){const t=u.taggedcbor_tag(this.ptr);return Vt.__wrap(t)}value(){const t=u.taggedcbor_value(this.ptr);return St.__wrap(t)}static new(t,e){et(t,Vt);var _=t.__destroy_into_raw();et(e,St);const a=u.taggedcbor_new(_,e.ptr);return ei.__wrap(a)}}const Gl={__wbindgen_placeholder__:{__wbindgen_object_drop_ref:function(n){yt(n)},__wbindgen_string_new:function(n,t){const e=Ts(n,t);return Pj(e)},__wbindgen_debug_string:function(n,t){const e=$p(c0(t)),_=tc(e,u.__wbindgen_malloc,u.__wbindgen_realloc),a=tt;j()[n/4+1]=a,j()[n/4+0]=_},__wbindgen_throw:function(n,t){throw new Error(Ts(n,t))}}};async function qj(n){return(await V0(n)).exports}let ac,Xl;function V0(n){return ac!=null?Promise.resolve(ac):(Xl==null&&(Xl=(async()=>{try{const t=(await Wj(n??{})).instance;return u=t.exports,ec=new Int32Array(u.memory.buffer),Zo=new Uint8Array(u.memory.buffer),ac={instance:t,exports:$j()},ac}finally{Xl=null}})()),Xl)}function $j(){return{BigNum:Vt,CBORArray:t_,CBORObject:X_,CBORSpecial:Un,CBORValue:St,COSEEncrypt:Ai,COSEEncrypt0:Mi,COSEKey:e_,COSERecipient:Y_,COSERecipients:Z_,COSESign:n_,COSESign1:Vr,COSESign1Builder:As,COSESignBuilder:nc,COSESignature:r_,COSESignatures:or,CounterSignature:a_,EdDSA25519Key:rc,HeaderMap:Vn,Headers:Wt,Int:Ce,Label:ht,Labels:cr,PasswordEncryption:Ms,ProtectedHeaderMap:Ze,PubKeyEncryption:Ds,SigStructure:__,SignedMessage:ti,TaggedCBOR:ei}}function Hj(){return ac!=null}async function Wj(n){var a,i,o;const t=import.meta.url.includes("_frsh")?n.url:new URL("/aiken-ide/assets/cardano_message_signing_bg-BCvojIzl.wasm",import.meta.url),e=n.decompress,_=t.protocol==="file:";if(((i=(a=globalThis.process)==null?void 0:a.versions)==null?void 0:i.node)!=null&&_){const c=fs.readFileSync(t);return WebAssembly.instantiate(e?e(c):c,Gl)}switch(t.protocol){case"":case"chrome-extension:":case"file:":case"https:":case"http:":{if(_){if(typeof Deno!="object")throw new Error("file urls are not supported in this environment");"permissions"in Deno&&await Deno.permissions.request({name:"read",path:t})}else typeof Deno=="object"&&"permissions"in Deno&&await Deno.permissions.request({name:"net",host:t.host});const c=await fetch(t);if(e){const d=new Uint8Array(await c.arrayBuffer());return WebAssembly.instantiate(e(d),Gl)}return _||(o=c.headers.get("content-type"))!=null&&o.toLowerCase().startsWith("application/wasm")?WebAssembly.instantiateStreaming(c,Gl):WebAssembly.instantiate(await c.arrayBuffer(),Gl)}default:throw new Error(`Unsupported protocol: ${t.protocol}`)}}const Kj=Object.freeze(Object.defineProperty({__proto__:null,AlgorithmId:Ql,BigNum:Vt,CBORArray:t_,CBORObject:X_,CBORSpecial:Un,CBORSpecialType:Dj,CBORValue:St,CBORValueKind:Bj,COSEEncrypt:Ai,COSEEncrypt0:Mi,COSEKey:e_,COSERecipient:Y_,COSERecipients:Z_,COSESign:n_,COSESign1:Vr,COSESign1Builder:As,COSESignBuilder:nc,COSESignature:r_,COSESignatures:or,CounterSignature:a_,CurveType:Aj,ECKey:Tj,EdDSA25519Key:rc,HeaderMap:Vn,Headers:Wt,Int:Ce,KeyOperation:Mj,KeyType:u0,Label:ht,LabelKind:Lj,Labels:cr,PasswordEncryption:Ms,ProtectedHeaderMap:Ze,PubKeyEncryption:Ds,SigContext:Vj,SigStructure:__,SignedMessage:ti,SignedMessageKind:Uj,TaggedCBOR:ei,instantiate:qj,instantiateWithInstance:V0,isInstantiated:Hj},Symbol.toStringTag,{value:"Module"}));Object.hasOwn||Object.defineProperty(Object,"hasOwn",{value:function(n,t){if(n==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(n),t)},configurable:!0,enumerable:!1,writable:!0});var Jj={name:"lucid-cardano",version:"0.10.7",license:"MIT",author:"Alessandro Konrad",description:"Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.",repository:"https://github.com/spacebudz/lucid"};async function q0(n,t){try{await n.instantiate({url:new URL(t,`https://deno.land/x/lucid@${Jj.version}/src/core/libs/`)})}catch{}}await Promise.all([q0(zj,"cardano_multiplatform_lib/cardano_multiplatform_lib_bg.wasm"),q0(Kj,"cardano_message_signing/cardano_message_signing_bg.wasm")]);function Qj(n){let t=nr.new(),e=fn.new();Object.values(n.PlutusV1).forEach((a,i)=>{e.set(i,_e.new(C.from_str(a.toString())))}),t.insert(Ke.new_plutus_v1(),e);let _=fn.new_plutus_v2();return Object.values(n.PlutusV2||[]).forEach((a,i)=>{_.set(i,_e.new(C.from_str(a.toString())))}),t.insert(Ke.new_plutus_v2(),_),t}var Gj={minFeeA:44,minFeeB:155381,maxTxSize:16384,maxValSize:5e3,keyDeposit:2000000n,poolDeposit:500000000n,priceMem:.0577,priceStep:721e-7,maxTxExMem:14000000n,maxTxExSteps:10000000000n,coinsPerUtxoByte:4310n,collateralPercentage:150,maxCollateralInputs:3,costModels:{PlutusV1:{"addInteger-cpu-arguments-intercept":205665,"addInteger-cpu-arguments-slope":812,"addInteger-memory-arguments-intercept":1,"addInteger-memory-arguments-slope":1,"appendByteString-cpu-arguments-intercept":1e3,"appendByteString-cpu-arguments-slope":571,"appendByteString-memory-arguments-intercept":0,"appendByteString-memory-arguments-slope":1,"appendString-cpu-arguments-intercept":1e3,"appendString-cpu-arguments-slope":24177,"appendString-memory-arguments-intercept":4,"appendString-memory-arguments-slope":1,"bData-cpu-arguments":1e3,"bData-memory-arguments":32,"blake2b_256-cpu-arguments-intercept":117366,"blake2b_256-cpu-arguments-slope":10475,"blake2b_256-memory-arguments":4,"cekApplyCost-exBudgetCPU":23e3,"cekApplyCost-exBudgetMemory":100,"cekBuiltinCost-exBudgetCPU":23e3,"cekBuiltinCost-exBudgetMemory":100,"cekConstCost-exBudgetCPU":23e3,"cekConstCost-exBudgetMemory":100,"cekDelayCost-exBudgetCPU":23e3,"cekDelayCost-exBudgetMemory":100,"cekForceCost-exBudgetCPU":23e3,"cekForceCost-exBudgetMemory":100,"cekLamCost-exBudgetCPU":23e3,"cekLamCost-exBudgetMemory":100,"cekStartupCost-exBudgetCPU":100,"cekStartupCost-exBudgetMemory":100,"cekVarCost-exBudgetCPU":23e3,"cekVarCost-exBudgetMemory":100,"chooseData-cpu-arguments":19537,"chooseData-memory-arguments":32,"chooseList-cpu-arguments":175354,"chooseList-memory-arguments":32,"chooseUnit-cpu-arguments":46417,"chooseUnit-memory-arguments":4,"consByteString-cpu-arguments-intercept":221973,"consByteString-cpu-arguments-slope":511,"consByteString-memory-arguments-intercept":0,"consByteString-memory-arguments-slope":1,"constrData-cpu-arguments":89141,"constrData-memory-arguments":32,"decodeUtf8-cpu-arguments-intercept":497525,"decodeUtf8-cpu-arguments-slope":14068,"decodeUtf8-memory-arguments-intercept":4,"decodeUtf8-memory-arguments-slope":2,"divideInteger-cpu-arguments-constant":196500,"divideInteger-cpu-arguments-model-arguments-intercept":453240,"divideInteger-cpu-arguments-model-arguments-slope":220,"divideInteger-memory-arguments-intercept":0,"divideInteger-memory-arguments-minimum":1,"divideInteger-memory-arguments-slope":1,"encodeUtf8-cpu-arguments-intercept":1e3,"encodeUtf8-cpu-arguments-slope":28662,"encodeUtf8-memory-arguments-intercept":4,"encodeUtf8-memory-arguments-slope":2,"equalsByteString-cpu-arguments-constant":245e3,"equalsByteString-cpu-arguments-intercept":216773,"equalsByteString-cpu-arguments-slope":62,"equalsByteString-memory-arguments":1,"equalsData-cpu-arguments-intercept":1060367,"equalsData-cpu-arguments-slope":12586,"equalsData-memory-arguments":1,"equalsInteger-cpu-arguments-intercept":208512,"equalsInteger-cpu-arguments-slope":421,"equalsInteger-memory-arguments":1,"equalsString-cpu-arguments-constant":187e3,"equalsString-cpu-arguments-intercept":1e3,"equalsString-cpu-arguments-slope":52998,"equalsString-memory-arguments":1,"fstPair-cpu-arguments":80436,"fstPair-memory-arguments":32,"headList-cpu-arguments":43249,"headList-memory-arguments":32,"iData-cpu-arguments":1e3,"iData-memory-arguments":32,"ifThenElse-cpu-arguments":80556,"ifThenElse-memory-arguments":1,"indexByteString-cpu-arguments":57667,"indexByteString-memory-arguments":4,"lengthOfByteString-cpu-arguments":1e3,"lengthOfByteString-memory-arguments":10,"lessThanByteString-cpu-arguments-intercept":197145,"lessThanByteString-cpu-arguments-slope":156,"lessThanByteString-memory-arguments":1,"lessThanEqualsByteString-cpu-arguments-intercept":197145,"lessThanEqualsByteString-cpu-arguments-slope":156,"lessThanEqualsByteString-memory-arguments":1,"lessThanEqualsInteger-cpu-arguments-intercept":204924,"lessThanEqualsInteger-cpu-arguments-slope":473,"lessThanEqualsInteger-memory-arguments":1,"lessThanInteger-cpu-arguments-intercept":208896,"lessThanInteger-cpu-arguments-slope":511,"lessThanInteger-memory-arguments":1,"listData-cpu-arguments":52467,"listData-memory-arguments":32,"mapData-cpu-arguments":64832,"mapData-memory-arguments":32,"mkCons-cpu-arguments":65493,"mkCons-memory-arguments":32,"mkNilData-cpu-arguments":22558,"mkNilData-memory-arguments":32,"mkNilPairData-cpu-arguments":16563,"mkNilPairData-memory-arguments":32,"mkPairData-cpu-arguments":76511,"mkPairData-memory-arguments":32,"modInteger-cpu-arguments-constant":196500,"modInteger-cpu-arguments-model-arguments-intercept":453240,"modInteger-cpu-arguments-model-arguments-slope":220,"modInteger-memory-arguments-intercept":0,"modInteger-memory-arguments-minimum":1,"modInteger-memory-arguments-slope":1,"multiplyInteger-cpu-arguments-intercept":69522,"multiplyInteger-cpu-arguments-slope":11687,"multiplyInteger-memory-arguments-intercept":0,"multiplyInteger-memory-arguments-slope":1,"nullList-cpu-arguments":60091,"nullList-memory-arguments":32,"quotientInteger-cpu-arguments-constant":196500,"quotientInteger-cpu-arguments-model-arguments-intercept":453240,"quotientInteger-cpu-arguments-model-arguments-slope":220,"quotientInteger-memory-arguments-intercept":0,"quotientInteger-memory-arguments-minimum":1,"quotientInteger-memory-arguments-slope":1,"remainderInteger-cpu-arguments-constant":196500,"remainderInteger-cpu-arguments-model-arguments-intercept":453240,"remainderInteger-cpu-arguments-model-arguments-slope":220,"remainderInteger-memory-arguments-intercept":0,"remainderInteger-memory-arguments-minimum":1,"remainderInteger-memory-arguments-slope":1,"sha2_256-cpu-arguments-intercept":806990,"sha2_256-cpu-arguments-slope":30482,"sha2_256-memory-arguments":4,"sha3_256-cpu-arguments-intercept":1927926,"sha3_256-cpu-arguments-slope":82523,"sha3_256-memory-arguments":4,"sliceByteString-cpu-arguments-intercept":265318,"sliceByteString-cpu-arguments-slope":0,"sliceByteString-memory-arguments-intercept":4,"sliceByteString-memory-arguments-slope":0,"sndPair-cpu-arguments":85931,"sndPair-memory-arguments":32,"subtractInteger-cpu-arguments-intercept":205665,"subtractInteger-cpu-arguments-slope":812,"subtractInteger-memory-arguments-intercept":1,"subtractInteger-memory-arguments-slope":1,"tailList-cpu-arguments":41182,"tailList-memory-arguments":32,"trace-cpu-arguments":212342,"trace-memory-arguments":32,"unBData-cpu-arguments":31220,"unBData-memory-arguments":32,"unConstrData-cpu-arguments":32696,"unConstrData-memory-arguments":32,"unIData-cpu-arguments":43357,"unIData-memory-arguments":32,"unListData-cpu-arguments":32247,"unListData-memory-arguments":32,"unMapData-cpu-arguments":38314,"unMapData-memory-arguments":32,"verifyEd25519Signature-cpu-arguments-intercept":9462713,"verifyEd25519Signature-cpu-arguments-slope":1021,"verifyEd25519Signature-memory-arguments":10},PlutusV2:{"addInteger-cpu-arguments-intercept":205665,"addInteger-cpu-arguments-slope":812,"addInteger-memory-arguments-intercept":1,"addInteger-memory-arguments-slope":1,"appendByteString-cpu-arguments-intercept":1e3,"appendByteString-cpu-arguments-slope":571,"appendByteString-memory-arguments-intercept":0,"appendByteString-memory-arguments-slope":1,"appendString-cpu-arguments-intercept":1e3,"appendString-cpu-arguments-slope":24177,"appendString-memory-arguments-intercept":4,"appendString-memory-arguments-slope":1,"bData-cpu-arguments":1e3,"bData-memory-arguments":32,"blake2b_256-cpu-arguments-intercept":117366,"blake2b_256-cpu-arguments-slope":10475,"blake2b_256-memory-arguments":4,"cekApplyCost-exBudgetCPU":23e3,"cekApplyCost-exBudgetMemory":100,"cekBuiltinCost-exBudgetCPU":23e3,"cekBuiltinCost-exBudgetMemory":100,"cekConstCost-exBudgetCPU":23e3,"cekConstCost-exBudgetMemory":100,"cekDelayCost-exBudgetCPU":23e3,"cekDelayCost-exBudgetMemory":100,"cekForceCost-exBudgetCPU":23e3,"cekForceCost-exBudgetMemory":100,"cekLamCost-exBudgetCPU":23e3,"cekLamCost-exBudgetMemory":100,"cekStartupCost-exBudgetCPU":100,"cekStartupCost-exBudgetMemory":100,"cekVarCost-exBudgetCPU":23e3,"cekVarCost-exBudgetMemory":100,"chooseData-cpu-arguments":19537,"chooseData-memory-arguments":32,"chooseList-cpu-arguments":175354,"chooseList-memory-arguments":32,"chooseUnit-cpu-arguments":46417,"chooseUnit-memory-arguments":4,"consByteString-cpu-arguments-intercept":221973,"consByteString-cpu-arguments-slope":511,"consByteString-memory-arguments-intercept":0,"consByteString-memory-arguments-slope":1,"constrData-cpu-arguments":89141,"constrData-memory-arguments":32,"decodeUtf8-cpu-arguments-intercept":497525,"decodeUtf8-cpu-arguments-slope":14068,"decodeUtf8-memory-arguments-intercept":4,"decodeUtf8-memory-arguments-slope":2,"divideInteger-cpu-arguments-constant":196500,"divideInteger-cpu-arguments-model-arguments-intercept":453240,"divideInteger-cpu-arguments-model-arguments-slope":220,"divideInteger-memory-arguments-intercept":0,"divideInteger-memory-arguments-minimum":1,"divideInteger-memory-arguments-slope":1,"encodeUtf8-cpu-arguments-intercept":1e3,"encodeUtf8-cpu-arguments-slope":28662,"encodeUtf8-memory-arguments-intercept":4,"encodeUtf8-memory-arguments-slope":2,"equalsByteString-cpu-arguments-constant":245e3,"equalsByteString-cpu-arguments-intercept":216773,"equalsByteString-cpu-arguments-slope":62,"equalsByteString-memory-arguments":1,"equalsData-cpu-arguments-intercept":1060367,"equalsData-cpu-arguments-slope":12586,"equalsData-memory-arguments":1,"equalsInteger-cpu-arguments-intercept":208512,"equalsInteger-cpu-arguments-slope":421,"equalsInteger-memory-arguments":1,"equalsString-cpu-arguments-constant":187e3,"equalsString-cpu-arguments-intercept":1e3,"equalsString-cpu-arguments-slope":52998,"equalsString-memory-arguments":1,"fstPair-cpu-arguments":80436,"fstPair-memory-arguments":32,"headList-cpu-arguments":43249,"headList-memory-arguments":32,"iData-cpu-arguments":1e3,"iData-memory-arguments":32,"ifThenElse-cpu-arguments":80556,"ifThenElse-memory-arguments":1,"indexByteString-cpu-arguments":57667,"indexByteString-memory-arguments":4,"lengthOfByteString-cpu-arguments":1e3,"lengthOfByteString-memory-arguments":10,"lessThanByteString-cpu-arguments-intercept":197145,"lessThanByteString-cpu-arguments-slope":156,"lessThanByteString-memory-arguments":1,"lessThanEqualsByteString-cpu-arguments-intercept":197145,"lessThanEqualsByteString-cpu-arguments-slope":156,"lessThanEqualsByteString-memory-arguments":1,"lessThanEqualsInteger-cpu-arguments-intercept":204924,"lessThanEqualsInteger-cpu-arguments-slope":473,"lessThanEqualsInteger-memory-arguments":1,"lessThanInteger-cpu-arguments-intercept":208896,"lessThanInteger-cpu-arguments-slope":511,"lessThanInteger-memory-arguments":1,"listData-cpu-arguments":52467,"listData-memory-arguments":32,"mapData-cpu-arguments":64832,"mapData-memory-arguments":32,"mkCons-cpu-arguments":65493,"mkCons-memory-arguments":32,"mkNilData-cpu-arguments":22558,"mkNilData-memory-arguments":32,"mkNilPairData-cpu-arguments":16563,"mkNilPairData-memory-arguments":32,"mkPairData-cpu-arguments":76511,"mkPairData-memory-arguments":32,"modInteger-cpu-arguments-constant":196500,"modInteger-cpu-arguments-model-arguments-intercept":453240,"modInteger-cpu-arguments-model-arguments-slope":220,"modInteger-memory-arguments-intercept":0,"modInteger-memory-arguments-minimum":1,"modInteger-memory-arguments-slope":1,"multiplyInteger-cpu-arguments-intercept":69522,"multiplyInteger-cpu-arguments-slope":11687,"multiplyInteger-memory-arguments-intercept":0,"multiplyInteger-memory-arguments-slope":1,"nullList-cpu-arguments":60091,"nullList-memory-arguments":32,"quotientInteger-cpu-arguments-constant":196500,"quotientInteger-cpu-arguments-model-arguments-intercept":453240,"quotientInteger-cpu-arguments-model-arguments-slope":220,"quotientInteger-memory-arguments-intercept":0,"quotientInteger-memory-arguments-minimum":1,"quotientInteger-memory-arguments-slope":1,"remainderInteger-cpu-arguments-constant":196500,"remainderInteger-cpu-arguments-model-arguments-intercept":453240,"remainderInteger-cpu-arguments-model-arguments-slope":220,"remainderInteger-memory-arguments-intercept":0,"remainderInteger-memory-arguments-minimum":1,"remainderInteger-memory-arguments-slope":1,"serialiseData-cpu-arguments-intercept":1159724,"serialiseData-cpu-arguments-slope":392670,"serialiseData-memory-arguments-intercept":0,"serialiseData-memory-arguments-slope":2,"sha2_256-cpu-arguments-intercept":806990,"sha2_256-cpu-arguments-slope":30482,"sha2_256-memory-arguments":4,"sha3_256-cpu-arguments-intercept":1927926,"sha3_256-cpu-arguments-slope":82523,"sha3_256-memory-arguments":4,"sliceByteString-cpu-arguments-intercept":265318,"sliceByteString-cpu-arguments-slope":0,"sliceByteString-memory-arguments-intercept":4,"sliceByteString-memory-arguments-slope":0,"sndPair-cpu-arguments":85931,"sndPair-memory-arguments":32,"subtractInteger-cpu-arguments-intercept":205665,"subtractInteger-cpu-arguments-slope":812,"subtractInteger-memory-arguments-intercept":1,"subtractInteger-memory-arguments-slope":1,"tailList-cpu-arguments":41182,"tailList-memory-arguments":32,"trace-cpu-arguments":212342,"trace-memory-arguments":32,"unBData-cpu-arguments":31220,"unBData-memory-arguments":32,"unConstrData-cpu-arguments":32696,"unConstrData-memory-arguments":32,"unIData-cpu-arguments":43357,"unIData-memory-arguments":32,"unListData-cpu-arguments":32247,"unListData-memory-arguments":32,"unMapData-cpu-arguments":38314,"unMapData-memory-arguments":32,"verifyEcdsaSecp256k1Signature-cpu-arguments":35892428,"verifyEcdsaSecp256k1Signature-memory-arguments":10,"verifyEd25519Signature-cpu-arguments-intercept":57996947,"verifyEd25519Signature-cpu-arguments-slope":18975,"verifyEd25519Signature-memory-arguments":10,"verifySchnorrSecp256k1Signature-cpu-arguments-intercept":38887044,"verifySchnorrSecp256k1Signature-cpu-arguments-slope":32947,"verifySchnorrSecp256k1Signature-memory-arguments":10}}},$0=new TextEncoder().encode("0123456789abcdef");function Xj(n){return new Error("encoding/hex: invalid byte: "+new TextDecoder().decode(new Uint8Array([n])))}function Yj(){return new Error("encoding/hex: odd length hex string")}function Hp(n){if(48<=n&&n<=57)return n-48;if(97<=n&&n<=102)return n-97+10;if(65<=n&&n<=70)return n-65+10;throw Xj(n)}function Zj(n){return n*2}function t3(n){let t=new Uint8Array(Zj(n.length));for(let e=0;e>4],t[e*2+1]=$0[_&15]}return t}function e3(n){return new TextDecoder().decode(t3(n))}function n3(n){let t=new Uint8Array(r3(n.length));for(let e=0;e>>1}function a3(n){return n3(new TextEncoder().encode(n))}var ct=function(n,t,e,_,a){if(_==="m")throw new TypeError("Private method is not writable");if(_==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!a:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return _==="a"?a.call(n,e):a?a.value=e:t.set(n,e),e},K=function(n,t,e,_){if(e==="a"&&!_)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!_:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?_:e==="a"?_.call(n):_?_.value:t.get(n)},ni,Di,lr,Bs,_c,qr,$r,Hr,Wr,Kr,Jr,Qr,Gr,Bi,Ls,ri,Yl,ai,G="0123456789abcdef".split(""),_3=[-2147483648,8388608,32768,128],dr=[24,16,8,0],Zl=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],oe=[],i3=class{constructor(n=!1,t=!1){ni.set(this,void 0),Di.set(this,void 0),lr.set(this,void 0),Bs.set(this,void 0),_c.set(this,void 0),qr.set(this,void 0),$r.set(this,void 0),Hr.set(this,void 0),Wr.set(this,void 0),Kr.set(this,void 0),Jr.set(this,void 0),Qr.set(this,void 0),Gr.set(this,void 0),Bi.set(this,void 0),Ls.set(this,void 0),ri.set(this,void 0),Yl.set(this,0),ai.set(this,void 0),this.init(n,t)}init(n,t){t?(oe[0]=oe[16]=oe[1]=oe[2]=oe[3]=oe[4]=oe[5]=oe[6]=oe[7]=oe[8]=oe[9]=oe[10]=oe[11]=oe[12]=oe[13]=oe[14]=oe[15]=0,ct(this,Di,oe,"f")):ct(this,Di,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"f"),n?(ct(this,qr,3238371032,"f"),ct(this,$r,914150663,"f"),ct(this,Hr,812702999,"f"),ct(this,Wr,4144912697,"f"),ct(this,Kr,4290775857,"f"),ct(this,Jr,1750603025,"f"),ct(this,Qr,1694076839,"f"),ct(this,Gr,3204075428,"f")):(ct(this,qr,1779033703,"f"),ct(this,$r,3144134277,"f"),ct(this,Hr,1013904242,"f"),ct(this,Wr,2773480762,"f"),ct(this,Kr,1359893119,"f"),ct(this,Jr,2600822924,"f"),ct(this,Qr,528734635,"f"),ct(this,Gr,1541459225,"f")),ct(this,ni,ct(this,ai,ct(this,lr,ct(this,Ls,0,"f"),"f"),"f"),"f"),ct(this,Bs,ct(this,Bi,!1,"f"),"f"),ct(this,_c,!0,"f"),ct(this,ri,n,"f")}update(n){if(K(this,Bs,"f"))return this;let t;n instanceof ArrayBuffer?t=new Uint8Array(n):t=n;let e=0,_=t.length,a=K(this,Di,"f");for(;e<_;){let i;if(K(this,Bi,"f")&&(ct(this,Bi,!1,"f"),a[0]=K(this,ni,"f"),a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),typeof t!="string")for(i=K(this,ai,"f");e<_&&i<64;++e)a[i>>2]|=t[e]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|o&63)<=57344?(a[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|o&63)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|o&63)<=64?(ct(this,ni,a[16],"f"),ct(this,ai,i-64,"f"),this.hash(),ct(this,Bi,!0,"f")):ct(this,ai,i,"f")}return K(this,lr,"f")>4294967295&&(ct(this,Ls,K(this,Ls,"f")+(K(this,lr,"f")/4294967296<<0),"f"),ct(this,lr,K(this,lr,"f")%4294967296,"f")),this}finalize(){if(K(this,Bs,"f"))return;ct(this,Bs,!0,"f");let n=K(this,Di,"f"),t=K(this,Yl,"f");n[16]=K(this,ni,"f"),n[t>>2]|=_3[t&3],ct(this,ni,n[16],"f"),t>=56&&(K(this,Bi,"f")||this.hash(),n[0]=K(this,ni,"f"),n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0),n[14]=K(this,Ls,"f")<<3|K(this,lr,"f")>>>29,n[15]=K(this,lr,"f")<<3,this.hash()}hash(){let n=K(this,qr,"f"),t=K(this,$r,"f"),e=K(this,Hr,"f"),_=K(this,Wr,"f"),a=K(this,Kr,"f"),i=K(this,Jr,"f"),o=K(this,Qr,"f"),c=K(this,Gr,"f"),d=K(this,Di,"f"),f,h,v,y,x,O,z,D,m,b;for(let g=16;g<64;++g)y=d[g-15],f=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3,y=d[g-2],h=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,d[g]=d[g-16]+f+d[g-7]+h<<0;b=t&e;for(let g=0;g<64;g+=4)K(this,_c,"f")?(K(this,ri,"f")?(z=300032,y=d[0]-1413257819,c=y-150054599<<0,_=y+24177077<<0):(z=704751109,y=d[0]-210244248,c=y-1521486534<<0,_=y+143694565<<0),ct(this,_c,!1,"f")):(f=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),h=(a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7),z=n&t,v=z^n&e^b,O=a&i^~a&o,y=c+h+O+Zl[g]+d[g],x=f+v,c=_+y<<0,_=y+x<<0),f=(_>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10),h=(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7),D=_&n,v=D^_&t^z,O=c&a^~c&i,y=o+h+O+Zl[g+1]+d[g+1],x=f+v,o=e+y<<0,e=y+x<<0,f=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),h=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),m=e&_,v=m^e&n^D,O=o&c^~o&a,y=i+h+O+Zl[g+2]+d[g+2],x=f+v,i=t+y<<0,t=y+x<<0,f=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),h=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),b=t&e,v=b^t&_^m,O=i&o^~i&c,y=a+h+O+Zl[g+3]+d[g+3],x=f+v,a=n+y<<0,n=y+x<<0;ct(this,qr,K(this,qr,"f")+n<<0,"f"),ct(this,$r,K(this,$r,"f")+t<<0,"f"),ct(this,Hr,K(this,Hr,"f")+e<<0,"f"),ct(this,Wr,K(this,Wr,"f")+_<<0,"f"),ct(this,Kr,K(this,Kr,"f")+a<<0,"f"),ct(this,Jr,K(this,Jr,"f")+i<<0,"f"),ct(this,Qr,K(this,Qr,"f")+o<<0,"f"),ct(this,Gr,K(this,Gr,"f")+c<<0,"f")}hex(){this.finalize();let n=K(this,qr,"f"),t=K(this,$r,"f"),e=K(this,Hr,"f"),_=K(this,Wr,"f"),a=K(this,Kr,"f"),i=K(this,Jr,"f"),o=K(this,Qr,"f"),c=K(this,Gr,"f"),d=G[n>>28&15]+G[n>>24&15]+G[n>>20&15]+G[n>>16&15]+G[n>>12&15]+G[n>>8&15]+G[n>>4&15]+G[n&15]+G[t>>28&15]+G[t>>24&15]+G[t>>20&15]+G[t>>16&15]+G[t>>12&15]+G[t>>8&15]+G[t>>4&15]+G[t&15]+G[e>>28&15]+G[e>>24&15]+G[e>>20&15]+G[e>>16&15]+G[e>>12&15]+G[e>>8&15]+G[e>>4&15]+G[e&15]+G[_>>28&15]+G[_>>24&15]+G[_>>20&15]+G[_>>16&15]+G[_>>12&15]+G[_>>8&15]+G[_>>4&15]+G[_&15]+G[a>>28&15]+G[a>>24&15]+G[a>>20&15]+G[a>>16&15]+G[a>>12&15]+G[a>>8&15]+G[a>>4&15]+G[a&15]+G[i>>28&15]+G[i>>24&15]+G[i>>20&15]+G[i>>16&15]+G[i>>12&15]+G[i>>8&15]+G[i>>4&15]+G[i&15]+G[o>>28&15]+G[o>>24&15]+G[o>>20&15]+G[o>>16&15]+G[o>>12&15]+G[o>>8&15]+G[o>>4&15]+G[o&15];return K(this,ri,"f")||(d+=G[c>>28&15]+G[c>>24&15]+G[c>>20&15]+G[c>>16&15]+G[c>>12&15]+G[c>>8&15]+G[c>>4&15]+G[c&15]),d}toString(){return this.hex()}digest(){this.finalize();let n=K(this,qr,"f"),t=K(this,$r,"f"),e=K(this,Hr,"f"),_=K(this,Wr,"f"),a=K(this,Kr,"f"),i=K(this,Jr,"f"),o=K(this,Qr,"f"),c=K(this,Gr,"f"),d=[n>>24&255,n>>16&255,n>>8&255,n&255,t>>24&255,t>>16&255,t>>8&255,t&255,e>>24&255,e>>16&255,e>>8&255,e&255,_>>24&255,_>>16&255,_>>8&255,_&255,a>>24&255,a>>16&255,a>>8&255,a&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return K(this,ri,"f")||d.push(c>>24&255,c>>16&255,c>>8&255,c&255),d}array(){return this.digest()}arrayBuffer(){this.finalize();let n=new ArrayBuffer(K(this,ri,"f")?28:32),t=new DataView(n);return t.setUint32(0,K(this,qr,"f")),t.setUint32(4,K(this,$r,"f")),t.setUint32(8,K(this,Hr,"f")),t.setUint32(12,K(this,Wr,"f")),t.setUint32(16,K(this,Kr,"f")),t.setUint32(20,K(this,Jr,"f")),t.setUint32(24,K(this,Qr,"f")),K(this,ri,"f")||t.setUint32(28,K(this,Gr,"f")),n}};ni=new WeakMap,Di=new WeakMap,lr=new WeakMap,Bs=new WeakMap,_c=new WeakMap,qr=new WeakMap,$r=new WeakMap,Hr=new WeakMap,Wr=new WeakMap,Kr=new WeakMap,Jr=new WeakMap,Qr=new WeakMap,Gr=new WeakMap,Bi=new WeakMap,Ls=new WeakMap,ri=new WeakMap,Yl=new WeakMap,ai=new WeakMap;var H0="Invalid mnemonic",Li="Invalid entropy",s3="Invalid mnemonic checksum",W0=`A wordlist is required but a default could not be found. +Please pass a 2048 word array explicitly.`;function o3(n,t){if(t=t||X0,!t)throw new Error(W0);let e=u3(n).split(" ");if(e.length%3!==0)throw new Error(H0);let _=e.map(f=>{let h=t.indexOf(f);if(h===-1)throw new Error(H0);return J0(h.toString(2),"0",11)}).join(""),a=Math.floor(_.length/33)*32,i=_.slice(0,a),o=_.slice(a),c=i.match(/(.{1,8})/g).map(G0);if(c.length<16)throw new Error(Li);if(c.length>32)throw new Error(Li);if(c.length%4!==0)throw new Error(Li);let d=new Uint8Array(c);if(K0(d)!==o)throw new Error(s3);return it(d)}function c3(n){let t=new Uint8Array(n);if(n>4294967295)throw new RangeError("requested too many random bytes");if(n>0)if(n>65536)for(let e=0;e32)throw new TypeError(Li);if(n.length%4!==0)throw new TypeError(Li);let e=Q0(Array.from(n)),_=K0(n),a=(e+_).match(/(.{1,11})/g).map(i=>{let o=G0(i);return t[o]});return t[0]==="\u3042\u3044\u3053\u304F\u3057\u3093"?a.join("\u3000"):a.join(" ")}function K0(n){let t=n.length*8/32,e=new i3().update(n).digest();return Q0(Array.from(e)).slice(0,t)}function J0(n,t,e){for(;n.lengthJ0(t.toString(2),"0",8)).join("")}function u3(n){return(n||"").normalize("NFKD")}function G0(n){return parseInt(n,2)}var X0=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"],Wp=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];typeof Int32Array<"u"&&(Wp=new Int32Array(Wp));function p3(n,t=0){let e=~~t;for(let _=0;_isNaN(_)).map(_=>n[_]).map(_=>typeof _=="string"?{[dt]:"Literal",type:"string",const:_}:{[dt]:"Literal",type:"number",const:_});return this.Create({...t,[dt]:"Union",[Ui]:"Enum",anyOf:e})}Function(n,t,e={}){if(n[dt]==="Tuple"){let _=n.items===void 0?[]:n.items;return this.Create({...e,[dt]:"Function",type:"object",instanceOf:"Function",parameters:_,returns:t})}else{if(globalThis.Array.isArray(n))return this.Create({...e,[dt]:"Function",type:"object",instanceOf:"Function",parameters:n,returns:t});throw new Error("TypeBuilder.Function: Invalid parameters")}}InstanceType(n,t={}){return{...t,...this.Clone(n.returns)}}Integer(n={}){return this.Create({...n,[dt]:"Integer",type:"integer"})}Intersect(n,t={}){let e=o=>o[ge]&&o[ge]==="Optional"||o[ge]==="ReadonlyOptional",[_,a]=[new Set,new Set];for(let o of n)for(let[c,d]of Object.entries(o.properties))e(d)&&a.add(c);for(let o of n)for(let c of Object.keys(o.properties))a.has(c)||_.add(c);let i={};for(let o of n)for(let[c,d]of Object.entries(o.properties))i[c]=i[c]===void 0?d:{[dt]:"Union",anyOf:[i[c],{...d}]};return _.size>0?this.Create({...t,[dt]:"Object",type:"object",properties:i,required:[..._]}):this.Create({...t,[dt]:"Object",type:"object",properties:i})}KeyOf(n,t={}){let e=Object.keys(n.properties).map(_=>this.Create({...t,[dt]:"Literal",type:"string",const:_}));return this.Create({...t,[dt]:"Union",[Ui]:"KeyOf",anyOf:e})}Literal(n,t={}){return this.Create({...t,[dt]:"Literal",const:n,type:typeof n})}Never(n={}){return this.Create({...n,[dt]:"Never",allOf:[{type:"boolean",const:!1},{type:"boolean",const:!0}]})}Null(n={}){return this.Create({...n,[dt]:"Null",type:"null"})}Number(n={}){return this.Create({...n,[dt]:"Number",type:"number"})}Object(n,t={}){let e=Object.keys(n),_=e.filter(i=>{let o=n[i][ge];return o&&(o==="Optional"||o==="ReadonlyOptional")}),a=e.filter(i=>!_.includes(i));return a.length>0?this.Create({...t,[dt]:"Object",type:"object",properties:n,required:a}):this.Create({...t,[dt]:"Object",type:"object",properties:n})}Omit(n,t,e={}){let _=t[dt]==="Union"?t.anyOf.map(i=>i.const):t,a={...this.Clone(n),...e,[Ui]:"Omit"};a.required&&(a.required=a.required.filter(i=>!_.includes(i)),a.required.length===0&&delete a.required);for(let i of Object.keys(a.properties))_.includes(i)&&delete a.properties[i];return this.Create(a)}Parameters(n,t={}){return xn.Tuple(n.parameters,{...t})}Partial(n,t={}){let e={...this.Clone(n),...t,[Ui]:"Partial"};delete e.required;for(let _ of Object.keys(e.properties)){let a=e.properties[_];switch(a[ge]){case"ReadonlyOptional":a[ge]="ReadonlyOptional";break;case"Readonly":a[ge]="ReadonlyOptional";break;case"Optional":a[ge]="Optional";break;default:a[ge]="Optional";break}}return this.Create(e)}Pick(n,t,e={}){let _=t[dt]==="Union"?t.anyOf.map(i=>i.const):t,a={...this.Clone(n),...e,[Ui]:"Pick"};a.required&&(a.required=a.required.filter(i=>_.includes(i)),a.required.length===0&&delete a.required);for(let i of Object.keys(a.properties))_.includes(i)||delete a.properties[i];return this.Create(a)}Promise(n,t={}){return this.Create({...t,[dt]:"Promise",type:"object",instanceOf:"Promise",item:n})}Record(n,t,e={}){if(n[dt]==="Union")return this.Object(n.anyOf.reduce((a,i)=>({...a,[i.const]:t}),{}),{...e,[Ui]:"Record"});let _=["Integer","Number"].includes(n[dt])?"^(0|[1-9][0-9]*)$":n[dt]==="String"&&n.pattern?n.pattern:"^.*$";return this.Create({...e,[dt]:"Record",type:"object",patternProperties:{[_]:t},additionalProperties:!1})}Recursive(n,t={}){t.$id===void 0&&(t.$id=`T${g3++}`);let e=n({[dt]:"Self",$ref:`${t.$id}`});return e.$id=t.$id,this.Create({...t,...e})}Ref(n,t={}){if(n.$id===void 0)throw Error("TypeBuilder.Ref: Referenced schema must specify an $id");return this.Create({...t,[dt]:"Ref",$ref:n.$id})}RegEx(n,t={}){return this.Create({...t,[dt]:"String",type:"string",pattern:n.source})}Required(n,t={}){let e={...this.Clone(n),...t,[Ui]:"Required"};e.required=Object.keys(e.properties);for(let _ of Object.keys(e.properties)){let a=e.properties[_];switch(a[ge]){case"ReadonlyOptional":a[ge]="Readonly";break;case"Readonly":a[ge]="Readonly";break;case"Optional":delete a[ge];break;default:delete a[ge];break}}return this.Create(e)}ReturnType(n,t={}){return{...t,...this.Clone(n.returns)}}Strict(n){return JSON.parse(JSON.stringify(n))}String(n={}){return this.Create({...n,[dt]:"String",type:"string"})}Tuple(n,t={}){let e=n.length,_=n.length,a=n.length>0?{...t,[dt]:"Tuple",type:"array",items:n,additionalItems:!1,minItems:e,maxItems:_}:{...t,[dt]:"Tuple",type:"array",minItems:e,maxItems:_};return this.Create(a)}Undefined(n={}){return this.Create({...n,[dt]:"Undefined",type:"null",typeOf:"Undefined"})}Union(n,t={}){return n.length===0?xn.Never({...t}):this.Create({...t,[dt]:"Union",anyOf:n})}Uint8Array(n={}){return this.Create({...n,[dt]:"Uint8Array",type:"object",instanceOf:"Uint8Array"})}Unknown(n={}){return this.Create({...n,[dt]:"Unknown"})}Unsafe(n={}){return this.Create({...n,[dt]:n[dt]||"Unsafe"})}Void(n={}){return this.Create({...n,[dt]:"Void",type:"null",typeOf:"Void"})}Create(n){return n}Clone(n){let t=_=>typeof _=="object"&&_!==null&&!Array.isArray(_),e=_=>typeof _=="object"&&_!==null&&Array.isArray(_);return t(n)?Object.keys(n).reduce((_,a)=>({..._,[a]:this.Clone(n[a])}),Object.getOwnPropertySymbols(n).reduce((_,a)=>({..._,[a]:this.Clone(n[a])}),{})):e(n)?n.map(_=>this.Clone(_)):n}},xn=new h3,Me=class{constructor(n,t){Object.defineProperty(this,"index",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.index=n,this.fields=t}},Us={Integer:function(n){let t=xn.Unsafe({dataType:"integer"});return n&&Object.entries(n).forEach(([e,_])=>{t[e]=_}),t},Bytes:function(n){let t=xn.Unsafe({dataType:"bytes"});return n&&Object.entries(n).forEach(([e,_])=>{t[e]=_}),t},Boolean:function(){return xn.Unsafe({anyOf:[{title:"False",dataType:"constructor",index:0,fields:[]},{title:"True",dataType:"constructor",index:1,fields:[]}]})},Any:function(){return xn.Unsafe({description:"Any Data."})},Array:function(n,t){let e=xn.Array(n);return ic(e,{dataType:"list",items:n}),t&&Object.entries(t).forEach(([_,a])=>{e[_]=a}),e},Map:function(n,t,e){let _=xn.Unsafe({dataType:"map",keys:n,values:t});return e&&Object.entries(e).forEach(([a,i])=>{_[a]=i}),_},Object:function(n,t){let e=xn.Object(n);return ic(e,{anyOf:[{dataType:"constructor",index:0,fields:Object.entries(n).map(([_,a])=>({...a,title:_}))}]}),e.anyOf[0].hasConstr=typeof(t==null?void 0:t.hasConstr)>"u"||t.hasConstr,e},Enum:function(n){let t=xn.Union(n);return ic(t,{anyOf:n.map((e,_)=>e.anyOf[0].fields.length===0?{...e.anyOf[0],index:_}:{dataType:"constructor",title:(()=>{let a=e.anyOf[0].fields[0].title;if(a.charAt(0)!==a.charAt(0).toUpperCase())throw new Error(`Enum '${a}' needs to start with an uppercase letter.`);return e.anyOf[0].fields[0].title})(),index:_,fields:e.anyOf[0].fields[0].items||e.anyOf[0].fields[0].anyOf[0].fields})}),t},Tuple:function(n,t){let e=xn.Tuple(n);return ic(e,{dataType:"list",items:n}),t&&Object.entries(t).forEach(([_,a])=>{e[_]=a}),e},Literal:function(n){if(n.charAt(0)!==n.charAt(0).toUpperCase())throw new Error(`Enum '${n}' needs to start with an uppercase letter.`);let t=xn.Literal(n);return ic(t,{anyOf:[{dataType:"constructor",title:n,index:0,fields:[]}]}),t},Nullable:function(n){return xn.Unsafe({anyOf:[{title:"Some",description:"An optional value.",dataType:"constructor",index:0,fields:[n]},{title:"None",description:"Nothing.",dataType:"constructor",index:1,fields:[]}]})},to:b3,from:y3,fromJson:m3,toJson:v3,void:function(){return"d87980"},castFrom:jn,castTo:ur};function b3(n,t){function e(a){try{if(typeof a=="bigint")return at.new_integer(Ko.from_str(a.toString()));if(typeof a=="string")return at.new_bytes(W(a));if(a instanceof Me){let{index:i,fields:o}=a,c=ie.new();return o.forEach(d=>c.add(e(d))),at.new_constr_plutus_data(fa.new(C.from_str(i.toString()),c))}else if(a instanceof Array){let i=ie.new();return a.forEach(o=>i.add(e(o))),at.new_list(i)}else if(a instanceof Map){let i=Ia.new();for(let[o,c]of a.entries())i.insert(e(o),e(c));return at.new_map(i)}throw new Error("Unsupported type")}catch(i){throw new Error("Could not serialize the data: "+i)}}let _=t?ur(n,t):n;return it(e(_).to_bytes())}function y3(n,t){function e(a){if(a.kind()===0){let i=a.as_constr_plutus_data(),o=i.data(),c=[];for(let d=0;dt(_));if(e instanceof Object){let _=new Map;return Object.entries(e).forEach(([a,i])=>{_.set(t(a),t(i))}),_}throw new Error("Unsupported type")}return t(n)}function v3(n){function t(e){if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&!isNaN(parseInt(e))&&e.slice(-1)==="n"){let _=typeof e=="string"?BigInt(e.slice(0,-1)):e;return parseInt(_.toString())}if(typeof e=="string")try{return new TextDecoder(void 0,{fatal:!0}).decode(W(e))}catch{return"0x"+it(W(e))}if(e instanceof Array)return e.map(_=>t(_));if(e instanceof Map){let _={};return e.forEach((a,i)=>{let o=t(i);if(typeof o!="string"&&typeof o!="number")throw new Error("Unsupported type (Note: Only bytes or integers can be keys of a JSON object)");_[o]=t(a)}),_}throw new Error("Unsupported type (Note: Constructor cannot be converted to JSON)")}return t(n)}function jn(n,t){let e=t;if(!e)throw new Error("Could not type cast data.");switch((e.anyOf?"enum":"")||e.dataType){case"integer":{if(typeof n!="bigint")throw new Error("Could not type cast to integer.");return Y0(n,e),n}case"bytes":{if(typeof n!="string")throw new Error("Could not type cast to bytes.");return Z0(n,e),n}case"constructor":{if(rv(e)){if(!(n instanceof Me)||n.index!==0||n.fields.length!==0)throw new Error("Could not type cast to void.");return}else if(n instanceof Me&&n.index===e.index&&(e.hasConstr||e.hasConstr===void 0)){let _={};if(e.fields.length!==n.fields.length)throw new Error("Could not type cast to object. Fields do not match.");return e.fields.forEach((a,i)=>{let o=a.title||"wrapper";if(/[A-Z]/.test(o[0]))throw new Error("Could not type cast to object. Object properties need to start with a lowercase letter.");_[o]=jn(n.fields[i],a)}),_}else if(n instanceof Array&&!e.hasConstr&&e.hasConstr!==void 0){let _={};if(e.fields.length!==n.length)throw new Error("Could not ype cast to object. Fields do not match.");return e.fields.forEach((a,i)=>{let o=a.title||"wrapper";if(/[A-Z]/.test(o[0]))throw new Error("Could not type cast to object. Object properties need to start with a lowercase letter.");_[o]=jn(n[i],a)}),_}throw new Error("Could not type cast to object.")}case"enum":{if(e.anyOf.length===1)return jn(n,e.anyOf[0]);if(!(n instanceof Me))throw new Error("Could not type cast to enum.");let _=e.anyOf.find(a=>a.index===n.index);if(!_||_.fields.length!==n.fields.length)throw new Error("Could not type cast to enum.");if(nv(e)){if(n.fields.length!==0)throw new Error("Could not type cast to boolean.");switch(n.index){case 0:return!1;case 1:return!0}throw new Error("Could not type cast to boolean.")}else if(av(e)){switch(n.index){case 0:{if(n.fields.length!==1)throw new Error("Could not type cast to nullable object.");return jn(n.fields[0],e.anyOf[0].fields[0])}case 1:{if(n.fields.length!==0)throw new Error("Could not type cast to nullable object.");return null}}throw new Error("Could not type cast to nullable object.")}switch(_.dataType){case"constructor":if(_.fields.length===0){if(/[A-Z]/.test(_.title[0]))return _.title;throw new Error("Could not type cast to enum.")}else{if(!/[A-Z]/.test(_.title))throw new Error("Could not type cast to enum. Enums need to start with an uppercase letter.");if(_.fields.length!==n.fields.length)throw new Error("Could not type cast to enum.");let a=_.fields[0].title?Object.fromEntries(_.fields.map((i,o)=>[i.title,jn(n.fields[o],i)])):_.fields.map((i,o)=>jn(n.fields[o],i));return{[_.title]:a}}}throw new Error("Could not type cast to enum.")}case"list":if(e.items instanceof Array){if(n instanceof Me&&n.index===0&&e.hasConstr)return n.fields.map((_,a)=>jn(_,e.items[a]));if(n instanceof Array&&!e.hasConstr)return n.map((_,a)=>jn(_,e.items[a]));throw new Error("Could not type cast to tuple.")}else{if(!(n instanceof Array))throw new Error("Could not type cast to array.");return tv(n,e),n.map(_=>jn(_,e.items))}case"map":{if(!(n instanceof Map))throw new Error("Could not type cast to map.");ev(n,e);let _=new Map;for(let[a,i]of n.entries())_.set(jn(a,e.keys),jn(i,e.values));return _}case void 0:return n}throw new Error("Could not type cast data.")}function ur(n,t){let e=t;if(!e)throw new Error("Could not type cast struct.");switch((e.anyOf?"enum":"")||e.dataType){case"integer":{if(typeof n!="bigint")throw new Error("Could not type cast to integer.");return Y0(n,e),n}case"bytes":{if(typeof n!="string")throw new Error("Could not type cast to bytes.");return Z0(n,e),n}case"constructor":{if(rv(e)){if(n!==void 0)throw new Error("Could not type cast to void.");return new Me(0,[])}else if(typeof n!="object"||n===null||e.fields.length!==Object.keys(n).length)throw new Error("Could not type cast to constructor.");let _=e.fields.map(a=>ur(n[a.title||"wrapper"],a));return e.hasConstr||e.hasConstr===void 0?new Me(e.index,_):_}case"enum":{if(e.anyOf.length===1)return ur(n,e.anyOf[0]);if(nv(e)){if(typeof n!="boolean")throw new Error("Could not type cast to boolean.");return new Me(n?1:0,[])}else if(av(e)){if(n===null)return new Me(1,[]);{let _=e.anyOf[0].fields;if(_.length!==1)throw new Error("Could not type cast to nullable object.");return new Me(0,[ur(n,_[0])])}}switch(typeof n){case"string":{if(!/[A-Z]/.test(n[0]))throw new Error("Could not type cast to enum. Enum needs to start with an uppercase letter.");let _=e.anyOf.findIndex(a=>a.dataType==="constructor"&&a.fields.length===0&&a.title===n);if(_===-1)throw new Error("Could not type cast to enum.");return new Me(_,[])}case"object":{if(n===null)throw new Error("Could not type cast to enum.");let _=Object.keys(n)[0];if(!/[A-Z]/.test(_))throw new Error("Could not type cast to enum. Enum needs to start with an uppercase letter.");let a=e.anyOf.find(o=>o.dataType==="constructor"&&o.title===_);if(!a)throw new Error("Could not type cast to enum.");let i=n[_];return new Me(a.index,i instanceof Array?i.map((o,c)=>ur(o,a.fields[c])):a.fields.map(o=>{let[c,d]=Object.entries(i).find(([f])=>f===o.title);return ur(d,o)}))}}throw new Error("Could not type cast to enum.")}case"list":{if(!(n instanceof Array))throw new Error("Could not type cast to array/tuple.");if(e.items instanceof Array){let _=n.map((a,i)=>ur(a,e.items[i]));return e.hasConstr?new Me(0,_):_}else return tv(n,e),n.map(_=>ur(_,e.items))}case"map":{if(!(n instanceof Map))throw new Error("Could not type cast to map.");ev(n,e);let _=new Map;for(let[a,i]of n.entries())_.set(ur(a,e.keys),ur(i,e.values));return _}case void 0:return n}throw new Error("Could not type cast struct.")}function Y0(n,t){if(t.minimum&&nBigInt(t.maximum))throw new Error(`Integer ${n} is above the maxiumum ${t.maximum}.`);if(t.exclusiveMinimum&&n<=BigInt(t.exclusiveMinimum))throw new Error(`Integer ${n} is below the exclusive minimum ${t.exclusiveMinimum}.`);if(t.exclusiveMaximum&&n>=BigInt(t.exclusiveMaximum))throw new Error(`Integer ${n} is above the exclusive maximum ${t.exclusiveMaximum}.`)}function Z0(n,t){if(t.enum&&!t.enum.some(e=>e===n))throw new Error(`None of the keywords match with '${n}'.`);if(t.minLength&&n.length/2t.maxLength)throw new Error(`Bytes can have a length of at most ${t.minLength} bytes.`)}function tv(n,t){if(t.minItems&&n.lengtht.maxItems)throw new Error(`Array can contain at most ${t.maxItems} items.`);if(t.uniqueItems&&new Set(n).size!==n.length)throw new Error("Array constains duplicates.")}function ev(n,t){if(t.minItems&&n.sizet.maxItems)throw new Error(`Map can contain at most ${t.maxItems} items.`)}function nv(n){var t,e;return n.anyOf&&((t=n.anyOf[0])==null?void 0:t.title)==="False"&&((e=n.anyOf[1])==null?void 0:e.title)==="True"}function rv(n){return n.index===0&&n.fields.length===0}function av(n){var t,e;return n.anyOf&&((t=n.anyOf[0])==null?void 0:t.title)==="Some"&&((e=n.anyOf[1])==null?void 0:e.title)==="None"}function ic(n,t){Object.keys(n).forEach(e=>{delete n[e]}),Object.assign(n,t)}var k3=class{constructor(n){Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n}validatorToAddress(n,t){let e=this.validatorToScriptHash(n);return t?tr.new(qi(this.lucid.network),H.from_scripthash(lt.from_hex(e)),t.type==="Key"?H.from_keyhash(X.from_hex(t.hash)):H.from_scripthash(lt.from_hex(t.hash))).to_address().to_bech32(void 0):Tn.new(qi(this.lucid.network),H.from_scripthash(lt.from_hex(e))).to_address().to_bech32(void 0)}credentialToAddress(n,t){return t?tr.new(qi(this.lucid.network),n.type==="Key"?H.from_keyhash(X.from_hex(n.hash)):H.from_scripthash(lt.from_hex(n.hash)),t.type==="Key"?H.from_keyhash(X.from_hex(t.hash)):H.from_scripthash(lt.from_hex(t.hash))).to_address().to_bech32(void 0):Tn.new(qi(this.lucid.network),n.type==="Key"?H.from_keyhash(X.from_hex(n.hash)):H.from_scripthash(lt.from_hex(n.hash))).to_address().to_bech32(void 0)}validatorToRewardAddress(n){let t=this.validatorToScriptHash(n);return Nt.new(qi(this.lucid.network),H.from_scripthash(lt.from_hex(t))).to_address().to_bech32(void 0)}credentialToRewardAddress(n){return Nt.new(qi(this.lucid.network),n.type==="Key"?H.from_keyhash(X.from_hex(n.hash)):H.from_scripthash(lt.from_hex(n.hash))).to_address().to_bech32(void 0)}validatorToScriptHash(n){switch(n.type){case"Native":return Ct.from_bytes(W(n.script)).hash(un.NativeScript).to_hex();case"PlutusV1":return gt.from_bytes(W(_i(n.script))).hash(un.PlutusV1).to_hex();case"PlutusV2":return gt.from_bytes(W(_i(n.script))).hash(un.PlutusV2).to_hex();default:throw new Error("No variant matched")}}mintingPolicyToId(n){return this.validatorToScriptHash(n)}datumToHash(n){return Os(at.from_bytes(W(n))).to_hex()}scriptHashToCredential(n){return{type:"Script",hash:n}}keyHashToCredential(n){return{type:"Key",hash:n}}generatePrivateKey(){return j3()}generateSeedPhrase(){return _v()}unixTimeToSlot(n){return w3(n,td[this.lucid.network])}slotToUnixTime(n){return f3(n,td[this.lucid.network])}getAddressDetails(n){return qn(n)}nativeScriptFromJson(n){return P3(n)}paymentCredentialOf(n){return Vi(n)}stakeCredentialOf(n){return x3(n)}};function ed(n){try{return kt.from_bytes(W(n))}catch{try{return kt.from_bech32(n)}catch{throw new Error("Could not deserialize address.")}}}function qn(n){try{let t=tr.from_address(ed(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:it(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:it(t.payment_cred().to_scripthash().to_bytes())},_=t.stake_cred().kind()===0?{type:"Key",hash:it(t.stake_cred().to_keyhash().to_bytes())}:{type:"Script",hash:it(t.stake_cred().to_scripthash().to_bytes())};return{type:"Base",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:it(t.to_address().to_bytes())},paymentCredential:e,stakeCredential:_}}catch{}try{let t=Tn.from_address(ed(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:it(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:it(t.payment_cred().to_scripthash().to_bytes())};return{type:"Enterprise",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:it(t.to_address().to_bytes())},paymentCredential:e}}catch{}try{let t=T_.from_address(ed(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:it(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:it(t.payment_cred().to_scripthash().to_bytes())};return{type:"Pointer",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:it(t.to_address().to_bytes())},paymentCredential:e}}catch{}try{let t=Nt.from_address(ed(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:it(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:it(t.payment_cred().to_scripthash().to_bytes())};return{type:"Reward",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:it(t.to_address().to_bytes())},stakeCredential:e}}catch{}try{let t=(e=>{try{return Pe.from_bytes(W(e))}catch{try{return Pe.from_base58(e)}catch{throw new Error("Could not deserialize address.")}}})(n);return{type:"Byron",networkId:t.network_id(),address:{bech32:"",hex:it(t.to_address().to_bytes())}}}catch{}throw new Error("No address type matched for: "+n)}function Vi(n){let{paymentCredential:t}=qn(n);if(!t)throw new Error("The specified address does not contain a payment credential.");return t}function x3(n){let{stakeCredential:t}=qn(n);if(!t)throw new Error("The specified address does not contain a stake credential.");return t}function j3(){return Ht.generate_ed25519().to_bech32()}function _v(){return l3(256)}function S3(n){let t={};t.lovelace=BigInt(n.coin().to_str());let e=n.multiasset();if(e){let _=e.keys();for(let a=0;a<_.len();a++){let i=_.get(a),o=e.get(i),c=o.keys();for(let d=0;di!=="lovelace").map(i=>i.slice(0,56)))).forEach(i=>{let o=_.filter(d=>d.slice(0,56)===i),c=Zn.new();o.forEach(d=>{c.insert(ne.new(W(d.slice(56))),C.from_str(n[d].toString()))}),t.insert(lt.from_bytes(W(i)),c)});let a=Et.new(C.from_str(e?e.toString():"0"));return(_.length>1||!e)&&a.set_multiasset(t),a}function C3(n){switch(n.get().kind()){case 0:return{type:"Native",script:it(n.get().as_native().to_bytes())};case 1:return{type:"PlutusV1",script:it(n.get().as_plutus_v1().to_bytes())};case 2:return{type:"PlutusV2",script:it(n.get().as_plutus_v2().to_bytes())};default:throw new Error("No variant matched.")}}function iv(n){switch(n.type){case"Native":return Bn.new(Fe.new_native(Ct.from_bytes(W(n.script))));case"PlutusV1":return Bn.new(Fe.new_plutus_v1(gt.from_bytes(W(_i(n.script)))));case"PlutusV2":return Bn.new(Fe.new_plutus_v2(gt.from_bytes(W(_i(n.script)))));default:throw new Error("No variant matched.")}}function sc(n){let t=(()=>{try{return kt.from_bech32(n.address)}catch{return Pe.from_base58(n.address).to_address()}})(),e=Qt.new(t,Kp(n.assets));return n.datumHash&&e.set_datum(Jt.new_data_hash(re.from_bytes(W(n.datumHash)))),!n.datumHash&&n.datum&&e.set_datum(Jt.new_data(Fn.new(at.from_bytes(W(n.datum))))),n.scriptRef&&e.set_script_ref(iv(n.scriptRef)),Te.new(Xe.new(we.from_bytes(W(n.txHash)),C.from_str(n.outputIndex.toString())),e)}function sv(n){var t,e,_,a,i,o,c;return{txHash:it(n.input().transaction_id().to_bytes()),outputIndex:parseInt(n.input().index().to_str()),assets:S3(n.output().amount()),address:n.output().address().as_byron()?(t=n.output().address().as_byron())==null?void 0:t.to_base58():n.output().address().to_bech32(void 0),datumHash:(a=(_=(e=n.output())==null?void 0:e.datum())==null?void 0:_.as_data_hash())==null?void 0:a.to_hex(),datum:((o=(i=n.output())==null?void 0:i.datum())==null?void 0:o.as_data())&&it(n.output().datum().as_data().get().to_bytes()),scriptRef:((c=n.output())==null?void 0:c.script_ref())&&C3(n.output().script_ref())}}function qi(n){switch(n){case"Preview":return 0;case"Preprod":return 0;case"Custom":return 0;case"Mainnet":return 1;default:throw new Error("Network not found")}}function W(n){return a3(n)}function it(n){return e3(n)}function E3(n){return it(new TextEncoder().encode(n))}function ov(n){return p3(W(n)).toString(16).padStart(2,"0")}function O3(n){if(n<0||n>65535)throw new Error(`Label ${n} out of range: min label 1 - max label 65535.`);let t=n.toString(16).padStart(4,"0");return"0"+t+ov(t)+"0"}function N3(n){if(n.length!==8||!(n[0]==="0"&&n[7]==="0"))return null;let t=n.slice(1,5),e=parseInt(t,16);return n.slice(5,7)===ov(t)?e:null}function z3(n,t,e){let _=Number.isInteger(e)?O3(e):"",a=t||"";if((a+_).length>64)throw new Error("Asset name size exceeds 32 bytes.");if(n.length!==56)throw new Error(`Policy id invalid: ${n}.`);return n+_+a}function R3(n){let t=n.slice(0,56),e=n.slice(56)||null,_=N3(n.slice(56,64)),a=(Number.isInteger(_)?n.slice(64):n.slice(56))||null;return{policyId:t,assetName:e,name:a,label:_}}function P3(n){return{type:"Native",script:it(Vp(JSON.stringify(n),"",Jb.Node).to_bytes())}}function I3(n,t,e){let _=e?Us.castTo(t,e):t;return it(qp(ie.from_bytes(W(Us.to(_))),gt.from_bytes(W(_i(n)))).to_bytes())}function _i(n){try{return gt.from_bytes(gt.from_bytes(W(n)).bytes()),n}catch{return it(gt.new(W(n)).to_bytes())}}var F3=class{constructor(n,t){Object.defineProperty(this,"txSigned",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.txSigned=t}async submit(){return await(this.lucid.wallet||this.lucid.provider).submitTx(it(this.txSigned.to_bytes()))}toString(){return it(this.txSigned.to_bytes())}toHash(){return da(this.txSigned.body()).to_hex()}},cv=class{constructor(n,t){Object.defineProperty(this,"txComplete",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"witnessSetBuilder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tasks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fee",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exUnits",{enumerable:!0,configurable:!0,writable:!0,value:null}),this.lucid=n,this.txComplete=t,this.witnessSetBuilder=Ka.new(),this.tasks=[],this.fee=parseInt(t.body().fee().to_str());let e=t.witness_set().redeemers();if(e){let _={cpu:0,mem:0};for(let a=0;a{let n=await this.lucid.wallet.signTx(this.txComplete);this.witnessSetBuilder.add_existing(n)}),this}signWithPrivateKey(n){let t=Ht.from_bech32(n),e=Es(da(this.txComplete.body()),t);return this.witnessSetBuilder.add_vkey(e),this}async partialSign(){let n=await this.lucid.wallet.signTx(this.txComplete);return this.witnessSetBuilder.add_existing(n),it(n.to_bytes())}partialSignWithPrivateKey(n){let t=Ht.from_bech32(n),e=Es(da(this.txComplete.body()),t);this.witnessSetBuilder.add_vkey(e);let _=Ka.new();return _.add_vkey(e),it(_.build().to_bytes())}assemble(n){return n.forEach(t=>{let e=Ae.from_bytes(W(t));this.witnessSetBuilder.add_existing(e)}),this}async complete(){for(let t of this.tasks)await t();this.witnessSetBuilder.add_existing(this.txComplete.witness_set());let n=mn.new(this.txComplete.body(),this.witnessSetBuilder.build(),this.txComplete.auxiliary_data());return new F3(this.lucid,n)}toString(){return it(this.txComplete.to_bytes())}toHash(){return da(this.txComplete.body()).to_hex()}},T3=class{constructor(n){Object.defineProperty(this,"txBuilder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tasks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.txBuilder=Ps.new(this.lucid.txBuilderConfig),this.tasks=[]}readFrom(n){return this.tasks.push(async t=>{for(let e of n){if(e.datumHash){e.datum=Us.to(await t.lucid.datumOf(e));let a=at.from_bytes(W(e.datum));t.txBuilder.add_plutus_data(a)}let _=sc(e);t.txBuilder.add_reference_input(_)}}),this}collectFrom(n,t){return this.tasks.push(async e=>{for(let _ of n){_.datumHash&&!_.datum&&(_.datum=Us.to(await e.lucid.datumOf(_)));let a=sc(_);e.txBuilder.add_input(a,t&&je.new_plutus_witness(hn.new(at.from_bytes(W(t)),_.datumHash&&_.datum?at.from_bytes(W(_.datum)):void 0,void 0)))}}),this}mintAssets(n,t){return this.tasks.push(e=>{let _=Object.keys(n),a=_[0].slice(0,56),i=Mn.new();_.forEach(c=>{if(c.slice(0,56)!==a)throw new Error("Only one policy id allowed. You can chain multiple mintAssets functions together if you need to mint assets with different policy ids.");i.insert(ne.new(W(c.slice(56))),_e.from_str(n[c].toString()))});let o=lt.from_bytes(W(a));e.txBuilder.add_mint(o,i,t?je.new_plutus_witness(hn.new(at.from_bytes(W(t)),void 0,void 0)):void 0)}),this}payToAddress(n,t){return this.tasks.push(e=>{let _=Qt.new(oc(n,e.lucid),Kp(t));e.txBuilder.add_output(_)}),this}payToAddressWithData(n,t,e){return this.tasks.push(_=>{if(typeof t=="string"&&(t={asHash:t}),[t.hash,t.asHash,t.inline].filter(o=>o).length>1)throw new Error("Not allowed to set hash, asHash and inline at the same time.");let a=Qt.new(oc(n,_.lucid),Kp(e));if(t.hash)a.set_datum(Jt.new_data_hash(re.from_hex(t.hash)));else if(t.asHash){let o=at.from_bytes(W(t.asHash));a.set_datum(Jt.new_data_hash(Os(o))),_.txBuilder.add_plutus_data(o)}else if(t.inline){let o=at.from_bytes(W(t.inline));a.set_datum(Jt.new_data(Fn.new(o)))}let i=t.scriptRef;i&&a.set_script_ref(iv(i)),_.txBuilder.add_output(a)}),this}payToContract(n,t,e){if(typeof t=="string"&&(t={asHash:t}),!(t.hash||t.asHash||t.inline))throw new Error("No datum set. Script output becomes unspendable without datum.");return this.payToAddressWithData(n,t,e)}delegateTo(n,t,e){return this.tasks.push(_=>{let a=_.lucid.utils.getAddressDetails(n);if(a.type!=="Reward"||!a.stakeCredential)throw new Error("Not a reward address provided.");let i=a.stakeCredential.type==="Key"?H.from_keyhash(X.from_bytes(W(a.stakeCredential.hash))):H.from_scripthash(lt.from_bytes(W(a.stakeCredential.hash)));_.txBuilder.add_certificate(Ut.new_stake_delegation(Ar.new(i,X.from_bech32(t))),e?je.new_plutus_witness(hn.new(at.from_bytes(W(e)),void 0,void 0)):void 0)}),this}registerStake(n){return this.tasks.push(t=>{let e=t.lucid.utils.getAddressDetails(n);if(e.type!=="Reward"||!e.stakeCredential)throw new Error("Not a reward address provided.");let _=e.stakeCredential.type==="Key"?H.from_keyhash(X.from_bytes(W(e.stakeCredential.hash))):H.from_scripthash(lt.from_bytes(W(e.stakeCredential.hash)));t.txBuilder.add_certificate(Ut.new_stake_registration(Dr.new(_)),void 0)}),this}deregisterStake(n,t){return this.tasks.push(e=>{let _=e.lucid.utils.getAddressDetails(n);if(_.type!=="Reward"||!_.stakeCredential)throw new Error("Not a reward address provided.");let a=_.stakeCredential.type==="Key"?H.from_keyhash(X.from_bytes(W(_.stakeCredential.hash))):H.from_scripthash(lt.from_bytes(W(_.stakeCredential.hash)));e.txBuilder.add_certificate(Ut.new_stake_deregistration(Mr.new(a)),t?je.new_plutus_witness(hn.new(at.from_bytes(W(t)),void 0,void 0)):void 0)}),this}registerPool(n){return this.tasks.push(async t=>{let e=await lv(n,t.lucid),_=Ut.new_pool_registration(e);t.txBuilder.add_certificate(_,void 0)}),this}updatePool(n){return this.tasks.push(async t=>{let e=await lv(n,t.lucid);e.set_is_update(!0);let _=Ut.new_pool_registration(e);t.txBuilder.add_certificate(_,void 0)}),this}retirePool(n,t){return this.tasks.push(e=>{let _=Ut.new_pool_retirement(zr.new(X.from_bech32(n),t));e.txBuilder.add_certificate(_,void 0)}),this}withdraw(n,t,e){return this.tasks.push(_=>{_.txBuilder.add_withdrawal(Nt.from_address(oc(n,_.lucid)),C.from_str(t.toString()),e?je.new_plutus_witness(hn.new(at.from_bytes(W(e)),void 0,void 0)):void 0)}),this}addSigner(n){let t=this.lucid.utils.getAddressDetails(n);if(!t.paymentCredential&&!t.stakeCredential)throw new Error("Not a valid address.");let e=t.type==="Reward"?t.stakeCredential:t.paymentCredential;if(e.type==="Script")throw new Error("Only key hashes are allowed as signers.");return this.addSignerKey(e.hash)}addSignerKey(n){return this.tasks.push(t=>{t.txBuilder.add_required_signer(X.from_bytes(W(n)))}),this}validFrom(n){return this.tasks.push(t=>{let e=t.lucid.utils.unixTimeToSlot(n);t.txBuilder.set_validity_start_interval(C.from_str(e.toString()))}),this}validTo(n){return this.tasks.push(t=>{let e=t.lucid.utils.unixTimeToSlot(n);t.txBuilder.set_ttl(C.from_str(e.toString()))}),this}attachMetadata(n,t){return this.tasks.push(e=>{e.txBuilder.add_json_metadatum(C.from_str(n.toString()),JSON.stringify(t))}),this}attachMetadataWithConversion(n,t){return this.tasks.push(e=>{e.txBuilder.add_json_metadatum_with_schema(C.from_str(n.toString()),JSON.stringify(t),Kb.BasicConversions)}),this}addNetworkId(n){return this.tasks.push(t=>{t.txBuilder.set_network_id(gn.from_bytes(W(n.toString(16).padStart(2,"0"))))}),this}attachSpendingValidator(n){return this.tasks.push(t=>{nd(t,n)}),this}attachMintingPolicy(n){return this.tasks.push(t=>{nd(t,n)}),this}attachCertificateValidator(n){return this.tasks.push(t=>{nd(t,n)}),this}attachWithdrawalValidator(n){return this.tasks.push(t=>{nd(t,n)}),this}compose(n){return n&&(this.tasks=this.tasks.concat(n.tasks)),this}async complete(n){var a,i,o,c,d,f,h,v,y,x,O,z,D;if([(i=(a=n==null?void 0:n.change)==null?void 0:a.outputData)==null?void 0:i.hash,(c=(o=n==null?void 0:n.change)==null?void 0:o.outputData)==null?void 0:c.asHash,(f=(d=n==null?void 0:n.change)==null?void 0:d.outputData)==null?void 0:f.inline].filter(m=>m).length>1)throw new Error("Not allowed to set hash, asHash and inline at the same time.");let t=this.tasks.shift();for(;t;)await t(this),t=this.tasks.shift();let e=await this.lucid.wallet.getUtxosCore(),_=oc(((h=n==null?void 0:n.change)==null?void 0:h.address)||await this.lucid.wallet.address(),this.lucid);return(n!=null&&n.coinSelection||(n==null?void 0:n.coinSelection)===void 0)&&this.txBuilder.add_inputs_from(e,_,Uint32Array.from([200,1e3,1500,800,800,5e3])),this.txBuilder.balance(_,(y=(v=n==null?void 0:n.change)==null?void 0:v.outputData)!=null&&y.hash?Jt.new_data_hash(re.from_hex(n.change.outputData.hash)):(O=(x=n==null?void 0:n.change)==null?void 0:x.outputData)!=null&&O.asHash?(this.txBuilder.add_plutus_data(at.from_bytes(W(n.change.outputData.asHash))),Jt.new_data_hash(Os(at.from_bytes(W(n.change.outputData.asHash))))):(D=(z=n==null?void 0:n.change)==null?void 0:z.outputData)!=null&&D.inline?Jt.new_data(Fn.new(at.from_bytes(W(n.change.outputData.inline)))):void 0),new cv(this.lucid,await this.txBuilder.construct(e,_,(n==null?void 0:n.nativeUplc)===void 0?!0:n==null?void 0:n.nativeUplc))}async toString(){let n=this.tasks.shift();for(;n;)await n(this),n=this.tasks.shift();return it(this.txBuilder.to_bytes())}};function nd(n,{type:t,script:e}){if(t==="Native")return n.txBuilder.add_native_script(Ct.from_bytes(W(e)));if(t==="PlutusV1")return n.txBuilder.add_plutus_script(gt.from_bytes(W(_i(e))));if(t==="PlutusV2")return n.txBuilder.add_plutus_v2_script(gt.from_bytes(W(_i(e))));throw new Error("No variant matched.")}async function lv(n,t){let e=Yt.new();n.owners.forEach(o=>{let{stakeCredential:c}=t.utils.getAddressDetails(o);if((c==null?void 0:c.type)==="Key")e.add(X.from_hex(c.hash));else throw new Error("Only key hashes allowed for pool owners.")});let _=n.metadataUrl?await fetch(n.metadataUrl).then(o=>o.arrayBuffer()):null,a=_?Er.from_bytes(Up(new Uint8Array(_))):null,i=Ir.new();return n.relays.forEach(o=>{switch(o.type){case"SingleHostIp":{let c=o.ipV4?vr.new(new Uint8Array(o.ipV4.split(".").map(f=>parseInt(f)))):void 0,d=o.ipV6?kr.new(W(o.ipV6.replaceAll(":",""))):void 0;i.add(Qe.new_single_host_addr(Fr.new(o.port,c,d)));break}case"SingleHostDomainName":{i.add(Qe.new_single_host_name(Tr.new(o.port,wa.new(o.domainName))));break}case"MultiHost":{i.add(Qe.new_multi_host_name(jr.new(ga.new(o.domainName))));break}}}),Nr.new(Or.new(X.from_bech32(n.poolId),vn.from_hex(n.vrfKeyHash),C.from_str(n.pledge.toString()),C.from_str(n.cost.toString()),_t.from_float(n.margin),Nt.from_address(oc(n.rewardAddress,t)),e,i,a?Cr.new(ir.new(n.metadataUrl),a):void 0))}function oc(n,t){let{type:e,networkId:_}=t.utils.getAddressDetails(n),a=qi(t.network);if(_!==a)throw new Error(`Invalid address: Expected address with network id ${a}, but got ${_}`);return e==="Byron"?Pe.from_base58(n).to_address():kt.from_bech32(n)}function A3(n,t={addressType:"Base",accountIndex:0,network:"Mainnet"}){function e(y){if(typeof y!="number")throw new Error("Type number required here!");return 2147483648+y}let _=o3(n),a=In.from_bip39_entropy(W(_),t.password?new TextEncoder().encode(t.password):new Uint8Array).derive(e(1852)).derive(e(1815)).derive(e(t.accountIndex)),i=a.derive(0).derive(0).to_raw_key(),o=a.derive(2).derive(0).to_raw_key(),c=i.to_public().hash(),d=o.to_public().hash(),f=t.network==="Mainnet"?1:0,h=t.addressType==="Base"?tr.new(f,H.from_keyhash(c),H.from_keyhash(d)).to_address().to_bech32(void 0):Tn.new(f,H.from_keyhash(c)).to_address().to_bech32(void 0),v=t.addressType==="Base"?Nt.new(f,H.from_keyhash(d)).to_address().to_bech32(void 0):null;return{address:h,rewardAddress:v,paymentKey:i.to_bech32(),stakeKey:t.addressType==="Base"?o.to_bech32():null}}function M3(n,t,e){let _=[],a=n.body().inputs();for(let x=0;xb.txHash===z&&b.outputIndex===D);if(m){let{paymentCredential:b}=qn(m.address);_.push(b==null?void 0:b.hash)}}let i=n.body();function o(x){var z,D,m,b,g,F,A;let O=x.certs();if(O)for(let B=0;Bb.txHash===z&&b.outputIndex===D);if(m){let{paymentCredential:b}=qn(m.address);_.push(b==null?void 0:b.hash)}}return _.filter(x=>t.includes(x))}function Jp(n,t,e){let _=Vn.new();_.set_algorithm_id(ht.from_algorithm_id(Ql.EdDSA)),_.set_header(ht.new_text("address"),St.new_bytes(W(n)));let a=Ze.new(_),i=Vn.new(),o=Wt.new(a,i),c=As.new(o,W(t),!1),d=c.make_data_to_sign().to_bytes(),f=Ht.from_bech32(e),h=f.sign(d).to_bytes(),v=c.build(h),y=e_.new(ht.from_key_type(u0.OKP));return y.set_algorithm_id(ht.from_algorithm_id(Ql.EdDSA)),y.set_header(ht.new_int(Ce.new_negative(Vt.from_str("1"))),St.new_int(Ce.new_i32(6))),y.set_header(ht.new_int(Ce.new_negative(Vt.from_str("2"))),St.new_bytes(f.to_public().as_bytes())),{signature:it(v.to_bytes()),key:it(y.to_bytes())}}function D3(n,t,e,_){let a=Vr.from_bytes(W(_.signature)),i=e_.from_bytes(W(_.key)),o=a.headers().protected().deserialized_headers(),c=(()=>{var D;try{return it((D=o.header(ht.new_text("address")))==null?void 0:D.as_bytes())}catch{throw new Error("No address found in signature.")}})(),d=(()=>{var D,m,b;try{let g=(D=o.algorithm_id())==null?void 0:D.as_int();return g!=null&&g.is_positive()?parseInt((m=g.as_positive())==null?void 0:m.to_str()):parseInt((b=g==null?void 0:g.as_negative())==null?void 0:b.to_str())}catch{throw new Error("Failed to retrieve Algorithm Id.")}})(),f=(()=>{var D,m,b;try{let g=(D=i.algorithm_id())==null?void 0:D.as_int();return g!=null&&g.is_positive()?parseInt((m=g.as_positive())==null?void 0:m.to_str()):parseInt((b=g==null?void 0:g.as_negative())==null?void 0:b.to_str())}catch{throw new Error("Failed to retrieve Algorithm Id.")}})(),h=(()=>{var D,m,b;try{let g=(D=i.header(ht.new_int(Ce.new_negative(Vt.from_str("1")))))==null?void 0:D.as_int();return g!=null&&g.is_positive()?parseInt((m=g.as_positive())==null?void 0:m.to_str()):parseInt((b=g==null?void 0:g.as_negative())==null?void 0:b.to_str())}catch{throw new Error("Failed to retrieve Curve.")}})(),v=(()=>{var D,m;try{let b=i.key_type().as_int();return b!=null&&b.is_positive()?parseInt((D=b.as_positive())==null?void 0:D.to_str()):parseInt((m=b==null?void 0:b.as_negative())==null?void 0:m.to_str())}catch{throw new Error("Failed to retrieve Key Type.")}})(),y=(()=>{var D;try{return yn.from_bytes((D=i.header(ht.new_int(Ce.new_negative(Vt.from_str("2")))))==null?void 0:D.as_bytes())}catch{throw new Error("No public key found.")}})(),x=(()=>{try{return it(a.payload())}catch{throw new Error("No payload found.")}})(),O=ke.from_bytes(a.signature()),z=a.signed_data(void 0,void 0).to_bytes();return c!==n||t!==y.hash().to_hex()||d!==f&&d!==Ql.EdDSA||h!==6||v!==1||x!==e?!1:y.verify(z,O)}var B3=class{constructor(n,t,e){Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"address",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"payload",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.address=t,this.payload=e}sign(){return this.lucid.wallet.signMessage(this.address,this.payload)}signWithPrivateKey(n){let{paymentCredential:t,stakeCredential:e,address:{hex:_}}=this.lucid.utils.getAddressDetails(this.address),a=(t==null?void 0:t.hash)||(e==null?void 0:e.hash),i=Ht.from_bech32(n).to_public().hash().to_hex();if(!a||a!==i)throw new Error(`Cannot sign message for address: ${this.address}.`);return Jp(_,this.payload,n)}},dv=class{constructor(n,t=Gj){Object.defineProperty(this,"ledger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mempool",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"chain",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"blockHeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"slot",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"protocolParameters",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"datumTable",{enumerable:!0,configurable:!0,writable:!0,value:{}});let e="00".repeat(32);this.blockHeight=0,this.slot=0,this.time=Date.now(),this.ledger={},n.forEach(({address:_,assets:a},i)=>{this.ledger[e+i]={utxo:{txHash:e,outputIndex:i,address:_,assets:a},spent:!1}}),this.protocolParameters=t}now(){return this.time}awaitSlot(n=1){this.slot+=n,this.time+=n*1e3;let t=this.blockHeight;if(this.blockHeight=Math.floor(this.slot/20),this.blockHeight>t){for(let[e,{utxo:_,spent:a}]of Object.entries(this.mempool))this.ledger[e]={utxo:_,spent:a};for(let[e,{spent:_}]of Object.entries(this.ledger))_&&delete this.ledger[e];this.mempool={}}}awaitBlock(n=1){this.blockHeight+=n,this.slot+=n*20,this.time+=n*20*1e3;for(let[t,{utxo:e,spent:_}]of Object.entries(this.mempool))this.ledger[t]={utxo:e,spent:_};for(let[t,{spent:e}]of Object.entries(this.ledger))e&&delete this.ledger[t];this.mempool={}}getUtxos(n){let t=Object.values(this.ledger).flatMap(({utxo:e})=>{if(typeof n=="string")return n===e.address?e:[];{let{paymentCredential:_}=qn(e.address);return(_==null?void 0:_.hash)===n.hash?e:[]}});return Promise.resolve(t)}getProtocolParameters(){return Promise.resolve(this.protocolParameters)}getDatum(n){return Promise.resolve(this.datumTable[n])}getUtxosWithUnit(n,t){let e=Object.values(this.ledger).flatMap(({utxo:_})=>{if(typeof n=="string")return n===_.address&&_.assets[t]>0n?_:[];{let{paymentCredential:a}=qn(_.address);return(a==null?void 0:a.hash)===n.hash&&_.assets[t]>0n?_:[]}});return Promise.resolve(e)}getUtxosByOutRef(n){return Promise.resolve(n.flatMap(t=>{var e;return((e=this.ledger[t.txHash+t.outputIndex])==null?void 0:e.utxo)||[]}))}getUtxoByUnit(n){let t=Object.values(this.ledger).flatMap(({utxo:e})=>e.assets[n]>0n?e:[]);if(t.length>1)throw new Error("Unit needs to be an NFT or only held by one address.");return Promise.resolve(t[0])}getDelegation(n){var t,e,_,a;return Promise.resolve({poolId:((e=(t=this.chain[n])==null?void 0:t.delegation)==null?void 0:e.poolId)||null,rewards:((a=(_=this.chain[n])==null?void 0:_.delegation)==null?void 0:a.rewards)||0n})}awaitTx(n){return this.mempool[n+0]&&this.awaitBlock(),Promise.resolve(!0)}distributeRewards(n){for(let[t,{registeredStake:e,delegation:_}]of Object.entries(this.chain))e&&_.poolId&&(this.chain[t]={registeredStake:e,delegation:{poolId:_.poolId,rewards:_.rewards+=n}});this.awaitBlock()}submitTx(n){var Y,qt,he,Sn,ut,xt,De,$,st,ft;let t=mn.from_bytes(W(n)),e=t.body(),_=t.witness_set(),a=_.plutus_data(),i=da(e).to_hex(),o=e.validity_start_interval()?parseInt(e.validity_start_interval().to_str()):null,c=e.ttl()?parseInt(e.ttl().to_str()):null;if(Number.isInteger(o)&&this.slotc)throw new Error(`Upper bound (${c}) not in slot range (${this.slot}).`);let d=(()=>{let I={};for(let M=0;M<((a==null?void 0:a.len())||0);M++){let Q=a.get(M),V=Os(Q).to_hex();I[V]=it(Q.to_bytes())}return I})(),f=new Set,h=(()=>{var M;let I=[];for(let Q=0;Q<(((M=_.vkeys())==null?void 0:M.len())||0);Q++){let V=_.vkeys().get(Q),nt=V.vkey().public_key(),It=nt.hash().to_hex();if(!nt.verify(W(i),V.signature()))throw new Error(`Invalid vkey witness. Key hash: ${It}`);I.push(It)}return I})(),v=Yt.new();h.forEach(I=>v.add(X.from_hex(I)));let y=(()=>{var M;let I=[];for(let Q=0;Q<(((M=_.native_scripts())==null?void 0:M.len())||0);Q++){let V=_.native_scripts().get(Q),nt=V.hash(un.NativeScript).to_hex();if(!V.verify(Number.isInteger(o)?C.from_str(o.toString()):void 0,Number.isInteger(c)?C.from_str(c.toString()):void 0,v))throw new Error(`Invalid native script witness. Script hash: ${nt}`);for(let It=0;It{var M,Q;let I=[];for(let V=0;V<(((M=_.plutus_scripts())==null?void 0:M.len())||0);V++){let nt=_.plutus_scripts().get(V).hash(un.PlutusV1).to_hex();I.push(nt)}for(let V=0;V<(((Q=_.plutus_v2_scripts())==null?void 0:Q.len())||0);V++){let nt=_.plutus_v2_scripts().get(V).hash(un.PlutusV2).to_hex();I.push(nt)}return I})(),D=e.inputs();D.sort();let m=[];for(let I=0;I{var Q;let I={0:"Spend",1:"Mint",2:"Cert",3:"Reward"},M=[];for(let V=0;V<(((Q=_.redeemers())==null?void 0:Q.len())||0);V++){let nt=_.redeemers().get(V);M.push({tag:I[nt.tag().kind()],index:parseInt(nt.index().to_str())})}return M})();function g(I,M,Q){switch(I.type){case"Key":{if(!h.includes(I.hash))throw new Error(`Missing vkey witness. Key hash: ${I.hash}`);f.add(I.hash);break}case"Script":{if(y.includes(I.hash)){f.add(I.hash);break}else if(x[I.hash]){if(!x[I.hash].verify(Number.isInteger(o)?C.from_str(o.toString()):void 0,Number.isInteger(c)?C.from_str(c.toString()):void 0,v))throw new Error(`Invalid native script witness. Script hash: ${I.hash}`);break}else if((z.includes(I.hash)||O.includes(I.hash))&&b.find(V=>V.tag===M&&V.index===Q)){f.add(I.hash);break}throw new Error(`Missing script witness. Script hash: ${I.hash}`)}}}for(let I=0;I<(((qt=e.collateral())==null?void 0:qt.len())||0);I++){let M=e.collateral().get(I),Q=M.transaction_id().to_hex()+M.index().to_str(),V=this.ledger[Q]||this.mempool[Q];if(!V||V.spent)throw new Error(`Could not read UTxO: ${JSON.stringify({txHash:V==null?void 0:V.utxo.txHash,outputIndex:V==null?void 0:V.utxo.outputIndex})} +It does not exist or was already spent.`);let{paymentCredential:nt}=qn(V.utxo.address);if((nt==null?void 0:nt.type)==="Script")throw new Error("Collateral inputs can only contain vkeys.");g(nt,null,null)}for(let I=0;I<(((he=e.required_signers())==null?void 0:he.len())||0);I++){let M=e.required_signers().get(I);g({type:"Key",hash:M.to_hex()},null,null)}for(let I=0;I<(((Sn=e.mint())==null?void 0:Sn.keys().len())||0);I++){let M=e.mint().keys().get(I).to_hex();g({type:"Script",hash:M},"Mint",I)}let F=[];for(let I=0;I<(((ut=e.withdrawals())==null?void 0:ut.keys().len())||0);I++){let M=e.withdrawals().keys().get(I),Q=BigInt(e.withdrawals().get(M).to_str()),V=M.to_address().to_bech32(void 0),{stakeCredential:nt}=qn(V);if(g(nt,"Reward",I),((xt=this.chain[V])==null?void 0:xt.delegation.rewards)!==Q)throw new Error("Withdrawal amount doesn't match actual reward balance.");F.push({rewardAddress:V,withdrawal:Q})}let A=[];for(let I=0;I<(((De=e.certs())==null?void 0:De.len())||0);I++){let M=e.certs().get(I);switch(M.kind()){case 0:{let Q=M.as_stake_registration(),V=Nt.new(Sr.testnet().network_id(),Q.stake_credential()).to_address().to_bech32(void 0);if(($=this.chain[V])!=null&&$.registeredStake)throw new Error(`Stake key is already registered. Reward address: ${V}`);A.push({type:"Registration",rewardAddress:V});break}case 1:{let Q=M.as_stake_deregistration(),V=Nt.new(Sr.testnet().network_id(),Q.stake_credential()).to_address().to_bech32(void 0),{stakeCredential:nt}=qn(V);if(g(nt,"Cert",I),!((st=this.chain[V])!=null&&st.registeredStake))throw new Error(`Stake key is already deregistered. Reward address: ${V}`);A.push({type:"Deregistration",rewardAddress:V});break}case 2:{let Q=M.as_stake_delegation(),V=Nt.new(Sr.testnet().network_id(),Q.stake_credential()).to_address().to_bech32(void 0),nt=Q.pool_keyhash().to_bech32("pool"),{stakeCredential:It}=qn(V);if(g(It,"Cert",I),!((ft=this.chain[V])!=null&&ft.registeredStake)&&!A.find(Be=>Be.type==="Registration"&&Be.rewardAddress===V))throw new Error(`Stake key is not registered. Reward address: ${V}`);A.push({type:"Delegation",rewardAddress:V,poolId:nt});break}}}m.forEach(({entry:{utxo:I}},M)=>{let{paymentCredential:Q}=qn(I.address);g(Q,"Spend",M)});let B=(()=>{let I=[];for(let M=0;M!f.has(I));if(T)throw new Error(`Extraneous vkey witness. Key hash: ${T}`);let[U]=y.filter(I=>!f.has(I));if(U)throw new Error(`Extraneous native script. Script hash: ${U}`);let[Z]=z.filter(I=>!f.has(I));if(Z)throw new Error(`Extraneous plutus script. Script hash: ${Z}`);let[P]=Object.keys(d).filter(I=>!f.has(I));if(P)throw new Error(`Extraneous plutus data. Datum hash: ${P}`);m.forEach(({entry:I,type:M})=>{let Q=I.utxo.txHash+I.utxo.outputIndex;I.spent=!0,M==="Ledger"?this.ledger[Q]=I:M==="Mempool"&&(this.mempool[Q]=I)}),F.forEach(({rewardAddress:I,withdrawal:M})=>{this.chain[I].delegation.rewards-=M}),A.forEach(({type:I,rewardAddress:M,poolId:Q})=>{switch(I){case"Registration":{this.chain[M]?this.chain[M].registeredStake=!0:this.chain[M]={registeredStake:!0,delegation:{poolId:null,rewards:0n}};break}case"Deregistration":{this.chain[M].registeredStake=!1,this.chain[M].delegation.poolId=null;break}case"Delegation":this.chain[M].delegation.poolId=Q}}),B.forEach(({utxo:I,spent:M})=>{this.mempool[I.txHash+I.outputIndex]={utxo:I,spent:M}});for(let[I,M]of Object.entries(d))this.datumTable[I]=M;return Promise.resolve(i)}log(){var _;function n(a){let i=a==="lovelace"?"1":a,o=0;for(let h=0;hTn.new(this.network==="Mainnet"?1:0,H.from_keyhash(e)).to_address().to_bech32(void 0),rewardAddress:async()=>null,getUtxos:async()=>await this.utxosAt(Vi(await this.wallet.address())),getUtxosCore:async()=>{let _=await this.utxosAt(Vi(await this.wallet.address())),a=_r.new();return _.forEach(i=>{a.add(sc(i))}),a},getDelegation:async()=>({poolId:null,rewards:0n}),signTx:async _=>{let a=Es(da(_.body()),t),i=Ka.new();return i.add_vkey(a),i.build()},signMessage:async(_,a)=>{let{paymentCredential:i,address:{hex:o}}=this.utils.getAddressDetails(_),c=i==null?void 0:i.hash,d=e.to_hex();if(!c||c!==d)throw new Error(`Cannot sign message for address: ${_}.`);return Jp(o,a,n)},submitTx:async _=>await this.provider.submitTx(_)},this}selectWallet(n){let t=async()=>{let[e]=await n.getUsedAddresses();if(e)return e;let[_]=await n.getUnusedAddresses();return _};return this.wallet={address:async()=>kt.from_bytes(W(await t())).to_bech32(void 0),rewardAddress:async()=>{let[e]=await n.getRewardAddresses();return e?Nt.from_address(kt.from_bytes(W(e))).to_address().to_bech32(void 0):null},getUtxos:async()=>(await n.getUtxos()||[]).map(e=>{let _=Te.from_bytes(W(e));return sv(_)}),getUtxosCore:async()=>{let e=_r.new();return(await n.getUtxos()||[]).forEach(_=>{e.add(Te.from_bytes(W(_)))}),e},getDelegation:async()=>{let e=await this.wallet.rewardAddress();return e?await this.delegationAt(e):{poolId:null,rewards:0n}},signTx:async e=>{let _=await n.signTx(it(e.to_bytes()),!0);return Ae.from_bytes(W(_))},signMessage:async(e,_)=>{let a=it(kt.from_bech32(e).to_bytes());return await n.signData(a,_)},submitTx:async e=>await n.submitTx(e)},this}selectWalletFrom({address:n,utxos:t,rewardAddress:e}){let _=this.utils.getAddressDetails(n);return this.wallet={address:async()=>n,rewardAddress:async()=>(!e&&_.stakeCredential?_.stakeCredential.type==="Key"?Nt.new(this.network==="Mainnet"?1:0,H.from_keyhash(X.from_hex(_.stakeCredential.hash))).to_address().to_bech32(void 0):Nt.new(this.network==="Mainnet"?1:0,H.from_scripthash(lt.from_hex(_.stakeCredential.hash))).to_address().to_bech32(void 0):e)||null,getUtxos:async()=>t||await this.utxosAt(Vi(n)),getUtxosCore:async()=>{let a=_r.new();return(t||await this.utxosAt(Vi(n))).forEach(i=>a.add(sc(i))),a},getDelegation:async()=>{let a=await this.wallet.rewardAddress();return a?await this.delegationAt(a):{poolId:null,rewards:0n}},signTx:async()=>{throw new Error("Not implemented")},signMessage:async()=>{throw new Error("Not implemented")},submitTx:async a=>await this.provider.submitTx(a)},this}selectWalletFromSeed(n,t){let{address:e,rewardAddress:_,paymentKey:a,stakeKey:i}=A3(n,{addressType:(t==null?void 0:t.addressType)||"Base",accountIndex:(t==null?void 0:t.accountIndex)||0,password:t==null?void 0:t.password,network:this.network}),o=Ht.from_bech32(a).to_public().hash().to_hex(),c=i?Ht.from_bech32(i).to_public().hash().to_hex():"",d={[o]:a,[c]:i};return this.wallet={address:async()=>e,rewardAddress:async()=>_||null,getUtxos:async()=>this.utxosAt(Vi(e)),getUtxosCore:async()=>{let f=_r.new();return(await this.utxosAt(Vi(e))).forEach(h=>f.add(sc(h))),f},getDelegation:async()=>{let f=await this.wallet.rewardAddress();return f?await this.delegationAt(f):{poolId:null,rewards:0n}},signTx:async f=>{let h=await this.utxosAt(e),v=M3(f,[o,c],h),y=Ka.new();return v.forEach(x=>{let O=Es(da(f.body()),Ht.from_bech32(d[x]));y.add_vkey(O)}),y.build()},signMessage:async(f,h)=>{let{paymentCredential:v,stakeCredential:y,address:{hex:x}}=this.utils.getAddressDetails(f),O=(v==null?void 0:v.hash)||(y==null?void 0:y.hash),z=d[O];if(!z)throw new Error(`Cannot sign message for address: ${f}.`);return Jp(x,h,z)},submitTx:async f=>await this.provider.submitTx(f)},this}};const L3=["Build","Contracts","Wallets","Transact"],U3={selectedTabIndex:0,wallets:[],contracts:[],addContractError:void 0},pv=ki({name:"management",initialState:U3,reducers:{selectTab(n,t){n.selectedTabIndex=t.payload},addWallet(n,t){n.wallets.push(t.payload)},removeWallet(n,t){n.wallets.filter(e=>e.address===t.payload)},addContract(n,t){let e=0;for(let _ of n.contracts){const a=_.name===t.payload.name,i=_.script.script===t.payload.script.script;if(a&&i){const o=`Contract already exists as ${_.name} v${_.version}.`;n.addContractError=o;return}_.name===t.payload.name&&_.version>=e&&(e=_.version+1)}n.contracts.unshift({...t.payload,version:e})},removeContract(n,t){const{name:e,version:_}=t.payload;n.contracts=n.contracts.filter(a=>!(a.name===e&&a.version===_))},clearAddContractError(n){n.addContractError=void 0},setAddContractError(n,t){n.addContractError=t.payload}}}),{selectTab:V3,addWallet:q3,removeWallet:jS,addContract:fv,removeContract:$3,clearAddContractError:H3,setAddContractError:rd}=pv.actions,W3=pv.reducer,wv=q.createContext({lucid:null,isLucidLoading:!1}),K3=({children:n})=>{const[t,e]=q.useState(null),[_,a]=q.useState(!1),[i,o]=q.useState(void 0),c=Bt(v=>v.lucid),d=Bt(v=>v.management.wallets),f=Pn(),h=q.useRef(!0);return q.useEffect(()=>{let v=i;a(!0),(async()=>{const y=c.network==="Emulator"?"Custom":c.network;if(t&&t.network===y)return;const x=await uv.new(void 0,y);let O,z="";c.network==="Emulator"&&d.length===0?(O=_v(),x.selectWalletFromSeed(O),z=await x.wallet.address()):d.length>0&&x.selectWalletFromSeed(d[0].seed),c.network==="Emulator"&&(h.current?(h.current=!1,v={address:z,seed:O},f(q3(v)),o(v),x.provider=new dv([{address:(v==null?void 0:v.address)||"",assets:{lovelace:20000000000n}}]),e(x),a(!1)):h.current=!0)})()},[c]),k.jsx(wv.Provider,{value:{lucid:t,isLucidLoading:_},children:n})};function cc(){return q.useContext(wv)}const J3={tooltips:[]},gv=ki({name:"tooltip",initialState:J3,reducers:{showTooltip(n,t){const{id:e,message:_,position:a}=t.payload,i=n.tooltips.findIndex(o=>o.id===e);i!==-1?n.tooltips[i]={id:e,message:_,position:a}:n.tooltips.push({id:e,message:_,position:a})},hideTooltip(n,t){n.tooltips=n.tooltips.filter(e=>e.id!==t.payload)}}}),{showTooltip:Q3,hideTooltip:hv}=gv.actions,G3=gv.reducer,X3=1500;let bv=0;function Y3(){return bv++,bv.toString()}function Qp(n,t,e={x:0,y:0},_=()=>{}){var o;const a=Pn(),i=q.useRef(null);t.current&&!((o=t.current)!=null&&o.id)&&(t.current.id=Y3()),q.useEffect(()=>{var c,d;if(!n&&i.current)clearTimeout(i.current),a(hv(((c=t.current)==null?void 0:c.id)||"")),_();else if(n&&t.current){i.current!==null&&clearTimeout(i.current);const f=t.current.getBoundingClientRect();a(Q3({id:(d=t.current)==null?void 0:d.id,message:n,position:{x:f.left+e.x,y:f.top+e.y}})),i.current=setTimeout(()=>{var h;a(hv(((h=t.current)==null?void 0:h.id)||"")),_()},X3)}return()=>{i.current&&clearTimeout(i.current)}},[n,t])}function ad(n){if(Array.isArray(n))return n.map(t=>ad(t));if("constructor"in n&&Array.isArray(n.fields)){const t=n.fields.map(e=>typeof e=="object"&&e!==null?ad(e):e);return new Me(n.constructor,t)}else{if("bytes"in n)return n.bytes;if("int"in n)return n.int;throw"map_0"in n?new Error("Map type encountered, operation not supported"):new Error("Unknown type in JSON structure")}}function Z3(){const n=q.useRef(null),{isLucidLoading:t,lucid:e}=cc(),[_,a]=q.useState("aiken"),[i,o]=q.useState(void 0),[c,d]=q.useState(void 0),f=Bt(g=>g.project.buildResults),h=Bt(g=>g.files.files),v=Bt(g=>g.management.addContractError),y=Pn();if(Qp(v||"",n,{x:-100,y:-50},()=>{y(H3())}),t||!e)return k.jsx("div",{});const x=e,O=f==null?void 0:f.flatMap(g=>g.validators),z=(O==null?void 0:O.map(g=>g.name))||[],D=h.filter(g=>g.type==="json"),m=D.map(g=>g.name).concat(["None"]);i===void 0&&_==="aiken"&&z.length>0&&o(z[0]),i===void 0&&_==="native"&&m.length>0&&o(m[0]),c===void 0&&m.length>0&&d(m[0]);const b=_==="aiken"&&z.length===0||_==="native"&&m.length===1?"disabled":"";return k.jsxs("div",{className:"add-contract-container",children:[k.jsx("div",{className:"add-contract-header",children:"Add a Contract"}),k.jsxs("div",{className:"add-contract-content",children:[k.jsxs("div",{className:"add-contract-selection-container",children:[k.jsx("div",{className:"input-label",children:"Script Kind "}),k.jsxs("select",{className:"add-contract-select",defaultValue:_,onChange:g=>{a(g.target.value)},children:[k.jsx("option",{value:"aiken",children:"Aiken"}),k.jsx("option",{value:"native",children:"Native Script"})]})]}),k.jsxs("div",{className:"add-contract-selection-container",children:[k.jsx("div",{className:"input-label",children:"Validator "}),_==="aiken"?k.jsx("select",{className:"add-contract-select",onChange:g=>{o(g.target.value)},children:z==null?void 0:z.map((g,F)=>k.jsx("option",{value:g,children:g},g+F))}):k.jsx("select",{className:"add-contract-select",onChange:g=>{o(g.target.value)},children:m==null?void 0:m.map(g=>g==="None"?null:k.jsx("option",{value:g,children:g},g))})]}),k.jsxs("div",{className:"add-contract-selection-container",children:[_==="aiken"?k.jsx("div",{className:"input-label",children:"Params "}):null,_==="aiken"?k.jsx("select",{className:"add-contract-select",onChange:g=>{d(g.target.value)},children:m==null?void 0:m.map(g=>k.jsx("option",{value:g,children:g},g))}):null]})]}),k.jsxs("div",{className:"add-contract-selection-container add-contract-button-container",children:[k.jsx("div",{}),k.jsx("button",{ref:n,className:`add-contract-button button ${b}`,onClick:()=>{if(_==="aiken"){const g=D.find(P=>P.name===c),F=g==null?void 0:g.content,A=(O==null?void 0:O.find(P=>P.name===i))||(O==null?void 0:O[0]);if(!A){console.error(`No known validator ${i}`);return}let B=[];if(F)try{const P=JSON.parse(F);B=ad(P)}catch(P){return P.message&&P.message.includes("JSON.parse")?y(rd(`Invalid JSON in ${g.name}`)):y(rd(`JSON in ${g.name} cannot be converted to Data`))}const T={type:"PlutusV2",script:_i(I3(A.program,B))},U=x.utils.validatorToAddress(T),Z=x.utils.validatorToScriptHash(T);y(fv({script:T,name:A.name,paramsFileName:(g==null?void 0:g.name)||"None",address:U,scriptHash:Z}))}else if(_==="native"){const g=D.find(A=>A.name===i),F=g==null?void 0:g.content;if(F)try{const A=JSON.parse(F),B=x.utils.nativeScriptFromJson(A),T=x.utils.validatorToAddress(B),U=x.utils.validatorToScriptHash(B);y(fv({script:B,name:i.split(".")[0],paramsFileName:g==null?void 0:g.name,address:T,scriptHash:U}))}catch(A){return A.message&&A.message.includes("JSON.parse")?y(rd(`Invalid JSON in ${g.name}`)):y(rd(`JSON in ${g.name} is not a valid native script`))}}},children:"Create Contract"})]})]})}function _d({value:n}){const[t,e]=q.useState(!1);let _=null;const a=()=>{navigator.clipboard.writeText(n),e(!0),_&&clearTimeout(_),_=setTimeout(()=>e(!1),1e3)};return k.jsx("span",{title:"Copy",onClick:a,className:"copy-widget",style:{cursor:"pointer"},children:t?"\u2713":"\u{1F4CB}"})}function tS(){const{isLucidLoading:n,lucid:t}=cc(),e=Bt(a=>a.management.contracts),_=Pn();return n||!t?k.jsx("div",{}):k.jsxs("div",{className:"contracts-content",children:[k.jsx("div",{className:"contracts-heading",children:k.jsx("strong",{children:"Contracts"})}),k.jsx(Z3,{}),k.jsx("div",{className:"contracts-container",children:e.map(a=>k.jsxs("div",{className:"contract-container",children:[k.jsxs("div",{className:"contract-header",children:[k.jsx("div",{className:"contract-name",children:a.name}),k.jsxs("div",{className:"contract-version",children:["Version ",a.version]})]}),k.jsx("div",{className:"contract-data-holder",children:k.jsxs("div",{className:"contract-params",children:[k.jsx("div",{className:"contract-params-label",children:"Parameters"}),k.jsx("div",{className:"contract-params-content",children:a.paramsFileName})]})}),k.jsx("div",{className:"contract-data-holder",children:k.jsxs("div",{className:"contract-params",children:[k.jsx("div",{className:"contract-params-label",children:"Address"}),k.jsxs("div",{className:"contract-params-content",children:[xi(a.address)," ",k.jsx(_d,{value:a.address})]})]})}),k.jsx("div",{className:"contract-data-holder",children:k.jsxs("div",{className:"contract-params",children:[k.jsx("div",{className:"contract-params-label",children:"Script Hash"}),k.jsxs("div",{className:"contract-params-content",children:[xi(a.scriptHash)," ",k.jsx(_d,{value:a.scriptHash})]})]})}),k.jsx("div",{className:"delete-contract-button-container",children:k.jsx("button",{className:"delete-contract-button button",onClick:()=>_($3({version:a.version,name:a.name})),children:"Delete"})})]},`${a.name}${a.version}`))})]})}function yv({utxo:n,className:t,withCopy:e=!0}){return k.jsxs("div",{className:`utxo-container ${t||""}`,children:[k.jsxs("div",{className:"txid",children:[`${xi(n.txHash,5,5)}@${n.outputIndex}`," ",k.jsx("span",{children:e?k.jsx(_d,{value:n.txHash}):null})]}),k.jsx("div",{className:"asset-container-container",children:Object.keys(n.assets).map(_=>k.jsxs("div",{className:"asset-container",children:[k.jsxs("div",{className:"asset-label",children:[_,": "]}),k.jsx("div",{className:"asset-value",children:n.assets[_].toString()})]},_))})]})}function eS({wallet:n,lucid:t}){const[e,_]=q.useState(void 0),[a,i]=q.useState(void 0);q.useEffect(()=>{t.provider.getUtxos(n.address).then(c=>{_(c)}).catch(c=>{i(c.message)})},[n]);const o=xi(n.address);return k.jsxs("div",{className:"wallet-utxos-container",children:[k.jsxs("div",{className:"wallet-utxos-address",children:[o," ",k.jsx(_d,{value:n.address})]}),a===void 0?k.jsx("div",{className:"wallet-utxos",children:e==null?void 0:e.map(c=>k.jsx(yv,{utxo:c},c.txHash+c.outputIndex))}):k.jsx("div",{children:"utxoError"})]},n.address)}function nS(){const{lucid:n}=cc(),t=Bt(_=>_.management.wallets),e=n;return k.jsxs("div",{className:"wallets-content",children:[k.jsx("div",{className:"management-section-heading",children:k.jsx("strong",{children:"Wallets"})}),t.map(_=>k.jsx(eS,{wallet:_,lucid:e},_.address))]})}const rS={addSpendError:void 0,spends:[]},mv=ki({name:"transact",initialState:rS,reducers:{addSpend(n,t){n.spends=[...n.spends,t.payload]},removeSpend(n,t){console.log(t.payload),n.spends.splice(t.payload,1)},setAddSpendError(n,t){n.addSpendError=t.payload},clearAddSpendError(n){n.addSpendError=void 0}}}),{setAddSpendError:vv,clearAddSpendError:aS,addSpend:_S,removeSpend:iS}=mv.actions,sS=mv.reducer;function oS(n){return{...n,assets:Object.fromEntries(Object.entries(n.assets).map(([t,e])=>[t,e.toString()]))}}function cS(n){return n.map(oS)}function lS(){const n=Bt(P=>P.management.wallets),t=Bt(P=>P.management.contracts),e=Bt(P=>P.files.files),_=Bt(P=>P.transact.addSpendError),a=Bt(P=>P.transact.spends),[i,o]=q.useState([]),[c,d]=q.useState("None"),f=Pn(),h=q.useRef(null);Qp(_||"",h,{x:0,y:0},()=>f(aS()));const{isLucidLoading:v,lucid:y}=cc(),[x,O]=q.useState([]),[z,D]=q.useState(n.length>0?"wallet":t.length>0?"contract":"custom"),[m,b]=q.useState(z==="wallet"&&n.length?n[0].address:z==="contract"&&t.length?t[0].address:""),g=a.reduce((P,Y)=>P.concat(Y.utxos.map(qt=>qt.txHash+qt.outputIndex)),[]),F=x.filter(P=>!g.includes(P.txHash+P.outputIndex));q.useEffect(()=>{if(v)return;const P=y;if(z==="wallet")P.wallet.getUtxos().then(Y=>{Y.push({...Y[0],outputIndex:1}),Y.push({...Y[0],outputIndex:2}),Y.push({...Y[0],outputIndex:3}),Y.push({...Y[0],outputIndex:4}),Y.push({...Y[0],outputIndex:5}),Y.push({...Y[0],outputIndex:6}),O(Y)}).catch(console.error);else{if(z==="custom")try{const Y=P.utils.getAddressDetails(m)}catch{return}P.provider.getUtxos(m).then(O).catch(console.error)}},[v,z,m]);const A=y,B=z==="wallet"?n.map(P=>P.address):z==="contract"?t.map(P=>P.address):[],T=e.filter(P=>P.name.endsWith(".json")).map(P=>P.name).concat("None"),U=k.jsx("select",{className:"utxo-source-select",onChange:P=>{const Y=n.find(qt=>qt.address===P.target.value);Y&&A.selectWalletFromSeed(Y.seed)},children:B.map(P=>k.jsx("option",{value:P,children:xi(P)},P))}),Z=k.jsx("input",{className:"address-text-input",type:"text",onChange:P=>{b(P.target.value)}});return v?k.jsx("div",{children:"Loading lol"}):k.jsxs("div",{className:"utxo-selection-container",children:[k.jsxs("div",{className:"utxo-selection-container-options",children:[k.jsxs("div",{className:"utxo-source-selection-container",children:[k.jsx("div",{className:"input-label",children:"Source"}),k.jsxs("select",{className:"utxo-source-select",onChange:P=>{if(D(P.target.value),d("None"),O([]),P.target.value==="wallet"&&n.length>0){const Y=n[0];A.selectWalletFromSeed(Y.seed),b(Y.address)}else P.target.value==="contract"&&t.length>0?b(t[0].address):b("")},children:[k.jsx("option",{value:"wallet",children:"Wallet"}),k.jsx("option",{value:"contract",children:"Contract"}),k.jsx("option",{value:"custom",children:"Custom"})]})]}),k.jsxs("div",{className:"utxo-address-selection-container",children:[k.jsx("div",{className:"input-label",children:"Address"}),z==="custom"?Z:U]}),z==="wallet"?null:k.jsxs("div",{className:"utxo-redeemer-selection-container",children:[k.jsx("div",{className:"input-label",children:"Redeemer"}),k.jsx("select",{className:"utxo-source-select",value:c,onChange:P=>{d(P.target.value)},children:T.map(P=>k.jsx("option",{value:P,children:P},P))})]}),k.jsx("div",{className:"utxo-selection-submit-container",children:k.jsx("button",{ref:h,className:`selection-submit-button button ${i.length===0?"disabled":""}`,disabled:i.length===0,onClick:()=>{let P=null;if(c&&c!=="None"){P=e.find(Y=>Y.name===c);try{const Y=JSON.parse(P.content);ad(Y)}catch(Y){return Y.message&&Y.message.includes("JSON.parse")?f(vv(`Invalid JSON in ${P==null?void 0:P.name}`)):f(vv(`JSON in ${P==null?void 0:P.name} cannot be converted to Data`))}}f(_S({utxos:cS(i),redeemerFileName:(P==null?void 0:P.name)||"None",source:z})),o([])},children:"Add Spend"})})]}),k.jsx("div",{className:"utxo-utxo-selection-container",children:F.map(P=>{const Y=!!i.find(he=>kv(he,P)),qt=Y?"selected-utxo-border":"";return k.jsxs("div",{className:"utxo-wrapper-with-checkbox",children:[k.jsx("input",{className:"utxo-selection-checkbox",type:"checkbox",checked:Y,onChange:he=>{he.target.checked?o([...i,P]):o(i.filter(Sn=>!kv(P,Sn)))}}),k.jsx(yv,{className:qt,utxo:P,withCopy:!1},P.txHash+P.outputIndex)]},P.txHash+P.outputIndex)})})]})}function kv(n,t){return n.txHash===t.txHash&&n.outputIndex===t.outputIndex}function dS(){const n=Bt(a=>a.transact.spends),t=Pn(),{isLucidLoading:e,lucid:_}=cc();return e||!_?k.jsx("div",{}):k.jsxs("div",{className:"transact-content",children:[k.jsx("div",{className:"management-section-heading",children:k.jsx("strong",{children:"Transact"})}),k.jsxs("div",{className:"transact-spend-section",children:[k.jsx("div",{className:"transact-spend-header",children:"UTxO Selection"}),k.jsx("div",{className:"transact-spend-message-container",children:n.length===0?k.jsx("div",{className:"transact-no-spends-yet-message",children:"\u26A0 Choose at least one UTxO to spend."}):k.jsx("div",{className:"transact-spends-count-message",children:`${n.length} spend(s) selected.`})}),k.jsx("div",{className:"transact-spends-container",children:n.map((a,i)=>k.jsxs("div",{className:"transact-spend-container",children:[k.jsxs("div",{className:"transact-spend-address-and-close",children:[k.jsx("div",{className:"transact-spend-address",children:xi(a.utxos[0].address)}),k.jsx("div",{className:"transact-spend-close",children:k.jsx("button",{className:"button",style:{fontSize:12},onClick:()=>{t(iS(i))},children:"Remove"})})]}),k.jsxs("div",{className:"transact-spend-redeemer",children:[k.jsx("div",{className:"input-label",children:"Redeemer"}),k.jsx("div",{className:"transact-spend-redeemer-filename",children:` ${a.redeemerFileName||"None"}`})]}),k.jsxs("div",{className:"transact-spend-utxos",children:[k.jsx("div",{className:"input-label",children:"UTxOs"}),k.jsx("div",{className:"transact-spend-utxo-display",children:a.utxos.map(o=>k.jsx("div",{children:`${xi(o.txHash,4,6)}@${o.outputIndex}`},o.txHash+o.outputIndex))})]})]},a.utxos[0].txHash+a.utxos[0].outputIndex))}),k.jsx(lS,{})]})]})}function uS(){const n=Bt(t=>t.management);return(()=>{if(n.selectedTabIndex===0)return k.jsx(Zx,{});if(n.selectedTabIndex===1)return k.jsx(tS,{});if(n.selectedTabIndex===2)return k.jsx(nS,{});if(n.selectedTabIndex===3)return k.jsx(dS,{})})()}function pS(){const n=Bt(a=>a.files),t=Pn(),e=q.useRef(null),_=a=>{a.preventDefault(),e.current&&(e.current.scrollLeft+=a.deltaY*2)};return k.jsx("div",{className:"editor-tab-container",ref:e,onWheel:_,children:n.openFileIndices.map(a=>{const i=n.files[a],{name:o,extension:c}=kb(i.name),d=n.currentFileFocusedInEditorIndex===a?"highlight-open-focused-tab":"";return k.jsx("div",{className:`editor-tab ${d}`,onMouseUp:f=>{f.preventDefault(),f.button===1&&t(Ux(a))},onMouseDown:f=>{f.preventDefault(),f.button===0?t(hb(a)):f.button===1&&t(bb(a))},onMouseLeave:()=>{n.pendingCloseFileIndex===a&&t(bb(-1))},children:k.jsxs("div",{className:"editor-tab-label unselectable",children:[k.jsx("span",{className:"filename-start",children:o}),k.jsx("span",{className:"filename-end",children:c})]})},a)})})}const fS={visible:!1,options:[],position:{x:0,y:0}},xv=ki({name:"contextMenu",initialState:fS,reducers:{showContextMenu(n,t){n.visible=!0,n.options=t.payload.options,n.position=t.payload.position},hideContextMenu(n){n.visible=!1,n.options=[],n.position={x:0,y:0}}}}),{showContextMenu:jv,hideContextMenu:Sv}=xv.actions,wS=xv.reducer;function gS(){const n=Bt(_=>_.files),t=Pn(),e=q.useRef(null);return q.useEffect(()=>{n.beingRenamedFileIndex!==-1&&e.current&&(e.current.focus(),e.current.select())},[n.beingRenamedFileIndex]),Qp(n.renameFileError||"",e,{x:100,y:-10},()=>{t(Hx())}),k.jsxs("div",{className:"file-manager-container",children:[k.jsxs("div",{className:"file-manager-header",children:[k.jsx("div",{children:k.jsx("strong",{children:"Files"})}),k.jsxs("div",{className:"add-file-icon",onClick:()=>t(yb()),children:[k.jsx("span",{className:"add-file-icon-plus",children:"+"}),"\u{1F5CE}"]})]}),k.jsx("div",{className:"file-manager-file-list ",onContextMenu:_=>{_.preventDefault(),t(jv({options:[{name:"New File"}],position:{x:_.clientX,y:_.clientY}}))},children:n.files.map((_,a)=>{const{name:i,extension:o}=kb(_.name),c=a===n.currentFileFocusedInEditorIndex?"highlight-open-focused-file":"",d=n.openFileIndices.includes(a)?"highlight-open-file":"";return a===n.beingRenamedFileIndex?k.jsx("div",{className:`file-manager-file-entry file-rename-entry ${c} ${d}`,children:k.jsx("input",{ref:e,className:"file-rename-input",type:"text",defaultValue:_.name,onKeyDown:f=>{var h;f.key==="Enter"?(t(mb(((h=e.current)==null?void 0:h.value)||"error.error")),f.preventDefault()):f.key==="Escape"&&t(Vx())},onBlur:()=>{var f;t(mb(((f=e.current)==null?void 0:f.value)||"error.error"))}},"unique-id")},a):k.jsxs("div",{className:`file-manager-file-entry ${c} ${d} unselectable`,onClick:()=>{t(hb(a))},onContextMenu:f=>{f.stopPropagation(),f.preventDefault(),t(jv({options:[{name:"New File"},{name:"Delete File",data:{deletedFileIndex:a}},{name:"Rename File",data:{renamedFileIndex:a}}],position:{x:f.clientX,y:f.clientY}}))},children:[k.jsx("span",{className:"filename-start",children:i}),k.jsx("span",{className:"filename-end",children:o})]},a)})})]})}function hS(){const n=Bt(t=>t.tooltip.tooltips);return n.length===0?null:k.jsx(k.Fragment,{children:n.map(({id:t,message:e,position:_})=>k.jsx("div",{style:{position:"absolute",left:`${_.x}px`,top:`${_.y}px`},className:"tooltip",children:e},t))})}function bS(){const{visible:n,options:t,position:e}=Bt(i=>i.contextMenu),_=Pn(),a=q.useRef(null);return q.useEffect(()=>{const i=o=>{a.current&&!a.current.contains(o.target)&&_(Sv())};return n&&document.addEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[n,_]),n?k.jsx("div",{ref:a,style:{position:"absolute",left:`${e.x}px`,top:`${e.y}px`},className:"context-menu unselectable",children:t.map((i,o)=>k.jsx("div",{className:"context-menu-item",onClick:()=>{switch(i.name){case"New File":_(yb());break;case"Delete File":_(qx(i.data.deletedFileIndex));break;case"Rename File":_($x(i.data.renamedFileIndex));break}_(Sv())},children:i.name},o))}):null}function yS(){const n=Bt(e=>e.management),t=Pn();return k.jsx("div",{className:"management-tab-container",children:L3.map((e,_)=>{const a=n.selectedTabIndex===_?"highlight-focused-management-tab":"";return k.jsx("div",{className:`management-tab ${a} unselectable`,onClick:()=>{t(V3(_))},children:e},_)})})}BigInt.prototype.toJSON=function(){return this.toString()};function mS(){const n=Rh(),[t,e]=q.useState(!0),[_,a]=q.useState(null),i=n.isLoading||t?"":"hidden",o=n.isLoading||t?"hidden":"";return k.jsxs(Sb.Provider,{value:_,children:[k.jsx(hS,{}),k.jsx(bS,{}),k.jsx("div",{className:`main-layout-container ${i}`,children:"!!!Loading... "}),k.jsx("div",{className:`main-layout-container ${o}`,children:k.jsxs("div",{className:"editor-and-management-view-container",children:[k.jsxs("div",{className:"editor-container",children:[k.jsx(Xx,{}),k.jsxs("div",{className:"editor-content-container",children:[k.jsx(gS,{}),k.jsxs("div",{className:"editor-and-tabs-container",children:[k.jsx(pS,{}),k.jsx(Kx,{onLoad:c=>{a(c),e(!1)}})]})]})]}),k.jsxs("div",{className:"management-panel-container",children:[k.jsx(Yx,{}),k.jsx(yS,{}),k.jsx(uS,{})]})]})})]})}const vS={network:"Emulator",isLoading:!0},Cv=ki({name:"lucid",initialState:vS,reducers:{setNetwork(n,t){n.network=t.payload},setIsLucidLoading(n,t){n.isLoading=t.payload}}});Cv.actions;const kS=Cv.reducer,xS=yx({reducer:{project:Qx,files:Wx,tooltip:G3,contextMenu:wS,management:W3,lucid:kS,transact:sS}});ud.createRoot(document.getElementById("root")).render(k.jsx(Xr.StrictMode,{children:k.jsx(y6,{store:xS,children:k.jsx(K3,{children:k.jsx(mS,{})})})}))})(); diff --git a/assets/index-yzv6xz02.js b/assets/index-yzv6xz02.js deleted file mode 100644 index f1678b0..0000000 --- a/assets/index-yzv6xz02.js +++ /dev/null @@ -1,75 +0,0 @@ -(async()=>{function xv(n,t){for(var e=0;ea[_]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))e(a);new MutationObserver(a=>{for(const _ of a)if(_.type==="childList")for(const i of _.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&e(i)}).observe(document,{childList:!0,subtree:!0});function t(a){const _={};return a.integrity&&(_.integrity=a.integrity),a.referrerPolicy&&(_.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?_.credentials="include":a.crossOrigin==="anonymous"?_.credentials="omit":_.credentials="same-origin",_}function e(a){if(a.ep)return;a.ep=!0;const _=t(a);fetch(a.href,_)}})();function jv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Jp={exports:{}},lc={},Zp={exports:{}},ht={},Us=Symbol.for("react.element"),Sv=Symbol.for("react.portal"),Cv=Symbol.for("react.fragment"),Ev=Symbol.for("react.strict_mode"),Ov=Symbol.for("react.profiler"),zv=Symbol.for("react.provider"),Rv=Symbol.for("react.context"),Pv=Symbol.for("react.forward_ref"),Nv=Symbol.for("react.suspense"),Tv=Symbol.for("react.memo"),Iv=Symbol.for("react.lazy"),Yp=Symbol.iterator;function Fv(n){return n===null||typeof n!="object"?null:(n=Yp&&n[Yp]||n["@@iterator"],typeof n=="function"?n:null)}var tf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ef=Object.assign,nf={};function qi(n,t,e){this.props=n,this.context=t,this.refs=nf,this.updater=e||tf}qi.prototype.isReactComponent={},qi.prototype.setState=function(n,t){if(typeof n!="object"&&typeof n!="function"&&n!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,n,t,"setState")},qi.prototype.forceUpdate=function(n){this.updater.enqueueForceUpdate(this,n,"forceUpdate")};function rf(){}rf.prototype=qi.prototype;function sd(n,t,e){this.props=n,this.context=t,this.refs=nf,this.updater=e||tf}var od=sd.prototype=new rf;od.constructor=sd,ef(od,qi.prototype),od.isPureReactComponent=!0;var af=Array.isArray,_f=Object.prototype.hasOwnProperty,cd={current:null},sf={key:!0,ref:!0,__self:!0,__source:!0};function of(n,t,e){var a,_={},i=null,o=null;if(t!=null)for(a in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(i=""+t.key),t)_f.call(t,a)&&!sf.hasOwnProperty(a)&&(_[a]=t[a]);var c=arguments.length-2;if(c===1)_.children=e;else if(1>>1,D=V[N];if(0<_(D,it))V[N]=it,V[pt]=D,pt=N;else break t}}function e(V){return V.length===0?null:V[0]}function a(V){if(V.length===0)return null;var it=V[0],pt=V.pop();if(pt!==it){V[0]=pt;t:for(var N=0,D=V.length,G=D>>>1;N_(tt,pt))Tt_(Me,tt)?(V[N]=Me,V[Tt]=pt,N=Tt):(V[N]=tt,V[U]=pt,N=U);else if(Tt_(Me,pt))V[N]=Me,V[Tt]=pt,N=Tt;else break t}}return it}function _(V,it){var pt=V.sortIndex-it.sortIndex;return pt!==0?pt:V.id-it.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var o=Date,c=o.now();n.unstable_now=function(){return o.now()-c}}var d=[],f=[],h=1,v=null,y=3,x=!1,O=!1,P=!1,A=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function g(V){for(var it=e(f);it!==null;){if(it.callback===null)a(f);else if(it.startTime<=V)a(f),it.sortIndex=it.expirationTime,t(d,it);else break;it=e(f)}}function T(V){if(P=!1,g(V),!O)if(e(d)!==null)O=!0,kt(I);else{var it=e(f);it!==null&&Ae(T,it.startTime-V)}}function I(V,it){O=!1,P&&(P=!1,m(B),B=-1),x=!0;var pt=y;try{for(g(it),v=e(d);v!==null&&(!(v.expirationTime>it)||V&&!Et());){var N=v.callback;if(typeof N=="function"){v.callback=null,y=v.priorityLevel;var D=N(v.expirationTime<=it);it=n.unstable_now(),typeof D=="function"?v.callback=D:v===e(d)&&a(d),g(it)}else a(d);v=e(d)}if(v!==null)var G=!0;else{var U=e(f);U!==null&&Ae(T,U.startTime-it),G=!1}return G}finally{v=null,y=pt,x=!1}}var M=!1,F=null,B=-1,et=5,q=-1;function Et(){return!(n.unstable_now()-qV||125N?(V.sortIndex=pt,t(f,V),e(d)===null&&V===e(f)&&(P?(m(B),B=-1):P=!0,Ae(T,pt-N))):(V.sortIndex=D,t(d,V),O||x||(O=!0,kt(I))),V},n.unstable_shouldYield=Et,n.unstable_wrapCallback=function(V){var it=y;return function(){var pt=y;y=it;try{return V.apply(this,arguments)}finally{y=pt}}}})(ff),pf.exports=ff;var Wv=pf.exports,wf=W,tn=Wv;function L(n){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+n,e=1;e"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pd=Object.prototype.hasOwnProperty,Kv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,hf={},bf={};function Qv(n){return pd.call(bf,n)?!0:pd.call(hf,n)?!1:Kv.test(n)?bf[n]=!0:(hf[n]=!0,!1)}function Gv(n,t,e,a){if(e!==null&&e.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:e!==null?!e.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function Xv(n,t,e,a){if(t===null||typeof t>"u"||Gv(n,t,e,a))return!0;if(a)return!1;if(e!==null)switch(e.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ce(n,t,e,a,_,i,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=_,this.mustUseProperty=e,this.propertyName=n,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var oe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){oe[n]=new Ce(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var t=n[0];oe[t]=new Ce(t,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){oe[n]=new Ce(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){oe[n]=new Ce(n,2,!1,n,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(n){oe[n]=new Ce(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){oe[n]=new Ce(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){oe[n]=new Ce(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){oe[n]=new Ce(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){oe[n]=new Ce(n,5,!1,n.toLowerCase(),null,!1,!1)});var fd=/[\-:]([a-z])/g;function wd(n){return n[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(n){var t=n.replace(fd,wd);oe[t]=new Ce(t,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var t=n.replace(fd,wd);oe[t]=new Ce(t,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var t=n.replace(fd,wd);oe[t]=new Ce(t,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){oe[n]=new Ce(n,1,!1,n.toLowerCase(),null,!1,!1)}),oe.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){oe[n]=new Ce(n,1,!1,n.toLowerCase(),null,!0,!0)});function gd(n,t,e,a){var _=oe.hasOwnProperty(t)?oe[t]:null;(_!==null?_.type!==0:a||!(2c||_[o]!==i[c]){var d=` -`+_[o].replace(" at new "," at ");return n.displayName&&d.includes("")&&(d=d.replace("",n.displayName)),d}while(1<=o&&0<=c);break}}}finally{jd=!1,Error.prepareStackTrace=e}return(n=n?n.displayName||n.name:"")?Hs(n):""}function Jv(n){switch(n.tag){case 5:return Hs(n.type);case 16:return Hs("Lazy");case 13:return Hs("Suspense");case 19:return Hs("SuspenseList");case 0:case 2:case 15:return n=Sd(n.type,!1),n;case 11:return n=Sd(n.type.render,!1),n;case 1:return n=Sd(n.type,!0),n;default:return""}}function Cd(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case Wi:return"Fragment";case $i:return"Portal";case bd:return"Profiler";case hd:return"StrictMode";case md:return"Suspense";case vd:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case mf:return(n.displayName||"Context")+".Consumer";case yf:return(n._context.displayName||"Context")+".Provider";case yd:var t=n.render;return n=n.displayName,n||(n=t.displayName||t.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case kd:return t=n.displayName||null,t!==null?t:Cd(n.type)||"Memo";case i_:t=n._payload,n=n._init;try{return Cd(n(t))}catch{}}return null}function Zv(n){var t=n.type;switch(n.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=t.render,n=n.displayName||n.name||"",t.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Cd(t);case 8:return t===hd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function s_(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function xf(n){var t=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Yv(n){var t=xf(n)?"checked":"value",e=Object.getOwnPropertyDescriptor(n.constructor.prototype,t),a=""+n[t];if(!n.hasOwnProperty(t)&&typeof e<"u"&&typeof e.get=="function"&&typeof e.set=="function"){var _=e.get,i=e.set;return Object.defineProperty(n,t,{configurable:!0,get:function(){return _.call(this)},set:function(o){a=""+o,i.call(this,o)}}),Object.defineProperty(n,t,{enumerable:e.enumerable}),{getValue:function(){return a},setValue:function(o){a=""+o},stopTracking:function(){n._valueTracker=null,delete n[t]}}}}function wc(n){n._valueTracker||(n._valueTracker=Yv(n))}function jf(n){if(!n)return!1;var t=n._valueTracker;if(!t)return!0;var e=t.getValue(),a="";return n&&(a=xf(n)?n.checked?"true":"false":n.value),n=a,n!==e?(t.setValue(n),!0):!1}function gc(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Ed(n,t){var e=t.checked;return Dt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:e??n._wrapperState.initialChecked})}function Sf(n,t){var e=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;e=s_(t.value!=null?t.value:e),n._wrapperState={initialChecked:a,initialValue:e,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Cf(n,t){t=t.checked,t!=null&&gd(n,"checked",t,!1)}function Od(n,t){Cf(n,t);var e=s_(t.value),a=t.type;if(e!=null)a==="number"?(e===0&&n.value===""||n.value!=e)&&(n.value=""+e):n.value!==""+e&&(n.value=""+e);else if(a==="submit"||a==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?zd(n,t.type,e):t.hasOwnProperty("defaultValue")&&zd(n,t.type,s_(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function Ef(n,t,e){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+n._wrapperState.initialValue,e||t===n.value||(n.value=t),n.defaultValue=t}e=n.name,e!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,e!==""&&(n.name=e)}function zd(n,t,e){(t!=="number"||gc(n.ownerDocument)!==n)&&(e==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+e&&(n.defaultValue=""+e))}var $s=Array.isArray;function Ki(n,t,e,a){if(n=n.options,t){t={};for(var _=0;_"+t.valueOf().toString()+"",t=hc.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;t.firstChild;)n.appendChild(t.firstChild)}});function Ws(n,t){if(t){var e=n.firstChild;if(e&&e===n.lastChild&&e.nodeType===3){e.nodeValue=t;return}}n.textContent=t}var Ks={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tk=["Webkit","ms","Moz","O"];Object.keys(Ks).forEach(function(n){tk.forEach(function(t){t=t+n.charAt(0).toUpperCase()+n.substring(1),Ks[t]=Ks[n]})});function Tf(n,t,e){return t==null||typeof t=="boolean"||t===""?"":e||typeof t!="number"||t===0||Ks.hasOwnProperty(n)&&Ks[n]?(""+t).trim():t+"px"}function If(n,t){n=n.style;for(var e in t)if(t.hasOwnProperty(e)){var a=e.indexOf("--")===0,_=Tf(e,t[e],a);e==="float"&&(e="cssFloat"),a?n.setProperty(e,_):n[e]=_}}var ek=Dt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Nd(n,t){if(t){if(ek[n]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(L(137,n));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(L(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(L(61))}if(t.style!=null&&typeof t.style!="object")throw Error(L(62))}}function Td(n,t){if(n.indexOf("-")===-1)return typeof t.is=="string";switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Id=null;function Fd(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Dd=null,Qi=null,Gi=null;function Ff(n){if(n=go(n)){if(typeof Dd!="function")throw Error(L(280));var t=n.stateNode;t&&(t=Lc(t),Dd(n.stateNode,n.type,t))}}function Df(n){Qi?Gi?Gi.push(n):Gi=[n]:Qi=n}function Af(){if(Qi){var n=Qi,t=Gi;if(Gi=Qi=null,Ff(n),t)for(n=0;n>>=0,n===0?32:31-(uk(n)/pk|0)|0}var kc=64,xc=4194304;function Js(n){switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function jc(n,t){var e=n.pendingLanes;if(e===0)return 0;var a=0,_=n.suspendedLanes,i=n.pingedLanes,o=e&268435455;if(o!==0){var c=o&~_;c!==0?a=Js(c):(i&=o,i!==0&&(a=Js(i)))}else o=e&~_,o!==0?a=Js(o):i!==0&&(a=Js(i));if(a===0)return 0;if(t!==0&&t!==a&&!(t&_)&&(_=a&-a,i=t&-t,_>=i||_===16&&(i&4194240)!==0))return t;if(a&4&&(a|=e&16),t=n.entangledLanes,t!==0)for(n=n.entanglements,t&=a;0e;e++)t.push(n);return t}function Zs(n,t,e){n.pendingLanes|=t,t!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,t=31-Vn(t),n[t]=e}function hk(n,t){var e=n.pendingLanes&~t;n.pendingLanes=t,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=t,n.mutableReadLanes&=t,n.entangledLanes&=t,t=n.entanglements;var a=n.eventTimes;for(n=n.expirationTimes;0=io),dw=" ",uw=!1;function pw(n,t){switch(n){case"keyup":return $k.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fw(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Zi=!1;function Kk(n,t){switch(n){case"compositionend":return fw(t);case"keypress":return t.which!==32?null:(uw=!0,dw);case"textInput":return n=t.data,n===dw&&uw?null:n;default:return null}}function Qk(n,t){if(Zi)return n==="compositionend"||!tu&&pw(n,t)?(n=_w(),zc=Qd=u_=null,Zi=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:e,offset:t-n};n=a}t:{for(;e;){if(e.nextSibling){e=e.nextSibling;break t}e=e.parentNode}e=void 0}e=vw(e)}}function xw(n,t){return n&&t?n===t?!0:n&&n.nodeType===3?!1:t&&t.nodeType===3?xw(n,t.parentNode):"contains"in n?n.contains(t):n.compareDocumentPosition?!!(n.compareDocumentPosition(t)&16):!1:!1}function jw(){for(var n=window,t=gc();t instanceof n.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)n=t.contentWindow;else break;t=gc(n.document)}return t}function ru(n){var t=n&&n.nodeName&&n.nodeName.toLowerCase();return t&&(t==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||t==="textarea"||n.contentEditable==="true")}function r4(n){var t=jw(),e=n.focusedElem,a=n.selectionRange;if(t!==e&&e&&e.ownerDocument&&xw(e.ownerDocument.documentElement,e)){if(a!==null&&ru(e)){if(t=a.start,n=a.end,n===void 0&&(n=t),"selectionStart"in e)e.selectionStart=t,e.selectionEnd=Math.min(n,e.value.length);else if(n=(t=e.ownerDocument||document)&&t.defaultView||window,n.getSelection){n=n.getSelection();var _=e.textContent.length,i=Math.min(a.start,_);a=a.end===void 0?i:Math.min(a.end,_),!n.extend&&i>a&&(_=a,a=i,i=_),_=kw(e,i);var o=kw(e,a);_&&o&&(n.rangeCount!==1||n.anchorNode!==_.node||n.anchorOffset!==_.offset||n.focusNode!==o.node||n.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(_.node,_.offset),n.removeAllRanges(),i>a?(n.addRange(t),n.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),n.addRange(t)))}}for(t=[],n=e;n=n.parentNode;)n.nodeType===1&&t.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof e.focus=="function"&&e.focus(),e=0;e=document.documentMode,Yi=null,au=null,lo=null,_u=!1;function Sw(n,t,e){var a=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;_u||Yi==null||Yi!==gc(a)||(a=Yi,"selectionStart"in a&&ru(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),lo&&co(lo,a)||(lo=a,a=Ac(au,"onSelect"),0as||(n.current=hu[as],hu[as]=null,as--)}function Ot(n,t){as++,hu[as]=n.current,n.current=t}var g_={},ge=w_(g_),Be=w_(!1),ci=g_;function _s(n,t){var e=n.type.contextTypes;if(!e)return g_;var a=n.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var _={},i;for(i in e)_[i]=t[i];return a&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=t,n.__reactInternalMemoizedMaskedChildContext=_),_}function Le(n){return n=n.childContextTypes,n!=null}function Uc(){Pt(Be),Pt(ge)}function Lw(n,t,e){if(ge.current!==g_)throw Error(L(168));Ot(ge,t),Ot(Be,e)}function Uw(n,t,e){var a=n.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return e;a=a.getChildContext();for(var _ in a)if(!(_ in t))throw Error(L(108,Zv(n)||"Unknown",_));return Dt({},e,a)}function Vc(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||g_,ci=ge.current,Ot(ge,n),Ot(Be,Be.current),!0}function Vw(n,t,e){var a=n.stateNode;if(!a)throw Error(L(169));e?(n=Uw(n,t,ci),a.__reactInternalMemoizedMergedChildContext=n,Pt(Be),Pt(ge),Ot(ge,n)):Pt(Be),Ot(Be,e)}var ea=null,qc=!1,bu=!1;function qw(n){ea===null?ea=[n]:ea.push(n)}function w4(n){qc=!0,qw(n)}function h_(){if(!bu&&ea!==null){bu=!0;var n=0,t=xt;try{var e=ea;for(xt=1;n>=o,_-=o,na=1<<32-Vn(t)+_|e<<_|a,ra=i+n}else na=1<B?(et=F,F=null):et=F.sibling;var q=y(m,F,g[B],T);if(q===null){F===null&&(F=et);break}n&&F&&q.alternate===null&&t(m,F),b=i(q,b,B),M===null?I=q:M.sibling=q,M=q,F=et}if(B===g.length)return e(m,F),It&&di(m,B),I;if(F===null){for(;BB?(et=F,F=null):et=F.sibling;var Et=y(m,F,q.value,T);if(Et===null){F===null&&(F=et);break}n&&F&&Et.alternate===null&&t(m,F),b=i(Et,b,B),M===null?I=Et:M.sibling=Et,M=Et,F=et}if(q.done)return e(m,F),It&&di(m,B),I;if(F===null){for(;!q.done;B++,q=g.next())q=v(m,q.value,T),q!==null&&(b=i(q,b,B),M===null?I=q:M.sibling=q,M=q);return It&&di(m,B),I}for(F=a(m,F);!q.done;B++,q=g.next())q=x(F,m,B,q.value,T),q!==null&&(n&&q.alternate!==null&&F.delete(q.key===null?B:q.key),b=i(q,b,B),M===null?I=q:M.sibling=q,M=q);return n&&F.forEach(function(De){return t(m,De)}),It&&di(m,B),I}function A(m,b,g,T){if(typeof g=="object"&&g!==null&&g.type===Wi&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case fc:t:{for(var I=g.key,M=b;M!==null;){if(M.key===I){if(I=g.type,I===Wi){if(M.tag===7){e(m,M.sibling),b=_(M,g.props.children),b.return=m,m=b;break t}}else if(M.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===i_&&rg(I)===M.type){e(m,M.sibling),b=_(M,g.props),b.ref=ho(m,M,g),b.return=m,m=b;break t}e(m,M);break}else t(m,M);M=M.sibling}g.type===Wi?(b=yi(g.props.children,m.mode,T,g.key),b.return=m,m=b):(T=hl(g.type,g.key,g.props,null,m.mode,T),T.ref=ho(m,b,g),T.return=m,m=T)}return o(m);case $i:t:{for(M=g.key;b!==null;){if(b.key===M)if(b.tag===4&&b.stateNode.containerInfo===g.containerInfo&&b.stateNode.implementation===g.implementation){e(m,b.sibling),b=_(b,g.children||[]),b.return=m,m=b;break t}else{e(m,b);break}else t(m,b);b=b.sibling}b=fp(g,m.mode,T),b.return=m,m=b}return o(m);case i_:return M=g._init,A(m,b,M(g._payload),T)}if($s(g))return O(m,b,g,T);if(qs(g))return P(m,b,g,T);Zc(m,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,b!==null&&b.tag===6?(e(m,b.sibling),b=_(b,g),b.return=m,m=b):(e(m,b),b=pp(g,m.mode,T),b.return=m,m=b),o(m)):e(m,b)}return A}var ds=ag(!0),_g=ag(!1),bo={},fr=w_(bo),yo=w_(bo),mo=w_(bo);function pi(n){if(n===bo)throw Error(L(174));return n}function Nu(n,t){switch(Ot(mo,t),Ot(yo,n),Ot(fr,bo),n=t.nodeType,n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pd(null,"");break;default:n=n===8?t.parentNode:t,t=n.namespaceURI||null,n=n.tagName,t=Pd(t,n)}Pt(fr),Ot(fr,t)}function us(){Pt(fr),Pt(yo),Pt(mo)}function ig(n){pi(mo.current);var t=pi(fr.current),e=Pd(t,n.type);t!==e&&(Ot(yo,n),Ot(fr,e))}function Tu(n){yo.current===n&&(Pt(fr),Pt(yo))}var At=w_(0);function Yc(n){for(var t=n;t!==null;){if(t.tag===13){var e=t.memoizedState;if(e!==null&&(e=e.dehydrated,e===null||e.data==="$?"||e.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break;for(;t.sibling===null;){if(t.return===null||t.return===n)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Iu=[];function Fu(){for(var n=0;ne?e:4,n(!0);var a=Du.transition;Du.transition={};try{n(!1),t()}finally{xt=e,Du.transition=a}}function jg(){return On().memoizedState}function y4(n,t,e){var a=x_(n);if(e={lane:a,action:e,hasEagerState:!1,eagerState:null,next:null},Sg(n))Cg(t,e);else if(e=Gw(n,t,e,a),e!==null){var _=Oe();Qn(e,n,a,_),Eg(e,t,a)}}function m4(n,t,e){var a=x_(n),_={lane:a,action:e,hasEagerState:!1,eagerState:null,next:null};if(Sg(n))Cg(t,_);else{var i=n.alternate;if(n.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,c=i(o,e);if(_.hasEagerState=!0,_.eagerState=c,qn(c,o)){var d=t.interleaved;d===null?(_.next=_,Ou(t)):(_.next=d.next,d.next=_),t.interleaved=_;return}}catch{}finally{}e=Gw(n,t,_,a),e!==null&&(_=Oe(),Qn(e,n,a,_),Eg(e,t,a))}}function Sg(n){var t=n.alternate;return n===Mt||t!==null&&t===Mt}function Cg(n,t){vo=el=!0;var e=n.pending;e===null?t.next=t:(t.next=e.next,e.next=t),n.pending=t}function Eg(n,t,e){if(e&4194240){var a=t.lanes;a&=n.pendingLanes,e|=a,t.lanes=e,qd(n,e)}}var al={readContext:En,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},v4={readContext:En,useCallback:function(n,t){return wr().memoizedState=[n,t===void 0?null:t],n},useContext:En,useEffect:gg,useImperativeHandle:function(n,t,e){return e=e!=null?e.concat([n]):null,nl(4194308,4,yg.bind(null,t,n),e)},useLayoutEffect:function(n,t){return nl(4194308,4,n,t)},useInsertionEffect:function(n,t){return nl(4,2,n,t)},useMemo:function(n,t){var e=wr();return t=t===void 0?null:t,n=n(),e.memoizedState=[n,t],n},useReducer:function(n,t,e){var a=wr();return t=e!==void 0?e(t):t,a.memoizedState=a.baseState=t,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:t},a.queue=n,n=n.dispatch=y4.bind(null,Mt,n),[a.memoizedState,n]},useRef:function(n){var t=wr();return n={current:n},t.memoizedState=n},useState:fg,useDebugValue:qu,useDeferredValue:function(n){return wr().memoizedState=n},useTransition:function(){var n=fg(!1),t=n[0];return n=b4.bind(null,n[1]),wr().memoizedState=n,[t,n]},useMutableSource:function(){},useSyncExternalStore:function(n,t,e){var a=Mt,_=wr();if(It){if(e===void 0)throw Error(L(407));e=e()}else{if(e=t(),Yt===null)throw Error(L(349));fi&30||cg(a,t,e)}_.memoizedState=e;var i={value:e,getSnapshot:t};return _.queue=i,gg(dg.bind(null,a,i,n),[n]),a.flags|=2048,jo(9,lg.bind(null,a,i,e,t),void 0,null),e},useId:function(){var n=wr(),t=Yt.identifierPrefix;if(It){var e=ra,a=na;e=(a&~(1<<32-Vn(a)-1)).toString(32)+e,t=":"+t+"R"+e,e=ko++,0<\/script>",n=n.removeChild(n.firstChild)):typeof a.is=="string"?n=o.createElement(e,{is:a.is}):(n=o.createElement(e),e==="select"&&(o=n,a.multiple?o.multiple=!0:a.size&&(o.size=a.size))):n=o.createElementNS(n,e),n[pr]=t,n[wo]=a,Hg(n,t,!1,!1),t.stateNode=n;t:{switch(o=Td(e,a),e){case"dialog":Rt("cancel",n),Rt("close",n),_=a;break;case"iframe":case"object":case"embed":Rt("load",n),_=a;break;case"video":case"audio":for(_=0;_hs&&(t.flags|=128,a=!0,So(i,!1),t.lanes=4194304)}else{if(!a)if(n=Yc(o),n!==null){if(t.flags|=128,a=!0,e=n.updateQueue,e!==null&&(t.updateQueue=e,t.flags|=4),So(i,!0),i.tail===null&&i.tailMode==="hidden"&&!o.alternate&&!It)return be(t),null}else 2*Vt()-i.renderingStartTime>hs&&e!==1073741824&&(t.flags|=128,a=!0,So(i,!1),t.lanes=4194304);i.isBackwards?(o.sibling=t.child,t.child=o):(e=i.last,e!==null?e.sibling=o:t.child=o,i.last=o)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Vt(),t.sibling=null,e=At.current,Ot(At,a?e&1|2:e&1),t):(be(t),null);case 22:case 23:return lp(),a=t.memoizedState!==null,n!==null&&n.memoizedState!==null!==a&&(t.flags|=8192),a&&t.mode&1?an&1073741824&&(be(t),t.subtreeFlags&6&&(t.flags|=8192)):be(t),null;case 24:return null;case 25:return null}throw Error(L(156,t.tag))}function z4(n,t){switch(mu(t),t.tag){case 1:return Le(t.type)&&Uc(),n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 3:return us(),Pt(Be),Pt(ge),Fu(),n=t.flags,n&65536&&!(n&128)?(t.flags=n&-65537|128,t):null;case 5:return Tu(t),null;case 13:if(Pt(At),n=t.memoizedState,n!==null&&n.dehydrated!==null){if(t.alternate===null)throw Error(L(340));os()}return n=t.flags,n&65536?(t.flags=n&-65537|128,t):null;case 19:return Pt(At),null;case 4:return us(),null;case 10:return Cu(t.type._context),null;case 22:case 23:return lp(),null;case 24:return null;default:return null}}var sl=!1,ye=!1,R4=typeof WeakSet=="function"?WeakSet:Set,Q=null;function ws(n,t){var e=n.ref;if(e!==null)if(typeof e=="function")try{e(null)}catch(a){Bt(n,t,a)}else e.current=null}function Kg(n,t,e){try{e()}catch(a){Bt(n,t,a)}}var Qg=!1;function P4(n,t){if(du=Ec,n=jw(),ru(n)){if("selectionStart"in n)var e={start:n.selectionStart,end:n.selectionEnd};else t:{e=(e=n.ownerDocument)&&e.defaultView||window;var a=e.getSelection&&e.getSelection();if(a&&a.rangeCount!==0){e=a.anchorNode;var _=a.anchorOffset,i=a.focusNode;a=a.focusOffset;try{e.nodeType,i.nodeType}catch{e=null;break t}var o=0,c=-1,d=-1,f=0,h=0,v=n,y=null;e:for(;;){for(var x;v!==e||_!==0&&v.nodeType!==3||(c=o+_),v!==i||a!==0&&v.nodeType!==3||(d=o+a),v.nodeType===3&&(o+=v.nodeValue.length),(x=v.firstChild)!==null;)y=v,v=x;for(;;){if(v===n)break e;if(y===e&&++f===_&&(c=o),y===i&&++h===a&&(d=o),(x=v.nextSibling)!==null)break;v=y,y=v.parentNode}v=x}e=c===-1||d===-1?null:{start:c,end:d}}else e=null}e=e||{start:0,end:0}}else e=null;for(uu={focusedElem:n,selectionRange:e},Ec=!1,Q=t;Q!==null;)if(t=Q,n=t.child,(t.subtreeFlags&1028)!==0&&n!==null)n.return=t,Q=n;else for(;Q!==null;){t=Q;try{var O=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var P=O.memoizedProps,A=O.memoizedState,m=t.stateNode,b=m.getSnapshotBeforeUpdate(t.elementType===t.type?P:$n(t.type,P),A);m.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(L(163))}}catch(T){Bt(t,t.return,T)}if(n=t.sibling,n!==null){n.return=t.return,Q=n;break}Q=t.return}return O=Qg,Qg=!1,O}function Co(n,t,e){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var _=a=a.next;do{if((_.tag&n)===n){var i=_.destroy;_.destroy=void 0,i!==void 0&&Kg(t,e,i)}_=_.next}while(_!==a)}}function ol(n,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var e=t=t.next;do{if((e.tag&n)===n){var a=e.create;e.destroy=a()}e=e.next}while(e!==t)}}function Yu(n){var t=n.ref;if(t!==null){var e=n.stateNode;switch(n.tag){case 5:n=e;break;default:n=e}typeof t=="function"?t(n):t.current=n}}function Gg(n){var t=n.alternate;t!==null&&(n.alternate=null,Gg(t)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(t=n.stateNode,t!==null&&(delete t[pr],delete t[wo],delete t[gu],delete t[p4],delete t[f4])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Xg(n){return n.tag===5||n.tag===3||n.tag===4}function Jg(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||Xg(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function tp(n,t,e){var a=n.tag;if(a===5||a===6)n=n.stateNode,t?e.nodeType===8?e.parentNode.insertBefore(n,t):e.insertBefore(n,t):(e.nodeType===8?(t=e.parentNode,t.insertBefore(n,e)):(t=e,t.appendChild(n)),e=e._reactRootContainer,e!=null||t.onclick!==null||(t.onclick=Bc));else if(a!==4&&(n=n.child,n!==null))for(tp(n,t,e),n=n.sibling;n!==null;)tp(n,t,e),n=n.sibling}function ep(n,t,e){var a=n.tag;if(a===5||a===6)n=n.stateNode,t?e.insertBefore(n,t):e.appendChild(n);else if(a!==4&&(n=n.child,n!==null))for(ep(n,t,e),n=n.sibling;n!==null;)ep(n,t,e),n=n.sibling}var ce=null,Wn=!1;function m_(n,t,e){for(e=e.child;e!==null;)Zg(n,t,e),e=e.sibling}function Zg(n,t,e){if(ur&&typeof ur.onCommitFiberUnmount=="function")try{ur.onCommitFiberUnmount(vc,e)}catch{}switch(e.tag){case 5:ye||ws(e,t);case 6:var a=ce,_=Wn;ce=null,m_(n,t,e),ce=a,Wn=_,ce!==null&&(Wn?(n=ce,e=e.stateNode,n.nodeType===8?n.parentNode.removeChild(e):n.removeChild(e)):ce.removeChild(e.stateNode));break;case 18:ce!==null&&(Wn?(n=ce,e=e.stateNode,n.nodeType===8?wu(n.parentNode,e):n.nodeType===1&&wu(n,e),ro(n)):wu(ce,e.stateNode));break;case 4:a=ce,_=Wn,ce=e.stateNode.containerInfo,Wn=!0,m_(n,t,e),ce=a,Wn=_;break;case 0:case 11:case 14:case 15:if(!ye&&(a=e.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){_=a=a.next;do{var i=_,o=i.destroy;i=i.tag,o!==void 0&&(i&2||i&4)&&Kg(e,t,o),_=_.next}while(_!==a)}m_(n,t,e);break;case 1:if(!ye&&(ws(e,t),a=e.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=e.memoizedProps,a.state=e.memoizedState,a.componentWillUnmount()}catch(c){Bt(e,t,c)}m_(n,t,e);break;case 21:m_(n,t,e);break;case 22:e.mode&1?(ye=(a=ye)||e.memoizedState!==null,m_(n,t,e),ye=a):m_(n,t,e);break;default:m_(n,t,e)}}function Yg(n){var t=n.updateQueue;if(t!==null){n.updateQueue=null;var e=n.stateNode;e===null&&(e=n.stateNode=new R4),t.forEach(function(a){var _=L4.bind(null,n,a);e.has(a)||(e.add(a),a.then(_,_))})}}function Kn(n,t){var e=t.deletions;if(e!==null)for(var a=0;a_&&(_=o),a&=~i}if(a=_,a=Vt()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*T4(a/1960))-a,10n?16:n,k_===null)var a=!1;else{if(n=k_,k_=null,pl=0,yt&6)throw Error(L(331));var _=yt;for(yt|=4,Q=n.current;Q!==null;){var i=Q,o=i.child;if(Q.flags&16){var c=i.deletions;if(c!==null){for(var d=0;dVt()-ap?hi(n,0):rp|=e),qe(n,t)}function uh(n,t){t===0&&(n.mode&1?(t=xc,xc<<=1,!(xc&130023424)&&(xc=4194304)):t=1);var e=Oe();n=aa(n,t),n!==null&&(Zs(n,t,e),qe(n,e))}function B4(n){var t=n.memoizedState,e=0;t!==null&&(e=t.retryLane),uh(n,e)}function L4(n,t){var e=0;switch(n.tag){case 13:var a=n.stateNode,_=n.memoizedState;_!==null&&(e=_.retryLane);break;case 19:a=n.stateNode;break;default:throw Error(L(314))}a!==null&&a.delete(t),uh(n,e)}var ph;ph=function(n,t,e){if(n!==null)if(n.memoizedProps!==t.pendingProps||Be.current)Ue=!0;else{if(!(n.lanes&e)&&!(t.flags&128))return Ue=!1,E4(n,t,e);Ue=!!(n.flags&131072)}else Ue=!1,It&&t.flags&1048576&&Hw(t,$c,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;il(n,t),n=t.pendingProps;var _=_s(t,ge.current);ls(t,e),_=Mu(null,t,a,n,_,e);var i=Bu();return t.flags|=1,typeof _=="object"&&_!==null&&typeof _.render=="function"&&_.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(a)?(i=!0,Vc(t)):i=!1,t.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,zu(t),_.updater=Jc,t.stateNode=_,_._reactInternals=t,Pu(t,a,n,e),t=Ku(null,t,a,!0,i,e)):(t.tag=0,It&&i&&yu(t),Ee(null,t,_,e),t=t.child),t;case 16:a=t.elementType;t:{switch(il(n,t),n=t.pendingProps,_=a._init,a=_(a._payload),t.type=a,_=t.tag=V4(a),n=$n(a,n),_){case 0:t=Wu(null,t,a,n,e);break t;case 1:t=Mg(null,t,a,n,e);break t;case 11:t=Tg(null,t,a,n,e);break t;case 14:t=Ig(null,t,a,$n(a.type,n),e);break t}throw Error(L(306,a,""))}return t;case 0:return a=t.type,_=t.pendingProps,_=t.elementType===a?_:$n(a,_),Wu(n,t,a,_,e);case 1:return a=t.type,_=t.pendingProps,_=t.elementType===a?_:$n(a,_),Mg(n,t,a,_,e);case 3:t:{if(Bg(t),n===null)throw Error(L(387));a=t.pendingProps,i=t.memoizedState,_=i.element,Xw(n,t),Xc(t,a,null,e);var o=t.memoizedState;if(a=o.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){_=ps(Error(L(423)),t),t=Lg(n,t,a,e,_);break t}else if(a!==_){_=ps(Error(L(424)),t),t=Lg(n,t,a,e,_);break t}else for(rn=f_(t.stateNode.containerInfo.firstChild),nn=t,It=!0,Hn=null,e=_g(t,null,a,e),t.child=e;e;)e.flags=e.flags&-3|4096,e=e.sibling;else{if(os(),a===_){t=ia(n,t,e);break t}Ee(n,t,a,e)}t=t.child}return t;case 5:return ig(t),n===null&&ku(t),a=t.type,_=t.pendingProps,i=n!==null?n.memoizedProps:null,o=_.children,pu(a,_)?o=null:i!==null&&pu(a,i)&&(t.flags|=32),Ag(n,t),Ee(n,t,o,e),t.child;case 6:return n===null&&ku(t),null;case 13:return Ug(n,t,e);case 4:return Nu(t,t.stateNode.containerInfo),a=t.pendingProps,n===null?t.child=ds(t,null,a,e):Ee(n,t,a,e),t.child;case 11:return a=t.type,_=t.pendingProps,_=t.elementType===a?_:$n(a,_),Tg(n,t,a,_,e);case 7:return Ee(n,t,t.pendingProps,e),t.child;case 8:return Ee(n,t,t.pendingProps.children,e),t.child;case 12:return Ee(n,t,t.pendingProps.children,e),t.child;case 10:t:{if(a=t.type._context,_=t.pendingProps,i=t.memoizedProps,o=_.value,Ot(Kc,a._currentValue),a._currentValue=o,i!==null)if(qn(i.value,o)){if(i.children===_.children&&!Be.current){t=ia(n,t,e);break t}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){o=i.child;for(var d=c.firstContext;d!==null;){if(d.context===a){if(i.tag===1){d=_a(-1,e&-e),d.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var h=f.pending;h===null?d.next=d:(d.next=h.next,h.next=d),f.pending=d}}i.lanes|=e,d=i.alternate,d!==null&&(d.lanes|=e),Eu(i.return,e,t),c.lanes|=e;break}d=d.next}}else if(i.tag===10)o=i.type===t.type?null:i.child;else if(i.tag===18){if(o=i.return,o===null)throw Error(L(341));o.lanes|=e,c=o.alternate,c!==null&&(c.lanes|=e),Eu(o,e,t),o=i.sibling}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===t){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}Ee(n,t,_.children,e),t=t.child}return t;case 9:return _=t.type,a=t.pendingProps.children,ls(t,e),_=En(_),a=a(_),t.flags|=1,Ee(n,t,a,e),t.child;case 14:return a=t.type,_=$n(a,t.pendingProps),_=$n(a.type,_),Ig(n,t,a,_,e);case 15:return Fg(n,t,t.type,t.pendingProps,e);case 17:return a=t.type,_=t.pendingProps,_=t.elementType===a?_:$n(a,_),il(n,t),t.tag=1,Le(a)?(n=!0,Vc(t)):n=!1,ls(t,e),eg(t,a,_),Pu(t,a,_,e),Ku(null,t,a,!0,n,e);case 19:return qg(n,t,e);case 22:return Dg(n,t,e)}throw Error(L(156,t.tag))};function fh(n,t){return $f(n,t)}function U4(n,t,e,a){this.tag=n,this.key=e,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(n,t,e,a){return new U4(n,t,e,a)}function up(n){return n=n.prototype,!(!n||!n.isReactComponent)}function V4(n){if(typeof n=="function")return up(n)?1:0;if(n!=null){if(n=n.$$typeof,n===yd)return 11;if(n===kd)return 14}return 2}function S_(n,t){var e=n.alternate;return e===null?(e=Rn(n.tag,t,n.key,n.mode),e.elementType=n.elementType,e.type=n.type,e.stateNode=n.stateNode,e.alternate=n,n.alternate=e):(e.pendingProps=t,e.type=n.type,e.flags=0,e.subtreeFlags=0,e.deletions=null),e.flags=n.flags&14680064,e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},e.sibling=n.sibling,e.index=n.index,e.ref=n.ref,e}function hl(n,t,e,a,_,i){var o=2;if(a=n,typeof n=="function")up(n)&&(o=1);else if(typeof n=="string")o=5;else t:switch(n){case Wi:return yi(e.children,_,i,t);case hd:o=8,_|=8;break;case bd:return n=Rn(12,e,t,_|2),n.elementType=bd,n.lanes=i,n;case md:return n=Rn(13,e,t,_),n.elementType=md,n.lanes=i,n;case vd:return n=Rn(19,e,t,_),n.elementType=vd,n.lanes=i,n;case vf:return bl(e,_,i,t);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case yf:o=10;break t;case mf:o=9;break t;case yd:o=11;break t;case kd:o=14;break t;case i_:o=16,a=null;break t}throw Error(L(130,n==null?n:typeof n,""))}return t=Rn(o,e,t,_),t.elementType=n,t.type=a,t.lanes=i,t}function yi(n,t,e,a){return n=Rn(7,n,a,t),n.lanes=e,n}function bl(n,t,e,a){return n=Rn(22,n,a,t),n.elementType=vf,n.lanes=e,n.stateNode={isHidden:!1},n}function pp(n,t,e){return n=Rn(6,n,null,t),n.lanes=e,n}function fp(n,t,e){return t=Rn(4,n.children!==null?n.children:[],n.key,t),t.lanes=e,t.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},t}function q4(n,t,e,a,_){this.tag=t,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Vd(0),this.expirationTimes=Vd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vd(0),this.identifierPrefix=a,this.onRecoverableError=_,this.mutableSourceEagerHydrationData=null}function wp(n,t,e,a,_,i,o,c,d){return n=new q4(n,t,e,c,d),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Rn(3,null,null,t),n.current=i,i.stateNode=n,i.memoizedState={element:a,isDehydrated:e,cache:null,transitions:null,pendingSuspenseBoundaries:null},zu(i),n}function H4(n,t,e){var a=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(mh)}catch(n){console.error(n)}}mh(),uf.exports=Ye;var G4=uf.exports,vh=G4;ud.createRoot=vh.createRoot,ud.hydrateRoot=vh.hydrateRoot;var kh={exports:{}},xh={},Po=W;function X4(n,t){return n===t&&(n!==0||1/n===1/t)||n!==n&&t!==t}var J4=typeof Object.is=="function"?Object.is:X4,Z4=Po.useSyncExternalStore,Y4=Po.useRef,t6=Po.useEffect,e6=Po.useMemo,n6=Po.useDebugValue;xh.useSyncExternalStoreWithSelector=function(n,t,e,a,_){var i=Y4(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=e6(function(){function d(x){if(!f){if(f=!0,h=x,x=a(x),_!==void 0&&o.hasValue){var O=o.value;if(_(O,x))return v=O}return v=x}if(O=v,J4(h,x))return O;var P=a(x);return _!==void 0&&_(O,P)?O:(h=x,v=P)}var f=!1,h,v,y=e===void 0?null:e;return[function(){return d(t())},y===null?void 0:function(){return d(y())}]},[t,e,a,_]);var c=Z4(n,i[0],i[1]);return t6(function(){o.hasValue=!0,o.value=c},[c]),n6(c),c},kh.exports=xh;var r6=kh.exports,_n="default"in lf?Jr:lf,jh=Symbol.for("react-redux-context"),Sh=typeof globalThis<"u"?globalThis:{};function a6(){if(!_n.createContext)return{};const n=Sh[jh]??(Sh[jh]=new Map);let t=n.get(_n.createContext);return t||(t=_n.createContext(null),n.set(_n.createContext,t)),t}var C_=a6(),_6=()=>{throw new Error("uSES not initialized!")};function yp(n=C_){return function(){return _n.useContext(n)}}var Ch=yp(),Eh=_6,i6=n=>{Eh=n},s6=(n,t)=>n===t;function o6(n=C_){const t=n===C_?Ch:yp(n),e=(a,_={})=>{const{equalityFn:i=s6,devModeChecks:o={}}=typeof _=="function"?{equalityFn:_}:_,{store:c,subscription:d,getServerState:f,stabilityCheck:h,identityFunctionCheck:v}=t();_n.useRef(!0);const y=_n.useCallback({[a.name](O){return a(O)}}[a.name],[a,h,o.stabilityCheck]),x=Eh(d.addNestedSub,c.getState,f||c.getState,y,i);return _n.useDebugValue(x),x};return Object.assign(e,{withTypes:()=>e}),e}var de=o6();function c6(n){n()}function l6(){let n=null,t=null;return{clear(){n=null,t=null},notify(){c6(()=>{let e=n;for(;e;)e.callback(),e=e.next})},get(){const e=[];let a=n;for(;a;)e.push(a),a=a.next;return e},subscribe(e){let a=!0;const _=t={callback:e,next:null,prev:t};return _.prev?_.prev.next=_:n=_,function(){!a||n===null||(a=!1,_.next?_.next.prev=_.prev:t=_.prev,_.prev?_.prev.next=_.next:n=_.next)}}}}var Oh={notify(){},get:()=>[]};function d6(n,t){let e,a=Oh,_=0,i=!1;function o(P){h();const A=a.subscribe(P);let m=!1;return()=>{m||(m=!0,A(),v())}}function c(){a.notify()}function d(){O.onStateChange&&O.onStateChange()}function f(){return i}function h(){_++,e||(e=t?t.addNestedSub(d):n.subscribe(d),a=l6())}function v(){_--,e&&_===0&&(e(),e=void 0,a.clear(),a=Oh)}function y(){i||(i=!0,h())}function x(){i&&(i=!1,v())}const O={addNestedSub:o,notifyNestedSubs:c,handleChangeWrapper:d,isSubscribed:f,trySubscribe:y,tryUnsubscribe:x,getListeners:()=>a};return O}var u6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",p6=u6?_n.useLayoutEffect:_n.useEffect;function f6({store:n,context:t,children:e,serverState:a,stabilityCheck:_="once",identityFunctionCheck:i="once"}){const o=_n.useMemo(()=>{const f=d6(n);return{store:n,subscription:f,getServerState:a?()=>a:void 0,stabilityCheck:_,identityFunctionCheck:i}},[n,a,_,i]),c=_n.useMemo(()=>n.getState(),[n]);p6(()=>{const{subscription:f}=o;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),c!==n.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[o,c]);const d=t||C_;return _n.createElement(d.Provider,{value:o},e)}var w6=f6;function zh(n=C_){const t=n===C_?Ch:yp(n),e=()=>{const{store:a}=t();return a};return Object.assign(e,{withTypes:()=>e}),e}var g6=zh();function h6(n=C_){const t=n===C_?g6:zh(n),e=()=>t().dispatch;return Object.assign(e,{withTypes:()=>e}),e}var hr=h6();i6(r6.useSyncExternalStoreWithSelector);let Ft;const oa=new Array(128).fill(void 0);oa.push(void 0,null,!0,!1);function ys(n){return oa[n]}let No=oa.length;function b6(n){n<132||(oa[n]=No,No=n)}function E_(n){const t=ys(n);return b6(n),t}const Rh=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&Rh.decode();let To=null;function Sl(){return(To===null||To.byteLength===0)&&(To=new Uint8Array(Ft.memory.buffer)),To}function mp(n,t){return n=n>>>0,Rh.decode(Sl().subarray(n,n+t))}function O_(n){No===oa.length&&oa.push(oa.length+1);const t=No;return No=oa[t],oa[t]=n,t}let Io=0;const Cl=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},y6=typeof Cl.encodeInto=="function"?function(n,t){return Cl.encodeInto(n,t)}:function(n,t){const e=Cl.encode(n);return t.set(e),{read:n.length,written:e.length}};function vp(n,t,e){if(e===void 0){const c=Cl.encode(n),d=t(c.length,1)>>>0;return Sl().subarray(d,d+c.length).set(c),Io=c.length,d}let a=n.length,_=t(a,1)>>>0;const i=Sl();let o=0;for(;o127)break;i[_+o]=c}if(o!==a){o!==0&&(n=n.slice(o)),_=e(_,a,a=o+n.length*3,1)>>>0;const c=Sl().subarray(_+o,_+a),d=y6(n,c);o+=d.written,_=e(_,a,o,1)>>>0}return Io=o,_}let Fo=null;function z_(){return(Fo===null||Fo.byteLength===0)&&(Fo=new Int32Array(Ft.memory.buffer)),Fo}typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>Ft.__wbg_buildresult_free(n>>>0)),typeof FinalizationRegistry>"u"||new FinalizationRegistry(n=>Ft.__wbg_formatresult_free(n>>>0));const m6=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>Ft.__wbg_project_free(n>>>0));class v6{__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,m6.unregister(this),t}free(){const t=this.__destroy_into_raw();Ft.__wbg_project_free(t)}constructor(){const t=Ft.project_new();return this.__wbg_ptr=t>>>0,this}build(t,e){try{const o=Ft.__wbindgen_add_to_stack_pointer(-16),c=vp(t,Ft.__wbindgen_malloc,Ft.__wbindgen_realloc),d=Io;Ft.project_build(o,this.__wbg_ptr,c,d,e);var a=z_()[o/4+0],_=z_()[o/4+1],i=z_()[o/4+2];if(i)throw E_(_);return E_(a)}finally{Ft.__wbindgen_add_to_stack_pointer(16)}}format(t){try{const i=Ft.__wbindgen_add_to_stack_pointer(-16),o=vp(t,Ft.__wbindgen_malloc,Ft.__wbindgen_realloc),c=Io;Ft.project_format(i,this.__wbg_ptr,o,c);var e=z_()[i/4+0],a=z_()[i/4+1],_=z_()[i/4+2];if(_)throw E_(a);return E_(e)}finally{Ft.__wbindgen_add_to_stack_pointer(16)}}setup_stdlib(){Ft.project_setup_stdlib(this.__wbg_ptr)}}async function k6(n,t){if(typeof Response=="function"&&n instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(n,t)}catch(a){if(n.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a);else throw a}const e=await n.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(n,t);return e instanceof WebAssembly.Instance?{instance:e,module:n}:e}}function x6(){const n={};return n.wbg={},n.wbg.__wbindgen_object_drop_ref=function(t){E_(t)},n.wbg.__wbindgen_string_new=function(t,e){const a=mp(t,e);return O_(a)},n.wbg.__wbindgen_object_clone_ref=function(t){const e=ys(t);return O_(e)},n.wbg.__wbindgen_error_new=function(t,e){const a=new Error(mp(t,e));return O_(a)},n.wbg.__wbg_String_b9412f8799faab3e=function(t,e){const a=String(ys(e)),_=vp(a,Ft.__wbindgen_malloc,Ft.__wbindgen_realloc),i=Io;z_()[t/4+1]=i,z_()[t/4+0]=_},n.wbg.__wbindgen_number_new=function(t){return O_(t)},n.wbg.__wbindgen_bigint_from_i64=function(t){return O_(t)},n.wbg.__wbindgen_bigint_from_u64=function(t){const e=BigInt.asUintN(64,t);return O_(e)},n.wbg.__wbg_set_f975102236d3c502=function(t,e,a){ys(t)[E_(e)]=E_(a)},n.wbg.__wbg_log_5bb5f88f245d7762=function(t){console.log(ys(t))},n.wbg.__wbg_new_16b304a2cfa7ff4a=function(){const t=new Array;return O_(t)},n.wbg.__wbg_new_72fb9a18b5ae2624=function(){const t=new Object;return O_(t)},n.wbg.__wbg_set_d4638f722068f043=function(t,e,a){ys(t)[e>>>0]=E_(a)},n.wbg.__wbindgen_throw=function(t,e){throw new Error(mp(t,e))},n}function j6(n,t){return Ft=n.exports,Ph.__wbindgen_wasm_module=t,Fo=null,To=null,Ft}async function Ph(n){if(Ft!==void 0)return Ft;typeof n>"u"&&(n=new URL("/aiken-ide/assets/aiken_js_bindings_bg-C175zDaU.wasm",import.meta.url));const t=x6();(typeof n=="string"||typeof Request=="function"&&n instanceof Request||typeof URL=="function"&&n instanceof URL)&&(n=fetch(n));const{instance:e,module:a}=await k6(await n,t);return j6(e,a)}let ms;function Nh(){const[n,t]=W.useState(ms),[e,a]=W.useState(!1),[_,i]=W.useState(null);return W.useEffect(()=>{!ms&&!e?(a(!0),Ph().then(()=>{ms=new v6,t(ms)}).catch(o=>{i(o)}).finally(()=>{a(!1)})):ms&&t(ms)},[]),{project:n,isLoading:e,error:_}}function S6(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function Th(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(n);t&&(a=a.filter(function(_){return Object.getOwnPropertyDescriptor(n,_).enumerable})),e.push.apply(e,a)}return e}function Ih(n){for(var t=1;t=0)&&(e[_]=n[_]);return e}function E6(n,t){if(n==null)return{};var e=C6(n,t),a,_;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(_=0;_=0)&&Object.prototype.propertyIsEnumerable.call(n,a)&&(e[a]=n[a])}return e}function O6(n,t){return z6(n)||R6(n,t)||P6(n,t)||N6()}function z6(n){if(Array.isArray(n))return n}function R6(n,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(n)))){var e=[],a=!0,_=!1,i=void 0;try{for(var o=n[Symbol.iterator](),c;!(a=(c=o.next()).done)&&(e.push(c.value),!(t&&e.length===t));a=!0);}catch(d){_=!0,i=d}finally{try{!a&&o.return!=null&&o.return()}finally{if(_)throw i}}return e}}function P6(n,t){if(n){if(typeof n=="string")return Fh(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return Fh(n,t)}}function Fh(n,t){(t==null||t>n.length)&&(t=n.length);for(var e=0,a=new Array(t);e=n.length?n.apply(this,_):function(){for(var o=arguments.length,c=new Array(o),d=0;d1&&arguments[1]!==void 0?arguments[1]:{};Ol.initial(n),Ol.handler(t);var e={current:n},a=Do(W6)(e,t),_=Do($6)(e),i=Do(Ol.changes)(n),o=Do(H6)(e);function c(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(h){return h};return Ol.selector(f),f(e.current)}function d(f){I6(a,_,i,o)(f)}return[c,d]}function H6(n,t){return Ao(t)?t(n.current):t}function $6(n,t){return n.current=Ah(Ah({},n.current),t),t}function W6(n,t,e){return Ao(t)?t(n.current):Object.keys(e).forEach(function(a){var _;return(_=t[a])===null||_===void 0?void 0:_.call(t,n.current[a])}),e}var K6={create:q6},Q6={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs"}};function G6(n){return function t(){for(var e=this,a=arguments.length,_=new Array(a),i=0;i=n.length?n.apply(this,_):function(){for(var o=arguments.length,c=new Array(o),d=0;d{a.current=!1}:n,t)}var sn=m2;function Bo(){}function vs(n,t,e,a){return v2(n,a)||k2(n,t,e,a)}function v2(n,t){return n.editor.getModel(Hh(n,t))}function k2(n,t,e,a){return n.editor.createModel(t,e,a?Hh(n,a):void 0)}function Hh(n,t){return n.Uri.parse(t)}function x2({original:n,modified:t,language:e,originalLanguage:a,modifiedLanguage:_,originalModelPath:i,modifiedModelPath:o,keepCurrentOriginalModel:c=!1,keepCurrentModifiedModel:d=!1,theme:f="light",loading:h="Loading...",options:v={},height:y="100%",width:x="100%",className:O,wrapperProps:P={},beforeMount:A=Bo,onMount:m=Bo}){let[b,g]=W.useState(!1),[T,I]=W.useState(!0),M=W.useRef(null),F=W.useRef(null),B=W.useRef(null),et=W.useRef(m),q=W.useRef(A),Et=W.useRef(!1);Sp(()=>{let dt=Rl.init();return dt.then(kt=>(F.current=kt)&&I(!1)).catch(kt=>(kt==null?void 0:kt.type)!=="cancelation"&&console.error("Monaco initialization: error:",kt)),()=>M.current?dr():dt.cancel()}),sn(()=>{if(M.current&&F.current){let dt=M.current.getOriginalEditor(),kt=vs(F.current,n||"",a||e||"text",i||"");kt!==dt.getModel()&&dt.setModel(kt)}},[i],b),sn(()=>{if(M.current&&F.current){let dt=M.current.getModifiedEditor(),kt=vs(F.current,t||"",_||e||"text",o||"");kt!==dt.getModel()&&dt.setModel(kt)}},[o],b),sn(()=>{let dt=M.current.getModifiedEditor();dt.getOption(F.current.editor.EditorOption.readOnly)?dt.setValue(t||""):t!==dt.getValue()&&(dt.executeEdits("",[{range:dt.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),dt.pushUndoStop())},[t],b),sn(()=>{var dt,kt;(kt=(dt=M.current)==null?void 0:dt.getModel())==null||kt.original.setValue(n||"")},[n],b),sn(()=>{let{original:dt,modified:kt}=M.current.getModel();F.current.editor.setModelLanguage(dt,a||e||"text"),F.current.editor.setModelLanguage(kt,_||e||"text")},[e,a,_],b),sn(()=>{var dt;(dt=F.current)==null||dt.editor.setTheme(f)},[f],b),sn(()=>{var dt;(dt=M.current)==null||dt.updateOptions(v)},[v],b);let De=W.useCallback(()=>{var Ae;if(!F.current)return;q.current(F.current);let dt=vs(F.current,n||"",a||e||"text",i||""),kt=vs(F.current,t||"",_||e||"text",o||"");(Ae=M.current)==null||Ae.setModel({original:dt,modified:kt})},[e,t,_,n,a,i,o]),jn=W.useCallback(()=>{var dt;!Et.current&&B.current&&(M.current=F.current.editor.createDiffEditor(B.current,{automaticLayout:!0,...v}),De(),(dt=F.current)==null||dt.editor.setTheme(f),g(!0),Et.current=!0)},[v,f,De]);W.useEffect(()=>{b&&et.current(M.current,F.current)},[b]),W.useEffect(()=>{!T&&!b&&jn()},[T,b,jn]);function dr(){var kt,Ae,V,it;let dt=(kt=M.current)==null?void 0:kt.getModel();c||((Ae=dt==null?void 0:dt.original)==null||Ae.dispose()),d||((V=dt==null?void 0:dt.modified)==null||V.dispose()),(it=M.current)==null||it.dispose()}return Jr.createElement(qh,{width:x,height:y,isEditorReady:b,loading:h,_ref:B,className:O,wrapperProps:P})}var j2=x2;W.memo(j2);function S2(){let[n,t]=W.useState(Rl.__getMonacoInstance());return Sp(()=>{let e;return n||(e=Rl.init(),e.then(a=>{t(a)})),()=>e==null?void 0:e.cancel()}),n}var C2=S2;function E2(n){let t=W.useRef();return W.useEffect(()=>{t.current=n},[n]),t.current}var O2=E2,Pl=new Map;function z2({defaultValue:n,defaultLanguage:t,defaultPath:e,value:a,language:_,path:i,theme:o="light",line:c,loading:d="Loading...",options:f={},overrideServices:h={},saveViewState:v=!0,keepCurrentModel:y=!1,width:x="100%",height:O="100%",className:P,wrapperProps:A={},beforeMount:m=Bo,onMount:b=Bo,onChange:g,onValidate:T=Bo}){let[I,M]=W.useState(!1),[F,B]=W.useState(!0),et=W.useRef(null),q=W.useRef(null),Et=W.useRef(null),De=W.useRef(b),jn=W.useRef(m),dr=W.useRef(),dt=W.useRef(a),kt=O2(i),Ae=W.useRef(!1),V=W.useRef(!1);Sp(()=>{let N=Rl.init();return N.then(D=>(et.current=D)&&B(!1)).catch(D=>(D==null?void 0:D.type)!=="cancelation"&&console.error("Monaco initialization: error:",D)),()=>q.current?pt():N.cancel()}),sn(()=>{var D,G,U,tt;let N=vs(et.current,n||a||"",t||_||"",i||e||"");N!==((D=q.current)==null?void 0:D.getModel())&&(v&&Pl.set(kt,(G=q.current)==null?void 0:G.saveViewState()),(U=q.current)==null||U.setModel(N),v&&((tt=q.current)==null||tt.restoreViewState(Pl.get(i))))},[i],I),sn(()=>{var N;(N=q.current)==null||N.updateOptions(f)},[f],I),sn(()=>{!q.current||a===void 0||(q.current.getOption(et.current.editor.EditorOption.readOnly)?q.current.setValue(a):a!==q.current.getValue()&&(V.current=!0,q.current.executeEdits("",[{range:q.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),q.current.pushUndoStop(),V.current=!1))},[a],I),sn(()=>{var D,G;let N=(D=q.current)==null?void 0:D.getModel();N&&_&&((G=et.current)==null||G.editor.setModelLanguage(N,_))},[_],I),sn(()=>{var N;c!==void 0&&((N=q.current)==null||N.revealLine(c))},[c],I),sn(()=>{var N;(N=et.current)==null||N.editor.setTheme(o)},[o],I);let it=W.useCallback(()=>{var N;if(!(!Et.current||!et.current)&&!Ae.current){jn.current(et.current);let D=i||e,G=vs(et.current,a||n||"",t||_||"",D||"");q.current=(N=et.current)==null?void 0:N.editor.create(Et.current,{model:G,automaticLayout:!0,...f},h),v&&q.current.restoreViewState(Pl.get(D)),et.current.editor.setTheme(o),c!==void 0&&q.current.revealLine(c),M(!0),Ae.current=!0}},[n,t,e,a,_,i,f,h,v,o,c]);W.useEffect(()=>{I&&De.current(q.current,et.current)},[I]),W.useEffect(()=>{!F&&!I&&it()},[F,I,it]),dt.current=a,W.useEffect(()=>{var N,D;I&&g&&((N=dr.current)==null||N.dispose(),dr.current=(D=q.current)==null?void 0:D.onDidChangeModelContent(G=>{V.current||g(q.current.getValue(),G)}))},[I,g]),W.useEffect(()=>{if(I){let N=et.current.editor.onDidChangeMarkers(D=>{var U;let G=(U=q.current.getModel())==null?void 0:U.uri;if(G&&D.find(tt=>tt.path===G.path)){let tt=et.current.editor.getModelMarkers({resource:G});T==null||T(tt)}});return()=>{N==null||N.dispose()}}return()=>{}},[I,T]);function pt(){var N,D;(N=dr.current)==null||N.dispose(),y?v&&Pl.set(i,q.current.saveViewState()):(D=q.current.getModel())==null||D.dispose(),q.current.dispose()}return Jr.createElement(qh,{width:x,height:O,isEditorReady:I,loading:d,_ref:Et,className:P,wrapperProps:A})}var R2=z2,P2=W.memo(R2),N2=P2;const Nl={".ak":"aiken",".js":"javascript",".ts":"typescript",".json":"json",".txt":"plaintext"},$h=n=>{const t=n.slice(n.lastIndexOf("."));return Nl[t]||"plaintext"},Wh=Object.keys(Nl);function ue(n){return`Minified Redux error #${n}; visit https://redux.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}var T2=typeof Symbol=="function"&&Symbol.observable||"@@observable",Kh=T2,Cp=()=>Math.random().toString(36).substring(7).split("").join("."),I2={INIT:`@@redux/INIT${Cp()}`,REPLACE:`@@redux/REPLACE${Cp()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cp()}`},Tl=I2;function Ep(n){if(typeof n!="object"||n===null)return!1;let t=n;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===t||Object.getPrototypeOf(n)===null}function Qh(n,t,e){if(typeof n!="function")throw new Error(ue(2));if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(ue(1));return e(Qh)(n,t)}let a=n,_=t,i=new Map,o=i,c=0,d=!1;function f(){o===i&&(o=new Map,i.forEach((P,A)=>{o.set(A,P)}))}function h(){if(d)throw new Error(ue(3));return _}function v(P){if(typeof P!="function")throw new Error(ue(4));if(d)throw new Error(ue(5));let A=!0;f();const m=c++;return o.set(m,P),function(){if(A){if(d)throw new Error(ue(6));A=!1,f(),o.delete(m),i=null}}}function y(P){if(!Ep(P))throw new Error(ue(7));if(typeof P.type>"u")throw new Error(ue(8));if(typeof P.type!="string")throw new Error(ue(17));if(d)throw new Error(ue(9));try{d=!0,_=a(_,P)}finally{d=!1}return(i=o).forEach(A=>{A()}),P}function x(P){if(typeof P!="function")throw new Error(ue(10));a=P,y({type:Tl.REPLACE})}function O(){const P=v;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(ue(11));function m(){const b=A;b.next&&b.next(h())}return m(),{unsubscribe:P(m)}},[Kh](){return this}}}return y({type:Tl.INIT}),{dispatch:y,subscribe:v,getState:h,replaceReducer:x,[Kh]:O}}function F2(n){Object.keys(n).forEach(t=>{const e=n[t];if(typeof e(void 0,{type:Tl.INIT})>"u")throw new Error(ue(12));if(typeof e(void 0,{type:Tl.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function D2(n){const t=Object.keys(n),e={};for(let i=0;i"u")throw o&&o.type,new Error(ue(14));d[h]=x,c=c||x!==y}return c=c||a.length!==Object.keys(i).length,c?d:i}}function Il(...n){return n.length===0?t=>t:n.length===1?n[0]:n.reduce((t,e)=>(...a)=>t(e(...a)))}function A2(...n){return t=>(e,a)=>{const _=t(e,a);let i=()=>{throw new Error(ue(15))};const o={getState:_.getState,dispatch:(d,...f)=>i(d,...f)},c=n.map(d=>d(o));return i=Il(...c)(_.dispatch),{..._,dispatch:i}}}function M2(n){return Ep(n)&&"type"in n&&typeof n.type=="string"}var Gh=Symbol.for("immer-nothing"),Xh=Symbol.for("immer-draftable"),on=Symbol.for("immer-state");function Gn(n,...t){throw new Error(`[Immer] minified error nr: ${n}. Full error at: https://bit.ly/3cXEKWf`)}var ks=Object.getPrototypeOf;function P_(n){return!!n&&!!n[on]}function ca(n){var t;return n?Jh(n)||Array.isArray(n)||!!n[Xh]||!!((t=n.constructor)!=null&&t[Xh])||Al(n)||Ml(n):!1}var B2=Object.prototype.constructor.toString();function Jh(n){if(!n||typeof n!="object")return!1;const t=ks(n);if(t===null)return!0;const e=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return e===Object?!0:typeof e=="function"&&Function.toString.call(e)===B2}function Fl(n,t){Dl(n)===0?Reflect.ownKeys(n).forEach(e=>{t(e,n[e],n)}):n.forEach((e,a)=>t(a,e,n))}function Dl(n){const t=n[on];return t?t.type_:Array.isArray(n)?1:Al(n)?2:Ml(n)?3:0}function Op(n,t){return Dl(n)===2?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function Zh(n,t,e){const a=Dl(n);a===2?n.set(t,e):a===3?n.add(e):n[t]=e}function L2(n,t){return n===t?n!==0||1/n===1/t:n!==n&&t!==t}function Al(n){return n instanceof Map}function Ml(n){return n instanceof Set}function mi(n){return n.copy_||n.base_}function zp(n,t){if(Al(n))return new Map(n);if(Ml(n))return new Set(n);if(Array.isArray(n))return Array.prototype.slice.call(n);if(!t&&Jh(n))return ks(n)?{...n}:Object.assign(Object.create(null),n);const e=Object.getOwnPropertyDescriptors(n);delete e[on];let a=Reflect.ownKeys(e);for(let _=0;_1&&(n.set=n.add=n.clear=n.delete=U2),Object.freeze(n),t&&Object.entries(n).forEach(([e,a])=>Rp(a,!0))),n}function U2(){Gn(2)}function Bl(n){return Object.isFrozen(n)}var V2={};function vi(n){const t=V2[n];return t||Gn(0,n),t}var Lo;function Yh(){return Lo}function q2(n,t){return{drafts_:[],parent_:n,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function tb(n,t){t&&(vi("Patches"),n.patches_=[],n.inversePatches_=[],n.patchListener_=t)}function Pp(n){Np(n),n.drafts_.forEach(H2),n.drafts_=null}function Np(n){n===Lo&&(Lo=n.parent_)}function eb(n){return Lo=q2(Lo,n)}function H2(n){const t=n[on];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function nb(n,t){t.unfinalizedDrafts_=t.drafts_.length;const e=t.drafts_[0];return n!==void 0&&n!==e?(e[on].modified_&&(Pp(t),Gn(4)),ca(n)&&(n=Ll(t,n),t.parent_||Ul(t,n)),t.patches_&&vi("Patches").generateReplacementPatches_(e[on].base_,n,t.patches_,t.inversePatches_)):n=Ll(t,e,[]),Pp(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),n!==Gh?n:void 0}function Ll(n,t,e){if(Bl(t))return t;const a=t[on];if(!a)return Fl(t,(_,i)=>rb(n,a,t,_,i,e)),t;if(a.scope_!==n)return t;if(!a.modified_)return Ul(n,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const _=a.copy_;let i=_,o=!1;a.type_===3&&(i=new Set(_),_.clear(),o=!0),Fl(i,(c,d)=>rb(n,a,_,c,d,e,o)),Ul(n,_,!1),e&&n.patches_&&vi("Patches").generatePatches_(a,e,n.patches_,n.inversePatches_)}return a.copy_}function rb(n,t,e,a,_,i,o){if(P_(_)){const c=i&&t&&t.type_!==3&&!Op(t.assigned_,a)?i.concat(a):void 0,d=Ll(n,_,c);if(Zh(e,a,d),P_(d))n.canAutoFreeze_=!1;else return}else o&&e.add(_);if(ca(_)&&!Bl(_)){if(!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1)return;Ll(n,_),(!t||!t.scope_.parent_)&&typeof a!="symbol"&&Object.prototype.propertyIsEnumerable.call(e,a)&&Ul(n,_)}}function Ul(n,t,e=!1){!n.parent_&&n.immer_.autoFreeze_&&n.canAutoFreeze_&&Rp(t,e)}function $2(n,t){const e=Array.isArray(n),a={type_:e?1:0,scope_:t?t.scope_:Yh(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:n,draft_:null,copy_:null,revoke_:null,isManual_:!1};let _=a,i=Tp;e&&(_=[a],i=Uo);const{revoke:o,proxy:c}=Proxy.revocable(_,i);return a.draft_=c,a.revoke_=o,c}var Tp={get(n,t){if(t===on)return n;const e=mi(n);if(!Op(e,t))return W2(n,e,t);const a=e[t];return n.finalized_||!ca(a)?a:a===Ip(n.base_,t)?(Dp(n),n.copy_[t]=Ap(a,n)):a},has(n,t){return t in mi(n)},ownKeys(n){return Reflect.ownKeys(mi(n))},set(n,t,e){const a=ab(mi(n),t);if(a!=null&&a.set)return a.set.call(n.draft_,e),!0;if(!n.modified_){const _=Ip(mi(n),t),i=_==null?void 0:_[on];if(i&&i.base_===e)return n.copy_[t]=e,n.assigned_[t]=!1,!0;if(L2(e,_)&&(e!==void 0||Op(n.base_,t)))return!0;Dp(n),Fp(n)}return n.copy_[t]===e&&(e!==void 0||t in n.copy_)||Number.isNaN(e)&&Number.isNaN(n.copy_[t])||(n.copy_[t]=e,n.assigned_[t]=!0),!0},deleteProperty(n,t){return Ip(n.base_,t)!==void 0||t in n.base_?(n.assigned_[t]=!1,Dp(n),Fp(n)):delete n.assigned_[t],n.copy_&&delete n.copy_[t],!0},getOwnPropertyDescriptor(n,t){const e=mi(n),a=Reflect.getOwnPropertyDescriptor(e,t);return a&&{writable:!0,configurable:n.type_!==1||t!=="length",enumerable:a.enumerable,value:e[t]}},defineProperty(){Gn(11)},getPrototypeOf(n){return ks(n.base_)},setPrototypeOf(){Gn(12)}},Uo={};Fl(Tp,(n,t)=>{Uo[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Uo.deleteProperty=function(n,t){return Uo.set.call(this,n,t,void 0)},Uo.set=function(n,t,e){return Tp.set.call(this,n[0],t,e,n[0])};function Ip(n,t){const e=n[on];return(e?mi(e):n)[t]}function W2(n,t,e){var _;const a=ab(t,e);return a?"value"in a?a.value:(_=a.get)==null?void 0:_.call(n.draft_):void 0}function ab(n,t){if(!(t in n))return;let e=ks(n);for(;e;){const a=Object.getOwnPropertyDescriptor(e,t);if(a)return a;e=ks(e)}}function Fp(n){n.modified_||(n.modified_=!0,n.parent_&&Fp(n.parent_))}function Dp(n){n.copy_||(n.copy_=zp(n.base_,n.scope_.immer_.useStrictShallowCopy_))}var K2=class{constructor(n){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,a)=>{if(typeof t=="function"&&typeof e!="function"){const i=e;e=t;const o=this;return function(c=i,...d){return o.produce(c,f=>e.call(this,f,...d))}}typeof e!="function"&&Gn(6),a!==void 0&&typeof a!="function"&&Gn(7);let _;if(ca(t)){const i=eb(this),o=Ap(t,void 0);let c=!0;try{_=e(o),c=!1}finally{c?Pp(i):Np(i)}return tb(i,a),nb(_,i)}else if(!t||typeof t!="object"){if(_=e(t),_===void 0&&(_=t),_===Gh&&(_=void 0),this.autoFreeze_&&Rp(_,!0),a){const i=[],o=[];vi("Patches").generateReplacementPatches_(t,_,i,o),a(i,o)}return _}else Gn(1,t)},this.produceWithPatches=(t,e)=>{if(typeof t=="function")return(i,...o)=>this.produceWithPatches(i,c=>t(c,...o));let a,_;return[this.produce(t,e,(i,o)=>{a=i,_=o}),a,_]},typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze),typeof(n==null?void 0:n.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(n.useStrictShallowCopy)}createDraft(n){ca(n)||Gn(8),P_(n)&&(n=_b(n));const t=eb(this),e=Ap(n,void 0);return e[on].isManual_=!0,Np(t),e}finishDraft(n,t){const e=n&&n[on];(!e||!e.isManual_)&&Gn(9);const{scope_:a}=e;return tb(a,t),nb(void 0,a)}setAutoFreeze(n){this.autoFreeze_=n}setUseStrictShallowCopy(n){this.useStrictShallowCopy_=n}applyPatches(n,t){let e;for(e=t.length-1;e>=0;e--){const _=t[e];if(_.path.length===0&&_.op==="replace"){n=_.value;break}}e>-1&&(t=t.slice(e+1));const a=vi("Patches").applyPatches_;return P_(n)?a(n,t):this.produce(n,_=>a(_,t))}};function Ap(n,t){const e=Al(n)?vi("MapSet").proxyMap_(n,t):Ml(n)?vi("MapSet").proxySet_(n,t):$2(n,t);return(t?t.scope_:Yh()).drafts_.push(e),e}function _b(n){return P_(n)||Gn(10,n),ib(n)}function ib(n){if(!ca(n)||Bl(n))return n;const t=n[on];let e;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,e=zp(n,t.scope_.immer_.useStrictShallowCopy_)}else e=zp(n,!0);return Fl(e,(a,_)=>{Zh(e,a,ib(_))}),t&&(t.finalized_=!1),e}var cn=new K2,sb=cn.produce;cn.produceWithPatches.bind(cn),cn.setAutoFreeze.bind(cn),cn.setUseStrictShallowCopy.bind(cn),cn.applyPatches.bind(cn),cn.createDraft.bind(cn),cn.finishDraft.bind(cn);function Q2(n,t=`expected a function, instead received ${typeof n}`){if(typeof n!="function")throw new TypeError(t)}function G2(n,t=`expected an object, instead received ${typeof n}`){if(typeof n!="object")throw new TypeError(t)}function X2(n,t="expected all items to be functions, instead received the following types: "){if(!n.every(e=>typeof e=="function")){const e=n.map(a=>typeof a=="function"?`function ${a.name||"unnamed"}()`:typeof a).join(", ");throw new TypeError(`${t}[${e}]`)}}var ob=n=>Array.isArray(n)?n:[n];function J2(n){const t=Array.isArray(n[0])?n[0]:n;return X2(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Z2(n,t){const e=[],{length:a}=n;for(let _=0;_{e=Vl(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function lb(n,...t){const e=typeof n=="function"?{memoize:n,memoizeOptions:t}:n,a=(..._)=>{let i=0,o=0,c,d={},f=_.pop();typeof f=="object"&&(d=f,f=_.pop()),Q2(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const h={...e,...d},{memoize:v,memoizeOptions:y=[],argsMemoize:x=Mp,argsMemoizeOptions:O=[],devModeChecks:P={}}=h,A=ob(y),m=ob(O),b=J2(_),g=v(function(){return i++,f.apply(null,arguments)},...A),T=x(function(){o++;const I=Z2(b,arguments);return c=g.apply(null,I),c},...m);return Object.assign(T,{resultFunc:f,memoizedResultFunc:g,dependencies:b,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>c,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:v,argsMemoize:x})};return Object.assign(a,{withTypes:()=>a}),a}var nx=lb(Mp),rx=Object.assign((n,t=nx)=>{G2(n,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof n}`);const e=Object.keys(n),a=e.map(_=>n[_]);return t(a,(..._)=>_.reduce((i,o,c)=>(i[e[c]]=o,i),{}))},{withTypes:()=>rx});function db(n){return({dispatch:t,getState:e})=>a=>_=>typeof _=="function"?_(t,e,n):a(_)}var ax=db(),_x=db,ix=(...n)=>{const t=lb(...n),e=Object.assign((...a)=>{const _=t(...a),i=(o,...c)=>_(P_(o)?_b(o):o,...c);return Object.assign(i,_),i},{withTypes:()=>e});return e};ix(Mp);var sx=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Il:Il.apply(null,arguments)};function xs(n,t){function e(...a){if(t){let _=t(...a);if(!_)throw new Error(He(0));return{type:n,payload:_.payload,..."meta"in _&&{meta:_.meta},..."error"in _&&{error:_.error}}}return{type:n,payload:a[0]}}return e.toString=()=>`${n}`,e.type=n,e.match=a=>M2(a)&&a.type===n,e}var ub=class cc extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,cc.prototype)}static get[Symbol.species](){return cc}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new cc(...t[0].concat(this)):new cc(...t.concat(this))}};function pb(n){return ca(n)?sb(n,()=>{}):n}function fb(n,t,e){if(n.has(t)){let _=n.get(t);return e.update&&(_=e.update(_,t,n),n.set(t,_)),_}if(!e.insert)throw new Error(He(10));const a=e.insert(t,n);return n.set(t,a),a}function ox(n){return typeof n=="boolean"}var cx=()=>function(n){const{thunk:t=!0,immutableCheck:e=!0,serializableCheck:a=!0,actionCreatorCheck:_=!0}=n??{};let i=new ub;return t&&(ox(t)?i.push(ax):i.push(_x(t.extraArgument))),i},lx="RTK_autoBatch",wb=n=>t=>{setTimeout(t,n)},dx=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:wb(10),ux=(n={type:"raf"})=>t=>(...e)=>{const a=t(...e);let _=!0,i=!1,o=!1;const c=new Set,d=n.type==="tick"?queueMicrotask:n.type==="raf"?dx:n.type==="callback"?n.queueNotification:wb(n.timeout),f=()=>{o=!1,i&&(i=!1,c.forEach(h=>h()))};return Object.assign({},a,{subscribe(h){const v=()=>_&&h(),y=a.subscribe(v);return c.add(h),()=>{y(),c.delete(h)}},dispatch(h){var v;try{return _=!((v=h==null?void 0:h.meta)!=null&&v[lx]),i=!_,i&&(o||(o=!0,d(f))),a.dispatch(h)}finally{_=!0}}})},px=n=>function(t){const{autoBatch:e=!0}=t??{};let a=new ub(n);return e&&a.push(ux(typeof e=="object"?e:void 0)),a},fx=!0;function wx(n){const t=cx(),{reducer:e=void 0,middleware:a,devTools:_=!0,preloadedState:i=void 0,enhancers:o=void 0}=n||{};let c;if(typeof e=="function")c=e;else if(Ep(e))c=D2(e);else throw new Error(He(1));let d;typeof a=="function"?d=a(t):d=t();let f=Il;_&&(f=sx({trace:!fx,...typeof _=="object"&&_}));const h=A2(...d),v=px(h);let y=typeof o=="function"?o(v):v();const x=f(...y);return Qh(c,i,x)}function gb(n){const t={},e=[];let a;const _={addCase(i,o){const c=typeof i=="string"?i:i.type;if(!c)throw new Error(He(28));if(c in t)throw new Error(He(29));return t[c]=o,_},addMatcher(i,o){return e.push({matcher:i,reducer:o}),_},addDefaultCase(i){return a=i,_}};return n(_),[t,e,a]}function gx(n){return typeof n=="function"}function hx(n,t){let[e,a,_]=gb(t),i;if(gx(n))i=()=>pb(n());else{const c=pb(n);i=()=>c}function o(c=i(),d){let f=[e[d.type],...a.filter(({matcher:h})=>h(d)).map(({reducer:h})=>h)];return f.filter(h=>!!h).length===0&&(f=[_]),f.reduce((h,v)=>{if(v)if(P_(h)){const y=v(h,d);return y===void 0?h:y}else{if(ca(h))return sb(h,y=>v(y,d));{const y=v(h,d);if(y===void 0){if(h===null)return h;throw new Error(He(9))}return y}}return h},c)}return o.getInitialState=i,o}var bx="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",yx=(n=21)=>{let t="",e=n;for(;e--;)t+=bx[Math.random()*64|0];return t},mx=Symbol.for("rtk-slice-createasyncthunk");function vx(n,t){return`${n}/${t}`}function kx({creators:n}={}){var e;const t=(e=n==null?void 0:n.asyncThunk)==null?void 0:e[mx];return function(a){const{name:_,reducerPath:i=_}=a;if(!_)throw new Error(He(11));typeof process<"u";const o=(typeof a.reducers=="function"?a.reducers(jx()):a.reducers)||{},c=Object.keys(o),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(b,g){const T=typeof b=="string"?b:b.type;if(!T)throw new Error(He(12));if(T in d.sliceCaseReducersByType)throw new Error(He(13));return d.sliceCaseReducersByType[T]=g,f},addMatcher(b,g){return d.sliceMatchers.push({matcher:b,reducer:g}),f},exposeAction(b,g){return d.actionCreators[b]=g,f},exposeCaseReducer(b,g){return d.sliceCaseReducersByName[b]=g,f}};c.forEach(b=>{const g=o[b],T={reducerName:b,type:vx(_,b),createNotation:typeof a.reducers=="function"};Cx(g)?Ox(T,g,f,t):Sx(T,g,f)});function h(){const[b={},g=[],T=void 0]=typeof a.extraReducers=="function"?gb(a.extraReducers):[a.extraReducers],I={...b,...d.sliceCaseReducersByType};return hx(a.initialState,M=>{for(let F in I)M.addCase(F,I[F]);for(let F of d.sliceMatchers)M.addMatcher(F.matcher,F.reducer);for(let F of g)M.addMatcher(F.matcher,F.reducer);T&&M.addDefaultCase(T)})}const v=b=>b,y=new Map;let x;function O(b,g){return x||(x=h()),x(b,g)}function P(){return x||(x=h()),x.getInitialState()}function A(b,g=!1){function T(M){let F=M[b];return typeof F>"u"&&g&&(F=P()),F}function I(M=v){const F=fb(y,g,{insert:()=>new WeakMap});return fb(F,M,{insert:()=>{const B={};for(const[et,q]of Object.entries(a.selectors??{}))B[et]=xx(q,M,P,g);return B}})}return{reducerPath:b,getSelectors:I,get selectors(){return I(T)},selectSlice:T}}const m={name:_,reducer:O,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:P,...A(i),injectInto(b,{reducerPath:g,...T}={}){const I=g??i;return b.inject({reducerPath:I,reducer:O},T),{...m,...A(I,!0)}}};return m}}function xx(n,t,e,a){function _(i,...o){let c=t(i);return typeof c>"u"&&a&&(c=e()),n(c,...o)}return _.unwrapped=n,_}var Vo=kx();function jx(){function n(t,e){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...e}}return n.withTypes=()=>n,{reducer(t){return Object.assign({[t.name](...e){return t(...e)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,e){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:e}},asyncThunk:n}}function Sx({type:n,reducerName:t,createNotation:e},a,_){let i,o;if("reducer"in a){if(e&&!Ex(a))throw new Error(He(17));i=a.reducer,o=a.prepare}else i=a;_.addCase(n,i).exposeCaseReducer(t,i).exposeAction(t,o?xs(n,o):xs(n))}function Cx(n){return n._reducerDefinitionType==="asyncThunk"}function Ex(n){return n._reducerDefinitionType==="reducerWithPrepare"}function Ox({type:n,reducerName:t},e,a,_){if(!_)throw new Error(He(18));const{payloadCreator:i,fulfilled:o,pending:c,rejected:d,settled:f,options:h}=e,v=_(n,i,h);a.exposeAction(t,v),o&&a.addCase(v.fulfilled,o),c&&a.addCase(v.pending,c),d&&a.addCase(v.rejected,d),f&&a.addMatcher(v.settled,f),a.exposeCaseReducer(t,{fulfilled:o||ql,pending:c||ql,rejected:d||ql,settled:f||ql})}function ql(){}var zx=(n,t)=>{if(typeof n!="function")throw new Error(He(32))},Bp="listenerMiddleware",Rx=n=>{let{type:t,actionCreator:e,matcher:a,predicate:_,effect:i}=n;if(t)_=xs(t).match;else if(e)t=e.type,_=e.match;else if(a)_=a;else if(!_)throw new Error(He(21));return zx(i),{predicate:_,type:t,effect:i}},Px=Object.assign(n=>{const{type:t,predicate:e,effect:a}=Rx(n);return{id:yx(),effect:a,type:t,predicate:e,pending:new Set,unsubscribe:()=>{throw new Error(He(22))}}},{withTypes:()=>Px}),Nx=Object.assign(xs(`${Bp}/add`),{withTypes:()=>Nx});xs(`${Bp}/removeAll`);var Tx=Object.assign(xs(`${Bp}/remove`),{withTypes:()=>Tx});function He(n){return`Minified Redux Toolkit error #${n}; visit https://redux-toolkit.js.org/Errors?code=${n} for the full message or use the non-minified dev environment for full errors. `}const Ix=`use aiken/list -use aiken/transaction.{ - ScriptContext -} - -type CoolTokenRedeemer { - guessed_word: ByteArray -} - -type FancyType { - code_word: ByteArray -} - -validator(fancy: FancyType) { - fn mint_my_cool_token(redeemer: CoolTokenRedeemer, _ctx: ScriptContext) -> Bool { - redeemer.guessed_word == fancy.code_word - } -} - -fn quicksort(xs: List) -> List { - when xs is { - [] -> - [] - [p, ..tail] -> { - let before = tail |> list.filter(fn(x) { x < p }) |> quicksort - let after = tail |> list.filter(fn(x) { x >= p }) |> quicksort - list.concat(before, [p, ..after]) - } - } -} - -test quicksort_0() { - quicksort([]) == [] -} - -test quicksort_1() { - quicksort([3, 2, 1, 4]) == [1, 2, 3, 4] -} - -test quicksort_2() { - quicksort([1, 2, 3, 4]) == [1, 2, 3, 4] -} -`,Fx={files:[{name:"example.ak",content:Ix,type:"aiken"},{name:"params.json",content:JSON.stringify([{constructor:0,fields:[{bytes:"7468697369736D79736563726574"}]}],null,2),type:"json"},{name:"nativeScript.json",content:JSON.stringify({type:"all",scripts:[{type:"before",slot:1},{type:"sig",keyHash:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffff"}]},null,2),type:"json"}],currentFileFocusedInEditorIndex:0,openFileIndices:[0],pendingCloseFileIndex:-1,beingRenamedFileIndex:-1,renameFileError:void 0},hb=Vo({name:"files",initialState:Fx,reducers:{selectFile(n,t){n.currentFileFocusedInEditorIndex=t.payload,n.openFileIndices.includes(t.payload)||n.openFileIndices.push(t.payload)},writeFileContents(n,t){n.files[t.payload.index].content=t.payload.content},closeFile(n,t){const e=t.payload;if(e!=n.pendingCloseFileIndex){n.pendingCloseFileIndex=-1;return}if(e==n.beingRenamedFileIndex){n.pendingCloseFileIndex=-1;return}const a=n.openFileIndices.indexOf(e),_=a>0?a-1:a+1,i=n.openFileIndices[_];n.openFileIndices.splice(a,1),n.currentFileFocusedInEditorIndex==e&&(n.currentFileFocusedInEditorIndex=i)},pendingCloseFile(n,t){n.pendingCloseFileIndex=t.payload},addFile(n){if(n.beingRenamedFileIndex!==-1)return;let t="newfile";for(let a=1;a<1/0;a++){const _=`${t}${a===1?"":a-1}.ak`;if(!n.files.find(i=>i.name===_)){t=_;break}}n.files.push({name:t,content:"",type:"aiken"});const e=n.files.length-1;n.beingRenamedFileIndex=e,n.currentFileFocusedInEditorIndex=e,n.openFileIndices.includes(e)||n.openFileIndices.push(e)},renameFile(n,t){n.beingRenamedFileIndex=t.payload},clearRenameFileError(n){n.renameFileError=void 0},confirmRenameFile(n,t){const e=t.payload,a=!n.files.find((o,c)=>o.name===e&&c!=n.beingRenamedFileIndex),_=Wh.find(o=>e.endsWith(o));let i="";a?_?(n.files[n.beingRenamedFileIndex].name=e,n.files[n.beingRenamedFileIndex].type=Nl[_],n.beingRenamedFileIndex=-1,n.renameFileError=void 0):i=`Allowed extensions: ${Wh.join(" ")}`:i="Filenames must be unique.",n.renameFileError=i},cancelRenameFile(n){n.beingRenamedFileIndex=-1,n.renameFileError=void 0},removeFile(n,t){const e=t.payload,a=n.openFileIndices.indexOf(e);a!=-1&&n.openFileIndices.splice(a,1),n.files.splice(e,1),n.openFileIndices=n.openFileIndices.map(o=>o>e?o-1:o);const _=a>0?a-1:a+1,i=n.openFileIndices[_];if(n.currentFileFocusedInEditorIndex!=e){n.currentFileFocusedInEditorIndex>e&&(n.currentFileFocusedInEditorIndex-=1);return}n.currentFileFocusedInEditorIndex=i}}}),{selectFile:bb,writeFileContents:Dx,closeFile:Ax,pendingCloseFile:yb,addFile:mb,confirmRenameFile:vb,cancelRenameFile:Mx,removeFile:Bx,renameFile:Lx,clearRenameFileError:Ux}=hb.actions,Vx=hb.reducer;function qx({onLoad:n}){const t=C2(),e=de(o=>o.files),a=hr(),_=W.useRef(null);if(_.current&&t){const o=e.files[e.currentFileFocusedInEditorIndex],c=t.editor.getModels();if(o){const d=o.name.slice(o.name.lastIndexOf(".")),f=Nl[d]||"plaintext";let h=c.find(v=>v.uri.path.includes(o.name));(!h||f!=h.getLanguageId())&&(h=t.editor.createModel(o.content,f,t.Uri.parse(o.name))),_.current.setModel(h)}else _.current.setModel(null);c.forEach(d=>{e.files.find(f=>d.uri.path.includes(f.name))||d.dispose()})}const i=o=>{_.current=o,n&&n(o)};return W.useEffect(()=>{if(t){t.languages.register({id:"aiken"});const o=["if","else","when","is","fn","use","let","pub","type","opaque","const","todo","expect","check","test","trace","fail","validator","and","or"];t.languages.setMonarchTokensProvider("aiken",{keywords:o,operators:["->","|>","..","<=",">=","==","!=","<",">","&&","||","|","+","-","/","*","%","="],digits:"\\d+(_+\\d+)*",octaldigits:"[0-7]+(_+[0-7]+)*",binarydigits:"[0-1]+(_+[0-1]+)*",hexdigits:"[0-9a-fA-F]+(_+[0-9a-fA-F]+)*",tokenizer:{root:[["[a-z_$][\\w$]*",{cases:{"@keywords":"keyword","@default":"identifier"}}],["//.*","comment"],["[A-Z][\\w\\$]*","type.identifier"],["[a-z][\\w\\$]*","identifier"],["0[xX](@hexdigits)","number.hex"],["0[oO]?(@octaldigits)","number.octal"],["0[bB](@binarydigits)","number.binary"],["(@digits)","number"]]}}),t.editor.defineTheme("aiken-theme",{base:"vs-dark",rules:[{token:"source",foreground:"#BBBBBB"}],inherit:!0,colors:{"scrollbar.shadow":"#ffffff00","editor.lineHighlightBackground":"#00000000","editor.lineHighlightBorder":"#00000000"}})}},[t]),t?z.jsx("div",{style:{width:"100%",height:"90vh"},onBlur:()=>{if(!t)return;const o=e.files[e.currentFileFocusedInEditorIndex];let c=t.editor.getModels().find(d=>d.uri.path.includes(o.name));if(!c){console.error("If this happened, there is a bug. :)");return}a(Dx({index:e.currentFileFocusedInEditorIndex,content:c.getValue()}))},children:z.jsx(N2,{height:"calc(94vh - 45px)",width:"100%",theme:"aiken-theme",defaultLanguage:"aiken",defaultValue:e.files[0].content,options:{minimap:{enabled:!1}},onMount:i})}):null}function kb(n,t){const e=n.split(/\r?\n/);let a=0;for(let _=0;_=t)return _+1;a+=i.length+1}return null}function xb(n){const t=n.lastIndexOf(".");return t===-1?{name:n,extension:""}:{name:n.substring(0,t),extension:n.substring(t)}}function Hl(n,t=12,e=7){if(n.length>t+e){let a=n.substring(0,t),_=n.substring(n.length-e);return`${a}...${_}`}return n}const Hx={buildResults:[],builtFiles:[]},jb=Vo({name:"aiken",initialState:Hx,reducers:{testProject:(n,t)=>{n.buildResults=t.payload.buildResults,n.builtFiles=t.payload.compiledFiles;for(let e=0;e{const _=kb(n.builtFiles[e].content,a.line)||-1;return{...a,line:_}}),n.buildResults[e].warnings=n.buildResults[e].warnings.map(a=>{const _=kb(n.builtFiles[e].content,a.line)||-1;return{...a,line:_}})}}}),{testProject:Sb}=jb.actions,$x=jb.reducer,Cb=W.createContext(null);function Wx(){return W.useContext(Cb)}function Kx(){const n=Nh(),t=Wx(),e=de(i=>i.files),a=hr();let _="";return z.jsxs("div",{className:"top-bar editor-top-bar",children:[z.jsx("div",{className:`top-bar-item editor-top-bar-item ${_}`,onClick:()=>{let i=[],o=[];for(let c of e.files)if($h(c.name)==="aiken"){i.push(c);const d=n.project.build(c.content,!0);o.push(d)}a(Sb({buildResults:o,compiledFiles:i}))},children:"\u25B6 Test"}),z.jsx("div",{className:`top-bar-item editor-top-bar-item ${_}`,onClick:()=>{let i=[],o=[];for(let c of e.files)$h(c.name)==="aiken"&&(i.push(c),o.push(n.project.build(c.content,!1)));a(Sb({buildResults:o,compiledFiles:i}))},children:"\u{1F6E0} Build"}),z.jsx("div",{className:"top-bar-item editor-top-bar-item",onClick:()=>{const i=(t==null?void 0:t.getValue())||"",o=n.project.format(i);t==null||t.setValue(o.formatted_code||i)},children:"\u270E Format"}),z.jsx("div",{className:"top-bar-item editor-top-bar-item",children:"\u260E Share"})]})}function Qx(){const n=de(t=>t.management.network);return z.jsx("div",{className:"top-bar management-top-bar",children:z.jsxs("div",{className:"top-bar-item",children:[z.jsx("strong",{children:"Network"}),": ",n]})})}function Gx(){var e,a;const n=de(_=>_.project),t=(_,i)=>{const o=_==null?void 0:_.warnings.length,c=_==null?void 0:_.errors.length,d=_==null?void 0:_.test_results.length,f=(_==null?void 0:_.test_results.filter(x=>!x.success).length)||0,h=!o||o<=0?null:z.jsxs("div",{className:"build-results-section warnings",children:[z.jsx("span",{className:"build-result-heading",children:"Warnings"}),_==null?void 0:_.warnings.map((x,O)=>z.jsxs("div",{className:"build-results-individual-result",children:[z.jsxs("div",{className:"warning-item",children:["On line ",x.line,", ",x.message]}),z.jsx("div",{}),z.jsx("div",{className:"warning-item",children:x.help})]},O))]}),v=!c||c<=0?null:z.jsxs("div",{className:"build-results-section errors",children:[z.jsx("span",{className:"build-result-heading",children:"Errors"}),_==null?void 0:_.errors.map((x,O)=>z.jsxs("div",{className:"build-results-individual-result",children:[z.jsxs("div",{className:"error-item",children:["On line ",x.line,", ",x.message]}),z.jsx("div",{className:"error-item",children:x.help})]},O))]}),y=!d||d<=0?null:z.jsxs("div",{className:"build-results-section tests",children:[z.jsx("span",{className:"build-result-heading",children:"Tests"}),_==null?void 0:_.test_results.map(x=>z.jsx("div",{className:"build-results-individual-result",children:z.jsxs("div",{className:"test-item",children:[x.success?"\u2714\uFE0F ":"\u274C ",x.name," (CPU: ",x.spent_budget.cpu,", Mem: ",x.spent_budget.mem,")"]})},x.index))]});return z.jsxs("div",{className:"build-result-container",children:[z.jsx("div",{className:"build-result-filename",children:n.builtFiles[i].name}),z.jsxs("div",{className:"summary",children:[z.jsxs("span",{className:"summary-entry",children:["Errors: ",z.jsx("span",{className:"error-number",children:`${c||0}`})]}),z.jsxs("span",{className:"summary-entry",children:["Warnings: ",z.jsx("span",{className:"warning-number",children:`${o||0}`})]}),z.jsxs("span",{className:"summary-entry",children:["Tests: ",z.jsxs("span",{className:"test-number",children:[`${d||0} `,f>0?z.jsxs("span",{children:["(",z.jsx("span",{className:"error-number",children:f}),")"]}):null]})]})]}),y,h,v]},i)};return z.jsxs("div",{className:"build-results-content",children:[z.jsx("div",{className:"build-results-heading",children:z.jsx("strong",{children:"Build Results"})}),n.buildResults&&((e=n.buildResults)==null?void 0:e.length)>0?z.jsx(z.Fragment,{}):z.jsx("div",{className:"no-last-build-notice",children:' No last build to display. Click "Test" to compile.'}),(a=n.buildResults)==null?void 0:a.map((_,i)=>t(_,i))]})}let r;const Eb=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Eb.decode();let qo=null;function js(){return(qo===null||qo.byteLength===0)&&(qo=new Uint8Array(r.memory.buffer)),qo}function R(n,t){return Eb.decode(js().subarray(n,n+t))}const la=new Array(128).fill(void 0);la.push(void 0,null,!0,!1);let Ho=la.length;function ut(n){Ho===la.length&&la.push(la.length+1);const t=Ho;return Ho=la[t],la[t]=n,t}function nt(n){return la[n]}function Xx(n){n<132||(la[n]=Ho,Ho=n)}function l(n){const t=nt(n);return Xx(n),t}let w=0;const Ob=new TextEncoder("utf-8"),Jx=function(n,t){return Ob.encodeInto(n,t)};function C(n,t,e){if(e===void 0){const c=Ob.encode(n),d=t(c.length);return js().subarray(d,d+c.length).set(c),w=c.length,d}let a=n.length,_=t(a);const i=js();let o=0;for(;o127)break;i[_+o]=c}if(o!==a){o!==0&&(n=n.slice(o)),_=e(_,a,a=o+n.length*3);const c=js().subarray(_+o,_+a),d=Jx(n,c);o+=d.written}return w=o,_}let $o=null;function s(){return($o===null||$o.byteLength===0)&&($o=new Int32Array(r.memory.buffer)),$o}function Nt(n){return n==null}function Lp(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const _=n.description;return _==null?"Symbol":`Symbol(${_})`}if(t=="function"){const _=n.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(n)){const _=n.length;let i="[";_>0&&(i+=Lp(n[0]));for(let o=1;o<_;o++)i+=", "+Lp(n[o]);return i+="]",i}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let a;if(e.length>1)a=e[1];else return toString.call(n);if(a=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} -${n.stack}`:a}const zb=new FinalizationRegistry(n=>{r.__wbindgen_export_2.get(n.dtor)(n.a,n.b)});function Zx(n,t,e,a){const _={a:n,b:t,cnt:1,dtor:e},i=(...o)=>{_.cnt++;const c=_.a;_.a=0;try{return a(c,_.b,...o)}finally{--_.cnt===0?(r.__wbindgen_export_2.get(_.dtor)(c,_.b),zb.unregister(_)):_.a=c}};return i.original=_,zb.register(i,_,_),i}function Yx(n,t,e){r._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9de9452916ac8cca(n,t,ut(e))}function p(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`);return n.ptr}function j(n,t){return js().subarray(n/1,n/1+t)}function E(n,t){const e=t(n.length*1);return js().set(n,e/1),w=n.length,e}function Rb(n,t,e,a){try{const h=r.__wbindgen_add_to_stack_pointer(-16),v=C(n,r.__wbindgen_malloc,r.__wbindgen_realloc),y=w,x=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),O=w,P=C(e,r.__wbindgen_malloc,r.__wbindgen_realloc),A=w,m=C(a,r.__wbindgen_malloc,r.__wbindgen_realloc),b=w;r.encrypt_with_password(h,v,y,x,O,P,A,m,b);var _=s()[h/4+0],i=s()[h/4+1],o=s()[h/4+2],c=s()[h/4+3],d=_,f=i;if(c)throw d=0,f=0,l(o);return R(d,f)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(d,f)}}function Pb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(n,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w,v=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),y=w;r.decrypt_with_password(d,f,h,v,y);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}function Nb(n,t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(n,yn),p(t,T_),p(e,In),r.min_fee(o,n.ptr,t.ptr,e.ptr);var a=s()[o/4+0],_=s()[o/4+1],i=s()[o/4+2];if(i)throw l(_);return S.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Tb(n){const t=E(n,r.__wbindgen_malloc),e=w,a=r.encode_arbitrary_bytes_as_metadatum(t,e);return mt.__wrap(a)}function Ib(n){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(n,mt),r.decode_arbitrary_bytes_from_metadatum(o,n.ptr);var t=s()[o/4+0],e=s()[o/4+1],a=s()[o/4+2],_=s()[o/4+3];if(_)throw l(a);var i=j(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Fb(n,t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.encode_json_str_to_metadatum(i,o,c,t);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Db(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16);p(n,mt),r.decode_metadatum_to_json_str(d,n.ptr,t);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}function Ab(n,t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(n,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.encode_json_str_to_plutus_datum(i,o,c,t);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return rt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Mb(n,t){try{const d=r.__wbindgen_add_to_stack_pointer(-16);p(n,rt),r.decode_plutus_datum_to_json_str(d,n.ptr,t);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}let $l=null;function Bb(){return($l===null||$l.byteLength===0)&&($l=new Uint32Array(r.memory.buffer)),$l}function tj(n,t){const e=t(n.length*4);return Bb().set(n,e/4),w=n.length,e}function ej(n,t){return Bb().subarray(n/4,n/4+t)}function Lb(n,t,e){p(n,fe),p(t,Re),p(e,Os);const a=r.make_daedalus_bootstrap_witness(n.ptr,t.ptr,e.ptr);return un.__wrap(a)}function Ub(n,t,e){p(n,fe),p(t,Re),p(e,Pn);const a=r.make_icarus_bootstrap_witness(n.ptr,t.ptr,e.ptr);return un.__wrap(a)}function Ss(n,t){p(n,fe),p(t,qt);const e=r.make_vkey_witness(n.ptr,t.ptr);return Mn.__wrap(e)}function Vb(n){p(n,ze);const t=r.hash_auxiliary_data(n.ptr);return br.__wrap(t)}function da(n){p(n,Ge);const t=r.hash_transaction(n.ptr);return fe.__wrap(t)}function Cs(n){p(n,rt);const t=r.hash_plutus_data(n.ptr);return ee.__wrap(t)}function Up(n){try{const _=r.__wbindgen_add_to_stack_pointer(-16),i=E(n,r.__wbindgen_malloc),o=w;r.hash_blake2b256(_,i,o);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}function qb(n){try{const _=r.__wbindgen_add_to_stack_pointer(-16),i=E(n,r.__wbindgen_malloc),o=w;r.hash_blake2b224(_,i,o);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Hb(n,t,e){p(n,Nr),p(t,tr);let a=0;Nt(e)||(p(e,ae),a=e.__destroy_into_raw());const _=r.hash_script_data(n.ptr,t.ptr,a);return nr.__wrap(_)}function $b(n,t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(n,Ge),p(t,S),p(e,S),r.get_implicit_input(o,n.ptr,t.ptr,e.ptr);var a=s()[o/4+0],_=s()[o/4+1],i=s()[o/4+2];if(i)throw l(_);return Ct.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Wb(n,t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(n,Ge),p(t,S),p(e,S),r.get_deposit(o,n.ptr,t.ptr,e.ptr);var a=s()[o/4+0],_=s()[o/4+1],i=s()[o/4+2];if(i)throw l(_);return S.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Kb(n,t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(n,Kt),p(t,S),r.min_ada_required(i,n.ptr,t.ptr);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return S.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function Vp(n,t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16),c=C(n,r.__wbindgen_malloc,r.__wbindgen_realloc),d=w,f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.encode_json_str_to_native_script(o,c,d,f,h,e);var a=s()[o/4+0],_=s()[o/4+1],i=s()[o/4+2];if(i)throw l(_);return St.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function qp(n,t){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(n,ae),p(t,wt);var e=t.__destroy_into_raw();r.apply_params_to_plutus_script(o,n.ptr,e);var a=s()[o/4+0],_=s()[o/4+1],i=s()[o/4+2];if(i)throw l(_);return wt.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}function ln(n,t){try{return n.apply(this,t)}catch(e){r.__wbindgen_exn_store(ut(e))}}function nj(n,t,e,a){r.wasm_bindgen__convert__closures__invoke2_mut__h36afefe016e25d40(n,t,ut(e),ut(a))}const rj=Object.freeze({Key:0,0:"Key",Script:1,1:"Script"}),aj=Object.freeze({ParameterChangeAction:0,0:"ParameterChangeAction",HardForkInitiationAction:1,1:"HardForkInitiationAction",TreasuryWithdrawalsAction:2,2:"TreasuryWithdrawalsAction",NoConfidence:3,3:"NoConfidence",NewCommittee:4,4:"NewCommittee",NewConstitution:5,5:"NewConstitution",InfoAction:6,6:"InfoAction"}),_j=Object.freeze({CommitteeHotKeyHash:0,0:"CommitteeHotKeyHash",CommitteeHotScriptHash:1,1:"CommitteeHotScriptHash",DrepKeyHash:2,2:"DrepKeyHash",DrepScriptHash:3,3:"DrepScriptHash",StakingPoolKeyHash:4,4:"StakingPoolKeyHash"}),ij=Object.freeze({No:0,0:"No",Yes:1,1:"Yes",Abstain:2,2:"Abstain"}),sj=Object.freeze({KeyHash:0,0:"KeyHash",ScriptHash:1,1:"ScriptHash",Abstain:2,2:"Abstain",NoConfidence:3,3:"NoConfidence"}),oj=Object.freeze({MetadataMap:0,0:"MetadataMap",MetadataList:1,1:"MetadataList",Int:2,2:"Int",Bytes:3,3:"Bytes",Text:4,4:"Text"}),Qb=Object.freeze({NoConversions:0,0:"NoConversions",BasicConversions:1,1:"BasicConversions",DetailedSchema:2,2:"DetailedSchema"}),cj=Object.freeze({PlutusV1:0,0:"PlutusV1",PlutusV2:1,1:"PlutusV2",PlutusV3:2,2:"PlutusV3"}),lj=Object.freeze({ConstrPlutusData:0,0:"ConstrPlutusData",Map:1,1:"Map",List:2,2:"List",Integer:3,3:"Integer",Bytes:4,4:"Bytes"}),dj=Object.freeze({Spend:0,0:"Spend",Mint:1,1:"Mint",Cert:2,2:"Cert",Reward:3,3:"Reward",Drep:4,4:"Drep"}),uj=Object.freeze({BasicConversions:0,0:"BasicConversions",DetailedSchema:1,1:"DetailedSchema"}),pj=Object.freeze({NativeScript:0,0:"NativeScript",PlutusScriptV1:1,1:"PlutusScriptV1",PlutusScriptV2:2,2:"PlutusScriptV2",PlutusScriptV3:3,3:"PlutusScriptV3"}),fj=Object.freeze({Hash:0,0:"Hash",Data:1,1:"Data"}),dn=Object.freeze({NativeScript:0,0:"NativeScript",PlutusV1:1,1:"PlutusV1",PlutusV2:2,2:"PlutusV2"}),Gb=Object.freeze({Wallet:0,0:"Wallet",Node:1,1:"Node"}),wj=Object.freeze({NativeWitness:0,0:"NativeWitness",PlutusWitness:1,1:"PlutusWitness"}),gj=Object.freeze({StakeRegistration:0,0:"StakeRegistration",StakeDeregistration:1,1:"StakeDeregistration",StakeDelegation:2,2:"StakeDelegation",PoolRegistration:3,3:"PoolRegistration",PoolRetirement:4,4:"PoolRetirement",GenesisKeyDelegation:5,5:"GenesisKeyDelegation",MoveInstantaneousRewardsCert:6,6:"MoveInstantaneousRewardsCert",RegCert:7,7:"RegCert",UnregCert:8,8:"UnregCert",VoteDelegCert:9,9:"VoteDelegCert",StakeVoteDelegCert:10,10:"StakeVoteDelegCert",StakeRegDelegCert:11,11:"StakeRegDelegCert",VoteRegDelegCert:12,12:"VoteRegDelegCert",StakeVoteRegDelegCert:13,13:"StakeVoteRegDelegCert",RegCommitteeHotKeyCert:14,14:"RegCommitteeHotKeyCert",UnregCommitteeHotKeyCert:15,15:"UnregCommitteeHotKeyCert",RegDrepCert:16,16:"RegDrepCert",UnregDrepCert:17,17:"UnregDrepCert"}),hj=Object.freeze({Reserves:0,0:"Reserves",Treasury:1,1:"Treasury"}),bj=Object.freeze({ToOtherPot:0,0:"ToOtherPot",ToStakeCredentials:1,1:"ToStakeCredentials"}),yj=Object.freeze({SingleHostAddr:0,0:"SingleHostAddr",SingleHostName:1,1:"SingleHostName",MultiHostName:2,2:"MultiHostName"}),mj=Object.freeze({ScriptPubkey:0,0:"ScriptPubkey",ScriptAll:1,1:"ScriptAll",ScriptAny:2,2:"ScriptAny",ScriptNOfK:3,3:"ScriptNOfK",TimelockStart:4,4:"TimelockStart",TimelockExpiry:5,5:"TimelockExpiry"}),vj=Object.freeze({Testnet:0,0:"Testnet",Mainnet:1,1:"Mainnet"}),Xb=new FinalizationRegistry(n=>r.__wbg_address_free(n));class vt{static __wrap(t){const e=Object.create(vt.prototype);return e.ptr=t,Xb.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Xb.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_address_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.address_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return vt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.address_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return vt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.address_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const h=r.__wbindgen_add_to_stack_pointer(-16);var e=Nt(t)?0:C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=w;r.address_to_bech32(h,this.ptr,e,a);var _=s()[h/4+0],i=s()[h/4+1],o=s()[h/4+2],c=s()[h/4+3],d=_,f=i;if(c)throw d=0,f=0,l(o);return R(d,f)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(d,f)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.address_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return vt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.address_network_id(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_byron(){const t=r.address_as_byron(this.ptr);return t===0?void 0:Re.__wrap(t)}as_reward(){const t=r.address_as_reward(this.ptr);return t===0?void 0:zt.__wrap(t)}as_pointer(){const t=r.address_as_pointer(this.ptr);return t===0?void 0:F_.__wrap(t)}as_enterprise(){const t=r.address_as_enterprise(this.ptr);return t===0?void 0:Tn.__wrap(t)}as_base(){const t=r.address_as_base(this.ptr);return t===0?void 0:Zn.__wrap(t)}}const Jb=new FinalizationRegistry(n=>r.__wbg_anchor_free(n));class Xn{static __wrap(t){const e=Object.create(Xn.prototype);return e.ptr=t,Jb.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Jb.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_anchor_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.anchor_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Xn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.anchor_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.anchor_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Xn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}anchor_url(){const t=r.anchor_anchor_url(this.ptr);return ar.__wrap(t)}anchor_data_hash(){const t=r.anchor_anchor_data_hash(this.ptr);return ee.__wrap(t)}static new(t,e){p(t,ar),p(e,ee);const a=r.anchor_new(t.ptr,e.ptr);return Xn.__wrap(a)}}const Zb=new FinalizationRegistry(n=>r.__wbg_assetname_free(n));class te{static __wrap(t){const e=Object.create(te.prototype);return e.ptr=t,Zb.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Zb.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assetname_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.assetname_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return te.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.assetname_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return te.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.assetname_new(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return te.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}name(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Yb=new FinalizationRegistry(n=>r.__wbg_assetnames_free(n));class ua{static __wrap(t){const e=Object.create(ua.prototype);return e.ptr=t,Yb.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Yb.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assetnames_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.assetnames_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assetnames_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.assetnames_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return ua.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.assetnames_get(this.ptr,t);return te.__wrap(e)}add(t){p(t,te),r.assetnames_add(this.ptr,t.ptr)}}const ty=new FinalizationRegistry(n=>r.__wbg_assets_free(n));class Jn{static __wrap(t){const e=Object.create(Jn.prototype);return e.ptr=t,ty.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ty.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_assets_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.assets_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Jn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assets_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.assets_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Jn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return Jn.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,te),p(e,S);const a=r.assets_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:S.__wrap(a)}get(t){p(t,te);const e=r.assets_get(this.ptr,t.ptr);return e===0?void 0:S.__wrap(e)}keys(){const t=r.assets_keys(this.ptr);return ua.__wrap(t)}}const ey=new FinalizationRegistry(n=>r.__wbg_auxiliarydata_free(n));class ze{static __wrap(t){const e=Object.create(ze.prototype);return e.ptr=t,ey.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ey.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydata_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.auxiliarydata_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ze.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydata_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.auxiliarydata_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ze.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydata_new();return ze.__wrap(t)}metadata(){const t=r.auxiliarydata_metadata(this.ptr);return t===0?void 0:mr.__wrap(t)}set_metadata(t){p(t,mr),r.auxiliarydata_set_metadata(this.ptr,t.ptr)}native_scripts(){const t=r.auxiliarydata_native_scripts(this.ptr);return t===0?void 0:ve.__wrap(t)}set_native_scripts(t){p(t,ve),r.auxiliarydata_set_native_scripts(this.ptr,t.ptr)}plutus_scripts(){const t=r.auxiliarydata_plutus_scripts(this.ptr);return t===0?void 0:_e.__wrap(t)}plutus_v2_scripts(){const t=r.auxiliarydata_plutus_v2_scripts(this.ptr);return t===0?void 0:_e.__wrap(t)}plutus_v3_scripts(){const t=r.auxiliarydata_plutus_v3_scripts(this.ptr);return t===0?void 0:_e.__wrap(t)}set_plutus_scripts(t){p(t,_e),r.auxiliarydata_set_plutus_scripts(this.ptr,t.ptr)}set_plutus_v2_scripts(t){p(t,_e),r.auxiliarydata_set_plutus_v2_scripts(this.ptr,t.ptr)}set_plutus_v3_scripts(t){p(t,_e),r.auxiliarydata_set_plutus_v3_scripts(this.ptr,t.ptr)}}const ny=new FinalizationRegistry(n=>r.__wbg_auxiliarydatahash_free(n));class br{static __wrap(t){const e=Object.create(br.prototype);return e.ptr=t,ny.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ny.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydatahash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.auxiliarydatahash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.auxiliarydatahash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.auxiliarydatahash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const ry=new FinalizationRegistry(n=>r.__wbg_auxiliarydataset_free(n));class ki{static __wrap(t){const e=Object.create(ki.prototype);return e.ptr=t,ry.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ry.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_auxiliarydataset_free(t)}static new(){const t=r.auxiliarydataset_new();return ki.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,S),p(e,ze);const a=r.auxiliarydataset_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:ze.__wrap(a)}get(t){p(t,S);const e=r.auxiliarydataset_get(this.ptr,t.ptr);return e===0?void 0:ze.__wrap(e)}indices(){const t=r.auxiliarydataset_indices(this.ptr);return $a.__wrap(t)}}const ay=new FinalizationRegistry(n=>r.__wbg_baseaddress_free(n));class Zn{static __wrap(t){const e=Object.create(Zn.prototype);return e.ptr=t,ay.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ay.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_baseaddress_free(t)}static new(t,e,a){p(e,H),p(a,H);const _=r.baseaddress_new(t,e.ptr,a.ptr);return Zn.__wrap(_)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return H.__wrap(t)}stake_cred(){const t=r.baseaddress_stake_cred(this.ptr);return H.__wrap(t)}to_address(){const t=r.baseaddress_to_address(this.ptr);return vt.__wrap(t)}static from_address(t){p(t,vt);const e=r.address_as_base(t.ptr);return e===0?void 0:Zn.__wrap(e)}}const _y=new FinalizationRegistry(n=>r.__wbg_bigint_free(n));let Wo=class id{static __wrap(t){const e=Object.create(id.prototype);return e.ptr=t,_y.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_y.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bigint_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bigint_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.bigint_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return id.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_u64(){const t=r.bigint_as_u64(this.ptr);return t===0?void 0:S.__wrap(t)}as_int(){const t=r.bigint_as_int(this.ptr);return t===0?void 0:re.__wrap(t)}static from_str(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.bigint_from_str(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return id.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bigint_to_str(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}};const iy=new FinalizationRegistry(n=>r.__wbg_bignum_free(n));let S=class se{static __wrap(t){const e=Object.create(se.prototype);return e.ptr=t,iy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,iy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bignum_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bignum_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.bignum_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_str(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.bignum_from_str(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bignum_to_str(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static zero(){const t=r.bignum_zero();return se.__wrap(t)}is_zero(){return r.bignum_is_zero(this.ptr)!==0}checked_mul(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,se),r.bignum_checked_mul(i,this.ptr,t.ptr);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_add(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,se),r.bignum_checked_add(i,this.ptr,t.ptr);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,se),r.bignum_checked_sub(i,this.ptr,t.ptr);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_div(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,se),r.bignum_checked_div(i,this.ptr,t.ptr);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_div_ceil(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,se),r.bignum_checked_div_ceil(i,this.ptr,t.ptr);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return se.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){p(t,se);const e=r.bignum_clamped_sub(this.ptr,t.ptr);return se.__wrap(e)}compare(t){return p(t,se),r.bignum_compare(this.ptr,t.ptr)}};const sy=new FinalizationRegistry(n=>r.__wbg_bip32privatekey_free(n));class Pn{static __wrap(t){const e=Object.create(Pn.prototype);return e.ptr=t,sy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,sy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bip32privatekey_free(t)}derive(t){const e=r.bip32privatekey_derive(this.ptr,t);return Pn.__wrap(e)}static from_128_xprv(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.bip32privatekey_from_128_xprv(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Pn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_128_xprv(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_to_128_xprv(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519_bip32(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_generate_ed25519_bip32(_);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Pn.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=r.bip32privatekey_to_raw_key(this.ptr);return qt.__wrap(t)}to_public(){const t=r.bip32privatekey_to_public(this.ptr);return pa.__wrap(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.bip32privatekey_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Pn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_as_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.bip32privatekey_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Pn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_to_bech32(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_bip39_entropy(t,e){const a=E(t,r.__wbindgen_malloc),_=w,i=E(e,r.__wbindgen_malloc),o=w,c=r.bip32privatekey_from_bip39_entropy(a,_,i,o);return Pn.__wrap(c)}chaincode(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bip32privatekey_chaincode(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const oy=new FinalizationRegistry(n=>r.__wbg_bip32publickey_free(n));class pa{static __wrap(t){const e=Object.create(pa.prototype);return e.ptr=t,oy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,oy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bip32publickey_free(t)}derive(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_derive(i,this.ptr,t);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_raw_key(){const t=r.bip32publickey_to_raw_key(this.ptr);return bn.__wrap(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.bip32publickey_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_as_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.bip32publickey_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_to_bech32(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}chaincode(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bip32publickey_chaincode(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const cy=new FinalizationRegistry(n=>r.__wbg_block_free(n));class xi{static __wrap(t){const e=Object.create(xi.prototype);return e.ptr=t,cy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,cy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_block_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.block_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return xi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.block_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.block_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return xi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}header(){const t=r.block_header(this.ptr);return ka.__wrap(t)}transaction_bodies(){const t=r.block_transaction_bodies(this.ptr);return Ha.__wrap(t)}transaction_witness_sets(){const t=r.block_transaction_witness_sets(this.ptr);return Qa.__wrap(t)}auxiliary_data_set(){const t=r.block_auxiliary_data_set(this.ptr);return ki.__wrap(t)}invalid_transactions(){const t=r.block_invalid_transactions(this.ptr);return $a.__wrap(t)}static new(t,e,a,_,i){p(t,ka),p(e,Ha),p(a,Qa),p(_,ki),p(i,$a);const o=r.block_new(t.ptr,e.ptr,a.ptr,_.ptr,i.ptr);return xi.__wrap(o)}}const ly=new FinalizationRegistry(n=>r.__wbg_blockhash_free(n));class Yn{static __wrap(t){const e=Object.create(Yn.prototype);return e.ptr=t,ly.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ly.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_blockhash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.blockhash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.blockhash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.blockhash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const dy=new FinalizationRegistry(n=>r.__wbg_blockfrost_free(n));class ji{static __wrap(t){const e=Object.create(ji.prototype);return e.ptr=t,dy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,dy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_blockfrost_free(t)}static new(t,e){const a=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),_=w,i=C(e,r.__wbindgen_malloc,r.__wbindgen_realloc),o=w,c=r.blockfrost_new(a,_,i,o);return ji.__wrap(c)}url(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}project_id(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_project_id(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const uy=new FinalizationRegistry(n=>r.__wbg_bootstrapwitness_free(n));class un{static __wrap(t){const e=Object.create(un.prototype);return e.ptr=t,uy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,uy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bootstrapwitness_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.bootstrapwitness_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return un.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.bootstrapwitness_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return un.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}vkey(){const t=r.bootstrapwitness_vkey(this.ptr);return xe.__wrap(t)}signature(){const t=r.bootstrapwitness_signature(this.ptr);return me.__wrap(t)}chain_code(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}attributes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_attributes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e,a,_){p(t,xe),p(e,me);const i=E(a,r.__wbindgen_malloc),o=w,c=E(_,r.__wbindgen_malloc),d=w,f=r.bootstrapwitness_new(t.ptr,e.ptr,i,o,c,d);return un.__wrap(f)}}const py=new FinalizationRegistry(n=>r.__wbg_bootstrapwitnesses_free(n));class Si{static __wrap(t){const e=Object.create(Si.prototype);return e.ptr=t,py.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,py.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_bootstrapwitnesses_free(t)}static new(){const t=r.assetnames_new();return Si.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.bootstrapwitnesses_get(this.ptr,t);return un.__wrap(e)}add(t){p(t,un),r.bootstrapwitnesses_add(this.ptr,t.ptr)}}const fy=new FinalizationRegistry(n=>r.__wbg_byronaddress_free(n));class Re{static __wrap(t){const e=Object.create(Re.prototype);return e.ptr=t,fy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,fy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_byronaddress_free(t)}to_base58(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_to_base58(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.byronaddress_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Re.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}byron_protocol_magic(){return r.byronaddress_byron_protocol_magic(this.ptr)>>>0}attributes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_attributes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}network_id(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.byronaddress_network_id(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_base58(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.byronaddress_from_base58(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Re.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static icarus_from_key(t,e){p(t,pa);const a=r.byronaddress_icarus_from_key(t.ptr,e);return Re.__wrap(a)}static is_valid(t){const e=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=w;return r.byronaddress_is_valid(e,a)!==0}to_address(){const t=r.byronaddress_to_address(this.ptr);return vt.__wrap(t)}static from_address(t){p(t,vt);const e=r.address_as_byron(t.ptr);return e===0?void 0:Re.__wrap(e)}}const wy=new FinalizationRegistry(n=>r.__wbg_certificate_free(n));class Lt{static __wrap(t){const e=Object.create(Lt.prototype);return e.ptr=t,wy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,wy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_certificate_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.certificate_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Lt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.certificate_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.certificate_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Lt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_stake_registration(t){p(t,Mr);const e=r.certificate_new_stake_registration(t.ptr);return Lt.__wrap(e)}static new_stake_deregistration(t){p(t,Ar);const e=r.certificate_new_stake_deregistration(t.ptr);return Lt.__wrap(e)}static new_stake_delegation(t){p(t,Dr);const e=r.certificate_new_stake_delegation(t.ptr);return Lt.__wrap(e)}static new_pool_registration(t){p(t,zr);const e=r.certificate_new_pool_registration(t.ptr);return Lt.__wrap(e)}static new_pool_retirement(t){p(t,Rr);const e=r.certificate_new_pool_retirement(t.ptr);return Lt.__wrap(e)}static new_genesis_key_delegation(t){p(t,ya);const e=r.certificate_new_genesis_key_delegation(t.ptr);return Lt.__wrap(e)}static new_move_instantaneous_rewards_cert(t){p(t,Ea);const e=r.certificate_new_move_instantaneous_rewards_cert(t.ptr);return Lt.__wrap(e)}kind(){return r.certificate_kind(this.ptr)>>>0}as_stake_registration(){const t=r.certificate_as_stake_registration(this.ptr);return t===0?void 0:Mr.__wrap(t)}as_stake_deregistration(){const t=r.certificate_as_stake_deregistration(this.ptr);return t===0?void 0:Ar.__wrap(t)}as_stake_delegation(){const t=r.certificate_as_stake_delegation(this.ptr);return t===0?void 0:Dr.__wrap(t)}as_pool_registration(){const t=r.certificate_as_pool_registration(this.ptr);return t===0?void 0:zr.__wrap(t)}as_pool_retirement(){const t=r.certificate_as_pool_retirement(this.ptr);return t===0?void 0:Rr.__wrap(t)}as_genesis_key_delegation(){const t=r.certificate_as_genesis_key_delegation(this.ptr);return t===0?void 0:ya.__wrap(t)}as_move_instantaneous_rewards_cert(){const t=r.certificate_as_move_instantaneous_rewards_cert(this.ptr);return t===0?void 0:Ea.__wrap(t)}as_reg_cert(){const t=r.certificate_as_reg_cert(this.ptr);return t===0?void 0:A_.__wrap(t)}as_unreg_cert(){const t=r.certificate_as_unreg_cert(this.ptr);return t===0?void 0:$_.__wrap(t)}as_vote_deleg_cert(){const t=r.certificate_as_vote_deleg_cert(this.ptr);return t===0?void 0:Q_.__wrap(t)}as_stake_vote_deleg_cert(){const t=r.certificate_as_stake_vote_deleg_cert(this.ptr);return t===0?void 0:q_.__wrap(t)}as_stake_reg_deleg_cert(){const t=r.certificate_as_stake_reg_deleg_cert(this.ptr);return t===0?void 0:V_.__wrap(t)}as_vote_reg_deleg_cert(){const t=r.certificate_as_vote_reg_deleg_cert(this.ptr);return t===0?void 0:G_.__wrap(t)}as_stake_vote_reg_deleg_cert(){const t=r.certificate_as_stake_vote_reg_deleg_cert(this.ptr);return t===0?void 0:H_.__wrap(t)}as_reg_committee_hot_key_cert(){const t=r.certificate_as_reg_committee_hot_key_cert(this.ptr);return t===0?void 0:M_.__wrap(t)}as_unreg_committee_hot_key_cert(){const t=r.certificate_as_unreg_committee_hot_key_cert(this.ptr);return t===0?void 0:W_.__wrap(t)}as_reg_drep_cert(){const t=r.certificate_as_reg_drep_cert(this.ptr);return t===0?void 0:B_.__wrap(t)}as_unreg_drep_cert(){const t=r.certificate_as_unreg_drep_cert(this.ptr);return t===0?void 0:K_.__wrap(t)}}const gy=new FinalizationRegistry(n=>r.__wbg_certificates_free(n));class yr{static __wrap(t){const e=Object.create(yr.prototype);return e.ptr=t,gy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,gy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_certificates_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.certificates_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return yr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.certificates_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.certificates_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return yr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return yr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.certificates_get(this.ptr,t);return Lt.__wrap(e)}add(t){p(t,Lt),r.certificates_add(this.ptr,t.ptr)}}const hy=new FinalizationRegistry(n=>r.__wbg_constrplutusdata_free(n));class fa{static __wrap(t){const e=Object.create(fa.prototype);return e.ptr=t,hy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,hy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_constrplutusdata_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.constrplutusdata_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.constrplutusdata_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return fa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}alternative(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}data(){const t=r.constrplutusdata_data(this.ptr);return ae.__wrap(t)}static new(t,e){p(t,S),p(e,ae);const a=r.constrplutusdata_new(t.ptr,e.ptr);return fa.__wrap(a)}}const by=new FinalizationRegistry(n=>r.__wbg_costmodel_free(n));class pn{static __wrap(t){const e=Object.create(pn.prototype);return e.ptr=t,by.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,by.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_costmodel_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.costmodel_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.costmodel_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return pn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.costmodel_new();return pn.__wrap(t)}static new_plutus_v2(){const t=r.costmodel_new_plutus_v2();return pn.__wrap(t)}static new_plutus_v3(){const t=r.costmodel_new_plutus_v3();return pn.__wrap(t)}set(t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(e,re),r.costmodel_set(o,this.ptr,t,e.ptr);var a=s()[o/4+0],_=s()[o/4+1],i=s()[o/4+2];if(i)throw l(_);return re.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.costmodel_get(i,this.ptr,t);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return re.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}len(){return r.assetnames_len(this.ptr)>>>0}}const yy=new FinalizationRegistry(n=>r.__wbg_costmdls_free(n));class tr{static __wrap(t){const e=Object.create(tr.prototype);return e.ptr=t,yy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,yy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_costmdls_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.costmdls_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.costmdls_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return tr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,We),p(e,pn);const a=r.costmdls_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:pn.__wrap(a)}get(t){p(t,We);const e=r.costmdls_get(this.ptr,t.ptr);return e===0?void 0:pn.__wrap(e)}keys(){const t=r.costmdls_keys(this.ptr);return Es.__wrap(t)}}const my=new FinalizationRegistry(n=>r.__wbg_dnsrecordaoraaaa_free(n));class wa{static __wrap(t){const e=Object.create(wa.prototype);return e.ptr=t,my.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,my.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_dnsrecordaoraaaa_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.dnsrecordaoraaaa_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.dnsrecordaoraaaa_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.dnsrecordaoraaaa_new(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return wa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}record(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const vy=new FinalizationRegistry(n=>r.__wbg_dnsrecordsrv_free(n));class ga{static __wrap(t){const e=Object.create(ga.prototype);return e.ptr=t,vy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,vy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_dnsrecordsrv_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.dnsrecordsrv_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.dnsrecordsrv_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.dnsrecordsrv_new(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}record(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const ky=new FinalizationRegistry(n=>r.__wbg_data_free(n));class Nn{static __wrap(t){const e=Object.create(Nn.prototype);return e.ptr=t,ky.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ky.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_data_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.data_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Nn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.data_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.data_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Nn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,rt);const e=r.data_new(t.ptr);return Nn.__wrap(e)}get(){const t=r.data_get(this.ptr);return rt.__wrap(t)}}const xy=new FinalizationRegistry(n=>r.__wbg_datahash_free(n));class ee{static __wrap(t){const e=Object.create(ee.prototype);return e.ptr=t,xy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,xy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_datahash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.datahash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ee.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.datahash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ee.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.datahash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ee.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const jy=new FinalizationRegistry(n=>r.__wbg_datum_free(n));class Wt{static __wrap(t){const e=Object.create(Wt.prototype);return e.ptr=t,jy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,jy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_datum_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.datum_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Wt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.datum_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.datum_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Wt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_data_hash(t){p(t,ee);const e=r.datum_new_data_hash(t.ptr);return Wt.__wrap(e)}static new_data(t){p(t,Nn);const e=r.datum_new_data(t.ptr);return Wt.__wrap(e)}kind(){return r.datum_kind(this.ptr)>>>0}as_data_hash(){const t=r.datum_as_data_hash(this.ptr);return t===0?void 0:ee.__wrap(t)}as_data(){const t=r.datum_as_data(this.ptr);return t===0?void 0:Nn.__wrap(t)}}const Sy=new FinalizationRegistry(n=>r.__wbg_drep_free(n));class ne{static __wrap(t){const e=Object.create(ne.prototype);return e.ptr=t,Sy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Sy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_drep_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.drep_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ne.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.drep_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.drep_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ne.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_keyhash(t){p(t,J);const e=r.drep_new_keyhash(t.ptr);return ne.__wrap(e)}static new_scripthash(t){p(t,ct);const e=r.drep_new_scripthash(t.ptr);return ne.__wrap(e)}static new_abstain(){const t=r.drep_new_abstain();return ne.__wrap(t)}static new_no_confidence(){const t=r.drep_new_no_confidence();return ne.__wrap(t)}kind(){return r.drep_kind(this.ptr)>>>0}as_keyhash(){const t=r.drep_as_keyhash(this.ptr);return t===0?void 0:J.__wrap(t)}as_scripthash(){const t=r.drep_as_scripthash(this.ptr);return t===0?void 0:ct.__wrap(t)}}const Cy=new FinalizationRegistry(n=>r.__wbg_drepvotingthresholds_free(n));class ha{static __wrap(t){const e=Object.create(ha.prototype);return e.ptr=t,Cy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Cy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_drepvotingthresholds_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.drepvotingthresholds_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.drepvotingthresholds_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.drepvotingthresholds_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}motion_no_confidence(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return at.__wrap(t)}committee_normal(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return at.__wrap(t)}committee_no_confidence(){const t=r.drepvotingthresholds_committee_no_confidence(this.ptr);return at.__wrap(t)}update_constitution(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return at.__wrap(t)}hard_fork_initiation(){const t=r.drepvotingthresholds_hard_fork_initiation(this.ptr);return at.__wrap(t)}pp_network_group(){const t=r.drepvotingthresholds_pp_network_group(this.ptr);return at.__wrap(t)}pp_economic_group(){const t=r.drepvotingthresholds_pp_economic_group(this.ptr);return at.__wrap(t)}pp_technical_group(){const t=r.drepvotingthresholds_pp_technical_group(this.ptr);return at.__wrap(t)}pp_governance_group(){const t=r.drepvotingthresholds_pp_governance_group(this.ptr);return at.__wrap(t)}treasury_withdrawal(){const t=r.drepvotingthresholds_treasury_withdrawal(this.ptr);return at.__wrap(t)}static new(t,e,a,_,i,o,c,d,f,h){p(t,at),p(e,at),p(a,at),p(_,at),p(i,at),p(o,at),p(c,at),p(d,at),p(f,at),p(h,at);const v=r.drepvotingthresholds_new(t.ptr,e.ptr,a.ptr,_.ptr,i.ptr,o.ptr,c.ptr,d.ptr,f.ptr,h.ptr);return ha.__wrap(v)}}const Ey=new FinalizationRegistry(n=>r.__wbg_ed25519keyhash_free(n));class J{static __wrap(t){const e=Object.create(J.prototype);return e.ptr=t,Ey.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ey.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519keyhash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.ed25519keyhash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return J.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.ed25519keyhash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ed25519keyhash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return J.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ed25519keyhash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return J.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Oy=new FinalizationRegistry(n=>r.__wbg_ed25519keyhashes_free(n));class Xt{static __wrap(t){const e=Object.create(Xt.prototype);return e.ptr=t,Oy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Oy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519keyhashes_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.ed25519keyhashes_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ed25519keyhashes_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Xt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return Xt.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.ed25519keyhashes_get(this.ptr,t);return J.__wrap(e)}add(t){p(t,J),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const zy=new FinalizationRegistry(n=>r.__wbg_ed25519signature_free(n));class me{static __wrap(t){const e=Object.create(me.prototype);return e.ptr=t,zy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,zy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ed25519signature_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_bech32(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519signature_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ed25519signature_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return me.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ed25519signature_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return me.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.ed25519signature_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return me.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Ry=new FinalizationRegistry(n=>r.__wbg_enterpriseaddress_free(n));class Tn{static __wrap(t){const e=Object.create(Tn.prototype);return e.ptr=t,Ry.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ry.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_enterpriseaddress_free(t)}static new(t,e){p(e,H);const a=r.enterpriseaddress_new(t,e.ptr);return Tn.__wrap(a)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return H.__wrap(t)}to_address(){const t=r.enterpriseaddress_to_address(this.ptr);return vt.__wrap(t)}static from_address(t){p(t,vt);const e=r.address_as_enterprise(t.ptr);return e===0?void 0:Tn.__wrap(e)}}const Py=new FinalizationRegistry(n=>r.__wbg_exunitprices_free(n));class In{static __wrap(t){const e=Object.create(In.prototype);return e.ptr=t,Py.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Py.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_exunitprices_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.exunitprices_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.exunitprices_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return In.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mem_price(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return at.__wrap(t)}step_price(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return at.__wrap(t)}static new(t,e){p(t,at),p(e,at);const a=r.exunitprices_new(t.ptr,e.ptr);return In.__wrap(a)}static from_float(t,e){const a=r.exunitprices_from_float(t,e);return In.__wrap(a)}}const Ny=new FinalizationRegistry(n=>r.__wbg_exunits_free(n));class $e{static __wrap(t){const e=Object.create($e.prototype);return e.ptr=t,Ny.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ny.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_exunits_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.exunits_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.exunits_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return $e.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mem(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}steps(){const t=r.exunits_steps(this.ptr);return S.__wrap(t)}static new(t,e){p(t,S),p(e,S);const a=r.exunits_new(t.ptr,e.ptr);return $e.__wrap(a)}}const Ty=new FinalizationRegistry(n=>r.__wbg_generaltransactionmetadata_free(n));class mr{static __wrap(t){const e=Object.create(mr.prototype);return e.ptr=t,Ty.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ty.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_generaltransactionmetadata_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.generaltransactionmetadata_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.generaltransactionmetadata_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.generaltransactionmetadata_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return mr.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,S),p(e,mt);const a=r.generaltransactionmetadata_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:mt.__wrap(a)}get(t){p(t,S);const e=r.generaltransactionmetadata_get(this.ptr,t.ptr);return e===0?void 0:mt.__wrap(e)}keys(){const t=r.generaltransactionmetadata_keys(this.ptr);return zi.__wrap(t)}}const Iy=new FinalizationRegistry(n=>r.__wbg_genesisdelegatehash_free(n));class ba{static __wrap(t){const e=Object.create(ba.prototype);return e.ptr=t,Iy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Iy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesisdelegatehash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.genesisdelegatehash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.ed25519keyhash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesisdelegatehash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesisdelegatehash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Fy=new FinalizationRegistry(n=>r.__wbg_genesishash_free(n));class fn{static __wrap(t){const e=Object.create(fn.prototype);return e.ptr=t,Fy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Fy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesishash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.genesishash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.ed25519keyhash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesishash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesishash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return fn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Dy=new FinalizationRegistry(n=>r.__wbg_genesishashes_free(n));class N_{static __wrap(t){const e=Object.create(N_.prototype);return e.ptr=t,Dy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Dy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesishashes_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.genesishashes_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.genesishashes_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return N_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesishashes_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return N_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return N_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.genesishashes_get(this.ptr,t);return fn.__wrap(e)}add(t){p(t,fn),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const Ay=new FinalizationRegistry(n=>r.__wbg_genesiskeydelegation_free(n));class ya{static __wrap(t){const e=Object.create(ya.prototype);return e.ptr=t,Ay.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ay.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_genesiskeydelegation_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.genesiskeydelegation_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.genesiskeydelegation_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.genesiskeydelegation_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ya.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}genesishash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return fn.__wrap(t)}genesis_delegate_hash(){const t=r.genesiskeydelegation_genesis_delegate_hash(this.ptr);return ba.__wrap(t)}vrf_keyhash(){const t=r.genesiskeydelegation_vrf_keyhash(this.ptr);return mn.__wrap(t)}static new(t,e,a){p(t,fn),p(e,ba),p(a,mn);const _=r.genesiskeydelegation_new(t.ptr,e.ptr,a.ptr);return ya.__wrap(_)}}const My=new FinalizationRegistry(n=>r.__wbg_governanceaction_free(n));class Pe{static __wrap(t){const e=Object.create(Pe.prototype);return e.ptr=t,My.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,My.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_governanceaction_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.governanceaction_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.governanceaction_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.governanceaction_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_parameter_change_action(t){p(t,Na);const e=r.governanceaction_new_parameter_change_action(t.ptr);return Pe.__wrap(e)}static new_hard_fork_initiation_action(t){p(t,va);const e=r.governanceaction_new_hard_fork_initiation_action(t.ptr);return Pe.__wrap(e)}static new_treasury_withdrawals_action(t){p(t,Xa);const e=r.governanceaction_new_treasury_withdrawals_action(t.ptr);return Pe.__wrap(e)}static new_no_confidence(){const t=r.governanceaction_new_no_confidence();return Pe.__wrap(t)}static new_new_committee(t){p(t,Oa);const e=r.governanceaction_new_new_committee(t.ptr);return Pe.__wrap(e)}static new_new_constitution(t){p(t,za);const e=r.governanceaction_new_new_constitution(t.ptr);return Pe.__wrap(e)}static new_info_action(){const t=r.governanceaction_new_info_action();return Pe.__wrap(t)}kind(){return r.governanceaction_kind(this.ptr)>>>0}as_parameter_change_action(){const t=r.governanceaction_as_parameter_change_action(this.ptr);return t===0?void 0:Na.__wrap(t)}as_hard_fork_initiation_action(){const t=r.governanceaction_as_hard_fork_initiation_action(this.ptr);return t===0?void 0:va.__wrap(t)}as_treasury_withdrawals_action(){const t=r.governanceaction_as_treasury_withdrawals_action(this.ptr);return t===0?void 0:Xa.__wrap(t)}as_new_committee(){const t=r.governanceaction_as_new_committee(this.ptr);return t===0?void 0:Oa.__wrap(t)}as_new_constitution(){const t=r.governanceaction_as_new_constitution(this.ptr);return t===0?void 0:za.__wrap(t)}}const By=new FinalizationRegistry(n=>r.__wbg_governanceactionid_free(n));class ma{static __wrap(t){const e=Object.create(ma.prototype);return e.ptr=t,By.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,By.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_governanceactionid_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.governanceactionid_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.governanceactionid_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.governanceactionid_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}transaction_id(){const t=r.governanceactionid_transaction_id(this.ptr);return fe.__wrap(t)}governance_action_index(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t,e){p(t,fe),p(e,S);const a=r.governanceactionid_new(t.ptr,e.ptr);return ma.__wrap(a)}}const Ly=new FinalizationRegistry(n=>r.__wbg_hardforkinitiationaction_free(n));class va{static __wrap(t){const e=Object.create(va.prototype);return e.ptr=t,Ly.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ly.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_hardforkinitiationaction_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.hardforkinitiationaction_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.hardforkinitiationaction_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.hardforkinitiationaction_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}protocol_version(){const t=r.hardforkinitiationaction_new(this.ptr);return hn.__wrap(t)}static new(t){p(t,hn);const e=r.hardforkinitiationaction_new(t.ptr);return va.__wrap(e)}}const Uy=new FinalizationRegistry(n=>r.__wbg_header_free(n));class ka{static __wrap(t){const e=Object.create(ka.prototype);return e.ptr=t,Uy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Uy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_header_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.header_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.header_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.header_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ka.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}header_body(){const t=r.header_header_body(this.ptr);return xa.__wrap(t)}body_signature(){const t=r.header_body_signature(this.ptr);return Ci.__wrap(t)}static new(t,e){p(t,xa),p(e,Ci);const a=r.header_new(t.ptr,e.ptr);return ka.__wrap(a)}}const Vy=new FinalizationRegistry(n=>r.__wbg_headerbody_free(n));class xa{static __wrap(t){const e=Object.create(xa.prototype);return e.ptr=t,Vy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Vy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_headerbody_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.headerbody_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.headerbody_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.headerbody_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}block_number(){return r.headerbody_block_number(this.ptr)>>>0}slot(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}prev_hash(){const t=r.headerbody_prev_hash(this.ptr);return t===0?void 0:Yn.__wrap(t)}issuer_vkey(){const t=r.headerbody_issuer_vkey(this.ptr);return xe.__wrap(t)}vrf_vkey(){const t=r.headerbody_vrf_vkey(this.ptr);return Pi.__wrap(t)}nonce_vrf(){const t=r.headerbody_nonce_vrf(this.ptr);return _r.__wrap(t)}leader_vrf(){const t=r.headerbody_leader_vrf(this.ptr);return _r.__wrap(t)}block_body_size(){return r.headerbody_block_body_size(this.ptr)>>>0}block_body_hash(){const t=r.headerbody_block_body_hash(this.ptr);return Yn.__wrap(t)}operational_cert(){const t=r.headerbody_operational_cert(this.ptr);return Pa.__wrap(t)}protocol_version(){const t=r.headerbody_protocol_version(this.ptr);return hn.__wrap(t)}static new(t,e,a,_,i,o,c,d,f,h,v){p(e,S);let y=0;Nt(a)||(p(a,Yn),y=a.__destroy_into_raw()),p(_,xe),p(i,Pi),p(o,_r),p(c,_r),p(f,Yn),p(h,Pa),p(v,hn);const x=r.headerbody_new(t,e.ptr,y,_.ptr,i.ptr,o.ptr,c.ptr,d,f.ptr,h.ptr,v.ptr);return xa.__wrap(x)}}const qy=new FinalizationRegistry(n=>r.__wbg_int_free(n));let re=class Vi{static __wrap(t){const e=Object.create(Vi.prototype);return e.ptr=t,qy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,qy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_int_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.int_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.int_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Vi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,S);const e=r.int_new(t.ptr);return Vi.__wrap(e)}static new_negative(t){p(t,S);const e=r.int_new_negative(t.ptr);return Vi.__wrap(e)}static new_i32(t){const e=r.int_new_i32(t);return Vi.__wrap(e)}is_positive(){return r.int_is_positive(this.ptr)!==0}as_positive(){const t=r.int_as_positive(this.ptr);return t===0?void 0:S.__wrap(t)}as_negative(){const t=r.int_as_negative(this.ptr);return t===0?void 0:S.__wrap(t)}as_i32(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_nothing(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_i32_or_fail(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.int_as_i32_or_fail(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return t}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.int_to_str(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_str(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.int_from_str(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Vi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}};const Hy=new FinalizationRegistry(n=>r.__wbg_ipv4_free(n));class vr{static __wrap(t){const e=Object.create(vr.prototype);return e.ptr=t,Hy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Hy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ipv4_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.ipv4_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return vr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ipv4_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return vr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.ipv4_new(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return vr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ipv4_ip(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const $y=new FinalizationRegistry(n=>r.__wbg_ipv6_free(n));class kr{static __wrap(t){const e=Object.create(kr.prototype);return e.ptr=t,$y.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$y.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_ipv6_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.ipv6_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return kr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.ipv6_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return kr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.ipv6_new(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return kr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}ip(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ipv6_ip(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Wy=new FinalizationRegistry(n=>r.__wbg_kessignature_free(n));class Ci{static __wrap(t){const e=Object.create(Ci.prototype);return e.ptr=t,Wy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Wy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_kessignature_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.kessignature_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ci.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Ky=new FinalizationRegistry(n=>r.__wbg_kesvkey_free(n));class ja{static __wrap(t){const e=Object.create(ja.prototype);return e.ptr=t,Ky.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ky.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_kesvkey_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.kesvkey_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.kesvkey_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.kesvkey_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Qy=new FinalizationRegistry(n=>r.__wbg_language_free(n));class We{static __wrap(t){const e=Object.create(We.prototype);return e.ptr=t,Qy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Qy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_language_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.language_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.language_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return We.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_plutus_v1(){const t=r.language_new_plutus_v1();return We.__wrap(t)}static new_plutus_v2(){const t=r.language_new_plutus_v2();return We.__wrap(t)}static new_plutus_v3(){const t=r.language_new_plutus_v3();return We.__wrap(t)}kind(){return r.language_kind(this.ptr)>>>0}}const Gy=new FinalizationRegistry(n=>r.__wbg_languages_free(n));class Es{static __wrap(t){const e=Object.create(Es.prototype);return e.ptr=t,Gy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Gy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_languages_free(t)}static new(){const t=r.ed25519keyhashes_new();return Es.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.languages_get(this.ptr,t);return We.__wrap(e)}add(t){p(t,We);var e=t.__destroy_into_raw();r.languages_add(this.ptr,e)}}const Xy=new FinalizationRegistry(n=>r.__wbg_legacydaedalusprivatekey_free(n));class Os{static __wrap(t){const e=Object.create(Os.prototype);return e.ptr=t,Xy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Xy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_legacydaedalusprivatekey_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.legacydaedalusprivatekey_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Os.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.legacydaedalusprivatekey_as_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}chaincode(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.legacydaedalusprivatekey_chaincode(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Jy=new FinalizationRegistry(n=>r.__wbg_linearfee_free(n));class T_{static __wrap(t){const e=Object.create(T_.prototype);return e.ptr=t,Jy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Jy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_linearfee_free(t)}constant(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}coefficient(){const t=r.exunits_steps(this.ptr);return S.__wrap(t)}static new(t,e){p(t,S),p(e,S);const a=r.linearfee_new(t.ptr,e.ptr);return T_.__wrap(a)}}const Zy=new FinalizationRegistry(n=>r.__wbg_mirtostakecredentials_free(n));class Sa{static __wrap(t){const e=Object.create(Sa.prototype);return e.ptr=t,Zy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Zy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mirtostakecredentials_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.mirtostakecredentials_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Sa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.mirtostakecredentials_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.mirtostakecredentials_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Sa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return Sa.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,H),p(e,re);const a=r.mirtostakecredentials_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:re.__wrap(a)}get(t){p(t,H);const e=r.mirtostakecredentials_get(this.ptr,t.ptr);return e===0?void 0:re.__wrap(e)}keys(){const t=r.mirtostakecredentials_keys(this.ptr);return U_.__wrap(t)}}const Yy=new FinalizationRegistry(n=>r.__wbg_metadatalist_free(n));class Ca{static __wrap(t){const e=Object.create(Ca.prototype);return e.ptr=t,Yy.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Yy.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_metadatalist_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.metadatalist_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.metadatalist_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ca.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Ca.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.metadatalist_get(this.ptr,t);return mt.__wrap(e)}add(t){p(t,mt),r.metadatalist_add(this.ptr,t.ptr)}}const tm=new FinalizationRegistry(n=>r.__wbg_metadatamap_free(n));class I_{static __wrap(t){const e=Object.create(I_.prototype);return e.ptr=t,tm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,tm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_metadatamap_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.metadatamap_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.metadatamap_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return I_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return I_.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,mt),p(e,mt);const a=r.metadatamap_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:mt.__wrap(a)}insert_str(t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16),c=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),d=w;p(e,mt),r.metadatamap_insert_str(o,this.ptr,c,d,e.ptr);var a=s()[o/4+0],_=s()[o/4+1],i=s()[o/4+2];if(i)throw l(_);return a===0?void 0:mt.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}insert_i32(t,e){p(e,mt);const a=r.metadatamap_insert_i32(this.ptr,t,e.ptr);return a===0?void 0:mt.__wrap(a)}get(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,mt),r.metadatamap_get(i,this.ptr,t.ptr);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_str(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.metadatamap_get_str(i,this.ptr,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_i32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);r.metadatamap_get_i32(i,this.ptr,t);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}has(t){return p(t,mt),r.metadatamap_has(this.ptr,t.ptr)!==0}keys(){const t=r.metadatamap_keys(this.ptr);return Ca.__wrap(t)}}const em=new FinalizationRegistry(n=>r.__wbg_mint_free(n));class er{static __wrap(t){const e=Object.create(er.prototype);return e.ptr=t,em.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,em.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mint_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.mint_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.mint_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.mint_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return er.__wrap(t)}static new_from_entry(t,e){p(t,ct),p(e,Fn);const a=r.mint_new_from_entry(t.ptr,e.ptr);return er.__wrap(a)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,ct),p(e,Fn);const a=r.mint_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:Fn.__wrap(a)}get(t){p(t,ct);const e=r.mint_get(this.ptr,t.ptr);return e===0?void 0:Fn.__wrap(e)}keys(){const t=r.mint_keys(this.ptr);return Ba.__wrap(t)}as_positive_multiasset(){const t=r.mint_as_positive_multiasset(this.ptr);return pe.__wrap(t)}as_negative_multiasset(){const t=r.mint_as_negative_multiasset(this.ptr);return pe.__wrap(t)}}const nm=new FinalizationRegistry(n=>r.__wbg_mintassets_free(n));class Fn{static __wrap(t){const e=Object.create(Fn.prototype);return e.ptr=t,nm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,nm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_mintassets_free(t)}static new(){const t=r.assets_new();return Fn.__wrap(t)}static new_from_entry(t,e){p(t,te),p(e,re);var a=e.__destroy_into_raw();const _=r.mintassets_new_from_entry(t.ptr,a);return Fn.__wrap(_)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,te),p(e,re);var a=e.__destroy_into_raw();const _=r.mintassets_insert(this.ptr,t.ptr,a);return _===0?void 0:re.__wrap(_)}get(t){p(t,te);const e=r.mintassets_get(this.ptr,t.ptr);return e===0?void 0:re.__wrap(e)}keys(){const t=r.mintassets_keys(this.ptr);return ua.__wrap(t)}}const rm=new FinalizationRegistry(n=>r.__wbg_moveinstantaneousreward_free(n));class xr{static __wrap(t){const e=Object.create(xr.prototype);return e.ptr=t,rm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,rm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_moveinstantaneousreward_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.moveinstantaneousreward_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return xr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousreward_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.moveinstantaneousreward_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return xr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_to_other_pot(t,e){p(e,S);const a=r.moveinstantaneousreward_new_to_other_pot(t,e.ptr);return xr.__wrap(a)}static new_to_stake_creds(t,e){p(e,Sa);const a=r.moveinstantaneousreward_new_to_stake_creds(t,e.ptr);return xr.__wrap(a)}pot(){return r.moveinstantaneousreward_pot(this.ptr)>>>0}kind(){return r.moveinstantaneousreward_kind(this.ptr)>>>0}as_to_other_pot(){const t=r.moveinstantaneousreward_as_to_other_pot(this.ptr);return t===0?void 0:S.__wrap(t)}as_to_stake_creds(){const t=r.moveinstantaneousreward_as_to_stake_creds(this.ptr);return t===0?void 0:Sa.__wrap(t)}}const am=new FinalizationRegistry(n=>r.__wbg_moveinstantaneousrewardscert_free(n));class Ea{static __wrap(t){const e=Object.create(Ea.prototype);return e.ptr=t,am.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,am.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_moveinstantaneousrewardscert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.moveinstantaneousrewardscert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ea.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.moveinstantaneousrewardscert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.moveinstantaneousrewardscert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ea.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}move_instantaneous_reward(){const t=r.moveinstantaneousrewardscert_move_instantaneous_reward(this.ptr);return xr.__wrap(t)}static new(t){p(t,xr);const e=r.moveinstantaneousrewardscert_new(t.ptr);return Ea.__wrap(e)}}const _m=new FinalizationRegistry(n=>r.__wbg_multiasset_free(n));class pe{static __wrap(t){const e=Object.create(pe.prototype);return e.ptr=t,_m.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_m.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_multiasset_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.multiasset_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.multiasset_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.multiasset_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return pe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return pe.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,ct),p(e,Jn);const a=r.multiasset_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:Jn.__wrap(a)}get(t){p(t,ct);const e=r.multiasset_get(this.ptr,t.ptr);return e===0?void 0:Jn.__wrap(e)}set_asset(t,e,a){p(t,ct),p(e,te),p(a,S);var _=a.__destroy_into_raw();const i=r.multiasset_set_asset(this.ptr,t.ptr,e.ptr,_);return i===0?void 0:S.__wrap(i)}get_asset(t,e){p(t,ct),p(e,te);const a=r.multiasset_get_asset(this.ptr,t.ptr,e.ptr);return S.__wrap(a)}keys(){const t=r.mint_keys(this.ptr);return Ba.__wrap(t)}sub(t){p(t,pe);const e=r.multiasset_sub(this.ptr,t.ptr);return pe.__wrap(e)}}const im=new FinalizationRegistry(n=>r.__wbg_multihostname_free(n));class jr{static __wrap(t){const e=Object.create(jr.prototype);return e.ptr=t,im.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,im.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_multihostname_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.multihostname_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return jr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.multihostname_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.multihostname_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return jr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}dns_name(){const t=r.anchor_anchor_url(this.ptr);return ga.__wrap(t)}static new(t){p(t,ga);const e=r.multihostname_new(t.ptr);return jr.__wrap(e)}}const sm=new FinalizationRegistry(n=>r.__wbg_nativescript_free(n));class St{static __wrap(t){const e=Object.create(St.prototype);return e.ptr=t,sm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,sm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nativescript_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.nativescript_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return St.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.nativescript_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.nativescript_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return St.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(t){const e=r.nativescript_hash(this.ptr,t);return ct.__wrap(e)}static new_script_pubkey(t){p(t,Ua);const e=r.nativescript_new_script_pubkey(t.ptr);return St.__wrap(e)}static new_script_all(t){p(t,Aa);const e=r.nativescript_new_script_all(t.ptr);return St.__wrap(e)}static new_script_any(t){p(t,Ma);const e=r.nativescript_new_script_any(t.ptr);return St.__wrap(e)}static new_script_n_of_k(t){p(t,La);const e=r.nativescript_new_script_n_of_k(t.ptr);return St.__wrap(e)}static new_timelock_start(t){p(t,qa);const e=r.nativescript_new_timelock_start(t.ptr);return St.__wrap(e)}static new_timelock_expiry(t){p(t,Va);const e=r.nativescript_new_timelock_expiry(t.ptr);return St.__wrap(e)}kind(){return r.nativescript_kind(this.ptr)>>>0}as_script_pubkey(){const t=r.nativescript_as_script_pubkey(this.ptr);return t===0?void 0:Ua.__wrap(t)}as_script_all(){const t=r.nativescript_as_script_all(this.ptr);return t===0?void 0:Aa.__wrap(t)}as_script_any(){const t=r.nativescript_as_script_any(this.ptr);return t===0?void 0:Ma.__wrap(t)}as_script_n_of_k(){const t=r.nativescript_as_script_n_of_k(this.ptr);return t===0?void 0:La.__wrap(t)}as_timelock_start(){const t=r.nativescript_as_timelock_start(this.ptr);return t===0?void 0:qa.__wrap(t)}as_timelock_expiry(){const t=r.nativescript_as_timelock_expiry(this.ptr);return t===0?void 0:Va.__wrap(t)}get_required_signers(){const t=r.nativescript_get_required_signers(this.ptr);return Xt.__wrap(t)}verify(t,e,a){let _=0;Nt(t)||(p(t,S),_=t.__destroy_into_raw());let i=0;return Nt(e)||(p(e,S),i=e.__destroy_into_raw()),p(a,Xt),r.nativescript_verify(this.ptr,_,i,a.ptr)!==0}}const om=new FinalizationRegistry(n=>r.__wbg_nativescripts_free(n));class ve{static __wrap(t){const e=Object.create(ve.prototype);return e.ptr=t,om.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,om.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nativescripts_free(t)}static new(){const t=r.certificates_new();return ve.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.nativescripts_get(this.ptr,t);return St.__wrap(e)}add(t){p(t,St),r.nativescripts_add(this.ptr,t.ptr)}}const cm=new FinalizationRegistry(n=>r.__wbg_networkid_free(n));class wn{static __wrap(t){const e=Object.create(wn.prototype);return e.ptr=t,cm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,cm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_networkid_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.networkid_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return wn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.networkid_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.networkid_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return wn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static testnet(){const t=r.networkid_testnet();return wn.__wrap(t)}static mainnet(){const t=r.networkid_mainnet();return wn.__wrap(t)}kind(){return r.networkid_kind(this.ptr)>>>0}}const lm=new FinalizationRegistry(n=>r.__wbg_networkinfo_free(n));class Sr{static __wrap(t){const e=Object.create(Sr.prototype);return e.ptr=t,lm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,lm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_networkinfo_free(t)}static new(t,e){const a=r.networkinfo_new(t,e);return Sr.__wrap(a)}network_id(){return r.networkinfo_network_id(this.ptr)}protocol_magic(){return r.networkinfo_protocol_magic(this.ptr)>>>0}static testnet(){const t=r.networkinfo_testnet();return Sr.__wrap(t)}static mainnet(){const t=r.networkinfo_mainnet();return Sr.__wrap(t)}}const dm=new FinalizationRegistry(n=>r.__wbg_newcommittee_free(n));class Oa{static __wrap(t){const e=Object.create(Oa.prototype);return e.ptr=t,dm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,dm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_newcommittee_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.newcommittee_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Oa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.newcommittee_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.newcommittee_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Oa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee(){const t=r.newcommittee_committee(this.ptr);return Xt.__wrap(t)}rational(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return at.__wrap(t)}static new(t,e){p(t,Xt),p(e,at);const a=r.newcommittee_new(t.ptr,e.ptr);return Oa.__wrap(a)}}const um=new FinalizationRegistry(n=>r.__wbg_newconstitution_free(n));class za{static __wrap(t){const e=Object.create(za.prototype);return e.ptr=t,um.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,um.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_newconstitution_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.newconstitution_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.newconstitution_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.newconstitution_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=r.newconstitution_hash(this.ptr);return ee.__wrap(t)}static new(t){p(t,ee);const e=r.newconstitution_new(t.ptr);return za.__wrap(e)}}const pm=new FinalizationRegistry(n=>r.__wbg_nonce_free(n));class Ra{static __wrap(t){const e=Object.create(Ra.prototype);return e.ptr=t,pm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,pm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_nonce_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.nonce_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.nonce_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ra.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_identity(){const t=r.nonce_new_identity();return Ra.__wrap(t)}static new_from_hash(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.nonce_new_from_hash(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ra.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_hash(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.nonce_get_hash(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];let _;return t!==0&&(_=j(t,e).slice(),r.__wbindgen_free(t,e*1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const fm=new FinalizationRegistry(n=>r.__wbg_operationalcert_free(n));class Pa{static __wrap(t){const e=Object.create(Pa.prototype);return e.ptr=t,fm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,fm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_operationalcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.operationalcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.operationalcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.operationalcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Pa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hot_vkey(){const t=r.operationalcert_hot_vkey(this.ptr);return ja.__wrap(t)}sequence_number(){return r.networkinfo_protocol_magic(this.ptr)>>>0}kes_period(){return r.operationalcert_kes_period(this.ptr)>>>0}sigma(){const t=r.operationalcert_sigma(this.ptr);return me.__wrap(t)}static new(t,e,a,_){p(t,ja),p(_,me);const i=r.operationalcert_new(t.ptr,e,a,_.ptr);return Pa.__wrap(i)}}const wm=new FinalizationRegistry(n=>r.__wbg_parameterchangeaction_free(n));class Na{static __wrap(t){const e=Object.create(Na.prototype);return e.ptr=t,wm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,wm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_parameterchangeaction_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.parameterchangeaction_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Na.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.parameterchangeaction_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.parameterchangeaction_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Na.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}protocol_param_update(){const t=r.parameterchangeaction_protocol_param_update(this.ptr);return Dn.__wrap(t)}static new(t){p(t,Dn);const e=r.parameterchangeaction_new(t.ptr);return Na.__wrap(e)}}const gm=new FinalizationRegistry(n=>r.__wbg_plutusdata_free(n));class rt{static __wrap(t){const e=Object.create(rt.prototype);return e.ptr=t,gm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,gm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusdata_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.plutusdata_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.plutusdata_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return rt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_constr_plutus_data(t){p(t,fa);const e=r.plutusdata_new_constr_plutus_data(t.ptr);return rt.__wrap(e)}static new_map(t){p(t,Ta);const e=r.plutusdata_new_map(t.ptr);return rt.__wrap(e)}static new_list(t){p(t,ae);const e=r.plutusdata_new_list(t.ptr);return rt.__wrap(e)}static new_integer(t){p(t,Wo);const e=r.plutusdata_new_integer(t.ptr);return rt.__wrap(e)}static new_bytes(t){const e=E(t,r.__wbindgen_malloc),a=w,_=r.plutusdata_new_bytes(e,a);return rt.__wrap(_)}kind(){return r.plutusdata_kind(this.ptr)>>>0}as_constr_plutus_data(){const t=r.plutusdata_as_constr_plutus_data(this.ptr);return t===0?void 0:fa.__wrap(t)}as_map(){const t=r.plutusdata_as_map(this.ptr);return t===0?void 0:Ta.__wrap(t)}as_list(){const t=r.plutusdata_as_list(this.ptr);return t===0?void 0:ae.__wrap(t)}as_integer(){const t=r.plutusdata_as_integer(this.ptr);return t===0?void 0:Wo.__wrap(t)}as_bytes(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.plutusdata_as_bytes(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];let _;return t!==0&&(_=j(t,e).slice(),r.__wbindgen_free(t,e*1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const hm=new FinalizationRegistry(n=>r.__wbg_plutuslist_free(n));class ae{static __wrap(t){const e=Object.create(ae.prototype);return e.ptr=t,hm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,hm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutuslist_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.plutuslist_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.plutuslist_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ae.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.plutuslist_new();return ae.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.plutuslist_get(this.ptr,t);return rt.__wrap(e)}add(t){p(t,rt),r.plutuslist_add(this.ptr,t.ptr)}}const bm=new FinalizationRegistry(n=>r.__wbg_plutusmap_free(n));class Ta{static __wrap(t){const e=Object.create(Ta.prototype);return e.ptr=t,bm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,bm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusmap_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.plutusmap_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.plutusmap_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ta.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Ta.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,rt),p(e,rt);const a=r.plutusmap_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:rt.__wrap(a)}get(t){p(t,rt);const e=r.plutusmap_get(this.ptr,t.ptr);return e===0?void 0:rt.__wrap(e)}keys(){const t=r.plutusmap_keys(this.ptr);return ae.__wrap(t)}}const ym=new FinalizationRegistry(n=>r.__wbg_plutusscript_free(n));class wt{static __wrap(t){const e=Object.create(wt.prototype);return e.ptr=t,ym.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,ym.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusscript_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.plutusscript_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.plutusscript_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return wt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(t){const e=r.plutusscript_hash(this.ptr,t);return ct.__wrap(e)}static new(t){const e=E(t,r.__wbindgen_malloc),a=w,_=r.plutusscript_new(e,a);return wt.__wrap(_)}bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const mm=new FinalizationRegistry(n=>r.__wbg_plutusscripts_free(n));class _e{static __wrap(t){const e=Object.create(_e.prototype);return e.ptr=t,mm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,mm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutusscripts_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.plutusscripts_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.plutusscripts_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return _e.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return _e.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.plutusscripts_get(this.ptr,t);return wt.__wrap(e)}add(t){p(t,wt),r.assetnames_add(this.ptr,t.ptr)}}const vm=new FinalizationRegistry(n=>r.__wbg_plutuswitness_free(n));class gn{static __wrap(t){const e=Object.create(gn.prototype);return e.ptr=t,vm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,vm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_plutuswitness_free(t)}static new(t,e,a){p(t,rt);let _=0;Nt(e)||(p(e,rt),_=e.__destroy_into_raw());let i=0;Nt(a)||(p(a,wt),i=a.__destroy_into_raw());const o=r.plutuswitness_new(t.ptr,_,i);return gn.__wrap(o)}static new_plutus_v2(t,e,a){p(t,rt);let _=0;Nt(e)||(p(e,rt),_=e.__destroy_into_raw());let i=0;Nt(a)||(p(a,wt),i=a.__destroy_into_raw());const o=r.plutuswitness_new_plutus_v2(t.ptr,_,i);return gn.__wrap(o)}plutus_data(){const t=r.plutuswitness_plutus_data(this.ptr);return t===0?void 0:rt.__wrap(t)}redeemer(){const t=r.data_get(this.ptr);return rt.__wrap(t)}script(){const t=r.plutuswitness_script(this.ptr);return t===0?void 0:wt.__wrap(t)}version(){return r.plutuswitness_version(this.ptr)>>>0}}const km=new FinalizationRegistry(n=>r.__wbg_pointer_free(n));class Ei{static __wrap(t){const e=Object.create(Ei.prototype);return e.ptr=t,km.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,km.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_pointer_free(t)}static new(t,e,a){p(t,S),p(e,S),p(a,S);const _=r.pointer_new(t.ptr,e.ptr,a.ptr);return Ei.__wrap(_)}slot(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}tx_index(){const t=r.exunits_steps(this.ptr);return S.__wrap(t)}cert_index(){const t=r.pointer_cert_index(this.ptr);return S.__wrap(t)}}const xm=new FinalizationRegistry(n=>r.__wbg_pointeraddress_free(n));class F_{static __wrap(t){const e=Object.create(F_.prototype);return e.ptr=t,xm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,xm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_pointeraddress_free(t)}static new(t,e,a){p(e,H),p(a,Ei);const _=r.pointeraddress_new(t,e.ptr,a.ptr);return F_.__wrap(_)}payment_cred(){const t=r.pointeraddress_payment_cred(this.ptr);return H.__wrap(t)}stake_pointer(){const t=r.pointeraddress_stake_pointer(this.ptr);return Ei.__wrap(t)}to_address(){const t=r.pointeraddress_to_address(this.ptr);return vt.__wrap(t)}static from_address(t){p(t,vt);const e=r.address_as_pointer(t.ptr);return e===0?void 0:F_.__wrap(e)}}const jm=new FinalizationRegistry(n=>r.__wbg_poolmetadata_free(n));class Cr{static __wrap(t){const e=Object.create(Cr.prototype);return e.ptr=t,jm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,jm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolmetadata_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.poolmetadata_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Cr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.poolmetadata_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolmetadata_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Cr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}url(){const t=r.anchor_anchor_url(this.ptr);return ar.__wrap(t)}pool_metadata_hash(){const t=r.anchor_anchor_data_hash(this.ptr);return Er.__wrap(t)}static new(t,e){p(t,ar),p(e,Er);const a=r.anchor_new(t.ptr,e.ptr);return Cr.__wrap(a)}}const Sm=new FinalizationRegistry(n=>r.__wbg_poolmetadatahash_free(n));class Er{static __wrap(t){const e=Object.create(Er.prototype);return e.ptr=t,Sm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Sm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolmetadatahash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.poolmetadatahash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolmetadatahash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolmetadatahash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Er.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Cm=new FinalizationRegistry(n=>r.__wbg_poolparams_free(n));class Or{static __wrap(t){const e=Object.create(Or.prototype);return e.ptr=t,Cm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Cm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolparams_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.poolparams_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.poolparams_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolparams_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Or.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}operator(){const t=r.poolparams_operator(this.ptr);return J.__wrap(t)}vrf_keyhash(){const t=r.poolparams_vrf_keyhash(this.ptr);return mn.__wrap(t)}pledge(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}cost(){const t=r.exunits_steps(this.ptr);return S.__wrap(t)}margin(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return at.__wrap(t)}reward_account(){const t=r.poolparams_reward_account(this.ptr);return zt.__wrap(t)}pool_owners(){const t=r.poolparams_pool_owners(this.ptr);return Xt.__wrap(t)}relays(){const t=r.poolparams_relays(this.ptr);return Tr.__wrap(t)}pool_metadata(){const t=r.poolparams_pool_metadata(this.ptr);return t===0?void 0:Cr.__wrap(t)}static new(t,e,a,_,i,o,c,d,f){p(t,J),p(e,mn),p(a,S),p(_,S),p(i,at),p(o,zt),p(c,Xt),p(d,Tr);let h=0;Nt(f)||(p(f,Cr),h=f.__destroy_into_raw());const v=r.poolparams_new(t.ptr,e.ptr,a.ptr,_.ptr,i.ptr,o.ptr,c.ptr,d.ptr,h);return Or.__wrap(v)}}const Em=new FinalizationRegistry(n=>r.__wbg_poolregistration_free(n));class zr{static __wrap(t){const e=Object.create(zr.prototype);return e.ptr=t,Em.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Em.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolregistration_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.poolregistration_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return zr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.poolregistration_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolregistration_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return zr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}pool_params(){const t=r.poolregistration_pool_params(this.ptr);return Or.__wrap(t)}static new(t){p(t,Or);const e=r.poolregistration_new(t.ptr);return zr.__wrap(e)}set_is_update(t){r.poolregistration_set_is_update(this.ptr,t)}}const Om=new FinalizationRegistry(n=>r.__wbg_poolretirement_free(n));class Rr{static __wrap(t){const e=Object.create(Rr.prototype);return e.ptr=t,Om.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Om.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolretirement_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.poolretirement_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.poolretirement_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolretirement_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Rr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}pool_keyhash(){const t=r.poolretirement_pool_keyhash(this.ptr);return J.__wrap(t)}epoch(){return r.networkinfo_protocol_magic(this.ptr)>>>0}static new(t,e){p(t,J);const a=r.poolretirement_new(t.ptr,e);return Rr.__wrap(a)}}const zm=new FinalizationRegistry(n=>r.__wbg_poolvotingthresholds_free(n));class Ia{static __wrap(t){const e=Object.create(Ia.prototype);return e.ptr=t,zm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,zm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_poolvotingthresholds_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.poolvotingthresholds_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ia.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.poolvotingthresholds_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.poolvotingthresholds_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ia.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}motion_no_confidence(){const t=r.drepvotingthresholds_motion_no_confidence(this.ptr);return at.__wrap(t)}committee_normal(){const t=r.drepvotingthresholds_committee_normal(this.ptr);return at.__wrap(t)}committee_no_confidence(){const t=r.drepvotingthresholds_committee_no_confidence(this.ptr);return at.__wrap(t)}hard_fork_initiation(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return at.__wrap(t)}static new(t,e,a,_){p(t,at),p(e,at),p(a,at),p(_,at);const i=r.poolvotingthresholds_new(t.ptr,e.ptr,a.ptr,_.ptr);return Ia.__wrap(i)}}const Rm=new FinalizationRegistry(n=>r.__wbg_privatekey_free(n));class qt{static __wrap(t){const e=Object.create(qt.prototype);return e.ptr=t,Rm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Rm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_privatekey_free(t)}to_public(){const t=r.privatekey_to_public(this.ptr);return bn.__wrap(t)}static generate_ed25519(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_generate_ed25519(_);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return qt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static generate_ed25519extended(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_generate_ed25519extended(_);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return qt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.privatekey_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return qt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_to_bech32(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}as_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_as_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_extended_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.privatekey_from_extended_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return qt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_normal_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.privatekey_from_normal_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return qt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}sign(t){const e=E(t,r.__wbindgen_malloc),a=w,_=r.privatekey_sign(this.ptr,e,a);return me.__wrap(_)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.privatekey_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return qt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.privatekey_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const Pm=new FinalizationRegistry(n=>r.__wbg_proposalprocedure_free(n));class Fa{static __wrap(t){const e=Object.create(Fa.prototype);return e.ptr=t,Pm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Pm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposalprocedure_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.proposalprocedure_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Fa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedure_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.proposalprocedure_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Fa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}deposit(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}hash(){const t=r.proposalprocedure_hash(this.ptr);return ct.__wrap(t)}governance_action(){const t=r.proposalprocedure_governance_action(this.ptr);return Pe.__wrap(t)}anchor(){const t=r.proposalprocedure_anchor(this.ptr);return Xn.__wrap(t)}static new(t,e,a,_){p(t,S),p(e,ct),p(a,Pe),p(_,Xn);const i=r.proposalprocedure_new(t.ptr,e.ptr,a.ptr,_.ptr);return Fa.__wrap(i)}}const Nm=new FinalizationRegistry(n=>r.__wbg_proposalprocedures_free(n));class D_{static __wrap(t){const e=Object.create(D_.prototype);return e.ptr=t,Nm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Nm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposalprocedures_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.proposalprocedures_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.proposalprocedures_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return D_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return D_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.proposalprocedures_get(this.ptr,t);return Fa.__wrap(e)}add(t){p(t,Fa),r.proposalprocedures_add(this.ptr,t.ptr)}}const Tm=new FinalizationRegistry(n=>r.__wbg_proposedprotocolparameterupdates_free(n));class Da{static __wrap(t){const e=Object.create(Da.prototype);return e.ptr=t,Tm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Tm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_proposedprotocolparameterupdates_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.proposedprotocolparameterupdates_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Da.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.proposedprotocolparameterupdates_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.proposedprotocolparameterupdates_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Da.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.auxiliarydataset_new();return Da.__wrap(t)}len(){return r.auxiliarydataset_len(this.ptr)>>>0}insert(t,e){p(t,fn),p(e,Dn);const a=r.proposedprotocolparameterupdates_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:Dn.__wrap(a)}get(t){p(t,fn);const e=r.proposedprotocolparameterupdates_get(this.ptr,t.ptr);return e===0?void 0:Dn.__wrap(e)}keys(){const t=r.proposedprotocolparameterupdates_keys(this.ptr);return N_.__wrap(t)}}const Im=new FinalizationRegistry(n=>r.__wbg_protocolparamupdate_free(n));class Dn{static __wrap(t){const e=Object.create(Dn.prototype);return e.ptr=t,Im.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Im.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_protocolparamupdate_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.protocolparamupdate_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Dn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.protocolparamupdate_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Dn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_minfee_a(t){p(t,S),r.protocolparamupdate_set_minfee_a(this.ptr,t.ptr)}minfee_a(){const t=r.protocolparamupdate_minfee_a(this.ptr);return t===0?void 0:S.__wrap(t)}set_minfee_b(t){p(t,S),r.protocolparamupdate_set_minfee_b(this.ptr,t.ptr)}minfee_b(){const t=r.protocolparamupdate_minfee_b(this.ptr);return t===0?void 0:S.__wrap(t)}set_max_block_body_size(t){r.protocolparamupdate_set_max_block_body_size(this.ptr,t)}max_block_body_size(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_block_body_size(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_tx_size(t){r.protocolparamupdate_set_max_tx_size(this.ptr,t)}max_tx_size(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_tx_size(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_block_header_size(t){r.protocolparamupdate_set_max_block_header_size(this.ptr,t)}max_block_header_size(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_block_header_size(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_key_deposit(t){p(t,S),r.protocolparamupdate_set_key_deposit(this.ptr,t.ptr)}key_deposit(){const t=r.protocolparamupdate_key_deposit(this.ptr);return t===0?void 0:S.__wrap(t)}set_pool_deposit(t){p(t,S),r.protocolparamupdate_set_pool_deposit(this.ptr,t.ptr)}pool_deposit(){const t=r.protocolparamupdate_pool_deposit(this.ptr);return t===0?void 0:S.__wrap(t)}set_max_epoch(t){r.protocolparamupdate_set_max_epoch(this.ptr,t)}max_epoch(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_epoch(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_n_opt(t){r.protocolparamupdate_set_n_opt(this.ptr,t)}n_opt(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_n_opt(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_pool_pledge_influence(t){p(t,at),r.protocolparamupdate_set_pool_pledge_influence(this.ptr,t.ptr)}pool_pledge_influence(){const t=r.protocolparamupdate_pool_pledge_influence(this.ptr);return t===0?void 0:at.__wrap(t)}set_expansion_rate(t){p(t,at),r.protocolparamupdate_set_expansion_rate(this.ptr,t.ptr)}expansion_rate(){const t=r.protocolparamupdate_expansion_rate(this.ptr);return t===0?void 0:at.__wrap(t)}set_treasury_growth_rate(t){p(t,at),r.protocolparamupdate_set_treasury_growth_rate(this.ptr,t.ptr)}treasury_growth_rate(){const t=r.protocolparamupdate_treasury_growth_rate(this.ptr);return t===0?void 0:at.__wrap(t)}set_d(t){p(t,at),r.protocolparamupdate_set_d(this.ptr,t.ptr)}d(){const t=r.protocolparamupdate_d(this.ptr);return t===0?void 0:at.__wrap(t)}set_extra_entropy(t){p(t,Ra),r.protocolparamupdate_set_extra_entropy(this.ptr,t.ptr)}extra_entropy(){const t=r.protocolparamupdate_extra_entropy(this.ptr);return t===0?void 0:Ra.__wrap(t)}set_protocol_version(t){p(t,hn),r.protocolparamupdate_set_protocol_version(this.ptr,t.ptr)}protocol_version(){const t=r.protocolparamupdate_protocol_version(this.ptr);return t===0?void 0:hn.__wrap(t)}set_min_pool_cost(t){p(t,S),r.protocolparamupdate_set_min_pool_cost(this.ptr,t.ptr)}min_pool_cost(){const t=r.protocolparamupdate_min_pool_cost(this.ptr);return t===0?void 0:S.__wrap(t)}set_ada_per_utxo_byte(t){p(t,S),r.protocolparamupdate_set_ada_per_utxo_byte(this.ptr,t.ptr)}ada_per_utxo_byte(){const t=r.protocolparamupdate_ada_per_utxo_byte(this.ptr);return t===0?void 0:S.__wrap(t)}set_cost_models(t){p(t,tr),r.protocolparamupdate_set_cost_models(this.ptr,t.ptr)}cost_models(){const t=r.protocolparamupdate_cost_models(this.ptr);return t===0?void 0:tr.__wrap(t)}set_execution_costs(t){p(t,In),r.protocolparamupdate_set_execution_costs(this.ptr,t.ptr)}execution_costs(){const t=r.protocolparamupdate_execution_costs(this.ptr);return t===0?void 0:In.__wrap(t)}set_max_tx_ex_units(t){p(t,$e),r.protocolparamupdate_set_max_tx_ex_units(this.ptr,t.ptr)}max_tx_ex_units(){const t=r.protocolparamupdate_max_tx_ex_units(this.ptr);return t===0?void 0:$e.__wrap(t)}set_max_block_ex_units(t){p(t,$e),r.protocolparamupdate_set_max_block_ex_units(this.ptr,t.ptr)}max_block_ex_units(){const t=r.protocolparamupdate_max_block_ex_units(this.ptr);return t===0?void 0:$e.__wrap(t)}set_max_value_size(t){r.protocolparamupdate_set_max_value_size(this.ptr,t)}max_value_size(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_value_size(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_collateral_percentage(t){r.protocolparamupdate_set_collateral_percentage(this.ptr,t)}collateral_percentage(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_collateral_percentage(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_max_collateral_inputs(t){r.protocolparamupdate_set_max_collateral_inputs(this.ptr,t)}max_collateral_inputs(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_max_collateral_inputs(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_pool_voting_thresholds(t){p(t,Ia);var e=t.__destroy_into_raw();r.protocolparamupdate_set_pool_voting_thresholds(this.ptr,e)}pool_voting_thresholds(){const t=r.protocolparamupdate_pool_voting_thresholds(this.ptr);return t===0?void 0:Ia.__wrap(t)}set_drep_voting_thresholds(t){p(t,ha);var e=t.__destroy_into_raw();r.protocolparamupdate_set_drep_voting_thresholds(this.ptr,e)}drep_voting_thresholds(){const t=r.protocolparamupdate_drep_voting_thresholds(this.ptr);return t===0?void 0:ha.__wrap(t)}set_min_committee_size(t){p(t,S);var e=t.__destroy_into_raw();r.protocolparamupdate_set_min_committee_size(this.ptr,e)}min_committee_size(){const t=r.protocolparamupdate_min_committee_size(this.ptr);return t===0?void 0:S.__wrap(t)}set_committee_term_limit(t){p(t,S);var e=t.__destroy_into_raw();r.protocolparamupdate_set_committee_term_limit(this.ptr,e)}committee_term_limit(){const t=r.protocolparamupdate_committee_term_limit(this.ptr);return t===0?void 0:S.__wrap(t)}set_governance_action_expiration(t){p(t,S);var e=t.__destroy_into_raw();r.protocolparamupdate_set_governance_action_expiration(this.ptr,e)}governance_action_expiration(){const t=r.protocolparamupdate_governance_action_expiration(this.ptr);return t===0?void 0:S.__wrap(t)}set_governance_action_deposit(t){p(t,S);var e=t.__destroy_into_raw();r.protocolparamupdate_set_governance_action_deposit(this.ptr,e)}governance_action_deposit(){const t=r.protocolparamupdate_governance_action_deposit(this.ptr);return t===0?void 0:S.__wrap(t)}set_drep_deposit(t){p(t,S);var e=t.__destroy_into_raw();r.protocolparamupdate_set_drep_deposit(this.ptr,e)}drep_deposit(){const t=r.protocolparamupdate_drep_deposit(this.ptr);return t===0?void 0:S.__wrap(t)}set_drep_inactivity_period(t){r.protocolparamupdate_set_drep_inactivity_period(this.ptr,t)}drep_inactivity_period(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.protocolparamupdate_drep_inactivity_period(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return t===0?void 0:e>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.protocolparamupdate_new();return Dn.__wrap(t)}}const Fm=new FinalizationRegistry(n=>r.__wbg_protocolversion_free(n));class hn{static __wrap(t){const e=Object.create(hn.prototype);return e.ptr=t,Fm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Fm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_protocolversion_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.protocolversion_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return hn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.protocolversion_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.protocolversion_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return hn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}major(){return r.networkinfo_protocol_magic(this.ptr)>>>0}minor(){return r.operationalcert_kes_period(this.ptr)>>>0}static new(t,e){const a=r.protocolversion_new(t,e);return hn.__wrap(a)}}const Dm=new FinalizationRegistry(n=>r.__wbg_publickey_free(n));class bn{static __wrap(t){const e=Object.create(bn.prototype);return e.ptr=t,Dm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Dm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_publickey_free(t)}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.publickey_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.publickey_to_bech32(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}as_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.publickey_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return bn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}verify(t,e){const a=E(t,r.__wbindgen_malloc),_=w;return p(e,me),r.publickey_verify(this.ptr,a,_,e.ptr)!==0}hash(){const t=r.publickey_hash(this.ptr);return J.__wrap(t)}}const Am=new FinalizationRegistry(n=>r.__wbg_publickeys_free(n));class Ko{static __wrap(t){const e=Object.create(Ko.prototype);return e.ptr=t,Am.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Am.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_publickeys_free(t)}constructor(){const t=r.ed25519keyhashes_new();return Ko.__wrap(t)}size(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.publickeys_get(this.ptr,t);return bn.__wrap(e)}add(t){p(t,bn),r.publickeys_add(this.ptr,t.ptr)}}const Mm=new FinalizationRegistry(n=>r.__wbg_redeemer_free(n));class Pr{static __wrap(t){const e=Object.create(Pr.prototype);return e.ptr=t,Mm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Mm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemer_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.redeemer_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.redeemer_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Pr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}tag(){const t=r.redeemer_tag(this.ptr);return Ke.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}data(){const t=r.redeemer_data(this.ptr);return rt.__wrap(t)}ex_units(){const t=r.drepvotingthresholds_update_constitution(this.ptr);return $e.__wrap(t)}static new(t,e,a,_){p(t,Ke),p(e,S),p(a,rt),p(_,$e);const i=r.redeemer_new(t.ptr,e.ptr,a.ptr,_.ptr);return Pr.__wrap(i)}}const Bm=new FinalizationRegistry(n=>r.__wbg_redeemertag_free(n));class Ke{static __wrap(t){const e=Object.create(Ke.prototype);return e.ptr=t,Bm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Bm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemertag_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.redeemertag_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.redeemertag_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ke.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_spend(){const t=r.language_new_plutus_v1();return Ke.__wrap(t)}static new_mint(){const t=r.language_new_plutus_v2();return Ke.__wrap(t)}static new_cert(){const t=r.language_new_plutus_v3();return Ke.__wrap(t)}static new_reward(){const t=r.redeemertag_new_reward();return Ke.__wrap(t)}static new_drep(){const t=r.redeemertag_new_drep();return Ke.__wrap(t)}kind(){return r.redeemertag_kind(this.ptr)>>>0}}const Lm=new FinalizationRegistry(n=>r.__wbg_redeemerwitnesskey_free(n));class zs{static __wrap(t){const e=Object.create(zs.prototype);return e.ptr=t,Lm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Lm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemerwitnesskey_free(t)}tag(){const t=r.redeemerwitnesskey_tag(this.ptr);return Ke.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t,e){p(t,Ke),p(e,S);const a=r.redeemerwitnesskey_new(t.ptr,e.ptr);return zs.__wrap(a)}}const Um=new FinalizationRegistry(n=>r.__wbg_redeemers_free(n));class Nr{static __wrap(t){const e=Object.create(Nr.prototype);return e.ptr=t,Um.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Um.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_redeemers_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.redeemers_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.redeemers_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Nr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.redeemers_get(this.ptr,t);return Pr.__wrap(e)}add(t){p(t,Pr),r.redeemers_add(this.ptr,t.ptr)}}const Vm=new FinalizationRegistry(n=>r.__wbg_regcert_free(n));class A_{static __wrap(t){const e=Object.create(A_.prototype);return e.ptr=t,Vm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Vm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.regcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return A_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.regcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return A_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t,e){p(t,H),p(e,S);const a=r.regcert_new(t.ptr,e.ptr);return A_.__wrap(a)}}const qm=new FinalizationRegistry(n=>r.__wbg_regcommitteehotkeycert_free(n));class M_{static __wrap(t){const e=Object.create(M_.prototype);return e.ptr=t,qm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,qm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regcommitteehotkeycert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.regcommitteehotkeycert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return M_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.regcommitteehotkeycert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.regcommitteehotkeycert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return M_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee_cold_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return J.__wrap(t)}committee_hot_keyhash(){const t=r.genesiskeydelegation_genesis_delegate_hash(this.ptr);return J.__wrap(t)}static new(t,e){p(t,J),p(e,J);const a=r.regcommitteehotkeycert_new(t.ptr,e.ptr);return M_.__wrap(a)}}const Hm=new FinalizationRegistry(n=>r.__wbg_regdrepcert_free(n));class B_{static __wrap(t){const e=Object.create(B_.prototype);return e.ptr=t,Hm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Hm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_regdrepcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.regdrepcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return B_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.regdrepcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return B_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}voting_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t,e){p(t,H),p(e,S);const a=r.regcert_new(t.ptr,e.ptr);return B_.__wrap(a)}}const $m=new FinalizationRegistry(n=>r.__wbg_relay_free(n));class Qe{static __wrap(t){const e=Object.create(Qe.prototype);return e.ptr=t,$m.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$m.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_relay_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.relay_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Qe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.relay_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.relay_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Qe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_single_host_addr(t){p(t,Ir);const e=r.relay_new_single_host_addr(t.ptr);return Qe.__wrap(e)}static new_single_host_name(t){p(t,Fr);const e=r.relay_new_single_host_name(t.ptr);return Qe.__wrap(e)}static new_multi_host_name(t){p(t,jr);const e=r.relay_new_multi_host_name(t.ptr);return Qe.__wrap(e)}kind(){return r.relay_kind(this.ptr)>>>0}as_single_host_addr(){const t=r.relay_as_single_host_addr(this.ptr);return t===0?void 0:Ir.__wrap(t)}as_single_host_name(){const t=r.relay_as_single_host_name(this.ptr);return t===0?void 0:Fr.__wrap(t)}as_multi_host_name(){const t=r.relay_as_multi_host_name(this.ptr);return t===0?void 0:jr.__wrap(t)}}const Wm=new FinalizationRegistry(n=>r.__wbg_relays_free(n));class Tr{static __wrap(t){const e=Object.create(Tr.prototype);return e.ptr=t,Wm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Wm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_relays_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.relays_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.relays_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.relays_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Tr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return Tr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.relays_get(this.ptr,t);return Qe.__wrap(e)}add(t){p(t,Qe),r.relays_add(this.ptr,t.ptr)}}const Km=new FinalizationRegistry(n=>r.__wbg_requiredwitnessset_free(n));class Oi{static __wrap(t){const e=Object.create(Oi.prototype);return e.ptr=t,Km.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Km.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_requiredwitnessset_free(t)}add_vkey(t){p(t,Mn),r.requiredwitnessset_add_vkey(this.ptr,t.ptr)}add_vkey_key(t){p(t,xe),r.requiredwitnessset_add_vkey(this.ptr,t.ptr)}add_vkey_key_hash(t){p(t,J),r.requiredwitnessset_add_vkey_key_hash(this.ptr,t.ptr)}add_bootstrap(t){p(t,un),r.requiredwitnessset_add_bootstrap(this.ptr,t.ptr)}add_bootstrap_key(t){p(t,xe),r.requiredwitnessset_add_bootstrap_key(this.ptr,t.ptr)}add_bootstrap_key_hash(t){p(t,J),r.requiredwitnessset_add_bootstrap_key_hash(this.ptr,t.ptr)}add_native_script(t){p(t,St),r.requiredwitnessset_add_native_script(this.ptr,t.ptr)}add_native_script_hash(t){p(t,ct),r.requiredwitnessset_add_native_script_hash(this.ptr,t.ptr)}add_plutus_script(t){p(t,wt),r.requiredwitnessset_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,wt),r.requiredwitnessset_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_hash(t){p(t,ct),r.requiredwitnessset_add_plutus_hash(this.ptr,t.ptr)}add_plutus_datum(t){p(t,rt),r.requiredwitnessset_add_plutus_datum(this.ptr,t.ptr)}add_plutus_datum_hash(t){p(t,ee),r.requiredwitnessset_add_plutus_datum_hash(this.ptr,t.ptr)}add_redeemer(t){p(t,Pr),r.requiredwitnessset_add_redeemer(this.ptr,t.ptr)}add_redeemer_tag(t){p(t,zs),r.requiredwitnessset_add_redeemer_tag(this.ptr,t.ptr)}add_all(t){p(t,Oi),r.requiredwitnessset_add_all(this.ptr,t.ptr)}static new(){const t=r.requiredwitnessset_new();return Oi.__wrap(t)}}const Qm=new FinalizationRegistry(n=>r.__wbg_rewardaddress_free(n));class zt{static __wrap(t){const e=Object.create(zt.prototype);return e.ptr=t,Qm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Qm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rewardaddress_free(t)}static new(t,e){p(e,H);const a=r.enterpriseaddress_new(t,e.ptr);return zt.__wrap(a)}payment_cred(){const t=r.baseaddress_payment_cred(this.ptr);return H.__wrap(t)}to_address(){const t=r.rewardaddress_to_address(this.ptr);return vt.__wrap(t)}static from_address(t){p(t,vt);const e=r.address_as_reward(t.ptr);return e===0?void 0:zt.__wrap(e)}}const Gm=new FinalizationRegistry(n=>r.__wbg_rewardaddresses_free(n));class L_{static __wrap(t){const e=Object.create(L_.prototype);return e.ptr=t,Gm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Gm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_rewardaddresses_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.rewardaddresses_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return L_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.rewardaddresses_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.rewardaddresses_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return L_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return L_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.rewardaddresses_get(this.ptr,t);return zt.__wrap(e)}add(t){p(t,zt),r.rewardaddresses_add(this.ptr,t.ptr)}}const Xm=new FinalizationRegistry(n=>r.__wbg_script_free(n));class Ne{static __wrap(t){const e=Object.create(Ne.prototype);return e.ptr=t,Xm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Xm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_script_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.script_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ne.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.script_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ne.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_native(t){p(t,St);const e=r.script_new_native(t.ptr);return Ne.__wrap(e)}static new_plutus_v1(t){p(t,wt);const e=r.script_new_plutus_v1(t.ptr);return Ne.__wrap(e)}static new_plutus_v2(t){p(t,wt);const e=r.script_new_plutus_v2(t.ptr);return Ne.__wrap(e)}static new_plutus_v3(t){p(t,wt);const e=r.script_new_plutus_v3(t.ptr);return Ne.__wrap(e)}kind(){return r.script_kind(this.ptr)>>>0}as_native(){const t=r.script_as_native(this.ptr);return t===0?void 0:St.__wrap(t)}as_plutus_v1(){const t=r.script_as_plutus_v1(this.ptr);return t===0?void 0:wt.__wrap(t)}as_plutus_v2(){const t=r.script_as_plutus_v2(this.ptr);return t===0?void 0:wt.__wrap(t)}as_plutus_v3(){const t=r.script_as_plutus_v3(this.ptr);return t===0?void 0:wt.__wrap(t)}}const Jm=new FinalizationRegistry(n=>r.__wbg_scriptall_free(n));class Aa{static __wrap(t){const e=Object.create(Aa.prototype);return e.ptr=t,Jm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Jm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptall_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.scriptall_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Aa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptall_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Aa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=r.scriptall_native_scripts(this.ptr);return ve.__wrap(t)}static new(t){p(t,ve);const e=r.scriptall_new(t.ptr);return Aa.__wrap(e)}}const Zm=new FinalizationRegistry(n=>r.__wbg_scriptany_free(n));class Ma{static __wrap(t){const e=Object.create(Ma.prototype);return e.ptr=t,Zm.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Zm.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptany_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scriptany_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.scriptany_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scriptall_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptany_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ma.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}native_scripts(){const t=r.scriptall_native_scripts(this.ptr);return ve.__wrap(t)}static new(t){p(t,ve);const e=r.scriptall_new(t.ptr);return Ma.__wrap(e)}}const Ym=new FinalizationRegistry(n=>r.__wbg_scriptdatahash_free(n));class nr{static __wrap(t){const e=Object.create(nr.prototype);return e.ptr=t,Ym.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Ym.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptdatahash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.scriptdatahash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptdatahash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptdatahash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return nr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const t1=new FinalizationRegistry(n=>r.__wbg_scripthash_free(n));class ct{static __wrap(t){const e=Object.create(ct.prototype);return e.ptr=t,t1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scripthash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.scripthash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ct.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.ed25519keyhash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scripthash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ct.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scripthash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ct.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const e1=new FinalizationRegistry(n=>r.__wbg_scripthashes_free(n));class Ba{static __wrap(t){const e=Object.create(Ba.prototype);return e.ptr=t,e1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,e1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scripthashes_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scripthashes_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.scripthashes_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.ed25519keyhashes_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scripthashes_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ba.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return Ba.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.scripthashes_get(this.ptr,t);return ct.__wrap(e)}add(t){p(t,ct),r.ed25519keyhashes_add(this.ptr,t.ptr)}}const n1=new FinalizationRegistry(n=>r.__wbg_scriptnofk_free(n));class La{static __wrap(t){const e=Object.create(La.prototype);return e.ptr=t,n1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,n1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptnofk_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.scriptnofk_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return La.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scriptnofk_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptnofk_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return La.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}n(){return r.networkinfo_protocol_magic(this.ptr)>>>0}native_scripts(){const t=r.scriptnofk_native_scripts(this.ptr);return ve.__wrap(t)}static new(t,e){p(e,ve);const a=r.scriptnofk_new(t,e.ptr);return La.__wrap(a)}}const r1=new FinalizationRegistry(n=>r.__wbg_scriptpubkey_free(n));class Ua{static __wrap(t){const e=Object.create(Ua.prototype);return e.ptr=t,r1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,r1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptpubkey_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.scriptpubkey_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scriptpubkey_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptpubkey_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ua.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}addr_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return J.__wrap(t)}static new(t){p(t,J);const e=r.scriptpubkey_new(t.ptr);return Ua.__wrap(e)}}const a1=new FinalizationRegistry(n=>r.__wbg_scriptref_free(n));class An{static __wrap(t){const e=Object.create(An.prototype);return e.ptr=t,a1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,a1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptref_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scriptref_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.scriptref_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return An.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.script_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptref_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return An.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,Ne);const e=r.scriptref_new(t.ptr);return An.__wrap(e)}get(){const t=r.scriptref_get(this.ptr);return Ne.__wrap(t)}}const _1=new FinalizationRegistry(n=>r.__wbg_scriptwitness_free(n));class ke{static __wrap(t){const e=Object.create(ke.prototype);return e.ptr=t,_1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_scriptwitness_free(t)}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.scriptwitness_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.scriptwitness_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.scriptwitness_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ke.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_native_witness(t){p(t,St);const e=r.scriptwitness_new_native_witness(t.ptr);return ke.__wrap(e)}static new_plutus_witness(t){p(t,gn);const e=r.scriptwitness_new_plutus_witness(t.ptr);return ke.__wrap(e)}kind(){return r.scriptwitness_kind(this.ptr)>>>0}as_native_witness(){const t=r.scriptwitness_as_native_witness(this.ptr);return t===0?void 0:St.__wrap(t)}as_plutus_witness(){const t=r.scriptwitness_as_plutus_witness(this.ptr);return t===0?void 0:gn.__wrap(t)}}const i1=new FinalizationRegistry(n=>r.__wbg_singlehostaddr_free(n));class Ir{static __wrap(t){const e=Object.create(Ir.prototype);return e.ptr=t,i1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,i1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_singlehostaddr_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.singlehostaddr_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostaddr_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.singlehostaddr_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ir.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}port(){const t=r.singlehostaddr_port(this.ptr);return t===16777215?void 0:t}ipv4(){const t=r.singlehostaddr_ipv4(this.ptr);return t===0?void 0:vr.__wrap(t)}ipv6(){const t=r.singlehostaddr_ipv6(this.ptr);return t===0?void 0:kr.__wrap(t)}static new(t,e,a){let _=0;Nt(e)||(p(e,vr),_=e.__destroy_into_raw());let i=0;Nt(a)||(p(a,kr),i=a.__destroy_into_raw());const o=r.singlehostaddr_new(Nt(t)?16777215:t,_,i);return Ir.__wrap(o)}}const s1=new FinalizationRegistry(n=>r.__wbg_singlehostname_free(n));class Fr{static __wrap(t){const e=Object.create(Fr.prototype);return e.ptr=t,s1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,s1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_singlehostname_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.singlehostname_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Fr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.singlehostname_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.singlehostname_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Fr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}port(){const t=r.singlehostname_port(this.ptr);return t===16777215?void 0:t}dns_name(){const t=r.anchor_anchor_url(this.ptr);return wa.__wrap(t)}static new(t,e){p(e,wa);const a=r.singlehostname_new(Nt(t)?16777215:t,e.ptr);return Fr.__wrap(a)}}const o1=new FinalizationRegistry(n=>r.__wbg_stakecredential_free(n));class H{static __wrap(t){const e=Object.create(H.prototype);return e.ptr=t,o1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,o1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakecredential_free(t)}static from_keyhash(t){p(t,J);const e=r.drep_new_keyhash(t.ptr);return H.__wrap(e)}static from_scripthash(t){p(t,ct);const e=r.drep_new_scripthash(t.ptr);return H.__wrap(e)}to_keyhash(){const t=r.stakecredential_to_keyhash(this.ptr);return t===0?void 0:J.__wrap(t)}to_scripthash(){const t=r.stakecredential_to_scripthash(this.ptr);return t===0?void 0:ct.__wrap(t)}kind(){return r.networkid_kind(this.ptr)>>>0}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.stakecredential_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return H.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredential_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakecredential_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return H.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const c1=new FinalizationRegistry(n=>r.__wbg_stakecredentials_free(n));class U_{static __wrap(t){const e=Object.create(U_.prototype);return e.ptr=t,c1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,c1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakecredentials_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.stakecredentials_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return U_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakecredentials_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakecredentials_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return U_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.ed25519keyhashes_new();return U_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.stakecredentials_get(this.ptr,t);return H.__wrap(e)}add(t){p(t,H),r.stakecredentials_add(this.ptr,t.ptr)}}const l1=new FinalizationRegistry(n=>r.__wbg_stakedelegation_free(n));class Dr{static __wrap(t){const e=Object.create(Dr.prototype);return e.ptr=t,l1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,l1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakedelegation_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.stakedelegation_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Dr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakedelegation_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakedelegation_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Dr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return H.__wrap(t)}pool_keyhash(){const t=r.stakedelegation_pool_keyhash(this.ptr);return J.__wrap(t)}static new(t,e){p(t,H),p(e,J);const a=r.stakedelegation_new(t.ptr,e.ptr);return Dr.__wrap(a)}}const d1=new FinalizationRegistry(n=>r.__wbg_stakederegistration_free(n));class Ar{static __wrap(t){const e=Object.create(Ar.prototype);return e.ptr=t,d1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,d1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakederegistration_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.stakederegistration_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakederegistration_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return H.__wrap(t)}static new(t){p(t,H);const e=r.stakederegistration_new(t.ptr);return Ar.__wrap(e)}}const u1=new FinalizationRegistry(n=>r.__wbg_stakeregdelegcert_free(n));class V_{static __wrap(t){const e=Object.create(V_.prototype);return e.ptr=t,u1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,u1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakeregdelegcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.stakeregdelegcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return V_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregdelegcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakeregdelegcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return V_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}pool_keyhash(){const t=r.stakeregdelegcert_pool_keyhash(this.ptr);return J.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t,e,a){p(t,H),p(e,J),p(a,S);const _=r.stakeregdelegcert_new(t.ptr,e.ptr,a.ptr);return V_.__wrap(_)}}const p1=new FinalizationRegistry(n=>r.__wbg_stakeregistration_free(n));class Mr{static __wrap(t){const e=Object.create(Mr.prototype);return e.ptr=t,p1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,p1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakeregistration_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakeregistration_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.stakeregistration_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakederegistration_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakeregistration_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Mr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return H.__wrap(t)}static new(t){p(t,H);const e=r.stakederegistration_new(t.ptr);return Mr.__wrap(e)}}const f1=new FinalizationRegistry(n=>r.__wbg_stakevotedelegcert_free(n));class q_{static __wrap(t){const e=Object.create(q_.prototype);return e.ptr=t,f1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,f1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakevotedelegcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.stakevotedelegcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return q_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakevotedelegcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakevotedelegcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return q_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return H.__wrap(t)}pool_keyhash(){const t=r.stakedelegation_pool_keyhash(this.ptr);return J.__wrap(t)}drep(){const t=r.stakevotedelegcert_drep(this.ptr);return ne.__wrap(t)}static new(t,e,a){p(t,H),p(e,J),p(a,ne);const _=r.stakevotedelegcert_new(t.ptr,e.ptr,a.ptr);return q_.__wrap(_)}}const w1=new FinalizationRegistry(n=>r.__wbg_stakevoteregdelegcert_free(n));class H_{static __wrap(t){const e=Object.create(H_.prototype);return e.ptr=t,w1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,w1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_stakevoteregdelegcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.stakevoteregdelegcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return H_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.stakevoteregdelegcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.stakevoteregdelegcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return H_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}pool_keyhash(){const t=r.stakeregdelegcert_pool_keyhash(this.ptr);return J.__wrap(t)}drep(){const t=r.stakevoteregdelegcert_drep(this.ptr);return ne.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t,e,a,_){p(t,H),p(e,J),p(a,ne),p(_,S);const i=r.stakevoteregdelegcert_new(t.ptr,e.ptr,a.ptr,_.ptr);return H_.__wrap(i)}}const g1=new FinalizationRegistry(n=>r.__wbg_strings_free(n));class Qo{static __wrap(t){const e=Object.create(Qo.prototype);return e.ptr=t,g1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,g1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_strings_free(t)}static new(){const t=r.assetnames_new();return Qo.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.strings_get(_,this.ptr,t);var e=s()[_/4+0],a=s()[_/4+1];return R(e,a)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(e,a)}}add(t){const e=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),a=w;r.strings_add(this.ptr,e,a)}}const h1=new FinalizationRegistry(n=>r.__wbg_timelockexpiry_free(n));class Va{static __wrap(t){const e=Object.create(Va.prototype);return e.ptr=t,h1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,h1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_timelockexpiry_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.timelockexpiry_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.timelockexpiry_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Va.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}slot(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t){p(t,S);const e=r.constrplutusdata_alternative(t.ptr);return Va.__wrap(e)}}const b1=new FinalizationRegistry(n=>r.__wbg_timelockstart_free(n));class qa{static __wrap(t){const e=Object.create(qa.prototype);return e.ptr=t,b1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,b1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_timelockstart_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.timelockstart_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.timelockstart_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.timelockexpiry_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.timelockstart_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}slot(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t){p(t,S);const e=r.constrplutusdata_alternative(t.ptr);return qa.__wrap(e)}}const y1=new FinalizationRegistry(n=>r.__wbg_transaction_free(n));class yn{static __wrap(t){const e=Object.create(yn.prototype);return e.ptr=t,y1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,y1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transaction_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transaction_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transaction_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transaction_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return yn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}body(){const t=r.transaction_body(this.ptr);return Ge.__wrap(t)}witness_set(){const t=r.transaction_witness_set(this.ptr);return Ie.__wrap(t)}is_valid(){return r.transaction_is_valid(this.ptr)!==0}auxiliary_data(){const t=r.transaction_auxiliary_data(this.ptr);return t===0?void 0:ze.__wrap(t)}set_is_valid(t){r.transaction_set_is_valid(this.ptr,t)}static new(t,e,a){p(t,Ge),p(e,Ie);let _=0;Nt(a)||(p(a,ze),_=a.__destroy_into_raw());const i=r.transaction_new(t.ptr,e.ptr,_);return yn.__wrap(i)}}const m1=new FinalizationRegistry(n=>r.__wbg_transactionbodies_free(n));class Ha{static __wrap(t){const e=Object.create(Ha.prototype);return e.ptr=t,m1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,m1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbodies_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionbodies_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbodies_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionbodies_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ha.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Ha.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionbodies_get(this.ptr,t);return Ge.__wrap(e)}add(t){p(t,Ge),r.transactionbodies_add(this.ptr,t.ptr)}}const v1=new FinalizationRegistry(n=>r.__wbg_transactionbody_free(n));class Ge{static __wrap(t){const e=Object.create(Ge.prototype);return e.ptr=t,v1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,v1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbody_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionbody_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ge.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionbody_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ge.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}inputs(){const t=r.transactionbody_inputs(this.ptr);return Je.__wrap(t)}outputs(){const t=r.transactionbody_outputs(this.ptr);return Br.__wrap(t)}fee(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}ttl(){const t=r.transactionbody_ttl(this.ptr);return t===0?void 0:S.__wrap(t)}set_certs(t){p(t,yr),r.transactionbody_set_certs(this.ptr,t.ptr)}certs(){const t=r.transactionbody_certs(this.ptr);return t===0?void 0:yr.__wrap(t)}set_withdrawals(t){p(t,Ur),r.transactionbody_set_withdrawals(this.ptr,t.ptr)}withdrawals(){const t=r.transactionbody_withdrawals(this.ptr);return t===0?void 0:Ur.__wrap(t)}set_update(t){p(t,Ja),r.transactionbody_set_update(this.ptr,t.ptr)}update(){const t=r.transactionbody_update(this.ptr);return t===0?void 0:Ja.__wrap(t)}voting_procedures(){const t=r.transactionbody_voting_procedures(this.ptr);return t===0?void 0:X_.__wrap(t)}proposal_procedures(){const t=r.transactionbody_proposal_procedures(this.ptr);return t===0?void 0:D_.__wrap(t)}set_auxiliary_data_hash(t){p(t,br),r.transactionbody_set_auxiliary_data_hash(this.ptr,t.ptr)}auxiliary_data_hash(){const t=r.transactionbody_auxiliary_data_hash(this.ptr);return t===0?void 0:br.__wrap(t)}set_validity_start_interval(t){p(t,S),r.transactionbody_set_validity_start_interval(this.ptr,t.ptr)}validity_start_interval(){const t=r.transactionbody_validity_start_interval(this.ptr);return t===0?void 0:S.__wrap(t)}set_mint(t){p(t,er),r.transactionbody_set_mint(this.ptr,t.ptr)}mint(){const t=r.transactionbody_mint(this.ptr);return t===0?void 0:er.__wrap(t)}set_script_data_hash(t){p(t,nr),r.transactionbody_set_script_data_hash(this.ptr,t.ptr)}script_data_hash(){const t=r.transactionbody_script_data_hash(this.ptr);return t===0?void 0:nr.__wrap(t)}set_collateral(t){p(t,Je),r.transactionbody_set_collateral(this.ptr,t.ptr)}collateral(){const t=r.transactionbody_collateral(this.ptr);return t===0?void 0:Je.__wrap(t)}set_required_signers(t){p(t,Xt),r.transactionbody_set_required_signers(this.ptr,t.ptr)}required_signers(){const t=r.transactionbody_required_signers(this.ptr);return t===0?void 0:Xt.__wrap(t)}set_network_id(t){p(t,wn),r.transactionbody_set_network_id(this.ptr,t.ptr)}network_id(){const t=r.transactionbody_network_id(this.ptr);return t===0?void 0:wn.__wrap(t)}set_collateral_return(t){p(t,Kt),r.transactionbody_set_collateral_return(this.ptr,t.ptr)}collateral_return(){const t=r.transactionbody_collateral_return(this.ptr);return t===0?void 0:Kt.__wrap(t)}set_total_collateral(t){p(t,S),r.transactionbody_set_total_collateral(this.ptr,t.ptr)}total_collateral(){const t=r.transactionbody_total_collateral(this.ptr);return t===0?void 0:S.__wrap(t)}set_reference_inputs(t){p(t,Je),r.transactionbody_set_reference_inputs(this.ptr,t.ptr)}reference_inputs(){const t=r.transactionbody_reference_inputs(this.ptr);return t===0?void 0:Je.__wrap(t)}set_voting_procedures(t){p(t,X_),r.transactionbody_set_voting_procedures(this.ptr,t.ptr)}set_proposal_procedures(t){p(t,D_),r.transactionbody_set_proposal_procedures(this.ptr,t.ptr)}static new(t,e,a,_){p(t,Je),p(e,Br),p(a,S);let i=0;Nt(_)||(p(_,S),i=_.__destroy_into_raw());const o=r.transactionbody_new(t.ptr,e.ptr,a.ptr,i);return Ge.__wrap(o)}raw(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbody_raw(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];let _;return t!==0&&(_=j(t,e).slice(),r.__wbindgen_free(t,e*1)),_}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const k1=new FinalizationRegistry(n=>r.__wbg_transactionbuilder_free(n));class Rs{static __wrap(t){const e=Object.create(Rs.prototype);return e.ptr=t,k1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,k1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilder_free(t)}add_inputs_from(t,e,a){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(t,rr),p(e,vt);const c=tj(a,r.__wbindgen_malloc),d=w;r.transactionbuilder_add_inputs_from(o,this.ptr,t.ptr,e.ptr,c,d);var _=s()[o/4+0],i=s()[o/4+1];if(i)throw l(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_input(t,e){p(t,Te);let a=0;Nt(e)||(p(e,ke),a=e.__destroy_into_raw()),r.transactionbuilder_add_input(this.ptr,t.ptr,a)}add_reference_input(t){p(t,Te),r.transactionbuilder_add_reference_input(this.ptr,t.ptr)}fee_for_input(t,e,a){try{const c=r.__wbindgen_add_to_stack_pointer(-16);p(t,vt),p(e,Xe),p(a,Ct),r.transactionbuilder_fee_for_input(c,this.ptr,t.ptr,e.ptr,a.ptr);var _=s()[c/4+0],i=s()[c/4+1],o=s()[c/4+2];if(o)throw l(i);return S.__wrap(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_output(t){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(t,Kt),r.transactionbuilder_add_output(_,this.ptr,t.ptr);var e=s()[_/4+0],a=s()[_/4+1];if(a)throw l(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_plutus_script(t){p(t,wt),r.transactionbuilder_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,wt),r.transactionbuilder_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_data(t){p(t,rt),r.transactionbuilder_add_plutus_data(this.ptr,t.ptr)}add_native_script(t){p(t,St),r.transactionbuilder_add_native_script(this.ptr,t.ptr)}add_certificate(t,e){p(t,Lt);let a=0;Nt(e)||(p(e,ke),a=e.__destroy_into_raw()),r.transactionbuilder_add_certificate(this.ptr,t.ptr,a)}fee_for_output(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,Kt),r.transactionbuilder_fee_for_output(i,this.ptr,t.ptr);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return S.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_ttl(t){p(t,S),r.transactionbuilder_set_ttl(this.ptr,t.ptr)}set_validity_start_interval(t){p(t,S),r.transactionbuilder_set_validity_start_interval(this.ptr,t.ptr)}add_withdrawal(t,e,a){p(t,zt),p(e,S);let _=0;Nt(a)||(p(a,ke),_=a.__destroy_into_raw()),r.transactionbuilder_add_withdrawal(this.ptr,t.ptr,e.ptr,_)}auxiliary_data(){const t=r.transactionbuilder_auxiliary_data(this.ptr);return t===0?void 0:ze.__wrap(t)}set_auxiliary_data(t){p(t,ze),r.transactionbuilder_set_auxiliary_data(this.ptr,t.ptr)}set_metadata(t){p(t,mr),r.transactionbuilder_set_metadata(this.ptr,t.ptr)}add_metadatum(t,e){p(t,S),p(e,mt),r.transactionbuilder_add_metadatum(this.ptr,t.ptr,e.ptr)}add_json_metadatum(t,e){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,S);const o=C(e,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionbuilder_add_json_metadatum(i,this.ptr,t.ptr,o,c);var a=s()[i/4+0],_=s()[i/4+1];if(_)throw l(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}add_json_metadatum_with_schema(t,e,a){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(t,S);const c=C(e,r.__wbindgen_malloc,r.__wbindgen_realloc),d=w;r.transactionbuilder_add_json_metadatum_with_schema(o,this.ptr,t.ptr,c,d,a);var _=s()[o/4+0],i=s()[o/4+1];if(i)throw l(_)}finally{r.__wbindgen_add_to_stack_pointer(16)}}mint(){const t=r.transactionbuilder_mint(this.ptr);return t===0?void 0:er.__wrap(t)}certificates(){const t=r.transactionbuilder_certificates(this.ptr);return t===0?void 0:yr.__wrap(t)}withdrawals(){const t=r.transactionbuilder_withdrawals(this.ptr);return t===0?void 0:Ur.__wrap(t)}native_scripts(){const t=r.transactionbuilder_native_scripts(this.ptr);return t===0?void 0:ve.__wrap(t)}add_mint(t,e,a){p(t,ct),p(e,Fn);let _=0;Nt(a)||(p(a,ke),_=a.__destroy_into_raw()),r.transactionbuilder_add_mint(this.ptr,t.ptr,e.ptr,_)}static new(t){p(t,Ps);const e=r.transactionbuilder_new(t.ptr);return Rs.__wrap(e)}script_data_hash(){const t=r.transactionbuilder_script_data_hash(this.ptr);return t===0?void 0:nr.__wrap(t)}add_collateral(t){try{const _=r.__wbindgen_add_to_stack_pointer(-16);p(t,Te),r.transactionbuilder_add_collateral(_,this.ptr,t.ptr);var e=s()[_/4+0],a=s()[_/4+1];if(a)throw l(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_collateral(){const t=r.transactionbuilder_get_collateral(this.ptr);return t===0?void 0:Je.__wrap(t)}add_required_signer(t){p(t,J),r.transactionbuilder_add_required_signer(this.ptr,t.ptr)}required_signers(){const t=r.transactionbuilder_required_signers(this.ptr);return t===0?void 0:Xt.__wrap(t)}set_network_id(t){p(t,wn);var e=t.__destroy_into_raw();r.transactionbuilder_set_network_id(this.ptr,e)}network_id(){const t=r.transactionbuilder_network_id(this.ptr);return t===0?void 0:wn.__wrap(t)}redeemers(){const t=r.transactionbuilder_redeemers(this.ptr);return t===0?void 0:Nr.__wrap(t)}get_explicit_input(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_explicit_input(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Ct.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_implicit_input(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_implicit_input(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Ct.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_total_input(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_total_input(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Ct.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_total_output(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_total_output(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Ct.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_explicit_output(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_explicit_output(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Ct.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_deposit(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_get_deposit(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return S.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}get_fee_if_set(){const t=r.transactionbuilder_get_fee_if_set(this.ptr);return t===0?void 0:S.__wrap(t)}balance(t,e){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,vt);let o=0;Nt(e)||(p(e,Wt),o=e.__destroy_into_raw()),r.transactionbuilder_balance(i,this.ptr,t.ptr,o);var a=s()[i/4+0],_=s()[i/4+1];if(_)throw l(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_to_bytes(o,this.ptr);var t=s()[o/4+0],e=s()[o/4+1],a=s()[o/4+2],_=s()[o/4+3];if(_)throw l(a);var i=j(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}full_size(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_full_size(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return t>>>0}finally{r.__wbindgen_add_to_stack_pointer(16)}}output_sizes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_output_sizes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=ej(t,e).slice();return r.__wbindgen_free(t,e*4),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}outputs(){const t=r.transactionbuilder_outputs(this.ptr);return Br.__wrap(t)}construct(t,e,a){const _=this.__destroy_into_raw();let i=0;Nt(t)||(p(t,rr),i=t.__destroy_into_raw());let o=0;Nt(e)||(p(e,vt),o=e.__destroy_into_raw());const c=r.transactionbuilder_construct(_,i,o,Nt(a)?16777215:a?1:0);return l(c)}build_tx(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_build_tx(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return yn.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}min_fee(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilder_min_fee(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return S.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const x1=new FinalizationRegistry(n=>r.__wbg_transactionbuilderconfig_free(n));class Ps{static __wrap(t){const e=Object.create(Ps.prototype);return e.ptr=t,x1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,x1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilderconfig_free(t)}}const j1=new FinalizationRegistry(n=>r.__wbg_transactionbuilderconfigbuilder_free(n));class Jt{static __wrap(t){const e=Object.create(Jt.prototype);return e.ptr=t,j1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,j1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionbuilderconfigbuilder_free(t)}static new(){const t=r.transactionbuilderconfigbuilder_new();return Jt.__wrap(t)}fee_algo(t){p(t,T_);const e=r.transactionbuilderconfigbuilder_fee_algo(this.ptr,t.ptr);return Jt.__wrap(e)}coins_per_utxo_byte(t){p(t,S);const e=r.transactionbuilderconfigbuilder_coins_per_utxo_byte(this.ptr,t.ptr);return Jt.__wrap(e)}pool_deposit(t){p(t,S);const e=r.transactionbuilderconfigbuilder_pool_deposit(this.ptr,t.ptr);return Jt.__wrap(e)}key_deposit(t){p(t,S);const e=r.transactionbuilderconfigbuilder_key_deposit(this.ptr,t.ptr);return Jt.__wrap(e)}max_value_size(t){const e=r.transactionbuilderconfigbuilder_max_value_size(this.ptr,t);return Jt.__wrap(e)}max_tx_size(t){const e=r.transactionbuilderconfigbuilder_max_tx_size(this.ptr,t);return Jt.__wrap(e)}ex_unit_prices(t){p(t,In);const e=r.transactionbuilderconfigbuilder_ex_unit_prices(this.ptr,t.ptr);return Jt.__wrap(e)}max_tx_ex_units(t){p(t,$e);const e=r.transactionbuilderconfigbuilder_max_tx_ex_units(this.ptr,t.ptr);return Jt.__wrap(e)}costmdls(t){p(t,tr);const e=r.transactionbuilderconfigbuilder_costmdls(this.ptr,t.ptr);return Jt.__wrap(e)}collateral_percentage(t){const e=r.transactionbuilderconfigbuilder_collateral_percentage(this.ptr,t);return Jt.__wrap(e)}max_collateral_inputs(t){const e=r.transactionbuilderconfigbuilder_max_collateral_inputs(this.ptr,t);return Jt.__wrap(e)}slot_config(t,e,a){p(t,S),p(e,S);const _=r.transactionbuilderconfigbuilder_slot_config(this.ptr,t.ptr,e.ptr,a);return Jt.__wrap(_)}blockfrost(t){p(t,ji);const e=r.transactionbuilderconfigbuilder_blockfrost(this.ptr,t.ptr);return Jt.__wrap(e)}build(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionbuilderconfigbuilder_build(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Ps.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const S1=new FinalizationRegistry(n=>r.__wbg_transactionhash_free(n));class fe{static __wrap(t){const e=Object.create(fe.prototype);return e.ptr=t,S1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,S1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionhash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionhash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionhash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionhash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return fe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const C1=new FinalizationRegistry(n=>r.__wbg_transactionindexes_free(n));class $a{static __wrap(t){const e=Object.create($a.prototype);return e.ptr=t,C1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,C1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionindexes_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionindexes_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionindexes_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return $a.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return $a.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionindexes_get(this.ptr,t);return S.__wrap(e)}add(t){p(t,S),r.transactionindexes_add(this.ptr,t.ptr)}}const E1=new FinalizationRegistry(n=>r.__wbg_transactioninput_free(n));class Xe{static __wrap(t){const e=Object.create(Xe.prototype);return e.ptr=t,E1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,E1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactioninput_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactioninput_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Xe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninput_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactioninput_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Xe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}transaction_id(){const t=r.governanceactionid_transaction_id(this.ptr);return fe.__wrap(t)}index(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t,e){p(t,fe),p(e,S);const a=r.governanceactionid_new(t.ptr,e.ptr);return Xe.__wrap(a)}}const O1=new FinalizationRegistry(n=>r.__wbg_transactioninputs_free(n));class Je{static __wrap(t){const e=Object.create(Je.prototype);return e.ptr=t,O1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,O1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactioninputs_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactioninputs_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Je.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactioninputs_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactioninputs_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Je.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Je.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactioninputs_get(this.ptr,t);return Xe.__wrap(e)}add(t){p(t,Xe),r.transactioninputs_add(this.ptr,t.ptr)}sort(){r.transactioninputs_sort(this.ptr)}}const z1=new FinalizationRegistry(n=>r.__wbg_transactionmetadatum_free(n));class mt{static __wrap(t){const e=Object.create(mt.prototype);return e.ptr=t,z1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,z1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionmetadatum_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionmetadatum_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_map(t){p(t,I_);const e=r.transactionmetadatum_new_map(t.ptr);return mt.__wrap(e)}static new_list(t){p(t,Ca);const e=r.transactionmetadatum_new_list(t.ptr);return mt.__wrap(e)}static new_int(t){p(t,re);const e=r.transactionmetadatum_new_int(t.ptr);return mt.__wrap(e)}static new_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionmetadatum_new_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_text(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionmetadatum_new_text(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}kind(){return r.transactionmetadatum_kind(this.ptr)>>>0}as_map(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_map(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return I_.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_list(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_list(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Ca.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_int(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_int(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return re.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_bytes(){try{const o=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_bytes(o,this.ptr);var t=s()[o/4+0],e=s()[o/4+1],a=s()[o/4+2],_=s()[o/4+3];if(_)throw l(a);var i=j(t,e).slice();return r.__wbindgen_free(t,e*1),i}finally{r.__wbindgen_add_to_stack_pointer(16)}}as_text(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatum_as_text(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}}const R1=new FinalizationRegistry(n=>r.__wbg_transactionmetadatumlabels_free(n));class zi{static __wrap(t){const e=Object.create(zi.prototype);return e.ptr=t,R1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,R1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionmetadatumlabels_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionmetadatumlabels_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionmetadatumlabels_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return zi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return zi.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionmetadatumlabels_get(this.ptr,t);return S.__wrap(e)}add(t){p(t,S),r.transactionindexes_add(this.ptr,t.ptr)}}const P1=new FinalizationRegistry(n=>r.__wbg_transactionoutput_free(n));class Kt{static __wrap(t){const e=Object.create(Kt.prototype);return e.ptr=t,P1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,P1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutput_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionoutput_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionoutput_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Kt.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}address(){const t=r.transactionoutput_address(this.ptr);return vt.__wrap(t)}amount(){const t=r.transactionoutput_amount(this.ptr);return Ct.__wrap(t)}datum(){const t=r.transactionoutput_datum(this.ptr);return t===0?void 0:Wt.__wrap(t)}script_ref(){const t=r.transactionoutput_script_ref(this.ptr);return t===0?void 0:An.__wrap(t)}set_datum(t){p(t,Wt),r.transactionoutput_set_datum(this.ptr,t.ptr)}set_script_ref(t){p(t,An),r.transactionoutput_set_script_ref(this.ptr,t.ptr)}static new(t,e){p(t,vt),p(e,Ct);const a=r.transactionoutput_new(t.ptr,e.ptr);return Kt.__wrap(a)}format(){return r.transactionoutput_format(this.ptr)}to_legacy_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutput_to_legacy_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const N1=new FinalizationRegistry(n=>r.__wbg_transactionoutputamountbuilder_free(n));class Wa{static __wrap(t){const e=Object.create(Wa.prototype);return e.ptr=t,N1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,N1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputamountbuilder_free(t)}with_value(t){p(t,Ct);const e=r.transactionoutputamountbuilder_with_value(this.ptr,t.ptr);return Wa.__wrap(e)}with_coin(t){p(t,S);const e=r.transactionoutputamountbuilder_with_coin(this.ptr,t.ptr);return Wa.__wrap(e)}with_coin_and_asset(t,e){p(t,S),p(e,pe);const a=r.transactionoutputamountbuilder_with_coin_and_asset(this.ptr,t.ptr,e.ptr);return Wa.__wrap(a)}with_asset_and_min_required_coin(t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16);p(t,pe),p(e,S),r.transactionoutputamountbuilder_with_asset_and_min_required_coin(o,this.ptr,t.ptr,e.ptr);var a=s()[o/4+0],_=s()[o/4+1],i=s()[o/4+2];if(i)throw l(_);return Wa.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}build(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputamountbuilder_build(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Kt.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const T1=new FinalizationRegistry(n=>r.__wbg_transactionoutputbuilder_free(n));class Ri{static __wrap(t){const e=Object.create(Ri.prototype);return e.ptr=t,T1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,T1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputbuilder_free(t)}static new(){const t=r.transactionoutputbuilder_new();return Ri.__wrap(t)}with_address(t){p(t,vt);const e=r.transactionoutputbuilder_with_address(this.ptr,t.ptr);return Ri.__wrap(e)}with_datum(t){p(t,Wt);const e=r.transactionoutputbuilder_with_datum(this.ptr,t.ptr);return Ri.__wrap(e)}next(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputbuilder_next(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Wa.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const I1=new FinalizationRegistry(n=>r.__wbg_transactionoutputs_free(n));class Br{static __wrap(t){const e=Object.create(Br.prototype);return e.ptr=t,I1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,I1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionoutputs_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionoutputs_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionoutputs_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionoutputs_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Br.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return Br.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionoutputs_get(this.ptr,t);return Kt.__wrap(e)}add(t){p(t,Kt),r.transactionoutputs_add(this.ptr,t.ptr)}}const F1=new FinalizationRegistry(n=>r.__wbg_transactionunspentoutput_free(n));class Te{static __wrap(t){const e=Object.create(Te.prototype);return e.ptr=t,F1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,F1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionunspentoutput_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionunspentoutput_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionunspentoutput_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Te.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){p(t,Xe),p(e,Kt);const a=r.transactionunspentoutput_new(t.ptr,e.ptr);return Te.__wrap(a)}input(){const t=r.transactionunspentoutput_input(this.ptr);return Xe.__wrap(t)}output(){const t=r.transactionunspentoutput_output(this.ptr);return Kt.__wrap(t)}to_legacy_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionunspentoutput_to_legacy_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const D1=new FinalizationRegistry(n=>r.__wbg_transactionunspentoutputs_free(n));class rr{static __wrap(t){const e=Object.create(rr.prototype);return e.ptr=t,D1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,D1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionunspentoutputs_free(t)}static new(){const t=r.certificates_new();return rr.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionunspentoutputs_get(this.ptr,t);return Te.__wrap(e)}add(t){p(t,Te),r.transactionunspentoutputs_add(this.ptr,t.ptr)}}const A1=new FinalizationRegistry(n=>r.__wbg_transactionwitnessset_free(n));class Ie{static __wrap(t){const e=Object.create(Ie.prototype);return e.ptr=t,A1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,A1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnessset_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionwitnessset_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnessset_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionwitnessset_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ie.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}set_vkeys(t){p(t,Ni),r.transactionwitnessset_set_vkeys(this.ptr,t.ptr)}vkeys(){const t=r.transactionwitnessset_vkeys(this.ptr);return t===0?void 0:Ni.__wrap(t)}set_native_scripts(t){p(t,ve),r.transactionwitnessset_set_native_scripts(this.ptr,t.ptr)}native_scripts(){const t=r.transactionwitnessset_native_scripts(this.ptr);return t===0?void 0:ve.__wrap(t)}set_bootstraps(t){p(t,Si),r.transactionwitnessset_set_bootstraps(this.ptr,t.ptr)}bootstraps(){const t=r.transactionwitnessset_bootstraps(this.ptr);return t===0?void 0:Si.__wrap(t)}set_plutus_scripts(t){p(t,_e),r.transactionwitnessset_set_plutus_scripts(this.ptr,t.ptr)}plutus_scripts(){const t=r.transactionwitnessset_plutus_scripts(this.ptr);return t===0?void 0:_e.__wrap(t)}set_plutus_data(t){p(t,ae),r.transactionwitnessset_set_plutus_data(this.ptr,t.ptr)}plutus_data(){const t=r.transactionwitnessset_plutus_data(this.ptr);return t===0?void 0:ae.__wrap(t)}set_redeemers(t){p(t,Nr),r.transactionwitnessset_set_redeemers(this.ptr,t.ptr)}set_plutus_v2_scripts(t){p(t,_e),r.transactionwitnessset_set_plutus_v2_scripts(this.ptr,t.ptr)}set_plutus_v3_scripts(t){p(t,_e),r.transactionwitnessset_set_plutus_v3_scripts(this.ptr,t.ptr)}redeemers(){const t=r.transactionwitnessset_redeemers(this.ptr);return t===0?void 0:Nr.__wrap(t)}plutus_v2_scripts(){const t=r.transactionwitnessset_plutus_v2_scripts(this.ptr);return t===0?void 0:_e.__wrap(t)}plutus_v3_scripts(){const t=r.transactionwitnessset_plutus_v3_scripts(this.ptr);return t===0?void 0:_e.__wrap(t)}static new(){const t=r.transactionwitnessset_new();return Ie.__wrap(t)}}const M1=new FinalizationRegistry(n=>r.__wbg_transactionwitnesssetbuilder_free(n));class Ka{static __wrap(t){const e=Object.create(Ka.prototype);return e.ptr=t,M1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,M1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnesssetbuilder_free(t)}add_vkey(t){p(t,Mn),r.transactionwitnesssetbuilder_add_vkey(this.ptr,t.ptr)}add_bootstrap(t){p(t,un),r.transactionwitnesssetbuilder_add_bootstrap(this.ptr,t.ptr)}add_native_script(t){p(t,St),r.transactionwitnesssetbuilder_add_native_script(this.ptr,t.ptr)}add_plutus_script(t){p(t,wt),r.transactionwitnesssetbuilder_add_plutus_script(this.ptr,t.ptr)}add_plutus_v2_script(t){p(t,wt),r.transactionwitnesssetbuilder_add_plutus_v2_script(this.ptr,t.ptr)}add_plutus_datum(t){p(t,rt),r.transactionwitnesssetbuilder_add_plutus_datum(this.ptr,t.ptr)}add_redeemer(t){p(t,Pr),r.transactionwitnesssetbuilder_add_redeemer(this.ptr,t.ptr)}add_required_wits(t){p(t,Oi),r.transactionwitnesssetbuilder_add_required_wits(this.ptr,t.ptr)}static new(){const t=r.transactionwitnesssetbuilder_new();return Ka.__wrap(t)}add_existing(t){p(t,Ie),r.transactionwitnesssetbuilder_add_existing(this.ptr,t.ptr)}build(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssetbuilder_build(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return Ie.__wrap(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const B1=new FinalizationRegistry(n=>r.__wbg_transactionwitnesssets_free(n));class Qa{static __wrap(t){const e=Object.create(Qa.prototype);return e.ptr=t,B1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,B1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_transactionwitnesssets_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.transactionwitnesssets_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.transactionwitnesssets_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.transactionwitnesssets_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Qa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assetnames_new();return Qa.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.transactionwitnesssets_get(this.ptr,t);return Ie.__wrap(e)}add(t){p(t,Ie),r.transactionwitnesssets_add(this.ptr,t.ptr)}}const L1=new FinalizationRegistry(n=>r.__wbg_treasurywithdrawals_free(n));class Ga{static __wrap(t){const e=Object.create(Ga.prototype);return e.ptr=t,L1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,L1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_treasurywithdrawals_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.treasurywithdrawals_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawals_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.treasurywithdrawals_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ga.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return Ga.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,J),p(e,S);const a=r.treasurywithdrawals_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:S.__wrap(a)}get(t){p(t,J);const e=r.treasurywithdrawals_get(this.ptr,t.ptr);return e===0?void 0:S.__wrap(e)}keys(){const t=r.treasurywithdrawals_keys(this.ptr);return Xt.__wrap(t)}}const U1=new FinalizationRegistry(n=>r.__wbg_treasurywithdrawalsaction_free(n));class Xa{static __wrap(t){const e=Object.create(Xa.prototype);return e.ptr=t,U1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,U1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_treasurywithdrawalsaction_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.treasurywithdrawalsaction_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.treasurywithdrawalsaction_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.treasurywithdrawalsaction_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Xa.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}withdrawals(){const t=r.treasurywithdrawalsaction_withdrawals(this.ptr);return Ga.__wrap(t)}static new(t){p(t,Ga);const e=r.treasurywithdrawalsaction_new(t.ptr);return Xa.__wrap(e)}}const V1=new FinalizationRegistry(n=>r.__wbg_unitinterval_free(n));class at{static __wrap(t){const e=Object.create(at.prototype);return e.ptr=t,V1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,V1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unitinterval_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.unitinterval_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return at.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.unitinterval_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.unitinterval_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return at.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}numerator(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}denominator(){const t=r.exunits_steps(this.ptr);return S.__wrap(t)}static new(t,e){p(t,S),p(e,S);const a=r.exunits_new(t.ptr,e.ptr);return at.__wrap(a)}static from_float(t){const e=r.unitinterval_from_float(t);return at.__wrap(e)}}const q1=new FinalizationRegistry(n=>r.__wbg_unregcert_free(n));class $_{static __wrap(t){const e=Object.create($_.prototype);return e.ptr=t,q1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,q1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.unregcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.unregcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return $_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.regcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.unregcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return $_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t,e){p(t,H),p(e,S);const a=r.regcert_new(t.ptr,e.ptr);return $_.__wrap(a)}}const H1=new FinalizationRegistry(n=>r.__wbg_unregcommitteehotkeycert_free(n));class W_{static __wrap(t){const e=Object.create(W_.prototype);return e.ptr=t,H1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,H1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregcommitteehotkeycert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.unregcommitteehotkeycert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return W_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.unregcommitteehotkeycert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.unregcommitteehotkeycert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return W_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}committee_cold_keyhash(){const t=r.genesiskeydelegation_genesishash(this.ptr);return J.__wrap(t)}static new(t){p(t,J);const e=r.scriptpubkey_new(t.ptr);return W_.__wrap(e)}}const $1=new FinalizationRegistry(n=>r.__wbg_unregdrepcert_free(n));class K_{static __wrap(t){const e=Object.create(K_.prototype);return e.ptr=t,$1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,$1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_unregdrepcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.unregdrepcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.unregdrepcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return K_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.regdrepcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.unregdrepcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return K_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}voting_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t,e){p(t,H),p(e,S);const a=r.regcert_new(t.ptr,e.ptr);return K_.__wrap(a)}}const W1=new FinalizationRegistry(n=>r.__wbg_update_free(n));class Ja{static __wrap(t){const e=Object.create(Ja.prototype);return e.ptr=t,W1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,W1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_update_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.update_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.update_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.update_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ja.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}proposed_protocol_parameter_updates(){const t=r.update_proposed_protocol_parameter_updates(this.ptr);return Da.__wrap(t)}epoch(){return r.update_epoch(this.ptr)>>>0}static new(t,e){p(t,Da);const a=r.update_new(t.ptr,e);return Ja.__wrap(a)}}const K1=new FinalizationRegistry(n=>r.__wbg_url_free(n));class ar{static __wrap(t){const e=Object.create(ar.prototype);return e.ptr=t,K1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,K1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_url_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.url_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.url_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.url_new(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return ar.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}url(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.blockfrost_url(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}}const Q1=new FinalizationRegistry(n=>r.__wbg_vrfcert_free(n));class _r{static __wrap(t){const e=Object.create(_r.prototype);return e.ptr=t,Q1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Q1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.vrfcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return _r.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.vrfcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.vrfcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return _r.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}output(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}proof(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.bootstrapwitness_attributes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){try{const o=r.__wbindgen_add_to_stack_pointer(-16),c=E(t,r.__wbindgen_malloc),d=w,f=E(e,r.__wbindgen_malloc),h=w;r.vrfcert_new(o,c,d,f,h);var a=s()[o/4+0],_=s()[o/4+1],i=s()[o/4+2];if(i)throw l(_);return _r.__wrap(a)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const G1=new FinalizationRegistry(n=>r.__wbg_vrfkeyhash_free(n));class mn{static __wrap(t){const e=Object.create(mn.prototype);return e.ptr=t,G1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,G1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfkeyhash_free(t)}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.vrfkeyhash_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_bech32(t){try{const d=r.__wbindgen_add_to_stack_pointer(-16),f=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),h=w;r.auxiliarydatahash_to_bech32(d,this.ptr,f,h);var e=s()[d/4+0],a=s()[d/4+1],_=s()[d/4+2],i=s()[d/4+3],o=e,c=a;if(i)throw o=0,c=0,l(_);return R(o,c)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(o,c)}}static from_bech32(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.vrfkeyhash_from_bech32(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_hex(){try{const a=r.__wbindgen_add_to_stack_pointer(-16);r.auxiliarydatahash_to_hex(a,this.ptr);var t=s()[a/4+0],e=s()[a/4+1];return R(t,e)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(t,e)}}static from_hex(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.vrfkeyhash_from_hex(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return mn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const X1=new FinalizationRegistry(n=>r.__wbg_vrfvkey_free(n));class Pi{static __wrap(t){const e=Object.create(Pi.prototype);return e.ptr=t,X1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,X1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vrfvkey_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.vrfvkey_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.plutusscript_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Pi.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}hash(){const t=r.vrfvkey_hash(this.ptr);return mn.__wrap(t)}to_raw_key(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.assetname_name(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}}const J1=new FinalizationRegistry(n=>r.__wbg_value_free(n));class Ct{static __wrap(t){const e=Object.create(Ct.prototype);return e.ptr=t,J1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,J1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_value_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.value_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ct.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.value_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.value_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ct.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,S);const e=r.value_new(t.ptr);return Ct.__wrap(e)}static new_from_assets(t){p(t,pe);const e=r.value_new_from_assets(t.ptr);return Ct.__wrap(e)}static zero(){const t=r.value_zero();return Ct.__wrap(t)}is_zero(){return r.value_is_zero(this.ptr)!==0}coin(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}set_coin(t){p(t,S),r.value_set_coin(this.ptr,t.ptr)}multiasset(){const t=r.value_multiasset(this.ptr);return t===0?void 0:pe.__wrap(t)}set_multiasset(t){p(t,pe),r.value_set_multiasset(this.ptr,t.ptr)}checked_add(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,Ct),r.value_checked_add(i,this.ptr,t.ptr);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ct.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16);p(t,Ct),r.value_checked_sub(i,this.ptr,t.ptr);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ct.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}clamped_sub(t){p(t,Ct);const e=r.value_clamped_sub(this.ptr,t.ptr);return Ct.__wrap(e)}compare(t){p(t,Ct);const e=r.value_compare(this.ptr,t.ptr);return e===16777215?void 0:e}}const Z1=new FinalizationRegistry(n=>r.__wbg_vkey_free(n));class xe{static __wrap(t){const e=Object.create(xe.prototype);return e.ptr=t,Z1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Z1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkey_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.vkey_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.vkey_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return xe.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t){p(t,bn);const e=r.vkey_new(t.ptr);return xe.__wrap(e)}public_key(){const t=r.vkey_public_key(this.ptr);return bn.__wrap(t)}}const Y1=new FinalizationRegistry(n=>r.__wbg_vkeys_free(n));class Go{static __wrap(t){const e=Object.create(Go.prototype);return e.ptr=t,Y1.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,Y1.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeys_free(t)}static new(){const t=r.ed25519keyhashes_new();return Go.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.vkeys_get(this.ptr,t);return xe.__wrap(e)}add(t){p(t,xe),r.vkeys_add(this.ptr,t.ptr)}}const t0=new FinalizationRegistry(n=>r.__wbg_vkeywitness_free(n));class Mn{static __wrap(t){const e=Object.create(Mn.prototype);return e.ptr=t,t0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,t0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeywitness_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.vkeywitness_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Mn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.vkeywitness_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.vkeywitness_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Mn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){p(t,xe),p(e,me);const a=r.vkeywitness_new(t.ptr,e.ptr);return Mn.__wrap(a)}vkey(){const t=r.vkey_new(this.ptr);return xe.__wrap(t)}signature(){const t=r.vkeywitness_signature(this.ptr);return me.__wrap(t)}}const e0=new FinalizationRegistry(n=>r.__wbg_vkeywitnesses_free(n));class Ni{static __wrap(t){const e=Object.create(Ni.prototype);return e.ptr=t,e0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,e0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vkeywitnesses_free(t)}static new(){const t=r.ed25519keyhashes_new();return Ni.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.vkeywitnesses_get(this.ptr,t);return Mn.__wrap(e)}add(t){p(t,Mn),r.vkeywitnesses_add(this.ptr,t.ptr)}}const n0=new FinalizationRegistry(n=>r.__wbg_vote_free(n));class Lr{static __wrap(t){const e=Object.create(Lr.prototype);return e.ptr=t,n0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,n0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_vote_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.vote_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Lr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.vote_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.vote_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Lr.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_no(){const t=r.language_new_plutus_v1();return Lr.__wrap(t)}static new_yes(){const t=r.language_new_plutus_v2();return Lr.__wrap(t)}static new_abstain(){const t=r.language_new_plutus_v3();return Lr.__wrap(t)}kind(){return r.vote_kind(this.ptr)>>>0}}const r0=new FinalizationRegistry(n=>r.__wbg_votedelegcert_free(n));class Q_{static __wrap(t){const e=Object.create(Q_.prototype);return e.ptr=t,r0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,r0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votedelegcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.votedelegcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Q_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.votedelegcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.votedelegcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Q_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.stakedelegation_stake_credential(this.ptr);return H.__wrap(t)}drep(){const t=r.votedelegcert_drep(this.ptr);return ne.__wrap(t)}static new(t,e){p(t,H),p(e,ne);const a=r.votedelegcert_new(t.ptr,e.ptr);return Q_.__wrap(a)}}const a0=new FinalizationRegistry(n=>r.__wbg_voteregdelegcert_free(n));class G_{static __wrap(t){const e=Object.create(G_.prototype);return e.ptr=t,a0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,a0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_voteregdelegcert_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.voteregdelegcert_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return G_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.voteregdelegcert_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.voteregdelegcert_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return G_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}stake_credential(){const t=r.regcert_stake_credential(this.ptr);return H.__wrap(t)}drep(){const t=r.voteregdelegcert_drep(this.ptr);return ne.__wrap(t)}coin(){const t=r.constrplutusdata_alternative(this.ptr);return S.__wrap(t)}static new(t,e,a){p(t,H),p(e,ne),p(a,S);const _=r.voteregdelegcert_new(t.ptr,e.ptr,a.ptr);return G_.__wrap(_)}}const _0=new FinalizationRegistry(n=>r.__wbg_voter_free(n));class vn{static __wrap(t){const e=Object.create(vn.prototype);return e.ptr=t,_0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,_0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_voter_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.voter_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return vn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.voter_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.voter_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return vn.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new_committee_hot_keyhash(t){p(t,J);const e=r.drep_new_keyhash(t.ptr);return vn.__wrap(e)}static new_committee_hot_scripthash(t){p(t,ct);const e=r.drep_new_scripthash(t.ptr);return vn.__wrap(e)}static new_drep_keyhash(t){p(t,J);const e=r.voter_new_drep_keyhash(t.ptr);return vn.__wrap(e)}static new_drep_scripthash(t){p(t,ct);const e=r.voter_new_drep_scripthash(t.ptr);return vn.__wrap(e)}static new_staking_pool_keyhash(t){p(t,J);const e=r.voter_new_staking_pool_keyhash(t.ptr);return vn.__wrap(e)}kind(){return r.voter_kind(this.ptr)>>>0}as_committee_hot_keyhash(){const t=r.voter_as_committee_hot_keyhash(this.ptr);return t===0?void 0:J.__wrap(t)}as_committee_hot_scripthash(){const t=r.voter_as_committee_hot_scripthash(this.ptr);return t===0?void 0:ct.__wrap(t)}as_drep_keyhash(){const t=r.voter_as_drep_keyhash(this.ptr);return t===0?void 0:J.__wrap(t)}as_drep_scripthash(){const t=r.voter_as_drep_scripthash(this.ptr);return t===0?void 0:ct.__wrap(t)}as_staking_pool_keyhash(){const t=r.voter_as_staking_pool_keyhash(this.ptr);return t===0?void 0:J.__wrap(t)}}const i0=new FinalizationRegistry(n=>r.__wbg_votingprocedure_free(n));class Za{static __wrap(t){const e=Object.create(Za.prototype);return e.ptr=t,i0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,i0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votingprocedure_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.votingprocedure_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedure_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.votingprocedure_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Za.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}governance_action_id(){const t=r.transactionunspentoutput_input(this.ptr);return ma.__wrap(t)}voter(){const t=r.votingprocedure_voter(this.ptr);return vn.__wrap(t)}vote(){return r.votingprocedure_vote(this.ptr)>>>0}anchor(){const t=r.votingprocedure_anchor(this.ptr);return Xn.__wrap(t)}static new(t,e,a,_){p(t,ma),p(e,vn),p(a,Lr),p(_,Xn);const i=r.votingprocedure_new(t.ptr,e.ptr,a.ptr,_.ptr);return Za.__wrap(i)}}const s0=new FinalizationRegistry(n=>r.__wbg_votingprocedures_free(n));class X_{static __wrap(t){const e=Object.create(X_.prototype);return e.ptr=t,s0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,s0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_votingprocedures_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.votingprocedures_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.votingprocedures_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return X_.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.certificates_new();return X_.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}get(t){const e=r.votingprocedures_get(this.ptr,t);return Za.__wrap(e)}add(t){p(t,Za),r.votingprocedures_add(this.ptr,t.ptr)}}const o0=new FinalizationRegistry(n=>r.__wbg_withdrawals_free(n));class Ur{static __wrap(t){const e=Object.create(Ur.prototype);return e.ptr=t,o0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,o0.unregister(this),t}free(){const t=this.__destroy_into_raw();r.__wbg_withdrawals_free(t)}to_bytes(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_bytes(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=j(t,e).slice();return r.__wbindgen_free(t,e*1),a}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=E(t,r.__wbindgen_malloc),c=w;r.withdrawals_from_bytes(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ur.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}to_json(){try{const c=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_json(c,this.ptr);var t=s()[c/4+0],e=s()[c/4+1],a=s()[c/4+2],_=s()[c/4+3],i=t,o=e;if(_)throw i=0,o=0,l(a);return R(i,o)}finally{r.__wbindgen_add_to_stack_pointer(16),r.__wbindgen_free(i,o)}}to_js_value(){try{const _=r.__wbindgen_add_to_stack_pointer(-16);r.withdrawals_to_js_value(_,this.ptr);var t=s()[_/4+0],e=s()[_/4+1],a=s()[_/4+2];if(a)throw l(e);return l(t)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static from_json(t){try{const i=r.__wbindgen_add_to_stack_pointer(-16),o=C(t,r.__wbindgen_malloc,r.__wbindgen_realloc),c=w;r.withdrawals_from_json(i,o,c);var e=s()[i/4+0],a=s()[i/4+1],_=s()[i/4+2];if(_)throw l(a);return Ur.__wrap(e)}finally{r.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=r.assets_new();return Ur.__wrap(t)}len(){return r.assetnames_len(this.ptr)>>>0}insert(t,e){p(t,zt),p(e,S);const a=r.withdrawals_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:S.__wrap(a)}get(t){p(t,zt);const e=r.withdrawals_get(this.ptr,t.ptr);return e===0?void 0:S.__wrap(e)}keys(){const t=r.withdrawals_keys(this.ptr);return L_.__wrap(t)}}const Wl={__wbindgen_placeholder__:{__wbindgen_string_new:function(n,t){const e=R(n,t);return ut(e)},__wbindgen_object_drop_ref:function(n){l(n)},__wbindgen_json_parse:function(n,t){const e=JSON.parse(R(n,t));return ut(e)},__wbindgen_json_serialize:function(n,t){const e=nt(t),a=JSON.stringify(e===void 0?null:e),_=C(a,r.__wbindgen_malloc,r.__wbindgen_realloc),i=w;s()[n/4+1]=i,s()[n/4+0]=_},__wbg_transaction_new:function(n){const t=yn.__wrap(n);return ut(t)},__wbg_fetch_16f5dddfc5a913a4:function(n,t){const e=nt(n).fetch(nt(t));return ut(e)},__wbindgen_string_get:function(n,t){const e=nt(t),a=typeof e=="string"?e:void 0;var _=Nt(a)?0:C(a,r.__wbindgen_malloc,r.__wbindgen_realloc),i=w;s()[n/4+1]=i,s()[n/4+0]=_},__wbindgen_object_clone_ref:function(n){const t=nt(n);return ut(t)},__wbg_set_a5d34c36a1a4ebd1:function(){return ln(function(n,t,e,a,_){nt(n).set(R(t,e),R(a,_))},arguments)},__wbg_headers_ab5251d2727ac41e:function(n){const t=nt(n).headers;return ut(t)},__wbg_newwithstrandinit_c45f0dc6da26fd03:function(){return ln(function(n,t,e){const a=new Request(R(n,t),nt(e));return ut(a)},arguments)},__wbg_instanceof_Response_fb3a4df648c1859b:function(n){let t;try{t=nt(n)instanceof Response}catch{t=!1}return t},__wbg_json_b9414eb18cb751d0:function(){return ln(function(n){const t=nt(n).json();return ut(t)},arguments)},__wbindgen_cb_drop:function(n){const t=l(n).original;return t.cnt--==1?(t.a=0,!0):!1},__wbg_randomFillSync_2f6909f8132a175d:function(){return ln(function(n,t,e){nt(n).randomFillSync(j(t,e))},arguments)},__wbg_getRandomValues_11a236fbf9914290:function(){return ln(function(n,t){nt(n).getRandomValues(nt(t))},arguments)},__wbg_process_5615a087a47ba544:function(n){const t=nt(n).process;return ut(t)},__wbindgen_is_object:function(n){const t=nt(n);return typeof t=="object"&&t!==null},__wbg_versions_8404a8b21b9337ae:function(n){const t=nt(n).versions;return ut(t)},__wbg_node_8b504e170b6380b9:function(n){const t=nt(n).node;return ut(t)},__wbindgen_is_string:function(n){return typeof nt(n)=="string"},__wbg_require_0430b68b38d1a77e:function(){return ln(function(n,t,e){const a=nt(n).require(R(t,e));return ut(a)},arguments)},__wbg_crypto_ca5197b41df5e2bd:function(n){const t=nt(n).crypto;return ut(t)},__wbg_msCrypto_1088c21440b2d7e4:function(n){const t=nt(n).msCrypto;return ut(t)},__wbg_static_accessor_NODE_MODULE_06b864c18e8ae506:function(){const n=module;return ut(n)},__wbg_self_e7c1f827057f6584:function(){return ln(function(){const n=self.self;return ut(n)},arguments)},__wbg_window_a09ec664e14b1b81:function(){return ln(function(){const n=globalThis.window;return ut(n)},arguments)},__wbg_globalThis_87cbb8506fecf3a9:function(){return ln(function(){const n=globalThis.globalThis;return ut(n)},arguments)},__wbg_global_c85a9259e621f3db:function(){return ln(function(){const n=global.global;return ut(n)},arguments)},__wbindgen_is_undefined:function(n){return nt(n)===void 0},__wbg_newnoargs_2b8b6bd7753c76ba:function(n,t){const e=new Function(R(n,t));return ut(e)},__wbg_call_95d1ea488d03e4e8:function(){return ln(function(n,t){const e=nt(n).call(nt(t));return ut(e)},arguments)},__wbg_new_f9876326328f45ed:function(){const n=new Object;return ut(n)},__wbg_call_9495de66fdbe016b:function(){return ln(function(n,t,e){const a=nt(n).call(nt(t),nt(e));return ut(a)},arguments)},__wbg_set_6aa458a4ebdb65cb:function(){return ln(function(n,t,e){return Reflect.set(nt(n),nt(t),nt(e))},arguments)},__wbg_buffer_cf65c07de34b9a08:function(n){const t=nt(n).buffer;return ut(t)},__wbg_new_9d3a9ce4282a18a8:function(n,t){try{var e={a:n,b:t},a=(i,o)=>{const c=e.a;e.a=0;try{return nj(c,e.b,i,o)}finally{e.a=c}};const _=new Promise(a);return ut(_)}finally{e.a=e.b=0}},__wbg_resolve_fd40f858d9db1a04:function(n){const t=Promise.resolve(nt(n));return ut(t)},__wbg_then_ec5db6d509eb475f:function(n,t){const e=nt(n).then(nt(t));return ut(e)},__wbg_then_f753623316e2873a:function(n,t,e){const a=nt(n).then(nt(t),nt(e));return ut(a)},__wbg_new_537b7341ce90bb31:function(n){const t=new Uint8Array(nt(n));return ut(t)},__wbg_set_17499e8aa4003ebd:function(n,t,e){nt(n).set(nt(t),e>>>0)},__wbg_length_27a2afe8ab42b09f:function(n){return nt(n).length},__wbg_newwithlength_b56c882b57805732:function(n){const t=new Uint8Array(n>>>0);return ut(t)},__wbg_subarray_7526649b91a252a6:function(n,t,e){const a=nt(n).subarray(t>>>0,e>>>0);return ut(a)},__wbg_new_d87f272aec784ec0:function(n,t){const e=new Function(R(n,t));return ut(e)},__wbg_call_eae29933372a39be:function(n,t){const e=nt(n).call(nt(t));return ut(e)},__wbindgen_jsval_eq:function(n,t){return nt(n)===nt(t)},__wbg_self_e0b3266d2d9eba1a:function(n){const t=nt(n).self;return ut(t)},__wbg_crypto_e95a6e54c5c2e37f:function(n){const t=nt(n).crypto;return ut(t)},__wbg_getRandomValues_dc67302a7bd1aec5:function(n){const t=nt(n).getRandomValues;return ut(t)},__wbg_require_0993fe224bf8e202:function(n,t){const e=require(R(n,t));return ut(e)},__wbg_randomFillSync_dd2297de5917c74e:function(n,t,e){nt(n).randomFillSync(j(t,e))},__wbg_getRandomValues_02639197c8166a96:function(n,t,e){nt(n).getRandomValues(j(t,e))},__wbindgen_debug_string:function(n,t){const e=Lp(nt(t)),a=C(e,r.__wbindgen_malloc,r.__wbindgen_realloc),_=w;s()[n/4+1]=_,s()[n/4+0]=a},__wbindgen_throw:function(n,t){throw new Error(R(n,t))},__wbindgen_memory:function(){const n=r.memory;return ut(n)},__wbindgen_closure_wrapper7018:function(n,t,e){const a=Zx(n,t,216,Yx);return ut(a)}}};async function kj(n){return(await c0(n)).exports}let Xo,Kl;function c0(n){return Xo!=null?Promise.resolve(Xo):(Kl==null&&(Kl=(async()=>{try{const t=(await Sj(n??{})).instance;return r=t.exports,$o=new Int32Array(r.memory.buffer),qo=new Uint8Array(r.memory.buffer),Xo={instance:t,exports:xj()},Xo}finally{Kl=null}})()),Kl)}function xj(){return{encrypt_with_password:Rb,decrypt_with_password:Pb,min_fee:Nb,encode_arbitrary_bytes_as_metadatum:Tb,decode_arbitrary_bytes_from_metadatum:Ib,encode_json_str_to_metadatum:Fb,decode_metadatum_to_json_str:Db,encode_json_str_to_plutus_datum:Ab,decode_plutus_datum_to_json_str:Mb,make_daedalus_bootstrap_witness:Lb,make_icarus_bootstrap_witness:Ub,make_vkey_witness:Ss,hash_auxiliary_data:Vb,hash_transaction:da,hash_plutus_data:Cs,hash_blake2b256:Up,hash_blake2b224:qb,hash_script_data:Hb,get_implicit_input:$b,get_deposit:Wb,min_ada_required:Kb,encode_json_str_to_native_script:Vp,apply_params_to_plutus_script:qp,Address:vt,Anchor:Xn,AssetName:te,AssetNames:ua,Assets:Jn,AuxiliaryData:ze,AuxiliaryDataHash:br,AuxiliaryDataSet:ki,BaseAddress:Zn,BigInt:Wo,BigNum:S,Bip32PrivateKey:Pn,Bip32PublicKey:pa,Block:xi,BlockHash:Yn,Blockfrost:ji,BootstrapWitness:un,BootstrapWitnesses:Si,ByronAddress:Re,Certificate:Lt,Certificates:yr,ConstrPlutusData:fa,CostModel:pn,Costmdls:tr,DNSRecordAorAAAA:wa,DNSRecordSRV:ga,Data:Nn,DataHash:ee,Datum:Wt,Drep:ne,DrepVotingThresholds:ha,Ed25519KeyHash:J,Ed25519KeyHashes:Xt,Ed25519Signature:me,EnterpriseAddress:Tn,ExUnitPrices:In,ExUnits:$e,GeneralTransactionMetadata:mr,GenesisDelegateHash:ba,GenesisHash:fn,GenesisHashes:N_,GenesisKeyDelegation:ya,GovernanceAction:Pe,GovernanceActionId:ma,HardForkInitiationAction:va,Header:ka,HeaderBody:xa,Int:re,Ipv4:vr,Ipv6:kr,KESSignature:Ci,KESVKey:ja,Language:We,Languages:Es,LegacyDaedalusPrivateKey:Os,LinearFee:T_,MIRToStakeCredentials:Sa,MetadataList:Ca,MetadataMap:I_,Mint:er,MintAssets:Fn,MoveInstantaneousReward:xr,MoveInstantaneousRewardsCert:Ea,MultiAsset:pe,MultiHostName:jr,NativeScript:St,NativeScripts:ve,NetworkId:wn,NetworkInfo:Sr,NewCommittee:Oa,NewConstitution:za,Nonce:Ra,OperationalCert:Pa,ParameterChangeAction:Na,PlutusData:rt,PlutusList:ae,PlutusMap:Ta,PlutusScript:wt,PlutusScripts:_e,PlutusWitness:gn,Pointer:Ei,PointerAddress:F_,PoolMetadata:Cr,PoolMetadataHash:Er,PoolParams:Or,PoolRegistration:zr,PoolRetirement:Rr,PoolVotingThresholds:Ia,PrivateKey:qt,ProposalProcedure:Fa,ProposalProcedures:D_,ProposedProtocolParameterUpdates:Da,ProtocolParamUpdate:Dn,ProtocolVersion:hn,PublicKey:bn,PublicKeys:Ko,Redeemer:Pr,RedeemerTag:Ke,RedeemerWitnessKey:zs,Redeemers:Nr,RegCert:A_,RegCommitteeHotKeyCert:M_,RegDrepCert:B_,Relay:Qe,Relays:Tr,RequiredWitnessSet:Oi,RewardAddress:zt,RewardAddresses:L_,Script:Ne,ScriptAll:Aa,ScriptAny:Ma,ScriptDataHash:nr,ScriptHash:ct,ScriptHashes:Ba,ScriptNOfK:La,ScriptPubkey:Ua,ScriptRef:An,ScriptWitness:ke,SingleHostAddr:Ir,SingleHostName:Fr,StakeCredential:H,StakeCredentials:U_,StakeDelegation:Dr,StakeDeregistration:Ar,StakeRegDelegCert:V_,StakeRegistration:Mr,StakeVoteDelegCert:q_,StakeVoteRegDelegCert:H_,Strings:Qo,TimelockExpiry:Va,TimelockStart:qa,Transaction:yn,TransactionBodies:Ha,TransactionBody:Ge,TransactionBuilder:Rs,TransactionBuilderConfig:Ps,TransactionBuilderConfigBuilder:Jt,TransactionHash:fe,TransactionIndexes:$a,TransactionInput:Xe,TransactionInputs:Je,TransactionMetadatum:mt,TransactionMetadatumLabels:zi,TransactionOutput:Kt,TransactionOutputAmountBuilder:Wa,TransactionOutputBuilder:Ri,TransactionOutputs:Br,TransactionUnspentOutput:Te,TransactionUnspentOutputs:rr,TransactionWitnessSet:Ie,TransactionWitnessSetBuilder:Ka,TransactionWitnessSets:Qa,TreasuryWithdrawals:Ga,TreasuryWithdrawalsAction:Xa,UnitInterval:at,UnregCert:$_,UnregCommitteeHotKeyCert:W_,UnregDrepCert:K_,Update:Ja,Url:ar,VRFCert:_r,VRFKeyHash:mn,VRFVKey:Pi,Value:Ct,Vkey:xe,Vkeys:Go,Vkeywitness:Mn,Vkeywitnesses:Ni,Vote:Lr,VoteDelegCert:Q_,VoteRegDelegCert:G_,Voter:vn,VotingProcedure:Za,VotingProcedures:X_,Withdrawals:Ur}}function jj(){return Xo!=null}async function Sj(n){var _,i,o;const t=import.meta.url.includes("_frsh")?n.url:new URL("/aiken-ide/assets/cardano_multiplatform_lib_bg-1FNGSMI0.wasm",import.meta.url),e=n.decompress,a=t.protocol==="file:";if(((i=(_=globalThis.process)==null?void 0:_.versions)==null?void 0:i.node)!=null&&a){const c=fs.readFileSync(t);return WebAssembly.instantiate(e?e(c):c,Wl)}switch(t.protocol){case"":case"chrome-extension:":case"file:":case"https:":case"http:":{if(a){if(typeof Deno!="object")throw new Error("file urls are not supported in this environment");"permissions"in Deno&&await Deno.permissions.request({name:"read",path:t})}else typeof Deno=="object"&&"permissions"in Deno&&await Deno.permissions.request({name:"net",host:t.host});const c=await fetch(t);if(e){const d=new Uint8Array(await c.arrayBuffer());return WebAssembly.instantiate(e(d),Wl)}return a||(o=c.headers.get("content-type"))!=null&&o.toLowerCase().startsWith("application/wasm")?WebAssembly.instantiateStreaming(c,Wl):WebAssembly.instantiate(await c.arrayBuffer(),Wl)}default:throw new Error(`Unsupported protocol: ${t.protocol}`)}}const Cj=Object.freeze(Object.defineProperty({__proto__:null,Address:vt,Anchor:Xn,AssetName:te,AssetNames:ua,Assets:Jn,AuxiliaryData:ze,AuxiliaryDataHash:br,AuxiliaryDataSet:ki,BaseAddress:Zn,BigInt:Wo,BigNum:S,Bip32PrivateKey:Pn,Bip32PublicKey:pa,Block:xi,BlockHash:Yn,Blockfrost:ji,BootstrapWitness:un,BootstrapWitnesses:Si,ByronAddress:Re,Certificate:Lt,CertificateKind:gj,Certificates:yr,ConstrPlutusData:fa,CostModel:pn,Costmdls:tr,DNSRecordAorAAAA:wa,DNSRecordSRV:ga,Data:Nn,DataHash:ee,Datum:Wt,DatumKind:fj,Drep:ne,DrepKind:sj,DrepVotingThresholds:ha,Ed25519KeyHash:J,Ed25519KeyHashes:Xt,Ed25519Signature:me,EnterpriseAddress:Tn,ExUnitPrices:In,ExUnits:$e,GeneralTransactionMetadata:mr,GenesisDelegateHash:ba,GenesisHash:fn,GenesisHashes:N_,GenesisKeyDelegation:ya,GovernanceAction:Pe,GovernanceActionId:ma,GovernanceActionKind:aj,HardForkInitiationAction:va,Header:ka,HeaderBody:xa,Int:re,Ipv4:vr,Ipv6:kr,KESSignature:Ci,KESVKey:ja,Language:We,LanguageKind:cj,Languages:Es,LegacyDaedalusPrivateKey:Os,LinearFee:T_,MIRKind:bj,MIRPot:hj,MIRToStakeCredentials:Sa,MetadataJsonSchema:Qb,MetadataList:Ca,MetadataMap:I_,Mint:er,MintAssets:Fn,MoveInstantaneousReward:xr,MoveInstantaneousRewardsCert:Ea,MultiAsset:pe,MultiHostName:jr,NativeScript:St,NativeScriptKind:mj,NativeScripts:ve,NetworkId:wn,NetworkIdKind:vj,NetworkInfo:Sr,NewCommittee:Oa,NewConstitution:za,Nonce:Ra,OperationalCert:Pa,ParameterChangeAction:Na,PlutusData:rt,PlutusDataKind:lj,PlutusDatumSchema:uj,PlutusList:ae,PlutusMap:Ta,PlutusScript:wt,PlutusScripts:_e,PlutusWitness:gn,Pointer:Ei,PointerAddress:F_,PoolMetadata:Cr,PoolMetadataHash:Er,PoolParams:Or,PoolRegistration:zr,PoolRetirement:Rr,PoolVotingThresholds:Ia,PrivateKey:qt,ProposalProcedure:Fa,ProposalProcedures:D_,ProposedProtocolParameterUpdates:Da,ProtocolParamUpdate:Dn,ProtocolVersion:hn,PublicKey:bn,PublicKeys:Ko,Redeemer:Pr,RedeemerTag:Ke,RedeemerTagKind:dj,RedeemerWitnessKey:zs,Redeemers:Nr,RegCert:A_,RegCommitteeHotKeyCert:M_,RegDrepCert:B_,Relay:Qe,RelayKind:yj,Relays:Tr,RequiredWitnessSet:Oi,RewardAddress:zt,RewardAddresses:L_,Script:Ne,ScriptAll:Aa,ScriptAny:Ma,ScriptDataHash:nr,ScriptHash:ct,ScriptHashNamespace:dn,ScriptHashes:Ba,ScriptKind:pj,ScriptNOfK:La,ScriptPubkey:Ua,ScriptRef:An,ScriptSchema:Gb,ScriptWitness:ke,ScriptWitnessKind:wj,SingleHostAddr:Ir,SingleHostName:Fr,StakeCredKind:rj,StakeCredential:H,StakeCredentials:U_,StakeDelegation:Dr,StakeDeregistration:Ar,StakeRegDelegCert:V_,StakeRegistration:Mr,StakeVoteDelegCert:q_,StakeVoteRegDelegCert:H_,Strings:Qo,TimelockExpiry:Va,TimelockStart:qa,Transaction:yn,TransactionBodies:Ha,TransactionBody:Ge,TransactionBuilder:Rs,TransactionBuilderConfig:Ps,TransactionBuilderConfigBuilder:Jt,TransactionHash:fe,TransactionIndexes:$a,TransactionInput:Xe,TransactionInputs:Je,TransactionMetadatum:mt,TransactionMetadatumKind:oj,TransactionMetadatumLabels:zi,TransactionOutput:Kt,TransactionOutputAmountBuilder:Wa,TransactionOutputBuilder:Ri,TransactionOutputs:Br,TransactionUnspentOutput:Te,TransactionUnspentOutputs:rr,TransactionWitnessSet:Ie,TransactionWitnessSetBuilder:Ka,TransactionWitnessSets:Qa,TreasuryWithdrawals:Ga,TreasuryWithdrawalsAction:Xa,UnitInterval:at,UnregCert:$_,UnregCommitteeHotKeyCert:W_,UnregDrepCert:K_,Update:Ja,Url:ar,VRFCert:_r,VRFKeyHash:mn,VRFVKey:Pi,Value:Ct,Vkey:xe,Vkeys:Go,Vkeywitness:Mn,Vkeywitnesses:Ni,Vote:Lr,VoteDelegCert:Q_,VoteKind:ij,VoteRegDelegCert:G_,Voter:vn,VoterKind:_j,VotingProcedure:Za,VotingProcedures:X_,Withdrawals:Ur,apply_params_to_plutus_script:qp,decode_arbitrary_bytes_from_metadatum:Ib,decode_metadatum_to_json_str:Db,decode_plutus_datum_to_json_str:Mb,decrypt_with_password:Pb,encode_arbitrary_bytes_as_metadatum:Tb,encode_json_str_to_metadatum:Fb,encode_json_str_to_native_script:Vp,encode_json_str_to_plutus_datum:Ab,encrypt_with_password:Rb,get_deposit:Wb,get_implicit_input:$b,hash_auxiliary_data:Vb,hash_blake2b224:qb,hash_blake2b256:Up,hash_plutus_data:Cs,hash_script_data:Hb,hash_transaction:da,instantiate:kj,instantiateWithInstance:c0,isInstantiated:jj,make_daedalus_bootstrap_witness:Lb,make_icarus_bootstrap_witness:Ub,make_vkey_witness:Ss,min_ada_required:Kb,min_fee:Nb},Symbol.toStringTag,{value:"Module"}));let u;const Ya=new Array(128).fill(void 0);Ya.push(void 0,null,!0,!1);function l0(n){return Ya[n]}let Jo=Ya.length;function Ej(n){n<132||(Ya[n]=Jo,Jo=n)}function bt(n){const t=l0(n);return Ej(n),t}const d0=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});d0.decode();let Zo=null;function Ns(){return(Zo===null||Zo.byteLength===0)&&(Zo=new Uint8Array(u.memory.buffer)),Zo}function Ts(n,t){return d0.decode(Ns().subarray(n,n+t))}function Oj(n){Jo===Ya.length&&Ya.push(Ya.length+1);const t=Jo;return Jo=Ya[t],Ya[t]=n,t}function Hp(n){const t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){const _=n.description;return _==null?"Symbol":`Symbol(${_})`}if(t=="function"){const _=n.name;return typeof _=="string"&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(n)){const _=n.length;let i="[";_>0&&(i+=Hp(n[0]));for(let o=1;o<_;o++)i+=", "+Hp(n[o]);return i+="]",i}const e=/\[object ([^\]]+)\]/.exec(toString.call(n));let a;if(e.length>1)a=e[1];else return toString.call(n);if(a=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message} -${n.stack}`:a}let Z=0;const u0=new TextEncoder("utf-8"),zj=function(n,t){return u0.encodeInto(n,t)};function Yo(n,t,e){if(e===void 0){const c=u0.encode(n),d=t(c.length);return Ns().subarray(d,d+c.length).set(c),Z=c.length,d}let a=n.length,_=t(a);const i=Ns();let o=0;for(;o127)break;i[_+o]=c}if(o!==a){o!==0&&(n=n.slice(o)),_=e(_,a,a=o+n.length*3);const c=Ns().subarray(_+o,_+a),d=zj(n,c);o+=d.written}return Z=o,_}let tc=null;function k(){return(tc===null||tc.byteLength===0)&&(tc=new Int32Array(u.memory.buffer)),tc}function Y(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`);return n.ptr}function st(n,t){const e=t(n.length*1);return Ns().set(n,e/1),Z=n.length,e}function ft(n,t){return Ns().subarray(n/1,n/1+t)}let Ql=null;function Rj(){return(Ql===null||Ql.byteLength===0)&&(Ql=new Float64Array(u.memory.buffer)),Ql}function Ti(n){return n==null}const Gl=Object.freeze({EdDSA:0,0:"EdDSA",ChaCha20Poly1305:1,1:"ChaCha20Poly1305"}),p0=Object.freeze({OKP:0,0:"OKP",EC2:1,1:"EC2",Symmetric:2,2:"Symmetric"}),Pj=Object.freeze({CRV:0,0:"CRV",X:1,1:"X",Y:2,2:"Y",D:3,3:"D"}),Nj=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"}),Tj=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"}),Ij=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"}),Fj=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"}),Dj=Object.freeze({Int:0,0:"Int",Text:1,1:"Text"}),Aj=Object.freeze({COSESIGN:0,0:"COSESIGN",COSESIGN1:1,1:"COSESIGN1"}),Mj=Object.freeze({Signature:0,0:"Signature",Signature1:1,1:"Signature1",CounterSignature:2,2:"CounterSignature"}),f0=new FinalizationRegistry(n=>u.__wbg_bignum_free(n));class Ut{static __wrap(t){const e=Object.create(Ut.prototype);return e.ptr=t,f0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,f0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_bignum_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.bignum_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.bignum_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Ut.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_str(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=Yo(t,u.__wbindgen_malloc,u.__wbindgen_realloc),c=Z;u.bignum_from_str(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Ut.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}to_str(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.bignum_to_str(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];return Ts(t,e)}finally{u.__wbindgen_add_to_stack_pointer(16),u.__wbindgen_free(t,e)}}checked_mul(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16);Y(t,Ut),u.bignum_checked_mul(i,this.ptr,t.ptr);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Ut.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}checked_add(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16);Y(t,Ut),u.bignum_checked_add(i,this.ptr,t.ptr);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Ut.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}checked_sub(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16);Y(t,Ut),u.bignum_checked_sub(i,this.ptr,t.ptr);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Ut.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}}const w0=new FinalizationRegistry(n=>u.__wbg_cborarray_free(n));class t_{static __wrap(t){const e=Object.create(t_.prototype);return e.ptr=t,w0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,w0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborarray_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cborarray_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.cborarray_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return t_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.cborarray_new();return t_.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.cborarray_get(this.ptr,t);return jt.__wrap(e)}add(t){Y(t,jt),u.cborarray_add(this.ptr,t.ptr)}set_definite_encoding(t){u.cborarray_set_definite_encoding(this.ptr,t)}is_definite(){return u.cborarray_is_definite(this.ptr)!==0}}const g0=new FinalizationRegistry(n=>u.__wbg_cborobject_free(n));class J_{static __wrap(t){const e=Object.create(J_.prototype);return e.ptr=t,g0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,g0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborobject_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cborobject_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.cborobject_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return J_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.cborobject_new();return J_.__wrap(t)}len(){return u.cborobject_len(this.ptr)>>>0}insert(t,e){Y(t,jt),Y(e,jt);const a=u.cborobject_insert(this.ptr,t.ptr,e.ptr);return a===0?void 0:jt.__wrap(a)}get(t){Y(t,jt);const e=u.cborobject_get(this.ptr,t.ptr);return e===0?void 0:jt.__wrap(e)}keys(){const t=u.cborobject_keys(this.ptr);return t_.__wrap(t)}set_definite_encoding(t){u.cborobject_set_definite_encoding(this.ptr,t)}is_definite(){return u.cborobject_is_definite(this.ptr)!==0}}const h0=new FinalizationRegistry(n=>u.__wbg_cborspecial_free(n));class Bn{static __wrap(t){const e=Object.create(Bn.prototype);return e.ptr=t,h0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,h0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborspecial_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cborspecial_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.cborspecial_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Bn.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_bool(t){const e=u.cborspecial_new_bool(t);return Bn.__wrap(e)}static new_unassigned(t){const e=u.cborspecial_new_unassigned(t);return Bn.__wrap(e)}static new_break(){const t=u.cborspecial_new_break();return Bn.__wrap(t)}static new_null(){const t=u.cborspecial_new_null();return Bn.__wrap(t)}static new_undefined(){const t=u.cborspecial_new_undefined();return Bn.__wrap(t)}kind(){return u.cborspecial_kind(this.ptr)>>>0}as_bool(){const t=u.cborspecial_as_bool(this.ptr);return t===16777215?void 0:t!==0}as_float(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborspecial_as_float(a,this.ptr);var t=k()[a/4+0],e=Rj()[a/8+1];return t===0?void 0:e}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_unassigned(){const t=u.cborspecial_as_unassigned(this.ptr);return t===16777215?void 0:t}}const b0=new FinalizationRegistry(n=>u.__wbg_cborvalue_free(n));class jt{static __wrap(t){const e=Object.create(jt.prototype);return e.ptr=t,b0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,b0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cborvalue_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.cborvalue_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return jt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_int(t){Y(t,je);const e=u.cborvalue_new_int(t.ptr);return jt.__wrap(e)}static new_bytes(t){const e=st(t,u.__wbindgen_malloc),a=Z,_=u.cborvalue_new_bytes(e,a);return jt.__wrap(_)}static new_text(t){const e=Yo(t,u.__wbindgen_malloc,u.__wbindgen_realloc),a=Z,_=u.cborvalue_new_text(e,a);return jt.__wrap(_)}static new_array(t){Y(t,t_);const e=u.cborvalue_new_array(t.ptr);return jt.__wrap(e)}static new_object(t){Y(t,J_);const e=u.cborvalue_new_object(t.ptr);return jt.__wrap(e)}static new_tagged(t){Y(t,ei);const e=u.cborvalue_new_tagged(t.ptr);return jt.__wrap(e)}static new_special(t){Y(t,Bn);const e=u.cborvalue_new_special(t.ptr);return jt.__wrap(e)}static from_label(t){Y(t,gt);const e=u.cborvalue_from_label(t.ptr);return jt.__wrap(e)}kind(){return u.cborvalue_kind(this.ptr)>>>0}as_int(){const t=u.cborvalue_as_int(this.ptr);return t===0?void 0:je.__wrap(t)}as_bytes(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_as_bytes(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_text(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cborvalue_as_text(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=Ts(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}as_array(){const t=u.cborvalue_as_array(this.ptr);return t===0?void 0:t_.__wrap(t)}as_object(){const t=u.cborvalue_as_object(this.ptr);return t===0?void 0:J_.__wrap(t)}as_tagged(){const t=u.cborvalue_as_tagged(this.ptr);return t===0?void 0:ei.__wrap(t)}as_special(){const t=u.cborvalue_as_special(this.ptr);return t===0?void 0:Bn.__wrap(t)}}const y0=new FinalizationRegistry(n=>u.__wbg_coseencrypt_free(n));class Ii{static __wrap(t){const e=Object.create(Ii.prototype);return e.ptr=t,y0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,y0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coseencrypt_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.coseencrypt_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Ii.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Ht.__wrap(t)}ciphertext(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}recipients(){const t=u.coseencrypt_recipients(this.ptr);return Y_.__wrap(t)}static new(t,e,a){Y(t,Ht);var _=Ti(e)?0:st(e,u.__wbindgen_malloc),i=Z;Y(a,Y_);const o=u.coseencrypt_new(t.ptr,_,i,a.ptr);return Ii.__wrap(o)}}const m0=new FinalizationRegistry(n=>u.__wbg_coseencrypt0_free(n));class Fi{static __wrap(t){const e=Object.create(Fi.prototype);return e.ptr=t,m0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,m0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coseencrypt0_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.coseencrypt0_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Fi.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Ht.__wrap(t)}ciphertext(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){Y(t,Ht);var a=Ti(e)?0:st(e,u.__wbindgen_malloc),_=Z;const i=u.coseencrypt0_new(t.ptr,a,_);return Fi.__wrap(i)}}const v0=new FinalizationRegistry(n=>u.__wbg_cosekey_free(n));class e_{static __wrap(t){const e=Object.create(e_.prototype);return e.ptr=t,v0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,v0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosekey_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.cosekey_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return e_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_key_type(t){Y(t,gt),u.cosekey_set_key_type(this.ptr,t.ptr)}key_type(){const t=u.cosekey_key_type(this.ptr);return gt.__wrap(t)}set_key_id(t){const e=st(t,u.__wbindgen_malloc),a=Z;u.cosekey_set_key_id(this.ptr,e,a)}key_id(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_key_id(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_algorithm_id(t){Y(t,gt),u.cosekey_set_algorithm_id(this.ptr,t.ptr)}algorithm_id(){const t=u.cosekey_algorithm_id(this.ptr);return t===0?void 0:gt.__wrap(t)}set_key_ops(t){Y(t,sr),u.cosekey_set_key_ops(this.ptr,t.ptr)}key_ops(){const t=u.cosekey_key_ops(this.ptr);return t===0?void 0:sr.__wrap(t)}set_base_init_vector(t){const e=st(t,u.__wbindgen_malloc),a=Z;u.cosekey_set_base_init_vector(this.ptr,e,a)}base_init_vector(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_base_init_vector(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}header(t){Y(t,gt);const e=u.cosekey_header(this.ptr,t.ptr);return e===0?void 0:jt.__wrap(e)}set_header(t,e){try{const i=u.__wbindgen_add_to_stack_pointer(-16);Y(t,gt),Y(e,jt),u.cosekey_set_header(i,this.ptr,t.ptr,e.ptr);var a=k()[i/4+0],_=k()[i/4+1];if(_)throw bt(a)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){Y(t,gt);const e=u.cosekey_new(t.ptr);return e_.__wrap(e)}}const k0=new FinalizationRegistry(n=>u.__wbg_coserecipient_free(n));class Z_{static __wrap(t){const e=Object.create(Z_.prototype);return e.ptr=t,k0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,k0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coserecipient_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.coserecipient_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.coserecipient_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Z_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Ht.__wrap(t)}ciphertext(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){Y(t,Ht);var a=Ti(e)?0:st(e,u.__wbindgen_malloc),_=Z;const i=u.coseencrypt0_new(t.ptr,a,_);return Z_.__wrap(i)}}const x0=new FinalizationRegistry(n=>u.__wbg_coserecipients_free(n));class Y_{static __wrap(t){const e=Object.create(Y_.prototype);return e.ptr=t,x0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,x0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_coserecipients_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.coserecipients_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.coserecipients_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Y_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return Y_.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.coserecipients_get(this.ptr,t);return Z_.__wrap(e)}add(t){Y(t,Z_),u.coserecipients_add(this.ptr,t.ptr)}}const j0=new FinalizationRegistry(n=>u.__wbg_cosesign_free(n));class n_{static __wrap(t){const e=Object.create(n_.prototype);return e.ptr=t,j0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,j0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.cosesign_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return n_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Ht.__wrap(t)}payload(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}signatures(){const t=u.cosesign_signatures(this.ptr);return ir.__wrap(t)}static new(t,e,a){Y(t,Ht);var _=Ti(e)?0:st(e,u.__wbindgen_malloc),i=Z;Y(a,ir);const o=u.cosesign_new(t.ptr,_,i,a.ptr);return n_.__wrap(o)}}const S0=new FinalizationRegistry(n=>u.__wbg_cosesign1_free(n));class Vr{static __wrap(t){const e=Object.create(Vr.prototype);return e.ptr=t,S0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,S0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign1_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign1_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.cosesign1_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Vr.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Ht.__wrap(t)}payload(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.coseencrypt0_ciphertext(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}signature(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cosesign1_signature(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}signed_data(t,e){try{const h=u.__wbindgen_add_to_stack_pointer(-16);var a=Ti(t)?0:st(t,u.__wbindgen_malloc),_=Z,i=Ti(e)?0:st(e,u.__wbindgen_malloc),o=Z;u.cosesign1_signed_data(h,this.ptr,a,_,i,o);var c=k()[h/4+0],d=k()[h/4+1],f=k()[h/4+2];if(f)throw bt(d);return __.__wrap(c)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e,a){Y(t,Ht);var _=Ti(e)?0:st(e,u.__wbindgen_malloc),i=Z;const o=st(a,u.__wbindgen_malloc),c=Z,d=u.cosesign1_new(t.ptr,_,i,o,c);return Vr.__wrap(d)}}const C0=new FinalizationRegistry(n=>u.__wbg_cosesign1builder_free(n));class Is{static __wrap(t){const e=Object.create(Is.prototype);return e.ptr=t,C0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,C0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesign1builder_free(t)}static new(t,e,a){Y(t,Ht);const _=st(e,u.__wbindgen_malloc),i=Z,o=u.cosesign1builder_new(t.ptr,_,i,a);return Is.__wrap(o)}hash_payload(){u.cosesign1builder_hash_payload(this.ptr)}set_external_aad(t){const e=st(t,u.__wbindgen_malloc),a=Z;u.cosesign1builder_set_external_aad(this.ptr,e,a)}make_data_to_sign(){const t=u.cosesign1builder_make_data_to_sign(this.ptr);return __.__wrap(t)}build(t){const e=st(t,u.__wbindgen_malloc),a=Z,_=u.cosesign1builder_build(this.ptr,e,a);return Vr.__wrap(_)}}const E0=new FinalizationRegistry(n=>u.__wbg_cosesignbuilder_free(n));class ec{static __wrap(t){const e=Object.create(ec.prototype);return e.ptr=t,E0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,E0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignbuilder_free(t)}static new(t,e,a){Y(t,Ht);const _=st(e,u.__wbindgen_malloc),i=Z,o=u.cosesignbuilder_new(t.ptr,_,i,a);return ec.__wrap(o)}hash_payload(){u.cosesign1builder_hash_payload(this.ptr)}set_external_aad(t){const e=st(t,u.__wbindgen_malloc),a=Z;u.cosesign1builder_set_external_aad(this.ptr,e,a)}make_data_to_sign(){const t=u.cosesignbuilder_make_data_to_sign(this.ptr);return __.__wrap(t)}build(t){Y(t,ir);const e=u.cosesignbuilder_build(this.ptr,t.ptr);return n_.__wrap(e)}}const O0=new FinalizationRegistry(n=>u.__wbg_cosesignature_free(n));class r_{static __wrap(t){const e=Object.create(r_.prototype);return e.ptr=t,O0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,O0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignature_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignature_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.cosesignature_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return r_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}headers(){const t=u.coseencrypt0_headers(this.ptr);return Ht.__wrap(t)}signature(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignature_signature(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t,e){Y(t,Ht);const a=st(e,u.__wbindgen_malloc),_=Z,i=u.cosesignature_new(t.ptr,a,_);return r_.__wrap(i)}}const z0=new FinalizationRegistry(n=>u.__wbg_cosesignatures_free(n));class ir{static __wrap(t){const e=Object.create(ir.prototype);return e.ptr=t,z0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,z0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_cosesignatures_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.cosesignatures_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.cosesignatures_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return ir.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return ir.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.cosesignatures_get(this.ptr,t);return r_.__wrap(e)}add(t){Y(t,r_),u.cosesignatures_add(this.ptr,t.ptr)}}const R0=new FinalizationRegistry(n=>u.__wbg_countersignature_free(n));class a_{static __wrap(t){const e=Object.create(a_.prototype);return e.ptr=t,R0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,R0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_countersignature_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.countersignature_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.countersignature_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return a_.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_single(t){Y(t,r_);const e=u.countersignature_new_single(t.ptr);return a_.__wrap(e)}static new_multi(t){Y(t,ir);const e=u.countersignature_new_multi(t.ptr);return a_.__wrap(e)}signatures(){const t=u.countersignature_signatures(this.ptr);return ir.__wrap(t)}}const P0=new FinalizationRegistry(n=>u.__wbg_eddsa25519key_free(n));class nc{static __wrap(t){const e=Object.create(nc.prototype);return e.ptr=t,P0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,P0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_eddsa25519key_free(t)}static new(t){const e=st(t,u.__wbindgen_malloc),a=Z,_=u.eddsa25519key_new(e,a);return nc.__wrap(_)}set_private_key(t){const e=st(t,u.__wbindgen_malloc),a=Z;u.eddsa25519key_set_private_key(this.ptr,e,a)}is_for_signing(){u.eddsa25519key_is_for_signing(this.ptr)}is_for_verifying(){u.eddsa25519key_is_for_verifying(this.ptr)}build(){const t=u.eddsa25519key_build(this.ptr);return e_.__wrap(t)}}const N0=new FinalizationRegistry(n=>u.__wbg_headermap_free(n));class Ln{static __wrap(t){const e=Object.create(Ln.prototype);return e.ptr=t,N0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,N0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_headermap_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.headermap_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Ln.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_algorithm_id(t){Y(t,gt),u.headermap_set_algorithm_id(this.ptr,t.ptr)}algorithm_id(){const t=u.headermap_algorithm_id(this.ptr);return t===0?void 0:gt.__wrap(t)}set_criticality(t){Y(t,sr),u.headermap_set_criticality(this.ptr,t.ptr)}criticality(){const t=u.headermap_criticality(this.ptr);return t===0?void 0:sr.__wrap(t)}set_content_type(t){Y(t,gt),u.headermap_set_content_type(this.ptr,t.ptr)}content_type(){const t=u.headermap_content_type(this.ptr);return t===0?void 0:gt.__wrap(t)}set_key_id(t){const e=st(t,u.__wbindgen_malloc),a=Z;u.headermap_set_key_id(this.ptr,e,a)}key_id(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_key_id(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_init_vector(t){const e=st(t,u.__wbindgen_malloc),a=Z;u.cosekey_set_base_init_vector(this.ptr,e,a)}init_vector(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.cosekey_base_init_vector(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_partial_init_vector(t){const e=st(t,u.__wbindgen_malloc),a=Z;u.headermap_set_partial_init_vector(this.ptr,e,a)}partial_init_vector(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.headermap_partial_init_vector(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=ft(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_counter_signature(t){Y(t,a_),u.headermap_set_counter_signature(this.ptr,t.ptr)}counter_signature(){const t=u.headermap_counter_signature(this.ptr);return t===0?void 0:a_.__wrap(t)}header(t){Y(t,gt);const e=u.headermap_header(this.ptr,t.ptr);return e===0?void 0:jt.__wrap(e)}set_header(t,e){try{const i=u.__wbindgen_add_to_stack_pointer(-16);Y(t,gt),Y(e,jt),u.headermap_set_header(i,this.ptr,t.ptr,e.ptr);var a=k()[i/4+0],_=k()[i/4+1];if(_)throw bt(a)}finally{u.__wbindgen_add_to_stack_pointer(16)}}keys(){const t=u.headermap_keys(this.ptr);return sr.__wrap(t)}static new(){const t=u.headermap_new();return Ln.__wrap(t)}}const T0=new FinalizationRegistry(n=>u.__wbg_headers_free(n));class Ht{static __wrap(t){const e=Object.create(Ht.prototype);return e.ptr=t,T0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,T0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_headers_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.headers_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.headers_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Ht.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}protected(){const t=u.headers_protected(this.ptr);return Ze.__wrap(t)}unprotected(){const t=u.headers_unprotected(this.ptr);return Ln.__wrap(t)}static new(t,e){Y(t,Ze),Y(e,Ln);const a=u.headers_new(t.ptr,e.ptr);return Ht.__wrap(a)}}const I0=new FinalizationRegistry(n=>u.__wbg_int_free(n));class je{static __wrap(t){const e=Object.create(je.prototype);return e.ptr=t,I0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,I0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_int_free(t)}static new(t){Y(t,Ut);var e=t.__destroy_into_raw();const a=u.int_new(e);return je.__wrap(a)}static new_negative(t){Y(t,Ut);var e=t.__destroy_into_raw();const a=u.int_new_negative(e);return je.__wrap(a)}static new_i32(t){const e=u.int_new_i32(t);return je.__wrap(e)}is_positive(){return u.int_is_positive(this.ptr)!==0}as_positive(){const t=u.int_as_positive(this.ptr);return t===0?void 0:Ut.__wrap(t)}as_negative(){const t=u.int_as_negative(this.ptr);return t===0?void 0:Ut.__wrap(t)}as_i32(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.int_as_i32(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];return t===0?void 0:e}finally{u.__wbindgen_add_to_stack_pointer(16)}}}const F0=new FinalizationRegistry(n=>u.__wbg_label_free(n));class gt{static __wrap(t){const e=Object.create(gt.prototype);return e.ptr=t,F0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,F0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_label_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.label_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.label_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return gt.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_int(t){Y(t,je);const e=u.label_new_int(t.ptr);return gt.__wrap(e)}static new_text(t){const e=Yo(t,u.__wbindgen_malloc,u.__wbindgen_realloc),a=Z,_=u.label_new_text(e,a);return gt.__wrap(_)}kind(){return u.label_kind(this.ptr)>>>0}as_int(){const t=u.label_as_int(this.ptr);return t===0?void 0:je.__wrap(t)}as_text(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.label_as_text(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];let _;return t!==0&&(_=Ts(t,e).slice(),u.__wbindgen_free(t,e*1)),_}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_algorithm_id(t){const e=u.label_from_algorithm_id(t);return gt.__wrap(e)}static from_key_type(t){const e=u.label_from_key_type(t);return gt.__wrap(e)}static from_ec_key(t){const e=u.label_from_ec_key(t);return gt.__wrap(e)}static from_curve_type(t){const e=u.label_from_curve_type(t);return gt.__wrap(e)}static from_key_operation(t){const e=u.label_from_key_operation(t);return gt.__wrap(e)}}const D0=new FinalizationRegistry(n=>u.__wbg_labels_free(n));class sr{static __wrap(t){const e=Object.create(sr.prototype);return e.ptr=t,D0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,D0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_labels_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.labels_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.labels_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return sr.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(){const t=u.coserecipients_new();return sr.__wrap(t)}len(){return u.cborarray_len(this.ptr)>>>0}get(t){const e=u.labels_get(this.ptr,t);return gt.__wrap(e)}add(t){Y(t,gt),u.labels_add(this.ptr,t.ptr)}}const A0=new FinalizationRegistry(n=>u.__wbg_passwordencryption_free(n));class Fs{static __wrap(t){const e=Object.create(Fs.prototype);return e.ptr=t,A0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,A0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_passwordencryption_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.passwordencryption_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.passwordencryption_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Fs.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){Y(t,Fi);const e=u.passwordencryption_new(t.ptr);return Fs.__wrap(e)}}const M0=new FinalizationRegistry(n=>u.__wbg_protectedheadermap_free(n));class Ze{static __wrap(t){const e=Object.create(Ze.prototype);return e.ptr=t,M0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,M0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_protectedheadermap_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.protectedheadermap_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.protectedheadermap_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Ze.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_empty(){const t=u.protectedheadermap_new_empty();return Ze.__wrap(t)}static new(t){Y(t,Ln);const e=u.protectedheadermap_new(t.ptr);return Ze.__wrap(e)}deserialized_headers(){const t=u.protectedheadermap_deserialized_headers(this.ptr);return Ln.__wrap(t)}}const B0=new FinalizationRegistry(n=>u.__wbg_pubkeyencryption_free(n));class Ds{static __wrap(t){const e=Object.create(Ds.prototype);return e.ptr=t,B0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,B0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_pubkeyencryption_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.pubkeyencryption_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.pubkeyencryption_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return Ds.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new(t){Y(t,Ii);const e=u.pubkeyencryption_new(t.ptr);return Ds.__wrap(e)}}const L0=new FinalizationRegistry(n=>u.__wbg_sigstructure_free(n));class __{static __wrap(t){const e=Object.create(__.prototype);return e.ptr=t,L0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,L0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_sigstructure_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.sigstructure_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return __.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}context(){return u.sigstructure_context(this.ptr)>>>0}body_protected(){const t=u.sigstructure_body_protected(this.ptr);return Ze.__wrap(t)}sign_protected(){const t=u.sigstructure_sign_protected(this.ptr);return t===0?void 0:Ze.__wrap(t)}external_aad(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_external_aad(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}payload(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.sigstructure_payload(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}set_sign_protected(t){Y(t,Ze),u.sigstructure_set_sign_protected(this.ptr,t.ptr)}static new(t,e,a,_){Y(e,Ze);const i=st(a,u.__wbindgen_malloc),o=Z,c=st(_,u.__wbindgen_malloc),d=Z,f=u.sigstructure_new(t,e.ptr,i,o,c,d);return __.__wrap(f)}}const U0=new FinalizationRegistry(n=>u.__wbg_signedmessage_free(n));class ti{static __wrap(t){const e=Object.create(ti.prototype);return e.ptr=t,U0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,U0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_signedmessage_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.signedmessage_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.signedmessage_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return ti.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}static new_cose_sign(t){Y(t,n_);const e=u.signedmessage_new_cose_sign(t.ptr);return ti.__wrap(e)}static new_cose_sign1(t){Y(t,Vr);const e=u.signedmessage_new_cose_sign1(t.ptr);return ti.__wrap(e)}static from_user_facing_encoding(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=Yo(t,u.__wbindgen_malloc,u.__wbindgen_realloc),c=Z;u.signedmessage_from_user_facing_encoding(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return ti.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}to_user_facing_encoding(){try{const a=u.__wbindgen_add_to_stack_pointer(-16);u.signedmessage_to_user_facing_encoding(a,this.ptr);var t=k()[a/4+0],e=k()[a/4+1];return Ts(t,e)}finally{u.__wbindgen_add_to_stack_pointer(16),u.__wbindgen_free(t,e)}}kind(){return u.signedmessage_kind(this.ptr)>>>0}as_cose_sign(){const t=u.signedmessage_as_cose_sign(this.ptr);return t===0?void 0:n_.__wrap(t)}as_cose_sign1(){const t=u.signedmessage_as_cose_sign1(this.ptr);return t===0?void 0:Vr.__wrap(t)}}const V0=new FinalizationRegistry(n=>u.__wbg_taggedcbor_free(n));class ei{static __wrap(t){const e=Object.create(ei.prototype);return e.ptr=t,V0.register(e,e.ptr,e),e}__destroy_into_raw(){const t=this.ptr;return this.ptr=0,V0.unregister(this),t}free(){const t=this.__destroy_into_raw();u.__wbg_taggedcbor_free(t)}to_bytes(){try{const _=u.__wbindgen_add_to_stack_pointer(-16);u.taggedcbor_to_bytes(_,this.ptr);var t=k()[_/4+0],e=k()[_/4+1],a=ft(t,e).slice();return u.__wbindgen_free(t,e*1),a}finally{u.__wbindgen_add_to_stack_pointer(16)}}static from_bytes(t){try{const i=u.__wbindgen_add_to_stack_pointer(-16),o=st(t,u.__wbindgen_malloc),c=Z;u.taggedcbor_from_bytes(i,o,c);var e=k()[i/4+0],a=k()[i/4+1],_=k()[i/4+2];if(_)throw bt(a);return ei.__wrap(e)}finally{u.__wbindgen_add_to_stack_pointer(16)}}tag(){const t=u.taggedcbor_tag(this.ptr);return Ut.__wrap(t)}value(){const t=u.taggedcbor_value(this.ptr);return jt.__wrap(t)}static new(t,e){Y(t,Ut);var a=t.__destroy_into_raw();Y(e,jt);const _=u.taggedcbor_new(a,e.ptr);return ei.__wrap(_)}}const Xl={__wbindgen_placeholder__:{__wbindgen_object_drop_ref:function(n){bt(n)},__wbindgen_string_new:function(n,t){const e=Ts(n,t);return Oj(e)},__wbindgen_debug_string:function(n,t){const e=Hp(l0(t)),a=Yo(e,u.__wbindgen_malloc,u.__wbindgen_realloc),_=Z;k()[n/4+1]=_,k()[n/4+0]=a},__wbindgen_throw:function(n,t){throw new Error(Ts(n,t))}}};async function Bj(n){return(await q0(n)).exports}let rc,Jl;function q0(n){return rc!=null?Promise.resolve(rc):(Jl==null&&(Jl=(async()=>{try{const t=(await Vj(n??{})).instance;return u=t.exports,tc=new Int32Array(u.memory.buffer),Zo=new Uint8Array(u.memory.buffer),rc={instance:t,exports:Lj()},rc}finally{Jl=null}})()),Jl)}function Lj(){return{BigNum:Ut,CBORArray:t_,CBORObject:J_,CBORSpecial:Bn,CBORValue:jt,COSEEncrypt:Ii,COSEEncrypt0:Fi,COSEKey:e_,COSERecipient:Z_,COSERecipients:Y_,COSESign:n_,COSESign1:Vr,COSESign1Builder:Is,COSESignBuilder:ec,COSESignature:r_,COSESignatures:ir,CounterSignature:a_,EdDSA25519Key:nc,HeaderMap:Ln,Headers:Ht,Int:je,Label:gt,Labels:sr,PasswordEncryption:Fs,ProtectedHeaderMap:Ze,PubKeyEncryption:Ds,SigStructure:__,SignedMessage:ti,TaggedCBOR:ei}}function Uj(){return rc!=null}async function Vj(n){var _,i,o;const t=import.meta.url.includes("_frsh")?n.url:new URL("/aiken-ide/assets/cardano_message_signing_bg-BCvojIzl.wasm",import.meta.url),e=n.decompress,a=t.protocol==="file:";if(((i=(_=globalThis.process)==null?void 0:_.versions)==null?void 0:i.node)!=null&&a){const c=fs.readFileSync(t);return WebAssembly.instantiate(e?e(c):c,Xl)}switch(t.protocol){case"":case"chrome-extension:":case"file:":case"https:":case"http:":{if(a){if(typeof Deno!="object")throw new Error("file urls are not supported in this environment");"permissions"in Deno&&await Deno.permissions.request({name:"read",path:t})}else typeof Deno=="object"&&"permissions"in Deno&&await Deno.permissions.request({name:"net",host:t.host});const c=await fetch(t);if(e){const d=new Uint8Array(await c.arrayBuffer());return WebAssembly.instantiate(e(d),Xl)}return a||(o=c.headers.get("content-type"))!=null&&o.toLowerCase().startsWith("application/wasm")?WebAssembly.instantiateStreaming(c,Xl):WebAssembly.instantiate(await c.arrayBuffer(),Xl)}default:throw new Error(`Unsupported protocol: ${t.protocol}`)}}const qj=Object.freeze(Object.defineProperty({__proto__:null,AlgorithmId:Gl,BigNum:Ut,CBORArray:t_,CBORObject:J_,CBORSpecial:Bn,CBORSpecialType:Ij,CBORValue:jt,CBORValueKind:Fj,COSEEncrypt:Ii,COSEEncrypt0:Fi,COSEKey:e_,COSERecipient:Z_,COSERecipients:Y_,COSESign:n_,COSESign1:Vr,COSESign1Builder:Is,COSESignBuilder:ec,COSESignature:r_,COSESignatures:ir,CounterSignature:a_,CurveType:Nj,ECKey:Pj,EdDSA25519Key:nc,HeaderMap:Ln,Headers:Ht,Int:je,KeyOperation:Tj,KeyType:p0,Label:gt,LabelKind:Dj,Labels:sr,PasswordEncryption:Fs,ProtectedHeaderMap:Ze,PubKeyEncryption:Ds,SigContext:Mj,SigStructure:__,SignedMessage:ti,SignedMessageKind:Aj,TaggedCBOR:ei,instantiate:Bj,instantiateWithInstance:q0,isInstantiated:Uj},Symbol.toStringTag,{value:"Module"}));Object.hasOwn||Object.defineProperty(Object,"hasOwn",{value:function(n,t){if(n==null)throw new TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(n),t)},configurable:!0,enumerable:!1,writable:!0});var Hj={name:"lucid-cardano",version:"0.10.7",license:"MIT",author:"Alessandro Konrad",description:"Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.",repository:"https://github.com/spacebudz/lucid"};async function H0(n,t){try{await n.instantiate({url:new URL(t,`https://deno.land/x/lucid@${Hj.version}/src/core/libs/`)})}catch{}}await Promise.all([H0(Cj,"cardano_multiplatform_lib/cardano_multiplatform_lib_bg.wasm"),H0(qj,"cardano_message_signing/cardano_message_signing_bg.wasm")]);function $j(n){let t=tr.new(),e=pn.new();Object.values(n.PlutusV1).forEach((_,i)=>{e.set(i,re.new(S.from_str(_.toString())))}),t.insert(We.new_plutus_v1(),e);let a=pn.new_plutus_v2();return Object.values(n.PlutusV2||[]).forEach((_,i)=>{a.set(i,re.new(S.from_str(_.toString())))}),t.insert(We.new_plutus_v2(),a),t}var Wj={minFeeA:44,minFeeB:155381,maxTxSize:16384,maxValSize:5e3,keyDeposit:2000000n,poolDeposit:500000000n,priceMem:.0577,priceStep:721e-7,maxTxExMem:14000000n,maxTxExSteps:10000000000n,coinsPerUtxoByte:4310n,collateralPercentage:150,maxCollateralInputs:3,costModels:{PlutusV1:{"addInteger-cpu-arguments-intercept":205665,"addInteger-cpu-arguments-slope":812,"addInteger-memory-arguments-intercept":1,"addInteger-memory-arguments-slope":1,"appendByteString-cpu-arguments-intercept":1e3,"appendByteString-cpu-arguments-slope":571,"appendByteString-memory-arguments-intercept":0,"appendByteString-memory-arguments-slope":1,"appendString-cpu-arguments-intercept":1e3,"appendString-cpu-arguments-slope":24177,"appendString-memory-arguments-intercept":4,"appendString-memory-arguments-slope":1,"bData-cpu-arguments":1e3,"bData-memory-arguments":32,"blake2b_256-cpu-arguments-intercept":117366,"blake2b_256-cpu-arguments-slope":10475,"blake2b_256-memory-arguments":4,"cekApplyCost-exBudgetCPU":23e3,"cekApplyCost-exBudgetMemory":100,"cekBuiltinCost-exBudgetCPU":23e3,"cekBuiltinCost-exBudgetMemory":100,"cekConstCost-exBudgetCPU":23e3,"cekConstCost-exBudgetMemory":100,"cekDelayCost-exBudgetCPU":23e3,"cekDelayCost-exBudgetMemory":100,"cekForceCost-exBudgetCPU":23e3,"cekForceCost-exBudgetMemory":100,"cekLamCost-exBudgetCPU":23e3,"cekLamCost-exBudgetMemory":100,"cekStartupCost-exBudgetCPU":100,"cekStartupCost-exBudgetMemory":100,"cekVarCost-exBudgetCPU":23e3,"cekVarCost-exBudgetMemory":100,"chooseData-cpu-arguments":19537,"chooseData-memory-arguments":32,"chooseList-cpu-arguments":175354,"chooseList-memory-arguments":32,"chooseUnit-cpu-arguments":46417,"chooseUnit-memory-arguments":4,"consByteString-cpu-arguments-intercept":221973,"consByteString-cpu-arguments-slope":511,"consByteString-memory-arguments-intercept":0,"consByteString-memory-arguments-slope":1,"constrData-cpu-arguments":89141,"constrData-memory-arguments":32,"decodeUtf8-cpu-arguments-intercept":497525,"decodeUtf8-cpu-arguments-slope":14068,"decodeUtf8-memory-arguments-intercept":4,"decodeUtf8-memory-arguments-slope":2,"divideInteger-cpu-arguments-constant":196500,"divideInteger-cpu-arguments-model-arguments-intercept":453240,"divideInteger-cpu-arguments-model-arguments-slope":220,"divideInteger-memory-arguments-intercept":0,"divideInteger-memory-arguments-minimum":1,"divideInteger-memory-arguments-slope":1,"encodeUtf8-cpu-arguments-intercept":1e3,"encodeUtf8-cpu-arguments-slope":28662,"encodeUtf8-memory-arguments-intercept":4,"encodeUtf8-memory-arguments-slope":2,"equalsByteString-cpu-arguments-constant":245e3,"equalsByteString-cpu-arguments-intercept":216773,"equalsByteString-cpu-arguments-slope":62,"equalsByteString-memory-arguments":1,"equalsData-cpu-arguments-intercept":1060367,"equalsData-cpu-arguments-slope":12586,"equalsData-memory-arguments":1,"equalsInteger-cpu-arguments-intercept":208512,"equalsInteger-cpu-arguments-slope":421,"equalsInteger-memory-arguments":1,"equalsString-cpu-arguments-constant":187e3,"equalsString-cpu-arguments-intercept":1e3,"equalsString-cpu-arguments-slope":52998,"equalsString-memory-arguments":1,"fstPair-cpu-arguments":80436,"fstPair-memory-arguments":32,"headList-cpu-arguments":43249,"headList-memory-arguments":32,"iData-cpu-arguments":1e3,"iData-memory-arguments":32,"ifThenElse-cpu-arguments":80556,"ifThenElse-memory-arguments":1,"indexByteString-cpu-arguments":57667,"indexByteString-memory-arguments":4,"lengthOfByteString-cpu-arguments":1e3,"lengthOfByteString-memory-arguments":10,"lessThanByteString-cpu-arguments-intercept":197145,"lessThanByteString-cpu-arguments-slope":156,"lessThanByteString-memory-arguments":1,"lessThanEqualsByteString-cpu-arguments-intercept":197145,"lessThanEqualsByteString-cpu-arguments-slope":156,"lessThanEqualsByteString-memory-arguments":1,"lessThanEqualsInteger-cpu-arguments-intercept":204924,"lessThanEqualsInteger-cpu-arguments-slope":473,"lessThanEqualsInteger-memory-arguments":1,"lessThanInteger-cpu-arguments-intercept":208896,"lessThanInteger-cpu-arguments-slope":511,"lessThanInteger-memory-arguments":1,"listData-cpu-arguments":52467,"listData-memory-arguments":32,"mapData-cpu-arguments":64832,"mapData-memory-arguments":32,"mkCons-cpu-arguments":65493,"mkCons-memory-arguments":32,"mkNilData-cpu-arguments":22558,"mkNilData-memory-arguments":32,"mkNilPairData-cpu-arguments":16563,"mkNilPairData-memory-arguments":32,"mkPairData-cpu-arguments":76511,"mkPairData-memory-arguments":32,"modInteger-cpu-arguments-constant":196500,"modInteger-cpu-arguments-model-arguments-intercept":453240,"modInteger-cpu-arguments-model-arguments-slope":220,"modInteger-memory-arguments-intercept":0,"modInteger-memory-arguments-minimum":1,"modInteger-memory-arguments-slope":1,"multiplyInteger-cpu-arguments-intercept":69522,"multiplyInteger-cpu-arguments-slope":11687,"multiplyInteger-memory-arguments-intercept":0,"multiplyInteger-memory-arguments-slope":1,"nullList-cpu-arguments":60091,"nullList-memory-arguments":32,"quotientInteger-cpu-arguments-constant":196500,"quotientInteger-cpu-arguments-model-arguments-intercept":453240,"quotientInteger-cpu-arguments-model-arguments-slope":220,"quotientInteger-memory-arguments-intercept":0,"quotientInteger-memory-arguments-minimum":1,"quotientInteger-memory-arguments-slope":1,"remainderInteger-cpu-arguments-constant":196500,"remainderInteger-cpu-arguments-model-arguments-intercept":453240,"remainderInteger-cpu-arguments-model-arguments-slope":220,"remainderInteger-memory-arguments-intercept":0,"remainderInteger-memory-arguments-minimum":1,"remainderInteger-memory-arguments-slope":1,"sha2_256-cpu-arguments-intercept":806990,"sha2_256-cpu-arguments-slope":30482,"sha2_256-memory-arguments":4,"sha3_256-cpu-arguments-intercept":1927926,"sha3_256-cpu-arguments-slope":82523,"sha3_256-memory-arguments":4,"sliceByteString-cpu-arguments-intercept":265318,"sliceByteString-cpu-arguments-slope":0,"sliceByteString-memory-arguments-intercept":4,"sliceByteString-memory-arguments-slope":0,"sndPair-cpu-arguments":85931,"sndPair-memory-arguments":32,"subtractInteger-cpu-arguments-intercept":205665,"subtractInteger-cpu-arguments-slope":812,"subtractInteger-memory-arguments-intercept":1,"subtractInteger-memory-arguments-slope":1,"tailList-cpu-arguments":41182,"tailList-memory-arguments":32,"trace-cpu-arguments":212342,"trace-memory-arguments":32,"unBData-cpu-arguments":31220,"unBData-memory-arguments":32,"unConstrData-cpu-arguments":32696,"unConstrData-memory-arguments":32,"unIData-cpu-arguments":43357,"unIData-memory-arguments":32,"unListData-cpu-arguments":32247,"unListData-memory-arguments":32,"unMapData-cpu-arguments":38314,"unMapData-memory-arguments":32,"verifyEd25519Signature-cpu-arguments-intercept":9462713,"verifyEd25519Signature-cpu-arguments-slope":1021,"verifyEd25519Signature-memory-arguments":10},PlutusV2:{"addInteger-cpu-arguments-intercept":205665,"addInteger-cpu-arguments-slope":812,"addInteger-memory-arguments-intercept":1,"addInteger-memory-arguments-slope":1,"appendByteString-cpu-arguments-intercept":1e3,"appendByteString-cpu-arguments-slope":571,"appendByteString-memory-arguments-intercept":0,"appendByteString-memory-arguments-slope":1,"appendString-cpu-arguments-intercept":1e3,"appendString-cpu-arguments-slope":24177,"appendString-memory-arguments-intercept":4,"appendString-memory-arguments-slope":1,"bData-cpu-arguments":1e3,"bData-memory-arguments":32,"blake2b_256-cpu-arguments-intercept":117366,"blake2b_256-cpu-arguments-slope":10475,"blake2b_256-memory-arguments":4,"cekApplyCost-exBudgetCPU":23e3,"cekApplyCost-exBudgetMemory":100,"cekBuiltinCost-exBudgetCPU":23e3,"cekBuiltinCost-exBudgetMemory":100,"cekConstCost-exBudgetCPU":23e3,"cekConstCost-exBudgetMemory":100,"cekDelayCost-exBudgetCPU":23e3,"cekDelayCost-exBudgetMemory":100,"cekForceCost-exBudgetCPU":23e3,"cekForceCost-exBudgetMemory":100,"cekLamCost-exBudgetCPU":23e3,"cekLamCost-exBudgetMemory":100,"cekStartupCost-exBudgetCPU":100,"cekStartupCost-exBudgetMemory":100,"cekVarCost-exBudgetCPU":23e3,"cekVarCost-exBudgetMemory":100,"chooseData-cpu-arguments":19537,"chooseData-memory-arguments":32,"chooseList-cpu-arguments":175354,"chooseList-memory-arguments":32,"chooseUnit-cpu-arguments":46417,"chooseUnit-memory-arguments":4,"consByteString-cpu-arguments-intercept":221973,"consByteString-cpu-arguments-slope":511,"consByteString-memory-arguments-intercept":0,"consByteString-memory-arguments-slope":1,"constrData-cpu-arguments":89141,"constrData-memory-arguments":32,"decodeUtf8-cpu-arguments-intercept":497525,"decodeUtf8-cpu-arguments-slope":14068,"decodeUtf8-memory-arguments-intercept":4,"decodeUtf8-memory-arguments-slope":2,"divideInteger-cpu-arguments-constant":196500,"divideInteger-cpu-arguments-model-arguments-intercept":453240,"divideInteger-cpu-arguments-model-arguments-slope":220,"divideInteger-memory-arguments-intercept":0,"divideInteger-memory-arguments-minimum":1,"divideInteger-memory-arguments-slope":1,"encodeUtf8-cpu-arguments-intercept":1e3,"encodeUtf8-cpu-arguments-slope":28662,"encodeUtf8-memory-arguments-intercept":4,"encodeUtf8-memory-arguments-slope":2,"equalsByteString-cpu-arguments-constant":245e3,"equalsByteString-cpu-arguments-intercept":216773,"equalsByteString-cpu-arguments-slope":62,"equalsByteString-memory-arguments":1,"equalsData-cpu-arguments-intercept":1060367,"equalsData-cpu-arguments-slope":12586,"equalsData-memory-arguments":1,"equalsInteger-cpu-arguments-intercept":208512,"equalsInteger-cpu-arguments-slope":421,"equalsInteger-memory-arguments":1,"equalsString-cpu-arguments-constant":187e3,"equalsString-cpu-arguments-intercept":1e3,"equalsString-cpu-arguments-slope":52998,"equalsString-memory-arguments":1,"fstPair-cpu-arguments":80436,"fstPair-memory-arguments":32,"headList-cpu-arguments":43249,"headList-memory-arguments":32,"iData-cpu-arguments":1e3,"iData-memory-arguments":32,"ifThenElse-cpu-arguments":80556,"ifThenElse-memory-arguments":1,"indexByteString-cpu-arguments":57667,"indexByteString-memory-arguments":4,"lengthOfByteString-cpu-arguments":1e3,"lengthOfByteString-memory-arguments":10,"lessThanByteString-cpu-arguments-intercept":197145,"lessThanByteString-cpu-arguments-slope":156,"lessThanByteString-memory-arguments":1,"lessThanEqualsByteString-cpu-arguments-intercept":197145,"lessThanEqualsByteString-cpu-arguments-slope":156,"lessThanEqualsByteString-memory-arguments":1,"lessThanEqualsInteger-cpu-arguments-intercept":204924,"lessThanEqualsInteger-cpu-arguments-slope":473,"lessThanEqualsInteger-memory-arguments":1,"lessThanInteger-cpu-arguments-intercept":208896,"lessThanInteger-cpu-arguments-slope":511,"lessThanInteger-memory-arguments":1,"listData-cpu-arguments":52467,"listData-memory-arguments":32,"mapData-cpu-arguments":64832,"mapData-memory-arguments":32,"mkCons-cpu-arguments":65493,"mkCons-memory-arguments":32,"mkNilData-cpu-arguments":22558,"mkNilData-memory-arguments":32,"mkNilPairData-cpu-arguments":16563,"mkNilPairData-memory-arguments":32,"mkPairData-cpu-arguments":76511,"mkPairData-memory-arguments":32,"modInteger-cpu-arguments-constant":196500,"modInteger-cpu-arguments-model-arguments-intercept":453240,"modInteger-cpu-arguments-model-arguments-slope":220,"modInteger-memory-arguments-intercept":0,"modInteger-memory-arguments-minimum":1,"modInteger-memory-arguments-slope":1,"multiplyInteger-cpu-arguments-intercept":69522,"multiplyInteger-cpu-arguments-slope":11687,"multiplyInteger-memory-arguments-intercept":0,"multiplyInteger-memory-arguments-slope":1,"nullList-cpu-arguments":60091,"nullList-memory-arguments":32,"quotientInteger-cpu-arguments-constant":196500,"quotientInteger-cpu-arguments-model-arguments-intercept":453240,"quotientInteger-cpu-arguments-model-arguments-slope":220,"quotientInteger-memory-arguments-intercept":0,"quotientInteger-memory-arguments-minimum":1,"quotientInteger-memory-arguments-slope":1,"remainderInteger-cpu-arguments-constant":196500,"remainderInteger-cpu-arguments-model-arguments-intercept":453240,"remainderInteger-cpu-arguments-model-arguments-slope":220,"remainderInteger-memory-arguments-intercept":0,"remainderInteger-memory-arguments-minimum":1,"remainderInteger-memory-arguments-slope":1,"serialiseData-cpu-arguments-intercept":1159724,"serialiseData-cpu-arguments-slope":392670,"serialiseData-memory-arguments-intercept":0,"serialiseData-memory-arguments-slope":2,"sha2_256-cpu-arguments-intercept":806990,"sha2_256-cpu-arguments-slope":30482,"sha2_256-memory-arguments":4,"sha3_256-cpu-arguments-intercept":1927926,"sha3_256-cpu-arguments-slope":82523,"sha3_256-memory-arguments":4,"sliceByteString-cpu-arguments-intercept":265318,"sliceByteString-cpu-arguments-slope":0,"sliceByteString-memory-arguments-intercept":4,"sliceByteString-memory-arguments-slope":0,"sndPair-cpu-arguments":85931,"sndPair-memory-arguments":32,"subtractInteger-cpu-arguments-intercept":205665,"subtractInteger-cpu-arguments-slope":812,"subtractInteger-memory-arguments-intercept":1,"subtractInteger-memory-arguments-slope":1,"tailList-cpu-arguments":41182,"tailList-memory-arguments":32,"trace-cpu-arguments":212342,"trace-memory-arguments":32,"unBData-cpu-arguments":31220,"unBData-memory-arguments":32,"unConstrData-cpu-arguments":32696,"unConstrData-memory-arguments":32,"unIData-cpu-arguments":43357,"unIData-memory-arguments":32,"unListData-cpu-arguments":32247,"unListData-memory-arguments":32,"unMapData-cpu-arguments":38314,"unMapData-memory-arguments":32,"verifyEcdsaSecp256k1Signature-cpu-arguments":35892428,"verifyEcdsaSecp256k1Signature-memory-arguments":10,"verifyEd25519Signature-cpu-arguments-intercept":57996947,"verifyEd25519Signature-cpu-arguments-slope":18975,"verifyEd25519Signature-memory-arguments":10,"verifySchnorrSecp256k1Signature-cpu-arguments-intercept":38887044,"verifySchnorrSecp256k1Signature-cpu-arguments-slope":32947,"verifySchnorrSecp256k1Signature-memory-arguments":10}}},$0=new TextEncoder().encode("0123456789abcdef");function Kj(n){return new Error("encoding/hex: invalid byte: "+new TextDecoder().decode(new Uint8Array([n])))}function Qj(){return new Error("encoding/hex: odd length hex string")}function $p(n){if(48<=n&&n<=57)return n-48;if(97<=n&&n<=102)return n-97+10;if(65<=n&&n<=70)return n-65+10;throw Kj(n)}function Gj(n){return n*2}function Xj(n){let t=new Uint8Array(Gj(n.length));for(let e=0;e>4],t[e*2+1]=$0[a&15]}return t}function Jj(n){return new TextDecoder().decode(Xj(n))}function Zj(n){let t=new Uint8Array(Yj(n.length));for(let e=0;e>>1}function t3(n){return Zj(new TextEncoder().encode(n))}var ot=function(n,t,e,a,_){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!_)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?n!==t||!_:!t.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?_.call(n,e):_?_.value=e:t.set(n,e),e},K=function(n,t,e,a){if(e==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?n!==t||!a:!t.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return e==="m"?a:e==="a"?a.call(n):a?a.value:t.get(n)},ni,Di,or,As,ac,qr,Hr,$r,Wr,Kr,Qr,Gr,Xr,Ai,Ms,ri,Zl,ai,X="0123456789abcdef".split(""),e3=[-2147483648,8388608,32768,128],cr=[24,16,8,0],Yl=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],ie=[],n3=class{constructor(n=!1,t=!1){ni.set(this,void 0),Di.set(this,void 0),or.set(this,void 0),As.set(this,void 0),ac.set(this,void 0),qr.set(this,void 0),Hr.set(this,void 0),$r.set(this,void 0),Wr.set(this,void 0),Kr.set(this,void 0),Qr.set(this,void 0),Gr.set(this,void 0),Xr.set(this,void 0),Ai.set(this,void 0),Ms.set(this,void 0),ri.set(this,void 0),Zl.set(this,0),ai.set(this,void 0),this.init(n,t)}init(n,t){t?(ie[0]=ie[16]=ie[1]=ie[2]=ie[3]=ie[4]=ie[5]=ie[6]=ie[7]=ie[8]=ie[9]=ie[10]=ie[11]=ie[12]=ie[13]=ie[14]=ie[15]=0,ot(this,Di,ie,"f")):ot(this,Di,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"f"),n?(ot(this,qr,3238371032,"f"),ot(this,Hr,914150663,"f"),ot(this,$r,812702999,"f"),ot(this,Wr,4144912697,"f"),ot(this,Kr,4290775857,"f"),ot(this,Qr,1750603025,"f"),ot(this,Gr,1694076839,"f"),ot(this,Xr,3204075428,"f")):(ot(this,qr,1779033703,"f"),ot(this,Hr,3144134277,"f"),ot(this,$r,1013904242,"f"),ot(this,Wr,2773480762,"f"),ot(this,Kr,1359893119,"f"),ot(this,Qr,2600822924,"f"),ot(this,Gr,528734635,"f"),ot(this,Xr,1541459225,"f")),ot(this,ni,ot(this,ai,ot(this,or,ot(this,Ms,0,"f"),"f"),"f"),"f"),ot(this,As,ot(this,Ai,!1,"f"),"f"),ot(this,ac,!0,"f"),ot(this,ri,n,"f")}update(n){if(K(this,As,"f"))return this;let t;n instanceof ArrayBuffer?t=new Uint8Array(n):t=n;let e=0,a=t.length,_=K(this,Di,"f");for(;e>2]|=t[e]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|o&63)<=57344?(_[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|o&63)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|o&63)<=64?(ot(this,ni,_[16],"f"),ot(this,ai,i-64,"f"),this.hash(),ot(this,Ai,!0,"f")):ot(this,ai,i,"f")}return K(this,or,"f")>4294967295&&(ot(this,Ms,K(this,Ms,"f")+(K(this,or,"f")/4294967296<<0),"f"),ot(this,or,K(this,or,"f")%4294967296,"f")),this}finalize(){if(K(this,As,"f"))return;ot(this,As,!0,"f");let n=K(this,Di,"f"),t=K(this,Zl,"f");n[16]=K(this,ni,"f"),n[t>>2]|=e3[t&3],ot(this,ni,n[16],"f"),t>=56&&(K(this,Ai,"f")||this.hash(),n[0]=K(this,ni,"f"),n[16]=n[1]=n[2]=n[3]=n[4]=n[5]=n[6]=n[7]=n[8]=n[9]=n[10]=n[11]=n[12]=n[13]=n[14]=n[15]=0),n[14]=K(this,Ms,"f")<<3|K(this,or,"f")>>>29,n[15]=K(this,or,"f")<<3,this.hash()}hash(){let n=K(this,qr,"f"),t=K(this,Hr,"f"),e=K(this,$r,"f"),a=K(this,Wr,"f"),_=K(this,Kr,"f"),i=K(this,Qr,"f"),o=K(this,Gr,"f"),c=K(this,Xr,"f"),d=K(this,Di,"f"),f,h,v,y,x,O,P,A,m,b;for(let g=16;g<64;++g)y=d[g-15],f=(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3,y=d[g-2],h=(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10,d[g]=d[g-16]+f+d[g-7]+h<<0;b=t&e;for(let g=0;g<64;g+=4)K(this,ac,"f")?(K(this,ri,"f")?(P=300032,y=d[0]-1413257819,c=y-150054599<<0,a=y+24177077<<0):(P=704751109,y=d[0]-210244248,c=y-1521486534<<0,a=y+143694565<<0),ot(this,ac,!1,"f")):(f=(n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10),h=(_>>>6|_<<26)^(_>>>11|_<<21)^(_>>>25|_<<7),P=n&t,v=P^n&e^b,O=_&i^~_&o,y=c+h+O+Yl[g]+d[g],x=f+v,c=a+y<<0,a=y+x<<0),f=(a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10),h=(c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7),A=a&n,v=A^a&t^P,O=c&_^~c&i,y=o+h+O+Yl[g+1]+d[g+1],x=f+v,o=e+y<<0,e=y+x<<0,f=(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10),h=(o>>>6|o<<26)^(o>>>11|o<<21)^(o>>>25|o<<7),m=e&a,v=m^e&n^A,O=o&c^~o&_,y=i+h+O+Yl[g+2]+d[g+2],x=f+v,i=t+y<<0,t=y+x<<0,f=(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10),h=(i>>>6|i<<26)^(i>>>11|i<<21)^(i>>>25|i<<7),b=t&e,v=b^t&a^m,O=i&o^~i&c,y=_+h+O+Yl[g+3]+d[g+3],x=f+v,_=n+y<<0,n=y+x<<0;ot(this,qr,K(this,qr,"f")+n<<0,"f"),ot(this,Hr,K(this,Hr,"f")+t<<0,"f"),ot(this,$r,K(this,$r,"f")+e<<0,"f"),ot(this,Wr,K(this,Wr,"f")+a<<0,"f"),ot(this,Kr,K(this,Kr,"f")+_<<0,"f"),ot(this,Qr,K(this,Qr,"f")+i<<0,"f"),ot(this,Gr,K(this,Gr,"f")+o<<0,"f"),ot(this,Xr,K(this,Xr,"f")+c<<0,"f")}hex(){this.finalize();let n=K(this,qr,"f"),t=K(this,Hr,"f"),e=K(this,$r,"f"),a=K(this,Wr,"f"),_=K(this,Kr,"f"),i=K(this,Qr,"f"),o=K(this,Gr,"f"),c=K(this,Xr,"f"),d=X[n>>28&15]+X[n>>24&15]+X[n>>20&15]+X[n>>16&15]+X[n>>12&15]+X[n>>8&15]+X[n>>4&15]+X[n&15]+X[t>>28&15]+X[t>>24&15]+X[t>>20&15]+X[t>>16&15]+X[t>>12&15]+X[t>>8&15]+X[t>>4&15]+X[t&15]+X[e>>28&15]+X[e>>24&15]+X[e>>20&15]+X[e>>16&15]+X[e>>12&15]+X[e>>8&15]+X[e>>4&15]+X[e&15]+X[a>>28&15]+X[a>>24&15]+X[a>>20&15]+X[a>>16&15]+X[a>>12&15]+X[a>>8&15]+X[a>>4&15]+X[a&15]+X[_>>28&15]+X[_>>24&15]+X[_>>20&15]+X[_>>16&15]+X[_>>12&15]+X[_>>8&15]+X[_>>4&15]+X[_&15]+X[i>>28&15]+X[i>>24&15]+X[i>>20&15]+X[i>>16&15]+X[i>>12&15]+X[i>>8&15]+X[i>>4&15]+X[i&15]+X[o>>28&15]+X[o>>24&15]+X[o>>20&15]+X[o>>16&15]+X[o>>12&15]+X[o>>8&15]+X[o>>4&15]+X[o&15];return K(this,ri,"f")||(d+=X[c>>28&15]+X[c>>24&15]+X[c>>20&15]+X[c>>16&15]+X[c>>12&15]+X[c>>8&15]+X[c>>4&15]+X[c&15]),d}toString(){return this.hex()}digest(){this.finalize();let n=K(this,qr,"f"),t=K(this,Hr,"f"),e=K(this,$r,"f"),a=K(this,Wr,"f"),_=K(this,Kr,"f"),i=K(this,Qr,"f"),o=K(this,Gr,"f"),c=K(this,Xr,"f"),d=[n>>24&255,n>>16&255,n>>8&255,n&255,t>>24&255,t>>16&255,t>>8&255,t&255,e>>24&255,e>>16&255,e>>8&255,e&255,a>>24&255,a>>16&255,a>>8&255,a&255,_>>24&255,_>>16&255,_>>8&255,_&255,i>>24&255,i>>16&255,i>>8&255,i&255,o>>24&255,o>>16&255,o>>8&255,o&255];return K(this,ri,"f")||d.push(c>>24&255,c>>16&255,c>>8&255,c&255),d}array(){return this.digest()}arrayBuffer(){this.finalize();let n=new ArrayBuffer(K(this,ri,"f")?28:32),t=new DataView(n);return t.setUint32(0,K(this,qr,"f")),t.setUint32(4,K(this,Hr,"f")),t.setUint32(8,K(this,$r,"f")),t.setUint32(12,K(this,Wr,"f")),t.setUint32(16,K(this,Kr,"f")),t.setUint32(20,K(this,Qr,"f")),t.setUint32(24,K(this,Gr,"f")),K(this,ri,"f")||t.setUint32(28,K(this,Xr,"f")),n}};ni=new WeakMap,Di=new WeakMap,or=new WeakMap,As=new WeakMap,ac=new WeakMap,qr=new WeakMap,Hr=new WeakMap,$r=new WeakMap,Wr=new WeakMap,Kr=new WeakMap,Qr=new WeakMap,Gr=new WeakMap,Xr=new WeakMap,Ai=new WeakMap,Ms=new WeakMap,ri=new WeakMap,Zl=new WeakMap,ai=new WeakMap;var W0="Invalid mnemonic",Mi="Invalid entropy",r3="Invalid mnemonic checksum",K0=`A wordlist is required but a default could not be found. -Please pass a 2048 word array explicitly.`;function a3(n,t){if(t=t||Z0,!t)throw new Error(K0);let e=o3(n).split(" ");if(e.length%3!==0)throw new Error(W0);let a=e.map(f=>{let h=t.indexOf(f);if(h===-1)throw new Error(W0);return G0(h.toString(2),"0",11)}).join(""),_=Math.floor(a.length/33)*32,i=a.slice(0,_),o=a.slice(_),c=i.match(/(.{1,8})/g).map(J0);if(c.length<16)throw new Error(Mi);if(c.length>32)throw new Error(Mi);if(c.length%4!==0)throw new Error(Mi);let d=new Uint8Array(c);if(Q0(d)!==o)throw new Error(r3);return _t(d)}function _3(n){let t=new Uint8Array(n);if(n>4294967295)throw new RangeError("requested too many random bytes");if(n>0)if(n>65536)for(let e=0;e32)throw new TypeError(Mi);if(n.length%4!==0)throw new TypeError(Mi);let e=X0(Array.from(n)),a=Q0(n),_=(e+a).match(/(.{1,11})/g).map(i=>{let o=J0(i);return t[o]});return t[0]==="\u3042\u3044\u3053\u304F\u3057\u3093"?_.join("\u3000"):_.join(" ")}function Q0(n){let t=n.length*8/32,e=new n3().update(n).digest();return X0(Array.from(e)).slice(0,t)}function G0(n,t,e){for(;n.lengthG0(t.toString(2),"0",8)).join("")}function o3(n){return(n||"").normalize("NFKD")}function J0(n){return parseInt(n,2)}var Z0=["abandon","ability","able","about","above","absent","absorb","abstract","absurd","abuse","access","accident","account","accuse","achieve","acid","acoustic","acquire","across","act","action","actor","actress","actual","adapt","add","addict","address","adjust","admit","adult","advance","advice","aerobic","affair","afford","afraid","again","age","agent","agree","ahead","aim","air","airport","aisle","alarm","album","alcohol","alert","alien","all","alley","allow","almost","alone","alpha","already","also","alter","always","amateur","amazing","among","amount","amused","analyst","anchor","ancient","anger","angle","angry","animal","ankle","announce","annual","another","answer","antenna","antique","anxiety","any","apart","apology","appear","apple","approve","april","arch","arctic","area","arena","argue","arm","armed","armor","army","around","arrange","arrest","arrive","arrow","art","artefact","artist","artwork","ask","aspect","assault","asset","assist","assume","asthma","athlete","atom","attack","attend","attitude","attract","auction","audit","august","aunt","author","auto","autumn","average","avocado","avoid","awake","aware","away","awesome","awful","awkward","axis","baby","bachelor","bacon","badge","bag","balance","balcony","ball","bamboo","banana","banner","bar","barely","bargain","barrel","base","basic","basket","battle","beach","bean","beauty","because","become","beef","before","begin","behave","behind","believe","below","belt","bench","benefit","best","betray","better","between","beyond","bicycle","bid","bike","bind","biology","bird","birth","bitter","black","blade","blame","blanket","blast","bleak","bless","blind","blood","blossom","blouse","blue","blur","blush","board","boat","body","boil","bomb","bone","bonus","book","boost","border","boring","borrow","boss","bottom","bounce","box","boy","bracket","brain","brand","brass","brave","bread","breeze","brick","bridge","brief","bright","bring","brisk","broccoli","broken","bronze","broom","brother","brown","brush","bubble","buddy","budget","buffalo","build","bulb","bulk","bullet","bundle","bunker","burden","burger","burst","bus","business","busy","butter","buyer","buzz","cabbage","cabin","cable","cactus","cage","cake","call","calm","camera","camp","can","canal","cancel","candy","cannon","canoe","canvas","canyon","capable","capital","captain","car","carbon","card","cargo","carpet","carry","cart","case","cash","casino","castle","casual","cat","catalog","catch","category","cattle","caught","cause","caution","cave","ceiling","celery","cement","census","century","cereal","certain","chair","chalk","champion","change","chaos","chapter","charge","chase","chat","cheap","check","cheese","chef","cherry","chest","chicken","chief","child","chimney","choice","choose","chronic","chuckle","chunk","churn","cigar","cinnamon","circle","citizen","city","civil","claim","clap","clarify","claw","clay","clean","clerk","clever","click","client","cliff","climb","clinic","clip","clock","clog","close","cloth","cloud","clown","club","clump","cluster","clutch","coach","coast","coconut","code","coffee","coil","coin","collect","color","column","combine","come","comfort","comic","common","company","concert","conduct","confirm","congress","connect","consider","control","convince","cook","cool","copper","copy","coral","core","corn","correct","cost","cotton","couch","country","couple","course","cousin","cover","coyote","crack","cradle","craft","cram","crane","crash","crater","crawl","crazy","cream","credit","creek","crew","cricket","crime","crisp","critic","crop","cross","crouch","crowd","crucial","cruel","cruise","crumble","crunch","crush","cry","crystal","cube","culture","cup","cupboard","curious","current","curtain","curve","cushion","custom","cute","cycle","dad","damage","damp","dance","danger","daring","dash","daughter","dawn","day","deal","debate","debris","decade","december","decide","decline","decorate","decrease","deer","defense","define","defy","degree","delay","deliver","demand","demise","denial","dentist","deny","depart","depend","deposit","depth","deputy","derive","describe","desert","design","desk","despair","destroy","detail","detect","develop","device","devote","diagram","dial","diamond","diary","dice","diesel","diet","differ","digital","dignity","dilemma","dinner","dinosaur","direct","dirt","disagree","discover","disease","dish","dismiss","disorder","display","distance","divert","divide","divorce","dizzy","doctor","document","dog","doll","dolphin","domain","donate","donkey","donor","door","dose","double","dove","draft","dragon","drama","drastic","draw","dream","dress","drift","drill","drink","drip","drive","drop","drum","dry","duck","dumb","dune","during","dust","dutch","duty","dwarf","dynamic","eager","eagle","early","earn","earth","easily","east","easy","echo","ecology","economy","edge","edit","educate","effort","egg","eight","either","elbow","elder","electric","elegant","element","elephant","elevator","elite","else","embark","embody","embrace","emerge","emotion","employ","empower","empty","enable","enact","end","endless","endorse","enemy","energy","enforce","engage","engine","enhance","enjoy","enlist","enough","enrich","enroll","ensure","enter","entire","entry","envelope","episode","equal","equip","era","erase","erode","erosion","error","erupt","escape","essay","essence","estate","eternal","ethics","evidence","evil","evoke","evolve","exact","example","excess","exchange","excite","exclude","excuse","execute","exercise","exhaust","exhibit","exile","exist","exit","exotic","expand","expect","expire","explain","expose","express","extend","extra","eye","eyebrow","fabric","face","faculty","fade","faint","faith","fall","false","fame","family","famous","fan","fancy","fantasy","farm","fashion","fat","fatal","father","fatigue","fault","favorite","feature","february","federal","fee","feed","feel","female","fence","festival","fetch","fever","few","fiber","fiction","field","figure","file","film","filter","final","find","fine","finger","finish","fire","firm","first","fiscal","fish","fit","fitness","fix","flag","flame","flash","flat","flavor","flee","flight","flip","float","flock","floor","flower","fluid","flush","fly","foam","focus","fog","foil","fold","follow","food","foot","force","forest","forget","fork","fortune","forum","forward","fossil","foster","found","fox","fragile","frame","frequent","fresh","friend","fringe","frog","front","frost","frown","frozen","fruit","fuel","fun","funny","furnace","fury","future","gadget","gain","galaxy","gallery","game","gap","garage","garbage","garden","garlic","garment","gas","gasp","gate","gather","gauge","gaze","general","genius","genre","gentle","genuine","gesture","ghost","giant","gift","giggle","ginger","giraffe","girl","give","glad","glance","glare","glass","glide","glimpse","globe","gloom","glory","glove","glow","glue","goat","goddess","gold","good","goose","gorilla","gospel","gossip","govern","gown","grab","grace","grain","grant","grape","grass","gravity","great","green","grid","grief","grit","grocery","group","grow","grunt","guard","guess","guide","guilt","guitar","gun","gym","habit","hair","half","hammer","hamster","hand","happy","harbor","hard","harsh","harvest","hat","have","hawk","hazard","head","health","heart","heavy","hedgehog","height","hello","helmet","help","hen","hero","hidden","high","hill","hint","hip","hire","history","hobby","hockey","hold","hole","holiday","hollow","home","honey","hood","hope","horn","horror","horse","hospital","host","hotel","hour","hover","hub","huge","human","humble","humor","hundred","hungry","hunt","hurdle","hurry","hurt","husband","hybrid","ice","icon","idea","identify","idle","ignore","ill","illegal","illness","image","imitate","immense","immune","impact","impose","improve","impulse","inch","include","income","increase","index","indicate","indoor","industry","infant","inflict","inform","inhale","inherit","initial","inject","injury","inmate","inner","innocent","input","inquiry","insane","insect","inside","inspire","install","intact","interest","into","invest","invite","involve","iron","island","isolate","issue","item","ivory","jacket","jaguar","jar","jazz","jealous","jeans","jelly","jewel","job","join","joke","journey","joy","judge","juice","jump","jungle","junior","junk","just","kangaroo","keen","keep","ketchup","key","kick","kid","kidney","kind","kingdom","kiss","kit","kitchen","kite","kitten","kiwi","knee","knife","knock","know","lab","label","labor","ladder","lady","lake","lamp","language","laptop","large","later","latin","laugh","laundry","lava","law","lawn","lawsuit","layer","lazy","leader","leaf","learn","leave","lecture","left","leg","legal","legend","leisure","lemon","lend","length","lens","leopard","lesson","letter","level","liar","liberty","library","license","life","lift","light","like","limb","limit","link","lion","liquid","list","little","live","lizard","load","loan","lobster","local","lock","logic","lonely","long","loop","lottery","loud","lounge","love","loyal","lucky","luggage","lumber","lunar","lunch","luxury","lyrics","machine","mad","magic","magnet","maid","mail","main","major","make","mammal","man","manage","mandate","mango","mansion","manual","maple","marble","march","margin","marine","market","marriage","mask","mass","master","match","material","math","matrix","matter","maximum","maze","meadow","mean","measure","meat","mechanic","medal","media","melody","melt","member","memory","mention","menu","mercy","merge","merit","merry","mesh","message","metal","method","middle","midnight","milk","million","mimic","mind","minimum","minor","minute","miracle","mirror","misery","miss","mistake","mix","mixed","mixture","mobile","model","modify","mom","moment","monitor","monkey","monster","month","moon","moral","more","morning","mosquito","mother","motion","motor","mountain","mouse","move","movie","much","muffin","mule","multiply","muscle","museum","mushroom","music","must","mutual","myself","mystery","myth","naive","name","napkin","narrow","nasty","nation","nature","near","neck","need","negative","neglect","neither","nephew","nerve","nest","net","network","neutral","never","news","next","nice","night","noble","noise","nominee","noodle","normal","north","nose","notable","note","nothing","notice","novel","now","nuclear","number","nurse","nut","oak","obey","object","oblige","obscure","observe","obtain","obvious","occur","ocean","october","odor","off","offer","office","often","oil","okay","old","olive","olympic","omit","once","one","onion","online","only","open","opera","opinion","oppose","option","orange","orbit","orchard","order","ordinary","organ","orient","original","orphan","ostrich","other","outdoor","outer","output","outside","oval","oven","over","own","owner","oxygen","oyster","ozone","pact","paddle","page","pair","palace","palm","panda","panel","panic","panther","paper","parade","parent","park","parrot","party","pass","patch","path","patient","patrol","pattern","pause","pave","payment","peace","peanut","pear","peasant","pelican","pen","penalty","pencil","people","pepper","perfect","permit","person","pet","phone","photo","phrase","physical","piano","picnic","picture","piece","pig","pigeon","pill","pilot","pink","pioneer","pipe","pistol","pitch","pizza","place","planet","plastic","plate","play","please","pledge","pluck","plug","plunge","poem","poet","point","polar","pole","police","pond","pony","pool","popular","portion","position","possible","post","potato","pottery","poverty","powder","power","practice","praise","predict","prefer","prepare","present","pretty","prevent","price","pride","primary","print","priority","prison","private","prize","problem","process","produce","profit","program","project","promote","proof","property","prosper","protect","proud","provide","public","pudding","pull","pulp","pulse","pumpkin","punch","pupil","puppy","purchase","purity","purpose","purse","push","put","puzzle","pyramid","quality","quantum","quarter","question","quick","quit","quiz","quote","rabbit","raccoon","race","rack","radar","radio","rail","rain","raise","rally","ramp","ranch","random","range","rapid","rare","rate","rather","raven","raw","razor","ready","real","reason","rebel","rebuild","recall","receive","recipe","record","recycle","reduce","reflect","reform","refuse","region","regret","regular","reject","relax","release","relief","rely","remain","remember","remind","remove","render","renew","rent","reopen","repair","repeat","replace","report","require","rescue","resemble","resist","resource","response","result","retire","retreat","return","reunion","reveal","review","reward","rhythm","rib","ribbon","rice","rich","ride","ridge","rifle","right","rigid","ring","riot","ripple","risk","ritual","rival","river","road","roast","robot","robust","rocket","romance","roof","rookie","room","rose","rotate","rough","round","route","royal","rubber","rude","rug","rule","run","runway","rural","sad","saddle","sadness","safe","sail","salad","salmon","salon","salt","salute","same","sample","sand","satisfy","satoshi","sauce","sausage","save","say","scale","scan","scare","scatter","scene","scheme","school","science","scissors","scorpion","scout","scrap","screen","script","scrub","sea","search","season","seat","second","secret","section","security","seed","seek","segment","select","sell","seminar","senior","sense","sentence","series","service","session","settle","setup","seven","shadow","shaft","shallow","share","shed","shell","sheriff","shield","shift","shine","ship","shiver","shock","shoe","shoot","shop","short","shoulder","shove","shrimp","shrug","shuffle","shy","sibling","sick","side","siege","sight","sign","silent","silk","silly","silver","similar","simple","since","sing","siren","sister","situate","six","size","skate","sketch","ski","skill","skin","skirt","skull","slab","slam","sleep","slender","slice","slide","slight","slim","slogan","slot","slow","slush","small","smart","smile","smoke","smooth","snack","snake","snap","sniff","snow","soap","soccer","social","sock","soda","soft","solar","soldier","solid","solution","solve","someone","song","soon","sorry","sort","soul","sound","soup","source","south","space","spare","spatial","spawn","speak","special","speed","spell","spend","sphere","spice","spider","spike","spin","spirit","split","spoil","sponsor","spoon","sport","spot","spray","spread","spring","spy","square","squeeze","squirrel","stable","stadium","staff","stage","stairs","stamp","stand","start","state","stay","steak","steel","stem","step","stereo","stick","still","sting","stock","stomach","stone","stool","story","stove","strategy","street","strike","strong","struggle","student","stuff","stumble","style","subject","submit","subway","success","such","sudden","suffer","sugar","suggest","suit","summer","sun","sunny","sunset","super","supply","supreme","sure","surface","surge","surprise","surround","survey","suspect","sustain","swallow","swamp","swap","swarm","swear","sweet","swift","swim","swing","switch","sword","symbol","symptom","syrup","system","table","tackle","tag","tail","talent","talk","tank","tape","target","task","taste","tattoo","taxi","teach","team","tell","ten","tenant","tennis","tent","term","test","text","thank","that","theme","then","theory","there","they","thing","this","thought","three","thrive","throw","thumb","thunder","ticket","tide","tiger","tilt","timber","time","tiny","tip","tired","tissue","title","toast","tobacco","today","toddler","toe","together","toilet","token","tomato","tomorrow","tone","tongue","tonight","tool","tooth","top","topic","topple","torch","tornado","tortoise","toss","total","tourist","toward","tower","town","toy","track","trade","traffic","tragic","train","transfer","trap","trash","travel","tray","treat","tree","trend","trial","tribe","trick","trigger","trim","trip","trophy","trouble","truck","true","truly","trumpet","trust","truth","try","tube","tuition","tumble","tuna","tunnel","turkey","turn","turtle","twelve","twenty","twice","twin","twist","two","type","typical","ugly","umbrella","unable","unaware","uncle","uncover","under","undo","unfair","unfold","unhappy","uniform","unique","unit","universe","unknown","unlock","until","unusual","unveil","update","upgrade","uphold","upon","upper","upset","urban","urge","usage","use","used","useful","useless","usual","utility","vacant","vacuum","vague","valid","valley","valve","van","vanish","vapor","various","vast","vault","vehicle","velvet","vendor","venture","venue","verb","verify","version","very","vessel","veteran","viable","vibrant","vicious","victory","video","view","village","vintage","violin","virtual","virus","visa","visit","visual","vital","vivid","vocal","voice","void","volcano","volume","vote","voyage","wage","wagon","wait","walk","wall","walnut","want","warfare","warm","warrior","wash","wasp","waste","water","wave","way","wealth","weapon","wear","weasel","weather","web","wedding","weekend","weird","welcome","west","wet","whale","what","wheat","wheel","when","where","whip","whisper","wide","width","wife","wild","will","win","window","wine","wing","wink","winner","winter","wire","wisdom","wise","wish","witness","wolf","woman","wonder","wood","wool","word","work","world","worry","worth","wrap","wreck","wrestle","wrist","write","wrong","yard","year","yellow","you","young","youth","zebra","zero","zone","zoo"],Wp=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];typeof Int32Array<"u"&&(Wp=new Int32Array(Wp));function c3(n,t=0){let e=~~t;for(let a=0;aisNaN(a)).map(a=>n[a]).map(a=>typeof a=="string"?{[lt]:"Literal",type:"string",const:a}:{[lt]:"Literal",type:"number",const:a});return this.Create({...t,[lt]:"Union",[Bi]:"Enum",anyOf:e})}Function(n,t,e={}){if(n[lt]==="Tuple"){let a=n.items===void 0?[]:n.items;return this.Create({...e,[lt]:"Function",type:"object",instanceOf:"Function",parameters:a,returns:t})}else{if(globalThis.Array.isArray(n))return this.Create({...e,[lt]:"Function",type:"object",instanceOf:"Function",parameters:n,returns:t});throw new Error("TypeBuilder.Function: Invalid parameters")}}InstanceType(n,t={}){return{...t,...this.Clone(n.returns)}}Integer(n={}){return this.Create({...n,[lt]:"Integer",type:"integer"})}Intersect(n,t={}){let e=o=>o[we]&&o[we]==="Optional"||o[we]==="ReadonlyOptional",[a,_]=[new Set,new Set];for(let o of n)for(let[c,d]of Object.entries(o.properties))e(d)&&_.add(c);for(let o of n)for(let c of Object.keys(o.properties))_.has(c)||a.add(c);let i={};for(let o of n)for(let[c,d]of Object.entries(o.properties))i[c]=i[c]===void 0?d:{[lt]:"Union",anyOf:[i[c],{...d}]};return a.size>0?this.Create({...t,[lt]:"Object",type:"object",properties:i,required:[...a]}):this.Create({...t,[lt]:"Object",type:"object",properties:i})}KeyOf(n,t={}){let e=Object.keys(n.properties).map(a=>this.Create({...t,[lt]:"Literal",type:"string",const:a}));return this.Create({...t,[lt]:"Union",[Bi]:"KeyOf",anyOf:e})}Literal(n,t={}){return this.Create({...t,[lt]:"Literal",const:n,type:typeof n})}Never(n={}){return this.Create({...n,[lt]:"Never",allOf:[{type:"boolean",const:!1},{type:"boolean",const:!0}]})}Null(n={}){return this.Create({...n,[lt]:"Null",type:"null"})}Number(n={}){return this.Create({...n,[lt]:"Number",type:"number"})}Object(n,t={}){let e=Object.keys(n),a=e.filter(i=>{let o=n[i][we];return o&&(o==="Optional"||o==="ReadonlyOptional")}),_=e.filter(i=>!a.includes(i));return _.length>0?this.Create({...t,[lt]:"Object",type:"object",properties:n,required:_}):this.Create({...t,[lt]:"Object",type:"object",properties:n})}Omit(n,t,e={}){let a=t[lt]==="Union"?t.anyOf.map(i=>i.const):t,_={...this.Clone(n),...e,[Bi]:"Omit"};_.required&&(_.required=_.required.filter(i=>!a.includes(i)),_.required.length===0&&delete _.required);for(let i of Object.keys(_.properties))a.includes(i)&&delete _.properties[i];return this.Create(_)}Parameters(n,t={}){return kn.Tuple(n.parameters,{...t})}Partial(n,t={}){let e={...this.Clone(n),...t,[Bi]:"Partial"};delete e.required;for(let a of Object.keys(e.properties)){let _=e.properties[a];switch(_[we]){case"ReadonlyOptional":_[we]="ReadonlyOptional";break;case"Readonly":_[we]="ReadonlyOptional";break;case"Optional":_[we]="Optional";break;default:_[we]="Optional";break}}return this.Create(e)}Pick(n,t,e={}){let a=t[lt]==="Union"?t.anyOf.map(i=>i.const):t,_={...this.Clone(n),...e,[Bi]:"Pick"};_.required&&(_.required=_.required.filter(i=>a.includes(i)),_.required.length===0&&delete _.required);for(let i of Object.keys(_.properties))a.includes(i)||delete _.properties[i];return this.Create(_)}Promise(n,t={}){return this.Create({...t,[lt]:"Promise",type:"object",instanceOf:"Promise",item:n})}Record(n,t,e={}){if(n[lt]==="Union")return this.Object(n.anyOf.reduce((_,i)=>({..._,[i.const]:t}),{}),{...e,[Bi]:"Record"});let a=["Integer","Number"].includes(n[lt])?"^(0|[1-9][0-9]*)$":n[lt]==="String"&&n.pattern?n.pattern:"^.*$";return this.Create({...e,[lt]:"Record",type:"object",patternProperties:{[a]:t},additionalProperties:!1})}Recursive(n,t={}){t.$id===void 0&&(t.$id=`T${u3++}`);let e=n({[lt]:"Self",$ref:`${t.$id}`});return e.$id=t.$id,this.Create({...t,...e})}Ref(n,t={}){if(n.$id===void 0)throw Error("TypeBuilder.Ref: Referenced schema must specify an $id");return this.Create({...t,[lt]:"Ref",$ref:n.$id})}RegEx(n,t={}){return this.Create({...t,[lt]:"String",type:"string",pattern:n.source})}Required(n,t={}){let e={...this.Clone(n),...t,[Bi]:"Required"};e.required=Object.keys(e.properties);for(let a of Object.keys(e.properties)){let _=e.properties[a];switch(_[we]){case"ReadonlyOptional":_[we]="Readonly";break;case"Readonly":_[we]="Readonly";break;case"Optional":delete _[we];break;default:delete _[we];break}}return this.Create(e)}ReturnType(n,t={}){return{...t,...this.Clone(n.returns)}}Strict(n){return JSON.parse(JSON.stringify(n))}String(n={}){return this.Create({...n,[lt]:"String",type:"string"})}Tuple(n,t={}){let e=n.length,a=n.length,_=n.length>0?{...t,[lt]:"Tuple",type:"array",items:n,additionalItems:!1,minItems:e,maxItems:a}:{...t,[lt]:"Tuple",type:"array",minItems:e,maxItems:a};return this.Create(_)}Undefined(n={}){return this.Create({...n,[lt]:"Undefined",type:"null",typeOf:"Undefined"})}Union(n,t={}){return n.length===0?kn.Never({...t}):this.Create({...t,[lt]:"Union",anyOf:n})}Uint8Array(n={}){return this.Create({...n,[lt]:"Uint8Array",type:"object",instanceOf:"Uint8Array"})}Unknown(n={}){return this.Create({...n,[lt]:"Unknown"})}Unsafe(n={}){return this.Create({...n,[lt]:n[lt]||"Unsafe"})}Void(n={}){return this.Create({...n,[lt]:"Void",type:"null",typeOf:"Void"})}Create(n){return n}Clone(n){let t=a=>typeof a=="object"&&a!==null&&!Array.isArray(a),e=a=>typeof a=="object"&&a!==null&&Array.isArray(a);return t(n)?Object.keys(n).reduce((a,_)=>({...a,[_]:this.Clone(n[_])}),Object.getOwnPropertySymbols(n).reduce((a,_)=>({...a,[_]:this.Clone(n[_])}),{})):e(n)?n.map(a=>this.Clone(a)):n}},kn=new p3,Fe=class{constructor(n,t){Object.defineProperty(this,"index",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.index=n,this.fields=t}},Bs={Integer:function(n){let t=kn.Unsafe({dataType:"integer"});return n&&Object.entries(n).forEach(([e,a])=>{t[e]=a}),t},Bytes:function(n){let t=kn.Unsafe({dataType:"bytes"});return n&&Object.entries(n).forEach(([e,a])=>{t[e]=a}),t},Boolean:function(){return kn.Unsafe({anyOf:[{title:"False",dataType:"constructor",index:0,fields:[]},{title:"True",dataType:"constructor",index:1,fields:[]}]})},Any:function(){return kn.Unsafe({description:"Any Data."})},Array:function(n,t){let e=kn.Array(n);return _c(e,{dataType:"list",items:n}),t&&Object.entries(t).forEach(([a,_])=>{e[a]=_}),e},Map:function(n,t,e){let a=kn.Unsafe({dataType:"map",keys:n,values:t});return e&&Object.entries(e).forEach(([_,i])=>{a[_]=i}),a},Object:function(n,t){let e=kn.Object(n);return _c(e,{anyOf:[{dataType:"constructor",index:0,fields:Object.entries(n).map(([a,_])=>({..._,title:a}))}]}),e.anyOf[0].hasConstr=typeof(t==null?void 0:t.hasConstr)>"u"||t.hasConstr,e},Enum:function(n){let t=kn.Union(n);return _c(t,{anyOf:n.map((e,a)=>e.anyOf[0].fields.length===0?{...e.anyOf[0],index:a}:{dataType:"constructor",title:(()=>{let _=e.anyOf[0].fields[0].title;if(_.charAt(0)!==_.charAt(0).toUpperCase())throw new Error(`Enum '${_}' needs to start with an uppercase letter.`);return e.anyOf[0].fields[0].title})(),index:a,fields:e.anyOf[0].fields[0].items||e.anyOf[0].fields[0].anyOf[0].fields})}),t},Tuple:function(n,t){let e=kn.Tuple(n);return _c(e,{dataType:"list",items:n}),t&&Object.entries(t).forEach(([a,_])=>{e[a]=_}),e},Literal:function(n){if(n.charAt(0)!==n.charAt(0).toUpperCase())throw new Error(`Enum '${n}' needs to start with an uppercase letter.`);let t=kn.Literal(n);return _c(t,{anyOf:[{dataType:"constructor",title:n,index:0,fields:[]}]}),t},Nullable:function(n){return kn.Unsafe({anyOf:[{title:"Some",description:"An optional value.",dataType:"constructor",index:0,fields:[n]},{title:"None",description:"Nothing.",dataType:"constructor",index:1,fields:[]}]})},to:f3,from:w3,fromJson:g3,toJson:h3,void:function(){return"d87980"},castFrom:xn,castTo:lr};function f3(n,t){function e(_){try{if(typeof _=="bigint")return rt.new_integer(Wo.from_str(_.toString()));if(typeof _=="string")return rt.new_bytes($(_));if(_ instanceof Fe){let{index:i,fields:o}=_,c=ae.new();return o.forEach(d=>c.add(e(d))),rt.new_constr_plutus_data(fa.new(S.from_str(i.toString()),c))}else if(_ instanceof Array){let i=ae.new();return _.forEach(o=>i.add(e(o))),rt.new_list(i)}else if(_ instanceof Map){let i=Ta.new();for(let[o,c]of _.entries())i.insert(e(o),e(c));return rt.new_map(i)}throw new Error("Unsupported type")}catch(i){throw new Error("Could not serialize the data: "+i)}}let a=t?lr(n,t):n;return _t(e(a).to_bytes())}function w3(n,t){function e(_){if(_.kind()===0){let i=_.as_constr_plutus_data(),o=i.data(),c=[];for(let d=0;dt(a));if(e instanceof Object){let a=new Map;return Object.entries(e).forEach(([_,i])=>{a.set(t(_),t(i))}),a}throw new Error("Unsupported type")}return t(n)}function h3(n){function t(e){if(typeof e=="bigint"||typeof e=="number"||typeof e=="string"&&!isNaN(parseInt(e))&&e.slice(-1)==="n"){let a=typeof e=="string"?BigInt(e.slice(0,-1)):e;return parseInt(a.toString())}if(typeof e=="string")try{return new TextDecoder(void 0,{fatal:!0}).decode($(e))}catch{return"0x"+_t($(e))}if(e instanceof Array)return e.map(a=>t(a));if(e instanceof Map){let a={};return e.forEach((_,i)=>{let o=t(i);if(typeof o!="string"&&typeof o!="number")throw new Error("Unsupported type (Note: Only bytes or integers can be keys of a JSON object)");a[o]=t(_)}),a}throw new Error("Unsupported type (Note: Constructor cannot be converted to JSON)")}return t(n)}function xn(n,t){let e=t;if(!e)throw new Error("Could not type cast data.");switch((e.anyOf?"enum":"")||e.dataType){case"integer":{if(typeof n!="bigint")throw new Error("Could not type cast to integer.");return Y0(n,e),n}case"bytes":{if(typeof n!="string")throw new Error("Could not type cast to bytes.");return tv(n,e),n}case"constructor":{if(av(e)){if(!(n instanceof Fe)||n.index!==0||n.fields.length!==0)throw new Error("Could not type cast to void.");return}else if(n instanceof Fe&&n.index===e.index&&(e.hasConstr||e.hasConstr===void 0)){let a={};if(e.fields.length!==n.fields.length)throw new Error("Could not type cast to object. Fields do not match.");return e.fields.forEach((_,i)=>{let o=_.title||"wrapper";if(/[A-Z]/.test(o[0]))throw new Error("Could not type cast to object. Object properties need to start with a lowercase letter.");a[o]=xn(n.fields[i],_)}),a}else if(n instanceof Array&&!e.hasConstr&&e.hasConstr!==void 0){let a={};if(e.fields.length!==n.length)throw new Error("Could not ype cast to object. Fields do not match.");return e.fields.forEach((_,i)=>{let o=_.title||"wrapper";if(/[A-Z]/.test(o[0]))throw new Error("Could not type cast to object. Object properties need to start with a lowercase letter.");a[o]=xn(n[i],_)}),a}throw new Error("Could not type cast to object.")}case"enum":{if(e.anyOf.length===1)return xn(n,e.anyOf[0]);if(!(n instanceof Fe))throw new Error("Could not type cast to enum.");let a=e.anyOf.find(_=>_.index===n.index);if(!a||a.fields.length!==n.fields.length)throw new Error("Could not type cast to enum.");if(rv(e)){if(n.fields.length!==0)throw new Error("Could not type cast to boolean.");switch(n.index){case 0:return!1;case 1:return!0}throw new Error("Could not type cast to boolean.")}else if(_v(e)){switch(n.index){case 0:{if(n.fields.length!==1)throw new Error("Could not type cast to nullable object.");return xn(n.fields[0],e.anyOf[0].fields[0])}case 1:{if(n.fields.length!==0)throw new Error("Could not type cast to nullable object.");return null}}throw new Error("Could not type cast to nullable object.")}switch(a.dataType){case"constructor":if(a.fields.length===0){if(/[A-Z]/.test(a.title[0]))return a.title;throw new Error("Could not type cast to enum.")}else{if(!/[A-Z]/.test(a.title))throw new Error("Could not type cast to enum. Enums need to start with an uppercase letter.");if(a.fields.length!==n.fields.length)throw new Error("Could not type cast to enum.");let _=a.fields[0].title?Object.fromEntries(a.fields.map((i,o)=>[i.title,xn(n.fields[o],i)])):a.fields.map((i,o)=>xn(n.fields[o],i));return{[a.title]:_}}}throw new Error("Could not type cast to enum.")}case"list":if(e.items instanceof Array){if(n instanceof Fe&&n.index===0&&e.hasConstr)return n.fields.map((a,_)=>xn(a,e.items[_]));if(n instanceof Array&&!e.hasConstr)return n.map((a,_)=>xn(a,e.items[_]));throw new Error("Could not type cast to tuple.")}else{if(!(n instanceof Array))throw new Error("Could not type cast to array.");return ev(n,e),n.map(a=>xn(a,e.items))}case"map":{if(!(n instanceof Map))throw new Error("Could not type cast to map.");nv(n,e);let a=new Map;for(let[_,i]of n.entries())a.set(xn(_,e.keys),xn(i,e.values));return a}case void 0:return n}throw new Error("Could not type cast data.")}function lr(n,t){let e=t;if(!e)throw new Error("Could not type cast struct.");switch((e.anyOf?"enum":"")||e.dataType){case"integer":{if(typeof n!="bigint")throw new Error("Could not type cast to integer.");return Y0(n,e),n}case"bytes":{if(typeof n!="string")throw new Error("Could not type cast to bytes.");return tv(n,e),n}case"constructor":{if(av(e)){if(n!==void 0)throw new Error("Could not type cast to void.");return new Fe(0,[])}else if(typeof n!="object"||n===null||e.fields.length!==Object.keys(n).length)throw new Error("Could not type cast to constructor.");let a=e.fields.map(_=>lr(n[_.title||"wrapper"],_));return e.hasConstr||e.hasConstr===void 0?new Fe(e.index,a):a}case"enum":{if(e.anyOf.length===1)return lr(n,e.anyOf[0]);if(rv(e)){if(typeof n!="boolean")throw new Error("Could not type cast to boolean.");return new Fe(n?1:0,[])}else if(_v(e)){if(n===null)return new Fe(1,[]);{let a=e.anyOf[0].fields;if(a.length!==1)throw new Error("Could not type cast to nullable object.");return new Fe(0,[lr(n,a[0])])}}switch(typeof n){case"string":{if(!/[A-Z]/.test(n[0]))throw new Error("Could not type cast to enum. Enum needs to start with an uppercase letter.");let a=e.anyOf.findIndex(_=>_.dataType==="constructor"&&_.fields.length===0&&_.title===n);if(a===-1)throw new Error("Could not type cast to enum.");return new Fe(a,[])}case"object":{if(n===null)throw new Error("Could not type cast to enum.");let a=Object.keys(n)[0];if(!/[A-Z]/.test(a))throw new Error("Could not type cast to enum. Enum needs to start with an uppercase letter.");let _=e.anyOf.find(o=>o.dataType==="constructor"&&o.title===a);if(!_)throw new Error("Could not type cast to enum.");let i=n[a];return new Fe(_.index,i instanceof Array?i.map((o,c)=>lr(o,_.fields[c])):_.fields.map(o=>{let[c,d]=Object.entries(i).find(([f])=>f===o.title);return lr(d,o)}))}}throw new Error("Could not type cast to enum.")}case"list":{if(!(n instanceof Array))throw new Error("Could not type cast to array/tuple.");if(e.items instanceof Array){let a=n.map((_,i)=>lr(_,e.items[i]));return e.hasConstr?new Fe(0,a):a}else return ev(n,e),n.map(a=>lr(a,e.items))}case"map":{if(!(n instanceof Map))throw new Error("Could not type cast to map.");nv(n,e);let a=new Map;for(let[_,i]of n.entries())a.set(lr(_,e.keys),lr(i,e.values));return a}case void 0:return n}throw new Error("Could not type cast struct.")}function Y0(n,t){if(t.minimum&&nBigInt(t.maximum))throw new Error(`Integer ${n} is above the maxiumum ${t.maximum}.`);if(t.exclusiveMinimum&&n<=BigInt(t.exclusiveMinimum))throw new Error(`Integer ${n} is below the exclusive minimum ${t.exclusiveMinimum}.`);if(t.exclusiveMaximum&&n>=BigInt(t.exclusiveMaximum))throw new Error(`Integer ${n} is above the exclusive maximum ${t.exclusiveMaximum}.`)}function tv(n,t){if(t.enum&&!t.enum.some(e=>e===n))throw new Error(`None of the keywords match with '${n}'.`);if(t.minLength&&n.length/2t.maxLength)throw new Error(`Bytes can have a length of at most ${t.minLength} bytes.`)}function ev(n,t){if(t.minItems&&n.lengtht.maxItems)throw new Error(`Array can contain at most ${t.maxItems} items.`);if(t.uniqueItems&&new Set(n).size!==n.length)throw new Error("Array constains duplicates.")}function nv(n,t){if(t.minItems&&n.sizet.maxItems)throw new Error(`Map can contain at most ${t.maxItems} items.`)}function rv(n){var t,e;return n.anyOf&&((t=n.anyOf[0])==null?void 0:t.title)==="False"&&((e=n.anyOf[1])==null?void 0:e.title)==="True"}function av(n){return n.index===0&&n.fields.length===0}function _v(n){var t,e;return n.anyOf&&((t=n.anyOf[0])==null?void 0:t.title)==="Some"&&((e=n.anyOf[1])==null?void 0:e.title)==="None"}function _c(n,t){Object.keys(n).forEach(e=>{delete n[e]}),Object.assign(n,t)}var b3=class{constructor(n){Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n}validatorToAddress(n,t){let e=this.validatorToScriptHash(n);return t?Zn.new(Ui(this.lucid.network),H.from_scripthash(ct.from_hex(e)),t.type==="Key"?H.from_keyhash(J.from_hex(t.hash)):H.from_scripthash(ct.from_hex(t.hash))).to_address().to_bech32(void 0):Tn.new(Ui(this.lucid.network),H.from_scripthash(ct.from_hex(e))).to_address().to_bech32(void 0)}credentialToAddress(n,t){return t?Zn.new(Ui(this.lucid.network),n.type==="Key"?H.from_keyhash(J.from_hex(n.hash)):H.from_scripthash(ct.from_hex(n.hash)),t.type==="Key"?H.from_keyhash(J.from_hex(t.hash)):H.from_scripthash(ct.from_hex(t.hash))).to_address().to_bech32(void 0):Tn.new(Ui(this.lucid.network),n.type==="Key"?H.from_keyhash(J.from_hex(n.hash)):H.from_scripthash(ct.from_hex(n.hash))).to_address().to_bech32(void 0)}validatorToRewardAddress(n){let t=this.validatorToScriptHash(n);return zt.new(Ui(this.lucid.network),H.from_scripthash(ct.from_hex(t))).to_address().to_bech32(void 0)}credentialToRewardAddress(n){return zt.new(Ui(this.lucid.network),n.type==="Key"?H.from_keyhash(J.from_hex(n.hash)):H.from_scripthash(ct.from_hex(n.hash))).to_address().to_bech32(void 0)}validatorToScriptHash(n){switch(n.type){case"Native":return St.from_bytes($(n.script)).hash(dn.NativeScript).to_hex();case"PlutusV1":return wt.from_bytes($(_i(n.script))).hash(dn.PlutusV1).to_hex();case"PlutusV2":return wt.from_bytes($(_i(n.script))).hash(dn.PlutusV2).to_hex();default:throw new Error("No variant matched")}}mintingPolicyToId(n){return this.validatorToScriptHash(n)}datumToHash(n){return Cs(rt.from_bytes($(n))).to_hex()}scriptHashToCredential(n){return{type:"Script",hash:n}}keyHashToCredential(n){return{type:"Key",hash:n}}generatePrivateKey(){return m3()}generateSeedPhrase(){return iv()}unixTimeToSlot(n){return d3(n,td[this.lucid.network])}slotToUnixTime(n){return l3(n,td[this.lucid.network])}getAddressDetails(n){return Un(n)}nativeScriptFromJson(n){return O3(n)}paymentCredentialOf(n){return Li(n)}stakeCredentialOf(n){return y3(n)}};function ed(n){try{return vt.from_bytes($(n))}catch{try{return vt.from_bech32(n)}catch{throw new Error("Could not deserialize address.")}}}function Un(n){try{let t=Zn.from_address(ed(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())},a=t.stake_cred().kind()===0?{type:"Key",hash:_t(t.stake_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.stake_cred().to_scripthash().to_bytes())};return{type:"Base",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},paymentCredential:e,stakeCredential:a}}catch{}try{let t=Tn.from_address(ed(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())};return{type:"Enterprise",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},paymentCredential:e}}catch{}try{let t=F_.from_address(ed(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())};return{type:"Pointer",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},paymentCredential:e}}catch{}try{let t=zt.from_address(ed(n)),e=t.payment_cred().kind()===0?{type:"Key",hash:_t(t.payment_cred().to_keyhash().to_bytes())}:{type:"Script",hash:_t(t.payment_cred().to_scripthash().to_bytes())};return{type:"Reward",networkId:t.to_address().network_id(),address:{bech32:t.to_address().to_bech32(void 0),hex:_t(t.to_address().to_bytes())},stakeCredential:e}}catch{}try{let t=(e=>{try{return Re.from_bytes($(e))}catch{try{return Re.from_base58(e)}catch{throw new Error("Could not deserialize address.")}}})(n);return{type:"Byron",networkId:t.network_id(),address:{bech32:"",hex:_t(t.to_address().to_bytes())}}}catch{}throw new Error("No address type matched for: "+n)}function Li(n){let{paymentCredential:t}=Un(n);if(!t)throw new Error("The specified address does not contain a payment credential.");return t}function y3(n){let{stakeCredential:t}=Un(n);if(!t)throw new Error("The specified address does not contain a stake credential.");return t}function m3(){return qt.generate_ed25519().to_bech32()}function iv(){return i3(256)}function v3(n){let t={};t.lovelace=BigInt(n.coin().to_str());let e=n.multiasset();if(e){let a=e.keys();for(let _=0;_i!=="lovelace").map(i=>i.slice(0,56)))).forEach(i=>{let o=a.filter(d=>d.slice(0,56)===i),c=Jn.new();o.forEach(d=>{c.insert(te.new($(d.slice(56))),S.from_str(n[d].toString()))}),t.insert(ct.from_bytes($(i)),c)});let _=Ct.new(S.from_str(e?e.toString():"0"));return(a.length>1||!e)&&_.set_multiasset(t),_}function k3(n){switch(n.get().kind()){case 0:return{type:"Native",script:_t(n.get().as_native().to_bytes())};case 1:return{type:"PlutusV1",script:_t(n.get().as_plutus_v1().to_bytes())};case 2:return{type:"PlutusV2",script:_t(n.get().as_plutus_v2().to_bytes())};default:throw new Error("No variant matched.")}}function sv(n){switch(n.type){case"Native":return An.new(Ne.new_native(St.from_bytes($(n.script))));case"PlutusV1":return An.new(Ne.new_plutus_v1(wt.from_bytes($(_i(n.script)))));case"PlutusV2":return An.new(Ne.new_plutus_v2(wt.from_bytes($(_i(n.script)))));default:throw new Error("No variant matched.")}}function ic(n){let t=(()=>{try{return vt.from_bech32(n.address)}catch{return Re.from_base58(n.address).to_address()}})(),e=Kt.new(t,Kp(n.assets));return n.datumHash&&e.set_datum(Wt.new_data_hash(ee.from_bytes($(n.datumHash)))),!n.datumHash&&n.datum&&e.set_datum(Wt.new_data(Nn.new(rt.from_bytes($(n.datum))))),n.scriptRef&&e.set_script_ref(sv(n.scriptRef)),Te.new(Xe.new(fe.from_bytes($(n.txHash)),S.from_str(n.outputIndex.toString())),e)}function ov(n){var t,e,a,_,i,o,c;return{txHash:_t(n.input().transaction_id().to_bytes()),outputIndex:parseInt(n.input().index().to_str()),assets:v3(n.output().amount()),address:n.output().address().as_byron()?(t=n.output().address().as_byron())==null?void 0:t.to_base58():n.output().address().to_bech32(void 0),datumHash:(_=(a=(e=n.output())==null?void 0:e.datum())==null?void 0:a.as_data_hash())==null?void 0:_.to_hex(),datum:((o=(i=n.output())==null?void 0:i.datum())==null?void 0:o.as_data())&&_t(n.output().datum().as_data().get().to_bytes()),scriptRef:((c=n.output())==null?void 0:c.script_ref())&&k3(n.output().script_ref())}}function Ui(n){switch(n){case"Preview":return 0;case"Preprod":return 0;case"Custom":return 0;case"Mainnet":return 1;default:throw new Error("Network not found")}}function $(n){return t3(n)}function _t(n){return Jj(n)}function x3(n){return _t(new TextEncoder().encode(n))}function cv(n){return c3($(n)).toString(16).padStart(2,"0")}function j3(n){if(n<0||n>65535)throw new Error(`Label ${n} out of range: min label 1 - max label 65535.`);let t=n.toString(16).padStart(4,"0");return"0"+t+cv(t)+"0"}function S3(n){if(n.length!==8||!(n[0]==="0"&&n[7]==="0"))return null;let t=n.slice(1,5),e=parseInt(t,16);return n.slice(5,7)===cv(t)?e:null}function C3(n,t,e){let a=Number.isInteger(e)?j3(e):"",_=t||"";if((_+a).length>64)throw new Error("Asset name size exceeds 32 bytes.");if(n.length!==56)throw new Error(`Policy id invalid: ${n}.`);return n+a+_}function E3(n){let t=n.slice(0,56),e=n.slice(56)||null,a=S3(n.slice(56,64)),_=(Number.isInteger(a)?n.slice(64):n.slice(56))||null;return{policyId:t,assetName:e,name:_,label:a}}function O3(n){return{type:"Native",script:_t(Vp(JSON.stringify(n),"",Gb.Node).to_bytes())}}function z3(n,t,e){let a=e?Bs.castTo(t,e):t;return _t(qp(ae.from_bytes($(Bs.to(a))),wt.from_bytes($(_i(n)))).to_bytes())}function _i(n){try{return wt.from_bytes(wt.from_bytes($(n)).bytes()),n}catch{return _t(wt.new($(n)).to_bytes())}}var R3=class{constructor(n,t){Object.defineProperty(this,"txSigned",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.txSigned=t}async submit(){return await(this.lucid.wallet||this.lucid.provider).submitTx(_t(this.txSigned.to_bytes()))}toString(){return _t(this.txSigned.to_bytes())}toHash(){return da(this.txSigned.body()).to_hex()}},lv=class{constructor(n,t){Object.defineProperty(this,"txComplete",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"witnessSetBuilder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tasks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fee",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exUnits",{enumerable:!0,configurable:!0,writable:!0,value:null}),this.lucid=n,this.txComplete=t,this.witnessSetBuilder=Ka.new(),this.tasks=[],this.fee=parseInt(t.body().fee().to_str());let e=t.witness_set().redeemers();if(e){let a={cpu:0,mem:0};for(let _=0;_{let n=await this.lucid.wallet.signTx(this.txComplete);this.witnessSetBuilder.add_existing(n)}),this}signWithPrivateKey(n){let t=qt.from_bech32(n),e=Ss(da(this.txComplete.body()),t);return this.witnessSetBuilder.add_vkey(e),this}async partialSign(){let n=await this.lucid.wallet.signTx(this.txComplete);return this.witnessSetBuilder.add_existing(n),_t(n.to_bytes())}partialSignWithPrivateKey(n){let t=qt.from_bech32(n),e=Ss(da(this.txComplete.body()),t);this.witnessSetBuilder.add_vkey(e);let a=Ka.new();return a.add_vkey(e),_t(a.build().to_bytes())}assemble(n){return n.forEach(t=>{let e=Ie.from_bytes($(t));this.witnessSetBuilder.add_existing(e)}),this}async complete(){for(let t of this.tasks)await t();this.witnessSetBuilder.add_existing(this.txComplete.witness_set());let n=yn.new(this.txComplete.body(),this.witnessSetBuilder.build(),this.txComplete.auxiliary_data());return new R3(this.lucid,n)}toString(){return _t(this.txComplete.to_bytes())}toHash(){return da(this.txComplete.body()).to_hex()}},P3=class{constructor(n){Object.defineProperty(this,"txBuilder",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tasks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.txBuilder=Rs.new(this.lucid.txBuilderConfig),this.tasks=[]}readFrom(n){return this.tasks.push(async t=>{for(let e of n){if(e.datumHash){e.datum=Bs.to(await t.lucid.datumOf(e));let _=rt.from_bytes($(e.datum));t.txBuilder.add_plutus_data(_)}let a=ic(e);t.txBuilder.add_reference_input(a)}}),this}collectFrom(n,t){return this.tasks.push(async e=>{for(let a of n){a.datumHash&&!a.datum&&(a.datum=Bs.to(await e.lucid.datumOf(a)));let _=ic(a);e.txBuilder.add_input(_,t&&ke.new_plutus_witness(gn.new(rt.from_bytes($(t)),a.datumHash&&a.datum?rt.from_bytes($(a.datum)):void 0,void 0)))}}),this}mintAssets(n,t){return this.tasks.push(e=>{let a=Object.keys(n),_=a[0].slice(0,56),i=Fn.new();a.forEach(c=>{if(c.slice(0,56)!==_)throw new Error("Only one policy id allowed. You can chain multiple mintAssets functions together if you need to mint assets with different policy ids.");i.insert(te.new($(c.slice(56))),re.from_str(n[c].toString()))});let o=ct.from_bytes($(_));e.txBuilder.add_mint(o,i,t?ke.new_plutus_witness(gn.new(rt.from_bytes($(t)),void 0,void 0)):void 0)}),this}payToAddress(n,t){return this.tasks.push(e=>{let a=Kt.new(sc(n,e.lucid),Kp(t));e.txBuilder.add_output(a)}),this}payToAddressWithData(n,t,e){return this.tasks.push(a=>{if(typeof t=="string"&&(t={asHash:t}),[t.hash,t.asHash,t.inline].filter(o=>o).length>1)throw new Error("Not allowed to set hash, asHash and inline at the same time.");let _=Kt.new(sc(n,a.lucid),Kp(e));if(t.hash)_.set_datum(Wt.new_data_hash(ee.from_hex(t.hash)));else if(t.asHash){let o=rt.from_bytes($(t.asHash));_.set_datum(Wt.new_data_hash(Cs(o))),a.txBuilder.add_plutus_data(o)}else if(t.inline){let o=rt.from_bytes($(t.inline));_.set_datum(Wt.new_data(Nn.new(o)))}let i=t.scriptRef;i&&_.set_script_ref(sv(i)),a.txBuilder.add_output(_)}),this}payToContract(n,t,e){if(typeof t=="string"&&(t={asHash:t}),!(t.hash||t.asHash||t.inline))throw new Error("No datum set. Script output becomes unspendable without datum.");return this.payToAddressWithData(n,t,e)}delegateTo(n,t,e){return this.tasks.push(a=>{let _=a.lucid.utils.getAddressDetails(n);if(_.type!=="Reward"||!_.stakeCredential)throw new Error("Not a reward address provided.");let i=_.stakeCredential.type==="Key"?H.from_keyhash(J.from_bytes($(_.stakeCredential.hash))):H.from_scripthash(ct.from_bytes($(_.stakeCredential.hash)));a.txBuilder.add_certificate(Lt.new_stake_delegation(Dr.new(i,J.from_bech32(t))),e?ke.new_plutus_witness(gn.new(rt.from_bytes($(e)),void 0,void 0)):void 0)}),this}registerStake(n){return this.tasks.push(t=>{let e=t.lucid.utils.getAddressDetails(n);if(e.type!=="Reward"||!e.stakeCredential)throw new Error("Not a reward address provided.");let a=e.stakeCredential.type==="Key"?H.from_keyhash(J.from_bytes($(e.stakeCredential.hash))):H.from_scripthash(ct.from_bytes($(e.stakeCredential.hash)));t.txBuilder.add_certificate(Lt.new_stake_registration(Mr.new(a)),void 0)}),this}deregisterStake(n,t){return this.tasks.push(e=>{let a=e.lucid.utils.getAddressDetails(n);if(a.type!=="Reward"||!a.stakeCredential)throw new Error("Not a reward address provided.");let _=a.stakeCredential.type==="Key"?H.from_keyhash(J.from_bytes($(a.stakeCredential.hash))):H.from_scripthash(ct.from_bytes($(a.stakeCredential.hash)));e.txBuilder.add_certificate(Lt.new_stake_deregistration(Ar.new(_)),t?ke.new_plutus_witness(gn.new(rt.from_bytes($(t)),void 0,void 0)):void 0)}),this}registerPool(n){return this.tasks.push(async t=>{let e=await dv(n,t.lucid),a=Lt.new_pool_registration(e);t.txBuilder.add_certificate(a,void 0)}),this}updatePool(n){return this.tasks.push(async t=>{let e=await dv(n,t.lucid);e.set_is_update(!0);let a=Lt.new_pool_registration(e);t.txBuilder.add_certificate(a,void 0)}),this}retirePool(n,t){return this.tasks.push(e=>{let a=Lt.new_pool_retirement(Rr.new(J.from_bech32(n),t));e.txBuilder.add_certificate(a,void 0)}),this}withdraw(n,t,e){return this.tasks.push(a=>{a.txBuilder.add_withdrawal(zt.from_address(sc(n,a.lucid)),S.from_str(t.toString()),e?ke.new_plutus_witness(gn.new(rt.from_bytes($(e)),void 0,void 0)):void 0)}),this}addSigner(n){let t=this.lucid.utils.getAddressDetails(n);if(!t.paymentCredential&&!t.stakeCredential)throw new Error("Not a valid address.");let e=t.type==="Reward"?t.stakeCredential:t.paymentCredential;if(e.type==="Script")throw new Error("Only key hashes are allowed as signers.");return this.addSignerKey(e.hash)}addSignerKey(n){return this.tasks.push(t=>{t.txBuilder.add_required_signer(J.from_bytes($(n)))}),this}validFrom(n){return this.tasks.push(t=>{let e=t.lucid.utils.unixTimeToSlot(n);t.txBuilder.set_validity_start_interval(S.from_str(e.toString()))}),this}validTo(n){return this.tasks.push(t=>{let e=t.lucid.utils.unixTimeToSlot(n);t.txBuilder.set_ttl(S.from_str(e.toString()))}),this}attachMetadata(n,t){return this.tasks.push(e=>{e.txBuilder.add_json_metadatum(S.from_str(n.toString()),JSON.stringify(t))}),this}attachMetadataWithConversion(n,t){return this.tasks.push(e=>{e.txBuilder.add_json_metadatum_with_schema(S.from_str(n.toString()),JSON.stringify(t),Qb.BasicConversions)}),this}addNetworkId(n){return this.tasks.push(t=>{t.txBuilder.set_network_id(wn.from_bytes($(n.toString(16).padStart(2,"0"))))}),this}attachSpendingValidator(n){return this.tasks.push(t=>{nd(t,n)}),this}attachMintingPolicy(n){return this.tasks.push(t=>{nd(t,n)}),this}attachCertificateValidator(n){return this.tasks.push(t=>{nd(t,n)}),this}attachWithdrawalValidator(n){return this.tasks.push(t=>{nd(t,n)}),this}compose(n){return n&&(this.tasks=this.tasks.concat(n.tasks)),this}async complete(n){var _,i,o,c,d,f,h,v,y,x,O,P,A;if([(i=(_=n==null?void 0:n.change)==null?void 0:_.outputData)==null?void 0:i.hash,(c=(o=n==null?void 0:n.change)==null?void 0:o.outputData)==null?void 0:c.asHash,(f=(d=n==null?void 0:n.change)==null?void 0:d.outputData)==null?void 0:f.inline].filter(m=>m).length>1)throw new Error("Not allowed to set hash, asHash and inline at the same time.");let t=this.tasks.shift();for(;t;)await t(this),t=this.tasks.shift();let e=await this.lucid.wallet.getUtxosCore(),a=sc(((h=n==null?void 0:n.change)==null?void 0:h.address)||await this.lucid.wallet.address(),this.lucid);return(n!=null&&n.coinSelection||(n==null?void 0:n.coinSelection)===void 0)&&this.txBuilder.add_inputs_from(e,a,Uint32Array.from([200,1e3,1500,800,800,5e3])),this.txBuilder.balance(a,(y=(v=n==null?void 0:n.change)==null?void 0:v.outputData)!=null&&y.hash?Wt.new_data_hash(ee.from_hex(n.change.outputData.hash)):(O=(x=n==null?void 0:n.change)==null?void 0:x.outputData)!=null&&O.asHash?(this.txBuilder.add_plutus_data(rt.from_bytes($(n.change.outputData.asHash))),Wt.new_data_hash(Cs(rt.from_bytes($(n.change.outputData.asHash))))):(A=(P=n==null?void 0:n.change)==null?void 0:P.outputData)!=null&&A.inline?Wt.new_data(Nn.new(rt.from_bytes($(n.change.outputData.inline)))):void 0),new lv(this.lucid,await this.txBuilder.construct(e,a,(n==null?void 0:n.nativeUplc)===void 0?!0:n==null?void 0:n.nativeUplc))}async toString(){let n=this.tasks.shift();for(;n;)await n(this),n=this.tasks.shift();return _t(this.txBuilder.to_bytes())}};function nd(n,{type:t,script:e}){if(t==="Native")return n.txBuilder.add_native_script(St.from_bytes($(e)));if(t==="PlutusV1")return n.txBuilder.add_plutus_script(wt.from_bytes($(_i(e))));if(t==="PlutusV2")return n.txBuilder.add_plutus_v2_script(wt.from_bytes($(_i(e))));throw new Error("No variant matched.")}async function dv(n,t){let e=Xt.new();n.owners.forEach(o=>{let{stakeCredential:c}=t.utils.getAddressDetails(o);if((c==null?void 0:c.type)==="Key")e.add(J.from_hex(c.hash));else throw new Error("Only key hashes allowed for pool owners.")});let a=n.metadataUrl?await fetch(n.metadataUrl).then(o=>o.arrayBuffer()):null,_=a?Er.from_bytes(Up(new Uint8Array(a))):null,i=Tr.new();return n.relays.forEach(o=>{switch(o.type){case"SingleHostIp":{let c=o.ipV4?vr.new(new Uint8Array(o.ipV4.split(".").map(f=>parseInt(f)))):void 0,d=o.ipV6?kr.new($(o.ipV6.replaceAll(":",""))):void 0;i.add(Qe.new_single_host_addr(Ir.new(o.port,c,d)));break}case"SingleHostDomainName":{i.add(Qe.new_single_host_name(Fr.new(o.port,wa.new(o.domainName))));break}case"MultiHost":{i.add(Qe.new_multi_host_name(jr.new(ga.new(o.domainName))));break}}}),zr.new(Or.new(J.from_bech32(n.poolId),mn.from_hex(n.vrfKeyHash),S.from_str(n.pledge.toString()),S.from_str(n.cost.toString()),at.from_float(n.margin),zt.from_address(sc(n.rewardAddress,t)),e,i,_?Cr.new(ar.new(n.metadataUrl),_):void 0))}function sc(n,t){let{type:e,networkId:a}=t.utils.getAddressDetails(n),_=Ui(t.network);if(a!==_)throw new Error(`Invalid address: Expected address with network id ${_}, but got ${a}`);return e==="Byron"?Re.from_base58(n).to_address():vt.from_bech32(n)}function N3(n,t={addressType:"Base",accountIndex:0,network:"Mainnet"}){function e(y){if(typeof y!="number")throw new Error("Type number required here!");return 2147483648+y}let a=a3(n),_=Pn.from_bip39_entropy($(a),t.password?new TextEncoder().encode(t.password):new Uint8Array).derive(e(1852)).derive(e(1815)).derive(e(t.accountIndex)),i=_.derive(0).derive(0).to_raw_key(),o=_.derive(2).derive(0).to_raw_key(),c=i.to_public().hash(),d=o.to_public().hash(),f=t.network==="Mainnet"?1:0,h=t.addressType==="Base"?Zn.new(f,H.from_keyhash(c),H.from_keyhash(d)).to_address().to_bech32(void 0):Tn.new(f,H.from_keyhash(c)).to_address().to_bech32(void 0),v=t.addressType==="Base"?zt.new(f,H.from_keyhash(d)).to_address().to_bech32(void 0):null;return{address:h,rewardAddress:v,paymentKey:i.to_bech32(),stakeKey:t.addressType==="Base"?o.to_bech32():null}}function T3(n,t,e){let a=[],_=n.body().inputs();for(let x=0;x<_.len();x++){let O=_.get(x),P=_t(O.transaction_id().to_bytes()),A=parseInt(O.index().to_str()),m=e.find(b=>b.txHash===P&&b.outputIndex===A);if(m){let{paymentCredential:b}=Un(m.address);a.push(b==null?void 0:b.hash)}}let i=n.body();function o(x){var P,A,m,b,g,T,I;let O=x.certs();if(O)for(let M=0;Mb.txHash===P&&b.outputIndex===A);if(m){let{paymentCredential:b}=Un(m.address);a.push(b==null?void 0:b.hash)}}return a.filter(x=>t.includes(x))}function Qp(n,t,e){let a=Ln.new();a.set_algorithm_id(gt.from_algorithm_id(Gl.EdDSA)),a.set_header(gt.new_text("address"),jt.new_bytes($(n)));let _=Ze.new(a),i=Ln.new(),o=Ht.new(_,i),c=Is.new(o,$(t),!1),d=c.make_data_to_sign().to_bytes(),f=qt.from_bech32(e),h=f.sign(d).to_bytes(),v=c.build(h),y=e_.new(gt.from_key_type(p0.OKP));return y.set_algorithm_id(gt.from_algorithm_id(Gl.EdDSA)),y.set_header(gt.new_int(je.new_negative(Ut.from_str("1"))),jt.new_int(je.new_i32(6))),y.set_header(gt.new_int(je.new_negative(Ut.from_str("2"))),jt.new_bytes(f.to_public().as_bytes())),{signature:_t(v.to_bytes()),key:_t(y.to_bytes())}}function I3(n,t,e,a){let _=Vr.from_bytes($(a.signature)),i=e_.from_bytes($(a.key)),o=_.headers().protected().deserialized_headers(),c=(()=>{var A;try{return _t((A=o.header(gt.new_text("address")))==null?void 0:A.as_bytes())}catch{throw new Error("No address found in signature.")}})(),d=(()=>{var A,m,b;try{let g=(A=o.algorithm_id())==null?void 0:A.as_int();return g!=null&&g.is_positive()?parseInt((m=g.as_positive())==null?void 0:m.to_str()):parseInt((b=g==null?void 0:g.as_negative())==null?void 0:b.to_str())}catch{throw new Error("Failed to retrieve Algorithm Id.")}})(),f=(()=>{var A,m,b;try{let g=(A=i.algorithm_id())==null?void 0:A.as_int();return g!=null&&g.is_positive()?parseInt((m=g.as_positive())==null?void 0:m.to_str()):parseInt((b=g==null?void 0:g.as_negative())==null?void 0:b.to_str())}catch{throw new Error("Failed to retrieve Algorithm Id.")}})(),h=(()=>{var A,m,b;try{let g=(A=i.header(gt.new_int(je.new_negative(Ut.from_str("1")))))==null?void 0:A.as_int();return g!=null&&g.is_positive()?parseInt((m=g.as_positive())==null?void 0:m.to_str()):parseInt((b=g==null?void 0:g.as_negative())==null?void 0:b.to_str())}catch{throw new Error("Failed to retrieve Curve.")}})(),v=(()=>{var A,m;try{let b=i.key_type().as_int();return b!=null&&b.is_positive()?parseInt((A=b.as_positive())==null?void 0:A.to_str()):parseInt((m=b==null?void 0:b.as_negative())==null?void 0:m.to_str())}catch{throw new Error("Failed to retrieve Key Type.")}})(),y=(()=>{var A;try{return bn.from_bytes((A=i.header(gt.new_int(je.new_negative(Ut.from_str("2")))))==null?void 0:A.as_bytes())}catch{throw new Error("No public key found.")}})(),x=(()=>{try{return _t(_.payload())}catch{throw new Error("No payload found.")}})(),O=me.from_bytes(_.signature()),P=_.signed_data(void 0,void 0).to_bytes();return c!==n||t!==y.hash().to_hex()||d!==f&&d!==Gl.EdDSA||h!==6||v!==1||x!==e?!1:y.verify(P,O)}var F3=class{constructor(n,t,e){Object.defineProperty(this,"lucid",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"address",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"payload",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.lucid=n,this.address=t,this.payload=e}sign(){return this.lucid.wallet.signMessage(this.address,this.payload)}signWithPrivateKey(n){let{paymentCredential:t,stakeCredential:e,address:{hex:a}}=this.lucid.utils.getAddressDetails(this.address),_=(t==null?void 0:t.hash)||(e==null?void 0:e.hash),i=qt.from_bech32(n).to_public().hash().to_hex();if(!_||_!==i)throw new Error(`Cannot sign message for address: ${this.address}.`);return Qp(a,this.payload,n)}},uv=class{constructor(n,t=Wj){Object.defineProperty(this,"ledger",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mempool",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"chain",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"blockHeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"slot",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"protocolParameters",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"datumTable",{enumerable:!0,configurable:!0,writable:!0,value:{}});let e="00".repeat(32);this.blockHeight=0,this.slot=0,this.time=Date.now(),this.ledger={},n.forEach(({address:a,assets:_},i)=>{this.ledger[e+i]={utxo:{txHash:e,outputIndex:i,address:a,assets:_},spent:!1}}),this.protocolParameters=t}now(){return this.time}awaitSlot(n=1){this.slot+=n,this.time+=n*1e3;let t=this.blockHeight;if(this.blockHeight=Math.floor(this.slot/20),this.blockHeight>t){for(let[e,{utxo:a,spent:_}]of Object.entries(this.mempool))this.ledger[e]={utxo:a,spent:_};for(let[e,{spent:a}]of Object.entries(this.ledger))a&&delete this.ledger[e];this.mempool={}}}awaitBlock(n=1){this.blockHeight+=n,this.slot+=n*20,this.time+=n*20*1e3;for(let[t,{utxo:e,spent:a}]of Object.entries(this.mempool))this.ledger[t]={utxo:e,spent:a};for(let[t,{spent:e}]of Object.entries(this.ledger))e&&delete this.ledger[t];this.mempool={}}getUtxos(n){let t=Object.values(this.ledger).flatMap(({utxo:e})=>{if(typeof n=="string")return n===e.address?e:[];{let{paymentCredential:a}=Un(e.address);return(a==null?void 0:a.hash)===n.hash?e:[]}});return Promise.resolve(t)}getProtocolParameters(){return Promise.resolve(this.protocolParameters)}getDatum(n){return Promise.resolve(this.datumTable[n])}getUtxosWithUnit(n,t){let e=Object.values(this.ledger).flatMap(({utxo:a})=>{if(typeof n=="string")return n===a.address&&a.assets[t]>0n?a:[];{let{paymentCredential:_}=Un(a.address);return(_==null?void 0:_.hash)===n.hash&&a.assets[t]>0n?a:[]}});return Promise.resolve(e)}getUtxosByOutRef(n){return Promise.resolve(n.flatMap(t=>{var e;return((e=this.ledger[t.txHash+t.outputIndex])==null?void 0:e.utxo)||[]}))}getUtxoByUnit(n){let t=Object.values(this.ledger).flatMap(({utxo:e})=>e.assets[n]>0n?e:[]);if(t.length>1)throw new Error("Unit needs to be an NFT or only held by one address.");return Promise.resolve(t[0])}getDelegation(n){var t,e,a,_;return Promise.resolve({poolId:((e=(t=this.chain[n])==null?void 0:t.delegation)==null?void 0:e.poolId)||null,rewards:((_=(a=this.chain[n])==null?void 0:a.delegation)==null?void 0:_.rewards)||0n})}awaitTx(n){return this.mempool[n+0]&&this.awaitBlock(),Promise.resolve(!0)}distributeRewards(n){for(let[t,{registeredStake:e,delegation:a}]of Object.entries(this.chain))e&&a.poolId&&(this.chain[t]={registeredStake:e,delegation:{poolId:a.poolId,rewards:a.rewards+=n}});this.awaitBlock()}submitTx(n){var Et,De,jn,dr,dt,kt,Ae,V,it,pt;let t=yn.from_bytes($(n)),e=t.body(),a=t.witness_set(),_=a.plutus_data(),i=da(e).to_hex(),o=e.validity_start_interval()?parseInt(e.validity_start_interval().to_str()):null,c=e.ttl()?parseInt(e.ttl().to_str()):null;if(Number.isInteger(o)&&this.slotc)throw new Error(`Upper bound (${c}) not in slot range (${this.slot}).`);let d=(()=>{let N={};for(let D=0;D<((_==null?void 0:_.len())||0);D++){let G=_.get(D),U=Cs(G).to_hex();N[U]=_t(G.to_bytes())}return N})(),f=new Set,h=(()=>{var D;let N=[];for(let G=0;G<(((D=a.vkeys())==null?void 0:D.len())||0);G++){let U=a.vkeys().get(G),tt=U.vkey().public_key(),Tt=tt.hash().to_hex();if(!tt.verify($(i),U.signature()))throw new Error(`Invalid vkey witness. Key hash: ${Tt}`);N.push(Tt)}return N})(),v=Xt.new();h.forEach(N=>v.add(J.from_hex(N)));let y=(()=>{var D;let N=[];for(let G=0;G<(((D=a.native_scripts())==null?void 0:D.len())||0);G++){let U=a.native_scripts().get(G),tt=U.hash(dn.NativeScript).to_hex();if(!U.verify(Number.isInteger(o)?S.from_str(o.toString()):void 0,Number.isInteger(c)?S.from_str(c.toString()):void 0,v))throw new Error(`Invalid native script witness. Script hash: ${tt}`);for(let Tt=0;Tt{var D,G;let N=[];for(let U=0;U<(((D=a.plutus_scripts())==null?void 0:D.len())||0);U++){let tt=a.plutus_scripts().get(U).hash(dn.PlutusV1).to_hex();N.push(tt)}for(let U=0;U<(((G=a.plutus_v2_scripts())==null?void 0:G.len())||0);U++){let tt=a.plutus_v2_scripts().get(U).hash(dn.PlutusV2).to_hex();N.push(tt)}return N})(),A=e.inputs();A.sort();let m=[];for(let N=0;N{var G;let N={0:"Spend",1:"Mint",2:"Cert",3:"Reward"},D=[];for(let U=0;U<(((G=a.redeemers())==null?void 0:G.len())||0);U++){let tt=a.redeemers().get(U);D.push({tag:N[tt.tag().kind()],index:parseInt(tt.index().to_str())})}return D})();function g(N,D,G){switch(N.type){case"Key":{if(!h.includes(N.hash))throw new Error(`Missing vkey witness. Key hash: ${N.hash}`);f.add(N.hash);break}case"Script":{if(y.includes(N.hash)){f.add(N.hash);break}else if(x[N.hash]){if(!x[N.hash].verify(Number.isInteger(o)?S.from_str(o.toString()):void 0,Number.isInteger(c)?S.from_str(c.toString()):void 0,v))throw new Error(`Invalid native script witness. Script hash: ${N.hash}`);break}else if((P.includes(N.hash)||O.includes(N.hash))&&b.find(U=>U.tag===D&&U.index===G)){f.add(N.hash);break}throw new Error(`Missing script witness. Script hash: ${N.hash}`)}}}for(let N=0;N<(((De=e.collateral())==null?void 0:De.len())||0);N++){let D=e.collateral().get(N),G=D.transaction_id().to_hex()+D.index().to_str(),U=this.ledger[G]||this.mempool[G];if(!U||U.spent)throw new Error(`Could not read UTxO: ${JSON.stringify({txHash:U==null?void 0:U.utxo.txHash,outputIndex:U==null?void 0:U.utxo.outputIndex})} -It does not exist or was already spent.`);let{paymentCredential:tt}=Un(U.utxo.address);if((tt==null?void 0:tt.type)==="Script")throw new Error("Collateral inputs can only contain vkeys.");g(tt,null,null)}for(let N=0;N<(((jn=e.required_signers())==null?void 0:jn.len())||0);N++){let D=e.required_signers().get(N);g({type:"Key",hash:D.to_hex()},null,null)}for(let N=0;N<(((dr=e.mint())==null?void 0:dr.keys().len())||0);N++){let D=e.mint().keys().get(N).to_hex();g({type:"Script",hash:D},"Mint",N)}let T=[];for(let N=0;N<(((dt=e.withdrawals())==null?void 0:dt.keys().len())||0);N++){let D=e.withdrawals().keys().get(N),G=BigInt(e.withdrawals().get(D).to_str()),U=D.to_address().to_bech32(void 0),{stakeCredential:tt}=Un(U);if(g(tt,"Reward",N),((kt=this.chain[U])==null?void 0:kt.delegation.rewards)!==G)throw new Error("Withdrawal amount doesn't match actual reward balance.");T.push({rewardAddress:U,withdrawal:G})}let I=[];for(let N=0;N<(((Ae=e.certs())==null?void 0:Ae.len())||0);N++){let D=e.certs().get(N);switch(D.kind()){case 0:{let G=D.as_stake_registration(),U=zt.new(Sr.testnet().network_id(),G.stake_credential()).to_address().to_bech32(void 0);if((V=this.chain[U])!=null&&V.registeredStake)throw new Error(`Stake key is already registered. Reward address: ${U}`);I.push({type:"Registration",rewardAddress:U});break}case 1:{let G=D.as_stake_deregistration(),U=zt.new(Sr.testnet().network_id(),G.stake_credential()).to_address().to_bech32(void 0),{stakeCredential:tt}=Un(U);if(g(tt,"Cert",N),!((it=this.chain[U])!=null&&it.registeredStake))throw new Error(`Stake key is already deregistered. Reward address: ${U}`);I.push({type:"Deregistration",rewardAddress:U});break}case 2:{let G=D.as_stake_delegation(),U=zt.new(Sr.testnet().network_id(),G.stake_credential()).to_address().to_bech32(void 0),tt=G.pool_keyhash().to_bech32("pool"),{stakeCredential:Tt}=Un(U);if(g(Tt,"Cert",N),!((pt=this.chain[U])!=null&&pt.registeredStake)&&!I.find(Me=>Me.type==="Registration"&&Me.rewardAddress===U))throw new Error(`Stake key is not registered. Reward address: ${U}`);I.push({type:"Delegation",rewardAddress:U,poolId:tt});break}}}m.forEach(({entry:{utxo:N}},D)=>{let{paymentCredential:G}=Un(N.address);g(G,"Spend",D)});let M=(()=>{let N=[];for(let D=0;D!f.has(N));if(F)throw new Error(`Extraneous vkey witness. Key hash: ${F}`);let[B]=y.filter(N=>!f.has(N));if(B)throw new Error(`Extraneous native script. Script hash: ${B}`);let[et]=P.filter(N=>!f.has(N));if(et)throw new Error(`Extraneous plutus script. Script hash: ${et}`);let[q]=Object.keys(d).filter(N=>!f.has(N));if(q)throw new Error(`Extraneous plutus data. Datum hash: ${q}`);m.forEach(({entry:N,type:D})=>{let G=N.utxo.txHash+N.utxo.outputIndex;N.spent=!0,D==="Ledger"?this.ledger[G]=N:D==="Mempool"&&(this.mempool[G]=N)}),T.forEach(({rewardAddress:N,withdrawal:D})=>{this.chain[N].delegation.rewards-=D}),I.forEach(({type:N,rewardAddress:D,poolId:G})=>{switch(N){case"Registration":{this.chain[D]?this.chain[D].registeredStake=!0:this.chain[D]={registeredStake:!0,delegation:{poolId:null,rewards:0n}};break}case"Deregistration":{this.chain[D].registeredStake=!1,this.chain[D].delegation.poolId=null;break}case"Delegation":this.chain[D].delegation.poolId=G}}),M.forEach(({utxo:N,spent:D})=>{this.mempool[N.txHash+N.outputIndex]={utxo:N,spent:D}});for(let[N,D]of Object.entries(d))this.datumTable[N]=D;return Promise.resolve(i)}log(){var a;function n(_){let i=_==="lovelace"?"1":_,o=0;for(let h=0;hTn.new(this.network==="Mainnet"?1:0,H.from_keyhash(e)).to_address().to_bech32(void 0),rewardAddress:async()=>null,getUtxos:async()=>await this.utxosAt(Li(await this.wallet.address())),getUtxosCore:async()=>{let a=await this.utxosAt(Li(await this.wallet.address())),_=rr.new();return a.forEach(i=>{_.add(ic(i))}),_},getDelegation:async()=>({poolId:null,rewards:0n}),signTx:async a=>{let _=Ss(da(a.body()),t),i=Ka.new();return i.add_vkey(_),i.build()},signMessage:async(a,_)=>{let{paymentCredential:i,address:{hex:o}}=this.utils.getAddressDetails(a),c=i==null?void 0:i.hash,d=e.to_hex();if(!c||c!==d)throw new Error(`Cannot sign message for address: ${a}.`);return Qp(o,_,n)},submitTx:async a=>await this.provider.submitTx(a)},this}selectWallet(n){let t=async()=>{let[e]=await n.getUsedAddresses();if(e)return e;let[a]=await n.getUnusedAddresses();return a};return this.wallet={address:async()=>vt.from_bytes($(await t())).to_bech32(void 0),rewardAddress:async()=>{let[e]=await n.getRewardAddresses();return e?zt.from_address(vt.from_bytes($(e))).to_address().to_bech32(void 0):null},getUtxos:async()=>(await n.getUtxos()||[]).map(e=>{let a=Te.from_bytes($(e));return ov(a)}),getUtxosCore:async()=>{let e=rr.new();return(await n.getUtxos()||[]).forEach(a=>{e.add(Te.from_bytes($(a)))}),e},getDelegation:async()=>{let e=await this.wallet.rewardAddress();return e?await this.delegationAt(e):{poolId:null,rewards:0n}},signTx:async e=>{let a=await n.signTx(_t(e.to_bytes()),!0);return Ie.from_bytes($(a))},signMessage:async(e,a)=>{let _=_t(vt.from_bech32(e).to_bytes());return await n.signData(_,a)},submitTx:async e=>await n.submitTx(e)},this}selectWalletFrom({address:n,utxos:t,rewardAddress:e}){let a=this.utils.getAddressDetails(n);return this.wallet={address:async()=>n,rewardAddress:async()=>(!e&&a.stakeCredential?a.stakeCredential.type==="Key"?zt.new(this.network==="Mainnet"?1:0,H.from_keyhash(J.from_hex(a.stakeCredential.hash))).to_address().to_bech32(void 0):zt.new(this.network==="Mainnet"?1:0,H.from_scripthash(ct.from_hex(a.stakeCredential.hash))).to_address().to_bech32(void 0):e)||null,getUtxos:async()=>t||await this.utxosAt(Li(n)),getUtxosCore:async()=>{let _=rr.new();return(t||await this.utxosAt(Li(n))).forEach(i=>_.add(ic(i))),_},getDelegation:async()=>{let _=await this.wallet.rewardAddress();return _?await this.delegationAt(_):{poolId:null,rewards:0n}},signTx:async()=>{throw new Error("Not implemented")},signMessage:async()=>{throw new Error("Not implemented")},submitTx:async _=>await this.provider.submitTx(_)},this}selectWalletFromSeed(n,t){let{address:e,rewardAddress:a,paymentKey:_,stakeKey:i}=N3(n,{addressType:(t==null?void 0:t.addressType)||"Base",accountIndex:(t==null?void 0:t.accountIndex)||0,password:t==null?void 0:t.password,network:this.network}),o=qt.from_bech32(_).to_public().hash().to_hex(),c=i?qt.from_bech32(i).to_public().hash().to_hex():"",d={[o]:_,[c]:i};return this.wallet={address:async()=>e,rewardAddress:async()=>a||null,getUtxos:async()=>this.utxosAt(Li(e)),getUtxosCore:async()=>{let f=rr.new();return(await this.utxosAt(Li(e))).forEach(h=>f.add(ic(h))),f},getDelegation:async()=>{let f=await this.wallet.rewardAddress();return f?await this.delegationAt(f):{poolId:null,rewards:0n}},signTx:async f=>{let h=await this.utxosAt(e),v=T3(f,[o,c],h),y=Ka.new();return v.forEach(x=>{let O=Ss(da(f.body()),qt.from_bech32(d[x]));y.add_vkey(O)}),y.build()},signMessage:async(f,h)=>{let{paymentCredential:v,stakeCredential:y,address:{hex:x}}=this.utils.getAddressDetails(f),O=(v==null?void 0:v.hash)||(y==null?void 0:y.hash),P=d[O];if(!P)throw new Error(`Cannot sign message for address: ${f}.`);return Qp(x,h,P)},submitTx:async f=>await this.provider.submitTx(f)},this}};const D3=["Build","Contracts","Wallets","Transact"],A3={selectedTabIndex:0,network:"Emulator",wallets:[],contracts:[],addContractError:void 0},fv=Vo({name:"management",initialState:A3,reducers:{selectTab(n,t){n.selectedTabIndex=t.payload},setNetwork(n,t){n.network=t.payload},addWallet(n,t){n.wallets.push(t.payload)},addContract(n,t){let e=0;for(let a of n.contracts){const _=a.name===t.payload.name,i=a.script.script===t.payload.script.script;if(_&&i){const o=`Contract already exists as ${a.name} v${a.version}.`;n.addContractError=o;return}a.name===t.payload.name&&a.version>=e&&(e=a.version+1)}n.contracts.unshift({...t.payload,version:e})},removeContract(n,t){const{name:e,version:a}=t.payload;n.contracts=n.contracts.filter(_=>!(_.name===e&&_.version===a))},clearAddContractError(n){n.addContractError=void 0},setAddContractError(n,t){n.addContractError=t.payload}}}),{selectTab:M3,setNetwork:lS,addWallet:B3,addContract:wv,removeContract:L3,clearAddContractError:U3,setAddContractError:rd}=fv.actions,V3=fv.reducer;let oc,Gp;function ad(){const n=de(i=>i.management.network),[t,e]=W.useState(!0),a=de(i=>i.management.wallets),_=hr();return W.useEffect(()=>{const i=n==="Emulator"?"Custom":n;if(oc&&oc.network===i){e(!1);return}let o;return e(!0),pv.new(void 0,i).then(c=>(oc=c,n==="Emulator"&&a.length===0?(o=iv(),c.selectWalletFromSeed(o),c.wallet.address()):a.length===0?(c.selectWalletFromSeed(a[0].seed),c.wallet.address()):Promise.resolve(""))).then(c=>{n==="Emulator"&&!Gp&&(Gp={address:c,seed:o},oc.provider=new uv([{address:c,assets:{lovelace:20000000000n}}]),o&&a.length===0&&_(B3(Gp)))}).finally(()=>{e(!1)}),()=>{}},[n]),{isLucidLoading:t,lucid:oc}}const q3={tooltips:[]},gv=Vo({name:"tooltip",initialState:q3,reducers:{showTooltip(n,t){const{id:e,message:a,position:_}=t.payload,i=n.tooltips.findIndex(o=>o.id===e);i!==-1?n.tooltips[i]={id:e,message:a,position:_}:n.tooltips.push({id:e,message:a,position:_})},hideTooltip(n,t){n.tooltips=n.tooltips.filter(e=>e.id!==t.payload)}}}),{showTooltip:H3,hideTooltip:hv}=gv.actions,$3=gv.reducer,W3=1500;let bv=0;function K3(){return bv++,bv.toString()}function yv(n,t,e={x:0,y:0},a=()=>{}){var o;const _=hr(),i=W.useRef(null);t.current&&!((o=t.current)!=null&&o.id)&&(t.current.id=K3()),W.useEffect(()=>{var c,d;if(!n&&i.current)clearTimeout(i.current),_(hv(((c=t.current)==null?void 0:c.id)||"")),a();else if(n&&t.current){i.current!==null&&clearTimeout(i.current);const f=t.current.getBoundingClientRect();_(H3({id:(d=t.current)==null?void 0:d.id,message:n,position:{x:f.left+e.x,y:f.top+e.y}})),i.current=setTimeout(()=>{var h;_(hv(((h=t.current)==null?void 0:h.id)||"")),a()},W3)}return()=>{i.current&&clearTimeout(i.current)}},[n,t])}function Q3(){const n=W.useRef(null),{isLucidLoading:t,lucid:e}=ad(),[a,_]=W.useState("aiken"),[i,o]=W.useState(void 0),[c,d]=W.useState(void 0),f=de(g=>g.project.buildResults),h=de(g=>g.files.files),v=de(g=>g.management.addContractError),y=hr();if(yv(v||"",n,{x:-100,y:-50},()=>{y(U3())}),t||!e)return z.jsx("div",{});const x=e,O=f==null?void 0:f.flatMap(g=>g.validators),P=(O==null?void 0:O.map(g=>g.name))||[],A=h.filter(g=>g.type==="json"),m=A.map(g=>g.name).concat(["None"]);i===void 0&&a==="aiken"&&P.length>0&&o(P[0]),i===void 0&&a==="native"&&m.length>0&&o(m[0]),c===void 0&&m.length>0&&d(m[0]);const b=i===void 0?"disabled":"";return z.jsxs("div",{className:"add-contract-container",children:[z.jsx("div",{className:"add-contract-header",children:"Add a Contract"}),z.jsxs("div",{className:"add-contract-selection-container",children:[z.jsx("div",{className:"add-contract-input-label",children:"Script Kind: "}),z.jsxs("select",{className:"add-contract-select",defaultValue:a,onChange:g=>{_(g.target.value)},children:[z.jsx("option",{value:"aiken",children:"Aiken"}),z.jsx("option",{value:"native",children:"Native Script"})]})]}),z.jsxs("div",{className:"add-contract-selection-container",children:[z.jsx("div",{className:"add-contract-input-label",children:"Validator: "}),a==="aiken"?z.jsx("select",{className:"add-contract-select",onChange:g=>{o(g.target.value)},children:P==null?void 0:P.map((g,T)=>z.jsx("option",{value:g,children:g},g+T))}):z.jsx("select",{className:"add-contract-select",onChange:g=>{o(g.target.value)},children:m==null?void 0:m.map(g=>g==="None"?null:z.jsx("option",{value:g,children:g},g))})]}),z.jsxs("div",{className:"add-contract-selection-container",children:[a==="aiken"?z.jsx("div",{className:"add-contract-input-label",children:"Params: "}):null,a==="aiken"?z.jsx("select",{className:"add-contract-select",onChange:g=>{d(g.target.value)},children:m==null?void 0:m.map(g=>z.jsx("option",{value:g,children:g},g))}):null]}),z.jsxs("div",{className:"add-contract-selection-container add-contract-button-container",children:[z.jsx("div",{}),z.jsx("button",{ref:n,className:`add-contract-button ${b}`,onClick:()=>{if(a==="aiken"){const g=A.find(B=>B.name===c),T=g==null?void 0:g.content,I=(O==null?void 0:O.find(B=>B.name===i))||(O==null?void 0:O[0]);if(!I){console.error(`No known validator ${i}`);return}let M=[];if(T)try{const B=JSON.parse(T);M=Xp(B)}catch(B){return B.message&&B.message.includes("JSON.parse")?y(rd(`Invalid JSON in ${g.name}`)):y(rd(`JSON in ${g.name} cannot be converted to Data`))}const F={type:"PlutusV2",script:_i(z3(I.program,M))};y(wv({script:F,name:I.name,paramsFileName:(g==null?void 0:g.name)||"None"}))}else if(a==="native"){const g=A.find(I=>I.name===i),T=g==null?void 0:g.content;if(T)try{const I=JSON.parse(T),M=x.utils.nativeScriptFromJson(I);y(wv({script:M,name:i.split(".")[0],paramsFileName:g==null?void 0:g.name}))}catch(I){return I.message&&I.message.includes("JSON.parse")?y(rd(`Invalid JSON in ${g.name}`)):y(rd(`JSON in ${g.name} is not a valid native script`))}}},children:"Create Contract"})]})]})}function Xp(n){if(Array.isArray(n))return n.map(t=>Xp(t));if("constructor"in n&&Array.isArray(n.fields)){const t=n.fields.map(e=>typeof e=="object"&&e!==null?Xp(e):e);return new Fe(n.constructor,t)}else{if("bytes"in n)return n.bytes;if("int"in n)return n.int;throw"map_0"in n?new Error("Map type encountered, operation not supported"):new Error("Unknown type in JSON structure")}}function _d({value:n}){const[t,e]=W.useState(!1);let a=null;const _=()=>{navigator.clipboard.writeText(n),e(!0),a&&clearTimeout(a),a=setTimeout(()=>e(!1),1e3)};return z.jsx("span",{title:"Copy",onClick:_,className:"copy-widget",style:{cursor:"pointer"},children:t?"\u2713":"\u{1F4CB}"})}function G3(){const{isLucidLoading:n,lucid:t}=ad(),e=de(i=>i.management.contracts),a=hr();if(n||!t)return z.jsx("div",{});const _=t;return z.jsxs("div",{className:"contracts-content",children:[z.jsx("div",{className:"contracts-heading",children:z.jsx("strong",{children:"Contracts"})}),z.jsx(Q3,{}),z.jsx("div",{className:"contracts-container",children:e.map(i=>{const o=_.utils.validatorToAddress(i.script),c=_.utils.validatorToScriptHash(i.script);return z.jsxs("div",{className:"contract-container",children:[z.jsxs("div",{className:"contract-header",children:[z.jsx("div",{className:"contract-name",children:i.name}),z.jsxs("div",{className:"contract-version",children:["Version ",i.version]})]}),z.jsx("div",{className:"contract-data-holder",children:z.jsxs("div",{className:"contract-params",children:[z.jsx("div",{className:"contract-params-label",children:"Parameters"}),z.jsx("div",{className:"contract-params-content",children:i.paramsFileName})]})}),z.jsx("div",{className:"contract-data-holder",children:z.jsxs("div",{className:"contract-params",children:[z.jsx("div",{className:"contract-params-label",children:"Address"}),z.jsxs("div",{className:"contract-params-content",children:[Hl(o)," ",z.jsx(_d,{value:o})]})]})}),z.jsx("div",{className:"contract-data-holder",children:z.jsxs("div",{className:"contract-params",children:[z.jsx("div",{className:"contract-params-label",children:"Script Hash"}),z.jsxs("div",{className:"contract-params-content",children:[Hl(c)," ",z.jsx(_d,{value:c})]})]})}),z.jsx("div",{className:"delete-contract-button-container",children:z.jsx("button",{className:"delete-contract-button",onClick:()=>a(L3({version:i.version,name:i.name})),children:"Delete"})})]},`${i.name}${i.version}`)})})]})}function X3({utxo:n}){return z.jsxs("div",{className:"utxo-container",children:[z.jsxs("div",{className:"txid",children:[`${Hl(n.txHash,5,5)}@${n.outputIndex}`," ",z.jsx(_d,{value:n.txHash})]}),z.jsx("div",{className:"asset-container-container",children:Object.keys(n.assets).map(t=>z.jsxs("div",{className:"asset-container",children:[z.jsxs("div",{className:"asset-label",children:[t,": "]}),z.jsx("div",{className:"asset-value",children:n.assets[t].toString()})]},t))})]})}function J3({wallet:n,lucid:t}){const[e,a]=W.useState(void 0),[_,i]=W.useState(void 0);W.useEffect(()=>{t.provider.getUtxos(n.address).then(c=>{a(c)}).catch(c=>{i(c.message)})},[n]);const o=Hl(n.address);return z.jsxs("div",{className:"wallet-utxos-container",children:[z.jsxs("div",{className:"wallet-utxos-address",children:[o," ",z.jsx(_d,{value:n.address})]}),_===void 0?z.jsx("div",{className:"wallet-utxos",children:e==null?void 0:e.map(c=>z.jsx(X3,{utxo:c},c.txHash+c.outputIndex))}):z.jsx("div",{children:"utxoError"})]},n.address)}function Z3(){const{lucid:n}=ad(),t=de(a=>a.management.wallets),e=n;return z.jsxs("div",{className:"wallets-content",children:[z.jsx("div",{className:"build-results-heading",children:z.jsx("strong",{children:"Wallets"})}),t.map(a=>z.jsx(J3,{wallet:a,lucid:e},a.address))]})}function Y3(){const{isLucidLoading:n,lucid:t}=ad();return n||!t?z.jsx("div",{}):z.jsx("div",{className:"transact-content",children:"TODO: everything lmao"})}function tS(){const n=de(t=>t.management);return(()=>{if(n.selectedTabIndex===0)return z.jsx(Gx,{});if(n.selectedTabIndex===1)return z.jsx(G3,{});if(n.selectedTabIndex===2)return z.jsx(Z3,{});if(n.selectedTabIndex===3)return z.jsx(Y3,{})})()}function eS(){const n=de(_=>_.files),t=hr(),e=W.useRef(null),a=_=>{_.preventDefault(),e.current&&(e.current.scrollLeft+=_.deltaY*2)};return z.jsx("div",{className:"editor-tab-container",ref:e,onWheel:a,children:n.openFileIndices.map(_=>{const i=n.files[_],{name:o,extension:c}=xb(i.name),d=n.currentFileFocusedInEditorIndex===_?"highlight-open-focused-tab":"";return z.jsx("div",{className:`editor-tab ${d}`,onMouseUp:f=>{f.preventDefault(),f.button===1&&t(Ax(_))},onMouseDown:f=>{f.preventDefault(),f.button===0?t(bb(_)):f.button===1&&t(yb(_))},onMouseLeave:()=>{n.pendingCloseFileIndex===_&&t(yb(-1))},children:z.jsxs("div",{className:"editor-tab-label unselectable",children:[z.jsx("span",{className:"filename-start",children:o}),z.jsx("span",{className:"filename-end",children:c})]})},_)})})}const nS={visible:!1,options:[],position:{x:0,y:0}},mv=Vo({name:"contextMenu",initialState:nS,reducers:{showContextMenu(n,t){n.visible=!0,n.options=t.payload.options,n.position=t.payload.position},hideContextMenu(n){n.visible=!1,n.options=[],n.position={x:0,y:0}}}}),{showContextMenu:vv,hideContextMenu:kv}=mv.actions,rS=mv.reducer;function aS(){const n=de(a=>a.files),t=hr(),e=W.useRef(null);return W.useEffect(()=>{n.beingRenamedFileIndex!==-1&&e.current&&(e.current.focus(),e.current.select())},[n.beingRenamedFileIndex]),yv(n.renameFileError||"",e,{x:100,y:-10},()=>{t(Ux())}),z.jsxs("div",{className:"file-manager-container",children:[z.jsxs("div",{className:"file-manager-header",children:[z.jsx("div",{children:z.jsx("strong",{children:"Files"})}),z.jsxs("div",{className:"add-file-icon",onClick:()=>t(mb()),children:[z.jsx("span",{className:"add-file-icon-plus",children:"+"}),"\u{1F5CE}"]})]}),z.jsx("div",{className:"file-manager-file-list ",onContextMenu:a=>{a.preventDefault(),t(vv({options:[{name:"New File"}],position:{x:a.clientX,y:a.clientY}}))},children:n.files.map((a,_)=>{const{name:i,extension:o}=xb(a.name),c=_===n.currentFileFocusedInEditorIndex?"highlight-open-focused-file":"",d=n.openFileIndices.includes(_)?"highlight-open-file":"";return _===n.beingRenamedFileIndex?z.jsx("div",{className:`file-manager-file-entry file-rename-entry ${c} ${d}`,children:z.jsx("input",{ref:e,className:"file-rename-input",type:"text",defaultValue:a.name,onKeyDown:f=>{var h;f.key==="Enter"?(t(vb(((h=e.current)==null?void 0:h.value)||"error.error")),f.preventDefault()):f.key==="Escape"&&t(Mx())},onBlur:()=>{var f;t(vb(((f=e.current)==null?void 0:f.value)||"error.error"))}},"unique-id")},_):z.jsxs("div",{className:`file-manager-file-entry ${c} ${d} unselectable`,onClick:()=>{t(bb(_))},onContextMenu:f=>{f.stopPropagation(),f.preventDefault(),t(vv({options:[{name:"New File"},{name:"Delete File",data:{deletedFileIndex:_}},{name:"Rename File",data:{renamedFileIndex:_}}],position:{x:f.clientX,y:f.clientY}}))},children:[z.jsx("span",{className:"filename-start",children:i}),z.jsx("span",{className:"filename-end",children:o})]},_)})})]})}function _S(){const n=de(t=>t.tooltip.tooltips);return n.length===0?null:z.jsx(z.Fragment,{children:n.map(({id:t,message:e,position:a})=>z.jsx("div",{style:{position:"absolute",left:`${a.x}px`,top:`${a.y}px`},className:"tooltip",children:e},t))})}function iS(){const{visible:n,options:t,position:e}=de(i=>i.contextMenu),a=hr(),_=W.useRef(null);return W.useEffect(()=>{const i=o=>{_.current&&!_.current.contains(o.target)&&a(kv())};return n&&document.addEventListener("mousedown",i),()=>{document.removeEventListener("mousedown",i)}},[n,a]),n?z.jsx("div",{ref:_,style:{position:"absolute",left:`${e.x}px`,top:`${e.y}px`},className:"context-menu unselectable",children:t.map((i,o)=>z.jsx("div",{className:"context-menu-item",onClick:()=>{switch(i.name){case"New File":a(mb());break;case"Delete File":a(Bx(i.data.deletedFileIndex));break;case"Rename File":a(Lx(i.data.renamedFileIndex));break}a(kv())},children:i.name},o))}):null}function sS(){const n=de(e=>e.management),t=hr();return z.jsx("div",{className:"management-tab-container",children:D3.map((e,a)=>{const _=n.selectedTabIndex===a?"highlight-focused-management-tab":"";return z.jsx("div",{className:`management-tab ${_} unselectable`,onClick:()=>{t(M3(a))},children:e},a)})})}BigInt.prototype.toJSON=function(){return this.toString()};function oS(){const n=Nh(),[t,e]=W.useState(!0),[a,_]=W.useState(null),i=n.isLoading||t?"":"hidden",o=n.isLoading||t?"hidden":"";return z.jsxs(Cb.Provider,{value:a,children:[z.jsx(_S,{}),z.jsx(iS,{}),z.jsx("div",{className:`main-layout-container ${i}`,children:"!!!Loading... "}),z.jsx("div",{className:`main-layout-container ${o}`,children:z.jsxs("div",{className:"editor-and-management-view-container",children:[z.jsxs("div",{className:"editor-container",children:[z.jsx(Kx,{}),z.jsxs("div",{className:"editor-content-container",children:[z.jsx(aS,{}),z.jsxs("div",{className:"editor-and-tabs-container",children:[z.jsx(eS,{}),z.jsx(qx,{onLoad:c=>{_(c),e(!1)}})]})]})]}),z.jsxs("div",{className:"management-panel-container",children:[z.jsx(Qx,{}),z.jsx(sS,{}),z.jsx(tS,{})]})]})})]})}const cS=wx({reducer:{project:$x,files:Vx,tooltip:$3,contextMenu:rS,management:V3}});ud.createRoot(document.getElementById("root")).render(z.jsx(Jr.StrictMode,{children:z.jsx(w6,{store:cS,children:z.jsx(oS,{})})}))})(); diff --git a/index.html b/index.html index 7a8429b..97fc4f7 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ (Cool Name Here) - - + +