keyring-chatbot-agent-sdk-test 1.0.29 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  !function(){"use strict";try{if("undefined"!=typeof document){var e=document.createElement("style");e.appendChild(document.createTextNode(".chat-button{cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000026;transition:all .3s ease;border-radius:16px}.chat-button:hover{transform:scale(1.1);box-shadow:0 6px 16px #0003}.chat-button:active{transform:scale(.95)}.chat-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:transparent;display:flex;align-items:flex-end;justify-content:flex-end;z-index:9999;pointer-events:all;animation:fadeIn .2s ease}#chat-modal-title{color:#0b3988;font-weight:900;font-style:Regular;font-size:18px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;flex:1}.chat-modal-overlay.chat-modal-overlay--left{justify-content:flex-start}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.chat-modal{width:90%;max-width:480px;height:700px;max-height:calc(100dvh - 64px);background:#f5f5f7;border-radius:12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 20px 60px #0000004d;margin:20px;pointer-events:all;animation:slideUp .3s ease}@keyframes slideUp{0%{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.chat-modal-header{background:#fff;padding:8px 8px 8px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e5e7;flex-flow:column}.chat-modal-header-title{width:100%;display:flex;align-items:center;justify-content:space-between;overflow:hidden}.chat-modal-header-left{display:flex;align-items:center;gap:6px;overflow:hidden}.keyring-logo{width:22px;height:30px;display:flex;align-items:center;justify-content:center}.chat-modal-header h3{margin:0;font-size:18px;font-weight:700;color:#1a1a1d}.close-button{background:transparent;border:none;cursor:pointer;padding:8px;border-radius:8px;color:#666;transition:all .2s}.close-button:hover{background:#f5f5f7;color:#000}.chat-user-info{display:flex;align-items:center;gap:6px;width:100%}.user-wallet,.user-wallet a{font-size:14px;font-weight:500;color:#0b3988}.copy-address-btn{display:flex;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;padding:3px;color:#999;border-radius:4px;transition:color .15s,background .15s;line-height:0}@media(min-width:640px){.copy-address-btn:hover{color:#1a1a1d;background:#f0f0f0}}.chat-modal-messages-wrapper{position:relative;flex:1;overflow:hidden;display:flex;flex-direction:column}.chat-modal-messages{flex:1;padding:8px 16px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:8px}.date-separator{text-align:center;font-size:12px;font-weight:600;color:#666;align-self:center;width:fit-content;margin:0 auto 8px}.message{display:flex;animation:messageSlide .3s ease;position:relative}@keyframes messageSlide{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-bot{justify-content:flex-start}.message-user{justify-content:flex-end}.message-bubble{max-width:85%;padding:8px 16px;border-radius:20px}.message-bot .message-bubble{background:#fff;box-shadow:0 2px 8px #0000000f;border-bottom-left-radius:4px}.message-user .message-bubble{background:#5b7fff;color:#fff;border-bottom-right-radius:4px}.message-user .message-bubble a{color:#fff}.message-text{font-size:14px;line-height:1.5;word-wrap:break-word;white-space:pre-line}.message-bot .message-text{color:#1a1a1d}.message-user .message-text{color:#fff}.message-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;margin-bottom:8px}.message-button{flex:1 1 calc(50% - 4px);min-width:100px;padding:6px 12px;background:#fffffff2;border:1px solid #e0e0e0;border-radius:12px;font-size:13px;font-weight:500;color:#1a1a1d;cursor:pointer;transition:all .2s ease;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.message-button.full-width{flex:1 1 100%;text-align:center;white-space:normal;font-size:14px}@media(min-width:640px){.message-button:hover{background:#fff;border-color:#007aff;color:#007aff;transform:translateY(-1px);box-shadow:0 2px 8px #007aff26}.message-button:active{transform:translateY(0);box-shadow:0 1px 4px #007aff1a}}.message-user .message-button{background:#fff3;border-color:#ffffff4d;color:#fff}.message-user .message-button:hover{background:#ffffff4d;border-color:#ffffff80}.message-timestamp{line-height:1;font-size:11px;color:#999;display:flex;align-items:center;gap:4px;justify-content:flex-end}.message-user .message-timestamp{color:#ffffffb3}.check-icon{width:14px;height:14px}.typing-indicator .message-bubble{padding:12px 18px;display:flex;gap:6px;min-width:60px}.typing-dot{width:8px;height:8px;border-radius:50%;background:#999;animation:typingDot 1.4s infinite ease-in-out}.typing-dot:nth-child(1){animation-delay:0s}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes typingDot{0%,60%,to{transform:translateY(0);opacity:.7}30%{transform:translateY(-8px);opacity:1}}.suggestions-container{display:flex;flex-direction:column;gap:10px;margin-top:8px}.suggestion-button{background:#d4d8f0;border:none;padding:6px 12px;border-radius:12px;display:flex;gap:12px;cursor:pointer;transition:all .2s;font-size:14px;font-weight:500;color:#1a1a1d;width:100%;text-align:center;align-items:center;justify-content:center}.suggestion-button:hover{background:#c5caeb;transform:translateY(-1px)}.suggestion-icon{font-size:18px}.chat-modal-input{padding:8px 16px;background:#fff;border-top:1px solid #e5e5e7;display:flex;flex-direction:column;gap:8px;box-shadow:0 -5px 8px 4px #0000000d;border-radius:12px 12px 0 0}.chat-modal-input-row{display:flex;gap:12px;align-items:center}.chat-modal-input input{flex:1;padding:14px 18px;border:1px solid #e5e5e7;border-radius:12px;outline:none;font-size:16px;color:#1a1a1d;transition:all .2s;height:44px}.chat-modal-input input::placeholder{color:#999}.chat-modal-input input:focus{border-color:#5b7fff;box-shadow:0 0 0 3px #5b7fff1a}.chat-modal-input input:disabled{opacity:.6;cursor:not-allowed;background:#f5f5f7}.send-button{width:40px;height:40px;border-radius:50%;background:#5b7fff;border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s}.send-button:hover:not(:disabled){background:#4a6fee;transform:scale(1.05)}.send-button:disabled{opacity:.4;cursor:not-allowed}.chat-modal-messages::-webkit-scrollbar{width:6px}.chat-modal-messages::-webkit-scrollbar-thumb{background:#d1d1d6;border-radius:3px}@media(max-width:640px){.chat-modal{width:100%;height:100dvh;max-height:100dvh;border-radius:12px 12px 0 0;margin:0}}.action-status{padding:6px 10px;border-radius:6px;font-size:.8em;font-weight:500}.action-status-submitted{background:#fef3c7;color:#92400e;border:1px solid #fde68a}.action-status-success{background:#d1fae5;color:#065f46;border:1px solid #a7f3d0}.action-status-fail{background:#fee2e2;color:#991b1b;border:1px solid #fca5a5;overflow:hidden;text-overflow:ellipsis}.action-status-link{color:inherit;font-weight:600;text-decoration:underline}.action-status-link:hover{opacity:.8}.message-action-buttons{display:flex;flex-direction:column;gap:6px;margin-top:10px}.message-action-button{width:100%;padding:8px 12px;background:#fffffff2;border:1px solid #e0e0e0;border-radius:12px;font-size:13px;font-weight:500;font-family:inherit;color:#1a1a1d;text-align:center;white-space:normal;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .15s,box-shadow .15s}.message-action-button:disabled{opacity:.55;cursor:not-allowed}@media(min-width:640px){.message-action-button:not(:disabled):hover{background:#fff;border-color:#007aff;color:#007aff;transform:translateY(-1px);box-shadow:0 2px 8px #007aff26}}.action-form{background:#f8f9fb;border:1px solid #e2e6ea;border-radius:10px;padding:12px;margin-top:8px;margin-bottom:8px;display:flex;flex-direction:column;gap:10px}.action-form-title{font-weight:600;font-size:.9em;color:#1a1a2e;display:flex;align-items:center;gap:6px}.action-form-general-error{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:10px 12px;font-size:.8em;color:#dc2626;font-weight:500;display:flex;align-items:center;gap:6px}.action-form-fields{display:flex;flex-direction:column;gap:8px}.action-form-field{display:flex;flex-direction:column;gap:3px}.action-form-field label{font-size:.75em;font-weight:500;color:#6b7280}.action-form-field input,.action-form-field textarea{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:16px;background:#fff;color:#1a1a2e;outline:none;transition:border-color .2s;font-family:inherit}.action-form-field textarea{resize:none;word-break:break-all}.action-form-field input:focus,.action-form-field textarea:focus{border-color:#0b3988;box-shadow:0 0 0 2px #6c5ce726}.action-form-field input.error,.action-form-field textarea.error{border-color:#ef4444}.action-form-field input.readonly,.action-form-field textarea.readonly{background:#f3f4f6;color:#6b7280;cursor:not-allowed;border-color:#e5e7eb}.action-form-field .field-error{font-size:.7em;color:#ef4444;margin-top:1px}.action-form-actions{display:flex;gap:8px}.action-form-submit{flex:1;padding:8px 14px;background:#0b3988;color:#fff;border:none;border-radius:6px;font-size:.85em;font-weight:500;cursor:pointer;transition:background .2s}.action-form-submit:hover:not(:disabled){background:#5a4bd1}.action-form-submit:disabled{background:#a5b4fc;cursor:not-allowed}.action-form-cancel{padding:8px 14px;background:transparent;color:#6b7280;border:1px solid #d1d5db;border-radius:6px;font-size:.85em;font-weight:500;cursor:pointer;transition:all .2s}.action-form-cancel:hover{background:#f3f4f6;color:#374151}.action-form-token-info{background:#eef2ff;border:1px solid #c7d2fe;border-radius:8px;padding:8px 10px}.token-info-row{display:flex;align-items:center;gap:8px}.token-info-logo{border-radius:50%;flex-shrink:0}.token-info-details{display:flex;flex-direction:column;gap:2px;min-width:0}.token-info-name{font-size:.8em;font-weight:600;color:#1a1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.token-info-balance{font-size:.75em;color:#4b5563}.token-info-usd{color:#0b3988;font-weight:500}.action-form-field-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}.action-form-field-header .action-form-field-label{margin-bottom:0;font-size:12px;font-weight:500;color:#6b7280}.action-form-pct-btns{display:inline-flex;gap:4px}.action-form-pct-btn{padding:1px 6px;font-size:.7em;font-weight:600;color:#0b3988;background:#eef2ff;border:1px solid #c7d2fe;border-radius:4px;cursor:pointer;transition:all .15s}@media(min-width:640px){.action-form-pct-btn:hover:not(:disabled){background:#0b3988;color:#fff}}.action-form-pct-btn:disabled{opacity:.5;cursor:not-allowed}.action-form-max-btn{font-weight:700}.action-form-nft-info{text-align:center;display:flex;align-items:center;justify-content:center}.nft-info-image{width:80px;height:80px;border-radius:8px;object-fit:contain;background:#e5e7eb;padding:4px}.buy-token-confirm{display:flex;flex-direction:column;gap:4px;margin-top:10px;padding:12px;border-radius:12px;background:#f8f9fb;border:1px solid #e5e5e7;font-size:13px}.buy-token-confirm__row{display:flex;align-items:center;gap:6px;color:#1a1a1d;font-size:14px;font-weight:600;word-break:break-word}.buy-token-confirm__label{color:#6b7280;font-weight:500}.buy-token-confirm__arrow{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;background:#eef0f4;color:#6b7280;font-size:14px;line-height:1}.buy-token-confirm__prompt{margin-top:2px;color:#4b5563;font-size:13px;font-weight:500}.swap-token-confirm{display:flex;flex-direction:column;gap:4px;margin-top:10px;padding:12px;border-radius:12px;background:#f8f9fb;border:1px solid #e5e5e7;font-size:13px}.swap-token-confirm__row{display:flex;align-items:center;gap:6px;color:#1a1a1d;font-size:14px;font-weight:600;word-break:break-word}.swap-token-confirm__label{color:#6b7280;font-weight:500}.swap-token-confirm__arrow{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:6px;background:#eef0f4;color:#6b7280;font-size:14px;line-height:1}.swap-token-confirm__prompt{margin-top:2px;color:#4b5563;font-size:13px;font-weight:500}.scroll-to-bottom-btn{position:absolute;bottom:16px;right:20px;background:#1a1a1dd6;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:50%;width:36px;height:36px;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 12px #00000040;z-index:20;transition:background .15s,transform .15s,box-shadow .15s;animation:fadeInUp .18s ease}@keyframes fadeInUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@media(min-width:640px){.scroll-to-bottom-btn:hover{background:#2d2d35;box-shadow:0 6px 16px #0000004d;transform:scale(1.08)}}.scroll-to-bottom-btn:active{transform:scale(.96)}.message-content{display:block;word-wrap:break-word;overflow-wrap:break-word;max-width:100%;overflow:hidden;font-size:inherit;line-height:1.5;white-space:normal}.message-content>*:first-child{margin-top:0}.message-content>*:last-child{margin-bottom:0}.message-content p{margin:.4em 0;word-break:break-word}.message-content ul{margin:.15em 0;padding-left:1.4em;list-style:disc outside}.message-content ol{margin:.15em 0;padding-left:1.4em;list-style:decimal outside}.message-content li{margin:0;padding-left:.15em}.message-content li>p{margin:0}.message-content table{border-collapse:collapse;margin:.4em 0;font-size:.92em}.message-content th,.message-content td{border:1px solid #d0d7de;padding:3px 8px;text-align:left}.message-content th{background:#f6f8fa;font-weight:600}.mc-heading{font-weight:600;margin:.3em 0;word-break:break-word}.mc-h1{font-size:1.4em}.mc-h2{font-size:1.2em}.mc-h3{font-size:1.05em}.mc-inline-code{background:#afb8c133;padding:1px 5px;border-radius:3px;font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.88em}.mc-codeblock{display:block;background:#f6f8fa;border:1px solid #d0d7de;border-radius:6px;margin:6px 0;overflow:hidden;max-width:100%}.mc-codeblock-lang{display:block;background:#e8ecf0;padding:3px 10px;font-size:.75em;font-weight:600;color:#57606a;text-transform:uppercase;font-family:Monaco,Menlo,monospace;border-bottom:1px solid #d0d7de}.mc-codeblock pre{margin:0;padding:10px;overflow-x:auto}.mc-codeblock code{font-family:Monaco,Menlo,Ubuntu Mono,Consolas,monospace;font-size:.85em;line-height:1.5;color:#24292f;white-space:pre}.mc-link{color:#0969da;text-decoration:none;word-break:break-word}.mc-link:hover{text-decoration:underline}.mc-image{max-width:150px;width:150px;height:150px;object-fit:contain;border-radius:8px;margin:8px 0;display:block}.mc-image-inline{width:20px;height:20px;border-radius:50%;margin:0 4px;display:inline-block;vertical-align:middle;object-fit:cover}.mc-blockquote{margin:4px 0;padding:2px 0 2px 12px;color:#57606a;border-left:3px solid #d0d7de}.mc-hr{height:1px;border:0;background:#d0d7de;margin:.4em 0}.message-content strong{font-weight:600}.message-content del{text-decoration:line-through}.mc-link-previews{display:flex;flex-direction:column;gap:6px;margin-top:6px}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}();
2
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react/jsx-runtime"),require("react"),require("keyring-agent-core")):"function"==typeof define&&define.amd?define(["exports","react/jsx-runtime","react","keyring-agent-core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KeyringAgentWeb={},e.jsxRuntime,e.React,e.KeyringAgentCore)}(this,function(e,t,n,r){"use strict";const i={chatTitle:"Keyring Agent",closeChat:"Close chat",messagePlaceholder:"Message ....",sendMessage:"Send message",botIsTyping:"Bot is typing",canIHelpYou:"Can I help you with anything?",suggestionAskText:"Ask a question",suggestionAskUserMessage:"I have a question",suggestionAskBotReply:"Ask me anything",suggestionBuyText:"Buy trending token",walletConnectedChainUnsupported:"Your wallet is connected but the chain is not supported for trading. Please switch to a supported chain to see trending tokens.",walletNotConnected:"Please connect your wallet to see trending tokens.",actionProcessing:"⏳ Processing transaction...",actionSuccess:"✅ Transaction completed",actionFail:"❌ Action cancelled or failed",txSubmitted:"⏳ Transaction submitted. Waiting for confirmation...",txConfirmed:"✅ Transaction confirmed!",txReverted:"❌ Transaction reverted on-chain.",txTimeout:"⚠️ Transaction submitted but confirmation timed out. Please check manually.",txSuccessful:"✅ Transaction successful!",txFailed:"❌ Transaction failed. Please try again.",txNoHandler:"⚠️ No transaction handler configured.",txInsufficientGas:"⚠️ **Insufficient {symbol} for gas!** You have {balance} {symbol} but need ~{fee} {symbol} for the transaction fee. Please top up your wallet and try again.",txError:"❌ Error: {message}",swapConfirmButton:"Confirm",swapConfirmValue:"Confirm swap",swapReadyToProceed:"Ready to proceed with the swap?",swapEstimationError:"⚠️ Unable to get swap estimation. Error: {error}",formCancel:"Cancel",formExecute:"Execute",formProcessing:"⏳ Processing...",formBalance:"Balance:",formTokenNotFound:"Token not found in your wallet.",formNoBalance:"You have no {symbol} balance in your wallet.",formInsufficientBalance:"Insufficient balance. Spendable: {balance} {symbol}",formFieldRequired:"{field} is required",formInvalidAddress:"Invalid address (Must contain 0x and 40 hex chars)",formMustBePositive:"Must be a positive number",formMustBeValidNumber:"Must be a valid number",openChat:"Open chat",openChatTitle:"Open chat support",walletBalanceSpendable:"This is the spendable balance of your wallet on {chain} chain. Please choose the coins you want to use for this trade.",walletNoTokensFound:"Sorry, I couldn't find any tokens in your wallet on {chain} chain. Please make sure you have some tokens to trade.",walletFetchFailed:"Sorry, I could not fetch your wallet balance. Please try again.",walletFetchError:"Sorry, I encountered an error fetching your wallet balance.",insufficientFeeToken:"Insufficient fee. Please ensure you have enough {symbol} to cover the transaction fees, or select a different token.",selectAmountOf:"Select the amount of {symbol} to use:\n\nSpendable: {balance} {symbol}",swapFeeWarning:"\n⚠️ **Insufficient {symbol} for fees!**\n You have {balance} {symbol} but need ~{needed} {symbol}.\n",swapNeedApprove:"You need to approve {symbol} first before swapping.",swapApproveButton:"Approve {symbol}",swapApproveValue:"Approve {symbol} for swap",swapNoSourceToken:"⚠️ You don't have the source token in your wallet or balance is 0.",swapSelectAmount:"Swap {from} → {to}\n\nSelect the amount of {from} to swap:\n\nSpendable: {balance} {from}",swapApprovalRequired:"⚠️ Token approval required before swapping.\n\nStep 1: Approve {symbol}\nStep 2: Confirm Swap",swapEstimationFailed:"⚠️ Failed to get swap estimation. Please try again.",swapInsufficientNativeBalance:"⚠️ Insufficient balance! You have {balance} {symbol} but need {amount} {symbol}. Please top up your wallet or reduce the amount.",swapTokenNotInWallet:"⚠️ You don't have {symbol} in your wallet. Please acquire some first before swapping.",swapInsufficientTokenBalance:"⚠️ Insufficient balance! You have {balance} {symbol} but need {amount} {symbol}. Please reduce the amount or add more tokens.",selectAmountToSwap:"Select the amount of {symbol} to swap:\n\nSpendable: {balance} {symbol}",couldNotLoadTokenList:"⚠️ Could not load token list. Please specify the destination token.",trendingTokensForReceive:"📈 Trending tokens on {chain} chain. Pick the token you want to receive or type the token you want to receive:",txProcessing:"⏳ Transaction processing... Please confirm in your wallet.",txConfirmedSwap:"✅ Transaction confirmed! Your swap has been completed.",txRevertedSwap:"❌ Transaction reverted on-chain. Please try again.",txSuccessfulSwap:"✅ Transaction successful! Your swap has been completed.",txSuccessfulSendToken:"✅ Sent successfully **{amount} {symbol}** to {to}",txSuccessfulSendNative:"✅ Sent successfully **{amount} {symbol}** to {to}",txSuccessfulSendNft:"✅ Sent successfully NFT **{name}** (#{tokenId}) to {to}",txSuccessfulWrapNative:"✅ Wrapped successfully **{amount} {from}** → **{to}**",txSuccessfulUnwrapNative:"✅ Unwrapped successfully **{amount} {from}** → **{to}**",txDataNotAvailable:"⚠️ Transaction data not available.",approvalDataNotAvailable:"⚠️ Approval data not available.",approving:"Approving {symbol}... Please confirm in your wallet.",approvalSuccess:"✅ {symbol} approved successfully!",approvalConfirmSwap:"Now you can execute the swap.",confirmSwapButton:"Confirm Swap",approvalFailed:"❌ Approval failed. Please try again.",couldNotFetchBalance:"⚠️ Could not fetch your wallet balance.",couldNotLoadBalance:"⚠️ Could not load balance. Please try again.",couldNotFetchBalanceRetry:"⚠️ Could not fetch your balance. Please try again.",nftSendReview:"📤 Send **{name}** ({standard} #{tokenId})\n\nPlease review and fill in the recipient address below:",nftCollectionHeader:"Your NFTs :\n\n{list}",nftMoreItems:"\n\nAnd {count} more NFTs...",nftSelectBelow:"\n\nSelect an NFT below to send",nftNoCollection:"You don't have any NFTs in your wallet on this chain.",nftMultipleMatchesForTokenId:"I found {count} NFTs with Token ID #{tokenId} in your wallet. Please select the one you want to send:",nftNotFoundInWallet:"I couldn't find \"{name}\" in your NFT collection. You don't own this NFT on this chain.",nftFetchError:"Sorry, I encountered an error fetching your NFTs.",trendingTokensHeader:"📈 Here is the list of tokens that are currently trending upwards on {chain} chain",trendingTokensQuestion:"\nIs there any token you want to buy?",trendingTokensError:"Sorry, I encountered an error fetching trending tokens.",errorProcessingRequest:"Sorry, I encountered an error processing your request.Please try again in a few moments.",buttonBuyWith:"Buy with {symbol}",buttonUsePercent:"Use {percent}% of {symbol}",buttonBuyToken:"Buy {name} ({symbol})",buttonSendNft:"Send {name}",buttonSwapTo:"Swap to {name} ({symbol})",buttonBuySymbol:"Buy {symbol}",viewBalancesLoading:"Fetching your wallet balances...",viewBalancesHeader:"Your token balances on {chain}:\n\n{list}",viewBalancesEmpty:"You don't have any tokens in your wallet on this chain.",viewBalancesFetchError:"Sorry, I encountered an error fetching your balances.",buttonSendToken:"Send {symbol}",formMax:"MAX",buttonSwapToken:"Swap {symbol}",buttonBuyMoreToken:"Buy more {symbol}",actionSendNativeLabel:"Send Native Token",actionSendNativeDesc:"Send native token (ETH, BNB, MATIC, etc.) to an address",actionSendTokenLabel:"Send Token (ERC20)",actionSendTokenDesc:"Send an ERC20 token to an address",actionSwapTokenLabel:"Swap Token",actionSwapTokenDesc:"Swap one token for another",actionApproveTokenLabel:"Approve Token",actionApproveTokenDesc:"Approve a spender to use your tokens",actionWrapNativeLabel:"Wrap Native Token",actionWrapNativeDesc:"Wrap native token (ETH → WETH)",actionUnwrapNativeLabel:"Unwrap Native Token",actionUnwrapNativeDesc:"Unwrap native token (WETH → ETH)",actionSendNftLabel:"Send NFT",actionSendNftDesc:"Transfer an ERC721 or ERC1155 NFT to another address",fieldToAddress:"Recipient Address",fieldAmount:"Amount",fieldTokenContract:"Token Contract",fieldTokenSymbol:"Token Symbol",fieldDecimals:"Decimals",fieldTokenIn:"From Token",fieldTokenInSymbol:"From Symbol",fieldTokenOut:"To Token",fieldTokenOutSymbol:"To Symbol",fieldTokenInDecimals:"From Decimals",fieldTokenOutDecimals:"To Decimals",fieldSpenderAddress:"Spender Address",fieldAmountUnlimited:"Amount (empty = unlimited)",fieldNftContract:"NFT Contract",fieldTokenId:"Token ID",fieldTokenStandard:"Token Standard",fieldNftName:"NFT Name",formMustBePositiveInteger:"Must be a positive integer",formAmountExceedsNft:"Amount cannot exceed available balance {max}",receivedButtonValue:"Received: {value}",actionExecutedFor:'Action "{action}" executed for: {value}',buyTokenHelp:"I'll help you buy {symbol}. Let me show your available tokens to trade with.",tokenNotFoundOnChain:'I couldn\'t find the token "{symbol}" on this chain. Here are the trending tokens you can buy',swapPreparing:"Preparing your swap...",swapConfirmYes:"Yes",swapChooseFrom:"Please choose which token you want to swap from:",swapChooseTo:"You want to swap {symbol}. Please choose which token you want to receive:",swapNeedDetails:'I need more details for your swap. Please specify which tokens you want to swap (e.g. "Swap 1 ETH to USDC").',viewNftsLoading:"Let me show you your NFT collection!",sendTokenNotInWallet:"You don't have {symbol} in your wallet on this chain. Please acquire some first before sending.",sendTokenChoose:"Which token would you like to send?",sendNftChoose:"Which NFT would you like to send?",swapChooseToken:"Which token would you like to swap? Here are your current balances:",spendable:"Spendable",welcomeMessage:"**Welcome! 🚀**\nYou’re now connected and ready to explore the world of Blockchain. I can assist you anytime with NFT insights, trading, price tracking, and portfolio analysis.",sendOtherNfts:"\nIf the NFT you want to send is not in the list above, please visit our website to send it.",sendNftViaWebsite:"Please select the NFT you would like to send from the list and proceed via this website.",sendNftViaWebsiteWithLink:"Please select the NFT you would like to send from the list and proceed via [this website]({link}).",viewNftViaWebsite:"Please view your NFT collection on this website for more details.",viewNftViaWebsiteWithLink:"Please view your NFT collection on [this website]({link}) for more details.",buyingOnChain:"Buying {symbol} on {chain}",viewOnExplorer:"View on Explorer",copyWalletAddress:"Copy wallet address",copied:"Copied!",copyAddress:"Copy address",poolGeneralInfoIntro:"💧 **Liquidity Pools** are smart contracts where users deposit token pairs to provide liquidity for DEX trading (like Uniswap). Liquidity providers (LPs) earn trading fees from each swap.",poolGeneralInfoMetricsTitle:"**Key Metrics:**",poolGeneralInfoMetricTVL:"**TVL** - Total Value Locked in the pool",poolGeneralInfoMetricAPR:"**APR** - Estimated annual return from fees",poolGeneralInfoMetricVol24h:"**Volume 24h** - Trading volume in last 24 hours",poolGeneralInfoMetricFeeTier:"**Fee Tier** - Trading fee (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'Try asking something specific, like: *"ETH/USDC pools on Base"* or *"Highest APR pools"*.',poolNoMatch:"❌ No matching pools found.",poolNoMatchForTokenOnChain:"❌ No matching pools found for **{token}** on **{chain}**.",poolSuggestionsTitle:"💡 **Suggestions:**",poolSuggestionTryChain:"Try a different chain (Ethereum, Base, Arbitrum...)",poolSuggestionTryPair:"Try a more popular pair (ETH/USDC, ETH/USDT)",poolSuggestionRelaxFilters:"Remove filters if too narrow",poolHeaderBest:"🏆 Best Pool",poolHeaderSafe:"🛡️ Safest Pools",poolHeaderTrending:"🔥 Trending Pools",poolHeaderHighApr:"📈 Highest APR Pools",poolHeaderLowFee:"💰 Lowest Fee Pools",poolHeaderCompare:"⚖️ Pool Comparison",poolHeaderDetail:"🔎 Pool Details",poolHeaderGeneral:"💧 Pool Info",poolHeaderSearch:"🔍 Search Results",poolTableMetric:"Metric",poolTableValue:"Value",poolTableLink:"Link",poolLinkView:"View on Uniswap",poolRecommendationHighApr:"👉 **Recommended:** [{pair}]({link}) - Highest APR at **{apr}%**. _Note: Higher APR may come with higher risk._",poolRecommendationLowFee:"👉 **Recommended:** [{pair}]({link}) - Lowest fee at **{fee}%**, ideal for frequent trading.",poolRecommendationSafe:"👉 **Recommended:** [{pair}]({link}) - Highest TVL at **{tvl}**, deep liquidity and stable.",poolRecommendationTrending:"👉 **Most Active:** [{pair}]({link}) - 24h Volume **{volume}**, highest trading activity.",poolRecommendationTopPick:"👉 **Top pick:** [{pair}]({link}) - TVL **{tvl}**, best match for your criteria.",sendPositionNoId:'Please provide your LP position ID to send it. For example: "send position 12345 to 0x...".',sendPositionNotFound:"Position #{id} was not found in your wallet on {chain}. Please make sure you own this position.",sendPositionReview:"📤 Send LP Position **#{positionId}** ({pair})\n\nPlease enter the recipient address below:",sendPositionFetchError:"Error fetching your positions. Please try again.",poolUnsupportedChain:"This chain is not supported for data queries. Sorry for the inconvenience.",poolUniswapV3Only:"I can only get information of pools that is on Subgraph Uniswap V3."},o={chatTitle:"Keyring Agent",closeChat:"チャットを閉じる",messagePlaceholder:"メッセージを入力...",sendMessage:"メッセージを送信",botIsTyping:"ボットが入力中...",canIHelpYou:"何かお手伝いできることはございますか?",suggestionAskText:"質問・調査のお願い",suggestionAskUserMessage:"質問があります",suggestionAskBotReply:"何でも聞いてください",suggestionBuyText:"トレンドトークンを購入",walletConnectedChainUnsupported:"ウォレットは接続されていますが、このチェーンは取引に対応していません。トレンドのトークンを表示するには、対応しているチェーンに切り替えてください。",walletNotConnected:"トレンドのトークンを表示するには、ウォレットを接続してください。",actionProcessing:"⏳ トランザクションを処理中...",actionSuccess:"✅ トランザクションが完了しました",actionFail:"❌ アクションがキャンセルされたか、失敗しました",txSubmitted:"⏳ トランザクションを送信しました。確認を待機中...",txConfirmed:"✅ トランザクションが確認されました!",txReverted:"❌ オンチェーンでトランザクションがリバートされました。",txTimeout:"⚠️ トランザクションは送信されましたが、タイムアウトしました。手動で確認してください。",txSuccessful:"✅ トランザクションに成功しました!",txFailed:"❌ トランザクションに失敗しました。もう一度お試しください。",txNoHandler:"⚠️ トランザクションハンドラーが設定されていません。",txInsufficientGas:"⚠️ **ガス代({symbol})が不足しています!** 保有量は {balance} {symbol} ですが、手数料に約 {fee} {symbol} 必要です。ウォレットにチャージして再試行してください。",txError:"❌ エラー: {message}",swapConfirmButton:"確定",swapConfirmValue:"スワップを確定する",swapReadyToProceed:"スワップを実行しますか?",swapEstimationError:"⚠️ スワップの見積もりを取得できません。エラー: {error}",formCancel:"キャンセル",formExecute:"実行",formProcessing:"⏳ 処理中...",formBalance:"残高:",formTokenNotFound:"ウォレット内にトークンが見つかりません。",formNoBalance:"ウォレットに {symbol} の残高がありません。",formInsufficientBalance:"残高不足です。利用可能: {balance} {symbol}",formFieldRequired:"{field} は必須項目です",formInvalidAddress:"無効なアドレスです(0x + 40文字である必要があります)",formMustBePositive:"正の数値を入力してください",formMustBeValidNumber:"有効な数値を入力してください",openChat:"チャットを開く",openChatTitle:"チャットサポートを開く",walletBalanceSpendable:"これは {chain} チェーン上のウォレットの利用可能な残高です。この取引に使用するコインを選択してください。",walletNoTokensFound:"申し訳ありませんが、{chain} チェーン上のウォレットにトークンが見つかりませんでした。取引するためのトークンを保有しているかご確認ください。",walletFetchFailed:"ウォレット残高を取得できませんでした。もう一度お試しください。",walletFetchError:"ウォレット残高の取得中にエラーが発生しました。",insufficientFeeToken:"手数料が不足しています。取引手数料をカバーするのに十分な {symbol} を保有しているか、別のトークンを選択してください。",selectAmountOf:"使用する {symbol} の数量を選択してください:\n\n利用可能: {balance} {symbol}",swapFeeWarning:"\n⚠️ **手数料の {symbol} が不足しています!**\n 保有量は {balance} {symbol} ですが、~{needed} {symbol} 必要です。\n",swapNeedApprove:"スワップを行う前に、まず {symbol} の承認が必要です。",swapApproveButton:"{symbol} を承認する",swapApproveValue:"スワップのために {symbol} を承認",swapNoSourceToken:"⚠️ ウォレットにソーストークンがないか、残高が 0 です。",swapSelectAmount:"スワップ {from} → {to}\n\nスワップする {from} の数量を選択してください:\n\n利用可能: {balance} {from}",swapApprovalRequired:"⚠️ スワップの前にトークンの承認が必要です。\n\nステップ 1: {symbol} を承認\nステップ 2: スワップを確定",swapEstimationFailed:"⚠️ スワップの見積もり取得に失敗しました。もう一度お試しください。",swapInsufficientNativeBalance:"⚠️ 残高不足です! 保有量は {balance} {symbol} ですが、{amount} {symbol} 必要です。ウォレットにチャージするか、数量を減らしてください。",swapTokenNotInWallet:"⚠️ ウォレットに {symbol} がありません。スワップする前にまず入手してください。",swapInsufficientTokenBalance:"⚠️ 残高不足です! 保有量は {balance} {symbol} ですが、{amount} {symbol} 必要です。数量を減らすか、トークンを追加してください。",selectAmountToSwap:"スwaップする {symbol} の数量を選択してください:\n\n利用可能: {balance} {symbol}",couldNotLoadTokenList:"⚠️ トークンリストを読み込めませんでした。受け取り希望のトークンを指定してください。",trendingTokensForReceive:"📈 {chain} チェーンのトレンドトークン。受け取りたいトークンを選択するか、入力してください:",txProcessing:"⏳ トランザクション処理中... ウォレットで承認してください。",txConfirmedSwap:"✅ トランザクションが確認されました!スワップが完了しました。",txRevertedSwap:"❌ オンチェーンでトランザクションがリバートされました。もう一度お試しください。",txSuccessfulSwap:"✅ トランザクションに成功しました!スワップが完了しました。",txSuccessfulSendToken:"✅ **{amount} {symbol}** を {to} に送信しました",txSuccessfulSendNative:"✅ **{amount} {symbol}** を {to} に送信しました",txSuccessfulWrapNative:"✅ **{amount} {from}** を **{to}** にラップしました",txSuccessfulUnwrapNative:"✅ **{amount} {from}** を **{to}** にアンラップしました",txSuccessfulSendNft:"✅ NFT **{name}** (#{tokenId}) を {to} に送信しました",txDataNotAvailable:"⚠️ トランザクションデータが利用できません。",approvalDataNotAvailable:"⚠️ 承認データが利用できません。",approving:"{symbol} を承認中... ウォレットで確認してください。",approvalSuccess:"✅ {symbol} の承認に成功しました!",approvalConfirmSwap:"これでスワップを実行できます。",confirmSwapButton:"スワップを確定する",approvalFailed:"❌ 承認に失敗しました。もう一度お試しください。",couldNotFetchBalance:"⚠️ ウォレット残高を取得できませんでした。",couldNotLoadBalance:"⚠️ 残高を読み込めませんでした。もう一度お試しください。",couldNotFetchBalanceRetry:"⚠️ 残高を取得できませんでした。もう一度お試しください。",nftSendReview:"📤 **{name}** ({standard} #{tokenId}) を送信\n\n内容を確認し、以下に受信者のアドレスを入力してください:",nftCollectionHeader:"您的 NFT 资产:\n\n{list}",nftMoreItems:"\n\n以及其他 {count} 件 NFT...",nftSelectBelow:"\n\n请在下方选择要发送的 NFT",nftNoCollection:"このチェーン上のウォレットにNFTは見つかりませんでした。",nftMultipleMatchesForTokenId:"ウォレット内にToken ID #{tokenId} のNFTが{count}件見つかりました。送信したいNFTを選択してください:",nftNotFoundInWallet:'あなたのNFTコレクションに "{name}" が見つかりませんでした。このチェーンでこのNFTを所有していません。',nftFetchError:"申し訳ありませんが、NFTの取得中にエラーが発生しました。",trendingTokensHeader:"📈 {chain} チェーンで現在価格が上昇中のトレンドトークン一覧です:",trendingTokensQuestion:"\n購入したいトークンはありますか?",trendingTokensError:"トレンドトークンの取得中にエラーが発生しました。",errorProcessingRequest:"リクエストの処理中にエラーが発生しました。しばらく時間を置いてからもう一度お試しください。",buttonBuyWith:"{symbol} で購入",buttonUsePercent:"{symbol}の{percent}%を使用",buttonBuyToken:"{name} ({symbol}) を購入",buttonSendNft:"{name} を送信",buttonSwapTo:"{name} ({symbol}) にスワップ",buttonBuySymbol:"{symbol} を購入",viewBalancesLoading:"ウォレットの残高を取得中...",viewBalancesHeader:"{chain} 上のトークン残高:\n\n{list}",viewBalancesEmpty:"このチェーン上のウォレットにトークンは見つかりませんでした。",viewBalancesFetchError:"残高の取得中にエラーが発生しました。",buttonSendToken:"{symbol} を送信",formMax:"最大",buttonSwapToken:"{symbol} をスワップ",buttonBuyMoreToken:"{symbol} をさらに入手",actionSendNativeLabel:"ネイティブトークンを送信",actionSendNativeDesc:"ネイティブトークン (ETH, BNB, MATIC など) をアドレスに送信します",actionSendTokenLabel:"トークンを送信 (ERC20)",actionSendTokenDesc:"ERC20トークンをアドレスに送信します",actionSwapTokenLabel:"トークンをスワップ",actionSwapTokenDesc:"トークンを別のトークンに交換します",actionApproveTokenLabel:"トークンを承認",actionApproveTokenDesc:"支出元(Spender)によるトークンの使用を許可します",actionWrapNativeLabel:"ネイティブトークンをラップ",actionWrapNativeDesc:"ネイティブトークンをラップします (ETH → WETH)",actionUnwrapNativeLabel:"ネイティブトークンをアンラップ",actionUnwrapNativeDesc:"ネイティブトークンをアンラップします (WETH → ETH)",actionSendNftLabel:"NFTを送信",actionSendNftDesc:"ERC721またはERC1155 NFTを別のアドレスに転送します",fieldToAddress:"受信者アドレス",fieldAmount:"数量",fieldTokenContract:"トークンコントラクト",fieldTokenSymbol:"トークンシンボル",fieldDecimals:"デシマル (小数桁数)",fieldTokenIn:"元のトークン",fieldTokenInSymbol:"元のシンボル",fieldTokenOut:"先のトークン",fieldTokenOutSymbol:"先のシンボル",fieldTokenInDecimals:"元のデシマル",fieldTokenOutDecimals:"先のデシマル",fieldSpenderAddress:"支出元 (Spender) アドレス",fieldAmountUnlimited:"数量 (空欄 = 無制限)",fieldNftContract:"NFTコントラクト",fieldTokenId:"トークンID",fieldTokenStandard:"トークン規格",fieldNftName:"NFT名",formMustBePositiveInteger:"正の整数を入力してください",formAmountExceedsNft:"数量は利用可能な残高 {max} を超えることはできません",receivedButtonValue:"受取額: {value}",actionExecutedFor:"アクション「{action}」が {value} に対して実行されました",buyTokenHelp:"{symbol} の購入をお手伝いします。まず、交換に使用可能なトークンを表示します。",tokenNotFoundOnChain:"このチェーン上でトークン「{symbol}」が見つかりませんでした。購入可能なトレンドトークンはこちらです",swapPreparing:"スワップの準備中...",swapConfirmYes:"はい",swapChooseFrom:"交換元(支払う)トークンを選択してください:",swapChooseTo:"{symbol} をスワップします。受け取りたいトークンを選択してください:",swapNeedDetails:"スワップの詳細が必要です。交換したいトークンを指定してください(例:「1 ETH を USDC にスワップ」)。",viewNftsLoading:"あなたのNFTコレクションを表示します!",sendTokenNotInWallet:"このチェーンのウォレットに {symbol} がありません。送信する前にまず入手してください。",sendTokenChoose:"どのトークンを送信しますか?",sendNftChoose:"どのNFTを送信しますか?",swapChooseToken:"どのトークンをスワップしますか?現在の残高はこちらです:",spendable:"利用可能",welcomeMessage:"**ようこそ! 🚀**\n次世代のブロックチェーンへ。NFT情報、トレード、価格チェック、ポートフォリオ分析など、いつでもお手伝いします。",sendOtherNfts:"\n送信したいNFTが上記のリストにない場合は、当ウェブサイトにアクセスして送信してください。",sendNftViaWebsite:"送信したいNFTをリストから選択し、当ウェブサイトで手続きを進めてください。",sendNftViaWebsiteWithLink:"送信したいNFTをリストから選択し、[当ウェブサイト]({link})で手続きを進めてください。",viewNftViaWebsite:"NFTコレクションの詳細は、当ウェブサイトでご確認ください。",viewNftViaWebsiteWithLink:"NFTコレクションの詳細は、[当ウェブサイト]({link})でご確認ください。",buyingOnChain:"{chain} チェーンで {symbol} を購入中",viewOnExplorer:"エクスプローラーで見る",copyWalletAddress:"ウォレットアドレスをコピー",copied:"コピーしました!",copyAddress:"アドレスをコピー",poolGeneralInfoIntro:"💧 **流動性プール** は、ユーザーがトークンペアを預けてDEX取引(Uniswap など)の流動性を提供するスマートコントラクトです。LP は各スワップの手数料を獲得します。",poolGeneralInfoMetricsTitle:"**主要メトリクス:**",poolGeneralInfoMetricTVL:"**TVL** - プールにロックされている総価値",poolGeneralInfoMetricAPR:"**APR** - 手数料に基づく年間想定利回り",poolGeneralInfoMetricVol24h:"**24時間出来高** - 直近24時間の取引量",poolGeneralInfoMetricFeeTier:"**手数料ティア** - 取引手数料 (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'例: *"Base の ETH/USDC プール"* や *"APR が高いプール"* のように聞いてみてください。',poolNoMatch:"❌ 条件に一致するプールが見つかりませんでした。",poolNoMatchForTokenOnChain:"❌ **{chain}** 上で **{token}** に一致するプールが見つかりませんでした。",poolSuggestionsTitle:"💡 **提案:**",poolSuggestionTryChain:"別のチェーンを試す (Ethereum, Base, Arbitrum...)",poolSuggestionTryPair:"より一般的なペアを試す (ETH/USDC, ETH/USDT)",poolSuggestionRelaxFilters:"フィルター条件を緩める",poolHeaderBest:"🏆 最適なプール",poolHeaderSafe:"🛡️ 安全性の高いプール",poolHeaderTrending:"🔥 トレンドプール",poolHeaderHighApr:"📈 APRの高いプール",poolHeaderLowFee:"💰 手数料の低いプール",poolHeaderCompare:"⚖️ プール比較",poolHeaderDetail:"🔎 プール詳細",poolHeaderGeneral:"💧 プール情報",poolHeaderSearch:"🔍 検索結果",poolTableMetric:"指標",poolTableValue:"値",poolTableLink:"リンク",poolLinkView:"Uniswapで表示",poolRecommendationHighApr:"👉 **おすすめ:** [{pair}]({link}) - APR は **{apr}%** で最も高いです。_注意: APR が高いほどリスクも高い可能性があります。_",poolRecommendationLowFee:"👉 **おすすめ:** [{pair}]({link}) - 手数料 **{fee}%** で、頻繁な取引に適しています。",poolRecommendationSafe:"👉 **おすすめ:** [{pair}]({link}) - TVL **{tvl}** で流動性が厚く安定しています。",poolRecommendationTrending:"👉 **最も活発:** [{pair}]({link}) - 24時間出来高 **{volume}** で取引が最も活発です。",poolRecommendationTopPick:"👉 **トップ候補:** [{pair}]({link}) - TVL **{tvl}**、条件に最も適合しています。",sendPositionNoId:'LP ポジション ID を提供してください。例:"ポジション 12345 を 0x... に送信"。',sendPositionNotFound:"{chain} 上のウォレットにポジション #{id} が見つかりませんでした。このポジションを所有していることを確認してください。",sendPositionReview:"📤 LP ポジション **#{positionId}** ({pair}) を送信\n\n受取人アドレスを以下に入力してください:",sendPositionFetchError:"ポジションの取得中にエラーが発生しました。もう一度お試しください。",poolUnsupportedChain:"このチェーンはデータクエリに対応していません。ご不便をおかけして申し訳ございません。",poolUniswapV3Only:"Subgraph Uniswap V3 上のプールの情報のみ取得できます。"},s={en:i,ja:o,cn:{chatTitle:"Keyring Agent",closeChat:"关闭聊天",messagePlaceholder:"请输入消息....",sendMessage:"发送消息",botIsTyping:"机器人正在输入",canIHelpYou:"有什么我可以帮您的吗?",suggestionAskText:"提问",suggestionAskUserMessage:"我有一个问题",suggestionAskBotReply:"随便问我任何事情",suggestionBuyText:"购买热门代币",walletConnectedChainUnsupported:"您的钱包已连接,但当前链不支持交易。请切换到支持的链以查看热门代币。",walletNotConnected:"请连接您的钱包以查看热门代币。",actionProcessing:"⏳ 正在处理交易...",actionSuccess:"✅ 交易已完成",actionFail:"❌ 操作取消或失败",txSubmitted:"⏳ 交易已提交。正在等待确认...",txConfirmed:"✅ 交易已确认!",txReverted:"❌ 交易在链上被退回(Reverted)。",txTimeout:"⚠️ 交易已提交但确认超时。请手动检查。",txSuccessful:"✅ 交易成功!",txFailed:"❌ 交易失败。请重试。",txNoHandler:"⚠️ 未配置交易处理器。",txInsufficientGas:"⚠️ **{symbol} 余额不足以支付 Gas 费!** 您当前有 {balance} {symbol},但交易费预计需要 ~{fee} {symbol}。请充值钱包后重试。",txError:"❌ 错误: {message}",swapConfirmButton:"确认",swapConfirmValue:"确认兑换",swapReadyToProceed:"准备好进行兑换了吗?",swapEstimationError:"⚠️ 无法获取兑换估算。错误: {error}",formCancel:"取消",formExecute:"执行",formProcessing:"⏳ 正在处理...",formBalance:"余额:",formTokenNotFound:"您的钱包中未找到该代币。",formNoBalance:"您的钱包中没有 {symbol} 余额。",formInsufficientBalance:"余额不足。可用余额: {balance} {symbol}",formFieldRequired:"{field} 是必填项",formInvalidAddress:"无效地址(必须是 0x + 40 个字符)",formMustBePositive:"必须为正数",formMustBeValidNumber:"必须为有效数字",openChat:"打开聊天",openChatTitle:"打开聊天支持",walletBalanceSpendable:"这是您在 {chain} 链上钱包的可选余额。请选择您想用于此次交易的代币。",walletNoTokensFound:"抱歉,我在 {chain} 链上的钱包中没找到任何代币。请确保您有代币可以进行交易。",walletFetchFailed:"抱歉,无法获取您的钱包余额。请重试。",walletFetchError:"抱歉,获取钱包余额时出错。",insufficientFeeToken:"手续费不足。请确保您有足够的 {symbol} 来支付交易费用,或选择其他代币。",selectAmountOf:"选择要使用的 {symbol} 数量:\n\n可用余额: {balance} {symbol}",swapFeeWarning:"\n⚠️ **手续费所需的 {symbol} 不足!**\n 您当前有 {balance} {symbol},但需要 ~{needed} {symbol}。\n",swapNeedApprove:"在兑换之前,您需要先授权 {symbol}。",swapApproveButton:"授权 {symbol}",swapApproveValue:"授权 {symbol} 以进行兑换",swapNoSourceToken:"⚠️ 您的钱包中没有源代币或余额为 0。",swapSelectAmount:"兑换 {from} → {to}\n\n选择要兑换的 {from} 数量:\n\n可用余额: {balance} {from}",swapApprovalRequired:"⚠️ 兑换前需要代币授权。\n\n第 1 步:授权 {symbol}\n第 2 步:确认兑换",swapEstimationFailed:"⚠️ 获取兑换估算失败。请重试。",swapInsufficientNativeBalance:"⚠️ 余额不足!您有 {balance} {symbol} 但需要 {amount} {symbol}。请充值钱包或减少金额。",swapTokenNotInWallet:"⚠️ 您的钱包中没有 {symbol}。请在兑换前先获取一些代币。",swapInsufficientTokenBalance:"⚠️ 余额不足!您有 {balance} {symbol} 但需要 {amount} {symbol}。请减少金额或添加更多代币。",selectAmountToSwap:"选择要兑换的 {symbol} 数量:\n\n可用余额: {balance} {symbol}",couldNotLoadTokenList:"⚠️ 无法加载代币列表。请指定目标代币。",trendingTokensForReceive:"📈 {chain} 链上的热门代币。请选择您想收到的代币或输入代币名称:",txProcessing:"⏳ 交易处理中... 请在钱包中确认。",txConfirmedSwap:"✅ 交易已确认!您的兑换已完成。",txRevertedSwap:"❌ 交易在链上被退回。请重试。",txSuccessfulSwap:"✅ 交易成功!您的兑换已完成。",txSuccessfulSendToken:"✅ 已成功发送 **{amount} {symbol}** 至 {to}",txSuccessfulSendNative:"✅ 已成功发送 **{amount} {symbol}** 至 {to}",txSuccessfulWrapNative:"✅ 成功封装 **{amount} {from}** → **{to}**",txSuccessfulUnwrapNative:"✅ 成功解封装 **{amount} {from}** → **{to}**",txSuccessfulSendNft:"✅ 已成功发送 NFT **{name}** (#{tokenId}) 至 {to}",txDataNotAvailable:"⚠️ 交易数据不可用。",approvalDataNotAvailable:"⚠️ 授权数据不可用。",approving:"正在授权 {symbol}... 请在钱包中确认。",approvalSuccess:"✅ {symbol} 授权成功!",approvalConfirmSwap:"现在您可以执行兑换了。",confirmSwapButton:"确认兑换",approvalFailed:"❌ 授权失败。请重试。",couldNotFetchBalance:"⚠️ 无法获取您的钱包余额。",couldNotLoadBalance:"⚠️ 无法加载余额。请重试。",couldNotFetchBalanceRetry:"⚠️ 无法获取您的余额。请重试。",nftSendReview:"📤 发送 **{name}** ({standard} #{tokenId})\n\n请核对并在下方填写接收者地址:",nftCollectionHeader:"保有中のNFT一覧 :\n\n{list}",nftMoreItems:"\n\n他 {count} 件のNFT...",nftSelectBelow:"\n\n送信するNFTを以下から選択してください",nftNoCollection:"您在该链的钱包中没有任何 NFT。",nftMultipleMatchesForTokenId:"在您的钱包中找到了 {count} 个 Token ID #{tokenId} 的 NFT。请选择您要发送的 NFT:",nftNotFoundInWallet:'我在您的 NFT 收藏中没找到 "{name}"。您在此链上不拥有此 NFT。',nftFetchError:"抱歉,获取您的 NFT 时出错。",trendingTokensHeader:"📈 以下是 {chain} 链上目前呈上升趋势的热门代币列表",trendingTokensQuestion:"\n有您想购买的代币吗?",trendingTokensError:"抱歉,获取热门代币时出错。",errorProcessingRequest:"抱歉,处理您的请求时出错。请稍后再试。",buttonBuyWith:"使用 {symbol} 购买",buttonUsePercent:"使用{percent}%的{symbol}",buttonBuyToken:"购买 {name} ({symbol})",buttonSendNft:"发送 {name}",buttonSwapTo:"兑换为 {name} ({symbol})",buttonBuySymbol:"购买 {symbol}",viewBalancesLoading:"正在获取您的钱包余额...",viewBalancesHeader:"您在 {chain} 上的代币余额:\n\n{list}",viewBalancesEmpty:"您在该链的钱包中没有任何代币。",viewBalancesFetchError:"抱歉,获取您的余额时出错。",buttonSendToken:"发送 {symbol}",formMax:"最多",buttonSwapToken:"兑换 {symbol}",buttonBuyMoreToken:"购买更多 {symbol}",actionSendNativeLabel:"发送原生代币",actionSendNativeDesc:"将原生代币 (ETH, BNB, MATIC 等) 发送到指定地址",actionSendTokenLabel:"发送代币 (ERC20)",actionSendTokenDesc:"将 ERC20 代币发送到指定地址",actionSwapTokenLabel:"兑换代币",actionSwapTokenDesc:"将一种代币兑换为另一种",actionApproveTokenLabel:"授权代币",actionApproveTokenDesc:"授权支出方使用您的代币",actionWrapNativeLabel:"包装 (Wrap) 原生代币",actionWrapNativeDesc:"包装原生代币 (例如 ETH → WETH)",actionUnwrapNativeLabel:"解包 (Unwrap) 原生代币",actionUnwrapNativeDesc:"解包原生代币 (例如 WETH → ETH)",actionSendNftLabel:"发送 NFT",actionSendNftDesc:"将 ERC721 或 ERC1155 NFT 转移到另一个地址",fieldToAddress:"接收者地址",fieldAmount:"金额",fieldTokenContract:"代币合约",fieldTokenSymbol:"代币符号",fieldDecimals:"精度 (Decimals)",fieldTokenIn:"源代币 (From)",fieldTokenInSymbol:"源代币符号",fieldTokenOut:"目标代币 (To)",fieldTokenOutSymbol:"目标代币符号",fieldTokenInDecimals:"源代币精度",fieldTokenOutDecimals:"目标代币精度",fieldSpenderAddress:"支出方 (Spender) 地址",fieldAmountUnlimited:"金额 (留空 = 无限制)",fieldNftContract:"NFT 合约",fieldTokenId:"代币 ID",fieldTokenStandard:"代币标准",fieldNftName:"NFT 名称",formMustBePositiveInteger:"必须为正整数",formAmountExceedsNft:"金额不能超过可用余额 {max}",receivedButtonValue:"收到: {value}",actionExecutedFor:'操作 "{action}" 已执行,对象为: {value}',buyTokenHelp:"我会帮您购买 {symbol}。让我为您显示可用于交易的代币。",tokenNotFoundOnChain:'我在该链上没找到代币 "{symbol}"。以下是您可以购买的热门代币',swapPreparing:"正在准备兑换...",swapConfirmYes:"是",swapChooseFrom:"请选择您想从哪个代币进行兑换:",swapChooseTo:"您想兑换 {symbol}。请选择您想收到的代币:",swapNeedDetails:"我需要更多关于兑换的细节。请指定您想兑换的代币(例如 “将 1 ETH 兑换为 USDC”)。",viewNftsLoading:"正在为您展示 NFT 收藏!",sendTokenNotInWallet:"您的钱包中在此链上没有 {symbol}。请在发送前先获取一些代币。",sendTokenChoose:"您想发送哪个代币?",sendNftChoose:"您想发送哪个 NFT?",swapChooseToken:"您想兑换哪个代币?以下是您的当前余额:",spendable:"可用余额",welcomeMessage:"**欢迎您!🚀**\n带你一起探索新一代区块链世界。我可以随时为您提供NFT资讯、交易支持、价格查询以及投资组合分析等服务。",sendOtherNfts:"\n如果您想发送的NFT不在上述列表中,请访问我们的网站进行发送。",sendNftViaWebsite:"请从列表中选择您想发送的NFT,并通过这个网站继续操作。",sendNftViaWebsiteWithLink:"请从列表中选择您想发送的NFT,并通过[这个网站]({link})继续操作。",viewNftViaWebsite:"如需查看更多详情,请在这个网站查看您的NFT收藏。",viewNftViaWebsiteWithLink:"如需查看更多详情,请在[这个网站]({link})查看您的NFT收藏。",buyingOnChain:"正在 {chain} 链上购买 {symbol}",viewOnExplorer:"在区块浏览器查看",copyWalletAddress:"复制钱包地址",copied:"已复制!",copyAddress:"复制地址",poolGeneralInfoIntro:"💧 **流动性池** 是用户存入代币对、为 DEX(如 Uniswap)提供流动性的智能合约。流动性提供者(LP)可从每笔兑换中获得手续费收益。",poolGeneralInfoMetricsTitle:"**关键指标:**",poolGeneralInfoMetricTVL:"**TVL** - 池中锁仓总价值",poolGeneralInfoMetricAPR:"**APR** - 基于手续费估算的年化收益",poolGeneralInfoMetricVol24h:"**24小时成交量** - 最近24小时交易量",poolGeneralInfoMetricFeeTier:"**费率档位** - 交易费率 (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'你可以更具体地提问,例如:*"Base 上的 ETH/USDC 池"* 或 *"APR 最高的池"*。',poolNoMatch:"❌ 未找到匹配的流动性池。",poolNoMatchForTokenOnChain:"❌ 在 **{chain}** 上未找到 **{token}** 的匹配池。",poolSuggestionsTitle:"💡 **建议:**",poolSuggestionTryChain:"尝试其他链(Ethereum、Base、Arbitrum...)",poolSuggestionTryPair:"尝试更热门的交易对(ETH/USDC、ETH/USDT)",poolSuggestionRelaxFilters:"放宽筛选条件",poolHeaderBest:"🏆 最佳流动性池",poolHeaderSafe:"🛡️ 更稳健的流动性池",poolHeaderTrending:"🔥 热门流动性池",poolHeaderHighApr:"📈 高 APR 流动性池",poolHeaderLowFee:"💰 低费率流动性池",poolHeaderCompare:"⚖️ 流动性池对比",poolHeaderDetail:"🔎 流动性池详情",poolHeaderGeneral:"💧 流动性池信息",poolHeaderSearch:"🔍 搜索结果",poolTableMetric:"指标",poolTableValue:"数值",poolTableLink:"链接",poolLinkView:"在 Uniswap 查看",poolRecommendationHighApr:"👉 **推荐:**[{pair}]({link}) - APR 最高,为 **{apr}%**。_注意:APR 越高通常风险也越高。_",poolRecommendationLowFee:"👉 **推荐:**[{pair}]({link}) - 费率仅 **{fee}%**,适合高频交易。",poolRecommendationSafe:"👉 **推荐:**[{pair}]({link}) - TVL 达 **{tvl}**,流动性更充足且相对稳定。",poolRecommendationTrending:"👉 **最活跃:**[{pair}]({link}) - 24 小时成交量 **{volume}**,交易最活跃。",poolRecommendationTopPick:"👉 **首选:**[{pair}]({link}) - TVL **{tvl}**,最符合你的筛选条件。",sendPositionNoId:'请提供您的 LP 仓位 ID 以便转出。例如:"发送仓位 12345 至 0x..."。',sendPositionNotFound:"在 {chain} 上的钱包中未找到仓位 #{id}。请确认您拥有该仓位。",sendPositionReview:"📤 发送 LP 仓位 **#{positionId}** ({pair})\n\n请在下方填写接收者地址:",sendPositionFetchError:"获取您的仓位时出错。请重试。",poolUnsupportedChain:"该链不支持数据查询,给您带来不便,深表歉意。",poolUniswapV3Only:"我只能获取 Subgraph Uniswap V3 上的流动性池信息。"}},a=["en","ja","cn"];function c(e){if(!e)return"en";const t=e.toLowerCase().split(/[-_]/)[0];return"zh"===t?"cn":a.includes(t)?t:"en"}function u(e,t){return s[t]?.[e]??s.en[e]??e}function l(e,t){return e.replace(/\{(\w+)\}/g,(e,n)=>t[n]??`{${n}}`)}const f=n.createContext(void 0),d=({children:e,initialLanguage:r="en"})=>{const[i,o]=n.useState(r),s=n.useCallback(e=>u(e,i),[i]),a=n.useCallback((e,t)=>l(u(e,i),t),[i]);return t.jsx(f.Provider,{value:{language:i,setLanguage:o,t:s,ti:a},children:e})},h=()=>{const e=n.useContext(f);if(!e)throw new Error("useLanguage must be used within LanguageProvider");return e},p=e=>{const{language:t,setLanguage:r}=h(),i=e?c(e):t,o=n.useCallback(e=>u(e,i),[i]),s=n.useCallback((e,t)=>l(u(e,i),t),[i]);return n.useMemo(()=>({language:i,setLanguage:r,t:o,ti:s}),[i,r,o,s])},m=n.memo(function({onClick:e,buttonSize:n=56,customIcon:r,customChatButton:i}){const{t:o}=h(),s=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e())};return i?t.jsx("div",{onClick:e,onKeyDown:s,role:"button",tabIndex:0,children:i}):t.jsx("button",{className:"chat-button",onClick:e,onKeyDown:s,"aria-label":o("openChat"),title:o("openChatTitle"),type:"button",style:{width:n,height:n,aspectRatio:1},children:t.jsx("img",{draggable:!1,style:{width:n,height:n,objectFit:"contain"},src:r||"data:image/png;base64,iVBORw0KGgoA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FcwfLCkenHiPjGV5kWbcS38WsbpMoLFq46zArJ4teGkgCxe7TgnIIsXDacEZPGi44yALF59OLEeiNaVbwupruCEBbJ49cPLSZ7DAnoOC+g5LKDnsICeI/VSxBwx3iIFC+gzM9qFqklifGVG5hTdIcZPlJqSQrEFektKTsicTF0mxkuyORqXY+k2JDFjxHiFrh4mtXYzQR0ocmqcGK8QUgzjORBwWcphrgf9Au4Tz4GAcKM6HT1DjCeIEbhPvCq20tgK/SFLNGReFwVkK/QDRWrIWB9YcXuHg5nHE3pjJzHOoT3kzGj61d32thWrETkS77ErdQ9oorU5EN6+QsC8eebSxDiFoNxHtus0lFwPHE1vGxHa1xLjBIh719PbSnbMKt7i6FDm0aAicZKYxIB4o+nXBst9XvUeVT2Zh/2K5M96x1ZiYiOfh+TS8IaV9qvpJmPdmdl2SeqG3rmdmFUHfU4kk6ViXphIf8ubXerqAqvThnLmWgWXGSbaH2OnvDWmVG6QhDhOTFMwwi2THC6sDtVMZAENebea7daJ7AAX/nUzprP98XqEM9QtoI0RUyjRqS2zg/Kxsp2YAFhYfnhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=",alt:"Ask AI"})})}),g={getItem(e){if("undefined"==typeof window)return null;try{return window.localStorage.getItem(e)}catch{return null}},setItem(e,t){if("undefined"!=typeof window)try{window.localStorage.setItem(e,t)}catch{}},removeItem(e){if("undefined"!=typeof window)try{window.localStorage.removeItem(e)}catch{}},get length(){if("undefined"==typeof window)return 0;try{return window.localStorage.length}catch{return 0}},key(e){if("undefined"==typeof window)return null;try{return window.localStorage.key(e)}catch{return null}}};const b=/^tuple(?<array>(\[(\d*)\])*)$/;function w(e){let t=e.type;if(b.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let i=0;i<n;i++){t+=w(e.components[i]),i<n-1&&(t+=", ")}const r=function(e,t){const n=e.exec(t);return n?.groups}(b,e.type);return t+=`)${r?.array||""}`,w({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function y(e){let t="";const n=e.length;for(let r=0;r<n;r++){t+=w(e[r]),r!==n-1&&(t+=", ")}return t}function v(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new L(e.type);return`${e.name}(${A(e.inputs,{includeName:t})})`}function A(e,{includeName:t=!1}={}){return e?e.map(e=>function(e,{includeName:t}){if(e.type.startsWith("tuple"))return`(${A(e.components,{includeName:t})})${e.type.slice(5)}`;return e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t})).join(t?", ":","):""}function k(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}function x(e){return k(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const C="2.49.3";let E=({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,S=`viem@${C}`;class T extends Error{constructor(e,t={}){const n=t.cause instanceof T?t.cause.details:t.cause?.message?t.cause.message:t.details,r=t.cause instanceof T&&t.cause.docsPath||t.docsPath,i=E?.({...t,docsPath:r});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...n?[`Details: ${n}`]:[],...S?[`Version: ${S}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=C}walk(e){return M(this,e)}}function M(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?M(e.cause,t):t?null:e}class I extends T{constructor({expectedLength:e,givenLength:t,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class B extends T{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${x(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class N extends T{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class R extends T{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionNotFoundError"})}}class F extends T{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${v(e.abiItem)}\`, and`,`\`${t.type}\` in \`${v(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class O extends T{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t,name:"InvalidAbiEncodingType"})}}class P extends T{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}class L extends T{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class D extends T{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class U extends T{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}function H(e,{dir:t,size:n=32}={}){return"string"==typeof e?z(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new U({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let i=0;i<n;i++){const o="right"===t;r[o?i:n-i-1]=e[o?i:e.length-i-1]}return r}(e,{dir:t,size:n})}function z(e,{dir:t,size:n=32}={}){if(null===n)return e;const r=e.replace("0x","");if(r.length>2*n)throw new U({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r["right"===t?"padEnd":"padStart"](2*n,"0")}`}class j extends T{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class V extends T{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function q(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,r=0;for(let i=0;i<n.length-1&&"0"===n["left"===t?i:n.length-i-1].toString();i++)r++;return n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"==typeof e?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}function J(e,{size:t}){if(x(e)>t)throw new V({givenSize:x(e),maxSize:t})}function G(e,t={}){const{signed:n}=t;t.size&&J(e,{size:t.size});const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function W(e,t={}){const n=G(e,t),r=Number(n);if(!Number.isSafeInteger(r))throw new j({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return r}const K=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Y(e,t={}){return"number"==typeof e||"bigint"==typeof e?Z(e,t):"string"==typeof e?_(e,t):"boolean"==typeof e?X(e,t):Q(e,t)}function X(e,t={}){const n=`0x${Number(e)}`;return"number"==typeof t.size?(J(n,{size:t.size}),H(n,{size:t.size})):n}function Q(e,t={}){let n="";for(let i=0;i<e.length;i++)n+=K[e[i]];const r=`0x${n}`;return"number"==typeof t.size?(J(r,{size:t.size}),H(r,{dir:"right",size:t.size})):r}function Z(e,t={}){const{signed:n,size:r}=t,i=BigInt(e);let o;r?o=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof e&&(o=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"==typeof o&&n?-o-1n:0;if(o&&i>o||i<s){const t="bigint"==typeof e?"n":"";throw new j({max:o?`${o}${t}`:void 0,min:`${s}${t}`,signed:n,size:r,value:`${e}${t}`})}const a=`0x${(n&&i<0?(1n<<BigInt(8*r))+BigInt(i):i).toString(16)}`;return r?H(a,{size:r}):a}const $=new TextEncoder;function _(e,t={}){return Q($.encode(e),t)}const ee=new TextEncoder;function te(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){const n=Z(e,t);return ie(n)}(e,t):"boolean"==typeof e?function(e,t={}){const n=new Uint8Array(1);if(n[0]=Number(e),"number"==typeof t.size)return J(n,{size:t.size}),H(n,{size:t.size});return n}(e,t):k(e)?ie(e,t):oe(e,t)}const ne={zero:48,nine:57,A:65,F:70,a:97,f:102};function re(e){return e>=ne.zero&&e<=ne.nine?e-ne.zero:e>=ne.A&&e<=ne.F?e-(ne.A-10):e>=ne.a&&e<=ne.f?e-(ne.a-10):void 0}function ie(e,t={}){let n=e;t.size&&(J(n,{size:t.size}),n=H(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,o=new Uint8Array(i);for(let s=0,a=0;s<i;s++){const e=re(r.charCodeAt(a++)),t=re(r.charCodeAt(a++));if(void 0===e||void 0===t)throw new T(`Invalid byte sequence ("${r[a-2]}${r[a-1]}" in "${r}").`);o[s]=16*e+t}return o}function oe(e,t={}){const n=ee.encode(e);return"number"==typeof t.size?(J(n,{size:t.size}),H(n,{dir:"right",size:t.size})):n}const se=BigInt(2**32-1),ae=BigInt(32);function ce(e,t=!1){return t?{h:Number(e&se),l:Number(e>>ae&se)}:{h:0|Number(e>>ae&se),l:0|Number(e&se)}}function ue(e,t=!1){const n=e.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let o=0;o<n;o++){const{h:n,l:s}=ce(e[o],t);[r[o],i[o]]=[n,s]}return[r,i]}const le=(e,t,n)=>e>>>n,fe=(e,t,n)=>e<<32-n|t>>>n,de=(e,t,n)=>e>>>n|t<<32-n,he=(e,t,n)=>e<<32-n|t>>>n,pe=(e,t,n)=>e<<64-n|t>>>n-32,me=(e,t,n)=>e>>>n-32|t<<64-n;function ge(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}const be=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),we=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,ye=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),ve=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,Ae=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),ke=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0,xe="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function Ce(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function Ee(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Se(e,...t){if(!Ce(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Te(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");Ee(e.outputLen),Ee(e.blockLen)}function Me(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Ie(e,t){Se(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function Be(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Ne(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Re(e,t){return e<<32-t|e>>>t}function Fe(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const Oe=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=Fe(e[t]);return e},Pe=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),Le=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function De(e){if(Se(e),Pe)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Le[e[n]];return t}const Ue=48,He=57,ze=65,je=70,Ve=97,qe=102;function Je(e){return e>=Ue&&e<=He?e-Ue:e>=ze&&e<=je?e-(ze-10):e>=Ve&&e<=qe?e-(Ve-10):void 0}function Ge(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(Pe)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let i=0,o=0;i<n;i++,o+=2){const t=Je(e.charCodeAt(o)),n=Je(e.charCodeAt(o+1));if(void 0===t||void 0===n){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}r[i]=16*t+n}return r}function We(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}(e)),Se(e),e}function Ke(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];Se(n),t+=n.length}const n=new Uint8Array(t);for(let r=0,i=0;r<e.length;r++){const t=e[r];n.set(t,i),i+=t.length}return n}class Ye{}function Xe(e){const t=t=>e().update(We(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Qe(e=32){if(xe&&"function"==typeof xe.getRandomValues)return xe.getRandomValues(new Uint8Array(e));if(xe&&"function"==typeof xe.randomBytes)return Uint8Array.from(xe.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const Ze=BigInt(0),$e=BigInt(1),_e=BigInt(2),et=BigInt(7),tt=BigInt(256),nt=BigInt(113),rt=[],it=[],ot=[];for(let sA=0,aA=$e,cA=1,uA=0;sA<24;sA++){[cA,uA]=[uA,(2*cA+3*uA)%5],rt.push(2*(5*uA+cA)),it.push((sA+1)*(sA+2)/2%64);let e=Ze;for(let t=0;t<7;t++)aA=(aA<<$e^(aA>>et)*nt)%tt,aA&_e&&(e^=$e<<($e<<BigInt(t))-$e);ot.push(e)}const st=ue(ot,!0),at=st[0],ct=st[1],ut=(e,t,n)=>n>32?((e,t,n)=>t<<n-32|e>>>64-n)(e,t,n):((e,t,n)=>e<<n|t>>>32-n)(e,t,n),lt=(e,t,n)=>n>32?((e,t,n)=>e<<n-32|t>>>64-n)(e,t,n):((e,t,n)=>t<<n|e>>>32-n)(e,t,n);class ft extends Ye{constructor(e,t,n,r=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,Ee(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");var o;this.state=new Uint8Array(200),this.state32=(o=this.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)))}clone(){return this.i()}keccak(){Oe(this.state32),function(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,i=(r+2)%10,o=n[i],s=n[i+1],a=ut(o,s,1)^n[t],c=lt(o,s,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=a,e[r+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=it[n],o=ut(t,i,r),s=lt(t,i,r),a=rt[n];t=e[a],i=e[a+1],e[a]=o,e[a+1]=s}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=at[r],e[1]^=ct[r]}Be(n)}(this.state32,this.rounds),Oe(this.state32),this.posOut=0,this.pos=0}update(e){Me(this),Se(e=We(e));const{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){const o=Math.min(t-this.pos,r-i);for(let t=0;t<o;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,128&t&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){Me(this,!1),Se(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Ee(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Ie(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Be(this.state)}i(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new ft(t,n,r,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}const dt=(()=>{return e=1,t=136,n=32,Xe(()=>new ft(t,e,n));var e,t,n})();function ht(e,t){const n=t||"hex",r=dt(k(e,{strict:!1})?te(e):e);return"bytes"===n?r:Y(r)}function pt(e){return ht(te(e))}const mt=e=>{var t;return function(e){let t=!0,n="",r=0,i="",o=!1;for(let s=0;s<e.length;s++){const a=e[s];if(["(",")",","].includes(a)&&(t=!0),"("===a&&r++,")"===a&&r--,t)if(0!==r)" "!==a?(i+=a,n+=a):","!==e[s-1]&&","!==n&&",("!==n&&(n="",t=!1);else if(" "===a&&["event","function",""].includes(i))i="";else if(i+=a,")"===a){o=!0;break}}if(!o)throw new T("Unable to normalize signature.");return i}("string"==typeof e?e:"function"===(t=e).type?`function ${t.name}(${y(t.inputs)})${t.stateMutability&&"nonpayable"!==t.stateMutability?` ${t.stateMutability}`:""}${t.outputs?.length?` returns (${y(t.outputs)})`:""}`:"event"===t.type?`event ${t.name}(${y(t.inputs)})`:"error"===t.type?`error ${t.name}(${y(t.inputs)})`:"constructor"===t.type?`constructor(${y(t.inputs)})${"payable"===t.stateMutability?" payable":""}`:"fallback"===t.type?"fallback() external"+("payable"===t.stateMutability?" payable":""):"receive() external payable")};function gt(e){return pt(mt(e))}const bt=gt;class wt extends T{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class yt extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}const vt=new yt(8192);const At=/^0x[a-fA-F0-9]{40}$/,kt=new yt(8192);function xt(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if(kt.has(r))return kt.get(r);const i=!(!At.test(e)||e.toLowerCase()!==e&&n&&function(e,t){if(vt.has(`${e}.${t}`))return vt.get(`${e}.${t}`);const n=e.substring(2).toLowerCase(),r=ht(oe(n),"bytes"),i=n.split("");for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&i[s]&&(i[s]=i[s].toUpperCase()),(15&r[s>>1])>=8&&i[s+1]&&(i[s+1]=i[s+1].toUpperCase());const o=`0x${i.join("")}`;return vt.set(`${e}.${t}`,o),o}(e)!==e);return kt.set(r,i),i}function Ct(e){return"string"==typeof e[0]?Et(e):function(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(e)}function Et(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function St(e,t,n,{strict:r}={}){return k(e,{strict:!1})?function(e,t,n,{strict:r}={}){Tt(e,t);const i=`0x${e.replace("0x","").slice(2*(t??0),2*(n??e.length))}`;r&&Mt(i,t,n);return i}(e,t,n,{strict:r}):function(e,t,n,{strict:r}={}){Tt(e,t);const i=e.slice(t,n);r&&Mt(i,t,n);return i}(e,t,n,{strict:r})}function Tt(e,t){if("number"==typeof t&&t>0&&t>x(e)-1)throw new D({offset:t,position:"start",size:x(e)})}function Mt(e,t,n){if("number"==typeof t&&"number"==typeof n&&x(e)!==n-t)throw new D({offset:n,position:"end",size:x(e)})}const It=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Bt(e,t){if(e.length!==t.length)throw new N({expectedLength:e.length,givenLength:t.length});const n=function({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push(Nt({param:e[r],value:t[r]}));return n}({params:e,values:t}),r=Rt(n);return 0===r.length?"0x":r}function Nt({param:e,value:t}){const n=function(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}(e.type);if(n){const[r,i]=n;return function(e,{length:t,param:n}){const r=null===t;if(!Array.isArray(e))throw new P(e);if(!r&&e.length!==t)throw new I({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let i=!1;const o=[];for(let s=0;s<e.length;s++){const t=Nt({param:n,value:e[s]});t.dynamic&&(i=!0),o.push(t)}if(r||i){const e=Rt(o);if(r){const t=Z(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?Ct([t,e]):t}}if(i)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:Ct(o.map(({encoded:e})=>e))}}(t,{length:r,param:{...e,type:i}})}if("tuple"===e.type)return function(e,{param:t}){let n=!1;const r=[];for(let i=0;i<t.components.length;i++){const o=t.components[i],s=Nt({param:o,value:e[Array.isArray(e)?i:o.name]});r.push(s),s.dynamic&&(n=!0)}return{dynamic:n,encoded:n?Rt(r):Ct(r.map(({encoded:e})=>e))}}(t,{param:e});if("address"===e.type)return function(e){if(!xt(e))throw new wt({address:e});return{dynamic:!1,encoded:z(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new T(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:z(X(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const n=e.type.startsWith("int"),[,,r="256"]=It.exec(e.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){const r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new j({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:Z(e,{size:32,signed:t})}}(t,{signed:n,size:Number(r)})}if(e.type.startsWith("bytes"))return function(e,{param:t}){const[,n]=t.type.split("bytes"),r=x(e);if(!n){let t=e;return r%32!=0&&(t=z(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:Ct([z(Z(r,{size:32})),t])}}if(r!==Number.parseInt(n,10))throw new B({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:z(e,{dir:"right"})}}(t,{param:e});if("string"===e.type)return function(e){const t=_(e),n=Math.ceil(x(t)/32),r=[];for(let i=0;i<n;i++)r.push(z(St(t,32*i,32*(i+1)),{dir:"right"}));return{dynamic:!0,encoded:Ct([z(Z(x(t),{size:32})),...r])}}(t);throw new O(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Rt(e){let t=0;for(let o=0;o<e.length;o++){const{dynamic:n,encoded:r}=e[o];t+=n?32:x(r)}const n=[],r=[];let i=0;for(let o=0;o<e.length;o++){const{dynamic:s,encoded:a}=e[o];s?(n.push(Z(t+i,{size:32})),r.push(a),i+=x(a)):n.push(a)}return Ct([...n,...r])}const Ft=e=>St(gt(e),0,4);function Ot(e,t){const n=typeof e,r=t.type;switch(r){case"address":return xt(e,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in t?Object.values(t.components).every((t,r)=>"object"===n&&Ot(Object.values(e)[r],t)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(e)&&e.every(e=>Ot(e,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})))}}function Pt(e,t,n){for(const r in e){const i=e[r],o=t[r];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return Pt(i.components,o.components,n[r]);const s=[i.type,o.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&xt(n[r],{strict:!1}))())return s}}function Lt(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}const Dt="/docs/contract/encodeFunctionData";function Ut(e){const{abi:t,args:n,functionName:r}=e;let i=t[0];if(r){const e=function(e){const{abi:t,args:n=[],name:r}=e,i=k(r,{strict:!1}),o=t.filter(e=>i?"function"===e.type?Ft(e)===r:"event"===e.type&&bt(e)===r:"name"in e&&e.name===r);if(0===o.length)return;if(1===o.length)return o[0];let s;for(const a of o)if("inputs"in a)if(n&&0!==n.length){if(a.inputs&&0!==a.inputs.length&&a.inputs.length===n.length&&n.every((e,t)=>{const n="inputs"in a&&a.inputs[t];return!!n&&Ot(e,n)})){if(s&&"inputs"in s&&s.inputs){const e=Pt(a.inputs,s.inputs,n);if(e)throw new F({abiItem:a,type:e[0]},{abiItem:s,type:e[1]})}s=a}}else if(!a.inputs||0===a.inputs.length)return a;return s||o[0]}({abi:t,args:n,name:r});if(!e)throw new R(r,{docsPath:Dt});i=e}if("function"!==i.type)throw new R(void 0,{docsPath:Dt});return{abi:[i],functionName:Ft(v(i))}}function Ht(e){const{args:t}=e,{abi:n,functionName:r}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:Ut(e),i=n[0];return Et([r,("inputs"in i&&i.inputs?Bt(i.inputs,t??[]):void 0)??"0x"])}class zt extends T{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class jt extends T{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class Vt extends T{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}const qt={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new Vt({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new jt({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new zt({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new zt({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this.o();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this.o();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this.o();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this.o();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this.o();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this.o();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},o(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Jt(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(qt);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}const Gt={gwei:9,wei:18},Wt={ether:-9,wei:9};function Kt(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[i,o]=[n.slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${o?`.${o}`:""}`}function Yt(e,t="wei"){return Kt(e,Gt[t])}function Xt(e,t="wei"){return Kt(e,Wt[t])}function Qt(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n}\n`,"")}function Zt(e){const t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class $t extends T{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class _t extends T{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Zt(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class en extends T{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class tn extends T{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:o,gasPrice:s,maxFeePerGas:a,maxPriorityFeePerGas:c,nonce:u,to:l,value:f,stateOverride:d}){const h=t?Lt(t):void 0;let p=Zt({from:h?.address,to:l,value:void 0!==f&&`${Yt(f)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==s&&`${Xt(s)} gwei`,maxFeePerGas:void 0!==a&&`${Xt(a)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${Xt(c)} gwei`,nonce:u});d&&(p+=`\n${function(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}:\n`;return n.nonce&&(r+=` nonce: ${n.nonce}\n`),n.balance&&(r+=` balance: ${n.balance}\n`),n.code&&(r+=` code: ${n.code}\n`),n.state&&(r+=" state:\n",r+=Qt(n.state)),n.stateDiff&&(r+=" stateDiff:\n",r+=Qt(n.stateDiff)),r}," State Override:\n").slice(0,-1)}(d)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}function nn(e,t="hex"){const n=rn(e),r=Jt(new Uint8Array(n.length));return n.encode(r),"hex"===t?Q(r.bytes):r.bytes}function rn(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),n=on(t);return{length:t<=55?1+t:1+n+t,encode(r){t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t));for(const{encode:t}of e)t(r)}}}(e.map(e=>rn(e))):function(e){const t="string"==typeof e?ie(e):e,n=on(t.length),r=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length;return{length:r,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function on(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new T("Length is too large.")}class sn extends T{constructor({cause:e,message:t}={}){const n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(sn,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(sn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class an extends T{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Xt(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(an,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class cn extends T{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Xt(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(cn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class un extends T{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(un,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class ln extends T{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(ln,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class fn extends T{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(fn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class dn extends T{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(dn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class hn extends T{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(hn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class pn extends T{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(pn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class mn extends T{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(mn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class gn extends T{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${Xt(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Xt(n)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(gn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class bn extends T{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}function wn(e,{format:t}){if(!t)return{};const n={};return function t(r){const i=Object.keys(r);for(const o of i)o in e&&(n[o]=e[o]),r[o]&&"object"==typeof r[o]&&!Array.isArray(r[o])&&t(r[o])}(t(e||{})),n}function yn(e,t){return({exclude:n,format:r})=>({exclude:n,format:(e,i)=>{const o=t(e,i);if(n)for(const t of n)delete o[t];return{...o,...r(e,i)}},type:e})}const vn={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function An(e,t){const n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?Z(BigInt(e.r)):e.r,s:e.s?Z(BigInt(e.s)):e.s,chainId:Z(e.chainId),nonce:Z(e.nonce),...void 0!==e.yParity?{yParity:Z(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Z(e.v)}:{}}))),void 0!==e.accessList&&(n.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(n.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?n.blobs=e.blobs.map(e=>Q(e)):n.blobs=e.blobs),void 0!==e.data&&(n.data=e.data),e.account&&(n.from=e.account.address),void 0!==e.from&&(n.from=e.from),void 0!==e.gas&&(n.gas=Z(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=Z(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=Z(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=Z(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=Z(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=Z(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=vn[e.type]),void 0!==e.value&&(n.value=Z(e.value)),n}const kn=2n**256n-1n;const xn={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Cn(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...null!=e.blockTimestamp&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?W(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?W(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?xn[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n==0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}const En=yn("transaction",Cn);function Sn(e,t){const n=(e.transactions??[]).map(e=>"string"==typeof e?e:Cn(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Tn=yn("block",Sn);function Mn(e){const{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>ie(e)):e.blobs,i=[];for(const o of r)i.push(Uint8Array.from(t.blobToKzgCommitment(o)));return"bytes"===n?i:i.map(e=>Q(e))}function In(e){const{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>ie(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>ie(e)):e.commitments,o=[];for(let s=0;s<r.length;s++){const e=r[s],n=i[s];o.push(Uint8Array.from(t.computeBlobKzgProof(e,n)))}return"bytes"===n?o:o.map(e=>Q(e))}function Bn(e,t,n){return e&t^~e&n}function Nn(e,t,n){return e&t^e&n^t&n}class Rn extends Ye{constructor(e,t,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=Ne(this.buffer)}update(e){Me(this),Se(e=We(e));const{view:t,buffer:n,blockLen:r}=this,i=e.length;for(let o=0;o<i;){const s=Math.min(r-this.pos,i-o);if(s===r){const t=Ne(e);for(;r<=i-o;o+=r)this.process(t,o);continue}n.set(e.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Me(this),Ie(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:r,isLE:i}=this;let{pos:o}=this;t[o++]=128,Be(this.buffer.subarray(o)),this.padOffset>r-o&&(this.process(n,0),o=0);for(let l=o;l<r;l++)t[l]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,u=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+u,a,r)}(n,r-8,BigInt(8*this.length),i),this.process(n,0);const s=Ne(e),a=this.outputLen;if(a%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=a/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<c;l++)s.setUint32(4*l,u[l],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}i(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=i,e.length=r,e.pos=s,r%t&&e.buffer.set(n),e}clone(){return this.i()}}const Fn=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),On=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Pn=Uint32Array.from([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]),Ln=new Uint32Array(64);class Dn extends Rn{constructor(e=32){super(64,e,8,!1),this.A=0|Fn[0],this.B=0|Fn[1],this.C=0|Fn[2],this.D=0|Fn[3],this.E=0|Fn[4],this.F=0|Fn[5],this.G=0|Fn[6],this.H=0|Fn[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[e,t,n,r,i,o,s,a]}set(e,t,n,r,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let l=0;l<16;l++,t+=4)Ln[l]=e.getUint32(t,!1);for(let l=16;l<64;l++){const e=Ln[l-15],t=Ln[l-2],n=Re(e,7)^Re(e,18)^e>>>3,r=Re(t,17)^Re(t,19)^t>>>10;Ln[l]=r+Ln[l-7]+n+Ln[l-16]|0}let{A:n,B:r,C:i,D:o,E:s,F:a,G:c,H:u}=this;for(let l=0;l<64;l++){const e=u+(Re(s,6)^Re(s,11)^Re(s,25))+Bn(s,a,c)+Pn[l]+Ln[l]|0,t=(Re(n,2)^Re(n,13)^Re(n,22))+Nn(n,r,i)|0;u=c,c=a,a=s,s=o+e|0,o=i,i=r,r=n,n=e+t|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,o=o+this.D|0,s=s+this.E|0,a=a+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(n,r,i,o,s,a,c,u)}roundClean(){Be(Ln)}destroy(){this.set(0,0,0,0,0,0,0,0),Be(this.buffer)}}const Un=(()=>ue(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),Hn=(()=>Un[0])(),zn=(()=>Un[1])(),jn=new Uint32Array(80),Vn=new Uint32Array(80);class qn extends Rn{constructor(e=64){super(128,e,16,!1),this.Ah=0|On[0],this.Al=0|On[1],this.Bh=0|On[2],this.Bl=0|On[3],this.Ch=0|On[4],this.Cl=0|On[5],this.Dh=0|On[6],this.Dl=0|On[7],this.Eh=0|On[8],this.El=0|On[9],this.Fh=0|On[10],this.Fl=0|On[11],this.Gh=0|On[12],this.Gl=0|On[13],this.Hh=0|On[14],this.Hl=0|On[15]}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:u,Fh:l,Fl:f,Gh:d,Gl:h,Hh:p,Hl:m}=this;return[e,t,n,r,i,o,s,a,c,u,l,f,d,h,p,m]}set(e,t,n,r,i,o,s,a,c,u,l,f,d,h,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|u,this.Fh=0|l,this.Fl=0|f,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let w=0;w<16;w++,t+=4)jn[w]=e.getUint32(t),Vn[w]=e.getUint32(t+=4);for(let w=16;w<80;w++){const e=0|jn[w-15],t=0|Vn[w-15],n=de(e,t,1)^de(e,t,8)^le(e,0,7),r=he(e,t,1)^he(e,t,8)^fe(e,t,7),i=0|jn[w-2],o=0|Vn[w-2],s=de(i,o,19)^pe(i,o,61)^le(i,0,6),a=he(i,o,19)^me(i,o,61)^fe(i,o,6),c=ye(r,a,Vn[w-7],Vn[w-16]),u=ve(c,n,s,jn[w-7],jn[w-16]);jn[w]=0|u,Vn[w]=0|c}let{Ah:n,Al:r,Bh:i,Bl:o,Ch:s,Cl:a,Dh:c,Dl:u,Eh:l,El:f,Fh:d,Fl:h,Gh:p,Gl:m,Hh:g,Hl:b}=this;for(let w=0;w<80;w++){const e=de(l,f,14)^de(l,f,18)^pe(l,f,41),t=he(l,f,14)^he(l,f,18)^me(l,f,41),y=l&d^~l&p,v=Ae(b,t,f&h^~f&m,zn[w],Vn[w]),A=ke(v,g,e,y,Hn[w],jn[w]),k=0|v,x=de(n,r,28)^pe(n,r,34)^pe(n,r,39),C=he(n,r,28)^me(n,r,34)^me(n,r,39),E=n&i^n&s^i&s,S=r&o^r&a^o&a;g=0|p,b=0|m,p=0|d,m=0|h,d=0|l,h=0|f,({h:l,l:f}=ge(0|c,0|u,0|A,0|k)),c=0|s,u=0|a,s=0|i,a=0|o,i=0|n,o=0|r;const T=be(k,C,S);n=we(T,A,x,E),r=0|T}({h:n,l:r}=ge(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:o}=ge(0|this.Bh,0|this.Bl,0|i,0|o)),({h:s,l:a}=ge(0|this.Ch,0|this.Cl,0|s,0|a)),({h:c,l:u}=ge(0|this.Dh,0|this.Dl,0|c,0|u)),({h:l,l:f}=ge(0|this.Eh,0|this.El,0|l,0|f)),({h:d,l:h}=ge(0|this.Fh,0|this.Fl,0|d,0|h)),({h:p,l:m}=ge(0|this.Gh,0|this.Gl,0|p,0|m)),({h:g,l:b}=ge(0|this.Hh,0|this.Hl,0|g,0|b)),this.set(n,r,i,o,s,a,c,u,l,f,d,h,p,m,g,b)}roundClean(){Be(jn,Vn)}destroy(){Be(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Jn=Xe(()=>new Dn),Gn=Xe(()=>new qn),Wn=Jn;function Kn(e){const{commitment:t,version:n=1}=e,r=e.to??("string"==typeof t?"hex":"bytes"),i=Wn(k(o=t,{strict:!1})?te(o):o);var o;return i.set([n],0),"bytes"===r?i:Q(i)}const Yn=4096,Xn=131072,Qn=761855;class Zn extends T{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class $n extends T{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class _n extends T{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class er extends T{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}function tr(e){const{data:t,kzg:n,to:r}=e,i=e.blobs??function(e){const t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?ie(e.data):e.data,r=x(n);if(!r)throw new $n;if(r>Qn)throw new Zn({maxSize:Qn,size:r});const i=[];let o=!0,s=0;for(;o;){const e=Jt(new Uint8Array(Xn));let t=0;for(;t<Yn;){const r=n.slice(s,s+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),o=!1;break}t++,s+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>Q(e.bytes))}({data:t,to:r}),o=e.commitments??Mn({blobs:i,kzg:n,to:r}),s=e.proofs??In({blobs:i,commitments:o,kzg:n,to:r}),a=[];for(let c=0;c<i.length;c++)a.push({blob:i[c],commitment:o[c],proof:s[c]});return a}class nr extends T{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}function rr(e,{docsPath:t,...n}){const r=(()=>{const t=function(e,t){const n=(e.details||"").toLowerCase(),r=e instanceof T?e.walk(e=>e?.code===sn.code):e;return r instanceof T?new sn({cause:e,message:r.details}):sn.nodeMessage.test(n)?new sn({cause:e,message:e.details}):an.nodeMessage.test(n)?new an({cause:e,maxFeePerGas:t?.maxFeePerGas}):cn.nodeMessage.test(n)?new cn({cause:e,maxFeePerGas:t?.maxFeePerGas}):un.nodeMessage.test(n)?new un({cause:e,nonce:t?.nonce}):ln.nodeMessage.test(n)?new ln({cause:e,nonce:t?.nonce}):fn.nodeMessage.test(n)?new fn({cause:e,nonce:t?.nonce}):dn.nodeMessage.test(n)?new dn({cause:e}):hn.nodeMessage.test(n)?new hn({cause:e,gas:t?.gas}):pn.nodeMessage.test(n)?new pn({cause:e,gas:t?.gas}):mn.nodeMessage.test(n)?new mn({cause:e}):gn.nodeMessage.test(n)?new gn({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new bn({cause:e})}(e,n);return t instanceof bn?e:t})();return new tn(r,{docsPath:t,...n})}class ir extends T{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}const or={"0x0":"reverted","0x1":"success"};function sr(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>function(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?W(e.transactionIndex):null,status:e.status?or[e.status]:null,type:e.type?xn[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const ar=yn("transactionReceipt",sr);function cr(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new nr({chainId:t});if(i&&!xt(i))throw new wt({address:i});if(r&&r>kn)throw new an({maxFeePerGas:r});if(n&&r&&n>r)throw new gn({maxFeePerGas:r,maxPriorityFeePerGas:n})}function ur(e){if(!e||0===e.length)return[];const t=[];for(let n=0;n<e.length;n++){const{address:r,storageKeys:i}=e[n];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new en({storageKey:i[e]});if(!xt(r,{strict:!1}))throw new wt({address:r});t.push([r,i])}return t}function lr(e,t){const n=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new _t({transaction:e})}(e);return"eip1559"===n?function(e,t){const{chainId:n,gas:r,nonce:i,to:o,value:s,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:u,data:l}=e;cr(e);const f=ur(u),d=[Z(n),i?Z(i):"0x",c?Z(c):"0x",a?Z(a):"0x",r?Z(r):"0x",o??"0x",s?Z(s):"0x",l??"0x",f,...fr(e,t)];return Et(["0x02",nn(d)])}(e,t):"eip2930"===n?function(e,t){const{chainId:n,gas:r,data:i,nonce:o,to:s,value:a,accessList:c,gasPrice:u}=e;!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:o}=e;if(t<=0)throw new nr({chainId:t});if(o&&!xt(o))throw new wt({address:o});if(n||i)throw new T("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>kn)throw new an({maxFeePerGas:r})}(e);const l=ur(c),f=[Z(n),o?Z(o):"0x",u?Z(u):"0x",r?Z(r):"0x",s??"0x",a?Z(a):"0x",i??"0x",l,...fr(e,t)];return Et(["0x01",nn(f)])}(e,t):"eip4844"===n?function(e,t){const{chainId:n,gas:r,nonce:i,to:o,value:s,maxFeePerBlobGas:a,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:l,data:f}=e;!function(e){const{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new $n;for(const e of t){const t=x(e),n=W(St(e,0,1));if(32!==t)throw new _n({hash:e,size:t});if(1!==n)throw new er({hash:e,version:n})}}cr(e)}(e);let d=e.blobVersionedHashes,h=e.sidecars;if(e.blobs&&(void 0===d||void 0===h)){const t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>Q(e)),n=e.kzg,r=Mn({blobs:t,kzg:n});if(void 0===d&&(d=function(e){const{commitments:t,version:n}=e,r=e.to??("string"==typeof t[0]?"hex":"bytes"),i=[];for(const o of t)i.push(Kn({commitment:o,to:r,version:n}));return i}({commitments:r})),void 0===h){h=tr({blobs:t,commitments:r,proofs:In({blobs:t,commitments:r,kzg:n})})}}const p=ur(l),m=[Z(n),i?Z(i):"0x",u?Z(u):"0x",c?Z(c):"0x",r?Z(r):"0x",o??"0x",s?Z(s):"0x",f??"0x",p,a?Z(a):"0x",d??[],...fr(e,t)],g=[],b=[],w=[];if(h)for(let y=0;y<h.length;y++){const{blob:e,commitment:t,proof:n}=h[y];g.push(e),b.push(t),w.push(n)}return Et(["0x03",nn(h?[m,g,b,w]:m)])}(e,t):"eip7702"===n?function(e,t){const{authorizationList:n,chainId:r,gas:i,nonce:o,to:s,value:a,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:l,data:f}=e;!function(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:e}=n,t=n.address;if(!xt(t))throw new wt({address:t});if(e<0)throw new nr({chainId:e})}cr(e)}(e);const d=ur(l),h=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const{chainId:e,nonce:r,...i}=n,o=n.address;t.push([e?Y(e):"0x",o,r?Y(r):"0x",...fr({},i)])}return t}(n);return Et(["0x04",nn([Z(r),o?Z(o):"0x",u?Z(u):"0x",c?Z(c):"0x",i?Z(i):"0x",s??"0x",a?Z(a):"0x",f??"0x",d,h,...fr(e,t)])])}(e,t):function(e,t){const{chainId:n=0,gas:r,data:i,nonce:o,to:s,value:a,gasPrice:c}=e;!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:o}=e;if(o&&!xt(o))throw new wt({address:o});if(void 0!==t&&t<=0)throw new nr({chainId:t});if(n||i)throw new T("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>kn)throw new an({maxFeePerGas:r})}(e);let u=[o?Z(o):"0x",c?Z(c):"0x",r?Z(r):"0x",s??"0x",a?Z(a):"0x",i??"0x"];if(t){const e=(()=>{if(t.v>=35n){return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n)}if(n>0)return BigInt(2*n)+BigInt(35n+t.v-27n);const e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new $t({v:t.v});return e})(),r=q(t.r),i=q(t.s);u=[...u,Z(e),"0x00"===r?"0x":r,"0x00"===i?"0x":i]}else n>0&&(u=[...u,Z(n),"0x","0x"]);return nn(u)}(e,t)}function fr(e,t){const n=t??e,{v:r,yParity:i}=n;if(void 0===n.r)return[];if(void 0===n.s)return[];if(void 0===r&&void 0===i)return[];const o=q(n.r),s=q(n.s);return["number"==typeof i?i?Z(1):"0x":0n===r?"0x":1n===r?Z(1):27n===r?"0x":Z(1),"0x00"===o?"0x":o,"0x00"===s?"0x":s]}function dr(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(t,{extend:function e(t){return n=>{const r="function"==typeof n?n(t):n,i={...t,...r};return Object.assign(i,{extend:e(i)})}}(t)})}class hr extends Ye{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,Te(e);const n=We(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=e.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),Be(i)}update(e){return Me(this),this.iHash.update(e),this}digestInto(e){Me(this),Se(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}i(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t.i(e.oHash),e.iHash=n.i(e.iHash),e}clone(){return this.i()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const pr=(e,t,n)=>new hr(e,t).update(n).digest();pr.create=(e,t)=>new hr(e,t);class mr extends T{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function gr(e){return e&&e.u&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function br(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"u",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var wr,yr={},vr={};var Ar,kr,xr={};function Cr(){return kr||(kr=1,function(e){const t=function(){if(wr)return vr;wr=1,vr.byteLength=function(e){var t=o(e),n=t[0],r=t[1];return 3*(n+r)/4-r},vr.toByteArray=function(e){var r,i,s=o(e),a=s[0],c=s[1],u=new n(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(i=0;i<f;i+=4)r=t[e.charCodeAt(i)]<<18|t[e.charCodeAt(i+1)]<<12|t[e.charCodeAt(i+2)]<<6|t[e.charCodeAt(i+3)],u[l++]=r>>16&255,u[l++]=r>>8&255,u[l++]=255&r;return 2===c&&(r=t[e.charCodeAt(i)]<<2|t[e.charCodeAt(i+1)]>>4,u[l++]=255&r),1===c&&(r=t[e.charCodeAt(i)]<<10|t[e.charCodeAt(i+1)]<<4|t[e.charCodeAt(i+2)]>>2,u[l++]=r>>8&255,u[l++]=255&r),u},vr.fromByteArray=function(t){for(var n,r=t.length,i=r%3,o=[],s=16383,c=0,u=r-i;c<u;c+=s)o.push(a(t,c,c+s>u?u:c+s));return 1===i?(n=t[r-1],o.push(e[n>>2]+e[n<<4&63]+"==")):2===i&&(n=(t[r-2]<<8)+t[r-1],o.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"=")),o.join("")};for(var e=[],t=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)e[i]=r[i],t[r.charCodeAt(i)]=i;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function a(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(r));return i.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,vr}(),n=(Ar||(Ar=1,xr.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=u}return(h?-1:1)*s*Math.pow(2,o-r)},xr.write=function(e,t,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+h]=255&s,h+=p,s/=256,u-=8);e[n+h-p]|=128*m}),xr),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|h(e,t);let r=o(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);const i=function(e){if(s.isBuffer(e)){const t=0|d(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?o(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|d(e))}function l(e){const t=e.length<0?0:0|d(e.length),n=o(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function d(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(e).length;default:if(i)return r?-1:J(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(Y(r))return s;e[n+s]=r}return s}function y(e,t,n,r){return W(J(t,e.length-n),e,n,r)}function v(e,t,n,r){return W(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return W(G(t),e,n,r)}function k(e,t,n,r){return W(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function x(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function C(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=E));return n}(r)}e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return a(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e.S&&e!==s.prototype},s.compare=function(e,t){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=s.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},s.byteLength=h,s.prototype.S=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?C(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const c=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n);for(let s=0;s<c;++s)if(u[s]!==l[s]){o=u[s],a=l[s];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":case"latin1":case"binary":return v(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.M||this,0)}};const E=4096;function S(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function T(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=X[e[o]];return i}function I(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function B(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function F(e,t,n,r,i){z(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function O(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(e,t,r,i,o){return t=+t,r>>>=0,o||O(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function L(e,t,r,i,o){return t=+t,r>>>=0,o||O(e,0,r,8),n.write(e,t,r,i,52,8),r+8}s.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Q(function(e){j(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=Q(function(e){j(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Q(function(e){j(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),s.prototype.readBigInt64BE=Q(function(e){j(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||V(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=Q(function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Q(function(e,t=0){return F(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=Q(function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Q(function(e,t=0){return F(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,n){return P(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return P(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=s.isBuffer(e)?e:s.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const D={};function U(e,t,n){D[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function H(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function z(e,t,n,r,i,o){if(e>n||e<t){const n="bigint"==typeof t?"n":"";let r;throw r=0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`,new D.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){j(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||V(t,e.length-(n+1))}(r,i,o)}function j(e,t){if("number"!=typeof e)throw new D.ERR_INVALID_ARG_TYPE(t,"number",e)}function V(e,t,n){if(Math.floor(e)!==e)throw j(e,n),new D.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new D.ERR_BUFFER_OUT_OF_BOUNDS;throw new D.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),U("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=H(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=H(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const q=/[^+/0-9A-Za-z-_]/g;function J(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function G(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}}(yr)),yr}var Er=Cr();const Sr=BigInt(0),Tr=BigInt(1);function Mr(e,t=""){if("boolean"!=typeof e){throw new Error((t&&`"${t}"`)+"expected boolean, got type="+typeof e)}return e}function Ir(e,t,n=""){const r=Ce(e),i=e?.length,o=void 0!==t;if(!r||o&&i!==t){throw new Error((n&&`"${n}" `)+"expected Uint8Array"+(o?` of length ${t}`:"")+", got "+(r?`length=${i}`:"type="+typeof e))}return e}function Br(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function Nr(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?Sr:BigInt("0x"+e)}function Rr(e){return Nr(De(e))}function Fr(e){return Se(e),Nr(De(Uint8Array.from(e).reverse()))}function Or(e,t){return Ge(e.toString(16).padStart(2*t,"0"))}function Pr(e,t){return Or(e,t).reverse()}function Lr(e,t,n){let r;if("string"==typeof t)try{r=Ge(t)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else{if(!Ce(t))throw new Error(e+" must be hex string or Uint8Array");r=Uint8Array.from(t)}const i=r.length;if("number"==typeof n&&i!==n)throw new Error(e+" of length "+n+" expected, got "+i);return r}function Dr(e){return Uint8Array.from(e)}const Ur=e=>"bigint"==typeof e&&Sr<=e;function Hr(e,t,n,r){if(!function(e,t,n){return Ur(e)&&Ur(t)&&Ur(n)&&t<=e&&e<n}(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function zr(e){let t;for(t=0;e>Sr;e>>=Tr,t+=1);return t}const jr=e=>(Tr<<BigInt(e))-Tr;function Vr(e,t,n={}){if(!e||"object"!=typeof e)throw new Error("expected valid options object");function r(t,n,r){const i=e[t];if(r&&void 0===i)return;const o=typeof i;if(o!==n||null===i)throw new Error(`param "${t}" is invalid: expected ${n}, got ${o}`)}Object.entries(t).forEach(([e,t])=>r(e,t,!1)),Object.entries(n).forEach(([e,t])=>r(e,t,!0))}function qr(e){const t=new WeakMap;return(n,...r)=>{const i=t.get(n);if(void 0!==i)return i;const o=e(n,...r);return t.set(n,o),o}}const Jr=BigInt(0),Gr=BigInt(1),Wr=BigInt(2),Kr=BigInt(3),Yr=BigInt(4),Xr=BigInt(5),Qr=BigInt(7),Zr=BigInt(8),$r=BigInt(9),_r=BigInt(16);function ei(e,t){const n=e%t;return n>=Jr?n:t+n}function ti(e,t,n){let r=e;for(;t-- >Jr;)r*=r,r%=n;return r}function ni(e,t){if(e===Jr)throw new Error("invert: expected non-zero number");if(t<=Jr)throw new Error("invert: expected positive modulus, got "+t);let n=ei(e,t),r=t,i=Jr,o=Gr;for(;n!==Jr;){const e=r%n,t=i-o*(r/n);r=n,n=e,i=o,o=t}if(r!==Gr)throw new Error("invert: does not exist");return ei(i,t)}function ri(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function ii(e,t){const n=(e.ORDER+Gr)/Yr,r=e.pow(t,n);return ri(e,r,t),r}function oi(e,t){const n=(e.ORDER-Xr)/Zr,r=e.mul(t,Wr),i=e.pow(r,n),o=e.mul(t,i),s=e.mul(e.mul(o,Wr),i),a=e.mul(o,e.sub(s,e.ONE));return ri(e,a,t),a}function si(e){if(e<Kr)throw new Error("sqrt is not defined for small field");let t=e-Gr,n=0;for(;t%Wr===Jr;)t/=Wr,n++;let r=Wr;const i=di(e);for(;1===li(i,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return ii;let o=i.pow(r,t);const s=(t+Gr)/Wr;return function(e,r){if(e.is0(r))return r;if(1!==li(e,r))throw new Error("Cannot find square root");let i=n,a=e.mul(e.ONE,o),c=e.pow(r,t),u=e.pow(r,s);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw new Error("Cannot find square root");const r=Gr<<BigInt(i-t-1),o=e.pow(a,r);i=t,a=e.sqr(o),c=e.mul(c,a),u=e.mul(u,o)}return u}}function ai(e){return e%Yr===Kr?ii:e%Zr===Xr?oi:e%_r===$r?function(e){const t=di(e),n=si(e),r=n(t,t.neg(t.ONE)),i=n(t,r),o=n(t,t.neg(r)),s=(e+Qr)/_r;return(e,t)=>{let n=e.pow(t,s),a=e.mul(n,r);const c=e.mul(n,i),u=e.mul(n,o),l=e.eql(e.sqr(a),t),f=e.eql(e.sqr(c),t);n=e.cmov(n,a,l),a=e.cmov(u,c,f);const d=e.eql(e.sqr(a),t),h=e.cmov(n,a,d);return ri(e,h,t),h}}(e):si(e)}const ci=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ui(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),o=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),o),r}function li(e,t){const n=(e.ORDER-Gr)/Wr,r=e.pow(t,n),i=e.eql(r,e.ONE),o=e.eql(r,e.ZERO),s=e.eql(r,e.neg(e.ONE));if(!i&&!o&&!s)throw new Error("invalid Legendre symbol result");return i?1:o?0:-1}function fi(e,t){void 0!==t&&Ee(t);const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function di(e,t,n=!1,r={}){if(e<=Jr)throw new Error("invalid field: expected ORDER > 0, got "+e);let i,o,s,a=!1;if("object"==typeof t&&null!=t){if(r.sqrt||n)throw new Error("cannot specify opts in two arguments");const e=t;e.BITS&&(i=e.BITS),e.sqrt&&(o=e.sqrt),"boolean"==typeof e.isLE&&(n=e.isLE),"boolean"==typeof e.modFromBytes&&(a=e.modFromBytes),s=e.allowedLengths}else"number"==typeof t&&(i=t),r.sqrt&&(o=r.sqrt);const{nBitLength:c,nByteLength:u}=fi(e,i);if(u>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let l;const f=Object.freeze({ORDER:e,isLE:n,BITS:c,BYTES:u,MASK:jr(c),ZERO:Jr,ONE:Gr,allowedLengths:s,create:t=>ei(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return Jr<=t&&t<e},is0:e=>e===Jr,isValidNot0:e=>!f.is0(e)&&f.isValid(e),isOdd:e=>(e&Gr)===Gr,neg:t=>ei(-t,e),eql:(e,t)=>e===t,sqr:t=>ei(t*t,e),add:(t,n)=>ei(t+n,e),sub:(t,n)=>ei(t-n,e),mul:(t,n)=>ei(t*n,e),pow:(e,t)=>function(e,t,n){if(n<Jr)throw new Error("invalid exponent, negatives unsupported");if(n===Jr)return e.ONE;if(n===Gr)return t;let r=e.ONE,i=t;for(;n>Jr;)n&Gr&&(r=e.mul(r,i)),i=e.sqr(i),n>>=Gr;return r}(f,e,t),div:(t,n)=>ei(t*ni(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>ni(t,e),sqrt:o||(t=>(l||(l=ai(e)),l(f,t))),toBytes:e=>n?Pr(e,u):Or(e,u),fromBytes:(t,r=!0)=>{if(s){if(!s.includes(t.length)||t.length>u)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+t.length);const e=new Uint8Array(u);e.set(t,n?0:e.length-t.length),t=e}if(t.length!==u)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+t.length);let i=n?Fr(t):Rr(t);if(a&&(i=ei(i,e)),!r&&!f.isValid(i))throw new Error("invalid field element: outside of range 0..ORDER");return i},invertBatch:e=>ui(f,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(f)}function hi(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function pi(e){const t=hi(e);return t+Math.ceil(t/2)}const mi=BigInt(0),gi=BigInt(1);function bi(e,t){const n=t.negate();return e?n:t}function wi(e,t){const n=ui(e.Fp,t.map(e=>e.Z));return t.map((t,r)=>e.fromAffine(t.toAffine(n[r])))}function yi(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function vi(e,t){yi(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:jr(e),maxNumber:n,shiftBy:BigInt(e)}}function Ai(e,t,n){const{windowSize:r,mask:i,maxNumber:o,shiftBy:s}=n;let a=Number(e&i),c=e>>s;a>r&&(a-=o,c+=gi);const u=t*r;return{nextN:c,offset:u+Math.abs(a)-1,isZero:0===a,isNeg:a<0,isNegF:t%2!=0,offsetF:u}}const ki=new WeakMap,xi=new WeakMap;function Ci(e){return xi.get(e)||1}function Ei(e){if(e!==mi)throw new Error("invalid wNAF")}class Si{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}I(e,t,n=this.ZERO){let r=e;for(;t>mi;)t&gi&&(n=n.add(r)),r=r.double(),t>>=gi;return n}precomputeWindow(e,t){const{windows:n,windowSize:r}=vi(t,this.bits),i=[];let o=e,s=o;for(let a=0;a<n;a++){s=o,i.push(s);for(let e=1;e<r;e++)s=s.add(o),i.push(s);o=s.double()}return i}wNAF(e,t,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let r=this.ZERO,i=this.BASE;const o=vi(e,this.bits);for(let s=0;s<o.windows;s++){const{nextN:e,offset:a,isZero:c,isNeg:u,isNegF:l,offsetF:f}=Ai(n,s,o);n=e,c?i=i.add(bi(l,t[f])):r=r.add(bi(u,t[a]))}return Ei(n),{p:r,f:i}}wNAFUnsafe(e,t,n,r=this.ZERO){const i=vi(e,this.bits);for(let o=0;o<i.windows&&n!==mi;o++){const{nextN:e,offset:s,isZero:a,isNeg:c}=Ai(n,o,i);if(n=e,!a){const e=t[s];r=r.add(c?e.negate():e)}}return Ei(n),r}getPrecomputes(e,t,n){let r=ki.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&("function"==typeof n&&(r=n(r)),ki.set(t,r))),r}cached(e,t,n){const r=Ci(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)}unsafe(e,t,n,r){const i=Ci(e);return 1===i?this.I(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)}createCache(e,t){yi(t,this.bits),xi.set(e,t),ki.delete(e)}hasCache(e){return 1!==Ci(e)}}function Ti(e,t,n,r){!function(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw new Error("invalid point at index "+n)})}(n,e),function(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+n)})}(r,t);const i=n.length,o=r.length;if(i!==o)throw new Error("arrays of points and scalars must have equal length");const s=e.ZERO,a=zr(BigInt(i));let c=1;a>12?c=a-3:a>4?c=a-2:a>0&&(c=2);const u=jr(c),l=new Array(Number(u)+1).fill(s);let f=s;for(let d=Math.floor((t.BITS-1)/c)*c;d>=0;d-=c){l.fill(s);for(let t=0;t<o;t++){const e=r[t],i=Number(e>>BigInt(d)&u);l[i]=l[i].add(n[t])}let e=s;for(let t=l.length-1,n=s;t>0;t--)n=n.add(l[t]),e=e.add(n);if(f=f.add(e),0!==d)for(let t=0;t<c;t++)f=f.double()}return f}function Mi(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return function(e){Vr(e,ci.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"}))}(t),t}return di(e,{isLE:n})}function Ii(e,t,n={},r){if(void 0===r&&(r="edwards"===e),!t||"object"!=typeof t)throw new Error(`expected valid ${e} CURVE object`);for(const a of["p","n","h"]){const e=t[a];if(!("bigint"==typeof e&&e>mi))throw new Error(`CURVE.${a} must be positive bigint`)}const i=Mi(t.p,n.Fp,r),o=Mi(t.n,n.Fn,r),s=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const a of s)if(!i.isValid(t[a]))throw new Error(`CURVE.${a} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:i,Fn:o}}const Bi=BigInt(0),Ni=BigInt(1),Ri=BigInt(2),Fi=BigInt(8);function Oi(e,t,n={}){if("function"!=typeof t)throw new Error('"hash" function param is required');Vr(n,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:r}=n,{BASE:i,Fp:o,Fn:s}=e,a=n.randomBytes||Qe,c=n.adjustScalarBytes||(e=>e),u=n.domain||((e,t,n)=>{if(Mr(n,"phflag"),t.length||n)throw new Error("Contexts/pre-hash are not supported");return e});function l(e){return s.create(Fr(e))}function f(e){const{head:n,prefix:r,scalar:o}=function(e){const n=g.secretKey;e=Lr("private key",e,n);const r=Lr("hashed private key",t(e),2*n),i=c(r.slice(0,n));return{head:i,prefix:r.slice(n,2*n),scalar:l(i)}}(e),s=i.multiply(o),a=s.toBytes();return{head:n,prefix:r,scalar:o,point:s,pointBytes:a}}function d(e){return f(e).pointBytes}function h(e=Uint8Array.of(),...n){const i=Ke(...n);return l(t(u(i,Lr("context",e),!!r)))}const p={zip215:!0};const m=o.BYTES,g={secretKey:m,publicKey:m,signature:2*m,seed:m};function b(e=a(g.seed)){return Ir(e,g.seed,"seed")}const w={getExtendedPublicKey:f,randomSecretKey:b,isValidSecretKey:function(e){return Ce(e)&&e.length===s.BYTES},isValidPublicKey:function(t,n){try{return!!e.fromBytes(t,n)}catch(r){return!1}},toMontgomery(t){const{y:n}=e.fromBytes(t),r=g.publicKey,i=32===r;if(!i&&57!==r)throw new Error("only defined for 25519 and 448");const s=i?o.div(Ni+n,Ni-n):o.div(n-Ni,n+Ni);return o.toBytes(s)},toMontgomerySecret(e){const n=g.secretKey;Ir(e,n);const r=t(e.subarray(0,n));return c(r).subarray(0,n)},randomPrivateKey:b,precompute:(t=8,n=e.BASE)=>n.precompute(t,!1)};return Object.freeze({keygen:function(e){const t=w.randomSecretKey(e);return{secretKey:t,publicKey:d(t)}},getPublicKey:d,sign:function(e,t,n={}){e=Lr("message",e),r&&(e=r(e));const{prefix:o,scalar:a,pointBytes:c}=f(t),u=h(n.context,o,e),l=i.multiply(u).toBytes(),d=h(n.context,l,c,e),p=s.create(u+d*a);if(!s.isValid(p))throw new Error("sign failed: invalid s");return Ir(Ke(l,s.toBytes(p)),g.signature,"result")},verify:function(t,n,o,s=p){const{context:a,zip215:c}=s,u=g.signature;t=Lr("signature",t,u),n=Lr("message",n),o=Lr("publicKey",o,g.publicKey),void 0!==c&&Mr(c,"zip215"),r&&(n=r(n));const l=u/2,f=t.subarray(0,l),d=Fr(t.subarray(l,u));let m,b,w;try{m=e.fromBytes(o,c),b=e.fromBytes(f,c),w=i.multiplyUnsafe(d)}catch(v){return!1}if(!c&&m.isSmallOrder())return!1;const y=h(a,b.toBytes(),m.toBytes(),n);return b.add(m.multiplyUnsafe(y)).subtract(w).clearCofactor().is0()},utils:w,Point:e,lengths:g})}function Pi(e){const{CURVE:t,curveOpts:n,hash:r,eddsaOpts:i}=function(e){const t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n={Fp:e.Fp,Fn:di(t.n,e.nBitLength,!0),uvRatio:e.uvRatio},r={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:n,hash:e.hash,eddsaOpts:r}}(e),o=function(e,t={}){const n=Ii("edwards",e,t,t.FpFnLE),{Fp:r,Fn:i}=n;let o=n.CURVE;const{h:s}=o;Vr(t,{},{uvRatio:"function"});const a=Ri<<BigInt(8*i.BYTES)-Ni,c=e=>r.create(e),u=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:r.sqrt(r.div(e,t))}}catch(n){return{isValid:!1,value:Bi}}});if(!function(e,t,n,r){const i=e.sqr(n),o=e.sqr(r),s=e.add(e.mul(t.a,i),o),a=e.add(e.ONE,e.mul(t.d,e.mul(i,o)));return e.eql(s,a)}(r,o,o.Gx,o.Gy))throw new Error("bad curve params: generator point");function l(e,t,n=!1){return Hr("coordinate "+e,t,n?Ni:Bi,a),t}function f(e){if(!(e instanceof p))throw new Error("ExtendedPoint expected")}const d=qr((e,t)=>{const{X:n,Y:i,Z:o}=e,s=e.is0();null==t&&(t=s?Fi:r.inv(o));const a=c(n*t),u=c(i*t),l=r.mul(o,t);if(s)return{x:Bi,y:Ni};if(l!==Ni)throw new Error("invZ was invalid");return{x:a,y:u}}),h=qr(e=>{const{a:t,d:n}=o;if(e.is0())throw new Error("bad point: ZERO");const{X:r,Y:i,Z:s,T:a}=e,u=c(r*r),l=c(i*i),f=c(s*s),d=c(f*f),h=c(u*t);if(c(f*c(h+l))!==c(d+c(n*c(u*l))))throw new Error("bad point: equation left != right (1)");if(c(r*i)!==c(s*a))throw new Error("bad point: equation left != right (2)");return!0});class p{constructor(e,t,n,r){this.X=l("x",e),this.Y=l("y",t),this.Z=l("z",n,!0),this.T=l("t",r),Object.freeze(this)}static CURVE(){return o}static fromAffine(e){if(e instanceof p)throw new Error("extended point not allowed");const{x:t,y:n}=e||{};return l("x",t),l("y",n),new p(t,n,Ni,c(t*n))}static fromBytes(e,t=!1){const n=r.BYTES,{a:i,d:s}=o;e=Dr(Ir(e,n,"point")),Mr(t,"zip215");const l=Dr(e),f=e[n-1];l[n-1]=-129&f;const d=Fr(l),h=t?a:r.ORDER;Hr("point.y",d,Bi,h);const m=c(d*d),g=c(m-Ni),b=c(s*m-i);let{isValid:w,value:y}=u(g,b);if(!w)throw new Error("bad point: invalid y coordinate");const v=(y&Ni)===Ni,A=!!(128&f);if(!t&&y===Bi&&A)throw new Error("bad point: x=0 and x_0=1");return A!==v&&(y=c(-y)),p.fromAffine({x:y,y:d})}static fromHex(e,t=!1){return p.fromBytes(Lr("point",e),t)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return m.createCache(this,e),t||this.multiply(Ri),this}assertValidity(){h(this)}equals(e){f(e);const{X:t,Y:n,Z:r}=this,{X:i,Y:o,Z:s}=e,a=c(t*s),u=c(i*r),l=c(n*s),d=c(o*r);return a===u&&l===d}is0(){return this.equals(p.ZERO)}negate(){return new p(c(-this.X),this.Y,this.Z,c(-this.T))}double(){const{a:e}=o,{X:t,Y:n,Z:r}=this,i=c(t*t),s=c(n*n),a=c(Ri*c(r*r)),u=c(e*i),l=t+n,f=c(c(l*l)-i-s),d=u+s,h=d-a,m=u-s,g=c(f*h),b=c(d*m),w=c(f*m),y=c(h*d);return new p(g,b,y,w)}add(e){f(e);const{a:t,d:n}=o,{X:r,Y:i,Z:s,T:a}=this,{X:u,Y:l,Z:d,T:h}=e,m=c(r*u),g=c(i*l),b=c(a*n*h),w=c(s*d),y=c((r+i)*(u+l)-m-g),v=w-b,A=w+b,k=c(g-t*m),x=c(y*v),C=c(A*k),E=c(y*k),S=c(v*A);return new p(x,C,S,E)}subtract(e){return this.add(e.negate())}multiply(e){if(!i.isValidNot0(e))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:t,f:n}=m.cached(this,e,e=>wi(p,e));return wi(p,[t,n])[0]}multiplyUnsafe(e,t=p.ZERO){if(!i.isValid(e))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return e===Bi?p.ZERO:this.is0()||e===Ni?this:m.unsafe(this,e,e=>wi(p,e),t)}isSmallOrder(){return this.multiplyUnsafe(s).is0()}isTorsionFree(){return m.unsafe(this,o.n).is0()}toAffine(e){return d(this,e)}clearCofactor(){return s===Ni?this:this.multiplyUnsafe(s)}toBytes(){const{x:e,y:t}=this.toAffine(),n=r.toBytes(t);return n[n.length-1]|=e&Ni?128:0,n}toHex(){return De(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(e){return wi(p,e)}static msm(e,t){return Ti(p,i,e,t)}N(e){this.precompute(e)}toRawBytes(){return this.toBytes()}}p.BASE=new p(o.Gx,o.Gy,Ni,c(o.Gx*o.Gy)),p.ZERO=new p(Bi,Ni,Ni,Bi),p.Fp=r,p.Fn=i;const m=new Si(p,i.BITS);return p.BASE.precompute(8),p}(t,n);return function(e,t){const n=t.Point;return Object.assign({},t,{ExtendedPoint:n,CURVE:e,nBitLength:n.Fn.BITS,nByteLength:n.Fn.BYTES})}(e,Oi(o,r,i))}const Li=BigInt(1),Di=BigInt(2);BigInt(3);const Ui=BigInt(5),Hi=BigInt(8),zi=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),ji=(()=>({p:zi,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:Hi,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")}))();function Vi(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const qi=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function Ji(e,t){const n=zi,r=ei(t*t*t,n),i=function(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),o=zi,s=e*e%o*e%o,a=ti(s,Di,o)*s%o,c=ti(a,Li,o)*e%o,u=ti(c,Ui,o)*c%o,l=ti(u,t,o)*u%o,f=ti(l,n,o)*l%o,d=ti(f,r,o)*f%o,h=ti(d,i,o)*d%o,p=ti(h,i,o)*d%o,m=ti(p,t,o)*u%o;return{pow_p_5_8:ti(m,Di,o)*e%o,b2:s}}(e*ei(r*r*t,n)).pow_p_5_8;let o=ei(e*r*i,n);const s=ei(t*o*o,n),a=o,c=ei(o*qi,n),u=s===e,l=s===ei(-e,n),f=s===ei(-e*qi,n);return u&&(o=a),(l||f)&&(o=c),(ei(o,n)&Gr)===Gr&&(o=ei(-o,n)),{isValid:u||l,value:o}}const Gi=(()=>di(ji.p,{isLE:!0}))(),Wi=(()=>({...ji,Fp:Gi,hash:Gn,adjustScalarBytes:Vi,uvRatio:Ji}))(),Ki=(()=>Pi(Wi))();var Yi={exports:{}};const Xi=br(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Qi,Zi=Yi.exports;function $i(){return Qi||(Qi=1,function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this.R(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Xi.Buffer}catch(S){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function a(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,r,i){for(var o=0,s=0,a=Math.min(e.length,r),c=t;c<a;c++){var u=e.charCodeAt(c)-48;o*=i,s=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s<i,"Invalid character"),o+=s}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype.R=function(e,t,r){if("number"==typeof e)return this.O(e,t,r);if("object"==typeof e)return this.P(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this.L(e,i,r):(this.U(e,t,i),"le"===r&&this.P(this.toArray(),t,r)))},i.prototype.O=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this.P(this.toArray(),t,r)},i.prototype.P=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.j()},i.prototype.L=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.j()},i.prototype.U=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,s=o%r,a=Math.min(o,o-s)+n,u=0,l=n;l<a;l+=r)u=c(e,l,l+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this.V(u);if(0!==s){var f=1;for(u=c(e,l,e.length,t),l=0;l<s;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this.V(u)}this.j()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.q=function(e){u(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype.J=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.j=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this.W()},i.prototype.W=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(S){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u<r;u++){for(var l=c>>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(s=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&s}n.words[u]=0|f,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n.j()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?f[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(e);r=(p=p.idivn(l)).isZero()?m+r:f[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this.j();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},i.prototype.K=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;e[n++]=255&s,n<e.length&&(e[n++]=s>>8&255),n<e.length&&(e[n++]=s>>16&255),6===o?(n<e.length&&(e[n++]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},i.prototype.$=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;e[n--]=255&s,n>=0&&(e[n--]=s>>8&255),n>=0&&(e[n--]=s>>16&255),6===o?(n>=0&&(e[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._=function(e){return 32-Math.clz32(e)}:i.prototype._=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype.ee=function(e){if(0===e)return 26;var t=e,n=0;return 8191&t||(n+=13,t>>>=13),127&t||(n+=7,t>>>=7),15&t||(n+=4,t>>>=4),3&t||(n+=2,t>>>=2),1&t||n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this.ee(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.j()},i.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.j()},i.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.j()},i.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this.J(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.j()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this.J(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.j()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this.W();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t.W();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t.W()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this.W();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(t=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<n.length;s++)o=(t=(0|n.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this.j()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var r,i,o,s=e.words,a=t.words,c=n.words,u=0,l=0|s[0],f=8191&l,d=l>>>13,h=0|s[1],p=8191&h,m=h>>>13,g=0|s[2],b=8191&g,w=g>>>13,y=0|s[3],v=8191&y,A=y>>>13,k=0|s[4],x=8191&k,C=k>>>13,E=0|s[5],S=8191&E,T=E>>>13,M=0|s[6],I=8191&M,B=M>>>13,N=0|s[7],R=8191&N,F=N>>>13,O=0|s[8],P=8191&O,L=O>>>13,D=0|s[9],U=8191&D,H=D>>>13,z=0|a[0],j=8191&z,V=z>>>13,q=0|a[1],J=8191&q,G=q>>>13,W=0|a[2],K=8191&W,Y=W>>>13,X=0|a[3],Q=8191&X,Z=X>>>13,$=0|a[4],_=8191&$,ee=$>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ce=8191&ae,ue=ae>>>13,le=0|a[8],fe=8191&le,de=le>>>13,he=0|a[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(u+(r=Math.imul(f,j))|0)+((8191&(i=(i=Math.imul(f,V))+Math.imul(d,j)|0))<<13)|0;u=((o=Math.imul(d,V))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,j),i=(i=Math.imul(p,V))+Math.imul(m,j)|0,o=Math.imul(m,V);var be=(u+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,G)|0)+Math.imul(d,J)|0))<<13)|0;u=((o=o+Math.imul(d,G)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,j),i=(i=Math.imul(b,V))+Math.imul(w,j)|0,o=Math.imul(w,V),r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,G)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,G)|0;var we=(u+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;u=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(v,j),i=(i=Math.imul(v,V))+Math.imul(A,j)|0,o=Math.imul(A,V),r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(w,J)|0,o=o+Math.imul(w,G)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var ye=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(x,j),i=(i=Math.imul(x,V))+Math.imul(C,j)|0,o=Math.imul(C,V),r=r+Math.imul(v,J)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,G)|0,r=r+Math.imul(b,K)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var ve=(u+(r=r+Math.imul(f,_)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,_)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(S,j),i=(i=Math.imul(S,V))+Math.imul(T,j)|0,o=Math.imul(T,V),r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,G)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,G)|0,r=r+Math.imul(v,K)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(p,_)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,_)|0,o=o+Math.imul(m,ee)|0;var Ae=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;u=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,j),i=(i=Math.imul(I,V))+Math.imul(B,j)|0,o=Math.imul(B,V),r=r+Math.imul(S,J)|0,i=(i=i+Math.imul(S,G)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,G)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(C,K)|0,o=o+Math.imul(C,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(b,_)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(w,_)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(u+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,se)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,j),i=(i=Math.imul(R,V))+Math.imul(F,j)|0,o=Math.imul(F,V),r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(B,J)|0,o=o+Math.imul(B,G)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,Z)|0,r=r+Math.imul(v,_)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(A,_)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var xe=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(P,j),i=(i=Math.imul(P,V))+Math.imul(L,j)|0,o=Math.imul(L,V),r=r+Math.imul(R,J)|0,i=(i=i+Math.imul(R,G)|0)+Math.imul(F,J)|0,o=o+Math.imul(F,G)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Y)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Z)|0,r=r+Math.imul(x,_)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(C,_)|0,o=o+Math.imul(C,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,se)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,se)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,ue)|0;var Ce=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,j),i=(i=Math.imul(U,V))+Math.imul(H,j)|0,o=Math.imul(H,V),r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(L,J)|0,o=o+Math.imul(L,G)|0,r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(F,K)|0,o=o+Math.imul(F,Y)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(S,_)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(T,_)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(C,ne)|0,o=o+Math.imul(C,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,se)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,se)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,ue)|0)+Math.imul(w,ce)|0,o=o+Math.imul(w,ue)|0,r=r+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Ee=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,J),i=(i=Math.imul(U,G))+Math.imul(H,J)|0,o=Math.imul(H,G),r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(F,Q)|0,o=o+Math.imul(F,Z)|0,r=r+Math.imul(I,_)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(B,_)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(S,ne)|0,i=(i=i+Math.imul(S,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,se)|0)+Math.imul(C,oe)|0,o=o+Math.imul(C,se)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,r=r+Math.imul(b,fe)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(w,fe)|0,o=o+Math.imul(w,de)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,K),i=(i=Math.imul(U,Y))+Math.imul(H,K)|0,o=Math.imul(H,Y),r=r+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(R,_)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(F,_)|0,o=o+Math.imul(F,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(B,ne)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,se)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,ue)|0)+Math.imul(C,ce)|0,o=o+Math.imul(C,ue)|0,r=r+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,de)|0;var Te=(u+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(w,pe)|0))<<13)|0;u=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,Q),i=(i=Math.imul(U,Z))+Math.imul(H,Q)|0,o=Math.imul(H,Z),r=r+Math.imul(P,_)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(L,_)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(F,ne)|0,o=o+Math.imul(F,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,se)|0,r=r+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,ue)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,ue)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,de)|0;var Me=(u+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,_),i=(i=Math.imul(U,ee))+Math.imul(H,_)|0,o=Math.imul(H,ee),r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(F,oe)|0,o=o+Math.imul(F,se)|0,r=r+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(B,ce)|0,o=o+Math.imul(B,ue)|0,r=r+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Ie=(u+(r=r+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(C,pe)|0))<<13)|0;u=((o=o+Math.imul(C,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,ne),i=(i=Math.imul(U,re))+Math.imul(H,ne)|0,o=Math.imul(H,re),r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,se)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,se)|0,r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(F,ce)|0,o=o+Math.imul(F,ue)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,de)|0;var Be=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(H,oe)|0,o=Math.imul(H,se),r=r+Math.imul(P,ce)|0,i=(i=i+Math.imul(P,ue)|0)+Math.imul(L,ce)|0,o=o+Math.imul(L,ue)|0,r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(F,fe)|0,o=o+Math.imul(F,de)|0;var Ne=(u+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(B,pe)|0))<<13)|0;u=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(U,ce),i=(i=Math.imul(U,ue))+Math.imul(H,ce)|0,o=Math.imul(H,ue),r=r+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(L,fe)|0,o=o+Math.imul(L,de)|0;var Re=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(F,pe)|0))<<13)|0;u=((o=o+Math.imul(F,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,fe),i=(i=Math.imul(U,de))+Math.imul(H,fe)|0,o=Math.imul(H,de);var Fe=(u+(r=r+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(L,pe)|0))<<13)|0;u=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Fe>>>26)|0,Fe&=67108863;var Oe=(u+(r=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,me))+Math.imul(H,pe)|0))<<13)|0;return u=((o=Math.imul(H,me))+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,c[0]=ge,c[1]=be,c[2]=we,c[3]=ye,c[4]=ve,c[5]=Ae,c[6]=ke,c[7]=xe,c[8]=Ce,c[9]=Ee,c[10]=Se,c[11]=Te,c[12]=Me,c[13]=Ie,c[14]=Be,c[15]=Ne,c[16]=Re,c[17]=Fe,c[18]=Oe,0!==u&&(c[19]=u,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var a=67108863&r,c=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=c;u++){var l=o-u,f=(0|e.words[l])*(0|t.words[u]),d=67108863&f;a=67108863&(d=d+a|0),i+=(s=(s=s+(f/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.j()}function b(e,t,n){return g(e,t,n)}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):n<1024?g(this,e,t):b(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),b(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,s=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,c=(0|this.words[t])-a<<r;this.words[t]=c|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.j()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,c=r;if(i-=s,i=Math.max(0,i),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=i);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&a}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.j()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.j()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this.V(e)},i.prototype.V=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.j()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype.te=function(e,t,r){var i,o,s=e.length+r;this.J(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var c=(0|e.words[i])*t;a=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.j();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.j()},i.prototype.ne=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,s=0|o.words[o.length-1];0!=(n=26-this._(s))&&(o=o.ushln(n),r.iushln(n),s=0|o.words[o.length-1]);var a,c=r.length-o.length;if("mod"!==t){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var l=r.clone().te(o,1,c);0===l.negative&&(r=l,a&&(a.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[o.length+f])+(0|r.words[o.length+f-1]);for(d=Math.min(d/s|0,67108863),r.te(o,d,f);0!==r.negative;)d--,r.negative=0,r.te(o,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=d)}return a&&a.j(),r.j(),"div"!==t&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this.ne(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this.j(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),c=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(f)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(l),c.isub(f)),a.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(a),s.isub(c)):(r.isub(t),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:r.iushln(u)}},i.prototype.re=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var f=0,d=1;0===(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this.J(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.j(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new C(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this).ie(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype.ie=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this.ie(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red.oe(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red.oe(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red.se(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red.se(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red.se(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red.se(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red.se(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red.se(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this.ae()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(e){if("string"==typeof e){var t=i.ce(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){C.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r.re(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype.ae=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n.j(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},r(v,y),v.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&n,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(s&n)<<4|o>>>22,o=s}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(A,y),r(k,y),r(x,y),x.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i.ce=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new A;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return w[e]=t,t},C.prototype.se=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},C.prototype.oe=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},C.prototype.imod=function(e){return this.prime?this.prime.ireduce(e).ie(this):(u(e,e.umod(this.m).ie(this)),e)},C.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e).ie(this)},C.prototype.add=function(e,t){this.oe(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n.ie(this)},C.prototype.iadd=function(e,t){this.oe(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},C.prototype.sub=function(e,t){this.oe(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n.ie(this)},C.prototype.isub=function(e,t){this.oe(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},C.prototype.shl=function(e,t){return this.se(e),this.imod(e.ushln(t))},C.prototype.imul=function(e,t){return this.oe(e,t),this.imod(e.imul(t))},C.prototype.mul=function(e,t){return this.oe(e,t),this.imod(e.mul(t))},C.prototype.isqr=function(e){return this.imul(e,e.clone())},C.prototype.sqr=function(e){return this.mul(e,e)},C.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);n(!o.isZero());var a=new i(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,o),d=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=s;0!==h.cmp(a);){for(var m=h,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(f,new i(1).iushln(p-g-1));d=d.redMul(b),f=b.redSqr(),h=h.redMul(f),p=g}return d},C.prototype.invm=function(e){var t=e.re(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},C.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],s=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var f=u>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==f||0!==s?(s<<=1,s|=f,(4===++a||0===r&&0===l)&&(o=this.mul(o,n[s]),a=0,s=0)):a=0}c=26}return o},C.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},C.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},r(E,C),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o.ie(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0).ie(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s.ie(this)},E.prototype.invm=function(e){return this.imod(e.re(this.m).mul(this.r2)).ie(this)}}(Yi,Zi)),Yi.exports}const _i=gr($i());var eo,to,no,ro,io,oo={exports:{}};function so(){if(no)return to;no=1;var e=(eo||(eo=1,function(e,t){var n=Cr(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(oo,oo.exports)),oo.exports).Buffer;return to=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<t.length;i++){var o=t.charAt(i),s=o.charCodeAt(0);if(255!==n[s])throw new TypeError(o+" is ambiguous");n[s]=i}var a=t.length,c=t.charAt(0),u=Math.log(a)/Math.log(256),l=Math.log(256)/Math.log(a);function f(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return e.alloc(0);for(var r=0,i=0,o=0;t[r]===c;)i++,r++;for(var s=(t.length-r)*u+1>>>0,l=new Uint8Array(s);r<t.length;){var f=t.charCodeAt(r);if(f>255)return;var d=n[f];if(255===d)return;for(var h=0,p=s-1;(0!==d||h<o)&&-1!==p;p--,h++)d+=a*l[p]>>>0,l[p]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");o=h,r++}for(var m=s-o;m!==s&&0===l[m];)m++;var g=e.allocUnsafe(i+(s-m));g.fill(0,0,i);for(var b=i;m!==s;)g[b++]=l[m++];return g}return{encode:function(n){if((Array.isArray(n)||n instanceof Uint8Array)&&(n=e.from(n)),!e.isBuffer(n))throw new TypeError("Expected Buffer");if(0===n.length)return"";for(var r=0,i=0,o=0,s=n.length;o!==s&&0===n[o];)o++,r++;for(var u=(s-o)*l+1>>>0,f=new Uint8Array(u);o!==s;){for(var d=n[o],h=0,p=u-1;(0!==d||h<i)&&-1!==p;p--,h++)d+=256*f[p]>>>0,f[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=h,o++}for(var m=u-i;m!==u&&0===f[m];)m++;for(var g=c.repeat(r);m<u;++m)g+=t.charAt(f[m]);return g},decodeUnsafe:f,decode:function(e){var t=f(e);if(t)return t;throw new Error("Non-base"+a+" character")}}}}function ao(){if(io)return ro;io=1;var e=so();return ro=e("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")}const co=gr(ao());var uo={};function lo(e,t,n){return t<=e&&e<=n}function fo(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function ho(e){this.tokens=[].slice.call(e)}ho.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var po=-1;function mo(e,t){if(e)throw TypeError("Decoder error");return t||65533}var go="utf-8";function bo(e,t){if(!(this instanceof bo))return new bo(e,t);if((e=void 0!==e?String(e).toLowerCase():go)!==go)throw new Error("Encoding not supported. Only utf-8 is supported");t=fo(t),this.ue=!1,this.le=!1,this.fe=null,this.de=Boolean(t.fatal),this.he=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this.de}),Object.defineProperty(this,"ignoreBOM",{value:this.he})}function wo(e,t){if(!(this instanceof wo))return new wo(e,t);if((e=void 0!==e?String(e).toLowerCase():go)!==go)throw new Error("Encoding not supported. Only utf-8 is supported");t=fo(t),this.ue=!1,this.pe=null,this.me={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function yo(e){var t=e.fatal,n=0,r=0,i=0,o=128,s=191;this.handler=function(e,a){if(-1===a&&0!==i)return i=0,mo(t);if(-1===a)return po;if(0===i){if(lo(a,0,127))return a;if(lo(a,194,223))i=1,n=a-192;else if(lo(a,224,239))224===a&&(o=160),237===a&&(s=159),i=2,n=a-224;else{if(!lo(a,240,244))return mo(t);240===a&&(o=144),244===a&&(s=143),i=3,n=a-240}return n<<=6*i,null}if(!lo(a,o,s))return n=i=r=0,o=128,s=191,e.prepend(a),mo(t);if(o=128,s=191,n+=a-128<<6*(i-(r+=1)),r!==i)return null;var c=n;return n=i=r=0,c}}function vo(e){e.fatal,this.handler=function(e,t){if(-1===t)return po;if(lo(t,0,127))return t;var n,r;lo(t,128,2047)?(n=1,r=192):lo(t,2048,65535)?(n=2,r=224):lo(t,65536,1114111)&&(n=3,r=240);for(var i=[(t>>6*n)+r];n>0;){var o=t>>6*(n-1);i.push(128|63&o),n-=1}return i}}bo.prototype={decode:function(e,t){var n;n="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=fo(t),this.ue||(this.fe=new yo({fatal:this.de}),this.le=!1),this.ue=Boolean(t.stream);for(var r,i=new ho(n),o=[];!i.endOfStream()&&(r=this.fe.handler(i,i.read()))!==po;)null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));if(!this.ue){do{if((r=this.fe.handler(i,i.read()))===po)break;null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r))}while(!i.endOfStream());this.fe=null}return o.length&&(-1===["utf-8"].indexOf(this.encoding)||this.he||this.le||(65279===o[0]?(this.le=!0,o.shift()):this.le=!0)),function(e){for(var t="",n=0;n<e.length;++n){var r=e[n];r<=65535?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode(55296+(r>>10),56320+(1023&r)))}return t}(o)}},wo.prototype={encode:function(e,t){e=e?String(e):"",t=fo(t),this.ue||(this.pe=new vo(this.me)),this.ue=Boolean(t.stream);for(var n,r=[],i=new ho(function(e){for(var t=String(e),n=t.length,r=0,i=[];r<n;){var o=t.charCodeAt(r);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var s=e.charCodeAt(r+1);if(56320<=s&&s<=57343){var a=1023&o,c=1023&s;i.push(65536+(a<<10)+c),r+=1}else i.push(65533)}r+=1}return i}(e));!i.endOfStream()&&(n=this.pe.handler(i,i.read()))!==po;)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this.ue){for(;(n=this.pe.handler(i,i.read()))!==po;)Array.isArray(n)?r.push.apply(r,n):r.push(n);this.pe=null}return new Uint8Array(r)}};const Ao=br(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:bo,TextEncoder:wo},Symbol.toStringTag,{value:"Module"})));var ko;var xo,Co=function(){if(ko)return uo;ko=1;var e=uo&&uo.ge||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=uo&&uo.be||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=uo&&uo.we||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},r=uo&&uo.ye||function(n){if(n&&n.u)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},i=uo&&uo.ve||function(e){return e&&e.u?e:{default:e}};Object.defineProperty(uo,"u",{value:!0}),uo.deserializeUnchecked=uo.deserialize=uo.serialize=uo.BinaryReader=uo.BinaryWriter=uo.BorshError=uo.baseDecode=uo.baseEncode=void 0;const o=i($i()),s=i(ao()),a=r(Ao),c=new("function"!=typeof TextDecoder?a.TextDecoder:TextDecoder)("utf-8",{fatal:!0});uo.baseEncode=function(e){return"string"==typeof e&&(e=Buffer.from(e,"utf8")),s.default.encode(Buffer.from(e))},uo.baseDecode=function(e){return Buffer.from(s.default.decode(e))};const u=1024;class l extends Error{constructor(e){super(e),this.fieldPath=[],this.originalMessage=e}addToFieldPath(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}uo.BorshError=l;class f{constructor(){this.buf=Buffer.alloc(u),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(u)]))}writeU8(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}writeU16(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}writeU32(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}writeU64(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",64)))}writeBuffer(e){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),e,Buffer.alloc(u)]),this.length+=e.length}writeString(e){this.maybeResize();const t=Buffer.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}writeFixedArray(e){this.writeBuffer(Buffer.from(e))}writeArray(e,t){this.maybeResize(),this.writeU32(e.length);for(const n of e)this.maybeResize(),t(n)}toArray(){return this.buf.subarray(0,this.length)}}function d(e,t,n){const r=n.value;n.value=function(...e){try{return r.apply(this,e)}catch(t){if(t instanceof RangeError){const e=t.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(e)>=0)throw new l("Reached the end of buffer when deserializing")}throw t}}}uo.BinaryWriter=f;class h{constructor(e){this.buf=e,this.offset=0}readU8(){const e=this.buf.readUInt8(this.offset);return this.offset+=1,e}readU16(){const e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}readU32(){const e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}readU64(){const e=this.readBuffer(8);return new o.default(e,"le")}readU128(){const e=this.readBuffer(16);return new o.default(e,"le")}readU256(){const e=this.readBuffer(32);return new o.default(e,"le")}readU512(){const e=this.readBuffer(64);return new o.default(e,"le")}readBuffer(e){if(this.offset+e>this.buf.length)throw new l(`Expected buffer length ${e} isn't within bounds`);const t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readU32(),t=this.readBuffer(e);try{return c.decode(t)}catch(n){throw new l(`Error decoding UTF-8 string: ${n}`)}}readFixedArray(e){return new Uint8Array(this.readBuffer(e))}readArray(e){const t=this.readU32(),n=Array();for(let r=0;r<t;++r)n.push(e());return n}}function p(e){return e.charAt(0).toUpperCase()+e.slice(1)}function m(e,t,n,r,i){try{if("string"==typeof r)i[`write${p(r)}`](n);else if(r instanceof Array)if("number"==typeof r[0]){if(n.length!==r[0])throw new l(`Expecting byte array of length ${r[0]}, but got ${n.length} bytes`);i.writeFixedArray(n)}else if(2===r.length&&"number"==typeof r[1]){if(n.length!==r[1])throw new l(`Expecting byte array of length ${r[1]}, but got ${n.length} bytes`);for(let t=0;t<r[1];t++)m(e,null,n[t],r[0],i)}else i.writeArray(n,n=>{m(e,t,n,r[0],i)});else if(void 0!==r.kind)switch(r.kind){case"option":null==n?i.writeU8(0):(i.writeU8(1),m(e,t,n,r.type,i));break;case"map":i.writeU32(n.size),n.forEach((n,o)=>{m(e,t,o,r.key,i),m(e,t,n,r.value,i)});break;default:throw new l(`FieldType ${r} unrecognized`)}else g(e,n,i)}catch(o){throw o instanceof l&&o.addToFieldPath(t),o}}function g(e,t,n){if("function"==typeof t.borshSerialize)return void t.borshSerialize(n);const r=e.get(t.constructor);if(!r)throw new l(`Class ${t.constructor.name} is missing in schema`);if("struct"===r.kind)r.fields.map(([r,i])=>{m(e,r,t[r],i,n)});else{if("enum"!==r.kind)throw new l(`Unexpected schema kind: ${r.kind} for ${t.constructor.name}`);{const i=t[r.field];for(let o=0;o<r.values.length;++o){const[s,a]=r.values[o];if(s===i){n.writeU8(o),m(e,s,t[s],a,n);break}}}}}function b(e,t,n,r){try{if("string"==typeof n)return r[`read${p(n)}`]();if(n instanceof Array){if("number"==typeof n[0])return r.readFixedArray(n[0]);if("number"==typeof n[1]){const t=[];for(let i=0;i<n[1];i++)t.push(b(e,null,n[0],r));return t}return r.readArray(()=>b(e,t,n[0],r))}if("option"===n.kind){return r.readU8()?b(e,t,n.type,r):void 0}if("map"===n.kind){let i=new Map;const o=r.readU32();for(let s=0;s<o;s++){const o=b(e,t,n.key,r),s=b(e,t,n.value,r);i.set(o,s)}return i}return w(e,n,r)}catch(i){throw i instanceof l&&i.addToFieldPath(t),i}}function w(e,t,n){if("function"==typeof t.borshDeserialize)return t.borshDeserialize(n);const r=e.get(t);if(!r)throw new l(`Class ${t.name} is missing in schema`);if("struct"===r.kind){const r={};for(const[i,o]of e.get(t).fields)r[i]=b(e,i,o,n);return new t(r)}if("enum"===r.kind){const i=n.readU8();if(i>=r.values.length)throw new l(`Enum index: ${i} is out of range`);const[o,s]=r.values[i],a=b(e,o,s,n);return new t({[o]:a})}throw new l(`Unexpected schema kind: ${r.kind} for ${t.constructor.name}`)}return n([d],h.prototype,"readU8",null),n([d],h.prototype,"readU16",null),n([d],h.prototype,"readU32",null),n([d],h.prototype,"readU64",null),n([d],h.prototype,"readU128",null),n([d],h.prototype,"readU256",null),n([d],h.prototype,"readU512",null),n([d],h.prototype,"readString",null),n([d],h.prototype,"readFixedArray",null),n([d],h.prototype,"readArray",null),uo.BinaryReader=h,uo.serialize=function(e,t,n=f){const r=new n;return g(e,t,r),r.toArray()},uo.deserialize=function(e,t,n,r=h){const i=new r(n),o=w(e,t,i);if(i.offset<n.length)throw new l(`Unexpected ${n.length-i.offset} bytes after deserialized data`);return o},uo.deserializeUnchecked=function(e,t,n,r=h){return w(e,t,new r(n))},uo}(),Eo={};var So=function(){if(xo)return Eo;xo=1,Object.defineProperty(Eo,"u",{value:!0}),Eo.s16=Eo.s8=Eo.nu64be=Eo.u48be=Eo.u40be=Eo.u32be=Eo.u24be=Eo.u16be=Eo.nu64=Eo.u48=Eo.u40=Eo.u32=Eo.u24=Eo.u16=Eo.u8=Eo.offset=Eo.greedy=Eo.Constant=Eo.UTF8=Eo.CString=Eo.Blob=Eo.Boolean=Eo.BitField=Eo.BitStructure=Eo.VariantLayout=Eo.Union=Eo.UnionLayoutDiscriminator=Eo.UnionDiscriminator=Eo.Structure=Eo.Sequence=Eo.DoubleBE=Eo.Double=Eo.FloatBE=Eo.Float=Eo.NearInt64BE=Eo.NearInt64=Eo.NearUInt64BE=Eo.NearUInt64=Eo.IntBE=Eo.Int=Eo.UIntBE=Eo.UInt=Eo.OffsetLayout=Eo.GreedyCount=Eo.ExternalLayout=Eo.bindConstructorLayout=Eo.nameWithProperty=Eo.Layout=Eo.uint8ArrayToBuffer=Eo.checkUint8Array=void 0,Eo.constant=Eo.utf8=Eo.cstr=Eo.blob=Eo.unionLayoutDiscriminator=Eo.union=Eo.seq=Eo.bits=Eo.struct=Eo.f64be=Eo.f64=Eo.f32be=Eo.f32=Eo.ns64be=Eo.s48be=Eo.s40be=Eo.s32be=Eo.s24be=Eo.s16be=Eo.ns64=Eo.s48=Eo.s40=Eo.s32=Eo.s24=void 0;const e=Cr();function t(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function n(n){return t(n),e.Buffer.from(n.buffer,n.byteOffset,n.length)}Eo.checkUint8Array=t,Eo.uint8ArrayToBuffer=n;let r=class{constructor(e,t){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}getSpan(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}};function i(e,t){return t.property?e+"["+t.property+"]":e}Eo.Layout=r,Eo.nameWithProperty=i,Eo.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof r))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(t,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=()=>new e,Object.defineProperty(e.prototype,"encode",{value(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:(e,n)=>t.decode(e,n),writable:!0})};class o extends r{isCount(){throw new Error("ExternalLayout is abstract")}}Eo.ExternalLayout=o;class s extends o{constructor(e=1,t){if(!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,t),this.elementSpan=e}isCount(){return!0}decode(e,n=0){t(e);const r=e.length-n;return Math.floor(r/this.elementSpan)}encode(e,t,n){return 0}}Eo.GreedyCount=s;class a extends o{constructor(e,t=0,n){if(!(e instanceof r))throw new TypeError("layout must be a Layout");if(!Number.isInteger(t))throw new TypeError("offset must be integer or undefined");super(e.span,n||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof c||this.layout instanceof u}decode(e,t=0){return this.layout.decode(e,t+this.offset)}encode(e,t,n=0){return this.layout.encode(e,t,n+this.offset)}}Eo.OffsetLayout=a;class c extends r{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readUIntLE(t,this.span)}encode(e,t,r=0){return n(t).writeUIntLE(e,r,this.span),this.span}}Eo.UInt=c;class u extends r{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readUIntBE(t,this.span)}encode(e,t,r=0){return n(t).writeUIntBE(e,r,this.span),this.span}}Eo.UIntBE=u;class l extends r{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readIntLE(t,this.span)}encode(e,t,r=0){return n(t).writeIntLE(e,r,this.span),this.span}}Eo.Int=l;class f extends r{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readIntBE(t,this.span)}encode(e,t,r=0){return n(t).writeIntBE(e,r,this.span),this.span}}Eo.IntBE=f;const d=Math.pow(2,32);function h(e){const t=Math.floor(e/d);return{hi32:t,lo32:e-t*d}}function p(e,t){return e*d+t}class m extends r{constructor(e){super(8,e)}decode(e,t=0){const r=n(e),i=r.readUInt32LE(t);return p(r.readUInt32LE(t+4),i)}encode(e,t,r=0){const i=h(e),o=n(t);return o.writeUInt32LE(i.lo32,r),o.writeUInt32LE(i.hi32,r+4),8}}Eo.NearUInt64=m;class g extends r{constructor(e){super(8,e)}decode(e,t=0){const r=n(e);return p(r.readUInt32BE(t),r.readUInt32BE(t+4))}encode(e,t,r=0){const i=h(e),o=n(t);return o.writeUInt32BE(i.hi32,r),o.writeUInt32BE(i.lo32,r+4),8}}Eo.NearUInt64BE=g;class b extends r{constructor(e){super(8,e)}decode(e,t=0){const r=n(e),i=r.readUInt32LE(t);return p(r.readInt32LE(t+4),i)}encode(e,t,r=0){const i=h(e),o=n(t);return o.writeUInt32LE(i.lo32,r),o.writeInt32LE(i.hi32,r+4),8}}Eo.NearInt64=b;class w extends r{constructor(e){super(8,e)}decode(e,t=0){const r=n(e);return p(r.readInt32BE(t),r.readUInt32BE(t+4))}encode(e,t,r=0){const i=h(e),o=n(t);return o.writeInt32BE(i.hi32,r),o.writeUInt32BE(i.lo32,r+4),8}}Eo.NearInt64BE=w;class y extends r{constructor(e){super(4,e)}decode(e,t=0){return n(e).readFloatLE(t)}encode(e,t,r=0){return n(t).writeFloatLE(e,r),4}}Eo.Float=y;class v extends r{constructor(e){super(4,e)}decode(e,t=0){return n(e).readFloatBE(t)}encode(e,t,r=0){return n(t).writeFloatBE(e,r),4}}Eo.FloatBE=v;class A extends r{constructor(e){super(8,e)}decode(e,t=0){return n(e).readDoubleLE(t)}encode(e,t,r=0){return n(t).writeDoubleLE(e,r),8}}Eo.Double=A;class k extends r{constructor(e){super(8,e)}decode(e,t=0){return n(e).readDoubleBE(t)}encode(e,t,r=0){return n(t).writeDoubleBE(e,r),8}}Eo.DoubleBE=k;class x extends r{constructor(e,t,n){if(!(e instanceof r))throw new TypeError("elementLayout must be a Layout");if(!(t instanceof o&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let i=-1;!(t instanceof o)&&0<e.span&&(i=t*e.span),super(i,n),this.elementLayout=e,this.count=t}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0,r=this.count;if(r instanceof o&&(r=r.decode(e,t)),0<this.elementLayout.span)n=r*this.elementLayout.span;else{let i=0;for(;i<r;)n+=this.elementLayout.getSpan(e,t+n),++i}return n}decode(e,t=0){const n=[];let r=0,i=this.count;for(i instanceof o&&(i=i.decode(e,t));r<i;)n.push(this.elementLayout.decode(e,t)),t+=this.elementLayout.getSpan(e,t),r+=1;return n}encode(e,t,n=0){const r=this.elementLayout,i=e.reduce((e,i)=>e+r.encode(i,t,n+e),0);return this.count instanceof o&&this.count.encode(e.length,t,n),i}}Eo.Sequence=x;class C extends r{constructor(e,t,n){if(!Array.isArray(e)||!e.reduce((e,t)=>e&&t instanceof r,!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof t&&void 0===n&&(n=t,t=void 0);for(const r of e)if(0>r.span&&void 0===r.property)throw new Error("fields cannot contain unnamed variable-length layout");let i=-1;try{i=e.reduce((e,t)=>e+t.getSpan(),0)}catch(o){}super(i,t),this.fields=e,this.decodePrefixes=!!n}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0;try{n=this.fields.reduce((n,r)=>{const i=r.getSpan(e,t);return t+=i,n+i},0)}catch(r){throw new RangeError("indeterminate span")}return n}decode(e,n=0){t(e);const r=this.makeDestinationObject();for(const t of this.fields)if(void 0!==t.property&&(r[t.property]=t.decode(e,n)),n+=t.getSpan(e,n),this.decodePrefixes&&e.length===n)break;return r}encode(e,t,n=0){const r=n;let i=0,o=0;for(const s of this.fields){let r=s.span;if(o=0<r?r:0,void 0!==s.property){const i=e[s.property];void 0!==i&&(o=s.encode(i,t,n),0>r&&(r=s.getSpan(t,n)))}i=n,n+=r}return i+o-r}fromArray(e){const t=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0<e.length&&(t[n.property]=e.shift());return t}layoutFor(e){if("string"!=typeof e)throw new TypeError("property must be string");for(const t of this.fields)if(t.property===e)return t}offsetOf(e){if("string"!=typeof e)throw new TypeError("property must be string");let t=0;for(const n of this.fields){if(n.property===e)return t;0>n.span?t=-1:0<=t&&(t+=n.span)}}}Eo.Structure=C;class E{constructor(e){this.property=e}decode(e,t){throw new Error("UnionDiscriminator is abstract")}encode(e,t,n){throw new Error("UnionDiscriminator is abstract")}}Eo.UnionDiscriminator=E;class S extends E{constructor(e,t){if(!(e instanceof o&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,n){return this.layout.encode(e,t,n)}}Eo.UnionLayoutDiscriminator=S;class T extends r{constructor(e,t,n){let i;if(e instanceof c||e instanceof u)i=new S(new a(e));else if(e instanceof o&&e.isCount())i=new S(e);else{if(!(e instanceof E))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");i=e}if(void 0===t&&(t=null),!(null===t||t instanceof r))throw new TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw new Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let s=-1;t&&(s=t.span,0<=s&&(e instanceof c||e instanceof u)&&(s+=i.layout.span)),super(s,n),this.discriminator=i,this.usesPrefixDiscriminator=e instanceof c||e instanceof u,this.defaultLayout=t,this.registry={};let l=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return l(e)},this.configGetSourceVariant=function(e){l=e.bind(this)}}getSpan(e,t=0){if(0<=this.span)return this.span;const n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}defaultGetSourceVariant(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;const t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(const t in this.registry){const n=this.registry[t];if(n.property&&Object.prototype.hasOwnProperty.call(e,n.property))return n}throw new Error("unable to infer src variant")}decode(e,t=0){let n;const r=this.discriminator,i=r.decode(e,t),o=this.registry[i];if(void 0===o){const o=this.defaultLayout;let s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),n=this.makeDestinationObject(),n[r.property]=i,n[o.property]=o.decode(e,t+s)}else n=o.decode(e,t);return n}encode(e,t,n=0){const r=this.getSourceVariant(e);if(void 0===r){const r=this.discriminator,i=this.defaultLayout;let o=0;return this.usesPrefixDiscriminator&&(o=r.layout.span),r.encode(e[r.property],t,n),o+i.encode(e[i.property],t,n+o)}return r.encode(e,t,n)}addVariant(e,t,n){const r=new M(this,e,t,n);return this.registry[e]=r,r}getVariant(e,t=0){let n;return n=e instanceof Uint8Array?this.discriminator.decode(e,t):e,this.registry[n]}}Eo.Union=T;class M extends r{constructor(e,t,n,i){if(!(e instanceof T))throw new TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof n&&void 0===i&&(i=n,n=null),n){if(!(n instanceof r))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=n.span&&n.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}let o=e.span;0>e.span&&(o=n?n.span:0,0<=o&&e.usesPrefixDiscriminator&&(o+=e.discriminator.layout.span)),super(o,i),this.union=e,this.variant=t,this.layout=n||null}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);let r=0;return this.layout&&(r=this.layout.getSpan(e,t+n)),n+r}decode(e,t=0){const n=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(e,t,n=0){let r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);let i=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),i+=this.layout.getSpan(t,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function I(e){return 0>e&&(e+=4294967296),e}Eo.VariantLayout=M;class B extends r{constructor(e,t,n){if(!(e instanceof c||e instanceof u))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof t&&void 0===n&&(n=t,t=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");super(e.span,n),this.word=e,this.msb=!!t,this.fields=[];let r=0;this.Ae=function(e){return r=I(e),this},this.ke=function(){return r}}decode(e,t=0){const n=this.makeDestinationObject(),r=this.word.decode(e,t);this.Ae(r);for(const i of this.fields)void 0!==i.property&&(n[i.property]=i.decode(e));return n}encode(e,t,n=0){const r=this.word.decode(t,n);this.Ae(r);for(const i of this.fields)if(void 0!==i.property){const t=e[i.property];void 0!==t&&i.encode(t)}return this.word.encode(this.ke(),t,n)}addField(e,t){const n=new N(this,e,t);return this.fields.push(n),n}addBoolean(e){const t=new R(this,e);return this.fields.push(t),t}fieldFor(e){if("string"!=typeof e)throw new TypeError("property must be string");for(const t of this.fields)if(t.property===e)return t}}Eo.BitStructure=B;class N{constructor(e,t,n){if(!(e instanceof B))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(t)||0>=t)throw new TypeError("bits must be positive integer");const r=8*e.span,i=e.fields.reduce((e,t)=>e+t.bits,0);if(t+i>r)throw new Error("bits too long for span remainder ("+(r-i)+" of "+r+" remain)");this.container=e,this.bits=t,this.valueMask=(1<<t)-1,32===t&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=r-i-t),this.wordMask=I(this.valueMask<<this.start),this.property=n}decode(e,t){return I(this.container.ke()&this.wordMask)>>>this.start}encode(e){if("number"!=typeof e||!Number.isInteger(e)||e!==I(e&this.valueMask))throw new TypeError(i("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const t=this.container.ke(),n=I(e<<this.start);this.container.Ae(I(t&~this.wordMask)|n)}}Eo.BitField=N;class R extends N{constructor(e,t){super(e,1,t)}decode(e,t){return!!super.decode(e,t)}encode(e){"boolean"==typeof e&&(e=+e),super.encode(e)}}Eo.Boolean=R;class F extends r{constructor(e,t){if(!(e instanceof o&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let n=-1;e instanceof o||(n=e),super(n,t),this.length=e}getSpan(e,t){let n=this.span;return 0>n&&(n=this.length.decode(e,t)),n}decode(e,t=0){let r=this.span;return 0>r&&(r=this.length.decode(e,t)),n(e).slice(t,t+r)}encode(e,t,r){let s=this.length;if(this.length instanceof o&&(s=e.length),!(e instanceof Uint8Array&&s===e.length))throw new TypeError(i("Blob.encode",this)+" requires (length "+s+") Uint8Array as src");if(r+s>t.length)throw new RangeError("encoding overruns Uint8Array");const a=n(e);return n(t).write(a.toString("hex"),r,s,"hex"),this.length instanceof o&&this.length.encode(s,t,r),s}}Eo.Blob=F;class O extends r{constructor(e){super(-1,e)}getSpan(e,n=0){t(e);let r=n;for(;r<e.length&&0!==e[r];)r+=1;return 1+r-n}decode(e,t=0){const r=this.getSpan(e,t);return n(e).slice(t,t+r-1).toString("utf-8")}encode(t,r,i=0){"string"!=typeof t&&(t=String(t));const o=e.Buffer.from(t,"utf8"),s=o.length;if(i+s>r.length)throw new RangeError("encoding overruns Buffer");const a=n(r);return o.copy(a,i),a[i+s]=0,s+1}}Eo.CString=O;class P extends r{constructor(e,t){if("string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,t),this.maxSpan=e}getSpan(e,n=0){return t(e),e.length-n}decode(e,t=0){const r=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan<r)throw new RangeError("text length exceeds maxSpan");return n(e).slice(t,t+r).toString("utf-8")}encode(t,r,i=0){"string"!=typeof t&&(t=String(t));const o=e.Buffer.from(t,"utf8"),s=o.length;if(0<=this.maxSpan&&this.maxSpan<s)throw new RangeError("text length exceeds maxSpan");if(i+s>r.length)throw new RangeError("encoding overruns Buffer");return o.copy(n(r),i),s}}Eo.UTF8=P;class L extends r{constructor(e,t){super(0,t),this.value=e}decode(e,t){return this.value}encode(e,t,n){return 0}}return Eo.Constant=L,Eo.greedy=(e,t)=>new s(e,t),Eo.offset=(e,t,n)=>new a(e,t,n),Eo.u8=e=>new c(1,e),Eo.u16=e=>new c(2,e),Eo.u24=e=>new c(3,e),Eo.u32=e=>new c(4,e),Eo.u40=e=>new c(5,e),Eo.u48=e=>new c(6,e),Eo.nu64=e=>new m(e),Eo.u16be=e=>new u(2,e),Eo.u24be=e=>new u(3,e),Eo.u32be=e=>new u(4,e),Eo.u40be=e=>new u(5,e),Eo.u48be=e=>new u(6,e),Eo.nu64be=e=>new g(e),Eo.s8=e=>new l(1,e),Eo.s16=e=>new l(2,e),Eo.s24=e=>new l(3,e),Eo.s32=e=>new l(4,e),Eo.s40=e=>new l(5,e),Eo.s48=e=>new l(6,e),Eo.ns64=e=>new b(e),Eo.s16be=e=>new f(2,e),Eo.s24be=e=>new f(3,e),Eo.s32be=e=>new f(4,e),Eo.s40be=e=>new f(5,e),Eo.s48be=e=>new f(6,e),Eo.ns64be=e=>new w(e),Eo.f32=e=>new y(e),Eo.f32be=e=>new v(e),Eo.f64=e=>new A(e),Eo.f64be=e=>new k(e),Eo.struct=(e,t,n)=>new C(e,t,n),Eo.bits=(e,t,n)=>new B(e,t,n),Eo.seq=(e,t,n)=>new x(e,t,n),Eo.union=(e,t,n)=>new T(e,t,n),Eo.unionLayoutDiscriminator=(e,t)=>new S(e,t),Eo.blob=(e,t)=>new F(e,t),Eo.cstr=e=>new O(e),Eo.utf8=(e,t)=>new P(e,t),Eo.constant=(e,t)=>new L(e,t),Eo}(),To=1,Mo=2,Io=3,Bo=4,No=5,Ro=6,Fo=7,Oo=8,Po=9,Lo=10,Do=-32700,Uo=-32603,Ho=-32602,zo=-32601,jo=-32600,Vo=-32016,qo=-32015,Jo=-32014,Go=-32013,Wo=-32012,Ko=-32011,Yo=-32010,Xo=-32009,Qo=-32008,Zo=-32007,$o=-32006,_o=-32005,es=-32004,ts=-32003,ns=-32002,rs=-32001,is=28e5,os=2800001,ss=2800002,as=2800003,cs=2800004,us=2800005,ls=2800006,fs=2800007,ds=2800008,hs=2800009,ps=2800010,ms=2800011,gs=323e4,bs=32300001,ws=3230002,ys=3230003,vs=3230004,As=361e4,ks=3610001,xs=3610002,Cs=3610003,Es=3610004,Ss=3610005,Ts=3610006,Ms=3610007,Is=3611e3,Bs=3704e3,Ns=3704001,Rs=3704002,Fs=3704003,Os=3704004,Ps=4128e3,Ls=4128001,Ds=4128002,Us=4615e3,Hs=4615001,zs=4615002,js=4615003,Vs=4615004,qs=4615005,Js=4615006,Gs=4615007,Ws=4615008,Ks=4615009,Ys=4615010,Xs=4615011,Qs=4615012,Zs=4615013,$s=4615014,_s=4615015,ea=4615016,ta=4615017,na=4615018,ra=4615019,ia=4615020,oa=4615021,sa=4615022,aa=4615023,ca=4615024,ua=4615025,la=4615026,fa=4615027,da=4615028,ha=4615029,pa=4615030,ma=4615031,ga=4615032,ba=4615033,wa=4615034,ya=4615035,va=4615036,Aa=4615037,ka=4615038,xa=4615039,Ca=4615040,Ea=4615041,Sa=4615042,Ta=4615043,Ma=4615044,Ia=4615045,Ba=4615046,Na=4615047,Ra=4615048,Fa=4615049,Oa=4615050,Pa=4615051,La=4615052,Da=4615053,Ua=4615054,Ha=5508e3,za=5508001,ja=5508002,Va=5508003,qa=5508004,Ja=5508005,Ga=5508006,Wa=5508007,Ka=5508008,Ya=5508009,Xa=5508010,Qa=5508011,Za=5663e3,$a=5663001,_a=5663002,ec=5663003,tc=5663004,nc=5663005,rc=5663006,ic=5663007,oc=5663008,sc=5663009,ac=5663010,cc=5663011,uc=5663012,lc=5663013,fc=5663014,dc=5663015,hc=5663016,pc=5663017,mc=5663018,gc=5663019,bc=5663020,wc=705e4,yc=7050001,vc=7050002,Ac=7050003,kc=7050004,xc=7050005,Cc=7050006,Ec=7050007,Sc=7050008,Tc=7050009,Mc=7050010,Ic=7050011,Bc=7050012,Nc=7050013,Rc=7050014,Fc=7050015,Oc=7050016,Pc=7050017,Lc=7050018,Dc=7050019,Uc=7050020,Hc=7050021,zc=7050022,jc=7050023,Vc=7050024,qc=7050025,Jc=7050026,Gc=7050027,Wc=7050028,Kc=7050029,Yc=7050030,Xc=7050031,Qc=7050032,Zc=7050033,$c=7050034,_c=7050035,eu=7050036,tu=8078e3,nu=8078001,ru=8078002,iu=8078003,ou=8078004,su=8078005,au=8078006,cu=8078007,uu=8078008,lu=8078009,fu=8078010,du=8078011,hu=8078012,pu=8078013,mu=8078014,gu=8078015,bu=8078016,wu=8078017,yu=8078018,vu=8078019,Au=8078020,ku=8078021,xu=8078022,Cu=81e5,Eu=8100001,Su=8100002,Tu=8100003,Mu=819e4,Iu=8190001,Bu=8190002,Nu=8190003,Ru=8190004,Fu=99e5,Ou=9900001,Pu=9900002,Lu=9900003,Du=9900004;function Uu(e){if(Array.isArray(e)){return"%5B"+e.map(Uu).join("%2C%20")+"%5D"}return"bigint"==typeof e?`${e}n`:encodeURIComponent(String(null!=e&&null===Object.getPrototypeOf(e)?{...e}:e))}function Hu([e,t]){return`${e}=${Uu(t)}`}var zu={[gs]:"Account not found at address: $address",[vs]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[ys]:"Expected decoded account at address: $address",[ws]:"Failed to decode account data at address: $address",[bs]:"Accounts not found at addresses: $addresses",[hs]:"Unable to find a viable program address bump seed.",[ss]:"$putativeAddress is not a base58-encoded address.",[is]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[as]:"The `CryptoKey` must be an `Ed25519` public key.",[ms]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[ds]:"Invalid seeds; point must fall off the Ed25519 curve.",[cs]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[ls]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[fs]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[us]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[ps]:"Program address cannot end with PDA marker.",[os]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Bo]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[To]:"The network has progressed past the last block for which this transaction could have been committed.",[tu]:"Codec [$codecDescription] cannot decode empty byte arrays.",[xu]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Au]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[su]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[au]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[ou]:"Encoder and decoder must either both be fixed-size or variable-size.",[uu]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[ru]:"Expected a fixed-size codec, got a variable-size one.",[pu]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[iu]:"Expected a variable-size codec, got a fixed-size one.",[vu]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[nu]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[yu]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[lu]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[fu]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[gu]:"Invalid literal union variant. Expected one of [$variants], got $value.",[cu]:"Expected [$codecDescription] to have $expected items, got $actual.",[hu]:"Invalid value $value for base $base with alphabet $alphabet.",[bu]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[du]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[mu]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[ku]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[wu]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Is]:"No random values implementation could be found.",[Ks]:"instruction requires an uninitialized account",[aa]:"instruction tries to borrow reference for an account which is already borrowed",[ca]:"instruction left account with an outstanding borrowed reference",[oa]:"program other than the account's owner changed the size of the account data",[qs]:"account data too small for instruction",[sa]:"instruction expected an executable account",[Ba]:"An account does not have enough lamports to be rent-exempt",[Ra]:"Program arithmetic overflowed",[Ia]:"Failed to serialize or deserialize account data: $encodedData",[Ua]:"Builtin programs must consume compute units",[ga]:"Cross-program invocation call depth too deep",[ka]:"Computational budget exceeded",[la]:"custom program error: #$code",[ta]:"instruction contains duplicate accounts",[ua]:"instruction modifications of multiply-passed account differ",[pa]:"executable accounts must be rent exempt",[da]:"instruction changed executable accounts data",[ha]:"instruction changed the balance of an executable account",[na]:"instruction changed executable bit of an account",[$s]:"instruction modified data of an account it does not own",[Zs]:"instruction spent from the balance of an account it does not own",[Hs]:"generic instruction error",[Oa]:"Provided owner is not allowed",[Ta]:"Account is immutable",[Ma]:"Incorrect authority provided",[Gs]:"incorrect program id for instruction",[Js]:"insufficient funds for instruction",[Vs]:"invalid account data for instruction",[Na]:"Invalid account owner",[zs]:"invalid program argument",[fa]:"program returned invalid error code",[js]:"invalid instruction data",[Aa]:"Failed to reallocate account data",[va]:"Provided seeds do not result in a valid address",[Pa]:"Accounts data allocations exceeded the maximum allowed per transaction",[La]:"Max accounts exceeded",[Da]:"Max instruction trace length exceeded",[ya]:"Length of the seed is too long for address generation",[ba]:"An account required by the instruction is missing",[Ws]:"missing required signature for instruction",[Qs]:"instruction illegally modified the program id of an account",[ia]:"insufficient account keys for instruction",[xa]:"Cross-program invocation with unauthorized signer or writable account",[Ca]:"Failed to create program execution environment",[Sa]:"Program failed to compile",[Ea]:"Program failed to complete",[ea]:"instruction modified data of a read-only account",[_s]:"instruction changed the balance of a read-only account",[wa]:"Cross-program invocation reentrancy not allowed for this instruction",[ra]:"instruction modified rent epoch of an account",[Xs]:"sum of account balances before and after instruction do not match",[Ys]:"instruction requires an initialized account",[Us]:"",[ma]:"Unsupported program id",[Fa]:"Unsupported sysvar",[Ps]:"The instruction does not have any accounts.",[Ls]:"The instruction does not have any data.",[Ds]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[No]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Mo]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Pu]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Du]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Ou]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Fu]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Lu]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Uo]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[Ho]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[jo]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[zo]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Do]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Wo]:"$__serverMessage",[rs]:"$__serverMessage",[es]:"$__serverMessage",[Jo]:"$__serverMessage",[Yo]:"$__serverMessage",[Xo]:"$__serverMessage",[Vo]:"Minimum context slot has not been reached",[_o]:"Node is unhealthy; behind by $numSlotsBehind slots",[Qo]:"No snapshot",[ns]:"Transaction simulation failed",[Zo]:"$__serverMessage",[Ko]:"Transaction history is not available from this node",[$o]:"$__serverMessage",[Go]:"Transaction signature length mismatch",[ts]:"Transaction signature verification failure",[qo]:"$__serverMessage",[Bs]:"Key pair bytes must be of length 64, got $byteLength.",[Ns]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Rs]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Os]:"The provided private key does not match the provided public key.",[Fs]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Ro]:"Lamports value must be in the range [0, 2e64-1]",[Fo]:"`$value` cannot be parsed as a `BigInt`",[Lo]:"$message",[Oo]:"`$value` cannot be parsed as a `Number`",[Io]:"No nonce account could be found at address `$nonceAccountAddress`",[Mu]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Bu]:"WebSocket was closed before payload could be added to the send buffer",[Nu]:"WebSocket connection closed",[Ru]:"WebSocket failed to connect",[Iu]:"Failed to obtain a subscription id from the server",[Tu]:"Could not find an API plan for RPC method: `$method`",[Cu]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Su]:"HTTP error ($statusCode): $message",[Eu]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[Ha]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[za]:"The provided value does not implement the `KeyPairSigner` interface",[Va]:"The provided value does not implement the `MessageModifyingSigner` interface",[qa]:"The provided value does not implement the `MessagePartialSigner` interface",[ja]:"The provided value does not implement any of the `MessageSigner` interfaces",[Ga]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Wa]:"The provided value does not implement the `TransactionPartialSigner` interface",[Ka]:"The provided value does not implement the `TransactionSendingSigner` interface",[Ja]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Ya]:"More than one `TransactionSendingSigner` was identified.",[Xa]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Qa]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Ms]:"Cannot export a non-extractable key.",[ks]:"No digest implementation could be found.",[As]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[xs]:"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall @solana/webcrypto-ed25519-polyfill and call its `install` function before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.",[Cs]:"No signature verification implementation could be found.",[Es]:"No key generation implementation could be found.",[Ss]:"No signing implementation could be found.",[Ts]:"No key export implementation could be found.",[Po]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Oc]:"Transaction processing left an account with an outstanding borrowed reference",[yc]:"Account in use",[vc]:"Account loaded twice",[Ac]:"Attempt to debit an account but found no record of a prior credit.",[jc]:"Transaction loads an address table account that doesn't exist",[Ec]:"This transaction has already been processed",[Sc]:"Blockhash not found",[Tc]:"Loader call chain is too deep",[Fc]:"Transactions are currently disabled due to cluster maintenance",[Yc]:"Transaction contains a duplicate instruction ($index) that is not allowed",[xc]:"Insufficient funds for fee",[Xc]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Cc]:"This account may not be used to pay transaction fees",[Ic]:"Transaction contains an invalid account reference",[qc]:"Transaction loads an address table account with invalid data",[Jc]:"Transaction address table lookup uses an invalid index",[Vc]:"Transaction loads an address table account with an invalid owner",[Zc]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Nc]:"This program may not be used for executing instructions",[Gc]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Dc]:"Transaction loads a writable account that cannot be written",[Qc]:"Transaction exceeded max loaded accounts data size cap",[Mc]:"Transaction requires a fee but has no signature present",[kc]:"Attempt to load a program that does not exist",[_c]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[$c]:"ResanitizationNeeded",[Rc]:"Transaction failed to sanitize accounts offsets correctly",[Bc]:"Transaction did not pass signature verification",[zc]:"Transaction locked too many accounts",[eu]:"Sum of account balances before and after transaction do not match",[wc]:"The transaction failed with the error `$errorName`",[Lc]:"Transaction version is unsupported",[Hc]:"Transaction would exceed account data limit within the block",[Kc]:"Transaction would exceed total account data limit",[Uc]:"Transaction would exceed max account limit within the block",[Pc]:"Transaction would exceed max Block Cost Limit",[Wc]:"Transaction would exceed max Vote Cost Limit",[dc]:"Attempted to sign a transaction with an address that is not a signer for it",[ac]:"Transaction is missing an address at index: $index.",[hc]:"Transaction has no expected signers therefore it cannot be encoded",[bc]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[_a]:"Transaction does not have a blockhash lifetime",[ec]:"Transaction is not a durable nonce transaction",[nc]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[rc]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[oc]:"No fee payer set in CompiledTransaction",[ic]:"Could not find program address at index $index",[mc]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[gc]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[cc]:"Transaction is missing a fee payer.",[uc]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[fc]:"Transaction first instruction is not advance nonce account instruction.",[lc]:"Transaction with no instructions cannot be durable nonce transaction.",[Za]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[$a]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[pc]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[sc]:"Transaction is missing signatures for addresses: $addresses.",[tc]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},ju="i",Vu="t";function qu(e,t={}){if("production"!==process.env.NODE_ENV)return function(e,t={}){const n=zu[e];if(0===n.length)return"";let r;function i(e){if(2===r[Vu]){const i=n.slice(r[ju]+1,e);o.push(i in t?`${t[i]}`:`$${i}`)}else 1===r[Vu]&&o.push(n.slice(r[ju],e))}const o=[];return n.split("").forEach((e,t)=>{if(0===t)return void(r={[ju]:0,[Vu]:"\\"===n[0]?0:"$"===n[0]?2:1});let o;switch(r[Vu]){case 0:o={[ju]:t,[Vu]:1};break;case 1:"\\"===e?o={[ju]:t,[Vu]:0}:"$"===e&&(o={[ju]:t,[Vu]:2});break;case 2:"\\"===e?o={[ju]:t,[Vu]:0}:"$"===e?o={[ju]:t,[Vu]:2}:e.match(/\w/)||(o={[ju]:t,[Vu]:1})}o&&(r!==o&&i(t),r=o)}),i(),o.join("")}(e,t);{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${function(e){const t=Object.entries(e).map(Hu).join("&");return btoa(t)}(t)}'`),`${n}\``}}var Ju=class extends Error{cause=this.cause;context;constructor(...[e,t]){let n,r;if(t){const{cause:e,...i}=t;e&&(r={cause:e}),Object.keys(i).length>0&&(n=i)}super(qu(e,n),r),this.context={xe:e,...n},this.name="SolanaError"}};function Gu(e){return"fixedSize"in e&&"number"==typeof e.fixedSize}function Wu(e){return 1!==e?.endian}function Ku(e){return t={fixedSize:e.size,write(t,n,r){e.range&&function(e,t,n,r){if(r<t||r>n)throw new Ju(du,{codecDescription:e,max:n,min:t,value:r})}(e.name,e.range[0],e.range[1],t);const i=new ArrayBuffer(e.size);return e.set(new DataView(i),t,Wu(e.config)),n.set(new Uint8Array(i),r),r+e.size}},Object.freeze({...t,encode:e=>{const n=new Uint8Array(function(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}(e,t));return t.write(e,n,0),n}});var t}function Yu(e){return t={fixedSize:e.size,read(t,n=0){!function(e,t,n=0){if(t.length-n<=0)throw new Ju(tu,{codecDescription:e})}(e.name,t,n),function(e,t,n,r=0){const i=n.length-r;if(i<t)throw new Ju(nu,{bytesLength:i,codecDescription:e,expected:t})}(e.name,e.size,t,n);const r=new DataView(function(e,t,n){const r=e.byteOffset+(t??0),i=n??e.byteLength;return e.buffer.slice(r,r+i)}(t,n,e.size));return[e.get(r,Wu(e.config)),n+e.size]}},Object.freeze({...t,decode:(e,n=0)=>t.read(e,n)[0]});var t}var Xu=(e={})=>function(e,t){if(Gu(e)!==Gu(t))throw new Ju(ou);if(Gu(e)&&Gu(t)&&e.fixedSize!==t.fixedSize)throw new Ju(su,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!Gu(e)&&!Gu(t)&&e.maxSize!==t.maxSize)throw new Ju(au,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}(((e={})=>Ku({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(e,t,n)=>e.setBigUint64(0,BigInt(t),n),size:8}))(e),((e={})=>Yu({config:e,get:(e,t)=>e.getBigUint64(0,t),name:"u64",size:8}))(e));class Qu extends TypeError{constructor(e,t){let n;const{message:r,explanation:i,...o}=e,{path:s}=e,a=0===s.length?r:`At path: ${s.join(".")} -- ${r}`;super(i??a),null!=i&&(this.cause=a),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}function Zu(e){return"object"==typeof e&&null!=e}function $u(e){return Zu(e)&&!Array.isArray(e)}function _u(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function el(e,t,n,r){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:i,branch:o}=t,{type:s}=n,{refinement:a,message:c=`Expected a value of type \`${s}\`${a?` with refinement \`${a}\``:""}, but received: \`${_u(r)}\``}=e;return{value:r,type:s,refinement:a,key:i[i.length-1],path:i,branch:o,...e,message:c}}function*tl(e,t,n,r){var i;Zu(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]);for(const o of e){const e=el(o,t,n,r);e&&(yield e)}}function*nl(e,t,n={}){const{path:r=[],branch:i=[e],coerce:o=!1,mask:s=!1}=n,a={path:r,branch:i,mask:s};o&&(e=t.coercer(e,a));let c="valid";for(const u of t.validator(e,a))u.explanation=n.message,c="not_valid",yield[u,void 0];for(let[u,l,f]of t.entries(e,a)){const t=nl(l,f,{path:void 0===u?r:[...r,u],branch:void 0===u?i:[...i,l],coerce:o,mask:s,message:n.message});for(const n of t)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):o&&(l=n[1],void 0===u?e=l:e instanceof Map?e.set(u,l):e instanceof Set?e.add(l):Zu(e)&&(void 0!==l||u in e)&&(e[u]=l))}if("not_valid"!==c)for(const u of t.refiner(e,a))u.explanation=n.message,c="not_refined",yield[u,void 0];"valid"===c&&(yield[void 0,e])}let rl=class{constructor(e){const{type:t,schema:n,validator:r,refiner:i,coercer:o=e=>e,entries:s=function*(){}}=e;this.type=t,this.schema=n,this.entries=s,this.coercer=o,this.validator=r?(e,t)=>tl(r(e,t),t,this,e):()=>[],this.refiner=i?(e,t)=>tl(i(e,t),t,this,e):()=>[]}assert(e,t){return function(e,t,n){const r=sl(e,t,{message:n});if(r[0])throw r[0]}(e,this,t)}create(e,t){return il(e,this,t)}is(e){return ol(e,this)}mask(e,t){return function(e,t,n){const r=sl(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}(e,this,t)}validate(e,t={}){return sl(e,this,t)}};function il(e,t,n){const r=sl(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function ol(e,t){return!sl(e,t)[0]}function sl(e,t,n={}){const r=nl(e,t,n),i=function(e){const{done:t,value:n}=e.next();return t?void 0:n}(r);if(i[0]){return[new Qu(i[0],function*(){for(const e of r)e[0]&&(yield e[0])}),void 0]}return[void 0,i[1]]}function al(e,t){return new rl({type:e,schema:null,validator:t})}function cl(e){return new rl({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${_u(e)}`})}function ul(){return al("boolean",e=>"boolean"==typeof e)}function ll(e){return al("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${_u(t)}`)}function fl(e){const t=_u(e),n=typeof e;return new rl({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${_u(n)}`})}function dl(e){return new rl({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function hl(){return al("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${_u(e)}`)}function pl(e){return new rl({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function ml(e,t){return new rl({type:"record",schema:null,*entries(n){if(Zu(n))for(const r in n){const i=n[r];yield[r,r,e],yield[r,i,t]}},validator:e=>$u(e)||`Expected an object, but received: ${_u(e)}`,coercer:e=>$u(e)?{...e}:e})}function gl(){return al("string",e=>"string"==typeof e||`Expected a string, but received: ${_u(e)}`)}function bl(e){const t=al("never",()=>!1);return new rl({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(e.length,n.length);for(let i=0;i<r;i++)yield[i,n[i],e[i]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${_u(e)}`,coercer:e=>Array.isArray(e)?e.slice():e})}function wl(e){const t=Object.keys(e);return new rl({type:"type",schema:e,*entries(n){if(Zu(n))for(const r of t)yield[r,n[r],e[r]]},validator:e=>$u(e)||`Expected an object, but received: ${_u(e)}`,coercer:e=>$u(e)?{...e}:e})}function yl(e){const t=e.map(e=>e.type).join(" | ");return new rl({type:"union",schema:null,coercer(t,n){for(const r of e){const[e,i]=r.validate(t,{coerce:!0,mask:n.mask});if(!e)return i}return t},validator(n,r){const i=[];for(const t of e){const[...e]=nl(n,t,r),[o]=e;if(!o[0])return[];for(const[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${_u(n)}`,...i]}})}function vl(){return al("unknown",()=>!0)}function Al(e,t,n){return new rl({...e,coercer:(r,i)=>ol(r,t)?e.coercer(n(r,i),i):e.coercer(r,i)})}var kl,xl=new Uint8Array(16);function Cl(){if(!kl&&!(kl="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return kl(xl)}const El=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Sl(e){return"string"==typeof e&&El.test(e)}for(var Tl,Ml,Il=[],Bl=0;Bl<256;++Bl)Il.push((Bl+256).toString(16).substr(1));function Nl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Il[e[t+0]]+Il[e[t+1]]+Il[e[t+2]]+Il[e[t+3]]+"-"+Il[e[t+4]]+Il[e[t+5]]+"-"+Il[e[t+6]]+Il[e[t+7]]+"-"+Il[e[t+8]]+Il[e[t+9]]+"-"+Il[e[t+10]]+Il[e[t+11]]+Il[e[t+12]]+Il[e[t+13]]+Il[e[t+14]]+Il[e[t+15]]).toLowerCase();if(!Sl(n))throw TypeError("Stringified UUID is invalid");return n}var Rl=0,Fl=0;function Ol(e){if(!Sl(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Pl(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=Ol(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(var a=0;a<16;++a)i[o+a]=s[a];return i}return Nl(s)}try{r.name=e}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function Ll(e){return 14+(e+64>>>9<<4)+1}function Dl(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ul(e,t,n,r,i,o){return Dl((s=Dl(Dl(t,e),Dl(r,o)))<<(a=i)|s>>>32-a,n);var s,a}function Hl(e,t,n,r,i,o,s){return Ul(t&n|~t&r,e,t,i,o,s)}function zl(e,t,n,r,i,o,s){return Ul(t&r|n&~r,e,t,i,o,s)}function jl(e,t,n,r,i,o,s){return Ul(t^n^r,e,t,i,o,s)}function Vl(e,t,n,r,i,o,s){return Ul(n^(t|~r),e,t,i,o,s)}var ql=Pl("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Ll(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=r,u=i,l=o;n=Hl(n,r,i,o,e[s],7,-680876936),o=Hl(o,n,r,i,e[s+1],12,-389564586),i=Hl(i,o,n,r,e[s+2],17,606105819),r=Hl(r,i,o,n,e[s+3],22,-1044525330),n=Hl(n,r,i,o,e[s+4],7,-176418897),o=Hl(o,n,r,i,e[s+5],12,1200080426),i=Hl(i,o,n,r,e[s+6],17,-1473231341),r=Hl(r,i,o,n,e[s+7],22,-45705983),n=Hl(n,r,i,o,e[s+8],7,1770035416),o=Hl(o,n,r,i,e[s+9],12,-1958414417),i=Hl(i,o,n,r,e[s+10],17,-42063),r=Hl(r,i,o,n,e[s+11],22,-1990404162),n=Hl(n,r,i,o,e[s+12],7,1804603682),o=Hl(o,n,r,i,e[s+13],12,-40341101),i=Hl(i,o,n,r,e[s+14],17,-1502002290),n=zl(n,r=Hl(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=zl(o,n,r,i,e[s+6],9,-1069501632),i=zl(i,o,n,r,e[s+11],14,643717713),r=zl(r,i,o,n,e[s],20,-373897302),n=zl(n,r,i,o,e[s+5],5,-701558691),o=zl(o,n,r,i,e[s+10],9,38016083),i=zl(i,o,n,r,e[s+15],14,-660478335),r=zl(r,i,o,n,e[s+4],20,-405537848),n=zl(n,r,i,o,e[s+9],5,568446438),o=zl(o,n,r,i,e[s+14],9,-1019803690),i=zl(i,o,n,r,e[s+3],14,-187363961),r=zl(r,i,o,n,e[s+8],20,1163531501),n=zl(n,r,i,o,e[s+13],5,-1444681467),o=zl(o,n,r,i,e[s+2],9,-51403784),i=zl(i,o,n,r,e[s+7],14,1735328473),n=jl(n,r=zl(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=jl(o,n,r,i,e[s+8],11,-2022574463),i=jl(i,o,n,r,e[s+11],16,1839030562),r=jl(r,i,o,n,e[s+14],23,-35309556),n=jl(n,r,i,o,e[s+1],4,-1530992060),o=jl(o,n,r,i,e[s+4],11,1272893353),i=jl(i,o,n,r,e[s+7],16,-155497632),r=jl(r,i,o,n,e[s+10],23,-1094730640),n=jl(n,r,i,o,e[s+13],4,681279174),o=jl(o,n,r,i,e[s],11,-358537222),i=jl(i,o,n,r,e[s+3],16,-722521979),r=jl(r,i,o,n,e[s+6],23,76029189),n=jl(n,r,i,o,e[s+9],4,-640364487),o=jl(o,n,r,i,e[s+12],11,-421815835),i=jl(i,o,n,r,e[s+15],16,530742520),n=Vl(n,r=jl(r,i,o,n,e[s+2],23,-995338651),i,o,e[s],6,-198630844),o=Vl(o,n,r,i,e[s+7],10,1126891415),i=Vl(i,o,n,r,e[s+14],15,-1416354905),r=Vl(r,i,o,n,e[s+5],21,-57434055),n=Vl(n,r,i,o,e[s+12],6,1700485571),o=Vl(o,n,r,i,e[s+3],10,-1894986606),i=Vl(i,o,n,r,e[s+10],15,-1051523),r=Vl(r,i,o,n,e[s+1],21,-2054922799),n=Vl(n,r,i,o,e[s+8],6,1873313359),o=Vl(o,n,r,i,e[s+15],10,-30611744),i=Vl(i,o,n,r,e[s+6],15,-1560198380),r=Vl(r,i,o,n,e[s+13],21,1309151649),n=Vl(n,r,i,o,e[s+4],6,-145523070),o=Vl(o,n,r,i,e[s+11],10,-1120210379),i=Vl(i,o,n,r,e[s+2],15,718787259),r=Vl(r,i,o,n,e[s+9],21,-343485551),n=Dl(n,a),r=Dl(r,c),i=Dl(i,u),o=Dl(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Ll(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))});function Jl(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function Gl(e,t){return e<<t|e>>>32-t}var Wl=Pl("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];a[c]=u}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=a[f][h];for(var p=16;p<80;++p)d[p]=Gl(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var m=n[0],g=n[1],b=n[2],w=n[3],y=n[4],v=0;v<80;++v){var A=Math.floor(v/20),k=Gl(m,5)+Jl(A,g,b,w)+y+t[A]+d[v]>>>0;y=w,w=b,b=Gl(g,30)>>>0,g=m,m=k}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+b>>>0,n[3]=n[3]+w>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]});const Kl=br(Object.freeze(Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:Ol,stringify:Nl,v1:function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||Tl,s=void 0!==e.clockseq?e.clockseq:Ml;if(null==o||null==s){var a=e.random||(e.rng||Cl)();null==o&&(o=Tl=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==s&&(s=Ml=16383&(a[6]<<8|a[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:Fl+1,l=c-Rl+(u-Fl)/1e4;if(l<0&&void 0===e.clockseq&&(s=s+1&16383),(l<0||c>Rl)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Rl=c,Fl=u,Ml=s;var f=(1e4*(268435455&(c+=122192928e5))+u)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=255&f;var d=c/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var h=0;h<6;++h)i[r+h]=o[h];return t||Nl(i)},v3:ql,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||Cl)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Nl(r)},v5:Wl,validate:Sl,version:function(e){if(!Sl(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})));var Yl,Xl,Ql,Zl;!function(){if(Zl)return Ql;Zl=1;const e=Kl.v4,t=function(){if(Xl)return Yl;Xl=1;const e=Kl.v4;return Yl=function(t,n,r,i){if("string"!=typeof t)throw new TypeError(t+" must be a string");const o="number"==typeof(i=i||{}).version?i.version:2;if(1!==o&&2!==o)throw new TypeError(o+" must be 1 or 2");const s={method:t};if(2===o&&(s.jsonrpc="2.0"),n){if("object"!=typeof n&&!Array.isArray(n))throw new TypeError(n+" must be an object, array or omitted");s.params=n}if(void 0===r){const t="function"==typeof i.generator?i.generator:function(){return e()};s.id=t(s,i)}else 2===o&&null===r?i.notificationIdNull&&(s.id=null):s.id=r;return s}}(),n=function(t,r){if(!(this instanceof n))return new n(t,r);r||(r={}),this.options={reviver:void 0!==r.reviver?r.reviver:null,replacer:void 0!==r.replacer?r.replacer:null,generator:void 0!==r.generator?r.generator:function(){return e()},version:void 0!==r.version?r.version:2,notificationIdNull:"boolean"==typeof r.notificationIdNull&&r.notificationIdNull},this.callServer=t};Ql=n,n.prototype.request=function(e,n,r,i){const o=this;let s=null;const a=Array.isArray(e)&&"function"==typeof n;if(1===this.options.version&&a)throw new TypeError("JSON-RPC 1.0 does not support batching");if(a||!a&&e&&"object"==typeof e&&"function"==typeof n)i=n,s=e;else{"function"==typeof r&&(i=r,r=void 0);const o="function"==typeof i;try{s=t(e,n,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(u){if(o)return void i(u);throw u}if(!o)return s}let c;try{c=JSON.stringify(s,this.options.replacer)}catch(u){return void i(u)}return this.callServer(c,function(e,t){o.Ce(e,t,i)}),s},n.prototype.Ce=function(e,t,n){if(e)return void n(e);if(!t)return void n();let r;try{r=JSON.parse(t,this.options.reviver)}catch(i){return void n(i)}if(3!==n.length)n(null,r);else{if(Array.isArray(r)){const e=function(e){return void 0!==e.error},t=function(t){return!e(t)};return void n(null,r.filter(e),r.filter(t))}n(null,r.error,r.result)}}}();var $l,_l={exports:{}};$l||($l=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||e,s),c=n?n+t:t;return e.Ee[c]?e.Ee[c].fn?e.Ee[c]=[e.Ee[c],a]:e.Ee[c].push(a):(e.Ee[c]=a,e.Se++),e}function s(e,t){0===--e.Se?e.Ee=new r:delete e.Ee[t]}function a(){this.Ee=new r,this.Se=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,i=[];if(0===this.Se)return i;for(r in e=this.Ee)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=n?n+e:e,r=this.Ee[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this.Ee[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,i,o,s){var a=n?n+e:e;if(!this.Ee[a])return!1;var c,u,l=this.Ee[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,s),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,h=l.length;for(u=0;u<h;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this.Ee[o])return this;if(!t)return s(this,o),this;var a=this.Ee[o];if(a.fn)a.fn!==t||i&&!a.once||r&&a.context!==r||s(this,o);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==t||i&&!a[c].once||r&&a[c].context!==r)&&u.push(a[c]);u.length?this.Ee[o]=1===u.length?u[0]:u:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this.Ee[t]&&s(this,t)):(this.Ee=new r,this.Se=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a}(_l));const ef=(e,t)=>(e+(e>=0?t:-t)/cf)/t;function tf(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function nf(e,t){const n={};for(let r of Object.keys(t))n[r]=void 0===e[r]?t[r]:e[r];return Mr(n.lowS,"lowS"),Mr(n.prehash,"prehash"),void 0!==n.format&&tf(n.format),n}class rf extends Error{constructor(e=""){super(e)}}const of={Err:rf,Te:{encode:(e,t)=>{const{Err:n}=of;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");const r=t.length/2,i=Br(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const o=r>127?Br(i.length/2|128):"";return Br(e)+o+i+t},decode(e,t){const{Err:n}=of;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[r++];let o=0;if(!!(128&i)){const e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const s=t.subarray(r,r+e);if(s.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===s[0])throw new n("tlv.decode(long): zero leftmost byte");for(const t of s)o=o<<8|t;if(r+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=i;const s=t.subarray(r,r+o);if(s.length!==o)throw new n("tlv.decode: wrong value length");return{v:s,l:t.subarray(r+o)}}},Me:{encode(e){const{Err:t}=of;if(e<sf)throw new t("integer: negative integers are not allowed");let n=Br(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=of;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return Rr(e)}},toSig(e){const{Err:t,Me:n,Te:r}=of,i=Lr("signature",e),{v:o,l:s}=r.decode(48,i);if(s.length)throw new t("invalid signature: left bytes after parsing");const{v:a,l:c}=r.decode(2,o),{v:u,l:l}=r.decode(2,c);if(l.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(a),s:n.decode(u)}},hexFromSig(e){const{Te:t,Me:n}=of,r=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,r)}},sf=BigInt(0),af=BigInt(1),cf=BigInt(2),uf=BigInt(3),lf=BigInt(4);function ff(e,t){const{BYTES:n}=e;let r;if("bigint"==typeof t)r=t;else{let o=Lr("private key",t);try{r=e.fromBytes(o)}catch(i){throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw new Error("invalid private key: out of range [1..N-1]");return r}function df(e,t={}){const n=Ii("weierstrass",e,t),{Fp:r,Fn:i}=n;let o=n.CURVE;const{h:s,n:a}=o;Vr(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:c}=t;if(c&&(!r.is0(o.a)||"bigint"!=typeof c.beta||!Array.isArray(c.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const u=pf(r,i);function l(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const f=t.toBytes||function(e,t,n){const{x:i,y:o}=t.toAffine(),s=r.toBytes(i);if(Mr(n,"isCompressed"),n){l();return Ke(hf(!r.isOdd(o)),s)}return Ke(Uint8Array.of(4),s,r.toBytes(o))},d=t.fromBytes||function(e){Ir(e,void 0,"Point");const{publicKey:t,publicKeyUncompressed:n}=u,i=e.length,o=e[0],s=e.subarray(1);if(i!==t||2!==o&&3!==o){if(i===n&&4===o){const e=r.BYTES,t=r.fromBytes(s.subarray(0,e)),n=r.fromBytes(s.subarray(e,2*e));if(!p(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${n}`)}{const e=r.fromBytes(s);if(!r.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=h(e);let n;try{n=r.sqrt(t)}catch(a){const e=a instanceof Error?": "+a.message:"";throw new Error("bad point: is not on curve, sqrt error"+e)}l();return!(1&~o)!==r.isOdd(n)&&(n=r.neg(n)),{x:e,y:n}}};function h(e){const t=r.sqr(e),n=r.mul(t,e);return r.add(r.add(n,r.mul(e,o.a)),o.b)}function p(e,t){const n=r.sqr(t),i=h(e);return r.eql(n,i)}if(!p(o.Gx,o.Gy))throw new Error("bad curve params: generator point");const m=r.mul(r.pow(o.a,uf),lf),g=r.mul(r.sqr(o.b),BigInt(27));if(r.is0(r.add(m,g)))throw new Error("bad curve params: a or b");function b(e,t,n=!1){if(!r.isValid(t)||n&&r.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function w(e){if(!(e instanceof x))throw new Error("ProjectivePoint expected")}function y(e){if(!c||!c.basises)throw new Error("no endo");return function(e,t,n){const[[r,i],[o,s]]=t,a=ef(s*e,n),c=ef(-i*e,n);let u=e-a*r-c*o,l=-a*i-c*s;const f=u<sf,d=l<sf;f&&(u=-u),d&&(l=-l);const h=jr(Math.ceil(zr(n)/2))+af;if(u<sf||u>=h||l<sf||l>=h)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:f,k1:u,k2neg:d,k2:l}}(e,c.basises,i.ORDER)}const v=qr((e,t)=>{const{X:n,Y:i,Z:o}=e;if(r.eql(o,r.ONE))return{x:n,y:i};const s=e.is0();null==t&&(t=s?r.ONE:r.inv(o));const a=r.mul(n,t),c=r.mul(i,t),u=r.mul(o,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:a,y:c}}),A=qr(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.Y))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw new Error("bad point: x or y not field elements");if(!p(n,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function k(e,t,n,i,o){return n=new x(r.mul(n.X,e),n.Y,n.Z),t=bi(i,t),n=bi(o,n),t.add(n)}class x{constructor(e,t,n){this.X=b("x",e),this.Y=b("y",t,!0),this.Z=b("z",n),Object.freeze(this)}static CURVE(){return o}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof x)throw new Error("projective point not allowed");return r.is0(t)&&r.is0(n)?x.ZERO:new x(t,n,r.ONE)}static fromBytes(e){const t=x.fromAffine(d(Ir(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return x.fromBytes(Lr("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return E.createCache(this,e),t||this.multiply(uf),this}assertValidity(){A(this)}hasEvenY(){const{y:e}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(e)}equals(e){w(e);const{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:a}=e,c=r.eql(r.mul(t,a),r.mul(o,i)),u=r.eql(r.mul(n,a),r.mul(s,i));return c&&u}negate(){return new x(this.X,r.neg(this.Y),this.Z)}double(){const{a:e,b:t}=o,n=r.mul(t,uf),{X:i,Y:s,Z:a}=this;let c=r.ZERO,u=r.ZERO,l=r.ZERO,f=r.mul(i,i),d=r.mul(s,s),h=r.mul(a,a),p=r.mul(i,s);return p=r.add(p,p),l=r.mul(i,a),l=r.add(l,l),c=r.mul(e,l),u=r.mul(n,h),u=r.add(c,u),c=r.sub(d,u),u=r.add(d,u),u=r.mul(c,u),c=r.mul(p,c),l=r.mul(n,l),h=r.mul(e,h),p=r.sub(f,h),p=r.mul(e,p),p=r.add(p,l),l=r.add(f,f),f=r.add(l,f),f=r.add(f,h),f=r.mul(f,p),u=r.add(u,f),h=r.mul(s,a),h=r.add(h,h),f=r.mul(h,p),c=r.sub(c,f),l=r.mul(h,d),l=r.add(l,l),l=r.add(l,l),new x(c,u,l)}add(e){w(e);const{X:t,Y:n,Z:i}=this,{X:s,Y:a,Z:c}=e;let u=r.ZERO,l=r.ZERO,f=r.ZERO;const d=o.a,h=r.mul(o.b,uf);let p=r.mul(t,s),m=r.mul(n,a),g=r.mul(i,c),b=r.add(t,n),y=r.add(s,a);b=r.mul(b,y),y=r.add(p,m),b=r.sub(b,y),y=r.add(t,i);let v=r.add(s,c);return y=r.mul(y,v),v=r.add(p,g),y=r.sub(y,v),v=r.add(n,i),u=r.add(a,c),v=r.mul(v,u),u=r.add(m,g),v=r.sub(v,u),f=r.mul(d,y),u=r.mul(h,g),f=r.add(u,f),u=r.sub(m,f),f=r.add(m,f),l=r.mul(u,f),m=r.add(p,p),m=r.add(m,p),g=r.mul(d,g),y=r.mul(h,y),m=r.add(m,g),g=r.sub(p,g),g=r.mul(d,g),y=r.add(y,g),p=r.mul(m,y),l=r.add(l,p),p=r.mul(v,y),u=r.mul(b,u),u=r.sub(u,p),p=r.mul(b,m),f=r.mul(v,f),f=r.add(f,p),new x(u,l,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(x.ZERO)}multiply(e){const{endo:n}=t;if(!i.isValidNot0(e))throw new Error("invalid scalar: out of range");let r,o;const s=e=>E.cached(this,e,e=>wi(x,e));if(n){const{k1neg:t,k1:i,k2neg:a,k2:c}=y(e),{p:u,f:l}=s(i),{p:f,f:d}=s(c);o=l.add(d),r=k(n.beta,u,f,t,a)}else{const{p:t,f:n}=s(e);r=t,o=n}return wi(x,[r,o])[0]}multiplyUnsafe(e){const{endo:n}=t,r=this;if(!i.isValid(e))throw new Error("invalid scalar: out of range");if(e===sf||r.is0())return x.ZERO;if(e===af)return r;if(E.hasCache(this))return this.multiply(e);if(n){const{k1neg:t,k1:i,k2neg:o,k2:s}=y(e),{p1:a,p2:c}=function(e,t,n,r){let i=t,o=e.ZERO,s=e.ZERO;for(;n>mi||r>mi;)n&gi&&(o=o.add(i)),r&gi&&(s=s.add(i)),i=i.double(),n>>=gi,r>>=gi;return{p1:o,p2:s}}(x,r,i,s);return k(n.beta,a,c,t,o)}return E.unsafe(r,e)}multiplyAndAddUnsafe(e,t,n){const r=this.multiplyUnsafe(t).add(e.multiplyUnsafe(n));return r.is0()?void 0:r}toAffine(e){return v(this,e)}isTorsionFree(){const{isTorsionFree:e}=t;return s===af||(e?e(x,this):E.unsafe(this,a).is0())}clearCofactor(){const{clearCofactor:e}=t;return s===af?this:e?e(x,this):this.multiplyUnsafe(s)}isSmallOrder(){return this.multiplyUnsafe(s).is0()}toBytes(e=!0){return Mr(e,"isCompressed"),this.assertValidity(),f(x,this,e)}toHex(e=!0){return De(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}N(e){this.precompute(e)}static normalizeZ(e){return wi(x,e)}static msm(e,t){return Ti(x,i,e,t)}static fromPrivateKey(e){return x.BASE.multiply(ff(i,e))}}x.BASE=new x(o.Gx,o.Gy,r.ONE),x.ZERO=new x(r.ZERO,r.ONE,r.ZERO),x.Fp=r,x.Fn=i;const C=i.BITS,E=new Si(x,t.endo?Math.ceil(C/2):C);return x.BASE.precompute(8),x}function hf(e){return Uint8Array.of(e?2:3)}function pf(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function mf(e,t={}){const{Fn:n}=e,r=t.randomBytes||Qe,i=Object.assign(pf(e.Fp,n),{seed:pi(n.ORDER)});function o(e){try{return!!ff(n,e)}catch(t){return!1}}function s(e=r(i.seed)){return function(e,t,n=!1){const r=e.length,i=hi(t),o=pi(t);if(r<16||r<o||r>1024)throw new Error("expected "+o+"-1024 bytes of input, got "+r);const s=ei(n?Fr(e):Rr(e),t-Gr)+Gr;return n?Pr(s,i):Or(s,i)}(Ir(e,i.seed,"seed"),n.ORDER)}function a(t,r=!0){return e.BASE.multiply(ff(n,t)).toBytes(r)}function c(t){if("bigint"==typeof t)return!1;if(t instanceof e)return!0;const{secretKey:r,publicKey:o,publicKeyUncompressed:s}=i;if(n.allowedLengths||r===o)return;const a=Lr("key",t).length;return a===o||a===s}const u={isValidSecretKey:o,isValidPublicKey:function(t,n){const{publicKey:r,publicKeyUncompressed:o}=i;try{const i=t.length;return(!0!==n||i===r)&&((!1!==n||i===o)&&!!e.fromBytes(t))}catch(s){return!1}},randomSecretKey:s,isValidPrivateKey:o,randomPrivateKey:s,normPrivateKeyToScalar:e=>ff(n,e),precompute:(t=8,n=e.BASE)=>n.precompute(t,!1)};return Object.freeze({getPublicKey:a,getSharedSecret:function(t,r,i=!0){if(!0===c(t))throw new Error("first arg must be private key");if(!1===c(r))throw new Error("second arg must be public key");const o=ff(n,t);return e.fromHex(r).multiply(o).toBytes(i)},keygen:function(e){const t=s(e);return{secretKey:t,publicKey:a(t)}},Point:e,utils:u,lengths:i})}function gf(e,t,n={}){Te(t),Vr(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||Qe,i=n.hmac||((e,...n)=>pr(t,e,Ke(...n))),{Fp:o,Fn:s}=e,{ORDER:a,BITS:c}=s,{keygen:u,getPublicKey:l,getSharedSecret:f,utils:d,lengths:h}=mf(e,n),p={prehash:!1,lowS:"boolean"==typeof n.lowS&&n.lowS,format:void 0,extraEntropy:!1},m="compact";function g(e){return e>a>>af}function b(e,t){if(!s.isValidNot0(t))throw new Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}class w{constructor(e,t,n){this.r=b("r",e),this.s=b("s",t),null!=n&&(this.recovery=n),Object.freeze(this)}static fromBytes(e,t=m){let n;if(function(e,t){tf(t);const n=h.signature;Ir(e,"compact"===t?n:"recovered"===t?n+1:void 0,`${t} signature`)}(e,t),"der"===t){const{r:t,s:n}=of.toSig(Ir(e));return new w(t,n)}"recovered"===t&&(n=e[0],t="compact",e=e.subarray(1));const r=s.BYTES,i=e.subarray(0,r),o=e.subarray(r,2*r);return new w(s.fromBytes(i),s.fromBytes(o),n)}static fromHex(e,t){return this.fromBytes(Ge(e),t)}addRecoveryBit(e){return new w(this.r,this.s,e)}recoverPublicKey(t){const n=o.ORDER,{r:r,s:i,recovery:c}=this;if(null==c||![0,1,2,3].includes(c))throw new Error("recovery id invalid");if(a*cf<n&&c>1)throw new Error("recovery id is ambiguous for h>1 curve");const u=2===c||3===c?r+a:r;if(!o.isValid(u))throw new Error("recovery id 2 or 3 invalid");const l=o.toBytes(u),f=e.fromBytes(Ke(hf(!(1&c)),l)),d=s.inv(u),h=v(Lr("msgHash",t)),p=s.create(-h*d),m=s.create(i*d),g=e.BASE.multiplyUnsafe(p).add(f.multiplyUnsafe(m));if(g.is0())throw new Error("point at infinify");return g.assertValidity(),g}hasHighS(){return g(this.s)}toBytes(e=m){if(tf(e),"der"===e)return Ge(of.hexFromSig(this));const t=s.toBytes(this.r),n=s.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw new Error("recovery bit must be present");return Ke(Uint8Array.of(this.recovery),t,n)}return Ke(t,n)}toHex(e){return De(this.toBytes(e))}assertValidity(){}static fromCompact(e){return w.fromBytes(Lr("sig",e),"compact")}static fromDER(e){return w.fromBytes(Lr("sig",e),"der")}normalizeS(){return this.hasHighS()?new w(this.r,s.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return De(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return De(this.toBytes("compact"))}}const y=n.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=Rr(e),n=8*e.length-c;return n>0?t>>BigInt(n):t},v=n.bits2int_modN||function(e){return s.create(y(e))},A=jr(c);function k(e){return Hr("num < 2^"+c,e,sf,A),s.toBytes(e)}function x(e,n){return Ir(e,void 0,"message"),n?Ir(t(e),void 0,"prehashed message"):e}return Object.freeze({keygen:u,getPublicKey:l,getSharedSecret:f,utils:d,lengths:h,Point:e,sign:function(n,o,a={}){n=Lr("message",n);const{seed:c,k2sig:u}=function(t,n,i){if(["recovered","canonical"].some(e=>e in i))throw new Error("sign() legacy options not supported");const{lowS:o,prehash:a,extraEntropy:c}=nf(i,p);t=x(t,a);const u=v(t),l=ff(s,n),f=[k(l),k(u)];if(null!=c&&!1!==c){const e=!0===c?r(h.secretKey):c;f.push(Lr("extraEntropy",e))}const d=Ke(...f),m=u;return{seed:d,k2sig:function(t){const n=y(t);if(!s.isValidNot0(n))return;const r=s.inv(n),i=e.BASE.multiply(n).toAffine(),a=s.create(i.x);if(a===sf)return;const c=s.create(r*s.create(m+a*l));if(c===sf)return;let u=(i.x===a?0:2)|Number(i.y&af),f=c;return o&&g(c)&&(f=s.neg(c),u^=1),new w(a,f,u)}}}(n,o,a);return function(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");const r=e=>new Uint8Array(e),i=e=>Uint8Array.of(e);let o=r(e),s=r(e),a=0;const c=()=>{o.fill(1),s.fill(0),a=0},u=(...e)=>n(s,o,...e),l=(e=r(0))=>{s=u(i(0),e),o=u(),0!==e.length&&(s=u(i(1),e),o=u())},f=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){o=u();const t=o.slice();n.push(t),e+=o.length}return Ke(...n)};return(e,t)=>{let n;for(c(),l(e);!(n=t(f()));)l();return c(),n}}(t.outputLen,s.BYTES,i)(c,u)},verify:function(t,n,r,i={}){const{lowS:o,prehash:a,format:c}=nf(i,p);if(r=Lr("publicKey",r),n=x(Lr("message",n),a),"strict"in i)throw new Error("options.strict was renamed to lowS");const u=void 0===c?function(e){let t;const n="string"==typeof e||Ce(e),r=!n&&null!==e&&"object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!n&&!r)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(r)t=new w(e.r,e.s);else if(n){try{t=w.fromBytes(Lr("sig",e),"der")}catch(i){if(!(i instanceof of.Err))throw i}if(!t)try{t=w.fromBytes(Lr("sig",e),"compact")}catch(o){return!1}}return t||!1}(t):w.fromBytes(Lr("sig",t),c);if(!1===u)return!1;try{const t=e.fromBytes(r);if(o&&u.hasHighS())return!1;const{r:i,s:a}=u,c=v(n),l=s.inv(a),f=s.create(c*l),d=s.create(i*l),h=e.BASE.multiplyUnsafe(f).add(t.multiplyUnsafe(d));if(h.is0())return!1;return s.create(h.x)===i}catch(l){return!1}},recoverPublicKey:function(e,t,n={}){const{prehash:r}=nf(n,p);return t=x(t,r),w.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:w,hash:t})}function bf(e){const{CURVE:t,curveOpts:n}=function(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp;let r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0;return{CURVE:t,curveOpts:{Fp:n,Fn:di(t.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes}}}(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:r}}function wf(e){const{CURVE:t,curveOpts:n,hash:r,ecdsaOpts:i}=bf(e);return function(e,t){const n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,fi(n.Fn.ORDER,n.Fn.BITS))})}(e,gf(df(t,n),r,i))}const yf={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},vf={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Af=BigInt(2);const kf=di(yf.p,{sqrt:function(e){const t=yf.p,n=BigInt(3),r=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),a=BigInt(44),c=BigInt(88),u=e*e*e%t,l=u*u*e%t,f=ti(l,n,t)*l%t,d=ti(f,n,t)*l%t,h=ti(d,Af,t)*u%t,p=ti(h,i,t)*h%t,m=ti(p,o,t)*p%t,g=ti(m,a,t)*m%t,b=ti(g,c,t)*g%t,w=ti(b,a,t)*m%t,y=ti(w,n,t)*l%t,v=ti(y,s,t)*p%t,A=ti(v,r,t)*u%t,k=ti(A,Af,t);if(!kf.eql(kf.sqr(k),e))throw new Error("Cannot find square root");return k}}),xf=function(e,t){const n=t=>wf({...e,hash:t});return{...n(t),create:n}}({...yf,Fp:kf,lowS:!0,endo:vf},Jn);function Cf(e){try{return Ki.ExtendedPoint.fromHex(e),!0}catch{return!1}}Ki.utils.randomPrivateKey,Ki.getPublicKey,Ki.verify;class Ef{constructor(e){Object.assign(this,e)}encode(){return Er.Buffer.from(Co.serialize(Sf,this))}static decode(e){return Co.deserialize(Sf,this,e)}static decodeUnchecked(e){return Co.deserializeUnchecked(Sf,this,e)}}const Sf=new Map;var Tf;let Mf=1;class If extends Ef{constructor(e){if(super({}),this.Be=void 0,function(e){return void 0!==e.Be}(e))this.Be=e.Be;else{if("string"==typeof e){const t=co.decode(e);if(32!=t.length)throw new Error("Invalid public key input");this.Be=new _i(t)}else this.Be=new _i(e);if(this.Be.byteLength()>32)throw new Error("Invalid public key input")}}static unique(){const e=new If(Mf);return Mf+=1,new If(e.toBuffer())}equals(e){return this.Be.eq(e.Be)}toBase58(){return co.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}toBuffer(){const e=this.Be.toArrayLike(Er.Buffer);if(32===e.length)return e;const t=Er.Buffer.alloc(32);return e.copy(t,32-e.length),t}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(e,t,n){const r=Er.Buffer.concat([e.toBuffer(),Er.Buffer.from(t),n.toBuffer()]),i=Wn(r);return new If(i)}static createProgramAddressSync(e,t){let n=Er.Buffer.alloc(0);e.forEach(function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");var t;n=Er.Buffer.concat([n,(t=e,Er.Buffer.isBuffer(t)?t:t instanceof Uint8Array?Er.Buffer.from(t.buffer,t.byteOffset,t.byteLength):Er.Buffer.from(t))])}),n=Er.Buffer.concat([n,t.toBuffer(),Er.Buffer.from("ProgramDerivedAddress")]);const r=Wn(n);if(Cf(r))throw new Error("Invalid seeds, address must fall off the curve");return new If(r)}static async createProgramAddress(e,t){return this.createProgramAddressSync(e,t)}static findProgramAddressSync(e,t){let n,r=255;for(;0!=r;){try{const i=e.concat(Er.Buffer.from([r]));n=this.createProgramAddressSync(i,t)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(e,t){return this.findProgramAddressSync(e,t)}static isOnCurve(e){return Cf(new If(e).toBytes())}}Tf=If,If.default=new Tf("11111111111111111111111111111111"),Sf.set(If,{kind:"struct",fields:[["_bn","u256"]]}),new If("BPFLoader1111111111111111111111111111111111");const Bf=(e="publicKey")=>So.blob(32,e),Nf=(e="string")=>{const t=So.struct([So.u32("length"),So.u32("lengthPadding"),So.blob(So.offset(So.u32(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),i=t;return i.decode=(e,t)=>n(e,t).chars.toString(),i.encode=(e,t,n)=>{const i={chars:Er.Buffer.from(e,"utf8")};return r(i,t,n)},i.alloc=e=>So.u32().span+So.u32().span+Er.Buffer.from(e,"utf8").length,i};Er.Buffer.alloc(64).fill(0),new If("SysvarC1ock11111111111111111111111111111111"),new If("SysvarEpochSchedu1e111111111111111111111111"),new If("Sysvar1nstructions1111111111111111111111111"),new If("SysvarRecentB1ockHashes11111111111111111111"),new If("SysvarRent111111111111111111111111111111111"),new If("SysvarRewards111111111111111111111111111111"),new If("SysvarS1otHashes111111111111111111111111111"),new If("SysvarS1otHistory11111111111111111111111111"),new If("SysvarStakeHistory1111111111111111111111111");const Rf=So.nu64("lamportsPerSignature");function Ff(e){const t=So.blob(8,e),n=t.decode.bind(t),r=t.encode.bind(t),i=t,o=Xu();return i.decode=(e,t)=>{const r=n(e,t);return o.decode(r)},i.encode=(e,t,n)=>{const i=o.encode(e);return r(i,t,n)},i}So.struct([So.u32("version"),So.u32("state"),Bf("authorizedPubkey"),Bf("nonce"),So.struct([Rf],"feeCalculator")]).span,Object.freeze({Create:{index:0,layout:So.struct([So.u32("instruction"),So.ns64("lamports"),So.ns64("space"),Bf("programId")])},Assign:{index:1,layout:So.struct([So.u32("instruction"),Bf("programId")])},Transfer:{index:2,layout:So.struct([So.u32("instruction"),Ff("lamports")])},CreateWithSeed:{index:3,layout:So.struct([So.u32("instruction"),Bf("base"),Nf("seed"),So.ns64("lamports"),So.ns64("space"),Bf("programId")])},AdvanceNonceAccount:{index:4,layout:So.struct([So.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:So.struct([So.u32("instruction"),So.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:So.struct([So.u32("instruction"),Bf("authorized")])},AuthorizeNonceAccount:{index:7,layout:So.struct([So.u32("instruction"),Bf("authorized")])},Allocate:{index:8,layout:So.struct([So.u32("instruction"),So.ns64("space")])},AllocateWithSeed:{index:9,layout:So.struct([So.u32("instruction"),Bf("base"),Nf("seed"),So.ns64("space"),Bf("programId")])},AssignWithSeed:{index:10,layout:So.struct([So.u32("instruction"),Bf("base"),Nf("seed"),Bf("programId")])},TransferWithSeed:{index:11,layout:So.struct([So.u32("instruction"),Ff("lamports"),Nf("seed"),Bf("programId")])},UpgradeNonceAccount:{index:12,layout:So.struct([So.u32("instruction")])}}),new If("11111111111111111111111111111111"),new If("BPFLoader2111111111111111111111111111111111"),So.struct([So.u32("typeIndex"),Ff("deactivationSlot"),So.nu64("lastExtendedSlot"),So.u8("lastExtendedStartIndex"),So.u8(),So.seq(Bf(),So.offset(So.u8(),-1),"authority")]);const Of=Al(ll(If),gl(),e=>new If(e)),Pf=bl([gl(),fl("base64")]),Lf=Al(ll(Er.Buffer),Pf,e=>Er.Buffer.from(e[0],"base64"));function Df(e){return yl([wl({jsonrpc:fl("2.0"),id:gl(),result:e}),wl({jsonrpc:fl("2.0"),id:gl(),error:wl({code:vl(),message:gl(),data:pl(al("any",()=>!0))})})])}const Uf=Df(vl());function Hf(e){return Al(Df(e),Uf,t=>"error"in t?t:{...t,result:il(t.result,e)})}function zf(e){return Hf(wl({context:wl({slot:hl()}),value:e}))}function jf(e){return wl({context:wl({slot:hl()}),value:e})}const Vf=wl({foundation:hl(),foundationTerm:hl(),initial:hl(),taper:hl(),terminal:hl()});Hf(cl(dl(wl({epoch:hl(),effectiveSlot:hl(),amount:hl(),postBalance:hl(),commission:pl(dl(hl()))}))));const qf=cl(wl({slot:hl(),prioritizationFee:hl()})),Jf=wl({total:hl(),validator:hl(),foundation:hl(),epoch:hl()}),Gf=wl({epoch:hl(),slotIndex:hl(),slotsInEpoch:hl(),absoluteSlot:hl(),blockHeight:pl(hl()),transactionCount:pl(hl())}),Wf=wl({slotsPerEpoch:hl(),leaderScheduleSlotOffset:hl(),warmup:ul(),firstNormalEpoch:hl(),firstNormalSlot:hl()}),Kf=ml(gl(),cl(hl())),Yf=dl(yl([wl({}),gl()])),Xf=wl({err:Yf}),Qf=fl("receivedSignature");wl({"solana-core":gl(),"feature-set":pl(hl())});const Zf=wl({program:gl(),programId:Of,parsed:vl()}),$f=wl({programId:Of,accounts:cl(Of),data:gl()});zf(wl({err:dl(yl([wl({}),gl()])),logs:dl(cl(gl())),accounts:pl(dl(cl(dl(wl({executable:ul(),owner:gl(),lamports:hl(),data:cl(gl()),rentEpoch:pl(hl())}))))),unitsConsumed:pl(hl()),returnData:pl(dl(wl({programId:gl(),data:bl([gl(),fl("base64")])}))),innerInstructions:pl(dl(cl(wl({index:hl(),instructions:cl(yl([Zf,$f]))}))))})),zf(wl({byIdentity:ml(gl(),cl(hl())),range:wl({firstSlot:hl(),lastSlot:hl()})})),Hf(Vf),Hf(Jf),Hf(qf),Hf(Gf),Hf(Wf),Hf(Kf),Hf(hl()),zf(wl({total:hl(),circulating:hl(),nonCirculating:hl(),nonCirculatingAccounts:cl(Of)}));const _f=wl({amount:gl(),uiAmount:dl(hl()),decimals:hl(),uiAmountString:pl(gl())});zf(cl(wl({address:Of,amount:gl(),uiAmount:dl(hl()),decimals:hl(),uiAmountString:pl(gl())}))),zf(cl(wl({pubkey:Of,account:wl({executable:ul(),owner:Of,lamports:hl(),data:Lf,rentEpoch:hl()})})));const ed=wl({program:gl(),parsed:vl(),space:hl()});zf(cl(wl({pubkey:Of,account:wl({executable:ul(),owner:Of,lamports:hl(),data:ed,rentEpoch:hl()})}))),zf(cl(wl({lamports:hl(),address:Of})));const td=wl({executable:ul(),owner:Of,lamports:hl(),data:Lf,rentEpoch:hl()});wl({pubkey:Of,account:td});const nd=Al(yl([ll(Er.Buffer),ed]),yl([Pf,ed]),e=>Array.isArray(e)?il(e,Lf):e),rd=wl({executable:ul(),owner:Of,lamports:hl(),data:nd,rentEpoch:hl()});wl({pubkey:Of,account:rd}),wl({state:yl([fl("active"),fl("inactive"),fl("activating"),fl("deactivating")]),active:hl(),inactive:hl()}),Hf(cl(wl({signature:gl(),slot:hl(),err:Yf,memo:dl(gl()),blockTime:pl(dl(hl()))}))),Hf(cl(wl({signature:gl(),slot:hl(),err:Yf,memo:dl(gl()),blockTime:pl(dl(hl()))}))),wl({subscription:hl(),result:jf(td)});const id=wl({pubkey:Of,account:td});wl({subscription:hl(),result:jf(id)});const od=wl({parent:hl(),slot:hl(),root:hl()});wl({subscription:hl(),result:od});const sd=yl([wl({type:yl([fl("firstShredReceived"),fl("completed"),fl("optimisticConfirmation"),fl("root")]),slot:hl(),timestamp:hl()}),wl({type:fl("createdBank"),parent:hl(),slot:hl(),timestamp:hl()}),wl({type:fl("frozen"),slot:hl(),timestamp:hl(),stats:wl({numTransactionEntries:hl(),numSuccessfulTransactions:hl(),numFailedTransactions:hl(),maxTransactionsPerEntry:hl()})}),wl({type:fl("dead"),slot:hl(),timestamp:hl(),err:gl()})]);wl({subscription:hl(),result:sd}),wl({subscription:hl(),result:jf(yl([Xf,Qf]))}),wl({subscription:hl(),result:hl()}),wl({pubkey:gl(),gossip:dl(gl()),tpu:dl(gl()),rpc:dl(gl()),version:dl(gl())});const ad=wl({votePubkey:gl(),nodePubkey:gl(),activatedStake:hl(),epochVoteAccount:ul(),epochCredits:cl(bl([hl(),hl(),hl()])),commission:hl(),lastVote:hl(),rootSlot:dl(hl())});Hf(wl({current:cl(ad),delinquent:cl(ad)}));const cd=yl([fl("processed"),fl("confirmed"),fl("finalized")]),ud=wl({slot:hl(),confirmations:dl(hl()),err:Yf,confirmationStatus:pl(cd)});zf(cl(dl(ud))),Hf(hl());const ld=wl({accountKey:Of,writableIndexes:cl(hl()),readonlyIndexes:cl(hl())}),fd=wl({signatures:cl(gl()),message:wl({accountKeys:cl(gl()),header:wl({numRequiredSignatures:hl(),numReadonlySignedAccounts:hl(),numReadonlyUnsignedAccounts:hl()}),instructions:cl(wl({accounts:cl(hl()),data:gl(),programIdIndex:hl()})),recentBlockhash:gl(),addressTableLookups:pl(cl(ld))})}),dd=wl({pubkey:Of,signer:ul(),writable:ul(),source:pl(yl([fl("transaction"),fl("lookupTable")]))}),hd=wl({accountKeys:cl(dd),signatures:cl(gl())}),pd=wl({parsed:vl(),program:gl(),programId:Of}),md=wl({accounts:cl(Of),data:gl(),programId:Of}),gd=Al(yl([md,pd]),yl([wl({parsed:vl(),program:gl(),programId:gl()}),wl({accounts:cl(gl()),data:gl(),programId:gl()})]),e=>il(e,"accounts"in e?md:pd)),bd=wl({signatures:cl(gl()),message:wl({accountKeys:cl(dd),instructions:cl(gd),recentBlockhash:gl(),addressTableLookups:pl(dl(cl(ld)))})}),wd=wl({accountIndex:hl(),mint:gl(),owner:pl(gl()),programId:pl(gl()),uiTokenAmount:_f}),yd=wl({writable:cl(Of),readonly:cl(Of)}),vd=wl({err:Yf,fee:hl(),innerInstructions:pl(dl(cl(wl({index:hl(),instructions:cl(wl({accounts:cl(hl()),data:gl(),programIdIndex:hl()}))})))),preBalances:cl(hl()),postBalances:cl(hl()),logMessages:pl(dl(cl(gl()))),preTokenBalances:pl(dl(cl(wd))),postTokenBalances:pl(dl(cl(wd))),loadedAddresses:pl(yd),computeUnitsConsumed:pl(hl()),costUnits:pl(hl())}),Ad=wl({err:Yf,fee:hl(),innerInstructions:pl(dl(cl(wl({index:hl(),instructions:cl(gd)})))),preBalances:cl(hl()),postBalances:cl(hl()),logMessages:pl(dl(cl(gl()))),preTokenBalances:pl(dl(cl(wd))),postTokenBalances:pl(dl(cl(wd))),loadedAddresses:pl(yd),computeUnitsConsumed:pl(hl()),costUnits:pl(hl())}),kd=yl([fl(0),fl("legacy")]),xd=wl({pubkey:gl(),lamports:hl(),postBalance:dl(hl()),rewardType:dl(gl()),commission:pl(dl(hl()))});Hf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),transactions:cl(wl({transaction:fd,meta:dl(vd),version:pl(kd)})),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),Hf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),Hf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),transactions:cl(wl({transaction:hd,meta:dl(vd),version:pl(kd)})),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),Hf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),transactions:cl(wl({transaction:bd,meta:dl(Ad),version:pl(kd)})),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),Hf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),transactions:cl(wl({transaction:hd,meta:dl(Ad),version:pl(kd)})),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),Hf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),Hf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),transactions:cl(wl({transaction:fd,meta:dl(vd)})),rewards:pl(cl(xd)),blockTime:dl(hl())}))),Hf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),signatures:cl(gl()),blockTime:dl(hl())}))),Hf(dl(wl({slot:hl(),meta:dl(vd),blockTime:pl(dl(hl())),transaction:fd,version:pl(kd)}))),Hf(dl(wl({slot:hl(),transaction:bd,meta:dl(Ad),blockTime:pl(dl(hl())),version:pl(kd)}))),zf(wl({blockhash:gl(),lastValidBlockHeight:hl()})),zf(ul());Hf(cl(wl({slot:hl(),numTransactions:hl(),numSlots:hl(),samplePeriodSecs:hl()}))),zf(dl(wl({feeCalculator:wl({lamportsPerSignature:hl()})}))),Hf(gl()),Hf(gl());const Cd=wl({err:Yf,logs:cl(gl()),signature:gl()});var Ed;wl({result:jf(Cd),subscription:hl()}),Object.freeze({CreateLookupTable:{index:0,layout:So.struct([So.u32("instruction"),Ff("recentSlot"),So.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:So.struct([So.u32("instruction")])},ExtendLookupTable:{index:2,layout:So.struct([So.u32("instruction"),Ff(),So.seq(Bf(),So.offset(So.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:So.struct([So.u32("instruction")])},CloseLookupTable:{index:4,layout:So.struct([So.u32("instruction")])}}),new If("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:So.struct([So.u8("instruction"),So.u32("units"),So.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:So.struct([So.u8("instruction"),So.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:So.struct([So.u8("instruction"),So.u32("units")])},SetComputeUnitPrice:{index:3,layout:So.struct([So.u8("instruction"),Ff("microLamports")])}}),new If("ComputeBudget111111111111111111111111111111"),So.struct([So.u8("numSignatures"),So.u8("padding"),So.u16("signatureOffset"),So.u16("signatureInstructionIndex"),So.u16("publicKeyOffset"),So.u16("publicKeyInstructionIndex"),So.u16("messageDataOffset"),So.u16("messageDataSize"),So.u16("messageInstructionIndex")]),new If("Ed25519SigVerify111111111111111111111111111"),xf.utils.isValidPrivateKey,So.struct([So.u8("numSignatures"),So.u16("signatureOffset"),So.u8("signatureInstructionIndex"),So.u16("ethAddressOffset"),So.u8("ethAddressInstructionIndex"),So.u16("messageDataOffset"),So.u16("messageDataSize"),So.u8("messageInstructionIndex"),So.blob(20,"ethAddress"),So.blob(64,"signature"),So.u8("recoveryId")]),new If("KeccakSecp256k11111111111111111111111111111"),new If("StakeConfig11111111111111111111111111111111");class Sd{constructor(e,t,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=t,this.custodian=n}}Ed=Sd,Sd.default=new Ed(0,0,If.default),Object.freeze({Initialize:{index:0,layout:So.struct([So.u32("instruction"),((e="authorized")=>So.struct([Bf("staker"),Bf("withdrawer")],e))(),((e="lockup")=>So.struct([So.ns64("unixTimestamp"),So.ns64("epoch"),Bf("custodian")],e))()])},Authorize:{index:1,layout:So.struct([So.u32("instruction"),Bf("newAuthorized"),So.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:So.struct([So.u32("instruction")])},Split:{index:3,layout:So.struct([So.u32("instruction"),So.ns64("lamports")])},Withdraw:{index:4,layout:So.struct([So.u32("instruction"),So.ns64("lamports")])},Deactivate:{index:5,layout:So.struct([So.u32("instruction")])},Merge:{index:7,layout:So.struct([So.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:So.struct([So.u32("instruction"),Bf("newAuthorized"),So.u32("stakeAuthorizationType"),Nf("authoritySeed"),Bf("authorityOwner")])}}),new If("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:So.struct([So.u32("instruction"),((e="voteInit")=>So.struct([Bf("nodePubkey"),Bf("authorizedVoter"),Bf("authorizedWithdrawer"),So.u8("commission")],e))()])},Authorize:{index:1,layout:So.struct([So.u32("instruction"),Bf("newAuthorized"),So.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:So.struct([So.u32("instruction"),So.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:So.struct([So.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:So.struct([So.u32("instruction"),((e="voteAuthorizeWithSeedArgs")=>So.struct([So.u32("voteAuthorizationType"),Bf("currentAuthorityDerivedKeyOwnerPubkey"),Nf("currentAuthorityDerivedKeySeed"),Bf("newAuthorized")],e))()])}}),new If("Vote111111111111111111111111111111111111111"),new If("Va1idator1nfo111111111111111111111111111111"),wl({name:gl(),website:pl(gl()),details:pl(gl()),iconUrl:pl(gl()),keybaseUsername:pl(gl())}),new If("Vote111111111111111111111111111111111111111"),So.struct([Bf("nodePubkey"),Bf("authorizedWithdrawer"),So.u8("commission"),So.nu64(),So.seq(So.struct([So.nu64("slot"),So.u32("confirmationCount")]),So.offset(So.u32(),-8),"votes"),So.u8("rootSlotValid"),So.nu64("rootSlot"),So.nu64(),So.seq(So.struct([So.nu64("epoch"),Bf("authorizedVoter")]),So.offset(So.u32(),-8),"authorizedVoters"),So.struct([So.seq(So.struct([Bf("authorizedPubkey"),So.nu64("epochOfLastAuthorizedSwitch"),So.nu64("targetEpoch")]),32,"buf"),So.nu64("idx"),So.u8("isEmpty")],"priorVoters"),So.nu64(),So.seq(So.struct([So.nu64("epoch"),So.nu64("credits"),So.nu64("prevCredits")]),So.offset(So.u32(),-8),"epochCredits"),So.struct([So.nu64("slot"),So.nu64("timestamp")],"lastTimestamp")]);const Td={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:{block:Tn({format(e){const t=e.transactions?.map(e=>{if("string"==typeof e)return e;const t=Cn(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?G(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t});return{transactions:t,stateRoot:e.stateRoot}}}),transaction:En({format(e){const t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?G(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:ar({format:e=>({l1GasPrice:e.l1GasPrice?G(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?G(e.l1GasUsed):null,l1Fee:e.l1Fee?G(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})},serializers:{transaction:function(e,t){return function(e){return"deposit"===e.type||void 0!==e.sourceHash}(e)?function(e){!function(e){const{from:t,to:n}=e;if(t&&!xt(t))throw new wt({address:t});if(n&&!xt(n))throw new wt({address:n})}(e);const{sourceHash:t,data:n,from:r,gas:i,isSystemTx:o,mint:s,to:a,value:c}=e;return Et(["0x7e",nn([t,r,a??"0x",s?Y(s):"0x",c?Y(c):"0x",i?Y(i):"0x",o?"0x1":"0x",n??"0x"])])}(e):lr(e,t)}}},Md=dr({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),Id=dr({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),Bd=1,Nd=dr({...Td,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...Td.contracts,disputeGameFactory:{[Bd]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[Bd]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[Bd]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[Bd]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),Rd=dr({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}});async function Fd(e,t){const{account:n=e.account}=t;if(!n)throw new ir;const r=Lt(n);try{const{accessList:n,blockNumber:i,blockTag:o,data:s,gas:a,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:f,to:d,value:h,...p}=t,m=("bigint"==typeof i?Z(i):void 0)||o;!function(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:i}=e,o=t?Lt(t):void 0;if(o&&!xt(o.address))throw new wt({address:o.address});if(i&&!xt(i))throw new wt({address:i});if(n&&n>kn)throw new an({maxFeePerGas:n});if(r&&n&&r>n)throw new gn({maxFeePerGas:n,maxPriorityFeePerGas:r})}(t);const g=e.chain?.formatters?.transactionRequest?.format,b=(g||An)({...wn(p,{format:g}),account:r,accessList:n,data:s,gas:a,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:f,to:d,value:h},"estimateGas"),{baseFeePerGas:w,gasLimit:y,priorityFeePerGas:v}=await e.request({method:"linea_estimateGas",params:m?[b,m]:[b]});return{baseFeePerGas:BigInt(w),gasLimit:BigInt(y),priorityFeePerGas:BigInt(v)}}catch(i){throw rr(i,{...t,account:r,chain:e.chain})}}async function Od({client:e,multiply:t,request:n,type:r}){try{const i=await Fd(e,{...n,account:n?.account}),{priorityFeePerGas:o}=i,s=t(BigInt(i.baseFeePerGas))+o;return"legacy"===r?{gasPrice:s}:{maxFeePerGas:s,maxPriorityFeePerGas:o}}catch{return null}}const Pd=dr({...{fees:{estimateFeesPerGas:Od,async maxPriorityFeePerGas({block:e,client:t,request:n}){const r=await Od({block:e,client:t,multiply:e=>e,request:n,type:"eip1559"});return r?.maxPriorityFeePerGas?r.maxPriorityFeePerGas:null}}},id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1}),Ld=dr({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Dd=1,Ud=dr({...Td,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...Td.contracts,disputeGameFactory:{[Dd]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[Dd]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[Dd]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[Dd]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1}),Hd=dr({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),zd=1,jd=dr({...Td,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...Td.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[zd]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[zd]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[zd]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308B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jLMDAC1dXV5DcKo3iM4EieTqktsdzphIygflEa4ka3npcYeJ3mcNpXMA9IDmFOHPC+5Iz/BElwM6GmmQapAAAAAElFTkSuQmCC",chainId:1,chainType:"ether",chainTypeMoralis:"eth",customName:"Ethereum",isSupported:!0},10:{...Ud,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACW5JREFUeAHtnT1sHEUUx9+eD0QF14PwpoQCGwkJqtiRgAYJg5KGgo8EiVT5IIgyiYNLiIiTCqR8GAqaRMSR0gRQLqEhAil3KZKCImsJKhonFSI+L+8/u+es77w7b3dn9tb2/KSzz3t7vr357/uYN7OzHtWckPwWjdE0PxmnBu3gTeP88PnvFv9ukad+J9+wzD+XeXsQb+nSKt3n93ZphTq8eZlqjEc1I3zK9+k/mmERJrkhp/kIfTJJyEJ51OHflyGS9yjoUI2ohSBh05/mX+9wI80YF0D74cqS2vy5C95K0KYRMzJBlCtq0iGCEMTWUAcicWapRzfYtQU0AioXJHzCn+Qv/hE/Phzy/3UipAsszImqhalMELYIny3iPD+dps1ExcJYFyR2Tcf56WHazFQkjFVB2D0d4kxpttauKQ9xjPF6wQJZwoogm9Y9yWlzn2avDWtpkGGUVYzRbdq6YoBpPuFu83c17oaNWciWiRX5OcX9l0/JEEYEiV3Uj1SX/kTVILb0aJcJF1ZaECXGGF2vvIddNwyJUkoQFmMyFmNrZFHlQVFzV5n6WGFBnBiplBKlkCBODC2FRcktSBwzbjsxtCxzX+XlvDElVz8kEcCdGHowsHZdtVkOcllIOObf3/bZVH46bCm7pCOVYgvhQaSvnRiFmIw7zCJEgqhyyPbrgZvksLTMonVZLogbQxTk9RaCqq0TwwStuAKeSaYgHMQ/oq1dta2aaZ3rSnVZrkZlDbiuHWlZV7qFjKmRPp8cpmllZV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z3VbC8wTRtTdooFJqyiiRW17KObyp2fMsEfEtWkcT64uJxFjbLn/QhbW4QK2alt1AtSmWrvW9iYay5p42oTJA+m0KYUN0PfYEfF4reqL4olQvSJxZmmuoVY9D4i5hSa9s1pTEyQZKo+2dE92OaqlycaCULTDK/zOPdbRoxtRAkiaqPrfIgmEcz3FiTxgWCAA2OCz22hidpEXckoBpRO0EGiUcqIdIEFhqm/rK20eKdraE1I6PVjZbjRXUCfizxe++rJUR61B6VK5LyPxFwTRTwwp+SAAAAAElFTkSuQmCC",chainId:10,chainType:"optimism",chainTypeMoralis:"optimism",customName:"Optimism",isSupported:!0},56:{...Rd,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACcRJREFUeAHlnU2IHMcVgF9V9+iPWTMbSJyIEGmTgwOJtR3QIZegWYgVmUBWOoQEQmIZcsjNziEHX6KNIaccvL75EIh0yCEnaQOJ7ZVhxxfjg8GzBoNtsLW66GBjdrVrS5Zmusr1eqbGPbszPdX1273+YFczy/z09KdXr+p1TRWBirN9PWnBCWjHETsFfVgASk6JP5/mAC1CoAVc/OQhsMM57BCArew+45sQw60+p5vwGXTnL3V3oMIQqBjbLyen4wZbJowkDKAtDvA0WARFCZldQvmNHqOb8+e7XagQlRCyfTNpxym7yClZti1gFsNI6vQIuTb/RLcDgQkmBJuiuMmeAU4uirsJVIBMDuUrvR59ff7J7hYEwLuQ7fUkiRm7DBF56kD7XyHEibnaS8nffIvxJiTLDRH/l7jZhhrhW4xzIdg0RU12hXDyLNQYX2KcCtl77QzmiJUqN01lkDmm+fN3roEjnAipa/NUgk4/JU+7iBYKlsGoiGP+NhxeGYgYqPK3775yxnozbC1CDkuuKAshfLX5xDt/BktYEYJNVCPi13lFxhO+wdwiEv6SjSbMWMhQ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V0qaUyvuH7IkRPHgcwe/HpPkKLQMYeXHuQldp7Xfl2e9Zrwv8Xerdj26khJaBvSpVGYiyEOx1iTbwEuf+Z6hIykqpgoyUkVKrC9RzyyOF5iu4DJHEU9dbHiH4BoQL64F6XsisSKmEDNDb01Brlzbks/Uk4aF3apsQKZWR4XPbPEnVpNRdBmIkBMGcElG+QUjA/alyO32GQibwoFuvSqogJSgcun1GLlVic+I8oQePQRCDvv59WJm2QUtZrApB7r6SPEsjfiVkXvEB5gsshzQvdFfBItaFIMNF/XF/jDYcTjpYKLTRRO3HiRDJ7npyWWS7K4clt7iKijzG62UV8cj57lXseXDOr0HdEbki/ZwsuJSBOI2QPIOeGFshhDwF9cJZ8zQJb0IkdRCDTRNh/Bqh9GrTYJCng3chkkxMJJJ+tXJMFzhZ69+DVVvd2LIEE5JnD/cuybbLIOd8y8EvvIpoWANOb8w92e1AYCohJA/WxxhAQoAvi3JEYlvQYD0R6HAg3TiFteOecoMqlROyH9wcPj4GCUSwCIwtwHDR+uHinS1cODL/eD5YTGdnuKjOFjB+Gyi9JeTeTu9BJ1RTpMqXLiNpVjp6y9MAAAAASUVORK5CYII=",chainId:56,chainType:"bsc",chainTypeMoralis:"bsc",customName:"BNB Chain",isSupported:!0},137:{...Hd,rpcUrls:{default:{http:["https://polygon-bor-rpc.publicnode.com"]}},logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAC61JREFUeAHtnU9sFNcdx39vdmNMbbATQHZSEOtQieYSO5dYzQHbBzDqAcyhOSUBDimRooSkVLkFL84tbRRHUaqklVpIeuLCn14wqMKOVCoiVVmnJypRrwVN7DYpCzHJ2njn5X3f7phde3bnzcyb2Z1hP9LKa7PGu/N97/f3zXuMGpz03q9SZN7rS7DkdpMKPYwS2zn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otIuLmROOz0MqX4MC6mazXIygEy/qBXqmjbatwi6lFXPRHl9fdGJ7YpnV6nvEKOLy6nuei9UxO3ZFXFAOrnh0z2CBtoHKCYdBZDQoa4bn6heeRRcHg6Rs/1ol78AZPzoaiU6esCl4eCeTposnlsnm4gBg/52DyLpiir8CkG8H/0akDHWkSQ+h+9CqRPKUYSWXpAweHEOsQAWu7UkaIsLj2FBIgeMPCZ+eKSFjGA9taaLLNwNhp7vyLvzeQnjk9s1XokVCC9Tnm+ummeYTHay7EcVG05SxzWNSvKCXTnsrG9Nw/J2RIXhx/QrCgn8K3kirOlkGaMHaQIU/QVy+lqh3npIrS9/aIqTJDmyY7QN1uMhDBoJjHzFGfJ8bCEsKjb7pcyoaTCYCP5GDEbMsJHnOP55fGgTVM16iZIOVgtieMySic0pChcsrg/A7djlO4AqCsNIUg5qI8lDGOAFxdWBHFqQ1Y8JhmxTIGxc2GbJCcaTpDVyK3QW5N9CZ7oNanQQ6VN68UFTZX2i6xMQIub6eREdzMn8iCM/lmDEjMFvjxLS4XJepkiVX4AbuLqSV+48XkAAAAASUVORK5CYII=",chainId:137,chainType:"matic",chainTypeMoralis:"polygon",isSupported:!0},8453:{...Nd,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACFhJREFUeAHtnT1sHEUUx/+7pCJIuAltzjVIdppQ+lwT5A8kKG3TIYESSwhKn0sQUhwpiDJ2SSRiI5Ha55YmjpTUXrehuQY6e5j/zq19n769eTP7dfuTLne52Lm9/e97b2b2zXsBis6qmtN/NvEe7uIS8wj0s0JDP/P95NFLJ34oRN2/v0aIM1zoZ+AUR0EHBSZA0VhVDX3yV/QJXQSFgD75bolAYQIcxSIdBacoEMUQZFU19ZGs6scK3AswiUg/2tr6DrQ4beRMfoL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vz5+8AH942Gyx7SbYCnL/rJq6d55JdmWFTsIS6h+E4cmibl1CLMkiOjSUT6tarCU5ar8o3ffIAeCCCvK7Sw+QQR82J3ezC5YFwrO1oyb5U8DsrN2IQucsaxLT04e3/qscVsxqeovPaNLgXhJiWF89crhIXCq7acqHQkVX04keQBDYVM9bSQDXwYhW9+BWEGGtpuWgSkysmVrTStlC1xb8gCWUVxqN7GkV2giSUQxiTMKjiZARRvvO0ZC9IgplQNlGkGMP5BPObmVLr2TWNIz9BemH/DLbLMB0aGsiWKN4bw+0YPVnoeVEMQXox62O8CcZ69KKuDWOIwA0y3Fd5oYXIKDakpXiCDGJKoS/iPSzEDbSSsrameOcchiegHZgY0ImLIrB0CBudXcQlRNp5uaK0/A/QqtacrEVArQAAAABJRU5ErkJggg==",chainId:8453,chainType:"base",chainTypeMoralis:"base",isSupported:!0},42161:{...Md,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAEuFJREFUeAHlXQ1sFOeZfmd2ba+NbWwwBv8QbAjY/BuKayeQsE5Acmp0NiRcepe0IVV71zvpjnA65VRdq8JdTydFOsXRnYh6rZqgUpoqTbDbEJwG4qUtDcZOMBiojQleEv5iSGPw7/7MfP3ez5717O7MzuzszOw6fSKz49lvN+N55n2f932/+d7hIMVR5m7KyxnzuQlxLBJ5sZwHWATAlXFA8gjh8oCDvLAPEBjiODJEgPPiryKQs7zIDwAJnh3JdnV7PS1DkMLgIMVQWVtf5hScjYQnVTwQNz2xZWAiCICXktlNyWwhxH/2Yue73ZBCSAlCVtXWu0XCNzkAGs0mQAtIEH3xcIJw4HxXmweSjKQRgq4oe8y/mx5CEz2KKkgBMHII7BX4tBO9p1q8kATYTsiK6q9UAQ+7eMI9E+X/UwiUnFcFLm2f3cTYRk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kRAK8RVgoFHHlkv8krQcmNqYE/WoVMDZucTmtAp4pGYUQ8FQ+glxn6dkIGSIRKbHgomIdmPzcNuoNjYXyiYds9IAn/3JovYMLFLyjMNEyADMeMfLInAMBl/kvTcQtmBJEYGwoRHr9ov9KkIIwKuhIQXfeIB4IEQi+4PngmgKWq3GWQgzGu0CPYmj6kD8tJI5ther87H4mnB1AfcD16/1EbLLHdphbjWyI0SMwpUL7AcQpO+vUNer2nRg6kWImFqxhGfXeWGLyY8dMbvWTNcVCQsIUTCitqv7KJFye9/YQR/0ir2Xeg40gwWwVSXFYnb1/q75y5c0soRPp+zqQZmHahWZI1t7z/5rgcshKUWIgcLj0XHXkrMMzCzYJl7UoJthEiYEcRggseRAyDCq4kkeUZgOyESkBgeeHeKaQytt3CtI66RZrPC2HiRNELkWFW7zU1Esgs4stlucnChEp3GauU5voWtAEgyUoIQObA+RkONKl7kGwknVplNEBIgAueh39sd5Jyt8Tx83g6kHCGRKHO787InsquoX18rgljOT7W1xeadrF9kZGGT+n/scDTZVIfzipx4lbrGAeoarw5njXiS5Yr04s84I4HsxczfIwAAAABJRU5ErkJggg==",chainId:42161,chainType:"arbitrum",chainTypeMoralis:"arbitrum",customName:"Arbitrum",isSupported:!0},43114:{...Id,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABkCAYAAACfIP5qAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACQJJREFUeAHtnc9zk0UYx7+7Kdo2VePFghfC4J14xhlecEY8oni2cNUDqDNypOgfABzkautZpN7kYPty8B7uOoYZHQoX6ghtEfI+7vMmb0iTvHl/7e67KfnM0JTkTfI23zz7fHf32X0FJoD7nlcPUGkcAA4HoAYkaiDU1UM1of6R+td/vLpvS923pX5rQdBWQHRvhuSfbbTv7gLNI76/BYcRcJCHntcAKicCSZ4geIMfugaa6i9vikD4Ad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01kQRh1Xw5XJ5Le6CryaxWWmrEqm/gjDPmURXbjYUzTo9pz7vKOK+A9RyblfG8a1Ckgq9lv8B/ms5OCQW+c4AAAAASUVORK5CYII=",chainId:59144,chainType:"linea",chainTypeMoralis:"linea",customName:"Linea",isSupported:!0},130:{...jd,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABkCAYAAAB5CTUuAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAN7ZJREFUeAHNfQe8ZVV577fW3vu0e+/0gkMdZACpCoggPiwYDIoJ8YklFoyJkmjy8uRn1GeIEFNMNNEkahJLxIhR84gxGiERCCIi8PBHCyLSuzMw/bbT9l7rfXXtfYcBhibu+Z255+yzy1pf/X9l7ePg52x7CbykU7Zn1+xZTaz+cP6W/fYrDjiw72b3ilAujw52d+BWQfStGOJi380yiABxGABcmHYQH4rgZnHPZnBwby8svu3q8trb/7D82r2j8Xh9CVM/vRQuLeHnaHPwzG/uXROnrl5cxXVvb5146Mqw+tC5TnlABrBPd5gtbvtOEVz0AMHHGHPwkLmApI6Zcx3naAJhwAyg/yr6hnbhN6WLruqHYTnfDtuQUXdMjPIb7w733PTF4X/9pF0WP/5zOG87PMPbM8aAD068cfW+cfej1/k1Lz8+e+ELohsfADBaUoUKfKeDZAwwHM3jCD2g5CPdQxqxI6mHDFwH+UL0HkSiPR9HE4r8PW2oD8FDuzvBO8P8EHJf4HHtTXiNGy4YXXLN/WHzf90wvP+Kv4XzZuEZ2H6mDEDzkv/R4pMPL4fx1Ue3Dv7FXrb7oRC394ZxFuXbI2HR0MQSsk4b6RXRtIzB+1wJG+tB446IjHFdJ5TuEwMCvkWCO9EB+oTsgYCKgUrE+6rBEFou52nTvVpuCt8v2jZX3n3dFdXN538uXnTeeYOL7wNo3Oxp3n4mDDgbzvbHdv3zj5845m0dv/Q1MHSrgtsG864POUo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"unichain",isSupported:!1},7565164:{id:7565164,name:"Solana",nativeCurrency:{decimals:18,name:"Solana",symbol:"SOL"},rpcUrls:{default:{http:[""]}},logo:"https://ipfs.pantograph.app/ipfs/QmZhKcFZVvw5r3cGLfSLsLcd1GzbQK5Vf7aoVYvgktzUUA?filename=Solana_logo.png",chainId:7565164,isSupported:!1}},qd={"keyring-chatbot-agent-sdk-test":{name:"keyring-chatbot-agent-sdk-test",modal:{title:"Keyring Agent",icon:"https://nft.keyring.app/favicon.ico"},agentConfig:{storageKey:"keyring-chatbot-agent-sdk-test-history",persistHistory:!0,debug:!0,generateSuggestions:!1,subgraph:{theGraphApiKey:"4c67ac7a75b21befbd28dc9120c709f1",coinPoolBaseUrl:"https://api.coinpool.app",keyringPoolBaseUrl:"https://pool-data.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create"},subagents:{"pool-subgraph":!0,"wallet-action":!0,pool:!1}}},"keyring-chatbot-coinpool-test":{name:"keyring-chatbot-coinpool-test",modal:{title:"Keyring CoinPool Agent",icon:"https://coinpool.app/favicon.ico"},agentConfig:{storageKey:"keyring-chatbot-coinpool-test-history",persistHistory:!0,debug:!0,generateSuggestions:!1,nftLink:"https://nft.keyring.app",subgraph:{theGraphApiKey:"4c67ac7a75b21befbd28dc9120c709f1",coinPoolBaseUrl:"https://api.coinpool.app",keyringPoolBaseUrl:"https://pool-data.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create"},subagents:{"pool-subgraph":!0,"wallet-action":!0,pool:!1},vectorKB:{enabled:!0,minScore:1.4,token:"ABYFMGZyZXNoLXNhbG1vbi04NDEzNS11czFhZG1pbk1qTXpaVEV5WVdJdE1UQmpaaTAwWTJabUxUbG1PRFl0TkdabE0yVXlaREkyTVRkag==",url:"https://fresh-salmon-84135-us1-vector.upstash.io"}}},"keyring-chatbot-coinpool":{name:"keyring-chatbot-coinpool",modal:{title:"Keyring CoinPool Agent",icon:"https://coinpool.app/favicon.ico"},agentConfig:{storageKey:"keyring-chatbot-coinpool-history",persistHistory:!0,debug:!0,generateSuggestions:!1,nftLink:"https://nft.keyring.app",subgraph:{theGraphApiKey:"4c67ac7a75b21befbd28dc9120c709f1",coinPoolBaseUrl:"https://api.coinpool.app",keyringPoolBaseUrl:"https://pool-data.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create"},subagents:{"pool-subgraph":!0,"wallet-action":!0,pool:!1},vectorKB:{enabled:!0,minScore:1.4,token:"ABYFMGZyZXNoLXNhbG1vbi04NDEzNS11czFhZG1pbk1qTXpaVEV5WVdJdE1UQmpaaTAwWTJabUxUbG1PRFl0TkdabE0yVXlaREkyTVRkag==",url:"https://fresh-salmon-84135-us1-vector.upstash.io"}}},"keyring-chatbot-agent":{name:"keyring-chatbot-agent",modal:{title:"Keyring Agent",icon:"https://nft.keyring.app/favicon.ico"},agentConfig:{storageKey:"keyring-chatbot-agent-history",persistHistory:!0,debug:!0,generateSuggestions:!1,subgraph:{theGraphApiKey:"4c67ac7a75b21befbd28dc9120c709f1",coinPoolBaseUrl:"https://api.coinpool.app",keyringPoolBaseUrl:"https://pool-data.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create"},subagents:{"pool-subgraph":!0,"wallet-action":!0,pool:!1}}}},Jd=["https://nft-demo.keyring.app","https://nft.keyring.app","https://coinpool.app","https://coinpool-op.bacoor-test001.xyz","https://dev2-coinpool-op.bacoor-test001.xyz","https://rwa.bacoor-test001.xyz","https://test.coinpool.app","https://test.smart-vault.tech","https://smart-vault.tech"],Gd=e=>{const t=new Date,n=new Date(t);n.setDate(n.getDate()-1);const r=new Date(e);return r.setHours(0,0,0,0),t.setHours(0,0,0,0),n.setHours(0,0,0,0),r.getTime()===t.getTime()?"Today":r.getTime()===n.getTime()?"Yesterday":r.toLocaleDateString("en-US",{month:"short",day:"numeric",year:r.getFullYear()!==t.getFullYear()?"numeric":void 0})},Wd=e=>new Promise(t=>setTimeout(t,e||0)),Kd=(e,t=5,n=5)=>{const r=e||"";return r.length<=t+n?r:`${r.substring(0,t)}...${r.substring(r.length-n)}`},Yd=e=>e?Vd[e]?.chainTypeMoralis??"":"",Xd=e=>e?Vd[e]?.chainType??"":"";function Qd(e){if(xt(e))return!0;try{return new If(e),!0}catch{return!1}}function Zd(){return qd["keyring-chatbot-agent-sdk-test"]}const $d={send_native:{label:"actionSendNativeLabel",description:"actionSendNativeDesc",fields:[{key:"to_address",label:"fieldToAddress",type:"address",placeholder:"0x...",required:!0,validation:"address"},{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},send_token:{label:"actionSendTokenLabel",description:"actionSendTokenDesc",fields:[{key:"contract_address",label:"fieldTokenContract",type:"address",placeholder:"0x... token contract",required:!0,validation:"address",editable:!1},{key:"token_symbol",label:"fieldTokenSymbol",type:"text",placeholder:"e.g. USDC",required:!1,editable:!1},{key:"decimals",label:"fieldDecimals",type:"number",placeholder:"18",required:!1,editable:!1},{key:"to_address",label:"fieldToAddress",type:"address",placeholder:"0x...",required:!0,validation:"address"},{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},swap_token:{label:"actionSwapTokenLabel",description:"actionSwapTokenDesc",fields:[{key:"token_in",label:"fieldTokenIn",type:"address",placeholder:"0x... or native",required:!0,editable:!1},{key:"token_in_symbol",label:"fieldTokenInSymbol",type:"text",placeholder:"e.g. ETH",required:!1,editable:!1},{key:"token_out",label:"fieldTokenOut",type:"address",placeholder:"0x...",required:!0,editable:!1},{key:"token_out_symbol",label:"fieldTokenOutSymbol",type:"text",placeholder:"e.g. USDC",required:!1,editable:!1},{key:"token_in_decimals",label:"fieldTokenInDecimals",type:"number",placeholder:"18",required:!1,editable:!1},{key:"token_out_decimals",label:"fieldTokenOutDecimals",type:"number",placeholder:"18",required:!1,editable:!1},{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},approve_token:{label:"actionApproveTokenLabel",description:"actionApproveTokenDesc",fields:[{key:"contract_address",label:"fieldTokenContract",type:"address",placeholder:"0x... token contract",required:!0,validation:"address",editable:!1},{key:"token_symbol",label:"fieldTokenSymbol",type:"text",placeholder:"e.g. USDC",required:!1,editable:!1},{key:"spender_address",label:"fieldSpenderAddress",type:"address",placeholder:"0x... spender contract",required:!0,validation:"address",editable:!1},{key:"amount",label:"fieldAmountUnlimited",type:"amount",placeholder:"0.0 or leave empty for max",required:!1,validation:"amount"},{key:"decimals",label:"fieldDecimals",type:"number",placeholder:"18",required:!1,editable:!1}]},wrap_native:{label:"actionWrapNativeLabel",description:"actionWrapNativeDesc",fields:[{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},unwrap_native:{label:"actionUnwrapNativeLabel",description:"actionUnwrapNativeDesc",fields:[{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},send_nft:{label:"actionSendNftLabel",description:"actionSendNftDesc",fields:[{key:"contract_address",label:"fieldNftContract",type:"address",placeholder:"0x... NFT contract",required:!0,validation:"address",editable:!1},{key:"token_id",label:"fieldTokenId",type:"text",placeholder:"e.g. 1234",required:!0,editable:!1},{key:"to_address",label:"fieldToAddress",type:"address",placeholder:"0x...",required:!0,validation:"address"},{key:"token_standard",label:"fieldTokenStandard",type:"text",placeholder:"ERC721 or ERC1155",required:!0,editable:!1},{key:"amount",label:"fieldAmount",type:"text",placeholder:"1",required:!0},{key:"maxAmount",label:"fieldMaxAmount",type:"text",placeholder:"",required:!1,editable:!1,hidden:!0},{key:"nft_name",label:"fieldNftName",type:"text",placeholder:"e.g. Bored Ape #1234",required:!1,editable:!1}]}};function _d(e){return xt(e)}function eh(e){if(!e||""===e.trim())return!1;const t=parseFloat(e);return!isNaN(t)&&t>0}const th=n.createContext(void 0),nh=()=>{const e=n.useContext(th);if(!e)throw new Error("useConnect must be used within ConnectProvider");const t=e.account?.chainId;return{...e,chainData:void 0!==t?Vd[t]:void 0,chainId:t,chainType:Xd(t),chainTypeMoralis:Yd(t),isChainSupported:!(void 0===t||!Vd[t]?.isSupported)}},rh=({children:e,initialAccount:n})=>t.jsx(th.Provider,{value:{account:n||null},children:e}),ih="chat_widget_messages",oh=200,sh="welcome-message",ah=()=>Math.random().toString(36).substring(2,12);function ch(e){return e.map(e=>({...e,timestamp:new Date(e.timestamp),...e.walletActions?{walletActions:e.walletActions.map(e=>"submitted"===e.status?{...e,status:"pending"}:e)}:{}}))}function uh(){const e=g.getItem(ih);if(!e)return null;try{const t=JSON.parse(e);if(t&&void 0!==t.owner&&Array.isArray(t.messages))return{owner:t.owner,messages:ch(t.messages)};if(Array.isArray(t))return{owner:"",messages:ch(t)}}catch{}return null}function lh(e,t){g.setItem(ih,JSON.stringify({owner:e,messages:t}))}function fh({customWelcomeMessage:e}={}){const{account:t}=nh(),{t:r}=h(),i=(o=t?.address,s=t?.chainId,o&&s?`${o}_${s}`:"");var o,s;const a=n.useMemo(()=>{return t=e||r("welcomeMessage"),[{id:sh,text:t,sender:"bot",timestamp:new Date}];var t},[r,e]),[c,u]=n.useState(()=>i||"pending"),[l,f]=n.useState(()=>function(e,t){const n=uh();return e?n&&n.owner===e?n.messages:t:n?.messages??t}(i,a));if("pending"===c&&i){const e=uh();e&&e.owner===i?f(e.messages):lh(i,l),u(i)}else"pending"!==c&&i&&c!==i&&(f(a),lh(i,a),u(i));n.useEffect(()=>{"pending"!==c&&lh(c,l)},[l,c]),n.useEffect(()=>{!function(){const e=[];for(let t=0;t<g.length;t++){const n=g.key(t);n&&n.startsWith(ih+"_")&&e.push(n)}e.forEach(e=>g.removeItem(e))}()},[]);return{messages:n.useMemo(()=>l.map(t=>t.id===sh?{...t,text:e||r("welcomeMessage")}:t),[l,r,e]),addMessage:n.useCallback((e,t,n={})=>{const{buttons:r,walletActions:i,actionButtons:o,typeChat:s="web3"}=n,a={id:ah(),text:e,sender:t,timestamp:new Date,typeChat:s,...r&&{buttons:r},...i&&i.length>0&&{walletActions:i},...o&&o.length>0&&{actionButtons:o}};return f(e=>{const t=[...e,a];return t.length>oh?t.slice(t.length-oh):t}),a},[]),updateWalletAction:n.useCallback((e,t,n)=>{f(r=>r.map(r=>{if(r.id!==e||!r.walletActions)return r;const i=r.walletActions.map((e,r)=>r===t?{...e,...n,...n.parameters&&{parameters:{...e.parameters,...n.parameters}}}:e);return{...r,walletActions:i}}))},[]),updateMessageText:n.useCallback((e,t)=>{f(n=>n.map(n=>n.id===e?{...n,text:t}:n))},[]),updateMessageType:n.useCallback((e,t)=>{f(n=>n.map(n=>n.id===e?{...n,typeChat:t}:n))},[]),clearMessages:n.useCallback(()=>{f(a),"pending"!==c&&lh(c,a)},[c,a]),clearMessagesById:n.useCallback(e=>{if(0===e.length)return;const t=new Set(e);f(e=>{const n=e.filter(e=>!t.has(e.id));return n.length>oh?n.slice(n.length-oh):n})},[]),getMessageById:n.useCallback(e=>l.find(t=>t.id===e),[l])}}let dh=null;function hh(e){dh=e}const ph=n.createContext(void 0),mh=()=>{const e=n.useContext(ph);if(!e)throw new Error("useConfig must be used within ConfigProvider");return e},gh=({children:e,initialConfig:n})=>t.jsx(ph.Provider,{value:{config:n||null},children:e}),bh={"0x1":"https://ethereum-rpc.publicnode.com","0xa":"https://mainnet.optimism.io","0x38":"https://bsc-dataseed.binance.org","0x89":'https://polygon-bor-rpc.publicnode.com"',"0x2105":"https://mainnet.base.org","0xa4b1":"https://arb1.arbitrum.io/rpc","0xa86a":"https://avalanche-c-chain-rpc.publicnode.com","0xe708":"https://rpc.linea.build"};function wh(e){return null==e||""===e?null:"string"==typeof e?e.startsWith("0x")?e.toLowerCase():`0x${parseInt(e,10).toString(16)}`:`0x${e.toString(16)}`}function yh(){const{account:e}=nh(),{config:t}=mh(),i=n.useMemo(()=>{const e=Zd().agentConfig,n=function(e){if(!e)return;const t={};for(const[n,r]of Object.entries(e)){const e=wh(n);e&&(t[e]=r)}return Object.keys(t).length>0?t:void 0}(t?.rpcUrls);return new r.AgentCore({secretKey:"i_love_bacoor",storage:g,rpcUrls:bh,...e,llm:{model:"gemini-2.5-flash-lite",...e.llm??{}},...n?{rpcUrls:{...bh,...e.rpcUrls??{},...n}}:{}})},[]);return n.useEffect(()=>{i.setUserContext({walletAddress:e?.address??null,chain:wh(e?.chainId)})},[i,e?.address,e?.chainId]),i}async function vh(e,t,n){try{const r=e.getToolRegistry().get(t);if(!r)return null;const i=e.getUserContext(),o=await r.execute(n,i);return o.success?o.data??null:null}catch{return null}}function Ah(e){return{symbol:e.symbol,name:e.name,balance:e.balance,balanceFormatted:e.balance_formatted,usdValue:e.usd_value,usdPrice:e.usd_price,decimals:e.decimals,logo:e.logo??e.thumbnail??void 0,contractAddress:e.token_address}}async function kh(e,t){const{action:n,chainId:r,parameters:i}=t;try{if("send_native"===n||"wrap_native"===n){const n=await async function(e,t){const n=await vh(e,"get-wallet-token-balances",{chain:t}),r=(n?.tokens??[]).find(e=>!0===e.native_token);return r?Ah(r):void 0}(e,r);if(n){const e=i.spendable;return{...t,tokenInfo:e?{...n,spendableFormatted:e}:n}}}else if("send_token"===n||"approve_token"===n||"unwrap_native"===n){const n=await async function(e,t,n,r){const i=await vh(e,"get-wallet-token-balances",{chain:t}),o=i?.tokens??[],s=n&&o.find(e=>e.token_address.toLowerCase()===n.toLowerCase());if(s)return Ah(s);const a=r&&o.find(e=>e.symbol?.toUpperCase()===r.toUpperCase());return a?Ah(a):void 0}(e,r,i.contract_address,i.token_symbol);if(n)return{...t,tokenInfo:n}}else if("send_nft"===n&&i.contract_address&&i.token_id){const n=await async function(e,t,n,r,i,o){const s=await vh(e,"get-wallet-nfts",{chain:t,limit:100,exclude_spam:!1}),a=(s?.result??[]).find(e=>e.token_address.toLowerCase()===n.toLowerCase()&&e.token_id===r);if(!a){if(!i&&!o)return;return{name:i||`#${r}`,tokenId:r,contractAddress:n,tokenStandard:o}}const c=a.normalized_metadata?.image||a.media?.original_media_url||void 0;return{name:a.normalized_metadata?.name||a.name||i||`#${a.token_id}`,image:c??void 0,tokenId:a.token_id,contractAddress:a.token_address,tokenStandard:a.contract_type||o}}(e,r,i.contract_address,i.token_id,i.nft_name,i.token_standard);if(n){const e={...i};return e.amount||(e.amount="1"),{...t,parameters:e,nftInfo:n}}}}catch{}return t}function xh(e){const t=e.props;return!!t&&"string"==typeof t.action&&"string"==typeof t.chainId&&"string"==typeof t.walletAddress&&!!t.parameters&&"object"==typeof t.parameters}function Ch({agent:e,addMessage:t}){const[r,i]=n.useState(!1),[o,s]=n.useState([]);return{send:n.useCallback(async(n,r)=>{const o=n.trim();if(o){t(o,"user"),i(!0),s([]);try{const n=await e.chat(o,r?{language:r}:void 0),i=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){if(xh(n)){const e=n.props,r="object"==typeof e.parameters&&null!==e.parameters?e.parameters:{};t.push({component:n.component,action:String(e.action),chainId:String(e.chainId),walletAddress:String(e.walletAddress),parameters:{...r},...n.language?{language:n.language}:{},status:"pending"});continue}const e=n.props??{};t.push({component:n.component,action:"",chainId:"string"==typeof e.chainId?e.chainId:"",walletAddress:"string"==typeof e.walletAddress?e.walletAddress:"",parameters:{},componentProps:e,...n.language?{language:n.language}:{},status:"pending"})}return t}(n.uiActions),a=i.length>0?await function(e,t){return Promise.all(t.map(t=>kh(e,t)))}(e,i):i,c=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e)n&&"string"==typeof n.label&&n.label.trim()&&"string"==typeof n.prompt&&n.prompt.trim()&&t.push({label:n.label,prompt:n.prompt,..."string"==typeof n.language&&n.language?{language:n.language}:{}});return t}(n.actionButtons),u=n.answer||"";t(u,"bot",{walletActions:a.length>0?a:void 0,actionButtons:c.length>0?c:void 0}),s(n.suggestedPrompts??[])}catch(a){const e=a instanceof Error?a.message:String(a);t(`⚠️ ${e}`,"bot")}finally{i(!1)}}},[e,t]),isTyping:r,suggestedPrompts:o,setSuggestedPrompts:s}}const Eh=({address:e,chainId:r})=>{const[i,o]=n.useState(!1),{isChainSupported:s}=nh(),{t:a}=h(),c=n.useCallback(()=>{if(!e)return;const t=()=>{o(!0),setTimeout(()=>o(!1),2e3)},n=()=>{const n=document.createElement("input");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),n.remove(),t()};try{navigator.clipboard.writeText(e).then(t).catch(n)}catch{n()}},[e]);if(!Qd(e||""))return null;const u=void 0!==r?Vd[r]:void 0;return t.jsxs("div",{className:"chat-user-info",children:[t.jsxs("span",{className:"user-wallet",children:[t.jsxs("span",{style:{marginRight:8},children:[u?.customName||u?.name||`Chain ${r}`,":"]}),t.jsx("a",{title:a("viewOnExplorer"),style:{pointerEvents:s?"auto":"none"},href:`${u?.blockExplorers?.default?.url??""}/address/${e}`,target:"_blank",rel:"noopener noreferrer",children:Kd(e)||"Not connected"})]}),t.jsx("button",{className:"copy-address-btn",onClick:c,"aria-label":a("copyWalletAddress"),type:"button",title:a(i?"copied":"copyAddress"),children:i?t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:t.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"#0B3988",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 18 18",fill:"none",children:t.jsx("path",{d:"M8.1 15.75H13.23C12.9638 16.4152 12.5041 16.9852 11.9105 17.3863C11.3168 17.7874 10.6165 18.0012 9.9 18H3.6C2.64522 18 1.72955 17.6207 1.05442 16.9456C0.379285 16.2704 0 15.3548 0 14.4V7.2C0.00104929 6.32332 0.321408 5.47704 0.901163 4.81944C1.48092 4.16183 2.28037 3.73792 3.15 3.627V10.8C3.15238 12.1121 3.67466 13.3698 4.60245 14.2975C5.53024 15.2253 6.78791 15.7476 8.1 15.75ZM15.75 3.825H17.658C17.6027 3.74389 17.5393 3.66852 17.469 3.6L14.4 0.531C14.3337 0.460854 14.258 0.400274 14.175 0.351V2.25C14.1769 2.66713 14.3434 3.06664 14.6384 3.3616C14.9334 3.65656 15.3329 3.8231 15.75 3.825ZM15.75 5.175C14.9747 5.17357 14.2315 4.86494 13.6833 4.31671C13.1351 3.76847 12.8264 3.02532 12.825 2.25V0H8.1C7.14522 0 6.22955 0.379285 5.55442 1.05442C4.87928 1.72955 4.5 2.64522 4.5 3.6V10.8C4.5 11.7548 4.87928 12.6704 5.55442 13.3456C6.22955 14.0207 7.14522 14.4 8.1 14.4H14.4C15.3548 14.4 16.2705 14.0207 16.9456 13.3456C17.6207 12.6704 18 11.7548 18 10.8V5.175H15.75Z",fill:"#0B3988"})})})]})};var Sh=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Th=Math.ceil,Mh=Math.floor,Ih="[BigNumber Error] ",Bh=Ih+"Number primitive has more than 15 significant digits: ",Nh=1e14,Rh=14,Fh=9007199254740991,Oh=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Ph=1e7,Lh=1e9;function Dh(e){var t=0|e;return e>0||e===t?t:t-1}function Uh(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=Rh-t.length;n--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function Hh(e,t){var n,r,i=e.c,o=t.c,s=e.s,a=t.s,c=e.e,u=t.e;if(!s||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:s;if(s!=a)return s;if(n=s<0,r=c==u,!i||!o)return r?0:!i^n?1:-1;if(!r)return c>u^n?1:-1;for(a=(c=i.length)<(u=o.length)?c:u,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return c==u?0:c>u^n?1:-1}function zh(e,t,n,r){if(e<t||e>n||e!==Mh(e))throw Error(Ih+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function jh(e){var t=e.c.length-1;return Dh(e.e/Rh)==t&&e.c[t]%2!=0}function Vh(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function qh(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var Jh=function e(t){var n,r,i,o,s,a=A.prototype={constructor:A,toString:null,valueOf:null},c=new A(1),u=20,l=4,f=-7,d=21,h=-1e7,p=1e7,m=!1,g=1,b=0,w={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},y="0123456789abcdefghijklmnopqrstuvwxyz",v=!0;function A(e,t){var n,o,s,a,c,f,d,m,g=this;if(!(g instanceof A))return new A(e,t);if(null==t){if(e&&!0===e.Ne)return g.s=e.s,void(!e.c||e.e>p?g.c=g.e=null:e.e<h?g.c=[g.e=0]:(g.e=e.e,g.c=e.c.slice()));if((f="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(a=0,c=e;c>=10;c/=10,a++);return void(a>p?g.c=g.e=null:(g.e=a,g.c=[e]))}m=String(e)}else{if(!Sh.test(m=String(e)))return i(g,m,f);g.s=45==m.charCodeAt(0)?(m=m.slice(1),-1):1}(a=m.indexOf("."))>-1&&(m=m.replace(".","")),(c=m.search(/e/i))>0?(a<0&&(a=c),a+=+m.slice(c+1),m=m.substring(0,c)):a<0&&(a=m.length)}else{if(zh(t,2,y.length,"Base"),10==t&&v)return E(g=new A(e),u+g.e+1,l);if(m=String(e),f="number"==typeof e){if(0*e!=0)return i(g,m,f,t);if(g.s=1/e<0?(m=m.slice(1),-1):1,A.DEBUG&&m.replace(/^0\.0*|\./,"").length>15)throw Error(Bh+e)}else g.s=45===m.charCodeAt(0)?(m=m.slice(1),-1):1;for(n=y.slice(0,t),a=c=0,d=m.length;c<d;c++)if(n.indexOf(o=m.charAt(c))<0){if("."==o){if(c>a){a=d;continue}}else if(!s&&(m==m.toUpperCase()&&(m=m.toLowerCase())||m==m.toLowerCase()&&(m=m.toUpperCase()))){s=!0,c=-1,a=0;continue}return i(g,String(e),f,t)}f=!1,(a=(m=r(m,t,10,g.s)).indexOf("."))>-1?m=m.replace(".",""):a=m.length}for(c=0;48===m.charCodeAt(c);c++);for(d=m.length;48===m.charCodeAt(--d););if(m=m.slice(c,++d)){if(d-=c,f&&A.DEBUG&&d>15&&(e>Fh||e!==Mh(e)))throw Error(Bh+g.s*e);if((a=a-c-1)>p)g.c=g.e=null;else if(a<h)g.c=[g.e=0];else{if(g.e=a,g.c=[],c=(a+1)%Rh,a<0&&(c+=Rh),c<d){for(c&&g.c.push(+m.slice(0,c)),d-=Rh;c<d;)g.c.push(+m.slice(c,c+=Rh));c=Rh-(m=m.slice(c)).length}else c-=d;for(;c--;m+="0");g.c.push(+m)}}else g.c=[g.e=0]}function k(e,t,n,r){var i,o,s,a,c;if(null==n?n=l:zh(n,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)c=Uh(e.c),c=1==r||2==r&&(s<=f||s>=d)?Vh(c,s):qh(c,s,"0");else if(o=(e=E(new A(e),t,n)).e,a=(c=Uh(e.c)).length,1==r||2==r&&(t<=o||o<=f)){for(;a<t;c+="0",a++);c=Vh(c,o)}else if(t-=s+(2===r&&o>s),c=qh(c,o,"0"),o+1>a){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-a)>0)for(o+1==a&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function x(e,t){for(var n,r,i=1,o=new A(e[0]);i<e.length;i++)(!(r=new A(e[i])).s||(n=Hh(o,r))===t||0===n&&o.s===t)&&(o=r);return o}function C(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*Rh-1)>p?e.c=e.e=null:n<h?e.c=[e.e=0]:(e.e=n,e.c=t),e}function E(e,t,n,r){var i,o,s,a,c,u,l,f=e.c,d=Oh;if(f){e:{for(i=1,a=f[0];a>=10;a/=10,i++);if((o=t-i)<0)o+=Rh,s=t,c=f[u=0],l=Mh(c/d[i-s-1]%10);else if((u=Th((o+1)/Rh))>=f.length){if(!r)break e;for(;f.length<=u;f.push(0));c=l=0,i=1,s=(o%=Rh)-Rh+1}else{for(c=a=f[u],i=1;a>=10;a/=10,i++);l=(s=(o%=Rh)-Rh+i)<0?0:Mh(c/d[i-s-1]%10)}if(r=r||t<0||null!=f[u+1]||(s<0?c:c%d[i-s-1]),r=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(o>0?s>0?c/d[i-s]:0:f[u-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,r?(t-=e.e+1,f[0]=d[(Rh-t%Rh)%Rh],e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=u,a=1,u--):(f.length=u+1,a=d[Rh-o],f[u]=s>0?Mh(c/d[i-s]%d[s])*a:0),r)for(;;){if(0==u){for(o=1,s=f[0];s>=10;s/=10,o++);for(s=f[0]+=a,a=1;s>=10;s/=10,a++);o!=a&&(e.e++,f[0]==Nh&&(f[0]=1));break}if(f[u]+=a,f[u]!=Nh)break;f[u--]=0,a=1}for(o=f.length;0===f[--o];f.pop());}e.e>p?e.c=e.e=null:e.e<h&&(e.c=[e.e=0])}return e}function S(e){var t,n=e.e;return null===n?e.toString():(t=Uh(e.c),t=n<=f||n>=d?Vh(t,n):qh(t,n,"0"),e.s<0?"-"+t:t)}return A.clone=e,A.ROUND_UP=0,A.ROUND_DOWN=1,A.ROUND_CEIL=2,A.ROUND_FLOOR=3,A.ROUND_HALF_UP=4,A.ROUND_HALF_DOWN=5,A.ROUND_HALF_EVEN=6,A.ROUND_HALF_CEIL=7,A.ROUND_HALF_FLOOR=8,A.EUCLID=9,A.config=A.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(Ih+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(zh(n=e[t],0,Lh,t),u=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(zh(n=e[t],0,8,t),l=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(zh(n[0],-Lh,0,t),zh(n[1],0,Lh,t),f=n[0],d=n[1]):(zh(n,-Lh,Lh,t),f=-(d=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)zh(n[0],-Lh,-1,t),zh(n[1],1,Lh,t),h=n[0],p=n[1];else{if(zh(n,-Lh,Lh,t),!n)throw Error(Ih+t+" cannot be zero: "+n);h=-(p=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(Ih+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw m=!n,Error(Ih+"crypto unavailable");m=n}else m=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(zh(n=e[t],0,9,t),g=n),e.hasOwnProperty(t="POW_PRECISION")&&(zh(n=e[t],0,Lh,t),b=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(Ih+t+" not an object: "+n);w=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(Ih+t+" invalid: "+n);v="0123456789"==n.slice(0,10),y=n}}return{DECIMAL_PLACES:u,ROUNDING_MODE:l,EXPONENTIAL_AT:[f,d],RANGE:[h,p],CRYPTO:m,MODULO_MODE:g,POW_PRECISION:b,FORMAT:w,ALPHABET:y}},A.isBigNumber=function(e){if(!e||!0!==e.Ne)return!1;if(!A.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-Lh&&i<=Lh&&i===Mh(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%Rh)<1&&(t+=Rh),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=Nh||n!==Mh(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(Ih+"Invalid BigNumber: "+e)},A.maximum=A.max=function(){return x(arguments,-1)},A.minimum=A.min=function(){return x(arguments,1)},A.random=(o=9007199254740992,s=Math.random()*o&2097151?function(){return Mh(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,o,a=0,l=[],f=new A(c);if(null==e?e=u:zh(e,0,Lh),i=Th(e/Rh),m)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));a<i;)(o=131072*t[a]+(t[a+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[a]=n[0],t[a+1]=n[1]):(l.push(o%1e14),a+=2);a=i/2}else{if(!crypto.randomBytes)throw m=!1,Error(Ih+"crypto unavailable");for(t=crypto.randomBytes(i*=7);a<i;)(o=281474976710656*(31&t[a])+1099511627776*t[a+1]+4294967296*t[a+2]+16777216*t[a+3]+(t[a+4]<<16)+(t[a+5]<<8)+t[a+6])>=9e15?crypto.randomBytes(7).copy(t,a):(l.push(o%1e14),a+=7);a=i/7}if(!m)for(;a<i;)(o=s())<9e15&&(l[a++]=o%1e14);for(i=l[--a],e%=Rh,i&&e&&(o=Oh[Rh-e],l[a]=Mh(i/o)*o);0===l[a];l.pop(),a--);if(a<0)l=[r=0];else{for(r=-1;0===l[0];l.splice(0,1),r-=Rh);for(a=1,o=l[0];o>=10;o/=10,a++);a<Rh&&(r-=Rh-a)}return f.e=r,f.c=l,f}),A.sum=function(){for(var e=1,t=arguments,n=new A(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){var e="0123456789";function t(e,t,n,r){for(var i,o,s=[0],a=0,c=e.length;a<c;){for(o=s.length;o--;s[o]*=t);for(s[0]+=r.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,a){var c,f,d,h,p,m,g,w,v=r.indexOf("."),k=u,x=l;for(v>=0&&(h=b,b=0,r=r.replace(".",""),m=(w=new A(i)).pow(r.length-v),b=h,w.c=t(qh(Uh(m.c),m.e,"0"),10,o,e),w.e=w.c.length),d=h=(g=t(r,i,o,a?(c=y,e):(c=e,y))).length;0==g[--h];g.pop());if(!g[0])return c.charAt(0);if(v<0?--d:(m.c=g,m.e=d,m.s=s,g=(m=n(m,w,k,x,o)).c,p=m.r,d=m.e),v=g[f=d+k+1],h=o/2,p=p||f<0||null!=g[f+1],p=x<4?(null!=v||p)&&(0==x||x==(m.s<0?3:2)):v>h||v==h&&(4==x||p||6==x&&1&g[f-1]||x==(m.s<0?8:7)),f<1||!g[0])r=p?qh(c.charAt(1),-k,c.charAt(0)):c.charAt(0);else{if(g.length=f,p)for(--o;++g[--f]>o;)g[f]=0,f||(++d,g=[1].concat(g));for(h=g.length;!g[--h];);for(v=0,r="";v<=h;r+=c.charAt(g[v++]));r=qh(r,d,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,o,s,a=0,c=e.length,u=t%Ph,l=t/Ph|0;for(e=e.slice();c--;)a=((i=u*(o=e[c]%Ph)+(r=l*o+(s=e[c]/Ph|0)*u)%Ph*Ph+a)/n|0)+(r/Ph|0)+l*s,e[c]=i%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,o,s,a){var c,u,l,f,d,h,p,m,g,b,w,y,v,k,x,C,S,T=r.s==i.s?1:-1,M=r.c,I=i.c;if(!(M&&M[0]&&I&&I[0]))return new A(r.s&&i.s&&(M?!I||M[0]!=I[0]:I)?M&&0==M[0]||!I?0*T:T/0:NaN);for(g=(m=new A(T)).c=[],T=o+(u=r.e-i.e)+1,a||(a=Nh,u=Dh(r.e/Rh)-Dh(i.e/Rh),T=T/Rh|0),l=0;I[l]==(M[l]||0);l++);if(I[l]>(M[l]||0)&&u--,T<0)g.push(1),f=!0;else{for(k=M.length,C=I.length,l=0,T+=2,(d=Mh(a/(I[0]+1)))>1&&(I=e(I,d,a),M=e(M,d,a),C=I.length,k=M.length),v=C,w=(b=M.slice(0,C)).length;w<C;b[w++]=0);S=I.slice(),S=[0].concat(S),x=I[0],I[1]>=a/2&&x++;do{if(d=0,(c=t(I,b,C,w))<0){if(y=b[0],C!=w&&(y=y*a+(b[1]||0)),(d=Mh(y/x))>1)for(d>=a&&(d=a-1),p=(h=e(I,d,a)).length,w=b.length;1==t(h,b,p,w);)d--,n(h,C<p?S:I,p,a),p=h.length,c=1;else 0==d&&(c=d=1),p=(h=I.slice()).length;if(p<w&&(h=[0].concat(h)),n(b,h,w,a),w=b.length,-1==c)for(;t(I,b,C,w)<1;)d++,n(b,C<w?S:I,w,a),w=b.length}else 0===c&&(d++,b=[0]);g[l++]=d,b[0]?b[w++]=M[v]||0:(b=[M[v]],w=1)}while((v++<k||null!=b[0])&&T--);f=null!=b[0],g[0]||g.splice(0,1)}if(a==Nh){for(l=1,T=g[0];T>=10;T/=10,l++);E(m,o+(m.e=l+u*Rh-1)+1,s,f)}else m.e=u,m.r=+f;return m}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,s,a,c){var u,l=a?s:s.replace(i,"");if(r.test(l))o.s=isNaN(l)?null:l<0?-1:1;else{if(!a&&(l=l.replace(e,function(e,t,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,c&&c!=u?e:t}),c&&(u=c,l=l.replace(t,"$1").replace(n,"0.$1")),s!=l))return new A(l,u);if(A.DEBUG)throw Error(Ih+"Not a"+(c?" base "+c:"")+" number: "+s);o.s=null}o.c=o.e=null}}(),a.absoluteValue=a.abs=function(){var e=new A(this);return e.s<0&&(e.s=1),e},a.comparedTo=function(e,t){return Hh(this,new A(e,t))},a.decimalPlaces=a.dp=function(e,t){var n,r,i,o=this;if(null!=e)return zh(e,0,Lh),null==t?t=l:zh(t,0,8),E(new A(o),e+o.e+1,t);if(!(n=o.c))return null;if(r=((i=n.length-1)-Dh(this.e/Rh))*Rh,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},a.dividedBy=a.div=function(e,t){return n(this,new A(e,t),u,l)},a.dividedToIntegerBy=a.idiv=function(e,t){return n(this,new A(e,t),0,1)},a.exponentiatedBy=a.pow=function(e,t){var n,r,i,o,s,a,u,f,d=this;if((e=new A(e)).c&&!e.isInteger())throw Error(Ih+"Exponent not an integer: "+S(e));if(null!=t&&(t=new A(t)),s=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return f=new A(Math.pow(+S(d),s?e.s*(2-jh(e)):+S(e))),t?f.mod(t):f;if(a=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new A(NaN);(r=!a&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||s&&d.c[1]>=24e7:d.c[0]<8e13||s&&d.c[0]<=9999975e7)))return o=d.s<0&&jh(e)?-0:0,d.e>-1&&(o=1/o),new A(a?1/o:o);b&&(o=Th(b/Rh+2))}for(s?(n=new A(.5),a&&(e.s=1),u=jh(e)):u=(i=Math.abs(+S(e)))%2,f=new A(c);;){if(u){if(!(f=f.times(d)).c)break;o?f.c.length>o&&(f.c.length=o):r&&(f=f.mod(t))}if(i){if(0===(i=Mh(i/2)))break;u=i%2}else if(E(e=e.times(n),e.e+1,1),e.e>14)u=jh(e);else{if(0===(i=+S(e)))break;u=i%2}d=d.times(d),o?d.c&&d.c.length>o&&(d.c.length=o):r&&(d=d.mod(t))}return r?f:(a&&(f=c.div(f)),t?f.mod(t):o?E(f,b,l,void 0):f)},a.integerValue=function(e){var t=new A(this);return null==e?e=l:zh(e,0,8),E(t,t.e+1,e)},a.isEqualTo=a.eq=function(e,t){return 0===Hh(this,new A(e,t))},a.isFinite=function(){return!!this.c},a.isGreaterThan=a.gt=function(e,t){return Hh(this,new A(e,t))>0},a.isGreaterThanOrEqualTo=a.gte=function(e,t){return 1===(t=Hh(this,new A(e,t)))||0===t},a.isInteger=function(){return!!this.c&&Dh(this.e/Rh)>this.c.length-2},a.isLessThan=a.lt=function(e,t){return Hh(this,new A(e,t))<0},a.isLessThanOrEqualTo=a.lte=function(e,t){return-1===(t=Hh(this,new A(e,t)))||0===t},a.isNaN=function(){return!this.s},a.isNegative=function(){return this.s<0},a.isPositive=function(){return this.s>0},a.isZero=function(){return!!this.c&&0==this.c[0]},a.minus=function(e,t){var n,r,i,o,s=this,a=s.s;if(t=(e=new A(e,t)).s,!a||!t)return new A(NaN);if(a!=t)return e.s=-t,s.plus(e);var c=s.e/Rh,u=e.e/Rh,f=s.c,d=e.c;if(!c||!u){if(!f||!d)return f?(e.s=-t,e):new A(d?s:NaN);if(!f[0]||!d[0])return d[0]?(e.s=-t,e):new A(f[0]?s:3==l?-0:0)}if(c=Dh(c),u=Dh(u),f=f.slice(),a=c-u){for((o=a<0)?(a=-a,i=f):(u=c,i=d),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=f.length)<(t=d.length))?a:t,a=t=0;t<r;t++)if(f[t]!=d[t]){o=f[t]<d[t];break}if(o&&(i=f,f=d,d=i,e.s=-e.s),(t=(r=d.length)-(n=f.length))>0)for(;t--;f[n++]=0);for(t=Nh-1;r>a;){if(f[--r]<d[r]){for(n=r;n&&!f[--n];f[n]=t);--f[n],f[r]+=Nh}f[r]-=d[r]}for(;0==f[0];f.splice(0,1),--u);return f[0]?C(e,f,u):(e.s=3==l?-1:1,e.c=[e.e=0],e)},a.modulo=a.mod=function(e,t){var r,i,o=this;return e=new A(e,t),!o.c||!e.s||e.c&&!e.c[0]?new A(NaN):!e.c||o.c&&!o.c[0]?new A(o):(9==g?(i=e.s,e.s=1,r=n(o,e,0,3),e.s=i,r.s*=i):r=n(o,e,0,g),(e=o.minus(r.times(e))).c[0]||1!=g||(e.s=o.s),e)},a.multipliedBy=a.times=function(e,t){var n,r,i,o,s,a,c,u,l,f,d,h,p,m,g,b=this,w=b.c,y=(e=new A(e,t)).c;if(!(w&&y&&w[0]&&y[0]))return!b.s||!e.s||w&&!w[0]&&!y||y&&!y[0]&&!w?e.c=e.e=e.s=null:(e.s*=b.s,w&&y?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=Dh(b.e/Rh)+Dh(e.e/Rh),e.s*=b.s,(c=w.length)<(f=y.length)&&(p=w,w=y,y=p,i=c,c=f,f=i),i=c+f,p=[];i--;p.push(0));for(m=Nh,g=Ph,i=f;--i>=0;){for(n=0,d=y[i]%g,h=y[i]/g|0,o=i+(s=c);o>i;)n=((u=d*(u=w[--s]%g)+(a=h*u+(l=w[s]/g|0)*d)%g*g+p[o]+n)/m|0)+(a/g|0)+h*l,p[o--]=u%m;p[o]=n}return n?++r:p.splice(0,1),C(e,p,r)},a.negated=function(){var e=new A(this);return e.s=-e.s||null,e},a.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new A(e,t)).s,!i||!t)return new A(NaN);if(i!=t)return e.s=-t,r.minus(e);var o=r.e/Rh,s=e.e/Rh,a=r.c,c=e.c;if(!o||!s){if(!a||!c)return new A(i/0);if(!a[0]||!c[0])return c[0]?e:new A(a[0]?r:0*i)}if(o=Dh(o),s=Dh(s),a=a.slice(),i=o-s){for(i>0?(s=o,n=c):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(t=c.length)<0&&(n=c,c=a,a=n,t=i),i=0;t;)i=(a[--t]=a[t]+c[t]+i)/Nh|0,a[t]=Nh===a[t]?0:a[t]%Nh;return i&&(a=[i].concat(a),++s),C(e,a,s)},a.precision=a.sd=function(e,t){var n,r,i,o=this;if(null!=e&&e!==!!e)return zh(e,1,Lh),null==t?t=l:zh(t,0,8),E(new A(o),e,t);if(!(n=o.c))return null;if(r=(i=n.length-1)*Rh+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},a.shiftedBy=function(e){return zh(e,-9007199254740991,Fh),this.times("1e"+e)},a.squareRoot=a.sqrt=function(){var e,t,r,i,o,s=this,a=s.c,c=s.s,f=s.e,d=u+4,h=new A("0.5");if(1!==c||!a||!a[0])return new A(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(c=Math.sqrt(+S(s)))||c==1/0?(((t=Uh(a)).length+f)%2==0&&(t+="0"),c=Math.sqrt(+t),f=Dh((f+1)/2)-(f<0||f%2),r=new A(t=c==1/0?"5e"+f:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+f)):r=new A(c+""),r.c[0])for((c=(f=r.e)+d)<3&&(c=0);;)if(o=r,r=h.times(o.plus(n(s,o,d,1))),Uh(o.c).slice(0,c)===(t=Uh(r.c)).slice(0,c)){if(r.e<f&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(E(r,r.e+u+2,1),e=!r.times(r).eq(s));break}if(!i&&(E(o,o.e+u+2,0),o.times(o).eq(s))){r=o;break}d+=4,c+=4,i=1}return E(r,r.e+u+1,l,e)},a.toExponential=function(e,t){return null!=e&&(zh(e,0,Lh),e++),k(this,e,t,1)},a.toFixed=function(e,t){return null!=e&&(zh(e,0,Lh),e=e+this.e+1),k(this,e,t)},a.toFormat=function(e,t,n){var r,i=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=w;else if("object"!=typeof n)throw Error(Ih+"Argument not an object: "+n);if(r=i.toFixed(e,t),i.c){var o,s=r.split("."),a=+n.groupSize,c=+n.secondaryGroupSize,u=n.groupSeparator||"",l=s[0],f=s[1],d=i.s<0,h=d?l.slice(1):l,p=h.length;if(c&&(o=a,a=c,c=o,p-=o),a>0&&p>0){for(o=p%a||a,l=h.substr(0,o);o<p;o+=a)l+=u+h.substr(o,a);c>0&&(l+=u+h.slice(o)),d&&(l="-"+l)}r=f?l+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):l}return(n.prefix||"")+r+(n.suffix||"")},a.toFraction=function(e){var t,r,i,o,s,a,u,f,d,h,m,g,b=this,w=b.c;if(null!=e&&(!(u=new A(e)).isInteger()&&(u.c||1!==u.s)||u.lt(c)))throw Error(Ih+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+S(u));if(!w)return new A(b);for(t=new A(c),d=r=new A(c),i=f=new A(c),g=Uh(w),s=t.e=g.length-b.e-1,t.c[0]=Oh[(a=s%Rh)<0?Rh+a:a],e=!e||u.comparedTo(t)>0?s>0?t:d:u,a=p,p=1/0,u=new A(g),f.c[0]=0;h=n(u,t,0,1),1!=(o=r.plus(h.times(i))).comparedTo(e);)r=i,i=o,d=f.plus(h.times(o=d)),f=o,t=u.minus(h.times(o=t)),u=o;return o=n(e.minus(r),i,0,1),f=f.plus(o.times(d)),r=r.plus(o.times(i)),f.s=d.s=b.s,m=n(d,i,s*=2,l).minus(b).abs().comparedTo(n(f,r,s,l).minus(b).abs())<1?[d,i]:[f,r],p=a,m},a.toNumber=function(){return+S(this)},a.toPrecision=function(e,t){return null!=e&&zh(e,1,Lh),k(this,e,t,2)},a.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=f||o>=d?Vh(Uh(n.c),o):qh(Uh(n.c),o,"0"):10===e&&v?t=qh(Uh((n=E(new A(n),u+o+1,l)).c),n.e,"0"):(zh(e,2,y.length,"Base"),t=r(qh(Uh(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},a.valueOf=a.toJSON=function(){return S(this)},a.Ne=!0,a[Symbol.toStringTag]="BigNumber",a[Symbol.for("nodejs.util.inspect.custom")]=a.valueOf,null!=t&&A.set(t),A}();const Gh=["send_native","send_token","swap_token"],Wh=({action:e,initialValues:r,onSubmit:i,onCancel:o,isSubmitting:s=!1,tokenInfo:a,nftInfo:c,disabled:u=!1,language:l})=>{const{t:f,ti:d}=p(l),h=$d[e],[m,g]=n.useState(()=>{if(!h)return{};const e={};for(const t of h.fields)e[t.key]=r[t.key]||"";return e}),[b]=n.useState(()=>Gh.includes(e)&&!a&&m.contract_address?f("formTokenNotFound"):null),w=a?.spendableFormatted??a?.balanceFormatted,y=void 0!==a?.spendableFormatted&&void 0!==a.usdPrice?Jh(a.spendableFormatted).multipliedBy(a.usdPrice).toNumber():a?.usdValue,[v,A]=n.useState(()=>{const t={};if(!Gh.includes(e)||!a)return t;const n=parseFloat(w||"0");if(n<=0)return t.amount=d("formNoBalance",{symbol:a.symbol??""}),t;const i=r.amount?.trim();if(i&&eh(i)){parseFloat(i)>n&&(t.amount=d("formInsufficientBalance",{balance:w??"",symbol:a.symbol??""}))}return t}),k=n.useCallback((e,t)=>{g(n=>({...n,[e]:t})),v[e]&&A(t=>{const n={...t};return delete n[e],n})},[v]),x=n.useCallback(()=>{if(!h)return!1;const t={};for(const n of h.fields){const r=m[n.key]?.trim()||"",i="send_nft"===e&&"amount"===n.key;!n.required||r||i?r&&("address"!==n.validation||_d(r)||(t[n.key]=f("formInvalidAddress")),"amount"!==n.validation||eh(r)||(t[n.key]=f("formMustBePositive")),"amount"===n.key&&eh(r)&&w&&parseFloat(r)>parseFloat(w)&&(t[n.key]=d("formInsufficientBalance",{balance:w,symbol:a?.symbol??""})),"positive_number"===n.validation&&(isNaN(Number(r))||Number(r)<0)&&(t[n.key]=f("formMustBeValidNumber"))):t[n.key]=d("formFieldRequired",{field:f(n.label)})}if("send_nft"===e&&"ERC1155"===m.token_standard?.toUpperCase()){const e=m.amount?.trim();if(e)if(!/^\d+$/.test(e)||parseInt(e,10)<1)t.amount=f("formMustBePositiveInteger");else{const n=parseInt(r.maxAmount||"0",10);n>0&&parseInt(e,10)>n&&(t.amount=d("formAmountExceedsNft",{max:String(n)}))}else t.amount=d("formFieldRequired",{field:f("fieldAmount")})}return A(t),0===Object.keys(t).length},[h,m,a,w,e,r,f,d]),C=n.useCallback(()=>{x()&&i(e,m)},[x,i,e,m]);return h?t.jsxs("div",{className:"action-form",children:[t.jsx("div",{className:"action-form-title",children:t.jsx("span",{children:f(h.label)})}),b&&t.jsxs("div",{className:"action-form-general-error",children:["⚠️ ",b]}),a&&t.jsx("div",{className:"action-form-token-info",children:t.jsxs("div",{className:"token-info-row",children:[a.logo&&t.jsx("img",{src:a.logo,alt:a.symbol,className:"token-info-logo",width:20,height:20}),t.jsxs("div",{className:"token-info-details",children:[t.jsxs("span",{className:"token-info-name",children:[a.name," (",a.symbol,")"]}),t.jsxs("span",{className:"token-info-balance",children:[f("spendable"),": ",Jh(a.spendableFormatted??a.balanceFormatted).decimalPlaces(8,Jh.ROUND_DOWN).toFormat()," ",a.symbol,void 0!==y&&t.jsxs("span",{className:"token-info-usd",children:[" ","≈ $",y.toFixed(2)]})]})]})]})}),c?.image&&t.jsx("div",{className:"action-form-nft-info",children:t.jsx("img",{src:c.image,alt:c.name,className:"nft-info-image",onError:e=>{e.target.style.display="none"}})}),t.jsx("div",{className:"action-form-fields",children:h.fields.map(n=>{if(n.hidden)return null;if("amount"===n.key&&"send_nft"===e&&"ERC1155"!==m.token_standard?.toUpperCase())return null;if("decimals"===n.key&&"send_token"===e&&r.decimals)return null;const i=!1===n.editable&&!!r[n.key]||u,o=s||i,l=[v[n.key]?"error":"",i?"readonly":""].filter(Boolean).join(" ");return t.jsxs("div",{className:"action-form-field",children:[t.jsxs("div",{className:"action-form-field-header",children:[t.jsxs("div",{className:"action-form-field-label",children:[f(n.label),n.required&&" *"]}),"amount"===n.key&&a&&"send_nft"!==e&&t.jsxs("div",{className:"action-form-pct-btns",children:[[25,50,75].map(e=>t.jsxs("button",{type:"button",className:"action-form-pct-btn",onClick:()=>k("amount",Jh(w??a.balanceFormatted).multipliedBy(e).dividedBy(100).decimalPlaces(a.decimals,Jh.ROUND_DOWN).toFixed()),disabled:s||u,children:[e,"%"]},e)),t.jsx("button",{type:"button",className:"action-form-pct-btn action-form-max-btn",onClick:()=>k("amount",w??a.balanceFormatted),disabled:s||u,children:f("formMax")})]}),"amount"===n.key&&"send_nft"===e&&c&&t.jsx("div",{className:"action-form-pct-btns",children:t.jsx("button",{type:"button",className:"action-form-pct-btn action-form-max-btn",onClick:()=>k("amount",r.maxAmount||""),disabled:s||u,children:f("formMax")})})]}),"address"===n.type?t.jsx("textarea",{rows:2,placeholder:n.placeholder,value:m[n.key]||"",onChange:e=>k(n.key,e.target.value),className:l,disabled:o||u}):t.jsx("input",{type:"number"===n.type?"number":"text",placeholder:n.placeholder,value:m[n.key]||"",onChange:e=>k(n.key,e.target.value),className:l,disabled:o||u}),v[n.key]&&t.jsx("span",{className:"field-error",children:v[n.key]})]},n.key)})}),!u&&t.jsxs("div",{className:"action-form-actions",children:[t.jsx("button",{className:"message-button",onClick:o,type:"button",disabled:s,children:f("formCancel")}),t.jsx("button",{className:"message-button",onClick:C,type:"button",disabled:s,children:f(s?"formProcessing":"formExecute")})]})]}):null};function Kh({status:e,inFlight:n,chainId:r,transactionHash:i,errorMessage:o,successKey:s="txSuccessful",language:a}){const{t:c}=p(a);if(n)return t.jsx("div",{className:"action-status action-status-submitted",children:c("txProcessing")});if("success"===e){const e=function(e,t){if(void 0===e||!t)return;const n="number"==typeof e?e:e.startsWith("0x")?parseInt(e,16):parseInt(e,10),r=Vd[n]?.blockExplorers?.default?.url;return r?`${r}/tx/${t}`:void 0}(r,i);return t.jsxs("div",{className:"action-status action-status-success",children:[c(s),e&&t.jsxs(t.Fragment,{children:[" ",t.jsx("a",{className:"action-status-link",href:e,target:"_blank",rel:"noopener noreferrer",children:c("viewOnExplorer")})]})]})}return"fail"===e?t.jsx("div",{className:"action-status action-status-fail",children:o||c("actionFail")}):null}function Yh(e){if(!e)return"";try{return new Jh(e).decimalPlaces(8,Jh.ROUND_DOWN).toFormat()}catch{return e}}function Xh(e){return{from:e.from,to:e.to,data:e.data,value:e.value??"0",chainId:e.chainId}}function Qh({walletAction:e,onConfirm:r,onApprove:i,isSubmitting:o}){const{t:s,ti:a}=p(e.language),c=e.componentProps??{},u=!!e.approveDone,[l,f]=n.useState(!1),d=c.payToken,h=c.buyToken,m=c.swapTx,g=c.approveTx,b=!!g&&!u,w=d?.symbol??"",y=h?.symbol??"",v=Yh(d?.amount),A=Yh(c.estimatedOut??h?.amount),k=e.status,x="success"===k,C="submitted"===k||l||!!o,E=b?async()=>{if(g){f(!0);try{await i(Xh(g))}finally{f(!1)}}}:async()=>{if(m){f(!0);try{await r(Xh(m))}finally{f(!1)}}},S=b?a("swapApproveButton",{symbol:w}):s("confirmSwapButton"),T=b?a("swapNeedApprove",{symbol:w}):g?`${a("approvalSuccess",{symbol:w})} ${s("approvalConfirmSwap")}`:s("swapReadyToProceed");return t.jsxs("div",{className:"buy-token-confirm",children:[t.jsxs("div",{className:"buy-token-confirm__row",children:[t.jsx("span",{className:"buy-token-confirm__label",children:"From:"}),t.jsxs("span",{children:[v," ",w]})]}),t.jsx("div",{className:"buy-token-confirm__arrow",children:"↓"}),t.jsxs("div",{className:"buy-token-confirm__row",children:[t.jsx("span",{className:"buy-token-confirm__label",children:"To:"}),t.jsxs("span",{children:[A," ",y]})]}),!x&&t.jsx("div",{className:"buy-token-confirm__prompt",children:T}),!x&&!C&&t.jsx("div",{className:"action-form-actions",children:t.jsx("button",{type:"button",className:"message-button",onClick:()=>{E()},disabled:!m,children:S})}),t.jsx(Kh,{status:k,inFlight:C,chainId:e.chainId,transactionHash:e.transactionHash,successKey:"txSuccessfulSwap"})]})}function Zh(e){if(!e)return"";try{return new Jh(e).decimalPlaces(8,Jh.ROUND_DOWN).toFormat()}catch{return e}}function $h(e){return{from:e.from,to:e.to,data:e.data,value:e.value??"0",chainId:e.chainId}}function _h({walletAction:e,onConfirm:r,onApprove:i,isSubmitting:o}){const{t:s,ti:a}=p(e.language),c=e.componentProps??{},u=!!e.approveDone,[l,f]=n.useState(!1),d=c.fromToken,h=c.toToken,m=c.swapTx,g=c.approveTx,b=!!g&&!u,w=d?.symbol??"",y=h?.symbol??"",v=Zh(d?.amount),A=Zh(c.estimatedOut??h?.amount),k=e.status,x="success"===k,C="submitted"===k||l||!!o,E=b?async()=>{if(g){f(!0);try{await i($h(g))}finally{f(!1)}}}:async()=>{if(m){f(!0);try{await r($h(m))}finally{f(!1)}}},S=b?a("swapApproveButton",{symbol:w}):s("confirmSwapButton"),T=b?a("swapNeedApprove",{symbol:w}):g?`${a("approvalSuccess",{symbol:w})} ${s("approvalConfirmSwap")}`:s("swapReadyToProceed");return t.jsxs("div",{className:"swap-token-confirm",children:[t.jsxs("div",{className:"swap-token-confirm__row",children:[t.jsx("span",{className:"swap-token-confirm__label",children:"From:"}),t.jsxs("span",{children:[v," ",w]})]}),t.jsx("div",{className:"swap-token-confirm__arrow",children:"↓"}),t.jsxs("div",{className:"swap-token-confirm__row",children:[t.jsx("span",{className:"swap-token-confirm__label",children:"To:"}),t.jsxs("span",{children:[A," ",y]})]}),!x&&t.jsx("div",{className:"swap-token-confirm__prompt",children:T}),!x&&!C&&t.jsx("div",{className:"action-form-actions",children:t.jsx("button",{type:"button",className:"message-button",onClick:()=>{E()},disabled:!m,children:S})}),t.jsx(Kh,{status:k,inFlight:C,chainId:e.chainId,transactionHash:e.transactionHash,successKey:"txSuccessfulSwap"})]})}function ep({walletAction:e,isSubmitting:n,onSubmit:r,onCancel:i}){const o=e.status;return t.jsxs(t.Fragment,{children:[("pending"===o||"submitted"===o||"success"===o)&&t.jsx(Wh,{disabled:"success"===o||"submitted"===o,action:e.action,initialValues:e.parameters,onSubmit:(e,t)=>r(t),onCancel:i,isSubmitting:n,tokenInfo:e.tokenInfo,nftInfo:e.nftInfo,language:e.language}),t.jsx(Kh,{status:o,inFlight:"submitted"===o,chainId:e.chainId,transactionHash:e.transactionHash,errorMessage:e.errorMessage,language:e.language})]})}function tp({walletAction:e,isSubmitting:n,onSubmit:r,onCancel:i,onConfirm:o,onApprove:s}){switch(e.component){case"BuyTokenConfirmTx":return t.jsx(Qh,{walletAction:e,isSubmitting:n,onConfirm:o,onApprove:s});case"SwapTokenConfirmTx":return t.jsx(_h,{walletAction:e,isSubmitting:n,onConfirm:o,onApprove:s})}return e.action?t.jsx(ep,{walletAction:e,isSubmitting:n,onSubmit:r,onCancel:i}):null}const np=({onClose:e,isShowIcon:n,chatTitle:r,chatIcon:i})=>{const{t:o}=h(),{account:s}=nh(),{modal:a}=Zd();return t.jsxs("div",{className:"chat-modal-header",children:[t.jsxs("div",{className:"chat-modal-header-title",children:[t.jsxs("div",{className:"chat-modal-header-left",children:[n&&t.jsx("div",{className:"keyring-logo",children:t.jsx("img",{src:i||a?.icon,alt:"Keyring Logo",width:22,height:30})}),t.jsx("h3",{id:"chat-modal-title",children:r||a?.title})]}),t.jsx("button",{className:"close-button",onClick:e,"aria-label":o("closeChat"),type:"button",children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),t.jsx(Eh,{address:s?.address,chainId:s?.chainId})]})},rp=({scrollContainerRef:e,threshold:r=200})=>{const[i,o]=n.useState(!1);return n.useEffect(()=>{const t=e.current;if(!t)return;const n=()=>{const{scrollTop:e,scrollHeight:n,clientHeight:i}=t;o(n-e-i>r)};return t.addEventListener("scroll",n,{passive:!0}),n(),()=>{t.removeEventListener("scroll",n)}},[e,r]),i?t.jsx("button",{className:"scroll-to-bottom-btn",onClick:()=>e.current?.scrollTo({top:e.current.scrollHeight,behavior:"smooth"}),"aria-label":"Scroll to bottom",type:"button",children:t.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:t.jsx("path",{d:"M9 3V15M9 15L4 10M9 15L14 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):null};function ip(){}function op(){}const sp=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ap=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cp={};function up(e,t){return(cp.jsx?ap:sp).test(e)}const lp=/[ \t\n\f\r]/g;function fp(e){return""===e.replace(lp,"")}class dp{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function hp(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new dp(n,r,t)}function pp(e){return e.toLowerCase()}dp.prototype.normal={},dp.prototype.property={},dp.prototype.space=void 0;class mp{constructor(e,t){this.attribute=t,this.property=e}}mp.prototype.attribute="",mp.prototype.booleanish=!1,mp.prototype.boolean=!1,mp.prototype.commaOrSpaceSeparated=!1,mp.prototype.commaSeparated=!1,mp.prototype.defined=!1,mp.prototype.mustUseProperty=!1,mp.prototype.number=!1,mp.prototype.overloadedBoolean=!1,mp.prototype.property="",mp.prototype.spaceSeparated=!1,mp.prototype.space=void 0;let gp=0;const bp=Cp(),wp=Cp(),yp=Cp(),vp=Cp(),Ap=Cp(),kp=Cp(),xp=Cp();function Cp(){return 2**++gp}const Ep=Object.freeze(Object.defineProperty({__proto__:null,boolean:bp,booleanish:wp,commaOrSpaceSeparated:xp,commaSeparated:kp,number:vp,overloadedBoolean:yp,spaceSeparated:Ap},Symbol.toStringTag,{value:"Module"})),Sp=Object.keys(Ep);class Tp extends mp{constructor(e,t,n,r){let i=-1;if(super(e,t),Mp(this,"space",r),"number"==typeof n)for(;++i<Sp.length;){const e=Sp[i];Mp(this,Sp[i],(n&Ep[e])===Ep[e])}}}function Mp(e,t,n){n&&(e[t]=n)}function Ip(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Tp(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[pp(r)]=r,n[pp(o.attribute)]=r}return new dp(t,n,e.space)}Tp.prototype.defined=!0;const Bp=Ip({properties:{ariaActiveDescendant:null,ariaAtomic:wp,ariaAutoComplete:null,ariaBusy:wp,ariaChecked:wp,ariaColCount:vp,ariaColIndex:vp,ariaColSpan:vp,ariaControls:Ap,ariaCurrent:null,ariaDescribedBy:Ap,ariaDetails:null,ariaDisabled:wp,ariaDropEffect:Ap,ariaErrorMessage:null,ariaExpanded:wp,ariaFlowTo:Ap,ariaGrabbed:wp,ariaHasPopup:null,ariaHidden:wp,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Ap,ariaLevel:vp,ariaLive:null,ariaModal:wp,ariaMultiLine:wp,ariaMultiSelectable:wp,ariaOrientation:null,ariaOwns:Ap,ariaPlaceholder:null,ariaPosInSet:vp,ariaPressed:wp,ariaReadOnly:wp,ariaRelevant:null,ariaRequired:wp,ariaRoleDescription:Ap,ariaRowCount:vp,ariaRowIndex:vp,ariaRowSpan:vp,ariaSelected:wp,ariaSetSize:vp,ariaSort:null,ariaValueMax:vp,ariaValueMin:vp,ariaValueNow:vp,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Np(e,t){return t in e?e[t]:t}function Rp(e,t){return Np(e,t.toLowerCase())}const Fp=Ip({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:kp,acceptCharset:Ap,accessKey:Ap,action:null,allow:null,allowFullScreen:bp,allowPaymentRequest:bp,allowUserMedia:bp,alt:null,as:null,async:bp,autoCapitalize:null,autoComplete:Ap,autoFocus:bp,autoPlay:bp,blocking:Ap,capture:null,charSet:null,checked:bp,cite:null,className:Ap,cols:vp,colSpan:null,content:null,contentEditable:wp,controls:bp,controlsList:Ap,coords:vp|kp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:bp,defer:bp,dir:null,dirName:null,disabled:bp,download:yp,draggable:wp,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:bp,formTarget:null,headers:Ap,height:vp,hidden:yp,high:vp,href:null,hrefLang:null,htmlFor:Ap,httpEquiv:Ap,id:null,imageSizes:null,imageSrcSet:null,inert:bp,inputMode:null,integrity:null,is:null,isMap:bp,itemId:null,itemProp:Ap,itemRef:Ap,itemScope:bp,itemType:Ap,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:bp,low:vp,manifest:null,max:null,maxLength:vp,media:null,method:null,min:null,minLength:vp,multiple:bp,muted:bp,name:null,nonce:null,noModule:bp,noValidate:bp,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:bp,optimum:vp,pattern:null,ping:Ap,placeholder:null,playsInline:bp,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:bp,referrerPolicy:null,rel:Ap,required:bp,reversed:bp,rows:vp,rowSpan:vp,sandbox:Ap,scope:null,scoped:bp,seamless:bp,selected:bp,shadowRootClonable:bp,shadowRootDelegatesFocus:bp,shadowRootMode:null,shape:null,size:vp,sizes:null,slot:null,span:vp,spellCheck:wp,src:null,srcDoc:null,srcLang:null,srcSet:null,start:vp,step:null,style:null,tabIndex:vp,target:null,title:null,translate:null,type:null,typeMustMatch:bp,useMap:null,value:wp,width:vp,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Ap,axis:null,background:null,bgColor:null,border:vp,borderColor:null,bottomMargin:vp,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:bp,declare:bp,event:null,face:null,frame:null,frameBorder:null,hSpace:vp,leftMargin:vp,link:null,longDesc:null,lowSrc:null,marginHeight:vp,marginWidth:vp,noResize:bp,noHref:bp,noShade:bp,noWrap:bp,object:null,profile:null,prompt:null,rev:null,rightMargin:vp,rules:null,scheme:null,scrolling:wp,standby:null,summary:null,text:null,topMargin:vp,valueType:null,version:null,vAlign:null,vLink:null,vSpace:vp,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:bp,disableRemotePlayback:bp,prefix:null,property:null,results:vp,security:null,unselectable:null},space:"html",transform:Rp}),Op=Ip({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:xp,accentHeight:vp,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:vp,amplitude:vp,arabicForm:null,ascent:vp,attributeName:null,attributeType:null,azimuth:vp,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:vp,by:null,calcMode:null,capHeight:vp,className:Ap,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:vp,diffuseConstant:vp,direction:null,display:null,dur:null,divisor:vp,dominantBaseline:null,download:bp,dx:null,dy:null,edgeMode:null,editable:null,elevation:vp,enableBackground:null,end:null,event:null,exponent:vp,externalResourcesRequired:null,fill:null,fillOpacity:vp,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:kp,g2:kp,glyphName:kp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:vp,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:vp,horizOriginX:vp,horizOriginY:vp,id:null,ideographic:vp,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:vp,k:vp,k1:vp,k2:vp,k3:vp,k4:vp,kernelMatrix:xp,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:vp,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:vp,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:vp,overlineThickness:vp,paintOrder:null,panose1:null,path:null,pathLength:vp,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Ap,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:vp,pointsAtY:vp,pointsAtZ:vp,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xp,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xp,rev:xp,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xp,requiredFeatures:xp,requiredFonts:xp,requiredFormats:xp,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:vp,specularExponent:vp,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:vp,strikethroughThickness:vp,string:null,stroke:null,strokeDashArray:xp,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:vp,strokeOpacity:vp,strokeWidth:null,style:null,surfaceScale:vp,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xp,tabIndex:vp,tableValues:null,target:null,targetX:vp,targetY:vp,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xp,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:vp,underlineThickness:vp,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:vp,values:null,vAlphabetic:vp,vMathematical:vp,vectorEffect:null,vHanging:vp,vIdeographic:vp,version:null,vertAdvY:vp,vertOriginX:vp,vertOriginY:vp,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:vp,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Np}),Pp=Ip({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Lp=Ip({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Rp}),Dp=Ip({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),Up={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Hp=/[A-Z]/g,zp=/-[a-z]/g,jp=/^data[-\w.:]+$/i;function Vp(e){return"-"+e.toLowerCase()}function qp(e){return e.charAt(1).toUpperCase()}const Jp=hp([Bp,Fp,Pp,Lp,Dp],"html"),Gp=hp([Bp,Op,Pp,Lp,Dp],"svg");var Wp,Kp,Yp,Xp={};function Qp(){if(Yp)return Xp;Yp=1;var e=Xp&&Xp.ve||function(e){return e&&e.u?e:{default:e}};Object.defineProperty(Xp,"u",{value:!0}),Xp.default=function(e,n){let r=null;if(!e||"string"!=typeof e)return r;const i=(0,t.default)(e),o="function"==typeof n;return i.forEach(e=>{if("declaration"!==e.type)return;const{property:t,value:i}=e;o?n(t,i,e):i&&(r=r||{},r[t]=i)}),r};const t=e(function(){if(Kp)return Wp;Kp=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(a,c):c}return Wp=function(a,l){if("string"!=typeof a)throw new TypeError("First argument must be a string");if(!a)return[];l=l||{};var f=1,d=1;function h(e){var n=e.match(t);n&&(f+=n.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:f,column:d};return function(t){return t.position=new m(e),w(),t}}function m(e){this.start=e,this.end={line:f,column:d},this.source=l.source}function g(e){var t=new Error(l.source+":"+f+":"+d+": "+e);if(t.reason=e,t.filename=l.source,t.line=f,t.column=d,t.source=a,!l.silent)throw t}function b(e){var t=e.exec(a);if(t){var n=t[0];return h(n),a=a.slice(n.length),t}}function w(){b(n)}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var e=p();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var t=2;c!=a.charAt(t)&&("*"!=a.charAt(t)||"/"!=a.charAt(t+1));)++t;if(t+=2,c===a.charAt(t-1))return g("End of comment missing");var n=a.slice(2,t-2);return d+=2,h(n),a=a.slice(t),d+=2,e({type:"comment",comment:n})}}function A(){var t=p(),n=b(r);if(n){if(v(),!b(i))return g("property missing ':'");var a=b(o),l=t({type:"declaration",property:u(n[0].replace(e,c)),value:a?u(a[0].replace(e,c)):c});return b(s),l}}return m.prototype.content=a,w(),function(){var e,t=[];for(y(t);e=A();)!1!==e&&(t.push(e),y(t));return t}()}}());return Xp}var Zp,$p,_p,em={};function tm(){if(Zp)return em;Zp=1,Object.defineProperty(em,"u",{value:!0}),em.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};return em.camelCase=function(a,c){return void 0===c&&(c={}),function(t){return!t||n.test(t)||e.test(t)}(a)?a:(a=a.toLowerCase(),(a=c.reactCompat?a.replace(i,s):a.replace(r,s)).replace(t,o))},em}const nm=gr(function(){if(_p)return $p;_p=1;var e=($p&&$p.ve||function(e){return e&&e.u?e:{default:e}})(Qp()),t=tm();function n(n,r){var i={};return n&&"string"==typeof n?((0,e.default)(n,function(e,n){e&&n&&(i[(0,t.camelCase)(e,r)]=n)}),i):i}return n.default=n,$p=n}()),rm=om("end"),im=om("start");function om(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function sm(e){return e&&"object"==typeof e?"position"in e||"type"in e?cm(e.position):"start"in e||"end"in e?cm(e):"line"in e||"column"in e?am(e):"":""}function am(e){return um(e&&e.line)+":"+um(e&&e.column)}function cm(e){return am(e&&e.start)+"-"+am(e&&e.end)}function um(e){return e&&"number"==typeof e?e:1}class lm extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.line:void 0,this.name=sm(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}lm.prototype.file="",lm.prototype.name="",lm.prototype.reason="",lm.prototype.message="",lm.prototype.stack="",lm.prototype.column=void 0,lm.prototype.line=void 0,lm.prototype.ancestors=void 0,lm.prototype.cause=void 0,lm.prototype.fatal=void 0,lm.prototype.place=void 0,lm.prototype.ruleId=void 0,lm.prototype.source=void 0;const fm={}.hasOwnProperty,dm=new Map,hm=/[A-Z]/g,pm=new Set(["table","tbody","thead","tfoot","tr"]),mm=new Set(["td","th"]),gm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function bm(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,i,o){const s=Array.isArray(i.children),a=im(n);return t(r,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,i,o){const s=Array.isArray(i.children)?n:t;return o?s(r,i,o):s(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Gp:Jp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=wm(i,e,void 0);return o&&"string"!=typeof o?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function wm(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=Gp,e.schema=i);e.ancestors.push(t);const o=xm(e,t.tagName,!1),s=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&fm.call(t.properties,i)){const o=km(e,i,t.properties[i]);if(o){const[i,s]=o;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof s&&mm.has(t.tagName)?r=s:n[i]=s}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let a=Am(e,t);pm.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&fp(t.value):fp(t));var t}));return ym(e,s,o,t),vm(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Cm(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=Gp,e.schema=i);e.ancestors.push(t);const o=null===t.name?e.Fragment:xm(e,t.name,!0),s=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];ip(t.type);const i=t.expression;ip(i.type);const o=i.properties[0];ip(o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Cm(e,t.position);else{const i=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];ip(t.type),o=e.evaluater.evaluateExpression(t.expression)}else Cm(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),a=Am(e,t);return ym(e,s,o,t),vm(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Cm(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return vm(r,Am(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function ym(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function vm(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Am(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:dm;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=i.get(e)||0;s=e+"-"+t,i.set(e,t+1)}}const a=wm(e,o,s);void 0!==a&&n.push(a)}return n}function km(e,t,n){const r=function(e,t){const n=pp(t);let r=t,i=mp;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&jp.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(zp,qp);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!zp.test(e)){let n=e.replace(Hp,Vp);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Tp}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return nm(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new lm("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=gm+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)fm.call(e,n)&&(t[Em(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?Up[r.property]||r.property:r.attribute,n]}}function xm(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++i<e.length;){const t=up(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}r=n}else r=up(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return fm.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Cm(e)}function Cm(e,t){const n=new lm("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=gm+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Em(e){let t=e.replace(hm,Sm);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Sm(e){return"-"+e.toLowerCase()}const Tm={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Mm={};function Im(e,t){return Bm(e,"boolean"!=typeof Mm.includeImageAlt||Mm.includeImageAlt,"boolean"!=typeof Mm.includeHtml||Mm.includeHtml)}function Bm(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Nm(e.children,t,n)}return Array.isArray(e)?Nm(e,t,n):""}function Nm(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Bm(e[i],t,n);return r.join("")}const Rm=document.createElement("i");function Fm(e){const t="&"+e+";";Rm.innerHTML=t;const n=Rm.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}function Om(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function Pm(e,t){return e.length>0?(Om(e,e.length,0,t),e):t}const Lm={}.hasOwnProperty;function Dm(e){const t={};let n=-1;for(;++n<e.length;)Um(t,e[n]);return t}function Um(e,t){let n;for(n in t){const r=(Lm.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Lm.call(r,o)||(r[o]=[]);const e=i[o];Hm(r[o],Array.isArray(e)?e:e?[e]:[])}}}function Hm(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Om(e,0,0,r)}function zm(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function jm(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vm=eg(/[A-Za-z]/),qm=eg(/[\dA-Za-z]/),Jm=eg(/[#-'*+\--9=?A-Z^-~]/);function Gm(e){return null!==e&&(e<32||127===e)}const Wm=eg(/\d/),Km=eg(/[\dA-Fa-f]/),Ym=eg(/[!-/:-@[-`{-~]/);function Xm(e){return null!==e&&e<-2}function Qm(e){return null!==e&&(e<0||32===e)}function Zm(e){return-2===e||-1===e||32===e}const $m=eg(new RegExp("\\p{P}|\\p{S}","u")),_m=eg(/\s/);function eg(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function tg(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(37===o&&qm(e.charCodeAt(n+1))&&qm(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ng(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(Zm(r))return e.enter(n),s(r);return t(r)};function s(r){return Zm(r)&&o++<i?(e.consume(r),s):(e.exit(n),t(r))}}const rg={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ng(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Xm(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const ig={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return t.containerState=i[1],e.attempt(i[0].continuation,c,u)(r)}return u(r)}function c(e){if(s++,t.containerState.Re){t.containerState.Re=void 0,r&&w();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}b(s);let a=n;for(;a<t.events.length;)t.events[a][1].end={...i},a++;return Om(t.events,o+1,0,t.events.slice(n)),t.events.length=a,u(e)}return a(e)}function u(i){if(s===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return p(i);t.interrupt=Boolean(r.currentConstruct&&!r.Fe)}return t.containerState={},e.check(og,l,f)(i)}function l(e){return r&&w(),b(s),d(e)}function f(e){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,p(e)}function d(n){return t.containerState={},e.attempt(og,h,p)(n)}function h(e){return s++,n.push([t.currentConstruct,t.containerState]),d(e)}function p(n){return null===n?(r&&w(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{Oe:r,contentType:"flow",previous:i}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):Xm(n)?(e.consume(n),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),m)}function g(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,a,c=n;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){a=t.events[c][1].end;break}i=!0}for(b(s),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;Om(t.events,c+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function w(){r.write([null]),i=void 0,r=void 0,t.containerState.Re=void 0}}},og={tokenize:function(e,t,n){return ng(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function sg(e){return null===e||Qm(e)||_m(e)?1:$m(e)?2:void 0}function ag(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const cg={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,a,c,u,l=-1;for(;++l<e.length;)if("enter"===e[l][0]&&"attentionSequence"===e[l][1].type&&e[l][1].Pe)for(n=l;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1].Le&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[n][1].Pe||e[l][1].Le)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const f={...e[n][1].end},d={...e[l][1].start};ug(f,-a),ug(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[l][1].start},end:d},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[l][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[l][1].start={...s.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Pm(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Pm(c,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=Pm(c,ag(t.parser.constructs.insideSpan.null,e.slice(n+1,l),t)),c=Pm(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=Pm(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,Om(e,n-1,l-n+3,c),l=n+c.length-u-2;break}l=-1;for(;++l<e.length;)"attentionSequence"===e[l][1].type&&(e[l][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=sg(r);let o;return function(t){return o=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===o)return e.consume(a),s;const c=e.exit("attentionSequence"),u=sg(a),l=!u||2===u&&i||n.includes(a),f=!i||2===i&&u||n.includes(r);return c.Le=Boolean(42===o?l:l&&(i||!f)),c.Pe=Boolean(42===o?f:f&&(u||!l)),t(a)}}};function ug(e,t){e.column+=t,e.offset+=t,e.De+=t}const lg={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Vm(t)?(e.consume(t),o):64===t?n(t):c(t)}function o(e){return 43===e||45===e||46===e||qm(e)?(r=1,s(e)):c(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||qm(t))&&r++<32?(e.consume(t),s):(r=0,c(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Gm(r)?n(r):(e.consume(r),a)}function c(t){return 64===t?(e.consume(t),u):Jm(t)?(e.consume(t),c):n(t)}function u(e){return qm(e)?l(e):n(e)}function l(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||qm(t))&&r++<63){const n=45===t?f:l;return e.consume(t),n}return n(t)}}};const fg={partial:!0,tokenize:function(e,t,n){return function(t){return Zm(t)?ng(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Xm(e)?t(e):n(e)}}};const dg={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Zm(t))return ng(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(dg,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{Ue:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Zm(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const hg={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Ym(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const pg={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=qm,u(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Km,u):(e.enter("characterReferenceValue"),i=7,o=Wm,u(t))}function u(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==qm||Fm(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++<i?(e.consume(a),u):n(a)}}};const mg={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},gg={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),Zm(t)?ng(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===o?(e.enter("codeFencedFenceSequence"),l(t)):n(t)}function l(t){return t===o?(i++,e.consume(t),l):i>=a?(e.exit("codeFencedFenceSequence"),Zm(t)?ng(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||Xm(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===o?(a++,e.consume(t),c):a<3?n(t):(e.exit("codeFencedFenceSequence"),Zm(t)?ng(e,u,"whitespace")(t):u(t))}function u(n){return null===n||Xm(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(mg,h,w)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),l(n))}function l(t){return null===t||Xm(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):Zm(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ng(e,f,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),l)}function f(t){return null===t||Xm(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||Xm(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===o?n(t):(e.consume(t),d)}function h(t){return e.attempt(i,w,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&Zm(t)?ng(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||Xm(t)?e.check(mg,h,w)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||Xm(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),b)}function w(n){return e.exit("codeFenced"),t(n)}}};const bg={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ng(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):Xm(t)?e.attempt(wg,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||Xm(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},wg={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Xm(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ng(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Xm(e)?i(e):n(e)}}};const yg={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),o++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(i=e.enter("codeTextSequence"),r=0,u(t)):Xm(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||Xm(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),c)}function u(n){return 96===n?(e.consume(n),r++,u):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",c(n))}}};class vg{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Ag(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Ag(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Ag(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);Ag(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);Ag(this.left,t.reverse())}}}function Ag(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function kg(e){const t={};let n,r,i,o,s,a,c,u=-1;const l=new vg(e);for(;++u<l.length;){for(;u in t;)u=t[u];if(n=l.get(u),u&&"chunkFlow"===n[1].type&&"listItemPrefix"===l.get(u-1)[1].type&&(a=n[1].Oe.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1].He=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,xg(l,u)),u=t[u],c=!0);else if(n[1].Ue){for(i=u,r=void 0;i--;)if(o=l.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(l.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...l.get(r)[1].start},s=l.slice(r,u),s.unshift(n),l.splice(r,u-r+1,s))}}return Om(e,0,Number.POSITIVE_INFINITY,l.slice(0)),!c}function xg(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n.Oe;s||(s=r.parser[n.contentType](n.start),n.ze&&(s.ze=!0));const a=s.events,c=[],u={};let l,f,d=-1,h=n,p=0,m=0;const g=[m];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h.Oe||(l=r.sliceStream(h),h.next||l.push(null),f&&s.defineSkip(h.start),h.He&&(s.je=!0),s.write(l),h.He&&(s.je=void 0)),f=h,h=h.next}for(h=n;++d<a.length;)"exit"===a[d][0]&&"enter"===a[d-1][0]&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(m=d+1,g.push(m),h.Oe=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h.Oe=void 0,h.previous=void 0):g.pop(),d=g.length;d--;){const t=a.slice(g[d],g[d+1]),n=o.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)u[p+c[d][0]]=p+c[d][1],p+=c[d][1]-c[d][0]-1;return u}const Cg={resolve:function(e){return kg(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):Xm(t)?e.check(Eg,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Eg={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ng(e,i,"linePrefix")};function i(i){if(null===i||Xm(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function Sg(e,t,n,r,i,o,s,a,c){const u=c||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f;if(null===t||32===t||41===t||Gm(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),p(t)};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||Xm(t)?n(t):(e.consume(t),92===t?h:d)}function h(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(i){return l||null!==i&&41!==i&&!Qm(i)?l<u&&40===i?(e.consume(i),l++,p):41===i?(e.consume(i),l--,p):null===i||32===i||40===i||Gm(i)?n(i):(e.consume(i),92===i?m:p):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function Tg(e,t,n,r,i,o){const s=this;let a,c=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(f){return c>999||null===f||91===f||93===f&&!a||94===f&&!c&&"Ve"in s.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):Xm(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||Xm(t)||c++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!Zm(t)),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}}function Mg(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),c(n))}function c(t){return t===s?(e.exit(o),a(s)):null===t?n(t):Xm(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ng(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||Xm(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return t===s||92===t?(e.consume(t),u):u(t)}}function Ig(e,t){let n;return function r(i){if(Xm(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(Zm(i))return ng(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}const Bg={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return Tg.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=jm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return Qm(t)?Ig(e,a)(t):a(t)}function a(t){return Sg(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(Ng,u,u)(t)}function u(t){return Zm(t)?ng(e,l,"whitespace")(t):l(t)}function l(o){return null===o||Xm(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},Ng={partial:!0,tokenize:function(e,t,n){return function(t){return Qm(t)?Ig(e,r)(t):n(t)};function r(t){return Mg(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Zm(t)?ng(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Xm(e)?t(e):n(e)}}};const Rg={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Xm(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Fg={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Om(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||Qm(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||Xm(n)?(e.exit("atxHeading"),t(n)):Zm(n)?ng(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||Qm(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}}};const Og=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Pg=["pre","script","style","textarea"],Lg={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let i,o,s,a,c;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(a){return 33===a?(e.consume(a),l):47===a?(e.consume(a),o=!0,h):63===a?(e.consume(a),i=3,r.interrupt?t:O):Vm(a)?(e.consume(a),s=String.fromCharCode(a),p):n(a)}function l(o){return 45===o?(e.consume(o),i=2,f):91===o?(e.consume(o),i=5,a=0,d):Vm(o)?(e.consume(o),i=4,r.interrupt?t:O):n(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?t:O):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:S:d):n(i)}function h(t){return Vm(t)?(e.consume(t),s=String.fromCharCode(t),p):n(t)}function p(a){if(null===a||47===a||62===a||Qm(a)){const c=47===a,u=s.toLowerCase();return c||o||!Pg.includes(u)?Og.includes(s.toLowerCase())?(i=6,c?(e.consume(a),m):r.interrupt?t(a):S(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?g(a):b(a)):(i=1,r.interrupt?t(a):S(a))}return 45===a||qm(a)?(e.consume(a),s+=String.fromCharCode(a),p):n(a)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:S):n(i)}function g(t){return Zm(t)?(e.consume(t),g):C(t)}function b(t){return 47===t?(e.consume(t),C):58===t||95===t||Vm(t)?(e.consume(t),w):Zm(t)?(e.consume(t),b):C(t)}function w(t){return 45===t||46===t||58===t||95===t||qm(t)?(e.consume(t),w):y(t)}function y(t){return 61===t?(e.consume(t),v):Zm(t)?(e.consume(t),y):b(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,A):Zm(t)?(e.consume(t),v):k(t)}function A(t){return t===c?(e.consume(t),c=null,x):null===t||Xm(t)?n(t):(e.consume(t),A)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Qm(t)?y(t):(e.consume(t),k)}function x(e){return 47===e||62===e||Zm(e)?b(e):n(e)}function C(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||Xm(t)?S(t):Zm(t)?(e.consume(t),E):n(t)}function S(t){return 45===t&&2===i?(e.consume(t),B):60===t&&1===i?(e.consume(t),N):62===t&&4===i?(e.consume(t),P):63===t&&3===i?(e.consume(t),O):93===t&&5===i?(e.consume(t),F):!Xm(t)||6!==i&&7!==i?null===t||Xm(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),S):(e.exit("htmlFlowData"),e.check(Dg,L,T)(t))}function T(t){return e.check(Ug,M,L)(t)}function M(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||Xm(t)?T(t):(e.enter("htmlFlowData"),S(t))}function B(t){return 45===t?(e.consume(t),O):S(t)}function N(t){return 47===t?(e.consume(t),s="",R):S(t)}function R(t){if(62===t){const n=s.toLowerCase();return Pg.includes(n)?(e.consume(t),P):S(t)}return Vm(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),R):S(t)}function F(t){return 93===t?(e.consume(t),O):S(t)}function O(t){return 62===t?(e.consume(t),P):45===t&&2===i?(e.consume(t),O):S(t)}function P(t){return null===t||Xm(t)?(e.exit("htmlFlowData"),L(t)):(e.consume(t),P)}function L(n){return e.exit("htmlFlow"),t(n)}}},Dg={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(fg,t,n)}}},Ug={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Xm(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const Hg={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),v):63===t?(e.consume(t),w):Vm(t)?(e.consume(t),x):n(t)}function c(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),o=0,h):Vm(t)?(e.consume(t),b):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function l(t){return null===t?n(t):45===t?(e.consume(t),f):Xm(t)?(s=l,R(t)):(e.consume(t),l)}function f(t){return 45===t?(e.consume(t),d):l(t)}function d(e){return 62===e?N(e):45===e?f(e):l(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):Xm(t)?(s=p,R(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):p(t)}function b(t){return null===t||62===t?N(t):Xm(t)?(s=b,R(t)):(e.consume(t),b)}function w(t){return null===t?n(t):63===t?(e.consume(t),y):Xm(t)?(s=w,R(t)):(e.consume(t),w)}function y(e){return 62===e?N(e):w(e)}function v(t){return Vm(t)?(e.consume(t),A):n(t)}function A(t){return 45===t||qm(t)?(e.consume(t),A):k(t)}function k(t){return Xm(t)?(s=k,R(t)):Zm(t)?(e.consume(t),k):N(t)}function x(t){return 45===t||qm(t)?(e.consume(t),x):47===t||62===t||Qm(t)?C(t):n(t)}function C(t){return 47===t?(e.consume(t),N):58===t||95===t||Vm(t)?(e.consume(t),E):Xm(t)?(s=C,R(t)):Zm(t)?(e.consume(t),C):N(t)}function E(t){return 45===t||46===t||58===t||95===t||qm(t)?(e.consume(t),E):S(t)}function S(t){return 61===t?(e.consume(t),T):Xm(t)?(s=S,R(t)):Zm(t)?(e.consume(t),S):C(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,M):Xm(t)?(s=T,R(t)):Zm(t)?(e.consume(t),T):(e.consume(t),I)}function M(t){return t===i?(e.consume(t),i=void 0,B):null===t?n(t):Xm(t)?(s=M,R(t)):(e.consume(t),M)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||Qm(t)?C(t):(e.consume(t),I)}function B(e){return 47===e||62===e||Qm(e)?C(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F}function F(t){return Zm(t)?ng(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):O(t)}function O(t){return e.enter("htmlTextData"),s(t)}}};const zg={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Om(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n.qe)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n.qe=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n.Je&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const c={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},l={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",c,t],["enter",u,t]],o=Pm(o,e.slice(r+1,r+a+3)),o=Pm(o,[["enter",l,t]]),o=Pm(o,ag(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=Pm(o,[["exit",l,t],e[i-2],e[i-1],["exit",u,t]]),o=Pm(o,e.slice(i+1)),o=Pm(o,[["exit",c,t]]),Om(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1].Je){i=r.events[s][1];break}return function(t){if(!i)return n(t);if(i.qe)return l(t);return o=r.parser.defined.includes(jm(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(jg,u,o?u:l)(t):91===t?e.attempt(Vg,u,o?c:l)(t):o?u(t):l(t)}function c(t){return e.attempt(qg,u,l)(t)}function u(e){return t(e)}function l(e){return i.Je=!0,n(e)}}},jg={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return Qm(t)?Ig(e,i)(t):i(t)}function i(t){return 41===t?u(t):Sg(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return Qm(t)?Ig(e,a)(t):u(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?Mg(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function c(t){return Qm(t)?Ig(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Vg={tokenize:function(e,t,n){const r=this;return function(t){return Tg.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(jm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},qg={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Jg={name:"labelStartImage",resolveAll:zg.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"Ve"in r.parser.constructs?n(e):t(e)}}};const Gg={name:"labelStartLink",resolveAll:zg.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"Ve"in r.parser.constructs?n(e):t(e)}}};const Wg={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ng(e,t,"linePrefix")}}};const Kg={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||Xm(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),Zm(t)?ng(e,o,"whitespace")(t):o(t))}}};const Yg={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState.Re=void 0,e.check(fg,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ng(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){if(r.containerState.furtherBlankLines||!Zm(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Qg,t,i)(n)});function i(i){return r.containerState.Re=!0,r.interrupt=void 0,ng(e,e.attempt(Yg,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Wm(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{Ue:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Kg,n,c)(t):c(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return Wm(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):n(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(fg,r.interrupt?n:u,e.attempt(Xg,f,l))}function u(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function l(t){return Zm(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Xg={partial:!0,tokenize:function(e,t,n){const r=this;return ng(e,function(e){const i=r.events[r.events.length-1];return!Zm(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},Qg={partial:!0,tokenize:function(e,t,n){const r=this;return ng(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const Zg={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s;return e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Zm(t)?ng(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||Xm(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const $g={tokenize:function(e){const t=this,n=e.attempt(fg,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,ng(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Cg,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const _g={resolveAll:rb()},eb=nb("string"),tb=nb("text");function nb(e){return{resolveAll:rb("text"===e?ib:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return c(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function c(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function rb(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function ib(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,c=0;for(;s--;){const e=i[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)c++,a--;if(a)break;a=-1}else if(-2===e)o=!0,c++;else if(-1!==e){s++;break}}if(t.ze&&n===e.length&&(c=0),c){const i={type:n===e.length||o||c<2?"lineSuffix":"hardBreakTrailing",start:{De:s?a:r.start.De+a,Ge:r.start.Ge+s,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const ob={42:Yg,43:Yg,45:Yg,48:Yg,49:Yg,50:Yg,51:Yg,52:Yg,53:Yg,54:Yg,55:Yg,56:Yg,57:Yg,62:dg},sb={91:Bg},ab={[-2]:bg,[-1]:bg,32:bg},cb={35:Fg,42:Kg,45:[Zg,Kg],60:Lg,61:Zg,95:Kg,96:gg,126:gg},ub={38:pg,92:hg},lb={[-5]:Wg,[-4]:Wg,[-3]:Wg,33:Jg,38:pg,42:cg,60:[lg,Hg],91:Gg,92:[Rg,hg],93:zg,95:cg,96:yg},fb={null:[cg,_g]},db=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:sb,disable:{null:[]},document:ob,flow:cb,flowInitial:ab,insideSpan:fb,string:ub,text:lb},Symbol.toStringTag,{value:"Module"}));function hb(e,t,n){let r={De:-1,Ge:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const c={attempt:g(function(e,t){b(e,t.from)}),check:g(m),consume:function(e){Xm(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,w()):-1!==e&&(r.column++,r.offset++);r.De<0?r.Ge++:(r.De++,r.De===s[r.Ge].length&&(r.De=-1,r.Ge++));u.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=d(),u.events.push(["exit",t,u]),t},interrupt:g(m,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,w()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if("string"==typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(f(e),t)},sliceStream:f,write:function(e){if(s=Pm(s,e),h(),null!==s[s.length-1])return[];return b(t,0),u.events=ag(o,u.events,u),u.events}};let l=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function f(e){return function(e,t){const n=t.start.Ge,r=t.start.De,i=t.end.Ge,o=t.end.De;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const e=s[0];"string"==typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function d(){const{De:e,Ge:t,line:n,column:i,offset:o}=r;return{De:e,Ge:t,line:n,column:i,offset:o}}function h(){let e;for(;r.Ge<s.length;){const t=s[r.Ge];if("string"==typeof t)for(e=r.Ge,r.De<0&&(r.De=0);r.Ge===e&&r.De<t.length;)p(t.charCodeAt(r.De));else p(t)}}function p(e){l=l(e)}function m(e,t){t.restore()}function g(e,t){return function(n,i,o){let s,l,f,h;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return p([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function p(e){return s=e,l=0,0===e.length?o:m(e[l])}function m(e){return function(n){h=function(){const e=d(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(a);return{from:i,restore:s};function s(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,a=o,w()}}(),f=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return b();return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,g,b)(n)}}function g(t){return e(f,h),i}function b(e){return h.restore(),++l<s.length?m(s[l]):o}}}function b(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Om(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const pb=/[\0\t\n\r]/g;const mb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function gb(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return zm(n.slice(t?2:1),t?16:10)}return Fm(n)||e}const bb={}.hasOwnProperty;function wb(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:E,autolinkEmail:E,atxHeading:o(Z),blockQuote:o(W),characterEscape:E,characterReference:E,codeFenced:o(K),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(K,s),codeText:o(Y,s),codeTextData:E,data:E,codeFlowValue:E,definition:o(X),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Q),hardBreakEscape:o($),hardBreakTrailing:o($),htmlFlow:o(_,s),htmlFlowData:E,htmlText:o(_,s),htmlTextData:E,image:o(ee),label:s,link:o(te),listItem:o(re),listItemValue:d,listOrdered:o(ne,f),listUnordered:o(ne),paragraph:o(ie),reference:H,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Z),strong:o(oe),thematicBreak:o(ae)},exit:{atxHeading:c(),atxHeadingSequence:A,autolink:c(),autolinkEmail:G,autolinkProtocol:J,blockQuote:c(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:j,characterReferenceMarkerNumeric:j,characterReferenceValue:V,characterReference:q,codeFenced:c(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:S,codeIndented:c(b),codeText:c(N),codeTextData:S,data:S,definition:c(),definitionDestinationString:v,definitionLabelString:w,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(M),hardBreakTrailing:c(M),htmlFlow:c(I),htmlFlowData:S,htmlText:c(B),htmlTextData:S,image:c(F),label:P,labelText:O,lineEnding:T,link:c(R),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:z,resourceDestinationString:L,resourceTitleString:D,resource:U,setextHeading:c(C),setextHeadingLineSequence:x,setextHeadingText:k,strong:c(),thematicBreak:c()}};vb(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:l,data:n},c=[];let f=-1;for(;++f<e.length;)if("listOrdered"===e[f][1].type||"listUnordered"===e[f][1].type)if("enter"===e[f][0])c.push(f);else{f=i(e,c.pop(),f)}for(f=-1;++f<e.length;){const n=t[e[f][0]];bb.call(n,e[f][1].type)&&n[e[f][1].type].call(Object.assign({sliceSerialize:e[f][2].sliceSerialize},o),e[f][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||kb).call(o,void 0,e[0])}for(r.position={start:yb(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:yb(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f<t.transforms.length;)r=t.transforms[f](r)||r;return r}function i(e,t,n){let r,i,o,s,a=t-1,c=-1,u=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?c++:c--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||c||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(i=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r.We=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",We:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,s=!0}}}return e[t][1].We=u,n}function o(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:yb(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+sm({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||kb).call(this,e,r[0])}n.position.end=yb(e.end)}function l(){return Im(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function p(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function w(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=jm(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();this.stack[this.stack.length-1].title=e}function v(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function x(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function E(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=se(),n.position={start:yb(e.start),end:void 0},t.push(n)),this.stack.push(n)}function S(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=yb(e.end)}function T(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=yb(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(E.call(this,e),S.call(this,e))}function M(){this.data.atHardBreak=!0}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function B(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function F(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function O(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(mb,gb)}(t),n.identifier=jm(t).toLowerCase()}function P(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function L(){const e=this.resume();this.stack[this.stack.length-1].url=e}function D(){const e=this.resume();this.stack[this.stack.length-1].title=e}function U(){this.data.inReference=void 0}function H(){this.data.referenceType="collapsed"}function z(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=jm(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function j(e){this.data.characterReferenceType=e.type}function V(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=zm(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Fm(t)}this.stack[this.stack.length-1].value+=r}function q(e){this.stack.pop().position.end=yb(e.end)}function J(e){S.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function G(e){S.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function $(){return{type:"break"}}function _(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e.We,children:[]}}function re(e){return{type:"listItem",spread:e.We,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(n)(function(e){for(;!kg(e););return e}(function(e){const t={constructs:Dm([db,...(e||{}).extensions||[]]),content:n(rg),defined:[],document:n(ig),flow:n($g),lazy:{},string:n(eb),text:n(tb)};return t;function n(e){return function(n){return hb(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,s){const a=[];let c,u,l,f,d;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),l=0,n="",r&&(65279===i.charCodeAt(0)&&l++,r=void 0);l<i.length;){if(pb.lastIndex=l,c=pb.exec(i),f=c&&void 0!==c.index?c.index:i.length,d=i.charCodeAt(f),!c){n=i.slice(l);break}if(10===d&&l===f&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),l<f&&(a.push(i.slice(l,f)),t+=f-l),d){case 0:a.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),a.push(-2);t++<u;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function yb(e){return{line:e.line,column:e.column,offset:e.offset}}function vb(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?vb(e,r):Ab(e,r)}}function Ab(e,t){let n;for(n in t)if(bb.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function kb(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+sm({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+sm({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+sm({start:t.start,end:t.end})+") is still open")}function xb(e){const t=this;t.parser=function(n){return wb(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Cb(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function Eb(e){const t=e.spread;return null==t?e.children.length>1:t}function Sb(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Tb(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Tb(t.slice(i),i>0,!1)),o.join("")}function Tb(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const Mb={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=tg(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Cb(e,t);const i={src:tg(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:tg(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Cb(e,t);const i={href:tg(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:tg(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Eb(n[r])}return t}(n):Eb(t),o={},s=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}const c=r[r.length-1];c&&(i||"element"!==c.type||"p"!==c.tagName)&&s.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=im(t.children[1]),s=rm(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const c=[];for(;++a<s;){const n=t.children[a],r={},s=o?o[a]:void 0;s&&(r.align=s);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),c.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:Sb(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Ib,yaml:Ib,definition:Ib,footnoteDefinition:Ib};function Ib(){}const Bb="object"==typeof self?self:globalThis,Nb=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Bb[e](t)},Rb=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case 0:case-1:return n(s,i);case 1:{const e=n([],i);for(const t of s)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{const{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of s)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of s)e.add(r(t));return e}case 7:{const{name:e,message:t}=s;return n(Nb(e,t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(Nb(o,s),i)};return r})(new Map,e)(0),Fb="",{toString:Ob}={},{keys:Pb}=Object,Lb=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ob.call(e).slice(8,-1);switch(n){case"Array":return[1,Fb];case"Object":return[2,Fb];case"Date":return[3,Fb];case"RegExp":return[4,Fb];case"Map":return[5,Fb];case"Set":return[6,Fb];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Db=([e,t])=>0===e&&("function"===t||"symbol"===t),Ub=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[s,a]=Lb(r);switch(s){case 0:{let t=r;switch(a){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([s,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}const e=[],t=i([s,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],c=i([s,n],r);for(const t of Pb(r))!e&&Db(Lb(r[t]))||n.push([o(t),o(r[t])]);return c}case 3:return i([s,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([s,{source:e,flags:t}],r)}case 5:{const t=[],n=i([s,t],r);for(const[i,s]of r)(e||!Db(Lb(i))&&!Db(Lb(s)))&&t.push([o(i),o(s)]);return n}case 6:{const t=[],n=i([s,t],r);for(const i of r)!e&&Db(Lb(i))||t.push(o(i));return n}}const{message:c}=r;return i([s,{name:a,message:c}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},Hb="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Rb(Ub(e,t)):structuredClone(e):(e,t)=>Rb(Ub(e,t));function zb(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function jb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Vb=function(e){if(null==e)return Jb;if("function"==typeof e)return qb(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Vb(e[n]);return qb(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return qb(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"==typeof e)return function(e){return qb(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function qb(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Jb(){return!0}const Gb=[],Wb=!0,Kb=!1;function Yb(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const o=Vb(i),s=r?-1:1;!function e(i,a,c){const u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(l,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return l;function l(){let u,l,f,d=Gb;if((!t||o(i,a,c[c.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Wb,e];return null==e?Gb:[e]}(n(i,c)),d[0]===Kb))return d;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==d[0])for(l=(r?t.children.length:-1)+s,f=c.concat(t);l>-1&&l<t.children.length;){const n=t.children[l];if(u=e(n,l,f)(),u[0]===Kb)return u;l="number"==typeof u[1]?u[1]:l+s}}return d}}(e,void 0,[])()}function Xb(e,t,n,r){let i,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,i=n):(o=t,s=n,i=r),Yb(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},i)}const Qb={}.hasOwnProperty,Zb={};function $b(e,t){e.position&&(t.position=function(e){const t=im(e),n=rm(e);if(t&&n)return{start:t,end:n}}(e))}function _b(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&i&&Object.assign(n.properties,Hb(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function ew(e,t){const n=t.data||{},r=!("value"in t)||Qb.call(n,"hProperties")||Qb.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function tw(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nw(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function rw(e,t){const n=function(e,t){const n=t||Zb,r=new Map,i=new Map,o=new Map,s={...Mb,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nw(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=nw(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:_b,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:function(e,t){const n=e.type,r=a.handlers[n];if(Qb.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=Hb(n);return r.children=a.all(e),r}return Hb(e)}return(a.options.unknownHandler||ew)(a,e,t)},options:n,patch:$b,wrap:tw};return Xb(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||zb,r=e.options.footnoteBackLabel||jb,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;const o=e.all(i),s=String(i.identifier).toUpperCase(),u=tg(s.toLowerCase());let l=0;const f=[],d=e.footnoteCounts.get(s);for(;void 0!==d&&++l<=d;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(c,l);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(l>1?"-"+l:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(c,l),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else o.push(...f);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),a.push(p)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Hb(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function iw(e,t){return e&&"run"in e?async function(n,r){const i=rw(n,{file:r,...t});await e.run(i,r)}:function(n,r){return rw(n,{file:r,...e||t})}}function ow(e){if(e)throw e}var sw,aw;var cw=function(){if(aw)return sw;aw=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return sw=function e(){var t,n,r,c,u,l,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"==typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<h;++d)if(null!=(t=arguments[d]))for(n in t)r=a(f,n),f!==(c=a(t,n))&&(p&&c&&(o(c)||(u=i(c)))?(u?(u=!1,l=r&&i(r)?r:[]):l=r&&o(r)?r:{},s(f,{name:n,newValue:e(p,l,c)})):void 0!==c&&s(f,{name:n,newValue:c}));return f},sw}();const uw=gr(cw);function lw(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function fw(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...s){const a=e[++n];let c=-1;if(o)r(o);else{for(;++c<t.length;)null!==s[c]&&void 0!==s[c]||(s[c]=t[c]);t=s,a?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(i);try{a=e.apply(this,t)}catch(o){if(r&&n)throw o;return i(o)}r||(a&&a.then&&"function"==typeof a.then?a.then(s,i):a instanceof Error?i(a):s(a))}function i(e,...r){n||(n=!0,t(e,...r))}function s(e){i(null,e)}}(a,i)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const dw={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');hw(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(hw(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){hw(e);let t,n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)hw(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){hw(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,s=-1,a=0,c=-1;for(;++c<=e.length;){if(c<e.length)n=e.codePointAt(c);else{if(47===n)break;n=47}if(47===n){if(s===c-1||1===a);else if(s!==c-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=c,a=0;continue}}else if(i.length>0){i="",o=0,s=c,a=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,c):i=e.slice(s+1,c),o=c-s-1;s=c,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function hw(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const pw={cwd:function(){return"/"}};function mw(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function gw(e){if("string"==typeof e)e=new URL(e);else if(!mw(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const bw=["history","path","basename","stem","extname","dirname"];class ww{constructor(e){let t;t=e?mw(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":pw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<bw.length;){const e=bw[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)bw.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?dw.basename(this.path):void 0}set basename(e){vw(e,"basename"),yw(e,"basename"),this.path=dw.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?dw.dirname(this.path):void 0}set dirname(e){Aw(this.basename,"dirname"),this.path=dw.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?dw.extname(this.path):void 0}set extname(e){if(yw(e,"extname"),Aw(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=dw.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){mw(e)&&(e=gw(e)),vw(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?dw.basename(this.path,this.extname):void 0}set stem(e){vw(e,"stem"),yw(e,"stem"),this.path=dw.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new lm(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function yw(e,t){if(e&&e.includes(dw.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+dw.sep+"`")}function vw(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Aw(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const kw=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},xw={}.hasOwnProperty;class Cw extends kw{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=fw()}copy(){const e=new Cw;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(uw(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Mw("data",this.frozen),this.namespace[e]=t,this):xw.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Mw("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Nw(e),n=this.parser||this.Parser;return Sw("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Sw("process",this.parser||this.Parser),Tw("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=Nw(e),s=n.parse(o);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(s,o,function(e,t,r){if(e||!t||!r)return a(e);const i=t,o=n.stringify(i,r);var s;"string"==typeof(s=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(s)?r.value=o:r.result=o,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Sw("processSync",this.parser||this.Parser),Tw("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,ow(e),t=r}),Bw("processSync","process",n),t}run(e,t,n){Iw(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const s=Nw(t);r.run(e,s,function(t,r,s){const a=r||e;t?o(t):i?i(a):n(void 0,a,s)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){ow(e),n=t,r=!0}),Bw("runSync","run",r),n}stringify(e,t){this.freeze();const n=Nw(t),r=this.compiler||this.Compiler;return Tw("stringify",r),Iw(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Mw("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):o(e)}return this;function i(e){if("function"==typeof e)a(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=uw(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const s=n[i][1];lw(s)&&lw(r)&&(r=uw(!0,s,r)),n[i]=[e,r,...o]}}}}const Ew=(new Cw).freeze();function Sw(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Tw(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Mw(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Iw(e){if(!lw(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Bw(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Nw(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new ww(e)}const Rw=[],Fw={allowDangerousHtml:!0},Ow=/^(https?|ircs?|mailto|xmpp)$/i,Pw=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Lw(e){const n=function(e){const t=e.rehypePlugins||Rw,n=e.remarkPlugins||Rw,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Fw}:Fw,i=Ew().use(xb).use(n).use(iw,r).use(t);return i}(e),r=function(e){const t=e.children||"",n=new ww;"string"==typeof t&&(n.value=t);return n}(e);return function(e,n){const r=n.allowedElements,i=n.allowElement,o=n.components,s=n.disallowedElements,a=n.skipHtml,c=n.unwrapDisallowed,u=n.urlTransform||Dw;for(const t of Pw)Object.hasOwn(n,t.from)&&op((t.from,t.to&&t.to,t.id));return Xb(e,l),bm(e,{Fragment:t.Fragment,components:o,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0});function l(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return a?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Tm)if(Object.hasOwn(Tm,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Tm[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!s&&s.includes(e.tagName);if(!o&&i&&"number"==typeof t&&(o=!i(e,t,n)),o&&n&&"number"==typeof t)return c&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(n.runSync(n.parse(r),r),e)}function Dw(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||Ow.test(e.slice(0,t))?e:""}function Uw(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function Hw(e,t,n){const r=Vb((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([zw(e[0]),jw(e[1])])}return t}(t);let o=-1;for(;++o<i.length;)Yb(e,"text",s);function s(e,t){let n,s=-1;for(;++s<t.length;){const e=t[s],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[o][0],s=i[o][1];let a=0;const c=n.children.indexOf(e);let u=!1,l=[];r.lastIndex=0;let f=r.exec(e.value);for(;f;){const n=f.index,i={index:f.index,input:f.input,stack:[...t,e]};let o=s(...f,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&l.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?l.push(...o):o&&l.push(o),a=n+f[0].length,u=!0),!r.global)break;f=r.exec(e.value)}u?(a<e.value.length&&l.push({type:"text",value:e.value.slice(a)}),n.children.splice(c,1,...l)):l=[e];return c+l.length}(e,t)}}function zw(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function jw(e){return"function"==typeof e?e:function(){return e}}const Vw="phrasing",qw=["autolink","link","image","label"];function Jw(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Gw(e){this.config.enter.autolinkProtocol.call(this,e)}function Ww(e){this.config.exit.autolinkProtocol.call(this,e)}function Kw(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Yw(e){this.config.exit.autolinkEmail.call(this,e)}function Xw(e){this.exit(e)}function Qw(e){Hw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Zw],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),$w]],{ignore:["link","linkReference"]})}function Zw(e,t,n,r,i){let o="";if(!_w(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Uw(e,"(");let o=Uw(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function $w(e,t,n,r){return!(!_w(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function _w(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||_m(n)||$m(n))&&(!t||47!==n)}function ey(){this.buffer()}function ty(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ny(){this.buffer()}function ry(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function iy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jm(this.sliceSerialize(e)).toLowerCase(),n.label=t}function oy(e){this.exit(e)}function sy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=jm(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ay(e){this.exit(e)}function cy(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=i.move("]"),o}function uy(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){const o=r.createTracker(i);let s=o.move("[^");const a=r.enter("footnoteDefinition"),c=r.enter("label");s+=o.move(r.safe(r.associationId(e),{before:s,after:"]"})),c(),s+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),s+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?fy:ly)));return a(),s},footnoteReference:cy},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function ly(e,t,n){return 0===t?e:fy(e,t,n)}function fy(e,t,n){return(n?"":" ")+e}cy.peek=function(){return"["};const dy=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function hy(e){this.enter({type:"delete",children:[]},e)}function py(e){this.exit(e)}function my(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function gy(e){return e.length}function by(e){return null==e?"":String(e)}function wy(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function yy(e,t,n){return">"+(n?"":" ")+e}function vy(e,t){return Ay(e,t.inConstruct,!0)&&!Ay(e,t.notInConstruct,!1)}function Ay(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ky(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&vy(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function xy(e,t,n){return(n?"":" ")+e}function Cy(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ey(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Sy(e,t,n){const r=sg(e),i=sg(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Ty(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i);let c=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const u=c.charCodeAt(0),l=Sy(r.before.charCodeAt(r.before.length-1),u,i);l.inside&&(c=Ey(u)+c.slice(1));const f=c.charCodeAt(c.length-1),d=Sy(r.after.charCodeAt(0),f,i);d.inside&&(c=c.slice(0,-1)+Ey(f));const h=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:l.outside},a+c+h}function My(e){return e.value||""}function Iy(e,t,n,r){const i=Cy(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const c=n.createTracker(r);let u=c.move("![");return u+=c.move(n.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(a=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=c.move(" "+i),u+=c.move(n.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),a()),u+=c.move(")"),s(),u}function By(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("![");const u=n.safe(e.alt,{before:c,after:"]",...a.current()});c+=a.move(u+"]["),s();const l=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:c,after:"]",...a.current()});return s(),n.stack=l,o(),"full"!==i&&u&&u===f?"shortcut"===i?c=c.slice(0,-1):c+=a.move("]"):c+=a.move(f+"]"),c}function Ny(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function Ry(e,t){const n=Im(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Fy(e,t,n,r){const i=Cy(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,c;if(Ry(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),c=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(c=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),c()),u+=s.move(")"),a(),u}function Oy(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...a.current()});c+=a.move(u+"]["),s();const l=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:c,after:"]",...a.current()});return s(),n.stack=l,o(),"full"!==i&&u&&u===f?"shortcut"===i?c=c.slice(0,-1):c+=a.move("]"):c+=a.move(f+"]"),c}function Py(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Ly(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}my.peek=function(){return"~"},Ty.peek=function(e,t,n){return n.options.emphasis||"*"},My.peek=function(){return"<"},Iy.peek=function(){return"!"},By.peek=function(){return"!"},Ny.peek=function(){return"`"},Fy.peek=function(e,t,n){return Ry(e,n)?"<":"["},Oy.peek=function(){return"["};const Dy=Vb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Uy(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let c=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const u=c.charCodeAt(0),l=Sy(r.before.charCodeAt(r.before.length-1),u,i);l.inside&&(c=Ey(u)+c.slice(1));const f=c.charCodeAt(c.length-1),d=Sy(r.after.charCodeAt(0),f,i);d.inside&&(c=c.slice(0,-1)+Ey(f));const h=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:l.outside},a+c+h}Uy.peek=function(e,t,n){return n.options.strong||"*"};const Hy={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),yy);return i(),s},break:ky,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,xy);return e(),t}const a=n.createTracker(r),c=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}(o,i)+1,3)),u=n.enter("codeFenced");let l=a.move(c);if(e.lang){const t=n.enter(`codeFencedLang${s}`);l+=a.move(n.safe(e.lang,{before:l,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);l+=a.move(" "),l+=a.move(n.safe(e.meta,{before:l,after:"\n",encode:["`"],...a.current()})),t()}return l+=a.move("\n"),o&&(l+=a.move(o+"\n")),l+=a.move(c),u(),l},definition:function(e,t,n,r){const i=Cy(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const c=n.createTracker(r);let u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(a=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...c.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=c.move(" "+i),u+=c.move(n.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),a()),s(),u},emphasis:Ty,hardBreak:ky,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return Xb(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Kb}),Boolean((!e.depth||e.depth<3)&&Im(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),c=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(u)&&(u=Ey(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),c(),a(),u},html:My,image:Iy,imageReference:By,inlineCode:Ny,link:Fy,linkReference:Oy,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Py(n);const a=e.ordered?"."===s?")":".":function(e){const t=Py(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let c=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(c=!0),Ly(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){c=!0;break}}}}c&&(s=a),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),u},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||Py(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e});return c(),u},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){return(e.children.some(function(e){return Dy(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Uy,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Ly(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function zy(e){const t=e.Ke;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function jy(e){this.exit(e),this.data.inTable=void 0}function Vy(e){this.enter({type:"tableRow",children:[]},e)}function qy(e){this.exit(e)}function Jy(e){this.enter({type:"tableCell",children:[]},e)}function Gy(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Wy));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Wy(e,t){return"|"===t?t:e}function Ky(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=Hy.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++i<r.length;)o[i]=c(r[i],t,n);return s(),o}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){const i=a([c(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function s(e,t,n,r){const i=n.enter("tableCell"),s=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:o,after:o});return s(),i(),a}function a(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||gy,o=[],s=[],a=[],c=[];let u=0,l=-1;for(;++l<e.length;){const t=[],r=[];let o=-1;for(e[l].length>u&&(u=e[l].length);++o<e[l].length;){const s=by(e[l][o]);if(!1!==n.alignDelimiters){const e=i(s);r[o]=e,(void 0===c[o]||e>c[o])&&(c[o]=e)}t.push(s)}s[l]=t,a[l]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)o[f]=wy(r[f]);else{const e=wy(r);for(;++f<u;)o[f]=e}f=-1;const d=[],h=[];for(;++f<u;){const e=o[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,c[f]-t.length-r.length);const s=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=t.length+i+r.length,i>c[f]&&(c[f]=i),h[f]=i),d[f]=s}s.splice(1,0,d),a.splice(1,0,h),l=-1;const p=[];for(;++l<s.length;){const e=s[l],t=a[l];f=-1;const r=[];for(;++f<u;){const i=e[f]||"";let s="",a="";if(!1!==n.alignDelimiters){const e=c[f]-(t[f]||0),n=o[f];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):(s=" ".repeat(e/2),a=s):a=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===i||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===u-1||r.push("|")}p.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function c(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=s(r[i],0,t,n);return a(),o}}function Yy(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Xy(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function Qy(e,t,n,r){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let c=Hy.listItem(e,t,n,{...r,...a.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),c}const Zy={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),i;return n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},$y={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(ev,c,a)(t):null===t||Qm(t)||_m(t)||45!==t&&$m(t)?c(t):(o=!0,e.consume(t),s)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function c(e){return i||r||!o?n(e):t(e)}},partial:!0},_y={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(ev,t,o)(s):null===s||Qm(s)||_m(s)?t(s):(e.consume(s),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},ev={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),o):93===s?(e.consume(s),i):60===s||null===s||Qm(s)||_m(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||Qm(e)||_m(e)?t(e):r(e)}function o(e){return Vm(e)?s(e):n(e)}function s(t){return 59===t?(e.consume(t),r):Vm(t)?(e.consume(t),s):n(t)}},partial:!0},tv={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return qm(e)?n(e):t(e)}},partial:!0},nv={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!av.call(r,r.previous)||fv(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Zy,e.attempt($y,e.attempt(_y,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:av},rv={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){if((72===t||104===t)&&cv.call(r,r.previous)&&!fv(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s;return n(t)};function s(t){if(Vm(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),o?c:(o=!0,a)):n(t)}function c(t){return null===t||Gm(t)||Qm(t)||_m(t)||$m(t)?n(t):e.attempt($y,e.attempt(_y,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:cv},iv={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,o;return function(t){if(!lv(t)||!uv.call(r,r.previous)||fv(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)};function s(t){return lv(t)?(e.consume(t),s):64===t?(e.consume(t),a):n(t)}function a(t){return 46===t?e.check(tv,u,c)(t):45===t||95===t||qm(t)?(o=!0,e.consume(t),a):u(t)}function c(t){return e.consume(t),i=!0,a}function u(s){return o&&i&&Vm(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:uv},ov={};let sv=48;for(;sv<123;)ov[sv]=iv,sv++,58===sv?sv=65:91===sv&&(sv=97);function av(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||Qm(e)}function cv(e){return!Vm(e)}function uv(e){return!(47===e||lv(e))}function lv(e){return 43===e||45===e||46===e||95===e||qm(e)}function fv(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r.Je){n=!0;break}if(r.Ye){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1].Ye=!0),n}ov[43]=iv,ov[45]=iv,ov[46]=iv,ov[95]=iv,ov[72]=[iv,rv],ov[104]=[iv,rv],ov[87]=[iv,nv],ov[119]=[iv,nv];const dv={tokenize:function(e,t,n){const r=this;return ng(e,function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function hv(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s.Je)return n(i);const a=jm(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function pv(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end.De++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function mv(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(a){if(s>999||93===a&&!o||null===a||91===a||Qm(a))return n(a);if(93===a){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(jm(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return Qm(a)||(o=!0),s++,e.consume(a),92===a?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function gv(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s,a=0;return function(t){return e.enter("gfmFootnoteDefinition").Ue=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(a>999||93===t&&!s||null===t||91===t||Qm(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=jm(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Qm(t)||(s=!0),a++,e.consume(t),92===t?l:u}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),ng(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function bv(e,t,n){return e.check(fg,t,e.attempt(dv,t,n))}function wv(e){e.exit("gfmFootnoteDefinition")}function yv(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const c=sg(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const u=e.exit("strikethroughSequenceTemporary"),l=sg(o);return u.Le=!l||2===l&&Boolean(c),u.Pe=!c||2===c&&Boolean(l),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1].Pe){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1].Le&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&Om(s,s.length,0,ag(a,e.slice(r+1,n),t)),Om(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),Om(e,r-1,n-r+3,s),n=r+s.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class vv{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0===n&&0===r.length)return;for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function Av(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function kv(e,t,n){const r=this;let i,o=0,s=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?v:a;if(o===v&&r.parser.lazy[r.now().line])return n(e);return o(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return c(e);return i=!0,s+=1,c(e)}(t)}function c(t){return null===t?n(t):Xm(t)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):Zm(t)?ng(e,c,"whitespace")(t):(s+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,c):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||Qm(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return 92===t||124===t?(e.consume(t),u):u(t)}function f(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,Zm(t)?ng(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?p(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):y(t)}function h(t){return Zm(t)?ng(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||Xm(t)?w(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(t))}function b(t){return Zm(t)?ng(e,w,"whitespace")(t):w(t)}function w(n){return 124===n?d(n):(null===n||Xm(n))&&i&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function v(t){return e.enter("tableRow"),A(t)}function A(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),A):null===n||Xm(n)?(e.exit("tableRow"),t(n)):Zm(n)?ng(e,A,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||Qm(t)?(e.exit("data"),A(t)):(e.consume(t),92===t?x:k)}function x(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function xv(e,t){let n,r,i,o=-1,s=!0,a=0,c=[0,0,0,0],u=[0,0,0,0],l=!1,f=0;const d=new vv;for(;++o<e.length;){const h=e[o],p=h[1];"enter"===h[0]?"tableHead"===p.type?(l=!1,0!==f&&(Ev(d,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(o,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(s=!0,i=void 0,c=[0,0,0,0],u=[0,o+1,0,0],l&&(l=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(o,0,[["enter",r,t]])),a="tableDelimiterRow"===p.type?2:r?3:1):!a||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(s?s=!1:(0!==c[1]&&(u[0]=u[1],i=Cv(d,t,c,a,void 0,i)),c=u,u=[c[1],o,0,0])):(s=!1,0===u[2]&&(0!==c[1]&&(u[0]=u[1],i=Cv(d,t,c,a,void 0,i),c=[0,0,0,0]),u[2]=o)):"tableHead"===p.type?(l=!0,f=o):"tableRow"===p.type||"tableDelimiterRow"===p.type?(f=o,0!==c[1]?(u[0]=u[1],i=Cv(d,t,c,a,o,i)):0!==u[1]&&(i=Cv(d,t,u,a,o,i)),a=0):!a||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(u[3]=o)}for(0!==f&&Ev(d,t,f,n,r),d.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1].Ke=Av(t.events,o))}return e}function Cv(e,t,n,r,i,o){const s=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},Sv(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Sv(t.events,n[1]);if(o={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=Sv(t.events,n[2]),o=Sv(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},Sv(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Ev(e,t,n,r,i){const o=[],s=Sv(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Sv(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Tv={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r.je)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return Qm(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return Xm(r)?t(r):Zm(r)?e.check({tokenize:Mv},t,n)(r):n(r)}}};function Mv(e,t,n){return ng(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Iv={};function Bv(e){const t=e||Iv,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return Dm([{text:ov},{document:{91:{name:"gfmFootnoteDefinition",tokenize:gv,continuation:{tokenize:bv},exit:wv}},text:{91:{name:"gfmFootnoteCall",tokenize:mv},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:hv,resolveTo:pv}}},yv(e),{flow:{null:{name:"table",tokenize:kv,resolveAll:xv}}},{text:{91:Tv}}])}(t)),i.push([{transforms:[Qw],enter:{literalAutolink:Jw,literalAutolinkEmail:Gw,literalAutolinkHttp:Gw,literalAutolinkWww:Gw},exit:{literalAutolink:Xw,literalAutolinkEmail:Yw,literalAutolinkHttp:Ww,literalAutolinkWww:Kw}},{enter:{gfmFootnoteCallString:ey,gfmFootnoteCall:ty,gfmFootnoteDefinitionLabelString:ny,gfmFootnoteDefinition:ry},exit:{gfmFootnoteCallString:iy,gfmFootnoteCall:oy,gfmFootnoteDefinitionLabelString:sy,gfmFootnoteDefinition:ay}},{canContainEols:["delete"],enter:{strikethrough:hy},exit:{strikethrough:py}},{enter:{table:zy,tableData:Jy,tableHeader:Jy,tableRow:Vy},exit:{codeText:Gy,table:jy,tableData:qy,tableHeader:qy,tableRow:qy}},{exit:{taskListCheckValueChecked:Yy,taskListCheckValueUnchecked:Yy,paragraph:Xy}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vw,notInConstruct:qw},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vw,notInConstruct:qw},{character:":",before:"[ps]",after:"\\/",inConstruct:Vw,notInConstruct:qw}]},uy(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:dy}],handlers:{delete:my}},Ky(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Qy}}]}}(t))}const Nv={a:({children:e,href:n})=>t.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"mc-link",children:e}),img:({src:e,alt:n})=>t.jsx("img",{src:"string"==typeof e?e:void 0,alt:n??"",className:"mc-image",onError:e=>{e.target.src="data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.1'%3e%3cpath%20d='M102.392%20118.157L102.417%20109.35L89.7594%20102.042C89.5768%20101.937%2089.3953%20101.826%2089.2149%20101.71L89.1861%20101.692C89.012%20101.581%2088.839%20101.47%2088.666%20101.346C88.6061%20101.305%2088.5473%20101.262%2088.4874%20101.22C88.3765%20101.139%2088.259%20101.057%2088.1459%20100.972C88.0749%20100.919%2088.0051%20100.861%2087.9352%20100.811C87.8321%20100.733%2087.73%20100.653%2087.6291%20100.571C87.5552%20100.51%2087.4813%20100.449%2087.4073%20100.387C87.3098%20100.306%2087.2125%20100.224%2087.1157%20100.141C87.0418%20100.075%2086.9678%20100.009%2086.8939%2099.9421C86.7985%2099.8578%2086.7039%2099.772%2086.61%2099.6848C86.5346%2099.6149%2086.4592%2099.5462%2086.3882%2099.4752C86.2929%2099.3843%2086.1986%2099.2922%2086.1044%2099.2002C86.0356%2099.1325%2085.9657%2099.0649%2085.897%2098.9961C85.7983%2098.8963%2085.7007%2098.7954%2085.6031%2098.6934C85.541%2098.628%2085.4778%2098.5637%2085.4168%2098.4982C85.3059%2098.3763%2085.195%2098.2521%2085.0786%2098.1267L84.9533%2097.9881C84.7995%2097.8137%2084.648%2097.6366%2084.4986%2097.457C84.4643%2097.4159%2084.4321%2097.3738%2084.3977%2097.3328C84.2868%2097.1919%2084.1671%2097.05%2084.054%2096.9069C83.9172%2096.7325%2083.7826%2096.5558%2083.6503%2096.3769L83.5827%2096.2881C83.3675%2095.9965%2083.1591%2095.6971%2082.955%2095.3943L82.8441%2095.228C82.5876%2094.8421%2082.341%2094.4495%2082.1045%2094.0503L82.0135%2093.8984C81.8487%2093.616%2081.6886%2093.3306%2081.5334%2093.0423C81.4768%2092.937%2081.4225%2092.8316%2081.3681%2092.7263C81.3138%2092.6209%2081.2572%2092.5045%2081.1952%2092.3936C81.1164%2092.2361%2081.0399%2092.0787%2080.9634%2091.9201C80.939%2091.8691%2080.9135%2091.8181%2080.8891%2091.7671C80.793%2091.5623%2080.6995%2091.3564%2080.6085%2091.1494C80.5852%2091.095%2080.562%2091.0385%2080.5398%2090.9875C80.4732%2090.8337%2080.4082%2090.6792%2080.3446%2090.524L80.2592%2090.3121C80.2008%2090.1643%2080.1435%2090.0164%2080.0873%2089.8686C80.0629%2089.8043%2080.0385%2089.7388%2080.0141%2089.6745C79.9454%2089.486%2079.8789%2089.2971%2079.8145%2089.1079L79.789%2089.0347C79.7151%2088.8218%2079.6471%2088.6088%2079.585%2088.3959C79.5639%2088.3283%2079.5451%2088.2606%2079.5262%2088.193C79.483%2088.0444%2079.4397%2087.8958%2079.3998%2087.7494C79.3776%2087.6685%2079.3566%2087.5875%2079.3355%2087.5066C79.3%2087.3691%2079.2656%2087.2319%2079.2324%2087.0952C79.2131%2087.0138%2079.1943%2086.9325%2079.1758%2086.8512C79.1436%2086.7104%2079.1137%2086.5695%2079.0849%2086.4298C79.0693%2086.3555%2079.0538%2086.2801%2079.0394%2086.208C79.0047%2086.0276%2078.9725%2085.848%2078.9429%2085.6691C78.9429%2085.638%2078.9318%2085.607%2078.9274%2085.5759C78.8941%2085.366%2078.8646%2085.1564%2078.8387%2084.9472C78.832%2084.8906%2078.8265%2084.8363%2078.8198%2084.7775C78.8028%2084.6259%2078.7873%2084.4748%2078.7733%2084.3239C78.7666%2084.253%2078.7622%2084.182%2078.7566%2084.1121C78.7455%2083.9702%2078.7378%2083.8294%2078.7311%2083.6885C78.7311%2083.622%2078.7245%2083.5544%2078.7222%2083.4878C78.7156%2083.2882%2078.71%2083.0897%2078.7112%2082.8934L78.7466%2069.3645L77.6377%2068.7258L71.9567%2065.45C70.7912%2064.7503%2069.5073%2064.2703%2068.1686%2064.0339V64.0417C68.1597%2064.1105%2068.1542%2064.1825%2068.1464%2064.2513C68.1387%2064.32%2068.1298%2064.4021%2068.1231%2064.4797C68.1231%2064.5119%2068.1165%2064.5418%2068.1132%2064.574C68.1043%2064.676%2068.0999%2064.7802%2068.0943%2064.8845C68.0943%2064.941%2068.0865%2064.9954%2068.0843%2065.0541V65.0952C68.0769%2065.2704%2068.0729%2065.4482%2068.0721%2065.6286V65.6607L68.0078%2089.1023C68.0078%2089.2679%2068.01%2089.4339%2068.0145%2089.6002C68.0145%2089.6324%2068.0145%2089.6634%2068.0145%2089.6956C68.0145%2089.7632%2068.0211%2089.832%2068.0244%2089.8996C68.0278%2089.9673%2068.03%2090.056%2068.0355%2090.1347C68.0355%2090.1957%2068.0455%2090.2578%2068.05%2090.3199C68.0544%2090.382%2068.061%2090.463%2068.0677%2090.535C68.0677%2090.5805%2068.0743%2090.6271%2068.0788%2090.6725C68.0888%2090.7757%2068.1021%2090.8799%2068.1132%2090.9842C68.1198%2091.0418%2068.1254%2091.095%2068.132%2091.1583L68.1387%2091.2137C68.1623%2091.3985%2068.1886%2091.5833%2068.2174%2091.7682V91.7837C68.2174%2091.8147%2068.2285%2091.8469%2068.234%2091.8779C68.2584%2092.0277%2068.2839%2092.1774%2068.3117%2092.3282C68.3172%2092.357%2068.3239%2092.3858%2068.3294%2092.4147C68.3438%2092.4901%2068.3604%2092.5655%2068.376%2092.6365C68.3915%2092.7074%2068.4104%2092.8128%2068.4292%2092.9004C68.4403%2092.9525%2068.4536%2093.0046%2068.4658%2093.0556C68.4843%2093.1362%2068.5031%2093.2172%2068.5224%2093.2985C68.5368%2093.3595%2068.5501%2093.4205%2068.5645%2093.4803C68.5789%2093.5402%2068.6055%2093.6345%2068.6255%2093.711C68.6454%2093.7875%2068.6676%2093.8729%2068.6887%2093.9527C68.6998%2093.9916%2068.7087%2094.0304%2068.7186%2094.0636C68.7486%2094.1745%2068.7818%2094.2854%2068.8151%2094.3963C68.8351%2094.464%2068.8539%2094.5316%2068.8739%2094.5993L68.8894%2094.6547C68.9478%2094.8462%2069.0092%2095.0376%2069.0735%2095.2291V95.2391L69.099%2095.3123C69.1533%2095.4731%2069.2099%2095.6339%2069.2676%2095.7947C69.2775%2095.8224%2069.2886%2095.8501%2069.2986%2095.8778C69.3219%2095.9422%2069.3463%2096.0054%2069.3707%2096.0697C69.4039%2096.1595%2069.4372%2096.2482%2069.4716%2096.338C69.4949%2096.3979%2069.5193%2096.4567%2069.5437%2096.5166L69.628%2096.7262C69.649%2096.7761%2069.6679%2096.8271%2069.6889%2096.877C69.7322%2096.9812%2069.7777%2097.0855%2069.8231%2097.1897C69.8464%2097.244%2069.8686%2097.3006%2069.893%2097.3516L69.9174%2097.4082C69.9972%2097.5878%2070.0789%2097.7671%2070.1625%2097.946L70.1735%2097.9704C70.1979%2098.0214%2070.2234%2098.0724%2070.2478%2098.1234C70.3133%2098.2598%2070.3776%2098.3973%2070.4452%2098.5326L70.4785%2098.5969C70.5351%2098.7078%2070.5894%2098.8187%2070.6515%2098.9296C70.6981%2099.0194%2070.7424%2099.1093%2070.7901%2099.198L70.8167%2099.2456C70.9712%2099.534%2071.1313%2099.8193%2071.2969%20100.102C71.3113%20100.126%2071.3235%20100.151%2071.3379%20100.175C71.3523%20100.199%2071.3723%20100.227%2071.3878%20100.254C71.6244%20100.653%2071.8709%20101.045%2072.1275%20101.431C72.1419%20101.452%2072.1541%20101.475%2072.1685%20101.497C72.1829%20101.519%2072.2173%20101.564%2072.2406%20101.6C72.4446%20101.902%2072.652%20102.201%2072.8682%20102.493L72.9314%20102.575C73.0645%20102.754%2073.1994%20102.931%2073.3362%20103.107L73.3595%20103.137C73.4704%20103.272%2073.5746%20103.405%2073.6833%20103.537L73.7798%20103.656L73.7875%20103.665C73.9287%20103.835%2074.0718%20104.002%2074.2167%20104.167L74.2344%20104.187L74.3597%20104.326C74.4551%20104.437%2074.5516%20104.541%2074.6481%20104.646L74.698%20104.698C74.7601%20104.764%2074.8222%20104.828%2074.8843%20104.893C74.9464%20104.959%2075.0284%20105.046%2075.106%20105.122L75.1814%20105.197C75.2502%20105.266%2075.319%20105.334%2075.3888%20105.401C75.4587%20105.469%2075.5108%20105.524%2075.5729%20105.583L75.6727%20105.676C75.747%20105.747%2075.8224%20105.817%2075.8945%20105.886C75.9488%20105.936%2076.0054%20105.987%2076.0564%20106.036L76.1784%20106.146L76.4002%20106.345C76.4478%20106.386%2076.4944%20106.429%2076.5432%20106.469C76.592%20106.509%2076.643%20106.55%2076.6918%20106.59L76.9136%20106.774C76.9535%20106.806%2076.9923%20106.84%2077.0322%20106.872C77.0943%20106.921%2077.1576%20106.967%2077.2197%20107.015C77.2818%20107.062%2077.3594%20107.126%2077.4292%20107.174L77.5168%20107.241C77.6011%20107.303%2077.6876%20107.362%2077.7719%20107.423C77.8307%20107.465%2077.8894%20107.508%2077.9493%20107.549L77.997%20107.584C78.1523%20107.69%2078.3086%20107.794%2078.4661%20107.894L78.4905%20107.91C78.6357%20108.002%2078.7821%20108.092%2078.9341%20108.178L79.0449%20108.241L98.4999%20119.478C98.6175%20119.546%2098.7346%20119.611%2098.8515%20119.674L98.9867%20119.744L99.1653%20119.836C99.2119%20119.859%2099.2584%20119.885%2099.3039%20119.908C99.3793%20119.946%2099.4547%20119.979%2099.5257%20120.019L99.6832%20120.093L99.7464%20120.123C99.8942%20120.19%20100.042%20120.252%20100.19%20120.311L100.208%20120.317C100.35%20120.374%20100.492%20120.428%20100.633%20120.477L100.693%20120.497L100.856%20120.55C100.93%20120.575%20101.004%20120.6%20101.078%20120.622L101.189%20120.655L101.385%20120.709C101.434%20120.722%20101.484%20120.738%20101.532%20120.75C101.579%20120.762%20101.643%20120.773%20101.693%20120.785L101.888%20120.829L101.986%20120.851L102.085%20120.867C102.158%20120.553%20102.219%20120.227%20102.266%20119.886C102.346%20119.313%20102.388%20118.736%20102.392%20118.157Z'%20fill='url(%23paint0_linear_302_6100)'/%3e%3cpath%20d='M91.4307%2064.3019L78.0005%2056.5472L75.8214%2055.2885L71.9957%2053.0796C59.9427%2046.1222%2050.1032%2051.73%2050.0633%2065.5794L50.0001%2087.9076C49.9613%20101.769%2059.7365%20118.694%2071.7894%20125.652L91.2244%20136.872C103.276%20143.831%20113.117%20138.227%20113.156%20124.373L113.183%20114.546V113.668L113.217%20102.041C113.259%2088.1926%20103.482%2071.2604%2091.4307%2064.3019ZM102.419%20108.881V109.349L102.395%20118.156C102.394%20118.733%20102.355%20119.309%20102.278%20119.881C102.232%20120.222%20102.167%20120.547%20102.097%20120.863C100.943%20125.853%2096.5184%20127.534%2091.2621%20124.5L71.8249%20113.283C65.708%20109.753%2060.7478%20101.16%2060.7678%2094.1275L60.831%2071.7949C60.8454%2066.777%2063.3948%2063.8927%2067.0787%2063.9382C67.4454%2063.9447%2067.8112%2063.9777%2068.1732%2064.0369C69.5103%2064.2737%2070.7927%2064.7537%2071.9568%2065.453L77.6312%2068.7232L78.7401%2069.3619L91.3974%2076.6697C97.512%2080.205%20102.476%2088.7947%20102.452%2095.8275L102.419%20108.881Z'%20fill='url(%23paint1_linear_302_6100)'/%3e%3cpath%20d='M129.993%2090.9695C129.993%2090.9063%20129.987%2090.842%20129.985%2090.7788C129.985%2090.648%20129.972%2090.516%20129.966%2090.3851C129.958%2090.2288%20129.953%2090.0746%20129.944%2089.9172C129.936%2089.7952%20129.924%2089.671%20129.914%2089.5479C129.904%2089.4248%20129.892%2089.2707%20129.88%2089.1309C129.873%2089.04%20129.867%2088.9491%20129.858%2088.8582C129.838%2088.6519%20129.813%2088.4445%20129.789%2088.2383C129.776%2088.1274%20129.766%2088.0165%20129.752%2087.9056C129.752%2087.869%20129.744%2087.8324%20129.739%2087.7947C129.694%2087.431%20129.642%2087.0658%20129.583%2086.6991L129.578%2086.6669C129.568%2086.6037%20129.555%2086.5405%20129.544%2086.4773C129.497%2086.1845%20129.448%2085.8918%20129.392%2085.5979C129.381%2085.5391%20129.368%2085.4815%20129.357%2085.4227C129.328%2085.2752%20129.297%2085.1277%20129.267%2084.9791C129.232%2084.805%20129.199%2084.632%20129.156%2084.459C129.134%2084.3559%20129.107%2084.2528%20129.084%2084.1497C129.048%2083.99%20129.011%2083.8303%20128.973%2083.6706C128.944%2083.5519%20128.92%2083.4333%20128.89%2083.3146C128.852%2083.1627%20128.809%2083.0097%20128.77%2082.8566C128.731%2082.7036%20128.688%2082.5395%20128.645%2082.3809C128.625%2082.3055%20128.606%2082.2301%20128.585%2082.1591C128.524%2081.9373%20128.458%2081.7222%20128.393%2081.5038C128.354%2081.3729%20128.318%2081.2409%20128.282%2081.1101C128.271%2081.0746%20128.262%2081.0391%20128.251%2080.9992C128.135%2080.6214%20128.014%2080.244%20127.889%2079.867L127.881%2079.8448C127.863%2079.7927%20127.844%2079.7417%20127.827%2079.6896C127.716%2079.3768%20127.613%2079.063%20127.494%2078.7503C127.474%2078.6948%20127.452%2078.6394%20127.432%2078.584C127.385%2078.4564%20127.336%2078.3289%20127.288%2078.2014C127.222%2078.0273%20127.159%2077.8532%20127.091%2077.6791C127.046%2077.5615%20126.997%2077.4451%20126.949%2077.3275C126.894%2077.1886%20126.838%2077.0499%20126.782%2076.9117C126.742%2076.813%20126.704%2076.7143%20126.663%2076.6167C126.577%2076.4094%20126.487%2076.2042%20126.398%2075.9979C126.353%2075.8871%20126.308%2075.7861%20126.262%2075.6797L126.215%2075.5688C126.059%2075.2147%20125.898%2074.8617%20125.733%2074.5098L125.711%2074.4632C125.661%2074.3523%20125.608%2074.2525%20125.558%2074.146C125.431%2073.881%20125.305%2073.616%20125.174%2073.3532C125.153%2073.311%20125.13%2073.2689%20125.109%2073.2256C124.998%2073.0038%20124.887%2072.7821%20124.768%2072.5669C124.677%2072.3906%20124.589%2072.2143%20124.495%2072.0391C124.478%2072.0069%20124.459%2071.9759%20124.441%2071.9426C124.136%2071.3756%20123.821%2070.8137%20123.495%2070.257C123.467%2070.2094%20123.443%2070.1617%20123.415%2070.114C123.333%2069.9743%20123.247%2069.8379%20123.164%2069.6992C123.024%2069.4675%20122.885%2069.2357%20122.742%2069.0062C122.618%2068.8066%20122.492%2068.6092%20122.365%2068.4118C122.22%2068.19%20122.076%2067.9604%20121.927%2067.7364C121.877%2067.6599%20121.829%2067.5823%20121.778%2067.5069C121.727%2067.4315%20121.682%2067.3727%20121.635%2067.304C121.233%2066.7085%20120.824%2066.1196%20120.4%2065.5441L120.395%2065.5352C120.354%2065.4787%20120.309%2065.4243%20120.268%2065.3689C120.006%2065.017%20119.741%2064.6688%20119.472%2064.3243L119.425%2064.2633C119.215%2063.996%20119%2063.7343%20118.786%2063.4715C118.722%2063.395%20118.661%2063.3163%20118.598%2063.2398L118.584%2063.222C118.306%2062.8879%20118.024%2062.5581%20117.739%2062.2328L117.702%2062.1929C117.621%2062.0998%20117.537%2062.0111%20117.455%2061.919C117.266%2061.7083%20117.078%2061.4954%20116.886%2061.2892L116.788%2061.1871C116.666%2061.0563%20116.542%2060.9288%20116.418%2060.799C116.276%2060.6504%20116.135%2060.4985%20115.991%2060.3554C115.942%2060.3055%20115.891%2060.2579%20115.841%2060.208C115.706%2060.0716%20115.57%2059.9385%20115.433%2059.8043C115.297%2059.6701%20115.193%2059.5626%20115.071%2059.445C115.005%2059.3829%20114.939%2059.323%20114.873%2059.2609C114.726%2059.1212%20114.577%2058.9837%20114.43%2058.8473C114.319%2058.7497%20114.219%2058.6488%20114.112%2058.5523C114.034%2058.4814%20113.953%2058.4137%20113.873%2058.3427C113.725%2058.2104%20113.575%2058.0796%20113.424%2057.9502C113.33%2057.8692%20113.238%2057.7849%20113.142%2057.7051C113.047%2057.6253%20112.946%2057.5465%20112.848%2057.4656C112.7%2057.3443%20112.553%2057.2242%20112.405%2057.1052C112.326%2057.042%20112.248%2056.9754%20112.169%2056.9122C112.045%2056.8157%20111.921%2056.7248%20111.798%2056.6294C111.675%2056.5341%20111.523%2056.4176%20111.386%2056.3145C111.328%2056.2713%20111.275%2056.2258%20111.213%2056.1826C111.045%2056.0595%20110.88%2055.943%20110.707%2055.8233C110.596%2055.7412%20110.476%2055.6569%20110.36%2055.5771L110.265%2055.5094C109.958%2055.2995%20109.651%2055.0958%20109.341%2054.8984H109.334L109.288%2054.8696C109%2054.6877%20108.711%2054.5092%20108.42%2054.3384L108.206%2054.2142L88.7824%2042.9941C88.551%2042.8603%2088.3204%2042.7313%2088.0904%2042.6071C88.0017%2042.5594%2087.9141%2042.5162%2087.8254%2042.4696L87.4717%2042.2866C87.3807%2042.24%2087.2887%2042.1901%2087.1989%2042.1447C87.0492%2042.0704%2086.9017%2042.0049%2086.7553%2041.9351C86.6511%2041.8863%2086.5479%2041.8353%2086.4448%2041.7887L86.3195%2041.7299C86.0238%2041.5991%2085.7332%2041.476%2085.4479%2041.3607L85.4035%2041.344C85.1252%2041.2331%2084.8491%2041.1289%2084.5729%2041.0313L84.4465%2040.9847C84.3356%2040.9481%2084.2336%2040.9149%2084.1271%2040.8805C83.9819%2040.8328%2083.8366%2040.7818%2083.6924%2040.7385C83.6159%2040.7153%2083.5405%2040.6975%2083.464%2040.6753C83.3354%2040.6376%2083.2078%2040.6033%2083.0792%2040.5644C82.9827%2040.5389%2082.8851%2040.5079%2082.7898%2040.4846C82.6944%2040.4613%2082.5802%2040.4436%2082.4737%2040.4192C82.3462%2040.3903%2082.2176%2040.3604%2082.0912%2040.3327C82.0268%2040.3194%2081.9603%2040.3016%2081.896%2040.2894C81.7729%2040.265%2081.6531%2040.2506%2081.53%2040.2295C81.3826%2040.204%2081.234%2040.1774%2081.0865%2040.1564C81.0388%2040.1508%2080.9878%2040.1397%2080.939%2040.1331C80.8148%2040.1109%2080.6928%2040.1109%2080.5697%2040.0954C80.4122%2040.0776%2080.2548%2040.0599%2080.0995%2040.0477C80.0563%2040.0477%2080.0108%2040.0377%2079.9676%2040.0344C79.8567%2040.0266%2079.7558%2040.0288%2079.6482%2040.0233C79.4608%2040.0144%2079.2756%2040.0067%2079.0893%2040C79.0394%2040%2078.9884%2040%2078.9385%2040C78.8575%2040%2078.7799%2040.01%2078.699%2040.0111C78.4661%2040.0111%2078.2354%2040.0266%2078.0081%2040.0432C77.9405%2040.0432%2077.8706%2040.0432%2077.8041%2040.0532C77.7054%2040.0621%2077.61%2040.0765%2077.5124%2040.0876L77.3017%2040.1109C77.0455%2040.1453%2076.7916%2040.1841%2076.5421%2040.2351L76.5144%2040.244C76.4401%2040.2595%2076.368%2040.2794%2076.2926%2040.2961C76.0897%2040.3415%2075.8878%2040.3892%2075.6904%2040.4447C75.5895%2040.4735%2075.4919%2040.5068%2075.3921%2040.5389C75.2646%2040.5789%2075.1349%2040.6143%2075.0085%2040.6598C74.9752%2040.6709%2074.9441%2040.6875%2074.912%2040.6986C74.7146%2040.7707%2074.5239%2040.8517%2074.332%2040.9348C74.2389%2040.9747%2074.1435%2041.0113%2074.0526%2041.0535C73.7731%2041.1843%2073.4981%2041.3252%2073.2331%2041.4793L62.5375%2047.6893C62.8036%2047.5351%2063.0775%2047.3943%2063.3559%2047.2635C63.4479%2047.2202%2063.5433%2047.1847%2063.6364%2047.1437C63.8272%2047.0605%2064.019%2046.9796%2064.2153%2046.9075C64.3727%2046.8498%2064.5335%2046.7966%2064.6954%2046.7478C64.7952%2046.7168%2064.8928%2046.6824%2064.9937%2046.6536C65.1911%2046.5981%2065.3941%2046.5504%2065.5959%2046.505C65.6691%2046.4883%2065.7412%2046.4684%2065.8177%2046.4528C66.0761%2046.4007%2066.3389%2046.3586%2066.605%2046.3231C66.6749%2046.3142%2066.7458%2046.3065%2066.8157%2046.2987C66.9798%2046.2798%2067.1484%2046.2665%2067.3114%2046.2543C67.5387%2046.2366%2067.7694%2046.2266%2068.0023%2046.2211C68.132%2046.2211%2068.2606%2046.2133%2068.3915%2046.2144C68.5756%2046.2144%2068.763%2046.2244%2068.946%2046.2333C69.0957%2046.2399%2069.2454%2046.2455%2069.3973%2046.2577C69.5492%2046.2699%2069.71%2046.2887%2069.8675%2046.3054C70.0249%2046.322%2070.2112%2046.3431%2070.3865%2046.3675C70.5328%2046.3885%2070.6803%2046.4151%2070.83%2046.4406C71.0163%2046.4728%2071.2026%2046.505%2071.3911%2046.5449C71.5176%2046.5715%2071.6462%2046.6003%2071.7737%2046.6303C71.9748%2046.6768%2072.177%2046.7271%2072.3803%2046.7811C72.5078%2046.8155%2072.6365%2046.8498%2072.764%2046.892C72.9858%2046.9552%2073.2076%2047.025%2073.4293%2047.0971C73.5402%2047.1315%2073.6411%2047.1648%2073.7476%2047.2014C74.0625%2047.3123%2074.3786%2047.4231%2074.698%2047.5529L74.7423%2047.5695C75.075%2047.7026%2075.4077%2047.8479%2075.7403%2047.9998C75.8435%2048.0464%2075.9466%2048.0974%2076.0508%2048.1462C76.2896%2048.2585%2076.5295%2048.3757%2076.7705%2048.4977C76.8881%2048.5576%2077.006%2048.6186%2077.1243%2048.6807C77.4414%2048.8481%2077.7597%2049.0189%2078.0802%2049.2041L97.5219%2060.4253C97.8834%2060.6338%2098.2427%2060.8515%2098.5997%2061.0785L98.6507%2061.1095C98.9945%2061.3313%2099.3361%2061.5531%2099.6754%2061.7915C99.7918%2061.8724%2099.9072%2061.9567%20100.022%2062.0388C100.244%2062.1996%20100.476%2062.3626%20100.701%2062.53C100.839%2062.6332%20100.975%2062.7385%20101.113%2062.8439C101.316%2062.9999%20101.518%2063.1588%20101.72%2063.3207C101.868%2063.439%20102.016%2063.5588%20102.164%2063.68C102.357%2063.8397%20102.549%2064.0016%20102.739%2064.1657C102.887%2064.2951%20103.035%2064.4256%20103.183%2064.5572C103.37%2064.7228%20103.555%2064.8909%20103.737%2065.0617C103.886%2065.1981%20104.035%2065.3356%20104.181%2065.4753C104.369%2065.6539%20104.557%2065.8357%20104.743%2066.0187C104.878%2066.1518%20105.015%2066.2849%20105.149%2066.4202C105.343%2066.6153%20105.534%2066.8149%20105.726%2067.0145C105.85%2067.1443%20105.974%2067.2718%20106.097%2067.4038C106.319%2067.6433%20106.541%2067.8884%20106.763%2068.1334C106.845%2068.2255%20106.929%2068.3153%20107.011%2068.4085C107.313%2068.7522%20107.612%2069.1015%20107.907%2069.4564C107.97%2069.5329%20108.031%2069.6116%20108.094%2069.6882C108.325%2069.9698%20108.556%2070.2526%20108.781%2070.5409C109.05%2070.8847%20109.315%2071.2329%20109.576%2071.5855C109.619%2071.6443%20109.665%2071.6964%20109.709%2071.7607C110.133%2072.3363%20110.543%2072.9251%20110.944%2073.5195C111.042%2073.6637%20111.141%2073.8078%20111.236%2073.9531C111.383%2074.1749%20111.529%2074.4022%20111.674%2074.6284C111.8%2074.8258%20111.927%2075.0232%20112.051%2075.2228C112.194%2075.4524%20112.333%2075.6841%20112.472%2075.9159C112.583%2076.1011%20112.694%2076.2863%20112.805%2076.4703C113.13%2077.027%20113.446%2077.5893%20113.751%2078.157C113.862%2078.3633%20113.973%2078.5706%20114.076%2078.7769C114.179%2078.9832%20114.307%2079.2205%20114.417%2079.4423C114.57%2079.7472%20114.72%2080.0544%20114.867%2080.3616C114.918%2080.4725%20114.97%2080.5723%20115.02%2080.6787C115.209%2081.0816%20115.394%2081.4882%20115.574%2081.8985C115.621%2082.0094%20115.666%2082.1126%20115.712%2082.2201C115.842%2082.5232%20115.97%2082.8274%20116.095%2083.1328C116.152%2083.2718%20116.208%2083.4104%20116.263%2083.5486C116.379%2083.8399%20116.49%2084.1315%20116.595%2084.4236C116.643%2084.5511%20116.692%2084.6786%20116.74%2084.8061C116.874%2085.1758%20117.004%2085.5454%20117.129%2085.9151C117.147%2085.9661%20117.165%2086.0182%20117.183%2086.0692C117.324%2086.4891%20117.457%2086.909%20117.585%2087.3289C117.624%2087.4609%20117.661%2087.5929%20117.695%2087.7248C117.782%2088.0176%20117.866%2088.3103%20117.945%2088.6031C117.988%2088.7628%20118.029%2088.9225%20118.071%2089.0833C118.142%2089.3531%20118.209%2089.6229%20118.273%2089.8928C118.312%2090.0532%20118.349%2090.2133%20118.384%2090.3729C118.447%2090.6494%20118.506%2090.9259%20118.561%2091.2024C118.591%2091.3499%20118.622%2091.4974%20118.651%2091.646C118.719%2091.9986%20118.782%2092.3502%20118.839%2092.7006C118.849%2092.7638%20118.862%2092.827%20118.872%2092.8902C118.938%2093.3042%20118.996%2093.7167%20119.046%2094.1278C119.061%2094.2387%20119.07%2094.3496%20119.084%2094.4604C119.118%2094.7562%20119.148%2095.0537%20119.175%2095.3531C119.187%2095.4929%20119.198%2095.6315%20119.208%2095.7701C119.229%2096.0495%20119.246%2096.3279%20119.259%2096.6051C119.266%2096.7371%20119.272%2096.869%20119.278%2097.001C119.292%2097.3936%20119.301%2097.7839%20119.3%2098.172L119.237%20120.505C119.237%20120.912%20119.225%20121.31%20119.207%20121.702C119.207%20121.813%20119.192%20121.924%20119.187%20122.035C119.171%20122.304%20119.154%20122.572%20119.129%20122.835C119.116%20122.986%20119.099%20123.135%20119.083%20123.285C119.058%20123.507%20119.033%20123.728%20119.003%20123.95C118.981%20124.11%20118.957%20124.266%20118.932%20124.423C118.9%20124.624%20118.866%20124.822%20118.829%20125.018C118.795%20125.193%20118.761%20125.367%20118.725%20125.538C118.688%20125.71%20118.648%20125.884%20118.605%20126.06C118.556%20126.262%20118.504%20126.461%20118.449%20126.657C118.406%20126.811%20118.363%20126.964%20118.316%20127.115C118.244%20127.349%20118.168%20127.577%20118.088%20127.804C118.044%20127.928%20118.001%20128.053%20117.956%20128.175C117.811%20128.557%20117.657%20128.928%20117.488%20129.284C117.357%20129.561%20117.221%20129.832%20117.077%20130.092C117.061%20130.121%20117.042%20130.148%20117.027%20130.177C116.895%20130.412%20116.758%20130.64%20116.616%20130.862C116.582%20130.915%20116.545%20130.966%20116.506%20131.02C116.386%20131.199%20116.263%20131.375%20116.136%20131.546C116.084%20131.616%20116.031%20131.686%20115.978%20131.755C115.855%20131.913%20115.729%20132.067%20115.6%20132.216C115.552%20132.273%20115.504%20132.327%20115.455%20132.385C115.279%20132.582%20115.097%20132.774%20114.91%20132.956C114.881%20132.983%20114.85%20133.01%20114.821%20133.038C114.66%20133.191%20114.495%20133.339%20114.327%20133.481C114.264%20133.533%20114.2%20133.584%20114.137%20133.635C113.989%20133.753%20113.841%20133.866%20113.693%20133.975C113.63%20134.02%20113.568%20134.067%20113.504%20134.11C113.292%20134.255%20113.077%20134.395%20112.855%20134.524L123.549%20128.314C123.771%20128.185%20123.986%20128.045%20124.199%20127.9C124.264%20127.857%20124.326%20127.81%20124.388%20127.765C124.539%20127.656%20124.687%20127.543%20124.831%20127.425C124.895%20127.374%20124.959%20127.323%20125.021%20127.271C125.19%20127.129%20125.356%20126.982%20125.518%20126.828C125.547%20126.801%20125.577%20126.776%20125.604%20126.748C125.792%20126.566%20125.974%20126.374%20126.15%20126.177C126.199%20126.121%20126.246%20126.066%20126.295%20126.007C126.424%20125.859%20126.55%20125.706%20126.673%20125.546C126.727%20125.477%20126.784%20125.407%20126.832%20125.337C126.958%20125.167%20127.081%20124.991%20127.2%20124.812C127.236%20124.759%20127.272%20124.707%20127.311%20124.653L127.344%20124.604C127.475%20124.399%20127.598%20124.186%20127.72%20123.971C127.737%20123.941%20127.756%20123.915%20127.772%20123.885C127.911%20123.633%20128.044%20123.375%20128.17%20123.108L128.184%20123.076C128.352%20122.72%20128.506%20122.349%20128.652%20121.967C128.665%20121.933%20128.68%20121.902%20128.694%20121.868C128.726%20121.78%20128.753%20121.686%20128.784%20121.597C128.863%20121.375%20128.941%20121.141%20129.013%20120.907C129.033%20120.843%20129.056%20120.783%20129.075%20120.719C129.101%20120.632%20129.121%20120.539%20129.145%20120.451C129.2%20120.255%20129.252%20120.056%20129.301%20119.854C129.321%20119.769%20129.347%20119.691%20129.366%20119.605C129.385%20119.52%20129.401%20119.423%20129.42%20119.334C129.457%20119.161%20129.492%20118.987%20129.525%20118.811C129.543%20118.719%20129.564%20118.631%20129.581%20118.537C129.598%20118.444%20129.612%20118.323%20129.629%20118.218C129.653%20118.062%20129.677%20117.904%20129.7%20117.745C129.711%20117.661%20129.726%20117.582%20129.736%20117.497C129.753%20117.362%20129.764%20117.221%20129.779%20117.085C129.795%20116.948%20129.813%20116.785%20129.826%20116.632C129.832%20116.57%20129.84%20116.51%20129.845%20116.448C129.861%20116.249%20129.87%20116.041%20129.883%20115.837C129.889%20115.726%20129.898%20115.615%20129.904%20115.505C129.904%20115.477%20129.904%20115.45%20129.904%20115.422C129.918%20115.077%20129.927%20114.726%20129.928%20114.37V114.308L129.991%2091.9753C130.002%2091.6331%20130.003%2091.2978%20129.993%2090.9695Z'%20fill='%230B0E11'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_302_6100'%20x1='68.0078'%20y1='92.449'%20x2='102.417'%20y2='92.449'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23313131'/%3e%3cstop%20offset='1'%20stop-color='%230B0E11'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_302_6100'%20x1='50.0001'%20y1='94.977'%20x2='113.22'%20y2='94.977'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234E4E4E'/%3e%3cstop%20offset='1'%20stop-color='%230B0E11'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"}}),h1:({children:e})=>t.jsx("div",{className:"mc-heading mc-h1",children:e}),h2:({children:e})=>t.jsx("div",{className:"mc-heading mc-h2",children:e}),h3:({children:e})=>t.jsx("div",{className:"mc-heading mc-h3",children:e}),h4:({children:e})=>t.jsx("div",{className:"mc-heading mc-h3",children:e}),h5:({children:e})=>t.jsx("div",{className:"mc-heading mc-h3",children:e}),h6:({children:e})=>t.jsx("div",{className:"mc-heading mc-h3",children:e}),hr:()=>t.jsx("hr",{className:"mc-hr"}),blockquote:({children:e})=>t.jsx("div",{className:"mc-blockquote",children:e}),code:({className:e,children:n,...r})=>{if(/language-/.test(e??"")){const i=/language-(\w+)/.exec(e??"")?.[1];return t.jsxs("span",{className:"mc-codeblock",children:[i&&t.jsx("span",{className:"mc-codeblock-lang",children:i}),t.jsx("pre",{children:t.jsx("code",{className:e,...r,children:n})})]})}return t.jsx("code",{className:"mc-inline-code",...r,children:n})}},Rv=({content:e})=>t.jsx("div",{className:"message-content",children:t.jsx(Lw,{remarkPlugins:[Bv],components:Nv,children:e})}),Fv=({message:e,submittingActions:n,onActionSubmit:r,onActionCancel:i,onConfirmTx:o,onApproveTx:s,onActionButtonClick:a})=>{const c="user"===e.sender?"message-user":"message-bot";return t.jsx("div",{className:`message ${c}`,role:"article",children:t.jsxs("div",{className:"message-bubble",children:[t.jsx("div",{className:"message-text",children:t.jsx(Rv,{content:e.text})}),e.walletActions?.map((a,c)=>{const u=`${e.id}-${c}`,l=!!n[u];return t.jsx("div",{children:t.jsx(tp,{walletAction:a,isSubmitting:l,onSubmit:t=>r(e,a,c,t),onCancel:()=>i(e.id,c),onConfirm:t=>o(e,c,t),onApprove:t=>s(e,c,t)})},u)}),e.actionButtons&&e.actionButtons.length>0&&t.jsx("div",{className:"message-action-buttons",children:e.actionButtons.map((n,r)=>t.jsx("button",{type:"button",className:"message-action-button",onClick:()=>a(n.prompt,n.language),children:n.label},`${e.id}-actionbtn-${r}`))}),t.jsxs("div",{className:"message-timestamp",children:[e.timestamp.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),"user"===e.sender&&t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:"check-icon",children:t.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})})},Ov=({suggestions:e,hideIcons:n=!1,style:r})=>0===e.length?null:t.jsx("div",{className:"suggestions-container",style:r,children:e.map(e=>t.jsxs("button",{className:"suggestion-button",onClick:e.action,type:"button",children:[!n&&e.icon&&t.jsx("span",{className:"suggestion-icon",children:e.icon}),t.jsx("span",{className:"suggestion-text",children:e.text})]},e.id??e.text))});function Pv(e,t){if(0===t)return!0;const n=new Date(e[t].timestamp),r=new Date(e[t-1].timestamp);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()!==r.getTime()}const Lv=({messages:e,isTyping:r,submittingActions:i,defaultSuggestions:o,followUpChips:s,showDefaultSuggestions:a,messagesContainerRef:c,messagesEndRef:u,onActionSubmit:l,onActionCancel:f,onConfirmTx:d,onApproveTx:p,onActionButtonClick:m})=>{const{t:g}=h(),b=n.useRef(e.length),w=n.useRef(r);n.useEffect(()=>{const t=e.length>b.current,n=r&&!w.current;b.current=e.length,w.current=r,(t||n)&&u.current?.scrollIntoView({behavior:"smooth"})},[e,r,u]);const y=s.length>0&&!r,v=a&&0===s.length;return t.jsxs("div",{className:"chat-modal-messages-wrapper",children:[t.jsxs("div",{className:"chat-modal-messages",ref:c,role:"log","aria-live":"polite",children:[e.map((n,r)=>t.jsxs("div",{children:[Pv(e,r)&&t.jsx("div",{className:"date-separator",children:Gd(n.timestamp)}),t.jsx(Fv,{message:n,submittingActions:i,onActionSubmit:l,onActionCancel:f,onConfirmTx:d,onApproveTx:p,onActionButtonClick:m})]},n.id)),r&&t.jsx("div",{className:"message message-bot typing-indicator",role:"status","aria-label":g("botIsTyping"),children:t.jsxs("div",{className:"message-bubble",children:[t.jsx("span",{className:"typing-dot"}),t.jsx("span",{className:"typing-dot"}),t.jsx("span",{className:"typing-dot"})]})}),y&&t.jsx(Ov,{suggestions:s,hideIcons:!0}),v&&t.jsxs(t.Fragment,{children:[e.length>1&&t.jsx("div",{className:"message message-bot",role:"article",children:t.jsx("div",{className:"message-bubble",children:t.jsx("div",{className:"message-text",children:g("canIHelpYou")})})}),t.jsx(Ov,{suggestions:o})]}),t.jsx("div",{ref:u})]}),t.jsx(rp,{scrollContainerRef:c})]})},Dv=({inputValue:e,setInputValue:r,isTyping:i,onSubmit:o,inputRef:s})=>{const{t:a}=h(),c=n.useCallback(e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),o())},[o]);return t.jsx("div",{className:"chat-modal-input",children:t.jsxs("div",{className:"chat-modal-input-row",children:[t.jsx("input",{ref:s,type:"text",placeholder:a("messagePlaceholder"),value:e,onChange:e=>r(e.target.value),onKeyPress:c,disabled:i,"aria-label":"Message input"}),t.jsx("button",{className:"send-button",onClick:o,"aria-label":a("sendMessage"),disabled:i||""===e.trim(),type:"button",children:t.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='36'%20height='36'%20rx='18'%20fill='%232358B2'/%3e%3cmask%20id='mask0_1924_16177'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='11'%20y='10'%20width='17'%20height='16'%3e%3crect%20x='11.334'%20y='10'%20width='16'%20height='16'%20fill='url(%23pattern0_1924_16177)'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1924_16177)'%3e%3crect%20x='11.334'%20y='10'%20width='16'%20height='16'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cpattern%20id='pattern0_1924_16177'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_1924_16177'%20transform='scale(0.00195312)'/%3e%3c/pattern%3e%3cimage%20id='image0_1924_16177'%20width='512'%20height='512'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOgAAADoABlffMYAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURBVHic7d13uGRlme7/79M0ijnrKM6ImHAMmHXGgB7zKJhzAAMgZjFg4DfnzO8ISM4gKIKIEgwImAAjiAQRCSoCCgaCgOQcn/PHu5reNHt37121qt61qr6f6+pLbLr3vi/Seuqtp947MhNJkjRdFtUOIEmSxs8BQJKkKeQAIEnSFHIAkCRpCjkASJI0hRbXDjCoiFgMPBB40Iwf9wZimV96E/AP4PzmxwWZeeMYo0qS1DnRl48BRsSqwFrA85ofa3DHh/18JHAxcCrwmyU/MvPslqJKktR5nR0AImJ1lj7s1wJWH/G3vAw4EjgE+EFmXj7i7ydJUjWdGgAi4uXA2ykP/YdWjHITcBRlGDggMy+umEWSpNZVHwAiYmXgrcAngMdXDTO7G4ADgZ0z88TaYSRJakO1ASAi7glsAHwUWLVKiIU7FtgZ+FZm3lQ7jCRJgxr7ABARDwE+AmwI3Gus37w9fwW2AvbKzBtqh5EkaaHGNgBExKOBz1CO++80lm86ehcA2wB7ZOY1tcNIkjRfIx8Ams/rbwL8f8CdR/rN6vknsD2wS2ZeWTuMJEkrMtIBICKeCuwFr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3PrcC3KZW8p9QOI0maXq0NAAAR8QTgEODhrX3RyXAL8A1gi8w8vXYYSZJaHQAAIuKewJ7Am1r9wv10I+WtkS9k5tm1w0iStETrA8BtXzjiPZSSmruO5Bt023XAl4GtMvPc2mEkSVrWyAYAgIhYA9gPeOrIvkm3XA3sDmybmRfWDiNJ0lxGOgAARMQiYH3g88D9R/rN6rkc2BnYITMvrR1GkqQVGfkAcNs3irgP8P8DGzE5Vwj/E9ge2CUzr6wdRpKk+RrbAHDbNyyfFPgf4FUMcRNhZRdQLj/aw0peSVIfjX0AuO0bRzwK2BhYF7hLlRALdwKwG3CAlbySpD6rNgDcFiDiAcAHgXcCq1UNM7trKZ/h3z0zT6odRpKkNlQfAGaKiH8HXtH8eDawuFKUG4GjgO8C+2XmFZVySJI0Ep0aAGaKiHsBL6EMAy8HHjjib3ku8EPg+8BPMvPqEX8/SZKq6ewAMFNEBPB0ykCwOvDgGT/uz8KWCW8G/gT8fsaP07yiV5I0TXoxACxPRCymnA7MHAoeAFwPXAFcOeN/LwPOycwb66SVJKkbej8ASJKkhevr5/AlSdIQHAAkSZpCDgCSJE0hBwBJkqaQA4AkSVPo/wH9hnZgmG1pVwAAAABJRU5ErkJggg=='/%3e%3c/defs%3e%3c/svg%3e",alt:"Send",width:44,height:44})})]})})};var Uv,Hv,zv={},jv={exports:{}},Vv=jv.exports;function qv(){return Uv||(Uv=1,e=jv,t=jv.exports,function(n,r){var i="function",o="undefined",s="object",a="string",c="major",u="model",l="name",f="type",d="vendor",h="version",p="architecture",m="console",g="mobile",b="tablet",w="smarttv",y="wearable",v="embedded",A="Amazon",k="Apple",x="ASUS",C="BlackBerry",E="Browser",S="Chrome",T="Firefox",M="Google",I="Honor",B="Huawei",N="LG",R="Microsoft",F="Motorola",O="Nvidia",P="OnePlus",L="Opera",D="OPPO",U="Samsung",H="Sharp",z="Sony",j="Xiaomi",V="Zebra",q="Facebook",J="Chromium OS",G="Mac OS",W=" Browser",K=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Y=function(e,t){return typeof e===a&&-1!==X(t).indexOf(X(e))},X=function(e){return e.toLowerCase()},Q=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},Z=function(e,t){for(var n,o,a,c,u,l,f=0;f<t.length&&!u;){var d=t[f],h=t[f+1];for(n=o=0;n<d.length&&!u&&d[n];)if(u=d[n++].exec(e))for(a=0;a<h.length;a++)l=u[++o],typeof(c=h[a])===s&&c.length>0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=l||r;f+=2}},$=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(Y(t[n][i],e))return"?"===n?r:n}else if(Y(t[n],e))return"?"===n?r:n;return t.hasOwnProperty("*")?t["*"]:e},_={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ee={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,h],[/opios[\/ ]+([\w\.]+)/i],[h,[l,L+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[l,L+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[l,L]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[h,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[l,"UC"+E]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[l,"Smart Lenovo "+E]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+E],h],[/\bfocus\/([\w\.]+)/i],[h,[l,T+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[l,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[l,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[l,"MIUI"+W]],[/fxios\/([\w\.-]+)/i],[h,[l,T]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+W],h],[/samsungbrowser\/([\w\.]+)/i],[h,[l,U+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[h,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[h,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,q],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[l,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,S+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[l,"Android "+E]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[h,$,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],h],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[l,T+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[h,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[p,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[p,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[p,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[p,/ower/,"",X]],[/ sun4\w[;\)]/i],[[p,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[p,X]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[d,U],[f,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[d,U],[f,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[d,k],[f,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[d,k],[f,b]],[/(macintosh);/i],[u,[d,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[d,H],[f,g]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[u,[d,I],[f,b]],[/honor([-\w ]+)[;\)]/i],[u,[d,I],[f,g]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[u,[d,B],[f,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[d,B],[f,g]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[u,/_/g," "],[d,j],[f,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[u,/_/g," "],[d,j],[f,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[d,D],[f,g]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[u,[d,$,{OnePlus:["304","403","203"],"*":D}],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[d,"Vivo"],[f,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[d,"Realme"],[f,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[d,F],[f,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[d,F],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[d,N],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[d,N],[f,g]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[u,[d,"Lenovo"],[f,b]],[/(nokia) (t[12][01])/i],[d,u,[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[u,/_/g," "],[f,g],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[u,[d,M],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[d,M],[f,g]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[d,z],[f,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[d,z],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[d,P],[f,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[d,A],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[d,A],[f,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,d,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[d,C],[f,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[d,x],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[d,x],[f,g]],[/(nexus 9)/i],[u,[d,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[u,/_/g," "],[f,g]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[d,"TCL"],[f,b]],[/(itel) ((\w+))/i],[[d,X],u,[f,$,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[d,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[d,"Meizu"],[f,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[d,"Ulefone"],[f,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[d,"Energizer"],[f,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[d,"Cat"],[f,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[d,"Smartfren"],[f,g]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[d,"Nothing"],[f,g]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[u,[d,"Archos"],[f,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[u,[d,"Archos"],[f,g]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[d,u,[f,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[d,u,[f,g]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,u,[f,b]],[/(surface duo)/i],[u,[d,R],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[d,"Fairphone"],[f,g]],[/(u304aa)/i],[u,[d,"AT&T"],[f,g]],[/\bsie-(\w*)/i],[u,[d,"Siemens"],[f,g]],[/\b(rct\w+) b/i],[u,[d,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[u,[d,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[u,[d,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[d,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[u,[d,"NuVision"],[f,b]],[/\b(k88) b/i],[u,[d,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[u,[d,"ZTE"],[f,g]],[/\b(gen\d{3}) b.+49h/i],[u,[d,"Swiss"],[f,g]],[/\b(zur\d{3}) b/i],[u,[d,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[u,[d,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],u,[f,b]],[/\b(ns-?\w{0,9}) b/i],[u,[d,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[d,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],u,[f,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],u,[f,g]],[/\b(ph-1) /i],[u,[d,"Essential"],[f,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[d,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[u,[d,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[u,[d,"Rotor"],[f,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[u,[d,O],[f,b]],[/(sprint) (\w+)/i],[d,u,[f,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[d,R],[f,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[d,V],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[d,V],[f,g]],[/smart-tv.+(samsung)/i],[d,[f,w]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[d,U],[f,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,N],[f,w]],[/(apple) ?tv/i],[d,[u,k+" TV"],[f,w]],[/crkey/i],[[u,S+"cast"],[d,M],[f,w]],[/droid.+aft(\w+)( bui|\))/i],[u,[d,A],[f,w]],[/(shield \w+ tv)/i],[u,[d,O],[f,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[d,H],[f,w]],[/(bravia[\w ]+)( bui|\))/i],[u,[d,z],[f,w]],[/(mi(tv|box)-?\w+) bui/i],[u,[d,j],[f,w]],[/Hbbtv.*(technisat) (.*);/i],[d,u,[f,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Q],[u,Q],[f,w]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[u,[f,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,u,[f,m]],[/droid.+; (shield)( bui|\))/i],[u,[d,O],[f,m]],[/(playstation \w+)/i],[u,[d,z],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[d,R],[f,m]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[u,[d,U],[f,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,u,[f,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[u,[d,D],[f,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[d,k],[f,y]],[/(opwwe\d{3})/i],[u,[d,P],[f,y]],[/(moto 360)/i],[u,[d,F],[f,y]],[/(smartwatch 3)/i],[u,[d,z],[f,y]],[/(g watch r)/i],[u,[d,N],[f,y]],[/droid.+; (wt63?0{2,3})\)/i],[u,[d,V],[f,y]],[/droid.+; (glass) \d/i],[u,[d,M],[f,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,u,[f,y]],[/; (quest( \d| pro)?)/i],[u,[d,q],[f,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,v]],[/(aeobc)\b/i],[u,[d,A],[f,v]],[/(homepod).+mac os/i],[u,[d,k],[f,v]],[/windows iot/i],[[f,v]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[f,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,g]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[u,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,h],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,h],[/ladybird\//i],[[l,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,h],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[l,[h,$,_]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,$,_],[l,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,G],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,l],[/(ubuntu) ([\w\.]+) like android/i],[[l,/(.+)/,"$1 Touch"],h],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[l,h],[/\(bb(10);/i],[h,[l,C]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[l,T+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[l,S+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,J],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,h],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,h]]},te=function(e,t){if(typeof e===s&&(t=e,e=r),!(this instanceof te))return new te(e,t).getResult();var m=typeof n!==o&&n.navigator?n.navigator:r,w=e||(m&&m.userAgent?m.userAgent:""),y=m&&m.userAgentData?m.userAgentData:r,v=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(ee,t):ee,A=m&&m.userAgent==w;return this.getBrowser=function(){var e,t={};return t[l]=r,t[h]=r,Z.call(t,w,v.browser),t[c]=typeof(e=t[h])===a?e.replace(/[^\d\.]/g,"").split(".")[0]:r,A&&m&&m.brave&&typeof m.brave.isBrave==i&&(t[l]="Brave"),t},this.getCPU=function(){var e={};return e[p]=r,Z.call(e,w,v.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[u]=r,e[f]=r,Z.call(e,w,v.device),A&&!e[f]&&y&&y.mobile&&(e[f]=g),A&&"Macintosh"==e[u]&&m&&typeof m.standalone!==o&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[l]=r,e[h]=r,Z.call(e,w,v.engine),e},this.getOS=function(){var e={};return e[l]=r,e[h]=r,Z.call(e,w,v.os),A&&!e[l]&&y&&y.platform&&"Unknown"!=y.platform&&(e[l]=y.platform.replace(/chrome os/i,J).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return w},this.setUA=function(e){return w=typeof e===a&&e.length>500?Q(e,500):e,this},this.setUA(w),this};te.VERSION="1.0.41",te.BROWSER=K([l,h,c]),te.CPU=K([p]),te.DEVICE=K([u,d,f,m,g,w,b,y,v]),te.ENGINE=te.OS=K([l,h]),e.exports&&(t=e.exports=te),t.UAParser=te;var ne=typeof n!==o&&(n.jQuery||n.Zepto);if(ne&&!ne.ua){var re=new te;ne.ua=re.getResult(),ne.ua.get=function(){return re.getUA()},ne.ua.set=function(e){re.setUA(e);var t=re.getResult();for(var n in t)ne.ua[n]=t[n]}}}("object"==typeof window?window:Vv)),jv.exports;var e,t}var Jv=function(){if(Hv)return zv;Hv=1,Object.defineProperty(zv,"u",{value:!0});var e,t=n,r=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,i=qv(),o=new i,s=o.getBrowser(),a=o.getCPU(),c=o.getDevice(),u=o.getEngine(),l=o.getOS(),f=o.getUA(),d=function(e){return o.setUA(e)},h=function(e){if(e){var t=new i(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},p=Object.freeze({ClientUAInstance:o,browser:s,cpu:a,device:c,engine:u,os:l,ua:f,setUa:d,parseUserAgent:h});function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(c){a=!0,i=c}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var S="mobile",T="tablet",M="smarttv",I="console",B="wearable",N="embedded",R=void 0,F={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},O={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},P={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},L=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},D=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},U=function(e){var t=D();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},H=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{vendor:L(t.vendor),model:L(t.model),os:L(n.name),osVersion:L(n.version),ua:L(r)})},z=function(e){return e.type===S},j=function(e){return e.type===T},V=function(e){var t=e.type;return t===S||t===T},q=function(e){return e.type===M},J=function(e){return e.type===R},G=function(e){return e.type===B},W=function(e){return e.type===I},K=function(e){return e.type===N},Y=function(e){var t=e.vendor;return L(t)},X=function(e){var t=e.model;return L(t)},Q=function(e){var t=e.type;return L(t,"browser")},Z=function(e){return e.name===O.Android},$=function(e){return e.name===O.Windows},_=function(e){return e.name===O.MAC_OS},ee=function(e){return e.name===O.WindowsPhone},te=function(e){return e.name===O.IOS},ne=function(e){var t=e.version;return L(t)},re=function(e){var t=e.name;return L(t)},ie=function(e){return e.name===F.Chrome},oe=function(e){return e.name===F.Firefox},se=function(e){return e.name===F.Chromium},ae=function(e){return e.name===F.Edge},ce=function(e){return e.name===F.Yandex},ue=function(e){var t=e.name;return t===F.Safari||t===F.MobileSafari},le=function(e){return e.name===F.MobileSafari},fe=function(e){return e.name===F.Opera},de=function(e){var t=e.name;return t===F.InternetExplorer||t===F.Ie},he=function(e){return e.name===F.MIUI},pe=function(e){return e.name===F.SamsungBrowser},me=function(e){var t=e.version;return L(t)},ge=function(e){var t=e.major;return L(t)},be=function(e){var t=e.name;return L(t)},we=function(e){var t=e.name;return L(t)},ye=function(e){var t=e.version;return L(t)},ve=function(){var e=D(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},Ae=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},ke=function(){var e=D();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},xe=function(){return U("iPad")},Ce=function(){return U("iPhone")},Ee=function(){return U("iPod")},Se=function(e){return L(e)};function Te(e){var t=e||p,n=t.device,r=t.browser,i=t.os,o=t.engine,s=t.ua;return{isSmartTV:q(n),isConsole:W(n),isWearable:G(n),isEmbedded:K(n),isMobileSafari:le(r)||xe(),isChromium:se(r),isMobile:V(n)||xe(),isMobileOnly:z(n),isTablet:j(n)||xe(),isBrowser:J(n),isDesktop:J(n),isAndroid:Z(i),isWinPhone:ee(i),isIOS:te(i)||xe(),isChrome:ie(r),isFirefox:oe(r),isSafari:ue(r),isOpera:fe(r),isIE:de(r),osVersion:ne(i),osName:re(i),fullBrowserVersion:me(r),browserVersion:ge(r),browserName:be(r),mobileVendor:Y(n),mobileModel:X(n),engineName:we(o),engineVersion:ye(o),getUA:Se(s),isEdge:ae(r)||Ae(s),isYandex:ce(r),deviceType:Q(n),isIOS13:ke(),isIPad13:xe(),isIPhone13:Ce(),isIPod13:Ee(),isElectron:ve(),isEdgeChromium:Ae(s),isLegacyEdge:ae(r)&&!Ae(s),isWindows:$(i),isMacOs:_(i),isMIUI:he(r),isSamsungBrowser:pe(r)}}var Me=q(c),Ie=W(c),Be=G(c),Ne=K(c),Re=le(s)||xe(),Fe=se(s),Oe=V(c)||xe(),Pe=z(c),Le=j(c)||xe(),De=J(c),Ue=J(c),He=Z(l),ze=ee(l),je=te(l)||xe(),Ve=ie(s),qe=oe(s),Je=ue(s),Ge=fe(s),We=de(s),Ke=ne(l),Ye=re(l),Xe=me(s),Qe=ge(s),Ze=be(s),$e=Y(c),_e=X(c),et=we(u),tt=ye(u),nt=Se(f),rt=ae(s)||Ae(f),it=ce(s),ot=Q(c),st=ke(),at=xe(),ct=Ce(),ut=Ee(),lt=ve(),ft=Ae(f),dt=ae(s)&&!Ae(f),ht=$(l),pt=_(l),mt=he(s),gt=pe(s);function bt(e){var t=e||window.navigator.userAgent;return h(t)}return zv.AndroidView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return He?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.BrowserTypes=F,zv.BrowserView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return De?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.ConsoleView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return Ie?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.CustomView=function(e){var n=e.renderWithFragment,i=e.children;e.viewClassName,e.style;var o=e.condition,s=k(e,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?r.createElement(t.Fragment,null,i):r.createElement("div",s,i):null},zv.IEView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return We?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.IOSView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return je?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.MobileOnlyView=function(e){var n=e.renderWithFragment,i=e.children;e.viewClassName,e.style;var o=k(e,["renderWithFragment","children","viewClassName","style"]);return Pe?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.MobileView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return Oe?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.OsTypes=O,zv.SmartTVView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return Me?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.TabletView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return Le?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.WearableView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return Be?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.WinPhoneView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return ze?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},zv.browserName=Ze,zv.browserVersion=Qe,zv.deviceDetect=function(e){var t=e?h(e):p,n=t.device,r=t.browser,i=t.engine,o=t.os,s=t.ua,a=function(e){switch(e){case S:return{isMobile:!0};case T:return{isTablet:!0};case M:return{isSmartTV:!0};case I:return{isConsole:!0};case B:return{isWearable:!0};case R:return{isBrowser:!0};case N:return{isEmbedded:!0};default:return P}}(n.type),c=a.isBrowser,u=a.isMobile,l=a.isTablet,f=a.isSmartTV,d=a.isConsole,m=a.isWearable,g=a.isEmbedded;return c?function(e,t,n,r,i){return{isBrowser:e,browserMajorVersion:L(t.major),browserFullVersion:L(t.version),browserName:L(t.name),engineName:L(n.name),engineVersion:L(n.version),osName:L(r.name),osVersion:L(r.version),userAgent:L(i)}}(c,r,i,o,s):f?function(e,t,n,r){return{isSmartTV:e,engineName:L(t.name),engineVersion:L(t.version),osName:L(n.name),osVersion:L(n.version),userAgent:L(r)}}(f,i,o,s):d?function(e,t,n,r){return{isConsole:e,engineName:L(t.name),engineVersion:L(t.version),osName:L(n.name),osVersion:L(n.version),userAgent:L(r)}}(d,i,o,s):u||l?H(a,n,o,s):m?function(e,t,n,r){return{isWearable:e,engineName:L(t.name),engineVersion:L(t.version),osName:L(n.name),osVersion:L(n.version),userAgent:L(r)}}(m,i,o,s):g?function(e,t,n,r,i){return{isEmbedded:e,vendor:L(t.vendor),model:L(t.model),engineName:L(n.name),engineVersion:L(n.version),osName:L(r.name),osVersion:L(r.version),userAgent:L(i)}}(g,n,i,o,s):void 0},zv.deviceType=ot,zv.engineName=et,zv.engineVersion=tt,zv.fullBrowserVersion=Xe,zv.getSelectorsByUserAgent=function(e){if(e&&"string"==typeof e){var t=h(e);return Te({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})}console.error("No valid user agent string was provided")},zv.getUA=nt,zv.isAndroid=He,zv.isBrowser=De,zv.isChrome=Ve,zv.isChromium=Fe,zv.isConsole=Ie,zv.isDesktop=Ue,zv.isEdge=rt,zv.isEdgeChromium=ft,zv.isElectron=lt,zv.isEmbedded=Ne,zv.isFirefox=qe,zv.isIE=We,zv.isIOS=je,zv.isIOS13=st,zv.isIPad13=at,zv.isIPhone13=ct,zv.isIPod13=ut,zv.isLegacyEdge=dt,zv.isMIUI=mt,zv.isMacOs=pt,zv.isMobile=Oe,zv.isMobileOnly=Pe,zv.isMobileSafari=Re,zv.isOpera=Ge,zv.isSafari=Je,zv.isSamsungBrowser=gt,zv.isSmartTV=Me,zv.isTablet=Le,zv.isWearable=Be,zv.isWinPhone=ze,zv.isWindows=ht,zv.isYandex=it,zv.mobileModel=_e,zv.mobileVendor=$e,zv.osName=Ye,zv.osVersion=Ke,zv.parseUserAgent=h,zv.setUserAgent=function(e){return d(e)},zv.useDeviceData=bt,zv.useDeviceSelectors=function(e){var t=bt(e||window.navigator.userAgent);return[Te(t),t]},zv.useMobileOrientation=function(){var e=C(t.useState(function(){var e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}}),2),n=e[0],r=e[1],i=t.useCallback(function(){var e=window.innerWidth>window.innerHeight?90:0,t={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};n.orientation!==t.orientation&&r(t)},[n.orientation]);return t.useEffect(function(){return void 0!==("undefined"==typeof window?"undefined":g(window))&&Oe&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}},[i]),n},zv.withOrientationChange=function(e){return function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}(this,v(n).call(this,e))).isEventListenerAdded=!1,t.handleOrientationChange=t.handleOrientationChange.bind(x(t)),t.onOrientationChange=t.onOrientationChange.bind(x(t)),t.onPageLoad=t.onPageLoad.bind(x(t)),t.state={isLandscape:!1,isPortrait:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(n,t),b(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){void 0!==("undefined"==typeof window?"undefined":g(window))&&Oe&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return r.createElement(e,y({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(r.Component)},zv}();const Gv={1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",10:"0x4200000000000000000000000000000000000006",56:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",137:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",8453:"0x4200000000000000000000000000000000000006",42161:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},Wv=[{name:"transfer",type:"function",stateMutability:"nonpayable",inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{name:"approve",type:"function",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],Kv=[{name:"deposit",type:"function",stateMutability:"payable",inputs:[],outputs:[]},{name:"withdraw",type:"function",stateMutability:"nonpayable",inputs:[{name:"wad",type:"uint256"}],outputs:[]}],Yv=[{name:"safeTransferFrom",type:"function",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]}],Xv=[{name:"safeTransferFrom",type:"function",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"amount",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]}];function Qv(e){const{action:t,parameters:n,fromAddress:r,chainId:i}=e;switch(t){case"send_native":return function(e,t,n){const{to_address:r,amount:i}=e;if(!r)throw new Error("Recipient address is required");if(!i)throw new Error("Amount is required");return{from:t,to:r,data:"0x",value:Zv(i,18).toString(),chainId:n,description:`Send ${i} native token to ${r}`}}(n,r,i);case"send_token":return function(e,t,n){const{contract_address:r,to_address:i,amount:o,decimals:s,token_symbol:a}=e;if(!r)throw new Error("Token contract address is required");if(!i)throw new Error("Recipient address is required");if(!o)throw new Error("Amount is required");const c=parseInt(s)||18,u=Ht({abi:Wv,functionName:"transfer",args:[i,Zv(o,c)]});return{from:t,to:r,data:u,value:"0",chainId:n,description:`Send ${o} ${a||"tokens"} to ${i}`}}(n,r,i);case"approve_token":return function(e,t,n){const{contract_address:r,spender_address:i,amount:o,decimals:s,token_symbol:a}=e;if(!r)throw new Error("Token contract address is required");if(!i)throw new Error("Spender address is required");const c=parseInt(s)||18,u=o&&""!==o.trim()?Zv(o,c):kn,l=Ht({abi:Wv,functionName:"approve",args:[i,u]});return{from:t,to:r,data:l,value:"0",chainId:n,description:`Approve ${o||"unlimited"} ${a||"tokens"} for ${i}`}}(n,r,i);case"wrap_native":return function(e,t,n){const{amount:r}=e;if(!r)throw new Error("Amount is required");const i=Gv[n];if(!i)throw new Error(`Wrapped native not supported on chain ${n}`);const o=Ht({abi:Kv,functionName:"deposit"});return{from:t,to:i,data:o,value:Zv(r,18).toString(),chainId:n,description:`Wrap ${r} native token`}}(n,r,i);case"unwrap_native":return function(e,t,n){const{amount:r}=e;if(!r)throw new Error("Amount is required");const i=Gv[n];if(!i)throw new Error(`Wrapped native not supported on chain ${n}`);const o=Ht({abi:Kv,functionName:"withdraw",args:[Zv(r,18)]});return{from:t,to:i,data:o,value:"0",chainId:n,description:`Unwrap ${r} wrapped native`}}(n,r,i);case"send_nft":return function(e,t,n){const{contract_address:r,to_address:i,token_id:o,amount:s,token_standard:a}=e;if(!r)throw new Error("NFT contract address is required");if(!i)throw new Error("Recipient address is required");if(!o)throw new Error("Token id is required");if("ERC1155"===(a||"ERC721").toUpperCase()){const e=BigInt(s||"1");return{from:t,to:r,data:Ht({abi:Xv,functionName:"safeTransferFrom",args:[t,i,BigInt(o),e,"0x"]}),value:"0",chainId:n,description:`Send ERC-1155 #${o} ×${e} to ${i}`}}const c=Ht({abi:Yv,functionName:"safeTransferFrom",args:[t,i,BigInt(o)]});return{from:t,to:r,data:c,value:"0",chainId:n,description:`Send NFT #${o} to ${i}`}}(n,r,i);default:throw new Error(`Action "${t}" is not a supported transaction action`)}}function Zv(e,t){return function(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new mr({value:e});let[n,r="0"]=e.split(".");const i=n.startsWith("-");if(i&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${r}`))&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){const[e,i,o]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],s=Math.round(Number(`${i}.${o}`));r=s>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${s}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${i?"-":""}${n}${r}`)}(Jh(e).decimalPlaces(t,Jh.ROUND_DOWN).toFixed(),t)}function $v(e,t){return t||(void 0!==e?Vd[e]?.rpcUrls?.default?.http?.[0]:void 0)}async function _v(e,t,n){const r=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:t,params:n})}),i=await r.json();if(i?.error)throw new Error(i.error?.message||`RPC ${t} failed`);return i?.result}async function eA(e){const{transactionHash:t,chainId:n,pollingInterval:r=3e3,timeout:i=12e4,rpcUrl:o}=e,s=$v(n,o);if(!s)throw new Error(`No RPC endpoint for chain ${n}`);const a=Date.now();for(;Date.now()-a<i;){try{const e=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"eth_getTransactionReceipt",params:[t]})}),n=await e.json();if(n?.result)return{status:"0x1"===n.result.status?"success":"fail"}}catch(c){console.warn("eth_getTransactionReceipt poll error:",c)}await new Promise(e=>setTimeout(e,r))}throw new Error(`Timed out waiting for receipt of ${t}`)}function tA(e){return"number"==typeof e?e:e.startsWith("0x")?parseInt(e,16):parseInt(e,10)}function nA(e){const t=c(e);return{t:e=>u(e,t),ti:(e,n)=>l(u(e,t),n)}}function rA({addMessage:e,updateWalletAction:t,onTransaction:r}){const{config:i}=mh(),[o,s]=n.useState({}),a=n.useCallback((e,t)=>{s(n=>{if(!t){const t={...n};return delete t[e],t}return{...n,[e]:!0}})},[]),c=n.useCallback((n,r,i,o)=>{const{t:s}=nA(o);t(n,r,{status:"pending"}),e(i||s("txFailed"),"bot")},[e,t]),u=n.useCallback(async(e,t,n)=>{const r=i?.rpcUrls?.[t]??void 0,o=await async function(e){const{tx:t,chainId:n,rpcUrl:r}=e,i=$v(n,r);if(!i)return{ok:!0};const o=Vd[n],s=o?.nativeCurrency?.decimals??18,a=o?.nativeCurrency?.symbol??"";try{const e=await _v(i,"eth_getBalance",[t.from,"latest"]),n=BigInt(e);let r,o;if(r=t.gasPrice?BigInt(t.gasPrice):BigInt(await _v(i,"eth_gasPrice",[])),t.gasLimit)o=BigInt(t.gasLimit);else try{const e=await _v(i,"eth_estimateGas",[{from:t.from,to:t.to,data:t.data,value:t.value}]);o=BigInt(e)}catch{return{ok:!0}}const c=o*r+(t.value?BigInt(t.value):0n);if(n>=c)return{ok:!0};const u=e=>new Jh(e.toString()).dividedBy(new Jh(10).pow(s)).toFixed(6);return{ok:!1,balance:u(n),fee:u(c),symbol:a}}catch{return{ok:!0}}}({tx:{from:e.from,to:e.to,data:e.data,value:e.value,gasLimit:e.gasLimit,gasPrice:e.gasPrice},chainId:t,rpcUrl:r});if(o.ok)return{ok:!0};const{ti:s}=nA(n);return{ok:!1,message:s("txInsufficientGas",{symbol:o.symbol??"",balance:o.balance??"0",fee:o.fee??"0"})}},[i]),l=n.useCallback(async(e,n,r,o,s)=>{const a=i?.rpcUrls?.[o]??void 0;try{await Wd(2e3);if("success"===(await eA({transactionHash:r,chainId:o,rpcUrl:a})).status)t(e,n,{status:"success",transactionHash:r});else{const{t:t}=nA(s);c(e,n,t("txReverted"),s)}}catch{t(e,n,{status:"success",transactionHash:r})}},[i,t,c]),f=n.useCallback(async(n,r,o,s,a)=>{const c=i?.rpcUrls?.[s]??void 0,u=()=>(t(n.id,r,{status:"success",transactionHash:o}),!0);try{await Wd(2e3);if("success"===(await eA({transactionHash:o,chainId:s,rpcUrl:c})).status)return u();const{t:i}=nA(a);return t(n.id,r,{status:"pending"}),e(i("txRevertedSwap"),"bot"),!1}catch{return u()}},[e,i,t]);return{submitting:o,handleActionSubmit:n.useCallback(async(e,n,i,o)=>{const s=`${e.id}-${i}`,f=n.language,{t:d}=nA(f);a(s,!0);try{const s=n.action;if(!function(e){return["send_native","send_token","approve_token","wrap_native","unwrap_native","send_nft"].includes(e)}(s)||!r)return void c(e.id,i,d("txNoHandler"),f);const a=tA(n.chainId);let p;try{p=Qv({action:s,parameters:{...n.parameters,...o},fromAddress:n.walletAddress,chainId:a})}catch(h){const t=h instanceof Error?h.message:String(h);return void c(e.id,i,t,f)}const m={from:p.from,to:p.to,data:p.data,value:p.value,chainId:p.chainId},g=await u(m,a,f);if(!g.ok)return void c(e.id,i,g.message,f);t(e.id,i,{status:"submitted",parameters:o});const b=await r(m);if("success"!==b.status||!b.transactionHash)return void c(e.id,i,b.error,f);await l(e.id,i,b.transactionHash,a,f)}catch(h){const t=h instanceof Error?h.message:String(h);c(e.id,i,t,f)}finally{a(s,!1)}},[a,r,t,l,c,u]),handleConfirmTx:n.useCallback(async(e,n,i)=>{const o=`${e.id}-${n}`,s=e.walletActions?.[n]?.language,{t:l}=nA(s);if(!r)return c(e.id,n,l("txNoHandler"),s),{status:"fail",error:l("txNoHandler")};const d=void 0!==i.chainId?tA(i.chainId):1,h=await u(i,d,s);if(!h.ok)return c(e.id,n,h.message,s),{status:"fail",error:h.message};a(o,!0),t(e.id,n,{status:"submitted"});try{const t=await r(i);if("success"!==t.status||!t.transactionHash)return c(e.id,n,t.error,s),t;const o=await f(e,n,t.transactionHash,d,s);return{...t,status:o?"success":"fail"}}catch(p){const t=p instanceof Error?p.message:String(p);return c(e.id,n,t,s),{status:"fail",error:t}}finally{a(o,!1)}},[c,a,r,t,f,u]),handleApproveTx:n.useCallback(async(n,o,s)=>{const a=n.walletActions?.[o]?.language,{t:c}=nA(a);if(!r)return e(c("txNoHandler"),"bot"),{status:"fail",error:c("txNoHandler")};const l=void 0!==s.chainId?tA(s.chainId):1,f=await u(s,l,a);if(!f.ok)return e(f.message,"bot"),{status:"fail",error:f.message};try{const a=await r(s);if("success"!==a.status||!a.transactionHash)return e(a.error||c("approvalFailed"),"bot"),{status:"fail",error:a.error??c("approvalFailed"),transactionHash:a.transactionHash};const u=i?.rpcUrls?.[l]??void 0;try{await Wd(2e3),await eA({transactionHash:a.transactionHash,chainId:l,rpcUrl:u})}catch{}return t(n.id,o,{approveDone:!0}),a}catch(d){const t=d instanceof Error?d.message:String(d);return e(t,"bot"),{status:"fail",error:t}}},[e,r,i,t,u])}}const iA=({isOpen:e,onClose:r,position:i="bottom-right",modalChatStyle:o={},chatTitle:s,welcomeMessage:a,customSuggestions:c,additionalSuggestions:u,chatIcon:l,modalConfig:f,onTransaction:d})=>{const{isShowIcon:p=!0}=f||{},{t:m}=h(),{messages:g,addMessage:b,updateWalletAction:w,clearMessages:y}=fh({customWelcomeMessage:a}),v=yh(),{send:A,isTyping:k,suggestedPrompts:x}=Ch({agent:v,addMessage:b}),{submitting:C,handleActionSubmit:E,handleConfirmTx:S,handleApproveTx:T}=rA({addMessage:b,updateWalletAction:w,onTransaction:d}),[M,I]=n.useState(""),[B,N]=n.useState(!0),[R,F]=n.useState(g.length);g.length!==R&&(F(g.length),g.length>R&&B&&N(!1));const O=n.useRef(null),P=n.useRef(null),L=n.useRef(null);!function({isOpen:e,onClose:t,showSuggestions:r,setShowSuggestions:i,inputRef:o,messagesEndRef:s}){const a=n.useRef(null),c=n.useRef(!1),u=n.useRef(r);n.useEffect(()=>{u.current=r},[r]),n.useEffect(()=>{if("undefined"==typeof window||!e)return;const t=document.body,n=document.documentElement,r=t.style.overscrollBehavior,i=n.style.overscrollBehavior,o=t.style.overflow;return t.style.overscrollBehavior="none",n.style.overscrollBehavior="none",t.style.overflow="hidden",()=>{t.style.overscrollBehavior=r,n.style.overscrollBehavior=i,t.style.overflow=o}},[e]),n.useEffect(()=>{if(e){o.current&&Jv.isDesktop&&o.current.focus(),s.current?.scrollIntoView({behavior:"instant"}),c.current&&a.current?Date.now()-a.current>12e5&&i(!0):i(!0),a.current=null,c.current=!1;const e=window.setTimeout(()=>{s.current?.scrollIntoView({behavior:"smooth"})},50);return()=>window.clearTimeout(e)}a.current=Date.now(),c.current=!u.current},[e]),n.useEffect(()=>{if(!e)return;const n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t])}({isOpen:e,onClose:r,showSuggestions:B,setShowSuggestions:N,inputRef:L,messagesEndRef:O});const D=n.useCallback(async()=>{y(),I(""),N(!0),await v.clearHistory()},[v,y]);n.useEffect(()=>(hh(()=>{D()}),()=>hh(null)),[D]);const U=n.useCallback(async()=>{const e=M.trim();e&&!k&&(I(""),N(!1),await A(e))},[M,k,A]),H=n.useCallback((e,t)=>{w(e,t,{status:"idle"})},[w]),z=n.useCallback((e,t)=>{N(!1),A(e,t)},[A]),j=n.useMemo(()=>{const e=(e=[])=>e.map(e=>({...e,id:ah(),action:()=>{N(!1),A(e.text)}})),t=[{id:"ask",icon:"❓",text:m("suggestionAskText"),action:async()=>{N(!1),b(m("suggestionAskUserMessage"),"user"),await Wd(400),b(m("suggestionAskBotReply"),"bot")}},{id:"buy",icon:"💰",text:m("suggestionBuyText"),action:()=>{N(!1),A(m("suggestionBuyText"))}}],n=c?e(c):t;return u?.length?[...n,...e(u)]:n},[c,u,m,b,A]),V=n.useMemo(()=>x.map(e=>({id:ah(),text:e,action:()=>{N(!1),A(e)}})),[x,A]),q=n.useCallback(()=>{const e=window.getSelection();e&&e.toString().length>0||r()},[r]);return e?t.jsx("div",{className:"chat-modal-overlay"+("bottom-left"===i?" chat-modal-overlay--left":""),onClick:q,role:"dialog","aria-modal":"true","aria-labelledby":"chat-modal-title",children:t.jsxs("div",{className:"chat-modal",style:o,onClick:e=>e.stopPropagation(),children:[t.jsx(np,{onClose:r,isShowIcon:p,chatTitle:s,chatIcon:l}),t.jsx(Lv,{messages:g,isTyping:k,submittingActions:C,defaultSuggestions:j,followUpChips:V,showDefaultSuggestions:B,messagesContainerRef:P,messagesEndRef:O,onActionSubmit:(e,t,n,r)=>{E(e,t,n,r)},onActionCancel:H,onConfirmTx:S,onApproveTx:T,onActionButtonClick:z}),t.jsx(Dv,{inputValue:M,setInputValue:I,isTyping:k,onSubmit:()=>{U()},inputRef:L})]})}):null},oA=({position:e,theme:r,defaultOpen:i,onOpen:o,onClose:s,chatTitle:a,welcomeMessage:c,customSuggestions:u,additionalSuggestions:l,buttonIcon:f,chatIcon:d,customChatButton:h,styleButtonChat:p,modalConfig:g,onTransaction:b})=>{const{account:w,chainId:y}=nh(),[v,A]=n.useState(i);n.useEffect(()=>{i&&o?.()},[]);const k=n.useCallback(()=>{A(!0),o?.()},[o]),x=n.useCallback(()=>{A(!1),s?.()},[s]),C=n.useCallback(()=>{v?x():k()},[v,k,x]);if(!Qd(w?.address||"")||!y)return null;if(Jd.length>0&&!Jd.includes(window.location.origin)&&!window.location.href.startsWith("http://localhost"))return null;const E={position:"fixed",["bottom-right"===e?"right":"left"]:r.offset?.x??20,bottom:r.offset?.y??20,zIndex:r.zIndex??9999};return t.jsxs("div",{style:{...E,...p},role:"complementary","aria-label":"Chat widget",children:[t.jsx(m,{buttonSize:r.buttonSize,onClick:C,customIcon:f,customChatButton:h}),t.jsx(iA,{modalConfig:g,isOpen:v,onClose:x,position:e,modalChatStyle:r.modalChatStyle,chatTitle:a,welcomeMessage:c,customSuggestions:u,additionalSuggestions:l,chatIcon:d,onTransaction:b})]})};e.ActionForm=Wh,e.ChatWidget=({position:e="bottom-right",theme:n={},defaultOpen:r=!1,onOpen:i,onClose:o,account:s,language:a="en",rpcUrls:c,chatTitle:u,welcomeMessage:l,customSuggestions:f,additionalSuggestions:h,buttonIcon:p,chatIcon:m,customChatButton:g,styleButtonChat:b,modalConfig:w,onTransaction:y})=>{if("undefined"==typeof window)return null;const v={position:e,theme:n,rpcUrls:c};return t.jsx(gh,{initialConfig:v,children:t.jsx(rh,{initialAccount:s,children:t.jsx(d,{initialLanguage:a,children:t.jsx(oA,{modalConfig:w,position:e,theme:n,defaultOpen:r,onOpen:i,onClose:o,chatTitle:u,welcomeMessage:l,customSuggestions:f,additionalSuggestions:h,buttonIcon:p,chatIcon:m,customChatButton:g,styleButtonChat:b,onTransaction:y})})})})},e.ConfigProvider=gh,e.ConnectProvider=rh,e.LanguageProvider=d,e.clearChat=function(){dh?.()},e.useAgent=yh,e.useAgentChat=Ch,e.useConfig=mh,e.useConnect=nh,e.useLanguage=h,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
2
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react/jsx-runtime"),require("react"),require("keyring-agent-core")):"function"==typeof define&&define.amd?define(["exports","react/jsx-runtime","react","keyring-agent-core"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).KeyringAgentWeb={},e.jsxRuntime,e.React,e.KeyringAgentCore)}(this,function(e,t,n,r){"use strict";const i={chatTitle:"Keyring Agent",closeChat:"Close chat",messagePlaceholder:"Message ....",sendMessage:"Send message",botIsTyping:"Bot is typing",canIHelpYou:"Can I help you with anything?",suggestionAskText:"Ask a question",suggestionAskUserMessage:"I have a question",suggestionAskBotReply:"Ask me anything",suggestionBuyText:"Buy trending token",walletConnectedChainUnsupported:"Your wallet is connected but the chain is not supported for trading. Please switch to a supported chain to see trending tokens.",walletNotConnected:"Please connect your wallet to see trending tokens.",actionProcessing:"⏳ Processing transaction...",actionSuccess:"✅ Transaction completed",actionFail:"❌ Action cancelled or failed",txSubmitted:"⏳ Transaction submitted. Waiting for confirmation...",txConfirmed:"✅ Transaction confirmed!",txReverted:"❌ Transaction reverted on-chain.",txTimeout:"⚠️ Transaction submitted but confirmation timed out. Please check manually.",txSuccessful:"✅ Transaction successful!",txFailed:"❌ Transaction failed. Please try again.",txNoHandler:"⚠️ No transaction handler configured.",txInsufficientGas:"⚠️ **Insufficient {symbol} for gas!** You have {balance} {symbol} but need ~{fee} {symbol} for the transaction fee. Please top up your wallet and try again.",txError:"❌ Error: {message}",swapConfirmButton:"Confirm",swapConfirmValue:"Confirm swap",swapReadyToProceed:"Ready to proceed with the swap?",swapEstimationError:"⚠️ Unable to get swap estimation. Error: {error}",formCancel:"Cancel",formExecute:"Execute",formProcessing:"⏳ Processing...",formBalance:"Balance:",formTokenNotFound:"Token not found in your wallet.",formNoBalance:"You have no {symbol} balance in your wallet.",formInsufficientBalance:"Insufficient balance. Spendable: {balance} {symbol}",formFieldRequired:"{field} is required",formInvalidAddress:"Invalid address (Must contain 0x and 40 hex chars)",formMustBePositive:"Must be a positive number",formMustBeValidNumber:"Must be a valid number",openChat:"Open chat",openChatTitle:"Open chat support",walletBalanceSpendable:"This is the spendable balance of your wallet on {chain} chain. Please choose the coins you want to use for this trade.",walletNoTokensFound:"Sorry, I couldn't find any tokens in your wallet on {chain} chain. Please make sure you have some tokens to trade.",walletFetchFailed:"Sorry, I could not fetch your wallet balance. Please try again.",walletFetchError:"Sorry, I encountered an error fetching your wallet balance.",insufficientFeeToken:"Insufficient fee. Please ensure you have enough {symbol} to cover the transaction fees, or select a different token.",selectAmountOf:"Select the amount of {symbol} to use:\n\nSpendable: {balance} {symbol}",swapFeeWarning:"\n⚠️ **Insufficient {symbol} for fees!**\n You have {balance} {symbol} but need ~{needed} {symbol}.\n",swapNeedApprove:"You need to approve {symbol} first before swapping.",swapApproveButton:"Approve {symbol}",swapApproveValue:"Approve {symbol} for swap",swapNoSourceToken:"⚠️ You don't have the source token in your wallet or balance is 0.",swapSelectAmount:"Swap {from} → {to}\n\nSelect the amount of {from} to swap:\n\nSpendable: {balance} {from}",swapApprovalRequired:"⚠️ Token approval required before swapping.\n\nStep 1: Approve {symbol}\nStep 2: Confirm Swap",swapEstimationFailed:"⚠️ Failed to get swap estimation. Please try again.",swapInsufficientNativeBalance:"⚠️ Insufficient balance! You have {balance} {symbol} but need {amount} {symbol}. Please top up your wallet or reduce the amount.",swapTokenNotInWallet:"⚠️ You don't have {symbol} in your wallet. Please acquire some first before swapping.",swapInsufficientTokenBalance:"⚠️ Insufficient balance! You have {balance} {symbol} but need {amount} {symbol}. Please reduce the amount or add more tokens.",selectAmountToSwap:"Select the amount of {symbol} to swap:\n\nSpendable: {balance} {symbol}",couldNotLoadTokenList:"⚠️ Could not load token list. Please specify the destination token.",trendingTokensForReceive:"📈 Trending tokens on {chain} chain. Pick the token you want to receive or type the token you want to receive:",txProcessing:"⏳ Transaction processing... Please confirm in your wallet.",txConfirmedSwap:"✅ Transaction confirmed! Your swap has been completed.",txRevertedSwap:"❌ Transaction reverted on-chain. Please try again.",txSuccessfulSwap:"✅ Transaction successful! Your swap has been completed.",txSuccessfulSendToken:"✅ Sent successfully **{amount} {symbol}** to {to}",txSuccessfulSendNative:"✅ Sent successfully **{amount} {symbol}** to {to}",txSuccessfulSendNft:"✅ Sent successfully NFT **{name}** (#{tokenId}) to {to}",txSuccessfulWrapNative:"✅ Wrapped successfully **{amount} {from}** → **{to}**",txSuccessfulUnwrapNative:"✅ Unwrapped successfully **{amount} {from}** → **{to}**",txDataNotAvailable:"⚠️ Transaction data not available.",approvalDataNotAvailable:"⚠️ Approval data not available.",approving:"Approving {symbol}... Please confirm in your wallet.",approvalSuccess:"✅ {symbol} approved successfully!",approvalConfirmSwap:"Now you can execute the swap.",confirmSwapButton:"Confirm Swap",approvalFailed:"❌ Approval failed. Please try again.",couldNotFetchBalance:"⚠️ Could not fetch your wallet balance.",couldNotLoadBalance:"⚠️ Could not load balance. Please try again.",couldNotFetchBalanceRetry:"⚠️ Could not fetch your balance. Please try again.",nftSendReview:"📤 Send **{name}** ({standard} #{tokenId})\n\nPlease review and fill in the recipient address below:",nftCollectionHeader:"Your NFTs :\n\n{list}",nftMoreItems:"\n\nAnd {count} more NFTs...",nftSelectBelow:"\n\nSelect an NFT below to send",nftNoCollection:"You don't have any NFTs in your wallet on this chain.",nftMultipleMatchesForTokenId:"I found {count} NFTs with Token ID #{tokenId} in your wallet. Please select the one you want to send:",nftNotFoundInWallet:"I couldn't find \"{name}\" in your NFT collection. You don't own this NFT on this chain.",nftFetchError:"Sorry, I encountered an error fetching your NFTs.",trendingTokensHeader:"📈 Here is the list of tokens that are currently trending upwards on {chain} chain",trendingTokensQuestion:"\nIs there any token you want to buy?",trendingTokensError:"Sorry, I encountered an error fetching trending tokens.",errorProcessingRequest:"Sorry, I encountered an error processing your request.Please try again in a few moments.",buttonBuyWith:"Buy with {symbol}",buttonUsePercent:"Use {percent}% of {symbol}",buttonBuyToken:"Buy {name} ({symbol})",buttonSendNft:"Send {name}",buttonSwapTo:"Swap to {name} ({symbol})",buttonBuySymbol:"Buy {symbol}",viewBalancesLoading:"Fetching your wallet balances...",viewBalancesHeader:"Your token balances on {chain}:\n\n{list}",viewBalancesEmpty:"You don't have any tokens in your wallet on this chain.",viewBalancesFetchError:"Sorry, I encountered an error fetching your balances.",buttonSendToken:"Send {symbol}",formMax:"MAX",buttonSwapToken:"Swap {symbol}",buttonBuyMoreToken:"Buy more {symbol}",actionSendNativeLabel:"Send Native Token",actionSendNativeDesc:"Send native token (ETH, BNB, MATIC, etc.) to an address",actionSendTokenLabel:"Send Token (ERC20)",actionSendTokenDesc:"Send an ERC20 token to an address",actionSwapTokenLabel:"Swap Token",actionSwapTokenDesc:"Swap one token for another",actionApproveTokenLabel:"Approve Token",actionApproveTokenDesc:"Approve a spender to use your tokens",actionWrapNativeLabel:"Wrap Native Token",actionWrapNativeDesc:"Wrap native token (ETH → WETH)",actionUnwrapNativeLabel:"Unwrap Native Token",actionUnwrapNativeDesc:"Unwrap native token (WETH → ETH)",actionSendNftLabel:"Send NFT",actionSendNftDesc:"Transfer an ERC721 or ERC1155 NFT to another address",fieldToAddress:"Recipient Address",fieldAmount:"Amount",fieldTokenContract:"Token Contract",fieldTokenSymbol:"Token Symbol",fieldDecimals:"Decimals",fieldTokenIn:"From Token",fieldTokenInSymbol:"From Symbol",fieldTokenOut:"To Token",fieldTokenOutSymbol:"To Symbol",fieldTokenInDecimals:"From Decimals",fieldTokenOutDecimals:"To Decimals",fieldSpenderAddress:"Spender Address",fieldAmountUnlimited:"Amount (empty = unlimited)",fieldNftContract:"NFT Contract",fieldTokenId:"Token ID",fieldTokenStandard:"Token Standard",fieldNftName:"NFT Name",formMustBePositiveInteger:"Must be a positive integer",formAmountExceedsNft:"Amount cannot exceed available balance {max}",receivedButtonValue:"Received: {value}",actionExecutedFor:'Action "{action}" executed for: {value}',buyTokenHelp:"I'll help you buy {symbol}. Let me show your available tokens to trade with.",tokenNotFoundOnChain:'I couldn\'t find the token "{symbol}" on this chain. Here are the trending tokens you can buy',swapPreparing:"Preparing your swap...",swapConfirmYes:"Yes",swapChooseFrom:"Please choose which token you want to swap from:",swapChooseTo:"You want to swap {symbol}. Please choose which token you want to receive:",swapNeedDetails:'I need more details for your swap. Please specify which tokens you want to swap (e.g. "Swap 1 ETH to USDC").',viewNftsLoading:"Let me show you your NFT collection!",sendTokenNotInWallet:"You don't have {symbol} in your wallet on this chain. Please acquire some first before sending.",sendTokenChoose:"Which token would you like to send?",sendNftChoose:"Which NFT would you like to send?",swapChooseToken:"Which token would you like to swap? Here are your current balances:",spendable:"Spendable",welcomeMessage:"**Welcome! 🚀**\nYou’re now connected and ready to explore the world of Blockchain. I can assist you anytime with NFT insights, trading, price tracking, and portfolio analysis.",sendOtherNfts:"\nIf the NFT you want to send is not in the list above, please visit our website to send it.",sendNftViaWebsite:"Please select the NFT you would like to send from the list and proceed via this website.",sendNftViaWebsiteWithLink:"Please select the NFT you would like to send from the list and proceed via [this website]({link}).",viewNftViaWebsite:"Please view your NFT collection on this website for more details.",viewNftViaWebsiteWithLink:"Please view your NFT collection on [this website]({link}) for more details.",buyingOnChain:"Buying {symbol} on {chain}",viewOnExplorer:"View on Explorer",copyWalletAddress:"Copy wallet address",copied:"Copied!",copyAddress:"Copy address",poolGeneralInfoIntro:"💧 **Liquidity Pools** are smart contracts where users deposit token pairs to provide liquidity for DEX trading (like Uniswap). Liquidity providers (LPs) earn trading fees from each swap.",poolGeneralInfoMetricsTitle:"**Key Metrics:**",poolGeneralInfoMetricTVL:"**TVL** - Total Value Locked in the pool",poolGeneralInfoMetricAPR:"**APR** - Estimated annual return from fees",poolGeneralInfoMetricVol24h:"**Volume 24h** - Trading volume in last 24 hours",poolGeneralInfoMetricFeeTier:"**Fee Tier** - Trading fee (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'Try asking something specific, like: *"ETH/USDC pools on Base"* or *"Highest APR pools"*.',poolNoMatch:"❌ No matching pools found.",poolNoMatchForTokenOnChain:"❌ No matching pools found for **{token}** on **{chain}**.",poolSuggestionsTitle:"💡 **Suggestions:**",poolSuggestionTryChain:"Try a different chain (Ethereum, Base, Arbitrum...)",poolSuggestionTryPair:"Try a more popular pair (ETH/USDC, ETH/USDT)",poolSuggestionRelaxFilters:"Remove filters if too narrow",poolHeaderBest:"🏆 Best Pool",poolHeaderSafe:"🛡️ Safest Pools",poolHeaderTrending:"🔥 Trending Pools",poolHeaderHighApr:"📈 Highest APR Pools",poolHeaderLowFee:"💰 Lowest Fee Pools",poolHeaderCompare:"⚖️ Pool Comparison",poolHeaderDetail:"🔎 Pool Details",poolHeaderGeneral:"💧 Pool Info",poolHeaderSearch:"🔍 Search Results",poolTableMetric:"Metric",poolTableValue:"Value",poolTableLink:"Link",poolLinkView:"View on Uniswap",poolRecommendationHighApr:"👉 **Recommended:** [{pair}]({link}) - Highest APR at **{apr}%**. _Note: Higher APR may come with higher risk._",poolRecommendationLowFee:"👉 **Recommended:** [{pair}]({link}) - Lowest fee at **{fee}%**, ideal for frequent trading.",poolRecommendationSafe:"👉 **Recommended:** [{pair}]({link}) - Highest TVL at **{tvl}**, deep liquidity and stable.",poolRecommendationTrending:"👉 **Most Active:** [{pair}]({link}) - 24h Volume **{volume}**, highest trading activity.",poolRecommendationTopPick:"👉 **Top pick:** [{pair}]({link}) - TVL **{tvl}**, best match for your criteria.",sendPositionNoId:'Please provide your LP position ID to send it. For example: "send position 12345 to 0x...".',sendPositionNotFound:"Position #{id} was not found in your wallet on {chain}. Please make sure you own this position.",sendPositionReview:"📤 Send LP Position **#{positionId}** ({pair})\n\nPlease enter the recipient address below:",sendPositionFetchError:"Error fetching your positions. Please try again.",poolUnsupportedChain:"This chain is not supported for data queries. Sorry for the inconvenience.",poolUniswapV3Only:"I can only get information of pools that is on Subgraph Uniswap V3.",today:"Today",yesterday:"Yesterday"},o={chatTitle:"Keyring Agent",closeChat:"チャットを閉じる",messagePlaceholder:"メッセージを入力...",sendMessage:"メッセージを送信",botIsTyping:"ボットが入力中...",canIHelpYou:"何かお手伝いできることはございますか?",suggestionAskText:"質問・調査のお願い",suggestionAskUserMessage:"質問があります",suggestionAskBotReply:"何でも聞いてください",suggestionBuyText:"トレンドトークンを購入",walletConnectedChainUnsupported:"ウォレットは接続されていますが、このチェーンは取引に対応していません。トレンドのトークンを表示するには、対応しているチェーンに切り替えてください。",walletNotConnected:"トレンドのトークンを表示するには、ウォレットを接続してください。",actionProcessing:"⏳ トランザクションを処理中...",actionSuccess:"✅ トランザクションが完了しました",actionFail:"❌ アクションがキャンセルされたか、失敗しました",txSubmitted:"⏳ トランザクションを送信しました。確認を待機中...",txConfirmed:"✅ トランザクションが確認されました!",txReverted:"❌ オンチェーンでトランザクションがリバートされました。",txTimeout:"⚠️ トランザクションは送信されましたが、タイムアウトしました。手動で確認してください。",txSuccessful:"✅ トランザクションに成功しました!",txFailed:"❌ トランザクションに失敗しました。もう一度お試しください。",txNoHandler:"⚠️ トランザクションハンドラーが設定されていません。",txInsufficientGas:"⚠️ **ガス代({symbol})が不足しています!** 保有量は {balance} {symbol} ですが、手数料に約 {fee} {symbol} 必要です。ウォレットにチャージして再試行してください。",txError:"❌ エラー: {message}",swapConfirmButton:"確定",swapConfirmValue:"スワップを確定する",swapReadyToProceed:"スワップを実行しますか?",swapEstimationError:"⚠️ スワップの見積もりを取得できません。エラー: {error}",formCancel:"キャンセル",formExecute:"実行",formProcessing:"⏳ 処理中...",formBalance:"残高:",formTokenNotFound:"ウォレット内にトークンが見つかりません。",formNoBalance:"ウォレットに {symbol} の残高がありません。",formInsufficientBalance:"残高不足です。利用可能: {balance} {symbol}",formFieldRequired:"{field} は必須項目です",formInvalidAddress:"無効なアドレスです(0x + 40文字である必要があります)",formMustBePositive:"正の数値を入力してください",formMustBeValidNumber:"有効な数値を入力してください",openChat:"チャットを開く",openChatTitle:"チャットサポートを開く",walletBalanceSpendable:"これは {chain} チェーン上のウォレットの利用可能な残高です。この取引に使用するコインを選択してください。",walletNoTokensFound:"申し訳ありませんが、{chain} チェーン上のウォレットにトークンが見つかりませんでした。取引するためのトークンを保有しているかご確認ください。",walletFetchFailed:"ウォレット残高を取得できませんでした。もう一度お試しください。",walletFetchError:"ウォレット残高の取得中にエラーが発生しました。",insufficientFeeToken:"手数料が不足しています。取引手数料をカバーするのに十分な {symbol} を保有しているか、別のトークンを選択してください。",selectAmountOf:"使用する {symbol} の数量を選択してください:\n\n利用可能: {balance} {symbol}",swapFeeWarning:"\n⚠️ **手数料の {symbol} が不足しています!**\n 保有量は {balance} {symbol} ですが、~{needed} {symbol} 必要です。\n",swapNeedApprove:"スワップを行う前に、まず {symbol} の承認が必要です。",swapApproveButton:"{symbol} を承認する",swapApproveValue:"スワップのために {symbol} を承認",swapNoSourceToken:"⚠️ ウォレットにソーストークンがないか、残高が 0 です。",swapSelectAmount:"スワップ {from} → {to}\n\nスワップする {from} の数量を選択してください:\n\n利用可能: {balance} {from}",swapApprovalRequired:"⚠️ スワップの前にトークンの承認が必要です。\n\nステップ 1: {symbol} を承認\nステップ 2: スワップを確定",swapEstimationFailed:"⚠️ スワップの見積もり取得に失敗しました。もう一度お試しください。",swapInsufficientNativeBalance:"⚠️ 残高不足です! 保有量は {balance} {symbol} ですが、{amount} {symbol} 必要です。ウォレットにチャージするか、数量を減らしてください。",swapTokenNotInWallet:"⚠️ ウォレットに {symbol} がありません。スワップする前にまず入手してください。",swapInsufficientTokenBalance:"⚠️ 残高不足です! 保有量は {balance} {symbol} ですが、{amount} {symbol} 必要です。数量を減らすか、トークンを追加してください。",selectAmountToSwap:"スwaップする {symbol} の数量を選択してください:\n\n利用可能: {balance} {symbol}",couldNotLoadTokenList:"⚠️ トークンリストを読み込めませんでした。受け取り希望のトークンを指定してください。",trendingTokensForReceive:"📈 {chain} チェーンのトレンドトークン。受け取りたいトークンを選択するか、入力してください:",txProcessing:"⏳ トランザクション処理中... ウォレットで承認してください。",txConfirmedSwap:"✅ トランザクションが確認されました!スワップが完了しました。",txRevertedSwap:"❌ オンチェーンでトランザクションがリバートされました。もう一度お試しください。",txSuccessfulSwap:"✅ トランザクションに成功しました!スワップが完了しました。",txSuccessfulSendToken:"✅ **{amount} {symbol}** を {to} に送信しました",txSuccessfulSendNative:"✅ **{amount} {symbol}** を {to} に送信しました",txSuccessfulWrapNative:"✅ **{amount} {from}** を **{to}** にラップしました",txSuccessfulUnwrapNative:"✅ **{amount} {from}** を **{to}** にアンラップしました",txSuccessfulSendNft:"✅ NFT **{name}** (#{tokenId}) を {to} に送信しました",txDataNotAvailable:"⚠️ トランザクションデータが利用できません。",approvalDataNotAvailable:"⚠️ 承認データが利用できません。",approving:"{symbol} を承認中... ウォレットで確認してください。",approvalSuccess:"✅ {symbol} の承認に成功しました!",approvalConfirmSwap:"これでスワップを実行できます。",confirmSwapButton:"スワップを確定する",approvalFailed:"❌ 承認に失敗しました。もう一度お試しください。",couldNotFetchBalance:"⚠️ ウォレット残高を取得できませんでした。",couldNotLoadBalance:"⚠️ 残高を読み込めませんでした。もう一度お試しください。",couldNotFetchBalanceRetry:"⚠️ 残高を取得できませんでした。もう一度お試しください。",nftSendReview:"📤 **{name}** ({standard} #{tokenId}) を送信\n\n内容を確認し、以下に受信者のアドレスを入力してください:",nftCollectionHeader:"您的 NFT 资产:\n\n{list}",nftMoreItems:"\n\n以及其他 {count} 件 NFT...",nftSelectBelow:"\n\n请在下方选择要发送的 NFT",nftNoCollection:"このチェーン上のウォレットにNFTは見つかりませんでした。",nftMultipleMatchesForTokenId:"ウォレット内にToken ID #{tokenId} のNFTが{count}件見つかりました。送信したいNFTを選択してください:",nftNotFoundInWallet:'あなたのNFTコレクションに "{name}" が見つかりませんでした。このチェーンでこのNFTを所有していません。',nftFetchError:"申し訳ありませんが、NFTの取得中にエラーが発生しました。",trendingTokensHeader:"📈 {chain} チェーンで現在価格が上昇中のトレンドトークン一覧です:",trendingTokensQuestion:"\n購入したいトークンはありますか?",trendingTokensError:"トレンドトークンの取得中にエラーが発生しました。",errorProcessingRequest:"リクエストの処理中にエラーが発生しました。しばらく時間を置いてからもう一度お試しください。",buttonBuyWith:"{symbol} で購入",buttonUsePercent:"{symbol}の{percent}%を使用",buttonBuyToken:"{name} ({symbol}) を購入",buttonSendNft:"{name} を送信",buttonSwapTo:"{name} ({symbol}) にスワップ",buttonBuySymbol:"{symbol} を購入",viewBalancesLoading:"ウォレットの残高を取得中...",viewBalancesHeader:"{chain} 上のトークン残高:\n\n{list}",viewBalancesEmpty:"このチェーン上のウォレットにトークンは見つかりませんでした。",viewBalancesFetchError:"残高の取得中にエラーが発生しました。",buttonSendToken:"{symbol} を送信",formMax:"最大",buttonSwapToken:"{symbol} をスワップ",buttonBuyMoreToken:"{symbol} をさらに入手",actionSendNativeLabel:"ネイティブトークンを送信",actionSendNativeDesc:"ネイティブトークン (ETH, BNB, MATIC など) をアドレスに送信します",actionSendTokenLabel:"トークンを送信 (ERC20)",actionSendTokenDesc:"ERC20トークンをアドレスに送信します",actionSwapTokenLabel:"トークンをスワップ",actionSwapTokenDesc:"トークンを別のトークンに交換します",actionApproveTokenLabel:"トークンを承認",actionApproveTokenDesc:"支出元(Spender)によるトークンの使用を許可します",actionWrapNativeLabel:"ネイティブトークンをラップ",actionWrapNativeDesc:"ネイティブトークンをラップします (ETH → WETH)",actionUnwrapNativeLabel:"ネイティブトークンをアンラップ",actionUnwrapNativeDesc:"ネイティブトークンをアンラップします (WETH → ETH)",actionSendNftLabel:"NFTを送信",actionSendNftDesc:"ERC721またはERC1155 NFTを別のアドレスに転送します",fieldToAddress:"受信者アドレス",fieldAmount:"数量",fieldTokenContract:"トークンコントラクト",fieldTokenSymbol:"トークンシンボル",fieldDecimals:"デシマル (小数桁数)",fieldTokenIn:"元のトークン",fieldTokenInSymbol:"元のシンボル",fieldTokenOut:"先のトークン",fieldTokenOutSymbol:"先のシンボル",fieldTokenInDecimals:"元のデシマル",fieldTokenOutDecimals:"先のデシマル",fieldSpenderAddress:"支出元 (Spender) アドレス",fieldAmountUnlimited:"数量 (空欄 = 無制限)",fieldNftContract:"NFTコントラクト",fieldTokenId:"トークンID",fieldTokenStandard:"トークン規格",fieldNftName:"NFT名",formMustBePositiveInteger:"正の整数を入力してください",formAmountExceedsNft:"数量は利用可能な残高 {max} を超えることはできません",receivedButtonValue:"受取額: {value}",actionExecutedFor:"アクション「{action}」が {value} に対して実行されました",buyTokenHelp:"{symbol} の購入をお手伝いします。まず、交換に使用可能なトークンを表示します。",tokenNotFoundOnChain:"このチェーン上でトークン「{symbol}」が見つかりませんでした。購入可能なトレンドトークンはこちらです",swapPreparing:"スワップの準備中...",swapConfirmYes:"はい",swapChooseFrom:"交換元(支払う)トークンを選択してください:",swapChooseTo:"{symbol} をスワップします。受け取りたいトークンを選択してください:",swapNeedDetails:"スワップの詳細が必要です。交換したいトークンを指定してください(例:「1 ETH を USDC にスワップ」)。",viewNftsLoading:"あなたのNFTコレクションを表示します!",sendTokenNotInWallet:"このチェーンのウォレットに {symbol} がありません。送信する前にまず入手してください。",sendTokenChoose:"どのトークンを送信しますか?",sendNftChoose:"どのNFTを送信しますか?",swapChooseToken:"どのトークンをスワップしますか?現在の残高はこちらです:",spendable:"利用可能",welcomeMessage:"**ようこそ! 🚀**\n次世代のブロックチェーンへ。NFT情報、トレード、価格チェック、ポートフォリオ分析など、いつでもお手伝いします。",sendOtherNfts:"\n送信したいNFTが上記のリストにない場合は、当ウェブサイトにアクセスして送信してください。",sendNftViaWebsite:"送信したいNFTをリストから選択し、当ウェブサイトで手続きを進めてください。",sendNftViaWebsiteWithLink:"送信したいNFTをリストから選択し、[当ウェブサイト]({link})で手続きを進めてください。",viewNftViaWebsite:"NFTコレクションの詳細は、当ウェブサイトでご確認ください。",viewNftViaWebsiteWithLink:"NFTコレクションの詳細は、[当ウェブサイト]({link})でご確認ください。",buyingOnChain:"{chain} チェーンで {symbol} を購入中",viewOnExplorer:"エクスプローラーで見る",copyWalletAddress:"ウォレットアドレスをコピー",copied:"コピーしました!",copyAddress:"アドレスをコピー",poolGeneralInfoIntro:"💧 **流動性プール** は、ユーザーがトークンペアを預けてDEX取引(Uniswap など)の流動性を提供するスマートコントラクトです。LP は各スワップの手数料を獲得します。",poolGeneralInfoMetricsTitle:"**主要メトリクス:**",poolGeneralInfoMetricTVL:"**TVL** - プールにロックされている総価値",poolGeneralInfoMetricAPR:"**APR** - 手数料に基づく年間想定利回り",poolGeneralInfoMetricVol24h:"**24時間出来高** - 直近24時間の取引量",poolGeneralInfoMetricFeeTier:"**手数料ティア** - 取引手数料 (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'例: *"Base の ETH/USDC プール"* や *"APR が高いプール"* のように聞いてみてください。',poolNoMatch:"❌ 条件に一致するプールが見つかりませんでした。",poolNoMatchForTokenOnChain:"❌ **{chain}** 上で **{token}** に一致するプールが見つかりませんでした。",poolSuggestionsTitle:"💡 **提案:**",poolSuggestionTryChain:"別のチェーンを試す (Ethereum, Base, Arbitrum...)",poolSuggestionTryPair:"より一般的なペアを試す (ETH/USDC, ETH/USDT)",poolSuggestionRelaxFilters:"フィルター条件を緩める",poolHeaderBest:"🏆 最適なプール",poolHeaderSafe:"🛡️ 安全性の高いプール",poolHeaderTrending:"🔥 トレンドプール",poolHeaderHighApr:"📈 APRの高いプール",poolHeaderLowFee:"💰 手数料の低いプール",poolHeaderCompare:"⚖️ プール比較",poolHeaderDetail:"🔎 プール詳細",poolHeaderGeneral:"💧 プール情報",poolHeaderSearch:"🔍 検索結果",poolTableMetric:"指標",poolTableValue:"値",poolTableLink:"リンク",poolLinkView:"Uniswapで表示",poolRecommendationHighApr:"👉 **おすすめ:** [{pair}]({link}) - APR は **{apr}%** で最も高いです。_注意: APR が高いほどリスクも高い可能性があります。_",poolRecommendationLowFee:"👉 **おすすめ:** [{pair}]({link}) - 手数料 **{fee}%** で、頻繁な取引に適しています。",poolRecommendationSafe:"👉 **おすすめ:** [{pair}]({link}) - TVL **{tvl}** で流動性が厚く安定しています。",poolRecommendationTrending:"👉 **最も活発:** [{pair}]({link}) - 24時間出来高 **{volume}** で取引が最も活発です。",poolRecommendationTopPick:"👉 **トップ候補:** [{pair}]({link}) - TVL **{tvl}**、条件に最も適合しています。",sendPositionNoId:'LP ポジション ID を提供してください。例:"ポジション 12345 を 0x... に送信"。',sendPositionNotFound:"{chain} 上のウォレットにポジション #{id} が見つかりませんでした。このポジションを所有していることを確認してください。",sendPositionReview:"📤 LP ポジション **#{positionId}** ({pair}) を送信\n\n受取人アドレスを以下に入力してください:",sendPositionFetchError:"ポジションの取得中にエラーが発生しました。もう一度お試しください。",poolUnsupportedChain:"このチェーンはデータクエリに対応していません。ご不便をおかけして申し訳ございません。",poolUniswapV3Only:"Subgraph Uniswap V3 上のプールの情報のみ取得できます。",today:"今日",yesterday:"昨日"},s={en:i,ja:o,cn:{chatTitle:"Keyring Agent",closeChat:"关闭聊天",messagePlaceholder:"请输入消息....",sendMessage:"发送消息",botIsTyping:"机器人正在输入",canIHelpYou:"有什么我可以帮您的吗?",suggestionAskText:"提问",suggestionAskUserMessage:"我有一个问题",suggestionAskBotReply:"随便问我任何事情",suggestionBuyText:"购买热门代币",walletConnectedChainUnsupported:"您的钱包已连接,但当前链不支持交易。请切换到支持的链以查看热门代币。",walletNotConnected:"请连接您的钱包以查看热门代币。",actionProcessing:"⏳ 正在处理交易...",actionSuccess:"✅ 交易已完成",actionFail:"❌ 操作取消或失败",txSubmitted:"⏳ 交易已提交。正在等待确认...",txConfirmed:"✅ 交易已确认!",txReverted:"❌ 交易在链上被退回(Reverted)。",txTimeout:"⚠️ 交易已提交但确认超时。请手动检查。",txSuccessful:"✅ 交易成功!",txFailed:"❌ 交易失败。请重试。",txNoHandler:"⚠️ 未配置交易处理器。",txInsufficientGas:"⚠️ **{symbol} 余额不足以支付 Gas 费!** 您当前有 {balance} {symbol},但交易费预计需要 ~{fee} {symbol}。请充值钱包后重试。",txError:"❌ 错误: {message}",swapConfirmButton:"确认",swapConfirmValue:"确认兑换",swapReadyToProceed:"准备好进行兑换了吗?",swapEstimationError:"⚠️ 无法获取兑换估算。错误: {error}",formCancel:"取消",formExecute:"执行",formProcessing:"⏳ 正在处理...",formBalance:"余额:",formTokenNotFound:"您的钱包中未找到该代币。",formNoBalance:"您的钱包中没有 {symbol} 余额。",formInsufficientBalance:"余额不足。可用余额: {balance} {symbol}",formFieldRequired:"{field} 是必填项",formInvalidAddress:"无效地址(必须是 0x + 40 个字符)",formMustBePositive:"必须为正数",formMustBeValidNumber:"必须为有效数字",openChat:"打开聊天",openChatTitle:"打开聊天支持",walletBalanceSpendable:"这是您在 {chain} 链上钱包的可选余额。请选择您想用于此次交易的代币。",walletNoTokensFound:"抱歉,我在 {chain} 链上的钱包中没找到任何代币。请确保您有代币可以进行交易。",walletFetchFailed:"抱歉,无法获取您的钱包余额。请重试。",walletFetchError:"抱歉,获取钱包余额时出错。",insufficientFeeToken:"手续费不足。请确保您有足够的 {symbol} 来支付交易费用,或选择其他代币。",selectAmountOf:"选择要使用的 {symbol} 数量:\n\n可用余额: {balance} {symbol}",swapFeeWarning:"\n⚠️ **手续费所需的 {symbol} 不足!**\n 您当前有 {balance} {symbol},但需要 ~{needed} {symbol}。\n",swapNeedApprove:"在兑换之前,您需要先授权 {symbol}。",swapApproveButton:"授权 {symbol}",swapApproveValue:"授权 {symbol} 以进行兑换",swapNoSourceToken:"⚠️ 您的钱包中没有源代币或余额为 0。",swapSelectAmount:"兑换 {from} → {to}\n\n选择要兑换的 {from} 数量:\n\n可用余额: {balance} {from}",swapApprovalRequired:"⚠️ 兑换前需要代币授权。\n\n第 1 步:授权 {symbol}\n第 2 步:确认兑换",swapEstimationFailed:"⚠️ 获取兑换估算失败。请重试。",swapInsufficientNativeBalance:"⚠️ 余额不足!您有 {balance} {symbol} 但需要 {amount} {symbol}。请充值钱包或减少金额。",swapTokenNotInWallet:"⚠️ 您的钱包中没有 {symbol}。请在兑换前先获取一些代币。",swapInsufficientTokenBalance:"⚠️ 余额不足!您有 {balance} {symbol} 但需要 {amount} {symbol}。请减少金额或添加更多代币。",selectAmountToSwap:"选择要兑换的 {symbol} 数量:\n\n可用余额: {balance} {symbol}",couldNotLoadTokenList:"⚠️ 无法加载代币列表。请指定目标代币。",trendingTokensForReceive:"📈 {chain} 链上的热门代币。请选择您想收到的代币或输入代币名称:",txProcessing:"⏳ 交易处理中... 请在钱包中确认。",txConfirmedSwap:"✅ 交易已确认!您的兑换已完成。",txRevertedSwap:"❌ 交易在链上被退回。请重试。",txSuccessfulSwap:"✅ 交易成功!您的兑换已完成。",txSuccessfulSendToken:"✅ 已成功发送 **{amount} {symbol}** 至 {to}",txSuccessfulSendNative:"✅ 已成功发送 **{amount} {symbol}** 至 {to}",txSuccessfulWrapNative:"✅ 成功封装 **{amount} {from}** → **{to}**",txSuccessfulUnwrapNative:"✅ 成功解封装 **{amount} {from}** → **{to}**",txSuccessfulSendNft:"✅ 已成功发送 NFT **{name}** (#{tokenId}) 至 {to}",txDataNotAvailable:"⚠️ 交易数据不可用。",approvalDataNotAvailable:"⚠️ 授权数据不可用。",approving:"正在授权 {symbol}... 请在钱包中确认。",approvalSuccess:"✅ {symbol} 授权成功!",approvalConfirmSwap:"现在您可以执行兑换了。",confirmSwapButton:"确认兑换",approvalFailed:"❌ 授权失败。请重试。",couldNotFetchBalance:"⚠️ 无法获取您的钱包余额。",couldNotLoadBalance:"⚠️ 无法加载余额。请重试。",couldNotFetchBalanceRetry:"⚠️ 无法获取您的余额。请重试。",nftSendReview:"📤 发送 **{name}** ({standard} #{tokenId})\n\n请核对并在下方填写接收者地址:",nftCollectionHeader:"保有中のNFT一覧 :\n\n{list}",nftMoreItems:"\n\n他 {count} 件のNFT...",nftSelectBelow:"\n\n送信するNFTを以下から選択してください",nftNoCollection:"您在该链的钱包中没有任何 NFT。",nftMultipleMatchesForTokenId:"在您的钱包中找到了 {count} 个 Token ID #{tokenId} 的 NFT。请选择您要发送的 NFT:",nftNotFoundInWallet:'我在您的 NFT 收藏中没找到 "{name}"。您在此链上不拥有此 NFT。',nftFetchError:"抱歉,获取您的 NFT 时出错。",trendingTokensHeader:"📈 以下是 {chain} 链上目前呈上升趋势的热门代币列表",trendingTokensQuestion:"\n有您想购买的代币吗?",trendingTokensError:"抱歉,获取热门代币时出错。",errorProcessingRequest:"抱歉,处理您的请求时出错。请稍后再试。",buttonBuyWith:"使用 {symbol} 购买",buttonUsePercent:"使用{percent}%的{symbol}",buttonBuyToken:"购买 {name} ({symbol})",buttonSendNft:"发送 {name}",buttonSwapTo:"兑换为 {name} ({symbol})",buttonBuySymbol:"购买 {symbol}",viewBalancesLoading:"正在获取您的钱包余额...",viewBalancesHeader:"您在 {chain} 上的代币余额:\n\n{list}",viewBalancesEmpty:"您在该链的钱包中没有任何代币。",viewBalancesFetchError:"抱歉,获取您的余额时出错。",buttonSendToken:"发送 {symbol}",formMax:"最多",buttonSwapToken:"兑换 {symbol}",buttonBuyMoreToken:"购买更多 {symbol}",actionSendNativeLabel:"发送原生代币",actionSendNativeDesc:"将原生代币 (ETH, BNB, MATIC 等) 发送到指定地址",actionSendTokenLabel:"发送代币 (ERC20)",actionSendTokenDesc:"将 ERC20 代币发送到指定地址",actionSwapTokenLabel:"兑换代币",actionSwapTokenDesc:"将一种代币兑换为另一种",actionApproveTokenLabel:"授权代币",actionApproveTokenDesc:"授权支出方使用您的代币",actionWrapNativeLabel:"包装 (Wrap) 原生代币",actionWrapNativeDesc:"包装原生代币 (例如 ETH → WETH)",actionUnwrapNativeLabel:"解包 (Unwrap) 原生代币",actionUnwrapNativeDesc:"解包原生代币 (例如 WETH → ETH)",actionSendNftLabel:"发送 NFT",actionSendNftDesc:"将 ERC721 或 ERC1155 NFT 转移到另一个地址",fieldToAddress:"接收者地址",fieldAmount:"金额",fieldTokenContract:"代币合约",fieldTokenSymbol:"代币符号",fieldDecimals:"精度 (Decimals)",fieldTokenIn:"源代币 (From)",fieldTokenInSymbol:"源代币符号",fieldTokenOut:"目标代币 (To)",fieldTokenOutSymbol:"目标代币符号",fieldTokenInDecimals:"源代币精度",fieldTokenOutDecimals:"目标代币精度",fieldSpenderAddress:"支出方 (Spender) 地址",fieldAmountUnlimited:"金额 (留空 = 无限制)",fieldNftContract:"NFT 合约",fieldTokenId:"代币 ID",fieldTokenStandard:"代币标准",fieldNftName:"NFT 名称",formMustBePositiveInteger:"必须为正整数",formAmountExceedsNft:"金额不能超过可用余额 {max}",receivedButtonValue:"收到: {value}",actionExecutedFor:'操作 "{action}" 已执行,对象为: {value}',buyTokenHelp:"我会帮您购买 {symbol}。让我为您显示可用于交易的代币。",tokenNotFoundOnChain:'我在该链上没找到代币 "{symbol}"。以下是您可以购买的热门代币',swapPreparing:"正在准备兑换...",swapConfirmYes:"是",swapChooseFrom:"请选择您想从哪个代币进行兑换:",swapChooseTo:"您想兑换 {symbol}。请选择您想收到的代币:",swapNeedDetails:"我需要更多关于兑换的细节。请指定您想兑换的代币(例如 “将 1 ETH 兑换为 USDC”)。",viewNftsLoading:"正在为您展示 NFT 收藏!",sendTokenNotInWallet:"您的钱包中在此链上没有 {symbol}。请在发送前先获取一些代币。",sendTokenChoose:"您想发送哪个代币?",sendNftChoose:"您想发送哪个 NFT?",swapChooseToken:"您想兑换哪个代币?以下是您的当前余额:",spendable:"可用余额",welcomeMessage:"**欢迎您!🚀**\n带你一起探索新一代区块链世界。我可以随时为您提供NFT资讯、交易支持、价格查询以及投资组合分析等服务。",sendOtherNfts:"\n如果您想发送的NFT不在上述列表中,请访问我们的网站进行发送。",sendNftViaWebsite:"请从列表中选择您想发送的NFT,并通过这个网站继续操作。",sendNftViaWebsiteWithLink:"请从列表中选择您想发送的NFT,并通过[这个网站]({link})继续操作。",viewNftViaWebsite:"如需查看更多详情,请在这个网站查看您的NFT收藏。",viewNftViaWebsiteWithLink:"如需查看更多详情,请在[这个网站]({link})查看您的NFT收藏。",buyingOnChain:"正在 {chain} 链上购买 {symbol}",viewOnExplorer:"在区块浏览器查看",copyWalletAddress:"复制钱包地址",copied:"已复制!",copyAddress:"复制地址",poolGeneralInfoIntro:"💧 **流动性池** 是用户存入代币对、为 DEX(如 Uniswap)提供流动性的智能合约。流动性提供者(LP)可从每笔兑换中获得手续费收益。",poolGeneralInfoMetricsTitle:"**关键指标:**",poolGeneralInfoMetricTVL:"**TVL** - 池中锁仓总价值",poolGeneralInfoMetricAPR:"**APR** - 基于手续费估算的年化收益",poolGeneralInfoMetricVol24h:"**24小时成交量** - 最近24小时交易量",poolGeneralInfoMetricFeeTier:"**费率档位** - 交易费率 (0.01%, 0.05%, 0.3%, 1%)",poolGeneralInfoTryAsk:'你可以更具体地提问,例如:*"Base 上的 ETH/USDC 池"* 或 *"APR 最高的池"*。',poolNoMatch:"❌ 未找到匹配的流动性池。",poolNoMatchForTokenOnChain:"❌ 在 **{chain}** 上未找到 **{token}** 的匹配池。",poolSuggestionsTitle:"💡 **建议:**",poolSuggestionTryChain:"尝试其他链(Ethereum、Base、Arbitrum...)",poolSuggestionTryPair:"尝试更热门的交易对(ETH/USDC、ETH/USDT)",poolSuggestionRelaxFilters:"放宽筛选条件",poolHeaderBest:"🏆 最佳流动性池",poolHeaderSafe:"🛡️ 更稳健的流动性池",poolHeaderTrending:"🔥 热门流动性池",poolHeaderHighApr:"📈 高 APR 流动性池",poolHeaderLowFee:"💰 低费率流动性池",poolHeaderCompare:"⚖️ 流动性池对比",poolHeaderDetail:"🔎 流动性池详情",poolHeaderGeneral:"💧 流动性池信息",poolHeaderSearch:"🔍 搜索结果",poolTableMetric:"指标",poolTableValue:"数值",poolTableLink:"链接",poolLinkView:"在 Uniswap 查看",poolRecommendationHighApr:"👉 **推荐:**[{pair}]({link}) - APR 最高,为 **{apr}%**。_注意:APR 越高通常风险也越高。_",poolRecommendationLowFee:"👉 **推荐:**[{pair}]({link}) - 费率仅 **{fee}%**,适合高频交易。",poolRecommendationSafe:"👉 **推荐:**[{pair}]({link}) - TVL 达 **{tvl}**,流动性更充足且相对稳定。",poolRecommendationTrending:"👉 **最活跃:**[{pair}]({link}) - 24 小时成交量 **{volume}**,交易最活跃。",poolRecommendationTopPick:"👉 **首选:**[{pair}]({link}) - TVL **{tvl}**,最符合你的筛选条件。",sendPositionNoId:'请提供您的 LP 仓位 ID 以便转出。例如:"发送仓位 12345 至 0x..."。',sendPositionNotFound:"在 {chain} 上的钱包中未找到仓位 #{id}。请确认您拥有该仓位。",sendPositionReview:"📤 发送 LP 仓位 **#{positionId}** ({pair})\n\n请在下方填写接收者地址:",sendPositionFetchError:"获取您的仓位时出错。请重试。",poolUnsupportedChain:"该链不支持数据查询,给您带来不便,深表歉意。",poolUniswapV3Only:"我只能获取 Subgraph Uniswap V3 上的流动性池信息。",today:"今天",yesterday:"昨天"}},a=["en","ja","cn"];function c(e){if(!e)return"en";const t=e.toLowerCase().split(/[-_]/)[0];return"zh"===t?"cn":a.includes(t)?t:"en"}function u(e,t){return s[t]?.[e]??s.en[e]??e}function l(e,t){return e.replace(/\{(\w+)\}/g,(e,n)=>t[n]??`{${n}}`)}const f=n.createContext(void 0),d=({children:e,initialLanguage:r="en"})=>{const[i,o]=n.useState(r),s=n.useCallback(e=>u(e,i),[i]),a=n.useCallback((e,t)=>l(u(e,i),t),[i]);return t.jsx(f.Provider,{value:{language:i,setLanguage:o,t:s,ti:a},children:e})},h=()=>{const e=n.useContext(f);if(!e)throw new Error("useLanguage must be used within LanguageProvider");return e},p=e=>{const{language:t,setLanguage:r}=h(),i=e?c(e):t,o=n.useCallback(e=>u(e,i),[i]),s=n.useCallback((e,t)=>l(u(e,i),t),[i]);return n.useMemo(()=>({language:i,setLanguage:r,t:o,ti:s}),[i,r,o,s])},m=n.memo(function({onClick:e,buttonSize:n=56,customIcon:r,customChatButton:i}){const{t:o}=h(),s=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),e())};return i?t.jsx("div",{onClick:e,onKeyDown:s,role:"button",tabIndex:0,children:i}):t.jsx("button",{className:"chat-button",onClick:e,onKeyDown:s,"aria-label":o("openChat"),title:o("openChatTitle"),type:"button",style:{width:n,height:n,aspectRatio:1},children:t.jsx("img",{draggable:!1,style:{width:n,height:n,objectFit:"contain"},src:r||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfXSURBVHgB7Z1LbFRVGMe/c4YCAmKrEFiQWIIrNm13RE0olLRuTCq4w4C6Mbopo9GltFsVpmxQN1pJ2MkjcSMESrsgYdd2w8rGkrCA8GjFVintzPH878wZjrfzujPTe88p3y+ZzMydOxO4//s9z3dvBTWB7sxsqyTqF2q5k4R8nUh06s2thQeTZyZ4qOwU0bqJFkHjv6fbZqhBBNVJIJqiASFUN94SExl98CeVEsONiBlZQEu4E8QW1kTUSAvJoahCRhLw4OnZkyzc6qItcnD087ahWvevScB3MrPty6QuKaJOYuJgpoXEgVqsUVbboef07PElUhMsXqy045j3ZB72V9uxooCHtMskoUaIXWYS6GMuLyFsVdqprAuFeEqoQWISp1JcLClgz3fadFPyEjHuIMWH1wfafglvXiEgEhb4X2K36RpzOrHpCic2K2KgFu8GsXgu0opKILzxfwIeygfMdmKcBJXAwVOPBu1tRRdacJ1/EuM6c1kSu8fSbXN4U7TAJZUdJMYHWmUud8K8CSyQrc87ilYYWOCzXLabGJ8oWmEgoJRygBivEFLsD57ZffqLdqNtkt2nv8hctl8qIXiVwVOE1k5KITqI8RTRjiSmnRg/EdTBAvpNa9UVecZpWEDfYQE9hwX0HBbQc1jAEFs2CLp2oi14dOxaR67DAoZ4c09L8XXHrhZyHRYwxFt71hdf9+5dT67DAlrs2Cq1gM+tbqd+77obZQEtju17qaZtLsECFji2byP1lXCZsMAvezcHyY2LuJ9mrSKbtShva5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ksSEL2iZLozLm4RoZ2FIN6nZlnp5oVtp9wtj8yYZMfUl5jx94YXvhRoR7boQ8dG+W4XLcDOb8l0elCV2XWhnti6UC+WITcB5x9LvUpS6ZA2XZrv8b48ticFZnOSibq2JCUS8ot0pkhrMurh4TaBNbBbY7Ov5ooC6L0pmeb+wv+vigdgEXI2LMmvBXKC5VonVp5kuSF+V+7I0A1gRrqG/oFcwfLCkenHiPjGV5kWbcS38WsbpMoLFq46zArJ4teGkgCxe7TgnIIsXDacEZPGi44yALF59OLEeiNaVbwupruCEBbJ49cPLSZ7DAnoOC+g5LKDnsICeI/VSxBwx3iIFC+gzM9qFqklifGVG5hTdIcZPlJqSQrEFektKTsicTF0mxkuyORqXY+k2JDFjxHiFrh4mtXYzQR0ocmqcGK8QUgzjORBwWcphrgf9Au4Tz4GAcKM6HT1DjCeIEbhPvCq20tgK/SFLNGReFwVkK/QDRWrIWB9YcXuHg5nHE3pjJzHOoT3kzGj61d32thWrETkS77ErdQ9oorU5EN6+QsC8eebSxDiFoNxHtus0lFwPHE1vGxHa1xLjBIh719PbSnbMKt7i6FDm0aAicZKYxIB4o+nXBst9XvUeVT2Zh/2K5M96x1ZiYiOfh+TS8IaV9qvpJmPdmdl2SeqG3rmdmFUHfU4kk6ViXphIf8ubXerqAqvThnLmWgWXGSbaH2OnvDWmVG6QhDhOTFMwwi2THC6sDtVMZAENebea7daJ7AAX/nUzprP98XqEM9QtoI0RUyjRqS2zg/Kxsp2YAFhYfnhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=",alt:"Ask AI"})})}),g={getItem(e){if("undefined"==typeof window)return null;try{return window.localStorage.getItem(e)}catch{return null}},setItem(e,t){if("undefined"!=typeof window)try{window.localStorage.setItem(e,t)}catch{}},removeItem(e){if("undefined"!=typeof window)try{window.localStorage.removeItem(e)}catch{}},get length(){if("undefined"==typeof window)return 0;try{return window.localStorage.length}catch{return 0}},key(e){if("undefined"==typeof window)return null;try{return window.localStorage.key(e)}catch{return null}}};const b=/^tuple(?<array>(\[(\d*)\])*)$/;function w(e){let t=e.type;if(b.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let i=0;i<n;i++){t+=w(e.components[i]),i<n-1&&(t+=", ")}const r=function(e,t){const n=e.exec(t);return n?.groups}(b,e.type);return t+=`)${r?.array||""}`,w({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function y(e){let t="";const n=e.length;for(let r=0;r<n;r++){t+=w(e[r]),r!==n-1&&(t+=", ")}return t}function v(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new O(e.type);return`${e.name}(${A(e.inputs,{includeName:t})})`}function A(e,{includeName:t=!1}={}){return e?e.map(e=>function(e,{includeName:t}){if(e.type.startsWith("tuple"))return`(${A(e.components,{includeName:t})})${e.type.slice(5)}`;return e.type+(t&&e.name?` ${e.name}`:"")}(e,{includeName:t})).join(t?", ":","):""}function k(e,{strict:t=!0}={}){return!!e&&("string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}function x(e){return k(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}const E="2.49.3";let C=({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,S=`viem@${E}`;class T extends Error{constructor(e,t={}){const n=t.cause instanceof T?t.cause.details:t.cause?.message?t.cause.message:t.details,r=t.cause instanceof T&&t.cause.docsPath||t.docsPath,i=C?.({...t,docsPath:r});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...n?[`Details: ${n}`]:[],...S?[`Version: ${S}`]:[]].join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=E}walk(e){return M(this,e)}}function M(e,t){return t?.(e)?e:e&&"object"==typeof e&&"cause"in e&&void 0!==e.cause?M(e.cause,t):t?null:e}class I extends T{constructor({expectedLength:e,givenLength:t,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${e}`,`Given length: ${t}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class B extends T{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${x(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class N extends T{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class R extends T{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t,name:"AbiFunctionNotFoundError"})}}class L extends T{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${v(e.abiItem)}\`, and`,`\`${t.type}\` in \`${v(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class D extends T{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:t,name:"InvalidAbiEncodingType"})}}class F extends T{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}}class O extends T{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class P extends T{constructor({offset:e,position:t,size:n}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class U extends T{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}function q(e,{dir:t,size:n=32}={}){return"string"==typeof e?H(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new U({size:e.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let i=0;i<n;i++){const o="right"===t;r[o?i:n-i-1]=e[o?i:e.length-i-1]}return r}(e,{dir:t,size:n})}function H(e,{dir:t,size:n=32}={}){if(null===n)return e;const r=e.replace("0x","");if(r.length>2*n)throw new U({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r["right"===t?"padEnd":"padStart"](2*n,"0")}`}class z extends T{constructor({max:e,min:t,signed:n,size:r,value:i}){super(`Number "${i}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class j extends T{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}function V(e,{dir:t="left"}={}){let n="string"==typeof e?e.replace("0x",""):e,r=0;for(let i=0;i<n.length-1&&"0"===n["left"===t?i:n.length-i-1].toString();i++)r++;return n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"==typeof e?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}function G(e,{size:t}){if(x(e)>t)throw new j({givenSize:x(e),maxSize:t})}function J(e,t={}){const{signed:n}=t;t.size&&G(e,{size:t.size});const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2;return r<=(1n<<8n*BigInt(i)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function W(e,t={}){const n=J(e,t),r=Number(n);if(!Number.isSafeInteger(r))throw new z({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return r}const K=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Y(e,t={}){return"number"==typeof e||"bigint"==typeof e?Z(e,t):"string"==typeof e?_(e,t):"boolean"==typeof e?X(e,t):Q(e,t)}function X(e,t={}){const n=`0x${Number(e)}`;return"number"==typeof t.size?(G(n,{size:t.size}),q(n,{size:t.size})):n}function Q(e,t={}){let n="";for(let i=0;i<e.length;i++)n+=K[e[i]];const r=`0x${n}`;return"number"==typeof t.size?(G(r,{size:t.size}),q(r,{dir:"right",size:t.size})):r}function Z(e,t={}){const{signed:n,size:r}=t,i=BigInt(e);let o;r?o=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof e&&(o=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"==typeof o&&n?-o-1n:0;if(o&&i>o||i<s){const t="bigint"==typeof e?"n":"";throw new z({max:o?`${o}${t}`:void 0,min:`${s}${t}`,signed:n,size:r,value:`${e}${t}`})}const a=`0x${(n&&i<0?(1n<<BigInt(8*r))+BigInt(i):i).toString(16)}`;return r?q(a,{size:r}):a}const $=new TextEncoder;function _(e,t={}){return Q($.encode(e),t)}const ee=new TextEncoder;function te(e,t={}){return"number"==typeof e||"bigint"==typeof e?function(e,t){const n=Z(e,t);return ie(n)}(e,t):"boolean"==typeof e?function(e,t={}){const n=new Uint8Array(1);if(n[0]=Number(e),"number"==typeof t.size)return G(n,{size:t.size}),q(n,{size:t.size});return n}(e,t):k(e)?ie(e,t):oe(e,t)}const ne={zero:48,nine:57,A:65,F:70,a:97,f:102};function re(e){return e>=ne.zero&&e<=ne.nine?e-ne.zero:e>=ne.A&&e<=ne.F?e-(ne.A-10):e>=ne.a&&e<=ne.f?e-(ne.a-10):void 0}function ie(e,t={}){let n=e;t.size&&(G(n,{size:t.size}),n=q(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const i=r.length/2,o=new Uint8Array(i);for(let s=0,a=0;s<i;s++){const e=re(r.charCodeAt(a++)),t=re(r.charCodeAt(a++));if(void 0===e||void 0===t)throw new T(`Invalid byte sequence ("${r[a-2]}${r[a-1]}" in "${r}").`);o[s]=16*e+t}return o}function oe(e,t={}){const n=ee.encode(e);return"number"==typeof t.size?(G(n,{size:t.size}),q(n,{dir:"right",size:t.size})):n}const se=BigInt(2**32-1),ae=BigInt(32);function ce(e,t=!1){return t?{h:Number(e&se),l:Number(e>>ae&se)}:{h:0|Number(e>>ae&se),l:0|Number(e&se)}}function ue(e,t=!1){const n=e.length;let r=new Uint32Array(n),i=new Uint32Array(n);for(let o=0;o<n;o++){const{h:n,l:s}=ce(e[o],t);[r[o],i[o]]=[n,s]}return[r,i]}const le=(e,t,n)=>e>>>n,fe=(e,t,n)=>e<<32-n|t>>>n,de=(e,t,n)=>e>>>n|t<<32-n,he=(e,t,n)=>e<<32-n|t>>>n,pe=(e,t,n)=>e<<64-n|t>>>n-32,me=(e,t,n)=>e>>>n-32|t<<64-n;function ge(e,t,n,r){const i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:0|i}}const be=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),we=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,ye=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),ve=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0,Ae=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),ke=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0,xe="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function Ee(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function Ce(e){if(!Number.isSafeInteger(e)||e<0)throw new Error("positive integer expected, got "+e)}function Se(e,...t){if(!Ee(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Te(e){if("function"!=typeof e||"function"!=typeof e.create)throw new Error("Hash should be wrapped by utils.createHasher");Ce(e.outputLen),Ce(e.blockLen)}function Me(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Ie(e,t){Se(e);const n=t.outputLen;if(e.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function Be(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function Ne(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Re(e,t){return e<<32-t|e>>>t}function Le(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const De=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=Le(e[t]);return e},Fe=(()=>"function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex)(),Oe=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Pe(e){if(Se(e),Fe)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=Oe[e[n]];return t}const Ue=48,qe=57,He=65,ze=70,je=97,Ve=102;function Ge(e){return e>=Ue&&e<=qe?e-Ue:e>=He&&e<=ze?e-(He-10):e>=je&&e<=Ve?e-(je-10):void 0}function Je(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);if(Fe)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const r=new Uint8Array(n);for(let i=0,o=0;i<n;i++,o+=2){const t=Ge(e.charCodeAt(o)),n=Ge(e.charCodeAt(o+1));if(void 0===t||void 0===n){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character "'+t+'" at index '+o)}r[i]=16*t+n}return r}function We(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(e))}(e)),Se(e),e}function Ke(...e){let t=0;for(let r=0;r<e.length;r++){const n=e[r];Se(n),t+=n.length}const n=new Uint8Array(t);for(let r=0,i=0;r<e.length;r++){const t=e[r];n.set(t,i),i+=t.length}return n}class Ye{}function Xe(e){const t=t=>e().update(We(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function Qe(e=32){if(xe&&"function"==typeof xe.getRandomValues)return xe.getRandomValues(new Uint8Array(e));if(xe&&"function"==typeof xe.randomBytes)return Uint8Array.from(xe.randomBytes(e));throw new Error("crypto.getRandomValues must be defined")}const Ze=BigInt(0),$e=BigInt(1),_e=BigInt(2),et=BigInt(7),tt=BigInt(256),nt=BigInt(113),rt=[],it=[],ot=[];for(let cA=0,uA=$e,lA=1,fA=0;cA<24;cA++){[lA,fA]=[fA,(2*lA+3*fA)%5],rt.push(2*(5*fA+lA)),it.push((cA+1)*(cA+2)/2%64);let e=Ze;for(let t=0;t<7;t++)uA=(uA<<$e^(uA>>et)*nt)%tt,uA&_e&&(e^=$e<<($e<<BigInt(t))-$e);ot.push(e)}const st=ue(ot,!0),at=st[0],ct=st[1],ut=(e,t,n)=>n>32?((e,t,n)=>t<<n-32|e>>>64-n)(e,t,n):((e,t,n)=>e<<n|t>>>32-n)(e,t,n),lt=(e,t,n)=>n>32?((e,t,n)=>e<<n-32|t>>>64-n)(e,t,n):((e,t,n)=>t<<n|e>>>32-n)(e,t,n);class ft extends Ye{constructor(e,t,n,r=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,Ce(n),!(0<e&&e<200))throw new Error("only keccak-f1600 function is supported");var o;this.state=new Uint8Array(200),this.state32=(o=this.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)))}clone(){return this.i()}keccak(){De(this.state32),function(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,i=(r+2)%10,o=n[i],s=n[i+1],a=ut(o,s,1)^n[t],c=lt(o,s,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=a,e[r+n+1]^=c}let t=e[2],i=e[3];for(let n=0;n<24;n++){const r=it[n],o=ut(t,i,r),s=lt(t,i,r),a=rt[n];t=e[a],i=e[a+1],e[a]=o,e[a+1]=s}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=at[r],e[1]^=ct[r]}Be(n)}(this.state32,this.rounds),De(this.state32),this.posOut=0,this.pos=0}update(e){Me(this),Se(e=We(e));const{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){const o=Math.min(t-this.pos,r-i);for(let t=0;t<o;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,128&t&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){Me(this,!1),Se(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();const o=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return Ce(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(Ie(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,Be(this.state)}i(e){const{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:o}=this;return e||(e=new ft(t,n,r,o,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=o,e.destroyed=this.destroyed,e}}const dt=(()=>{return e=1,t=136,n=32,Xe(()=>new ft(t,e,n));var e,t,n})();function ht(e,t){const n=t||"hex",r=dt(k(e,{strict:!1})?te(e):e);return"bytes"===n?r:Y(r)}function pt(e){return ht(te(e))}const mt=e=>{var t;return function(e){let t=!0,n="",r=0,i="",o=!1;for(let s=0;s<e.length;s++){const a=e[s];if(["(",")",","].includes(a)&&(t=!0),"("===a&&r++,")"===a&&r--,t)if(0!==r)" "!==a?(i+=a,n+=a):","!==e[s-1]&&","!==n&&",("!==n&&(n="",t=!1);else if(" "===a&&["event","function",""].includes(i))i="";else if(i+=a,")"===a){o=!0;break}}if(!o)throw new T("Unable to normalize signature.");return i}("string"==typeof e?e:"function"===(t=e).type?`function ${t.name}(${y(t.inputs)})${t.stateMutability&&"nonpayable"!==t.stateMutability?` ${t.stateMutability}`:""}${t.outputs?.length?` returns (${y(t.outputs)})`:""}`:"event"===t.type?`event ${t.name}(${y(t.inputs)})`:"error"===t.type?`error ${t.name}(${y(t.inputs)})`:"constructor"===t.type?`constructor(${y(t.inputs)})${"payable"===t.stateMutability?" payable":""}`:"fallback"===t.type?"fallback() external"+("payable"===t.stateMutability?" payable":""):"receive() external payable")};function gt(e){return pt(mt(e))}const bt=gt;class wt extends T{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class yt extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}const vt=new yt(8192);const At=/^0x[a-fA-F0-9]{40}$/,kt=new yt(8192);function xt(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if(kt.has(r))return kt.get(r);const i=!(!At.test(e)||e.toLowerCase()!==e&&n&&function(e,t){if(vt.has(`${e}.${t}`))return vt.get(`${e}.${t}`);const n=e.substring(2).toLowerCase(),r=ht(oe(n),"bytes"),i=n.split("");for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&i[s]&&(i[s]=i[s].toUpperCase()),(15&r[s>>1])>=8&&i[s+1]&&(i[s+1]=i[s+1].toUpperCase());const o=`0x${i.join("")}`;return vt.set(`${e}.${t}`,o),o}(e)!==e);return kt.set(r,i),i}function Et(e){return"string"==typeof e[0]?Ct(e):function(e){let t=0;for(const i of e)t+=i.length;const n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}(e)}function Ct(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function St(e,t,n,{strict:r}={}){return k(e,{strict:!1})?function(e,t,n,{strict:r}={}){Tt(e,t);const i=`0x${e.replace("0x","").slice(2*(t??0),2*(n??e.length))}`;r&&Mt(i,t,n);return i}(e,t,n,{strict:r}):function(e,t,n,{strict:r}={}){Tt(e,t);const i=e.slice(t,n);r&&Mt(i,t,n);return i}(e,t,n,{strict:r})}function Tt(e,t){if("number"==typeof t&&t>0&&t>x(e)-1)throw new P({offset:t,position:"start",size:x(e)})}function Mt(e,t,n){if("number"==typeof t&&"number"==typeof n&&x(e)!==n-t)throw new P({offset:n,position:"end",size:x(e)})}const It=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Bt(e,t){if(e.length!==t.length)throw new N({expectedLength:e.length,givenLength:t.length});const n=function({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push(Nt({param:e[r],value:t[r]}));return n}({params:e,values:t}),r=Rt(n);return 0===r.length?"0x":r}function Nt({param:e,value:t}){const n=function(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}(e.type);if(n){const[r,i]=n;return function(e,{length:t,param:n}){const r=null===t;if(!Array.isArray(e))throw new F(e);if(!r&&e.length!==t)throw new I({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let i=!1;const o=[];for(let s=0;s<e.length;s++){const t=Nt({param:n,value:e[s]});t.dynamic&&(i=!0),o.push(t)}if(r||i){const e=Rt(o);if(r){const t=Z(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?Et([t,e]):t}}if(i)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:Et(o.map(({encoded:e})=>e))}}(t,{length:r,param:{...e,type:i}})}if("tuple"===e.type)return function(e,{param:t}){let n=!1;const r=[];for(let i=0;i<t.components.length;i++){const o=t.components[i],s=Nt({param:o,value:e[Array.isArray(e)?i:o.name]});r.push(s),s.dynamic&&(n=!0)}return{dynamic:n,encoded:n?Rt(r):Et(r.map(({encoded:e})=>e))}}(t,{param:e});if("address"===e.type)return function(e){if(!xt(e))throw new wt({address:e});return{dynamic:!1,encoded:H(e.toLowerCase())}}(t);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new T(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:H(X(e))}}(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){const n=e.type.startsWith("int"),[,,r="256"]=It.exec(e.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){const r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new z({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:Z(e,{size:32,signed:t})}}(t,{signed:n,size:Number(r)})}if(e.type.startsWith("bytes"))return function(e,{param:t}){const[,n]=t.type.split("bytes"),r=x(e);if(!n){let t=e;return r%32!=0&&(t=H(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:Et([H(Z(r,{size:32})),t])}}if(r!==Number.parseInt(n,10))throw new B({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:H(e,{dir:"right"})}}(t,{param:e});if("string"===e.type)return function(e){const t=_(e),n=Math.ceil(x(t)/32),r=[];for(let i=0;i<n;i++)r.push(H(St(t,32*i,32*(i+1)),{dir:"right"}));return{dynamic:!0,encoded:Et([H(Z(x(t),{size:32})),...r])}}(t);throw new D(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Rt(e){let t=0;for(let o=0;o<e.length;o++){const{dynamic:n,encoded:r}=e[o];t+=n?32:x(r)}const n=[],r=[];let i=0;for(let o=0;o<e.length;o++){const{dynamic:s,encoded:a}=e[o];s?(n.push(Z(t+i,{size:32})),r.push(a),i+=x(a)):n.push(a)}return Et([...n,...r])}const Lt=e=>St(gt(e),0,4);function Dt(e,t){const n=typeof e,r=t.type;switch(r){case"address":return xt(e,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in t?Object.values(t.components).every((t,r)=>"object"===n&&Dt(Object.values(e)[r],t)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(e)&&e.every(e=>Dt(e,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})))}}function Ft(e,t,n){for(const r in e){const i=e[r],o=t[r];if("tuple"===i.type&&"tuple"===o.type&&"components"in i&&"components"in o)return Ft(i.components,o.components,n[r]);const s=[i.type,o.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&xt(n[r],{strict:!1}))())return s}}function Ot(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}const Pt="/docs/contract/encodeFunctionData";function Ut(e){const{abi:t,args:n,functionName:r}=e;let i=t[0];if(r){const e=function(e){const{abi:t,args:n=[],name:r}=e,i=k(r,{strict:!1}),o=t.filter(e=>i?"function"===e.type?Lt(e)===r:"event"===e.type&&bt(e)===r:"name"in e&&e.name===r);if(0===o.length)return;if(1===o.length)return o[0];let s;for(const a of o)if("inputs"in a)if(n&&0!==n.length){if(a.inputs&&0!==a.inputs.length&&a.inputs.length===n.length&&n.every((e,t)=>{const n="inputs"in a&&a.inputs[t];return!!n&&Dt(e,n)})){if(s&&"inputs"in s&&s.inputs){const e=Ft(a.inputs,s.inputs,n);if(e)throw new L({abiItem:a,type:e[0]},{abiItem:s,type:e[1]})}s=a}}else if(!a.inputs||0===a.inputs.length)return a;return s||o[0]}({abi:t,args:n,name:r});if(!e)throw new R(r,{docsPath:Pt});i=e}if("function"!==i.type)throw new R(void 0,{docsPath:Pt});return{abi:[i],functionName:Lt(v(i))}}function qt(e){const{args:t}=e,{abi:n,functionName:r}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:Ut(e),i=n[0];return Ct([r,("inputs"in i&&i.inputs?Bt(i.inputs,t??[]):void 0)??"0x"])}class Ht extends T{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class zt extends T{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class jt extends T{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}const Vt={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new jt({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new zt({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new Ht({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new Ht({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this.o();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this.o();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this.o();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this.o();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this.o();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this.o();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},o(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function Gt(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(Vt);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}const Jt={gwei:9,wei:18},Wt={ether:-9,wei:9};function Kt(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[i,o]=[n.slice(0,n.length-t),n.slice(n.length-t)];return o=o.replace(/(0+)$/,""),`${r?"-":""}${i||"0"}${o?`.${o}`:""}`}function Yt(e,t="wei"){return Kt(e,Jt[t])}function Xt(e,t="wei"){return Kt(e,Wt[t])}function Qt(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n}\n`,"")}function Zt(e){const t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(n+1)} ${t}`).join("\n")}class $t extends T{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class _t extends T{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Zt(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class en extends T{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class tn extends T{constructor(e,{account:t,docsPath:n,chain:r,data:i,gas:o,gasPrice:s,maxFeePerGas:a,maxPriorityFeePerGas:c,nonce:u,to:l,value:f,stateOverride:d}){const h=t?Ot(t):void 0;let p=Zt({from:h?.address,to:l,value:void 0!==f&&`${Yt(f)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==s&&`${Xt(s)} gwei`,maxFeePerGas:void 0!==a&&`${Xt(a)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${Xt(c)} gwei`,nonce:u});d&&(p+=`\n${function(e){return e.reduce((e,{address:t,...n})=>{let r=`${e} ${t}:\n`;return n.nonce&&(r+=` nonce: ${n.nonce}\n`),n.balance&&(r+=` balance: ${n.balance}\n`),n.code&&(r+=` code: ${n.code}\n`),n.state&&(r+=" state:\n",r+=Qt(n.state)),n.stateDiff&&(r+=" stateDiff:\n",r+=Qt(n.stateDiff)),r}," State Override:\n").slice(0,-1)}(d)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}function nn(e,t="hex"){const n=rn(e),r=Gt(new Uint8Array(n.length));return n.encode(r),"hex"===t?Q(r.bytes):r.bytes}function rn(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),n=on(t);return{length:t<=55?1+t:1+n+t,encode(r){t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t));for(const{encode:t}of e)t(r)}}}(e.map(e=>rn(e))):function(e){const t="string"==typeof e?ie(e):e,n=on(t.length),r=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length;return{length:r,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function on(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new T("Length is too large.")}class sn extends T{constructor({cause:e,message:t}={}){const n=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(sn,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(sn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class an extends T{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Xt(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(an,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class cn extends T{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${Xt(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(cn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class un extends T{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(un,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class ln extends T{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(ln,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class fn extends T{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(fn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class dn extends T{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(dn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class hn extends T{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(hn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class pn extends T{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(pn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class mn extends T{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(mn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class gn extends T{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${Xt(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Xt(n)} gwei`:""}).`].join("\n"),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(gn,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class bn extends T{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}function wn(e,{format:t}){if(!t)return{};const n={};return function t(r){const i=Object.keys(r);for(const o of i)o in e&&(n[o]=e[o]),r[o]&&"object"==typeof r[o]&&!Array.isArray(r[o])&&t(r[o])}(t(e||{})),n}function yn(e,t){return({exclude:n,format:r})=>({exclude:n,format:(e,i)=>{const o=t(e,i);if(n)for(const t of n)delete o[t];return{...o,...r(e,i)}},type:e})}const vn={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function An(e,t){const n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?Z(BigInt(e.r)):e.r,s:e.s?Z(BigInt(e.s)):e.s,chainId:Z(e.chainId),nonce:Z(e.nonce),...void 0!==e.yParity?{yParity:Z(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Z(e.v)}:{}}))),void 0!==e.accessList&&(n.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(n.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?n.blobs=e.blobs.map(e=>Q(e)):n.blobs=e.blobs),void 0!==e.data&&(n.data=e.data),e.account&&(n.from=e.account.address),void 0!==e.from&&(n.from=e.from),void 0!==e.gas&&(n.gas=Z(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=Z(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=Z(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=Z(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=Z(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=Z(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=vn[e.type]),void 0!==e.value&&(n.value=Z(e.value)),n}const kn=2n**256n-1n;const xn={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function En(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...null!=e.blockTimestamp&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?W(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?W(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?xn[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n==0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}const Cn=yn("transaction",En);function Sn(e,t){const n=(e.transactions??[]).map(e=>"string"==typeof e?e:En(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const Tn=yn("block",Sn);function Mn(e){const{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>ie(e)):e.blobs,i=[];for(const o of r)i.push(Uint8Array.from(t.blobToKzgCommitment(o)));return"bytes"===n?i:i.map(e=>Q(e))}function In(e){const{kzg:t}=e,n=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>ie(e)):e.blobs,i="string"==typeof e.commitments[0]?e.commitments.map(e=>ie(e)):e.commitments,o=[];for(let s=0;s<r.length;s++){const e=r[s],n=i[s];o.push(Uint8Array.from(t.computeBlobKzgProof(e,n)))}return"bytes"===n?o:o.map(e=>Q(e))}function Bn(e,t,n){return e&t^~e&n}function Nn(e,t,n){return e&t^e&n^t&n}class Rn extends Ye{constructor(e,t,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(e),this.view=Ne(this.buffer)}update(e){Me(this),Se(e=We(e));const{view:t,buffer:n,blockLen:r}=this,i=e.length;for(let o=0;o<i;){const s=Math.min(r-this.pos,i-o);if(s===r){const t=Ne(e);for(;r<=i-o;o+=r)this.process(t,o);continue}n.set(e.subarray(o,o+s),this.pos),this.pos+=s,o+=s,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){Me(this),Ie(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:r,isLE:i}=this;let{pos:o}=this;t[o++]=128,Be(this.buffer.subarray(o)),this.padOffset>r-o&&(this.process(n,0),o=0);for(let l=o;l<r;l++)t[l]=0;!function(e,t,n,r){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const i=BigInt(32),o=BigInt(4294967295),s=Number(n>>i&o),a=Number(n&o),c=r?4:0,u=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+u,a,r)}(n,r-8,BigInt(8*this.length),i),this.process(n,0);const s=Ne(e),a=this.outputLen;if(a%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=a/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let l=0;l<c;l++)s.setUint32(4*l,u[l],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}i(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:i,destroyed:o,pos:s}=this;return e.destroyed=o,e.finished=i,e.length=r,e.pos=s,r%t&&e.buffer.set(n),e}clone(){return this.i()}}const Ln=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Dn=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),Fn=Uint32Array.from([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]),On=new Uint32Array(64);class Pn extends Rn{constructor(e=32){super(64,e,8,!1),this.A=0|Ln[0],this.B=0|Ln[1],this.C=0|Ln[2],this.D=0|Ln[3],this.E=0|Ln[4],this.F=0|Ln[5],this.G=0|Ln[6],this.H=0|Ln[7]}get(){const{A:e,B:t,C:n,D:r,E:i,F:o,G:s,H:a}=this;return[e,t,n,r,i,o,s,a]}set(e,t,n,r,i,o,s,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|i,this.F=0|o,this.G=0|s,this.H=0|a}process(e,t){for(let l=0;l<16;l++,t+=4)On[l]=e.getUint32(t,!1);for(let l=16;l<64;l++){const e=On[l-15],t=On[l-2],n=Re(e,7)^Re(e,18)^e>>>3,r=Re(t,17)^Re(t,19)^t>>>10;On[l]=r+On[l-7]+n+On[l-16]|0}let{A:n,B:r,C:i,D:o,E:s,F:a,G:c,H:u}=this;for(let l=0;l<64;l++){const e=u+(Re(s,6)^Re(s,11)^Re(s,25))+Bn(s,a,c)+Fn[l]+On[l]|0,t=(Re(n,2)^Re(n,13)^Re(n,22))+Nn(n,r,i)|0;u=c,c=a,a=s,s=o+e|0,o=i,i=r,r=n,n=e+t|0}n=n+this.A|0,r=r+this.B|0,i=i+this.C|0,o=o+this.D|0,s=s+this.E|0,a=a+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(n,r,i,o,s,a,c,u)}roundClean(){Be(On)}destroy(){this.set(0,0,0,0,0,0,0,0),Be(this.buffer)}}const Un=(()=>ue(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))))(),qn=(()=>Un[0])(),Hn=(()=>Un[1])(),zn=new Uint32Array(80),jn=new Uint32Array(80);class Vn extends Rn{constructor(e=64){super(128,e,16,!1),this.Ah=0|Dn[0],this.Al=0|Dn[1],this.Bh=0|Dn[2],this.Bl=0|Dn[3],this.Ch=0|Dn[4],this.Cl=0|Dn[5],this.Dh=0|Dn[6],this.Dl=0|Dn[7],this.Eh=0|Dn[8],this.El=0|Dn[9],this.Fh=0|Dn[10],this.Fl=0|Dn[11],this.Gh=0|Dn[12],this.Gl=0|Dn[13],this.Hh=0|Dn[14],this.Hl=0|Dn[15]}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:i,Cl:o,Dh:s,Dl:a,Eh:c,El:u,Fh:l,Fl:f,Gh:d,Gl:h,Hh:p,Hl:m}=this;return[e,t,n,r,i,o,s,a,c,u,l,f,d,h,p,m]}set(e,t,n,r,i,o,s,a,c,u,l,f,d,h,p,m){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|s,this.Dl=0|a,this.Eh=0|c,this.El=0|u,this.Fh=0|l,this.Fl=0|f,this.Gh=0|d,this.Gl=0|h,this.Hh=0|p,this.Hl=0|m}process(e,t){for(let w=0;w<16;w++,t+=4)zn[w]=e.getUint32(t),jn[w]=e.getUint32(t+=4);for(let w=16;w<80;w++){const e=0|zn[w-15],t=0|jn[w-15],n=de(e,t,1)^de(e,t,8)^le(e,0,7),r=he(e,t,1)^he(e,t,8)^fe(e,t,7),i=0|zn[w-2],o=0|jn[w-2],s=de(i,o,19)^pe(i,o,61)^le(i,0,6),a=he(i,o,19)^me(i,o,61)^fe(i,o,6),c=ye(r,a,jn[w-7],jn[w-16]),u=ve(c,n,s,zn[w-7],zn[w-16]);zn[w]=0|u,jn[w]=0|c}let{Ah:n,Al:r,Bh:i,Bl:o,Ch:s,Cl:a,Dh:c,Dl:u,Eh:l,El:f,Fh:d,Fl:h,Gh:p,Gl:m,Hh:g,Hl:b}=this;for(let w=0;w<80;w++){const e=de(l,f,14)^de(l,f,18)^pe(l,f,41),t=he(l,f,14)^he(l,f,18)^me(l,f,41),y=l&d^~l&p,v=Ae(b,t,f&h^~f&m,Hn[w],jn[w]),A=ke(v,g,e,y,qn[w],zn[w]),k=0|v,x=de(n,r,28)^pe(n,r,34)^pe(n,r,39),E=he(n,r,28)^me(n,r,34)^me(n,r,39),C=n&i^n&s^i&s,S=r&o^r&a^o&a;g=0|p,b=0|m,p=0|d,m=0|h,d=0|l,h=0|f,({h:l,l:f}=ge(0|c,0|u,0|A,0|k)),c=0|s,u=0|a,s=0|i,a=0|o,i=0|n,o=0|r;const T=be(k,E,S);n=we(T,A,x,C),r=0|T}({h:n,l:r}=ge(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:o}=ge(0|this.Bh,0|this.Bl,0|i,0|o)),({h:s,l:a}=ge(0|this.Ch,0|this.Cl,0|s,0|a)),({h:c,l:u}=ge(0|this.Dh,0|this.Dl,0|c,0|u)),({h:l,l:f}=ge(0|this.Eh,0|this.El,0|l,0|f)),({h:d,l:h}=ge(0|this.Fh,0|this.Fl,0|d,0|h)),({h:p,l:m}=ge(0|this.Gh,0|this.Gl,0|p,0|m)),({h:g,l:b}=ge(0|this.Hh,0|this.Hl,0|g,0|b)),this.set(n,r,i,o,s,a,c,u,l,f,d,h,p,m,g,b)}roundClean(){Be(zn,jn)}destroy(){Be(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const Gn=Xe(()=>new Pn),Jn=Xe(()=>new Vn),Wn=Gn;function Kn(e){const{commitment:t,version:n=1}=e,r=e.to??("string"==typeof t?"hex":"bytes"),i=Wn(k(o=t,{strict:!1})?te(o):o);var o;return i.set([n],0),"bytes"===r?i:Q(i)}const Yn=4096,Xn=131072,Qn=761855;class Zn extends T{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class $n extends T{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class _n extends T{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class er extends T{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}function tr(e){const{data:t,kzg:n,to:r}=e,i=e.blobs??function(e){const t=e.to??("string"==typeof e.data?"hex":"bytes"),n="string"==typeof e.data?ie(e.data):e.data,r=x(n);if(!r)throw new $n;if(r>Qn)throw new Zn({maxSize:Qn,size:r});const i=[];let o=!0,s=0;for(;o;){const e=Gt(new Uint8Array(Xn));let t=0;for(;t<Yn;){const r=n.slice(s,s+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),o=!1;break}t++,s+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>Q(e.bytes))}({data:t,to:r}),o=e.commitments??Mn({blobs:i,kzg:n,to:r}),s=e.proofs??In({blobs:i,commitments:o,kzg:n,to:r}),a=[];for(let c=0;c<i.length;c++)a.push({blob:i[c],commitment:o[c],proof:s[c]});return a}class nr extends T{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}function rr(e,{docsPath:t,...n}){const r=(()=>{const t=function(e,t){const n=(e.details||"").toLowerCase(),r=e instanceof T?e.walk(e=>e?.code===sn.code):e;return r instanceof T?new sn({cause:e,message:r.details}):sn.nodeMessage.test(n)?new sn({cause:e,message:e.details}):an.nodeMessage.test(n)?new an({cause:e,maxFeePerGas:t?.maxFeePerGas}):cn.nodeMessage.test(n)?new cn({cause:e,maxFeePerGas:t?.maxFeePerGas}):un.nodeMessage.test(n)?new un({cause:e,nonce:t?.nonce}):ln.nodeMessage.test(n)?new ln({cause:e,nonce:t?.nonce}):fn.nodeMessage.test(n)?new fn({cause:e,nonce:t?.nonce}):dn.nodeMessage.test(n)?new dn({cause:e}):hn.nodeMessage.test(n)?new hn({cause:e,gas:t?.gas}):pn.nodeMessage.test(n)?new pn({cause:e,gas:t?.gas}):mn.nodeMessage.test(n)?new mn({cause:e}):gn.nodeMessage.test(n)?new gn({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new bn({cause:e})}(e,n);return t instanceof bn?e:t})();return new tn(r,{docsPath:t,...n})}class ir extends T{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:e,docsSlug:"account",name:"AccountNotFoundError"})}}const or={"0x0":"reverted","0x1":"success"};function sr(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>function(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?W(e.transactionIndex):null,status:e.status?or[e.status]:null,type:e.type?xn[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}const ar=yn("transactionReceipt",sr);function cr(e){const{chainId:t,maxPriorityFeePerGas:n,maxFeePerGas:r,to:i}=e;if(t<=0)throw new nr({chainId:t});if(i&&!xt(i))throw new wt({address:i});if(r&&r>kn)throw new an({maxFeePerGas:r});if(n&&r&&n>r)throw new gn({maxFeePerGas:r,maxPriorityFeePerGas:n})}function ur(e){if(!e||0===e.length)return[];const t=[];for(let n=0;n<e.length;n++){const{address:r,storageKeys:i}=e[n];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new en({storageKey:i[e]});if(!xt(r,{strict:!1}))throw new wt({address:r});t.push([r,i])}return t}function lr(e,t){const n=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new _t({transaction:e})}(e);return"eip1559"===n?function(e,t){const{chainId:n,gas:r,nonce:i,to:o,value:s,maxFeePerGas:a,maxPriorityFeePerGas:c,accessList:u,data:l}=e;cr(e);const f=ur(u),d=[Z(n),i?Z(i):"0x",c?Z(c):"0x",a?Z(a):"0x",r?Z(r):"0x",o??"0x",s?Z(s):"0x",l??"0x",f,...fr(e,t)];return Ct(["0x02",nn(d)])}(e,t):"eip2930"===n?function(e,t){const{chainId:n,gas:r,data:i,nonce:o,to:s,value:a,accessList:c,gasPrice:u}=e;!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:o}=e;if(t<=0)throw new nr({chainId:t});if(o&&!xt(o))throw new wt({address:o});if(n||i)throw new T("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>kn)throw new an({maxFeePerGas:r})}(e);const l=ur(c),f=[Z(n),o?Z(o):"0x",u?Z(u):"0x",r?Z(r):"0x",s??"0x",a?Z(a):"0x",i??"0x",l,...fr(e,t)];return Ct(["0x01",nn(f)])}(e,t):"eip4844"===n?function(e,t){const{chainId:n,gas:r,nonce:i,to:o,value:s,maxFeePerBlobGas:a,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:l,data:f}=e;!function(e){const{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new $n;for(const e of t){const t=x(e),n=W(St(e,0,1));if(32!==t)throw new _n({hash:e,size:t});if(1!==n)throw new er({hash:e,version:n})}}cr(e)}(e);let d=e.blobVersionedHashes,h=e.sidecars;if(e.blobs&&(void 0===d||void 0===h)){const t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>Q(e)),n=e.kzg,r=Mn({blobs:t,kzg:n});if(void 0===d&&(d=function(e){const{commitments:t,version:n}=e,r=e.to??("string"==typeof t[0]?"hex":"bytes"),i=[];for(const o of t)i.push(Kn({commitment:o,to:r,version:n}));return i}({commitments:r})),void 0===h){h=tr({blobs:t,commitments:r,proofs:In({blobs:t,commitments:r,kzg:n})})}}const p=ur(l),m=[Z(n),i?Z(i):"0x",u?Z(u):"0x",c?Z(c):"0x",r?Z(r):"0x",o??"0x",s?Z(s):"0x",f??"0x",p,a?Z(a):"0x",d??[],...fr(e,t)],g=[],b=[],w=[];if(h)for(let y=0;y<h.length;y++){const{blob:e,commitment:t,proof:n}=h[y];g.push(e),b.push(t),w.push(n)}return Ct(["0x03",nn(h?[m,g,b,w]:m)])}(e,t):"eip7702"===n?function(e,t){const{authorizationList:n,chainId:r,gas:i,nonce:o,to:s,value:a,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:l,data:f}=e;!function(e){const{authorizationList:t}=e;if(t)for(const n of t){const{chainId:e}=n,t=n.address;if(!xt(t))throw new wt({address:t});if(e<0)throw new nr({chainId:e})}cr(e)}(e);const d=ur(l),h=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){const{chainId:e,nonce:r,...i}=n,o=n.address;t.push([e?Y(e):"0x",o,r?Y(r):"0x",...fr({},i)])}return t}(n);return Ct(["0x04",nn([Z(r),o?Z(o):"0x",u?Z(u):"0x",c?Z(c):"0x",i?Z(i):"0x",s??"0x",a?Z(a):"0x",f??"0x",d,h,...fr(e,t)])])}(e,t):function(e,t){const{chainId:n=0,gas:r,data:i,nonce:o,to:s,value:a,gasPrice:c}=e;!function(e){const{chainId:t,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:i,to:o}=e;if(o&&!xt(o))throw new wt({address:o});if(void 0!==t&&t<=0)throw new nr({chainId:t});if(n||i)throw new T("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>kn)throw new an({maxFeePerGas:r})}(e);let u=[o?Z(o):"0x",c?Z(c):"0x",r?Z(r):"0x",s??"0x",a?Z(a):"0x",i??"0x"];if(t){const e=(()=>{if(t.v>=35n){return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n)}if(n>0)return BigInt(2*n)+BigInt(35n+t.v-27n);const e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new $t({v:t.v});return e})(),r=V(t.r),i=V(t.s);u=[...u,Z(e),"0x00"===r?"0x":r,"0x00"===i?"0x":i]}else n>0&&(u=[...u,Z(n),"0x","0x"]);return nn(u)}(e,t)}function fr(e,t){const n=t??e,{v:r,yParity:i}=n;if(void 0===n.r)return[];if(void 0===n.s)return[];if(void 0===r&&void 0===i)return[];const o=V(n.r),s=V(n.s);return["number"==typeof i?i?Z(1):"0x":0n===r?"0x":1n===r?Z(1):27n===r?"0x":Z(1),"0x00"===o?"0x":o,"0x00"===s?"0x":s]}function dr(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(t,{extend:function e(t){return n=>{const r="function"==typeof n?n(t):n,i={...t,...r};return Object.assign(i,{extend:e(i)})}}(t)})}class hr extends Ye{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,Te(e);const n=We(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let o=0;o<i.length;o++)i[o]^=54;this.iHash.update(i),this.oHash=e.create();for(let o=0;o<i.length;o++)i[o]^=106;this.oHash.update(i),Be(i)}update(e){return Me(this),this.iHash.update(e),this}digestInto(e){Me(this),Se(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}i(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:i,blockLen:o,outputLen:s}=this;return e.finished=r,e.destroyed=i,e.blockLen=o,e.outputLen=s,e.oHash=t.i(e.oHash),e.iHash=n.i(e.iHash),e}clone(){return this.i()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const pr=(e,t,n)=>new hr(e,t).update(n).digest();pr.create=(e,t)=>new hr(e,t);class mr extends T{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function gr(e){return e&&e.u&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function br(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"u",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}var wr,yr={},vr={};var Ar,kr,xr={};function Er(){return kr||(kr=1,function(e){const t=function(){if(wr)return vr;wr=1,vr.byteLength=function(e){var t=o(e),n=t[0],r=t[1];return 3*(n+r)/4-r},vr.toByteArray=function(e){var r,i,s=o(e),a=s[0],c=s[1],u=new n(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(i=0;i<f;i+=4)r=t[e.charCodeAt(i)]<<18|t[e.charCodeAt(i+1)]<<12|t[e.charCodeAt(i+2)]<<6|t[e.charCodeAt(i+3)],u[l++]=r>>16&255,u[l++]=r>>8&255,u[l++]=255&r;return 2===c&&(r=t[e.charCodeAt(i)]<<2|t[e.charCodeAt(i+1)]>>4,u[l++]=255&r),1===c&&(r=t[e.charCodeAt(i)]<<10|t[e.charCodeAt(i+1)]<<4|t[e.charCodeAt(i+2)]>>2,u[l++]=r>>8&255,u[l++]=255&r),u},vr.fromByteArray=function(t){for(var n,r=t.length,i=r%3,o=[],s=16383,c=0,u=r-i;c<u;c+=s)o.push(a(t,c,c+s>u?u:c+s));return 1===i?(n=t[r-1],o.push(e[n>>2]+e[n<<4&63]+"==")):2===i&&(n=(t[r-2]<<8)+t[r-1],o.push(e[n>>10]+e[n>>4&63]+e[n<<2&63]+"=")),o.join("")};for(var e=[],t=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0;i<64;++i)e[i]=r[i],t[r.charCodeAt(i)]=i;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function s(t){return e[t>>18&63]+e[t>>12&63]+e[t>>6&63]+e[63&t]}function a(e,t,n){for(var r,i=[],o=t;o<n;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),i.push(s(r));return i.join("")}return t["-".charCodeAt(0)]=62,t["_".charCodeAt(0)]=63,vr}(),n=(Ar||(Ar=1,xr.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,c=(1<<a)-1,u=c>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=e[t+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=a;l>0;o=256*o+e[t+f],f+=d,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=u}return(h?-1:1)*s*Math.pow(2,o-r)},xr.write=function(e,t,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=l):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+f>=1?d/c:d*Math.pow(2,1-f))*c>=2&&(s++,c/=2),s+f>=l?(a=0,s=l):s+f>=1?(a=(t*c-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;e[n+h]=255&s,h+=p,s/=256,u-=8);e[n+h-p]|=128*m}),xr),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;const i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|h(e,t);let r=o(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return l(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);const i=function(e){if(s.isBuffer(e)){const t=0|d(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?o(0):l(e);if("Buffer"===e.type&&Array.isArray(e.data))return l(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|d(e))}function l(e){const t=e.length<0?0:0|d(e.length),n=o(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function d(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function h(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return r?-1:G(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){let o,s=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){let r=-1;for(o=n;o<a;o++)if(u(e,o)===u(t,-1===r?0:o-r)){if(-1===r&&(r=o),o-r+1===c)return r*s}else-1!==r&&(o-=o-r),r=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){let n=!0;for(let r=0;r<c;r++)if(u(e,o+r)!==u(t,r)){n=!1;break}if(n)return o}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const o=t.length;let s;for(r>o/2&&(r=o/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(Y(r))return s;e[n+s]=r}return s}function y(e,t,n,r){return W(G(t,e.length-n),e,n,r)}function v(e,t,n,r){return W(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function A(e,t,n,r){return W(J(t),e,n,r)}function k(e,t,n,r){return W(function(e,t){let n,r,i;const o=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function x(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function E(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let o=null,s=t>239?4:t>223?3:t>191?2:1;if(i+s<=n){let n,r,a,c;switch(s){case 1:t<128&&(o=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(o=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(o=c));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(o=c))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=s}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return a(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return function(e,t,n){return c(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},s.allocUnsafe=function(e){return u(e)},s.allocUnsafeSlow=function(e){return u(e)},s.isBuffer=function(e){return null!=e&&!0===e.S&&e!==s.prototype},s.compare=function(e,t){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=s.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!s.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},s.byteLength=h,s.prototype.S=!0,s.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},s.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},s.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},s.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){let t="";const n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(K(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const c=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n);for(let s=0;s<c;++s)if(u[s]!==l[s]){o=u[s],a=l[s];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return y(this,e,t,n);case"ascii":case"latin1":case"binary":return v(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this.M||this,0)}};const C=4096;function S(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function T(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function M(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let o=t;o<n;++o)i+=X[e[o]];return i}function I(e,t,n){const r=e.slice(t,n);let i="";for(let o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function B(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function L(e,t,n,r,i){H(t,r,i,e,n,7);let o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function F(e,t,r,i,o){return t=+t,r>>>=0,o||D(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function O(e,t,r,i,o){return t=+t,r>>>=0,o||D(e,0,r,8),n.write(e,t,r,i,52,8),r+8}s.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Q(function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||j(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=Q(function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||j(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=this[e],i=1,o=0;for(;++o<t&&(i*=256);)r+=this[e+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);let r=t,i=1,o=this[e+--r];for(;r>0&&(i*=256);)o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Q(function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||j(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),s.prototype.readBigInt64BE=Q(function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||j(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigUInt64LE=Q(function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Q(function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=0,o=1,s=0;for(this[t]=255&e;++i<n&&(o*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,o=1,s=0;for(this[t+i]=255&e;--i>=0&&(o*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/o|0)-s&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeBigInt64LE=Q(function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Q(function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(e,t,n){return F(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return F(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return O(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return O(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const o=s.isBuffer(e)?e:s.from(e,r),a=o.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=o[i%a]}return this};const P={};function U(e,t,n){P[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function q(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function H(e,t,n,r,i,o){if(e>n||e<t){const n="bigint"==typeof t?"n":"";let r;throw r=0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`,new P.ERR_OUT_OF_RANGE("value",r,e)}!function(e,t,n){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||j(t,e.length-(n+1))}(r,i,o)}function z(e,t){if("number"!=typeof e)throw new P.ERR_INVALID_ARG_TYPE(t,"number",e)}function j(e,t,n){if(Math.floor(e)!==e)throw z(e,n),new P.ERR_OUT_OF_RANGE("offset","an integer",e);if(t<0)throw new P.ERR_BUFFER_OUT_OF_BOUNDS;throw new P.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),U("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),U("ERR_OUT_OF_RANGE",function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=q(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=q(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r},RangeError);const V=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let i=null;const o=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function J(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}}(yr)),yr}var Cr=Er();const Sr=BigInt(0),Tr=BigInt(1);function Mr(e,t=""){if("boolean"!=typeof e){throw new Error((t&&`"${t}"`)+"expected boolean, got type="+typeof e)}return e}function Ir(e,t,n=""){const r=Ee(e),i=e?.length,o=void 0!==t;if(!r||o&&i!==t){throw new Error((n&&`"${n}" `)+"expected Uint8Array"+(o?` of length ${t}`:"")+", got "+(r?`length=${i}`:"type="+typeof e))}return e}function Br(e){const t=e.toString(16);return 1&t.length?"0"+t:t}function Nr(e){if("string"!=typeof e)throw new Error("hex string expected, got "+typeof e);return""===e?Sr:BigInt("0x"+e)}function Rr(e){return Nr(Pe(e))}function Lr(e){return Se(e),Nr(Pe(Uint8Array.from(e).reverse()))}function Dr(e,t){return Je(e.toString(16).padStart(2*t,"0"))}function Fr(e,t){return Dr(e,t).reverse()}function Or(e,t,n){let r;if("string"==typeof t)try{r=Je(t)}catch(o){throw new Error(e+" must be hex string or Uint8Array, cause: "+o)}else{if(!Ee(t))throw new Error(e+" must be hex string or Uint8Array");r=Uint8Array.from(t)}const i=r.length;if("number"==typeof n&&i!==n)throw new Error(e+" of length "+n+" expected, got "+i);return r}function Pr(e){return Uint8Array.from(e)}const Ur=e=>"bigint"==typeof e&&Sr<=e;function qr(e,t,n,r){if(!function(e,t,n){return Ur(e)&&Ur(t)&&Ur(n)&&t<=e&&e<n}(t,n,r))throw new Error("expected valid "+e+": "+n+" <= n < "+r+", got "+t)}function Hr(e){let t;for(t=0;e>Sr;e>>=Tr,t+=1);return t}const zr=e=>(Tr<<BigInt(e))-Tr;function jr(e,t,n={}){if(!e||"object"!=typeof e)throw new Error("expected valid options object");function r(t,n,r){const i=e[t];if(r&&void 0===i)return;const o=typeof i;if(o!==n||null===i)throw new Error(`param "${t}" is invalid: expected ${n}, got ${o}`)}Object.entries(t).forEach(([e,t])=>r(e,t,!1)),Object.entries(n).forEach(([e,t])=>r(e,t,!0))}function Vr(e){const t=new WeakMap;return(n,...r)=>{const i=t.get(n);if(void 0!==i)return i;const o=e(n,...r);return t.set(n,o),o}}const Gr=BigInt(0),Jr=BigInt(1),Wr=BigInt(2),Kr=BigInt(3),Yr=BigInt(4),Xr=BigInt(5),Qr=BigInt(7),Zr=BigInt(8),$r=BigInt(9),_r=BigInt(16);function ei(e,t){const n=e%t;return n>=Gr?n:t+n}function ti(e,t,n){let r=e;for(;t-- >Gr;)r*=r,r%=n;return r}function ni(e,t){if(e===Gr)throw new Error("invert: expected non-zero number");if(t<=Gr)throw new Error("invert: expected positive modulus, got "+t);let n=ei(e,t),r=t,i=Gr,o=Jr;for(;n!==Gr;){const e=r%n,t=i-o*(r/n);r=n,n=e,i=o,o=t}if(r!==Jr)throw new Error("invert: does not exist");return ei(i,t)}function ri(e,t,n){if(!e.eql(e.sqr(t),n))throw new Error("Cannot find square root")}function ii(e,t){const n=(e.ORDER+Jr)/Yr,r=e.pow(t,n);return ri(e,r,t),r}function oi(e,t){const n=(e.ORDER-Xr)/Zr,r=e.mul(t,Wr),i=e.pow(r,n),o=e.mul(t,i),s=e.mul(e.mul(o,Wr),i),a=e.mul(o,e.sub(s,e.ONE));return ri(e,a,t),a}function si(e){if(e<Kr)throw new Error("sqrt is not defined for small field");let t=e-Jr,n=0;for(;t%Wr===Gr;)t/=Wr,n++;let r=Wr;const i=di(e);for(;1===li(i,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return ii;let o=i.pow(r,t);const s=(t+Jr)/Wr;return function(e,r){if(e.is0(r))return r;if(1!==li(e,r))throw new Error("Cannot find square root");let i=n,a=e.mul(e.ONE,o),c=e.pow(r,t),u=e.pow(r,s);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===i)throw new Error("Cannot find square root");const r=Jr<<BigInt(i-t-1),o=e.pow(a,r);i=t,a=e.sqr(o),c=e.mul(c,a),u=e.mul(u,o)}return u}}function ai(e){return e%Yr===Kr?ii:e%Zr===Xr?oi:e%_r===$r?function(e){const t=di(e),n=si(e),r=n(t,t.neg(t.ONE)),i=n(t,r),o=n(t,t.neg(r)),s=(e+Qr)/_r;return(e,t)=>{let n=e.pow(t,s),a=e.mul(n,r);const c=e.mul(n,i),u=e.mul(n,o),l=e.eql(e.sqr(a),t),f=e.eql(e.sqr(c),t);n=e.cmov(n,a,l),a=e.cmov(u,c,f);const d=e.eql(e.sqr(a),t),h=e.cmov(n,a,d);return ri(e,h,t),h}}(e):si(e)}const ci=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function ui(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),i=t.reduce((t,n,i)=>e.is0(n)?t:(r[i]=t,e.mul(t,n)),e.ONE),o=e.inv(i);return t.reduceRight((t,n,i)=>e.is0(n)?t:(r[i]=e.mul(t,r[i]),e.mul(t,n)),o),r}function li(e,t){const n=(e.ORDER-Jr)/Wr,r=e.pow(t,n),i=e.eql(r,e.ONE),o=e.eql(r,e.ZERO),s=e.eql(r,e.neg(e.ONE));if(!i&&!o&&!s)throw new Error("invalid Legendre symbol result");return i?1:o?0:-1}function fi(e,t){void 0!==t&&Ce(t);const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function di(e,t,n=!1,r={}){if(e<=Gr)throw new Error("invalid field: expected ORDER > 0, got "+e);let i,o,s,a=!1;if("object"==typeof t&&null!=t){if(r.sqrt||n)throw new Error("cannot specify opts in two arguments");const e=t;e.BITS&&(i=e.BITS),e.sqrt&&(o=e.sqrt),"boolean"==typeof e.isLE&&(n=e.isLE),"boolean"==typeof e.modFromBytes&&(a=e.modFromBytes),s=e.allowedLengths}else"number"==typeof t&&(i=t),r.sqrt&&(o=r.sqrt);const{nBitLength:c,nByteLength:u}=fi(e,i);if(u>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let l;const f=Object.freeze({ORDER:e,isLE:n,BITS:c,BYTES:u,MASK:zr(c),ZERO:Gr,ONE:Jr,allowedLengths:s,create:t=>ei(t,e),isValid:t=>{if("bigint"!=typeof t)throw new Error("invalid field element: expected bigint, got "+typeof t);return Gr<=t&&t<e},is0:e=>e===Gr,isValidNot0:e=>!f.is0(e)&&f.isValid(e),isOdd:e=>(e&Jr)===Jr,neg:t=>ei(-t,e),eql:(e,t)=>e===t,sqr:t=>ei(t*t,e),add:(t,n)=>ei(t+n,e),sub:(t,n)=>ei(t-n,e),mul:(t,n)=>ei(t*n,e),pow:(e,t)=>function(e,t,n){if(n<Gr)throw new Error("invalid exponent, negatives unsupported");if(n===Gr)return e.ONE;if(n===Jr)return t;let r=e.ONE,i=t;for(;n>Gr;)n&Jr&&(r=e.mul(r,i)),i=e.sqr(i),n>>=Jr;return r}(f,e,t),div:(t,n)=>ei(t*ni(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>ni(t,e),sqrt:o||(t=>(l||(l=ai(e)),l(f,t))),toBytes:e=>n?Fr(e,u):Dr(e,u),fromBytes:(t,r=!0)=>{if(s){if(!s.includes(t.length)||t.length>u)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+t.length);const e=new Uint8Array(u);e.set(t,n?0:e.length-t.length),t=e}if(t.length!==u)throw new Error("Field.fromBytes: expected "+u+" bytes, got "+t.length);let i=n?Lr(t):Rr(t);if(a&&(i=ei(i,e)),!r&&!f.isValid(i))throw new Error("invalid field element: outside of range 0..ORDER");return i},invertBatch:e=>ui(f,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(f)}function hi(e){if("bigint"!=typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function pi(e){const t=hi(e);return t+Math.ceil(t/2)}const mi=BigInt(0),gi=BigInt(1);function bi(e,t){const n=t.negate();return e?n:t}function wi(e,t){const n=ui(e.Fp,t.map(e=>e.Z));return t.map((t,r)=>e.fromAffine(t.toAffine(n[r])))}function yi(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function vi(e,t){yi(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:zr(e),maxNumber:n,shiftBy:BigInt(e)}}function Ai(e,t,n){const{windowSize:r,mask:i,maxNumber:o,shiftBy:s}=n;let a=Number(e&i),c=e>>s;a>r&&(a-=o,c+=gi);const u=t*r;return{nextN:c,offset:u+Math.abs(a)-1,isZero:0===a,isNeg:a<0,isNegF:t%2!=0,offsetF:u}}const ki=new WeakMap,xi=new WeakMap;function Ei(e){return xi.get(e)||1}function Ci(e){if(e!==mi)throw new Error("invalid wNAF")}class Si{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}I(e,t,n=this.ZERO){let r=e;for(;t>mi;)t&gi&&(n=n.add(r)),r=r.double(),t>>=gi;return n}precomputeWindow(e,t){const{windows:n,windowSize:r}=vi(t,this.bits),i=[];let o=e,s=o;for(let a=0;a<n;a++){s=o,i.push(s);for(let e=1;e<r;e++)s=s.add(o),i.push(s);o=s.double()}return i}wNAF(e,t,n){if(!this.Fn.isValid(n))throw new Error("invalid scalar");let r=this.ZERO,i=this.BASE;const o=vi(e,this.bits);for(let s=0;s<o.windows;s++){const{nextN:e,offset:a,isZero:c,isNeg:u,isNegF:l,offsetF:f}=Ai(n,s,o);n=e,c?i=i.add(bi(l,t[f])):r=r.add(bi(u,t[a]))}return Ci(n),{p:r,f:i}}wNAFUnsafe(e,t,n,r=this.ZERO){const i=vi(e,this.bits);for(let o=0;o<i.windows&&n!==mi;o++){const{nextN:e,offset:s,isZero:a,isNeg:c}=Ai(n,o,i);if(n=e,!a){const e=t[s];r=r.add(c?e.negate():e)}}return Ci(n),r}getPrecomputes(e,t,n){let r=ki.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&("function"==typeof n&&(r=n(r)),ki.set(t,r))),r}cached(e,t,n){const r=Ei(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)}unsafe(e,t,n,r){const i=Ei(e);return 1===i?this.I(e,t,r):this.wNAFUnsafe(i,this.getPrecomputes(i,e,n),t,r)}createCache(e,t){yi(t,this.bits),xi.set(e,t),ki.delete(e)}hasCache(e){return 1!==Ei(e)}}function Ti(e,t,n,r){!function(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((e,n)=>{if(!(e instanceof t))throw new Error("invalid point at index "+n)})}(n,e),function(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((e,n)=>{if(!t.isValid(e))throw new Error("invalid scalar at index "+n)})}(r,t);const i=n.length,o=r.length;if(i!==o)throw new Error("arrays of points and scalars must have equal length");const s=e.ZERO,a=Hr(BigInt(i));let c=1;a>12?c=a-3:a>4?c=a-2:a>0&&(c=2);const u=zr(c),l=new Array(Number(u)+1).fill(s);let f=s;for(let d=Math.floor((t.BITS-1)/c)*c;d>=0;d-=c){l.fill(s);for(let t=0;t<o;t++){const e=r[t],i=Number(e>>BigInt(d)&u);l[i]=l[i].add(n[t])}let e=s;for(let t=l.length-1,n=s;t>0;t--)n=n.add(l[t]),e=e.add(n);if(f=f.add(e),0!==d)for(let t=0;t<c;t++)f=f.double()}return f}function Mi(e,t,n){if(t){if(t.ORDER!==e)throw new Error("Field.ORDER must match order: Fp == p, Fn == n");return function(e){jr(e,ci.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"}))}(t),t}return di(e,{isLE:n})}function Ii(e,t,n={},r){if(void 0===r&&(r="edwards"===e),!t||"object"!=typeof t)throw new Error(`expected valid ${e} CURVE object`);for(const a of["p","n","h"]){const e=t[a];if(!("bigint"==typeof e&&e>mi))throw new Error(`CURVE.${a} must be positive bigint`)}const i=Mi(t.p,n.Fp,r),o=Mi(t.n,n.Fn,r),s=["Gx","Gy","a","weierstrass"===e?"b":"d"];for(const a of s)if(!i.isValid(t[a]))throw new Error(`CURVE.${a} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:i,Fn:o}}const Bi=BigInt(0),Ni=BigInt(1),Ri=BigInt(2),Li=BigInt(8);function Di(e,t,n={}){if("function"!=typeof t)throw new Error('"hash" function param is required');jr(n,{},{adjustScalarBytes:"function",randomBytes:"function",domain:"function",prehash:"function",mapToCurve:"function"});const{prehash:r}=n,{BASE:i,Fp:o,Fn:s}=e,a=n.randomBytes||Qe,c=n.adjustScalarBytes||(e=>e),u=n.domain||((e,t,n)=>{if(Mr(n,"phflag"),t.length||n)throw new Error("Contexts/pre-hash are not supported");return e});function l(e){return s.create(Lr(e))}function f(e){const{head:n,prefix:r,scalar:o}=function(e){const n=g.secretKey;e=Or("private key",e,n);const r=Or("hashed private key",t(e),2*n),i=c(r.slice(0,n));return{head:i,prefix:r.slice(n,2*n),scalar:l(i)}}(e),s=i.multiply(o),a=s.toBytes();return{head:n,prefix:r,scalar:o,point:s,pointBytes:a}}function d(e){return f(e).pointBytes}function h(e=Uint8Array.of(),...n){const i=Ke(...n);return l(t(u(i,Or("context",e),!!r)))}const p={zip215:!0};const m=o.BYTES,g={secretKey:m,publicKey:m,signature:2*m,seed:m};function b(e=a(g.seed)){return Ir(e,g.seed,"seed")}const w={getExtendedPublicKey:f,randomSecretKey:b,isValidSecretKey:function(e){return Ee(e)&&e.length===s.BYTES},isValidPublicKey:function(t,n){try{return!!e.fromBytes(t,n)}catch(r){return!1}},toMontgomery(t){const{y:n}=e.fromBytes(t),r=g.publicKey,i=32===r;if(!i&&57!==r)throw new Error("only defined for 25519 and 448");const s=i?o.div(Ni+n,Ni-n):o.div(n-Ni,n+Ni);return o.toBytes(s)},toMontgomerySecret(e){const n=g.secretKey;Ir(e,n);const r=t(e.subarray(0,n));return c(r).subarray(0,n)},randomPrivateKey:b,precompute:(t=8,n=e.BASE)=>n.precompute(t,!1)};return Object.freeze({keygen:function(e){const t=w.randomSecretKey(e);return{secretKey:t,publicKey:d(t)}},getPublicKey:d,sign:function(e,t,n={}){e=Or("message",e),r&&(e=r(e));const{prefix:o,scalar:a,pointBytes:c}=f(t),u=h(n.context,o,e),l=i.multiply(u).toBytes(),d=h(n.context,l,c,e),p=s.create(u+d*a);if(!s.isValid(p))throw new Error("sign failed: invalid s");return Ir(Ke(l,s.toBytes(p)),g.signature,"result")},verify:function(t,n,o,s=p){const{context:a,zip215:c}=s,u=g.signature;t=Or("signature",t,u),n=Or("message",n),o=Or("publicKey",o,g.publicKey),void 0!==c&&Mr(c,"zip215"),r&&(n=r(n));const l=u/2,f=t.subarray(0,l),d=Lr(t.subarray(l,u));let m,b,w;try{m=e.fromBytes(o,c),b=e.fromBytes(f,c),w=i.multiplyUnsafe(d)}catch(v){return!1}if(!c&&m.isSmallOrder())return!1;const y=h(a,b.toBytes(),m.toBytes(),n);return b.add(m.multiplyUnsafe(y)).subtract(w).clearCofactor().is0()},utils:w,Point:e,lengths:g})}function Fi(e){const{CURVE:t,curveOpts:n,hash:r,eddsaOpts:i}=function(e){const t={a:e.a,d:e.d,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n={Fp:e.Fp,Fn:di(t.n,e.nBitLength,!0),uvRatio:e.uvRatio},r={randomBytes:e.randomBytes,adjustScalarBytes:e.adjustScalarBytes,domain:e.domain,prehash:e.prehash,mapToCurve:e.mapToCurve};return{CURVE:t,curveOpts:n,hash:e.hash,eddsaOpts:r}}(e),o=function(e,t={}){const n=Ii("edwards",e,t,t.FpFnLE),{Fp:r,Fn:i}=n;let o=n.CURVE;const{h:s}=o;jr(t,{},{uvRatio:"function"});const a=Ri<<BigInt(8*i.BYTES)-Ni,c=e=>r.create(e),u=t.uvRatio||((e,t)=>{try{return{isValid:!0,value:r.sqrt(r.div(e,t))}}catch(n){return{isValid:!1,value:Bi}}});if(!function(e,t,n,r){const i=e.sqr(n),o=e.sqr(r),s=e.add(e.mul(t.a,i),o),a=e.add(e.ONE,e.mul(t.d,e.mul(i,o)));return e.eql(s,a)}(r,o,o.Gx,o.Gy))throw new Error("bad curve params: generator point");function l(e,t,n=!1){return qr("coordinate "+e,t,n?Ni:Bi,a),t}function f(e){if(!(e instanceof p))throw new Error("ExtendedPoint expected")}const d=Vr((e,t)=>{const{X:n,Y:i,Z:o}=e,s=e.is0();null==t&&(t=s?Li:r.inv(o));const a=c(n*t),u=c(i*t),l=r.mul(o,t);if(s)return{x:Bi,y:Ni};if(l!==Ni)throw new Error("invZ was invalid");return{x:a,y:u}}),h=Vr(e=>{const{a:t,d:n}=o;if(e.is0())throw new Error("bad point: ZERO");const{X:r,Y:i,Z:s,T:a}=e,u=c(r*r),l=c(i*i),f=c(s*s),d=c(f*f),h=c(u*t);if(c(f*c(h+l))!==c(d+c(n*c(u*l))))throw new Error("bad point: equation left != right (1)");if(c(r*i)!==c(s*a))throw new Error("bad point: equation left != right (2)");return!0});class p{constructor(e,t,n,r){this.X=l("x",e),this.Y=l("y",t),this.Z=l("z",n,!0),this.T=l("t",r),Object.freeze(this)}static CURVE(){return o}static fromAffine(e){if(e instanceof p)throw new Error("extended point not allowed");const{x:t,y:n}=e||{};return l("x",t),l("y",n),new p(t,n,Ni,c(t*n))}static fromBytes(e,t=!1){const n=r.BYTES,{a:i,d:s}=o;e=Pr(Ir(e,n,"point")),Mr(t,"zip215");const l=Pr(e),f=e[n-1];l[n-1]=-129&f;const d=Lr(l),h=t?a:r.ORDER;qr("point.y",d,Bi,h);const m=c(d*d),g=c(m-Ni),b=c(s*m-i);let{isValid:w,value:y}=u(g,b);if(!w)throw new Error("bad point: invalid y coordinate");const v=(y&Ni)===Ni,A=!!(128&f);if(!t&&y===Bi&&A)throw new Error("bad point: x=0 and x_0=1");return A!==v&&(y=c(-y)),p.fromAffine({x:y,y:d})}static fromHex(e,t=!1){return p.fromBytes(Or("point",e),t)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return m.createCache(this,e),t||this.multiply(Ri),this}assertValidity(){h(this)}equals(e){f(e);const{X:t,Y:n,Z:r}=this,{X:i,Y:o,Z:s}=e,a=c(t*s),u=c(i*r),l=c(n*s),d=c(o*r);return a===u&&l===d}is0(){return this.equals(p.ZERO)}negate(){return new p(c(-this.X),this.Y,this.Z,c(-this.T))}double(){const{a:e}=o,{X:t,Y:n,Z:r}=this,i=c(t*t),s=c(n*n),a=c(Ri*c(r*r)),u=c(e*i),l=t+n,f=c(c(l*l)-i-s),d=u+s,h=d-a,m=u-s,g=c(f*h),b=c(d*m),w=c(f*m),y=c(h*d);return new p(g,b,y,w)}add(e){f(e);const{a:t,d:n}=o,{X:r,Y:i,Z:s,T:a}=this,{X:u,Y:l,Z:d,T:h}=e,m=c(r*u),g=c(i*l),b=c(a*n*h),w=c(s*d),y=c((r+i)*(u+l)-m-g),v=w-b,A=w+b,k=c(g-t*m),x=c(y*v),E=c(A*k),C=c(y*k),S=c(v*A);return new p(x,E,S,C)}subtract(e){return this.add(e.negate())}multiply(e){if(!i.isValidNot0(e))throw new Error("invalid scalar: expected 1 <= sc < curve.n");const{p:t,f:n}=m.cached(this,e,e=>wi(p,e));return wi(p,[t,n])[0]}multiplyUnsafe(e,t=p.ZERO){if(!i.isValid(e))throw new Error("invalid scalar: expected 0 <= sc < curve.n");return e===Bi?p.ZERO:this.is0()||e===Ni?this:m.unsafe(this,e,e=>wi(p,e),t)}isSmallOrder(){return this.multiplyUnsafe(s).is0()}isTorsionFree(){return m.unsafe(this,o.n).is0()}toAffine(e){return d(this,e)}clearCofactor(){return s===Ni?this:this.multiplyUnsafe(s)}toBytes(){const{x:e,y:t}=this.toAffine(),n=r.toBytes(t);return n[n.length-1]|=e&Ni?128:0,n}toHex(){return Pe(this.toBytes())}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get ex(){return this.X}get ey(){return this.Y}get ez(){return this.Z}get et(){return this.T}static normalizeZ(e){return wi(p,e)}static msm(e,t){return Ti(p,i,e,t)}N(e){this.precompute(e)}toRawBytes(){return this.toBytes()}}p.BASE=new p(o.Gx,o.Gy,Ni,c(o.Gx*o.Gy)),p.ZERO=new p(Bi,Ni,Ni,Bi),p.Fp=r,p.Fn=i;const m=new Si(p,i.BITS);return p.BASE.precompute(8),p}(t,n);return function(e,t){const n=t.Point;return Object.assign({},t,{ExtendedPoint:n,CURVE:e,nBitLength:n.Fn.BITS,nByteLength:n.Fn.BYTES})}(e,Di(o,r,i))}const Oi=BigInt(1),Pi=BigInt(2);BigInt(3);const Ui=BigInt(5),qi=BigInt(8),Hi=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffed"),zi=(()=>({p:Hi,n:BigInt("0x1000000000000000000000000000000014def9dea2f79cd65812631a5cf5d3ed"),h:qi,a:BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec"),d:BigInt("0x52036cee2b6ffe738cc740797779e89800700a4d4141d8ab75eb4dca135978a3"),Gx:BigInt("0x216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a"),Gy:BigInt("0x6666666666666666666666666666666666666666666666666666666666666658")}))();function ji(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}const Vi=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");function Gi(e,t){const n=Hi,r=ei(t*t*t,n),i=function(e){const t=BigInt(10),n=BigInt(20),r=BigInt(40),i=BigInt(80),o=Hi,s=e*e%o*e%o,a=ti(s,Pi,o)*s%o,c=ti(a,Oi,o)*e%o,u=ti(c,Ui,o)*c%o,l=ti(u,t,o)*u%o,f=ti(l,n,o)*l%o,d=ti(f,r,o)*f%o,h=ti(d,i,o)*d%o,p=ti(h,i,o)*d%o,m=ti(p,t,o)*u%o;return{pow_p_5_8:ti(m,Pi,o)*e%o,b2:s}}(e*ei(r*r*t,n)).pow_p_5_8;let o=ei(e*r*i,n);const s=ei(t*o*o,n),a=o,c=ei(o*Vi,n),u=s===e,l=s===ei(-e,n),f=s===ei(-e*Vi,n);return u&&(o=a),(l||f)&&(o=c),(ei(o,n)&Jr)===Jr&&(o=ei(-o,n)),{isValid:u||l,value:o}}const Ji=(()=>di(zi.p,{isLE:!0}))(),Wi=(()=>({...zi,Fp:Ji,hash:Jn,adjustScalarBytes:ji,uvRatio:Gi}))(),Ki=(()=>Fi(Wi))();var Yi={exports:{}};const Xi=br(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Qi,Zi=Yi.exports;function $i(){return Qi||(Qi=1,function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function i(e,t,n){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this.R(e||0,t||10,n||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Xi.Buffer}catch(S){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function a(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,r,i){for(var o=0,s=0,a=Math.min(e.length,r),c=t;c<a;c++){var u=e.charCodeAt(c)-48;o*=i,s=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s<i,"Invalid character"),o+=s}return o}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype.R=function(e,t,r){if("number"==typeof e)return this.L(e,t,r);if("object"==typeof e)return this.O(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this.P(e,i,r):(this.U(e,t,i),"le"===r&&this.O(this.toArray(),t,r)))},i.prototype.L=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this.O(this.toArray(),t,r)},i.prototype.O=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s,a=0;if("be"===r)for(i=e.length-1,o=0;i>=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i<e.length;i+=3)s=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=s<<a&67108863,this.words[o+1]=s>>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.q()},i.prototype.P=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,s=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=a(e,t,r)<<o,this.words[s]|=67108863&i,o>=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this.q()},i.prototype.U=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,s=o%r,a=Math.min(o,o-s)+n,u=0,l=n;l<a;l+=r)u=c(e,l,l+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this.j(u);if(0!==s){var f=1;for(u=c(e,l,e.length,t),l=0;l<s;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this.j(u)}this.q()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.V=function(e){u(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype.J=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.q=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this.W()},i.prototype.W=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(S){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var u=1;u<r;u++){for(var l=c>>>26,f=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;l+=(s=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&s}n.words[u]=0|f,c=0|l}return 0!==c?n.words[u]=0|c:n.length--,n.q()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s<this.length;s++){var a=this.words[s],c=(16777215&(a<<i|o)).toString(16);o=a>>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?f[6-c.length]+c+r:c+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],l=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(l).toString(e);r=(p=p.idivn(l)).isZero()?m+r:f[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){this.q();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},i.prototype.K=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;e[n++]=255&s,n<e.length&&(e[n++]=s>>8&255),n<e.length&&(e[n++]=s>>16&255),6===o?(n<e.length&&(e[n++]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},i.prototype.$=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var s=this.words[i]<<o|r;e[n--]=255&s,n>=0&&(e[n--]=s>>8&255),n>=0&&(e[n--]=s>>16&255),6===o?(n>=0&&(e[n--]=s>>24&255),r=0,o=0):(r=s>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?i.prototype._=function(e){return 32-Math.clz32(e)}:i.prototype._=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},i.prototype.te=function(e){if(0===e)return 26;var t=e,n=0;return 8191&t||(n+=13,t>>>=13),127&t||(n+=7,t>>>=7),15&t||(n+=4,t>>>=4),3&t||(n+=2,t>>>=2),1&t||n++,n},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this.te(this.words[t]);if(e+=n,26!==n)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.q()},i.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.q()},i.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.q()},i.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this.J(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&67108863>>26-r),this.q()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this.J(r+1),this.words[r]=t?this.words[r]|1<<i:this.words[r]&~(1<<i),this.q()},i.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this.W();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t.W();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t.W()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this.W();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,s=0;s<r.length;s++)o=(t=(0|n.words[s])-(0|r.words[s])+o)>>26,this.words[s]=67108863&t;for(;0!==o&&s<n.length;s++)o=(t=(0|n.words[s])+o)>>26,this.words[s]=67108863&t;if(0===o&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this.q()},i.prototype.sub=function(e){return this.clone().isub(e)};var m=function(e,t,n){var r,i,o,s=e.words,a=t.words,c=n.words,u=0,l=0|s[0],f=8191&l,d=l>>>13,h=0|s[1],p=8191&h,m=h>>>13,g=0|s[2],b=8191&g,w=g>>>13,y=0|s[3],v=8191&y,A=y>>>13,k=0|s[4],x=8191&k,E=k>>>13,C=0|s[5],S=8191&C,T=C>>>13,M=0|s[6],I=8191&M,B=M>>>13,N=0|s[7],R=8191&N,L=N>>>13,D=0|s[8],F=8191&D,O=D>>>13,P=0|s[9],U=8191&P,q=P>>>13,H=0|a[0],z=8191&H,j=H>>>13,V=0|a[1],G=8191&V,J=V>>>13,W=0|a[2],K=8191&W,Y=W>>>13,X=0|a[3],Q=8191&X,Z=X>>>13,$=0|a[4],_=8191&$,ee=$>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ce=8191&ae,ue=ae>>>13,le=0|a[8],fe=8191&le,de=le>>>13,he=0|a[9],pe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(u+(r=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,j))+Math.imul(d,z)|0))<<13)|0;u=((o=Math.imul(d,j))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,j))+Math.imul(m,z)|0,o=Math.imul(m,j);var be=(u+(r=r+Math.imul(f,G)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(d,G)|0))<<13)|0;u=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(b,z),i=(i=Math.imul(b,j))+Math.imul(w,z)|0,o=Math.imul(w,j),r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,G)|0,o=o+Math.imul(m,J)|0;var we=(u+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;u=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(v,z),i=(i=Math.imul(v,j))+Math.imul(A,z)|0,o=Math.imul(A,j),r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(w,G)|0,o=o+Math.imul(w,J)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,K)|0,o=o+Math.imul(m,Y)|0;var ye=(u+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(d,Q)|0))<<13)|0;u=((o=o+Math.imul(d,Z)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(x,z),i=(i=Math.imul(x,j))+Math.imul(E,z)|0,o=Math.imul(E,j),r=r+Math.imul(v,G)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(A,G)|0,o=o+Math.imul(A,J)|0,r=r+Math.imul(b,K)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(w,K)|0,o=o+Math.imul(w,Y)|0,r=r+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,Z)|0;var ve=(u+(r=r+Math.imul(f,_)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,_)|0))<<13)|0;u=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(S,z),i=(i=Math.imul(S,j))+Math.imul(T,z)|0,o=Math.imul(T,j),r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(E,G)|0,o=o+Math.imul(E,J)|0,r=r+Math.imul(v,K)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(w,Q)|0,o=o+Math.imul(w,Z)|0,r=r+Math.imul(p,_)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,_)|0,o=o+Math.imul(m,ee)|0;var Ae=(u+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;u=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(I,z),i=(i=Math.imul(I,j))+Math.imul(B,z)|0,o=Math.imul(B,j),r=r+Math.imul(S,G)|0,i=(i=i+Math.imul(S,J)|0)+Math.imul(T,G)|0,o=o+Math.imul(T,J)|0,r=r+Math.imul(x,K)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(E,K)|0,o=o+Math.imul(E,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(A,Q)|0,o=o+Math.imul(A,Z)|0,r=r+Math.imul(b,_)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(w,_)|0,o=o+Math.imul(w,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var ke=(u+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,se)|0)+Math.imul(d,oe)|0))<<13)|0;u=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(R,z),i=(i=Math.imul(R,j))+Math.imul(L,z)|0,o=Math.imul(L,j),r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,J)|0)+Math.imul(B,G)|0,o=o+Math.imul(B,J)|0,r=r+Math.imul(S,K)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,Z)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,Z)|0,r=r+Math.imul(v,_)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(A,_)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(b,ne)|0,i=(i=i+Math.imul(b,re)|0)+Math.imul(w,ne)|0,o=o+Math.imul(w,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var xe=(u+(r=r+Math.imul(f,ce)|0)|0)+((8191&(i=(i=i+Math.imul(f,ue)|0)+Math.imul(d,ce)|0))<<13)|0;u=((o=o+Math.imul(d,ue)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(F,z),i=(i=Math.imul(F,j))+Math.imul(O,z)|0,o=Math.imul(O,j),r=r+Math.imul(R,G)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(L,G)|0,o=o+Math.imul(L,J)|0,r=r+Math.imul(I,K)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(B,K)|0,o=o+Math.imul(B,Y)|0,r=r+Math.imul(S,Q)|0,i=(i=i+Math.imul(S,Z)|0)+Math.imul(T,Q)|0,o=o+Math.imul(T,Z)|0,r=r+Math.imul(x,_)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(E,_)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,se)|0)+Math.imul(w,oe)|0,o=o+Math.imul(w,se)|0,r=r+Math.imul(p,ce)|0,i=(i=i+Math.imul(p,ue)|0)+Math.imul(m,ce)|0,o=o+Math.imul(m,ue)|0;var Ee=(u+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;u=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(U,z),i=(i=Math.imul(U,j))+Math.imul(q,z)|0,o=Math.imul(q,j),r=r+Math.imul(F,G)|0,i=(i=i+Math.imul(F,J)|0)+Math.imul(O,G)|0,o=o+Math.imul(O,J)|0,r=r+Math.imul(R,K)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(L,K)|0,o=o+Math.imul(L,Y)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,Z)|0)+Math.imul(B,Q)|0,o=o+Math.imul(B,Z)|0,r=r+Math.imul(S,_)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(T,_)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(x,ne)|0,i=(i=i+Math.imul(x,re)|0)+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,se)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,se)|0,r=r+Math.imul(b,ce)|0,i=(i=i+Math.imul(b,ue)|0)+Math.imul(w,ce)|0,o=o+Math.imul(w,ue)|0,r=r+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Ce=(u+(r=r+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,pe)|0))<<13)|0;u=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,G),i=(i=Math.imul(U,J))+Math.imul(q,G)|0,o=Math.imul(q,J),r=r+Math.imul(F,K)|0,i=(i=i+Math.imul(F,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(L,Q)|0,o=o+Math.imul(L,Z)|0,r=r+Math.imul(I,_)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(B,_)|0,o=o+Math.imul(B,ee)|0,r=r+Math.imul(S,ne)|0,i=(i=i+Math.imul(S,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,se)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,se)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,ue)|0)+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,r=r+Math.imul(b,fe)|0,i=(i=i+Math.imul(b,de)|0)+Math.imul(w,fe)|0,o=o+Math.imul(w,de)|0;var Se=(u+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;u=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(U,K),i=(i=Math.imul(U,Y))+Math.imul(q,K)|0,o=Math.imul(q,Y),r=r+Math.imul(F,Q)|0,i=(i=i+Math.imul(F,Z)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,Z)|0,r=r+Math.imul(R,_)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(L,_)|0,o=o+Math.imul(L,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(B,ne)|0,o=o+Math.imul(B,re)|0,r=r+Math.imul(S,oe)|0,i=(i=i+Math.imul(S,se)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,se)|0,r=r+Math.imul(x,ce)|0,i=(i=i+Math.imul(x,ue)|0)+Math.imul(E,ce)|0,o=o+Math.imul(E,ue)|0,r=r+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,de)|0;var Te=(u+(r=r+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(w,pe)|0))<<13)|0;u=((o=o+Math.imul(w,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,Q),i=(i=Math.imul(U,Z))+Math.imul(q,Q)|0,o=Math.imul(q,Z),r=r+Math.imul(F,_)|0,i=(i=i+Math.imul(F,ee)|0)+Math.imul(O,_)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(L,ne)|0,o=o+Math.imul(L,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,se)|0)+Math.imul(B,oe)|0,o=o+Math.imul(B,se)|0,r=r+Math.imul(S,ce)|0,i=(i=i+Math.imul(S,ue)|0)+Math.imul(T,ce)|0,o=o+Math.imul(T,ue)|0,r=r+Math.imul(x,fe)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,de)|0;var Me=(u+(r=r+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(A,pe)|0))<<13)|0;u=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,_),i=(i=Math.imul(U,ee))+Math.imul(q,_)|0,o=Math.imul(q,ee),r=r+Math.imul(F,ne)|0,i=(i=i+Math.imul(F,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(L,oe)|0,o=o+Math.imul(L,se)|0,r=r+Math.imul(I,ce)|0,i=(i=i+Math.imul(I,ue)|0)+Math.imul(B,ce)|0,o=o+Math.imul(B,ue)|0,r=r+Math.imul(S,fe)|0,i=(i=i+Math.imul(S,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Ie=(u+(r=r+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(E,pe)|0))<<13)|0;u=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,ne),i=(i=Math.imul(U,re))+Math.imul(q,ne)|0,o=Math.imul(q,re),r=r+Math.imul(F,oe)|0,i=(i=i+Math.imul(F,se)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,se)|0,r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,ue)|0)+Math.imul(L,ce)|0,o=o+Math.imul(L,ue)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(B,fe)|0,o=o+Math.imul(B,de)|0;var Be=(u+(r=r+Math.imul(S,pe)|0)|0)+((8191&(i=(i=i+Math.imul(S,me)|0)+Math.imul(T,pe)|0))<<13)|0;u=((o=o+Math.imul(T,me)|0)+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,r=Math.imul(U,oe),i=(i=Math.imul(U,se))+Math.imul(q,oe)|0,o=Math.imul(q,se),r=r+Math.imul(F,ce)|0,i=(i=i+Math.imul(F,ue)|0)+Math.imul(O,ce)|0,o=o+Math.imul(O,ue)|0,r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(L,fe)|0,o=o+Math.imul(L,de)|0;var Ne=(u+(r=r+Math.imul(I,pe)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(B,pe)|0))<<13)|0;u=((o=o+Math.imul(B,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(U,ce),i=(i=Math.imul(U,ue))+Math.imul(q,ce)|0,o=Math.imul(q,ue),r=r+Math.imul(F,fe)|0,i=(i=i+Math.imul(F,de)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,de)|0;var Re=(u+(r=r+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(L,pe)|0))<<13)|0;u=((o=o+Math.imul(L,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(U,fe),i=(i=Math.imul(U,de))+Math.imul(q,fe)|0,o=Math.imul(q,de);var Le=(u+(r=r+Math.imul(F,pe)|0)|0)+((8191&(i=(i=i+Math.imul(F,me)|0)+Math.imul(O,pe)|0))<<13)|0;u=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Le>>>26)|0,Le&=67108863;var De=(u+(r=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,me))+Math.imul(q,pe)|0))<<13)|0;return u=((o=Math.imul(q,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,c[0]=ge,c[1]=be,c[2]=we,c[3]=ye,c[4]=ve,c[5]=Ae,c[6]=ke,c[7]=xe,c[8]=Ee,c[9]=Ce,c[10]=Se,c[11]=Te,c[12]=Me,c[13]=Ie,c[14]=Be,c[15]=Ne,c[16]=Re,c[17]=Le,c[18]=De,0!==u&&(c[19]=u,n.length++),n};function g(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var s=i;i=0;for(var a=67108863&r,c=Math.min(o,t.length-1),u=Math.max(0,o-e.length+1);u<=c;u++){var l=o-u,f=(0|e.words[l])*(0|t.words[u]),d=67108863&f;a=67108863&(d=d+a|0),i+=(s=(s=s+(f/67108864|0)|0)+(d>>>26)|0)>>>26,s&=67108863}n.words[o]=a,r=s,s=i}return 0!==r?n.words[o]=r:n.length--,n.q()}function b(e,t,n){return g(e,t,n)}Math.imul||(m=p),i.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?m(this,e,t):n<63?p(this,e,t):n<1024?g(this,e,t):b(this,e,t)},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),b(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,s=(67108863&o)+(67108863&r);r>>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new i(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var o=n.sqr();r<t.length;r++,o=o.sqr())0!==t[r]&&(n=n.mul(o));return n},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t<this.length;t++){var a=this.words[t]&o,c=(0|this.words[t])-a<<r;this.words[t]=c|s,s=a>>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.q()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var i;n("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<<o,c=r;if(i-=s,i=Math.max(0,i),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=i);u--){var f=0|this.words[u];this.words[u]=l<<26-o|f>>>o,l=f&a}return c&&0!==l&&(c.words[c.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.q()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<<t;return!(this.length<=r||!(this.words[r]&i))},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return 0===this.length&&(this.words[0]=0,this.length=1),this.q()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this.j(e)},i.prototype.j=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.q()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype.re=function(e,t,r){var i,o,s=e.length+r;this.J(s);var a=0;for(i=0;i<e.length;i++){o=(0|this.words[i+r])+a;var c=(0|e.words[i])*t;a=((o-=67108863&c)>>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i<this.length-r;i++)a=(o=(0|this.words[i+r])+a)>>26,this.words[i+r]=67108863&o;if(0===a)return this.q();for(n(-1===a),a=0,i=0;i<this.length;i++)a=(o=-(0|this.words[i])+a)>>26,this.words[i]=67108863&o;return this.negative=1,this.q()},i.prototype.ie=function(e,t){var n=(this.length,e.length),r=this.clone(),o=e,s=0|o.words[o.length-1];0!=(n=26-this._(s))&&(o=o.ushln(n),r.iushln(n),s=0|o.words[o.length-1]);var a,c=r.length-o.length;if("mod"!==t){(a=new i(null)).length=c+1,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var l=r.clone().re(o,1,c);0===l.negative&&(r=l,a&&(a.words[c]=1));for(var f=c-1;f>=0;f--){var d=67108864*(0|r.words[o.length+f])+(0|r.words[o.length+f-1]);for(d=Math.min(d/s|0,67108863),r.re(o,d,f);0!==r.negative;)d--,r.negative=0,r.re(o,1,f),r.isZero()||(r.negative^=1);a&&(a.words[f]=d)}return a&&a.q(),r.q(),"div"!==t&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!==(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this.ie(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this.q(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),c=new i(1),u=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++u;for(var l=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(l),s.isub(f)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(l),c.isub(f)),a.iushrn(1),c.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(a),s.isub(c)):(r.isub(t),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:r.iushln(u)}},i.prototype.oe=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),c=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,l=1;0===(t.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(t.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var f=0,d=1;0===(r.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(r.iushrn(f);f-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return!(1&this.words[0])},i.prototype.isOdd=function(){return!(1&~this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this.J(r+1),this.words[r]|=i,this;for(var o=i,s=r;0!==o&&s<this.length;s++){var a=0|this.words[s];o=(a+=o)>>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.q(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new E(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this).se(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype.se=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this.se(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red.ae(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red.ae(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red.ce(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red.ce(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red.ce(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red.ce(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red.ce(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red.ce(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function y(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this.ue()}function v(){y.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){y.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){y.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){y.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=i.fe(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r.oe(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype.ue=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},y.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n.q(),n},y.prototype.split=function(e,t){e.iushrn(this.n,0,t)},y.prototype.imulK=function(e){return e.imul(this.k)},r(v,y),v.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&n,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(s&n)<<4|o>>>22,o=s}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},v.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(A,y),r(k,y),r(x,y),x.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},i.fe=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new v;else if("p224"===e)t=new A;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new x}return w[e]=t,t},E.prototype.ce=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype.ae=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e).se(this):(u(e,e.umod(this.m).se(this)),e)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e).se(this)},E.prototype.add=function(e,t){this.ae(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n.se(this)},E.prototype.iadd=function(e,t){this.ae(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this.ae(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n.se(this)},E.prototype.isub=function(e,t){this.ae(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this.ce(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this.ae(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this.ae(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);n(!o.isZero());var a=new i(1).toRed(this),c=a.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,u).cmp(c);)l.redIAdd(c);for(var f=this.pow(l,o),d=this.pow(e,o.addn(1).iushrn(1)),h=this.pow(e,o),p=s;0!==h.cmp(a);){for(var m=h,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g<p);var b=this.pow(f,new i(1).iushln(p-g-1));d=d.redMul(b),f=b.redSqr(),h=h.redMul(f),p=g}return d},E.prototype.invm=function(e){var t=e.oe(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new i(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var o=n[0],s=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var u=t.words[r],l=c-1;l>=0;l--){var f=u>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==f||0!==s?(s<<=1,s|=f,(4===++a||0===r&&0===l)&&(o=this.mul(o,n[s]),a=0,s=0)):a=0}c=26}return o},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new C(e)},r(C,E),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o.se(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0).se(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s.se(this)},C.prototype.invm=function(e){return this.imod(e.oe(this.m).mul(this.r2)).se(this)}}(Yi,Zi)),Yi.exports}const _i=gr($i());var eo,to,no,ro,io,oo={exports:{}};function so(){if(no)return to;no=1;var e=(eo||(eo=1,function(e,t){var n=Er(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return r(e,t,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return r(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var i=r(e);return void 0!==t?"string"==typeof n?i.fill(t,n):i.fill(t):i.fill(0),i},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}}(oo,oo.exports)),oo.exports).Buffer;return to=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var i=0;i<t.length;i++){var o=t.charAt(i),s=o.charCodeAt(0);if(255!==n[s])throw new TypeError(o+" is ambiguous");n[s]=i}var a=t.length,c=t.charAt(0),u=Math.log(a)/Math.log(256),l=Math.log(256)/Math.log(a);function f(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return e.alloc(0);for(var r=0,i=0,o=0;t[r]===c;)i++,r++;for(var s=(t.length-r)*u+1>>>0,l=new Uint8Array(s);r<t.length;){var f=t.charCodeAt(r);if(f>255)return;var d=n[f];if(255===d)return;for(var h=0,p=s-1;(0!==d||h<o)&&-1!==p;p--,h++)d+=a*l[p]>>>0,l[p]=d%256>>>0,d=d/256>>>0;if(0!==d)throw new Error("Non-zero carry");o=h,r++}for(var m=s-o;m!==s&&0===l[m];)m++;var g=e.allocUnsafe(i+(s-m));g.fill(0,0,i);for(var b=i;m!==s;)g[b++]=l[m++];return g}return{encode:function(n){if((Array.isArray(n)||n instanceof Uint8Array)&&(n=e.from(n)),!e.isBuffer(n))throw new TypeError("Expected Buffer");if(0===n.length)return"";for(var r=0,i=0,o=0,s=n.length;o!==s&&0===n[o];)o++,r++;for(var u=(s-o)*l+1>>>0,f=new Uint8Array(u);o!==s;){for(var d=n[o],h=0,p=u-1;(0!==d||h<i)&&-1!==p;p--,h++)d+=256*f[p]>>>0,f[p]=d%a>>>0,d=d/a>>>0;if(0!==d)throw new Error("Non-zero carry");i=h,o++}for(var m=u-i;m!==u&&0===f[m];)m++;for(var g=c.repeat(r);m<u;++m)g+=t.charAt(f[m]);return g},decodeUnsafe:f,decode:function(e){var t=f(e);if(t)return t;throw new Error("Non-base"+a+" character")}}}}function ao(){if(io)return ro;io=1;var e=so();return ro=e("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")}const co=gr(ao());var uo={};function lo(e,t,n){return t<=e&&e<=n}function fo(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}function ho(e){this.tokens=[].slice.call(e)}ho.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};var po=-1;function mo(e,t){if(e)throw TypeError("Decoder error");return t||65533}var go="utf-8";function bo(e,t){if(!(this instanceof bo))return new bo(e,t);if((e=void 0!==e?String(e).toLowerCase():go)!==go)throw new Error("Encoding not supported. Only utf-8 is supported");t=fo(t),this.de=!1,this.he=!1,this.pe=null,this.me=Boolean(t.fatal),this.be=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this.me}),Object.defineProperty(this,"ignoreBOM",{value:this.be})}function wo(e,t){if(!(this instanceof wo))return new wo(e,t);if((e=void 0!==e?String(e).toLowerCase():go)!==go)throw new Error("Encoding not supported. Only utf-8 is supported");t=fo(t),this.de=!1,this.we=null,this.ye={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function yo(e){var t=e.fatal,n=0,r=0,i=0,o=128,s=191;this.handler=function(e,a){if(-1===a&&0!==i)return i=0,mo(t);if(-1===a)return po;if(0===i){if(lo(a,0,127))return a;if(lo(a,194,223))i=1,n=a-192;else if(lo(a,224,239))224===a&&(o=160),237===a&&(s=159),i=2,n=a-224;else{if(!lo(a,240,244))return mo(t);240===a&&(o=144),244===a&&(s=143),i=3,n=a-240}return n<<=6*i,null}if(!lo(a,o,s))return n=i=r=0,o=128,s=191,e.prepend(a),mo(t);if(o=128,s=191,n+=a-128<<6*(i-(r+=1)),r!==i)return null;var c=n;return n=i=r=0,c}}function vo(e){e.fatal,this.handler=function(e,t){if(-1===t)return po;if(lo(t,0,127))return t;var n,r;lo(t,128,2047)?(n=1,r=192):lo(t,2048,65535)?(n=2,r=224):lo(t,65536,1114111)&&(n=3,r=240);for(var i=[(t>>6*n)+r];n>0;){var o=t>>6*(n-1);i.push(128|63&o),n-=1}return i}}bo.prototype={decode:function(e,t){var n;n="object"==typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"==typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=fo(t),this.de||(this.pe=new yo({fatal:this.me}),this.he=!1),this.de=Boolean(t.stream);for(var r,i=new ho(n),o=[];!i.endOfStream()&&(r=this.pe.handler(i,i.read()))!==po;)null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));if(!this.de){do{if((r=this.pe.handler(i,i.read()))===po)break;null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r))}while(!i.endOfStream());this.pe=null}return o.length&&(-1===["utf-8"].indexOf(this.encoding)||this.be||this.he||(65279===o[0]?(this.he=!0,o.shift()):this.he=!0)),function(e){for(var t="",n=0;n<e.length;++n){var r=e[n];r<=65535?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode(55296+(r>>10),56320+(1023&r)))}return t}(o)}},wo.prototype={encode:function(e,t){e=e?String(e):"",t=fo(t),this.de||(this.we=new vo(this.ye)),this.de=Boolean(t.stream);for(var n,r=[],i=new ho(function(e){for(var t=String(e),n=t.length,r=0,i=[];r<n;){var o=t.charCodeAt(r);if(o<55296||o>57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var s=e.charCodeAt(r+1);if(56320<=s&&s<=57343){var a=1023&o,c=1023&s;i.push(65536+(a<<10)+c),r+=1}else i.push(65533)}r+=1}return i}(e));!i.endOfStream()&&(n=this.we.handler(i,i.read()))!==po;)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this.de){for(;(n=this.we.handler(i,i.read()))!==po;)Array.isArray(n)?r.push.apply(r,n):r.push(n);this.we=null}return new Uint8Array(r)}};const Ao=br(Object.freeze(Object.defineProperty({__proto__:null,TextDecoder:bo,TextEncoder:wo},Symbol.toStringTag,{value:"Module"})));var ko;var xo,Eo=function(){if(ko)return uo;ko=1;var e=uo&&uo.ve||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=uo&&uo.Ae||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),n=uo&&uo.ke||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},r=uo&&uo.xe||function(n){if(n&&n.u)return n;var r={};if(null!=n)for(var i in n)"default"!==i&&Object.hasOwnProperty.call(n,i)&&e(r,n,i);return t(r,n),r},i=uo&&uo.Ee||function(e){return e&&e.u?e:{default:e}};Object.defineProperty(uo,"u",{value:!0}),uo.deserializeUnchecked=uo.deserialize=uo.serialize=uo.BinaryReader=uo.BinaryWriter=uo.BorshError=uo.baseDecode=uo.baseEncode=void 0;const o=i($i()),s=i(ao()),a=r(Ao),c=new("function"!=typeof TextDecoder?a.TextDecoder:TextDecoder)("utf-8",{fatal:!0});uo.baseEncode=function(e){return"string"==typeof e&&(e=Buffer.from(e,"utf8")),s.default.encode(Buffer.from(e))},uo.baseDecode=function(e){return Buffer.from(s.default.decode(e))};const u=1024;class l extends Error{constructor(e){super(e),this.fieldPath=[],this.originalMessage=e}addToFieldPath(e){this.fieldPath.splice(0,0,e),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}uo.BorshError=l;class f{constructor(){this.buf=Buffer.alloc(u),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(u)]))}writeU8(e){this.maybeResize(),this.buf.writeUInt8(e,this.length),this.length+=1}writeU16(e){this.maybeResize(),this.buf.writeUInt16LE(e,this.length),this.length+=2}writeU32(e){this.maybeResize(),this.buf.writeUInt32LE(e,this.length),this.length+=4}writeU64(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",8)))}writeU128(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",16)))}writeU256(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",32)))}writeU512(e){this.maybeResize(),this.writeBuffer(Buffer.from(new o.default(e).toArray("le",64)))}writeBuffer(e){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),e,Buffer.alloc(u)]),this.length+=e.length}writeString(e){this.maybeResize();const t=Buffer.from(e,"utf8");this.writeU32(t.length),this.writeBuffer(t)}writeFixedArray(e){this.writeBuffer(Buffer.from(e))}writeArray(e,t){this.maybeResize(),this.writeU32(e.length);for(const n of e)this.maybeResize(),t(n)}toArray(){return this.buf.subarray(0,this.length)}}function d(e,t,n){const r=n.value;n.value=function(...e){try{return r.apply(this,e)}catch(t){if(t instanceof RangeError){const e=t.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(e)>=0)throw new l("Reached the end of buffer when deserializing")}throw t}}}uo.BinaryWriter=f;class h{constructor(e){this.buf=e,this.offset=0}readU8(){const e=this.buf.readUInt8(this.offset);return this.offset+=1,e}readU16(){const e=this.buf.readUInt16LE(this.offset);return this.offset+=2,e}readU32(){const e=this.buf.readUInt32LE(this.offset);return this.offset+=4,e}readU64(){const e=this.readBuffer(8);return new o.default(e,"le")}readU128(){const e=this.readBuffer(16);return new o.default(e,"le")}readU256(){const e=this.readBuffer(32);return new o.default(e,"le")}readU512(){const e=this.readBuffer(64);return new o.default(e,"le")}readBuffer(e){if(this.offset+e>this.buf.length)throw new l(`Expected buffer length ${e} isn't within bounds`);const t=this.buf.slice(this.offset,this.offset+e);return this.offset+=e,t}readString(){const e=this.readU32(),t=this.readBuffer(e);try{return c.decode(t)}catch(n){throw new l(`Error decoding UTF-8 string: ${n}`)}}readFixedArray(e){return new Uint8Array(this.readBuffer(e))}readArray(e){const t=this.readU32(),n=Array();for(let r=0;r<t;++r)n.push(e());return n}}function p(e){return e.charAt(0).toUpperCase()+e.slice(1)}function m(e,t,n,r,i){try{if("string"==typeof r)i[`write${p(r)}`](n);else if(r instanceof Array)if("number"==typeof r[0]){if(n.length!==r[0])throw new l(`Expecting byte array of length ${r[0]}, but got ${n.length} bytes`);i.writeFixedArray(n)}else if(2===r.length&&"number"==typeof r[1]){if(n.length!==r[1])throw new l(`Expecting byte array of length ${r[1]}, but got ${n.length} bytes`);for(let t=0;t<r[1];t++)m(e,null,n[t],r[0],i)}else i.writeArray(n,n=>{m(e,t,n,r[0],i)});else if(void 0!==r.kind)switch(r.kind){case"option":null==n?i.writeU8(0):(i.writeU8(1),m(e,t,n,r.type,i));break;case"map":i.writeU32(n.size),n.forEach((n,o)=>{m(e,t,o,r.key,i),m(e,t,n,r.value,i)});break;default:throw new l(`FieldType ${r} unrecognized`)}else g(e,n,i)}catch(o){throw o instanceof l&&o.addToFieldPath(t),o}}function g(e,t,n){if("function"==typeof t.borshSerialize)return void t.borshSerialize(n);const r=e.get(t.constructor);if(!r)throw new l(`Class ${t.constructor.name} is missing in schema`);if("struct"===r.kind)r.fields.map(([r,i])=>{m(e,r,t[r],i,n)});else{if("enum"!==r.kind)throw new l(`Unexpected schema kind: ${r.kind} for ${t.constructor.name}`);{const i=t[r.field];for(let o=0;o<r.values.length;++o){const[s,a]=r.values[o];if(s===i){n.writeU8(o),m(e,s,t[s],a,n);break}}}}}function b(e,t,n,r){try{if("string"==typeof n)return r[`read${p(n)}`]();if(n instanceof Array){if("number"==typeof n[0])return r.readFixedArray(n[0]);if("number"==typeof n[1]){const t=[];for(let i=0;i<n[1];i++)t.push(b(e,null,n[0],r));return t}return r.readArray(()=>b(e,t,n[0],r))}if("option"===n.kind){return r.readU8()?b(e,t,n.type,r):void 0}if("map"===n.kind){let i=new Map;const o=r.readU32();for(let s=0;s<o;s++){const o=b(e,t,n.key,r),s=b(e,t,n.value,r);i.set(o,s)}return i}return w(e,n,r)}catch(i){throw i instanceof l&&i.addToFieldPath(t),i}}function w(e,t,n){if("function"==typeof t.borshDeserialize)return t.borshDeserialize(n);const r=e.get(t);if(!r)throw new l(`Class ${t.name} is missing in schema`);if("struct"===r.kind){const r={};for(const[i,o]of e.get(t).fields)r[i]=b(e,i,o,n);return new t(r)}if("enum"===r.kind){const i=n.readU8();if(i>=r.values.length)throw new l(`Enum index: ${i} is out of range`);const[o,s]=r.values[i],a=b(e,o,s,n);return new t({[o]:a})}throw new l(`Unexpected schema kind: ${r.kind} for ${t.constructor.name}`)}return n([d],h.prototype,"readU8",null),n([d],h.prototype,"readU16",null),n([d],h.prototype,"readU32",null),n([d],h.prototype,"readU64",null),n([d],h.prototype,"readU128",null),n([d],h.prototype,"readU256",null),n([d],h.prototype,"readU512",null),n([d],h.prototype,"readString",null),n([d],h.prototype,"readFixedArray",null),n([d],h.prototype,"readArray",null),uo.BinaryReader=h,uo.serialize=function(e,t,n=f){const r=new n;return g(e,t,r),r.toArray()},uo.deserialize=function(e,t,n,r=h){const i=new r(n),o=w(e,t,i);if(i.offset<n.length)throw new l(`Unexpected ${n.length-i.offset} bytes after deserialized data`);return o},uo.deserializeUnchecked=function(e,t,n,r=h){return w(e,t,new r(n))},uo}(),Co={};var So=function(){if(xo)return Co;xo=1,Object.defineProperty(Co,"u",{value:!0}),Co.s16=Co.s8=Co.nu64be=Co.u48be=Co.u40be=Co.u32be=Co.u24be=Co.u16be=Co.nu64=Co.u48=Co.u40=Co.u32=Co.u24=Co.u16=Co.u8=Co.offset=Co.greedy=Co.Constant=Co.UTF8=Co.CString=Co.Blob=Co.Boolean=Co.BitField=Co.BitStructure=Co.VariantLayout=Co.Union=Co.UnionLayoutDiscriminator=Co.UnionDiscriminator=Co.Structure=Co.Sequence=Co.DoubleBE=Co.Double=Co.FloatBE=Co.Float=Co.NearInt64BE=Co.NearInt64=Co.NearUInt64BE=Co.NearUInt64=Co.IntBE=Co.Int=Co.UIntBE=Co.UInt=Co.OffsetLayout=Co.GreedyCount=Co.ExternalLayout=Co.bindConstructorLayout=Co.nameWithProperty=Co.Layout=Co.uint8ArrayToBuffer=Co.checkUint8Array=void 0,Co.constant=Co.utf8=Co.cstr=Co.blob=Co.unionLayoutDiscriminator=Co.union=Co.seq=Co.bits=Co.struct=Co.f64be=Co.f64=Co.f32be=Co.f32=Co.ns64be=Co.s48be=Co.s40be=Co.s32be=Co.s24be=Co.s16be=Co.ns64=Co.s48=Co.s40=Co.s32=Co.s24=void 0;const e=Er();function t(e){if(!(e instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function n(n){return t(n),e.Buffer.from(n.buffer,n.byteOffset,n.length)}Co.checkUint8Array=t,Co.uint8ArrayToBuffer=n;let r=class{constructor(e,t){if(!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=t}makeDestinationObject(){return{}}getSpan(e,t){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(e){const t=Object.create(this.constructor.prototype);return Object.assign(t,this),t.property=e,t}fromArray(e){}};function i(e,t){return t.property?e+"["+t.property+"]":e}Co.Layout=r,Co.nameWithProperty=i,Co.bindConstructorLayout=function(e,t){if("function"!=typeof e)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(e,"layout_"))throw new Error("Class is already bound to a layout");if(!(t&&t instanceof r))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(t,"boundConstructor_"))throw new Error("layout is already bound to a constructor");e.layout_=t,t.boundConstructor_=e,t.makeDestinationObject=()=>new e,Object.defineProperty(e.prototype,"encode",{value(e,n){return t.encode(this,e,n)},writable:!0}),Object.defineProperty(e,"decode",{value:(e,n)=>t.decode(e,n),writable:!0})};class o extends r{isCount(){throw new Error("ExternalLayout is abstract")}}Co.ExternalLayout=o;class s extends o{constructor(e=1,t){if(!Number.isInteger(e)||0>=e)throw new TypeError("elementSpan must be a (positive) integer");super(-1,t),this.elementSpan=e}isCount(){return!0}decode(e,n=0){t(e);const r=e.length-n;return Math.floor(r/this.elementSpan)}encode(e,t,n){return 0}}Co.GreedyCount=s;class a extends o{constructor(e,t=0,n){if(!(e instanceof r))throw new TypeError("layout must be a Layout");if(!Number.isInteger(t))throw new TypeError("offset must be integer or undefined");super(e.span,n||e.property),this.layout=e,this.offset=t}isCount(){return this.layout instanceof c||this.layout instanceof u}decode(e,t=0){return this.layout.decode(e,t+this.offset)}encode(e,t,n=0){return this.layout.encode(e,t,n+this.offset)}}Co.OffsetLayout=a;class c extends r{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readUIntLE(t,this.span)}encode(e,t,r=0){return n(t).writeUIntLE(e,r,this.span),this.span}}Co.UInt=c;class u extends r{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readUIntBE(t,this.span)}encode(e,t,r=0){return n(t).writeUIntBE(e,r,this.span),this.span}}Co.UIntBE=u;class l extends r{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readIntLE(t,this.span)}encode(e,t,r=0){return n(t).writeIntLE(e,r,this.span),this.span}}Co.Int=l;class f extends r{constructor(e,t){if(super(e,t),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(e,t=0){return n(e).readIntBE(t,this.span)}encode(e,t,r=0){return n(t).writeIntBE(e,r,this.span),this.span}}Co.IntBE=f;const d=Math.pow(2,32);function h(e){const t=Math.floor(e/d);return{hi32:t,lo32:e-t*d}}function p(e,t){return e*d+t}class m extends r{constructor(e){super(8,e)}decode(e,t=0){const r=n(e),i=r.readUInt32LE(t);return p(r.readUInt32LE(t+4),i)}encode(e,t,r=0){const i=h(e),o=n(t);return o.writeUInt32LE(i.lo32,r),o.writeUInt32LE(i.hi32,r+4),8}}Co.NearUInt64=m;class g extends r{constructor(e){super(8,e)}decode(e,t=0){const r=n(e);return p(r.readUInt32BE(t),r.readUInt32BE(t+4))}encode(e,t,r=0){const i=h(e),o=n(t);return o.writeUInt32BE(i.hi32,r),o.writeUInt32BE(i.lo32,r+4),8}}Co.NearUInt64BE=g;class b extends r{constructor(e){super(8,e)}decode(e,t=0){const r=n(e),i=r.readUInt32LE(t);return p(r.readInt32LE(t+4),i)}encode(e,t,r=0){const i=h(e),o=n(t);return o.writeUInt32LE(i.lo32,r),o.writeInt32LE(i.hi32,r+4),8}}Co.NearInt64=b;class w extends r{constructor(e){super(8,e)}decode(e,t=0){const r=n(e);return p(r.readInt32BE(t),r.readUInt32BE(t+4))}encode(e,t,r=0){const i=h(e),o=n(t);return o.writeInt32BE(i.hi32,r),o.writeUInt32BE(i.lo32,r+4),8}}Co.NearInt64BE=w;class y extends r{constructor(e){super(4,e)}decode(e,t=0){return n(e).readFloatLE(t)}encode(e,t,r=0){return n(t).writeFloatLE(e,r),4}}Co.Float=y;class v extends r{constructor(e){super(4,e)}decode(e,t=0){return n(e).readFloatBE(t)}encode(e,t,r=0){return n(t).writeFloatBE(e,r),4}}Co.FloatBE=v;class A extends r{constructor(e){super(8,e)}decode(e,t=0){return n(e).readDoubleLE(t)}encode(e,t,r=0){return n(t).writeDoubleLE(e,r),8}}Co.Double=A;class k extends r{constructor(e){super(8,e)}decode(e,t=0){return n(e).readDoubleBE(t)}encode(e,t,r=0){return n(t).writeDoubleBE(e,r),8}}Co.DoubleBE=k;class x extends r{constructor(e,t,n){if(!(e instanceof r))throw new TypeError("elementLayout must be a Layout");if(!(t instanceof o&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let i=-1;!(t instanceof o)&&0<e.span&&(i=t*e.span),super(i,n),this.elementLayout=e,this.count=t}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0,r=this.count;if(r instanceof o&&(r=r.decode(e,t)),0<this.elementLayout.span)n=r*this.elementLayout.span;else{let i=0;for(;i<r;)n+=this.elementLayout.getSpan(e,t+n),++i}return n}decode(e,t=0){const n=[];let r=0,i=this.count;for(i instanceof o&&(i=i.decode(e,t));r<i;)n.push(this.elementLayout.decode(e,t)),t+=this.elementLayout.getSpan(e,t),r+=1;return n}encode(e,t,n=0){const r=this.elementLayout,i=e.reduce((e,i)=>e+r.encode(i,t,n+e),0);return this.count instanceof o&&this.count.encode(e.length,t,n),i}}Co.Sequence=x;class E extends r{constructor(e,t,n){if(!Array.isArray(e)||!e.reduce((e,t)=>e&&t instanceof r,!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof t&&void 0===n&&(n=t,t=void 0);for(const r of e)if(0>r.span&&void 0===r.property)throw new Error("fields cannot contain unnamed variable-length layout");let i=-1;try{i=e.reduce((e,t)=>e+t.getSpan(),0)}catch(o){}super(i,t),this.fields=e,this.decodePrefixes=!!n}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0;try{n=this.fields.reduce((n,r)=>{const i=r.getSpan(e,t);return t+=i,n+i},0)}catch(r){throw new RangeError("indeterminate span")}return n}decode(e,n=0){t(e);const r=this.makeDestinationObject();for(const t of this.fields)if(void 0!==t.property&&(r[t.property]=t.decode(e,n)),n+=t.getSpan(e,n),this.decodePrefixes&&e.length===n)break;return r}encode(e,t,n=0){const r=n;let i=0,o=0;for(const s of this.fields){let r=s.span;if(o=0<r?r:0,void 0!==s.property){const i=e[s.property];void 0!==i&&(o=s.encode(i,t,n),0>r&&(r=s.getSpan(t,n)))}i=n,n+=r}return i+o-r}fromArray(e){const t=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0<e.length&&(t[n.property]=e.shift());return t}layoutFor(e){if("string"!=typeof e)throw new TypeError("property must be string");for(const t of this.fields)if(t.property===e)return t}offsetOf(e){if("string"!=typeof e)throw new TypeError("property must be string");let t=0;for(const n of this.fields){if(n.property===e)return t;0>n.span?t=-1:0<=t&&(t+=n.span)}}}Co.Structure=E;class C{constructor(e){this.property=e}decode(e,t){throw new Error("UnionDiscriminator is abstract")}encode(e,t,n){throw new Error("UnionDiscriminator is abstract")}}Co.UnionDiscriminator=C;class S extends C{constructor(e,t){if(!(e instanceof o&&e.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(t||e.property||"variant"),this.layout=e}decode(e,t){return this.layout.decode(e,t)}encode(e,t,n){return this.layout.encode(e,t,n)}}Co.UnionLayoutDiscriminator=S;class T extends r{constructor(e,t,n){let i;if(e instanceof c||e instanceof u)i=new S(new a(e));else if(e instanceof o&&e.isCount())i=new S(e);else{if(!(e instanceof C))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");i=e}if(void 0===t&&(t=null),!(null===t||t instanceof r))throw new TypeError("defaultLayout must be null or a Layout");if(null!==t){if(0>t.span)throw new Error("defaultLayout must have constant span");void 0===t.property&&(t=t.replicate("content"))}let s=-1;t&&(s=t.span,0<=s&&(e instanceof c||e instanceof u)&&(s+=i.layout.span)),super(s,n),this.discriminator=i,this.usesPrefixDiscriminator=e instanceof c||e instanceof u,this.defaultLayout=t,this.registry={};let l=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(e){return l(e)},this.configGetSourceVariant=function(e){l=e.bind(this)}}getSpan(e,t=0){if(0<=this.span)return this.span;const n=this.getVariant(e,t);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(e,t)}defaultGetSourceVariant(e){if(Object.prototype.hasOwnProperty.call(e,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(e,this.defaultLayout.property))return;const t=this.registry[e[this.discriminator.property]];if(t&&(!t.layout||t.property&&Object.prototype.hasOwnProperty.call(e,t.property)))return t}else for(const t in this.registry){const n=this.registry[t];if(n.property&&Object.prototype.hasOwnProperty.call(e,n.property))return n}throw new Error("unable to infer src variant")}decode(e,t=0){let n;const r=this.discriminator,i=r.decode(e,t),o=this.registry[i];if(void 0===o){const o=this.defaultLayout;let s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),n=this.makeDestinationObject(),n[r.property]=i,n[o.property]=o.decode(e,t+s)}else n=o.decode(e,t);return n}encode(e,t,n=0){const r=this.getSourceVariant(e);if(void 0===r){const r=this.discriminator,i=this.defaultLayout;let o=0;return this.usesPrefixDiscriminator&&(o=r.layout.span),r.encode(e[r.property],t,n),o+i.encode(e[i.property],t,n+o)}return r.encode(e,t,n)}addVariant(e,t,n){const r=new M(this,e,t,n);return this.registry[e]=r,r}getVariant(e,t=0){let n;return n=e instanceof Uint8Array?this.discriminator.decode(e,t):e,this.registry[n]}}Co.Union=T;class M extends r{constructor(e,t,n,i){if(!(e instanceof T))throw new TypeError("union must be a Union");if(!Number.isInteger(t)||0>t)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof n&&void 0===i&&(i=n,n=null),n){if(!(n instanceof r))throw new TypeError("layout must be a Layout");if(null!==e.defaultLayout&&0<=n.span&&n.span>e.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof i)throw new TypeError("variant must have a String property")}let o=e.span;0>e.span&&(o=n?n.span:0,0<=o&&e.usesPrefixDiscriminator&&(o+=e.discriminator.layout.span)),super(o,i),this.union=e,this.variant=t,this.layout=n||null}getSpan(e,t=0){if(0<=this.span)return this.span;let n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);let r=0;return this.layout&&(r=this.layout.getSpan(e,t+n)),n+r}decode(e,t=0){const n=this.makeDestinationObject();if(this!==this.union.getVariant(e,t))throw new Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(e,t+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(e,t,n=0){let r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(e,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,t,n);let i=r;if(this.layout&&(this.layout.encode(e[this.property],t,n+r),i+=this.layout.getSpan(t,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}fromArray(e){if(this.layout)return this.layout.fromArray(e)}}function I(e){return 0>e&&(e+=4294967296),e}Co.VariantLayout=M;class B extends r{constructor(e,t,n){if(!(e instanceof c||e instanceof u))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof t&&void 0===n&&(n=t,t=!1),4<e.span)throw new RangeError("word cannot exceed 32 bits");super(e.span,n),this.word=e,this.msb=!!t,this.fields=[];let r=0;this.Ce=function(e){return r=I(e),this},this.Se=function(){return r}}decode(e,t=0){const n=this.makeDestinationObject(),r=this.word.decode(e,t);this.Ce(r);for(const i of this.fields)void 0!==i.property&&(n[i.property]=i.decode(e));return n}encode(e,t,n=0){const r=this.word.decode(t,n);this.Ce(r);for(const i of this.fields)if(void 0!==i.property){const t=e[i.property];void 0!==t&&i.encode(t)}return this.word.encode(this.Se(),t,n)}addField(e,t){const n=new N(this,e,t);return this.fields.push(n),n}addBoolean(e){const t=new R(this,e);return this.fields.push(t),t}fieldFor(e){if("string"!=typeof e)throw new TypeError("property must be string");for(const t of this.fields)if(t.property===e)return t}}Co.BitStructure=B;class N{constructor(e,t,n){if(!(e instanceof B))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(t)||0>=t)throw new TypeError("bits must be positive integer");const r=8*e.span,i=e.fields.reduce((e,t)=>e+t.bits,0);if(t+i>r)throw new Error("bits too long for span remainder ("+(r-i)+" of "+r+" remain)");this.container=e,this.bits=t,this.valueMask=(1<<t)-1,32===t&&(this.valueMask=4294967295),this.start=i,this.container.msb&&(this.start=r-i-t),this.wordMask=I(this.valueMask<<this.start),this.property=n}decode(e,t){return I(this.container.Se()&this.wordMask)>>>this.start}encode(e){if("number"!=typeof e||!Number.isInteger(e)||e!==I(e&this.valueMask))throw new TypeError(i("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const t=this.container.Se(),n=I(e<<this.start);this.container.Ce(I(t&~this.wordMask)|n)}}Co.BitField=N;class R extends N{constructor(e,t){super(e,1,t)}decode(e,t){return!!super.decode(e,t)}encode(e){"boolean"==typeof e&&(e=+e),super.encode(e)}}Co.Boolean=R;class L extends r{constructor(e,t){if(!(e instanceof o&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let n=-1;e instanceof o||(n=e),super(n,t),this.length=e}getSpan(e,t){let n=this.span;return 0>n&&(n=this.length.decode(e,t)),n}decode(e,t=0){let r=this.span;return 0>r&&(r=this.length.decode(e,t)),n(e).slice(t,t+r)}encode(e,t,r){let s=this.length;if(this.length instanceof o&&(s=e.length),!(e instanceof Uint8Array&&s===e.length))throw new TypeError(i("Blob.encode",this)+" requires (length "+s+") Uint8Array as src");if(r+s>t.length)throw new RangeError("encoding overruns Uint8Array");const a=n(e);return n(t).write(a.toString("hex"),r,s,"hex"),this.length instanceof o&&this.length.encode(s,t,r),s}}Co.Blob=L;class D extends r{constructor(e){super(-1,e)}getSpan(e,n=0){t(e);let r=n;for(;r<e.length&&0!==e[r];)r+=1;return 1+r-n}decode(e,t=0){const r=this.getSpan(e,t);return n(e).slice(t,t+r-1).toString("utf-8")}encode(t,r,i=0){"string"!=typeof t&&(t=String(t));const o=e.Buffer.from(t,"utf8"),s=o.length;if(i+s>r.length)throw new RangeError("encoding overruns Buffer");const a=n(r);return o.copy(a,i),a[i+s]=0,s+1}}Co.CString=D;class F extends r{constructor(e,t){if("string"==typeof e&&void 0===t&&(t=e,e=void 0),void 0===e)e=-1;else if(!Number.isInteger(e))throw new TypeError("maxSpan must be an integer");super(-1,t),this.maxSpan=e}getSpan(e,n=0){return t(e),e.length-n}decode(e,t=0){const r=this.getSpan(e,t);if(0<=this.maxSpan&&this.maxSpan<r)throw new RangeError("text length exceeds maxSpan");return n(e).slice(t,t+r).toString("utf-8")}encode(t,r,i=0){"string"!=typeof t&&(t=String(t));const o=e.Buffer.from(t,"utf8"),s=o.length;if(0<=this.maxSpan&&this.maxSpan<s)throw new RangeError("text length exceeds maxSpan");if(i+s>r.length)throw new RangeError("encoding overruns Buffer");return o.copy(n(r),i),s}}Co.UTF8=F;class O extends r{constructor(e,t){super(0,t),this.value=e}decode(e,t){return this.value}encode(e,t,n){return 0}}return Co.Constant=O,Co.greedy=(e,t)=>new s(e,t),Co.offset=(e,t,n)=>new a(e,t,n),Co.u8=e=>new c(1,e),Co.u16=e=>new c(2,e),Co.u24=e=>new c(3,e),Co.u32=e=>new c(4,e),Co.u40=e=>new c(5,e),Co.u48=e=>new c(6,e),Co.nu64=e=>new m(e),Co.u16be=e=>new u(2,e),Co.u24be=e=>new u(3,e),Co.u32be=e=>new u(4,e),Co.u40be=e=>new u(5,e),Co.u48be=e=>new u(6,e),Co.nu64be=e=>new g(e),Co.s8=e=>new l(1,e),Co.s16=e=>new l(2,e),Co.s24=e=>new l(3,e),Co.s32=e=>new l(4,e),Co.s40=e=>new l(5,e),Co.s48=e=>new l(6,e),Co.ns64=e=>new b(e),Co.s16be=e=>new f(2,e),Co.s24be=e=>new f(3,e),Co.s32be=e=>new f(4,e),Co.s40be=e=>new f(5,e),Co.s48be=e=>new f(6,e),Co.ns64be=e=>new w(e),Co.f32=e=>new y(e),Co.f32be=e=>new v(e),Co.f64=e=>new A(e),Co.f64be=e=>new k(e),Co.struct=(e,t,n)=>new E(e,t,n),Co.bits=(e,t,n)=>new B(e,t,n),Co.seq=(e,t,n)=>new x(e,t,n),Co.union=(e,t,n)=>new T(e,t,n),Co.unionLayoutDiscriminator=(e,t)=>new S(e,t),Co.blob=(e,t)=>new L(e,t),Co.cstr=e=>new D(e),Co.utf8=(e,t)=>new F(e,t),Co.constant=(e,t)=>new O(e,t),Co}(),To=1,Mo=2,Io=3,Bo=4,No=5,Ro=6,Lo=7,Do=8,Fo=9,Oo=10,Po=-32700,Uo=-32603,qo=-32602,Ho=-32601,zo=-32600,jo=-32016,Vo=-32015,Go=-32014,Jo=-32013,Wo=-32012,Ko=-32011,Yo=-32010,Xo=-32009,Qo=-32008,Zo=-32007,$o=-32006,_o=-32005,es=-32004,ts=-32003,ns=-32002,rs=-32001,is=28e5,os=2800001,ss=2800002,as=2800003,cs=2800004,us=2800005,ls=2800006,fs=2800007,ds=2800008,hs=2800009,ps=2800010,ms=2800011,gs=323e4,bs=32300001,ws=3230002,ys=3230003,vs=3230004,As=361e4,ks=3610001,xs=3610002,Es=3610003,Cs=3610004,Ss=3610005,Ts=3610006,Ms=3610007,Is=3611e3,Bs=3704e3,Ns=3704001,Rs=3704002,Ls=3704003,Ds=3704004,Fs=4128e3,Os=4128001,Ps=4128002,Us=4615e3,qs=4615001,Hs=4615002,zs=4615003,js=4615004,Vs=4615005,Gs=4615006,Js=4615007,Ws=4615008,Ks=4615009,Ys=4615010,Xs=4615011,Qs=4615012,Zs=4615013,$s=4615014,_s=4615015,ea=4615016,ta=4615017,na=4615018,ra=4615019,ia=4615020,oa=4615021,sa=4615022,aa=4615023,ca=4615024,ua=4615025,la=4615026,fa=4615027,da=4615028,ha=4615029,pa=4615030,ma=4615031,ga=4615032,ba=4615033,wa=4615034,ya=4615035,va=4615036,Aa=4615037,ka=4615038,xa=4615039,Ea=4615040,Ca=4615041,Sa=4615042,Ta=4615043,Ma=4615044,Ia=4615045,Ba=4615046,Na=4615047,Ra=4615048,La=4615049,Da=4615050,Fa=4615051,Oa=4615052,Pa=4615053,Ua=4615054,qa=5508e3,Ha=5508001,za=5508002,ja=5508003,Va=5508004,Ga=5508005,Ja=5508006,Wa=5508007,Ka=5508008,Ya=5508009,Xa=5508010,Qa=5508011,Za=5663e3,$a=5663001,_a=5663002,ec=5663003,tc=5663004,nc=5663005,rc=5663006,ic=5663007,oc=5663008,sc=5663009,ac=5663010,cc=5663011,uc=5663012,lc=5663013,fc=5663014,dc=5663015,hc=5663016,pc=5663017,mc=5663018,gc=5663019,bc=5663020,wc=705e4,yc=7050001,vc=7050002,Ac=7050003,kc=7050004,xc=7050005,Ec=7050006,Cc=7050007,Sc=7050008,Tc=7050009,Mc=7050010,Ic=7050011,Bc=7050012,Nc=7050013,Rc=7050014,Lc=7050015,Dc=7050016,Fc=7050017,Oc=7050018,Pc=7050019,Uc=7050020,qc=7050021,Hc=7050022,zc=7050023,jc=7050024,Vc=7050025,Gc=7050026,Jc=7050027,Wc=7050028,Kc=7050029,Yc=7050030,Xc=7050031,Qc=7050032,Zc=7050033,$c=7050034,_c=7050035,eu=7050036,tu=8078e3,nu=8078001,ru=8078002,iu=8078003,ou=8078004,su=8078005,au=8078006,cu=8078007,uu=8078008,lu=8078009,fu=8078010,du=8078011,hu=8078012,pu=8078013,mu=8078014,gu=8078015,bu=8078016,wu=8078017,yu=8078018,vu=8078019,Au=8078020,ku=8078021,xu=8078022,Eu=81e5,Cu=8100001,Su=8100002,Tu=8100003,Mu=819e4,Iu=8190001,Bu=8190002,Nu=8190003,Ru=8190004,Lu=99e5,Du=9900001,Fu=9900002,Ou=9900003,Pu=9900004;function Uu(e){if(Array.isArray(e)){return"%5B"+e.map(Uu).join("%2C%20")+"%5D"}return"bigint"==typeof e?`${e}n`:encodeURIComponent(String(null!=e&&null===Object.getPrototypeOf(e)?{...e}:e))}function qu([e,t]){return`${e}=${Uu(t)}`}var Hu={[gs]:"Account not found at address: $address",[vs]:"Not all accounts were decoded. Encoded accounts found at addresses: $addresses.",[ys]:"Expected decoded account at address: $address",[ws]:"Failed to decode account data at address: $address",[bs]:"Accounts not found at addresses: $addresses",[hs]:"Unable to find a viable program address bump seed.",[ss]:"$putativeAddress is not a base58-encoded address.",[is]:"Expected base58 encoded address to decode to a byte array of length 32. Actual length: $actualLength.",[as]:"The `CryptoKey` must be an `Ed25519` public key.",[ms]:"$putativeOffCurveAddress is not a base58-encoded off-curve address.",[ds]:"Invalid seeds; point must fall off the Ed25519 curve.",[cs]:"Expected given program derived address to have the following format: [Address, ProgramDerivedAddressBump].",[ls]:"A maximum of $maxSeeds seeds, including the bump seed, may be supplied when creating an address. Received: $actual.",[fs]:"The seed at index $index with length $actual exceeds the maximum length of $maxSeedLength bytes.",[us]:"Expected program derived address bump to be in the range [0, 255], got: $bump.",[ps]:"Program address cannot end with PDA marker.",[os]:"Expected base58-encoded address string of length in the range [32, 44]. Actual length: $actualLength.",[Bo]:"Expected base58-encoded blockash string of length in the range [32, 44]. Actual length: $actualLength.",[To]:"The network has progressed past the last block for which this transaction could have been committed.",[tu]:"Codec [$codecDescription] cannot decode empty byte arrays.",[xu]:"Enum codec cannot use lexical values [$stringValues] as discriminators. Either remove all lexical values or set `useValuesAsDiscriminators` to `false`.",[Au]:"Sentinel [$hexSentinel] must not be present in encoded bytes [$hexEncodedBytes].",[su]:"Encoder and decoder must have the same fixed size, got [$encoderFixedSize] and [$decoderFixedSize].",[au]:"Encoder and decoder must have the same max size, got [$encoderMaxSize] and [$decoderMaxSize].",[ou]:"Encoder and decoder must either both be fixed-size or variable-size.",[uu]:"Enum discriminator out of range. Expected a number in [$formattedValidDiscriminators], got $discriminator.",[ru]:"Expected a fixed-size codec, got a variable-size one.",[pu]:"Codec [$codecDescription] expected a positive byte length, got $bytesLength.",[iu]:"Expected a variable-size codec, got a fixed-size one.",[vu]:"Codec [$codecDescription] expected zero-value [$hexZeroValue] to have the same size as the provided fixed-size item [$expectedSize bytes].",[nu]:"Codec [$codecDescription] expected $expected bytes, got $bytesLength.",[yu]:"Expected byte array constant [$hexConstant] to be present in data [$hexData] at offset [$offset].",[lu]:"Invalid discriminated union variant. Expected one of [$variants], got $value.",[fu]:"Invalid enum variant. Expected one of [$stringValues] or a number in [$formattedNumericalValues], got $variant.",[gu]:"Invalid literal union variant. Expected one of [$variants], got $value.",[cu]:"Expected [$codecDescription] to have $expected items, got $actual.",[hu]:"Invalid value $value for base $base with alphabet $alphabet.",[bu]:"Literal union discriminator out of range. Expected a number between $minRange and $maxRange, got $discriminator.",[du]:"Codec [$codecDescription] expected number to be in the range [$min, $max], got $value.",[mu]:"Codec [$codecDescription] expected offset to be in the range [0, $bytesLength], got $offset.",[ku]:"Expected sentinel [$hexSentinel] to be present in decoded bytes [$hexDecodedBytes].",[wu]:"Union variant out of range. Expected an index between $minRange and $maxRange, got $variant.",[Is]:"No random values implementation could be found.",[Ks]:"instruction requires an uninitialized account",[aa]:"instruction tries to borrow reference for an account which is already borrowed",[ca]:"instruction left account with an outstanding borrowed reference",[oa]:"program other than the account's owner changed the size of the account data",[Vs]:"account data too small for instruction",[sa]:"instruction expected an executable account",[Ba]:"An account does not have enough lamports to be rent-exempt",[Ra]:"Program arithmetic overflowed",[Ia]:"Failed to serialize or deserialize account data: $encodedData",[Ua]:"Builtin programs must consume compute units",[ga]:"Cross-program invocation call depth too deep",[ka]:"Computational budget exceeded",[la]:"custom program error: #$code",[ta]:"instruction contains duplicate accounts",[ua]:"instruction modifications of multiply-passed account differ",[pa]:"executable accounts must be rent exempt",[da]:"instruction changed executable accounts data",[ha]:"instruction changed the balance of an executable account",[na]:"instruction changed executable bit of an account",[$s]:"instruction modified data of an account it does not own",[Zs]:"instruction spent from the balance of an account it does not own",[qs]:"generic instruction error",[Da]:"Provided owner is not allowed",[Ta]:"Account is immutable",[Ma]:"Incorrect authority provided",[Js]:"incorrect program id for instruction",[Gs]:"insufficient funds for instruction",[js]:"invalid account data for instruction",[Na]:"Invalid account owner",[Hs]:"invalid program argument",[fa]:"program returned invalid error code",[zs]:"invalid instruction data",[Aa]:"Failed to reallocate account data",[va]:"Provided seeds do not result in a valid address",[Fa]:"Accounts data allocations exceeded the maximum allowed per transaction",[Oa]:"Max accounts exceeded",[Pa]:"Max instruction trace length exceeded",[ya]:"Length of the seed is too long for address generation",[ba]:"An account required by the instruction is missing",[Ws]:"missing required signature for instruction",[Qs]:"instruction illegally modified the program id of an account",[ia]:"insufficient account keys for instruction",[xa]:"Cross-program invocation with unauthorized signer or writable account",[Ea]:"Failed to create program execution environment",[Sa]:"Program failed to compile",[Ca]:"Program failed to complete",[ea]:"instruction modified data of a read-only account",[_s]:"instruction changed the balance of a read-only account",[wa]:"Cross-program invocation reentrancy not allowed for this instruction",[ra]:"instruction modified rent epoch of an account",[Xs]:"sum of account balances before and after instruction do not match",[Ys]:"instruction requires an initialized account",[Us]:"",[ma]:"Unsupported program id",[La]:"Unsupported sysvar",[Fs]:"The instruction does not have any accounts.",[Os]:"The instruction does not have any data.",[Ps]:"Expected instruction to have progress address $expectedProgramAddress, got $actualProgramAddress.",[No]:"Expected base58 encoded blockhash to decode to a byte array of length 32. Actual length: $actualLength.",[Mo]:"The nonce `$expectedNonceValue` is no longer valid. It has advanced to `$actualNonceValue`",[Fu]:"Invariant violation: Found no abortable iterable cache entry for key `$cacheKey`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Pu]:"Invariant violation: This data publisher does not publish to the channel named `$channelName`. Supported channels include $supportedChannelNames.",[Du]:"Invariant violation: WebSocket message iterator state is corrupt; iterated without first resolving existing message promise. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Lu]:"Invariant violation: WebSocket message iterator is missing state storage. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Ou]:"Invariant violation: Switch statement non-exhaustive. Received unexpected value `$unexpectedValue`. It should be impossible to hit this error; please file an issue at https://sola.na/web3invariant",[Uo]:"JSON-RPC error: Internal JSON-RPC error ($__serverMessage)",[qo]:"JSON-RPC error: Invalid method parameter(s) ($__serverMessage)",[zo]:"JSON-RPC error: The JSON sent is not a valid `Request` object ($__serverMessage)",[Ho]:"JSON-RPC error: The method does not exist / is not available ($__serverMessage)",[Po]:"JSON-RPC error: An error occurred on the server while parsing the JSON text ($__serverMessage)",[Wo]:"$__serverMessage",[rs]:"$__serverMessage",[es]:"$__serverMessage",[Go]:"$__serverMessage",[Yo]:"$__serverMessage",[Xo]:"$__serverMessage",[jo]:"Minimum context slot has not been reached",[_o]:"Node is unhealthy; behind by $numSlotsBehind slots",[Qo]:"No snapshot",[ns]:"Transaction simulation failed",[Zo]:"$__serverMessage",[Ko]:"Transaction history is not available from this node",[$o]:"$__serverMessage",[Jo]:"Transaction signature length mismatch",[ts]:"Transaction signature verification failure",[Vo]:"$__serverMessage",[Bs]:"Key pair bytes must be of length 64, got $byteLength.",[Ns]:"Expected private key bytes with length 32. Actual length: $actualLength.",[Rs]:"Expected base58-encoded signature to decode to a byte array of length 64. Actual length: $actualLength.",[Ds]:"The provided private key does not match the provided public key.",[Ls]:"Expected base58-encoded signature string of length in the range [64, 88]. Actual length: $actualLength.",[Ro]:"Lamports value must be in the range [0, 2e64-1]",[Lo]:"`$value` cannot be parsed as a `BigInt`",[Oo]:"$message",[Do]:"`$value` cannot be parsed as a `Number`",[Io]:"No nonce account could be found at address `$nonceAccountAddress`",[Mu]:"The notification name must end in 'Notifications' and the API must supply a subscription plan creator function for the notification '$notificationName'.",[Bu]:"WebSocket was closed before payload could be added to the send buffer",[Nu]:"WebSocket connection closed",[Ru]:"WebSocket failed to connect",[Iu]:"Failed to obtain a subscription id from the server",[Tu]:"Could not find an API plan for RPC method: `$method`",[Eu]:"The $argumentLabel argument to the `$methodName` RPC method$optionalPathLabel was `$value`. This number is unsafe for use with the Solana JSON-RPC because it exceeds `Number.MAX_SAFE_INTEGER`.",[Su]:"HTTP error ($statusCode): $message",[Cu]:"HTTP header(s) forbidden: $headers. Learn more at https://developer.mozilla.org/en-US/docs/Glossary/Forbidden_header_name.",[qa]:"Multiple distinct signers were identified for address `$address`. Please ensure that you are using the same signer instance for each address.",[Ha]:"The provided value does not implement the `KeyPairSigner` interface",[ja]:"The provided value does not implement the `MessageModifyingSigner` interface",[Va]:"The provided value does not implement the `MessagePartialSigner` interface",[za]:"The provided value does not implement any of the `MessageSigner` interfaces",[Ja]:"The provided value does not implement the `TransactionModifyingSigner` interface",[Wa]:"The provided value does not implement the `TransactionPartialSigner` interface",[Ka]:"The provided value does not implement the `TransactionSendingSigner` interface",[Ga]:"The provided value does not implement any of the `TransactionSigner` interfaces",[Ya]:"More than one `TransactionSendingSigner` was identified.",[Xa]:"No `TransactionSendingSigner` was identified. Please provide a valid `TransactionWithSingleSendingSigner` transaction.",[Qa]:"Wallet account signers do not support signing multiple messages/transactions in a single operation",[Ms]:"Cannot export a non-extractable key.",[ks]:"No digest implementation could be found.",[As]:"Cryptographic operations are only allowed in secure browser contexts. Read more here: https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts.",[xs]:"This runtime does not support the generation of Ed25519 key pairs.\n\nInstall @solana/webcrypto-ed25519-polyfill and call its `install` function before generating keys in environments that do not support Ed25519.\n\nFor a list of runtimes that currently support Ed25519 operations, visit https://github.com/WICG/webcrypto-secure-curves/issues/20.",[Es]:"No signature verification implementation could be found.",[Cs]:"No key generation implementation could be found.",[Ss]:"No signing implementation could be found.",[Ts]:"No key export implementation could be found.",[Fo]:"Timestamp value must be in the range [-(2n ** 63n), (2n ** 63n) - 1]. `$value` given",[Dc]:"Transaction processing left an account with an outstanding borrowed reference",[yc]:"Account in use",[vc]:"Account loaded twice",[Ac]:"Attempt to debit an account but found no record of a prior credit.",[zc]:"Transaction loads an address table account that doesn't exist",[Cc]:"This transaction has already been processed",[Sc]:"Blockhash not found",[Tc]:"Loader call chain is too deep",[Lc]:"Transactions are currently disabled due to cluster maintenance",[Yc]:"Transaction contains a duplicate instruction ($index) that is not allowed",[xc]:"Insufficient funds for fee",[Xc]:"Transaction results in an account ($accountIndex) with insufficient funds for rent",[Ec]:"This account may not be used to pay transaction fees",[Ic]:"Transaction contains an invalid account reference",[Vc]:"Transaction loads an address table account with invalid data",[Gc]:"Transaction address table lookup uses an invalid index",[jc]:"Transaction loads an address table account with an invalid owner",[Zc]:"LoadedAccountsDataSizeLimit set for transaction must be greater than 0.",[Nc]:"This program may not be used for executing instructions",[Jc]:"Transaction leaves an account with a lower balance than rent-exempt minimum",[Pc]:"Transaction loads a writable account that cannot be written",[Qc]:"Transaction exceeded max loaded accounts data size cap",[Mc]:"Transaction requires a fee but has no signature present",[kc]:"Attempt to load a program that does not exist",[_c]:"Execution of the program referenced by account at index $accountIndex is temporarily restricted.",[$c]:"ResanitizationNeeded",[Rc]:"Transaction failed to sanitize accounts offsets correctly",[Bc]:"Transaction did not pass signature verification",[Hc]:"Transaction locked too many accounts",[eu]:"Sum of account balances before and after transaction do not match",[wc]:"The transaction failed with the error `$errorName`",[Oc]:"Transaction version is unsupported",[qc]:"Transaction would exceed account data limit within the block",[Kc]:"Transaction would exceed total account data limit",[Uc]:"Transaction would exceed max account limit within the block",[Fc]:"Transaction would exceed max Block Cost Limit",[Wc]:"Transaction would exceed max Vote Cost Limit",[dc]:"Attempted to sign a transaction with an address that is not a signer for it",[ac]:"Transaction is missing an address at index: $index.",[hc]:"Transaction has no expected signers therefore it cannot be encoded",[bc]:"Transaction size $transactionSize exceeds limit of $transactionSizeLimit bytes",[_a]:"Transaction does not have a blockhash lifetime",[ec]:"Transaction is not a durable nonce transaction",[nc]:"Contents of these address lookup tables unknown: $lookupTableAddresses",[rc]:"Lookup of address at index $highestRequestedIndex failed for lookup table `$lookupTableAddress`. Highest known index is $highestKnownIndex. The lookup table may have been extended since its contents were retrieved",[oc]:"No fee payer set in CompiledTransaction",[ic]:"Could not find program address at index $index",[mc]:"Failed to estimate the compute unit consumption for this transaction message. This is likely because simulating the transaction failed. Inspect the `cause` property of this error to learn more",[gc]:"Transaction failed when it was simulated in order to estimate the compute unit consumption. The compute unit estimate provided is for a transaction that failed when simulated and may not be representative of the compute units this transaction would consume if successful. Inspect the `cause` property of this error to learn more",[cc]:"Transaction is missing a fee payer.",[uc]:"Could not determine this transaction's signature. Make sure that the transaction has been signed by its fee payer.",[fc]:"Transaction first instruction is not advance nonce account instruction.",[lc]:"Transaction with no instructions cannot be durable nonce transaction.",[Za]:"This transaction includes an address (`$programAddress`) which is both invoked and set as the fee payer. Program addresses may not pay fees",[$a]:"This transaction includes an address (`$programAddress`) which is both invoked and marked writable. Program addresses may not be writable",[pc]:"The transaction message expected the transaction to have $signerAddressesLength signatures, got $signaturesLength.",[sc]:"Transaction is missing signatures for addresses: $addresses.",[tc]:"Transaction version must be in the range [0, 127]. `$actualVersion` given"},zu="i",ju="t";function Vu(e,t={}){if("production"!==process.env.NODE_ENV)return function(e,t={}){const n=Hu[e];if(0===n.length)return"";let r;function i(e){if(2===r[ju]){const i=n.slice(r[zu]+1,e);o.push(i in t?`${t[i]}`:`$${i}`)}else 1===r[ju]&&o.push(n.slice(r[zu],e))}const o=[];return n.split("").forEach((e,t)=>{if(0===t)return void(r={[zu]:0,[ju]:"\\"===n[0]?0:"$"===n[0]?2:1});let o;switch(r[ju]){case 0:o={[zu]:t,[ju]:1};break;case 1:"\\"===e?o={[zu]:t,[ju]:0}:"$"===e&&(o={[zu]:t,[ju]:2});break;case 2:"\\"===e?o={[zu]:t,[ju]:0}:"$"===e?o={[zu]:t,[ju]:2}:e.match(/\w/)||(o={[zu]:t,[ju]:1})}o&&(r!==o&&i(t),r=o)}),i(),o.join("")}(e,t);{let n=`Solana error #${e}; Decode this error by running \`npx @solana/errors decode -- ${e}`;return Object.keys(t).length&&(n+=` '${function(e){const t=Object.entries(e).map(qu).join("&");return btoa(t)}(t)}'`),`${n}\``}}var Gu=class extends Error{cause=this.cause;context;constructor(...[e,t]){let n,r;if(t){const{cause:e,...i}=t;e&&(r={cause:e}),Object.keys(i).length>0&&(n=i)}super(Vu(e,n),r),this.context={Te:e,...n},this.name="SolanaError"}};function Ju(e){return"fixedSize"in e&&"number"==typeof e.fixedSize}function Wu(e){return 1!==e?.endian}function Ku(e){return t={fixedSize:e.size,write(t,n,r){e.range&&function(e,t,n,r){if(r<t||r>n)throw new Gu(du,{codecDescription:e,max:n,min:t,value:r})}(e.name,e.range[0],e.range[1],t);const i=new ArrayBuffer(e.size);return e.set(new DataView(i),t,Wu(e.config)),n.set(new Uint8Array(i),r),r+e.size}},Object.freeze({...t,encode:e=>{const n=new Uint8Array(function(e,t){return"fixedSize"in t?t.fixedSize:t.getSizeFromValue(e)}(e,t));return t.write(e,n,0),n}});var t}function Yu(e){return t={fixedSize:e.size,read(t,n=0){!function(e,t,n=0){if(t.length-n<=0)throw new Gu(tu,{codecDescription:e})}(e.name,t,n),function(e,t,n,r=0){const i=n.length-r;if(i<t)throw new Gu(nu,{bytesLength:i,codecDescription:e,expected:t})}(e.name,e.size,t,n);const r=new DataView(function(e,t,n){const r=e.byteOffset+(t??0),i=n??e.byteLength;return e.buffer.slice(r,r+i)}(t,n,e.size));return[e.get(r,Wu(e.config)),n+e.size]}},Object.freeze({...t,decode:(e,n=0)=>t.read(e,n)[0]});var t}var Xu=(e={})=>function(e,t){if(Ju(e)!==Ju(t))throw new Gu(ou);if(Ju(e)&&Ju(t)&&e.fixedSize!==t.fixedSize)throw new Gu(su,{decoderFixedSize:t.fixedSize,encoderFixedSize:e.fixedSize});if(!Ju(e)&&!Ju(t)&&e.maxSize!==t.maxSize)throw new Gu(au,{decoderMaxSize:t.maxSize,encoderMaxSize:e.maxSize});return{...t,...e,decode:t.decode,encode:e.encode,read:t.read,write:e.write}}(((e={})=>Ku({config:e,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(e,t,n)=>e.setBigUint64(0,BigInt(t),n),size:8}))(e),((e={})=>Yu({config:e,get:(e,t)=>e.getBigUint64(0,t),name:"u64",size:8}))(e));class Qu extends TypeError{constructor(e,t){let n;const{message:r,explanation:i,...o}=e,{path:s}=e,a=0===s.length?r:`At path: ${s.join(".")} -- ${r}`;super(i??a),null!=i&&(this.cause=a),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}function Zu(e){return"object"==typeof e&&null!=e}function $u(e){return Zu(e)&&!Array.isArray(e)}function _u(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function el(e,t,n,r){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:i,branch:o}=t,{type:s}=n,{refinement:a,message:c=`Expected a value of type \`${s}\`${a?` with refinement \`${a}\``:""}, but received: \`${_u(r)}\``}=e;return{value:r,type:s,refinement:a,key:i[i.length-1],path:i,branch:o,...e,message:c}}function*tl(e,t,n,r){var i;Zu(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]);for(const o of e){const e=el(o,t,n,r);e&&(yield e)}}function*nl(e,t,n={}){const{path:r=[],branch:i=[e],coerce:o=!1,mask:s=!1}=n,a={path:r,branch:i,mask:s};o&&(e=t.coercer(e,a));let c="valid";for(const u of t.validator(e,a))u.explanation=n.message,c="not_valid",yield[u,void 0];for(let[u,l,f]of t.entries(e,a)){const t=nl(l,f,{path:void 0===u?r:[...r,u],branch:void 0===u?i:[...i,l],coerce:o,mask:s,message:n.message});for(const n of t)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):o&&(l=n[1],void 0===u?e=l:e instanceof Map?e.set(u,l):e instanceof Set?e.add(l):Zu(e)&&(void 0!==l||u in e)&&(e[u]=l))}if("not_valid"!==c)for(const u of t.refiner(e,a))u.explanation=n.message,c="not_refined",yield[u,void 0];"valid"===c&&(yield[void 0,e])}let rl=class{constructor(e){const{type:t,schema:n,validator:r,refiner:i,coercer:o=e=>e,entries:s=function*(){}}=e;this.type=t,this.schema=n,this.entries=s,this.coercer=o,this.validator=r?(e,t)=>tl(r(e,t),t,this,e):()=>[],this.refiner=i?(e,t)=>tl(i(e,t),t,this,e):()=>[]}assert(e,t){return function(e,t,n){const r=sl(e,t,{message:n});if(r[0])throw r[0]}(e,this,t)}create(e,t){return il(e,this,t)}is(e){return ol(e,this)}mask(e,t){return function(e,t,n){const r=sl(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}(e,this,t)}validate(e,t={}){return sl(e,this,t)}};function il(e,t,n){const r=sl(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function ol(e,t){return!sl(e,t)[0]}function sl(e,t,n={}){const r=nl(e,t,n),i=function(e){const{done:t,value:n}=e.next();return t?void 0:n}(r);if(i[0]){return[new Qu(i[0],function*(){for(const e of r)e[0]&&(yield e[0])}),void 0]}return[void 0,i[1]]}function al(e,t){return new rl({type:e,schema:null,validator:t})}function cl(e){return new rl({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[n,r]of t.entries())yield[n,r,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${_u(e)}`})}function ul(){return al("boolean",e=>"boolean"==typeof e)}function ll(e){return al("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${_u(t)}`)}function fl(e){const t=_u(e),n=typeof e;return new rl({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${_u(n)}`})}function dl(e){return new rl({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function hl(){return al("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${_u(e)}`)}function pl(e){return new rl({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function ml(e,t){return new rl({type:"record",schema:null,*entries(n){if(Zu(n))for(const r in n){const i=n[r];yield[r,r,e],yield[r,i,t]}},validator:e=>$u(e)||`Expected an object, but received: ${_u(e)}`,coercer:e=>$u(e)?{...e}:e})}function gl(){return al("string",e=>"string"==typeof e||`Expected a string, but received: ${_u(e)}`)}function bl(e){const t=al("never",()=>!1);return new rl({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(e.length,n.length);for(let i=0;i<r;i++)yield[i,n[i],e[i]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${_u(e)}`,coercer:e=>Array.isArray(e)?e.slice():e})}function wl(e){const t=Object.keys(e);return new rl({type:"type",schema:e,*entries(n){if(Zu(n))for(const r of t)yield[r,n[r],e[r]]},validator:e=>$u(e)||`Expected an object, but received: ${_u(e)}`,coercer:e=>$u(e)?{...e}:e})}function yl(e){const t=e.map(e=>e.type).join(" | ");return new rl({type:"union",schema:null,coercer(t,n){for(const r of e){const[e,i]=r.validate(t,{coerce:!0,mask:n.mask});if(!e)return i}return t},validator(n,r){const i=[];for(const t of e){const[...e]=nl(n,t,r),[o]=e;if(!o[0])return[];for(const[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${_u(n)}`,...i]}})}function vl(){return al("unknown",()=>!0)}function Al(e,t,n){return new rl({...e,coercer:(r,i)=>ol(r,t)?e.coercer(n(r,i),i):e.coercer(r,i)})}var kl,xl=new Uint8Array(16);function El(){if(!kl&&!(kl="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return kl(xl)}const Cl=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Sl(e){return"string"==typeof e&&Cl.test(e)}for(var Tl,Ml,Il=[],Bl=0;Bl<256;++Bl)Il.push((Bl+256).toString(16).substr(1));function Nl(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(Il[e[t+0]]+Il[e[t+1]]+Il[e[t+2]]+Il[e[t+3]]+"-"+Il[e[t+4]]+Il[e[t+5]]+"-"+Il[e[t+6]]+Il[e[t+7]]+"-"+Il[e[t+8]]+Il[e[t+9]]+"-"+Il[e[t+10]]+Il[e[t+11]]+Il[e[t+12]]+Il[e[t+13]]+Il[e[t+14]]+Il[e[t+15]]).toLowerCase();if(!Sl(n))throw TypeError("Stringified UUID is invalid");return n}var Rl=0,Ll=0;function Dl(e){if(!Sl(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}function Fl(e,t,n){function r(e,r,i,o){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}(e)),"string"==typeof r&&(r=Dl(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=n(s))[6]=15&s[6]|t,s[8]=63&s[8]|128,i){o=o||0;for(var a=0;a<16;++a)i[o+a]=s[a];return i}return Nl(s)}try{r.name=e}catch(i){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function Ol(e){return 14+(e+64>>>9<<4)+1}function Pl(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function Ul(e,t,n,r,i,o){return Pl((s=Pl(Pl(t,e),Pl(r,o)))<<(a=i)|s>>>32-a,n);var s,a}function ql(e,t,n,r,i,o,s){return Ul(t&n|~t&r,e,t,i,o,s)}function Hl(e,t,n,r,i,o,s){return Ul(t&r|n&~r,e,t,i,o,s)}function zl(e,t,n,r,i,o,s){return Ul(t^n^r,e,t,i,o,s)}function jl(e,t,n,r,i,o,s){return Ul(n^(t|~r),e,t,i,o,s)}var Vl=Fl("v3",48,function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return function(e){for(var t=[],n=32*e.length,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,s=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);t.push(s)}return t}(function(e,t){e[t>>5]|=128<<t%32,e[Ol(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,s=0;s<e.length;s+=16){var a=n,c=r,u=i,l=o;n=ql(n,r,i,o,e[s],7,-680876936),o=ql(o,n,r,i,e[s+1],12,-389564586),i=ql(i,o,n,r,e[s+2],17,606105819),r=ql(r,i,o,n,e[s+3],22,-1044525330),n=ql(n,r,i,o,e[s+4],7,-176418897),o=ql(o,n,r,i,e[s+5],12,1200080426),i=ql(i,o,n,r,e[s+6],17,-1473231341),r=ql(r,i,o,n,e[s+7],22,-45705983),n=ql(n,r,i,o,e[s+8],7,1770035416),o=ql(o,n,r,i,e[s+9],12,-1958414417),i=ql(i,o,n,r,e[s+10],17,-42063),r=ql(r,i,o,n,e[s+11],22,-1990404162),n=ql(n,r,i,o,e[s+12],7,1804603682),o=ql(o,n,r,i,e[s+13],12,-40341101),i=ql(i,o,n,r,e[s+14],17,-1502002290),n=Hl(n,r=ql(r,i,o,n,e[s+15],22,1236535329),i,o,e[s+1],5,-165796510),o=Hl(o,n,r,i,e[s+6],9,-1069501632),i=Hl(i,o,n,r,e[s+11],14,643717713),r=Hl(r,i,o,n,e[s],20,-373897302),n=Hl(n,r,i,o,e[s+5],5,-701558691),o=Hl(o,n,r,i,e[s+10],9,38016083),i=Hl(i,o,n,r,e[s+15],14,-660478335),r=Hl(r,i,o,n,e[s+4],20,-405537848),n=Hl(n,r,i,o,e[s+9],5,568446438),o=Hl(o,n,r,i,e[s+14],9,-1019803690),i=Hl(i,o,n,r,e[s+3],14,-187363961),r=Hl(r,i,o,n,e[s+8],20,1163531501),n=Hl(n,r,i,o,e[s+13],5,-1444681467),o=Hl(o,n,r,i,e[s+2],9,-51403784),i=Hl(i,o,n,r,e[s+7],14,1735328473),n=zl(n,r=Hl(r,i,o,n,e[s+12],20,-1926607734),i,o,e[s+5],4,-378558),o=zl(o,n,r,i,e[s+8],11,-2022574463),i=zl(i,o,n,r,e[s+11],16,1839030562),r=zl(r,i,o,n,e[s+14],23,-35309556),n=zl(n,r,i,o,e[s+1],4,-1530992060),o=zl(o,n,r,i,e[s+4],11,1272893353),i=zl(i,o,n,r,e[s+7],16,-155497632),r=zl(r,i,o,n,e[s+10],23,-1094730640),n=zl(n,r,i,o,e[s+13],4,681279174),o=zl(o,n,r,i,e[s],11,-358537222),i=zl(i,o,n,r,e[s+3],16,-722521979),r=zl(r,i,o,n,e[s+6],23,76029189),n=zl(n,r,i,o,e[s+9],4,-640364487),o=zl(o,n,r,i,e[s+12],11,-421815835),i=zl(i,o,n,r,e[s+15],16,530742520),n=jl(n,r=zl(r,i,o,n,e[s+2],23,-995338651),i,o,e[s],6,-198630844),o=jl(o,n,r,i,e[s+7],10,1126891415),i=jl(i,o,n,r,e[s+14],15,-1416354905),r=jl(r,i,o,n,e[s+5],21,-57434055),n=jl(n,r,i,o,e[s+12],6,1700485571),o=jl(o,n,r,i,e[s+3],10,-1894986606),i=jl(i,o,n,r,e[s+10],15,-1051523),r=jl(r,i,o,n,e[s+1],21,-2054922799),n=jl(n,r,i,o,e[s+8],6,1873313359),o=jl(o,n,r,i,e[s+15],10,-30611744),i=jl(i,o,n,r,e[s+6],15,-1560198380),r=jl(r,i,o,n,e[s+13],21,1309151649),n=jl(n,r,i,o,e[s+4],6,-145523070),o=jl(o,n,r,i,e[s+11],10,-1120210379),i=jl(i,o,n,r,e[s+2],15,718787259),r=jl(r,i,o,n,e[s+9],21,-343485551),n=Pl(n,a),r=Pl(r,c),i=Pl(i,u),o=Pl(o,l)}return[n,r,i,o]}(function(e){if(0===e.length)return[];for(var t=8*e.length,n=new Uint32Array(Ol(t)),r=0;r<t;r+=8)n[r>>5]|=(255&e[r/8])<<r%32;return n}(e),8*e.length))});function Gl(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function Jl(e,t){return e<<t|e>>>32-t}var Wl=Fl("v5",80,function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,s=Math.ceil(o/16),a=new Array(s),c=0;c<s;++c){for(var u=new Uint32Array(16),l=0;l<16;++l)u[l]=e[64*c+4*l]<<24|e[64*c+4*l+1]<<16|e[64*c+4*l+2]<<8|e[64*c+4*l+3];a[c]=u}a[s-1][14]=8*(e.length-1)/Math.pow(2,32),a[s-1][14]=Math.floor(a[s-1][14]),a[s-1][15]=8*(e.length-1)&4294967295;for(var f=0;f<s;++f){for(var d=new Uint32Array(80),h=0;h<16;++h)d[h]=a[f][h];for(var p=16;p<80;++p)d[p]=Jl(d[p-3]^d[p-8]^d[p-14]^d[p-16],1);for(var m=n[0],g=n[1],b=n[2],w=n[3],y=n[4],v=0;v<80;++v){var A=Math.floor(v/20),k=Jl(m,5)+Gl(A,g,b,w)+y+t[A]+d[v]>>>0;y=w,w=b,b=Jl(g,30)>>>0,g=m,m=k}n[0]=n[0]+m>>>0,n[1]=n[1]+g>>>0,n[2]=n[2]+b>>>0,n[3]=n[3]+w>>>0,n[4]=n[4]+y>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]});const Kl=br(Object.freeze(Object.defineProperty({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:Dl,stringify:Nl,v1:function(e,t,n){var r=t&&n||0,i=t||new Array(16),o=(e=e||{}).node||Tl,s=void 0!==e.clockseq?e.clockseq:Ml;if(null==o||null==s){var a=e.random||(e.rng||El)();null==o&&(o=Tl=[1|a[0],a[1],a[2],a[3],a[4],a[5]]),null==s&&(s=Ml=16383&(a[6]<<8|a[7]))}var c=void 0!==e.msecs?e.msecs:Date.now(),u=void 0!==e.nsecs?e.nsecs:Ll+1,l=c-Rl+(u-Ll)/1e4;if(l<0&&void 0===e.clockseq&&(s=s+1&16383),(l<0||c>Rl)&&void 0===e.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Rl=c,Ll=u,Ml=s;var f=(1e4*(268435455&(c+=122192928e5))+u)%4294967296;i[r++]=f>>>24&255,i[r++]=f>>>16&255,i[r++]=f>>>8&255,i[r++]=255&f;var d=c/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=s>>>8|128,i[r++]=255&s;for(var h=0;h<6;++h)i[r+h]=o[h];return t||Nl(i)},v3:Vl,v4:function(e,t,n){var r=(e=e||{}).random||(e.rng||El)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return Nl(r)},v5:Wl,validate:Sl,version:function(e){if(!Sl(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}},Symbol.toStringTag,{value:"Module"})));var Yl,Xl,Ql,Zl;!function(){if(Zl)return Ql;Zl=1;const e=Kl.v4,t=function(){if(Xl)return Yl;Xl=1;const e=Kl.v4;return Yl=function(t,n,r,i){if("string"!=typeof t)throw new TypeError(t+" must be a string");const o="number"==typeof(i=i||{}).version?i.version:2;if(1!==o&&2!==o)throw new TypeError(o+" must be 1 or 2");const s={method:t};if(2===o&&(s.jsonrpc="2.0"),n){if("object"!=typeof n&&!Array.isArray(n))throw new TypeError(n+" must be an object, array or omitted");s.params=n}if(void 0===r){const t="function"==typeof i.generator?i.generator:function(){return e()};s.id=t(s,i)}else 2===o&&null===r?i.notificationIdNull&&(s.id=null):s.id=r;return s}}(),n=function(t,r){if(!(this instanceof n))return new n(t,r);r||(r={}),this.options={reviver:void 0!==r.reviver?r.reviver:null,replacer:void 0!==r.replacer?r.replacer:null,generator:void 0!==r.generator?r.generator:function(){return e()},version:void 0!==r.version?r.version:2,notificationIdNull:"boolean"==typeof r.notificationIdNull&&r.notificationIdNull},this.callServer=t};Ql=n,n.prototype.request=function(e,n,r,i){const o=this;let s=null;const a=Array.isArray(e)&&"function"==typeof n;if(1===this.options.version&&a)throw new TypeError("JSON-RPC 1.0 does not support batching");if(a||!a&&e&&"object"==typeof e&&"function"==typeof n)i=n,s=e;else{"function"==typeof r&&(i=r,r=void 0);const o="function"==typeof i;try{s=t(e,n,r,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(u){if(o)return void i(u);throw u}if(!o)return s}let c;try{c=JSON.stringify(s,this.options.replacer)}catch(u){return void i(u)}return this.callServer(c,function(e,t){o.Me(e,t,i)}),s},n.prototype.Me=function(e,t,n){if(e)return void n(e);if(!t)return void n();let r;try{r=JSON.parse(t,this.options.reviver)}catch(i){return void n(i)}if(3!==n.length)n(null,r);else{if(Array.isArray(r)){const e=function(e){return void 0!==e.error},t=function(t){return!e(t)};return void n(null,r.filter(e),r.filter(t))}n(null,r.error,r.result)}}}();var $l,_l={exports:{}};$l||($l=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var a=new i(r,o||e,s),c=n?n+t:t;return e.Be[c]?e.Be[c].fn?e.Be[c]=[e.Be[c],a]:e.Be[c].push(a):(e.Be[c]=a,e.Ne++),e}function s(e,t){0===--e.Ne?e.Be=new r:delete e.Be[t]}function a(){this.Be=new r,this.Ne=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,r,i=[];if(0===this.Ne)return i;for(r in e=this.Be)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},a.prototype.listeners=function(e){var t=n?n+e:e,r=this.Be[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,s=new Array(o);i<o;i++)s[i]=r[i].fn;return s},a.prototype.listenerCount=function(e){var t=n?n+e:e,r=this.Be[t];return r?r.fn?1:r.length:0},a.prototype.emit=function(e,t,r,i,o,s){var a=n?n+e:e;if(!this.Be[a])return!1;var c,u,l=this.Be[a],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,i),!0;case 5:return l.fn.call(l.context,t,r,i,o),!0;case 6:return l.fn.call(l.context,t,r,i,o,s),!0}for(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,h=l.length;for(u=0;u<h;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,i);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}return!0},a.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},a.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},a.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this.Be[o])return this;if(!t)return s(this,o),this;var a=this.Be[o];if(a.fn)a.fn!==t||i&&!a.once||r&&a.context!==r||s(this,o);else{for(var c=0,u=[],l=a.length;c<l;c++)(a[c].fn!==t||i&&!a[c].once||r&&a[c].context!==r)&&u.push(a[c]);u.length?this.Be[o]=1===u.length?u[0]:u:s(this,o)}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this.Be[t]&&s(this,t)):(this.Be=new r,this.Ne=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=n,a.EventEmitter=a,e.exports=a}(_l));const ef=(e,t)=>(e+(e>=0?t:-t)/cf)/t;function tf(e){if(!["compact","recovered","der"].includes(e))throw new Error('Signature format must be "compact", "recovered", or "der"');return e}function nf(e,t){const n={};for(let r of Object.keys(t))n[r]=void 0===e[r]?t[r]:e[r];return Mr(n.lowS,"lowS"),Mr(n.prehash,"prehash"),void 0!==n.format&&tf(n.format),n}class rf extends Error{constructor(e=""){super(e)}}const of={Err:rf,Le:{encode:(e,t)=>{const{Err:n}=of;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(1&t.length)throw new n("tlv.encode: unpadded data");const r=t.length/2,i=Br(r);if(i.length/2&128)throw new n("tlv.encode: long form length too big");const o=r>127?Br(i.length/2|128):"";return Br(e)+o+i+t},decode(e,t){const{Err:n}=of;let r=0;if(e<0||e>256)throw new n("tlv.encode: wrong tag");if(t.length<2||t[r++]!==e)throw new n("tlv.decode: wrong tlv");const i=t[r++];let o=0;if(!!(128&i)){const e=127&i;if(!e)throw new n("tlv.decode(long): indefinite length not supported");if(e>4)throw new n("tlv.decode(long): byte length is too big");const s=t.subarray(r,r+e);if(s.length!==e)throw new n("tlv.decode: length bytes not complete");if(0===s[0])throw new n("tlv.decode(long): zero leftmost byte");for(const t of s)o=o<<8|t;if(r+=e,o<128)throw new n("tlv.decode(long): not minimal encoding")}else o=i;const s=t.subarray(r,r+o);if(s.length!==o)throw new n("tlv.decode: wrong value length");return{v:s,l:t.subarray(r+o)}}},De:{encode(e){const{Err:t}=of;if(e<sf)throw new t("integer: negative integers are not allowed");let n=Br(e);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new t("unexpected DER parsing assertion: unpadded hex");return n},decode(e){const{Err:t}=of;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return Rr(e)}},toSig(e){const{Err:t,De:n,Le:r}=of,i=Or("signature",e),{v:o,l:s}=r.decode(48,i);if(s.length)throw new t("invalid signature: left bytes after parsing");const{v:a,l:c}=r.decode(2,o),{v:u,l:l}=r.decode(2,c);if(l.length)throw new t("invalid signature: left bytes after parsing");return{r:n.decode(a),s:n.decode(u)}},hexFromSig(e){const{Le:t,De:n}=of,r=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,r)}},sf=BigInt(0),af=BigInt(1),cf=BigInt(2),uf=BigInt(3),lf=BigInt(4);function ff(e,t){const{BYTES:n}=e;let r;if("bigint"==typeof t)r=t;else{let o=Or("private key",t);try{r=e.fromBytes(o)}catch(i){throw new Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw new Error("invalid private key: out of range [1..N-1]");return r}function df(e,t={}){const n=Ii("weierstrass",e,t),{Fp:r,Fn:i}=n;let o=n.CURVE;const{h:s,n:a}=o;jr(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});const{endo:c}=t;if(c&&(!r.is0(o.a)||"bigint"!=typeof c.beta||!Array.isArray(c.basises)))throw new Error('invalid endo: expected "beta": bigint and "basises": array');const u=pf(r,i);function l(){if(!r.isOdd)throw new Error("compression is not supported: Field does not have .isOdd()")}const f=t.toBytes||function(e,t,n){const{x:i,y:o}=t.toAffine(),s=r.toBytes(i);if(Mr(n,"isCompressed"),n){l();return Ke(hf(!r.isOdd(o)),s)}return Ke(Uint8Array.of(4),s,r.toBytes(o))},d=t.fromBytes||function(e){Ir(e,void 0,"Point");const{publicKey:t,publicKeyUncompressed:n}=u,i=e.length,o=e[0],s=e.subarray(1);if(i!==t||2!==o&&3!==o){if(i===n&&4===o){const e=r.BYTES,t=r.fromBytes(s.subarray(0,e)),n=r.fromBytes(s.subarray(e,2*e));if(!p(t,n))throw new Error("bad point: is not on curve");return{x:t,y:n}}throw new Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${n}`)}{const e=r.fromBytes(s);if(!r.isValid(e))throw new Error("bad point: is not on curve, wrong x");const t=h(e);let n;try{n=r.sqrt(t)}catch(a){const e=a instanceof Error?": "+a.message:"";throw new Error("bad point: is not on curve, sqrt error"+e)}l();return!(1&~o)!==r.isOdd(n)&&(n=r.neg(n)),{x:e,y:n}}};function h(e){const t=r.sqr(e),n=r.mul(t,e);return r.add(r.add(n,r.mul(e,o.a)),o.b)}function p(e,t){const n=r.sqr(t),i=h(e);return r.eql(n,i)}if(!p(o.Gx,o.Gy))throw new Error("bad curve params: generator point");const m=r.mul(r.pow(o.a,uf),lf),g=r.mul(r.sqr(o.b),BigInt(27));if(r.is0(r.add(m,g)))throw new Error("bad curve params: a or b");function b(e,t,n=!1){if(!r.isValid(t)||n&&r.is0(t))throw new Error(`bad point coordinate ${e}`);return t}function w(e){if(!(e instanceof x))throw new Error("ProjectivePoint expected")}function y(e){if(!c||!c.basises)throw new Error("no endo");return function(e,t,n){const[[r,i],[o,s]]=t,a=ef(s*e,n),c=ef(-i*e,n);let u=e-a*r-c*o,l=-a*i-c*s;const f=u<sf,d=l<sf;f&&(u=-u),d&&(l=-l);const h=zr(Math.ceil(Hr(n)/2))+af;if(u<sf||u>=h||l<sf||l>=h)throw new Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:f,k1:u,k2neg:d,k2:l}}(e,c.basises,i.ORDER)}const v=Vr((e,t)=>{const{X:n,Y:i,Z:o}=e;if(r.eql(o,r.ONE))return{x:n,y:i};const s=e.is0();null==t&&(t=s?r.ONE:r.inv(o));const a=r.mul(n,t),c=r.mul(i,t),u=r.mul(o,t);if(s)return{x:r.ZERO,y:r.ZERO};if(!r.eql(u,r.ONE))throw new Error("invZ was invalid");return{x:a,y:c}}),A=Vr(e=>{if(e.is0()){if(t.allowInfinityPoint&&!r.is0(e.Y))return;throw new Error("bad point: ZERO")}const{x:n,y:i}=e.toAffine();if(!r.isValid(n)||!r.isValid(i))throw new Error("bad point: x or y not field elements");if(!p(n,i))throw new Error("bad point: equation left != right");if(!e.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});function k(e,t,n,i,o){return n=new x(r.mul(n.X,e),n.Y,n.Z),t=bi(i,t),n=bi(o,n),t.add(n)}class x{constructor(e,t,n){this.X=b("x",e),this.Y=b("y",t,!0),this.Z=b("z",n),Object.freeze(this)}static CURVE(){return o}static fromAffine(e){const{x:t,y:n}=e||{};if(!e||!r.isValid(t)||!r.isValid(n))throw new Error("invalid affine point");if(e instanceof x)throw new Error("projective point not allowed");return r.is0(t)&&r.is0(n)?x.ZERO:new x(t,n,r.ONE)}static fromBytes(e){const t=x.fromAffine(d(Ir(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return x.fromBytes(Or("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return C.createCache(this,e),t||this.multiply(uf),this}assertValidity(){A(this)}hasEvenY(){const{y:e}=this.toAffine();if(!r.isOdd)throw new Error("Field doesn't support isOdd");return!r.isOdd(e)}equals(e){w(e);const{X:t,Y:n,Z:i}=this,{X:o,Y:s,Z:a}=e,c=r.eql(r.mul(t,a),r.mul(o,i)),u=r.eql(r.mul(n,a),r.mul(s,i));return c&&u}negate(){return new x(this.X,r.neg(this.Y),this.Z)}double(){const{a:e,b:t}=o,n=r.mul(t,uf),{X:i,Y:s,Z:a}=this;let c=r.ZERO,u=r.ZERO,l=r.ZERO,f=r.mul(i,i),d=r.mul(s,s),h=r.mul(a,a),p=r.mul(i,s);return p=r.add(p,p),l=r.mul(i,a),l=r.add(l,l),c=r.mul(e,l),u=r.mul(n,h),u=r.add(c,u),c=r.sub(d,u),u=r.add(d,u),u=r.mul(c,u),c=r.mul(p,c),l=r.mul(n,l),h=r.mul(e,h),p=r.sub(f,h),p=r.mul(e,p),p=r.add(p,l),l=r.add(f,f),f=r.add(l,f),f=r.add(f,h),f=r.mul(f,p),u=r.add(u,f),h=r.mul(s,a),h=r.add(h,h),f=r.mul(h,p),c=r.sub(c,f),l=r.mul(h,d),l=r.add(l,l),l=r.add(l,l),new x(c,u,l)}add(e){w(e);const{X:t,Y:n,Z:i}=this,{X:s,Y:a,Z:c}=e;let u=r.ZERO,l=r.ZERO,f=r.ZERO;const d=o.a,h=r.mul(o.b,uf);let p=r.mul(t,s),m=r.mul(n,a),g=r.mul(i,c),b=r.add(t,n),y=r.add(s,a);b=r.mul(b,y),y=r.add(p,m),b=r.sub(b,y),y=r.add(t,i);let v=r.add(s,c);return y=r.mul(y,v),v=r.add(p,g),y=r.sub(y,v),v=r.add(n,i),u=r.add(a,c),v=r.mul(v,u),u=r.add(m,g),v=r.sub(v,u),f=r.mul(d,y),u=r.mul(h,g),f=r.add(u,f),u=r.sub(m,f),f=r.add(m,f),l=r.mul(u,f),m=r.add(p,p),m=r.add(m,p),g=r.mul(d,g),y=r.mul(h,y),m=r.add(m,g),g=r.sub(p,g),g=r.mul(d,g),y=r.add(y,g),p=r.mul(m,y),l=r.add(l,p),p=r.mul(v,y),u=r.mul(b,u),u=r.sub(u,p),p=r.mul(b,m),f=r.mul(v,f),f=r.add(f,p),new x(u,l,f)}subtract(e){return this.add(e.negate())}is0(){return this.equals(x.ZERO)}multiply(e){const{endo:n}=t;if(!i.isValidNot0(e))throw new Error("invalid scalar: out of range");let r,o;const s=e=>C.cached(this,e,e=>wi(x,e));if(n){const{k1neg:t,k1:i,k2neg:a,k2:c}=y(e),{p:u,f:l}=s(i),{p:f,f:d}=s(c);o=l.add(d),r=k(n.beta,u,f,t,a)}else{const{p:t,f:n}=s(e);r=t,o=n}return wi(x,[r,o])[0]}multiplyUnsafe(e){const{endo:n}=t,r=this;if(!i.isValid(e))throw new Error("invalid scalar: out of range");if(e===sf||r.is0())return x.ZERO;if(e===af)return r;if(C.hasCache(this))return this.multiply(e);if(n){const{k1neg:t,k1:i,k2neg:o,k2:s}=y(e),{p1:a,p2:c}=function(e,t,n,r){let i=t,o=e.ZERO,s=e.ZERO;for(;n>mi||r>mi;)n&gi&&(o=o.add(i)),r&gi&&(s=s.add(i)),i=i.double(),n>>=gi,r>>=gi;return{p1:o,p2:s}}(x,r,i,s);return k(n.beta,a,c,t,o)}return C.unsafe(r,e)}multiplyAndAddUnsafe(e,t,n){const r=this.multiplyUnsafe(t).add(e.multiplyUnsafe(n));return r.is0()?void 0:r}toAffine(e){return v(this,e)}isTorsionFree(){const{isTorsionFree:e}=t;return s===af||(e?e(x,this):C.unsafe(this,a).is0())}clearCofactor(){const{clearCofactor:e}=t;return s===af?this:e?e(x,this):this.multiplyUnsafe(s)}isSmallOrder(){return this.multiplyUnsafe(s).is0()}toBytes(e=!0){return Mr(e,"isCompressed"),this.assertValidity(),f(x,this,e)}toHex(e=!0){return Pe(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}N(e){this.precompute(e)}static normalizeZ(e){return wi(x,e)}static msm(e,t){return Ti(x,i,e,t)}static fromPrivateKey(e){return x.BASE.multiply(ff(i,e))}}x.BASE=new x(o.Gx,o.Gy,r.ONE),x.ZERO=new x(r.ZERO,r.ONE,r.ZERO),x.Fp=r,x.Fn=i;const E=i.BITS,C=new Si(x,t.endo?Math.ceil(E/2):E);return x.BASE.precompute(8),x}function hf(e){return Uint8Array.of(e?2:3)}function pf(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}function mf(e,t={}){const{Fn:n}=e,r=t.randomBytes||Qe,i=Object.assign(pf(e.Fp,n),{seed:pi(n.ORDER)});function o(e){try{return!!ff(n,e)}catch(t){return!1}}function s(e=r(i.seed)){return function(e,t,n=!1){const r=e.length,i=hi(t),o=pi(t);if(r<16||r<o||r>1024)throw new Error("expected "+o+"-1024 bytes of input, got "+r);const s=ei(n?Lr(e):Rr(e),t-Jr)+Jr;return n?Fr(s,i):Dr(s,i)}(Ir(e,i.seed,"seed"),n.ORDER)}function a(t,r=!0){return e.BASE.multiply(ff(n,t)).toBytes(r)}function c(t){if("bigint"==typeof t)return!1;if(t instanceof e)return!0;const{secretKey:r,publicKey:o,publicKeyUncompressed:s}=i;if(n.allowedLengths||r===o)return;const a=Or("key",t).length;return a===o||a===s}const u={isValidSecretKey:o,isValidPublicKey:function(t,n){const{publicKey:r,publicKeyUncompressed:o}=i;try{const i=t.length;return(!0!==n||i===r)&&((!1!==n||i===o)&&!!e.fromBytes(t))}catch(s){return!1}},randomSecretKey:s,isValidPrivateKey:o,randomPrivateKey:s,normPrivateKeyToScalar:e=>ff(n,e),precompute:(t=8,n=e.BASE)=>n.precompute(t,!1)};return Object.freeze({getPublicKey:a,getSharedSecret:function(t,r,i=!0){if(!0===c(t))throw new Error("first arg must be private key");if(!1===c(r))throw new Error("second arg must be public key");const o=ff(n,t);return e.fromHex(r).multiply(o).toBytes(i)},keygen:function(e){const t=s(e);return{secretKey:t,publicKey:a(t)}},Point:e,utils:u,lengths:i})}function gf(e,t,n={}){Te(t),jr(n,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});const r=n.randomBytes||Qe,i=n.hmac||((e,...n)=>pr(t,e,Ke(...n))),{Fp:o,Fn:s}=e,{ORDER:a,BITS:c}=s,{keygen:u,getPublicKey:l,getSharedSecret:f,utils:d,lengths:h}=mf(e,n),p={prehash:!1,lowS:"boolean"==typeof n.lowS&&n.lowS,format:void 0,extraEntropy:!1},m="compact";function g(e){return e>a>>af}function b(e,t){if(!s.isValidNot0(t))throw new Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}class w{constructor(e,t,n){this.r=b("r",e),this.s=b("s",t),null!=n&&(this.recovery=n),Object.freeze(this)}static fromBytes(e,t=m){let n;if(function(e,t){tf(t);const n=h.signature;Ir(e,"compact"===t?n:"recovered"===t?n+1:void 0,`${t} signature`)}(e,t),"der"===t){const{r:t,s:n}=of.toSig(Ir(e));return new w(t,n)}"recovered"===t&&(n=e[0],t="compact",e=e.subarray(1));const r=s.BYTES,i=e.subarray(0,r),o=e.subarray(r,2*r);return new w(s.fromBytes(i),s.fromBytes(o),n)}static fromHex(e,t){return this.fromBytes(Je(e),t)}addRecoveryBit(e){return new w(this.r,this.s,e)}recoverPublicKey(t){const n=o.ORDER,{r:r,s:i,recovery:c}=this;if(null==c||![0,1,2,3].includes(c))throw new Error("recovery id invalid");if(a*cf<n&&c>1)throw new Error("recovery id is ambiguous for h>1 curve");const u=2===c||3===c?r+a:r;if(!o.isValid(u))throw new Error("recovery id 2 or 3 invalid");const l=o.toBytes(u),f=e.fromBytes(Ke(hf(!(1&c)),l)),d=s.inv(u),h=v(Or("msgHash",t)),p=s.create(-h*d),m=s.create(i*d),g=e.BASE.multiplyUnsafe(p).add(f.multiplyUnsafe(m));if(g.is0())throw new Error("point at infinify");return g.assertValidity(),g}hasHighS(){return g(this.s)}toBytes(e=m){if(tf(e),"der"===e)return Je(of.hexFromSig(this));const t=s.toBytes(this.r),n=s.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw new Error("recovery bit must be present");return Ke(Uint8Array.of(this.recovery),t,n)}return Ke(t,n)}toHex(e){return Pe(this.toBytes(e))}assertValidity(){}static fromCompact(e){return w.fromBytes(Or("sig",e),"compact")}static fromDER(e){return w.fromBytes(Or("sig",e),"der")}normalizeS(){return this.hasHighS()?new w(this.r,s.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return Pe(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return Pe(this.toBytes("compact"))}}const y=n.bits2int||function(e){if(e.length>8192)throw new Error("input is too large");const t=Rr(e),n=8*e.length-c;return n>0?t>>BigInt(n):t},v=n.bits2int_modN||function(e){return s.create(y(e))},A=zr(c);function k(e){return qr("num < 2^"+c,e,sf,A),s.toBytes(e)}function x(e,n){return Ir(e,void 0,"message"),n?Ir(t(e),void 0,"prehashed message"):e}return Object.freeze({keygen:u,getPublicKey:l,getSharedSecret:f,utils:d,lengths:h,Point:e,sign:function(n,o,a={}){n=Or("message",n);const{seed:c,k2sig:u}=function(t,n,i){if(["recovered","canonical"].some(e=>e in i))throw new Error("sign() legacy options not supported");const{lowS:o,prehash:a,extraEntropy:c}=nf(i,p);t=x(t,a);const u=v(t),l=ff(s,n),f=[k(l),k(u)];if(null!=c&&!1!==c){const e=!0===c?r(h.secretKey):c;f.push(Or("extraEntropy",e))}const d=Ke(...f),m=u;return{seed:d,k2sig:function(t){const n=y(t);if(!s.isValidNot0(n))return;const r=s.inv(n),i=e.BASE.multiply(n).toAffine(),a=s.create(i.x);if(a===sf)return;const c=s.create(r*s.create(m+a*l));if(c===sf)return;let u=(i.x===a?0:2)|Number(i.y&af),f=c;return o&&g(c)&&(f=s.neg(c),u^=1),new w(a,f,u)}}}(n,o,a);return function(e,t,n){if("number"!=typeof e||e<2)throw new Error("hashLen must be a number");if("number"!=typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");const r=e=>new Uint8Array(e),i=e=>Uint8Array.of(e);let o=r(e),s=r(e),a=0;const c=()=>{o.fill(1),s.fill(0),a=0},u=(...e)=>n(s,o,...e),l=(e=r(0))=>{s=u(i(0),e),o=u(),0!==e.length&&(s=u(i(1),e),o=u())},f=()=>{if(a++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){o=u();const t=o.slice();n.push(t),e+=o.length}return Ke(...n)};return(e,t)=>{let n;for(c(),l(e);!(n=t(f()));)l();return c(),n}}(t.outputLen,s.BYTES,i)(c,u)},verify:function(t,n,r,i={}){const{lowS:o,prehash:a,format:c}=nf(i,p);if(r=Or("publicKey",r),n=x(Or("message",n),a),"strict"in i)throw new Error("options.strict was renamed to lowS");const u=void 0===c?function(e){let t;const n="string"==typeof e||Ee(e),r=!n&&null!==e&&"object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!n&&!r)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(r)t=new w(e.r,e.s);else if(n){try{t=w.fromBytes(Or("sig",e),"der")}catch(i){if(!(i instanceof of.Err))throw i}if(!t)try{t=w.fromBytes(Or("sig",e),"compact")}catch(o){return!1}}return t||!1}(t):w.fromBytes(Or("sig",t),c);if(!1===u)return!1;try{const t=e.fromBytes(r);if(o&&u.hasHighS())return!1;const{r:i,s:a}=u,c=v(n),l=s.inv(a),f=s.create(c*l),d=s.create(i*l),h=e.BASE.multiplyUnsafe(f).add(t.multiplyUnsafe(d));if(h.is0())return!1;return s.create(h.x)===i}catch(l){return!1}},recoverPublicKey:function(e,t,n={}){const{prehash:r}=nf(n,p);return t=x(t,r),w.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:w,hash:t})}function bf(e){const{CURVE:t,curveOpts:n}=function(e){const t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},n=e.Fp;let r=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0;return{CURVE:t,curveOpts:{Fp:n,Fn:di(t.n,{BITS:e.nBitLength,allowedLengths:r,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes}}}(e),r={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:n,hash:e.hash,ecdsaOpts:r}}function wf(e){const{CURVE:t,curveOpts:n,hash:r,ecdsaOpts:i}=bf(e);return function(e,t){const n=t.Point;return Object.assign({},t,{ProjectivePoint:n,CURVE:Object.assign({},e,fi(n.Fn.ORDER,n.Fn.BITS))})}(e,gf(df(t,n),r,i))}const yf={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},vf={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},Af=BigInt(2);const kf=di(yf.p,{sqrt:function(e){const t=yf.p,n=BigInt(3),r=BigInt(6),i=BigInt(11),o=BigInt(22),s=BigInt(23),a=BigInt(44),c=BigInt(88),u=e*e*e%t,l=u*u*e%t,f=ti(l,n,t)*l%t,d=ti(f,n,t)*l%t,h=ti(d,Af,t)*u%t,p=ti(h,i,t)*h%t,m=ti(p,o,t)*p%t,g=ti(m,a,t)*m%t,b=ti(g,c,t)*g%t,w=ti(b,a,t)*m%t,y=ti(w,n,t)*l%t,v=ti(y,s,t)*p%t,A=ti(v,r,t)*u%t,k=ti(A,Af,t);if(!kf.eql(kf.sqr(k),e))throw new Error("Cannot find square root");return k}}),xf=function(e,t){const n=t=>wf({...e,hash:t});return{...n(t),create:n}}({...yf,Fp:kf,lowS:!0,endo:vf},Gn);function Ef(e){try{return Ki.ExtendedPoint.fromHex(e),!0}catch{return!1}}Ki.utils.randomPrivateKey,Ki.getPublicKey,Ki.verify;class Cf{constructor(e){Object.assign(this,e)}encode(){return Cr.Buffer.from(Eo.serialize(Sf,this))}static decode(e){return Eo.deserialize(Sf,this,e)}static decodeUnchecked(e){return Eo.deserializeUnchecked(Sf,this,e)}}const Sf=new Map;var Tf;let Mf=1;class If extends Cf{constructor(e){if(super({}),this.Fe=void 0,function(e){return void 0!==e.Fe}(e))this.Fe=e.Fe;else{if("string"==typeof e){const t=co.decode(e);if(32!=t.length)throw new Error("Invalid public key input");this.Fe=new _i(t)}else this.Fe=new _i(e);if(this.Fe.byteLength()>32)throw new Error("Invalid public key input")}}static unique(){const e=new If(Mf);return Mf+=1,new If(e.toBuffer())}equals(e){return this.Fe.eq(e.Fe)}toBase58(){return co.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const e=this.toBuffer();return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}toBuffer(){const e=this.Fe.toArrayLike(Cr.Buffer);if(32===e.length)return e;const t=Cr.Buffer.alloc(32);return e.copy(t,32-e.length),t}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(e,t,n){const r=Cr.Buffer.concat([e.toBuffer(),Cr.Buffer.from(t),n.toBuffer()]),i=Wn(r);return new If(i)}static createProgramAddressSync(e,t){let n=Cr.Buffer.alloc(0);e.forEach(function(e){if(e.length>32)throw new TypeError("Max seed length exceeded");var t;n=Cr.Buffer.concat([n,(t=e,Cr.Buffer.isBuffer(t)?t:t instanceof Uint8Array?Cr.Buffer.from(t.buffer,t.byteOffset,t.byteLength):Cr.Buffer.from(t))])}),n=Cr.Buffer.concat([n,t.toBuffer(),Cr.Buffer.from("ProgramDerivedAddress")]);const r=Wn(n);if(Ef(r))throw new Error("Invalid seeds, address must fall off the curve");return new If(r)}static async createProgramAddress(e,t){return this.createProgramAddressSync(e,t)}static findProgramAddressSync(e,t){let n,r=255;for(;0!=r;){try{const i=e.concat(Cr.Buffer.from([r]));n=this.createProgramAddressSync(i,t)}catch(i){if(i instanceof TypeError)throw i;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(e,t){return this.findProgramAddressSync(e,t)}static isOnCurve(e){return Ef(new If(e).toBytes())}}Tf=If,If.default=new Tf("11111111111111111111111111111111"),Sf.set(If,{kind:"struct",fields:[["_bn","u256"]]}),new If("BPFLoader1111111111111111111111111111111111");const Bf=(e="publicKey")=>So.blob(32,e),Nf=(e="string")=>{const t=So.struct([So.u32("length"),So.u32("lengthPadding"),So.blob(So.offset(So.u32(),-8),"chars")],e),n=t.decode.bind(t),r=t.encode.bind(t),i=t;return i.decode=(e,t)=>n(e,t).chars.toString(),i.encode=(e,t,n)=>{const i={chars:Cr.Buffer.from(e,"utf8")};return r(i,t,n)},i.alloc=e=>So.u32().span+So.u32().span+Cr.Buffer.from(e,"utf8").length,i};Cr.Buffer.alloc(64).fill(0),new If("SysvarC1ock11111111111111111111111111111111"),new If("SysvarEpochSchedu1e111111111111111111111111"),new If("Sysvar1nstructions1111111111111111111111111"),new If("SysvarRecentB1ockHashes11111111111111111111"),new If("SysvarRent111111111111111111111111111111111"),new If("SysvarRewards111111111111111111111111111111"),new If("SysvarS1otHashes111111111111111111111111111"),new If("SysvarS1otHistory11111111111111111111111111"),new If("SysvarStakeHistory1111111111111111111111111");const Rf=So.nu64("lamportsPerSignature");function Lf(e){const t=So.blob(8,e),n=t.decode.bind(t),r=t.encode.bind(t),i=t,o=Xu();return i.decode=(e,t)=>{const r=n(e,t);return o.decode(r)},i.encode=(e,t,n)=>{const i=o.encode(e);return r(i,t,n)},i}So.struct([So.u32("version"),So.u32("state"),Bf("authorizedPubkey"),Bf("nonce"),So.struct([Rf],"feeCalculator")]).span,Object.freeze({Create:{index:0,layout:So.struct([So.u32("instruction"),So.ns64("lamports"),So.ns64("space"),Bf("programId")])},Assign:{index:1,layout:So.struct([So.u32("instruction"),Bf("programId")])},Transfer:{index:2,layout:So.struct([So.u32("instruction"),Lf("lamports")])},CreateWithSeed:{index:3,layout:So.struct([So.u32("instruction"),Bf("base"),Nf("seed"),So.ns64("lamports"),So.ns64("space"),Bf("programId")])},AdvanceNonceAccount:{index:4,layout:So.struct([So.u32("instruction")])},WithdrawNonceAccount:{index:5,layout:So.struct([So.u32("instruction"),So.ns64("lamports")])},InitializeNonceAccount:{index:6,layout:So.struct([So.u32("instruction"),Bf("authorized")])},AuthorizeNonceAccount:{index:7,layout:So.struct([So.u32("instruction"),Bf("authorized")])},Allocate:{index:8,layout:So.struct([So.u32("instruction"),So.ns64("space")])},AllocateWithSeed:{index:9,layout:So.struct([So.u32("instruction"),Bf("base"),Nf("seed"),So.ns64("space"),Bf("programId")])},AssignWithSeed:{index:10,layout:So.struct([So.u32("instruction"),Bf("base"),Nf("seed"),Bf("programId")])},TransferWithSeed:{index:11,layout:So.struct([So.u32("instruction"),Lf("lamports"),Nf("seed"),Bf("programId")])},UpgradeNonceAccount:{index:12,layout:So.struct([So.u32("instruction")])}}),new If("11111111111111111111111111111111"),new If("BPFLoader2111111111111111111111111111111111"),So.struct([So.u32("typeIndex"),Lf("deactivationSlot"),So.nu64("lastExtendedSlot"),So.u8("lastExtendedStartIndex"),So.u8(),So.seq(Bf(),So.offset(So.u8(),-1),"authority")]);const Df=Al(ll(If),gl(),e=>new If(e)),Ff=bl([gl(),fl("base64")]),Of=Al(ll(Cr.Buffer),Ff,e=>Cr.Buffer.from(e[0],"base64"));function Pf(e){return yl([wl({jsonrpc:fl("2.0"),id:gl(),result:e}),wl({jsonrpc:fl("2.0"),id:gl(),error:wl({code:vl(),message:gl(),data:pl(al("any",()=>!0))})})])}const Uf=Pf(vl());function qf(e){return Al(Pf(e),Uf,t=>"error"in t?t:{...t,result:il(t.result,e)})}function Hf(e){return qf(wl({context:wl({slot:hl()}),value:e}))}function zf(e){return wl({context:wl({slot:hl()}),value:e})}const jf=wl({foundation:hl(),foundationTerm:hl(),initial:hl(),taper:hl(),terminal:hl()});qf(cl(dl(wl({epoch:hl(),effectiveSlot:hl(),amount:hl(),postBalance:hl(),commission:pl(dl(hl()))}))));const Vf=cl(wl({slot:hl(),prioritizationFee:hl()})),Gf=wl({total:hl(),validator:hl(),foundation:hl(),epoch:hl()}),Jf=wl({epoch:hl(),slotIndex:hl(),slotsInEpoch:hl(),absoluteSlot:hl(),blockHeight:pl(hl()),transactionCount:pl(hl())}),Wf=wl({slotsPerEpoch:hl(),leaderScheduleSlotOffset:hl(),warmup:ul(),firstNormalEpoch:hl(),firstNormalSlot:hl()}),Kf=ml(gl(),cl(hl())),Yf=dl(yl([wl({}),gl()])),Xf=wl({err:Yf}),Qf=fl("receivedSignature");wl({"solana-core":gl(),"feature-set":pl(hl())});const Zf=wl({program:gl(),programId:Df,parsed:vl()}),$f=wl({programId:Df,accounts:cl(Df),data:gl()});Hf(wl({err:dl(yl([wl({}),gl()])),logs:dl(cl(gl())),accounts:pl(dl(cl(dl(wl({executable:ul(),owner:gl(),lamports:hl(),data:cl(gl()),rentEpoch:pl(hl())}))))),unitsConsumed:pl(hl()),returnData:pl(dl(wl({programId:gl(),data:bl([gl(),fl("base64")])}))),innerInstructions:pl(dl(cl(wl({index:hl(),instructions:cl(yl([Zf,$f]))}))))})),Hf(wl({byIdentity:ml(gl(),cl(hl())),range:wl({firstSlot:hl(),lastSlot:hl()})})),qf(jf),qf(Gf),qf(Vf),qf(Jf),qf(Wf),qf(Kf),qf(hl()),Hf(wl({total:hl(),circulating:hl(),nonCirculating:hl(),nonCirculatingAccounts:cl(Df)}));const _f=wl({amount:gl(),uiAmount:dl(hl()),decimals:hl(),uiAmountString:pl(gl())});Hf(cl(wl({address:Df,amount:gl(),uiAmount:dl(hl()),decimals:hl(),uiAmountString:pl(gl())}))),Hf(cl(wl({pubkey:Df,account:wl({executable:ul(),owner:Df,lamports:hl(),data:Of,rentEpoch:hl()})})));const ed=wl({program:gl(),parsed:vl(),space:hl()});Hf(cl(wl({pubkey:Df,account:wl({executable:ul(),owner:Df,lamports:hl(),data:ed,rentEpoch:hl()})}))),Hf(cl(wl({lamports:hl(),address:Df})));const td=wl({executable:ul(),owner:Df,lamports:hl(),data:Of,rentEpoch:hl()});wl({pubkey:Df,account:td});const nd=Al(yl([ll(Cr.Buffer),ed]),yl([Ff,ed]),e=>Array.isArray(e)?il(e,Of):e),rd=wl({executable:ul(),owner:Df,lamports:hl(),data:nd,rentEpoch:hl()});wl({pubkey:Df,account:rd}),wl({state:yl([fl("active"),fl("inactive"),fl("activating"),fl("deactivating")]),active:hl(),inactive:hl()}),qf(cl(wl({signature:gl(),slot:hl(),err:Yf,memo:dl(gl()),blockTime:pl(dl(hl()))}))),qf(cl(wl({signature:gl(),slot:hl(),err:Yf,memo:dl(gl()),blockTime:pl(dl(hl()))}))),wl({subscription:hl(),result:zf(td)});const id=wl({pubkey:Df,account:td});wl({subscription:hl(),result:zf(id)});const od=wl({parent:hl(),slot:hl(),root:hl()});wl({subscription:hl(),result:od});const sd=yl([wl({type:yl([fl("firstShredReceived"),fl("completed"),fl("optimisticConfirmation"),fl("root")]),slot:hl(),timestamp:hl()}),wl({type:fl("createdBank"),parent:hl(),slot:hl(),timestamp:hl()}),wl({type:fl("frozen"),slot:hl(),timestamp:hl(),stats:wl({numTransactionEntries:hl(),numSuccessfulTransactions:hl(),numFailedTransactions:hl(),maxTransactionsPerEntry:hl()})}),wl({type:fl("dead"),slot:hl(),timestamp:hl(),err:gl()})]);wl({subscription:hl(),result:sd}),wl({subscription:hl(),result:zf(yl([Xf,Qf]))}),wl({subscription:hl(),result:hl()}),wl({pubkey:gl(),gossip:dl(gl()),tpu:dl(gl()),rpc:dl(gl()),version:dl(gl())});const ad=wl({votePubkey:gl(),nodePubkey:gl(),activatedStake:hl(),epochVoteAccount:ul(),epochCredits:cl(bl([hl(),hl(),hl()])),commission:hl(),lastVote:hl(),rootSlot:dl(hl())});qf(wl({current:cl(ad),delinquent:cl(ad)}));const cd=yl([fl("processed"),fl("confirmed"),fl("finalized")]),ud=wl({slot:hl(),confirmations:dl(hl()),err:Yf,confirmationStatus:pl(cd)});Hf(cl(dl(ud))),qf(hl());const ld=wl({accountKey:Df,writableIndexes:cl(hl()),readonlyIndexes:cl(hl())}),fd=wl({signatures:cl(gl()),message:wl({accountKeys:cl(gl()),header:wl({numRequiredSignatures:hl(),numReadonlySignedAccounts:hl(),numReadonlyUnsignedAccounts:hl()}),instructions:cl(wl({accounts:cl(hl()),data:gl(),programIdIndex:hl()})),recentBlockhash:gl(),addressTableLookups:pl(cl(ld))})}),dd=wl({pubkey:Df,signer:ul(),writable:ul(),source:pl(yl([fl("transaction"),fl("lookupTable")]))}),hd=wl({accountKeys:cl(dd),signatures:cl(gl())}),pd=wl({parsed:vl(),program:gl(),programId:Df}),md=wl({accounts:cl(Df),data:gl(),programId:Df}),gd=Al(yl([md,pd]),yl([wl({parsed:vl(),program:gl(),programId:gl()}),wl({accounts:cl(gl()),data:gl(),programId:gl()})]),e=>il(e,"accounts"in e?md:pd)),bd=wl({signatures:cl(gl()),message:wl({accountKeys:cl(dd),instructions:cl(gd),recentBlockhash:gl(),addressTableLookups:pl(dl(cl(ld)))})}),wd=wl({accountIndex:hl(),mint:gl(),owner:pl(gl()),programId:pl(gl()),uiTokenAmount:_f}),yd=wl({writable:cl(Df),readonly:cl(Df)}),vd=wl({err:Yf,fee:hl(),innerInstructions:pl(dl(cl(wl({index:hl(),instructions:cl(wl({accounts:cl(hl()),data:gl(),programIdIndex:hl()}))})))),preBalances:cl(hl()),postBalances:cl(hl()),logMessages:pl(dl(cl(gl()))),preTokenBalances:pl(dl(cl(wd))),postTokenBalances:pl(dl(cl(wd))),loadedAddresses:pl(yd),computeUnitsConsumed:pl(hl()),costUnits:pl(hl())}),Ad=wl({err:Yf,fee:hl(),innerInstructions:pl(dl(cl(wl({index:hl(),instructions:cl(gd)})))),preBalances:cl(hl()),postBalances:cl(hl()),logMessages:pl(dl(cl(gl()))),preTokenBalances:pl(dl(cl(wd))),postTokenBalances:pl(dl(cl(wd))),loadedAddresses:pl(yd),computeUnitsConsumed:pl(hl()),costUnits:pl(hl())}),kd=yl([fl(0),fl("legacy")]),xd=wl({pubkey:gl(),lamports:hl(),postBalance:dl(hl()),rewardType:dl(gl()),commission:pl(dl(hl()))});qf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),transactions:cl(wl({transaction:fd,meta:dl(vd),version:pl(kd)})),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),qf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),qf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),transactions:cl(wl({transaction:hd,meta:dl(vd),version:pl(kd)})),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),qf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),transactions:cl(wl({transaction:bd,meta:dl(Ad),version:pl(kd)})),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),qf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),transactions:cl(wl({transaction:hd,meta:dl(Ad),version:pl(kd)})),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),qf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),rewards:pl(cl(xd)),blockTime:dl(hl()),blockHeight:dl(hl())}))),qf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),transactions:cl(wl({transaction:fd,meta:dl(vd)})),rewards:pl(cl(xd)),blockTime:dl(hl())}))),qf(dl(wl({blockhash:gl(),previousBlockhash:gl(),parentSlot:hl(),signatures:cl(gl()),blockTime:dl(hl())}))),qf(dl(wl({slot:hl(),meta:dl(vd),blockTime:pl(dl(hl())),transaction:fd,version:pl(kd)}))),qf(dl(wl({slot:hl(),transaction:bd,meta:dl(Ad),blockTime:pl(dl(hl())),version:pl(kd)}))),Hf(wl({blockhash:gl(),lastValidBlockHeight:hl()})),Hf(ul());qf(cl(wl({slot:hl(),numTransactions:hl(),numSlots:hl(),samplePeriodSecs:hl()}))),Hf(dl(wl({feeCalculator:wl({lamportsPerSignature:hl()})}))),qf(gl()),qf(gl());const Ed=wl({err:Yf,logs:cl(gl()),signature:gl()});var Cd;wl({result:zf(Ed),subscription:hl()}),Object.freeze({CreateLookupTable:{index:0,layout:So.struct([So.u32("instruction"),Lf("recentSlot"),So.u8("bumpSeed")])},FreezeLookupTable:{index:1,layout:So.struct([So.u32("instruction")])},ExtendLookupTable:{index:2,layout:So.struct([So.u32("instruction"),Lf(),So.seq(Bf(),So.offset(So.u32(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:So.struct([So.u32("instruction")])},CloseLookupTable:{index:4,layout:So.struct([So.u32("instruction")])}}),new If("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:So.struct([So.u8("instruction"),So.u32("units"),So.u32("additionalFee")])},RequestHeapFrame:{index:1,layout:So.struct([So.u8("instruction"),So.u32("bytes")])},SetComputeUnitLimit:{index:2,layout:So.struct([So.u8("instruction"),So.u32("units")])},SetComputeUnitPrice:{index:3,layout:So.struct([So.u8("instruction"),Lf("microLamports")])}}),new If("ComputeBudget111111111111111111111111111111"),So.struct([So.u8("numSignatures"),So.u8("padding"),So.u16("signatureOffset"),So.u16("signatureInstructionIndex"),So.u16("publicKeyOffset"),So.u16("publicKeyInstructionIndex"),So.u16("messageDataOffset"),So.u16("messageDataSize"),So.u16("messageInstructionIndex")]),new If("Ed25519SigVerify111111111111111111111111111"),xf.utils.isValidPrivateKey,So.struct([So.u8("numSignatures"),So.u16("signatureOffset"),So.u8("signatureInstructionIndex"),So.u16("ethAddressOffset"),So.u8("ethAddressInstructionIndex"),So.u16("messageDataOffset"),So.u16("messageDataSize"),So.u8("messageInstructionIndex"),So.blob(20,"ethAddress"),So.blob(64,"signature"),So.u8("recoveryId")]),new If("KeccakSecp256k11111111111111111111111111111"),new If("StakeConfig11111111111111111111111111111111");class Sd{constructor(e,t,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=e,this.epoch=t,this.custodian=n}}Cd=Sd,Sd.default=new Cd(0,0,If.default),Object.freeze({Initialize:{index:0,layout:So.struct([So.u32("instruction"),((e="authorized")=>So.struct([Bf("staker"),Bf("withdrawer")],e))(),((e="lockup")=>So.struct([So.ns64("unixTimestamp"),So.ns64("epoch"),Bf("custodian")],e))()])},Authorize:{index:1,layout:So.struct([So.u32("instruction"),Bf("newAuthorized"),So.u32("stakeAuthorizationType")])},Delegate:{index:2,layout:So.struct([So.u32("instruction")])},Split:{index:3,layout:So.struct([So.u32("instruction"),So.ns64("lamports")])},Withdraw:{index:4,layout:So.struct([So.u32("instruction"),So.ns64("lamports")])},Deactivate:{index:5,layout:So.struct([So.u32("instruction")])},Merge:{index:7,layout:So.struct([So.u32("instruction")])},AuthorizeWithSeed:{index:8,layout:So.struct([So.u32("instruction"),Bf("newAuthorized"),So.u32("stakeAuthorizationType"),Nf("authoritySeed"),Bf("authorityOwner")])}}),new If("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:So.struct([So.u32("instruction"),((e="voteInit")=>So.struct([Bf("nodePubkey"),Bf("authorizedVoter"),Bf("authorizedWithdrawer"),So.u8("commission")],e))()])},Authorize:{index:1,layout:So.struct([So.u32("instruction"),Bf("newAuthorized"),So.u32("voteAuthorizationType")])},Withdraw:{index:3,layout:So.struct([So.u32("instruction"),So.ns64("lamports")])},UpdateValidatorIdentity:{index:4,layout:So.struct([So.u32("instruction")])},AuthorizeWithSeed:{index:10,layout:So.struct([So.u32("instruction"),((e="voteAuthorizeWithSeedArgs")=>So.struct([So.u32("voteAuthorizationType"),Bf("currentAuthorityDerivedKeyOwnerPubkey"),Nf("currentAuthorityDerivedKeySeed"),Bf("newAuthorized")],e))()])}}),new If("Vote111111111111111111111111111111111111111"),new If("Va1idator1nfo111111111111111111111111111111"),wl({name:gl(),website:pl(gl()),details:pl(gl()),iconUrl:pl(gl()),keybaseUsername:pl(gl())}),new If("Vote111111111111111111111111111111111111111"),So.struct([Bf("nodePubkey"),Bf("authorizedWithdrawer"),So.u8("commission"),So.nu64(),So.seq(So.struct([So.nu64("slot"),So.u32("confirmationCount")]),So.offset(So.u32(),-8),"votes"),So.u8("rootSlotValid"),So.nu64("rootSlot"),So.nu64(),So.seq(So.struct([So.nu64("epoch"),Bf("authorizedVoter")]),So.offset(So.u32(),-8),"authorizedVoters"),So.struct([So.seq(So.struct([Bf("authorizedPubkey"),So.nu64("epochOfLastAuthorizedSwitch"),So.nu64("targetEpoch")]),32,"buf"),So.nu64("idx"),So.u8("isEmpty")],"priorVoters"),So.nu64(),So.seq(So.struct([So.nu64("epoch"),So.nu64("credits"),So.nu64("prevCredits")]),So.offset(So.u32(),-8),"epochCredits"),So.struct([So.nu64("slot"),So.nu64("timestamp")],"lastTimestamp")]);const Td={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:{block:Tn({format(e){const t=e.transactions?.map(e=>{if("string"==typeof e)return e;const t=En(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?J(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t});return{transactions:t,stateRoot:e.stateRoot}}}),transaction:Cn({format(e){const t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?J(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:ar({format:e=>({l1GasPrice:e.l1GasPrice?J(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?J(e.l1GasUsed):null,l1Fee:e.l1Fee?J(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})},serializers:{transaction:function(e,t){return function(e){return"deposit"===e.type||void 0!==e.sourceHash}(e)?function(e){!function(e){const{from:t,to:n}=e;if(t&&!xt(t))throw new wt({address:t});if(n&&!xt(n))throw new wt({address:n})}(e);const{sourceHash:t,data:n,from:r,gas:i,isSystemTx:o,mint:s,to:a,value:c}=e;return Ct(["0x7e",nn([t,r,a??"0x",s?Y(s):"0x",c?Y(c):"0x",i?Y(i):"0x",o?"0x1":"0x",n??"0x"])])}(e):lr(e,t)}}},Md=dr({id:42161,name:"Arbitrum One",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:250,rpcUrls:{default:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{default:{name:"Arbiscan",url:"https://arbiscan.io",apiUrl:"https://api.arbiscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),Id=dr({id:43114,name:"Avalanche",blockTime:1700,nativeCurrency:{decimals:18,name:"Avalanche",symbol:"AVAX"},rpcUrls:{default:{http:["https://api.avax.network/ext/bc/C/rpc"]}},blockExplorers:{default:{name:"SnowTrace",url:"https://snowtrace.io",apiUrl:"https://api.snowtrace.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:11907934}}}),Bd=1,Nd=dr({...Td,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...Td.contracts,disputeGameFactory:{[Bd]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[Bd]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[Bd]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[Bd]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),Rd=dr({id:56,name:"BNB Smart Chain",blockTime:750,nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://56.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"BscScan",url:"https://bscscan.com",apiUrl:"https://api.bscscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}});async function Ld(e,t){const{account:n=e.account}=t;if(!n)throw new ir;const r=Ot(n);try{const{accessList:n,blockNumber:i,blockTag:o,data:s,gas:a,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:f,to:d,value:h,...p}=t,m=("bigint"==typeof i?Z(i):void 0)||o;!function(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:r,to:i}=e,o=t?Ot(t):void 0;if(o&&!xt(o.address))throw new wt({address:o.address});if(i&&!xt(i))throw new wt({address:i});if(n&&n>kn)throw new an({maxFeePerGas:n});if(r&&n&&r>n)throw new gn({maxFeePerGas:n,maxPriorityFeePerGas:r})}(t);const g=e.chain?.formatters?.transactionRequest?.format,b=(g||An)({...wn(p,{format:g}),account:r,accessList:n,data:s,gas:a,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:f,to:d,value:h},"estimateGas"),{baseFeePerGas:w,gasLimit:y,priorityFeePerGas:v}=await e.request({method:"linea_estimateGas",params:m?[b,m]:[b]});return{baseFeePerGas:BigInt(w),gasLimit:BigInt(y),priorityFeePerGas:BigInt(v)}}catch(i){throw rr(i,{...t,account:r,chain:e.chain})}}async function Dd({client:e,multiply:t,request:n,type:r}){try{const i=await Ld(e,{...n,account:n?.account}),{priorityFeePerGas:o}=i,s=t(BigInt(i.baseFeePerGas))+o;return"legacy"===r?{gasPrice:s}:{maxFeePerGas:s,maxPriorityFeePerGas:o}}catch{return null}}const Fd=dr({...{fees:{estimateFeesPerGas:Dd,async maxPriorityFeePerGas({block:e,client:t,request:n}){const r=await Dd({block:e,client:t,multiply:e=>e,request:n,type:"eip1559"});return r?.maxPriorityFeePerGas?r.maxPriorityFeePerGas:null}}},id:59144,name:"Linea Mainnet",blockTime:2e3,nativeCurrency:{name:"Linea Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.linea.build"],webSocket:["wss://rpc.linea.build"]}},blockExplorers:{default:{name:"Etherscan",url:"https://lineascan.build",apiUrl:"https://api.lineascan.build/api"}},contracts:{multicall3:{address:"0xcA11bde05977b3631167028862bE2a173976CA11",blockCreated:42},ensRegistry:{address:"0x50130b669B28C339991d8676FA73CF122a121267",blockCreated:6682888},ensUniversalResolver:{address:"0x4D41762915F83c76EcaF6776d9b08076aA32b492",blockCreated:22222151}},ensTlds:[".linea.eth"],testnet:!1}),Od=dr({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:12e3,rpcUrls:{default:{http:["https://eth.merkle.io"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:23085558},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Pd=1,Ud=dr({...Td,id:10,name:"OP Mainnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.optimism.io"]}},blockExplorers:{default:{name:"Optimism Explorer",url:"https://optimistic.etherscan.io",apiUrl:"https://api-optimistic.etherscan.io/api"}},contracts:{...Td.contracts,disputeGameFactory:{[Pd]:{address:"0xe5965Ab5962eDc7477C8520243A95517CD252fA9"}},l2OutputOracle:{[Pd]:{address:"0xdfe97868233d1aa22e815a266982f2cf17685a27"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263},portal:{[Pd]:{address:"0xbEb5Fc579115071764c7423A4f12eDde41f106Ed"}},l1StandardBridge:{[Pd]:{address:"0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1"}}},sourceId:1}),qd=dr({id:137,name:"Polygon",blockTime:2e3,nativeCurrency:{name:"POL",symbol:"POL",decimals:18},rpcUrls:{default:{http:["https://polygon.drpc.org"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://polygonscan.com",apiUrl:"https://api.etherscan.io/v2/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),Hd=1,zd=dr({...Td,id:130,name:"Unichain",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},blockTime:1e3,rpcUrls:{default:{http:["https://mainnet.unichain.org/"]}},blockExplorers:{default:{name:"Uniscan",url:"https://uniscan.xyz",apiUrl:"https://api.uniscan.xyz/api"}},contracts:{...Td.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:0},disputeGameFactory:{[Hd]:{address:"0x2F12d621a16e2d3285929C9996f478508951dFe4"}},portal:{[Hd]:{address:"0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2"}},l1StandardBridge:{[Hd]:{address:"0x81014F44b0a345033bB2b3B21C7a1A308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LMDAC1dXV5DcKo3iM4EieTqktsdzphIygflEa4ka3npcYeJ3mcNpXMA9IDmFOHPC+5Iz/BElwM6GmmQapAAAAAElFTkSuQmCC",chainId:1,chainType:"ether",chainTypeMoralis:"eth",customName:"Ethereum",isSupported:!0},10:{...Ud,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACW5JREFUeAHtnT1sHEUUx9+eD0QF14PwpoQCGwkJqtiRgAYJg5KGgo8EiVT5IIgyiYNLiIiTCqR8GAqaRMSR0gRQLqEhAil3KZKCImsJKhonFSI+L+8/u+es77w7b3dn9tb2/KSzz3t7vr357/uYN7OzHtWckPwWjdE0PxmnBu3gTeP88PnvFv9ukad+J9+wzD+XeXsQb+nSKt3n93ZphTq8eZlqjEc1I3zK9+k/mmERJrkhp/kIfTJJyEJ51OHflyGS9yjoUI2ohSBh05/mX+9wI80YF0D74cqS2vy5C95K0KYRMzJBlCtq0iGCEMTWUAcicWapRzfYtQU0AioXJHzCn+Qv/hE/Phzy/3UipAsszImqhalMELYIny3iPD+dps1ExcJYFyR2Tcf56WHazFQkjFVB2D0d4kxpttauKQ9xjPF6wQJZwoogm9Y9yWlzn2avDWtpkGGUVYzRbdq6YoBpPuFu83c17oaNWciWiRX5OcX9l0/JEEYEiV3Uj1SX/kTVILb0aJcJF1ZaECXGGF2vvIddNwyJUkoQFmMyFmNrZFHlQVFzV5n6WGFBnBiplBKlkCBODC2FRcktSBwzbjsxtCxzX+XlvDElVz8kEcCdGHowsHZdtVkOcllIOObf3/bZVH46bCm7pCOVYgvhQaSvnRiFmIw7zCJEgqhyyPbrgZvksLTMonVZLogbQxTk9RaCqq0TwwStuAKeSaYgHMQ/oq1dta2aaZ3rSnVZrkZlDbiuHWlZV7qFjKmRPp8cpmllZV0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3VbC8wTRtTdooFJqyiiRW17KObyp2fMsEfEtWkcT64uJxFjbLn/QhbW4QK2alt1AtSmWrvW9iYay5p42oTJA+m0KYUN0PfYEfF4reqL4olQvSJxZmmuoVY9D4i5hSa9s1pTEyQZKo+2dE92OaqlycaCULTDK/zOPdbRoxtRAkiaqPrfIgmEcz3FiTxgWCAA2OCz22hidpEXckoBpRO0EGiUcqIdIEFhqm/rK20eKdraE1I6PVjZbjRXUCfizxe++rJUR61B6VK5LyPxFwTRTwwp+SAAAAAElFTkSuQmCC",chainId:10,chainType:"optimism",chainTypeMoralis:"optimism",customName:"Optimism",isSupported:!0},56:{...Rd,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACcRJREFUeAHlnU2IHMcVgF9V9+iPWTMbSJyIEGmTgwOJtR3QIZegWYgVmUBWOoQEQmIZcsjNziEHX6KNIaccvL75EIh0yCEnaQOJ7ZVhxxfjg8GzBoNtsLW66GBjdrVrS5Zmusr1eqbGPbszPdX1273+YFczy/z09KdXr+p1TRWBirN9PWnBCWjHETsFfVgASk6JP5/mAC1CoAVc/OQhsMM57BCArew+45sQw60+p5vwGXTnL3V3oMIQqBjbLyen4wZbJowkDKAtDvA0WARFCZldQvmNHqOb8+e7XagQlRCyfTNpxym7yClZti1gFsNI6vQIuTb/RLcDgQkmBJuiuMmeAU4uirsJVIBMDuUrvR59ff7J7hYEwLuQ7fUkiRm7DBF56kD7XyHEibnaS8nffIvxJiTLDRH/l7jZhhrhW4xzIdg0RU12hXDyLNQYX2KcCtl77QzmiJUqN01lkDmm+fN3roEjnAipa/NUgk4/JU+7iBYKlsGoiGP+NhxeGYgYqPK3775yxnozbC1CDkuuKAshfLX5xDt/BktYEYJNVCPi13lFxhO+wdwiEv6SjSbMWMhQx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0qaUyvuH7IkRPHgcwe/HpPkKLQMYeXHuQldp7Xfl2e9Zrwv8Xerdj26khJaBvSpVGYiyEOx1iTbwEuf+Z6hIykqpgoyUkVKrC9RzyyOF5iu4DJHEU9dbHiH4BoQL64F6XsisSKmEDNDb01Brlzbks/Uk4aF3apsQKZWR4XPbPEnVpNRdBmIkBMGcElG+QUjA/alyO32GQibwoFuvSqogJSgcun1GLlVic+I8oQePQRCDvv59WJm2QUtZrApB7r6SPEsjfiVkXvEB5gsshzQvdFfBItaFIMNF/XF/jDYcTjpYKLTRRO3HiRDJ7npyWWS7K4clt7iKijzG62UV8cj57lXseXDOr0HdEbki/ZwsuJSBOI2QPIOeGFshhDwF9cJZ8zQJb0IkdRCDTRNh/Bqh9GrTYJCng3chkkxMJJJ+tXJMFzhZ69+DVVvd2LIEE5JnD/cuybbLIOd8y8EvvIpoWANOb8w92e1AYCohJA/WxxhAQoAvi3JEYlvQYD0R6HAg3TiFteOecoMqlROyH9wcPj4GCUSwCIwtwHDR+uHinS1cODL/eD5YTGdnuKjOFjB+Gyi9JeTeTu9BJ1RTpMqXLiNpVjp6y9MAAAAASUVORK5CYII=",chainId:56,chainType:"bsc",chainTypeMoralis:"bsc",customName:"BNB Chain",isSupported:!0},137:{...qd,rpcUrls:{default:{http:["https://polygon-bor-rpc.publicnode.com"]}},logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAC61JREFUeAHtnU9sFNcdx39vdmNMbbATQHZSEOtQieYSO5dYzQHbBzDqAcyhOSUBDimRooSkVLkFL84tbRRHUaqklVpIeuLCn14wqMKOVCoiVVmnJypRrwVN7DYpCzHJ2njn5X3f7phde3bnzcyb2Z1hP9LKa7PGu/N97/f3zXuMGpz03q9SZN7rS7DkdpMKPYwS2znxF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uLmROOz0MqX4MC6mazXIygEy/qBXqmjbatwi6lFXPRHl9fdGJ7YpnV6nvEKOLy6nuei9UxO3ZFXFAOrnh0z2CBtoHKCYdBZDQoa4bn6heeRRcHg6Rs/1ol78AZPzoaiU6esCl4eCeTposnlsnm4gBg/52DyLpiir8CkG8H/0akDHWkSQ+h+9CqRPKUYSWXpAweHEOsQAWu7UkaIsLj2FBIgeMPCZ+eKSFjGA9taaLLNwNhp7vyLvzeQnjk9s1XokVCC9Tnm+ummeYTHay7EcVG05SxzWNSvKCXTnsrG9Nw/J2RIXhx/QrCgn8K3kirOlkGaMHaQIU/QVy+lqh3npIrS9/aIqTJDmyY7QN1uMhDBoJjHzFGfJ8bCEsKjb7pcyoaTCYCP5GDEbMsJHnOP55fGgTVM16iZIOVgtieMySic0pChcsrg/A7djlO4AqCsNIUg5qI8lDGOAFxdWBHFqQ1Y8JhmxTIGxc2GbJCcaTpDVyK3QW5N9CZ7oNanQQ6VN68UFTZX2i6xMQIub6eREdzMn8iCM/lmDEjMFvjxLS4XJepkiVX4AbuLqSV+48XkAAAAASUVORK5CYII=",chainId:137,chainType:"matic",chainTypeMoralis:"polygon",isSupported:!0},8453:{...Nd,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACFhJREFUeAHtnT1sHEUUx/+7pCJIuAltzjVIdppQ+lwT5A8kKG3TIYESSwhKn0sQUhwpiDJ2SSRiI5Ha55YmjpTUXrehuQY6e5j/zq19n769eTP7dfuTLne52Lm9/e97b2b2zXsBis6qmtN/NvEe7uIS8wj0s0JDP/P95NFLJ34oRN2/v0aIM1zoZ+AUR0EHBSZA0VhVDX3yV/QJXQSFgD75bolAYQIcxSIdBacoEMUQZFU19ZGs6scK3AswiUg/2tr6DrQ4beRMfoLQF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5+8AH942Gyx7SbYCnL/rJq6d55JdmWFTsIS6h+E4cmibl1CLMkiOjSUT6tarCU5ar8o3ffIAeCCCvK7Sw+QQR82J3ezC5YFwrO1oyb5U8DsrN2IQucsaxLT04e3/qscVsxqeovPaNLgXhJiWF89crhIXCq7acqHQkVX04keQBDYVM9bSQDXwYhW9+BWEGGtpuWgSkysmVrTStlC1xb8gCWUVxqN7GkV2giSUQxiTMKjiZARRvvO0ZC9IgplQNlGkGMP5BPObmVLr2TWNIz9BemH/DLbLMB0aGsiWKN4bw+0YPVnoeVEMQXox62O8CcZ69KKuDWOIwA0y3Fd5oYXIKDakpXiCDGJKoS/iPSzEDbSSsrameOcchiegHZgY0ImLIrB0CBudXcQlRNp5uaK0/A/QqtacrEVArQAAAABJRU5ErkJggg==",chainId:8453,chainType:"base",chainTypeMoralis:"base",isSupported:!0},42161:{...Md,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAEuFJREFUeAHlXQ1sFOeZfmd2ba+NbWwwBv8QbAjY/BuKayeQsE5Acmp0NiRcepe0IVV71zvpjnA65VRdq8JdTydFOsXRnYh6rZqgUpoqTbDbEJwG4qUtDcZOMBiojQleEv5iSGPw7/7MfP3ez5717O7MzuzszOw6fSKz49lvN+N55n2f932/+d7hIMVR5m7KyxnzuQlxLBJ5sZwHWATAlXFA8gjh8oCDvLAPEBjiODJEgPPiryKQs7zIDwAJnh3JdnV7PS1DkMLgIMVQWVtf5hScjYQnVTwQNz2xZWAiCICXktlNyWwhxH/2Yue73ZBCSAlCVtXWu0XCNzkAGs0mQAtIEH3xcIJw4HxXmweSjKQRgq4oe8y/mx5CEz2KKkgBMHII7BX4tBO9p1q8kATYTsiK6q9UAQ+7eMI9E+X/UwiUnFcFLm2f3cTYRkhl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AK8RVgoFHHlkv8krQcmNqYE/WoVMDZucTmtAp4pGYUQ8FQ+glxn6dkIGSIRKbHgomIdmPzcNuoNjYXyiYds9IAn/3JovYMLFLyjMNEyADMeMfLInAMBl/kvTcQtmBJEYGwoRHr9ov9KkIIwKuhIQXfeIB4IEQi+4PngmgKWq3GWQgzGu0CPYmj6kD8tJI5ther87H4mnB1AfcD16/1EbLLHdphbjWyI0SMwpUL7AcQpO+vUNer2nRg6kWImFqxhGfXeWGLyY8dMbvWTNcVCQsIUTCitqv7KJFye9/YQR/0ir2Xeg40gwWwVSXFYnb1/q75y5c0soRPp+zqQZmHahWZI1t7z/5rgcshKUWIgcLj0XHXkrMMzCzYJl7UoJthEiYEcRggseRAyDCq4kkeUZgOyESkBgeeHeKaQytt3CtI66RZrPC2HiRNELkWFW7zU1Esgs4stlucnChEp3GauU5voWtAEgyUoIQObA+RkONKl7kGwknVplNEBIgAueh39sd5Jyt8Tx83g6kHCGRKHO787InsquoX18rgljOT7W1xeadrF9kZGGT+n/scDTZVIfzipx4lbrGAeoarw5njXiS5Yr04s84I4HsxczfIwAAAABJRU5ErkJggg==",chainId:42161,chainType:"arbitrum",chainTypeMoralis:"arbitrum",customName:"Arbitrum",isSupported:!0},43114:{...Id,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGUAAABkCAYAAACfIP5qAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAACQJJREFUeAHtnc9zk0UYx7+7Kdo2VePFghfC4J14xhlecEY8oni2cNUDqDNypOgfABzkautZpN7kYPty8B7uOoYZHQoX6ghtEfI+7vMmb0iTvHl/7e67KfnM0JTkTfI23zz7fHf32X0FJoD7nlcPUGkcAA4HoAYkaiDU1UM1of6R+td/vLpvS923pX5rQdBWQHRvhuSfbbTv7gLNI76/BYcRcJCHntcAKicCSZ4geIMfugaa6i9vikD4Adp3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QRh1Xw5XJ5Le6CryaxWWmrEqm/gjDPmURXbjYUzTo9pz7vKOK+A9RyblfG8a1Ckgq9lv8B/ms5OCQW+c4AAAAASUVORK5CYII=",chainId:59144,chainType:"linea",chainTypeMoralis:"linea",customName:"Linea",isSupported:!0},130:{...zd,logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABkCAYAAAB5CTUuAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAOdEVYdFNvZnR3YXJlAEZpZ21hnrGWYwAAN7ZJREFUeAHNfQe8ZVV577fW3vu0e+/0gkMdZACpCoggPiwYDIoJ8YklFoyJkmjy8uRn1GeIEFNMNNEkahJLxIhR84gxGiERCCIi8PBHCyLSuzMw/bbT9l7rfXXtfYcBhibu+Z255+yzy1pf/X9l7ePg52x7CbykU7Zn1+xZTaz+cP6W/fYrDjiw72b3ilAujw52d+BWQfStGOJi380yiABxGABcmHYQH4rgZnHPZnBwby8svu3q8trb/7D82r2j8Xh9CVM/vRQuLeHnaHPwzG/uXROnrl5cxXVvb5146Mqw+tC5TnlABrBPd5gtbvtOEVz0AMHHGHPwkLmApI6Zcx3naAJhwAyg/yr6hnbhN6WLruqHYTnfDtuQUXdMjPIb7w733PTF4X/9pF0WP/5zOG87PMPbM8aAD068cfW+cfej1/k1Lz8+e+ELohsfADBaUoUKfKeDZAwwHM3jCD2g5CPdQxqxI6mHDFwH+UL0HkSiPR9HE4r8PW2oD8FDuzvBO8P8EHJf4HHtTXiNGy4YXXLN/WHzf90wvP+Kv4XzZuEZ2H6mDEDzkv/R4pMPL4fx1Ue3Dv7FXrb7oRC394ZxFuXbI2HR0MQSsk4b6RXRtIzB+1wJG+tB446IjHFdJ5TuEwMCvkWCO9EB+oTsgYCKgUrE+6rBEFou52nTvVpuCt8v2jZX3n3dFdXN538uXnTeeYOL7wNo3Oxp3n4mDDgbzvbHdv3zj5845m0dv/Q1MHSrgtsG864POUoyy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ichain",isSupported:!1},7565164:{id:7565164,name:"Solana",nativeCurrency:{decimals:18,name:"Solana",symbol:"SOL"},rpcUrls:{default:{http:[""]}},logo:"https://ipfs.pantograph.app/ipfs/QmZhKcFZVvw5r3cGLfSLsLcd1GzbQK5Vf7aoVYvgktzUUA?filename=Solana_logo.png",chainId:7565164,isSupported:!1}},Vd={"keyring-chatbot-agent-sdk-test":{name:"keyring-chatbot-agent-sdk-test",modal:{title:"Keyring Agent",icon:"https://nft.keyring.app/favicon.ico"},agentConfig:{storageKey:"keyring-chatbot-agent-sdk-test-history",persistHistory:!0,debug:!0,generateSuggestions:!1,subgraph:{theGraphApiKey:"4c67ac7a75b21befbd28dc9120c709f1",coinPoolBaseUrl:"https://api.coinpool.app",keyringPoolBaseUrl:"https://pool-data.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create"},subagents:{"pool-subgraph":!0,"wallet-action":!0,pool:!1}}},"keyring-chatbot-coinpool-test":{name:"keyring-chatbot-coinpool-test",modal:{title:"Keyring CoinPool Agent",icon:"https://coinpool.app/favicon.ico"},agentConfig:{storageKey:"keyring-chatbot-coinpool-test-history",persistHistory:!0,debug:!0,generateSuggestions:!1,nftLink:"https://nft.keyring.app",subgraph:{theGraphApiKey:"4c67ac7a75b21befbd28dc9120c709f1",coinPoolBaseUrl:"https://api.coinpool.app",keyringPoolBaseUrl:"https://pool-data.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create"},subagents:{"pool-subgraph":!0,"wallet-action":!0,pool:!1},vectorKB:{enabled:!0,minScore:1.4,token:"ABYFMGZyZXNoLXNhbG1vbi04NDEzNS11czFhZG1pbk1qTXpaVEV5WVdJdE1UQmpaaTAwWTJabUxUbG1PRFl0TkdabE0yVXlaREkyTVRkag==",url:"https://fresh-salmon-84135-us1-vector.upstash.io"}}},"keyring-chatbot-coinpool":{name:"keyring-chatbot-coinpool",modal:{title:"Keyring CoinPool Agent",icon:"https://coinpool.app/favicon.ico"},agentConfig:{storageKey:"keyring-chatbot-coinpool-history",persistHistory:!0,debug:!0,generateSuggestions:!1,nftLink:"https://nft.keyring.app",subgraph:{theGraphApiKey:"4c67ac7a75b21befbd28dc9120c709f1",coinPoolBaseUrl:"https://api.coinpool.app",keyringPoolBaseUrl:"https://pool-data.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create"},subagents:{"pool-subgraph":!0,"wallet-action":!0,pool:!1},vectorKB:{enabled:!0,minScore:1.4,token:"ABYFMGZyZXNoLXNhbG1vbi04NDEzNS11czFhZG1pbk1qTXpaVEV5WVdJdE1UQmpaaTAwWTJabUxUbG1PRFl0TkdabE0yVXlaREkyTVRkag==",url:"https://fresh-salmon-84135-us1-vector.upstash.io"}}},"keyring-chatbot-agent":{name:"keyring-chatbot-agent",modal:{title:"Keyring Agent",icon:"https://nft.keyring.app/favicon.ico"},agentConfig:{storageKey:"keyring-chatbot-agent-history",persistHistory:!0,debug:!0,generateSuggestions:!1,subgraph:{theGraphApiKey:"4c67ac7a75b21befbd28dc9120c709f1",coinPoolBaseUrl:"https://api.coinpool.app",keyringPoolBaseUrl:"https://pool-data.keyring.app",linkAddLiquidity:"https://coinpool.app/pair/create"},subagents:{"pool-subgraph":!0,"wallet-action":!0,pool:!1}}}},Gd=["https://nft-demo.keyring.app","https://nft.keyring.app","https://coinpool.app","https://coinpool-op.bacoor-test001.xyz","https://dev2-coinpool-op.bacoor-test001.xyz","https://rwa.bacoor-test001.xyz","https://test.coinpool.app","https://test.smart-vault.tech","https://smart-vault.tech"],Jd={en:"en-US",ja:"ja-JP",cn:"zh-CN"},Wd=(e,t="en")=>{const n=new Date,r=new Date(n);r.setDate(r.getDate()-1);const i=new Date(e);return i.setHours(0,0,0,0),n.setHours(0,0,0,0),r.setHours(0,0,0,0),i.getTime()===n.getTime()?u("today",t):i.getTime()===r.getTime()?u("yesterday",t):i.toLocaleDateString(Jd[t],{month:"short",day:"numeric",year:i.getFullYear()!==n.getFullYear()?"numeric":void 0})},Kd=e=>new Promise(t=>setTimeout(t,e||0)),Yd=(e,t=5,n=5)=>{const r=e||"";return r.length<=t+n?r:`${r.substring(0,t)}...${r.substring(r.length-n)}`},Xd=e=>e?jd[e]?.chainTypeMoralis??"":"",Qd=e=>e?jd[e]?.chainType??"":"";function Zd(e){if(xt(e))return!0;try{return new If(e),!0}catch{return!1}}function $d(){return Vd["keyring-chatbot-agent-sdk-test"]}const _d={send_native:{label:"actionSendNativeLabel",description:"actionSendNativeDesc",fields:[{key:"to_address",label:"fieldToAddress",type:"address",placeholder:"0x...",required:!0,validation:"address"},{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},send_token:{label:"actionSendTokenLabel",description:"actionSendTokenDesc",fields:[{key:"contract_address",label:"fieldTokenContract",type:"address",placeholder:"0x... token contract",required:!0,validation:"address",editable:!1},{key:"token_symbol",label:"fieldTokenSymbol",type:"text",placeholder:"e.g. USDC",required:!1,editable:!1},{key:"decimals",label:"fieldDecimals",type:"number",placeholder:"18",required:!1,editable:!1},{key:"to_address",label:"fieldToAddress",type:"address",placeholder:"0x...",required:!0,validation:"address"},{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},swap_token:{label:"actionSwapTokenLabel",description:"actionSwapTokenDesc",fields:[{key:"token_in",label:"fieldTokenIn",type:"address",placeholder:"0x... or native",required:!0,editable:!1},{key:"token_in_symbol",label:"fieldTokenInSymbol",type:"text",placeholder:"e.g. ETH",required:!1,editable:!1},{key:"token_out",label:"fieldTokenOut",type:"address",placeholder:"0x...",required:!0,editable:!1},{key:"token_out_symbol",label:"fieldTokenOutSymbol",type:"text",placeholder:"e.g. USDC",required:!1,editable:!1},{key:"token_in_decimals",label:"fieldTokenInDecimals",type:"number",placeholder:"18",required:!1,editable:!1},{key:"token_out_decimals",label:"fieldTokenOutDecimals",type:"number",placeholder:"18",required:!1,editable:!1},{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},approve_token:{label:"actionApproveTokenLabel",description:"actionApproveTokenDesc",fields:[{key:"contract_address",label:"fieldTokenContract",type:"address",placeholder:"0x... token contract",required:!0,validation:"address",editable:!1},{key:"token_symbol",label:"fieldTokenSymbol",type:"text",placeholder:"e.g. USDC",required:!1,editable:!1},{key:"spender_address",label:"fieldSpenderAddress",type:"address",placeholder:"0x... spender contract",required:!0,validation:"address",editable:!1},{key:"amount",label:"fieldAmountUnlimited",type:"amount",placeholder:"0.0 or leave empty for max",required:!1,validation:"amount"},{key:"decimals",label:"fieldDecimals",type:"number",placeholder:"18",required:!1,editable:!1}]},wrap_native:{label:"actionWrapNativeLabel",description:"actionWrapNativeDesc",fields:[{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},unwrap_native:{label:"actionUnwrapNativeLabel",description:"actionUnwrapNativeDesc",fields:[{key:"amount",label:"fieldAmount",type:"amount",placeholder:"0.0",required:!0,validation:"amount"}]},send_nft:{label:"actionSendNftLabel",description:"actionSendNftDesc",fields:[{key:"contract_address",label:"fieldNftContract",type:"address",placeholder:"0x... NFT contract",required:!0,validation:"address",editable:!1},{key:"token_id",label:"fieldTokenId",type:"text",placeholder:"e.g. 1234",required:!0,editable:!1},{key:"to_address",label:"fieldToAddress",type:"address",placeholder:"0x...",required:!0,validation:"address"},{key:"token_standard",label:"fieldTokenStandard",type:"text",placeholder:"ERC721 or ERC1155",required:!0,editable:!1},{key:"amount",label:"fieldAmount",type:"text",placeholder:"1",required:!0},{key:"maxAmount",label:"fieldMaxAmount",type:"text",placeholder:"",required:!1,editable:!1,hidden:!0},{key:"nft_name",label:"fieldNftName",type:"text",placeholder:"e.g. Bored Ape #1234",required:!1,editable:!1}]}};function eh(e){return xt(e)}function th(e){if(!e||""===e.trim())return!1;const t=parseFloat(e);return!isNaN(t)&&t>0}const nh=n.createContext(void 0),rh=()=>{const e=n.useContext(nh);if(!e)throw new Error("useConnect must be used within ConnectProvider");const t=e.account?.chainId;return{...e,chainData:void 0!==t?jd[t]:void 0,chainId:t,chainType:Qd(t),chainTypeMoralis:Xd(t),isChainSupported:!(void 0===t||!jd[t]?.isSupported)}},ih=({children:e,initialAccount:n})=>t.jsx(nh.Provider,{value:{account:n||null},children:e}),oh="chat_widget_messages",sh=200,ah="welcome-message",ch=()=>Math.random().toString(36).substring(2,12);function uh(e){return e.map(e=>({...e,timestamp:new Date(e.timestamp),...e.walletActions?{walletActions:e.walletActions.map(e=>"submitted"===e.status?{...e,status:"pending"}:e)}:{}}))}function lh(){const e=g.getItem(oh);if(!e)return null;try{const t=JSON.parse(e);if(t&&void 0!==t.owner&&Array.isArray(t.messages))return{owner:t.owner,messages:uh(t.messages)};if(Array.isArray(t))return{owner:"",messages:uh(t)}}catch{}return null}function fh(e,t){g.setItem(oh,JSON.stringify({owner:e,messages:t}))}function dh({customWelcomeMessage:e}={}){const{account:t}=rh(),{t:r}=h(),i=(o=t?.address,s=t?.chainId,o&&s?`${o}_${s}`:"");var o,s;const a=n.useMemo(()=>{return t=e||r("welcomeMessage"),[{id:ah,text:t,sender:"bot",timestamp:new Date}];var t},[r,e]),[c,u]=n.useState(()=>i||"pending"),[l,f]=n.useState(()=>function(e,t){const n=lh();return e?n&&n.owner===e?n.messages:t:n?.messages??t}(i,a));if("pending"===c&&i){const e=lh();e&&e.owner===i?f(e.messages):fh(i,l),u(i)}else"pending"!==c&&i&&c!==i&&(f(a),fh(i,a),u(i));n.useEffect(()=>{"pending"!==c&&fh(c,l)},[l,c]),n.useEffect(()=>{!function(){const e=[];for(let t=0;t<g.length;t++){const n=g.key(t);n&&n.startsWith(oh+"_")&&e.push(n)}e.forEach(e=>g.removeItem(e))}()},[]);return{messages:n.useMemo(()=>l.map(t=>t.id===ah?{...t,text:e||r("welcomeMessage")}:t),[l,r,e]),addMessage:n.useCallback((e,t,n={})=>{const{buttons:r,walletActions:i,actionButtons:o,typeChat:s="web3"}=n,a={id:ch(),text:e,sender:t,timestamp:new Date,typeChat:s,...r&&{buttons:r},...i&&i.length>0&&{walletActions:i},...o&&o.length>0&&{actionButtons:o}};return f(e=>{const t=[...e,a];return t.length>sh?t.slice(t.length-sh):t}),a},[]),updateWalletAction:n.useCallback((e,t,n)=>{f(r=>r.map(r=>{if(r.id!==e||!r.walletActions)return r;const i=r.walletActions.map((e,r)=>r===t?{...e,...n,...n.parameters&&{parameters:{...e.parameters,...n.parameters}}}:e);return{...r,walletActions:i}}))},[]),updateMessageText:n.useCallback((e,t)=>{f(n=>n.map(n=>n.id===e?{...n,text:t}:n))},[]),updateMessageType:n.useCallback((e,t)=>{f(n=>n.map(n=>n.id===e?{...n,typeChat:t}:n))},[]),clearMessages:n.useCallback(()=>{f(a),"pending"!==c&&fh(c,a)},[c,a]),clearMessagesById:n.useCallback(e=>{if(0===e.length)return;const t=new Set(e);f(e=>{const n=e.filter(e=>!t.has(e.id));return n.length>sh?n.slice(n.length-sh):n})},[]),getMessageById:n.useCallback(e=>l.find(t=>t.id===e),[l])}}let hh=null;function ph(e){hh=e}const mh=n.createContext(void 0),gh=()=>{const e=n.useContext(mh);if(!e)throw new Error("useConfig must be used within ConfigProvider");return e},bh=({children:e,initialConfig:n})=>t.jsx(mh.Provider,{value:{config:n||null},children:e}),wh={"0x1":"https://ethereum-rpc.publicnode.com","0xa":"https://mainnet.optimism.io","0x38":"https://bsc-dataseed.binance.org","0x89":'https://polygon-bor-rpc.publicnode.com"',"0x2105":"https://mainnet.base.org","0xa4b1":"https://arb1.arbitrum.io/rpc","0xa86a":"https://avalanche-c-chain-rpc.publicnode.com","0xe708":"https://rpc.linea.build"};function yh(e){return null==e||""===e?null:"string"==typeof e?e.startsWith("0x")?e.toLowerCase():`0x${parseInt(e,10).toString(16)}`:`0x${e.toString(16)}`}function vh(){const{account:e}=rh(),{config:t}=gh(),i=n.useMemo(()=>{const e=$d().agentConfig,n=function(e){if(!e)return;const t={};for(const[n,r]of Object.entries(e)){const e=yh(n);e&&(t[e]=r)}return Object.keys(t).length>0?t:void 0}(t?.rpcUrls);return new r.AgentCore({secretKey:"i_love_bacoor",storage:g,rpcUrls:wh,...e,llm:{model:"gemini-2.5-flash-lite",...e.llm??{}},...n?{rpcUrls:{...wh,...e.rpcUrls??{},...n}}:{}})},[]);return n.useEffect(()=>{i.setUserContext({walletAddress:e?.address??null,chain:yh(e?.chainId)})},[i,e?.address,e?.chainId]),i}async function Ah(e,t,n){try{const r=e.getToolRegistry().get(t);if(!r)return null;const i=e.getUserContext(),o=await r.execute(n,i);return o.success?o.data??null:null}catch{return null}}function kh(e){return{symbol:e.symbol,name:e.name,balance:e.balance,balanceFormatted:e.balance_formatted,usdValue:e.usd_value,usdPrice:e.usd_price,decimals:e.decimals,logo:e.logo??e.thumbnail??void 0,contractAddress:e.token_address}}async function xh(e,t){const{action:n,chainId:r,parameters:i}=t;try{if("send_native"===n||"wrap_native"===n){const n=await async function(e,t){const n=await Ah(e,"get-wallet-token-balances",{chain:t}),r=(n?.tokens??[]).find(e=>!0===e.native_token);return r?kh(r):void 0}(e,r);if(n){const e=i.spendable;return{...t,tokenInfo:e?{...n,spendableFormatted:e}:n}}}else if("send_token"===n||"approve_token"===n||"unwrap_native"===n){const n=await async function(e,t,n,r){const i=await Ah(e,"get-wallet-token-balances",{chain:t}),o=i?.tokens??[],s=n&&o.find(e=>e.token_address.toLowerCase()===n.toLowerCase());if(s)return kh(s);const a=r&&o.find(e=>e.symbol?.toUpperCase()===r.toUpperCase());return a?kh(a):void 0}(e,r,i.contract_address,i.token_symbol);if(n)return{...t,tokenInfo:n}}else if("send_nft"===n&&i.contract_address&&i.token_id){const n=await async function(e,t,n,r,i,o){const s=await Ah(e,"get-wallet-nfts",{chain:t,limit:100,exclude_spam:!1}),a=(s?.result??[]).find(e=>e.token_address.toLowerCase()===n.toLowerCase()&&e.token_id===r);if(!a){if(!i&&!o)return;return{name:i||`#${r}`,tokenId:r,contractAddress:n,tokenStandard:o}}const c=a.normalized_metadata?.image||a.media?.original_media_url||void 0;return{name:a.normalized_metadata?.name||a.name||i||`#${a.token_id}`,image:c??void 0,tokenId:a.token_id,contractAddress:a.token_address,tokenStandard:a.contract_type||o}}(e,r,i.contract_address,i.token_id,i.nft_name,i.token_standard);if(n){const e={...i};return e.amount||(e.amount="1"),{...t,parameters:e,nftInfo:n}}}}catch{}return t}function Eh(e){const t=e.props;return!!t&&"string"==typeof t.action&&"string"==typeof t.chainId&&"string"==typeof t.walletAddress&&!!t.parameters&&"object"==typeof t.parameters}function Ch({agent:e,addMessage:t}){const[r,i]=n.useState(!1),[o,s]=n.useState([]);return{send:n.useCallback(async(n,r)=>{const o=n.trim();if(o){t(o,"user"),i(!0),s([]);try{const n=await e.chat(o,r?{language:r}:void 0),i=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e){if(Eh(n)){const e=n.props,r="object"==typeof e.parameters&&null!==e.parameters?e.parameters:{};t.push({component:n.component,action:String(e.action),chainId:String(e.chainId),walletAddress:String(e.walletAddress),parameters:{...r},...n.language?{language:n.language}:{},status:"pending"});continue}const e=n.props??{};t.push({component:n.component,action:"",chainId:"string"==typeof e.chainId?e.chainId:"",walletAddress:"string"==typeof e.walletAddress?e.walletAddress:"",parameters:{},componentProps:e,...n.language?{language:n.language}:{},status:"pending"})}return t}(n.uiActions),a=i.length>0?await function(e,t){return Promise.all(t.map(t=>xh(e,t)))}(e,i):i,c=function(e){if(!e||0===e.length)return[];const t=[];for(const n of e)n&&"string"==typeof n.label&&n.label.trim()&&"string"==typeof n.prompt&&n.prompt.trim()&&t.push({label:n.label,prompt:n.prompt,..."string"==typeof n.language&&n.language?{language:n.language}:{}});return t}(n.actionButtons),u=n.answer||"";t(u,"bot",{walletActions:a.length>0?a:void 0,actionButtons:c.length>0?c:void 0}),s(n.suggestedPrompts??[])}catch(a){const e=a instanceof Error?a.message:String(a);t(`⚠️ ${e}`,"bot")}finally{i(!1)}}},[e,t]),isTyping:r,suggestedPrompts:o,setSuggestedPrompts:s}}const Sh=({address:e,chainId:r})=>{const[i,o]=n.useState(!1),{isChainSupported:s}=rh(),{t:a}=h(),c=n.useCallback(()=>{if(!e)return;const t=()=>{o(!0),setTimeout(()=>o(!1),2e3)},n=()=>{const n=document.createElement("input");n.value=e,document.body.appendChild(n),n.select(),document.execCommand("copy"),n.remove(),t()};try{navigator.clipboard.writeText(e).then(t).catch(n)}catch{n()}},[e]);if(!Zd(e||""))return null;const u=void 0!==r?jd[r]:void 0;return t.jsxs("div",{className:"chat-user-info",children:[t.jsxs("span",{className:"user-wallet",children:[t.jsxs("span",{style:{marginRight:8},children:[u?.customName||u?.name||`Chain ${r}`,":"]}),t.jsx("a",{title:a("viewOnExplorer"),style:{pointerEvents:s?"auto":"none"},href:`${u?.blockExplorers?.default?.url??""}/address/${e}`,target:"_blank",rel:"noopener noreferrer",children:Yd(e)||"Not connected"})]}),t.jsx("button",{className:"copy-address-btn",onClick:c,"aria-label":a("copyWalletAddress"),type:"button",title:a(i?"copied":"copyAddress"),children:i?t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none",children:t.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"#0B3988",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}):t.jsx("svg",{width:"14",height:"14",viewBox:"0 0 18 18",fill:"none",children:t.jsx("path",{d:"M8.1 15.75H13.23C12.9638 16.4152 12.5041 16.9852 11.9105 17.3863C11.3168 17.7874 10.6165 18.0012 9.9 18H3.6C2.64522 18 1.72955 17.6207 1.05442 16.9456C0.379285 16.2704 0 15.3548 0 14.4V7.2C0.00104929 6.32332 0.321408 5.47704 0.901163 4.81944C1.48092 4.16183 2.28037 3.73792 3.15 3.627V10.8C3.15238 12.1121 3.67466 13.3698 4.60245 14.2975C5.53024 15.2253 6.78791 15.7476 8.1 15.75ZM15.75 3.825H17.658C17.6027 3.74389 17.5393 3.66852 17.469 3.6L14.4 0.531C14.3337 0.460854 14.258 0.400274 14.175 0.351V2.25C14.1769 2.66713 14.3434 3.06664 14.6384 3.3616C14.9334 3.65656 15.3329 3.8231 15.75 3.825ZM15.75 5.175C14.9747 5.17357 14.2315 4.86494 13.6833 4.31671C13.1351 3.76847 12.8264 3.02532 12.825 2.25V0H8.1C7.14522 0 6.22955 0.379285 5.55442 1.05442C4.87928 1.72955 4.5 2.64522 4.5 3.6V10.8C4.5 11.7548 4.87928 12.6704 5.55442 13.3456C6.22955 14.0207 7.14522 14.4 8.1 14.4H14.4C15.3548 14.4 16.2705 14.0207 16.9456 13.3456C17.6207 12.6704 18 11.7548 18 10.8V5.175H15.75Z",fill:"#0B3988"})})})]})};var Th=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,Mh=Math.ceil,Ih=Math.floor,Bh="[BigNumber Error] ",Nh=Bh+"Number primitive has more than 15 significant digits: ",Rh=1e14,Lh=14,Dh=9007199254740991,Fh=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],Oh=1e7,Ph=1e9;function Uh(e){var t=0|e;return e>0||e===t?t:t-1}function qh(e){for(var t,n,r=1,i=e.length,o=e[0]+"";r<i;){for(t=e[r++]+"",n=Lh-t.length;n--;t="0"+t);o+=t}for(i=o.length;48===o.charCodeAt(--i););return o.slice(0,i+1||1)}function Hh(e,t){var n,r,i=e.c,o=t.c,s=e.s,a=t.s,c=e.e,u=t.e;if(!s||!a)return null;if(n=i&&!i[0],r=o&&!o[0],n||r)return n?r?0:-a:s;if(s!=a)return s;if(n=s<0,r=c==u,!i||!o)return r?0:!i^n?1:-1;if(!r)return c>u^n?1:-1;for(a=(c=i.length)<(u=o.length)?c:u,s=0;s<a;s++)if(i[s]!=o[s])return i[s]>o[s]^n?1:-1;return c==u?0:c>u^n?1:-1}function zh(e,t,n,r){if(e<t||e>n||e!==Ih(e))throw Error(Bh+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function jh(e){var t=e.c.length-1;return Uh(e.e/Lh)==t&&e.c[t]%2!=0}function Vh(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function Gh(e,t,n){var r,i;if(t<0){for(i=n+".";++t;i+=n);e=i+e}else if(++t>(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}var Jh=function e(t){var n,r,i,o,s,a=A.prototype={constructor:A,toString:null,valueOf:null},c=new A(1),u=20,l=4,f=-7,d=21,h=-1e7,p=1e7,m=!1,g=1,b=0,w={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},y="0123456789abcdefghijklmnopqrstuvwxyz",v=!0;function A(e,t){var n,o,s,a,c,f,d,m,g=this;if(!(g instanceof A))return new A(e,t);if(null==t){if(e&&!0===e.Oe)return g.s=e.s,void(!e.c||e.e>p?g.c=g.e=null:e.e<h?g.c=[g.e=0]:(g.e=e.e,g.c=e.c.slice()));if((f="number"==typeof e)&&0*e==0){if(g.s=1/e<0?(e=-e,-1):1,e===~~e){for(a=0,c=e;c>=10;c/=10,a++);return void(a>p?g.c=g.e=null:(g.e=a,g.c=[e]))}m=String(e)}else{if(!Th.test(m=String(e)))return i(g,m,f);g.s=45==m.charCodeAt(0)?(m=m.slice(1),-1):1}(a=m.indexOf("."))>-1&&(m=m.replace(".","")),(c=m.search(/e/i))>0?(a<0&&(a=c),a+=+m.slice(c+1),m=m.substring(0,c)):a<0&&(a=m.length)}else{if(zh(t,2,y.length,"Base"),10==t&&v)return C(g=new A(e),u+g.e+1,l);if(m=String(e),f="number"==typeof e){if(0*e!=0)return i(g,m,f,t);if(g.s=1/e<0?(m=m.slice(1),-1):1,A.DEBUG&&m.replace(/^0\.0*|\./,"").length>15)throw Error(Nh+e)}else g.s=45===m.charCodeAt(0)?(m=m.slice(1),-1):1;for(n=y.slice(0,t),a=c=0,d=m.length;c<d;c++)if(n.indexOf(o=m.charAt(c))<0){if("."==o){if(c>a){a=d;continue}}else if(!s&&(m==m.toUpperCase()&&(m=m.toLowerCase())||m==m.toLowerCase()&&(m=m.toUpperCase()))){s=!0,c=-1,a=0;continue}return i(g,String(e),f,t)}f=!1,(a=(m=r(m,t,10,g.s)).indexOf("."))>-1?m=m.replace(".",""):a=m.length}for(c=0;48===m.charCodeAt(c);c++);for(d=m.length;48===m.charCodeAt(--d););if(m=m.slice(c,++d)){if(d-=c,f&&A.DEBUG&&d>15&&(e>Dh||e!==Ih(e)))throw Error(Nh+g.s*e);if((a=a-c-1)>p)g.c=g.e=null;else if(a<h)g.c=[g.e=0];else{if(g.e=a,g.c=[],c=(a+1)%Lh,a<0&&(c+=Lh),c<d){for(c&&g.c.push(+m.slice(0,c)),d-=Lh;c<d;)g.c.push(+m.slice(c,c+=Lh));c=Lh-(m=m.slice(c)).length}else c-=d;for(;c--;m+="0");g.c.push(+m)}}else g.c=[g.e=0]}function k(e,t,n,r){var i,o,s,a,c;if(null==n?n=l:zh(n,0,8),!e.c)return e.toString();if(i=e.c[0],s=e.e,null==t)c=qh(e.c),c=1==r||2==r&&(s<=f||s>=d)?Vh(c,s):Gh(c,s,"0");else if(o=(e=C(new A(e),t,n)).e,a=(c=qh(e.c)).length,1==r||2==r&&(t<=o||o<=f)){for(;a<t;c+="0",a++);c=Vh(c,o)}else if(t-=s+(2===r&&o>s),c=Gh(c,o,"0"),o+1>a){if(--t>0)for(c+=".";t--;c+="0");}else if((t+=o-a)>0)for(o+1==a&&(c+=".");t--;c+="0");return e.s<0&&i?"-"+c:c}function x(e,t){for(var n,r,i=1,o=new A(e[0]);i<e.length;i++)(!(r=new A(e[i])).s||(n=Hh(o,r))===t||0===n&&o.s===t)&&(o=r);return o}function E(e,t,n){for(var r=1,i=t.length;!t[--i];t.pop());for(i=t[0];i>=10;i/=10,r++);return(n=r+n*Lh-1)>p?e.c=e.e=null:n<h?e.c=[e.e=0]:(e.e=n,e.c=t),e}function C(e,t,n,r){var i,o,s,a,c,u,l,f=e.c,d=Fh;if(f){e:{for(i=1,a=f[0];a>=10;a/=10,i++);if((o=t-i)<0)o+=Lh,s=t,c=f[u=0],l=Ih(c/d[i-s-1]%10);else if((u=Mh((o+1)/Lh))>=f.length){if(!r)break e;for(;f.length<=u;f.push(0));c=l=0,i=1,s=(o%=Lh)-Lh+1}else{for(c=a=f[u],i=1;a>=10;a/=10,i++);l=(s=(o%=Lh)-Lh+i)<0?0:Ih(c/d[i-s-1]%10)}if(r=r||t<0||null!=f[u+1]||(s<0?c:c%d[i-s-1]),r=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(o>0?s>0?c/d[i-s]:0:f[u-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,r?(t-=e.e+1,f[0]=d[(Lh-t%Lh)%Lh],e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=u,a=1,u--):(f.length=u+1,a=d[Lh-o],f[u]=s>0?Ih(c/d[i-s]%d[s])*a:0),r)for(;;){if(0==u){for(o=1,s=f[0];s>=10;s/=10,o++);for(s=f[0]+=a,a=1;s>=10;s/=10,a++);o!=a&&(e.e++,f[0]==Rh&&(f[0]=1));break}if(f[u]+=a,f[u]!=Rh)break;f[u--]=0,a=1}for(o=f.length;0===f[--o];f.pop());}e.e>p?e.c=e.e=null:e.e<h&&(e.c=[e.e=0])}return e}function S(e){var t,n=e.e;return null===n?e.toString():(t=qh(e.c),t=n<=f||n>=d?Vh(t,n):Gh(t,n,"0"),e.s<0?"-"+t:t)}return A.clone=e,A.ROUND_UP=0,A.ROUND_DOWN=1,A.ROUND_CEIL=2,A.ROUND_FLOOR=3,A.ROUND_HALF_UP=4,A.ROUND_HALF_DOWN=5,A.ROUND_HALF_EVEN=6,A.ROUND_HALF_CEIL=7,A.ROUND_HALF_FLOOR=8,A.EUCLID=9,A.config=A.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(Bh+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(zh(n=e[t],0,Ph,t),u=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(zh(n=e[t],0,8,t),l=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(zh(n[0],-Ph,0,t),zh(n[1],0,Ph,t),f=n[0],d=n[1]):(zh(n,-Ph,Ph,t),f=-(d=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)zh(n[0],-Ph,-1,t),zh(n[1],1,Ph,t),h=n[0],p=n[1];else{if(zh(n,-Ph,Ph,t),!n)throw Error(Bh+t+" cannot be zero: "+n);h=-(p=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(Bh+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw m=!n,Error(Bh+"crypto unavailable");m=n}else m=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(zh(n=e[t],0,9,t),g=n),e.hasOwnProperty(t="POW_PRECISION")&&(zh(n=e[t],0,Ph,t),b=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(Bh+t+" not an object: "+n);w=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(Bh+t+" invalid: "+n);v="0123456789"==n.slice(0,10),y=n}}return{DECIMAL_PLACES:u,ROUNDING_MODE:l,EXPONENTIAL_AT:[f,d],RANGE:[h,p],CRYPTO:m,MODULO_MODE:g,POW_PRECISION:b,FORMAT:w,ALPHABET:y}},A.isBigNumber=function(e){if(!e||!0!==e.Oe)return!1;if(!A.DEBUG)return!0;var t,n,r=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===o||-1===o)&&i>=-Ph&&i<=Ph&&i===Ih(i)){if(0===r[0]){if(0===i&&1===r.length)return!0;break e}if((t=(i+1)%Lh)<1&&(t+=Lh),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=Rh||n!==Ih(n))break e;if(0!==n)return!0}}}else if(null===r&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(Bh+"Invalid BigNumber: "+e)},A.maximum=A.max=function(){return x(arguments,-1)},A.minimum=A.min=function(){return x(arguments,1)},A.random=(o=9007199254740992,s=Math.random()*o&2097151?function(){return Ih(Math.random()*o)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,i,o,a=0,l=[],f=new A(c);if(null==e?e=u:zh(e,0,Ph),i=Mh(e/Lh),m)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));a<i;)(o=131072*t[a]+(t[a+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[a]=n[0],t[a+1]=n[1]):(l.push(o%1e14),a+=2);a=i/2}else{if(!crypto.randomBytes)throw m=!1,Error(Bh+"crypto unavailable");for(t=crypto.randomBytes(i*=7);a<i;)(o=281474976710656*(31&t[a])+1099511627776*t[a+1]+4294967296*t[a+2]+16777216*t[a+3]+(t[a+4]<<16)+(t[a+5]<<8)+t[a+6])>=9e15?crypto.randomBytes(7).copy(t,a):(l.push(o%1e14),a+=7);a=i/7}if(!m)for(;a<i;)(o=s())<9e15&&(l[a++]=o%1e14);for(i=l[--a],e%=Lh,i&&e&&(o=Fh[Lh-e],l[a]=Ih(i/o)*o);0===l[a];l.pop(),a--);if(a<0)l=[r=0];else{for(r=-1;0===l[0];l.splice(0,1),r-=Lh);for(a=1,o=l[0];o>=10;o/=10,a++);a<Lh&&(r-=Lh-a)}return f.e=r,f.c=l,f}),A.sum=function(){for(var e=1,t=arguments,n=new A(t[0]);e<t.length;)n=n.plus(t[e++]);return n},r=function(){var e="0123456789";function t(e,t,n,r){for(var i,o,s=[0],a=0,c=e.length;a<c;){for(o=s.length;o--;s[o]*=t);for(s[0]+=r.indexOf(e.charAt(a++)),i=0;i<s.length;i++)s[i]>n-1&&(null==s[i+1]&&(s[i+1]=0),s[i+1]+=s[i]/n|0,s[i]%=n)}return s.reverse()}return function(r,i,o,s,a){var c,f,d,h,p,m,g,w,v=r.indexOf("."),k=u,x=l;for(v>=0&&(h=b,b=0,r=r.replace(".",""),m=(w=new A(i)).pow(r.length-v),b=h,w.c=t(Gh(qh(m.c),m.e,"0"),10,o,e),w.e=w.c.length),d=h=(g=t(r,i,o,a?(c=y,e):(c=e,y))).length;0==g[--h];g.pop());if(!g[0])return c.charAt(0);if(v<0?--d:(m.c=g,m.e=d,m.s=s,g=(m=n(m,w,k,x,o)).c,p=m.r,d=m.e),v=g[f=d+k+1],h=o/2,p=p||f<0||null!=g[f+1],p=x<4?(null!=v||p)&&(0==x||x==(m.s<0?3:2)):v>h||v==h&&(4==x||p||6==x&&1&g[f-1]||x==(m.s<0?8:7)),f<1||!g[0])r=p?Gh(c.charAt(1),-k,c.charAt(0)):c.charAt(0);else{if(g.length=f,p)for(--o;++g[--f]>o;)g[f]=0,f||(++d,g=[1].concat(g));for(h=g.length;!g[--h];);for(v=0,r="";v<=h;r+=c.charAt(g[v++]));r=Gh(r,d,c.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,o,s,a=0,c=e.length,u=t%Oh,l=t/Oh|0;for(e=e.slice();c--;)a=((i=u*(o=e[c]%Oh)+(r=l*o+(s=e[c]/Oh|0)*u)%Oh*Oh+a)/n|0)+(r/Oh|0)+l*s,e[c]=i%n;return a&&(e=[a].concat(e)),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,o,s,a){var c,u,l,f,d,h,p,m,g,b,w,y,v,k,x,E,S,T=r.s==i.s?1:-1,M=r.c,I=i.c;if(!(M&&M[0]&&I&&I[0]))return new A(r.s&&i.s&&(M?!I||M[0]!=I[0]:I)?M&&0==M[0]||!I?0*T:T/0:NaN);for(g=(m=new A(T)).c=[],T=o+(u=r.e-i.e)+1,a||(a=Rh,u=Uh(r.e/Lh)-Uh(i.e/Lh),T=T/Lh|0),l=0;I[l]==(M[l]||0);l++);if(I[l]>(M[l]||0)&&u--,T<0)g.push(1),f=!0;else{for(k=M.length,E=I.length,l=0,T+=2,(d=Ih(a/(I[0]+1)))>1&&(I=e(I,d,a),M=e(M,d,a),E=I.length,k=M.length),v=E,w=(b=M.slice(0,E)).length;w<E;b[w++]=0);S=I.slice(),S=[0].concat(S),x=I[0],I[1]>=a/2&&x++;do{if(d=0,(c=t(I,b,E,w))<0){if(y=b[0],E!=w&&(y=y*a+(b[1]||0)),(d=Ih(y/x))>1)for(d>=a&&(d=a-1),p=(h=e(I,d,a)).length,w=b.length;1==t(h,b,p,w);)d--,n(h,E<p?S:I,p,a),p=h.length,c=1;else 0==d&&(c=d=1),p=(h=I.slice()).length;if(p<w&&(h=[0].concat(h)),n(b,h,w,a),w=b.length,-1==c)for(;t(I,b,E,w)<1;)d++,n(b,E<w?S:I,w,a),w=b.length}else 0===c&&(d++,b=[0]);g[l++]=d,b[0]?b[w++]=M[v]||0:(b=[M[v]],w=1)}while((v++<k||null!=b[0])&&T--);f=null!=b[0],g[0]||g.splice(0,1)}if(a==Rh){for(l=1,T=g[0];T>=10;T/=10,l++);C(m,o+(m.e=l+u*Lh-1)+1,s,f)}else m.e=u,m.r=+f;return m}}(),i=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,t=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,s,a,c){var u,l=a?s:s.replace(i,"");if(r.test(l))o.s=isNaN(l)?null:l<0?-1:1;else{if(!a&&(l=l.replace(e,function(e,t,n){return u="x"==(n=n.toLowerCase())?16:"b"==n?2:8,c&&c!=u?e:t}),c&&(u=c,l=l.replace(t,"$1").replace(n,"0.$1")),s!=l))return new A(l,u);if(A.DEBUG)throw Error(Bh+"Not a"+(c?" base "+c:"")+" number: "+s);o.s=null}o.c=o.e=null}}(),a.absoluteValue=a.abs=function(){var e=new A(this);return e.s<0&&(e.s=1),e},a.comparedTo=function(e,t){return Hh(this,new A(e,t))},a.decimalPlaces=a.dp=function(e,t){var n,r,i,o=this;if(null!=e)return zh(e,0,Ph),null==t?t=l:zh(t,0,8),C(new A(o),e+o.e+1,t);if(!(n=o.c))return null;if(r=((i=n.length-1)-Uh(this.e/Lh))*Lh,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},a.dividedBy=a.div=function(e,t){return n(this,new A(e,t),u,l)},a.dividedToIntegerBy=a.idiv=function(e,t){return n(this,new A(e,t),0,1)},a.exponentiatedBy=a.pow=function(e,t){var n,r,i,o,s,a,u,f,d=this;if((e=new A(e)).c&&!e.isInteger())throw Error(Bh+"Exponent not an integer: "+S(e));if(null!=t&&(t=new A(t)),s=e.e>14,!d.c||!d.c[0]||1==d.c[0]&&!d.e&&1==d.c.length||!e.c||!e.c[0])return f=new A(Math.pow(+S(d),s?e.s*(2-jh(e)):+S(e))),t?f.mod(t):f;if(a=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new A(NaN);(r=!a&&d.isInteger()&&t.isInteger())&&(d=d.mod(t))}else{if(e.e>9&&(d.e>0||d.e<-1||(0==d.e?d.c[0]>1||s&&d.c[1]>=24e7:d.c[0]<8e13||s&&d.c[0]<=9999975e7)))return o=d.s<0&&jh(e)?-0:0,d.e>-1&&(o=1/o),new A(a?1/o:o);b&&(o=Mh(b/Lh+2))}for(s?(n=new A(.5),a&&(e.s=1),u=jh(e)):u=(i=Math.abs(+S(e)))%2,f=new A(c);;){if(u){if(!(f=f.times(d)).c)break;o?f.c.length>o&&(f.c.length=o):r&&(f=f.mod(t))}if(i){if(0===(i=Ih(i/2)))break;u=i%2}else if(C(e=e.times(n),e.e+1,1),e.e>14)u=jh(e);else{if(0===(i=+S(e)))break;u=i%2}d=d.times(d),o?d.c&&d.c.length>o&&(d.c.length=o):r&&(d=d.mod(t))}return r?f:(a&&(f=c.div(f)),t?f.mod(t):o?C(f,b,l,void 0):f)},a.integerValue=function(e){var t=new A(this);return null==e?e=l:zh(e,0,8),C(t,t.e+1,e)},a.isEqualTo=a.eq=function(e,t){return 0===Hh(this,new A(e,t))},a.isFinite=function(){return!!this.c},a.isGreaterThan=a.gt=function(e,t){return Hh(this,new A(e,t))>0},a.isGreaterThanOrEqualTo=a.gte=function(e,t){return 1===(t=Hh(this,new A(e,t)))||0===t},a.isInteger=function(){return!!this.c&&Uh(this.e/Lh)>this.c.length-2},a.isLessThan=a.lt=function(e,t){return Hh(this,new A(e,t))<0},a.isLessThanOrEqualTo=a.lte=function(e,t){return-1===(t=Hh(this,new A(e,t)))||0===t},a.isNaN=function(){return!this.s},a.isNegative=function(){return this.s<0},a.isPositive=function(){return this.s>0},a.isZero=function(){return!!this.c&&0==this.c[0]},a.minus=function(e,t){var n,r,i,o,s=this,a=s.s;if(t=(e=new A(e,t)).s,!a||!t)return new A(NaN);if(a!=t)return e.s=-t,s.plus(e);var c=s.e/Lh,u=e.e/Lh,f=s.c,d=e.c;if(!c||!u){if(!f||!d)return f?(e.s=-t,e):new A(d?s:NaN);if(!f[0]||!d[0])return d[0]?(e.s=-t,e):new A(f[0]?s:3==l?-0:0)}if(c=Uh(c),u=Uh(u),f=f.slice(),a=c-u){for((o=a<0)?(a=-a,i=f):(u=c,i=d),i.reverse(),t=a;t--;i.push(0));i.reverse()}else for(r=(o=(a=f.length)<(t=d.length))?a:t,a=t=0;t<r;t++)if(f[t]!=d[t]){o=f[t]<d[t];break}if(o&&(i=f,f=d,d=i,e.s=-e.s),(t=(r=d.length)-(n=f.length))>0)for(;t--;f[n++]=0);for(t=Rh-1;r>a;){if(f[--r]<d[r]){for(n=r;n&&!f[--n];f[n]=t);--f[n],f[r]+=Rh}f[r]-=d[r]}for(;0==f[0];f.splice(0,1),--u);return f[0]?E(e,f,u):(e.s=3==l?-1:1,e.c=[e.e=0],e)},a.modulo=a.mod=function(e,t){var r,i,o=this;return e=new A(e,t),!o.c||!e.s||e.c&&!e.c[0]?new A(NaN):!e.c||o.c&&!o.c[0]?new A(o):(9==g?(i=e.s,e.s=1,r=n(o,e,0,3),e.s=i,r.s*=i):r=n(o,e,0,g),(e=o.minus(r.times(e))).c[0]||1!=g||(e.s=o.s),e)},a.multipliedBy=a.times=function(e,t){var n,r,i,o,s,a,c,u,l,f,d,h,p,m,g,b=this,w=b.c,y=(e=new A(e,t)).c;if(!(w&&y&&w[0]&&y[0]))return!b.s||!e.s||w&&!w[0]&&!y||y&&!y[0]&&!w?e.c=e.e=e.s=null:(e.s*=b.s,w&&y?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=Uh(b.e/Lh)+Uh(e.e/Lh),e.s*=b.s,(c=w.length)<(f=y.length)&&(p=w,w=y,y=p,i=c,c=f,f=i),i=c+f,p=[];i--;p.push(0));for(m=Rh,g=Oh,i=f;--i>=0;){for(n=0,d=y[i]%g,h=y[i]/g|0,o=i+(s=c);o>i;)n=((u=d*(u=w[--s]%g)+(a=h*u+(l=w[s]/g|0)*d)%g*g+p[o]+n)/m|0)+(a/g|0)+h*l,p[o--]=u%m;p[o]=n}return n?++r:p.splice(0,1),E(e,p,r)},a.negated=function(){var e=new A(this);return e.s=-e.s||null,e},a.plus=function(e,t){var n,r=this,i=r.s;if(t=(e=new A(e,t)).s,!i||!t)return new A(NaN);if(i!=t)return e.s=-t,r.minus(e);var o=r.e/Lh,s=e.e/Lh,a=r.c,c=e.c;if(!o||!s){if(!a||!c)return new A(i/0);if(!a[0]||!c[0])return c[0]?e:new A(a[0]?r:0*i)}if(o=Uh(o),s=Uh(s),a=a.slice(),i=o-s){for(i>0?(s=o,n=c):(i=-i,n=a),n.reverse();i--;n.push(0));n.reverse()}for((i=a.length)-(t=c.length)<0&&(n=c,c=a,a=n,t=i),i=0;t;)i=(a[--t]=a[t]+c[t]+i)/Rh|0,a[t]=Rh===a[t]?0:a[t]%Rh;return i&&(a=[i].concat(a),++s),E(e,a,s)},a.precision=a.sd=function(e,t){var n,r,i,o=this;if(null!=e&&e!==!!e)return zh(e,1,Ph),null==t?t=l:zh(t,0,8),C(new A(o),e,t);if(!(n=o.c))return null;if(r=(i=n.length-1)*Lh+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return e&&o.e+1>r&&(r=o.e+1),r},a.shiftedBy=function(e){return zh(e,-9007199254740991,Dh),this.times("1e"+e)},a.squareRoot=a.sqrt=function(){var e,t,r,i,o,s=this,a=s.c,c=s.s,f=s.e,d=u+4,h=new A("0.5");if(1!==c||!a||!a[0])return new A(!c||c<0&&(!a||a[0])?NaN:a?s:1/0);if(0==(c=Math.sqrt(+S(s)))||c==1/0?(((t=qh(a)).length+f)%2==0&&(t+="0"),c=Math.sqrt(+t),f=Uh((f+1)/2)-(f<0||f%2),r=new A(t=c==1/0?"5e"+f:(t=c.toExponential()).slice(0,t.indexOf("e")+1)+f)):r=new A(c+""),r.c[0])for((c=(f=r.e)+d)<3&&(c=0);;)if(o=r,r=h.times(o.plus(n(s,o,d,1))),qh(o.c).slice(0,c)===(t=qh(r.c)).slice(0,c)){if(r.e<f&&--c,"9999"!=(t=t.slice(c-3,c+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(C(r,r.e+u+2,1),e=!r.times(r).eq(s));break}if(!i&&(C(o,o.e+u+2,0),o.times(o).eq(s))){r=o;break}d+=4,c+=4,i=1}return C(r,r.e+u+1,l,e)},a.toExponential=function(e,t){return null!=e&&(zh(e,0,Ph),e++),k(this,e,t,1)},a.toFixed=function(e,t){return null!=e&&(zh(e,0,Ph),e=e+this.e+1),k(this,e,t)},a.toFormat=function(e,t,n){var r,i=this;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=w;else if("object"!=typeof n)throw Error(Bh+"Argument not an object: "+n);if(r=i.toFixed(e,t),i.c){var o,s=r.split("."),a=+n.groupSize,c=+n.secondaryGroupSize,u=n.groupSeparator||"",l=s[0],f=s[1],d=i.s<0,h=d?l.slice(1):l,p=h.length;if(c&&(o=a,a=c,c=o,p-=o),a>0&&p>0){for(o=p%a||a,l=h.substr(0,o);o<p;o+=a)l+=u+h.substr(o,a);c>0&&(l+=u+h.slice(o)),d&&(l="-"+l)}r=f?l+(n.decimalSeparator||"")+((c=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+c+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):l}return(n.prefix||"")+r+(n.suffix||"")},a.toFraction=function(e){var t,r,i,o,s,a,u,f,d,h,m,g,b=this,w=b.c;if(null!=e&&(!(u=new A(e)).isInteger()&&(u.c||1!==u.s)||u.lt(c)))throw Error(Bh+"Argument "+(u.isInteger()?"out of range: ":"not an integer: ")+S(u));if(!w)return new A(b);for(t=new A(c),d=r=new A(c),i=f=new A(c),g=qh(w),s=t.e=g.length-b.e-1,t.c[0]=Fh[(a=s%Lh)<0?Lh+a:a],e=!e||u.comparedTo(t)>0?s>0?t:d:u,a=p,p=1/0,u=new A(g),f.c[0]=0;h=n(u,t,0,1),1!=(o=r.plus(h.times(i))).comparedTo(e);)r=i,i=o,d=f.plus(h.times(o=d)),f=o,t=u.minus(h.times(o=t)),u=o;return o=n(e.minus(r),i,0,1),f=f.plus(o.times(d)),r=r.plus(o.times(i)),f.s=d.s=b.s,m=n(d,i,s*=2,l).minus(b).abs().comparedTo(n(f,r,s,l).minus(b).abs())<1?[d,i]:[f,r],p=a,m},a.toNumber=function(){return+S(this)},a.toPrecision=function(e,t){return null!=e&&zh(e,1,Ph),k(this,e,t,2)},a.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=f||o>=d?Vh(qh(n.c),o):Gh(qh(n.c),o,"0"):10===e&&v?t=Gh(qh((n=C(new A(n),u+o+1,l)).c),n.e,"0"):(zh(e,2,y.length,"Base"),t=r(Gh(qh(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},a.valueOf=a.toJSON=function(){return S(this)},a.Oe=!0,a[Symbol.toStringTag]="BigNumber",a[Symbol.for("nodejs.util.inspect.custom")]=a.valueOf,null!=t&&A.set(t),A}();const Wh=["send_native","send_token","swap_token"],Kh=({action:e,initialValues:r,onSubmit:i,onCancel:o,isSubmitting:s=!1,tokenInfo:a,nftInfo:c,disabled:u=!1,language:l})=>{const{t:f,ti:d}=p(l),h=_d[e],[m,g]=n.useState(()=>{if(!h)return{};const e={};for(const t of h.fields)e[t.key]=r[t.key]||"";return e}),[b]=n.useState(()=>Wh.includes(e)&&!a&&m.contract_address?f("formTokenNotFound"):null),w=a?.spendableFormatted??a?.balanceFormatted,y=void 0!==a?.spendableFormatted&&void 0!==a.usdPrice?Jh(a.spendableFormatted).multipliedBy(a.usdPrice).toNumber():a?.usdValue,[v,A]=n.useState(()=>{const t={};if(!Wh.includes(e)||!a)return t;const n=parseFloat(w||"0");if(n<=0)return t.amount=d("formNoBalance",{symbol:a.symbol??""}),t;const i=r.amount?.trim();if(i&&th(i)){parseFloat(i)>n&&(t.amount=d("formInsufficientBalance",{balance:w??"",symbol:a.symbol??""}))}return t}),k=n.useCallback((e,t)=>{g(n=>({...n,[e]:t})),v[e]&&A(t=>{const n={...t};return delete n[e],n})},[v]),x=n.useCallback(()=>{if(!h)return!1;const t={};for(const n of h.fields){const r=m[n.key]?.trim()||"",i="send_nft"===e&&"amount"===n.key;!n.required||r||i?r&&("address"!==n.validation||eh(r)||(t[n.key]=f("formInvalidAddress")),"amount"!==n.validation||th(r)||(t[n.key]=f("formMustBePositive")),"amount"===n.key&&th(r)&&w&&parseFloat(r)>parseFloat(w)&&(t[n.key]=d("formInsufficientBalance",{balance:w,symbol:a?.symbol??""})),"positive_number"===n.validation&&(isNaN(Number(r))||Number(r)<0)&&(t[n.key]=f("formMustBeValidNumber"))):t[n.key]=d("formFieldRequired",{field:f(n.label)})}if("send_nft"===e&&"ERC1155"===m.token_standard?.toUpperCase()){const e=m.amount?.trim();if(e)if(!/^\d+$/.test(e)||parseInt(e,10)<1)t.amount=f("formMustBePositiveInteger");else{const n=parseInt(r.maxAmount||"0",10);n>0&&parseInt(e,10)>n&&(t.amount=d("formAmountExceedsNft",{max:String(n)}))}else t.amount=d("formFieldRequired",{field:f("fieldAmount")})}return A(t),0===Object.keys(t).length},[h,m,a,w,e,r,f,d]),E=n.useCallback(()=>{x()&&i(e,m)},[x,i,e,m]);return h?t.jsxs("div",{className:"action-form",children:[t.jsx("div",{className:"action-form-title",children:t.jsx("span",{children:f(h.label)})}),b&&t.jsxs("div",{className:"action-form-general-error",children:["⚠️ ",b]}),a&&t.jsx("div",{className:"action-form-token-info",children:t.jsxs("div",{className:"token-info-row",children:[a.logo&&t.jsx("img",{src:a.logo,alt:a.symbol,className:"token-info-logo",width:20,height:20}),t.jsxs("div",{className:"token-info-details",children:[t.jsxs("span",{className:"token-info-name",children:[a.name," (",a.symbol,")"]}),t.jsxs("span",{className:"token-info-balance",children:[f("spendable"),": ",Jh(a.spendableFormatted??a.balanceFormatted).decimalPlaces(8,Jh.ROUND_DOWN).toFormat()," ",a.symbol,void 0!==y&&t.jsxs("span",{className:"token-info-usd",children:[" ","≈ $",y.toFixed(2)]})]})]})]})}),c?.image&&t.jsx("div",{className:"action-form-nft-info",children:t.jsx("img",{src:c.image,alt:c.name,className:"nft-info-image",onError:e=>{e.target.style.display="none"}})}),t.jsx("div",{className:"action-form-fields",children:h.fields.map(n=>{if(n.hidden)return null;if("amount"===n.key&&"send_nft"===e&&"ERC1155"!==m.token_standard?.toUpperCase())return null;if("decimals"===n.key&&"send_token"===e&&r.decimals)return null;const i=!1===n.editable&&!!r[n.key]||u,o=s||i,l=[v[n.key]?"error":"",i?"readonly":""].filter(Boolean).join(" ");return t.jsxs("div",{className:"action-form-field",children:[t.jsxs("div",{className:"action-form-field-header",children:[t.jsxs("div",{className:"action-form-field-label",children:[f(n.label),n.required&&" *"]}),"amount"===n.key&&a&&"send_nft"!==e&&t.jsxs("div",{className:"action-form-pct-btns",children:[[25,50,75].map(e=>t.jsxs("button",{type:"button",className:"action-form-pct-btn",onClick:()=>k("amount",Jh(w??a.balanceFormatted).multipliedBy(e).dividedBy(100).decimalPlaces(a.decimals,Jh.ROUND_DOWN).toFixed()),disabled:s||u,children:[e,"%"]},e)),t.jsx("button",{type:"button",className:"action-form-pct-btn action-form-max-btn",onClick:()=>k("amount",w??a.balanceFormatted),disabled:s||u,children:f("formMax")})]}),"amount"===n.key&&"send_nft"===e&&c&&t.jsx("div",{className:"action-form-pct-btns",children:t.jsx("button",{type:"button",className:"action-form-pct-btn action-form-max-btn",onClick:()=>k("amount",r.maxAmount||""),disabled:s||u,children:f("formMax")})})]}),"address"===n.type?t.jsx("textarea",{rows:2,placeholder:n.placeholder,value:m[n.key]||"",onChange:e=>k(n.key,e.target.value),className:l,disabled:o||u}):t.jsx("input",{type:"number"===n.type?"number":"text",placeholder:n.placeholder,value:m[n.key]||"",onChange:e=>k(n.key,e.target.value),className:l,disabled:o||u}),v[n.key]&&t.jsx("span",{className:"field-error",children:v[n.key]})]},n.key)})}),!u&&t.jsxs("div",{className:"action-form-actions",children:[t.jsx("button",{className:"message-button",onClick:o,type:"button",disabled:s,children:f("formCancel")}),t.jsx("button",{className:"message-button",onClick:E,type:"button",disabled:s,children:f(s?"formProcessing":"formExecute")})]})]}):null};function Yh({status:e,inFlight:n,chainId:r,transactionHash:i,errorMessage:o,successKey:s="txSuccessful",language:a}){const{t:c}=p(a);if(n)return t.jsx("div",{className:"action-status action-status-submitted",children:c("txProcessing")});if("success"===e){const e=function(e,t){if(void 0===e||!t)return;const n="number"==typeof e?e:e.startsWith("0x")?parseInt(e,16):parseInt(e,10),r=jd[n]?.blockExplorers?.default?.url;return r?`${r}/tx/${t}`:void 0}(r,i);return t.jsxs("div",{className:"action-status action-status-success",children:[c(s),e&&t.jsxs(t.Fragment,{children:[" ",t.jsx("a",{className:"action-status-link",href:e,target:"_blank",rel:"noopener noreferrer",children:c("viewOnExplorer")})]})]})}return"fail"===e?t.jsx("div",{className:"action-status action-status-fail",children:o||c("actionFail")}):null}function Xh(e){if(!e)return"";try{return new Jh(e).decimalPlaces(8,Jh.ROUND_DOWN).toFormat()}catch{return e}}function Qh(e){return{from:e.from,to:e.to,data:e.data,value:e.value??"0",chainId:e.chainId}}function Zh({walletAction:e,onConfirm:r,onApprove:i,isSubmitting:o}){const{t:s,ti:a}=p(e.language),c=e.componentProps??{},u=!!e.approveDone,[l,f]=n.useState(!1),d=c.payToken,h=c.buyToken,m=c.swapTx,g=c.approveTx,b=!!g&&!u,w=d?.symbol??"",y=h?.symbol??"",v=Xh(d?.amount),A=Xh(c.estimatedOut??h?.amount),k=e.status,x="success"===k,E="submitted"===k||l||!!o,C=b?async()=>{if(g){f(!0);try{await i(Qh(g))}finally{f(!1)}}}:async()=>{if(m){f(!0);try{await r(Qh(m))}finally{f(!1)}}},S=b?a("swapApproveButton",{symbol:w}):s("confirmSwapButton"),T=b?a("swapNeedApprove",{symbol:w}):g?`${a("approvalSuccess",{symbol:w})} ${s("approvalConfirmSwap")}`:s("swapReadyToProceed");return t.jsxs("div",{className:"buy-token-confirm",children:[t.jsxs("div",{className:"buy-token-confirm__row",children:[t.jsx("span",{className:"buy-token-confirm__label",children:"From:"}),t.jsxs("span",{children:[v," ",w]})]}),t.jsx("div",{className:"buy-token-confirm__arrow",children:"↓"}),t.jsxs("div",{className:"buy-token-confirm__row",children:[t.jsx("span",{className:"buy-token-confirm__label",children:"To:"}),t.jsxs("span",{children:[A," ",y]})]}),!x&&t.jsx("div",{className:"buy-token-confirm__prompt",children:T}),!x&&!E&&t.jsx("div",{className:"action-form-actions",children:t.jsx("button",{type:"button",className:"message-button",onClick:()=>{C()},disabled:!m,children:S})}),t.jsx(Yh,{status:k,inFlight:E,chainId:e.chainId,transactionHash:e.transactionHash,successKey:"txSuccessfulSwap"})]})}function $h(e){if(!e)return"";try{return new Jh(e).decimalPlaces(8,Jh.ROUND_DOWN).toFormat()}catch{return e}}function _h(e){return{from:e.from,to:e.to,data:e.data,value:e.value??"0",chainId:e.chainId}}function ep({walletAction:e,onConfirm:r,onApprove:i,isSubmitting:o}){const{t:s,ti:a}=p(e.language),c=e.componentProps??{},u=!!e.approveDone,[l,f]=n.useState(!1),d=c.fromToken,h=c.toToken,m=c.swapTx,g=c.approveTx,b=!!g&&!u,w=d?.symbol??"",y=h?.symbol??"",v=$h(d?.amount),A=$h(c.estimatedOut??h?.amount),k=e.status,x="success"===k,E="submitted"===k||l||!!o,C=b?async()=>{if(g){f(!0);try{await i(_h(g))}finally{f(!1)}}}:async()=>{if(m){f(!0);try{await r(_h(m))}finally{f(!1)}}},S=b?a("swapApproveButton",{symbol:w}):s("confirmSwapButton"),T=b?a("swapNeedApprove",{symbol:w}):g?`${a("approvalSuccess",{symbol:w})} ${s("approvalConfirmSwap")}`:s("swapReadyToProceed");return t.jsxs("div",{className:"swap-token-confirm",children:[t.jsxs("div",{className:"swap-token-confirm__row",children:[t.jsx("span",{className:"swap-token-confirm__label",children:"From:"}),t.jsxs("span",{children:[v," ",w]})]}),t.jsx("div",{className:"swap-token-confirm__arrow",children:"↓"}),t.jsxs("div",{className:"swap-token-confirm__row",children:[t.jsx("span",{className:"swap-token-confirm__label",children:"To:"}),t.jsxs("span",{children:[A," ",y]})]}),!x&&t.jsx("div",{className:"swap-token-confirm__prompt",children:T}),!x&&!E&&t.jsx("div",{className:"action-form-actions",children:t.jsx("button",{type:"button",className:"message-button",onClick:()=>{C()},disabled:!m,children:S})}),t.jsx(Yh,{status:k,inFlight:E,chainId:e.chainId,transactionHash:e.transactionHash,successKey:"txSuccessfulSwap"})]})}function tp({walletAction:e,isSubmitting:n,onSubmit:r,onCancel:i}){const o=e.status;return t.jsxs(t.Fragment,{children:[("pending"===o||"submitted"===o||"success"===o)&&t.jsx(Kh,{disabled:"success"===o||"submitted"===o,action:e.action,initialValues:e.parameters,onSubmit:(e,t)=>r(t),onCancel:i,isSubmitting:n,tokenInfo:e.tokenInfo,nftInfo:e.nftInfo,language:e.language}),t.jsx(Yh,{status:o,inFlight:"submitted"===o,chainId:e.chainId,transactionHash:e.transactionHash,errorMessage:e.errorMessage,language:e.language})]})}function np({walletAction:e,isSubmitting:n,onSubmit:r,onCancel:i,onConfirm:o,onApprove:s}){switch(e.component){case"BuyTokenConfirmTx":return t.jsx(Zh,{walletAction:e,isSubmitting:n,onConfirm:o,onApprove:s});case"SwapTokenConfirmTx":return t.jsx(ep,{walletAction:e,isSubmitting:n,onConfirm:o,onApprove:s})}return e.action?t.jsx(tp,{walletAction:e,isSubmitting:n,onSubmit:r,onCancel:i}):null}const rp=({onClose:e,isShowIcon:n,chatTitle:r,chatIcon:i})=>{const{t:o}=h(),{account:s}=rh(),{modal:a}=$d();return t.jsxs("div",{className:"chat-modal-header",children:[t.jsxs("div",{className:"chat-modal-header-title",children:[t.jsxs("div",{className:"chat-modal-header-left",children:[n&&t.jsx("div",{className:"keyring-logo",children:t.jsx("img",{src:i||a?.icon,alt:"Keyring Logo",width:22,height:30})}),t.jsx("h3",{id:"chat-modal-title",children:r||a?.title})]}),t.jsx("button",{className:"close-button",onClick:e,"aria-label":o("closeChat"),type:"button",children:t.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:t.jsx("path",{d:"M15 5L5 15M5 5L15 15",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})})]}),t.jsx(Sh,{address:s?.address,chainId:s?.chainId})]})},ip=({scrollContainerRef:e,threshold:r=200})=>{const[i,o]=n.useState(!1);return n.useEffect(()=>{const t=e.current;if(!t)return;const n=()=>{const{scrollTop:e,scrollHeight:n,clientHeight:i}=t;o(n-e-i>r)};return t.addEventListener("scroll",n,{passive:!0}),n(),()=>{t.removeEventListener("scroll",n)}},[e,r]),i?t.jsx("button",{className:"scroll-to-bottom-btn",onClick:()=>e.current?.scrollTo({top:e.current.scrollHeight,behavior:"smooth"}),"aria-label":"Scroll to bottom",type:"button",children:t.jsx("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:t.jsx("path",{d:"M9 3V15M9 15L4 10M9 15L14 10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}):null};function op(){}function sp(){}const ap=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cp=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,up={};function lp(e,t){return(up.jsx?cp:ap).test(e)}const fp=/[ \t\n\f\r]/g;function dp(e){return""===e.replace(fp,"")}class hp{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function pp(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new hp(n,r,t)}function mp(e){return e.toLowerCase()}hp.prototype.normal={},hp.prototype.property={},hp.prototype.space=void 0;class gp{constructor(e,t){this.attribute=t,this.property=e}}gp.prototype.attribute="",gp.prototype.booleanish=!1,gp.prototype.boolean=!1,gp.prototype.commaOrSpaceSeparated=!1,gp.prototype.commaSeparated=!1,gp.prototype.defined=!1,gp.prototype.mustUseProperty=!1,gp.prototype.number=!1,gp.prototype.overloadedBoolean=!1,gp.prototype.property="",gp.prototype.spaceSeparated=!1,gp.prototype.space=void 0;let bp=0;const wp=Cp(),yp=Cp(),vp=Cp(),Ap=Cp(),kp=Cp(),xp=Cp(),Ep=Cp();function Cp(){return 2**++bp}const Sp=Object.freeze(Object.defineProperty({__proto__:null,boolean:wp,booleanish:yp,commaOrSpaceSeparated:Ep,commaSeparated:xp,number:Ap,overloadedBoolean:vp,spaceSeparated:kp},Symbol.toStringTag,{value:"Module"})),Tp=Object.keys(Sp);class Mp extends gp{constructor(e,t,n,r){let i=-1;if(super(e,t),Ip(this,"space",r),"number"==typeof n)for(;++i<Tp.length;){const e=Tp[i];Ip(this,Tp[i],(n&Sp[e])===Sp[e])}}}function Ip(e,t,n){n&&(e[t]=n)}function Bp(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Mp(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[mp(r)]=r,n[mp(o.attribute)]=r}return new hp(t,n,e.space)}Mp.prototype.defined=!0;const Np=Bp({properties:{ariaActiveDescendant:null,ariaAtomic:yp,ariaAutoComplete:null,ariaBusy:yp,ariaChecked:yp,ariaColCount:Ap,ariaColIndex:Ap,ariaColSpan:Ap,ariaControls:kp,ariaCurrent:null,ariaDescribedBy:kp,ariaDetails:null,ariaDisabled:yp,ariaDropEffect:kp,ariaErrorMessage:null,ariaExpanded:yp,ariaFlowTo:kp,ariaGrabbed:yp,ariaHasPopup:null,ariaHidden:yp,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kp,ariaLevel:Ap,ariaLive:null,ariaModal:yp,ariaMultiLine:yp,ariaMultiSelectable:yp,ariaOrientation:null,ariaOwns:kp,ariaPlaceholder:null,ariaPosInSet:Ap,ariaPressed:yp,ariaReadOnly:yp,ariaRelevant:null,ariaRequired:yp,ariaRoleDescription:kp,ariaRowCount:Ap,ariaRowIndex:Ap,ariaRowSpan:Ap,ariaSelected:yp,ariaSetSize:Ap,ariaSort:null,ariaValueMax:Ap,ariaValueMin:Ap,ariaValueNow:Ap,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Rp(e,t){return t in e?e[t]:t}function Lp(e,t){return Rp(e,t.toLowerCase())}const Dp=Bp({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:xp,acceptCharset:kp,accessKey:kp,action:null,allow:null,allowFullScreen:wp,allowPaymentRequest:wp,allowUserMedia:wp,alt:null,as:null,async:wp,autoCapitalize:null,autoComplete:kp,autoFocus:wp,autoPlay:wp,blocking:kp,capture:null,charSet:null,checked:wp,cite:null,className:kp,cols:Ap,colSpan:null,content:null,contentEditable:yp,controls:wp,controlsList:kp,coords:Ap|xp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:wp,defer:wp,dir:null,dirName:null,disabled:wp,download:vp,draggable:yp,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:wp,formTarget:null,headers:kp,height:Ap,hidden:vp,high:Ap,href:null,hrefLang:null,htmlFor:kp,httpEquiv:kp,id:null,imageSizes:null,imageSrcSet:null,inert:wp,inputMode:null,integrity:null,is:null,isMap:wp,itemId:null,itemProp:kp,itemRef:kp,itemScope:wp,itemType:kp,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:wp,low:Ap,manifest:null,max:null,maxLength:Ap,media:null,method:null,min:null,minLength:Ap,multiple:wp,muted:wp,name:null,nonce:null,noModule:wp,noValidate:wp,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:wp,optimum:Ap,pattern:null,ping:kp,placeholder:null,playsInline:wp,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:wp,referrerPolicy:null,rel:kp,required:wp,reversed:wp,rows:Ap,rowSpan:Ap,sandbox:kp,scope:null,scoped:wp,seamless:wp,selected:wp,shadowRootClonable:wp,shadowRootDelegatesFocus:wp,shadowRootMode:null,shape:null,size:Ap,sizes:null,slot:null,span:Ap,spellCheck:yp,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ap,step:null,style:null,tabIndex:Ap,target:null,title:null,translate:null,type:null,typeMustMatch:wp,useMap:null,value:yp,width:Ap,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kp,axis:null,background:null,bgColor:null,border:Ap,borderColor:null,bottomMargin:Ap,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:wp,declare:wp,event:null,face:null,frame:null,frameBorder:null,hSpace:Ap,leftMargin:Ap,link:null,longDesc:null,lowSrc:null,marginHeight:Ap,marginWidth:Ap,noResize:wp,noHref:wp,noShade:wp,noWrap:wp,object:null,profile:null,prompt:null,rev:null,rightMargin:Ap,rules:null,scheme:null,scrolling:yp,standby:null,summary:null,text:null,topMargin:Ap,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ap,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:wp,disableRemotePlayback:wp,prefix:null,property:null,results:Ap,security:null,unselectable:null},space:"html",transform:Lp}),Fp=Bp({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Ep,accentHeight:Ap,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ap,amplitude:Ap,arabicForm:null,ascent:Ap,attributeName:null,attributeType:null,azimuth:Ap,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ap,by:null,calcMode:null,capHeight:Ap,className:kp,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ap,diffuseConstant:Ap,direction:null,display:null,dur:null,divisor:Ap,dominantBaseline:null,download:wp,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ap,enableBackground:null,end:null,event:null,exponent:Ap,externalResourcesRequired:null,fill:null,fillOpacity:Ap,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:xp,g2:xp,glyphName:xp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ap,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ap,horizOriginX:Ap,horizOriginY:Ap,id:null,ideographic:Ap,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ap,k:Ap,k1:Ap,k2:Ap,k3:Ap,k4:Ap,kernelMatrix:Ep,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ap,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ap,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ap,overlineThickness:Ap,paintOrder:null,panose1:null,path:null,pathLength:Ap,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kp,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ap,pointsAtY:Ap,pointsAtZ:Ap,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ep,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ep,rev:Ep,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ep,requiredFeatures:Ep,requiredFonts:Ep,requiredFormats:Ep,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ap,specularExponent:Ap,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ap,strikethroughThickness:Ap,string:null,stroke:null,strokeDashArray:Ep,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ap,strokeOpacity:Ap,strokeWidth:null,style:null,surfaceScale:Ap,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ep,tabIndex:Ap,tableValues:null,target:null,targetX:Ap,targetY:Ap,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ep,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ap,underlineThickness:Ap,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ap,values:null,vAlphabetic:Ap,vMathematical:Ap,vectorEffect:null,vHanging:Ap,vIdeographic:Ap,version:null,vertAdvY:Ap,vertOriginX:Ap,vertOriginY:Ap,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ap,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Rp}),Op=Bp({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),Pp=Bp({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Lp}),Up=Bp({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),qp={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Hp=/[A-Z]/g,zp=/-[a-z]/g,jp=/^data[-\w.:]+$/i;function Vp(e){return"-"+e.toLowerCase()}function Gp(e){return e.charAt(1).toUpperCase()}const Jp=pp([Np,Dp,Op,Pp,Up],"html"),Wp=pp([Np,Fp,Op,Pp,Up],"svg");var Kp,Yp,Xp,Qp={};function Zp(){if(Xp)return Qp;Xp=1;var e=Qp&&Qp.Ee||function(e){return e&&e.u?e:{default:e}};Object.defineProperty(Qp,"u",{value:!0}),Qp.default=function(e,n){let r=null;if(!e||"string"!=typeof e)return r;const i=(0,t.default)(e),o="function"==typeof n;return i.forEach(e=>{if("declaration"!==e.type)return;const{property:t,value:i}=e;o?n(t,i,e):i&&(r=r||{},r[t]=i)}),r};const t=e(function(){if(Yp)return Kp;Yp=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,c="";function u(e){return e?e.replace(a,c):c}return Kp=function(a,l){if("string"!=typeof a)throw new TypeError("First argument must be a string");if(!a)return[];l=l||{};var f=1,d=1;function h(e){var n=e.match(t);n&&(f+=n.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:f,column:d};return function(t){return t.position=new m(e),w(),t}}function m(e){this.start=e,this.end={line:f,column:d},this.source=l.source}function g(e){var t=new Error(l.source+":"+f+":"+d+": "+e);if(t.reason=e,t.filename=l.source,t.line=f,t.column=d,t.source=a,!l.silent)throw t}function b(e){var t=e.exec(a);if(t){var n=t[0];return h(n),a=a.slice(n.length),t}}function w(){b(n)}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var e=p();if("/"==a.charAt(0)&&"*"==a.charAt(1)){for(var t=2;c!=a.charAt(t)&&("*"!=a.charAt(t)||"/"!=a.charAt(t+1));)++t;if(t+=2,c===a.charAt(t-1))return g("End of comment missing");var n=a.slice(2,t-2);return d+=2,h(n),a=a.slice(t),d+=2,e({type:"comment",comment:n})}}function A(){var t=p(),n=b(r);if(n){if(v(),!b(i))return g("property missing ':'");var a=b(o),l=t({type:"declaration",property:u(n[0].replace(e,c)),value:a?u(a[0].replace(e,c)):c});return b(s),l}}return m.prototype.content=a,w(),function(){var e,t=[];for(y(t);e=A();)!1!==e&&(t.push(e),y(t));return t}()}}());return Qp}var $p,_p,em,tm={};function nm(){if($p)return tm;$p=1,Object.defineProperty(tm,"u",{value:!0}),tm.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};return tm.camelCase=function(a,c){return void 0===c&&(c={}),function(t){return!t||n.test(t)||e.test(t)}(a)?a:(a=a.toLowerCase(),(a=c.reactCompat?a.replace(i,s):a.replace(r,s)).replace(t,o))},tm}const rm=gr(function(){if(em)return _p;em=1;var e=(_p&&_p.Ee||function(e){return e&&e.u?e:{default:e}})(Zp()),t=nm();function n(n,r){var i={};return n&&"string"==typeof n?((0,e.default)(n,function(e,n){e&&n&&(i[(0,t.camelCase)(e,r)]=n)}),i):i}return n.default=n,_p=n}()),im=sm("end"),om=sm("start");function sm(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function am(e){return e&&"object"==typeof e?"position"in e||"type"in e?um(e.position):"start"in e||"end"in e?um(e):"line"in e||"column"in e?cm(e):"":""}function cm(e){return lm(e&&e.line)+":"+lm(e&&e.column)}function um(e){return cm(e&&e.start)+"-"+cm(e&&e.end)}function lm(e){return e&&"number"==typeof e?e:1}class fm extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},o=!1;if(t&&(i="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(o=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){const e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){const e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=s?s.line:void 0,this.name=am(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}fm.prototype.file="",fm.prototype.name="",fm.prototype.reason="",fm.prototype.message="",fm.prototype.stack="",fm.prototype.column=void 0,fm.prototype.line=void 0,fm.prototype.ancestors=void 0,fm.prototype.cause=void 0,fm.prototype.fatal=void 0,fm.prototype.place=void 0,fm.prototype.ruleId=void 0,fm.prototype.source=void 0;const dm={}.hasOwnProperty,hm=new Map,pm=/[A-Z]/g,mm=new Set(["table","tbody","thead","tfoot","tr"]),gm=new Set(["td","th"]),bm="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function wm(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!=typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,i,o){const s=Array.isArray(i.children),a=om(n);return t(r,i,o,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!=typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,i,o){const s=Array.isArray(i.children)?n:t;return o?s(r,i,o):s(r,i)}}(0,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Wp:Jp,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},o=ym(i,e,void 0);return o&&"string"!=typeof o?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function ym(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=Wp,e.schema=i);e.ancestors.push(t);const o=Em(e,t.tagName,!1),s=function(e,t){const n={};let r,i;for(i in t.properties)if("children"!==i&&dm.call(t.properties,i)){const o=xm(e,i,t.properties[i]);if(o){const[i,s]=o;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof s&&gm.has(t.tagName)?r=s:n[i]=s}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let a=km(e,t);mm.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof(t=e)?"text"===t.type&&dp(t.value):dp(t));var t}));return vm(e,s,o,t),Am(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Cm(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let i=r;"svg"===t.name&&"html"===r.space&&(i=Wp,e.schema=i);e.ancestors.push(t);const o=null===t.name?e.Fragment:Em(e,t.name,!0),s=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];op(t.type);const i=t.expression;op(i.type);const o=i.properties[0];op(o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else Cm(e,t.position);else{const i=r.name;let o;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];op(t.type),o=e.evaluater.evaluateExpression(t.expression)}else Cm(e,t.position);else o=null===r.value||r.value;n[i]=o}return n}(e,t),a=km(e,t);return vm(e,s,o,t),Am(s,a),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Cm(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Am(r,km(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function vm(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Am(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function km(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:hm;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){const t=i.get(e)||0;s=e+"-"+t,i.set(e,t+1)}}const a=ym(e,o,s);void 0!==a&&n.push(a)}return n}function xm(e,t,n){const r=function(e,t){const n=mp(t);let r=t,i=gp;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&jp.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(zp,Gp);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!zp.test(e)){let n=e.replace(Hp,Vp);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Mp}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e){const t={};return(""===e[e.length-1]?[...e,""]:e).join((t.padRight?" ":"")+","+(!1===t.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return rm(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const t=n,r=new fm("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=bm+"#cannot-parse-style-attribute",r}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)dm.call(e,n)&&(t[Sm(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?qp[r.property]||r.property:r.attribute,n]}}function Em(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,i=-1;for(;++i<e.length;){const t=lp(e[i])?{type:"Identifier",name:e[i]}:{type:"Literal",value:e[i]};n=n?{type:"MemberExpression",object:n,property:t,computed:Boolean(i&&"Literal"===t.type),optional:!1}:t}r=n}else r=lp(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){const t=r.value;return dm.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Cm(e)}function Cm(e,t){const n=new fm("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=bm+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Sm(e){let t=e.replace(pm,Tm);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function Tm(e){return"-"+e.toLowerCase()}const Mm={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Im={};function Bm(e,t){return Nm(e,"boolean"!=typeof Im.includeImageAlt||Im.includeImageAlt,"boolean"!=typeof Im.includeHtml||Im.includeHtml)}function Nm(e,t,n){if(function(e){return Boolean(e&&"object"==typeof e)}(e)){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Rm(e.children,t,n)}return Array.isArray(e)?Rm(e,t,n):""}function Rm(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Nm(e[i],t,n);return r.join("")}const Lm={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},Dm={}.hasOwnProperty;function Fm(e){return!!Dm.call(Lm,e)&&Lm[e]}function Om(e,t,n,r){const i=e.length;let o,s=0;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<r.length;)o=r.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function Pm(e,t){return e.length>0?(Om(e,e.length,0,t),e):t}const Um={}.hasOwnProperty;function qm(e){const t={};let n=-1;for(;++n<e.length;)Hm(t,e[n]);return t}function Hm(e,t){let n;for(n in t){const r=(Um.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Um.call(r,o)||(r[o]=[]);const e=i[o];zm(r[o],Array.isArray(e)?e:e?[e]:[])}}}function zm(e,t){let n=-1;const r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);Om(e,0,0,r)}function jm(e,t){const n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||!(65535&~n)||65534==(65535&n)||n>1114111?"�":String.fromCodePoint(n)}function Vm(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Gm=ng(/[A-Za-z]/),Jm=ng(/[\dA-Za-z]/),Wm=ng(/[#-'*+\--9=?A-Z^-~]/);function Km(e){return null!==e&&(e<32||127===e)}const Ym=ng(/\d/),Xm=ng(/[\dA-Fa-f]/),Qm=ng(/[!-/:-@[-`{-~]/);function Zm(e){return null!==e&&e<-2}function $m(e){return null!==e&&(e<0||32===e)}function _m(e){return-2===e||-1===e||32===e}const eg=ng(new RegExp("\\p{P}|\\p{S}","u")),tg=ng(/\s/);function ng(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function rg(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(37===o&&Jm(e.charCodeAt(n+1))&&Jm(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ig(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return function(r){if(_m(r))return e.enter(n),s(r);return t(r)};function s(r){return _m(r)&&o++<i?(e.consume(r),s):(e.exit(n),t(r))}}const og={tokenize:function(e){const t=e.attempt(this.parser.constructs.contentInitial,function(n){if(null===n)return void e.consume(n);return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ig(e,t,"linePrefix")},function(t){return e.enter("paragraph"),r(t)});let n;return t;function r(t){const r=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=r),n=r,i(t)}function i(t){return null===t?(e.exit("chunkText"),e.exit("paragraph"),void e.consume(t)):Zm(t)?(e.consume(t),e.exit("chunkText"),r):(e.consume(t),i)}}};const sg={tokenize:function(e){const t=this,n=[];let r,i,o,s=0;return a;function a(r){if(s<n.length){const i=n[s];return t.containerState=i[1],e.attempt(i[0].continuation,c,u)(r)}return u(r)}function c(e){if(s++,t.containerState.Pe){t.containerState.Pe=void 0,r&&w();const n=t.events.length;let i,o=n;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){i=t.events[o][1].end;break}b(s);let a=n;for(;a<t.events.length;)t.events[a][1].end={...i},a++;return Om(t.events,o+1,0,t.events.slice(n)),t.events.length=a,u(e)}return a(e)}function u(i){if(s===n.length){if(!r)return d(i);if(r.currentConstruct&&r.currentConstruct.concrete)return p(i);t.interrupt=Boolean(r.currentConstruct&&!r.Ue)}return t.containerState={},e.check(ag,l,f)(i)}function l(e){return r&&w(),b(s),d(e)}function f(e){return t.parser.lazy[t.now().line]=s!==n.length,o=t.now().offset,p(e)}function d(n){return t.containerState={},e.attempt(ag,h,p)(n)}function h(e){return s++,n.push([t.currentConstruct,t.containerState]),d(e)}function p(n){return null===n?(r&&w(),b(0),void e.consume(n)):(r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{qe:r,contentType:"flow",previous:i}),m(n))}function m(n){return null===n?(g(e.exit("chunkFlow"),!0),b(0),void e.consume(n)):Zm(n)?(e.consume(n),g(e.exit("chunkFlow")),s=0,t.interrupt=void 0,a):(e.consume(n),m)}function g(e,n){const a=t.sliceStream(e);if(n&&a.push(null),e.previous=i,i&&(i.next=e),i=e,r.defineSkip(e.start),r.write(a),t.parser.lazy[e.start.line]){let e=r.events.length;for(;e--;)if(r.events[e][1].start.offset<o&&(!r.events[e][1].end||r.events[e][1].end.offset>o))return;const n=t.events.length;let i,a,c=n;for(;c--;)if("exit"===t.events[c][0]&&"chunkFlow"===t.events[c][1].type){if(i){a=t.events[c][1].end;break}i=!0}for(b(s),e=n;e<t.events.length;)t.events[e][1].end={...a},e++;Om(t.events,c+1,0,t.events.slice(n)),t.events.length=e}}function b(r){let i=n.length;for(;i-- >r;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function w(){r.write([null]),i=void 0,r=void 0,t.containerState.Pe=void 0}}},ag={tokenize:function(e,t,n){return ig(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};function cg(e){return null===e||$m(e)||tg(e)?1:eg(e)?2:void 0}function ug(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const lg={name:"attention",resolveAll:function(e,t){let n,r,i,o,s,a,c,u,l=-1;for(;++l<e.length;)if("enter"===e[l][0]&&"attentionSequence"===e[l][1].type&&e[l][1].He)for(n=l;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1].ze&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[l][1]).charCodeAt(0)){if((e[n][1].He||e[l][1].ze)&&(e[l][1].end.offset-e[l][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[l][1].end.offset-e[l][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[l][1].end.offset-e[l][1].start.offset>1?2:1;const f={...e[n][1].end},d={...e[l][1].start};fg(f,-a),fg(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[l][1].start},end:d},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[l][1].start}},r={type:a>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[n][1].end={...o.start},e[l][1].start={...s.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Pm(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Pm(c,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),c=Pm(c,ug(t.parser.constructs.insideSpan.null,e.slice(n+1,l),t)),c=Pm(c,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[l][1].end.offset-e[l][1].start.offset?(u=2,c=Pm(c,[["enter",e[l][1],t],["exit",e[l][1],t]])):u=0,Om(e,n-1,l-n+3,c),l=n+c.length-u-2;break}l=-1;for(;++l<e.length;)"attentionSequence"===e[l][1].type&&(e[l][1].type="data");return e},tokenize:function(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=cg(r);let o;return function(t){return o=t,e.enter("attentionSequence"),s(t)};function s(a){if(a===o)return e.consume(a),s;const c=e.exit("attentionSequence"),u=cg(a),l=!u||2===u&&i||n.includes(a),f=!i||2===i&&u||n.includes(r);return c.ze=Boolean(42===o?l:l&&(i||!f)),c.He=Boolean(42===o?f:f&&(u||!l)),t(a)}}};function fg(e,t){e.column+=t,e.offset+=t,e.je+=t}const dg={name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return Gm(t)?(e.consume(t),o):64===t?n(t):c(t)}function o(e){return 43===e||45===e||46===e||Jm(e)?(r=1,s(e)):c(e)}function s(t){return 58===t?(e.consume(t),r=0,a):(43===t||45===t||46===t||Jm(t))&&r++<32?(e.consume(t),s):(r=0,c(t))}function a(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||Km(r)?n(r):(e.consume(r),a)}function c(t){return 64===t?(e.consume(t),u):Wm(t)?(e.consume(t),c):n(t)}function u(e){return Jm(e)?l(e):n(e)}function l(n){return 46===n?(e.consume(n),r=0,u):62===n?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(n),e.exit("autolinkMarker"),e.exit("autolink"),t):f(n)}function f(t){if((45===t||Jm(t))&&r++<63){const n=45===t?f:l;return e.consume(t),n}return n(t)}}};const hg={partial:!0,tokenize:function(e,t,n){return function(t){return _m(t)?ig(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||Zm(e)?t(e):n(e)}}};const pg={continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(_m(t))return ig(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(pg,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{Ve:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return _m(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};const mg={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return Qm(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}};const gg={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,o=Jm,u(t))}function c(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Xm,u):(e.enter("characterReferenceValue"),i=7,o=Ym,u(t))}function u(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==Jm||Fm(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++<i?(e.consume(a),u):n(a)}}};const bg={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},wg={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){const r=this,i={partial:!0,tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),c}function c(t){return e.enter("codeFencedFence"),_m(t)?ig(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===o?(e.enter("codeFencedFenceSequence"),l(t)):n(t)}function l(t){return t===o?(i++,e.consume(t),l):i>=a?(e.exit("codeFencedFenceSequence"),_m(t)?ig(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||Zm(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(t)}(t)};function c(t){return t===o?(a++,e.consume(t),c):a<3?n(t):(e.exit("codeFencedFenceSequence"),_m(t)?ig(e,u,"whitespace")(t):u(t))}function u(n){return null===n||Zm(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(bg,h,w)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),l(n))}function l(t){return null===t||Zm(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):_m(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ig(e,f,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),l)}function f(t){return null===t||Zm(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||Zm(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===o?n(t):(e.consume(t),d)}function h(t){return e.attempt(i,w,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&_m(t)?ig(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||Zm(t)?e.check(bg,h,w)(t):(e.enter("codeFlowValue"),b(t))}function b(t){return null===t||Zm(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),b)}function w(n){return e.exit("codeFenced"),t(n)}}};const yg={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ig(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):Zm(t)?e.attempt(vg,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||Zm(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},vg={partial:!0,tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):Zm(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):ig(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):Zm(e)?i(e):n(e)}}};const Ag={name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(!("lineEnding"!==e[i][1].type&&"space"!==e[i][1].type||"lineEnding"!==e[r][1].type&&"space"!==e[r][1].type))for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}t=i-1,r++;for(;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):t!==r&&"lineEnding"!==e[t][1].type||(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,o=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),s(t)};function s(t){return 96===t?(e.consume(t),o++,s):(e.exit("codeTextSequence"),a(t))}function a(t){return null===t?n(t):32===t?(e.enter("space"),e.consume(t),e.exit("space"),a):96===t?(i=e.enter("codeTextSequence"),r=0,u(t)):Zm(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(t))}function c(t){return null===t||32===t||96===t||Zm(t)?(e.exit("codeTextData"),a(t)):(e.consume(t),c)}function u(n){return 96===n?(e.consume(n),r++,u):r===o?(e.exit("codeTextSequence"),e.exit("codeText"),t(n)):(i.type="codeTextData",c(n))}}};class kg{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){const n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const i=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&xg(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),xg(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),xg(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e<this.left.length){const t=this.left.splice(e,Number.POSITIVE_INFINITY);xg(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);xg(this.left,t.reverse())}}}function xg(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Eg(e){const t={};let n,r,i,o,s,a,c,u=-1;const l=new kg(e);for(;++u<l.length;){for(;u in t;)u=t[u];if(n=l.get(u),u&&"chunkFlow"===n[1].type&&"listItemPrefix"===l.get(u-1)[1].type&&(a=n[1].qe.events,i=0,i<a.length&&"lineEndingBlank"===a[i][1].type&&(i+=2),i<a.length&&"content"===a[i][1].type))for(;++i<a.length&&"content"!==a[i][1].type;)"chunkText"===a[i][1].type&&(a[i][1].Ge=!0,i++);if("enter"===n[0])n[1].contentType&&(Object.assign(t,Cg(l,u)),u=t[u],c=!0);else if(n[1].Ve){for(i=u,r=void 0;i--;)if(o=l.get(i),"lineEnding"===o[1].type||"lineEndingBlank"===o[1].type)"enter"===o[0]&&(r&&(l.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=i);else if("linePrefix"!==o[1].type&&"listItemIndent"!==o[1].type)break;r&&(n[1].end={...l.get(r)[1].start},s=l.slice(r,u),s.unshift(n),l.splice(r,u-r+1,s))}}return Om(e,0,Number.POSITIVE_INFINITY,l.slice(0)),!c}function Cg(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let s=n.qe;s||(s=r.parser[n.contentType](n.start),n.Je&&(s.Je=!0));const a=s.events,c=[],u={};let l,f,d=-1,h=n,p=0,m=0;const g=[m];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h.qe||(l=r.sliceStream(h),h.next||l.push(null),f&&s.defineSkip(h.start),h.Ge&&(s.We=!0),s.write(l),h.Ge&&(s.We=void 0)),f=h,h=h.next}for(h=n;++d<a.length;)"exit"===a[d][0]&&"enter"===a[d-1][0]&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(m=d+1,g.push(m),h.qe=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h.qe=void 0,h.previous=void 0):g.pop(),d=g.length;d--;){const t=a.slice(g[d],g[d+1]),n=o.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),d=-1;++d<c.length;)u[p+c[d][0]]=p+c[d][1],p+=c[d][1]-c[d][0]-1;return u}const Sg={resolve:function(e){return Eg(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):Zm(t)?e.check(Tg,o,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},Tg={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ig(e,i,"linePrefix")};function i(i){if(null===i||Zm(i))return n(i);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}};function Mg(e,t,n,r,i,o,s,a,c){const u=c||Number.POSITIVE_INFINITY;let l=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),f;if(null===t||32===t||41===t||Km(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),p(t)};function f(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||Zm(t)?n(t):(e.consume(t),92===t?h:d)}function h(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(i){return l||null!==i&&41!==i&&!$m(i)?l<u&&40===i?(e.consume(i),l++,p):41===i?(e.consume(i),l--,p):null===i||32===i||40===i||Km(i)?n(i):(e.consume(i),92===i?m:p):(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(i))}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function Ig(e,t,n,r,i,o){const s=this;let a,c=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),u};function u(f){return c>999||null===f||91===f||93===f&&!a||94===f&&!c&&"Ke"in s.parser.constructs?n(f):93===f?(e.exit(o),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):Zm(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),l(f))}function l(t){return null===t||91===t||93===t||Zm(t)||c++>999?(e.exit("chunkString"),u(t)):(e.consume(t),a||(a=!_m(t)),92===t?f:l)}function f(t){return 91===t||92===t||93===t?(e.consume(t),c++,l):l(t)}}function Bg(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),c(n))}function c(t){return t===s?(e.exit(o),a(s)):null===t?n(t):Zm(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ig(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===s||null===t||Zm(t)?(e.exit("chunkString"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return t===s||92===t?(e.consume(t),u):u(t)}}function Ng(e,t){let n;return function r(i){if(Zm(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(_m(i))return ig(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}const Rg={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return Ig.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=Vm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return $m(t)?Ng(e,a)(t):a(t)}function a(t){return Mg(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function c(t){return e.attempt(Lg,u,u)(t)}function u(t){return _m(t)?ig(e,l,"whitespace")(t):l(t)}function l(o){return null===o||Zm(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},Lg={partial:!0,tokenize:function(e,t,n){return function(t){return $m(t)?Ng(e,r)(t):n(t)};function r(t){return Bg(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return _m(t)?ig(e,o,"whitespace")(t):o(t)}function o(e){return null===e||Zm(e)?t(e):n(e)}}};const Dg={name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return Zm(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}};const Fg={name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Om(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e},tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||$m(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||Zm(n)?(e.exit("atxHeading"),t(n)):_m(n)?ig(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||$m(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}}};const Og=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Pg=["pre","script","style","textarea"],Ug={concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},tokenize:function(e,t,n){const r=this;let i,o,s,a,c;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(a){return 33===a?(e.consume(a),l):47===a?(e.consume(a),o=!0,h):63===a?(e.consume(a),i=3,r.interrupt?t:D):Gm(a)?(e.consume(a),s=String.fromCharCode(a),p):n(a)}function l(o){return 45===o?(e.consume(o),i=2,f):91===o?(e.consume(o),i=5,a=0,d):Gm(o)?(e.consume(o),i=4,r.interrupt?t:D):n(o)}function f(i){return 45===i?(e.consume(i),r.interrupt?t:D):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:S:d):n(i)}function h(t){return Gm(t)?(e.consume(t),s=String.fromCharCode(t),p):n(t)}function p(a){if(null===a||47===a||62===a||$m(a)){const c=47===a,u=s.toLowerCase();return c||o||!Pg.includes(u)?Og.includes(s.toLowerCase())?(i=6,c?(e.consume(a),m):r.interrupt?t(a):S(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?g(a):b(a)):(i=1,r.interrupt?t(a):S(a))}return 45===a||Jm(a)?(e.consume(a),s+=String.fromCharCode(a),p):n(a)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:S):n(i)}function g(t){return _m(t)?(e.consume(t),g):E(t)}function b(t){return 47===t?(e.consume(t),E):58===t||95===t||Gm(t)?(e.consume(t),w):_m(t)?(e.consume(t),b):E(t)}function w(t){return 45===t||46===t||58===t||95===t||Jm(t)?(e.consume(t),w):y(t)}function y(t){return 61===t?(e.consume(t),v):_m(t)?(e.consume(t),y):b(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),c=t,A):_m(t)?(e.consume(t),v):k(t)}function A(t){return t===c?(e.consume(t),c=null,x):null===t||Zm(t)?n(t):(e.consume(t),A)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||$m(t)?y(t):(e.consume(t),k)}function x(e){return 47===e||62===e||_m(e)?b(e):n(e)}function E(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||Zm(t)?S(t):_m(t)?(e.consume(t),C):n(t)}function S(t){return 45===t&&2===i?(e.consume(t),B):60===t&&1===i?(e.consume(t),N):62===t&&4===i?(e.consume(t),F):63===t&&3===i?(e.consume(t),D):93===t&&5===i?(e.consume(t),L):!Zm(t)||6!==i&&7!==i?null===t||Zm(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),S):(e.exit("htmlFlowData"),e.check(qg,O,T)(t))}function T(t){return e.check(Hg,M,O)(t)}function M(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||Zm(t)?T(t):(e.enter("htmlFlowData"),S(t))}function B(t){return 45===t?(e.consume(t),D):S(t)}function N(t){return 47===t?(e.consume(t),s="",R):S(t)}function R(t){if(62===t){const n=s.toLowerCase();return Pg.includes(n)?(e.consume(t),F):S(t)}return Gm(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),R):S(t)}function L(t){return 93===t?(e.consume(t),D):S(t)}function D(t){return 62===t?(e.consume(t),F):45===t&&2===i?(e.consume(t),D):S(t)}function F(t){return null===t||Zm(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),F)}function O(n){return e.exit("htmlFlow"),t(n)}}},qg={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(hg,t,n)}}},Hg={partial:!0,tokenize:function(e,t,n){const r=this;return function(t){if(Zm(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}};const zg={name:"htmlText",tokenize:function(e,t,n){const r=this;let i,o,s;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),c):47===t?(e.consume(t),v):63===t?(e.consume(t),w):Gm(t)?(e.consume(t),x):n(t)}function c(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),o=0,h):Gm(t)?(e.consume(t),b):n(t)}function u(t){return 45===t?(e.consume(t),d):n(t)}function l(t){return null===t?n(t):45===t?(e.consume(t),f):Zm(t)?(s=l,R(t)):(e.consume(t),l)}function f(t){return 45===t?(e.consume(t),d):l(t)}function d(e){return 62===e?N(e):45===e?f(e):l(e)}function h(t){const r="CDATA[";return t===r.charCodeAt(o++)?(e.consume(t),6===o?p:h):n(t)}function p(t){return null===t?n(t):93===t?(e.consume(t),m):Zm(t)?(s=p,R(t)):(e.consume(t),p)}function m(t){return 93===t?(e.consume(t),g):p(t)}function g(t){return 62===t?N(t):93===t?(e.consume(t),g):p(t)}function b(t){return null===t||62===t?N(t):Zm(t)?(s=b,R(t)):(e.consume(t),b)}function w(t){return null===t?n(t):63===t?(e.consume(t),y):Zm(t)?(s=w,R(t)):(e.consume(t),w)}function y(e){return 62===e?N(e):w(e)}function v(t){return Gm(t)?(e.consume(t),A):n(t)}function A(t){return 45===t||Jm(t)?(e.consume(t),A):k(t)}function k(t){return Zm(t)?(s=k,R(t)):_m(t)?(e.consume(t),k):N(t)}function x(t){return 45===t||Jm(t)?(e.consume(t),x):47===t||62===t||$m(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),N):58===t||95===t||Gm(t)?(e.consume(t),C):Zm(t)?(s=E,R(t)):_m(t)?(e.consume(t),E):N(t)}function C(t){return 45===t||46===t||58===t||95===t||Jm(t)?(e.consume(t),C):S(t)}function S(t){return 61===t?(e.consume(t),T):Zm(t)?(s=S,R(t)):_m(t)?(e.consume(t),S):E(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,M):Zm(t)?(s=T,R(t)):_m(t)?(e.consume(t),T):(e.consume(t),I)}function M(t){return t===i?(e.consume(t),i=void 0,B):null===t?n(t):Zm(t)?(s=M,R(t)):(e.consume(t),M)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||$m(t)?E(t):(e.consume(t),I)}function B(e){return 47===e||62===e||$m(e)?E(e):n(e)}function N(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return _m(t)?ig(e,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):D(t)}function D(t){return e.enter("htmlTextData"),s(t)}}};const jg={name:"labelEnd",resolveAll:function(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){const e="labelImage"===r.type?4:2;r.type="data",t+=e}}e.length!==n.length&&Om(e,0,e.length,n);return e},resolveTo:function(e,t){let n,r,i,o,s=e.length,a=0;for(;s--;)if(n=e[s][1],r){if("link"===n.type||"labelLink"===n.type&&n.Ye)break;"enter"===e[s][0]&&"labelLink"===n.type&&(n.Ye=!0)}else if(i){if("enter"===e[s][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n.Xe&&(r=s,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=s);const c={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},l={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",c,t],["enter",u,t]],o=Pm(o,e.slice(r+1,r+a+3)),o=Pm(o,[["enter",l,t]]),o=Pm(o,ug(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),o=Pm(o,[["exit",l,t],e[i-2],e[i-1],["exit",u,t]]),o=Pm(o,e.slice(i+1)),o=Pm(o,[["exit",c,t]]),Om(e,r,e.length,o),e},tokenize:function(e,t,n){const r=this;let i,o,s=r.events.length;for(;s--;)if(("labelImage"===r.events[s][1].type||"labelLink"===r.events[s][1].type)&&!r.events[s][1].Xe){i=r.events[s][1];break}return function(t){if(!i)return n(t);if(i.Ye)return l(t);return o=r.parser.defined.includes(Vm(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a};function a(t){return 40===t?e.attempt(Vg,u,o?u:l)(t):91===t?e.attempt(Gg,u,o?c:l)(t):o?u(t):l(t)}function c(t){return e.attempt(Jg,u,l)(t)}function u(e){return t(e)}function l(e){return i.Xe=!0,n(e)}}},Vg={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return $m(t)?Ng(e,i)(t):i(t)}function i(t){return 41===t?u(t):Mg(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return $m(t)?Ng(e,a)(t):u(t)}function s(e){return n(e)}function a(t){return 34===t||39===t||40===t?Bg(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function c(t){return $m(t)?Ng(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},Gg={tokenize:function(e,t,n){const r=this;return function(t){return Ig.call(r,e,i,o,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(Vm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},Jg={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}};const Wg={name:"labelStartImage",resolveAll:jg.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"Ke"in r.parser.constructs?n(e):t(e)}}};const Kg={name:"labelStartLink",resolveAll:jg.resolveAll,tokenize:function(e,t,n){const r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"Ke"in r.parser.constructs?n(e):t(e)}}};const Yg={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),ig(e,t,"linePrefix")}}};const Xg={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(t){return e.enter("thematicBreak"),function(e){return r=e,o(e)}(t)};function o(o){return o===r?(e.enter("thematicBreakSequence"),s(o)):i>=3&&(null===o||Zm(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),_m(t)?ig(e,o,"whitespace")(t):o(t))}}};const Qg={continuation:{tokenize:function(e,t,n){const r=this;return r.containerState.Pe=void 0,e.check(hg,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ig(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){if(r.containerState.furtherBlankLines||!_m(n))return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n);return r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt($g,t,i)(n)});function i(i){return r.containerState.Pe=!0,r.interrupt=void 0,ig(e,e.attempt(Qg,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Ym(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{Ve:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(Xg,n,c)(t):c(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return Ym(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),c(t)):n(t)}function c(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(hg,r.interrupt?n:u,e.attempt(Zg,f,l))}function u(e){return r.containerState.initialBlankLine=!0,o++,f(e)}function l(t){return _m(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},Zg={partial:!0,tokenize:function(e,t,n){const r=this;return ig(e,function(e){const i=r.events[r.events.length-1];return!_m(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},$g={partial:!0,tokenize:function(e,t,n){const r=this;return ig(e,function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}};const _g={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=s;return e.push(["exit",s,t]),e},tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),_m(t)?ig(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||Zm(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}};const eb={tokenize:function(e){const t=this,n=e.attempt(hg,function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,ig(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Sg,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const tb={resolveAll:ob()},nb=ib("string"),rb=ib("text");function ib(e){return{resolveAll:ob("text"===e?sb:void 0),tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return c(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return c(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function c(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i<t.length;){const e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function ob(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function sb(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){const r=e[n-1][1],i=t.sliceStream(r);let o,s=i.length,a=-1,c=0;for(;s--;){const e=i[s];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)c++,a--;if(a)break;a=-1}else if(-2===e)o=!0,c++;else if(-1!==e){s++;break}}if(t.Je&&n===e.length&&(c=0),c){const i={type:n===e.length||o||c<2?"lineSuffix":"hardBreakTrailing",start:{je:s?a:r.start.je+a,Qe:r.start.Qe+s,line:r.end.line,column:r.end.column-c,offset:r.end.offset-c},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,["enter",i,t],["exit",i,t]),n+=2)}n++}return e}const ab={42:Qg,43:Qg,45:Qg,48:Qg,49:Qg,50:Qg,51:Qg,52:Qg,53:Qg,54:Qg,55:Qg,56:Qg,57:Qg,62:pg},cb={91:Rg},ub={[-2]:yg,[-1]:yg,32:yg},lb={35:Fg,42:Xg,45:[_g,Xg],60:Ug,61:_g,95:Xg,96:wg,126:wg},fb={38:gg,92:mg},db={[-5]:Yg,[-4]:Yg,[-3]:Yg,33:Wg,38:gg,42:lg,60:[dg,zg],91:Kg,92:[Dg,mg],93:jg,95:lg,96:Ag},hb={null:[lg,tb]},pb=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:cb,disable:{null:[]},document:ab,flow:lb,flowInitial:ub,insideSpan:hb,string:fb,text:db},Symbol.toStringTag,{value:"Module"}));function mb(e,t,n){let r={je:-1,Qe:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let s=[],a=[];const c={attempt:g(function(e,t){b(e,t.from)}),check:g(m),consume:function(e){Zm(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,w()):-1!==e&&(r.column++,r.offset++);r.je<0?r.Qe++:(r.je++,r.je===s[r.Qe].length&&(r.je=-1,r.Qe++));u.previous=e},enter:function(e,t){const n=t||{};return n.type=e,n.start=d(),u.events.push(["enter",n,u]),a.push(n),n},exit:function(e){const t=a.pop();return t.end=d(),u.events.push(["exit",t,u]),t},interrupt:g(m,{interrupt:!0})},u={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,w()},events:[],now:d,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let s;if("string"==typeof o)s=o;else switch(o){case-5:s="\r";break;case-4:s="\n";break;case-3:s="\r\n";break;case-2:s=t?" ":"\t";break;case-1:if(!t&&i)continue;s=" ";break;default:s=String.fromCharCode(o)}i=-2===o,r.push(s)}return r.join("")}(f(e),t)},sliceStream:f,write:function(e){if(s=Pm(s,e),h(),null!==s[s.length-1])return[];return b(t,0),u.events=ug(o,u.events,u),u.events}};let l=t.tokenize.call(u,c);return t.resolveAll&&o.push(t),u;function f(e){return function(e,t){const n=t.start.Qe,r=t.start.je,i=t.end.Qe,o=t.end.je;let s;if(n===i)s=[e[n].slice(r,o)];else{if(s=e.slice(n,i),r>-1){const e=s[0];"string"==typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function d(){const{je:e,Qe:t,line:n,column:i,offset:o}=r;return{je:e,Qe:t,line:n,column:i,offset:o}}function h(){let e;for(;r.Qe<s.length;){const t=s[r.Qe];if("string"==typeof t)for(e=r.Qe,r.je<0&&(r.je=0);r.Qe===e&&r.je<t.length;)p(t.charCodeAt(r.je));else p(t)}}function p(e){l=l(e)}function m(e,t){t.restore()}function g(e,t){return function(n,i,o){let s,l,f,h;return Array.isArray(n)?p(n):"tokenize"in n?p([n]):function(e){return t;function t(t){const n=null!==t&&e[t],r=null!==t&&e.null;return p([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}(n);function p(e){return s=e,l=0,0===e.length?o:m(e[l])}function m(e){return function(n){h=function(){const e=d(),t=u.previous,n=u.currentConstruct,i=u.events.length,o=Array.from(a);return{from:i,restore:s};function s(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,a=o,w()}}(),f=e,e.partial||(u.currentConstruct=e);if(e.name&&u.parser.constructs.disable.null.includes(e.name))return b();return e.tokenize.call(t?Object.assign(Object.create(u),t):u,c,g,b)(n)}}function g(t){return e(f,h),i}function b(e){return h.restore(),++l<s.length?m(s[l]):o}}}function b(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&Om(u.events,t,u.events.length-t,e.resolve(u.events.slice(t),u)),e.resolveTo&&(u.events=e.resolveTo(u.events,u))}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}const gb=/[\0\t\n\r]/g;const bb=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wb(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return jm(n.slice(t?2:1),t?16:10)}return Fm(n)||e}const yb={}.hasOwnProperty;function vb(e,t,n){return t&&"object"==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(te),autolinkProtocol:C,autolinkEmail:C,atxHeading:o(Z),blockQuote:o(W),characterEscape:C,characterReference:C,codeFenced:o(K),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(K,s),codeText:o(Y,s),codeTextData:C,data:C,codeFlowValue:C,definition:o(X),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(Q),hardBreakEscape:o($),hardBreakTrailing:o($),htmlFlow:o(_,s),htmlFlowData:C,htmlText:o(_,s),htmlTextData:C,image:o(ee),label:s,link:o(te),listItem:o(re),listItemValue:d,listOrdered:o(ne,f),listUnordered:o(ne),paragraph:o(ie),reference:q,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(Z),strong:o(oe),thematicBreak:o(ae)},exit:{atxHeading:c(),atxHeadingSequence:A,autolink:c(),autolinkEmail:J,autolinkProtocol:G,blockQuote:c(),characterEscapeValue:S,characterReferenceMarkerHexadecimal:z,characterReferenceMarkerNumeric:z,characterReferenceValue:j,characterReference:V,codeFenced:c(g),codeFencedFence:m,codeFencedFenceInfo:h,codeFencedFenceMeta:p,codeFlowValue:S,codeIndented:c(b),codeText:c(N),codeTextData:S,data:S,definition:c(),definitionDestinationString:v,definitionLabelString:w,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(M),hardBreakTrailing:c(M),htmlFlow:c(I),htmlFlowData:S,htmlText:c(B),htmlTextData:S,image:c(L),label:F,labelText:D,lineEnding:T,link:c(R),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:H,resourceDestinationString:O,resourceTitleString:P,resource:U,setextHeading:c(E),setextHeadingLineSequence:x,setextHeadingText:k,strong:c(),thematicBreak:c()}};kb(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const o={stack:[r],tokenStack:[],config:t,enter:a,exit:u,buffer:s,resume:l,data:n},c=[];let f=-1;for(;++f<e.length;)if("listOrdered"===e[f][1].type||"listUnordered"===e[f][1].type)if("enter"===e[f][0])c.push(f);else{f=i(e,c.pop(),f)}for(f=-1;++f<e.length;){const n=t[e[f][0]];yb.call(n,e[f][1].type)&&n[e[f][1].type].call(Object.assign({sliceSerialize:e[f][2].sliceSerialize},o),e[f][1])}if(o.tokenStack.length>0){const e=o.tokenStack[o.tokenStack.length-1];(e[1]||Eb).call(o,void 0,e[0])}for(r.position={start:Ab(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ab(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},f=-1;++f<t.transforms.length;)r=t.transforms[f](r)||r;return r}function i(e,t,n){let r,i,o,s,a=t-1,c=-1,u=!1;for(;++a<=n;){const t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?c++:c--,s=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||s||c||o||(o=a),s=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:s=void 0}if(!c&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===c&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let s=a;for(i=void 0;s--;){const t=e[s];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=s}else if("linePrefix"!==t[1].type&&"blockQuotePrefix"!==t[1].type&&"blockQuotePrefixWhitespace"!==t[1].type&&"blockQuoteMarker"!==t[1].type&&"listItemIndent"!==t[1].type)break}o&&(!i||o<i)&&(r.Ze=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){const i={type:"listItem",Ze:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,o=void 0,s=!0}}}return e[t][1].Ze=u,n}function o(e,t){return n;function n(n){a.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:Ab(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){const n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw new Error("Cannot close `"+e.type+"` ("+am({start:e.start,end:e.end})+"): it’s not open");if(r[0].type!==e.type)if(t)t.call(this,e,r[0]);else{(r[1]||Eb).call(this,e,r[0])}n.position.end=Ab(e.end)}function l(){return Bm(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(e){if(this.data.expectingFirstListItemValue){this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function h(){const e=this.resume();this.stack[this.stack.length-1].lang=e}function p(){const e=this.resume();this.stack[this.stack.length-1].meta=e}function m(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}function w(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Vm(this.sliceSerialize(e)).toLowerCase()}function y(){const e=this.resume();this.stack[this.stack.length-1].title=e}function v(){const e=this.resume();this.stack[this.stack.length-1].url=e}function A(e){const t=this.stack[this.stack.length-1];if(!t.depth){const n=this.sliceSerialize(e).length;t.depth=n}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function x(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function C(e){const t=this.stack[this.stack.length-1].children;let n=t[t.length-1];n&&"text"===n.type||(n=se(),n.position={start:Ab(e.start),end:void 0},t.push(n)),this.stack.push(n)}function S(e){const t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Ab(e.end)}function T(e){const n=this.stack[this.stack.length-1];if(this.data.atHardBreak){return n.children[n.children.length-1].position.end=Ab(e.end),void(this.data.atHardBreak=void 0)}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(C.call(this,e),S.call(this,e))}function M(){this.data.atHardBreak=!0}function I(){const e=this.resume();this.stack[this.stack.length-1].value=e}function B(){const e=this.resume();this.stack[this.stack.length-1].value=e}function N(){const e=this.resume();this.stack[this.stack.length-1].value=e}function R(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function L(){const e=this.stack[this.stack.length-1];if(this.data.inReference){const t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function D(e){const t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=function(e){return e.replace(bb,wb)}(t),n.identifier=Vm(t).toLowerCase()}function F(){const e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){const t=e.children;n.children=t}else n.alt=t}function O(){const e=this.resume();this.stack[this.stack.length-1].url=e}function P(){const e=this.resume();this.stack[this.stack.length-1].title=e}function U(){this.data.inReference=void 0}function q(){this.data.referenceType="collapsed"}function H(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=Vm(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"}function z(e){this.data.characterReferenceType=e.type}function j(e){const t=this.sliceSerialize(e),n=this.data.characterReferenceType;let r;if(n)r=jm(t,"characterReferenceMarkerNumeric"===n?10:16),this.data.characterReferenceType=void 0;else{r=Fm(t)}this.stack[this.stack.length-1].value+=r}function V(e){this.stack.pop().position.end=Ab(e.end)}function G(e){S.call(this,e);this.stack[this.stack.length-1].url=this.sliceSerialize(e)}function J(e){S.call(this,e);this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)}function W(){return{type:"blockquote",children:[]}}function K(){return{type:"code",lang:null,meta:null,value:""}}function Y(){return{type:"inlineCode",value:""}}function X(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Q(){return{type:"emphasis",children:[]}}function Z(){return{type:"heading",depth:0,children:[]}}function $(){return{type:"break"}}function _(){return{type:"html",value:""}}function ee(){return{type:"image",title:null,url:"",alt:null}}function te(){return{type:"link",title:null,url:"",children:[]}}function ne(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e.Ze,children:[]}}function re(e){return{type:"listItem",spread:e.Ze,checked:null,children:[]}}function ie(){return{type:"paragraph",children:[]}}function oe(){return{type:"strong",children:[]}}function se(){return{type:"text",value:""}}function ae(){return{type:"thematicBreak"}}}(n)(function(e){for(;!Eg(e););return e}(function(e){const t={constructs:qm([pb,...(e||{}).extensions||[]]),content:n(og),defined:[],document:n(sg),flow:n(eb),lazy:{},string:n(nb),text:n(rb)};return t;function n(e){return function(n){return mb(t,e,n)}}}(n).document().write(function(){let e,t=1,n="",r=!0;return function(i,o,s){const a=[];let c,u,l,f,d;for(i=n+("string"==typeof i?i.toString():new TextDecoder(o||void 0).decode(i)),l=0,n="",r&&(65279===i.charCodeAt(0)&&l++,r=void 0);l<i.length;){if(gb.lastIndex=l,c=gb.exec(i),f=c&&void 0!==c.index?c.index:i.length,d=i.charCodeAt(f),!c){n=i.slice(l);break}if(10===d&&l===f&&e)a.push(-3),e=void 0;else switch(e&&(a.push(-5),e=void 0),l<f&&(a.push(i.slice(l,f)),t+=f-l),d){case 0:a.push(65533),t++;break;case 9:for(u=4*Math.ceil(t/4),a.push(-2);t++<u;)a.push(-1);break;case 10:a.push(-4),t=1;break;default:e=!0,t=1}l=f+1}return s&&(e&&a.push(-5),n&&a.push(n),a.push(null)),a}}()(e,t,!0))))}function Ab(e){return{line:e.line,column:e.column,offset:e.offset}}function kb(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?kb(e,r):xb(e,r)}}function xb(e,t){let n;for(n in t)if(yb.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Eb(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+am({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+am({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+am({start:t.start,end:t.end})+") is still open")}function Cb(e){const t=this;t.parser=function(n){return vb(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Sb(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function Tb(e){const t=e.spread;return null==t?e.children.length>1:t}function Mb(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Ib(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Ib(t.slice(i),i>0,!1)),o.join("")}function Ib(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const Bb={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=rg(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);void 0===a?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,a+=1,e.footnoteCounts.set(r,a);const c={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,c);const u={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sb(e,t);const i={src:rg(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){const n={src:rg(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Sb(e,t);const i={href:rg(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){const n={href:rg(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Tb(n[r])}return t}(n):Tb(t),o={},s=[];if("boolean"==typeof t.checked){const e=r[0];let n;e&&"element"===e.type&&"p"===e.tagName?n=e:(n={type:"element",tagName:"p",properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?s.push(e):s.push(...e.children)}const c=r[r.length-1];c&&(i||"element"!==c.type||"p"!==c.tagName)&&s.push({type:"text",value:"\n"});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)},list:function(e,t){const n={},r=e.all(t);let i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){const e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=om(t.children[1]),s=im(t.children[t.children.length-1]);o&&s&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const c=[];for(;++a<s;){const n=t.children[a],r={},s=o?o[a]:void 0;s&&(r.align=s);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),c.push(u)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){const n={type:"text",value:Mb(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:Nb,yaml:Nb,definition:Nb,footnoteDefinition:Nb};function Nb(){}const Rb="object"==typeof self?self:globalThis,Lb=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Rb[e](t)},Db=e=>((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);const[o,s]=t[i];switch(o){case 0:case-1:return n(s,i);case 1:{const e=n([],i);for(const t of s)e.push(r(t));return e}case 2:{const e=n({},i);for(const[t,n]of s)e[r(t)]=r(n);return e}case 3:return n(new Date(s),i);case 4:{const{source:e,flags:t}=s;return n(new RegExp(e,t),i)}case 5:{const e=n(new Map,i);for(const[t,n]of s)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,i);for(const t of s)e.add(r(t));return e}case 7:{const{name:e,message:t}=s;return n(Lb(e,t),i)}case 8:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(Lb(o,s),i)};return r})(new Map,e)(0),Fb="",{toString:Ob}={},{keys:Pb}=Object,Ub=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ob.call(e).slice(8,-1);switch(n){case"Array":return[1,Fb];case"Object":return[2,Fb];case"Date":return[3,Fb];case"RegExp":return[4,Fb];case"Map":return[5,Fb];case"Set":return[6,Fb];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},qb=([e,t])=>0===e&&("function"===t||"symbol"===t),Hb=(e,{json:t,lossy:n}={})=>{const r=[];return((e,t,n,r)=>{const i=(e,t)=>{const i=r.push(e)-1;return n.set(t,i),i},o=r=>{if(n.has(r))return n.get(r);let[s,a]=Ub(r);switch(s){case 0:{let t=r;switch(a){case"bigint":s=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([s,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}const e=[],t=i([s,e],r);for(const n of r)e.push(o(n));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return o(r.toJSON());const n=[],c=i([s,n],r);for(const t of Pb(r))!e&&qb(Ub(r[t]))||n.push([o(t),o(r[t])]);return c}case 3:return i([s,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return i([s,{source:e,flags:t}],r)}case 5:{const t=[],n=i([s,t],r);for(const[i,s]of r)(e||!qb(Ub(i))&&!qb(Ub(s)))&&t.push([o(i),o(s)]);return n}case 6:{const t=[],n=i([s,t],r);for(const i of r)!e&&qb(Ub(i))||t.push(o(i));return n}}const{message:c}=r;return i([s,{name:a,message:c}],r)};return o})(!(t||n),!!t,new Map,r)(e),r},zb="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Db(Hb(e,t)):structuredClone(e):(e,t)=>Db(Hb(e,t));function jb(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Vb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Gb=function(e){if(null==e)return Wb;if("function"==typeof e)return Jb(e);if("object"==typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Gb(e[n]);return Jb(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}(e):function(e){const t=e;return Jb(n);function n(n){const r=n;let i;for(i in e)if(r[i]!==t[i])return!1;return!0}}(e);if("string"==typeof e)return function(e){return Jb(t);function t(t){return t&&t.type===e}}(e);throw new Error("Expected function, string, or object as test")};function Jb(e){return function(t,n,r){return Boolean(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function Wb(){return!0}const Kb=[],Yb=!0,Xb=!1;function Qb(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;const o=Gb(i),s=r?-1:1;!function e(i,a,c){const u=i&&"object"==typeof i?i:{};if("string"==typeof u.type){const e="string"==typeof u.tagName?u.tagName:"string"==typeof u.name?u.name:void 0;Object.defineProperty(l,"name",{value:"node ("+i.type+(e?"<"+e+">":"")+")"})}return l;function l(){let u,l,f,d=Kb;if((!t||o(i,a,c[c.length-1]||void 0))&&(d=function(e){if(Array.isArray(e))return e;if("number"==typeof e)return[Yb,e];return null==e?Kb:[e]}(n(i,c)),d[0]===Xb))return d;if("children"in i&&i.children){const t=i;if(t.children&&"skip"!==d[0])for(l=(r?t.children.length:-1)+s,f=c.concat(t);l>-1&&l<t.children.length;){const n=t.children[l];if(u=e(n,l,f)(),u[0]===Xb)return u;l="number"==typeof u[1]?u[1]:l+s}}return d}}(e,void 0,[])()}function Zb(e,t,n,r){let i,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,i=n):(o=t,s=n,i=r),Qb(e,o,function(e,t){const n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return s(e,r,n)},i)}const $b={}.hasOwnProperty,_b={};function ew(e,t){e.position&&(t.position=function(e){const t=om(e),n=im(e);if(t&&n)return{start:t,end:n}}(e))}function tw(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;if("string"==typeof t)if("element"===n.type)n.tagName=t;else{n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}}"element"===n.type&&i&&Object.assign(n.properties,zb(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nw(e,t){const n=t.data||{},r=!("value"in t)||$b.call(n,"hProperties")||$b.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:e.all(t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}function rw(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function iw(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function ow(e,t){const n=function(e,t){const n=t||_b,r=new Map,i=new Map,o=new Map,s={...Bb,...n.handlers},a={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r<n.length;){const i=a.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=iw(i.value)),!Array.isArray(i)&&"element"===i.type)){const e=i.children[0];e&&"text"===e.type&&(e.value=iw(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:tw,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:s,one:function(e,t){const n=e.type,r=a.handlers[n];if($b.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if("children"in e){const{children:t,...n}=e,r=zb(n);return r.children=a.all(e),r}return zb(e)}return(a.options.unknownHandler||nw)(a,e,t)},options:n,patch:ew,wrap:rw};return Zb(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){const t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a}(e,t),r=n.one(e,void 0),i=function(e){const t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||jb,r=e.options.footnoteBackLabel||Vb,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let c=-1;for(;++c<e.footnoteOrder.length;){const i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;const o=e.all(i),s=String(i.identifier).toUpperCase(),u=rg(s.toLowerCase());let l=0;const f=[],d=e.footnoteCounts.get(s);for(;void 0!==d&&++l<=d;){f.length>0&&f.push({type:"text",value:" "});let e="string"==typeof n?n:n(c,l);"string"==typeof e&&(e={type:"text",value:e}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(l>1?"-"+l:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(c,l),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const h=o[o.length-1];if(h&&"element"===h.type&&"p"===h.tagName){const e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...f)}else o.push(...f);const p={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(o,!0)};e.patch(i,p),a.push(p)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...zb(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:"\n"},i),o}function sw(e,t){return e&&"run"in e?async function(n,r){const i=ow(n,{file:r,...t});await e.run(i,r)}:function(n,r){return ow(n,{file:r,...e||t})}}function aw(e){if(e)throw e}var cw,uw;var lw=function(){if(uw)return cw;uw=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return!1;for(r in n);return void 0===r||e.call(n,r)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return cw=function e(){var t,n,r,c,u,l,f=arguments[0],d=1,h=arguments.length,p=!1;for("boolean"==typeof f&&(p=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<h;++d)if(null!=(t=arguments[d]))for(n in t)r=a(f,n),f!==(c=a(t,n))&&(p&&c&&(o(c)||(u=i(c)))?(u?(u=!1,l=r&&i(r)?r:[]):l=r&&o(r)?r:{},s(f,{name:n,newValue:e(p,l,c)})):void 0!==c&&s(f,{name:n,newValue:c}));return f},cw}();const fw=gr(lw);function dw(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)}function hw(){const e=[],t={run:function(...t){let n=-1;const r=t.pop();if("function"!=typeof r)throw new TypeError("Expected function as last argument, not "+r);!function i(o,...s){const a=e[++n];let c=-1;if(o)r(o);else{for(;++c<t.length;)null!==s[c]&&void 0!==s[c]||(s[c]=t[c]);t=s,a?function(e,t){let n;return r;function r(...t){const r=e.length>t.length;let a;r&&t.push(i);try{a=e.apply(this,t)}catch(o){if(r&&n)throw o;return i(o)}r||(a&&a.then&&"function"==typeof a.then?a.then(s,i):a instanceof Error?i(a):s(a))}function i(e,...r){n||(n=!0,t(e,...r))}function s(e){i(null,e)}}(a,i)(...s):r(null,...s)}}(null,...t)},use:function(n){if("function"!=typeof n)throw new TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}const pw={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw new TypeError('"ext" argument must be a string');mw(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(47===e.codePointAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(mw(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){mw(e);let t,n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=e.codePointAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)mw(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){mw(e);const t=47===e.codePointAt(0);let n=function(e,t){let n,r,i="",o=0,s=-1,a=0,c=-1;for(;++c<=e.length;){if(c<e.length)n=e.codePointAt(c);else{if(47===n)break;n=47}if(47===n){if(s===c-1||1===a);else if(s!==c-1&&2===a){if(i.length<2||2!==o||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2))if(i.length>2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=c,a=0;continue}}else if(i.length>0){i="",o=0,s=c,a=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,c):i=e.slice(s+1,c),o=c-s-1;s=c,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(t)},sep:"/"};function mw(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const gw={cwd:function(){return"/"}};function bw(e){return Boolean(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function ww(e){if("string"==typeof e)e=new URL(e);else if(!bw(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){const e=t.codePointAt(n+2);if(70===e||102===e){const e=new TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}const yw=["history","path","basename","stem","extname","dirname"];class vw{constructor(e){let t;t=e?bw(e)?{path:e}:"string"==typeof e||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":gw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n,r=-1;for(;++r<yw.length;){const e=yw[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)yw.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?pw.basename(this.path):void 0}set basename(e){kw(e,"basename"),Aw(e,"basename"),this.path=pw.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?pw.dirname(this.path):void 0}set dirname(e){xw(this.basename,"dirname"),this.path=pw.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?pw.extname(this.path):void 0}set extname(e){if(Aw(e,"extname"),xw(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw new Error("`extname` must start with `.`");if(e.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pw.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){bw(e)&&(e=ww(e)),kw(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?pw.basename(this.path,this.extname):void 0}set stem(e){kw(e,"stem"),Aw(e,"stem"),this.path=pw.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){const r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){const r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){const r=new fm(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){if(void 0===this.value)return"";if("string"==typeof this.value)return this.value;return new TextDecoder(e||void 0).decode(this.value)}}function Aw(e,t){if(e&&e.includes(pw.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pw.sep+"`")}function kw(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function xw(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}const Ew=function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},Cw={}.hasOwnProperty;class Sw extends Ew{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=hw()}copy(){const e=new Sw;let t=-1;for(;++t<this.attachers.length;){const n=this.attachers[t];e.use(...n)}return e.data(fw(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2===arguments.length?(Bw("data",this.frozen),this.namespace[e]=t,this):Cw.call(this.namespace,e)&&this.namespace[e]||void 0:e?(Bw("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;const e=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...n]=this.attachers[this.freezeIndex];if(!1===n[0])continue;!0===n[0]&&(n[0]=void 0);const r=t.call(e,...n);"function"==typeof r&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();const t=Lw(e),n=this.parser||this.Parser;return Mw("parse",n),n(String(t),t)}process(e,t){const n=this;return this.freeze(),Mw("process",this.parser||this.Parser),Iw("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){const o=Lw(e),s=n.parse(o);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(s,o,function(e,t,r){if(e||!t||!r)return a(e);const i=t,o=n.stringify(i,r);var s;"string"==typeof(s=o)||function(e){return Boolean(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(s)?r.value=o:r.result=o,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),Mw("processSync",this.parser||this.Parser),Iw("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,aw(e),t=r}),Rw("processSync","process",n),t}run(e,t,n){Nw(e),this.freeze();const r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,o){const s=Lw(t);r.run(e,s,function(t,r,s){const a=r||e;t?o(t):i?i(a):n(void 0,a,s)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){aw(e),n=t,r=!0}),Rw("runSync","run",r),n}stringify(e,t){this.freeze();const n=Lw(t),r=this.compiler||this.Compiler;return Iw("stringify",r),Nw(e),r(e,n)}use(e,...t){const n=this.attachers,r=this.namespace;if(Bw("use",this.frozen),null==e);else if("function"==typeof e)a(e,t);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");Array.isArray(e)?s(e):o(e)}return this;function i(e){if("function"==typeof e)a(e,[]);else{if("object"!=typeof e)throw new TypeError("Expected usable value, not `"+e+"`");if(Array.isArray(e)){const[t,...n]=e;a(t,n)}else o(e)}}function o(e){if(!("plugins"in e)&&!("settings"in e))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(e.plugins),e.settings&&(r.settings=fw(!0,r.settings,e.settings))}function s(e){let t=-1;if(null==e);else{if(!Array.isArray(e))throw new TypeError("Expected a list of plugins, not `"+e+"`");for(;++t<e.length;){i(e[t])}}}function a(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...o]=t;const s=n[i][1];dw(s)&&dw(r)&&(r=fw(!0,s,r)),n[i]=[e,r,...o]}}}}const Tw=(new Sw).freeze();function Mw(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Iw(e,t){if("function"!=typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Bw(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Nw(e){if(!dw(e)||"string"!=typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Rw(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Lw(e){return function(e){return Boolean(e&&"object"==typeof e&&"message"in e&&"messages"in e)}(e)?e:new vw(e)}const Dw=[],Fw={allowDangerousHtml:!0},Ow=/^(https?|ircs?|mailto|xmpp)$/i,Pw=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Uw(e){const n=function(e){const t=e.rehypePlugins||Dw,n=e.remarkPlugins||Dw,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Fw}:Fw,i=Tw().use(Cb).use(n).use(sw,r).use(t);return i}(e),r=function(e){const t=e.children||"",n=new vw;"string"==typeof t&&(n.value=t);return n}(e);return function(e,n){const r=n.allowedElements,i=n.allowElement,o=n.components,s=n.disallowedElements,a=n.skipHtml,c=n.unwrapDisallowed,u=n.urlTransform||qw;for(const t of Pw)Object.hasOwn(n,t.from)&&sp((t.from,t.to&&t.to,t.id));return Zb(e,l),wm(e,{Fragment:t.Fragment,components:o,ignoreInvalidStyle:!0,jsx:t.jsx,jsxs:t.jsxs,passKeys:!0,passNode:!0});function l(e,t,n){if("raw"===e.type&&n&&"number"==typeof t)return a?n.children.splice(t,1):n.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in Mm)if(Object.hasOwn(Mm,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Mm[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let o=r?!r.includes(e.tagName):!!s&&s.includes(e.tagName);if(!o&&i&&"number"==typeof t&&(o=!i(e,t,n)),o&&n&&"number"==typeof t)return c&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}(n.runSync(n.parse(r),r),e)}function qw(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return-1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||Ow.test(e.slice(0,t))?e:""}function Hw(e,t){const n=String(e);if("string"!=typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}function zw(e,t,n){const r=Gb((n||{}).ignore||[]),i=function(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const e=n[r];t.push([jw(e[0]),Vw(e[1])])}return t}(t);let o=-1;for(;++o<i.length;)Qb(e,"text",s);function s(e,t){let n,s=-1;for(;++s<t.length;){const e=t[s],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){const n=t[t.length-1],r=i[o][0],s=i[o][1];let a=0;const c=n.children.indexOf(e);let u=!1,l=[];r.lastIndex=0;let f=r.exec(e.value);for(;f;){const n=f.index,i={index:f.index,input:f.input,stack:[...t,e]};let o=s(...f,i);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?r.lastIndex=n+1:(a!==n&&l.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(o)?l.push(...o):o&&l.push(o),a=n+f[0].length,u=!0),!r.global)break;f=r.exec(e.value)}u?(a<e.value.length&&l.push({type:"text",value:e.value.slice(a)}),n.children.splice(c,1,...l)):l=[e];return c+l.length}(e,t)}}function jw(e){return"string"==typeof e?new RegExp(function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(e),"g"):e}function Vw(e){return"function"==typeof e?e:function(){return e}}const Gw="phrasing",Jw=["autolink","link","image","label"];function Ww(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Kw(e){this.config.enter.autolinkProtocol.call(this,e)}function Yw(e){this.config.exit.autolinkProtocol.call(this,e)}function Xw(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Qw(e){this.config.exit.autolinkEmail.call(this,e)}function Zw(e){this.exit(e)}function $w(e){zw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,_w],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ey]],{ignore:["link","linkReference"]})}function _w(e,t,n,r,i){let o="";if(!ty(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Hw(e,"(");let o=Hw(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function ey(e,t,n,r){return!(!ty(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ty(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||tg(n)||eg(n))&&(!t||47!==n)}function ny(){this.buffer()}function ry(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function iy(){this.buffer()}function oy(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function sy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vm(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ay(e){this.exit(e)}function cy(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vm(this.sliceSerialize(e)).toLowerCase(),n.label=t}function uy(e){this.exit(e)}function ly(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),s(),o+=i.move("]"),o}function fy(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){const o=r.createTracker(i);let s=o.move("[^");const a=r.enter("footnoteDefinition"),c=r.enter("label");s+=o.move(r.safe(r.associationId(e),{before:s,after:"]"})),c(),s+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),s+=o.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,o.current()),t?hy:dy)));return a(),s},footnoteReference:ly},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}}function dy(e,t,n){return 0===t?e:hy(e,t,n)}function hy(e,t,n){return(n?"":" ")+e}ly.peek=function(){return"["};const py=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function my(e){this.enter({type:"delete",children:[]},e)}function gy(e){this.exit(e)}function by(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function wy(e){return e.length}function yy(e){return null==e?"":String(e)}function vy(e){const t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}function Ay(e,t,n){return">"+(n?"":" ")+e}function ky(e,t){return xy(e,t.inConstruct,!0)&&!xy(e,t.notInConstruct,!1)}function xy(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Ey(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if("\n"===n.unsafe[i].character&&ky(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}function Cy(e,t,n){return(n?"":" ")+e}function Sy(e){const t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ty(e){return"&#x"+e.toString(16).toUpperCase()+";"}function My(e,t,n){const r=cg(e),i=cg(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Iy(e,t,n,r){const i=function(e){const t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),o=n.enter("emphasis"),s=n.createTracker(r),a=s.move(i);let c=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const u=c.charCodeAt(0),l=My(r.before.charCodeAt(r.before.length-1),u,i);l.inside&&(c=Ty(u)+c.slice(1));const f=c.charCodeAt(c.length-1),d=My(r.after.charCodeAt(0),f,i);d.inside&&(c=c.slice(0,-1)+Ty(f));const h=s.move(i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:l.outside},a+c+h}function By(e){return e.value||""}function Ny(e,t,n,r){const i=Sy(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const c=n.createTracker(r);let u=c.move("![");return u+=c.move(n.safe(e.alt,{before:u,after:"]",...c.current()})),u+=c.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(a=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":")",...c.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=c.move(" "+i),u+=c.move(n.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),a()),u+=c.move(")"),s(),u}function Ry(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("![");const u=n.safe(e.alt,{before:c,after:"]",...a.current()});c+=a.move(u+"]["),s();const l=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:c,after:"]",...a.current()});return s(),n.stack=l,o(),"full"!==i&&u&&u===f?"shortcut"===i?c=c.slice(0,-1):c+=a.move("]"):c+=a.move(f+"]"),c}function Ly(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const e=n.unsafe[o],t=n.compilePattern(e);let i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;10===r.charCodeAt(e)&&13===r.charCodeAt(e-1)&&e--,r=r.slice(0,e)+" "+r.slice(i.index+1)}}return i+r+i}function Dy(e,t){const n=Bm(e);return Boolean(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function Fy(e,t,n,r){const i=Sy(n),o='"'===i?"Quote":"Apostrophe",s=n.createTracker(r);let a,c;if(Dy(e,n)){const t=n.stack;n.stack=[],a=n.enter("autolink");let r=s.move("<");return r+=s.move(n.containerPhrasing(e,{before:r,after:">",...s.current()})),r+=s.move(">"),a(),n.stack=t,r}a=n.enter("link"),c=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(c=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),c()),u+=s.move(")"),a(),u}function Oy(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("[");const u=n.containerPhrasing(e,{before:c,after:"]",...a.current()});c+=a.move(u+"]["),s();const l=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:c,after:"]",...a.current()});return s(),n.stack=l,o(),"full"!==i&&u&&u===f?"shortcut"===i?c=c.slice(0,-1):c+=a.move("]"):c+=a.move(f+"]"),c}function Py(e){const t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Uy(e){const t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}by.peek=function(){return"~"},Iy.peek=function(e,t,n){return n.options.emphasis||"*"},By.peek=function(){return"<"},Ny.peek=function(){return"!"},Ry.peek=function(){return"!"},Ly.peek=function(){return"`"},Fy.peek=function(e,t,n){return Dy(e,n)?"<":"["},Oy.peek=function(){return"["};const qy=Gb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Hy(e,t,n,r){const i=function(e){const t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),o=n.enter("strong"),s=n.createTracker(r),a=s.move(i+i);let c=s.move(n.containerPhrasing(e,{after:i,before:a,...s.current()}));const u=c.charCodeAt(0),l=My(r.before.charCodeAt(r.before.length-1),u,i);l.inside&&(c=Ty(u)+c.slice(1));const f=c.charCodeAt(c.length-1),d=My(r.after.charCodeAt(0),f,i);d.inside&&(c=c.slice(0,-1)+Ty(f));const h=s.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:l.outside},a+c+h}Hy.peek=function(e,t,n){return n.options.strong||"*"};const zy={blockquote:function(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),Ay);return i(),s},break:Ey,code:function(e,t,n,r){const i=function(e){const t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),o=e.value||"",s="`"===i?"GraveAccent":"Tilde";if(function(e,t){return Boolean(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}(e,n)){const e=n.enter("codeIndented"),t=n.indentLines(o,Cy);return e(),t}const a=n.createTracker(r),c=i.repeat(Math.max(function(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,s=0;if("string"!=typeof t)throw new TypeError("Expected substring");for(;-1!==r;)r===i?++o>s&&(s=o):o=1,i=r+t.length,r=n.indexOf(t,i);return s}(o,i)+1,3)),u=n.enter("codeFenced");let l=a.move(c);if(e.lang){const t=n.enter(`codeFencedLang${s}`);l+=a.move(n.safe(e.lang,{before:l,after:" ",encode:["`"],...a.current()})),t()}if(e.lang&&e.meta){const t=n.enter(`codeFencedMeta${s}`);l+=a.move(" "),l+=a.move(n.safe(e.meta,{before:l,after:"\n",encode:["`"],...a.current()})),t()}return l+=a.move("\n"),o&&(l+=a.move(o+"\n")),l+=a.move(c),u(),l},definition:function(e,t,n,r){const i=Sy(n),o='"'===i?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const c=n.createTracker(r);let u=c.move("[");return u+=c.move(n.safe(n.associationId(e),{before:u,after:"]",...c.current()})),u+=c.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=c.move("<"),u+=c.move(n.safe(e.url,{before:u,after:">",...c.current()})),u+=c.move(">")):(a=n.enter("destinationRaw"),u+=c.move(n.safe(e.url,{before:u,after:e.title?" ":"\n",...c.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=c.move(" "+i),u+=c.move(n.safe(e.title,{before:u,after:i,...c.current()})),u+=c.move(i),a()),s(),u},emphasis:Iy,hardBreak:Ey,heading:function(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(function(e,t){let n=!1;return Zb(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,Xb}),Boolean((!e.depth||e.depth<3)&&Bm(e)&&(t.options.setext||n))}(e,n)){const t=n.enter("headingSetext"),r=n.enter("phrasing"),s=n.containerPhrasing(e,{...o.current(),before:"\n",after:"\n"});return r(),t(),s+"\n"+(1===i?"=":"-").repeat(s.length-(Math.max(s.lastIndexOf("\r"),s.lastIndexOf("\n"))+1))}const s="#".repeat(i),a=n.enter("headingAtx"),c=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:"\n",...o.current()});return/^[\t ]/.test(u)&&(u=Ty(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),c(),a(),u},html:By,image:Ny,imageReference:Ry,inlineCode:Ly,link:Fy,linkReference:Oy,list:function(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?function(e){const t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):Py(n);const a=e.ordered?"."===s?")":".":function(e){const t=Py(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n);let c=!(!t||!n.bulletLastUsed)&&s===n.bulletLastUsed;if(!e.ordered){const t=e.children?e.children[0]:void 0;if("*"!==s&&"-"!==s||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(c=!0),Uy(n)===s&&t){let t=-1;for(;++t<e.children.length;){const n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){c=!0;break}}}}c&&(s=a),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,i(),u},listItem:function(e,t,n,r){const i=function(e){const t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n);let o=n.bulletCurrent||Py(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const c=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e});return c(),u},paragraph:function(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),i(),s},root:function(e,t,n,r){return(e.children.some(function(e){return qy(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:Hy,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){const r=(Uy(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}};function jy(e){const t=e.$e;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function Vy(e){this.exit(e),this.data.inTable=void 0}function Gy(e){this.enter({type:"tableRow",children:[]},e)}function Jy(e){this.exit(e)}function Wy(e){this.enter({type:"tableCell",children:[]},e)}function Ky(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Yy));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Yy(e,t){return"|"===t?t:e}function Xy(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=zy.inlineCode(e,t,n);n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&"));return r},table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++i<r.length;)o[i]=c(r[i],t,n);return s(),o}(e,n,r),e.align)},tableCell:s,tableRow:function(e,t,n,r){const i=a([c(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function s(e,t,n,r){const i=n.enter("tableCell"),s=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:o,after:o});return s(),i(),a}function a(e,t){return function(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||wy,o=[],s=[],a=[],c=[];let u=0,l=-1;for(;++l<e.length;){const t=[],r=[];let o=-1;for(e[l].length>u&&(u=e[l].length);++o<e[l].length;){const s=yy(e[l][o]);if(!1!==n.alignDelimiters){const e=i(s);r[o]=e,(void 0===c[o]||e>c[o])&&(c[o]=e)}t.push(s)}s[l]=t,a[l]=r}let f=-1;if("object"==typeof r&&"length"in r)for(;++f<u;)o[f]=vy(r[f]);else{const e=vy(r);for(;++f<u;)o[f]=e}f=-1;const d=[],h=[];for(;++f<u;){const e=o[f];let t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,c[f]-t.length-r.length);const s=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&(i=t.length+i+r.length,i>c[f]&&(c[f]=i),h[f]=i),d[f]=s}s.splice(1,0,d),a.splice(1,0,h),l=-1;const p=[];for(;++l<s.length;){const e=s[l],t=a[l];f=-1;const r=[];for(;++f<u;){const i=e[f]||"";let s="",a="";if(!1!==n.alignDelimiters){const e=c[f]-(t[f]||0),n=o[f];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):(s=" ".repeat(e/2),a=s):a=" ".repeat(e)}!1===n.delimiterStart||f||r.push("|"),!1===n.padding||!1===n.alignDelimiters&&""===i||!1===n.delimiterStart&&!f||r.push(" "),!1!==n.alignDelimiters&&r.push(s),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),!1===n.delimiterEnd&&f===u-1||r.push("|")}p.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return p.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function c(e,t,n){const r=e.children;let i=-1;const o=[],a=t.enter("tableRow");for(;++i<r.length;)o[i]=s(r[i],0,t,n);return a(),o}}function Qy(e){const t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function Zy(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){const e=this.stack[this.stack.length-1];e.type;const n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o<r.length;){const e=r[o];if("paragraph"===e.type){i=e;break}}i===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function $y(e,t,n,r){const i=e.children[0],o="boolean"==typeof e.checked&&i&&"paragraph"===i.type,s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(s);let c=zy.listItem(e,t,n,{...r,...a.current()});return o&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),c}const _y={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),i;return n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},ev={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(nv,c,a)(t):null===t||$m(t)||tg(t)||45!==t&&eg(t)?c(t):(o=!0,e.consume(t),s)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function c(e){return i||r||!o?n(e):t(e)}},partial:!0},tv={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(nv,t,o)(s):null===s||$m(s)||tg(s)?t(s):(e.consume(s),i)}function o(t){return 41===t&&r++,e.consume(t),i}},partial:!0},nv={tokenize:function(e,t,n){return r;function r(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),r):38===s?(e.consume(s),o):93===s?(e.consume(s),i):60===s||null===s||$m(s)||tg(s)?t(s):n(s)}function i(e){return null===e||40===e||91===e||$m(e)||tg(e)?t(e):r(e)}function o(e){return Gm(e)?s(e):n(e)}function s(t){return 59===t?(e.consume(t),r):Gm(t)?(e.consume(t),s):n(t)}},partial:!0},rv={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return Jm(e)?n(e):t(e)}},partial:!0},iv={name:"wwwAutolink",tokenize:function(e,t,n){const r=this;return function(t){if(87!==t&&119!==t||!uv.call(r,r.previous)||hv(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(_y,e.attempt(ev,e.attempt(tv,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:uv},ov={name:"protocolAutolink",tokenize:function(e,t,n){const r=this;let i="",o=!1;return function(t){if((72===t||104===t)&&lv.call(r,r.previous)&&!hv(r.events))return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),s;return n(t)};function s(t){if(Gm(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(58===t){const n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),o?c:(o=!0,a)):n(t)}function c(t){return null===t||Km(t)||$m(t)||tg(t)||eg(t)?n(t):e.attempt(ev,e.attempt(tv,u),n)(t)}function u(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:lv},sv={name:"emailAutolink",tokenize:function(e,t,n){const r=this;let i,o;return function(t){if(!dv(t)||!fv.call(r,r.previous)||hv(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(t)};function s(t){return dv(t)?(e.consume(t),s):64===t?(e.consume(t),a):n(t)}function a(t){return 46===t?e.check(rv,u,c)(t):45===t||95===t||Jm(t)?(o=!0,e.consume(t),a):u(t)}function c(t){return e.consume(t),i=!0,a}function u(s){return o&&i&&Gm(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:fv},av={};let cv=48;for(;cv<123;)av[cv]=sv,cv++,58===cv?cv=65:91===cv&&(cv=97);function uv(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||$m(e)}function lv(e){return!Gm(e)}function fv(e){return!(47===e||dv(e))}function dv(e){return 43===e||45===e||46===e||95===e||Jm(e)}function hv(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r.Xe){n=!0;break}if(r._e){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._e=!0),n}av[43]=sv,av[45]=sv,av[46]=sv,av[95]=sv,av[72]=[sv,ov],av[104]=[sv,ov],av[87]=[sv,iv],av[119]=[sv,iv];const pv={tokenize:function(e,t,n){const r=this;return ig(e,function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function mv(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s.Xe)return n(i);const a=Vm(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function gv(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end.je++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function bv(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(a){if(s>999||93===a&&!o||null===a||91===a||$m(a))return n(a);if(93===a){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(Vm(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return $m(a)||(o=!0),s++,e.consume(a),92===a?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function wv(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s,a=0;return function(t){return e.enter("gfmFootnoteDefinition").Ve=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),c};function c(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(t)}function u(t){if(a>999||93===t&&!s||null===t||91===t||$m(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=Vm(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return $m(t)||(s=!0),a++,e.consume(t),92===t?l:u}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),ig(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function yv(e,t,n){return e.check(hg,t,e.attempt(pv,t,n))}function vv(e){e.exit("gfmFootnoteDefinition")}function Av(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const c=cg(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const u=e.exit("strikethroughSequenceTemporary"),l=cg(o);return u.ze=!l||2===l&&Boolean(c),u.He=!c||2===c&&Boolean(l),n(o)}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1].He){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1].ze&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";const i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",o,t]],a=t.parser.constructs.insideSpan.null;a&&Om(s,s.length,0,ug(a,e.slice(r+1,n),t)),Om(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),Om(e,r-1,n-r+3,s),n=r+s.length-2;break}}n=-1;for(;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}class kv{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,r){let i=0;if(0===n&&0===r.length)return;for(;i<e.map.length;){if(e.map[i][0]===t)return e.map[i][1]+=n,void e.map[i][2].push(...r);i+=1}e.map.push([t,n,r])}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(const t of r)e.push(t);r=n.pop()}this.map.length=0}}function xv(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){const e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}function Ev(e,t,n){const r=this;let i,o=0,s=0;return function(e){let t=r.events.length-1;for(;t>-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?v:a;if(o===v&&r.parser.lazy[r.now().line])return n(e);return o(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return c(e);return i=!0,s+=1,c(e)}(t)}function c(t){return null===t?n(t):Zm(t)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):_m(t)?ig(e,c,"whitespace")(t):(s+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,c):(e.enter("data"),u(t)))}function u(t){return null===t||124===t||$m(t)?(e.exit("data"),c(t)):(e.consume(t),92===t?l:u)}function l(t){return 92===t||124===t?(e.consume(t),u):u(t)}function f(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,_m(t)?ig(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?p(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):y(t)}function h(t){return _m(t)?ig(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||Zm(t)?w(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),b):(e.exit("tableDelimiterFiller"),b(t))}function b(t){return _m(t)?ig(e,w,"whitespace")(t):w(t)}function w(n){return 124===n?d(n):(null===n||Zm(n))&&i&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function v(t){return e.enter("tableRow"),A(t)}function A(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),A):null===n||Zm(n)?(e.exit("tableRow"),t(n)):_m(n)?ig(e,A,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||$m(t)?(e.exit("data"),A(t)):(e.consume(t),92===t?x:k)}function x(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function Cv(e,t){let n,r,i,o=-1,s=!0,a=0,c=[0,0,0,0],u=[0,0,0,0],l=!1,f=0;const d=new kv;for(;++o<e.length;){const h=e[o],p=h[1];"enter"===h[0]?"tableHead"===p.type?(l=!1,0!==f&&(Tv(d,t,f,n,r),r=void 0,f=0),n={type:"table",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(o,0,[["enter",n,t]])):"tableRow"===p.type||"tableDelimiterRow"===p.type?(s=!0,i=void 0,c=[0,0,0,0],u=[0,o+1,0,0],l&&(l=!1,r={type:"tableBody",start:Object.assign({},p.start),end:Object.assign({},p.end)},d.add(o,0,[["enter",r,t]])),a="tableDelimiterRow"===p.type?2:r?3:1):!a||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type?"tableCellDivider"===p.type&&(s?s=!1:(0!==c[1]&&(u[0]=u[1],i=Sv(d,t,c,a,void 0,i)),c=u,u=[c[1],o,0,0])):(s=!1,0===u[2]&&(0!==c[1]&&(u[0]=u[1],i=Sv(d,t,c,a,void 0,i),c=[0,0,0,0]),u[2]=o)):"tableHead"===p.type?(l=!0,f=o):"tableRow"===p.type||"tableDelimiterRow"===p.type?(f=o,0!==c[1]?(u[0]=u[1],i=Sv(d,t,c,a,o,i)):0!==u[1]&&(i=Sv(d,t,u,a,o,i)),a=0):!a||"data"!==p.type&&"tableDelimiterMarker"!==p.type&&"tableDelimiterFiller"!==p.type||(u[3]=o)}for(0!==f&&Tv(d,t,f,n,r),d.consume(t.events),o=-1;++o<t.events.length;){const e=t.events[o];"enter"===e[0]&&"table"===e[1].type&&(e[1].$e=xv(t.events,o))}return e}function Sv(e,t,n,r,i,o){const s=1===r?"tableHeader":2===r?"tableDelimiter":"tableData";0!==n[0]&&(o.end=Object.assign({},Mv(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Mv(t.events,n[1]);if(o={type:s,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){const i=Mv(t.events,n[2]),o=Mv(t.events,n[3]),s={type:"tableContent",start:Object.assign({},i),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",s,t]]),2!==r){const r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},Mv(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function Tv(e,t,n,r,i){const o=[],s=Mv(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Mv(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Iv={name:"tasklistCheck",tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r.We)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return $m(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return Zm(r)?t(r):_m(r)?e.check({tokenize:Bv},t,n)(r):n(r)}}};function Bv(e,t,n){return ig(e,function(e){return null===e?n(e):t(e)},"whitespace")}const Nv={};function Rv(e){const t=e||Nv,n=this.data(),r=n.micromarkExtensions||(n.micromarkExtensions=[]),i=n.fromMarkdownExtensions||(n.fromMarkdownExtensions=[]),o=n.toMarkdownExtensions||(n.toMarkdownExtensions=[]);r.push(function(e){return qm([{text:av},{document:{91:{name:"gfmFootnoteDefinition",tokenize:wv,continuation:{tokenize:yv},exit:vv}},text:{91:{name:"gfmFootnoteCall",tokenize:bv},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:mv,resolveTo:gv}}},Av(e),{flow:{null:{name:"table",tokenize:Ev,resolveAll:Cv}}},{text:{91:Iv}}])}(t)),i.push([{transforms:[$w],enter:{literalAutolink:Ww,literalAutolinkEmail:Kw,literalAutolinkHttp:Kw,literalAutolinkWww:Kw},exit:{literalAutolink:Zw,literalAutolinkEmail:Qw,literalAutolinkHttp:Yw,literalAutolinkWww:Xw}},{enter:{gfmFootnoteCallString:ny,gfmFootnoteCall:ry,gfmFootnoteDefinitionLabelString:iy,gfmFootnoteDefinition:oy},exit:{gfmFootnoteCallString:sy,gfmFootnoteCall:ay,gfmFootnoteDefinitionLabelString:cy,gfmFootnoteDefinition:uy}},{canContainEols:["delete"],enter:{strikethrough:my},exit:{strikethrough:gy}},{enter:{table:jy,tableData:Wy,tableHeader:Wy,tableRow:Gy},exit:{codeText:Ky,table:Vy,tableData:Jy,tableHeader:Jy,tableRow:Jy}},{exit:{taskListCheckValueChecked:Qy,taskListCheckValueUnchecked:Qy,paragraph:Zy}}]),o.push(function(e){return{extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Gw,notInConstruct:Jw},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Gw,notInConstruct:Jw},{character:":",before:"[ps]",after:"\\/",inConstruct:Gw,notInConstruct:Jw}]},fy(e),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:py}],handlers:{delete:by}},Xy(e),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:$y}}]}}(t))}const Lv={a:({children:e,href:n})=>t.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"mc-link",children:e}),img:({src:e,alt:n})=>t.jsx("img",{src:"string"==typeof e?e:void 0,alt:n??"",className:"mc-image",onError:e=>{e.target.src="data:image/svg+xml,%3csvg%20width='180'%20height='180'%20viewBox='0%200%20180%20180'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20opacity='0.1'%3e%3cpath%20d='M102.392%20118.157L102.417%20109.35L89.7594%20102.042C89.5768%20101.937%2089.3953%20101.826%2089.2149%20101.71L89.1861%20101.692C89.012%20101.581%2088.839%20101.47%2088.666%20101.346C88.6061%20101.305%2088.5473%20101.262%2088.4874%20101.22C88.3765%20101.139%2088.259%20101.057%2088.1459%20100.972C88.0749%20100.919%2088.0051%20100.861%2087.9352%20100.811C87.8321%20100.733%2087.73%20100.653%2087.6291%20100.571C87.5552%20100.51%2087.4813%20100.449%2087.4073%20100.387C87.3098%20100.306%2087.2125%20100.224%2087.1157%20100.141C87.0418%20100.075%2086.9678%20100.009%2086.8939%2099.9421C86.7985%2099.8578%2086.7039%2099.772%2086.61%2099.6848C86.5346%2099.6149%2086.4592%2099.5462%2086.3882%2099.4752C86.2929%2099.3843%2086.1986%2099.2922%2086.1044%2099.2002C86.0356%2099.1325%2085.9657%2099.0649%2085.897%2098.9961C85.7983%2098.8963%2085.7007%2098.7954%2085.6031%2098.6934C85.541%2098.628%2085.4778%2098.5637%2085.4168%2098.4982C85.3059%2098.3763%2085.195%2098.2521%2085.0786%2098.1267L84.9533%2097.9881C84.7995%2097.8137%2084.648%2097.6366%2084.4986%2097.457C84.4643%2097.4159%2084.4321%2097.3738%2084.3977%2097.3328C84.2868%2097.1919%2084.1671%2097.05%2084.054%2096.9069C83.9172%2096.7325%2083.7826%2096.5558%2083.6503%2096.3769L83.5827%2096.2881C83.3675%2095.9965%2083.1591%2095.6971%2082.955%2095.3943L82.8441%2095.228C82.5876%2094.8421%2082.341%2094.4495%2082.1045%2094.0503L82.0135%2093.8984C81.8487%2093.616%2081.6886%2093.3306%2081.5334%2093.0423C81.4768%2092.937%2081.4225%2092.8316%2081.3681%2092.7263C81.3138%2092.6209%2081.2572%2092.5045%2081.1952%2092.3936C81.1164%2092.2361%2081.0399%2092.0787%2080.9634%2091.9201C80.939%2091.8691%2080.9135%2091.8181%2080.8891%2091.7671C80.793%2091.5623%2080.6995%2091.3564%2080.6085%2091.1494C80.5852%2091.095%2080.562%2091.0385%2080.5398%2090.9875C80.4732%2090.8337%2080.4082%2090.6792%2080.3446%2090.524L80.2592%2090.3121C80.2008%2090.1643%2080.1435%2090.0164%2080.0873%2089.8686C80.0629%2089.8043%2080.0385%2089.7388%2080.0141%2089.6745C79.9454%2089.486%2079.8789%2089.2971%2079.8145%2089.1079L79.789%2089.0347C79.7151%2088.8218%2079.6471%2088.6088%2079.585%2088.3959C79.5639%2088.3283%2079.5451%2088.2606%2079.5262%2088.193C79.483%2088.0444%2079.4397%2087.8958%2079.3998%2087.7494C79.3776%2087.6685%2079.3566%2087.5875%2079.3355%2087.5066C79.3%2087.3691%2079.2656%2087.2319%2079.2324%2087.0952C79.2131%2087.0138%2079.1943%2086.9325%2079.1758%2086.8512C79.1436%2086.7104%2079.1137%2086.5695%2079.0849%2086.4298C79.0693%2086.3555%2079.0538%2086.2801%2079.0394%2086.208C79.0047%2086.0276%2078.9725%2085.848%2078.9429%2085.6691C78.9429%2085.638%2078.9318%2085.607%2078.9274%2085.5759C78.8941%2085.366%2078.8646%2085.1564%2078.8387%2084.9472C78.832%2084.8906%2078.8265%2084.8363%2078.8198%2084.7775C78.8028%2084.6259%2078.7873%2084.4748%2078.7733%2084.3239C78.7666%2084.253%2078.7622%2084.182%2078.7566%2084.1121C78.7455%2083.9702%2078.7378%2083.8294%2078.7311%2083.6885C78.7311%2083.622%2078.7245%2083.5544%2078.7222%2083.4878C78.7156%2083.2882%2078.71%2083.0897%2078.7112%2082.8934L78.7466%2069.3645L77.6377%2068.7258L71.9567%2065.45C70.7912%2064.7503%2069.5073%2064.2703%2068.1686%2064.0339V64.0417C68.1597%2064.1105%2068.1542%2064.1825%2068.1464%2064.2513C68.1387%2064.32%2068.1298%2064.4021%2068.1231%2064.4797C68.1231%2064.5119%2068.1165%2064.5418%2068.1132%2064.574C68.1043%2064.676%2068.0999%2064.7802%2068.0943%2064.8845C68.0943%2064.941%2068.0865%2064.9954%2068.0843%2065.0541V65.0952C68.0769%2065.2704%2068.0729%2065.4482%2068.0721%2065.6286V65.6607L68.0078%2089.1023C68.0078%2089.2679%2068.01%2089.4339%2068.0145%2089.6002C68.0145%2089.6324%2068.0145%2089.6634%2068.0145%2089.6956C68.0145%2089.7632%2068.0211%2089.832%2068.0244%2089.8996C68.0278%2089.9673%2068.03%2090.056%2068.0355%2090.1347C68.0355%2090.1957%2068.0455%2090.2578%2068.05%2090.3199C68.0544%2090.382%2068.061%2090.463%2068.0677%2090.535C68.0677%2090.5805%2068.0743%2090.6271%2068.0788%2090.6725C68.0888%2090.7757%2068.1021%2090.8799%2068.1132%2090.9842C68.1198%2091.0418%2068.1254%2091.095%2068.132%2091.1583L68.1387%2091.2137C68.1623%2091.3985%2068.1886%2091.5833%2068.2174%2091.7682V91.7837C68.2174%2091.8147%2068.2285%2091.8469%2068.234%2091.8779C68.2584%2092.0277%2068.2839%2092.1774%2068.3117%2092.3282C68.3172%2092.357%2068.3239%2092.3858%2068.3294%2092.4147C68.3438%2092.4901%2068.3604%2092.5655%2068.376%2092.6365C68.3915%2092.7074%2068.4104%2092.8128%2068.4292%2092.9004C68.4403%2092.9525%2068.4536%2093.0046%2068.4658%2093.0556C68.4843%2093.1362%2068.5031%2093.2172%2068.5224%2093.2985C68.5368%2093.3595%2068.5501%2093.4205%2068.5645%2093.4803C68.5789%2093.5402%2068.6055%2093.6345%2068.6255%2093.711C68.6454%2093.7875%2068.6676%2093.8729%2068.6887%2093.9527C68.6998%2093.9916%2068.7087%2094.0304%2068.7186%2094.0636C68.7486%2094.1745%2068.7818%2094.2854%2068.8151%2094.3963C68.8351%2094.464%2068.8539%2094.5316%2068.8739%2094.5993L68.8894%2094.6547C68.9478%2094.8462%2069.0092%2095.0376%2069.0735%2095.2291V95.2391L69.099%2095.3123C69.1533%2095.4731%2069.2099%2095.6339%2069.2676%2095.7947C69.2775%2095.8224%2069.2886%2095.8501%2069.2986%2095.8778C69.3219%2095.9422%2069.3463%2096.0054%2069.3707%2096.0697C69.4039%2096.1595%2069.4372%2096.2482%2069.4716%2096.338C69.4949%2096.3979%2069.5193%2096.4567%2069.5437%2096.5166L69.628%2096.7262C69.649%2096.7761%2069.6679%2096.8271%2069.6889%2096.877C69.7322%2096.9812%2069.7777%2097.0855%2069.8231%2097.1897C69.8464%2097.244%2069.8686%2097.3006%2069.893%2097.3516L69.9174%2097.4082C69.9972%2097.5878%2070.0789%2097.7671%2070.1625%2097.946L70.1735%2097.9704C70.1979%2098.0214%2070.2234%2098.0724%2070.2478%2098.1234C70.3133%2098.2598%2070.3776%2098.3973%2070.4452%2098.5326L70.4785%2098.5969C70.5351%2098.7078%2070.5894%2098.8187%2070.6515%2098.9296C70.6981%2099.0194%2070.7424%2099.1093%2070.7901%2099.198L70.8167%2099.2456C70.9712%2099.534%2071.1313%2099.8193%2071.2969%20100.102C71.3113%20100.126%2071.3235%20100.151%2071.3379%20100.175C71.3523%20100.199%2071.3723%20100.227%2071.3878%20100.254C71.6244%20100.653%2071.8709%20101.045%2072.1275%20101.431C72.1419%20101.452%2072.1541%20101.475%2072.1685%20101.497C72.1829%20101.519%2072.2173%20101.564%2072.2406%20101.6C72.4446%20101.902%2072.652%20102.201%2072.8682%20102.493L72.9314%20102.575C73.0645%20102.754%2073.1994%20102.931%2073.3362%20103.107L73.3595%20103.137C73.4704%20103.272%2073.5746%20103.405%2073.6833%20103.537L73.7798%20103.656L73.7875%20103.665C73.9287%20103.835%2074.0718%20104.002%2074.2167%20104.167L74.2344%20104.187L74.3597%20104.326C74.4551%20104.437%2074.5516%20104.541%2074.6481%20104.646L74.698%20104.698C74.7601%20104.764%2074.8222%20104.828%2074.8843%20104.893C74.9464%20104.959%2075.0284%20105.046%2075.106%20105.122L75.1814%20105.197C75.2502%20105.266%2075.319%20105.334%2075.3888%20105.401C75.4587%20105.469%2075.5108%20105.524%2075.5729%20105.583L75.6727%20105.676C75.747%20105.747%2075.8224%20105.817%2075.8945%20105.886C75.9488%20105.936%2076.0054%20105.987%2076.0564%20106.036L76.1784%20106.146L76.4002%20106.345C76.4478%20106.386%2076.4944%20106.429%2076.5432%20106.469C76.592%20106.509%2076.643%20106.55%2076.6918%20106.59L76.9136%20106.774C76.9535%20106.806%2076.9923%20106.84%2077.0322%20106.872C77.0943%20106.921%2077.1576%20106.967%2077.2197%20107.015C77.2818%20107.062%2077.3594%20107.126%2077.4292%20107.174L77.5168%20107.241C77.6011%20107.303%2077.6876%20107.362%2077.7719%20107.423C77.8307%20107.465%2077.8894%20107.508%2077.9493%20107.549L77.997%20107.584C78.1523%20107.69%2078.3086%20107.794%2078.4661%20107.894L78.4905%20107.91C78.6357%20108.002%2078.7821%20108.092%2078.9341%20108.178L79.0449%20108.241L98.4999%20119.478C98.6175%20119.546%2098.7346%20119.611%2098.8515%20119.674L98.9867%20119.744L99.1653%20119.836C99.2119%20119.859%2099.2584%20119.885%2099.3039%20119.908C99.3793%20119.946%2099.4547%20119.979%2099.5257%20120.019L99.6832%20120.093L99.7464%20120.123C99.8942%20120.19%20100.042%20120.252%20100.19%20120.311L100.208%20120.317C100.35%20120.374%20100.492%20120.428%20100.633%20120.477L100.693%20120.497L100.856%20120.55C100.93%20120.575%20101.004%20120.6%20101.078%20120.622L101.189%20120.655L101.385%20120.709C101.434%20120.722%20101.484%20120.738%20101.532%20120.75C101.579%20120.762%20101.643%20120.773%20101.693%20120.785L101.888%20120.829L101.986%20120.851L102.085%20120.867C102.158%20120.553%20102.219%20120.227%20102.266%20119.886C102.346%20119.313%20102.388%20118.736%20102.392%20118.157Z'%20fill='url(%23paint0_linear_302_6100)'/%3e%3cpath%20d='M91.4307%2064.3019L78.0005%2056.5472L75.8214%2055.2885L71.9957%2053.0796C59.9427%2046.1222%2050.1032%2051.73%2050.0633%2065.5794L50.0001%2087.9076C49.9613%20101.769%2059.7365%20118.694%2071.7894%20125.652L91.2244%20136.872C103.276%20143.831%20113.117%20138.227%20113.156%20124.373L113.183%20114.546V113.668L113.217%20102.041C113.259%2088.1926%20103.482%2071.2604%2091.4307%2064.3019ZM102.419%20108.881V109.349L102.395%20118.156C102.394%20118.733%20102.355%20119.309%20102.278%20119.881C102.232%20120.222%20102.167%20120.547%20102.097%20120.863C100.943%20125.853%2096.5184%20127.534%2091.2621%20124.5L71.8249%20113.283C65.708%20109.753%2060.7478%20101.16%2060.7678%2094.1275L60.831%2071.7949C60.8454%2066.777%2063.3948%2063.8927%2067.0787%2063.9382C67.4454%2063.9447%2067.8112%2063.9777%2068.1732%2064.0369C69.5103%2064.2737%2070.7927%2064.7537%2071.9568%2065.453L77.6312%2068.7232L78.7401%2069.3619L91.3974%2076.6697C97.512%2080.205%20102.476%2088.7947%20102.452%2095.8275L102.419%20108.881Z'%20fill='url(%23paint1_linear_302_6100)'/%3e%3cpath%20d='M129.993%2090.9695C129.993%2090.9063%20129.987%2090.842%20129.985%2090.7788C129.985%2090.648%20129.972%2090.516%20129.966%2090.3851C129.958%2090.2288%20129.953%2090.0746%20129.944%2089.9172C129.936%2089.7952%20129.924%2089.671%20129.914%2089.5479C129.904%2089.4248%20129.892%2089.2707%20129.88%2089.1309C129.873%2089.04%20129.867%2088.9491%20129.858%2088.8582C129.838%2088.6519%20129.813%2088.4445%20129.789%2088.2383C129.776%2088.1274%20129.766%2088.0165%20129.752%2087.9056C129.752%2087.869%20129.744%2087.8324%20129.739%2087.7947C129.694%2087.431%20129.642%2087.0658%20129.583%2086.6991L129.578%2086.6669C129.568%2086.6037%20129.555%2086.5405%20129.544%2086.4773C129.497%2086.1845%20129.448%2085.8918%20129.392%2085.5979C129.381%2085.5391%20129.368%2085.4815%20129.357%2085.4227C129.328%2085.2752%20129.297%2085.1277%20129.267%2084.9791C129.232%2084.805%20129.199%2084.632%20129.156%2084.459C129.134%2084.3559%20129.107%2084.2528%20129.084%2084.1497C129.048%2083.99%20129.011%2083.8303%20128.973%2083.6706C128.944%2083.5519%20128.92%2083.4333%20128.89%2083.3146C128.852%2083.1627%20128.809%2083.0097%20128.77%2082.8566C128.731%2082.7036%20128.688%2082.5395%20128.645%2082.3809C128.625%2082.3055%20128.606%2082.2301%20128.585%2082.1591C128.524%2081.9373%20128.458%2081.7222%20128.393%2081.5038C128.354%2081.3729%20128.318%2081.2409%20128.282%2081.1101C128.271%2081.0746%20128.262%2081.0391%20128.251%2080.9992C128.135%2080.6214%20128.014%2080.244%20127.889%2079.867L127.881%2079.8448C127.863%2079.7927%20127.844%2079.7417%20127.827%2079.6896C127.716%2079.3768%20127.613%2079.063%20127.494%2078.7503C127.474%2078.6948%20127.452%2078.6394%20127.432%2078.584C127.385%2078.4564%20127.336%2078.3289%20127.288%2078.2014C127.222%2078.0273%20127.159%2077.8532%20127.091%2077.6791C127.046%2077.5615%20126.997%2077.4451%20126.949%2077.3275C126.894%2077.1886%20126.838%2077.0499%20126.782%2076.9117C126.742%2076.813%20126.704%2076.7143%20126.663%2076.6167C126.577%2076.4094%20126.487%2076.2042%20126.398%2075.9979C126.353%2075.8871%20126.308%2075.7861%20126.262%2075.6797L126.215%2075.5688C126.059%2075.2147%20125.898%2074.8617%20125.733%2074.5098L125.711%2074.4632C125.661%2074.3523%20125.608%2074.2525%20125.558%2074.146C125.431%2073.881%20125.305%2073.616%20125.174%2073.3532C125.153%2073.311%20125.13%2073.2689%20125.109%2073.2256C124.998%2073.0038%20124.887%2072.7821%20124.768%2072.5669C124.677%2072.3906%20124.589%2072.2143%20124.495%2072.0391C124.478%2072.0069%20124.459%2071.9759%20124.441%2071.9426C124.136%2071.3756%20123.821%2070.8137%20123.495%2070.257C123.467%2070.2094%20123.443%2070.1617%20123.415%2070.114C123.333%2069.9743%20123.247%2069.8379%20123.164%2069.6992C123.024%2069.4675%20122.885%2069.2357%20122.742%2069.0062C122.618%2068.8066%20122.492%2068.6092%20122.365%2068.4118C122.22%2068.19%20122.076%2067.9604%20121.927%2067.7364C121.877%2067.6599%20121.829%2067.5823%20121.778%2067.5069C121.727%2067.4315%20121.682%2067.3727%20121.635%2067.304C121.233%2066.7085%20120.824%2066.1196%20120.4%2065.5441L120.395%2065.5352C120.354%2065.4787%20120.309%2065.4243%20120.268%2065.3689C120.006%2065.017%20119.741%2064.6688%20119.472%2064.3243L119.425%2064.2633C119.215%2063.996%20119%2063.7343%20118.786%2063.4715C118.722%2063.395%20118.661%2063.3163%20118.598%2063.2398L118.584%2063.222C118.306%2062.8879%20118.024%2062.5581%20117.739%2062.2328L117.702%2062.1929C117.621%2062.0998%20117.537%2062.0111%20117.455%2061.919C117.266%2061.7083%20117.078%2061.4954%20116.886%2061.2892L116.788%2061.1871C116.666%2061.0563%20116.542%2060.9288%20116.418%2060.799C116.276%2060.6504%20116.135%2060.4985%20115.991%2060.3554C115.942%2060.3055%20115.891%2060.2579%20115.841%2060.208C115.706%2060.0716%20115.57%2059.9385%20115.433%2059.8043C115.297%2059.6701%20115.193%2059.5626%20115.071%2059.445C115.005%2059.3829%20114.939%2059.323%20114.873%2059.2609C114.726%2059.1212%20114.577%2058.9837%20114.43%2058.8473C114.319%2058.7497%20114.219%2058.6488%20114.112%2058.5523C114.034%2058.4814%20113.953%2058.4137%20113.873%2058.3427C113.725%2058.2104%20113.575%2058.0796%20113.424%2057.9502C113.33%2057.8692%20113.238%2057.7849%20113.142%2057.7051C113.047%2057.6253%20112.946%2057.5465%20112.848%2057.4656C112.7%2057.3443%20112.553%2057.2242%20112.405%2057.1052C112.326%2057.042%20112.248%2056.9754%20112.169%2056.9122C112.045%2056.8157%20111.921%2056.7248%20111.798%2056.6294C111.675%2056.5341%20111.523%2056.4176%20111.386%2056.3145C111.328%2056.2713%20111.275%2056.2258%20111.213%2056.1826C111.045%2056.0595%20110.88%2055.943%20110.707%2055.8233C110.596%2055.7412%20110.476%2055.6569%20110.36%2055.5771L110.265%2055.5094C109.958%2055.2995%20109.651%2055.0958%20109.341%2054.8984H109.334L109.288%2054.8696C109%2054.6877%20108.711%2054.5092%20108.42%2054.3384L108.206%2054.2142L88.7824%2042.9941C88.551%2042.8603%2088.3204%2042.7313%2088.0904%2042.6071C88.0017%2042.5594%2087.9141%2042.5162%2087.8254%2042.4696L87.4717%2042.2866C87.3807%2042.24%2087.2887%2042.1901%2087.1989%2042.1447C87.0492%2042.0704%2086.9017%2042.0049%2086.7553%2041.9351C86.6511%2041.8863%2086.5479%2041.8353%2086.4448%2041.7887L86.3195%2041.7299C86.0238%2041.5991%2085.7332%2041.476%2085.4479%2041.3607L85.4035%2041.344C85.1252%2041.2331%2084.8491%2041.1289%2084.5729%2041.0313L84.4465%2040.9847C84.3356%2040.9481%2084.2336%2040.9149%2084.1271%2040.8805C83.9819%2040.8328%2083.8366%2040.7818%2083.6924%2040.7385C83.6159%2040.7153%2083.5405%2040.6975%2083.464%2040.6753C83.3354%2040.6376%2083.2078%2040.6033%2083.0792%2040.5644C82.9827%2040.5389%2082.8851%2040.5079%2082.7898%2040.4846C82.6944%2040.4613%2082.5802%2040.4436%2082.4737%2040.4192C82.3462%2040.3903%2082.2176%2040.3604%2082.0912%2040.3327C82.0268%2040.3194%2081.9603%2040.3016%2081.896%2040.2894C81.7729%2040.265%2081.6531%2040.2506%2081.53%2040.2295C81.3826%2040.204%2081.234%2040.1774%2081.0865%2040.1564C81.0388%2040.1508%2080.9878%2040.1397%2080.939%2040.1331C80.8148%2040.1109%2080.6928%2040.1109%2080.5697%2040.0954C80.4122%2040.0776%2080.2548%2040.0599%2080.0995%2040.0477C80.0563%2040.0477%2080.0108%2040.0377%2079.9676%2040.0344C79.8567%2040.0266%2079.7558%2040.0288%2079.6482%2040.0233C79.4608%2040.0144%2079.2756%2040.0067%2079.0893%2040C79.0394%2040%2078.9884%2040%2078.9385%2040C78.8575%2040%2078.7799%2040.01%2078.699%2040.0111C78.4661%2040.0111%2078.2354%2040.0266%2078.0081%2040.0432C77.9405%2040.0432%2077.8706%2040.0432%2077.8041%2040.0532C77.7054%2040.0621%2077.61%2040.0765%2077.5124%2040.0876L77.3017%2040.1109C77.0455%2040.1453%2076.7916%2040.1841%2076.5421%2040.2351L76.5144%2040.244C76.4401%2040.2595%2076.368%2040.2794%2076.2926%2040.2961C76.0897%2040.3415%2075.8878%2040.3892%2075.6904%2040.4447C75.5895%2040.4735%2075.4919%2040.5068%2075.3921%2040.5389C75.2646%2040.5789%2075.1349%2040.6143%2075.0085%2040.6598C74.9752%2040.6709%2074.9441%2040.6875%2074.912%2040.6986C74.7146%2040.7707%2074.5239%2040.8517%2074.332%2040.9348C74.2389%2040.9747%2074.1435%2041.0113%2074.0526%2041.0535C73.7731%2041.1843%2073.4981%2041.3252%2073.2331%2041.4793L62.5375%2047.6893C62.8036%2047.5351%2063.0775%2047.3943%2063.3559%2047.2635C63.4479%2047.2202%2063.5433%2047.1847%2063.6364%2047.1437C63.8272%2047.0605%2064.019%2046.9796%2064.2153%2046.9075C64.3727%2046.8498%2064.5335%2046.7966%2064.6954%2046.7478C64.7952%2046.7168%2064.8928%2046.6824%2064.9937%2046.6536C65.1911%2046.5981%2065.3941%2046.5504%2065.5959%2046.505C65.6691%2046.4883%2065.7412%2046.4684%2065.8177%2046.4528C66.0761%2046.4007%2066.3389%2046.3586%2066.605%2046.3231C66.6749%2046.3142%2066.7458%2046.3065%2066.8157%2046.2987C66.9798%2046.2798%2067.1484%2046.2665%2067.3114%2046.2543C67.5387%2046.2366%2067.7694%2046.2266%2068.0023%2046.2211C68.132%2046.2211%2068.2606%2046.2133%2068.3915%2046.2144C68.5756%2046.2144%2068.763%2046.2244%2068.946%2046.2333C69.0957%2046.2399%2069.2454%2046.2455%2069.3973%2046.2577C69.5492%2046.2699%2069.71%2046.2887%2069.8675%2046.3054C70.0249%2046.322%2070.2112%2046.3431%2070.3865%2046.3675C70.5328%2046.3885%2070.6803%2046.4151%2070.83%2046.4406C71.0163%2046.4728%2071.2026%2046.505%2071.3911%2046.5449C71.5176%2046.5715%2071.6462%2046.6003%2071.7737%2046.6303C71.9748%2046.6768%2072.177%2046.7271%2072.3803%2046.7811C72.5078%2046.8155%2072.6365%2046.8498%2072.764%2046.892C72.9858%2046.9552%2073.2076%2047.025%2073.4293%2047.0971C73.5402%2047.1315%2073.6411%2047.1648%2073.7476%2047.2014C74.0625%2047.3123%2074.3786%2047.4231%2074.698%2047.5529L74.7423%2047.5695C75.075%2047.7026%2075.4077%2047.8479%2075.7403%2047.9998C75.8435%2048.0464%2075.9466%2048.0974%2076.0508%2048.1462C76.2896%2048.2585%2076.5295%2048.3757%2076.7705%2048.4977C76.8881%2048.5576%2077.006%2048.6186%2077.1243%2048.6807C77.4414%2048.8481%2077.7597%2049.0189%2078.0802%2049.2041L97.5219%2060.4253C97.8834%2060.6338%2098.2427%2060.8515%2098.5997%2061.0785L98.6507%2061.1095C98.9945%2061.3313%2099.3361%2061.5531%2099.6754%2061.7915C99.7918%2061.8724%2099.9072%2061.9567%20100.022%2062.0388C100.244%2062.1996%20100.476%2062.3626%20100.701%2062.53C100.839%2062.6332%20100.975%2062.7385%20101.113%2062.8439C101.316%2062.9999%20101.518%2063.1588%20101.72%2063.3207C101.868%2063.439%20102.016%2063.5588%20102.164%2063.68C102.357%2063.8397%20102.549%2064.0016%20102.739%2064.1657C102.887%2064.2951%20103.035%2064.4256%20103.183%2064.5572C103.37%2064.7228%20103.555%2064.8909%20103.737%2065.0617C103.886%2065.1981%20104.035%2065.3356%20104.181%2065.4753C104.369%2065.6539%20104.557%2065.8357%20104.743%2066.0187C104.878%2066.1518%20105.015%2066.2849%20105.149%2066.4202C105.343%2066.6153%20105.534%2066.8149%20105.726%2067.0145C105.85%2067.1443%20105.974%2067.2718%20106.097%2067.4038C106.319%2067.6433%20106.541%2067.8884%20106.763%2068.1334C106.845%2068.2255%20106.929%2068.3153%20107.011%2068.4085C107.313%2068.7522%20107.612%2069.1015%20107.907%2069.4564C107.97%2069.5329%20108.031%2069.6116%20108.094%2069.6882C108.325%2069.9698%20108.556%2070.2526%20108.781%2070.5409C109.05%2070.8847%20109.315%2071.2329%20109.576%2071.5855C109.619%2071.6443%20109.665%2071.6964%20109.709%2071.7607C110.133%2072.3363%20110.543%2072.9251%20110.944%2073.5195C111.042%2073.6637%20111.141%2073.8078%20111.236%2073.9531C111.383%2074.1749%20111.529%2074.4022%20111.674%2074.6284C111.8%2074.8258%20111.927%2075.0232%20112.051%2075.2228C112.194%2075.4524%20112.333%2075.6841%20112.472%2075.9159C112.583%2076.1011%20112.694%2076.2863%20112.805%2076.4703C113.13%2077.027%20113.446%2077.5893%20113.751%2078.157C113.862%2078.3633%20113.973%2078.5706%20114.076%2078.7769C114.179%2078.9832%20114.307%2079.2205%20114.417%2079.4423C114.57%2079.7472%20114.72%2080.0544%20114.867%2080.3616C114.918%2080.4725%20114.97%2080.5723%20115.02%2080.6787C115.209%2081.0816%20115.394%2081.4882%20115.574%2081.8985C115.621%2082.0094%20115.666%2082.1126%20115.712%2082.2201C115.842%2082.5232%20115.97%2082.8274%20116.095%2083.1328C116.152%2083.2718%20116.208%2083.4104%20116.263%2083.5486C116.379%2083.8399%20116.49%2084.1315%20116.595%2084.4236C116.643%2084.5511%20116.692%2084.6786%20116.74%2084.8061C116.874%2085.1758%20117.004%2085.5454%20117.129%2085.9151C117.147%2085.9661%20117.165%2086.0182%20117.183%2086.0692C117.324%2086.4891%20117.457%2086.909%20117.585%2087.3289C117.624%2087.4609%20117.661%2087.5929%20117.695%2087.7248C117.782%2088.0176%20117.866%2088.3103%20117.945%2088.6031C117.988%2088.7628%20118.029%2088.9225%20118.071%2089.0833C118.142%2089.3531%20118.209%2089.6229%20118.273%2089.8928C118.312%2090.0532%20118.349%2090.2133%20118.384%2090.3729C118.447%2090.6494%20118.506%2090.9259%20118.561%2091.2024C118.591%2091.3499%20118.622%2091.4974%20118.651%2091.646C118.719%2091.9986%20118.782%2092.3502%20118.839%2092.7006C118.849%2092.7638%20118.862%2092.827%20118.872%2092.8902C118.938%2093.3042%20118.996%2093.7167%20119.046%2094.1278C119.061%2094.2387%20119.07%2094.3496%20119.084%2094.4604C119.118%2094.7562%20119.148%2095.0537%20119.175%2095.3531C119.187%2095.4929%20119.198%2095.6315%20119.208%2095.7701C119.229%2096.0495%20119.246%2096.3279%20119.259%2096.6051C119.266%2096.7371%20119.272%2096.869%20119.278%2097.001C119.292%2097.3936%20119.301%2097.7839%20119.3%2098.172L119.237%20120.505C119.237%20120.912%20119.225%20121.31%20119.207%20121.702C119.207%20121.813%20119.192%20121.924%20119.187%20122.035C119.171%20122.304%20119.154%20122.572%20119.129%20122.835C119.116%20122.986%20119.099%20123.135%20119.083%20123.285C119.058%20123.507%20119.033%20123.728%20119.003%20123.95C118.981%20124.11%20118.957%20124.266%20118.932%20124.423C118.9%20124.624%20118.866%20124.822%20118.829%20125.018C118.795%20125.193%20118.761%20125.367%20118.725%20125.538C118.688%20125.71%20118.648%20125.884%20118.605%20126.06C118.556%20126.262%20118.504%20126.461%20118.449%20126.657C118.406%20126.811%20118.363%20126.964%20118.316%20127.115C118.244%20127.349%20118.168%20127.577%20118.088%20127.804C118.044%20127.928%20118.001%20128.053%20117.956%20128.175C117.811%20128.557%20117.657%20128.928%20117.488%20129.284C117.357%20129.561%20117.221%20129.832%20117.077%20130.092C117.061%20130.121%20117.042%20130.148%20117.027%20130.177C116.895%20130.412%20116.758%20130.64%20116.616%20130.862C116.582%20130.915%20116.545%20130.966%20116.506%20131.02C116.386%20131.199%20116.263%20131.375%20116.136%20131.546C116.084%20131.616%20116.031%20131.686%20115.978%20131.755C115.855%20131.913%20115.729%20132.067%20115.6%20132.216C115.552%20132.273%20115.504%20132.327%20115.455%20132.385C115.279%20132.582%20115.097%20132.774%20114.91%20132.956C114.881%20132.983%20114.85%20133.01%20114.821%20133.038C114.66%20133.191%20114.495%20133.339%20114.327%20133.481C114.264%20133.533%20114.2%20133.584%20114.137%20133.635C113.989%20133.753%20113.841%20133.866%20113.693%20133.975C113.63%20134.02%20113.568%20134.067%20113.504%20134.11C113.292%20134.255%20113.077%20134.395%20112.855%20134.524L123.549%20128.314C123.771%20128.185%20123.986%20128.045%20124.199%20127.9C124.264%20127.857%20124.326%20127.81%20124.388%20127.765C124.539%20127.656%20124.687%20127.543%20124.831%20127.425C124.895%20127.374%20124.959%20127.323%20125.021%20127.271C125.19%20127.129%20125.356%20126.982%20125.518%20126.828C125.547%20126.801%20125.577%20126.776%20125.604%20126.748C125.792%20126.566%20125.974%20126.374%20126.15%20126.177C126.199%20126.121%20126.246%20126.066%20126.295%20126.007C126.424%20125.859%20126.55%20125.706%20126.673%20125.546C126.727%20125.477%20126.784%20125.407%20126.832%20125.337C126.958%20125.167%20127.081%20124.991%20127.2%20124.812C127.236%20124.759%20127.272%20124.707%20127.311%20124.653L127.344%20124.604C127.475%20124.399%20127.598%20124.186%20127.72%20123.971C127.737%20123.941%20127.756%20123.915%20127.772%20123.885C127.911%20123.633%20128.044%20123.375%20128.17%20123.108L128.184%20123.076C128.352%20122.72%20128.506%20122.349%20128.652%20121.967C128.665%20121.933%20128.68%20121.902%20128.694%20121.868C128.726%20121.78%20128.753%20121.686%20128.784%20121.597C128.863%20121.375%20128.941%20121.141%20129.013%20120.907C129.033%20120.843%20129.056%20120.783%20129.075%20120.719C129.101%20120.632%20129.121%20120.539%20129.145%20120.451C129.2%20120.255%20129.252%20120.056%20129.301%20119.854C129.321%20119.769%20129.347%20119.691%20129.366%20119.605C129.385%20119.52%20129.401%20119.423%20129.42%20119.334C129.457%20119.161%20129.492%20118.987%20129.525%20118.811C129.543%20118.719%20129.564%20118.631%20129.581%20118.537C129.598%20118.444%20129.612%20118.323%20129.629%20118.218C129.653%20118.062%20129.677%20117.904%20129.7%20117.745C129.711%20117.661%20129.726%20117.582%20129.736%20117.497C129.753%20117.362%20129.764%20117.221%20129.779%20117.085C129.795%20116.948%20129.813%20116.785%20129.826%20116.632C129.832%20116.57%20129.84%20116.51%20129.845%20116.448C129.861%20116.249%20129.87%20116.041%20129.883%20115.837C129.889%20115.726%20129.898%20115.615%20129.904%20115.505C129.904%20115.477%20129.904%20115.45%20129.904%20115.422C129.918%20115.077%20129.927%20114.726%20129.928%20114.37V114.308L129.991%2091.9753C130.002%2091.6331%20130.003%2091.2978%20129.993%2090.9695Z'%20fill='%230B0E11'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_302_6100'%20x1='68.0078'%20y1='92.449'%20x2='102.417'%20y2='92.449'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23313131'/%3e%3cstop%20offset='1'%20stop-color='%230B0E11'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_302_6100'%20x1='50.0001'%20y1='94.977'%20x2='113.22'%20y2='94.977'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%234E4E4E'/%3e%3cstop%20offset='1'%20stop-color='%230B0E11'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e"}}),h1:({children:e})=>t.jsx("div",{className:"mc-heading mc-h1",children:e}),h2:({children:e})=>t.jsx("div",{className:"mc-heading mc-h2",children:e}),h3:({children:e})=>t.jsx("div",{className:"mc-heading mc-h3",children:e}),h4:({children:e})=>t.jsx("div",{className:"mc-heading mc-h3",children:e}),h5:({children:e})=>t.jsx("div",{className:"mc-heading mc-h3",children:e}),h6:({children:e})=>t.jsx("div",{className:"mc-heading mc-h3",children:e}),hr:()=>t.jsx("hr",{className:"mc-hr"}),blockquote:({children:e})=>t.jsx("div",{className:"mc-blockquote",children:e}),code:({className:e,children:n,...r})=>{if(/language-/.test(e??"")){const i=/language-(\w+)/.exec(e??"")?.[1];return t.jsxs("span",{className:"mc-codeblock",children:[i&&t.jsx("span",{className:"mc-codeblock-lang",children:i}),t.jsx("pre",{children:t.jsx("code",{className:e,...r,children:n})})]})}return t.jsx("code",{className:"mc-inline-code",...r,children:n})}},Dv=({content:e})=>t.jsx("div",{className:"message-content",children:t.jsx(Uw,{remarkPlugins:[Rv],components:Lv,children:e})}),Fv=({message:e,submittingActions:n,onActionSubmit:r,onActionCancel:i,onConfirmTx:o,onApproveTx:s,onActionButtonClick:a})=>{const c="user"===e.sender?"message-user":"message-bot";return t.jsx("div",{className:`message ${c}`,role:"article",children:t.jsxs("div",{className:"message-bubble",children:[t.jsx("div",{className:"message-text",children:t.jsx(Dv,{content:e.text})}),e.walletActions?.map((a,c)=>{const u=`${e.id}-${c}`,l=!!n[u];return t.jsx("div",{children:t.jsx(np,{walletAction:a,isSubmitting:l,onSubmit:t=>r(e,a,c,t),onCancel:()=>i(e.id,c),onConfirm:t=>o(e,c,t),onApprove:t=>s(e,c,t)})},u)}),e.actionButtons&&e.actionButtons.length>0&&t.jsx("div",{className:"message-action-buttons",children:e.actionButtons.map((n,r)=>t.jsx("button",{type:"button",className:"message-action-button",onClick:()=>a(n.prompt,n.language),children:n.label},`${e.id}-actionbtn-${r}`))}),t.jsxs("div",{className:"message-timestamp",children:[e.timestamp.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),"user"===e.sender&&t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",className:"check-icon",children:t.jsx("path",{d:"M13.3333 4L6 11.3333L2.66667 8",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})]})]})})},Ov=({suggestions:e,hideIcons:n=!1,style:r})=>0===e.length?null:t.jsx("div",{className:"suggestions-container",style:r,children:e.map(e=>t.jsxs("button",{className:"suggestion-button",onClick:e.action,type:"button",children:[!n&&e.icon&&t.jsx("span",{className:"suggestion-icon",children:e.icon}),t.jsx("span",{className:"suggestion-text",children:e.text})]},e.id??e.text))});function Pv(e,t){if(0===t)return!0;const n=new Date(e[t].timestamp),r=new Date(e[t-1].timestamp);return n.setHours(0,0,0,0),r.setHours(0,0,0,0),n.getTime()!==r.getTime()}const Uv=({messages:e,isTyping:r,submittingActions:i,defaultSuggestions:o,followUpChips:s,showDefaultSuggestions:a,messagesContainerRef:c,messagesEndRef:u,onActionSubmit:l,onActionCancel:f,onConfirmTx:d,onApproveTx:p,onActionButtonClick:m})=>{const{t:g,language:b}=h(),w=n.useRef(e.length),y=n.useRef(r);n.useEffect(()=>{const t=e.length>w.current,n=r&&!y.current;w.current=e.length,y.current=r,(t||n)&&u.current?.scrollIntoView({behavior:"smooth"})},[e,r,u]);const v=s.length>0&&!r,A=a&&0===s.length;return t.jsxs("div",{className:"chat-modal-messages-wrapper",children:[t.jsxs("div",{className:"chat-modal-messages",ref:c,role:"log","aria-live":"polite",children:[e.map((n,r)=>t.jsxs("div",{children:[Pv(e,r)&&t.jsx("div",{className:"date-separator",children:Wd(n.timestamp,b)}),t.jsx(Fv,{message:n,submittingActions:i,onActionSubmit:l,onActionCancel:f,onConfirmTx:d,onApproveTx:p,onActionButtonClick:m})]},n.id)),r&&t.jsx("div",{className:"message message-bot typing-indicator",role:"status","aria-label":g("botIsTyping"),children:t.jsxs("div",{className:"message-bubble",children:[t.jsx("span",{className:"typing-dot"}),t.jsx("span",{className:"typing-dot"}),t.jsx("span",{className:"typing-dot"})]})}),v&&t.jsx(Ov,{suggestions:s,hideIcons:!0}),A&&t.jsxs(t.Fragment,{children:[e.length>1&&t.jsx("div",{className:"message message-bot",role:"article",children:t.jsx("div",{className:"message-bubble",children:t.jsx("div",{className:"message-text",children:g("canIHelpYou")})})}),t.jsx(Ov,{suggestions:o})]}),t.jsx("div",{ref:u})]}),t.jsx(ip,{scrollContainerRef:c})]})},qv=({inputValue:e,setInputValue:r,isTyping:i,onSubmit:o,inputRef:s})=>{const{t:a}=h(),c=n.useCallback(e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),o())},[o]);return t.jsx("div",{className:"chat-modal-input",children:t.jsxs("div",{className:"chat-modal-input-row",children:[t.jsx("input",{ref:s,type:"text",placeholder:a("messagePlaceholder"),value:e,onChange:e=>r(e.target.value),onKeyPress:c,disabled:i,"aria-label":"Message input"}),t.jsx("button",{className:"send-button",onClick:o,"aria-label":a("sendMessage"),disabled:i||""===e.trim(),type:"button",children:t.jsx("img",{src:"data:image/svg+xml,%3csvg%20width='36'%20height='36'%20viewBox='0%200%2036%2036'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3crect%20width='36'%20height='36'%20rx='18'%20fill='%232358B2'/%3e%3cmask%20id='mask0_1924_16177'%20style='mask-type:alpha'%20maskUnits='userSpaceOnUse'%20x='11'%20y='10'%20width='17'%20height='16'%3e%3crect%20x='11.334'%20y='10'%20width='16'%20height='16'%20fill='url(%23pattern0_1924_16177)'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0_1924_16177)'%3e%3crect%20x='11.334'%20y='10'%20width='16'%20height='16'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cpattern%20id='pattern0_1924_16177'%20patternContentUnits='objectBoundingBox'%20width='1'%20height='1'%3e%3cuse%20xlink:href='%23image0_1924_16177'%20transform='scale(0.00195312)'/%3e%3c/pattern%3e%3cimage%20id='image0_1924_16177'%20width='512'%20height='512'%20preserveAspectRatio='none'%20xlink:href='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAOgAAADoABlffMYAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAACAASURBVHic7d13uGRlme7/79M0ijnrKM6ImHAMmHXGgB7zKJhzAAMgZjFg4DfnzO8ISM4gKIKIEgwImAAjiAQRCSoCCgaCgOQcn/PHu5reNHt37121qt61qr6f6+pLbLr3vi/Seuqtp947MhNJkjRdFtUOIEmSxs8BQJKkKeQAIEnSFHIAkCRpCjkASJI0hRbXD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t:"Send",width:44,height:44})})]})})};var Hv,zv,jv={},Vv={exports:{}},Gv=Vv.exports;function Jv(){return Hv||(Hv=1,e=Vv,t=Vv.exports,function(n,r){var i="function",o="undefined",s="object",a="string",c="major",u="model",l="name",f="type",d="vendor",h="version",p="architecture",m="console",g="mobile",b="tablet",w="smarttv",y="wearable",v="embedded",A="Amazon",k="Apple",x="ASUS",E="BlackBerry",C="Browser",S="Chrome",T="Firefox",M="Google",I="Honor",B="Huawei",N="LG",R="Microsoft",L="Motorola",D="Nvidia",F="OnePlus",O="Opera",P="OPPO",U="Samsung",q="Sharp",H="Sony",z="Xiaomi",j="Zebra",V="Facebook",G="Chromium OS",J="Mac OS",W=" Browser",K=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},Y=function(e,t){return typeof e===a&&-1!==X(t).indexOf(X(e))},X=function(e){return e.toLowerCase()},Q=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===o?e:e.substring(0,500)},Z=function(e,t){for(var n,o,a,c,u,l,f=0;f<t.length&&!u;){var d=t[f],h=t[f+1];for(n=o=0;n<d.length&&!u&&d[n];)if(u=d[n++].exec(e))for(a=0;a<h.length;a++)l=u[++o],typeof(c=h[a])===s&&c.length>0?2===c.length?typeof c[1]==i?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==i||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=l||r;f+=2}},$=function(e,t){for(var n in t)if(typeof t[n]===s&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(Y(t[n][i],e))return"?"===n?r:n}else if(Y(t[n],e))return"?"===n?r:n;return t.hasOwnProperty("*")?t["*"]:e},_={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},ee={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[h,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[h,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,h],[/opios[\/ ]+([\w\.]+)/i],[h,[l,O+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[h,[l,O+" GX"]],[/\bopr\/([\w\.]+)/i],[h,[l,O]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[h,[l,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[h,[l,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,h],[/quark(?:pc)?\/([-\w\.]+)/i],[h,[l,"Quark"]],[/\bddg\/([\w\.]+)/i],[h,[l,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[h,[l,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[h,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[h,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[h,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[h,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[h,[l,"Smart Lenovo "+C]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+C],h],[/\bfocus\/([\w\.]+)/i],[h,[l,T+" Focus"]],[/\bopt\/([\w\.]+)/i],[h,[l,O+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[h,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[h,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[h,[l,O+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[h,[l,"MIUI"+W]],[/fxios\/([\w\.-]+)/i],[h,[l,T]],[/\bqihoobrowser\/?([\w\.]*)/i],[h,[l,"360"]],[/\b(qq)\/([\w\.]+)/i],[[l,/(.+)/,"$1Browser"],h],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1"+W],h],[/samsungbrowser\/([\w\.]+)/i],[h,[l,U+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[h,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],h],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[l,h],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[l],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[h,l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,V],h],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,h],[/\bgsa\/([\w\.]+) .*safari\//i],[h,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[h,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[h,[l,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,S+" WebView"],h],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[h,[l,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,h],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[h,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[h,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[h,$,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[l,h],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],h],[/(wolvic|librewolf)\/([\w\.]+)/i],[l,h],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[h,[l,T+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[l,[h,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[l,[h,/master.|lts./,""]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[p,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[p,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[p,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[p,/ower/,"",X]],[/ sun4\w[;\)]/i],[[p,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[p,X]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[d,U],[f,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[u,[d,U],[f,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[d,k],[f,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[d,k],[f,b]],[/(macintosh);/i],[u,[d,k]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[d,q],[f,g]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[u,[d,I],[f,b]],[/honor([-\w ]+)[;\)]/i],[u,[d,I],[f,g]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[u,[d,B],[f,b]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[d,B],[f,g]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[u,/_/g," "],[d,z],[f,b]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[u,/_/g," "],[d,z],[f,g]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[d,P],[f,g]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[u,[d,$,{OnePlus:["304","403","203"],"*":P}],[f,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[d,"Vivo"],[f,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[d,"Realme"],[f,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto(?! 360)[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[d,L],[f,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[d,L],[f,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[d,N],[f,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv|watch)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[d,N],[f,g]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[u,[d,"Lenovo"],[f,b]],[/(nokia) (t[12][01])/i],[d,u,[f,b]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[u,/_/g," "],[f,g],[d,"Nokia"]],[/(pixel (c|tablet))\b/i],[u,[d,M],[f,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[d,M],[f,g]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[d,H],[f,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[d,H],[f,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[d,F],[f,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[d,A],[f,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[d,A],[f,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,d,[f,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[d,E],[f,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[d,x],[f,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[d,x],[f,g]],[/(nexus 9)/i],[u,[d,"HTC"],[f,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[d,[u,/_/g," "],[f,g]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[u,[d,"TCL"],[f,b]],[/(itel) ((\w+))/i],[[d,X],u,[f,$,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[d,"Acer"],[f,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[d,"Meizu"],[f,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[d,"Ulefone"],[f,g]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[u,[d,"Energizer"],[f,g]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[u,[d,"Cat"],[f,g]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[u,[d,"Smartfren"],[f,g]],[/droid.+; (a(?:015|06[35]|142p?))/i],[u,[d,"Nothing"],[f,g]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[u,[d,"Archos"],[f,b]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[u,[d,"Archos"],[f,g]],[/(imo) (tab \w+)/i,/(infinix) (x1101b?)/i],[d,u,[f,b]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (hmd|imo) ([\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i,/(oppo) ?([\w ]+) bui/i],[d,u,[f,g]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[d,u,[f,b]],[/(surface duo)/i],[u,[d,R],[f,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[d,"Fairphone"],[f,g]],[/(u304aa)/i],[u,[d,"AT&T"],[f,g]],[/\bsie-(\w*)/i],[u,[d,"Siemens"],[f,g]],[/\b(rct\w+) b/i],[u,[d,"RCA"],[f,b]],[/\b(venue[\d ]{2,7}) b/i],[u,[d,"Dell"],[f,b]],[/\b(q(?:mv|ta)\w+) b/i],[u,[d,"Verizon"],[f,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[d,"Barnes & Noble"],[f,b]],[/\b(tm\d{3}\w+) b/i],[u,[d,"NuVision"],[f,b]],[/\b(k88) b/i],[u,[d,"ZTE"],[f,b]],[/\b(nx\d{3}j) b/i],[u,[d,"ZTE"],[f,g]],[/\b(gen\d{3}) b.+49h/i],[u,[d,"Swiss"],[f,g]],[/\b(zur\d{3}) b/i],[u,[d,"Swiss"],[f,b]],[/\b((zeki)?tb.*\b) b/i],[u,[d,"Zeki"],[f,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[d,"Dragon Touch"],u,[f,b]],[/\b(ns-?\w{0,9}) b/i],[u,[d,"Insignia"],[f,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[d,"NextBook"],[f,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[d,"Voice"],u,[f,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[d,"LvTel"],u,[f,g]],[/\b(ph-1) /i],[u,[d,"Essential"],[f,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[d,"Envizen"],[f,b]],[/\b(trio[-\w\. ]+) b/i],[u,[d,"MachSpeed"],[f,b]],[/\btu_(1491) b/i],[u,[d,"Rotor"],[f,b]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[u,[d,D],[f,b]],[/(sprint) (\w+)/i],[d,u,[f,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[d,R],[f,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[d,j],[f,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[d,j],[f,g]],[/smart-tv.+(samsung)/i],[d,[f,w]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[d,U],[f,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,N],[f,w]],[/(apple) ?tv/i],[d,[u,k+" TV"],[f,w]],[/crkey/i],[[u,S+"cast"],[d,M],[f,w]],[/droid.+aft(\w+)( bui|\))/i],[u,[d,A],[f,w]],[/(shield \w+ tv)/i],[u,[d,D],[f,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[d,q],[f,w]],[/(bravia[\w ]+)( bui|\))/i],[u,[d,H],[f,w]],[/(mi(tv|box)-?\w+) bui/i],[u,[d,z],[f,w]],[/Hbbtv.*(technisat) (.*);/i],[d,u,[f,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,Q],[u,Q],[f,w]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[u,[f,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[f,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[d,u,[f,m]],[/droid.+; (shield)( bui|\))/i],[u,[d,D],[f,m]],[/(playstation \w+)/i],[u,[d,H],[f,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[d,R],[f,m]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[u,[d,U],[f,y]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[d,u,[f,y]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[u,[d,P],[f,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[d,k],[f,y]],[/(opwwe\d{3})/i],[u,[d,F],[f,y]],[/(moto 360)/i],[u,[d,L],[f,y]],[/(smartwatch 3)/i],[u,[d,H],[f,y]],[/(g watch r)/i],[u,[d,N],[f,y]],[/droid.+; (wt63?0{2,3})\)/i],[u,[d,j],[f,y]],[/droid.+; (glass) \d/i],[u,[d,M],[f,y]],[/(pico) (4|neo3(?: link|pro)?)/i],[d,u,[f,y]],[/; (quest( \d| pro)?)/i],[u,[d,V],[f,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[f,v]],[/(aeobc)\b/i],[u,[d,A],[f,v]],[/(homepod).+mac os/i],[u,[d,k],[f,v]],[/windows iot/i],[[f,v]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[f,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[f,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[f,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[f,g]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[u,[d,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[h,[l,"EdgeHTML"]],[/(arkweb)\/([\w\.]+)/i],[l,h],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[h,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,h],[/ladybird\//i],[[l,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[h,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,h],[/(windows (?:phone(?: os)?|mobile|iot))[\/ ]?([\d\.\w ]*)/i],[l,[h,$,_]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,$,_],[l,"Windows"]],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[h,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,J],[h,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[h,l],[/(ubuntu) ([\w\.]+) like android/i],[[l,/(.+)/,"$1 Touch"],h],[/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen|webos)\w*[-\/; ]?([\d\.]*)/i],[l,h],[/\(bb(10);/i],[h,[l,E]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[h,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[h,[l,T+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[h,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[h,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[h,[l,S+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,G],h],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux)(?: arm\w*| x86\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,h],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],h],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,h]]},te=function(e,t){if(typeof e===s&&(t=e,e=r),!(this instanceof te))return new te(e,t).getResult();var m=typeof n!==o&&n.navigator?n.navigator:r,w=e||(m&&m.userAgent?m.userAgent:""),y=m&&m.userAgentData?m.userAgentData:r,v=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(ee,t):ee,A=m&&m.userAgent==w;return this.getBrowser=function(){var e,t={};return t[l]=r,t[h]=r,Z.call(t,w,v.browser),t[c]=typeof(e=t[h])===a?e.replace(/[^\d\.]/g,"").split(".")[0]:r,A&&m&&m.brave&&typeof m.brave.isBrave==i&&(t[l]="Brave"),t},this.getCPU=function(){var e={};return e[p]=r,Z.call(e,w,v.cpu),e},this.getDevice=function(){var e={};return e[d]=r,e[u]=r,e[f]=r,Z.call(e,w,v.device),A&&!e[f]&&y&&y.mobile&&(e[f]=g),A&&"Macintosh"==e[u]&&m&&typeof m.standalone!==o&&m.maxTouchPoints&&m.maxTouchPoints>2&&(e[u]="iPad",e[f]=b),e},this.getEngine=function(){var e={};return e[l]=r,e[h]=r,Z.call(e,w,v.engine),e},this.getOS=function(){var e={};return e[l]=r,e[h]=r,Z.call(e,w,v.os),A&&!e[l]&&y&&y.platform&&"Unknown"!=y.platform&&(e[l]=y.platform.replace(/chrome os/i,G).replace(/macos/i,J)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return w},this.setUA=function(e){return w=typeof e===a&&e.length>500?Q(e,500):e,this},this.setUA(w),this};te.VERSION="1.0.41",te.BROWSER=K([l,h,c]),te.CPU=K([p]),te.DEVICE=K([u,d,f,m,g,w,b,y,v]),te.ENGINE=te.OS=K([l,h]),e.exports&&(t=e.exports=te),t.UAParser=te;var ne=typeof n!==o&&(n.jQuery||n.Zepto);if(ne&&!ne.ua){var re=new te;ne.ua=re.getResult(),ne.ua.get=function(){return re.getUA()},ne.ua.set=function(e){re.setUA(e);var t=re.getResult();for(var n in t)ne.ua[n]=t[n]}}}("object"==typeof window?window:Gv)),Vv.exports;var e,t}var Wv=function(){if(zv)return jv;zv=1,Object.defineProperty(jv,"u",{value:!0});var e,t=n,r=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,i=Jv(),o=new i,s=o.getBrowser(),a=o.getCPU(),c=o.getDevice(),u=o.getEngine(),l=o.getOS(),f=o.getUA(),d=function(e){return o.setUA(e)},h=function(e){if(e){var t=new i(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},p=Object.freeze({ClientUAInstance:o,browser:s,cpu:a,device:c,engine:u,os:l,ua:f,setUa:d,parseUserAgent:h});function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t,n){return t&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);s=!0);}catch(c){a=!0,i=c}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var S="mobile",T="tablet",M="smarttv",I="console",B="wearable",N="embedded",R=void 0,L={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},D={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},F={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},O=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},P=function(){return!("undefined"==typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},U=function(e){var t=P();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},q=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach(function(t){w(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e,{vendor:O(t.vendor),model:O(t.model),os:O(n.name),osVersion:O(n.version),ua:O(r)})},H=function(e){return e.type===S},z=function(e){return e.type===T},j=function(e){var t=e.type;return t===S||t===T},V=function(e){return e.type===M},G=function(e){return e.type===R},J=function(e){return e.type===B},W=function(e){return e.type===I},K=function(e){return e.type===N},Y=function(e){var t=e.vendor;return O(t)},X=function(e){var t=e.model;return O(t)},Q=function(e){var t=e.type;return O(t,"browser")},Z=function(e){return e.name===D.Android},$=function(e){return e.name===D.Windows},_=function(e){return e.name===D.MAC_OS},ee=function(e){return e.name===D.WindowsPhone},te=function(e){return e.name===D.IOS},ne=function(e){var t=e.version;return O(t)},re=function(e){var t=e.name;return O(t)},ie=function(e){return e.name===L.Chrome},oe=function(e){return e.name===L.Firefox},se=function(e){return e.name===L.Chromium},ae=function(e){return e.name===L.Edge},ce=function(e){return e.name===L.Yandex},ue=function(e){var t=e.name;return t===L.Safari||t===L.MobileSafari},le=function(e){return e.name===L.MobileSafari},fe=function(e){return e.name===L.Opera},de=function(e){var t=e.name;return t===L.InternetExplorer||t===L.Ie},he=function(e){return e.name===L.MIUI},pe=function(e){return e.name===L.SamsungBrowser},me=function(e){var t=e.version;return O(t)},ge=function(e){var t=e.major;return O(t)},be=function(e){var t=e.name;return O(t)},we=function(e){var t=e.name;return O(t)},ye=function(e){var t=e.version;return O(t)},ve=function(){var e=P(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"==typeof t&&/electron/.test(t)},Ae=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},ke=function(){var e=P();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},xe=function(){return U("iPad")},Ee=function(){return U("iPhone")},Ce=function(){return U("iPod")},Se=function(e){return O(e)};function Te(e){var t=e||p,n=t.device,r=t.browser,i=t.os,o=t.engine,s=t.ua;return{isSmartTV:V(n),isConsole:W(n),isWearable:J(n),isEmbedded:K(n),isMobileSafari:le(r)||xe(),isChromium:se(r),isMobile:j(n)||xe(),isMobileOnly:H(n),isTablet:z(n)||xe(),isBrowser:G(n),isDesktop:G(n),isAndroid:Z(i),isWinPhone:ee(i),isIOS:te(i)||xe(),isChrome:ie(r),isFirefox:oe(r),isSafari:ue(r),isOpera:fe(r),isIE:de(r),osVersion:ne(i),osName:re(i),fullBrowserVersion:me(r),browserVersion:ge(r),browserName:be(r),mobileVendor:Y(n),mobileModel:X(n),engineName:we(o),engineVersion:ye(o),getUA:Se(s),isEdge:ae(r)||Ae(s),isYandex:ce(r),deviceType:Q(n),isIOS13:ke(),isIPad13:xe(),isIPhone13:Ee(),isIPod13:Ce(),isElectron:ve(),isEdgeChromium:Ae(s),isLegacyEdge:ae(r)&&!Ae(s),isWindows:$(i),isMacOs:_(i),isMIUI:he(r),isSamsungBrowser:pe(r)}}var Me=V(c),Ie=W(c),Be=J(c),Ne=K(c),Re=le(s)||xe(),Le=se(s),De=j(c)||xe(),Fe=H(c),Oe=z(c)||xe(),Pe=G(c),Ue=G(c),qe=Z(l),He=ee(l),ze=te(l)||xe(),je=ie(s),Ve=oe(s),Ge=ue(s),Je=fe(s),We=de(s),Ke=ne(l),Ye=re(l),Xe=me(s),Qe=ge(s),Ze=be(s),$e=Y(c),_e=X(c),et=we(u),tt=ye(u),nt=Se(f),rt=ae(s)||Ae(f),it=ce(s),ot=Q(c),st=ke(),at=xe(),ct=Ee(),ut=Ce(),lt=ve(),ft=Ae(f),dt=ae(s)&&!Ae(f),ht=$(l),pt=_(l),mt=he(s),gt=pe(s);function bt(e){var t=e||window.navigator.userAgent;return h(t)}return jv.AndroidView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return qe?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.BrowserTypes=L,jv.BrowserView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return Pe?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.ConsoleView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return Ie?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.CustomView=function(e){var n=e.renderWithFragment,i=e.children;e.viewClassName,e.style;var o=e.condition,s=k(e,["renderWithFragment","children","viewClassName","style","condition"]);return o?n?r.createElement(t.Fragment,null,i):r.createElement("div",s,i):null},jv.IEView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return We?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.IOSView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return ze?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.MobileOnlyView=function(e){var n=e.renderWithFragment,i=e.children;e.viewClassName,e.style;var o=k(e,["renderWithFragment","children","viewClassName","style"]);return Fe?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.MobileView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return De?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.OsTypes=D,jv.SmartTVView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return Me?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.TabletView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return Oe?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.WearableView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return Be?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.WinPhoneView=function(e){var n=e.renderWithFragment,i=e.children,o=k(e,["renderWithFragment","children"]);return He?n?r.createElement(t.Fragment,null,i):r.createElement("div",o,i):null},jv.browserName=Ze,jv.browserVersion=Qe,jv.deviceDetect=function(e){var t=e?h(e):p,n=t.device,r=t.browser,i=t.engine,o=t.os,s=t.ua,a=function(e){switch(e){case S:return{isMobile:!0};case T:return{isTablet:!0};case M:return{isSmartTV:!0};case I:return{isConsole:!0};case B:return{isWearable:!0};case R:return{isBrowser:!0};case N:return{isEmbedded:!0};default:return F}}(n.type),c=a.isBrowser,u=a.isMobile,l=a.isTablet,f=a.isSmartTV,d=a.isConsole,m=a.isWearable,g=a.isEmbedded;return c?function(e,t,n,r,i){return{isBrowser:e,browserMajorVersion:O(t.major),browserFullVersion:O(t.version),browserName:O(t.name),engineName:O(n.name),engineVersion:O(n.version),osName:O(r.name),osVersion:O(r.version),userAgent:O(i)}}(c,r,i,o,s):f?function(e,t,n,r){return{isSmartTV:e,engineName:O(t.name),engineVersion:O(t.version),osName:O(n.name),osVersion:O(n.version),userAgent:O(r)}}(f,i,o,s):d?function(e,t,n,r){return{isConsole:e,engineName:O(t.name),engineVersion:O(t.version),osName:O(n.name),osVersion:O(n.version),userAgent:O(r)}}(d,i,o,s):u||l?q(a,n,o,s):m?function(e,t,n,r){return{isWearable:e,engineName:O(t.name),engineVersion:O(t.version),osName:O(n.name),osVersion:O(n.version),userAgent:O(r)}}(m,i,o,s):g?function(e,t,n,r,i){return{isEmbedded:e,vendor:O(t.vendor),model:O(t.model),engineName:O(n.name),engineVersion:O(n.version),osName:O(r.name),osVersion:O(r.version),userAgent:O(i)}}(g,n,i,o,s):void 0},jv.deviceType=ot,jv.engineName=et,jv.engineVersion=tt,jv.fullBrowserVersion=Xe,jv.getSelectorsByUserAgent=function(e){if(e&&"string"==typeof e){var t=h(e);return Te({device:t.device,browser:t.browser,os:t.os,engine:t.engine,ua:t.ua})}console.error("No valid user agent string was provided")},jv.getUA=nt,jv.isAndroid=qe,jv.isBrowser=Pe,jv.isChrome=je,jv.isChromium=Le,jv.isConsole=Ie,jv.isDesktop=Ue,jv.isEdge=rt,jv.isEdgeChromium=ft,jv.isElectron=lt,jv.isEmbedded=Ne,jv.isFirefox=Ve,jv.isIE=We,jv.isIOS=ze,jv.isIOS13=st,jv.isIPad13=at,jv.isIPhone13=ct,jv.isIPod13=ut,jv.isLegacyEdge=dt,jv.isMIUI=mt,jv.isMacOs=pt,jv.isMobile=De,jv.isMobileOnly=Fe,jv.isMobileSafari=Re,jv.isOpera=Je,jv.isSafari=Ge,jv.isSamsungBrowser=gt,jv.isSmartTV=Me,jv.isTablet=Oe,jv.isWearable=Be,jv.isWinPhone=He,jv.isWindows=ht,jv.isYandex=it,jv.mobileModel=_e,jv.mobileVendor=$e,jv.osName=Ye,jv.osVersion=Ke,jv.parseUserAgent=h,jv.setUserAgent=function(e){return d(e)},jv.useDeviceData=bt,jv.useDeviceSelectors=function(e){var t=bt(e||window.navigator.userAgent);return[Te(t),t]},jv.useMobileOrientation=function(){var e=E(t.useState(function(){var e=window.innerWidth>window.innerHeight?90:0;return{isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"}}),2),n=e[0],r=e[1],i=t.useCallback(function(){var e=window.innerWidth>window.innerHeight?90:0,t={isPortrait:0===e,isLandscape:90===e,orientation:0===e?"portrait":"landscape"};n.orientation!==t.orientation&&r(t)},[n.orientation]);return t.useEffect(function(){return void 0!==("undefined"==typeof window?"undefined":g(window))&&De&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}},[i]),n},jv.withOrientationChange=function(e){return function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(t=function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x(e)}(this,v(n).call(this,e))).isEventListenerAdded=!1,t.handleOrientationChange=t.handleOrientationChange.bind(x(t)),t.onOrientationChange=t.onOrientationChange.bind(x(t)),t.onPageLoad=t.onPageLoad.bind(x(t)),t.state={isLandscape:!1,isPortrait:!1},t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(n,t),b(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var e=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:0===e,isLandscape:90===e})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){void 0!==("undefined"==typeof window?"undefined":g(window))&&De&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return r.createElement(e,y({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(r.Component)},jv}();const Kv={1:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",10:"0x4200000000000000000000000000000000000006",56:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",137:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",8453:"0x4200000000000000000000000000000000000006",42161:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1"},Yv=[{name:"transfer",type:"function",stateMutability:"nonpayable",inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{name:"approve",type:"function",stateMutability:"nonpayable",inputs:[{name:"spender",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]}],Xv=[{name:"deposit",type:"function",stateMutability:"payable",inputs:[],outputs:[]},{name:"withdraw",type:"function",stateMutability:"nonpayable",inputs:[{name:"wad",type:"uint256"}],outputs:[]}],Qv=[{name:"safeTransferFrom",type:"function",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"tokenId",type:"uint256"}],outputs:[]}],Zv=[{name:"safeTransferFrom",type:"function",stateMutability:"nonpayable",inputs:[{name:"from",type:"address"},{name:"to",type:"address"},{name:"id",type:"uint256"},{name:"amount",type:"uint256"},{name:"data",type:"bytes"}],outputs:[]}];function $v(e){const{action:t,parameters:n,fromAddress:r,chainId:i}=e;switch(t){case"send_native":return function(e,t,n){const{to_address:r,amount:i}=e;if(!r)throw new Error("Recipient address is required");if(!i)throw new Error("Amount is required");return{from:t,to:r,data:"0x",value:_v(i,18).toString(),chainId:n,description:`Send ${i} native token to ${r}`}}(n,r,i);case"send_token":return function(e,t,n){const{contract_address:r,to_address:i,amount:o,decimals:s,token_symbol:a}=e;if(!r)throw new Error("Token contract address is required");if(!i)throw new Error("Recipient address is required");if(!o)throw new Error("Amount is required");const c=parseInt(s)||18,u=qt({abi:Yv,functionName:"transfer",args:[i,_v(o,c)]});return{from:t,to:r,data:u,value:"0",chainId:n,description:`Send ${o} ${a||"tokens"} to ${i}`}}(n,r,i);case"approve_token":return function(e,t,n){const{contract_address:r,spender_address:i,amount:o,decimals:s,token_symbol:a}=e;if(!r)throw new Error("Token contract address is required");if(!i)throw new Error("Spender address is required");const c=parseInt(s)||18,u=o&&""!==o.trim()?_v(o,c):kn,l=qt({abi:Yv,functionName:"approve",args:[i,u]});return{from:t,to:r,data:l,value:"0",chainId:n,description:`Approve ${o||"unlimited"} ${a||"tokens"} for ${i}`}}(n,r,i);case"wrap_native":return function(e,t,n){const{amount:r}=e;if(!r)throw new Error("Amount is required");const i=Kv[n];if(!i)throw new Error(`Wrapped native not supported on chain ${n}`);const o=qt({abi:Xv,functionName:"deposit"});return{from:t,to:i,data:o,value:_v(r,18).toString(),chainId:n,description:`Wrap ${r} native token`}}(n,r,i);case"unwrap_native":return function(e,t,n){const{amount:r}=e;if(!r)throw new Error("Amount is required");const i=Kv[n];if(!i)throw new Error(`Wrapped native not supported on chain ${n}`);const o=qt({abi:Xv,functionName:"withdraw",args:[_v(r,18)]});return{from:t,to:i,data:o,value:"0",chainId:n,description:`Unwrap ${r} wrapped native`}}(n,r,i);case"send_nft":return function(e,t,n){const{contract_address:r,to_address:i,token_id:o,amount:s,token_standard:a}=e;if(!r)throw new Error("NFT contract address is required");if(!i)throw new Error("Recipient address is required");if(!o)throw new Error("Token id is required");if("ERC1155"===(a||"ERC721").toUpperCase()){const e=BigInt(s||"1");return{from:t,to:r,data:qt({abi:Zv,functionName:"safeTransferFrom",args:[t,i,BigInt(o),e,"0x"]}),value:"0",chainId:n,description:`Send ERC-1155 #${o} ×${e} to ${i}`}}const c=qt({abi:Qv,functionName:"safeTransferFrom",args:[t,i,BigInt(o)]});return{from:t,to:r,data:c,value:"0",chainId:n,description:`Send NFT #${o} to ${i}`}}(n,r,i);default:throw new Error(`Action "${t}" is not a supported transaction action`)}}function _v(e,t){return function(e,t){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(e))throw new mr({value:e});let[n,r="0"]=e.split(".");const i=n.startsWith("-");if(i&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${r}`))&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>t){const[e,i,o]=[r.slice(0,t-1),r.slice(t-1,t),r.slice(t)],s=Math.round(Number(`${i}.${o}`));r=s>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${s}`,r.length>t&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,t)}else r=r.padEnd(t,"0");return BigInt(`${i?"-":""}${n}${r}`)}(Jh(e).decimalPlaces(t,Jh.ROUND_DOWN).toFixed(),t)}function eA(e,t){return t||(void 0!==e?jd[e]?.rpcUrls?.default?.http?.[0]:void 0)}async function tA(e,t,n){const r=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:t,params:n})}),i=await r.json();if(i?.error)throw new Error(i.error?.message||`RPC ${t} failed`);return i?.result}async function nA(e){const{transactionHash:t,chainId:n,pollingInterval:r=3e3,timeout:i=12e4,rpcUrl:o}=e,s=eA(n,o);if(!s)throw new Error(`No RPC endpoint for chain ${n}`);const a=Date.now();for(;Date.now()-a<i;){try{const e=await fetch(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"eth_getTransactionReceipt",params:[t]})}),n=await e.json();if(n?.result)return{status:"0x1"===n.result.status?"success":"fail"}}catch(c){console.warn("eth_getTransactionReceipt poll error:",c)}await new Promise(e=>setTimeout(e,r))}throw new Error(`Timed out waiting for receipt of ${t}`)}function rA(e){return"number"==typeof e?e:e.startsWith("0x")?parseInt(e,16):parseInt(e,10)}function iA(e){const t=c(e);return{t:e=>u(e,t),ti:(e,n)=>l(u(e,t),n)}}function oA({addMessage:e,updateWalletAction:t,onTransaction:r}){const{config:i}=gh(),[o,s]=n.useState({}),a=n.useCallback((e,t)=>{s(n=>{if(!t){const t={...n};return delete t[e],t}return{...n,[e]:!0}})},[]),c=n.useCallback((n,r,i,o)=>{const{t:s}=iA(o);t(n,r,{status:"pending"}),e(i||s("txFailed"),"bot")},[e,t]),u=n.useCallback(async(e,t,n)=>{const r=i?.rpcUrls?.[t]??void 0,o=await async function(e){const{tx:t,chainId:n,rpcUrl:r}=e,i=eA(n,r);if(!i)return{ok:!0};const o=jd[n],s=o?.nativeCurrency?.decimals??18,a=o?.nativeCurrency?.symbol??"";try{const e=await tA(i,"eth_getBalance",[t.from,"latest"]),n=BigInt(e);let r,o;if(r=t.gasPrice?BigInt(t.gasPrice):BigInt(await tA(i,"eth_gasPrice",[])),t.gasLimit)o=BigInt(t.gasLimit);else try{const e=await tA(i,"eth_estimateGas",[{from:t.from,to:t.to,data:t.data,value:t.value}]);o=BigInt(e)}catch{return{ok:!0}}const c=o*r+(t.value?BigInt(t.value):0n);if(n>=c)return{ok:!0};const u=e=>new Jh(e.toString()).dividedBy(new Jh(10).pow(s)).toFixed(6);return{ok:!1,balance:u(n),fee:u(c),symbol:a}}catch{return{ok:!0}}}({tx:{from:e.from,to:e.to,data:e.data,value:e.value,gasLimit:e.gasLimit,gasPrice:e.gasPrice},chainId:t,rpcUrl:r});if(o.ok)return{ok:!0};const{ti:s}=iA(n);return{ok:!1,message:s("txInsufficientGas",{symbol:o.symbol??"",balance:o.balance??"0",fee:o.fee??"0"})}},[i]),l=n.useCallback(async(e,n,r,o,s)=>{const a=i?.rpcUrls?.[o]??void 0;try{await Kd(2e3);if("success"===(await nA({transactionHash:r,chainId:o,rpcUrl:a})).status)t(e,n,{status:"success",transactionHash:r});else{const{t:t}=iA(s);c(e,n,t("txReverted"),s)}}catch{t(e,n,{status:"success",transactionHash:r})}},[i,t,c]),f=n.useCallback(async(n,r,o,s,a)=>{const c=i?.rpcUrls?.[s]??void 0,u=()=>(t(n.id,r,{status:"success",transactionHash:o}),!0);try{await Kd(2e3);if("success"===(await nA({transactionHash:o,chainId:s,rpcUrl:c})).status)return u();const{t:i}=iA(a);return t(n.id,r,{status:"pending"}),e(i("txRevertedSwap"),"bot"),!1}catch{return u()}},[e,i,t]);return{submitting:o,handleActionSubmit:n.useCallback(async(e,n,i,o)=>{const s=`${e.id}-${i}`,f=n.language,{t:d}=iA(f);a(s,!0);try{const s=n.action;if(!function(e){return["send_native","send_token","approve_token","wrap_native","unwrap_native","send_nft"].includes(e)}(s)||!r)return void c(e.id,i,d("txNoHandler"),f);const a=rA(n.chainId);let p;try{p=$v({action:s,parameters:{...n.parameters,...o},fromAddress:n.walletAddress,chainId:a})}catch(h){const t=h instanceof Error?h.message:String(h);return void c(e.id,i,t,f)}const m={from:p.from,to:p.to,data:p.data,value:p.value,chainId:p.chainId},g=await u(m,a,f);if(!g.ok)return void c(e.id,i,g.message,f);t(e.id,i,{status:"submitted",parameters:o});const b=await r(m);if("success"!==b.status||!b.transactionHash)return void c(e.id,i,b.error,f);await l(e.id,i,b.transactionHash,a,f)}catch(h){const t=h instanceof Error?h.message:String(h);c(e.id,i,t,f)}finally{a(s,!1)}},[a,r,t,l,c,u]),handleConfirmTx:n.useCallback(async(e,n,i)=>{const o=`${e.id}-${n}`,s=e.walletActions?.[n]?.language,{t:l}=iA(s);if(!r)return c(e.id,n,l("txNoHandler"),s),{status:"fail",error:l("txNoHandler")};const d=void 0!==i.chainId?rA(i.chainId):1,h=await u(i,d,s);if(!h.ok)return c(e.id,n,h.message,s),{status:"fail",error:h.message};a(o,!0),t(e.id,n,{status:"submitted"});try{const t=await r(i);if("success"!==t.status||!t.transactionHash)return c(e.id,n,t.error,s),t;const o=await f(e,n,t.transactionHash,d,s);return{...t,status:o?"success":"fail"}}catch(p){const t=p instanceof Error?p.message:String(p);return c(e.id,n,t,s),{status:"fail",error:t}}finally{a(o,!1)}},[c,a,r,t,f,u]),handleApproveTx:n.useCallback(async(n,o,s)=>{const a=n.walletActions?.[o]?.language,{t:c}=iA(a);if(!r)return e(c("txNoHandler"),"bot"),{status:"fail",error:c("txNoHandler")};const l=void 0!==s.chainId?rA(s.chainId):1,f=await u(s,l,a);if(!f.ok)return e(f.message,"bot"),{status:"fail",error:f.message};try{const a=await r(s);if("success"!==a.status||!a.transactionHash)return e(a.error||c("approvalFailed"),"bot"),{status:"fail",error:a.error??c("approvalFailed"),transactionHash:a.transactionHash};const u=i?.rpcUrls?.[l]??void 0;try{await Kd(2e3),await nA({transactionHash:a.transactionHash,chainId:l,rpcUrl:u})}catch{}return t(n.id,o,{approveDone:!0}),a}catch(d){const t=d instanceof Error?d.message:String(d);return e(t,"bot"),{status:"fail",error:t}}},[e,r,i,t,u])}}const sA=({isOpen:e,onClose:r,position:i="bottom-right",modalChatStyle:o={},chatTitle:s,welcomeMessage:a,customSuggestions:c,additionalSuggestions:u,chatIcon:l,modalConfig:f,onTransaction:d})=>{const{isShowIcon:p=!0}=f||{},{t:m}=h(),{messages:g,addMessage:b,updateWalletAction:w,clearMessages:y}=dh({customWelcomeMessage:a}),v=vh(),{send:A,isTyping:k,suggestedPrompts:x}=Ch({agent:v,addMessage:b}),{submitting:E,handleActionSubmit:C,handleConfirmTx:S,handleApproveTx:T}=oA({addMessage:b,updateWalletAction:w,onTransaction:d}),[M,I]=n.useState(""),[B,N]=n.useState(!0),[R,L]=n.useState(g.length);g.length!==R&&(L(g.length),g.length>R&&B&&N(!1));const D=n.useRef(null),F=n.useRef(null),O=n.useRef(null);!function({isOpen:e,onClose:t,showSuggestions:r,setShowSuggestions:i,inputRef:o,messagesEndRef:s}){const a=n.useRef(null),c=n.useRef(!1),u=n.useRef(r);n.useEffect(()=>{u.current=r},[r]),n.useEffect(()=>{if("undefined"==typeof window||!e)return;const t=document.body,n=document.documentElement,r=t.style.overscrollBehavior,i=n.style.overscrollBehavior,o=t.style.overflow;return t.style.overscrollBehavior="none",n.style.overscrollBehavior="none",t.style.overflow="hidden",()=>{t.style.overscrollBehavior=r,n.style.overscrollBehavior=i,t.style.overflow=o}},[e]),n.useEffect(()=>{if(e){o.current&&Wv.isDesktop&&o.current.focus(),s.current?.scrollIntoView({behavior:"instant"}),c.current&&a.current?Date.now()-a.current>12e5&&i(!0):i(!0),a.current=null,c.current=!1;const e=window.setTimeout(()=>{s.current?.scrollIntoView({behavior:"smooth"})},50);return()=>window.clearTimeout(e)}a.current=Date.now(),c.current=!u.current},[e]),n.useEffect(()=>{if(!e)return;const n=e=>{"Escape"===e.key&&t()};return document.addEventListener("keydown",n),()=>document.removeEventListener("keydown",n)},[e,t])}({isOpen:e,onClose:r,showSuggestions:B,setShowSuggestions:N,inputRef:O,messagesEndRef:D});const P=n.useCallback(async()=>{y(),I(""),N(!0),await v.clearHistory()},[v,y]);n.useEffect(()=>(ph(()=>{P()}),()=>ph(null)),[P]);const U=n.useCallback(async()=>{const e=M.trim();e&&!k&&(I(""),N(!1),await A(e))},[M,k,A]),q=n.useCallback((e,t)=>{w(e,t,{status:"idle"})},[w]),H=n.useCallback((e,t)=>{N(!1),A(e,t)},[A]),z=n.useMemo(()=>{const e=(e=[])=>e.map(e=>({...e,id:ch(),action:()=>{N(!1),A(e.text)}})),t=[{id:"ask",icon:"❓",text:m("suggestionAskText"),action:async()=>{N(!1),b(m("suggestionAskUserMessage"),"user"),await Kd(400),b(m("suggestionAskBotReply"),"bot")}},{id:"buy",icon:"💰",text:m("suggestionBuyText"),action:()=>{N(!1),A(m("suggestionBuyText"))}}],n=c?e(c):t;return u?.length?[...n,...e(u)]:n},[c,u,m,b,A]),j=n.useMemo(()=>x.map(e=>({id:ch(),text:e,action:()=>{N(!1),A(e)}})),[x,A]),V=n.useCallback(()=>{const e=window.getSelection();e&&e.toString().length>0||r()},[r]);return e?t.jsx("div",{className:"chat-modal-overlay"+("bottom-left"===i?" chat-modal-overlay--left":""),onClick:V,role:"dialog","aria-modal":"true","aria-labelledby":"chat-modal-title",children:t.jsxs("div",{className:"chat-modal",style:o,onClick:e=>e.stopPropagation(),children:[t.jsx(rp,{onClose:r,isShowIcon:p,chatTitle:s,chatIcon:l}),t.jsx(Uv,{messages:g,isTyping:k,submittingActions:E,defaultSuggestions:z,followUpChips:j,showDefaultSuggestions:B||1===g.length,messagesContainerRef:F,messagesEndRef:D,onActionSubmit:(e,t,n,r)=>{C(e,t,n,r)},onActionCancel:q,onConfirmTx:S,onApproveTx:T,onActionButtonClick:H}),t.jsx(qv,{inputValue:M,setInputValue:I,isTyping:k,onSubmit:()=>{U()},inputRef:O})]})}):null},aA=({position:e,theme:r,defaultOpen:i,onOpen:o,onClose:s,chatTitle:a,welcomeMessage:c,customSuggestions:u,additionalSuggestions:l,buttonIcon:f,chatIcon:d,customChatButton:h,styleButtonChat:p,modalConfig:g,onTransaction:b})=>{const{account:w,chainId:y}=rh(),[v,A]=n.useState(i);n.useEffect(()=>{i&&o?.()},[]);const k=n.useCallback(()=>{A(!0),o?.()},[o]),x=n.useCallback(()=>{A(!1),s?.()},[s]),E=n.useCallback(()=>{v?x():k()},[v,k,x]);if(!Zd(w?.address||"")||!y)return null;if(Gd.length>0&&!Gd.includes(window.location.origin)&&!window.location.href.startsWith("http://localhost"))return null;const C={position:"fixed",["bottom-right"===e?"right":"left"]:r.offset?.x??20,bottom:r.offset?.y??20,zIndex:r.zIndex??9999};return t.jsxs("div",{style:{...C,...p},role:"complementary","aria-label":"Chat widget",children:[t.jsx(m,{buttonSize:r.buttonSize,onClick:E,customIcon:f,customChatButton:h}),t.jsx(sA,{modalConfig:g,isOpen:v,onClose:x,position:e,modalChatStyle:r.modalChatStyle,chatTitle:a,welcomeMessage:c,customSuggestions:u,additionalSuggestions:l,chatIcon:d,onTransaction:b})]})};e.ActionForm=Kh,e.ChatWidget=({position:e="bottom-right",theme:n={},defaultOpen:r=!1,onOpen:i,onClose:o,account:s,language:a="en",rpcUrls:c,chatTitle:u,welcomeMessage:l,customSuggestions:f,additionalSuggestions:h,buttonIcon:p,chatIcon:m,customChatButton:g,styleButtonChat:b,modalConfig:w,onTransaction:y})=>{if("undefined"==typeof window)return null;const v={position:e,theme:n,rpcUrls:c};return t.jsx(bh,{initialConfig:v,children:t.jsx(ih,{initialAccount:s,children:t.jsx(d,{initialLanguage:a,children:t.jsx(aA,{modalConfig:w,position:e,theme:n,defaultOpen:r,onOpen:i,onClose:o,chatTitle:u,welcomeMessage:l,customSuggestions:f,additionalSuggestions:h,buttonIcon:p,chatIcon:m,customChatButton:g,styleButtonChat:b,onTransaction:y})})})})},e.ConfigProvider=bh,e.ConnectProvider=ih,e.LanguageProvider=d,e.clearChat=function(){hh?.()},e.useAgent=vh,e.useAgentChat=Ch,e.useConfig=gh,e.useConnect=rh,e.useLanguage=h,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});