keyring-chatbot-agent-sdk-test 0.1.7 → 0.1.8

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,6 +1,6 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){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}.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:14px;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 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e5e7}.chat-modal-header-left{display:flex;align-items:center;gap:12px}.keyring-logo{width:32px;height:32px}.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{background:#fff;padding:12px 20px;display:flex;align-items:center;gap:10px;border-bottom:1px solid #e5e5e7}.user-avatar{width:20px;height:20px;border-radius:50%}.user-avatar img{border-radius:50%}.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:16px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px}.date-separator{text-align:center;font-size:12px;font-weight:600;color:#666;background:#e5e5e7;padding:6px 16px;border-radius:12px;align-self:center;width:fit-content;margin:8px auto}.message{display:flex;animation:messageSlide .3s ease;position:relative}@media(min-width:640px){.message:hover .message-reply-button{opacity:1}}@keyframes messageSlide{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-reply-button{position:absolute;top:50%;transform:translateY(-50%);background:#fff;border:1px solid #e5e5e7;border-radius:8px;padding:6px;cursor:pointer;opacity:0;transition:all .2s;box-shadow:0 2px 8px #0000001a;z-index:10}.message-bot .message-reply-button{right:20px}.message-user .message-reply-button{left:20px}.message-reply-button:hover{background:#f5f5f7;transform:translateY(-50%) scale(1.1)}.message-reply-button svg{display:block;width:16px;height:16px;color:#666}.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-reply-to{background:#0000000d;padding:8px 12px;border-radius:6px;margin-bottom:8px;border-left:3px solid #5b7fff}.message-bot .message-reply-to{background:#f5f5f7}.message-user .message-reply-to{background:#ffffff26;border-left-color:#ffffff80}.message-reply-to-label{font-size:11px;font-weight:600;margin-bottom:4px}.message-bot .message-reply-to-label{color:#5b7fff}.message-user .message-reply-to-label{color:#ffffffe6}.message-reply-to-text{font-size:12px;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.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:8px 16px;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;padding:8px 16px;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:8px 16px;border-radius:16px;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}.reply-preview{background:#f5f5f7;padding:10px 14px;border-radius:6px;border-left:3px solid #5b7fff;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.reply-preview-content{flex:1;min-width:0}.reply-preview-label{font-size:11px;color:#5b7fff;font-weight:600;margin-bottom:4px}.reply-preview-text{font-size:13px;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reply-preview-close{background:transparent;border:none;cursor:pointer;padding:2px;color:#999;transition:color .2s;flex-shrink:0}.reply-preview-close:hover{color:#666}.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:24px;outline:none;font-size:16px;color:#1a1a1d;transition:all .2s}.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:44px;height:44px;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:0;margin:0}}.action-status{margin-top:8px;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}.message-content{display:block;word-wrap:break-word;overflow-wrap:break-word;max-width:100%;overflow:hidden;font-size:inherit;line-height:1.5}.mc-line{min-height:1.2em;word-break:break-word}.mc-empty-line{height:.5em}.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{background:#f6f8fa;border:1px solid #d0d7de;border-radius:6px;margin:6px 0;overflow:hidden;max-width:100%}.mc-codeblock-lang{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}.action-form{background:#f8f9fb;border:1px solid #e2e6ea;border-radius:10px;padding:12px;margin-top:8px;margin-bottom:8px}.action-form-title{font-weight:600;font-size:.9em;margin-bottom:10px;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;margin-bottom:10px;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;margin-top:10px}.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;margin-bottom: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}.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{margin-bottom:10px;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}.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)}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
2
- import { jsx as G, Fragment as so, jsxs as Ae } from "react/jsx-runtime";
3
- import Ya, { useState as Xe, useEffect as ct, useCallback as Ie, createContext as ao, useContext as ro, memo as Ja, useMemo as zn, useRef as St } from "react";
2
+ import { jsx as G, Fragment as ao, jsxs as Ae } from "react/jsx-runtime";
3
+ import Ya, { useState as Xe, useEffect as ct, useCallback as Ie, createContext as ro, useContext as io, memo as Ja, useMemo as jn, useRef as St } from "react";
4
4
  const qa = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAYAAADG4PRLAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfXSURBVHgB7Z1LbFRVGMe/c4YCAmKrEFiQWIIrNm13RE0olLRuTCq4w4C6Mbopo9GltFsVpmxQN1pJ2MkjcSMESrsgYdd2w8rGkrCA8GjFVintzPH878wZjrfzujPTe88p3y+ZzMydOxO4//s9z3dvBTWB7sxsqyTqF2q5k4R8nUh06s2thQeTZyZ4qOwU0bqJFkHjv6fbZqhBBNVJIJqiASFUN94SExl98CeVEsONiBlZQEu4E8QW1kTUSAvJoahCRhLw4OnZkyzc6qItcnD087ahWvevScB3MrPty6QuKaJOYuJgpoXEgVqsUVbboef07PElUhMsXqy045j3ZB72V9uxooCHtMskoUaIXWYS6GMuLyFsVdqprAuFeEqoQWISp1JcLClgz3fadFPyEjHuIMWH1wfafglvXiEgEhb4X2K36RpzOrHpCic2K2KgFu8GsXgu0opKILzxfwIeygfMdmKcBJXAwVOPBu1tRRdacJ1/EuM6c1kSu8fSbXN4U7TAJZUdJMYHWmUud8K8CSyQrc87ilYYWOCzXLabGJ8oWmEgoJRygBivEFLsD57ZffqLdqNtkt2nv8hctl8qIXiVwVOE1k5KITqI8RTRjiSmnRg/EdTBAvpNa9UVecZpWEDfYQE9hwX0HBbQc1jAEFs2CLp2oi14dOxaR67DAoZ4c09L8XXHrhZyHRYwxFt71hdf9+5dT67DAlrs2Cq1gM+tbqd+77obZQEtju17qaZtLsECFji2byP1lXCZsMAvezcHyY2LuJ9mrSKbtShva5fZu3dDRVcJYfH5uVv/0tTdZbr/JEeuIHoyjxV5CA4+Duye7Skdq1JV9z87/g9NP8gGr5FpHunaWHd8w+9cmHhKV28/o6Tx0gIPd20IYlMUtza/+Pw8Pa6/C+HrBd/9SrtVF6zRuxiIWPXZ/k2RYxIySoNxhfUC0fAbLrhSrywQdZmdFV65vRi4sXs1HEjbAm9OLwWPHYUyAb9pC1zu+xe124TwjYjfbLwS0Bbv3K2ngRU0AiwIJwAesOxyJcMfOuZ98evftLDoXrrgjQuFpRgrgQU0Kl4YnBCwsDCw7kriNRJLm4E3Atou7ub06mR/EHE+JBROlHLiwQX/eHRr8JwUXhby86vkyvC79slxr+Biy2HKkD5dRyYFd2JC2IJN3V0qux9cp4mZKGuScqUvdCemFCjSYYkoU0pZH5rdh0NNAOwLV4rYjDiKDDcuWMAQEO/bqwtBXIteLqjY4yELWIJKFmTXkKfefzlIriD6yd/mE6kPOQbWCWpIU3Yg8UmquGcBG8DEyIsTi5QULGADwHV+cv5JcZUjCWKPgab3iLS7loY0CmkU2K5hkpUkxQOxClip3+gbSF6G3t0SCIhe6fd6vTEJYnOh4ZWEtQA8CDzKluQaMfEJmGS7aS0Tm4A+TDn7CGehnsMCNoGF5MpA9wU06bq9hPTG9uTdsd3zvPckuVLCeQHNyCBaVUZEZLRJLqJipNHOqONcfQjjvIBmnc0MFQGk72gkJyGi3cQG6IMmOZ3mfGpoaq38WttiMEWNg4fH+Y9fCbZHdWH4TrWh3N7CNLYNvIG9DSv2Z8ebO5sTFS9ye7grDBbBCvFsWwAOaEfE/0ZfcBKkKg5G4Xcr1a4QD0tIPNhbA6Z/CnDAPvjpL/pGL7pOP6h/CQdtvU/3b6KomKHepJvYBm+qaxxwYKzGzHMioYgypd1ntfSOdG3QGW0qsKRKg1Jf68/NqIVrs6GeDfZuDGKTfZXQQsSDipUNuD8zng/r/uHo1sA1l3OH+H2Xrkiy8a6/hdiHC0uAsQokMdUOsD0SD8vFd7GaYBIixNVKIrqK1w1KU2LUksSEL2iZLozLm4RoZ2FIN6nZlnp5oVtp9wtj8yYZMfUl5jx94YXvhRoR7boQ8dG+W4XLcDOb8l0elCV2XWhnti6UC+WITcB5x9LvUpS6ZA2XZrv8b48ticFZnOSibq2JCUS8ot0pkhrMurh4TaBNbBbY7Ov5ooC6L0pmeb+wv+vigdgEXI2LMmvBXKC5VonVp5kuSF+V+7I0A1gRrqG/oFcwfLCkenHiPjGV5kWbcS38WsbpMoLFq46zArJ4teGkgCxe7TgnIIsXDacEZPGi44yALF59OLEeiNaVbwupruCEBbJ49cPLSZ7DAnoOC+g5LKDnsICeI/VSxBwx3iIFC+gzM9qFqklifGVG5hTdIcZPlJqSQrEFektKTsicTF0mxkuyORqXY+k2JDFjxHiFrh4mtXYzQR0ocmqcGK8QUgzjORBwWcphrgf9Au4Tz4GAcKM6HT1DjCeIEbhPvCq20tgK/SFLNGReFwVkK/QDRWrIWB9YcXuHg5nHE3pjJzHOoT3kzGj61d32thWrETkS77ErdQ9oorU5EN6+QsC8eebSxDiFoNxHtus0lFwPHE1vGxHa1xLjBIh719PbSnbMKt7i6FDm0aAicZKYxIB4o+nXBst9XvUeVT2Zh/2K5M96x1ZiYiOfh+TS8IaV9qvpJmPdmdl2SeqG3rmdmFUHfU4kk6ViXphIf8ubXerqAqvThnLmWgWXGSbaH2OnvDWmVG6QhDhOTFMwwi2THC6sDtVMZAENebea7daJ7AAX/nUzprP98XqEM9QtoI0RUyjRqS2zg/Kxsp2YAFhYfnhMTeo3d5RQOsalLtcrms1//TyUbJOo0HUAAAAASUVORK5CYII=", za = "Keyring Agent", ja = "Close chat", Qa = "Message ....", Ka = "Send message", Xa = "Bot is typing", _a = "Can I help you with anything?", Za = "Reply to message", $a = "Replying to", er = "You", tr = "Keyring Agent", nr = "Cancel reply", or = "Ask a question", sr = "I have a question", ar = "Ask me anything", rr = "Buy trending token", ir = "Your wallet is connected but the chain is not supported for trading. Please switch to a supported chain to see trending tokens.", cr = "Please connect your wallet to see trending tokens.", lr = "⏳ Processing transaction...", dr = "✅ Transaction completed", ur = "❌ Action cancelled or failed", fr = "⏳ Transaction submitted. Waiting for confirmation...", mr = "✅ Transaction confirmed!", pr = "❌ Transaction reverted on-chain.", hr = "⚠️ Transaction submitted but confirmation timed out. Please check manually.", gr = "✅ Transaction successful!", wr = "❌ Transaction failed. Please try again.", br = "⚠️ No transaction handler configured.", yr = "⚠️ **Insufficient {symbol} for gas!** You have {balance} {symbol} but need ~{fee} {symbol} for the transaction fee. Please top up your wallet and try again.", Ar = "❌ Error: {message}", vr = "Confirm", kr = "Confirm swap", Tr = "Ready to proceed with the swap?", Cr = "⚠️ Unable to get swap estimation. Error: {error}", Er = "Cancel", xr = "Execute", Sr = "⏳ Processing...", Ir = "Balance:", Nr = "Token not found in your wallet.", Br = "You have no {symbol} balance in your wallet.", Fr = "Insufficient balance. Spendable: {balance} {symbol}", Rr = "{field} is required", Or = "Invalid address (0x + 40 hex chars)", Pr = "Must be a positive number", Dr = "Must be a valid number", Lr = "Open chat", Ur = "Open chat support", Mr = "This is the spendable balance of your wallet on {chain} chain. Please choose the coins you want to use for this trade.", Hr = "Sorry, I couldn't find any tokens in your wallet on {chain} chain. Please make sure you have some tokens to trade.", Wr = "Sorry, I could not fetch your wallet balance. Please try again.", Vr = "Sorry, I encountered an error fetching your wallet balance.", Gr = "Insufficient fee. Please ensure you have enough {symbol} to cover the transaction fees, or select a different token.", Yr = `Select the amount of {symbol} to use:
5
5
 
6
6
  Spendable: {balance} {symbol}`, Jr = `
@@ -553,18 +553,18 @@ If you want to send other NFTs, please provide the contract address, NFT ID`, Mc
553
553
  spendable: v1,
554
554
  welcomeMessage: k1,
555
555
  sendOtherNfts: T1
556
- }, Oo = {
556
+ }, Po = {
557
557
  en: Mc,
558
558
  ja: Fd,
559
559
  cn: C1
560
560
  };
561
- function Po(e, t) {
562
- return Oo[t]?.[e] ?? Oo.en[e] ?? e;
561
+ function Do(e, t) {
562
+ return Po[t]?.[e] ?? Po.en[e] ?? e;
563
563
  }
564
564
  function E1(e, t) {
565
565
  return e.replace(/\{(\w+)\}/g, (n, s) => t[s] ?? `{${s}}`);
566
566
  }
567
- const os = ao(
567
+ const os = ro(
568
568
  void 0
569
569
  ), x1 = ({
570
570
  children: e,
@@ -575,15 +575,15 @@ const os = ao(
575
575
  t && s(t);
576
576
  }, [t]);
577
577
  const o = Ie(
578
- (r) => Po(r, n),
578
+ (r) => Do(r, n),
579
579
  [n]
580
580
  ), a = Ie(
581
- (r, i) => E1(Po(r, n), i),
581
+ (r, i) => E1(Do(r, n), i),
582
582
  [n]
583
583
  );
584
584
  return /* @__PURE__ */ G(os.Provider, { value: { language: n, setLanguage: s, t: o, ti: a }, children: e });
585
585
  }, Sn = () => {
586
- const e = ro(os);
586
+ const e = io(os);
587
587
  if (!e)
588
588
  throw new Error("useLanguage must be used within a LanguageProvider");
589
589
  return e;
@@ -686,7 +686,7 @@ class pe extends Error {
686
686
  function as(e, t) {
687
687
  return t?.(e) ? e : e && typeof e == "object" && "cause" in e && e.cause !== void 0 ? as(e.cause, t) : t ? null : e;
688
688
  }
689
- class io extends pe {
689
+ class co extends pe {
690
690
  constructor({ max: t, min: n, signed: s, size: o, value: a }) {
691
691
  super(`Number "${a}" is not in safe ${o ? `${o * 8}-bit ${s ? "signed" : "unsigned"} ` : ""}integer range ${t ? `(${n} to ${t})` : `(above ${n})`}`, { name: "IntegerOutOfRangeError" });
692
692
  }
@@ -771,7 +771,7 @@ function fe(e, t = {}) {
771
771
  const r = typeof a == "bigint" && n ? -a - 1n : 0;
772
772
  if (a && o > a || o < r) {
773
773
  const l = typeof e == "bigint" ? "n" : "";
774
- throw new io({
774
+ throw new co({
775
775
  max: a ? `${a}${l}` : void 0,
776
776
  min: `${r}${l}`,
777
777
  signed: n,
@@ -788,7 +788,7 @@ function ls(e, t = {}) {
788
788
  return yt(n, t);
789
789
  }
790
790
  const R1 = /* @__PURE__ */ new TextEncoder();
791
- function co(e, t = {}) {
791
+ function lo(e, t = {}) {
792
792
  return typeof e == "number" || typeof e == "bigint" ? P1(e, t) : typeof e == "boolean" ? O1(e, t) : Yt(e) ? Rt(e, t) : ds(e, t);
793
793
  }
794
794
  function O1(e, t = {}) {
@@ -803,7 +803,7 @@ const ht = {
803
803
  a: 97,
804
804
  f: 102
805
805
  };
806
- function Do(e) {
806
+ function Lo(e) {
807
807
  if (e >= ht.zero && e <= ht.nine)
808
808
  return e - ht.zero;
809
809
  if (e >= ht.A && e <= ht.F)
@@ -818,7 +818,7 @@ function Rt(e, t = {}) {
818
818
  s.length % 2 && (s = `0${s}`);
819
819
  const o = s.length / 2, a = new Uint8Array(o);
820
820
  for (let r = 0, i = 0; r < o; r++) {
821
- const l = Do(s.charCodeAt(i++)), b = Do(s.charCodeAt(i++));
821
+ const l = Lo(s.charCodeAt(i++)), b = Lo(s.charCodeAt(i++));
822
822
  if (l === void 0 || b === void 0)
823
823
  throw new pe(`Invalid byte sequence ("${s[i - 2]}${s[i - 1]}" in "${s}").`);
824
824
  a[r] = l * 16 + b;
@@ -852,7 +852,7 @@ function Ht(e, t = {}) {
852
852
  function Cn(e, t = {}) {
853
853
  const n = Ht(e, t), s = Number(n);
854
854
  if (!Number.isSafeInteger(s))
855
- throw new io({
855
+ throw new co({
856
856
  max: `${Number.MAX_SAFE_INTEGER}`,
857
857
  min: `${Number.MIN_SAFE_INTEGER}`,
858
858
  signed: t.signed,
@@ -861,7 +861,7 @@ function Cn(e, t = {}) {
861
861
  });
862
862
  return s;
863
863
  }
864
- function lo(e, t) {
864
+ function uo(e, t) {
865
865
  return ({ exclude: n, format: s }) => ({
866
866
  exclude: n,
867
867
  format: (o, a) => {
@@ -884,7 +884,7 @@ const us = {
884
884
  "0x3": "eip4844",
885
885
  "0x4": "eip7702"
886
886
  };
887
- function uo(e, t) {
887
+ function fo(e, t) {
888
888
  const n = {
889
889
  ...e,
890
890
  blockHash: e.blockHash ? e.blockHash : null,
@@ -916,7 +916,7 @@ function uo(e, t) {
916
916
  }
917
917
  })(), n.type === "legacy" && (delete n.accessList, delete n.maxFeePerBlobGas, delete n.maxFeePerGas, delete n.maxPriorityFeePerGas, delete n.yParity), n.type === "eip2930" && (delete n.maxFeePerBlobGas, delete n.maxFeePerGas, delete n.maxPriorityFeePerGas), n.type === "eip1559" && delete n.maxFeePerBlobGas, n;
918
918
  }
919
- const D1 = /* @__PURE__ */ lo("transaction", uo);
919
+ const D1 = /* @__PURE__ */ uo("transaction", fo);
920
920
  function L1(e) {
921
921
  return e.map((t) => ({
922
922
  address: t.address,
@@ -928,7 +928,7 @@ function L1(e) {
928
928
  }));
929
929
  }
930
930
  function U1(e, t) {
931
- const n = (e.transactions ?? []).map((s) => typeof s == "string" ? s : uo(s));
931
+ const n = (e.transactions ?? []).map((s) => typeof s == "string" ? s : fo(s));
932
932
  return {
933
933
  ...e,
934
934
  baseFeePerGas: e.baseFeePerGas ? BigInt(e.baseFeePerGas) : null,
@@ -947,7 +947,7 @@ function U1(e, t) {
947
947
  totalDifficulty: e.totalDifficulty ? BigInt(e.totalDifficulty) : null
948
948
  };
949
949
  }
950
- const M1 = /* @__PURE__ */ lo("block", U1);
950
+ const M1 = /* @__PURE__ */ uo("block", U1);
951
951
  function H1(e, { args: t, eventName: n } = {}) {
952
952
  return {
953
953
  ...e,
@@ -980,7 +980,7 @@ function V1(e, t) {
980
980
  };
981
981
  return e.blobGasPrice && (n.blobGasPrice = BigInt(e.blobGasPrice)), e.blobGasUsed && (n.blobGasUsed = BigInt(e.blobGasUsed)), n;
982
982
  }
983
- const G1 = /* @__PURE__ */ lo("transactionReceipt", V1), Y1 = {
983
+ const G1 = /* @__PURE__ */ uo("transactionReceipt", V1), Y1 = {
984
984
  legacy: "0x0",
985
985
  eip2930: "0x1",
986
986
  eip1559: "0x2",
@@ -1019,7 +1019,7 @@ function z1(e) {
1019
1019
  function Dt(e) {
1020
1020
  return `0x${e.reduce((t, n) => t + n.replace("0x", ""), "")}`;
1021
1021
  }
1022
- class Lo extends pe {
1022
+ class Uo extends pe {
1023
1023
  constructor({ offset: t }) {
1024
1024
  super(`Offset \`${t}\` cannot be negative.`, {
1025
1025
  name: "NegativeOffsetError"
@@ -1059,7 +1059,7 @@ const K1 = {
1059
1059
  },
1060
1060
  decrementPosition(e) {
1061
1061
  if (e < 0)
1062
- throw new Lo({ offset: e });
1062
+ throw new Uo({ offset: e });
1063
1063
  const t = this.position - e;
1064
1064
  this.assertPosition(t), this.position = t;
1065
1065
  },
@@ -1068,7 +1068,7 @@ const K1 = {
1068
1068
  },
1069
1069
  incrementPosition(e) {
1070
1070
  if (e < 0)
1071
- throw new Lo({ offset: e });
1071
+ throw new Uo({ offset: e });
1072
1072
  const t = this.position + e;
1073
1073
  this.assertPosition(t), this.position = t;
1074
1074
  },
@@ -1293,7 +1293,7 @@ function ws(e) {
1293
1293
  function af(e) {
1294
1294
  return e instanceof Uint8Array || ArrayBuffer.isView(e) && e.constructor.name === "Uint8Array";
1295
1295
  }
1296
- function Uo(e) {
1296
+ function Mo(e) {
1297
1297
  if (!Number.isSafeInteger(e) || e < 0)
1298
1298
  throw new Error("positive integer expected, got " + e);
1299
1299
  }
@@ -1337,19 +1337,19 @@ function df(e) {
1337
1337
  e[t] = lf(e[t]);
1338
1338
  return e;
1339
1339
  }
1340
- const Mo = cf ? (e) => e : df;
1340
+ const Ho = cf ? (e) => e : df;
1341
1341
  function uf(e) {
1342
1342
  if (typeof e != "string")
1343
1343
  throw new Error("string expected");
1344
1344
  return new Uint8Array(new TextEncoder().encode(e));
1345
1345
  }
1346
- function fo(e) {
1346
+ function mo(e) {
1347
1347
  return typeof e == "string" && (e = uf(e)), nn(e), e;
1348
1348
  }
1349
1349
  class ys {
1350
1350
  }
1351
1351
  function As(e) {
1352
- const t = (s) => e().update(fo(s)).digest(), n = e();
1352
+ const t = (s) => e().update(mo(s)).digest(), n = e();
1353
1353
  return t.outputLen = n.outputLen, t.blockLen = n.blockLen, t.create = () => e(), t;
1354
1354
  }
1355
1355
  function ff(e, t, n, s) {
@@ -1369,7 +1369,7 @@ class hf extends ys {
1369
1369
  super(), this.finished = !1, this.length = 0, this.pos = 0, this.destroyed = !1, this.blockLen = t, this.outputLen = n, this.padOffset = s, this.isLE = o, this.buffer = new Uint8Array(t), this.view = On(this.buffer);
1370
1370
  }
1371
1371
  update(t) {
1372
- En(this), t = fo(t), nn(t);
1372
+ En(this), t = mo(t), nn(t);
1373
1373
  const { view: n, buffer: s, blockLen: o } = this, a = t.length;
1374
1374
  for (let r = 0; r < a; ) {
1375
1375
  const i = Math.min(o - this.pos, a - r);
@@ -1424,9 +1424,9 @@ const At = /* @__PURE__ */ Uint32Array.from([
1424
1424
  2600822924,
1425
1425
  528734635,
1426
1426
  1541459225
1427
- ]), hn = /* @__PURE__ */ BigInt(2 ** 32 - 1), Ho = /* @__PURE__ */ BigInt(32);
1427
+ ]), hn = /* @__PURE__ */ BigInt(2 ** 32 - 1), Wo = /* @__PURE__ */ BigInt(32);
1428
1428
  function gf(e, t = !1) {
1429
- return t ? { h: Number(e & hn), l: Number(e >> Ho & hn) } : { h: Number(e >> Ho & hn) | 0, l: Number(e & hn) | 0 };
1429
+ return t ? { h: Number(e & hn), l: Number(e >> Wo & hn) } : { h: Number(e >> Wo & hn) | 0, l: Number(e & hn) | 0 };
1430
1430
  }
1431
1431
  function wf(e, t = !1) {
1432
1432
  const n = e.length;
@@ -1538,7 +1538,7 @@ class Tf extends hf {
1538
1538
  }
1539
1539
  const Cf = /* @__PURE__ */ As(() => new Tf()), Ef = Cf;
1540
1540
  function xf(e, t) {
1541
- return Ef(Yt(e, { strict: !1 }) ? co(e) : e);
1541
+ return Ef(Yt(e, { strict: !1 }) ? lo(e) : e);
1542
1542
  }
1543
1543
  function Sf(e) {
1544
1544
  const { commitment: t, version: n = 1 } = e, s = e.to ?? (typeof t == "string" ? "hex" : "bytes"), o = xf(t);
@@ -1554,9 +1554,9 @@ function If(e) {
1554
1554
  }));
1555
1555
  return o;
1556
1556
  }
1557
- const Wo = 6, vs = 32, mo = 4096, ks = vs * mo, Vo = ks * Wo - // terminator byte (0x80).
1557
+ const Vo = 6, vs = 32, po = 4096, ks = vs * po, Go = ks * Vo - // terminator byte (0x80).
1558
1558
  1 - // zero byte (0x00) appended to each field element.
1559
- 1 * mo * Wo, Ts = 1;
1559
+ 1 * po * Vo, Ts = 1;
1560
1560
  class Nf extends pe {
1561
1561
  constructor({ maxSize: t, size: n }) {
1562
1562
  super("Blob size is too large.", {
@@ -1593,9 +1593,9 @@ function Rf(e) {
1593
1593
  const t = e.to ?? (typeof e.data == "string" ? "hex" : "bytes"), n = typeof e.data == "string" ? Rt(e.data) : e.data, s = _e(n);
1594
1594
  if (!s)
1595
1595
  throw new Cs();
1596
- if (s > Vo)
1596
+ if (s > Go)
1597
1597
  throw new Nf({
1598
- maxSize: Vo,
1598
+ maxSize: Go,
1599
1599
  size: s
1600
1600
  });
1601
1601
  const o = [];
@@ -1603,7 +1603,7 @@ function Rf(e) {
1603
1603
  for (; a; ) {
1604
1604
  const i = fs(new Uint8Array(ks));
1605
1605
  let l = 0;
1606
- for (; l < mo; ) {
1606
+ for (; l < po; ) {
1607
1607
  const b = n.slice(r, r + (vs - 1));
1608
1608
  if (i.pushByte(0), i.pushBytes(b), b.length < 31) {
1609
1609
  i.pushByte(128), a = !1;
@@ -1676,7 +1676,7 @@ Object.defineProperty(Pt, "nodeMessage", {
1676
1676
  writable: !0,
1677
1677
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
1678
1678
  });
1679
- class jn extends pe {
1679
+ class Qn extends pe {
1680
1680
  constructor({ cause: t, maxFeePerGas: n } = {}) {
1681
1681
  super(`The fee cap (\`maxFeePerGas\`${n ? ` = ${Bt(n)}` : ""} gwei) cannot be lower than the block base fee.`, {
1682
1682
  cause: t,
@@ -1684,24 +1684,24 @@ class jn extends pe {
1684
1684
  });
1685
1685
  }
1686
1686
  }
1687
- Object.defineProperty(jn, "nodeMessage", {
1687
+ Object.defineProperty(Qn, "nodeMessage", {
1688
1688
  enumerable: !0,
1689
1689
  configurable: !0,
1690
1690
  writable: !0,
1691
1691
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
1692
1692
  });
1693
- class Qn extends pe {
1693
+ class Kn extends pe {
1694
1694
  constructor({ cause: t, nonce: n } = {}) {
1695
1695
  super(`Nonce provided for the transaction ${n ? `(${n}) ` : ""}is higher than the next one expected.`, { cause: t, name: "NonceTooHighError" });
1696
1696
  }
1697
1697
  }
1698
- Object.defineProperty(Qn, "nodeMessage", {
1698
+ Object.defineProperty(Kn, "nodeMessage", {
1699
1699
  enumerable: !0,
1700
1700
  configurable: !0,
1701
1701
  writable: !0,
1702
1702
  value: /nonce too high/
1703
1703
  });
1704
- class Kn extends pe {
1704
+ class Xn extends pe {
1705
1705
  constructor({ cause: t, nonce: n } = {}) {
1706
1706
  super([
1707
1707
  `Nonce provided for the transaction ${n ? `(${n}) ` : ""}is lower than the current nonce of the account.`,
@@ -1710,24 +1710,24 @@ class Kn extends pe {
1710
1710
  `), { cause: t, name: "NonceTooLowError" });
1711
1711
  }
1712
1712
  }
1713
- Object.defineProperty(Kn, "nodeMessage", {
1713
+ Object.defineProperty(Xn, "nodeMessage", {
1714
1714
  enumerable: !0,
1715
1715
  configurable: !0,
1716
1716
  writable: !0,
1717
1717
  value: /nonce too low|transaction already imported|already known/
1718
1718
  });
1719
- class Xn extends pe {
1719
+ class _n extends pe {
1720
1720
  constructor({ cause: t, nonce: n } = {}) {
1721
1721
  super(`Nonce provided for the transaction ${n ? `(${n}) ` : ""}exceeds the maximum allowed nonce.`, { cause: t, name: "NonceMaxValueError" });
1722
1722
  }
1723
1723
  }
1724
- Object.defineProperty(Xn, "nodeMessage", {
1724
+ Object.defineProperty(_n, "nodeMessage", {
1725
1725
  enumerable: !0,
1726
1726
  configurable: !0,
1727
1727
  writable: !0,
1728
1728
  value: /nonce has max value/
1729
1729
  });
1730
- class _n extends pe {
1730
+ class Zn extends pe {
1731
1731
  constructor({ cause: t } = {}) {
1732
1732
  super([
1733
1733
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -1748,13 +1748,13 @@ class _n extends pe {
1748
1748
  });
1749
1749
  }
1750
1750
  }
1751
- Object.defineProperty(_n, "nodeMessage", {
1751
+ Object.defineProperty(Zn, "nodeMessage", {
1752
1752
  enumerable: !0,
1753
1753
  configurable: !0,
1754
1754
  writable: !0,
1755
1755
  value: /insufficient funds|exceeds transaction sender account balance/
1756
1756
  });
1757
- class Zn extends pe {
1757
+ class $n extends pe {
1758
1758
  constructor({ cause: t, gas: n } = {}) {
1759
1759
  super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
1760
1760
  cause: t,
@@ -1762,13 +1762,13 @@ class Zn extends pe {
1762
1762
  });
1763
1763
  }
1764
1764
  }
1765
- Object.defineProperty(Zn, "nodeMessage", {
1765
+ Object.defineProperty($n, "nodeMessage", {
1766
1766
  enumerable: !0,
1767
1767
  configurable: !0,
1768
1768
  writable: !0,
1769
1769
  value: /intrinsic gas too high|gas limit reached/
1770
1770
  });
1771
- class $n extends pe {
1771
+ class eo extends pe {
1772
1772
  constructor({ cause: t, gas: n } = {}) {
1773
1773
  super(`The amount of gas ${n ? `(${n}) ` : ""}provided for the transaction is too low.`, {
1774
1774
  cause: t,
@@ -1776,13 +1776,13 @@ class $n extends pe {
1776
1776
  });
1777
1777
  }
1778
1778
  }
1779
- Object.defineProperty($n, "nodeMessage", {
1779
+ Object.defineProperty(eo, "nodeMessage", {
1780
1780
  enumerable: !0,
1781
1781
  configurable: !0,
1782
1782
  writable: !0,
1783
1783
  value: /intrinsic gas too low/
1784
1784
  });
1785
- class eo extends pe {
1785
+ class to extends pe {
1786
1786
  constructor({ cause: t }) {
1787
1787
  super("The transaction type is not supported for this chain.", {
1788
1788
  cause: t,
@@ -1790,7 +1790,7 @@ class eo extends pe {
1790
1790
  });
1791
1791
  }
1792
1792
  }
1793
- Object.defineProperty(eo, "nodeMessage", {
1793
+ Object.defineProperty(to, "nodeMessage", {
1794
1794
  enumerable: !0,
1795
1795
  configurable: !0,
1796
1796
  writable: !0,
@@ -1850,20 +1850,20 @@ for (let e = 0, t = Xt, n = 1, s = 0; e < 24; e++) {
1850
1850
  t = (t << Xt ^ (t >> Lf) * Mf) % Uf, t & Df && (o ^= Xt << (Xt << /* @__PURE__ */ BigInt(a)) - Xt);
1851
1851
  Ns.push(o);
1852
1852
  }
1853
- const Bs = wf(Ns, !0), Hf = Bs[0], Wf = Bs[1], Go = (e, t, n) => n > 32 ? Af(e, t, n) : bf(e, t, n), Yo = (e, t, n) => n > 32 ? vf(e, t, n) : yf(e, t, n);
1853
+ const Bs = wf(Ns, !0), Hf = Bs[0], Wf = Bs[1], Yo = (e, t, n) => n > 32 ? Af(e, t, n) : bf(e, t, n), Jo = (e, t, n) => n > 32 ? vf(e, t, n) : yf(e, t, n);
1854
1854
  function Vf(e, t = 24) {
1855
1855
  const n = new Uint32Array(10);
1856
1856
  for (let s = 24 - t; s < 24; s++) {
1857
1857
  for (let r = 0; r < 10; r++)
1858
1858
  n[r] = e[r] ^ e[r + 10] ^ e[r + 20] ^ e[r + 30] ^ e[r + 40];
1859
1859
  for (let r = 0; r < 10; r += 2) {
1860
- const i = (r + 8) % 10, l = (r + 2) % 10, b = n[l], O = n[l + 1], q = Go(b, O, 1) ^ n[i], v = Yo(b, O, 1) ^ n[i + 1];
1860
+ const i = (r + 8) % 10, l = (r + 2) % 10, b = n[l], O = n[l + 1], q = Yo(b, O, 1) ^ n[i], v = Jo(b, O, 1) ^ n[i + 1];
1861
1861
  for (let S = 0; S < 50; S += 10)
1862
1862
  e[r + S] ^= q, e[r + S + 1] ^= v;
1863
1863
  }
1864
1864
  let o = e[2], a = e[3];
1865
1865
  for (let r = 0; r < 24; r++) {
1866
- const i = Is[r], l = Go(o, a, i), b = Yo(o, a, i), O = Ss[r];
1866
+ const i = Is[r], l = Yo(o, a, i), b = Jo(o, a, i), O = Ss[r];
1867
1867
  o = e[O], a = e[O + 1], e[O] = l, e[O + 1] = b;
1868
1868
  }
1869
1869
  for (let r = 0; r < 50; r += 10) {
@@ -1876,10 +1876,10 @@ function Vf(e, t = 24) {
1876
1876
  }
1877
1877
  on(n);
1878
1878
  }
1879
- class po extends ys {
1879
+ class ho extends ys {
1880
1880
  // NOTE: we accept arguments in bytes instead of bits here.
1881
1881
  constructor(t, n, s, o = !1, a = 24) {
1882
- if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = n, this.outputLen = s, this.enableXOF = o, this.rounds = a, Uo(s), !(0 < t && t < 200))
1882
+ if (super(), this.pos = 0, this.posOut = 0, this.finished = !1, this.destroyed = !1, this.enableXOF = !1, this.blockLen = t, this.suffix = n, this.outputLen = s, this.enableXOF = o, this.rounds = a, Mo(s), !(0 < t && t < 200))
1883
1883
  throw new Error("only keccak-f1600 function is supported");
1884
1884
  this.state = new Uint8Array(200), this.state32 = rf(this.state);
1885
1885
  }
@@ -1887,10 +1887,10 @@ class po extends ys {
1887
1887
  return this._cloneInto();
1888
1888
  }
1889
1889
  keccak() {
1890
- Mo(this.state32), Vf(this.state32, this.rounds), Mo(this.state32), this.posOut = 0, this.pos = 0;
1890
+ Ho(this.state32), Vf(this.state32, this.rounds), Ho(this.state32), this.posOut = 0, this.pos = 0;
1891
1891
  }
1892
1892
  update(t) {
1893
- En(this), t = fo(t), nn(t);
1893
+ En(this), t = mo(t), nn(t);
1894
1894
  const { blockLen: n, state: s } = this, o = t.length;
1895
1895
  for (let a = 0; a < o; ) {
1896
1896
  const r = Math.min(n - this.pos, o - a);
@@ -1923,7 +1923,7 @@ class po extends ys {
1923
1923
  return this.writeInto(t);
1924
1924
  }
1925
1925
  xof(t) {
1926
- return Uo(t), this.xofInto(new Uint8Array(t));
1926
+ return Mo(t), this.xofInto(new Uint8Array(t));
1927
1927
  }
1928
1928
  digestInto(t) {
1929
1929
  if (bs(t, this), this.finished)
@@ -1938,12 +1938,12 @@ class po extends ys {
1938
1938
  }
1939
1939
  _cloneInto(t) {
1940
1940
  const { blockLen: n, suffix: s, outputLen: o, rounds: a, enableXOF: r } = this;
1941
- return t || (t = new po(n, s, o, r, a)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = s, t.outputLen = o, t.enableXOF = r, t.destroyed = this.destroyed, t;
1941
+ return t || (t = new ho(n, s, o, r, a)), t.state32.set(this.state32), t.pos = this.pos, t.posOut = this.posOut, t.finished = this.finished, t.rounds = a, t.suffix = s, t.outputLen = o, t.enableXOF = r, t.destroyed = this.destroyed, t;
1942
1942
  }
1943
1943
  }
1944
- const Gf = (e, t, n) => As(() => new po(t, e, n)), Yf = Gf(1, 136, 256 / 8);
1944
+ const Gf = (e, t, n) => As(() => new ho(t, e, n)), Yf = Gf(1, 136, 256 / 8);
1945
1945
  function Fs(e, t) {
1946
- const n = t || "hex", s = Yf(Yt(e, { strict: !1 }) ? co(e) : e);
1946
+ const n = t || "hex", s = Yf(Yt(e, { strict: !1 }) ? lo(e) : e);
1947
1947
  return n === "bytes" ? s : Vt(s);
1948
1948
  }
1949
1949
  const Pn = /* @__PURE__ */ new xs(8192);
@@ -1964,7 +1964,7 @@ function He(e, t) {
1964
1964
  const o = qf.test(e) ? e.toLowerCase() === e ? !0 : n ? Jf(e) === e : !0 : !1;
1965
1965
  return Dn.set(s, o), o;
1966
1966
  }
1967
- function ho(e, t, n, { strict: s } = {}) {
1967
+ function go(e, t, n, { strict: s } = {}) {
1968
1968
  return Yt(e, { strict: !1 }) ? jf(e, t, n, {
1969
1969
  strict: s
1970
1970
  }) : zf(e, t, n, {
@@ -2007,7 +2007,7 @@ function Qf(e) {
2007
2007
  if (s < 0)
2008
2008
  throw new In({ chainId: s });
2009
2009
  }
2010
- go(e);
2010
+ wo(e);
2011
2011
  }
2012
2012
  function Kf(e) {
2013
2013
  const { blobVersionedHashes: t } = e;
@@ -2015,7 +2015,7 @@ function Kf(e) {
2015
2015
  if (t.length === 0)
2016
2016
  throw new Cs();
2017
2017
  for (const n of t) {
2018
- const s = _e(n), o = Cn(ho(n, 0, 1));
2018
+ const s = _e(n), o = Cn(go(n, 0, 1));
2019
2019
  if (s !== 32)
2020
2020
  throw new Bf({ hash: n, size: s });
2021
2021
  if (o !== Ts)
@@ -2025,9 +2025,9 @@ function Kf(e) {
2025
2025
  });
2026
2026
  }
2027
2027
  }
2028
- go(e);
2028
+ wo(e);
2029
2029
  }
2030
- function go(e) {
2030
+ function wo(e) {
2031
2031
  const { chainId: t, maxPriorityFeePerGas: n, maxFeePerGas: s, to: o } = e;
2032
2032
  if (t <= 0)
2033
2033
  throw new In({ chainId: t });
@@ -2156,7 +2156,7 @@ function tm(e, t) {
2156
2156
  }
2157
2157
  function nm(e, t) {
2158
2158
  const { chainId: n, gas: s, nonce: o, to: a, value: r, maxFeePerGas: i, maxPriorityFeePerGas: l, accessList: b, data: O } = e;
2159
- go(e);
2159
+ wo(e);
2160
2160
  const q = Nn(b), v = [
2161
2161
  fe(n),
2162
2162
  o ? fe(o) : "0x",
@@ -2258,7 +2258,7 @@ const am = {
2258
2258
  transactions: e.transactions?.map((n) => {
2259
2259
  if (typeof n == "string")
2260
2260
  return n;
2261
- const s = uo(n);
2261
+ const s = fo(n);
2262
2262
  return s.typeHex === "0x7e" && (s.isSystemTx = n.isSystemTx, s.mint = n.mint ? Ht(n.mint) : void 0, s.sourceHash = n.sourceHash, s.type = "deposit"), s;
2263
2263
  }),
2264
2264
  stateRoot: e.stateRoot
@@ -2445,7 +2445,7 @@ const pm = /* @__PURE__ */ bt({
2445
2445
  }
2446
2446
  }
2447
2447
  });
2448
- function wo(e) {
2448
+ function bo(e) {
2449
2449
  return typeof e == "string" ? { address: e, type: "json-rpc" } : e;
2450
2450
  }
2451
2451
  class hm extends pe {
@@ -2461,7 +2461,7 @@ class hm extends pe {
2461
2461
  });
2462
2462
  }
2463
2463
  }
2464
- function to(e, { includeName: t = !1 } = {}) {
2464
+ function no(e, { includeName: t = !1 } = {}) {
2465
2465
  if (e.type !== "function" && e.type !== "event" && e.type !== "error")
2466
2466
  throw new Tm(e.type);
2467
2467
  return `${e.name}(${Ds(e.inputs, { includeName: t })})`;
@@ -2497,7 +2497,7 @@ class ym extends pe {
2497
2497
  `), { name: "AbiEncodingLengthMismatchError" });
2498
2498
  }
2499
2499
  }
2500
- class Jo extends pe {
2500
+ class qo extends pe {
2501
2501
  constructor(t, { docsPath: n } = {}) {
2502
2502
  super([
2503
2503
  `Function ${t ? `"${t}" ` : ""}not found on ABI.`,
@@ -2513,8 +2513,8 @@ class Am extends pe {
2513
2513
  constructor(t, n) {
2514
2514
  super("Found ambiguous types in overloaded ABI items.", {
2515
2515
  metaMessages: [
2516
- `\`${t.type}\` in \`${to(t.abiItem)}\`, and`,
2517
- `\`${n.type}\` in \`${to(n.abiItem)}\``,
2516
+ `\`${t.type}\` in \`${no(t.abiItem)}\`, and`,
2517
+ `\`${n.type}\` in \`${no(n.abiItem)}\``,
2518
2518
  "",
2519
2519
  "These types encode differently and cannot be distinguished at runtime.",
2520
2520
  "Remove one of the ambiguous items in the ABI."
@@ -2549,25 +2549,25 @@ class Tm extends pe {
2549
2549
  `), { name: "InvalidDefinitionTypeError" });
2550
2550
  }
2551
2551
  }
2552
- const Cm = (e) => Fs(co(e));
2552
+ const Cm = (e) => Fs(lo(e));
2553
2553
  function Em(e) {
2554
2554
  return Cm(e);
2555
2555
  }
2556
2556
  function xm(e, t) {
2557
2557
  return e.exec(t)?.groups;
2558
2558
  }
2559
- const qo = /^tuple(?<array>(\[(\d*)\])*)$/;
2560
- function no(e) {
2559
+ const zo = /^tuple(?<array>(\[(\d*)\])*)$/;
2560
+ function oo(e) {
2561
2561
  let t = e.type;
2562
- if (qo.test(e.type) && "components" in e) {
2562
+ if (zo.test(e.type) && "components" in e) {
2563
2563
  t = "(";
2564
2564
  const n = e.components.length;
2565
2565
  for (let o = 0; o < n; o++) {
2566
2566
  const a = e.components[o];
2567
- t += no(a), o < n - 1 && (t += ", ");
2567
+ t += oo(a), o < n - 1 && (t += ", ");
2568
2568
  }
2569
- const s = xm(qo, e.type);
2570
- return t += `)${s?.array || ""}`, no({
2569
+ const s = xm(zo, e.type);
2570
+ return t += `)${s?.array || ""}`, oo({
2571
2571
  ...e,
2572
2572
  type: t
2573
2573
  });
@@ -2579,7 +2579,7 @@ function Zt(e) {
2579
2579
  const n = e.length;
2580
2580
  for (let s = 0; s < n; s++) {
2581
2581
  const o = e[s];
2582
- t += no(o), s !== n - 1 && (t += ", ");
2582
+ t += oo(o), s !== n - 1 && (t += ", ");
2583
2583
  }
2584
2584
  return t;
2585
2585
  }
@@ -2618,7 +2618,7 @@ const Nm = (e) => {
2618
2618
  function Ls(e) {
2619
2619
  return Em(Nm(e));
2620
2620
  }
2621
- const Us = (e) => ho(Ls(e), 0, 4), Bm = /^(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)?$/;
2621
+ const Us = (e) => go(Ls(e), 0, 4), Bm = /^(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)?$/;
2622
2622
  function Fm(e, t) {
2623
2623
  if (e.length !== t.length)
2624
2624
  throw new ym({
@@ -2628,16 +2628,16 @@ function Fm(e, t) {
2628
2628
  const n = Rm({
2629
2629
  params: e,
2630
2630
  values: t
2631
- }), s = yo(n);
2631
+ }), s = Ao(n);
2632
2632
  return s.length === 0 ? "0x" : s;
2633
2633
  }
2634
2634
  function Rm({ params: e, values: t }) {
2635
2635
  const n = [];
2636
2636
  for (let s = 0; s < e.length; s++)
2637
- n.push(bo({ param: e[s], value: t[s] }));
2637
+ n.push(yo({ param: e[s], value: t[s] }));
2638
2638
  return n;
2639
2639
  }
2640
- function bo({ param: e, value: t }) {
2640
+ function yo({ param: e, value: t }) {
2641
2641
  const n = Wm(e.type);
2642
2642
  if (n) {
2643
2643
  const [s, o] = n;
@@ -2666,7 +2666,7 @@ function bo({ param: e, value: t }) {
2666
2666
  docsPath: "/docs/contract/encodeAbiParameters"
2667
2667
  });
2668
2668
  }
2669
- function yo(e) {
2669
+ function Ao(e) {
2670
2670
  let t = 0;
2671
2671
  for (let a = 0; a < e.length; a++) {
2672
2672
  const { dynamic: r, encoded: i } = e[a];
@@ -2698,11 +2698,11 @@ function Pm(e, { length: t, param: n }) {
2698
2698
  let o = !1;
2699
2699
  const a = [];
2700
2700
  for (let r = 0; r < e.length; r++) {
2701
- const i = bo({ param: n, value: e[r] });
2701
+ const i = yo({ param: n, value: e[r] });
2702
2702
  i.dynamic && (o = !0), a.push(i);
2703
2703
  }
2704
2704
  if (s || o) {
2705
- const r = yo(a);
2705
+ const r = Ao(a);
2706
2706
  if (s) {
2707
2707
  const i = fe(a.length, { size: 32 });
2708
2708
  return {
@@ -2746,7 +2746,7 @@ function Um(e, { signed: t, size: n = 256 }) {
2746
2746
  if (typeof n == "number") {
2747
2747
  const s = 2n ** (BigInt(n) - (t ? 1n : 0n)) - 1n, o = t ? -s - 1n : 0n;
2748
2748
  if (e > s || e < o)
2749
- throw new io({
2749
+ throw new co({
2750
2750
  max: s.toString(),
2751
2751
  min: o.toString(),
2752
2752
  signed: t,
@@ -2765,7 +2765,7 @@ function Um(e, { signed: t, size: n = 256 }) {
2765
2765
  function Mm(e) {
2766
2766
  const t = ls(e), n = Math.ceil(_e(t) / 32), s = [];
2767
2767
  for (let o = 0; o < n; o++)
2768
- s.push(Ct(ho(t, o * 32, (o + 1) * 32), {
2768
+ s.push(Ct(go(t, o * 32, (o + 1) * 32), {
2769
2769
  dir: "right"
2770
2770
  }));
2771
2771
  return {
@@ -2780,7 +2780,7 @@ function Hm(e, { param: t }) {
2780
2780
  let n = !1;
2781
2781
  const s = [];
2782
2782
  for (let o = 0; o < t.components.length; o++) {
2783
- const a = t.components[o], r = Array.isArray(e) ? o : a.name, i = bo({
2783
+ const a = t.components[o], r = Array.isArray(e) ? o : a.name, i = yo({
2784
2784
  param: a,
2785
2785
  value: e[r]
2786
2786
  });
@@ -2788,7 +2788,7 @@ function Hm(e, { param: t }) {
2788
2788
  }
2789
2789
  return {
2790
2790
  dynamic: n,
2791
- encoded: n ? yo(s) : Gt(s.map(({ encoded: o }) => o))
2791
+ encoded: n ? Ao(s) : Gt(s.map(({ encoded: o }) => o))
2792
2792
  };
2793
2793
  }
2794
2794
  function Wm(e) {
@@ -2818,7 +2818,7 @@ function Gm(e) {
2818
2818
  continue;
2819
2819
  if (n.every((b, O) => {
2820
2820
  const q = "inputs" in i && i.inputs[O];
2821
- return q ? oo(b, q) : !1;
2821
+ return q ? so(b, q) : !1;
2822
2822
  })) {
2823
2823
  if (r && "inputs" in r && r.inputs) {
2824
2824
  const b = Ms(i.inputs, r.inputs, n);
@@ -2836,7 +2836,7 @@ function Gm(e) {
2836
2836
  }
2837
2837
  return r || a[0];
2838
2838
  }
2839
- function oo(e, t) {
2839
+ function so(e, t) {
2840
2840
  const n = typeof e, s = t.type;
2841
2841
  switch (s) {
2842
2842
  case "address":
@@ -2848,7 +2848,7 @@ function oo(e, t) {
2848
2848
  case "string":
2849
2849
  return n === "string";
2850
2850
  default:
2851
- return s === "tuple" && "components" in t ? Object.values(t.components).every((o, a) => n === "object" && oo(Object.values(e)[a], o)) : /^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(s) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(s) ? n === "string" || e instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(s) ? Array.isArray(e) && e.every((o) => oo(o, {
2851
+ return s === "tuple" && "components" in t ? Object.values(t.components).every((o, a) => n === "object" && so(Object.values(e)[a], o)) : /^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(s) ? n === "number" || n === "bigint" : /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(s) ? n === "string" || e instanceof Uint8Array : /[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(s) ? Array.isArray(e) && e.every((o) => so(o, {
2852
2852
  ...t,
2853
2853
  // Pop off `[]` or `[M]` from end of type
2854
2854
  type: s.replace(/(\[[0-9]{0,}\])$/, "")
@@ -2865,7 +2865,7 @@ function Ms(e, t, n) {
2865
2865
  return r;
2866
2866
  }
2867
2867
  }
2868
- function zo(e) {
2868
+ function jo(e) {
2869
2869
  return e.reduce((t, { slot: n, value: s }) => `${t} ${n}: ${s}
2870
2870
  `, "");
2871
2871
  }
@@ -2877,14 +2877,14 @@ function Ym(e) {
2877
2877
  `), s.balance && (o += ` balance: ${s.balance}
2878
2878
  `), s.code && (o += ` code: ${s.code}
2879
2879
  `), s.state && (o += ` state:
2880
- `, o += zo(s.state)), s.stateDiff && (o += ` stateDiff:
2881
- `, o += zo(s.stateDiff)), o;
2880
+ `, o += jo(s.state)), s.stateDiff && (o += ` stateDiff:
2881
+ `, o += jo(s.stateDiff)), o;
2882
2882
  }, ` State Override:
2883
2883
  `).slice(0, -1);
2884
2884
  }
2885
2885
  class Jm extends pe {
2886
2886
  constructor(t, { account: n, docsPath: s, chain: o, data: a, gas: r, gasPrice: i, maxFeePerGas: l, maxPriorityFeePerGas: b, nonce: O, to: q, value: v, stateOverride: S }) {
2887
- const B = n ? wo(n) : void 0;
2887
+ const B = n ? bo(n) : void 0;
2888
2888
  let x = hs({
2889
2889
  from: B?.address,
2890
2890
  to: q,
@@ -2925,10 +2925,10 @@ function qm(e, t) {
2925
2925
  }) : Pt.nodeMessage.test(n) ? new Pt({
2926
2926
  cause: e,
2927
2927
  maxFeePerGas: t?.maxFeePerGas
2928
- }) : jn.nodeMessage.test(n) ? new jn({
2928
+ }) : Qn.nodeMessage.test(n) ? new Qn({
2929
2929
  cause: e,
2930
2930
  maxFeePerGas: t?.maxFeePerGas
2931
- }) : Qn.nodeMessage.test(n) ? new Qn({ cause: e, nonce: t?.nonce }) : Kn.nodeMessage.test(n) ? new Kn({ cause: e, nonce: t?.nonce }) : Xn.nodeMessage.test(n) ? new Xn({ cause: e, nonce: t?.nonce }) : _n.nodeMessage.test(n) ? new _n({ cause: e }) : Zn.nodeMessage.test(n) ? new Zn({ cause: e, gas: t?.gas }) : $n.nodeMessage.test(n) ? new $n({ cause: e, gas: t?.gas }) : eo.nodeMessage.test(n) ? new eo({ cause: e }) : sn.nodeMessage.test(n) ? new sn({
2931
+ }) : Kn.nodeMessage.test(n) ? new Kn({ cause: e, nonce: t?.nonce }) : Xn.nodeMessage.test(n) ? new Xn({ cause: e, nonce: t?.nonce }) : _n.nodeMessage.test(n) ? new _n({ cause: e, nonce: t?.nonce }) : Zn.nodeMessage.test(n) ? new Zn({ cause: e }) : $n.nodeMessage.test(n) ? new $n({ cause: e, gas: t?.gas }) : eo.nodeMessage.test(n) ? new eo({ cause: e, gas: t?.gas }) : to.nodeMessage.test(n) ? new to({ cause: e }) : sn.nodeMessage.test(n) ? new sn({
2932
2932
  cause: e,
2933
2933
  maxFeePerGas: t?.maxFeePerGas,
2934
2934
  maxPriorityFeePerGas: t?.maxPriorityFeePerGas
@@ -2959,7 +2959,7 @@ function jm(e, { format: t }) {
2959
2959
  return s(o), n;
2960
2960
  }
2961
2961
  function Qm(e) {
2962
- const { account: t, maxFeePerGas: n, maxPriorityFeePerGas: s, to: o } = e, a = t ? wo(t) : void 0;
2962
+ const { account: t, maxFeePerGas: n, maxPriorityFeePerGas: s, to: o } = e, a = t ? bo(t) : void 0;
2963
2963
  if (a && !He(a.address))
2964
2964
  throw new mt({ address: a.address });
2965
2965
  if (o && !He(o))
@@ -2973,7 +2973,7 @@ async function Km(e, t) {
2973
2973
  const { account: n = e.account } = t;
2974
2974
  if (!n)
2975
2975
  throw new hm();
2976
- const s = wo(n);
2976
+ const s = bo(n);
2977
2977
  try {
2978
2978
  const { accessList: o, blockNumber: a, blockTag: r, data: i, gas: l, gasPrice: b, maxFeePerGas: O, maxPriorityFeePerGas: q, nonce: v, to: S, value: B, ...x } = t, he = (typeof a == "bigint" ? fe(a) : void 0) || r;
2979
2979
  Qm(t);
@@ -3009,9 +3009,9 @@ async function Km(e, t) {
3009
3009
  }
3010
3010
  const Xm = {
3011
3011
  fees: {
3012
- estimateFeesPerGas: jo,
3012
+ estimateFeesPerGas: Qo,
3013
3013
  async maxPriorityFeePerGas({ block: e, client: t, request: n }) {
3014
- const s = await jo({
3014
+ const s = await Qo({
3015
3015
  block: e,
3016
3016
  client: t,
3017
3017
  multiply: (o) => o,
@@ -3022,7 +3022,7 @@ const Xm = {
3022
3022
  }
3023
3023
  }
3024
3024
  };
3025
- async function jo({ client: e, multiply: t, request: n, type: s }) {
3025
+ async function Qo({ client: e, multiply: t, request: n, type: s }) {
3026
3026
  try {
3027
3027
  const o = await Km(e, {
3028
3028
  ...n,
@@ -3166,7 +3166,7 @@ const _m = /* @__PURE__ */ bt({
3166
3166
  blockCreated: 25770160
3167
3167
  }
3168
3168
  }
3169
- }), Qo = "/docs/contract/encodeFunctionData";
3169
+ }), Ko = "/docs/contract/encodeFunctionData";
3170
3170
  function tp(e) {
3171
3171
  const { abi: t, args: n, functionName: s } = e;
3172
3172
  let o = t[0];
@@ -3177,14 +3177,14 @@ function tp(e) {
3177
3177
  name: s
3178
3178
  });
3179
3179
  if (!a)
3180
- throw new Jo(s, { docsPath: Qo });
3180
+ throw new qo(s, { docsPath: Ko });
3181
3181
  o = a;
3182
3182
  }
3183
3183
  if (o.type !== "function")
3184
- throw new Jo(void 0, { docsPath: Qo });
3184
+ throw new qo(void 0, { docsPath: Ko });
3185
3185
  return {
3186
3186
  abi: [o],
3187
- functionName: Us(to(o))
3187
+ functionName: Us(no(o))
3188
3188
  };
3189
3189
  }
3190
3190
  function Et(e) {
@@ -3399,10 +3399,10 @@ function wt(e, t) {
3399
3399
  s = s.padEnd(t, "0");
3400
3400
  return BigInt(`${o ? "-" : ""}${n}${s}`);
3401
3401
  }
3402
- const hp = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Ge = "0x0000000000000000000000000000000000000000", Ws = ao(
3402
+ const hp = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Ge = "0x0000000000000000000000000000000000000000", Ws = ro(
3403
3403
  void 0
3404
3404
  ), Bn = () => {
3405
- const e = ro(Ws);
3405
+ const e = io(Ws);
3406
3406
  if (!e)
3407
3407
  throw new Error("useConnect must be used within ConnectProvider");
3408
3408
  return {
@@ -3434,7 +3434,7 @@ const hp = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Ge = "0x000000000000000
3434
3434
  l.value = r, document.body.appendChild(l), l.select(), document.execCommand("copy"), l.remove(), i();
3435
3435
  }
3436
3436
  }, [e]);
3437
- return /* @__PURE__ */ G(so, { children: He(e || "") && /* @__PURE__ */ Ae("div", { className: "chat-user-info", children: [
3437
+ return /* @__PURE__ */ G(ao, { children: He(e || "") && /* @__PURE__ */ Ae("div", { className: "chat-user-info", children: [
3438
3438
  t && ft[t]?.logo && /* @__PURE__ */ G("div", { className: "user-avatar", children: /* @__PURE__ */ G(
3439
3439
  "img",
3440
3440
  {
@@ -3493,7 +3493,7 @@ const hp = "0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", Ge = "0x000000000000000
3493
3493
  }
3494
3494
  )
3495
3495
  ] }) });
3496
- }, bp = "chat_widget_messages", Ao = bp, gn = 200, yp = () => Math.random().toString(36).substring(2, 12), Vs = "welcome-message";
3496
+ }, bp = "chat_widget_messages", vo = bp, gn = 200, yp = () => Math.random().toString(36).substring(2, 12), Vs = "welcome-message";
3497
3497
  function Ln(e) {
3498
3498
  return [
3499
3499
  {
@@ -3507,44 +3507,44 @@ function Ln(e) {
3507
3507
  function Ap(e, t) {
3508
3508
  return e && t ? `${e}_${t}` : "";
3509
3509
  }
3510
- function Ko(e) {
3510
+ function Xo(e) {
3511
3511
  return e.map((t) => ({
3512
3512
  ...t,
3513
3513
  timestamp: new Date(t.timestamp)
3514
3514
  }));
3515
3515
  }
3516
- function Xo() {
3517
- const e = Ft.getItem(Ao);
3516
+ function _o() {
3517
+ const e = Ft.getItem(vo);
3518
3518
  if (!e) return null;
3519
3519
  try {
3520
3520
  const t = JSON.parse(e);
3521
3521
  if (t && t.owner !== void 0 && Array.isArray(t.messages))
3522
3522
  return {
3523
3523
  owner: t.owner,
3524
- messages: Ko(t.messages)
3524
+ messages: Xo(t.messages)
3525
3525
  };
3526
3526
  if (Array.isArray(t))
3527
- return { owner: "", messages: Ko(t) };
3527
+ return { owner: "", messages: Xo(t) };
3528
3528
  } catch {
3529
3529
  }
3530
3530
  return null;
3531
3531
  }
3532
3532
  function wn(e, t) {
3533
- Ft.setItem(Ao, JSON.stringify({ owner: e, messages: t }));
3533
+ Ft.setItem(vo, JSON.stringify({ owner: e, messages: t }));
3534
3534
  }
3535
3535
  function vp() {
3536
- const { account: e } = Bn(), { t } = Sn(), n = Ap(e?.address, e?.chainId), s = zn(
3536
+ const { account: e } = Bn(), { t } = Sn(), n = Ap(e?.address, e?.chainId), s = jn(
3537
3537
  () => Ln(t("welcomeMessage")),
3538
3538
  [t]
3539
3539
  ), [o, a] = Xe(() => n || "pending"), [r, i] = Xe(() => {
3540
- const x = Xo();
3540
+ const x = _o();
3541
3541
  return n ? x && x.owner === n ? x.messages : Ln(t("welcomeMessage")) : x?.messages ?? Ln(t("welcomeMessage"));
3542
3542
  });
3543
3543
  if (o === "pending" && n) {
3544
- const x = Xo();
3544
+ const x = _o();
3545
3545
  x && x.owner === n ? i(x.messages) : wn(n, r), a(n);
3546
3546
  } else o !== "pending" && n && o !== n && (i(s), wn(n, s), a(n));
3547
- const l = zn(
3547
+ const l = jn(
3548
3548
  () => r.map(
3549
3549
  (x) => x.id === Vs ? { ...x, text: t("welcomeMessage") } : x
3550
3550
  ),
@@ -3556,7 +3556,7 @@ function vp() {
3556
3556
  const x = [];
3557
3557
  for (let k = 0; k < Ft.length; k++) {
3558
3558
  const he = Ft.key(k);
3559
- he && he.startsWith(Ao + "_") && x.push(he);
3559
+ he && he.startsWith(vo + "_") && x.push(he);
3560
3560
  }
3561
3561
  x.forEach((k) => Ft.removeItem(k));
3562
3562
  }, []);
@@ -3609,8 +3609,8 @@ function vp() {
3609
3609
  clearMessagesById: B
3610
3610
  };
3611
3611
  }
3612
- const Gs = ao(void 0), kp = () => {
3613
- const e = ro(Gs);
3612
+ const Gs = ro(void 0), kp = () => {
3613
+ const e = io(Gs);
3614
3614
  if (!e)
3615
3615
  throw new Error("useConfig must be used within ConfigProvider");
3616
3616
  return e;
@@ -3618,7 +3618,7 @@ const Gs = ao(void 0), kp = () => {
3618
3618
  children: e,
3619
3619
  initialConfig: t
3620
3620
  }) => /* @__PURE__ */ G(Gs.Provider, { value: { config: t || null }, children: e });
3621
- var Cp = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Un = Math.ceil, nt = Math.floor, Ke = "[BigNumber Error] ", _o = Ke + "Number primitive has more than 15 significant digits: ", it = 1e14, we = 14, Mn = 9007199254740991, Hn = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], kt = 1e7, We = 1e9;
3621
+ var Cp = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, Un = Math.ceil, nt = Math.floor, Ke = "[BigNumber Error] ", Zo = Ke + "Number primitive has more than 15 significant digits: ", it = 1e14, we = 14, Mn = 9007199254740991, Hn = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], kt = 1e7, We = 1e9;
3622
3622
  function Ys(e) {
3623
3623
  var t, n, s, o = y.prototype = { constructor: y, toString: null, valueOf: null }, a = new y(1), r = 20, i = 4, l = -7, b = 21, O = -1e7, q = 1e7, v = !1, S = 1, B = 0, x = {
3624
3624
  prefix: "",
@@ -3657,7 +3657,7 @@ function Ys(e) {
3657
3657
  if (I = String(c), h = typeof c == "number") {
3658
3658
  if (c * 0 != 0) return s(N, I, h, d);
3659
3659
  if (N.s = 1 / c < 0 ? (I = I.slice(1), -1) : 1, y.DEBUG && I.replace(/^0\.0*|\./, "").length > 15)
3660
- throw Error(_o + c);
3660
+ throw Error(Zo + c);
3661
3661
  } else
3662
3662
  N.s = I.charCodeAt(0) === 45 ? (I = I.slice(1), -1) : 1;
3663
3663
  for (m = k.slice(0, d), g = E = 0, w = I.length; E < w; E++)
@@ -3679,7 +3679,7 @@ function Ys(e) {
3679
3679
  for (w = I.length; I.charCodeAt(--w) === 48; ) ;
3680
3680
  if (I = I.slice(E, ++w)) {
3681
3681
  if (w -= E, h && y.DEBUG && w > 15 && (c > Mn || c !== nt(c)))
3682
- throw Error(_o + N.s * c);
3682
+ throw Error(Zo + N.s * c);
3683
3683
  if ((g = g - E - 1) > q)
3684
3684
  N.c = N.e = null;
3685
3685
  else if (g < O)
@@ -4385,7 +4385,7 @@ async function Qe(e) {
4385
4385
  };
4386
4386
  }
4387
4387
  }
4388
- async function Zo(e) {
4388
+ async function $o(e) {
4389
4389
  const { address: t, chain: n = "base" } = e;
4390
4390
  if (!t)
4391
4391
  throw new Error("Token address is required");
@@ -6084,9 +6084,9 @@ async function Jn(e) {
6084
6084
  return console.warn("getGasPrice failed:", o), new ie(0);
6085
6085
  }
6086
6086
  }
6087
- var ne = {}, tn = { exports: {} }, _p = tn.exports, $o;
6087
+ var ne = {}, tn = { exports: {} }, _p = tn.exports, es;
6088
6088
  function Zp() {
6089
- return $o || ($o = 1, (function(e, t) {
6089
+ return es || (es = 1, (function(e, t) {
6090
6090
  (function(n, s) {
6091
6091
  var o = "1.0.39", a = "", r = "?", i = "function", l = "undefined", b = "object", O = "string", q = "major", v = "model", S = "name", B = "type", x = "vendor", k = "version", he = "architecture", y = "console", J = "mobile", Q = "tablet", me = "smarttv", ge = "wearable", Ee = "embedded", c = 500, d = "Amazon", m = "Apple", C = "ASUS", u = "BlackBerry", g = "Browser", E = "Chrome", h = "Edge", w = "Firefox", I = "Google", N = "Huawei", F = "LG", X = "Microsoft", oe = "Motorola", de = "Opera", Ce = "Samsung", xe = "Sharp", j = "Sony", be = "Xiaomi", Be = "Zebra", qe = "Facebook", ze = "Chromium OS", st = "Mac OS", Ve = " Browser", at = function(H, L) {
6092
6092
  var D = {};
@@ -6167,10 +6167,10 @@ function Zp() {
6167
6167
  })(typeof window == "object" ? window : _p);
6168
6168
  })(tn, tn.exports)), tn.exports;
6169
6169
  }
6170
- var es;
6170
+ var ts;
6171
6171
  function $p() {
6172
- if (es) return ne;
6173
- es = 1, Object.defineProperty(ne, "__esModule", { value: !0 });
6172
+ if (ts) return ne;
6173
+ ts = 1, Object.defineProperty(ne, "__esModule", { value: !0 });
6174
6174
  function e(T) {
6175
6175
  return T && typeof T == "object" && "default" in T ? T.default : T;
6176
6176
  }
@@ -6495,19 +6495,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6495
6495
  };
6496
6496
  };
6497
6497
  function Oe(T) {
6498
- var f = T ? v(T) : S, p = f.device, P = f.browser, Y = f.engine, ye = f.os, Ue = f.ua, je = Ce(p.type), pn = je.isBrowser, Va = je.isMobile, Ga = je.isTablet, No = je.isSmartTV, Bo = je.isConsole, Fo = je.isWearable, Ro = je.isEmbedded;
6498
+ var f = T ? v(T) : S, p = f.device, P = f.browser, Y = f.engine, ye = f.os, Ue = f.ua, je = Ce(p.type), pn = je.isBrowser, Va = je.isMobile, Ga = je.isTablet, Bo = je.isSmartTV, Fo = je.isConsole, Ro = je.isWearable, Oo = je.isEmbedded;
6499
6499
  if (pn)
6500
6500
  return qe(pn, P, Y, ye, Ue);
6501
- if (No)
6502
- return st(No, Y, ye, Ue);
6503
6501
  if (Bo)
6504
- return Ve(Bo, Y, ye, Ue);
6502
+ return st(Bo, Y, ye, Ue);
6503
+ if (Fo)
6504
+ return Ve(Fo, Y, ye, Ue);
6505
6505
  if (Va || Ga)
6506
6506
  return ze(je, p, ye, Ue);
6507
- if (Fo)
6508
- return at(Fo, Y, ye, Ue);
6509
6507
  if (Ro)
6510
- return Fe(Ro, p, Y, ye, Ue);
6508
+ return at(Ro, Y, ye, Ue);
6509
+ if (Oo)
6510
+ return Fe(Oo, p, Y, ye, Ue);
6511
6511
  }
6512
6512
  var ve = function(f) {
6513
6513
  var p = f.type;
@@ -6676,7 +6676,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6676
6676
  isSamsungBrowser: ue(P)
6677
6677
  };
6678
6678
  }
6679
- var Le = lt(i), un = U(i), fn = Ut(i), js = K(i), Qs = z(a) || Je(), Ks = ae(a), mn = pt(i) || Je(), vo = ve(i), ko = Lt(i) || Je(), To = rt(i), Xs = rt(i), Co = H(b), Eo = _(b), xo = te(b) || Je(), _s = R(a), Zs = le(a), $s = se(a), ea = ee(a), So = V(a), ta = W(b), na = A(b), oa = re(a), sa = Te(a), aa = Re(a), ra = M(i), ia = Z(i), ca = Ne(l), la = Pe(l), da = Kt(O), ua = ke(a) || Ye(O), fa = Se(a), ma = ce(i), pa = dt(), ha = Je(), ga = xt(), wa = Qt(), ba = Ze(), ya = Ye(O), Aa = ke(a) && !Ye(O), va = L(b), ka = D(b), Ta = $(a), Ca = ue(a), Ea = function(f) {
6679
+ var Le = lt(i), un = U(i), fn = Ut(i), js = K(i), Qs = z(a) || Je(), Ks = ae(a), mn = pt(i) || Je(), ko = ve(i), To = Lt(i) || Je(), Co = rt(i), Xs = rt(i), Eo = H(b), xo = _(b), So = te(b) || Je(), _s = R(a), Zs = le(a), $s = se(a), ea = ee(a), Io = V(a), ta = W(b), na = A(b), oa = re(a), sa = Te(a), aa = Re(a), ra = M(i), ia = Z(i), ca = Ne(l), la = Pe(l), da = Kt(O), ua = ke(a) || Ye(O), fa = Se(a), ma = ce(i), pa = dt(), ha = Je(), ga = xt(), wa = Qt(), ba = Ze(), ya = Ye(O), Aa = ke(a) && !Ye(O), va = L(b), ka = D(b), Ta = $(a), Ca = ue(a), Ea = function(f) {
6680
6680
  if (!f || typeof f != "string") {
6681
6681
  console.error("No valid user agent string was provided");
6682
6682
  return;
@@ -6691,30 +6691,30 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6691
6691
  });
6692
6692
  }, xa = function(f) {
6693
6693
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6694
- return Co ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6694
+ return Eo ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6695
6695
  }, Sa = function(f) {
6696
6696
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6697
- return To ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6697
+ return Co ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6698
6698
  }, Ia = function(f) {
6699
6699
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6700
- return So ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6700
+ return Io ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6701
6701
  }, Na = function(f) {
6702
6702
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6703
- return xo ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6703
+ return So ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6704
6704
  }, Ba = function(f) {
6705
6705
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6706
6706
  return mn ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6707
6707
  }, Fa = function(f) {
6708
6708
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6709
- return ko ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6709
+ return To ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6710
6710
  }, Ra = function(f) {
6711
6711
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6712
- return Eo ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6712
+ return xo ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6713
6713
  }, Oa = function(f) {
6714
6714
  var p = f.renderWithFragment, P = f.children;
6715
6715
  f.viewClassName, f.style;
6716
6716
  var Y = m(f, ["renderWithFragment", "children", "viewClassName", "style"]);
6717
- return vo ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6717
+ return ko ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
6718
6718
  }, Pa = function(f) {
6719
6719
  var p = f.renderWithFragment, P = f.children, Y = m(f, ["renderWithFragment", "children"]);
6720
6720
  return Le ? p ? n.createElement(t.Fragment, null, P) : n.createElement("div", Y, P) : null;
@@ -6803,44 +6803,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
6803
6803
  };
6804
6804
  }, [Y]), p;
6805
6805
  }
6806
- function Io(T) {
6806
+ function No(T) {
6807
6807
  var f = T || window.navigator.userAgent;
6808
6808
  return v(f);
6809
6809
  }
6810
6810
  function Wa(T) {
6811
- var f = T || window.navigator.userAgent, p = Io(f), P = Mt(p);
6811
+ var f = T || window.navigator.userAgent, p = No(f), P = Mt(p);
6812
6812
  return [P, p];
6813
6813
  }
6814
- return ne.AndroidView = xa, ne.BrowserTypes = X, ne.BrowserView = Sa, ne.ConsoleView = Da, ne.CustomView = Ua, ne.IEView = Ia, ne.IOSView = Na, ne.MobileOnlyView = Oa, ne.MobileView = Ba, ne.OsTypes = oe, ne.SmartTVView = Pa, ne.TabletView = Fa, ne.WearableView = La, ne.WinPhoneView = Ra, ne.browserName = aa, ne.browserVersion = sa, ne.deviceDetect = Oe, ne.deviceType = ma, ne.engineName = ca, ne.engineVersion = la, ne.fullBrowserVersion = oa, ne.getSelectorsByUserAgent = Ea, ne.getUA = da, ne.isAndroid = Co, ne.isBrowser = To, ne.isChrome = _s, ne.isChromium = Ks, ne.isConsole = un, ne.isDesktop = Xs, ne.isEdge = ua, ne.isEdgeChromium = ya, ne.isElectron = ba, ne.isEmbedded = js, ne.isFirefox = Zs, ne.isIE = So, ne.isIOS = xo, ne.isIOS13 = pa, ne.isIPad13 = ha, ne.isIPhone13 = ga, ne.isIPod13 = wa, ne.isLegacyEdge = Aa, ne.isMIUI = Ta, ne.isMacOs = ka, ne.isMobile = mn, ne.isMobileOnly = vo, ne.isMobileSafari = Qs, ne.isOpera = ea, ne.isSafari = $s, ne.isSamsungBrowser = Ca, ne.isSmartTV = Le, ne.isTablet = ko, ne.isWearable = fn, ne.isWinPhone = Eo, ne.isWindows = va, ne.isYandex = fa, ne.mobileModel = ia, ne.mobileVendor = ra, ne.osName = na, ne.osVersion = ta, ne.parseUserAgent = v, ne.setUserAgent = xe, ne.useDeviceData = Io, ne.useDeviceSelectors = Wa, ne.useMobileOrientation = Ha, ne.withOrientationChange = Ma, ne;
6814
+ return ne.AndroidView = xa, ne.BrowserTypes = X, ne.BrowserView = Sa, ne.ConsoleView = Da, ne.CustomView = Ua, ne.IEView = Ia, ne.IOSView = Na, ne.MobileOnlyView = Oa, ne.MobileView = Ba, ne.OsTypes = oe, ne.SmartTVView = Pa, ne.TabletView = Fa, ne.WearableView = La, ne.WinPhoneView = Ra, ne.browserName = aa, ne.browserVersion = sa, ne.deviceDetect = Oe, ne.deviceType = ma, ne.engineName = ca, ne.engineVersion = la, ne.fullBrowserVersion = oa, ne.getSelectorsByUserAgent = Ea, ne.getUA = da, ne.isAndroid = Eo, ne.isBrowser = Co, ne.isChrome = _s, ne.isChromium = Ks, ne.isConsole = un, ne.isDesktop = Xs, ne.isEdge = ua, ne.isEdgeChromium = ya, ne.isElectron = ba, ne.isEmbedded = js, ne.isFirefox = Zs, ne.isIE = Io, ne.isIOS = So, ne.isIOS13 = pa, ne.isIPad13 = ha, ne.isIPhone13 = ga, ne.isIPod13 = wa, ne.isLegacyEdge = Aa, ne.isMIUI = Ta, ne.isMacOs = ka, ne.isMobile = mn, ne.isMobileOnly = ko, ne.isMobileSafari = Qs, ne.isOpera = ea, ne.isSafari = $s, ne.isSamsungBrowser = Ca, ne.isSmartTV = Le, ne.isTablet = To, ne.isWearable = fn, ne.isWinPhone = xo, ne.isWindows = va, ne.isYandex = fa, ne.mobileModel = ia, ne.mobileVendor = ra, ne.osName = na, ne.osVersion = ta, ne.parseUserAgent = v, ne.setUserAgent = xe, ne.useDeviceData = No, ne.useDeviceSelectors = Wa, ne.useMobileOrientation = Ha, ne.withOrientationChange = Ma, ne;
6815
6815
  }
6816
6816
  var Nt = $p();
6817
- const eh = void 0, th = [
6818
- "AIzaSyD1KVBBG-QxLey_u4ce8l1tieJqmodH2-w",
6819
- "AIzaSyBnlVDkMyKNqbTnSc-p08OLmoa3-fvLvrk",
6820
- "AIzaSyAiXlBwSu5SfnRuYpda1zdVmIXNCQ3PBSM",
6821
- "AIzaSyBXKcrdJUszqWgvJs7gWJR335-kGGpjyXI",
6822
- "AIzaSyBj1X_Ip3xJomjN1lQ9q0WHxEyFJvAd_4Q",
6823
- "AIzaSyBlag_M5F8dC5YIcNWOF3g5xv0edVuiHQA",
6824
- "AIzaSyD9sPjc0kkFHI0XP2INhQsVYC27f8qhHzE",
6825
- "AIzaSyAIsWdN2PQTp0vGvIAnhC55U7m3T5vq-wo",
6826
- "AIzaSyDwnVG1YwJC3HOrZ-4jdwvE75Q3CKg35ug",
6827
- "AIzaSyBebB2G98NSBIoYePWYxa1WQiObwol8WHY"
6828
- ], ts = {
6817
+ const eh = "AIzaSyC8G_-cDct8FgyiXaq0vFJVK4BBNwF1jtc,AIzaSyD3bIEPvZb_jPJkAb5lRapTmmHKnNB2Dl8,AIzaSyCb1S1X7rppIWqcBffHLIjOBlSFX8VPK-w", qn = {
6829
6818
  model: "gemini-2.5-flash",
6830
6819
  "model2.0": "gemini-2.5-flash",
6831
6820
  apiKey: eh,
6832
6821
  url: "https://generativelanguage.googleapis.com"
6833
6822
  };
6834
- class nh extends jt {
6823
+ class th extends jt {
6835
6824
  enableGoogleSearch = !0;
6836
6825
  indexApiKey = 0;
6837
6826
  constructor() {
6838
- super(ts.url);
6827
+ super(qn.url);
6839
6828
  }
6840
6829
  getApiKey() {
6841
- let t = "", n = th;
6830
+ let t = "", n = [];
6842
6831
  const s = localStorage.getItem("arr_api_key_dev_gemini");
6843
- s && (n = JSON.parse(s));
6832
+ s ? n = JSON.parse(s) : n = qn.apiKey.split(",");
6844
6833
  const o = localStorage.getItem("index_api_key_gemini");
6845
6834
  return o && (this.indexApiKey = Number(o), this.indexApiKey++), this.indexApiKey >= n.length && (this.indexApiKey = 0), t = n[this.indexApiKey], localStorage.setItem("index_api_key_gemini", this.indexApiKey.toString()), t;
6846
6835
  }
@@ -6920,7 +6909,7 @@ The user may ask in their native language, so recognize the MEANING, not just sp
6920
6909
 
6921
6910
  If the question is about ANY of the above topics, respond with ONLY the word "yes" (lowercase, nothing else).
6922
6911
  Otherwise, respond with ONLY the word "no" (lowercase, nothing else).
6923
- Do not provide any explanation or additional text.`, o = this.getUrl("generateContent", ts["model2.0"]), a = {
6912
+ Do not provide any explanation or additional text.`, o = this.getUrl("generateContent", qn["model2.0"]), a = {
6924
6913
  contents: [
6925
6914
  {
6926
6915
  parts: [{ text: s }]
@@ -6937,8 +6926,8 @@ Do not provide any explanation or additional text.`, o = this.getUrl("generateCo
6937
6926
  }
6938
6927
  }
6939
6928
  }
6940
- const ns = new nh();
6941
- function qn(e, t) {
6929
+ const ns = new th();
6930
+ function zn(e, t) {
6942
6931
  if (!e) return e;
6943
6932
  const n = e.toLowerCase().trim();
6944
6933
  if (n === "max" || n === "all")
@@ -6950,7 +6939,7 @@ function qn(e, t) {
6950
6939
  }
6951
6940
  return e;
6952
6941
  }
6953
- const oh = ({
6942
+ const nh = ({
6954
6943
  isOpen: e,
6955
6944
  onClose: t,
6956
6945
  onTransaction: n,
@@ -7732,7 +7721,7 @@ $${ie(
7732
7721
  } catch (U) {
7733
7722
  console.error("Error fetching balances:", U), k(!1), l(a("viewBalancesFetchError"), "bot");
7734
7723
  }
7735
- }, [u?.address, h, l, g?.name, a, r]), Ve = zn(
7724
+ }, [u?.address, h, l, g?.name, a, r]), Ve = jn(
7736
7725
  () => [
7737
7726
  {
7738
7727
  id: "ask",
@@ -8032,7 +8021,7 @@ ${L}`);
8032
8021
  Ye
8033
8022
  );
8034
8023
  }
8035
- A.amount = qn(
8024
+ A.amount = zn(
8036
8025
  A.amount,
8037
8026
  Ne
8038
8027
  );
@@ -8075,7 +8064,7 @@ ${L}`);
8075
8064
  ), k(!1);
8076
8065
  return;
8077
8066
  }
8078
- A.amount = qn(
8067
+ A.amount = zn(
8079
8068
  A.amount,
8080
8069
  Re.balance_formatted || "0"
8081
8070
  );
@@ -8722,7 +8711,7 @@ To: ${Pe} ${Re.symbol}
8722
8711
  }
8723
8712
  if (ke && !le && R.contract_address)
8724
8713
  try {
8725
- const z = await Zo({
8714
+ const z = await $o({
8726
8715
  address: R.contract_address,
8727
8716
  chain: h
8728
8717
  });
@@ -8795,7 +8784,7 @@ To: ${Pe} ${Re.symbol}
8795
8784
  contractAddress: Ge
8796
8785
  };
8797
8786
  } else {
8798
- const $ = await Zo({
8787
+ const $ = await $o({
8799
8788
  address: Ge,
8800
8789
  chain: h
8801
8790
  });
@@ -8869,7 +8858,7 @@ To: ${Pe} ${Re.symbol}
8869
8858
  console.warn("NFT ownership lookup failed:", z);
8870
8859
  }
8871
8860
  }
8872
- if (R.amount && le?.balanceFormatted && (W.action === "send_token" || W.action === "send_native") && (R.amount = qn(
8861
+ if (R.amount && le?.balanceFormatted && (W.action === "send_token" || W.action === "send_native") && (R.amount = zn(
8873
8862
  R.amount,
8874
8863
  le.balanceFormatted
8875
8864
  )), A) {
@@ -9418,7 +9407,7 @@ Error: ${L.error}` : "";
9418
9407
  ] })
9419
9408
  }
9420
9409
  ),
9421
- (he || i.length === 1) && /* @__PURE__ */ Ae(so, { children: [
9410
+ (he || i.length === 1) && /* @__PURE__ */ Ae(ao, { children: [
9422
9411
  i.length > 1 && /* @__PURE__ */ G("div", { className: "message message-bot", role: "article", children: /* @__PURE__ */ G("div", { className: "message-bubble", children: /* @__PURE__ */ G("div", { className: "message-text", children: a("canIHelpYou") }) }) }),
9423
9412
  /* @__PURE__ */ G("div", { className: "suggestions-container", children: Ve.map((U) => /* @__PURE__ */ Ae(
9424
9413
  "button",
@@ -9501,7 +9490,7 @@ Error: ${L.error}` : "";
9501
9490
  )
9502
9491
  }
9503
9492
  ) : null;
9504
- }, sh = ({
9493
+ }, oh = ({
9505
9494
  position: e,
9506
9495
  theme: t,
9507
9496
  defaultOpen: n,
@@ -9531,10 +9520,10 @@ Error: ${L.error}` : "";
9531
9520
  bottom: t.offset?.y ?? 20,
9532
9521
  zIndex: t.zIndex ?? 9999
9533
9522
  };
9534
- return !He(r?.address || "") || !i ? /* @__PURE__ */ G(so, {}) : /* @__PURE__ */ Ae("div", { style: S, role: "complementary", "aria-label": "Chat widget", children: [
9523
+ return !He(r?.address || "") || !i ? /* @__PURE__ */ G(ao, {}) : /* @__PURE__ */ Ae("div", { style: S, role: "complementary", "aria-label": "Chat widget", children: [
9535
9524
  /* @__PURE__ */ G(S1, { buttonSize: t.buttonSize, onClick: v }),
9536
9525
  /* @__PURE__ */ G(
9537
- oh,
9526
+ nh,
9538
9527
  {
9539
9528
  isOpen: l,
9540
9529
  onClose: q,
@@ -9544,7 +9533,7 @@ Error: ${L.error}` : "";
9544
9533
  }
9545
9534
  )
9546
9535
  ] });
9547
- }, ih = ({
9536
+ }, rh = ({
9548
9537
  position: e = "bottom-right",
9549
9538
  theme: t = {},
9550
9539
  defaultOpen: n = !1,
@@ -9561,7 +9550,7 @@ Error: ${L.error}` : "";
9561
9550
  rpcUrls: l
9562
9551
  };
9563
9552
  return typeof window > "u" ? null : /* @__PURE__ */ G(Tp, { initialConfig: b, children: /* @__PURE__ */ G(gp, { initialAccount: a, children: /* @__PURE__ */ G(x1, { initialLanguage: i, children: /* @__PURE__ */ G(
9564
- sh,
9553
+ oh,
9565
9554
  {
9566
9555
  position: e,
9567
9556
  theme: t,
@@ -9573,5 +9562,5 @@ Error: ${L.error}` : "";
9573
9562
  ) }) }) });
9574
9563
  };
9575
9564
  export {
9576
- ih as ChatWidget
9565
+ rh as ChatWidget
9577
9566
  };